67c81d839aac6575c487434d761e36ae90ed7009
[external/binutils.git] / gdb / ChangeLog
1 2004-11-29  Mark Kettenis  <kettenis@gnu.org>
2
3         * sparc-tdep.c (X_RS1, X_SIMM13): New macros.
4         (sparc32_skip_prologue): Skip instructions that store arguments in
5         registers into their corresponding stack slots.
6
7         * config/m68k/nbsdaout.mh (NAT_FILE): Set to solib.h instead of
8         tm-solib.h.
9         * config/m68k/obsd.mh (NAT_FILE): Likewise.
10
11         * sparc-tdep.h (sparc32nbsd_elf_init_abi): New prototype.
12         * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Make global.
13         * sparcobsd-tdep.c (sparc32obsd_init_abi): Call
14         sparc32nbsd_elf_init_abi.  Remove duplicate code.
15
16         * config/sparc/nbsdaout.mh (NAT_FILE): Set to solib.h.
17         * config/sparc/nbsdelf.mh (NAT_FILE): Remove variable.
18         * config/sparc/nm-nbsd.h: Remove file.
19         * config/sparc/nm-nbsdaout.h: Remove file.
20
21         * sparc-nat.c (inf_ptrace_xfer_partial): New variable.
22         (sparc_xfer_partial): New function.
23         (sparc_target): Save value of to_xfer_partial from ptrace vector.
24         Set to_xfer_partial.
25
26         * fork-child.c (fork_inferior): Fork instead of vfork if
27         PRE_TRACE_FUN is non-null.
28
29 2004-11-24  Fred Fish  <fnf@specifixinc.com>
30
31         * rs6000-tdep.c (skip_prologue): Use line table info to skip over
32         compiler generated function calls made as part of a prologue.
33
34 2004-11-23  Mark Kettenis  <kettenis@gnu.org>
35
36         * inf-ttrace.c: New file.
37         * inf-ttrace.h: New file.
38         * hppa-hpux-nat.c [HAVE_TTRACE]: Include <sys/ttrace>.
39         Include "inf-ttrace.h".
40         (ss_mpsfu_high): Define to ss_tlsp if necessary.
41         (hppa_hpux_fetch_register, hppa_hpux_store_register): Use
42         ptid_get_pid instead of PIDGET.  Modify to handle both ttrace and
43         ptrace systems.
44         (_initialize_hppa_hpux_nat) [HAVE_TTRACE]: Call inf_ttrace_traget
45         instead of inf_ptrace_target.
46         * config/pa/hpux.mh (NATDEPFILES): Add inf-ttrace.o.
47         * Makefile.in (inf_ttrace_h): New variable.
48         (hppa-hpux-nat.o): Update dependency.
49         (inf-ttrace.o): New dependency.
50         (ALLDEPFILES): Add inf-ptrace.c and inf-ttrace.c.
51
52 2004-11-23  Randolph Chung  <tausq@debian.org>
53
54         * arch-utils.c (generic_instruction_nullified): New.
55         * arch-utils.h (generic_instruction_nullified): New.
56         * gdbarch.sh (instruction_nullified): New method.
57         * gdbarch.c: Regenerate.
58         * gdbarch.h: Regenerate.
59         * infrun.c (INSTRUCTION_NULLIFIED): Delete.
60         (handle_inferior_event): Replace INSTRUCTION_NULLIFIED with calls to
61         new gdbarch method.
62         * config/pa/tm-hppa.h (INSTRUCTION_NULLIFIED): Delete definition.
63         * hppa-tdep.c (hppa_instruction_nullified): Remove prototype and make
64         static.  Rewrite to work directly off the passed regcache.
65         (hppa_gdbarch_init): Set instruction_nullified method.
66
67 2004-11-23  Joel Brobecker  <brobecker@gnat.com>
68
69         * sparc-tdep.c (sparc_is_unimp_insn): New function.
70         (sparc32_frame_cache): For functions where there is no debugging
71         information to help us determine whether it's a struct-return
72         function or not, fallback on checking whether the instruction
73         at the return address is an "unimp" instruction or not.
74
75 2004-11-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
76
77         * MAINTAINERS: Add myself to write after approval section.
78
79         * hppa-hpux-nat.c (child_suppress_run): Add variable to allow
80         hpux-thread.c to suppress children from running.
81         (hppa_hpux_child_can_run): New function.
82         (_initialize_hppa_hpux_nat): Use hppa_hpux_child_can_run.
83         * hpux-thread.c: Include string.h and hppa-tdep.h.
84         (FLAGS_REGNUM, SP_REGNUM, PC_REGNUM): Rename to HPPA_FLAGS_REGNUM,
85         HPPA_SP_REGNUM and HPPA_PCOQ_HEAD_REGNUM, respectively.
86         (hpux_thread_store_registers): Replace deprecated_registers with
87         calls to regcache_raw_read.
88         * config/pa/hpux11.mh, config/pa/hpux11w.mh: Delete HOST_IPC.
89
90 2004-11-21  Mark Kettenis  <kettenis@gnu.org>
91
92         * sparc64fbsd-nat.c: Update copyright year.
93         (_initialize_sparc64fbsd_nat): Construct and add target vector.
94         * config/sparc/fbsd.mh (NATDEPFILES): Remove infptrace.o,
95         inftarg.o.
96
97 2004-11-21  Daniel Jacobowitz  <dan@debian.org>
98
99         * sparc-tdep.c (sparc_software_single_step): Handle stepping to NULL.
100
101 2004-11-21  Daniel Jacobowitz  <dan@debian.org>
102
103         * linux-nat.c (my_waitpid): New function.
104         (linux_test_for_tracefork): Make more robust and verbose.  Take
105         an ORIGINAL_PID argument and test for PTRACE_SETOPTIONS first.
106         (linux_supports_tracefork, linux_supports_tracevforkdone): Take a PID
107         argument.  Update calls to linux_test_for_tracefork.
108         (linux_enable_event_reporting, child_follow_fork)
109         (child_insert_fork_catchpoint, child_insert_vfork_catchpoint)
110         (child_insert_exec_catchpoint): Update calls to
111         linux_supports_tracefork and linux_supports_tracevforkdone.
112
113 2004-11-21  Daniel Jacobowitz  <dan@debian.org>
114
115         * valarith.c (value_subscript): Copy VALUE_FRAME_ID.
116         (value_subscripted_rvalue): Likewise.
117         * valops.c (search_struct_field, value_slice): Likewise.
118
119 2004-11-21  Mark Kettenis  <kettenis@gnu.org>
120
121         * inf-ptrace.c: Don't include "regcache.h" and "gdbcmd.h".
122         Reorder includes a bit.  Fix comment.
123         * Makefile.in (inf-ptrace.o): Update dependencies.
124
125 2004-11-21  Andreas Schwab  <schwab@suse.de>
126
127         * m68klinux-tdep.c: Include "glibc-tdep.h" and "solib-svr4.h".
128         (m68k_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
129         svr4_ilp32_fetch_link_map_offsets and gdbarch_skip_solib_resolver
130         to glibc_skip_solib_resolver.
131         * config/m68k/linux.mt (TDEPFILES): Add glibc-tdep.o.  Remove
132         solib-legacy.o.
133         * Makefile.in (m68klinux-tdep.o): Update dependencies.
134
135 2004-11-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
136
137         * infttrace.h (ttrace_write_reg_64): Add prototype.
138         * hppah-nat.c (store_inferior_registers): Fix warning from ambiguous
139         expression.  
140         (store_inferior_registers): Correct formatting.  Replace uses of
141         deprecated_registers with calls to regcache_raw_read,
142         regcache_raw_write_part and regcache_raw_read_part.
143
144 2004-11-21  Mark Kettenis  <kettenis@gnu.org>
145
146         * config/pa/hppahpux.mh: Remove file.
147         * config/pa/hpux1020.mh: Remove file.
148
149 2004-11-20  Andreas Schwab  <schwab@suse.de>
150
151         * configure.host: Set host floatformat for m68k.
152
153 2004-11-20  Eli Zaretskii  <eliz@gnu.org>
154
155         * config/djgpp/fnchange.lst: Resolve file-name clash between
156         hppa-hpux-tdep.c and the new hppa-hpux-nat.c.
157
158 2004-11-20  Mark Kettenis  <kettenis@gnu.org>
159
160         * hppa-hpux-nat.c: New file.
161         * config/pa/hpux.mh (NATDEPFILES): New file.
162         * Makefile.in (ALLDEPFILES): Add hppa-hpux-nat.c.
163         (hppa-hpux-nat.o): New dependency.
164         * configure.host: Remove hppa*-*-hpux10.20.
165         (hppa*-*-hpux*, hppa*-*-hiux*): Set gdb_host to hpux.mh.
166
167         * inf-ptrace.c: Fix coding style.
168
169         * gdb_ptrace.h [PTRACE_TYPE_ARG5] (ptrace): New macro.
170         * infptrace.c (call_ptrace): Simply call ptrace with four
171         arguments.
172
173         * dbxread.c (process_one_symbol): Fix a few coding standard
174         issues.  Improve code formatting.
175
176         * dbxread.c: Include "gdb_string.h".
177         (record_minimal_symbol, read_ofile_symtab): Replace
178         DEPRECATED_STREQ and DEPRECATED_STREQN with strcmp and strncmp.
179         * Makefile.in (dbxread.o): Update dependencies.
180
181         * dwarf2-frame.c (read_encoded_value): Correctly calculate number
182         of bytes read for aligned LEB128 encodings.
183
184 2004-11-19  Mark Kettenis  <kettenis@gnu.org>
185
186         * bsd-kvm.c (bsd_kvm_pcb_cmd): Cast return value from
187         parse_and_eval_address to u_long before converting it to a pointer
188         type.
189         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Change type of
190         ps_strings from int to u_long.
191         * i386obsd-nat.c (_initialize_i386obsd_nat): Cast _ps.val to
192         u_long instead of CORE_ADDR.
193
194 2004-11-18  Mark Kettenis  <kettenis@gnu.org>
195
196         * dbxread.c (process_one_symbol): Do not adjust address of first
197         N_SLINE stab for a function for code generated by non-GCC
198         compilers.
199
200 2004-11-18  Kevin Buettner  <kevinb@redhat.com>
201
202         * solib-null.c: New file.
203
204 2004-11-17  Andrew Cagney  <cagney@gnu.org>
205
206         * MAINTAINERS: Drop MIPS and remote.
207
208 2004-11-15  Andrew Cagney  <cagney@gnu.org>
209
210         * findvar.c (value_of_register): Set the frame ID.
211         * value.c (value_primitive_field): Copy the frame ID.
212         * valops.c (value_assign): Simplify lval_register case, there's
213         always a frame.
214
215 2004-11-14  Daniel Jacobowitz  <dan@debian.org>
216
217         * Makefile.in (mips-linux-tdep.o): Update dependencies.
218         * mips-linux-tdep.c: Include "regcache.h".
219         (fill_fpregset, mips64_fill_fpregset): Use regcache_raw_collect.
220
221 2004-11-14  Daniel Jacobowitz  <dan@debian.org>
222
223         * Makefile.in (linux-thread-db.o): Fix typo in last change.
224
225 2004-11-14  Daniel Jacobowitz  <dan@debian.org>
226
227         * linux-thread-db.c: New file, renamed from thread-db.c.
228         * thread-db.c: Remove.
229         * Makefile.in (linux-thread-db.o): Rename from thread-db.o rule.
230         * config/alpha/alpha-linux.mh (NATDEPFILES): Rename thread-db.o
231         to linux-thread-db.o.
232         * config/arm/linux.mh (NATDEPFILES): Likewise.
233         * config/i386/linux.mh (NATDEPFILES): Likewise.
234         * config/i386/linux64.mh (NATDEPFILES): Likewise.
235         * config/ia64/linux.mh (NATDEPFILES): Likewise.
236         * config/m32r/linux.mh (NATDEPFILES): Likewise.
237         * config/m68k/linux.mh (NATDEPFILES): Likewise.
238         * config/mips/linux.mh (NATDEPFILES): Likewise.
239         * config/pa/linux.mh (NATDEPFILES): Likewise.
240         * config/powerpc/linux.mh (NATDEPFILES): Likewise.
241         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
242         * config/s390/s390.mh (NATDEPFILES): Likewise.
243         * config/sparc/linux.mh (NATDEPFILES): Likewise.
244         * config/sparc/linux64.mh (NATDEPFILES): Likewise.
245
246 2004-11-13  Andrew Cagney  <cagney@gnu.org>
247
248         * config/i386/i386lynx.mh: Delete file.
249         * config/i386/i386lynx.mt: Delete file.
250         * Makefile.in (ALLDEPFILES, i386ly-tdep.o): Remove i386ly-tdep.c.
251         * i386ly-tdep.c: Delete.
252
253         * config/tm-lynx.h: Delete, inline contents ...
254         * config/rs6000/tm-rs6000ly.h: ... here.
255
256         * config/tm-sysv4.h: Delete file, inlining contents.
257         * config/ia64/tm-aix.h (SKIP_TRAMPOLINE_CODE): Define.
258         * config/tm-linux.h (SKIP_TRAMPOLINE_CODE): Define.
259         * config/tm-nto.h (SKIP_TRAMPOLINE_CODE): Define.
260
261         * regcache.h (deprecated_register_valid): Delete.
262         (deprecated_registers): Delete.
263         * regcache.c (deprecated_register_valid): Delete.
264         (deprecated_registers): Delete.
265         (deprecated_read_register_byte, _initialize_regcache)
266         (deprecated_write_register_bytes, build_regcache): Update.
267         * config/powerpc/ppc-sim.mt (TDEPFILES): Remove ppc-bdm.o and
268         remote-sds.o.
269         * config/powerpc/ppc-eabi.mt (TDEPFILES): Ditto.
270         * config/mips/embed.mt (TDEPFILES): Remove remote-mips.o.
271
272         * NEWS: List h8300*-*-*, mcore-*-*, mn10300-*-*, ns32k-*-*, and
273         v850-*-* under removed.
274         * configure.host: Delete ns32k-*-netbsd*.
275         * configure.tgt: Delete h8300-*-*, mcore*-*-*, mn10300-*-*,
276         ns32k-*-netbsd*, and v850*-*-*.
277         * MAINTAINERS: Mark h8300, mcore, mn10300, ns32k, v850 as
278         "Deleted"
279         * config/h8300/tm-h8300.h, config/h8300/h8300.mt: Delete.
280         * h8300-tdep.c, config/mcore/mcore.mt, mcore-rom.c: Delete.
281         * mcore-tdep.c, config/mn10300/mn10300.mt: Delete.
282         * mn10300-tdep.c, config/ns32k/nbsdaout.mh: Delete.
283         * config/ns32k/nbsdaout.mt, config/ns32k/nm-nbsd.h: Delete.
284         * config/ns32k/nm-nbsdaout.h, config/ns32k/tm-ns32k.h: Delete.
285         * ns32knbsd-nat.c, ns32knbsd-tdep.c, ns32k-tdep.c: Delete.
286         * ns32k-tdep.h, config/v850/v850.mt, v850ice.c: Delete.
287         * v850-tdep.c: Delete.
288         
289 2004-11-13  Joel Brobecker  <brobecker@gnat.com>
290
291         * irix5-nat.c (fetch_core_registers): Replace use of
292         deprecated_registers by equivalent code.
293
294 2004-11-13  Joel Brobecker  <brobecker@gnat.com>
295
296         * irix5-nat.c (fill_gregset): Replace use of deprecated_registers
297         with equivalent code.
298         (fill_fpregset): Likewise.
299
300 2004-11-13  Andrew Cagney  <cagney@gnu.org>
301
302         * MAINTAINERS: Do not list "Deleted" architectures.
303
304         * configure.tgt: Delete i[34567]86-*-vxworks*, m68*-netx-*,
305         m68*-*-vxworks*, mips*-*-vxworks*, powerpc-*-vxworks*, and
306         sparc-*-vxworks*.
307         * NEWS: Mention that vxworks was deleted.
308         * config/m68k/tm-vx68.h, config/mips/tm-vxmips.h: Delete.
309         * config/powerpc/tm-vxworks.h, config/tm-vxworks.h: Delete.
310         * config/i386/vxworks.mt, config/m68k/vxworks68.mt: Delete.
311         * config/mips/vxmips.mt, config/powerpc/vxworks.mt: Delete.
312         * config/sparc/vxworks.mt, vx-share/dbgRpcLib.h: Delete.
313         * vx-share/ptrace.h, vx-share/regPacket.h: Delete.
314         * vx-share/vxTypes.h, vx-share/vxWorks.h: Delete.
315         * vx-share/wait.h, vx-share/xdr_ld.c: Delete.
316         * vx-share/xdr_ld.h, vx-share/xdr_ptrace.c: Delete.
317         * vx-share/xdr_ptrace.h, vx-share/xdr_rdb.c: Delete.
318         * vx-share/xdr_rdb.h, remote-vxsparc.c: Delete.
319         * remote-vxmips.c, remote-vx.c: Delete.
320         * remote-vx68.c: Delete.
321         * config/m68k/tm-os68k.h: Remove reference to VxWorks.
322         * config/m68k/os68k.mt, ada-lang.h: Ditto.
323         * Makefile.in (HFILES_NO_SRCDIR, ALLDEPFILES, remote-vx68.o)
324         (remote-vx.o, remote-vxmips.o, remote-vxsparc.o): Delete vx files.
325
326 2004-11-13  Eli Zaretskii  <eliz@gnu.org>
327
328         * config/i386/xm-go32.h: Don't include fopen-bin.h.
329         Don't define CRLF_SOURCE_FILES and DIRNAME_SEPARATOR.
330
331         * source.c (OPEN_MODE, FDOPEN_MODE): Remove the definitions in the
332         branch that doesn't define CRLF_SOURCE_FILES; always use
333         binary-mode open.
334         (print_source_lines_base, forward_search_command)
335         (reverse_search_command): Enable the code that accepts DOS-style
336         CRLF line endings on all platforms (this removes the need for
337         CRLF_SOURCE_FILES).
338
339         * defs.h: Fix wording of the comment before FOPEN_RB.
340         (DIRNAME_SEPARATOR) [__MSDOS__]: Define to ';'.
341
342         * config/djgpp/fnchange.lst: Group renames for opcode directory
343         together.
344
345         * config/djgpp/djconfig.sh: Replace file names that don't exist
346         anymore with existing files, for checking the unpacked
347         distribution.
348
349         * config/djgpp/config.sed (am_cv_exeext, lt_cv_sys_max_cmd_len):
350         Export pre-cooked values in configure-* targets that begin with
351         "@test -f stage_last".
352
353 2004-11-12  Andrew Cagney  <cagney@gnu.org>
354
355         * defs.h (enum lval_type): Delete lval_reg_frame_relative.
356         * value.h (struct value): Update comment.
357         * valops.c (value_assign): Fold lval_reg_fame_relative into
358         lval_register.
359         * findvar.c (value_from_register, locate_var_value): Ditto.
360
361 2004-11-12  Randolph Chung  <tausq@debian.org>
362
363         * config/tm/tm-hppa.h (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
364         * parse.c (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
365         (write_exp_msymbol): Remove conditional check for symbols starting 
366         with $.  Update comments.
367
368 2004-11-12  Randolph Chung  <tausq@debian.org>
369
370         * pa64solib.c (pa64_solib_thread_start_addr): Rename from 
371         so_lib_thread_start_addr.
372         * pa64solib.h (so_list): Forward declare.
373         (pa64_solib_thread_start_addr): Prototype.
374         * somsolib.c (SHL_LOAD, SHL_UNLOAD): Define if not already defined.
375         (no_shared_libraries): Remove.
376         (som_solib_thread_start_addr): Rename from so_lib_thread_start_addr.
377         * somsolib.h (som_solib_thread_start_addr): Likewise; prototype.
378         * hpread.c (hpread_process_one_debug_symbol): Use either the som or
379         the elf solib handler to find the start address.
380
381         * config/pa/hppahpux.mh (NATDEPFILES): Move target-specific support 
382         files to the target makefile.
383         * config/pa/hpux1020.mh (NATDEPFILES):  Likewise.
384         * config/pa/hpux11.mh (NATDEPFILES): Likewise.
385         * config/pa/hpux11w.mh (NATDEPFILES): Likewise.
386
387         * config/pa/hppa64.mt (TDEPFILES): Put target-specific support 
388         files for symbol reading and shared library handling here.
389         * config/pa/hppahpux.mt (TDEPFILES): Likewise.  
390         (PA_SOM_ONLY): Define so we can build a 32-bit SOM only target 
391         without bringing in 64-bit support.
392
393 2004-11-12  Andrew Cagney  <cagney@gnu.org>
394
395         * sparc-tdep.c: Replace VALUE_TYPE with value_type.
396         * v850-tdep.c, sparc64-tdep.c, sh-tdep.c: Ditto.
397         * sh64-tdep.c, s390-tdep.c, mcore-tdep.c: Ditto.
398         * h8300-tdep.c, arm-linux-tdep.c, amd64-tdep.c: Ditto.
399         * hppa-tdep.c, mips-tdep.c, m88k-tdep.c: Ditto.
400         * m68hc11-tdep.c, m32r-tdep.c, ia64-tdep.c: Ditto.
401         * frv-tdep.c, cris-tdep.c, avr-tdep.c, alpha-tdep.c: Ditto.
402
403         Merge VALUE_REGNO and VALUE_FRAME_REGNUM into VALUE_REGNUM.
404         * value.h (VALUE_REGNO, VALUE_FRAME_REGNUM): Delete.
405         (VALUE_REGNUM): Define.
406         (struct value): Delete location.regnum, rename "regno" to
407         "regnum".
408         * value.c, valops.c, valarith.c, findvar.c: Update.
409
410         * value.h (VALUE_TYPE, VALUE_NEXT, VALUE_OFFSET, VALUE_BITSIZE)
411         (VALUE_BITPOS): Delete.
412         (value_type, value_offset, value_bitsize, value_bitpos): Declare.
413         * value.c (value_type, value_offset, value_bitpos)
414         (value_bitsize): New functions.  Update references.
415         * arm-tdep.c, gnu-v3-abi.c, hpacc-abi.c, gnu-v2-abi.c: Update.
416         * f-valprint.c, cp-valprint.c, c-valprint.c: Update.
417         * ada-valprint.c, typeprint.c, scm-valprint.c, scm-exp.c: Update.
418         * p-valprint.c, jv-valprint.c, jv-lang.c, varobj.c: Update.
419         * objc-lang.c, ada-lang.c, std-regs.c, stack.c: Update.
420         * infcall.c, linespec.c, printcmd.c, valarith.c: Update.
421         * valops.c, eval.c, findvar.c, breakpoint.c: Update.
422         * tracepoint.c, ax-gdb.c, mi/mi-main.c, cli/cli-dump.c:
423         * rs6000-tdep.c, ppc-sysv-tdep.c: Update.
424
425 2004-11-12  Andrew Cagney  <cagney@gnu.org>
426
427         * cris-tdep.c (cris_register_offset): Delete, never called.
428         (cris_spec_reg_applicable): Delete cris_ver_sim.
429         * MAINTAINERS: List d10v as OBSOLETE.
430         * rdi-share/host.h (FOPEN_WB): #ifdef 0 out definitions of
431         FOPEN_WB et.al., defined by "fopen-bin.h".
432
433 2004-11-12  Randolph Chung  <tausq@debian.org>
434
435         * hppa-tdep.c (hppa_skip_permanent_breakpoint): Move definition ...
436         * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): ... to here.
437         * config/pa/tm-hppa.h (SKIP_PERMANENT_BREAKPOINT): Move definition ...
438         * config/pa/tm-hppah.h (SKIP_PERMANENT_BREAKPOINT): ... to here.
439
440 2004-11-12  Mark Kettenis  <kettenis@jive.nl>
441
442         * tui/tui-io.c: Don't include "terminal.h".
443         * Makefile.in (tui-io.o): Update dependencies.
444
445 2004-11-12  Kei Sakamoto  <sakamoto.kei@renesas.com>
446
447         * Makefile.in (m32r-linux-tdep.o): Update dependencies.
448         * m32r-linux-tdep.c (m32r_linux_init_abi): Call
449         set_gdbarch_regset_from_core_section for core file support.
450         (m32r_linux_supply_gregset, m32r_linux_regset_from_core_section):
451         New functions.
452
453 2004-11-11  Randolph Chung  <tausq@debian.org>
454
455         * hppa-tdep.c (skip_prologue_hard_way): Make static, add
456         stop_after_branch parameter and use it to determine if we should look
457         at the delay slot of the first branch insn to find prologue insns.
458         (hppa_skip_prologue): Update comment and call to skip_prologue_hard_way.
459         (hppa_frame_cache): Likewise.
460
461 2004-11-11  Randolph Chung  <tausq@debian.org>
462
463         * hppa-tdep.c (hppa_frame_cache): Properly handle the frame pointer
464         register so that it can be unwound from anywhere in the prologue.
465
466 2004-11-10  msnyder  <msnyder@redhat.com>
467
468         * rs6000-tdep.c (skip_prologue): After saving lr_offset, 
469         must invalidate lr_reg (so we don't try to save it again).  
470         Ditto for cr_offset and cr_reg.
471
472 2004-11-05  Jon Beniston <jon@beniston.com>
473
474         Committed by Andrew Cagney.
475         * remote.c (putpkt_binary) Fix PR gdb/1806. Send an ACK 
476         when an unexpected packet is received, as the target stubs 
477         continually retransmit the same packet until ACKed.
478         
479 2004-11-10  Randolph Chung  <tausq@debian.org>
480
481         * frame.c (get_prev_frame): Use get_frame_type to retrieve the 
482         frame's type.
483
484 2004-11-10  Randolph Chung  <tausq@debian.org>
485
486         * blockframe.c (inside_entry_func): Move to .....
487         * frame.c (inside_entry_func): ... here, and make static.
488         (backtrace_past_entry): New flag.
489         (get_prev_frame): Stop backtrace at the entry function if enabled
490         by flag.  Update comments.
491         (_initialize_frame): Add command to set backtrace_past_entry flag.
492         * defs.h (inside_entry_func): Remove prototype.
493
494 2004-11-10  Mark Kettenis  <kettenis@gnu.org>
495
496         * dwarf2read.c: Fix formatting.
497
498 2004-11-10  Andrew Cagney  <cagney@gnu.org>
499
500         * value.h (COERCE_REF, COERCE_ARRAY, COERCE_NUMBER, COERCE_ENUM)
501         (coerce_ref, coerce_array, coerce_number, coerce_enum): Replace
502         macros with function declarations.
503         * value.c (coerce_ref, coerce_array, coerce_number)
504         (coerce_enum): New functions.
505         (value_as_long, value_as_address): Update.
506         * ada-lang.c (ada_coerce_ref, ada_value_binop) 
507         (ada_evaluate_subexp, ada_value_assign, ada_value_struct_elt): Update.
508         * jv-lang.c (evaluate_subexp_java): Update.
509         * valarith.c (value_less, value_neg, value_complement)
510         (value_binop, value_add, value_subscript, value_x_binop) 
511         (value_logical_not, value_sub): Update.
512         * valops.c (check_field, value_struct_elt, value_ind)
513         (value_find_oload_method_list, value_cast, value_assign): Update.
514         * eval.c (evaluate_subexp_standard): Update.
515
516 2004-11-10  Mark Kettenis  <kettenis@gnu.org>
517
518         * mips-tdep.c (mips32_relative_offset): Change return type to
519         LONGEST, change argument type to ULONGEST.  Fix sign-extension.
520
521 2004-11-10  Randolph Chung  <tausq@debian.org>
522
523         * hppa-tdep.c (hppa32_register_name, hppa64_register_name): Make static.
524         (hppa32_push_dummy_call, hppa64_push_dummy_call): Likewise.
525         (hppa_fetch_pointer_argument): Likewise.
526         (hppa_frame_cache): Use safe_frame_unwind_memory instead of 
527         deprecated_read_memory_nobpt.
528         (_initialize_hppa_tdep): Replace deprecated_add_show_from_set/
529         add_set_cmd sequence with add_setshow_boolean_cmd.
530
531 2004-11-09  Andrew Cagney  <cagney@gnu.org>
532
533         GDB 6.3 released from GDB 6.3 branch.
534
535 2004-11-09  Andrew Cagney  <cagney@gnu.org>
536
537         * values.c: Rename to ...
538         * value.c: ..., new file.
539         * Makefile.in: Update.
540
541 2004-11-09  Daniel Jacobowitz  <dan@debian.org>
542
543         * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Correct allocated
544         size.
545
546 2004-11-09  Andrew Cagney  <cagney@gnu.org>
547
548         * TODO: Delete.
549
550         * value.h (struct value): Delete field bfd_section.
551         (VALUE_BFD_SECTION): Delete macro.
552         (COERCE_REF): Update.
553         (value_at, value_at_lazy): Delete asection parameter.
554         * printcmd.c (print_formatted, x_command): Update.
555         (do_examine): Delete asection parameter.
556         (next_section): Delete variable.
557         * valops.c (value_cast, value_at, value_at_lazy)
558         (value_coerce_function, value_addr, value_ind, value_string) 
559         (find_rt_vbase_offset, value_full_object): Update.
560         * hpacc-abi.c (hpacc_virtual_fn_field)
561         (hpacc_value_rtti_type): Update.
562         * gnu-v3-abi.c (gnuv3_rtti_type, gnuv3_virtual_fn_field) 
563         (gnuv3_baseclass_offset): Update.
564         * f-valprint.c (f_val_print): Update.
565         * c-valprint.c (c_val_print): Update.
566         * p-valprint.c (pascal_val_print): Update.
567         * jv-valprint.c (java_value_print): Update.
568         * jv-lang.c (java_class_from_object, evaluate_subexp_java): Update.
569         * ada-lang.c (ada_value_primitive_packed_val)
570         (ada_evaluate_subexp): Update.
571         * dwarf2loc.c (dwarf2_evaluate_loc_desc): Update.
572         * expprint.c (print_subexp_standard): Update.
573         * infcall.c (call_function_by_hand): Update.
574         * valarith.c (value_add): Update.
575         * eval.c (evaluate_subexp_standard): Update.
576         * values.c (allocate_value, value_copy, value_static_field): Update.
577         * findvar.c (read_var_value, locate_var_value): Update.
578         
579 2004-11-09  Andrew Cagney  <cagney@gnu.org>
580
581         * i386-linux-tdep.c: Include "dwarf2-frame.h".
582         * Makefile.in: Update all dependencies.
583
584 2004-11-08  Andrew Cagney  <cagney@gnu.org>
585
586         * sentinel-frame.c (sentinel_frame_prev_pc): New function.
587         (sentinel_frame_unwinder): Add the prev_pc method.
588         * frame.c (frame_pc_unwind): Use the per-frame pc unwinder when
589         available.  Do not handle the sentinel-frame case.
590         * frame-unwind.h (frame_prev_register_ftype): Define.
591         (struct frame_unwind): Add prev_pc;
592
593 2004-11-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
594
595         * configure.in: Check for ncurses/term.h.
596         * gdb_curses.h: Include term.h here, prefering ncurses/term.h.
597         * utils.c: Include gdb_curses.h instead of curses.h and term.h.
598         * tui/tui.c: Don't include term.h.
599         * configure, config.in: Rebuilt.
600
601 2004-11-08  Mark Kettenis  <kettenis@gnu.org>
602
603         * m68kbsd-nat.c: Include "inf-ptrace.h".
604         (_initialize_m68kbsd_nat): Fix pasto.
605         * Makefile.in (m68kbsd-nat.o): Update dependencies.
606
607 2004-11-08  Randolph Chung  <tausq@debian.org>
608
609         * infrun.c (debug_infrun): New variable.
610         (resume, proceed, wait_for_inferior): Annotate with debug messages.
611         (handle_inferior_event, keep_going): Likewise.
612         (_initialize_infrun): Register "set debug infrun" command.
613
614 2004-11-08  Andreas Schwab  <schwab@suse.de>
615
616         * linux-nat.c (PTRACE_EVENT_VFORK_DONE): Renamed from
617         PTRACE_EVENT_VFORKDONE.
618         (child_follow_fork): Adjust.
619
620 2004-11-08  Andrew Cagney  <cagney@gnu.org>
621
622         * README: Refer to 6.3, not 6.2, update directory listing droppng
623         references to intl/ and mmalloc/.
624         * PROBLEMS: Refer to 6.3 not 6.2.
625
626         * PROBLEMS: Delete no-longer applicable problems.
627
628 2004-11-07  Andrew Cagney  <cagney@redhat.com>
629             Daniel Jacobowitz  <dan@debian.org>
630             Roland McGrath  <roland@redhat.com>
631
632         * Makefile.in (symfile-mem.o): Update dependencies.
633         * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): New.
634         (i386_linux_init_abi): Call dwarf2_frame_set_signal_frame_p.
635         * inf-ptrace.c (inf_ptrace_attach): Call
636         observer_notify_inferior_created.
637         * inftarg.c (child_attach): Likewise.
638         * symfile-mem.c: Include "observer.h", "auxv.h", and "elf/common.h".
639         (symbol_file_add_from_memory): Take NAME argument.  Use it for
640         the new BFD's filename.
641         (add_symbol_file_from_memory_command): Update call to
642         symbol_file_add_from_memory.
643         (struct symbol_file_add_from_memory_args, add_vsyscall_page)
644         (symbol_file_add_from_memory_wrapper): New.
645         (_initialize_symfile_mem): Register add_vsyscall_page as an
646         inferior_created observer.
647
648 2004-11-07  Mark Kettenis  <kettenis@gnu.org>
649
650         * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Rename from
651         fetch_inferior_registers.  Make static.
652         (m68kbsd_store_inferior_registers): Rename from
653         store_inferior_registers.  Make static.
654         (_initialize_m68kbsd_nat): Construct and add target vector.
655         * config/m68k/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
656         inftarg.o.  Add inf-ptrace.o.
657         (NAT_FILE): Set to tm-solib.h.
658         (LOADLIBES): New variable.
659         * config/m68k/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
660         inftarg.o.  Add inf-ptrace.o.
661         (NAT_FILE): Delete variable.
662         * config/m68k/obsd.mh (NATDEPFILES): Remove infptrace.o and
663         inftarg.o.  Add inf-ptrace.o.
664         (NAT_FILE): Set to tm-solib.h.
665         * config/m68k/nm-nbsdaout.h: Remove file.
666
667 2004-11-07  Daniel Jacobowitz  <dan@debian.org>
668
669         * dwarf2-frame.c (struct dwarf2_frame_ops): Add signal_frame_p.
670         (dwarf2_frame_set_signal_frame_p, dwarf2_frame_signal_frame_p)
671         (dwarf2_signal_frame_unwind): New.
672         (dwarf2_frame_sniffer): Use dwarf2_frame_signal_frame_p.
673         * dwarf2-frame.h (dwarf2_frame_set_signal_frame_p): New prototype.
674
675 2004-11-07  Mark Kettenis  <kettenis@gnu.org>
676
677         * Makefile.in (mips64obsd-tdep.o): Fix typo.
678
679         * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Renamed
680         from mipsnbsd_ilp32_solib_svr4_fetch_link_map_offsets.  Trim sizes
681         to only include the structure members we actually need.
682         (mipsnbsd_lp64_fetch_link_map_offsets): Renamed from
683         mipsnbsd_lp64_solib_svr4_fetch_link_map_offsets.  Trim sizes to
684         only include the structure members we actually need.
685         (mipsnbsd_init_abi): Update.
686
687         * mips64obsd-nat.c: Include "mips-tdep.h".
688         (MIPS64OBSD_NUM_REGS): Remove define.
689         (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM): New defines.
690         (mips64obsd_supply_gregset, mips64obsd_collect_gregset): Handle
691         floating-point registers correctly.
692         * Makefile.in (mips64obsd-nat.o): Update dependencies.
693
694         * mips64obsd-tdep.c: Include "trad-frame.h", "tramp-frame.h" and
695         "gdb_assert.h".
696         (mips64obsd_sigframe_init): New function.
697         (mips64obsd_sigframe): New variable.
698         (mips64obsd_init_abi): Add comments.  Prepend mips64obsd_sigrame
699         unwinder.
700         * Makefile.in (mips64obsd-tdep.o): Update dependencies.
701
702 2004-11-06  Joel Brobecker  <brobecker@gnat.com>
703
704         * alpha-mdebug-tdep.c: #include mdebugread.h.
705         Replace alpha_extra_func_info_t by struct mdebug_extra_func_info *.
706         * Makefile.in (alpha-mdebug-tdep.o): Add dependency on mdebugread.h.
707
708 2004-11-05  Andrew Cagney  <cagney@gnu.org>
709
710         * dwarf2-frame.c (dwarf2_frame_cache): Only complain when both the
711         CFI and the init_reg method leave the register unspecified.
712         Include the register name in the "Incomplete CFI data" complaint.
713         Supress leading zeros in the address.
714
715 2004-11-05  Mark Kettenis  <kettenis@gnu.org>
716
717         * dwarf2-frame.c (decode_frame_entry_1): Avoid indirection when
718         skipping a personality routine in a CIE augmentation.
719
720 2004-11-05  Jeff Johnston  <jjohnstn@redhat.com>
721
722         * defs.h (fatal, vfatal): New function prototypes.
723         * stack.c (backtrace_command_stub): Stub to call backtrace_command_1
724         via catch_errors.
725         (backtrace_command): Change to call backtrace_command_stub via
726         catch_errors instead of calling backtrace_command_1 directly.
727         (backtrace_full_command): Ditto.
728         * utils.c (error_stream_1): New static function.
729         (verror): Change to call error_stream_1 instead of error_stream.
730         (error_stream): Call error_stream_1 with RETURN_ERROR argument.
731         (vfatal, fatal): New functions.
732
733 2004-11-05  Andrew Cagney  <cagney@gnu.org>
734
735         * stack.c (parse_frame_specification_1): Clear selected_frame_p
736         when not using selected frame.
737
738 2004-11-05  Mark Kettenis  <kettenis@jive.nl>
739
740         * dwarf2-frame.c (decode_frame_entry_1): Correctly skip
741         personality routine in a CIE augmentation.
742
743 2004-11-05  Felix Lee  <felix+log1@specifixinc.com>
744
745         * stack.c (set_current_sal_from_frame): New function.
746         (print_args_stub): Use it.
747         (print_frame_info): Don't set sal here.
748
749 2004-11-04  Mark Kettenis  <kettenis@gnu.org>
750
751         * dwarf2-frame.c (read_encoded_value): Change type of third
752         argument to `unsigned char *'.  Add support for LEB128 encodings.
753
754 2004-11-04  Jim Blandy  <jimb@redhat.com>
755
756         * gdbtypes.c (make_qualified_type): Doc fix.  Add assertion to
757         prevent cross-objfile references.
758         (make_cv_type): Doc fix.  Don't create cross-objfile references,
759         even for stub types.
760         (replace_type): Add assertion to prevent cross-objfile references.
761         (check_typedef): Never resolve a stub type by copying over a type
762         from another file.
763
764 2004-11-04  Kei Sakamoto  <sakamoto.kei@denesas.com>
765
766         * Makefile.in (m32r-tdep.o): Update dependencies.
767         * m32r-tdep.c (m32r_gdbarch_init): Call gdbarch_init_osabi for
768         ABI-specific overrides.
769
770 2004-11-04  Kei Sakamoto  <sakamoto.kei@denesas.com>
771
772         * m32r-tdep.c (m32r_memory_insert_breakpoint): Remove
773         unnecessary parallel execution bit.
774         (m32r_memory_remove_breakpoint): Ditto.
775         (m32r_breakpoint_from_pc): Update.
776
777 2004-11-03  Randolph Chung  <tausq@debian.org>
778
779         * hppa-tdep.c (hppa_frame_cache): Use frame_pc_unwind instead of
780         frame_func_unwind to locate the unwind entry.
781         (hppa_frame_this_id): Likewise.
782
783 2004-11-03  Andrew Cagney  <cagney@gnu.org>
784
785         * gdb/NEWS: Mention internationalization, m32r-*-linux-gnu, 'p'
786         packet, obsolete configurations, end-of-life deprecated_registers.
787
788 2004-11-02  Mark Kettenis  <kettenis@gnu.org>
789
790         * dwarf2-frame.c (read_encoded_value): Set proper size for signed
791         encodings as well as unsigned encodings.
792
793 2004-11-02  Andrew Cagney  <cagney@gnu.org>
794
795         * value.h (COERCE_VARYING_ARRAY): Delete.
796         * valops.c (value_cast, value_slice): Delete use.
797         * valarith.c (value_subscript, value_concat): Delete use.
798
799 2004-11-02  Paul Hilfinger  <hilfingr@nile.gnat.com>
800
801         * NEWS: GDB understands GNAT Ada.
802
803 2004-11-01  Joseph S. Myers  <joseph@codesourcery.com>
804
805         * Makefile.in (ALLDEPFILES): Add amd64-sol2-tdep.c.
806         (amd64-sol2-tdep.o): Add dependencies.
807         * amd64-sol2-tdep.c, config/i386/sol2-64.mh,
808         config/i386/sol2-64.mt: New files.
809         * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offset,
810         amd64_sol2_gregset32_reg_offset, _initialize_amd64_sol2_nat): New.
811         (supply_gregset): Correct order of arguments to
812         amd64_supply_native_gregset.
813         (fill_gregset): Correct order of arguments to
814         amd64_collect_native_gregset.
815         * configure.host (i[34567]86-*-solaris2.1[0-9]*): Add new case.
816         * configure.tgt (i[34567]86-*-solaris2.1[0-9]*): Likewise.
817         * configure.in (*-*-solaris2.[[6789]]): Add *-*-solaris2.1[[0-9]]
818         for definition of NEW_PROC_API.
819         * configure: Regenerate.
820
821 2004-11-01  Joseph S. Myers  <joseph@codesourcery.com>
822
823         * MAINTAINERS (Write After Approval): Add myself.
824
825 2004-11-01  Andrew Cagney  <cagney@gnu.org>
826
827         * configure.tgt: Mark d10v-*-* as obsolete.
828         * config/d10v/d10v.mt, d10v-tdep.c: Obsolete files.
829
830 2004-11-01  Paul N. Hilfinger  <Hilfinger@gnat.com>
831
832         * values.c (modify_field): Correct handling of bit-fields that
833         don't fit in 32 bits.  Use unsigned operations throughout and 
834         simplify the code a bit.  Document preconditions.
835
836 2004-10-31  Andrew Cagney  <cagney@gnu.org>
837
838         * config/pa/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
839         * config/tm-sysv4.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
840         (in_plt_section): Delete.
841
842         * mips-tdep.c (mips_in_solib_return_trampoline): Delete.
843         (mips_gdbarch_init): Do not set same.
844
845         * arch-utils.c (generic_in_solib_call_trampoline): Delete.
846         * arch-utils.h (generic_in_solib_call_trampoline): Delete.
847
848         * gdbarch.sh (in_solib_call_trampoline): Delete.
849         * gdbarch.h, gdbarch.c: Re-generate.
850
851         * hppa-tdep.c (hppa_stub_unwind_sniffer): Replace
852         IN_SOLIB_CALL_TRAMPOLINE with tdep.in_solib_call_trampoline.
853         * hppa-tdep.h (struct gdbarch_tdep): Add in_solib_call_trampoline.
854         * hppa-hpux-tdep.c (hppa_hpux_init_abi): Set same.
855         * hppa-linux-tdep.c (hppa_linux_init_abi): Ditto.
856
857 2004-10-31  Mark Kettenis  <kettenis@gnu.org>
858
859         * mipsnbsd-nat.c: Include "target.h" and "inf-ptrace.h".
860         (mipsnbsd_fetch_inferior_registers): Rename from
861         fetch_inferior_registers.  Make static.
862         (mipsnbsd_store_inferior_registers): Rename from
863         store_inferior_registers.  Make static.
864         (_initialize_mipsnbsd_nat): New function and prototype.
865         * Makefile.in (mipsnbsd-nat.o): Update dependencies.
866         * config/mips/nbsd.mh (NAT_CLIBS, NAT_FILE): Remove variables.
867         (NATDEPFILES): Remove infptrace.o and inftarg.o.  Add
868         inf-ptrace.o.
869
870 2004-10-31  Andrew Cagney  <cagney@gnu.org>
871
872         * xstormy16-tdep.c (xstormy16_in_solib_call_trampoline)
873         (xstormy16_gdbarch_init): Do not set in_solib_call_trampoline,
874         delete corresponding unused function.
875         * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Really do not set
876         in_solib_call_trampoline.
877         * config/arm/tm-embed.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
878         * config/powerpc/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
879         * config/mips/tm-nbsd.h: Ditto.
880         * config/arm/tm-linux.h: Ditto.
881         * config/mips/tm-linux.h: Ditto.
882
883         * armnbsd-tdep.c (arm_netbsd_aout_init_abi)
884         (arm_netbsd_aout_in_solib_call_trampoline): Do not set
885         in_solib_call_trampoline, delete corresponding unused function.
886         * vaxnbsd-tdep.c (vaxnbsd_aout_in_solib_call_trampoline) 
887         (vaxnbsd_aout_init_abi): Ditto.
888         * sparcnbsd-tdep.c (sparcnbsd_aout_in_solib_call_trampoline) 
889         (sparc32nbsd_aout_init_abi): Ditto.
890         * ppc-linux-tdep.c (ppc64_in_solib_call_trampoline) 
891         (ppc_linux_init_abi): Ditto.
892         * ns32knbsd-tdep.c (ns32knbsd_aout_in_solib_call_trampoline) 
893         (ns32knbsd_init_abi_aout): Ditto.
894         * mips-tdep.c (mips_in_call_stub, mips_gdbarch_init): Ditto.
895         * mips-linux-tdep.c (mips_linux_init_abi): Ditto.
896         * m68kbsd-tdep.c (m68kbsd_aout_in_solib_call_trampoline) 
897         (m68kbsd_aout_init_abi): Ditto.
898         * i386-cygwin-tdep.c (i386_cygwin_in_solib_call_trampoline) 
899         (i386_cygwin_init_abi): Ditto.
900         * i386bsd-tdep.c (i386bsd_aout_in_solib_call_trampoline) 
901         (i386bsd_init_abi): Ditto.
902
903         * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Do not set
904         in_solib_call_trampoline to in_plt_entry, IN_SOLIB_CALL_TRAMPOLINE
905         isn't used by this architecture.
906         * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
907         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Ditto.
908         * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Ditto.
909         * s390-tdep.c (s390_gdbarch_init): Ditto.
910         * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
911         * m68klinux-tdep.c (m68k_linux_init_abi): Ditto.
912         * i386-tdep.c (i386_svr4_init_abi): Ditto.
913         * i386-nto-tdep.c (i386nto_init_abi): Ditto.
914         * arm-linux-tdep.c (arm_linux_init_abi): Ditto.
915         * amd64-tdep.c (amd64_init_abi): Ditto.
916
917         * vaxnbsd-tdep.c (vaxnbsd_elf_init_abi): Do not set
918         in_solib_call_trampoline to its default value of
919         generic_in_solib_call_trampoline.
920         * ppcobsd-tdep.c (ppcobsd_init_abi): Ditto.
921         * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Ditto.
922         * i386obsd-tdep.c (i386obsd_elf_init_abi): Ditto.
923         * i386nbsd-tdep.c (i386nbsdelf_init_abi): Ditto.
924         * i386fbsd-tdep.c (i386fbsd_init_abi): Ditto.
925         * hppabsd-tdep.c (hppabsd_init_abi): Ditto.
926
927         * mips-tdep.c (mips_dump_tdep): Don't print any of the macros.
928
929         * config/mips/obsd64.mt (DEPRECATED_TM_FILE): Delete.
930
931         * config/mips/tm-mips.h: Delete file.
932         * remote-mips.c: Delete tm-mips.h from comment.
933         * config/mips/embed.mt (DEPRECATED_TM_FILE): Delete.
934         * config/mips/tm-nbsd.h: Don't include tm-mips.h.
935         * config/mips/irix6.mt (DEPRECATED_TM_FILE): Delete.
936         * config/mips/tm-linux.h: Don't include tm-mips.h.
937         * config/mips/tm-vxmips.h: Don't include tm-mips.h.
938         * config/mips/irix5.mt (DEPRECATED_TM_FILE): 
939         * config/mips/tm-wince.h: Don't include.
940
941         * mdebugread.h (MDEBUG_EFI_SYMBOL_NAME): Define.
942         * mdebugread.c (MDEBUG_EFI_SYMBOL_NAME): Delete.
943         * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
944         * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
945
946         * mdebugread.h (ecoff_relocate_efi): Delete declaration.
947         * mdebugread.c (ecoff_relocate_efi): Delete function.
948         * objfiles.c (objfile_relocate): Delete #ifdef
949         MDEBUG_EFI_SYMBOL_NAME code.
950
951 2004-10-31  Orjan Friberg <organ.friberg@axis.com>
952             Andrew Cagney  <cagney@gnu.org>
953
954         * gdbarch.sh (single_step_through_delay): Add.
955         * gdbarch.h, gdbarch.c: Re-generate.
956         * config/mips/tm-mips.h (STEP_SKIPS_DELAY_P, STEP_SKIPS_DELAY)
957         (mips_step_skips_delay): Delete.
958         * mips-tdep.c (mips_single_step_through_delay): Replace
959         mips_step_skips_delay.
960         (mips_gdbarch_init): Set single_step_through_delay.
961         (mips_dump_tdep): Do not print STEP_SKIPS_DELAY.
962         
963 2004-10-31  Mark Kettenis  <kettenis@gnu.org>
964
965         * tramp-frame.c (tramp_frame_prepend_unwinder): Set unwinder type
966         from TRAMP_FRAME frame type.
967
968 2004-10-31  Andrew Cagney  <cagney@gnu.org>
969
970         * mdebugread.c (parse_procedure): Wrap use of RA_REGNUM in #ifdef.
971
972         * mips-tdep.c (mips_ignore_helper): Delete.
973         * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Delete.
974         * infrun.c (handle_inferior_event): Delete #ifdef
975         DEPRECATED_IGNORE_HELPER_CALL code.
976
977         * config/mips/tm-mips.h (RA_REGNUM): Delete.
978
979 2004-10-31  Mark Kettenis  <kettenis@gnu.org>
980
981         * i386v4-nat.c (supply_gregset, supply_fpregset, fill_gregset)
982         (fill_fpregset): Do not compile for 64-bit systems.
983         * i386-sol2-nat.c: Don't include "i386v4-nat.c".
984         * Makefile.in (i386-sol2-nat.o): Update dependencies.
985         * config/i386/i386sol2.mh (NATDEPFILES): Add back i386v4-nat.c.
986
987 2004-10-30  Andrew Cagney  <cagney@gnu.org>
988
989         * mdebugread.h: Include "coff/sym.h" and "coff/symconst.h".
990         (struct mdebug_extra_func_info): Define.
991         * config/alpha/tm-alpha.h: Delete same.
992         * config/mips/tm-mips.h: Delete same.
993         * mdebugread.c: Delete same.
994         * Makefile.in: Update dependencies.
995         * mips-mdebug-tdep.c: Include "mdebugread.h".
996
997         * objfiles.c: Include "mdebugread.h".
998         * mdebugread.c: Include "mdebugread.h".
999         (ecoff_relocate_cfi): Delete.
1000         * config/alpha/tm-alpha.h (ecoff_relcate_cfi): Delete.
1001         * config/mips/tm-mips.h (ecoff_relcate_cfi): Delete.
1002         * mdebugread.h (ecoff_relocate_efi): New file.
1003         * Makefile.in: Update dependencies.
1004         
1005         * mips-tdep.c (struct frame_extra_info): Delete.
1006         (temp_proc_desc): Delete.
1007
1008         * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Rename
1009         MIPS_EFI_SYMBOL_NAME.
1010         (mips_extra_func_info_t, mips_extra_func_info): Delete.
1011         (struct mdebug_extra_func_info): Replace struct
1012         alpha_extra_func_info and alpha_extra_func_info_t.
1013         * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Rename
1014         MIPS_EFI_SYMBOL_NAME.
1015         (struct mdebug_extra_func_info): Replace struct
1016         alpha_extra_func_info and alpha_extra_func_info_t.
1017         * objfiles.c, mips-tdep.c, mips-mdebug-tdep.c: Update.
1018         * mdebugread.c, alpha-mdebug-tdep.c: 
1019
1020         Suggested by Mark Kettenis.
1021         * config/mips/tm-mips.h (struct mips_extra_func_info): Delete
1022         fields frame_adjust and high_addr.
1023         * mips-mdebug-tdep.c (PROC_HIGH_ADDR, PROC_FRAME_ADJUST): Delete.
1024         (non_heuristic_proc_desc): Delete references.
1025
1026         * mips-tdep.h (MIPS_PRID_REGNUM): Add.
1027         * config/mips/tm-mips.h (PRID_REGNUM): Delete.
1028         * mips-tdep.c: Update.
1029
1030         * mips-tdep.h (MIPS_FIRST_EMBED_REGNUM)
1031         (MIPS_LAST_EMBED_REGNUM): Add.
1032         * config/mips/tm-mips.h (FIRST_EMBED_REGNUM)
1033         (LAST_EMBED_REGNUM): Delete.
1034         * mipsv4-nat.c, mips-tdep.c, mips-linux-tdep.c: Update.
1035
1036         * config/mips/tm-mips.h (PS_REGNUM): Delete.
1037         * mips-tdep.h (MIPS_PS_REGNUM): Add.
1038         * remote-vxmips.c, mipsv4-nat.c, mips-tdep.c: Update.
1039         * mips-linux-nat.c: Update.
1040
1041         * mips-tdep.h: Add comments on registers.
1042         (MIPS_UNUSED_REGNUM): Define.
1043         * config/mips/tm-mips.h (ZERO_REGNUM, UNUSED_REGNUM)
1044         (T9_REGNUM, V0_REGNUM, A0_REGNUM): Delete.
1045         * irix5-nat.c, mipsv4-nat.c, mips-linux-tdep.c: Update.
1046         * mips-linux-nat.c, remote-mips.c: Update.
1047
1048         * config/mips/tm-mips.h (t_insn): Delete.
1049         * mips-tdep.c (mips_fetch_instruction, mips_skip_trampoline_code):
1050         Replace t_insn with ULONGEST.
1051
1052 2004-10-30  Mark Kettenis  <kettenis@gnu.org>
1053
1054         * mipsnbsd-tdep.c: Include "regset.h" and "gdb_assert.h".
1055         (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM)
1056         (MIPSNBSD_NUM_GREGS, MIPSNBSD_NUM_FPREGS): New defines.
1057         (fetch_core_registers, fetch_elfcore_registers): Remove functions.
1058         (mipsnbsd_core_fns, mipsnbsd_elfcore_fns): Remove variables.
1059         (mipsnbsd_core_osabi_sniffer): New function.
1060         (mipsnbsd_init_abi): Set regset_from_core_section.
1061         (_initialize_mipsnbsd_tdep): Remove calls to
1062         deprecated_add_core_fns.
1063         (mipsnbsd_supply_fpregset, mipsnbsd_supply_gregset)
1064         (mipsnbsd_regset_from_core_section): New functions.
1065         (mipsnbsd_gregset, mipsnbsd_fpregset): New variables.
1066         * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
1067
1068         * procfs.c (procfs_fetch_registers, procfs_store_registers): Like
1069         Remove optimization for DEPRECATED_FP_REGNUM.
1070
1071 2004-10-30  Andrew Cagney  <cagney@gnu.org>
1072
1073         * alpha-tdep.c (alpha_setup_arbitrary_frame): Delete.
1074         * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Delete.
1075         (alpha_setup_arbitrary_frame): Delete.
1076         * mips-tdep.c (setup_arbitrary_frame): Delete.
1077         * config/mips/tm-mips.h (SETUP_ARBITRARY_FRAME): Delete.
1078         (setup_arbitrary_frame): Delete.
1079         * stack.c (parse_frame_specification_1): When specified, call
1080         create_new_frame with two parameters.  Delete #ifdef
1081         SETUP_ARBITRARY_FRAME.
1082
1083         * config/mips/tm-mips.h (MIPS16_INSTLEN, MIPS_NUMREGS)
1084         (MIPS_INSTLEN): Delete.
1085         * mips-tdep.h (enum mips_insn_size): Rename MIPS32_INSN_SIZE and
1086         MIPS16_INSN_SIZE to MIPS_INSN32_SIZE and MIPS_INSN16_SIZE.
1087         * remote-mips.c, mips-tdep.c: Update.
1088
1089         * config/mips/embed.mt (TDEPFILES): Add mips-mdebug-tdep.o.
1090         * mips-mdebug-tdep.h, mips-mdebug-tdep.c: New files.
1091         * mips-tdep.c (mips_mdebug_frame_cache)
1092         (mips_mdebug_frame_this_id, mips_mdebug_frame_prev_register)
1093         (mips_mdebug_frame_unwind, mips_mdebug_frame_sniffer)
1094         (mips_mdebug_frame_base_address, mips_mdebug_frame_sniffer)
1095         (mips_mdebug_frame_base_sniffer, non_heuristic_proc_desc)
1096         (compare_pdr_entries, the_bfd, mips16_fetch_instruction): Delete.
1097         (mips_gdbarch_init): Do not append mdebug sniffers.
1098         (PROC_LOW_ADDR, PROC_HIGH_ADDR, PROC_FRAME_OFFSET) 
1099         (PROC_FRAME_REG, PROC_FRAME_ADJUST, PROC_REG_MASK) 
1100         (PROC_FREG_MASK, PROC_REG_OFFSET, PROC_FREG_OFFSET, PROC_PC_REG) 
1101         (PROC_SYMBOL, _PROC_MAGIC_): Delete.
1102         * Makefile.in: Update dependencies.
1103
1104         * mips-tdep.h (mips_abi_regsize): Declare.
1105         * mips-tdep.c (mips_abi_regsize): Make non-static.
1106
1107         * mips-tdep.c (gdb_print_insn_mips): Simplify.
1108         (make_mips16_addr): Delete.
1109
1110 2004-10-30  Mark Kettenis  <kettenis@gnu.org>
1111
1112         * i386-sol2-nat.c: New file.
1113         * Makefile.in (ALLDEPFILES): Add i386-sol2-nat.c and
1114         i386-sol2-tdep.c.
1115         (i386-sol2-nat.o): Update dependencies.
1116         * config/i386/i386sol2.mh (NATDEPFILES): Remove i386v4.o, add
1117         i386-sol2-nat.o.
1118
1119 2004-10-30  Andrew Cagney  <cagney@gnu.org>
1120
1121         Total breakage identified by Joel Brobecker.
1122         * mips-tdep.c (after_prologue): Delete.
1123         (mips_skip_prologue): Use skip_prologue_using_sal.
1124         (heuristic_proc_desc): Delete, unused.
1125
1126 2004-10-30  Mark Kettenis  <kettenis@gnu.org>
1127
1128         * procfs.c (proc_get_gregs, proc_get_fpregs, proc_set_gregs)
1129         (proc_set_fpregs, procfs_fetch_registers, procfs_store_registers):
1130         Cleanup coding style.
1131
1132 2004-10-30  Andrew Cagney  <cagney@gnu.org>
1133
1134         * mips-tdep.h (mips_pc_is_mips16): Declare.
1135         * mips-tdep.c (mips_pc_is_mips16): Rename pc_is_mips16, make
1136         non-static.  Update calls.
1137
1138         * cli/cli-decode.c (add_setshow_enum_cmd): New function.
1139         * command.h (add_setshow_enum_cmd): Declare.
1140         * mips-tdep.c (_initialize_mips_tdep): Use add_setshow_enum_cmd.
1141
1142         * mips-tdep.c (_initialize_mips_tdep): Use
1143         add_setshow_zinteger_cmd.
1144         
1145         * mips-tdep.c (mips_eabi_extract_return_value)
1146         (mips_o64_extract_return_value, mips_o64_store_return_value)
1147         (return_value_location, mips_eabi_reg_struct_has_addr)
1148         (mips_eabi_use_struct_convention)
1149         (mips_eabi_store_return_value): Delete.
1150         (mips_eabi_store_return_value): New function.
1151         (mips_eabi_return_value): New function.
1152         (mips_gdbarch_init): For O64 and EABI, delete
1153         extract_return_value, store_return_value, use_struct_convention
1154         and reg_struct_has_addr, add return_value.
1155
1156         * mips-tdep.c (read_signed_register): Use
1157         regcache_cooked_read_signed.
1158
1159 2004-10-30  Mark Kettenis  <kettenis@gnu.org>
1160
1161         * mipsread.c: Cleanup coding style.
1162         (mipscoff_new_init, mipscoff_symfile_init, mipscoff_symfile_read)
1163         (mipscoff_symfile_finish): Remove prototypes.
1164
1165 2004-10-29  Mark Kettenis  <kettenis@gnu.org>
1166
1167         * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
1168         (mips_mdebug_frame_cache, mips16_scan_prologue)
1169         (mips32_scan_prologue, mips_stub_frame_cache)
1170         (heuristic_proc_start, heuristic_proc_desc)
1171         (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
1172         (mips_n32n64_return_value, mips_o32_push_dummy_call)
1173         (mips_o32_return_value, mips_o64_push_dummy_call)
1174         (mips_step_skips_delay, mips_skip_trampoline_code)
1175         (mips_gdbarch_init): Use MIPS_A0_REGNUM instead of A0_REGNUM,
1176         MIPS_RA_REGNUM instead of RA_REGNUM, MIPS_T9_REGNUM instead of
1177         T9_REGNUM, MIPS_V0_REGNUM instead of V0_REGNUM, MIPS_ZERO_REGNUM
1178         instead of ZERO_REGNUM, MIPS32_SIZE_INSN instead of MIPS_INSTLEN
1179         and MIPS16_INSN_SIZE instead of MIPS16_INSTLEN.
1180         (mips_dump_tdep): Don't print A0_REGNUM, RA_REGNUM,
1181         T9_REGNUM, V0_REGNUM, ZERO_REGNUM, MIPS_INSTLEN and
1182         MIPS16_INSTLEN.  Use MIPS_A0_REGNUM instead of A0_REGNUM.
1183         * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
1184         (mips_linux_n32n64_sigframe_init): Use MIPS_ZERO_REGNUM instead of
1185         ZERO_REGNUM.
1186         * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
1187         (mipsnbsd_cannot_store_register): Use MIPS_ZERO_REGNUM instead of
1188         ZERO_REGNUM.
1189         (mipsnbsd_get_longjmp_target): Use MIPS_A0_REGNUM instead of
1190         A0_REGNUM.
1191         * mipsnbsd-nat.c: Include "mips-tdep.h".
1192         (getregs_supplies): Use MIPS_ZERO_REGNUM instead of ZERO_REGNUM.
1193         * Makefile.in (mipsnbsd-nat.o): Update dependencies.
1194
1195 2004-10-29  Andrew Cagney  <cagney@gnu.org>
1196
1197         * stack.c (parse_frame_specification_1): New function based on
1198         parse_frame_specification.  Add message and selected_frame_p
1199         paramters.  Truely always return non-NULL.
1200         (parse_frame_specification): Call parse_frame_specification_1.
1201         (frame_info): Update.  Eliminate target_has_stack check.
1202         (select_frame_command): Update.
1203
1204 2004-10-29  Andrew Cagney  <cagney@gnu.org>
1205
1206         * frame.h (get_selected_frame): Add message parameter.
1207         * frame.c (get_selected_frame): Add and use message parameter.
1208         * stack.c (current_frame_command, return_command, locals_info)
1209         (catch_info, args_info, up_silently_base, down_silently_base): Use
1210         get_selected_frame with an explicit message.
1211         * thread.c, stack.c, sh-tdep.c, sh64-tdep.c: Update.
1212         * remote-rdp.c, remote-mips.c, remote-e7000.c: Update.
1213         * ocd.c, mi/mi-main.c, mi/mi-cmd-stack.c: Update.
1214         * infrun.c, inflow.c, infcmd.c, frame.c: Update.
1215         * findvar.c, eval.c, corelow.c, bsd-kvm.c: Update.
1216         * breakpoint.c: Update.
1217
1218 2004-10-29  Andrew Cagney  <cagney@gnu.org>
1219
1220         * trad-frame.c (trad_frame_get_prev_register): Use
1221         frame_unwind_register instead of frame_register_unwind, do not
1222         recurse the register's location.
1223         * xstormy16-tdep.c (xstormy16_frame_prev_register): 
1224         * sparc-tdep.c (sparc32_frame_prev_register): Ditto.
1225         * sparc64-tdep.c (sparc64_frame_prev_register): Ditto.
1226         * sh-tdep.c (sh_frame_prev_register): Ditto.
1227         * m68k-tdep.c (m68k_frame_prev_register): Ditto.
1228         * i386-tdep.c (i386_frame_prev_register): Ditto.
1229         * dwarf2-frame.c (dwarf2_frame_prev_register): Ditto.
1230         * amd64-tdep.c (amd64_frame_prev_register): Ditto.
1231
1232 2004-10-28  Mark Kettenis  <kettenis@jive.nl>
1233
1234         * proc-events.c: Fix several coding-style issues.  Consistently
1235         use #ifdef instead of #if defined().
1236         (proc_prettyfprint_fault, proc_prettyfprint_faultset): Use
1237         ARRAY_SIZE.
1238         (_initialize_proc_events): New prototype.
1239
1240         * proc-why.c: Fix several coding-style issues.
1241         (proc_prettyfprint_why): Use ARRAY_SIZE.
1242
1243 2004-10-27  Jim Blandy  <jimb@redhat.com>
1244
1245         * remote.c (fetch_register_using_p): Construct 'p' packet in a
1246         manner independent of the host byte order.
1247
1248 2004-10-27  Mark Kettenis  <kettenis@gnu.org>
1249
1250         * mips-tdep.c (id_delayed): Remove prototype.
1251
1252 2004-10-26  Mark Kettenis  <kettenis@gnu.org>
1253
1254         * mips-tdep.h: Add MIPS_ZERO_REGNUM, MIPS_AT_REGNUM,
1255         MIPS_V0_REGNUM. MIPS_A0_REGNUM, MIPS_T9_REGNUM and MIPS_RA_REGNUM
1256         to enum with register numbers.
1257         (enum mips_insn_size): New enum.
1258
1259 2004-10-26  Andrew Cagney  <cagney@gnu.org>
1260
1261         * config/mips/tm-linux.h: Delete #undef SKIP_TRAMPOLINE_CODE.
1262         * mips-tdep.c (mips_skip_trampoline_code): Rename mips_skip_stub.
1263         (mips_gdbarch_init): Update.
1264         (mips_dump_tdep): Do not print SKIP_TRAMPOLINE_CODE.
1265
1266         * config/arm/tm-linux.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1267         * config/mips/tm-nbsd.h, config/mips/tm-linux.h: Delete #undef
1268         IN_SOLIB_RETURN_TRAMPOLINE.
1269         * mips-tdep.c (mips_dump_tdep): Do not print
1270         IN_SOLIB_RETURN_TRAMPOLINE.
1271         (mips_in_solib_return_trampoline): Rename mips_in_return_stub.
1272         (mips_gdbarch_init): Update.
1273
1274         * mips-tdep.h (mips_software_single_step): Move to here ...
1275         * config/mips/tm-mips.h: ... from here.
1276         * config/mips/tm-linux.h (SOFTWARE_SINGLE_STEP_P) 
1277         (SOFTWARE_SINGLE_STEP): Delete.
1278         * mips-linux-tdep.c (mips_linux_init_abi): Set software_single_step.
1279
1280 2004-10-25  Andrew Cagney  <cagney@gnu.org>
1281
1282         * NEWS: Add Changes since GDB 6.3 section.
1283
1284 2004-10-23  Andreas Schwab  <schwab@suse.de>
1285
1286         * ada-lang.c (grow_vect): Return the new array instead of
1287         expecting pointer to pointer to avoid violation of aliasing rules.
1288         * ada-lang.h (GROW_VECT): Adapt call to grow_vect.
1289
1290 2004-10-23  Ulrich Weigand  <uweigand@de.ibm.com>
1291
1292         * s390-tdep.c (enum pv_boolean): Remove.
1293         (pv_is_array_ref): Remove.
1294         (s390_on_stack): Remove.
1295         (S390_NUM_SPILL_SLOTS): Remove.
1296         (struct s390_prologue_data): Remove members 'spill' and 'back_chain',
1297         add members 'gpr_slot', 'fpr_slot', and 'back_chain_saved_p'.
1298         (s390_store): Track all stores of orginal incoming registers to the
1299         stack constant offsets relative to the CFA, instead of only tracking
1300         stores into specific spill slots.
1301         (s390_load): Likewise.
1302         (s390_analyze_prologue): Adapt to struct s390_prologue_data changes.
1303         (s390_prologue_frame_unwind_cache): Likewise.  Only track registers
1304         defined as call-saved by the ABI.
1305         (s390_push_dummy_call): Use bottom of dummy call argument save area
1306         as return value, not the top.  Do not store to the called function's
1307         register save area.
1308         (s390_unwind_dummy_id): Adapt accordingly.
1309
1310 2004-10-23  Andrew Cagney  <cagney@gnu.org>
1311
1312         * objfiles.h (struct objfile): Rename obj_private to
1313         deprecated_obj_private, sym_private to deprecated_sym_private, and
1314         sym_stab_info to deprecated_sym_stab_info.
1315         * gdb-stabs.h: Update.
1316         * elfread.c: Update.
1317         * dbxread.c: Update.
1318         * coffread.c: Update.
1319         * xcoffread.c: Update.
1320         * symfile.c: Update.
1321         * somread.c: Update.
1322         * nlmread.c: Update.
1323         * mdebugread.c: Update.
1324         * hpread.c: Update.
1325         * coffread.c: Update.
1326
1327 2004-10-23  Mark Kettenis  <kettenis@gnu.org>
1328
1329         * mips64obsd-nat.c, mips64obsd-tdep.c: New files.
1330         * configure.host: Add mips64*-*-openbsd*.
1331         * configure.tgt: Add mips64*-*-openbsd*.
1332         * Makefile.in (ALLDEPFILES): Add mips64obsd-nat.o,
1333         mips64obsd-tdep.c.
1334         (mips64obsd-nat.o, mips64obsd-tdep.o): New dependecies.
1335         * config/mips/obsd64.mh, config/mips/obsd64.mt: New files.
1336
1337 2004-10-21  Joel Brobecker  <brobecker@gnat.com>
1338
1339         * symtab.c (symbol_search_name): Minor reformatting.
1340
1341 2004-10-20  Joel Brobecker  <brobecker@gnat.com>
1342
1343         * symtab.h: Fix typo in comment.
1344
1345 2004-10-19  Mark Kettenis  <kettenis@gnu.org>
1346
1347         * dwarf2read.c (struct comp_unit_head): Fix coding style.
1348         (dwarf_decode_line_header): Likewise.
1349
1350 2004-10-19  Michael Chastain  <mec.gnu@mindspring.com>
1351
1352         * NEWS: GDB works with GCC -feliminate-dwarf2-dups.
1353
1354 2004-10-19  Andrew Cagney  <cagney@gnu.org>
1355
1356         GDB 6.3 branch created.
1357         * version.in: Bump to version 6.3.50_2004-10-19-cvs.
1358
1359 2004-10-15  Joel Brobecker  <brobecker@gnat.com>
1360
1361         * dwarf2read.c (set_cu_language): Set language to Ada for
1362         DW_LANG_Ada83 and DW_LANG_Ada95.
1363
1364 2004-10-15  Michael Chastain  <mec.gnu@mindspring.com>
1365
1366         From Andreas Schwab <schwab@suse.de>:
1367         * Makefile.in (.y.c, .l.c.): Fix the substitutions for
1368         for xmalloc and xrealloc.
1369
1370 2004-10-15  Andrew Cagney  <cagney@gnu.org>
1371
1372         * ada-exp.y, ada-lex.l: Use xmalloc and xrealloc through out.
1373         * inf-ptrace.c: Include "gdb_wait.h" instead of <wait.h>.
1374         * Makefile.in (.y.c, .l.c): Don't replace xmalloc with xxmalloc.
1375         Update dependencies.
1376
1377 2004-10-15  Paul Hilfinger  <Hilfinger@gnat.com>
1378
1379         * ada-lang.c (ada_lookup_symbol): Correct comment.
1380         (ada_evaluate_subexp): Change error message for
1381         OP_FUNCALL case so as not to indicate an internal error.
1382         
1383 2004-10-15  Joel Brobecker  <brobecker@gnat.com>
1384
1385         Committed by Paul Hilfinger.
1386         * ada-lang.c (ada_template_to_fixed_record_type_1): Detect bogus
1387         type sizes in XVE/XVU types, and emit a warning when that happens,
1388         instead of rounding up the size of the resulting type.
1389         Some minor reformatting.
1390         (ada_is_aligner_type): Do not consider a type as an aligner type 
1391         if there is a corresponding XVS type as well.
1392         (ada_evaluate_subexp): For TERNOP_SLICE, handle cases where we 
1393         have several levels of pointer indirection to the array.
1394         
1395 2004-10-15  Jerome Guitton  <guitton@gnat.com>
1396
1397         Committed by Paul Hilfinger.
1398         * ada-lang.c (check_size): New function.
1399         (coerce_unspec_val_to_type): call check_size to make sure
1400         that the object size is reasonable.
1401         (ada_evaluate_subexp): in UNOP_IND: Ditto. In TERNOP_SLICE:
1402         Implements the case when we get a reference when we evaluate
1403         the expression of one of the bounds of the slice.
1404         (ada_value_struct_elt): when a packed array field is
1405         a reference, use ada_coerce_ref to dereference it; use 
1406         ada_value_ind only if it is a pointer.
1407
1408 2004-10-15  Joel Brobecker  <brobecker@gnat.com>
1409
1410         * mips-tdep.c (mips32_scan_prologue): Move the implementation up
1411         a bit to avoid the necessity of an advance declaration. Remove
1412         declaration.
1413         (set_reg_offset): Move implemenation up.
1414         (mips16_get_imm): Likewise.
1415         (mips16_scan_prologue): Likewise.
1416         (reset_saved_regs): Likewise.
1417         (mips32_scan_prologue): Likewise.
1418
1419 2004-10-14  Joel Brobecker  <brobecker@gnat.com>
1420
1421         * mips-tdep.c (mips32_scan_prologue): Add advance declaration.
1422         Remove sp as a parameter, compute it internally instead. Move
1423         prologue scanning limit from heuristic_proc_desc to here.
1424         (mips16_scan_prologue): Likewise.
1425         (mips_insn16_frame_cache): Replace call to heuristic_proc_desc
1426         by call to mips16_scan_prologue.
1427         (mips_insn32_frame_cache): Replace call to heuristic_proc_desc
1428         by call to mips32_scan_prologue.
1429         (heuristic_proc_desc): Remove code that's no longer necessary.
1430         Update calls to mips16_scan_prologue and mips32_scan_prologue.
1431         (mips_skip_prologue): Update calls to mips16_scan_prologue
1432         and mips32_scan_prologue.
1433
1434 2004-10-14  Joel Brobecker  <brobecker@gnat.com>
1435
1436         * mips-tdep.c (mips16_scan_prologue): Merge code from
1437         mips16_skip_prologue.  Now return the address of the first
1438         instruction past the function prologue.
1439         (mips16_skip_prologue): Remove, no longer necessary.
1440         (mips_skip_prologue): Replace call to mips16_skip_prologue
1441         by call to mips16_scan_prologue.
1442
1443 2004-10-14  Joel Brobecker  <brobecker@gnat.com>
1444
1445         * mips-tdep.c (mips32_scan_prologue): Merge code from
1446         mips32_skip_prologue.  Now return the address of the first
1447         instruction past the function prologue.
1448         (mips32_skip_prologue): Remove.  No longer necessary.
1449         (mips16_skip_prologue): Add parameter end_pc instead of
1450         computing it.
1451         (mips_skip_prologue): Compute the upper limit for the
1452         prologue scanning. Update call to mips16_skip_prologue.
1453         Replace call to mips32_skip_prologue by call to
1454         mips32_scan_prologue.
1455
1456 2004-10-14  Mark Kettenis  <kettenis@gnu.org>
1457
1458         * hppa-tdep.c (hppa_frame_cache): Add support for OpenBSD and
1459         NetBSD system call stubs that store %rp in the ERP slot of the
1460         stack frame.
1461
1462         * source.c: Always define O_BINARY to 0 if not defined already.
1463         (openp): Unconditionally use O_BINARY.
1464
1465         * top.c (gdb_readline): Always accept "\r\n" as a line-ending.
1466         * event-top.c (gdb_readline2): Likewise.
1467
1468 2004-10-14  Orjan Friberg  <orjanf@axis.com>
1469
1470         * cris-tdep.c (_initialize_cris_tdep): Re-add call to
1471         deprecated_add_core_fns which was removed by mistake.
1472
1473 2004-10-13  Kevin Buettner  <kevinb@redhat.com>
1474
1475         * ia64-linux-nat.c (fill_gregset, fill_fpregset): Replace
1476         references to deprecated_registers[] with equivalent code.
1477
1478 2004-10-13  Kevin Buettner  <kevinb@redhat.com>
1479
1480         * rs6000-tdep.c (rs6000_push_dummy_call): Replace references to
1481         ``deprecated_registers'' with equivalent code.  Use gdb_assert()
1482         instead of explicit test and print statement.
1483
1484 2004-10-12  Mark Kettenis  <kettenis@gnu.org>
1485
1486         * sparc-nat.c: Include "inf-ptrace.h".
1487         (sparc_target): New function.
1488         * sparc-nat.h: Update copyright year.
1489         (sparc_target): New prototype.
1490         * sparcnbsd-nat.c: Don't include "gdbcore.h", include "target.h".
1491         (_initialize_sparcnbsd_nat): Construct and add target vector.
1492         * sparc64nbsd-nat.c: Include "target.h".
1493         (_initialize_sparc64nbsd_nat): Construct and add target vector.
1494         * Makefile.in (sparc-nat.o, sparcnbsd-nat.o, sparc64nbsd-nat.o):
1495         Update dependencies.
1496         * config/sparc/nbsd64.mh (NATDEPFILES): Remove infptrace.o and
1497         inftarg.o, add inf-ptrace.o.
1498         * config/sparc/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1499         inftarg.o, add inf-ptrace.o and bsd-kvm.o.
1500         (NAT_FILE): Set to nm-bsd.h.
1501         (LOADLIBES): New variable.
1502         * config/sparc/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
1503         infarg.o, add inf-ptrace.o.
1504         * config/sparc/nm-nbsdaout.h: Remove file.
1505         * config/sparc/fbsd.mh (NATDEPFILES): Add inf-ptrace.o.
1506         * config/sparc/linux.mh (NATDEPFILES): Add inf-ptrace.o.
1507         * config/sparc/linux64.mh (NATDEPFILES): Add inf-ptrace.o.
1508
1509         * defs.h [!FOPEN_RB]: Include "fopen-bin.h" instead of
1510         "fopen-same.h".  Update comment.
1511
1512 2004-10-11  Mark Kettenis  <kettenis@gnu.org>
1513
1514         * i386gnu-nat.c: Include "gdb_string.h".
1515         (fetch_fpregs): Use i387_supply_fxsave to fill the floating-point
1516         registers when the floating-point state isn't initialized.
1517         * Makefile.in (i386gnu-nat.o): Update dependencies.
1518
1519 2004-10-11  David Anderson  <davea@sgi.com>
1520
1521         * regcache.c (regcache_raw_read): Comment was missing "to".
1522         Extraneous ' removed.
1523         * gdb_thread_db.h (struct td_thrinfo): ti_lid field
1524         comment now describes use.
1525
1526 2004-10-11  Orjan Friberg  <orjanf@axis.com>
1527
1528         * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start)
1529         (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
1530         (cris_sigtramp_frame_this_id, cris_sigtramp_frame_prev_register)
1531         (cris_sigtramp_frame_sniffer): New functions.
1532         (cris_gdbarch_init): Hook in signal trampoline unwinder.
1533         (cris_dwarf2_reg_to_regnum, cris_dwarf2_frame_init_reg): New functions.
1534         (cris_gdbarch_init): Hook in Dwarf-2 unwinder.
1535         (struct gdbarch_tdep, set_cris_dwarf2_cfi, cris_dump_tdep)
1536         (cris_gdbarch_init, _initialize_cris_tdep): Add CRIS Dwarf-2 CFI usage
1537         command.
1538         (cris_version_update): Remove, replace with ...
1539         (set_cris_version): New function.
1540         (struct gdbarch_tdep, cris_mode, cris_mode_update)
1541         (cris_cannot_store_register, cris_dump_tdep, cris_gdbarch_init)
1542         (_initialize_cris_tdep): Remove CRIS mode command.
1543         (cris_fpless_backtrace, _initialize_cris_tdep): Remove 
1544         cris-fpless-backtrace command.
1545         (cris_scan_prologue): Fix prologue scanning limit.
1546         (cris_register_type): Update to reflect actual registers.
1547         (cris_register_bytes_ok) Remove.
1548         (cris_gdbarch_init): Remove support for CRIS v8 and v9.
1549         Remove set_gdbarch_deprecated_register_size,
1550         set_gdbarch_deprecated_register_byte, set_gdbarch_register_bytes_ok.
1551         
1552 2004-10-10  Andrew Cagney  <cagney@gnu.org>
1553
1554         * ada-lang.c (lim_warning): Add ATTR_FORMAT prototype and FIXME
1555         comment.
1556
1557 2004-10-10  Joel Brobecker  <brobecker@gnat.com>
1558
1559         * mips-tdep.c (mips16_scan_prologue): Remove redundant code.
1560
1561 2004-10-10  Joel Brobecker  <brobecker@gnat.com>
1562
1563         * mips-tdep.c (mips16_scan_prologue): Renames
1564         mips16_heuristic_proc_desc. Update comment.
1565         (mips32_scan_prologue): Renames mips32_heuristic_proc_desc.
1566         (heuristic_proc_desc): Update calls to the 2 functions above.
1567
1568 2004-10-10  Joel Brobecker  <brobecker@gnat.com>
1569
1570         * mips-tdep.c (mips_insn16_frame_cache): Remove unused variables.
1571         Update comments. Also immediately return empty cache when the start
1572         address of our function could not be found.
1573         (mips_insn32_frame_cache): Likewise.
1574
1575 2004-10-10  Joel Brobecker  <brobecker@gnat.com>
1576
1577         * mips-tdep.c (mips16_decode_reg_save): Delete, no longer used.
1578         (mips_insn16_frame_cache): Pass frame cache in call to
1579         heuristic_proc_desc. Move some code to mips16_heuristic_proc_desc.
1580         Remove code that became redundant as a consequence.
1581         (mips32_heuristic_proc_desc): No longer compute a fake
1582         procedure descriptor. Compute the full frame cache instead.
1583         Some minor comment reformatting.
1584
1585 2004-10-10  Jim Blandy  <jimb@redhat.com>
1586
1587         * MAINTAINERS (generic symtabs, dwarf readers, elf reader, stabs
1588         reader, tracing bytecode stuff): Remove self.
1589
1590 2004-10-10  Mark Kettenis  <kettenis@gnu.org>
1591
1592         * sparc64-linux-tdep.c: Update copyright year.  Don't include
1593         "solib-svr4.h".
1594         (sparc64_linux_svr4_fetch_link_map_offsets): Remove function.
1595         (sparc64_linux_init_abi): Don't set solib_svr4_link_map_offsets.
1596         * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
1597
1598         * sparc-linux-tdep.c: Update copyright year.
1599         (sparc_linux_sigtramp_start): Change first argument from CORE_ADDR
1600         to struct frame_info *.  Use safe_frame_unwind_memory instead of
1601         deprecated_read_memory_nobpt.
1602         (sparc32_linux_sigtramp_start, sparc32_linux_rt_sigtramp_start):
1603         Change argumen from CORE_ADDR to struct frame_info *.  Adjust for
1604         changed signature of sparc_linux_sigtramp_start.
1605         (sparc32_linux_pc_in_sigtramp): Remove function.
1606         (sparc32_linux_sigtramp_p): New function.
1607         (sparc32_linux_sigtramp_frame_sniffer): Use
1608         sparc32_linux_sigtramp_p instead of sparc32_linux_pc_in_sigtramp.
1609
1610         * sparc-linux-tdep.c (sparc32_linux_svr4_fetch_link_map_offsets):
1611         Remove function.
1612         (sparc32_linux_init_abi): Don't set solib_svr4_link_map_offsets.
1613
1614         * ada-lang.c (lim_warning): Re-implement as a varargs function.
1615         (decode_packed_array_type, value_subscript_packed)
1616         (ada_evaluate_subexp, to_fixed_range_type): Remove redundant
1617         argument in call to lim_warning.
1618
1619         * configure.in: Really disable the TUI if an enhanced curses
1620         library isn't found.
1621         * configure: Regenerate.
1622
1623 2004-10-09  Mark Kettenis  <kettenis@gnu.org>
1624
1625         * config/i386/nbsdaout.mh (NAT_FILE): Set to solib.h.
1626         * config/i386/nbsdelf.mh (NAT_FILE): Set to solib.h.
1627         * config/i386/nm-nbsdaout.h: Remove file.
1628         * config/i386/nm-fbsd.h (link_object, lo_name, lo_library)
1629         (lo_unused, lo_major, lo_minor, lo_next, link_map, lm_addr)
1630         (lm_name, lm_next, lm_lop, lm_lob, lm_rwt, lm_ld, lm_lpd)
1631         (link_dynamic_2, ld_loaded, ld_need, ld_rules, ld_got, ld_plt)
1632         (ld_rel, ld_hash, ld_stab, ld_stab_hash, ld_buckets, ld_symbols)
1633         (ld_symb_size, ld_text, ld_plt_sz, rtc_symb, rtc_sp, rtc_next)
1634         (ld_debug, ldd_version, ldd_in_debugger, ldd_sym_loaded)
1635         (ldd_bp_addr, ldd_bp_inst, ldd_cp, link_dynamic, ld_version)
1636         (ldd, ld_un, ld_2): Remove defines.
1637         * config/i386/nm-obsd.h: Likewise.
1638
1639 2004-10-09  Paul Hilfinger  <hilfingr@nile.gnat.com>
1640
1641         * ada-lex.l: Remove useless rule whose right-context clause
1642         causes unreferenced static function warning for yyrealloc.
1643         (ada_flex_use): Remove the artificial reference to yyrealloc.
1644
1645 2004-10-08  Andrew Cagney  <cagney@gnu.org>
1646
1647         * target.h (struct target_ops): Rename to_xfer_memory to
1648         deprecated_xfer_memory.
1649         * target.c: Update.
1650         (deprecated_debug_xfer_memory): Rename debug_to_xfer_memory.
1651         * wince.c: Update.
1652         * win32-nat.c: Update.
1653         * v850ice.c: Update.
1654         * uw-thread.c: Update.
1655         * thread-db.c: Update.
1656         * sol-thread.c: Update.
1657         * remote.c: Update.
1658         * remote-vx.c: Update.
1659         * remote-st.c: Update.
1660         * remote-sim.c: Update.
1661         * remote-sds.c: Update.
1662         * remote-rdp.c: Update.
1663         * remote-rdi.c: Update.
1664         * remote-mips.c: Update.
1665         * remote-m32r-sdi.c: Update.
1666         * remote-e7000.c: Update.
1667         * procfs.c: Update.
1668         * ppc-bdm.c: Update.
1669         * nto-procfs.c: Update.
1670         * monitor.c: Update.
1671         * linux-nat.c: Update.
1672         * inftarg.c: Update.
1673         * hpux-thread.c: Update.
1674         * go32-nat.c: Update.
1675         * gnu-nat.c: Update.
1676         * exec.c: Update.
1677         * corelow.c: Update.
1678         * bsd-kvm.c: Update.
1679         * aix-thread.c: Update.
1680
1681 2004-10-08  Andrew Cagney  <cagney@gnu.org>
1682
1683         * target.c (debug_target): Move to near start of file.
1684         (target_stopped_data_address_p): Re-org logic, add casts.
1685
1686 2004-10-02  Mark Kettenis  <kettenis@gnu.org>
1687
1688         * solib-sunos.c [HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS] (link_map)
1689         (lm_addr, lm_name, lm_next, link_dynamic_2, ld_loaded, rtc_symb)
1690         (rtc_sp, rtc_next, ld_debug, ldd_in_debugger, ldd_bp_addr)
1691         (ldd_bp_inst, ldd_cp, link_dynamic, ld_version, ldd, ld_un, ld_2):
1692         New defines.
1693
1694 2004-10-08  Jeff Johnston  <jjohnstn@redhat.com>
1695
1696         * target.h (to_stopped_data_address): Change prototype to
1697         take a CORE_ADDR pointer and return an int.
1698         * target.c (update_current_target): Change to_stopped_data_address
1699         to match new prototype.
1700         (debug_to_stopped_data_address): Change appropriately.
1701         * breakpoint.c (bpstat_stop_status): Change call to
1702         target_stopped_data_address to use new prototype.
1703         * frv-tdep.c (frv_have_stopped_data_address): New function.
1704         (frv_stopped_data_address): Change to new prototype and
1705         functionality.
1706         * ia64-linux-nat.c (ia64_stopped_data_address): Change to new
1707         prototype and functionality.
1708         (ia64_stopped_by_watchpoint): New function.
1709         * i386-nat.c (i386_stopped_data_address): Change to new
1710         prototype and functionality.
1711         (i386_stopped_by_watchpoint): New function.
1712         * remote.c (remote_stopped_data_address): Change to new prototype
1713         and functionality.
1714         * remote-m32r-sdi.c (m32r_stopped_data_address): Ditto.
1715         * config/frv/tm-frv.h (frv_stopped_data_address): Change prototype.
1716         (STOPPED_BY_WATCHPOINT): Change to use frv_have_stopped_data_address.
1717         * config/i386/nm-i386.h (STOPPED_BY_WATCHPOINT): Change to use
1718         new i386_stopped_by_watchpoint function.
1719         (i386_stopped_by_watchpoint): New prototype.
1720         (i386_stoppped_data_address): Change to new prototype.
1721         * config/ia64/nm-linux.h (STOPPED_BY_WATCHPOINT): Change to use
1722         new ia64_stopped_by_watchpoint function.
1723         (ia64_stopped_by_watchpoint): New prototype.
1724         (ia64_stopped_data_address): Ditto.
1725
1726 2004-10-08  Paul Hilfinger  <Hilfinger@gnat.com>
1727
1728         * ada-typeprint.c (ada_print_type): Use int_string for printing
1729         modulus of modular type.
1730         * ada-lang.h (ada_modulus): Change return type to unsigned.
1731         * ada-lang.c (ada_language_arch_info): Correct type of 
1732         string_char_type.
1733         (ada_modulus): Return unsigned result.
1734         (ada_lookup_symbol): Remove user disambiguation and modify comment 
1735         accordingly.
1736         
1737 2004-10-08 Eric Botcazou  <ebotcazou@act-europe.fr>     
1738
1739         Committed by Paul Hilfinger.
1740         * ada-lang.c (decode_packed_array): On big-endian targets, 
1741         left-justify the value if it comes with a modular type.
1742
1743 2004-10-08  Joel Brobecker  <brobecker@gnat.com>        
1744
1745         Committed by Paul Hilfinger.
1746         * ada-lang.c (template_to_static_fixed_type): Fix a small typo.
1747         (is_name_suffix): Add support for "___JM" suffixes.
1748         (ada_check_typedef): Renames ada_completed_type. 
1749         Update all users of CHECK_TYPEDEF, check_typedef, and 
1750         ada_complete_type to call ada_check_typedef.
1751         * ada-typeprint.c: Likewise.
1752         * ada-valprint.c: Likewise.
1753
1754 2004-10-08  Corinna Vinschen  <vinschen@redhat.com>
1755
1756         * infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
1757
1758 2004-10-08  Nick Roberts  <nickrob@snap.net.nz>
1759
1760         * MAINTAINERS: Update e-mail address.
1761
1762 2004-10-07  Daniel Jacobowitz  <dan@debian.org>
1763
1764         From Maciej W. Rozycki  <macro@mips.com>:
1765         * mips-tdep.c (mips32_next_pc): Check the register's contents,
1766         not its number for BLEZ/BLEZL and BGTZ/BGTZL.
1767
1768 2004-10-07  Kei Sakamoto  <sakamoto.kei@renesas.com>
1769
1770         * m32r-tdep.c (decode_prologue): Support functions written
1771         in assembler language. Recognize trap instructions as the
1772         end of prologue.
1773         (m32r_frame_unwind_cache): Ditto.
1774         (m32r_skip_prologue): Extend search limit. Quit analyzing
1775         prologue if pc's location is not readable.
1776
1777 2004-10-06  Paul N. Hilfinger  <Hilfinger@gnat.com>
1778
1779         * Makefile.in (.l.c): Do conversions of names of alloc and free 
1780         functions that are done for .y.c files, plus special one
1781         for yy_flex_realloc.  Also, correct missing-file tests here.
1782         * ada-lex.l (malloc, free): Remove macros.
1783         (resize_tempbuf): Use "realloc"; rely on sed changes to convert to
1784         xrealloc.
1785         (ada_flex_use): Dummy definition to remove warnings about unused
1786         functions.
1787         * ada-exp.y (dummy_string_to_ada_operator): Temporary definition
1788         to suppress warning.
1789         
1790 2004-10-06  Corinna Vinschen  <vinschen@redhat.com>
1791
1792         * sh-tdep.c (sh_return_value_nofpu): New function, implementing
1793         RETURN_VALUE.
1794         (sh_return_value_fpu): Ditto for CPUs with FPU.
1795         (sh_gdbarch_init): Remove STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
1796         RETURN_VALUE_ON_STACK and USE_STRUCT_CONVENTION throughout.
1797         Install sh_return_value_nofpu resp. sh_return_value_fpu as
1798         RETURN_VALUE functions.
1799
1800 2004-10-06  Corinna Vinschen  <vinschen@redhat.com>
1801
1802         * sh-tdep.c (sh_pseudo_register_read): Add PSEUDO_BANK_REGNUM handling. 
1803         (sh_pseudo_register_write): Ditto.
1804
1805 2004-10-06  Corinna Vinschen  <vinschen@redhat.com>
1806
1807         * sh-tdep.c (IS_MACL_STS): New define.
1808         (IS_MOVI20): Ditto.
1809         (IS_MACL_LDS): Ditto.
1810         (sh_analyze_prologue): Recognize STS.L MACL,@-r15 and MOVI20
1811         instructions in prologue.
1812         (sh_in_function_epilogue_p): Recognize LDS.L @r15+,MACL and MOVI20
1813         instructions in epilogue.
1814
1815 2004-10-06  Corinna Vinschen  <vinschen@redhat.com>
1816
1817         * sh-tdep.c (SH_NUM_REGS): Define as 67.
1818         (sh_sh_register_name): Add eight empty register names.
1819         (sh_sh3_register_name): Ditto.
1820         (sh_sh3e_register_name): Ditto.
1821         (sh_sh2e_register_name): Ditto.
1822         (sh_sh2a_register_name): New function, defining SH2A register set.
1823         (sh_sh2a_nofpu_register_name): New function, defining SH2A register set
1824         in nofpu case.
1825         (sh_sh_dsp_register_name): Add eight empty register names.
1826         (sh_sh3_dsp_register_name): Ditto.
1827         (sh_sh4_register_name): Ditto.
1828         (sh_sh4_nofpu_register_name): Ditto.
1829         (sh_sh4al_dsp_register_name): Ditto.
1830         (sh2a_show_regs): New function.
1831         (sh2a_nofpu_show_regs): New function.
1832         (sh_sh2a_register_type): New function.
1833         (do_bank_register_info): New function.
1834         (sh_print_pseudo_register): Call do_bank_register_info.
1835         Call sh_print_pseudo_register for valid "bank" register.
1836         (sh_sh2a_register_sim_regno): New function.
1837         (sh_gdbarch_init): Add bfd_mach_sh2a and bfd_mach_sh2a_nofpu handling.
1838         Increment pseudo register count by one for all sh variants with
1839         pseudo registers to accomodate pseudo bank register.
1840         * sh-tdep.h: Add register numbers for R0_BANK0_REGNUM, MACHB_REGNUM,
1841         IVNB_REGNUM, PRB_REGNUM, GBRB_REGNUM, MACLB_REGNUM, BANK_REGNUM,
1842         IBCR_REGNUM, IBNR_REGNUM, TBR_REGNUM and PSEUDO_BANK_REGNUM. 
1843         Increment pseudo register numbers.
1844
1845 2004-10-06  Corinna Vinschen  <vinschen@redhat.com>
1846
1847         * dwarf2read.c (read_subroutine_type): Call make_function_type
1848         instead of lookup_function_type.
1849
1850 2004-10-05  Jim Blandy  <jimb@redhat.com>
1851
1852         * linux-nat.c (_initialize_linux_nat): Rename child_ops.
1853         (Previous change missed some uses.)
1854
1855 2004-10-05  Andrew Cagney  <cagney@gnu.org>
1856
1857         * target.h (deprecated_child_ops): Rename child_ops.
1858         * wince.c: Update copyright.  Rename child_ops.
1859         * win32-nat.c: Rename child_ops.
1860         * target.c: Rename child_ops.
1861         * rs6000-nat.c: Rename child_ops.
1862         * linux-nat.c: Rename child_ops.
1863         * infttrace.c: Rename child_ops.
1864         * inftarg.c: Rename child_ops.
1865         * infptrace.c: Rename child_ops.
1866         * hppah-nat.c: Update copyright.  Rename child_ops.
1867         * hpux-thread.c: Update copyright.  Rename child_ops.
1868
1869 2004-10-05  Daniel Jacobowitz  <dan@debian.org>
1870
1871         * remote.c (remote_xfer_partial): Handle TARGET_OBJECT_MEMORY.
1872
1873 2004-10-05  Andrew Cagney  <cagney@gnu.org>
1874
1875         * version.in: Bump to version 6.2.50_YYYY-MM-DD-cvs.
1876
1877 2004-10-05  Daniel Jacobowitz  <dan@debian.org>
1878
1879         * dwarf2read.c (REF_HASH_SIZE): Move earlier.
1880         (die_ref_table): Remove.
1881         (struct dwarf2_cu): Add DIES, DEPENDENCIES, and DIE_REF_TABLE.
1882         (struct dwarf2_per_cu_data): Add PSYMTAB.  Add a comment describing
1883         the usage of this type.
1884         (struct dwarf2_per_objfile): Update comment for ALL_COMP_UNITS.
1885         (struct dwarf2_pinfo, PST_PRIVATE, DWARF_INFO_OFFSET): Remove.
1886         (struct dwarf2_queue_item, dwarf2_queue, dwarf2_queue_tail): New.
1887         (dwarf2_create_include_psymtab): Update comment.
1888         (find_partial_die): Remove third argument.  Remove unreachable call
1889         to error ().
1890         (dwarf2_find_containing_comp_unit): Update comments.  Change one
1891         assertion to an error.  Remove an unreachable error.
1892         (dwarf2_find_comp_unit): Update comments.
1893         (type_at_offset): Remove dead code.
1894         (make_cleanup_free_die_list, dwarf2_empty_hash_tables): Remove.
1895         (store_in_ref_table): Add CU argument.
1896         (follow_die_ref): Take DIE, attribute, and CU arguments.  Handle
1897         inter-compilation-unit references.
1898         (load_full_comp_unit, process_full_comp_unit): New functions, based
1899         on psymtab_to_symtab_1.
1900         (psymtab_to_symtab_1): Use them.
1901         (dwarf2_add_dependence): New function.
1902         (dwarf2_build_psymtabs_hard): Set the psymtab in per_cu.  Always create
1903         a per_cu structure, and save it in READ_PSYMTAB_PRIVATE.
1904         (partial_die_parent_scope, guess_structure_name): Update for changes
1905         to find_partial_die.
1906         (dwarf2_psymtab_to_symtab): Initialize dwarf2_per_objfile here.
1907         (queue_comp_unit, process_queue, dwarf2_release_queue): New.
1908         (read_comp_unit): Don't call dwarf2_empty_hash_tables.
1909         (read_die_and_children): Update call to store_in_ref_table.
1910         (do_free_die_list_cleanup): Remove.
1911         (fixup_partial_die): Update for changes to find_partial_die.
1912         (read_full_die): Handle queueing absolute references.
1913         (read_attribute_value): Use DW_ADDR for all DW_FORM_ref* forms.
1914         (dwarf2_attr, die_specification, die_type)
1915         (die_containing_type, dwarf2_extension): Update calls to
1916         follow_die_ref.
1917         (dump_die): Update DW_FORM_ref* handling.
1918         (dwarf2_get_ref_die_offset): Likewise.
1919         (free_one_comp_unit): Release the dies list.
1920         (dwarf2_mark_helper): New function.
1921         (dwarf2_mark): Use it.
1922
1923 2004-10-05  Mark Kettenis  <kettenis@jive.nl>
1924
1925         * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
1926         when writing to memory.
1927
1928 2004-10-05  Kei Sakamoto  <sakamoto.kei@renesas.com>
1929
1930         * m32r-tdep.c (m32r_use_struct_convention): Delete function.
1931         (m32r_extract_struct_value_address): Delete function.
1932         (m32r_return_value): New function.
1933         (m32r_gdbarch_init): Instead of store_return_value,
1934         extract_return_value, deprecated_extract_struct_value_address
1935         and deprecated_use_struct_convention, set return_value.
1936
1937 2004-10-03  Daniel Jacobowitz  <dan@debian.org>
1938
1939         * dwarf2read.c (read_subrange_type): Add comment for variable
1940         sized arrays.
1941
1942 2004-10-03  Paul Hilfinger  <hilfingr@nile.gnat.com>
1943
1944         * Makefile.in (.l.c): Modify rule for compatibility with recent
1945         versions of flex, and remove most command-line options.
1946         * ada-lex.l: Add %options line in place of -I -i and -s command-line
1947         options.
1948
1949 2004-10-02  Paul N. Hilfinger  <Hilfinger@gnat.com>
1950
1951         Turn on initial Ada support (mainly expression evaluation).
1952         
1953         * Makefile.in (SFILES): Remove ada-tasks.c.
1954         (HFILES_NO_SRCDIR): Add ada-lang.h.
1955         (COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
1956         (YYOBJ): Add ada-exp.o.
1957         (rule .l.c): Generalize to not mention ada.
1958         * symtab.c: Include ada-lang.h.
1959         (symbol_natural_name, symbol_demangled_name)
1960         (symbol_search_name): Add Ada case.
1961
1962 2004-10-01  Andrew Cagney  <cagney@gnu.org>
1963
1964         * Makefile.in (COMMON_OBS): Add inf-child.o.
1965         * config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
1966         * config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
1967         * config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
1968         * config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
1969         * config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
1970         * config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
1971         * config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
1972         * config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
1973         * config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
1974         * config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
1975         * config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
1976         * config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
1977         * config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
1978
1979         * target.c (xfer_using_stratum): Change return type to LONGEST.
1980         On each iteration offset, readbuf and writebuf.
1981         * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
1982         partial_length, and read/modify/write predicate, update comments.
1983         Pass buffer.word to ptrace write.
1984
1985 2004-10-01  Paul N. Hilfinger  <Hilfinger@gnat.com>
1986
1987         * symfile.c (init_filename_language_table): Add extensions for
1988         Ada.
1989         * defs.h (enum language): Add language_ada.
1990         * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
1991         * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
1992         (add_symbols_from_enclosing_procs): Make a no-op for now.
1993         (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
1994         (extended_canonical_line_spec, find_sal_from_funcs_and_line)
1995         (find_line_in_linetable, find_next_line_in_linetable)
1996         (read_all_symtabs, is_plausible_func_for_line)
1997         (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
1998         (is_runtime_sym_defined, check_size): Remove declaration.
1999         (function_name_from_pc, ada_translate_error_message)
2000         (ada_lookup_minimal_symbol): Remove definition.
2001         (ada_add_block_symbols): Remove useless label.
2002         * ada-lang.h (ada_maybe_exception_partial_symbol): Remove 
2003         useless declaration.
2004         (ada_is_exception_sym): Likewise.
2005
2006 2004-09-30    Kei Sakamoto  <sakamoto.kei@renesas.com>
2007
2008         Add m32r-linux support.
2009         * configure.tgt: Add m32r*-*-linux*.
2010         * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
2011         and m32r-linux-tdep.c.
2012         (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
2013         * m32r-tdep.c: Move some definitions to m32r-tdep.h.
2014         * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
2015         m32r-linux-tdep.c.
2016         * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
2017         config/m32r/linux.mh, config/m32r/linux.mt,
2018         config/m32r/nm-linux.h: New files.
2019
2020 2004-09-30  Joel Brobecker  <brobecker@gnat.com>
2021
2022         * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
2023         (mips32_fetch_instruction): Remove, unused.
2024
2025 2004-09-30  Joel Brobecker  <brobecker@gnat.com>
2026
2027         * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
2028         conditions that will always be true.
2029
2030 2004-09-30  Mark Kettenis  <kettenis@gnu.org>
2031
2032         * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
2033         (vaxbsd_fetch_inferior_registers): Rename from
2034         fetch_inferior_registers.  Make static.
2035         (vaxbsd_store_inferior_registers): Rename from
2036         store_inferior_registers.  Make static.
2037         (_initialize_vaxbsd_nat): Construct and add target vector.
2038         * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
2039         inftarg.o.  Add inf-child.o and inf-ptrace.o.
2040         * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
2041         inftarg.o.  Add inf-child.o and inf-ptrace.o.
2042         (NAT_FILE): Remove.
2043         * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
2044         inftarg.o.  Add inf-child.o and inf-ptrace.o.
2045         (NAT_FILE): Remove.
2046         * Makefile.in (vaxbsd-nat.o): Update dependencies.
2047
2048         * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
2049         (m88kbsd_fetch_inferior_registers): Rename from
2050         fetch_inferior_registers.  Make static.
2051         (m88kbsd_store_inferior_registers): Rename from
2052         store_inferior_registers.  Make static.
2053         (_initialize_m88kbsd_nat): New prototype and function.
2054         * config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
2055         inftarg.o.  Add inf-child.o and inf-ptrace.o.
2056         (NAT_FILE): Remove.
2057         * Makefile.in (m88kbsd-nat.o): Update dependencies.
2058
2059 2004-09-30  Andrew Cagney  <cagney@gnu.org>
2060
2061         * target.c (target_xfer_partial): New function.
2062         (target_read_memory_partial, target_write_memory_partial) 
2063         (default_xfer_partial, target_read_partial, target_write_partial) 
2064         (xfer_using_stratum): Use.
2065         (debug_to_xfer_partial): Delete function.
2066         (setup_target_debug): Do not override to_xfer_partial.
2067
2068 2004-09-30  Mark Kettenis  <kettenis@chello.nl>
2069
2070         * fork-child.c: Update copyright year.  Fix coding style.
2071
2072 2004-09-29  Mark Kettenis  <kettenis@gnu.org>
2073
2074         * defs.h (msavestring, mstrsave): Remove prototypes.
2075         * utils.c (msavestring, mstrsave): Remove functions.
2076         * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
2077         * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
2078         of mstrsave.
2079         * source.c (find_and_open_source): Use xstrdup instead of
2080         mstrsave.
2081
2082 2004-09-30  Andrew Cagney  <cagney@gnu.org>
2083
2084         * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
2085         (inf_ptrace_xfer_memory): Delete.
2086         * target.c (target_xfer_partial_p, xfer_using_stratum): New.
2087         (target_read_memory, target_write_memory): Use xfer_using_stratum
2088         when target_xfer_partial_p.
2089         (debug_target): Move to start of file.
2090         (target_read_memory_partial, target_write_memory_partial): Use
2091         to_xfer_partial when target_xfer_partial_p.
2092
2093         * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
2094         inf_ptrace_xfer_memory with equivalent code.
2095         * inftarg.c (child_xfer_partial): When performing a write, pass
2096         writebuf to child_xfer_memory.
2097
2098         * target.c (target_read_string): Use target_read_memory instead of
2099         target_xfer_memory.
2100
2101 2004-09-29  Andrew Cagney  <cagney@gnu.org>
2102
2103         * infptrace.c (kill_inferior): Fix typo, in previous inline.  Pass
2104         the address of status.
2105
2106         * infptrace.c (ptrace_wait): Mention problem with HPUX.
2107         (kill_inferior): Inline ptrace_wait call.
2108         * linux-nat.c (kill_inferior): Inline ptrace_wait call.
2109         * inftarg.c (child_wait): Inline ptrace_wait call.
2110
2111         * target.h (struct target_ops): Delete field to_post_wait.
2112         (target_post_wait): Delete macro.
2113         (child_post_wait): Delete declaration.
2114         * target.c (update_current_target, update_current_target)
2115         (debug_to_post_wait, setup_target_debug): Delete functions and
2116         references.
2117         * infttrace.c (ptrace_wait): Delete call to target_post_wait.
2118         * inftarg.c (child_post_wait): Delete.
2119         (init_child_ops): Do not set to_post_wait.
2120         * infptrace.c (ptrace_wait): Delete call to target_post_wait.
2121         * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
2122         * inf-child.c (inf_child_post_wait): Delete.
2123         (inf_child_target): Do not set to_post_wait.
2124         * inf-ptrace.c (inf_ptrace_post_wait): Delete.
2125         (inf_ptrace_target): Do not set to_post_wait.
2126
2127         * wince.c (child_ops): Delete.
2128         * win32-nat.c (child_ops): Delete.
2129
2130         * inftarg.c (inftarg_set_find_memory_regions) 
2131         (inftarg_set_make_corefile_notes): Delete functions.
2132         (_initialize_linux_nat): Inline calls.
2133
2134         * target.h (child_ops): Declare.
2135         * inftarg.c (child_ops): Move from here ...
2136         * target.c (child_ops): ... to here.
2137         * wince.c (child_ops): Delete extern declaration.
2138         * win32-nat.c (child_ops): Delete extern declaration.
2139         * linux-nat.c (child_ops): Delete extern declaration.
2140         * hpux-thread.c (child_ops): Delete extern declaration.
2141
2142 2004-09-28  Mark Kettenis  <kettenis@gnu.org>
2143
2144         * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
2145
2146 2004-09-28  Mark Kettenis  <kettenis@gnu.org>
2147
2148         * configure.in: Only set host_makefile_frag when building a native
2149         debugger.
2150         * configure: Regenerate.
2151
2152         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
2153         for OpenBSD ELF.
2154
2155 2004-09-28  Andrew Cagney  <cagney@gnu.org>
2156
2157         Problem identified by Paul Hilfinger.
2158         * Makefile.in (ada_lex_c): Define.
2159         (ada-lex.o): Delete rule.
2160
2161         * linux-proc.c: Delete file.
2162         * Makefile.in: Update.
2163         * config/sparc/linux64.mh (NATDEPFILES): 
2164         * config/sparc/linux.mh (NATDEPFILES): Update.
2165         * config/s390/s390.mh (NATDEPFILES): Update.
2166         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
2167         * config/powerpc/linux.mh (NATDEPFILES): Update.
2168         * config/pa/linux.mh (NATDEPFILES): Update.
2169         * config/mips/linux.mh (NATDEPFILES): Update.
2170         * config/m68k/linux.mh (NATDEPFILES): Update.
2171         * config/ia64/linux.mh (NATDEPFILES): Update.
2172         * config/i386/linux64.mh (NATDEPFILES): Update.
2173         * config/i386/linux.mh (NATDEPFILES): Update.
2174         * config/arm/linux.mh (NATDEPFILES): Update.
2175         * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
2176         * linux-nat.c: Update copyright.  Include <sys/param.h>,
2177         <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
2178         "gdbthread.h", "gdb_stat.h", <fcntl.h>.
2179         (O_LARGEFILE): Possibly define.
2180         (_initialize_linux_nat, linux_proc_pending_signals)
2181         (add_line_to_sigset, linux_proc_xfer_memory)
2182         (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
2183         (linux_nat_do_registers, linux_nat_corefile_thread_callback)
2184         (struct linux_corefile_thread_data)
2185         (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
2186         (child_pid_to_exec_file): Insert code previously in linux-proc.c.
2187
2188 2004-09-16  Andrew Cagney  <cagney@gnu.org>
2189
2190         * lin-lwp.c: Delete file.
2191         * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
2192         <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
2193         (status_to_str, init_lwp_list, add_lwp, delete_lwp)
2194         (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
2195         (linux_nat_attach, detach_callback, linux_nat_detach)
2196         (resume_callback, resume_clear_callback, linux_nat_resume)
2197         (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
2198         (stop_wait_callback, linux_nat_has_pending, flush_callback)
2199         (status_callback, running_callback, count_events_callback)
2200         (select_singlestep_lwp_callback, select_event_lwp_callback)
2201         (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
2202         (child_wait, stop_and_resume_callback, linux_nat_wait)
2203         (kill_callback, kill_wait_callback, linux_nat_kill)
2204         (linux_nat_create_inferior, linux_nat_mourn_inferior)
2205         (linux_nat_xfer_memory, linux_nat_thread_alive)
2206         (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
2207         (_initialize_linux_nat): New functions.
2208         * Makefile.in: Update all dependencies.
2209         * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
2210         * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2211         * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
2212         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
2213         * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2214         * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2215         * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2216         * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2217         * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2218         * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
2219         * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2220         * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2221         * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
2222
2223 2004-09-27  Mark Kettenis  <kettenis@gnu.org>
2224
2225         * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
2226         config/i386/obsd64.mh (NAT_FILE): Remove variable.
2227
2228         * configure.in: Don't comment out NATDEPFILES in the generated
2229         Makefile if NAT_FILE is unset.
2230         * configure: Regenerate.
2231
2232 2004-09-27  Andrew Cagney  <cagney@gnu.org>
2233
2234         * infrun.c (check_for_old_step_resume_breakpoint): Delete.
2235         (insert_step_resume_breakpoint): Delete.
2236         (insert_step_resume_breakpoint_at_frame): New function.
2237         (insert_step_resume_breakpoint_at_sal): New function.
2238         (handle_inferior_event, step_into_function)
2239         (insert_step_resume_breakpoint): Simplify by using same.
2240
2241         * gdb_indent.sh (types): Add caddr_t to list of predefined types.
2242
2243 2004-09-26  Mark Kettenis  <kettenis@gnu.org>
2244
2245         * fbsd-proc.c: Remove file.
2246         * Makefile.in (fbsd-proc.o): Remove dependency.
2247
2248         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
2249         code together.
2250
2251         * config/i386/nm-fbsd64.h: Remove file.
2252         * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2253
2254 2004-09-26  Mark Kettenis  <kettenis@gnu.org>
2255
2256         * amd64-nat.h: Update copyright year.
2257         (amd64bsd_target): New prototype.
2258         * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
2259         (amd64bsd_target): New function.
2260         (amd64bsd_fetch_inferior_registers): Rename from
2261         fetch_inferior_registers.  Make static.
2262         (amd64bsd_store_inferior_registers): Rename from
2263         store_inferior_registers.  Make static.
2264         * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
2265         (_initialize_amd64fbsd_nat): Construct and add target vector.
2266         * amd64nbsd-nat.o: Include "target.h".
2267         (_initialize_amd64nbsd_nat): Construct and add target vector.
2268         * amd64obsd-nat.c: Include "target.h".
2269         (_initialize_amd64obsd_nat): Construct and add target vector.
2270         * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
2271         * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
2272         inftarg.o and fbsd-proc.o.  Add inf-child.o, inf-ptrace.o and
2273         fbsd-nat.o.
2274         * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
2275         Remove infptrace.o and inftarg.o.  Add inf-child.o and
2276         inf-ptrace.o.
2277         * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
2278         (amd64obsd-nat.o): Update dependencies.
2279
2280 2004-09-25  Mark Kettenis  <kettenis@gnu.org>
2281
2282         * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
2283         * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
2284         * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
2285         * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
2286         * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
2287
2288         * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
2289         Inline attach call.
2290         (inf_ptrace_detach): Inline detach call.
2291
2292         * configure.in: Check for waddstr instead of mvwaddstr when
2293         searching for curses library.  Check for wborder.
2294         * configure, config.in: Regenerate.
2295         * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
2296         available.
2297
2298         * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
2299
2300 2004-09-24  Robert Picco <Robert.Picco@hp.com>
2301
2302         Committed by Andrew Cagney.
2303         * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
2304         (show_remote_protocol_p_packet_cmd): New.  Implement 'p' packet.
2305         configuration.
2306         (fetch_register_using_p): Implement 'p' packet.  Based on code by
2307         Fernando Nasser.
2308         (remote_fetch_registers): Call fetch_register_using_p.
2309         (init_all_packet_configs, show_remote_cmd)
2310         (_initialize_remote): Add p-packet.
2311
2312 2004-09-24  Mark Kettenis  <kettenis@gnu.org>
2313
2314         * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
2315         instead of call_ptrace.  Call wait directly instead of
2316         ptrace_wait.
2317         (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
2318         (inf_ptrace_wait): Inline ptrace_wait call.
2319
2320 2004-09-24  Paul Hilfinger  <hilfingr@nile.gnat.com>
2321
2322         * Makefile.in (.y.c): Revert previous change.  ../ylwrap was 
2323         rolled back instead.
2324
2325 2004-09-24  Paul Hilfinger  <hilfingr@nile.gnat.com>
2326
2327         * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
2328         the new argument order.
2329
2330 2004-09-23  Corinna Vinschen  <vinschen@redhat.com>
2331
2332         * MAINTAINERS: Remove "broken" from XStormy16 entry.
2333         * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
2334         (struct gdbarch_tdep): Remove.
2335         (struct xstormy16_frame_cache): New frame cache structure.
2336         (xstormy16_register_byte, xstormy16_register_raw_size)
2337         (xstormy16_reg_virtual_type, xstormy16_register_type)
2338         (xstormy16_push_arguments, xstormy16_push_return_address)
2339         (xstormy16_pop_frame, xstormy16_store_struct_return)
2340         (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
2341         (xstormy16_frame_saved_register, xstormy16_get_saved_register)
2342         (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
2343         (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
2344         (xstormy16_frame_chain, xstormy16_frame_chain_valid,
2345         (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
2346         (xstormy16_use_struct_convention): Drop gcc_p parameter.
2347         (xstormy16_extract_return_value, xstormy16_store_return_value):
2348         Regcachify.  Drop useless struct convention handling.
2349         (xstormy16_register_type, xstormy16_return_value)
2350         (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
2351         (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
2352         (xstormy16_frame_prev_register, xstormy16_frame_this_id)
2353         (xstormy16_frame_base_address, xstormy16_frame_sniffer)
2354         (xstormy16_unwind_sp, xstormy16_unwind_pc)
2355         (xstormy16_unwind_dummy_id) : New functions.
2356         (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
2357         of xstormy16_scan_prologue.
2358         (xstormy16_frame_unwind): New frame_unwind structure.
2359         (xstormy16_frame_base): New frame_base structure.
2360         (xstormy16_gdbarch_init): Accomodate all of the above changes.
2361         Reshuffle for better readability.  Also add dwarf2_frame_sniffer.
2362
2363 2004-09-22  Mark Kettenis  <kettenis@gnu.org>
2364
2365         * language.c (language_gdbarch_post_init): Fix off-by one error.
2366
2367 2004-09-21  Daniel Jacobowitz  <dan@debian.org>
2368
2369         * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
2370         (struct dwarf2_offset_and_type): New.
2371         (set_die_type, reset_die_and_siblings_types, get_die_type)
2372         (offset_and_type_hash, offset_and_type_eq): New functions.
2373         (read_structure_type, read_enumeration_type, read_array_type)
2374         (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
2375         (read_tag_reference_type, read_tag_const_type)
2376         (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
2377         (read_typedef, read_base_type, read_subrange_type): Use
2378         set_die_type.
2379
2380 2004-09-20  Daniel Jacobowitz  <dan@debian.org>
2381
2382         * Makefile.in (dwarf2read.o): Update dependencies.
2383         * dwarf2read.c: Include "command.h" and "gdbcmd.h".
2384         (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
2385         and read_in_chain.
2386         (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
2387         mark, and has_form_ref_addr.
2388         (struct dwarf2_per_cu_data): New.
2389         (dwarf2_max_cache_age): New.
2390         (dwarf2_build_psymtabs_hard): Free cached compilation units
2391         after loading.  Create and manage the list of compilation units.
2392         Remove unnecessary NULL initialization.  Fix indentation.
2393         (psymtab_to_symtab_1): Initialize all of CU.
2394         (dwarf2_read_abbrevs): Set has_form_ref_addr.
2395         (find_partial_die): Use dwarf2_find_containing_comp_unit
2396         and load_comp_unit.
2397         (free_stack_comp_unit): Update comments.  Clear the per-cu
2398         pointer.  Handle aging.
2399         (dwarf2_find_containing_comp_unit, free_cached_comp_units)
2400         (age_cached_comp_units, free_one_cached_comp_unit)
2401         (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
2402         (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
2403         (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
2404         (show_dwarf2_cmd): New.
2405         (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
2406         and "maint show dwarf2 max-cache-age".
2407         * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
2408         externs.
2409         * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
2410         global.
2411
2412 2004-09-20  Jeff Johnston  <jjohnstn@redhat.com>
2413
2414         * dwarf2read.c (typename_concat): Change prototype to accept obstack
2415         and dwarf2_cu struct pointer as arguments.  Change function to use
2416         obstack if provided and use dwarf2_cu to determine language-specific
2417         separator.
2418         (partial_die_parent_scope): Change comment to include java.  Use
2419         new version of typename_concat instead of obconcat.
2420         (partial_die_full_name): Use typename_concat.
2421         (read_namespace): Ditto.
2422         (read_enumeration_type): Use typename_concat instead of obconcat.
2423         (new_symbol): Ditto.
2424         (add_partial_symbol): Enhance tests for C++ to also test for Java.
2425         (guess_structure_name): Ditto.
2426         (read_subroutine_type): Ditto.
2427         (read_structure_type): Ditto.
2428         (is_vtable_name): Add Java support.
2429         (determine_class_name): Switch to new typename_concat call.
2430         (determine_prefix): Switch to new typename_concat call.
2431         * jv-exp.y (FuncStart): New pattern.
2432         (MethodInvocation): Add support for simple function calls.  Change
2433         warning message for other forms of inferior call currently not
2434         supported.
2435         * valarith.c (value_subscript): Treat an array with upper-bound
2436         of -1 as unknown size.
2437
2438 2004-09-20  Daniel Jacobowitz  <dan@debian.org>
2439
2440         * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
2441         (lookup_partial_symtab): Use symtab_to_fullname.
2442
2443 2004-09-19  Jim Blandy  <jimb@redhat.com>
2444
2445         * minsyms.c (lookup_minimal_symbol): Doc fix.
2446
2447 2004-09-20  Andrew Cagney  <cagney@gnu.org>
2448
2449         * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
2450         CHILD_RESUME.
2451         * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
2452         * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
2453         KILL_INFERIOR.
2454         * infptrace.c: Update.
2455
2456 2004-09-19  Daniel Jacobowitz  <dan@debian.org>
2457
2458         * symtab.c (output_source_filename): Mark first argument as const.
2459         (sources_info): Use symtab_to_fullname and psymtab_to_fullname
2460         for "info sources" output.
2461
2462 2004-09-20  Mark Kettenis  <kettenis@gnu.org>
2463
2464         * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
2465         <machine/vmparam.h>.
2466         (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
2467         (register_u_addr): Remove prototype.
2468
2469 2004-09-19  Mark Kettenis  <kettenis@gnu.org>
2470
2471         * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
2472         (i386bsd_fetch_inferior_registers): Rename from
2473         fetch_inferior_registers.  Make static.
2474         (i386bsd_store_inferior_registers): Rename from
2475         store_inferior_registers.  Make static.
2476         (i386bsd_target): New function.
2477         * i386bsd-nat.h: New file.
2478         * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
2479         "i386bsd-nat.h".
2480         (i386fbsd_resume): Rename from child_resume.  Make static.
2481         (_initialize_i386fbsd_nat): Construct and add target vector.
2482         * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
2483         (_initialize_i386nbsd_nat): Construct and add target vector.
2484         * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
2485         Remove defines.
2486         * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
2487         and fbsd-nat.o.  Remove inftarg.o and fbsd-proc.o.
2488         * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
2489         inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o.  Remove inftarg.o.
2490         (LOADLIBES): New variable.
2491         * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
2492         inf-ptrace.o.  Remove inftarg.o.
2493         * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
2494         inf-ptrace.o. Remove inftarg.o.
2495         * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
2496         inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o.  Remove inftarg.o.
2497         (LOADLIBES): New variable.
2498         * Makefile.in (i386bsd_nat_h): New variable.
2499         (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
2500         dependencies.
2501
2502         * sparc64nbsd-tdep.c: Include "objfiles.h".
2503         (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
2504         skip_trampoline_code.  Set solib_svr4_fetch_link_map_offsets to
2505         svr4_lp64_fetch_link_map_offsets.
2506         * sparc64obsd-tdep.c: Include "objfiles.h".  Don't include
2507         "nbsd-tdep.h".
2508         (sparc64obsd_init_abi): Set in_solib_call_trampoline and
2509         skip_trampoline_code.  Set solib_svr4_fetch_link_map_offsets to
2510         svr4_lp64_fetch_link_map_offsets.
2511         * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
2512         dependencies.
2513
2514         * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
2515         * fbsd-nat.h: New file.
2516         * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
2517         (fbsd_nat_h): New variable.
2518         (fbsd-nat.o): New dependency.
2519
2520         * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
2521         config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
2522
2523         * inf-child.c (inf_child_post_wait): Remove stray whitespace in
2524         comment.
2525
2526 2004-09-18  Paul N. Hilfinger  <hilfinger@gnat.com>
2527         
2528         * ada-exp.y (type_int): New function to add layer of abstraction
2529         around references to expression types.
2530         (type_long): Ditto.
2531         (type_long_long): Ditto.
2532         (type_float): Ditto.
2533         (type_double): Ditto.
2534         (type_long_double): Ditto.
2535         (type_char): Ditto.
2536         (type_system_address): Ditto.
2537         (simple_exp): Use type_* functions in place of builtin_* 
2538         variables.
2539         (exp): Ditto.
2540         (write_var_from_name): Ditto.
2541         (write_object_renaming): Ditto.
2542         * ada-lang.c (ada_create_fundamental_type): Remove redundant
2543         declaration.
2544         (build_ada_types): Remove, replacing with...
2545         (ada_language_arch_info): New function to initialize primitive
2546         type vector in language_arch_info.
2547         (ada_array_length): Remove use of builtin_type_ada_int.
2548         (value_pos_atr): Ditto.
2549         (ada_evaluate_subexp): Ditto.
2550         (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
2551         builtin_type_ada_long_long, builtin_type_ada_char, 
2552         builtin_type_ada_float, builtin_type_ada_double, 
2553         builtin_type_ada_long_double, builtin_type_ada_natural,
2554         builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
2555         (ada_builtin_types): Remove.
2556         (ada_language_defn): Remove entries for la_builtin_type_vector and
2557         string_char_type and use ada_language_arch_info.
2558         (_initialize_ada_language): Do type-vector initialization along
2559         the lines of c-lang.c.
2560         (ada_create_fundamental_type): Break up line.
2561         (ada_dump_symtab): Remove unused function.
2562         (enum ada_primitive_types): Define.
2563         * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short, 
2564         builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char, 
2565         builtin_type_ada_float, builtin_type_ada_double, 
2566         builtin_type_ada_long_double, builtin_type_ada_natural,
2567         builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
2568         * ada-lex.l: Use type_* functions in place of builtin_* variables.
2569         (processInt): Ditto.
2570         (processReal): Ditto.
2571         (name_lookup): Ditto.
2572         * ada-typeprint.c (print_range): Use builtin_type_int, not
2573         builtin_type_ada_int.
2574         
2575 2004-09-18  Mark Kettenis  <kettenis@gnu.org>
2576
2577         * i386-tdep.c (i386_register_name): Rename regno to regnum.
2578
2579         * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
2580         * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
2581         * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
2582         * configure.in: Improve checks for curses library by checking for
2583         mvwaddstr instead of initscr.  Drop HP curses in favour of
2584         standard curses on HP-UX.
2585         * configure: Regenerated.
2586
2587 2004-09-18  Paul N. Hilfinger  <hilfinger@gnat.com>
2588
2589         * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
2590         ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1): 
2591         Minor formatting changes.
2592         (empty_array): Slight rewrite for formatting.
2593         (emit_char,parse,ada_language_defn,build_ada_types,
2594         ada_is_exception_sym, _initialize_ada_language): Move 
2595         definitions around.
2596         (ada_dump_symtab): Remove unused definition.
2597         (ada_maybe_exception_partial_symbol): Remove unused definition.
2598
2599 2004-09-16  Andrew Cagney  <cagney@gnu.org>
2600
2601         * inf-child.c: Include "gdb_string.h".
2602         (inf_child_core_file_to_sym_file): Delete.
2603         (inf_child_target): Set to_fetch_registers and to_store_registers.
2604         * inf-ptrace.c: Include "gdb_string.h".
2605         * Makefile.in: Update all dependencies.
2606
2607         * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
2608         problem.
2609
2610 2004-09-14  Joel Brobecker  <brobecker@gnat.com>
2611
2612         * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
2613         call to heuristic_proc_desc. Remove code that became redundant
2614         as a consequence.
2615         (read_next_frame_reg): Remove special case for SP_REGNUM.
2616         (set_reg_offset): Fix small typo.
2617         (reset_saved_regs): New procedure.
2618         (mips32_heuristic_proc_desc): No longer compute a fake
2619         procedure descriptor. Compute the full frame cache instead.
2620         Some minor comment reformatting.
2621
2622 2004-09-14  Andrew Cagney  <cagney@gnu.org>
2623
2624         * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
2625         maintainer.
2626
2627         * thread-db.c (thread_db_new_objfile): Assume that there is a
2628         child process.
2629
2630 2004-09-13  Jim Blandy  <jimb@redhat.com>
2631
2632         * valops.c (value_assign): Move 'buffer' to the enclosing block,
2633         so that its storage isn't referenced after its lifetime ends.
2634
2635         * valops.c (value_assign): 'use_buffer' is initialized to zero,
2636         and never assigned to.   Delete it, and the 'if (use_buffer)'
2637         clauses.  Delete 'raw_buffer', since it is now unused.
2638
2639 2004-09-13  Andrew Cagney  <cagney@gnu.org>
2640
2641         * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
2642         * configure: Re-generate.
2643         * nlm/Makefile.in (TAGS): Update.
2644         * Makefile.in (TAGS): Update.
2645         * config/vax/nbsd.mt (TM_FILE): Update.
2646         * config/sparc/vxworks.mt (TM_FILE): Update.
2647         * config/sparc/sol2.mt (TM_FILE): Update.
2648         * config/sparc/sol2-64.mt (TM_FILE): Update.
2649         * config/sparc/obsd64.mt (TM_FILE): Update.
2650         * config/sparc/obsd.mt (TM_FILE): Update.
2651         * config/sparc/nbsd64.mt (TM_FILE): Update.
2652         * config/sparc/nbsd.mt (TM_FILE): Update.
2653         * config/sparc/linux64.mt (TM_FILE): Update.
2654         * config/sparc/linux.mt (TM_FILE): Update.
2655         * config/sparc/fbsd.mt (TM_FILE): Update.
2656         * config/sh/wince.mt (TM_FILE): Update.
2657         * config/sh/nbsd.mt (TM_FILE): Update.
2658         * config/sh/linux.mt (TM_FILE): Update.
2659         * config/sh/embed.mt (TM_FILE): Update.
2660         * config/s390/s390.mt (TM_FILE): Update.
2661         * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
2662         * config/rs6000/rs6000.mt (TM_FILE): Update.
2663         * config/rs6000/aix4.mt (TM_FILE): Update.
2664         * config/powerpc/vxworks.mt (TM_FILE): Update.
2665         * config/powerpc/ppc-sim.mt (TM_FILE): Update.
2666         * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
2667         * config/powerpc/obsd.mt (TM_FILE): Update.
2668         * config/powerpc/nbsd.mt (TM_FILE): Update.
2669         * config/powerpc/linux.mt (TM_FILE): Update.
2670         * config/powerpc/aix.mt (TM_FILE): Update.
2671         * config/pa/obsd.mt (TM_FILE): Update.
2672         * config/pa/linux.mt (TM_FILE): Update.
2673         * config/pa/hppahpux.mt (TM_FILE): Update.
2674         * config/pa/hppa64.mt (TM_FILE): Update.
2675         * config/pa/hppa.mt (TM_FILE): Update.
2676         * config/ns32k/nbsdaout.mt (TM_FILE): Update.
2677         * config/mips/wince.mt (TM_FILE): Update.
2678         * config/mips/vxmips.mt (TM_FILE): Update.
2679         * config/mips/nbsd.mt (TM_FILE): Update.
2680         * config/mips/linux.mt (TM_FILE): Update.
2681         * config/mips/irix6.mt (TM_FILE): Update.
2682         * config/mips/irix5.mt (TM_FILE): Update.
2683         * config/mips/embed.mt (TM_FILE): Update.
2684         * config/m68k/vxworks68.mt (TM_FILE): Update.
2685         * config/m68k/st2000.mt (TM_FILE): Update.
2686         * config/m68k/os68k.mt (TM_FILE): Update.
2687         * config/m68k/obsd.mt (TM_FILE): Update.
2688         * config/m68k/nbsd.mt (TM_FILE): Update.
2689         * config/m68k/monitor.mt (TM_FILE): Update.
2690         * config/m68k/linux.mt (TM_FILE): Update.
2691         * config/m68k/cisco.mt (TM_FILE): Update.
2692         * config/ia64/linux.mt (TM_FILE): Update.
2693         * config/ia64/aix.mt (TM_FILE): Update.
2694         * config/ia64/ia64.mt (TM_FILE): Update.
2695         * config/i386/vxworks.mt (TM_FILE): Update.
2696         * config/i386/obsd64.mt (TM_FILE): Update.
2697         * config/i386/obsd.mt (TM_FILE): Update.
2698         * config/i386/nto.mt (TM_FILE): Update.
2699         * config/i386/nbsd64.mt (TM_FILE): Update.
2700         * config/i386/nbsd.mt (TM_FILE): Update.
2701         * config/i386/linux64.mt (TM_FILE): Update.
2702         * config/i386/linux.mt (TM_FILE): Update.
2703         * config/i386/i386sol2.mt (TM_FILE): Update.
2704         * config/i386/i386lynx.mt (TM_FILE): Update.
2705         * config/i386/fbsd64.mt (TM_FILE): Update.
2706         * config/i386/fbsd.mt (TM_FILE): Update.
2707         * config/i386/cygwin.mt (TM_FILE): Update.
2708         * config/h8300/h8300.mt (TM_FILE): Update.
2709         * config/frv/frv.mt (TM_FILE): Update.
2710         * config/cris/cris.mt (TM_FILE): Update.
2711         * config/arm/wince.mt (TM_FILE): Update.
2712         * config/arm/nbsd.mt (TM_FILE): Update.
2713         * config/arm/linux.mt (TM_FILE): Update.
2714         * config/arm/embed.mt (TM_FILE): Update.
2715         * config/alpha/nbsd.mt (TM_FILE): Update.
2716         * config/alpha/fbsd.mt (TM_FILE): Update.
2717         * config/alpha/alpha.mt (TM_FILE): Update.
2718         * config/alpha/alpha-osf1.mt (TM_FILE): Update.
2719         * config/alpha/alpha-linux.mt (TM_FILE): Update.
2720
2721         Eliminate event_loop_p, always has the value 1.
2722         * defs.h (event_loop_p): Delete macro.
2723         * breakpoint.c (until_break_command): Simplify.
2724         * utils.c (prompt_for_continue): Simplify.
2725         * tracepoint.c (read_actions): Simplify.
2726         * top.c (throw_exception, execute_command, gdb_readline_wrapper) 
2727         (gdb_rl_operate_and_get_next, command_line_input, get_prompt) 
2728         (set_prompt, init_main): Simplify.
2729         (init_signals, disconnect): Delete, unused.
2730         * remote.c (remote_async_resume) 
2731         (extended_remote_async_create_inferior): Simplify.
2732         * mi/mi-interp.c (mi_input): Delete, unused.
2733         (mi_interpreter_resume, mi_command_loop): Simplify.
2734         * interps.c (current_interp_command_loop): Simplify.
2735         * infrun.c (proceed): Simplify.
2736         * infcmd.c (run_command, continue_command, step_1, jump_command)
2737         (until_command, advance_command, finish_command)
2738         (interrupt_target_command): Simplify.
2739         * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
2740
2741         * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2742         * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2743         * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2744         * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2745         * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2746         * mips-tdep.c (mips_dump_tdep): Do not print same.
2747
2748 2004-09-12  Andrew Cagney  <cagney@gnu.org>
2749
2750         * valprint.c (print_longest): Use fputs_filtered.  Make "val"
2751         const.
2752         * Makefile.in (valprint.o): Delete explict rule.
2753
2754         * config/m68k/nbsdelf.mh: Add missing trailing newline.  Problem
2755         reported by Dave Anderson.
2756
2757         * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
2758
2759         * inferior.h (STORE_STRUCT_RETURN): Delete macro.
2760
2761 2004-09-12  Salvador E. Tropea  <set@users.sf.net>
2762             Andrew Cagney  <cagney@gnu.org>
2763
2764         * mi/mi-main.c (mi_cmd_data_list_changed_registers)
2765         (mi_cmd_data_list_register_values)
2766         (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
2767         the register number computation.
2768
2769 2004-09-12  Andrew Cagney  <cagney@gnu.org>
2770
2771         * ppcnbsd-nat.c: Include "inf-ptrace.h".
2772         (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
2773         (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
2774         (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
2775         target.
2776         * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
2777         inf-ptrace.o and inf-child.o.
2778         * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
2779         * Makefile.in: Update dependencies.
2780         
2781 2004-09-11  Andrew Cagney  <cagney@gnu.org>
2782
2783         * language.c (hex_string, hex_string_custom): Move from here ...
2784         * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
2785         (CELLSIZE): Increase to 50.
2786         * language.h (hex_string, hex_string_custom): Move from here ...
2787         * defs.h: ... to here.
2788         * Makefile.in: Update all dependencies.
2789         
2790 2004-09-11  Paul N. Hilfinger  <hilfinger@gnat.com>
2791
2792         * language.c (local_hex_format_custom): Remove.
2793         (local_hex_string): Rename to hex_string, use C format, and move to
2794         utils.c
2795         (local_hex_string_custom): Rename to hex_string_custom and change
2796         interface.  Now uses C format.  Move to utils.c
2797         (local_octal_format_custom): Remove.
2798         (local_decimal_format_custom): Remove.
2799         (unknown_language_defn): Remove language-specific number 
2800         formatting entries.
2801         (auto_language_defn): Ditto.
2802         (local_language_defn): Ditto.
2803         * language.h (struct language_format_info): Delete declaration.
2804         (struct language_defn): Remove language_format_info fields
2805         la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
2806         (local_binary_format): Remove macro.
2807         (local_binary_format_prefix): Remove macro.
2808         (local_binary_format_specifier): Remove macro.
2809         (local_binary_format_suffix): Remove macro.
2810         (local_octal_format): Remove macro.
2811         (local_octal_format_prefix): Remove macro.
2812         (local_octal_format_specifier): Remove macro.
2813         (local_octal_format_suffix): Remove macro.
2814         (local_decimal_format): Remove macro.
2815         (local_decimal_format_prefix): Remove macro.
2816         (local_decimal_format_specifier): Remove macro.
2817         (local_decimal_format_suffix): Remove macro.
2818         (local_hex_format): Remove macro.
2819         (local_hex_format_prefix): Remove macro.
2820         (local_hex_format_specifier): Remove macro.
2821         (local_hex_format_suffix): Remove macro.
2822         (local_decimal_format_custom): Remove.
2823         (local_octal_format_custom): Remove.
2824         (local_hex_format_custom): Remove.
2825         (local_hex_string): Rename to hex_string and move to defs.h.
2826         (local_hex_string_custom): Rename to hex_string_custom, change
2827         interface, and move to defs.h.
2828         * utils.c: (int_string): New function.
2829         (hex_string): New function (from language.c).
2830         (hex_string_custom): New function (from language.c).
2831         (octal2str): New function.
2832         (decimal2str): Add width parameter.
2833         (paddr_u): Use new decimal2str interface.
2834         (paddr_d): Ditto.
2835         * defs.h (hex_string): Declare.
2836         (hex_string_custom): Declare.
2837         (int_string): Declare.
2838         * printcmd.c (print_scalar_formatted): Remove localized binary
2839         formatting.
2840         * valprint.c (print_longest): Use int_string.
2841         (print_floating): Use C hex format.
2842         (print_hex_chars): Ditto.
2843         (print_binary_chars): Remove language-specific formatting.
2844         (print_octal_chars): Use C octal format.
2845         (print_decimal_chars): Delocalize format.
2846         (print_decimal): Remove.
2847         * ada-lang.c (ada_language_defn): Remove language-specific number 
2848         formatting entries.
2849         * p-lang.c (pascal_language_defn): Ditto.
2850         * c-lang.c (c_language_defn): Ditto.
2851         (cplus_language_defn): Ditto.
2852         (asm_language_defn): Ditto.
2853         (minimal_language_defn): Ditto.
2854         * f-lang.c (f_language_defn): Ditto.
2855         * jv-lang.c (java_language_defn): Ditto.
2856         * m2-lang.c (m2_language_defn): Ditto.
2857         * scm-lang.c (scm_language_defn): Ditto.
2858         * objc-lang.c (objc_language_defn): Ditto.
2859         * memattr.c (mem_info_command): Use renamed hex_string_custom with
2860         new interface.
2861         * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
2862         * ui-out.c (ui_out_field_core_addr): Ditto.
2863         * breakpoint.c (breakpoint_adjustment_warning): Ditto.
2864         * exec.c (print_section_info): Ditto.
2865         * i387-tdep.c (print_i387_status_word): Ditto.
2866         (print_i387_control_word): Ditto.
2867         (i387_print_float_info): Ditto.
2868         * maint.c (maint_print_section_info): Ditto.
2869         * solib.c (info_sharedlibrary_command): Ditto.
2870         * somsolib.c (som_sharedlibrary_info_command): Ditto.
2871         * symtab.c (print_msymbol_info): Ditto.
2872         * tracepoint.c (tracepoints_info): Ditto.
2873         * solib-frv.c (lm_base): Ditto.
2874         (frv_current_sos): Ditto.
2875         (enable_break2): Ditto.
2876         (enable_break): Ditto.
2877         * dbxread.c (read_dbx_symtab): Use renamed hex_string.
2878         (process_one_symbol): Ditto.
2879         * infcmd.c (program_info): Ditto.
2880         * mdebugread.c (parse_partial_symbols): Ditto.
2881         * symfile.c (add_symbol_file_command): Ditto.
2882         * cli/cli-cmds.c (edit_command): Ditto.
2883         (list_command): Ditto.
2884         * infcall.c (call_function_by_hand): Ditto.
2885         * remote-vx.c (vx_run_files_info): Ditto.
2886         (vx_wait): Ditto.
2887         (vx_attach): Ditto.
2888         (vx_detach): Ditto.
2889         (vx_kill): Ditto.
2890         * aix-thread.c (pdc_symbol_addrs): Ditto.
2891         (pdc_read_regs): Ditto.
2892         (pdc_write_regs): Ditto.
2893         (pdc_read_data): Ditto.
2894         (pdc_write_data): Ditto.
2895         * d10v-tdep.c (display_trace): Ditto.
2896         * rs6000-nat.c (find_toc_address): Ditto.
2897         * aix-thread.c: Don't include language.h.
2898         * buildsym.c: Ditto.
2899         * dbxread.c: Ditto.
2900         * mdebugread.c: Ditto.
2901         * rs6000-nat.c: Ditto.
2902         * buildsym.c (make_blockvector): Use renamed hex_string.
2903         
2904 2004-09-10  Jason Molenda  (jmolenda@apple.com)
2905
2906         * cli/cli-script.c (read_next_line): Accept zero or more whitespace
2907         chars after 'if' or 'while' commands in user-defined commands.
2908
2909 2004-09-08  Jim Blandy  <jimb@redhat.com>
2910
2911         Fix bug reported and analyzed by Olivier Crete:
2912         * symfile.c (copy_section_addr_info): New function.
2913         (symbol_file_add_with_addrs_or_offsets): Use it to save the
2914         original set of address arguments, instead of handwritten code
2915         that uses one length to allocate and a different length to
2916         initialize.  Use make_cleanup_free_section_addr_info.
2917         * symfile.h (copy_section_addr_info): New declaration.
2918         * utils.c: #include "symfile.h".
2919         (do_free_section_addr_info, make_cleanup_free_section_addr_info):
2920         New functions.
2921         * defs.h (make_cleanup_free_section_addr_info): New declaration.
2922         * Makefile.in (utils.o): Update dependencies.
2923
2924 2004-09-08  Andrew Cagney  <cagney@gnu.org>
2925
2926         * thread-db.c (keep_thread_db): Delete.
2927         (thread_db_new_objfile, thread_db_create_inferior)
2928         (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
2929
2930 2004-09-08  Mark Kettenis  <kettenis@gnu.org>
2931
2932         * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
2933         (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
2934         (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
2935         (i386_frameless_signal_p): Remove prototype.
2936         * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
2937         (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
2938         I386_SSE_NUM_REGS.
2939         * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
2940         instead of FP0_REGNUM.
2941         (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
2942         of FP0_REGNUM and FPC_REGNUM.
2943
2944         * solib-sunos.c (sunos_relocate_main_executable): Remove function.
2945         (sunos_solib_create_inferior_hook): Don't call
2946         sunos_relocate_main_executable.
2947
2948         * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
2949         solib_svr4_fetch_link_map_offsets to
2950         svr4_ilp32_fetch_link_map_offsets.
2951         * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
2952         (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
2953         svr4_ilp32_fetch_link_map_offsets.
2954         * Makefile.in (sparcobsd-tdep.o): Update dependencies.
2955
2956 2004-09-07  Jim Blandy  <jimb@redhat.com>
2957
2958         * frame.h (frame_register): Doc fix.
2959
2960 2004-09-07  Andrew Cagney  <cagney@gnu.org>
2961
2962         * vx-share/wait.h: Delete #ifdef USG.
2963         * utils.c (request_quit): Ditto.
2964         * tui/tui.c (tui_reset): Ditto.
2965         * remote.c: Ditto.
2966         * remote-sds.c: Ditto.
2967         * remote-rdi.c: Ditto.
2968         * mdebugread.c: Ditto.
2969         * m68klinux-nat.c: Ditto.
2970         * infttrace.c: Ditto.
2971         * infptrace.c: Ditto.
2972         * i386v-nat.c: Ditto.
2973         * exec.c: Ditto.
2974         * dbxread.c: Ditto.
2975         * core-aout.c: Ditto.
2976
2977 2004-09-05  Joel Brobecker  <brobecker@gnat.com>
2978
2979         * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
2980         heuristic_proc_desc.
2981         (mips_insn32_frame_cache): Likewise.
2982
2983 2004-09-04  Joel Brobecker  <brobecker@gnat.com>
2984
2985         * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
2986         left behind by error.
2987
2988 2004-09-04  Joel Brobecker  <brobecker@gnat.com>
2989
2990         * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
2991         * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
2992
2993 2004-09-04  Joel Brobecker  <brobecker@gnat.com>
2994
2995         * config/rs6000/xm-aix4.h: Remove this file.
2996         * config/rs6000/aix4.mh (XM_FILE): Delete.
2997
2998 2004-09-04  Joel Brobecker  <brobecker@gnat.com>
2999
3000         * config/rs6000/xm-rs6000.h: Remove this file.
3001         * config/rs6000/rs6000.mh (XM_FILE): Remove.
3002
3003 2004-09-03  Andrew Cagney  <cagney@gnu.org>
3004
3005         * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
3006         (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
3007         only use.
3008
3009         * mips-tdep.c (temp_saved_regs): Delete.
3010         (set_reg_offset): Replace saved_regs parameter with this_cache.
3011         (heuristic_proc_desc, mips16_heuristic_proc_desc)
3012         (mips32_heuristic_proc_desc): Add this_cache parameter.
3013         (mips_insn32_frame_cache, mips_insn16_frame_cache)
3014         (after_prologue): Pass a NULL this_cache.
3015
3016         * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
3017         non-kernel trap prologues.
3018
3019         * mips-tdep.c (find_proc_desc): Delete function.
3020         (mips_mdebug_frame_cache): Inline call to find_proc_desc,
3021         simplify.
3022         (mips_insn16_frame_cache): Replace find_proc_desc with code from
3023         mips_insn32_frame_cache.
3024
3025         * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
3026         Simplify as NEXT_FRAME is NULL.
3027         (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
3028
3029         * mips-tdep.c (after_prologue): Replace proc_desc parameter with
3030         local variable.
3031         (mips_skip_prologue): Update.
3032
3033         * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
3034         "cur_frame" parameter.
3035         (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
3036         (mips_insn32_frame_cache, find_proc_desc): Update
3037
3038         * config/vax/nm-obsd.h: Delete file.
3039         * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3040         * config/vax/nm-nbsd.h: Delete file.
3041         * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
3042         * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3043         * config/sh/nm-nbsd.h: Delete file.
3044         * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3045         * config/rs6000/nm-rs6000ly.h: Delete file.
3046         * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
3047         * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
3048         * config/powerpc/nm-obsd.h: Delete file.
3049         * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3050         * config/powerpc/nm-nbsd.h: Delete file.
3051         * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3052         * config/pa/nm-obsd.h: Delete file.
3053         * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3054         * config/mips/nm-nbsd.h: Delete file.
3055         * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3056         * config/m88k/nm-obsd.h: Delete file.
3057         * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3058         * config/m68k/nm-nbsd.h: Delete file.
3059         * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
3060         * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3061         * config/i386/nm-nbsd.h: Delete file.
3062         * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
3063         * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
3064         * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
3065         * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3066         * config/i386/nm-i386lynx.h: Delete file.
3067         * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
3068         * config/arm/nm-nbsd.h: Delete file.
3069         * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
3070         * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3071
3072         * config/i386/tm-fbsd.h: Delete file.
3073         * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
3074         * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
3075
3076         * config/rs6000/tm-rs6000-aix4.h: Delete file.
3077         * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
3078         * config/rs6000/aix4.mt (TM_FILE): Set to
3079         config/rs6000/tm-rs6000.h.
3080         * config/powerpc/tm-ppc-aix.h: Delete file.
3081         * config/powerpc/aix.mt (TM_FILE): Set to
3082         config/rs6000/tm-rs6000.h.
3083         * config/m68k/tm-linux.h: Delete file.
3084         * config/m68k/linux.mt (TM_FILE): Set to solib.h
3085         * config/i386/tm-linux64.h: Delete file.
3086         * config/i386/linux64.mt (TM_FILE): Set to solib.h.
3087         * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
3088         
3089         * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
3090         * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
3091         * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
3092         * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
3093         * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
3094         * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
3095         * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
3096         * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper. 
3097         * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
3098
3099         * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
3100         gdb_host_cpu.
3101
3102 2004-09-02  Joel Brobecker  <brobecker@gnat.com>
3103
3104         * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
3105         Minor reformatting. Some code factoring.
3106
3107 2004-09-02  Andrew Cagney  <cagney@gnu.org>
3108
3109         * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
3110         * config/vax/tm-nbsd.h: Delete file.
3111         * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
3112         * config/sparc/tm-vxworks.h: Delete file.
3113         * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
3114         * config/sparc/tm-nbsd.h: Delete file.
3115         * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
3116         * config/sparc/linux.mt (TM_FILE): Set to solib.h.
3117         * config/sparc/tm-linux.h: Delete file.
3118         * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
3119         * config/s390/tm-linux.h: Delete file.
3120         * config/pa/obsd.mt (TM_FILE): Set to solib.h.
3121         * config/pa/tm-bsd.h: Delete file.
3122         * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
3123         * config/m68k/tm-obsd.h: Delete file.
3124         * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
3125         * config/m68k/tm-nbsd.h: Delete file.
3126         * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
3127         * config/i386/tm-vxworks.h: Delete file.
3128         * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
3129         * config/i386/obsd.mt (TM_FILE): Set to solib.h.
3130         * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
3131         * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
3132         * config/i386/tm-nbsd.h: Delete file.
3133         * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
3134         * config/i386/tm-i386lynx.h: Delete file.
3135         * config/cris/cris.mt (TM_FILE): Set to solib.h.
3136         * config/cris/tm-cris.h: Delete file.
3137
3138         * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
3139         * configure: Re-generate.
3140         * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
3141         * config/arm/tm-nbsd.h: Delete file.
3142         
3143         * config/powerpc/tm-ppcle-sim.h: Delete.
3144         * config/powerpc/tm-ppcle-eabi.h: Delete.
3145         * config/powerpc/tm-nbsd.h: Delete.
3146         * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
3147         * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
3148         tm-ppcle-eabi.h.
3149
3150         * config/i386/nto.mh (NAT_FILE): Delete.
3151         * config/i386/nm-nto.h: Delete.
3152
3153         * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
3154         * config/m68k/tm-os68k.h: Ditto.
3155         * config/m68k/tm-monitor.h: Ditto.
3156         * config/m68k/tm-cisco.h: Ditto.
3157         * config/m68k/st2000.mt (TM_FILE): Delete.
3158         * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
3159         * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
3160         * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
3161         * m68k-tdep.c (m68k_get_longjmp_target): Make static.
3162
3163         * config/m68k/tm-st2000.h: Delete.
3164         * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
3165         * config/sparc/fbsd.mt (TM_FILE): Delete.
3166         * config/sparc/tm-fbsd.h: Delete.
3167
3168         * acconfig.h (GDB_MULTI_ARCH): Delete undef.
3169         * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM) 
3170         (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
3171
3172         * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
3173         GDB_TM_FILE and GDB_XM_FILE.
3174         * gdbarch.c: Re-generate.       
3175         * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
3176         quotes in macro definition.
3177         * configure.in: Re-generate.
3178
3179         * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
3180         validating architecture methods.
3181         * gdbarch.c: Re-generate.
3182         
3183         * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
3184         and GDB_TM_FILE.  Check for GDB_TM_FILE instead of
3185         GDB_MULTI_ARCH_PARTIAL.
3186         * gdbarch.h: Re-generate.
3187         
3188         * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
3189         * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
3190         * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
3191         * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
3192         * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
3193         * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
3194         * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
3195         * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
3196         * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
3197         * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
3198         * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
3199         * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
3200
3201 2004-09-01  Andrew Cagney  <cagney@gnu.org>
3202
3203         * objfiles.h (struct entry_info): Delete fields main_func_lowpc
3204         and main_func_highpc.
3205         (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
3206         * objfiles.c (init_entry_point_info, objfile_relocate): Update
3207         * nlmread.c (nlm_symfile_read): Update.
3208
3209 2004-09-01  Joel Brobecker  <brobecker@gnat.com>
3210
3211         * mips-tdep.c (linked_proc_desc_table): Delete, not used.
3212         (mips_insn32_frame_cache): Inline call to find_proc_desc.
3213         (find_proc_desc): Remove dead code.
3214
3215 2004-09-01  Joel Brobecker  <brobecker@gnat.com>
3216
3217         * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
3218
3219 2004-09-01  Jeff Johnston  <jjohnstn@redhat.com>
3220
3221         * observer.sh: Add struct so_list declaration.
3222         * Makefile.in: Add dependencies on observer.h for solib.c and
3223         breakpoint.c.
3224         * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
3225         function.
3226         (_initialize_breakpoint): Register 
3227         disable_breakpoints_in_unloaded_shlib as an observer of the 
3228         "solib unloaded" observation event.
3229         (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
3230         call decode_line_1 so unfound breakpoint errors are silent.
3231         * solib.c (update_solib_list): When a solib is discovered to have
3232         been unloaded by the program, notify all observers of the
3233         "solib unloaded" observation event.
3234
3235 2004-09-01  Andrew Cagney  <cagney@gnu.org>
3236
3237         * frame.c: Include "objfiles.h".
3238         (inside_main_func): New function.
3239         (get_prev_frame): Use new inside_main_func.
3240         * Makefile.in (frame.o): Update dependencies.
3241         * defs.h (inside_main_func): Delete declaration.
3242         * blockframe.c (inside_main_func): Delete function.
3243
3244 2004-08-31  Jim Blandy  <jimb@redhat.com>
3245
3246         * dwarf2read.c (is_vtable_name): New function, based on logic from
3247         read_structure_type, but passing the correct length to strncmp,
3248         and using 'sizeof' instead of 'strlen'.
3249         (read_structure_type): Call it.
3250
3251 2004-08-31  Joel Brobecker  <brobecker@gnat.com>
3252
3253         * config/powerpc/aix.mh: Add comment.
3254
3255 2004-08-31  Paul GIlliam  <pgilliam@us.ibm.com>
3256
3257         * MAINTAINERS: Add self to Write-After-Approval.
3258
3259 2004-08-30  Manoj Iyer  <manjo@austin.ibm.com>
3260
3261         * MAINTAINERS: Add self to Write-After-Approval.
3262
3263 2004-08-30  Andrew Cagney  <cagney@gnu.org>
3264
3265         Fix PR breakpoints/1757.
3266         * infrun.c (struct execution_control_state): Replace
3267         remove_breakpoints_on_following_step with
3268         step_after_step_resume_breakpoint.
3269         (init_execution_control_state): Update.
3270         (handle_inferior_event): For signals, when stepping off a
3271         breakpoint, set step_after_step_resume_breakpoint.  When
3272         BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
3273         (keep_going): Delete code handling
3274         remove_breakpoints_on_following_step.
3275
3276 2004-08-29  David Lecomber  <david@streamline-computing.com>
3277         
3278         Fix PR gdb/648
3279         * language.h (enum array_ordering): New enum.
3280         * language.h (struct language_defn): New la_array_ordering 
3281         attribute.
3282         * language.c (unknown_language_defn, auto_language_defn)
3283         (local_language_defn): Ditto.
3284         * ada-lang.c (ada_language_defn): Ditto.
3285         * c-lang.c (c_language_defn, cplus_language_defn)
3286         (asm_language_defn, minimal_language_defn): Ditto.
3287         * f-lang.c (f_language_defn): Ditto.
3288         * jv-lang.c (java_language_defn): Ditto.
3289         * m2-lang.c (f_language_defn): Ditto.
3290         * objc-lang.c (objc_language_defn): Ditto.
3291         * p-lang.c (pascal_language_defn): Ditto.
3292         * scm-lang.c (scm_language_defn): Ditto.
3293         * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
3294         oriented large to small in type structure.
3295         * dwarf2read.c (read_array_order): New function.
3296         (read_array_type): Use read_array_order to check row/column
3297         major ordering.
3298
3299 2004-08-27  Nathan J. Williams  <nathanw@wasabisystems.com>
3300
3301         * target.c (target_resize_to_sections): Check
3302         current_target.to_sections for an old value when updating.
3303
3304 2004-08-27  Joel Brobecker  <brobecker@gnat.com>
3305
3306         * procfs.c (dbx_link_bpt_addr): New static global variable.
3307         (dbx_link_shadow_contents): New static global variable.
3308         (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
3309         (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
3310         if we just hit it.
3311         (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
3312         Reset dbx_link_bpt_addr as the address of __dbx_link() may change
3313         from run to run.
3314         (procfs_create_inferior): Remove syssgi syscall-exit notifications
3315         after the inferior has been forked.
3316         (remove_dbx_link_breakpoint): New function.
3317         (dbx_link_addr): New function.
3318         (insert_dbx_link_bpt_in_file): New function.
3319         (insert_dbx_link_bpt_in_region): New function.
3320         (insert_dbx_link_breakpoint): New function.
3321         (proc_trace_syscalls_1): New function, extracted from
3322         proc_trace_syscalls.
3323         (proc_trace_syscalls): Replace extract code by call to
3324         proc_trace_syscalls_1.
3325         * solib-irix.c (disable_break): Remove stop_pc assertion, as it
3326         is no longer valid.
3327
3328 2004-08-25  Jim Blandy  <jimb@redhat.com>
3329
3330         * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
3331
3332 2004-08-25  Andrew Cagney  <cagney@gnu.org>
3333
3334         * infrun.c (struct execution_control_state): Delete field
3335         "stepping_through_sigtramp".
3336         (init_execution_control_state): Do not set same.
3337         (context_switch): Do not pass same to save_infrun_state and
3338         load_infrun_state.
3339         * gdbthread.h (struct thread_info): Delete field
3340         stepping_through_sigtramp.
3341         (save_infrun_state, load_infrun_state): Delete parameter
3342         stepping_through_sigtramp.
3343         * thread.c (load_infrun_state, save_infrun_state): Update.
3344
3345         * infrun.c: Re-indent.  Move expression operators to the beginning
3346         of the line.  Remove long disabled #if 0 code.
3347
3348 2004-08-24  Andrew Cagney  <cagney@gnu.org>
3349
3350         * doublest.h (floatformat_ieee_quad): Rename
3351         floatformat_ia64_quad.
3352         * doublest.c (floatformat_ieee_quad): Rename
3353         floatformat_ia64_quad.
3354         (_initialize_doublest): Update.
3355
3356 2004-08-24  Jim Blandy  <jimb@redhat.com>
3357
3358         * dwarf2expr.h (struct dwarf_expr_context): New members
3359         'num_pieces' and 'pieces', for returning the result of an
3360         expression that uses DW_OP_piece.
3361         (struct dwarf_expr_piece): New struct type.
3362         * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
3363         pieces.
3364         (free_dwarf_expr_context): Free pieces, if any.
3365         (add_piece): New function.
3366         (execute_stack_op): Implement DW_OP_piece.
3367         * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
3368         expression is a list of pieces, print an error message.
3369         (dwarf2_loc_desc_needs_frame): If the expression yields
3370         pieces, and any piece is in a register, then we need a frame.
3371
3372         * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
3373         the stack until we've decided what sort of result the evaluation
3374         has produced.  Use separate variables, with more specific names.
3375
3376 2004-08-23  Richard Earnshaw  <rearnsha@arm.com>
3377
3378         * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
3379         (arm_nbsd_thumb_[lb]e_breakpoint): Define.
3380         (arm_netbsd_init_abi_common): Register them.
3381
3382 2004-08-22  Mark Kettenis  <kettenis@gnu.org>
3383
3384         * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
3385
3386         * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
3387         safe_frame_unwind_memory instead of target_read_memory.
3388
3389         * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
3390         Reorder includes.
3391         (fetch_register, store_register): Remove prototypes.
3392         (child_resume): Reorganize code and comments such that it is
3393         grouped a bit more logically.
3394         (attach): Explicitly compare errno against 0.
3395         (detach): Likewise.  Use perror_with_name instead of
3396         print_sys_errmsg.
3397         * Makefile.in (infptrace.o): Update dependencies.
3398
3399         * ia64-linux-nat.c: Update copyright year.
3400         (fetch_debug_register, store_debug_register)
3401         (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
3402         PTRACE_TYPE_ARG3.
3403         * config/ia64/nm-linux.h: Update copyright year.
3404          (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
3405
3406         * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
3407         from CORE_ADDR to struct frame_info *.  Use
3408         safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
3409         (amd64_linux_sigtramp_p): Adjust for changed signature of
3410         and64_linux_sigtramp_start
3411
3412         * gdb_ptrace.h: GNU/Linux.
3413
3414         * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
3415         Remove defines.
3416
3417         * infptrace.c: Include "gdb_assert.h".
3418         (PTRACE_XFER_TYPE): Remove define.
3419         (offsetof): Only define if U_REGS_OFFSET isn't defined.
3420         (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
3421         Tweak comment.
3422         (fetch_inferior_registers, store_inferior_registers): Remove
3423         redundant culry braces.  Tweak comment.  s/regno/regnum.
3424         * Makefile.in (infptrace.o): Update dependencies.
3425
3426         * configure.in: Change test for return type of ptrace to default
3427         to `long' instead of `int'.
3428         * configure: Regenerate.        
3429
3430 2004-08-21  Mark Kettenis  <kettenis@gnu.org>
3431
3432         * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
3433
3434         * configure.in: Check for ttrace function.
3435         * configure, config.in: Regenerate.     
3436
3437         * gdb_ptrace.h: New file.
3438         * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
3439         <sys/ptrace.h>.
3440         (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
3441         (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
3442         (attach): Don't define PT_ATTACH.
3443         (detach): Don't define PT_DETACH.
3444         * Makefile.in (gdb_ptrace_h): New variable.
3445         (infptrace.o): Update dependencies.
3446
3447 2004-08-16  Mark Kettenis  <kettenis@gnu.org>
3448
3449         * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
3450         instead of `int' if not already defined.
3451         (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
3452         PTRACE_TYPE_ARG3.
3453         * infptrace.c (call_ptrace): Revert change that replaced
3454         PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3455
3456 2004-08-15  Mark Kettenis  <kettenis@gnu.org>
3457
3458         * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
3459         Remove defines.
3460
3461         * linux-nat.c (kill_inferior): Add missing third and fourth
3462         arguments to ptrace call.  Don't use PTRACE_ARG3_TYPE.
3463
3464         * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
3465         PTRACE_TYPE_RET.
3466
3467         * proc-why.c (proc_prettyfprint_why): Fix format string.
3468
3469         * solib-osf.c (osf_current_sos): Remove unsused label.
3470
3471         * configure.in: Add <ncurses/ncurses.h> to the list of possible
3472         curses headers.
3473         * configure, config.in: Regenerate.     
3474         * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
3475         <ncurses/ncurses.h>.
3476
3477         * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
3478         * config/nm-nbsd.h: Update copyright year.
3479         (PTRACE_ARG3_TYPE): Remove define.
3480
3481         * sparc-nat.c (fetch_inferior_registers)
3482         (store_inferior_registers, sparc_xfer_wcookie): 
3483         Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3484
3485         * alphabsd-nat.c (fetch_inferior_registers):
3486         (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3487         PTRACE_TYPE_ARG3.
3488         * amd64bsd-nat.c (fetch_inferior_registers)
3489         (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3490         PTRACE_TYPE_ARG3.
3491         * armnbsd-nat.c: Update copyright year.
3492         (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
3493         (store_register, store_regs, store_fp_register, store_fp_regs):
3494         Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3495         * hppabsd-nat.c (fetch_inferior_registers)
3496         (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3497         PTRACE_TYPE_ARG3.
3498         * i386bsd-nat.c (fetch_inferior_registers)
3499         (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
3500         Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3501         * m68kbsd-nat.c (fetch_inferior_registers)
3502         (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3503         PTRACE_TYPE_ARG3.
3504         * m88kbsd-nat.c (fetch_inferior_registers)
3505         (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3506         PTRACE_TYPE_ARG3.
3507         * mipsnbsd-nat.c: Update copyright year.
3508         (fetch_inferior_registers, store_inferior_registers):
3509         Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3510         * ns32knbsd-nat.c: Update copyright year.
3511         (fetch_inferior_registers, store_inferior_registers):
3512         Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3513         * ppcnbsd-nat.c (fetch_inferior_registers):
3514         (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3515         PTRACE_TYPE_ARG3.
3516         * ppcobsd-nat.c (fetch_inferior_registers):
3517         (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3518         PTRACE_TYPE_ARG3.
3519         * shnbsd-nat.c: Update copyright year.
3520         (fetch_inferior_registers, store_inferior_registers):
3521         Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3522         * vaxbsd-nat.c (fetch_inferior_registers)
3523         (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3524         PTRACE_TYPE_ARG3.
3525         
3526         * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
3527         PTRACE_TYPE_ARG3.
3528         * infptrace.c (call_ptrace, child_resume, attach, detach)
3529         (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
3530         (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3531         * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
3532         PTRACE_TYPE_ARG3.
3533
3534 2004-08-14  Mark Kettenis  <kettenis@gnu.org>
3535
3536         * defs.h: Remove out-of-date comment.
3537         [!FCLOSE_PROVIDED] (fclose): Remove prototype.
3538         [!GETENV_PROVIDED] (getenv): Remove prototype.
3539
3540         * standalone.c: Remove file.
3541         * Makefile.in (standalone.o): Remove dependency.
3542
3543         * i386-linux-nat.c (dummy_sse_values): Remove function and
3544         prototype.
3545         (i386_linux_dr_get): Fix typo in comment.
3546         (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
3547
3548         * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
3549
3550         * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
3551         from declaration.
3552         * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
3553         from definition.
3554
3555 2004-08-13  Mark Kettenis  <kettenis@gnu.org>
3556
3557         * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
3558         parenthesis in definition.
3559         * configure: Regenerated.
3560
3561 2004-08-12  Michael Chastain  <mec.gnu@mindspring.com>
3562
3563         * PROBLEMS: Mention build/1411.
3564
3565 2004-08-09  Robert Millan  <robertmh@gnu.org>
3566
3567         Committed by Nathanael Nerode.
3568         * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
3569         * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
3570
3571 2004-08-12  Andrew Cagney  <cagney@gnu.org>
3572
3573         * NEWS: Mention fixes in GDB 6.2.1.
3574         * PROBLEMS: Remove mention of mips-irix.
3575
3576 2004-08-11  Joel Brobecker  <brobecker@gnat.com>
3577
3578         * config/powerpc/xm-aix.h: Delete.
3579         * config/powerpc/aix.mh (MH_FILE): Remove.
3580         * config/powerpc/aix432.mh (MH_FILE): Remove.
3581
3582 2004-08-11  Joel Brobecker  <brobecker@gnat.com>
3583
3584         * config/powerpc/aix.mh: Remove obsolete comment.
3585         * config/powerpc/aix432.mh: Likewise.
3586
3587 2004-08-11  Joel Brobecker  <brobecker@gnat.com>
3588
3589         * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
3590
3591 2004-08-11  Joel Brobecker  <brobecker@gnat.com>
3592
3593         * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
3594         this file is now empty.
3595         * config/xm-aix4.h: Remove, this file is no longer included
3596         anywhere.
3597
3598 2004-08-11  Joel Brobecker  <brobecker@gnat.com>
3599
3600         * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
3601         that file is now empty.
3602         (termdef): Remove prototype, function no longer used.
3603
3604 2004-08-11  Joel Brobecker  <brobecker@gnat.com>
3605
3606         * doc/gdbint.texinfo (Host Definition): Remove documentation
3607         for USE_O_NOCTTY, no longer used.
3608         * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
3609         * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
3610
3611 2004-08-11  Joel Brobecker  <brobecker@gnat.com>
3612
3613         * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
3614         * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
3615         * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
3616
3617 2004-08-11  Mark Kettenis  <kettenis@gnu.org>
3618
3619         * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
3620         instead of FIVE_ARG_PTRACE.
3621
3622         * inflow.c (O_NOCTTY): Define to zero if not already defined.
3623         (new_tty): Use O_NOCTTY unconditionally.
3624
3625 2004-08-10  Mark Kettenis  <kettenis@gnu.org>
3626
3627         * procfs.c (procfs_detach): Cleanup.  Print process ID, not LWP
3628         ID.  Use comma in output.  Use gdb_flush on gdb_stdout instead of
3629         fflush on stdout.
3630
3631 2004-08-10  Joel Brobecker  <brobecker@gnat.com>
3632
3633         * xcoff_symfile_finish: Replace last call to xmfree by call
3634         to xfree.
3635
3636 2004-08-10  Andrew Cagney  <cagney@gnu.org>
3637
3638         * main.c (captured_main): Delete call to init_malloc.
3639         * defs.h (init_malloc): Delete declaration.
3640         * utils.c (mmalloc, mrealloc, mcalloc, mfree)
3641         (init_malloc): Delete functions.
3642
3643         * defs.h (xmfree): Delete.
3644         * utils.c (xmfree): Delete function.
3645         (xfree): Inline calls to xmfree and mfree.
3646         * symmisc.c (free_symtab_block, free_symtab): Use xfree.
3647         * symfile.c (reread_symbols, init_psymbol_list): Ditto.
3648         * source.c (forget_cached_source_info, find_and_open_source): Ditto.
3649         * somread.c (som_symfile_finish): Ditto.
3650         * objfiles.c (allocate_objfile, free_objfile): 
3651         * nlmread.c (nlm_symfile_finish): Ditto.
3652         * hpread.c (hpread_symfile_finish): Ditto.
3653         * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
3654         * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
3655         * coffread.c (coff_symfile_finish): Ditto.
3656
3657         * defs.h (xmcalloc): Delete declaration.
3658         * utils.c (xmcalloc): Delete.
3659         (xcalloc): Inline calls to xmcalloc and mcalloc.
3660         * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
3661         xcalloc and xfree.
3662         * symtab.c (create_demangled_names_hash): Ditto.
3663
3664         * defs.h (xmrealloc): Delete.
3665         * utils.c (xmrealloc): Delete.
3666         (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
3667         * symmisc.c (extend_psymbol_list): Use xrealloc.
3668         * source.c (find_source_lines): Ditto.
3669         * hpread.c (hpread_lookup_type): Ditto.
3670         * dbxread.c (add_bincl_to_list): Ditto.
3671
3672         * utils.c (xmmalloc): Delete.
3673         (xmalloc): Inline xmmalloc and mmalloc calls.
3674         (msavestring): Use xmalloc.
3675         * defs.h (xmmalloc): Delete declaration.
3676         * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
3677         xmmalloc.
3678         * symmisc.c (extend_psymbol_list): Ditto.
3679         * symfile.c (init_psymbol_list): Ditto.
3680         * source.c (find_source_lines): Ditto.
3681         * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
3682         * elfread.c (elf_symtab_read): Ditto.
3683         * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
3684         * coffread.c (coff_symfile_init): Ditto.
3685
3686 2004-08-10  David Carlton  <carlton@bactrian.org>
3687
3688         * MAINTAINERS: Remove David Carlton from c++ testsuite
3689         maintainers.
3690
3691 2004-08-10  Jerome Guitton  <guitton@gnat.com>
3692
3693         * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
3694         print a line feed before the prompt.
3695
3696 2004-08-10  Mark Kettenis  <kettenis@gnu.org>
3697
3698         * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
3699
3700 2004-08-09  Joel Brobecker  <brobecker@gnat.com>
3701
3702         General cleanup of the AIX xm include file:
3703         * config/xm-aix4.h (fd_set): Remove undefine.
3704         Remove include of <sys/select.h>.
3705         (HAVE_TERMIO): Remove define.
3706         (USG): Likewise.
3707         (NULL): Remove redefine.
3708         (alloca): Remove #pragma.
3709         (vfork): Remove define.
3710         (termdef): Remove.
3711         (SIGWINCH_HANDLER): Remove.
3712         (SIGWINCH_HANDLER_BODY): Remove.
3713
3714 2004-08-09  Mark Kettenis  <kettenis@gnu.org>
3715
3716         * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
3717         GDB_OSABI_OPENBSD_ELF.
3718
3719 2004-08-07  Robert Millan  <robertmh@gnu.org>
3720
3721         * bsd-kvm.c: Check for nlist.h before including it.
3722
3723 2004-08-09  Mark Kettenis  <kettenis@gnu.org>
3724
3725         * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
3726         sigcontext' offset consistency checks for ancient BSD.
3727
3728         * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
3729
3730         * configure.in: Check for <sys/types.h>.  Check return and
3731         argument types of ptrace.
3732         * configure, config.in: Regenerate.     
3733
3734 2004-08-09  Jim Blandy  <jimb@redhat.com>
3735
3736         * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
3737         rs6000_register_sim_regno): Doc fixes.
3738
3739 2004-08-08  Joel Brobecker  <brobecker@gnat.com>
3740
3741         * mips-tdep.c: Include "floatformat.h".
3742         (n32n64_floatformat_always_valid): New function.
3743         (floatformat_n32n64_long_double_big): New constant.
3744         (mips_gdbarch_init): Set size and format of long double
3745         for N32 and N64 ABIs.
3746         * Makefile.in (mips-tdep.o): Update dependencies.
3747
3748 2004-08-08  Andrew Cagney  <cagney@gnu.org>
3749
3750         * gdbarch.sh: Delete "fmt" and "attrib" fields.  Always use %s to
3751         print.  Improve script's error messages.
3752         * gdbarch.h: Re-generate.
3753
3754         * gdbarch.sh (pformat): New function.
3755         (float_format, double_format, long_double_format): List with bit
3756         members.  Use pformat when printing.
3757         * gdbarch.c, gdbarch.h: Re-generate.
3758         
3759 2004-08-08  Nathan J. Williams  <nathanw@wasabisystems.com>
3760
3761         * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
3762         "gdbcore.h", "regcache.h", and "bsd-kvm.h".
3763         (ppcnbsd_supply_pcb): New function.
3764         (_initialize_ppcnbsd_nat): New prototype and function.
3765         * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
3766         (LOADLIBES): New variable.
3767         * Makefile.in (ppcnbsd-nat.o): Update dependencies.
3768
3769 2004-08-08  Andrew Cagney  <cagney@gnu.org>
3770
3771         * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
3772         (builtin_type_ieee_double, builtin_type_ia64_quad)
3773         (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
3774         BE/LE floating-point types.
3775         * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
3776         (builtin_type_ieee_double, builtin_type_ia64_quad)
3777         (builtin_type_ia64_spill): Declare.
3778         * doublest.c (_initialize_doublest, floatformat_ieee_single)
3779         (floatformat_ieee_double, floatformat_arm_ext)
3780         (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
3781         of LE/BE floatformats.  
3782         * doublest.h: (struct floatformat, floatformat_ieee_single)
3783         (floatformat_ieee_double, floatformat_arm_ext)
3784         (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
3785
3786 2004-08-08  Mark Kettenis  <kettenis@gnu.org>
3787
3788         * i386gnu-nat.c (gnu_store_registers): Fix typo.
3789
3790         * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
3791         instead of regcache_raw_supply when storing the registers.
3792
3793         * i386gnu-nat.c: Update copyright year.
3794         (gnu_store_registers): Don't use deprecated_registers and
3795         deprecated_registers_valid.  Use regcache_valid_p and
3796         regcache_raw_supply instead.
3797
3798         * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
3799         frame_pc_unwind.
3800
3801         * procfs.c (procfs_pid_to_str): Remove redundant and unused
3802         variables.  Incapitalized "process".
3803
3804         * configure.in: Add cursesX to the list of possible curses libs.
3805         Add cursesX.h to the list of possible curses headers. 
3806         * configure, config.in: Regenerate.     
3807
3808 2004-08-07  Nathan J. Williams  <nathanw@wasabisystems.com>
3809
3810         * configure.in: Test for struct lwp in <sys/lwp.h>.
3811         * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
3812         the offset of l_addr in struct lwp.
3813
3814 2004-08-07  Nathan J. Williams  <nathanw@wasabisystems.com>
3815
3816         * bsd-kvm.c: Include "gdbcore.h"
3817         (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
3818
3819 2004-08-07  Andrew Cagney  <cagney@gnu.org>
3820
3821         * gdbtypes.c (build_flt, build_complex): New functions.
3822         (gdbtypes_post_init): Use.
3823
3824         * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
3825
3826         * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
3827         through to builtin_type_uint128.
3828
3829         * c-exp.y: Use builtin_type function to obtain builtin types.
3830
3831         * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
3832         builtin_uint128.
3833         * gdbtypes.c (gdbtypes_post_init): Update.
3834         (build_gdbtypes): Move initialization of builtin_type_int0
3835         through to builtin_type_uint128 from here ...
3836         (_initialize_gdbtypes): ... to here.
3837         * d10v-tdep.c (d10v_register_type): Update.
3838
3839         * doublest.c: Update copyright.
3840         (floatformat_from_length): Call error when floatformat is NULL.
3841         (extract_floating_by_length): Remove NULL fmt check.
3842         (store_floating_by_length): Ditto.
3843
3844 2004-08-07  Andrew Cagney  <cagney@gnu.org>
3845
3846         * regcache.c (regcache_raw_read): For the moment, #ifdef assert
3847         that the register is valid.
3848
3849 2004-08-05  Mark Kettenis  <kettenis@chello.nl>
3850
3851         * i386-linux-tdep.c (i386_linux_sigtramp_start)
3852         (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
3853         struct frame_info *.  Use safe_frame_unwind_memory instead of
3854         deprecated_read_memory_nobpt.
3855         (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
3856         changed signature of i386_linux_sigtramp_start and
3857         i386_linux_rt_sigtramp_start.
3858
3859         * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
3860         CORE_ADDR to struct frame_info *.  Use safe_frame_unwind_memory
3861         instead of deprecated_read_memory_nobpt.
3862         (i386nbsd_sigtramp_p): Adjust for changed signature of
3863         i386nbsd_sigtramp_offset.
3864
3865         * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
3866         safe_frame_unwind_memory instead of target_read_memory.
3867
3868         * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
3869         !NO_SYS_FILE.
3870         [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
3871         [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
3872         (_initialize_kernel_u_addr): Remove prototype and function.
3873         * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
3874         !NO_SYS_FILE.
3875         * xcoffread.c: Likewise.
3876
3877 2004-08-06  Mark Kettenis  <kettenis@gnu.org>
3878
3879         * vax-nat.c: New file.
3880         * vaxbsd-nat.c: Tweak comment.
3881         * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
3882         vaxnbsd-tdep.c.
3883         (vax-nat.o): New dependency.
3884         * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
3885         (vax-*-ultrix2*): Remove.
3886         * config/vax/vax.mh: New file.
3887         * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
3888         (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
3889         (vax_register_u_addr): New prototype.
3890         (REGISTER_U_ADDR): Define using vax_register_u_addr.
3891         * config/vax/vaxult2.mh: Remove file.
3892         * config/vax/vaxult.mh: Remove file.
3893         * config/vax/vaxbsd.mh: Remove file.
3894         * config/vax/vax.mt (TM_FILE): Remove.
3895         * config/vax/tm-vaxbsd.h: Remove file.
3896
3897 2004-08-06  Joel Brobecker  <brobecker@gnat.com>
3898
3899         * aix-thread.c (get_signaled_thread): New function.
3900         (iter_trap): Delete, no longer used.
3901         (iter_tid): New function.
3902         (pd_update): Find the thread that received the SIGTRAP signal
3903         by first locating the kernel thread, and then finding its
3904         associated thread.
3905
3906 2004-08-06  Ulrich Weigand  <uweigand@de.ibm.com>
3907
3908         * lin-lwp.c (child_wait): Continue inferior after processing
3909         PTRACE_EVENT_CLONE event.
3910
3911 2004-08-05  Nathanael Nerode  <neroden@gcc.gnu.org>
3912
3913         * MAINTAINERS: Add self to Write-After-Approval.
3914
3915 2004-08-05  Jeff Johnston  <jjohnstn@redhat.com>
3916
3917         * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
3918         libunwind-xxxx.so" where xxxx is UNW_TARGET.
3919
3920 2004-08-05  Andrew Cagney  <cagney@gnu.org>
3921
3922         * config/xm-sysv4.h: Delete file.
3923         * config/mips/xm-irix5.h: Delete file.
3924         * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
3925         * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
3926         * config/ia64/xm-aix.h: Delete file.
3927         * config/ia64/aix.mh (XM_FILE): Delete.
3928         * config/pa/xm-hppah.h: Delete file.
3929         * config/pa/hpux11w.mh (XM_FILE): Delete.
3930         * config/pa/hpux11.mh (XM_FILE): Delete.
3931         * config/pa/hpux1020.mh (XM_FILE): Delete.
3932         * config/pa/hppahpux.mh (XM_FILE): Delete.
3933
3934         * config/alpha/xm-alphalinux.h: Delete file.
3935         * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
3936         * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
3937         * config/alpha/xm-alphaosf.h: Delete file.
3938         * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
3939         * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
3940         * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
3941         * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
3942
3943         * config/i386/xm-i386v.h: Delete file.
3944         * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
3945         * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
3946         * config/i386/xm-i386sco.h: Delete file.
3947         * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
3948         * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
3949         * config/i386/xm-i386v4.h: Delete file.
3950         * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
3951         * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
3952         * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
3953         * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
3954
3955         * config/vax/xm-vax.h: Delete file.
3956         * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
3957         * config/vax/xm-vaxult2.h: Delete file.
3958         * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
3959         * config/vax/vaxult2.mh (XM_FILE): Delete.
3960         * config/vax/xm-vaxult.h: Delete file.
3961         * config/vax/vaxult.mh (XM_FILE): Delete.
3962         * config/vax/xm-vaxbsd.h: Delete file.
3963         * config/vax/vaxbsd.mh (XM_FILE): Delete.
3964
3965         * gdbarch.sh (deprecated_frame_saved_pc): Delete.
3966         * gdbarch.h, gdbarch.c: Re-generate.
3967         * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
3968         * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
3969         * frame.h: Delete deprecated_read_fp from comments.
3970         * arch-utils.c (deprecated_init_frame_pc_default): Delete.
3971         * arch-utils.h (deprecated_init_frame_pc_default): Delete.
3972
3973 2004-08-04  Mark Kettenis  <kettenis@gnu.org>
3974
3975         * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
3976         trampoline in OpenBSD 3.5-current.
3977
3978         * i387-tdep.c (i387_supply_fsave): Provide summy values for the
3979         SSE registers.
3980
3981         * Makefile.in: Remove embedded page breaks.
3982
3983 2004-08-04  Jim Blandy  <jimb@redhat.com>
3984
3985         * regcache.c (regcache_raw_read): Assert that, after calling
3986         target_fetch_registers, the register we're reading is cached.
3987
3988         * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
3989         a call to 'internal_error', with a more helpful error message.
3990         * rs6000-tdep.c (e500_pseudo_register_read,
3991         e500_pseudo_register_write, rs6000_store_return_value): Same.
3992
3993 2004-08-04  Andrew Cagney  <cagney@gnu.org>
3994
3995         * Makefile.in: Update dependencies.
3996
3997 2004-08-04  Jim Blandy  <jimb@redhat.com>
3998
3999         Change the layout of the PowerPC E500 raw register cache to allow
4000         the lower 32-bit halves of the GPRS to be their own raw registers,
4001         not pseudoregisters.
4002         * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
4003         add ppc_ev0_upper_regnum flag.
4004         * rs6000-tdep.c: #include "reggroups.h".
4005         (spe_register_p): Recognize the ev upper half registers as SPE
4006         registers.
4007         (init_sim_regno_table): Build gdb->sim mappings for the upper-half
4008         registers.
4009         (e500_move_ev_register): New function.
4010         (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
4011         vector registers are the pseudo-registers now, formed by splicing
4012         together the gprs and the upper-half registers.
4013         (e500_register_reggroup_p): New function.
4014         (P): Macro deleted.
4015         (P8, A4): New macro.
4016         (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
4017         (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
4018         macros.
4019         (registers_e500): Rearrange register set so that the raw register
4020         set contains 32-bit GPRs and upper-half registers, and the SPE
4021         vector registers become pseudo-registers.
4022         (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
4023         it has been deleted.  Initialize ppc_ev0_upper_regnum.  Many other
4024         register numbers are now the same for the E500 as they are for
4025         other PowerPC variants.  Register e500_register_reggroup_p as the
4026         register group function for the E500.
4027         * Makefile.in (rs6000-tdep.o): Update dependencies.
4028
4029         Adapt PPC E500 native support to the new raw regcache layout.
4030         * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
4031         (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
4032         (fetch_spe_register, store_spe_register): Handle fetching/storing
4033         all the SPE registers at once, if regno == -1.  These now take
4034         over the job of fetch_spe_registers and store_spe_registers.
4035         (fetch_spe_registers, store_spe_registers): Deleted.
4036         (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
4037         unconditionally; they're always raw.  Fetch/store SPE upper half
4038         registers, if present, instead of ev registers.
4039         (fetch_register, store_register): Remove sanity checks: gprs are
4040         never pseudo-registers now, so we never need to even mention any
4041         registers that are ever pseudoregisters.
4042
4043         Use a fixed register numbering when communicating with the PowerPC
4044         simulator.
4045         * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
4046         * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
4047         (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno): 
4048         New functions.
4049         (rs6000_gdbarch_init): Register rs6000_register_sim_regno.  Call
4050         init_sim_regno_table.
4051         * Makefile.in (gdb_sim_ppc_h): New variable.
4052         (rs6000-tdep.o): Update dependencies.
4053
4054 2004-08-02  Andrew Cagney  <cagney@gnu.org>
4055
4056         * cris-tdep.c (cris_register_size): Restore function, still used
4057         locally.
4058
4059         * gdbarch.sh (deprecated_target_read_fp)
4060         (deprecated_frame_locals_address, deprecated_frame_args_address)
4061         (deprecated_frame_chain_valid, deprecated_frame_chain)
4062         (deprecated_init_extra_frame_info, deprecated_pop_frame)
4063         (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
4064         (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
4065         * gdbarch.h, gdbarch.c: Re-generate.
4066         * regcache.c (deprecated_read_fp): Do not call
4067         DEPRECATED_TARGET_READ_FP_P.
4068         * infcmd.c (default_print_registers_info): Do not call
4069         DEPRECATED_DO_REGISTERS_INFO.
4070         * frame-base.c (default_frame_locals_address): Do not call
4071         DEPRECATED_FRAME_LOCALS_ADDRESS.
4072         (default_frame_args_address): Do not call
4073         DEPRECATED_FRAME_ARGS_ADDRESS.
4074
4075         * gdbarch.sh (deprecated_register_raw_size)
4076         (deprecated_register_virtual_size:int): Delete.
4077         * gdbarch.h, gdbarch.c: Re-generate.
4078         * cris-tdep.c (cris_register_size): Delete.
4079         (cris_gdbarch_init): Update.
4080         * alpha-tdep.c (alpha_register_raw_size)
4081         (alpha_register_virtual_size): Delete.
4082         (alpha_gdbarch_init): Update.
4083
4084         * gdbarch.sh (deprecated_register_virtual_type)
4085         (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
4086         (deprecated_dummy_write_sp): Delete.
4087         * gdbarch.h, gdbarch.c: Re-generate.
4088
4089         * gdbarch.sh (deprecated_register_bytes): Delete.
4090         * gdbarch.h, gdbarch.c: Re-generate.
4091         * regcache.c (deprecated_register_bytes): New function.
4092         * regcache.h (deprecated_register_bytes): Declare.
4093         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4094         * v850-tdep.c (v850_gdbarch_init): Update.
4095         * sh64-tdep.c (sh64_gdbarch_init): Update.
4096         * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
4097         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4098         * mcore-tdep.c (mcore_gdbarch_init): Update.
4099         * cris-tdep.c (cris_gdbarch_init): Update.
4100         * arm-tdep.c (arm_gdbarch_init): Update.
4101         * remote.c (init_remote_state): Update.
4102         * remote-vx.c (vx_prepare_to_store): Update.
4103         * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
4104         * irix5-nat.c (fetch_core_registers): Update.
4105         * cris-tdep.c (cris_register_bytes_ok): Update.
4106         * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
4107
4108         * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
4109         (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
4110         (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
4111         (mips_insn16_frame_base_address, mips_insn16_frame_base)
4112         (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
4113         (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
4114         (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
4115         (mips_insn32_frame_base_address, mips_insn32_frame_base)
4116         (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
4117         with mips_insn16 and mips_insn32.
4118
4119         Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
4120         * rs6000-tdep.c (rs6000_push_dummy_call)
4121         (rs6000_extract_return_value): Use register_size.
4122         * xstormy16-tdep.c (xstormy16_get_saved_register) 
4123         (xstormy16_extract_return_value): Ditto.
4124         * valops.c (value_assign): Ditto.
4125         * v850ice.c (v850ice_fetch_registers, v850ice_store_registers): 
4126         * v850-tdep.c (v850_extract_return_value): Ditto.
4127         * tracepoint.c (collect_symbol): Ditto.
4128         * target.c (debug_print_register): Ditto.
4129         * stack.c (frame_info): Ditto.
4130         * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
4131         * rom68k-rom.c (rom68k_supply_one_register): Ditto.
4132         * remote.c (struct packet_reg, remote_wait, remote_async_wait)
4133         (store_register_using_P): Ditto.
4134         * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
4135         * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
4136         * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
4137         * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
4138         * regcache.c (deprecated_read_register_bytes) 
4139         (deprecated_write_register_bytes, read_register) 
4140         (write_register): Ditto.
4141         * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
4142         (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
4143         * monitor.c (monitor_supply_register, monitor_fetch_register) 
4144         (monitor_store_register): Ditto.
4145         * mn10300-tdep.c (mn10300_pop_frame_regular) 
4146         (mn10300_print_register): Ditto.
4147         * mipsv4-nat.c (fill_fpregset): Ditto.
4148         * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset) 
4149         (mips64_fill_fpregset): Ditto.
4150         * mi/mi-main.c (register_changed_p, get_register)
4151         (mi_cmd_data_write_register_values): Ditto.
4152         * lynx-nat.c (fetch_inferior_registers, store_inferior_registers): 
4153         * irix5-nat.c (fill_gregset, fetch_core_registers): 
4154         * infrun.c (write_inferior_status_register): Ditto.
4155         * infptrace.c (fetch_register, store_register): Ditto.
4156         * infcmd.c (default_print_registers_info): Ditto.
4157         * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
4158         * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
4159         * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
4160         * hpux-thread.c (hpux_thread_fetch_registers)
4161         (hpux_thread_store_registers): Ditto.
4162         * hppah-nat.c (store_inferior_registers, fetch_register): 
4163         * findvar.c (value_from_register): Ditto.
4164         * dve3900-rom.c (fetch_bitmapped_register): 
4165         * cris-tdep.c (cris_gdbarch_init): Ditto.
4166         * alpha-tdep.h: Ditto.
4167         * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
4168
4169         * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
4170         DEPRECATED_REGISTER_RAW_SIZE from comments.
4171         * regcache.c (init_regcache_descr, regcache_dump): Do not check or
4172         use DEPRECATED_REGISTER_VIRTUAL_SIZE and
4173         DEPRECATED_REGISTER_RAW_SIZE.
4174         * findvar.c (value_of_register): Simplify by assuming that the
4175         registers raw and virtual sizes are identical.
4176         * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
4177         comment.
4178         * arch-utils.c (generic_register_size): Simplify by assuming
4179         register_type.
4180
4181         * regcache.c (legacy_read_register_gen, real_register) 
4182         (legacy_write_register_gen): Delete, not used.
4183
4184         * regcache.c (struct regcache_descr): Delete legacy_p.
4185         (init_legacy_regcache_descr): Delete function.
4186         (init_regcache_descr): Delete call to init_legacy_regcache_descr.
4187         Do not use deprecated register functions.
4188         (regcache_raw_read, deprecated_write_register_gen):
4189         (deprecated_read_register_gen, regcache_raw_write): Delete code
4190         predicated on legacy_p.
4191         (register_size): Delete check against register raw size.
4192
4193         * cris-tdep.c (cris_register_type): Replace
4194         cris_register_virtual_type.
4195         (cris_gdbarch_init): Update, set register_type.
4196
4197         * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
4198         * gdbarch.h, gdbarch.c: Re-generate.
4199         * arm-tdep.c    (arm_frameless_function_invocation): Delete.
4200         (arm_gdbarch_init) Do not set frameless function invocation.
4201         * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
4202         * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
4203         * frv-tdep.c (frv_frameless_function_invocation): Delete.
4204         (frv_gdbarch_init): Do not set frameless function invocation.
4205         * sh64-tdep.c (sh64_gdbarch_init): Ditto.
4206         * sh-tdep.c (sh_gdbarch_init): Ditto.
4207         * m32r-tdep.c (m32r_gdbarch_init): Ditto.
4208         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4209         * avr-tdep.c (avr_gdbarch_init): Ditto.
4210
4211         * blockframe.c (legacy_frame_chain_valid): Delete function.
4212
4213         * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
4214         and pc.  Update comments.
4215         (pc_in_dummy_frame): Delete function.
4216         (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
4217         use the "id".
4218         (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
4219         call_hi, top and pc, use the id.
4220         (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
4221
4222         * dummy-frame.c: Include "gdb_string.h".
4223         (generic_save_call_dummy_addr, generic_push_dummy_frame)
4224         (generic_save_dummy_frame_tos): Delete.
4225         (dummy_frame_push): New function, replaces above.
4226         * dummy-frame.h: Update copyright.
4227         (dummy_frame_push): Declare.
4228         * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
4229         (generic_save_call_dummy_addr): Delete declarations.
4230         * infcall.c: Include "dummy-frame.h".
4231         (call_function_by_hand): Add locals caller_regcache,
4232         caller_regcache_cleanup and dummy_id.  Replace push_dummy_frame
4233         with call to frame_save_as_regcache plus cleanup.  Delete calls to
4234         generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
4235         Move clear_proceed_status to just before the resume, add call to
4236         dummy_frame_push (discard cleanup).
4237         * Makefile.in (infcall.o): Add $(dummy_frame_h).
4238         (dummy-frame.o): Add $(gdb_string_h).
4239
4240 2004-08-01  Andrew Cagney  <cagney@gnu.org>
4241
4242         * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
4243         * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
4244         * dummy-frame.c (find_dummy_frame): Delete.
4245         (struct dummy_frame_cache, dummy_frame_sniffer)
4246         (dummy_frame_prev_register, dummy_frame_this_id)
4247         (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
4248         frame unwinder using a dummy_frame_cache.
4249
4250 2004-08-01  Andrew Cagney  <cagney@gnu.org>
4251
4252         * frame.h (frame_save_as_regcache): Declare.
4253         * frame.c (frame_save_as_regcache): New function.
4254         (do_frame_read_register): Replace do_frame_unwind_register.
4255         (frame_pop): Use frame_save_as_regcache.
4256         * dummy-frame.c (generic_push_dummy_frame): Use
4257         frame_save_as_regcache.
4258
4259 2004-08-01  Joel Brobecker  <brobecker@gnat.com>
4260
4261         * dwarf2read.c (dwarf_decode_lines): Do not consider the current
4262         file as included until we record the first line in the linetable.
4263
4264 2004-08-01  Andrew Cagney  <cagney@gnu.org>
4265
4266         * frame.h (deprecated_pop_dummy_frame)
4267         (deprecated_read_register_dummy)
4268         (deprecated_generic_find_dummy_frame): Delete.
4269         * dummy-frame.c (deprecated_generic_find_dummy_frame)
4270         (deprecated_read_register_dummy)
4271         (deprecated_find_dummy_frame_regcache)
4272         (discard_innermost_dummy)
4273         (deprecated_pop_dummy_frame): Delete.
4274         (dummy_frame_this_id): Simplify.
4275         (struct dummy_frame): Delete "fp" and "sp".
4276         (find_dummy_frame): Simplify.
4277         (generic_push_dummy_frame): Do not set "fp" or "sp".
4278         (fprint_dummy_frames): Do not print "fp" and "sp"
4279
4280 2004-08-01  Mark Kettenis  <kettenis@gnu.org>
4281
4282         * i386-tdep.c (I386_MAX_INSN_LEN): New define.
4283         (struct i386_insn): New structure.
4284         (i386_match_insn): New function.
4285         (i386_frame_setup_skip_insns): New variable.
4286         (i386_analyze_frame_setup): Change to use i386_match_insn and the
4287         array i386_frame_setup_insns of instructions that should be
4288         skipped inside the frame setup sequence.
4289
4290 2004-08-01  Andrew Cagney  <cagney@gnu.org>
4291
4292         * frame.h (deprecated_frame_xmalloc_with_cleanup)
4293         (frame_saved_regs_zalloc, frame_extra_info_zalloc)
4294         (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
4295         * stack.c (frame_info): Delete references to
4296         DEPRECATED_FRAME_INIT_SAVED_REGS and
4297         deprecated_get_frame_saved_regs.
4298         * frame.c (struct frame_info): Delete saved_regs and extra_info.
4299         (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
4300         (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
4301         (frame_unwind_register_signed)
4302         (frame_unwind_register_unsigned)
4303         (frame_unwind_unsigned_register): Use register_size.
4304         (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
4305         (deprecated_frame_xmalloc_with_cleanup)
4306         (frame_saved_regs_zalloc, frame_extra_info_zalloc)
4307         (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
4308
4309         * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
4310         * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
4311         * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
4312         * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
4313
4314         * infcall.c (call_function_by_hand): Do not use
4315         DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
4316         DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
4317         DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
4318         DEPRECATED_STACK_ALIGN.
4319
4320 2004-07-30  Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
4321
4322         Committed by Andrew Cagney.
4323         * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
4324
4325 2004-08-01  Andrew Cagney  <cagney@gnu.org>
4326
4327         * mips-tdep.c (mips16_frame_cache)
4328         (mips16_frame_this_id, mips16_frame_prev_register)
4329         (mips16_frame_unwind, mips16_frame_sniffer)
4330         (mips16_frame_base_address, mips16_frame_base)
4331         (mips16_frame_base_sniffer, mips32_frame_cache)
4332         (mips32_frame_this_id, mips32_frame_prev_register)
4333         (mips32_frame_unwind, mips32_frame_sniffer)
4334         (mips32_frame_base_address, mips32_frame_base)
4335         (mips32_frame_base_sniffer): Clone the mdebug unwinder into
4336         separate heuristic mips16 and mips32 unwinders.
4337         (mips_stub_frame_cache, mips_stub_frame_this_id)
4338         (mips_stub_frame_prev_register)
4339         (mips_stub_frame_unwind, mips_stub_frame_sniffer)
4340         (mips_stub_frame_base_address, mips_stub_frame_base)
4341         (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
4342         (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
4343         match true mdebug frames.
4344         (non_heuristic_proc_desc): Add forward declaration.
4345
4346 2004-08-01  Andrew Cagney  <cagney@gnu.org>
4347
4348         * config/mips/tm-irix6.h: Delete file.
4349         * config/mips/tm-irix5.h: Delete file.
4350         * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
4351         * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
4352
4353         * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
4354         * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
4355         * config/nm-gnu.h (NO_CORE_OPS): Delete.
4356         * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
4357         * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
4358         * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
4359         * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
4360         * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
4361         * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
4362         * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
4363         * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
4364         (TARGET_SIGNAL_RAW_VALUES): Delete.
4365         * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
4366         Delete.
4367         * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT) 
4368         (TARGET_HW_WATCH_LIMIT): Delete.
4369         * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
4370         * minimon.h: Delete file.
4371
4372         * trad-frame.c (trad_frame_get_this_base)
4373         (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
4374         functions.
4375         * trad-frame.h (trad_frame_set_this_base)
4376         (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
4377
4378 2004-07-31  Andrew Cagney  <cagney@gnu.org>
4379
4380         * trad-frame.c (trad_frame_get_prev_register): Rename
4381         trad_frame_get_prev_register.
4382         * vax-tdep.c (vax_frame_prev_register): Update.
4383         * trad-frame.h: Update.
4384         * trad-frame.c (trad_frame_get_register): Update.
4385         * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
4386         * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
4387         Update.
4388         * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
4389         * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
4390         Update.
4391         * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
4392         Update.
4393         * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
4394         Update.
4395         * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
4396         Update.
4397         * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
4398         Update.
4399         * s390-tdep.c (s390_frame_prev_register) 
4400         (s390_stub_frame_prev_register) 
4401         (s390_sigtramp_frame_prev_register): Update.
4402         * rs6000-tdep.c (rs6000_frame_prev_register): Update.
4403         * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
4404         * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
4405         * m88k-tdep.c (m88k_frame_prev_register) 
4406         * m68hc11-tdep.c (m68hc11_frame_prev_register) 
4407         * m32r-tdep.c (m32r_frame_prev_register): Update.
4408         * hppa-tdep.c (hppa_frame_prev_register_helper) 
4409         * frv-tdep.c (frv_frame_prev_register): Update.
4410         * d10v-tdep.c (d10v_frame_prev_register): Update.
4411         * cris-tdep.c (cris_frame_prev_register): Update.
4412         * avr-tdep.c (avr_frame_prev_register): Update.
4413         * arm-tdep.c (arm_prologue_prev_register) 
4414         (arm_sigtramp_prev_register): Update.
4415
4416 2004-07-31  Andrew Cagney  <cagney@gnu.org>
4417
4418         * frame.h (legacy_saved_regs_unwind)
4419         (legacy_frame_chain_valid, legacy_frame_p)
4420         (enum frame_type): Delete UNKNOWN_FRAME.
4421         * dummy-frame.c (dummy_frame_this_id): Simplify.
4422         * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
4423         * frame.c (struct frame_info): Delete the field "type".
4424         (legacy_saved_regs_prev_register, legacy_get_prev_frame)
4425         (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
4426         (legacy_saved_regs_unwind, legacy_frame_p)
4427         (frame_type_from_pc): Delete.
4428         (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
4429         (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
4430
4431 2004-07-31  Mark Kettenis  <kettenis@gnu.org>
4432
4433         * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
4434         indentation.
4435
4436         * mips-nat.c: Remove file.
4437         * Makefile.in (ALLDEPFILES): Remove mips-nat.c
4438         (mips-nat.o): Remove dependency.
4439
4440         * infptrace.c: Update copyright year.
4441         (fetch_register): Pass NULL in regcache_raw_supply call instead of
4442         explicitly setting the buffer to all zeroes.
4443
4444         * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
4445         (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
4446
4447 2004-07-30  Andrew Cagney  <cagney@gnu.org>
4448
4449         * GDB 6.2 released from gdb_6_2-branch.
4450
4451 2004-07-30  Baurjan Ismagulov  <ibr@ata.cs.hun.edu.tr>
4452
4453         * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
4454
4455         * exec.c (exec_file_attach):
4456         * nto-tdep.c (nto_find_and_open_solib):
4457         * pa64solib.c (pa64_solib_sizeof_symbol_table):
4458         * solib.c (solib_open):
4459         * somsolib.c (som_solib_sizeof_symbol_table):
4460         * source.c (is_regular_file, openp, open_source_file):
4461         * symfile.c (symfile_bfd_open):
4462         * wince.c (upload_to_device): Differentiate between the search for
4463         binary and source files.
4464
4465 2004-07-30  Andrew Cagney  <cagney@gnu.org>
4466
4467         * complaints.c (_initialize_complaints): Pass NULL to
4468         add_setshow_zinteger_cmd for help_doc.
4469         * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
4470
4471 2004-07-30  Andrew Cagney  <cagney@gnu.org>
4472
4473         Fix PR i18n/761.
4474         * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
4475         (.PHONY): Add all-po install-po, uninstall-po, clean-po,
4476         $(PACKAGE).pot and update-po.
4477         (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
4478         (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
4479         (update-po): New rules.
4480         (localedir): Define using autoconf.
4481         (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
4482         (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
4483         (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
4484         * configure.in: Generate CATALOGS and LINGUAS from contents of
4485         src/gdb/po/ directory.  Set @localedir@ in Makefile.in.
4486         * configure: Re-generate.
4487         * po/gdbtext: New file
4488         
4489 2004-07-30  Jerome Guitton  <guitton@gnat.com>
4490
4491         * MAINTAINERS: Reorder Write After Approval list in alphabetical
4492         order.
4493
4494 2004-07-30  David Lecomber  <dsl@sources.redhat.com>
4495
4496         * dwarf2read.c (read_file_scope): Set producer if attribute 
4497         present.
4498         (struct dwarf2_cu): Added new member producer.
4499
4500 2004-07-30  Jerome Guitton  <guitton@gnat.com>
4501
4502         * inflow.c (kill_command): release file handles in BFD.
4503         * exec.c (exec_file_attach): Ditto.
4504         * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
4505
4506 2004-07-29  Andrew Cagney  <cagney@gnu.org>
4507
4508         * PROBLEMS (mips-irix): Note that it is broken.
4509
4510 2004-07-29  Andrew Cagney  <cagney@gnu.org>
4511
4512         * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
4513         * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
4514
4515         * config/xm-nbsd.h: Delete file.
4516         * config/arm/xm-nbsd.h: Delete file.
4517         * config/i386/xm-nbsd.h: Delete file.
4518         * config/ns32k/xm-nbsd.h: Delete file.
4519         * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
4520         * config/i386/nbsdelf.mh (XM_FILE): Delete.
4521         * config/i386/nbsdaout.mh (XM_FILE): Delete.
4522         * config/arm/nbsdelf.mh (XM_FILE): Delete.
4523         * config/arm/nbsdaout.mh (XM_FILE): Delete.
4524
4525         * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
4526         * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
4527         * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
4528         * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
4529         * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
4530         * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
4531
4532         * config/powerpc/xm-linux.h: Delete empty file.
4533         * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
4534         * config/powerpc/linux.mh (XM_FILE): Delete.
4535         * config/m68k/xm-linux.h: Delete empty file.
4536         * config/m68k/linux.mh (XM_FILE): Delete.
4537         * config/ia64/xm-linux.h: Delete empty file.
4538         * config/ia64/linux.mh (XM_FILE): Delete.
4539         * config/arm/xm-linux.h: Delete empty file.
4540         * config/arm/linux.mh (XM_FILE): Delete.
4541         
4542         * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4543         * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
4544         * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4545         * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
4546         * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4547         * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
4548         * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4549         * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
4550
4551         * config/m68k/xm-m68k.h: Delete file.
4552         * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h".  Update
4553         copyright.
4554         (HOST_LONG_DOUBLE_FORMAT): Delete macro.
4555         * config/pa/xm-linux.h: Delete empty file.
4556         * config/pa/linux.mh (XM_FILE): Delete.
4557         * config/i386/xm-i386.h: Delete empty file.
4558         * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
4559         "i386/xm-i386.h".
4560         * config/i386/obsdaout.mh (XM_FILE): Delete.
4561         * config/i386/obsd64.mh (XM_FILE): Delete.
4562         * config/i386/fbsd64.mh (XM_FILE): Delete.
4563         * config/i386/nto.mh (XM_FILE): Delete.
4564         * config/i386/obsd.mh (XM_FILE): Delete.
4565         * config/i386/linux64.mh (XM_FILE): Delete.
4566         * config/i386/linux.mh (XM_FILE): Delete.
4567         * config/i386/i386sol2.mh (XM_FILE): Delete.
4568         * config/i386/i386gnu.mh (XM_FILE): Delete.
4569         * config/i386/fbsd.mh (XM_FILE): Delete.
4570         * config/i386/nbsd64.mh (XM_FILE): Delete.
4571
4572 2004-07-29  Andrew Cagney  <cagney@gnu.org>
4573
4574         * config/pa/xm-linux.h: Do not include "floatformat.h".
4575         (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4576         (HOST_LONG_DOUBLE_FORMAT): Delete macros.
4577         * config/i386/xm-i386.h: Do not include "floatformat.h".
4578         (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT) 
4579         (HOST_LONG_DOUBLE_FORMAT): Delete macros.
4580         * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4581         (HOST_LONG_DOUBLE_FORMAT): Delete macros.  Use
4582         GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
4583         GDB_HOST_LONG_DOUBLE_FORMAT instead.
4584         * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
4585         (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
4586         * configure, config.in: Regenerate.     
4587         * configure.host (gdb_host_float_format, gdb_host_double_format)
4588         (gdb_host_long_double_format): Set according to the host.
4589         
4590 2004-07-29  Andrew Cagney  <cagney@gnu.org>
4591
4592         * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
4593
4594 2004-07-28  Andrew Cagney  <cagney@gnu.org>
4595
4596         * PROBLEMS: Mention threads/1650.
4597         * NEWS: Mention the NPTL fix.
4598
4599 2004-07-28  Andrew Cagney  <cagney@gnu.org>
4600
4601         * cli/cli-decode.c (add_setshow_cmd): Delete function.
4602         (add_setshow_cmd_full): Make static.
4603         * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
4604         (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
4605         * cli/cli-decode.c (add_setshow_filename_cmd) 
4606         (add_setshow_string_cmd): New functions.
4607         * nto-tdep.c (_initialize_nto_tdep): Update.  Fix parameters.
4608         * mips-tdep.c (_initialize_mips_tdep): Update.
4609         * m32r-rom.c (_initialize_m32r_rom): Update.  Update copyright.
4610         * cli/cli-logging.c (_initialize_cli_logging): Update.
4611         * complaints.c (_initialize_complaints): Update.
4612         * remote.c (_initialize_remote): Update.
4613         
4614 2004-07-28  Andrew Cagney  <cagney@gnu.org>
4615
4616         * cli/cli-decode.c (add_setshow_zinteger_cmd)
4617         (add_setshow_cmd, add_setshow_auto_boolean_cmd)
4618         (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
4619         print parameters.  Make string parameters constant.
4620         * command.h: Update.  Update copyright.
4621         * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
4622         * observer.c (_initialize_observer): Ditto.
4623         * frame.c (_initialize_frame): Ditto.
4624         * complaints.c (_initialize_complaints): Ditto.
4625         * maint.c (_initialize_maint_cmds): Ditto.
4626         * target.c (initialize_targets): Ditto.
4627         * cli/cli-logging.c (_initialize_cli_logging): Ditto.
4628         * infcall.c (_initialize_infcall): Ditto.
4629         * arm-tdep.c (_initialize_arm_tdep): Ditto.
4630         * m32r-rom.c (_initialize_m32r_rom): Ditto.
4631         * remote-rdi.c (_initialize_remote_rdi): Ditto.
4632         * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
4633         * mips-tdep.c (_initialize_mips_tdep): Ditto.
4634
4635 2004-07-28  Andrew Cagney  <cagney@gnu.org>
4636
4637         * gdbtypes.c (lookup_primitive_typename): Delete function.
4638         * gdbtypes.h (lookup_primitive_typename): Delete declaration.
4639         * ada-lex.l: Use language_lookup_primitive_type_by_name.
4640         * gdbtypes.c (lookup_typename): Ditto.
4641         * f-exp.y (yylex): Ditto.
4642         * c-exp.y (yylex): Ditto, eliminate assignment in "if".
4643
4644         * scm-lang.c (c_builtin_types): Delete extern declaration.
4645         (scm_language_defn): Replace
4646         string_char_type and primitive_type_vector with
4647         la_language_arch_info.
4648         * jv-lang.c (java_language_defn): Replace
4649         string_char_type and primitive_type_vector with
4650         la_language_arch_info.
4651         * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
4652         c_builtin_types in comment.
4653         * c-lang.h (struct language_arch_info): Declare opaque.
4654         (c_language_arch_info): Declare.
4655         (c_builtin_types): Delete declaration.
4656         * c-lang.c (c_language_arch_info): Set string_char_type to
4657         builtin_char, not builtin_true_char.  Make global.
4658         (c_builtin_types): Delete array.
4659         (asm_language_defn, minimal_language_defn): Replace
4660         string_char_type and primitive_type_vector with
4661         la_language_arch_info.
4662
4663 2004-07-28  Andrew Cagney  <cagney@gnu.org>
4664
4665         * gdbtypes.h (struct builtin_type): Rename true_char to
4666         builtin_true_char.
4667         * gdbtypes.c (gdbtypes_post_init): Update.
4668         * c-lang.c (arch_info): New function.
4669         (enum c_primitive_types): New enum.
4670         (c_language_defn): Instead of string_char_type and
4671         primitive_type_vector set la_language_arch_info.
4672
4673 2004-07-28  Andrew Cagney  <cagney@gnu.org>
4674
4675         * language.h (struct language_arch_info): Fix typo
4676         s/primative/primitive/.
4677         * gdbtypes.c (lookup_primitive_typename): Ditto.
4678         * language.c (language_lookup_primitive_type_by_name)
4679         (unknown_language_arch_info): Ditto.
4680
4681 2004-07-27  Andrew Cagney  <cagney@gnu.org>
4682
4683         * defs.h (enum language): Add nr_languages.
4684         * language.h (struct language_arch_info): Define.
4685         (struct language_defn): Add la_language_arch_info.
4686         (language_lookup_primative_type_by_name): Declare.
4687         (language_string_char_type): Declare.
4688         * language.c (_initialize_language, language_gdbarch_post_init)
4689         (struct language_gdbarch, language_gdbarch_data): Implement
4690         per-architecture language information.
4691         (unknown_language_arch_info, language_string_char_type)
4692         (language_lookup_primative_type_by_name): New functions.
4693         (unknown_language_defn, auto_language_defn)
4694         (local_language_defn): Set la_language_arch_info to
4695         unknown_language_arch_info.
4696         (unknown_builtin_types): Delete.
4697         * gdbtypes.c (lookup_primitive_typename): Use
4698         language_lookup_primative_type_by_name.
4699         (create_string_type): Use language_string_char_type.
4700         * values.c (value_from_string): Use language_string_char_type.
4701         * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
4702         * p-lang.c (pascal_language_defn): Ditto.
4703         * m2-lang.c (m2_language_defn): Ditto.
4704         * jv-lang.c (java_language_defn): Ditto.
4705         * objc-lang.c (objc_language_defn): Ditto.
4706         * f-lang.c (f_language_defn): Ditto.
4707         * c-lang.c (c_language_defn, cplus_language_defn) 
4708         (asm_language_defn, minimal_language_defn): Ditto.
4709         
4710 2004-07-27  Andrew Cagney  <cagney@gnu.org>
4711
4712         * gdbtypes.h (struct builtin_type): Declare.
4713         (builtin_type): Declare.
4714         * d10v-tdep.c (d10v_register_type): Use builtin_type.
4715         * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
4716         (gdbtypes_post_init): New function.
4717         (builtin_type): New function.
4718
4719 2004-07-27  Kei Sakamoto  <sakamoto.kei@renesas.com>
4720
4721         * remote-m32r-sdi.c: Fix breakpoint bug.
4722         (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
4723         recv_char_data, recv_long_data): New functions to replace communication
4724         sequences.
4725
4726 2004-07-26  Michael Chastain  <mec.gnu@mindspring.com>
4727
4728         Document PR threads/1650.
4729         * PROBLEMS (Threads): Document problem with many threads
4730
4731 2004-07-26  Andrew Cagney  <cagney@gnu.org>
4732
4733         * gdb-mi.el: Move from here ...
4734         * mi/gdb-mi.el: ... to here.
4735
4736 2004-07-26  Andrew Cagney  <cagney@gnu.org>
4737
4738         Problem reported by Ashley Pittman <ashley@quadrics.com>.
4739         * main.c (captured_main): When in batch mode always detach.
4740
4741 2004-07-26  Andrew Cagney  <cagney@gnu.org>
4742
4743         * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
4744         and h8300 as broken.
4745         * NEWS: END-OF-LIFE frame compatibility module.
4746         * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
4747         specific comments.
4748
4749 2004-07-26  Andrew Cagney  <cagney@gnu.org>
4750
4751         * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
4752         * xcoffsolib.c (_initialize_xcoffsolib): Update.
4753         * wince.c (_initialize_wince): Update.
4754         * win32-nat.c (_initialize_win32_nat): Update.
4755         * varobj.c (_initialize_varobj): Update.
4756         * valops.c (_initialize_valops): Update.
4757         * utils.c (initialize_utils, initialize_utils): Update.
4758         * tui/tui-win.c (_initialize_tui_win): Update.
4759         * top.c (init_main): Update.
4760         * symfile.c (_initialize_symfile): Update.
4761         * source.c (_initialize_source): Update.
4762         * somsolib.c (_initialize_som_solib): Update.
4763         * solib.c (_initialize_solib): Update.
4764         * solib-frv.c (_initialize_frv_solib): Update.
4765         * serial.c (_initialize_serial): Update.
4766         * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
4767         * remote.c (_initialize_remote, _initialize_remote): Update.
4768         * remote-vx.c (_initialize_vx): Update.
4769         * remote-utils.c (_initialize_sr_support): Update.
4770         * remote-sds.c (_initialize_remote_sds): Update.
4771         * remote-mips.c (_initialize_remote_mips): Update.
4772         * remote-e7000.c (_initialize_remote_e7000): Update.
4773         * proc-api.c (_initialize_proc_api): Update.
4774         * printcmd.c: Update.
4775         * parse.c (_initialize_parse): Update.
4776         * pa64solib.c (_initialize_pa64_solib): Update.
4777         * p-valprint.c (_initialize_pascal_valprint): Update.
4778         * monitor.c (_initialize_remote_monitors): Update.
4779         * mips-tdep.c (_initialize_mips_tdep): Update.
4780         * mcore-tdep.c (_initialize_mcore_tdep): Update.
4781         * maint.c (_initialize_maint_cmds): Update.
4782         * lin-lwp.c (_initialize_lin_lwp): Update.
4783         * language.c (_initialize_language): Update.
4784         * kod.c (_initialize_kod): Update.
4785         * infrun.c (set_schedlock_func, _initialize_infrun): Update.
4786         * i386-tdep.c (_initialize_i386_tdep): Update.
4787         * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
4788         * gdbarch.sh: Update.
4789         * gdbarch.c: Re-generate.
4790         * gdb-events.sh: Update.
4791         * gdb-events.c: Re-generate.
4792         * frame.c (_initialize_frame): Update.
4793         * exec.c: Update.
4794         * demangle.c (_initialize_demangler): Update.
4795         * dcache.c (_initialize_dcache): Update.
4796         * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
4797         * cp-valprint.c (_initialize_cp_valprint): Update.
4798         * corefile.c (_initialize_core): Update.
4799         * command.h: Update.
4800         * cli/cli-decode.h: Update.
4801         * cli/cli-cmds.c (init_cli_cmds): Update.
4802         * charset.c (_initialize_charset): Update.
4803         * breakpoint.c (_initialize_breakpoint): Update.
4804         * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
4805         * alpha-tdep.c (_initialize_alpha_tdep): Update.
4806         * aix-thread.c (_initialize_aix_thread): Update.
4807
4808 2004-07-24  Mark Kettenis  <kettenis@gnu.org>
4809
4810         Partial fix for PR backtrace/1718.
4811         * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
4812         that GCC migrates into the prolugue.  Don't handle any
4813         instructions that clobber %ebx.
4814
4815 2004-07-23  Andrew Cagney  <cagney@gnu.org>
4816
4817         Use regcache_raw_collect instead of regcache_collect.
4818         * regcache.h (regcache_collect): Delete declaration.
4819         * regcache.c (regcache_colect): Delete function.
4820         * win32-nat.c (do_child_store_inferior_registers): Update.
4821         * sol-thread.c (sol_thread_store_registers): Update.
4822         * shnbsd-tdep.c (shnbsd_fill_reg): Update.
4823         * rs6000-nat.c (store_register): Update.
4824         * remote.c (store_register_using_P, remote_store_registers): Update.
4825         * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
4826         * ppc-linux-nat.c (store_altivec_register, store_spe_register) 
4827         (fill_vrregset, store_spe_registers, fill_gregset)
4828         (fill_gregset): Update.
4829         * nto-procfs.c (procfs_store_registers): Update.
4830         * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
4831         * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
4832         * m68klinux-nat.c (store_register, fill_gregset): Update.
4833         * m68k-tdep.c (fill_gregset): Update.
4834         * infptrace.c (store_register): Update.
4835         * i386-nto-tdep.c (i386nto_regset_fill): Update.
4836         * i386-linux-nat.c (store_register, fill_gregset): Update.
4837         * hppa-linux-nat.c (fill_gregset): Update.
4838         * go32-nat.c (store_register): Update.
4839         * armnbsd-nat.c (store_register, store_regs, store_fp_register)
4840         (store_fp_regs): Update.
4841         * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double) 
4842         (store_nwfpe_extended, store_fpregister, store_fpregs) 
4843         (store_register, store_regs, fill_gregset, fill_fpregset): Update.
4844         * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
4845         * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
4846         (store_regs_user_thread, store_regs_kernel_thread): Update.
4847
4848 2004-07-24  Mark Kettenis  <kettenis@gnu.org>
4849
4850         * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
4851         (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
4852         encoding.
4853         (dwarf2_build_frame_info): Adjust for removal of `addr_size'
4854         member of `struct comp_unit'.
4855
4856 2004-07-23  Andrew Cagney  <cagney@gnu.org>
4857
4858         * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
4859         DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
4860
4861 2004-07-23  Martin Hunt  <hunt@redhat.com>
4862         Kevin Buettner <kevinb@redhat.com>
4863
4864         * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
4865         alignment was being added to the offset instead of multiplied.
4866
4867 2004-07-23  Mark Kettenis  <kettenis@gnu.org>
4868
4869         * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
4870         changed signal trampoline in OpenBSD 3.5-current.
4871
4872         * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
4873         <machine/pcb.h> and "bsd-kvm.h".
4874         (sparc64nbsd_supply_pcb): New function.
4875         (_initialize_sparc64nbsd_nat): Renamed from
4876         _initialize_sparcnbsd_nat.  Enable libkvm interface.
4877         * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
4878         * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
4879         (LOADLIBES): New variable.
4880
4881         * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
4882
4883         * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
4884
4885 2004-07-21  Andrew Cagney  <cagney@gnu.org>
4886
4887         Use regcache_raw_supply instead of supply_register.
4888         * regcache.h (supply_register): Delete declaration.
4889         * regcache.c (supply_register): Delete function.
4890         * wince.c (do_child_fetch_inferior_registers): Update.
4891         * win32-nat.c (do_child_fetch_inferior_registers) 
4892         (fetch_elf_core_registers): Update.
4893         * v850ice.c (v850ice_fetch_registers): Update.
4894         * thread-db.c (thread_db_store_registers): Update.
4895         * sol-thread.c (sol_thread_store_registers): Update.
4896         * shnbsd-tdep.c (shnbsd_supply_reg): Update.
4897         * rs6000-nat.c (fetch_register): Update.
4898         * rom68k-rom.c (rom68k_supply_one_register): Update.
4899         * remote.c (remote_wait, remote_async_wait): Update.
4900         * remote-st.c (get_hex_regs): Update.
4901         * remote-sim.c (gdbsim_fetch_register): Update.
4902         * remote-sds.c (sds_fetch_registers): Update.
4903         * remote-rdp.c (remote_rdp_fetch_register): Update.
4904         * remote-rdi.c (arm_rdi_fetch_registers): Update.
4905         * remote-mips.c (mips_wait, mips_fetch_registers): Update.
4906         * remote-m32r-sdi.c (m32r_fetch_register): Update.
4907         * remote-hms.c (init_hms_cmds): Update.
4908         * remote-est.c (init_est_cmds): Update.
4909         * remote-e7000.c (get_hex_regs, fetch_regs_from_dump) 
4910         (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
4911         * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
4912         * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register) 
4913         (fetch_register, supply_vrregset, supply_vrregset)
4914         (fetch_spe_registers): Update.
4915         * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
4916         * monitor.c (monitor_supply_register): Update.
4917         * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
4918         * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
4919         (mipsnbsd_supply_fpreg): Update.
4920         * mips-nat.c (fetch_inferior_registers)
4921         (fetch_core_registers): Update.
4922         * mips-linux-tdep.c (supply_32bit_reg, supply_gregset) 
4923         (supply_fpregset, mips64_supply_gregset)
4924         (mips64_supply_fpregset): Update.
4925         * m68klinux-nat.c (fetch_register, supply_gregset)
4926         (supply_fpregset): Update.
4927         * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
4928         * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
4929         * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
4930         * irix5-nat.c (supply_gregset, supply_fpregset): Update.
4931         * infptrace.c (fetch_register): Update.
4932         * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
4933         * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
4934         * i386gnu-nat.c (fetch_fpregs, supply_gregset) 
4935         (gnu_fetch_registers, gnu_store_registers): Update.
4936         * i386-nto-tdep.c (i386nto_supply_gregset): Update.
4937         * i386-linux-nat.c (fetch_register, supply_gregset)
4938         (dummy_sse_values): Update.
4939         * hpux-thread.c (hpux_thread_fetch_registers): Update.
4940         * hppah-nat.c (fetch_register): Update.
4941         * hppa-linux-nat.c (fetch_register, supply_gregset) 
4942         (supply_fpregset): Update.
4943         * go32-nat.c (fetch_register): Update.
4944         * dve3900-rom.c (fetch_bitmapped_register)
4945         (_initialize_r3900_rom): Update.
4946         * cris-tdep.c (supply_gregset): Update.
4947         * abug-rom.c (init_abug_cmds): Update.
4948         * core-aout.c (fetch_core_registers): Update.
4949         * armnbsd-nat.c (supply_gregset, supply_fparegset)
4950         (fetch_register, fetch_fp_register): Update.
4951         * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
4952         (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
4953         (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
4954         * alphanbsd-tdep.c (fetch_core_registers): Update.
4955         * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
4956         * alpha-nat.c (fetch_osf_core_registers) 
4957         (fetch_osf_core_registers, fetch_osf_core_registers): Update.
4958         * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs) 
4959         (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
4960
4961 2004-07-21  Andrew Cagney  <cagney@gnu.org>
4962
4963         * PROBLEMS: Mention breakpoints/1702.
4964         * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
4965         that is known to work.
4966
4967 2004-07-21  Andrew Cagney  <cagney@gnu.org>
4968
4969         * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
4970         * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
4971         * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
4972         (handle_inferior_event): Wrap call to deprecated
4973         IGNORE_HELPER_CALL in #ifdef.
4974         * config/mips/tm-nbsd.h: Update.
4975
4976 2004-07-20  Jim Blandy  <jimb@redhat.com>
4977
4978         * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
4979         bfd_mach_ppc has no segment registers.
4980
4981         Include PowerPC SPR numbers for special-purpose registers.
4982         * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
4983         (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
4984         new member in initializer.
4985         (S, S4, SN4, S64): New macros for defining special-purpose
4986         registers.
4987         (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
4988         registers_403, registers_403GC, registers_505, registers_860,
4989         registers_601, registers_602, registers_603, registers_604,
4990         registers_750, registers_e500): Use them.
4991
4992         * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
4993         replace references with expression used to initialize variable.
4994
4995 2004-07-20  Andrew Cagney  <cagney@gnu.org>
4996
4997         * breakpoint.c (deprecated_read_memory_nobpt): Rename
4998         read_memory_nobpt.
4999         * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
5000         * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
5001         (s390_sigtramp_frame_sniffer): Update.
5002         * mn10300-tdep.c (mn10300_analyze_prologue): Update.
5003         * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
5004         * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction) 
5005         (mips32_fetch_instruction): Update.
5006         * mcore-tdep.c (get_insn): Update.
5007         * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
5008         * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
5009         * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
5010         * i386-linux-tdep.c (i386_linux_sigtramp_start) 
5011         (i386_linux_rt_sigtramp_start): Update.
5012         * i386-linux-nat.c (child_resume): Update.
5013         * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
5014         * hppa-linux-tdep.c (insns_match_pattern): Update.
5015         * gdbcore.h: Update.
5016         * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
5017         * frame.c (safe_frame_unwind_memory): Update.
5018         * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
5019         * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
5020         * alpha-tdep.c (alpha_read_insn): Update.
5021
5022 2004-07-20  Andrew Cagney  <cagney@gnu.org>
5023
5024         * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
5025         containing both bytes and mask.  Add "frame_type".
5026         * tramp-frame.c (tramp_frame_start): Update.
5027         (tramp_frame_prepend_unwinder): Update.
5028         * mips-linux-tdep.c (mips_linux_o32_sigframe)
5029         (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
5030         (mips_linux_n64_rt_sigframe): Update.  Make "static const".
5031         * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
5032
5033 2004-07-19  Eli Zaretskii  <eliz@gnu.org>
5034
5035         * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
5036         bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
5037         sim/testsuite/sim/mips/hilo-hazard-[123].s, and
5038         sim/testsuite/sim/mips/fpu64-ps-sb1.s.
5039
5040 2004-07-17  Andrew Cagney  <cagney@gnu.org>
5041
5042         * NEWS, PROBLEMS: Update for 6.2.
5043
5044         * README: Update to 6.2.
5045
5046         * utils.c (xvasprintf): Call xstrvprintf.
5047
5048         * parse.c: Update copyright.
5049         (null_post_parser): Eliminate ARGSUSED.
5050
5051         * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
5052         * tui/tui-win.c (tui_get_cmd_list): Ditto.
5053         * symfile-mem.c (_initialize_symfile_mem): Ditto.
5054         
5055         * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
5056         * ppc-linux-nat.c: Use "Linux kernel".
5057         * hppa-linux-tdep.c: Use GNU/Linux.
5058         * hppa-linux-nat.c: Use GNU/Linux.
5059         * dwarfread.c: Add [sic] to use of Linux.
5060
5061         * hppa-linux-nat.c: Do not include <string.h>.
5062         (supply_fpregset): Remove "register" attribute.
5063
5064         * solib-frv.c (fetch_loadmap): Use xfree, not free.
5065
5066 2004-07-17  Mark Kettenis  <kettenis@gnu.org>
5067
5068         * configure.in: Define _MSE_INT_H on Solaris 9 too.
5069         * configure, config.in: Regenerated.
5070
5071         * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
5072         "bsd-kvm.h".
5073         (vaxbsd_supply_pcb): New function.
5074         (_initialize_vaxbsd_nat): New prototype and function.
5075         * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
5076         solib-sunos.o.
5077         (LOADLIBES): New variable.
5078         * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5079         (LOADLIBES): New variable.
5080         * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
5081         (LOADLIBES): New variable.
5082         * Makefile.in (vaxbsd-nat.o): Update dependencies.
5083
5084 2004-07-16  Andrew Cagney  <cagney@gnu.org>
5085
5086         * defs.h (event_loop_p): Replace variable declaration with macro,
5087         always 1.
5088         * main.c (captured_main): Delete options "-async" and "-noasync".
5089         (event_loop_p): Delete variable.
5090         * NEWS: Mention that "-async" and "-noasync" were removed.
5091
5092 2004-07-16  Andrew Cagney  <cagney@gnu.org>
5093
5094         * remote-m32r-sdi.c: Re-indent.
5095
5096 2004-07-16  Jim Blandy  <jimb@redhat.com>
5097
5098         * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
5099         (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
5100         (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
5101         missing MPC823 SPRs.
5102         (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
5103         incorrect.  (This was corrected in GDB's register name tables on
5104         2004-07-14.)
5105
5106         * rs6000-tdep.c (registers_602): Correct register name: "esassr"
5107         should be "esasrr" ("ESA Save and Restore Register").
5108
5109 2004-07-16  Andrew Cagney  <cagney@gnu.org>
5110
5111         * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
5112         calls, no longer applicable.  Update comments and rename parameter
5113         "step_frame" to "return_frame".
5114
5115 2004-07-16  Andrew Cagney  <cagney@gnu.org>
5116
5117         * frame.c (fprint_field): New function.
5118         (fprint_frame_id): Use fprint_field.
5119
5120 2004-07-15  Joel Brobecker  <brobecker@gnat.com>
5121
5122         * ada-lang.c (ada_language_defn): Remove commented out code.
5123
5124 2004-07-15  Jim Blandy  <jimb@redhat.com>
5125
5126         * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
5127         * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
5128
5129 2004-07-14  Jim Blandy  <jimb@redhat.com>
5130
5131         * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
5132
5133         * ppc-tdep.h (ppc_num_vrs): New enum constant.
5134
5135         * ppc-tdep.h (ppc_num_srs): New enum constant.
5136
5137         * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
5138         (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
5139         (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
5140         (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
5141         (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
5142         (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
5143         (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
5144         (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
5145         (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
5146         (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
5147         (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
5148         (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
5149         (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
5150         (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
5151         (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
5152         (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
5153         (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
5154         (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
5155         (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
5156         (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
5157         (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
5158         (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
5159         (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
5160         (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
5161         (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
5162         (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
5163         (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
5164         (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
5165         (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
5166         (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
5167         (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
5168         (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
5169         (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
5170         (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
5171         (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
5172         (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
5173         (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
5174         (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
5175         (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
5176         special-purpose register numbers.
5177
5178         * rs6000-tdep.c (registers_860): Correct register name.  (No PPC
5179         manual mentions 'md_twb', but many mention 'm_twb', and at that
5180         point in the register list.)
5181
5182 2004-07-14  Andrew Cagney  <cagney@gnu.org>
5183
5184         * utils.c (internal_warning_problem): Fix typo, "internal-warning"
5185         instead of "internal-error".
5186
5187 2004-07-10  Joel Brobecker  <brobecker@gnat.com>
5188
5189         * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
5190         that was inserted inside a comment.
5191
5192 2004-07-10  Randolph Chung  <tausq@debian.org>
5193
5194         * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New 
5195         function.
5196         (hppa_hpux_push_dummy_code): New function.
5197         (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
5198         Set find_global_pointer method.
5199
5200 2004-07-10  Mark Kettenis  <kettenis@gnu.org>
5201
5202         * NEWS: Mention BSD libkvm interface.
5203
5204 2004-07-10  Michael Snyder  <msnyder@redhat.com>
5205
5206         * symfile.c (generic_load): Comment typo.
5207         * stack.c (get_selected_block): Ditto.
5208         * regcache.c (regcache_cooked_read): Ditto.
5209         * monitor.c (monitor_debug): Ditto.
5210         * mips-tdep.c (mips_read_pc): Ditto.
5211         * i386-linux-nat.c (ps_get_thread_area): Ditto.
5212         * gdb_mbuild.sh: Ditto.
5213         * gdbarch.sh: Ditto.
5214         * gdbarch.h: Ditto.
5215
5216 2004-07-09  Paul N. Hilfinger  <Hilfinger@gnat.com>
5217
5218         * ada-tasks.c: Remove file.
5219         
5220         Remove ARI problems:
5221         
5222         * ada-exp.y (write_var_from_sym): Reformat to put operator at
5223         beginning of line.
5224
5225         * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
5226         Add comment.
5227         Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
5228         (MIN_OF_SIZE): Rename min_of_size.  Add comment.
5229         (UMAX_OF_SIZE): Renmae umax_of_size.  Add comment.
5230         (UMIN_OF_SIZE): Remove.
5231         (max_of_type): New function to replace orphan macro in gdbtypes.h
5232         (min_of_type): Ditto.
5233         (discrete_type_high_bound): Use max_of_type.
5234         (discrete_type_low_bound): Use min_of_type.
5235         (possible_user_operator_p): Move operator to beginning of line.
5236         (ada_is_variant_part): Ditto.
5237         (ensure_lval): Rewrite to avoid deprecated operations.
5238         (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
5239         rather than adding DEPRECATED_FUNCTION_START_OFFSET.
5240         (ada_enum_name): Remove assignments in 'if' statements.
5241         (build_ada_types): Add gdbarch parameter.
5242         (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
5243         with gdbarch_data_register_post_init.
5244         Use add_setshow_uinteger_cmd rather than add_set_cmd and 
5245         add_show_from_set.
5246
5247         * ada-valprint.c (inspect_it): Remove declaration.
5248         (repeat_count_threshold): Remove declaration.
5249         (ada_print_floating): Remove assignments in 'if' statements.
5250         (print_str): Move operator to beginning of line.
5251         
5252 2004-07-08  Jim Blandy  <jimb@redhat.com>
5253
5254         * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
5255
5256 2004-07-08  Bob Rossi  <bob@brasko.net>
5257
5258         * symtab.c (lookup_symtab): check return value of symtab_to_fullname
5259
5260 2004-07-06  Jeff Johnston <jjohnstn@redhat.com>
5261
5262         * language.h (struct_language_defn): Add new function pointer:
5263         la_class_name_from_physname.  Also add new prototype for
5264         language_class_name_from_physname.
5265         * language.c (language_class_name_from_physname): New function.
5266         (unk_lang_class_name): Ditto.
5267         (unknown_language_defn, auto_language_defn): Change
5268         to add unk_lang_class_name function pointer for
5269         la_class_name_from_physname.
5270         (local_language_defn): Ditto.
5271         * dwarf2read.c (guess_structure_name): Change to call
5272         language_class_name_from_physname.
5273         (determine_class_name): Ditto.
5274         * cp-support.c (class_name_from_physname): Renamed.
5275         (cp_class_name_from_physname): New name of function.
5276         * cp-support.h: Ditto.
5277         * c-lang.c (c_language_defn): Change to add NULL
5278         for class_name_from_physname function pointer.
5279         (cplus_language_defn): Change to add cp_class_name_from_physname.
5280         * jv-lang.c (java_class_name_physname): New function.
5281         (java_find_last_component): New static routine.
5282         (java_language_defn): Add java_class_name_from_physname pointer.
5283         * ada-lang.c (ada_language_defn): Change to add NULL
5284         for class_name_from_physname function pointer.
5285         * f-lang.c (f_language_defn): Ditto.
5286         * m2-lang.c (m2_language_defn): Ditto.
5287         * objc-lang.c (objc_language_defn): Ditto.
5288         * p-lang.c (pascal_language_defn): Ditto.
5289         * scm-lang.c (scm_language_defn): Ditto. 
5290
5291 2004-07-06  Andrew Cagney  <cagney@gnu.org>
5292
5293         Patch from Bart Robinson.
5294         * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
5295         (O_LARGEFILE): Define to 0, if not defined.
5296
5297 2004-07-03  Mark Kettenis  <kettenis@gnu.org>
5298
5299         * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
5300         <machine/pcb.h> and "bsd-kvm.h".
5301         (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
5302         (m68kbsd_supply_pcb): New function.
5303         (_initialize_m68kbsd_nat): New prototype and function.
5304         * Makefile.in (m68kbsd-nat.o): Update dependencies.
5305         * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5306         (LOADLIBES): New variable.
5307         * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
5308         (LOADLIBES): New variable.
5309
5310         * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
5311
5312 2004-07-03  Mark Kettenis  <kettenis@gnu.org>
5313
5314         * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
5315         <sys/proc.h>.
5316         (bsd_kvm_cmdlist): New variable.
5317         (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
5318         (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
5319         command and "kvm proc" command.
5320         * Makefile.in (bsd-kvm.o): Update dependencies.
5321
5322 2004-07-02  Mark Kettenis  <kettenis@gnu.org>
5323
5324         * osabi.c: Update copyright year.
5325         (generic_elf_osabi_sniffer): Tweak comment.  Look for OS-specific
5326         notes if EI_OSABI is set to ELFOSABI_HPUX.
5327
5328 2004-07-01  Michael Snyder  <msnyder@redhat.com>
5329
5330         * win32-nat.c (core_dll_symbols_add): Re-indent a small section
5331         that seems to have gotten whacked out of line.
5332
5333 2004-07-01  Mark Kettenis  <kettenis@gnu.org>
5334
5335         * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
5336         code.
5337
5338 2004-07-01  Paul N. Hilfinger  <Hilfinger@gnat.com>
5339
5340         * ada-lang.c (decode_packed_array): Minor change to comment.
5341         (ada_value_slice_ptr): New function. 
5342         (ada_value_slice): New function. 
5343         (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
5344         test.  Don't know why it is there.
5345         Change slice code to use ada_value_slice_ptr and ada_value_slice, and
5346         to avoid dereferencing huge arrays from which one is slicing.  
5347         (empty_array): Correct to return an array rather than
5348         a subrange value.
5349         * ada-valprint.c (print_optional_low_bound): Don't print lower bound
5350         on empty arrays (let'em use 'FIRST instead).
5351
5352 2004-07-01  Paul N. Hilfinger  <Hilfinger@gnat.com>
5353
5354         Address complaints from gdb_ari.sh:
5355         
5356         * ada-exp.y: Include gdb_string.h rather than string.h.
5357         (convert_char_literal): Reformat declaration.
5358         * ada-lang.h: Include opaque struct declaration for struct frame_info.
5359         * ada-lex.l: Change use of free to xfree (the macro would do so
5360         anyway, but this is harmless).
5361         Include gdb_string.h rather than string.h.
5362         * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
5363         
5364         * ada-lang.c (parse): Remove K&Rism in parameter list.
5365         (is_name_suffix): Correct Linux => GNU/Linux in comment.
5366         
5367 2004-06-30  Mark Kettenis  <kettenis@gnu.org>
5368
5369         * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
5370         dead code.
5371
5372 2004-06-30  Mark Kettenis  <kettenis@gnu.org>
5373
5374         * alphabsd-nat.c: Update copyright year.
5375         (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
5376
5377 2004-06-29  Joel Brobecker  <brobecker@gnat.com>
5378
5379         * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
5380         (i386_cygwin_in_solib_call_trampoline): New function.
5381         (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
5382         and skip_trampoline_code gdbarch methods.
5383
5384 2004-06-29  Jim Blandy  <jimb@redhat.com>
5385
5386         * Makefile.in (gdb_callback_h): Renamed from callback_h to the
5387         name actually used in the dependency lists.
5388
5389 2004-06-29  Randolph Chung  <tausq@debian.org>
5390
5391         * NEWS (New native configurations): Mention GNU/Linux/hppa.
5392
5393 2004-06-29  Corinna Vinschen  <vinschen@redhat.com>
5394
5395         * win32-nat.c (child_pid_to_exec_file): New function.
5396         (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
5397         functionality.
5398
5399 2004-06-28  Andrew Cagney  <cagney@gnu.org>
5400
5401         * defs.h (xstrvprintf): Declare.
5402         * utils.c (xstrvprintf): New function.
5403         (internal_vproblem, xstrprintf, xasprintf) 
5404         (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
5405         * serial.c (serial_printf): Ditto.
5406         * complaints.c (vcomplaint): Ditto.
5407
5408 2004-06-29  Corinna Vinschen  <vinschen@redhat.com>
5409
5410         * infcmd.c (attach_command): Move call to target_terminal_inferior
5411         behind loading symbol table.
5412
5413 2004-06-28  Andrew Cagney  <cagney@gnu.org>
5414
5415         * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
5416         change - add back extern deprecated_ui_loop_hook declaration.
5417
5418 2004-06-28  Andrew Cagney  <cagney@gnu.org>
5419
5420         * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
5421         xstrprintf.
5422         * varobj.c (varobj_gen_name, create_child, c_name_of_child)
5423         (c_value_of_variable): Ditto.
5424         * utils.c (internal_vproblem): Ditto.
5425         * solib-aix5.c (build_so_list_from_mapfile): Ditto.
5426         * remote.c (add_packet_config_cmd): Ditto.
5427         * remote-rdp.c (rdp_set_command_line): Ditto.
5428         * regcache.c (regcache_dump): Ditto.
5429         * frv-tdep.c (new_variant, new_variant): Ditto.
5430         * fbsd-proc.c (child_pid_to_exec_file): Ditto.
5431         (fbsd_find_memory_regions): Ditto.
5432         * breakpoint.c (create_thread_event_breakpoint) 
5433         (create_breakpoints): Ditto.
5434         * aix-thread.c (aix_thread_pid_to_str): Ditto.
5435         * ada-lang.c (is_package_name): Ditto.  Also delete xmalloc call.
5436
5437 2004-06-28  Joel Brobecker  <brobecker@gnat.com>
5438
5439         * ada-lang.c: Re-indent file, with some massaging to help indent
5440         a bit when the result is otherwise really too ugly.
5441
5442 2004-06-27  Ulrich Weigand  <uweigand@de.ibm.com>
5443
5444         * frame.h (struct frame_id): Change bit field type of stack_addr_p, 
5445         code_addr_p and special_addr_p to 'unsigned int'.
5446
5447 2004-06-27  Mark Kettenis  <kettenis@gnu.org>
5448
5449         * i386v4-nat.c: Update copyright year and tweak comment.
5450         (regmap): Remove trailing comma.
5451         (supply_gregset): Rename local variable i to regnum.  Call
5452         regcache_raw_supply instead of supply_register.
5453         (fill_gregset): Rename argument regno to regnum.  Call
5454         regcache_raw_collect instead of regcache_collect.
5455
5456 2004-06-27  Ulrich Weigand  <uweigand@de.ibm.com>
5457
5458         * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
5459         and special_addr_p.
5460         (frame_id_build, frame_id_build_special): Update comments.
5461         (frame_id_build_wild): New prototype.
5462         * frame.c (frame_id_build, frame_id_build_special): Fill in new
5463         struct frame_id fields.
5464         (frame_id_build_wild): New function.
5465         (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
5466
5467 2004-06-27  Mark Kettenis  <kettenis@gnu.org>
5468
5469         * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
5470         hppabsd-tdep.c.
5471
5472 2004-06-27  Joel Brobecker  <brobecker@gnat.com>
5473
5474         * ada-lang.c: Minor reformatting to conform to GNU coding standards.
5475
5476 2004-06-27  Joel Brobecker  <brobecker@gnat.com>
5477
5478         * ada-lang.c: Re-indent file.
5479
5480 2004-06-27  Joel Brobecker  <brobecker@gnat.com>
5481
5482         * ada-lang.c (symtab_symbol_info): Remove unused declaration.
5483         (no_symtab_msg): Likewise.
5484
5485 2004-06-27  Andreas Schwab  <schwab@suse.de>
5486
5487         * source.c: Fix whitespace.
5488
5489 2004-06-27  Mark Kettenis  <kettenis@gnu.org>
5490
5491         * configure.in: Include <sys/param.h> for td_pcb test.
5492         * configure: Regenerated.
5493
5494         * i386nbsd-nat.c: New file.
5495         * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
5496         i386obsd-nat.c and i386obsd-tdep.c.
5497         (i386nbsd-nat.o): New dependency.
5498         * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
5499         bsd-kvm.o.
5500         (LOADLIBES): New variable.
5501         * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
5502         bsd-kvm.o.
5503         (LOADLIBES): New variable.
5504
5505         * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
5506         (LOADLIBES): New variable.
5507
5508         * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
5509         fetching from BSD_KVM_PADDR.  Correctly lookup address for
5510         "_thread0".
5511
5512         * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
5513         "bsd-kvm.h".
5514         (amd64fbsd_supply_pcb): New funcion.
5515         (_initialize_amd64fbsd_nat): Enable libkvm interface.
5516
5517 2004-06-27    <david@streamline-computing.com>
5518
5519         Partial fix for PR cli/1056.
5520         * valarith.c: Check for zero in division and remainder 
5521         evaluation.
5522
5523 2004-06-27  Mark Kettenis  <kettenis@gnu.org>
5524
5525         * i387-tdep.c: Remove excessive whitespace.
5526
5527 2004-06-26  Andrew Cagney  <cagney@gnu.org>
5528
5529         * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
5530         * gdb-events.h, gdb-events.c: Re-generate.
5531         * tui/tui-hooks.c (tui_install_hooks): Update.
5532         (tui_remove_hooks): Update.
5533         * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
5534
5535 2004-06-26  Mark Kettenis  <kettenis@gnu.org>
5536
5537         * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
5538         (gregset_t, fpregset_t): Remove typedefs.
5539         (REG_OFFSET): Rename argument.
5540         (amd64bsd_r_reg_offset): Rename from reg_offset.
5541         (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
5542         Remove functions.
5543         (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
5544         of reg_offset.
5545         * Makefile.in (amd64fbsd-nat.o): Update dependencies.
5546
5547         * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
5548
5549         * vax-tdep.c: Tweak comment.
5550
5551         Add OpenBSD/hppa support.
5552         * NEWS (New native configurations): Mention OpenBSD/hppa.
5553         * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
5554         config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
5555         files.
5556         * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
5557         (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
5558         * configure.host: Add hppa*-*-openbsd*.
5559         * configure.tgt: Add hppa*-*-openbsd*.
5560
5561 2004-06-25  Andrew Cagney  <cagney@gnu.org>
5562
5563         * defs.h (deprecated_ui_loop_hook): Deprecated.
5564         * wince.c (child_wait): Update.
5565         * win32-nat.c (child_wait): Update.
5566         * v850ice.c (v850ice_wait): Update.
5567         * top.c (deprecated_ui_loop_hook): Update.
5568         * serial.h: Update.
5569         * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar) 
5570         (do_unix_readchar): Update.
5571         * ser-tcp.c (net_open): Update.
5572         * remote-sim.c (gdb_os_poll_quit): Update.
5573         * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
5574
5575 2004-06-24  Andrew Cagney  <cagney@gnu.org>
5576
5577         * defs.h (deprecated_pre_add_symbol_hook)
5578         (deprecated_post_add_symbol_hook): Deprecated.
5579         * symfile.c (symbol_file_add_with_addrs_or_offsets) 
5580         (symbol_file_add_with_addrs_or_offsets): Update references.
5581
5582 2004-06-24  Andrew Cagney  <cagney@gnu.org>
5583
5584         * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
5585         (ui_loop_hook, selected_frame_level_changed_hook): Declare.
5586         * wince.c (ui_loop_hook): Delete extern declaration.
5587         * win32-nat.c (ui_loop_hook): Delete extern declaration..
5588         * v850ice.c (ui_loop_hook): Delete extern declaration..
5589         * ser-unix.c (ui_loop_hook): Delete extern declaration..
5590         * ser-tcp.c (ui_loop_hook): Delete extern declaration..
5591         * remote-sim.c (ui_loop_hook): Delete extern declaration..
5592         * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
5593         ui_loop_hook declaration.
5594
5595 2004-06-24  Andrew Cagney  <cagney@gnu.org>
5596
5597         * objfiles.h (struct entry_info): Delete entry_func_lowpc and
5598         entry_func_highpc fields.
5599         * objfiles.c (init_entry_point_info): Do not clear
5600         entry_func_lowpc and entry_func_highpc.
5601         (objfile_relocate): Do not relocate entry_func_lowpc and
5602         entry_func_highpc.
5603         * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
5604         entry_func_highpc.
5605         * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
5606         entry_func_highpc.
5607         * blockframe.c (legacy_frame_chain_valid): Replace tests against
5608         entry_func_lowpc and entry_func_highpc with call to
5609         inside_entry_func.
5610
5611 2004-06-24  Mark Kettenis  <kettenis@gnu.org>
5612
5613         * sparc64-tdep.c (sparc64_store_arguments): Fix passing
5614         quad-precision floating point arguments in registers.
5615
5616 2004-06-24  Mark Kettenis  <kettenis@gnu.org>
5617
5618         From Michael Mueller <m.mueller99@kay-mueller.de>:
5619         * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
5620         account.
5621
5622 2004-06-22  Jeff Johnston  <jjohnstn@redhat.com>
5623
5624         * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
5625         to -1.
5626         * breakpoint.c (bpstat_stop_status): Move check for ignoring
5627         untriggered watchpoints to a separate if clause.  Update function
5628         comment regarding STOPPED_BY_WATCHPOINT argument.
5629
5630 2004-06-22  Jim Blandy  <jimb@redhat.com>
5631
5632         * gdbarch.sh: Doc fix.
5633
5634 2004-06-21  Martin Hunt  <hunt@redhat.com>
5635         Kevin Buettner <kevinb@redhat.com>
5636
5637         * config/mips/tm-mips.h (SP_REGNUM): Delete define.
5638         * mips-tdep.h (MIPS_SP_REGNUM): Define.
5639         * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
5640         to set_gdbarch_sp_regnum().  Use cooked register number.
5641         (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
5642
5643 2004-06-21  Andrew Cagney  <cagney@gnu.org>
5644
5645         * gdbarch.sh: When the macro field is empty, do not generate a
5646         macro definition.  When the macro field is "=", generate the macro
5647         name from the upper-case function name.
5648         (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
5649         (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
5650         (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
5651         (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
5652         (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
5653         (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
5654         (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
5655         (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
5656         (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
5657         (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
5658         (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
5659         (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
5660         (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
5661         (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
5662         (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
5663         (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
5664         (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
5665         (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
5666         (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
5667         (DEPRECATED_USE_STRUCT_CONVENTION)
5668         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5669         (DEPRECATED_FRAME_INIT_SAVED_REGS)
5670         (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
5671         (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
5672         (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
5673         (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
5674         (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
5675         (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
5676         (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
5677         (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
5678         (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
5679         (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
5680         (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
5681         (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
5682         (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
5683         (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
5684         (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
5685         (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
5686
5687 2004-06-21  Andrew Cagney  <cagney@gnu.org>
5688
5689         * gdbarch.sh: For gdbarch_dump, print the "function" rather than
5690         macro name, and the function rather than macro value.  Only wrap
5691         macro print statements in #ifdef.  Move format logic to where it
5692         is needed.
5693         * gdbarch.c: Re-generate.
5694         
5695         * gdbarch.sh (read): Delete "print_p" and "description", add
5696         "garbage_at_eol".  Check for non-empty garbage at end-of-line.
5697         Delete references to print_p.
5698         (TARGET_ARCHITECTURE): Delete print predicate.
5699         * gdbarch.c: Re-generate.
5700         
5701         * gdbarch.sh: Check that multi-arch methods do not provide a
5702         macro.
5703         (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
5704         (print_registers_info, print_float_info, print_vector_info)
5705         (adjust_breakpoint_address, remote_translate_xfer_address)
5706         (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
5707         (address_class_type_flags_to_name, unwind_sp): Remove the macro
5708         name from the multi-arch definition.
5709         
5710 2004-06-20  Andrew Cagney  <cagney@gnu.org>
5711
5712         * gdbarch.sh: Sort by the function, instead of macro name.
5713         * gdbarch.c: Re-generate.
5714         
5715 2004-06-20  Andrew Cagney  <cagney@gnu.org>
5716
5717         * gdbarch.sh: Use the function, instead of macro name in
5718         errors and the log file.
5719         (return_value): Remove stray ":" in spec.
5720
5721         * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
5722         * gdbarch.h, gdbarch.c: Re-generate.
5723         * Makefile.in (arch-utils.o): Update dependencies.
5724         * values.c (using_struct_return): Move code calling
5725         USE_STRUCT_CONVENTION to legacy_return_value, simplify.
5726         * stack.c (return_command): Move code calling STORE_RETURN_VALUE
5727         to legacy_return_value, simplify.
5728         * infcmd.c (print_return_value): Move code calling
5729         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
5730         to legacy_return_value, simplify.
5731         * infcall.c (call_function_by_hand): Move code calling
5732         EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
5733         * arch-utils.c: Update copyright.  Include "gdbcore.h".
5734         (legacy_return_value): New function.
5735         * arch-utils.h: Update copyright.
5736         (legacy_return_value): Declare.
5737         
5738 2004-06-20  Andrew Cagney  <cagney@gnu.org>
5739
5740         * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
5741         * gdbarch.h, gdbarch.c: Re-generate.
5742         * values.c (using_struct_return): Update call.
5743         * mcore-tdep.c: Update comment.
5744         * infcall.c (call_function_by_hand): Update comment.
5745         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5746         * arch-utils.h (always_use_struct_convention): Update.
5747         * v850-tdep.c (v850_gdbarch_init): Update.
5748         * sh64-tdep.c (sh64_gdbarch_init): Update.
5749         * sh-tdep.c (sh_gdbarch_init): Update.
5750         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5751         * mips-tdep.c (mips_gdbarch_init): Update.
5752         * mcore-tdep.c (mcore_gdbarch_init): Update.
5753         * m32r-tdep.c (m32r_gdbarch_init): Update.
5754         * ia64-tdep.c (ia64_gdbarch_init): Update.
5755         * h8300-tdep.c (h8300_gdbarch_init): Update.
5756         * frv-tdep.c (frv_gdbarch_init): Update.
5757         * cris-tdep.c (cris_gdbarch_init): Update.
5758         * arm-tdep.c (arm_gdbarch_init): Update.
5759         * alpha-tdep.c (alpha_gdbarch_init): Update.
5760
5761 2004-06-18  Michael Chastain  <mec.gnu@mindspring.com>
5762
5763         * PROBLEMS: Add more specific information, and a work-around,
5764         for PR gdb/1458.
5765
5766 2004-06-18  Andrew Cagney  <cagney@gnu.org>
5767
5768         * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
5769         * gdbarch.h, gdbarch.c: Re-generate.
5770         * ada-lang.c (ada_finish_decode_line_1): Update.
5771         * infrun.c (handle_inferior_event): Update.
5772         * infcall.c (find_function_addr): Update.
5773         * linespec.c (minsym_found): Update.
5774         * symtab.c (find_function_start_sal, skip_prologue_using_sal):
5775         Update.
5776         * blockframe.c (legacy_frameless_look_for_prologue): Update.
5777         * cli/cli-cmds.c (disassemble_command): Update.
5778         * vax-tdep.c (vax_gdbarch_init): Update.
5779
5780 2004-06-18  Mark Kettenis  <kettenis@gnu.org>
5781
5782         * i386-tdep.c (i386_collect_fpregset): Fix comment.
5783
5784 2004-06-17  Andrew Cagney  <cagney@gnu.org>
5785
5786         GDB 6.1.1 released from the GDB 6.1 branch.
5787         * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
5788         * PROBLEMS: Ditto.
5789
5790 2004-06-16  Daniel Jacobowitz  <dan@debian.org>
5791
5792         PR gdb/1658
5793         * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
5794         operation as a uleb128.  Found by Michael Coulter.
5795
5796 2004-06-16  Paul N. Hilfinger  <Hilfinger@gnat.com>
5797         
5798         * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
5799         make it non-static.
5800         * ada-lang.h (task_control_block): declaration moved from ada-task.c
5801         to ada-lang.h; this is needed to be able to implement the kill command
5802         in multi-task mode.
5803         (task_ptid): Ditto.
5804         (task_entry): Ditto.
5805         (task_list): Ditto.
5806         (ada_build_task_list): Ditto.
5807         
5808         * ada-lang.c: Conditionalize routines and data structures related 
5809         to breakpoints, exceptions, completion, and symbol caching on 
5810         GNAT_GDB, since these are not yet used in the submitted public sources.
5811         (ada_main_name): Editorial: Move definition out of exception-related 
5812         code.
5813
5814 2004-06-15  Andrew Cagney  <cagney@gnu.org>
5815
5816         * mips-tdep.c (non_heuristic_proc_desc): Delete call to
5817         deprecated_pc_in_call_dummy.
5818
5819 2004-06-15  Alan Modra  <amodra@bigpond.net.au>
5820
5821         * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
5822         bfd_get_section_size_before_reloc or _raw_size.
5823         * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
5824         * dwarf2read.c (dwarf2_locate_sections): Likewise.
5825         (dwarf2_read_section): Likewise.
5826         * elfread.c (elf_locate_sections): Likewise.
5827         * gcore.c (derive_heap_segment): Likewise.
5828         * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
5829         * remote-e7000.c (e7000_load): Likewise.
5830         * remote-m32r-sdi.c (m32r_load): Likewise.
5831         * remote-mips.c (mips_load_srec): Likewise.
5832         (pmon_load_fast): Likewise.
5833         * remote.c (compare_sections_command): Likewise.
5834         * symfile.c (add_section_size_callback): Likewise.
5835         (load_section_callback): Likewise.
5836         (pc_in_unmapped_range): Likewise.
5837         (pc_in_mapped_range): Likewise.
5838         (sections_overlap): Likewise.
5839         (list_overlays_command): Likewise.
5840         (simple_overlay_update_1): Likewise.
5841         (simple_overlay_update): Likewise.
5842         * tracepoint.c (remote_set_transparent_ranges): Likewise.
5843         * win32-nat.c (core_section_load_dll_symbols): Likewise.
5844
5845 2004-06-14  Randolph Chung  <tausq@debian.org>
5846
5847         * Makefile.in (hppa-hpux-tdep.o): Update dependency.
5848         * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make 
5849         static.
5850         (hppa_hpux_inferior_created): New function.
5851         (hppa_hpux_init_abi): Register observer.
5852         * symfile.c (hp_cxx_exception_support_initialized)
5853         (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
5854         (symbol_file_add_main_1, symbol_file_clear): Likewise.
5855
5856 2004-06-14  Randolph Chung  <tausq@debian.org>
5857
5858         * MAINTAINERS (Write After Approval): Alphabetize my entry
5859         correctly.
5860
5861 2004-06-14  Andrew Cagney  <cagney@gnu.org>
5862
5863         * MAINTAINERS (testsuite): List Michael Chastain as the lead
5864         testsuite maintainer.
5865
5866 2004-06-13  Andrew Cagney  <cagney@gnu.org>
5867
5868         * infcmd.c (print_return_value): Fix logic, allow
5869         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
5870
5871         * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
5872         defining any macros.
5873         * gdbarch.h: Re-generate.
5874
5875         * gdbarch.sh: Delete "level" attribute.  Only check for a macro
5876         redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
5877         * gdbarch.h: Re-generate.
5878
5879         * values.c (generic_use_struct_convention): Don't check gcc_p.
5880
5881         * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
5882         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
5883         * gdbarch.h, gdbarch.c: Regenerate.
5884         * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE) 
5885         (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
5886         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5887         deprecated_max_register_raw_size and
5888         deprecated_max_register_virtual_size.
5889         * v850-tdep.c (v850_gdbarch_init): Ditto.
5890         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
5891         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5892         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5893         * cris-tdep.c (cris_gdbarch_init): Ditto.
5894
5895         * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
5896         * gdbarch.h, gdbarch.c: Re-generate.
5897         * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
5898         (m68hc11_use_struct_convention): Delete function.
5899         (m68hc11_extract_struct_value_address): Delete function.
5900         (m68hc11_return_value): New function.
5901         (m68hc11_gdbarch_init): Instead of store_return_value,
5902         extract_return_value, return_value_on_stack,
5903         deprecated_extract_struct_value_address and use_struct_convention,
5904         set return_value.
5905         * values.c (using_struct_return): Do not call
5906         RETURN_VALUE_ON_STACK.
5907         * arch-utils.h (generic_return_value_on_stack_not): Delete
5908         declaration.
5909         * arch-utils.c (generic_return_value_on_stack_not): Delete
5910         function.
5911         
5912 2004-06-12  Andrew Cagney  <cagney@gnu.org>
5913
5914         * values.c (register_value_being_returned): Delete function.
5915         * infcmd.c (legacy_return_value): Delete function.
5916         * infcall.c (call_function_by_hand): Inline
5917         "register_value_being_returned", simplify.
5918         * values.c (using_struct_return): Update comment, refer to
5919         print_return_value instead of register_value_being_returned.
5920         * infcmd.c (print_return_value): Inline calls to
5921         register_value_being_returned and legacy_return_value.  Simplify.
5922
5923 2004-06-11  Randolph Chung  <tausq@debian.org>
5924
5925         * somread.c (som_symtab_read): Exclude gcc local symbols.
5926
5927 2004-06-11  Randolph Chung  <tausq@debian.org>
5928
5929         * infrun.c (handle_inferior_event): Handle the case when a
5930         trampoline ends up in the runtime resolver, and if the trampoline
5931         has no name.  Rearrange the code so that all the trampoline
5932         processing happens before other step-out-of-range handling.
5933
5934 2004-06-11  Martin Hunt  <hunt@redhat.com>
5935
5936         * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
5937         has no fpu.
5938
5939 2004-06-10  Andrew Cagney  <cagney@gnu.org>
5940
5941         * blockframe.c (legacy_inside_entry_func): Delete.
5942         (legacy_frame_chain_valid): Inline call to
5943         legacy_inside_entry_func, simplify.
5944
5945 2004-06-10  Bob Rossi  <bob@brasko.net>
5946
5947         * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
5948         * dwarf2read.c (partial_die_info): Add dirname field.
5949         (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
5950         (read_partial_die): Save away DW_AT_comp_dir.
5951         * defs.h (symtab_to_filename): Removed.
5952         * source.c (find_and_open_source): Added.
5953         (open_source_file): Just calls find_and_open_source.
5954         (symtab_to_filename): Removed.
5955         (symtab_to_fullname, psymtab_to_fullname): Added.
5956         * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
5957         * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
5958         symtab_to_filename.
5959         * symtab.h (partial_symtab): Add dirname field.
5960         * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
5961         (mi_cmd_file_list_exec_source_file): Call new function
5962         symtab_to_fullname to find fullname.
5963         (mi_cmd_file_list_exec_source_files): Added.
5964         * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
5965         * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
5966
5967 2004-06-10  Andrew Cagney  <cagney@gnu.org>
5968
5969         * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
5970         to generic_use_struct_convention, the default value.
5971
5972         * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
5973         of abort.
5974
5975         * ns32k-tdep.c (ns32k_push_arguments): New function.
5976         (ns32k_gdbarch_init): Set deprecated_push_arguments.
5977         * infcall.c (call_function_by_hand): Call error instead of
5978         legacy_push_arguments.
5979         * value.h (legacy_push_arguments): Delete declaration.
5980         * valops.c (legacy_push_arguments): Delete function.
5981         (value_push): Delete function.
5982
5983 2004-06-10  Brian Ford  <ford@vss.fsi.com>
5984
5985         * coffread.c (coff_symfile_read): Prevent mixed debugging formats
5986         from corrupting/reinitializing the psymtab.  Support DWARF 2 frame
5987         info.
5988         * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
5989
5990 2004-06-10  Andrew Cagney  <cagney@gnu.org>
5991
5992         * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
5993         * gdbarch.h, gdbarch.c: Re-generate.
5994         * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
5995         parameters.
5996         * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
5997         * arm-tdep.c (arm_pc_is_thumb_dummy): Call
5998         deprecated_pc_in_call_dummy instead of
5999         DEPRECATED_PC_IN_CALL_DUMMY.
6000         (arm_skip_prologue): Ditto.
6001         * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
6002         (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
6003         * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
6004         (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
6005         Ditto.
6006         * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr) 
6007         (sh64_init_extra_frame_info, sh64_get_saved_register) 
6008         (sh64_pop_frame): Ditto.
6009         * mips-tdep.c (non_heuristic_proc_desc): Ditto.
6010         * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc) 
6011         (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
6012         * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc) 
6013         (h8300_pop_frame): Ditto.
6014         * blockframe.c (legacy_inside_entry_func) 
6015         (legacy_frame_chain_valid): Ditto.
6016         * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
6017         to deprecated_pc_in_call_dummy.
6018         
6019 2004-06-09  Andrew Cagney  <cagney@gnu.org>
6020
6021         * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
6022         provide a default value.
6023         (CONVERT_REGISTER_P): Default to generic_convert_register_p.
6024         * gdbarch.h, gdbarch.c: Re-generate.
6025         * arch-utils.c (generic_convert_register_p): Rename
6026         legacy_convert_register_p
6027         (legacy_register_to_value, legacy_value_to_register): Delete
6028         functions.
6029         * arch-utils.h (generic_convert_register_p): Rename
6030         legacy_convert_register_p.
6031         (legacy_register_to_value, legacy_value_to_register): Delete
6032         declarations.
6033
6034         * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
6035         (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
6036         (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
6037         * gdbarch.h, gdbarch.c: Re-generate.
6038         * infcmd.c (default_print_registers_info): Simplify.
6039         * findvar.c (value_of_register): Simplify.
6040         * mi/mi-main.c (get_register): Simplify.
6041         * arch-utils.c (legacy_convert_register_p): Always return 0.
6042         (legacy_register_to_value, legacy_value_to_register): Always call
6043         internal_error.
6044
6045         * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
6046         #ifdef CLEAR_INSN_CACHE code.
6047         * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
6048         Delete #ifdef CLEAR_DEFERRED_STORES code.
6049
6050         * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
6051
6052         * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
6053         copyright.
6054         * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
6055
6056         * config/mips/mipsv4.mh: Delete file.
6057
6058         * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
6059         unreferenced macro.
6060         (hpread_adjust_stack_address): Delete declaration.
6061
6062 2004-06-08  Andrew Cagney  <cagney@gnu.org>
6063
6064         * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
6065         (attach, detach): When neither PT_ATTACH / PT_DETACH nor
6066         PTRACE_ATTACH / PTRACE_DETACH available call error.
6067         (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
6068         * infttrace.c (update_thread_state_after_attach, attach, detach):
6069         Remove #ifdef wrappers.
6070         * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
6071         * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
6072         * config/nm-bsd.h (ATTACH_DETACH): Delete.
6073         * config/nm-sysv4.h (ATTACH_DETACH): Delete.
6074         * config/nm-nbsd.h (ATTACH_DETACH): Delete.
6075         * config/nm-linux.h (ATTACH_DETACH): Delete.
6076         * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
6077         * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
6078         * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
6079         * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
6080         * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
6081
6082 2004-06-08  Corinna Vinschen  <vinschen@redhat.com>
6083
6084         * configure.in: Set $configdir to the right OS specific value.
6085         Use value when setting $tcldir and $tkdir.
6086         * configure: Regenerate.
6087
6088 2004-06-06  Paul Brook  <paul@codesourcery.com>
6089
6090         * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
6091         records.
6092
6093 2004-06-08  Paul N. Hilfinger  <Hilfinger@gnat.com>
6094
6095         * ada-lang.c (lookup_symbol_in_language): New function to allow
6096         re-use of another language's symbol lookup code.  (Placed here
6097         temporarily while Ada support is being integrated into the public
6098         tree).  
6099         (restore_language): New auxiliary function for 
6100         lookup_symbol_in_language.
6101         * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
6102         temporarily while Ada support is being integrated into the public
6103         tree).
6104         
6105 2004-06-08  Alexandre Oliva  <aoliva@redhat.com>
6106
6107         * Makefile.in (check//%): New.
6108
6109         * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
6110         (mn10300_store_return_value): Rewrite.
6111         (mn10300_type_align): New.
6112         (mn10300_use_struct_convention): Rewrite.
6113         (mn10300_return_value): New, using all of the above.
6114         (mn10300_pop_frame_regular): Add saved_regs_size.
6115         (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
6116
6117         * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
6118         regs if PC is on movm.
6119
6120 2004-06-07  Jim Blandy  <jimb@redhat.com>
6121
6122         Add native Linux support for the PowerPC E500.
6123         * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
6124         * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
6125         all architectures except the E500.
6126         * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
6127         #definitions.
6128         (struct gdb_evrregset_t): New type.
6129         (have_ptrace_getsetevrregs): New variable.
6130         (get_spe_registers, read_spliced_spe_reg, fetch_spe_register, 
6131         fetch_spe_registers): New functions.
6132         (fetch_register): Call fetch_spe_register as appropriate.
6133         Assert that we're only passed raw register numbers.
6134         (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
6135         Don't fetch gprs if they're pseudoregisters.
6136         (set_spe_registers, write_spliced_spe_reg, store_spe_register,
6137         store_spe_registers): New functions.
6138         (store_register): Call store_spe_register as appropriate.
6139         Assert that we're only passed raw register numbers.
6140         (store_ppc_registers): Call store_spe_registers as appropriate.
6141         Don't store gprs if they're pseudoregisters.
6142         
6143 2004-06-07  Jeff Johnston  <jjohnstn@redhat.com>
6144
6145         * thread-db.c (thread_get_info_callback): Fill in the thread_info
6146         struct if one exists, even if we are dealing with a zombie thread.
6147
6148 2004-06-07  Andrew Cagney  <cagney@gnu.org>
6149
6150         * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
6151         * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
6152         Rename PC_REQUIRES_RUN_BEFORE_USE.
6153         * breakpoint.c (breakpoint_sals_to_pc): Update.  Wrap reference in
6154         #ifdef.
6155
6156 2004-06-07  Randolph Chung  <tausq@debian.org>
6157
6158         * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
6159         unwinding after sp has been saved to the stack but before the end
6160         of the prologue, and after the fp has been modified but before it has
6161         been saved to the stack.
6162         (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer): 
6163         Remove superfluous definitions.
6164         (hppa_gdbarch_init): Remove superfluous frame base sniffer.
6165
6166 2004-06-07  Guy Martin  <gmsoft@gentoo.org>
6167
6168         Committed by Randolph Chung.
6169         * hppa-linux-nat.c: Include the correct version of the header file
6170         depending on the kernel version.
6171
6172 2004-06-06  Randolph Chung  <tausq@debian.org>
6173
6174         * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
6175         (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
6176
6177 2004-06-06  Randolph Chung  <tausq@debian.org>
6178
6179         * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline) 
6180         (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
6181         * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
6182         * hppa-tdep.c (hppa_symbol_address): New function definition.
6183         * hppa-tdep.h (hppa_symbol_address): New function declaration.
6184
6185 2004-06-06  Randolph Chung  <tausq@debian.org>
6186
6187         * hppa-tdep.h (struct value): Forward declaration.
6188         (gdbarch_tdep): Define tdep find_global_pointer method.
6189         * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
6190         associated with the function we are trying to call, and write it
6191         to the gp register.
6192         (hppa32_convert_from_funct_ptr_addr): New function.
6193         (hppa_find_global_pointer): New function.
6194         (hppa_gdbarch_init): Set default find_global_pointer method; set
6195         convert_from_func_ptr_addr method.
6196         * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
6197         (hppa_linux_init_abi): Set find_global_pointer method.
6198         * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
6199
6200 2004-06-06  Randolph Chung  <tausq@debian.org>
6201
6202         * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
6203         to struct value *function.
6204         * gdbarch.c: Regenerate.
6205         * gdbarch.h: Likewise.
6206         * infcall.c (call_function_by_hand): Pass entire function value
6207         to push_dummy_call.
6208
6209         * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
6210         (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
6211         * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
6212         * amd64-tdep.c (amd64_push_dummy_call): Likewise.
6213         * arm-tdep.c (arm_push_dummy_call): Likewise.
6214         * avr-tdep.c (avr_push_dummy_call): Likewise.
6215         * cris-tdep.c (cris_push_dummy_call): Likewise.
6216         * d10v-tdep.c (d10v_push_dummy_call): Likewise.
6217         * frv-tdep.c (frv_push_dummy_call): Likewise.
6218         * h8300-tdep.c (h8300_push_dummy_call): Likewise.
6219         * hppa-tdep.c (hppa32_push_dummy_call)
6220         (hppa64_push_dummy_call): Likewise.
6221         * i386-tdep.c (i386_push_dummy_call): Likewise.
6222         * ia64-tdep.c (ia64_push_dummy_call): Likewise.
6223         * m32r-tdep.c (m32r_push_dummy_call): Likewise.
6224         * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
6225         * m68k-tdep.c (m68k_push_dummy_call): Likewise.
6226         * m88k-tdep.c (m88k_push_dummy_call): Likewise.
6227         * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
6228         (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
6229         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
6230         (ppc64_sysv_abi_push_dummy_call): Likewise.
6231         * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
6232         (ppc64_sysv_abi_push_dummy_call): Likewise.
6233         * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
6234         * s390-tdep.c (s390_push_dummy_call): Likewise.
6235         * sh-tdep.c (sh_push_dummy_call_fpu)
6236         (sh_push_dummy_call_nofpu): Likewise.
6237         * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
6238         * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
6239         * vax-tdep.c (vax_push_dummy_call): Likewise.
6240
6241 2004-06-04  Jim Blandy  <jimb@redhat.com>
6242
6243         * ppc-linux-nat.c (fetch_register): Don't forget to pass the
6244         gdbarch argument to register_size.
6245
6246         * rs6000-tdep.c (rs6000_store_return_value): Use
6247         regcache_cooked_write_part instead of
6248         deprecated_write_register_bytes.
6249         (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
6250         not gdbarch_deprecated_store_return_value.
6251
6252         * ppc-linux-nat.c (store_register, fetch_register): Remove
6253         incorrect assertions.  Simplify and generalize handling of
6254         transfers whose sizes are not multiples of, or less than, sizeof
6255         (PTRACE_XFER_TYPE).
6256
6257 2004-06-04  Jeff Johnston  <jjohnstn@redhat.com>
6258
6259         * infrun.c (handle_inferior_event): Don't treat an invalid ptid
6260         as a new thread event.
6261         * thread-db.c (thread_get_info_callback): If the thread is a
6262         zombie, return TD_THR_ZOMBIE.
6263         (thread_from_lwp): If thread_get_info_callback returns
6264         TD_THR_ZOMBIE, check if the thread is still on the thread list
6265         and return a -1 ptid if not found.
6266         (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
6267         change the status to TARGET_WAITKIND_SPURIOUS.
6268
6269 2004-06-03  Corinna Vinschen  <vinschen@redhat.com>
6270
6271         * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
6272         double values in little endian mode.
6273
6274 2004-06-02  Albert Chin-A-Young  <china@thewrittenword.com>
6275
6276         Committed by Andrew Cagney.
6277         * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
6278         after last enum constant to avoid error from IBM C
6279         compiler.
6280
6281 2004-06-02  Jim Blandy  <jimb@redhat.com>
6282
6283         * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
6284         to 'message', and make it local to the lone block that uses it.
6285
6286         * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
6287
6288 2004-06-02  Paul N. Hilfinger  <hilfinger@gnat.com>
6289
6290         * ada-exp.y: Update copyright notice.
6291         Include block.h.
6292         
6293         Replace REGNAME, LAST, INTERNAL_VARIABLE with
6294         SPECIAL_VARIABLE and unify the treatment of these cases.
6295
6296         (write_attribute_call0): Remove.
6297         (write_attribute_call1): Remove.
6298         (write_attribute_calln): Remove.
6299         (save_qualifier): Add missing semicolon.
6300
6301         (simple_exp,exp): Decomment (i.e., reactivate) code that was 
6302         temporarily disabled to allow compilation with FSF head version.
6303
6304         (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and 
6305         use individual operators (OP_*) for all attributes.
6306         (exp syntax): Use write_int.
6307         Handle STRING literals with OP_STRING.
6308         (variable syntax): Add limit parameter to calls to 
6309         write_object_renaming.  
6310
6311         (temp_parse_space): New definition to hold entities that need
6312         only live until the next call to ada_parse.
6313         (string_to_operator): Rename fields of ada_opname_table entries.
6314
6315         (write_var_from_sym): Record block.
6316         (write_var_from_name): Minor reformatting.
6317         Make sure saved name is properly encoded in the case of multiple 
6318         matches, and set its language to Ada.
6319         Update comment.
6320         Modify to indicate unresolved name as symbol in the UNRESOLVED 
6321         namespace, allocated in temp_parse_space.
6322         (write_int): New function.
6323
6324         (write_object_renaming): Add max_depth parameter to limit
6325         chains of object renamings.
6326         Handle case where root of renaming expression is itself a renaming.
6327         Use temp_parse_space for temporary name buffer.
6328         Handle renamings to dereferenced pointers (___XEXA suffices).
6329         
6330         (ada_parse, yyerror, string_to_operator, 
6331         write_var_from_sym, write_var_from_name, write_attribute_call0, 
6332         write_attribute_call1, write_attribute_calln, 
6333         write_object_renaming): Protoize.
6334
6335         (_initialize_ada_exp): New function.
6336         
6337         * ada-lang.c: Update copyright notice.
6338         General terminology change to conform to GNAT compiler usage:
6339         mangle => encode, demangle => decode
6340         Include gdb_obstack.h.
6341         Include gdb_regex.h
6342         Include frame.h
6343         Include hashtab.h
6344         Include completer.h
6345         Include gdb_stat.h
6346         Include block.h
6347         Include infcall.h
6348         
6349         (ADA_RETAIN_DOTS): Make sure this is defined.
6350         (TRUNCATION_TOWARDS_ZERO): Define.
6351         (struct string_vector): Define.
6352         (unresolved_names): Remove definition.
6353         (xnew_string_vector): New function.
6354         (string_vector_append): New function.
6355         (extract_string): Make static.
6356         (ada_unqualified_name): New function.
6357         (add_angle_brackets): New function.
6358         (function_name_from_pc): New function.
6359         (place_on_stack): Rename to ensure_lval.
6360
6361         (ensure_lval): Renamed from place_on_stack.
6362         Make identity on lvals.
6363         Update comment.
6364         (is_nonfunction): New interface.
6365         Only symbols in LOC_CONST class can be enumerals.
6366         (fill_in_ada_prototype): Remove; now independent of language.
6367         (add_defn_to_vec): Add obstack and symtab arguments.
6368         Use obstack to hold collected definitions.
6369         (num_defns_collected): New function.
6370         (defns_collected): New function.
6371         (ada_resolve_subexp): Rename to resolve_subexp.
6372         (resolve_subexp): Renamed from ada_resolve_subexp.
6373         (ada_op_name): Return non-const result.
6374         (ada_decoded_op_name): Renamed from ada_op_name, now used for
6375         other purposes.
6376
6377         (to_fixed_array_type): Add declaration.
6378         (coerce_unspec_val_to_type): Remove offset parameter.
6379         (find_sal_from_funcs_and_line): New interface.
6380         (find_line_in_linetable): Ditto.
6381
6382         (all_sals_for_line): Rename to ada_sals_for_line and make
6383         global.
6384         Add new parameter. When set, do not ask the user to choose the 
6385         instance, but use the first one found instead.
6386         Use given line number in returned sals.
6387         Fix comment. 
6388         Skip the prologue if funfirstline is set.
6389         Correct for memory leak when 0 lines found.
6390
6391         (value_pos_atr): Use pos_atr.
6392         (pos_atr): New function.
6393         (standard_lookup): Add block parameter.
6394
6395         (makeTimeStart): Remove declaration and uses.
6396         (makeTimeStop): Remove declaration and uses.
6397
6398         (ada_completer_word_break_characters): Allow for VMS.
6399         (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
6400         (raise_sym_name): New constant.
6401         (raise_unhandled_sym_name): New constant.
6402         (raise_assert_sym_name): New constant.
6403         (process_raise_exception_name): New constant.
6404         (longest_exception_template): New constant.
6405         (warning_limit): New variable to limit warnings during expression
6406         evaluation.
6407         (warnings_issued): New variable to keep track of warnings issued.
6408         (known_runtime_file_name_patterns): New constant.
6409         (known_auxiliary_function_name_patterns): New constant.
6410         (symbol_list_obstack): New variable.
6411         
6412         (field_name_match,is_suffix,is_suppressed_name,ada_encode,
6413         ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
6414         lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
6415         find_sal_from_funcs_and_line, ada_breakpoint_rewrite, 
6416         ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field, 
6417         ada_variant_discrim_name, field_alignment, dynamic_template_type,
6418         ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type): 
6419         Replace use of deprecated STREQ and STREQN macros by calls to strncmp 
6420         and strcmp. 
6421
6422         (ada_get_field_index): New function.
6423         (lim_warning): New function.
6424         (ada_translate_error_message): New function.
6425         (MAX_OF_SIZE): New function.
6426         (MIN_OF_SIZE): New function.
6427         (UMAX_OF_SIZE): New function.
6428         (UMIN_OF_SIZE): New function.
6429         (discrete_type_high_bound): New function.
6430         (discrete_type_low_bound): New function.
6431         (base_type): New function.
6432         (do_command): Remove.
6433         
6434         (ada_update_initial_language): Use language_ada, not language_unknown.
6435         (ada_encode): Renamed from ada_mangle.
6436         Obey ADA_RETAIN_DOTS.
6437         (ada_decode): Renamed from ada_demangle.
6438         Update coding conventions.
6439         (decoded_names_store): New hash table.
6440         (ada_decode_symbol): New function.
6441         (ada_la_decode): New function.
6442         
6443         (modify_general_field): Correct computations of offset and bit 
6444         position.
6445         (desc_base_type): Handle ref types, too.
6446         (ada_is_direct_array_type): New function.
6447
6448         (ada_is_simple_array): Rename to ada_is_simple_array_type.
6449         (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
6450         (ada_is_bogus_array_descriptor,ada_type_of_array,
6451         ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
6452         ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed 
6453         ada_is_array_descriptor_type.
6454         
6455         (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
6456         (ada_is_packed_array_type): Handle pointers or 
6457         references to packed arrays as well.
6458         (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
6459         (decode_packed_array_type): Search for the packed array type 
6460         symbol in the currently selected block and associated 
6461         superblocks too.
6462         Use lookup_symbol again.
6463
6464         (decode_packed_array): Handle pointers and references.
6465         Update call to coerce_unspec_val_to_type.
6466         (decode_packed_array_type,value_subscript_packed): Limit warnings.
6467         (ada_value_primitive_packed_val): Improve comment.
6468         
6469         (ada_index_type): Substitute int type for "undefined".
6470         (ada_index_type,ada_array_bound_from_type,ada_array_bound,
6471         ada_array_langth, ada_is_string_type): Use renamed 
6472         ada_is_simple_array_type.
6473         (empty_array): New function.
6474
6475         (ada_resolve):  Rename to resolve.
6476         (resolve): Make static.
6477         Call renamed resolve_subexp.
6478         Update comment.
6479         (ada_resolve_subexp): Rename to resolve_subexp.
6480         (resolve_subexp): Update comment.
6481         Decomment disabled code.
6482         Add LOC_COMPUTED* cases.
6483         Modify to use temporary struct symbols (marked as being in 
6484         UNDEF_NAMESPACE) to indicate unresolved names, instead of 
6485         OP_UNRESOLVED_VALUE.
6486         Remove OP_ATTRIBUTE; use individual opcodes for attributes.     
6487         Add OP_STRING case.
6488         Remove OP_ARRAY.
6489         Use SYMBOL_PRINT_NAME instead of ada_demangle.
6490         Use new ada_lookup_symbol_list interface.
6491         Use new ada_resolve_function interface.
6492         Remove OP_TYPE case.
6493
6494         (ada_args_match): Idiot proof against null actuals.
6495         Use intermediate variables to clarify.
6496         (ada_resolve_function): Update comment and interface.
6497         (mangled_ordered_before): Rename to encoded_ordered_before and
6498         update comment.
6499         (sort_choices): Update comment and interface.
6500         Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
6501         (user_select_syms): New interface.
6502         Use new sort_choices interface.
6503         Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
6504         (possible_user_operator_p): Idiot-proof against null values.
6505         (ada_simple_renamed_entity): Don't make cleanup; rely on 
6506         caller to free result string.
6507         Remove const from return type.
6508         (make_array_descriptor): Rename uses of place_on_stack to 
6509         ensure_lval.
6510         Make sure that arrays are on stack.
6511         
6512         (HASH_SIZE): Define.
6513         (struct cache_entry): Define.
6514         (cache_space): Define.
6515         (cache): Define.
6516         (clear_ada_sym_cache): New function.
6517         (find_entry): New function.
6518         (lookup_cached_symbol): New function.
6519         (defn_vector_size): Define.
6520         (cache_symbol): New function.
6521         (defn_symbols): Remove.
6522         
6523         (standard_lookup): Use lookup_symbol_in_language to get effect of
6524         C lookup.
6525         Cache results.
6526         
6527         (symbol_completion_match): New function.
6528         (symbol_completion_add): New function.
6529         (ada_make_symbol_completion_list): New function.
6530
6531         (ada_lookup_partial_symbol,ada_lookup_simple_minsym, 
6532         add_symbols_from_enclosing_procs,remove_extra_symbols): Replace 
6533         DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME. 
6534         (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
6535         
6536         (ada_lookup_simple_minsym): New function.
6537         (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
6538
6539         (add_symbols_from_enclosing_procs): New interface.
6540         Conditionalize more helpfully.
6541         Don't bother if program isn't running.
6542         Use new interface to get_frame_block.
6543         Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
6544         
6545         (remove_extra_symbols): New interface.
6546         (xget_renaming_scope): New function.
6547         (is_package_name): New function.
6548         (renaming_is_visible): New function.
6549         (remove_out_of_scope_renamings): New function.
6550
6551         (ada_lookup_symbol_list): New interface.
6552         Properly reinitialize the symbol list obstack.
6553         Don't call add_symbols_from_enclosing_procs if we start from a
6554         static or global block.
6555         Use new interfaces to ada_add_block_symbols, add_defn_to_vec, 
6556         add_symbols_from_enclosing_procs.
6557         Add symtab data to cached entries.
6558         Handle symbols prefixed with
6559         "standard__" specially; strip prefix and don't look in local symbols.
6560         Do not include out of scope renaming symbols in list of 
6561         symbols returned.
6562         Add const to block parameter.
6563         Move check for non-local, non-global symbols earlier.  
6564         Remove timing stuff.
6565         (ada_lookup_symbol): New interface.
6566         Find symtab as well.
6567         (ada_lookup_symbol_nonlocal): New function.
6568
6569         (is_name_suffix): Enhance suffix detection to recognize
6570         an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
6571         (is_dot_digits_suffix): New function.
6572         (wild_match): Ignore ".[:digit:]*" suffixes during matches.
6573         
6574         (ada_add_block_symbols): New interface.  Use obstack to return results
6575         in a vector of struct ada_symbol_infos.  Add symtab argument.
6576         Use new interface to add_defn_to_vec.
6577         Remove calls to fill_in_ada_prototype.
6578         Use BLOCK_BUCKETS, BLOCK_BUCKET.
6579         
6580         (ada_finish_decode_line_1): Add const qualification to local to fix
6581         warning.
6582         Start looking in static block for functions to avoid attempts 
6583         to search frame chain for up-level variables.
6584         Adapt to new ada_sals_for_line interface.
6585         Use new interfaces to ada_lookup_symbol_list and user_select_syms.
6586         Handle quoting of the function name inside the spec string.
6587         Skip prologue when funfirstline is set and update the 
6588         function documentation to that effect.
6589
6590         (debug_print_lines, debug_print_block, debug_print_blocks, 
6591         debug_print_symtab): Remove.
6592
6593         (ada_main_name): New function.  
6594         (ada_exception_breakpoint_type): New function.
6595         (is_known_support_routine): New function.
6596         (ada_find_printable_frame): Renamed from find_printable_frame and made
6597         global.
6598         Remove level parameter.
6599         Use new interface to select_frame.
6600
6601         (begin_command): Remove.
6602         (ada_adjust_exception_stop): New function.
6603         (ada_print_exception_stop): New function.
6604         (exception_name_from_cond): New function.
6605         (ada_report_exception_break): Replace disabled code with 
6606         conditionalization on GNAT_GDB.
6607         Get the exception name from the condition string.
6608         Remove and move functionality into new functions 
6609         ada_print_exception_breakpoint_task and 
6610         ada_print_exception_breakpoint_nontask.
6611         (error_breakpoint_runtime_sym_not_found): New function.
6612         (is_runtime_sym_defined): New function.
6613         (ada_breakpoint_rewrite): Uncomment suppressed code.
6614         Use symbolic error-message and runtime-symbol names.
6615         Surround runtime symbol names in quotes.
6616         Allow non-specific breakpoints on exceptions and assertions before
6617         program starts.
6618         
6619         (ada_is_tagged_type): Add parameter.
6620         (ada_is_tag_type): New function.
6621         (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
6622         (ada_variant_discrim_type): Ditto.
6623         (value_tag_from_contents_and_address): New function.
6624         (type_from_tag): New function.
6625         (struct tag_args): New structure used to communicate with
6626         ada_tag_name_1.
6627         (ada_tag_name_1): New function.
6628         (ada_tag_name): New function.
6629
6630         (ada_scan_number): Update comment.
6631         (find_struct_field): New function.
6632         (ada_search_struct_field): Make static.
6633         (ada_value_struct_elt): New version that returns references when
6634         given pointers or references to structs.
6635         (ada_lookup_struct_elt_type): Add 'refok' parameter.
6636         (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
6637         interface.
6638         (ada_value_ind): Use new ada_to_fixed_value interface.
6639         (ada_coerce_ref): Ditto.
6640         (field_offset): Remove.
6641
6642         (ada_find_any_symbol): New function, extracted from ada_find_any_type.
6643         (ada_find_renaming_symbol): New function.
6644         (ada_prefer_type): Prefer named types over unnamed ones.
6645         (variant_field_index): New function.
6646         (contains_variant_part): Removed: subsumed by variant_field_index.
6647         (ada_template_to_fixed_record_type): New function, mostly from
6648         template_to_fixed_record_type.
6649         (template_to_fixed_record_type): 
6650         Do not scan the type fields beyond the last one; prevents a 
6651         potential SEGV.
6652         Handle case where variant field is listed BEFORE discriminant it 
6653         depends on.
6654         Fix calculation of record length when bit length is 
6655         not evenly divisible by char length.
6656         Move code to ada_template_to_fixed_record_type and call it.
6657
6658         (template_to_static_fixed_type): Revise comment.  
6659         Modify to work on ordinary record types as well as templates, 
6660         so as to handle fields that use ___XVE or ___XVU encodings. 
6661         (to_record_with_fixed_variant_part): Fill out comment.
6662         Initialize C++ stuff in right type.
6663         Allow case where DVAL is null.
6664         Handle case where variant field is not last.
6665         Fix typo concerning record length.
6666         (to_fixed_record_type): Decomment disabled code.
6667         (to_fixed_record_type): Use variant_field_index instead of 
6668         contains_variant_part.
6669         (to_fixed_variant_branch_type): Ditto.
6670         (to_fixed_array_type): Decomment disabled code.
6671         (ada_to_fixed_type): Convert tagged types to the specific type.
6672         Deactivate the size-check for array types in order to avoid 
6673         some false size alarms.
6674         (to_static_fixed_type): Decomment disabled code.
6675         Modify to call template_to_static_fixed_type
6676         on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
6677         (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
6678         Remove valaddr argument, as it is never really used.
6679         (ada_to_fixed_value): Change interface to act on single struct value*
6680         operand.
6681         (adjust_pc_past_prologue): New function.
6682         (ada_attribute_name): Modify to take enum exp_opcode argument.
6683                 
6684         (ada_enum_name): Recognize new homonym-distinguishing convention.
6685         Adjust local variable's type to remove compiler warning.
6686         Fix a small problem in the part that unqualifies the enumeration name.
6687         (ada_value_binop): New function.
6688         (ada_value_equal): New function.
6689
6690         (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
6691         Don't give error message when not doing normal evaluation 
6692         and a tagged type doesn't seem to contain a structure member.
6693         Give error message for packed arrays.
6694         For indexing arrays, handle pointers to packed arrays correctly.
6695         Handle case of 'first and 'last attributes of bare integral type 
6696         without encoded subtype info.  
6697         Remove some unnecessary casts.
6698         Fix uninitialized value of type in computing 'first, 'last, or 'length
6699         of array object.  
6700         Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
6701         Remove binop_user_defined_p tests and value_x_binop and value_x_unop
6702         calls.
6703         Attributes are now exp_opcode values.
6704         Correct treatment of 'modulus.
6705         Better error message for taking 'length of wrong kind of type; 
6706         improve comment.
6707         Change EVAL_NORMAL to noside for consistency.
6708         Use ada_value_binop for DIV, MOD, REM.
6709         Make special case out of array of length 0, since an argument 
6710         of 0 upsets some platforms' malloc.
6711         Use OP_STRING instead of OP_ARRAY.
6712         For slice, add check that we have an array type before extracting 
6713         a slice out of it.  Avoids a SEGV.
6714         When evaluating an array slice, if the array type is a reference to 
6715         an aligner type, then replace the aligner type by the actual type.
6716         Decomment disabled code.
6717         Remove some dead code.
6718         Use temporary struct symbols (marked as being in UNDEF_NAMESPACE) 
6719         to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
6720         Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE, 
6721         and UNOP_MBR to UNOP_IN_RANGE.
6722         If an array type has a parallel ___XVE type, then use it.
6723         Turn arrays into pointers for lvalue arrays.
6724         Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
6725         bounds error and handle 0-length slices.
6726         Use lim_warning.
6727         When selecting fields, apply ada_to_fixed_value (because the fields 
6728         might have ___XVU or ___XVE encodings even if not dynamic.)
6729         Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
6730         (ada_is_system_address_type): New function.
6731
6732         (get_var_value): Use new interface to ada_lookup_symbol_list.
6733         (get_int_var_value): New interface.
6734         (to_fixed_range_type): Allow unknown bound, with warning.
6735         (ada_is_modular_type): Decomment disabled code.
6736         (ADA_OPERATORS): New definition.
6737         (ada_operator_length): New function.
6738         (ada_expr_op_name): New function.
6739         (ada_forward_operator_length): New function.
6740         (ada_dump_subexp_body): New function.
6741         (ada_print_subexp): New function.
6742         (ada_exp_descriptor): New constant.
6743         (ada_op_print_tab): Add 'size.  Remove FIXMEs.
6744         (ada_language_defn): Add ada_exp_descriptor entry.
6745         Change ada_parse => parse.
6746         Add post-parser entry.
6747         Use ada-specific non-local symbol lookup.
6748         Don't use C-style arrays. 
6749         String lower-bound is 1.
6750         Decomment disabled code.        
6751         (parse): New function.
6752         New fields ada_translate_error_message, ada_lookup_symbol, 
6753         ada_lookup_minimal_symbol.
6754         
6755         * ada-lang.h: Update copyright dates.
6756         Replace the mangle/demangle terminology throughout by the
6757         more appropriate encode/decode one. 
6758         Include breakpoint.h.
6759         Forward declare struct partial_symbol, struct block.
6760         (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
6761         (EXTRACT_ADDRESS): Remove.
6762         (EXTRACT_INT): Remove.
6763         (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
6764         (MAX_ENCLOSING_FRAME_LEVELS): Define.
6765         (MAX_RENAMING_CHAIN_LENGTH): Define.
6766         (struct ada_opname_map): mangled => decoded, demangled=>encoded.
6767
6768         (enum task_states): Remove.
6769         ada_task_states: Remove.
6770         (fat_string): Remove.
6771         (struct entry_call): Remove.
6772         (struct task_fields): Remove.
6773         (struct task_entry): Remove.
6774
6775         (struct ada_symbol_info): Define.
6776         (enum ada_attribute): Remove.
6777         (enum ada_operator): Define.
6778         
6779         (ada_get_field_index): Declare.
6780         (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
6781         (ada_is_simple_array): Rename to ada_is_simple_array_type.
6782         (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
6783         (ada_lookup_symbol_list): New interface.
6784         (ada_decode_symbol): Declare.
6785         (ada_decode): Declare.
6786         (ada_lookup_symbol): New interface.
6787         (ada_update_initial_language): Declare.
6788         (ada_lookup_simple_minsym): Declare.
6789         (user_select_syms): New interface.
6790         (ada_sals_for_line): Declare.
6791         (ada_is_tagged_type): New interface.
6792         (ada_tag_name): Declare.
6793         (ada_lookup_struct_elt_type): Remove declaration.
6794         (ada_search_struct_field): Remove declaration.
6795         (ada_attribute_name): New interface.
6796         (ada_is_system_address_type): Declare.
6797         (ada_to_fixed_value): Remove declaration.
6798         (ada_template_to_fixed_record_type_1): Declare.
6799         (get_int_var_value): New interface.
6800         (ada_find_any_symbol): Declare.
6801         (ada_find_renaming_symbol): Declare.
6802         (ada_mangle): Rename to ada_encode.
6803         (ada_simple_renamed_entity): Remove const.
6804         (ada_main_name): Declare.
6805         (get_current_task): Rename to ada_get_current_task.
6806         (get_entry_number): Remove declaration.
6807         (ada_report_exception_break): Remove declaration.
6808         (ada_print_exception_breakpoint_nontask): Declare.
6809         (ada_print_exception_breakpoint_task): Declare.
6810         (ada_find_printable_frame): Declare.
6811
6812         * ada-lex.l: Update copyright notices.
6813         Use xmalloc and xfree instead of malloc and free.
6814         Use new interface to name_lookup.
6815         Use new interface to 
6816         ada_mangle=>ada_encode.
6817         Redo handling of '$...' variable to parallel current treatment 
6818         in c-exp.y.  
6819         (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
6820         digit_to_int, strtoulst, processInt, processReal, processId, 
6821         block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
6822         yywrap): Protoize.
6823         
6824         (processInt): Use cast to remove harmless warning.
6825         (processReal): Modify to get rid of compiler warning on scan formats.
6826
6827         (processId): Replace xmalloc with obstack_alloc for name and remove
6828         call to ada_name_string_cleanup.
6829         Remove obsolete disabled code.
6830         (name_lookup): Ditto. 
6831         New interface.
6832         Use obsavestring on temp_parse_space instead of savestring 
6833         on name, and remove call to ada_name_string_cleanup.  
6834         Free string returned from ada_simple_renamed_entity.
6835         Use new interface to ada_lookup_symbol_list.
6836         Decomment disabled code.
6837         Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables, 
6838         not types.
6839         When a type name lookup succeeds as a result of 
6840         lookup_primitive_typename, check for regular type entry that has not 
6841         yet been read in.
6842         Limit length of chain of renamed symbols we are willing to follow.  
6843         Do not break names beginning with "standard__" into segments.  
6844         (block_lookup): Use new interface to ada_lookup_symbol_list.
6845         
6846         * ada-typeprint.c: Update copyright notice.
6847         (demangled_type_name): Rename to decoded_type_name.
6848         (ada_typedef_print): Use SYMBOL_PRINT_NAME.
6849         (print_range_bound):  Correct handling of negative
6850         bounds that make the index type looked unsigned under STABS.  
6851         (print_dynamic_range_bound): Use new interface to get_int_var_value.
6852         (print_range_type_named):  Use the builtin int type if no type 
6853         corresponding to the given type name could be found.
6854         (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
6855         Add some bullet-proofing.
6856         (print_variant_clauses): Allow for variant branches with ___XVU 
6857         encodings that are not dynamic fields.  
6858         Use new interface to ada_is_tagged_type.
6859         (print_record_type): Allow for fields with ___XVE encodings that 
6860         are not dynamic fields. 
6861         Use new interface to ada_is_tagged_type.
6862         (ada_print_type): ada_is_array_descriptor => 
6863         ada_is_array_descriptor_type.
6864
6865         * ada-valprint.c: Update copyright notice.
6866         Include gdb_string.h
6867         Include infcall.h
6868         (ui_memcpy): New function.
6869         (ada_print_floating): New function.
6870         (ada_print_str): Order arguments correctly.
6871         Correct handling of empty arrays and arrays of 0-length items. 
6872         ada_is_array_descriptor => ada_is_array_descriptor_type 
6873         Print values of type System.Address in hexadecimal format.
6874         Use ada_print_floating to print floating-point numbers in Ada format.
6875         Print class tag values with type names.  
6876         No longer print the address of reference values. Avoids 
6877         a potential confusion.  
6878         (ada_value_print): Stop printing the object type for reference
6879         values, but preserve that behavior for access types. Avoids
6880         a potential confusion.
6881         Simplify one conditional expression, as the first part is now
6882         necessarily true.
6883         ada_is_array_descriptor => ada_is_array_descriptor_type 
6884         Add check for arrays for null records, and print them by hand.
6885         
6886 2004-06-01  Jim Blandy  <jimb@redhat.com>
6887
6888         * ppc-tdep.h: Delete unused 'regoff' member.
6889         * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
6890
6891 2004-06-01  Michael Chastain  <mec.gnu@mindspring.com>
6892
6893         Fix PR symtab/1661.
6894         * hpread.c (hpread_pxdb_needed): Call memset after alloca.
6895         (hpread_read_struct_type): Likewise.
6896
6897 2004-06-01  Andrew Cagney  <cagney@gnu.org>
6898
6899         * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
6900         instead of xasprintf.
6901         * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt) 
6902         (mi_cmd_thread_select, mi_cmd_thread_list_ids) 
6903         (mi_cmd_data_list_register_names) 
6904         (mi_cmd_data_list_changed_registers) 
6905         (mi_cmd_data_list_register_values) 
6906         (get_register, mi_cmd_data_write_register_values) 
6907         (mi_cmd_data_write_register_values) 
6908         (mi_cmd_data_assign, mi_cmd_data_evaluate_expression) 
6909         (mi_cmd_target_download, mi_cmd_target_select) 
6910         (mi_cmd_data_read_memory, mi_cmd_data_write_memory) 
6911         (mi_execute_cli_command, mi_execute_async_cli_command) 
6912         (mi_execute_async_cli_command): Ditto.
6913         * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
6914         * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
6915
6916         * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
6917         * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
6918         error_last_message instead of mi_error_last_message.
6919         * mi/mi-main.c (mi_error_last_message): Delete function.
6920
6921         * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
6922         "invalid number of columns" error.  Delete redundant "out of
6923         memory" check.
6924
6925 2004-05-31  Mark Kettenis  <kettenis@gnu.org>
6926
6927         * i386bsd-nat.c: Don't include <sys/procfs.h>.
6928         (gregset_t, fpregset_t): Remove typedefs.
6929         (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
6930         (REG_OFFSET): Rename argument.
6931         (i386bsd_r_reg_offset): Rename from reg_offset.
6932         (REG_ADDR): Remove macro.
6933         (cannot_fetch_register, supply_gregset, fill_gregset): Remove
6934         functions.
6935         (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
6936         (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
6937         instead of gregset_t and fpregset_t.  Use i386bsd_supply_gregset
6938         instead of supply_gregset.
6939         (store_inferior_registers): Use `struct reg' and `struct fpreg'
6940         instead of gregset_t and fpregset_t.  Use i386bsd_collect_gregset
6941         instead of fill_gregset.
6942         (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
6943
6944         * i386bsd-nat.c: Don't include "gregset.h".
6945         (supply_gregset, fill_gregset): Make static.
6946         (supply_fpregset, fill_fpregset): Remove.
6947         * Makefile.in (i386bsd-nat.o): Update dependencies.
6948
6949 2004-05-30  Mark Kettenis  <kettenis@gnu.org>
6950
6951         * fbsd-proc.c: Include "regcache.h", "regset.h" and
6952         "gdb_assert.h".  Con't include "gregset.h".
6953         (fbsd_make_corefile_notes): Use regset-based core file support
6954         instead off fill_gregset and fill_fpregset.
6955         * Makefile.in (fbsd-proc.o): Update dependencies.
6956
6957         * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
6958         instructions.
6959         (m88k_frame_prev_register): Simplify code a bit.
6960
6961         * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
6962         (amd64_collect_fpregset): New function.
6963         (amd64_regset_from_core_section): Use amd64_collect_fpregset.
6964
6965         * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
6966
6967         * i386-tdep.c (i386_supply_gregset): Adjust comment.
6968         (i386_collect_gregset): New function.
6969         (i386_supply_fpregset): Adjust comment.
6970         (i386_collect_fpregset): New function.
6971         (i386_regset_from_core_section): Use i386_collect_gregset and
6972         i386_collect_fpregset.
6973
6974         * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
6975         handle VALUEP being null.
6976
6977         * regset.h (collect_regset_ftype): Unconstify fourth argument.
6978
6979 2004-05-29  Mark Kettenis  <kettenis@gnu.org>
6980
6981         * MAINTAINERS: Undelete m88k.  Add myself as maintainer.
6982
6983         * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
6984         assembler in OpenBSD 3.5-current.
6985         (amd64obsd_sigcontext_addr): Likewise.
6986
6987 2004-05-28  Jim Blandy  <jimb@redhat.com>
6988
6989         * rs6000-tdep.c: Use the modern gdbarch methods for handling the
6990         register set, so our regcache isn't declared "legacy" and our E500
6991         pseudoregister read and write functions aren't ignored.
6992         (rs6000_register_byte, rs6000_register_raw_size,
6993         rs6000_register_virtual_type, rs6000_register_convertible,
6994         rs6000_register_convert_to_virtual,
6995         rs6000_register_convert_to_raw): Deleted.
6996         (rs6000_register_type, rs6000_convert_register_p,
6997         rs6000_register_to_value, rs6000_value_to_register): New
6998         functions.
6999         (rs6000_gdbarch_init): Don't register
7000         gdbarch_deprecated_register_size,
7001         gdbarch_deprecated_register_bytes,
7002         gdbarch_deprecated_register_byte,
7003         gdbarch_deprecated_register_raw_size,
7004         gdbarch_deprecated_register_virtual_type,
7005         gdbarch_deprecated_register_convertible,
7006         gdbarch_deprecated_register_convert_to_virtual, or
7007         gdbarch_deprecated_register_convert_to_raw methods.  Instead,
7008         register gdbarch_register_type, gdbarch_convert_register_p,
7009         gdbarch_register_to_value, and gdbarch_value_to_register methods.
7010
7011 2004-05-26  Jim Blandy  <jimb@redhat.com>
7012
7013         * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
7014         (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
7015         functions, updated to match the register numberings used in GCC.
7016         (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
7017         rs6000_dwarf2_reg_to_regnum as register number conversions
7018         functions for STABS and Dwarf2.
7019
7020 2004-05-26  Randolph Chung  <tausq@debian.org>
7021
7022         * infttrace.h (target_waitkind): Forward declare type instead of pulling
7023         in header file.
7024
7025 2004-05-25  Joel Brobecker  <brobecker@gnat.com>
7026
7027         * NEWS: Document new "start" command.
7028
7029 2004-05-25  Randolph Chung  <tausq@debian.org>
7030
7031         * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
7032         hppa-linux.
7033
7034 2004-05-25  Randolph Chung  <tausq@debian.org>
7035
7036         * hppa-hpux-tdep.c (offsetof): Define.
7037         (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
7038         (hppa32_hpux_frame_base_before_sigtramp)
7039         (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
7040         (hppa64_hpux_frame_saved_pc_in_sigtramp)
7041         (hppa64_hpux_frame_base_before_sigtramp)
7042         (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused 
7043         functions.
7044         (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
7045         (hppa_hpux_sigtramp_frame_unwind_cache)
7046         (hppa_hpux_sigtramp_frame_this_id)
7047         (hppa_hpux_sigtramp_frame_prev_register)
7048         (hppa_hpux_sigtramp_frame_unwind)
7049         (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
7050         (hppa_hpux_init_abi): Register sigtramp unwinder.
7051         * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
7052
7053 2004-05-25  Randolph Chung  <tausq@debian.org>
7054
7055         * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
7056         and multiple stack unwinds.
7057         (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
7058
7059 2004-05-25  Andrew Cagney  <cagney@gnu.org>
7060
7061         * symfile.h (symbol_file_add_from_memory): Delete declaration.
7062         * symfile-mem.h: Delete file.
7063         * symfile-mem.c: Do not include "symfile-mem.h".
7064         (symbol_file_add_from_memory): Make static. Use "struct bfd" and
7065         "struct bfd_section".  When an error do not bother returning NULL.
7066         (add_symbol_file_from_memory_command): Use "struct bfd" and
7067         "struct bfd_section".
7068         * Makefile.in (symfile_mem_h): Delete.
7069         (symfile-mem.o): Update dependencies.
7070
7071 2004-05-25  Nick Roberts  <nickrob@gnu.org>
7072
7073         * gdb-mi.el: New file.
7074
7075 2004-05-25  Andrew Cagney  <cagney@gnu.org>
7076
7077         * inftarg.c: Include "observer.h".
7078         (child_attach, child_create_inferior): Notify inferior_created.
7079         * corelow.c: Include "observer.h".
7080         (core_open): Notify inferior_created.
7081         * Makefile.in (inftarg.o, corelow.o): Update dependencies.
7082
7083 2004-05-25  Andrew Cagney  <cagney@gnu.org>
7084
7085         * target.h (struct target_ops): Add from_tty to
7086         to_create_inferior.
7087         (target_create_inferior, find_default_create_inferior): Update.
7088         * infcmd.c (run_command): Update.
7089         * wince.c (child_create_inferior): Update.
7090         * win32-nat.c (child_create_inferior): Update.
7091         * uw-thread.c (uw_thread_create_inferior): Update.
7092         * thread-db.c (thread_db_create_inferior): Update.
7093         * target.c (debug_to_create_inferior) 
7094         (find_default_create_inferior): Update.
7095         (maybe_kill_then_create_inferior): Update.
7096         * sol-thread.c (sol_thread_create_inferior): Update.
7097         * remote.c (extended_remote_async_create_inferior) 
7098         (extended_remote_create_inferior): Update.
7099         * remote-vx.c (vx_create_inferior): Update.
7100         * remote-st.c (st2000_create_inferior): Update.
7101         * remote-sim.c (gdbsim_create_inferior): Update.
7102         * remote-sds.c (sds_create_inferior): Update.
7103         * remote-rdp.c (remote_rdp_create_inferior): Update.
7104         * remote-rdi.c (arm_rdi_create_inferior): Update.
7105         * remote-m32r-sdi.c (m32r_create_inferior): Update.
7106         * remote-e7000.c (e7000_create_inferior): Update.
7107         * procfs.c (procfs_create_inferior): Update.
7108         * ocd.c (ocd_create_inferior): Update.
7109         * ocd.h (ocd_create_inferior): Update.
7110         * nto-procfs.c (procfs_create_inferior): Update.
7111         * monitor.c (monitor_create_inferior): Update.
7112         * lin-lwp.c (lin_lwp_create_inferior): Update.
7113         * inftarg.c (child_create_inferior): Update.
7114         * hpux-thread.c (hpux_thread_create_inferior): Update.
7115         * gnu-nat.c (gnu_create_inferior): Update.
7116
7117 2004-05-25  Andrew Cagney  <cagney@gnu.com>
7118
7119         * MAINTAINERS: Update e-mail address.
7120
7121 2004-05-24  Randolph Chung  <tausq@debian.org>
7122
7123         * thread.c (info_threads_command, thread_apply_all_command)
7124         (thread_apply_command, thread_command, do_captured_thread_select):
7125         Remove HPUXHPPA-specific code.
7126
7127 2004-05-24  Randolph Chung  <tausq@debian.org>
7128
7129         * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
7130         unused symbols.
7131         * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
7132         references.
7133
7134 2004-05-24  Joel Brobecker  <brobecker@gnat.com>
7135
7136         * infcmd.c (kill_if_already_running): New function, extracted
7137         from run_command().
7138         (run_command): Replace extracted code by call to
7139         kill_if_already_running().
7140         (start_command): New function.
7141         (_initialize_infcmd): Add "start" command.
7142
7143 2004-05-24  Mark Kettenis  <kettenis@gnu.org>
7144
7145         Add OpenBSD/m88k support.
7146         * NEWS (New native configurations): Mention OpenBSD/m88k.
7147         * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
7148         config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
7149         * Makefile.in (m88k_tdep_h): New variable.
7150         (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
7151         (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
7152         * configure.host: Add m88*-*-openbsd*.
7153         * configure.tgt: Add m88*-*-openbsd*.
7154
7155 2004-05-24  Jim Blandy  <jimb@redhat.com>
7156
7157         * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
7158         to approve changes.
7159
7160 2004-05-24  Kevin Buettner  <kevinb@redhat.com>
7161
7162         * symtab.c (fixup_section): Search section table when lookup by
7163         name fails.
7164
7165 2004-05-24  Randolph Chung  <tausq@debian.org>
7166
7167         * hppa-tdep.c: Fix handling of 8-byte structures; they should not 
7168         be "small_struct".
7169
7170 2004-05-24  Mark Kettenis  <kettenis@gnu.org>
7171
7172         * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
7173         register number in regcache_raw_collect call.
7174         (m68kbsd_collect_fpregset): Likewise.
7175         * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
7176
7177         * regset.h (struct regset): Add back `regset' member.
7178
7179 2004-05-23  Mark Kettenis  <kettenis@gnu.org>
7180
7181         * configure.in: Check for td_pcb in `struct thread'.
7182         * configure, config.in: Regenerated.
7183
7184         * dpx2-nat.c: Remove file.
7185         * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
7186         (dpx2-nat.o): Remove dependencies.
7187
7188         * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
7189         <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
7190         (amd64obsd_supply_pcb): New function.
7191         (_initialize_amd64obsd_nat): Enable libkvm interface.
7192         * Makefile.in (amd64obsd-nat.o): Update dependencies.
7193         * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
7194         (LOADLIBES): New variable.
7195
7196         * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
7197         <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
7198         (sparc32nbsd_supply_pcb): New function.
7199         (_initialize_sparcnbsd_nat): Enable libkvm interface.
7200         * Makefile.in (sparcnbsd-nat.o): Update dependencies.
7201         * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
7202         (LOADLIBES): New variable.
7203
7204 2004-05-22  Mark Kettenis  <kettenis@gnu.org>
7205
7206         * bsd-kvm.c, bsd-kvm.h: New files.
7207         * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
7208         "bsd-kvm.h".
7209         (i386fbsd_supply_pcb): New function.
7210         * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
7211         (i386fbsd-nat.o): Update dependencies.
7212         (bsd_kvm_h): New variable.
7213         (bsd-kvm.o): New dependency.
7214         * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
7215         (LOADLIBES): New variable.
7216
7217         * regset.c: Tweak comment.
7218         (regset_alloc): Remove descr argument.  Use GDBARCH_OBSTACK_ZALLOC
7219         macro.
7220         * regset.h: Update copyright year.
7221         (struct regset): Remove `descr' member, add `gdbarch' member.
7222         (regset_alloc): Adjust prototype and comment.
7223         * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
7224         (i386_supply_fpregset): Likewise.
7225         (i386_regset_from_core_section): Update call to regset_alloc.
7226         * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
7227         REGSET->arch.
7228         (i386obsd_aout_regset_from_core_section): Update call to
7229         regset_alloc.
7230         * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
7231         REGSET->arch.
7232         (i386nbsd_aout_regset_from_core_section): Update call to
7233         regset_alloc.
7234         * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
7235         REGSET->arch.
7236         (amd64_regset_from_core_section): Update call to regset_alloc.
7237         * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
7238         REGSET->arch.
7239         (amd64obsd_regset_from_core_section): Update call to regset_alloc.
7240         * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
7241         &sparc32nbsd_gregset in sparc32_supply_gregset call.
7242         (sparc32nbsd_init_abi): Update call to regset_alloc.
7243         * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
7244         &sparc64obsd_core_gregset in sparc64_supply_gregset call.
7245         (sparc64obsd_init_abi): Update call to regset_alloc.
7246         * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
7247         &sparc64nbsd_gregset in sparc64_supply_gregset call.
7248         (sparc64nbsd_init_abi): Update call to regset_alloc.
7249         * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
7250         &sparc64fbsd_gregset in sparc64_supply_gregset call.
7251         (sparc64fbsd_init_abi): Update call to regset_alloc.
7252
7253 2004-05-22  Jim Blandy  <jimb@redhat.com>
7254
7255         * ppc-tdep.h (spe_register_p): New declaration.
7256         (struct gdbarch_tdep): New members: ppc_acc_regnum and
7257         ppc_spefscr_regnum.
7258         * rs6000-tdep.c (spe_register_p): New function.
7259         (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
7260         spefscr.
7261         (rs6000_gdbarch_init): Initialize the new members of the tdep
7262         structure.
7263
7264 2004-05-21  Jim Blandy  <jimb@redhat.com>
7265
7266         * ppc-linux-nat.c (fetch_register): Move code back to be next
7267         to the comment that describes it.  (Moved code, instead of
7268         comment, for symmetry with store_register.)
7269
7270         Allocate regset structures in the gdbarch's obstack, not using
7271         xmalloc.
7272         * regset.c (regset_alloc): Renamed from regset_xmalloc.
7273         Add 'arch' argument.  Allocate the regset on arch's obstack, not
7274         using xmalloc.
7275         * regset.h (regset_alloc): Update declaration.
7276         * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
7277         gdbarch argument.
7278         * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7279         * i386-tdep.c (i386_regset_from_core_section): Same.
7280         * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7281         * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7282         * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7283         * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7284         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7285         * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7286
7287 2004-05-21  Joel Brobecker  <brobecker@gnat.com>
7288
7289         * config/djgpp/fnchange.lst: Undo previous change, was useless.
7290
7291 2004-05-21  Jim Blandy  <jimb@redhat.com>
7292
7293         * dwarf2expr.c (execute_stack_op): Add 'break' statements after
7294         cases for DW_OP_div and DW_OP_shr.  (Thanks to Reva Cuthbertson.)
7295
7296 2004-05-20  Jim Blandy  <jimb@redhat.com>
7297
7298         * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
7299
7300 2004-05-20  Mark Kettenis  <kettenis@gnu.org>
7301
7302         * regset.h: Make prototype const-correct.
7303         * regset.c (regset_xmalloc): Make const-correct.
7304
7305 2004-05-20  Paul N. Hilfinger  <hilfinger@gnat.com>
7306
7307         * symtab.h (SYMBOL_SEARCH_NAME): New definition.
7308         (SYMBOL_MATCHES_SEARCH_NAME): New definition.
7309         (symbol_search_name): Declare.
7310         
7311         * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
7312         (iter_name_next_hashed): Ditto.
7313         (iter_name_next_linear): Ditto.
7314         (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
7315
7316         * symtab.c (lookup_partial_symbol): Assume symbols ordered by 
7317         search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
7318         (symbol_search_name): New function.
7319         
7320         * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
7321         
7322         * minsyms.c (build_minimal_symbol_hash_tables): Change
7323         test for adding to demangled hash table to check for difference
7324         between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
7325         
7326 2004-05-19  Jim Blandy  <jimb@redhat.com>
7327
7328         Use a constructor function to create regset structures.
7329         * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
7330         (struct regset): Use supply_regset_ftype.  Add new
7331         'collect_regset' member.
7332         (regset_xmalloc): New declaration.
7333         * regset.c: New file.
7334         * am64-tdep.c (amd64_regset_from_core_section): Use
7335         regset_xmalloc to construct regset structures.
7336         * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7337         * i386-tdep.c (i386_regset_from_core_section): Same.
7338         * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7339         * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7340         * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7341         * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7342         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7343         * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7344         * Makefile.in (COMMON_OBS): Add regset.o.
7345         (regset.o): New rule.
7346
7347 2004-05-19  Joel Brobecker  <brobecker@gnat.com>
7348
7349         * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
7350         and pthread_cond_wait.c.
7351
7352 2004-05-18  Jim Blandy  <jimb@redhat.com>
7353
7354         * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
7355         before the mach-specific switch, and then let the individual cases
7356         override the defaults, rather than leaving them uninitialized
7357         until the switch and then setting them in each case.
7358
7359 2004-05-18  Randolph Chung  <tausq@debian.org>
7360
7361         * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
7362         millicode functions.
7363
7364 2004-05-18  Randolph Chung  <tausq@debian.org>
7365
7366         * somsolib.c (som_solib_remove_inferior_hook): Make all the size
7367         references to dld_flags_buffer consistent.
7368
7369 2004-05-18  Randolph Chung  <tausq@debian.org>
7370
7371         * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
7372         it for unwinding the stack.
7373
7374 2004-05-18  Randolph Chung  <tausq@debian.org>
7375
7376         * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
7377         Undefine these so we can overide them using gdbarch.
7378
7379 2004-05-18  Randolph Chung <tausq@debian.org>
7380
7381         * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
7382         handling for 64-bit HPUX (elf).
7383
7384 2004-05-18  Daniel Jacobowitz  <dan@debian.org>
7385
7386         * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
7387         constants.
7388         * amd64-tdep.c (amd64_skip_prologue): Likewise.
7389         * ia64-tdep.c (examine_prologue): Likewise.
7390         * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
7391         * v850-tdep.c (v850_fix_call_dummy): Likewise.
7392
7393 2004-05-18  Mark Kettenis  <kettenis@gnu.org>
7394
7395         * vax-tdep.c (vax_return_value): Implement
7396         RETURN_VALUE_ABI_RETURNS_ADDRESS.
7397
7398 2004-05-17  Mark Kettenis  <kettenis@gnu.org>
7399
7400         * vax-tdep.c (vax_return_value): Fix typo.
7401
7402 2004-05-17  Andrew Cagney  <cagney@redhat.com>
7403
7404         * MAINTAINERS: Mark Salter was also responsible for
7405         testsuite/config/
7406
7407         * NEWS: Mention signal fixes.
7408
7409 2004-05-17  Randolph Chung  <tausq@debian.org>
7410
7411         * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
7412         check to see if we are unwinding an export stub.  Export stubs clobber
7413         the %rp in the call path and stores the original rp in a stack slot.
7414
7415 2004-05-17  Jim Blandy  <jimb@redhat.com>
7416
7417         * MAINTAINERS: Update address for J.T. Conklin.
7418
7419 2004-05-17  Randolph Chung  <tausq@debian.org>
7420
7421         * hppa-tdep.c: Remove superfluous #include's.
7422         * Makefile.in (hppa-tdep.o): Update dependencies.
7423
7424 2004-05-17  Randolph Chung  <tausq@debian.org>
7425
7426         * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
7427         (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
7428         (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
7429         (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
7430         (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
7431         Remove static function declarations.
7432
7433 2004-05-17  Mark Kettenis  <kettenis@gnu.org>
7434
7435         * alphabsd-nat.c: Update copyright year.
7436         (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
7437
7438         * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
7439         and M68K_A2_REGNUM.
7440
7441         * m68k-tdep.c (m68k_svr4_return_value): Implement
7442         RETURN_VALUE_ABI_RETURNS_ADDRESS.
7443
7444 2004-05-16  Mark Kettenis  <kettenis@gnu.org>
7445
7446         * sol-thread.c Update copyright year.  Fix various coding
7447         standards violations.  Tweak a few comments.
7448         (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
7449         Delete prototypes.
7450
7451 2004-05-15  Randolph Chung  <tausq@debian.org>
7452
7453         * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
7454         as pointer instead of array reference since HPUX compiler does
7455         not accept unsized array arguments.
7456         * somsolib.c (dld_flags_buffer): Use constant array size.
7457
7458 2004-05-15  Mark Kettenis  <kettenis@gnu.org>
7459
7460         * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
7461         offset with decimal offset.
7462         (amd64obsd_sigcontext_addr): Return correct address for entire
7463         signal trampoline.
7464
7465         * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
7466         instead of get_frame_base.
7467
7468         * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
7469         (fill_gregset): Use regcache_raw_collect.
7470
7471         * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
7472         ppcobsd-tdep.c.
7473
7474         * config/sparc/tm-nbsd64.h: Remove file.
7475         * config/tm-sunos.h: Remove file.
7476
7477 2004-05-15  Joel Brobecker  <brobecker@gnat.com>
7478
7479         * rs6000-tdep.c (store_param_on_stack_p): New function,
7480         an improved version of some code extracted from skip_prologue().
7481         (skip_prologue): Use store_param_on_stack_p() to detect
7482         instructions saving a parameter on the stack. Detect when r0
7483         is used to save a parameter.
7484         Do not mark "li rx, SIMM" instructions as part of the prologue,
7485         unless the following instruction is also part of the prologue.
7486
7487 2004-05-14  Andrew Cagney  <cagney@redhat.com>
7488
7489         * infrun.c (handle_inferior_event): Simplify
7490         STEP_OVER_UNDEBUGGABLE.
7491
7492         * infrun.c (handle_step_into_function): Delete function.
7493         (handle_inferior_event): Inline calls to
7494         handle_step_into_function.
7495
7496 2004-05-14  Jerome Guitton  <guitton@gnat.com>
7497
7498         * rs6000-nat.c: Fix a comment.
7499
7500 2004-05-12  David Anderson <davea@sgi.com>
7501
7502         Committed by Jim Blandy <jimb@redhat.com>:
7503         * regcache.c (struct regcache_descr): fix comment spelling.
7504
7505 2004-05-13  J. Brobecker  <brobecker@gnat.com>
7506
7507         * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
7508         Fixes a link link failure.
7509
7510 2004-05-13  J. Brobecker  <brobecker@gnat.com>
7511
7512         * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
7513         error that was causing the build to fail.
7514
7515 2004-05-13  J. Brobecker  <brobecker@gnat.com>
7516
7517         * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
7518         * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
7519
7520 2004-05-13  Andrew Cagney  <cagney@redhat.com>
7521
7522         * infrun.c (handle_inferior_event): Check for
7523         STEP_OVER_UNDEBUGGABLE after signal trampolines and function
7524         calls.  Update comments.
7525
7526 2004-05-13  Jim Blandy  <jimb@redhat.com>
7527
7528         * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
7529         (fetch_regs_user_thread, fetch_regs_kernel_thread)
7530         (store_regs_user_thread, store_regs_kernel_thread): Use
7531         ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
7532         * ppc-linux-nat.c (fill_gregset): Same.
7533         * ppc-linux-tdep.c (ppc_linux_supply_gregset) 
7534         (ppc_linux_sigtramp_cache): Same.
7535         * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg) 
7536         (ppcnbsd_sigtramp_cache_init): Same.
7537         * rs6000-nat.c (fetch_core_registers): Same.
7538         * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset) 
7539         (rs6000_frame_cache): Same.
7540
7541         * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
7542         (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
7543         of assuming that the gprs are numbered starting with zero.
7544         * ppc-linux-nat.c (fill_gregset): Same.
7545         * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
7546         * ppcnbsd-nat.c (getregs_supplies): Same.
7547         * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
7548         * rs6000-nat.c (fetch_core_registers): Same.
7549         * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
7550
7551 2004-05-07  Michael Snyder  <msnyder@redhat.com>
7552
7553         * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
7554         LOC_COMPUTED_ARG, and LOC_INDIRECT.
7555
7556 2004-05-13  Andrew Cagney  <cagney@redhat.com>
7557
7558         * infrun.c (handle_inferior_event): Use frame_unwind_id.
7559
7560 2004-05-13  Bryce McKinlay  <mckinlay@redhat.com>
7561
7562         * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
7563         base_address for shared libraries.
7564
7565 2004-05-13  Bryce McKinlay  <mckinlay@redhat.com>
7566
7567         * MAINTAINERS (write after approval): Add myself.       
7568
7569 2004-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
7570
7571         * breakpoint.c (bpstat_stop_status): Add new argument
7572         STOPPED_BY_WATCHPOINT.  Use it instead of testing
7573         target_stopped_data_address agaist 0 to check whether
7574         or not we stopped due to a hardware watchpoint.
7575         * breakpoint.h (bpstat_stop_status): Adapt prototype.
7576         * infrun.c (handle_inferior_event): Call bpstat_stop_status
7577         with new argument.
7578
7579 2004-05-12  Jim Blandy  <jimb@redhat.com>
7580
7581         * configure.in: When checking whether we should use the -bbigtoc
7582         option, don't forget to restore the original value of LDFLAGS.
7583         * configure: Regenerated.
7584
7585 2004-05-12  Andrew Cagney  <cagney@redhat.com>
7586
7587         * thread.c (load_infrun_state): Delete step_sp.
7588         * infrun.c (context_switch): Ditto.
7589         * inferior.h (step_sp): Ditto.
7590         * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
7591         * gdbthread.h (struct thread_info, save_infrun_state)
7592         (restore_infrun_state): Ditto.
7593
7594 2004-05-12  Ulrich Weigand  <uweigand@de.ibm.com>
7595
7596         * MAINTAINERS (write after approval): Add myself.
7597
7598 2004-05-12  Andrew Cagney  <cagney@redhat.com>
7599
7600         * infrun.c (adjust_pc_after_break): Rewrite decr logic,
7601         eliminate reference to step_sp.
7602         (struct execution_control_state, init_execution_control_state)
7603         (handle_inferior_event, keep_going): Delete update_step_sp and
7604         step_sp.
7605         * infcmd.c (step_sp): Note that variable is unused.
7606
7607 2004-05-11  Andrew Cagney  <cagney@redhat.com>
7608
7609         * infrun.c (step_over_function): Delete function.
7610         (handle_step_into_function): Use insert_step_resume_breakpoint.
7611         (insert_step_resume_breakpoint): Fix assertion.
7612
7613 2004-05-11  Nick Roberts  <nickrob@gnu.org>
7614
7615         * utils.c (defaulted_query): Just use the normal query input type
7616         when printing the annotations.
7617
7618 2004-05-11  Andrew Cagney  <cagney@redhat.com>
7619
7620         * infrun.c (handle_inferior_event): Simplify code handling
7621         step-into or return-from a signal trampoline.
7622
7623 2004-05-11  Andrew Cagney  <cagney@redhat.com>
7624
7625         * ppcnbsd-tdep.c: Include "gdb_assert.h".
7626         * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
7627
7628 2004-05-10  Jim Blandy  <jimb@redhat.com>
7629
7630         * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
7631         with a call to internal_error.
7632
7633         * ppc-tdep.h (struct gdbarch_tdep): Change definition of
7634         ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
7635         processor variant lacks those registers.
7636         (ppc_floating_point_unit_p): Change description to make it clear
7637         that this returns info about the ISA, not the ABI.
7638         * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
7639         return true or false by checking tdep->ppc_fp0_regnum and
7640         tdep->ppc_fpscr_regnum.  The original code replicated the BFD
7641         arch/mach switching done in rs6000_gdbarch_init; it's better to
7642         keep that logic there, and just check the results here.
7643         (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
7644         tdep->ppc_fpscr_regnum to -1 to indicate that we have no
7645         floating-point registers.
7646         (ppc_supply_fpregset, ppc_collect_fpregset)
7647         (rs6000_push_dummy_call, rs6000_extract_return_value)
7648         (rs6000_store_return_value): Assert that we have floating-point
7649         registers.
7650         (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
7651         (rs6000_frame_cache): Don't note the locations at which
7652         floating-point registers were saved if we have no fprs.
7653         * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
7654         registers.
7655         (fetch_regs_user_thread, fetch_regs_kernel_thread)
7656         (store_regs_user_thread, store_regs_kernel_thread): Only call
7657         supply_fprs / fill_fprs if we actually have floating-point
7658         registers.
7659         (special_register_p): Check ppc_fpscr_regnum before matching
7660         against it.
7661         (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
7662         supply / collect fpscr if we don't have it.
7663         * ppc-bdm.c: #include "gdb_assert.h".
7664         (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
7665         have floating-point registers, since I can't test this code on
7666         FP-free systems to adapt it.
7667         * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
7668         fpscr and floating point register numbers if they don't exist.
7669         (fetch_register): Assert that we have floating-point registers
7670         before we reach the code that handles them.
7671         (store_register): Same.  And use tdep instead of calling
7672         gdbarch_tdep again.
7673         (fill_fpregset): Don't try to collect FP registers and fpscr if we
7674         don't have them.
7675         (ppc_linux_sigtramp_cache): Don't record the saved locations of
7676         fprs and fpscr if we don't have them.
7677         (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
7678         don't have them.
7679         * ppcnbsd-nat.c: #include "gdb_assert.h".
7680         (getfpregs_supplies): Assert that we have floating-point registers.
7681         * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
7682         * ppcobsd-tdep.c: #include "gdb_assert.h".
7683         (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
7684         have floating-point registers.
7685         * rs6000-nat.c (regmap): Don't match against the fpscr and
7686         floating point register numbers if they don't exist.
7687         (fetch_inferior_registers, store_inferior_registers,
7688         fetch_core_registers): Only fetch / store / supply the
7689         floating-point registers and the fpscr if we have them.
7690         * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
7691         (ppcobsd-tdep.o): Update dependencies.
7692         
7693 2004-05-10  Andrew Cagney  <cagney@redhat.com>
7694
7695         * infrun.c (through_sigtramp_breakpoint): Delete variable.
7696         (context_switch): Do not switch through_sigtramp_breakpoint.
7697         * gdbthread.h (save_infrun_state, load_infrun_state)
7698         (struct thread_info): Delete through_sigtramp_breakpoint parameter
7699         and structure member.
7700         * thread.c (load_infrun_state, save_infrun_state): Update.
7701
7702 2004-05-10  Mark Kettenis  <kettenis@gnu.org>
7703
7704         * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
7705
7706 2004-05-10  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
7707
7708         * acinclude.m4: Quote macro names being defined by AC_DEFUN 
7709         throughout.
7710         * aclocal.m4: Regenerate.
7711
7712 2004-05-10  Nathan J. Williams  <nathanw@wasabisystems.com>
7713
7714         * alphanbsd-tdep.c: Fix include of "gdb_string.h".
7715
7716 2004-05-10  Andrew Cagney  <cagney@redhat.com>
7717
7718         * infrun.c (check_sigtramp2): Delete function.
7719         (handle_inferior_event): When single stepping, and taking a
7720         signal, set a breakpoint at the signal return address.  Delete
7721         redundant calls to check_sigtramp2.
7722         (insert_step_resume_breakpoint): New function.
7723         (through_sigtramp_breakpoint, handle_inferior_event)
7724         (follow_exec, wait_for_inferior, fetch_inferior_event)
7725         (currently_stepping, keep_going): Delete most uses of
7726         through_sigtramp_breakpoint, not that it should be deleted.
7727         (delete_breakpoint_current_contents): Delete function.
7728
7729 2004-05-10  Randolph Chung  <tausq@debian.org>
7730
7731         * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
7732         target.
7733         * config/pa/tm-linux.h: New file.
7734
7735 2004-05-10  Daniel Jacobowitz  <drow@mvista.com>
7736
7737         * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
7738         of prefixes.  Don't print the prefix twice in the CLI.
7739
7740 2004-05-10  Jim Blandy  <jimb@redhat.com>
7741
7742         * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
7743         collect all the gprs.
7744
7745         * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
7746         loop collecting gprs.
7747
7748 2004-05-09  Andrew Cagney  <cagney@redhat.com>
7749
7750         * remote-vx.c (net_step): Delete step-range code.
7751         * remote.c (remote_resume, init_all_packet_configs)
7752         (set_remote_protocol_E_packet_cmd)
7753         (show_remote_protocol_E_packet_cmd)
7754         (remote_protocol_E, show_remote_cmd, _initialize_remote)
7755         (remote_protocol_e, set_remote_protocol_e_packet_cmd)
7756         (show_remote_protocol_e_packet_cmd): Ditto.
7757
7758 2004-05-09  Mark Kettenis  <kettenis@gnu.org>
7759
7760         * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
7761
7762         * hppa-tdep.h: Update copyright year.
7763         (struct trad_frame_saved_reg): Add opaque declaration.
7764
7765         * amd64-tdep.c (amd64_return_value): Implement
7766         RETURN_VALUE_ABI_RETURNS_ADDRESS.
7767
7768         * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
7769         (m68k_value_to_register): New functions.
7770         (m68k_gdbarch_init): Set convert_register_p, register_to_value and
7771         value_to_register.
7772
7773         * defs.h (enum return_value_convention): Add
7774         RETURN_VALUE_ABI_RETURNS_ADDRESS and
7775         RETURN_VALUE_ABI_PRESERVES_ADDRESS.
7776         * infcmd.c (legacy_return_value): New function.
7777         (print_return_value): Rwerite to implement
7778         RETURN_VALUE_ABI_RETURNS_ADDRESS.
7779         * values.c (using_struct_return): Check for inequality to
7780         RETURN_VALUE_REGISTER_CONVENTION instead of equality to
7781         RETURN_VALUE_STRUCT_CONVENTION.
7782         * i386-tdep.c (i386_return_value): Implement
7783         RETURN_VALUE_ABI_RETURNS_ADDRESS.
7784
7785         * vax-tdep.c: Tweak comments.  Reorder include files.  Don't
7786         include "symtab.h", "opcode/vax.h" and "inferior.h".
7787         (vax_skip_prologue): Replace calls to read_memory_integer by calls
7788         to read_memory_unsigned_integer.
7789         (vax_gdbarch_init): Reorder.
7790         (_initialize_vax_tdep): Spell out prototype.
7791         * Makefile.in (vax-tdep.o): Update dependencies.
7792
7793 2004-05-08  Andrew Cagney  <cagney@redhat.com>
7794
7795         * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
7796         * target.c (target_detach, target_disconnect): Ditto.
7797
7798         * infcall.c (call_function_by_hand): When no
7799         DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
7800         * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
7801         DEPRECATED_SAVE_DUMMY_FRAME_TOS.
7802         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7803         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7804         
7805         * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
7806         * gdbarch.h, gdbarch.c: Re-generate.
7807         * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7808         deprecated_fix_call_dummy.
7809         * v850-tdep.c (v850_gdbarch_init): Ditto.
7810         * infcall.c (call_function_by_hand): Do not call
7811         DEPRECATED_FIX_CALL_DUMMY.
7812
7813         * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
7814         (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
7815         * gdbarch.h, gdbarch.c: Re-generate.
7816         * arm-linux-tdep.c (arm_linux_call_dummy_words)
7817         (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
7818         deprecated_sizeof_call_dummy_words.
7819         * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
7820         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7821         * v850-tdep.c (v850_gdbarch_init): Ditto.
7822         * sh64-tdep.c (sh64_gdbarch_init): Ditto.
7823         * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
7824         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7825         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7826         * arch-utils.h (legacy_call_dummy_words)
7827         (legacy_sizeof_call_dummy_words): Delete declarations.
7828         * arch-utils.c (legacy_call_dummy_words)
7829         (legacy_sizeof_call_dummy_words): Delete variables.
7830
7831         * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
7832         * gdbarch.h, gdbarch.c: Re-generate.
7833         * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
7834         * infcall.c (call_function_by_hand): Eliminate call to
7835         DEPRECATED_PUSH_DUMMY_FRAME.
7836         * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
7837         push_dummy_frame.
7838         (ns32k_push_dummy_frame): Delete function.
7839
7840         * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7841         deprecated_call_dummy_breakpoint_offset or
7842         deprecated_call_dummy_start_offset.
7843         * dummy-frame.c, arm-tdep.c: Update comments.
7844         * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
7845         (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
7846         * gdbarch.h, gdbarch.c: Re-generate.
7847         
7848         * infcall.c (legacy_push_dummy_code): Delete function.
7849         (push_dummy_code): Delete call.
7850
7851         * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
7852         * gdbarch.h, gdbarch.c: Re-generate.
7853         * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
7854         DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
7855         * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
7856         * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
7857
7858         * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
7859         (struct frame_info): Delete opaque declaration.
7860         * breakpoint.c (deprecated_frame_in_dummy): Delete function.
7861         * frame.c (get_frame_type): Delete call.
7862
7863         * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
7864         pc_in_call_dummy.
7865         * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
7866         * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
7867
7868 2004-05-08  Mark Kettenis  <kettenis@gnu.org>
7869
7870         * alphanbsd-tdep.c: Include "gdb_string.h".
7871         * armnbsd-tdep.c: Update copyright year.
7872         Include "gdb_string.h".
7873         * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
7874         dependencies.
7875
7876         * delta68-nat.c: Remove file.
7877         * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
7878         (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
7879         * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
7880         (delta68-nat.o): Remove dependency.
7881
7882         * m68k-tdep.c (m68k_frameless_function_invocation): Remove
7883         function.
7884         (m68k_gdbarch_init): Don't set
7885         deprecated_frameless_function_invocation.
7886
7887 2004-05-07  Randolph Chung  <tausq@debian.org>
7888
7889         * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use 
7890         read_memory_nobpt for code reading when doing frame unwinding.
7891         * hppa-linux-tdep.c (insns_match_pattern): Likewise.
7892
7893 2004-05-07  Randolph Chung  <tausq@debian.org>
7894
7895         * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
7896         instead of sp, handle sigaltstack case.
7897         (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to 
7898         hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
7899         signal handler and not that of the caller.
7900         (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
7901         hppa_linux_sigtramp_find_sigcontext.
7902
7903 2004-05-07  Randolph Chung  <tausq@debian.org>
7904
7905         * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
7906         hppa-linux-nat.c.
7907         (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
7908         * hppa-linux-nat.c (fetch_register, store_register): Define.
7909         (fetch_inferior_registers, store_inferior_registers): Define.
7910         (supply_gregset): Add comment and clean up some unneeded code.
7911         (fill_gregset): Add comment and fix so that it saves registers in
7912         the right place in the gregset.
7913         (fill_fpregset): Fix buffer overrun problem.
7914         * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
7915
7916 2004-05-07  Randolph Chung  <tausq@debian.org>
7917
7918         * hppa-tdep.c (hppa_frame_prev_register_helper): New function to 
7919         do common handling of the pcoqt register.
7920         (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
7921         to use helper function.
7922         (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
7923         (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
7924         (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
7925         generic fallback unwinder when all else fails.
7926         (hppa_gdbarch_init): Add fallback sniffer.
7927         * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
7928         * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
7929         to use helper function.
7930
7931 2004-05-08  Joel Brobecker  <brobecker@gnat.com>
7932
7933         * config/djgpp/fnchange.lst: Add translation rules for
7934         gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
7935
7936 2004-05-08  Mark Kettenis  <kettenis@gnu.org>
7937
7938         * frame.c (get_prev_frame_1): Work around GCC bug.
7939         * frame.h: Add comment about GCC bug.
7940
7941 2004-05-07  Andrew Cagney  <cagney@redhat.com>
7942
7943         * observer.c: Include "commands.h" and "gdbcmd.h".
7944         (observer_debug, _initialize_observer): Add the
7945         command "set/show debug observer".
7946         * observer.sh: When observer debugging, log notify calls.
7947         * Makefile.in (observer.o): Update dependencies.
7948
7949 2004-05-07  Jason Molenda  (jmolenda@apple.com)
7950
7951         * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
7952
7953 2004-05-07  Jim Blandy  <jimb@redhat.com>
7954
7955         * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
7956         fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
7957         to recognize gpr regnums, instead of assuming that
7958         tdep->ppc_fp0_regnum marks the end of the general-purpose
7959         registers.
7960
7961         * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
7962         the given architecture has floating-point registers. 
7963
7964 2004-05-07  Andrew Cagney  <cagney@redhat.com>
7965
7966         * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
7967         macro defined to 1.
7968         * gdbarch.h, gdbarch.c: Re-generate.
7969         * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7970         deprecated_use_generic_dummy_frames.
7971
7972 2004-05-07  Brian Ford  <ford@vss.fsi.com>
7973
7974         * NEWS: Mention Cygwin DWARF 2 support.
7975
7976 2004-05-07  Andrew Cagney  <cagney@redhat.com>
7977
7978         * objfiles.h (struct entry_info): Delete unused fields
7979         deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
7980         * objfiles.c (init_entry_point_info, objfile_relocate): Update.
7981         * mipsread.c (mipscoff_symfile_read): Update.
7982         * mdebugread.c (parse_partial_symbols): Update.
7983         * dwarfread.c (read_file_scope): Update.
7984         * dwarf2read.c (read_file_scope): Update.
7985         * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
7986         * coffread.c (complete_symtab): Update.
7987
7988 2004-05-07  Mark Kettenis  <kettenis@gnu.org>
7989
7990         * infcall.c (_initialize_infcall): Fix typo.
7991
7992 2004-05-07  Andrew Cagney  <cagney@redhat.com>
7993
7994         * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
7995         * command.h (add_setshow_zinteger_cmd): Declare.
7996
7997 2004-05-06  Randolph Chung  <tausq@debian.org>
7998
7999         * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
8000         (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
8001         (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
8002         (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
8003         (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
8004         (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
8005         (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM 
8006         definitions ...
8007         * hppa-tdep.h: ... to here, with HPPA_ prefix.
8008         * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
8009         * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
8010         (hppa64_hpux_frame_find_saved_regs_in_sig)
8011         (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
8012         * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
8013         * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
8014         (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
8015         (hppa_linux_sigtramp_frame_prev_register): Likewise.
8016         * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
8017         (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
8018         (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
8019         (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
8020         (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
8021         (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
8022         (hppa32_register_type, hppa_cannot_store_register)
8023         (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
8024         * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
8025         * hpread.c (hpread_process_one_debug_symbol): Likewise.
8026         * pa64solib.c (pa64_solib_have_load_event)
8027         (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
8028         (pa64_solib_unloaded_library_pathname): Likewise.
8029         * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
8030         (som_solib_library_pathname): Likewise.
8031
8032 2004-05-05  Jim Ingham  <jingham@apple.com>
8033         
8034         * breakpoint.c (create_breakpoints): Copy the ignore count and
8035         thread id over from the pended breakpoint to the actual
8036         breakpoint.
8037         
8038 2004-05-05  Andrew Cagney  <cagney@redhat.com>
8039
8040         * gdbarch.sh (PARM_BOUNDARY): Delete.
8041         gdbarch.h, gdbarch.c: Re-generate.
8042         * valops.c (PARM_BOUNDARY): Delete macro.
8043         (value_push): Delete PARM_BOUNDARY code.
8044         * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
8045
8046 2004-05-04  Jim Blandy  <jimb@redhat.com>
8047
8048         * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
8049         Don't assume that the gprs, fprs, and UISA sprs are
8050         contiguous, start at register number zero, and end with fpscr.
8051         Instead, use the numbers from the tdep structure.
8052
8053         * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
8054         should no longer be used in code specific to the RS6000 and its
8055         derivatives.
8056         * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
8057         * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
8058         tdep->ppc_fp0_regnum.
8059         (ppc_supply_fpregset, ppc_collect_fpregset)
8060         (rs6000_push_dummy_call, rs6000_extract_return_value)
8061         (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
8062         (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
8063         FP0_REGNUM. 
8064         * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
8065         (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
8066         Same.
8067         * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
8068         bdm_ppc_store_registers): Same.
8069         * ppc-linux-nat.c (ppc_register_u_addr, fetch_register) 
8070         (store_register, fill_fpregset): Same.
8071         * ppc-linux-tdep.c (ppc_linux_sigtramp_cache) 
8072         (ppc_linux_supply_fpregset): Same.
8073         * ppcnbsd-nat.c (getfpregs_supplies): Same.
8074         * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
8075         Same.
8076         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
8077         do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
8078         ppc64_sysv_abi_return_value): Same.
8079         * rs6000-nat.c (regmap, fetch_inferior_registers) 
8080         (store_inferior_registers, fetch_core_registers): Same.
8081
8082 2004-05-01  Mark Kettenis  <kettenis@gnu.org>
8083
8084         * m68knbsd-nat.c: Remove file.
8085         * m68knbsd-tdep.c: Remove file.
8086         * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
8087         dependencies.
8088         * configure.host: Add m68k-*-netbsdelf*.
8089         * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
8090         * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
8091         solib.o and solib-sunos.o.  Remove m68knbsd-nat.o, corelow.o.
8092         (XM_FILE): Remove.
8093         * config/m68k/nbsdelf.mh: New file.
8094         * config/m68k/nbsd.mt: New file.
8095         * config/m68k/nbsdaout.mt: Remove file.
8096         * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
8097         <machine/vmparam.h> and "m68k/tm-m68k.h".  Include "solib.h".
8098         (BPT_VECTOR, STACK_END_ADDR): Remove defines.
8099         (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
8100         (use_struct_convention): Remove prototype.
8101         (USE_STRUCT_CONVENTION): Remove define.
8102         * config/m68k/xm-nbsd.h: Remove file.
8103
8104 2004-05-04  Michael Snyder  <msnyder@redhat.com>
8105
8106         * m68k-tdep.c (m68k_gdbarch_init): Default to using 
8107         reg_struct_return method (as gcc usually does for cross targets).
8108
8109 2004-05-04  Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8110
8111         Committed by Andrew Cagney.
8112         * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
8113         alignment padding when accessing ucontext struct members.
8114
8115 2004-05-04  Jim Blandy  <jimb@redhat.com>
8116
8117         * config/ppc-tdep.h (struct gdbarch_tdep): Delete
8118         'ppc_gplast_regnum' member.
8119         (ppc_num_gprs): New enum constant.
8120         * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
8121         and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
8122         * rs6000-nat.c (regmap, fetch_inferior_registers,
8123         store_inferior_registers): Same.
8124         * rs6000-tdep.c (e500_pseudo_register_read)
8125         (e500_pseudo_register_write): Same.
8126         (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
8127
8128         * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
8129         * ppc-tdep.h (ppc_num_fprs): New enum constant.
8130         * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
8131         store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
8132         FPLAST_REGNUM.
8133         * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8134         Same.
8135         * ppc-linux-nat.c (ppc_register_u_addr): Same.
8136         * rs6000-nat.c (regmap, fetch_inferior_registers) 
8137         (store_inferior_registers): Same.
8138
8139         * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
8140         with FPLAST_REGNUM.
8141
8142 2004-05-03  Joel Brobecker  <brobecker@gnat.com>
8143
8144         * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
8145         failure detected by recent versions of GCC.
8146         (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
8147         to be consistent with the usage in dwarf2_create_include_psymtab.
8148
8149 2004-05-03  Michael Snyder  <msnyder@redhat.com>
8150
8151         * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
8152         (heuristic_proc_start): Whitespace cleanup.
8153
8154 2004-05-04  Mark Kettenis  <kettenis@gnu.org>
8155
8156         * sun3-nat.c: Remove file.
8157         * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
8158         dependencies.
8159         (ALLDEPFILES): Remove sun3-nat.c.
8160         (sun3-nat.o): Remove dependencies.
8161
8162         * i386-interix-nat.c, i386-interix-tdep.c,
8163         config/i386/nm-interix.h, config/i386/interix.mh,
8164         config/i386/interix.mt: Remove files.
8165         * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
8166         dependencies.
8167
8168 2004-05-03  Mark Kettenis  <kettenis@gnu.org>
8169
8170         * m68k-tdep.h (struct gdbarch_tdep): Add member
8171         struct_value_regnum.
8172         (m68k_svr4_init_abi): New prototype.
8173         * m68k-tdep.c: Include "floatformat.h".  Add comment about all the
8174         different calling conventions.
8175         (m68k_extract_return_value): Remove code dealing with single-field
8176         structs.
8177         (m68k_store_return_value): Remove code dealing with single-field
8178         structs.  Correctly store return values of 5, 6, 7 or 8 bytes.
8179         (m68k_extract_struct_value_address): Remove function.
8180         (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
8181         (m68k_reg_struct_return_p, m68k_return_value)
8182         (m68k_svr4_return_value): New functions.
8183         (m68k_use_struct_convention): Remove function.
8184         (m68k_push_dummy_call): Use new struct_value_regnum member of
8185         `struct gdbarch_tdep' instead of hardcoded register number to
8186         store STRUCT_ADDR.
8187         (m68k_svr4_init_abi): New function.
8188         (m68k_gdbarch_init): Don't set extract_return_value,
8189         store_return_values, deprecated_extract_struct_value_address and
8190         use_struct_convention.  Set return_value instead.  Initialize new
8191         struct_value_regnum member of `struct gdbarch_tdep'.
8192         * m68klinux-tdep.c: Update copyright year.
8193         (m68k_linux_extract_return_value, m68k_linux_store_return_value)
8194         (m68k_linux_extract_struct_value_address): Remove function.
8195         (m68k_linux_init_abi): Don't set extract_return_value,
8196         store_return_values, deprecated_extract_struct_value_address and
8197         use_struct_convention.  Call m68k_svr4_init_abi but override the
8198         new struct_value_regnum member of `struct gdbarch_tdep'.
8199         * Makefile.in (m68k-tdep.o): Update dependencies.
8200
8201 2004-05-03  J. Brobecker  <brobecker@gnat.com>
8202
8203         * dwarf2read.c (line_header): Add new included_p field in
8204         field file_names.
8205         (partial_die_info): New field has_stmt_list. New field line_offset.
8206         (dwarf2_create_include_psymtab): New function.
8207         (dwarf2_build_include_psymtabs): New function.
8208         (add_file_name): Add forward declaration. Initialize new field.
8209         (dwarf_decode_lines): Add new parameter. Enhance this procedure
8210         to be able to determine the list of files included by the
8211         given unit, and build their associated psymtabs.
8212         (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
8213         files as well.
8214         (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
8215         (read_file_scope): Update call to dwarf_decode_lines.
8216         (read_partial_die): Handle DW_AT_stmt_list attributes.
8217
8218 2004-05-02  Michael Chastain  <mec.gnu@mindspring.com>
8219
8220         Unfix PR gdb/1626.
8221         * configure.in: Revert special case for osf5.*.
8222         * configure: Regenerate.
8223
8224 2004-05-02  Jim Blandy  <jimb@redhat.com>
8225
8226         Move the symbol-file-from-memory functions into their own file.
8227         * symfile-mem.c, symfile-mem.h: New files.
8228         * symfile.c (symbol_file_add_from_bfd): New function.
8229         (symbol_file_add): Call symbol_file_add_from_bfd.
8230         (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
8231         Moved to symfile-mem.c.
8232         (_initialize_symfile): Move definition of
8233         add-symbol-file-from-memory command to symfile-mem.c.
8234         * symfile.h (symbol_file_add_from_bfd): New declaration.
8235         * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
8236         * config/powerpc/linux.mt (TDEPFILES): Same.
8237         * Makefile.in (SFILES): Add symfile-mem.c.
8238         (symfile_mem_h): New variable.
8239         (HFILES_NO_SRCDIR): Add symfile-mem.h.
8240         (symfile-mem.o): New rule.
8241
8242 2004-05-01  Andrew Cagney  <cagney@redhat.com>
8243
8244         * breakpoint.c (insert_bp_location): Use get_frame_id, and
8245         frame_find_by_id instead of frame_relative_level.
8246         (do_enable_breakpoint): Ditto.
8247         * thread.c: Update copyright.
8248         (info_threads_command): Ditto, simplify.
8249
8250         * frame.c (deprecated_generic_get_saved_register): Delete
8251         function, moved to "xstormy16-tdep.c".
8252         * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
8253         deprecated_generic_get_saved_register from "frame.c".
8254         (xstormy16_frame_saved_register): Call
8255         xstormy16_get_saved_register.
8256         * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
8257         static.
8258         * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
8259         * frame.h (deprecated_generic_get_saved_register): Delete.
8260
8261 2004-05-01  Michael Chastain  <mec.gnu@mindspring.com>
8262
8263         * dwarfread.c: Update documentation on the state of dwarf-1.
8264
8265 2004-05-01  Andrew Cagney  <cagney@redhat.com>
8266
8267         * stack.c (select_frame_command): Delete call to
8268         frame_relative_level.
8269         (print_frame, set_backtrace_limit_command, backtrace_limit_info):
8270         Delete #if0 code.
8271         (frame_info): Do not print FRAMELESS.
8272         (print_block_frame_labels): Replace DEPRECATED_STREQ.
8273         (catch_info): Delete #if0 code.
8274
8275         * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
8276         * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
8277         of frame_relative_level.
8278         * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
8279         to SENTINEL_FRAME.
8280         * frame.h (enum frame_type): Add SENTINEL_FRAME.
8281         * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
8282         frame_relative_level.
8283
8284         * frame.h (deprecated_set_frame_type): Delete declaration.
8285         * frame.c (deprecated_set_frame_type): Delete function, update
8286         comments.
8287
8288         * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
8289         * gdbarch.h, gdbarch.c: Re-generate.
8290         * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
8291         (shnbsd_pc_in_sigtramp): Delete.
8292         * i386-interix-tdep.c (i386_interix_init_abi): Do not set
8293         pc_in_sigtramp.
8294         * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
8295         pc_in_sigtramp.
8296         * frame.h: Update comments.
8297         * ppc-linux-tdep.c: Update comments.
8298         * breakpoint.c (bpstat_what): Update comments.
8299
8300         * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
8301         m68klinux-tdep.o's dependencies, were previously added to
8302         m68klinux-nat.o.
8303
8304         * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
8305         * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
8306         * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
8307         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
8308         * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
8309
8310         * Makefile.in (m68klinux-nat.o): Update dependencies.
8311         * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8312         (m68k_linux_sigtramp_frame_cache)
8313         (m68k_linux_sigtramp_frame_this_id)
8314         (m68k_linux_sigtramp_frame_prev_register)
8315         (m68k_linux_sigtramp_frame_unwind)
8316         (m68k_linux_sigtramp_frame_sniffer)
8317         (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
8318         m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
8319         names, use trad-frame.h.
8320         * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
8321         (struct m68k_sigtramp_info): Delete.
8322         * m68k-tdep.c (m68k_sigtramp_frame_cache)
8323         (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
8324         (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
8325         (m68k_gdbarch_init): Delete all the sigtramp code, moved to
8326         "m68klinux-tdep.c".
8327
8328         * infrun.c (check_sigtramp2): Delete check for
8329         DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
8330
8331 2004-05-01  Mark Kettenis  <kettenis@gnu.org>
8332
8333         * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
8334
8335 2004-05-01  Andrew Cagney  <cagney@redhat.com>
8336
8337         * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8338         (frv_linux_sigtramp_frame_cache)
8339         (frv_linux_sigtramp_frame_this_id)
8340         (frv_linux_sigtramp_frame_prev_register)
8341         (frv_linux_sigtramp_frame_unwind)
8342         (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
8343         include "linux" in function and variable names, directly call
8344         frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
8345         the latest trad-frame code.
8346         (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
8347         not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
8348         * Makefile.in (frv-linux-tdep.o): Update dependencies.
8349         * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
8350         * frv-tdep.c (frv_sigtramp_frame_cache)
8351         (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
8352         (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
8353         frv-linux-tdep.c.
8354         (frv_gdbarch_init): Do not append a sigtramp sniffer.
8355         (struct gdbarch_tdep): Delete sigcontext_reg_addr.
8356         (frv_set_sigcontext_reg_addr): Delete function.
8357
8358         * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
8359         (DEPRECATED_SIGTRAMP_END): Delete.
8360         * gdbarch.h, gdbarch.c: Re-generate.
8361         * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
8362         * config/vax/tm-vaxbsd.h: Update copyright.
8363         (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8364         (DEPRECATED_IN_SIGTRAMP): Define.
8365         * config/m68k/tm-nbsd.h: Update copyright.
8366         (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8367         (DEPRECATED_IN_SIGTRAMP): Define.
8368
8369 2004-05-01  Mark Kettenis  <kettenis@gnu.org>
8370
8371         * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
8372         encondings.  Fixes PR gdb/1628.
8373
8374         * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
8375         DW_CFA_restore state without a matching DW_CFA_remember_state
8376         instead of aborting.  Fixes PR backtrace/1589.
8377
8378 2004-04-30  Joel Brobecker  <brobecker@gnat.com>
8379
8380         * MAINTAINERS: Add self as AIX maintainer.
8381         Update my e-mail address in write-after-approval section.
8382
8383 2004-04-30  Andrew Cagney  <cagney@redhat.com>
8384
8385         * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
8386         (legacy_get_prev_frame): Ditto.
8387
8388         * mips-tdep.c (mips_pc_in_sigtramp): Delete.
8389         (mips_gdbarch_init): Do not set pc_in_sigtramp.
8390         * mipsread.c (sigtramp_address): Delete extern variable.
8391         (mipscoff_new_init): Delete reference.
8392         * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
8393         (fixup_sigtramp): Delete function.
8394         * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
8395         (fixup_sigtramp): Delete declarations.
8396
8397         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
8398         deprecated_pc_in_sigtramp.
8399         (ppcnbsd_pc_in_sigtramp): Delete function.
8400
8401 2004-05-01  Mark Kettenis  <kettenis@gnu.org>
8402
8403         * config/m68k/nm-nbsd.h: Tweak comments.
8404         * config/m68k/nm-nbsdaout.h: Likewise.
8405
8406 2004-04-30  Andrew Cagney  <cagney@redhat.com>
8407
8408         * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
8409         legacy_pc_in_sigtramp.
8410         * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
8411
8412 2004-05-01  Mark Kettenis  <kettenis@gnu.org>
8413
8414         Add OpenBSD/m68k support.
8415         * NEWS (New native configurations): Mention OpenBSD/m68k.
8416         * m68kbsd-tdep.c: New file.
8417         * m68kbsd-nat.c: New file.
8418         * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
8419         (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
8420         * configure.host: Add m68k-*-openbsd.
8421         * configure.tgt: Add m68k-*-openbsd.
8422         * config/m68k/tm-obsd.h: New file.
8423         * config/m68k/obsd.mt: New file.
8424         * config/m68k/obsd.mh: New file.
8425         * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
8426         m68kbsd-tdep.c.
8427
8428 2004-04-30  Andrew Cagney  <cagney@redhat.com>
8429
8430         * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
8431         (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
8432
8433 2004-04-30  Mark Kettenis  <kettenis@gnu.org>
8434
8435         * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
8436         * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
8437
8438 2004-04-30  Brian Ford  <ford@vss.fsi.com>
8439
8440         Revert 2004-04-16 change.
8441         * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
8442         (i386_coff_init_abi): Remove.
8443         * i386-tdep.h (i386_coff_init_abi): Remove.
8444         * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
8445
8446 2004-04-30  Andrew Cagney  <cagney@redhat.com>
8447
8448         * blockframe.c (find_pc_partial_function): Delete use of
8449         DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
8450         DEPRECATED_SIGTRAMP_END.
8451
8452         * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
8453         * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
8454         * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
8455         * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
8456         * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
8457
8458         * defs.h (deprecated_inside_entry_file): Delete declaration.
8459         * blockframe.c (deprecated_inside_entry_file): Delete function.
8460         (legacy_frame_chain_valid): Delete call.
8461         * sh64-tdep.c (sh64_frame_chain): Delete call.
8462         * objfiles.h: Update comments.
8463         * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
8464         call.
8465         * frame.c (get_prev_frame): Delete call, update comments.
8466
8467 2004-04-30  Brian Ford  <ford@vss.fsi.com>
8468
8469         * MAINTAINERS (Write After Approval): Add myself.
8470
8471 2004-04-30  Andrew Cagney  <cagney@redhat.com>
8472
8473         * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
8474         * gdbarch.h, gdbarch.c: Re-generate.
8475         * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
8476         code.
8477
8478 2004-04-30  Andrew Cagney  <cagney@redhat.com>
8479
8480         * gdb-events.sh (selected_thread_changed)
8481         (selected_frame_level_changed, target_changed): Delete.
8482         * gdb-events.h, gdb-events.c: Re-generate.
8483         * valops.c (value_assign): Update.
8484         * stack.c (select_frame_command, up_silently_base)
8485         (down_silently_base): Update.
8486
8487 2004-04-29  Andrew Cagney  <cagney@redhat.com>
8488
8489         * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
8490         registers correctly.
8491         (print_gp_register_row, mips32_heuristic_proc_desc)
8492         (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
8493         (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
8494         references to mips_isa_regsize.
8495
8496 2004-04-29  Andrew Cagney  <cagney@redhat.com>
8497
8498         * mips-tdep.c (struct gdbarch_tdep): Delete
8499         mips_fp_register_double.
8500         (FP_REGISTER_DOUBLE): Delete macro, replace with test for
8501         mips_abi_regsize.
8502         (mips_gdbarch_init): Do not set mips_fp_register_double.
8503         (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
8504
8505 2004-04-29  Joel Brobecker  <brobecker@gnat.com>
8506
8507         Committed by Andrew Cagney.
8508         * infrun.c (handle_inferior_event): Rely on frame IDs to detect
8509         function calls.
8510
8511 2004-04-29  Andrew Cagney  <cagney@redhat.com>
8512
8513         * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
8514         gdbarch, use mips_abi, update callers.
8515         (mips_stack_argsize): Replace tdep parameter with gdbarch, use
8516         mips_abi_regsize, update callers.
8517         (struct gdbarch_tdep): Delete mips_default_stack_argsize and
8518         mips_default_abi_regsize.
8519         (mips_gdbarch_init): Do not set mips_default_stack_argsize and
8520         mips_default_abi_regsize.
8521
8522 2004-04-29  Andrew Cagney  <cagney@redhat.com>
8523
8524         * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
8525         (mips_abi_regsize_string): Rename mips_saved_regsize_string.
8526         (struct gdbarch_tdep): Rename mips_default_saved_regsize to
8527         mips_default_abi_regsize.
8528         (mips_isa_regsize): Rename mips_regisze.
8529         * mipsnbsd-tdep.c: Update.
8530         * mips-linux-tdep.c: Update.
8531         * irix5-nat.c: Update.
8532         * mips-tdep.h (mips_isa_regsize): Update.
8533
8534         * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
8535         Delete all disabled code.
8536         * gdb-events.h, gdb-events.c: Re-generate.
8537         
8538 2004-04-19  Jerome Guitton  <guitton@gnat.com>
8539             Mark Kettenis  <kettenis@gnu.org>
8540
8541         * i386-tdep.c (i386_skip_prologue): follow the last jump only if
8542         the function begins with a branch instruction.
8543
8544 2004-04-29  Mark Kettenis  <kettenis@gnu.org>
8545
8546         * i386-tdep.c: Fix spelling mistakes.
8547
8548 2004-04-28  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8549             Andrew Cagney  <cagney@redhat.com>
8550
8551         * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
8552         <sys/proc.h>.
8553         * acconfig.h: Provide default _KMEMUSER value.
8554         * config.in, configure: Re-generate.
8555         * NEWS: Mention fix.
8556
8557 2004-04-24  Randolph Chung  <tausq@debian.org>
8558
8559         * configure.host (hppa*-*-linux*): New target.
8560         * configure.tgt (hppa*-*-linux*): Likewise.
8561         * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
8562         gdbarch_init_osabi() call earlier so that osabi-specific frame
8563         unwinders can be registered first.
8564         * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
8565         hppa-linux-nat.c.
8566         * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
8567         (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
8568         * config/pa/linux.mh: New file.
8569         * config/pa/linux.mt: New file.
8570         * config/pa/nm-linux.h: New file.
8571         * config/pa/xm-linux.h: New file.
8572         * hppa-linux-nat.c: New file.
8573         * hppa-linux-tdep.c: New file.
8574
8575 2004-04-28  Randolph Chung  <tausq@debian.org>
8576
8577         * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
8578         return values.
8579         (hppa32_push_dummy_call): Fix small struct and floating point argument 
8580         passing, and make sure the stack frame is properly aligned.
8581
8582 2004-04-28  Andrew Cagney  <cagney@redhat.com>
8583
8584         * stack.c (print_stack_frame): Fix description.
8585
8586         * NEWS: Mention gdb/gdbserver/configure execute permission
8587         changed.  PR server/519.
8588
8589 2004-04-28  Andrew Cagney  <cagney@redhat.com>
8590
8591         * stack.c (print_stack_frame_stub): Delete declaration.
8592         (struct print_stack_frame_args, print_stack_frame)
8593         (print_frame_info, print_frame): Replace "source" with print what.
8594         Replace "print" with "print_level".  Replace "args" with
8595         "print_args".
8596         * frame.h (show_and_print_stack_frame, print_stack_frame)
8597         (print_frame_info): Update declarations.
8598         * stack.c (select_and_print_frame, frame_command)
8599         (current_frame_command, up_command, down_command): Update calls -
8600         use get_selected_frame, pass "enum print_what" for source, do not
8601         call frame_relative_level.
8602         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
8603         * remote-rdp.c (remote_rdp_open): Ditto.
8604         * remote-mips.c (common_open): Ditto.
8605         * remote-e7000.c (e7000_start_remote): Ditto.
8606         * ocd.c (ocd_start_remote): Ditto.
8607         * mi/mi-main.c (mi_cmd_exec_return): Ditto.
8608         * infrun.c (normal_stop): Ditto.
8609         * inflow.c (kill_command): Ditto.
8610         * infcmd.c (finish_command): Ditto.
8611         * corelow.c (core_open): Ditto.
8612         * tracepoint.c (finish_tfind_command): Ditto.
8613         * thread.c (info_threads_command, info_threads_command) 
8614         (restore_current_thread, do_captured_thread_select): Ditto.
8615         * ada-tasks.c (task_command): Ditto.
8616
8617 2004-04-26  Orjan Friberg <orjanf@axis.com>
8618
8619         * frame.c: Include "observer.h".
8620         (frame_observer_target_changed): New function.
8621         (_initialize_frame): Attach target_changed observer.
8622         * regcache.c: Include "observer.h".
8623         (regcache_observer_target_changed): New function.
8624         (_initialize_regcache): Attach target_changed observer.
8625         * valops.c: Include "observer.h".
8626         (value_assign): Notify target_changed event when modifying register.
8627         * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
8628
8629 2004-04-26  Orjan Friberg <orjanf@axis.com>
8630
8631         From Paul Koning <pkoning@equallogic.com>:
8632         * breakpoint.c (free_valchain): New function.
8633         (insert_bp_location, delete_breakpoint): Use free_valchain.
8634         (remove_breakpoint): Do not remove the valchain.
8635         (bpstat_stop_status): If not stopped by watchpoint, skip
8636         watchpoints when generating stop status list.
8637         * infrun.c (handle_inferior_event): Make
8638         stepped_after_stopped_by_watchpoint a global variable.
8639         * remote.c (remote_stopped_data_address): Return watch data
8640         address rather than zero if stepped_after_stopped_by_watchpoint is
8641         set.
8642
8643 2004-04-25  Michael Chastain  <mec.gnu@mindspring.com>
8644
8645         Fix PR gdb/1626.
8646         * configure.in: Check for curses after termcap.
8647         On osf5.*, do not check for ncurses.
8648         * configure: Regenerate.
8649
8650 2004-04-25  Mark Kettenis  <kettenis@gnu.org>
8651
8652         * ppcobsd-nat.c: Include "ppc-tdep.h".
8653         * Makefile.in (ppcobsd-nat.o): Update dependencies.
8654
8655         * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
8656         Fixes PR tdep/1623 and PR tdep/1624.
8657
8658 2004-04-24  Michael Chastain  <mec.gnu@mindspring.com>
8659
8660         * xmodem.h, xmodem.c: Remove files.
8661         * Makefile.in: Remove references to xmodem.h, xmodem.c.
8662
8663 2004-04-23  Randolph Chung  <tausq@debian.org>
8664
8665         * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
8666         (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
8667         (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
8668         for handling stackless frames.
8669         (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer. 
8670
8671 2004-04-23  Randolph Chung  <tausq@debian.org>
8672
8673         * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
8674         starts at a pc before the frame is created.
8675
8676 2004-04-23  Joel Brobecker  <brobecker@gnat.com>
8677
8678         * ChangeLog-2002: Fix year in one of the ChangeLog entries.
8679
8680 2004-04-23  Jerome Guitton  <guitton@gnat.com>
8681
8682         * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
8683         use convert_typed_floating to get the appropriate format.
8684
8685 2004-04-22  Randolph Chung  <tausq@debian.org>
8686
8687         * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
8688         (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
8689         (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
8690         (hppa_sign_extend): Add prototype.
8691         * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
8692         (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
8693         (sign_extend): Rename with hppa_ prefix and make non-static.  Other
8694         hppa targets will also use these functions.
8695         (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
8696         (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
8697         (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
8698         (hppa_gdbarch_init): Remove gdbarch setting of 
8699         skip_trampoline_code, in_solib_call_trampoline and
8700         in_solib_return_trampoline.
8701         * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
8702         (hppa64_hpux_in_solib_call_trampoline): New functions, split from
8703         hppa_in_solib_call_trampoline.
8704         (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
8705         Moved from hppa-tdep.c.
8706         (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code, 
8707         in_solib_call_trampoline and in_solib_return_trampoline.
8708
8709 2004-04-22  Randolph Chung  <tausq@debian.org>
8710
8711         * hppa-tdep.c (hppa_debug): New variable.
8712         (find_unwind_entry, hppa_frame_cache): Add debug output.
8713         (_initialize_hppa_tdep): Add command to set debug flag.
8714
8715 2004-04-22  Andrew Cagney  <cagney@redhat.com>
8716
8717         * ppcnbsd-tdep.c: Update copyright.  Include "tramp-frame.h" and
8718         "trad-frame.h".
8719         (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
8720         signal trampoline unwinder.
8721         (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
8722
8723 2004-04-22  Mark Kettenis  <kettenis@gnu.org>
8724
8725         Add OpenBSD/powerpc support.
8726         * NEWS (New native configurations): Mention OpenBSD/powerpc.
8727         * ppc-tdep.h (struct ppc_reg_offsets): New structure.
8728         (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
8729         (ppc_collect_fpregset): New prototypes.
8730         * ppcobsd-nat.c: New file.
8731         * ppcobsd-tdep.c: New file.
8732         * ppcobsd-tdep.h: New file.
8733         * rs6000-tdep.c: Include "regset.h".
8734         (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
8735         (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
8736         New functions.
8737         * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
8738         (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
8739         (rs6000-tdep.o): Update dependencies.
8740         * configure.host: Add powerpc-*-openbsd.
8741         * configure.tgt: Add powerpc-*-openbsd.
8742         * config/powerpc/obsd.mh: New file.
8743         * config/powerpc/nm-obsd.h: New file.
8744         * config/powerpc/obsd.mt: New file.
8745
8746 2004-04-22  Andrew Cagney  <cagney@redhat.com>
8747
8748         * frame.h (show_frame_info): Delete declaration.
8749
8750         * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
8751         * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
8752         * m32r-tdep.c (m32r_frame_this_id): Ditto.
8753         * frv-tdep.c (frv_frame_this_id): Ditto.
8754         * avr-tdep.c (avr_frame_this_id): Ditto.
8755
8756 2004-04-22  Elena Zannoni  <ezannoni@redhat.com>
8757
8758         * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
8759
8760 2004-04-22  Jim Blandy  <jimb@redhat.com>
8761
8762         * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
8763         register number zero.
8764
8765 2004-04-21  Michael Snyder  <msnyder@redhat.com>
8766
8767         * mips-tdep.c (heuristic_proc_start): 
8768         Warning() already prefixes "Warning: ".
8769
8770 2004-04-21  Andrew Cagney  <cagney@redhat.com>
8771
8772         * annotate.h (deprecated_annotate_starting_hook)
8773         (deprecated_annotate_stopped_hook)
8774         (deprecated_annotate_exited_hook)
8775         (deprecated_annotate_signal_hook)
8776         (deprecated_annotate_signalled_hook): Deprecate.
8777         * tracepoint.h (deprecated_create_tracepoint_hook)
8778         (deprecated_delete_tracepoint_hook)
8779         (deprecated_modify_tracepoint_hook)
8780         (deprecated_trace_find_hook)
8781         (deprecated_trace_start_stop_hook): Deprecate.
8782         * target.h (deprecated_target_new_objfile_hook): Deprecate.
8783         * remote.h (deprecated_target_resume_hook)
8784         (deprecated_target_wait_loop_hook): Deprecate.
8785         * gdbcore.h (deprecated_exec_file_display_hook)
8786         (deprecated_file_changed_hook): Deprecate.
8787         * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
8788         * defs.h (deprecated_modify_breakpoint_hook)
8789         (deprecated_command_loop_hook, deprecated_show_load_progress)
8790         (deprecated_print_frame_info_listing_hook)
8791         (deprecated_query_hook, deprecated_warning_hook)
8792         (deprecated_flush_hook, deprecated_create_breakpoint_hook)
8793         (deprecated_delete_breakpoint_hook)
8794         (deprecated_interactive_hook, deprecated_registers_changed_hook)
8795         (deprecated_readline_begin_hook, deprecated_readline_hook)
8796         (deprecated_readline_end_hook, deprecated_register_changed_hook)
8797         (deprecated_memory_changed_hook, deprecated_init_ui_hook)
8798         (deprecated_context_hook, deprecated_target_wait_hook)
8799         (deprecated_attach_hook, deprecated_detach_hook)
8800         (deprecated_call_command_hook, deprecated_set_hook)
8801         (deprecated_error_hook, deprecated_error_begin_hook)
8802         (deprecated_ui_load_progress_hook): Deprecate.
8803         * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
8804         * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
8805         * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
8806         * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
8807         * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
8808         * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
8809         * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
8810         * annotate.c, aix-thread.c: Update.
8811
8812 2004-04-21  Andrew Cagney  <cagney@redhat.com>
8813
8814         * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
8815         * vaxnbsd-tdep.c: Include "gdb_string.h".
8816
8817         * symfile.c (symbol_file_add_from_memory): #if 0 function.
8818         (add_symbol_file_from_memory_command): #if 0 function body, call
8819         error instead.
8820
8821 2004-04-21  Andrew Cagney  <cagney@redhat.com>
8822
8823         * gdbcore.h: Update copyright.
8824         (deprecated_add_core_fns): Rename add_core_fns.
8825         * win32-nat.c (_initialize_core_win32): Update.
8826         * sun3-nat.c (_initialize_core_sun3): Update.
8827         * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
8828         * rs6000-nat.c (_initialize_core_rs6000): Update.
8829         * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
8830         * nto-tdep.c (_initialize_nto_tdep): Update.
8831         * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
8832         * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
8833         * mips-nat.c (_initialize_core_mips): Update.
8834         * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
8835         * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
8836         * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
8837         * lynx-nat.c (_initialize_core_lynx): Update.
8838         * irix5-nat.c (_initialize_core_irix5): Update.
8839         * i386-interix-nat.c (_initialize_core_interix): Update.
8840         * cris-tdep.c (_initialize_cris_tdep): Update.
8841         * corelow.c (deprecated_add_core_fns): Update.
8842         * core-regset.c (_initialize_core_regset): Update.
8843         * core-aout.c (_initialize_core_aout): Update.
8844         * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
8845         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
8846         * alpha-nat.c (_initialize_core_alpha): Update.
8847
8848 2004-04-21  Jim Blandy  <jimb@redhat.com>
8849
8850         * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
8851
8852 2004-04-19  Daniel Jacobowitz  <drow@mvista.com>
8853
8854         * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
8855         Delete.
8856         (dwarf_alloc_block): Take a CU argument.  Use the comp_unit_obstack.
8857         (read_attribute_value): Update calls to dwarf_alloc_block.
8858         (dwarf2_build_psymtabs_hard): Don't initialize or clean up
8859         dwarf2_tmp_obstack.
8860         (psymtab_to_symtab_1): Likewise.  Clean up using
8861         free_stack_comp_unit.
8862         (add_to_cu_func_list): Use the comp_unit_obstack.
8863
8864 2004-04-19  Joel Brobecker  <brobecker@gnat.com>
8865
8866         * dwarf2read.c (dwarf2_flag_true_p): New function.
8867         (die_is_declaration): Use the function above. Add some comments.
8868
8869 2004-04-19  Mark Kettenis  <kettenis@gnu.org>
8870
8871         * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
8872         architecture when registering sparcnbsd_core_osabi_sniffer.
8873         Adjust comment.
8874
8875 2004-04-18  Mark Kettenis  <kettenis@gnu.org>
8876
8877         * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
8878         return value.
8879
8880         Based on a patch from Brian Ford <ford@vss.fsi.com>:
8881         * i386-tdep.c: Correct register numbering scheme comments
8882         throughout.
8883         (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
8884         (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
8885         (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
8886         (i386_gdb_arch_init): Likewise.
8887
8888         * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
8889         and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
8890         ppcnbsd-tdep.o.
8891
8892         * m68k-tdep.h: Tweak comments.
8893         * m68k-tdep.c: Tweak comment.
8894
8895 2004-04-17  Randolph Chung  <tausq@debian.org>
8896
8897         * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
8898         * hppa-hpux-tdep.c (hppa-tdep.h): Include.
8899         (hppa_hpux_som_init_abi): Set is_elf to 0.
8900         (hppa_hpux_elf_init_abi): Set is_elf to 1.
8901         * hppa-tdep.c (low_text_segment_address): Remove global.
8902         (record_text_segment_lowaddr): Pass in low address as parameter. Use
8903         section offset to calculate segment address.
8904         (internalize_unwinds): Define low_text_segment_address as local and
8905         pass to record_text_segment_lowaddr for ELF targets.
8906         (hppa_gdbarch_init): Zero fill tdep structure.
8907         (hppa_dump_tdep): Print tdep structure.
8908         * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
8909
8910 2004-04-17  Randolph Chung  <tausq@debian.org>
8911
8912         * hppa-tdep.c (hppa_pseudo_register_read): Define.
8913         (hppa_gdbarch_init): Set pseudo_register_read.
8914         * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
8915         * regcache.c (supply_register): Remove check for
8916         DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
8917
8918 2004-04-17  Randolph Chung  <tausq@debian.org>
8919
8920         * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
8921         * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
8922         (hpread_adjust_stack_address): Move to hpread.c.
8923         * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
8924         obj_private_struct): Move from tm-hppa.h.
8925         * hpread.c (hppa-tdep.h): Include.
8926         (hpread_adjust_stack_address): Move from hppa-tdep.c.
8927         (hpread_read_function_type, hpread_read_doc_function_type)
8928         (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address 
8929         directly.
8930         * pa64solib.c (hppa-tdep.h): Include.
8931         * somsolib.c (hppa-tdep.h): Include.
8932         * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
8933         inferior_status): Remove unused forward declarations.
8934         (INSTRUCTION_SIZE): Move to hppa-tdep.c.
8935         (unwind_table_entry, unwind_stub_types, obj_unwind_info, 
8936         obj_private_struct): Move to hppa-tdep.h.
8937         (HPREAD_ADJUST_STACK_ADDRESS): Remove.
8938
8939 2004-04-17  Randolph Chung  <tausq@debian.org>
8940
8941         * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
8942         (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
8943         (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
8944         (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
8945         Remove forward declaration and make static.
8946         (hppa_reg_struct_has_addr): Remove.
8947
8948 2004-04-16  Joel Brobecker  <brobecker@gnat.com>
8949
8950         * observer.sh: Move comments in sed command to first column.
8951
8952 2004-04-16  Jason Molenda  (jmolenda@apple.com)
8953
8954         * frame.c: Minor typeo corrections in comments.
8955
8956 2004-04-16  Joel Brobecker  <brobecker@gnat.com>
8957
8958         * observer.c (observer_test_first_notification_function): Update
8959         function profile.
8960         (observer_test_second_notification_function): Likewise.
8961         (observer_test_third_notification_function): Likewise.
8962
8963 2004-04-16  Mark Kettenis  <kettenis@gnu.org>
8964
8965         From Brian Ford <ford@vss.fsi.com>:
8966         * i386-tdep.c (i386_coff_init_abi): New function.
8967         * i386-tdep.h (i386_coff_init_abi): New prototype.      
8968         * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it.  Use correct
8969         register number translation functions for DWARF and DWARF 2.
8970
8971 2004-04-16  Joel Brobecker  <brobecker@gnat.com>
8972
8973         * dwarf2read.c: Back out my previous change, it was incorrect.
8974
8975 2004-04-16  Daniel Jacobowitz  <drow@mvista.com>
8976
8977         * dwarf2read.c: Include "hashtab.h".
8978         (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
8979         has_namespace_info.
8980         (struct partial_die_info): Add comments.  Use bitfields to reduce
8981         memory footprint.  Add scope, scope_set, has_specification,
8982         spec_offset, die_parent, die_child, and die_sibling.
8983         (peek_die_abbrev): Add prototype.
8984         (partial_read_comp_unit_head): New function, broken out from
8985         dwarf2_build_psymtabs_hard.
8986         (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
8987         Use partial_read_comp_unit_head.  Initialize the CU and
8988         comp_unit_obstack.  Update calls to read_partial_die and
8989         scan_partial_symbols.  Use free_stack_comp_unit and
8990         load_partial_dies.
8991         (scan_partial_symbols): Change PDI to a pointer.  Use the child and
8992         sibling pointers to walk partial DIEs.  Call fixup_partial_die.
8993         Update calls to helper functions.  Remove NAMESPACE argument.
8994         Update comments.
8995         (partial_die_parent_scope, partial_die_full_name): New functions.
8996         (add_partial_symbol): Remove namespace argument.  Update call to
8997         pdi_needs_namespace.  Use partial_die_full_name.  Handle
8998         DW_TAG_namespace.  Check has_namespace_info flag.
8999         (pdi_needs_namespace): Remove NAMESPACE argument.  Just check the
9000         tag.  Handle namespaces.
9001         (add_partial_namespace, add_partial_enumeration): Simplify.
9002         (guess_structure_name): New function, derived from
9003         add_partial_structure.
9004         (add_partial_structure): Remove.
9005         (determine_class_name): Update comment.
9006         (dwarf2_read_abbrevs): Set has_namespace_info flag.
9007         (is_type_tag_for_partial, load_partial_dies): New functions.
9008         (read_partial_die): Pass abbrev and abbrev_len as arguments.
9009         Record specifications instead of following them immediately.
9010         (find_partial_die_in_comp_unit, find_partial_die)
9011         (fixup_partial_die, free_stack_comp_unit)
9012         (hashtab_obstack_allocate, dummy_obstack_deallocate)
9013         (partial_die_hash, partial_die_eq): New functions.
9014         * Makefile.in (hashtab_h): Define.
9015         (dwarf2read.o): Update dependencies.
9016         (observer_inc, observer_h): Move to the correct section.
9017
9018 2004-04-15  Joel Brobecker  <brobecker@gnat.com>
9019
9020         * dwarf2read.c (dwarf2_attribute_true_p): New function.
9021         (die_is_declaration): Use the function above. Add comment.
9022
9023 2004-04-15  Joel Brobecker  <brobecker@gnat.com>
9024
9025         * dwarf2read.c (read_structure_scope): Identify stub types
9026         using die_is_declaration() only.
9027
9028 2004-04-15  Roland McGrath  <roland@redhat.com>
9029
9030         * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
9031         argument instead of NAME.
9032         (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
9033         in call to symbol_file_add_with_addrs_or_offsets.
9034         (build_addr_info): New function, helper for ...
9035         (symbol_file_add_from_memory): New function.
9036         (add_symbol_file_from_memory_command): New function using that.
9037         (_initialize_symfile): Register it for add-symbol-file-from-memory.
9038         (pre_add_symbol_hook): Add const to argument type.
9039         * symfile.h (symbol_file_add_from_memory): Declare it.
9040
9041 2004-04-15  Mark Kettenis  <kettenis@gnu.org>
9042
9043         * NEWS (New native configurations): Mention OpenBSD/vax.
9044         * configure.host: Add vax-*-openbsd*.
9045         * config/vax/obsd.mh: New file.
9046         * config/vax/nm-obsd.h: New file.
9047
9048         * vax-tdep.c: Include "regset.h".
9049         (vax_supply_gregset): New function.
9050         (vax_gregset): New variable.
9051         (vax_regset_from_core_section): New function.
9052         (vax_gdbarch_init): Set regset_from_core_section.
9053         * Makefile.in (vax-tdep.o): Update dependencies.
9054
9055 2004-04-15  Andrew Cagney  <cagney@redhat.com>
9056
9057         * observer.c (normal_stop_subject, observer_notify_normal_stop)
9058         (observer_normal_stop_notification_stub)
9059         (observer_attach_normal_stop, observer_detach_normal_stop):
9060         Delete, replaced by #include "observer.inc".
9061         * infrun.c (normal_stop): Pass "stop_bpstat" to
9062         observer_notify_normal_stop.
9063         * Makefile.in (observer_inc): Define.
9064         (observer.o): Update dependencies.
9065         (observer.h, observer.inc): New rules.
9066         * observer.h: Delete file.
9067         * observer.sh: New file.
9068
9069 2004-04-15  Mark Kettenis  <kettenis@gnu.org>
9070
9071         * vax-tdep.c (vax_frame_cache): Fix typo.
9072
9073 2004-04-14  Mark Kettenis  <kettenis@gnu.org>
9074
9075         * NEWS (New native configurations): Mention NetBSD/vax.
9076         * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
9077         * config/vax/nbsdelf.mh: New file.
9078         * config/vax/nbsdaout.mh: New file.
9079         * config/vax/nm-nbsd.h: New file.
9080         * config/vax/nm-nbsdaout.h: New file.
9081
9082         * vaxnbsd-tdep.c: New file.
9083         * Makefile.in (vaxnbsd-tdep.o): New dependency.
9084         * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
9085         * config/vax/nbsd.mt: New file.
9086         * config/vax/tm-nbsd.h: New file.
9087
9088         * Makefile.in (vaxbsd-nat.o): New dependency.
9089
9090         * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
9091         * vax-tdep.c (vax_store_arguments): Remove struct_return and
9092         struct_addr arguments.  Don't push return value address.
9093         (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
9094         arguments to vax_store_arguments.  Store return value address in
9095         R1.
9096         (vax_store_struct_return, vax_extract_return_value)
9097         (vax_store_return_value): Remove functions.
9098         (vax_return_value): New function.
9099         (vax_gdbarch_init): Set return value.  Don't set
9100         deprecated_store_struct_return, deprecated_extract_struct_return
9101         and deprecated_store_return_value.
9102
9103 2004-04-14  Andreas Schwab  <schwab@suse.de>
9104
9105         * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
9106         value buffer.
9107         * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
9108
9109 2004-04-14  Mark Kettenis  <kettenis@gnu.org>
9110
9111         * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
9112         (vax_unwind_dummy_id): New functions.
9113         (vax_push_dummy_frame, vax_pop_frame): Remove functions.
9114         (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
9115         variables.
9116         (vax_fix_call_dummy): Remove function.
9117         (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
9118         Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
9119         call_dummy_location, deprecated_call_dummy_words,
9120         deprecated_sizeof_call_dummy_words,
9121         deprecated_call_dummy_breakpoint_offset,
9122         deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
9123         and deprecated_dummy_write_sp.
9124
9125 2004-04-13  David Carlton  <carlton@kealia.com>
9126
9127         * MAINTAINERS: Move myself to "paper trail" section.
9128
9129 2004-04-12  Mark Kettenis  <kettenis@gnu.org>
9130
9131         * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
9132         "trad-frame.h".
9133         (vax_frame_init_saved_regs): Remove function.
9134         (vax_sigtramp_saved_pc): Remove function.
9135         (vax_frame_saved_pc): Remove function.
9136         (vax_frame_args_address): Remove function.
9137         (vax_frame_num_args): Rewrite.
9138         (vax_frame_chain): Remove function.
9139         (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
9140         VAX_FP_REGNUM.
9141         (vax_pop_frame): Likewise.
9142         (vax_saved_pc_after_call): Remove function.
9143         (struct vax_frame_cache): New structure.
9144         (vax_frame_cache): New function.
9145         (vax_frame_this_id): New function.
9146         (vax_frame_prev_register): New function.
9147         (vax_frame_unwind): New variable.
9148         (vax_frame_sniffer): New function.
9149         (vax_frame_base_address): New function.
9150         (vax_frame_args_address): New function.
9151         (vax_frame_base): New variable.
9152         (vax_unwind_pc): New function.
9153         (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
9154         deprecated_fp_regnum, deprecated_saved_pc_after_call,
9155         deprecated_frame_chain, deprecated_frame_saved_pc,
9156         deprecated_frame_args_address and
9157         deprecated_frame_init_saved_regs.
9158         * Makefile.in (vax-tdep.o): Update dependencies.
9159
9160         * vaxbsd-nat.c: New file.
9161
9162         * vax-tdep.h: Update copyright year.  Adjust comments.
9163         (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
9164         VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
9165         (vax_regnum): New enum.  Replacing...
9166         (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
9167         (VAX_PS_REGNUM): ... these removed macros.
9168         * vax-tdep.c (vax_register_name): Remove prototype.
9169         (vax_register_name): Reorganize somewhat.  Use ARRAY_SIZE.
9170         (vax_register_byte, vax_register_raw_size,
9171         vax_register_virtual_size, vax_register_virtual_type): Remove
9172         functions.
9173         (vax_register_type): New function.
9174         (vax_breakpoint_from_pc): Reorganize.
9175         (vax_gdbarch_init): Set register_type.  Don't set
9176         deprecated_register_size, deprecated_register_bytes,
9177         deprecated_register_byte, deprecated_register_raw_size,
9178         deprecated_max_register_raw_size,
9179         deprecated_register_virtual_size,
9180         deprecated_max_register_virtual_size and
9181         deprecated_register_virtual_type.  Add comment on stack direction.
9182
9183 2004-04-11  Mark Kettenis  <kettenis@gnu.org>
9184
9185         * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
9186         AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
9187         AMD64_FS_REGNUM and AMD64_GS_REGNUM.
9188
9189 2004-04-10  Randolph Chung  <tausq@debian.org>
9190
9191         * MAINTAINERS (write after approval): Add myself.
9192
9193 2004-04-07  Randolph Chung  <tausq@debian.org>
9194
9195         * hppa-tdep.c (hppa_inner_than): Remove.
9196         (is_pa_2): Remove unused static variable.
9197         (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
9198
9199 2004-03-10  Paul N. Hilfinger  <Hilfinger@gnat.com>
9200
9201         * language.h (language_defn): Add new la_post_parser field.
9202         * parser-defs.h (null_post_parser): New declaration (default for
9203         la_post_parser).
9204
9205         * parse.c (parse_exp_1): Move code to parse_exp_in_context and
9206         insert call to that function.
9207         (parse_exp_in_context): New function, including code formerly in
9208         parse_exp_1.  Calls language-dependent post-parser after
9209         prefixification.
9210         (parse_expression_in_context): New exported function.
9211         (null_post_parser): New definition.
9212         * expression.h (parse_expression_in_context): Add declaration.
9213
9214         * p-lang.c (pascal_language_defn): Add trivial post-parser.
9215         * c-lang.c (c_language_defn): Ditto.
9216         (cplus_language_defn): Ditto.
9217         (asm_language_defn): Ditto.
9218         (minimal_language_defn): Ditto.
9219         * f-lang.c (f_language_defn): Ditto.
9220         * jv-lang.c (java_language_defn): Ditto.
9221         * language.c (unknown_language_defn): Ditto.
9222         (auto_language_defn): Ditto.
9223         (local_language_defn): Ditto.
9224         * m2-lang.c (m2_language_defn): Ditto.
9225         * scm-lang.c (scm_language_defn): Ditto.
9226         * obj-lang.c (objc_language_defn): Ditto.
9227
9228 2004-04-10  Mark Kettenis  <kettenis@gnu.org>
9229
9230         * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
9231         (amd64nbsd_mcontext_addr): New function.
9232         (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
9233         amd64nbsd_mcontext_addr.  Directly initialize TDEP->sc_reg_offset
9234         with amd64nbsd_r_reg_offset, instead of building it on the fly.
9235
9236         * corelow.c (core_xfer_partial): Fix coding standards violation.
9237         Add support for TARGET_OBJECT_WCOOKIE.
9238
9239         * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
9240         deprecated_pc_in_sigtramp.
9241         * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
9242         * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
9243         * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
9244         * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
9245         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
9246         * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
9247         * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
9248
9249         * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
9250         i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
9251         Fix typo.
9252
9253         * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
9254         I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
9255         (amd64_collect_fxsave): Likewise.
9256
9257         * i386-sol2-tdep.c: Include "gdb_string.h".
9258         (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
9259         name.
9260         * Makefile.in (i386-sol2-tdep.o): Update dependencies.
9261
9262 2004-04-10  Mark Kettenis  <kettenis@gnu.org>
9263
9264         * i386-sol2-tdep.c: Include "solib-svr4.h".
9265         (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9266         * Makefile.in (i386-sol2-tdep.o): Update dependencies.
9267         * config/i386/tm-i386sol2.h: Include :solib.h".
9268         * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
9269         solib-svr4.o and solib-legacy.o.
9270         * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
9271         solib-svr4.o.
9272
9273 2004-04-09  Mark Kettenis  <kettenis@gnu.org>
9274
9275         * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
9276         whether a register is supplied by PTRACE_GETFPREGS.
9277         (store_inferior_registers): Likewise.
9278         * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
9279         whether a register is supplied by PT_GETFPREGS.
9280         (store_inferior_registers): Likewise.
9281
9282         * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
9283         * config/i386/linux64.mt (TDEPFILES): Likewise.
9284
9285         * i386-linux-nat.c: Update copyrigth year.  Tweak comment.
9286
9287         * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
9288         sigtramp_p member of `struct gdbarch_tdep'.  Also check whether
9289         the program counter is in the range specified by `struct
9290         gdbarch_tdep'.
9291         * amd64-linux-tdep.c: Include "symtab.h".
9292         (amd64_linux_pc_in_sigtramp): Remove function.
9293         (amd64_linux_sigtramp_p): New function.
9294         (amd64_linux_init_abi): Initialize TDEP->sigtramp_p.  Don't set
9295         deprecated_pc_in_sigtramp.
9296         * amd64nbsd-tdep.c: Include "symtab.h".
9297         (amd64nbsd_sigtramp_p): New function.
9298         (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p.  Don't set
9299         deprecated_pc_in_sigtramp.
9300         * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h".  Add a
9301         few comments.
9302         (amd64obsd_pc_in_sigtramp): Remove function.
9303         (amd64obsd_sigtramp_p): New function.
9304         (amd64obsd_init_abi): Initialize TDEP->sigtramp_p.  Don't set
9305         deprecated_pc_in_sigtramp.
9306         * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
9307         (i386bsd_pc_ins_sigtramp): Remove prototype.
9308         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
9309         * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
9310         sigtramp_p member of `struct gdbarch_tdep'.  Also check whether
9311         the program counter is in the range specified by `struct
9312         gdbarch_tdep'.
9313         (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
9314         (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
9315         (i386_go32_pc_in_sigtramp): Remove function.
9316         (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
9317         Initialize TDEP->sigtramp_p.
9318         (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
9319         (i386_gdbarch_init): Initialize TDEP->sigtramp_p.  Don't set
9320         deprecated_pc_in_sigtramp.
9321         * i386-linux-tdep.c: Adjust comments.
9322         (i386_linux_pc_in_sigtramp): Remove function.
9323         (i386_linux_sigtramp_p): New function.
9324         (i386_linux_init_abi): Initialize TDEP->sigtramp_p.  Don't set
9325         deprecated_pc_in_sigtramp.
9326         * i386-nto-tdep.c: Update copyright year.
9327         (i386nto_pc_in_sigtramp): Remove function.
9328         (i386nto_sigtramp_p): New function.
9329         (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
9330         SP_REGNUM.
9331         (i386nto_init_abi): Initialize TDEP->sigtramp_p.  Don't set
9332         deprecated_pc_in_sigtramp.
9333         * i386-sol2-tdep.c: Update copyright year.
9334         (i386_sol2_pc_in_sigtramp): Remove function.
9335         (i386_sol2_sigtramp_p): New function.
9336         (i386_sol2_init_abi): Initialize TDEP->sigtramp_p.  Don't set
9337         deprecated_pc_in_sigtramp.
9338         * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
9339         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
9340         (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9341         deprecated_sigtramp_start and deprecated_sigtramp_end.
9342         * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
9343         (i386nbsd_pc_in_sigtramp): Remove function.
9344         (i386nbsd_sigtramp_p): New function.
9345         (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9346         deprecated_sigtramp_start, deprecated_sigtramp_end.  Initialize
9347         TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
9348         * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
9349         (i386obsd_pc_in_sigtramp): Remove function.
9350         (i386obsd_sigtramp_p): New function.
9351         (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
9352         functions.
9353         (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9354         deprecated_sigtramp_start, deprecated_sigtramp_end.  Initialize
9355         TDEP->sigtramp_p.
9356         * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
9357         amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
9358         dependencies.
9359
9360         * config/i386/i386aout.mt: Remove file.
9361
9362         * configure.tgt: Remove i[34567]86-*-go32*,
9363         i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
9364         and i[34567]86-*-isc*.  Set gdb_target to i386 for
9365         i[34567]86-*-netware* and i[34567]86-*-*.
9366         * config/i386/i386.mt: New file.
9367         * config/i386/embed.mt: Remove file.
9368         * config/i386/go32.mt: Remove file.
9369         * config/i386/i386nw.mt: Remove file.
9370         * config/i386/i386v.mt: Remove file.
9371         * config/i386/tm-go32.h: Remove file.
9372
9373         * tui/tui-hooks.c: Include "readline/readline.h" after
9374         "gdb_curses.h" instead of before.
9375         * tui/tui-io.c: Likewise.
9376
9377         * tui/tui.c: Fix typo in comment.
9378
9379         * sparc64-tdep.c (sparc_address_from_register): Remove function.
9380
9381 2004-04-08  Andrew Cagney  <cagney@redhat.com>
9382
9383         * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
9384         (deprecated_exception_support_initialized): Declare.
9385         * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
9386         (initialize_hp_cxx_exception_support)
9387         (child_enable_exception_callback): Update.
9388         * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
9389         (deprecated_exception_support_initialized): Rename
9390         deprecated_exception_catchpoints_are_fragile and
9391         deprecated_exception_support_initialized.
9392         (breakpoint_init_inferior, breakpoint_init_inferior): Update.
9393
9394         * symtab.c (deprecated_hp_som_som_object_present): Rename
9395         hp_som_som_object_present.
9396         * symtab.h (deprecated_hp_som_som_object_present): Declare.
9397         * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
9398         Update.  Delete extern declaration.
9399         * valops.c (hp_som_som_object_present): Ditto.
9400         * parse.c (deprecated_hp_som_som_object_present)
9401         (parse_nested_classes_for_hpacc): Ditto.
9402         * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
9403         * hppa-hpux-tdep.c (hp_som_som_object_present)
9404         (initialize_hp_cxx_exception_support): Ditto.
9405         * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
9406         * cp-valprint.c (hp_som_som_object_present)
9407         (cp_print_class_method): Ditto.
9408         * c-typeprint.c (hp_som_som_object_present):
9409         (c_type_print_base): Ditto.
9410         * c-exp.y (hp_som_som_object_present): Ditto.
9411
9412 2004-04-08  Andrew Cagney  <cagney@redhat.com>
9413
9414         * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
9415         (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
9416         (frame_unwind_find_by_frame): Re-implement the unwind code so
9417         that it can both prepend and append sniffers.  Replace
9418         frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
9419         * tramp-frame.c (tramp_frame_append): Use
9420         frame_unwind_prepend_unwinder.
9421         * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
9422         frame_unwind_register_unwinder.
9423         * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
9424         tramp_frame_append.
9425         * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
9426         * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
9427         (mips_linux_init_abi): Update.
9428
9429 2004-04-08  Kevin Buettner  <kevinb@redhat.com>
9430
9431         * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
9432         (ELF_FPREGSET_SIZE):  Delete constants formerly used in core
9433         file support.
9434
9435 2004-04-07  Kevin Buettner  <kevinb@redhat.com>
9436
9437         * ia64-tdep.c (elf.h): Don't include.
9438         (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
9439
9440 2004-04-07  Jason Molenda  (jmolenda@apple.com)
9441
9442         * frame.h: Typeo corrections in comments.
9443
9444 2004-04-07  Jim Blandy  <jimb@redhat.com>
9445
9446         * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
9447         %esp and %ebp
9448
9449 2004-04-07  Mark Kettenis  <kettenis@gnu.org>
9450
9451         * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
9452         * config/sparc/linux64.mt (TDEPFILES): Likewise.
9453         * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
9454         * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
9455         and solib-legacy.o.
9456         * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
9457         solib-svr4.o.
9458         * config/sparc/tm-sol2.h: Update copyright year.  Include
9459         "solib.h".
9460
9461         * sparc-sol2-tdep.c: Update copyright year.  Include
9462         "solib-svr4.h".
9463         (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9464         * sparc64-sol2-tdep.c: Include "solib-svr4.h".
9465         (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9466         * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
9467         dependencies.
9468
9469 2004-04-06  Andrew Cagney  <cagney@redhat.com>
9470
9471         * infttrace.c: Include "infttrace.h".
9472         * infttrace.h: Include "target.h".
9473         * Makefile.in (infttrace_h): Update.
9474         (infttrace.o): Update.
9475
9476 2004-04-06  Andrew Cagney  <cagney@redhat.com>
9477
9478         * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
9479         (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
9480         move extern declarations from here ...
9481         * infttrace.h: ... to here.
9482         * Makefile.in (hppah-nat.o): Update dependencies.
9483
9484         * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
9485         (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
9486         * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
9487         (hppa_breakpoint_from_pc): Delete.
9488
9489         * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
9490
9491 2004-04-05  Andrew Cagney  <cagney@redhat.com>
9492
9493         * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
9494         <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
9495         <sys/file.h>.
9496
9497 2004-04-06  Randolph Chung  <tausq@debian.org>
9498
9499         Committed by Andrew Cagney (mechanical change).
9500         * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
9501         exception_catchpoints_are_fragile, find_stub_with_shl_get,
9502         cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
9503         child_enable_exception_callback, current_ex_event,
9504         null_symtab_and_line, child_get_current_exception_event,
9505         HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
9506         HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
9507         HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
9508         hp_cxx_exception_support_initialized, eh_notify_hook_addr,
9509         eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
9510         eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
9511         Move hpux-specific definitions ...
9512         * hppa-hpux-tdep.c: ... to here.
9513
9514 2004-04-05  Andrew Cagney  <cagney@redhat.com>
9515
9516         * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
9517         skip_prologue_using_sal.
9518
9519 2004-04-05  Andrew Cagney  <cagney@redhat.com>
9520
9521         * config/i386/tm-i386.h: Delete file.
9522         * config/i386/tm-vxworks.h: Update copyright, do not include
9523         "tm-i386.h".
9524         * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
9525         * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
9526         * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
9527         * config/i386/ncr3000.mt (TM_FILE): Delete.
9528         * config/i386/interix.mt (TM_FILE): Delete.
9529         * config/i386/i386v.mt (TM_FILE): Delete.
9530         * config/i386/i386nw.mt (TM_FILE): Delete.
9531         * config/i386/i386gnu.mt (TM_FILE): Delete.
9532         * config/i386/i386aout.mt (TM_FILE): Delete.
9533         * config/i386/embed.mt (TM_FILE): Delete.
9534
9535 2004-04-05  Kevin Buettner  <kevinb@redhat.com>
9536
9537         * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
9538         (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
9539         (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
9540         (accg7_regnum): New constants.
9541         (last_spr_regnum, last_pseudo_regnum): Update.
9542         * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
9543         accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
9544         (frv_pseudo_register_read, frv_pseudo_register_write): Add support
9545         for accg registers.
9546         (frv_register_sim_regno): Update spr_map[].
9547
9548 2004-04-04  Andrew Cagney  <cagney@redhat.com>
9549
9550         * config/mips/xm-riscos.h: Delete.
9551         * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
9552         * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
9553         * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
9554         * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
9555         * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
9556         * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
9557         * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
9558         * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
9559         * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
9560         * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
9561         * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
9562         * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
9563         * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
9564         * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
9565         * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
9566         * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
9567         * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
9568         * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
9569         * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
9570         * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
9571         * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
9572         * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
9573         * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
9574         * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
9575         * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
9576         * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
9577
9578         * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
9579         m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
9580         m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
9581         * configure.host: Remove m680[01]0-sun-sunos3*,
9582         m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
9583         m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
9584         m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
9585         mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
9586         mips-*-riscos*.
9587         * NEWS: Mention removed systems.
9588
9589 2004-04-04  Andrew Cagney  <cagney@redhat.com>
9590
9591         GDB 6.1 release created from 6.1 branch.
9592
9593 2004-04-04  Andrew Cagney  <cagney@redhat.com>
9594
9595         * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
9596         * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
9597         * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
9598
9599         * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
9600         * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
9601         * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
9602
9603 2004-04-03  Jim Blandy  <jimb@redhat.com>
9604
9605         * MAINTAINERS: Chris Faylor has changed employers; add him to
9606         "paper trail" section, and update his E-mail address.
9607
9608 2004-04-03  Andrew Cagney  <cagney@redhat.com>
9609
9610         * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
9611         generic dummy frames.
9612         * dummy-frame.c: Update copyright.
9613         (dummy_frame_sniffer): Delete check for generic dummy frames.
9614
9615         * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
9616         * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
9617         (REG_PARM_STACK_SPACE): Delete.
9618         * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
9619         Inline reference to REG_PARM_STACK_SPACE.
9620
9621         * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
9622         (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
9623         (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
9624         (FRAME_BASE_BEFORE_SIGTRAMP)
9625         (hppa32_hpux_frame_base_before_sigtramp)
9626         (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
9627         * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
9628         (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
9629         (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
9630         (FRAME_BASE_BEFORE_SIGTRAMP)
9631         (hppa64_hpux_frame_base_before_sigtramp)
9632         (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
9633
9634 2004-04-03  Andrew Cagney  <cagney@redhat.com>
9635
9636         * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
9637
9638 2004-04-02  Andrew Cagney  <cagney@redhat.com>
9639
9640         * sh64-tdep.c (sh64_init_extra_frame_info): Replace
9641         DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
9642         * dummy-frame.h: Delete out-of-date comments.
9643         * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
9644         * gdbarch.h, gdbarch.c: Re-generate.
9645
9646 2004-04-02  Joel Brobecker  <brobecker@gnat.com>
9647
9648         Committed by Andrew Cagney <cagney@redhat.com>.
9649         * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
9650         into account an instruction saving a register if we have already
9651         seen an earlier instruction saving that same register.
9652
9653 2004-04-02  Andrew Cagney  <cagney@redhat.com>
9654
9655         * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
9656         * gdbarch.h, gdbarch.c: Re-generate.
9657         * frame.c (legacy_get_prev_frame): Delete references to
9658         DEPRECATED_INIT_FRAME_PC_FIRST.
9659
9660         * infrun.c (pc_in_sigtramp): Delete function.
9661         (check_sigtramp2): Inline call to pc_in_sigtramp, use
9662         get_frame_type.
9663
9664 2004-04-02  Andrew Cagney  <cagney@redhat.com>
9665
9666         * infrun.c (handle_step_into_function): Delete code conditional on
9667         legacy_frame_p.
9668         (handle_inferior_event, step_over_function): Ditto.
9669
9670 2004-04-02  Andrew Cagney  <cagney@redhat.com>
9671
9672         * frame.c (get_prev_frame_1): Exclude signal trampolines from the
9673         "previous frame inner to this frame" test.
9674
9675 2004-04-02  Andrew Cagney  <cagney@redhat.com>
9676
9677         * frame.c (safe_frame_unwind_memory): New function.
9678         * frame.h (safe_frame_unwind_memory): Declare.  Update description
9679         of /safe_/ methods.
9680         * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
9681         "next_frame".  Use safe_frame_unwind_memory.
9682         (tramp_frame_sniffer): Update call to tramp_frame_start.
9683
9684 2004-04-01  Daniel Jacobowitz  <drow@mvista.com>
9685
9686         * dwarf2read.c (dwarf2_objfile_data_key): New.
9687         (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
9688         (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
9689         (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
9690         (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
9691         (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
9692         (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
9693         (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
9694         Remove variables.
9695         (struct dwarf2_pinfo): Remove per-objfile members.  Update comments.
9696         (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
9697         (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
9698         (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
9699         (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
9700         (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
9701         Remove macros.
9702         (dwarf2_has_info): Take an objfile argument.  Allocate per-objfile
9703         data.
9704         (dwarf2_locate_sections, dwarf2_build_psymtabs)
9705         (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
9706         (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
9707         (read_partial_die, read_full_die, read_indirect_string)
9708         (dwarf_decode_line_header, dwarf_decode_macros)
9709         (dwarf2_symbol_mark_computed): Remove use of removed macros.
9710         Update uses of removed variables.
9711         (psymtab_to_symtab_1): Restore per-objfile data pointer.  Remove use
9712         of removed macros.
9713         (_initialize_dwarf2_read): New function.
9714         * symfile.h (dwarf2_has_info): Update prototype.
9715         * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
9716         * elfread.c (elf_symfile_read): Likewise.
9717
9718 2004-04-01  Jim Blandy  <jimb@redhat.com>
9719
9720         * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
9721         function for register numbers on all the rs6000-derived targets.
9722         (rs6000_gdbarch_init): Don't register a separate
9723         gdbarch_dwarf2_reg_to_regnum function for the E500.  Use
9724         rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
9725         variants.
9726
9727         * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
9728         numbering.
9729
9730 2004-04-01  Paul N. Hilfinger  <Hilfinger@gnat.com>
9731
9732         * valarith.c: Update copyright notice.
9733         (value_add): Handle range types.
9734         (value_sub): Ditto.
9735         (value_equal): Ditto.
9736         (value_less): Ditto.
9737         (value_neg): Ditto.
9738         (value_complement): Ditto.
9739         (value_binop): Simplify slightly by using is_integral_type and
9740         eliminiating unnecessary COERCE_ENUMs.
9741
9742 2004-03-31  Andrew Cagney  <cagney@redhat.com>
9743
9744         * frame.h (frame_unwind_id): Declare.
9745         * frame.c (frame_unwind_id): New function.
9746         (get_prev_frame_1): New function.
9747         (frame_debug_got_null_frame): New function.
9748         (get_prev_frame): Use frame_debug_got_null_frame.  Move unwind
9749         code proper to prev_frame, update description.
9750         * infrun.c (step_over_function): Use frame_unwind_id.
9751
9752 2004-04-31  J. Brobecker  <brobecker@gnat.com>
9753
9754         * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
9755         (hppa64_push_dummy_call): Likewise.
9756
9757 2004-03-30  Jim Blandy  <jimb@redhat.com>
9758
9759         From Ulrich Weigand:
9760         * utils.c (query): Do not use a va_list variable multiple times.
9761
9762 2004-03-29  Daniel Jacobowitz  <drow@mvista.com>
9763
9764         * Makefile.in (linux_nat_h): Update dependencies.
9765         * configure.in: Check for <gnu/libc-version.h>.
9766         * configure: Regenerate.
9767         * config.in: Regenerate.
9768         * linux-nat.h: Include "target.h".  Add waitstatus field to
9769         struct lwp_info.
9770         * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
9771         (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
9772         to.
9773         (lin_lwp_handle_extended): New function.  Handle clone events.
9774         (wait_lwp): Use lin_lwp_handle_extended.  Update comment about
9775         thread exit events.
9776         (child_wait): Handle clone events.
9777         (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
9778         * linux-nat.c (linux_enable_event_reporting): Turn on
9779         PTRACE_O_TRACECLONE.
9780         (linux_handle_extended_wait): Handle clone events.
9781         * thread-db.c: Include <gnu/libc-version.h>.
9782         (struct private_thread_info): Add dying flag.
9783         (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
9784         higher.
9785         (attach_thread): Update comments.  Handle dying threads.
9786         (detach_thread): Set the dying flag.
9787         (check_event): Always call attach_thread.
9788
9789 2004-03-29  Daniel Jacobowitz  <drow@mvista.com>
9790
9791         * mips-tdep.c (mips_pdr_data): New.
9792         (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
9793         (_initialize_mips_tdep): Initialize mips_pdr_data.
9794
9795 2004-03-29  Corinna Vinschen  <vinschen@redhat.com>
9796
9797         * minsyms.c (install_minimal_symbols): Move dropping leading
9798         char from linkage name from here...
9799         (prim_record_minimal_symbol_and_info): ...to here.  Simplify
9800         test for "__gnu_compiled*" symbols.
9801
9802 2004-03-28  Jim Blandy  <jimb@redhat.com>
9803
9804         * rs6000-tdep.c (skip_prologue): Recognize moves from argument
9805         registers to temp register r0 and byte stores as prologue
9806         instructions.
9807
9808 2004-03-28  Andrew Cagney  <cagney@redhat.com>
9809
9810         * PROBLEMS (Stack backtraces): Rewrite.  Remove reference to
9811         arm*-*-*.
9812
9813 2004-03-28  Stephane Carrez  <stcarrez@nerim.fr>
9814
9815         * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
9816         and switch the layout to force a display of register window.
9817
9818 2004-02-26  J. Brobecker  <brobecker@gnat.com>
9819
9820         * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
9821         of the INTEGER class.
9822
9823 2004-03-26  Jim Blandy  <jimb@redhat.com>
9824
9825         * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
9826         bytes long on PPC GNU/Linux.
9827
9828 2004-03-26  David Carlton  <carlton@kealia.com>
9829
9830         * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
9831
9832 2004-03-25  Andrew Cagney  <cagney@redhat.com>
9833
9834         * PROBLEMS: Add general section titles, remove references to
9835         specific releases.
9836
9837 2004-03-25  Daniel Jacobowitz  <drow@mvista.com>
9838
9839         * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
9840         INT_REGISTER_SIZE.
9841         (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
9842         FP_REGISTER_VIRTUAL_SIZE.
9843         * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
9844         of DEPRECATED_REGISTER_RAW_SIZE.
9845         (arm_register_type): Add gdbarch argument.
9846         (arm_register_raw_size, arm_register_virtual_size): Delete.
9847         (arm_register_byte, arm_extract_return_value)
9848         (arm_store_return_value, arm_get_longjmp_target): Update references
9849         to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
9850         (arm_gdbarch_init): Likewise.  Don't set
9851         deprecated_register_raw_size, deprecated_register_virtual_size,
9852         deprecated_max_register_raw_size,
9853         deprecated_max_register_virtual_size, or
9854         deprecated_max_register_virtual_type.  Do set register_type.
9855         * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
9856         (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
9857         (FP_REGISTER_VIRTUAL_SIZE): Delete.
9858         (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
9859         (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
9860         * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
9861         INT_REGISTER_SIZE.
9862         * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
9863         (remote_rdp_store_register): Likewise.
9864
9865 2004-03-24  Daniel Jacobowitz  <drow@mvista.com>
9866
9867         * Makefile.in (mips-linux-tdep.o): Update dependencies.
9868         * mips-tdep.c (mips_gdbarch_init): Move frame predicates
9869         to after osabi initialization.
9870         * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
9871         (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
9872         functions.
9873         (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
9874         (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
9875         variables.
9876         (mips_linux_init_abi): Append signal trampoline unwinders.
9877
9878 2004-03-24  Andrew Cagney  <cagney@redhat.com>
9879
9880         * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
9881         * tramp-frame.c: Include "gdb_assert.h".
9882         (tramp_frame_start): Use TRAMP_SENTINEL_INSN.  Use ULONGEST and
9883         correct sizeof.
9884         (tramp_frame_append): Validate the tramp frame's instructions.
9885         * Makefile.in (tramp-frame.o): Update dependencies.
9886
9887 2004-03-23  Andrew Cagney  <cagney@redhat.com>
9888
9889         * trad-frame.h (trad_frame_set_reg_addr): Declare.
9890
9891 2004-03-23  Andrew Cagney  <cagney@redhat.com>
9892
9893         * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
9894         Nasser as past testsuite/lib/ (and other) maintainers.
9895
9896 2004-03-23  Daniel Jacobowitz  <drow@mvista.com>
9897
9898         * infcmd.c (attach_command): Reread symbols if we already have
9899         an exec file.
9900
9901 2004-03-23  Andrew Cagney  <cagney@redhat.com>
9902
9903         * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
9904
9905 2004-03-23  Andrew Cagney  <cagney@redhat.com>
9906
9907         * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
9908         * gdbarch.h, gdbarch.c: Re-generate.
9909         * i386obsd-tdep.c (i386obsd_init_abi): Update.
9910         * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
9911         * i386bsd-tdep.c (i386bsd_init_abi): Update.
9912         * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
9913         (DEPRECATED_SIGTRAMP_START): Update.
9914         * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
9915         (DEPRECATED_SIGTRAMP_START): Update.
9916         * blockframe.c (find_pc_sect_partial_function): Update.
9917         * arch-utils.c (legacy_pc_in_sigtramp): Update.
9918
9919 2004-03-23  Daniel Jacobowitz  <drow@mvista.com>
9920
9921         * remote.c (remote_open_1): Reopen the exec file and reread symbols
9922         if necessary.
9923
9924 2004-03-23  Andrew Cagney  <cagney@redhat.com>
9925
9926         * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
9927         predicate, deprecate.
9928         * gdbarch.h, gdbarch.c: Re-generate.
9929         * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
9930         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
9931         * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
9932         * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
9933         * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
9934         * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
9935         * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
9936         * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
9937         * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
9938         * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
9939         * blockframe.c (find_pc_partial_function): Update.
9940         * breakpoint.c (bpstat_what): Update.
9941         * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
9942         * frv-linux-tdep.c (frv_linux_init_abi): Update.
9943         * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
9944         * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
9945         * i386-interix-tdep.c (i386_interix_init_abi): Update.
9946         * i386-linux-tdep.c (i386_linux_init_abi): Update.
9947         * i386-nto-tdep.c (i386nto_init_abi): Update.
9948         * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
9949         * i386-tdep.c (i386_sigtramp_frame_sniffer)
9950         (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
9951         * i386bsd-tdep.c (i386bsd_init_abi): Update.
9952         * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
9953         * i386obsd-tdep.c (i386obsd_init_abi): Update.
9954         * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
9955         * infrun.c (pc_in_sigtramp): Update.
9956         * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
9957         * m68klinux-tdep.c (m68k_linux_init_abi): Update.
9958         * mips-tdep.c (mips_gdbarch_init): Update.
9959         * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
9960         * ppc-linux-tdep.c: Update comment.
9961         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
9962         * shnbsd-tdep.c (shnbsd_init_abi): Update.
9963         * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
9964         * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
9965         * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
9966         * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
9967         * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
9968         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
9969         * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
9970         * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
9971
9972 2004-03-23  Andrew Cagney  <cagney@redhat.com>
9973
9974         * tramp-frame.h, tramp-frame.h: New files.
9975         * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
9976         Update rules to include "tramp-frame.h" and "tramp-frame.c".
9977
9978         * Makefile.in: Update all dependencies.
9979
9980 2004-03-23  Andrew Cagney  <cagney@redhat.com>
9981
9982         * Makefile.in (trad_frame_h): Add $(frame_h).
9983         * trad-frame.h: Update copyright.  Include "frame.h".
9984         (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
9985         (trad_frame_set_id, trad_frame_get_id): Declare.
9986         (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
9987         * trad-frame.c: Update copyright.
9988         (struct trad_frame_cache): Define.
9989         (trad_frame_cache_zalloc): New function.
9990         (trad_frame_set_id, trad_frame_get_id): New functions.
9991         (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
9992
9993 2004-03-22  Andrew Cagney  <cagney@redhat.com>
9994
9995         * s390-tdep.c (struct s390_stub_unwind_cache): Rename
9996         s390_pltstub_unwind_cache.
9997         (s390_stub_frame_unwind_cache): Rename
9998         s390_pltstub_frame_unwind_cache.
9999         (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
10000         (s390_stub_frame_prev_register): Rename
10001         s390_pltstub_frame_prev_register.
10002         (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
10003         (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
10004
10005         From Ulrich Weigand:
10006         * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
10007         pointer calls like PLT calls.
10008
10009 2004-03-22  Daniel Jacobowitz  <drow@mvista.com>
10010
10011         * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
10012         PC rather than the partial function start address.  Use the start
10013         address to sanity check the found PDR.
10014
10015 2004-03-22  Daniel Jacobowitz  <drow@mvista.com>
10016
10017         * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
10018         linux_handle_extended_wait.
10019
10020 2004-03-22  Andrew Cagney  <cagney@redhat.com>
10021
10022         * rs6000-tdep.c (frame_initial_stack_address): Delete unused
10023         function.
10024
10025         * frame.h (generic_pop_current_frame): Delete declaration.
10026         (deprecate_pop_dummy_frame): Deprecate
10027         generic_pop_dummy_frame.
10028         * dummy-frame.c (deprecated_pop_dummy_frame): Update.
10029         (generic_pop_current_frame): Delete function.
10030         * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
10031         generic_pop_current_frame.
10032         * v850-tdep.c (v850_pop_frame): Update.
10033         * mcore-tdep.c (mcore_pop_frame): Update.
10034         * sh64-tdep.c (sh64_pop_frame): Update.
10035         * h8300-tdep.c (h8300_pop_frame): Update.
10036
10037 2004-03-22  Andrew Cagney  <cagney@redhat.com>
10038
10039         * frame.h (deprecated_pc_in_call_dummy): Rename
10040         generic_pc_in_call_dummy.
10041         * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
10042         * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
10043         generic_pc_in_call_dummy.
10044         (pc_in_dummy_frame): Make static.
10045         * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
10046         * gdbarch.h, gdbarch.c: Re-generate.
10047         * dummy-frame.c (dummy_frame_sniffer): Simplify.
10048         * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
10049         (legacy_get_prev_frame): Ditto.
10050         * inferior.h: Delete reference to generic_pc_in_call_dummy in
10051         comment.
10052
10053 2004-03-21  Andrew Cagney  <cagney@redhat.com>
10054
10055         * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
10056         declaration and out-of-date comment.
10057         * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
10058         Delete function.
10059         * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
10060         deprecated_pc_in_call_dummy.
10061
10062         * infrun.c (handle_inferior_event): For non legacy frames, use the
10063         frame ID and frame type to identify a signal trampoline.  Update
10064         comments.
10065
10066 2004-03-21  Nathan J. Williams  <nathanw@wasabisystems.com>
10067
10068         * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
10069         * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
10070
10071 2004-03-21  Andrew Cagney  <cagney@redhat.com>
10072
10073         * frame-unwind.h: Update copyright.
10074         (struct frame_data): Add opaque declaration.
10075         (frame_sniffer_ftype): Declare.
10076         (struct frame_unwind): Add "unwind_data" and "sniffer".
10077         (frame_unwind_register_unwinder): Declare.
10078         (frame_unwind_find_by_frame): Add parameter "this_cache".
10079         * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
10080         (legacy_get_prev_frame, legacy_get_prev_frame)
10081         (get_frame_type): Pass the prologue_cache to
10082         frame_unwind_find_by_frame.
10083         * frame-unwind.c (struct frame_unwind_table_entry): Add field
10084         "unwinder".
10085         (frame_unwind_register_unwinder): New function.
10086         (frame_unwind_find_by_frame): Handle an unwind sniffer.
10087
10088 2004-03-20  Paul Hilfinger  <hilfingr@nile.gnat.com>
10089
10090         * bcache.c (print_percentage): Use floating point to avoid
10091         incorrect results when portion*100 overflows.
10092
10093 2004-03-19  Kevin Buettner  <kevinb@redhat.com>
10094
10095         * ppc_tdep.h (ppc_linux_frame_saved_pc)
10096         (ppc_linux_init_extra_frame_info)
10097         (ppc_linux_frameless_function_invocation)
10098         (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
10099         (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
10100         (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
10101         (rs6000_frame_chain): Delete declarations.
10102         * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
10103         (ppc_linux_init_extra_frame_info)
10104         (ppc_linux_frameless_function_invocation)
10105         (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
10106         (ppc_linux_init_abi): Remove registration of above deleted functions.
10107         * rs6000-tdep.c (rs6000_init_extra_frame_info)
10108         (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
10109         (rs6000_frame_args_address, rs6000_saved_pc_after_call)
10110         (rs6000_pop_frame, rs6000_frameless_function_invocation)
10111         (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
10112         (rs6000_gdbarch_init): Remove registration of above deleted functions.
10113         Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
10114         rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
10115         frame management for all OSABIs.
10116
10117 2004-03-19  Andrew Cagney  <cagney@redhat.com>
10118
10119         Committed by Kevin Buettner <kevinb@redhat.com>.
10120
10121         * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
10122         Update copyright.
10123         (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
10124         (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
10125         (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
10126         (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
10127         unwinders.  #ifdef legacy frame code.
10128         * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
10129         "frame-base.h".
10130         (rs6000_unwind_pc, rs6000_unwind_dummy_id)
10131         (struct rs6000_frame_cache, rs6000_frame_cache)
10132         (rs6000_frame_this_id, rs6000_frame_prev_register)
10133         (rs6000_frame_sniffer, rs6000_frame_unwind)
10134         (rs6000_frame_base_address, rs6000_frame_base_sniffer)
10135         (rs6000_frame_base): Implement a traditional frame unwinder.
10136         (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
10137         frame unwinder.
10138
10139 2004-03-19  Kevin Buettner  <kevinb@redhat.com>
10140
10141         * breakpoint.c (adjust_breakpoint_address): Don't adjust
10142         breakpoint address for watchpoints or the catch eventpoints.
10143         Add new paramter ``bptype''.  Adjust all callers.
10144
10145 2004-03-19  Andrew Cagney  <cagney@redhat.com>
10146
10147         * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
10148
10149         * PROBLEMS: Delete note that ARM does not use frame code, problem
10150         fixed.
10151
10152 2004-03-18  Andrew Cagney  <cagney@redhat.com>
10153
10154         * stack.c (return_command): Delete code wrapped in #ifdef
10155         DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
10156
10157         * rs6000-tdep.c (skip_prologue): Record only the first LR save.
10158
10159 2004-03-18  Andrew Cagney  <cagney@redhat.com>
10160
10161         * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
10162         DEPRECATED_IN_SIGTRAMP.
10163         * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10164         * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
10165         * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10166         * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10167         * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10168         * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10169         * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10170         * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10171         * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
10172         * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
10173
10174 2004-03-18  Andrew Cagney  <cagney@redhat.com>
10175
10176         * frame-base.c: Update copyright.  Include "gdb_obstack.h".
10177         (struct frame_base_table_entry): Define.
10178         (struct frame_base_table): Re-implement as a linked list.
10179         (frame_base_init): Re-implement.
10180         (frame_base_table): Delete function.
10181         (append_predicate): Delete function.
10182         (frame_base_append_sniffer): Update.
10183         (frame_base_set_default): Update.
10184         (frame_base_find_by_frame): Update.
10185         (_initialize_frame_base): Use gdbarch_data_register_pre_init.
10186         * Makefile.in (frame-base.o): Update dependencies.
10187
10188 2004-03-17  Andrew Cagney  <cagney@redhat.com>
10189
10190         * frame.c (legacy_get_prev_frame): Pass correct frame to
10191         frame_unwind_find_by_frame.
10192
10193 2004-03-17  David Carlton  <carlton@kealia.com>
10194
10195         * NEWS: Mention C++ nested types and namespaces
10196
10197 2004-03-16  Michael Chastain  <mec.gnu@mindspring.com>
10198
10199         * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
10200         and "Regressions since gdb 5.3.".  Add known regressions since
10201         gdb 6.0.
10202
10203 2004-03-16  David Carlton  <carlton@kealia.com>
10204
10205         * dwarf2read.c (process_structure_scope): Process children even
10206         when we're a declaration.
10207
10208 2004-03-16  Andrew Cagney  <cagney@redhat.com>
10209
10210         * symtab.h (find_pc_sect_partial_function): Delete declaration.
10211         * blockframe.c (find_pc_partial_function)
10212         (find_pc_sect_partial_function): Merge into a single
10213         find_pc_partial_function.
10214
10215 2004-03-16  Mark Kettenis  <kettenis@gnu.org>
10216
10217         * i386bsd-nat.c: s/regno/regnum/g.
10218         (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
10219         FP0_REGNUM.
10220         (store_inferior_registers): Likewise.
10221
10222 2004-03-16  Mark Kettenis  <kettenis@gnu.org>
10223
10224         * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
10225         of i387_fill_fsave.
10226         (store_inferior_registers): Call i387_collect_fsave and
10227         i387_collect_fxsave instead of i387_fill_fsave and
10228         i387_fill_fxsave.
10229
10230 2004-03-15  Andrew Cagney  <cagney@redhat.com>
10231
10232         * Makefile.in (frame-unwind.o): Update dependencies.
10233         * frame-unwind.c: Include "gdb_obstack.h".
10234         (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
10235         parameter.
10236         (append_predicate): Delete function.
10237         (struct frame_unwind_table_entry): New structure.
10238         (struct frame_unwind_table): Replace "sniffer" with "head" and
10239         "tail".
10240         (frame_unwind_append_sniffer): Update.
10241         (frame_unwind_find_by_frame): Update.
10242         (_initialize_frame_unwind): Registe frame_unwind_init using
10243         gdbarch_data_register_pre_init.
10244
10245 2004-03-15  Mark Kettenis  <kettenis@gnu.org>
10246
10247         * i386bsd-nat.c: Update copyright year.
10248         (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
10249         define unconditionally.
10250
10251 2004-03-15  Mark Kettenis  <kettenis@gnu.org>
10252
10253         * i387-tdep.h (i387_collect_fsave): New prototype.
10254         * i387-tdep.c (i387_collect_fsave): New function containing most
10255         of the code from i387_fill_fsave.
10256         (i387_fill_fsave): Call i387_collect_fsave.
10257
10258 2004-03-15  Mark Kettenis  <kettenis@gnu.org>
10259
10260         * i386-linux-tdep.c: Update copyright year.
10261         (i386_linux_svr4_fetch_link_map_offsets): Remove function.
10262         (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
10263         svr4_ilp32_link_map_offsets instead of
10264         i386_linux_svr4_fetch_link_map_offsets.
10265
10266 2004-03-15  David Carlton  <carlton@kealia.com>
10267
10268         Fix for PR c++/1553:
10269         * dwarf2read.c (read_structure_type): Determine type name by
10270         calling determine_class_name.
10271         (determine_class_name): New.
10272         (determine_prefix): Look at TYPE_TAG_NAME and call
10273         determine_class_name when appropriate.
10274         (determine_prefix_aux, class_name): Delete.
10275         (read_namespace): Set die->type.
10276
10277 2004-03-15  Kevin Buettner  <kevinb@redhat.com>
10278
10279         * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
10280         unused macro definition.  The definition in target.h (or perhaps
10281         elsewhere) takes precedence.
10282
10283 2004-03-15  Andrew Cagney  <cagney@redhat.com>
10284
10285         * ppc-tdep.h: Update copyright.
10286         (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
10287         function signatures to match "regsets.h".
10288         * ppc-linux-tdep.c: Include "regset.h".
10289         (ELF_GREGSET_SIZE): Delete.
10290         (right_supply_register): New function.
10291         (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
10292         using right_supply_register.
10293         (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
10294         functions.
10295         (ppc64_linux_gregset, ppc32_linux_gregset): Define.
10296         (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
10297         (_initialize_ppc_linux_tdep): Do not register
10298         ppc_linux_regset_core_fns.
10299         (ppc_linux_regset_from_core_section): Replace
10300         fetch_core_registers.
10301         (ppc_linux_regset_core_fns): Delete.
10302         * ppc-linux-nat.c: (right_fill_reg): New function.
10303         (supply_gregset): Update call to ppc_linux_supply_gregset.
10304         (fill_gregset): Clear the register set, use right_fill_reg.
10305         (supply_fpregset): Update call to ppc_linux_supply_fpregset.
10306         (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
10307
10308         * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
10309         unsigned.
10310
10311 2004-03-15  Andrew Cagney  <cagney@redhat.com>
10312
10313         * gdbarch.sh (gdbarch_data_pre_init_fytpe)
10314         (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
10315         (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
10316         and register_gdbarch_data.
10317         (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
10318         (struct gdbarch_data): Replace "init" by "pre_init" and
10319         "post_init".
10320         * gdbarch.h, gdbarch.c: Re-generate.
10321         * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
10322         with"obstack", use OBSTACK_ZALLOC.
10323         (dwarf2_frame_ops): Delete.
10324         (dwarf2_frame_set_init_reg): Use gdbarch_data.
10325         (dwarf2_frame_init_reg): Use gdbarch_data.
10326         (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
10327         * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
10328         (_initialize_svr4_solib): Update.
10329         * user-regs.c (_initialize_user_regs): Update.
10330         * reggroups.c (_initialize_reggroup): Update.
10331         * regcache.c (_initialize_regcache): Update.
10332         * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
10333         * libunwind-frame.c (_initialize_libunwind_frame): Update.
10334         * gnu-v3-abi.c (init_gnuv3_ops): Update.
10335         * frame-unwind.c (_initialize_frame_unwind): Update.
10336         * frame-base.c (_initialize_frame_base): Update.
10337         * user-regs.c (user_reg_add): Update.
10338         * reggroups.c (reggroup_add): Update.
10339         * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
10340         * libunwind-frame.c (libunwind_frame_set_descr): Update.
10341         * frame-unwind.c (frame_unwind_append_sniffer): Update.
10342         * frame-base.c (frame_base_table): Update.
10343         * remote.c (_initialize_remote): Update.
10344         * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
10345
10346 2004-03-15  Andrew Cagney  <cagney@redhat.com>
10347
10348         * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
10349
10350 2004-03-15  Kevin Buettner  <kevinb@redhat.com>
10351
10352         * Makefile.in (frv-linux-tdep.o): Add dependencies.
10353         * frv-linux-tdep.c: New file.
10354         * frv-tdep.c (struct gdbarch_tdep): Add new field
10355         ``sigcontext_reg_addr''.
10356         (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
10357         (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
10358         (frv_sigramp_frame_sniffer): New functions.
10359         (frv_sigtramp_frame_unwind): New static global.
10360         (frv_gdbarch_init): Hook in ABI-specific overrides.  Hook up frame
10361         sniffers.
10362         * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
10363         * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
10364
10365 2004-03-15  Kevin Buettner  <kevinb@redhat.com>
10366
10367         * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
10368         but not via a call to error(), when unable to read memory.
10369
10370 2004-03-15  Kevin Buettner  <kevinb@redhat.com>
10371
10372         * frv-tdep.c (frv_call_dummy_words): Delete.
10373         (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
10374
10375 2004-03-15  Andrew Cagney  <cagney@redhat.com>
10376
10377         * infrun.c (handle_step_into_function, step_over_function): Only
10378         update and use STEP_FRAME_ID when the system is using legacy
10379         frames.  Update comments.
10380
10381 2004-03-14  Mark Kettenis  <kettenis@gnu.org>
10382
10383         * amd64-linux-tdep.h: Remove file.
10384         * amd64-linux-tdep.c: Don't include "inferior.h" and
10385         "amd64-linux-tdep.h".  Include "frame.h" and "solib-svr4.h".
10386         (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
10387         (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
10388         (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
10389         (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
10390         macros.
10391         (user_to_gdb_regmap): Remove variable.
10392         (amd64_linux_gregset_reg_offset): New variable.
10393         (amd64_core_fns): Remove variable.
10394         (fetch_core_registers): Remove function.
10395         (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
10396         functions.
10397         (_initialize_amd64_linux_tdep): Don't set add_core_fns.
10398         * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
10399         * Makefile.in (amd64_linux_tdep_h): Remove.
10400         (amd64-linux-nat.o): Update dependencies.
10401         (amd64-linux-tdep.o): Update dependencies.
10402
10403         * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
10404         (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
10405         functions.
10406         (fetch_inferior_registers, store_inferior_registers): Rewrite.
10407
10408         * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
10409         * amd64-tdep.c (amd64_fill_fxsave): Remove function.
10410
10411 2004-03-14  Daniel Jacobowitz  <drow@mvista.com>
10412
10413         * dwarf2read.c (read_structure_type): Rename from
10414         read_structure_scope.  Don't create a symbol or call process_die.
10415         Return immediately if die->type is set.  Call read_type_die before
10416         dwarf2_add_member_fn.
10417         (process_structure_scope): New function.
10418         (read_enumeration_type, process_enumeration_scope): New functions,
10419         broken out from read_enumeration.  Don't create the enumeration
10420         type if it has already been created.
10421         (read_enumeration): Removed.
10422         (process_die): Call read_structure_type, process_structure_scope,
10423         read_enumeration_type, and process_enumeration_scope.  Just call
10424         new_symbol for base and subrange types.  Add a comment about other
10425         type dies.
10426         (read_type_die): Call read_enumeration_type.
10427         (add_partial_structure, new_symbol): Update comments.
10428
10429 2004-03-13  Stephane Carrez  <stcarrez@nerim.fr>
10430
10431         * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
10432
10433 2004-03-13  Stephane Carrez  <stcarrez@nerim.fr>
10434
10435         * tui/tui-win.h (tui_get_cmd_list): Declare.
10436         * tui/tui-win.c (tui_command): New function.
10437         (tui_get_cmd_list): New function.
10438         (_initialize_tui_win): Moved initialization of tui command in
10439         tui_get_cmd_list.
10440
10441         * tui/tui-data.c (init_content_element): Setup new data members.
10442         (init_win_info): Likewise.
10443         (free_content_elements): Free it.
10444         * tui/tui-data.h (struct tui_data_element): Store the register
10445         content to print.
10446         (struct tui_data_info): Keep the current register group.
10447
10448         * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
10449
10450         * tui/tui-regs.h (tui_show_registers): Update prototype.
10451         (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
10452         (tui_resize_all): No need to calculate anything for register window.
10453         * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
10454         (tui_set_register_element, tui_set_general_regs_content): Remove.
10455         (tui_set_special_regs_content): Remove.
10456         (tui_set_general_and_special_regs_content): Remove.
10457         (tui_set_float_regs_content): Remove.
10458         (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
10459         (tui_set_regs_content): Remove.
10460         (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
10461         (tui_v_show_registers_command_support): Remove.
10462         (tui_show_registers): Use a reggroup to specify the registers to show.
10463         (tui_show_register_group): New function.
10464         (tui_display_registers_from): Compute the layout of register window
10465         and refresh with new API; be sure to delete old register windows.
10466         (tui_check_register_values): Update to use tui_get_register and
10467         tui_display_data.
10468         (tui_display_register): Just refresh the register window part.
10469         (tui_register_format): Format registers and save in tui_data_element.
10470         (tui_get_register): New to combine tui_reg_value_has_changed and
10471         tui_get_register_raw_value; fix to use the new gdb API.
10472         (tui_show_float_command): Renamed tui_reg_float_command.
10473         (tui_show_general_command): Renamed tui_reg_general_command.
10474         (tui_show_special_command): Renamed tui_reg_system_command.
10475         (_initialize_tui_regs): Remove unused commands.
10476
10477 2004-03-13  Mark Kettenis  <kettenis@gnu.org>
10478
10479         * NEWS (New native configurations): Mention OpenBSD/amd64.
10480
10481         * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
10482         (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
10483         Remove defines.
10484         * config/i386/nm-fbsd64.h: Likewise.
10485         * config/i386/nm-obsd.h: Likewise.
10486         * config/sparc/nm-fbsd.h: Likewise.  Update copyright year.
10487         * config/alpha/nm-fbsd.h: Likewise.  Update copyright year.
10488
10489 2004-03-12  Kevin Buettner  <kevinb@redhat.com>
10490
10491         * frv-tdep.c (set_variant_scratch_registers): New function.
10492         * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
10493         New constants.
10494
10495         From Richard Sandiford  <rsandifo@redhat.com>:
10496         * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
10497
10498 2004-03-12  Kevin Buettner  <kevinb@redhat.com>
10499
10500         * frv-tdep.c, frv-tdep.h  (first_gpr_regnum, sp_regnum, fp_regnum)
10501         (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
10502         (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
10503         (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
10504         (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
10505         (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
10506         (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
10507         (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
10508         definitions from frv-tdep.c to frv-tdep.h.
10509
10510 2004-03-12  Kevin Buettner  <kevinb@redhat.com>
10511
10512         Add shared library support for FR-V FDPIC ABI:
10513         * Makefile.in (solib-frv.o): Add dependencies.
10514         * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
10515         New functions.
10516         (frv_push_dummy_call): Add support for FDPIC ABI.
10517         (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
10518         for FDPIC ABI.
10519         * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
10520         (frv_fdpic_find_canonical_descriptor): Declare.
10521         * solib-frv.c: New file.
10522         * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
10523         * config/frv/tm-frv.h (solib.h): Include.
10524
10525 2004-03-12  Kevin Buettner  <kevinb@redhat.com>
10526
10527         * Makefile.in (elf_frv_h, frv_tdep_h): Define.
10528         (frv-tdep.o): Update dependencies.
10529         * frv-tdep.h: New file.
10530         * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
10531         (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
10532         constants.
10533         (struct gdbarch_tdep): Add new member ``frv_abi''.
10534         (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
10535         functions.
10536         (new_variant): Set ``frv_abi'' field.
10537         (gdb_arch_init): Detect FDPIC executables.
10538
10539 2004-03-12  Mark Kettenis  <kettenis@gnu.org>
10540
10541         * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
10542         wrapper.
10543
10544 2004-03-11  Andrew Cagney  <cagney@redhat.com>
10545
10546         * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
10547
10548 2004-03-11  Kevin Buettner  <kevinb@redhat.com>
10549
10550         * solist.h (master_so_list): New function.
10551         * solib.c (master_so_list): Likewise.
10552         * solib-svr4.c (enable_break): Iterate over so_list entries
10553         obtained from master list instead of entries obtained directly
10554         via svr4_current_sos().
10555
10556 2004-03-10  Ben Elliston  <bje@gnu.org>
10557
10558         * MAINTAINERS: Update my mail address.
10559
10560 2004-03-10  Kei Sakamoto  <sakamoto.kei@renesas.com>
10561
10562         * remote-m32r-sdi.c: Support hardware watchpoint.
10563
10564 2004-03-09  Daniel Jacobowitz  <drow@mvista.com>
10565
10566         * user-regs.c: Update copyright years.
10567         (struct user_regs): Rename to gdb_user_regs.
10568         (append_user_reg, builtin_user_regs, user_regs_init)
10569         (user_reg_add, user_reg_map_name_to_regnum)
10570         (usernum_to_user_reg): Update.
10571
10572 2004-03-09  Daniel Jacobowitz  <drow@mvista.com>
10573
10574         * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
10575         (skip_children): New functions.
10576         (locate_pdi_sibling): Call skip_children.
10577
10578 2004-03-09  Daniel Jacobowitz  <drow@mvista.com>
10579
10580         * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
10581         * gdbtypes.c (check_typedef): Update comments.
10582
10583 2004-03-09  Daniel Jacobowitz  <drow@mvista.com>
10584
10585         * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
10586         (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
10587         pointer.  Update comment about comp_unit_head.
10588         (struct abbrev_info): Shorten two int flags.
10589         (dwarf_alloc_abbrev): Take a CU argument.
10590         (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
10591         each time through the loop.  Update cleanup argument.
10592         (psymtab_to_symtab_1): Update cleanup call.
10593         (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
10594         abbrev_obstack.
10595         (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
10596         Just call obstack_free and clear the pointer.
10597
10598 2004-03-09  Daniel Jacobowitz  <drow@mvista.com>
10599
10600         * infrun.c (handle_inferior_event): Remove short-circuit code for
10601         events in a different thread.
10602
10603 2004-03-09  Daniel Jacobowitz  <drow@mvista.com>
10604
10605         * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
10606         print the whole transfer.
10607         (initialize_targets): Update description of "set debug target".
10608
10609 2004-03-09  Daniel Jacobowitz  <drow@mvista.com>
10610
10611         * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
10612
10613 2004-03-08  Nathan J. Williams  <nathanw@wasabisystems.com>
10614
10615         * MAINTAINERS (write after approval): Add myself.
10616
10617 2004-03-08  Corinna Vinschen  <vinschen@redhat.com>
10618
10619         * sh-tdep.c (sh_print_registers_info): Use for loop.
10620         Don't skip multiple registers when a float register is encountered.
10621
10622 2004-03-08  Corinna Vinschen  <vinschen@redhat.com>
10623
10624         Fix PR tdep/1291.
10625         * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
10626         to official SH documentation.
10627
10628 2004-03-07  Andrew Cagney  <cagney@redhat.com>
10629
10630         * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
10631         unused function.
10632
10633 2004-03-07  Daniel Jacobowitz  <drow@mvista.com>
10634
10635         * arm-tdep.c (thumb_get_next_pc): Handle BX.
10636         (arm_get_next_pc): Handle BX and BLX.
10637
10638 2004-03-07  Andrew Cagney  <cagney@redhat.com>
10639
10640         * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
10641         FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
10642         HPPA_SP_REGNUM.
10643         (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
10644         (hppa_target_read_fp): Delete.
10645         (hppa_gdbarch_init): Do not set deprecated register_raw_size,
10646         register_virtual_size, max_register_raw_size,
10647         max_register_virtual_size, register_byte, register_size,
10648         target_read_fp, fp_regnum, and register_bytes.  Set register_type
10649         instead of register_virtual_type.
10650         (hppa32_register_type, hppa64_register_type): Replace
10651         hppa32_register_virtual_type and hppa64_register_virtual_type.
10652         * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
10653         (HPPA_FP_REGNUM): Define.
10654
10655         * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
10656
10657         * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
10658         (pa_do_registers_info): Delete.
10659         * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
10660         (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
10661         (pa_strcat_fp_reg, pa_register_look_aside): Delete.
10662
10663         * infcall.c (legacy_push_dummy_code): Delete #ifdef
10664         GDB_TARGET_IS_HPPA code.
10665         * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
10666         (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
10667         (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
10668         * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
10669         * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
10670         (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
10671         (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
10672         (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
10673         (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
10674         (hppa_frameless_function_invocation, hppa64_store_return_value)
10675         (hppa_store_struct_return, hppa64_extract_return_value)
10676         (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
10677         (hppa32_call_dummy_length, hppa64_call_dummy_length)
10678         (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
10679         (find_proc_framesize, deposit_21, restore_pc_queue)
10680         (find_return_regnum, pc_in_interrupt_handler, deposit_14)
10681         (rp_saved, pc_in_linker_stub): Delete.
10682
10683         Unconditionally enable 64-bit frame and ABI code.
10684         * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
10685         call_dummy_breakpoint_offset, call_dummy_length, stack_align,
10686         push_dummy_frame, fix_call_dummy, push_arguments,
10687         call_dummy_location, extract_return_value, use_struct_convention,
10688         store_return_value, store_struct_return, saved_pc_after_call,
10689         init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
10690         frame_chain, frame_chain_valid, frameless_function_invocation,
10691         frame_saved_pc, and pop_frame.
10692
10693         * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
10694         (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
10695         (hppa_gdbarch_init): Do not set PC_REGNUM.
10696
10697 2004-03-06  Mark Kettenis  <kettenis@gnu.org>
10698
10699         * config/alpha/tm-fbsd.h: Remove file.
10700         * config/alpha/fbsd.mt: Tweak comment.
10701         (TM_FILE): Set to tm-alpha.h.
10702
10703 2004-03-05  Andrew Cagney  <cagney@redhat.com>
10704
10705         * infrun.c (step_over_function): When non-legacy code, and no
10706         step_frame_id, use the unwinder to get the caller's frame ID.
10707
10708 2004-03-05  Mark Kettenis  <kettenis@gnu.org>
10709
10710         * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
10711         i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
10712         bfd_arch_unknown.  Adjust comment.
10713
10714         * i386-nat.c: Fix typo in comment.  Re-introduce paranoiac.
10715         * i386obsd-tdep.c: Correct spelling in comment.
10716         * i386nbsd-tdep.c: Correct spelling in comment.
10717         * sparc-tdep.c: Correct spelling in comments.
10718
10719 2004-03-05  David Carlton  <carlton@kealia.com>
10720
10721         * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
10722         bug.
10723
10724 2004-03-05  Mark Kettenis  <kettenis@gnu.org>
10725
10726         * sparc-tdep.c: Fix typo in comment.
10727
10728 2004-03-04  J. Brobecker  <brobecker@gnat.com>
10729
10730         * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
10731
10732 2004-03-04  Daniel Jacobowitz  <drow@mvista.com>
10733
10734         * dwarf2read.c: Add comment describing memory lifetimes.
10735         (struct dwarf2_pinfo): Update comment.
10736         (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
10737         (read_enumeration, new_symbol): Don't use obsavestring.
10738
10739 2004-03-04  Mark Kettenis  <kettenis@gnu.org>
10740
10741         * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
10742         instead of amd64_fill_fxsave.
10743         * amd64bsd-nat.c (store_inferior_registers): Likewise.
10744         * amd64fbsd-nat.c (fill_fpregset): Likewise.
10745
10746         * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
10747         Reorganize code a bit.
10748
10749 2004-03-04  Orjan Friberg  <orjanf@axis.com>
10750
10751         * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
10752         when the frame pointer is pushed.  Don't set the frame pointer's
10753         address on the stack unless it's actually located there.
10754         Set the SRP's address on the stack correctly when the PC is still in
10755         the prologue.
10756         (cris_return_value): New function.
10757         (cris_gdbarch_init): Clear deprecated store_return_value,
10758         extract_return_value.
10759
10760 2004-03-02  Jim Blandy  <jimb@redhat.com>
10761
10762         * stabsread.c (reg_value_complaint): The maximum register number
10763         is one less than the number of registers.
10764
10765 2004-03-02  Andrew Cagney  <cagney@redhat.com>
10766
10767         * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
10768         I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM.  Remove
10769         trailing comma and redundant assignment of I386_ST0_REGNUM.
10770         * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
10771         32-bit segment registers.
10772
10773 2004-03-01  Andrew Cagney  <cagney@redhat.com>
10774
10775         * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
10776         use frame_relative_level and get_next_frame.
10777
10778 2004-02-29  Andrew Cagney  <cagney@redhat.com>
10779
10780         * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
10781         (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
10782         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
10783         Delete macro.
10784
10785 2004-02-29  Daniel Jacobowitz  <drow@mvista.com>
10786
10787         * inflow.c (terminal_inferior): Don't give up the terminal if we
10788         previously couldn't get the inferior's terminal state.
10789
10790 2004-02-29  Daniel Jacobowitz  <drow@mvista.com>
10791
10792         * regcache.c (read_pc_pid): Restore inferior_ptid after reading
10793         PC_REGNUM.
10794
10795 2004-02-28  Andrew Cagney  <cagney@redhat.com>
10796
10797         * NEWS: Refer to GDB 6.1.
10798         * README: Refer to GDB 6.1.
10799         * PROBLEMS: Refer to GDB 6.1.
10800
10801 2004-02-28  Daniel Jacobowitz  <drow@mvista.com>
10802
10803         * thread-db.c (disable_thread_signals): Remove unused function.
10804
10805 2004-02-28  Mark Kettenis  <kettenis@gnu.org>
10806
10807         * amd64-nat.c: Include "gdb_string.h".
10808         (amd64_collect_native_gregset): Zero-extend the 32-bit
10809         general-purpose registers and %eip.
10810
10811         * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
10812         * amd64-tdep.c (amd64_collect_fxsave): New function.
10813         (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
10814
10815         * i387-tdep.h: Update copyright year.
10816         (i387_collect_fxsave): New prototype.
10817         * i387-tdep.c: Update copyright year.
10818         (i387_collect_fxsave): New function containing most of the code
10819         from i387_fill_fxsave.
10820         (i387_fill_fxsave): Call i387_collect_fxsave.
10821
10822 2004-02-28  Andrew Cagney  <cagney@redhat.com>
10823
10824         * amd64-linux-nat.c (ps_get_thread_area): When architecture is
10825         i386 use PTRACE_GET_THREAD_AREA.  Suggested by Roland McGrath.
10826
10827 2004-02-28  Mark Kettenis  <kettenis@gnu.org>
10828
10829         * amd64-tdep.c (amd64_frame_cache): Fix comment.
10830
10831 2004-02-28  Andrew Cagney  <cagney@redhat.com>
10832
10833         * utils.c: Use "", instead of <>, to include readline.
10834         tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
10835         * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
10836         * source.c, solib.c, exec.c, event-top.c: Ditto.
10837         * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
10838         * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
10839         * Makefile.in: Update all dependencies.
10840         (readline_tilde_h, readline_history_h): Define.
10841         (readline_headers): Delete.
10842
10843 2004-02-28  Mark Kettenis  <kettenis@gnu.org>
10844
10845         * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
10846         "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
10847         "config/i386/tm-lx64.h".
10848
10849         * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
10850         "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c".  Remove
10851         rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
10852
10853 2004-02-28  Andrew Cagney  <cagney@redhat.com>
10854
10855         * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
10856
10857         * breakpoint.c (_initialize_breakpoint): Use
10858         "add_setshow_auto_boolean_cmd.  Better word-wrap help messages.
10859         Add help to show command.
10860
10861 2004-02-28  Mark Kettenis  <kettenis@gnu.org>
10862
10863         * i386-nat.c: Reformat to be closer to coding standards.
10864         (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
10865         `retval'.  Make variables `align' and `size' local to while-loop.
10866         (i386_stopped_data_address): Rename local variable `ret' to `addr'.
10867         (_initialize_i386_nat): New prototype.
10868
10869         * tui/tui.c: Include <readline/readline.h> instead of
10870         "readline/readline.h".  Include it after <term.h> and
10871         "gdb_curses.h".
10872
10873 2004-02-27  Andrew Cagney  <cagney@redhat.com>
10874
10875         * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
10876         the new frame unwind code.
10877         (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
10878         (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
10879         PCOQ_HEAD_REGNUM.
10880
10881         * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
10882         "return_value" and "push_dummy_call".
10883         (hppa32_use_struct_convention): Delete unused function.
10884         (hppa32_store_return_value): Delete unused function.
10885         (hppa32_extract_return_value): Delete unused function.
10886         (hppa32_stack_align): Delete function.
10887
10888 2004-02-27  Eli Zaretskii  <eliz@elta.co.il>
10889
10890         * coffread.c (enter_linenos): Don't let rawptr reference memory
10891         outside linetab[]'s limits.
10892
10893 2004-02-27  Andrew Cagney  <cagney@redhat.com>
10894
10895         * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
10896         inferior stack space - the stack needs to grow upwards.
10897         (hppa32_frame_align): New function.
10898         (hppa64_frame_align): Replace hppa_frame_align.
10899         (hppa_gdbarch_init): Update.
10900
10901 2004-02-26  Orjan Friberg  <orjanf@axis.com>
10902
10903         * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
10904         (dwarf2-frame.h): Include.
10905         (enum cris_regnums): New enum CRIS_FP_REGNUM.
10906         Remove static variables related to ABI setting.
10907         (struct gdbarch_tdep): Remove cris_abi member.
10908         (struct frame_extra_info): Remove.
10909         (cris_unwind_cache, stack_item): New structs.
10910         (cris_frame_unwind, cris_frame_base): New variables.
10911         (push_stack_item, pop_stack_item)
10912         (cris_frame_unwind_cache, cris_frame_this_id)
10913         (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
10914         (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
10915         (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
10916         (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
10917         (cris_reg_struct_has_addr): New functions.
10918         (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
10919         (cris_frame_saved_pc, cris_saved_pc_after_call,
10920         (cris_store_struct_return, cris_frameless_function_invocation)
10921         (cris_pop_frame, cris_skip_prologue_main)
10922         (cris_abi_original_store_return_value)
10923         (cris_abi_v2_store_return_value)
10924         (cris_abi_original_extract_return_value)
10925         (cris_abi_v2_extract_return_value)
10926         (cris_abi_original_reg_struct_has_addr)
10927         (cris_abi_v2_reg_struct_has_addr)
10928         (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
10929         (cris_push_return_address, cris_abi_update): Remove.
10930         (_initialize_cris_tdep): Remove ABI command.
10931         (cris_dump_tdep): Ditto.
10932         (cris_gdbarch_init): Remove ABI command.
10933         Set store_return_value, extract_return_value, push_dummy_code,
10934         push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
10935         frame_unwind_append_sniffer, frame_base_set_default.
10936         Clear deprecated init_frame_pc, push_arguments, store_return_value,
10937         extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
10938         sizeof_call_dummy_words, get_saved_register, push_return_address,
10939         pop_frame, store_struct_return, frame_init_saved_regs,
10940         init_extra_frame_info, frameless_function_invocation, frame_chain,
10941         frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
10942         dummy_write_sp.
10943
10944 2004-02-26  Jeff Johnston  <jjohnstn@redhat.com>
10945
10946         * valprint.h (print_hex_chars, print_char_chars): New prototypes.
10947         * valprint.c (print_hex_chars): Change from static to external.
10948         (print_char_chars): New function.
10949         * printcmd.c (print_scalar_formatted): For integer and enum types
10950         that are longer than LONGEST, perform processing via appropriate
10951         print_*_chars routines.
10952
10953 2004-02-26  Andrew Cagney  <cagney@redhat.com>
10954
10955         * Makefile.in: Update dependencies.
10956         Changes from Ulrich Weigand,
10957         * s390-tdep.c: Include "dwarf2-frame.h".
10958         (s390_dwarf2_frame_init_reg): New function.
10959         (s390_gdbarch_init): Install dwarf2_frame_sniffer and
10960         dwarf2_frame_base_sniffer.  Call dwarf2_frame_set_init_reg.
10961
10962 2004-02-26  Jeff Johnston  <jjohnstn@redhat.com>
10963
10964         * breakpoint.c (pending_break_support): New setting variable.
10965         (break_command_1): Account for pending_break_support setting
10966         when creating pending breakpoints.
10967         (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
10968         (_initialize_breakpoint): Add "set breakpoint pending" and
10969         "show breakpoint pending" commands.
10970
10971 2004-02-26  Andrew Cagney  <cagney@redhat.com>
10972
10973         Fix PR i18n/1570.
10974         * charset.c (backslashable, backslashed, represented): Remove 'e'
10975         from list of escaped characters, not part of ISO-C.
10976
10977 2004-02-25  J. Brobecker  <brobecker@gnat.com>
10978
10979         From Peter Schauer <schauer@pdf.de>:
10980         * tui/tui.c: Move system header includes after local includes.
10981         Fixes a build failure on solaris systems.
10982
10983 2004-02-25  J. Brobecker  <brobecker@gnat.com>
10984
10985         * configure.in: Refine the previous change.
10986         * configure: Regenerate.
10987
10988 2004-02-25  Mark Kettenis  <kettenis@gnu.org>
10989
10990         * amd64-tdep.h: Renamed from x86-64-tdep.h.
10991         * amd64-tdep.c: Renamed from x86-64-tdep.c.  Include
10992         "amd64-tdep.h" instead of "x86-64-tdep.h".
10993         * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
10994         * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
10995         * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c.  Include
10996         "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
10997         and "x86-64-tdep.c".
10998         * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c.  Include
10999         "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
11000         and "x86-64-tdep.c".
11001         * amd64bsd-nat.c: Update copyright year.
11002         Include "amd64-tdep.h" instead of "x86-64-tdep.h".
11003         * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
11004         "x86-64-tdep.h".
11005         * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
11006         "x86-64-tdep.h".
11007         * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
11008         "x86-64-tdep.h".
11009         * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
11010         "x86-64-tdep.h".
11011         * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
11012         "x86-64-tdep.h".
11013         * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
11014         "x86-64-tdep.h".
11015         * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
11016         * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
11017         * Makefile.in (amd64_linux_tdep_h): Renamed from
11018         x86_64_linux_tdep_h.
11019         (amd64_tdep_h): Renamed from x86_64_tdep_h.
11020         (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
11021         (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
11022         (amd64obsd-tdep.o): Update dependencies.
11023         (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
11024         dependencies.
11025         (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
11026         dependencies.
11027         (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
11028         amd64-linux-nat.c amd64-linux-tdep.c.
11029         * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
11030         * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
11031         * config/i386/linux64.mt: Renamed from x86-64linux.mt.
11032         (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
11033         amd64-tdep.o and amd64-linux-tdep.o.
11034         (TM_FILE): Set to tm-linux64.h.
11035         * config/i386/linux64.mh: Renamed from x86-64linux.mh.
11036         (NAT_FILE): Set to nm-linux64.h.
11037         (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
11038         * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11039         amd64-tdep.o.
11040         * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11041         amd64-tdep.o.
11042         * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11043         amd64-tdep.o.
11044
11045 2004-02-25  Roland McGrath  <roland@redhat.com>
11046
11047         * remote.c (remote_protocol_qPart_auxv): New variable.
11048         (init_all_packet_configs): Initialize it.
11049         (set_remote_protocol_qPart_auxv_packet_cmd): New function.
11050         (show_remote_protocol_qPart_auxv_packet_cmd): New function.
11051         (show_remote_cmd): Call it.
11052         (_initialize_remote): Initialize commands.
11053         (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
11054         service TARGET_OBJECT_AUXV requests.
11055
11056 2004-02-25  J. Brobecker  <brobecker@gnat.com>
11057
11058         * configure.in: Make sure that the wborder function is available.
11059         Otherwise, search for it in the cur_colr library.
11060         * configure: Regenerate.
11061
11062 2004-02-25  Andrew Cagney  <cagney@redhat.com>
11063
11064         * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
11065
11066 2004-02-25  Mark Kettenis  <kettenis@gnu.org>
11067
11068         * config/i386/tm-x86-64linux.h: Tweak comments.
11069
11070 2004-02-25  Richard Sandiford  <rsandifo@redhat.com>
11071
11072         * MAINTAINERS: Add self to write-after-approval list.
11073
11074 2004-02-25  Andrew Cagney  <cagney@redhat.com>
11075
11076         PR cli/1566.  Problem found, and fix suggested by David Allan.
11077         * cli/cli-script.c (execute_control_command): Unconditionally
11078         install a cleanup.  Default "ret" to "invalid_control".  Use
11079         "break" instead of "return" to escape from the switch.
11080
11081 2004-02-24  J. Brobecker  <brobecker@gnat.com>
11082
11083         * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
11084         with the lines macro defined in term.h on AiX.
11085         * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
11086         a collision with the label_width macro defined in term.h on AiX.
11087
11088 2004-02-23  David Mosberger  <davidm@hpl.hp.com>
11089
11090         Committed by Kevin Buettner <kevinb@redhat.com>.
11091
11092         * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
11093         * ia64-tdep.c (ia64_write_pc): Make it a global function.
11094         (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
11095         instead of ia64_write_pc().
11096         * ia64-linux-tdep.c (regcache.h): Include.
11097         (ia64_linux_write_pc): New function.
11098
11099 2004-02-23  Roland McGrath  <roland@redhat.com>
11100
11101         * auxv.c (info_auxv_command): Fix typos in error messages.
11102
11103 2004-02-23  Mark Kettenis  <kettenis@gnu.org>
11104
11105         * x86-64-tdep.h: Tweak comment.
11106         (enum amd64_regnum): New.
11107         (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
11108         (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
11109         (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
11110         (X86_64_XMM1_REGNUM): Removed.
11111         (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
11112         (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
11113         prototypes for renamed functions.
11114         * x86-64-tdep.c: Fix typo.
11115         (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
11116         register numbers.
11117         (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
11118         Use constants from `enum amd64_regnum' for register numbers.
11119         (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
11120         (amd64_analyze_prologue, amd64_frame_cache,
11121         amd64_sigtramp_frame_cache): Use constants from `enum
11122         amd64_regnum' for register numbers.
11123         (amd64_supply_fpregset): Adjust for renamed functions.
11124         (amd64_init_abi): Rename from x86_64_init_abi.  Use constants from
11125         `enum amd64_regnum' for register numbers.
11126         (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
11127         (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
11128         (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
11129         * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
11130         (amd64_linux_fill_gregset): Adjust for renamed macros.
11131         (fetch_core_registers): Adjust for renamed functions.
11132         (amd64_linux_init_abi): Adjust for renamed functions.
11133         * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
11134         renamed functions.
11135         * amd64-nat.c: Adjust for renamed macros.
11136         * amd64bsd-nat.c (fetch_inferior_registers)
11137         (store_inferior_registers): Use constants from `enum amd64_regnum'
11138         for register numbers.  Adjust for renamed variables.
11139         * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
11140         renamed variables.
11141         (_initialize_amd64fbsd_nat): Use constants from `enum
11142         amd64_regnum' for register numbers.
11143         * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
11144         `enum amd64_regnum' for register numbers.
11145         (amd64fbsd_init_abi): Adjust for renamed functions.
11146         * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
11147         `enum amd64_regnum' for register numbers.
11148         (amd64nbsd_init_abi): Adjust for renamed functions.
11149         (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
11150         * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
11151         `enum amd64_regnum' for register numbers.
11152         (amd64obsd_init_abi): Adjust for renamed functions.
11153         (_initialize_amd64obsd_ndep): Adjust for renamed macros.
11154
11155 2004-02-23  Jeff Johnston  <jjohnstn@redhat.com>
11156
11157         * breakpoint.c (print_one_breakpoint): Do not output spaces
11158         after printing <PENDING> for a pending breakpoint.
11159
11160 2004-02-23  Jeff Johnston  <jjohnstn@redhat.com>
11161
11162         * printcmd.c (print_scalar_formatted): Initialize val_long
11163         to remove compiler warning message.
11164
11165 2004-02-23  Jeff Johnston  <jjohnstn@redhat.com>
11166
11167         * defs.h (nquery, yquery): New prototypes.
11168         * breakpoint.c (break_command_1): Use new nquery interface.
11169         * utils.c (defaulted_query, nquery, yquery): New functions.
11170
11171 2004-02-23  Andrew Cagney  <cagney@redhat.com>
11172
11173         * hppa-tdep.c (hppa_frame_align): New function.
11174         (hppa32_push_dummy_call): New function.
11175         (hppa64_push_dummy_call): New function.
11176         (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
11177         disabled.
11178
11179         * infcall.c (legacy_push_dummy_code): Don't call deprecated
11180         FIX_CALL_DUMMY when push_dummy_call is available.
11181         (call_function_by_hand, push_dummy_code): Ditto.
11182
11183 2004-02-22  Andrew Cagney  <cagney@redhat.com>
11184
11185         * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
11186         (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
11187         (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
11188         * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
11189         use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
11190         call_dummy_location to ON_STACK.
11191
11192 2004-02-22  Mark Kettenis  <kettenis@gnu.org>
11193
11194         * x86-64-linux-tdep.c: Tweak comment.
11195         (amd64_linux_supply_gregset): Renamed from
11196         x86_64_linux_supply_gresget.
11197         (amd64_linux_fill_gregset): Renamed from
11198         x86_64_linux_fill_gregset.
11199         (fetch_core_registers): Adjust for renamed functions.
11200         (amd64_core_fns): Renamed from x86_64_core_fns.
11201         (amd64_linux_sigtramp_start): Renamed from
11202         x86_64_linux_sigtramp_start.
11203         (amd64_linux_pc_in_sigtramp): Renamed from
11204         x86_64_linux_pc_in_sigtramp.  Adjust for renamed functions.
11205         (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
11206         X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
11207         (amd64_linux_sigcontext_addr): Renamed from
11208         x86_64_linux_sigcontext_addr.
11209         (amd64_linux_sc_reg_offset): Renamed from
11210         x86_64_linux_sc_reg_offset.
11211         (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
11212         Adjust for renamed functions and variables.
11213         (_initialize_amd64_linux_tdep): Renamed from
11214         _initialize_x86_64_linux_tdep.  Adjust for renamed functions and
11215         variables.
11216         * x86-64-linux-tdep.h: Update copyright year.  Tweak comment.
11217         Adjust for renamed functions.
11218
11219         * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
11220         from x86_64_linux_gregset64_reg_offset.
11221         (amd64_linux_gregset32_reg_offset): Rename from
11222         x86_64_linux_gregset64_reg_offset.
11223         (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
11224         (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
11225         (amd64_linux_dr_set_control): Renamed from
11226         x86_64_linux_dr_set_control.  Adjust for renamed functions.
11227         (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
11228         Adjust for renamed functions.
11229         (amd64_linux_dr_reset_addr): Renamed from
11230         x86_64_linux_dr_reset_addr. Adjust for renamed functions.
11231         (amd64_linux_dr_get_status): Renamed from
11232         x86_64_linux_dr_get_status.  Adjust for renamed functions.
11233         (_initialize_amd64_linux_nat): Renamed from
11234         _initialize_x86_64_linux_nat.  Adjust for renamed variables and
11235         functions.
11236         * config/i386/nm-x86-64linux.h: Update copyright year.
11237         Adjust for renamed functions.
11238
11239         * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
11240         amd64fbsd_sigtramp_start.
11241         (amd64fbsd_sigtramp_end_addr): Renamed from
11242         amd64fbsd_sigtramp_end.
11243         (amd64fbsd_init_abi): Adjust for renamed variables.
11244         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
11245         variables.
11246         * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
11247         amd64fbsd_sigtramp_start.
11248         (amd64fbsd_sigtramp_end_addr): Renamed from
11249         amd64fbsd_sigtramp_end.
11250
11251 2004-02-22  Andrew Cagney  <cagney@redhat.com>
11252
11253         * hppa-tdep.c (hppa32_return_value): New function.
11254         (hppa64_return_value): New function.
11255         (hppa_gdbarch_init): Set return_value; keep disabled.
11256
11257         * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
11258         struct-return and inferior function call methods.
11259
11260         * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
11261         "frame-base.h".
11262         (struct hppa_frame_cache): Define.
11263         (hppa_frame_cache, hppa_frame_this_id): New functions.
11264         (hppa_frame_prev_register): New function.
11265         (hppa_frame_unwind, hppa_frame_base): New variables.
11266         (hppa_frame_unwind_sniffer): New function.
11267         (hppa_frame_base_address, hppa_unwind_pc): New function.
11268         (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
11269         sniffer, and frame base sniffer; keep disabled.
11270         (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
11271         * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
11272
11273         * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
11274         to predicates for "seriously old code".
11275
11276         * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
11277         runtime if(0).
11278
11279         * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
11280         unsigned.
11281         (hppa_frame_find_saved_regs): Fix "std" instruction pattern
11282
11283         * config/pa/tm-hppa.h: Update copyright.
11284         (DEPRECATED_INIT_FRAME_PC): Delete macro.
11285         (deprecated_init_frame_pc_default): Delete declaration.
11286         (hppa_frame_init_saved_regs): Delete declaration.
11287         (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
11288         * hppa-tdep.c: Include "arch-utils.h".
11289         (hppa_gdbarch_init): Set deprecated init_frame_pc
11290         and deprecated frame_init_saved_regs.
11291         (hppa_frame_init_saved_regs): Make static.
11292
11293 2004-02-22  Mark Kettenis  <kettenis@gnu.org>
11294
11295         Remove old 386BSD support.
11296         * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
11297         * configure.host: Remove i[34567]86-*-bsd*.
11298         * configure.tgt: Remove i[34567]86-*-bsd*.
11299         * i386b-nat.c: Removed.
11300         * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
11301         (i386b-nat.o): Remove dependencies.
11302
11303         * config/i386/i386bsd.mh: Removed.
11304         * config/i386/i386bsd.mt: Removed.
11305         * config/i386/nm-i386bsd.h: Removed.
11306         * config/i386/tm-i386bsd.h: Removed.
11307         * config/i386/xm-i386bsd.h: Removed.
11308
11309         * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
11310
11311         * amd64fbsd-tdep.c: Include "solib-svr4.h".
11312         (amd64fbsd_init_abi): Set link map offsets.
11313         * amd64nbsd-tdep.c: Include "slib-svr4.h".
11314         (amd64nbsd_init_abi): Set link map offsets.
11315         * amd64obsd-tdep.c: Include "solib-svr4.h".
11316         (amd64obsd_init_abi): Set link map offsets.
11317         * i386fbsd-tdep.c: Include "solib-svr4.h".
11318         (i386fbsd_init_abi): Set link map offsets.
11319         * i386nbsd-tdep.c: Include "solib-svr4.h".
11320         (i386nbsdelf_init_abi): Set link map offsets.
11321         * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
11322         (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
11323         * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
11324         solib-legacy.o and core-aout.o. Reformat.
11325         * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
11326         solib-svr4.o, solib-legacy.o.  Reformat.
11327         * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o.  Reformat.
11328         * config/i386/nbsdelf.mh: Reformat.
11329         * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
11330         solib-svr4.o, solib-legacy.o and corelow.o.
11331         * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
11332         * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
11333         solib-svr4.o, solib-legacy.o and corelow.o.  Reformat.
11334         * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11335         * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11336         (TM_FILE): Set to tm-fbsd.h.
11337         * config/i386/nbsd.mt (TDEPFILES): Reformat.
11338         * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
11339         solib-svr4.o.
11340         * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
11341         solib-svr4.o.
11342         (TM_FILE): Set to nm-nbsd.h.
11343         * config/i386/nm-fbsd.h: Update copyright year.  Tweak comments.
11344         Simplify shared library support.  Don't include "elf/common.h".
11345         (SVR4_SHARED_LIBS): Don't define.
11346         * config/i386/nm-fbsd64.h: Update copyright year.  Don't include
11347         "solib.h".
11348         * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
11349         config/i386/nm-obsd.h: Update copyright year.  Tweak comments.
11350         * config/i386/tm-fbsd.h: Update copyright tear.  Tweak comments.
11351         Don't include "i386/tm-i386.h".  Include "solib.h".
11352         * config/i386/tm-nbsd.h: Update copyright year.  Tweak comments.
11353         Don't include "i386/tm-i386.h".
11354         * config/i386/xm-i386.h: Update copyright year.  Tweak comments.
11355         * config/i386/xm-nbsd.h: Update copyright year.  Tweak comments.
11356         Include "i386/xm-i386.h".
11357         (HOST_LONG_DOUBLE_FORMAT): Remove.
11358
11359         Fix OpenBSD/i386 sigtramp recognition.
11360         * i386-tdep.h: Update copyright year.
11361         (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
11362         (i386bsd_sigtramp_end): New prototypes.
11363         (i386fbsd_sigtramp_start_addr): Renamed from
11364         i386fbsd_sigtramp_start.
11365         (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11366         (i386obsd_sigtramp_start_addr): Renamed from
11367         i386obsd_sigtramp_start.
11368         (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11369         * i386bsd-tdep.c: Update copyright year.
11370         (i386bsd_pc_in_sigtramp): Make public.
11371         * i386fbsd-nat.c: Update copyright year.
11372         (_initialize_i386fbsd_nat): Adjust for renamed variables.
11373         * i386fbsd-tdep.c: Update copyright year.
11374         (i386fbsd_sigtramp_start_addr): Renamed from
11375         i386fbsd_sigtramp_start.
11376         (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11377         (i386fbsdaout_init_abi): Adjust for renamed variables.
11378         * i386obsd-nat.c: Update copyright year.
11379         (_initialize_i386obsd_nat): Adjust for renamed variables.
11380         * i386obsd-tdep.c: Include "target.h".
11381         (i386obsd_page_size): New variable.
11382         (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
11383         (i386obsd_sigtramp_end): New functions.
11384         (i386obsd_sigtramp_start_addr): Renamed from
11385         i386obsd_sigtramp_start.
11386         (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11387         (i386obsd_init_abi): Adjust for renamed variables.  Set
11388         pc_in_sigtramp, sigtramp_start and sigtramp_end.
11389         * Makefile.in (i386obsd-tdep.o): Update dependencies.
11390
11391         * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
11392         trampoline change in OpenBSD kernel.
11393
11394         * amd64-nat.c: Update copyright year.
11395         (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
11396         architecture from REGCACHE.
11397
11398         * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
11399         symbolic constants from <sys/reg.h> instead of hard-coded numbers.
11400
11401 2004-02-21  Mark Kettenis  <kettenis@gnu.org>
11402
11403         * configure.host: Add i[34567]86-*-openbsd[0-2].* and
11404         i[34567]86-*-openbsd3.[0-3].
11405         * config/i386/obsdaout.mh: New file.
11406
11407         * config/i386/obsd.mh (MH_FLAGS): Remove.
11408
11409         Fix PR build/1549.
11410         * i386obsd-tdep.c: Update copyright years.  Include
11411         "solib-svr4.h".
11412         (i386obsd_init_abi): Don't set regset_from_core_section here.
11413         (i386obsd_aout_init_abi): New function.  Set
11414         regset_from_core_section here.
11415         (i386obsd_elf_init_abi): New function.
11416         (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
11417         * Makefile.in (i386obsd-tdep.o): Update dependecies.
11418         * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
11419         (TM_FILE): Set to tm-nbsd.h.
11420
11421         * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
11422         solib-sunos.o.
11423
11424         * solib-svr4.h: Update copyright year.
11425         (svr4_ilp32_fetch_link_map_offsets)
11426         (svr4_lp64_fetch_link_map_offsets): New prototype.
11427         * solib-svr4.c: Update copyright year.
11428         (svr4_ilp32_fetch_link_map_offsets)
11429         (svr4_lp64_fetch_link_map_offsets): New function.
11430
11431 2004-02-20  Daniel Jacobowitz  <drow@mvista.com>
11432
11433         * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
11434         to the partial symbol table.
11435
11436 2004-02-20  J. brobecker  <brobecker@gnat.com>
11437
11438         * PROBLEMS: Add description of problem documented under gdb/1560.
11439
11440 2004-02-20  Mark Kettenis  <kettenis@gnu.org>
11441
11442         * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h".  Fix
11443         comments.
11444         (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
11445         functions.
11446         (amd64obsd_init_abi): Reorder initializations.  Use
11447         amd64obsd_r_reg_offset to initialize the general-purpose register
11448         set details.  Set regset_from_core_section.
11449         (_initialize_amd64obsd_tdep): Rename from
11450         _initialize_amd64obsd_ndep.  Add OS ABI handler for core dumps.
11451         * Makefile.in (amd64obsd-tdep.o): Update dependencies.
11452         * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
11453
11454         * NEWS (New native configurations): Mention OpenBSD/alpha.
11455         * configure.tgt: Add alpha*-*-openbsd*.
11456         * configure.host: Add alpha*-*-openbsd*.
11457         * alphanbsd-tdep.c: Update copyright year.
11458         (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
11459
11460 2004-02-20  Andrew Cagney  <cagney@redhat.com>
11461
11462         Fix PR tdep/1372.
11463         * configure.tgt: Delete target "none-*-*".
11464         * configure.host: Delete host "none-*-*".
11465         * config/none/none.mh: Delete file.
11466         * config/none/none.mt: Delete file.
11467         * config/none/xm-none.h: Delete file.
11468         * config/none/tm-none.h: Delete file.
11469         * config/none/nm-none.h: Delete file.
11470
11471 2004-02-19  Fred Fish  <fnf@redhat.com>
11472
11473         * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
11474         cache->uses_fp prior to setting it.
11475
11476 2004-02-19  Fred Fish  <fnf@redhat.com>
11477
11478         Fix for PR breakpoint/1558.
11479         * sh-tdep.c (IS_JSR): New macro.
11480         (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
11481
11482 2004-02-19  Jim Blandy  <jimb@redhat.com>
11483
11484         * findvar.c (value_from_register): Doc fix.
11485
11486 2004-02-19  Jeff Johnston  <jjohnstn@redhat.com>
11487
11488         * printcmd.c (print_scalar_formatted): Do not check for sizeof
11489         type being greater than sizeof of host's LONGEST.  Always use
11490         unpack_long() unless format 'f' chosen.
11491
11492 2004-02-19  Joel Brobecker  <brobecker@gnat.com>
11493
11494         Committed by Elena Zannoni  <ezannoni@redhat.com>
11495
11496         * symtab.c (find_pc_sect_psymtab): Return the psymtab that
11497         contains a symbol wich is the best, non-exact match for the given
11498         pc.  Update comments.
11499
11500 2004-02-19  Elena Zannoni  <ezannoni@redhat.com>
11501
11502         * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
11503         macro, which was part of the now removed Mach 3 port.
11504         * utils.c (request_quit): Ditto.
11505
11506 2004-02-18  Mark Kettenis  <kettenis@gnu.org>
11507
11508         * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
11509         "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
11510
11511 2004-02-18  Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11512
11513         Committed by Mark Kettenis  <kettenis@gnu.org>.
11514
11515         * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
11516         Define.
11517
11518 2004-02-18  Andrew Cagney  <cagney@redhat.com>
11519
11520         * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
11521         CONFIG_INSTALL and CONFIG_UNINSTALL.
11522         * configure: Re-generate.
11523         * interps.h (INTERP_TUI): Define.
11524         * Makefile.in: Update dependencies.
11525         (TUI): New macro.
11526         (tui-main.o): Specify dependencies.
11527         (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
11528         * tui/tui-main.c: New file.
11529
11530 2004-02-18  Mark Kettenis  <kettenis@gnu.org>
11531
11532         * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
11533         * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
11534         dependencies.
11535         * configure.host: Add x86_64-*-openbsd*.
11536         * configure.tgt: Add x86_64-*-openbsd*.
11537         * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
11538
11539         * tui/tui.c: Don't include <malloc.h>.
11540
11541         * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
11542         amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
11543         amd64nbsd-tdep.c.
11544
11545         * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
11546         static.  Remove extraneous whitespace.
11547         * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
11548         static.
11549
11550 2004-02-17  Jim Blandy  <jimb@redhat.com>
11551
11552         * findvar.c (value_from_register): Doc fix.
11553
11554 2004-02-17  Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11555
11556         Committed by Jim Blandy  <jimb@redhat.com>.
11557
11558         * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
11559         CORE_ADDR as type for selectors.  Correct types for GNU run time
11560         message lookup function to use double indirection.
11561         * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
11562         * objc-lang.h (lookup_child_selector): Adapt prototype.
11563
11564         * s390-nat.c (SUBOFF): New macro.
11565         (supply_gregset, fill_gregset): Use it to handle debugging
11566         of 32-bit exectuables running under a 64-bit kernel.
11567         * s390-tdep.c: Include "solib-svr4.h".
11568         (s390_svr4_fetch_link_map_offset): New function.
11569         (s390x_svr_fetch_link_map_offset): Likewise.
11570         (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
11571         * Makefile.in (s390-tdep.o): Update dependencies.
11572
11573         * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
11574         "frame-unwind.h".
11575         (s390_readinstruction): Reformat.  Use read_memory_nobpt.
11576         (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
11577         (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
11578         (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
11579         S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
11580         S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
11581         S390_SIGNAL_FRAMESIZE,
11582         s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
11583         (struct frame_extra_info): Remove.
11584         (s390_memset_extra_info): Remove.
11585         (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
11586         (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
11587         (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
11588         (is_rse): Renamed to ...
11589         (is_rsy): ... this.  Support long displacements.
11590         (is_rxe): Renamed to ...
11591         (is_rxy): ... this.  Support long displacements.
11592         (compute_x_addr): Support long displacements.
11593         (struct s390_prologue_data): New data type.
11594         (s390_on_stack): Change API to use struct s390_prologue_data.
11595         (s390_store): Reimplement.
11596         (s390_load): New function.
11597         (s390_get_signal_frame_info): Remove.
11598         (s390_get_frame_info): Remove, replace by ...
11599         (s390_analyze_prolog): ... this new function.
11600         (s390_check_function_end): Remove.
11601         (s390_function_start): Remove.
11602         (s390_frameless_function_invokation): Remove.
11603         (s390_is_sigreturn): Remove.
11604         (s390_init_frame_pc_first): Remove.
11605         (s390_init_frame_extra_info): Remove.
11606         (s390_frame_init_saved_regs): Remove.
11607         (s390_frame_saved_pc_nofix): Remove.
11608         (s390_frame_saved_pc): Remove.
11609         (s390_frame_chain): Remove.
11610         (s390_fp_regnum, s390_read_fp): Remove.
11611         (s390_pop_frame_regular, s390_pop_frame): Remove.
11612         (s390_saved_pc_after_call): Remove.
11613         (s390_skip_prologue): Reimplement.
11614         (s390_in_function_epilogue_p): Support long displacements.
11615         (struct s390_unwind_cache): New data structure.
11616         (s390_frame_unwind_cache): New function.
11617         (s390_prologue_frame_unwind_cache): Likewise.
11618         (s390_backchain_frame_unwind_cache): Likewise.
11619         (s390_frame_this_id, s390_frame_prev_register): Likewise.
11620         (s390_frame_unwind): Define.
11621         (s390_frame_sniffer): New function.
11622         (struct s390_pltstub_unwind_cache): New data structure.
11623         (s390_pltstub_frame_unwind_cache): New function.
11624         (s390_pltstub_frame_this_id): Likewise.
11625         (s390_pltstub_frame_prev_register): Likewise.
11626         (s390_pltstub_frame_unwind): Define.
11627         (s390_pltstub_frame_sniffer): New function.
11628         (struct s390_sigtramp_unwind_cache): New data structure.
11629         (s390_sigtramp_frame_unwind_cache): New function.
11630         (s390_sigtramp_frame_this_id): Likewise.
11631         (s390_sigtramp_frame_prev_register): Likewise.
11632         (s390_sigtramp_frame_unwind): Define.
11633         (s390_sigtramp_frame_sniffer): New function.
11634         (s390_frame_base_address, s390_local_base_address): New functions.
11635         (s390_frame_base): Define.
11636         (s390_unwind_pc, s390_unwind_sp): New function.
11637         (s390_push_dummy_call): Use new frame base location.
11638         (s390_unwind_dummy_id): Likewise.
11639         (s390_gdbarch_init): Remove calls to:
11640         set_gdbarch_frameless_function_invocation,
11641         set_gdbarch_deprecated_init_frame_pc,
11642         set_gdbarch_deprecated_frame_chain,
11643         set_gdbarch_deprecated_frame_init_saved_regs,
11644         set_gdbarch_deprecated_pop_frame,
11645         set_gdbarch_deprecated_init_extra_frame_info,
11646         set_gdbarch_deprecated_init_frame_pc_first,
11647         set_gdbarch_deprecated_target_read_fp,
11648         set_gdbarch_deprecated_frame_saved_pc,
11649         set_gdbarch_deprecated_saved_pc_after_call,
11650         set_gdbarch_deprecated_fp_regnum.
11651         Add calls to:
11652         set_gdbarch_in_solib_call_trampoline,
11653         frame_unwind_append_sniffer,
11654         frame_base_set_default,
11655         set_gdbarch_unwind_pc,
11656         set_gdbarch_unwind_sp.
11657         * Makefile.in (s390-tdep.o): Update dependencies.
11658
11659         * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
11660         (S390_STACK_FRAME_OVERHEAD): Remove.
11661         (S390_STACK_PARAMETER_ALIGNMENT): Remove.
11662         (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
11663         (s390_promote_integer_argument): Remove.
11664         (s390_cannot_extract_struct_value_address): Remove.
11665         (s390_use_struct_convention, s390_store_struct_return): Remove.
11666         (s390_extract_return_value, s390_store_return_value): Remove.
11667         (s390_return_value_convention, s390_return_value): New functions.
11668         (is_float_singleton): Handle typedefs.
11669         (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
11670         Remove, replace by ...
11671         (s390_function_arg_pass_by_reference, s390_function_arg_float,
11672         s390_function_arg_integer): ... these new functions.
11673         (s390_push_arguments, s390_push_return_address): Remove, replace by ...
11674         (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
11675         (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
11676         Fill in tdep->abi.
11677         Remove calls to:
11678         set_gdbarch_deprecated_store_struct_return,
11679         set_gdbarch_deprecated_extract_return_value,
11680         set_gdbarch_deprecated_store_return_value,
11681         set_gdbarch_use_struct_convention,
11682         set_gdbarch_extract_struct_value_address,
11683         set_gdbarch_deprecated_pc_in_call_dummy,
11684         set_gdbarch_deprecated_push_arguments,
11685         set_gdbarch_deprecated_save_dummy_frame_tos,
11686         set_gdbarch_deprecated_push_return_address,
11687         set_gdbarch_deprecated_sizeof_call_dummy_words,
11688         set_gdbarch_deprecated_call_dummy_words,
11689         set_gdbarch_deprecated_dummy_write_sp.
11690         Add calls to:
11691         set_gdbarch_push_dummy_call,
11692         set_gdbarch_unwind_dummy_id,
11693         set_gdbarch_return_value.
11694
11695         * config/s390/nm-linux.h: Update comments.
11696         (target_insert_watchpoint, target_remove_watchpoint): Redefine.
11697         (STOPPED_BY_WATCHPOINT): Redefine.
11698         (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
11699         (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
11700         (s390_stopped_by_watchpoint): Likewise.
11701         (watch_area_cnt): Remove.
11702         * s390-nat.c: Update comments.
11703         (watch_area): Remove typedef.
11704         Global replace watch_area by struct watch_area.
11705         (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
11706         (s390_stopped_by_watchpoint): Remove pid argument,
11707         use s390_inferior_tid.  Add short-cut for the no watchpoint case.
11708         (s390_fix_watch_points): Remove pid argument,
11709         use s390_inferior_tid.  Recompute area spanned by watchpoints.
11710         (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
11711         argument.  Reimplement.
11712
11713         * config/s390/nm-linux.h: Update comments.  Do not include "solib.h".
11714         (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
11715         (FETCH_INFERIOR_REGISTERS): Define.
11716         * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
11717         core-regset.o.
11718         * config/s390/s390x.mt: Remove.
11719         * config/s390/tm-s390.h: Remove.
11720         * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
11721         (TARGET_ELF64): Remove.
11722         (SKIP_TRAMPOLINE_CODE): Do not undefine.
11723         * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
11724         s390*-*-* case; always set gdb_target to s390.
11725         * regformats/reg-s390.dat: Remove control registers.
11726         * regformats/reg-s390x.dat: Likewise.
11727         * s390-tdep.h: New file.
11728         * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
11729         Include "inferior.h" and "s390-tdep.h".
11730         Remove private definition of offsetof.
11731         (s390_register_u_addr): Remove.
11732         (regmap_gregset, regmap_fpregset): Define.
11733         (supply_gregset, fill_gregset): Reimplement.
11734         (supply_fpregset, fill_fpregset): Likewise.
11735         (s390_inferior_tid): New function.
11736         (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
11737         (fetch_inferior_registers, store_inferior_registers): Likewise.
11738         * s390-tdep.c: Do not define S390_TDEP.  Include "defs.h" instead
11739         of <defs.h>.  Include "reggroups.h", "regset.h", and "s390-tdep.h".
11740         Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
11741         Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
11742         (struct gdbarch_tdep): Define.
11743         (struct s390_register_info): Define.
11744         (s390_register_info): New variable.
11745         (s390_register_name): Reimplement.
11746         (s390_register_type): New function.
11747         (s390_register_raw_size, s390x_register_raw_size): Remove.
11748         (s390_cannot_fetch_register): Remove.
11749         (s390_register_byte): Remove.
11750         (s390_register_virtual_type, s390x_register_virtual_type): Remove.
11751         (s390_dwarf_regmap): New variable.
11752         (s390_dwarf_reg_to_regnum): New function.
11753         (s390_stab_reg_to_regnum): Remove.
11754         (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
11755         (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
11756         (s390_convert_register_p): Likewise.
11757         (s390_register_to_value, s390_value_to_register): Likewise.
11758         (s390_register_reggroup_p): Likewise.
11759         (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
11760         s390_gregset, s390x_gregset, s390_fpregset): New variables.
11761         (s390_supply_regset, s390_regset_from_core_section): New functions.
11762         (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
11763         (S390_FPR_SIZE): Likewise.
11764         (S390_GPR_SIZE): Likewise.  Redefine in terms of GDB_TARGET_IS_ESAME.
11765         Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
11766         (S390_NUM_GPRS): Move here from tm-s390.h.
11767         (S390_NUM_FPRS): Likewise.
11768         (s390_in_function_epilogue_p): New function.
11769         (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
11770         Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
11771         (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
11772         Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
11773         Replace S390_FP_REGNUM by S390_SP_REGNUM.
11774         Remove calls to:
11775         set_gdbarch_deprecated_max_register_raw_size,
11776         set_gdbarch_deprecated_max_register_virtual_size,
11777         set_gdbarch_deprecated_register_byte,
11778         set_gdbarch_cannot_fetch_register,
11779         set_gdbarch_cannot_store_register,
11780         set_gdbarch_deprecated_register_size,
11781         set_gdbarch_deprecated_register_raw_size,
11782         set_gdbarch_deprecated_register_virtual_size,
11783         set_gdbarch_deprecated_register_virtual_type,
11784         set_gdbarch_deprecated_register_bytes.
11785         Add calls to:
11786         set_gdbarch_num_pseudo_regs,
11787         set_gdbarch_register_type,
11788         set_gdbarch_convert_register_p,
11789         set_gdbarch_register_to_value,
11790         set_gdbarch_value_to_register,
11791         set_gdbarch_register_reggroup_p,
11792         set_gdbarch_regset_from_core_section,
11793         set_gdbarch_pseudo_register_read,
11794         set_gdbarch_pseudo_register_write,
11795         set_gdbarch_in_function_epilogue_p.
11796         * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
11797         (s390_tdep_h): New variable.
11798
11799 2004-02-17  Jim Blandy  <jimb@redhat.com>
11800
11801         * findvar.c (value_from_register): If the type has no length, just
11802         return an acceptable value --- don't report an internal error.
11803
11804         * stabsread.c (read_type): If we find any type numbers that are
11805         forward references, complain if the references aren't resolved by
11806         the time we're finished reading.
11807         (cleanup_undefined_types): Make error message more appropriate for
11808         a complaint.
11809
11810 2004-02-17  Elena Zannoni  <ezannoni@redhat.com>
11811
11812         * Makefile.in (defs_h): Remove dependency on progress_h.
11813         * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
11814         progress.h.
11815         * main.c (captured_main): Delete use of START_PROGRESS and
11816         END_PROGRESS.
11817
11818 2004-02-17  Elena Zannoni  <ezannoni@redhat.com>
11819
11820         * objfiles.c (terminate_minimal_symbol_table): Add back
11821         initialization of MSYMBOL_TYPE.
11822
11823 2004-02-17  David Mosberger  <davidm@hpl.hp.com>
11824
11825         Committed by Andrew Cagney.
11826         * Makefile.in (ia64_tdep_h): New macro.
11827         (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
11828         (ia64-tdep.o): Likewise.
11829         * ia64-tdep.h: New file.
11830         * ia64-tdep.c: Update copyright notice.  Include "ia64-tdep.h".
11831         (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
11832         (ia64_aix_sigcontext_register_address): Likewise.
11833         (ia64_linux_getunwind_table): Delete declaration.
11834         * ia64-linux-tdep.c: Likewise.
11835
11836 2004-02-17  Corinna Vinschen  <vinschen@redhat.com>
11837
11838         * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
11839         * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
11840         DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
11841
11842 2004-02-17  Andrew Cagney  <cagney@redhat.com>
11843
11844         * symtab.c (skip_prologue_using_sal): New function.
11845         * symtab.h (skip_prologue_using_sal): Declare.
11846         * frv-tdep.c: Include "symtab.h".
11847         (skip_prologue_using_sal): Delete function.
11848         * mips-tdep.c (skip_prologue_using_sal): Delete function.
11849         * rs6000-tdep.c (refine_prologue_limit): Mention
11850         skip_prologue_using_sal.
11851         * ia64-tdep.c (refine_prologue_limit): Ditto.
11852         * Makefile.in: Update dependencies.
11853
11854 2004-02-16  Andrew Cagney  <cagney@redhat.com>
11855
11856         * config/alpha/tm-nbsd.h: Update copyright, delete #undef
11857         START_INFERIOR_TRAPS_EXPECTED.
11858         * config/alpha/tm-fbsd.h: Update copyright, delete #undef
11859         START_INFERIOR_TRAPS_EXPECTED.
11860         * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
11861         Delete macro.
11862         * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
11863         macro, moved to "nm-osf.h".  Update copyright.
11864         * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
11865         update copyright.
11866
11867         * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
11868         and function replacing FRAMELESS_FUNCTION_INVOCATION.
11869         * blockframe.c (legacy_frameless_look_for_prologue): Rename
11870         frameless_look_for_prologue.
11871         * frame.h (legacy_frameless_look_for_prologue): Rename
11872         frameless_look_for_prologue.
11873         * gdbarch.h, gdbarch.c: Re-generate.
11874         * sh64-tdep.c (sh64_gdbarch_init): Update.
11875         * sh-tdep.c (sh_gdbarch_init): Update.
11876         * s390-tdep.c (s390_gdbarch_init): Update.
11877         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11878         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11879         * m68k-tdep.c (m68k_gdbarch_init): Update.
11880         (delta68_frame_args_address): Update.
11881         * m32r-tdep.c (m32r_gdbarch_init): Update.
11882         * hppa-tdep.c (hppa_gdbarch_init): Update.
11883         * h8300-tdep.c (h8300_gdbarch_init): Update.
11884         * frv-tdep.c (frv_gdbarch_init): Update.
11885         (frv_frameless_function_invocation): Update.
11886         * cris-tdep.c (cris_gdbarch_init): Update.
11887         (cris_frameless_function_invocation): Update.
11888         * avr-tdep.c (avr_gdbarch_init): Update.
11889         * arm-tdep.c (arm_gdbarch_init): Update.
11890         * stack.c (frame_info): Update, call predicate.
11891         * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
11892         * frame.c (legacy_get_prev_frame): Update, call predicate..
11893         * arch-utils.c (generic_frameless_function_invocation_not): Delete.
11894         * arch-utils.h (generic_frameless_function_invocation_not): Delete.
11895         * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
11896         invocation.
11897         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11898         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11899         * vax-tdep.c (vax_gdbarch_init): Ditto.
11900
11901         * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
11902         function.
11903
11904 2004-02-16  Daniel Jacobowitz  <drow@mvista.com>
11905
11906         * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
11907         initializations.
11908
11909 2004-02-16  Andrew Cagney  <cagney@redhat.com>
11910
11911         * tui/tui-windata.c: Include "gdb_string.h".
11912         * tui/tui-source.c, tui/tui-winsource.c: Ditto.
11913         * tui/tui-layout.c, tui/tui-command.c: Ditto.
11914         * Makefile.in: Update dependencies.
11915
11916 2004-02-16  Daniel Jacobowitz  <drow@mvista.com>
11917
11918         * Makefile.in (infrun.o): Add $(gdb_assert_h).
11919         * infrun.c: Include "gdb_assert.h".
11920         (singlestep_ptid, saved_singlestep_ptid)
11921         (stepping_past_singlestep_breakpoint): New variables.
11922         (resume): Set singlestep_ptid.  Check for singlestep thread
11923         hop.
11924         (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
11925         (handle_inferior_event): Handle singlestep thread hop.
11926
11927 2004-02-16  Andrew Cagney  <cagney@redhat.com>
11928
11929         * dwarf2-frame.c (dwarf2_frame_ops): New function.
11930         (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
11931         (dwarf2_frame_init_reg): Ditto.
11932
11933         * printcmd.c (display_command): Check that EXP isn't NULL.  Fix
11934         suggested by Joshua Neuheisel
11935
11936         * configure.in: Always check for curses, including pdcurses.
11937         Warn, instead of error, when no curses are found.  Enable TUI when
11938         curses is available.
11939         * configure: Re-generate.
11940
11941 2004-02-16  Corinna Vinschen  <vinschen@redhat.com>
11942
11943         * sh-tdep.c (sh_register_convert_to_virtual): Rename from
11944         sh_sh4_register_convert_to_virtual.
11945         (sh_register_convert_to_raw): Rename from
11946         sh_sh4_register_convert_to_raw.
11947         (sh_pseudo_register_read): Accomodate above name change.
11948         (sh_pseudo_register_write): Ditto.
11949
11950 2004-02-16  Corinna Vinschen  <vinschen@redhat.com>
11951
11952         * sh-tdep.c (sh_generic_register_name): Remove.
11953         (sh_gdbarch_init): Use sh_sh_register_name in default case.
11954
11955 2004-02-15  Andrew Cagney  <cagney@redhat.com>
11956
11957         * configure.in (build_warnings): Add -Wunused-function.
11958         * configure: Re-generate.
11959
11960         * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
11961         * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
11962
11963         * procfs.c (procfs_init_inferior): Assume that
11964         START_INFERIOR_TRAPS_EXPECTED is defined.
11965         * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
11966         * config/ns32k/tm-nbsd.h: Delete file,
11967         START_INFERIOR_TRAPS_EXPECTED already defined as 2.
11968
11969         * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
11970         * config/vax/tm-vax.h: Delete file.
11971
11972         * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11973         * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11974         * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11975         * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11976         * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
11977         * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11978         * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
11979
11980 2004-02-15  Mark Kettenis  <kettenis@gnu.org>
11981
11982         * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
11983         * dwarf2-frame.c (dwarf2_frame_data): New variable.
11984         (struct dwarf2_frame_ops): New.
11985         (dwarf2_frame_default_init_reg): New function, based on
11986         dwarf2_frame_init_reg.
11987         (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
11988         (dwarf2_frame_init_reg): Call architecture-specific function.
11989         (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
11990         (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
11991         instead of dwarf2_frame_data.
11992         (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
11993         Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
11994
11995 2004-02-15  Andrew Cagney  <cagney@redhat.com>
11996
11997         * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
11998         register_gdbarch_swap.
11999         (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
12000         * f-lang.c (_initialize_f_language): Update, use
12001         DEPRECATED_REGISTER_GDBARCH_SWAP.
12002         * remote.c (_initialize_remote): Ditto.
12003         * regcache.c (_initialize_regcache): Ditto.
12004         * parse.c (_initialize_parse): Ditto.
12005         * infrun.c (_initialize_infrun): Ditto.
12006         * mi/mi-main.c (_initialize_mi_main): Ditto.
12007         * gdbtypes.c (_initialize_gdbtypes): Ditto.
12008
12009         * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
12010         poking .cacheable directly.
12011         * symfile.c (symfile_bfd_open): Ditto.
12012
12013         * Makefile.in: Update all dependencies.
12014
12015         * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
12016         (.y.c, .l.c): Specify implicit rule.  Instead of .tab.c, generate
12017         .c.  Update references.  Delete unnecessary .tab.c and -lex.c rules.
12018         (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
12019         (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
12020
12021 2004-02-14  Andrew Cagney  <cagney@redhat.com>
12022
12023         * arch-utils.c (legacy_convert_register_p): Check
12024         DEPRECATED_REGISTER_CONVERTIBLE_P.
12025         * findvar.c (value_of_register): Ditto.
12026
12027         * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
12028         * gdbarch.h, gdbarch.c: Re-generate.
12029         * arch-utils.c (deprecated_register_convertible_not): Delete.
12030         * arch-utils.h (deprecated_register_convertible_not): Delete.
12031         * mi/mi-main.c (get_register): Update.  Update copyright.
12032         * infcmd.c (default_print_registers_info): Update.
12033
12034         * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
12035         (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
12036         (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
12037         * gdbarch.h, gdbarch.c: Re-generate.
12038         * frame.c (deprecated_get_next_frame_hack): Delete function.
12039         * frame.h (deprecated_get_next_frame_hack): Delete declaration.
12040         * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
12041         Update.
12042         * infcall.c (call_function_by_hand): Update.
12043
12044 2004-02-14  Elena Zannoni  <ezannoni@redhat.com>
12045
12046         * symfile.c (init_entry_point_info, entry_point_address): Move
12047         from here...
12048         * objfiles.c (init_entry_point_info, entry_point_address):..to
12049         here.
12050         * symfile.h (init_entry_point_info, entry_point_address): Remove
12051         prototypes.
12052         * objfiles.h (init_entry_point_info, entry_point_address):Add
12053         prototypes.
12054         * cris-tdep.c: Remove include of symfile.h. Add include of
12055         objfiles.h.
12056         * infcall.c: Ditto.
12057         * mcore-tdep.c: Ditto.
12058         * mn10300-tdep.c: Ditto.
12059         * sh64-tdep.c: Ditto.
12060         * v850-tdep.c: Ditto.
12061         * arm-tdep.c: Remove include of symfile.h.
12062         * blockframe.c: Ditto.
12063         * coffread.c: Ditto.
12064         * dbxread.c: Ditto.
12065         * dwarf2read.c: Ditto.
12066         * dwarfread.c: Ditto.
12067         * frv-tdep.c: Ditto.
12068         * ia64-tdep.c: Ditto.
12069         * mdebugread.c: Ditto.
12070         * mipsread.c: Ditto.
12071         * rs6000-tdep.c: Ditto.
12072         * s390-tdep.c: Ditto.
12073         * sh-tdep.c: Ditto.
12074         * xstormy16-tdep.c: Ditto.
12075         * gdbarch.sh: Remove include of symfile.h.
12076         * gdbarch.c: Regenerate.
12077         * solib-irix.c (enable_break): Use entry_point_address().
12078         Add comment about include file.
12079         * xcoffread.c: Add comment about include file.
12080         * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
12081         (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
12082         (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
12083         (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
12084         (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
12085
12086 2004-02-13  Andrew Cagney  <cagney@redhat.com>
12087
12088         * corelow.c (core_xfer_partial): Use "struct bfd_section".
12089         * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
12090         copyright.
12091         * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
12092
12093 2004-02-12  Fred Fish  <fnf@redhat.com>
12094
12095         * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
12096          set_gdbarch_store_return_value.
12097
12098 2004-02-12  Andrew Cagney  <cagney@redhat.com>
12099
12100         * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
12101         (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
12102         (interrupt_query): Ditto.
12103         (ofunc): Delete unused variable.
12104         * cris-tdep.c (cris_abi): Delete unused function.
12105         (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
12106         (cris_get_wide_opcode, cris_get_short_size): Ditto.
12107         (cris_get_asr_quick_shift_steps): Ditto.
12108         (cris_skip_prologue_frameless_p): Ditto.
12109         * arm-tdep.c (arm_push_return_address): Delete unused function.
12110         (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
12111         * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
12112         * s390-tdep.c (s390_function_start): Delete unused function.
12113
12114 2004-02-12  Andrew Cagney  <cagney@redhat.com>
12115
12116         * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
12117         gdbarch.h, gdbarch.c: Re-generate.
12118         * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
12119         to generic_prologue_frameless_p.
12120         * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
12121         * arch-utils.c (generic_prologue_frameless_p): Delete function.
12122
12123 2004-02-11  Daniel Jacobowitz  <drow@mvista.com>
12124
12125         * mips-linux-tdep.c: Include "frame.h".
12126         (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
12127         (mips_linux_skip_resolver): New functions.
12128         (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
12129         and set_gdbarch_in_solib_call_trampoline.
12130         * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
12131         to after set_gdbarch_in_solib_return_trampoline.  Only set the
12132         solib hooks to mips16 functions if the OS ABI is unknown.
12133         * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
12134         including "config/tm-linux.h".
12135         (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
12136         * Makefile.in (mips-linux-tdep.o): Update.
12137
12138 2004-02-11  David Carlton  <carlton@kealia.com>
12139
12140         * linespec.c (decode_compound): Only look for a class symbol when
12141         considering all but the rightmost component.
12142
12143 2004-02-11  Andrew Cagney  <cagney@redhat.com>
12144
12145         * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
12146         abi code are are separatly grouped.
12147
12148 2004-02-11  Andrew Cagney  <cagney@redhat.com>
12149
12150         * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
12151         * gdbarch.h, gdbarch.c: Re-generate.
12152         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12153         * v850-tdep.c (v850_gdbarch_init): Update.
12154         * sh64-tdep.c (sh64_gdbarch_init): Update.
12155         * sh-tdep.c (sh_gdbarch_init): Update.
12156         * s390-tdep.c (s390_gdbarch_init): Update.
12157         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12158         * mips-tdep.c (mips_gdbarch_init): Update.
12159         * mcore-tdep.c (mcore_gdbarch_init): Update.
12160         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12161         * m32r-tdep.c (m32r_gdbarch_init): Update.
12162         * ia64-tdep.c (ia64_gdbarch_init): Update.
12163         * hppa-tdep.c (hppa_gdbarch_init): Update.
12164         * h8300-tdep.c (h8300_gdbarch_init): Update.
12165         * frv-tdep.c (frv_gdbarch_init): Update.
12166         * d10v-tdep.c (d10v_gdbarch_init): Update.
12167         * cris-tdep.c (cris_gdbarch_init): Update.
12168         * avr-tdep.c (avr_gdbarch_init): Update.
12169         * arm-tdep.c (arm_gdbarch_init): Update.
12170         * alpha-tdep.c (alpha_gdbarch_init): Update.
12171
12172 2004-02-11  Corinna Vinschen  <vinschen@redhat.com>
12173
12174         * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
12175         comma.
12176         (sh_sh4al_dsp_register_name): Ditto.
12177
12178 2004-02-10  Andrew Cagney  <cagney@redhat.com>
12179
12180         * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
12181         (mips_init_frame_pc_first): Delete function.
12182         (mips_frame_saved_pc): Delete function.
12183         (mips_frame_chain): Delete function.
12184         (mips_init_extra_frame_info): Delete function.
12185         (mips_xfer_register): Delete unused variable "reg".
12186         (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
12187         (mips_n32n64_return_value): Delete unused variable "reg".
12188         (mips_n32n64_return_value): Delete unused variable "pos".
12189         (mips_o32_push_dummy_call): Delete unused variable "valbuf".
12190         (mips_o32_return_value): Delete unused variable "pos".
12191         (mips_o64_push_dummy_call): Delete unused variable "valbuf".
12192         (mips_print_fp_register): Delete unused variable "namelen"
12193         (mips_print_fp_register): Delete unused variable "flt2"
12194         (get_frame_pointer): Delete function.
12195         (cached_proc_desc): Delete static variable.
12196         (mips_pop_frame): Delete function.
12197         (mips_find_saved_regs): Delete function.
12198         (mips_get_saved_register): Delete function.
12199         (mips_saved_pc_after_call): Delete function.
12200         (SIGFRAME_BASE): Delete macro.
12201         (SIGFRAME_FPREGSAVE_OFF): Delete macro.
12202         (SIGFRAME_PC_OFF): Delete macro.
12203         (SIGFRAME_REGSAVE_OFF): Delete macro.
12204         (mips_dump_tdep): Do not print deleted macro definitions.
12205
12206 2004-02-10  Andrew Cagney  <cagney@redhat.com>
12207
12208         * Makefile.in (SFILES): Remove explictly listed tui files.
12209         (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
12210
12211 2004-02-10  Jeff Johnston  <jjohnstn@redhat.com>
12212
12213         * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
12214         to use paddr functions to format ia64 addresses and long values.
12215         (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
12216         (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
12217         (get_kernel_table, ia64_find_proc_info_x): Ditto.
12218         (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
12219         (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
12220
12221 2004-02-10  Andrew Cagney  <cagney@redhat.com>
12222
12223         * defs.h: Do not include "tui.h".
12224         * gdb_curses.h: New file.
12225         * tui/tui-hooks.h: New file.
12226         * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
12227         (tui_install_hooks, tui_remove_hooks): Delete declarations.
12228         (tui_initialize_io): Delete declaration.
12229         (tui_initialize_readline: Delete redundant declaration.
12230         (struct tui_point): Delete definition.
12231         * tui/tui-data.h (struct tui_point): Define.
12232         * cli/cli-decode.c [TUI]: Include "tui/tui.h".
12233         * utils.c: Include "tui/tui.h".
12234         * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
12235         * printcmd.c [TUI]: Include "tui/tui.h".
12236         * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
12237         * tui/tui-command.c: Include "gdb_curses.h".
12238         * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
12239         * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
12240         * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
12241         * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
12242         * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
12243         * Makefile.in: Update all dependencies.
12244         (tui_hooks_h, gdb_curses_h): Define.
12245         (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
12246
12247 2004-02-10  Elena Zannoni  <ezannoni@redhat.com>
12248
12249         * objfiles.h (struct objfile): Remove unused fields auxf1 and
12250         auxf2. Add comments about some other rarely used fields.
12251
12252 2004-02-10  Andrew Cagney  <cagney@redhat.com>
12253
12254         * Makefile.in (init.c): Fix script removing duplicates. Problem
12255         reported by Peter Schauer.
12256
12257 2004-02-09  Elena Zannoni  <ezannoni@redhat.com>
12258
12259         * bcache.c (bcache_xmalloc): Use obstack_init instead of
12260         obstack_specify_allocation.
12261         * objfiles.c (allocate_objfile): Ditto.
12262         * solib-sunos.c (solib_add_common_symbols)
12263         (allocate_rt_common_objfile): Ditto.
12264         * symfile.c (reread_symbols): Ditto.
12265         * gdb_obstack.h: Add comment.
12266
12267 2004-02-09  Elena Zannoni  <ezannoni@redhat.com>
12268
12269         * linespec.c (decode_line_1, locate_first_half)
12270         (decode_compound, lookup_prefix_sym): Update comments. Delete old
12271         commented out code.
12272
12273 2004-02-09  Daniel Jacobowitz  <drow@mvista.com>
12274
12275         * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
12276         obstack_free.
12277
12278 2004-02-09  Andrew Cagney  <cagney@redhat.com>
12279
12280         * blockframe.c (find_pc_partial_function): If find_pc_overlay
12281         fails, try find_pc_section.  Fix PR c++/1267.
12282         * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
12283         instead of find_pc_mapped_section.
12284         (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
12285         not default to the section containing PC.  Fix PR symtab/1519.
12286
12287 2004-02-09  Andrew Cagney  <cagney@redhat.com>
12288
12289         * Makefile.in (mips-tdep.o): Update dependencies.
12290         * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
12291         "trad-frame.h".
12292         (mips_unwind_pc): Return the pseudo PC register.
12293         (mips_unwind_dummy_id): New function.
12294         (mips16_fetch_instruction): New function.
12295         (mips32_fetch_instruction): New function.
12296         (struct mips_frame_cache): Define.
12297         (mips_mdebug_frame_cache): New function.
12298         (mips_mdebug_frame_this_id): New function.
12299         (mips_mdebug_frame_prev_register): New function.
12300         (mips_mdebug_frame_unwind): Define.
12301         (mips_mdebug_frame_sniffer): New function.
12302         (mips_mdebug_frame_base_address): New function.
12303         (mips_mdebug_frame_base): Define.
12304         (mips_mdebug_frame_base_sniffer): New function.
12305         (mips_gdbarch_init): Append unwind and base sniffers.  Set
12306         unwind_dummy_id.
12307
12308 2004-02-08  Andrew Cagney  <cagney@redhat.com>
12309
12310         * frame.c: Print both the register number and name.
12311
12312         * Makefile.in (init.c): Eliminate duplicates.  Combine two greps
12313         and a sed into a single sed.  Make .c and .o patterns more robust.
12314         (OBS): Delete.
12315         (INIT_FILES): Replace OBS with COMMON_OBS.
12316         (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
12317
12318 2004-02-08  Mark Kettenis  <kettenis@gnu.org>
12319
12320         * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
12321         the PT_WCOOKIE request.
12322
12323 2004-02-08  Andrew Cagney  <cagney@redhat.com>
12324
12325         * mips-tdep.c (mips_unwind_pc): New function.
12326         (mips_gdbarch_init): Set mips_unwind_pc.
12327
12328         * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
12329         (get_frame_id): Allow the UNKNOWN_FRAME.
12330         (frame_register_unwind, get_frame_type): Ditto.
12331
12332         * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
12333         and DEPRECATED_FP_REGNUM.  Don't assume that the lack of
12334         unwind_dummy_id indicates a legacy frame.
12335
12336         * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
12337         * configure: Re-generate.
12338
12339         * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
12340         methods.
12341
12342 2004-02-08  Andrew Cagney  <cagney@redhat.com>
12343
12344         * configure.in (CONFIG_ALL): Set to Makefile target, and not
12345         makefile macro.
12346         * configure: Re-generate.
12347         (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
12348         * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
12349         (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
12350         (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
12351         (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
12352         (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
12353         (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
12354         (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
12355         (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
12356         (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
12357
12358 2004-02-07  Andrew Cagney  <cagney@redhat.com>
12359
12360         * Makefile.in: Update all dependencies.
12361
12362         * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
12363         * configure: Re-generate.
12364         * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
12365         (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
12366         (COMMON_OBS): Add "main.o" and "annotate.o".
12367         (ANNOTATE_OBS): Delete.
12368         (OBS): Remove ANNOTATE_OBS.
12369         (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
12370         CONFIG_INITS.
12371         (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
12372         against CONFIG_OBS and "main.o".
12373         (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
12374         (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
12375
12376         * tui/tui-command.c: Include "gdb_string.h", delete register
12377         attribute, use ISO-C function signatures.
12378         * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
12379         * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
12380         * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
12381         * tui/tui.c: Ditto.
12382
12383         * tui/tui-command.c: Change variable and function names to lower
12384         case.
12385         * tui/tui-data.c, tui/tui-disasm.c: Ditto.
12386         * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
12387         * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
12388         * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12389         * tui/tui-winsource.c, tui/tui.c: Ditto.
12390
12391 2004-02-07  Elena Zannoni  <ezannoni@redhat.com>
12392
12393         * buildsym.c (free_pending_blocks, finish_block)
12394         (record_pending_block, make_blockvector, end_symtab): Replace
12395         symbol_obstack with objfile_obstack.
12396         * coffread.c (process_coff_symbol, coff_read_struct_type)
12397         (coff_read_enum_type): Ditto.
12398         * cp-namespace.c (initialize_namespace_symtab)
12399         (check_one_possible_namespace_symbol): Ditto.
12400         * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
12401         (dwarf2_symbol_mark_computed): Ditto.
12402         * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
12403         * elfread.c (elf_symtab_read): Ditto.
12404         * hpread.c (hpread_symfile_init, hpread_symfile_init)
12405         (hpread_read_enum_type, hpread_read_function_type)
12406         (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
12407         Ditto.
12408         * jv-lang.c (get_java_class_symtab, add_class_symbol)
12409         (java_link_class_type): Ditto.
12410         * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
12411         (new_symbol): Ditto.
12412         * minsyms.c (install_minimal_symbols): Ditto.
12413         * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
12414         (terminate_minimal_symbol_table): Replace symbol_obstack with
12415         objfile_obstack.
12416         (free_objfile): Remove freeing of symbol_obstack.
12417         * objfiles.h: Remove symbol_obstack field.
12418         * pa64solib.c (add_to_solist): Replace symbol_obstack with
12419         objfile_obstack.
12420         * solib-sunos.c (allocate_rt_common_objfile): Remove init of
12421         symbol_obstack.
12422         (solib_add_common_symbols): Replace symbol_obstack with
12423         objfile_obstack.
12424         * somsolib.c (som_solib_add): Ditto.
12425         * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
12426         (common_block_start, common_block_end): Ditto.
12427         * symfile.c (reread_symbols): Remove freeing and init of
12428         symbol_obstack.
12429         (allocate_symtab): Rename symbol_obstack to objfile_obstack.
12430         * symfile.h: Update comment.
12431         * symmisc.c (print_objfile_statistics): Remove symbol_obstack
12432         stats printing.
12433         * symtab.c (symbol_set_names): Replace symbol_obstack with
12434         objfile_obstack.
12435         * symtab.h (struct general_symbol_info, struct minimal_symbol):
12436         Update comments.
12437         * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
12438         (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
12439         objfile_obstack.
12440
12441 2004-02-07  Andrew Cagney  <cagney@redhat.com>
12442
12443         * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
12444         "ansidecl.h".  Do not undef "reg" and "chtype".  Fix case of
12445         fields and variables.
12446         * tui/tui-wingeneral.h (m_beVisible): Delete macro.
12447         (m_beInvisible): Delete macro.
12448         * tui/tui-data.h: Fix case case fields and variables.
12449         (m_genWinPtrIsNull): Delete macro.
12450         (tui_win_list): Rename winList.
12451         (TUI_SRC_WIN): Rename srcWin.
12452         (TUI_DISASM_WIN): Rename disassemWin.
12453         (TUI_DATA_WIN): Rename dataWin.
12454         (TUI_CMD_WIN): Rename cmdWin.
12455         (m_genWinPtrNotNull): Delete macro.
12456         (m_winPtrIsNull): Delete macro.
12457         (m_winPtrNotNull): Delete macro.
12458         (tui_win_is_source_type): Replace m_winIsSourceType
12459         (tui_win_is_auxillary): Replace m_winIsAuzillary.
12460         (tui_win_has_locator): Replace m_hasLocator.
12461         (tui_set_win_highlight): Replace m_setWinHighlightOn and
12462         m_setWinHighlightOff.
12463         * tui/tui-data.c: Update references.
12464         (tui_win_is_source_type, tui_set_win_highlight): New functions.
12465         (tui_win_has_locator, tui_win_is_auxillary): New functions.
12466         * tui/tui-command.c, tui/tui-disasm.c: Update references.
12467         * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
12468         * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
12469         * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12470         * tui/tui-winsource.c, tui/tui.c: Ditto.
12471
12472 2004-02-07  Mark Kettenis  <kettenis@gnu.org>
12473
12474         * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
12475         * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
12476         StackGhost.
12477
12478         * sparc-tdep.c (sparc32_frame_prev_register): Rename local
12479         variable `i6' to `i7'.
12480         (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
12481
12482 2004-02-07  Andrew Cagney  <cagney@redhat.com>
12483
12484         * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
12485         (TuiPoint, TuiPointPtr): Ditto.
12486         (TuiStatus, TuiStatusPtr): Ditto.
12487         (TuiWinType, TuiWinTypePtr): Ditto.
12488         (struct tui_point): Rename _TuiPoint.
12489         (tui_get_low_disassembly_address): Rename
12490         tuiGetLowDisassemblyAddress.
12491         (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
12492         (tuiFree): Delete declaration.
12493         (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
12494         (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
12495         * tui/tui.c (tuiFree): Delete function.
12496         * cli/cli-cmds.c (disassemble_command): Update references.
12497         * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
12498         * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
12499         * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
12500         * tui/tui-winsource.c: Ditto.
12501
12502 2004-02-07  Elena Zannoni  <ezannoni@redhat.com>
12503
12504         * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
12505         coffstab_build_psymtabs, elfstab_build_psymtabs)
12506         (stabsect_build_psymtabs): Replace psymbol_obstack with
12507         objfile_obstack.
12508         * dwarf2-frame.c (decode_frame_entry_1): Ditto.
12509         * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
12510         Ditto.
12511         * dwarfread.c (scan_compilation_units): Ditto.
12512         * elfread.c (elfstab_offset_sections): Ditto.
12513         * hppa-tdep.c (read_unwind_info): Ditto.
12514         * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
12515         (hpread_end_psymtab): Ditto.
12516         * mdebugread.c (mdebug_build_psymtabs, add_pending)
12517         (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
12518         Ditto.
12519         * mips-tdep.c (non_heuristic_proc_desc): Ditto.
12520         * objfiles.c (add_to_objfile_sections)
12521         (build_objfile_section_table): Ditto.
12522         (allocate_objfile): Remove init of psymbol_obstack.
12523         (free_objfile): Remove freeing of psymbol_obstack.
12524         * objfiles.h (struct objfile): Remove field
12525         psymbol_obstack. Update comments.
12526         * pa64solib.c (pa64_solib_add_solib_objfile): Replace
12527         psymbol_obstack with objfile_obstack.
12528         * solib-sunos.c (allocate_rt_common_objfile): Remove init of
12529         psymbol_obstack.
12530         * somread.c (som_symfile_offsets, init_import_symbols)
12531         (init_export_symbols): Replace psymbol_obstack with
12532         objfile_obstack.
12533         * somsolib.c (som_solib_add_solib_objfile): Ditto.
12534         * symfile.c (default_symfile_offsets, syms_from_objfile)
12535         (reread_symbols): Remove freeing and init of psymbol_obstack.
12536         (cashier_psymtab): Update comment.
12537         * symmisc.c (print_objfile_statistics): Don't report stats for
12538         psymbol obstack.
12539         * symtab.h (struct general_symbol_info, struct partial_symtab):
12540         Update comments.
12541         * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
12542         (xcoff_symfile_offsets): Replace psymbol_obstack with
12543         objfile_obstack.
12544
12545 2004-02-07  Elena Zannoni  <ezannoni@redhat.com>
12546
12547         * objfiles.h (struct objfile): Add objfile_obstack field.
12548         Remove type_obstack field.
12549
12550         * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
12551         read_structure_scope read_enumeration, new_symbol): Replace
12552         type_obstack with objfile_obstack.
12553         * dwarfread.c (struct_type, enum_type): Ditto.
12554         * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
12555         (lookup_fundamental_type): Ditto.
12556         * gdbtypes.h (TYPE_ALLOC): Ditto.
12557         * hpread.c (hpread_read_enum_type, hpread_read_function_type)
12558         (hpread_read_doc_function_type, hpread_read_struct_type)
12559         (fix_static_member_physnames, hpread_read_array_type)
12560         (hpread_read_subrange_type, hpread_type_lookup): Ditto.
12561         * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
12562         (java_link_class_type): Ditto.
12563         * mdebugread.c (parse_type): Ditto.
12564         * objfiles.c (allocate_objfile, free_objfile): Ditto.
12565         * solib-sunos.c (solib_add_common_symbols): Ditto.
12566         * stabsread.c (define_symbol, read_type, read_member_functions,
12567         read_cpp_abbrev, read_one_struct_field): Ditto.
12568         * symfile.c (reread_symbols): Ditto.
12569         * symmisc.c (print_objfile_statistics): Ditto.
12570
12571 2004-02-07  Andrew Cagney  <cagney@redhat.com>
12572
12573         * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
12574         (tui_exec_info_content): Rename TuiExecInfoContent.
12575         (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
12576         (TuiWinInfo, TuiWinInfoPtr): Ditto.
12577         (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
12578         (TuiList, TuiListPtr): Ditto.
12579         (TuiLayoutType, TuiLayoutTypePtr): Ditto.
12580         (TuiDataType, TuiDataTypePtr): Ditto.
12581         (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
12582         (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
12583         (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
12584         (TuiSourceElement, TuiSourceElementPtr): Ditto.
12585         (TuiDataElement, TuiDataElementPtr): Ditto.
12586         (TuiWinElement, TuiWinElementPtr): Ditto.
12587         (TuiDataInfo, TuiDataInfoPtr): Ditto.
12588         (TuiCommandElement, TuiCommandElementPtr): Ditto.
12589         (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
12590         (TuiWhichElement, TuiWhichElementPtr): Ditto.
12591         (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
12592         (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
12593         * tui/tui-command.c, tui/tui-data.c: Update references.
12594         * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
12595         * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
12596         * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12597         * tui/tui-winsource.c, tui/tui.c: Ditto.
12598
12599 2004-02-07  Mark Kettenis  <kettenis@gnu.org>
12600
12601         * dwarf2-frame.h: Update copyright.
12602         (enum dwarf2_frame_reg_rule): New.
12603         (struct dwarf2_frame_state_reg): New.
12604         (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
12605         * dwarf2-frame.c: Update copyright.
12606         (enum dwarf2_reg_rule): Remove.
12607         (struct dwarf2_frame_state): Remove defenition of `struct
12608         dwarf2_frame_state_reg'.
12609         (read_reg): Call get_frame_arch to get the architecture instead of
12610         using CURRENT_GDBARCH.
12611         (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
12612         DWARF2_FRAME_.
12613         (dwarf2_frame_init_reg): New function.
12614         (dwarf2_frame_cache): Call get_frame_arch to get the architecture
12615         instead of using CURRENT_GDBARCH.  Call dwarf2_frame_init_reg to
12616         initialize the register state.  Prefix old `enum dwarf2_reg_rule'
12617         tags with DWARF2_FRAME_.
12618         (dwarf2_frame_prev_register): Call get_frame_arch to get the
12619         architecture instead of using CURRENT_GDBARCH.  Prefix old `enum
12620         dwarf2_reg_rule' tags with DWARF2_FRAME_.
12621
12622 2004-02-06  Andrew Cagney  <cagney@redhat.com>
12623
12624         * tui/tui-data.h (struct tui_list): Rename _TuiList.
12625         (enum tui_data_type): Rename _TuiDataType.
12626         (struct tui_layout_def): Rename _TuiLayoutDef.
12627         (struct tui_source_element): Rename _TuiSourceElement.
12628         (struct tui_data_element): Rename _TuiDataElement.
12629         (struct tui_command_element): Rename _TuiCommandElement.
12630         (struct tui_locator_element): Rename _TuiLocatorElement.
12631         (union tui_which_element): Define.
12632         (struct tui_win_element): Rename _TuiWinElement.
12633         (struct tui_data_info): Rename _TuiDataInfo.
12634         (struct tui_source_info): Rename _TuiSourceInfo.
12635         (struct tui_command_info): Rename _TuiCommandInfo.
12636         (tui_initialize_static_data): Rename initializeStaticData.
12637         (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
12638         (tui_alloc_win_info): Rename allocWinInfo.
12639         (tui_init_generic_part): Rename initGenericPart.
12640         (tui_init_win_info): Rename initWinInfo.
12641         (tui_alloc_content): Rename allocContent.
12642         (tui_add_content_elements): Rename addContentElements.
12643         (tui_init_content_element): Rename initContentElement.
12644         (tui_free_window): Rename freeWindow.
12645         (tui_free_win_content): Rename freeWinContent.
12646         (tui_free_data_content): Rename freeDataContent.
12647         (tui_free_all_source_wins_content): Rename
12648         freeAllSourceWinsContent.
12649         (tui_del_window): Rename tuiDelWindow.
12650         (tui_del_data_windows): Rename tuiDelDataWindows.
12651         (tui_partial_win_by_name): Rename partialWinByName.
12652         (tui_win_name): Rename winName.
12653         (tui_current_layout): Rename currentLayout.
12654         (tui_set_current_layout_to): Rename setCurrentLayoutTo.
12655         (tui_term_height): Rename termHeight.
12656         (tui_set_term_height_to): Rename setTermHeightTo.
12657         (tui_term_width): Rename termWidth.
12658         (tui_set_term_width_to): Rename setTermWidthTo.
12659         (tui_set_gen_win_origin): Rename setGenWinOrigin.
12660         (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
12661         (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
12662         (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
12663         (tui_source_windows): Rename sourceWindows.
12664         (tui_clear_source_windows): Rename clearSourceWindows.
12665         (tui_clear_source_windows_detail): Rename
12666         clearSourceWindowsDetail.
12667         (tui_clear_win_detail): Rename clearWinDetail.
12668         (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
12669         (tui_default_tab_len): Rename tuiDefaultTabLen.
12670         (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
12671         (tui_win_with_focus): Rename tuiWinWithFocus.
12672         (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
12673         (tui_layout_def): Rename tuiLayoutDef.
12674         (tui_win_resized): Rename tuiWinResized.
12675         (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
12676         (tui_next_win): Rename tuiNextWin.
12677         (tui_prev_win): Rename tuiPrevWin.
12678         (tui_add_to_source_windows): Rename addToSourceWindows.
12679         * tui/tui-winsource.c, tui/tui-win.c: Update references.
12680         * tui/tui-layout.c, tui/tui-source.c: Ditto.
12681         * tui/tui-stack.c, tui/tui-io.c: Ditto.
12682         * tui/tui.c, tui/tui-data.c: Ditto.
12683         * tui/tui-interp.c, tui/tui-data.c: Ditto.
12684         * tui/tui-disasm.c, tui/tui-command.c: Ditto.
12685
12686         * tui/tui-source.h: Update copyright.  Include "tui-data.h".
12687         (struct symtab): Declare.
12688         (tui_set_source_content): Rename tuiSetSourceContent.
12689         (tui_show_symtab_source): Rename tuiShowSource.
12690         (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
12691         (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
12692         * tui/tui-source.c: Update copyright.  Update references.
12693         * tui/tui-win.c, tui/tui-winsource.c: Update references.
12694         * tui/tui-stack.c: Update references.
12695
12696         * tui/tui-win.h: Update copyright.  Include "tui-data.h".
12697         (struct tui_win_info): Declare.
12698         (tui_scroll_forward): Rename tuiScrollForward.
12699         (tui_scroll_backward): Rename tuiScrollBackward.
12700         (tui_scroll_left): Rename tuiScrollLeft.
12701         (tui_scroll_right): Rename tuiScrollRight.
12702         (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
12703         (tui_resize_all): Rename tuiResizeAll.
12704         (tui_refresh_all_win): Rename tuiRefreshAll.
12705         (tui_sigwinch_handler): Rename tuiSigwinchHandler.
12706         * tui/tui-layout.c, * tui/tui-io.c: Update references.
12707         * tui/tui-wingeneral.h, * tui/tui.c: Update references.
12708         * tui/tui-disasm.c, * tui/tui-command.c: Update references.
12709
12710         * tui/tui-windata.h: Update copyright.  Include "tui-data.h".
12711         (tui_erase_data_content): Rename tuiEraseDataContent.
12712         (tui_display_all_data): Rename tuiDisplayAllData.
12713         (tui_check_data_values): Rename tuiCheckDataValues.
12714         (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
12715         (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
12716         (tui_first_data_element_no_in_line): Rename
12717         tuiFirstDataElementNoInLine.
12718         (tui_delete_data_content_windows): Rename
12719         tuiDeleteDataContentWindows.
12720         (tui_refresh_data_win): Rename tuiRefreshDataWin.
12721         (tui_display_data_from): Rename tuiDisplayDataFrom.
12722         (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
12723         * tui/tui-windata.c, tui/tui-hooks.c: Update references.
12724         * tui/tui-win.c, tui/tui-regs.c: Update references.
12725         * tui/tui-layout.c, tui/tui.c: Update references.
12726
12727         * tui/tui-wingeneral.h: Update copyright.
12728         (m_allBeVisible): Delete macro.
12729         (m_allBeInvisible): Delete macro.
12730         (struct tui_gen_win_info): Declare.
12731         (struct tui_win_info): Declare.
12732         (tui_unhighlight_win): Rename unhighlightWin.
12733         (tui_make_visible, tui_make_invisible): Replace makeVisible.
12734         (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
12735         (tui_make_window): Rename makeWindow.
12736         (tui_copy_win): Rename copyWin.
12737         (tui_box_win): Rename boxWin.
12738         (tui_highlight_win): Rename highlightWin.
12739         (tui_check_and_display_highlight_if_needed): Rename
12740         checkAndDisplayHighlightIfNeeded.
12741         (tui_refresh_all): Rename refreshAll.
12742         (tui_delete_win): Rename tuiDelwin.
12743         (tui_refresh_win): Rename tuiRefreshWin.
12744         * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
12745         (tui_make_visible, tui_make_invisible): New functions.
12746         (tui_make_all_visible, tui_make_all_invisible): New functions.
12747         (make_all_visible): Rename makeAllVisible.
12748         * tui/tui-winsource.c, tui/tui-windata.c: Update references.
12749         * tui/tui-data.c, tui/tui-winsource.c: Update references.
12750         * tui/tui-windata.c, tui/tui-win.c: Update references.
12751         * tui/tui-regs.c, tui/tui-layout.c: Update references.
12752         * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
12753
12754 2004-02-06  Mark Kettenis  <kettenis@gnu.org>
12755
12756         * proc-api.c (write_with_trace): Initialize local variable to
12757         silence compiler warning.
12758
12759 2004-02-06  Andrew Cagney  <cagney@redhat.com>
12760
12761         * tui/tui-source.h: Do not include "defs.h".
12762         (struct tui_win_info): Declare.
12763         (tui_set_source_content_nil): Declare.
12764         * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
12765         (union tui_line_or_address): Rename _TuiLineOrAddress.
12766         * tui/tui-winsource.h: Update copyright.  Include "tui-data.h".
12767         (tui_update_source_window): Rename tuiUpdateSourceWindow.
12768         (tui_update_source_window_as_is): Rename
12769         tuiUpdateSourceWindowAsIs.
12770         (tui_update_source_windows_with_addr): Rename
12771         tuiUpdateSourceWindowsWithAddr.
12772         (tui_update_source_windows_with_line): Rename
12773         tuiUpdateSourceWindowsWithLine.
12774         (tui_clear_source_content): Rename tuiClearSourceContent.
12775         (tui_erase_source_content): Rename tuiEraseSourceContent.
12776         (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
12777         (tui_show_source_content): Rename tuiShowSourceContent.
12778         (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
12779         (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
12780         (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
12781         (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
12782         (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
12783         (tui_update_exec_info): Rename tuiUpdateExecInfo.
12784         (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
12785         (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
12786         (tui_line_is_displayed): Rename tuiLineIsDisplayed.
12787         (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
12788         (struct tui_win_info): Declare.
12789         * tui/tui-stack.c: Update references.
12790         * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
12791         * tui/tui-win.c, tui/tui-source.c: Ditto.
12792         * tui/tui.c, tui/tui-disasm.c: Ditto.
12793
12794 2004-02-06  Mark Kettenis  <kettenis@gnu.org>
12795
12796         * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
12797         of UCONTEXT_ADDR.  Fixes PR backtrace/1545.
12798
12799 2004-02-05  Mark Kettenis  <kettenis@gnu.org>
12800
12801         * infrun.c (handle_inferior_event): Allow for breakpoint
12802         instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
12803         and SIGEMT.  Update comments.
12804         * NEWS (Revised SPARC target): Mention support for non-executable
12805         stack.
12806
12807 2004-02-04  Mark Kettenis  <kettenis@gnu.org>
12808
12809         * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
12810         * inftarg.c: Update copyright year.
12811         (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
12812         * sparc-nat.c: Include "target.h" and "gdb_assert.h".
12813         (sparc_xfer_wcookie): New function.
12814         * sparc-tdep.c (sparc_fetch_wcookie): New function.
12815         * Makefile.in (sparc-nat.o): Update dependencies.
12816         * config/sparc/nm-nbsd.h: Include "target.h".
12817         (NATIVE_XFER_WCOOKIE): New define.
12818         (sparc_xfer_wcookie): New prototype.
12819
12820 2004-02-04  Andrew Cagney  <cagney@redhat.com>
12821
12822         * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
12823         SYSCALL_TRAP function.
12824         (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
12825
12826 2004-02-04  Andrew Cagney  <cagney@redhat.com>
12827             Daniel Jacobowitz  <drow@mvista.com>
12828
12829         * objfiles.h: Delete comments refering to inside_entry_func and
12830         DEPRECATED_FRAME_CHAIN_VALID.
12831         * defs.h (inside_entry_func): Update prototype..
12832         * blockframe.c (inside_entry_func): Rename to
12833         legacy_inside_entry_func.  Add new inside_entry_func taking a frame.
12834         * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
12835
12836 2004-02-03  Jeff Johnston  <jjohnstn@redhat.com>
12837
12838         * breakpoint.c (struct captured_parse_breakpoint_args):  Move
12839         outside of #ifdef SOLIB_ADD region.
12840         (do_restore_lang_radix_cleanup): Ditto.
12841         (resolve_pending_breakpoint): Ditto.
12842
12843 2004-02-03  Andrew Cagney  <cagney@redhat.com>
12844
12845         * ia64-tdep.c (read_sigcontext_register): Delete unused function.
12846         (process_note_abi_tag_sections): Delete unused function.
12847         (ia64_read_fp): Delete unused function.
12848         (gdbarch_extract_struct_value_address): Delete declaration.
12849
12850 2004-02-02  Andrew Cagney  <cagney@redhat.com>
12851
12852         * vax-tdep.c (vax_frame_chain): Delete call to
12853         deprecated_inside_entry_file.
12854         * ns32k-tdep.c (ns32k_frame_chain): Ditto.
12855
12856 2004-02-02  Mark Kettenis  <kettenis@gnu.org>
12857
12858         * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
12859         column that's "empty" or "same value" when eliminating REG_RA
12860         rules.
12861
12862 2004-02-02  Jeff Johnston  <jjohnstn@redhat.com>
12863
12864         * NEWS: Add information about new pending breakpoint support.
12865
12866 2004-02-02  Jeff Johnston  <jjohnstn@redhat.com>
12867
12868         * breakpoint.h (struct breakpoint): Add new flag, from_tty,
12869         and pending fields for pending breakpoint support.
12870         * breakpoint.c (breakpoint_enabled): Add check for not pending.
12871         (condition_command): Only parse condition if not a pending
12872         breakpoint.
12873         (print_one_breakpoint): Add support for pending breakpoints.
12874         (describe_other_breakpoints): Add checks to verify we are not
12875         dealing with pending breakpoints.
12876         (check_duplicates): Don't check pending breakpoints.
12877         (set_raw_breakpoint): Initialize pending flag.
12878         (do_restore_lang_radix_cleanup): New cleanup routine.
12879         (resolve_pending_breakpoint): New function.
12880         (re_enable_breakpoints_in_shlibs): Try and resolve any
12881         pending breakpoints via resolve_pending_breakpoint.
12882         (mention): Add pending breakpoint support.
12883         (parse_breakpoint_sals): Add new parameter to pass to
12884         decode_line_1 to indicate silent errors when files or functions
12885         are not found.  Change all callers.
12886         (do_captured_parse_breakpoint): New function.
12887         (break_command_1): Change prototype to return an rc value and to
12888         take an optional pending breakpoint pointer.  Support creating
12889         a pending breakpoint if a "not found" form of error occurs when
12890         parsing the breakpoint.  Also support resolving an existing pending
12891         breakpoint and be silent if the resolution fails.
12892         (create_breakpoints): Change prototype to take pending breakpoint
12893         pointer.  When resolving a pending breakpoint, use the new pointer
12894         to provide a conditional or commands added by the end-user.
12895         (delete_breakpoint): Add appropriate check for pending.
12896         (breakpoint_re_set_one): Ditto.
12897         (do_enable_breakpoint): Ditto.
12898
12899 2004-02-02  David Carlton  <carlton@kealia.com>
12900
12901         * valops.c (enum oload_classification): New.
12902         (find_overload_match): Break implementation into separate
12903         functions; delete #if 0'd code; look for symbols within
12904         namespaces.
12905         (find_oload_champ_namespace,find_oload_champ_namespace_loop)
12906         (find_oload_champ,oload_method_static,classify_oload_match): New.
12907         * cp-support.h: Add declaration for cp_func_name; update
12908         declaration for make_symbol_overload_list.
12909         * cp-support.c (cp_func_name): New.
12910         (overload_list_add_symbol): Fix comment, use
12911         SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
12912         (make_symbol_overload_list): Take a function name and a namespace
12913         instead of a symbol; change implementation.
12914         (make_symbol_overload_list_using): New.
12915         (make_symbol_overload_list_qualified, read_in_psymtabs): New.
12916
12917 2004-02-02  Fred Fish  <fnf@redhat.com>
12918
12919         * main.c (gdb_stdtarg): Move definition to group with other
12920         gdb_stdtarg definitions and update copyright years.
12921         * remote-sim.c (gdb_os_write_stderr): Write output to
12922         gdb_stdtargerr stream instead of gdb_stdtarg stream.
12923         (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
12924         gdb_stderr stream and update copyright years.
12925
12926 2004-02-01  Daniel Jacobowitz  <drow@mvista.com>
12927
12928         * Makefile.in (mips-linux-nat.o): Update dependencies.
12929         * mips-linux-nat.c: Include mips-tdep.h.
12930
12931 2004-02-01  Roland McGrath  <roland@redhat.com>
12932
12933         * sol-thread.c (sol_thread_xfer_partial): New function.
12934         (init_sol_thread_ops): Use that for to_xfer_partial hook.
12935         (init_sol_core_ops): Likewise.
12936
12937         * procfs.c (procfs_xfer_partial): New function.
12938         (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
12939         * Makefile.in (procfs.o): Add $(auxv_h) dep.
12940
12941         * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
12942         procfs_xfer_auxv function.
12943
12944         * procfs.c (procfs_make_note_section): If we can read
12945         TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
12946         * linux-proc.c (linux_make_note_section): Likewise.
12947
12948         * auxv.h: New file.
12949         * auxv.c: New file.
12950         * Makefile.in (auxv_h): New variable.
12951         (COMMON_OBS): Add auxv.o here.
12952         (auxv.o): New target.
12953
12954         * corelow.c (core_xfer_partial): New function.
12955         (init_core_ops): Use it for core_ops.to_xfer_partial.
12956
12957         * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
12958         * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
12959         macro if that is defined.
12960
12961 2004-02-01  Daniel Jacobowitz  <drow@mvista.com>
12962
12963         * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
12964         and check the specified thread for each breakpoint.
12965         * breakpoint.h (bpstat_stop_status): Update prototype.
12966         * infrun.c (handle_inferior_event): Update calls to
12967         bpstat_stop_status.
12968
12969 2004-02-01  Daniel Jacobowitz  <drow@mvista.com>
12970
12971         * Makefile.in (cli-cmds.o): Add $(readline_h).
12972
12973 2004-02-01  Daniel Jacobowitz  <drow@mvista.com>
12974
12975         * cli/cli-cmds.c: Include readline.h.
12976         (complete_command): Pass the start of the last word to
12977         complete_line.
12978
12979 2004-01-31  Daniel Jacobowitz  <drow@mvista.com>
12980
12981         * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
12982         argument, and change first argument to a CORE_ADDR.
12983         * breakpoint.h (bpstat_stop_status): Update prototype.
12984         * infrun.c (adjust_pc_after_break): Add a new comment.
12985         (handle_inferior_event): Update calls to bpstat_stop_status.
12986
12987 2004-01-31  Daniel Jacobowitz  <drow@mvista.com>
12988
12989         * breakpoint.h: Update copyright years.
12990
12991 2004-01-31  Daniel Jacobowitz  <drow@mvista.com>
12992
12993         * breakpoint.c (software_breakpoint_inserted_here_p): New function.
12994         (bpstat_stop_status): Don't decrement PC.
12995         * breakpoint.h (software_breakpoint_inserted_here_p): Add
12996         prototype.
12997         * infrun.c (adjust_pc_after_break): New function.
12998         (handle_inferior_event): Call it, early.  Remove later references
12999         to DECR_PC_AFTER_BREAK.
13000         (normal_stop): Add commentary.
13001
13002 2004-01-31  Daniel Jacobowitz  <drow@mvista.com>
13003
13004         * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
13005         2004-01-27 double-free fix.
13006
13007 2004-01-31  Mark Kettenis  <kettenis@gnu.org>
13008
13009         * sparc-tdep.c (sparc_fetch_wcookie): New function.
13010         (sparc32_frame_prev_register): Handle StackGhost.
13011         (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
13012
13013 2004-01-29  Roland McGrath  <roland@redhat.com>
13014
13015         * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
13016         * configure: Regenerated.
13017
13018         * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
13019         * Makefile.in (procfs.o): Add dep.
13020
13021 2004-01-28  Andrew Cagney  <cagney@redhat.com>
13022
13023         * tui/tui-stack.h: Update copyright.
13024         (struct frame_info): Add opaque declaration.
13025         (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
13026         (tui_show_locator_content): Rename tuiShowLocatorContent.
13027         (tui_show_frame_info): Rename tuiShowFrameInfo.
13028         * tui/tui-stack.c: Update copyright.  Update references.
13029         * tui/tui-winsource.c: Update references.
13030         * tui/tui-win.c: Update references.
13031         * tui/tui-layout.c: Update references.
13032         * tui/tui-hooks.c: Update copyright, update references.
13033         * tui/tui.c: Update copyright, update references.
13034         * tui/tui-disasm.c: Update references.
13035
13036 2004-01-28  David Carlton  <carlton@kealia.com>
13037
13038         * dwarf2read.c (add_partial_structure): Use demangled name if
13039         namespace equals "".
13040
13041 2004-01-27  Jim Blandy  <jimb@redhat.com>
13042
13043         Clean up misapplied patch:
13044         * dwarf2read.c (determine_prefix): Change one of the two forward
13045         declarations for 'determine_prefix_aux' to a declaration for this.
13046         (read_func_scope): Use cu->language, not cu_language.  Pass 'cu'
13047         argument to 'die_specification'.
13048
13049         * dwarf2read.c (read_func_scope): Re-indent comment.
13050
13051 2004-01-27  Paul N. Hilfinger  <hilfinger@gnat.com>
13052
13053         * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
13054         b->exp to NULL after freeing so that error during re-parsing or
13055         evaluation of expressions associated with breakpoint don't
13056         eventually lead to re-freeing of storage.
13057         Committed by Andrew Cagney.
13058
13059 2004-01-27  Andrew Cagney  <cagney@redhat.com>
13060
13061         * source.c (ambiguous_line_spec): Delete undefined declaration.
13062         * m32r-rom.c (m32r_set_board_address): Delete unused function.
13063         (m32r_set_server_address, m32r_set_download_path): Ditto.
13064         * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
13065
13066 2004-01-27  Daniel Jacobowitz  <drow@mvista.com>
13067
13068         * dwarf2read.c: Update calls to changed and renamed functions, and
13069         references to moved variables.
13070
13071         (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
13072         language, language_defn, list_in_scope, and ftypes members.
13073         (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
13074         (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
13075         (baseaddr): Remove globals.
13076
13077         (dwarf_attr): Renamed to dwarf2_attr.  Add CU argument.
13078         (set_cu_language, die_is_declaration, die_specification)
13079         (determine_prefix, determin_prefix_aux, class_name, namespace_name)
13080         (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
13081         (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
13082         (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
13083
13084         (dwarf2_build_psymtabs_hard): Add local baseaddr.  Initialize
13085         cu.list_in_scope.  Don't initialize cu_header_offset.
13086         (add_partial_symbol): Add local baseaddr.
13087         (psymtab_to_symtab_1): Add local baseaddr.  Use
13088         objfile->section_offsets for consistency.  Don't initialize
13089         cu_header_offset; do initialize cu.header.offset and
13090         cu.list_in_scope.
13091         (read_file_scope, read_func_scope, read_lexical_block_scope)
13092         (dwarf_decode_lines, new_symbol): Add local baseaddr.
13093
13094 2004-01-27  Michael Chastain  <mec.gnu@mindspring.com>
13095
13096         * PROBLEMS: Add gdb/1516.
13097
13098 2003-12-29  Robert Millan  <robertmh@gnu.org>
13099
13100         Patch committed by Andrw Cagney.
13101         * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
13102         * configure.tgt: Match knetbsd*-gnu.
13103
13104 2004-01-26  Andrew Cagney  <cagney@redhat.com>
13105
13106         * breakpoint.c (catch_command_1): Delete #ifdef code.
13107         (catch_fork_command_1): Delete #ifdef wrapper.
13108         (catch_exec_command_1): Ditto.
13109         (catch_load_command_1): Ditto.
13110         (catch_unload_command_1): Ditto.
13111
13112         * breakpoint.c (watchpoint_check): Delete #if0ed variable.
13113         (catch_breakpoint): Delete #if0ed function.
13114         (disable_catch_breakpoint): Ditto.
13115         (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
13116         (disable_catch, enable_catch, delete_catch): Ditto.
13117
13118 2004-01-26  Andrew Cagney  <cagney@redhat.com>
13119
13120         * remote.c (echo_check, quit_flag): Delete variables.
13121         (cisco_kernel_mode): Delete variable.
13122         (minitelnet_return, tty_input, escape_count): Delete variables.
13123         (remote_cisco_mode): Delete variable.
13124         (remote_cisco_open, remote_cisco_close): Delete function.
13125         (remote_cisco_mourn, remote_cisco_wait): Delete function.
13126         (init_remote_cisco_ops): Delete function.
13127         (_initialize_remote): Do not install "remote cisco" code.
13128         (read_frame): Delete cisco specific code.
13129         (remote_info_process): Delete function.
13130         (remote_wait): Delete cisco specific code.
13131         (remote_cisco_section_offsets): Delete function.
13132         (remote_cisco_objfile_relocate): Delete function.
13133         (remote_async_wait): Delete cisco specific code.
13134         (minitelnet, readtty, readsocket): Delete function.
13135
13136 2004-01-26  Andrew Cagney  <cagney@redhat.com>
13137
13138         * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate.  Add
13139         comments mentioning extract_returned_value_address.
13140         * infcmd.c (print_return_value): Update.  Add comments on
13141         extract_returned_value_address.
13142         * stack.c (return_command): Add comments on
13143         extract_returned_value_address.
13144         * values.c: Update comment.
13145         * m32r-tdep.c: Update comment.
13146         * sparc-tdep.c: Update comment.
13147         * ia64-tdep.c (ia64_use_struct_convention): Update comment.
13148         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
13149         * sh64-tdep.c (sh64_gdbarch_init): Update.
13150         * sh-tdep.c (sh_gdbarch_init): Update.
13151         * s390-tdep.c (s390_gdbarch_init): Update.
13152         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
13153         * m68klinux-tdep.c (m68k_linux_init_abi): Update.
13154         * m68k-tdep.c (m68k_gdbarch_init): Update.
13155         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
13156         * m32r-tdep.c (m32r_gdbarch_init): Update.
13157         * ia64-tdep.c (ia64_gdbarch_init): Update.
13158         * h8300-tdep.c (h8300_gdbarch_init): Update.
13159         * frv-tdep.c (frv_gdbarch_init): Update.
13160         * arm-tdep.c (arm_gdbarch_init): Update.
13161         * alpha-tdep.c (alpha_gdbarch_init): Update.
13162
13163 2004-01-26  Andrew Cagney  <cagney@redhat.com>
13164
13165         * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
13166         SYMBOL_LOCATION_FUNCS
13167         (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
13168         "struct symbol_ops".
13169         * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
13170         type to "struct symbol_ops".
13171         * symtab.h (struct symbol_ops): Rename "struct location_funcs".
13172         (struct symbol): Replace ".aux_value.loc.funcs" and
13173         ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
13174         (SYMBOL_OBJFILE): Delete macro.
13175         (SYMBOL_LOCATION_FUNCS): Delete macro.
13176         (SYMBOL_LOCATION_BATON): Update.
13177         * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
13178         intead of SYMBOL_LOCATION_FUNCS.
13179         * ax-gdb.c (gen_var_ref): Ditto.
13180         * printcmd.c (address_info): Ditto.
13181         * findvar.c (read_var_value): Ditto.
13182         (symbol_read_needs_frame): Ditto.
13183
13184 2004-01-26  Andrew Cagney  <cagney@redhat.com>
13185
13186         * dwarf2read.c (read_func_scope): Document frame-base hack.
13187
13188 2004-01-25  Mark Kettenis  <kettenis@gnu.org>
13189
13190         * infcmd.c (print_return_value): Plug memory leak; delete
13191         ui_stream object.  Rename argument `structure_return' to
13192         `struct_return'.
13193
13194 2004-01-25  Mark Kettenis  <kettenis@gnu.org>
13195
13196         * infcmd.c (print_return_value): Wrap long lines.
13197         (finish_command_continuation, finish_command): Remove unused
13198         variable `funcaddr'.  Fix some coding-standards problems.
13199
13200         * sparc-tdep.c (sparc_regset_from_core_section): Check whether
13201         SECT_SIZE is large enough, not whether it's exactly the right size.
13202         (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
13203         TDEP->fpregset to zero.
13204
13205         * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
13206         floating-point registers for traditional NetBSD core files.
13207         (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
13208         TDEP->sizeof_fpregset here.
13209
13210 2004-01-25  Mark Kettenis  <kettenis@gnu.org>
13211
13212         * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
13213         * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
13214         function with code split out from
13215         sparc32nbsd_sigcontext_frame_cache.
13216         (sparc32nbsd_sigcontext_frame_cache): Use
13217         sparc32nbsd_sigcontext_saved_regs.
13218         (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
13219         OpenBSD.
13220         * sparcobsd-tdep.c: New file.
13221         * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
13222         (sparcobsd-tdep.o): New dependency.
13223         * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
13224         * config/sparc/obsd.mt: New file.
13225
13226         * sparc-tdep.c (sparc32_gdbarch_init): Don't require
13227         TDEP->fpregset to be initialized to enable core file register
13228         sets.
13229
13230 2004-01-24  Mark Kettenis  <kettenis@gnu.org>
13231
13232         * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
13233         Add opaque declarations.
13234         (sparc64nbsd_sigcontext_saved_regs): New prototype.
13235         * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
13236         function with code split out from
13237         sparc64nbsd_sigcontext_frame_cache.
13238         (sparc64nbsd_sigcontext_frame_cache): Use
13239         sparc64nbsd_sigcontext_saved_regs.
13240         (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
13241         OpenBSD.
13242         * sparc64obsd-tdep.c: New file.
13243         * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
13244         (sparc64obsd-tdep.o): New dependency.
13245         * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
13246         gdb_osabi to GDB_OSABI_OPENBSD_ELF.
13247         * config/sparc/obsd64.mt: New file.
13248
13249         * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
13250         read the instruction at PC.
13251
13252         * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
13253         value of GDB_OSABI_DEFAULT.
13254         (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
13255         instead of GDB_OSABI_NETBSD_AOUT.
13256
13257 2004-01-24  Nick Roberts  <nick@nick.uklinux.net>
13258
13259         * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
13260         copyright.
13261
13262 2004-01-23  Andrew Cagney  <cagney@redhat.com>
13263
13264         * printcmd.c (display_command): Replace tui_set_display call with
13265         tui_set_layout_for_display_command.
13266         * tui/tui.h (enum tui_win_type): Define.
13267         (tui_set_layout): Delete declaration.
13268         (tui_set_layout_for_display_command): Rename set_tui_layout.
13269         * tui/tui-data.h (enum tui_layout_type): Define.
13270         * tui/tui-layout.h: Update copyright.  Include "tui-data.h" and
13271         "tui.h".
13272         (tui_add_win_to_layout): Rename tuiAddWinToLayout.
13273         (tui_default_win_height): Rename tuiDefaultWinHeight.
13274         (tui_default_win_viewport_height): Rename
13275         tuiDefaultWinViewportHeight.
13276         (tui_set_layout): RenametuiSetLayout.
13277         * tui/tui-layout.c: Update references.
13278         * tui/tui.c: Update references.
13279         * tui/tui-disasm.c: Update references.
13280
13281 2004-01-23  David Carlton  <carlton@kealia.com>
13282
13283         Partial workaround for PR c++/1511:
13284         * cp-namespace.c: Include frame.h.
13285         (cp_lookup_transparent_type): New
13286         (cp_lookup_transparent_type_loop): New.
13287         * cp-support.h: Declare cp_lookup_transparent_type.
13288         * symtab.c (basic_lookup_transparent_type): Renamed from
13289         lookup_transparent_type.
13290         (lookup_transparent_type): Replace old body by a call to
13291         current_language->la_lookup_transparent_type.
13292         * symtab.h: Update copyright.  Declare
13293         basic_lookup_transparent_type.
13294         * language.h: Update copyright.
13295         (struct language_defn): Add la_lookup_transparent_type.
13296         * language.c: Update copyright.
13297         (unknown_language_defn): Add basic_lookup_transparent_type.
13298         (auto_language_defn): Add basic_lookup_transparent_type.
13299         (local_language_defn): Add basic_lookup_transparent_type.
13300         * ada-lang.c: Update copyright.
13301         (ada_language_defn): Add basic_lookup_transparent_type.
13302         * c-lang.c: Update copyright.
13303         (c_language_defn): Add basic_lookup_transparent_type.
13304         (cplus_language_defn): Add basic_lookup_transparent_type.
13305         (asm_language_defn): Add basic_lookup_transparent_type.
13306         (minimal_language_defn): Add basic_lookup_transparent_type.
13307         * f-lang.c: Update copyright.
13308         (f_language_defn): Add basic_lookup_transparent_type.
13309         * jv-lang.c: Update copyright.
13310         (java_language_defn): Add basic_lookup_transparent_type.
13311         * m2-lang.c: Update copyright.
13312         (m2_language_defn): Add basic_lookup_transparent_type.
13313         * objc-lang.c: Update copyright.
13314         (objc_language_defn): Add basic_lookup_transparent_type.
13315         * p-lang.c: Update copyright.
13316         (p_language_defn): Add basic_lookup_transparent_type.
13317         * scm-lang.c: Update copyright.
13318         (scm_language_defn): Add basic_lookup_transparent_type.
13319         * Makefile.in (cp-namespace.o): Depend on frame.h.
13320
13321 2004-01-23  David Carlton  <carlton@kealia.com>
13322
13323         Patch for PR c++/1520:
13324         * dwarf2read.c (read_func_scope): Set processing_current_prefix
13325         properly if we have a specification die.
13326         (determine_prefix_aux): Rename from determine_prefix.
13327         (determine_prefix): Like the old determine_prefix, but never
13328         returns NULL.
13329
13330 2004-01-23  Theodore A. Roth  <troth@openavr.org>
13331
13332         * avr-tdep.c: Update copyright.
13333         (avr_iaddr_p): Delete unused function.
13334         (avr_saddr_p): Delete unused function.
13335
13336 2004-01-23  David Carlton  <carlton@kealia.com>
13337
13338         * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
13339         Fix for PR symtab/1534.
13340
13341 2004-01-23  Mark Kettenis  <kettenis@gnu.org>
13342
13343         * NEWS (New native configurations): Mention OpenBSD/sparc and
13344         OpenBSD/sparc64.
13345         * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
13346         * configure.host: Likewise.
13347         * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
13348         handler for OpenBSD.
13349         * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
13350
13351 2004-01-22  Mark Kettenis  <kettenis@gnu.org>
13352
13353         * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
13354         (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
13355
13356         * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
13357         * cli/cli-cmds.c (shell_escape): Likewise.
13358
13359         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
13360         OpenBSD .note.openbsd.ident sections.
13361
13362 2004-01-22  David Carlton  <carlton@kealia.com>
13363
13364         * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
13365         get_scope_pc_bounds.
13366         (read_file_scope): Ditto.
13367         (get_scope_pc_bounds): New function, produced by extracting code
13368         from the above two functions, consolidating it, and adding support
13369         for DW_TAG_namespace.
13370
13371 2004-01-22  Mark Kettenis  <kettenis@gnu.org>
13372
13373         * osabi.c (MAX_NOTESZ): New define.
13374         (check_note): New function.
13375         (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
13376         check_note.
13377
13378 2004-01-21  Roland McGrath  <roland@redhat.com>
13379
13380         * MAINTAINERS (write after approval): Add myself.
13381
13382 2004-01-21  Eli Zaretskii  <eliz@gnu.org>
13383
13384         * utils.c (init_page_info): Move declarations of `rows' and
13385         `cols' before the __GO32__-specific code.  Move the closing brace
13386         outside the #ifdef __GO32__..#endif block.
13387         [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
13388
13389 2004-01-21  Paul Brook  <paul@codesourcery.com>
13390
13391         * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
13392         BPSTAT_WHAT_CHECK_SHLIBS.
13393
13394 2004-01-21  Paul Brook  <paul@codesourcery.com>
13395
13396         * MAINTAINERS: Add myself to write-after-approval.
13397
13398 2004-01-20  Andrew Cagney  <cagney@redhat.com>
13399
13400         * ax-gdb.c (print_axs_value): Delete unused function.
13401         * jv-lang.c (java_lookup_type): Delete unused function.
13402         * cli/cli-dump.c (dump_filetype): Delete unused function.
13403         * remote-mips.c (remote_mips_insert_hw_breakpoint)
13404         (remote_mips_remove_hw_breakpoint): Delete unused functions.
13405         (mips_getstring): Delete unused function.
13406         (pmon_insert_breakpoint): Delete #if0ed function.
13407         (PMON_MAX_BP): Delete #if0ed MACRO.
13408         (mips_pmon_bp_info): Delete #if0ed variable.
13409         (pmon_remove_breakpoint): Delete #if0ed function.
13410         * monitor.c (monitor_write_even_block): Delete unused function.
13411         (monitor_write_memory_block): Delete #if0ed code.
13412         * dink32-rom.c (dink32_load): Delete unused function.
13413         (_initialize_dink32_rom): Delete #if0ed code.
13414         * d10v-tdep.c (d10v_daddr_p): Delete unused function.
13415
13416         * tui/tui-command.c: Update references.
13417         * tui/tui-io.c: Update references.
13418         * tui/tui-command.h: Update copyright.
13419         (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
13420
13421         * source.c (ambiguous_line_spec): Delete never-defined function.
13422         * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
13423         * gdbtypes.c (add_name, add_mangled_type): Ditto.
13424         * cli/cli-cmds.c (validate_comname): Ditto.
13425
13426         * tui/tui-disasm.h: Update copyright.  Include "tui.h" and
13427         "tui-data.h".
13428         (tui_set_disassem_content): Rename tuiSetDisassemContent.
13429         (tui_show_disassem): Rename tuiShowDisassem.
13430         (tui_show_disassem_and_update_source): Rename
13431         tuiVerticalDisassemScroll.
13432         (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
13433         (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
13434         * tui/tui.h: Update copyright.
13435         (enum tui_status): Define.
13436         * tui/tui-data.h (enum tui_scroll_direction): Define.
13437         * tui/tui-disasm.c: Update copyright.  Update references.
13438         * tui/tui-winsource.c:  Update copyright.  Update references.
13439         * tui/tui-win.c: Update references.
13440         * tui/tui-layout.c: Update references.
13441
13442 2004-01-20  Andrew Cagney  <cagney@redhat.com>
13443
13444         * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
13445         sym2 to start of block.
13446
13447 2004-01-19  Michael Chastain  <mec.gnu@mindspring.com>
13448
13449         * MAINTAINERS: Delete mmalloc.
13450         * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
13451         * NEWS: Mention removal of --with-malloc.
13452         * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
13453         * config.in: Regenerate.
13454         * configure: Regenerate.
13455         * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
13456         USE_MMALLOC, MMCHECK_FORCE.
13457         * gdbinit.in: Remove mmalloc.
13458         * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
13459         * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
13460         * config/i386/go32.mh: Likewise.
13461         * config/i386/interix.mh: Likewise.
13462         * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
13463
13464 2004-01-19  Jeff Johnston  <jjohnstn@redhat.com>
13465
13466         * linespec.c (decode_variable, symtab_from_filename):  Call
13467         error_silent with error message instead of throwing an exception
13468         directly.
13469         * defs.h (error_silent, error_output_message): Add prototypes.
13470         (catch_exceptions_with_msg): Ditto.
13471         * utils.c (error_silent, error_output_message): New functions.
13472         * top.c (catch_exceptions_with_msg): New function.
13473
13474 2004-01-20  Nick Roberts  <nick@nick.uklinux.net>
13475
13476         * mi/mi-cmds.h (enum print_values): Add definition.
13477
13478         * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
13479         type and value for simple data types and just the name and type
13480         for complex ones, if required.
13481
13482         * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
13483         children, if required.
13484
13485 2004-01-19  Kevin Buettner  <kevinb@redhat.com>
13486
13487         * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
13488         unused declarations.
13489
13490 2004-01-19  Andrew Cagney  <cagney@redhat.com>
13491
13492         * top.h (mapped_symbol_files): Delete declaration.
13493         * main.c (captured_main): Delete option "m" and "mapped".
13494         * objfiles.c (mapped_symbol_files): Delete variable.
13495         * symfile.c (symbol_file_command): Delete mmap code.
13496         (symbol_file_add_with_addrs_or_offsets): Ditto.
13497         (add_symbol_file_command, reread_separate_symbols): Ditto.
13498         * objfiles.h (OBJF_MAPPED): Delete.
13499         * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
13500         (free_objfile) [USE_MMALLOC]: Ditto.
13501         (open_existing_mapped_file): Delete function.
13502         (open_mapped_file): Delete function.
13503         (map_to_file): Delete function.
13504
13505 2004-01-19  Kevin Buettner  <kevinb@redhat.com>
13506
13507         * infrun.c (step_into_function): Account for possible breakpoint
13508         adjustment when computing ``stop_func_start''.
13509
13510 2004-01-19  Kevin Buettner  <kevinb@redhat.com>
13511
13512         * target.c (default_region_size_ok_for_hw_watchpoint): Compare
13513         the region size against the size of a pointer, not the size of
13514         a register as given by DEPRECATED_REGISTER_SIZE.
13515
13516 2004-01-19  Andrew Cagney  <cagney@redhat.com>
13517
13518         * tui/tui-regs.h: Include "tui-data.h".
13519         (tuiFirstRegElementNoInLine): Delete declaration.
13520         (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
13521         (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
13522         (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
13523         (tui_calculate_regs_column_count): Rename
13524         tuiCalculateRegsColumnCount.
13525         (tui_check_register_values): Rename tuiCheckRegisterValues.
13526         (tui_show_registers): Rename tuiShowRegisters.
13527         (tui_display_registers_from_line): Rename
13528         tuiDisplayRegistersFromLine.
13529         (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
13530         (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
13531         (tui_first_reg_element_no_inline): Rename
13532         tuiFirstRegElementNoInLine.
13533         * tui/tui-data.h: Update copyright.
13534         (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
13535         * tui/tui-windata.c: Update copyright, update references.
13536         * tui/tui-regs.c: Update copyright, update references.
13537         * tui/tui-win.c: Update copyright, update references.
13538         * tui/tui-layout.c: Update copyright, update references.
13539
13540 2004-01-18  Andrew Cagney  <cagney@redhat.com>
13541
13542         * tui/tui-io.c: Update copyright.
13543         (key_is_end_sequence, key_is_backspace): New functions.
13544         (key_is_command_char, key_is_start_sequence): New function.
13545         (tui_getc): Update references.
13546         * tui/tui-io.h: Update copyright.
13547         (m_tuiStartNewLine): Delete macro.
13548         (m_isBackspace, m_isDeleteChar): Delete macros.
13549         (m_isDeleteLine, m_isDeleteToEol): Delete macros.
13550         (m_isNextPage, m_isPrevPage): Delete macros.
13551         (m_isLeftArrow, m_isRightArrow): Delete macros.
13552         (m_isXdbStyleCommandChar): Delete macro.
13553         (key_is_start_sequence): Declare, replace m_isStartSequence.
13554         (key_is_end_sequence): Declare, replace m_isEndSequence.
13555         (key_is_backspace): Declare ,replace m_isBackspace.
13556         (key_is_command_char): Declare, replace m_isCommandChar.
13557         * tui/tui-command.c: Update copyright.
13558         (tuiDispatchCtrlChar): Update references.
13559
13560         * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
13561         tuiSourceWin.h.
13562
13563         * tui/tui-command.c: Rename tui/tuiCommand.c.
13564         * tui/tui-command.h: Rename tui/tuiCommand.h.
13565         * tui/tui-data.c: Rename tui/tuiData.c.
13566         * tui/tui-data.h: Rename tui/tuiData.h.
13567         * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
13568         * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
13569         * tui/tui-io.c: Rename tui/tuiIO.c.
13570         * tui/tui-io.h: Rename tui/tuiIO.h.
13571         * tui/tui-layout.c: Rename tui/tuiLayout.c.
13572         * tui/tui-layout.h: Rename tui/tuiLayout.h.
13573         * tui/tui-regs.c: Rename tui/tuiRegs.c.
13574         * tui/tui-regs.h: Rename tui/tuiRegs.h.
13575         * tui/tui-source.c: Rename tui/tuiSource.c.
13576         * tui/tui-source.h: Rename tui/tuiSource.h.
13577         * tui/tui-stack.c: Rename tui/tuiStack.c.
13578         * tui/tui-stack.h: Rename tui/tuiStack.h.
13579         * tui/tui-win.c: Rename tui/tuiWin.c.
13580         * tui/tui-win.h: Rename tui/tuiWin.h.
13581         * tui/tui-windata.c: Rename tui/tuiDataWin.c.
13582         * tui/tui-windata.h: Rename tui/tuiDataWin.h.
13583         * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
13584         * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
13585         * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
13586         * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
13587         * tui/tui-file.c: Update includes.
13588         * tui/tui-hooks.c: Update includes.
13589         * tui/tui-interp.c: Update includes.
13590         * tui/tui.c: Update includes.
13591         * Makefile.in: Update all tui/ dependencies.
13592         (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
13593
13594         * Makefile.in: Update copyright.  Update dependencies.
13595
13596         * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
13597         problem.
13598
13599 2004-01-18  Andrew Cagney  <cagney@redhat.com>
13600
13601         * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
13602         instead of register_gdbarch_init.
13603
13604         * remote-sds.c (tohex): Delete unused function.  Update copyright.
13605         * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
13606         * v850-tdep.c (v850_register_virtual_size): Ditto.
13607         * target.c (normal_target_post_startup_inferior): Ditto.
13608         * source.c (ambiguous_line_spec): Ditto.
13609         * remote.c (adapt_remote_get_threadinfo): Ditto.
13610         * mi/mi-out.c (out_field_fmt): Ditto.
13611         * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
13612         (output_control_change_notification): Ditto.
13613         * m68k-tdep.c (m68k_register_byte): Ditto.
13614         (m68k_remote_breakpoint_from_pc): Ditto.
13615         * ui-out.c (init_ui_out_state): Delete unused declaration.
13616         * stabsread.c (search_value): Ditto.
13617         * mi/mi-cmd-env.c (env_cli_command): Ditto.
13618         * maint.c (print_section_table): Ditto.
13619         * infrun.c (set_follow_fork_mode_command): Ditto.
13620
13621 2004-01-18  Mark Kettenis  <kettenis@gnu.org>
13622
13623         * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
13624         DW_CFA_def_cfa_exporession.  Add support for
13625         DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
13626         DW_CFA_def_cfa_offset_sf.  This should fix PR backtrace/1391.
13627
13628 2004-01-18  Andrew Cagney  <cagney@redhat.com>
13629
13630         * ocd.c: Update copyright.
13631         (bdm_read_register_command): Delete unused function.
13632         (_initialize_remote_ocd): Delete commented out reference.
13633         (get_quoted_char, reset_packet): Delete #if0ed function.
13634         (output_packet, put_quoted_char): Delete #if0ed function.
13635         (stu_put_packet, stu_get_packet): Delete #if0ed function.
13636         (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
13637         (BDM_BREAKPOINT): Delete #if0ed macro.
13638         (remote_timeout): Delete #if0ed variable.
13639
13640 2004-01-18  Mark Kettenis  <kettenis@gnu.org>
13641
13642         * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
13643         (core-sol2.o): Remove dependency.
13644         * core-sol2.c: Remove file.
13645
13646 2004-01-17  Andrew Cagney  <cagney@redhat.com>
13647
13648         * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
13649         * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
13650         enums.
13651
13652 2004-01-17  Daniel Jacobowitz  <drow@mvista.com>
13653
13654         * remote.c: Update copyright years.
13655
13656 2004-01-17  Daniel Jacobowitz  <drow@mvista.com>
13657
13658         * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
13659
13660 2004-01-17  Andrew Cagney  <cagney@redhat.com>
13661
13662         * mdebugread.c: Update copyright.
13663         (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
13664         (parse_type, parse_procedure): Ditto.
13665         (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
13666
13667         * cris-tdep.c (cris_store_struct_return): Put back accidently
13668         deleted function.
13669
13670         * gdbarch.sh: Update copyright year.
13671         * gdbarch.h, gdbarch.c: Re-generate.
13672
13673 2004-01-17  Daniel Jacobowitz  <drow@mvista.com>
13674
13675         Suggested by George Anzinger.
13676         * dwarf2expr.c (execute_stack_op): Fetch the second item from the
13677         correct stack offset.  Include unknown opcode numbers in the error
13678         message.
13679
13680 2004-01-17  Andrew Cagney  <cagney@redhat.com>
13681
13682         * x86-64-tdep.c (x86_64_init_abi): No need to clear
13683         extract_struct_value_address, i386 does not set it.
13684         * sparc64-tdep.c (sparc64_init_abi): Do not set
13685         extract_struct_value_address, never called.
13686         (sparc64_extract_struct_value_address): Delete function.
13687         * m68hc11-tdep.c: Update copyright.
13688         (m68hc11_gdbarch_init): Delete redundant assignment of
13689         extract_struct_value_address.
13690         * i386-tdep.c: Update copyright.
13691         (i386_gdbarch_init): Do not set extract_struct_value_address,
13692         never called.
13693         (i386_extract_struct_value_address): Delete function.
13694         * sparc-tdep.c (sparc32_gdbarch_init): Do not set
13695         extract_struct_value_address, never called.
13696         (sparc32_extract_struct_value_address): #if 0 function.  Add
13697         comments explaining its future.
13698
13699 2004-01-17  Daniel Jacobowitz  <drow@mvista.com>
13700
13701         * arm-tdep.c (arm_write_pc): New function.
13702         (arm_gdbarch_init): Call set_gdbarch_write_pc.
13703
13704 2004-01-17  Daniel Jacobowitz  <drow@mvista.com>
13705
13706         * breakpoint.c (must_shift_inst_regs): Delete.
13707         (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
13708         and SHIFT_INST_REGS.
13709         * infcmd.c (step_1, step_1_continuation): Delete references to
13710         SHIFT_INST_REGS.
13711         * infrun.c (keep_going): Likewise.
13712         * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
13713         * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
13714
13715 2004-01-17  Andrew Cagney  <cagney@redhat.com>
13716
13717         * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13718         * gdbarch.h, gdbarch.c: Re-generate.
13719         * infcmd.c (print_return_value): Delete reference to
13720         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
13721
13722         * cris-tdep.c (cris_gdbarch_init): Do not set
13723         deprecated_extract_struct_value_address.
13724
13725         * xstormy16-tdep.c: Update copyright.
13726         (xstormy16_extract_struct_value_address): Update to current
13727         extract struct value address interface.
13728         (xstormy16_gdbarch_init): Set extract_struct_value_address.
13729         * sh64-tdep.c (sh64_extract_struct_value_address): Update to
13730         current extract struct value address interface.
13731         (sh64_gdbarch_init): Set extract_struct_value_address.
13732
13733         * cris-tdep.c: Update copyright.
13734         (cris_extract_struct_value_address): Delete function.
13735         (struct_return_address): Delete variable.
13736         (cris_store_struct_return): Do not set struct_return_address.
13737
13738         * mcore-tdep.c: Update copyright.
13739         (mcore_extract_struct_value_address): Delete function.  Update
13740         comments.
13741         (mcore_gdbarch_init): Update.
13742         * mn10300-tdep.c: Update copyright.
13743         (mn10300_extract_struct_value_address): Delete function.
13744         (mn10300_gdbarch_init): Update.
13745         * v850-tdep.c: Update copyright.
13746         (v850_extract_struct_value_address): Delete.
13747         (v850_gdbarch_init): Update.
13748         * ns32k-tdep.c: Update copyright.
13749         (ns32k_extract_struct_value_address): Delete.
13750         (ns32k_gdbarch_init): Update.
13751         * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
13752         (hppa_gdbarch_init): Update.
13753         * vax-tdep.c: Update copyright.
13754         (vax_extract_struct_value_address): Delete.
13755         (vax_gdbarch_init): Update.
13756
13757         * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
13758         * gdbarch.h, gdbarch.c: Re-generate.
13759         * procfs.c (procfs_fetch_registers): Delete reference to
13760         DEPRECATED_NPC_REGNUM.
13761         (procfs_store_registers): Ditto.
13762         * regcache.c (generic_target_write_pc): Simplify.
13763         * lynx-nat.c: Delete #ifdef SPARC code.  Not used.
13764
13765         * core-sol2.c (fetch_core_registers): Replace
13766         DEPRECATED_NPC_REGNUM with equivalent tdep value.
13767
13768         * hppa-tdep.c: Update copyright year.
13769         (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
13770         NPC_REGNUM.
13771         (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
13772
13773         * mips-tdep.c (mips_write_pc): New function.
13774         (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
13775         (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
13776         (mips_find_saved_regs, mips_software_single_step: Ditto.
13777         (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
13778         mips_init_extra_frame_info, mips_pop_frame): Ditto.
13779
13780 2004-01-17  Andrew Cagney  <cagney@redhat.com>
13781
13782         * mips-tdep.c: Re-indent.  Group functions by ABI.
13783
13784 2004-01-17  Andrew Cagney  <cagney@redhat.com>
13785
13786         * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
13787         * gdbarch.c: Re-generate.
13788         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
13789         DECR_PC_AFTER_BREAK to zero.
13790         * vax-tdep.c (vax_gdbarch_init): Ditto.
13791         * v850-tdep.c (v850_gdbarch_init): Ditto.
13792         * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
13793         * sh64-tdep.c (sh64_gdbarch_init): Ditto.
13794         * sh-tdep.c (sh_gdbarch_init): Ditto.
13795         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
13796         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
13797         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
13798         * mips-tdep.c (mips_gdbarch_init): Ditto.
13799         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
13800         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13801         * m32r-tdep.c (m32r_gdbarch_init): Ditto.
13802         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
13803         * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
13804         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
13805         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
13806         * frv-tdep.c (frv_gdbarch_init): Ditto.
13807         * cris-tdep.c (cris_gdbarch_init): Ditto.
13808         * avr-tdep.c (avr_gdbarch_init): Ditto.
13809         * arm-tdep.c (arm_gdbarch_init): Ditto.
13810         * i386-nto-tdep.c (i386nto_init_abi): Add comment.
13811
13812 2004-01-17  J. Brobecker  <brobecker@gnat.com>
13813
13814         * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
13815         Delete, no longer used.
13816         (read_subrange_type): New function, mostly extracted from
13817         read_array_type().
13818         (read_array_type): Replace extracted code by call to
13819         read_subrange_type().
13820         (dwarf2_get_attr_constant_value): New function.
13821         (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
13822         (add_partial_symbol): Likewise.
13823         (process_die): Likewise.
13824         (new_symbol): Likewise.
13825         (read_type_die): Likewise.
13826
13827 2004-01-16  Andrew Cagney  <cagney@redhat.com>
13828
13829         * symfile.c: Update copyright year.
13830         (compare_symbols): Delete unused function.
13831         * stabsread.c: Update copyright year.
13832         (lrs_general_complaint): Delete unused function.
13833         (ref_search_value): Ditto.
13834         (get_substring): Delete declaration.
13835         * sh64-tdep.c: Update copyright year.
13836         (sh64_get_gdb_regnum): Delete unused function.
13837         * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
13838         Delete unused function.
13839
13840 2004-01-17  Mark Kettenis  <kettenis@gnu.org>
13841
13842         * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
13843         * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
13844
13845 2004-01-16  Andrew Cagney  <cagney@redhat.com>
13846
13847         Changes from Peter Schauer.
13848         * rs6000-tdep.c: Update copyright year.
13849         (rs6000_push_dummy_call): Update the stack pointer before
13850         accessing the corresponding stack region.
13851         * rs6000-nat.c: Update copyright year.
13852         (set_host_arch): Set "info.abfd" to "exec_bfd".
13853
13854 2004-01-15  Mark Kettenis  <kettenis@gnu.org>
13855
13856         * blockframe.c: Update copyright year.
13857         (inside_entry_func): Don't treat a zero PC specially.
13858
13859 2004-01-14  Elena Zannoni  <ezannoni@redhat.com>
13860
13861         * gcore.c (gcore_copy_callback): Use paddr_d to print size
13862         variable.
13863         (gcore_create_callback): Ditto.  Skip any memory segment that has
13864         no permissions set.
13865
13866 2004-01-14  David Carlton  <carlton@kealia.com>
13867
13868         Change symbols for C++ nested types to contain the fully qualified
13869         name, if possible.  (At least in the DWARF-2 case.)  Partial fix
13870         for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
13871         c++/895.
13872         * c-exp.y (qualified_type): Handle types nested within classes.
13873         * cp-namespace.c: Update comments.
13874         (cp_set_block_scope): Delete #if 0.
13875         (cp_lookup_nested_type): Handle types nested within classes.
13876         * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
13877         when appropriate.
13878         (add_partial_symbol): Add the name of the enclosing namespace to
13879         types.
13880         (pdi_needs_namespace): New.
13881         (add_partial_namespace): Tweak comment.
13882         (add_partial_structure): New.
13883         (psymtab_to_symtab_1): Initialize processing_current_prefix
13884         here...
13885         (process_die): instead of here.
13886         (read_structure_scope): Try to figure out the name of the class or
13887         namespace that the structure might be defined within.
13888         (read_enumeration): Generate fully-qualified names, if possible.
13889         (read_namespace): Don't set name to NULL.
13890         (die_specification): New.
13891         (new_symbol): Generate fully-qualified names for types.
13892         (read_type_die): Determine appropriate prefix.
13893         (determine_prefix): New.
13894         (typename_concat): New.
13895         (class_name): New.
13896         * valops.c (value_aggregate_elt): Pass NOSIDE to
13897         value_struct_elt_for_reference.
13898         (value_struct_elt_for_reference): Make static, add NOSIDE
13899         parameter, call value_maybe_namespace_elt as a last resort.
13900         (value_namespace_elt): Break out code into
13901         value_maybe_namespace_elt.
13902         (value_maybe_namespace_elt): New.
13903
13904 2004-01-12  Andrew Cagney  <cagney@redhat.com>
13905
13906         * mips-tdep.c (mips_convert_register_p): Handle both raw and
13907         cooked floating-point registers.
13908         (mips_gdbarch_init): Set convert_register_p, register_to_value,
13909         and value_to_register.
13910
13911 2004-01-13  Andrew Cagney  <cagney@redhat.com>
13912
13913         * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
13914         * gdbarch.c: Re-generate.
13915         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
13916         FUNCTION_START_OFFSET.
13917         * v850-tdep.c (v850_gdbarch_init): Ditto.
13918         * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
13919         * sh64-tdep.c (sh64_gdbarch_init): Ditto.
13920         * sh-tdep.c (sh_gdbarch_init): Ditto.
13921         * s390-tdep.c (s390_gdbarch_init): Ditto.
13922         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
13923         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
13924         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
13925         * mips-tdep.c (mips_gdbarch_init): Ditto.
13926         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
13927         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
13928         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13929         * m32r-tdep.c (m32r_gdbarch_init): Ditto.
13930         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
13931         * i386-tdep.c (i386_gdbarch_init): Ditto.
13932         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
13933         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
13934         * frv-tdep.c (frv_gdbarch_init): Ditto.
13935         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
13936         * cris-tdep.c (cris_gdbarch_init): Ditto.
13937         * avr-tdep.c (avr_gdbarch_init): Ditto.
13938         * arm-tdep.c (arm_gdbarch_init): Ditto.
13939         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
13940
13941 2004-01-13  Daniel Jacobowitz  <drow@mvista.com>
13942
13943         * infrun.c (follow_fork_mode_ask): Remove.
13944         (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
13945         (follow_fork): Simplify and remove internal error for
13946         follow_fork_mode_ask.
13947         (_initialize_infrun): Update "set follow-fork-mode" help text.
13948
13949 2004-01-13  Andrew Cagney  <cagney@redhat.com>
13950
13951         * configure.in: Update copyright year.
13952         (build_warnings): Add -Wunused-label.
13953         * configure: Re-generate.
13954
13955 2004-01-12  Andrew Cagney  <cagney@redhat.com>
13956
13957         * exec.h (exec_ops): Make "extern".
13958
13959         * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
13960         the function is void.
13961         (mips_pseudo_register_write): Ditto.
13962
13963 2004-01-12  Andrew Cagney  <cagney@redhat.com>
13964
13965         * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
13966         call.  Never defined.
13967         * sparc-tdep.h (struct frame_info): Add opaque declaration.
13968         * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
13969         (struct sparc_gregset, struct regcache): Ditto.
13970         * sparc-nat.c: Update copyright.  Specify "GNU/Linux".
13971
13972 2004-01-12  Andrew Cagney  <cagney@redhat.com>
13973
13974         * mi/ChangeLog: Delete file.  Renamed to ...
13975         * mi/ChangeLog-1999-2003: New file.
13976         * tui/ChangeLog: Delete file.  Renamed to ...
13977         * tui/ChangeLog-1998-2003: New file.
13978
13979 2004-01-11  Mark Kettenis  <kettenis@gnu.org>
13980
13981         * sparc64nbsd-tdep.c: Include "regset.h".
13982         (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
13983         Remove variables.
13984         (fetch_core_registers): Remove function.
13985         (sparc64nbsd_core_fns): Remove variable.
13986         (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
13987         functions.
13988         (sparc64nbsd_init_abi): Initialize TDEP->gregset,
13989         TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
13990         (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
13991
13992         * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
13993         sparc_extract_struct_value_address.
13994         (sparc32_gdbarch_init): Set extract_struct_value_address.
13995         * sparc64-tdep.c (sparc64_extract_struct_value_address): New
13996         function.
13997         (sparc64_init_abi): Set extract_struct_value_address.  Don't set
13998         return_value_on_stack.
13999
14000         * NEWS: Mention that %cs and %ss have been added to the AMD64
14001         configurations
14002
14003         * frame.c: Update copyright year.
14004         (get_prev_frame): Improve comment.
14005
14006         * sparc64fbsd-tdep.c: Include "regset.h".
14007         (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
14008         Remove variables.
14009         (fetch_core_registers): Remove function.
14010         (sparc64fbsd_core_fns): Remove variable.
14011         (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
14012         functions.
14013         (sparc64fbsd_init_abi): Initialize TDEP->gregset,
14014         TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
14015         (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
14016
14017         * sparcnbsd-tdep.c: Include "regset.h".
14018         (fetch_core_registers): Remove function.
14019         (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
14020         (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
14021         functions.
14022         (sparc32nbsd_init_abi): Initialize TDEP->gregset and
14023         TDEP->fpregset.
14024         (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
14025
14026         * sparc-tdep.h (struct regset): Provide opaque declaration.
14027         (struct gdbarch_tdep): Add gregset, sizeof_gregset,
14028         fpregset and sizeof_fpregset members.
14029         * sparc-tdep.c (struct regset): Provide opaque declaration.
14030         (sparc_regset_from_core_section): New function.
14031         (sparc32_gdbarch_init): Initialize TDEP->gregset,
14032         TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
14033         Set regset_from_core_section when appropriate.
14034
14035 2004-01-10  Mark Kettenis  <kettenis@gnu.org>
14036
14037         * x86-64-tdep.c (amd64_non_pod_p): New function.
14038         (amd64_classify_aggregate): Return class memory for non-POD
14039         C++ structure types.
14040
14041         * x86-64-tdep.c (amd64_push_arguments): Add struct_return
14042         argument.  Use it to reserve a register if necessary.
14043         (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
14044         amd64_push_arguments.
14045
14046         * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
14047
14048         * x86-64-tdep.c (amd64_register_info): Add %cs and %ss.  Adjust
14049         register numbers in comments.
14050         * x86-64-tdep.h: Update copyright year.
14051         (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
14052         Adjust for addition of %cs and %ss.
14053         * amd64fbsd-nat.c: Update copyright year.
14054         (reg_offset): Add register offsets for %cs and %ss.
14055         * amd64fbsd-tdep.c: Update copyright year.
14056         (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
14057         (amd64fbsd_sc_reg_offset): Likewise.
14058         * x86-64-linux-nat.c: Update copyright year.
14059         (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
14060         and %ss.
14061         * amd64nbsd-nat.c: Update copyright year.
14062         (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
14063         * amd64nbsd-tdep.c: Update copyright year.
14064         (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
14065         * x86-64-linux-tdep.c: Update copyright year.
14066         (user_to_gdb_regmap): Add mapping for %cs and %ss.
14067         (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
14068         * regformats/reg-x86-64.dat: Add %cs and %ss.
14069
14070         * blockframe.c (inside_entry_func): Reformat.  Introduce new local
14071         variables to prevent long lines.  Update comments to reflect
14072         reality.
14073
14074 2004-01-09  David Carlton  <carlton@kealia.com>
14075
14076         Checked in by Elena Zannoni  <ezannoni@redhat.com>.
14077         * dwarf2read.c (read_namespace): Pull out name-generating code
14078         into namespace_name. Rename previous_namespace to previous_prefix
14079         and processing_current_namespace to processing_current_prefix..
14080         (namespace_name): New function.
14081         (add_partial_symbol): Substitute uses of pdi->name with
14082         actual_name.
14083         * cp-support.h: Rename processing_current_namespace to
14084         processing_current_prefix.
14085         Update copyright year.
14086         * cp-namespace.c: Rename processing_current_namespace to
14087         processing_current_prefix.
14088         Update copyright year.
14089
14090 2004-01-09  Andrew Cagney  <cagney@redhat.com>
14091
14092         * jv-valprint.c, ser-unix.c: Add missing copyright years.
14093
14094 2004-01-09  Mark Kettenis  <kettenis@gnu.org>
14095
14096         * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
14097         complaining.
14098         (process_one_symbol): Deal with N_PATCH stabs.
14099
14100 2004-01-09  Elena Zannoni  <ezannoni@redhat.com>
14101
14102         * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
14103         ifdeffed code.
14104         Update copyright year.
14105
14106 2004-01-08  Michael Chastain  <mec.gnu@mindspring.com>
14107
14108         * config/pa/tm-hppa.h: Update extern declarations for
14109         hppa32_hpux_frame_saved_pc_in_sigtramp,
14110         hppa32_hpux_frame_base_before_sigtramp, and
14111         hppa32_hpux_frame_find_saved_regs_in_sigtramp.
14112
14113 2004-01-08  Michael Chastain  <mec.gnu@mindspring.com>
14114
14115         * config/pa/tm-hppah.h: Update copyright years.
14116
14117 2004-01-08  Andrew Cagney  <cagney@redhat.com>
14118
14119         * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
14120         (mips_o32_reg_struct_has_addr): Delete function.
14121         (mips_gdbarch_init): Update.
14122         (mips_extract_struct_value_address): Delete function.
14123
14124 2004-01-08  David Mosberger  <davidm@hpl.hp.com>
14125
14126         * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
14127         reality.
14128
14129 2004-01-07  Andrew Cagney  <cagney@redhat.com>
14130
14131         * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
14132         architecture's elf flags (when available).
14133
14134         * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
14135         FPU to the start, check the MIPS FPU when looking for an old
14136         architecture.
14137         (set_mipsfpu_single_command): Update the architecture.
14138         (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
14139
14140         * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
14141         (mips_mask_address_p): Add "tdep" parameter.
14142         (show_mask_address, mips_addr_bits_remove): Update.
14143         (mips_dump_tdep): Update.
14144         (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
14145         (MIPS_STACK_ARGSIZE): Delete macro.
14146         (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
14147         (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
14148         (mips_o64_push_dummy_call, mips_o32_return_value): Update.
14149         (mips_dump_tdep): Update.
14150         (MIPS_SAVED_REGSIZE): Delete macro.
14151         (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
14152         (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
14153         (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
14154         (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
14155         (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
14156         (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
14157         (mips_pop_frame, return_value_location): Update.
14158         (mips_n32n64_return_value, mips_dump_tdep): Update.
14159
14160         * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
14161         MIPS ABI.
14162
14163         * mips-tdep.c: Update copyright.
14164         (mips_gdbarch_init): Merge two code blocks handling the register
14165         name and number layout.
14166
14167 2004-01-02  Pawel Ostrowski  <pasza@zodiac.mimuw.edu.pl>
14168
14169         * tracepoint.c (validate_actionline): Fix segv at EOF
14170
14171 2004-01-07  Michael Chastain  <mec.gnu@mindspring.com>
14172
14173         * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
14174         properly for static fields.
14175
14176 2004-01-06  Jeff Johnston  <jjohnstn@redhat.com>
14177             Jason Molenda  <jmolenda@apple.com>
14178
14179         * disasm.c: Update copyright to include 2004.
14180         (do_mixed_source_and_assembly): For uiout asm list
14181         and tuple cleanups, initialize to null_cleanup instead of
14182         NULL and do so prior to loop.  Only reset when we close off
14183         the tuple/list.  Move check for whether to close off the
14184         asm tuple/list to after dump_insns call where it will be run
14185         on each loop iteration.
14186
14187 2004-01-05  Andrew Cagney  <cagney@redhat.com>
14188
14189         * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
14190         should be a switch case and not a label.
14191         * mips-tdep.c (mips32_next_pc): Delete unused labels
14192         "greater_equal_branch" and "less_zero_branch".
14193         * jv-valprint.c (java_print_value_fields): Delete unused label
14194         "flush_it".
14195
14196         * target.c (unpush_target): Only close a target that is in the
14197         target stack.
14198
14199 2004-01-05  Mark Kettenis  <kettenis@gnu.org>
14200
14201         * sparc-tdep.c (sparc_extract_struct_value_address): Get the
14202         address from [sp + 64] instead of %o2.
14203
14204         * frame.c (get_prev_frame): Don't try to unwind the PC.  This
14205         fixes PR backtrace/1476.
14206
14207 2004-01-05  Andrew Cagney  <cagney@redhat.com>
14208
14209         * libunwind-frame.h (struct frame_id): Add opaque declaration,
14210         move to start of file.
14211         * i386-tdep.h (struct regcache): Add opaque declaration.
14212         * config/ia64/nm-linux.h (struct target_ops): Add opaque
14213         declaration.
14214         * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
14215         (ia64_gdbarch_init): Use "GNU/Linux" in comment.
14216         * win32-nat.c (fake_create_process): Use ISO C style definition.
14217         * stabsread.c (define_symbol): Delete #ifndef
14218         DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
14219         stabs_argument_has_addr call, macro never defined.
14220
14221 2004-01-04  Michael Chastain  <mec.gnu@mindspring.com>
14222
14223         * op50-rom.c: Delete.
14224         * w89k-rom.c: Delete.
14225         * Makefile.in: Remove references.
14226
14227 2004-01-04  Mark Kettenis  <kettenis@gnu.org>
14228
14229         * x86-64-tdep.c: Update copyright year.
14230         (struct amd64_register_info): Rename from x86_64_register_info.
14231         (amd64_register_info): Rename from x86_64_register_info.
14232         (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
14233         (amd64_register_name): Rename from x86_64_register_name.
14234         (amd64_register_type): Rename from x86_64_register_type.
14235         (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
14236         (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
14237         (amd64_dwarf_reg_to_regnum): Rename from
14238         x86_64_dwarf_reg_to_regnum.
14239         (amd64_convert_register_p): Rename from x86_64_convert_register_p.
14240         (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
14241         (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
14242         (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
14243         (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
14244         (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
14245         (amd64_skip_prologue): Rename from x86_64_skip_prologue.
14246         (amd64_frame_cache): Rename from x86_64_frame_cache.
14247         (amd64_frame_this_id): Rename from x86_64_frame_this_id.
14248         (amd64_frame_prev_register): Rename from
14249         x86_64_frame_prev_register.
14250         (amd64_frame_unwind): Rename from x86_64_frame_unwind.
14251         (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
14252         (amd64_sigtramp_frame_cache): Rename from
14253         x86_64_sigtramp_frame_cache.
14254         (amd64_sigtramp_frame_prev_register): Rename from
14255         x86_64_sigtramp_frame_prev_register.
14256         (amd64_sigtramp_frame_unwind): Rename from
14257         x86_64_sigtramp_frame_unwind.
14258         (amd64_sigtramp_frame_sniffer): Rename from
14259         x86_64_sigtramp_frame_sniffer.
14260         (amd64_frame_base_address): Rename from x86_64_frame_base_address.
14261         (amd64_frame_base): Rename from x86_64_frame_base.
14262         (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
14263         (amd64_frame_align): Rename from x86_64_frame_align.
14264         (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
14265         (amd64_regset_from_core_section): Rename from
14266         x86_64_regset_from_core_section.
14267         (x86_64_init_abi): Update comments.
14268
14269 2004-01-04  Nick Roberts  <nick@nick.uklinux.net>
14270
14271         * MAINTAINERS (write after approval): Add myself.
14272
14273 2004-01-04  Mark Kettenis  <kettenis@gnu.org>
14274
14275         * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
14276         `float' arguments.
14277
14278 2004-01-04  Mark Kettenis  <kettenis@gnu.org>
14279
14280         * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
14281         such that it mentions a specific version of GCC that exhibits this
14282         bug.
14283
14284 2004-01-03  Mark Kettenis  <kettenis@gnu.org>
14285
14286         * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
14287         structure that has a single `float' member, store it in %f1 in
14288         addition to %f0.
14289
14290         * sparc-sol2-nat.c: Add missing '\'.
14291
14292         * sparc-tdep.c (sparc32_return_value): New function.
14293          (sparc32_use_struct_convention, sparc32_return_value_on_stack):
14294         Remove functions.
14295         (sparc32_gdbarch_init): Set return_value, don't set
14296         extract_return_value, store_return_value, use_struct_convention
14297         and return_value_on_stack.
14298
14299         * sparc-sol2-nat.c: Add missing ')'.
14300
14301 2004-01-03  J. Brobecker  <brobecker@gnat.com>
14302
14303         * infrun.c (handle_step_into_function): New function.
14304         (handle_inferior_event): Extract out some code into the new
14305         function above.
14306
14307 2004-01-03  J. Brobecker  <brobecker@gnat.com>
14308
14309         * infrun.c (handle_inferior_event): Move the declaration of
14310         real_stop_pc inside the if blocks where it is used.
14311
14312 2004-01-03  Mark Kettenis  <kettenis@gnu.org>
14313
14314         * sparc64-tdep.c (sparc64_16_byte_align_p)
14315         (sparc64_store_floating_fields, sparc64_store_floating_fields):
14316         Use check_typedef to get subtypes of structures and unions.
14317         (sparc64_store_return_value): Fix calculation of the appropriate
14318         offset into VALBUF when storing a structure or union.
14319         (sparc64_return_value): New function.
14320         (sparc64_use_struct_convention): Remove function.
14321         (sparc64_init_abi): Set return_value, don't set
14322         extract_return_value, store_return_value and
14323         use_struct_convention.
14324
14325 2004-01-03  Eli Zaretskii  <eliz@elta.co.il>
14326
14327         * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
14328         bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
14329         gdb/config/alpha/xm-alphaosf.h,
14330         gdb/config/powerpc/tm-ppcle-eabi.h,
14331         gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
14332         gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
14333         gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
14334         gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
14335         gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
14336         gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
14337         gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
14338         gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
14339         gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
14340         gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
14341         gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
14342         nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
14343         include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
14344         opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
14345         opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
14346         sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
14347         sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
14348         sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
14349         sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
14350         sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
14351         sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
14352         Remove lines for .cvsignore files.
14353
14354 2004-01-03  J. Brobecker  <brobecker@gnat.com>
14355
14356         * infrun.c: Back out the previous change.
14357
14358 2004-01-03  Mark Kettenis  <kettenis@gnu.org>
14359
14360         * NEWS: Mention revised SPARC target.  Add sparc-*-lynxos* and
14361         sparc-*-sunos4* to the list of REMOVED configurations.
14362
14363         * configure.tgt: Add back sparc-*-vxworks*.
14364         * remote-vxsparc.c: Remove all includes except for "defs.h",
14365         "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
14366         Include "sparc-tdep.h".
14367         (SPARC_R_G1): New define.
14368         (vxsparc_gregset): New variable.
14369         (ext_format_sparc): Remove extern declaration.
14370         (vx_read_register): Rewrite to use sparc32_supply_gregset and
14371         sparc32_supply_fpregset.
14372         (vx_write_register): Rewrite to use sparc32_collect_gregset,
14373         sparc_collect_rwindow and sparc32_collect_fpregset.
14374         * config/sparc/tm-vxworks.h: New file, based on recently removed
14375         tm-vxsparc.h.
14376         * config/sparc/vxworks.mt: New file, based on recently removed
14377         vxworks.mt.
14378
14379 2004-01-03  J. Brobecker  <brobecker@gnat.com>
14380
14381         * infrun.c (handle_step_into_function): New function.
14382         (handle_inferior_event): Extract out some code into the new
14383         function above.
14384
14385 2004-01-02  Mark Kettenis  <kettenis@gnu.org>
14386
14387         * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
14388         sparcl-tdep.c.  Add sparc-linux-tdep.c, sparc-sol2-nat.c,
14389         sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
14390         sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
14391         sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
14392         sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
14393         (sparc_nat_h): New variable.
14394         (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
14395         (tm-sun4os4.h): Remove dependency.
14396         (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
14397         (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
14398         sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
14399         sparc-tdep.o): Update dependencies.
14400         (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
14401         sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
14402         sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
14403         dependencies.
14404         * configure.host: Remove existing sparc-*-lynxos*,
14405         sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
14406         ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
14407         sparcv9-*-* and sparc64-*-* triplets.  Add new sparc64-*-linux*,
14408         sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
14409         triplets.
14410         * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
14411         sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
14412         sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
14413         sparcv9-*-* and commented out sparc64-*-solars2* triplets.  Add
14414         new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
14415         sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
14416         sparc64-*-solaris2* and sparc64-*-* triplets.
14417         * sparc64-tdep.c: Update copyright year.  Include "inferior.h",
14418         "symtab.h" and "objfiles.h".
14419         (BIAS): Remove define.
14420         (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
14421         (X_DISP19): Remove macros.
14422         (sparc_fetch_instruction): Remove function.
14423         (struct gdbarch_tdep): Remove definition.
14424         (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
14425         (sparc_breakpoint_from_pc): Remove function.
14426         (struct sparc64_frame_cache): Remove definition.
14427         (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
14428         sparc64_unwind_pc): Remove functions.
14429         (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
14430         `struct sparc64_frame_cache.  Call sparc_analyze_prologue instead
14431         of sparc64_analyze_prologue.  Mark constant as ULL instead of UL.
14432         (sparc64_frame_cache): Change return type to `struct
14433         sparc_frame_cache *'.  Simply call sparc_frame_cache.
14434         (sparc64_frame_this_id, sparc64_frame_prev_register,
14435         sparc64_frame_base_address): Use `struct sparc_frame_cache'
14436         instead of `struct sparc64_frame_cache.
14437         (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
14438         sparc_analyze_control_transfer, sparc_software_single_step,
14439         sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
14440         _initialize_sparc64_tdep): Remove functions.
14441         (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
14442         (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
14443         macros.
14444         (sparc64_supply_gregset, sparc64_collect_gregset,
14445         sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
14446         (sparc64_init_abi): New function.
14447         * sparc64-tdep.h: Update copyright year.  Fix typo in multiple
14448         inclusion guard.  Include "sparc-tdep.h".
14449         (BIAS): Define.
14450         (r_tstate_offset, r_fprs_offset): New defines.
14451         (enum sparc_regnum): Remove defenition.
14452         (enum sparc64_regnum): Reformat.
14453         (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
14454         (sparc64_init_abi, sparc64_supply_gregset,
14455         sparc64_collect_gregset, sparc64_supply_fpregset,
14456         sparc64_collect_fpregset): New prototypes.
14457         (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
14458         Add extern declarations.
14459         (sparc64_sol2_init_abi): New prototype.
14460         (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
14461         (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
14462         prototypes.
14463         * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
14464         "sparnbsd-nat.h".
14465         (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
14466         functions.
14467         (_initialize_sparc64fbsd_nat): Remove initialization of
14468         sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
14469         sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
14470         sparcbsd_fpreg_supplies_p.  Initialize sparc_gregset.
14471         * sparc64fbsd-tdep.c: Update copyright year.  Include "frame.h",
14472         "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
14473         (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
14474         (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
14475         (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
14476         (sparc64fbsd_r_y_offset): Remove variables.
14477         (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
14478         Make static and const.
14479         (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
14480         (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
14481         functions.
14482         (sparc64fbsd_gregset): New variable.
14483         (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
14484         and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
14485         and sparc64_supply_fpregset.
14486         (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
14487         (sparc64fbsd_sigtramp_frame_this_id)
14488         (sparc64fbsd_sigtramp_frame_prev_register): New functions.
14489         (sparc64fbsd_sigtramp_frame_unwind): New variable.
14490         (sparc64fbsd_sigtramp_frame_sniffer): New function.
14491         (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
14492         sparc64fbsd_sigtramp_frame_sniffer.  Call sparc64_init_abi.
14493         * sparcnbsd-tdep.c: Update copyright year.  Include
14494         "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
14495         "trad-frame.h" and "gdb_assert.h", don't include "target.h",
14496         "value.h" and "sparcnbsd-tdep.h".
14497         (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
14498         (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
14499         (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
14500         (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
14501         defines.
14502         (sparcnbsd_gregset): New variable.
14503         (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
14504         (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
14505         (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
14506         (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
14507         (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
14508         variables.
14509         (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
14510         (sparc32nbsd_sigcontext_frame_this_id)
14511         (sparc32nbsd_sigcontext_frame_prev_register): New functions.
14512         (sparc32nbsd_sigcontext_frame_unwind): New variable.
14513         (sparc32nbsd_sigtramp_frame_sniffer): New function.
14514         (sparcnbsd_get_longjmp_target_32,
14515         sparcnbsd_get_longjmp_target_64): Remove functions.
14516         (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
14517         (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
14518         sparcnbsd_init_elf): Remove.
14519         (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
14520         (sparcnbsd_elf_init_abi): New functions.
14521         (_initialize_sparcnbsd_tdep): New prototype.
14522         (_initialize_sparnbsd_tdep): Update.
14523         * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
14524         corelow.o.  Add sparc64-nat.o and sparc-nat.o.
14525         * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
14526         * config/sparc/linux.mh: Update comment.
14527         (XM_FILE, HOST_IPC): Remove variables.
14528         (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o.  Remove
14529         sparc-linux-nat.o.
14530         * config/sparc/linux.mt: Update comment.
14531         (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
14532         * config/sparc/nbsd.mt: Reformat.
14533         * config/sparc/nbsd64.mh: Update comment.
14534         (NATDEPFILES): Add sparc-nat.o.
14535         * config/sparc/nbsd64.mt: Update comment.
14536         (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
14537         (TM_FILE): Set to tm-nbsd.h.
14538         * config/sparc/nbsdelf.mh: Update comment.
14539         (NATDEPFILES): Add sparc-nat.o.
14540         (XM_FILE): Delete.
14541         * config/sparc/nbsdaout.mh: Update comment.
14542         (NATDEPFILES): Add sparc-nat.o
14543         (XM_FILE): Delete.
14544         * config/sparc/nm-linux.h: Update copyright year.  Don't include
14545         "config/nm-svr4.h" and "solib.h".  Add protection against multiple
14546         inclusion.
14547         (KERNEL_U_SIZE): Remove define.
14548         (kernel_u_size): Remove prototype.
14549         (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
14550         * config/sparc/nm-nbsd.h: Update copyright.  Don't include
14551         "regcache.h".
14552         (CHILD_PREPARE_TO_STORE): Remove define.
14553         * config/sparc/nm-nbsdaout.h: Tweak some comments.
14554         * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
14555         sparcnbsd-nat.c: Rewrite files.
14556         * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
14557         * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
14558         sparcnbsd-tdep.h: Remove files.
14559         * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
14560         config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
14561         config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
14562         config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
14563         config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
14564         config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
14565         config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
14566         config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
14567         config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
14568         config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
14569         config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
14570         config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
14571         * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
14572         sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
14573         sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
14574         * config/sparc/linux64.mh, config/sparc/linux64.mt,
14575         config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
14576         config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
14577         config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
14578
14579 2004-01-02  Andrew Cagney  <cagney@redhat.com>
14580
14581         From 2003-12-18 Kazuhiro Inaoka:
14582         * configure.host: Add m32r-linux target.
14583
14584 2004-01-02  Michael Chastain  <mec.gnu@mindspring.com>
14585
14586         * top.c (print_gdb_version): Update year to 2004.
14587
14588 2004-01-02  Mark Mitchell  <mark@codesourcery.com>
14589
14590         * MAINTAINERS: Add myself to the write-after-approval category.
14591
14592 2004-01-02  Daniel Jacobowitz  <drow@mvista.com>
14593
14594         From Bernardo Innocenti <bernie@develer.com>:
14595         * configure.tgt: Add uClinux target.
14596
14597 2004-01-02  Andrew Cagney  <cagney@redhat.com>
14598
14599         * utils.c (do_my_cleanups): Make static, add forward declaration.
14600         * defs.h (do_my_cleanups): Delete declaration.
14601
14602 2004-01-02  Eli Zaretskii  <eliz@elta.co.il>
14603
14604         * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
14605         bfd/ChangeLog-0203.
14606
14607 2004-01-02  Mark Kettenis  <kettenis@gnu.org>
14608
14609         * configure.in: Check for <machine/reg.h>.  Check for `struct reg'
14610         in <machine/reg.h>.
14611         * configure, config.in: Regenerate.
14612
14613 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
14614 tui/ChangeLog-1998-2003.
14615 \f
14616 Local Variables:
14617 mode: change-log
14618 left-margin: 8
14619 fill-column: 74
14620 version-control: never
14621 End: