* config/sparc/nbsdaout.mh (NAT_FILE): Set to solib.h.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2004-11-29 Mark Kettenis <kettenis@gnu.org>
2
3 * config/sparc/nbsdaout.mh (NAT_FILE): Set to solib.h.
4 * config/sparc/nbsdelf.mh (NAT_FILE): Remove variable.
5 * config/sparc/nm-nbsd.h: Remove file.
6 * config/sparc/nm-nbsdaout.h: Remove file.
7
8 * sparc-nat.c (inf_ptrace_xfer_partial): New variable.
9 (sparc_xfer_partial): New function.
10 (sparc_target): Save value of to_xfer_partial from ptrace vector.
11 Set to_xfer_partial.
12
13 * fork-child.c (fork_inferior): Fork instead of vfork if
14 PRE_TRACE_FUN is non-null.
15
16 2004-11-24 Fred Fish <fnf@specifixinc.com>
17
18 * rs6000-tdep.c (skip_prologue): Use line table info to skip over
19 compiler generated function calls made as part of a prologue.
20
21 2004-11-23 Mark Kettenis <kettenis@gnu.org>
22
23 * inf-ttrace.c: New file.
24 * inf-ttrace.h: New file.
25 * hppa-hpux-nat.c [HAVE_TTRACE]: Include <sys/ttrace>.
26 Include "inf-ttrace.h".
27 (ss_mpsfu_high): Define to ss_tlsp if necessary.
28 (hppa_hpux_fetch_register, hppa_hpux_store_register): Use
29 ptid_get_pid instead of PIDGET. Modify to handle both ttrace and
30 ptrace systems.
31 (_initialize_hppa_hpux_nat) [HAVE_TTRACE]: Call inf_ttrace_traget
32 instead of inf_ptrace_target.
33 * config/pa/hpux.mh (NATDEPFILES): Add inf-ttrace.o.
34 * Makefile.in (inf_ttrace_h): New variable.
35 (hppa-hpux-nat.o): Update dependency.
36 (inf-ttrace.o): New dependency.
37 (ALLDEPFILES): Add inf-ptrace.c and inf-ttrace.c.
38
39 2004-11-23 Randolph Chung <tausq@debian.org>
40
41 * arch-utils.c (generic_instruction_nullified): New.
42 * arch-utils.h (generic_instruction_nullified): New.
43 * gdbarch.sh (instruction_nullified): New method.
44 * gdbarch.c: Regenerate.
45 * gdbarch.h: Regenerate.
46 * infrun.c (INSTRUCTION_NULLIFIED): Delete.
47 (handle_inferior_event): Replace INSTRUCTION_NULLIFIED with calls to
48 new gdbarch method.
49 * config/pa/tm-hppa.h (INSTRUCTION_NULLIFIED): Delete definition.
50 * hppa-tdep.c (hppa_instruction_nullified): Remove prototype and make
51 static. Rewrite to work directly off the passed regcache.
52 (hppa_gdbarch_init): Set instruction_nullified method.
53
54 2004-11-23 Joel Brobecker <brobecker@gnat.com>
55
56 * sparc-tdep.c (sparc_is_unimp_insn): New function.
57 (sparc32_frame_cache): For functions where there is no debugging
58 information to help us determine whether it's a struct-return
59 function or not, fallback on checking whether the instruction
60 at the return address is an "unimp" instruction or not.
61
62 2004-11-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
63
64 * MAINTAINERS: Add myself to write after approval section.
65
66 * hppa-hpux-nat.c (child_suppress_run): Add variable to allow
67 hpux-thread.c to suppress children from running.
68 (hppa_hpux_child_can_run): New function.
69 (_initialize_hppa_hpux_nat): Use hppa_hpux_child_can_run.
70 * hpux-thread.c: Include string.h and hppa-tdep.h.
71 (FLAGS_REGNUM, SP_REGNUM, PC_REGNUM): Rename to HPPA_FLAGS_REGNUM,
72 HPPA_SP_REGNUM and HPPA_PCOQ_HEAD_REGNUM, respectively.
73 (hpux_thread_store_registers): Replace deprecated_registers with
74 calls to regcache_raw_read.
75 * config/pa/hpux11.mh, config/pa/hpux11w.mh: Delete HOST_IPC.
76
77 2004-11-21 Mark Kettenis <kettenis@gnu.org>
78
79 * sparc64fbsd-nat.c: Update copyright year.
80 (_initialize_sparc64fbsd_nat): Construct and add target vector.
81 * config/sparc/fbsd.mh (NATDEPFILES): Remove infptrace.o,
82 inftarg.o.
83
84 2004-11-21 Daniel Jacobowitz <dan@debian.org>
85
86 * sparc-tdep.c (sparc_software_single_step): Handle stepping to NULL.
87
88 2004-11-21 Daniel Jacobowitz <dan@debian.org>
89
90 * linux-nat.c (my_waitpid): New function.
91 (linux_test_for_tracefork): Make more robust and verbose. Take
92 an ORIGINAL_PID argument and test for PTRACE_SETOPTIONS first.
93 (linux_supports_tracefork, linux_supports_tracevforkdone): Take a PID
94 argument. Update calls to linux_test_for_tracefork.
95 (linux_enable_event_reporting, child_follow_fork)
96 (child_insert_fork_catchpoint, child_insert_vfork_catchpoint)
97 (child_insert_exec_catchpoint): Update calls to
98 linux_supports_tracefork and linux_supports_tracevforkdone.
99
100 2004-11-21 Daniel Jacobowitz <dan@debian.org>
101
102 * valarith.c (value_subscript): Copy VALUE_FRAME_ID.
103 (value_subscripted_rvalue): Likewise.
104 * valops.c (search_struct_field, value_slice): Likewise.
105
106 2004-11-21 Mark Kettenis <kettenis@gnu.org>
107
108 * inf-ptrace.c: Don't include "regcache.h" and "gdbcmd.h".
109 Reorder includes a bit. Fix comment.
110 * Makefile.in (inf-ptrace.o): Update dependencies.
111
112 2004-11-21 Andreas Schwab <schwab@suse.de>
113
114 * m68klinux-tdep.c: Include "glibc-tdep.h" and "solib-svr4.h".
115 (m68k_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
116 svr4_ilp32_fetch_link_map_offsets and gdbarch_skip_solib_resolver
117 to glibc_skip_solib_resolver.
118 * config/m68k/linux.mt (TDEPFILES): Add glibc-tdep.o. Remove
119 solib-legacy.o.
120 * Makefile.in (m68klinux-tdep.o): Update dependencies.
121
122 2004-11-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
123
124 * infttrace.h (ttrace_write_reg_64): Add prototype.
125 * hppah-nat.c (store_inferior_registers): Fix warning from ambiguous
126 expression.
127 (store_inferior_registers): Correct formatting. Replace uses of
128 deprecated_registers with calls to regcache_raw_read,
129 regcache_raw_write_part and regcache_raw_read_part.
130
131 2004-11-21 Mark Kettenis <kettenis@gnu.org>
132
133 * config/pa/hppahpux.mh: Remove file.
134 * config/pa/hpux1020.mh: Remove file.
135
136 2004-11-20 Andreas Schwab <schwab@suse.de>
137
138 * configure.host: Set host floatformat for m68k.
139
140 2004-11-20 Eli Zaretskii <eliz@gnu.org>
141
142 * config/djgpp/fnchange.lst: Resolve file-name clash between
143 hppa-hpux-tdep.c and the new hppa-hpux-nat.c.
144
145 2004-11-20 Mark Kettenis <kettenis@gnu.org>
146
147 * hppa-hpux-nat.c: New file.
148 * config/pa/hpux.mh (NATDEPFILES): New file.
149 * Makefile.in (ALLDEPFILES): Add hppa-hpux-nat.c.
150 (hppa-hpux-nat.o): New dependency.
151 * configure.host: Remove hppa*-*-hpux10.20.
152 (hppa*-*-hpux*, hppa*-*-hiux*): Set gdb_host to hpux.mh.
153
154 * inf-ptrace.c: Fix coding style.
155
156 * gdb_ptrace.h [PTRACE_TYPE_ARG5] (ptrace): New macro.
157 * infptrace.c (call_ptrace): Simply call ptrace with four
158 arguments.
159
160 * dbxread.c (process_one_symbol): Fix a few coding standard
161 issues. Improve code formatting.
162
163 * dbxread.c: Include "gdb_string.h".
164 (record_minimal_symbol, read_ofile_symtab): Replace
165 DEPRECATED_STREQ and DEPRECATED_STREQN with strcmp and strncmp.
166 * Makefile.in (dbxread.o): Update dependencies.
167
168 * dwarf2-frame.c (read_encoded_value): Correctly calculate number
169 of bytes read for aligned LEB128 encodings.
170
171 2004-11-19 Mark Kettenis <kettenis@gnu.org>
172
173 * bsd-kvm.c (bsd_kvm_pcb_cmd): Cast return value from
174 parse_and_eval_address to u_long before converting it to a pointer
175 type.
176 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Change type of
177 ps_strings from int to u_long.
178 * i386obsd-nat.c (_initialize_i386obsd_nat): Cast _ps.val to
179 u_long instead of CORE_ADDR.
180
181 2004-11-18 Mark Kettenis <kettenis@gnu.org>
182
183 * dbxread.c (process_one_symbol): Do not adjust address of first
184 N_SLINE stab for a function for code generated by non-GCC
185 compilers.
186
187 2004-11-18 Kevin Buettner <kevinb@redhat.com>
188
189 * solib-null.c: New file.
190
191 2004-11-17 Andrew Cagney <cagney@gnu.org>
192
193 * MAINTAINERS: Drop MIPS and remote.
194
195 2004-11-15 Andrew Cagney <cagney@gnu.org>
196
197 * findvar.c (value_of_register): Set the frame ID.
198 * value.c (value_primitive_field): Copy the frame ID.
199 * valops.c (value_assign): Simplify lval_register case, there's
200 always a frame.
201
202 2004-11-14 Daniel Jacobowitz <dan@debian.org>
203
204 * Makefile.in (mips-linux-tdep.o): Update dependencies.
205 * mips-linux-tdep.c: Include "regcache.h".
206 (fill_fpregset, mips64_fill_fpregset): Use regcache_raw_collect.
207
208 2004-11-14 Daniel Jacobowitz <dan@debian.org>
209
210 * Makefile.in (linux-thread-db.o): Fix typo in last change.
211
212 2004-11-14 Daniel Jacobowitz <dan@debian.org>
213
214 * linux-thread-db.c: New file, renamed from thread-db.c.
215 * thread-db.c: Remove.
216 * Makefile.in (linux-thread-db.o): Rename from thread-db.o rule.
217 * config/alpha/alpha-linux.mh (NATDEPFILES): Rename thread-db.o
218 to linux-thread-db.o.
219 * config/arm/linux.mh (NATDEPFILES): Likewise.
220 * config/i386/linux.mh (NATDEPFILES): Likewise.
221 * config/i386/linux64.mh (NATDEPFILES): Likewise.
222 * config/ia64/linux.mh (NATDEPFILES): Likewise.
223 * config/m32r/linux.mh (NATDEPFILES): Likewise.
224 * config/m68k/linux.mh (NATDEPFILES): Likewise.
225 * config/mips/linux.mh (NATDEPFILES): Likewise.
226 * config/pa/linux.mh (NATDEPFILES): Likewise.
227 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
228 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
229 * config/s390/s390.mh (NATDEPFILES): Likewise.
230 * config/sparc/linux.mh (NATDEPFILES): Likewise.
231 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
232
233 2004-11-13 Andrew Cagney <cagney@gnu.org>
234
235 * config/i386/i386lynx.mh: Delete file.
236 * config/i386/i386lynx.mt: Delete file.
237 * Makefile.in (ALLDEPFILES, i386ly-tdep.o): Remove i386ly-tdep.c.
238 * i386ly-tdep.c: Delete.
239
240 * config/tm-lynx.h: Delete, inline contents ...
241 * config/rs6000/tm-rs6000ly.h: ... here.
242
243 * config/tm-sysv4.h: Delete file, inlining contents.
244 * config/ia64/tm-aix.h (SKIP_TRAMPOLINE_CODE): Define.
245 * config/tm-linux.h (SKIP_TRAMPOLINE_CODE): Define.
246 * config/tm-nto.h (SKIP_TRAMPOLINE_CODE): Define.
247
248 * regcache.h (deprecated_register_valid): Delete.
249 (deprecated_registers): Delete.
250 * regcache.c (deprecated_register_valid): Delete.
251 (deprecated_registers): Delete.
252 (deprecated_read_register_byte, _initialize_regcache)
253 (deprecated_write_register_bytes, build_regcache): Update.
254 * config/powerpc/ppc-sim.mt (TDEPFILES): Remove ppc-bdm.o and
255 remote-sds.o.
256 * config/powerpc/ppc-eabi.mt (TDEPFILES): Ditto.
257 * config/mips/embed.mt (TDEPFILES): Remove remote-mips.o.
258
259 * NEWS: List h8300*-*-*, mcore-*-*, mn10300-*-*, ns32k-*-*, and
260 v850-*-* under removed.
261 * configure.host: Delete ns32k-*-netbsd*.
262 * configure.tgt: Delete h8300-*-*, mcore*-*-*, mn10300-*-*,
263 ns32k-*-netbsd*, and v850*-*-*.
264 * MAINTAINERS: Mark h8300, mcore, mn10300, ns32k, v850 as
265 "Deleted"
266 * config/h8300/tm-h8300.h, config/h8300/h8300.mt: Delete.
267 * h8300-tdep.c, config/mcore/mcore.mt, mcore-rom.c: Delete.
268 * mcore-tdep.c, config/mn10300/mn10300.mt: Delete.
269 * mn10300-tdep.c, config/ns32k/nbsdaout.mh: Delete.
270 * config/ns32k/nbsdaout.mt, config/ns32k/nm-nbsd.h: Delete.
271 * config/ns32k/nm-nbsdaout.h, config/ns32k/tm-ns32k.h: Delete.
272 * ns32knbsd-nat.c, ns32knbsd-tdep.c, ns32k-tdep.c: Delete.
273 * ns32k-tdep.h, config/v850/v850.mt, v850ice.c: Delete.
274 * v850-tdep.c: Delete.
275
276 2004-11-13 Joel Brobecker <brobecker@gnat.com>
277
278 * irix5-nat.c (fetch_core_registers): Replace use of
279 deprecated_registers by equivalent code.
280
281 2004-11-13 Joel Brobecker <brobecker@gnat.com>
282
283 * irix5-nat.c (fill_gregset): Replace use of deprecated_registers
284 with equivalent code.
285 (fill_fpregset): Likewise.
286
287 2004-11-13 Andrew Cagney <cagney@gnu.org>
288
289 * MAINTAINERS: Do not list "Deleted" architectures.
290
291 * configure.tgt: Delete i[34567]86-*-vxworks*, m68*-netx-*,
292 m68*-*-vxworks*, mips*-*-vxworks*, powerpc-*-vxworks*, and
293 sparc-*-vxworks*.
294 * NEWS: Mention that vxworks was deleted.
295 * config/m68k/tm-vx68.h, config/mips/tm-vxmips.h: Delete.
296 * config/powerpc/tm-vxworks.h, config/tm-vxworks.h: Delete.
297 * config/i386/vxworks.mt, config/m68k/vxworks68.mt: Delete.
298 * config/mips/vxmips.mt, config/powerpc/vxworks.mt: Delete.
299 * config/sparc/vxworks.mt, vx-share/dbgRpcLib.h: Delete.
300 * vx-share/ptrace.h, vx-share/regPacket.h: Delete.
301 * vx-share/vxTypes.h, vx-share/vxWorks.h: Delete.
302 * vx-share/wait.h, vx-share/xdr_ld.c: Delete.
303 * vx-share/xdr_ld.h, vx-share/xdr_ptrace.c: Delete.
304 * vx-share/xdr_ptrace.h, vx-share/xdr_rdb.c: Delete.
305 * vx-share/xdr_rdb.h, remote-vxsparc.c: Delete.
306 * remote-vxmips.c, remote-vx.c: Delete.
307 * remote-vx68.c: Delete.
308 * config/m68k/tm-os68k.h: Remove reference to VxWorks.
309 * config/m68k/os68k.mt, ada-lang.h: Ditto.
310 * Makefile.in (HFILES_NO_SRCDIR, ALLDEPFILES, remote-vx68.o)
311 (remote-vx.o, remote-vxmips.o, remote-vxsparc.o): Delete vx files.
312
313 2004-11-13 Eli Zaretskii <eliz@gnu.org>
314
315 * config/i386/xm-go32.h: Don't include fopen-bin.h.
316 Don't define CRLF_SOURCE_FILES and DIRNAME_SEPARATOR.
317
318 * source.c (OPEN_MODE, FDOPEN_MODE): Remove the definitions in the
319 branch that doesn't define CRLF_SOURCE_FILES; always use
320 binary-mode open.
321 (print_source_lines_base, forward_search_command)
322 (reverse_search_command): Enable the code that accepts DOS-style
323 CRLF line endings on all platforms (this removes the need for
324 CRLF_SOURCE_FILES).
325
326 * defs.h: Fix wording of the comment before FOPEN_RB.
327 (DIRNAME_SEPARATOR) [__MSDOS__]: Define to ';'.
328
329 * config/djgpp/fnchange.lst: Group renames for opcode directory
330 together.
331
332 * config/djgpp/djconfig.sh: Replace file names that don't exist
333 anymore with existing files, for checking the unpacked
334 distribution.
335
336 * config/djgpp/config.sed (am_cv_exeext, lt_cv_sys_max_cmd_len):
337 Export pre-cooked values in configure-* targets that begin with
338 "@test -f stage_last".
339
340 2004-11-12 Andrew Cagney <cagney@gnu.org>
341
342 * defs.h (enum lval_type): Delete lval_reg_frame_relative.
343 * value.h (struct value): Update comment.
344 * valops.c (value_assign): Fold lval_reg_fame_relative into
345 lval_register.
346 * findvar.c (value_from_register, locate_var_value): Ditto.
347
348 2004-11-12 Randolph Chung <tausq@debian.org>
349
350 * config/tm/tm-hppa.h (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
351 * parse.c (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
352 (write_exp_msymbol): Remove conditional check for symbols starting
353 with $. Update comments.
354
355 2004-11-12 Randolph Chung <tausq@debian.org>
356
357 * pa64solib.c (pa64_solib_thread_start_addr): Rename from
358 so_lib_thread_start_addr.
359 * pa64solib.h (so_list): Forward declare.
360 (pa64_solib_thread_start_addr): Prototype.
361 * somsolib.c (SHL_LOAD, SHL_UNLOAD): Define if not already defined.
362 (no_shared_libraries): Remove.
363 (som_solib_thread_start_addr): Rename from so_lib_thread_start_addr.
364 * somsolib.h (som_solib_thread_start_addr): Likewise; prototype.
365 * hpread.c (hpread_process_one_debug_symbol): Use either the som or
366 the elf solib handler to find the start address.
367
368 * config/pa/hppahpux.mh (NATDEPFILES): Move target-specific support
369 files to the target makefile.
370 * config/pa/hpux1020.mh (NATDEPFILES): Likewise.
371 * config/pa/hpux11.mh (NATDEPFILES): Likewise.
372 * config/pa/hpux11w.mh (NATDEPFILES): Likewise.
373
374 * config/pa/hppa64.mt (TDEPFILES): Put target-specific support
375 files for symbol reading and shared library handling here.
376 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
377 (PA_SOM_ONLY): Define so we can build a 32-bit SOM only target
378 without bringing in 64-bit support.
379
380 2004-11-12 Andrew Cagney <cagney@gnu.org>
381
382 * sparc-tdep.c: Replace VALUE_TYPE with value_type.
383 * v850-tdep.c, sparc64-tdep.c, sh-tdep.c: Ditto.
384 * sh64-tdep.c, s390-tdep.c, mcore-tdep.c: Ditto.
385 * h8300-tdep.c, arm-linux-tdep.c, amd64-tdep.c: Ditto.
386 * hppa-tdep.c, mips-tdep.c, m88k-tdep.c: Ditto.
387 * m68hc11-tdep.c, m32r-tdep.c, ia64-tdep.c: Ditto.
388 * frv-tdep.c, cris-tdep.c, avr-tdep.c, alpha-tdep.c: Ditto.
389
390 Merge VALUE_REGNO and VALUE_FRAME_REGNUM into VALUE_REGNUM.
391 * value.h (VALUE_REGNO, VALUE_FRAME_REGNUM): Delete.
392 (VALUE_REGNUM): Define.
393 (struct value): Delete location.regnum, rename "regno" to
394 "regnum".
395 * value.c, valops.c, valarith.c, findvar.c: Update.
396
397 * value.h (VALUE_TYPE, VALUE_NEXT, VALUE_OFFSET, VALUE_BITSIZE)
398 (VALUE_BITPOS): Delete.
399 (value_type, value_offset, value_bitsize, value_bitpos): Declare.
400 * value.c (value_type, value_offset, value_bitpos)
401 (value_bitsize): New functions. Update references.
402 * arm-tdep.c, gnu-v3-abi.c, hpacc-abi.c, gnu-v2-abi.c: Update.
403 * f-valprint.c, cp-valprint.c, c-valprint.c: Update.
404 * ada-valprint.c, typeprint.c, scm-valprint.c, scm-exp.c: Update.
405 * p-valprint.c, jv-valprint.c, jv-lang.c, varobj.c: Update.
406 * objc-lang.c, ada-lang.c, std-regs.c, stack.c: Update.
407 * infcall.c, linespec.c, printcmd.c, valarith.c: Update.
408 * valops.c, eval.c, findvar.c, breakpoint.c: Update.
409 * tracepoint.c, ax-gdb.c, mi/mi-main.c, cli/cli-dump.c:
410 * rs6000-tdep.c, ppc-sysv-tdep.c: Update.
411
412 2004-11-12 Andrew Cagney <cagney@gnu.org>
413
414 * cris-tdep.c (cris_register_offset): Delete, never called.
415 (cris_spec_reg_applicable): Delete cris_ver_sim.
416 * MAINTAINERS: List d10v as OBSOLETE.
417 * rdi-share/host.h (FOPEN_WB): #ifdef 0 out definitions of
418 FOPEN_WB et.al., defined by "fopen-bin.h".
419
420 2004-11-12 Randolph Chung <tausq@debian.org>
421
422 * hppa-tdep.c (hppa_skip_permanent_breakpoint): Move definition ...
423 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): ... to here.
424 * config/pa/tm-hppa.h (SKIP_PERMANENT_BREAKPOINT): Move definition ...
425 * config/pa/tm-hppah.h (SKIP_PERMANENT_BREAKPOINT): ... to here.
426
427 2004-11-12 Mark Kettenis <kettenis@jive.nl>
428
429 * tui/tui-io.c: Don't include "terminal.h".
430 * Makefile.in (tui-io.o): Update dependencies.
431
432 2004-11-12 Kei Sakamoto <sakamoto.kei@renesas.com>
433
434 * Makefile.in (m32r-linux-tdep.o): Update dependencies.
435 * m32r-linux-tdep.c (m32r_linux_init_abi): Call
436 set_gdbarch_regset_from_core_section for core file support.
437 (m32r_linux_supply_gregset, m32r_linux_regset_from_core_section):
438 New functions.
439
440 2004-11-11 Randolph Chung <tausq@debian.org>
441
442 * hppa-tdep.c (skip_prologue_hard_way): Make static, add
443 stop_after_branch parameter and use it to determine if we should look
444 at the delay slot of the first branch insn to find prologue insns.
445 (hppa_skip_prologue): Update comment and call to skip_prologue_hard_way.
446 (hppa_frame_cache): Likewise.
447
448 2004-11-11 Randolph Chung <tausq@debian.org>
449
450 * hppa-tdep.c (hppa_frame_cache): Properly handle the frame pointer
451 register so that it can be unwound from anywhere in the prologue.
452
453 2004-11-10 msnyder <msnyder@redhat.com>
454
455 * rs6000-tdep.c (skip_prologue): After saving lr_offset,
456 must invalidate lr_reg (so we don't try to save it again).
457 Ditto for cr_offset and cr_reg.
458
459 2004-11-05 Jon Beniston <jon@beniston.com>
460
461 Committed by Andrew Cagney.
462 * remote.c (putpkt_binary) Fix PR gdb/1806. Send an ACK
463 when an unexpected packet is received, as the target stubs
464 continually retransmit the same packet until ACKed.
465
466 2004-11-10 Randolph Chung <tausq@debian.org>
467
468 * frame.c (get_prev_frame): Use get_frame_type to retrieve the
469 frame's type.
470
471 2004-11-10 Randolph Chung <tausq@debian.org>
472
473 * blockframe.c (inside_entry_func): Move to .....
474 * frame.c (inside_entry_func): ... here, and make static.
475 (backtrace_past_entry): New flag.
476 (get_prev_frame): Stop backtrace at the entry function if enabled
477 by flag. Update comments.
478 (_initialize_frame): Add command to set backtrace_past_entry flag.
479 * defs.h (inside_entry_func): Remove prototype.
480
481 2004-11-10 Mark Kettenis <kettenis@gnu.org>
482
483 * dwarf2read.c: Fix formatting.
484
485 2004-11-10 Andrew Cagney <cagney@gnu.org>
486
487 * value.h (COERCE_REF, COERCE_ARRAY, COERCE_NUMBER, COERCE_ENUM)
488 (coerce_ref, coerce_array, coerce_number, coerce_enum): Replace
489 macros with function declarations.
490 * value.c (coerce_ref, coerce_array, coerce_number)
491 (coerce_enum): New functions.
492 (value_as_long, value_as_address): Update.
493 * ada-lang.c (ada_coerce_ref, ada_value_binop)
494 (ada_evaluate_subexp, ada_value_assign, ada_value_struct_elt): Update.
495 * jv-lang.c (evaluate_subexp_java): Update.
496 * valarith.c (value_less, value_neg, value_complement)
497 (value_binop, value_add, value_subscript, value_x_binop)
498 (value_logical_not, value_sub): Update.
499 * valops.c (check_field, value_struct_elt, value_ind)
500 (value_find_oload_method_list, value_cast, value_assign): Update.
501 * eval.c (evaluate_subexp_standard): Update.
502
503 2004-11-10 Mark Kettenis <kettenis@gnu.org>
504
505 * mips-tdep.c (mips32_relative_offset): Change return type to
506 LONGEST, change argument type to ULONGEST. Fix sign-extension.
507
508 2004-11-10 Randolph Chung <tausq@debian.org>
509
510 * hppa-tdep.c (hppa32_register_name, hppa64_register_name): Make static.
511 (hppa32_push_dummy_call, hppa64_push_dummy_call): Likewise.
512 (hppa_fetch_pointer_argument): Likewise.
513 (hppa_frame_cache): Use safe_frame_unwind_memory instead of
514 deprecated_read_memory_nobpt.
515 (_initialize_hppa_tdep): Replace deprecated_add_show_from_set/
516 add_set_cmd sequence with add_setshow_boolean_cmd.
517
518 2004-11-09 Andrew Cagney <cagney@gnu.org>
519
520 GDB 6.3 released from GDB 6.3 branch.
521
522 2004-11-09 Andrew Cagney <cagney@gnu.org>
523
524 * values.c: Rename to ...
525 * value.c: ..., new file.
526 * Makefile.in: Update.
527
528 2004-11-09 Daniel Jacobowitz <dan@debian.org>
529
530 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Correct allocated
531 size.
532
533 2004-11-09 Andrew Cagney <cagney@gnu.org>
534
535 * TODO: Delete.
536
537 * value.h (struct value): Delete field bfd_section.
538 (VALUE_BFD_SECTION): Delete macro.
539 (COERCE_REF): Update.
540 (value_at, value_at_lazy): Delete asection parameter.
541 * printcmd.c (print_formatted, x_command): Update.
542 (do_examine): Delete asection parameter.
543 (next_section): Delete variable.
544 * valops.c (value_cast, value_at, value_at_lazy)
545 (value_coerce_function, value_addr, value_ind, value_string)
546 (find_rt_vbase_offset, value_full_object): Update.
547 * hpacc-abi.c (hpacc_virtual_fn_field)
548 (hpacc_value_rtti_type): Update.
549 * gnu-v3-abi.c (gnuv3_rtti_type, gnuv3_virtual_fn_field)
550 (gnuv3_baseclass_offset): Update.
551 * f-valprint.c (f_val_print): Update.
552 * c-valprint.c (c_val_print): Update.
553 * p-valprint.c (pascal_val_print): Update.
554 * jv-valprint.c (java_value_print): Update.
555 * jv-lang.c (java_class_from_object, evaluate_subexp_java): Update.
556 * ada-lang.c (ada_value_primitive_packed_val)
557 (ada_evaluate_subexp): Update.
558 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Update.
559 * expprint.c (print_subexp_standard): Update.
560 * infcall.c (call_function_by_hand): Update.
561 * valarith.c (value_add): Update.
562 * eval.c (evaluate_subexp_standard): Update.
563 * values.c (allocate_value, value_copy, value_static_field): Update.
564 * findvar.c (read_var_value, locate_var_value): Update.
565
566 2004-11-09 Andrew Cagney <cagney@gnu.org>
567
568 * i386-linux-tdep.c: Include "dwarf2-frame.h".
569 * Makefile.in: Update all dependencies.
570
571 2004-11-08 Andrew Cagney <cagney@gnu.org>
572
573 * sentinel-frame.c (sentinel_frame_prev_pc): New function.
574 (sentinel_frame_unwinder): Add the prev_pc method.
575 * frame.c (frame_pc_unwind): Use the per-frame pc unwinder when
576 available. Do not handle the sentinel-frame case.
577 * frame-unwind.h (frame_prev_register_ftype): Define.
578 (struct frame_unwind): Add prev_pc;
579
580 2004-11-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
581
582 * configure.in: Check for ncurses/term.h.
583 * gdb_curses.h: Include term.h here, prefering ncurses/term.h.
584 * utils.c: Include gdb_curses.h instead of curses.h and term.h.
585 * tui/tui.c: Don't include term.h.
586 * configure, config.in: Rebuilt.
587
588 2004-11-08 Mark Kettenis <kettenis@gnu.org>
589
590 * m68kbsd-nat.c: Include "inf-ptrace.h".
591 (_initialize_m68kbsd_nat): Fix pasto.
592 * Makefile.in (m68kbsd-nat.o): Update dependencies.
593
594 2004-11-08 Randolph Chung <tausq@debian.org>
595
596 * infrun.c (debug_infrun): New variable.
597 (resume, proceed, wait_for_inferior): Annotate with debug messages.
598 (handle_inferior_event, keep_going): Likewise.
599 (_initialize_infrun): Register "set debug infrun" command.
600
601 2004-11-08 Andreas Schwab <schwab@suse.de>
602
603 * linux-nat.c (PTRACE_EVENT_VFORK_DONE): Renamed from
604 PTRACE_EVENT_VFORKDONE.
605 (child_follow_fork): Adjust.
606
607 2004-11-08 Andrew Cagney <cagney@gnu.org>
608
609 * README: Refer to 6.3, not 6.2, update directory listing droppng
610 references to intl/ and mmalloc/.
611 * PROBLEMS: Refer to 6.3 not 6.2.
612
613 * PROBLEMS: Delete no-longer applicable problems.
614
615 2004-11-07 Andrew Cagney <cagney@redhat.com>
616 Daniel Jacobowitz <dan@debian.org>
617 Roland McGrath <roland@redhat.com>
618
619 * Makefile.in (symfile-mem.o): Update dependencies.
620 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): New.
621 (i386_linux_init_abi): Call dwarf2_frame_set_signal_frame_p.
622 * inf-ptrace.c (inf_ptrace_attach): Call
623 observer_notify_inferior_created.
624 * inftarg.c (child_attach): Likewise.
625 * symfile-mem.c: Include "observer.h", "auxv.h", and "elf/common.h".
626 (symbol_file_add_from_memory): Take NAME argument. Use it for
627 the new BFD's filename.
628 (add_symbol_file_from_memory_command): Update call to
629 symbol_file_add_from_memory.
630 (struct symbol_file_add_from_memory_args, add_vsyscall_page)
631 (symbol_file_add_from_memory_wrapper): New.
632 (_initialize_symfile_mem): Register add_vsyscall_page as an
633 inferior_created observer.
634
635 2004-11-07 Mark Kettenis <kettenis@gnu.org>
636
637 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Rename from
638 fetch_inferior_registers. Make static.
639 (m68kbsd_store_inferior_registers): Rename from
640 store_inferior_registers. Make static.
641 (_initialize_m68kbsd_nat): Construct and add target vector.
642 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
643 inftarg.o. Add inf-ptrace.o.
644 (NAT_FILE): Set to tm-solib.h.
645 (LOADLIBES): New variable.
646 * config/m68k/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
647 inftarg.o. Add inf-ptrace.o.
648 (NAT_FILE): Delete variable.
649 * config/m68k/obsd.mh (NATDEPFILES): Remove infptrace.o and
650 inftarg.o. Add inf-ptrace.o.
651 (NAT_FILE): Set to tm-solib.h.
652 * config/m68k/nm-nbsdaout.h: Remove file.
653
654 2004-11-07 Daniel Jacobowitz <dan@debian.org>
655
656 * dwarf2-frame.c (struct dwarf2_frame_ops): Add signal_frame_p.
657 (dwarf2_frame_set_signal_frame_p, dwarf2_frame_signal_frame_p)
658 (dwarf2_signal_frame_unwind): New.
659 (dwarf2_frame_sniffer): Use dwarf2_frame_signal_frame_p.
660 * dwarf2-frame.h (dwarf2_frame_set_signal_frame_p): New prototype.
661
662 2004-11-07 Mark Kettenis <kettenis@gnu.org>
663
664 * Makefile.in (mips64obsd-tdep.o): Fix typo.
665
666 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Renamed
667 from mipsnbsd_ilp32_solib_svr4_fetch_link_map_offsets. Trim sizes
668 to only include the structure members we actually need.
669 (mipsnbsd_lp64_fetch_link_map_offsets): Renamed from
670 mipsnbsd_lp64_solib_svr4_fetch_link_map_offsets. Trim sizes to
671 only include the structure members we actually need.
672 (mipsnbsd_init_abi): Update.
673
674 * mips64obsd-nat.c: Include "mips-tdep.h".
675 (MIPS64OBSD_NUM_REGS): Remove define.
676 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM): New defines.
677 (mips64obsd_supply_gregset, mips64obsd_collect_gregset): Handle
678 floating-point registers correctly.
679 * Makefile.in (mips64obsd-nat.o): Update dependencies.
680
681 * mips64obsd-tdep.c: Include "trad-frame.h", "tramp-frame.h" and
682 "gdb_assert.h".
683 (mips64obsd_sigframe_init): New function.
684 (mips64obsd_sigframe): New variable.
685 (mips64obsd_init_abi): Add comments. Prepend mips64obsd_sigrame
686 unwinder.
687 * Makefile.in (mips64obsd-tdep.o): Update dependencies.
688
689 2004-11-06 Joel Brobecker <brobecker@gnat.com>
690
691 * alpha-mdebug-tdep.c: #include mdebugread.h.
692 Replace alpha_extra_func_info_t by struct mdebug_extra_func_info *.
693 * Makefile.in (alpha-mdebug-tdep.o): Add dependency on mdebugread.h.
694
695 2004-11-05 Andrew Cagney <cagney@gnu.org>
696
697 * dwarf2-frame.c (dwarf2_frame_cache): Only complain when both the
698 CFI and the init_reg method leave the register unspecified.
699 Include the register name in the "Incomplete CFI data" complaint.
700 Supress leading zeros in the address.
701
702 2004-11-05 Mark Kettenis <kettenis@gnu.org>
703
704 * dwarf2-frame.c (decode_frame_entry_1): Avoid indirection when
705 skipping a personality routine in a CIE augmentation.
706
707 2004-11-05 Jeff Johnston <jjohnstn@redhat.com>
708
709 * defs.h (fatal, vfatal): New function prototypes.
710 * stack.c (backtrace_command_stub): Stub to call backtrace_command_1
711 via catch_errors.
712 (backtrace_command): Change to call backtrace_command_stub via
713 catch_errors instead of calling backtrace_command_1 directly.
714 (backtrace_full_command): Ditto.
715 * utils.c (error_stream_1): New static function.
716 (verror): Change to call error_stream_1 instead of error_stream.
717 (error_stream): Call error_stream_1 with RETURN_ERROR argument.
718 (vfatal, fatal): New functions.
719
720 2004-11-05 Andrew Cagney <cagney@gnu.org>
721
722 * stack.c (parse_frame_specification_1): Clear selected_frame_p
723 when not using selected frame.
724
725 2004-11-05 Mark Kettenis <kettenis@jive.nl>
726
727 * dwarf2-frame.c (decode_frame_entry_1): Correctly skip
728 personality routine in a CIE augmentation.
729
730 2004-11-05 Felix Lee <felix+log1@specifixinc.com>
731
732 * stack.c (set_current_sal_from_frame): New function.
733 (print_args_stub): Use it.
734 (print_frame_info): Don't set sal here.
735
736 2004-11-04 Mark Kettenis <kettenis@gnu.org>
737
738 * dwarf2-frame.c (read_encoded_value): Change type of third
739 argument to `unsigned char *'. Add support for LEB128 encodings.
740
741 2004-11-04 Jim Blandy <jimb@redhat.com>
742
743 * gdbtypes.c (make_qualified_type): Doc fix. Add assertion to
744 prevent cross-objfile references.
745 (make_cv_type): Doc fix. Don't create cross-objfile references,
746 even for stub types.
747 (replace_type): Add assertion to prevent cross-objfile references.
748 (check_typedef): Never resolve a stub type by copying over a type
749 from another file.
750
751 2004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
752
753 * Makefile.in (m32r-tdep.o): Update dependencies.
754 * m32r-tdep.c (m32r_gdbarch_init): Call gdbarch_init_osabi for
755 ABI-specific overrides.
756
757 2004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
758
759 * m32r-tdep.c (m32r_memory_insert_breakpoint): Remove
760 unnecessary parallel execution bit.
761 (m32r_memory_remove_breakpoint): Ditto.
762 (m32r_breakpoint_from_pc): Update.
763
764 2004-11-03 Randolph Chung <tausq@debian.org>
765
766 * hppa-tdep.c (hppa_frame_cache): Use frame_pc_unwind instead of
767 frame_func_unwind to locate the unwind entry.
768 (hppa_frame_this_id): Likewise.
769
770 2004-11-03 Andrew Cagney <cagney@gnu.org>
771
772 * gdb/NEWS: Mention internationalization, m32r-*-linux-gnu, 'p'
773 packet, obsolete configurations, end-of-life deprecated_registers.
774
775 2004-11-02 Mark Kettenis <kettenis@gnu.org>
776
777 * dwarf2-frame.c (read_encoded_value): Set proper size for signed
778 encodings as well as unsigned encodings.
779
780 2004-11-02 Andrew Cagney <cagney@gnu.org>
781
782 * value.h (COERCE_VARYING_ARRAY): Delete.
783 * valops.c (value_cast, value_slice): Delete use.
784 * valarith.c (value_subscript, value_concat): Delete use.
785
786 2004-11-02 Paul Hilfinger <hilfingr@nile.gnat.com>
787
788 * NEWS: GDB understands GNAT Ada.
789
790 2004-11-01 Joseph S. Myers <joseph@codesourcery.com>
791
792 * Makefile.in (ALLDEPFILES): Add amd64-sol2-tdep.c.
793 (amd64-sol2-tdep.o): Add dependencies.
794 * amd64-sol2-tdep.c, config/i386/sol2-64.mh,
795 config/i386/sol2-64.mt: New files.
796 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offset,
797 amd64_sol2_gregset32_reg_offset, _initialize_amd64_sol2_nat): New.
798 (supply_gregset): Correct order of arguments to
799 amd64_supply_native_gregset.
800 (fill_gregset): Correct order of arguments to
801 amd64_collect_native_gregset.
802 * configure.host (i[34567]86-*-solaris2.1[0-9]*): Add new case.
803 * configure.tgt (i[34567]86-*-solaris2.1[0-9]*): Likewise.
804 * configure.in (*-*-solaris2.[[6789]]): Add *-*-solaris2.1[[0-9]]
805 for definition of NEW_PROC_API.
806 * configure: Regenerate.
807
808 2004-11-01 Joseph S. Myers <joseph@codesourcery.com>
809
810 * MAINTAINERS (Write After Approval): Add myself.
811
812 2004-11-01 Andrew Cagney <cagney@gnu.org>
813
814 * configure.tgt: Mark d10v-*-* as obsolete.
815 * config/d10v/d10v.mt, d10v-tdep.c: Obsolete files.
816
817 2004-11-01 Paul N. Hilfinger <Hilfinger@gnat.com>
818
819 * values.c (modify_field): Correct handling of bit-fields that
820 don't fit in 32 bits. Use unsigned operations throughout and
821 simplify the code a bit. Document preconditions.
822
823 2004-10-31 Andrew Cagney <cagney@gnu.org>
824
825 * config/pa/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
826 * config/tm-sysv4.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
827 (in_plt_section): Delete.
828
829 * mips-tdep.c (mips_in_solib_return_trampoline): Delete.
830 (mips_gdbarch_init): Do not set same.
831
832 * arch-utils.c (generic_in_solib_call_trampoline): Delete.
833 * arch-utils.h (generic_in_solib_call_trampoline): Delete.
834
835 * gdbarch.sh (in_solib_call_trampoline): Delete.
836 * gdbarch.h, gdbarch.c: Re-generate.
837
838 * hppa-tdep.c (hppa_stub_unwind_sniffer): Replace
839 IN_SOLIB_CALL_TRAMPOLINE with tdep.in_solib_call_trampoline.
840 * hppa-tdep.h (struct gdbarch_tdep): Add in_solib_call_trampoline.
841 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Set same.
842 * hppa-linux-tdep.c (hppa_linux_init_abi): Ditto.
843
844 2004-10-31 Mark Kettenis <kettenis@gnu.org>
845
846 * mipsnbsd-nat.c: Include "target.h" and "inf-ptrace.h".
847 (mipsnbsd_fetch_inferior_registers): Rename from
848 fetch_inferior_registers. Make static.
849 (mipsnbsd_store_inferior_registers): Rename from
850 store_inferior_registers. Make static.
851 (_initialize_mipsnbsd_nat): New function and prototype.
852 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
853 * config/mips/nbsd.mh (NAT_CLIBS, NAT_FILE): Remove variables.
854 (NATDEPFILES): Remove infptrace.o and inftarg.o. Add
855 inf-ptrace.o.
856
857 2004-10-31 Andrew Cagney <cagney@gnu.org>
858
859 * xstormy16-tdep.c (xstormy16_in_solib_call_trampoline)
860 (xstormy16_gdbarch_init): Do not set in_solib_call_trampoline,
861 delete corresponding unused function.
862 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Really do not set
863 in_solib_call_trampoline.
864 * config/arm/tm-embed.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
865 * config/powerpc/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
866 * config/mips/tm-nbsd.h: Ditto.
867 * config/arm/tm-linux.h: Ditto.
868 * config/mips/tm-linux.h: Ditto.
869
870 * armnbsd-tdep.c (arm_netbsd_aout_init_abi)
871 (arm_netbsd_aout_in_solib_call_trampoline): Do not set
872 in_solib_call_trampoline, delete corresponding unused function.
873 * vaxnbsd-tdep.c (vaxnbsd_aout_in_solib_call_trampoline)
874 (vaxnbsd_aout_init_abi): Ditto.
875 * sparcnbsd-tdep.c (sparcnbsd_aout_in_solib_call_trampoline)
876 (sparc32nbsd_aout_init_abi): Ditto.
877 * ppc-linux-tdep.c (ppc64_in_solib_call_trampoline)
878 (ppc_linux_init_abi): Ditto.
879 * ns32knbsd-tdep.c (ns32knbsd_aout_in_solib_call_trampoline)
880 (ns32knbsd_init_abi_aout): Ditto.
881 * mips-tdep.c (mips_in_call_stub, mips_gdbarch_init): Ditto.
882 * mips-linux-tdep.c (mips_linux_init_abi): Ditto.
883 * m68kbsd-tdep.c (m68kbsd_aout_in_solib_call_trampoline)
884 (m68kbsd_aout_init_abi): Ditto.
885 * i386-cygwin-tdep.c (i386_cygwin_in_solib_call_trampoline)
886 (i386_cygwin_init_abi): Ditto.
887 * i386bsd-tdep.c (i386bsd_aout_in_solib_call_trampoline)
888 (i386bsd_init_abi): Ditto.
889
890 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Do not set
891 in_solib_call_trampoline to in_plt_entry, IN_SOLIB_CALL_TRAMPOLINE
892 isn't used by this architecture.
893 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
894 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Ditto.
895 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Ditto.
896 * s390-tdep.c (s390_gdbarch_init): Ditto.
897 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
898 * m68klinux-tdep.c (m68k_linux_init_abi): Ditto.
899 * i386-tdep.c (i386_svr4_init_abi): Ditto.
900 * i386-nto-tdep.c (i386nto_init_abi): Ditto.
901 * arm-linux-tdep.c (arm_linux_init_abi): Ditto.
902 * amd64-tdep.c (amd64_init_abi): Ditto.
903
904 * vaxnbsd-tdep.c (vaxnbsd_elf_init_abi): Do not set
905 in_solib_call_trampoline to its default value of
906 generic_in_solib_call_trampoline.
907 * ppcobsd-tdep.c (ppcobsd_init_abi): Ditto.
908 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Ditto.
909 * i386obsd-tdep.c (i386obsd_elf_init_abi): Ditto.
910 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Ditto.
911 * i386fbsd-tdep.c (i386fbsd_init_abi): Ditto.
912 * hppabsd-tdep.c (hppabsd_init_abi): Ditto.
913
914 * mips-tdep.c (mips_dump_tdep): Don't print any of the macros.
915
916 * config/mips/obsd64.mt (DEPRECATED_TM_FILE): Delete.
917
918 * config/mips/tm-mips.h: Delete file.
919 * remote-mips.c: Delete tm-mips.h from comment.
920 * config/mips/embed.mt (DEPRECATED_TM_FILE): Delete.
921 * config/mips/tm-nbsd.h: Don't include tm-mips.h.
922 * config/mips/irix6.mt (DEPRECATED_TM_FILE): Delete.
923 * config/mips/tm-linux.h: Don't include tm-mips.h.
924 * config/mips/tm-vxmips.h: Don't include tm-mips.h.
925 * config/mips/irix5.mt (DEPRECATED_TM_FILE):
926 * config/mips/tm-wince.h: Don't include.
927
928 * mdebugread.h (MDEBUG_EFI_SYMBOL_NAME): Define.
929 * mdebugread.c (MDEBUG_EFI_SYMBOL_NAME): Delete.
930 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
931 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
932
933 * mdebugread.h (ecoff_relocate_efi): Delete declaration.
934 * mdebugread.c (ecoff_relocate_efi): Delete function.
935 * objfiles.c (objfile_relocate): Delete #ifdef
936 MDEBUG_EFI_SYMBOL_NAME code.
937
938 2004-10-31 Orjan Friberg <organ.friberg@axis.com>
939 Andrew Cagney <cagney@gnu.org>
940
941 * gdbarch.sh (single_step_through_delay): Add.
942 * gdbarch.h, gdbarch.c: Re-generate.
943 * config/mips/tm-mips.h (STEP_SKIPS_DELAY_P, STEP_SKIPS_DELAY)
944 (mips_step_skips_delay): Delete.
945 * mips-tdep.c (mips_single_step_through_delay): Replace
946 mips_step_skips_delay.
947 (mips_gdbarch_init): Set single_step_through_delay.
948 (mips_dump_tdep): Do not print STEP_SKIPS_DELAY.
949
950 2004-10-31 Mark Kettenis <kettenis@gnu.org>
951
952 * tramp-frame.c (tramp_frame_prepend_unwinder): Set unwinder type
953 from TRAMP_FRAME frame type.
954
955 2004-10-31 Andrew Cagney <cagney@gnu.org>
956
957 * mdebugread.c (parse_procedure): Wrap use of RA_REGNUM in #ifdef.
958
959 * mips-tdep.c (mips_ignore_helper): Delete.
960 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Delete.
961 * infrun.c (handle_inferior_event): Delete #ifdef
962 DEPRECATED_IGNORE_HELPER_CALL code.
963
964 * config/mips/tm-mips.h (RA_REGNUM): Delete.
965
966 2004-10-31 Mark Kettenis <kettenis@gnu.org>
967
968 * i386v4-nat.c (supply_gregset, supply_fpregset, fill_gregset)
969 (fill_fpregset): Do not compile for 64-bit systems.
970 * i386-sol2-nat.c: Don't include "i386v4-nat.c".
971 * Makefile.in (i386-sol2-nat.o): Update dependencies.
972 * config/i386/i386sol2.mh (NATDEPFILES): Add back i386v4-nat.c.
973
974 2004-10-30 Andrew Cagney <cagney@gnu.org>
975
976 * mdebugread.h: Include "coff/sym.h" and "coff/symconst.h".
977 (struct mdebug_extra_func_info): Define.
978 * config/alpha/tm-alpha.h: Delete same.
979 * config/mips/tm-mips.h: Delete same.
980 * mdebugread.c: Delete same.
981 * Makefile.in: Update dependencies.
982 * mips-mdebug-tdep.c: Include "mdebugread.h".
983
984 * objfiles.c: Include "mdebugread.h".
985 * mdebugread.c: Include "mdebugread.h".
986 (ecoff_relocate_cfi): Delete.
987 * config/alpha/tm-alpha.h (ecoff_relcate_cfi): Delete.
988 * config/mips/tm-mips.h (ecoff_relcate_cfi): Delete.
989 * mdebugread.h (ecoff_relocate_efi): New file.
990 * Makefile.in: Update dependencies.
991
992 * mips-tdep.c (struct frame_extra_info): Delete.
993 (temp_proc_desc): Delete.
994
995 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Rename
996 MIPS_EFI_SYMBOL_NAME.
997 (mips_extra_func_info_t, mips_extra_func_info): Delete.
998 (struct mdebug_extra_func_info): Replace struct
999 alpha_extra_func_info and alpha_extra_func_info_t.
1000 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Rename
1001 MIPS_EFI_SYMBOL_NAME.
1002 (struct mdebug_extra_func_info): Replace struct
1003 alpha_extra_func_info and alpha_extra_func_info_t.
1004 * objfiles.c, mips-tdep.c, mips-mdebug-tdep.c: Update.
1005 * mdebugread.c, alpha-mdebug-tdep.c:
1006
1007 Suggested by Mark Kettenis.
1008 * config/mips/tm-mips.h (struct mips_extra_func_info): Delete
1009 fields frame_adjust and high_addr.
1010 * mips-mdebug-tdep.c (PROC_HIGH_ADDR, PROC_FRAME_ADJUST): Delete.
1011 (non_heuristic_proc_desc): Delete references.
1012
1013 * mips-tdep.h (MIPS_PRID_REGNUM): Add.
1014 * config/mips/tm-mips.h (PRID_REGNUM): Delete.
1015 * mips-tdep.c: Update.
1016
1017 * mips-tdep.h (MIPS_FIRST_EMBED_REGNUM)
1018 (MIPS_LAST_EMBED_REGNUM): Add.
1019 * config/mips/tm-mips.h (FIRST_EMBED_REGNUM)
1020 (LAST_EMBED_REGNUM): Delete.
1021 * mipsv4-nat.c, mips-tdep.c, mips-linux-tdep.c: Update.
1022
1023 * config/mips/tm-mips.h (PS_REGNUM): Delete.
1024 * mips-tdep.h (MIPS_PS_REGNUM): Add.
1025 * remote-vxmips.c, mipsv4-nat.c, mips-tdep.c: Update.
1026 * mips-linux-nat.c: Update.
1027
1028 * mips-tdep.h: Add comments on registers.
1029 (MIPS_UNUSED_REGNUM): Define.
1030 * config/mips/tm-mips.h (ZERO_REGNUM, UNUSED_REGNUM)
1031 (T9_REGNUM, V0_REGNUM, A0_REGNUM): Delete.
1032 * irix5-nat.c, mipsv4-nat.c, mips-linux-tdep.c: Update.
1033 * mips-linux-nat.c, remote-mips.c: Update.
1034
1035 * config/mips/tm-mips.h (t_insn): Delete.
1036 * mips-tdep.c (mips_fetch_instruction, mips_skip_trampoline_code):
1037 Replace t_insn with ULONGEST.
1038
1039 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1040
1041 * mipsnbsd-tdep.c: Include "regset.h" and "gdb_assert.h".
1042 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM)
1043 (MIPSNBSD_NUM_GREGS, MIPSNBSD_NUM_FPREGS): New defines.
1044 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
1045 (mipsnbsd_core_fns, mipsnbsd_elfcore_fns): Remove variables.
1046 (mipsnbsd_core_osabi_sniffer): New function.
1047 (mipsnbsd_init_abi): Set regset_from_core_section.
1048 (_initialize_mipsnbsd_tdep): Remove calls to
1049 deprecated_add_core_fns.
1050 (mipsnbsd_supply_fpregset, mipsnbsd_supply_gregset)
1051 (mipsnbsd_regset_from_core_section): New functions.
1052 (mipsnbsd_gregset, mipsnbsd_fpregset): New variables.
1053 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
1054
1055 * procfs.c (procfs_fetch_registers, procfs_store_registers): Like
1056 Remove optimization for DEPRECATED_FP_REGNUM.
1057
1058 2004-10-30 Andrew Cagney <cagney@gnu.org>
1059
1060 * alpha-tdep.c (alpha_setup_arbitrary_frame): Delete.
1061 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Delete.
1062 (alpha_setup_arbitrary_frame): Delete.
1063 * mips-tdep.c (setup_arbitrary_frame): Delete.
1064 * config/mips/tm-mips.h (SETUP_ARBITRARY_FRAME): Delete.
1065 (setup_arbitrary_frame): Delete.
1066 * stack.c (parse_frame_specification_1): When specified, call
1067 create_new_frame with two parameters. Delete #ifdef
1068 SETUP_ARBITRARY_FRAME.
1069
1070 * config/mips/tm-mips.h (MIPS16_INSTLEN, MIPS_NUMREGS)
1071 (MIPS_INSTLEN): Delete.
1072 * mips-tdep.h (enum mips_insn_size): Rename MIPS32_INSN_SIZE and
1073 MIPS16_INSN_SIZE to MIPS_INSN32_SIZE and MIPS_INSN16_SIZE.
1074 * remote-mips.c, mips-tdep.c: Update.
1075
1076 * config/mips/embed.mt (TDEPFILES): Add mips-mdebug-tdep.o.
1077 * mips-mdebug-tdep.h, mips-mdebug-tdep.c: New files.
1078 * mips-tdep.c (mips_mdebug_frame_cache)
1079 (mips_mdebug_frame_this_id, mips_mdebug_frame_prev_register)
1080 (mips_mdebug_frame_unwind, mips_mdebug_frame_sniffer)
1081 (mips_mdebug_frame_base_address, mips_mdebug_frame_sniffer)
1082 (mips_mdebug_frame_base_sniffer, non_heuristic_proc_desc)
1083 (compare_pdr_entries, the_bfd, mips16_fetch_instruction): Delete.
1084 (mips_gdbarch_init): Do not append mdebug sniffers.
1085 (PROC_LOW_ADDR, PROC_HIGH_ADDR, PROC_FRAME_OFFSET)
1086 (PROC_FRAME_REG, PROC_FRAME_ADJUST, PROC_REG_MASK)
1087 (PROC_FREG_MASK, PROC_REG_OFFSET, PROC_FREG_OFFSET, PROC_PC_REG)
1088 (PROC_SYMBOL, _PROC_MAGIC_): Delete.
1089 * Makefile.in: Update dependencies.
1090
1091 * mips-tdep.h (mips_abi_regsize): Declare.
1092 * mips-tdep.c (mips_abi_regsize): Make non-static.
1093
1094 * mips-tdep.c (gdb_print_insn_mips): Simplify.
1095 (make_mips16_addr): Delete.
1096
1097 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1098
1099 * i386-sol2-nat.c: New file.
1100 * Makefile.in (ALLDEPFILES): Add i386-sol2-nat.c and
1101 i386-sol2-tdep.c.
1102 (i386-sol2-nat.o): Update dependencies.
1103 * config/i386/i386sol2.mh (NATDEPFILES): Remove i386v4.o, add
1104 i386-sol2-nat.o.
1105
1106 2004-10-30 Andrew Cagney <cagney@gnu.org>
1107
1108 Total breakage identified by Joel Brobecker.
1109 * mips-tdep.c (after_prologue): Delete.
1110 (mips_skip_prologue): Use skip_prologue_using_sal.
1111 (heuristic_proc_desc): Delete, unused.
1112
1113 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1114
1115 * procfs.c (proc_get_gregs, proc_get_fpregs, proc_set_gregs)
1116 (proc_set_fpregs, procfs_fetch_registers, procfs_store_registers):
1117 Cleanup coding style.
1118
1119 2004-10-30 Andrew Cagney <cagney@gnu.org>
1120
1121 * mips-tdep.h (mips_pc_is_mips16): Declare.
1122 * mips-tdep.c (mips_pc_is_mips16): Rename pc_is_mips16, make
1123 non-static. Update calls.
1124
1125 * cli/cli-decode.c (add_setshow_enum_cmd): New function.
1126 * command.h (add_setshow_enum_cmd): Declare.
1127 * mips-tdep.c (_initialize_mips_tdep): Use add_setshow_enum_cmd.
1128
1129 * mips-tdep.c (_initialize_mips_tdep): Use
1130 add_setshow_zinteger_cmd.
1131
1132 * mips-tdep.c (mips_eabi_extract_return_value)
1133 (mips_o64_extract_return_value, mips_o64_store_return_value)
1134 (return_value_location, mips_eabi_reg_struct_has_addr)
1135 (mips_eabi_use_struct_convention)
1136 (mips_eabi_store_return_value): Delete.
1137 (mips_eabi_store_return_value): New function.
1138 (mips_eabi_return_value): New function.
1139 (mips_gdbarch_init): For O64 and EABI, delete
1140 extract_return_value, store_return_value, use_struct_convention
1141 and reg_struct_has_addr, add return_value.
1142
1143 * mips-tdep.c (read_signed_register): Use
1144 regcache_cooked_read_signed.
1145
1146 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1147
1148 * mipsread.c: Cleanup coding style.
1149 (mipscoff_new_init, mipscoff_symfile_init, mipscoff_symfile_read)
1150 (mipscoff_symfile_finish): Remove prototypes.
1151
1152 2004-10-29 Mark Kettenis <kettenis@gnu.org>
1153
1154 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
1155 (mips_mdebug_frame_cache, mips16_scan_prologue)
1156 (mips32_scan_prologue, mips_stub_frame_cache)
1157 (heuristic_proc_start, heuristic_proc_desc)
1158 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
1159 (mips_n32n64_return_value, mips_o32_push_dummy_call)
1160 (mips_o32_return_value, mips_o64_push_dummy_call)
1161 (mips_step_skips_delay, mips_skip_trampoline_code)
1162 (mips_gdbarch_init): Use MIPS_A0_REGNUM instead of A0_REGNUM,
1163 MIPS_RA_REGNUM instead of RA_REGNUM, MIPS_T9_REGNUM instead of
1164 T9_REGNUM, MIPS_V0_REGNUM instead of V0_REGNUM, MIPS_ZERO_REGNUM
1165 instead of ZERO_REGNUM, MIPS32_SIZE_INSN instead of MIPS_INSTLEN
1166 and MIPS16_INSN_SIZE instead of MIPS16_INSTLEN.
1167 (mips_dump_tdep): Don't print A0_REGNUM, RA_REGNUM,
1168 T9_REGNUM, V0_REGNUM, ZERO_REGNUM, MIPS_INSTLEN and
1169 MIPS16_INSTLEN. Use MIPS_A0_REGNUM instead of A0_REGNUM.
1170 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
1171 (mips_linux_n32n64_sigframe_init): Use MIPS_ZERO_REGNUM instead of
1172 ZERO_REGNUM.
1173 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
1174 (mipsnbsd_cannot_store_register): Use MIPS_ZERO_REGNUM instead of
1175 ZERO_REGNUM.
1176 (mipsnbsd_get_longjmp_target): Use MIPS_A0_REGNUM instead of
1177 A0_REGNUM.
1178 * mipsnbsd-nat.c: Include "mips-tdep.h".
1179 (getregs_supplies): Use MIPS_ZERO_REGNUM instead of ZERO_REGNUM.
1180 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
1181
1182 2004-10-29 Andrew Cagney <cagney@gnu.org>
1183
1184 * stack.c (parse_frame_specification_1): New function based on
1185 parse_frame_specification. Add message and selected_frame_p
1186 paramters. Truely always return non-NULL.
1187 (parse_frame_specification): Call parse_frame_specification_1.
1188 (frame_info): Update. Eliminate target_has_stack check.
1189 (select_frame_command): Update.
1190
1191 2004-10-29 Andrew Cagney <cagney@gnu.org>
1192
1193 * frame.h (get_selected_frame): Add message parameter.
1194 * frame.c (get_selected_frame): Add and use message parameter.
1195 * stack.c (current_frame_command, return_command, locals_info)
1196 (catch_info, args_info, up_silently_base, down_silently_base): Use
1197 get_selected_frame with an explicit message.
1198 * thread.c, stack.c, sh-tdep.c, sh64-tdep.c: Update.
1199 * remote-rdp.c, remote-mips.c, remote-e7000.c: Update.
1200 * ocd.c, mi/mi-main.c, mi/mi-cmd-stack.c: Update.
1201 * infrun.c, inflow.c, infcmd.c, frame.c: Update.
1202 * findvar.c, eval.c, corelow.c, bsd-kvm.c: Update.
1203 * breakpoint.c: Update.
1204
1205 2004-10-29 Andrew Cagney <cagney@gnu.org>
1206
1207 * trad-frame.c (trad_frame_get_prev_register): Use
1208 frame_unwind_register instead of frame_register_unwind, do not
1209 recurse the register's location.
1210 * xstormy16-tdep.c (xstormy16_frame_prev_register):
1211 * sparc-tdep.c (sparc32_frame_prev_register): Ditto.
1212 * sparc64-tdep.c (sparc64_frame_prev_register): Ditto.
1213 * sh-tdep.c (sh_frame_prev_register): Ditto.
1214 * m68k-tdep.c (m68k_frame_prev_register): Ditto.
1215 * i386-tdep.c (i386_frame_prev_register): Ditto.
1216 * dwarf2-frame.c (dwarf2_frame_prev_register): Ditto.
1217 * amd64-tdep.c (amd64_frame_prev_register): Ditto.
1218
1219 2004-10-28 Mark Kettenis <kettenis@jive.nl>
1220
1221 * proc-events.c: Fix several coding-style issues. Consistently
1222 use #ifdef instead of #if defined().
1223 (proc_prettyfprint_fault, proc_prettyfprint_faultset): Use
1224 ARRAY_SIZE.
1225 (_initialize_proc_events): New prototype.
1226
1227 * proc-why.c: Fix several coding-style issues.
1228 (proc_prettyfprint_why): Use ARRAY_SIZE.
1229
1230 2004-10-27 Jim Blandy <jimb@redhat.com>
1231
1232 * remote.c (fetch_register_using_p): Construct 'p' packet in a
1233 manner independent of the host byte order.
1234
1235 2004-10-27 Mark Kettenis <kettenis@gnu.org>
1236
1237 * mips-tdep.c (id_delayed): Remove prototype.
1238
1239 2004-10-26 Mark Kettenis <kettenis@gnu.org>
1240
1241 * mips-tdep.h: Add MIPS_ZERO_REGNUM, MIPS_AT_REGNUM,
1242 MIPS_V0_REGNUM. MIPS_A0_REGNUM, MIPS_T9_REGNUM and MIPS_RA_REGNUM
1243 to enum with register numbers.
1244 (enum mips_insn_size): New enum.
1245
1246 2004-10-26 Andrew Cagney <cagney@gnu.org>
1247
1248 * config/mips/tm-linux.h: Delete #undef SKIP_TRAMPOLINE_CODE.
1249 * mips-tdep.c (mips_skip_trampoline_code): Rename mips_skip_stub.
1250 (mips_gdbarch_init): Update.
1251 (mips_dump_tdep): Do not print SKIP_TRAMPOLINE_CODE.
1252
1253 * config/arm/tm-linux.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1254 * config/mips/tm-nbsd.h, config/mips/tm-linux.h: Delete #undef
1255 IN_SOLIB_RETURN_TRAMPOLINE.
1256 * mips-tdep.c (mips_dump_tdep): Do not print
1257 IN_SOLIB_RETURN_TRAMPOLINE.
1258 (mips_in_solib_return_trampoline): Rename mips_in_return_stub.
1259 (mips_gdbarch_init): Update.
1260
1261 * mips-tdep.h (mips_software_single_step): Move to here ...
1262 * config/mips/tm-mips.h: ... from here.
1263 * config/mips/tm-linux.h (SOFTWARE_SINGLE_STEP_P)
1264 (SOFTWARE_SINGLE_STEP): Delete.
1265 * mips-linux-tdep.c (mips_linux_init_abi): Set software_single_step.
1266
1267 2004-10-25 Andrew Cagney <cagney@gnu.org>
1268
1269 * NEWS: Add Changes since GDB 6.3 section.
1270
1271 2004-10-23 Andreas Schwab <schwab@suse.de>
1272
1273 * ada-lang.c (grow_vect): Return the new array instead of
1274 expecting pointer to pointer to avoid violation of aliasing rules.
1275 * ada-lang.h (GROW_VECT): Adapt call to grow_vect.
1276
1277 2004-10-23 Ulrich Weigand <uweigand@de.ibm.com>
1278
1279 * s390-tdep.c (enum pv_boolean): Remove.
1280 (pv_is_array_ref): Remove.
1281 (s390_on_stack): Remove.
1282 (S390_NUM_SPILL_SLOTS): Remove.
1283 (struct s390_prologue_data): Remove members 'spill' and 'back_chain',
1284 add members 'gpr_slot', 'fpr_slot', and 'back_chain_saved_p'.
1285 (s390_store): Track all stores of orginal incoming registers to the
1286 stack constant offsets relative to the CFA, instead of only tracking
1287 stores into specific spill slots.
1288 (s390_load): Likewise.
1289 (s390_analyze_prologue): Adapt to struct s390_prologue_data changes.
1290 (s390_prologue_frame_unwind_cache): Likewise. Only track registers
1291 defined as call-saved by the ABI.
1292 (s390_push_dummy_call): Use bottom of dummy call argument save area
1293 as return value, not the top. Do not store to the called function's
1294 register save area.
1295 (s390_unwind_dummy_id): Adapt accordingly.
1296
1297 2004-10-23 Andrew Cagney <cagney@gnu.org>
1298
1299 * objfiles.h (struct objfile): Rename obj_private to
1300 deprecated_obj_private, sym_private to deprecated_sym_private, and
1301 sym_stab_info to deprecated_sym_stab_info.
1302 * gdb-stabs.h: Update.
1303 * elfread.c: Update.
1304 * dbxread.c: Update.
1305 * coffread.c: Update.
1306 * xcoffread.c: Update.
1307 * symfile.c: Update.
1308 * somread.c: Update.
1309 * nlmread.c: Update.
1310 * mdebugread.c: Update.
1311 * hpread.c: Update.
1312 * coffread.c: Update.
1313
1314 2004-10-23 Mark Kettenis <kettenis@gnu.org>
1315
1316 * mips64obsd-nat.c, mips64obsd-tdep.c: New files.
1317 * configure.host: Add mips64*-*-openbsd*.
1318 * configure.tgt: Add mips64*-*-openbsd*.
1319 * Makefile.in (ALLDEPFILES): Add mips64obsd-nat.o,
1320 mips64obsd-tdep.c.
1321 (mips64obsd-nat.o, mips64obsd-tdep.o): New dependecies.
1322 * config/mips/obsd64.mh, config/mips/obsd64.mt: New files.
1323
1324 2004-10-21 Joel Brobecker <brobecker@gnat.com>
1325
1326 * symtab.c (symbol_search_name): Minor reformatting.
1327
1328 2004-10-20 Joel Brobecker <brobecker@gnat.com>
1329
1330 * symtab.h: Fix typo in comment.
1331
1332 2004-10-19 Mark Kettenis <kettenis@gnu.org>
1333
1334 * dwarf2read.c (struct comp_unit_head): Fix coding style.
1335 (dwarf_decode_line_header): Likewise.
1336
1337 2004-10-19 Michael Chastain <mec.gnu@mindspring.com>
1338
1339 * NEWS: GDB works with GCC -feliminate-dwarf2-dups.
1340
1341 2004-10-19 Andrew Cagney <cagney@gnu.org>
1342
1343 GDB 6.3 branch created.
1344 * version.in: Bump to version 6.3.50_2004-10-19-cvs.
1345
1346 2004-10-15 Joel Brobecker <brobecker@gnat.com>
1347
1348 * dwarf2read.c (set_cu_language): Set language to Ada for
1349 DW_LANG_Ada83 and DW_LANG_Ada95.
1350
1351 2004-10-15 Michael Chastain <mec.gnu@mindspring.com>
1352
1353 From Andreas Schwab <schwab@suse.de>:
1354 * Makefile.in (.y.c, .l.c.): Fix the substitutions for
1355 for xmalloc and xrealloc.
1356
1357 2004-10-15 Andrew Cagney <cagney@gnu.org>
1358
1359 * ada-exp.y, ada-lex.l: Use xmalloc and xrealloc through out.
1360 * inf-ptrace.c: Include "gdb_wait.h" instead of <wait.h>.
1361 * Makefile.in (.y.c, .l.c): Don't replace xmalloc with xxmalloc.
1362 Update dependencies.
1363
1364 2004-10-15 Paul Hilfinger <Hilfinger@gnat.com>
1365
1366 * ada-lang.c (ada_lookup_symbol): Correct comment.
1367 (ada_evaluate_subexp): Change error message for
1368 OP_FUNCALL case so as not to indicate an internal error.
1369
1370 2004-10-15 Joel Brobecker <brobecker@gnat.com>
1371
1372 Committed by Paul Hilfinger.
1373 * ada-lang.c (ada_template_to_fixed_record_type_1): Detect bogus
1374 type sizes in XVE/XVU types, and emit a warning when that happens,
1375 instead of rounding up the size of the resulting type.
1376 Some minor reformatting.
1377 (ada_is_aligner_type): Do not consider a type as an aligner type
1378 if there is a corresponding XVS type as well.
1379 (ada_evaluate_subexp): For TERNOP_SLICE, handle cases where we
1380 have several levels of pointer indirection to the array.
1381
1382 2004-10-15 Jerome Guitton <guitton@gnat.com>
1383
1384 Committed by Paul Hilfinger.
1385 * ada-lang.c (check_size): New function.
1386 (coerce_unspec_val_to_type): call check_size to make sure
1387 that the object size is reasonable.
1388 (ada_evaluate_subexp): in UNOP_IND: Ditto. In TERNOP_SLICE:
1389 Implements the case when we get a reference when we evaluate
1390 the expression of one of the bounds of the slice.
1391 (ada_value_struct_elt): when a packed array field is
1392 a reference, use ada_coerce_ref to dereference it; use
1393 ada_value_ind only if it is a pointer.
1394
1395 2004-10-15 Joel Brobecker <brobecker@gnat.com>
1396
1397 * mips-tdep.c (mips32_scan_prologue): Move the implementation up
1398 a bit to avoid the necessity of an advance declaration. Remove
1399 declaration.
1400 (set_reg_offset): Move implemenation up.
1401 (mips16_get_imm): Likewise.
1402 (mips16_scan_prologue): Likewise.
1403 (reset_saved_regs): Likewise.
1404 (mips32_scan_prologue): Likewise.
1405
1406 2004-10-14 Joel Brobecker <brobecker@gnat.com>
1407
1408 * mips-tdep.c (mips32_scan_prologue): Add advance declaration.
1409 Remove sp as a parameter, compute it internally instead. Move
1410 prologue scanning limit from heuristic_proc_desc to here.
1411 (mips16_scan_prologue): Likewise.
1412 (mips_insn16_frame_cache): Replace call to heuristic_proc_desc
1413 by call to mips16_scan_prologue.
1414 (mips_insn32_frame_cache): Replace call to heuristic_proc_desc
1415 by call to mips32_scan_prologue.
1416 (heuristic_proc_desc): Remove code that's no longer necessary.
1417 Update calls to mips16_scan_prologue and mips32_scan_prologue.
1418 (mips_skip_prologue): Update calls to mips16_scan_prologue
1419 and mips32_scan_prologue.
1420
1421 2004-10-14 Joel Brobecker <brobecker@gnat.com>
1422
1423 * mips-tdep.c (mips16_scan_prologue): Merge code from
1424 mips16_skip_prologue. Now return the address of the first
1425 instruction past the function prologue.
1426 (mips16_skip_prologue): Remove, no longer necessary.
1427 (mips_skip_prologue): Replace call to mips16_skip_prologue
1428 by call to mips16_scan_prologue.
1429
1430 2004-10-14 Joel Brobecker <brobecker@gnat.com>
1431
1432 * mips-tdep.c (mips32_scan_prologue): Merge code from
1433 mips32_skip_prologue. Now return the address of the first
1434 instruction past the function prologue.
1435 (mips32_skip_prologue): Remove. No longer necessary.
1436 (mips16_skip_prologue): Add parameter end_pc instead of
1437 computing it.
1438 (mips_skip_prologue): Compute the upper limit for the
1439 prologue scanning. Update call to mips16_skip_prologue.
1440 Replace call to mips32_skip_prologue by call to
1441 mips32_scan_prologue.
1442
1443 2004-10-14 Mark Kettenis <kettenis@gnu.org>
1444
1445 * hppa-tdep.c (hppa_frame_cache): Add support for OpenBSD and
1446 NetBSD system call stubs that store %rp in the ERP slot of the
1447 stack frame.
1448
1449 * source.c: Always define O_BINARY to 0 if not defined already.
1450 (openp): Unconditionally use O_BINARY.
1451
1452 * top.c (gdb_readline): Always accept "\r\n" as a line-ending.
1453 * event-top.c (gdb_readline2): Likewise.
1454
1455 2004-10-14 Orjan Friberg <orjanf@axis.com>
1456
1457 * cris-tdep.c (_initialize_cris_tdep): Re-add call to
1458 deprecated_add_core_fns which was removed by mistake.
1459
1460 2004-10-13 Kevin Buettner <kevinb@redhat.com>
1461
1462 * ia64-linux-nat.c (fill_gregset, fill_fpregset): Replace
1463 references to deprecated_registers[] with equivalent code.
1464
1465 2004-10-13 Kevin Buettner <kevinb@redhat.com>
1466
1467 * rs6000-tdep.c (rs6000_push_dummy_call): Replace references to
1468 ``deprecated_registers'' with equivalent code. Use gdb_assert()
1469 instead of explicit test and print statement.
1470
1471 2004-10-12 Mark Kettenis <kettenis@gnu.org>
1472
1473 * sparc-nat.c: Include "inf-ptrace.h".
1474 (sparc_target): New function.
1475 * sparc-nat.h: Update copyright year.
1476 (sparc_target): New prototype.
1477 * sparcnbsd-nat.c: Don't include "gdbcore.h", include "target.h".
1478 (_initialize_sparcnbsd_nat): Construct and add target vector.
1479 * sparc64nbsd-nat.c: Include "target.h".
1480 (_initialize_sparc64nbsd_nat): Construct and add target vector.
1481 * Makefile.in (sparc-nat.o, sparcnbsd-nat.o, sparc64nbsd-nat.o):
1482 Update dependencies.
1483 * config/sparc/nbsd64.mh (NATDEPFILES): Remove infptrace.o and
1484 inftarg.o, add inf-ptrace.o.
1485 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1486 inftarg.o, add inf-ptrace.o and bsd-kvm.o.
1487 (NAT_FILE): Set to nm-bsd.h.
1488 (LOADLIBES): New variable.
1489 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
1490 infarg.o, add inf-ptrace.o.
1491 * config/sparc/nm-nbsdaout.h: Remove file.
1492 * config/sparc/fbsd.mh (NATDEPFILES): Add inf-ptrace.o.
1493 * config/sparc/linux.mh (NATDEPFILES): Add inf-ptrace.o.
1494 * config/sparc/linux64.mh (NATDEPFILES): Add inf-ptrace.o.
1495
1496 * defs.h [!FOPEN_RB]: Include "fopen-bin.h" instead of
1497 "fopen-same.h". Update comment.
1498
1499 2004-10-11 Mark Kettenis <kettenis@gnu.org>
1500
1501 * i386gnu-nat.c: Include "gdb_string.h".
1502 (fetch_fpregs): Use i387_supply_fxsave to fill the floating-point
1503 registers when the floating-point state isn't initialized.
1504 * Makefile.in (i386gnu-nat.o): Update dependencies.
1505
1506 2004-10-11 David Anderson <davea@sgi.com>
1507
1508 * regcache.c (regcache_raw_read): Comment was missing "to".
1509 Extraneous ' removed.
1510 * gdb_thread_db.h (struct td_thrinfo): ti_lid field
1511 comment now describes use.
1512
1513 2004-10-11 Orjan Friberg <orjanf@axis.com>
1514
1515 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start)
1516 (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
1517 (cris_sigtramp_frame_this_id, cris_sigtramp_frame_prev_register)
1518 (cris_sigtramp_frame_sniffer): New functions.
1519 (cris_gdbarch_init): Hook in signal trampoline unwinder.
1520 (cris_dwarf2_reg_to_regnum, cris_dwarf2_frame_init_reg): New functions.
1521 (cris_gdbarch_init): Hook in Dwarf-2 unwinder.
1522 (struct gdbarch_tdep, set_cris_dwarf2_cfi, cris_dump_tdep)
1523 (cris_gdbarch_init, _initialize_cris_tdep): Add CRIS Dwarf-2 CFI usage
1524 command.
1525 (cris_version_update): Remove, replace with ...
1526 (set_cris_version): New function.
1527 (struct gdbarch_tdep, cris_mode, cris_mode_update)
1528 (cris_cannot_store_register, cris_dump_tdep, cris_gdbarch_init)
1529 (_initialize_cris_tdep): Remove CRIS mode command.
1530 (cris_fpless_backtrace, _initialize_cris_tdep): Remove
1531 cris-fpless-backtrace command.
1532 (cris_scan_prologue): Fix prologue scanning limit.
1533 (cris_register_type): Update to reflect actual registers.
1534 (cris_register_bytes_ok) Remove.
1535 (cris_gdbarch_init): Remove support for CRIS v8 and v9.
1536 Remove set_gdbarch_deprecated_register_size,
1537 set_gdbarch_deprecated_register_byte, set_gdbarch_register_bytes_ok.
1538
1539 2004-10-10 Andrew Cagney <cagney@gnu.org>
1540
1541 * ada-lang.c (lim_warning): Add ATTR_FORMAT prototype and FIXME
1542 comment.
1543
1544 2004-10-10 Joel Brobecker <brobecker@gnat.com>
1545
1546 * mips-tdep.c (mips16_scan_prologue): Remove redundant code.
1547
1548 2004-10-10 Joel Brobecker <brobecker@gnat.com>
1549
1550 * mips-tdep.c (mips16_scan_prologue): Renames
1551 mips16_heuristic_proc_desc. Update comment.
1552 (mips32_scan_prologue): Renames mips32_heuristic_proc_desc.
1553 (heuristic_proc_desc): Update calls to the 2 functions above.
1554
1555 2004-10-10 Joel Brobecker <brobecker@gnat.com>
1556
1557 * mips-tdep.c (mips_insn16_frame_cache): Remove unused variables.
1558 Update comments. Also immediately return empty cache when the start
1559 address of our function could not be found.
1560 (mips_insn32_frame_cache): Likewise.
1561
1562 2004-10-10 Joel Brobecker <brobecker@gnat.com>
1563
1564 * mips-tdep.c (mips16_decode_reg_save): Delete, no longer used.
1565 (mips_insn16_frame_cache): Pass frame cache in call to
1566 heuristic_proc_desc. Move some code to mips16_heuristic_proc_desc.
1567 Remove code that became redundant as a consequence.
1568 (mips32_heuristic_proc_desc): No longer compute a fake
1569 procedure descriptor. Compute the full frame cache instead.
1570 Some minor comment reformatting.
1571
1572 2004-10-10 Jim Blandy <jimb@redhat.com>
1573
1574 * MAINTAINERS (generic symtabs, dwarf readers, elf reader, stabs
1575 reader, tracing bytecode stuff): Remove self.
1576
1577 2004-10-10 Mark Kettenis <kettenis@gnu.org>
1578
1579 * sparc64-linux-tdep.c: Update copyright year. Don't include
1580 "solib-svr4.h".
1581 (sparc64_linux_svr4_fetch_link_map_offsets): Remove function.
1582 (sparc64_linux_init_abi): Don't set solib_svr4_link_map_offsets.
1583 * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
1584
1585 * sparc-linux-tdep.c: Update copyright year.
1586 (sparc_linux_sigtramp_start): Change first argument from CORE_ADDR
1587 to struct frame_info *. Use safe_frame_unwind_memory instead of
1588 deprecated_read_memory_nobpt.
1589 (sparc32_linux_sigtramp_start, sparc32_linux_rt_sigtramp_start):
1590 Change argumen from CORE_ADDR to struct frame_info *. Adjust for
1591 changed signature of sparc_linux_sigtramp_start.
1592 (sparc32_linux_pc_in_sigtramp): Remove function.
1593 (sparc32_linux_sigtramp_p): New function.
1594 (sparc32_linux_sigtramp_frame_sniffer): Use
1595 sparc32_linux_sigtramp_p instead of sparc32_linux_pc_in_sigtramp.
1596
1597 * sparc-linux-tdep.c (sparc32_linux_svr4_fetch_link_map_offsets):
1598 Remove function.
1599 (sparc32_linux_init_abi): Don't set solib_svr4_link_map_offsets.
1600
1601 * ada-lang.c (lim_warning): Re-implement as a varargs function.
1602 (decode_packed_array_type, value_subscript_packed)
1603 (ada_evaluate_subexp, to_fixed_range_type): Remove redundant
1604 argument in call to lim_warning.
1605
1606 * configure.in: Really disable the TUI if an enhanced curses
1607 library isn't found.
1608 * configure: Regenerate.
1609
1610 2004-10-09 Mark Kettenis <kettenis@gnu.org>
1611
1612 * config/i386/nbsdaout.mh (NAT_FILE): Set to solib.h.
1613 * config/i386/nbsdelf.mh (NAT_FILE): Set to solib.h.
1614 * config/i386/nm-nbsdaout.h: Remove file.
1615 * config/i386/nm-fbsd.h (link_object, lo_name, lo_library)
1616 (lo_unused, lo_major, lo_minor, lo_next, link_map, lm_addr)
1617 (lm_name, lm_next, lm_lop, lm_lob, lm_rwt, lm_ld, lm_lpd)
1618 (link_dynamic_2, ld_loaded, ld_need, ld_rules, ld_got, ld_plt)
1619 (ld_rel, ld_hash, ld_stab, ld_stab_hash, ld_buckets, ld_symbols)
1620 (ld_symb_size, ld_text, ld_plt_sz, rtc_symb, rtc_sp, rtc_next)
1621 (ld_debug, ldd_version, ldd_in_debugger, ldd_sym_loaded)
1622 (ldd_bp_addr, ldd_bp_inst, ldd_cp, link_dynamic, ld_version)
1623 (ldd, ld_un, ld_2): Remove defines.
1624 * config/i386/nm-obsd.h: Likewise.
1625
1626 2004-10-09 Paul Hilfinger <hilfingr@nile.gnat.com>
1627
1628 * ada-lex.l: Remove useless rule whose right-context clause
1629 causes unreferenced static function warning for yyrealloc.
1630 (ada_flex_use): Remove the artificial reference to yyrealloc.
1631
1632 2004-10-08 Andrew Cagney <cagney@gnu.org>
1633
1634 * target.h (struct target_ops): Rename to_xfer_memory to
1635 deprecated_xfer_memory.
1636 * target.c: Update.
1637 (deprecated_debug_xfer_memory): Rename debug_to_xfer_memory.
1638 * wince.c: Update.
1639 * win32-nat.c: Update.
1640 * v850ice.c: Update.
1641 * uw-thread.c: Update.
1642 * thread-db.c: Update.
1643 * sol-thread.c: Update.
1644 * remote.c: Update.
1645 * remote-vx.c: Update.
1646 * remote-st.c: Update.
1647 * remote-sim.c: Update.
1648 * remote-sds.c: Update.
1649 * remote-rdp.c: Update.
1650 * remote-rdi.c: Update.
1651 * remote-mips.c: Update.
1652 * remote-m32r-sdi.c: Update.
1653 * remote-e7000.c: Update.
1654 * procfs.c: Update.
1655 * ppc-bdm.c: Update.
1656 * nto-procfs.c: Update.
1657 * monitor.c: Update.
1658 * linux-nat.c: Update.
1659 * inftarg.c: Update.
1660 * hpux-thread.c: Update.
1661 * go32-nat.c: Update.
1662 * gnu-nat.c: Update.
1663 * exec.c: Update.
1664 * corelow.c: Update.
1665 * bsd-kvm.c: Update.
1666 * aix-thread.c: Update.
1667
1668 2004-10-08 Andrew Cagney <cagney@gnu.org>
1669
1670 * target.c (debug_target): Move to near start of file.
1671 (target_stopped_data_address_p): Re-org logic, add casts.
1672
1673 2004-10-02 Mark Kettenis <kettenis@gnu.org>
1674
1675 * solib-sunos.c [HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS] (link_map)
1676 (lm_addr, lm_name, lm_next, link_dynamic_2, ld_loaded, rtc_symb)
1677 (rtc_sp, rtc_next, ld_debug, ldd_in_debugger, ldd_bp_addr)
1678 (ldd_bp_inst, ldd_cp, link_dynamic, ld_version, ldd, ld_un, ld_2):
1679 New defines.
1680
1681 2004-10-08 Jeff Johnston <jjohnstn@redhat.com>
1682
1683 * target.h (to_stopped_data_address): Change prototype to
1684 take a CORE_ADDR pointer and return an int.
1685 * target.c (update_current_target): Change to_stopped_data_address
1686 to match new prototype.
1687 (debug_to_stopped_data_address): Change appropriately.
1688 * breakpoint.c (bpstat_stop_status): Change call to
1689 target_stopped_data_address to use new prototype.
1690 * frv-tdep.c (frv_have_stopped_data_address): New function.
1691 (frv_stopped_data_address): Change to new prototype and
1692 functionality.
1693 * ia64-linux-nat.c (ia64_stopped_data_address): Change to new
1694 prototype and functionality.
1695 (ia64_stopped_by_watchpoint): New function.
1696 * i386-nat.c (i386_stopped_data_address): Change to new
1697 prototype and functionality.
1698 (i386_stopped_by_watchpoint): New function.
1699 * remote.c (remote_stopped_data_address): Change to new prototype
1700 and functionality.
1701 * remote-m32r-sdi.c (m32r_stopped_data_address): Ditto.
1702 * config/frv/tm-frv.h (frv_stopped_data_address): Change prototype.
1703 (STOPPED_BY_WATCHPOINT): Change to use frv_have_stopped_data_address.
1704 * config/i386/nm-i386.h (STOPPED_BY_WATCHPOINT): Change to use
1705 new i386_stopped_by_watchpoint function.
1706 (i386_stopped_by_watchpoint): New prototype.
1707 (i386_stoppped_data_address): Change to new prototype.
1708 * config/ia64/nm-linux.h (STOPPED_BY_WATCHPOINT): Change to use
1709 new ia64_stopped_by_watchpoint function.
1710 (ia64_stopped_by_watchpoint): New prototype.
1711 (ia64_stopped_data_address): Ditto.
1712
1713 2004-10-08 Paul Hilfinger <Hilfinger@gnat.com>
1714
1715 * ada-typeprint.c (ada_print_type): Use int_string for printing
1716 modulus of modular type.
1717 * ada-lang.h (ada_modulus): Change return type to unsigned.
1718 * ada-lang.c (ada_language_arch_info): Correct type of
1719 string_char_type.
1720 (ada_modulus): Return unsigned result.
1721 (ada_lookup_symbol): Remove user disambiguation and modify comment
1722 accordingly.
1723
1724 2004-10-08 Eric Botcazou <ebotcazou@act-europe.fr>
1725
1726 Committed by Paul Hilfinger.
1727 * ada-lang.c (decode_packed_array): On big-endian targets,
1728 left-justify the value if it comes with a modular type.
1729
1730 2004-10-08 Joel Brobecker <brobecker@gnat.com>
1731
1732 Committed by Paul Hilfinger.
1733 * ada-lang.c (template_to_static_fixed_type): Fix a small typo.
1734 (is_name_suffix): Add support for "___JM" suffixes.
1735 (ada_check_typedef): Renames ada_completed_type.
1736 Update all users of CHECK_TYPEDEF, check_typedef, and
1737 ada_complete_type to call ada_check_typedef.
1738 * ada-typeprint.c: Likewise.
1739 * ada-valprint.c: Likewise.
1740
1741 2004-10-08 Corinna Vinschen <vinschen@redhat.com>
1742
1743 * infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
1744
1745 2004-10-08 Nick Roberts <nickrob@snap.net.nz>
1746
1747 * MAINTAINERS: Update e-mail address.
1748
1749 2004-10-07 Daniel Jacobowitz <dan@debian.org>
1750
1751 From Maciej W. Rozycki <macro@mips.com>:
1752 * mips-tdep.c (mips32_next_pc): Check the register's contents,
1753 not its number for BLEZ/BLEZL and BGTZ/BGTZL.
1754
1755 2004-10-07 Kei Sakamoto <sakamoto.kei@renesas.com>
1756
1757 * m32r-tdep.c (decode_prologue): Support functions written
1758 in assembler language. Recognize trap instructions as the
1759 end of prologue.
1760 (m32r_frame_unwind_cache): Ditto.
1761 (m32r_skip_prologue): Extend search limit. Quit analyzing
1762 prologue if pc's location is not readable.
1763
1764 2004-10-06 Paul N. Hilfinger <Hilfinger@gnat.com>
1765
1766 * Makefile.in (.l.c): Do conversions of names of alloc and free
1767 functions that are done for .y.c files, plus special one
1768 for yy_flex_realloc. Also, correct missing-file tests here.
1769 * ada-lex.l (malloc, free): Remove macros.
1770 (resize_tempbuf): Use "realloc"; rely on sed changes to convert to
1771 xrealloc.
1772 (ada_flex_use): Dummy definition to remove warnings about unused
1773 functions.
1774 * ada-exp.y (dummy_string_to_ada_operator): Temporary definition
1775 to suppress warning.
1776
1777 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1778
1779 * sh-tdep.c (sh_return_value_nofpu): New function, implementing
1780 RETURN_VALUE.
1781 (sh_return_value_fpu): Ditto for CPUs with FPU.
1782 (sh_gdbarch_init): Remove STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
1783 RETURN_VALUE_ON_STACK and USE_STRUCT_CONVENTION throughout.
1784 Install sh_return_value_nofpu resp. sh_return_value_fpu as
1785 RETURN_VALUE functions.
1786
1787 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1788
1789 * sh-tdep.c (sh_pseudo_register_read): Add PSEUDO_BANK_REGNUM handling.
1790 (sh_pseudo_register_write): Ditto.
1791
1792 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1793
1794 * sh-tdep.c (IS_MACL_STS): New define.
1795 (IS_MOVI20): Ditto.
1796 (IS_MACL_LDS): Ditto.
1797 (sh_analyze_prologue): Recognize STS.L MACL,@-r15 and MOVI20
1798 instructions in prologue.
1799 (sh_in_function_epilogue_p): Recognize LDS.L @r15+,MACL and MOVI20
1800 instructions in epilogue.
1801
1802 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1803
1804 * sh-tdep.c (SH_NUM_REGS): Define as 67.
1805 (sh_sh_register_name): Add eight empty register names.
1806 (sh_sh3_register_name): Ditto.
1807 (sh_sh3e_register_name): Ditto.
1808 (sh_sh2e_register_name): Ditto.
1809 (sh_sh2a_register_name): New function, defining SH2A register set.
1810 (sh_sh2a_nofpu_register_name): New function, defining SH2A register set
1811 in nofpu case.
1812 (sh_sh_dsp_register_name): Add eight empty register names.
1813 (sh_sh3_dsp_register_name): Ditto.
1814 (sh_sh4_register_name): Ditto.
1815 (sh_sh4_nofpu_register_name): Ditto.
1816 (sh_sh4al_dsp_register_name): Ditto.
1817 (sh2a_show_regs): New function.
1818 (sh2a_nofpu_show_regs): New function.
1819 (sh_sh2a_register_type): New function.
1820 (do_bank_register_info): New function.
1821 (sh_print_pseudo_register): Call do_bank_register_info.
1822 Call sh_print_pseudo_register for valid "bank" register.
1823 (sh_sh2a_register_sim_regno): New function.
1824 (sh_gdbarch_init): Add bfd_mach_sh2a and bfd_mach_sh2a_nofpu handling.
1825 Increment pseudo register count by one for all sh variants with
1826 pseudo registers to accomodate pseudo bank register.
1827 * sh-tdep.h: Add register numbers for R0_BANK0_REGNUM, MACHB_REGNUM,
1828 IVNB_REGNUM, PRB_REGNUM, GBRB_REGNUM, MACLB_REGNUM, BANK_REGNUM,
1829 IBCR_REGNUM, IBNR_REGNUM, TBR_REGNUM and PSEUDO_BANK_REGNUM.
1830 Increment pseudo register numbers.
1831
1832 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1833
1834 * dwarf2read.c (read_subroutine_type): Call make_function_type
1835 instead of lookup_function_type.
1836
1837 2004-10-05 Jim Blandy <jimb@redhat.com>
1838
1839 * linux-nat.c (_initialize_linux_nat): Rename child_ops.
1840 (Previous change missed some uses.)
1841
1842 2004-10-05 Andrew Cagney <cagney@gnu.org>
1843
1844 * target.h (deprecated_child_ops): Rename child_ops.
1845 * wince.c: Update copyright. Rename child_ops.
1846 * win32-nat.c: Rename child_ops.
1847 * target.c: Rename child_ops.
1848 * rs6000-nat.c: Rename child_ops.
1849 * linux-nat.c: Rename child_ops.
1850 * infttrace.c: Rename child_ops.
1851 * inftarg.c: Rename child_ops.
1852 * infptrace.c: Rename child_ops.
1853 * hppah-nat.c: Update copyright. Rename child_ops.
1854 * hpux-thread.c: Update copyright. Rename child_ops.
1855
1856 2004-10-05 Daniel Jacobowitz <dan@debian.org>
1857
1858 * remote.c (remote_xfer_partial): Handle TARGET_OBJECT_MEMORY.
1859
1860 2004-10-05 Andrew Cagney <cagney@gnu.org>
1861
1862 * version.in: Bump to version 6.2.50_YYYY-MM-DD-cvs.
1863
1864 2004-10-05 Daniel Jacobowitz <dan@debian.org>
1865
1866 * dwarf2read.c (REF_HASH_SIZE): Move earlier.
1867 (die_ref_table): Remove.
1868 (struct dwarf2_cu): Add DIES, DEPENDENCIES, and DIE_REF_TABLE.
1869 (struct dwarf2_per_cu_data): Add PSYMTAB. Add a comment describing
1870 the usage of this type.
1871 (struct dwarf2_per_objfile): Update comment for ALL_COMP_UNITS.
1872 (struct dwarf2_pinfo, PST_PRIVATE, DWARF_INFO_OFFSET): Remove.
1873 (struct dwarf2_queue_item, dwarf2_queue, dwarf2_queue_tail): New.
1874 (dwarf2_create_include_psymtab): Update comment.
1875 (find_partial_die): Remove third argument. Remove unreachable call
1876 to error ().
1877 (dwarf2_find_containing_comp_unit): Update comments. Change one
1878 assertion to an error. Remove an unreachable error.
1879 (dwarf2_find_comp_unit): Update comments.
1880 (type_at_offset): Remove dead code.
1881 (make_cleanup_free_die_list, dwarf2_empty_hash_tables): Remove.
1882 (store_in_ref_table): Add CU argument.
1883 (follow_die_ref): Take DIE, attribute, and CU arguments. Handle
1884 inter-compilation-unit references.
1885 (load_full_comp_unit, process_full_comp_unit): New functions, based
1886 on psymtab_to_symtab_1.
1887 (psymtab_to_symtab_1): Use them.
1888 (dwarf2_add_dependence): New function.
1889 (dwarf2_build_psymtabs_hard): Set the psymtab in per_cu. Always create
1890 a per_cu structure, and save it in READ_PSYMTAB_PRIVATE.
1891 (partial_die_parent_scope, guess_structure_name): Update for changes
1892 to find_partial_die.
1893 (dwarf2_psymtab_to_symtab): Initialize dwarf2_per_objfile here.
1894 (queue_comp_unit, process_queue, dwarf2_release_queue): New.
1895 (read_comp_unit): Don't call dwarf2_empty_hash_tables.
1896 (read_die_and_children): Update call to store_in_ref_table.
1897 (do_free_die_list_cleanup): Remove.
1898 (fixup_partial_die): Update for changes to find_partial_die.
1899 (read_full_die): Handle queueing absolute references.
1900 (read_attribute_value): Use DW_ADDR for all DW_FORM_ref* forms.
1901 (dwarf2_attr, die_specification, die_type)
1902 (die_containing_type, dwarf2_extension): Update calls to
1903 follow_die_ref.
1904 (dump_die): Update DW_FORM_ref* handling.
1905 (dwarf2_get_ref_die_offset): Likewise.
1906 (free_one_comp_unit): Release the dies list.
1907 (dwarf2_mark_helper): New function.
1908 (dwarf2_mark): Use it.
1909
1910 2004-10-05 Mark Kettenis <kettenis@jive.nl>
1911
1912 * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
1913 when writing to memory.
1914
1915 2004-10-05 Kei Sakamoto <sakamoto.kei@renesas.com>
1916
1917 * m32r-tdep.c (m32r_use_struct_convention): Delete function.
1918 (m32r_extract_struct_value_address): Delete function.
1919 (m32r_return_value): New function.
1920 (m32r_gdbarch_init): Instead of store_return_value,
1921 extract_return_value, deprecated_extract_struct_value_address
1922 and deprecated_use_struct_convention, set return_value.
1923
1924 2004-10-03 Daniel Jacobowitz <dan@debian.org>
1925
1926 * dwarf2read.c (read_subrange_type): Add comment for variable
1927 sized arrays.
1928
1929 2004-10-03 Paul Hilfinger <hilfingr@nile.gnat.com>
1930
1931 * Makefile.in (.l.c): Modify rule for compatibility with recent
1932 versions of flex, and remove most command-line options.
1933 * ada-lex.l: Add %options line in place of -I -i and -s command-line
1934 options.
1935
1936 2004-10-02 Paul N. Hilfinger <Hilfinger@gnat.com>
1937
1938 Turn on initial Ada support (mainly expression evaluation).
1939
1940 * Makefile.in (SFILES): Remove ada-tasks.c.
1941 (HFILES_NO_SRCDIR): Add ada-lang.h.
1942 (COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
1943 (YYOBJ): Add ada-exp.o.
1944 (rule .l.c): Generalize to not mention ada.
1945 * symtab.c: Include ada-lang.h.
1946 (symbol_natural_name, symbol_demangled_name)
1947 (symbol_search_name): Add Ada case.
1948
1949 2004-10-01 Andrew Cagney <cagney@gnu.org>
1950
1951 * Makefile.in (COMMON_OBS): Add inf-child.o.
1952 * config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
1953 * config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
1954 * config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
1955 * config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
1956 * config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
1957 * config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
1958 * config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
1959 * config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
1960 * config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
1961 * config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
1962 * config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
1963 * config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
1964 * config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
1965
1966 * target.c (xfer_using_stratum): Change return type to LONGEST.
1967 On each iteration offset, readbuf and writebuf.
1968 * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
1969 partial_length, and read/modify/write predicate, update comments.
1970 Pass buffer.word to ptrace write.
1971
1972 2004-10-01 Paul N. Hilfinger <Hilfinger@gnat.com>
1973
1974 * symfile.c (init_filename_language_table): Add extensions for
1975 Ada.
1976 * defs.h (enum language): Add language_ada.
1977 * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
1978 * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
1979 (add_symbols_from_enclosing_procs): Make a no-op for now.
1980 (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
1981 (extended_canonical_line_spec, find_sal_from_funcs_and_line)
1982 (find_line_in_linetable, find_next_line_in_linetable)
1983 (read_all_symtabs, is_plausible_func_for_line)
1984 (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
1985 (is_runtime_sym_defined, check_size): Remove declaration.
1986 (function_name_from_pc, ada_translate_error_message)
1987 (ada_lookup_minimal_symbol): Remove definition.
1988 (ada_add_block_symbols): Remove useless label.
1989 * ada-lang.h (ada_maybe_exception_partial_symbol): Remove
1990 useless declaration.
1991 (ada_is_exception_sym): Likewise.
1992
1993 2004-09-30 Kei Sakamoto <sakamoto.kei@renesas.com>
1994
1995 Add m32r-linux support.
1996 * configure.tgt: Add m32r*-*-linux*.
1997 * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
1998 and m32r-linux-tdep.c.
1999 (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
2000 * m32r-tdep.c: Move some definitions to m32r-tdep.h.
2001 * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
2002 m32r-linux-tdep.c.
2003 * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
2004 config/m32r/linux.mh, config/m32r/linux.mt,
2005 config/m32r/nm-linux.h: New files.
2006
2007 2004-09-30 Joel Brobecker <brobecker@gnat.com>
2008
2009 * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
2010 (mips32_fetch_instruction): Remove, unused.
2011
2012 2004-09-30 Joel Brobecker <brobecker@gnat.com>
2013
2014 * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
2015 conditions that will always be true.
2016
2017 2004-09-30 Mark Kettenis <kettenis@gnu.org>
2018
2019 * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
2020 (vaxbsd_fetch_inferior_registers): Rename from
2021 fetch_inferior_registers. Make static.
2022 (vaxbsd_store_inferior_registers): Rename from
2023 store_inferior_registers. Make static.
2024 (_initialize_vaxbsd_nat): Construct and add target vector.
2025 * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
2026 inftarg.o. Add inf-child.o and inf-ptrace.o.
2027 * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
2028 inftarg.o. Add inf-child.o and inf-ptrace.o.
2029 (NAT_FILE): Remove.
2030 * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
2031 inftarg.o. Add inf-child.o and inf-ptrace.o.
2032 (NAT_FILE): Remove.
2033 * Makefile.in (vaxbsd-nat.o): Update dependencies.
2034
2035 * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
2036 (m88kbsd_fetch_inferior_registers): Rename from
2037 fetch_inferior_registers. Make static.
2038 (m88kbsd_store_inferior_registers): Rename from
2039 store_inferior_registers. Make static.
2040 (_initialize_m88kbsd_nat): New prototype and function.
2041 * config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
2042 inftarg.o. Add inf-child.o and inf-ptrace.o.
2043 (NAT_FILE): Remove.
2044 * Makefile.in (m88kbsd-nat.o): Update dependencies.
2045
2046 2004-09-30 Andrew Cagney <cagney@gnu.org>
2047
2048 * target.c (target_xfer_partial): New function.
2049 (target_read_memory_partial, target_write_memory_partial)
2050 (default_xfer_partial, target_read_partial, target_write_partial)
2051 (xfer_using_stratum): Use.
2052 (debug_to_xfer_partial): Delete function.
2053 (setup_target_debug): Do not override to_xfer_partial.
2054
2055 2004-09-30 Mark Kettenis <kettenis@chello.nl>
2056
2057 * fork-child.c: Update copyright year. Fix coding style.
2058
2059 2004-09-29 Mark Kettenis <kettenis@gnu.org>
2060
2061 * defs.h (msavestring, mstrsave): Remove prototypes.
2062 * utils.c (msavestring, mstrsave): Remove functions.
2063 * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
2064 * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
2065 of mstrsave.
2066 * source.c (find_and_open_source): Use xstrdup instead of
2067 mstrsave.
2068
2069 2004-09-30 Andrew Cagney <cagney@gnu.org>
2070
2071 * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
2072 (inf_ptrace_xfer_memory): Delete.
2073 * target.c (target_xfer_partial_p, xfer_using_stratum): New.
2074 (target_read_memory, target_write_memory): Use xfer_using_stratum
2075 when target_xfer_partial_p.
2076 (debug_target): Move to start of file.
2077 (target_read_memory_partial, target_write_memory_partial): Use
2078 to_xfer_partial when target_xfer_partial_p.
2079
2080 * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
2081 inf_ptrace_xfer_memory with equivalent code.
2082 * inftarg.c (child_xfer_partial): When performing a write, pass
2083 writebuf to child_xfer_memory.
2084
2085 * target.c (target_read_string): Use target_read_memory instead of
2086 target_xfer_memory.
2087
2088 2004-09-29 Andrew Cagney <cagney@gnu.org>
2089
2090 * infptrace.c (kill_inferior): Fix typo, in previous inline. Pass
2091 the address of status.
2092
2093 * infptrace.c (ptrace_wait): Mention problem with HPUX.
2094 (kill_inferior): Inline ptrace_wait call.
2095 * linux-nat.c (kill_inferior): Inline ptrace_wait call.
2096 * inftarg.c (child_wait): Inline ptrace_wait call.
2097
2098 * target.h (struct target_ops): Delete field to_post_wait.
2099 (target_post_wait): Delete macro.
2100 (child_post_wait): Delete declaration.
2101 * target.c (update_current_target, update_current_target)
2102 (debug_to_post_wait, setup_target_debug): Delete functions and
2103 references.
2104 * infttrace.c (ptrace_wait): Delete call to target_post_wait.
2105 * inftarg.c (child_post_wait): Delete.
2106 (init_child_ops): Do not set to_post_wait.
2107 * infptrace.c (ptrace_wait): Delete call to target_post_wait.
2108 * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
2109 * inf-child.c (inf_child_post_wait): Delete.
2110 (inf_child_target): Do not set to_post_wait.
2111 * inf-ptrace.c (inf_ptrace_post_wait): Delete.
2112 (inf_ptrace_target): Do not set to_post_wait.
2113
2114 * wince.c (child_ops): Delete.
2115 * win32-nat.c (child_ops): Delete.
2116
2117 * inftarg.c (inftarg_set_find_memory_regions)
2118 (inftarg_set_make_corefile_notes): Delete functions.
2119 (_initialize_linux_nat): Inline calls.
2120
2121 * target.h (child_ops): Declare.
2122 * inftarg.c (child_ops): Move from here ...
2123 * target.c (child_ops): ... to here.
2124 * wince.c (child_ops): Delete extern declaration.
2125 * win32-nat.c (child_ops): Delete extern declaration.
2126 * linux-nat.c (child_ops): Delete extern declaration.
2127 * hpux-thread.c (child_ops): Delete extern declaration.
2128
2129 2004-09-28 Mark Kettenis <kettenis@gnu.org>
2130
2131 * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
2132
2133 2004-09-28 Mark Kettenis <kettenis@gnu.org>
2134
2135 * configure.in: Only set host_makefile_frag when building a native
2136 debugger.
2137 * configure: Regenerate.
2138
2139 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
2140 for OpenBSD ELF.
2141
2142 2004-09-28 Andrew Cagney <cagney@gnu.org>
2143
2144 Problem identified by Paul Hilfinger.
2145 * Makefile.in (ada_lex_c): Define.
2146 (ada-lex.o): Delete rule.
2147
2148 * linux-proc.c: Delete file.
2149 * Makefile.in: Update.
2150 * config/sparc/linux64.mh (NATDEPFILES):
2151 * config/sparc/linux.mh (NATDEPFILES): Update.
2152 * config/s390/s390.mh (NATDEPFILES): Update.
2153 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
2154 * config/powerpc/linux.mh (NATDEPFILES): Update.
2155 * config/pa/linux.mh (NATDEPFILES): Update.
2156 * config/mips/linux.mh (NATDEPFILES): Update.
2157 * config/m68k/linux.mh (NATDEPFILES): Update.
2158 * config/ia64/linux.mh (NATDEPFILES): Update.
2159 * config/i386/linux64.mh (NATDEPFILES): Update.
2160 * config/i386/linux.mh (NATDEPFILES): Update.
2161 * config/arm/linux.mh (NATDEPFILES): Update.
2162 * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
2163 * linux-nat.c: Update copyright. Include <sys/param.h>,
2164 <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
2165 "gdbthread.h", "gdb_stat.h", <fcntl.h>.
2166 (O_LARGEFILE): Possibly define.
2167 (_initialize_linux_nat, linux_proc_pending_signals)
2168 (add_line_to_sigset, linux_proc_xfer_memory)
2169 (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
2170 (linux_nat_do_registers, linux_nat_corefile_thread_callback)
2171 (struct linux_corefile_thread_data)
2172 (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
2173 (child_pid_to_exec_file): Insert code previously in linux-proc.c.
2174
2175 2004-09-16 Andrew Cagney <cagney@gnu.org>
2176
2177 * lin-lwp.c: Delete file.
2178 * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
2179 <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
2180 (status_to_str, init_lwp_list, add_lwp, delete_lwp)
2181 (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
2182 (linux_nat_attach, detach_callback, linux_nat_detach)
2183 (resume_callback, resume_clear_callback, linux_nat_resume)
2184 (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
2185 (stop_wait_callback, linux_nat_has_pending, flush_callback)
2186 (status_callback, running_callback, count_events_callback)
2187 (select_singlestep_lwp_callback, select_event_lwp_callback)
2188 (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
2189 (child_wait, stop_and_resume_callback, linux_nat_wait)
2190 (kill_callback, kill_wait_callback, linux_nat_kill)
2191 (linux_nat_create_inferior, linux_nat_mourn_inferior)
2192 (linux_nat_xfer_memory, linux_nat_thread_alive)
2193 (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
2194 (_initialize_linux_nat): New functions.
2195 * Makefile.in: Update all dependencies.
2196 * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
2197 * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2198 * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
2199 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
2200 * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2201 * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2202 * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2203 * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2204 * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2205 * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
2206 * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2207 * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2208 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
2209
2210 2004-09-27 Mark Kettenis <kettenis@gnu.org>
2211
2212 * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
2213 config/i386/obsd64.mh (NAT_FILE): Remove variable.
2214
2215 * configure.in: Don't comment out NATDEPFILES in the generated
2216 Makefile if NAT_FILE is unset.
2217 * configure: Regenerate.
2218
2219 2004-09-27 Andrew Cagney <cagney@gnu.org>
2220
2221 * infrun.c (check_for_old_step_resume_breakpoint): Delete.
2222 (insert_step_resume_breakpoint): Delete.
2223 (insert_step_resume_breakpoint_at_frame): New function.
2224 (insert_step_resume_breakpoint_at_sal): New function.
2225 (handle_inferior_event, step_into_function)
2226 (insert_step_resume_breakpoint): Simplify by using same.
2227
2228 * gdb_indent.sh (types): Add caddr_t to list of predefined types.
2229
2230 2004-09-26 Mark Kettenis <kettenis@gnu.org>
2231
2232 * fbsd-proc.c: Remove file.
2233 * Makefile.in (fbsd-proc.o): Remove dependency.
2234
2235 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
2236 code together.
2237
2238 * config/i386/nm-fbsd64.h: Remove file.
2239 * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2240
2241 2004-09-26 Mark Kettenis <kettenis@gnu.org>
2242
2243 * amd64-nat.h: Update copyright year.
2244 (amd64bsd_target): New prototype.
2245 * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
2246 (amd64bsd_target): New function.
2247 (amd64bsd_fetch_inferior_registers): Rename from
2248 fetch_inferior_registers. Make static.
2249 (amd64bsd_store_inferior_registers): Rename from
2250 store_inferior_registers. Make static.
2251 * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
2252 (_initialize_amd64fbsd_nat): Construct and add target vector.
2253 * amd64nbsd-nat.o: Include "target.h".
2254 (_initialize_amd64nbsd_nat): Construct and add target vector.
2255 * amd64obsd-nat.c: Include "target.h".
2256 (_initialize_amd64obsd_nat): Construct and add target vector.
2257 * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
2258 * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
2259 inftarg.o and fbsd-proc.o. Add inf-child.o, inf-ptrace.o and
2260 fbsd-nat.o.
2261 * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
2262 Remove infptrace.o and inftarg.o. Add inf-child.o and
2263 inf-ptrace.o.
2264 * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
2265 (amd64obsd-nat.o): Update dependencies.
2266
2267 2004-09-25 Mark Kettenis <kettenis@gnu.org>
2268
2269 * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
2270 * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
2271 * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
2272 * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
2273 * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
2274
2275 * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
2276 Inline attach call.
2277 (inf_ptrace_detach): Inline detach call.
2278
2279 * configure.in: Check for waddstr instead of mvwaddstr when
2280 searching for curses library. Check for wborder.
2281 * configure, config.in: Regenerate.
2282 * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
2283 available.
2284
2285 * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
2286
2287 2004-09-24 Robert Picco <Robert.Picco@hp.com>
2288
2289 Committed by Andrew Cagney.
2290 * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
2291 (show_remote_protocol_p_packet_cmd): New. Implement 'p' packet.
2292 configuration.
2293 (fetch_register_using_p): Implement 'p' packet. Based on code by
2294 Fernando Nasser.
2295 (remote_fetch_registers): Call fetch_register_using_p.
2296 (init_all_packet_configs, show_remote_cmd)
2297 (_initialize_remote): Add p-packet.
2298
2299 2004-09-24 Mark Kettenis <kettenis@gnu.org>
2300
2301 * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
2302 instead of call_ptrace. Call wait directly instead of
2303 ptrace_wait.
2304 (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
2305 (inf_ptrace_wait): Inline ptrace_wait call.
2306
2307 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
2308
2309 * Makefile.in (.y.c): Revert previous change. ../ylwrap was
2310 rolled back instead.
2311
2312 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
2313
2314 * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
2315 the new argument order.
2316
2317 2004-09-23 Corinna Vinschen <vinschen@redhat.com>
2318
2319 * MAINTAINERS: Remove "broken" from XStormy16 entry.
2320 * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
2321 (struct gdbarch_tdep): Remove.
2322 (struct xstormy16_frame_cache): New frame cache structure.
2323 (xstormy16_register_byte, xstormy16_register_raw_size)
2324 (xstormy16_reg_virtual_type, xstormy16_register_type)
2325 (xstormy16_push_arguments, xstormy16_push_return_address)
2326 (xstormy16_pop_frame, xstormy16_store_struct_return)
2327 (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
2328 (xstormy16_frame_saved_register, xstormy16_get_saved_register)
2329 (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
2330 (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
2331 (xstormy16_frame_chain, xstormy16_frame_chain_valid,
2332 (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
2333 (xstormy16_use_struct_convention): Drop gcc_p parameter.
2334 (xstormy16_extract_return_value, xstormy16_store_return_value):
2335 Regcachify. Drop useless struct convention handling.
2336 (xstormy16_register_type, xstormy16_return_value)
2337 (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
2338 (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
2339 (xstormy16_frame_prev_register, xstormy16_frame_this_id)
2340 (xstormy16_frame_base_address, xstormy16_frame_sniffer)
2341 (xstormy16_unwind_sp, xstormy16_unwind_pc)
2342 (xstormy16_unwind_dummy_id) : New functions.
2343 (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
2344 of xstormy16_scan_prologue.
2345 (xstormy16_frame_unwind): New frame_unwind structure.
2346 (xstormy16_frame_base): New frame_base structure.
2347 (xstormy16_gdbarch_init): Accomodate all of the above changes.
2348 Reshuffle for better readability. Also add dwarf2_frame_sniffer.
2349
2350 2004-09-22 Mark Kettenis <kettenis@gnu.org>
2351
2352 * language.c (language_gdbarch_post_init): Fix off-by one error.
2353
2354 2004-09-21 Daniel Jacobowitz <dan@debian.org>
2355
2356 * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
2357 (struct dwarf2_offset_and_type): New.
2358 (set_die_type, reset_die_and_siblings_types, get_die_type)
2359 (offset_and_type_hash, offset_and_type_eq): New functions.
2360 (read_structure_type, read_enumeration_type, read_array_type)
2361 (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
2362 (read_tag_reference_type, read_tag_const_type)
2363 (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
2364 (read_typedef, read_base_type, read_subrange_type): Use
2365 set_die_type.
2366
2367 2004-09-20 Daniel Jacobowitz <dan@debian.org>
2368
2369 * Makefile.in (dwarf2read.o): Update dependencies.
2370 * dwarf2read.c: Include "command.h" and "gdbcmd.h".
2371 (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
2372 and read_in_chain.
2373 (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
2374 mark, and has_form_ref_addr.
2375 (struct dwarf2_per_cu_data): New.
2376 (dwarf2_max_cache_age): New.
2377 (dwarf2_build_psymtabs_hard): Free cached compilation units
2378 after loading. Create and manage the list of compilation units.
2379 Remove unnecessary NULL initialization. Fix indentation.
2380 (psymtab_to_symtab_1): Initialize all of CU.
2381 (dwarf2_read_abbrevs): Set has_form_ref_addr.
2382 (find_partial_die): Use dwarf2_find_containing_comp_unit
2383 and load_comp_unit.
2384 (free_stack_comp_unit): Update comments. Clear the per-cu
2385 pointer. Handle aging.
2386 (dwarf2_find_containing_comp_unit, free_cached_comp_units)
2387 (age_cached_comp_units, free_one_cached_comp_unit)
2388 (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
2389 (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
2390 (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
2391 (show_dwarf2_cmd): New.
2392 (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
2393 and "maint show dwarf2 max-cache-age".
2394 * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
2395 externs.
2396 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
2397 global.
2398
2399 2004-09-20 Jeff Johnston <jjohnstn@redhat.com>
2400
2401 * dwarf2read.c (typename_concat): Change prototype to accept obstack
2402 and dwarf2_cu struct pointer as arguments. Change function to use
2403 obstack if provided and use dwarf2_cu to determine language-specific
2404 separator.
2405 (partial_die_parent_scope): Change comment to include java. Use
2406 new version of typename_concat instead of obconcat.
2407 (partial_die_full_name): Use typename_concat.
2408 (read_namespace): Ditto.
2409 (read_enumeration_type): Use typename_concat instead of obconcat.
2410 (new_symbol): Ditto.
2411 (add_partial_symbol): Enhance tests for C++ to also test for Java.
2412 (guess_structure_name): Ditto.
2413 (read_subroutine_type): Ditto.
2414 (read_structure_type): Ditto.
2415 (is_vtable_name): Add Java support.
2416 (determine_class_name): Switch to new typename_concat call.
2417 (determine_prefix): Switch to new typename_concat call.
2418 * jv-exp.y (FuncStart): New pattern.
2419 (MethodInvocation): Add support for simple function calls. Change
2420 warning message for other forms of inferior call currently not
2421 supported.
2422 * valarith.c (value_subscript): Treat an array with upper-bound
2423 of -1 as unknown size.
2424
2425 2004-09-20 Daniel Jacobowitz <dan@debian.org>
2426
2427 * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
2428 (lookup_partial_symtab): Use symtab_to_fullname.
2429
2430 2004-09-19 Jim Blandy <jimb@redhat.com>
2431
2432 * minsyms.c (lookup_minimal_symbol): Doc fix.
2433
2434 2004-09-20 Andrew Cagney <cagney@gnu.org>
2435
2436 * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
2437 CHILD_RESUME.
2438 * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
2439 * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
2440 KILL_INFERIOR.
2441 * infptrace.c: Update.
2442
2443 2004-09-19 Daniel Jacobowitz <dan@debian.org>
2444
2445 * symtab.c (output_source_filename): Mark first argument as const.
2446 (sources_info): Use symtab_to_fullname and psymtab_to_fullname
2447 for "info sources" output.
2448
2449 2004-09-20 Mark Kettenis <kettenis@gnu.org>
2450
2451 * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
2452 <machine/vmparam.h>.
2453 (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
2454 (register_u_addr): Remove prototype.
2455
2456 2004-09-19 Mark Kettenis <kettenis@gnu.org>
2457
2458 * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
2459 (i386bsd_fetch_inferior_registers): Rename from
2460 fetch_inferior_registers. Make static.
2461 (i386bsd_store_inferior_registers): Rename from
2462 store_inferior_registers. Make static.
2463 (i386bsd_target): New function.
2464 * i386bsd-nat.h: New file.
2465 * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
2466 "i386bsd-nat.h".
2467 (i386fbsd_resume): Rename from child_resume. Make static.
2468 (_initialize_i386fbsd_nat): Construct and add target vector.
2469 * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
2470 (_initialize_i386nbsd_nat): Construct and add target vector.
2471 * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
2472 Remove defines.
2473 * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
2474 and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
2475 * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
2476 inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
2477 (LOADLIBES): New variable.
2478 * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
2479 inf-ptrace.o. Remove inftarg.o.
2480 * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
2481 inf-ptrace.o. Remove inftarg.o.
2482 * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
2483 inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
2484 (LOADLIBES): New variable.
2485 * Makefile.in (i386bsd_nat_h): New variable.
2486 (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
2487 dependencies.
2488
2489 * sparc64nbsd-tdep.c: Include "objfiles.h".
2490 (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
2491 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
2492 svr4_lp64_fetch_link_map_offsets.
2493 * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
2494 "nbsd-tdep.h".
2495 (sparc64obsd_init_abi): Set in_solib_call_trampoline and
2496 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
2497 svr4_lp64_fetch_link_map_offsets.
2498 * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
2499 dependencies.
2500
2501 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
2502 * fbsd-nat.h: New file.
2503 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
2504 (fbsd_nat_h): New variable.
2505 (fbsd-nat.o): New dependency.
2506
2507 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
2508 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
2509
2510 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
2511 comment.
2512
2513 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
2514
2515 * ada-exp.y (type_int): New function to add layer of abstraction
2516 around references to expression types.
2517 (type_long): Ditto.
2518 (type_long_long): Ditto.
2519 (type_float): Ditto.
2520 (type_double): Ditto.
2521 (type_long_double): Ditto.
2522 (type_char): Ditto.
2523 (type_system_address): Ditto.
2524 (simple_exp): Use type_* functions in place of builtin_*
2525 variables.
2526 (exp): Ditto.
2527 (write_var_from_name): Ditto.
2528 (write_object_renaming): Ditto.
2529 * ada-lang.c (ada_create_fundamental_type): Remove redundant
2530 declaration.
2531 (build_ada_types): Remove, replacing with...
2532 (ada_language_arch_info): New function to initialize primitive
2533 type vector in language_arch_info.
2534 (ada_array_length): Remove use of builtin_type_ada_int.
2535 (value_pos_atr): Ditto.
2536 (ada_evaluate_subexp): Ditto.
2537 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
2538 builtin_type_ada_long_long, builtin_type_ada_char,
2539 builtin_type_ada_float, builtin_type_ada_double,
2540 builtin_type_ada_long_double, builtin_type_ada_natural,
2541 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
2542 (ada_builtin_types): Remove.
2543 (ada_language_defn): Remove entries for la_builtin_type_vector and
2544 string_char_type and use ada_language_arch_info.
2545 (_initialize_ada_language): Do type-vector initialization along
2546 the lines of c-lang.c.
2547 (ada_create_fundamental_type): Break up line.
2548 (ada_dump_symtab): Remove unused function.
2549 (enum ada_primitive_types): Define.
2550 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
2551 builtin_type_ada_long,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-lex.l: Use type_* functions in place of builtin_* variables.
2556 (processInt): Ditto.
2557 (processReal): Ditto.
2558 (name_lookup): Ditto.
2559 * ada-typeprint.c (print_range): Use builtin_type_int, not
2560 builtin_type_ada_int.
2561
2562 2004-09-18 Mark Kettenis <kettenis@gnu.org>
2563
2564 * i386-tdep.c (i386_register_name): Rename regno to regnum.
2565
2566 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
2567 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
2568 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
2569 * configure.in: Improve checks for curses library by checking for
2570 mvwaddstr instead of initscr. Drop HP curses in favour of
2571 standard curses on HP-UX.
2572 * configure: Regenerated.
2573
2574 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
2575
2576 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
2577 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
2578 Minor formatting changes.
2579 (empty_array): Slight rewrite for formatting.
2580 (emit_char,parse,ada_language_defn,build_ada_types,
2581 ada_is_exception_sym, _initialize_ada_language): Move
2582 definitions around.
2583 (ada_dump_symtab): Remove unused definition.
2584 (ada_maybe_exception_partial_symbol): Remove unused definition.
2585
2586 2004-09-16 Andrew Cagney <cagney@gnu.org>
2587
2588 * inf-child.c: Include "gdb_string.h".
2589 (inf_child_core_file_to_sym_file): Delete.
2590 (inf_child_target): Set to_fetch_registers and to_store_registers.
2591 * inf-ptrace.c: Include "gdb_string.h".
2592 * Makefile.in: Update all dependencies.
2593
2594 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
2595 problem.
2596
2597 2004-09-14 Joel Brobecker <brobecker@gnat.com>
2598
2599 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
2600 call to heuristic_proc_desc. Remove code that became redundant
2601 as a consequence.
2602 (read_next_frame_reg): Remove special case for SP_REGNUM.
2603 (set_reg_offset): Fix small typo.
2604 (reset_saved_regs): New procedure.
2605 (mips32_heuristic_proc_desc): No longer compute a fake
2606 procedure descriptor. Compute the full frame cache instead.
2607 Some minor comment reformatting.
2608
2609 2004-09-14 Andrew Cagney <cagney@gnu.org>
2610
2611 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
2612 maintainer.
2613
2614 * thread-db.c (thread_db_new_objfile): Assume that there is a
2615 child process.
2616
2617 2004-09-13 Jim Blandy <jimb@redhat.com>
2618
2619 * valops.c (value_assign): Move 'buffer' to the enclosing block,
2620 so that its storage isn't referenced after its lifetime ends.
2621
2622 * valops.c (value_assign): 'use_buffer' is initialized to zero,
2623 and never assigned to. Delete it, and the 'if (use_buffer)'
2624 clauses. Delete 'raw_buffer', since it is now unused.
2625
2626 2004-09-13 Andrew Cagney <cagney@gnu.org>
2627
2628 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
2629 * configure: Re-generate.
2630 * nlm/Makefile.in (TAGS): Update.
2631 * Makefile.in (TAGS): Update.
2632 * config/vax/nbsd.mt (TM_FILE): Update.
2633 * config/sparc/vxworks.mt (TM_FILE): Update.
2634 * config/sparc/sol2.mt (TM_FILE): Update.
2635 * config/sparc/sol2-64.mt (TM_FILE): Update.
2636 * config/sparc/obsd64.mt (TM_FILE): Update.
2637 * config/sparc/obsd.mt (TM_FILE): Update.
2638 * config/sparc/nbsd64.mt (TM_FILE): Update.
2639 * config/sparc/nbsd.mt (TM_FILE): Update.
2640 * config/sparc/linux64.mt (TM_FILE): Update.
2641 * config/sparc/linux.mt (TM_FILE): Update.
2642 * config/sparc/fbsd.mt (TM_FILE): Update.
2643 * config/sh/wince.mt (TM_FILE): Update.
2644 * config/sh/nbsd.mt (TM_FILE): Update.
2645 * config/sh/linux.mt (TM_FILE): Update.
2646 * config/sh/embed.mt (TM_FILE): Update.
2647 * config/s390/s390.mt (TM_FILE): Update.
2648 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
2649 * config/rs6000/rs6000.mt (TM_FILE): Update.
2650 * config/rs6000/aix4.mt (TM_FILE): Update.
2651 * config/powerpc/vxworks.mt (TM_FILE): Update.
2652 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
2653 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
2654 * config/powerpc/obsd.mt (TM_FILE): Update.
2655 * config/powerpc/nbsd.mt (TM_FILE): Update.
2656 * config/powerpc/linux.mt (TM_FILE): Update.
2657 * config/powerpc/aix.mt (TM_FILE): Update.
2658 * config/pa/obsd.mt (TM_FILE): Update.
2659 * config/pa/linux.mt (TM_FILE): Update.
2660 * config/pa/hppahpux.mt (TM_FILE): Update.
2661 * config/pa/hppa64.mt (TM_FILE): Update.
2662 * config/pa/hppa.mt (TM_FILE): Update.
2663 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
2664 * config/mips/wince.mt (TM_FILE): Update.
2665 * config/mips/vxmips.mt (TM_FILE): Update.
2666 * config/mips/nbsd.mt (TM_FILE): Update.
2667 * config/mips/linux.mt (TM_FILE): Update.
2668 * config/mips/irix6.mt (TM_FILE): Update.
2669 * config/mips/irix5.mt (TM_FILE): Update.
2670 * config/mips/embed.mt (TM_FILE): Update.
2671 * config/m68k/vxworks68.mt (TM_FILE): Update.
2672 * config/m68k/st2000.mt (TM_FILE): Update.
2673 * config/m68k/os68k.mt (TM_FILE): Update.
2674 * config/m68k/obsd.mt (TM_FILE): Update.
2675 * config/m68k/nbsd.mt (TM_FILE): Update.
2676 * config/m68k/monitor.mt (TM_FILE): Update.
2677 * config/m68k/linux.mt (TM_FILE): Update.
2678 * config/m68k/cisco.mt (TM_FILE): Update.
2679 * config/ia64/linux.mt (TM_FILE): Update.
2680 * config/ia64/aix.mt (TM_FILE): Update.
2681 * config/ia64/ia64.mt (TM_FILE): Update.
2682 * config/i386/vxworks.mt (TM_FILE): Update.
2683 * config/i386/obsd64.mt (TM_FILE): Update.
2684 * config/i386/obsd.mt (TM_FILE): Update.
2685 * config/i386/nto.mt (TM_FILE): Update.
2686 * config/i386/nbsd64.mt (TM_FILE): Update.
2687 * config/i386/nbsd.mt (TM_FILE): Update.
2688 * config/i386/linux64.mt (TM_FILE): Update.
2689 * config/i386/linux.mt (TM_FILE): Update.
2690 * config/i386/i386sol2.mt (TM_FILE): Update.
2691 * config/i386/i386lynx.mt (TM_FILE): Update.
2692 * config/i386/fbsd64.mt (TM_FILE): Update.
2693 * config/i386/fbsd.mt (TM_FILE): Update.
2694 * config/i386/cygwin.mt (TM_FILE): Update.
2695 * config/h8300/h8300.mt (TM_FILE): Update.
2696 * config/frv/frv.mt (TM_FILE): Update.
2697 * config/cris/cris.mt (TM_FILE): Update.
2698 * config/arm/wince.mt (TM_FILE): Update.
2699 * config/arm/nbsd.mt (TM_FILE): Update.
2700 * config/arm/linux.mt (TM_FILE): Update.
2701 * config/arm/embed.mt (TM_FILE): Update.
2702 * config/alpha/nbsd.mt (TM_FILE): Update.
2703 * config/alpha/fbsd.mt (TM_FILE): Update.
2704 * config/alpha/alpha.mt (TM_FILE): Update.
2705 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
2706 * config/alpha/alpha-linux.mt (TM_FILE): Update.
2707
2708 Eliminate event_loop_p, always has the value 1.
2709 * defs.h (event_loop_p): Delete macro.
2710 * breakpoint.c (until_break_command): Simplify.
2711 * utils.c (prompt_for_continue): Simplify.
2712 * tracepoint.c (read_actions): Simplify.
2713 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
2714 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
2715 (set_prompt, init_main): Simplify.
2716 (init_signals, disconnect): Delete, unused.
2717 * remote.c (remote_async_resume)
2718 (extended_remote_async_create_inferior): Simplify.
2719 * mi/mi-interp.c (mi_input): Delete, unused.
2720 (mi_interpreter_resume, mi_command_loop): Simplify.
2721 * interps.c (current_interp_command_loop): Simplify.
2722 * infrun.c (proceed): Simplify.
2723 * infcmd.c (run_command, continue_command, step_1, jump_command)
2724 (until_command, advance_command, finish_command)
2725 (interrupt_target_command): Simplify.
2726 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
2727
2728 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2729 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2730 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2731 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2732 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2733 * mips-tdep.c (mips_dump_tdep): Do not print same.
2734
2735 2004-09-12 Andrew Cagney <cagney@gnu.org>
2736
2737 * valprint.c (print_longest): Use fputs_filtered. Make "val"
2738 const.
2739 * Makefile.in (valprint.o): Delete explict rule.
2740
2741 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
2742 reported by Dave Anderson.
2743
2744 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
2745
2746 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
2747
2748 2004-09-12 Salvador E. Tropea <set@users.sf.net>
2749 Andrew Cagney <cagney@gnu.org>
2750
2751 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
2752 (mi_cmd_data_list_register_values)
2753 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
2754 the register number computation.
2755
2756 2004-09-12 Andrew Cagney <cagney@gnu.org>
2757
2758 * ppcnbsd-nat.c: Include "inf-ptrace.h".
2759 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
2760 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
2761 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
2762 target.
2763 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
2764 inf-ptrace.o and inf-child.o.
2765 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
2766 * Makefile.in: Update dependencies.
2767
2768 2004-09-11 Andrew Cagney <cagney@gnu.org>
2769
2770 * language.c (hex_string, hex_string_custom): Move from here ...
2771 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
2772 (CELLSIZE): Increase to 50.
2773 * language.h (hex_string, hex_string_custom): Move from here ...
2774 * defs.h: ... to here.
2775 * Makefile.in: Update all dependencies.
2776
2777 2004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
2778
2779 * language.c (local_hex_format_custom): Remove.
2780 (local_hex_string): Rename to hex_string, use C format, and move to
2781 utils.c
2782 (local_hex_string_custom): Rename to hex_string_custom and change
2783 interface. Now uses C format. Move to utils.c
2784 (local_octal_format_custom): Remove.
2785 (local_decimal_format_custom): Remove.
2786 (unknown_language_defn): Remove language-specific number
2787 formatting entries.
2788 (auto_language_defn): Ditto.
2789 (local_language_defn): Ditto.
2790 * language.h (struct language_format_info): Delete declaration.
2791 (struct language_defn): Remove language_format_info fields
2792 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
2793 (local_binary_format): Remove macro.
2794 (local_binary_format_prefix): Remove macro.
2795 (local_binary_format_specifier): Remove macro.
2796 (local_binary_format_suffix): Remove macro.
2797 (local_octal_format): Remove macro.
2798 (local_octal_format_prefix): Remove macro.
2799 (local_octal_format_specifier): Remove macro.
2800 (local_octal_format_suffix): Remove macro.
2801 (local_decimal_format): Remove macro.
2802 (local_decimal_format_prefix): Remove macro.
2803 (local_decimal_format_specifier): Remove macro.
2804 (local_decimal_format_suffix): Remove macro.
2805 (local_hex_format): Remove macro.
2806 (local_hex_format_prefix): Remove macro.
2807 (local_hex_format_specifier): Remove macro.
2808 (local_hex_format_suffix): Remove macro.
2809 (local_decimal_format_custom): Remove.
2810 (local_octal_format_custom): Remove.
2811 (local_hex_format_custom): Remove.
2812 (local_hex_string): Rename to hex_string and move to defs.h.
2813 (local_hex_string_custom): Rename to hex_string_custom, change
2814 interface, and move to defs.h.
2815 * utils.c: (int_string): New function.
2816 (hex_string): New function (from language.c).
2817 (hex_string_custom): New function (from language.c).
2818 (octal2str): New function.
2819 (decimal2str): Add width parameter.
2820 (paddr_u): Use new decimal2str interface.
2821 (paddr_d): Ditto.
2822 * defs.h (hex_string): Declare.
2823 (hex_string_custom): Declare.
2824 (int_string): Declare.
2825 * printcmd.c (print_scalar_formatted): Remove localized binary
2826 formatting.
2827 * valprint.c (print_longest): Use int_string.
2828 (print_floating): Use C hex format.
2829 (print_hex_chars): Ditto.
2830 (print_binary_chars): Remove language-specific formatting.
2831 (print_octal_chars): Use C octal format.
2832 (print_decimal_chars): Delocalize format.
2833 (print_decimal): Remove.
2834 * ada-lang.c (ada_language_defn): Remove language-specific number
2835 formatting entries.
2836 * p-lang.c (pascal_language_defn): Ditto.
2837 * c-lang.c (c_language_defn): Ditto.
2838 (cplus_language_defn): Ditto.
2839 (asm_language_defn): Ditto.
2840 (minimal_language_defn): Ditto.
2841 * f-lang.c (f_language_defn): Ditto.
2842 * jv-lang.c (java_language_defn): Ditto.
2843 * m2-lang.c (m2_language_defn): Ditto.
2844 * scm-lang.c (scm_language_defn): Ditto.
2845 * objc-lang.c (objc_language_defn): Ditto.
2846 * memattr.c (mem_info_command): Use renamed hex_string_custom with
2847 new interface.
2848 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
2849 * ui-out.c (ui_out_field_core_addr): Ditto.
2850 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
2851 * exec.c (print_section_info): Ditto.
2852 * i387-tdep.c (print_i387_status_word): Ditto.
2853 (print_i387_control_word): Ditto.
2854 (i387_print_float_info): Ditto.
2855 * maint.c (maint_print_section_info): Ditto.
2856 * solib.c (info_sharedlibrary_command): Ditto.
2857 * somsolib.c (som_sharedlibrary_info_command): Ditto.
2858 * symtab.c (print_msymbol_info): Ditto.
2859 * tracepoint.c (tracepoints_info): Ditto.
2860 * solib-frv.c (lm_base): Ditto.
2861 (frv_current_sos): Ditto.
2862 (enable_break2): Ditto.
2863 (enable_break): Ditto.
2864 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
2865 (process_one_symbol): Ditto.
2866 * infcmd.c (program_info): Ditto.
2867 * mdebugread.c (parse_partial_symbols): Ditto.
2868 * symfile.c (add_symbol_file_command): Ditto.
2869 * cli/cli-cmds.c (edit_command): Ditto.
2870 (list_command): Ditto.
2871 * infcall.c (call_function_by_hand): Ditto.
2872 * remote-vx.c (vx_run_files_info): Ditto.
2873 (vx_wait): Ditto.
2874 (vx_attach): Ditto.
2875 (vx_detach): Ditto.
2876 (vx_kill): Ditto.
2877 * aix-thread.c (pdc_symbol_addrs): Ditto.
2878 (pdc_read_regs): Ditto.
2879 (pdc_write_regs): Ditto.
2880 (pdc_read_data): Ditto.
2881 (pdc_write_data): Ditto.
2882 * d10v-tdep.c (display_trace): Ditto.
2883 * rs6000-nat.c (find_toc_address): Ditto.
2884 * aix-thread.c: Don't include language.h.
2885 * buildsym.c: Ditto.
2886 * dbxread.c: Ditto.
2887 * mdebugread.c: Ditto.
2888 * rs6000-nat.c: Ditto.
2889 * buildsym.c (make_blockvector): Use renamed hex_string.
2890
2891 2004-09-10 Jason Molenda (jmolenda@apple.com)
2892
2893 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
2894 chars after 'if' or 'while' commands in user-defined commands.
2895
2896 2004-09-08 Jim Blandy <jimb@redhat.com>
2897
2898 Fix bug reported and analyzed by Olivier Crete:
2899 * symfile.c (copy_section_addr_info): New function.
2900 (symbol_file_add_with_addrs_or_offsets): Use it to save the
2901 original set of address arguments, instead of handwritten code
2902 that uses one length to allocate and a different length to
2903 initialize. Use make_cleanup_free_section_addr_info.
2904 * symfile.h (copy_section_addr_info): New declaration.
2905 * utils.c: #include "symfile.h".
2906 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
2907 New functions.
2908 * defs.h (make_cleanup_free_section_addr_info): New declaration.
2909 * Makefile.in (utils.o): Update dependencies.
2910
2911 2004-09-08 Andrew Cagney <cagney@gnu.org>
2912
2913 * thread-db.c (keep_thread_db): Delete.
2914 (thread_db_new_objfile, thread_db_create_inferior)
2915 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
2916
2917 2004-09-08 Mark Kettenis <kettenis@gnu.org>
2918
2919 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
2920 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
2921 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
2922 (i386_frameless_signal_p): Remove prototype.
2923 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
2924 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
2925 I386_SSE_NUM_REGS.
2926 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
2927 instead of FP0_REGNUM.
2928 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
2929 of FP0_REGNUM and FPC_REGNUM.
2930
2931 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
2932 (sunos_solib_create_inferior_hook): Don't call
2933 sunos_relocate_main_executable.
2934
2935 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
2936 solib_svr4_fetch_link_map_offsets to
2937 svr4_ilp32_fetch_link_map_offsets.
2938 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
2939 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
2940 svr4_ilp32_fetch_link_map_offsets.
2941 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
2942
2943 2004-09-07 Jim Blandy <jimb@redhat.com>
2944
2945 * frame.h (frame_register): Doc fix.
2946
2947 2004-09-07 Andrew Cagney <cagney@gnu.org>
2948
2949 * vx-share/wait.h: Delete #ifdef USG.
2950 * utils.c (request_quit): Ditto.
2951 * tui/tui.c (tui_reset): Ditto.
2952 * remote.c: Ditto.
2953 * remote-sds.c: Ditto.
2954 * remote-rdi.c: Ditto.
2955 * mdebugread.c: Ditto.
2956 * m68klinux-nat.c: Ditto.
2957 * infttrace.c: Ditto.
2958 * infptrace.c: Ditto.
2959 * i386v-nat.c: Ditto.
2960 * exec.c: Ditto.
2961 * dbxread.c: Ditto.
2962 * core-aout.c: Ditto.
2963
2964 2004-09-05 Joel Brobecker <brobecker@gnat.com>
2965
2966 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
2967 heuristic_proc_desc.
2968 (mips_insn32_frame_cache): Likewise.
2969
2970 2004-09-04 Joel Brobecker <brobecker@gnat.com>
2971
2972 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
2973 left behind by error.
2974
2975 2004-09-04 Joel Brobecker <brobecker@gnat.com>
2976
2977 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
2978 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
2979
2980 2004-09-04 Joel Brobecker <brobecker@gnat.com>
2981
2982 * config/rs6000/xm-aix4.h: Remove this file.
2983 * config/rs6000/aix4.mh (XM_FILE): Delete.
2984
2985 2004-09-04 Joel Brobecker <brobecker@gnat.com>
2986
2987 * config/rs6000/xm-rs6000.h: Remove this file.
2988 * config/rs6000/rs6000.mh (XM_FILE): Remove.
2989
2990 2004-09-03 Andrew Cagney <cagney@gnu.org>
2991
2992 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
2993 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
2994 only use.
2995
2996 * mips-tdep.c (temp_saved_regs): Delete.
2997 (set_reg_offset): Replace saved_regs parameter with this_cache.
2998 (heuristic_proc_desc, mips16_heuristic_proc_desc)
2999 (mips32_heuristic_proc_desc): Add this_cache parameter.
3000 (mips_insn32_frame_cache, mips_insn16_frame_cache)
3001 (after_prologue): Pass a NULL this_cache.
3002
3003 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
3004 non-kernel trap prologues.
3005
3006 * mips-tdep.c (find_proc_desc): Delete function.
3007 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
3008 simplify.
3009 (mips_insn16_frame_cache): Replace find_proc_desc with code from
3010 mips_insn32_frame_cache.
3011
3012 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
3013 Simplify as NEXT_FRAME is NULL.
3014 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
3015
3016 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
3017 local variable.
3018 (mips_skip_prologue): Update.
3019
3020 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
3021 "cur_frame" parameter.
3022 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
3023 (mips_insn32_frame_cache, find_proc_desc): Update
3024
3025 * config/vax/nm-obsd.h: Delete file.
3026 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3027 * config/vax/nm-nbsd.h: Delete file.
3028 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
3029 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3030 * config/sh/nm-nbsd.h: Delete file.
3031 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3032 * config/rs6000/nm-rs6000ly.h: Delete file.
3033 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
3034 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
3035 * config/powerpc/nm-obsd.h: Delete file.
3036 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3037 * config/powerpc/nm-nbsd.h: Delete file.
3038 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3039 * config/pa/nm-obsd.h: Delete file.
3040 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3041 * config/mips/nm-nbsd.h: Delete file.
3042 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3043 * config/m88k/nm-obsd.h: Delete file.
3044 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3045 * config/m68k/nm-nbsd.h: Delete file.
3046 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
3047 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3048 * config/i386/nm-nbsd.h: Delete file.
3049 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
3050 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
3051 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
3052 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3053 * config/i386/nm-i386lynx.h: Delete file.
3054 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
3055 * config/arm/nm-nbsd.h: Delete file.
3056 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
3057 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3058
3059 * config/i386/tm-fbsd.h: Delete file.
3060 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
3061 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
3062
3063 * config/rs6000/tm-rs6000-aix4.h: Delete file.
3064 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
3065 * config/rs6000/aix4.mt (TM_FILE): Set to
3066 config/rs6000/tm-rs6000.h.
3067 * config/powerpc/tm-ppc-aix.h: Delete file.
3068 * config/powerpc/aix.mt (TM_FILE): Set to
3069 config/rs6000/tm-rs6000.h.
3070 * config/m68k/tm-linux.h: Delete file.
3071 * config/m68k/linux.mt (TM_FILE): Set to solib.h
3072 * config/i386/tm-linux64.h: Delete file.
3073 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
3074 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
3075
3076 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
3077 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
3078 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
3079 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
3080 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
3081 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
3082 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
3083 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
3084 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
3085
3086 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
3087 gdb_host_cpu.
3088
3089 2004-09-02 Joel Brobecker <brobecker@gnat.com>
3090
3091 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
3092 Minor reformatting. Some code factoring.
3093
3094 2004-09-02 Andrew Cagney <cagney@gnu.org>
3095
3096 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
3097 * config/vax/tm-nbsd.h: Delete file.
3098 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
3099 * config/sparc/tm-vxworks.h: Delete file.
3100 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
3101 * config/sparc/tm-nbsd.h: Delete file.
3102 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
3103 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
3104 * config/sparc/tm-linux.h: Delete file.
3105 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
3106 * config/s390/tm-linux.h: Delete file.
3107 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
3108 * config/pa/tm-bsd.h: Delete file.
3109 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
3110 * config/m68k/tm-obsd.h: Delete file.
3111 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
3112 * config/m68k/tm-nbsd.h: Delete file.
3113 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
3114 * config/i386/tm-vxworks.h: Delete file.
3115 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
3116 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
3117 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
3118 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
3119 * config/i386/tm-nbsd.h: Delete file.
3120 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
3121 * config/i386/tm-i386lynx.h: Delete file.
3122 * config/cris/cris.mt (TM_FILE): Set to solib.h.
3123 * config/cris/tm-cris.h: Delete file.
3124
3125 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
3126 * configure: Re-generate.
3127 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
3128 * config/arm/tm-nbsd.h: Delete file.
3129
3130 * config/powerpc/tm-ppcle-sim.h: Delete.
3131 * config/powerpc/tm-ppcle-eabi.h: Delete.
3132 * config/powerpc/tm-nbsd.h: Delete.
3133 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
3134 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
3135 tm-ppcle-eabi.h.
3136
3137 * config/i386/nto.mh (NAT_FILE): Delete.
3138 * config/i386/nm-nto.h: Delete.
3139
3140 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
3141 * config/m68k/tm-os68k.h: Ditto.
3142 * config/m68k/tm-monitor.h: Ditto.
3143 * config/m68k/tm-cisco.h: Ditto.
3144 * config/m68k/st2000.mt (TM_FILE): Delete.
3145 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
3146 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
3147 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
3148 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
3149
3150 * config/m68k/tm-st2000.h: Delete.
3151 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
3152 * config/sparc/fbsd.mt (TM_FILE): Delete.
3153 * config/sparc/tm-fbsd.h: Delete.
3154
3155 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
3156 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
3157 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
3158
3159 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
3160 GDB_TM_FILE and GDB_XM_FILE.
3161 * gdbarch.c: Re-generate.
3162 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
3163 quotes in macro definition.
3164 * configure.in: Re-generate.
3165
3166 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
3167 validating architecture methods.
3168 * gdbarch.c: Re-generate.
3169
3170 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
3171 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
3172 GDB_MULTI_ARCH_PARTIAL.
3173 * gdbarch.h: Re-generate.
3174
3175 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
3176 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
3177 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
3178 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
3179 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
3180 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
3181 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
3182 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
3183 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
3184 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
3185 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
3186 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
3187
3188 2004-09-01 Andrew Cagney <cagney@gnu.org>
3189
3190 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
3191 and main_func_highpc.
3192 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
3193 * objfiles.c (init_entry_point_info, objfile_relocate): Update
3194 * nlmread.c (nlm_symfile_read): Update.
3195
3196 2004-09-01 Joel Brobecker <brobecker@gnat.com>
3197
3198 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
3199 (mips_insn32_frame_cache): Inline call to find_proc_desc.
3200 (find_proc_desc): Remove dead code.
3201
3202 2004-09-01 Joel Brobecker <brobecker@gnat.com>
3203
3204 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
3205
3206 2004-09-01 Jeff Johnston <jjohnstn@redhat.com>
3207
3208 * observer.sh: Add struct so_list declaration.
3209 * Makefile.in: Add dependencies on observer.h for solib.c and
3210 breakpoint.c.
3211 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
3212 function.
3213 (_initialize_breakpoint): Register
3214 disable_breakpoints_in_unloaded_shlib as an observer of the
3215 "solib unloaded" observation event.
3216 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
3217 call decode_line_1 so unfound breakpoint errors are silent.
3218 * solib.c (update_solib_list): When a solib is discovered to have
3219 been unloaded by the program, notify all observers of the
3220 "solib unloaded" observation event.
3221
3222 2004-09-01 Andrew Cagney <cagney@gnu.org>
3223
3224 * frame.c: Include "objfiles.h".
3225 (inside_main_func): New function.
3226 (get_prev_frame): Use new inside_main_func.
3227 * Makefile.in (frame.o): Update dependencies.
3228 * defs.h (inside_main_func): Delete declaration.
3229 * blockframe.c (inside_main_func): Delete function.
3230
3231 2004-08-31 Jim Blandy <jimb@redhat.com>
3232
3233 * dwarf2read.c (is_vtable_name): New function, based on logic from
3234 read_structure_type, but passing the correct length to strncmp,
3235 and using 'sizeof' instead of 'strlen'.
3236 (read_structure_type): Call it.
3237
3238 2004-08-31 Joel Brobecker <brobecker@gnat.com>
3239
3240 * config/powerpc/aix.mh: Add comment.
3241
3242 2004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
3243
3244 * MAINTAINERS: Add self to Write-After-Approval.
3245
3246 2004-08-30 Manoj Iyer <manjo@austin.ibm.com>
3247
3248 * MAINTAINERS: Add self to Write-After-Approval.
3249
3250 2004-08-30 Andrew Cagney <cagney@gnu.org>
3251
3252 Fix PR breakpoints/1757.
3253 * infrun.c (struct execution_control_state): Replace
3254 remove_breakpoints_on_following_step with
3255 step_after_step_resume_breakpoint.
3256 (init_execution_control_state): Update.
3257 (handle_inferior_event): For signals, when stepping off a
3258 breakpoint, set step_after_step_resume_breakpoint. When
3259 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
3260 (keep_going): Delete code handling
3261 remove_breakpoints_on_following_step.
3262
3263 2004-08-29 David Lecomber <david@streamline-computing.com>
3264
3265 Fix PR gdb/648
3266 * language.h (enum array_ordering): New enum.
3267 * language.h (struct language_defn): New la_array_ordering
3268 attribute.
3269 * language.c (unknown_language_defn, auto_language_defn)
3270 (local_language_defn): Ditto.
3271 * ada-lang.c (ada_language_defn): Ditto.
3272 * c-lang.c (c_language_defn, cplus_language_defn)
3273 (asm_language_defn, minimal_language_defn): Ditto.
3274 * f-lang.c (f_language_defn): Ditto.
3275 * jv-lang.c (java_language_defn): Ditto.
3276 * m2-lang.c (f_language_defn): Ditto.
3277 * objc-lang.c (objc_language_defn): Ditto.
3278 * p-lang.c (pascal_language_defn): Ditto.
3279 * scm-lang.c (scm_language_defn): Ditto.
3280 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
3281 oriented large to small in type structure.
3282 * dwarf2read.c (read_array_order): New function.
3283 (read_array_type): Use read_array_order to check row/column
3284 major ordering.
3285
3286 2004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
3287
3288 * target.c (target_resize_to_sections): Check
3289 current_target.to_sections for an old value when updating.
3290
3291 2004-08-27 Joel Brobecker <brobecker@gnat.com>
3292
3293 * procfs.c (dbx_link_bpt_addr): New static global variable.
3294 (dbx_link_shadow_contents): New static global variable.
3295 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
3296 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
3297 if we just hit it.
3298 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
3299 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
3300 from run to run.
3301 (procfs_create_inferior): Remove syssgi syscall-exit notifications
3302 after the inferior has been forked.
3303 (remove_dbx_link_breakpoint): New function.
3304 (dbx_link_addr): New function.
3305 (insert_dbx_link_bpt_in_file): New function.
3306 (insert_dbx_link_bpt_in_region): New function.
3307 (insert_dbx_link_breakpoint): New function.
3308 (proc_trace_syscalls_1): New function, extracted from
3309 proc_trace_syscalls.
3310 (proc_trace_syscalls): Replace extract code by call to
3311 proc_trace_syscalls_1.
3312 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
3313 is no longer valid.
3314
3315 2004-08-25 Jim Blandy <jimb@redhat.com>
3316
3317 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
3318
3319 2004-08-25 Andrew Cagney <cagney@gnu.org>
3320
3321 * infrun.c (struct execution_control_state): Delete field
3322 "stepping_through_sigtramp".
3323 (init_execution_control_state): Do not set same.
3324 (context_switch): Do not pass same to save_infrun_state and
3325 load_infrun_state.
3326 * gdbthread.h (struct thread_info): Delete field
3327 stepping_through_sigtramp.
3328 (save_infrun_state, load_infrun_state): Delete parameter
3329 stepping_through_sigtramp.
3330 * thread.c (load_infrun_state, save_infrun_state): Update.
3331
3332 * infrun.c: Re-indent. Move expression operators to the beginning
3333 of the line. Remove long disabled #if 0 code.
3334
3335 2004-08-24 Andrew Cagney <cagney@gnu.org>
3336
3337 * doublest.h (floatformat_ieee_quad): Rename
3338 floatformat_ia64_quad.
3339 * doublest.c (floatformat_ieee_quad): Rename
3340 floatformat_ia64_quad.
3341 (_initialize_doublest): Update.
3342
3343 2004-08-24 Jim Blandy <jimb@redhat.com>
3344
3345 * dwarf2expr.h (struct dwarf_expr_context): New members
3346 'num_pieces' and 'pieces', for returning the result of an
3347 expression that uses DW_OP_piece.
3348 (struct dwarf_expr_piece): New struct type.
3349 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
3350 pieces.
3351 (free_dwarf_expr_context): Free pieces, if any.
3352 (add_piece): New function.
3353 (execute_stack_op): Implement DW_OP_piece.
3354 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
3355 expression is a list of pieces, print an error message.
3356 (dwarf2_loc_desc_needs_frame): If the expression yields
3357 pieces, and any piece is in a register, then we need a frame.
3358
3359 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
3360 the stack until we've decided what sort of result the evaluation
3361 has produced. Use separate variables, with more specific names.
3362
3363 2004-08-23 Richard Earnshaw <rearnsha@arm.com>
3364
3365 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
3366 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
3367 (arm_netbsd_init_abi_common): Register them.
3368
3369 2004-08-22 Mark Kettenis <kettenis@gnu.org>
3370
3371 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
3372
3373 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
3374 safe_frame_unwind_memory instead of target_read_memory.
3375
3376 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
3377 Reorder includes.
3378 (fetch_register, store_register): Remove prototypes.
3379 (child_resume): Reorganize code and comments such that it is
3380 grouped a bit more logically.
3381 (attach): Explicitly compare errno against 0.
3382 (detach): Likewise. Use perror_with_name instead of
3383 print_sys_errmsg.
3384 * Makefile.in (infptrace.o): Update dependencies.
3385
3386 * ia64-linux-nat.c: Update copyright year.
3387 (fetch_debug_register, store_debug_register)
3388 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
3389 PTRACE_TYPE_ARG3.
3390 * config/ia64/nm-linux.h: Update copyright year.
3391 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
3392
3393 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
3394 from CORE_ADDR to struct frame_info *. Use
3395 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
3396 (amd64_linux_sigtramp_p): Adjust for changed signature of
3397 and64_linux_sigtramp_start
3398
3399 * gdb_ptrace.h: GNU/Linux.
3400
3401 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
3402 Remove defines.
3403
3404 * infptrace.c: Include "gdb_assert.h".
3405 (PTRACE_XFER_TYPE): Remove define.
3406 (offsetof): Only define if U_REGS_OFFSET isn't defined.
3407 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
3408 Tweak comment.
3409 (fetch_inferior_registers, store_inferior_registers): Remove
3410 redundant culry braces. Tweak comment. s/regno/regnum.
3411 * Makefile.in (infptrace.o): Update dependencies.
3412
3413 * configure.in: Change test for return type of ptrace to default
3414 to `long' instead of `int'.
3415 * configure: Regenerate.
3416
3417 2004-08-21 Mark Kettenis <kettenis@gnu.org>
3418
3419 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
3420
3421 * configure.in: Check for ttrace function.
3422 * configure, config.in: Regenerate.
3423
3424 * gdb_ptrace.h: New file.
3425 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
3426 <sys/ptrace.h>.
3427 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
3428 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
3429 (attach): Don't define PT_ATTACH.
3430 (detach): Don't define PT_DETACH.
3431 * Makefile.in (gdb_ptrace_h): New variable.
3432 (infptrace.o): Update dependencies.
3433
3434 2004-08-16 Mark Kettenis <kettenis@gnu.org>
3435
3436 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
3437 instead of `int' if not already defined.
3438 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
3439 PTRACE_TYPE_ARG3.
3440 * infptrace.c (call_ptrace): Revert change that replaced
3441 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3442
3443 2004-08-15 Mark Kettenis <kettenis@gnu.org>
3444
3445 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
3446 Remove defines.
3447
3448 * linux-nat.c (kill_inferior): Add missing third and fourth
3449 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
3450
3451 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
3452 PTRACE_TYPE_RET.
3453
3454 * proc-why.c (proc_prettyfprint_why): Fix format string.
3455
3456 * solib-osf.c (osf_current_sos): Remove unsused label.
3457
3458 * configure.in: Add <ncurses/ncurses.h> to the list of possible
3459 curses headers.
3460 * configure, config.in: Regenerate.
3461 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
3462 <ncurses/ncurses.h>.
3463
3464 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
3465 * config/nm-nbsd.h: Update copyright year.
3466 (PTRACE_ARG3_TYPE): Remove define.
3467
3468 * sparc-nat.c (fetch_inferior_registers)
3469 (store_inferior_registers, sparc_xfer_wcookie):
3470 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3471
3472 * alphabsd-nat.c (fetch_inferior_registers):
3473 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3474 PTRACE_TYPE_ARG3.
3475 * amd64bsd-nat.c (fetch_inferior_registers)
3476 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3477 PTRACE_TYPE_ARG3.
3478 * armnbsd-nat.c: Update copyright year.
3479 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
3480 (store_register, store_regs, store_fp_register, store_fp_regs):
3481 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3482 * hppabsd-nat.c (fetch_inferior_registers)
3483 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3484 PTRACE_TYPE_ARG3.
3485 * i386bsd-nat.c (fetch_inferior_registers)
3486 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
3487 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3488 * m68kbsd-nat.c (fetch_inferior_registers)
3489 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3490 PTRACE_TYPE_ARG3.
3491 * m88kbsd-nat.c (fetch_inferior_registers)
3492 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3493 PTRACE_TYPE_ARG3.
3494 * mipsnbsd-nat.c: Update copyright year.
3495 (fetch_inferior_registers, store_inferior_registers):
3496 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3497 * ns32knbsd-nat.c: Update copyright year.
3498 (fetch_inferior_registers, store_inferior_registers):
3499 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3500 * ppcnbsd-nat.c (fetch_inferior_registers):
3501 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3502 PTRACE_TYPE_ARG3.
3503 * ppcobsd-nat.c (fetch_inferior_registers):
3504 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3505 PTRACE_TYPE_ARG3.
3506 * shnbsd-nat.c: Update copyright year.
3507 (fetch_inferior_registers, store_inferior_registers):
3508 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3509 * vaxbsd-nat.c (fetch_inferior_registers)
3510 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3511 PTRACE_TYPE_ARG3.
3512
3513 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
3514 PTRACE_TYPE_ARG3.
3515 * infptrace.c (call_ptrace, child_resume, attach, detach)
3516 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
3517 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3518 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
3519 PTRACE_TYPE_ARG3.
3520
3521 2004-08-14 Mark Kettenis <kettenis@gnu.org>
3522
3523 * defs.h: Remove out-of-date comment.
3524 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
3525 [!GETENV_PROVIDED] (getenv): Remove prototype.
3526
3527 * standalone.c: Remove file.
3528 * Makefile.in (standalone.o): Remove dependency.
3529
3530 * i386-linux-nat.c (dummy_sse_values): Remove function and
3531 prototype.
3532 (i386_linux_dr_get): Fix typo in comment.
3533 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
3534
3535 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
3536
3537 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
3538 from declaration.
3539 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
3540 from definition.
3541
3542 2004-08-13 Mark Kettenis <kettenis@gnu.org>
3543
3544 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
3545 parenthesis in definition.
3546 * configure: Regenerated.
3547
3548 2004-08-12 Michael Chastain <mec.gnu@mindspring.com>
3549
3550 * PROBLEMS: Mention build/1411.
3551
3552 2004-08-09 Robert Millan <robertmh@gnu.org>
3553
3554 Committed by Nathanael Nerode.
3555 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
3556 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
3557
3558 2004-08-12 Andrew Cagney <cagney@gnu.org>
3559
3560 * NEWS: Mention fixes in GDB 6.2.1.
3561 * PROBLEMS: Remove mention of mips-irix.
3562
3563 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3564
3565 * config/powerpc/xm-aix.h: Delete.
3566 * config/powerpc/aix.mh (MH_FILE): Remove.
3567 * config/powerpc/aix432.mh (MH_FILE): Remove.
3568
3569 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3570
3571 * config/powerpc/aix.mh: Remove obsolete comment.
3572 * config/powerpc/aix432.mh: Likewise.
3573
3574 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3575
3576 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
3577
3578 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3579
3580 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
3581 this file is now empty.
3582 * config/xm-aix4.h: Remove, this file is no longer included
3583 anywhere.
3584
3585 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3586
3587 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
3588 that file is now empty.
3589 (termdef): Remove prototype, function no longer used.
3590
3591 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3592
3593 * doc/gdbint.texinfo (Host Definition): Remove documentation
3594 for USE_O_NOCTTY, no longer used.
3595 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
3596 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
3597
3598 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3599
3600 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
3601 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
3602 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
3603
3604 2004-08-11 Mark Kettenis <kettenis@gnu.org>
3605
3606 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
3607 instead of FIVE_ARG_PTRACE.
3608
3609 * inflow.c (O_NOCTTY): Define to zero if not already defined.
3610 (new_tty): Use O_NOCTTY unconditionally.
3611
3612 2004-08-10 Mark Kettenis <kettenis@gnu.org>
3613
3614 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
3615 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
3616 fflush on stdout.
3617
3618 2004-08-10 Joel Brobecker <brobecker@gnat.com>
3619
3620 * xcoff_symfile_finish: Replace last call to xmfree by call
3621 to xfree.
3622
3623 2004-08-10 Andrew Cagney <cagney@gnu.org>
3624
3625 * main.c (captured_main): Delete call to init_malloc.
3626 * defs.h (init_malloc): Delete declaration.
3627 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
3628 (init_malloc): Delete functions.
3629
3630 * defs.h (xmfree): Delete.
3631 * utils.c (xmfree): Delete function.
3632 (xfree): Inline calls to xmfree and mfree.
3633 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
3634 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
3635 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
3636 * somread.c (som_symfile_finish): Ditto.
3637 * objfiles.c (allocate_objfile, free_objfile):
3638 * nlmread.c (nlm_symfile_finish): Ditto.
3639 * hpread.c (hpread_symfile_finish): Ditto.
3640 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
3641 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
3642 * coffread.c (coff_symfile_finish): Ditto.
3643
3644 * defs.h (xmcalloc): Delete declaration.
3645 * utils.c (xmcalloc): Delete.
3646 (xcalloc): Inline calls to xmcalloc and mcalloc.
3647 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
3648 xcalloc and xfree.
3649 * symtab.c (create_demangled_names_hash): Ditto.
3650
3651 * defs.h (xmrealloc): Delete.
3652 * utils.c (xmrealloc): Delete.
3653 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
3654 * symmisc.c (extend_psymbol_list): Use xrealloc.
3655 * source.c (find_source_lines): Ditto.
3656 * hpread.c (hpread_lookup_type): Ditto.
3657 * dbxread.c (add_bincl_to_list): Ditto.
3658
3659 * utils.c (xmmalloc): Delete.
3660 (xmalloc): Inline xmmalloc and mmalloc calls.
3661 (msavestring): Use xmalloc.
3662 * defs.h (xmmalloc): Delete declaration.
3663 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
3664 xmmalloc.
3665 * symmisc.c (extend_psymbol_list): Ditto.
3666 * symfile.c (init_psymbol_list): Ditto.
3667 * source.c (find_source_lines): Ditto.
3668 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
3669 * elfread.c (elf_symtab_read): Ditto.
3670 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
3671 * coffread.c (coff_symfile_init): Ditto.
3672
3673 2004-08-10 David Carlton <carlton@bactrian.org>
3674
3675 * MAINTAINERS: Remove David Carlton from c++ testsuite
3676 maintainers.
3677
3678 2004-08-10 Jerome Guitton <guitton@gnat.com>
3679
3680 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
3681 print a line feed before the prompt.
3682
3683 2004-08-10 Mark Kettenis <kettenis@gnu.org>
3684
3685 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
3686
3687 2004-08-09 Joel Brobecker <brobecker@gnat.com>
3688
3689 General cleanup of the AIX xm include file:
3690 * config/xm-aix4.h (fd_set): Remove undefine.
3691 Remove include of <sys/select.h>.
3692 (HAVE_TERMIO): Remove define.
3693 (USG): Likewise.
3694 (NULL): Remove redefine.
3695 (alloca): Remove #pragma.
3696 (vfork): Remove define.
3697 (termdef): Remove.
3698 (SIGWINCH_HANDLER): Remove.
3699 (SIGWINCH_HANDLER_BODY): Remove.
3700
3701 2004-08-09 Mark Kettenis <kettenis@gnu.org>
3702
3703 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
3704 GDB_OSABI_OPENBSD_ELF.
3705
3706 2004-08-07 Robert Millan <robertmh@gnu.org>
3707
3708 * bsd-kvm.c: Check for nlist.h before including it.
3709
3710 2004-08-09 Mark Kettenis <kettenis@gnu.org>
3711
3712 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
3713 sigcontext' offset consistency checks for ancient BSD.
3714
3715 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
3716
3717 * configure.in: Check for <sys/types.h>. Check return and
3718 argument types of ptrace.
3719 * configure, config.in: Regenerate.
3720
3721 2004-08-09 Jim Blandy <jimb@redhat.com>
3722
3723 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
3724 rs6000_register_sim_regno): Doc fixes.
3725
3726 2004-08-08 Joel Brobecker <brobecker@gnat.com>
3727
3728 * mips-tdep.c: Include "floatformat.h".
3729 (n32n64_floatformat_always_valid): New function.
3730 (floatformat_n32n64_long_double_big): New constant.
3731 (mips_gdbarch_init): Set size and format of long double
3732 for N32 and N64 ABIs.
3733 * Makefile.in (mips-tdep.o): Update dependencies.
3734
3735 2004-08-08 Andrew Cagney <cagney@gnu.org>
3736
3737 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
3738 print. Improve script's error messages.
3739 * gdbarch.h: Re-generate.
3740
3741 * gdbarch.sh (pformat): New function.
3742 (float_format, double_format, long_double_format): List with bit
3743 members. Use pformat when printing.
3744 * gdbarch.c, gdbarch.h: Re-generate.
3745
3746 2004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
3747
3748 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
3749 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
3750 (ppcnbsd_supply_pcb): New function.
3751 (_initialize_ppcnbsd_nat): New prototype and function.
3752 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
3753 (LOADLIBES): New variable.
3754 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
3755
3756 2004-08-08 Andrew Cagney <cagney@gnu.org>
3757
3758 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
3759 (builtin_type_ieee_double, builtin_type_ia64_quad)
3760 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
3761 BE/LE floating-point types.
3762 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
3763 (builtin_type_ieee_double, builtin_type_ia64_quad)
3764 (builtin_type_ia64_spill): Declare.
3765 * doublest.c (_initialize_doublest, floatformat_ieee_single)
3766 (floatformat_ieee_double, floatformat_arm_ext)
3767 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
3768 of LE/BE floatformats.
3769 * doublest.h: (struct floatformat, floatformat_ieee_single)
3770 (floatformat_ieee_double, floatformat_arm_ext)
3771 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
3772
3773 2004-08-08 Mark Kettenis <kettenis@gnu.org>
3774
3775 * i386gnu-nat.c (gnu_store_registers): Fix typo.
3776
3777 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
3778 instead of regcache_raw_supply when storing the registers.
3779
3780 * i386gnu-nat.c: Update copyright year.
3781 (gnu_store_registers): Don't use deprecated_registers and
3782 deprecated_registers_valid. Use regcache_valid_p and
3783 regcache_raw_supply instead.
3784
3785 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
3786 frame_pc_unwind.
3787
3788 * procfs.c (procfs_pid_to_str): Remove redundant and unused
3789 variables. Incapitalized "process".
3790
3791 * configure.in: Add cursesX to the list of possible curses libs.
3792 Add cursesX.h to the list of possible curses headers.
3793 * configure, config.in: Regenerate.
3794
3795 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
3796
3797 * configure.in: Test for struct lwp in <sys/lwp.h>.
3798 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
3799 the offset of l_addr in struct lwp.
3800
3801 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
3802
3803 * bsd-kvm.c: Include "gdbcore.h"
3804 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
3805
3806 2004-08-07 Andrew Cagney <cagney@gnu.org>
3807
3808 * gdbtypes.c (build_flt, build_complex): New functions.
3809 (gdbtypes_post_init): Use.
3810
3811 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
3812
3813 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
3814 through to builtin_type_uint128.
3815
3816 * c-exp.y: Use builtin_type function to obtain builtin types.
3817
3818 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
3819 builtin_uint128.
3820 * gdbtypes.c (gdbtypes_post_init): Update.
3821 (build_gdbtypes): Move initialization of builtin_type_int0
3822 through to builtin_type_uint128 from here ...
3823 (_initialize_gdbtypes): ... to here.
3824 * d10v-tdep.c (d10v_register_type): Update.
3825
3826 * doublest.c: Update copyright.
3827 (floatformat_from_length): Call error when floatformat is NULL.
3828 (extract_floating_by_length): Remove NULL fmt check.
3829 (store_floating_by_length): Ditto.
3830
3831 2004-08-07 Andrew Cagney <cagney@gnu.org>
3832
3833 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
3834 that the register is valid.
3835
3836 2004-08-05 Mark Kettenis <kettenis@chello.nl>
3837
3838 * i386-linux-tdep.c (i386_linux_sigtramp_start)
3839 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
3840 struct frame_info *. Use safe_frame_unwind_memory instead of
3841 deprecated_read_memory_nobpt.
3842 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
3843 changed signature of i386_linux_sigtramp_start and
3844 i386_linux_rt_sigtramp_start.
3845
3846 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
3847 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
3848 instead of deprecated_read_memory_nobpt.
3849 (i386nbsd_sigtramp_p): Adjust for changed signature of
3850 i386nbsd_sigtramp_offset.
3851
3852 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
3853 safe_frame_unwind_memory instead of target_read_memory.
3854
3855 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
3856 !NO_SYS_FILE.
3857 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
3858 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
3859 (_initialize_kernel_u_addr): Remove prototype and function.
3860 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
3861 !NO_SYS_FILE.
3862 * xcoffread.c: Likewise.
3863
3864 2004-08-06 Mark Kettenis <kettenis@gnu.org>
3865
3866 * vax-nat.c: New file.
3867 * vaxbsd-nat.c: Tweak comment.
3868 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
3869 vaxnbsd-tdep.c.
3870 (vax-nat.o): New dependency.
3871 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
3872 (vax-*-ultrix2*): Remove.
3873 * config/vax/vax.mh: New file.
3874 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
3875 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
3876 (vax_register_u_addr): New prototype.
3877 (REGISTER_U_ADDR): Define using vax_register_u_addr.
3878 * config/vax/vaxult2.mh: Remove file.
3879 * config/vax/vaxult.mh: Remove file.
3880 * config/vax/vaxbsd.mh: Remove file.
3881 * config/vax/vax.mt (TM_FILE): Remove.
3882 * config/vax/tm-vaxbsd.h: Remove file.
3883
3884 2004-08-06 Joel Brobecker <brobecker@gnat.com>
3885
3886 * aix-thread.c (get_signaled_thread): New function.
3887 (iter_trap): Delete, no longer used.
3888 (iter_tid): New function.
3889 (pd_update): Find the thread that received the SIGTRAP signal
3890 by first locating the kernel thread, and then finding its
3891 associated thread.
3892
3893 2004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
3894
3895 * lin-lwp.c (child_wait): Continue inferior after processing
3896 PTRACE_EVENT_CLONE event.
3897
3898 2004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
3899
3900 * MAINTAINERS: Add self to Write-After-Approval.
3901
3902 2004-08-05 Jeff Johnston <jjohnstn@redhat.com>
3903
3904 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
3905 libunwind-xxxx.so" where xxxx is UNW_TARGET.
3906
3907 2004-08-05 Andrew Cagney <cagney@gnu.org>
3908
3909 * config/xm-sysv4.h: Delete file.
3910 * config/mips/xm-irix5.h: Delete file.
3911 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
3912 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
3913 * config/ia64/xm-aix.h: Delete file.
3914 * config/ia64/aix.mh (XM_FILE): Delete.
3915 * config/pa/xm-hppah.h: Delete file.
3916 * config/pa/hpux11w.mh (XM_FILE): Delete.
3917 * config/pa/hpux11.mh (XM_FILE): Delete.
3918 * config/pa/hpux1020.mh (XM_FILE): Delete.
3919 * config/pa/hppahpux.mh (XM_FILE): Delete.
3920
3921 * config/alpha/xm-alphalinux.h: Delete file.
3922 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
3923 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
3924 * config/alpha/xm-alphaosf.h: Delete file.
3925 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
3926 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
3927 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
3928 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
3929
3930 * config/i386/xm-i386v.h: Delete file.
3931 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
3932 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
3933 * config/i386/xm-i386sco.h: Delete file.
3934 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
3935 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
3936 * config/i386/xm-i386v4.h: Delete file.
3937 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
3938 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
3939 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
3940 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
3941
3942 * config/vax/xm-vax.h: Delete file.
3943 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
3944 * config/vax/xm-vaxult2.h: Delete file.
3945 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
3946 * config/vax/vaxult2.mh (XM_FILE): Delete.
3947 * config/vax/xm-vaxult.h: Delete file.
3948 * config/vax/vaxult.mh (XM_FILE): Delete.
3949 * config/vax/xm-vaxbsd.h: Delete file.
3950 * config/vax/vaxbsd.mh (XM_FILE): Delete.
3951
3952 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
3953 * gdbarch.h, gdbarch.c: Re-generate.
3954 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
3955 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
3956 * frame.h: Delete deprecated_read_fp from comments.
3957 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
3958 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
3959
3960 2004-08-04 Mark Kettenis <kettenis@gnu.org>
3961
3962 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
3963 trampoline in OpenBSD 3.5-current.
3964
3965 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
3966 SSE registers.
3967
3968 * Makefile.in: Remove embedded page breaks.
3969
3970 2004-08-04 Jim Blandy <jimb@redhat.com>
3971
3972 * regcache.c (regcache_raw_read): Assert that, after calling
3973 target_fetch_registers, the register we're reading is cached.
3974
3975 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
3976 a call to 'internal_error', with a more helpful error message.
3977 * rs6000-tdep.c (e500_pseudo_register_read,
3978 e500_pseudo_register_write, rs6000_store_return_value): Same.
3979
3980 2004-08-04 Andrew Cagney <cagney@gnu.org>
3981
3982 * Makefile.in: Update dependencies.
3983
3984 2004-08-04 Jim Blandy <jimb@redhat.com>
3985
3986 Change the layout of the PowerPC E500 raw register cache to allow
3987 the lower 32-bit halves of the GPRS to be their own raw registers,
3988 not pseudoregisters.
3989 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
3990 add ppc_ev0_upper_regnum flag.
3991 * rs6000-tdep.c: #include "reggroups.h".
3992 (spe_register_p): Recognize the ev upper half registers as SPE
3993 registers.
3994 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
3995 registers.
3996 (e500_move_ev_register): New function.
3997 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
3998 vector registers are the pseudo-registers now, formed by splicing
3999 together the gprs and the upper-half registers.
4000 (e500_register_reggroup_p): New function.
4001 (P): Macro deleted.
4002 (P8, A4): New macro.
4003 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
4004 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
4005 macros.
4006 (registers_e500): Rearrange register set so that the raw register
4007 set contains 32-bit GPRs and upper-half registers, and the SPE
4008 vector registers become pseudo-registers.
4009 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
4010 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
4011 register numbers are now the same for the E500 as they are for
4012 other PowerPC variants. Register e500_register_reggroup_p as the
4013 register group function for the E500.
4014 * Makefile.in (rs6000-tdep.o): Update dependencies.
4015
4016 Adapt PPC E500 native support to the new raw regcache layout.
4017 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
4018 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
4019 (fetch_spe_register, store_spe_register): Handle fetching/storing
4020 all the SPE registers at once, if regno == -1. These now take
4021 over the job of fetch_spe_registers and store_spe_registers.
4022 (fetch_spe_registers, store_spe_registers): Deleted.
4023 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
4024 unconditionally; they're always raw. Fetch/store SPE upper half
4025 registers, if present, instead of ev registers.
4026 (fetch_register, store_register): Remove sanity checks: gprs are
4027 never pseudo-registers now, so we never need to even mention any
4028 registers that are ever pseudoregisters.
4029
4030 Use a fixed register numbering when communicating with the PowerPC
4031 simulator.
4032 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
4033 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
4034 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
4035 New functions.
4036 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
4037 init_sim_regno_table.
4038 * Makefile.in (gdb_sim_ppc_h): New variable.
4039 (rs6000-tdep.o): Update dependencies.
4040
4041 2004-08-02 Andrew Cagney <cagney@gnu.org>
4042
4043 * cris-tdep.c (cris_register_size): Restore function, still used
4044 locally.
4045
4046 * gdbarch.sh (deprecated_target_read_fp)
4047 (deprecated_frame_locals_address, deprecated_frame_args_address)
4048 (deprecated_frame_chain_valid, deprecated_frame_chain)
4049 (deprecated_init_extra_frame_info, deprecated_pop_frame)
4050 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
4051 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
4052 * gdbarch.h, gdbarch.c: Re-generate.
4053 * regcache.c (deprecated_read_fp): Do not call
4054 DEPRECATED_TARGET_READ_FP_P.
4055 * infcmd.c (default_print_registers_info): Do not call
4056 DEPRECATED_DO_REGISTERS_INFO.
4057 * frame-base.c (default_frame_locals_address): Do not call
4058 DEPRECATED_FRAME_LOCALS_ADDRESS.
4059 (default_frame_args_address): Do not call
4060 DEPRECATED_FRAME_ARGS_ADDRESS.
4061
4062 * gdbarch.sh (deprecated_register_raw_size)
4063 (deprecated_register_virtual_size:int): Delete.
4064 * gdbarch.h, gdbarch.c: Re-generate.
4065 * cris-tdep.c (cris_register_size): Delete.
4066 (cris_gdbarch_init): Update.
4067 * alpha-tdep.c (alpha_register_raw_size)
4068 (alpha_register_virtual_size): Delete.
4069 (alpha_gdbarch_init): Update.
4070
4071 * gdbarch.sh (deprecated_register_virtual_type)
4072 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
4073 (deprecated_dummy_write_sp): Delete.
4074 * gdbarch.h, gdbarch.c: Re-generate.
4075
4076 * gdbarch.sh (deprecated_register_bytes): Delete.
4077 * gdbarch.h, gdbarch.c: Re-generate.
4078 * regcache.c (deprecated_register_bytes): New function.
4079 * regcache.h (deprecated_register_bytes): Declare.
4080 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4081 * v850-tdep.c (v850_gdbarch_init): Update.
4082 * sh64-tdep.c (sh64_gdbarch_init): Update.
4083 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
4084 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4085 * mcore-tdep.c (mcore_gdbarch_init): Update.
4086 * cris-tdep.c (cris_gdbarch_init): Update.
4087 * arm-tdep.c (arm_gdbarch_init): Update.
4088 * remote.c (init_remote_state): Update.
4089 * remote-vx.c (vx_prepare_to_store): Update.
4090 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
4091 * irix5-nat.c (fetch_core_registers): Update.
4092 * cris-tdep.c (cris_register_bytes_ok): Update.
4093 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
4094
4095 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
4096 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
4097 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
4098 (mips_insn16_frame_base_address, mips_insn16_frame_base)
4099 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
4100 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
4101 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
4102 (mips_insn32_frame_base_address, mips_insn32_frame_base)
4103 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
4104 with mips_insn16 and mips_insn32.
4105
4106 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
4107 * rs6000-tdep.c (rs6000_push_dummy_call)
4108 (rs6000_extract_return_value): Use register_size.
4109 * xstormy16-tdep.c (xstormy16_get_saved_register)
4110 (xstormy16_extract_return_value): Ditto.
4111 * valops.c (value_assign): Ditto.
4112 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
4113 * v850-tdep.c (v850_extract_return_value): Ditto.
4114 * tracepoint.c (collect_symbol): Ditto.
4115 * target.c (debug_print_register): Ditto.
4116 * stack.c (frame_info): Ditto.
4117 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
4118 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
4119 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
4120 (store_register_using_P): Ditto.
4121 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
4122 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
4123 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
4124 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
4125 * regcache.c (deprecated_read_register_bytes)
4126 (deprecated_write_register_bytes, read_register)
4127 (write_register): Ditto.
4128 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
4129 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
4130 * monitor.c (monitor_supply_register, monitor_fetch_register)
4131 (monitor_store_register): Ditto.
4132 * mn10300-tdep.c (mn10300_pop_frame_regular)
4133 (mn10300_print_register): Ditto.
4134 * mipsv4-nat.c (fill_fpregset): Ditto.
4135 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
4136 (mips64_fill_fpregset): Ditto.
4137 * mi/mi-main.c (register_changed_p, get_register)
4138 (mi_cmd_data_write_register_values): Ditto.
4139 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
4140 * irix5-nat.c (fill_gregset, fetch_core_registers):
4141 * infrun.c (write_inferior_status_register): Ditto.
4142 * infptrace.c (fetch_register, store_register): Ditto.
4143 * infcmd.c (default_print_registers_info): Ditto.
4144 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
4145 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
4146 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
4147 * hpux-thread.c (hpux_thread_fetch_registers)
4148 (hpux_thread_store_registers): Ditto.
4149 * hppah-nat.c (store_inferior_registers, fetch_register):
4150 * findvar.c (value_from_register): Ditto.
4151 * dve3900-rom.c (fetch_bitmapped_register):
4152 * cris-tdep.c (cris_gdbarch_init): Ditto.
4153 * alpha-tdep.h: Ditto.
4154 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
4155
4156 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
4157 DEPRECATED_REGISTER_RAW_SIZE from comments.
4158 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
4159 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
4160 DEPRECATED_REGISTER_RAW_SIZE.
4161 * findvar.c (value_of_register): Simplify by assuming that the
4162 registers raw and virtual sizes are identical.
4163 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
4164 comment.
4165 * arch-utils.c (generic_register_size): Simplify by assuming
4166 register_type.
4167
4168 * regcache.c (legacy_read_register_gen, real_register)
4169 (legacy_write_register_gen): Delete, not used.
4170
4171 * regcache.c (struct regcache_descr): Delete legacy_p.
4172 (init_legacy_regcache_descr): Delete function.
4173 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
4174 Do not use deprecated register functions.
4175 (regcache_raw_read, deprecated_write_register_gen):
4176 (deprecated_read_register_gen, regcache_raw_write): Delete code
4177 predicated on legacy_p.
4178 (register_size): Delete check against register raw size.
4179
4180 * cris-tdep.c (cris_register_type): Replace
4181 cris_register_virtual_type.
4182 (cris_gdbarch_init): Update, set register_type.
4183
4184 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
4185 * gdbarch.h, gdbarch.c: Re-generate.
4186 * arm-tdep.c (arm_frameless_function_invocation): Delete.
4187 (arm_gdbarch_init) Do not set frameless function invocation.
4188 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
4189 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
4190 * frv-tdep.c (frv_frameless_function_invocation): Delete.
4191 (frv_gdbarch_init): Do not set frameless function invocation.
4192 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
4193 * sh-tdep.c (sh_gdbarch_init): Ditto.
4194 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
4195 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4196 * avr-tdep.c (avr_gdbarch_init): Ditto.
4197
4198 * blockframe.c (legacy_frame_chain_valid): Delete function.
4199
4200 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
4201 and pc. Update comments.
4202 (pc_in_dummy_frame): Delete function.
4203 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
4204 use the "id".
4205 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
4206 call_hi, top and pc, use the id.
4207 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
4208
4209 * dummy-frame.c: Include "gdb_string.h".
4210 (generic_save_call_dummy_addr, generic_push_dummy_frame)
4211 (generic_save_dummy_frame_tos): Delete.
4212 (dummy_frame_push): New function, replaces above.
4213 * dummy-frame.h: Update copyright.
4214 (dummy_frame_push): Declare.
4215 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
4216 (generic_save_call_dummy_addr): Delete declarations.
4217 * infcall.c: Include "dummy-frame.h".
4218 (call_function_by_hand): Add locals caller_regcache,
4219 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
4220 with call to frame_save_as_regcache plus cleanup. Delete calls to
4221 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
4222 Move clear_proceed_status to just before the resume, add call to
4223 dummy_frame_push (discard cleanup).
4224 * Makefile.in (infcall.o): Add $(dummy_frame_h).
4225 (dummy-frame.o): Add $(gdb_string_h).
4226
4227 2004-08-01 Andrew Cagney <cagney@gnu.org>
4228
4229 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
4230 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
4231 * dummy-frame.c (find_dummy_frame): Delete.
4232 (struct dummy_frame_cache, dummy_frame_sniffer)
4233 (dummy_frame_prev_register, dummy_frame_this_id)
4234 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
4235 frame unwinder using a dummy_frame_cache.
4236
4237 2004-08-01 Andrew Cagney <cagney@gnu.org>
4238
4239 * frame.h (frame_save_as_regcache): Declare.
4240 * frame.c (frame_save_as_regcache): New function.
4241 (do_frame_read_register): Replace do_frame_unwind_register.
4242 (frame_pop): Use frame_save_as_regcache.
4243 * dummy-frame.c (generic_push_dummy_frame): Use
4244 frame_save_as_regcache.
4245
4246 2004-08-01 Joel Brobecker <brobecker@gnat.com>
4247
4248 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
4249 file as included until we record the first line in the linetable.
4250
4251 2004-08-01 Andrew Cagney <cagney@gnu.org>
4252
4253 * frame.h (deprecated_pop_dummy_frame)
4254 (deprecated_read_register_dummy)
4255 (deprecated_generic_find_dummy_frame): Delete.
4256 * dummy-frame.c (deprecated_generic_find_dummy_frame)
4257 (deprecated_read_register_dummy)
4258 (deprecated_find_dummy_frame_regcache)
4259 (discard_innermost_dummy)
4260 (deprecated_pop_dummy_frame): Delete.
4261 (dummy_frame_this_id): Simplify.
4262 (struct dummy_frame): Delete "fp" and "sp".
4263 (find_dummy_frame): Simplify.
4264 (generic_push_dummy_frame): Do not set "fp" or "sp".
4265 (fprint_dummy_frames): Do not print "fp" and "sp"
4266
4267 2004-08-01 Mark Kettenis <kettenis@gnu.org>
4268
4269 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
4270 (struct i386_insn): New structure.
4271 (i386_match_insn): New function.
4272 (i386_frame_setup_skip_insns): New variable.
4273 (i386_analyze_frame_setup): Change to use i386_match_insn and the
4274 array i386_frame_setup_insns of instructions that should be
4275 skipped inside the frame setup sequence.
4276
4277 2004-08-01 Andrew Cagney <cagney@gnu.org>
4278
4279 * frame.h (deprecated_frame_xmalloc_with_cleanup)
4280 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
4281 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
4282 * stack.c (frame_info): Delete references to
4283 DEPRECATED_FRAME_INIT_SAVED_REGS and
4284 deprecated_get_frame_saved_regs.
4285 * frame.c (struct frame_info): Delete saved_regs and extra_info.
4286 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
4287 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
4288 (frame_unwind_register_signed)
4289 (frame_unwind_register_unsigned)
4290 (frame_unwind_unsigned_register): Use register_size.
4291 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
4292 (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
4296 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
4297 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
4298 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
4299 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
4300
4301 * infcall.c (call_function_by_hand): Do not use
4302 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
4303 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
4304 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
4305 DEPRECATED_STACK_ALIGN.
4306
4307 2004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
4308
4309 Committed by Andrew Cagney.
4310 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
4311
4312 2004-08-01 Andrew Cagney <cagney@gnu.org>
4313
4314 * mips-tdep.c (mips16_frame_cache)
4315 (mips16_frame_this_id, mips16_frame_prev_register)
4316 (mips16_frame_unwind, mips16_frame_sniffer)
4317 (mips16_frame_base_address, mips16_frame_base)
4318 (mips16_frame_base_sniffer, mips32_frame_cache)
4319 (mips32_frame_this_id, mips32_frame_prev_register)
4320 (mips32_frame_unwind, mips32_frame_sniffer)
4321 (mips32_frame_base_address, mips32_frame_base)
4322 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
4323 separate heuristic mips16 and mips32 unwinders.
4324 (mips_stub_frame_cache, mips_stub_frame_this_id)
4325 (mips_stub_frame_prev_register)
4326 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
4327 (mips_stub_frame_base_address, mips_stub_frame_base)
4328 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
4329 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
4330 match true mdebug frames.
4331 (non_heuristic_proc_desc): Add forward declaration.
4332
4333 2004-08-01 Andrew Cagney <cagney@gnu.org>
4334
4335 * config/mips/tm-irix6.h: Delete file.
4336 * config/mips/tm-irix5.h: Delete file.
4337 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
4338 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
4339
4340 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
4341 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
4342 * config/nm-gnu.h (NO_CORE_OPS): Delete.
4343 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
4344 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
4345 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
4346 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
4347 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
4348 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
4349 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
4350 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
4351 (TARGET_SIGNAL_RAW_VALUES): Delete.
4352 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
4353 Delete.
4354 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
4355 (TARGET_HW_WATCH_LIMIT): Delete.
4356 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
4357 * minimon.h: Delete file.
4358
4359 * trad-frame.c (trad_frame_get_this_base)
4360 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
4361 functions.
4362 * trad-frame.h (trad_frame_set_this_base)
4363 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
4364
4365 2004-07-31 Andrew Cagney <cagney@gnu.org>
4366
4367 * trad-frame.c (trad_frame_get_prev_register): Rename
4368 trad_frame_get_prev_register.
4369 * vax-tdep.c (vax_frame_prev_register): Update.
4370 * trad-frame.h: Update.
4371 * trad-frame.c (trad_frame_get_register): Update.
4372 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
4373 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
4374 Update.
4375 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
4376 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
4377 Update.
4378 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
4379 Update.
4380 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
4381 Update.
4382 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
4383 Update.
4384 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
4385 Update.
4386 * s390-tdep.c (s390_frame_prev_register)
4387 (s390_stub_frame_prev_register)
4388 (s390_sigtramp_frame_prev_register): Update.
4389 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
4390 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
4391 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
4392 * m88k-tdep.c (m88k_frame_prev_register)
4393 * m68hc11-tdep.c (m68hc11_frame_prev_register)
4394 * m32r-tdep.c (m32r_frame_prev_register): Update.
4395 * hppa-tdep.c (hppa_frame_prev_register_helper)
4396 * frv-tdep.c (frv_frame_prev_register): Update.
4397 * d10v-tdep.c (d10v_frame_prev_register): Update.
4398 * cris-tdep.c (cris_frame_prev_register): Update.
4399 * avr-tdep.c (avr_frame_prev_register): Update.
4400 * arm-tdep.c (arm_prologue_prev_register)
4401 (arm_sigtramp_prev_register): Update.
4402
4403 2004-07-31 Andrew Cagney <cagney@gnu.org>
4404
4405 * frame.h (legacy_saved_regs_unwind)
4406 (legacy_frame_chain_valid, legacy_frame_p)
4407 (enum frame_type): Delete UNKNOWN_FRAME.
4408 * dummy-frame.c (dummy_frame_this_id): Simplify.
4409 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
4410 * frame.c (struct frame_info): Delete the field "type".
4411 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
4412 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
4413 (legacy_saved_regs_unwind, legacy_frame_p)
4414 (frame_type_from_pc): Delete.
4415 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
4416 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
4417
4418 2004-07-31 Mark Kettenis <kettenis@gnu.org>
4419
4420 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
4421 indentation.
4422
4423 * mips-nat.c: Remove file.
4424 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
4425 (mips-nat.o): Remove dependency.
4426
4427 * infptrace.c: Update copyright year.
4428 (fetch_register): Pass NULL in regcache_raw_supply call instead of
4429 explicitly setting the buffer to all zeroes.
4430
4431 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
4432 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
4433
4434 2004-07-30 Andrew Cagney <cagney@gnu.org>
4435
4436 * GDB 6.2 released from gdb_6_2-branch.
4437
4438 2004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
4439
4440 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
4441
4442 * exec.c (exec_file_attach):
4443 * nto-tdep.c (nto_find_and_open_solib):
4444 * pa64solib.c (pa64_solib_sizeof_symbol_table):
4445 * solib.c (solib_open):
4446 * somsolib.c (som_solib_sizeof_symbol_table):
4447 * source.c (is_regular_file, openp, open_source_file):
4448 * symfile.c (symfile_bfd_open):
4449 * wince.c (upload_to_device): Differentiate between the search for
4450 binary and source files.
4451
4452 2004-07-30 Andrew Cagney <cagney@gnu.org>
4453
4454 * complaints.c (_initialize_complaints): Pass NULL to
4455 add_setshow_zinteger_cmd for help_doc.
4456 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
4457
4458 2004-07-30 Andrew Cagney <cagney@gnu.org>
4459
4460 Fix PR i18n/761.
4461 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
4462 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
4463 $(PACKAGE).pot and update-po.
4464 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
4465 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
4466 (update-po): New rules.
4467 (localedir): Define using autoconf.
4468 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
4469 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
4470 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
4471 * configure.in: Generate CATALOGS and LINGUAS from contents of
4472 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
4473 * configure: Re-generate.
4474 * po/gdbtext: New file
4475
4476 2004-07-30 Jerome Guitton <guitton@gnat.com>
4477
4478 * MAINTAINERS: Reorder Write After Approval list in alphabetical
4479 order.
4480
4481 2004-07-30 David Lecomber <dsl@sources.redhat.com>
4482
4483 * dwarf2read.c (read_file_scope): Set producer if attribute
4484 present.
4485 (struct dwarf2_cu): Added new member producer.
4486
4487 2004-07-30 Jerome Guitton <guitton@gnat.com>
4488
4489 * inflow.c (kill_command): release file handles in BFD.
4490 * exec.c (exec_file_attach): Ditto.
4491 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
4492
4493 2004-07-29 Andrew Cagney <cagney@gnu.org>
4494
4495 * PROBLEMS (mips-irix): Note that it is broken.
4496
4497 2004-07-29 Andrew Cagney <cagney@gnu.org>
4498
4499 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
4500 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
4501
4502 * config/xm-nbsd.h: Delete file.
4503 * config/arm/xm-nbsd.h: Delete file.
4504 * config/i386/xm-nbsd.h: Delete file.
4505 * config/ns32k/xm-nbsd.h: Delete file.
4506 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
4507 * config/i386/nbsdelf.mh (XM_FILE): Delete.
4508 * config/i386/nbsdaout.mh (XM_FILE): Delete.
4509 * config/arm/nbsdelf.mh (XM_FILE): Delete.
4510 * config/arm/nbsdaout.mh (XM_FILE): Delete.
4511
4512 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
4513 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
4514 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
4515 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
4516 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
4517 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
4518
4519 * config/powerpc/xm-linux.h: Delete empty file.
4520 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
4521 * config/powerpc/linux.mh (XM_FILE): Delete.
4522 * config/m68k/xm-linux.h: Delete empty file.
4523 * config/m68k/linux.mh (XM_FILE): Delete.
4524 * config/ia64/xm-linux.h: Delete empty file.
4525 * config/ia64/linux.mh (XM_FILE): Delete.
4526 * config/arm/xm-linux.h: Delete empty file.
4527 * config/arm/linux.mh (XM_FILE): Delete.
4528
4529 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4530 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
4531 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4532 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
4533 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4534 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
4535 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4536 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
4537
4538 * config/m68k/xm-m68k.h: Delete file.
4539 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
4540 copyright.
4541 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
4542 * config/pa/xm-linux.h: Delete empty file.
4543 * config/pa/linux.mh (XM_FILE): Delete.
4544 * config/i386/xm-i386.h: Delete empty file.
4545 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
4546 "i386/xm-i386.h".
4547 * config/i386/obsdaout.mh (XM_FILE): Delete.
4548 * config/i386/obsd64.mh (XM_FILE): Delete.
4549 * config/i386/fbsd64.mh (XM_FILE): Delete.
4550 * config/i386/nto.mh (XM_FILE): Delete.
4551 * config/i386/obsd.mh (XM_FILE): Delete.
4552 * config/i386/linux64.mh (XM_FILE): Delete.
4553 * config/i386/linux.mh (XM_FILE): Delete.
4554 * config/i386/i386sol2.mh (XM_FILE): Delete.
4555 * config/i386/i386gnu.mh (XM_FILE): Delete.
4556 * config/i386/fbsd.mh (XM_FILE): Delete.
4557 * config/i386/nbsd64.mh (XM_FILE): Delete.
4558
4559 2004-07-29 Andrew Cagney <cagney@gnu.org>
4560
4561 * config/pa/xm-linux.h: Do not include "floatformat.h".
4562 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4563 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
4564 * config/i386/xm-i386.h: Do not include "floatformat.h".
4565 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4566 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
4567 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4568 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
4569 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
4570 GDB_HOST_LONG_DOUBLE_FORMAT instead.
4571 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
4572 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
4573 * configure, config.in: Regenerate.
4574 * configure.host (gdb_host_float_format, gdb_host_double_format)
4575 (gdb_host_long_double_format): Set according to the host.
4576
4577 2004-07-29 Andrew Cagney <cagney@gnu.org>
4578
4579 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
4580
4581 2004-07-28 Andrew Cagney <cagney@gnu.org>
4582
4583 * PROBLEMS: Mention threads/1650.
4584 * NEWS: Mention the NPTL fix.
4585
4586 2004-07-28 Andrew Cagney <cagney@gnu.org>
4587
4588 * cli/cli-decode.c (add_setshow_cmd): Delete function.
4589 (add_setshow_cmd_full): Make static.
4590 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
4591 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
4592 * cli/cli-decode.c (add_setshow_filename_cmd)
4593 (add_setshow_string_cmd): New functions.
4594 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
4595 * mips-tdep.c (_initialize_mips_tdep): Update.
4596 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
4597 * cli/cli-logging.c (_initialize_cli_logging): Update.
4598 * complaints.c (_initialize_complaints): Update.
4599 * remote.c (_initialize_remote): Update.
4600
4601 2004-07-28 Andrew Cagney <cagney@gnu.org>
4602
4603 * cli/cli-decode.c (add_setshow_zinteger_cmd)
4604 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
4605 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
4606 print parameters. Make string parameters constant.
4607 * command.h: Update. Update copyright.
4608 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
4609 * observer.c (_initialize_observer): Ditto.
4610 * frame.c (_initialize_frame): Ditto.
4611 * complaints.c (_initialize_complaints): Ditto.
4612 * maint.c (_initialize_maint_cmds): Ditto.
4613 * target.c (initialize_targets): Ditto.
4614 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
4615 * infcall.c (_initialize_infcall): Ditto.
4616 * arm-tdep.c (_initialize_arm_tdep): Ditto.
4617 * m32r-rom.c (_initialize_m32r_rom): Ditto.
4618 * remote-rdi.c (_initialize_remote_rdi): Ditto.
4619 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
4620 * mips-tdep.c (_initialize_mips_tdep): Ditto.
4621
4622 2004-07-28 Andrew Cagney <cagney@gnu.org>
4623
4624 * gdbtypes.c (lookup_primitive_typename): Delete function.
4625 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
4626 * ada-lex.l: Use language_lookup_primitive_type_by_name.
4627 * gdbtypes.c (lookup_typename): Ditto.
4628 * f-exp.y (yylex): Ditto.
4629 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
4630
4631 * scm-lang.c (c_builtin_types): Delete extern declaration.
4632 (scm_language_defn): Replace
4633 string_char_type and primitive_type_vector with
4634 la_language_arch_info.
4635 * jv-lang.c (java_language_defn): Replace
4636 string_char_type and primitive_type_vector with
4637 la_language_arch_info.
4638 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
4639 c_builtin_types in comment.
4640 * c-lang.h (struct language_arch_info): Declare opaque.
4641 (c_language_arch_info): Declare.
4642 (c_builtin_types): Delete declaration.
4643 * c-lang.c (c_language_arch_info): Set string_char_type to
4644 builtin_char, not builtin_true_char. Make global.
4645 (c_builtin_types): Delete array.
4646 (asm_language_defn, minimal_language_defn): Replace
4647 string_char_type and primitive_type_vector with
4648 la_language_arch_info.
4649
4650 2004-07-28 Andrew Cagney <cagney@gnu.org>
4651
4652 * gdbtypes.h (struct builtin_type): Rename true_char to
4653 builtin_true_char.
4654 * gdbtypes.c (gdbtypes_post_init): Update.
4655 * c-lang.c (arch_info): New function.
4656 (enum c_primitive_types): New enum.
4657 (c_language_defn): Instead of string_char_type and
4658 primitive_type_vector set la_language_arch_info.
4659
4660 2004-07-28 Andrew Cagney <cagney@gnu.org>
4661
4662 * language.h (struct language_arch_info): Fix typo
4663 s/primative/primitive/.
4664 * gdbtypes.c (lookup_primitive_typename): Ditto.
4665 * language.c (language_lookup_primitive_type_by_name)
4666 (unknown_language_arch_info): Ditto.
4667
4668 2004-07-27 Andrew Cagney <cagney@gnu.org>
4669
4670 * defs.h (enum language): Add nr_languages.
4671 * language.h (struct language_arch_info): Define.
4672 (struct language_defn): Add la_language_arch_info.
4673 (language_lookup_primative_type_by_name): Declare.
4674 (language_string_char_type): Declare.
4675 * language.c (_initialize_language, language_gdbarch_post_init)
4676 (struct language_gdbarch, language_gdbarch_data): Implement
4677 per-architecture language information.
4678 (unknown_language_arch_info, language_string_char_type)
4679 (language_lookup_primative_type_by_name): New functions.
4680 (unknown_language_defn, auto_language_defn)
4681 (local_language_defn): Set la_language_arch_info to
4682 unknown_language_arch_info.
4683 (unknown_builtin_types): Delete.
4684 * gdbtypes.c (lookup_primitive_typename): Use
4685 language_lookup_primative_type_by_name.
4686 (create_string_type): Use language_string_char_type.
4687 * values.c (value_from_string): Use language_string_char_type.
4688 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
4689 * p-lang.c (pascal_language_defn): Ditto.
4690 * m2-lang.c (m2_language_defn): Ditto.
4691 * jv-lang.c (java_language_defn): Ditto.
4692 * objc-lang.c (objc_language_defn): Ditto.
4693 * f-lang.c (f_language_defn): Ditto.
4694 * c-lang.c (c_language_defn, cplus_language_defn)
4695 (asm_language_defn, minimal_language_defn): Ditto.
4696
4697 2004-07-27 Andrew Cagney <cagney@gnu.org>
4698
4699 * gdbtypes.h (struct builtin_type): Declare.
4700 (builtin_type): Declare.
4701 * d10v-tdep.c (d10v_register_type): Use builtin_type.
4702 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
4703 (gdbtypes_post_init): New function.
4704 (builtin_type): New function.
4705
4706 2004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
4707
4708 * remote-m32r-sdi.c: Fix breakpoint bug.
4709 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
4710 recv_char_data, recv_long_data): New functions to replace communication
4711 sequences.
4712
4713 2004-07-26 Michael Chastain <mec.gnu@mindspring.com>
4714
4715 Document PR threads/1650.
4716 * PROBLEMS (Threads): Document problem with many threads
4717
4718 2004-07-26 Andrew Cagney <cagney@gnu.org>
4719
4720 * gdb-mi.el: Move from here ...
4721 * mi/gdb-mi.el: ... to here.
4722
4723 2004-07-26 Andrew Cagney <cagney@gnu.org>
4724
4725 Problem reported by Ashley Pittman <ashley@quadrics.com>.
4726 * main.c (captured_main): When in batch mode always detach.
4727
4728 2004-07-26 Andrew Cagney <cagney@gnu.org>
4729
4730 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
4731 and h8300 as broken.
4732 * NEWS: END-OF-LIFE frame compatibility module.
4733 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
4734 specific comments.
4735
4736 2004-07-26 Andrew Cagney <cagney@gnu.org>
4737
4738 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
4739 * xcoffsolib.c (_initialize_xcoffsolib): Update.
4740 * wince.c (_initialize_wince): Update.
4741 * win32-nat.c (_initialize_win32_nat): Update.
4742 * varobj.c (_initialize_varobj): Update.
4743 * valops.c (_initialize_valops): Update.
4744 * utils.c (initialize_utils, initialize_utils): Update.
4745 * tui/tui-win.c (_initialize_tui_win): Update.
4746 * top.c (init_main): Update.
4747 * symfile.c (_initialize_symfile): Update.
4748 * source.c (_initialize_source): Update.
4749 * somsolib.c (_initialize_som_solib): Update.
4750 * solib.c (_initialize_solib): Update.
4751 * solib-frv.c (_initialize_frv_solib): Update.
4752 * serial.c (_initialize_serial): Update.
4753 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
4754 * remote.c (_initialize_remote, _initialize_remote): Update.
4755 * remote-vx.c (_initialize_vx): Update.
4756 * remote-utils.c (_initialize_sr_support): Update.
4757 * remote-sds.c (_initialize_remote_sds): Update.
4758 * remote-mips.c (_initialize_remote_mips): Update.
4759 * remote-e7000.c (_initialize_remote_e7000): Update.
4760 * proc-api.c (_initialize_proc_api): Update.
4761 * printcmd.c: Update.
4762 * parse.c (_initialize_parse): Update.
4763 * pa64solib.c (_initialize_pa64_solib): Update.
4764 * p-valprint.c (_initialize_pascal_valprint): Update.
4765 * monitor.c (_initialize_remote_monitors): Update.
4766 * mips-tdep.c (_initialize_mips_tdep): Update.
4767 * mcore-tdep.c (_initialize_mcore_tdep): Update.
4768 * maint.c (_initialize_maint_cmds): Update.
4769 * lin-lwp.c (_initialize_lin_lwp): Update.
4770 * language.c (_initialize_language): Update.
4771 * kod.c (_initialize_kod): Update.
4772 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
4773 * i386-tdep.c (_initialize_i386_tdep): Update.
4774 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
4775 * gdbarch.sh: Update.
4776 * gdbarch.c: Re-generate.
4777 * gdb-events.sh: Update.
4778 * gdb-events.c: Re-generate.
4779 * frame.c (_initialize_frame): Update.
4780 * exec.c: Update.
4781 * demangle.c (_initialize_demangler): Update.
4782 * dcache.c (_initialize_dcache): Update.
4783 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
4784 * cp-valprint.c (_initialize_cp_valprint): Update.
4785 * corefile.c (_initialize_core): Update.
4786 * command.h: Update.
4787 * cli/cli-decode.h: Update.
4788 * cli/cli-cmds.c (init_cli_cmds): Update.
4789 * charset.c (_initialize_charset): Update.
4790 * breakpoint.c (_initialize_breakpoint): Update.
4791 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
4792 * alpha-tdep.c (_initialize_alpha_tdep): Update.
4793 * aix-thread.c (_initialize_aix_thread): Update.
4794
4795 2004-07-24 Mark Kettenis <kettenis@gnu.org>
4796
4797 Partial fix for PR backtrace/1718.
4798 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
4799 that GCC migrates into the prolugue. Don't handle any
4800 instructions that clobber %ebx.
4801
4802 2004-07-23 Andrew Cagney <cagney@gnu.org>
4803
4804 Use regcache_raw_collect instead of regcache_collect.
4805 * regcache.h (regcache_collect): Delete declaration.
4806 * regcache.c (regcache_colect): Delete function.
4807 * win32-nat.c (do_child_store_inferior_registers): Update.
4808 * sol-thread.c (sol_thread_store_registers): Update.
4809 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
4810 * rs6000-nat.c (store_register): Update.
4811 * remote.c (store_register_using_P, remote_store_registers): Update.
4812 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
4813 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
4814 (fill_vrregset, store_spe_registers, fill_gregset)
4815 (fill_gregset): Update.
4816 * nto-procfs.c (procfs_store_registers): Update.
4817 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
4818 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
4819 * m68klinux-nat.c (store_register, fill_gregset): Update.
4820 * m68k-tdep.c (fill_gregset): Update.
4821 * infptrace.c (store_register): Update.
4822 * i386-nto-tdep.c (i386nto_regset_fill): Update.
4823 * i386-linux-nat.c (store_register, fill_gregset): Update.
4824 * hppa-linux-nat.c (fill_gregset): Update.
4825 * go32-nat.c (store_register): Update.
4826 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
4827 (store_fp_regs): Update.
4828 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
4829 (store_nwfpe_extended, store_fpregister, store_fpregs)
4830 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
4831 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
4832 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
4833 (store_regs_user_thread, store_regs_kernel_thread): Update.
4834
4835 2004-07-24 Mark Kettenis <kettenis@gnu.org>
4836
4837 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
4838 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
4839 encoding.
4840 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
4841 member of `struct comp_unit'.
4842
4843 2004-07-23 Andrew Cagney <cagney@gnu.org>
4844
4845 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
4846 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
4847
4848 2004-07-23 Martin Hunt <hunt@redhat.com>
4849 Kevin Buettner <kevinb@redhat.com>
4850
4851 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
4852 alignment was being added to the offset instead of multiplied.
4853
4854 2004-07-23 Mark Kettenis <kettenis@gnu.org>
4855
4856 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
4857 changed signal trampoline in OpenBSD 3.5-current.
4858
4859 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
4860 <machine/pcb.h> and "bsd-kvm.h".
4861 (sparc64nbsd_supply_pcb): New function.
4862 (_initialize_sparc64nbsd_nat): Renamed from
4863 _initialize_sparcnbsd_nat. Enable libkvm interface.
4864 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
4865 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
4866 (LOADLIBES): New variable.
4867
4868 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
4869
4870 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
4871
4872 2004-07-21 Andrew Cagney <cagney@gnu.org>
4873
4874 Use regcache_raw_supply instead of supply_register.
4875 * regcache.h (supply_register): Delete declaration.
4876 * regcache.c (supply_register): Delete function.
4877 * wince.c (do_child_fetch_inferior_registers): Update.
4878 * win32-nat.c (do_child_fetch_inferior_registers)
4879 (fetch_elf_core_registers): Update.
4880 * v850ice.c (v850ice_fetch_registers): Update.
4881 * thread-db.c (thread_db_store_registers): Update.
4882 * sol-thread.c (sol_thread_store_registers): Update.
4883 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
4884 * rs6000-nat.c (fetch_register): Update.
4885 * rom68k-rom.c (rom68k_supply_one_register): Update.
4886 * remote.c (remote_wait, remote_async_wait): Update.
4887 * remote-st.c (get_hex_regs): Update.
4888 * remote-sim.c (gdbsim_fetch_register): Update.
4889 * remote-sds.c (sds_fetch_registers): Update.
4890 * remote-rdp.c (remote_rdp_fetch_register): Update.
4891 * remote-rdi.c (arm_rdi_fetch_registers): Update.
4892 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
4893 * remote-m32r-sdi.c (m32r_fetch_register): Update.
4894 * remote-hms.c (init_hms_cmds): Update.
4895 * remote-est.c (init_est_cmds): Update.
4896 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
4897 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
4898 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
4899 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
4900 (fetch_register, supply_vrregset, supply_vrregset)
4901 (fetch_spe_registers): Update.
4902 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
4903 * monitor.c (monitor_supply_register): Update.
4904 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
4905 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
4906 (mipsnbsd_supply_fpreg): Update.
4907 * mips-nat.c (fetch_inferior_registers)
4908 (fetch_core_registers): Update.
4909 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
4910 (supply_fpregset, mips64_supply_gregset)
4911 (mips64_supply_fpregset): Update.
4912 * m68klinux-nat.c (fetch_register, supply_gregset)
4913 (supply_fpregset): Update.
4914 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
4915 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
4916 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
4917 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
4918 * infptrace.c (fetch_register): Update.
4919 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
4920 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
4921 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
4922 (gnu_fetch_registers, gnu_store_registers): Update.
4923 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
4924 * i386-linux-nat.c (fetch_register, supply_gregset)
4925 (dummy_sse_values): Update.
4926 * hpux-thread.c (hpux_thread_fetch_registers): Update.
4927 * hppah-nat.c (fetch_register): Update.
4928 * hppa-linux-nat.c (fetch_register, supply_gregset)
4929 (supply_fpregset): Update.
4930 * go32-nat.c (fetch_register): Update.
4931 * dve3900-rom.c (fetch_bitmapped_register)
4932 (_initialize_r3900_rom): Update.
4933 * cris-tdep.c (supply_gregset): Update.
4934 * abug-rom.c (init_abug_cmds): Update.
4935 * core-aout.c (fetch_core_registers): Update.
4936 * armnbsd-nat.c (supply_gregset, supply_fparegset)
4937 (fetch_register, fetch_fp_register): Update.
4938 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
4939 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
4940 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
4941 * alphanbsd-tdep.c (fetch_core_registers): Update.
4942 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
4943 * alpha-nat.c (fetch_osf_core_registers)
4944 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
4945 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
4946 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
4947
4948 2004-07-21 Andrew Cagney <cagney@gnu.org>
4949
4950 * PROBLEMS: Mention breakpoints/1702.
4951 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
4952 that is known to work.
4953
4954 2004-07-21 Andrew Cagney <cagney@gnu.org>
4955
4956 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
4957 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
4958 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
4959 (handle_inferior_event): Wrap call to deprecated
4960 IGNORE_HELPER_CALL in #ifdef.
4961 * config/mips/tm-nbsd.h: Update.
4962
4963 2004-07-20 Jim Blandy <jimb@redhat.com>
4964
4965 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
4966 bfd_mach_ppc has no segment registers.
4967
4968 Include PowerPC SPR numbers for special-purpose registers.
4969 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
4970 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
4971 new member in initializer.
4972 (S, S4, SN4, S64): New macros for defining special-purpose
4973 registers.
4974 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
4975 registers_403, registers_403GC, registers_505, registers_860,
4976 registers_601, registers_602, registers_603, registers_604,
4977 registers_750, registers_e500): Use them.
4978
4979 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
4980 replace references with expression used to initialize variable.
4981
4982 2004-07-20 Andrew Cagney <cagney@gnu.org>
4983
4984 * breakpoint.c (deprecated_read_memory_nobpt): Rename
4985 read_memory_nobpt.
4986 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
4987 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
4988 (s390_sigtramp_frame_sniffer): Update.
4989 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
4990 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
4991 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
4992 (mips32_fetch_instruction): Update.
4993 * mcore-tdep.c (get_insn): Update.
4994 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
4995 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
4996 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
4997 * i386-linux-tdep.c (i386_linux_sigtramp_start)
4998 (i386_linux_rt_sigtramp_start): Update.
4999 * i386-linux-nat.c (child_resume): Update.
5000 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
5001 * hppa-linux-tdep.c (insns_match_pattern): Update.
5002 * gdbcore.h: Update.
5003 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
5004 * frame.c (safe_frame_unwind_memory): Update.
5005 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
5006 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
5007 * alpha-tdep.c (alpha_read_insn): Update.
5008
5009 2004-07-20 Andrew Cagney <cagney@gnu.org>
5010
5011 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
5012 containing both bytes and mask. Add "frame_type".
5013 * tramp-frame.c (tramp_frame_start): Update.
5014 (tramp_frame_prepend_unwinder): Update.
5015 * mips-linux-tdep.c (mips_linux_o32_sigframe)
5016 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
5017 (mips_linux_n64_rt_sigframe): Update. Make "static const".
5018 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
5019
5020 2004-07-19 Eli Zaretskii <eliz@gnu.org>
5021
5022 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
5023 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
5024 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
5025 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
5026
5027 2004-07-17 Andrew Cagney <cagney@gnu.org>
5028
5029 * NEWS, PROBLEMS: Update for 6.2.
5030
5031 * README: Update to 6.2.
5032
5033 * utils.c (xvasprintf): Call xstrvprintf.
5034
5035 * parse.c: Update copyright.
5036 (null_post_parser): Eliminate ARGSUSED.
5037
5038 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
5039 * tui/tui-win.c (tui_get_cmd_list): Ditto.
5040 * symfile-mem.c (_initialize_symfile_mem): Ditto.
5041
5042 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
5043 * ppc-linux-nat.c: Use "Linux kernel".
5044 * hppa-linux-tdep.c: Use GNU/Linux.
5045 * hppa-linux-nat.c: Use GNU/Linux.
5046 * dwarfread.c: Add [sic] to use of Linux.
5047
5048 * hppa-linux-nat.c: Do not include <string.h>.
5049 (supply_fpregset): Remove "register" attribute.
5050
5051 * solib-frv.c (fetch_loadmap): Use xfree, not free.
5052
5053 2004-07-17 Mark Kettenis <kettenis@gnu.org>
5054
5055 * configure.in: Define _MSE_INT_H on Solaris 9 too.
5056 * configure, config.in: Regenerated.
5057
5058 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
5059 "bsd-kvm.h".
5060 (vaxbsd_supply_pcb): New function.
5061 (_initialize_vaxbsd_nat): New prototype and function.
5062 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
5063 solib-sunos.o.
5064 (LOADLIBES): New variable.
5065 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5066 (LOADLIBES): New variable.
5067 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
5068 (LOADLIBES): New variable.
5069 * Makefile.in (vaxbsd-nat.o): Update dependencies.
5070
5071 2004-07-16 Andrew Cagney <cagney@gnu.org>
5072
5073 * defs.h (event_loop_p): Replace variable declaration with macro,
5074 always 1.
5075 * main.c (captured_main): Delete options "-async" and "-noasync".
5076 (event_loop_p): Delete variable.
5077 * NEWS: Mention that "-async" and "-noasync" were removed.
5078
5079 2004-07-16 Andrew Cagney <cagney@gnu.org>
5080
5081 * remote-m32r-sdi.c: Re-indent.
5082
5083 2004-07-16 Jim Blandy <jimb@redhat.com>
5084
5085 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
5086 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
5087 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
5088 missing MPC823 SPRs.
5089 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
5090 incorrect. (This was corrected in GDB's register name tables on
5091 2004-07-14.)
5092
5093 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
5094 should be "esasrr" ("ESA Save and Restore Register").
5095
5096 2004-07-16 Andrew Cagney <cagney@gnu.org>
5097
5098 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
5099 calls, no longer applicable. Update comments and rename parameter
5100 "step_frame" to "return_frame".
5101
5102 2004-07-16 Andrew Cagney <cagney@gnu.org>
5103
5104 * frame.c (fprint_field): New function.
5105 (fprint_frame_id): Use fprint_field.
5106
5107 2004-07-15 Joel Brobecker <brobecker@gnat.com>
5108
5109 * ada-lang.c (ada_language_defn): Remove commented out code.
5110
5111 2004-07-15 Jim Blandy <jimb@redhat.com>
5112
5113 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
5114 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
5115
5116 2004-07-14 Jim Blandy <jimb@redhat.com>
5117
5118 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
5119
5120 * ppc-tdep.h (ppc_num_vrs): New enum constant.
5121
5122 * ppc-tdep.h (ppc_num_srs): New enum constant.
5123
5124 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
5125 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
5126 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
5127 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
5128 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
5129 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
5130 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
5131 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
5132 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
5133 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
5134 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
5135 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
5136 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
5137 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
5138 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
5139 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
5140 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
5141 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
5142 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
5143 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
5144 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
5145 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
5146 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
5147 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
5148 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
5149 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
5150 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
5151 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
5152 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
5153 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
5154 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
5155 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
5156 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
5157 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
5158 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
5159 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
5160 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
5161 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
5162 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
5163 special-purpose register numbers.
5164
5165 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
5166 manual mentions 'md_twb', but many mention 'm_twb', and at that
5167 point in the register list.)
5168
5169 2004-07-14 Andrew Cagney <cagney@gnu.org>
5170
5171 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
5172 instead of "internal-error".
5173
5174 2004-07-10 Joel Brobecker <brobecker@gnat.com>
5175
5176 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
5177 that was inserted inside a comment.
5178
5179 2004-07-10 Randolph Chung <tausq@debian.org>
5180
5181 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
5182 function.
5183 (hppa_hpux_push_dummy_code): New function.
5184 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
5185 Set find_global_pointer method.
5186
5187 2004-07-10 Mark Kettenis <kettenis@gnu.org>
5188
5189 * NEWS: Mention BSD libkvm interface.
5190
5191 2004-07-10 Michael Snyder <msnyder@redhat.com>
5192
5193 * symfile.c (generic_load): Comment typo.
5194 * stack.c (get_selected_block): Ditto.
5195 * regcache.c (regcache_cooked_read): Ditto.
5196 * monitor.c (monitor_debug): Ditto.
5197 * mips-tdep.c (mips_read_pc): Ditto.
5198 * i386-linux-nat.c (ps_get_thread_area): Ditto.
5199 * gdb_mbuild.sh: Ditto.
5200 * gdbarch.sh: Ditto.
5201 * gdbarch.h: Ditto.
5202
5203 2004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
5204
5205 * ada-tasks.c: Remove file.
5206
5207 Remove ARI problems:
5208
5209 * ada-exp.y (write_var_from_sym): Reformat to put operator at
5210 beginning of line.
5211
5212 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
5213 Add comment.
5214 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
5215 (MIN_OF_SIZE): Rename min_of_size. Add comment.
5216 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
5217 (UMIN_OF_SIZE): Remove.
5218 (max_of_type): New function to replace orphan macro in gdbtypes.h
5219 (min_of_type): Ditto.
5220 (discrete_type_high_bound): Use max_of_type.
5221 (discrete_type_low_bound): Use min_of_type.
5222 (possible_user_operator_p): Move operator to beginning of line.
5223 (ada_is_variant_part): Ditto.
5224 (ensure_lval): Rewrite to avoid deprecated operations.
5225 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
5226 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
5227 (ada_enum_name): Remove assignments in 'if' statements.
5228 (build_ada_types): Add gdbarch parameter.
5229 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
5230 with gdbarch_data_register_post_init.
5231 Use add_setshow_uinteger_cmd rather than add_set_cmd and
5232 add_show_from_set.
5233
5234 * ada-valprint.c (inspect_it): Remove declaration.
5235 (repeat_count_threshold): Remove declaration.
5236 (ada_print_floating): Remove assignments in 'if' statements.
5237 (print_str): Move operator to beginning of line.
5238
5239 2004-07-08 Jim Blandy <jimb@redhat.com>
5240
5241 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
5242
5243 2004-07-08 Bob Rossi <bob@brasko.net>
5244
5245 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
5246
5247 2004-07-06 Jeff Johnston <jjohnstn@redhat.com>
5248
5249 * language.h (struct_language_defn): Add new function pointer:
5250 la_class_name_from_physname. Also add new prototype for
5251 language_class_name_from_physname.
5252 * language.c (language_class_name_from_physname): New function.
5253 (unk_lang_class_name): Ditto.
5254 (unknown_language_defn, auto_language_defn): Change
5255 to add unk_lang_class_name function pointer for
5256 la_class_name_from_physname.
5257 (local_language_defn): Ditto.
5258 * dwarf2read.c (guess_structure_name): Change to call
5259 language_class_name_from_physname.
5260 (determine_class_name): Ditto.
5261 * cp-support.c (class_name_from_physname): Renamed.
5262 (cp_class_name_from_physname): New name of function.
5263 * cp-support.h: Ditto.
5264 * c-lang.c (c_language_defn): Change to add NULL
5265 for class_name_from_physname function pointer.
5266 (cplus_language_defn): Change to add cp_class_name_from_physname.
5267 * jv-lang.c (java_class_name_physname): New function.
5268 (java_find_last_component): New static routine.
5269 (java_language_defn): Add java_class_name_from_physname pointer.
5270 * ada-lang.c (ada_language_defn): Change to add NULL
5271 for class_name_from_physname function pointer.
5272 * f-lang.c (f_language_defn): Ditto.
5273 * m2-lang.c (m2_language_defn): Ditto.
5274 * objc-lang.c (objc_language_defn): Ditto.
5275 * p-lang.c (pascal_language_defn): Ditto.
5276 * scm-lang.c (scm_language_defn): Ditto.
5277
5278 2004-07-06 Andrew Cagney <cagney@gnu.org>
5279
5280 Patch from Bart Robinson.
5281 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
5282 (O_LARGEFILE): Define to 0, if not defined.
5283
5284 2004-07-03 Mark Kettenis <kettenis@gnu.org>
5285
5286 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
5287 <machine/pcb.h> and "bsd-kvm.h".
5288 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
5289 (m68kbsd_supply_pcb): New function.
5290 (_initialize_m68kbsd_nat): New prototype and function.
5291 * Makefile.in (m68kbsd-nat.o): Update dependencies.
5292 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5293 (LOADLIBES): New variable.
5294 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
5295 (LOADLIBES): New variable.
5296
5297 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
5298
5299 2004-07-03 Mark Kettenis <kettenis@gnu.org>
5300
5301 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
5302 <sys/proc.h>.
5303 (bsd_kvm_cmdlist): New variable.
5304 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
5305 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
5306 command and "kvm proc" command.
5307 * Makefile.in (bsd-kvm.o): Update dependencies.
5308
5309 2004-07-02 Mark Kettenis <kettenis@gnu.org>
5310
5311 * osabi.c: Update copyright year.
5312 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
5313 notes if EI_OSABI is set to ELFOSABI_HPUX.
5314
5315 2004-07-01 Michael Snyder <msnyder@redhat.com>
5316
5317 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
5318 that seems to have gotten whacked out of line.
5319
5320 2004-07-01 Mark Kettenis <kettenis@gnu.org>
5321
5322 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
5323 code.
5324
5325 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
5326
5327 * ada-lang.c (decode_packed_array): Minor change to comment.
5328 (ada_value_slice_ptr): New function.
5329 (ada_value_slice): New function.
5330 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
5331 test. Don't know why it is there.
5332 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
5333 to avoid dereferencing huge arrays from which one is slicing.
5334 (empty_array): Correct to return an array rather than
5335 a subrange value.
5336 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
5337 on empty arrays (let'em use 'FIRST instead).
5338
5339 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
5340
5341 Address complaints from gdb_ari.sh:
5342
5343 * ada-exp.y: Include gdb_string.h rather than string.h.
5344 (convert_char_literal): Reformat declaration.
5345 * ada-lang.h: Include opaque struct declaration for struct frame_info.
5346 * ada-lex.l: Change use of free to xfree (the macro would do so
5347 anyway, but this is harmless).
5348 Include gdb_string.h rather than string.h.
5349 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
5350
5351 * ada-lang.c (parse): Remove K&Rism in parameter list.
5352 (is_name_suffix): Correct Linux => GNU/Linux in comment.
5353
5354 2004-06-30 Mark Kettenis <kettenis@gnu.org>
5355
5356 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
5357 dead code.
5358
5359 2004-06-30 Mark Kettenis <kettenis@gnu.org>
5360
5361 * alphabsd-nat.c: Update copyright year.
5362 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
5363
5364 2004-06-29 Joel Brobecker <brobecker@gnat.com>
5365
5366 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
5367 (i386_cygwin_in_solib_call_trampoline): New function.
5368 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
5369 and skip_trampoline_code gdbarch methods.
5370
5371 2004-06-29 Jim Blandy <jimb@redhat.com>
5372
5373 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
5374 name actually used in the dependency lists.
5375
5376 2004-06-29 Randolph Chung <tausq@debian.org>
5377
5378 * NEWS (New native configurations): Mention GNU/Linux/hppa.
5379
5380 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
5381
5382 * win32-nat.c (child_pid_to_exec_file): New function.
5383 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
5384 functionality.
5385
5386 2004-06-28 Andrew Cagney <cagney@gnu.org>
5387
5388 * defs.h (xstrvprintf): Declare.
5389 * utils.c (xstrvprintf): New function.
5390 (internal_vproblem, xstrprintf, xasprintf)
5391 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
5392 * serial.c (serial_printf): Ditto.
5393 * complaints.c (vcomplaint): Ditto.
5394
5395 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
5396
5397 * infcmd.c (attach_command): Move call to target_terminal_inferior
5398 behind loading symbol table.
5399
5400 2004-06-28 Andrew Cagney <cagney@gnu.org>
5401
5402 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
5403 change - add back extern deprecated_ui_loop_hook declaration.
5404
5405 2004-06-28 Andrew Cagney <cagney@gnu.org>
5406
5407 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
5408 xstrprintf.
5409 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
5410 (c_value_of_variable): Ditto.
5411 * utils.c (internal_vproblem): Ditto.
5412 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
5413 * remote.c (add_packet_config_cmd): Ditto.
5414 * remote-rdp.c (rdp_set_command_line): Ditto.
5415 * regcache.c (regcache_dump): Ditto.
5416 * frv-tdep.c (new_variant, new_variant): Ditto.
5417 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
5418 (fbsd_find_memory_regions): Ditto.
5419 * breakpoint.c (create_thread_event_breakpoint)
5420 (create_breakpoints): Ditto.
5421 * aix-thread.c (aix_thread_pid_to_str): Ditto.
5422 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
5423
5424 2004-06-28 Joel Brobecker <brobecker@gnat.com>
5425
5426 * ada-lang.c: Re-indent file, with some massaging to help indent
5427 a bit when the result is otherwise really too ugly.
5428
5429 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
5430
5431 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
5432 code_addr_p and special_addr_p to 'unsigned int'.
5433
5434 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5435
5436 * i386v4-nat.c: Update copyright year and tweak comment.
5437 (regmap): Remove trailing comma.
5438 (supply_gregset): Rename local variable i to regnum. Call
5439 regcache_raw_supply instead of supply_register.
5440 (fill_gregset): Rename argument regno to regnum. Call
5441 regcache_raw_collect instead of regcache_collect.
5442
5443 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
5444
5445 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
5446 and special_addr_p.
5447 (frame_id_build, frame_id_build_special): Update comments.
5448 (frame_id_build_wild): New prototype.
5449 * frame.c (frame_id_build, frame_id_build_special): Fill in new
5450 struct frame_id fields.
5451 (frame_id_build_wild): New function.
5452 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
5453
5454 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5455
5456 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
5457 hppabsd-tdep.c.
5458
5459 2004-06-27 Joel Brobecker <brobecker@gnat.com>
5460
5461 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
5462
5463 2004-06-27 Joel Brobecker <brobecker@gnat.com>
5464
5465 * ada-lang.c: Re-indent file.
5466
5467 2004-06-27 Joel Brobecker <brobecker@gnat.com>
5468
5469 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
5470 (no_symtab_msg): Likewise.
5471
5472 2004-06-27 Andreas Schwab <schwab@suse.de>
5473
5474 * source.c: Fix whitespace.
5475
5476 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5477
5478 * configure.in: Include <sys/param.h> for td_pcb test.
5479 * configure: Regenerated.
5480
5481 * i386nbsd-nat.c: New file.
5482 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
5483 i386obsd-nat.c and i386obsd-tdep.c.
5484 (i386nbsd-nat.o): New dependency.
5485 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
5486 bsd-kvm.o.
5487 (LOADLIBES): New variable.
5488 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
5489 bsd-kvm.o.
5490 (LOADLIBES): New variable.
5491
5492 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
5493 (LOADLIBES): New variable.
5494
5495 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
5496 fetching from BSD_KVM_PADDR. Correctly lookup address for
5497 "_thread0".
5498
5499 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
5500 "bsd-kvm.h".
5501 (amd64fbsd_supply_pcb): New funcion.
5502 (_initialize_amd64fbsd_nat): Enable libkvm interface.
5503
5504 2004-06-27 <david@streamline-computing.com>
5505
5506 Partial fix for PR cli/1056.
5507 * valarith.c: Check for zero in division and remainder
5508 evaluation.
5509
5510 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5511
5512 * i387-tdep.c: Remove excessive whitespace.
5513
5514 2004-06-26 Andrew Cagney <cagney@gnu.org>
5515
5516 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
5517 * gdb-events.h, gdb-events.c: Re-generate.
5518 * tui/tui-hooks.c (tui_install_hooks): Update.
5519 (tui_remove_hooks): Update.
5520 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
5521
5522 2004-06-26 Mark Kettenis <kettenis@gnu.org>
5523
5524 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
5525 (gregset_t, fpregset_t): Remove typedefs.
5526 (REG_OFFSET): Rename argument.
5527 (amd64bsd_r_reg_offset): Rename from reg_offset.
5528 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
5529 Remove functions.
5530 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
5531 of reg_offset.
5532 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
5533
5534 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
5535
5536 * vax-tdep.c: Tweak comment.
5537
5538 Add OpenBSD/hppa support.
5539 * NEWS (New native configurations): Mention OpenBSD/hppa.
5540 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
5541 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
5542 files.
5543 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
5544 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
5545 * configure.host: Add hppa*-*-openbsd*.
5546 * configure.tgt: Add hppa*-*-openbsd*.
5547
5548 2004-06-25 Andrew Cagney <cagney@gnu.org>
5549
5550 * defs.h (deprecated_ui_loop_hook): Deprecated.
5551 * wince.c (child_wait): Update.
5552 * win32-nat.c (child_wait): Update.
5553 * v850ice.c (v850ice_wait): Update.
5554 * top.c (deprecated_ui_loop_hook): Update.
5555 * serial.h: Update.
5556 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
5557 (do_unix_readchar): Update.
5558 * ser-tcp.c (net_open): Update.
5559 * remote-sim.c (gdb_os_poll_quit): Update.
5560 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
5561
5562 2004-06-24 Andrew Cagney <cagney@gnu.org>
5563
5564 * defs.h (deprecated_pre_add_symbol_hook)
5565 (deprecated_post_add_symbol_hook): Deprecated.
5566 * symfile.c (symbol_file_add_with_addrs_or_offsets)
5567 (symbol_file_add_with_addrs_or_offsets): Update references.
5568
5569 2004-06-24 Andrew Cagney <cagney@gnu.org>
5570
5571 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
5572 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
5573 * wince.c (ui_loop_hook): Delete extern declaration.
5574 * win32-nat.c (ui_loop_hook): Delete extern declaration..
5575 * v850ice.c (ui_loop_hook): Delete extern declaration..
5576 * ser-unix.c (ui_loop_hook): Delete extern declaration..
5577 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
5578 * remote-sim.c (ui_loop_hook): Delete extern declaration..
5579 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
5580 ui_loop_hook declaration.
5581
5582 2004-06-24 Andrew Cagney <cagney@gnu.org>
5583
5584 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
5585 entry_func_highpc fields.
5586 * objfiles.c (init_entry_point_info): Do not clear
5587 entry_func_lowpc and entry_func_highpc.
5588 (objfile_relocate): Do not relocate entry_func_lowpc and
5589 entry_func_highpc.
5590 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
5591 entry_func_highpc.
5592 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
5593 entry_func_highpc.
5594 * blockframe.c (legacy_frame_chain_valid): Replace tests against
5595 entry_func_lowpc and entry_func_highpc with call to
5596 inside_entry_func.
5597
5598 2004-06-24 Mark Kettenis <kettenis@gnu.org>
5599
5600 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
5601 quad-precision floating point arguments in registers.
5602
5603 2004-06-24 Mark Kettenis <kettenis@gnu.org>
5604
5605 From Michael Mueller <m.mueller99@kay-mueller.de>:
5606 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
5607 account.
5608
5609 2004-06-22 Jeff Johnston <jjohnstn@redhat.com>
5610
5611 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
5612 to -1.
5613 * breakpoint.c (bpstat_stop_status): Move check for ignoring
5614 untriggered watchpoints to a separate if clause. Update function
5615 comment regarding STOPPED_BY_WATCHPOINT argument.
5616
5617 2004-06-22 Jim Blandy <jimb@redhat.com>
5618
5619 * gdbarch.sh: Doc fix.
5620
5621 2004-06-21 Martin Hunt <hunt@redhat.com>
5622 Kevin Buettner <kevinb@redhat.com>
5623
5624 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
5625 * mips-tdep.h (MIPS_SP_REGNUM): Define.
5626 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
5627 to set_gdbarch_sp_regnum(). Use cooked register number.
5628 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
5629
5630 2004-06-21 Andrew Cagney <cagney@gnu.org>
5631
5632 * gdbarch.sh: When the macro field is empty, do not generate a
5633 macro definition. When the macro field is "=", generate the macro
5634 name from the upper-case function name.
5635 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
5636 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
5637 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
5638 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
5639 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
5640 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
5641 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
5642 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
5643 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
5644 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
5645 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
5646 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
5647 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
5648 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
5649 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
5650 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
5651 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
5652 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
5653 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
5654 (DEPRECATED_USE_STRUCT_CONVENTION)
5655 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5656 (DEPRECATED_FRAME_INIT_SAVED_REGS)
5657 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
5658 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
5659 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
5660 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
5661 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
5662 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
5663 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
5664 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
5665 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
5666 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
5667 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
5668 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
5669 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
5670 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
5671 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
5672 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
5673
5674 2004-06-21 Andrew Cagney <cagney@gnu.org>
5675
5676 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
5677 macro name, and the function rather than macro value. Only wrap
5678 macro print statements in #ifdef. Move format logic to where it
5679 is needed.
5680 * gdbarch.c: Re-generate.
5681
5682 * gdbarch.sh (read): Delete "print_p" and "description", add
5683 "garbage_at_eol". Check for non-empty garbage at end-of-line.
5684 Delete references to print_p.
5685 (TARGET_ARCHITECTURE): Delete print predicate.
5686 * gdbarch.c: Re-generate.
5687
5688 * gdbarch.sh: Check that multi-arch methods do not provide a
5689 macro.
5690 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
5691 (print_registers_info, print_float_info, print_vector_info)
5692 (adjust_breakpoint_address, remote_translate_xfer_address)
5693 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
5694 (address_class_type_flags_to_name, unwind_sp): Remove the macro
5695 name from the multi-arch definition.
5696
5697 2004-06-20 Andrew Cagney <cagney@gnu.org>
5698
5699 * gdbarch.sh: Sort by the function, instead of macro name.
5700 * gdbarch.c: Re-generate.
5701
5702 2004-06-20 Andrew Cagney <cagney@gnu.org>
5703
5704 * gdbarch.sh: Use the function, instead of macro name in
5705 errors and the log file.
5706 (return_value): Remove stray ":" in spec.
5707
5708 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
5709 * gdbarch.h, gdbarch.c: Re-generate.
5710 * Makefile.in (arch-utils.o): Update dependencies.
5711 * values.c (using_struct_return): Move code calling
5712 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
5713 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
5714 to legacy_return_value, simplify.
5715 * infcmd.c (print_return_value): Move code calling
5716 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
5717 to legacy_return_value, simplify.
5718 * infcall.c (call_function_by_hand): Move code calling
5719 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
5720 * arch-utils.c: Update copyright. Include "gdbcore.h".
5721 (legacy_return_value): New function.
5722 * arch-utils.h: Update copyright.
5723 (legacy_return_value): Declare.
5724
5725 2004-06-20 Andrew Cagney <cagney@gnu.org>
5726
5727 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
5728 * gdbarch.h, gdbarch.c: Re-generate.
5729 * values.c (using_struct_return): Update call.
5730 * mcore-tdep.c: Update comment.
5731 * infcall.c (call_function_by_hand): Update comment.
5732 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5733 * arch-utils.h (always_use_struct_convention): Update.
5734 * v850-tdep.c (v850_gdbarch_init): Update.
5735 * sh64-tdep.c (sh64_gdbarch_init): Update.
5736 * sh-tdep.c (sh_gdbarch_init): Update.
5737 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5738 * mips-tdep.c (mips_gdbarch_init): Update.
5739 * mcore-tdep.c (mcore_gdbarch_init): Update.
5740 * m32r-tdep.c (m32r_gdbarch_init): Update.
5741 * ia64-tdep.c (ia64_gdbarch_init): Update.
5742 * h8300-tdep.c (h8300_gdbarch_init): Update.
5743 * frv-tdep.c (frv_gdbarch_init): Update.
5744 * cris-tdep.c (cris_gdbarch_init): Update.
5745 * arm-tdep.c (arm_gdbarch_init): Update.
5746 * alpha-tdep.c (alpha_gdbarch_init): Update.
5747
5748 2004-06-18 Michael Chastain <mec.gnu@mindspring.com>
5749
5750 * PROBLEMS: Add more specific information, and a work-around,
5751 for PR gdb/1458.
5752
5753 2004-06-18 Andrew Cagney <cagney@gnu.org>
5754
5755 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
5756 * gdbarch.h, gdbarch.c: Re-generate.
5757 * ada-lang.c (ada_finish_decode_line_1): Update.
5758 * infrun.c (handle_inferior_event): Update.
5759 * infcall.c (find_function_addr): Update.
5760 * linespec.c (minsym_found): Update.
5761 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
5762 Update.
5763 * blockframe.c (legacy_frameless_look_for_prologue): Update.
5764 * cli/cli-cmds.c (disassemble_command): Update.
5765 * vax-tdep.c (vax_gdbarch_init): Update.
5766
5767 2004-06-18 Mark Kettenis <kettenis@gnu.org>
5768
5769 * i386-tdep.c (i386_collect_fpregset): Fix comment.
5770
5771 2004-06-17 Andrew Cagney <cagney@gnu.org>
5772
5773 GDB 6.1.1 released from the GDB 6.1 branch.
5774 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
5775 * PROBLEMS: Ditto.
5776
5777 2004-06-16 Daniel Jacobowitz <dan@debian.org>
5778
5779 PR gdb/1658
5780 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
5781 operation as a uleb128. Found by Michael Coulter.
5782
5783 2004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
5784
5785 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
5786 make it non-static.
5787 * ada-lang.h (task_control_block): declaration moved from ada-task.c
5788 to ada-lang.h; this is needed to be able to implement the kill command
5789 in multi-task mode.
5790 (task_ptid): Ditto.
5791 (task_entry): Ditto.
5792 (task_list): Ditto.
5793 (ada_build_task_list): Ditto.
5794
5795 * ada-lang.c: Conditionalize routines and data structures related
5796 to breakpoints, exceptions, completion, and symbol caching on
5797 GNAT_GDB, since these are not yet used in the submitted public sources.
5798 (ada_main_name): Editorial: Move definition out of exception-related
5799 code.
5800
5801 2004-06-15 Andrew Cagney <cagney@gnu.org>
5802
5803 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
5804 deprecated_pc_in_call_dummy.
5805
5806 2004-06-15 Alan Modra <amodra@bigpond.net.au>
5807
5808 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
5809 bfd_get_section_size_before_reloc or _raw_size.
5810 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
5811 * dwarf2read.c (dwarf2_locate_sections): Likewise.
5812 (dwarf2_read_section): Likewise.
5813 * elfread.c (elf_locate_sections): Likewise.
5814 * gcore.c (derive_heap_segment): Likewise.
5815 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
5816 * remote-e7000.c (e7000_load): Likewise.
5817 * remote-m32r-sdi.c (m32r_load): Likewise.
5818 * remote-mips.c (mips_load_srec): Likewise.
5819 (pmon_load_fast): Likewise.
5820 * remote.c (compare_sections_command): Likewise.
5821 * symfile.c (add_section_size_callback): Likewise.
5822 (load_section_callback): Likewise.
5823 (pc_in_unmapped_range): Likewise.
5824 (pc_in_mapped_range): Likewise.
5825 (sections_overlap): Likewise.
5826 (list_overlays_command): Likewise.
5827 (simple_overlay_update_1): Likewise.
5828 (simple_overlay_update): Likewise.
5829 * tracepoint.c (remote_set_transparent_ranges): Likewise.
5830 * win32-nat.c (core_section_load_dll_symbols): Likewise.
5831
5832 2004-06-14 Randolph Chung <tausq@debian.org>
5833
5834 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
5835 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
5836 static.
5837 (hppa_hpux_inferior_created): New function.
5838 (hppa_hpux_init_abi): Register observer.
5839 * symfile.c (hp_cxx_exception_support_initialized)
5840 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
5841 (symbol_file_add_main_1, symbol_file_clear): Likewise.
5842
5843 2004-06-14 Randolph Chung <tausq@debian.org>
5844
5845 * MAINTAINERS (Write After Approval): Alphabetize my entry
5846 correctly.
5847
5848 2004-06-14 Andrew Cagney <cagney@gnu.org>
5849
5850 * MAINTAINERS (testsuite): List Michael Chastain as the lead
5851 testsuite maintainer.
5852
5853 2004-06-13 Andrew Cagney <cagney@gnu.org>
5854
5855 * infcmd.c (print_return_value): Fix logic, allow
5856 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
5857
5858 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
5859 defining any macros.
5860 * gdbarch.h: Re-generate.
5861
5862 * gdbarch.sh: Delete "level" attribute. Only check for a macro
5863 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
5864 * gdbarch.h: Re-generate.
5865
5866 * values.c (generic_use_struct_convention): Don't check gcc_p.
5867
5868 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
5869 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
5870 * gdbarch.h, gdbarch.c: Regenerate.
5871 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
5872 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
5873 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5874 deprecated_max_register_raw_size and
5875 deprecated_max_register_virtual_size.
5876 * v850-tdep.c (v850_gdbarch_init): Ditto.
5877 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
5878 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5879 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5880 * cris-tdep.c (cris_gdbarch_init): Ditto.
5881
5882 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
5883 * gdbarch.h, gdbarch.c: Re-generate.
5884 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
5885 (m68hc11_use_struct_convention): Delete function.
5886 (m68hc11_extract_struct_value_address): Delete function.
5887 (m68hc11_return_value): New function.
5888 (m68hc11_gdbarch_init): Instead of store_return_value,
5889 extract_return_value, return_value_on_stack,
5890 deprecated_extract_struct_value_address and use_struct_convention,
5891 set return_value.
5892 * values.c (using_struct_return): Do not call
5893 RETURN_VALUE_ON_STACK.
5894 * arch-utils.h (generic_return_value_on_stack_not): Delete
5895 declaration.
5896 * arch-utils.c (generic_return_value_on_stack_not): Delete
5897 function.
5898
5899 2004-06-12 Andrew Cagney <cagney@gnu.org>
5900
5901 * values.c (register_value_being_returned): Delete function.
5902 * infcmd.c (legacy_return_value): Delete function.
5903 * infcall.c (call_function_by_hand): Inline
5904 "register_value_being_returned", simplify.
5905 * values.c (using_struct_return): Update comment, refer to
5906 print_return_value instead of register_value_being_returned.
5907 * infcmd.c (print_return_value): Inline calls to
5908 register_value_being_returned and legacy_return_value. Simplify.
5909
5910 2004-06-11 Randolph Chung <tausq@debian.org>
5911
5912 * somread.c (som_symtab_read): Exclude gcc local symbols.
5913
5914 2004-06-11 Randolph Chung <tausq@debian.org>
5915
5916 * infrun.c (handle_inferior_event): Handle the case when a
5917 trampoline ends up in the runtime resolver, and if the trampoline
5918 has no name. Rearrange the code so that all the trampoline
5919 processing happens before other step-out-of-range handling.
5920
5921 2004-06-11 Martin Hunt <hunt@redhat.com>
5922
5923 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
5924 has no fpu.
5925
5926 2004-06-10 Andrew Cagney <cagney@gnu.org>
5927
5928 * blockframe.c (legacy_inside_entry_func): Delete.
5929 (legacy_frame_chain_valid): Inline call to
5930 legacy_inside_entry_func, simplify.
5931
5932 2004-06-10 Bob Rossi <bob@brasko.net>
5933
5934 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
5935 * dwarf2read.c (partial_die_info): Add dirname field.
5936 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
5937 (read_partial_die): Save away DW_AT_comp_dir.
5938 * defs.h (symtab_to_filename): Removed.
5939 * source.c (find_and_open_source): Added.
5940 (open_source_file): Just calls find_and_open_source.
5941 (symtab_to_filename): Removed.
5942 (symtab_to_fullname, psymtab_to_fullname): Added.
5943 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
5944 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
5945 symtab_to_filename.
5946 * symtab.h (partial_symtab): Add dirname field.
5947 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
5948 (mi_cmd_file_list_exec_source_file): Call new function
5949 symtab_to_fullname to find fullname.
5950 (mi_cmd_file_list_exec_source_files): Added.
5951 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
5952 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
5953
5954 2004-06-10 Andrew Cagney <cagney@gnu.org>
5955
5956 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
5957 to generic_use_struct_convention, the default value.
5958
5959 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
5960 of abort.
5961
5962 * ns32k-tdep.c (ns32k_push_arguments): New function.
5963 (ns32k_gdbarch_init): Set deprecated_push_arguments.
5964 * infcall.c (call_function_by_hand): Call error instead of
5965 legacy_push_arguments.
5966 * value.h (legacy_push_arguments): Delete declaration.
5967 * valops.c (legacy_push_arguments): Delete function.
5968 (value_push): Delete function.
5969
5970 2004-06-10 Brian Ford <ford@vss.fsi.com>
5971
5972 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
5973 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
5974 info.
5975 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
5976
5977 2004-06-10 Andrew Cagney <cagney@gnu.org>
5978
5979 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
5980 * gdbarch.h, gdbarch.c: Re-generate.
5981 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
5982 parameters.
5983 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
5984 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
5985 deprecated_pc_in_call_dummy instead of
5986 DEPRECATED_PC_IN_CALL_DUMMY.
5987 (arm_skip_prologue): Ditto.
5988 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
5989 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
5990 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
5991 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
5992 Ditto.
5993 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
5994 (sh64_init_extra_frame_info, sh64_get_saved_register)
5995 (sh64_pop_frame): Ditto.
5996 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
5997 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
5998 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
5999 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
6000 (h8300_pop_frame): Ditto.
6001 * blockframe.c (legacy_inside_entry_func)
6002 (legacy_frame_chain_valid): Ditto.
6003 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
6004 to deprecated_pc_in_call_dummy.
6005
6006 2004-06-09 Andrew Cagney <cagney@gnu.org>
6007
6008 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
6009 provide a default value.
6010 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
6011 * gdbarch.h, gdbarch.c: Re-generate.
6012 * arch-utils.c (generic_convert_register_p): Rename
6013 legacy_convert_register_p
6014 (legacy_register_to_value, legacy_value_to_register): Delete
6015 functions.
6016 * arch-utils.h (generic_convert_register_p): Rename
6017 legacy_convert_register_p.
6018 (legacy_register_to_value, legacy_value_to_register): Delete
6019 declarations.
6020
6021 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
6022 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
6023 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
6024 * gdbarch.h, gdbarch.c: Re-generate.
6025 * infcmd.c (default_print_registers_info): Simplify.
6026 * findvar.c (value_of_register): Simplify.
6027 * mi/mi-main.c (get_register): Simplify.
6028 * arch-utils.c (legacy_convert_register_p): Always return 0.
6029 (legacy_register_to_value, legacy_value_to_register): Always call
6030 internal_error.
6031
6032 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
6033 #ifdef CLEAR_INSN_CACHE code.
6034 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
6035 Delete #ifdef CLEAR_DEFERRED_STORES code.
6036
6037 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
6038
6039 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
6040 copyright.
6041 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
6042
6043 * config/mips/mipsv4.mh: Delete file.
6044
6045 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
6046 unreferenced macro.
6047 (hpread_adjust_stack_address): Delete declaration.
6048
6049 2004-06-08 Andrew Cagney <cagney@gnu.org>
6050
6051 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
6052 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
6053 PTRACE_ATTACH / PTRACE_DETACH available call error.
6054 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
6055 * infttrace.c (update_thread_state_after_attach, attach, detach):
6056 Remove #ifdef wrappers.
6057 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
6058 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
6059 * config/nm-bsd.h (ATTACH_DETACH): Delete.
6060 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
6061 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
6062 * config/nm-linux.h (ATTACH_DETACH): Delete.
6063 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
6064 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
6065 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
6066 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
6067 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
6068
6069 2004-06-08 Corinna Vinschen <vinschen@redhat.com>
6070
6071 * configure.in: Set $configdir to the right OS specific value.
6072 Use value when setting $tcldir and $tkdir.
6073 * configure: Regenerate.
6074
6075 2004-06-06 Paul Brook <paul@codesourcery.com>
6076
6077 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
6078 records.
6079
6080 2004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
6081
6082 * ada-lang.c (lookup_symbol_in_language): New function to allow
6083 re-use of another language's symbol lookup code. (Placed here
6084 temporarily while Ada support is being integrated into the public
6085 tree).
6086 (restore_language): New auxiliary function for
6087 lookup_symbol_in_language.
6088 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
6089 temporarily while Ada support is being integrated into the public
6090 tree).
6091
6092 2004-06-08 Alexandre Oliva <aoliva@redhat.com>
6093
6094 * Makefile.in (check//%): New.
6095
6096 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
6097 (mn10300_store_return_value): Rewrite.
6098 (mn10300_type_align): New.
6099 (mn10300_use_struct_convention): Rewrite.
6100 (mn10300_return_value): New, using all of the above.
6101 (mn10300_pop_frame_regular): Add saved_regs_size.
6102 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
6103
6104 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
6105 regs if PC is on movm.
6106
6107 2004-06-07 Jim Blandy <jimb@redhat.com>
6108
6109 Add native Linux support for the PowerPC E500.
6110 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
6111 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
6112 all architectures except the E500.
6113 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
6114 #definitions.
6115 (struct gdb_evrregset_t): New type.
6116 (have_ptrace_getsetevrregs): New variable.
6117 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
6118 fetch_spe_registers): New functions.
6119 (fetch_register): Call fetch_spe_register as appropriate.
6120 Assert that we're only passed raw register numbers.
6121 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
6122 Don't fetch gprs if they're pseudoregisters.
6123 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
6124 store_spe_registers): New functions.
6125 (store_register): Call store_spe_register as appropriate.
6126 Assert that we're only passed raw register numbers.
6127 (store_ppc_registers): Call store_spe_registers as appropriate.
6128 Don't store gprs if they're pseudoregisters.
6129
6130 2004-06-07 Jeff Johnston <jjohnstn@redhat.com>
6131
6132 * thread-db.c (thread_get_info_callback): Fill in the thread_info
6133 struct if one exists, even if we are dealing with a zombie thread.
6134
6135 2004-06-07 Andrew Cagney <cagney@gnu.org>
6136
6137 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
6138 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
6139 Rename PC_REQUIRES_RUN_BEFORE_USE.
6140 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
6141 #ifdef.
6142
6143 2004-06-07 Randolph Chung <tausq@debian.org>
6144
6145 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
6146 unwinding after sp has been saved to the stack but before the end
6147 of the prologue, and after the fp has been modified but before it has
6148 been saved to the stack.
6149 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
6150 Remove superfluous definitions.
6151 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
6152
6153 2004-06-07 Guy Martin <gmsoft@gentoo.org>
6154
6155 Committed by Randolph Chung.
6156 * hppa-linux-nat.c: Include the correct version of the header file
6157 depending on the kernel version.
6158
6159 2004-06-06 Randolph Chung <tausq@debian.org>
6160
6161 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
6162 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
6163
6164 2004-06-06 Randolph Chung <tausq@debian.org>
6165
6166 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
6167 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
6168 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
6169 * hppa-tdep.c (hppa_symbol_address): New function definition.
6170 * hppa-tdep.h (hppa_symbol_address): New function declaration.
6171
6172 2004-06-06 Randolph Chung <tausq@debian.org>
6173
6174 * hppa-tdep.h (struct value): Forward declaration.
6175 (gdbarch_tdep): Define tdep find_global_pointer method.
6176 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
6177 associated with the function we are trying to call, and write it
6178 to the gp register.
6179 (hppa32_convert_from_funct_ptr_addr): New function.
6180 (hppa_find_global_pointer): New function.
6181 (hppa_gdbarch_init): Set default find_global_pointer method; set
6182 convert_from_func_ptr_addr method.
6183 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
6184 (hppa_linux_init_abi): Set find_global_pointer method.
6185 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
6186
6187 2004-06-06 Randolph Chung <tausq@debian.org>
6188
6189 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
6190 to struct value *function.
6191 * gdbarch.c: Regenerate.
6192 * gdbarch.h: Likewise.
6193 * infcall.c (call_function_by_hand): Pass entire function value
6194 to push_dummy_call.
6195
6196 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
6197 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
6198 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
6199 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
6200 * arm-tdep.c (arm_push_dummy_call): Likewise.
6201 * avr-tdep.c (avr_push_dummy_call): Likewise.
6202 * cris-tdep.c (cris_push_dummy_call): Likewise.
6203 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
6204 * frv-tdep.c (frv_push_dummy_call): Likewise.
6205 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
6206 * hppa-tdep.c (hppa32_push_dummy_call)
6207 (hppa64_push_dummy_call): Likewise.
6208 * i386-tdep.c (i386_push_dummy_call): Likewise.
6209 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
6210 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
6211 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
6212 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
6213 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
6214 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
6215 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
6216 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
6217 (ppc64_sysv_abi_push_dummy_call): Likewise.
6218 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
6219 (ppc64_sysv_abi_push_dummy_call): Likewise.
6220 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
6221 * s390-tdep.c (s390_push_dummy_call): Likewise.
6222 * sh-tdep.c (sh_push_dummy_call_fpu)
6223 (sh_push_dummy_call_nofpu): Likewise.
6224 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
6225 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
6226 * vax-tdep.c (vax_push_dummy_call): Likewise.
6227
6228 2004-06-04 Jim Blandy <jimb@redhat.com>
6229
6230 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
6231 gdbarch argument to register_size.
6232
6233 * rs6000-tdep.c (rs6000_store_return_value): Use
6234 regcache_cooked_write_part instead of
6235 deprecated_write_register_bytes.
6236 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
6237 not gdbarch_deprecated_store_return_value.
6238
6239 * ppc-linux-nat.c (store_register, fetch_register): Remove
6240 incorrect assertions. Simplify and generalize handling of
6241 transfers whose sizes are not multiples of, or less than, sizeof
6242 (PTRACE_XFER_TYPE).
6243
6244 2004-06-04 Jeff Johnston <jjohnstn@redhat.com>
6245
6246 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
6247 as a new thread event.
6248 * thread-db.c (thread_get_info_callback): If the thread is a
6249 zombie, return TD_THR_ZOMBIE.
6250 (thread_from_lwp): If thread_get_info_callback returns
6251 TD_THR_ZOMBIE, check if the thread is still on the thread list
6252 and return a -1 ptid if not found.
6253 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
6254 change the status to TARGET_WAITKIND_SPURIOUS.
6255
6256 2004-06-03 Corinna Vinschen <vinschen@redhat.com>
6257
6258 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
6259 double values in little endian mode.
6260
6261 2004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
6262
6263 Committed by Andrew Cagney.
6264 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
6265 after last enum constant to avoid error from IBM C
6266 compiler.
6267
6268 2004-06-02 Jim Blandy <jimb@redhat.com>
6269
6270 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
6271 to 'message', and make it local to the lone block that uses it.
6272
6273 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
6274
6275 2004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
6276
6277 * ada-exp.y: Update copyright notice.
6278 Include block.h.
6279
6280 Replace REGNAME, LAST, INTERNAL_VARIABLE with
6281 SPECIAL_VARIABLE and unify the treatment of these cases.
6282
6283 (write_attribute_call0): Remove.
6284 (write_attribute_call1): Remove.
6285 (write_attribute_calln): Remove.
6286 (save_qualifier): Add missing semicolon.
6287
6288 (simple_exp,exp): Decomment (i.e., reactivate) code that was
6289 temporarily disabled to allow compilation with FSF head version.
6290
6291 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
6292 use individual operators (OP_*) for all attributes.
6293 (exp syntax): Use write_int.
6294 Handle STRING literals with OP_STRING.
6295 (variable syntax): Add limit parameter to calls to
6296 write_object_renaming.
6297
6298 (temp_parse_space): New definition to hold entities that need
6299 only live until the next call to ada_parse.
6300 (string_to_operator): Rename fields of ada_opname_table entries.
6301
6302 (write_var_from_sym): Record block.
6303 (write_var_from_name): Minor reformatting.
6304 Make sure saved name is properly encoded in the case of multiple
6305 matches, and set its language to Ada.
6306 Update comment.
6307 Modify to indicate unresolved name as symbol in the UNRESOLVED
6308 namespace, allocated in temp_parse_space.
6309 (write_int): New function.
6310
6311 (write_object_renaming): Add max_depth parameter to limit
6312 chains of object renamings.
6313 Handle case where root of renaming expression is itself a renaming.
6314 Use temp_parse_space for temporary name buffer.
6315 Handle renamings to dereferenced pointers (___XEXA suffices).
6316
6317 (ada_parse, yyerror, string_to_operator,
6318 write_var_from_sym, write_var_from_name, write_attribute_call0,
6319 write_attribute_call1, write_attribute_calln,
6320 write_object_renaming): Protoize.
6321
6322 (_initialize_ada_exp): New function.
6323
6324 * ada-lang.c: Update copyright notice.
6325 General terminology change to conform to GNAT compiler usage:
6326 mangle => encode, demangle => decode
6327 Include gdb_obstack.h.
6328 Include gdb_regex.h
6329 Include frame.h
6330 Include hashtab.h
6331 Include completer.h
6332 Include gdb_stat.h
6333 Include block.h
6334 Include infcall.h
6335
6336 (ADA_RETAIN_DOTS): Make sure this is defined.
6337 (TRUNCATION_TOWARDS_ZERO): Define.
6338 (struct string_vector): Define.
6339 (unresolved_names): Remove definition.
6340 (xnew_string_vector): New function.
6341 (string_vector_append): New function.
6342 (extract_string): Make static.
6343 (ada_unqualified_name): New function.
6344 (add_angle_brackets): New function.
6345 (function_name_from_pc): New function.
6346 (place_on_stack): Rename to ensure_lval.
6347
6348 (ensure_lval): Renamed from place_on_stack.
6349 Make identity on lvals.
6350 Update comment.
6351 (is_nonfunction): New interface.
6352 Only symbols in LOC_CONST class can be enumerals.
6353 (fill_in_ada_prototype): Remove; now independent of language.
6354 (add_defn_to_vec): Add obstack and symtab arguments.
6355 Use obstack to hold collected definitions.
6356 (num_defns_collected): New function.
6357 (defns_collected): New function.
6358 (ada_resolve_subexp): Rename to resolve_subexp.
6359 (resolve_subexp): Renamed from ada_resolve_subexp.
6360 (ada_op_name): Return non-const result.
6361 (ada_decoded_op_name): Renamed from ada_op_name, now used for
6362 other purposes.
6363
6364 (to_fixed_array_type): Add declaration.
6365 (coerce_unspec_val_to_type): Remove offset parameter.
6366 (find_sal_from_funcs_and_line): New interface.
6367 (find_line_in_linetable): Ditto.
6368
6369 (all_sals_for_line): Rename to ada_sals_for_line and make
6370 global.
6371 Add new parameter. When set, do not ask the user to choose the
6372 instance, but use the first one found instead.
6373 Use given line number in returned sals.
6374 Fix comment.
6375 Skip the prologue if funfirstline is set.
6376 Correct for memory leak when 0 lines found.
6377
6378 (value_pos_atr): Use pos_atr.
6379 (pos_atr): New function.
6380 (standard_lookup): Add block parameter.
6381
6382 (makeTimeStart): Remove declaration and uses.
6383 (makeTimeStop): Remove declaration and uses.
6384
6385 (ada_completer_word_break_characters): Allow for VMS.
6386 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
6387 (raise_sym_name): New constant.
6388 (raise_unhandled_sym_name): New constant.
6389 (raise_assert_sym_name): New constant.
6390 (process_raise_exception_name): New constant.
6391 (longest_exception_template): New constant.
6392 (warning_limit): New variable to limit warnings during expression
6393 evaluation.
6394 (warnings_issued): New variable to keep track of warnings issued.
6395 (known_runtime_file_name_patterns): New constant.
6396 (known_auxiliary_function_name_patterns): New constant.
6397 (symbol_list_obstack): New variable.
6398
6399 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
6400 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
6401 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
6402 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
6403 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
6404 ada_variant_discrim_name, field_alignment, dynamic_template_type,
6405 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
6406 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
6407 and strcmp.
6408
6409 (ada_get_field_index): New function.
6410 (lim_warning): New function.
6411 (ada_translate_error_message): New function.
6412 (MAX_OF_SIZE): New function.
6413 (MIN_OF_SIZE): New function.
6414 (UMAX_OF_SIZE): New function.
6415 (UMIN_OF_SIZE): New function.
6416 (discrete_type_high_bound): New function.
6417 (discrete_type_low_bound): New function.
6418 (base_type): New function.
6419 (do_command): Remove.
6420
6421 (ada_update_initial_language): Use language_ada, not language_unknown.
6422 (ada_encode): Renamed from ada_mangle.
6423 Obey ADA_RETAIN_DOTS.
6424 (ada_decode): Renamed from ada_demangle.
6425 Update coding conventions.
6426 (decoded_names_store): New hash table.
6427 (ada_decode_symbol): New function.
6428 (ada_la_decode): New function.
6429
6430 (modify_general_field): Correct computations of offset and bit
6431 position.
6432 (desc_base_type): Handle ref types, too.
6433 (ada_is_direct_array_type): New function.
6434
6435 (ada_is_simple_array): Rename to ada_is_simple_array_type.
6436 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
6437 (ada_is_bogus_array_descriptor,ada_type_of_array,
6438 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
6439 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
6440 ada_is_array_descriptor_type.
6441
6442 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
6443 (ada_is_packed_array_type): Handle pointers or
6444 references to packed arrays as well.
6445 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
6446 (decode_packed_array_type): Search for the packed array type
6447 symbol in the currently selected block and associated
6448 superblocks too.
6449 Use lookup_symbol again.
6450
6451 (decode_packed_array): Handle pointers and references.
6452 Update call to coerce_unspec_val_to_type.
6453 (decode_packed_array_type,value_subscript_packed): Limit warnings.
6454 (ada_value_primitive_packed_val): Improve comment.
6455
6456 (ada_index_type): Substitute int type for "undefined".
6457 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
6458 ada_array_langth, ada_is_string_type): Use renamed
6459 ada_is_simple_array_type.
6460 (empty_array): New function.
6461
6462 (ada_resolve): Rename to resolve.
6463 (resolve): Make static.
6464 Call renamed resolve_subexp.
6465 Update comment.
6466 (ada_resolve_subexp): Rename to resolve_subexp.
6467 (resolve_subexp): Update comment.
6468 Decomment disabled code.
6469 Add LOC_COMPUTED* cases.
6470 Modify to use temporary struct symbols (marked as being in
6471 UNDEF_NAMESPACE) to indicate unresolved names, instead of
6472 OP_UNRESOLVED_VALUE.
6473 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
6474 Add OP_STRING case.
6475 Remove OP_ARRAY.
6476 Use SYMBOL_PRINT_NAME instead of ada_demangle.
6477 Use new ada_lookup_symbol_list interface.
6478 Use new ada_resolve_function interface.
6479 Remove OP_TYPE case.
6480
6481 (ada_args_match): Idiot proof against null actuals.
6482 Use intermediate variables to clarify.
6483 (ada_resolve_function): Update comment and interface.
6484 (mangled_ordered_before): Rename to encoded_ordered_before and
6485 update comment.
6486 (sort_choices): Update comment and interface.
6487 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
6488 (user_select_syms): New interface.
6489 Use new sort_choices interface.
6490 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
6491 (possible_user_operator_p): Idiot-proof against null values.
6492 (ada_simple_renamed_entity): Don't make cleanup; rely on
6493 caller to free result string.
6494 Remove const from return type.
6495 (make_array_descriptor): Rename uses of place_on_stack to
6496 ensure_lval.
6497 Make sure that arrays are on stack.
6498
6499 (HASH_SIZE): Define.
6500 (struct cache_entry): Define.
6501 (cache_space): Define.
6502 (cache): Define.
6503 (clear_ada_sym_cache): New function.
6504 (find_entry): New function.
6505 (lookup_cached_symbol): New function.
6506 (defn_vector_size): Define.
6507 (cache_symbol): New function.
6508 (defn_symbols): Remove.
6509
6510 (standard_lookup): Use lookup_symbol_in_language to get effect of
6511 C lookup.
6512 Cache results.
6513
6514 (symbol_completion_match): New function.
6515 (symbol_completion_add): New function.
6516 (ada_make_symbol_completion_list): New function.
6517
6518 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
6519 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
6520 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
6521 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
6522
6523 (ada_lookup_simple_minsym): New function.
6524 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
6525
6526 (add_symbols_from_enclosing_procs): New interface.
6527 Conditionalize more helpfully.
6528 Don't bother if program isn't running.
6529 Use new interface to get_frame_block.
6530 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
6531
6532 (remove_extra_symbols): New interface.
6533 (xget_renaming_scope): New function.
6534 (is_package_name): New function.
6535 (renaming_is_visible): New function.
6536 (remove_out_of_scope_renamings): New function.
6537
6538 (ada_lookup_symbol_list): New interface.
6539 Properly reinitialize the symbol list obstack.
6540 Don't call add_symbols_from_enclosing_procs if we start from a
6541 static or global block.
6542 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
6543 add_symbols_from_enclosing_procs.
6544 Add symtab data to cached entries.
6545 Handle symbols prefixed with
6546 "standard__" specially; strip prefix and don't look in local symbols.
6547 Do not include out of scope renaming symbols in list of
6548 symbols returned.
6549 Add const to block parameter.
6550 Move check for non-local, non-global symbols earlier.
6551 Remove timing stuff.
6552 (ada_lookup_symbol): New interface.
6553 Find symtab as well.
6554 (ada_lookup_symbol_nonlocal): New function.
6555
6556 (is_name_suffix): Enhance suffix detection to recognize
6557 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
6558 (is_dot_digits_suffix): New function.
6559 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
6560
6561 (ada_add_block_symbols): New interface. Use obstack to return results
6562 in a vector of struct ada_symbol_infos. Add symtab argument.
6563 Use new interface to add_defn_to_vec.
6564 Remove calls to fill_in_ada_prototype.
6565 Use BLOCK_BUCKETS, BLOCK_BUCKET.
6566
6567 (ada_finish_decode_line_1): Add const qualification to local to fix
6568 warning.
6569 Start looking in static block for functions to avoid attempts
6570 to search frame chain for up-level variables.
6571 Adapt to new ada_sals_for_line interface.
6572 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
6573 Handle quoting of the function name inside the spec string.
6574 Skip prologue when funfirstline is set and update the
6575 function documentation to that effect.
6576
6577 (debug_print_lines, debug_print_block, debug_print_blocks,
6578 debug_print_symtab): Remove.
6579
6580 (ada_main_name): New function.
6581 (ada_exception_breakpoint_type): New function.
6582 (is_known_support_routine): New function.
6583 (ada_find_printable_frame): Renamed from find_printable_frame and made
6584 global.
6585 Remove level parameter.
6586 Use new interface to select_frame.
6587
6588 (begin_command): Remove.
6589 (ada_adjust_exception_stop): New function.
6590 (ada_print_exception_stop): New function.
6591 (exception_name_from_cond): New function.
6592 (ada_report_exception_break): Replace disabled code with
6593 conditionalization on GNAT_GDB.
6594 Get the exception name from the condition string.
6595 Remove and move functionality into new functions
6596 ada_print_exception_breakpoint_task and
6597 ada_print_exception_breakpoint_nontask.
6598 (error_breakpoint_runtime_sym_not_found): New function.
6599 (is_runtime_sym_defined): New function.
6600 (ada_breakpoint_rewrite): Uncomment suppressed code.
6601 Use symbolic error-message and runtime-symbol names.
6602 Surround runtime symbol names in quotes.
6603 Allow non-specific breakpoints on exceptions and assertions before
6604 program starts.
6605
6606 (ada_is_tagged_type): Add parameter.
6607 (ada_is_tag_type): New function.
6608 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
6609 (ada_variant_discrim_type): Ditto.
6610 (value_tag_from_contents_and_address): New function.
6611 (type_from_tag): New function.
6612 (struct tag_args): New structure used to communicate with
6613 ada_tag_name_1.
6614 (ada_tag_name_1): New function.
6615 (ada_tag_name): New function.
6616
6617 (ada_scan_number): Update comment.
6618 (find_struct_field): New function.
6619 (ada_search_struct_field): Make static.
6620 (ada_value_struct_elt): New version that returns references when
6621 given pointers or references to structs.
6622 (ada_lookup_struct_elt_type): Add 'refok' parameter.
6623 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
6624 interface.
6625 (ada_value_ind): Use new ada_to_fixed_value interface.
6626 (ada_coerce_ref): Ditto.
6627 (field_offset): Remove.
6628
6629 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
6630 (ada_find_renaming_symbol): New function.
6631 (ada_prefer_type): Prefer named types over unnamed ones.
6632 (variant_field_index): New function.
6633 (contains_variant_part): Removed: subsumed by variant_field_index.
6634 (ada_template_to_fixed_record_type): New function, mostly from
6635 template_to_fixed_record_type.
6636 (template_to_fixed_record_type):
6637 Do not scan the type fields beyond the last one; prevents a
6638 potential SEGV.
6639 Handle case where variant field is listed BEFORE discriminant it
6640 depends on.
6641 Fix calculation of record length when bit length is
6642 not evenly divisible by char length.
6643 Move code to ada_template_to_fixed_record_type and call it.
6644
6645 (template_to_static_fixed_type): Revise comment.
6646 Modify to work on ordinary record types as well as templates,
6647 so as to handle fields that use ___XVE or ___XVU encodings.
6648 (to_record_with_fixed_variant_part): Fill out comment.
6649 Initialize C++ stuff in right type.
6650 Allow case where DVAL is null.
6651 Handle case where variant field is not last.
6652 Fix typo concerning record length.
6653 (to_fixed_record_type): Decomment disabled code.
6654 (to_fixed_record_type): Use variant_field_index instead of
6655 contains_variant_part.
6656 (to_fixed_variant_branch_type): Ditto.
6657 (to_fixed_array_type): Decomment disabled code.
6658 (ada_to_fixed_type): Convert tagged types to the specific type.
6659 Deactivate the size-check for array types in order to avoid
6660 some false size alarms.
6661 (to_static_fixed_type): Decomment disabled code.
6662 Modify to call template_to_static_fixed_type
6663 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
6664 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
6665 Remove valaddr argument, as it is never really used.
6666 (ada_to_fixed_value): Change interface to act on single struct value*
6667 operand.
6668 (adjust_pc_past_prologue): New function.
6669 (ada_attribute_name): Modify to take enum exp_opcode argument.
6670
6671 (ada_enum_name): Recognize new homonym-distinguishing convention.
6672 Adjust local variable's type to remove compiler warning.
6673 Fix a small problem in the part that unqualifies the enumeration name.
6674 (ada_value_binop): New function.
6675 (ada_value_equal): New function.
6676
6677 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
6678 Don't give error message when not doing normal evaluation
6679 and a tagged type doesn't seem to contain a structure member.
6680 Give error message for packed arrays.
6681 For indexing arrays, handle pointers to packed arrays correctly.
6682 Handle case of 'first and 'last attributes of bare integral type
6683 without encoded subtype info.
6684 Remove some unnecessary casts.
6685 Fix uninitialized value of type in computing 'first, 'last, or 'length
6686 of array object.
6687 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
6688 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
6689 calls.
6690 Attributes are now exp_opcode values.
6691 Correct treatment of 'modulus.
6692 Better error message for taking 'length of wrong kind of type;
6693 improve comment.
6694 Change EVAL_NORMAL to noside for consistency.
6695 Use ada_value_binop for DIV, MOD, REM.
6696 Make special case out of array of length 0, since an argument
6697 of 0 upsets some platforms' malloc.
6698 Use OP_STRING instead of OP_ARRAY.
6699 For slice, add check that we have an array type before extracting
6700 a slice out of it. Avoids a SEGV.
6701 When evaluating an array slice, if the array type is a reference to
6702 an aligner type, then replace the aligner type by the actual type.
6703 Decomment disabled code.
6704 Remove some dead code.
6705 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
6706 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
6707 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
6708 and UNOP_MBR to UNOP_IN_RANGE.
6709 If an array type has a parallel ___XVE type, then use it.
6710 Turn arrays into pointers for lvalue arrays.
6711 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
6712 bounds error and handle 0-length slices.
6713 Use lim_warning.
6714 When selecting fields, apply ada_to_fixed_value (because the fields
6715 might have ___XVU or ___XVE encodings even if not dynamic.)
6716 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
6717 (ada_is_system_address_type): New function.
6718
6719 (get_var_value): Use new interface to ada_lookup_symbol_list.
6720 (get_int_var_value): New interface.
6721 (to_fixed_range_type): Allow unknown bound, with warning.
6722 (ada_is_modular_type): Decomment disabled code.
6723 (ADA_OPERATORS): New definition.
6724 (ada_operator_length): New function.
6725 (ada_expr_op_name): New function.
6726 (ada_forward_operator_length): New function.
6727 (ada_dump_subexp_body): New function.
6728 (ada_print_subexp): New function.
6729 (ada_exp_descriptor): New constant.
6730 (ada_op_print_tab): Add 'size. Remove FIXMEs.
6731 (ada_language_defn): Add ada_exp_descriptor entry.
6732 Change ada_parse => parse.
6733 Add post-parser entry.
6734 Use ada-specific non-local symbol lookup.
6735 Don't use C-style arrays.
6736 String lower-bound is 1.
6737 Decomment disabled code.
6738 (parse): New function.
6739 New fields ada_translate_error_message, ada_lookup_symbol,
6740 ada_lookup_minimal_symbol.
6741
6742 * ada-lang.h: Update copyright dates.
6743 Replace the mangle/demangle terminology throughout by the
6744 more appropriate encode/decode one.
6745 Include breakpoint.h.
6746 Forward declare struct partial_symbol, struct block.
6747 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
6748 (EXTRACT_ADDRESS): Remove.
6749 (EXTRACT_INT): Remove.
6750 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
6751 (MAX_ENCLOSING_FRAME_LEVELS): Define.
6752 (MAX_RENAMING_CHAIN_LENGTH): Define.
6753 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
6754
6755 (enum task_states): Remove.
6756 ada_task_states: Remove.
6757 (fat_string): Remove.
6758 (struct entry_call): Remove.
6759 (struct task_fields): Remove.
6760 (struct task_entry): Remove.
6761
6762 (struct ada_symbol_info): Define.
6763 (enum ada_attribute): Remove.
6764 (enum ada_operator): Define.
6765
6766 (ada_get_field_index): Declare.
6767 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
6768 (ada_is_simple_array): Rename to ada_is_simple_array_type.
6769 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
6770 (ada_lookup_symbol_list): New interface.
6771 (ada_decode_symbol): Declare.
6772 (ada_decode): Declare.
6773 (ada_lookup_symbol): New interface.
6774 (ada_update_initial_language): Declare.
6775 (ada_lookup_simple_minsym): Declare.
6776 (user_select_syms): New interface.
6777 (ada_sals_for_line): Declare.
6778 (ada_is_tagged_type): New interface.
6779 (ada_tag_name): Declare.
6780 (ada_lookup_struct_elt_type): Remove declaration.
6781 (ada_search_struct_field): Remove declaration.
6782 (ada_attribute_name): New interface.
6783 (ada_is_system_address_type): Declare.
6784 (ada_to_fixed_value): Remove declaration.
6785 (ada_template_to_fixed_record_type_1): Declare.
6786 (get_int_var_value): New interface.
6787 (ada_find_any_symbol): Declare.
6788 (ada_find_renaming_symbol): Declare.
6789 (ada_mangle): Rename to ada_encode.
6790 (ada_simple_renamed_entity): Remove const.
6791 (ada_main_name): Declare.
6792 (get_current_task): Rename to ada_get_current_task.
6793 (get_entry_number): Remove declaration.
6794 (ada_report_exception_break): Remove declaration.
6795 (ada_print_exception_breakpoint_nontask): Declare.
6796 (ada_print_exception_breakpoint_task): Declare.
6797 (ada_find_printable_frame): Declare.
6798
6799 * ada-lex.l: Update copyright notices.
6800 Use xmalloc and xfree instead of malloc and free.
6801 Use new interface to name_lookup.
6802 Use new interface to
6803 ada_mangle=>ada_encode.
6804 Redo handling of '$...' variable to parallel current treatment
6805 in c-exp.y.
6806 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
6807 digit_to_int, strtoulst, processInt, processReal, processId,
6808 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
6809 yywrap): Protoize.
6810
6811 (processInt): Use cast to remove harmless warning.
6812 (processReal): Modify to get rid of compiler warning on scan formats.
6813
6814 (processId): Replace xmalloc with obstack_alloc for name and remove
6815 call to ada_name_string_cleanup.
6816 Remove obsolete disabled code.
6817 (name_lookup): Ditto.
6818 New interface.
6819 Use obsavestring on temp_parse_space instead of savestring
6820 on name, and remove call to ada_name_string_cleanup.
6821 Free string returned from ada_simple_renamed_entity.
6822 Use new interface to ada_lookup_symbol_list.
6823 Decomment disabled code.
6824 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
6825 not types.
6826 When a type name lookup succeeds as a result of
6827 lookup_primitive_typename, check for regular type entry that has not
6828 yet been read in.
6829 Limit length of chain of renamed symbols we are willing to follow.
6830 Do not break names beginning with "standard__" into segments.
6831 (block_lookup): Use new interface to ada_lookup_symbol_list.
6832
6833 * ada-typeprint.c: Update copyright notice.
6834 (demangled_type_name): Rename to decoded_type_name.
6835 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
6836 (print_range_bound): Correct handling of negative
6837 bounds that make the index type looked unsigned under STABS.
6838 (print_dynamic_range_bound): Use new interface to get_int_var_value.
6839 (print_range_type_named): Use the builtin int type if no type
6840 corresponding to the given type name could be found.
6841 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
6842 Add some bullet-proofing.
6843 (print_variant_clauses): Allow for variant branches with ___XVU
6844 encodings that are not dynamic fields.
6845 Use new interface to ada_is_tagged_type.
6846 (print_record_type): Allow for fields with ___XVE encodings that
6847 are not dynamic fields.
6848 Use new interface to ada_is_tagged_type.
6849 (ada_print_type): ada_is_array_descriptor =>
6850 ada_is_array_descriptor_type.
6851
6852 * ada-valprint.c: Update copyright notice.
6853 Include gdb_string.h
6854 Include infcall.h
6855 (ui_memcpy): New function.
6856 (ada_print_floating): New function.
6857 (ada_print_str): Order arguments correctly.
6858 Correct handling of empty arrays and arrays of 0-length items.
6859 ada_is_array_descriptor => ada_is_array_descriptor_type
6860 Print values of type System.Address in hexadecimal format.
6861 Use ada_print_floating to print floating-point numbers in Ada format.
6862 Print class tag values with type names.
6863 No longer print the address of reference values. Avoids
6864 a potential confusion.
6865 (ada_value_print): Stop printing the object type for reference
6866 values, but preserve that behavior for access types. Avoids
6867 a potential confusion.
6868 Simplify one conditional expression, as the first part is now
6869 necessarily true.
6870 ada_is_array_descriptor => ada_is_array_descriptor_type
6871 Add check for arrays for null records, and print them by hand.
6872
6873 2004-06-01 Jim Blandy <jimb@redhat.com>
6874
6875 * ppc-tdep.h: Delete unused 'regoff' member.
6876 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
6877
6878 2004-06-01 Michael Chastain <mec.gnu@mindspring.com>
6879
6880 Fix PR symtab/1661.
6881 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
6882 (hpread_read_struct_type): Likewise.
6883
6884 2004-06-01 Andrew Cagney <cagney@gnu.org>
6885
6886 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
6887 instead of xasprintf.
6888 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
6889 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
6890 (mi_cmd_data_list_register_names)
6891 (mi_cmd_data_list_changed_registers)
6892 (mi_cmd_data_list_register_values)
6893 (get_register, mi_cmd_data_write_register_values)
6894 (mi_cmd_data_write_register_values)
6895 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
6896 (mi_cmd_target_download, mi_cmd_target_select)
6897 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
6898 (mi_execute_cli_command, mi_execute_async_cli_command)
6899 (mi_execute_async_cli_command): Ditto.
6900 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
6901 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
6902
6903 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
6904 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
6905 error_last_message instead of mi_error_last_message.
6906 * mi/mi-main.c (mi_error_last_message): Delete function.
6907
6908 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
6909 "invalid number of columns" error. Delete redundant "out of
6910 memory" check.
6911
6912 2004-05-31 Mark Kettenis <kettenis@gnu.org>
6913
6914 * i386bsd-nat.c: Don't include <sys/procfs.h>.
6915 (gregset_t, fpregset_t): Remove typedefs.
6916 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
6917 (REG_OFFSET): Rename argument.
6918 (i386bsd_r_reg_offset): Rename from reg_offset.
6919 (REG_ADDR): Remove macro.
6920 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
6921 functions.
6922 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
6923 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
6924 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
6925 instead of supply_gregset.
6926 (store_inferior_registers): Use `struct reg' and `struct fpreg'
6927 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
6928 instead of fill_gregset.
6929 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
6930
6931 * i386bsd-nat.c: Don't include "gregset.h".
6932 (supply_gregset, fill_gregset): Make static.
6933 (supply_fpregset, fill_fpregset): Remove.
6934 * Makefile.in (i386bsd-nat.o): Update dependencies.
6935
6936 2004-05-30 Mark Kettenis <kettenis@gnu.org>
6937
6938 * fbsd-proc.c: Include "regcache.h", "regset.h" and
6939 "gdb_assert.h". Con't include "gregset.h".
6940 (fbsd_make_corefile_notes): Use regset-based core file support
6941 instead off fill_gregset and fill_fpregset.
6942 * Makefile.in (fbsd-proc.o): Update dependencies.
6943
6944 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
6945 instructions.
6946 (m88k_frame_prev_register): Simplify code a bit.
6947
6948 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
6949 (amd64_collect_fpregset): New function.
6950 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
6951
6952 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
6953
6954 * i386-tdep.c (i386_supply_gregset): Adjust comment.
6955 (i386_collect_gregset): New function.
6956 (i386_supply_fpregset): Adjust comment.
6957 (i386_collect_fpregset): New function.
6958 (i386_regset_from_core_section): Use i386_collect_gregset and
6959 i386_collect_fpregset.
6960
6961 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
6962 handle VALUEP being null.
6963
6964 * regset.h (collect_regset_ftype): Unconstify fourth argument.
6965
6966 2004-05-29 Mark Kettenis <kettenis@gnu.org>
6967
6968 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
6969
6970 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
6971 assembler in OpenBSD 3.5-current.
6972 (amd64obsd_sigcontext_addr): Likewise.
6973
6974 2004-05-28 Jim Blandy <jimb@redhat.com>
6975
6976 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
6977 register set, so our regcache isn't declared "legacy" and our E500
6978 pseudoregister read and write functions aren't ignored.
6979 (rs6000_register_byte, rs6000_register_raw_size,
6980 rs6000_register_virtual_type, rs6000_register_convertible,
6981 rs6000_register_convert_to_virtual,
6982 rs6000_register_convert_to_raw): Deleted.
6983 (rs6000_register_type, rs6000_convert_register_p,
6984 rs6000_register_to_value, rs6000_value_to_register): New
6985 functions.
6986 (rs6000_gdbarch_init): Don't register
6987 gdbarch_deprecated_register_size,
6988 gdbarch_deprecated_register_bytes,
6989 gdbarch_deprecated_register_byte,
6990 gdbarch_deprecated_register_raw_size,
6991 gdbarch_deprecated_register_virtual_type,
6992 gdbarch_deprecated_register_convertible,
6993 gdbarch_deprecated_register_convert_to_virtual, or
6994 gdbarch_deprecated_register_convert_to_raw methods. Instead,
6995 register gdbarch_register_type, gdbarch_convert_register_p,
6996 gdbarch_register_to_value, and gdbarch_value_to_register methods.
6997
6998 2004-05-26 Jim Blandy <jimb@redhat.com>
6999
7000 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
7001 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
7002 functions, updated to match the register numberings used in GCC.
7003 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
7004 rs6000_dwarf2_reg_to_regnum as register number conversions
7005 functions for STABS and Dwarf2.
7006
7007 2004-05-26 Randolph Chung <tausq@debian.org>
7008
7009 * infttrace.h (target_waitkind): Forward declare type instead of pulling
7010 in header file.
7011
7012 2004-05-25 Joel Brobecker <brobecker@gnat.com>
7013
7014 * NEWS: Document new "start" command.
7015
7016 2004-05-25 Randolph Chung <tausq@debian.org>
7017
7018 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
7019 hppa-linux.
7020
7021 2004-05-25 Randolph Chung <tausq@debian.org>
7022
7023 * hppa-hpux-tdep.c (offsetof): Define.
7024 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
7025 (hppa32_hpux_frame_base_before_sigtramp)
7026 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
7027 (hppa64_hpux_frame_saved_pc_in_sigtramp)
7028 (hppa64_hpux_frame_base_before_sigtramp)
7029 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
7030 functions.
7031 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
7032 (hppa_hpux_sigtramp_frame_unwind_cache)
7033 (hppa_hpux_sigtramp_frame_this_id)
7034 (hppa_hpux_sigtramp_frame_prev_register)
7035 (hppa_hpux_sigtramp_frame_unwind)
7036 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
7037 (hppa_hpux_init_abi): Register sigtramp unwinder.
7038 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
7039
7040 2004-05-25 Randolph Chung <tausq@debian.org>
7041
7042 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
7043 and multiple stack unwinds.
7044 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
7045
7046 2004-05-25 Andrew Cagney <cagney@gnu.org>
7047
7048 * symfile.h (symbol_file_add_from_memory): Delete declaration.
7049 * symfile-mem.h: Delete file.
7050 * symfile-mem.c: Do not include "symfile-mem.h".
7051 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
7052 "struct bfd_section". When an error do not bother returning NULL.
7053 (add_symbol_file_from_memory_command): Use "struct bfd" and
7054 "struct bfd_section".
7055 * Makefile.in (symfile_mem_h): Delete.
7056 (symfile-mem.o): Update dependencies.
7057
7058 2004-05-25 Nick Roberts <nickrob@gnu.org>
7059
7060 * gdb-mi.el: New file.
7061
7062 2004-05-25 Andrew Cagney <cagney@gnu.org>
7063
7064 * inftarg.c: Include "observer.h".
7065 (child_attach, child_create_inferior): Notify inferior_created.
7066 * corelow.c: Include "observer.h".
7067 (core_open): Notify inferior_created.
7068 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
7069
7070 2004-05-25 Andrew Cagney <cagney@gnu.org>
7071
7072 * target.h (struct target_ops): Add from_tty to
7073 to_create_inferior.
7074 (target_create_inferior, find_default_create_inferior): Update.
7075 * infcmd.c (run_command): Update.
7076 * wince.c (child_create_inferior): Update.
7077 * win32-nat.c (child_create_inferior): Update.
7078 * uw-thread.c (uw_thread_create_inferior): Update.
7079 * thread-db.c (thread_db_create_inferior): Update.
7080 * target.c (debug_to_create_inferior)
7081 (find_default_create_inferior): Update.
7082 (maybe_kill_then_create_inferior): Update.
7083 * sol-thread.c (sol_thread_create_inferior): Update.
7084 * remote.c (extended_remote_async_create_inferior)
7085 (extended_remote_create_inferior): Update.
7086 * remote-vx.c (vx_create_inferior): Update.
7087 * remote-st.c (st2000_create_inferior): Update.
7088 * remote-sim.c (gdbsim_create_inferior): Update.
7089 * remote-sds.c (sds_create_inferior): Update.
7090 * remote-rdp.c (remote_rdp_create_inferior): Update.
7091 * remote-rdi.c (arm_rdi_create_inferior): Update.
7092 * remote-m32r-sdi.c (m32r_create_inferior): Update.
7093 * remote-e7000.c (e7000_create_inferior): Update.
7094 * procfs.c (procfs_create_inferior): Update.
7095 * ocd.c (ocd_create_inferior): Update.
7096 * ocd.h (ocd_create_inferior): Update.
7097 * nto-procfs.c (procfs_create_inferior): Update.
7098 * monitor.c (monitor_create_inferior): Update.
7099 * lin-lwp.c (lin_lwp_create_inferior): Update.
7100 * inftarg.c (child_create_inferior): Update.
7101 * hpux-thread.c (hpux_thread_create_inferior): Update.
7102 * gnu-nat.c (gnu_create_inferior): Update.
7103
7104 2004-05-25 Andrew Cagney <cagney@gnu.com>
7105
7106 * MAINTAINERS: Update e-mail address.
7107
7108 2004-05-24 Randolph Chung <tausq@debian.org>
7109
7110 * thread.c (info_threads_command, thread_apply_all_command)
7111 (thread_apply_command, thread_command, do_captured_thread_select):
7112 Remove HPUXHPPA-specific code.
7113
7114 2004-05-24 Randolph Chung <tausq@debian.org>
7115
7116 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
7117 unused symbols.
7118 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
7119 references.
7120
7121 2004-05-24 Joel Brobecker <brobecker@gnat.com>
7122
7123 * infcmd.c (kill_if_already_running): New function, extracted
7124 from run_command().
7125 (run_command): Replace extracted code by call to
7126 kill_if_already_running().
7127 (start_command): New function.
7128 (_initialize_infcmd): Add "start" command.
7129
7130 2004-05-24 Mark Kettenis <kettenis@gnu.org>
7131
7132 Add OpenBSD/m88k support.
7133 * NEWS (New native configurations): Mention OpenBSD/m88k.
7134 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
7135 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
7136 * Makefile.in (m88k_tdep_h): New variable.
7137 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
7138 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
7139 * configure.host: Add m88*-*-openbsd*.
7140 * configure.tgt: Add m88*-*-openbsd*.
7141
7142 2004-05-24 Jim Blandy <jimb@redhat.com>
7143
7144 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
7145 to approve changes.
7146
7147 2004-05-24 Kevin Buettner <kevinb@redhat.com>
7148
7149 * symtab.c (fixup_section): Search section table when lookup by
7150 name fails.
7151
7152 2004-05-24 Randolph Chung <tausq@debian.org>
7153
7154 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
7155 be "small_struct".
7156
7157 2004-05-24 Mark Kettenis <kettenis@gnu.org>
7158
7159 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
7160 register number in regcache_raw_collect call.
7161 (m68kbsd_collect_fpregset): Likewise.
7162 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
7163
7164 * regset.h (struct regset): Add back `regset' member.
7165
7166 2004-05-23 Mark Kettenis <kettenis@gnu.org>
7167
7168 * configure.in: Check for td_pcb in `struct thread'.
7169 * configure, config.in: Regenerated.
7170
7171 * dpx2-nat.c: Remove file.
7172 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
7173 (dpx2-nat.o): Remove dependencies.
7174
7175 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
7176 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
7177 (amd64obsd_supply_pcb): New function.
7178 (_initialize_amd64obsd_nat): Enable libkvm interface.
7179 * Makefile.in (amd64obsd-nat.o): Update dependencies.
7180 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
7181 (LOADLIBES): New variable.
7182
7183 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
7184 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
7185 (sparc32nbsd_supply_pcb): New function.
7186 (_initialize_sparcnbsd_nat): Enable libkvm interface.
7187 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
7188 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
7189 (LOADLIBES): New variable.
7190
7191 2004-05-22 Mark Kettenis <kettenis@gnu.org>
7192
7193 * bsd-kvm.c, bsd-kvm.h: New files.
7194 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
7195 "bsd-kvm.h".
7196 (i386fbsd_supply_pcb): New function.
7197 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
7198 (i386fbsd-nat.o): Update dependencies.
7199 (bsd_kvm_h): New variable.
7200 (bsd-kvm.o): New dependency.
7201 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
7202 (LOADLIBES): New variable.
7203
7204 * regset.c: Tweak comment.
7205 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
7206 macro.
7207 * regset.h: Update copyright year.
7208 (struct regset): Remove `descr' member, add `gdbarch' member.
7209 (regset_alloc): Adjust prototype and comment.
7210 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
7211 (i386_supply_fpregset): Likewise.
7212 (i386_regset_from_core_section): Update call to regset_alloc.
7213 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
7214 REGSET->arch.
7215 (i386obsd_aout_regset_from_core_section): Update call to
7216 regset_alloc.
7217 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
7218 REGSET->arch.
7219 (i386nbsd_aout_regset_from_core_section): Update call to
7220 regset_alloc.
7221 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
7222 REGSET->arch.
7223 (amd64_regset_from_core_section): Update call to regset_alloc.
7224 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
7225 REGSET->arch.
7226 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
7227 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
7228 &sparc32nbsd_gregset in sparc32_supply_gregset call.
7229 (sparc32nbsd_init_abi): Update call to regset_alloc.
7230 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
7231 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
7232 (sparc64obsd_init_abi): Update call to regset_alloc.
7233 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
7234 &sparc64nbsd_gregset in sparc64_supply_gregset call.
7235 (sparc64nbsd_init_abi): Update call to regset_alloc.
7236 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
7237 &sparc64fbsd_gregset in sparc64_supply_gregset call.
7238 (sparc64fbsd_init_abi): Update call to regset_alloc.
7239
7240 2004-05-22 Jim Blandy <jimb@redhat.com>
7241
7242 * ppc-tdep.h (spe_register_p): New declaration.
7243 (struct gdbarch_tdep): New members: ppc_acc_regnum and
7244 ppc_spefscr_regnum.
7245 * rs6000-tdep.c (spe_register_p): New function.
7246 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
7247 spefscr.
7248 (rs6000_gdbarch_init): Initialize the new members of the tdep
7249 structure.
7250
7251 2004-05-21 Jim Blandy <jimb@redhat.com>
7252
7253 * ppc-linux-nat.c (fetch_register): Move code back to be next
7254 to the comment that describes it. (Moved code, instead of
7255 comment, for symmetry with store_register.)
7256
7257 Allocate regset structures in the gdbarch's obstack, not using
7258 xmalloc.
7259 * regset.c (regset_alloc): Renamed from regset_xmalloc.
7260 Add 'arch' argument. Allocate the regset on arch's obstack, not
7261 using xmalloc.
7262 * regset.h (regset_alloc): Update declaration.
7263 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
7264 gdbarch argument.
7265 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7266 * i386-tdep.c (i386_regset_from_core_section): Same.
7267 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7268 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7269 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7270 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7271 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7272 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7273
7274 2004-05-21 Joel Brobecker <brobecker@gnat.com>
7275
7276 * config/djgpp/fnchange.lst: Undo previous change, was useless.
7277
7278 2004-05-21 Jim Blandy <jimb@redhat.com>
7279
7280 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
7281 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
7282
7283 2004-05-20 Jim Blandy <jimb@redhat.com>
7284
7285 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
7286
7287 2004-05-20 Mark Kettenis <kettenis@gnu.org>
7288
7289 * regset.h: Make prototype const-correct.
7290 * regset.c (regset_xmalloc): Make const-correct.
7291
7292 2004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
7293
7294 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
7295 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
7296 (symbol_search_name): Declare.
7297
7298 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
7299 (iter_name_next_hashed): Ditto.
7300 (iter_name_next_linear): Ditto.
7301 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
7302
7303 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
7304 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
7305 (symbol_search_name): New function.
7306
7307 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
7308
7309 * minsyms.c (build_minimal_symbol_hash_tables): Change
7310 test for adding to demangled hash table to check for difference
7311 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
7312
7313 2004-05-19 Jim Blandy <jimb@redhat.com>
7314
7315 Use a constructor function to create regset structures.
7316 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
7317 (struct regset): Use supply_regset_ftype. Add new
7318 'collect_regset' member.
7319 (regset_xmalloc): New declaration.
7320 * regset.c: New file.
7321 * am64-tdep.c (amd64_regset_from_core_section): Use
7322 regset_xmalloc to construct regset structures.
7323 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7324 * i386-tdep.c (i386_regset_from_core_section): Same.
7325 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7326 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7327 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7328 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7329 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7330 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7331 * Makefile.in (COMMON_OBS): Add regset.o.
7332 (regset.o): New rule.
7333
7334 2004-05-19 Joel Brobecker <brobecker@gnat.com>
7335
7336 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
7337 and pthread_cond_wait.c.
7338
7339 2004-05-18 Jim Blandy <jimb@redhat.com>
7340
7341 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
7342 before the mach-specific switch, and then let the individual cases
7343 override the defaults, rather than leaving them uninitialized
7344 until the switch and then setting them in each case.
7345
7346 2004-05-18 Randolph Chung <tausq@debian.org>
7347
7348 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
7349 millicode functions.
7350
7351 2004-05-18 Randolph Chung <tausq@debian.org>
7352
7353 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
7354 references to dld_flags_buffer consistent.
7355
7356 2004-05-18 Randolph Chung <tausq@debian.org>
7357
7358 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
7359 it for unwinding the stack.
7360
7361 2004-05-18 Randolph Chung <tausq@debian.org>
7362
7363 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
7364 Undefine these so we can overide them using gdbarch.
7365
7366 2004-05-18 Randolph Chung <tausq@debian.org>
7367
7368 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
7369 handling for 64-bit HPUX (elf).
7370
7371 2004-05-18 Daniel Jacobowitz <dan@debian.org>
7372
7373 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
7374 constants.
7375 * amd64-tdep.c (amd64_skip_prologue): Likewise.
7376 * ia64-tdep.c (examine_prologue): Likewise.
7377 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
7378 * v850-tdep.c (v850_fix_call_dummy): Likewise.
7379
7380 2004-05-18 Mark Kettenis <kettenis@gnu.org>
7381
7382 * vax-tdep.c (vax_return_value): Implement
7383 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7384
7385 2004-05-17 Mark Kettenis <kettenis@gnu.org>
7386
7387 * vax-tdep.c (vax_return_value): Fix typo.
7388
7389 2004-05-17 Andrew Cagney <cagney@redhat.com>
7390
7391 * MAINTAINERS: Mark Salter was also responsible for
7392 testsuite/config/
7393
7394 * NEWS: Mention signal fixes.
7395
7396 2004-05-17 Randolph Chung <tausq@debian.org>
7397
7398 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
7399 check to see if we are unwinding an export stub. Export stubs clobber
7400 the %rp in the call path and stores the original rp in a stack slot.
7401
7402 2004-05-17 Jim Blandy <jimb@redhat.com>
7403
7404 * MAINTAINERS: Update address for J.T. Conklin.
7405
7406 2004-05-17 Randolph Chung <tausq@debian.org>
7407
7408 * hppa-tdep.c: Remove superfluous #include's.
7409 * Makefile.in (hppa-tdep.o): Update dependencies.
7410
7411 2004-05-17 Randolph Chung <tausq@debian.org>
7412
7413 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
7414 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
7415 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
7416 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
7417 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
7418 Remove static function declarations.
7419
7420 2004-05-17 Mark Kettenis <kettenis@gnu.org>
7421
7422 * alphabsd-nat.c: Update copyright year.
7423 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
7424
7425 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
7426 and M68K_A2_REGNUM.
7427
7428 * m68k-tdep.c (m68k_svr4_return_value): Implement
7429 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7430
7431 2004-05-16 Mark Kettenis <kettenis@gnu.org>
7432
7433 * sol-thread.c Update copyright year. Fix various coding
7434 standards violations. Tweak a few comments.
7435 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
7436 Delete prototypes.
7437
7438 2004-05-15 Randolph Chung <tausq@debian.org>
7439
7440 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
7441 as pointer instead of array reference since HPUX compiler does
7442 not accept unsized array arguments.
7443 * somsolib.c (dld_flags_buffer): Use constant array size.
7444
7445 2004-05-15 Mark Kettenis <kettenis@gnu.org>
7446
7447 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
7448 offset with decimal offset.
7449 (amd64obsd_sigcontext_addr): Return correct address for entire
7450 signal trampoline.
7451
7452 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
7453 instead of get_frame_base.
7454
7455 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
7456 (fill_gregset): Use regcache_raw_collect.
7457
7458 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
7459 ppcobsd-tdep.c.
7460
7461 * config/sparc/tm-nbsd64.h: Remove file.
7462 * config/tm-sunos.h: Remove file.
7463
7464 2004-05-15 Joel Brobecker <brobecker@gnat.com>
7465
7466 * rs6000-tdep.c (store_param_on_stack_p): New function,
7467 an improved version of some code extracted from skip_prologue().
7468 (skip_prologue): Use store_param_on_stack_p() to detect
7469 instructions saving a parameter on the stack. Detect when r0
7470 is used to save a parameter.
7471 Do not mark "li rx, SIMM" instructions as part of the prologue,
7472 unless the following instruction is also part of the prologue.
7473
7474 2004-05-14 Andrew Cagney <cagney@redhat.com>
7475
7476 * infrun.c (handle_inferior_event): Simplify
7477 STEP_OVER_UNDEBUGGABLE.
7478
7479 * infrun.c (handle_step_into_function): Delete function.
7480 (handle_inferior_event): Inline calls to
7481 handle_step_into_function.
7482
7483 2004-05-14 Jerome Guitton <guitton@gnat.com>
7484
7485 * rs6000-nat.c: Fix a comment.
7486
7487 2004-05-12 David Anderson <davea@sgi.com>
7488
7489 Committed by Jim Blandy <jimb@redhat.com>:
7490 * regcache.c (struct regcache_descr): fix comment spelling.
7491
7492 2004-05-13 J. Brobecker <brobecker@gnat.com>
7493
7494 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
7495 Fixes a link link failure.
7496
7497 2004-05-13 J. Brobecker <brobecker@gnat.com>
7498
7499 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
7500 error that was causing the build to fail.
7501
7502 2004-05-13 J. Brobecker <brobecker@gnat.com>
7503
7504 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
7505 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
7506
7507 2004-05-13 Andrew Cagney <cagney@redhat.com>
7508
7509 * infrun.c (handle_inferior_event): Check for
7510 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
7511 calls. Update comments.
7512
7513 2004-05-13 Jim Blandy <jimb@redhat.com>
7514
7515 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
7516 (fetch_regs_user_thread, fetch_regs_kernel_thread)
7517 (store_regs_user_thread, store_regs_kernel_thread): Use
7518 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
7519 * ppc-linux-nat.c (fill_gregset): Same.
7520 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
7521 (ppc_linux_sigtramp_cache): Same.
7522 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
7523 (ppcnbsd_sigtramp_cache_init): Same.
7524 * rs6000-nat.c (fetch_core_registers): Same.
7525 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
7526 (rs6000_frame_cache): Same.
7527
7528 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
7529 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
7530 of assuming that the gprs are numbered starting with zero.
7531 * ppc-linux-nat.c (fill_gregset): Same.
7532 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
7533 * ppcnbsd-nat.c (getregs_supplies): Same.
7534 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
7535 * rs6000-nat.c (fetch_core_registers): Same.
7536 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
7537
7538 2004-05-07 Michael Snyder <msnyder@redhat.com>
7539
7540 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
7541 LOC_COMPUTED_ARG, and LOC_INDIRECT.
7542
7543 2004-05-13 Andrew Cagney <cagney@redhat.com>
7544
7545 * infrun.c (handle_inferior_event): Use frame_unwind_id.
7546
7547 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
7548
7549 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
7550 base_address for shared libraries.
7551
7552 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
7553
7554 * MAINTAINERS (write after approval): Add myself.
7555
7556 2004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
7557
7558 * breakpoint.c (bpstat_stop_status): Add new argument
7559 STOPPED_BY_WATCHPOINT. Use it instead of testing
7560 target_stopped_data_address agaist 0 to check whether
7561 or not we stopped due to a hardware watchpoint.
7562 * breakpoint.h (bpstat_stop_status): Adapt prototype.
7563 * infrun.c (handle_inferior_event): Call bpstat_stop_status
7564 with new argument.
7565
7566 2004-05-12 Jim Blandy <jimb@redhat.com>
7567
7568 * configure.in: When checking whether we should use the -bbigtoc
7569 option, don't forget to restore the original value of LDFLAGS.
7570 * configure: Regenerated.
7571
7572 2004-05-12 Andrew Cagney <cagney@redhat.com>
7573
7574 * thread.c (load_infrun_state): Delete step_sp.
7575 * infrun.c (context_switch): Ditto.
7576 * inferior.h (step_sp): Ditto.
7577 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
7578 * gdbthread.h (struct thread_info, save_infrun_state)
7579 (restore_infrun_state): Ditto.
7580
7581 2004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
7582
7583 * MAINTAINERS (write after approval): Add myself.
7584
7585 2004-05-12 Andrew Cagney <cagney@redhat.com>
7586
7587 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
7588 eliminate reference to step_sp.
7589 (struct execution_control_state, init_execution_control_state)
7590 (handle_inferior_event, keep_going): Delete update_step_sp and
7591 step_sp.
7592 * infcmd.c (step_sp): Note that variable is unused.
7593
7594 2004-05-11 Andrew Cagney <cagney@redhat.com>
7595
7596 * infrun.c (step_over_function): Delete function.
7597 (handle_step_into_function): Use insert_step_resume_breakpoint.
7598 (insert_step_resume_breakpoint): Fix assertion.
7599
7600 2004-05-11 Nick Roberts <nickrob@gnu.org>
7601
7602 * utils.c (defaulted_query): Just use the normal query input type
7603 when printing the annotations.
7604
7605 2004-05-11 Andrew Cagney <cagney@redhat.com>
7606
7607 * infrun.c (handle_inferior_event): Simplify code handling
7608 step-into or return-from a signal trampoline.
7609
7610 2004-05-11 Andrew Cagney <cagney@redhat.com>
7611
7612 * ppcnbsd-tdep.c: Include "gdb_assert.h".
7613 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
7614
7615 2004-05-10 Jim Blandy <jimb@redhat.com>
7616
7617 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
7618 with a call to internal_error.
7619
7620 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
7621 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
7622 processor variant lacks those registers.
7623 (ppc_floating_point_unit_p): Change description to make it clear
7624 that this returns info about the ISA, not the ABI.
7625 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
7626 return true or false by checking tdep->ppc_fp0_regnum and
7627 tdep->ppc_fpscr_regnum. The original code replicated the BFD
7628 arch/mach switching done in rs6000_gdbarch_init; it's better to
7629 keep that logic there, and just check the results here.
7630 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
7631 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
7632 floating-point registers.
7633 (ppc_supply_fpregset, ppc_collect_fpregset)
7634 (rs6000_push_dummy_call, rs6000_extract_return_value)
7635 (rs6000_store_return_value): Assert that we have floating-point
7636 registers.
7637 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
7638 (rs6000_frame_cache): Don't note the locations at which
7639 floating-point registers were saved if we have no fprs.
7640 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
7641 registers.
7642 (fetch_regs_user_thread, fetch_regs_kernel_thread)
7643 (store_regs_user_thread, store_regs_kernel_thread): Only call
7644 supply_fprs / fill_fprs if we actually have floating-point
7645 registers.
7646 (special_register_p): Check ppc_fpscr_regnum before matching
7647 against it.
7648 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
7649 supply / collect fpscr if we don't have it.
7650 * ppc-bdm.c: #include "gdb_assert.h".
7651 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
7652 have floating-point registers, since I can't test this code on
7653 FP-free systems to adapt it.
7654 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
7655 fpscr and floating point register numbers if they don't exist.
7656 (fetch_register): Assert that we have floating-point registers
7657 before we reach the code that handles them.
7658 (store_register): Same. And use tdep instead of calling
7659 gdbarch_tdep again.
7660 (fill_fpregset): Don't try to collect FP registers and fpscr if we
7661 don't have them.
7662 (ppc_linux_sigtramp_cache): Don't record the saved locations of
7663 fprs and fpscr if we don't have them.
7664 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
7665 don't have them.
7666 * ppcnbsd-nat.c: #include "gdb_assert.h".
7667 (getfpregs_supplies): Assert that we have floating-point registers.
7668 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
7669 * ppcobsd-tdep.c: #include "gdb_assert.h".
7670 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
7671 have floating-point registers.
7672 * rs6000-nat.c (regmap): Don't match against the fpscr and
7673 floating point register numbers if they don't exist.
7674 (fetch_inferior_registers, store_inferior_registers,
7675 fetch_core_registers): Only fetch / store / supply the
7676 floating-point registers and the fpscr if we have them.
7677 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
7678 (ppcobsd-tdep.o): Update dependencies.
7679
7680 2004-05-10 Andrew Cagney <cagney@redhat.com>
7681
7682 * infrun.c (through_sigtramp_breakpoint): Delete variable.
7683 (context_switch): Do not switch through_sigtramp_breakpoint.
7684 * gdbthread.h (save_infrun_state, load_infrun_state)
7685 (struct thread_info): Delete through_sigtramp_breakpoint parameter
7686 and structure member.
7687 * thread.c (load_infrun_state, save_infrun_state): Update.
7688
7689 2004-05-10 Mark Kettenis <kettenis@gnu.org>
7690
7691 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
7692
7693 2004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
7694
7695 * acinclude.m4: Quote macro names being defined by AC_DEFUN
7696 throughout.
7697 * aclocal.m4: Regenerate.
7698
7699 2004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
7700
7701 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
7702
7703 2004-05-10 Andrew Cagney <cagney@redhat.com>
7704
7705 * infrun.c (check_sigtramp2): Delete function.
7706 (handle_inferior_event): When single stepping, and taking a
7707 signal, set a breakpoint at the signal return address. Delete
7708 redundant calls to check_sigtramp2.
7709 (insert_step_resume_breakpoint): New function.
7710 (through_sigtramp_breakpoint, handle_inferior_event)
7711 (follow_exec, wait_for_inferior, fetch_inferior_event)
7712 (currently_stepping, keep_going): Delete most uses of
7713 through_sigtramp_breakpoint, not that it should be deleted.
7714 (delete_breakpoint_current_contents): Delete function.
7715
7716 2004-05-10 Randolph Chung <tausq@debian.org>
7717
7718 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
7719 target.
7720 * config/pa/tm-linux.h: New file.
7721
7722 2004-05-10 Daniel Jacobowitz <drow@mvista.com>
7723
7724 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
7725 of prefixes. Don't print the prefix twice in the CLI.
7726
7727 2004-05-10 Jim Blandy <jimb@redhat.com>
7728
7729 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
7730 collect all the gprs.
7731
7732 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
7733 loop collecting gprs.
7734
7735 2004-05-09 Andrew Cagney <cagney@redhat.com>
7736
7737 * remote-vx.c (net_step): Delete step-range code.
7738 * remote.c (remote_resume, init_all_packet_configs)
7739 (set_remote_protocol_E_packet_cmd)
7740 (show_remote_protocol_E_packet_cmd)
7741 (remote_protocol_E, show_remote_cmd, _initialize_remote)
7742 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
7743 (show_remote_protocol_e_packet_cmd): Ditto.
7744
7745 2004-05-09 Mark Kettenis <kettenis@gnu.org>
7746
7747 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
7748
7749 * hppa-tdep.h: Update copyright year.
7750 (struct trad_frame_saved_reg): Add opaque declaration.
7751
7752 * amd64-tdep.c (amd64_return_value): Implement
7753 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7754
7755 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
7756 (m68k_value_to_register): New functions.
7757 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
7758 value_to_register.
7759
7760 * defs.h (enum return_value_convention): Add
7761 RETURN_VALUE_ABI_RETURNS_ADDRESS and
7762 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
7763 * infcmd.c (legacy_return_value): New function.
7764 (print_return_value): Rwerite to implement
7765 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7766 * values.c (using_struct_return): Check for inequality to
7767 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
7768 RETURN_VALUE_STRUCT_CONVENTION.
7769 * i386-tdep.c (i386_return_value): Implement
7770 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7771
7772 * vax-tdep.c: Tweak comments. Reorder include files. Don't
7773 include "symtab.h", "opcode/vax.h" and "inferior.h".
7774 (vax_skip_prologue): Replace calls to read_memory_integer by calls
7775 to read_memory_unsigned_integer.
7776 (vax_gdbarch_init): Reorder.
7777 (_initialize_vax_tdep): Spell out prototype.
7778 * Makefile.in (vax-tdep.o): Update dependencies.
7779
7780 2004-05-08 Andrew Cagney <cagney@redhat.com>
7781
7782 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
7783 * target.c (target_detach, target_disconnect): Ditto.
7784
7785 * infcall.c (call_function_by_hand): When no
7786 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
7787 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
7788 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
7789 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7790 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7791
7792 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
7793 * gdbarch.h, gdbarch.c: Re-generate.
7794 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7795 deprecated_fix_call_dummy.
7796 * v850-tdep.c (v850_gdbarch_init): Ditto.
7797 * infcall.c (call_function_by_hand): Do not call
7798 DEPRECATED_FIX_CALL_DUMMY.
7799
7800 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
7801 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
7802 * gdbarch.h, gdbarch.c: Re-generate.
7803 * arm-linux-tdep.c (arm_linux_call_dummy_words)
7804 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
7805 deprecated_sizeof_call_dummy_words.
7806 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
7807 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7808 * v850-tdep.c (v850_gdbarch_init): Ditto.
7809 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
7810 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
7811 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7812 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7813 * arch-utils.h (legacy_call_dummy_words)
7814 (legacy_sizeof_call_dummy_words): Delete declarations.
7815 * arch-utils.c (legacy_call_dummy_words)
7816 (legacy_sizeof_call_dummy_words): Delete variables.
7817
7818 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
7819 * gdbarch.h, gdbarch.c: Re-generate.
7820 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
7821 * infcall.c (call_function_by_hand): Eliminate call to
7822 DEPRECATED_PUSH_DUMMY_FRAME.
7823 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
7824 push_dummy_frame.
7825 (ns32k_push_dummy_frame): Delete function.
7826
7827 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7828 deprecated_call_dummy_breakpoint_offset or
7829 deprecated_call_dummy_start_offset.
7830 * dummy-frame.c, arm-tdep.c: Update comments.
7831 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
7832 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
7833 * gdbarch.h, gdbarch.c: Re-generate.
7834
7835 * infcall.c (legacy_push_dummy_code): Delete function.
7836 (push_dummy_code): Delete call.
7837
7838 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
7839 * gdbarch.h, gdbarch.c: Re-generate.
7840 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
7841 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
7842 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
7843 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
7844
7845 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
7846 (struct frame_info): Delete opaque declaration.
7847 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
7848 * frame.c (get_frame_type): Delete call.
7849
7850 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
7851 pc_in_call_dummy.
7852 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
7853 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
7854
7855 2004-05-08 Mark Kettenis <kettenis@gnu.org>
7856
7857 * alphanbsd-tdep.c: Include "gdb_string.h".
7858 * armnbsd-tdep.c: Update copyright year.
7859 Include "gdb_string.h".
7860 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
7861 dependencies.
7862
7863 * delta68-nat.c: Remove file.
7864 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
7865 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
7866 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
7867 (delta68-nat.o): Remove dependency.
7868
7869 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
7870 function.
7871 (m68k_gdbarch_init): Don't set
7872 deprecated_frameless_function_invocation.
7873
7874 2004-05-07 Randolph Chung <tausq@debian.org>
7875
7876 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
7877 read_memory_nobpt for code reading when doing frame unwinding.
7878 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
7879
7880 2004-05-07 Randolph Chung <tausq@debian.org>
7881
7882 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
7883 instead of sp, handle sigaltstack case.
7884 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
7885 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
7886 signal handler and not that of the caller.
7887 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
7888 hppa_linux_sigtramp_find_sigcontext.
7889
7890 2004-05-07 Randolph Chung <tausq@debian.org>
7891
7892 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
7893 hppa-linux-nat.c.
7894 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
7895 * hppa-linux-nat.c (fetch_register, store_register): Define.
7896 (fetch_inferior_registers, store_inferior_registers): Define.
7897 (supply_gregset): Add comment and clean up some unneeded code.
7898 (fill_gregset): Add comment and fix so that it saves registers in
7899 the right place in the gregset.
7900 (fill_fpregset): Fix buffer overrun problem.
7901 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
7902
7903 2004-05-07 Randolph Chung <tausq@debian.org>
7904
7905 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
7906 do common handling of the pcoqt register.
7907 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
7908 to use helper function.
7909 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
7910 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
7911 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
7912 generic fallback unwinder when all else fails.
7913 (hppa_gdbarch_init): Add fallback sniffer.
7914 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
7915 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
7916 to use helper function.
7917
7918 2004-05-08 Joel Brobecker <brobecker@gnat.com>
7919
7920 * config/djgpp/fnchange.lst: Add translation rules for
7921 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
7922
7923 2004-05-08 Mark Kettenis <kettenis@gnu.org>
7924
7925 * frame.c (get_prev_frame_1): Work around GCC bug.
7926 * frame.h: Add comment about GCC bug.
7927
7928 2004-05-07 Andrew Cagney <cagney@redhat.com>
7929
7930 * observer.c: Include "commands.h" and "gdbcmd.h".
7931 (observer_debug, _initialize_observer): Add the
7932 command "set/show debug observer".
7933 * observer.sh: When observer debugging, log notify calls.
7934 * Makefile.in (observer.o): Update dependencies.
7935
7936 2004-05-07 Jason Molenda (jmolenda@apple.com)
7937
7938 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
7939
7940 2004-05-07 Jim Blandy <jimb@redhat.com>
7941
7942 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
7943 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
7944 to recognize gpr regnums, instead of assuming that
7945 tdep->ppc_fp0_regnum marks the end of the general-purpose
7946 registers.
7947
7948 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
7949 the given architecture has floating-point registers.
7950
7951 2004-05-07 Andrew Cagney <cagney@redhat.com>
7952
7953 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
7954 macro defined to 1.
7955 * gdbarch.h, gdbarch.c: Re-generate.
7956 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7957 deprecated_use_generic_dummy_frames.
7958
7959 2004-05-07 Brian Ford <ford@vss.fsi.com>
7960
7961 * NEWS: Mention Cygwin DWARF 2 support.
7962
7963 2004-05-07 Andrew Cagney <cagney@redhat.com>
7964
7965 * objfiles.h (struct entry_info): Delete unused fields
7966 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
7967 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
7968 * mipsread.c (mipscoff_symfile_read): Update.
7969 * mdebugread.c (parse_partial_symbols): Update.
7970 * dwarfread.c (read_file_scope): Update.
7971 * dwarf2read.c (read_file_scope): Update.
7972 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
7973 * coffread.c (complete_symtab): Update.
7974
7975 2004-05-07 Mark Kettenis <kettenis@gnu.org>
7976
7977 * infcall.c (_initialize_infcall): Fix typo.
7978
7979 2004-05-07 Andrew Cagney <cagney@redhat.com>
7980
7981 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
7982 * command.h (add_setshow_zinteger_cmd): Declare.
7983
7984 2004-05-06 Randolph Chung <tausq@debian.org>
7985
7986 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
7987 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
7988 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
7989 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
7990 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
7991 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
7992 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
7993 definitions ...
7994 * hppa-tdep.h: ... to here, with HPPA_ prefix.
7995 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
7996 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
7997 (hppa64_hpux_frame_find_saved_regs_in_sig)
7998 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
7999 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
8000 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
8001 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
8002 (hppa_linux_sigtramp_frame_prev_register): Likewise.
8003 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
8004 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
8005 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
8006 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
8007 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
8008 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
8009 (hppa32_register_type, hppa_cannot_store_register)
8010 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
8011 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
8012 * hpread.c (hpread_process_one_debug_symbol): Likewise.
8013 * pa64solib.c (pa64_solib_have_load_event)
8014 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
8015 (pa64_solib_unloaded_library_pathname): Likewise.
8016 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
8017 (som_solib_library_pathname): Likewise.
8018
8019 2004-05-05 Jim Ingham <jingham@apple.com>
8020
8021 * breakpoint.c (create_breakpoints): Copy the ignore count and
8022 thread id over from the pended breakpoint to the actual
8023 breakpoint.
8024
8025 2004-05-05 Andrew Cagney <cagney@redhat.com>
8026
8027 * gdbarch.sh (PARM_BOUNDARY): Delete.
8028 gdbarch.h, gdbarch.c: Re-generate.
8029 * valops.c (PARM_BOUNDARY): Delete macro.
8030 (value_push): Delete PARM_BOUNDARY code.
8031 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
8032
8033 2004-05-04 Jim Blandy <jimb@redhat.com>
8034
8035 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
8036 Don't assume that the gprs, fprs, and UISA sprs are
8037 contiguous, start at register number zero, and end with fpscr.
8038 Instead, use the numbers from the tdep structure.
8039
8040 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
8041 should no longer be used in code specific to the RS6000 and its
8042 derivatives.
8043 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
8044 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
8045 tdep->ppc_fp0_regnum.
8046 (ppc_supply_fpregset, ppc_collect_fpregset)
8047 (rs6000_push_dummy_call, rs6000_extract_return_value)
8048 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
8049 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
8050 FP0_REGNUM.
8051 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
8052 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
8053 Same.
8054 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
8055 bdm_ppc_store_registers): Same.
8056 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
8057 (store_register, fill_fpregset): Same.
8058 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
8059 (ppc_linux_supply_fpregset): Same.
8060 * ppcnbsd-nat.c (getfpregs_supplies): Same.
8061 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
8062 Same.
8063 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
8064 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
8065 ppc64_sysv_abi_return_value): Same.
8066 * rs6000-nat.c (regmap, fetch_inferior_registers)
8067 (store_inferior_registers, fetch_core_registers): Same.
8068
8069 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8070
8071 * m68knbsd-nat.c: Remove file.
8072 * m68knbsd-tdep.c: Remove file.
8073 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
8074 dependencies.
8075 * configure.host: Add m68k-*-netbsdelf*.
8076 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
8077 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
8078 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
8079 (XM_FILE): Remove.
8080 * config/m68k/nbsdelf.mh: New file.
8081 * config/m68k/nbsd.mt: New file.
8082 * config/m68k/nbsdaout.mt: Remove file.
8083 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
8084 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
8085 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
8086 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
8087 (use_struct_convention): Remove prototype.
8088 (USE_STRUCT_CONVENTION): Remove define.
8089 * config/m68k/xm-nbsd.h: Remove file.
8090
8091 2004-05-04 Michael Snyder <msnyder@redhat.com>
8092
8093 * m68k-tdep.c (m68k_gdbarch_init): Default to using
8094 reg_struct_return method (as gcc usually does for cross targets).
8095
8096 2004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8097
8098 Committed by Andrew Cagney.
8099 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
8100 alignment padding when accessing ucontext struct members.
8101
8102 2004-05-04 Jim Blandy <jimb@redhat.com>
8103
8104 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
8105 'ppc_gplast_regnum' member.
8106 (ppc_num_gprs): New enum constant.
8107 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
8108 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
8109 * rs6000-nat.c (regmap, fetch_inferior_registers,
8110 store_inferior_registers): Same.
8111 * rs6000-tdep.c (e500_pseudo_register_read)
8112 (e500_pseudo_register_write): Same.
8113 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
8114
8115 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
8116 * ppc-tdep.h (ppc_num_fprs): New enum constant.
8117 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
8118 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
8119 FPLAST_REGNUM.
8120 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8121 Same.
8122 * ppc-linux-nat.c (ppc_register_u_addr): Same.
8123 * rs6000-nat.c (regmap, fetch_inferior_registers)
8124 (store_inferior_registers): Same.
8125
8126 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
8127 with FPLAST_REGNUM.
8128
8129 2004-05-03 Joel Brobecker <brobecker@gnat.com>
8130
8131 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
8132 failure detected by recent versions of GCC.
8133 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
8134 to be consistent with the usage in dwarf2_create_include_psymtab.
8135
8136 2004-05-03 Michael Snyder <msnyder@redhat.com>
8137
8138 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
8139 (heuristic_proc_start): Whitespace cleanup.
8140
8141 2004-05-04 Mark Kettenis <kettenis@gnu.org>
8142
8143 * sun3-nat.c: Remove file.
8144 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
8145 dependencies.
8146 (ALLDEPFILES): Remove sun3-nat.c.
8147 (sun3-nat.o): Remove dependencies.
8148
8149 * i386-interix-nat.c, i386-interix-tdep.c,
8150 config/i386/nm-interix.h, config/i386/interix.mh,
8151 config/i386/interix.mt: Remove files.
8152 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
8153 dependencies.
8154
8155 2004-05-03 Mark Kettenis <kettenis@gnu.org>
8156
8157 * m68k-tdep.h (struct gdbarch_tdep): Add member
8158 struct_value_regnum.
8159 (m68k_svr4_init_abi): New prototype.
8160 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
8161 different calling conventions.
8162 (m68k_extract_return_value): Remove code dealing with single-field
8163 structs.
8164 (m68k_store_return_value): Remove code dealing with single-field
8165 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
8166 (m68k_extract_struct_value_address): Remove function.
8167 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
8168 (m68k_reg_struct_return_p, m68k_return_value)
8169 (m68k_svr4_return_value): New functions.
8170 (m68k_use_struct_convention): Remove function.
8171 (m68k_push_dummy_call): Use new struct_value_regnum member of
8172 `struct gdbarch_tdep' instead of hardcoded register number to
8173 store STRUCT_ADDR.
8174 (m68k_svr4_init_abi): New function.
8175 (m68k_gdbarch_init): Don't set extract_return_value,
8176 store_return_values, deprecated_extract_struct_value_address and
8177 use_struct_convention. Set return_value instead. Initialize new
8178 struct_value_regnum member of `struct gdbarch_tdep'.
8179 * m68klinux-tdep.c: Update copyright year.
8180 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
8181 (m68k_linux_extract_struct_value_address): Remove function.
8182 (m68k_linux_init_abi): Don't set extract_return_value,
8183 store_return_values, deprecated_extract_struct_value_address and
8184 use_struct_convention. Call m68k_svr4_init_abi but override the
8185 new struct_value_regnum member of `struct gdbarch_tdep'.
8186 * Makefile.in (m68k-tdep.o): Update dependencies.
8187
8188 2004-05-03 J. Brobecker <brobecker@gnat.com>
8189
8190 * dwarf2read.c (line_header): Add new included_p field in
8191 field file_names.
8192 (partial_die_info): New field has_stmt_list. New field line_offset.
8193 (dwarf2_create_include_psymtab): New function.
8194 (dwarf2_build_include_psymtabs): New function.
8195 (add_file_name): Add forward declaration. Initialize new field.
8196 (dwarf_decode_lines): Add new parameter. Enhance this procedure
8197 to be able to determine the list of files included by the
8198 given unit, and build their associated psymtabs.
8199 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
8200 files as well.
8201 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
8202 (read_file_scope): Update call to dwarf_decode_lines.
8203 (read_partial_die): Handle DW_AT_stmt_list attributes.
8204
8205 2004-05-02 Michael Chastain <mec.gnu@mindspring.com>
8206
8207 Unfix PR gdb/1626.
8208 * configure.in: Revert special case for osf5.*.
8209 * configure: Regenerate.
8210
8211 2004-05-02 Jim Blandy <jimb@redhat.com>
8212
8213 Move the symbol-file-from-memory functions into their own file.
8214 * symfile-mem.c, symfile-mem.h: New files.
8215 * symfile.c (symbol_file_add_from_bfd): New function.
8216 (symbol_file_add): Call symbol_file_add_from_bfd.
8217 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
8218 Moved to symfile-mem.c.
8219 (_initialize_symfile): Move definition of
8220 add-symbol-file-from-memory command to symfile-mem.c.
8221 * symfile.h (symbol_file_add_from_bfd): New declaration.
8222 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
8223 * config/powerpc/linux.mt (TDEPFILES): Same.
8224 * Makefile.in (SFILES): Add symfile-mem.c.
8225 (symfile_mem_h): New variable.
8226 (HFILES_NO_SRCDIR): Add symfile-mem.h.
8227 (symfile-mem.o): New rule.
8228
8229 2004-05-01 Andrew Cagney <cagney@redhat.com>
8230
8231 * breakpoint.c (insert_bp_location): Use get_frame_id, and
8232 frame_find_by_id instead of frame_relative_level.
8233 (do_enable_breakpoint): Ditto.
8234 * thread.c: Update copyright.
8235 (info_threads_command): Ditto, simplify.
8236
8237 * frame.c (deprecated_generic_get_saved_register): Delete
8238 function, moved to "xstormy16-tdep.c".
8239 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
8240 deprecated_generic_get_saved_register from "frame.c".
8241 (xstormy16_frame_saved_register): Call
8242 xstormy16_get_saved_register.
8243 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
8244 static.
8245 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
8246 * frame.h (deprecated_generic_get_saved_register): Delete.
8247
8248 2004-05-01 Michael Chastain <mec.gnu@mindspring.com>
8249
8250 * dwarfread.c: Update documentation on the state of dwarf-1.
8251
8252 2004-05-01 Andrew Cagney <cagney@redhat.com>
8253
8254 * stack.c (select_frame_command): Delete call to
8255 frame_relative_level.
8256 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
8257 Delete #if0 code.
8258 (frame_info): Do not print FRAMELESS.
8259 (print_block_frame_labels): Replace DEPRECATED_STREQ.
8260 (catch_info): Delete #if0 code.
8261
8262 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
8263 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
8264 of frame_relative_level.
8265 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
8266 to SENTINEL_FRAME.
8267 * frame.h (enum frame_type): Add SENTINEL_FRAME.
8268 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
8269 frame_relative_level.
8270
8271 * frame.h (deprecated_set_frame_type): Delete declaration.
8272 * frame.c (deprecated_set_frame_type): Delete function, update
8273 comments.
8274
8275 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
8276 * gdbarch.h, gdbarch.c: Re-generate.
8277 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
8278 (shnbsd_pc_in_sigtramp): Delete.
8279 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
8280 pc_in_sigtramp.
8281 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
8282 pc_in_sigtramp.
8283 * frame.h: Update comments.
8284 * ppc-linux-tdep.c: Update comments.
8285 * breakpoint.c (bpstat_what): Update comments.
8286
8287 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
8288 m68klinux-tdep.o's dependencies, were previously added to
8289 m68klinux-nat.o.
8290
8291 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
8292 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
8293 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
8294 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
8295 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
8296
8297 * Makefile.in (m68klinux-nat.o): Update dependencies.
8298 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8299 (m68k_linux_sigtramp_frame_cache)
8300 (m68k_linux_sigtramp_frame_this_id)
8301 (m68k_linux_sigtramp_frame_prev_register)
8302 (m68k_linux_sigtramp_frame_unwind)
8303 (m68k_linux_sigtramp_frame_sniffer)
8304 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
8305 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
8306 names, use trad-frame.h.
8307 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
8308 (struct m68k_sigtramp_info): Delete.
8309 * m68k-tdep.c (m68k_sigtramp_frame_cache)
8310 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
8311 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
8312 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
8313 "m68klinux-tdep.c".
8314
8315 * infrun.c (check_sigtramp2): Delete check for
8316 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
8317
8318 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8319
8320 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
8321
8322 2004-05-01 Andrew Cagney <cagney@redhat.com>
8323
8324 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8325 (frv_linux_sigtramp_frame_cache)
8326 (frv_linux_sigtramp_frame_this_id)
8327 (frv_linux_sigtramp_frame_prev_register)
8328 (frv_linux_sigtramp_frame_unwind)
8329 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
8330 include "linux" in function and variable names, directly call
8331 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
8332 the latest trad-frame code.
8333 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
8334 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
8335 * Makefile.in (frv-linux-tdep.o): Update dependencies.
8336 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
8337 * frv-tdep.c (frv_sigtramp_frame_cache)
8338 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
8339 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
8340 frv-linux-tdep.c.
8341 (frv_gdbarch_init): Do not append a sigtramp sniffer.
8342 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
8343 (frv_set_sigcontext_reg_addr): Delete function.
8344
8345 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
8346 (DEPRECATED_SIGTRAMP_END): Delete.
8347 * gdbarch.h, gdbarch.c: Re-generate.
8348 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
8349 * config/vax/tm-vaxbsd.h: Update copyright.
8350 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8351 (DEPRECATED_IN_SIGTRAMP): Define.
8352 * config/m68k/tm-nbsd.h: Update copyright.
8353 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8354 (DEPRECATED_IN_SIGTRAMP): Define.
8355
8356 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8357
8358 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
8359 encondings. Fixes PR gdb/1628.
8360
8361 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
8362 DW_CFA_restore state without a matching DW_CFA_remember_state
8363 instead of aborting. Fixes PR backtrace/1589.
8364
8365 2004-04-30 Joel Brobecker <brobecker@gnat.com>
8366
8367 * MAINTAINERS: Add self as AIX maintainer.
8368 Update my e-mail address in write-after-approval section.
8369
8370 2004-04-30 Andrew Cagney <cagney@redhat.com>
8371
8372 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
8373 (legacy_get_prev_frame): Ditto.
8374
8375 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
8376 (mips_gdbarch_init): Do not set pc_in_sigtramp.
8377 * mipsread.c (sigtramp_address): Delete extern variable.
8378 (mipscoff_new_init): Delete reference.
8379 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
8380 (fixup_sigtramp): Delete function.
8381 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
8382 (fixup_sigtramp): Delete declarations.
8383
8384 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
8385 deprecated_pc_in_sigtramp.
8386 (ppcnbsd_pc_in_sigtramp): Delete function.
8387
8388 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8389
8390 * config/m68k/nm-nbsd.h: Tweak comments.
8391 * config/m68k/nm-nbsdaout.h: Likewise.
8392
8393 2004-04-30 Andrew Cagney <cagney@redhat.com>
8394
8395 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
8396 legacy_pc_in_sigtramp.
8397 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
8398
8399 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8400
8401 Add OpenBSD/m68k support.
8402 * NEWS (New native configurations): Mention OpenBSD/m68k.
8403 * m68kbsd-tdep.c: New file.
8404 * m68kbsd-nat.c: New file.
8405 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
8406 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
8407 * configure.host: Add m68k-*-openbsd.
8408 * configure.tgt: Add m68k-*-openbsd.
8409 * config/m68k/tm-obsd.h: New file.
8410 * config/m68k/obsd.mt: New file.
8411 * config/m68k/obsd.mh: New file.
8412 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
8413 m68kbsd-tdep.c.
8414
8415 2004-04-30 Andrew Cagney <cagney@redhat.com>
8416
8417 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
8418 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
8419
8420 2004-04-30 Mark Kettenis <kettenis@gnu.org>
8421
8422 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
8423 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
8424
8425 2004-04-30 Brian Ford <ford@vss.fsi.com>
8426
8427 Revert 2004-04-16 change.
8428 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
8429 (i386_coff_init_abi): Remove.
8430 * i386-tdep.h (i386_coff_init_abi): Remove.
8431 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
8432
8433 2004-04-30 Andrew Cagney <cagney@redhat.com>
8434
8435 * blockframe.c (find_pc_partial_function): Delete use of
8436 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
8437 DEPRECATED_SIGTRAMP_END.
8438
8439 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
8440 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
8441 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
8442 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
8443 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
8444
8445 * defs.h (deprecated_inside_entry_file): Delete declaration.
8446 * blockframe.c (deprecated_inside_entry_file): Delete function.
8447 (legacy_frame_chain_valid): Delete call.
8448 * sh64-tdep.c (sh64_frame_chain): Delete call.
8449 * objfiles.h: Update comments.
8450 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
8451 call.
8452 * frame.c (get_prev_frame): Delete call, update comments.
8453
8454 2004-04-30 Brian Ford <ford@vss.fsi.com>
8455
8456 * MAINTAINERS (Write After Approval): Add myself.
8457
8458 2004-04-30 Andrew Cagney <cagney@redhat.com>
8459
8460 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
8461 * gdbarch.h, gdbarch.c: Re-generate.
8462 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
8463 code.
8464
8465 2004-04-30 Andrew Cagney <cagney@redhat.com>
8466
8467 * gdb-events.sh (selected_thread_changed)
8468 (selected_frame_level_changed, target_changed): Delete.
8469 * gdb-events.h, gdb-events.c: Re-generate.
8470 * valops.c (value_assign): Update.
8471 * stack.c (select_frame_command, up_silently_base)
8472 (down_silently_base): Update.
8473
8474 2004-04-29 Andrew Cagney <cagney@redhat.com>
8475
8476 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
8477 registers correctly.
8478 (print_gp_register_row, mips32_heuristic_proc_desc)
8479 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
8480 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
8481 references to mips_isa_regsize.
8482
8483 2004-04-29 Andrew Cagney <cagney@redhat.com>
8484
8485 * mips-tdep.c (struct gdbarch_tdep): Delete
8486 mips_fp_register_double.
8487 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
8488 mips_abi_regsize.
8489 (mips_gdbarch_init): Do not set mips_fp_register_double.
8490 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
8491
8492 2004-04-29 Joel Brobecker <brobecker@gnat.com>
8493
8494 Committed by Andrew Cagney.
8495 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
8496 function calls.
8497
8498 2004-04-29 Andrew Cagney <cagney@redhat.com>
8499
8500 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
8501 gdbarch, use mips_abi, update callers.
8502 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
8503 mips_abi_regsize, update callers.
8504 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
8505 mips_default_abi_regsize.
8506 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
8507 mips_default_abi_regsize.
8508
8509 2004-04-29 Andrew Cagney <cagney@redhat.com>
8510
8511 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
8512 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
8513 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
8514 mips_default_abi_regsize.
8515 (mips_isa_regsize): Rename mips_regisze.
8516 * mipsnbsd-tdep.c: Update.
8517 * mips-linux-tdep.c: Update.
8518 * irix5-nat.c: Update.
8519 * mips-tdep.h (mips_isa_regsize): Update.
8520
8521 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
8522 Delete all disabled code.
8523 * gdb-events.h, gdb-events.c: Re-generate.
8524
8525 2004-04-19 Jerome Guitton <guitton@gnat.com>
8526 Mark Kettenis <kettenis@gnu.org>
8527
8528 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
8529 the function begins with a branch instruction.
8530
8531 2004-04-29 Mark Kettenis <kettenis@gnu.org>
8532
8533 * i386-tdep.c: Fix spelling mistakes.
8534
8535 2004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8536 Andrew Cagney <cagney@redhat.com>
8537
8538 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
8539 <sys/proc.h>.
8540 * acconfig.h: Provide default _KMEMUSER value.
8541 * config.in, configure: Re-generate.
8542 * NEWS: Mention fix.
8543
8544 2004-04-24 Randolph Chung <tausq@debian.org>
8545
8546 * configure.host (hppa*-*-linux*): New target.
8547 * configure.tgt (hppa*-*-linux*): Likewise.
8548 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
8549 gdbarch_init_osabi() call earlier so that osabi-specific frame
8550 unwinders can be registered first.
8551 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
8552 hppa-linux-nat.c.
8553 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
8554 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
8555 * config/pa/linux.mh: New file.
8556 * config/pa/linux.mt: New file.
8557 * config/pa/nm-linux.h: New file.
8558 * config/pa/xm-linux.h: New file.
8559 * hppa-linux-nat.c: New file.
8560 * hppa-linux-tdep.c: New file.
8561
8562 2004-04-28 Randolph Chung <tausq@debian.org>
8563
8564 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
8565 return values.
8566 (hppa32_push_dummy_call): Fix small struct and floating point argument
8567 passing, and make sure the stack frame is properly aligned.
8568
8569 2004-04-28 Andrew Cagney <cagney@redhat.com>
8570
8571 * stack.c (print_stack_frame): Fix description.
8572
8573 * NEWS: Mention gdb/gdbserver/configure execute permission
8574 changed. PR server/519.
8575
8576 2004-04-28 Andrew Cagney <cagney@redhat.com>
8577
8578 * stack.c (print_stack_frame_stub): Delete declaration.
8579 (struct print_stack_frame_args, print_stack_frame)
8580 (print_frame_info, print_frame): Replace "source" with print what.
8581 Replace "print" with "print_level". Replace "args" with
8582 "print_args".
8583 * frame.h (show_and_print_stack_frame, print_stack_frame)
8584 (print_frame_info): Update declarations.
8585 * stack.c (select_and_print_frame, frame_command)
8586 (current_frame_command, up_command, down_command): Update calls -
8587 use get_selected_frame, pass "enum print_what" for source, do not
8588 call frame_relative_level.
8589 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
8590 * remote-rdp.c (remote_rdp_open): Ditto.
8591 * remote-mips.c (common_open): Ditto.
8592 * remote-e7000.c (e7000_start_remote): Ditto.
8593 * ocd.c (ocd_start_remote): Ditto.
8594 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
8595 * infrun.c (normal_stop): Ditto.
8596 * inflow.c (kill_command): Ditto.
8597 * infcmd.c (finish_command): Ditto.
8598 * corelow.c (core_open): Ditto.
8599 * tracepoint.c (finish_tfind_command): Ditto.
8600 * thread.c (info_threads_command, info_threads_command)
8601 (restore_current_thread, do_captured_thread_select): Ditto.
8602 * ada-tasks.c (task_command): Ditto.
8603
8604 2004-04-26 Orjan Friberg <orjanf@axis.com>
8605
8606 * frame.c: Include "observer.h".
8607 (frame_observer_target_changed): New function.
8608 (_initialize_frame): Attach target_changed observer.
8609 * regcache.c: Include "observer.h".
8610 (regcache_observer_target_changed): New function.
8611 (_initialize_regcache): Attach target_changed observer.
8612 * valops.c: Include "observer.h".
8613 (value_assign): Notify target_changed event when modifying register.
8614 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
8615
8616 2004-04-26 Orjan Friberg <orjanf@axis.com>
8617
8618 From Paul Koning <pkoning@equallogic.com>:
8619 * breakpoint.c (free_valchain): New function.
8620 (insert_bp_location, delete_breakpoint): Use free_valchain.
8621 (remove_breakpoint): Do not remove the valchain.
8622 (bpstat_stop_status): If not stopped by watchpoint, skip
8623 watchpoints when generating stop status list.
8624 * infrun.c (handle_inferior_event): Make
8625 stepped_after_stopped_by_watchpoint a global variable.
8626 * remote.c (remote_stopped_data_address): Return watch data
8627 address rather than zero if stepped_after_stopped_by_watchpoint is
8628 set.
8629
8630 2004-04-25 Michael Chastain <mec.gnu@mindspring.com>
8631
8632 Fix PR gdb/1626.
8633 * configure.in: Check for curses after termcap.
8634 On osf5.*, do not check for ncurses.
8635 * configure: Regenerate.
8636
8637 2004-04-25 Mark Kettenis <kettenis@gnu.org>
8638
8639 * ppcobsd-nat.c: Include "ppc-tdep.h".
8640 * Makefile.in (ppcobsd-nat.o): Update dependencies.
8641
8642 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
8643 Fixes PR tdep/1623 and PR tdep/1624.
8644
8645 2004-04-24 Michael Chastain <mec.gnu@mindspring.com>
8646
8647 * xmodem.h, xmodem.c: Remove files.
8648 * Makefile.in: Remove references to xmodem.h, xmodem.c.
8649
8650 2004-04-23 Randolph Chung <tausq@debian.org>
8651
8652 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
8653 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
8654 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
8655 for handling stackless frames.
8656 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
8657
8658 2004-04-23 Randolph Chung <tausq@debian.org>
8659
8660 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
8661 starts at a pc before the frame is created.
8662
8663 2004-04-23 Joel Brobecker <brobecker@gnat.com>
8664
8665 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
8666
8667 2004-04-23 Jerome Guitton <guitton@gnat.com>
8668
8669 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
8670 use convert_typed_floating to get the appropriate format.
8671
8672 2004-04-22 Randolph Chung <tausq@debian.org>
8673
8674 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
8675 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
8676 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
8677 (hppa_sign_extend): Add prototype.
8678 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
8679 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
8680 (sign_extend): Rename with hppa_ prefix and make non-static. Other
8681 hppa targets will also use these functions.
8682 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
8683 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
8684 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
8685 (hppa_gdbarch_init): Remove gdbarch setting of
8686 skip_trampoline_code, in_solib_call_trampoline and
8687 in_solib_return_trampoline.
8688 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
8689 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
8690 hppa_in_solib_call_trampoline.
8691 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
8692 Moved from hppa-tdep.c.
8693 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
8694 in_solib_call_trampoline and in_solib_return_trampoline.
8695
8696 2004-04-22 Randolph Chung <tausq@debian.org>
8697
8698 * hppa-tdep.c (hppa_debug): New variable.
8699 (find_unwind_entry, hppa_frame_cache): Add debug output.
8700 (_initialize_hppa_tdep): Add command to set debug flag.
8701
8702 2004-04-22 Andrew Cagney <cagney@redhat.com>
8703
8704 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
8705 "trad-frame.h".
8706 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
8707 signal trampoline unwinder.
8708 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
8709
8710 2004-04-22 Mark Kettenis <kettenis@gnu.org>
8711
8712 Add OpenBSD/powerpc support.
8713 * NEWS (New native configurations): Mention OpenBSD/powerpc.
8714 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
8715 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
8716 (ppc_collect_fpregset): New prototypes.
8717 * ppcobsd-nat.c: New file.
8718 * ppcobsd-tdep.c: New file.
8719 * ppcobsd-tdep.h: New file.
8720 * rs6000-tdep.c: Include "regset.h".
8721 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
8722 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
8723 New functions.
8724 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
8725 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
8726 (rs6000-tdep.o): Update dependencies.
8727 * configure.host: Add powerpc-*-openbsd.
8728 * configure.tgt: Add powerpc-*-openbsd.
8729 * config/powerpc/obsd.mh: New file.
8730 * config/powerpc/nm-obsd.h: New file.
8731 * config/powerpc/obsd.mt: New file.
8732
8733 2004-04-22 Andrew Cagney <cagney@redhat.com>
8734
8735 * frame.h (show_frame_info): Delete declaration.
8736
8737 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
8738 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
8739 * m32r-tdep.c (m32r_frame_this_id): Ditto.
8740 * frv-tdep.c (frv_frame_this_id): Ditto.
8741 * avr-tdep.c (avr_frame_this_id): Ditto.
8742
8743 2004-04-22 Elena Zannoni <ezannoni@redhat.com>
8744
8745 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
8746
8747 2004-04-22 Jim Blandy <jimb@redhat.com>
8748
8749 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
8750 register number zero.
8751
8752 2004-04-21 Michael Snyder <msnyder@redhat.com>
8753
8754 * mips-tdep.c (heuristic_proc_start):
8755 Warning() already prefixes "Warning: ".
8756
8757 2004-04-21 Andrew Cagney <cagney@redhat.com>
8758
8759 * annotate.h (deprecated_annotate_starting_hook)
8760 (deprecated_annotate_stopped_hook)
8761 (deprecated_annotate_exited_hook)
8762 (deprecated_annotate_signal_hook)
8763 (deprecated_annotate_signalled_hook): Deprecate.
8764 * tracepoint.h (deprecated_create_tracepoint_hook)
8765 (deprecated_delete_tracepoint_hook)
8766 (deprecated_modify_tracepoint_hook)
8767 (deprecated_trace_find_hook)
8768 (deprecated_trace_start_stop_hook): Deprecate.
8769 * target.h (deprecated_target_new_objfile_hook): Deprecate.
8770 * remote.h (deprecated_target_resume_hook)
8771 (deprecated_target_wait_loop_hook): Deprecate.
8772 * gdbcore.h (deprecated_exec_file_display_hook)
8773 (deprecated_file_changed_hook): Deprecate.
8774 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
8775 * defs.h (deprecated_modify_breakpoint_hook)
8776 (deprecated_command_loop_hook, deprecated_show_load_progress)
8777 (deprecated_print_frame_info_listing_hook)
8778 (deprecated_query_hook, deprecated_warning_hook)
8779 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
8780 (deprecated_delete_breakpoint_hook)
8781 (deprecated_interactive_hook, deprecated_registers_changed_hook)
8782 (deprecated_readline_begin_hook, deprecated_readline_hook)
8783 (deprecated_readline_end_hook, deprecated_register_changed_hook)
8784 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
8785 (deprecated_context_hook, deprecated_target_wait_hook)
8786 (deprecated_attach_hook, deprecated_detach_hook)
8787 (deprecated_call_command_hook, deprecated_set_hook)
8788 (deprecated_error_hook, deprecated_error_begin_hook)
8789 (deprecated_ui_load_progress_hook): Deprecate.
8790 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
8791 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
8792 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
8793 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
8794 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
8795 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
8796 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
8797 * annotate.c, aix-thread.c: Update.
8798
8799 2004-04-21 Andrew Cagney <cagney@redhat.com>
8800
8801 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
8802 * vaxnbsd-tdep.c: Include "gdb_string.h".
8803
8804 * symfile.c (symbol_file_add_from_memory): #if 0 function.
8805 (add_symbol_file_from_memory_command): #if 0 function body, call
8806 error instead.
8807
8808 2004-04-21 Andrew Cagney <cagney@redhat.com>
8809
8810 * gdbcore.h: Update copyright.
8811 (deprecated_add_core_fns): Rename add_core_fns.
8812 * win32-nat.c (_initialize_core_win32): Update.
8813 * sun3-nat.c (_initialize_core_sun3): Update.
8814 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
8815 * rs6000-nat.c (_initialize_core_rs6000): Update.
8816 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
8817 * nto-tdep.c (_initialize_nto_tdep): Update.
8818 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
8819 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
8820 * mips-nat.c (_initialize_core_mips): Update.
8821 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
8822 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
8823 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
8824 * lynx-nat.c (_initialize_core_lynx): Update.
8825 * irix5-nat.c (_initialize_core_irix5): Update.
8826 * i386-interix-nat.c (_initialize_core_interix): Update.
8827 * cris-tdep.c (_initialize_cris_tdep): Update.
8828 * corelow.c (deprecated_add_core_fns): Update.
8829 * core-regset.c (_initialize_core_regset): Update.
8830 * core-aout.c (_initialize_core_aout): Update.
8831 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
8832 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
8833 * alpha-nat.c (_initialize_core_alpha): Update.
8834
8835 2004-04-21 Jim Blandy <jimb@redhat.com>
8836
8837 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
8838
8839 2004-04-19 Daniel Jacobowitz <drow@mvista.com>
8840
8841 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
8842 Delete.
8843 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
8844 (read_attribute_value): Update calls to dwarf_alloc_block.
8845 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
8846 dwarf2_tmp_obstack.
8847 (psymtab_to_symtab_1): Likewise. Clean up using
8848 free_stack_comp_unit.
8849 (add_to_cu_func_list): Use the comp_unit_obstack.
8850
8851 2004-04-19 Joel Brobecker <brobecker@gnat.com>
8852
8853 * dwarf2read.c (dwarf2_flag_true_p): New function.
8854 (die_is_declaration): Use the function above. Add some comments.
8855
8856 2004-04-19 Mark Kettenis <kettenis@gnu.org>
8857
8858 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
8859 architecture when registering sparcnbsd_core_osabi_sniffer.
8860 Adjust comment.
8861
8862 2004-04-18 Mark Kettenis <kettenis@gnu.org>
8863
8864 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
8865 return value.
8866
8867 Based on a patch from Brian Ford <ford@vss.fsi.com>:
8868 * i386-tdep.c: Correct register numbering scheme comments
8869 throughout.
8870 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
8871 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
8872 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
8873 (i386_gdb_arch_init): Likewise.
8874
8875 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
8876 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
8877 ppcnbsd-tdep.o.
8878
8879 * m68k-tdep.h: Tweak comments.
8880 * m68k-tdep.c: Tweak comment.
8881
8882 2004-04-17 Randolph Chung <tausq@debian.org>
8883
8884 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
8885 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
8886 (hppa_hpux_som_init_abi): Set is_elf to 0.
8887 (hppa_hpux_elf_init_abi): Set is_elf to 1.
8888 * hppa-tdep.c (low_text_segment_address): Remove global.
8889 (record_text_segment_lowaddr): Pass in low address as parameter. Use
8890 section offset to calculate segment address.
8891 (internalize_unwinds): Define low_text_segment_address as local and
8892 pass to record_text_segment_lowaddr for ELF targets.
8893 (hppa_gdbarch_init): Zero fill tdep structure.
8894 (hppa_dump_tdep): Print tdep structure.
8895 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
8896
8897 2004-04-17 Randolph Chung <tausq@debian.org>
8898
8899 * hppa-tdep.c (hppa_pseudo_register_read): Define.
8900 (hppa_gdbarch_init): Set pseudo_register_read.
8901 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
8902 * regcache.c (supply_register): Remove check for
8903 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
8904
8905 2004-04-17 Randolph Chung <tausq@debian.org>
8906
8907 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
8908 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
8909 (hpread_adjust_stack_address): Move to hpread.c.
8910 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
8911 obj_private_struct): Move from tm-hppa.h.
8912 * hpread.c (hppa-tdep.h): Include.
8913 (hpread_adjust_stack_address): Move from hppa-tdep.c.
8914 (hpread_read_function_type, hpread_read_doc_function_type)
8915 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
8916 directly.
8917 * pa64solib.c (hppa-tdep.h): Include.
8918 * somsolib.c (hppa-tdep.h): Include.
8919 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
8920 inferior_status): Remove unused forward declarations.
8921 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
8922 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
8923 obj_private_struct): Move to hppa-tdep.h.
8924 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
8925
8926 2004-04-17 Randolph Chung <tausq@debian.org>
8927
8928 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
8929 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
8930 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
8931 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
8932 Remove forward declaration and make static.
8933 (hppa_reg_struct_has_addr): Remove.
8934
8935 2004-04-16 Joel Brobecker <brobecker@gnat.com>
8936
8937 * observer.sh: Move comments in sed command to first column.
8938
8939 2004-04-16 Jason Molenda (jmolenda@apple.com)
8940
8941 * frame.c: Minor typeo corrections in comments.
8942
8943 2004-04-16 Joel Brobecker <brobecker@gnat.com>
8944
8945 * observer.c (observer_test_first_notification_function): Update
8946 function profile.
8947 (observer_test_second_notification_function): Likewise.
8948 (observer_test_third_notification_function): Likewise.
8949
8950 2004-04-16 Mark Kettenis <kettenis@gnu.org>
8951
8952 From Brian Ford <ford@vss.fsi.com>:
8953 * i386-tdep.c (i386_coff_init_abi): New function.
8954 * i386-tdep.h (i386_coff_init_abi): New prototype.
8955 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
8956 register number translation functions for DWARF and DWARF 2.
8957
8958 2004-04-16 Joel Brobecker <brobecker@gnat.com>
8959
8960 * dwarf2read.c: Back out my previous change, it was incorrect.
8961
8962 2004-04-16 Daniel Jacobowitz <drow@mvista.com>
8963
8964 * dwarf2read.c: Include "hashtab.h".
8965 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
8966 has_namespace_info.
8967 (struct partial_die_info): Add comments. Use bitfields to reduce
8968 memory footprint. Add scope, scope_set, has_specification,
8969 spec_offset, die_parent, die_child, and die_sibling.
8970 (peek_die_abbrev): Add prototype.
8971 (partial_read_comp_unit_head): New function, broken out from
8972 dwarf2_build_psymtabs_hard.
8973 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
8974 Use partial_read_comp_unit_head. Initialize the CU and
8975 comp_unit_obstack. Update calls to read_partial_die and
8976 scan_partial_symbols. Use free_stack_comp_unit and
8977 load_partial_dies.
8978 (scan_partial_symbols): Change PDI to a pointer. Use the child and
8979 sibling pointers to walk partial DIEs. Call fixup_partial_die.
8980 Update calls to helper functions. Remove NAMESPACE argument.
8981 Update comments.
8982 (partial_die_parent_scope, partial_die_full_name): New functions.
8983 (add_partial_symbol): Remove namespace argument. Update call to
8984 pdi_needs_namespace. Use partial_die_full_name. Handle
8985 DW_TAG_namespace. Check has_namespace_info flag.
8986 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
8987 tag. Handle namespaces.
8988 (add_partial_namespace, add_partial_enumeration): Simplify.
8989 (guess_structure_name): New function, derived from
8990 add_partial_structure.
8991 (add_partial_structure): Remove.
8992 (determine_class_name): Update comment.
8993 (dwarf2_read_abbrevs): Set has_namespace_info flag.
8994 (is_type_tag_for_partial, load_partial_dies): New functions.
8995 (read_partial_die): Pass abbrev and abbrev_len as arguments.
8996 Record specifications instead of following them immediately.
8997 (find_partial_die_in_comp_unit, find_partial_die)
8998 (fixup_partial_die, free_stack_comp_unit)
8999 (hashtab_obstack_allocate, dummy_obstack_deallocate)
9000 (partial_die_hash, partial_die_eq): New functions.
9001 * Makefile.in (hashtab_h): Define.
9002 (dwarf2read.o): Update dependencies.
9003 (observer_inc, observer_h): Move to the correct section.
9004
9005 2004-04-15 Joel Brobecker <brobecker@gnat.com>
9006
9007 * dwarf2read.c (dwarf2_attribute_true_p): New function.
9008 (die_is_declaration): Use the function above. Add comment.
9009
9010 2004-04-15 Joel Brobecker <brobecker@gnat.com>
9011
9012 * dwarf2read.c (read_structure_scope): Identify stub types
9013 using die_is_declaration() only.
9014
9015 2004-04-15 Roland McGrath <roland@redhat.com>
9016
9017 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
9018 argument instead of NAME.
9019 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
9020 in call to symbol_file_add_with_addrs_or_offsets.
9021 (build_addr_info): New function, helper for ...
9022 (symbol_file_add_from_memory): New function.
9023 (add_symbol_file_from_memory_command): New function using that.
9024 (_initialize_symfile): Register it for add-symbol-file-from-memory.
9025 (pre_add_symbol_hook): Add const to argument type.
9026 * symfile.h (symbol_file_add_from_memory): Declare it.
9027
9028 2004-04-15 Mark Kettenis <kettenis@gnu.org>
9029
9030 * NEWS (New native configurations): Mention OpenBSD/vax.
9031 * configure.host: Add vax-*-openbsd*.
9032 * config/vax/obsd.mh: New file.
9033 * config/vax/nm-obsd.h: New file.
9034
9035 * vax-tdep.c: Include "regset.h".
9036 (vax_supply_gregset): New function.
9037 (vax_gregset): New variable.
9038 (vax_regset_from_core_section): New function.
9039 (vax_gdbarch_init): Set regset_from_core_section.
9040 * Makefile.in (vax-tdep.o): Update dependencies.
9041
9042 2004-04-15 Andrew Cagney <cagney@redhat.com>
9043
9044 * observer.c (normal_stop_subject, observer_notify_normal_stop)
9045 (observer_normal_stop_notification_stub)
9046 (observer_attach_normal_stop, observer_detach_normal_stop):
9047 Delete, replaced by #include "observer.inc".
9048 * infrun.c (normal_stop): Pass "stop_bpstat" to
9049 observer_notify_normal_stop.
9050 * Makefile.in (observer_inc): Define.
9051 (observer.o): Update dependencies.
9052 (observer.h, observer.inc): New rules.
9053 * observer.h: Delete file.
9054 * observer.sh: New file.
9055
9056 2004-04-15 Mark Kettenis <kettenis@gnu.org>
9057
9058 * vax-tdep.c (vax_frame_cache): Fix typo.
9059
9060 2004-04-14 Mark Kettenis <kettenis@gnu.org>
9061
9062 * NEWS (New native configurations): Mention NetBSD/vax.
9063 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
9064 * config/vax/nbsdelf.mh: New file.
9065 * config/vax/nbsdaout.mh: New file.
9066 * config/vax/nm-nbsd.h: New file.
9067 * config/vax/nm-nbsdaout.h: New file.
9068
9069 * vaxnbsd-tdep.c: New file.
9070 * Makefile.in (vaxnbsd-tdep.o): New dependency.
9071 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
9072 * config/vax/nbsd.mt: New file.
9073 * config/vax/tm-nbsd.h: New file.
9074
9075 * Makefile.in (vaxbsd-nat.o): New dependency.
9076
9077 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
9078 * vax-tdep.c (vax_store_arguments): Remove struct_return and
9079 struct_addr arguments. Don't push return value address.
9080 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
9081 arguments to vax_store_arguments. Store return value address in
9082 R1.
9083 (vax_store_struct_return, vax_extract_return_value)
9084 (vax_store_return_value): Remove functions.
9085 (vax_return_value): New function.
9086 (vax_gdbarch_init): Set return value. Don't set
9087 deprecated_store_struct_return, deprecated_extract_struct_return
9088 and deprecated_store_return_value.
9089
9090 2004-04-14 Andreas Schwab <schwab@suse.de>
9091
9092 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
9093 value buffer.
9094 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
9095
9096 2004-04-14 Mark Kettenis <kettenis@gnu.org>
9097
9098 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
9099 (vax_unwind_dummy_id): New functions.
9100 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
9101 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
9102 variables.
9103 (vax_fix_call_dummy): Remove function.
9104 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
9105 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
9106 call_dummy_location, deprecated_call_dummy_words,
9107 deprecated_sizeof_call_dummy_words,
9108 deprecated_call_dummy_breakpoint_offset,
9109 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
9110 and deprecated_dummy_write_sp.
9111
9112 2004-04-13 David Carlton <carlton@kealia.com>
9113
9114 * MAINTAINERS: Move myself to "paper trail" section.
9115
9116 2004-04-12 Mark Kettenis <kettenis@gnu.org>
9117
9118 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
9119 "trad-frame.h".
9120 (vax_frame_init_saved_regs): Remove function.
9121 (vax_sigtramp_saved_pc): Remove function.
9122 (vax_frame_saved_pc): Remove function.
9123 (vax_frame_args_address): Remove function.
9124 (vax_frame_num_args): Rewrite.
9125 (vax_frame_chain): Remove function.
9126 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
9127 VAX_FP_REGNUM.
9128 (vax_pop_frame): Likewise.
9129 (vax_saved_pc_after_call): Remove function.
9130 (struct vax_frame_cache): New structure.
9131 (vax_frame_cache): New function.
9132 (vax_frame_this_id): New function.
9133 (vax_frame_prev_register): New function.
9134 (vax_frame_unwind): New variable.
9135 (vax_frame_sniffer): New function.
9136 (vax_frame_base_address): New function.
9137 (vax_frame_args_address): New function.
9138 (vax_frame_base): New variable.
9139 (vax_unwind_pc): New function.
9140 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
9141 deprecated_fp_regnum, deprecated_saved_pc_after_call,
9142 deprecated_frame_chain, deprecated_frame_saved_pc,
9143 deprecated_frame_args_address and
9144 deprecated_frame_init_saved_regs.
9145 * Makefile.in (vax-tdep.o): Update dependencies.
9146
9147 * vaxbsd-nat.c: New file.
9148
9149 * vax-tdep.h: Update copyright year. Adjust comments.
9150 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
9151 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
9152 (vax_regnum): New enum. Replacing...
9153 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
9154 (VAX_PS_REGNUM): ... these removed macros.
9155 * vax-tdep.c (vax_register_name): Remove prototype.
9156 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
9157 (vax_register_byte, vax_register_raw_size,
9158 vax_register_virtual_size, vax_register_virtual_type): Remove
9159 functions.
9160 (vax_register_type): New function.
9161 (vax_breakpoint_from_pc): Reorganize.
9162 (vax_gdbarch_init): Set register_type. Don't set
9163 deprecated_register_size, deprecated_register_bytes,
9164 deprecated_register_byte, deprecated_register_raw_size,
9165 deprecated_max_register_raw_size,
9166 deprecated_register_virtual_size,
9167 deprecated_max_register_virtual_size and
9168 deprecated_register_virtual_type. Add comment on stack direction.
9169
9170 2004-04-11 Mark Kettenis <kettenis@gnu.org>
9171
9172 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
9173 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
9174 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
9175
9176 2004-04-10 Randolph Chung <tausq@debian.org>
9177
9178 * MAINTAINERS (write after approval): Add myself.
9179
9180 2004-04-07 Randolph Chung <tausq@debian.org>
9181
9182 * hppa-tdep.c (hppa_inner_than): Remove.
9183 (is_pa_2): Remove unused static variable.
9184 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
9185
9186 2004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
9187
9188 * language.h (language_defn): Add new la_post_parser field.
9189 * parser-defs.h (null_post_parser): New declaration (default for
9190 la_post_parser).
9191
9192 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
9193 insert call to that function.
9194 (parse_exp_in_context): New function, including code formerly in
9195 parse_exp_1. Calls language-dependent post-parser after
9196 prefixification.
9197 (parse_expression_in_context): New exported function.
9198 (null_post_parser): New definition.
9199 * expression.h (parse_expression_in_context): Add declaration.
9200
9201 * p-lang.c (pascal_language_defn): Add trivial post-parser.
9202 * c-lang.c (c_language_defn): Ditto.
9203 (cplus_language_defn): Ditto.
9204 (asm_language_defn): Ditto.
9205 (minimal_language_defn): Ditto.
9206 * f-lang.c (f_language_defn): Ditto.
9207 * jv-lang.c (java_language_defn): Ditto.
9208 * language.c (unknown_language_defn): Ditto.
9209 (auto_language_defn): Ditto.
9210 (local_language_defn): Ditto.
9211 * m2-lang.c (m2_language_defn): Ditto.
9212 * scm-lang.c (scm_language_defn): Ditto.
9213 * obj-lang.c (objc_language_defn): Ditto.
9214
9215 2004-04-10 Mark Kettenis <kettenis@gnu.org>
9216
9217 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
9218 (amd64nbsd_mcontext_addr): New function.
9219 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
9220 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
9221 with amd64nbsd_r_reg_offset, instead of building it on the fly.
9222
9223 * corelow.c (core_xfer_partial): Fix coding standards violation.
9224 Add support for TARGET_OBJECT_WCOOKIE.
9225
9226 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
9227 deprecated_pc_in_sigtramp.
9228 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
9229 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
9230 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
9231 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
9232 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
9233 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
9234 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
9235
9236 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
9237 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
9238 Fix typo.
9239
9240 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
9241 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
9242 (amd64_collect_fxsave): Likewise.
9243
9244 * i386-sol2-tdep.c: Include "gdb_string.h".
9245 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
9246 name.
9247 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
9248
9249 2004-04-10 Mark Kettenis <kettenis@gnu.org>
9250
9251 * i386-sol2-tdep.c: Include "solib-svr4.h".
9252 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9253 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
9254 * config/i386/tm-i386sol2.h: Include :solib.h".
9255 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
9256 solib-svr4.o and solib-legacy.o.
9257 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
9258 solib-svr4.o.
9259
9260 2004-04-09 Mark Kettenis <kettenis@gnu.org>
9261
9262 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
9263 whether a register is supplied by PTRACE_GETFPREGS.
9264 (store_inferior_registers): Likewise.
9265 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
9266 whether a register is supplied by PT_GETFPREGS.
9267 (store_inferior_registers): Likewise.
9268
9269 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
9270 * config/i386/linux64.mt (TDEPFILES): Likewise.
9271
9272 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
9273
9274 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
9275 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
9276 the program counter is in the range specified by `struct
9277 gdbarch_tdep'.
9278 * amd64-linux-tdep.c: Include "symtab.h".
9279 (amd64_linux_pc_in_sigtramp): Remove function.
9280 (amd64_linux_sigtramp_p): New function.
9281 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
9282 deprecated_pc_in_sigtramp.
9283 * amd64nbsd-tdep.c: Include "symtab.h".
9284 (amd64nbsd_sigtramp_p): New function.
9285 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
9286 deprecated_pc_in_sigtramp.
9287 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
9288 few comments.
9289 (amd64obsd_pc_in_sigtramp): Remove function.
9290 (amd64obsd_sigtramp_p): New function.
9291 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
9292 deprecated_pc_in_sigtramp.
9293 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
9294 (i386bsd_pc_ins_sigtramp): Remove prototype.
9295 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
9296 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
9297 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
9298 the program counter is in the range specified by `struct
9299 gdbarch_tdep'.
9300 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
9301 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
9302 (i386_go32_pc_in_sigtramp): Remove function.
9303 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
9304 Initialize TDEP->sigtramp_p.
9305 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
9306 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
9307 deprecated_pc_in_sigtramp.
9308 * i386-linux-tdep.c: Adjust comments.
9309 (i386_linux_pc_in_sigtramp): Remove function.
9310 (i386_linux_sigtramp_p): New function.
9311 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
9312 deprecated_pc_in_sigtramp.
9313 * i386-nto-tdep.c: Update copyright year.
9314 (i386nto_pc_in_sigtramp): Remove function.
9315 (i386nto_sigtramp_p): New function.
9316 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
9317 SP_REGNUM.
9318 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
9319 deprecated_pc_in_sigtramp.
9320 * i386-sol2-tdep.c: Update copyright year.
9321 (i386_sol2_pc_in_sigtramp): Remove function.
9322 (i386_sol2_sigtramp_p): New function.
9323 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
9324 deprecated_pc_in_sigtramp.
9325 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
9326 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
9327 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9328 deprecated_sigtramp_start and deprecated_sigtramp_end.
9329 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
9330 (i386nbsd_pc_in_sigtramp): Remove function.
9331 (i386nbsd_sigtramp_p): New function.
9332 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9333 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
9334 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
9335 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
9336 (i386obsd_pc_in_sigtramp): Remove function.
9337 (i386obsd_sigtramp_p): New function.
9338 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
9339 functions.
9340 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9341 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
9342 TDEP->sigtramp_p.
9343 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
9344 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
9345 dependencies.
9346
9347 * config/i386/i386aout.mt: Remove file.
9348
9349 * configure.tgt: Remove i[34567]86-*-go32*,
9350 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
9351 and i[34567]86-*-isc*. Set gdb_target to i386 for
9352 i[34567]86-*-netware* and i[34567]86-*-*.
9353 * config/i386/i386.mt: New file.
9354 * config/i386/embed.mt: Remove file.
9355 * config/i386/go32.mt: Remove file.
9356 * config/i386/i386nw.mt: Remove file.
9357 * config/i386/i386v.mt: Remove file.
9358 * config/i386/tm-go32.h: Remove file.
9359
9360 * tui/tui-hooks.c: Include "readline/readline.h" after
9361 "gdb_curses.h" instead of before.
9362 * tui/tui-io.c: Likewise.
9363
9364 * tui/tui.c: Fix typo in comment.
9365
9366 * sparc64-tdep.c (sparc_address_from_register): Remove function.
9367
9368 2004-04-08 Andrew Cagney <cagney@redhat.com>
9369
9370 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
9371 (deprecated_exception_support_initialized): Declare.
9372 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
9373 (initialize_hp_cxx_exception_support)
9374 (child_enable_exception_callback): Update.
9375 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
9376 (deprecated_exception_support_initialized): Rename
9377 deprecated_exception_catchpoints_are_fragile and
9378 deprecated_exception_support_initialized.
9379 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
9380
9381 * symtab.c (deprecated_hp_som_som_object_present): Rename
9382 hp_som_som_object_present.
9383 * symtab.h (deprecated_hp_som_som_object_present): Declare.
9384 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
9385 Update. Delete extern declaration.
9386 * valops.c (hp_som_som_object_present): Ditto.
9387 * parse.c (deprecated_hp_som_som_object_present)
9388 (parse_nested_classes_for_hpacc): Ditto.
9389 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
9390 * hppa-hpux-tdep.c (hp_som_som_object_present)
9391 (initialize_hp_cxx_exception_support): Ditto.
9392 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
9393 * cp-valprint.c (hp_som_som_object_present)
9394 (cp_print_class_method): Ditto.
9395 * c-typeprint.c (hp_som_som_object_present):
9396 (c_type_print_base): Ditto.
9397 * c-exp.y (hp_som_som_object_present): Ditto.
9398
9399 2004-04-08 Andrew Cagney <cagney@redhat.com>
9400
9401 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
9402 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
9403 (frame_unwind_find_by_frame): Re-implement the unwind code so
9404 that it can both prepend and append sniffers. Replace
9405 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
9406 * tramp-frame.c (tramp_frame_append): Use
9407 frame_unwind_prepend_unwinder.
9408 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
9409 frame_unwind_register_unwinder.
9410 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
9411 tramp_frame_append.
9412 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
9413 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
9414 (mips_linux_init_abi): Update.
9415
9416 2004-04-08 Kevin Buettner <kevinb@redhat.com>
9417
9418 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
9419 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
9420 file support.
9421
9422 2004-04-07 Kevin Buettner <kevinb@redhat.com>
9423
9424 * ia64-tdep.c (elf.h): Don't include.
9425 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
9426
9427 2004-04-07 Jason Molenda (jmolenda@apple.com)
9428
9429 * frame.h: Typeo corrections in comments.
9430
9431 2004-04-07 Jim Blandy <jimb@redhat.com>
9432
9433 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
9434 %esp and %ebp
9435
9436 2004-04-07 Mark Kettenis <kettenis@gnu.org>
9437
9438 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
9439 * config/sparc/linux64.mt (TDEPFILES): Likewise.
9440 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
9441 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
9442 and solib-legacy.o.
9443 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
9444 solib-svr4.o.
9445 * config/sparc/tm-sol2.h: Update copyright year. Include
9446 "solib.h".
9447
9448 * sparc-sol2-tdep.c: Update copyright year. Include
9449 "solib-svr4.h".
9450 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9451 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
9452 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9453 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
9454 dependencies.
9455
9456 2004-04-06 Andrew Cagney <cagney@redhat.com>
9457
9458 * infttrace.c: Include "infttrace.h".
9459 * infttrace.h: Include "target.h".
9460 * Makefile.in (infttrace_h): Update.
9461 (infttrace.o): Update.
9462
9463 2004-04-06 Andrew Cagney <cagney@redhat.com>
9464
9465 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
9466 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
9467 move extern declarations from here ...
9468 * infttrace.h: ... to here.
9469 * Makefile.in (hppah-nat.o): Update dependencies.
9470
9471 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
9472 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
9473 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
9474 (hppa_breakpoint_from_pc): Delete.
9475
9476 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
9477
9478 2004-04-05 Andrew Cagney <cagney@redhat.com>
9479
9480 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
9481 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
9482 <sys/file.h>.
9483
9484 2004-04-06 Randolph Chung <tausq@debian.org>
9485
9486 Committed by Andrew Cagney (mechanical change).
9487 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
9488 exception_catchpoints_are_fragile, find_stub_with_shl_get,
9489 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
9490 child_enable_exception_callback, current_ex_event,
9491 null_symtab_and_line, child_get_current_exception_event,
9492 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
9493 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
9494 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
9495 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
9496 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
9497 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
9498 Move hpux-specific definitions ...
9499 * hppa-hpux-tdep.c: ... to here.
9500
9501 2004-04-05 Andrew Cagney <cagney@redhat.com>
9502
9503 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
9504 skip_prologue_using_sal.
9505
9506 2004-04-05 Andrew Cagney <cagney@redhat.com>
9507
9508 * config/i386/tm-i386.h: Delete file.
9509 * config/i386/tm-vxworks.h: Update copyright, do not include
9510 "tm-i386.h".
9511 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
9512 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
9513 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
9514 * config/i386/ncr3000.mt (TM_FILE): Delete.
9515 * config/i386/interix.mt (TM_FILE): Delete.
9516 * config/i386/i386v.mt (TM_FILE): Delete.
9517 * config/i386/i386nw.mt (TM_FILE): Delete.
9518 * config/i386/i386gnu.mt (TM_FILE): Delete.
9519 * config/i386/i386aout.mt (TM_FILE): Delete.
9520 * config/i386/embed.mt (TM_FILE): Delete.
9521
9522 2004-04-05 Kevin Buettner <kevinb@redhat.com>
9523
9524 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
9525 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
9526 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
9527 (accg7_regnum): New constants.
9528 (last_spr_regnum, last_pseudo_regnum): Update.
9529 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
9530 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
9531 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
9532 for accg registers.
9533 (frv_register_sim_regno): Update spr_map[].
9534
9535 2004-04-04 Andrew Cagney <cagney@redhat.com>
9536
9537 * config/mips/xm-riscos.h: Delete.
9538 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
9539 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
9540 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
9541 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
9542 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
9543 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
9544 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
9545 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
9546 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
9547 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
9548 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
9549 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
9550 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
9551 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
9552 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
9553 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
9554 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
9555 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
9556 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
9557 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
9558 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
9559 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
9560 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
9561 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
9562 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
9563 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
9564
9565 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
9566 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
9567 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
9568 * configure.host: Remove m680[01]0-sun-sunos3*,
9569 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
9570 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
9571 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
9572 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
9573 mips-*-riscos*.
9574 * NEWS: Mention removed systems.
9575
9576 2004-04-04 Andrew Cagney <cagney@redhat.com>
9577
9578 GDB 6.1 release created from 6.1 branch.
9579
9580 2004-04-04 Andrew Cagney <cagney@redhat.com>
9581
9582 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
9583 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
9584 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
9585
9586 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
9587 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
9588 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
9589
9590 2004-04-03 Jim Blandy <jimb@redhat.com>
9591
9592 * MAINTAINERS: Chris Faylor has changed employers; add him to
9593 "paper trail" section, and update his E-mail address.
9594
9595 2004-04-03 Andrew Cagney <cagney@redhat.com>
9596
9597 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
9598 generic dummy frames.
9599 * dummy-frame.c: Update copyright.
9600 (dummy_frame_sniffer): Delete check for generic dummy frames.
9601
9602 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
9603 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
9604 (REG_PARM_STACK_SPACE): Delete.
9605 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
9606 Inline reference to REG_PARM_STACK_SPACE.
9607
9608 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
9609 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
9610 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
9611 (FRAME_BASE_BEFORE_SIGTRAMP)
9612 (hppa32_hpux_frame_base_before_sigtramp)
9613 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
9614 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
9615 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
9616 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
9617 (FRAME_BASE_BEFORE_SIGTRAMP)
9618 (hppa64_hpux_frame_base_before_sigtramp)
9619 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
9620
9621 2004-04-03 Andrew Cagney <cagney@redhat.com>
9622
9623 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
9624
9625 2004-04-02 Andrew Cagney <cagney@redhat.com>
9626
9627 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
9628 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
9629 * dummy-frame.h: Delete out-of-date comments.
9630 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
9631 * gdbarch.h, gdbarch.c: Re-generate.
9632
9633 2004-04-02 Joel Brobecker <brobecker@gnat.com>
9634
9635 Committed by Andrew Cagney <cagney@redhat.com>.
9636 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
9637 into account an instruction saving a register if we have already
9638 seen an earlier instruction saving that same register.
9639
9640 2004-04-02 Andrew Cagney <cagney@redhat.com>
9641
9642 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
9643 * gdbarch.h, gdbarch.c: Re-generate.
9644 * frame.c (legacy_get_prev_frame): Delete references to
9645 DEPRECATED_INIT_FRAME_PC_FIRST.
9646
9647 * infrun.c (pc_in_sigtramp): Delete function.
9648 (check_sigtramp2): Inline call to pc_in_sigtramp, use
9649 get_frame_type.
9650
9651 2004-04-02 Andrew Cagney <cagney@redhat.com>
9652
9653 * infrun.c (handle_step_into_function): Delete code conditional on
9654 legacy_frame_p.
9655 (handle_inferior_event, step_over_function): Ditto.
9656
9657 2004-04-02 Andrew Cagney <cagney@redhat.com>
9658
9659 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
9660 "previous frame inner to this frame" test.
9661
9662 2004-04-02 Andrew Cagney <cagney@redhat.com>
9663
9664 * frame.c (safe_frame_unwind_memory): New function.
9665 * frame.h (safe_frame_unwind_memory): Declare. Update description
9666 of /safe_/ methods.
9667 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
9668 "next_frame". Use safe_frame_unwind_memory.
9669 (tramp_frame_sniffer): Update call to tramp_frame_start.
9670
9671 2004-04-01 Daniel Jacobowitz <drow@mvista.com>
9672
9673 * dwarf2read.c (dwarf2_objfile_data_key): New.
9674 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
9675 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
9676 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
9677 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
9678 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
9679 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
9680 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
9681 Remove variables.
9682 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
9683 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
9684 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
9685 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
9686 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
9687 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
9688 Remove macros.
9689 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
9690 data.
9691 (dwarf2_locate_sections, dwarf2_build_psymtabs)
9692 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
9693 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
9694 (read_partial_die, read_full_die, read_indirect_string)
9695 (dwarf_decode_line_header, dwarf_decode_macros)
9696 (dwarf2_symbol_mark_computed): Remove use of removed macros.
9697 Update uses of removed variables.
9698 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
9699 of removed macros.
9700 (_initialize_dwarf2_read): New function.
9701 * symfile.h (dwarf2_has_info): Update prototype.
9702 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
9703 * elfread.c (elf_symfile_read): Likewise.
9704
9705 2004-04-01 Jim Blandy <jimb@redhat.com>
9706
9707 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
9708 function for register numbers on all the rs6000-derived targets.
9709 (rs6000_gdbarch_init): Don't register a separate
9710 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
9711 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
9712 variants.
9713
9714 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
9715 numbering.
9716
9717 2004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
9718
9719 * valarith.c: Update copyright notice.
9720 (value_add): Handle range types.
9721 (value_sub): Ditto.
9722 (value_equal): Ditto.
9723 (value_less): Ditto.
9724 (value_neg): Ditto.
9725 (value_complement): Ditto.
9726 (value_binop): Simplify slightly by using is_integral_type and
9727 eliminiating unnecessary COERCE_ENUMs.
9728
9729 2004-03-31 Andrew Cagney <cagney@redhat.com>
9730
9731 * frame.h (frame_unwind_id): Declare.
9732 * frame.c (frame_unwind_id): New function.
9733 (get_prev_frame_1): New function.
9734 (frame_debug_got_null_frame): New function.
9735 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
9736 code proper to prev_frame, update description.
9737 * infrun.c (step_over_function): Use frame_unwind_id.
9738
9739 2004-04-31 J. Brobecker <brobecker@gnat.com>
9740
9741 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
9742 (hppa64_push_dummy_call): Likewise.
9743
9744 2004-03-30 Jim Blandy <jimb@redhat.com>
9745
9746 From Ulrich Weigand:
9747 * utils.c (query): Do not use a va_list variable multiple times.
9748
9749 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
9750
9751 * Makefile.in (linux_nat_h): Update dependencies.
9752 * configure.in: Check for <gnu/libc-version.h>.
9753 * configure: Regenerate.
9754 * config.in: Regenerate.
9755 * linux-nat.h: Include "target.h". Add waitstatus field to
9756 struct lwp_info.
9757 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
9758 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
9759 to.
9760 (lin_lwp_handle_extended): New function. Handle clone events.
9761 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
9762 thread exit events.
9763 (child_wait): Handle clone events.
9764 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
9765 * linux-nat.c (linux_enable_event_reporting): Turn on
9766 PTRACE_O_TRACECLONE.
9767 (linux_handle_extended_wait): Handle clone events.
9768 * thread-db.c: Include <gnu/libc-version.h>.
9769 (struct private_thread_info): Add dying flag.
9770 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
9771 higher.
9772 (attach_thread): Update comments. Handle dying threads.
9773 (detach_thread): Set the dying flag.
9774 (check_event): Always call attach_thread.
9775
9776 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
9777
9778 * mips-tdep.c (mips_pdr_data): New.
9779 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
9780 (_initialize_mips_tdep): Initialize mips_pdr_data.
9781
9782 2004-03-29 Corinna Vinschen <vinschen@redhat.com>
9783
9784 * minsyms.c (install_minimal_symbols): Move dropping leading
9785 char from linkage name from here...
9786 (prim_record_minimal_symbol_and_info): ...to here. Simplify
9787 test for "__gnu_compiled*" symbols.
9788
9789 2004-03-28 Jim Blandy <jimb@redhat.com>
9790
9791 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
9792 registers to temp register r0 and byte stores as prologue
9793 instructions.
9794
9795 2004-03-28 Andrew Cagney <cagney@redhat.com>
9796
9797 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
9798 arm*-*-*.
9799
9800 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
9801
9802 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
9803 and switch the layout to force a display of register window.
9804
9805 2004-02-26 J. Brobecker <brobecker@gnat.com>
9806
9807 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
9808 of the INTEGER class.
9809
9810 2004-03-26 Jim Blandy <jimb@redhat.com>
9811
9812 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
9813 bytes long on PPC GNU/Linux.
9814
9815 2004-03-26 David Carlton <carlton@kealia.com>
9816
9817 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
9818
9819 2004-03-25 Andrew Cagney <cagney@redhat.com>
9820
9821 * PROBLEMS: Add general section titles, remove references to
9822 specific releases.
9823
9824 2004-03-25 Daniel Jacobowitz <drow@mvista.com>
9825
9826 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
9827 INT_REGISTER_SIZE.
9828 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
9829 FP_REGISTER_VIRTUAL_SIZE.
9830 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
9831 of DEPRECATED_REGISTER_RAW_SIZE.
9832 (arm_register_type): Add gdbarch argument.
9833 (arm_register_raw_size, arm_register_virtual_size): Delete.
9834 (arm_register_byte, arm_extract_return_value)
9835 (arm_store_return_value, arm_get_longjmp_target): Update references
9836 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
9837 (arm_gdbarch_init): Likewise. Don't set
9838 deprecated_register_raw_size, deprecated_register_virtual_size,
9839 deprecated_max_register_raw_size,
9840 deprecated_max_register_virtual_size, or
9841 deprecated_max_register_virtual_type. Do set register_type.
9842 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
9843 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
9844 (FP_REGISTER_VIRTUAL_SIZE): Delete.
9845 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
9846 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
9847 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
9848 INT_REGISTER_SIZE.
9849 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
9850 (remote_rdp_store_register): Likewise.
9851
9852 2004-03-24 Daniel Jacobowitz <drow@mvista.com>
9853
9854 * Makefile.in (mips-linux-tdep.o): Update dependencies.
9855 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
9856 to after osabi initialization.
9857 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
9858 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
9859 functions.
9860 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
9861 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
9862 variables.
9863 (mips_linux_init_abi): Append signal trampoline unwinders.
9864
9865 2004-03-24 Andrew Cagney <cagney@redhat.com>
9866
9867 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
9868 * tramp-frame.c: Include "gdb_assert.h".
9869 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
9870 correct sizeof.
9871 (tramp_frame_append): Validate the tramp frame's instructions.
9872 * Makefile.in (tramp-frame.o): Update dependencies.
9873
9874 2004-03-23 Andrew Cagney <cagney@redhat.com>
9875
9876 * trad-frame.h (trad_frame_set_reg_addr): Declare.
9877
9878 2004-03-23 Andrew Cagney <cagney@redhat.com>
9879
9880 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
9881 Nasser as past testsuite/lib/ (and other) maintainers.
9882
9883 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
9884
9885 * infcmd.c (attach_command): Reread symbols if we already have
9886 an exec file.
9887
9888 2004-03-23 Andrew Cagney <cagney@redhat.com>
9889
9890 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
9891
9892 2004-03-23 Andrew Cagney <cagney@redhat.com>
9893
9894 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
9895 * gdbarch.h, gdbarch.c: Re-generate.
9896 * i386obsd-tdep.c (i386obsd_init_abi): Update.
9897 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
9898 * i386bsd-tdep.c (i386bsd_init_abi): Update.
9899 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
9900 (DEPRECATED_SIGTRAMP_START): Update.
9901 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
9902 (DEPRECATED_SIGTRAMP_START): Update.
9903 * blockframe.c (find_pc_sect_partial_function): Update.
9904 * arch-utils.c (legacy_pc_in_sigtramp): Update.
9905
9906 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
9907
9908 * remote.c (remote_open_1): Reopen the exec file and reread symbols
9909 if necessary.
9910
9911 2004-03-23 Andrew Cagney <cagney@redhat.com>
9912
9913 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
9914 predicate, deprecate.
9915 * gdbarch.h, gdbarch.c: Re-generate.
9916 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
9917 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
9918 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
9919 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
9920 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
9921 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
9922 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
9923 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
9924 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
9925 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
9926 * blockframe.c (find_pc_partial_function): Update.
9927 * breakpoint.c (bpstat_what): Update.
9928 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
9929 * frv-linux-tdep.c (frv_linux_init_abi): Update.
9930 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
9931 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
9932 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9933 * i386-linux-tdep.c (i386_linux_init_abi): Update.
9934 * i386-nto-tdep.c (i386nto_init_abi): Update.
9935 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
9936 * i386-tdep.c (i386_sigtramp_frame_sniffer)
9937 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
9938 * i386bsd-tdep.c (i386bsd_init_abi): Update.
9939 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
9940 * i386obsd-tdep.c (i386obsd_init_abi): Update.
9941 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
9942 * infrun.c (pc_in_sigtramp): Update.
9943 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
9944 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
9945 * mips-tdep.c (mips_gdbarch_init): Update.
9946 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
9947 * ppc-linux-tdep.c: Update comment.
9948 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
9949 * shnbsd-tdep.c (shnbsd_init_abi): Update.
9950 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
9951 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
9952 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
9953 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
9954 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
9955 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
9956 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
9957 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
9958
9959 2004-03-23 Andrew Cagney <cagney@redhat.com>
9960
9961 * tramp-frame.h, tramp-frame.h: New files.
9962 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
9963 Update rules to include "tramp-frame.h" and "tramp-frame.c".
9964
9965 * Makefile.in: Update all dependencies.
9966
9967 2004-03-23 Andrew Cagney <cagney@redhat.com>
9968
9969 * Makefile.in (trad_frame_h): Add $(frame_h).
9970 * trad-frame.h: Update copyright. Include "frame.h".
9971 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
9972 (trad_frame_set_id, trad_frame_get_id): Declare.
9973 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
9974 * trad-frame.c: Update copyright.
9975 (struct trad_frame_cache): Define.
9976 (trad_frame_cache_zalloc): New function.
9977 (trad_frame_set_id, trad_frame_get_id): New functions.
9978 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
9979
9980 2004-03-22 Andrew Cagney <cagney@redhat.com>
9981
9982 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
9983 s390_pltstub_unwind_cache.
9984 (s390_stub_frame_unwind_cache): Rename
9985 s390_pltstub_frame_unwind_cache.
9986 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
9987 (s390_stub_frame_prev_register): Rename
9988 s390_pltstub_frame_prev_register.
9989 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
9990 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
9991
9992 From Ulrich Weigand:
9993 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
9994 pointer calls like PLT calls.
9995
9996 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
9997
9998 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
9999 PC rather than the partial function start address. Use the start
10000 address to sanity check the found PDR.
10001
10002 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
10003
10004 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
10005 linux_handle_extended_wait.
10006
10007 2004-03-22 Andrew Cagney <cagney@redhat.com>
10008
10009 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
10010 function.
10011
10012 * frame.h (generic_pop_current_frame): Delete declaration.
10013 (deprecate_pop_dummy_frame): Deprecate
10014 generic_pop_dummy_frame.
10015 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
10016 (generic_pop_current_frame): Delete function.
10017 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
10018 generic_pop_current_frame.
10019 * v850-tdep.c (v850_pop_frame): Update.
10020 * mcore-tdep.c (mcore_pop_frame): Update.
10021 * sh64-tdep.c (sh64_pop_frame): Update.
10022 * h8300-tdep.c (h8300_pop_frame): Update.
10023
10024 2004-03-22 Andrew Cagney <cagney@redhat.com>
10025
10026 * frame.h (deprecated_pc_in_call_dummy): Rename
10027 generic_pc_in_call_dummy.
10028 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
10029 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
10030 generic_pc_in_call_dummy.
10031 (pc_in_dummy_frame): Make static.
10032 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
10033 * gdbarch.h, gdbarch.c: Re-generate.
10034 * dummy-frame.c (dummy_frame_sniffer): Simplify.
10035 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
10036 (legacy_get_prev_frame): Ditto.
10037 * inferior.h: Delete reference to generic_pc_in_call_dummy in
10038 comment.
10039
10040 2004-03-21 Andrew Cagney <cagney@redhat.com>
10041
10042 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
10043 declaration and out-of-date comment.
10044 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
10045 Delete function.
10046 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
10047 deprecated_pc_in_call_dummy.
10048
10049 * infrun.c (handle_inferior_event): For non legacy frames, use the
10050 frame ID and frame type to identify a signal trampoline. Update
10051 comments.
10052
10053 2004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
10054
10055 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
10056 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
10057
10058 2004-03-21 Andrew Cagney <cagney@redhat.com>
10059
10060 * frame-unwind.h: Update copyright.
10061 (struct frame_data): Add opaque declaration.
10062 (frame_sniffer_ftype): Declare.
10063 (struct frame_unwind): Add "unwind_data" and "sniffer".
10064 (frame_unwind_register_unwinder): Declare.
10065 (frame_unwind_find_by_frame): Add parameter "this_cache".
10066 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
10067 (legacy_get_prev_frame, legacy_get_prev_frame)
10068 (get_frame_type): Pass the prologue_cache to
10069 frame_unwind_find_by_frame.
10070 * frame-unwind.c (struct frame_unwind_table_entry): Add field
10071 "unwinder".
10072 (frame_unwind_register_unwinder): New function.
10073 (frame_unwind_find_by_frame): Handle an unwind sniffer.
10074
10075 2004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
10076
10077 * bcache.c (print_percentage): Use floating point to avoid
10078 incorrect results when portion*100 overflows.
10079
10080 2004-03-19 Kevin Buettner <kevinb@redhat.com>
10081
10082 * ppc_tdep.h (ppc_linux_frame_saved_pc)
10083 (ppc_linux_init_extra_frame_info)
10084 (ppc_linux_frameless_function_invocation)
10085 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
10086 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
10087 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
10088 (rs6000_frame_chain): Delete declarations.
10089 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
10090 (ppc_linux_init_extra_frame_info)
10091 (ppc_linux_frameless_function_invocation)
10092 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
10093 (ppc_linux_init_abi): Remove registration of above deleted functions.
10094 * rs6000-tdep.c (rs6000_init_extra_frame_info)
10095 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
10096 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
10097 (rs6000_pop_frame, rs6000_frameless_function_invocation)
10098 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
10099 (rs6000_gdbarch_init): Remove registration of above deleted functions.
10100 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
10101 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
10102 frame management for all OSABIs.
10103
10104 2004-03-19 Andrew Cagney <cagney@redhat.com>
10105
10106 Committed by Kevin Buettner <kevinb@redhat.com>.
10107
10108 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
10109 Update copyright.
10110 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
10111 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
10112 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
10113 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
10114 unwinders. #ifdef legacy frame code.
10115 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
10116 "frame-base.h".
10117 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
10118 (struct rs6000_frame_cache, rs6000_frame_cache)
10119 (rs6000_frame_this_id, rs6000_frame_prev_register)
10120 (rs6000_frame_sniffer, rs6000_frame_unwind)
10121 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
10122 (rs6000_frame_base): Implement a traditional frame unwinder.
10123 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
10124 frame unwinder.
10125
10126 2004-03-19 Kevin Buettner <kevinb@redhat.com>
10127
10128 * breakpoint.c (adjust_breakpoint_address): Don't adjust
10129 breakpoint address for watchpoints or the catch eventpoints.
10130 Add new paramter ``bptype''. Adjust all callers.
10131
10132 2004-03-19 Andrew Cagney <cagney@redhat.com>
10133
10134 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
10135
10136 * PROBLEMS: Delete note that ARM does not use frame code, problem
10137 fixed.
10138
10139 2004-03-18 Andrew Cagney <cagney@redhat.com>
10140
10141 * stack.c (return_command): Delete code wrapped in #ifdef
10142 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
10143
10144 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
10145
10146 2004-03-18 Andrew Cagney <cagney@redhat.com>
10147
10148 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
10149 DEPRECATED_IN_SIGTRAMP.
10150 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10151 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
10152 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10153 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10154 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10155 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10156 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10157 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10158 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
10159 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
10160
10161 2004-03-18 Andrew Cagney <cagney@redhat.com>
10162
10163 * frame-base.c: Update copyright. Include "gdb_obstack.h".
10164 (struct frame_base_table_entry): Define.
10165 (struct frame_base_table): Re-implement as a linked list.
10166 (frame_base_init): Re-implement.
10167 (frame_base_table): Delete function.
10168 (append_predicate): Delete function.
10169 (frame_base_append_sniffer): Update.
10170 (frame_base_set_default): Update.
10171 (frame_base_find_by_frame): Update.
10172 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
10173 * Makefile.in (frame-base.o): Update dependencies.
10174
10175 2004-03-17 Andrew Cagney <cagney@redhat.com>
10176
10177 * frame.c (legacy_get_prev_frame): Pass correct frame to
10178 frame_unwind_find_by_frame.
10179
10180 2004-03-17 David Carlton <carlton@kealia.com>
10181
10182 * NEWS: Mention C++ nested types and namespaces
10183
10184 2004-03-16 Michael Chastain <mec.gnu@mindspring.com>
10185
10186 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
10187 and "Regressions since gdb 5.3.". Add known regressions since
10188 gdb 6.0.
10189
10190 2004-03-16 David Carlton <carlton@kealia.com>
10191
10192 * dwarf2read.c (process_structure_scope): Process children even
10193 when we're a declaration.
10194
10195 2004-03-16 Andrew Cagney <cagney@redhat.com>
10196
10197 * symtab.h (find_pc_sect_partial_function): Delete declaration.
10198 * blockframe.c (find_pc_partial_function)
10199 (find_pc_sect_partial_function): Merge into a single
10200 find_pc_partial_function.
10201
10202 2004-03-16 Mark Kettenis <kettenis@gnu.org>
10203
10204 * i386bsd-nat.c: s/regno/regnum/g.
10205 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
10206 FP0_REGNUM.
10207 (store_inferior_registers): Likewise.
10208
10209 2004-03-16 Mark Kettenis <kettenis@gnu.org>
10210
10211 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
10212 of i387_fill_fsave.
10213 (store_inferior_registers): Call i387_collect_fsave and
10214 i387_collect_fxsave instead of i387_fill_fsave and
10215 i387_fill_fxsave.
10216
10217 2004-03-15 Andrew Cagney <cagney@redhat.com>
10218
10219 * Makefile.in (frame-unwind.o): Update dependencies.
10220 * frame-unwind.c: Include "gdb_obstack.h".
10221 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
10222 parameter.
10223 (append_predicate): Delete function.
10224 (struct frame_unwind_table_entry): New structure.
10225 (struct frame_unwind_table): Replace "sniffer" with "head" and
10226 "tail".
10227 (frame_unwind_append_sniffer): Update.
10228 (frame_unwind_find_by_frame): Update.
10229 (_initialize_frame_unwind): Registe frame_unwind_init using
10230 gdbarch_data_register_pre_init.
10231
10232 2004-03-15 Mark Kettenis <kettenis@gnu.org>
10233
10234 * i386bsd-nat.c: Update copyright year.
10235 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
10236 define unconditionally.
10237
10238 2004-03-15 Mark Kettenis <kettenis@gnu.org>
10239
10240 * i387-tdep.h (i387_collect_fsave): New prototype.
10241 * i387-tdep.c (i387_collect_fsave): New function containing most
10242 of the code from i387_fill_fsave.
10243 (i387_fill_fsave): Call i387_collect_fsave.
10244
10245 2004-03-15 Mark Kettenis <kettenis@gnu.org>
10246
10247 * i386-linux-tdep.c: Update copyright year.
10248 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
10249 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
10250 svr4_ilp32_link_map_offsets instead of
10251 i386_linux_svr4_fetch_link_map_offsets.
10252
10253 2004-03-15 David Carlton <carlton@kealia.com>
10254
10255 Fix for PR c++/1553:
10256 * dwarf2read.c (read_structure_type): Determine type name by
10257 calling determine_class_name.
10258 (determine_class_name): New.
10259 (determine_prefix): Look at TYPE_TAG_NAME and call
10260 determine_class_name when appropriate.
10261 (determine_prefix_aux, class_name): Delete.
10262 (read_namespace): Set die->type.
10263
10264 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10265
10266 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
10267 unused macro definition. The definition in target.h (or perhaps
10268 elsewhere) takes precedence.
10269
10270 2004-03-15 Andrew Cagney <cagney@redhat.com>
10271
10272 * ppc-tdep.h: Update copyright.
10273 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
10274 function signatures to match "regsets.h".
10275 * ppc-linux-tdep.c: Include "regset.h".
10276 (ELF_GREGSET_SIZE): Delete.
10277 (right_supply_register): New function.
10278 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
10279 using right_supply_register.
10280 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
10281 functions.
10282 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
10283 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
10284 (_initialize_ppc_linux_tdep): Do not register
10285 ppc_linux_regset_core_fns.
10286 (ppc_linux_regset_from_core_section): Replace
10287 fetch_core_registers.
10288 (ppc_linux_regset_core_fns): Delete.
10289 * ppc-linux-nat.c: (right_fill_reg): New function.
10290 (supply_gregset): Update call to ppc_linux_supply_gregset.
10291 (fill_gregset): Clear the register set, use right_fill_reg.
10292 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
10293 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
10294
10295 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
10296 unsigned.
10297
10298 2004-03-15 Andrew Cagney <cagney@redhat.com>
10299
10300 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
10301 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
10302 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
10303 and register_gdbarch_data.
10304 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
10305 (struct gdbarch_data): Replace "init" by "pre_init" and
10306 "post_init".
10307 * gdbarch.h, gdbarch.c: Re-generate.
10308 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
10309 with"obstack", use OBSTACK_ZALLOC.
10310 (dwarf2_frame_ops): Delete.
10311 (dwarf2_frame_set_init_reg): Use gdbarch_data.
10312 (dwarf2_frame_init_reg): Use gdbarch_data.
10313 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
10314 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
10315 (_initialize_svr4_solib): Update.
10316 * user-regs.c (_initialize_user_regs): Update.
10317 * reggroups.c (_initialize_reggroup): Update.
10318 * regcache.c (_initialize_regcache): Update.
10319 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
10320 * libunwind-frame.c (_initialize_libunwind_frame): Update.
10321 * gnu-v3-abi.c (init_gnuv3_ops): Update.
10322 * frame-unwind.c (_initialize_frame_unwind): Update.
10323 * frame-base.c (_initialize_frame_base): Update.
10324 * user-regs.c (user_reg_add): Update.
10325 * reggroups.c (reggroup_add): Update.
10326 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
10327 * libunwind-frame.c (libunwind_frame_set_descr): Update.
10328 * frame-unwind.c (frame_unwind_append_sniffer): Update.
10329 * frame-base.c (frame_base_table): Update.
10330 * remote.c (_initialize_remote): Update.
10331 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
10332
10333 2004-03-15 Andrew Cagney <cagney@redhat.com>
10334
10335 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
10336
10337 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10338
10339 * Makefile.in (frv-linux-tdep.o): Add dependencies.
10340 * frv-linux-tdep.c: New file.
10341 * frv-tdep.c (struct gdbarch_tdep): Add new field
10342 ``sigcontext_reg_addr''.
10343 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
10344 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
10345 (frv_sigramp_frame_sniffer): New functions.
10346 (frv_sigtramp_frame_unwind): New static global.
10347 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
10348 sniffers.
10349 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
10350 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
10351
10352 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10353
10354 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
10355 but not via a call to error(), when unable to read memory.
10356
10357 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10358
10359 * frv-tdep.c (frv_call_dummy_words): Delete.
10360 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
10361
10362 2004-03-15 Andrew Cagney <cagney@redhat.com>
10363
10364 * infrun.c (handle_step_into_function, step_over_function): Only
10365 update and use STEP_FRAME_ID when the system is using legacy
10366 frames. Update comments.
10367
10368 2004-03-14 Mark Kettenis <kettenis@gnu.org>
10369
10370 * amd64-linux-tdep.h: Remove file.
10371 * amd64-linux-tdep.c: Don't include "inferior.h" and
10372 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
10373 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
10374 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
10375 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
10376 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
10377 macros.
10378 (user_to_gdb_regmap): Remove variable.
10379 (amd64_linux_gregset_reg_offset): New variable.
10380 (amd64_core_fns): Remove variable.
10381 (fetch_core_registers): Remove function.
10382 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
10383 functions.
10384 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
10385 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
10386 * Makefile.in (amd64_linux_tdep_h): Remove.
10387 (amd64-linux-nat.o): Update dependencies.
10388 (amd64-linux-tdep.o): Update dependencies.
10389
10390 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
10391 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
10392 functions.
10393 (fetch_inferior_registers, store_inferior_registers): Rewrite.
10394
10395 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
10396 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
10397
10398 2004-03-14 Daniel Jacobowitz <drow@mvista.com>
10399
10400 * dwarf2read.c (read_structure_type): Rename from
10401 read_structure_scope. Don't create a symbol or call process_die.
10402 Return immediately if die->type is set. Call read_type_die before
10403 dwarf2_add_member_fn.
10404 (process_structure_scope): New function.
10405 (read_enumeration_type, process_enumeration_scope): New functions,
10406 broken out from read_enumeration. Don't create the enumeration
10407 type if it has already been created.
10408 (read_enumeration): Removed.
10409 (process_die): Call read_structure_type, process_structure_scope,
10410 read_enumeration_type, and process_enumeration_scope. Just call
10411 new_symbol for base and subrange types. Add a comment about other
10412 type dies.
10413 (read_type_die): Call read_enumeration_type.
10414 (add_partial_structure, new_symbol): Update comments.
10415
10416 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
10417
10418 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
10419
10420 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
10421
10422 * tui/tui-win.h (tui_get_cmd_list): Declare.
10423 * tui/tui-win.c (tui_command): New function.
10424 (tui_get_cmd_list): New function.
10425 (_initialize_tui_win): Moved initialization of tui command in
10426 tui_get_cmd_list.
10427
10428 * tui/tui-data.c (init_content_element): Setup new data members.
10429 (init_win_info): Likewise.
10430 (free_content_elements): Free it.
10431 * tui/tui-data.h (struct tui_data_element): Store the register
10432 content to print.
10433 (struct tui_data_info): Keep the current register group.
10434
10435 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
10436
10437 * tui/tui-regs.h (tui_show_registers): Update prototype.
10438 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
10439 (tui_resize_all): No need to calculate anything for register window.
10440 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
10441 (tui_set_register_element, tui_set_general_regs_content): Remove.
10442 (tui_set_special_regs_content): Remove.
10443 (tui_set_general_and_special_regs_content): Remove.
10444 (tui_set_float_regs_content): Remove.
10445 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
10446 (tui_set_regs_content): Remove.
10447 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
10448 (tui_v_show_registers_command_support): Remove.
10449 (tui_show_registers): Use a reggroup to specify the registers to show.
10450 (tui_show_register_group): New function.
10451 (tui_display_registers_from): Compute the layout of register window
10452 and refresh with new API; be sure to delete old register windows.
10453 (tui_check_register_values): Update to use tui_get_register and
10454 tui_display_data.
10455 (tui_display_register): Just refresh the register window part.
10456 (tui_register_format): Format registers and save in tui_data_element.
10457 (tui_get_register): New to combine tui_reg_value_has_changed and
10458 tui_get_register_raw_value; fix to use the new gdb API.
10459 (tui_show_float_command): Renamed tui_reg_float_command.
10460 (tui_show_general_command): Renamed tui_reg_general_command.
10461 (tui_show_special_command): Renamed tui_reg_system_command.
10462 (_initialize_tui_regs): Remove unused commands.
10463
10464 2004-03-13 Mark Kettenis <kettenis@gnu.org>
10465
10466 * NEWS (New native configurations): Mention OpenBSD/amd64.
10467
10468 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
10469 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
10470 Remove defines.
10471 * config/i386/nm-fbsd64.h: Likewise.
10472 * config/i386/nm-obsd.h: Likewise.
10473 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
10474 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
10475
10476 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10477
10478 * frv-tdep.c (set_variant_scratch_registers): New function.
10479 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
10480 New constants.
10481
10482 From Richard Sandiford <rsandifo@redhat.com>:
10483 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
10484
10485 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10486
10487 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
10488 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
10489 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
10490 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
10491 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
10492 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
10493 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
10494 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
10495 definitions from frv-tdep.c to frv-tdep.h.
10496
10497 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10498
10499 Add shared library support for FR-V FDPIC ABI:
10500 * Makefile.in (solib-frv.o): Add dependencies.
10501 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
10502 New functions.
10503 (frv_push_dummy_call): Add support for FDPIC ABI.
10504 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
10505 for FDPIC ABI.
10506 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
10507 (frv_fdpic_find_canonical_descriptor): Declare.
10508 * solib-frv.c: New file.
10509 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
10510 * config/frv/tm-frv.h (solib.h): Include.
10511
10512 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10513
10514 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
10515 (frv-tdep.o): Update dependencies.
10516 * frv-tdep.h: New file.
10517 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
10518 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
10519 constants.
10520 (struct gdbarch_tdep): Add new member ``frv_abi''.
10521 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
10522 functions.
10523 (new_variant): Set ``frv_abi'' field.
10524 (gdb_arch_init): Detect FDPIC executables.
10525
10526 2004-03-12 Mark Kettenis <kettenis@gnu.org>
10527
10528 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
10529 wrapper.
10530
10531 2004-03-11 Andrew Cagney <cagney@redhat.com>
10532
10533 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
10534
10535 2004-03-11 Kevin Buettner <kevinb@redhat.com>
10536
10537 * solist.h (master_so_list): New function.
10538 * solib.c (master_so_list): Likewise.
10539 * solib-svr4.c (enable_break): Iterate over so_list entries
10540 obtained from master list instead of entries obtained directly
10541 via svr4_current_sos().
10542
10543 2004-03-10 Ben Elliston <bje@gnu.org>
10544
10545 * MAINTAINERS: Update my mail address.
10546
10547 2004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
10548
10549 * remote-m32r-sdi.c: Support hardware watchpoint.
10550
10551 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10552
10553 * user-regs.c: Update copyright years.
10554 (struct user_regs): Rename to gdb_user_regs.
10555 (append_user_reg, builtin_user_regs, user_regs_init)
10556 (user_reg_add, user_reg_map_name_to_regnum)
10557 (usernum_to_user_reg): Update.
10558
10559 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10560
10561 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
10562 (skip_children): New functions.
10563 (locate_pdi_sibling): Call skip_children.
10564
10565 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10566
10567 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
10568 * gdbtypes.c (check_typedef): Update comments.
10569
10570 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10571
10572 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
10573 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
10574 pointer. Update comment about comp_unit_head.
10575 (struct abbrev_info): Shorten two int flags.
10576 (dwarf_alloc_abbrev): Take a CU argument.
10577 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
10578 each time through the loop. Update cleanup argument.
10579 (psymtab_to_symtab_1): Update cleanup call.
10580 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
10581 abbrev_obstack.
10582 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
10583 Just call obstack_free and clear the pointer.
10584
10585 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10586
10587 * infrun.c (handle_inferior_event): Remove short-circuit code for
10588 events in a different thread.
10589
10590 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10591
10592 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
10593 print the whole transfer.
10594 (initialize_targets): Update description of "set debug target".
10595
10596 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10597
10598 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
10599
10600 2004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
10601
10602 * MAINTAINERS (write after approval): Add myself.
10603
10604 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
10605
10606 * sh-tdep.c (sh_print_registers_info): Use for loop.
10607 Don't skip multiple registers when a float register is encountered.
10608
10609 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
10610
10611 Fix PR tdep/1291.
10612 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
10613 to official SH documentation.
10614
10615 2004-03-07 Andrew Cagney <cagney@redhat.com>
10616
10617 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
10618 unused function.
10619
10620 2004-03-07 Daniel Jacobowitz <drow@mvista.com>
10621
10622 * arm-tdep.c (thumb_get_next_pc): Handle BX.
10623 (arm_get_next_pc): Handle BX and BLX.
10624
10625 2004-03-07 Andrew Cagney <cagney@redhat.com>
10626
10627 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
10628 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
10629 HPPA_SP_REGNUM.
10630 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
10631 (hppa_target_read_fp): Delete.
10632 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
10633 register_virtual_size, max_register_raw_size,
10634 max_register_virtual_size, register_byte, register_size,
10635 target_read_fp, fp_regnum, and register_bytes. Set register_type
10636 instead of register_virtual_type.
10637 (hppa32_register_type, hppa64_register_type): Replace
10638 hppa32_register_virtual_type and hppa64_register_virtual_type.
10639 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
10640 (HPPA_FP_REGNUM): Define.
10641
10642 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
10643
10644 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
10645 (pa_do_registers_info): Delete.
10646 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
10647 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
10648 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
10649
10650 * infcall.c (legacy_push_dummy_code): Delete #ifdef
10651 GDB_TARGET_IS_HPPA code.
10652 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
10653 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
10654 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
10655 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
10656 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
10657 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
10658 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
10659 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
10660 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
10661 (hppa_frameless_function_invocation, hppa64_store_return_value)
10662 (hppa_store_struct_return, hppa64_extract_return_value)
10663 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
10664 (hppa32_call_dummy_length, hppa64_call_dummy_length)
10665 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
10666 (find_proc_framesize, deposit_21, restore_pc_queue)
10667 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
10668 (rp_saved, pc_in_linker_stub): Delete.
10669
10670 Unconditionally enable 64-bit frame and ABI code.
10671 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
10672 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
10673 push_dummy_frame, fix_call_dummy, push_arguments,
10674 call_dummy_location, extract_return_value, use_struct_convention,
10675 store_return_value, store_struct_return, saved_pc_after_call,
10676 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
10677 frame_chain, frame_chain_valid, frameless_function_invocation,
10678 frame_saved_pc, and pop_frame.
10679
10680 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
10681 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
10682 (hppa_gdbarch_init): Do not set PC_REGNUM.
10683
10684 2004-03-06 Mark Kettenis <kettenis@gnu.org>
10685
10686 * config/alpha/tm-fbsd.h: Remove file.
10687 * config/alpha/fbsd.mt: Tweak comment.
10688 (TM_FILE): Set to tm-alpha.h.
10689
10690 2004-03-05 Andrew Cagney <cagney@redhat.com>
10691
10692 * infrun.c (step_over_function): When non-legacy code, and no
10693 step_frame_id, use the unwinder to get the caller's frame ID.
10694
10695 2004-03-05 Mark Kettenis <kettenis@gnu.org>
10696
10697 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
10698 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
10699 bfd_arch_unknown. Adjust comment.
10700
10701 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
10702 * i386obsd-tdep.c: Correct spelling in comment.
10703 * i386nbsd-tdep.c: Correct spelling in comment.
10704 * sparc-tdep.c: Correct spelling in comments.
10705
10706 2004-03-05 David Carlton <carlton@kealia.com>
10707
10708 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
10709 bug.
10710
10711 2004-03-05 Mark Kettenis <kettenis@gnu.org>
10712
10713 * sparc-tdep.c: Fix typo in comment.
10714
10715 2004-03-04 J. Brobecker <brobecker@gnat.com>
10716
10717 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
10718
10719 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
10720
10721 * dwarf2read.c: Add comment describing memory lifetimes.
10722 (struct dwarf2_pinfo): Update comment.
10723 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
10724 (read_enumeration, new_symbol): Don't use obsavestring.
10725
10726 2004-03-04 Mark Kettenis <kettenis@gnu.org>
10727
10728 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
10729 instead of amd64_fill_fxsave.
10730 * amd64bsd-nat.c (store_inferior_registers): Likewise.
10731 * amd64fbsd-nat.c (fill_fpregset): Likewise.
10732
10733 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
10734 Reorganize code a bit.
10735
10736 2004-03-04 Orjan Friberg <orjanf@axis.com>
10737
10738 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
10739 when the frame pointer is pushed. Don't set the frame pointer's
10740 address on the stack unless it's actually located there.
10741 Set the SRP's address on the stack correctly when the PC is still in
10742 the prologue.
10743 (cris_return_value): New function.
10744 (cris_gdbarch_init): Clear deprecated store_return_value,
10745 extract_return_value.
10746
10747 2004-03-02 Jim Blandy <jimb@redhat.com>
10748
10749 * stabsread.c (reg_value_complaint): The maximum register number
10750 is one less than the number of registers.
10751
10752 2004-03-02 Andrew Cagney <cagney@redhat.com>
10753
10754 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
10755 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
10756 trailing comma and redundant assignment of I386_ST0_REGNUM.
10757 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
10758 32-bit segment registers.
10759
10760 2004-03-01 Andrew Cagney <cagney@redhat.com>
10761
10762 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
10763 use frame_relative_level and get_next_frame.
10764
10765 2004-02-29 Andrew Cagney <cagney@redhat.com>
10766
10767 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
10768 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
10769 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
10770 Delete macro.
10771
10772 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
10773
10774 * inflow.c (terminal_inferior): Don't give up the terminal if we
10775 previously couldn't get the inferior's terminal state.
10776
10777 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
10778
10779 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
10780 PC_REGNUM.
10781
10782 2004-02-28 Andrew Cagney <cagney@redhat.com>
10783
10784 * NEWS: Refer to GDB 6.1.
10785 * README: Refer to GDB 6.1.
10786 * PROBLEMS: Refer to GDB 6.1.
10787
10788 2004-02-28 Daniel Jacobowitz <drow@mvista.com>
10789
10790 * thread-db.c (disable_thread_signals): Remove unused function.
10791
10792 2004-02-28 Mark Kettenis <kettenis@gnu.org>
10793
10794 * amd64-nat.c: Include "gdb_string.h".
10795 (amd64_collect_native_gregset): Zero-extend the 32-bit
10796 general-purpose registers and %eip.
10797
10798 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
10799 * amd64-tdep.c (amd64_collect_fxsave): New function.
10800 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
10801
10802 * i387-tdep.h: Update copyright year.
10803 (i387_collect_fxsave): New prototype.
10804 * i387-tdep.c: Update copyright year.
10805 (i387_collect_fxsave): New function containing most of the code
10806 from i387_fill_fxsave.
10807 (i387_fill_fxsave): Call i387_collect_fxsave.
10808
10809 2004-02-28 Andrew Cagney <cagney@redhat.com>
10810
10811 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
10812 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
10813
10814 2004-02-28 Mark Kettenis <kettenis@gnu.org>
10815
10816 * amd64-tdep.c (amd64_frame_cache): Fix comment.
10817
10818 2004-02-28 Andrew Cagney <cagney@redhat.com>
10819
10820 * utils.c: Use "", instead of <>, to include readline.
10821 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
10822 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
10823 * source.c, solib.c, exec.c, event-top.c: Ditto.
10824 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
10825 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
10826 * Makefile.in: Update all dependencies.
10827 (readline_tilde_h, readline_history_h): Define.
10828 (readline_headers): Delete.
10829
10830 2004-02-28 Mark Kettenis <kettenis@gnu.org>
10831
10832 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
10833 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
10834 "config/i386/tm-lx64.h".
10835
10836 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
10837 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
10838 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
10839
10840 2004-02-28 Andrew Cagney <cagney@redhat.com>
10841
10842 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
10843
10844 * breakpoint.c (_initialize_breakpoint): Use
10845 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
10846 Add help to show command.
10847
10848 2004-02-28 Mark Kettenis <kettenis@gnu.org>
10849
10850 * i386-nat.c: Reformat to be closer to coding standards.
10851 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
10852 `retval'. Make variables `align' and `size' local to while-loop.
10853 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
10854 (_initialize_i386_nat): New prototype.
10855
10856 * tui/tui.c: Include <readline/readline.h> instead of
10857 "readline/readline.h". Include it after <term.h> and
10858 "gdb_curses.h".
10859
10860 2004-02-27 Andrew Cagney <cagney@redhat.com>
10861
10862 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
10863 the new frame unwind code.
10864 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
10865 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
10866 PCOQ_HEAD_REGNUM.
10867
10868 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
10869 "return_value" and "push_dummy_call".
10870 (hppa32_use_struct_convention): Delete unused function.
10871 (hppa32_store_return_value): Delete unused function.
10872 (hppa32_extract_return_value): Delete unused function.
10873 (hppa32_stack_align): Delete function.
10874
10875 2004-02-27 Eli Zaretskii <eliz@elta.co.il>
10876
10877 * coffread.c (enter_linenos): Don't let rawptr reference memory
10878 outside linetab[]'s limits.
10879
10880 2004-02-27 Andrew Cagney <cagney@redhat.com>
10881
10882 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
10883 inferior stack space - the stack needs to grow upwards.
10884 (hppa32_frame_align): New function.
10885 (hppa64_frame_align): Replace hppa_frame_align.
10886 (hppa_gdbarch_init): Update.
10887
10888 2004-02-26 Orjan Friberg <orjanf@axis.com>
10889
10890 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
10891 (dwarf2-frame.h): Include.
10892 (enum cris_regnums): New enum CRIS_FP_REGNUM.
10893 Remove static variables related to ABI setting.
10894 (struct gdbarch_tdep): Remove cris_abi member.
10895 (struct frame_extra_info): Remove.
10896 (cris_unwind_cache, stack_item): New structs.
10897 (cris_frame_unwind, cris_frame_base): New variables.
10898 (push_stack_item, pop_stack_item)
10899 (cris_frame_unwind_cache, cris_frame_this_id)
10900 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
10901 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
10902 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
10903 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
10904 (cris_reg_struct_has_addr): New functions.
10905 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
10906 (cris_frame_saved_pc, cris_saved_pc_after_call,
10907 (cris_store_struct_return, cris_frameless_function_invocation)
10908 (cris_pop_frame, cris_skip_prologue_main)
10909 (cris_abi_original_store_return_value)
10910 (cris_abi_v2_store_return_value)
10911 (cris_abi_original_extract_return_value)
10912 (cris_abi_v2_extract_return_value)
10913 (cris_abi_original_reg_struct_has_addr)
10914 (cris_abi_v2_reg_struct_has_addr)
10915 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
10916 (cris_push_return_address, cris_abi_update): Remove.
10917 (_initialize_cris_tdep): Remove ABI command.
10918 (cris_dump_tdep): Ditto.
10919 (cris_gdbarch_init): Remove ABI command.
10920 Set store_return_value, extract_return_value, push_dummy_code,
10921 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
10922 frame_unwind_append_sniffer, frame_base_set_default.
10923 Clear deprecated init_frame_pc, push_arguments, store_return_value,
10924 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
10925 sizeof_call_dummy_words, get_saved_register, push_return_address,
10926 pop_frame, store_struct_return, frame_init_saved_regs,
10927 init_extra_frame_info, frameless_function_invocation, frame_chain,
10928 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
10929 dummy_write_sp.
10930
10931 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
10932
10933 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
10934 * valprint.c (print_hex_chars): Change from static to external.
10935 (print_char_chars): New function.
10936 * printcmd.c (print_scalar_formatted): For integer and enum types
10937 that are longer than LONGEST, perform processing via appropriate
10938 print_*_chars routines.
10939
10940 2004-02-26 Andrew Cagney <cagney@redhat.com>
10941
10942 * Makefile.in: Update dependencies.
10943 Changes from Ulrich Weigand,
10944 * s390-tdep.c: Include "dwarf2-frame.h".
10945 (s390_dwarf2_frame_init_reg): New function.
10946 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
10947 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
10948
10949 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
10950
10951 * breakpoint.c (pending_break_support): New setting variable.
10952 (break_command_1): Account for pending_break_support setting
10953 when creating pending breakpoints.
10954 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
10955 (_initialize_breakpoint): Add "set breakpoint pending" and
10956 "show breakpoint pending" commands.
10957
10958 2004-02-26 Andrew Cagney <cagney@redhat.com>
10959
10960 Fix PR i18n/1570.
10961 * charset.c (backslashable, backslashed, represented): Remove 'e'
10962 from list of escaped characters, not part of ISO-C.
10963
10964 2004-02-25 J. Brobecker <brobecker@gnat.com>
10965
10966 From Peter Schauer <schauer@pdf.de>:
10967 * tui/tui.c: Move system header includes after local includes.
10968 Fixes a build failure on solaris systems.
10969
10970 2004-02-25 J. Brobecker <brobecker@gnat.com>
10971
10972 * configure.in: Refine the previous change.
10973 * configure: Regenerate.
10974
10975 2004-02-25 Mark Kettenis <kettenis@gnu.org>
10976
10977 * amd64-tdep.h: Renamed from x86-64-tdep.h.
10978 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
10979 "amd64-tdep.h" instead of "x86-64-tdep.h".
10980 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
10981 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
10982 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
10983 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
10984 and "x86-64-tdep.c".
10985 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
10986 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
10987 and "x86-64-tdep.c".
10988 * amd64bsd-nat.c: Update copyright year.
10989 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
10990 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
10991 "x86-64-tdep.h".
10992 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
10993 "x86-64-tdep.h".
10994 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
10995 "x86-64-tdep.h".
10996 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
10997 "x86-64-tdep.h".
10998 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
10999 "x86-64-tdep.h".
11000 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
11001 "x86-64-tdep.h".
11002 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
11003 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
11004 * Makefile.in (amd64_linux_tdep_h): Renamed from
11005 x86_64_linux_tdep_h.
11006 (amd64_tdep_h): Renamed from x86_64_tdep_h.
11007 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
11008 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
11009 (amd64obsd-tdep.o): Update dependencies.
11010 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
11011 dependencies.
11012 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
11013 dependencies.
11014 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
11015 amd64-linux-nat.c amd64-linux-tdep.c.
11016 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
11017 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
11018 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
11019 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
11020 amd64-tdep.o and amd64-linux-tdep.o.
11021 (TM_FILE): Set to tm-linux64.h.
11022 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
11023 (NAT_FILE): Set to nm-linux64.h.
11024 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
11025 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11026 amd64-tdep.o.
11027 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11028 amd64-tdep.o.
11029 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11030 amd64-tdep.o.
11031
11032 2004-02-25 Roland McGrath <roland@redhat.com>
11033
11034 * remote.c (remote_protocol_qPart_auxv): New variable.
11035 (init_all_packet_configs): Initialize it.
11036 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
11037 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
11038 (show_remote_cmd): Call it.
11039 (_initialize_remote): Initialize commands.
11040 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
11041 service TARGET_OBJECT_AUXV requests.
11042
11043 2004-02-25 J. Brobecker <brobecker@gnat.com>
11044
11045 * configure.in: Make sure that the wborder function is available.
11046 Otherwise, search for it in the cur_colr library.
11047 * configure: Regenerate.
11048
11049 2004-02-25 Andrew Cagney <cagney@redhat.com>
11050
11051 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
11052
11053 2004-02-25 Mark Kettenis <kettenis@gnu.org>
11054
11055 * config/i386/tm-x86-64linux.h: Tweak comments.
11056
11057 2004-02-25 Richard Sandiford <rsandifo@redhat.com>
11058
11059 * MAINTAINERS: Add self to write-after-approval list.
11060
11061 2004-02-25 Andrew Cagney <cagney@redhat.com>
11062
11063 PR cli/1566. Problem found, and fix suggested by David Allan.
11064 * cli/cli-script.c (execute_control_command): Unconditionally
11065 install a cleanup. Default "ret" to "invalid_control". Use
11066 "break" instead of "return" to escape from the switch.
11067
11068 2004-02-24 J. Brobecker <brobecker@gnat.com>
11069
11070 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
11071 with the lines macro defined in term.h on AiX.
11072 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
11073 a collision with the label_width macro defined in term.h on AiX.
11074
11075 2004-02-23 David Mosberger <davidm@hpl.hp.com>
11076
11077 Committed by Kevin Buettner <kevinb@redhat.com>.
11078
11079 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
11080 * ia64-tdep.c (ia64_write_pc): Make it a global function.
11081 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
11082 instead of ia64_write_pc().
11083 * ia64-linux-tdep.c (regcache.h): Include.
11084 (ia64_linux_write_pc): New function.
11085
11086 2004-02-23 Roland McGrath <roland@redhat.com>
11087
11088 * auxv.c (info_auxv_command): Fix typos in error messages.
11089
11090 2004-02-23 Mark Kettenis <kettenis@gnu.org>
11091
11092 * x86-64-tdep.h: Tweak comment.
11093 (enum amd64_regnum): New.
11094 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
11095 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
11096 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
11097 (X86_64_XMM1_REGNUM): Removed.
11098 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
11099 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
11100 prototypes for renamed functions.
11101 * x86-64-tdep.c: Fix typo.
11102 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
11103 register numbers.
11104 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
11105 Use constants from `enum amd64_regnum' for register numbers.
11106 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
11107 (amd64_analyze_prologue, amd64_frame_cache,
11108 amd64_sigtramp_frame_cache): Use constants from `enum
11109 amd64_regnum' for register numbers.
11110 (amd64_supply_fpregset): Adjust for renamed functions.
11111 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
11112 `enum amd64_regnum' for register numbers.
11113 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
11114 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
11115 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
11116 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
11117 (amd64_linux_fill_gregset): Adjust for renamed macros.
11118 (fetch_core_registers): Adjust for renamed functions.
11119 (amd64_linux_init_abi): Adjust for renamed functions.
11120 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
11121 renamed functions.
11122 * amd64-nat.c: Adjust for renamed macros.
11123 * amd64bsd-nat.c (fetch_inferior_registers)
11124 (store_inferior_registers): Use constants from `enum amd64_regnum'
11125 for register numbers. Adjust for renamed variables.
11126 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
11127 renamed variables.
11128 (_initialize_amd64fbsd_nat): Use constants from `enum
11129 amd64_regnum' for register numbers.
11130 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
11131 `enum amd64_regnum' for register numbers.
11132 (amd64fbsd_init_abi): Adjust for renamed functions.
11133 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
11134 `enum amd64_regnum' for register numbers.
11135 (amd64nbsd_init_abi): Adjust for renamed functions.
11136 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
11137 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
11138 `enum amd64_regnum' for register numbers.
11139 (amd64obsd_init_abi): Adjust for renamed functions.
11140 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
11141
11142 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11143
11144 * breakpoint.c (print_one_breakpoint): Do not output spaces
11145 after printing <PENDING> for a pending breakpoint.
11146
11147 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11148
11149 * printcmd.c (print_scalar_formatted): Initialize val_long
11150 to remove compiler warning message.
11151
11152 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11153
11154 * defs.h (nquery, yquery): New prototypes.
11155 * breakpoint.c (break_command_1): Use new nquery interface.
11156 * utils.c (defaulted_query, nquery, yquery): New functions.
11157
11158 2004-02-23 Andrew Cagney <cagney@redhat.com>
11159
11160 * hppa-tdep.c (hppa_frame_align): New function.
11161 (hppa32_push_dummy_call): New function.
11162 (hppa64_push_dummy_call): New function.
11163 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
11164 disabled.
11165
11166 * infcall.c (legacy_push_dummy_code): Don't call deprecated
11167 FIX_CALL_DUMMY when push_dummy_call is available.
11168 (call_function_by_hand, push_dummy_code): Ditto.
11169
11170 2004-02-22 Andrew Cagney <cagney@redhat.com>
11171
11172 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
11173 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
11174 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
11175 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
11176 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
11177 call_dummy_location to ON_STACK.
11178
11179 2004-02-22 Mark Kettenis <kettenis@gnu.org>
11180
11181 * x86-64-linux-tdep.c: Tweak comment.
11182 (amd64_linux_supply_gregset): Renamed from
11183 x86_64_linux_supply_gresget.
11184 (amd64_linux_fill_gregset): Renamed from
11185 x86_64_linux_fill_gregset.
11186 (fetch_core_registers): Adjust for renamed functions.
11187 (amd64_core_fns): Renamed from x86_64_core_fns.
11188 (amd64_linux_sigtramp_start): Renamed from
11189 x86_64_linux_sigtramp_start.
11190 (amd64_linux_pc_in_sigtramp): Renamed from
11191 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
11192 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
11193 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
11194 (amd64_linux_sigcontext_addr): Renamed from
11195 x86_64_linux_sigcontext_addr.
11196 (amd64_linux_sc_reg_offset): Renamed from
11197 x86_64_linux_sc_reg_offset.
11198 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
11199 Adjust for renamed functions and variables.
11200 (_initialize_amd64_linux_tdep): Renamed from
11201 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
11202 variables.
11203 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
11204 Adjust for renamed functions.
11205
11206 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
11207 from x86_64_linux_gregset64_reg_offset.
11208 (amd64_linux_gregset32_reg_offset): Rename from
11209 x86_64_linux_gregset64_reg_offset.
11210 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
11211 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
11212 (amd64_linux_dr_set_control): Renamed from
11213 x86_64_linux_dr_set_control. Adjust for renamed functions.
11214 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
11215 Adjust for renamed functions.
11216 (amd64_linux_dr_reset_addr): Renamed from
11217 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
11218 (amd64_linux_dr_get_status): Renamed from
11219 x86_64_linux_dr_get_status. Adjust for renamed functions.
11220 (_initialize_amd64_linux_nat): Renamed from
11221 _initialize_x86_64_linux_nat. Adjust for renamed variables and
11222 functions.
11223 * config/i386/nm-x86-64linux.h: Update copyright year.
11224 Adjust for renamed functions.
11225
11226 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
11227 amd64fbsd_sigtramp_start.
11228 (amd64fbsd_sigtramp_end_addr): Renamed from
11229 amd64fbsd_sigtramp_end.
11230 (amd64fbsd_init_abi): Adjust for renamed variables.
11231 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
11232 variables.
11233 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
11234 amd64fbsd_sigtramp_start.
11235 (amd64fbsd_sigtramp_end_addr): Renamed from
11236 amd64fbsd_sigtramp_end.
11237
11238 2004-02-22 Andrew Cagney <cagney@redhat.com>
11239
11240 * hppa-tdep.c (hppa32_return_value): New function.
11241 (hppa64_return_value): New function.
11242 (hppa_gdbarch_init): Set return_value; keep disabled.
11243
11244 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
11245 struct-return and inferior function call methods.
11246
11247 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
11248 "frame-base.h".
11249 (struct hppa_frame_cache): Define.
11250 (hppa_frame_cache, hppa_frame_this_id): New functions.
11251 (hppa_frame_prev_register): New function.
11252 (hppa_frame_unwind, hppa_frame_base): New variables.
11253 (hppa_frame_unwind_sniffer): New function.
11254 (hppa_frame_base_address, hppa_unwind_pc): New function.
11255 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
11256 sniffer, and frame base sniffer; keep disabled.
11257 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
11258 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
11259
11260 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
11261 to predicates for "seriously old code".
11262
11263 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
11264 runtime if(0).
11265
11266 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
11267 unsigned.
11268 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
11269
11270 * config/pa/tm-hppa.h: Update copyright.
11271 (DEPRECATED_INIT_FRAME_PC): Delete macro.
11272 (deprecated_init_frame_pc_default): Delete declaration.
11273 (hppa_frame_init_saved_regs): Delete declaration.
11274 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
11275 * hppa-tdep.c: Include "arch-utils.h".
11276 (hppa_gdbarch_init): Set deprecated init_frame_pc
11277 and deprecated frame_init_saved_regs.
11278 (hppa_frame_init_saved_regs): Make static.
11279
11280 2004-02-22 Mark Kettenis <kettenis@gnu.org>
11281
11282 Remove old 386BSD support.
11283 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
11284 * configure.host: Remove i[34567]86-*-bsd*.
11285 * configure.tgt: Remove i[34567]86-*-bsd*.
11286 * i386b-nat.c: Removed.
11287 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
11288 (i386b-nat.o): Remove dependencies.
11289
11290 * config/i386/i386bsd.mh: Removed.
11291 * config/i386/i386bsd.mt: Removed.
11292 * config/i386/nm-i386bsd.h: Removed.
11293 * config/i386/tm-i386bsd.h: Removed.
11294 * config/i386/xm-i386bsd.h: Removed.
11295
11296 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
11297
11298 * amd64fbsd-tdep.c: Include "solib-svr4.h".
11299 (amd64fbsd_init_abi): Set link map offsets.
11300 * amd64nbsd-tdep.c: Include "slib-svr4.h".
11301 (amd64nbsd_init_abi): Set link map offsets.
11302 * amd64obsd-tdep.c: Include "solib-svr4.h".
11303 (amd64obsd_init_abi): Set link map offsets.
11304 * i386fbsd-tdep.c: Include "solib-svr4.h".
11305 (i386fbsd_init_abi): Set link map offsets.
11306 * i386nbsd-tdep.c: Include "solib-svr4.h".
11307 (i386nbsdelf_init_abi): Set link map offsets.
11308 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
11309 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
11310 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
11311 solib-legacy.o and core-aout.o. Reformat.
11312 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
11313 solib-svr4.o, solib-legacy.o. Reformat.
11314 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
11315 * config/i386/nbsdelf.mh: Reformat.
11316 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
11317 solib-svr4.o, solib-legacy.o and corelow.o.
11318 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
11319 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
11320 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
11321 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11322 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11323 (TM_FILE): Set to tm-fbsd.h.
11324 * config/i386/nbsd.mt (TDEPFILES): Reformat.
11325 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
11326 solib-svr4.o.
11327 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
11328 solib-svr4.o.
11329 (TM_FILE): Set to nm-nbsd.h.
11330 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
11331 Simplify shared library support. Don't include "elf/common.h".
11332 (SVR4_SHARED_LIBS): Don't define.
11333 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
11334 "solib.h".
11335 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
11336 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
11337 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
11338 Don't include "i386/tm-i386.h". Include "solib.h".
11339 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
11340 Don't include "i386/tm-i386.h".
11341 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
11342 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
11343 Include "i386/xm-i386.h".
11344 (HOST_LONG_DOUBLE_FORMAT): Remove.
11345
11346 Fix OpenBSD/i386 sigtramp recognition.
11347 * i386-tdep.h: Update copyright year.
11348 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
11349 (i386bsd_sigtramp_end): New prototypes.
11350 (i386fbsd_sigtramp_start_addr): Renamed from
11351 i386fbsd_sigtramp_start.
11352 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11353 (i386obsd_sigtramp_start_addr): Renamed from
11354 i386obsd_sigtramp_start.
11355 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11356 * i386bsd-tdep.c: Update copyright year.
11357 (i386bsd_pc_in_sigtramp): Make public.
11358 * i386fbsd-nat.c: Update copyright year.
11359 (_initialize_i386fbsd_nat): Adjust for renamed variables.
11360 * i386fbsd-tdep.c: Update copyright year.
11361 (i386fbsd_sigtramp_start_addr): Renamed from
11362 i386fbsd_sigtramp_start.
11363 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11364 (i386fbsdaout_init_abi): Adjust for renamed variables.
11365 * i386obsd-nat.c: Update copyright year.
11366 (_initialize_i386obsd_nat): Adjust for renamed variables.
11367 * i386obsd-tdep.c: Include "target.h".
11368 (i386obsd_page_size): New variable.
11369 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
11370 (i386obsd_sigtramp_end): New functions.
11371 (i386obsd_sigtramp_start_addr): Renamed from
11372 i386obsd_sigtramp_start.
11373 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11374 (i386obsd_init_abi): Adjust for renamed variables. Set
11375 pc_in_sigtramp, sigtramp_start and sigtramp_end.
11376 * Makefile.in (i386obsd-tdep.o): Update dependencies.
11377
11378 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
11379 trampoline change in OpenBSD kernel.
11380
11381 * amd64-nat.c: Update copyright year.
11382 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
11383 architecture from REGCACHE.
11384
11385 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
11386 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
11387
11388 2004-02-21 Mark Kettenis <kettenis@gnu.org>
11389
11390 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
11391 i[34567]86-*-openbsd3.[0-3].
11392 * config/i386/obsdaout.mh: New file.
11393
11394 * config/i386/obsd.mh (MH_FLAGS): Remove.
11395
11396 Fix PR build/1549.
11397 * i386obsd-tdep.c: Update copyright years. Include
11398 "solib-svr4.h".
11399 (i386obsd_init_abi): Don't set regset_from_core_section here.
11400 (i386obsd_aout_init_abi): New function. Set
11401 regset_from_core_section here.
11402 (i386obsd_elf_init_abi): New function.
11403 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
11404 * Makefile.in (i386obsd-tdep.o): Update dependecies.
11405 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
11406 (TM_FILE): Set to tm-nbsd.h.
11407
11408 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
11409 solib-sunos.o.
11410
11411 * solib-svr4.h: Update copyright year.
11412 (svr4_ilp32_fetch_link_map_offsets)
11413 (svr4_lp64_fetch_link_map_offsets): New prototype.
11414 * solib-svr4.c: Update copyright year.
11415 (svr4_ilp32_fetch_link_map_offsets)
11416 (svr4_lp64_fetch_link_map_offsets): New function.
11417
11418 2004-02-20 Daniel Jacobowitz <drow@mvista.com>
11419
11420 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
11421 to the partial symbol table.
11422
11423 2004-02-20 J. brobecker <brobecker@gnat.com>
11424
11425 * PROBLEMS: Add description of problem documented under gdb/1560.
11426
11427 2004-02-20 Mark Kettenis <kettenis@gnu.org>
11428
11429 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
11430 comments.
11431 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
11432 functions.
11433 (amd64obsd_init_abi): Reorder initializations. Use
11434 amd64obsd_r_reg_offset to initialize the general-purpose register
11435 set details. Set regset_from_core_section.
11436 (_initialize_amd64obsd_tdep): Rename from
11437 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
11438 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
11439 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
11440
11441 * NEWS (New native configurations): Mention OpenBSD/alpha.
11442 * configure.tgt: Add alpha*-*-openbsd*.
11443 * configure.host: Add alpha*-*-openbsd*.
11444 * alphanbsd-tdep.c: Update copyright year.
11445 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
11446
11447 2004-02-20 Andrew Cagney <cagney@redhat.com>
11448
11449 Fix PR tdep/1372.
11450 * configure.tgt: Delete target "none-*-*".
11451 * configure.host: Delete host "none-*-*".
11452 * config/none/none.mh: Delete file.
11453 * config/none/none.mt: Delete file.
11454 * config/none/xm-none.h: Delete file.
11455 * config/none/tm-none.h: Delete file.
11456 * config/none/nm-none.h: Delete file.
11457
11458 2004-02-19 Fred Fish <fnf@redhat.com>
11459
11460 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
11461 cache->uses_fp prior to setting it.
11462
11463 2004-02-19 Fred Fish <fnf@redhat.com>
11464
11465 Fix for PR breakpoint/1558.
11466 * sh-tdep.c (IS_JSR): New macro.
11467 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
11468
11469 2004-02-19 Jim Blandy <jimb@redhat.com>
11470
11471 * findvar.c (value_from_register): Doc fix.
11472
11473 2004-02-19 Jeff Johnston <jjohnstn@redhat.com>
11474
11475 * printcmd.c (print_scalar_formatted): Do not check for sizeof
11476 type being greater than sizeof of host's LONGEST. Always use
11477 unpack_long() unless format 'f' chosen.
11478
11479 2004-02-19 Joel Brobecker <brobecker@gnat.com>
11480
11481 Committed by Elena Zannoni <ezannoni@redhat.com>
11482
11483 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
11484 contains a symbol wich is the best, non-exact match for the given
11485 pc. Update comments.
11486
11487 2004-02-19 Elena Zannoni <ezannoni@redhat.com>
11488
11489 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
11490 macro, which was part of the now removed Mach 3 port.
11491 * utils.c (request_quit): Ditto.
11492
11493 2004-02-18 Mark Kettenis <kettenis@gnu.org>
11494
11495 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
11496 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
11497
11498 2004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11499
11500 Committed by Mark Kettenis <kettenis@gnu.org>.
11501
11502 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
11503 Define.
11504
11505 2004-02-18 Andrew Cagney <cagney@redhat.com>
11506
11507 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
11508 CONFIG_INSTALL and CONFIG_UNINSTALL.
11509 * configure: Re-generate.
11510 * interps.h (INTERP_TUI): Define.
11511 * Makefile.in: Update dependencies.
11512 (TUI): New macro.
11513 (tui-main.o): Specify dependencies.
11514 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
11515 * tui/tui-main.c: New file.
11516
11517 2004-02-18 Mark Kettenis <kettenis@gnu.org>
11518
11519 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
11520 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
11521 dependencies.
11522 * configure.host: Add x86_64-*-openbsd*.
11523 * configure.tgt: Add x86_64-*-openbsd*.
11524 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
11525
11526 * tui/tui.c: Don't include <malloc.h>.
11527
11528 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
11529 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
11530 amd64nbsd-tdep.c.
11531
11532 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
11533 static. Remove extraneous whitespace.
11534 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
11535 static.
11536
11537 2004-02-17 Jim Blandy <jimb@redhat.com>
11538
11539 * findvar.c (value_from_register): Doc fix.
11540
11541 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11542
11543 Committed by Jim Blandy <jimb@redhat.com>.
11544
11545 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
11546 CORE_ADDR as type for selectors. Correct types for GNU run time
11547 message lookup function to use double indirection.
11548 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
11549 * objc-lang.h (lookup_child_selector): Adapt prototype.
11550
11551 * s390-nat.c (SUBOFF): New macro.
11552 (supply_gregset, fill_gregset): Use it to handle debugging
11553 of 32-bit exectuables running under a 64-bit kernel.
11554 * s390-tdep.c: Include "solib-svr4.h".
11555 (s390_svr4_fetch_link_map_offset): New function.
11556 (s390x_svr_fetch_link_map_offset): Likewise.
11557 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
11558 * Makefile.in (s390-tdep.o): Update dependencies.
11559
11560 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
11561 "frame-unwind.h".
11562 (s390_readinstruction): Reformat. Use read_memory_nobpt.
11563 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
11564 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
11565 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
11566 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
11567 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
11568 S390_SIGNAL_FRAMESIZE,
11569 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
11570 (struct frame_extra_info): Remove.
11571 (s390_memset_extra_info): Remove.
11572 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
11573 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
11574 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
11575 (is_rse): Renamed to ...
11576 (is_rsy): ... this. Support long displacements.
11577 (is_rxe): Renamed to ...
11578 (is_rxy): ... this. Support long displacements.
11579 (compute_x_addr): Support long displacements.
11580 (struct s390_prologue_data): New data type.
11581 (s390_on_stack): Change API to use struct s390_prologue_data.
11582 (s390_store): Reimplement.
11583 (s390_load): New function.
11584 (s390_get_signal_frame_info): Remove.
11585 (s390_get_frame_info): Remove, replace by ...
11586 (s390_analyze_prolog): ... this new function.
11587 (s390_check_function_end): Remove.
11588 (s390_function_start): Remove.
11589 (s390_frameless_function_invokation): Remove.
11590 (s390_is_sigreturn): Remove.
11591 (s390_init_frame_pc_first): Remove.
11592 (s390_init_frame_extra_info): Remove.
11593 (s390_frame_init_saved_regs): Remove.
11594 (s390_frame_saved_pc_nofix): Remove.
11595 (s390_frame_saved_pc): Remove.
11596 (s390_frame_chain): Remove.
11597 (s390_fp_regnum, s390_read_fp): Remove.
11598 (s390_pop_frame_regular, s390_pop_frame): Remove.
11599 (s390_saved_pc_after_call): Remove.
11600 (s390_skip_prologue): Reimplement.
11601 (s390_in_function_epilogue_p): Support long displacements.
11602 (struct s390_unwind_cache): New data structure.
11603 (s390_frame_unwind_cache): New function.
11604 (s390_prologue_frame_unwind_cache): Likewise.
11605 (s390_backchain_frame_unwind_cache): Likewise.
11606 (s390_frame_this_id, s390_frame_prev_register): Likewise.
11607 (s390_frame_unwind): Define.
11608 (s390_frame_sniffer): New function.
11609 (struct s390_pltstub_unwind_cache): New data structure.
11610 (s390_pltstub_frame_unwind_cache): New function.
11611 (s390_pltstub_frame_this_id): Likewise.
11612 (s390_pltstub_frame_prev_register): Likewise.
11613 (s390_pltstub_frame_unwind): Define.
11614 (s390_pltstub_frame_sniffer): New function.
11615 (struct s390_sigtramp_unwind_cache): New data structure.
11616 (s390_sigtramp_frame_unwind_cache): New function.
11617 (s390_sigtramp_frame_this_id): Likewise.
11618 (s390_sigtramp_frame_prev_register): Likewise.
11619 (s390_sigtramp_frame_unwind): Define.
11620 (s390_sigtramp_frame_sniffer): New function.
11621 (s390_frame_base_address, s390_local_base_address): New functions.
11622 (s390_frame_base): Define.
11623 (s390_unwind_pc, s390_unwind_sp): New function.
11624 (s390_push_dummy_call): Use new frame base location.
11625 (s390_unwind_dummy_id): Likewise.
11626 (s390_gdbarch_init): Remove calls to:
11627 set_gdbarch_frameless_function_invocation,
11628 set_gdbarch_deprecated_init_frame_pc,
11629 set_gdbarch_deprecated_frame_chain,
11630 set_gdbarch_deprecated_frame_init_saved_regs,
11631 set_gdbarch_deprecated_pop_frame,
11632 set_gdbarch_deprecated_init_extra_frame_info,
11633 set_gdbarch_deprecated_init_frame_pc_first,
11634 set_gdbarch_deprecated_target_read_fp,
11635 set_gdbarch_deprecated_frame_saved_pc,
11636 set_gdbarch_deprecated_saved_pc_after_call,
11637 set_gdbarch_deprecated_fp_regnum.
11638 Add calls to:
11639 set_gdbarch_in_solib_call_trampoline,
11640 frame_unwind_append_sniffer,
11641 frame_base_set_default,
11642 set_gdbarch_unwind_pc,
11643 set_gdbarch_unwind_sp.
11644 * Makefile.in (s390-tdep.o): Update dependencies.
11645
11646 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
11647 (S390_STACK_FRAME_OVERHEAD): Remove.
11648 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
11649 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
11650 (s390_promote_integer_argument): Remove.
11651 (s390_cannot_extract_struct_value_address): Remove.
11652 (s390_use_struct_convention, s390_store_struct_return): Remove.
11653 (s390_extract_return_value, s390_store_return_value): Remove.
11654 (s390_return_value_convention, s390_return_value): New functions.
11655 (is_float_singleton): Handle typedefs.
11656 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
11657 Remove, replace by ...
11658 (s390_function_arg_pass_by_reference, s390_function_arg_float,
11659 s390_function_arg_integer): ... these new functions.
11660 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
11661 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
11662 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
11663 Fill in tdep->abi.
11664 Remove calls to:
11665 set_gdbarch_deprecated_store_struct_return,
11666 set_gdbarch_deprecated_extract_return_value,
11667 set_gdbarch_deprecated_store_return_value,
11668 set_gdbarch_use_struct_convention,
11669 set_gdbarch_extract_struct_value_address,
11670 set_gdbarch_deprecated_pc_in_call_dummy,
11671 set_gdbarch_deprecated_push_arguments,
11672 set_gdbarch_deprecated_save_dummy_frame_tos,
11673 set_gdbarch_deprecated_push_return_address,
11674 set_gdbarch_deprecated_sizeof_call_dummy_words,
11675 set_gdbarch_deprecated_call_dummy_words,
11676 set_gdbarch_deprecated_dummy_write_sp.
11677 Add calls to:
11678 set_gdbarch_push_dummy_call,
11679 set_gdbarch_unwind_dummy_id,
11680 set_gdbarch_return_value.
11681
11682 * config/s390/nm-linux.h: Update comments.
11683 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
11684 (STOPPED_BY_WATCHPOINT): Redefine.
11685 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
11686 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
11687 (s390_stopped_by_watchpoint): Likewise.
11688 (watch_area_cnt): Remove.
11689 * s390-nat.c: Update comments.
11690 (watch_area): Remove typedef.
11691 Global replace watch_area by struct watch_area.
11692 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
11693 (s390_stopped_by_watchpoint): Remove pid argument,
11694 use s390_inferior_tid. Add short-cut for the no watchpoint case.
11695 (s390_fix_watch_points): Remove pid argument,
11696 use s390_inferior_tid. Recompute area spanned by watchpoints.
11697 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
11698 argument. Reimplement.
11699
11700 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
11701 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
11702 (FETCH_INFERIOR_REGISTERS): Define.
11703 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
11704 core-regset.o.
11705 * config/s390/s390x.mt: Remove.
11706 * config/s390/tm-s390.h: Remove.
11707 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
11708 (TARGET_ELF64): Remove.
11709 (SKIP_TRAMPOLINE_CODE): Do not undefine.
11710 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
11711 s390*-*-* case; always set gdb_target to s390.
11712 * regformats/reg-s390.dat: Remove control registers.
11713 * regformats/reg-s390x.dat: Likewise.
11714 * s390-tdep.h: New file.
11715 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
11716 Include "inferior.h" and "s390-tdep.h".
11717 Remove private definition of offsetof.
11718 (s390_register_u_addr): Remove.
11719 (regmap_gregset, regmap_fpregset): Define.
11720 (supply_gregset, fill_gregset): Reimplement.
11721 (supply_fpregset, fill_fpregset): Likewise.
11722 (s390_inferior_tid): New function.
11723 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
11724 (fetch_inferior_registers, store_inferior_registers): Likewise.
11725 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
11726 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
11727 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
11728 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
11729 (struct gdbarch_tdep): Define.
11730 (struct s390_register_info): Define.
11731 (s390_register_info): New variable.
11732 (s390_register_name): Reimplement.
11733 (s390_register_type): New function.
11734 (s390_register_raw_size, s390x_register_raw_size): Remove.
11735 (s390_cannot_fetch_register): Remove.
11736 (s390_register_byte): Remove.
11737 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
11738 (s390_dwarf_regmap): New variable.
11739 (s390_dwarf_reg_to_regnum): New function.
11740 (s390_stab_reg_to_regnum): Remove.
11741 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
11742 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
11743 (s390_convert_register_p): Likewise.
11744 (s390_register_to_value, s390_value_to_register): Likewise.
11745 (s390_register_reggroup_p): Likewise.
11746 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
11747 s390_gregset, s390x_gregset, s390_fpregset): New variables.
11748 (s390_supply_regset, s390_regset_from_core_section): New functions.
11749 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
11750 (S390_FPR_SIZE): Likewise.
11751 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
11752 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
11753 (S390_NUM_GPRS): Move here from tm-s390.h.
11754 (S390_NUM_FPRS): Likewise.
11755 (s390_in_function_epilogue_p): New function.
11756 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
11757 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
11758 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
11759 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
11760 Replace S390_FP_REGNUM by S390_SP_REGNUM.
11761 Remove calls to:
11762 set_gdbarch_deprecated_max_register_raw_size,
11763 set_gdbarch_deprecated_max_register_virtual_size,
11764 set_gdbarch_deprecated_register_byte,
11765 set_gdbarch_cannot_fetch_register,
11766 set_gdbarch_cannot_store_register,
11767 set_gdbarch_deprecated_register_size,
11768 set_gdbarch_deprecated_register_raw_size,
11769 set_gdbarch_deprecated_register_virtual_size,
11770 set_gdbarch_deprecated_register_virtual_type,
11771 set_gdbarch_deprecated_register_bytes.
11772 Add calls to:
11773 set_gdbarch_num_pseudo_regs,
11774 set_gdbarch_register_type,
11775 set_gdbarch_convert_register_p,
11776 set_gdbarch_register_to_value,
11777 set_gdbarch_value_to_register,
11778 set_gdbarch_register_reggroup_p,
11779 set_gdbarch_regset_from_core_section,
11780 set_gdbarch_pseudo_register_read,
11781 set_gdbarch_pseudo_register_write,
11782 set_gdbarch_in_function_epilogue_p.
11783 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
11784 (s390_tdep_h): New variable.
11785
11786 2004-02-17 Jim Blandy <jimb@redhat.com>
11787
11788 * findvar.c (value_from_register): If the type has no length, just
11789 return an acceptable value --- don't report an internal error.
11790
11791 * stabsread.c (read_type): If we find any type numbers that are
11792 forward references, complain if the references aren't resolved by
11793 the time we're finished reading.
11794 (cleanup_undefined_types): Make error message more appropriate for
11795 a complaint.
11796
11797 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
11798
11799 * Makefile.in (defs_h): Remove dependency on progress_h.
11800 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
11801 progress.h.
11802 * main.c (captured_main): Delete use of START_PROGRESS and
11803 END_PROGRESS.
11804
11805 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
11806
11807 * objfiles.c (terminate_minimal_symbol_table): Add back
11808 initialization of MSYMBOL_TYPE.
11809
11810 2004-02-17 David Mosberger <davidm@hpl.hp.com>
11811
11812 Committed by Andrew Cagney.
11813 * Makefile.in (ia64_tdep_h): New macro.
11814 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
11815 (ia64-tdep.o): Likewise.
11816 * ia64-tdep.h: New file.
11817 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
11818 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
11819 (ia64_aix_sigcontext_register_address): Likewise.
11820 (ia64_linux_getunwind_table): Delete declaration.
11821 * ia64-linux-tdep.c: Likewise.
11822
11823 2004-02-17 Corinna Vinschen <vinschen@redhat.com>
11824
11825 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
11826 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
11827 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
11828
11829 2004-02-17 Andrew Cagney <cagney@redhat.com>
11830
11831 * symtab.c (skip_prologue_using_sal): New function.
11832 * symtab.h (skip_prologue_using_sal): Declare.
11833 * frv-tdep.c: Include "symtab.h".
11834 (skip_prologue_using_sal): Delete function.
11835 * mips-tdep.c (skip_prologue_using_sal): Delete function.
11836 * rs6000-tdep.c (refine_prologue_limit): Mention
11837 skip_prologue_using_sal.
11838 * ia64-tdep.c (refine_prologue_limit): Ditto.
11839 * Makefile.in: Update dependencies.
11840
11841 2004-02-16 Andrew Cagney <cagney@redhat.com>
11842
11843 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
11844 START_INFERIOR_TRAPS_EXPECTED.
11845 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
11846 START_INFERIOR_TRAPS_EXPECTED.
11847 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
11848 Delete macro.
11849 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
11850 macro, moved to "nm-osf.h". Update copyright.
11851 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
11852 update copyright.
11853
11854 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
11855 and function replacing FRAMELESS_FUNCTION_INVOCATION.
11856 * blockframe.c (legacy_frameless_look_for_prologue): Rename
11857 frameless_look_for_prologue.
11858 * frame.h (legacy_frameless_look_for_prologue): Rename
11859 frameless_look_for_prologue.
11860 * gdbarch.h, gdbarch.c: Re-generate.
11861 * sh64-tdep.c (sh64_gdbarch_init): Update.
11862 * sh-tdep.c (sh_gdbarch_init): Update.
11863 * s390-tdep.c (s390_gdbarch_init): Update.
11864 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11865 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11866 * m68k-tdep.c (m68k_gdbarch_init): Update.
11867 (delta68_frame_args_address): Update.
11868 * m32r-tdep.c (m32r_gdbarch_init): Update.
11869 * hppa-tdep.c (hppa_gdbarch_init): Update.
11870 * h8300-tdep.c (h8300_gdbarch_init): Update.
11871 * frv-tdep.c (frv_gdbarch_init): Update.
11872 (frv_frameless_function_invocation): Update.
11873 * cris-tdep.c (cris_gdbarch_init): Update.
11874 (cris_frameless_function_invocation): Update.
11875 * avr-tdep.c (avr_gdbarch_init): Update.
11876 * arm-tdep.c (arm_gdbarch_init): Update.
11877 * stack.c (frame_info): Update, call predicate.
11878 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
11879 * frame.c (legacy_get_prev_frame): Update, call predicate..
11880 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
11881 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
11882 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
11883 invocation.
11884 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11885 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11886 * vax-tdep.c (vax_gdbarch_init): Ditto.
11887
11888 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
11889 function.
11890
11891 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
11892
11893 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
11894 initializations.
11895
11896 2004-02-16 Andrew Cagney <cagney@redhat.com>
11897
11898 * tui/tui-windata.c: Include "gdb_string.h".
11899 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
11900 * tui/tui-layout.c, tui/tui-command.c: Ditto.
11901 * Makefile.in: Update dependencies.
11902
11903 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
11904
11905 * Makefile.in (infrun.o): Add $(gdb_assert_h).
11906 * infrun.c: Include "gdb_assert.h".
11907 (singlestep_ptid, saved_singlestep_ptid)
11908 (stepping_past_singlestep_breakpoint): New variables.
11909 (resume): Set singlestep_ptid. Check for singlestep thread
11910 hop.
11911 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
11912 (handle_inferior_event): Handle singlestep thread hop.
11913
11914 2004-02-16 Andrew Cagney <cagney@redhat.com>
11915
11916 * dwarf2-frame.c (dwarf2_frame_ops): New function.
11917 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
11918 (dwarf2_frame_init_reg): Ditto.
11919
11920 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
11921 suggested by Joshua Neuheisel
11922
11923 * configure.in: Always check for curses, including pdcurses.
11924 Warn, instead of error, when no curses are found. Enable TUI when
11925 curses is available.
11926 * configure: Re-generate.
11927
11928 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
11929
11930 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
11931 sh_sh4_register_convert_to_virtual.
11932 (sh_register_convert_to_raw): Rename from
11933 sh_sh4_register_convert_to_raw.
11934 (sh_pseudo_register_read): Accomodate above name change.
11935 (sh_pseudo_register_write): Ditto.
11936
11937 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
11938
11939 * sh-tdep.c (sh_generic_register_name): Remove.
11940 (sh_gdbarch_init): Use sh_sh_register_name in default case.
11941
11942 2004-02-15 Andrew Cagney <cagney@redhat.com>
11943
11944 * configure.in (build_warnings): Add -Wunused-function.
11945 * configure: Re-generate.
11946
11947 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
11948 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
11949
11950 * procfs.c (procfs_init_inferior): Assume that
11951 START_INFERIOR_TRAPS_EXPECTED is defined.
11952 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
11953 * config/ns32k/tm-nbsd.h: Delete file,
11954 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
11955
11956 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
11957 * config/vax/tm-vax.h: Delete file.
11958
11959 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11960 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11961 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11962 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11963 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
11964 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11965 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
11966
11967 2004-02-15 Mark Kettenis <kettenis@gnu.org>
11968
11969 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
11970 * dwarf2-frame.c (dwarf2_frame_data): New variable.
11971 (struct dwarf2_frame_ops): New.
11972 (dwarf2_frame_default_init_reg): New function, based on
11973 dwarf2_frame_init_reg.
11974 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
11975 (dwarf2_frame_init_reg): Call architecture-specific function.
11976 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
11977 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
11978 instead of dwarf2_frame_data.
11979 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
11980 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
11981
11982 2004-02-15 Andrew Cagney <cagney@redhat.com>
11983
11984 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
11985 register_gdbarch_swap.
11986 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
11987 * f-lang.c (_initialize_f_language): Update, use
11988 DEPRECATED_REGISTER_GDBARCH_SWAP.
11989 * remote.c (_initialize_remote): Ditto.
11990 * regcache.c (_initialize_regcache): Ditto.
11991 * parse.c (_initialize_parse): Ditto.
11992 * infrun.c (_initialize_infrun): Ditto.
11993 * mi/mi-main.c (_initialize_mi_main): Ditto.
11994 * gdbtypes.c (_initialize_gdbtypes): Ditto.
11995
11996 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
11997 poking .cacheable directly.
11998 * symfile.c (symfile_bfd_open): Ditto.
11999
12000 * Makefile.in: Update all dependencies.
12001
12002 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
12003 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
12004 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
12005 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
12006 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
12007
12008 2004-02-14 Andrew Cagney <cagney@redhat.com>
12009
12010 * arch-utils.c (legacy_convert_register_p): Check
12011 DEPRECATED_REGISTER_CONVERTIBLE_P.
12012 * findvar.c (value_of_register): Ditto.
12013
12014 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
12015 * gdbarch.h, gdbarch.c: Re-generate.
12016 * arch-utils.c (deprecated_register_convertible_not): Delete.
12017 * arch-utils.h (deprecated_register_convertible_not): Delete.
12018 * mi/mi-main.c (get_register): Update. Update copyright.
12019 * infcmd.c (default_print_registers_info): Update.
12020
12021 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
12022 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
12023 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
12024 * gdbarch.h, gdbarch.c: Re-generate.
12025 * frame.c (deprecated_get_next_frame_hack): Delete function.
12026 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
12027 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
12028 Update.
12029 * infcall.c (call_function_by_hand): Update.
12030
12031 2004-02-14 Elena Zannoni <ezannoni@redhat.com>
12032
12033 * symfile.c (init_entry_point_info, entry_point_address): Move
12034 from here...
12035 * objfiles.c (init_entry_point_info, entry_point_address):..to
12036 here.
12037 * symfile.h (init_entry_point_info, entry_point_address): Remove
12038 prototypes.
12039 * objfiles.h (init_entry_point_info, entry_point_address):Add
12040 prototypes.
12041 * cris-tdep.c: Remove include of symfile.h. Add include of
12042 objfiles.h.
12043 * infcall.c: Ditto.
12044 * mcore-tdep.c: Ditto.
12045 * mn10300-tdep.c: Ditto.
12046 * sh64-tdep.c: Ditto.
12047 * v850-tdep.c: Ditto.
12048 * arm-tdep.c: Remove include of symfile.h.
12049 * blockframe.c: Ditto.
12050 * coffread.c: Ditto.
12051 * dbxread.c: Ditto.
12052 * dwarf2read.c: Ditto.
12053 * dwarfread.c: Ditto.
12054 * frv-tdep.c: Ditto.
12055 * ia64-tdep.c: Ditto.
12056 * mdebugread.c: Ditto.
12057 * mipsread.c: Ditto.
12058 * rs6000-tdep.c: Ditto.
12059 * s390-tdep.c: Ditto.
12060 * sh-tdep.c: Ditto.
12061 * xstormy16-tdep.c: Ditto.
12062 * gdbarch.sh: Remove include of symfile.h.
12063 * gdbarch.c: Regenerate.
12064 * solib-irix.c (enable_break): Use entry_point_address().
12065 Add comment about include file.
12066 * xcoffread.c: Add comment about include file.
12067 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
12068 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
12069 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
12070 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
12071 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
12072
12073 2004-02-13 Andrew Cagney <cagney@redhat.com>
12074
12075 * corelow.c (core_xfer_partial): Use "struct bfd_section".
12076 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
12077 copyright.
12078 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
12079
12080 2004-02-12 Fred Fish <fnf@redhat.com>
12081
12082 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
12083 set_gdbarch_store_return_value.
12084
12085 2004-02-12 Andrew Cagney <cagney@redhat.com>
12086
12087 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
12088 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
12089 (interrupt_query): Ditto.
12090 (ofunc): Delete unused variable.
12091 * cris-tdep.c (cris_abi): Delete unused function.
12092 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
12093 (cris_get_wide_opcode, cris_get_short_size): Ditto.
12094 (cris_get_asr_quick_shift_steps): Ditto.
12095 (cris_skip_prologue_frameless_p): Ditto.
12096 * arm-tdep.c (arm_push_return_address): Delete unused function.
12097 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
12098 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
12099 * s390-tdep.c (s390_function_start): Delete unused function.
12100
12101 2004-02-12 Andrew Cagney <cagney@redhat.com>
12102
12103 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
12104 gdbarch.h, gdbarch.c: Re-generate.
12105 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
12106 to generic_prologue_frameless_p.
12107 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
12108 * arch-utils.c (generic_prologue_frameless_p): Delete function.
12109
12110 2004-02-11 Daniel Jacobowitz <drow@mvista.com>
12111
12112 * mips-linux-tdep.c: Include "frame.h".
12113 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
12114 (mips_linux_skip_resolver): New functions.
12115 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
12116 and set_gdbarch_in_solib_call_trampoline.
12117 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
12118 to after set_gdbarch_in_solib_return_trampoline. Only set the
12119 solib hooks to mips16 functions if the OS ABI is unknown.
12120 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
12121 including "config/tm-linux.h".
12122 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
12123 * Makefile.in (mips-linux-tdep.o): Update.
12124
12125 2004-02-11 David Carlton <carlton@kealia.com>
12126
12127 * linespec.c (decode_compound): Only look for a class symbol when
12128 considering all but the rightmost component.
12129
12130 2004-02-11 Andrew Cagney <cagney@redhat.com>
12131
12132 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
12133 abi code are are separatly grouped.
12134
12135 2004-02-11 Andrew Cagney <cagney@redhat.com>
12136
12137 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
12138 * gdbarch.h, gdbarch.c: Re-generate.
12139 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12140 * v850-tdep.c (v850_gdbarch_init): Update.
12141 * sh64-tdep.c (sh64_gdbarch_init): Update.
12142 * sh-tdep.c (sh_gdbarch_init): Update.
12143 * s390-tdep.c (s390_gdbarch_init): Update.
12144 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12145 * mips-tdep.c (mips_gdbarch_init): Update.
12146 * mcore-tdep.c (mcore_gdbarch_init): Update.
12147 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12148 * m32r-tdep.c (m32r_gdbarch_init): Update.
12149 * ia64-tdep.c (ia64_gdbarch_init): Update.
12150 * hppa-tdep.c (hppa_gdbarch_init): Update.
12151 * h8300-tdep.c (h8300_gdbarch_init): Update.
12152 * frv-tdep.c (frv_gdbarch_init): Update.
12153 * d10v-tdep.c (d10v_gdbarch_init): Update.
12154 * cris-tdep.c (cris_gdbarch_init): Update.
12155 * avr-tdep.c (avr_gdbarch_init): Update.
12156 * arm-tdep.c (arm_gdbarch_init): Update.
12157 * alpha-tdep.c (alpha_gdbarch_init): Update.
12158
12159 2004-02-11 Corinna Vinschen <vinschen@redhat.com>
12160
12161 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
12162 comma.
12163 (sh_sh4al_dsp_register_name): Ditto.
12164
12165 2004-02-10 Andrew Cagney <cagney@redhat.com>
12166
12167 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
12168 (mips_init_frame_pc_first): Delete function.
12169 (mips_frame_saved_pc): Delete function.
12170 (mips_frame_chain): Delete function.
12171 (mips_init_extra_frame_info): Delete function.
12172 (mips_xfer_register): Delete unused variable "reg".
12173 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
12174 (mips_n32n64_return_value): Delete unused variable "reg".
12175 (mips_n32n64_return_value): Delete unused variable "pos".
12176 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
12177 (mips_o32_return_value): Delete unused variable "pos".
12178 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
12179 (mips_print_fp_register): Delete unused variable "namelen"
12180 (mips_print_fp_register): Delete unused variable "flt2"
12181 (get_frame_pointer): Delete function.
12182 (cached_proc_desc): Delete static variable.
12183 (mips_pop_frame): Delete function.
12184 (mips_find_saved_regs): Delete function.
12185 (mips_get_saved_register): Delete function.
12186 (mips_saved_pc_after_call): Delete function.
12187 (SIGFRAME_BASE): Delete macro.
12188 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
12189 (SIGFRAME_PC_OFF): Delete macro.
12190 (SIGFRAME_REGSAVE_OFF): Delete macro.
12191 (mips_dump_tdep): Do not print deleted macro definitions.
12192
12193 2004-02-10 Andrew Cagney <cagney@redhat.com>
12194
12195 * Makefile.in (SFILES): Remove explictly listed tui files.
12196 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
12197
12198 2004-02-10 Jeff Johnston <jjohnstn@redhat.com>
12199
12200 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
12201 to use paddr functions to format ia64 addresses and long values.
12202 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
12203 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
12204 (get_kernel_table, ia64_find_proc_info_x): Ditto.
12205 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
12206 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
12207
12208 2004-02-10 Andrew Cagney <cagney@redhat.com>
12209
12210 * defs.h: Do not include "tui.h".
12211 * gdb_curses.h: New file.
12212 * tui/tui-hooks.h: New file.
12213 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
12214 (tui_install_hooks, tui_remove_hooks): Delete declarations.
12215 (tui_initialize_io): Delete declaration.
12216 (tui_initialize_readline: Delete redundant declaration.
12217 (struct tui_point): Delete definition.
12218 * tui/tui-data.h (struct tui_point): Define.
12219 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
12220 * utils.c: Include "tui/tui.h".
12221 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
12222 * printcmd.c [TUI]: Include "tui/tui.h".
12223 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
12224 * tui/tui-command.c: Include "gdb_curses.h".
12225 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
12226 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
12227 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
12228 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
12229 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
12230 * Makefile.in: Update all dependencies.
12231 (tui_hooks_h, gdb_curses_h): Define.
12232 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
12233
12234 2004-02-10 Elena Zannoni <ezannoni@redhat.com>
12235
12236 * objfiles.h (struct objfile): Remove unused fields auxf1 and
12237 auxf2. Add comments about some other rarely used fields.
12238
12239 2004-02-10 Andrew Cagney <cagney@redhat.com>
12240
12241 * Makefile.in (init.c): Fix script removing duplicates. Problem
12242 reported by Peter Schauer.
12243
12244 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
12245
12246 * bcache.c (bcache_xmalloc): Use obstack_init instead of
12247 obstack_specify_allocation.
12248 * objfiles.c (allocate_objfile): Ditto.
12249 * solib-sunos.c (solib_add_common_symbols)
12250 (allocate_rt_common_objfile): Ditto.
12251 * symfile.c (reread_symbols): Ditto.
12252 * gdb_obstack.h: Add comment.
12253
12254 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
12255
12256 * linespec.c (decode_line_1, locate_first_half)
12257 (decode_compound, lookup_prefix_sym): Update comments. Delete old
12258 commented out code.
12259
12260 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
12261
12262 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
12263 obstack_free.
12264
12265 2004-02-09 Andrew Cagney <cagney@redhat.com>
12266
12267 * blockframe.c (find_pc_partial_function): If find_pc_overlay
12268 fails, try find_pc_section. Fix PR c++/1267.
12269 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
12270 instead of find_pc_mapped_section.
12271 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
12272 not default to the section containing PC. Fix PR symtab/1519.
12273
12274 2004-02-09 Andrew Cagney <cagney@redhat.com>
12275
12276 * Makefile.in (mips-tdep.o): Update dependencies.
12277 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
12278 "trad-frame.h".
12279 (mips_unwind_pc): Return the pseudo PC register.
12280 (mips_unwind_dummy_id): New function.
12281 (mips16_fetch_instruction): New function.
12282 (mips32_fetch_instruction): New function.
12283 (struct mips_frame_cache): Define.
12284 (mips_mdebug_frame_cache): New function.
12285 (mips_mdebug_frame_this_id): New function.
12286 (mips_mdebug_frame_prev_register): New function.
12287 (mips_mdebug_frame_unwind): Define.
12288 (mips_mdebug_frame_sniffer): New function.
12289 (mips_mdebug_frame_base_address): New function.
12290 (mips_mdebug_frame_base): Define.
12291 (mips_mdebug_frame_base_sniffer): New function.
12292 (mips_gdbarch_init): Append unwind and base sniffers. Set
12293 unwind_dummy_id.
12294
12295 2004-02-08 Andrew Cagney <cagney@redhat.com>
12296
12297 * frame.c: Print both the register number and name.
12298
12299 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
12300 and a sed into a single sed. Make .c and .o patterns more robust.
12301 (OBS): Delete.
12302 (INIT_FILES): Replace OBS with COMMON_OBS.
12303 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
12304
12305 2004-02-08 Mark Kettenis <kettenis@gnu.org>
12306
12307 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
12308 the PT_WCOOKIE request.
12309
12310 2004-02-08 Andrew Cagney <cagney@redhat.com>
12311
12312 * mips-tdep.c (mips_unwind_pc): New function.
12313 (mips_gdbarch_init): Set mips_unwind_pc.
12314
12315 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
12316 (get_frame_id): Allow the UNKNOWN_FRAME.
12317 (frame_register_unwind, get_frame_type): Ditto.
12318
12319 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
12320 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
12321 unwind_dummy_id indicates a legacy frame.
12322
12323 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
12324 * configure: Re-generate.
12325
12326 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
12327 methods.
12328
12329 2004-02-08 Andrew Cagney <cagney@redhat.com>
12330
12331 * configure.in (CONFIG_ALL): Set to Makefile target, and not
12332 makefile macro.
12333 * configure: Re-generate.
12334 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
12335 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
12336 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
12337 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
12338 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
12339 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
12340 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
12341 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
12342 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
12343 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
12344
12345 2004-02-07 Andrew Cagney <cagney@redhat.com>
12346
12347 * Makefile.in: Update all dependencies.
12348
12349 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
12350 * configure: Re-generate.
12351 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
12352 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
12353 (COMMON_OBS): Add "main.o" and "annotate.o".
12354 (ANNOTATE_OBS): Delete.
12355 (OBS): Remove ANNOTATE_OBS.
12356 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
12357 CONFIG_INITS.
12358 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
12359 against CONFIG_OBS and "main.o".
12360 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
12361 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
12362
12363 * tui/tui-command.c: Include "gdb_string.h", delete register
12364 attribute, use ISO-C function signatures.
12365 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
12366 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
12367 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
12368 * tui/tui.c: Ditto.
12369
12370 * tui/tui-command.c: Change variable and function names to lower
12371 case.
12372 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
12373 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
12374 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
12375 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12376 * tui/tui-winsource.c, tui/tui.c: Ditto.
12377
12378 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
12379
12380 * buildsym.c (free_pending_blocks, finish_block)
12381 (record_pending_block, make_blockvector, end_symtab): Replace
12382 symbol_obstack with objfile_obstack.
12383 * coffread.c (process_coff_symbol, coff_read_struct_type)
12384 (coff_read_enum_type): Ditto.
12385 * cp-namespace.c (initialize_namespace_symtab)
12386 (check_one_possible_namespace_symbol): Ditto.
12387 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
12388 (dwarf2_symbol_mark_computed): Ditto.
12389 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
12390 * elfread.c (elf_symtab_read): Ditto.
12391 * hpread.c (hpread_symfile_init, hpread_symfile_init)
12392 (hpread_read_enum_type, hpread_read_function_type)
12393 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
12394 Ditto.
12395 * jv-lang.c (get_java_class_symtab, add_class_symbol)
12396 (java_link_class_type): Ditto.
12397 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
12398 (new_symbol): Ditto.
12399 * minsyms.c (install_minimal_symbols): Ditto.
12400 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
12401 (terminate_minimal_symbol_table): Replace symbol_obstack with
12402 objfile_obstack.
12403 (free_objfile): Remove freeing of symbol_obstack.
12404 * objfiles.h: Remove symbol_obstack field.
12405 * pa64solib.c (add_to_solist): Replace symbol_obstack with
12406 objfile_obstack.
12407 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
12408 symbol_obstack.
12409 (solib_add_common_symbols): Replace symbol_obstack with
12410 objfile_obstack.
12411 * somsolib.c (som_solib_add): Ditto.
12412 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
12413 (common_block_start, common_block_end): Ditto.
12414 * symfile.c (reread_symbols): Remove freeing and init of
12415 symbol_obstack.
12416 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
12417 * symfile.h: Update comment.
12418 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
12419 stats printing.
12420 * symtab.c (symbol_set_names): Replace symbol_obstack with
12421 objfile_obstack.
12422 * symtab.h (struct general_symbol_info, struct minimal_symbol):
12423 Update comments.
12424 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
12425 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
12426 objfile_obstack.
12427
12428 2004-02-07 Andrew Cagney <cagney@redhat.com>
12429
12430 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
12431 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
12432 fields and variables.
12433 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
12434 (m_beInvisible): Delete macro.
12435 * tui/tui-data.h: Fix case case fields and variables.
12436 (m_genWinPtrIsNull): Delete macro.
12437 (tui_win_list): Rename winList.
12438 (TUI_SRC_WIN): Rename srcWin.
12439 (TUI_DISASM_WIN): Rename disassemWin.
12440 (TUI_DATA_WIN): Rename dataWin.
12441 (TUI_CMD_WIN): Rename cmdWin.
12442 (m_genWinPtrNotNull): Delete macro.
12443 (m_winPtrIsNull): Delete macro.
12444 (m_winPtrNotNull): Delete macro.
12445 (tui_win_is_source_type): Replace m_winIsSourceType
12446 (tui_win_is_auxillary): Replace m_winIsAuzillary.
12447 (tui_win_has_locator): Replace m_hasLocator.
12448 (tui_set_win_highlight): Replace m_setWinHighlightOn and
12449 m_setWinHighlightOff.
12450 * tui/tui-data.c: Update references.
12451 (tui_win_is_source_type, tui_set_win_highlight): New functions.
12452 (tui_win_has_locator, tui_win_is_auxillary): New functions.
12453 * tui/tui-command.c, tui/tui-disasm.c: Update references.
12454 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
12455 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
12456 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12457 * tui/tui-winsource.c, tui/tui.c: Ditto.
12458
12459 2004-02-07 Mark Kettenis <kettenis@gnu.org>
12460
12461 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
12462 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
12463 StackGhost.
12464
12465 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
12466 variable `i6' to `i7'.
12467 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
12468
12469 2004-02-07 Andrew Cagney <cagney@redhat.com>
12470
12471 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
12472 (TuiPoint, TuiPointPtr): Ditto.
12473 (TuiStatus, TuiStatusPtr): Ditto.
12474 (TuiWinType, TuiWinTypePtr): Ditto.
12475 (struct tui_point): Rename _TuiPoint.
12476 (tui_get_low_disassembly_address): Rename
12477 tuiGetLowDisassemblyAddress.
12478 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
12479 (tuiFree): Delete declaration.
12480 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
12481 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
12482 * tui/tui.c (tuiFree): Delete function.
12483 * cli/cli-cmds.c (disassemble_command): Update references.
12484 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
12485 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
12486 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
12487 * tui/tui-winsource.c: Ditto.
12488
12489 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
12490
12491 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
12492 coffstab_build_psymtabs, elfstab_build_psymtabs)
12493 (stabsect_build_psymtabs): Replace psymbol_obstack with
12494 objfile_obstack.
12495 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
12496 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
12497 Ditto.
12498 * dwarfread.c (scan_compilation_units): Ditto.
12499 * elfread.c (elfstab_offset_sections): Ditto.
12500 * hppa-tdep.c (read_unwind_info): Ditto.
12501 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
12502 (hpread_end_psymtab): Ditto.
12503 * mdebugread.c (mdebug_build_psymtabs, add_pending)
12504 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
12505 Ditto.
12506 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
12507 * objfiles.c (add_to_objfile_sections)
12508 (build_objfile_section_table): Ditto.
12509 (allocate_objfile): Remove init of psymbol_obstack.
12510 (free_objfile): Remove freeing of psymbol_obstack.
12511 * objfiles.h (struct objfile): Remove field
12512 psymbol_obstack. Update comments.
12513 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
12514 psymbol_obstack with objfile_obstack.
12515 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
12516 psymbol_obstack.
12517 * somread.c (som_symfile_offsets, init_import_symbols)
12518 (init_export_symbols): Replace psymbol_obstack with
12519 objfile_obstack.
12520 * somsolib.c (som_solib_add_solib_objfile): Ditto.
12521 * symfile.c (default_symfile_offsets, syms_from_objfile)
12522 (reread_symbols): Remove freeing and init of psymbol_obstack.
12523 (cashier_psymtab): Update comment.
12524 * symmisc.c (print_objfile_statistics): Don't report stats for
12525 psymbol obstack.
12526 * symtab.h (struct general_symbol_info, struct partial_symtab):
12527 Update comments.
12528 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
12529 (xcoff_symfile_offsets): Replace psymbol_obstack with
12530 objfile_obstack.
12531
12532 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
12533
12534 * objfiles.h (struct objfile): Add objfile_obstack field.
12535 Remove type_obstack field.
12536
12537 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
12538 read_structure_scope read_enumeration, new_symbol): Replace
12539 type_obstack with objfile_obstack.
12540 * dwarfread.c (struct_type, enum_type): Ditto.
12541 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
12542 (lookup_fundamental_type): Ditto.
12543 * gdbtypes.h (TYPE_ALLOC): Ditto.
12544 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
12545 (hpread_read_doc_function_type, hpread_read_struct_type)
12546 (fix_static_member_physnames, hpread_read_array_type)
12547 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
12548 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
12549 (java_link_class_type): Ditto.
12550 * mdebugread.c (parse_type): Ditto.
12551 * objfiles.c (allocate_objfile, free_objfile): Ditto.
12552 * solib-sunos.c (solib_add_common_symbols): Ditto.
12553 * stabsread.c (define_symbol, read_type, read_member_functions,
12554 read_cpp_abbrev, read_one_struct_field): Ditto.
12555 * symfile.c (reread_symbols): Ditto.
12556 * symmisc.c (print_objfile_statistics): Ditto.
12557
12558 2004-02-07 Andrew Cagney <cagney@redhat.com>
12559
12560 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
12561 (tui_exec_info_content): Rename TuiExecInfoContent.
12562 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
12563 (TuiWinInfo, TuiWinInfoPtr): Ditto.
12564 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
12565 (TuiList, TuiListPtr): Ditto.
12566 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
12567 (TuiDataType, TuiDataTypePtr): Ditto.
12568 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
12569 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
12570 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
12571 (TuiSourceElement, TuiSourceElementPtr): Ditto.
12572 (TuiDataElement, TuiDataElementPtr): Ditto.
12573 (TuiWinElement, TuiWinElementPtr): Ditto.
12574 (TuiDataInfo, TuiDataInfoPtr): Ditto.
12575 (TuiCommandElement, TuiCommandElementPtr): Ditto.
12576 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
12577 (TuiWhichElement, TuiWhichElementPtr): Ditto.
12578 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
12579 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
12580 * tui/tui-command.c, tui/tui-data.c: Update references.
12581 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
12582 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
12583 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12584 * tui/tui-winsource.c, tui/tui.c: Ditto.
12585
12586 2004-02-07 Mark Kettenis <kettenis@gnu.org>
12587
12588 * dwarf2-frame.h: Update copyright.
12589 (enum dwarf2_frame_reg_rule): New.
12590 (struct dwarf2_frame_state_reg): New.
12591 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
12592 * dwarf2-frame.c: Update copyright.
12593 (enum dwarf2_reg_rule): Remove.
12594 (struct dwarf2_frame_state): Remove defenition of `struct
12595 dwarf2_frame_state_reg'.
12596 (read_reg): Call get_frame_arch to get the architecture instead of
12597 using CURRENT_GDBARCH.
12598 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
12599 DWARF2_FRAME_.
12600 (dwarf2_frame_init_reg): New function.
12601 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
12602 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
12603 initialize the register state. Prefix old `enum dwarf2_reg_rule'
12604 tags with DWARF2_FRAME_.
12605 (dwarf2_frame_prev_register): Call get_frame_arch to get the
12606 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
12607 dwarf2_reg_rule' tags with DWARF2_FRAME_.
12608
12609 2004-02-06 Andrew Cagney <cagney@redhat.com>
12610
12611 * tui/tui-data.h (struct tui_list): Rename _TuiList.
12612 (enum tui_data_type): Rename _TuiDataType.
12613 (struct tui_layout_def): Rename _TuiLayoutDef.
12614 (struct tui_source_element): Rename _TuiSourceElement.
12615 (struct tui_data_element): Rename _TuiDataElement.
12616 (struct tui_command_element): Rename _TuiCommandElement.
12617 (struct tui_locator_element): Rename _TuiLocatorElement.
12618 (union tui_which_element): Define.
12619 (struct tui_win_element): Rename _TuiWinElement.
12620 (struct tui_data_info): Rename _TuiDataInfo.
12621 (struct tui_source_info): Rename _TuiSourceInfo.
12622 (struct tui_command_info): Rename _TuiCommandInfo.
12623 (tui_initialize_static_data): Rename initializeStaticData.
12624 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
12625 (tui_alloc_win_info): Rename allocWinInfo.
12626 (tui_init_generic_part): Rename initGenericPart.
12627 (tui_init_win_info): Rename initWinInfo.
12628 (tui_alloc_content): Rename allocContent.
12629 (tui_add_content_elements): Rename addContentElements.
12630 (tui_init_content_element): Rename initContentElement.
12631 (tui_free_window): Rename freeWindow.
12632 (tui_free_win_content): Rename freeWinContent.
12633 (tui_free_data_content): Rename freeDataContent.
12634 (tui_free_all_source_wins_content): Rename
12635 freeAllSourceWinsContent.
12636 (tui_del_window): Rename tuiDelWindow.
12637 (tui_del_data_windows): Rename tuiDelDataWindows.
12638 (tui_partial_win_by_name): Rename partialWinByName.
12639 (tui_win_name): Rename winName.
12640 (tui_current_layout): Rename currentLayout.
12641 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
12642 (tui_term_height): Rename termHeight.
12643 (tui_set_term_height_to): Rename setTermHeightTo.
12644 (tui_term_width): Rename termWidth.
12645 (tui_set_term_width_to): Rename setTermWidthTo.
12646 (tui_set_gen_win_origin): Rename setGenWinOrigin.
12647 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
12648 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
12649 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
12650 (tui_source_windows): Rename sourceWindows.
12651 (tui_clear_source_windows): Rename clearSourceWindows.
12652 (tui_clear_source_windows_detail): Rename
12653 clearSourceWindowsDetail.
12654 (tui_clear_win_detail): Rename clearWinDetail.
12655 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
12656 (tui_default_tab_len): Rename tuiDefaultTabLen.
12657 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
12658 (tui_win_with_focus): Rename tuiWinWithFocus.
12659 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
12660 (tui_layout_def): Rename tuiLayoutDef.
12661 (tui_win_resized): Rename tuiWinResized.
12662 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
12663 (tui_next_win): Rename tuiNextWin.
12664 (tui_prev_win): Rename tuiPrevWin.
12665 (tui_add_to_source_windows): Rename addToSourceWindows.
12666 * tui/tui-winsource.c, tui/tui-win.c: Update references.
12667 * tui/tui-layout.c, tui/tui-source.c: Ditto.
12668 * tui/tui-stack.c, tui/tui-io.c: Ditto.
12669 * tui/tui.c, tui/tui-data.c: Ditto.
12670 * tui/tui-interp.c, tui/tui-data.c: Ditto.
12671 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
12672
12673 * tui/tui-source.h: Update copyright. Include "tui-data.h".
12674 (struct symtab): Declare.
12675 (tui_set_source_content): Rename tuiSetSourceContent.
12676 (tui_show_symtab_source): Rename tuiShowSource.
12677 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
12678 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
12679 * tui/tui-source.c: Update copyright. Update references.
12680 * tui/tui-win.c, tui/tui-winsource.c: Update references.
12681 * tui/tui-stack.c: Update references.
12682
12683 * tui/tui-win.h: Update copyright. Include "tui-data.h".
12684 (struct tui_win_info): Declare.
12685 (tui_scroll_forward): Rename tuiScrollForward.
12686 (tui_scroll_backward): Rename tuiScrollBackward.
12687 (tui_scroll_left): Rename tuiScrollLeft.
12688 (tui_scroll_right): Rename tuiScrollRight.
12689 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
12690 (tui_resize_all): Rename tuiResizeAll.
12691 (tui_refresh_all_win): Rename tuiRefreshAll.
12692 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
12693 * tui/tui-layout.c, * tui/tui-io.c: Update references.
12694 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
12695 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
12696
12697 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
12698 (tui_erase_data_content): Rename tuiEraseDataContent.
12699 (tui_display_all_data): Rename tuiDisplayAllData.
12700 (tui_check_data_values): Rename tuiCheckDataValues.
12701 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
12702 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
12703 (tui_first_data_element_no_in_line): Rename
12704 tuiFirstDataElementNoInLine.
12705 (tui_delete_data_content_windows): Rename
12706 tuiDeleteDataContentWindows.
12707 (tui_refresh_data_win): Rename tuiRefreshDataWin.
12708 (tui_display_data_from): Rename tuiDisplayDataFrom.
12709 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
12710 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
12711 * tui/tui-win.c, tui/tui-regs.c: Update references.
12712 * tui/tui-layout.c, tui/tui.c: Update references.
12713
12714 * tui/tui-wingeneral.h: Update copyright.
12715 (m_allBeVisible): Delete macro.
12716 (m_allBeInvisible): Delete macro.
12717 (struct tui_gen_win_info): Declare.
12718 (struct tui_win_info): Declare.
12719 (tui_unhighlight_win): Rename unhighlightWin.
12720 (tui_make_visible, tui_make_invisible): Replace makeVisible.
12721 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
12722 (tui_make_window): Rename makeWindow.
12723 (tui_copy_win): Rename copyWin.
12724 (tui_box_win): Rename boxWin.
12725 (tui_highlight_win): Rename highlightWin.
12726 (tui_check_and_display_highlight_if_needed): Rename
12727 checkAndDisplayHighlightIfNeeded.
12728 (tui_refresh_all): Rename refreshAll.
12729 (tui_delete_win): Rename tuiDelwin.
12730 (tui_refresh_win): Rename tuiRefreshWin.
12731 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
12732 (tui_make_visible, tui_make_invisible): New functions.
12733 (tui_make_all_visible, tui_make_all_invisible): New functions.
12734 (make_all_visible): Rename makeAllVisible.
12735 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
12736 * tui/tui-data.c, tui/tui-winsource.c: Update references.
12737 * tui/tui-windata.c, tui/tui-win.c: Update references.
12738 * tui/tui-regs.c, tui/tui-layout.c: Update references.
12739 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
12740
12741 2004-02-06 Mark Kettenis <kettenis@gnu.org>
12742
12743 * proc-api.c (write_with_trace): Initialize local variable to
12744 silence compiler warning.
12745
12746 2004-02-06 Andrew Cagney <cagney@redhat.com>
12747
12748 * tui/tui-source.h: Do not include "defs.h".
12749 (struct tui_win_info): Declare.
12750 (tui_set_source_content_nil): Declare.
12751 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
12752 (union tui_line_or_address): Rename _TuiLineOrAddress.
12753 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
12754 (tui_update_source_window): Rename tuiUpdateSourceWindow.
12755 (tui_update_source_window_as_is): Rename
12756 tuiUpdateSourceWindowAsIs.
12757 (tui_update_source_windows_with_addr): Rename
12758 tuiUpdateSourceWindowsWithAddr.
12759 (tui_update_source_windows_with_line): Rename
12760 tuiUpdateSourceWindowsWithLine.
12761 (tui_clear_source_content): Rename tuiClearSourceContent.
12762 (tui_erase_source_content): Rename tuiEraseSourceContent.
12763 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
12764 (tui_show_source_content): Rename tuiShowSourceContent.
12765 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
12766 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
12767 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
12768 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
12769 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
12770 (tui_update_exec_info): Rename tuiUpdateExecInfo.
12771 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
12772 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
12773 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
12774 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
12775 (struct tui_win_info): Declare.
12776 * tui/tui-stack.c: Update references.
12777 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
12778 * tui/tui-win.c, tui/tui-source.c: Ditto.
12779 * tui/tui.c, tui/tui-disasm.c: Ditto.
12780
12781 2004-02-06 Mark Kettenis <kettenis@gnu.org>
12782
12783 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
12784 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
12785
12786 2004-02-05 Mark Kettenis <kettenis@gnu.org>
12787
12788 * infrun.c (handle_inferior_event): Allow for breakpoint
12789 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
12790 and SIGEMT. Update comments.
12791 * NEWS (Revised SPARC target): Mention support for non-executable
12792 stack.
12793
12794 2004-02-04 Mark Kettenis <kettenis@gnu.org>
12795
12796 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
12797 * inftarg.c: Update copyright year.
12798 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
12799 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
12800 (sparc_xfer_wcookie): New function.
12801 * sparc-tdep.c (sparc_fetch_wcookie): New function.
12802 * Makefile.in (sparc-nat.o): Update dependencies.
12803 * config/sparc/nm-nbsd.h: Include "target.h".
12804 (NATIVE_XFER_WCOOKIE): New define.
12805 (sparc_xfer_wcookie): New prototype.
12806
12807 2004-02-04 Andrew Cagney <cagney@redhat.com>
12808
12809 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
12810 SYSCALL_TRAP function.
12811 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
12812
12813 2004-02-04 Andrew Cagney <cagney@redhat.com>
12814 Daniel Jacobowitz <drow@mvista.com>
12815
12816 * objfiles.h: Delete comments refering to inside_entry_func and
12817 DEPRECATED_FRAME_CHAIN_VALID.
12818 * defs.h (inside_entry_func): Update prototype..
12819 * blockframe.c (inside_entry_func): Rename to
12820 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
12821 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
12822
12823 2004-02-03 Jeff Johnston <jjohnstn@redhat.com>
12824
12825 * breakpoint.c (struct captured_parse_breakpoint_args): Move
12826 outside of #ifdef SOLIB_ADD region.
12827 (do_restore_lang_radix_cleanup): Ditto.
12828 (resolve_pending_breakpoint): Ditto.
12829
12830 2004-02-03 Andrew Cagney <cagney@redhat.com>
12831
12832 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
12833 (process_note_abi_tag_sections): Delete unused function.
12834 (ia64_read_fp): Delete unused function.
12835 (gdbarch_extract_struct_value_address): Delete declaration.
12836
12837 2004-02-02 Andrew Cagney <cagney@redhat.com>
12838
12839 * vax-tdep.c (vax_frame_chain): Delete call to
12840 deprecated_inside_entry_file.
12841 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
12842
12843 2004-02-02 Mark Kettenis <kettenis@gnu.org>
12844
12845 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
12846 column that's "empty" or "same value" when eliminating REG_RA
12847 rules.
12848
12849 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
12850
12851 * NEWS: Add information about new pending breakpoint support.
12852
12853 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
12854
12855 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
12856 and pending fields for pending breakpoint support.
12857 * breakpoint.c (breakpoint_enabled): Add check for not pending.
12858 (condition_command): Only parse condition if not a pending
12859 breakpoint.
12860 (print_one_breakpoint): Add support for pending breakpoints.
12861 (describe_other_breakpoints): Add checks to verify we are not
12862 dealing with pending breakpoints.
12863 (check_duplicates): Don't check pending breakpoints.
12864 (set_raw_breakpoint): Initialize pending flag.
12865 (do_restore_lang_radix_cleanup): New cleanup routine.
12866 (resolve_pending_breakpoint): New function.
12867 (re_enable_breakpoints_in_shlibs): Try and resolve any
12868 pending breakpoints via resolve_pending_breakpoint.
12869 (mention): Add pending breakpoint support.
12870 (parse_breakpoint_sals): Add new parameter to pass to
12871 decode_line_1 to indicate silent errors when files or functions
12872 are not found. Change all callers.
12873 (do_captured_parse_breakpoint): New function.
12874 (break_command_1): Change prototype to return an rc value and to
12875 take an optional pending breakpoint pointer. Support creating
12876 a pending breakpoint if a "not found" form of error occurs when
12877 parsing the breakpoint. Also support resolving an existing pending
12878 breakpoint and be silent if the resolution fails.
12879 (create_breakpoints): Change prototype to take pending breakpoint
12880 pointer. When resolving a pending breakpoint, use the new pointer
12881 to provide a conditional or commands added by the end-user.
12882 (delete_breakpoint): Add appropriate check for pending.
12883 (breakpoint_re_set_one): Ditto.
12884 (do_enable_breakpoint): Ditto.
12885
12886 2004-02-02 David Carlton <carlton@kealia.com>
12887
12888 * valops.c (enum oload_classification): New.
12889 (find_overload_match): Break implementation into separate
12890 functions; delete #if 0'd code; look for symbols within
12891 namespaces.
12892 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
12893 (find_oload_champ,oload_method_static,classify_oload_match): New.
12894 * cp-support.h: Add declaration for cp_func_name; update
12895 declaration for make_symbol_overload_list.
12896 * cp-support.c (cp_func_name): New.
12897 (overload_list_add_symbol): Fix comment, use
12898 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
12899 (make_symbol_overload_list): Take a function name and a namespace
12900 instead of a symbol; change implementation.
12901 (make_symbol_overload_list_using): New.
12902 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
12903
12904 2004-02-02 Fred Fish <fnf@redhat.com>
12905
12906 * main.c (gdb_stdtarg): Move definition to group with other
12907 gdb_stdtarg definitions and update copyright years.
12908 * remote-sim.c (gdb_os_write_stderr): Write output to
12909 gdb_stdtargerr stream instead of gdb_stdtarg stream.
12910 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
12911 gdb_stderr stream and update copyright years.
12912
12913 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
12914
12915 * Makefile.in (mips-linux-nat.o): Update dependencies.
12916 * mips-linux-nat.c: Include mips-tdep.h.
12917
12918 2004-02-01 Roland McGrath <roland@redhat.com>
12919
12920 * sol-thread.c (sol_thread_xfer_partial): New function.
12921 (init_sol_thread_ops): Use that for to_xfer_partial hook.
12922 (init_sol_core_ops): Likewise.
12923
12924 * procfs.c (procfs_xfer_partial): New function.
12925 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
12926 * Makefile.in (procfs.o): Add $(auxv_h) dep.
12927
12928 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
12929 procfs_xfer_auxv function.
12930
12931 * procfs.c (procfs_make_note_section): If we can read
12932 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
12933 * linux-proc.c (linux_make_note_section): Likewise.
12934
12935 * auxv.h: New file.
12936 * auxv.c: New file.
12937 * Makefile.in (auxv_h): New variable.
12938 (COMMON_OBS): Add auxv.o here.
12939 (auxv.o): New target.
12940
12941 * corelow.c (core_xfer_partial): New function.
12942 (init_core_ops): Use it for core_ops.to_xfer_partial.
12943
12944 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
12945 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
12946 macro if that is defined.
12947
12948 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
12949
12950 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
12951 and check the specified thread for each breakpoint.
12952 * breakpoint.h (bpstat_stop_status): Update prototype.
12953 * infrun.c (handle_inferior_event): Update calls to
12954 bpstat_stop_status.
12955
12956 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
12957
12958 * Makefile.in (cli-cmds.o): Add $(readline_h).
12959
12960 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
12961
12962 * cli/cli-cmds.c: Include readline.h.
12963 (complete_command): Pass the start of the last word to
12964 complete_line.
12965
12966 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
12967
12968 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
12969 argument, and change first argument to a CORE_ADDR.
12970 * breakpoint.h (bpstat_stop_status): Update prototype.
12971 * infrun.c (adjust_pc_after_break): Add a new comment.
12972 (handle_inferior_event): Update calls to bpstat_stop_status.
12973
12974 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
12975
12976 * breakpoint.h: Update copyright years.
12977
12978 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
12979
12980 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
12981 (bpstat_stop_status): Don't decrement PC.
12982 * breakpoint.h (software_breakpoint_inserted_here_p): Add
12983 prototype.
12984 * infrun.c (adjust_pc_after_break): New function.
12985 (handle_inferior_event): Call it, early. Remove later references
12986 to DECR_PC_AFTER_BREAK.
12987 (normal_stop): Add commentary.
12988
12989 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
12990
12991 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
12992 2004-01-27 double-free fix.
12993
12994 2004-01-31 Mark Kettenis <kettenis@gnu.org>
12995
12996 * sparc-tdep.c (sparc_fetch_wcookie): New function.
12997 (sparc32_frame_prev_register): Handle StackGhost.
12998 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
12999
13000 2004-01-29 Roland McGrath <roland@redhat.com>
13001
13002 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
13003 * configure: Regenerated.
13004
13005 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
13006 * Makefile.in (procfs.o): Add dep.
13007
13008 2004-01-28 Andrew Cagney <cagney@redhat.com>
13009
13010 * tui/tui-stack.h: Update copyright.
13011 (struct frame_info): Add opaque declaration.
13012 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
13013 (tui_show_locator_content): Rename tuiShowLocatorContent.
13014 (tui_show_frame_info): Rename tuiShowFrameInfo.
13015 * tui/tui-stack.c: Update copyright. Update references.
13016 * tui/tui-winsource.c: Update references.
13017 * tui/tui-win.c: Update references.
13018 * tui/tui-layout.c: Update references.
13019 * tui/tui-hooks.c: Update copyright, update references.
13020 * tui/tui.c: Update copyright, update references.
13021 * tui/tui-disasm.c: Update references.
13022
13023 2004-01-28 David Carlton <carlton@kealia.com>
13024
13025 * dwarf2read.c (add_partial_structure): Use demangled name if
13026 namespace equals "".
13027
13028 2004-01-27 Jim Blandy <jimb@redhat.com>
13029
13030 Clean up misapplied patch:
13031 * dwarf2read.c (determine_prefix): Change one of the two forward
13032 declarations for 'determine_prefix_aux' to a declaration for this.
13033 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
13034 argument to 'die_specification'.
13035
13036 * dwarf2read.c (read_func_scope): Re-indent comment.
13037
13038 2004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
13039
13040 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
13041 b->exp to NULL after freeing so that error during re-parsing or
13042 evaluation of expressions associated with breakpoint don't
13043 eventually lead to re-freeing of storage.
13044 Committed by Andrew Cagney.
13045
13046 2004-01-27 Andrew Cagney <cagney@redhat.com>
13047
13048 * source.c (ambiguous_line_spec): Delete undefined declaration.
13049 * m32r-rom.c (m32r_set_board_address): Delete unused function.
13050 (m32r_set_server_address, m32r_set_download_path): Ditto.
13051 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
13052
13053 2004-01-27 Daniel Jacobowitz <drow@mvista.com>
13054
13055 * dwarf2read.c: Update calls to changed and renamed functions, and
13056 references to moved variables.
13057
13058 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
13059 language, language_defn, list_in_scope, and ftypes members.
13060 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
13061 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
13062 (baseaddr): Remove globals.
13063
13064 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
13065 (set_cu_language, die_is_declaration, die_specification)
13066 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
13067 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
13068 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
13069 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
13070
13071 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
13072 cu.list_in_scope. Don't initialize cu_header_offset.
13073 (add_partial_symbol): Add local baseaddr.
13074 (psymtab_to_symtab_1): Add local baseaddr. Use
13075 objfile->section_offsets for consistency. Don't initialize
13076 cu_header_offset; do initialize cu.header.offset and
13077 cu.list_in_scope.
13078 (read_file_scope, read_func_scope, read_lexical_block_scope)
13079 (dwarf_decode_lines, new_symbol): Add local baseaddr.
13080
13081 2004-01-27 Michael Chastain <mec.gnu@mindspring.com>
13082
13083 * PROBLEMS: Add gdb/1516.
13084
13085 2003-12-29 Robert Millan <robertmh@gnu.org>
13086
13087 Patch committed by Andrw Cagney.
13088 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
13089 * configure.tgt: Match knetbsd*-gnu.
13090
13091 2004-01-26 Andrew Cagney <cagney@redhat.com>
13092
13093 * breakpoint.c (catch_command_1): Delete #ifdef code.
13094 (catch_fork_command_1): Delete #ifdef wrapper.
13095 (catch_exec_command_1): Ditto.
13096 (catch_load_command_1): Ditto.
13097 (catch_unload_command_1): Ditto.
13098
13099 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
13100 (catch_breakpoint): Delete #if0ed function.
13101 (disable_catch_breakpoint): Ditto.
13102 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
13103 (disable_catch, enable_catch, delete_catch): Ditto.
13104
13105 2004-01-26 Andrew Cagney <cagney@redhat.com>
13106
13107 * remote.c (echo_check, quit_flag): Delete variables.
13108 (cisco_kernel_mode): Delete variable.
13109 (minitelnet_return, tty_input, escape_count): Delete variables.
13110 (remote_cisco_mode): Delete variable.
13111 (remote_cisco_open, remote_cisco_close): Delete function.
13112 (remote_cisco_mourn, remote_cisco_wait): Delete function.
13113 (init_remote_cisco_ops): Delete function.
13114 (_initialize_remote): Do not install "remote cisco" code.
13115 (read_frame): Delete cisco specific code.
13116 (remote_info_process): Delete function.
13117 (remote_wait): Delete cisco specific code.
13118 (remote_cisco_section_offsets): Delete function.
13119 (remote_cisco_objfile_relocate): Delete function.
13120 (remote_async_wait): Delete cisco specific code.
13121 (minitelnet, readtty, readsocket): Delete function.
13122
13123 2004-01-26 Andrew Cagney <cagney@redhat.com>
13124
13125 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
13126 comments mentioning extract_returned_value_address.
13127 * infcmd.c (print_return_value): Update. Add comments on
13128 extract_returned_value_address.
13129 * stack.c (return_command): Add comments on
13130 extract_returned_value_address.
13131 * values.c: Update comment.
13132 * m32r-tdep.c: Update comment.
13133 * sparc-tdep.c: Update comment.
13134 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
13135 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
13136 * sh64-tdep.c (sh64_gdbarch_init): Update.
13137 * sh-tdep.c (sh_gdbarch_init): Update.
13138 * s390-tdep.c (s390_gdbarch_init): Update.
13139 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
13140 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
13141 * m68k-tdep.c (m68k_gdbarch_init): Update.
13142 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
13143 * m32r-tdep.c (m32r_gdbarch_init): Update.
13144 * ia64-tdep.c (ia64_gdbarch_init): Update.
13145 * h8300-tdep.c (h8300_gdbarch_init): Update.
13146 * frv-tdep.c (frv_gdbarch_init): Update.
13147 * arm-tdep.c (arm_gdbarch_init): Update.
13148 * alpha-tdep.c (alpha_gdbarch_init): Update.
13149
13150 2004-01-26 Andrew Cagney <cagney@redhat.com>
13151
13152 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
13153 SYMBOL_LOCATION_FUNCS
13154 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
13155 "struct symbol_ops".
13156 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
13157 type to "struct symbol_ops".
13158 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
13159 (struct symbol): Replace ".aux_value.loc.funcs" and
13160 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
13161 (SYMBOL_OBJFILE): Delete macro.
13162 (SYMBOL_LOCATION_FUNCS): Delete macro.
13163 (SYMBOL_LOCATION_BATON): Update.
13164 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
13165 intead of SYMBOL_LOCATION_FUNCS.
13166 * ax-gdb.c (gen_var_ref): Ditto.
13167 * printcmd.c (address_info): Ditto.
13168 * findvar.c (read_var_value): Ditto.
13169 (symbol_read_needs_frame): Ditto.
13170
13171 2004-01-26 Andrew Cagney <cagney@redhat.com>
13172
13173 * dwarf2read.c (read_func_scope): Document frame-base hack.
13174
13175 2004-01-25 Mark Kettenis <kettenis@gnu.org>
13176
13177 * infcmd.c (print_return_value): Plug memory leak; delete
13178 ui_stream object. Rename argument `structure_return' to
13179 `struct_return'.
13180
13181 2004-01-25 Mark Kettenis <kettenis@gnu.org>
13182
13183 * infcmd.c (print_return_value): Wrap long lines.
13184 (finish_command_continuation, finish_command): Remove unused
13185 variable `funcaddr'. Fix some coding-standards problems.
13186
13187 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
13188 SECT_SIZE is large enough, not whether it's exactly the right size.
13189 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
13190 TDEP->fpregset to zero.
13191
13192 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
13193 floating-point registers for traditional NetBSD core files.
13194 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
13195 TDEP->sizeof_fpregset here.
13196
13197 2004-01-25 Mark Kettenis <kettenis@gnu.org>
13198
13199 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
13200 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
13201 function with code split out from
13202 sparc32nbsd_sigcontext_frame_cache.
13203 (sparc32nbsd_sigcontext_frame_cache): Use
13204 sparc32nbsd_sigcontext_saved_regs.
13205 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
13206 OpenBSD.
13207 * sparcobsd-tdep.c: New file.
13208 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
13209 (sparcobsd-tdep.o): New dependency.
13210 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
13211 * config/sparc/obsd.mt: New file.
13212
13213 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
13214 TDEP->fpregset to be initialized to enable core file register
13215 sets.
13216
13217 2004-01-24 Mark Kettenis <kettenis@gnu.org>
13218
13219 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
13220 Add opaque declarations.
13221 (sparc64nbsd_sigcontext_saved_regs): New prototype.
13222 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
13223 function with code split out from
13224 sparc64nbsd_sigcontext_frame_cache.
13225 (sparc64nbsd_sigcontext_frame_cache): Use
13226 sparc64nbsd_sigcontext_saved_regs.
13227 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
13228 OpenBSD.
13229 * sparc64obsd-tdep.c: New file.
13230 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
13231 (sparc64obsd-tdep.o): New dependency.
13232 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
13233 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
13234 * config/sparc/obsd64.mt: New file.
13235
13236 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
13237 read the instruction at PC.
13238
13239 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
13240 value of GDB_OSABI_DEFAULT.
13241 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
13242 instead of GDB_OSABI_NETBSD_AOUT.
13243
13244 2004-01-24 Nick Roberts <nick@nick.uklinux.net>
13245
13246 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
13247 copyright.
13248
13249 2004-01-23 Andrew Cagney <cagney@redhat.com>
13250
13251 * printcmd.c (display_command): Replace tui_set_display call with
13252 tui_set_layout_for_display_command.
13253 * tui/tui.h (enum tui_win_type): Define.
13254 (tui_set_layout): Delete declaration.
13255 (tui_set_layout_for_display_command): Rename set_tui_layout.
13256 * tui/tui-data.h (enum tui_layout_type): Define.
13257 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
13258 "tui.h".
13259 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
13260 (tui_default_win_height): Rename tuiDefaultWinHeight.
13261 (tui_default_win_viewport_height): Rename
13262 tuiDefaultWinViewportHeight.
13263 (tui_set_layout): RenametuiSetLayout.
13264 * tui/tui-layout.c: Update references.
13265 * tui/tui.c: Update references.
13266 * tui/tui-disasm.c: Update references.
13267
13268 2004-01-23 David Carlton <carlton@kealia.com>
13269
13270 Partial workaround for PR c++/1511:
13271 * cp-namespace.c: Include frame.h.
13272 (cp_lookup_transparent_type): New
13273 (cp_lookup_transparent_type_loop): New.
13274 * cp-support.h: Declare cp_lookup_transparent_type.
13275 * symtab.c (basic_lookup_transparent_type): Renamed from
13276 lookup_transparent_type.
13277 (lookup_transparent_type): Replace old body by a call to
13278 current_language->la_lookup_transparent_type.
13279 * symtab.h: Update copyright. Declare
13280 basic_lookup_transparent_type.
13281 * language.h: Update copyright.
13282 (struct language_defn): Add la_lookup_transparent_type.
13283 * language.c: Update copyright.
13284 (unknown_language_defn): Add basic_lookup_transparent_type.
13285 (auto_language_defn): Add basic_lookup_transparent_type.
13286 (local_language_defn): Add basic_lookup_transparent_type.
13287 * ada-lang.c: Update copyright.
13288 (ada_language_defn): Add basic_lookup_transparent_type.
13289 * c-lang.c: Update copyright.
13290 (c_language_defn): Add basic_lookup_transparent_type.
13291 (cplus_language_defn): Add basic_lookup_transparent_type.
13292 (asm_language_defn): Add basic_lookup_transparent_type.
13293 (minimal_language_defn): Add basic_lookup_transparent_type.
13294 * f-lang.c: Update copyright.
13295 (f_language_defn): Add basic_lookup_transparent_type.
13296 * jv-lang.c: Update copyright.
13297 (java_language_defn): Add basic_lookup_transparent_type.
13298 * m2-lang.c: Update copyright.
13299 (m2_language_defn): Add basic_lookup_transparent_type.
13300 * objc-lang.c: Update copyright.
13301 (objc_language_defn): Add basic_lookup_transparent_type.
13302 * p-lang.c: Update copyright.
13303 (p_language_defn): Add basic_lookup_transparent_type.
13304 * scm-lang.c: Update copyright.
13305 (scm_language_defn): Add basic_lookup_transparent_type.
13306 * Makefile.in (cp-namespace.o): Depend on frame.h.
13307
13308 2004-01-23 David Carlton <carlton@kealia.com>
13309
13310 Patch for PR c++/1520:
13311 * dwarf2read.c (read_func_scope): Set processing_current_prefix
13312 properly if we have a specification die.
13313 (determine_prefix_aux): Rename from determine_prefix.
13314 (determine_prefix): Like the old determine_prefix, but never
13315 returns NULL.
13316
13317 2004-01-23 Theodore A. Roth <troth@openavr.org>
13318
13319 * avr-tdep.c: Update copyright.
13320 (avr_iaddr_p): Delete unused function.
13321 (avr_saddr_p): Delete unused function.
13322
13323 2004-01-23 David Carlton <carlton@kealia.com>
13324
13325 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
13326 Fix for PR symtab/1534.
13327
13328 2004-01-23 Mark Kettenis <kettenis@gnu.org>
13329
13330 * NEWS (New native configurations): Mention OpenBSD/sparc and
13331 OpenBSD/sparc64.
13332 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
13333 * configure.host: Likewise.
13334 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
13335 handler for OpenBSD.
13336 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
13337
13338 2004-01-22 Mark Kettenis <kettenis@gnu.org>
13339
13340 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
13341 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
13342
13343 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
13344 * cli/cli-cmds.c (shell_escape): Likewise.
13345
13346 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
13347 OpenBSD .note.openbsd.ident sections.
13348
13349 2004-01-22 David Carlton <carlton@kealia.com>
13350
13351 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
13352 get_scope_pc_bounds.
13353 (read_file_scope): Ditto.
13354 (get_scope_pc_bounds): New function, produced by extracting code
13355 from the above two functions, consolidating it, and adding support
13356 for DW_TAG_namespace.
13357
13358 2004-01-22 Mark Kettenis <kettenis@gnu.org>
13359
13360 * osabi.c (MAX_NOTESZ): New define.
13361 (check_note): New function.
13362 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
13363 check_note.
13364
13365 2004-01-21 Roland McGrath <roland@redhat.com>
13366
13367 * MAINTAINERS (write after approval): Add myself.
13368
13369 2004-01-21 Eli Zaretskii <eliz@gnu.org>
13370
13371 * utils.c (init_page_info): Move declarations of `rows' and
13372 `cols' before the __GO32__-specific code. Move the closing brace
13373 outside the #ifdef __GO32__..#endif block.
13374 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
13375
13376 2004-01-21 Paul Brook <paul@codesourcery.com>
13377
13378 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
13379 BPSTAT_WHAT_CHECK_SHLIBS.
13380
13381 2004-01-21 Paul Brook <paul@codesourcery.com>
13382
13383 * MAINTAINERS: Add myself to write-after-approval.
13384
13385 2004-01-20 Andrew Cagney <cagney@redhat.com>
13386
13387 * ax-gdb.c (print_axs_value): Delete unused function.
13388 * jv-lang.c (java_lookup_type): Delete unused function.
13389 * cli/cli-dump.c (dump_filetype): Delete unused function.
13390 * remote-mips.c (remote_mips_insert_hw_breakpoint)
13391 (remote_mips_remove_hw_breakpoint): Delete unused functions.
13392 (mips_getstring): Delete unused function.
13393 (pmon_insert_breakpoint): Delete #if0ed function.
13394 (PMON_MAX_BP): Delete #if0ed MACRO.
13395 (mips_pmon_bp_info): Delete #if0ed variable.
13396 (pmon_remove_breakpoint): Delete #if0ed function.
13397 * monitor.c (monitor_write_even_block): Delete unused function.
13398 (monitor_write_memory_block): Delete #if0ed code.
13399 * dink32-rom.c (dink32_load): Delete unused function.
13400 (_initialize_dink32_rom): Delete #if0ed code.
13401 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
13402
13403 * tui/tui-command.c: Update references.
13404 * tui/tui-io.c: Update references.
13405 * tui/tui-command.h: Update copyright.
13406 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
13407
13408 * source.c (ambiguous_line_spec): Delete never-defined function.
13409 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
13410 * gdbtypes.c (add_name, add_mangled_type): Ditto.
13411 * cli/cli-cmds.c (validate_comname): Ditto.
13412
13413 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
13414 "tui-data.h".
13415 (tui_set_disassem_content): Rename tuiSetDisassemContent.
13416 (tui_show_disassem): Rename tuiShowDisassem.
13417 (tui_show_disassem_and_update_source): Rename
13418 tuiVerticalDisassemScroll.
13419 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
13420 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
13421 * tui/tui.h: Update copyright.
13422 (enum tui_status): Define.
13423 * tui/tui-data.h (enum tui_scroll_direction): Define.
13424 * tui/tui-disasm.c: Update copyright. Update references.
13425 * tui/tui-winsource.c: Update copyright. Update references.
13426 * tui/tui-win.c: Update references.
13427 * tui/tui-layout.c: Update references.
13428
13429 2004-01-20 Andrew Cagney <cagney@redhat.com>
13430
13431 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
13432 sym2 to start of block.
13433
13434 2004-01-19 Michael Chastain <mec.gnu@mindspring.com>
13435
13436 * MAINTAINERS: Delete mmalloc.
13437 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
13438 * NEWS: Mention removal of --with-malloc.
13439 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
13440 * config.in: Regenerate.
13441 * configure: Regenerate.
13442 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
13443 USE_MMALLOC, MMCHECK_FORCE.
13444 * gdbinit.in: Remove mmalloc.
13445 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
13446 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
13447 * config/i386/go32.mh: Likewise.
13448 * config/i386/interix.mh: Likewise.
13449 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
13450
13451 2004-01-19 Jeff Johnston <jjohnstn@redhat.com>
13452
13453 * linespec.c (decode_variable, symtab_from_filename): Call
13454 error_silent with error message instead of throwing an exception
13455 directly.
13456 * defs.h (error_silent, error_output_message): Add prototypes.
13457 (catch_exceptions_with_msg): Ditto.
13458 * utils.c (error_silent, error_output_message): New functions.
13459 * top.c (catch_exceptions_with_msg): New function.
13460
13461 2004-01-20 Nick Roberts <nick@nick.uklinux.net>
13462
13463 * mi/mi-cmds.h (enum print_values): Add definition.
13464
13465 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
13466 type and value for simple data types and just the name and type
13467 for complex ones, if required.
13468
13469 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
13470 children, if required.
13471
13472 2004-01-19 Kevin Buettner <kevinb@redhat.com>
13473
13474 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
13475 unused declarations.
13476
13477 2004-01-19 Andrew Cagney <cagney@redhat.com>
13478
13479 * top.h (mapped_symbol_files): Delete declaration.
13480 * main.c (captured_main): Delete option "m" and "mapped".
13481 * objfiles.c (mapped_symbol_files): Delete variable.
13482 * symfile.c (symbol_file_command): Delete mmap code.
13483 (symbol_file_add_with_addrs_or_offsets): Ditto.
13484 (add_symbol_file_command, reread_separate_symbols): Ditto.
13485 * objfiles.h (OBJF_MAPPED): Delete.
13486 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
13487 (free_objfile) [USE_MMALLOC]: Ditto.
13488 (open_existing_mapped_file): Delete function.
13489 (open_mapped_file): Delete function.
13490 (map_to_file): Delete function.
13491
13492 2004-01-19 Kevin Buettner <kevinb@redhat.com>
13493
13494 * infrun.c (step_into_function): Account for possible breakpoint
13495 adjustment when computing ``stop_func_start''.
13496
13497 2004-01-19 Kevin Buettner <kevinb@redhat.com>
13498
13499 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
13500 the region size against the size of a pointer, not the size of
13501 a register as given by DEPRECATED_REGISTER_SIZE.
13502
13503 2004-01-19 Andrew Cagney <cagney@redhat.com>
13504
13505 * tui/tui-regs.h: Include "tui-data.h".
13506 (tuiFirstRegElementNoInLine): Delete declaration.
13507 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
13508 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
13509 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
13510 (tui_calculate_regs_column_count): Rename
13511 tuiCalculateRegsColumnCount.
13512 (tui_check_register_values): Rename tuiCheckRegisterValues.
13513 (tui_show_registers): Rename tuiShowRegisters.
13514 (tui_display_registers_from_line): Rename
13515 tuiDisplayRegistersFromLine.
13516 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
13517 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
13518 (tui_first_reg_element_no_inline): Rename
13519 tuiFirstRegElementNoInLine.
13520 * tui/tui-data.h: Update copyright.
13521 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
13522 * tui/tui-windata.c: Update copyright, update references.
13523 * tui/tui-regs.c: Update copyright, update references.
13524 * tui/tui-win.c: Update copyright, update references.
13525 * tui/tui-layout.c: Update copyright, update references.
13526
13527 2004-01-18 Andrew Cagney <cagney@redhat.com>
13528
13529 * tui/tui-io.c: Update copyright.
13530 (key_is_end_sequence, key_is_backspace): New functions.
13531 (key_is_command_char, key_is_start_sequence): New function.
13532 (tui_getc): Update references.
13533 * tui/tui-io.h: Update copyright.
13534 (m_tuiStartNewLine): Delete macro.
13535 (m_isBackspace, m_isDeleteChar): Delete macros.
13536 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
13537 (m_isNextPage, m_isPrevPage): Delete macros.
13538 (m_isLeftArrow, m_isRightArrow): Delete macros.
13539 (m_isXdbStyleCommandChar): Delete macro.
13540 (key_is_start_sequence): Declare, replace m_isStartSequence.
13541 (key_is_end_sequence): Declare, replace m_isEndSequence.
13542 (key_is_backspace): Declare ,replace m_isBackspace.
13543 (key_is_command_char): Declare, replace m_isCommandChar.
13544 * tui/tui-command.c: Update copyright.
13545 (tuiDispatchCtrlChar): Update references.
13546
13547 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
13548 tuiSourceWin.h.
13549
13550 * tui/tui-command.c: Rename tui/tuiCommand.c.
13551 * tui/tui-command.h: Rename tui/tuiCommand.h.
13552 * tui/tui-data.c: Rename tui/tuiData.c.
13553 * tui/tui-data.h: Rename tui/tuiData.h.
13554 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
13555 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
13556 * tui/tui-io.c: Rename tui/tuiIO.c.
13557 * tui/tui-io.h: Rename tui/tuiIO.h.
13558 * tui/tui-layout.c: Rename tui/tuiLayout.c.
13559 * tui/tui-layout.h: Rename tui/tuiLayout.h.
13560 * tui/tui-regs.c: Rename tui/tuiRegs.c.
13561 * tui/tui-regs.h: Rename tui/tuiRegs.h.
13562 * tui/tui-source.c: Rename tui/tuiSource.c.
13563 * tui/tui-source.h: Rename tui/tuiSource.h.
13564 * tui/tui-stack.c: Rename tui/tuiStack.c.
13565 * tui/tui-stack.h: Rename tui/tuiStack.h.
13566 * tui/tui-win.c: Rename tui/tuiWin.c.
13567 * tui/tui-win.h: Rename tui/tuiWin.h.
13568 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
13569 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
13570 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
13571 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
13572 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
13573 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
13574 * tui/tui-file.c: Update includes.
13575 * tui/tui-hooks.c: Update includes.
13576 * tui/tui-interp.c: Update includes.
13577 * tui/tui.c: Update includes.
13578 * Makefile.in: Update all tui/ dependencies.
13579 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
13580
13581 * Makefile.in: Update copyright. Update dependencies.
13582
13583 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
13584 problem.
13585
13586 2004-01-18 Andrew Cagney <cagney@redhat.com>
13587
13588 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
13589 instead of register_gdbarch_init.
13590
13591 * remote-sds.c (tohex): Delete unused function. Update copyright.
13592 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
13593 * v850-tdep.c (v850_register_virtual_size): Ditto.
13594 * target.c (normal_target_post_startup_inferior): Ditto.
13595 * source.c (ambiguous_line_spec): Ditto.
13596 * remote.c (adapt_remote_get_threadinfo): Ditto.
13597 * mi/mi-out.c (out_field_fmt): Ditto.
13598 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
13599 (output_control_change_notification): Ditto.
13600 * m68k-tdep.c (m68k_register_byte): Ditto.
13601 (m68k_remote_breakpoint_from_pc): Ditto.
13602 * ui-out.c (init_ui_out_state): Delete unused declaration.
13603 * stabsread.c (search_value): Ditto.
13604 * mi/mi-cmd-env.c (env_cli_command): Ditto.
13605 * maint.c (print_section_table): Ditto.
13606 * infrun.c (set_follow_fork_mode_command): Ditto.
13607
13608 2004-01-18 Mark Kettenis <kettenis@gnu.org>
13609
13610 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
13611 DW_CFA_def_cfa_exporession. Add support for
13612 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
13613 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
13614
13615 2004-01-18 Andrew Cagney <cagney@redhat.com>
13616
13617 * ocd.c: Update copyright.
13618 (bdm_read_register_command): Delete unused function.
13619 (_initialize_remote_ocd): Delete commented out reference.
13620 (get_quoted_char, reset_packet): Delete #if0ed function.
13621 (output_packet, put_quoted_char): Delete #if0ed function.
13622 (stu_put_packet, stu_get_packet): Delete #if0ed function.
13623 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
13624 (BDM_BREAKPOINT): Delete #if0ed macro.
13625 (remote_timeout): Delete #if0ed variable.
13626
13627 2004-01-18 Mark Kettenis <kettenis@gnu.org>
13628
13629 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
13630 (core-sol2.o): Remove dependency.
13631 * core-sol2.c: Remove file.
13632
13633 2004-01-17 Andrew Cagney <cagney@redhat.com>
13634
13635 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
13636 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
13637 enums.
13638
13639 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13640
13641 * remote.c: Update copyright years.
13642
13643 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13644
13645 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
13646
13647 2004-01-17 Andrew Cagney <cagney@redhat.com>
13648
13649 * mdebugread.c: Update copyright.
13650 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
13651 (parse_type, parse_procedure): Ditto.
13652 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
13653
13654 * cris-tdep.c (cris_store_struct_return): Put back accidently
13655 deleted function.
13656
13657 * gdbarch.sh: Update copyright year.
13658 * gdbarch.h, gdbarch.c: Re-generate.
13659
13660 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13661
13662 Suggested by George Anzinger.
13663 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
13664 correct stack offset. Include unknown opcode numbers in the error
13665 message.
13666
13667 2004-01-17 Andrew Cagney <cagney@redhat.com>
13668
13669 * x86-64-tdep.c (x86_64_init_abi): No need to clear
13670 extract_struct_value_address, i386 does not set it.
13671 * sparc64-tdep.c (sparc64_init_abi): Do not set
13672 extract_struct_value_address, never called.
13673 (sparc64_extract_struct_value_address): Delete function.
13674 * m68hc11-tdep.c: Update copyright.
13675 (m68hc11_gdbarch_init): Delete redundant assignment of
13676 extract_struct_value_address.
13677 * i386-tdep.c: Update copyright.
13678 (i386_gdbarch_init): Do not set extract_struct_value_address,
13679 never called.
13680 (i386_extract_struct_value_address): Delete function.
13681 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
13682 extract_struct_value_address, never called.
13683 (sparc32_extract_struct_value_address): #if 0 function. Add
13684 comments explaining its future.
13685
13686 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13687
13688 * arm-tdep.c (arm_write_pc): New function.
13689 (arm_gdbarch_init): Call set_gdbarch_write_pc.
13690
13691 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13692
13693 * breakpoint.c (must_shift_inst_regs): Delete.
13694 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
13695 and SHIFT_INST_REGS.
13696 * infcmd.c (step_1, step_1_continuation): Delete references to
13697 SHIFT_INST_REGS.
13698 * infrun.c (keep_going): Likewise.
13699 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
13700 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
13701
13702 2004-01-17 Andrew Cagney <cagney@redhat.com>
13703
13704 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13705 * gdbarch.h, gdbarch.c: Re-generate.
13706 * infcmd.c (print_return_value): Delete reference to
13707 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
13708
13709 * cris-tdep.c (cris_gdbarch_init): Do not set
13710 deprecated_extract_struct_value_address.
13711
13712 * xstormy16-tdep.c: Update copyright.
13713 (xstormy16_extract_struct_value_address): Update to current
13714 extract struct value address interface.
13715 (xstormy16_gdbarch_init): Set extract_struct_value_address.
13716 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
13717 current extract struct value address interface.
13718 (sh64_gdbarch_init): Set extract_struct_value_address.
13719
13720 * cris-tdep.c: Update copyright.
13721 (cris_extract_struct_value_address): Delete function.
13722 (struct_return_address): Delete variable.
13723 (cris_store_struct_return): Do not set struct_return_address.
13724
13725 * mcore-tdep.c: Update copyright.
13726 (mcore_extract_struct_value_address): Delete function. Update
13727 comments.
13728 (mcore_gdbarch_init): Update.
13729 * mn10300-tdep.c: Update copyright.
13730 (mn10300_extract_struct_value_address): Delete function.
13731 (mn10300_gdbarch_init): Update.
13732 * v850-tdep.c: Update copyright.
13733 (v850_extract_struct_value_address): Delete.
13734 (v850_gdbarch_init): Update.
13735 * ns32k-tdep.c: Update copyright.
13736 (ns32k_extract_struct_value_address): Delete.
13737 (ns32k_gdbarch_init): Update.
13738 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
13739 (hppa_gdbarch_init): Update.
13740 * vax-tdep.c: Update copyright.
13741 (vax_extract_struct_value_address): Delete.
13742 (vax_gdbarch_init): Update.
13743
13744 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
13745 * gdbarch.h, gdbarch.c: Re-generate.
13746 * procfs.c (procfs_fetch_registers): Delete reference to
13747 DEPRECATED_NPC_REGNUM.
13748 (procfs_store_registers): Ditto.
13749 * regcache.c (generic_target_write_pc): Simplify.
13750 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
13751
13752 * core-sol2.c (fetch_core_registers): Replace
13753 DEPRECATED_NPC_REGNUM with equivalent tdep value.
13754
13755 * hppa-tdep.c: Update copyright year.
13756 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
13757 NPC_REGNUM.
13758 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
13759
13760 * mips-tdep.c (mips_write_pc): New function.
13761 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
13762 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
13763 (mips_find_saved_regs, mips_software_single_step: Ditto.
13764 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
13765 mips_init_extra_frame_info, mips_pop_frame): Ditto.
13766
13767 2004-01-17 Andrew Cagney <cagney@redhat.com>
13768
13769 * mips-tdep.c: Re-indent. Group functions by ABI.
13770
13771 2004-01-17 Andrew Cagney <cagney@redhat.com>
13772
13773 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
13774 * gdbarch.c: Re-generate.
13775 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
13776 DECR_PC_AFTER_BREAK to zero.
13777 * vax-tdep.c (vax_gdbarch_init): Ditto.
13778 * v850-tdep.c (v850_gdbarch_init): Ditto.
13779 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
13780 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
13781 * sh-tdep.c (sh_gdbarch_init): Ditto.
13782 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
13783 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
13784 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
13785 * mips-tdep.c (mips_gdbarch_init): Ditto.
13786 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
13787 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13788 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
13789 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
13790 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
13791 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
13792 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
13793 * frv-tdep.c (frv_gdbarch_init): Ditto.
13794 * cris-tdep.c (cris_gdbarch_init): Ditto.
13795 * avr-tdep.c (avr_gdbarch_init): Ditto.
13796 * arm-tdep.c (arm_gdbarch_init): Ditto.
13797 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
13798
13799 2004-01-17 J. Brobecker <brobecker@gnat.com>
13800
13801 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
13802 Delete, no longer used.
13803 (read_subrange_type): New function, mostly extracted from
13804 read_array_type().
13805 (read_array_type): Replace extracted code by call to
13806 read_subrange_type().
13807 (dwarf2_get_attr_constant_value): New function.
13808 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
13809 (add_partial_symbol): Likewise.
13810 (process_die): Likewise.
13811 (new_symbol): Likewise.
13812 (read_type_die): Likewise.
13813
13814 2004-01-16 Andrew Cagney <cagney@redhat.com>
13815
13816 * symfile.c: Update copyright year.
13817 (compare_symbols): Delete unused function.
13818 * stabsread.c: Update copyright year.
13819 (lrs_general_complaint): Delete unused function.
13820 (ref_search_value): Ditto.
13821 (get_substring): Delete declaration.
13822 * sh64-tdep.c: Update copyright year.
13823 (sh64_get_gdb_regnum): Delete unused function.
13824 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
13825 Delete unused function.
13826
13827 2004-01-17 Mark Kettenis <kettenis@gnu.org>
13828
13829 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
13830 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
13831
13832 2004-01-16 Andrew Cagney <cagney@redhat.com>
13833
13834 Changes from Peter Schauer.
13835 * rs6000-tdep.c: Update copyright year.
13836 (rs6000_push_dummy_call): Update the stack pointer before
13837 accessing the corresponding stack region.
13838 * rs6000-nat.c: Update copyright year.
13839 (set_host_arch): Set "info.abfd" to "exec_bfd".
13840
13841 2004-01-15 Mark Kettenis <kettenis@gnu.org>
13842
13843 * blockframe.c: Update copyright year.
13844 (inside_entry_func): Don't treat a zero PC specially.
13845
13846 2004-01-14 Elena Zannoni <ezannoni@redhat.com>
13847
13848 * gcore.c (gcore_copy_callback): Use paddr_d to print size
13849 variable.
13850 (gcore_create_callback): Ditto. Skip any memory segment that has
13851 no permissions set.
13852
13853 2004-01-14 David Carlton <carlton@kealia.com>
13854
13855 Change symbols for C++ nested types to contain the fully qualified
13856 name, if possible. (At least in the DWARF-2 case.) Partial fix
13857 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
13858 c++/895.
13859 * c-exp.y (qualified_type): Handle types nested within classes.
13860 * cp-namespace.c: Update comments.
13861 (cp_set_block_scope): Delete #if 0.
13862 (cp_lookup_nested_type): Handle types nested within classes.
13863 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
13864 when appropriate.
13865 (add_partial_symbol): Add the name of the enclosing namespace to
13866 types.
13867 (pdi_needs_namespace): New.
13868 (add_partial_namespace): Tweak comment.
13869 (add_partial_structure): New.
13870 (psymtab_to_symtab_1): Initialize processing_current_prefix
13871 here...
13872 (process_die): instead of here.
13873 (read_structure_scope): Try to figure out the name of the class or
13874 namespace that the structure might be defined within.
13875 (read_enumeration): Generate fully-qualified names, if possible.
13876 (read_namespace): Don't set name to NULL.
13877 (die_specification): New.
13878 (new_symbol): Generate fully-qualified names for types.
13879 (read_type_die): Determine appropriate prefix.
13880 (determine_prefix): New.
13881 (typename_concat): New.
13882 (class_name): New.
13883 * valops.c (value_aggregate_elt): Pass NOSIDE to
13884 value_struct_elt_for_reference.
13885 (value_struct_elt_for_reference): Make static, add NOSIDE
13886 parameter, call value_maybe_namespace_elt as a last resort.
13887 (value_namespace_elt): Break out code into
13888 value_maybe_namespace_elt.
13889 (value_maybe_namespace_elt): New.
13890
13891 2004-01-12 Andrew Cagney <cagney@redhat.com>
13892
13893 * mips-tdep.c (mips_convert_register_p): Handle both raw and
13894 cooked floating-point registers.
13895 (mips_gdbarch_init): Set convert_register_p, register_to_value,
13896 and value_to_register.
13897
13898 2004-01-13 Andrew Cagney <cagney@redhat.com>
13899
13900 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
13901 * gdbarch.c: Re-generate.
13902 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
13903 FUNCTION_START_OFFSET.
13904 * v850-tdep.c (v850_gdbarch_init): Ditto.
13905 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
13906 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
13907 * sh-tdep.c (sh_gdbarch_init): Ditto.
13908 * s390-tdep.c (s390_gdbarch_init): Ditto.
13909 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
13910 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
13911 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
13912 * mips-tdep.c (mips_gdbarch_init): Ditto.
13913 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
13914 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
13915 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13916 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
13917 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
13918 * i386-tdep.c (i386_gdbarch_init): Ditto.
13919 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
13920 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
13921 * frv-tdep.c (frv_gdbarch_init): Ditto.
13922 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
13923 * cris-tdep.c (cris_gdbarch_init): Ditto.
13924 * avr-tdep.c (avr_gdbarch_init): Ditto.
13925 * arm-tdep.c (arm_gdbarch_init): Ditto.
13926 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
13927
13928 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
13929
13930 * infrun.c (follow_fork_mode_ask): Remove.
13931 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
13932 (follow_fork): Simplify and remove internal error for
13933 follow_fork_mode_ask.
13934 (_initialize_infrun): Update "set follow-fork-mode" help text.
13935
13936 2004-01-13 Andrew Cagney <cagney@redhat.com>
13937
13938 * configure.in: Update copyright year.
13939 (build_warnings): Add -Wunused-label.
13940 * configure: Re-generate.
13941
13942 2004-01-12 Andrew Cagney <cagney@redhat.com>
13943
13944 * exec.h (exec_ops): Make "extern".
13945
13946 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
13947 the function is void.
13948 (mips_pseudo_register_write): Ditto.
13949
13950 2004-01-12 Andrew Cagney <cagney@redhat.com>
13951
13952 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
13953 call. Never defined.
13954 * sparc-tdep.h (struct frame_info): Add opaque declaration.
13955 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
13956 (struct sparc_gregset, struct regcache): Ditto.
13957 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
13958
13959 2004-01-12 Andrew Cagney <cagney@redhat.com>
13960
13961 * mi/ChangeLog: Delete file. Renamed to ...
13962 * mi/ChangeLog-1999-2003: New file.
13963 * tui/ChangeLog: Delete file. Renamed to ...
13964 * tui/ChangeLog-1998-2003: New file.
13965
13966 2004-01-11 Mark Kettenis <kettenis@gnu.org>
13967
13968 * sparc64nbsd-tdep.c: Include "regset.h".
13969 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
13970 Remove variables.
13971 (fetch_core_registers): Remove function.
13972 (sparc64nbsd_core_fns): Remove variable.
13973 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
13974 functions.
13975 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
13976 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
13977 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
13978
13979 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
13980 sparc_extract_struct_value_address.
13981 (sparc32_gdbarch_init): Set extract_struct_value_address.
13982 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
13983 function.
13984 (sparc64_init_abi): Set extract_struct_value_address. Don't set
13985 return_value_on_stack.
13986
13987 * NEWS: Mention that %cs and %ss have been added to the AMD64
13988 configurations
13989
13990 * frame.c: Update copyright year.
13991 (get_prev_frame): Improve comment.
13992
13993 * sparc64fbsd-tdep.c: Include "regset.h".
13994 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
13995 Remove variables.
13996 (fetch_core_registers): Remove function.
13997 (sparc64fbsd_core_fns): Remove variable.
13998 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
13999 functions.
14000 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
14001 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
14002 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
14003
14004 * sparcnbsd-tdep.c: Include "regset.h".
14005 (fetch_core_registers): Remove function.
14006 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
14007 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
14008 functions.
14009 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
14010 TDEP->fpregset.
14011 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
14012
14013 * sparc-tdep.h (struct regset): Provide opaque declaration.
14014 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
14015 fpregset and sizeof_fpregset members.
14016 * sparc-tdep.c (struct regset): Provide opaque declaration.
14017 (sparc_regset_from_core_section): New function.
14018 (sparc32_gdbarch_init): Initialize TDEP->gregset,
14019 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
14020 Set regset_from_core_section when appropriate.
14021
14022 2004-01-10 Mark Kettenis <kettenis@gnu.org>
14023
14024 * x86-64-tdep.c (amd64_non_pod_p): New function.
14025 (amd64_classify_aggregate): Return class memory for non-POD
14026 C++ structure types.
14027
14028 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
14029 argument. Use it to reserve a register if necessary.
14030 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
14031 amd64_push_arguments.
14032
14033 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
14034
14035 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
14036 register numbers in comments.
14037 * x86-64-tdep.h: Update copyright year.
14038 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
14039 Adjust for addition of %cs and %ss.
14040 * amd64fbsd-nat.c: Update copyright year.
14041 (reg_offset): Add register offsets for %cs and %ss.
14042 * amd64fbsd-tdep.c: Update copyright year.
14043 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
14044 (amd64fbsd_sc_reg_offset): Likewise.
14045 * x86-64-linux-nat.c: Update copyright year.
14046 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
14047 and %ss.
14048 * amd64nbsd-nat.c: Update copyright year.
14049 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
14050 * amd64nbsd-tdep.c: Update copyright year.
14051 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
14052 * x86-64-linux-tdep.c: Update copyright year.
14053 (user_to_gdb_regmap): Add mapping for %cs and %ss.
14054 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
14055 * regformats/reg-x86-64.dat: Add %cs and %ss.
14056
14057 * blockframe.c (inside_entry_func): Reformat. Introduce new local
14058 variables to prevent long lines. Update comments to reflect
14059 reality.
14060
14061 2004-01-09 David Carlton <carlton@kealia.com>
14062
14063 Checked in by Elena Zannoni <ezannoni@redhat.com>.
14064 * dwarf2read.c (read_namespace): Pull out name-generating code
14065 into namespace_name. Rename previous_namespace to previous_prefix
14066 and processing_current_namespace to processing_current_prefix..
14067 (namespace_name): New function.
14068 (add_partial_symbol): Substitute uses of pdi->name with
14069 actual_name.
14070 * cp-support.h: Rename processing_current_namespace to
14071 processing_current_prefix.
14072 Update copyright year.
14073 * cp-namespace.c: Rename processing_current_namespace to
14074 processing_current_prefix.
14075 Update copyright year.
14076
14077 2004-01-09 Andrew Cagney <cagney@redhat.com>
14078
14079 * jv-valprint.c, ser-unix.c: Add missing copyright years.
14080
14081 2004-01-09 Mark Kettenis <kettenis@gnu.org>
14082
14083 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
14084 complaining.
14085 (process_one_symbol): Deal with N_PATCH stabs.
14086
14087 2004-01-09 Elena Zannoni <ezannoni@redhat.com>
14088
14089 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
14090 ifdeffed code.
14091 Update copyright year.
14092
14093 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
14094
14095 * config/pa/tm-hppa.h: Update extern declarations for
14096 hppa32_hpux_frame_saved_pc_in_sigtramp,
14097 hppa32_hpux_frame_base_before_sigtramp, and
14098 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
14099
14100 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
14101
14102 * config/pa/tm-hppah.h: Update copyright years.
14103
14104 2004-01-08 Andrew Cagney <cagney@redhat.com>
14105
14106 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
14107 (mips_o32_reg_struct_has_addr): Delete function.
14108 (mips_gdbarch_init): Update.
14109 (mips_extract_struct_value_address): Delete function.
14110
14111 2004-01-08 David Mosberger <davidm@hpl.hp.com>
14112
14113 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
14114 reality.
14115
14116 2004-01-07 Andrew Cagney <cagney@redhat.com>
14117
14118 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
14119 architecture's elf flags (when available).
14120
14121 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
14122 FPU to the start, check the MIPS FPU when looking for an old
14123 architecture.
14124 (set_mipsfpu_single_command): Update the architecture.
14125 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
14126
14127 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
14128 (mips_mask_address_p): Add "tdep" parameter.
14129 (show_mask_address, mips_addr_bits_remove): Update.
14130 (mips_dump_tdep): Update.
14131 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
14132 (MIPS_STACK_ARGSIZE): Delete macro.
14133 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
14134 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
14135 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
14136 (mips_dump_tdep): Update.
14137 (MIPS_SAVED_REGSIZE): Delete macro.
14138 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
14139 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
14140 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
14141 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
14142 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
14143 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
14144 (mips_pop_frame, return_value_location): Update.
14145 (mips_n32n64_return_value, mips_dump_tdep): Update.
14146
14147 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
14148 MIPS ABI.
14149
14150 * mips-tdep.c: Update copyright.
14151 (mips_gdbarch_init): Merge two code blocks handling the register
14152 name and number layout.
14153
14154 2004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
14155
14156 * tracepoint.c (validate_actionline): Fix segv at EOF
14157
14158 2004-01-07 Michael Chastain <mec.gnu@mindspring.com>
14159
14160 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
14161 properly for static fields.
14162
14163 2004-01-06 Jeff Johnston <jjohnstn@redhat.com>
14164 Jason Molenda <jmolenda@apple.com>
14165
14166 * disasm.c: Update copyright to include 2004.
14167 (do_mixed_source_and_assembly): For uiout asm list
14168 and tuple cleanups, initialize to null_cleanup instead of
14169 NULL and do so prior to loop. Only reset when we close off
14170 the tuple/list. Move check for whether to close off the
14171 asm tuple/list to after dump_insns call where it will be run
14172 on each loop iteration.
14173
14174 2004-01-05 Andrew Cagney <cagney@redhat.com>
14175
14176 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
14177 should be a switch case and not a label.
14178 * mips-tdep.c (mips32_next_pc): Delete unused labels
14179 "greater_equal_branch" and "less_zero_branch".
14180 * jv-valprint.c (java_print_value_fields): Delete unused label
14181 "flush_it".
14182
14183 * target.c (unpush_target): Only close a target that is in the
14184 target stack.
14185
14186 2004-01-05 Mark Kettenis <kettenis@gnu.org>
14187
14188 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
14189 address from [sp + 64] instead of %o2.
14190
14191 * frame.c (get_prev_frame): Don't try to unwind the PC. This
14192 fixes PR backtrace/1476.
14193
14194 2004-01-05 Andrew Cagney <cagney@redhat.com>
14195
14196 * libunwind-frame.h (struct frame_id): Add opaque declaration,
14197 move to start of file.
14198 * i386-tdep.h (struct regcache): Add opaque declaration.
14199 * config/ia64/nm-linux.h (struct target_ops): Add opaque
14200 declaration.
14201 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
14202 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
14203 * win32-nat.c (fake_create_process): Use ISO C style definition.
14204 * stabsread.c (define_symbol): Delete #ifndef
14205 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
14206 stabs_argument_has_addr call, macro never defined.
14207
14208 2004-01-04 Michael Chastain <mec.gnu@mindspring.com>
14209
14210 * op50-rom.c: Delete.
14211 * w89k-rom.c: Delete.
14212 * Makefile.in: Remove references.
14213
14214 2004-01-04 Mark Kettenis <kettenis@gnu.org>
14215
14216 * x86-64-tdep.c: Update copyright year.
14217 (struct amd64_register_info): Rename from x86_64_register_info.
14218 (amd64_register_info): Rename from x86_64_register_info.
14219 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
14220 (amd64_register_name): Rename from x86_64_register_name.
14221 (amd64_register_type): Rename from x86_64_register_type.
14222 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
14223 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
14224 (amd64_dwarf_reg_to_regnum): Rename from
14225 x86_64_dwarf_reg_to_regnum.
14226 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
14227 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
14228 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
14229 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
14230 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
14231 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
14232 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
14233 (amd64_frame_cache): Rename from x86_64_frame_cache.
14234 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
14235 (amd64_frame_prev_register): Rename from
14236 x86_64_frame_prev_register.
14237 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
14238 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
14239 (amd64_sigtramp_frame_cache): Rename from
14240 x86_64_sigtramp_frame_cache.
14241 (amd64_sigtramp_frame_prev_register): Rename from
14242 x86_64_sigtramp_frame_prev_register.
14243 (amd64_sigtramp_frame_unwind): Rename from
14244 x86_64_sigtramp_frame_unwind.
14245 (amd64_sigtramp_frame_sniffer): Rename from
14246 x86_64_sigtramp_frame_sniffer.
14247 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
14248 (amd64_frame_base): Rename from x86_64_frame_base.
14249 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
14250 (amd64_frame_align): Rename from x86_64_frame_align.
14251 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
14252 (amd64_regset_from_core_section): Rename from
14253 x86_64_regset_from_core_section.
14254 (x86_64_init_abi): Update comments.
14255
14256 2004-01-04 Nick Roberts <nick@nick.uklinux.net>
14257
14258 * MAINTAINERS (write after approval): Add myself.
14259
14260 2004-01-04 Mark Kettenis <kettenis@gnu.org>
14261
14262 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
14263 `float' arguments.
14264
14265 2004-01-04 Mark Kettenis <kettenis@gnu.org>
14266
14267 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
14268 such that it mentions a specific version of GCC that exhibits this
14269 bug.
14270
14271 2004-01-03 Mark Kettenis <kettenis@gnu.org>
14272
14273 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
14274 structure that has a single `float' member, store it in %f1 in
14275 addition to %f0.
14276
14277 * sparc-sol2-nat.c: Add missing '\'.
14278
14279 * sparc-tdep.c (sparc32_return_value): New function.
14280 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
14281 Remove functions.
14282 (sparc32_gdbarch_init): Set return_value, don't set
14283 extract_return_value, store_return_value, use_struct_convention
14284 and return_value_on_stack.
14285
14286 * sparc-sol2-nat.c: Add missing ')'.
14287
14288 2004-01-03 J. Brobecker <brobecker@gnat.com>
14289
14290 * infrun.c (handle_step_into_function): New function.
14291 (handle_inferior_event): Extract out some code into the new
14292 function above.
14293
14294 2004-01-03 J. Brobecker <brobecker@gnat.com>
14295
14296 * infrun.c (handle_inferior_event): Move the declaration of
14297 real_stop_pc inside the if blocks where it is used.
14298
14299 2004-01-03 Mark Kettenis <kettenis@gnu.org>
14300
14301 * sparc64-tdep.c (sparc64_16_byte_align_p)
14302 (sparc64_store_floating_fields, sparc64_store_floating_fields):
14303 Use check_typedef to get subtypes of structures and unions.
14304 (sparc64_store_return_value): Fix calculation of the appropriate
14305 offset into VALBUF when storing a structure or union.
14306 (sparc64_return_value): New function.
14307 (sparc64_use_struct_convention): Remove function.
14308 (sparc64_init_abi): Set return_value, don't set
14309 extract_return_value, store_return_value and
14310 use_struct_convention.
14311
14312 2004-01-03 Eli Zaretskii <eliz@elta.co.il>
14313
14314 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
14315 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
14316 gdb/config/alpha/xm-alphaosf.h,
14317 gdb/config/powerpc/tm-ppcle-eabi.h,
14318 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
14319 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
14320 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
14321 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
14322 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
14323 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
14324 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
14325 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
14326 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
14327 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
14328 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
14329 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
14330 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
14331 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
14332 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
14333 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
14334 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
14335 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
14336 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
14337 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
14338 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
14339 Remove lines for .cvsignore files.
14340
14341 2004-01-03 J. Brobecker <brobecker@gnat.com>
14342
14343 * infrun.c: Back out the previous change.
14344
14345 2004-01-03 Mark Kettenis <kettenis@gnu.org>
14346
14347 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
14348 sparc-*-sunos4* to the list of REMOVED configurations.
14349
14350 * configure.tgt: Add back sparc-*-vxworks*.
14351 * remote-vxsparc.c: Remove all includes except for "defs.h",
14352 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
14353 Include "sparc-tdep.h".
14354 (SPARC_R_G1): New define.
14355 (vxsparc_gregset): New variable.
14356 (ext_format_sparc): Remove extern declaration.
14357 (vx_read_register): Rewrite to use sparc32_supply_gregset and
14358 sparc32_supply_fpregset.
14359 (vx_write_register): Rewrite to use sparc32_collect_gregset,
14360 sparc_collect_rwindow and sparc32_collect_fpregset.
14361 * config/sparc/tm-vxworks.h: New file, based on recently removed
14362 tm-vxsparc.h.
14363 * config/sparc/vxworks.mt: New file, based on recently removed
14364 vxworks.mt.
14365
14366 2004-01-03 J. Brobecker <brobecker@gnat.com>
14367
14368 * infrun.c (handle_step_into_function): New function.
14369 (handle_inferior_event): Extract out some code into the new
14370 function above.
14371
14372 2004-01-02 Mark Kettenis <kettenis@gnu.org>
14373
14374 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
14375 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
14376 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
14377 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
14378 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
14379 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
14380 (sparc_nat_h): New variable.
14381 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
14382 (tm-sun4os4.h): Remove dependency.
14383 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
14384 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
14385 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
14386 sparc-tdep.o): Update dependencies.
14387 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
14388 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
14389 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
14390 dependencies.
14391 * configure.host: Remove existing sparc-*-lynxos*,
14392 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
14393 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
14394 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
14395 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
14396 triplets.
14397 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
14398 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
14399 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
14400 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
14401 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
14402 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
14403 sparc64-*-solaris2* and sparc64-*-* triplets.
14404 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
14405 "symtab.h" and "objfiles.h".
14406 (BIAS): Remove define.
14407 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
14408 (X_DISP19): Remove macros.
14409 (sparc_fetch_instruction): Remove function.
14410 (struct gdbarch_tdep): Remove definition.
14411 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
14412 (sparc_breakpoint_from_pc): Remove function.
14413 (struct sparc64_frame_cache): Remove definition.
14414 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
14415 sparc64_unwind_pc): Remove functions.
14416 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
14417 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
14418 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
14419 (sparc64_frame_cache): Change return type to `struct
14420 sparc_frame_cache *'. Simply call sparc_frame_cache.
14421 (sparc64_frame_this_id, sparc64_frame_prev_register,
14422 sparc64_frame_base_address): Use `struct sparc_frame_cache'
14423 instead of `struct sparc64_frame_cache.
14424 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
14425 sparc_analyze_control_transfer, sparc_software_single_step,
14426 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
14427 _initialize_sparc64_tdep): Remove functions.
14428 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
14429 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
14430 macros.
14431 (sparc64_supply_gregset, sparc64_collect_gregset,
14432 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
14433 (sparc64_init_abi): New function.
14434 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
14435 inclusion guard. Include "sparc-tdep.h".
14436 (BIAS): Define.
14437 (r_tstate_offset, r_fprs_offset): New defines.
14438 (enum sparc_regnum): Remove defenition.
14439 (enum sparc64_regnum): Reformat.
14440 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
14441 (sparc64_init_abi, sparc64_supply_gregset,
14442 sparc64_collect_gregset, sparc64_supply_fpregset,
14443 sparc64_collect_fpregset): New prototypes.
14444 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
14445 Add extern declarations.
14446 (sparc64_sol2_init_abi): New prototype.
14447 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
14448 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
14449 prototypes.
14450 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
14451 "sparnbsd-nat.h".
14452 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
14453 functions.
14454 (_initialize_sparc64fbsd_nat): Remove initialization of
14455 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
14456 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
14457 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
14458 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
14459 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
14460 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
14461 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
14462 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
14463 (sparc64fbsd_r_y_offset): Remove variables.
14464 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
14465 Make static and const.
14466 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
14467 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
14468 functions.
14469 (sparc64fbsd_gregset): New variable.
14470 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
14471 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
14472 and sparc64_supply_fpregset.
14473 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
14474 (sparc64fbsd_sigtramp_frame_this_id)
14475 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
14476 (sparc64fbsd_sigtramp_frame_unwind): New variable.
14477 (sparc64fbsd_sigtramp_frame_sniffer): New function.
14478 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
14479 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
14480 * sparcnbsd-tdep.c: Update copyright year. Include
14481 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
14482 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
14483 "value.h" and "sparcnbsd-tdep.h".
14484 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
14485 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
14486 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
14487 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
14488 defines.
14489 (sparcnbsd_gregset): New variable.
14490 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
14491 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
14492 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
14493 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
14494 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
14495 variables.
14496 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
14497 (sparc32nbsd_sigcontext_frame_this_id)
14498 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
14499 (sparc32nbsd_sigcontext_frame_unwind): New variable.
14500 (sparc32nbsd_sigtramp_frame_sniffer): New function.
14501 (sparcnbsd_get_longjmp_target_32,
14502 sparcnbsd_get_longjmp_target_64): Remove functions.
14503 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
14504 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
14505 sparcnbsd_init_elf): Remove.
14506 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
14507 (sparcnbsd_elf_init_abi): New functions.
14508 (_initialize_sparcnbsd_tdep): New prototype.
14509 (_initialize_sparnbsd_tdep): Update.
14510 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
14511 corelow.o. Add sparc64-nat.o and sparc-nat.o.
14512 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
14513 * config/sparc/linux.mh: Update comment.
14514 (XM_FILE, HOST_IPC): Remove variables.
14515 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
14516 sparc-linux-nat.o.
14517 * config/sparc/linux.mt: Update comment.
14518 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
14519 * config/sparc/nbsd.mt: Reformat.
14520 * config/sparc/nbsd64.mh: Update comment.
14521 (NATDEPFILES): Add sparc-nat.o.
14522 * config/sparc/nbsd64.mt: Update comment.
14523 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
14524 (TM_FILE): Set to tm-nbsd.h.
14525 * config/sparc/nbsdelf.mh: Update comment.
14526 (NATDEPFILES): Add sparc-nat.o.
14527 (XM_FILE): Delete.
14528 * config/sparc/nbsdaout.mh: Update comment.
14529 (NATDEPFILES): Add sparc-nat.o
14530 (XM_FILE): Delete.
14531 * config/sparc/nm-linux.h: Update copyright year. Don't include
14532 "config/nm-svr4.h" and "solib.h". Add protection against multiple
14533 inclusion.
14534 (KERNEL_U_SIZE): Remove define.
14535 (kernel_u_size): Remove prototype.
14536 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
14537 * config/sparc/nm-nbsd.h: Update copyright. Don't include
14538 "regcache.h".
14539 (CHILD_PREPARE_TO_STORE): Remove define.
14540 * config/sparc/nm-nbsdaout.h: Tweak some comments.
14541 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
14542 sparcnbsd-nat.c: Rewrite files.
14543 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
14544 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
14545 sparcnbsd-tdep.h: Remove files.
14546 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
14547 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
14548 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
14549 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
14550 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
14551 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
14552 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
14553 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
14554 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
14555 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
14556 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
14557 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
14558 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
14559 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
14560 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
14561 * config/sparc/linux64.mh, config/sparc/linux64.mt,
14562 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
14563 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
14564 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
14565
14566 2004-01-02 Andrew Cagney <cagney@redhat.com>
14567
14568 From 2003-12-18 Kazuhiro Inaoka:
14569 * configure.host: Add m32r-linux target.
14570
14571 2004-01-02 Michael Chastain <mec.gnu@mindspring.com>
14572
14573 * top.c (print_gdb_version): Update year to 2004.
14574
14575 2004-01-02 Mark Mitchell <mark@codesourcery.com>
14576
14577 * MAINTAINERS: Add myself to the write-after-approval category.
14578
14579 2004-01-02 Daniel Jacobowitz <drow@mvista.com>
14580
14581 From Bernardo Innocenti <bernie@develer.com>:
14582 * configure.tgt: Add uClinux target.
14583
14584 2004-01-02 Andrew Cagney <cagney@redhat.com>
14585
14586 * utils.c (do_my_cleanups): Make static, add forward declaration.
14587 * defs.h (do_my_cleanups): Delete declaration.
14588
14589 2004-01-02 Eli Zaretskii <eliz@elta.co.il>
14590
14591 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
14592 bfd/ChangeLog-0203.
14593
14594 2004-01-02 Mark Kettenis <kettenis@gnu.org>
14595
14596 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
14597 in <machine/reg.h>.
14598 * configure, config.in: Regenerate.
14599
14600 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
14601 tui/ChangeLog-1998-2003.
14602 \f
14603 Local Variables:
14604 mode: change-log
14605 left-margin: 8
14606 fill-column: 74
14607 version-control: never
14608 End:
This page took 0.328777 seconds and 4 git commands to generate.