* config/m68k/nbsdaout.mh (NAT_FILE): Set to solib.h instead of
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2004-11-29 Mark Kettenis <kettenis@gnu.org>
2
3 * config/m68k/nbsdaout.mh (NAT_FILE): Set to solib.h instead of
4 tm-solib.h.
5 * config/m68k/obsd.mh (NAT_FILE): Likewise.
6
7 * sparc-tdep.h (sparc32nbsd_elf_init_abi): New prototype.
8 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Make global.
9 * sparcobsd-tdep.c (sparc32obsd_init_abi): Call
10 sparc32nbsd_elf_init_abi. Remove duplicate code.
11
12 * config/sparc/nbsdaout.mh (NAT_FILE): Set to solib.h.
13 * config/sparc/nbsdelf.mh (NAT_FILE): Remove variable.
14 * config/sparc/nm-nbsd.h: Remove file.
15 * config/sparc/nm-nbsdaout.h: Remove file.
16
17 * sparc-nat.c (inf_ptrace_xfer_partial): New variable.
18 (sparc_xfer_partial): New function.
19 (sparc_target): Save value of to_xfer_partial from ptrace vector.
20 Set to_xfer_partial.
21
22 * fork-child.c (fork_inferior): Fork instead of vfork if
23 PRE_TRACE_FUN is non-null.
24
25 2004-11-24 Fred Fish <fnf@specifixinc.com>
26
27 * rs6000-tdep.c (skip_prologue): Use line table info to skip over
28 compiler generated function calls made as part of a prologue.
29
30 2004-11-23 Mark Kettenis <kettenis@gnu.org>
31
32 * inf-ttrace.c: New file.
33 * inf-ttrace.h: New file.
34 * hppa-hpux-nat.c [HAVE_TTRACE]: Include <sys/ttrace>.
35 Include "inf-ttrace.h".
36 (ss_mpsfu_high): Define to ss_tlsp if necessary.
37 (hppa_hpux_fetch_register, hppa_hpux_store_register): Use
38 ptid_get_pid instead of PIDGET. Modify to handle both ttrace and
39 ptrace systems.
40 (_initialize_hppa_hpux_nat) [HAVE_TTRACE]: Call inf_ttrace_traget
41 instead of inf_ptrace_target.
42 * config/pa/hpux.mh (NATDEPFILES): Add inf-ttrace.o.
43 * Makefile.in (inf_ttrace_h): New variable.
44 (hppa-hpux-nat.o): Update dependency.
45 (inf-ttrace.o): New dependency.
46 (ALLDEPFILES): Add inf-ptrace.c and inf-ttrace.c.
47
48 2004-11-23 Randolph Chung <tausq@debian.org>
49
50 * arch-utils.c (generic_instruction_nullified): New.
51 * arch-utils.h (generic_instruction_nullified): New.
52 * gdbarch.sh (instruction_nullified): New method.
53 * gdbarch.c: Regenerate.
54 * gdbarch.h: Regenerate.
55 * infrun.c (INSTRUCTION_NULLIFIED): Delete.
56 (handle_inferior_event): Replace INSTRUCTION_NULLIFIED with calls to
57 new gdbarch method.
58 * config/pa/tm-hppa.h (INSTRUCTION_NULLIFIED): Delete definition.
59 * hppa-tdep.c (hppa_instruction_nullified): Remove prototype and make
60 static. Rewrite to work directly off the passed regcache.
61 (hppa_gdbarch_init): Set instruction_nullified method.
62
63 2004-11-23 Joel Brobecker <brobecker@gnat.com>
64
65 * sparc-tdep.c (sparc_is_unimp_insn): New function.
66 (sparc32_frame_cache): For functions where there is no debugging
67 information to help us determine whether it's a struct-return
68 function or not, fallback on checking whether the instruction
69 at the return address is an "unimp" instruction or not.
70
71 2004-11-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
72
73 * MAINTAINERS: Add myself to write after approval section.
74
75 * hppa-hpux-nat.c (child_suppress_run): Add variable to allow
76 hpux-thread.c to suppress children from running.
77 (hppa_hpux_child_can_run): New function.
78 (_initialize_hppa_hpux_nat): Use hppa_hpux_child_can_run.
79 * hpux-thread.c: Include string.h and hppa-tdep.h.
80 (FLAGS_REGNUM, SP_REGNUM, PC_REGNUM): Rename to HPPA_FLAGS_REGNUM,
81 HPPA_SP_REGNUM and HPPA_PCOQ_HEAD_REGNUM, respectively.
82 (hpux_thread_store_registers): Replace deprecated_registers with
83 calls to regcache_raw_read.
84 * config/pa/hpux11.mh, config/pa/hpux11w.mh: Delete HOST_IPC.
85
86 2004-11-21 Mark Kettenis <kettenis@gnu.org>
87
88 * sparc64fbsd-nat.c: Update copyright year.
89 (_initialize_sparc64fbsd_nat): Construct and add target vector.
90 * config/sparc/fbsd.mh (NATDEPFILES): Remove infptrace.o,
91 inftarg.o.
92
93 2004-11-21 Daniel Jacobowitz <dan@debian.org>
94
95 * sparc-tdep.c (sparc_software_single_step): Handle stepping to NULL.
96
97 2004-11-21 Daniel Jacobowitz <dan@debian.org>
98
99 * linux-nat.c (my_waitpid): New function.
100 (linux_test_for_tracefork): Make more robust and verbose. Take
101 an ORIGINAL_PID argument and test for PTRACE_SETOPTIONS first.
102 (linux_supports_tracefork, linux_supports_tracevforkdone): Take a PID
103 argument. Update calls to linux_test_for_tracefork.
104 (linux_enable_event_reporting, child_follow_fork)
105 (child_insert_fork_catchpoint, child_insert_vfork_catchpoint)
106 (child_insert_exec_catchpoint): Update calls to
107 linux_supports_tracefork and linux_supports_tracevforkdone.
108
109 2004-11-21 Daniel Jacobowitz <dan@debian.org>
110
111 * valarith.c (value_subscript): Copy VALUE_FRAME_ID.
112 (value_subscripted_rvalue): Likewise.
113 * valops.c (search_struct_field, value_slice): Likewise.
114
115 2004-11-21 Mark Kettenis <kettenis@gnu.org>
116
117 * inf-ptrace.c: Don't include "regcache.h" and "gdbcmd.h".
118 Reorder includes a bit. Fix comment.
119 * Makefile.in (inf-ptrace.o): Update dependencies.
120
121 2004-11-21 Andreas Schwab <schwab@suse.de>
122
123 * m68klinux-tdep.c: Include "glibc-tdep.h" and "solib-svr4.h".
124 (m68k_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
125 svr4_ilp32_fetch_link_map_offsets and gdbarch_skip_solib_resolver
126 to glibc_skip_solib_resolver.
127 * config/m68k/linux.mt (TDEPFILES): Add glibc-tdep.o. Remove
128 solib-legacy.o.
129 * Makefile.in (m68klinux-tdep.o): Update dependencies.
130
131 2004-11-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
132
133 * infttrace.h (ttrace_write_reg_64): Add prototype.
134 * hppah-nat.c (store_inferior_registers): Fix warning from ambiguous
135 expression.
136 (store_inferior_registers): Correct formatting. Replace uses of
137 deprecated_registers with calls to regcache_raw_read,
138 regcache_raw_write_part and regcache_raw_read_part.
139
140 2004-11-21 Mark Kettenis <kettenis@gnu.org>
141
142 * config/pa/hppahpux.mh: Remove file.
143 * config/pa/hpux1020.mh: Remove file.
144
145 2004-11-20 Andreas Schwab <schwab@suse.de>
146
147 * configure.host: Set host floatformat for m68k.
148
149 2004-11-20 Eli Zaretskii <eliz@gnu.org>
150
151 * config/djgpp/fnchange.lst: Resolve file-name clash between
152 hppa-hpux-tdep.c and the new hppa-hpux-nat.c.
153
154 2004-11-20 Mark Kettenis <kettenis@gnu.org>
155
156 * hppa-hpux-nat.c: New file.
157 * config/pa/hpux.mh (NATDEPFILES): New file.
158 * Makefile.in (ALLDEPFILES): Add hppa-hpux-nat.c.
159 (hppa-hpux-nat.o): New dependency.
160 * configure.host: Remove hppa*-*-hpux10.20.
161 (hppa*-*-hpux*, hppa*-*-hiux*): Set gdb_host to hpux.mh.
162
163 * inf-ptrace.c: Fix coding style.
164
165 * gdb_ptrace.h [PTRACE_TYPE_ARG5] (ptrace): New macro.
166 * infptrace.c (call_ptrace): Simply call ptrace with four
167 arguments.
168
169 * dbxread.c (process_one_symbol): Fix a few coding standard
170 issues. Improve code formatting.
171
172 * dbxread.c: Include "gdb_string.h".
173 (record_minimal_symbol, read_ofile_symtab): Replace
174 DEPRECATED_STREQ and DEPRECATED_STREQN with strcmp and strncmp.
175 * Makefile.in (dbxread.o): Update dependencies.
176
177 * dwarf2-frame.c (read_encoded_value): Correctly calculate number
178 of bytes read for aligned LEB128 encodings.
179
180 2004-11-19 Mark Kettenis <kettenis@gnu.org>
181
182 * bsd-kvm.c (bsd_kvm_pcb_cmd): Cast return value from
183 parse_and_eval_address to u_long before converting it to a pointer
184 type.
185 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Change type of
186 ps_strings from int to u_long.
187 * i386obsd-nat.c (_initialize_i386obsd_nat): Cast _ps.val to
188 u_long instead of CORE_ADDR.
189
190 2004-11-18 Mark Kettenis <kettenis@gnu.org>
191
192 * dbxread.c (process_one_symbol): Do not adjust address of first
193 N_SLINE stab for a function for code generated by non-GCC
194 compilers.
195
196 2004-11-18 Kevin Buettner <kevinb@redhat.com>
197
198 * solib-null.c: New file.
199
200 2004-11-17 Andrew Cagney <cagney@gnu.org>
201
202 * MAINTAINERS: Drop MIPS and remote.
203
204 2004-11-15 Andrew Cagney <cagney@gnu.org>
205
206 * findvar.c (value_of_register): Set the frame ID.
207 * value.c (value_primitive_field): Copy the frame ID.
208 * valops.c (value_assign): Simplify lval_register case, there's
209 always a frame.
210
211 2004-11-14 Daniel Jacobowitz <dan@debian.org>
212
213 * Makefile.in (mips-linux-tdep.o): Update dependencies.
214 * mips-linux-tdep.c: Include "regcache.h".
215 (fill_fpregset, mips64_fill_fpregset): Use regcache_raw_collect.
216
217 2004-11-14 Daniel Jacobowitz <dan@debian.org>
218
219 * Makefile.in (linux-thread-db.o): Fix typo in last change.
220
221 2004-11-14 Daniel Jacobowitz <dan@debian.org>
222
223 * linux-thread-db.c: New file, renamed from thread-db.c.
224 * thread-db.c: Remove.
225 * Makefile.in (linux-thread-db.o): Rename from thread-db.o rule.
226 * config/alpha/alpha-linux.mh (NATDEPFILES): Rename thread-db.o
227 to linux-thread-db.o.
228 * config/arm/linux.mh (NATDEPFILES): Likewise.
229 * config/i386/linux.mh (NATDEPFILES): Likewise.
230 * config/i386/linux64.mh (NATDEPFILES): Likewise.
231 * config/ia64/linux.mh (NATDEPFILES): Likewise.
232 * config/m32r/linux.mh (NATDEPFILES): Likewise.
233 * config/m68k/linux.mh (NATDEPFILES): Likewise.
234 * config/mips/linux.mh (NATDEPFILES): Likewise.
235 * config/pa/linux.mh (NATDEPFILES): Likewise.
236 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
237 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
238 * config/s390/s390.mh (NATDEPFILES): Likewise.
239 * config/sparc/linux.mh (NATDEPFILES): Likewise.
240 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
241
242 2004-11-13 Andrew Cagney <cagney@gnu.org>
243
244 * config/i386/i386lynx.mh: Delete file.
245 * config/i386/i386lynx.mt: Delete file.
246 * Makefile.in (ALLDEPFILES, i386ly-tdep.o): Remove i386ly-tdep.c.
247 * i386ly-tdep.c: Delete.
248
249 * config/tm-lynx.h: Delete, inline contents ...
250 * config/rs6000/tm-rs6000ly.h: ... here.
251
252 * config/tm-sysv4.h: Delete file, inlining contents.
253 * config/ia64/tm-aix.h (SKIP_TRAMPOLINE_CODE): Define.
254 * config/tm-linux.h (SKIP_TRAMPOLINE_CODE): Define.
255 * config/tm-nto.h (SKIP_TRAMPOLINE_CODE): Define.
256
257 * regcache.h (deprecated_register_valid): Delete.
258 (deprecated_registers): Delete.
259 * regcache.c (deprecated_register_valid): Delete.
260 (deprecated_registers): Delete.
261 (deprecated_read_register_byte, _initialize_regcache)
262 (deprecated_write_register_bytes, build_regcache): Update.
263 * config/powerpc/ppc-sim.mt (TDEPFILES): Remove ppc-bdm.o and
264 remote-sds.o.
265 * config/powerpc/ppc-eabi.mt (TDEPFILES): Ditto.
266 * config/mips/embed.mt (TDEPFILES): Remove remote-mips.o.
267
268 * NEWS: List h8300*-*-*, mcore-*-*, mn10300-*-*, ns32k-*-*, and
269 v850-*-* under removed.
270 * configure.host: Delete ns32k-*-netbsd*.
271 * configure.tgt: Delete h8300-*-*, mcore*-*-*, mn10300-*-*,
272 ns32k-*-netbsd*, and v850*-*-*.
273 * MAINTAINERS: Mark h8300, mcore, mn10300, ns32k, v850 as
274 "Deleted"
275 * config/h8300/tm-h8300.h, config/h8300/h8300.mt: Delete.
276 * h8300-tdep.c, config/mcore/mcore.mt, mcore-rom.c: Delete.
277 * mcore-tdep.c, config/mn10300/mn10300.mt: Delete.
278 * mn10300-tdep.c, config/ns32k/nbsdaout.mh: Delete.
279 * config/ns32k/nbsdaout.mt, config/ns32k/nm-nbsd.h: Delete.
280 * config/ns32k/nm-nbsdaout.h, config/ns32k/tm-ns32k.h: Delete.
281 * ns32knbsd-nat.c, ns32knbsd-tdep.c, ns32k-tdep.c: Delete.
282 * ns32k-tdep.h, config/v850/v850.mt, v850ice.c: Delete.
283 * v850-tdep.c: Delete.
284
285 2004-11-13 Joel Brobecker <brobecker@gnat.com>
286
287 * irix5-nat.c (fetch_core_registers): Replace use of
288 deprecated_registers by equivalent code.
289
290 2004-11-13 Joel Brobecker <brobecker@gnat.com>
291
292 * irix5-nat.c (fill_gregset): Replace use of deprecated_registers
293 with equivalent code.
294 (fill_fpregset): Likewise.
295
296 2004-11-13 Andrew Cagney <cagney@gnu.org>
297
298 * MAINTAINERS: Do not list "Deleted" architectures.
299
300 * configure.tgt: Delete i[34567]86-*-vxworks*, m68*-netx-*,
301 m68*-*-vxworks*, mips*-*-vxworks*, powerpc-*-vxworks*, and
302 sparc-*-vxworks*.
303 * NEWS: Mention that vxworks was deleted.
304 * config/m68k/tm-vx68.h, config/mips/tm-vxmips.h: Delete.
305 * config/powerpc/tm-vxworks.h, config/tm-vxworks.h: Delete.
306 * config/i386/vxworks.mt, config/m68k/vxworks68.mt: Delete.
307 * config/mips/vxmips.mt, config/powerpc/vxworks.mt: Delete.
308 * config/sparc/vxworks.mt, vx-share/dbgRpcLib.h: Delete.
309 * vx-share/ptrace.h, vx-share/regPacket.h: Delete.
310 * vx-share/vxTypes.h, vx-share/vxWorks.h: Delete.
311 * vx-share/wait.h, vx-share/xdr_ld.c: Delete.
312 * vx-share/xdr_ld.h, vx-share/xdr_ptrace.c: Delete.
313 * vx-share/xdr_ptrace.h, vx-share/xdr_rdb.c: Delete.
314 * vx-share/xdr_rdb.h, remote-vxsparc.c: Delete.
315 * remote-vxmips.c, remote-vx.c: Delete.
316 * remote-vx68.c: Delete.
317 * config/m68k/tm-os68k.h: Remove reference to VxWorks.
318 * config/m68k/os68k.mt, ada-lang.h: Ditto.
319 * Makefile.in (HFILES_NO_SRCDIR, ALLDEPFILES, remote-vx68.o)
320 (remote-vx.o, remote-vxmips.o, remote-vxsparc.o): Delete vx files.
321
322 2004-11-13 Eli Zaretskii <eliz@gnu.org>
323
324 * config/i386/xm-go32.h: Don't include fopen-bin.h.
325 Don't define CRLF_SOURCE_FILES and DIRNAME_SEPARATOR.
326
327 * source.c (OPEN_MODE, FDOPEN_MODE): Remove the definitions in the
328 branch that doesn't define CRLF_SOURCE_FILES; always use
329 binary-mode open.
330 (print_source_lines_base, forward_search_command)
331 (reverse_search_command): Enable the code that accepts DOS-style
332 CRLF line endings on all platforms (this removes the need for
333 CRLF_SOURCE_FILES).
334
335 * defs.h: Fix wording of the comment before FOPEN_RB.
336 (DIRNAME_SEPARATOR) [__MSDOS__]: Define to ';'.
337
338 * config/djgpp/fnchange.lst: Group renames for opcode directory
339 together.
340
341 * config/djgpp/djconfig.sh: Replace file names that don't exist
342 anymore with existing files, for checking the unpacked
343 distribution.
344
345 * config/djgpp/config.sed (am_cv_exeext, lt_cv_sys_max_cmd_len):
346 Export pre-cooked values in configure-* targets that begin with
347 "@test -f stage_last".
348
349 2004-11-12 Andrew Cagney <cagney@gnu.org>
350
351 * defs.h (enum lval_type): Delete lval_reg_frame_relative.
352 * value.h (struct value): Update comment.
353 * valops.c (value_assign): Fold lval_reg_fame_relative into
354 lval_register.
355 * findvar.c (value_from_register, locate_var_value): Ditto.
356
357 2004-11-12 Randolph Chung <tausq@debian.org>
358
359 * config/tm/tm-hppa.h (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
360 * parse.c (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
361 (write_exp_msymbol): Remove conditional check for symbols starting
362 with $. Update comments.
363
364 2004-11-12 Randolph Chung <tausq@debian.org>
365
366 * pa64solib.c (pa64_solib_thread_start_addr): Rename from
367 so_lib_thread_start_addr.
368 * pa64solib.h (so_list): Forward declare.
369 (pa64_solib_thread_start_addr): Prototype.
370 * somsolib.c (SHL_LOAD, SHL_UNLOAD): Define if not already defined.
371 (no_shared_libraries): Remove.
372 (som_solib_thread_start_addr): Rename from so_lib_thread_start_addr.
373 * somsolib.h (som_solib_thread_start_addr): Likewise; prototype.
374 * hpread.c (hpread_process_one_debug_symbol): Use either the som or
375 the elf solib handler to find the start address.
376
377 * config/pa/hppahpux.mh (NATDEPFILES): Move target-specific support
378 files to the target makefile.
379 * config/pa/hpux1020.mh (NATDEPFILES): Likewise.
380 * config/pa/hpux11.mh (NATDEPFILES): Likewise.
381 * config/pa/hpux11w.mh (NATDEPFILES): Likewise.
382
383 * config/pa/hppa64.mt (TDEPFILES): Put target-specific support
384 files for symbol reading and shared library handling here.
385 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
386 (PA_SOM_ONLY): Define so we can build a 32-bit SOM only target
387 without bringing in 64-bit support.
388
389 2004-11-12 Andrew Cagney <cagney@gnu.org>
390
391 * sparc-tdep.c: Replace VALUE_TYPE with value_type.
392 * v850-tdep.c, sparc64-tdep.c, sh-tdep.c: Ditto.
393 * sh64-tdep.c, s390-tdep.c, mcore-tdep.c: Ditto.
394 * h8300-tdep.c, arm-linux-tdep.c, amd64-tdep.c: Ditto.
395 * hppa-tdep.c, mips-tdep.c, m88k-tdep.c: Ditto.
396 * m68hc11-tdep.c, m32r-tdep.c, ia64-tdep.c: Ditto.
397 * frv-tdep.c, cris-tdep.c, avr-tdep.c, alpha-tdep.c: Ditto.
398
399 Merge VALUE_REGNO and VALUE_FRAME_REGNUM into VALUE_REGNUM.
400 * value.h (VALUE_REGNO, VALUE_FRAME_REGNUM): Delete.
401 (VALUE_REGNUM): Define.
402 (struct value): Delete location.regnum, rename "regno" to
403 "regnum".
404 * value.c, valops.c, valarith.c, findvar.c: Update.
405
406 * value.h (VALUE_TYPE, VALUE_NEXT, VALUE_OFFSET, VALUE_BITSIZE)
407 (VALUE_BITPOS): Delete.
408 (value_type, value_offset, value_bitsize, value_bitpos): Declare.
409 * value.c (value_type, value_offset, value_bitpos)
410 (value_bitsize): New functions. Update references.
411 * arm-tdep.c, gnu-v3-abi.c, hpacc-abi.c, gnu-v2-abi.c: Update.
412 * f-valprint.c, cp-valprint.c, c-valprint.c: Update.
413 * ada-valprint.c, typeprint.c, scm-valprint.c, scm-exp.c: Update.
414 * p-valprint.c, jv-valprint.c, jv-lang.c, varobj.c: Update.
415 * objc-lang.c, ada-lang.c, std-regs.c, stack.c: Update.
416 * infcall.c, linespec.c, printcmd.c, valarith.c: Update.
417 * valops.c, eval.c, findvar.c, breakpoint.c: Update.
418 * tracepoint.c, ax-gdb.c, mi/mi-main.c, cli/cli-dump.c:
419 * rs6000-tdep.c, ppc-sysv-tdep.c: Update.
420
421 2004-11-12 Andrew Cagney <cagney@gnu.org>
422
423 * cris-tdep.c (cris_register_offset): Delete, never called.
424 (cris_spec_reg_applicable): Delete cris_ver_sim.
425 * MAINTAINERS: List d10v as OBSOLETE.
426 * rdi-share/host.h (FOPEN_WB): #ifdef 0 out definitions of
427 FOPEN_WB et.al., defined by "fopen-bin.h".
428
429 2004-11-12 Randolph Chung <tausq@debian.org>
430
431 * hppa-tdep.c (hppa_skip_permanent_breakpoint): Move definition ...
432 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): ... to here.
433 * config/pa/tm-hppa.h (SKIP_PERMANENT_BREAKPOINT): Move definition ...
434 * config/pa/tm-hppah.h (SKIP_PERMANENT_BREAKPOINT): ... to here.
435
436 2004-11-12 Mark Kettenis <kettenis@jive.nl>
437
438 * tui/tui-io.c: Don't include "terminal.h".
439 * Makefile.in (tui-io.o): Update dependencies.
440
441 2004-11-12 Kei Sakamoto <sakamoto.kei@renesas.com>
442
443 * Makefile.in (m32r-linux-tdep.o): Update dependencies.
444 * m32r-linux-tdep.c (m32r_linux_init_abi): Call
445 set_gdbarch_regset_from_core_section for core file support.
446 (m32r_linux_supply_gregset, m32r_linux_regset_from_core_section):
447 New functions.
448
449 2004-11-11 Randolph Chung <tausq@debian.org>
450
451 * hppa-tdep.c (skip_prologue_hard_way): Make static, add
452 stop_after_branch parameter and use it to determine if we should look
453 at the delay slot of the first branch insn to find prologue insns.
454 (hppa_skip_prologue): Update comment and call to skip_prologue_hard_way.
455 (hppa_frame_cache): Likewise.
456
457 2004-11-11 Randolph Chung <tausq@debian.org>
458
459 * hppa-tdep.c (hppa_frame_cache): Properly handle the frame pointer
460 register so that it can be unwound from anywhere in the prologue.
461
462 2004-11-10 msnyder <msnyder@redhat.com>
463
464 * rs6000-tdep.c (skip_prologue): After saving lr_offset,
465 must invalidate lr_reg (so we don't try to save it again).
466 Ditto for cr_offset and cr_reg.
467
468 2004-11-05 Jon Beniston <jon@beniston.com>
469
470 Committed by Andrew Cagney.
471 * remote.c (putpkt_binary) Fix PR gdb/1806. Send an ACK
472 when an unexpected packet is received, as the target stubs
473 continually retransmit the same packet until ACKed.
474
475 2004-11-10 Randolph Chung <tausq@debian.org>
476
477 * frame.c (get_prev_frame): Use get_frame_type to retrieve the
478 frame's type.
479
480 2004-11-10 Randolph Chung <tausq@debian.org>
481
482 * blockframe.c (inside_entry_func): Move to .....
483 * frame.c (inside_entry_func): ... here, and make static.
484 (backtrace_past_entry): New flag.
485 (get_prev_frame): Stop backtrace at the entry function if enabled
486 by flag. Update comments.
487 (_initialize_frame): Add command to set backtrace_past_entry flag.
488 * defs.h (inside_entry_func): Remove prototype.
489
490 2004-11-10 Mark Kettenis <kettenis@gnu.org>
491
492 * dwarf2read.c: Fix formatting.
493
494 2004-11-10 Andrew Cagney <cagney@gnu.org>
495
496 * value.h (COERCE_REF, COERCE_ARRAY, COERCE_NUMBER, COERCE_ENUM)
497 (coerce_ref, coerce_array, coerce_number, coerce_enum): Replace
498 macros with function declarations.
499 * value.c (coerce_ref, coerce_array, coerce_number)
500 (coerce_enum): New functions.
501 (value_as_long, value_as_address): Update.
502 * ada-lang.c (ada_coerce_ref, ada_value_binop)
503 (ada_evaluate_subexp, ada_value_assign, ada_value_struct_elt): Update.
504 * jv-lang.c (evaluate_subexp_java): Update.
505 * valarith.c (value_less, value_neg, value_complement)
506 (value_binop, value_add, value_subscript, value_x_binop)
507 (value_logical_not, value_sub): Update.
508 * valops.c (check_field, value_struct_elt, value_ind)
509 (value_find_oload_method_list, value_cast, value_assign): Update.
510 * eval.c (evaluate_subexp_standard): Update.
511
512 2004-11-10 Mark Kettenis <kettenis@gnu.org>
513
514 * mips-tdep.c (mips32_relative_offset): Change return type to
515 LONGEST, change argument type to ULONGEST. Fix sign-extension.
516
517 2004-11-10 Randolph Chung <tausq@debian.org>
518
519 * hppa-tdep.c (hppa32_register_name, hppa64_register_name): Make static.
520 (hppa32_push_dummy_call, hppa64_push_dummy_call): Likewise.
521 (hppa_fetch_pointer_argument): Likewise.
522 (hppa_frame_cache): Use safe_frame_unwind_memory instead of
523 deprecated_read_memory_nobpt.
524 (_initialize_hppa_tdep): Replace deprecated_add_show_from_set/
525 add_set_cmd sequence with add_setshow_boolean_cmd.
526
527 2004-11-09 Andrew Cagney <cagney@gnu.org>
528
529 GDB 6.3 released from GDB 6.3 branch.
530
531 2004-11-09 Andrew Cagney <cagney@gnu.org>
532
533 * values.c: Rename to ...
534 * value.c: ..., new file.
535 * Makefile.in: Update.
536
537 2004-11-09 Daniel Jacobowitz <dan@debian.org>
538
539 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Correct allocated
540 size.
541
542 2004-11-09 Andrew Cagney <cagney@gnu.org>
543
544 * TODO: Delete.
545
546 * value.h (struct value): Delete field bfd_section.
547 (VALUE_BFD_SECTION): Delete macro.
548 (COERCE_REF): Update.
549 (value_at, value_at_lazy): Delete asection parameter.
550 * printcmd.c (print_formatted, x_command): Update.
551 (do_examine): Delete asection parameter.
552 (next_section): Delete variable.
553 * valops.c (value_cast, value_at, value_at_lazy)
554 (value_coerce_function, value_addr, value_ind, value_string)
555 (find_rt_vbase_offset, value_full_object): Update.
556 * hpacc-abi.c (hpacc_virtual_fn_field)
557 (hpacc_value_rtti_type): Update.
558 * gnu-v3-abi.c (gnuv3_rtti_type, gnuv3_virtual_fn_field)
559 (gnuv3_baseclass_offset): Update.
560 * f-valprint.c (f_val_print): Update.
561 * c-valprint.c (c_val_print): Update.
562 * p-valprint.c (pascal_val_print): Update.
563 * jv-valprint.c (java_value_print): Update.
564 * jv-lang.c (java_class_from_object, evaluate_subexp_java): Update.
565 * ada-lang.c (ada_value_primitive_packed_val)
566 (ada_evaluate_subexp): Update.
567 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Update.
568 * expprint.c (print_subexp_standard): Update.
569 * infcall.c (call_function_by_hand): Update.
570 * valarith.c (value_add): Update.
571 * eval.c (evaluate_subexp_standard): Update.
572 * values.c (allocate_value, value_copy, value_static_field): Update.
573 * findvar.c (read_var_value, locate_var_value): Update.
574
575 2004-11-09 Andrew Cagney <cagney@gnu.org>
576
577 * i386-linux-tdep.c: Include "dwarf2-frame.h".
578 * Makefile.in: Update all dependencies.
579
580 2004-11-08 Andrew Cagney <cagney@gnu.org>
581
582 * sentinel-frame.c (sentinel_frame_prev_pc): New function.
583 (sentinel_frame_unwinder): Add the prev_pc method.
584 * frame.c (frame_pc_unwind): Use the per-frame pc unwinder when
585 available. Do not handle the sentinel-frame case.
586 * frame-unwind.h (frame_prev_register_ftype): Define.
587 (struct frame_unwind): Add prev_pc;
588
589 2004-11-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
590
591 * configure.in: Check for ncurses/term.h.
592 * gdb_curses.h: Include term.h here, prefering ncurses/term.h.
593 * utils.c: Include gdb_curses.h instead of curses.h and term.h.
594 * tui/tui.c: Don't include term.h.
595 * configure, config.in: Rebuilt.
596
597 2004-11-08 Mark Kettenis <kettenis@gnu.org>
598
599 * m68kbsd-nat.c: Include "inf-ptrace.h".
600 (_initialize_m68kbsd_nat): Fix pasto.
601 * Makefile.in (m68kbsd-nat.o): Update dependencies.
602
603 2004-11-08 Randolph Chung <tausq@debian.org>
604
605 * infrun.c (debug_infrun): New variable.
606 (resume, proceed, wait_for_inferior): Annotate with debug messages.
607 (handle_inferior_event, keep_going): Likewise.
608 (_initialize_infrun): Register "set debug infrun" command.
609
610 2004-11-08 Andreas Schwab <schwab@suse.de>
611
612 * linux-nat.c (PTRACE_EVENT_VFORK_DONE): Renamed from
613 PTRACE_EVENT_VFORKDONE.
614 (child_follow_fork): Adjust.
615
616 2004-11-08 Andrew Cagney <cagney@gnu.org>
617
618 * README: Refer to 6.3, not 6.2, update directory listing droppng
619 references to intl/ and mmalloc/.
620 * PROBLEMS: Refer to 6.3 not 6.2.
621
622 * PROBLEMS: Delete no-longer applicable problems.
623
624 2004-11-07 Andrew Cagney <cagney@redhat.com>
625 Daniel Jacobowitz <dan@debian.org>
626 Roland McGrath <roland@redhat.com>
627
628 * Makefile.in (symfile-mem.o): Update dependencies.
629 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): New.
630 (i386_linux_init_abi): Call dwarf2_frame_set_signal_frame_p.
631 * inf-ptrace.c (inf_ptrace_attach): Call
632 observer_notify_inferior_created.
633 * inftarg.c (child_attach): Likewise.
634 * symfile-mem.c: Include "observer.h", "auxv.h", and "elf/common.h".
635 (symbol_file_add_from_memory): Take NAME argument. Use it for
636 the new BFD's filename.
637 (add_symbol_file_from_memory_command): Update call to
638 symbol_file_add_from_memory.
639 (struct symbol_file_add_from_memory_args, add_vsyscall_page)
640 (symbol_file_add_from_memory_wrapper): New.
641 (_initialize_symfile_mem): Register add_vsyscall_page as an
642 inferior_created observer.
643
644 2004-11-07 Mark Kettenis <kettenis@gnu.org>
645
646 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Rename from
647 fetch_inferior_registers. Make static.
648 (m68kbsd_store_inferior_registers): Rename from
649 store_inferior_registers. Make static.
650 (_initialize_m68kbsd_nat): Construct and add target vector.
651 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
652 inftarg.o. Add inf-ptrace.o.
653 (NAT_FILE): Set to tm-solib.h.
654 (LOADLIBES): New variable.
655 * config/m68k/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
656 inftarg.o. Add inf-ptrace.o.
657 (NAT_FILE): Delete variable.
658 * config/m68k/obsd.mh (NATDEPFILES): Remove infptrace.o and
659 inftarg.o. Add inf-ptrace.o.
660 (NAT_FILE): Set to tm-solib.h.
661 * config/m68k/nm-nbsdaout.h: Remove file.
662
663 2004-11-07 Daniel Jacobowitz <dan@debian.org>
664
665 * dwarf2-frame.c (struct dwarf2_frame_ops): Add signal_frame_p.
666 (dwarf2_frame_set_signal_frame_p, dwarf2_frame_signal_frame_p)
667 (dwarf2_signal_frame_unwind): New.
668 (dwarf2_frame_sniffer): Use dwarf2_frame_signal_frame_p.
669 * dwarf2-frame.h (dwarf2_frame_set_signal_frame_p): New prototype.
670
671 2004-11-07 Mark Kettenis <kettenis@gnu.org>
672
673 * Makefile.in (mips64obsd-tdep.o): Fix typo.
674
675 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Renamed
676 from mipsnbsd_ilp32_solib_svr4_fetch_link_map_offsets. Trim sizes
677 to only include the structure members we actually need.
678 (mipsnbsd_lp64_fetch_link_map_offsets): Renamed from
679 mipsnbsd_lp64_solib_svr4_fetch_link_map_offsets. Trim sizes to
680 only include the structure members we actually need.
681 (mipsnbsd_init_abi): Update.
682
683 * mips64obsd-nat.c: Include "mips-tdep.h".
684 (MIPS64OBSD_NUM_REGS): Remove define.
685 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM): New defines.
686 (mips64obsd_supply_gregset, mips64obsd_collect_gregset): Handle
687 floating-point registers correctly.
688 * Makefile.in (mips64obsd-nat.o): Update dependencies.
689
690 * mips64obsd-tdep.c: Include "trad-frame.h", "tramp-frame.h" and
691 "gdb_assert.h".
692 (mips64obsd_sigframe_init): New function.
693 (mips64obsd_sigframe): New variable.
694 (mips64obsd_init_abi): Add comments. Prepend mips64obsd_sigrame
695 unwinder.
696 * Makefile.in (mips64obsd-tdep.o): Update dependencies.
697
698 2004-11-06 Joel Brobecker <brobecker@gnat.com>
699
700 * alpha-mdebug-tdep.c: #include mdebugread.h.
701 Replace alpha_extra_func_info_t by struct mdebug_extra_func_info *.
702 * Makefile.in (alpha-mdebug-tdep.o): Add dependency on mdebugread.h.
703
704 2004-11-05 Andrew Cagney <cagney@gnu.org>
705
706 * dwarf2-frame.c (dwarf2_frame_cache): Only complain when both the
707 CFI and the init_reg method leave the register unspecified.
708 Include the register name in the "Incomplete CFI data" complaint.
709 Supress leading zeros in the address.
710
711 2004-11-05 Mark Kettenis <kettenis@gnu.org>
712
713 * dwarf2-frame.c (decode_frame_entry_1): Avoid indirection when
714 skipping a personality routine in a CIE augmentation.
715
716 2004-11-05 Jeff Johnston <jjohnstn@redhat.com>
717
718 * defs.h (fatal, vfatal): New function prototypes.
719 * stack.c (backtrace_command_stub): Stub to call backtrace_command_1
720 via catch_errors.
721 (backtrace_command): Change to call backtrace_command_stub via
722 catch_errors instead of calling backtrace_command_1 directly.
723 (backtrace_full_command): Ditto.
724 * utils.c (error_stream_1): New static function.
725 (verror): Change to call error_stream_1 instead of error_stream.
726 (error_stream): Call error_stream_1 with RETURN_ERROR argument.
727 (vfatal, fatal): New functions.
728
729 2004-11-05 Andrew Cagney <cagney@gnu.org>
730
731 * stack.c (parse_frame_specification_1): Clear selected_frame_p
732 when not using selected frame.
733
734 2004-11-05 Mark Kettenis <kettenis@jive.nl>
735
736 * dwarf2-frame.c (decode_frame_entry_1): Correctly skip
737 personality routine in a CIE augmentation.
738
739 2004-11-05 Felix Lee <felix+log1@specifixinc.com>
740
741 * stack.c (set_current_sal_from_frame): New function.
742 (print_args_stub): Use it.
743 (print_frame_info): Don't set sal here.
744
745 2004-11-04 Mark Kettenis <kettenis@gnu.org>
746
747 * dwarf2-frame.c (read_encoded_value): Change type of third
748 argument to `unsigned char *'. Add support for LEB128 encodings.
749
750 2004-11-04 Jim Blandy <jimb@redhat.com>
751
752 * gdbtypes.c (make_qualified_type): Doc fix. Add assertion to
753 prevent cross-objfile references.
754 (make_cv_type): Doc fix. Don't create cross-objfile references,
755 even for stub types.
756 (replace_type): Add assertion to prevent cross-objfile references.
757 (check_typedef): Never resolve a stub type by copying over a type
758 from another file.
759
760 2004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
761
762 * Makefile.in (m32r-tdep.o): Update dependencies.
763 * m32r-tdep.c (m32r_gdbarch_init): Call gdbarch_init_osabi for
764 ABI-specific overrides.
765
766 2004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
767
768 * m32r-tdep.c (m32r_memory_insert_breakpoint): Remove
769 unnecessary parallel execution bit.
770 (m32r_memory_remove_breakpoint): Ditto.
771 (m32r_breakpoint_from_pc): Update.
772
773 2004-11-03 Randolph Chung <tausq@debian.org>
774
775 * hppa-tdep.c (hppa_frame_cache): Use frame_pc_unwind instead of
776 frame_func_unwind to locate the unwind entry.
777 (hppa_frame_this_id): Likewise.
778
779 2004-11-03 Andrew Cagney <cagney@gnu.org>
780
781 * gdb/NEWS: Mention internationalization, m32r-*-linux-gnu, 'p'
782 packet, obsolete configurations, end-of-life deprecated_registers.
783
784 2004-11-02 Mark Kettenis <kettenis@gnu.org>
785
786 * dwarf2-frame.c (read_encoded_value): Set proper size for signed
787 encodings as well as unsigned encodings.
788
789 2004-11-02 Andrew Cagney <cagney@gnu.org>
790
791 * value.h (COERCE_VARYING_ARRAY): Delete.
792 * valops.c (value_cast, value_slice): Delete use.
793 * valarith.c (value_subscript, value_concat): Delete use.
794
795 2004-11-02 Paul Hilfinger <hilfingr@nile.gnat.com>
796
797 * NEWS: GDB understands GNAT Ada.
798
799 2004-11-01 Joseph S. Myers <joseph@codesourcery.com>
800
801 * Makefile.in (ALLDEPFILES): Add amd64-sol2-tdep.c.
802 (amd64-sol2-tdep.o): Add dependencies.
803 * amd64-sol2-tdep.c, config/i386/sol2-64.mh,
804 config/i386/sol2-64.mt: New files.
805 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offset,
806 amd64_sol2_gregset32_reg_offset, _initialize_amd64_sol2_nat): New.
807 (supply_gregset): Correct order of arguments to
808 amd64_supply_native_gregset.
809 (fill_gregset): Correct order of arguments to
810 amd64_collect_native_gregset.
811 * configure.host (i[34567]86-*-solaris2.1[0-9]*): Add new case.
812 * configure.tgt (i[34567]86-*-solaris2.1[0-9]*): Likewise.
813 * configure.in (*-*-solaris2.[[6789]]): Add *-*-solaris2.1[[0-9]]
814 for definition of NEW_PROC_API.
815 * configure: Regenerate.
816
817 2004-11-01 Joseph S. Myers <joseph@codesourcery.com>
818
819 * MAINTAINERS (Write After Approval): Add myself.
820
821 2004-11-01 Andrew Cagney <cagney@gnu.org>
822
823 * configure.tgt: Mark d10v-*-* as obsolete.
824 * config/d10v/d10v.mt, d10v-tdep.c: Obsolete files.
825
826 2004-11-01 Paul N. Hilfinger <Hilfinger@gnat.com>
827
828 * values.c (modify_field): Correct handling of bit-fields that
829 don't fit in 32 bits. Use unsigned operations throughout and
830 simplify the code a bit. Document preconditions.
831
832 2004-10-31 Andrew Cagney <cagney@gnu.org>
833
834 * config/pa/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
835 * config/tm-sysv4.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
836 (in_plt_section): Delete.
837
838 * mips-tdep.c (mips_in_solib_return_trampoline): Delete.
839 (mips_gdbarch_init): Do not set same.
840
841 * arch-utils.c (generic_in_solib_call_trampoline): Delete.
842 * arch-utils.h (generic_in_solib_call_trampoline): Delete.
843
844 * gdbarch.sh (in_solib_call_trampoline): Delete.
845 * gdbarch.h, gdbarch.c: Re-generate.
846
847 * hppa-tdep.c (hppa_stub_unwind_sniffer): Replace
848 IN_SOLIB_CALL_TRAMPOLINE with tdep.in_solib_call_trampoline.
849 * hppa-tdep.h (struct gdbarch_tdep): Add in_solib_call_trampoline.
850 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Set same.
851 * hppa-linux-tdep.c (hppa_linux_init_abi): Ditto.
852
853 2004-10-31 Mark Kettenis <kettenis@gnu.org>
854
855 * mipsnbsd-nat.c: Include "target.h" and "inf-ptrace.h".
856 (mipsnbsd_fetch_inferior_registers): Rename from
857 fetch_inferior_registers. Make static.
858 (mipsnbsd_store_inferior_registers): Rename from
859 store_inferior_registers. Make static.
860 (_initialize_mipsnbsd_nat): New function and prototype.
861 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
862 * config/mips/nbsd.mh (NAT_CLIBS, NAT_FILE): Remove variables.
863 (NATDEPFILES): Remove infptrace.o and inftarg.o. Add
864 inf-ptrace.o.
865
866 2004-10-31 Andrew Cagney <cagney@gnu.org>
867
868 * xstormy16-tdep.c (xstormy16_in_solib_call_trampoline)
869 (xstormy16_gdbarch_init): Do not set in_solib_call_trampoline,
870 delete corresponding unused function.
871 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Really do not set
872 in_solib_call_trampoline.
873 * config/arm/tm-embed.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
874 * config/powerpc/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
875 * config/mips/tm-nbsd.h: Ditto.
876 * config/arm/tm-linux.h: Ditto.
877 * config/mips/tm-linux.h: Ditto.
878
879 * armnbsd-tdep.c (arm_netbsd_aout_init_abi)
880 (arm_netbsd_aout_in_solib_call_trampoline): Do not set
881 in_solib_call_trampoline, delete corresponding unused function.
882 * vaxnbsd-tdep.c (vaxnbsd_aout_in_solib_call_trampoline)
883 (vaxnbsd_aout_init_abi): Ditto.
884 * sparcnbsd-tdep.c (sparcnbsd_aout_in_solib_call_trampoline)
885 (sparc32nbsd_aout_init_abi): Ditto.
886 * ppc-linux-tdep.c (ppc64_in_solib_call_trampoline)
887 (ppc_linux_init_abi): Ditto.
888 * ns32knbsd-tdep.c (ns32knbsd_aout_in_solib_call_trampoline)
889 (ns32knbsd_init_abi_aout): Ditto.
890 * mips-tdep.c (mips_in_call_stub, mips_gdbarch_init): Ditto.
891 * mips-linux-tdep.c (mips_linux_init_abi): Ditto.
892 * m68kbsd-tdep.c (m68kbsd_aout_in_solib_call_trampoline)
893 (m68kbsd_aout_init_abi): Ditto.
894 * i386-cygwin-tdep.c (i386_cygwin_in_solib_call_trampoline)
895 (i386_cygwin_init_abi): Ditto.
896 * i386bsd-tdep.c (i386bsd_aout_in_solib_call_trampoline)
897 (i386bsd_init_abi): Ditto.
898
899 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Do not set
900 in_solib_call_trampoline to in_plt_entry, IN_SOLIB_CALL_TRAMPOLINE
901 isn't used by this architecture.
902 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
903 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Ditto.
904 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Ditto.
905 * s390-tdep.c (s390_gdbarch_init): Ditto.
906 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
907 * m68klinux-tdep.c (m68k_linux_init_abi): Ditto.
908 * i386-tdep.c (i386_svr4_init_abi): Ditto.
909 * i386-nto-tdep.c (i386nto_init_abi): Ditto.
910 * arm-linux-tdep.c (arm_linux_init_abi): Ditto.
911 * amd64-tdep.c (amd64_init_abi): Ditto.
912
913 * vaxnbsd-tdep.c (vaxnbsd_elf_init_abi): Do not set
914 in_solib_call_trampoline to its default value of
915 generic_in_solib_call_trampoline.
916 * ppcobsd-tdep.c (ppcobsd_init_abi): Ditto.
917 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Ditto.
918 * i386obsd-tdep.c (i386obsd_elf_init_abi): Ditto.
919 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Ditto.
920 * i386fbsd-tdep.c (i386fbsd_init_abi): Ditto.
921 * hppabsd-tdep.c (hppabsd_init_abi): Ditto.
922
923 * mips-tdep.c (mips_dump_tdep): Don't print any of the macros.
924
925 * config/mips/obsd64.mt (DEPRECATED_TM_FILE): Delete.
926
927 * config/mips/tm-mips.h: Delete file.
928 * remote-mips.c: Delete tm-mips.h from comment.
929 * config/mips/embed.mt (DEPRECATED_TM_FILE): Delete.
930 * config/mips/tm-nbsd.h: Don't include tm-mips.h.
931 * config/mips/irix6.mt (DEPRECATED_TM_FILE): Delete.
932 * config/mips/tm-linux.h: Don't include tm-mips.h.
933 * config/mips/tm-vxmips.h: Don't include tm-mips.h.
934 * config/mips/irix5.mt (DEPRECATED_TM_FILE):
935 * config/mips/tm-wince.h: Don't include.
936
937 * mdebugread.h (MDEBUG_EFI_SYMBOL_NAME): Define.
938 * mdebugread.c (MDEBUG_EFI_SYMBOL_NAME): Delete.
939 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
940 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
941
942 * mdebugread.h (ecoff_relocate_efi): Delete declaration.
943 * mdebugread.c (ecoff_relocate_efi): Delete function.
944 * objfiles.c (objfile_relocate): Delete #ifdef
945 MDEBUG_EFI_SYMBOL_NAME code.
946
947 2004-10-31 Orjan Friberg <organ.friberg@axis.com>
948 Andrew Cagney <cagney@gnu.org>
949
950 * gdbarch.sh (single_step_through_delay): Add.
951 * gdbarch.h, gdbarch.c: Re-generate.
952 * config/mips/tm-mips.h (STEP_SKIPS_DELAY_P, STEP_SKIPS_DELAY)
953 (mips_step_skips_delay): Delete.
954 * mips-tdep.c (mips_single_step_through_delay): Replace
955 mips_step_skips_delay.
956 (mips_gdbarch_init): Set single_step_through_delay.
957 (mips_dump_tdep): Do not print STEP_SKIPS_DELAY.
958
959 2004-10-31 Mark Kettenis <kettenis@gnu.org>
960
961 * tramp-frame.c (tramp_frame_prepend_unwinder): Set unwinder type
962 from TRAMP_FRAME frame type.
963
964 2004-10-31 Andrew Cagney <cagney@gnu.org>
965
966 * mdebugread.c (parse_procedure): Wrap use of RA_REGNUM in #ifdef.
967
968 * mips-tdep.c (mips_ignore_helper): Delete.
969 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Delete.
970 * infrun.c (handle_inferior_event): Delete #ifdef
971 DEPRECATED_IGNORE_HELPER_CALL code.
972
973 * config/mips/tm-mips.h (RA_REGNUM): Delete.
974
975 2004-10-31 Mark Kettenis <kettenis@gnu.org>
976
977 * i386v4-nat.c (supply_gregset, supply_fpregset, fill_gregset)
978 (fill_fpregset): Do not compile for 64-bit systems.
979 * i386-sol2-nat.c: Don't include "i386v4-nat.c".
980 * Makefile.in (i386-sol2-nat.o): Update dependencies.
981 * config/i386/i386sol2.mh (NATDEPFILES): Add back i386v4-nat.c.
982
983 2004-10-30 Andrew Cagney <cagney@gnu.org>
984
985 * mdebugread.h: Include "coff/sym.h" and "coff/symconst.h".
986 (struct mdebug_extra_func_info): Define.
987 * config/alpha/tm-alpha.h: Delete same.
988 * config/mips/tm-mips.h: Delete same.
989 * mdebugread.c: Delete same.
990 * Makefile.in: Update dependencies.
991 * mips-mdebug-tdep.c: Include "mdebugread.h".
992
993 * objfiles.c: Include "mdebugread.h".
994 * mdebugread.c: Include "mdebugread.h".
995 (ecoff_relocate_cfi): Delete.
996 * config/alpha/tm-alpha.h (ecoff_relcate_cfi): Delete.
997 * config/mips/tm-mips.h (ecoff_relcate_cfi): Delete.
998 * mdebugread.h (ecoff_relocate_efi): New file.
999 * Makefile.in: Update dependencies.
1000
1001 * mips-tdep.c (struct frame_extra_info): Delete.
1002 (temp_proc_desc): Delete.
1003
1004 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Rename
1005 MIPS_EFI_SYMBOL_NAME.
1006 (mips_extra_func_info_t, mips_extra_func_info): Delete.
1007 (struct mdebug_extra_func_info): Replace struct
1008 alpha_extra_func_info and alpha_extra_func_info_t.
1009 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Rename
1010 MIPS_EFI_SYMBOL_NAME.
1011 (struct mdebug_extra_func_info): Replace struct
1012 alpha_extra_func_info and alpha_extra_func_info_t.
1013 * objfiles.c, mips-tdep.c, mips-mdebug-tdep.c: Update.
1014 * mdebugread.c, alpha-mdebug-tdep.c:
1015
1016 Suggested by Mark Kettenis.
1017 * config/mips/tm-mips.h (struct mips_extra_func_info): Delete
1018 fields frame_adjust and high_addr.
1019 * mips-mdebug-tdep.c (PROC_HIGH_ADDR, PROC_FRAME_ADJUST): Delete.
1020 (non_heuristic_proc_desc): Delete references.
1021
1022 * mips-tdep.h (MIPS_PRID_REGNUM): Add.
1023 * config/mips/tm-mips.h (PRID_REGNUM): Delete.
1024 * mips-tdep.c: Update.
1025
1026 * mips-tdep.h (MIPS_FIRST_EMBED_REGNUM)
1027 (MIPS_LAST_EMBED_REGNUM): Add.
1028 * config/mips/tm-mips.h (FIRST_EMBED_REGNUM)
1029 (LAST_EMBED_REGNUM): Delete.
1030 * mipsv4-nat.c, mips-tdep.c, mips-linux-tdep.c: Update.
1031
1032 * config/mips/tm-mips.h (PS_REGNUM): Delete.
1033 * mips-tdep.h (MIPS_PS_REGNUM): Add.
1034 * remote-vxmips.c, mipsv4-nat.c, mips-tdep.c: Update.
1035 * mips-linux-nat.c: Update.
1036
1037 * mips-tdep.h: Add comments on registers.
1038 (MIPS_UNUSED_REGNUM): Define.
1039 * config/mips/tm-mips.h (ZERO_REGNUM, UNUSED_REGNUM)
1040 (T9_REGNUM, V0_REGNUM, A0_REGNUM): Delete.
1041 * irix5-nat.c, mipsv4-nat.c, mips-linux-tdep.c: Update.
1042 * mips-linux-nat.c, remote-mips.c: Update.
1043
1044 * config/mips/tm-mips.h (t_insn): Delete.
1045 * mips-tdep.c (mips_fetch_instruction, mips_skip_trampoline_code):
1046 Replace t_insn with ULONGEST.
1047
1048 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1049
1050 * mipsnbsd-tdep.c: Include "regset.h" and "gdb_assert.h".
1051 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM)
1052 (MIPSNBSD_NUM_GREGS, MIPSNBSD_NUM_FPREGS): New defines.
1053 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
1054 (mipsnbsd_core_fns, mipsnbsd_elfcore_fns): Remove variables.
1055 (mipsnbsd_core_osabi_sniffer): New function.
1056 (mipsnbsd_init_abi): Set regset_from_core_section.
1057 (_initialize_mipsnbsd_tdep): Remove calls to
1058 deprecated_add_core_fns.
1059 (mipsnbsd_supply_fpregset, mipsnbsd_supply_gregset)
1060 (mipsnbsd_regset_from_core_section): New functions.
1061 (mipsnbsd_gregset, mipsnbsd_fpregset): New variables.
1062 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
1063
1064 * procfs.c (procfs_fetch_registers, procfs_store_registers): Like
1065 Remove optimization for DEPRECATED_FP_REGNUM.
1066
1067 2004-10-30 Andrew Cagney <cagney@gnu.org>
1068
1069 * alpha-tdep.c (alpha_setup_arbitrary_frame): Delete.
1070 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Delete.
1071 (alpha_setup_arbitrary_frame): Delete.
1072 * mips-tdep.c (setup_arbitrary_frame): Delete.
1073 * config/mips/tm-mips.h (SETUP_ARBITRARY_FRAME): Delete.
1074 (setup_arbitrary_frame): Delete.
1075 * stack.c (parse_frame_specification_1): When specified, call
1076 create_new_frame with two parameters. Delete #ifdef
1077 SETUP_ARBITRARY_FRAME.
1078
1079 * config/mips/tm-mips.h (MIPS16_INSTLEN, MIPS_NUMREGS)
1080 (MIPS_INSTLEN): Delete.
1081 * mips-tdep.h (enum mips_insn_size): Rename MIPS32_INSN_SIZE and
1082 MIPS16_INSN_SIZE to MIPS_INSN32_SIZE and MIPS_INSN16_SIZE.
1083 * remote-mips.c, mips-tdep.c: Update.
1084
1085 * config/mips/embed.mt (TDEPFILES): Add mips-mdebug-tdep.o.
1086 * mips-mdebug-tdep.h, mips-mdebug-tdep.c: New files.
1087 * mips-tdep.c (mips_mdebug_frame_cache)
1088 (mips_mdebug_frame_this_id, mips_mdebug_frame_prev_register)
1089 (mips_mdebug_frame_unwind, mips_mdebug_frame_sniffer)
1090 (mips_mdebug_frame_base_address, mips_mdebug_frame_sniffer)
1091 (mips_mdebug_frame_base_sniffer, non_heuristic_proc_desc)
1092 (compare_pdr_entries, the_bfd, mips16_fetch_instruction): Delete.
1093 (mips_gdbarch_init): Do not append mdebug sniffers.
1094 (PROC_LOW_ADDR, PROC_HIGH_ADDR, PROC_FRAME_OFFSET)
1095 (PROC_FRAME_REG, PROC_FRAME_ADJUST, PROC_REG_MASK)
1096 (PROC_FREG_MASK, PROC_REG_OFFSET, PROC_FREG_OFFSET, PROC_PC_REG)
1097 (PROC_SYMBOL, _PROC_MAGIC_): Delete.
1098 * Makefile.in: Update dependencies.
1099
1100 * mips-tdep.h (mips_abi_regsize): Declare.
1101 * mips-tdep.c (mips_abi_regsize): Make non-static.
1102
1103 * mips-tdep.c (gdb_print_insn_mips): Simplify.
1104 (make_mips16_addr): Delete.
1105
1106 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1107
1108 * i386-sol2-nat.c: New file.
1109 * Makefile.in (ALLDEPFILES): Add i386-sol2-nat.c and
1110 i386-sol2-tdep.c.
1111 (i386-sol2-nat.o): Update dependencies.
1112 * config/i386/i386sol2.mh (NATDEPFILES): Remove i386v4.o, add
1113 i386-sol2-nat.o.
1114
1115 2004-10-30 Andrew Cagney <cagney@gnu.org>
1116
1117 Total breakage identified by Joel Brobecker.
1118 * mips-tdep.c (after_prologue): Delete.
1119 (mips_skip_prologue): Use skip_prologue_using_sal.
1120 (heuristic_proc_desc): Delete, unused.
1121
1122 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1123
1124 * procfs.c (proc_get_gregs, proc_get_fpregs, proc_set_gregs)
1125 (proc_set_fpregs, procfs_fetch_registers, procfs_store_registers):
1126 Cleanup coding style.
1127
1128 2004-10-30 Andrew Cagney <cagney@gnu.org>
1129
1130 * mips-tdep.h (mips_pc_is_mips16): Declare.
1131 * mips-tdep.c (mips_pc_is_mips16): Rename pc_is_mips16, make
1132 non-static. Update calls.
1133
1134 * cli/cli-decode.c (add_setshow_enum_cmd): New function.
1135 * command.h (add_setshow_enum_cmd): Declare.
1136 * mips-tdep.c (_initialize_mips_tdep): Use add_setshow_enum_cmd.
1137
1138 * mips-tdep.c (_initialize_mips_tdep): Use
1139 add_setshow_zinteger_cmd.
1140
1141 * mips-tdep.c (mips_eabi_extract_return_value)
1142 (mips_o64_extract_return_value, mips_o64_store_return_value)
1143 (return_value_location, mips_eabi_reg_struct_has_addr)
1144 (mips_eabi_use_struct_convention)
1145 (mips_eabi_store_return_value): Delete.
1146 (mips_eabi_store_return_value): New function.
1147 (mips_eabi_return_value): New function.
1148 (mips_gdbarch_init): For O64 and EABI, delete
1149 extract_return_value, store_return_value, use_struct_convention
1150 and reg_struct_has_addr, add return_value.
1151
1152 * mips-tdep.c (read_signed_register): Use
1153 regcache_cooked_read_signed.
1154
1155 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1156
1157 * mipsread.c: Cleanup coding style.
1158 (mipscoff_new_init, mipscoff_symfile_init, mipscoff_symfile_read)
1159 (mipscoff_symfile_finish): Remove prototypes.
1160
1161 2004-10-29 Mark Kettenis <kettenis@gnu.org>
1162
1163 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
1164 (mips_mdebug_frame_cache, mips16_scan_prologue)
1165 (mips32_scan_prologue, mips_stub_frame_cache)
1166 (heuristic_proc_start, heuristic_proc_desc)
1167 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
1168 (mips_n32n64_return_value, mips_o32_push_dummy_call)
1169 (mips_o32_return_value, mips_o64_push_dummy_call)
1170 (mips_step_skips_delay, mips_skip_trampoline_code)
1171 (mips_gdbarch_init): Use MIPS_A0_REGNUM instead of A0_REGNUM,
1172 MIPS_RA_REGNUM instead of RA_REGNUM, MIPS_T9_REGNUM instead of
1173 T9_REGNUM, MIPS_V0_REGNUM instead of V0_REGNUM, MIPS_ZERO_REGNUM
1174 instead of ZERO_REGNUM, MIPS32_SIZE_INSN instead of MIPS_INSTLEN
1175 and MIPS16_INSN_SIZE instead of MIPS16_INSTLEN.
1176 (mips_dump_tdep): Don't print A0_REGNUM, RA_REGNUM,
1177 T9_REGNUM, V0_REGNUM, ZERO_REGNUM, MIPS_INSTLEN and
1178 MIPS16_INSTLEN. Use MIPS_A0_REGNUM instead of A0_REGNUM.
1179 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
1180 (mips_linux_n32n64_sigframe_init): Use MIPS_ZERO_REGNUM instead of
1181 ZERO_REGNUM.
1182 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
1183 (mipsnbsd_cannot_store_register): Use MIPS_ZERO_REGNUM instead of
1184 ZERO_REGNUM.
1185 (mipsnbsd_get_longjmp_target): Use MIPS_A0_REGNUM instead of
1186 A0_REGNUM.
1187 * mipsnbsd-nat.c: Include "mips-tdep.h".
1188 (getregs_supplies): Use MIPS_ZERO_REGNUM instead of ZERO_REGNUM.
1189 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
1190
1191 2004-10-29 Andrew Cagney <cagney@gnu.org>
1192
1193 * stack.c (parse_frame_specification_1): New function based on
1194 parse_frame_specification. Add message and selected_frame_p
1195 paramters. Truely always return non-NULL.
1196 (parse_frame_specification): Call parse_frame_specification_1.
1197 (frame_info): Update. Eliminate target_has_stack check.
1198 (select_frame_command): Update.
1199
1200 2004-10-29 Andrew Cagney <cagney@gnu.org>
1201
1202 * frame.h (get_selected_frame): Add message parameter.
1203 * frame.c (get_selected_frame): Add and use message parameter.
1204 * stack.c (current_frame_command, return_command, locals_info)
1205 (catch_info, args_info, up_silently_base, down_silently_base): Use
1206 get_selected_frame with an explicit message.
1207 * thread.c, stack.c, sh-tdep.c, sh64-tdep.c: Update.
1208 * remote-rdp.c, remote-mips.c, remote-e7000.c: Update.
1209 * ocd.c, mi/mi-main.c, mi/mi-cmd-stack.c: Update.
1210 * infrun.c, inflow.c, infcmd.c, frame.c: Update.
1211 * findvar.c, eval.c, corelow.c, bsd-kvm.c: Update.
1212 * breakpoint.c: Update.
1213
1214 2004-10-29 Andrew Cagney <cagney@gnu.org>
1215
1216 * trad-frame.c (trad_frame_get_prev_register): Use
1217 frame_unwind_register instead of frame_register_unwind, do not
1218 recurse the register's location.
1219 * xstormy16-tdep.c (xstormy16_frame_prev_register):
1220 * sparc-tdep.c (sparc32_frame_prev_register): Ditto.
1221 * sparc64-tdep.c (sparc64_frame_prev_register): Ditto.
1222 * sh-tdep.c (sh_frame_prev_register): Ditto.
1223 * m68k-tdep.c (m68k_frame_prev_register): Ditto.
1224 * i386-tdep.c (i386_frame_prev_register): Ditto.
1225 * dwarf2-frame.c (dwarf2_frame_prev_register): Ditto.
1226 * amd64-tdep.c (amd64_frame_prev_register): Ditto.
1227
1228 2004-10-28 Mark Kettenis <kettenis@jive.nl>
1229
1230 * proc-events.c: Fix several coding-style issues. Consistently
1231 use #ifdef instead of #if defined().
1232 (proc_prettyfprint_fault, proc_prettyfprint_faultset): Use
1233 ARRAY_SIZE.
1234 (_initialize_proc_events): New prototype.
1235
1236 * proc-why.c: Fix several coding-style issues.
1237 (proc_prettyfprint_why): Use ARRAY_SIZE.
1238
1239 2004-10-27 Jim Blandy <jimb@redhat.com>
1240
1241 * remote.c (fetch_register_using_p): Construct 'p' packet in a
1242 manner independent of the host byte order.
1243
1244 2004-10-27 Mark Kettenis <kettenis@gnu.org>
1245
1246 * mips-tdep.c (id_delayed): Remove prototype.
1247
1248 2004-10-26 Mark Kettenis <kettenis@gnu.org>
1249
1250 * mips-tdep.h: Add MIPS_ZERO_REGNUM, MIPS_AT_REGNUM,
1251 MIPS_V0_REGNUM. MIPS_A0_REGNUM, MIPS_T9_REGNUM and MIPS_RA_REGNUM
1252 to enum with register numbers.
1253 (enum mips_insn_size): New enum.
1254
1255 2004-10-26 Andrew Cagney <cagney@gnu.org>
1256
1257 * config/mips/tm-linux.h: Delete #undef SKIP_TRAMPOLINE_CODE.
1258 * mips-tdep.c (mips_skip_trampoline_code): Rename mips_skip_stub.
1259 (mips_gdbarch_init): Update.
1260 (mips_dump_tdep): Do not print SKIP_TRAMPOLINE_CODE.
1261
1262 * config/arm/tm-linux.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1263 * config/mips/tm-nbsd.h, config/mips/tm-linux.h: Delete #undef
1264 IN_SOLIB_RETURN_TRAMPOLINE.
1265 * mips-tdep.c (mips_dump_tdep): Do not print
1266 IN_SOLIB_RETURN_TRAMPOLINE.
1267 (mips_in_solib_return_trampoline): Rename mips_in_return_stub.
1268 (mips_gdbarch_init): Update.
1269
1270 * mips-tdep.h (mips_software_single_step): Move to here ...
1271 * config/mips/tm-mips.h: ... from here.
1272 * config/mips/tm-linux.h (SOFTWARE_SINGLE_STEP_P)
1273 (SOFTWARE_SINGLE_STEP): Delete.
1274 * mips-linux-tdep.c (mips_linux_init_abi): Set software_single_step.
1275
1276 2004-10-25 Andrew Cagney <cagney@gnu.org>
1277
1278 * NEWS: Add Changes since GDB 6.3 section.
1279
1280 2004-10-23 Andreas Schwab <schwab@suse.de>
1281
1282 * ada-lang.c (grow_vect): Return the new array instead of
1283 expecting pointer to pointer to avoid violation of aliasing rules.
1284 * ada-lang.h (GROW_VECT): Adapt call to grow_vect.
1285
1286 2004-10-23 Ulrich Weigand <uweigand@de.ibm.com>
1287
1288 * s390-tdep.c (enum pv_boolean): Remove.
1289 (pv_is_array_ref): Remove.
1290 (s390_on_stack): Remove.
1291 (S390_NUM_SPILL_SLOTS): Remove.
1292 (struct s390_prologue_data): Remove members 'spill' and 'back_chain',
1293 add members 'gpr_slot', 'fpr_slot', and 'back_chain_saved_p'.
1294 (s390_store): Track all stores of orginal incoming registers to the
1295 stack constant offsets relative to the CFA, instead of only tracking
1296 stores into specific spill slots.
1297 (s390_load): Likewise.
1298 (s390_analyze_prologue): Adapt to struct s390_prologue_data changes.
1299 (s390_prologue_frame_unwind_cache): Likewise. Only track registers
1300 defined as call-saved by the ABI.
1301 (s390_push_dummy_call): Use bottom of dummy call argument save area
1302 as return value, not the top. Do not store to the called function's
1303 register save area.
1304 (s390_unwind_dummy_id): Adapt accordingly.
1305
1306 2004-10-23 Andrew Cagney <cagney@gnu.org>
1307
1308 * objfiles.h (struct objfile): Rename obj_private to
1309 deprecated_obj_private, sym_private to deprecated_sym_private, and
1310 sym_stab_info to deprecated_sym_stab_info.
1311 * gdb-stabs.h: Update.
1312 * elfread.c: Update.
1313 * dbxread.c: Update.
1314 * coffread.c: Update.
1315 * xcoffread.c: Update.
1316 * symfile.c: Update.
1317 * somread.c: Update.
1318 * nlmread.c: Update.
1319 * mdebugread.c: Update.
1320 * hpread.c: Update.
1321 * coffread.c: Update.
1322
1323 2004-10-23 Mark Kettenis <kettenis@gnu.org>
1324
1325 * mips64obsd-nat.c, mips64obsd-tdep.c: New files.
1326 * configure.host: Add mips64*-*-openbsd*.
1327 * configure.tgt: Add mips64*-*-openbsd*.
1328 * Makefile.in (ALLDEPFILES): Add mips64obsd-nat.o,
1329 mips64obsd-tdep.c.
1330 (mips64obsd-nat.o, mips64obsd-tdep.o): New dependecies.
1331 * config/mips/obsd64.mh, config/mips/obsd64.mt: New files.
1332
1333 2004-10-21 Joel Brobecker <brobecker@gnat.com>
1334
1335 * symtab.c (symbol_search_name): Minor reformatting.
1336
1337 2004-10-20 Joel Brobecker <brobecker@gnat.com>
1338
1339 * symtab.h: Fix typo in comment.
1340
1341 2004-10-19 Mark Kettenis <kettenis@gnu.org>
1342
1343 * dwarf2read.c (struct comp_unit_head): Fix coding style.
1344 (dwarf_decode_line_header): Likewise.
1345
1346 2004-10-19 Michael Chastain <mec.gnu@mindspring.com>
1347
1348 * NEWS: GDB works with GCC -feliminate-dwarf2-dups.
1349
1350 2004-10-19 Andrew Cagney <cagney@gnu.org>
1351
1352 GDB 6.3 branch created.
1353 * version.in: Bump to version 6.3.50_2004-10-19-cvs.
1354
1355 2004-10-15 Joel Brobecker <brobecker@gnat.com>
1356
1357 * dwarf2read.c (set_cu_language): Set language to Ada for
1358 DW_LANG_Ada83 and DW_LANG_Ada95.
1359
1360 2004-10-15 Michael Chastain <mec.gnu@mindspring.com>
1361
1362 From Andreas Schwab <schwab@suse.de>:
1363 * Makefile.in (.y.c, .l.c.): Fix the substitutions for
1364 for xmalloc and xrealloc.
1365
1366 2004-10-15 Andrew Cagney <cagney@gnu.org>
1367
1368 * ada-exp.y, ada-lex.l: Use xmalloc and xrealloc through out.
1369 * inf-ptrace.c: Include "gdb_wait.h" instead of <wait.h>.
1370 * Makefile.in (.y.c, .l.c): Don't replace xmalloc with xxmalloc.
1371 Update dependencies.
1372
1373 2004-10-15 Paul Hilfinger <Hilfinger@gnat.com>
1374
1375 * ada-lang.c (ada_lookup_symbol): Correct comment.
1376 (ada_evaluate_subexp): Change error message for
1377 OP_FUNCALL case so as not to indicate an internal error.
1378
1379 2004-10-15 Joel Brobecker <brobecker@gnat.com>
1380
1381 Committed by Paul Hilfinger.
1382 * ada-lang.c (ada_template_to_fixed_record_type_1): Detect bogus
1383 type sizes in XVE/XVU types, and emit a warning when that happens,
1384 instead of rounding up the size of the resulting type.
1385 Some minor reformatting.
1386 (ada_is_aligner_type): Do not consider a type as an aligner type
1387 if there is a corresponding XVS type as well.
1388 (ada_evaluate_subexp): For TERNOP_SLICE, handle cases where we
1389 have several levels of pointer indirection to the array.
1390
1391 2004-10-15 Jerome Guitton <guitton@gnat.com>
1392
1393 Committed by Paul Hilfinger.
1394 * ada-lang.c (check_size): New function.
1395 (coerce_unspec_val_to_type): call check_size to make sure
1396 that the object size is reasonable.
1397 (ada_evaluate_subexp): in UNOP_IND: Ditto. In TERNOP_SLICE:
1398 Implements the case when we get a reference when we evaluate
1399 the expression of one of the bounds of the slice.
1400 (ada_value_struct_elt): when a packed array field is
1401 a reference, use ada_coerce_ref to dereference it; use
1402 ada_value_ind only if it is a pointer.
1403
1404 2004-10-15 Joel Brobecker <brobecker@gnat.com>
1405
1406 * mips-tdep.c (mips32_scan_prologue): Move the implementation up
1407 a bit to avoid the necessity of an advance declaration. Remove
1408 declaration.
1409 (set_reg_offset): Move implemenation up.
1410 (mips16_get_imm): Likewise.
1411 (mips16_scan_prologue): Likewise.
1412 (reset_saved_regs): Likewise.
1413 (mips32_scan_prologue): Likewise.
1414
1415 2004-10-14 Joel Brobecker <brobecker@gnat.com>
1416
1417 * mips-tdep.c (mips32_scan_prologue): Add advance declaration.
1418 Remove sp as a parameter, compute it internally instead. Move
1419 prologue scanning limit from heuristic_proc_desc to here.
1420 (mips16_scan_prologue): Likewise.
1421 (mips_insn16_frame_cache): Replace call to heuristic_proc_desc
1422 by call to mips16_scan_prologue.
1423 (mips_insn32_frame_cache): Replace call to heuristic_proc_desc
1424 by call to mips32_scan_prologue.
1425 (heuristic_proc_desc): Remove code that's no longer necessary.
1426 Update calls to mips16_scan_prologue and mips32_scan_prologue.
1427 (mips_skip_prologue): Update calls to mips16_scan_prologue
1428 and mips32_scan_prologue.
1429
1430 2004-10-14 Joel Brobecker <brobecker@gnat.com>
1431
1432 * mips-tdep.c (mips16_scan_prologue): Merge code from
1433 mips16_skip_prologue. Now return the address of the first
1434 instruction past the function prologue.
1435 (mips16_skip_prologue): Remove, no longer necessary.
1436 (mips_skip_prologue): Replace call to mips16_skip_prologue
1437 by call to mips16_scan_prologue.
1438
1439 2004-10-14 Joel Brobecker <brobecker@gnat.com>
1440
1441 * mips-tdep.c (mips32_scan_prologue): Merge code from
1442 mips32_skip_prologue. Now return the address of the first
1443 instruction past the function prologue.
1444 (mips32_skip_prologue): Remove. No longer necessary.
1445 (mips16_skip_prologue): Add parameter end_pc instead of
1446 computing it.
1447 (mips_skip_prologue): Compute the upper limit for the
1448 prologue scanning. Update call to mips16_skip_prologue.
1449 Replace call to mips32_skip_prologue by call to
1450 mips32_scan_prologue.
1451
1452 2004-10-14 Mark Kettenis <kettenis@gnu.org>
1453
1454 * hppa-tdep.c (hppa_frame_cache): Add support for OpenBSD and
1455 NetBSD system call stubs that store %rp in the ERP slot of the
1456 stack frame.
1457
1458 * source.c: Always define O_BINARY to 0 if not defined already.
1459 (openp): Unconditionally use O_BINARY.
1460
1461 * top.c (gdb_readline): Always accept "\r\n" as a line-ending.
1462 * event-top.c (gdb_readline2): Likewise.
1463
1464 2004-10-14 Orjan Friberg <orjanf@axis.com>
1465
1466 * cris-tdep.c (_initialize_cris_tdep): Re-add call to
1467 deprecated_add_core_fns which was removed by mistake.
1468
1469 2004-10-13 Kevin Buettner <kevinb@redhat.com>
1470
1471 * ia64-linux-nat.c (fill_gregset, fill_fpregset): Replace
1472 references to deprecated_registers[] with equivalent code.
1473
1474 2004-10-13 Kevin Buettner <kevinb@redhat.com>
1475
1476 * rs6000-tdep.c (rs6000_push_dummy_call): Replace references to
1477 ``deprecated_registers'' with equivalent code. Use gdb_assert()
1478 instead of explicit test and print statement.
1479
1480 2004-10-12 Mark Kettenis <kettenis@gnu.org>
1481
1482 * sparc-nat.c: Include "inf-ptrace.h".
1483 (sparc_target): New function.
1484 * sparc-nat.h: Update copyright year.
1485 (sparc_target): New prototype.
1486 * sparcnbsd-nat.c: Don't include "gdbcore.h", include "target.h".
1487 (_initialize_sparcnbsd_nat): Construct and add target vector.
1488 * sparc64nbsd-nat.c: Include "target.h".
1489 (_initialize_sparc64nbsd_nat): Construct and add target vector.
1490 * Makefile.in (sparc-nat.o, sparcnbsd-nat.o, sparc64nbsd-nat.o):
1491 Update dependencies.
1492 * config/sparc/nbsd64.mh (NATDEPFILES): Remove infptrace.o and
1493 inftarg.o, add inf-ptrace.o.
1494 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1495 inftarg.o, add inf-ptrace.o and bsd-kvm.o.
1496 (NAT_FILE): Set to nm-bsd.h.
1497 (LOADLIBES): New variable.
1498 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
1499 infarg.o, add inf-ptrace.o.
1500 * config/sparc/nm-nbsdaout.h: Remove file.
1501 * config/sparc/fbsd.mh (NATDEPFILES): Add inf-ptrace.o.
1502 * config/sparc/linux.mh (NATDEPFILES): Add inf-ptrace.o.
1503 * config/sparc/linux64.mh (NATDEPFILES): Add inf-ptrace.o.
1504
1505 * defs.h [!FOPEN_RB]: Include "fopen-bin.h" instead of
1506 "fopen-same.h". Update comment.
1507
1508 2004-10-11 Mark Kettenis <kettenis@gnu.org>
1509
1510 * i386gnu-nat.c: Include "gdb_string.h".
1511 (fetch_fpregs): Use i387_supply_fxsave to fill the floating-point
1512 registers when the floating-point state isn't initialized.
1513 * Makefile.in (i386gnu-nat.o): Update dependencies.
1514
1515 2004-10-11 David Anderson <davea@sgi.com>
1516
1517 * regcache.c (regcache_raw_read): Comment was missing "to".
1518 Extraneous ' removed.
1519 * gdb_thread_db.h (struct td_thrinfo): ti_lid field
1520 comment now describes use.
1521
1522 2004-10-11 Orjan Friberg <orjanf@axis.com>
1523
1524 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start)
1525 (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
1526 (cris_sigtramp_frame_this_id, cris_sigtramp_frame_prev_register)
1527 (cris_sigtramp_frame_sniffer): New functions.
1528 (cris_gdbarch_init): Hook in signal trampoline unwinder.
1529 (cris_dwarf2_reg_to_regnum, cris_dwarf2_frame_init_reg): New functions.
1530 (cris_gdbarch_init): Hook in Dwarf-2 unwinder.
1531 (struct gdbarch_tdep, set_cris_dwarf2_cfi, cris_dump_tdep)
1532 (cris_gdbarch_init, _initialize_cris_tdep): Add CRIS Dwarf-2 CFI usage
1533 command.
1534 (cris_version_update): Remove, replace with ...
1535 (set_cris_version): New function.
1536 (struct gdbarch_tdep, cris_mode, cris_mode_update)
1537 (cris_cannot_store_register, cris_dump_tdep, cris_gdbarch_init)
1538 (_initialize_cris_tdep): Remove CRIS mode command.
1539 (cris_fpless_backtrace, _initialize_cris_tdep): Remove
1540 cris-fpless-backtrace command.
1541 (cris_scan_prologue): Fix prologue scanning limit.
1542 (cris_register_type): Update to reflect actual registers.
1543 (cris_register_bytes_ok) Remove.
1544 (cris_gdbarch_init): Remove support for CRIS v8 and v9.
1545 Remove set_gdbarch_deprecated_register_size,
1546 set_gdbarch_deprecated_register_byte, set_gdbarch_register_bytes_ok.
1547
1548 2004-10-10 Andrew Cagney <cagney@gnu.org>
1549
1550 * ada-lang.c (lim_warning): Add ATTR_FORMAT prototype and FIXME
1551 comment.
1552
1553 2004-10-10 Joel Brobecker <brobecker@gnat.com>
1554
1555 * mips-tdep.c (mips16_scan_prologue): Remove redundant code.
1556
1557 2004-10-10 Joel Brobecker <brobecker@gnat.com>
1558
1559 * mips-tdep.c (mips16_scan_prologue): Renames
1560 mips16_heuristic_proc_desc. Update comment.
1561 (mips32_scan_prologue): Renames mips32_heuristic_proc_desc.
1562 (heuristic_proc_desc): Update calls to the 2 functions above.
1563
1564 2004-10-10 Joel Brobecker <brobecker@gnat.com>
1565
1566 * mips-tdep.c (mips_insn16_frame_cache): Remove unused variables.
1567 Update comments. Also immediately return empty cache when the start
1568 address of our function could not be found.
1569 (mips_insn32_frame_cache): Likewise.
1570
1571 2004-10-10 Joel Brobecker <brobecker@gnat.com>
1572
1573 * mips-tdep.c (mips16_decode_reg_save): Delete, no longer used.
1574 (mips_insn16_frame_cache): Pass frame cache in call to
1575 heuristic_proc_desc. Move some code to mips16_heuristic_proc_desc.
1576 Remove code that became redundant as a consequence.
1577 (mips32_heuristic_proc_desc): No longer compute a fake
1578 procedure descriptor. Compute the full frame cache instead.
1579 Some minor comment reformatting.
1580
1581 2004-10-10 Jim Blandy <jimb@redhat.com>
1582
1583 * MAINTAINERS (generic symtabs, dwarf readers, elf reader, stabs
1584 reader, tracing bytecode stuff): Remove self.
1585
1586 2004-10-10 Mark Kettenis <kettenis@gnu.org>
1587
1588 * sparc64-linux-tdep.c: Update copyright year. Don't include
1589 "solib-svr4.h".
1590 (sparc64_linux_svr4_fetch_link_map_offsets): Remove function.
1591 (sparc64_linux_init_abi): Don't set solib_svr4_link_map_offsets.
1592 * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
1593
1594 * sparc-linux-tdep.c: Update copyright year.
1595 (sparc_linux_sigtramp_start): Change first argument from CORE_ADDR
1596 to struct frame_info *. Use safe_frame_unwind_memory instead of
1597 deprecated_read_memory_nobpt.
1598 (sparc32_linux_sigtramp_start, sparc32_linux_rt_sigtramp_start):
1599 Change argumen from CORE_ADDR to struct frame_info *. Adjust for
1600 changed signature of sparc_linux_sigtramp_start.
1601 (sparc32_linux_pc_in_sigtramp): Remove function.
1602 (sparc32_linux_sigtramp_p): New function.
1603 (sparc32_linux_sigtramp_frame_sniffer): Use
1604 sparc32_linux_sigtramp_p instead of sparc32_linux_pc_in_sigtramp.
1605
1606 * sparc-linux-tdep.c (sparc32_linux_svr4_fetch_link_map_offsets):
1607 Remove function.
1608 (sparc32_linux_init_abi): Don't set solib_svr4_link_map_offsets.
1609
1610 * ada-lang.c (lim_warning): Re-implement as a varargs function.
1611 (decode_packed_array_type, value_subscript_packed)
1612 (ada_evaluate_subexp, to_fixed_range_type): Remove redundant
1613 argument in call to lim_warning.
1614
1615 * configure.in: Really disable the TUI if an enhanced curses
1616 library isn't found.
1617 * configure: Regenerate.
1618
1619 2004-10-09 Mark Kettenis <kettenis@gnu.org>
1620
1621 * config/i386/nbsdaout.mh (NAT_FILE): Set to solib.h.
1622 * config/i386/nbsdelf.mh (NAT_FILE): Set to solib.h.
1623 * config/i386/nm-nbsdaout.h: Remove file.
1624 * config/i386/nm-fbsd.h (link_object, lo_name, lo_library)
1625 (lo_unused, lo_major, lo_minor, lo_next, link_map, lm_addr)
1626 (lm_name, lm_next, lm_lop, lm_lob, lm_rwt, lm_ld, lm_lpd)
1627 (link_dynamic_2, ld_loaded, ld_need, ld_rules, ld_got, ld_plt)
1628 (ld_rel, ld_hash, ld_stab, ld_stab_hash, ld_buckets, ld_symbols)
1629 (ld_symb_size, ld_text, ld_plt_sz, rtc_symb, rtc_sp, rtc_next)
1630 (ld_debug, ldd_version, ldd_in_debugger, ldd_sym_loaded)
1631 (ldd_bp_addr, ldd_bp_inst, ldd_cp, link_dynamic, ld_version)
1632 (ldd, ld_un, ld_2): Remove defines.
1633 * config/i386/nm-obsd.h: Likewise.
1634
1635 2004-10-09 Paul Hilfinger <hilfingr@nile.gnat.com>
1636
1637 * ada-lex.l: Remove useless rule whose right-context clause
1638 causes unreferenced static function warning for yyrealloc.
1639 (ada_flex_use): Remove the artificial reference to yyrealloc.
1640
1641 2004-10-08 Andrew Cagney <cagney@gnu.org>
1642
1643 * target.h (struct target_ops): Rename to_xfer_memory to
1644 deprecated_xfer_memory.
1645 * target.c: Update.
1646 (deprecated_debug_xfer_memory): Rename debug_to_xfer_memory.
1647 * wince.c: Update.
1648 * win32-nat.c: Update.
1649 * v850ice.c: Update.
1650 * uw-thread.c: Update.
1651 * thread-db.c: Update.
1652 * sol-thread.c: Update.
1653 * remote.c: Update.
1654 * remote-vx.c: Update.
1655 * remote-st.c: Update.
1656 * remote-sim.c: Update.
1657 * remote-sds.c: Update.
1658 * remote-rdp.c: Update.
1659 * remote-rdi.c: Update.
1660 * remote-mips.c: Update.
1661 * remote-m32r-sdi.c: Update.
1662 * remote-e7000.c: Update.
1663 * procfs.c: Update.
1664 * ppc-bdm.c: Update.
1665 * nto-procfs.c: Update.
1666 * monitor.c: Update.
1667 * linux-nat.c: Update.
1668 * inftarg.c: Update.
1669 * hpux-thread.c: Update.
1670 * go32-nat.c: Update.
1671 * gnu-nat.c: Update.
1672 * exec.c: Update.
1673 * corelow.c: Update.
1674 * bsd-kvm.c: Update.
1675 * aix-thread.c: Update.
1676
1677 2004-10-08 Andrew Cagney <cagney@gnu.org>
1678
1679 * target.c (debug_target): Move to near start of file.
1680 (target_stopped_data_address_p): Re-org logic, add casts.
1681
1682 2004-10-02 Mark Kettenis <kettenis@gnu.org>
1683
1684 * solib-sunos.c [HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS] (link_map)
1685 (lm_addr, lm_name, lm_next, link_dynamic_2, ld_loaded, rtc_symb)
1686 (rtc_sp, rtc_next, ld_debug, ldd_in_debugger, ldd_bp_addr)
1687 (ldd_bp_inst, ldd_cp, link_dynamic, ld_version, ldd, ld_un, ld_2):
1688 New defines.
1689
1690 2004-10-08 Jeff Johnston <jjohnstn@redhat.com>
1691
1692 * target.h (to_stopped_data_address): Change prototype to
1693 take a CORE_ADDR pointer and return an int.
1694 * target.c (update_current_target): Change to_stopped_data_address
1695 to match new prototype.
1696 (debug_to_stopped_data_address): Change appropriately.
1697 * breakpoint.c (bpstat_stop_status): Change call to
1698 target_stopped_data_address to use new prototype.
1699 * frv-tdep.c (frv_have_stopped_data_address): New function.
1700 (frv_stopped_data_address): Change to new prototype and
1701 functionality.
1702 * ia64-linux-nat.c (ia64_stopped_data_address): Change to new
1703 prototype and functionality.
1704 (ia64_stopped_by_watchpoint): New function.
1705 * i386-nat.c (i386_stopped_data_address): Change to new
1706 prototype and functionality.
1707 (i386_stopped_by_watchpoint): New function.
1708 * remote.c (remote_stopped_data_address): Change to new prototype
1709 and functionality.
1710 * remote-m32r-sdi.c (m32r_stopped_data_address): Ditto.
1711 * config/frv/tm-frv.h (frv_stopped_data_address): Change prototype.
1712 (STOPPED_BY_WATCHPOINT): Change to use frv_have_stopped_data_address.
1713 * config/i386/nm-i386.h (STOPPED_BY_WATCHPOINT): Change to use
1714 new i386_stopped_by_watchpoint function.
1715 (i386_stopped_by_watchpoint): New prototype.
1716 (i386_stoppped_data_address): Change to new prototype.
1717 * config/ia64/nm-linux.h (STOPPED_BY_WATCHPOINT): Change to use
1718 new ia64_stopped_by_watchpoint function.
1719 (ia64_stopped_by_watchpoint): New prototype.
1720 (ia64_stopped_data_address): Ditto.
1721
1722 2004-10-08 Paul Hilfinger <Hilfinger@gnat.com>
1723
1724 * ada-typeprint.c (ada_print_type): Use int_string for printing
1725 modulus of modular type.
1726 * ada-lang.h (ada_modulus): Change return type to unsigned.
1727 * ada-lang.c (ada_language_arch_info): Correct type of
1728 string_char_type.
1729 (ada_modulus): Return unsigned result.
1730 (ada_lookup_symbol): Remove user disambiguation and modify comment
1731 accordingly.
1732
1733 2004-10-08 Eric Botcazou <ebotcazou@act-europe.fr>
1734
1735 Committed by Paul Hilfinger.
1736 * ada-lang.c (decode_packed_array): On big-endian targets,
1737 left-justify the value if it comes with a modular type.
1738
1739 2004-10-08 Joel Brobecker <brobecker@gnat.com>
1740
1741 Committed by Paul Hilfinger.
1742 * ada-lang.c (template_to_static_fixed_type): Fix a small typo.
1743 (is_name_suffix): Add support for "___JM" suffixes.
1744 (ada_check_typedef): Renames ada_completed_type.
1745 Update all users of CHECK_TYPEDEF, check_typedef, and
1746 ada_complete_type to call ada_check_typedef.
1747 * ada-typeprint.c: Likewise.
1748 * ada-valprint.c: Likewise.
1749
1750 2004-10-08 Corinna Vinschen <vinschen@redhat.com>
1751
1752 * infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
1753
1754 2004-10-08 Nick Roberts <nickrob@snap.net.nz>
1755
1756 * MAINTAINERS: Update e-mail address.
1757
1758 2004-10-07 Daniel Jacobowitz <dan@debian.org>
1759
1760 From Maciej W. Rozycki <macro@mips.com>:
1761 * mips-tdep.c (mips32_next_pc): Check the register's contents,
1762 not its number for BLEZ/BLEZL and BGTZ/BGTZL.
1763
1764 2004-10-07 Kei Sakamoto <sakamoto.kei@renesas.com>
1765
1766 * m32r-tdep.c (decode_prologue): Support functions written
1767 in assembler language. Recognize trap instructions as the
1768 end of prologue.
1769 (m32r_frame_unwind_cache): Ditto.
1770 (m32r_skip_prologue): Extend search limit. Quit analyzing
1771 prologue if pc's location is not readable.
1772
1773 2004-10-06 Paul N. Hilfinger <Hilfinger@gnat.com>
1774
1775 * Makefile.in (.l.c): Do conversions of names of alloc and free
1776 functions that are done for .y.c files, plus special one
1777 for yy_flex_realloc. Also, correct missing-file tests here.
1778 * ada-lex.l (malloc, free): Remove macros.
1779 (resize_tempbuf): Use "realloc"; rely on sed changes to convert to
1780 xrealloc.
1781 (ada_flex_use): Dummy definition to remove warnings about unused
1782 functions.
1783 * ada-exp.y (dummy_string_to_ada_operator): Temporary definition
1784 to suppress warning.
1785
1786 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1787
1788 * sh-tdep.c (sh_return_value_nofpu): New function, implementing
1789 RETURN_VALUE.
1790 (sh_return_value_fpu): Ditto for CPUs with FPU.
1791 (sh_gdbarch_init): Remove STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
1792 RETURN_VALUE_ON_STACK and USE_STRUCT_CONVENTION throughout.
1793 Install sh_return_value_nofpu resp. sh_return_value_fpu as
1794 RETURN_VALUE functions.
1795
1796 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1797
1798 * sh-tdep.c (sh_pseudo_register_read): Add PSEUDO_BANK_REGNUM handling.
1799 (sh_pseudo_register_write): Ditto.
1800
1801 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1802
1803 * sh-tdep.c (IS_MACL_STS): New define.
1804 (IS_MOVI20): Ditto.
1805 (IS_MACL_LDS): Ditto.
1806 (sh_analyze_prologue): Recognize STS.L MACL,@-r15 and MOVI20
1807 instructions in prologue.
1808 (sh_in_function_epilogue_p): Recognize LDS.L @r15+,MACL and MOVI20
1809 instructions in epilogue.
1810
1811 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1812
1813 * sh-tdep.c (SH_NUM_REGS): Define as 67.
1814 (sh_sh_register_name): Add eight empty register names.
1815 (sh_sh3_register_name): Ditto.
1816 (sh_sh3e_register_name): Ditto.
1817 (sh_sh2e_register_name): Ditto.
1818 (sh_sh2a_register_name): New function, defining SH2A register set.
1819 (sh_sh2a_nofpu_register_name): New function, defining SH2A register set
1820 in nofpu case.
1821 (sh_sh_dsp_register_name): Add eight empty register names.
1822 (sh_sh3_dsp_register_name): Ditto.
1823 (sh_sh4_register_name): Ditto.
1824 (sh_sh4_nofpu_register_name): Ditto.
1825 (sh_sh4al_dsp_register_name): Ditto.
1826 (sh2a_show_regs): New function.
1827 (sh2a_nofpu_show_regs): New function.
1828 (sh_sh2a_register_type): New function.
1829 (do_bank_register_info): New function.
1830 (sh_print_pseudo_register): Call do_bank_register_info.
1831 Call sh_print_pseudo_register for valid "bank" register.
1832 (sh_sh2a_register_sim_regno): New function.
1833 (sh_gdbarch_init): Add bfd_mach_sh2a and bfd_mach_sh2a_nofpu handling.
1834 Increment pseudo register count by one for all sh variants with
1835 pseudo registers to accomodate pseudo bank register.
1836 * sh-tdep.h: Add register numbers for R0_BANK0_REGNUM, MACHB_REGNUM,
1837 IVNB_REGNUM, PRB_REGNUM, GBRB_REGNUM, MACLB_REGNUM, BANK_REGNUM,
1838 IBCR_REGNUM, IBNR_REGNUM, TBR_REGNUM and PSEUDO_BANK_REGNUM.
1839 Increment pseudo register numbers.
1840
1841 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1842
1843 * dwarf2read.c (read_subroutine_type): Call make_function_type
1844 instead of lookup_function_type.
1845
1846 2004-10-05 Jim Blandy <jimb@redhat.com>
1847
1848 * linux-nat.c (_initialize_linux_nat): Rename child_ops.
1849 (Previous change missed some uses.)
1850
1851 2004-10-05 Andrew Cagney <cagney@gnu.org>
1852
1853 * target.h (deprecated_child_ops): Rename child_ops.
1854 * wince.c: Update copyright. Rename child_ops.
1855 * win32-nat.c: Rename child_ops.
1856 * target.c: Rename child_ops.
1857 * rs6000-nat.c: Rename child_ops.
1858 * linux-nat.c: Rename child_ops.
1859 * infttrace.c: Rename child_ops.
1860 * inftarg.c: Rename child_ops.
1861 * infptrace.c: Rename child_ops.
1862 * hppah-nat.c: Update copyright. Rename child_ops.
1863 * hpux-thread.c: Update copyright. Rename child_ops.
1864
1865 2004-10-05 Daniel Jacobowitz <dan@debian.org>
1866
1867 * remote.c (remote_xfer_partial): Handle TARGET_OBJECT_MEMORY.
1868
1869 2004-10-05 Andrew Cagney <cagney@gnu.org>
1870
1871 * version.in: Bump to version 6.2.50_YYYY-MM-DD-cvs.
1872
1873 2004-10-05 Daniel Jacobowitz <dan@debian.org>
1874
1875 * dwarf2read.c (REF_HASH_SIZE): Move earlier.
1876 (die_ref_table): Remove.
1877 (struct dwarf2_cu): Add DIES, DEPENDENCIES, and DIE_REF_TABLE.
1878 (struct dwarf2_per_cu_data): Add PSYMTAB. Add a comment describing
1879 the usage of this type.
1880 (struct dwarf2_per_objfile): Update comment for ALL_COMP_UNITS.
1881 (struct dwarf2_pinfo, PST_PRIVATE, DWARF_INFO_OFFSET): Remove.
1882 (struct dwarf2_queue_item, dwarf2_queue, dwarf2_queue_tail): New.
1883 (dwarf2_create_include_psymtab): Update comment.
1884 (find_partial_die): Remove third argument. Remove unreachable call
1885 to error ().
1886 (dwarf2_find_containing_comp_unit): Update comments. Change one
1887 assertion to an error. Remove an unreachable error.
1888 (dwarf2_find_comp_unit): Update comments.
1889 (type_at_offset): Remove dead code.
1890 (make_cleanup_free_die_list, dwarf2_empty_hash_tables): Remove.
1891 (store_in_ref_table): Add CU argument.
1892 (follow_die_ref): Take DIE, attribute, and CU arguments. Handle
1893 inter-compilation-unit references.
1894 (load_full_comp_unit, process_full_comp_unit): New functions, based
1895 on psymtab_to_symtab_1.
1896 (psymtab_to_symtab_1): Use them.
1897 (dwarf2_add_dependence): New function.
1898 (dwarf2_build_psymtabs_hard): Set the psymtab in per_cu. Always create
1899 a per_cu structure, and save it in READ_PSYMTAB_PRIVATE.
1900 (partial_die_parent_scope, guess_structure_name): Update for changes
1901 to find_partial_die.
1902 (dwarf2_psymtab_to_symtab): Initialize dwarf2_per_objfile here.
1903 (queue_comp_unit, process_queue, dwarf2_release_queue): New.
1904 (read_comp_unit): Don't call dwarf2_empty_hash_tables.
1905 (read_die_and_children): Update call to store_in_ref_table.
1906 (do_free_die_list_cleanup): Remove.
1907 (fixup_partial_die): Update for changes to find_partial_die.
1908 (read_full_die): Handle queueing absolute references.
1909 (read_attribute_value): Use DW_ADDR for all DW_FORM_ref* forms.
1910 (dwarf2_attr, die_specification, die_type)
1911 (die_containing_type, dwarf2_extension): Update calls to
1912 follow_die_ref.
1913 (dump_die): Update DW_FORM_ref* handling.
1914 (dwarf2_get_ref_die_offset): Likewise.
1915 (free_one_comp_unit): Release the dies list.
1916 (dwarf2_mark_helper): New function.
1917 (dwarf2_mark): Use it.
1918
1919 2004-10-05 Mark Kettenis <kettenis@jive.nl>
1920
1921 * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
1922 when writing to memory.
1923
1924 2004-10-05 Kei Sakamoto <sakamoto.kei@renesas.com>
1925
1926 * m32r-tdep.c (m32r_use_struct_convention): Delete function.
1927 (m32r_extract_struct_value_address): Delete function.
1928 (m32r_return_value): New function.
1929 (m32r_gdbarch_init): Instead of store_return_value,
1930 extract_return_value, deprecated_extract_struct_value_address
1931 and deprecated_use_struct_convention, set return_value.
1932
1933 2004-10-03 Daniel Jacobowitz <dan@debian.org>
1934
1935 * dwarf2read.c (read_subrange_type): Add comment for variable
1936 sized arrays.
1937
1938 2004-10-03 Paul Hilfinger <hilfingr@nile.gnat.com>
1939
1940 * Makefile.in (.l.c): Modify rule for compatibility with recent
1941 versions of flex, and remove most command-line options.
1942 * ada-lex.l: Add %options line in place of -I -i and -s command-line
1943 options.
1944
1945 2004-10-02 Paul N. Hilfinger <Hilfinger@gnat.com>
1946
1947 Turn on initial Ada support (mainly expression evaluation).
1948
1949 * Makefile.in (SFILES): Remove ada-tasks.c.
1950 (HFILES_NO_SRCDIR): Add ada-lang.h.
1951 (COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
1952 (YYOBJ): Add ada-exp.o.
1953 (rule .l.c): Generalize to not mention ada.
1954 * symtab.c: Include ada-lang.h.
1955 (symbol_natural_name, symbol_demangled_name)
1956 (symbol_search_name): Add Ada case.
1957
1958 2004-10-01 Andrew Cagney <cagney@gnu.org>
1959
1960 * Makefile.in (COMMON_OBS): Add inf-child.o.
1961 * config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
1962 * config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
1963 * config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
1964 * config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
1965 * config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
1966 * config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
1967 * config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
1968 * config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
1969 * config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
1970 * config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
1971 * config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
1972 * config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
1973 * config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
1974
1975 * target.c (xfer_using_stratum): Change return type to LONGEST.
1976 On each iteration offset, readbuf and writebuf.
1977 * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
1978 partial_length, and read/modify/write predicate, update comments.
1979 Pass buffer.word to ptrace write.
1980
1981 2004-10-01 Paul N. Hilfinger <Hilfinger@gnat.com>
1982
1983 * symfile.c (init_filename_language_table): Add extensions for
1984 Ada.
1985 * defs.h (enum language): Add language_ada.
1986 * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
1987 * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
1988 (add_symbols_from_enclosing_procs): Make a no-op for now.
1989 (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
1990 (extended_canonical_line_spec, find_sal_from_funcs_and_line)
1991 (find_line_in_linetable, find_next_line_in_linetable)
1992 (read_all_symtabs, is_plausible_func_for_line)
1993 (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
1994 (is_runtime_sym_defined, check_size): Remove declaration.
1995 (function_name_from_pc, ada_translate_error_message)
1996 (ada_lookup_minimal_symbol): Remove definition.
1997 (ada_add_block_symbols): Remove useless label.
1998 * ada-lang.h (ada_maybe_exception_partial_symbol): Remove
1999 useless declaration.
2000 (ada_is_exception_sym): Likewise.
2001
2002 2004-09-30 Kei Sakamoto <sakamoto.kei@renesas.com>
2003
2004 Add m32r-linux support.
2005 * configure.tgt: Add m32r*-*-linux*.
2006 * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
2007 and m32r-linux-tdep.c.
2008 (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
2009 * m32r-tdep.c: Move some definitions to m32r-tdep.h.
2010 * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
2011 m32r-linux-tdep.c.
2012 * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
2013 config/m32r/linux.mh, config/m32r/linux.mt,
2014 config/m32r/nm-linux.h: New files.
2015
2016 2004-09-30 Joel Brobecker <brobecker@gnat.com>
2017
2018 * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
2019 (mips32_fetch_instruction): Remove, unused.
2020
2021 2004-09-30 Joel Brobecker <brobecker@gnat.com>
2022
2023 * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
2024 conditions that will always be true.
2025
2026 2004-09-30 Mark Kettenis <kettenis@gnu.org>
2027
2028 * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
2029 (vaxbsd_fetch_inferior_registers): Rename from
2030 fetch_inferior_registers. Make static.
2031 (vaxbsd_store_inferior_registers): Rename from
2032 store_inferior_registers. Make static.
2033 (_initialize_vaxbsd_nat): Construct and add target vector.
2034 * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
2035 inftarg.o. Add inf-child.o and inf-ptrace.o.
2036 * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
2037 inftarg.o. Add inf-child.o and inf-ptrace.o.
2038 (NAT_FILE): Remove.
2039 * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
2040 inftarg.o. Add inf-child.o and inf-ptrace.o.
2041 (NAT_FILE): Remove.
2042 * Makefile.in (vaxbsd-nat.o): Update dependencies.
2043
2044 * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
2045 (m88kbsd_fetch_inferior_registers): Rename from
2046 fetch_inferior_registers. Make static.
2047 (m88kbsd_store_inferior_registers): Rename from
2048 store_inferior_registers. Make static.
2049 (_initialize_m88kbsd_nat): New prototype and function.
2050 * config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
2051 inftarg.o. Add inf-child.o and inf-ptrace.o.
2052 (NAT_FILE): Remove.
2053 * Makefile.in (m88kbsd-nat.o): Update dependencies.
2054
2055 2004-09-30 Andrew Cagney <cagney@gnu.org>
2056
2057 * target.c (target_xfer_partial): New function.
2058 (target_read_memory_partial, target_write_memory_partial)
2059 (default_xfer_partial, target_read_partial, target_write_partial)
2060 (xfer_using_stratum): Use.
2061 (debug_to_xfer_partial): Delete function.
2062 (setup_target_debug): Do not override to_xfer_partial.
2063
2064 2004-09-30 Mark Kettenis <kettenis@chello.nl>
2065
2066 * fork-child.c: Update copyright year. Fix coding style.
2067
2068 2004-09-29 Mark Kettenis <kettenis@gnu.org>
2069
2070 * defs.h (msavestring, mstrsave): Remove prototypes.
2071 * utils.c (msavestring, mstrsave): Remove functions.
2072 * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
2073 * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
2074 of mstrsave.
2075 * source.c (find_and_open_source): Use xstrdup instead of
2076 mstrsave.
2077
2078 2004-09-30 Andrew Cagney <cagney@gnu.org>
2079
2080 * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
2081 (inf_ptrace_xfer_memory): Delete.
2082 * target.c (target_xfer_partial_p, xfer_using_stratum): New.
2083 (target_read_memory, target_write_memory): Use xfer_using_stratum
2084 when target_xfer_partial_p.
2085 (debug_target): Move to start of file.
2086 (target_read_memory_partial, target_write_memory_partial): Use
2087 to_xfer_partial when target_xfer_partial_p.
2088
2089 * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
2090 inf_ptrace_xfer_memory with equivalent code.
2091 * inftarg.c (child_xfer_partial): When performing a write, pass
2092 writebuf to child_xfer_memory.
2093
2094 * target.c (target_read_string): Use target_read_memory instead of
2095 target_xfer_memory.
2096
2097 2004-09-29 Andrew Cagney <cagney@gnu.org>
2098
2099 * infptrace.c (kill_inferior): Fix typo, in previous inline. Pass
2100 the address of status.
2101
2102 * infptrace.c (ptrace_wait): Mention problem with HPUX.
2103 (kill_inferior): Inline ptrace_wait call.
2104 * linux-nat.c (kill_inferior): Inline ptrace_wait call.
2105 * inftarg.c (child_wait): Inline ptrace_wait call.
2106
2107 * target.h (struct target_ops): Delete field to_post_wait.
2108 (target_post_wait): Delete macro.
2109 (child_post_wait): Delete declaration.
2110 * target.c (update_current_target, update_current_target)
2111 (debug_to_post_wait, setup_target_debug): Delete functions and
2112 references.
2113 * infttrace.c (ptrace_wait): Delete call to target_post_wait.
2114 * inftarg.c (child_post_wait): Delete.
2115 (init_child_ops): Do not set to_post_wait.
2116 * infptrace.c (ptrace_wait): Delete call to target_post_wait.
2117 * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
2118 * inf-child.c (inf_child_post_wait): Delete.
2119 (inf_child_target): Do not set to_post_wait.
2120 * inf-ptrace.c (inf_ptrace_post_wait): Delete.
2121 (inf_ptrace_target): Do not set to_post_wait.
2122
2123 * wince.c (child_ops): Delete.
2124 * win32-nat.c (child_ops): Delete.
2125
2126 * inftarg.c (inftarg_set_find_memory_regions)
2127 (inftarg_set_make_corefile_notes): Delete functions.
2128 (_initialize_linux_nat): Inline calls.
2129
2130 * target.h (child_ops): Declare.
2131 * inftarg.c (child_ops): Move from here ...
2132 * target.c (child_ops): ... to here.
2133 * wince.c (child_ops): Delete extern declaration.
2134 * win32-nat.c (child_ops): Delete extern declaration.
2135 * linux-nat.c (child_ops): Delete extern declaration.
2136 * hpux-thread.c (child_ops): Delete extern declaration.
2137
2138 2004-09-28 Mark Kettenis <kettenis@gnu.org>
2139
2140 * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
2141
2142 2004-09-28 Mark Kettenis <kettenis@gnu.org>
2143
2144 * configure.in: Only set host_makefile_frag when building a native
2145 debugger.
2146 * configure: Regenerate.
2147
2148 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
2149 for OpenBSD ELF.
2150
2151 2004-09-28 Andrew Cagney <cagney@gnu.org>
2152
2153 Problem identified by Paul Hilfinger.
2154 * Makefile.in (ada_lex_c): Define.
2155 (ada-lex.o): Delete rule.
2156
2157 * linux-proc.c: Delete file.
2158 * Makefile.in: Update.
2159 * config/sparc/linux64.mh (NATDEPFILES):
2160 * config/sparc/linux.mh (NATDEPFILES): Update.
2161 * config/s390/s390.mh (NATDEPFILES): Update.
2162 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
2163 * config/powerpc/linux.mh (NATDEPFILES): Update.
2164 * config/pa/linux.mh (NATDEPFILES): Update.
2165 * config/mips/linux.mh (NATDEPFILES): Update.
2166 * config/m68k/linux.mh (NATDEPFILES): Update.
2167 * config/ia64/linux.mh (NATDEPFILES): Update.
2168 * config/i386/linux64.mh (NATDEPFILES): Update.
2169 * config/i386/linux.mh (NATDEPFILES): Update.
2170 * config/arm/linux.mh (NATDEPFILES): Update.
2171 * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
2172 * linux-nat.c: Update copyright. Include <sys/param.h>,
2173 <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
2174 "gdbthread.h", "gdb_stat.h", <fcntl.h>.
2175 (O_LARGEFILE): Possibly define.
2176 (_initialize_linux_nat, linux_proc_pending_signals)
2177 (add_line_to_sigset, linux_proc_xfer_memory)
2178 (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
2179 (linux_nat_do_registers, linux_nat_corefile_thread_callback)
2180 (struct linux_corefile_thread_data)
2181 (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
2182 (child_pid_to_exec_file): Insert code previously in linux-proc.c.
2183
2184 2004-09-16 Andrew Cagney <cagney@gnu.org>
2185
2186 * lin-lwp.c: Delete file.
2187 * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
2188 <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
2189 (status_to_str, init_lwp_list, add_lwp, delete_lwp)
2190 (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
2191 (linux_nat_attach, detach_callback, linux_nat_detach)
2192 (resume_callback, resume_clear_callback, linux_nat_resume)
2193 (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
2194 (stop_wait_callback, linux_nat_has_pending, flush_callback)
2195 (status_callback, running_callback, count_events_callback)
2196 (select_singlestep_lwp_callback, select_event_lwp_callback)
2197 (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
2198 (child_wait, stop_and_resume_callback, linux_nat_wait)
2199 (kill_callback, kill_wait_callback, linux_nat_kill)
2200 (linux_nat_create_inferior, linux_nat_mourn_inferior)
2201 (linux_nat_xfer_memory, linux_nat_thread_alive)
2202 (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
2203 (_initialize_linux_nat): New functions.
2204 * Makefile.in: Update all dependencies.
2205 * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
2206 * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2207 * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
2208 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
2209 * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2210 * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2211 * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2212 * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2213 * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2214 * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
2215 * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2216 * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2217 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
2218
2219 2004-09-27 Mark Kettenis <kettenis@gnu.org>
2220
2221 * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
2222 config/i386/obsd64.mh (NAT_FILE): Remove variable.
2223
2224 * configure.in: Don't comment out NATDEPFILES in the generated
2225 Makefile if NAT_FILE is unset.
2226 * configure: Regenerate.
2227
2228 2004-09-27 Andrew Cagney <cagney@gnu.org>
2229
2230 * infrun.c (check_for_old_step_resume_breakpoint): Delete.
2231 (insert_step_resume_breakpoint): Delete.
2232 (insert_step_resume_breakpoint_at_frame): New function.
2233 (insert_step_resume_breakpoint_at_sal): New function.
2234 (handle_inferior_event, step_into_function)
2235 (insert_step_resume_breakpoint): Simplify by using same.
2236
2237 * gdb_indent.sh (types): Add caddr_t to list of predefined types.
2238
2239 2004-09-26 Mark Kettenis <kettenis@gnu.org>
2240
2241 * fbsd-proc.c: Remove file.
2242 * Makefile.in (fbsd-proc.o): Remove dependency.
2243
2244 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
2245 code together.
2246
2247 * config/i386/nm-fbsd64.h: Remove file.
2248 * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2249
2250 2004-09-26 Mark Kettenis <kettenis@gnu.org>
2251
2252 * amd64-nat.h: Update copyright year.
2253 (amd64bsd_target): New prototype.
2254 * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
2255 (amd64bsd_target): New function.
2256 (amd64bsd_fetch_inferior_registers): Rename from
2257 fetch_inferior_registers. Make static.
2258 (amd64bsd_store_inferior_registers): Rename from
2259 store_inferior_registers. Make static.
2260 * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
2261 (_initialize_amd64fbsd_nat): Construct and add target vector.
2262 * amd64nbsd-nat.o: Include "target.h".
2263 (_initialize_amd64nbsd_nat): Construct and add target vector.
2264 * amd64obsd-nat.c: Include "target.h".
2265 (_initialize_amd64obsd_nat): Construct and add target vector.
2266 * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
2267 * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
2268 inftarg.o and fbsd-proc.o. Add inf-child.o, inf-ptrace.o and
2269 fbsd-nat.o.
2270 * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
2271 Remove infptrace.o and inftarg.o. Add inf-child.o and
2272 inf-ptrace.o.
2273 * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
2274 (amd64obsd-nat.o): Update dependencies.
2275
2276 2004-09-25 Mark Kettenis <kettenis@gnu.org>
2277
2278 * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
2279 * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
2280 * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
2281 * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
2282 * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
2283
2284 * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
2285 Inline attach call.
2286 (inf_ptrace_detach): Inline detach call.
2287
2288 * configure.in: Check for waddstr instead of mvwaddstr when
2289 searching for curses library. Check for wborder.
2290 * configure, config.in: Regenerate.
2291 * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
2292 available.
2293
2294 * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
2295
2296 2004-09-24 Robert Picco <Robert.Picco@hp.com>
2297
2298 Committed by Andrew Cagney.
2299 * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
2300 (show_remote_protocol_p_packet_cmd): New. Implement 'p' packet.
2301 configuration.
2302 (fetch_register_using_p): Implement 'p' packet. Based on code by
2303 Fernando Nasser.
2304 (remote_fetch_registers): Call fetch_register_using_p.
2305 (init_all_packet_configs, show_remote_cmd)
2306 (_initialize_remote): Add p-packet.
2307
2308 2004-09-24 Mark Kettenis <kettenis@gnu.org>
2309
2310 * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
2311 instead of call_ptrace. Call wait directly instead of
2312 ptrace_wait.
2313 (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
2314 (inf_ptrace_wait): Inline ptrace_wait call.
2315
2316 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
2317
2318 * Makefile.in (.y.c): Revert previous change. ../ylwrap was
2319 rolled back instead.
2320
2321 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
2322
2323 * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
2324 the new argument order.
2325
2326 2004-09-23 Corinna Vinschen <vinschen@redhat.com>
2327
2328 * MAINTAINERS: Remove "broken" from XStormy16 entry.
2329 * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
2330 (struct gdbarch_tdep): Remove.
2331 (struct xstormy16_frame_cache): New frame cache structure.
2332 (xstormy16_register_byte, xstormy16_register_raw_size)
2333 (xstormy16_reg_virtual_type, xstormy16_register_type)
2334 (xstormy16_push_arguments, xstormy16_push_return_address)
2335 (xstormy16_pop_frame, xstormy16_store_struct_return)
2336 (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
2337 (xstormy16_frame_saved_register, xstormy16_get_saved_register)
2338 (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
2339 (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
2340 (xstormy16_frame_chain, xstormy16_frame_chain_valid,
2341 (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
2342 (xstormy16_use_struct_convention): Drop gcc_p parameter.
2343 (xstormy16_extract_return_value, xstormy16_store_return_value):
2344 Regcachify. Drop useless struct convention handling.
2345 (xstormy16_register_type, xstormy16_return_value)
2346 (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
2347 (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
2348 (xstormy16_frame_prev_register, xstormy16_frame_this_id)
2349 (xstormy16_frame_base_address, xstormy16_frame_sniffer)
2350 (xstormy16_unwind_sp, xstormy16_unwind_pc)
2351 (xstormy16_unwind_dummy_id) : New functions.
2352 (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
2353 of xstormy16_scan_prologue.
2354 (xstormy16_frame_unwind): New frame_unwind structure.
2355 (xstormy16_frame_base): New frame_base structure.
2356 (xstormy16_gdbarch_init): Accomodate all of the above changes.
2357 Reshuffle for better readability. Also add dwarf2_frame_sniffer.
2358
2359 2004-09-22 Mark Kettenis <kettenis@gnu.org>
2360
2361 * language.c (language_gdbarch_post_init): Fix off-by one error.
2362
2363 2004-09-21 Daniel Jacobowitz <dan@debian.org>
2364
2365 * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
2366 (struct dwarf2_offset_and_type): New.
2367 (set_die_type, reset_die_and_siblings_types, get_die_type)
2368 (offset_and_type_hash, offset_and_type_eq): New functions.
2369 (read_structure_type, read_enumeration_type, read_array_type)
2370 (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
2371 (read_tag_reference_type, read_tag_const_type)
2372 (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
2373 (read_typedef, read_base_type, read_subrange_type): Use
2374 set_die_type.
2375
2376 2004-09-20 Daniel Jacobowitz <dan@debian.org>
2377
2378 * Makefile.in (dwarf2read.o): Update dependencies.
2379 * dwarf2read.c: Include "command.h" and "gdbcmd.h".
2380 (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
2381 and read_in_chain.
2382 (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
2383 mark, and has_form_ref_addr.
2384 (struct dwarf2_per_cu_data): New.
2385 (dwarf2_max_cache_age): New.
2386 (dwarf2_build_psymtabs_hard): Free cached compilation units
2387 after loading. Create and manage the list of compilation units.
2388 Remove unnecessary NULL initialization. Fix indentation.
2389 (psymtab_to_symtab_1): Initialize all of CU.
2390 (dwarf2_read_abbrevs): Set has_form_ref_addr.
2391 (find_partial_die): Use dwarf2_find_containing_comp_unit
2392 and load_comp_unit.
2393 (free_stack_comp_unit): Update comments. Clear the per-cu
2394 pointer. Handle aging.
2395 (dwarf2_find_containing_comp_unit, free_cached_comp_units)
2396 (age_cached_comp_units, free_one_cached_comp_unit)
2397 (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
2398 (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
2399 (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
2400 (show_dwarf2_cmd): New.
2401 (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
2402 and "maint show dwarf2 max-cache-age".
2403 * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
2404 externs.
2405 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
2406 global.
2407
2408 2004-09-20 Jeff Johnston <jjohnstn@redhat.com>
2409
2410 * dwarf2read.c (typename_concat): Change prototype to accept obstack
2411 and dwarf2_cu struct pointer as arguments. Change function to use
2412 obstack if provided and use dwarf2_cu to determine language-specific
2413 separator.
2414 (partial_die_parent_scope): Change comment to include java. Use
2415 new version of typename_concat instead of obconcat.
2416 (partial_die_full_name): Use typename_concat.
2417 (read_namespace): Ditto.
2418 (read_enumeration_type): Use typename_concat instead of obconcat.
2419 (new_symbol): Ditto.
2420 (add_partial_symbol): Enhance tests for C++ to also test for Java.
2421 (guess_structure_name): Ditto.
2422 (read_subroutine_type): Ditto.
2423 (read_structure_type): Ditto.
2424 (is_vtable_name): Add Java support.
2425 (determine_class_name): Switch to new typename_concat call.
2426 (determine_prefix): Switch to new typename_concat call.
2427 * jv-exp.y (FuncStart): New pattern.
2428 (MethodInvocation): Add support for simple function calls. Change
2429 warning message for other forms of inferior call currently not
2430 supported.
2431 * valarith.c (value_subscript): Treat an array with upper-bound
2432 of -1 as unknown size.
2433
2434 2004-09-20 Daniel Jacobowitz <dan@debian.org>
2435
2436 * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
2437 (lookup_partial_symtab): Use symtab_to_fullname.
2438
2439 2004-09-19 Jim Blandy <jimb@redhat.com>
2440
2441 * minsyms.c (lookup_minimal_symbol): Doc fix.
2442
2443 2004-09-20 Andrew Cagney <cagney@gnu.org>
2444
2445 * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
2446 CHILD_RESUME.
2447 * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
2448 * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
2449 KILL_INFERIOR.
2450 * infptrace.c: Update.
2451
2452 2004-09-19 Daniel Jacobowitz <dan@debian.org>
2453
2454 * symtab.c (output_source_filename): Mark first argument as const.
2455 (sources_info): Use symtab_to_fullname and psymtab_to_fullname
2456 for "info sources" output.
2457
2458 2004-09-20 Mark Kettenis <kettenis@gnu.org>
2459
2460 * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
2461 <machine/vmparam.h>.
2462 (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
2463 (register_u_addr): Remove prototype.
2464
2465 2004-09-19 Mark Kettenis <kettenis@gnu.org>
2466
2467 * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
2468 (i386bsd_fetch_inferior_registers): Rename from
2469 fetch_inferior_registers. Make static.
2470 (i386bsd_store_inferior_registers): Rename from
2471 store_inferior_registers. Make static.
2472 (i386bsd_target): New function.
2473 * i386bsd-nat.h: New file.
2474 * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
2475 "i386bsd-nat.h".
2476 (i386fbsd_resume): Rename from child_resume. Make static.
2477 (_initialize_i386fbsd_nat): Construct and add target vector.
2478 * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
2479 (_initialize_i386nbsd_nat): Construct and add target vector.
2480 * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
2481 Remove defines.
2482 * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
2483 and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
2484 * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
2485 inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
2486 (LOADLIBES): New variable.
2487 * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
2488 inf-ptrace.o. Remove inftarg.o.
2489 * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
2490 inf-ptrace.o. Remove inftarg.o.
2491 * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
2492 inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
2493 (LOADLIBES): New variable.
2494 * Makefile.in (i386bsd_nat_h): New variable.
2495 (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
2496 dependencies.
2497
2498 * sparc64nbsd-tdep.c: Include "objfiles.h".
2499 (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
2500 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
2501 svr4_lp64_fetch_link_map_offsets.
2502 * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
2503 "nbsd-tdep.h".
2504 (sparc64obsd_init_abi): Set in_solib_call_trampoline and
2505 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
2506 svr4_lp64_fetch_link_map_offsets.
2507 * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
2508 dependencies.
2509
2510 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
2511 * fbsd-nat.h: New file.
2512 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
2513 (fbsd_nat_h): New variable.
2514 (fbsd-nat.o): New dependency.
2515
2516 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
2517 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
2518
2519 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
2520 comment.
2521
2522 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
2523
2524 * ada-exp.y (type_int): New function to add layer of abstraction
2525 around references to expression types.
2526 (type_long): Ditto.
2527 (type_long_long): Ditto.
2528 (type_float): Ditto.
2529 (type_double): Ditto.
2530 (type_long_double): Ditto.
2531 (type_char): Ditto.
2532 (type_system_address): Ditto.
2533 (simple_exp): Use type_* functions in place of builtin_*
2534 variables.
2535 (exp): Ditto.
2536 (write_var_from_name): Ditto.
2537 (write_object_renaming): Ditto.
2538 * ada-lang.c (ada_create_fundamental_type): Remove redundant
2539 declaration.
2540 (build_ada_types): Remove, replacing with...
2541 (ada_language_arch_info): New function to initialize primitive
2542 type vector in language_arch_info.
2543 (ada_array_length): Remove use of builtin_type_ada_int.
2544 (value_pos_atr): Ditto.
2545 (ada_evaluate_subexp): Ditto.
2546 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
2547 builtin_type_ada_long_long, builtin_type_ada_char,
2548 builtin_type_ada_float, builtin_type_ada_double,
2549 builtin_type_ada_long_double, builtin_type_ada_natural,
2550 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
2551 (ada_builtin_types): Remove.
2552 (ada_language_defn): Remove entries for la_builtin_type_vector and
2553 string_char_type and use ada_language_arch_info.
2554 (_initialize_ada_language): Do type-vector initialization along
2555 the lines of c-lang.c.
2556 (ada_create_fundamental_type): Break up line.
2557 (ada_dump_symtab): Remove unused function.
2558 (enum ada_primitive_types): Define.
2559 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
2560 builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
2561 builtin_type_ada_float, builtin_type_ada_double,
2562 builtin_type_ada_long_double, builtin_type_ada_natural,
2563 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
2564 * ada-lex.l: Use type_* functions in place of builtin_* variables.
2565 (processInt): Ditto.
2566 (processReal): Ditto.
2567 (name_lookup): Ditto.
2568 * ada-typeprint.c (print_range): Use builtin_type_int, not
2569 builtin_type_ada_int.
2570
2571 2004-09-18 Mark Kettenis <kettenis@gnu.org>
2572
2573 * i386-tdep.c (i386_register_name): Rename regno to regnum.
2574
2575 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
2576 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
2577 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
2578 * configure.in: Improve checks for curses library by checking for
2579 mvwaddstr instead of initscr. Drop HP curses in favour of
2580 standard curses on HP-UX.
2581 * configure: Regenerated.
2582
2583 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
2584
2585 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
2586 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
2587 Minor formatting changes.
2588 (empty_array): Slight rewrite for formatting.
2589 (emit_char,parse,ada_language_defn,build_ada_types,
2590 ada_is_exception_sym, _initialize_ada_language): Move
2591 definitions around.
2592 (ada_dump_symtab): Remove unused definition.
2593 (ada_maybe_exception_partial_symbol): Remove unused definition.
2594
2595 2004-09-16 Andrew Cagney <cagney@gnu.org>
2596
2597 * inf-child.c: Include "gdb_string.h".
2598 (inf_child_core_file_to_sym_file): Delete.
2599 (inf_child_target): Set to_fetch_registers and to_store_registers.
2600 * inf-ptrace.c: Include "gdb_string.h".
2601 * Makefile.in: Update all dependencies.
2602
2603 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
2604 problem.
2605
2606 2004-09-14 Joel Brobecker <brobecker@gnat.com>
2607
2608 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
2609 call to heuristic_proc_desc. Remove code that became redundant
2610 as a consequence.
2611 (read_next_frame_reg): Remove special case for SP_REGNUM.
2612 (set_reg_offset): Fix small typo.
2613 (reset_saved_regs): New procedure.
2614 (mips32_heuristic_proc_desc): No longer compute a fake
2615 procedure descriptor. Compute the full frame cache instead.
2616 Some minor comment reformatting.
2617
2618 2004-09-14 Andrew Cagney <cagney@gnu.org>
2619
2620 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
2621 maintainer.
2622
2623 * thread-db.c (thread_db_new_objfile): Assume that there is a
2624 child process.
2625
2626 2004-09-13 Jim Blandy <jimb@redhat.com>
2627
2628 * valops.c (value_assign): Move 'buffer' to the enclosing block,
2629 so that its storage isn't referenced after its lifetime ends.
2630
2631 * valops.c (value_assign): 'use_buffer' is initialized to zero,
2632 and never assigned to. Delete it, and the 'if (use_buffer)'
2633 clauses. Delete 'raw_buffer', since it is now unused.
2634
2635 2004-09-13 Andrew Cagney <cagney@gnu.org>
2636
2637 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
2638 * configure: Re-generate.
2639 * nlm/Makefile.in (TAGS): Update.
2640 * Makefile.in (TAGS): Update.
2641 * config/vax/nbsd.mt (TM_FILE): Update.
2642 * config/sparc/vxworks.mt (TM_FILE): Update.
2643 * config/sparc/sol2.mt (TM_FILE): Update.
2644 * config/sparc/sol2-64.mt (TM_FILE): Update.
2645 * config/sparc/obsd64.mt (TM_FILE): Update.
2646 * config/sparc/obsd.mt (TM_FILE): Update.
2647 * config/sparc/nbsd64.mt (TM_FILE): Update.
2648 * config/sparc/nbsd.mt (TM_FILE): Update.
2649 * config/sparc/linux64.mt (TM_FILE): Update.
2650 * config/sparc/linux.mt (TM_FILE): Update.
2651 * config/sparc/fbsd.mt (TM_FILE): Update.
2652 * config/sh/wince.mt (TM_FILE): Update.
2653 * config/sh/nbsd.mt (TM_FILE): Update.
2654 * config/sh/linux.mt (TM_FILE): Update.
2655 * config/sh/embed.mt (TM_FILE): Update.
2656 * config/s390/s390.mt (TM_FILE): Update.
2657 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
2658 * config/rs6000/rs6000.mt (TM_FILE): Update.
2659 * config/rs6000/aix4.mt (TM_FILE): Update.
2660 * config/powerpc/vxworks.mt (TM_FILE): Update.
2661 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
2662 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
2663 * config/powerpc/obsd.mt (TM_FILE): Update.
2664 * config/powerpc/nbsd.mt (TM_FILE): Update.
2665 * config/powerpc/linux.mt (TM_FILE): Update.
2666 * config/powerpc/aix.mt (TM_FILE): Update.
2667 * config/pa/obsd.mt (TM_FILE): Update.
2668 * config/pa/linux.mt (TM_FILE): Update.
2669 * config/pa/hppahpux.mt (TM_FILE): Update.
2670 * config/pa/hppa64.mt (TM_FILE): Update.
2671 * config/pa/hppa.mt (TM_FILE): Update.
2672 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
2673 * config/mips/wince.mt (TM_FILE): Update.
2674 * config/mips/vxmips.mt (TM_FILE): Update.
2675 * config/mips/nbsd.mt (TM_FILE): Update.
2676 * config/mips/linux.mt (TM_FILE): Update.
2677 * config/mips/irix6.mt (TM_FILE): Update.
2678 * config/mips/irix5.mt (TM_FILE): Update.
2679 * config/mips/embed.mt (TM_FILE): Update.
2680 * config/m68k/vxworks68.mt (TM_FILE): Update.
2681 * config/m68k/st2000.mt (TM_FILE): Update.
2682 * config/m68k/os68k.mt (TM_FILE): Update.
2683 * config/m68k/obsd.mt (TM_FILE): Update.
2684 * config/m68k/nbsd.mt (TM_FILE): Update.
2685 * config/m68k/monitor.mt (TM_FILE): Update.
2686 * config/m68k/linux.mt (TM_FILE): Update.
2687 * config/m68k/cisco.mt (TM_FILE): Update.
2688 * config/ia64/linux.mt (TM_FILE): Update.
2689 * config/ia64/aix.mt (TM_FILE): Update.
2690 * config/ia64/ia64.mt (TM_FILE): Update.
2691 * config/i386/vxworks.mt (TM_FILE): Update.
2692 * config/i386/obsd64.mt (TM_FILE): Update.
2693 * config/i386/obsd.mt (TM_FILE): Update.
2694 * config/i386/nto.mt (TM_FILE): Update.
2695 * config/i386/nbsd64.mt (TM_FILE): Update.
2696 * config/i386/nbsd.mt (TM_FILE): Update.
2697 * config/i386/linux64.mt (TM_FILE): Update.
2698 * config/i386/linux.mt (TM_FILE): Update.
2699 * config/i386/i386sol2.mt (TM_FILE): Update.
2700 * config/i386/i386lynx.mt (TM_FILE): Update.
2701 * config/i386/fbsd64.mt (TM_FILE): Update.
2702 * config/i386/fbsd.mt (TM_FILE): Update.
2703 * config/i386/cygwin.mt (TM_FILE): Update.
2704 * config/h8300/h8300.mt (TM_FILE): Update.
2705 * config/frv/frv.mt (TM_FILE): Update.
2706 * config/cris/cris.mt (TM_FILE): Update.
2707 * config/arm/wince.mt (TM_FILE): Update.
2708 * config/arm/nbsd.mt (TM_FILE): Update.
2709 * config/arm/linux.mt (TM_FILE): Update.
2710 * config/arm/embed.mt (TM_FILE): Update.
2711 * config/alpha/nbsd.mt (TM_FILE): Update.
2712 * config/alpha/fbsd.mt (TM_FILE): Update.
2713 * config/alpha/alpha.mt (TM_FILE): Update.
2714 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
2715 * config/alpha/alpha-linux.mt (TM_FILE): Update.
2716
2717 Eliminate event_loop_p, always has the value 1.
2718 * defs.h (event_loop_p): Delete macro.
2719 * breakpoint.c (until_break_command): Simplify.
2720 * utils.c (prompt_for_continue): Simplify.
2721 * tracepoint.c (read_actions): Simplify.
2722 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
2723 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
2724 (set_prompt, init_main): Simplify.
2725 (init_signals, disconnect): Delete, unused.
2726 * remote.c (remote_async_resume)
2727 (extended_remote_async_create_inferior): Simplify.
2728 * mi/mi-interp.c (mi_input): Delete, unused.
2729 (mi_interpreter_resume, mi_command_loop): Simplify.
2730 * interps.c (current_interp_command_loop): Simplify.
2731 * infrun.c (proceed): Simplify.
2732 * infcmd.c (run_command, continue_command, step_1, jump_command)
2733 (until_command, advance_command, finish_command)
2734 (interrupt_target_command): Simplify.
2735 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
2736
2737 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2738 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2739 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2740 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2741 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2742 * mips-tdep.c (mips_dump_tdep): Do not print same.
2743
2744 2004-09-12 Andrew Cagney <cagney@gnu.org>
2745
2746 * valprint.c (print_longest): Use fputs_filtered. Make "val"
2747 const.
2748 * Makefile.in (valprint.o): Delete explict rule.
2749
2750 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
2751 reported by Dave Anderson.
2752
2753 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
2754
2755 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
2756
2757 2004-09-12 Salvador E. Tropea <set@users.sf.net>
2758 Andrew Cagney <cagney@gnu.org>
2759
2760 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
2761 (mi_cmd_data_list_register_values)
2762 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
2763 the register number computation.
2764
2765 2004-09-12 Andrew Cagney <cagney@gnu.org>
2766
2767 * ppcnbsd-nat.c: Include "inf-ptrace.h".
2768 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
2769 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
2770 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
2771 target.
2772 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
2773 inf-ptrace.o and inf-child.o.
2774 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
2775 * Makefile.in: Update dependencies.
2776
2777 2004-09-11 Andrew Cagney <cagney@gnu.org>
2778
2779 * language.c (hex_string, hex_string_custom): Move from here ...
2780 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
2781 (CELLSIZE): Increase to 50.
2782 * language.h (hex_string, hex_string_custom): Move from here ...
2783 * defs.h: ... to here.
2784 * Makefile.in: Update all dependencies.
2785
2786 2004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
2787
2788 * language.c (local_hex_format_custom): Remove.
2789 (local_hex_string): Rename to hex_string, use C format, and move to
2790 utils.c
2791 (local_hex_string_custom): Rename to hex_string_custom and change
2792 interface. Now uses C format. Move to utils.c
2793 (local_octal_format_custom): Remove.
2794 (local_decimal_format_custom): Remove.
2795 (unknown_language_defn): Remove language-specific number
2796 formatting entries.
2797 (auto_language_defn): Ditto.
2798 (local_language_defn): Ditto.
2799 * language.h (struct language_format_info): Delete declaration.
2800 (struct language_defn): Remove language_format_info fields
2801 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
2802 (local_binary_format): Remove macro.
2803 (local_binary_format_prefix): Remove macro.
2804 (local_binary_format_specifier): Remove macro.
2805 (local_binary_format_suffix): Remove macro.
2806 (local_octal_format): Remove macro.
2807 (local_octal_format_prefix): Remove macro.
2808 (local_octal_format_specifier): Remove macro.
2809 (local_octal_format_suffix): Remove macro.
2810 (local_decimal_format): Remove macro.
2811 (local_decimal_format_prefix): Remove macro.
2812 (local_decimal_format_specifier): Remove macro.
2813 (local_decimal_format_suffix): Remove macro.
2814 (local_hex_format): Remove macro.
2815 (local_hex_format_prefix): Remove macro.
2816 (local_hex_format_specifier): Remove macro.
2817 (local_hex_format_suffix): Remove macro.
2818 (local_decimal_format_custom): Remove.
2819 (local_octal_format_custom): Remove.
2820 (local_hex_format_custom): Remove.
2821 (local_hex_string): Rename to hex_string and move to defs.h.
2822 (local_hex_string_custom): Rename to hex_string_custom, change
2823 interface, and move to defs.h.
2824 * utils.c: (int_string): New function.
2825 (hex_string): New function (from language.c).
2826 (hex_string_custom): New function (from language.c).
2827 (octal2str): New function.
2828 (decimal2str): Add width parameter.
2829 (paddr_u): Use new decimal2str interface.
2830 (paddr_d): Ditto.
2831 * defs.h (hex_string): Declare.
2832 (hex_string_custom): Declare.
2833 (int_string): Declare.
2834 * printcmd.c (print_scalar_formatted): Remove localized binary
2835 formatting.
2836 * valprint.c (print_longest): Use int_string.
2837 (print_floating): Use C hex format.
2838 (print_hex_chars): Ditto.
2839 (print_binary_chars): Remove language-specific formatting.
2840 (print_octal_chars): Use C octal format.
2841 (print_decimal_chars): Delocalize format.
2842 (print_decimal): Remove.
2843 * ada-lang.c (ada_language_defn): Remove language-specific number
2844 formatting entries.
2845 * p-lang.c (pascal_language_defn): Ditto.
2846 * c-lang.c (c_language_defn): Ditto.
2847 (cplus_language_defn): Ditto.
2848 (asm_language_defn): Ditto.
2849 (minimal_language_defn): Ditto.
2850 * f-lang.c (f_language_defn): Ditto.
2851 * jv-lang.c (java_language_defn): Ditto.
2852 * m2-lang.c (m2_language_defn): Ditto.
2853 * scm-lang.c (scm_language_defn): Ditto.
2854 * objc-lang.c (objc_language_defn): Ditto.
2855 * memattr.c (mem_info_command): Use renamed hex_string_custom with
2856 new interface.
2857 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
2858 * ui-out.c (ui_out_field_core_addr): Ditto.
2859 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
2860 * exec.c (print_section_info): Ditto.
2861 * i387-tdep.c (print_i387_status_word): Ditto.
2862 (print_i387_control_word): Ditto.
2863 (i387_print_float_info): Ditto.
2864 * maint.c (maint_print_section_info): Ditto.
2865 * solib.c (info_sharedlibrary_command): Ditto.
2866 * somsolib.c (som_sharedlibrary_info_command): Ditto.
2867 * symtab.c (print_msymbol_info): Ditto.
2868 * tracepoint.c (tracepoints_info): Ditto.
2869 * solib-frv.c (lm_base): Ditto.
2870 (frv_current_sos): Ditto.
2871 (enable_break2): Ditto.
2872 (enable_break): Ditto.
2873 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
2874 (process_one_symbol): Ditto.
2875 * infcmd.c (program_info): Ditto.
2876 * mdebugread.c (parse_partial_symbols): Ditto.
2877 * symfile.c (add_symbol_file_command): Ditto.
2878 * cli/cli-cmds.c (edit_command): Ditto.
2879 (list_command): Ditto.
2880 * infcall.c (call_function_by_hand): Ditto.
2881 * remote-vx.c (vx_run_files_info): Ditto.
2882 (vx_wait): Ditto.
2883 (vx_attach): Ditto.
2884 (vx_detach): Ditto.
2885 (vx_kill): Ditto.
2886 * aix-thread.c (pdc_symbol_addrs): Ditto.
2887 (pdc_read_regs): Ditto.
2888 (pdc_write_regs): Ditto.
2889 (pdc_read_data): Ditto.
2890 (pdc_write_data): Ditto.
2891 * d10v-tdep.c (display_trace): Ditto.
2892 * rs6000-nat.c (find_toc_address): Ditto.
2893 * aix-thread.c: Don't include language.h.
2894 * buildsym.c: Ditto.
2895 * dbxread.c: Ditto.
2896 * mdebugread.c: Ditto.
2897 * rs6000-nat.c: Ditto.
2898 * buildsym.c (make_blockvector): Use renamed hex_string.
2899
2900 2004-09-10 Jason Molenda (jmolenda@apple.com)
2901
2902 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
2903 chars after 'if' or 'while' commands in user-defined commands.
2904
2905 2004-09-08 Jim Blandy <jimb@redhat.com>
2906
2907 Fix bug reported and analyzed by Olivier Crete:
2908 * symfile.c (copy_section_addr_info): New function.
2909 (symbol_file_add_with_addrs_or_offsets): Use it to save the
2910 original set of address arguments, instead of handwritten code
2911 that uses one length to allocate and a different length to
2912 initialize. Use make_cleanup_free_section_addr_info.
2913 * symfile.h (copy_section_addr_info): New declaration.
2914 * utils.c: #include "symfile.h".
2915 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
2916 New functions.
2917 * defs.h (make_cleanup_free_section_addr_info): New declaration.
2918 * Makefile.in (utils.o): Update dependencies.
2919
2920 2004-09-08 Andrew Cagney <cagney@gnu.org>
2921
2922 * thread-db.c (keep_thread_db): Delete.
2923 (thread_db_new_objfile, thread_db_create_inferior)
2924 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
2925
2926 2004-09-08 Mark Kettenis <kettenis@gnu.org>
2927
2928 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
2929 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
2930 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
2931 (i386_frameless_signal_p): Remove prototype.
2932 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
2933 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
2934 I386_SSE_NUM_REGS.
2935 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
2936 instead of FP0_REGNUM.
2937 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
2938 of FP0_REGNUM and FPC_REGNUM.
2939
2940 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
2941 (sunos_solib_create_inferior_hook): Don't call
2942 sunos_relocate_main_executable.
2943
2944 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
2945 solib_svr4_fetch_link_map_offsets to
2946 svr4_ilp32_fetch_link_map_offsets.
2947 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
2948 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
2949 svr4_ilp32_fetch_link_map_offsets.
2950 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
2951
2952 2004-09-07 Jim Blandy <jimb@redhat.com>
2953
2954 * frame.h (frame_register): Doc fix.
2955
2956 2004-09-07 Andrew Cagney <cagney@gnu.org>
2957
2958 * vx-share/wait.h: Delete #ifdef USG.
2959 * utils.c (request_quit): Ditto.
2960 * tui/tui.c (tui_reset): Ditto.
2961 * remote.c: Ditto.
2962 * remote-sds.c: Ditto.
2963 * remote-rdi.c: Ditto.
2964 * mdebugread.c: Ditto.
2965 * m68klinux-nat.c: Ditto.
2966 * infttrace.c: Ditto.
2967 * infptrace.c: Ditto.
2968 * i386v-nat.c: Ditto.
2969 * exec.c: Ditto.
2970 * dbxread.c: Ditto.
2971 * core-aout.c: Ditto.
2972
2973 2004-09-05 Joel Brobecker <brobecker@gnat.com>
2974
2975 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
2976 heuristic_proc_desc.
2977 (mips_insn32_frame_cache): Likewise.
2978
2979 2004-09-04 Joel Brobecker <brobecker@gnat.com>
2980
2981 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
2982 left behind by error.
2983
2984 2004-09-04 Joel Brobecker <brobecker@gnat.com>
2985
2986 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
2987 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
2988
2989 2004-09-04 Joel Brobecker <brobecker@gnat.com>
2990
2991 * config/rs6000/xm-aix4.h: Remove this file.
2992 * config/rs6000/aix4.mh (XM_FILE): Delete.
2993
2994 2004-09-04 Joel Brobecker <brobecker@gnat.com>
2995
2996 * config/rs6000/xm-rs6000.h: Remove this file.
2997 * config/rs6000/rs6000.mh (XM_FILE): Remove.
2998
2999 2004-09-03 Andrew Cagney <cagney@gnu.org>
3000
3001 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
3002 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
3003 only use.
3004
3005 * mips-tdep.c (temp_saved_regs): Delete.
3006 (set_reg_offset): Replace saved_regs parameter with this_cache.
3007 (heuristic_proc_desc, mips16_heuristic_proc_desc)
3008 (mips32_heuristic_proc_desc): Add this_cache parameter.
3009 (mips_insn32_frame_cache, mips_insn16_frame_cache)
3010 (after_prologue): Pass a NULL this_cache.
3011
3012 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
3013 non-kernel trap prologues.
3014
3015 * mips-tdep.c (find_proc_desc): Delete function.
3016 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
3017 simplify.
3018 (mips_insn16_frame_cache): Replace find_proc_desc with code from
3019 mips_insn32_frame_cache.
3020
3021 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
3022 Simplify as NEXT_FRAME is NULL.
3023 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
3024
3025 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
3026 local variable.
3027 (mips_skip_prologue): Update.
3028
3029 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
3030 "cur_frame" parameter.
3031 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
3032 (mips_insn32_frame_cache, find_proc_desc): Update
3033
3034 * config/vax/nm-obsd.h: Delete file.
3035 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3036 * config/vax/nm-nbsd.h: Delete file.
3037 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
3038 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3039 * config/sh/nm-nbsd.h: Delete file.
3040 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3041 * config/rs6000/nm-rs6000ly.h: Delete file.
3042 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
3043 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
3044 * config/powerpc/nm-obsd.h: Delete file.
3045 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3046 * config/powerpc/nm-nbsd.h: Delete file.
3047 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3048 * config/pa/nm-obsd.h: Delete file.
3049 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3050 * config/mips/nm-nbsd.h: Delete file.
3051 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3052 * config/m88k/nm-obsd.h: Delete file.
3053 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3054 * config/m68k/nm-nbsd.h: Delete file.
3055 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
3056 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3057 * config/i386/nm-nbsd.h: Delete file.
3058 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
3059 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
3060 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
3061 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3062 * config/i386/nm-i386lynx.h: Delete file.
3063 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
3064 * config/arm/nm-nbsd.h: Delete file.
3065 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
3066 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3067
3068 * config/i386/tm-fbsd.h: Delete file.
3069 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
3070 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
3071
3072 * config/rs6000/tm-rs6000-aix4.h: Delete file.
3073 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
3074 * config/rs6000/aix4.mt (TM_FILE): Set to
3075 config/rs6000/tm-rs6000.h.
3076 * config/powerpc/tm-ppc-aix.h: Delete file.
3077 * config/powerpc/aix.mt (TM_FILE): Set to
3078 config/rs6000/tm-rs6000.h.
3079 * config/m68k/tm-linux.h: Delete file.
3080 * config/m68k/linux.mt (TM_FILE): Set to solib.h
3081 * config/i386/tm-linux64.h: Delete file.
3082 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
3083 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
3084
3085 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
3086 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
3087 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
3088 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
3089 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
3090 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
3091 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
3092 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
3093 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
3094
3095 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
3096 gdb_host_cpu.
3097
3098 2004-09-02 Joel Brobecker <brobecker@gnat.com>
3099
3100 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
3101 Minor reformatting. Some code factoring.
3102
3103 2004-09-02 Andrew Cagney <cagney@gnu.org>
3104
3105 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
3106 * config/vax/tm-nbsd.h: Delete file.
3107 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
3108 * config/sparc/tm-vxworks.h: Delete file.
3109 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
3110 * config/sparc/tm-nbsd.h: Delete file.
3111 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
3112 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
3113 * config/sparc/tm-linux.h: Delete file.
3114 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
3115 * config/s390/tm-linux.h: Delete file.
3116 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
3117 * config/pa/tm-bsd.h: Delete file.
3118 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
3119 * config/m68k/tm-obsd.h: Delete file.
3120 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
3121 * config/m68k/tm-nbsd.h: Delete file.
3122 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
3123 * config/i386/tm-vxworks.h: Delete file.
3124 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
3125 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
3126 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
3127 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
3128 * config/i386/tm-nbsd.h: Delete file.
3129 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
3130 * config/i386/tm-i386lynx.h: Delete file.
3131 * config/cris/cris.mt (TM_FILE): Set to solib.h.
3132 * config/cris/tm-cris.h: Delete file.
3133
3134 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
3135 * configure: Re-generate.
3136 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
3137 * config/arm/tm-nbsd.h: Delete file.
3138
3139 * config/powerpc/tm-ppcle-sim.h: Delete.
3140 * config/powerpc/tm-ppcle-eabi.h: Delete.
3141 * config/powerpc/tm-nbsd.h: Delete.
3142 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
3143 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
3144 tm-ppcle-eabi.h.
3145
3146 * config/i386/nto.mh (NAT_FILE): Delete.
3147 * config/i386/nm-nto.h: Delete.
3148
3149 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
3150 * config/m68k/tm-os68k.h: Ditto.
3151 * config/m68k/tm-monitor.h: Ditto.
3152 * config/m68k/tm-cisco.h: Ditto.
3153 * config/m68k/st2000.mt (TM_FILE): Delete.
3154 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
3155 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
3156 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
3157 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
3158
3159 * config/m68k/tm-st2000.h: Delete.
3160 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
3161 * config/sparc/fbsd.mt (TM_FILE): Delete.
3162 * config/sparc/tm-fbsd.h: Delete.
3163
3164 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
3165 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
3166 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
3167
3168 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
3169 GDB_TM_FILE and GDB_XM_FILE.
3170 * gdbarch.c: Re-generate.
3171 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
3172 quotes in macro definition.
3173 * configure.in: Re-generate.
3174
3175 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
3176 validating architecture methods.
3177 * gdbarch.c: Re-generate.
3178
3179 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
3180 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
3181 GDB_MULTI_ARCH_PARTIAL.
3182 * gdbarch.h: Re-generate.
3183
3184 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
3185 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
3186 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
3187 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
3188 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
3189 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
3190 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
3191 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
3192 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
3193 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
3194 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
3195 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
3196
3197 2004-09-01 Andrew Cagney <cagney@gnu.org>
3198
3199 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
3200 and main_func_highpc.
3201 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
3202 * objfiles.c (init_entry_point_info, objfile_relocate): Update
3203 * nlmread.c (nlm_symfile_read): Update.
3204
3205 2004-09-01 Joel Brobecker <brobecker@gnat.com>
3206
3207 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
3208 (mips_insn32_frame_cache): Inline call to find_proc_desc.
3209 (find_proc_desc): Remove dead code.
3210
3211 2004-09-01 Joel Brobecker <brobecker@gnat.com>
3212
3213 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
3214
3215 2004-09-01 Jeff Johnston <jjohnstn@redhat.com>
3216
3217 * observer.sh: Add struct so_list declaration.
3218 * Makefile.in: Add dependencies on observer.h for solib.c and
3219 breakpoint.c.
3220 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
3221 function.
3222 (_initialize_breakpoint): Register
3223 disable_breakpoints_in_unloaded_shlib as an observer of the
3224 "solib unloaded" observation event.
3225 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
3226 call decode_line_1 so unfound breakpoint errors are silent.
3227 * solib.c (update_solib_list): When a solib is discovered to have
3228 been unloaded by the program, notify all observers of the
3229 "solib unloaded" observation event.
3230
3231 2004-09-01 Andrew Cagney <cagney@gnu.org>
3232
3233 * frame.c: Include "objfiles.h".
3234 (inside_main_func): New function.
3235 (get_prev_frame): Use new inside_main_func.
3236 * Makefile.in (frame.o): Update dependencies.
3237 * defs.h (inside_main_func): Delete declaration.
3238 * blockframe.c (inside_main_func): Delete function.
3239
3240 2004-08-31 Jim Blandy <jimb@redhat.com>
3241
3242 * dwarf2read.c (is_vtable_name): New function, based on logic from
3243 read_structure_type, but passing the correct length to strncmp,
3244 and using 'sizeof' instead of 'strlen'.
3245 (read_structure_type): Call it.
3246
3247 2004-08-31 Joel Brobecker <brobecker@gnat.com>
3248
3249 * config/powerpc/aix.mh: Add comment.
3250
3251 2004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
3252
3253 * MAINTAINERS: Add self to Write-After-Approval.
3254
3255 2004-08-30 Manoj Iyer <manjo@austin.ibm.com>
3256
3257 * MAINTAINERS: Add self to Write-After-Approval.
3258
3259 2004-08-30 Andrew Cagney <cagney@gnu.org>
3260
3261 Fix PR breakpoints/1757.
3262 * infrun.c (struct execution_control_state): Replace
3263 remove_breakpoints_on_following_step with
3264 step_after_step_resume_breakpoint.
3265 (init_execution_control_state): Update.
3266 (handle_inferior_event): For signals, when stepping off a
3267 breakpoint, set step_after_step_resume_breakpoint. When
3268 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
3269 (keep_going): Delete code handling
3270 remove_breakpoints_on_following_step.
3271
3272 2004-08-29 David Lecomber <david@streamline-computing.com>
3273
3274 Fix PR gdb/648
3275 * language.h (enum array_ordering): New enum.
3276 * language.h (struct language_defn): New la_array_ordering
3277 attribute.
3278 * language.c (unknown_language_defn, auto_language_defn)
3279 (local_language_defn): Ditto.
3280 * ada-lang.c (ada_language_defn): Ditto.
3281 * c-lang.c (c_language_defn, cplus_language_defn)
3282 (asm_language_defn, minimal_language_defn): Ditto.
3283 * f-lang.c (f_language_defn): Ditto.
3284 * jv-lang.c (java_language_defn): Ditto.
3285 * m2-lang.c (f_language_defn): Ditto.
3286 * objc-lang.c (objc_language_defn): Ditto.
3287 * p-lang.c (pascal_language_defn): Ditto.
3288 * scm-lang.c (scm_language_defn): Ditto.
3289 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
3290 oriented large to small in type structure.
3291 * dwarf2read.c (read_array_order): New function.
3292 (read_array_type): Use read_array_order to check row/column
3293 major ordering.
3294
3295 2004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
3296
3297 * target.c (target_resize_to_sections): Check
3298 current_target.to_sections for an old value when updating.
3299
3300 2004-08-27 Joel Brobecker <brobecker@gnat.com>
3301
3302 * procfs.c (dbx_link_bpt_addr): New static global variable.
3303 (dbx_link_shadow_contents): New static global variable.
3304 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
3305 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
3306 if we just hit it.
3307 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
3308 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
3309 from run to run.
3310 (procfs_create_inferior): Remove syssgi syscall-exit notifications
3311 after the inferior has been forked.
3312 (remove_dbx_link_breakpoint): New function.
3313 (dbx_link_addr): New function.
3314 (insert_dbx_link_bpt_in_file): New function.
3315 (insert_dbx_link_bpt_in_region): New function.
3316 (insert_dbx_link_breakpoint): New function.
3317 (proc_trace_syscalls_1): New function, extracted from
3318 proc_trace_syscalls.
3319 (proc_trace_syscalls): Replace extract code by call to
3320 proc_trace_syscalls_1.
3321 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
3322 is no longer valid.
3323
3324 2004-08-25 Jim Blandy <jimb@redhat.com>
3325
3326 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
3327
3328 2004-08-25 Andrew Cagney <cagney@gnu.org>
3329
3330 * infrun.c (struct execution_control_state): Delete field
3331 "stepping_through_sigtramp".
3332 (init_execution_control_state): Do not set same.
3333 (context_switch): Do not pass same to save_infrun_state and
3334 load_infrun_state.
3335 * gdbthread.h (struct thread_info): Delete field
3336 stepping_through_sigtramp.
3337 (save_infrun_state, load_infrun_state): Delete parameter
3338 stepping_through_sigtramp.
3339 * thread.c (load_infrun_state, save_infrun_state): Update.
3340
3341 * infrun.c: Re-indent. Move expression operators to the beginning
3342 of the line. Remove long disabled #if 0 code.
3343
3344 2004-08-24 Andrew Cagney <cagney@gnu.org>
3345
3346 * doublest.h (floatformat_ieee_quad): Rename
3347 floatformat_ia64_quad.
3348 * doublest.c (floatformat_ieee_quad): Rename
3349 floatformat_ia64_quad.
3350 (_initialize_doublest): Update.
3351
3352 2004-08-24 Jim Blandy <jimb@redhat.com>
3353
3354 * dwarf2expr.h (struct dwarf_expr_context): New members
3355 'num_pieces' and 'pieces', for returning the result of an
3356 expression that uses DW_OP_piece.
3357 (struct dwarf_expr_piece): New struct type.
3358 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
3359 pieces.
3360 (free_dwarf_expr_context): Free pieces, if any.
3361 (add_piece): New function.
3362 (execute_stack_op): Implement DW_OP_piece.
3363 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
3364 expression is a list of pieces, print an error message.
3365 (dwarf2_loc_desc_needs_frame): If the expression yields
3366 pieces, and any piece is in a register, then we need a frame.
3367
3368 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
3369 the stack until we've decided what sort of result the evaluation
3370 has produced. Use separate variables, with more specific names.
3371
3372 2004-08-23 Richard Earnshaw <rearnsha@arm.com>
3373
3374 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
3375 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
3376 (arm_netbsd_init_abi_common): Register them.
3377
3378 2004-08-22 Mark Kettenis <kettenis@gnu.org>
3379
3380 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
3381
3382 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
3383 safe_frame_unwind_memory instead of target_read_memory.
3384
3385 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
3386 Reorder includes.
3387 (fetch_register, store_register): Remove prototypes.
3388 (child_resume): Reorganize code and comments such that it is
3389 grouped a bit more logically.
3390 (attach): Explicitly compare errno against 0.
3391 (detach): Likewise. Use perror_with_name instead of
3392 print_sys_errmsg.
3393 * Makefile.in (infptrace.o): Update dependencies.
3394
3395 * ia64-linux-nat.c: Update copyright year.
3396 (fetch_debug_register, store_debug_register)
3397 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
3398 PTRACE_TYPE_ARG3.
3399 * config/ia64/nm-linux.h: Update copyright year.
3400 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
3401
3402 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
3403 from CORE_ADDR to struct frame_info *. Use
3404 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
3405 (amd64_linux_sigtramp_p): Adjust for changed signature of
3406 and64_linux_sigtramp_start
3407
3408 * gdb_ptrace.h: GNU/Linux.
3409
3410 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
3411 Remove defines.
3412
3413 * infptrace.c: Include "gdb_assert.h".
3414 (PTRACE_XFER_TYPE): Remove define.
3415 (offsetof): Only define if U_REGS_OFFSET isn't defined.
3416 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
3417 Tweak comment.
3418 (fetch_inferior_registers, store_inferior_registers): Remove
3419 redundant culry braces. Tweak comment. s/regno/regnum.
3420 * Makefile.in (infptrace.o): Update dependencies.
3421
3422 * configure.in: Change test for return type of ptrace to default
3423 to `long' instead of `int'.
3424 * configure: Regenerate.
3425
3426 2004-08-21 Mark Kettenis <kettenis@gnu.org>
3427
3428 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
3429
3430 * configure.in: Check for ttrace function.
3431 * configure, config.in: Regenerate.
3432
3433 * gdb_ptrace.h: New file.
3434 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
3435 <sys/ptrace.h>.
3436 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
3437 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
3438 (attach): Don't define PT_ATTACH.
3439 (detach): Don't define PT_DETACH.
3440 * Makefile.in (gdb_ptrace_h): New variable.
3441 (infptrace.o): Update dependencies.
3442
3443 2004-08-16 Mark Kettenis <kettenis@gnu.org>
3444
3445 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
3446 instead of `int' if not already defined.
3447 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
3448 PTRACE_TYPE_ARG3.
3449 * infptrace.c (call_ptrace): Revert change that replaced
3450 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3451
3452 2004-08-15 Mark Kettenis <kettenis@gnu.org>
3453
3454 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
3455 Remove defines.
3456
3457 * linux-nat.c (kill_inferior): Add missing third and fourth
3458 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
3459
3460 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
3461 PTRACE_TYPE_RET.
3462
3463 * proc-why.c (proc_prettyfprint_why): Fix format string.
3464
3465 * solib-osf.c (osf_current_sos): Remove unsused label.
3466
3467 * configure.in: Add <ncurses/ncurses.h> to the list of possible
3468 curses headers.
3469 * configure, config.in: Regenerate.
3470 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
3471 <ncurses/ncurses.h>.
3472
3473 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
3474 * config/nm-nbsd.h: Update copyright year.
3475 (PTRACE_ARG3_TYPE): Remove define.
3476
3477 * sparc-nat.c (fetch_inferior_registers)
3478 (store_inferior_registers, sparc_xfer_wcookie):
3479 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3480
3481 * alphabsd-nat.c (fetch_inferior_registers):
3482 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3483 PTRACE_TYPE_ARG3.
3484 * amd64bsd-nat.c (fetch_inferior_registers)
3485 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3486 PTRACE_TYPE_ARG3.
3487 * armnbsd-nat.c: Update copyright year.
3488 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
3489 (store_register, store_regs, store_fp_register, store_fp_regs):
3490 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3491 * hppabsd-nat.c (fetch_inferior_registers)
3492 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3493 PTRACE_TYPE_ARG3.
3494 * i386bsd-nat.c (fetch_inferior_registers)
3495 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
3496 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3497 * m68kbsd-nat.c (fetch_inferior_registers)
3498 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3499 PTRACE_TYPE_ARG3.
3500 * m88kbsd-nat.c (fetch_inferior_registers)
3501 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3502 PTRACE_TYPE_ARG3.
3503 * mipsnbsd-nat.c: Update copyright year.
3504 (fetch_inferior_registers, store_inferior_registers):
3505 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3506 * ns32knbsd-nat.c: Update copyright year.
3507 (fetch_inferior_registers, store_inferior_registers):
3508 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3509 * ppcnbsd-nat.c (fetch_inferior_registers):
3510 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3511 PTRACE_TYPE_ARG3.
3512 * ppcobsd-nat.c (fetch_inferior_registers):
3513 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3514 PTRACE_TYPE_ARG3.
3515 * shnbsd-nat.c: Update copyright year.
3516 (fetch_inferior_registers, store_inferior_registers):
3517 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3518 * vaxbsd-nat.c (fetch_inferior_registers)
3519 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3520 PTRACE_TYPE_ARG3.
3521
3522 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
3523 PTRACE_TYPE_ARG3.
3524 * infptrace.c (call_ptrace, child_resume, attach, detach)
3525 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
3526 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3527 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
3528 PTRACE_TYPE_ARG3.
3529
3530 2004-08-14 Mark Kettenis <kettenis@gnu.org>
3531
3532 * defs.h: Remove out-of-date comment.
3533 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
3534 [!GETENV_PROVIDED] (getenv): Remove prototype.
3535
3536 * standalone.c: Remove file.
3537 * Makefile.in (standalone.o): Remove dependency.
3538
3539 * i386-linux-nat.c (dummy_sse_values): Remove function and
3540 prototype.
3541 (i386_linux_dr_get): Fix typo in comment.
3542 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
3543
3544 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
3545
3546 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
3547 from declaration.
3548 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
3549 from definition.
3550
3551 2004-08-13 Mark Kettenis <kettenis@gnu.org>
3552
3553 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
3554 parenthesis in definition.
3555 * configure: Regenerated.
3556
3557 2004-08-12 Michael Chastain <mec.gnu@mindspring.com>
3558
3559 * PROBLEMS: Mention build/1411.
3560
3561 2004-08-09 Robert Millan <robertmh@gnu.org>
3562
3563 Committed by Nathanael Nerode.
3564 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
3565 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
3566
3567 2004-08-12 Andrew Cagney <cagney@gnu.org>
3568
3569 * NEWS: Mention fixes in GDB 6.2.1.
3570 * PROBLEMS: Remove mention of mips-irix.
3571
3572 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3573
3574 * config/powerpc/xm-aix.h: Delete.
3575 * config/powerpc/aix.mh (MH_FILE): Remove.
3576 * config/powerpc/aix432.mh (MH_FILE): Remove.
3577
3578 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3579
3580 * config/powerpc/aix.mh: Remove obsolete comment.
3581 * config/powerpc/aix432.mh: Likewise.
3582
3583 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3584
3585 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
3586
3587 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3588
3589 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
3590 this file is now empty.
3591 * config/xm-aix4.h: Remove, this file is no longer included
3592 anywhere.
3593
3594 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3595
3596 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
3597 that file is now empty.
3598 (termdef): Remove prototype, function no longer used.
3599
3600 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3601
3602 * doc/gdbint.texinfo (Host Definition): Remove documentation
3603 for USE_O_NOCTTY, no longer used.
3604 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
3605 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
3606
3607 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3608
3609 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
3610 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
3611 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
3612
3613 2004-08-11 Mark Kettenis <kettenis@gnu.org>
3614
3615 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
3616 instead of FIVE_ARG_PTRACE.
3617
3618 * inflow.c (O_NOCTTY): Define to zero if not already defined.
3619 (new_tty): Use O_NOCTTY unconditionally.
3620
3621 2004-08-10 Mark Kettenis <kettenis@gnu.org>
3622
3623 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
3624 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
3625 fflush on stdout.
3626
3627 2004-08-10 Joel Brobecker <brobecker@gnat.com>
3628
3629 * xcoff_symfile_finish: Replace last call to xmfree by call
3630 to xfree.
3631
3632 2004-08-10 Andrew Cagney <cagney@gnu.org>
3633
3634 * main.c (captured_main): Delete call to init_malloc.
3635 * defs.h (init_malloc): Delete declaration.
3636 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
3637 (init_malloc): Delete functions.
3638
3639 * defs.h (xmfree): Delete.
3640 * utils.c (xmfree): Delete function.
3641 (xfree): Inline calls to xmfree and mfree.
3642 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
3643 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
3644 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
3645 * somread.c (som_symfile_finish): Ditto.
3646 * objfiles.c (allocate_objfile, free_objfile):
3647 * nlmread.c (nlm_symfile_finish): Ditto.
3648 * hpread.c (hpread_symfile_finish): Ditto.
3649 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
3650 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
3651 * coffread.c (coff_symfile_finish): Ditto.
3652
3653 * defs.h (xmcalloc): Delete declaration.
3654 * utils.c (xmcalloc): Delete.
3655 (xcalloc): Inline calls to xmcalloc and mcalloc.
3656 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
3657 xcalloc and xfree.
3658 * symtab.c (create_demangled_names_hash): Ditto.
3659
3660 * defs.h (xmrealloc): Delete.
3661 * utils.c (xmrealloc): Delete.
3662 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
3663 * symmisc.c (extend_psymbol_list): Use xrealloc.
3664 * source.c (find_source_lines): Ditto.
3665 * hpread.c (hpread_lookup_type): Ditto.
3666 * dbxread.c (add_bincl_to_list): Ditto.
3667
3668 * utils.c (xmmalloc): Delete.
3669 (xmalloc): Inline xmmalloc and mmalloc calls.
3670 (msavestring): Use xmalloc.
3671 * defs.h (xmmalloc): Delete declaration.
3672 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
3673 xmmalloc.
3674 * symmisc.c (extend_psymbol_list): Ditto.
3675 * symfile.c (init_psymbol_list): Ditto.
3676 * source.c (find_source_lines): Ditto.
3677 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
3678 * elfread.c (elf_symtab_read): Ditto.
3679 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
3680 * coffread.c (coff_symfile_init): Ditto.
3681
3682 2004-08-10 David Carlton <carlton@bactrian.org>
3683
3684 * MAINTAINERS: Remove David Carlton from c++ testsuite
3685 maintainers.
3686
3687 2004-08-10 Jerome Guitton <guitton@gnat.com>
3688
3689 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
3690 print a line feed before the prompt.
3691
3692 2004-08-10 Mark Kettenis <kettenis@gnu.org>
3693
3694 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
3695
3696 2004-08-09 Joel Brobecker <brobecker@gnat.com>
3697
3698 General cleanup of the AIX xm include file:
3699 * config/xm-aix4.h (fd_set): Remove undefine.
3700 Remove include of <sys/select.h>.
3701 (HAVE_TERMIO): Remove define.
3702 (USG): Likewise.
3703 (NULL): Remove redefine.
3704 (alloca): Remove #pragma.
3705 (vfork): Remove define.
3706 (termdef): Remove.
3707 (SIGWINCH_HANDLER): Remove.
3708 (SIGWINCH_HANDLER_BODY): Remove.
3709
3710 2004-08-09 Mark Kettenis <kettenis@gnu.org>
3711
3712 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
3713 GDB_OSABI_OPENBSD_ELF.
3714
3715 2004-08-07 Robert Millan <robertmh@gnu.org>
3716
3717 * bsd-kvm.c: Check for nlist.h before including it.
3718
3719 2004-08-09 Mark Kettenis <kettenis@gnu.org>
3720
3721 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
3722 sigcontext' offset consistency checks for ancient BSD.
3723
3724 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
3725
3726 * configure.in: Check for <sys/types.h>. Check return and
3727 argument types of ptrace.
3728 * configure, config.in: Regenerate.
3729
3730 2004-08-09 Jim Blandy <jimb@redhat.com>
3731
3732 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
3733 rs6000_register_sim_regno): Doc fixes.
3734
3735 2004-08-08 Joel Brobecker <brobecker@gnat.com>
3736
3737 * mips-tdep.c: Include "floatformat.h".
3738 (n32n64_floatformat_always_valid): New function.
3739 (floatformat_n32n64_long_double_big): New constant.
3740 (mips_gdbarch_init): Set size and format of long double
3741 for N32 and N64 ABIs.
3742 * Makefile.in (mips-tdep.o): Update dependencies.
3743
3744 2004-08-08 Andrew Cagney <cagney@gnu.org>
3745
3746 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
3747 print. Improve script's error messages.
3748 * gdbarch.h: Re-generate.
3749
3750 * gdbarch.sh (pformat): New function.
3751 (float_format, double_format, long_double_format): List with bit
3752 members. Use pformat when printing.
3753 * gdbarch.c, gdbarch.h: Re-generate.
3754
3755 2004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
3756
3757 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
3758 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
3759 (ppcnbsd_supply_pcb): New function.
3760 (_initialize_ppcnbsd_nat): New prototype and function.
3761 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
3762 (LOADLIBES): New variable.
3763 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
3764
3765 2004-08-08 Andrew Cagney <cagney@gnu.org>
3766
3767 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
3768 (builtin_type_ieee_double, builtin_type_ia64_quad)
3769 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
3770 BE/LE floating-point types.
3771 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
3772 (builtin_type_ieee_double, builtin_type_ia64_quad)
3773 (builtin_type_ia64_spill): Declare.
3774 * doublest.c (_initialize_doublest, floatformat_ieee_single)
3775 (floatformat_ieee_double, floatformat_arm_ext)
3776 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
3777 of LE/BE floatformats.
3778 * doublest.h: (struct floatformat, floatformat_ieee_single)
3779 (floatformat_ieee_double, floatformat_arm_ext)
3780 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
3781
3782 2004-08-08 Mark Kettenis <kettenis@gnu.org>
3783
3784 * i386gnu-nat.c (gnu_store_registers): Fix typo.
3785
3786 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
3787 instead of regcache_raw_supply when storing the registers.
3788
3789 * i386gnu-nat.c: Update copyright year.
3790 (gnu_store_registers): Don't use deprecated_registers and
3791 deprecated_registers_valid. Use regcache_valid_p and
3792 regcache_raw_supply instead.
3793
3794 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
3795 frame_pc_unwind.
3796
3797 * procfs.c (procfs_pid_to_str): Remove redundant and unused
3798 variables. Incapitalized "process".
3799
3800 * configure.in: Add cursesX to the list of possible curses libs.
3801 Add cursesX.h to the list of possible curses headers.
3802 * configure, config.in: Regenerate.
3803
3804 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
3805
3806 * configure.in: Test for struct lwp in <sys/lwp.h>.
3807 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
3808 the offset of l_addr in struct lwp.
3809
3810 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
3811
3812 * bsd-kvm.c: Include "gdbcore.h"
3813 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
3814
3815 2004-08-07 Andrew Cagney <cagney@gnu.org>
3816
3817 * gdbtypes.c (build_flt, build_complex): New functions.
3818 (gdbtypes_post_init): Use.
3819
3820 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
3821
3822 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
3823 through to builtin_type_uint128.
3824
3825 * c-exp.y: Use builtin_type function to obtain builtin types.
3826
3827 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
3828 builtin_uint128.
3829 * gdbtypes.c (gdbtypes_post_init): Update.
3830 (build_gdbtypes): Move initialization of builtin_type_int0
3831 through to builtin_type_uint128 from here ...
3832 (_initialize_gdbtypes): ... to here.
3833 * d10v-tdep.c (d10v_register_type): Update.
3834
3835 * doublest.c: Update copyright.
3836 (floatformat_from_length): Call error when floatformat is NULL.
3837 (extract_floating_by_length): Remove NULL fmt check.
3838 (store_floating_by_length): Ditto.
3839
3840 2004-08-07 Andrew Cagney <cagney@gnu.org>
3841
3842 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
3843 that the register is valid.
3844
3845 2004-08-05 Mark Kettenis <kettenis@chello.nl>
3846
3847 * i386-linux-tdep.c (i386_linux_sigtramp_start)
3848 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
3849 struct frame_info *. Use safe_frame_unwind_memory instead of
3850 deprecated_read_memory_nobpt.
3851 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
3852 changed signature of i386_linux_sigtramp_start and
3853 i386_linux_rt_sigtramp_start.
3854
3855 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
3856 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
3857 instead of deprecated_read_memory_nobpt.
3858 (i386nbsd_sigtramp_p): Adjust for changed signature of
3859 i386nbsd_sigtramp_offset.
3860
3861 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
3862 safe_frame_unwind_memory instead of target_read_memory.
3863
3864 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
3865 !NO_SYS_FILE.
3866 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
3867 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
3868 (_initialize_kernel_u_addr): Remove prototype and function.
3869 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
3870 !NO_SYS_FILE.
3871 * xcoffread.c: Likewise.
3872
3873 2004-08-06 Mark Kettenis <kettenis@gnu.org>
3874
3875 * vax-nat.c: New file.
3876 * vaxbsd-nat.c: Tweak comment.
3877 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
3878 vaxnbsd-tdep.c.
3879 (vax-nat.o): New dependency.
3880 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
3881 (vax-*-ultrix2*): Remove.
3882 * config/vax/vax.mh: New file.
3883 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
3884 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
3885 (vax_register_u_addr): New prototype.
3886 (REGISTER_U_ADDR): Define using vax_register_u_addr.
3887 * config/vax/vaxult2.mh: Remove file.
3888 * config/vax/vaxult.mh: Remove file.
3889 * config/vax/vaxbsd.mh: Remove file.
3890 * config/vax/vax.mt (TM_FILE): Remove.
3891 * config/vax/tm-vaxbsd.h: Remove file.
3892
3893 2004-08-06 Joel Brobecker <brobecker@gnat.com>
3894
3895 * aix-thread.c (get_signaled_thread): New function.
3896 (iter_trap): Delete, no longer used.
3897 (iter_tid): New function.
3898 (pd_update): Find the thread that received the SIGTRAP signal
3899 by first locating the kernel thread, and then finding its
3900 associated thread.
3901
3902 2004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
3903
3904 * lin-lwp.c (child_wait): Continue inferior after processing
3905 PTRACE_EVENT_CLONE event.
3906
3907 2004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
3908
3909 * MAINTAINERS: Add self to Write-After-Approval.
3910
3911 2004-08-05 Jeff Johnston <jjohnstn@redhat.com>
3912
3913 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
3914 libunwind-xxxx.so" where xxxx is UNW_TARGET.
3915
3916 2004-08-05 Andrew Cagney <cagney@gnu.org>
3917
3918 * config/xm-sysv4.h: Delete file.
3919 * config/mips/xm-irix5.h: Delete file.
3920 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
3921 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
3922 * config/ia64/xm-aix.h: Delete file.
3923 * config/ia64/aix.mh (XM_FILE): Delete.
3924 * config/pa/xm-hppah.h: Delete file.
3925 * config/pa/hpux11w.mh (XM_FILE): Delete.
3926 * config/pa/hpux11.mh (XM_FILE): Delete.
3927 * config/pa/hpux1020.mh (XM_FILE): Delete.
3928 * config/pa/hppahpux.mh (XM_FILE): Delete.
3929
3930 * config/alpha/xm-alphalinux.h: Delete file.
3931 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
3932 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
3933 * config/alpha/xm-alphaosf.h: Delete file.
3934 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
3935 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
3936 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
3937 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
3938
3939 * config/i386/xm-i386v.h: Delete file.
3940 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
3941 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
3942 * config/i386/xm-i386sco.h: Delete file.
3943 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
3944 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
3945 * config/i386/xm-i386v4.h: Delete file.
3946 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
3947 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
3948 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
3949 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
3950
3951 * config/vax/xm-vax.h: Delete file.
3952 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
3953 * config/vax/xm-vaxult2.h: Delete file.
3954 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
3955 * config/vax/vaxult2.mh (XM_FILE): Delete.
3956 * config/vax/xm-vaxult.h: Delete file.
3957 * config/vax/vaxult.mh (XM_FILE): Delete.
3958 * config/vax/xm-vaxbsd.h: Delete file.
3959 * config/vax/vaxbsd.mh (XM_FILE): Delete.
3960
3961 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
3962 * gdbarch.h, gdbarch.c: Re-generate.
3963 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
3964 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
3965 * frame.h: Delete deprecated_read_fp from comments.
3966 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
3967 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
3968
3969 2004-08-04 Mark Kettenis <kettenis@gnu.org>
3970
3971 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
3972 trampoline in OpenBSD 3.5-current.
3973
3974 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
3975 SSE registers.
3976
3977 * Makefile.in: Remove embedded page breaks.
3978
3979 2004-08-04 Jim Blandy <jimb@redhat.com>
3980
3981 * regcache.c (regcache_raw_read): Assert that, after calling
3982 target_fetch_registers, the register we're reading is cached.
3983
3984 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
3985 a call to 'internal_error', with a more helpful error message.
3986 * rs6000-tdep.c (e500_pseudo_register_read,
3987 e500_pseudo_register_write, rs6000_store_return_value): Same.
3988
3989 2004-08-04 Andrew Cagney <cagney@gnu.org>
3990
3991 * Makefile.in: Update dependencies.
3992
3993 2004-08-04 Jim Blandy <jimb@redhat.com>
3994
3995 Change the layout of the PowerPC E500 raw register cache to allow
3996 the lower 32-bit halves of the GPRS to be their own raw registers,
3997 not pseudoregisters.
3998 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
3999 add ppc_ev0_upper_regnum flag.
4000 * rs6000-tdep.c: #include "reggroups.h".
4001 (spe_register_p): Recognize the ev upper half registers as SPE
4002 registers.
4003 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
4004 registers.
4005 (e500_move_ev_register): New function.
4006 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
4007 vector registers are the pseudo-registers now, formed by splicing
4008 together the gprs and the upper-half registers.
4009 (e500_register_reggroup_p): New function.
4010 (P): Macro deleted.
4011 (P8, A4): New macro.
4012 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
4013 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
4014 macros.
4015 (registers_e500): Rearrange register set so that the raw register
4016 set contains 32-bit GPRs and upper-half registers, and the SPE
4017 vector registers become pseudo-registers.
4018 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
4019 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
4020 register numbers are now the same for the E500 as they are for
4021 other PowerPC variants. Register e500_register_reggroup_p as the
4022 register group function for the E500.
4023 * Makefile.in (rs6000-tdep.o): Update dependencies.
4024
4025 Adapt PPC E500 native support to the new raw regcache layout.
4026 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
4027 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
4028 (fetch_spe_register, store_spe_register): Handle fetching/storing
4029 all the SPE registers at once, if regno == -1. These now take
4030 over the job of fetch_spe_registers and store_spe_registers.
4031 (fetch_spe_registers, store_spe_registers): Deleted.
4032 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
4033 unconditionally; they're always raw. Fetch/store SPE upper half
4034 registers, if present, instead of ev registers.
4035 (fetch_register, store_register): Remove sanity checks: gprs are
4036 never pseudo-registers now, so we never need to even mention any
4037 registers that are ever pseudoregisters.
4038
4039 Use a fixed register numbering when communicating with the PowerPC
4040 simulator.
4041 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
4042 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
4043 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
4044 New functions.
4045 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
4046 init_sim_regno_table.
4047 * Makefile.in (gdb_sim_ppc_h): New variable.
4048 (rs6000-tdep.o): Update dependencies.
4049
4050 2004-08-02 Andrew Cagney <cagney@gnu.org>
4051
4052 * cris-tdep.c (cris_register_size): Restore function, still used
4053 locally.
4054
4055 * gdbarch.sh (deprecated_target_read_fp)
4056 (deprecated_frame_locals_address, deprecated_frame_args_address)
4057 (deprecated_frame_chain_valid, deprecated_frame_chain)
4058 (deprecated_init_extra_frame_info, deprecated_pop_frame)
4059 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
4060 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
4061 * gdbarch.h, gdbarch.c: Re-generate.
4062 * regcache.c (deprecated_read_fp): Do not call
4063 DEPRECATED_TARGET_READ_FP_P.
4064 * infcmd.c (default_print_registers_info): Do not call
4065 DEPRECATED_DO_REGISTERS_INFO.
4066 * frame-base.c (default_frame_locals_address): Do not call
4067 DEPRECATED_FRAME_LOCALS_ADDRESS.
4068 (default_frame_args_address): Do not call
4069 DEPRECATED_FRAME_ARGS_ADDRESS.
4070
4071 * gdbarch.sh (deprecated_register_raw_size)
4072 (deprecated_register_virtual_size:int): Delete.
4073 * gdbarch.h, gdbarch.c: Re-generate.
4074 * cris-tdep.c (cris_register_size): Delete.
4075 (cris_gdbarch_init): Update.
4076 * alpha-tdep.c (alpha_register_raw_size)
4077 (alpha_register_virtual_size): Delete.
4078 (alpha_gdbarch_init): Update.
4079
4080 * gdbarch.sh (deprecated_register_virtual_type)
4081 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
4082 (deprecated_dummy_write_sp): Delete.
4083 * gdbarch.h, gdbarch.c: Re-generate.
4084
4085 * gdbarch.sh (deprecated_register_bytes): Delete.
4086 * gdbarch.h, gdbarch.c: Re-generate.
4087 * regcache.c (deprecated_register_bytes): New function.
4088 * regcache.h (deprecated_register_bytes): Declare.
4089 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4090 * v850-tdep.c (v850_gdbarch_init): Update.
4091 * sh64-tdep.c (sh64_gdbarch_init): Update.
4092 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
4093 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4094 * mcore-tdep.c (mcore_gdbarch_init): Update.
4095 * cris-tdep.c (cris_gdbarch_init): Update.
4096 * arm-tdep.c (arm_gdbarch_init): Update.
4097 * remote.c (init_remote_state): Update.
4098 * remote-vx.c (vx_prepare_to_store): Update.
4099 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
4100 * irix5-nat.c (fetch_core_registers): Update.
4101 * cris-tdep.c (cris_register_bytes_ok): Update.
4102 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
4103
4104 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
4105 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
4106 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
4107 (mips_insn16_frame_base_address, mips_insn16_frame_base)
4108 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
4109 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
4110 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
4111 (mips_insn32_frame_base_address, mips_insn32_frame_base)
4112 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
4113 with mips_insn16 and mips_insn32.
4114
4115 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
4116 * rs6000-tdep.c (rs6000_push_dummy_call)
4117 (rs6000_extract_return_value): Use register_size.
4118 * xstormy16-tdep.c (xstormy16_get_saved_register)
4119 (xstormy16_extract_return_value): Ditto.
4120 * valops.c (value_assign): Ditto.
4121 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
4122 * v850-tdep.c (v850_extract_return_value): Ditto.
4123 * tracepoint.c (collect_symbol): Ditto.
4124 * target.c (debug_print_register): Ditto.
4125 * stack.c (frame_info): Ditto.
4126 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
4127 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
4128 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
4129 (store_register_using_P): Ditto.
4130 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
4131 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
4132 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
4133 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
4134 * regcache.c (deprecated_read_register_bytes)
4135 (deprecated_write_register_bytes, read_register)
4136 (write_register): Ditto.
4137 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
4138 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
4139 * monitor.c (monitor_supply_register, monitor_fetch_register)
4140 (monitor_store_register): Ditto.
4141 * mn10300-tdep.c (mn10300_pop_frame_regular)
4142 (mn10300_print_register): Ditto.
4143 * mipsv4-nat.c (fill_fpregset): Ditto.
4144 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
4145 (mips64_fill_fpregset): Ditto.
4146 * mi/mi-main.c (register_changed_p, get_register)
4147 (mi_cmd_data_write_register_values): Ditto.
4148 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
4149 * irix5-nat.c (fill_gregset, fetch_core_registers):
4150 * infrun.c (write_inferior_status_register): Ditto.
4151 * infptrace.c (fetch_register, store_register): Ditto.
4152 * infcmd.c (default_print_registers_info): Ditto.
4153 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
4154 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
4155 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
4156 * hpux-thread.c (hpux_thread_fetch_registers)
4157 (hpux_thread_store_registers): Ditto.
4158 * hppah-nat.c (store_inferior_registers, fetch_register):
4159 * findvar.c (value_from_register): Ditto.
4160 * dve3900-rom.c (fetch_bitmapped_register):
4161 * cris-tdep.c (cris_gdbarch_init): Ditto.
4162 * alpha-tdep.h: Ditto.
4163 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
4164
4165 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
4166 DEPRECATED_REGISTER_RAW_SIZE from comments.
4167 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
4168 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
4169 DEPRECATED_REGISTER_RAW_SIZE.
4170 * findvar.c (value_of_register): Simplify by assuming that the
4171 registers raw and virtual sizes are identical.
4172 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
4173 comment.
4174 * arch-utils.c (generic_register_size): Simplify by assuming
4175 register_type.
4176
4177 * regcache.c (legacy_read_register_gen, real_register)
4178 (legacy_write_register_gen): Delete, not used.
4179
4180 * regcache.c (struct regcache_descr): Delete legacy_p.
4181 (init_legacy_regcache_descr): Delete function.
4182 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
4183 Do not use deprecated register functions.
4184 (regcache_raw_read, deprecated_write_register_gen):
4185 (deprecated_read_register_gen, regcache_raw_write): Delete code
4186 predicated on legacy_p.
4187 (register_size): Delete check against register raw size.
4188
4189 * cris-tdep.c (cris_register_type): Replace
4190 cris_register_virtual_type.
4191 (cris_gdbarch_init): Update, set register_type.
4192
4193 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
4194 * gdbarch.h, gdbarch.c: Re-generate.
4195 * arm-tdep.c (arm_frameless_function_invocation): Delete.
4196 (arm_gdbarch_init) Do not set frameless function invocation.
4197 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
4198 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
4199 * frv-tdep.c (frv_frameless_function_invocation): Delete.
4200 (frv_gdbarch_init): Do not set frameless function invocation.
4201 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
4202 * sh-tdep.c (sh_gdbarch_init): Ditto.
4203 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
4204 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4205 * avr-tdep.c (avr_gdbarch_init): Ditto.
4206
4207 * blockframe.c (legacy_frame_chain_valid): Delete function.
4208
4209 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
4210 and pc. Update comments.
4211 (pc_in_dummy_frame): Delete function.
4212 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
4213 use the "id".
4214 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
4215 call_hi, top and pc, use the id.
4216 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
4217
4218 * dummy-frame.c: Include "gdb_string.h".
4219 (generic_save_call_dummy_addr, generic_push_dummy_frame)
4220 (generic_save_dummy_frame_tos): Delete.
4221 (dummy_frame_push): New function, replaces above.
4222 * dummy-frame.h: Update copyright.
4223 (dummy_frame_push): Declare.
4224 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
4225 (generic_save_call_dummy_addr): Delete declarations.
4226 * infcall.c: Include "dummy-frame.h".
4227 (call_function_by_hand): Add locals caller_regcache,
4228 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
4229 with call to frame_save_as_regcache plus cleanup. Delete calls to
4230 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
4231 Move clear_proceed_status to just before the resume, add call to
4232 dummy_frame_push (discard cleanup).
4233 * Makefile.in (infcall.o): Add $(dummy_frame_h).
4234 (dummy-frame.o): Add $(gdb_string_h).
4235
4236 2004-08-01 Andrew Cagney <cagney@gnu.org>
4237
4238 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
4239 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
4240 * dummy-frame.c (find_dummy_frame): Delete.
4241 (struct dummy_frame_cache, dummy_frame_sniffer)
4242 (dummy_frame_prev_register, dummy_frame_this_id)
4243 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
4244 frame unwinder using a dummy_frame_cache.
4245
4246 2004-08-01 Andrew Cagney <cagney@gnu.org>
4247
4248 * frame.h (frame_save_as_regcache): Declare.
4249 * frame.c (frame_save_as_regcache): New function.
4250 (do_frame_read_register): Replace do_frame_unwind_register.
4251 (frame_pop): Use frame_save_as_regcache.
4252 * dummy-frame.c (generic_push_dummy_frame): Use
4253 frame_save_as_regcache.
4254
4255 2004-08-01 Joel Brobecker <brobecker@gnat.com>
4256
4257 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
4258 file as included until we record the first line in the linetable.
4259
4260 2004-08-01 Andrew Cagney <cagney@gnu.org>
4261
4262 * frame.h (deprecated_pop_dummy_frame)
4263 (deprecated_read_register_dummy)
4264 (deprecated_generic_find_dummy_frame): Delete.
4265 * dummy-frame.c (deprecated_generic_find_dummy_frame)
4266 (deprecated_read_register_dummy)
4267 (deprecated_find_dummy_frame_regcache)
4268 (discard_innermost_dummy)
4269 (deprecated_pop_dummy_frame): Delete.
4270 (dummy_frame_this_id): Simplify.
4271 (struct dummy_frame): Delete "fp" and "sp".
4272 (find_dummy_frame): Simplify.
4273 (generic_push_dummy_frame): Do not set "fp" or "sp".
4274 (fprint_dummy_frames): Do not print "fp" and "sp"
4275
4276 2004-08-01 Mark Kettenis <kettenis@gnu.org>
4277
4278 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
4279 (struct i386_insn): New structure.
4280 (i386_match_insn): New function.
4281 (i386_frame_setup_skip_insns): New variable.
4282 (i386_analyze_frame_setup): Change to use i386_match_insn and the
4283 array i386_frame_setup_insns of instructions that should be
4284 skipped inside the frame setup sequence.
4285
4286 2004-08-01 Andrew Cagney <cagney@gnu.org>
4287
4288 * frame.h (deprecated_frame_xmalloc_with_cleanup)
4289 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
4290 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
4291 * stack.c (frame_info): Delete references to
4292 DEPRECATED_FRAME_INIT_SAVED_REGS and
4293 deprecated_get_frame_saved_regs.
4294 * frame.c (struct frame_info): Delete saved_regs and extra_info.
4295 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
4296 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
4297 (frame_unwind_register_signed)
4298 (frame_unwind_register_unsigned)
4299 (frame_unwind_unsigned_register): Use register_size.
4300 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
4301 (deprecated_frame_xmalloc_with_cleanup)
4302 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
4303 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
4304
4305 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
4306 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
4307 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
4308 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
4309
4310 * infcall.c (call_function_by_hand): Do not use
4311 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
4312 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
4313 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
4314 DEPRECATED_STACK_ALIGN.
4315
4316 2004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
4317
4318 Committed by Andrew Cagney.
4319 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
4320
4321 2004-08-01 Andrew Cagney <cagney@gnu.org>
4322
4323 * mips-tdep.c (mips16_frame_cache)
4324 (mips16_frame_this_id, mips16_frame_prev_register)
4325 (mips16_frame_unwind, mips16_frame_sniffer)
4326 (mips16_frame_base_address, mips16_frame_base)
4327 (mips16_frame_base_sniffer, mips32_frame_cache)
4328 (mips32_frame_this_id, mips32_frame_prev_register)
4329 (mips32_frame_unwind, mips32_frame_sniffer)
4330 (mips32_frame_base_address, mips32_frame_base)
4331 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
4332 separate heuristic mips16 and mips32 unwinders.
4333 (mips_stub_frame_cache, mips_stub_frame_this_id)
4334 (mips_stub_frame_prev_register)
4335 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
4336 (mips_stub_frame_base_address, mips_stub_frame_base)
4337 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
4338 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
4339 match true mdebug frames.
4340 (non_heuristic_proc_desc): Add forward declaration.
4341
4342 2004-08-01 Andrew Cagney <cagney@gnu.org>
4343
4344 * config/mips/tm-irix6.h: Delete file.
4345 * config/mips/tm-irix5.h: Delete file.
4346 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
4347 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
4348
4349 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
4350 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
4351 * config/nm-gnu.h (NO_CORE_OPS): Delete.
4352 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
4353 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
4354 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
4355 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
4356 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
4357 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
4358 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
4359 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
4360 (TARGET_SIGNAL_RAW_VALUES): Delete.
4361 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
4362 Delete.
4363 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
4364 (TARGET_HW_WATCH_LIMIT): Delete.
4365 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
4366 * minimon.h: Delete file.
4367
4368 * trad-frame.c (trad_frame_get_this_base)
4369 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
4370 functions.
4371 * trad-frame.h (trad_frame_set_this_base)
4372 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
4373
4374 2004-07-31 Andrew Cagney <cagney@gnu.org>
4375
4376 * trad-frame.c (trad_frame_get_prev_register): Rename
4377 trad_frame_get_prev_register.
4378 * vax-tdep.c (vax_frame_prev_register): Update.
4379 * trad-frame.h: Update.
4380 * trad-frame.c (trad_frame_get_register): Update.
4381 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
4382 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
4383 Update.
4384 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
4385 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
4386 Update.
4387 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
4388 Update.
4389 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
4390 Update.
4391 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
4392 Update.
4393 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
4394 Update.
4395 * s390-tdep.c (s390_frame_prev_register)
4396 (s390_stub_frame_prev_register)
4397 (s390_sigtramp_frame_prev_register): Update.
4398 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
4399 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
4400 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
4401 * m88k-tdep.c (m88k_frame_prev_register)
4402 * m68hc11-tdep.c (m68hc11_frame_prev_register)
4403 * m32r-tdep.c (m32r_frame_prev_register): Update.
4404 * hppa-tdep.c (hppa_frame_prev_register_helper)
4405 * frv-tdep.c (frv_frame_prev_register): Update.
4406 * d10v-tdep.c (d10v_frame_prev_register): Update.
4407 * cris-tdep.c (cris_frame_prev_register): Update.
4408 * avr-tdep.c (avr_frame_prev_register): Update.
4409 * arm-tdep.c (arm_prologue_prev_register)
4410 (arm_sigtramp_prev_register): Update.
4411
4412 2004-07-31 Andrew Cagney <cagney@gnu.org>
4413
4414 * frame.h (legacy_saved_regs_unwind)
4415 (legacy_frame_chain_valid, legacy_frame_p)
4416 (enum frame_type): Delete UNKNOWN_FRAME.
4417 * dummy-frame.c (dummy_frame_this_id): Simplify.
4418 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
4419 * frame.c (struct frame_info): Delete the field "type".
4420 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
4421 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
4422 (legacy_saved_regs_unwind, legacy_frame_p)
4423 (frame_type_from_pc): Delete.
4424 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
4425 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
4426
4427 2004-07-31 Mark Kettenis <kettenis@gnu.org>
4428
4429 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
4430 indentation.
4431
4432 * mips-nat.c: Remove file.
4433 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
4434 (mips-nat.o): Remove dependency.
4435
4436 * infptrace.c: Update copyright year.
4437 (fetch_register): Pass NULL in regcache_raw_supply call instead of
4438 explicitly setting the buffer to all zeroes.
4439
4440 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
4441 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
4442
4443 2004-07-30 Andrew Cagney <cagney@gnu.org>
4444
4445 * GDB 6.2 released from gdb_6_2-branch.
4446
4447 2004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
4448
4449 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
4450
4451 * exec.c (exec_file_attach):
4452 * nto-tdep.c (nto_find_and_open_solib):
4453 * pa64solib.c (pa64_solib_sizeof_symbol_table):
4454 * solib.c (solib_open):
4455 * somsolib.c (som_solib_sizeof_symbol_table):
4456 * source.c (is_regular_file, openp, open_source_file):
4457 * symfile.c (symfile_bfd_open):
4458 * wince.c (upload_to_device): Differentiate between the search for
4459 binary and source files.
4460
4461 2004-07-30 Andrew Cagney <cagney@gnu.org>
4462
4463 * complaints.c (_initialize_complaints): Pass NULL to
4464 add_setshow_zinteger_cmd for help_doc.
4465 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
4466
4467 2004-07-30 Andrew Cagney <cagney@gnu.org>
4468
4469 Fix PR i18n/761.
4470 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
4471 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
4472 $(PACKAGE).pot and update-po.
4473 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
4474 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
4475 (update-po): New rules.
4476 (localedir): Define using autoconf.
4477 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
4478 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
4479 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
4480 * configure.in: Generate CATALOGS and LINGUAS from contents of
4481 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
4482 * configure: Re-generate.
4483 * po/gdbtext: New file
4484
4485 2004-07-30 Jerome Guitton <guitton@gnat.com>
4486
4487 * MAINTAINERS: Reorder Write After Approval list in alphabetical
4488 order.
4489
4490 2004-07-30 David Lecomber <dsl@sources.redhat.com>
4491
4492 * dwarf2read.c (read_file_scope): Set producer if attribute
4493 present.
4494 (struct dwarf2_cu): Added new member producer.
4495
4496 2004-07-30 Jerome Guitton <guitton@gnat.com>
4497
4498 * inflow.c (kill_command): release file handles in BFD.
4499 * exec.c (exec_file_attach): Ditto.
4500 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
4501
4502 2004-07-29 Andrew Cagney <cagney@gnu.org>
4503
4504 * PROBLEMS (mips-irix): Note that it is broken.
4505
4506 2004-07-29 Andrew Cagney <cagney@gnu.org>
4507
4508 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
4509 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
4510
4511 * config/xm-nbsd.h: Delete file.
4512 * config/arm/xm-nbsd.h: Delete file.
4513 * config/i386/xm-nbsd.h: Delete file.
4514 * config/ns32k/xm-nbsd.h: Delete file.
4515 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
4516 * config/i386/nbsdelf.mh (XM_FILE): Delete.
4517 * config/i386/nbsdaout.mh (XM_FILE): Delete.
4518 * config/arm/nbsdelf.mh (XM_FILE): Delete.
4519 * config/arm/nbsdaout.mh (XM_FILE): Delete.
4520
4521 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
4522 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
4523 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
4524 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
4525 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
4526 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
4527
4528 * config/powerpc/xm-linux.h: Delete empty file.
4529 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
4530 * config/powerpc/linux.mh (XM_FILE): Delete.
4531 * config/m68k/xm-linux.h: Delete empty file.
4532 * config/m68k/linux.mh (XM_FILE): Delete.
4533 * config/ia64/xm-linux.h: Delete empty file.
4534 * config/ia64/linux.mh (XM_FILE): Delete.
4535 * config/arm/xm-linux.h: Delete empty file.
4536 * config/arm/linux.mh (XM_FILE): Delete.
4537
4538 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4539 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
4540 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4541 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
4542 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4543 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
4544 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4545 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
4546
4547 * config/m68k/xm-m68k.h: Delete file.
4548 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
4549 copyright.
4550 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
4551 * config/pa/xm-linux.h: Delete empty file.
4552 * config/pa/linux.mh (XM_FILE): Delete.
4553 * config/i386/xm-i386.h: Delete empty file.
4554 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
4555 "i386/xm-i386.h".
4556 * config/i386/obsdaout.mh (XM_FILE): Delete.
4557 * config/i386/obsd64.mh (XM_FILE): Delete.
4558 * config/i386/fbsd64.mh (XM_FILE): Delete.
4559 * config/i386/nto.mh (XM_FILE): Delete.
4560 * config/i386/obsd.mh (XM_FILE): Delete.
4561 * config/i386/linux64.mh (XM_FILE): Delete.
4562 * config/i386/linux.mh (XM_FILE): Delete.
4563 * config/i386/i386sol2.mh (XM_FILE): Delete.
4564 * config/i386/i386gnu.mh (XM_FILE): Delete.
4565 * config/i386/fbsd.mh (XM_FILE): Delete.
4566 * config/i386/nbsd64.mh (XM_FILE): Delete.
4567
4568 2004-07-29 Andrew Cagney <cagney@gnu.org>
4569
4570 * config/pa/xm-linux.h: Do not include "floatformat.h".
4571 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4572 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
4573 * config/i386/xm-i386.h: Do not include "floatformat.h".
4574 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4575 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
4576 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4577 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
4578 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
4579 GDB_HOST_LONG_DOUBLE_FORMAT instead.
4580 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
4581 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
4582 * configure, config.in: Regenerate.
4583 * configure.host (gdb_host_float_format, gdb_host_double_format)
4584 (gdb_host_long_double_format): Set according to the host.
4585
4586 2004-07-29 Andrew Cagney <cagney@gnu.org>
4587
4588 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
4589
4590 2004-07-28 Andrew Cagney <cagney@gnu.org>
4591
4592 * PROBLEMS: Mention threads/1650.
4593 * NEWS: Mention the NPTL fix.
4594
4595 2004-07-28 Andrew Cagney <cagney@gnu.org>
4596
4597 * cli/cli-decode.c (add_setshow_cmd): Delete function.
4598 (add_setshow_cmd_full): Make static.
4599 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
4600 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
4601 * cli/cli-decode.c (add_setshow_filename_cmd)
4602 (add_setshow_string_cmd): New functions.
4603 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
4604 * mips-tdep.c (_initialize_mips_tdep): Update.
4605 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
4606 * cli/cli-logging.c (_initialize_cli_logging): Update.
4607 * complaints.c (_initialize_complaints): Update.
4608 * remote.c (_initialize_remote): Update.
4609
4610 2004-07-28 Andrew Cagney <cagney@gnu.org>
4611
4612 * cli/cli-decode.c (add_setshow_zinteger_cmd)
4613 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
4614 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
4615 print parameters. Make string parameters constant.
4616 * command.h: Update. Update copyright.
4617 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
4618 * observer.c (_initialize_observer): Ditto.
4619 * frame.c (_initialize_frame): Ditto.
4620 * complaints.c (_initialize_complaints): Ditto.
4621 * maint.c (_initialize_maint_cmds): Ditto.
4622 * target.c (initialize_targets): Ditto.
4623 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
4624 * infcall.c (_initialize_infcall): Ditto.
4625 * arm-tdep.c (_initialize_arm_tdep): Ditto.
4626 * m32r-rom.c (_initialize_m32r_rom): Ditto.
4627 * remote-rdi.c (_initialize_remote_rdi): Ditto.
4628 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
4629 * mips-tdep.c (_initialize_mips_tdep): Ditto.
4630
4631 2004-07-28 Andrew Cagney <cagney@gnu.org>
4632
4633 * gdbtypes.c (lookup_primitive_typename): Delete function.
4634 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
4635 * ada-lex.l: Use language_lookup_primitive_type_by_name.
4636 * gdbtypes.c (lookup_typename): Ditto.
4637 * f-exp.y (yylex): Ditto.
4638 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
4639
4640 * scm-lang.c (c_builtin_types): Delete extern declaration.
4641 (scm_language_defn): Replace
4642 string_char_type and primitive_type_vector with
4643 la_language_arch_info.
4644 * jv-lang.c (java_language_defn): Replace
4645 string_char_type and primitive_type_vector with
4646 la_language_arch_info.
4647 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
4648 c_builtin_types in comment.
4649 * c-lang.h (struct language_arch_info): Declare opaque.
4650 (c_language_arch_info): Declare.
4651 (c_builtin_types): Delete declaration.
4652 * c-lang.c (c_language_arch_info): Set string_char_type to
4653 builtin_char, not builtin_true_char. Make global.
4654 (c_builtin_types): Delete array.
4655 (asm_language_defn, minimal_language_defn): Replace
4656 string_char_type and primitive_type_vector with
4657 la_language_arch_info.
4658
4659 2004-07-28 Andrew Cagney <cagney@gnu.org>
4660
4661 * gdbtypes.h (struct builtin_type): Rename true_char to
4662 builtin_true_char.
4663 * gdbtypes.c (gdbtypes_post_init): Update.
4664 * c-lang.c (arch_info): New function.
4665 (enum c_primitive_types): New enum.
4666 (c_language_defn): Instead of string_char_type and
4667 primitive_type_vector set la_language_arch_info.
4668
4669 2004-07-28 Andrew Cagney <cagney@gnu.org>
4670
4671 * language.h (struct language_arch_info): Fix typo
4672 s/primative/primitive/.
4673 * gdbtypes.c (lookup_primitive_typename): Ditto.
4674 * language.c (language_lookup_primitive_type_by_name)
4675 (unknown_language_arch_info): Ditto.
4676
4677 2004-07-27 Andrew Cagney <cagney@gnu.org>
4678
4679 * defs.h (enum language): Add nr_languages.
4680 * language.h (struct language_arch_info): Define.
4681 (struct language_defn): Add la_language_arch_info.
4682 (language_lookup_primative_type_by_name): Declare.
4683 (language_string_char_type): Declare.
4684 * language.c (_initialize_language, language_gdbarch_post_init)
4685 (struct language_gdbarch, language_gdbarch_data): Implement
4686 per-architecture language information.
4687 (unknown_language_arch_info, language_string_char_type)
4688 (language_lookup_primative_type_by_name): New functions.
4689 (unknown_language_defn, auto_language_defn)
4690 (local_language_defn): Set la_language_arch_info to
4691 unknown_language_arch_info.
4692 (unknown_builtin_types): Delete.
4693 * gdbtypes.c (lookup_primitive_typename): Use
4694 language_lookup_primative_type_by_name.
4695 (create_string_type): Use language_string_char_type.
4696 * values.c (value_from_string): Use language_string_char_type.
4697 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
4698 * p-lang.c (pascal_language_defn): Ditto.
4699 * m2-lang.c (m2_language_defn): Ditto.
4700 * jv-lang.c (java_language_defn): Ditto.
4701 * objc-lang.c (objc_language_defn): Ditto.
4702 * f-lang.c (f_language_defn): Ditto.
4703 * c-lang.c (c_language_defn, cplus_language_defn)
4704 (asm_language_defn, minimal_language_defn): Ditto.
4705
4706 2004-07-27 Andrew Cagney <cagney@gnu.org>
4707
4708 * gdbtypes.h (struct builtin_type): Declare.
4709 (builtin_type): Declare.
4710 * d10v-tdep.c (d10v_register_type): Use builtin_type.
4711 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
4712 (gdbtypes_post_init): New function.
4713 (builtin_type): New function.
4714
4715 2004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
4716
4717 * remote-m32r-sdi.c: Fix breakpoint bug.
4718 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
4719 recv_char_data, recv_long_data): New functions to replace communication
4720 sequences.
4721
4722 2004-07-26 Michael Chastain <mec.gnu@mindspring.com>
4723
4724 Document PR threads/1650.
4725 * PROBLEMS (Threads): Document problem with many threads
4726
4727 2004-07-26 Andrew Cagney <cagney@gnu.org>
4728
4729 * gdb-mi.el: Move from here ...
4730 * mi/gdb-mi.el: ... to here.
4731
4732 2004-07-26 Andrew Cagney <cagney@gnu.org>
4733
4734 Problem reported by Ashley Pittman <ashley@quadrics.com>.
4735 * main.c (captured_main): When in batch mode always detach.
4736
4737 2004-07-26 Andrew Cagney <cagney@gnu.org>
4738
4739 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
4740 and h8300 as broken.
4741 * NEWS: END-OF-LIFE frame compatibility module.
4742 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
4743 specific comments.
4744
4745 2004-07-26 Andrew Cagney <cagney@gnu.org>
4746
4747 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
4748 * xcoffsolib.c (_initialize_xcoffsolib): Update.
4749 * wince.c (_initialize_wince): Update.
4750 * win32-nat.c (_initialize_win32_nat): Update.
4751 * varobj.c (_initialize_varobj): Update.
4752 * valops.c (_initialize_valops): Update.
4753 * utils.c (initialize_utils, initialize_utils): Update.
4754 * tui/tui-win.c (_initialize_tui_win): Update.
4755 * top.c (init_main): Update.
4756 * symfile.c (_initialize_symfile): Update.
4757 * source.c (_initialize_source): Update.
4758 * somsolib.c (_initialize_som_solib): Update.
4759 * solib.c (_initialize_solib): Update.
4760 * solib-frv.c (_initialize_frv_solib): Update.
4761 * serial.c (_initialize_serial): Update.
4762 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
4763 * remote.c (_initialize_remote, _initialize_remote): Update.
4764 * remote-vx.c (_initialize_vx): Update.
4765 * remote-utils.c (_initialize_sr_support): Update.
4766 * remote-sds.c (_initialize_remote_sds): Update.
4767 * remote-mips.c (_initialize_remote_mips): Update.
4768 * remote-e7000.c (_initialize_remote_e7000): Update.
4769 * proc-api.c (_initialize_proc_api): Update.
4770 * printcmd.c: Update.
4771 * parse.c (_initialize_parse): Update.
4772 * pa64solib.c (_initialize_pa64_solib): Update.
4773 * p-valprint.c (_initialize_pascal_valprint): Update.
4774 * monitor.c (_initialize_remote_monitors): Update.
4775 * mips-tdep.c (_initialize_mips_tdep): Update.
4776 * mcore-tdep.c (_initialize_mcore_tdep): Update.
4777 * maint.c (_initialize_maint_cmds): Update.
4778 * lin-lwp.c (_initialize_lin_lwp): Update.
4779 * language.c (_initialize_language): Update.
4780 * kod.c (_initialize_kod): Update.
4781 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
4782 * i386-tdep.c (_initialize_i386_tdep): Update.
4783 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
4784 * gdbarch.sh: Update.
4785 * gdbarch.c: Re-generate.
4786 * gdb-events.sh: Update.
4787 * gdb-events.c: Re-generate.
4788 * frame.c (_initialize_frame): Update.
4789 * exec.c: Update.
4790 * demangle.c (_initialize_demangler): Update.
4791 * dcache.c (_initialize_dcache): Update.
4792 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
4793 * cp-valprint.c (_initialize_cp_valprint): Update.
4794 * corefile.c (_initialize_core): Update.
4795 * command.h: Update.
4796 * cli/cli-decode.h: Update.
4797 * cli/cli-cmds.c (init_cli_cmds): Update.
4798 * charset.c (_initialize_charset): Update.
4799 * breakpoint.c (_initialize_breakpoint): Update.
4800 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
4801 * alpha-tdep.c (_initialize_alpha_tdep): Update.
4802 * aix-thread.c (_initialize_aix_thread): Update.
4803
4804 2004-07-24 Mark Kettenis <kettenis@gnu.org>
4805
4806 Partial fix for PR backtrace/1718.
4807 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
4808 that GCC migrates into the prolugue. Don't handle any
4809 instructions that clobber %ebx.
4810
4811 2004-07-23 Andrew Cagney <cagney@gnu.org>
4812
4813 Use regcache_raw_collect instead of regcache_collect.
4814 * regcache.h (regcache_collect): Delete declaration.
4815 * regcache.c (regcache_colect): Delete function.
4816 * win32-nat.c (do_child_store_inferior_registers): Update.
4817 * sol-thread.c (sol_thread_store_registers): Update.
4818 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
4819 * rs6000-nat.c (store_register): Update.
4820 * remote.c (store_register_using_P, remote_store_registers): Update.
4821 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
4822 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
4823 (fill_vrregset, store_spe_registers, fill_gregset)
4824 (fill_gregset): Update.
4825 * nto-procfs.c (procfs_store_registers): Update.
4826 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
4827 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
4828 * m68klinux-nat.c (store_register, fill_gregset): Update.
4829 * m68k-tdep.c (fill_gregset): Update.
4830 * infptrace.c (store_register): Update.
4831 * i386-nto-tdep.c (i386nto_regset_fill): Update.
4832 * i386-linux-nat.c (store_register, fill_gregset): Update.
4833 * hppa-linux-nat.c (fill_gregset): Update.
4834 * go32-nat.c (store_register): Update.
4835 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
4836 (store_fp_regs): Update.
4837 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
4838 (store_nwfpe_extended, store_fpregister, store_fpregs)
4839 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
4840 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
4841 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
4842 (store_regs_user_thread, store_regs_kernel_thread): Update.
4843
4844 2004-07-24 Mark Kettenis <kettenis@gnu.org>
4845
4846 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
4847 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
4848 encoding.
4849 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
4850 member of `struct comp_unit'.
4851
4852 2004-07-23 Andrew Cagney <cagney@gnu.org>
4853
4854 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
4855 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
4856
4857 2004-07-23 Martin Hunt <hunt@redhat.com>
4858 Kevin Buettner <kevinb@redhat.com>
4859
4860 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
4861 alignment was being added to the offset instead of multiplied.
4862
4863 2004-07-23 Mark Kettenis <kettenis@gnu.org>
4864
4865 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
4866 changed signal trampoline in OpenBSD 3.5-current.
4867
4868 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
4869 <machine/pcb.h> and "bsd-kvm.h".
4870 (sparc64nbsd_supply_pcb): New function.
4871 (_initialize_sparc64nbsd_nat): Renamed from
4872 _initialize_sparcnbsd_nat. Enable libkvm interface.
4873 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
4874 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
4875 (LOADLIBES): New variable.
4876
4877 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
4878
4879 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
4880
4881 2004-07-21 Andrew Cagney <cagney@gnu.org>
4882
4883 Use regcache_raw_supply instead of supply_register.
4884 * regcache.h (supply_register): Delete declaration.
4885 * regcache.c (supply_register): Delete function.
4886 * wince.c (do_child_fetch_inferior_registers): Update.
4887 * win32-nat.c (do_child_fetch_inferior_registers)
4888 (fetch_elf_core_registers): Update.
4889 * v850ice.c (v850ice_fetch_registers): Update.
4890 * thread-db.c (thread_db_store_registers): Update.
4891 * sol-thread.c (sol_thread_store_registers): Update.
4892 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
4893 * rs6000-nat.c (fetch_register): Update.
4894 * rom68k-rom.c (rom68k_supply_one_register): Update.
4895 * remote.c (remote_wait, remote_async_wait): Update.
4896 * remote-st.c (get_hex_regs): Update.
4897 * remote-sim.c (gdbsim_fetch_register): Update.
4898 * remote-sds.c (sds_fetch_registers): Update.
4899 * remote-rdp.c (remote_rdp_fetch_register): Update.
4900 * remote-rdi.c (arm_rdi_fetch_registers): Update.
4901 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
4902 * remote-m32r-sdi.c (m32r_fetch_register): Update.
4903 * remote-hms.c (init_hms_cmds): Update.
4904 * remote-est.c (init_est_cmds): Update.
4905 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
4906 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
4907 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
4908 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
4909 (fetch_register, supply_vrregset, supply_vrregset)
4910 (fetch_spe_registers): Update.
4911 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
4912 * monitor.c (monitor_supply_register): Update.
4913 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
4914 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
4915 (mipsnbsd_supply_fpreg): Update.
4916 * mips-nat.c (fetch_inferior_registers)
4917 (fetch_core_registers): Update.
4918 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
4919 (supply_fpregset, mips64_supply_gregset)
4920 (mips64_supply_fpregset): Update.
4921 * m68klinux-nat.c (fetch_register, supply_gregset)
4922 (supply_fpregset): Update.
4923 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
4924 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
4925 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
4926 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
4927 * infptrace.c (fetch_register): Update.
4928 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
4929 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
4930 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
4931 (gnu_fetch_registers, gnu_store_registers): Update.
4932 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
4933 * i386-linux-nat.c (fetch_register, supply_gregset)
4934 (dummy_sse_values): Update.
4935 * hpux-thread.c (hpux_thread_fetch_registers): Update.
4936 * hppah-nat.c (fetch_register): Update.
4937 * hppa-linux-nat.c (fetch_register, supply_gregset)
4938 (supply_fpregset): Update.
4939 * go32-nat.c (fetch_register): Update.
4940 * dve3900-rom.c (fetch_bitmapped_register)
4941 (_initialize_r3900_rom): Update.
4942 * cris-tdep.c (supply_gregset): Update.
4943 * abug-rom.c (init_abug_cmds): Update.
4944 * core-aout.c (fetch_core_registers): Update.
4945 * armnbsd-nat.c (supply_gregset, supply_fparegset)
4946 (fetch_register, fetch_fp_register): Update.
4947 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
4948 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
4949 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
4950 * alphanbsd-tdep.c (fetch_core_registers): Update.
4951 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
4952 * alpha-nat.c (fetch_osf_core_registers)
4953 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
4954 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
4955 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
4956
4957 2004-07-21 Andrew Cagney <cagney@gnu.org>
4958
4959 * PROBLEMS: Mention breakpoints/1702.
4960 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
4961 that is known to work.
4962
4963 2004-07-21 Andrew Cagney <cagney@gnu.org>
4964
4965 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
4966 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
4967 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
4968 (handle_inferior_event): Wrap call to deprecated
4969 IGNORE_HELPER_CALL in #ifdef.
4970 * config/mips/tm-nbsd.h: Update.
4971
4972 2004-07-20 Jim Blandy <jimb@redhat.com>
4973
4974 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
4975 bfd_mach_ppc has no segment registers.
4976
4977 Include PowerPC SPR numbers for special-purpose registers.
4978 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
4979 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
4980 new member in initializer.
4981 (S, S4, SN4, S64): New macros for defining special-purpose
4982 registers.
4983 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
4984 registers_403, registers_403GC, registers_505, registers_860,
4985 registers_601, registers_602, registers_603, registers_604,
4986 registers_750, registers_e500): Use them.
4987
4988 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
4989 replace references with expression used to initialize variable.
4990
4991 2004-07-20 Andrew Cagney <cagney@gnu.org>
4992
4993 * breakpoint.c (deprecated_read_memory_nobpt): Rename
4994 read_memory_nobpt.
4995 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
4996 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
4997 (s390_sigtramp_frame_sniffer): Update.
4998 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
4999 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
5000 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
5001 (mips32_fetch_instruction): Update.
5002 * mcore-tdep.c (get_insn): Update.
5003 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
5004 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
5005 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
5006 * i386-linux-tdep.c (i386_linux_sigtramp_start)
5007 (i386_linux_rt_sigtramp_start): Update.
5008 * i386-linux-nat.c (child_resume): Update.
5009 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
5010 * hppa-linux-tdep.c (insns_match_pattern): Update.
5011 * gdbcore.h: Update.
5012 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
5013 * frame.c (safe_frame_unwind_memory): Update.
5014 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
5015 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
5016 * alpha-tdep.c (alpha_read_insn): Update.
5017
5018 2004-07-20 Andrew Cagney <cagney@gnu.org>
5019
5020 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
5021 containing both bytes and mask. Add "frame_type".
5022 * tramp-frame.c (tramp_frame_start): Update.
5023 (tramp_frame_prepend_unwinder): Update.
5024 * mips-linux-tdep.c (mips_linux_o32_sigframe)
5025 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
5026 (mips_linux_n64_rt_sigframe): Update. Make "static const".
5027 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
5028
5029 2004-07-19 Eli Zaretskii <eliz@gnu.org>
5030
5031 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
5032 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
5033 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
5034 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
5035
5036 2004-07-17 Andrew Cagney <cagney@gnu.org>
5037
5038 * NEWS, PROBLEMS: Update for 6.2.
5039
5040 * README: Update to 6.2.
5041
5042 * utils.c (xvasprintf): Call xstrvprintf.
5043
5044 * parse.c: Update copyright.
5045 (null_post_parser): Eliminate ARGSUSED.
5046
5047 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
5048 * tui/tui-win.c (tui_get_cmd_list): Ditto.
5049 * symfile-mem.c (_initialize_symfile_mem): Ditto.
5050
5051 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
5052 * ppc-linux-nat.c: Use "Linux kernel".
5053 * hppa-linux-tdep.c: Use GNU/Linux.
5054 * hppa-linux-nat.c: Use GNU/Linux.
5055 * dwarfread.c: Add [sic] to use of Linux.
5056
5057 * hppa-linux-nat.c: Do not include <string.h>.
5058 (supply_fpregset): Remove "register" attribute.
5059
5060 * solib-frv.c (fetch_loadmap): Use xfree, not free.
5061
5062 2004-07-17 Mark Kettenis <kettenis@gnu.org>
5063
5064 * configure.in: Define _MSE_INT_H on Solaris 9 too.
5065 * configure, config.in: Regenerated.
5066
5067 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
5068 "bsd-kvm.h".
5069 (vaxbsd_supply_pcb): New function.
5070 (_initialize_vaxbsd_nat): New prototype and function.
5071 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
5072 solib-sunos.o.
5073 (LOADLIBES): New variable.
5074 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5075 (LOADLIBES): New variable.
5076 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
5077 (LOADLIBES): New variable.
5078 * Makefile.in (vaxbsd-nat.o): Update dependencies.
5079
5080 2004-07-16 Andrew Cagney <cagney@gnu.org>
5081
5082 * defs.h (event_loop_p): Replace variable declaration with macro,
5083 always 1.
5084 * main.c (captured_main): Delete options "-async" and "-noasync".
5085 (event_loop_p): Delete variable.
5086 * NEWS: Mention that "-async" and "-noasync" were removed.
5087
5088 2004-07-16 Andrew Cagney <cagney@gnu.org>
5089
5090 * remote-m32r-sdi.c: Re-indent.
5091
5092 2004-07-16 Jim Blandy <jimb@redhat.com>
5093
5094 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
5095 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
5096 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
5097 missing MPC823 SPRs.
5098 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
5099 incorrect. (This was corrected in GDB's register name tables on
5100 2004-07-14.)
5101
5102 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
5103 should be "esasrr" ("ESA Save and Restore Register").
5104
5105 2004-07-16 Andrew Cagney <cagney@gnu.org>
5106
5107 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
5108 calls, no longer applicable. Update comments and rename parameter
5109 "step_frame" to "return_frame".
5110
5111 2004-07-16 Andrew Cagney <cagney@gnu.org>
5112
5113 * frame.c (fprint_field): New function.
5114 (fprint_frame_id): Use fprint_field.
5115
5116 2004-07-15 Joel Brobecker <brobecker@gnat.com>
5117
5118 * ada-lang.c (ada_language_defn): Remove commented out code.
5119
5120 2004-07-15 Jim Blandy <jimb@redhat.com>
5121
5122 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
5123 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
5124
5125 2004-07-14 Jim Blandy <jimb@redhat.com>
5126
5127 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
5128
5129 * ppc-tdep.h (ppc_num_vrs): New enum constant.
5130
5131 * ppc-tdep.h (ppc_num_srs): New enum constant.
5132
5133 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
5134 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
5135 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
5136 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
5137 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
5138 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
5139 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
5140 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
5141 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
5142 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
5143 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
5144 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
5145 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
5146 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
5147 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
5148 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
5149 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
5150 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
5151 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
5152 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
5153 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
5154 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
5155 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
5156 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
5157 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
5158 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
5159 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
5160 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
5161 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
5162 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
5163 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
5164 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
5165 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
5166 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
5167 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
5168 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
5169 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
5170 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
5171 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
5172 special-purpose register numbers.
5173
5174 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
5175 manual mentions 'md_twb', but many mention 'm_twb', and at that
5176 point in the register list.)
5177
5178 2004-07-14 Andrew Cagney <cagney@gnu.org>
5179
5180 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
5181 instead of "internal-error".
5182
5183 2004-07-10 Joel Brobecker <brobecker@gnat.com>
5184
5185 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
5186 that was inserted inside a comment.
5187
5188 2004-07-10 Randolph Chung <tausq@debian.org>
5189
5190 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
5191 function.
5192 (hppa_hpux_push_dummy_code): New function.
5193 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
5194 Set find_global_pointer method.
5195
5196 2004-07-10 Mark Kettenis <kettenis@gnu.org>
5197
5198 * NEWS: Mention BSD libkvm interface.
5199
5200 2004-07-10 Michael Snyder <msnyder@redhat.com>
5201
5202 * symfile.c (generic_load): Comment typo.
5203 * stack.c (get_selected_block): Ditto.
5204 * regcache.c (regcache_cooked_read): Ditto.
5205 * monitor.c (monitor_debug): Ditto.
5206 * mips-tdep.c (mips_read_pc): Ditto.
5207 * i386-linux-nat.c (ps_get_thread_area): Ditto.
5208 * gdb_mbuild.sh: Ditto.
5209 * gdbarch.sh: Ditto.
5210 * gdbarch.h: Ditto.
5211
5212 2004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
5213
5214 * ada-tasks.c: Remove file.
5215
5216 Remove ARI problems:
5217
5218 * ada-exp.y (write_var_from_sym): Reformat to put operator at
5219 beginning of line.
5220
5221 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
5222 Add comment.
5223 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
5224 (MIN_OF_SIZE): Rename min_of_size. Add comment.
5225 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
5226 (UMIN_OF_SIZE): Remove.
5227 (max_of_type): New function to replace orphan macro in gdbtypes.h
5228 (min_of_type): Ditto.
5229 (discrete_type_high_bound): Use max_of_type.
5230 (discrete_type_low_bound): Use min_of_type.
5231 (possible_user_operator_p): Move operator to beginning of line.
5232 (ada_is_variant_part): Ditto.
5233 (ensure_lval): Rewrite to avoid deprecated operations.
5234 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
5235 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
5236 (ada_enum_name): Remove assignments in 'if' statements.
5237 (build_ada_types): Add gdbarch parameter.
5238 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
5239 with gdbarch_data_register_post_init.
5240 Use add_setshow_uinteger_cmd rather than add_set_cmd and
5241 add_show_from_set.
5242
5243 * ada-valprint.c (inspect_it): Remove declaration.
5244 (repeat_count_threshold): Remove declaration.
5245 (ada_print_floating): Remove assignments in 'if' statements.
5246 (print_str): Move operator to beginning of line.
5247
5248 2004-07-08 Jim Blandy <jimb@redhat.com>
5249
5250 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
5251
5252 2004-07-08 Bob Rossi <bob@brasko.net>
5253
5254 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
5255
5256 2004-07-06 Jeff Johnston <jjohnstn@redhat.com>
5257
5258 * language.h (struct_language_defn): Add new function pointer:
5259 la_class_name_from_physname. Also add new prototype for
5260 language_class_name_from_physname.
5261 * language.c (language_class_name_from_physname): New function.
5262 (unk_lang_class_name): Ditto.
5263 (unknown_language_defn, auto_language_defn): Change
5264 to add unk_lang_class_name function pointer for
5265 la_class_name_from_physname.
5266 (local_language_defn): Ditto.
5267 * dwarf2read.c (guess_structure_name): Change to call
5268 language_class_name_from_physname.
5269 (determine_class_name): Ditto.
5270 * cp-support.c (class_name_from_physname): Renamed.
5271 (cp_class_name_from_physname): New name of function.
5272 * cp-support.h: Ditto.
5273 * c-lang.c (c_language_defn): Change to add NULL
5274 for class_name_from_physname function pointer.
5275 (cplus_language_defn): Change to add cp_class_name_from_physname.
5276 * jv-lang.c (java_class_name_physname): New function.
5277 (java_find_last_component): New static routine.
5278 (java_language_defn): Add java_class_name_from_physname pointer.
5279 * ada-lang.c (ada_language_defn): Change to add NULL
5280 for class_name_from_physname function pointer.
5281 * f-lang.c (f_language_defn): Ditto.
5282 * m2-lang.c (m2_language_defn): Ditto.
5283 * objc-lang.c (objc_language_defn): Ditto.
5284 * p-lang.c (pascal_language_defn): Ditto.
5285 * scm-lang.c (scm_language_defn): Ditto.
5286
5287 2004-07-06 Andrew Cagney <cagney@gnu.org>
5288
5289 Patch from Bart Robinson.
5290 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
5291 (O_LARGEFILE): Define to 0, if not defined.
5292
5293 2004-07-03 Mark Kettenis <kettenis@gnu.org>
5294
5295 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
5296 <machine/pcb.h> and "bsd-kvm.h".
5297 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
5298 (m68kbsd_supply_pcb): New function.
5299 (_initialize_m68kbsd_nat): New prototype and function.
5300 * Makefile.in (m68kbsd-nat.o): Update dependencies.
5301 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5302 (LOADLIBES): New variable.
5303 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
5304 (LOADLIBES): New variable.
5305
5306 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
5307
5308 2004-07-03 Mark Kettenis <kettenis@gnu.org>
5309
5310 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
5311 <sys/proc.h>.
5312 (bsd_kvm_cmdlist): New variable.
5313 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
5314 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
5315 command and "kvm proc" command.
5316 * Makefile.in (bsd-kvm.o): Update dependencies.
5317
5318 2004-07-02 Mark Kettenis <kettenis@gnu.org>
5319
5320 * osabi.c: Update copyright year.
5321 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
5322 notes if EI_OSABI is set to ELFOSABI_HPUX.
5323
5324 2004-07-01 Michael Snyder <msnyder@redhat.com>
5325
5326 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
5327 that seems to have gotten whacked out of line.
5328
5329 2004-07-01 Mark Kettenis <kettenis@gnu.org>
5330
5331 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
5332 code.
5333
5334 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
5335
5336 * ada-lang.c (decode_packed_array): Minor change to comment.
5337 (ada_value_slice_ptr): New function.
5338 (ada_value_slice): New function.
5339 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
5340 test. Don't know why it is there.
5341 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
5342 to avoid dereferencing huge arrays from which one is slicing.
5343 (empty_array): Correct to return an array rather than
5344 a subrange value.
5345 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
5346 on empty arrays (let'em use 'FIRST instead).
5347
5348 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
5349
5350 Address complaints from gdb_ari.sh:
5351
5352 * ada-exp.y: Include gdb_string.h rather than string.h.
5353 (convert_char_literal): Reformat declaration.
5354 * ada-lang.h: Include opaque struct declaration for struct frame_info.
5355 * ada-lex.l: Change use of free to xfree (the macro would do so
5356 anyway, but this is harmless).
5357 Include gdb_string.h rather than string.h.
5358 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
5359
5360 * ada-lang.c (parse): Remove K&Rism in parameter list.
5361 (is_name_suffix): Correct Linux => GNU/Linux in comment.
5362
5363 2004-06-30 Mark Kettenis <kettenis@gnu.org>
5364
5365 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
5366 dead code.
5367
5368 2004-06-30 Mark Kettenis <kettenis@gnu.org>
5369
5370 * alphabsd-nat.c: Update copyright year.
5371 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
5372
5373 2004-06-29 Joel Brobecker <brobecker@gnat.com>
5374
5375 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
5376 (i386_cygwin_in_solib_call_trampoline): New function.
5377 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
5378 and skip_trampoline_code gdbarch methods.
5379
5380 2004-06-29 Jim Blandy <jimb@redhat.com>
5381
5382 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
5383 name actually used in the dependency lists.
5384
5385 2004-06-29 Randolph Chung <tausq@debian.org>
5386
5387 * NEWS (New native configurations): Mention GNU/Linux/hppa.
5388
5389 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
5390
5391 * win32-nat.c (child_pid_to_exec_file): New function.
5392 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
5393 functionality.
5394
5395 2004-06-28 Andrew Cagney <cagney@gnu.org>
5396
5397 * defs.h (xstrvprintf): Declare.
5398 * utils.c (xstrvprintf): New function.
5399 (internal_vproblem, xstrprintf, xasprintf)
5400 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
5401 * serial.c (serial_printf): Ditto.
5402 * complaints.c (vcomplaint): Ditto.
5403
5404 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
5405
5406 * infcmd.c (attach_command): Move call to target_terminal_inferior
5407 behind loading symbol table.
5408
5409 2004-06-28 Andrew Cagney <cagney@gnu.org>
5410
5411 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
5412 change - add back extern deprecated_ui_loop_hook declaration.
5413
5414 2004-06-28 Andrew Cagney <cagney@gnu.org>
5415
5416 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
5417 xstrprintf.
5418 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
5419 (c_value_of_variable): Ditto.
5420 * utils.c (internal_vproblem): Ditto.
5421 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
5422 * remote.c (add_packet_config_cmd): Ditto.
5423 * remote-rdp.c (rdp_set_command_line): Ditto.
5424 * regcache.c (regcache_dump): Ditto.
5425 * frv-tdep.c (new_variant, new_variant): Ditto.
5426 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
5427 (fbsd_find_memory_regions): Ditto.
5428 * breakpoint.c (create_thread_event_breakpoint)
5429 (create_breakpoints): Ditto.
5430 * aix-thread.c (aix_thread_pid_to_str): Ditto.
5431 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
5432
5433 2004-06-28 Joel Brobecker <brobecker@gnat.com>
5434
5435 * ada-lang.c: Re-indent file, with some massaging to help indent
5436 a bit when the result is otherwise really too ugly.
5437
5438 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
5439
5440 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
5441 code_addr_p and special_addr_p to 'unsigned int'.
5442
5443 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5444
5445 * i386v4-nat.c: Update copyright year and tweak comment.
5446 (regmap): Remove trailing comma.
5447 (supply_gregset): Rename local variable i to regnum. Call
5448 regcache_raw_supply instead of supply_register.
5449 (fill_gregset): Rename argument regno to regnum. Call
5450 regcache_raw_collect instead of regcache_collect.
5451
5452 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
5453
5454 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
5455 and special_addr_p.
5456 (frame_id_build, frame_id_build_special): Update comments.
5457 (frame_id_build_wild): New prototype.
5458 * frame.c (frame_id_build, frame_id_build_special): Fill in new
5459 struct frame_id fields.
5460 (frame_id_build_wild): New function.
5461 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
5462
5463 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5464
5465 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
5466 hppabsd-tdep.c.
5467
5468 2004-06-27 Joel Brobecker <brobecker@gnat.com>
5469
5470 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
5471
5472 2004-06-27 Joel Brobecker <brobecker@gnat.com>
5473
5474 * ada-lang.c: Re-indent file.
5475
5476 2004-06-27 Joel Brobecker <brobecker@gnat.com>
5477
5478 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
5479 (no_symtab_msg): Likewise.
5480
5481 2004-06-27 Andreas Schwab <schwab@suse.de>
5482
5483 * source.c: Fix whitespace.
5484
5485 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5486
5487 * configure.in: Include <sys/param.h> for td_pcb test.
5488 * configure: Regenerated.
5489
5490 * i386nbsd-nat.c: New file.
5491 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
5492 i386obsd-nat.c and i386obsd-tdep.c.
5493 (i386nbsd-nat.o): New dependency.
5494 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
5495 bsd-kvm.o.
5496 (LOADLIBES): New variable.
5497 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
5498 bsd-kvm.o.
5499 (LOADLIBES): New variable.
5500
5501 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
5502 (LOADLIBES): New variable.
5503
5504 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
5505 fetching from BSD_KVM_PADDR. Correctly lookup address for
5506 "_thread0".
5507
5508 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
5509 "bsd-kvm.h".
5510 (amd64fbsd_supply_pcb): New funcion.
5511 (_initialize_amd64fbsd_nat): Enable libkvm interface.
5512
5513 2004-06-27 <david@streamline-computing.com>
5514
5515 Partial fix for PR cli/1056.
5516 * valarith.c: Check for zero in division and remainder
5517 evaluation.
5518
5519 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5520
5521 * i387-tdep.c: Remove excessive whitespace.
5522
5523 2004-06-26 Andrew Cagney <cagney@gnu.org>
5524
5525 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
5526 * gdb-events.h, gdb-events.c: Re-generate.
5527 * tui/tui-hooks.c (tui_install_hooks): Update.
5528 (tui_remove_hooks): Update.
5529 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
5530
5531 2004-06-26 Mark Kettenis <kettenis@gnu.org>
5532
5533 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
5534 (gregset_t, fpregset_t): Remove typedefs.
5535 (REG_OFFSET): Rename argument.
5536 (amd64bsd_r_reg_offset): Rename from reg_offset.
5537 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
5538 Remove functions.
5539 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
5540 of reg_offset.
5541 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
5542
5543 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
5544
5545 * vax-tdep.c: Tweak comment.
5546
5547 Add OpenBSD/hppa support.
5548 * NEWS (New native configurations): Mention OpenBSD/hppa.
5549 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
5550 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
5551 files.
5552 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
5553 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
5554 * configure.host: Add hppa*-*-openbsd*.
5555 * configure.tgt: Add hppa*-*-openbsd*.
5556
5557 2004-06-25 Andrew Cagney <cagney@gnu.org>
5558
5559 * defs.h (deprecated_ui_loop_hook): Deprecated.
5560 * wince.c (child_wait): Update.
5561 * win32-nat.c (child_wait): Update.
5562 * v850ice.c (v850ice_wait): Update.
5563 * top.c (deprecated_ui_loop_hook): Update.
5564 * serial.h: Update.
5565 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
5566 (do_unix_readchar): Update.
5567 * ser-tcp.c (net_open): Update.
5568 * remote-sim.c (gdb_os_poll_quit): Update.
5569 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
5570
5571 2004-06-24 Andrew Cagney <cagney@gnu.org>
5572
5573 * defs.h (deprecated_pre_add_symbol_hook)
5574 (deprecated_post_add_symbol_hook): Deprecated.
5575 * symfile.c (symbol_file_add_with_addrs_or_offsets)
5576 (symbol_file_add_with_addrs_or_offsets): Update references.
5577
5578 2004-06-24 Andrew Cagney <cagney@gnu.org>
5579
5580 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
5581 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
5582 * wince.c (ui_loop_hook): Delete extern declaration.
5583 * win32-nat.c (ui_loop_hook): Delete extern declaration..
5584 * v850ice.c (ui_loop_hook): Delete extern declaration..
5585 * ser-unix.c (ui_loop_hook): Delete extern declaration..
5586 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
5587 * remote-sim.c (ui_loop_hook): Delete extern declaration..
5588 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
5589 ui_loop_hook declaration.
5590
5591 2004-06-24 Andrew Cagney <cagney@gnu.org>
5592
5593 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
5594 entry_func_highpc fields.
5595 * objfiles.c (init_entry_point_info): Do not clear
5596 entry_func_lowpc and entry_func_highpc.
5597 (objfile_relocate): Do not relocate entry_func_lowpc and
5598 entry_func_highpc.
5599 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
5600 entry_func_highpc.
5601 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
5602 entry_func_highpc.
5603 * blockframe.c (legacy_frame_chain_valid): Replace tests against
5604 entry_func_lowpc and entry_func_highpc with call to
5605 inside_entry_func.
5606
5607 2004-06-24 Mark Kettenis <kettenis@gnu.org>
5608
5609 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
5610 quad-precision floating point arguments in registers.
5611
5612 2004-06-24 Mark Kettenis <kettenis@gnu.org>
5613
5614 From Michael Mueller <m.mueller99@kay-mueller.de>:
5615 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
5616 account.
5617
5618 2004-06-22 Jeff Johnston <jjohnstn@redhat.com>
5619
5620 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
5621 to -1.
5622 * breakpoint.c (bpstat_stop_status): Move check for ignoring
5623 untriggered watchpoints to a separate if clause. Update function
5624 comment regarding STOPPED_BY_WATCHPOINT argument.
5625
5626 2004-06-22 Jim Blandy <jimb@redhat.com>
5627
5628 * gdbarch.sh: Doc fix.
5629
5630 2004-06-21 Martin Hunt <hunt@redhat.com>
5631 Kevin Buettner <kevinb@redhat.com>
5632
5633 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
5634 * mips-tdep.h (MIPS_SP_REGNUM): Define.
5635 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
5636 to set_gdbarch_sp_regnum(). Use cooked register number.
5637 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
5638
5639 2004-06-21 Andrew Cagney <cagney@gnu.org>
5640
5641 * gdbarch.sh: When the macro field is empty, do not generate a
5642 macro definition. When the macro field is "=", generate the macro
5643 name from the upper-case function name.
5644 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
5645 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
5646 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
5647 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
5648 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
5649 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
5650 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
5651 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
5652 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
5653 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
5654 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
5655 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
5656 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
5657 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
5658 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
5659 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
5660 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
5661 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
5662 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
5663 (DEPRECATED_USE_STRUCT_CONVENTION)
5664 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5665 (DEPRECATED_FRAME_INIT_SAVED_REGS)
5666 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
5667 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
5668 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
5669 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
5670 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
5671 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
5672 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
5673 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
5674 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
5675 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
5676 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
5677 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
5678 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
5679 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
5680 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
5681 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
5682
5683 2004-06-21 Andrew Cagney <cagney@gnu.org>
5684
5685 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
5686 macro name, and the function rather than macro value. Only wrap
5687 macro print statements in #ifdef. Move format logic to where it
5688 is needed.
5689 * gdbarch.c: Re-generate.
5690
5691 * gdbarch.sh (read): Delete "print_p" and "description", add
5692 "garbage_at_eol". Check for non-empty garbage at end-of-line.
5693 Delete references to print_p.
5694 (TARGET_ARCHITECTURE): Delete print predicate.
5695 * gdbarch.c: Re-generate.
5696
5697 * gdbarch.sh: Check that multi-arch methods do not provide a
5698 macro.
5699 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
5700 (print_registers_info, print_float_info, print_vector_info)
5701 (adjust_breakpoint_address, remote_translate_xfer_address)
5702 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
5703 (address_class_type_flags_to_name, unwind_sp): Remove the macro
5704 name from the multi-arch definition.
5705
5706 2004-06-20 Andrew Cagney <cagney@gnu.org>
5707
5708 * gdbarch.sh: Sort by the function, instead of macro name.
5709 * gdbarch.c: Re-generate.
5710
5711 2004-06-20 Andrew Cagney <cagney@gnu.org>
5712
5713 * gdbarch.sh: Use the function, instead of macro name in
5714 errors and the log file.
5715 (return_value): Remove stray ":" in spec.
5716
5717 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
5718 * gdbarch.h, gdbarch.c: Re-generate.
5719 * Makefile.in (arch-utils.o): Update dependencies.
5720 * values.c (using_struct_return): Move code calling
5721 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
5722 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
5723 to legacy_return_value, simplify.
5724 * infcmd.c (print_return_value): Move code calling
5725 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
5726 to legacy_return_value, simplify.
5727 * infcall.c (call_function_by_hand): Move code calling
5728 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
5729 * arch-utils.c: Update copyright. Include "gdbcore.h".
5730 (legacy_return_value): New function.
5731 * arch-utils.h: Update copyright.
5732 (legacy_return_value): Declare.
5733
5734 2004-06-20 Andrew Cagney <cagney@gnu.org>
5735
5736 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
5737 * gdbarch.h, gdbarch.c: Re-generate.
5738 * values.c (using_struct_return): Update call.
5739 * mcore-tdep.c: Update comment.
5740 * infcall.c (call_function_by_hand): Update comment.
5741 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5742 * arch-utils.h (always_use_struct_convention): Update.
5743 * v850-tdep.c (v850_gdbarch_init): Update.
5744 * sh64-tdep.c (sh64_gdbarch_init): Update.
5745 * sh-tdep.c (sh_gdbarch_init): Update.
5746 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5747 * mips-tdep.c (mips_gdbarch_init): Update.
5748 * mcore-tdep.c (mcore_gdbarch_init): Update.
5749 * m32r-tdep.c (m32r_gdbarch_init): Update.
5750 * ia64-tdep.c (ia64_gdbarch_init): Update.
5751 * h8300-tdep.c (h8300_gdbarch_init): Update.
5752 * frv-tdep.c (frv_gdbarch_init): Update.
5753 * cris-tdep.c (cris_gdbarch_init): Update.
5754 * arm-tdep.c (arm_gdbarch_init): Update.
5755 * alpha-tdep.c (alpha_gdbarch_init): Update.
5756
5757 2004-06-18 Michael Chastain <mec.gnu@mindspring.com>
5758
5759 * PROBLEMS: Add more specific information, and a work-around,
5760 for PR gdb/1458.
5761
5762 2004-06-18 Andrew Cagney <cagney@gnu.org>
5763
5764 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
5765 * gdbarch.h, gdbarch.c: Re-generate.
5766 * ada-lang.c (ada_finish_decode_line_1): Update.
5767 * infrun.c (handle_inferior_event): Update.
5768 * infcall.c (find_function_addr): Update.
5769 * linespec.c (minsym_found): Update.
5770 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
5771 Update.
5772 * blockframe.c (legacy_frameless_look_for_prologue): Update.
5773 * cli/cli-cmds.c (disassemble_command): Update.
5774 * vax-tdep.c (vax_gdbarch_init): Update.
5775
5776 2004-06-18 Mark Kettenis <kettenis@gnu.org>
5777
5778 * i386-tdep.c (i386_collect_fpregset): Fix comment.
5779
5780 2004-06-17 Andrew Cagney <cagney@gnu.org>
5781
5782 GDB 6.1.1 released from the GDB 6.1 branch.
5783 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
5784 * PROBLEMS: Ditto.
5785
5786 2004-06-16 Daniel Jacobowitz <dan@debian.org>
5787
5788 PR gdb/1658
5789 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
5790 operation as a uleb128. Found by Michael Coulter.
5791
5792 2004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
5793
5794 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
5795 make it non-static.
5796 * ada-lang.h (task_control_block): declaration moved from ada-task.c
5797 to ada-lang.h; this is needed to be able to implement the kill command
5798 in multi-task mode.
5799 (task_ptid): Ditto.
5800 (task_entry): Ditto.
5801 (task_list): Ditto.
5802 (ada_build_task_list): Ditto.
5803
5804 * ada-lang.c: Conditionalize routines and data structures related
5805 to breakpoints, exceptions, completion, and symbol caching on
5806 GNAT_GDB, since these are not yet used in the submitted public sources.
5807 (ada_main_name): Editorial: Move definition out of exception-related
5808 code.
5809
5810 2004-06-15 Andrew Cagney <cagney@gnu.org>
5811
5812 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
5813 deprecated_pc_in_call_dummy.
5814
5815 2004-06-15 Alan Modra <amodra@bigpond.net.au>
5816
5817 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
5818 bfd_get_section_size_before_reloc or _raw_size.
5819 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
5820 * dwarf2read.c (dwarf2_locate_sections): Likewise.
5821 (dwarf2_read_section): Likewise.
5822 * elfread.c (elf_locate_sections): Likewise.
5823 * gcore.c (derive_heap_segment): Likewise.
5824 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
5825 * remote-e7000.c (e7000_load): Likewise.
5826 * remote-m32r-sdi.c (m32r_load): Likewise.
5827 * remote-mips.c (mips_load_srec): Likewise.
5828 (pmon_load_fast): Likewise.
5829 * remote.c (compare_sections_command): Likewise.
5830 * symfile.c (add_section_size_callback): Likewise.
5831 (load_section_callback): Likewise.
5832 (pc_in_unmapped_range): Likewise.
5833 (pc_in_mapped_range): Likewise.
5834 (sections_overlap): Likewise.
5835 (list_overlays_command): Likewise.
5836 (simple_overlay_update_1): Likewise.
5837 (simple_overlay_update): Likewise.
5838 * tracepoint.c (remote_set_transparent_ranges): Likewise.
5839 * win32-nat.c (core_section_load_dll_symbols): Likewise.
5840
5841 2004-06-14 Randolph Chung <tausq@debian.org>
5842
5843 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
5844 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
5845 static.
5846 (hppa_hpux_inferior_created): New function.
5847 (hppa_hpux_init_abi): Register observer.
5848 * symfile.c (hp_cxx_exception_support_initialized)
5849 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
5850 (symbol_file_add_main_1, symbol_file_clear): Likewise.
5851
5852 2004-06-14 Randolph Chung <tausq@debian.org>
5853
5854 * MAINTAINERS (Write After Approval): Alphabetize my entry
5855 correctly.
5856
5857 2004-06-14 Andrew Cagney <cagney@gnu.org>
5858
5859 * MAINTAINERS (testsuite): List Michael Chastain as the lead
5860 testsuite maintainer.
5861
5862 2004-06-13 Andrew Cagney <cagney@gnu.org>
5863
5864 * infcmd.c (print_return_value): Fix logic, allow
5865 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
5866
5867 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
5868 defining any macros.
5869 * gdbarch.h: Re-generate.
5870
5871 * gdbarch.sh: Delete "level" attribute. Only check for a macro
5872 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
5873 * gdbarch.h: Re-generate.
5874
5875 * values.c (generic_use_struct_convention): Don't check gcc_p.
5876
5877 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
5878 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
5879 * gdbarch.h, gdbarch.c: Regenerate.
5880 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
5881 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
5882 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5883 deprecated_max_register_raw_size and
5884 deprecated_max_register_virtual_size.
5885 * v850-tdep.c (v850_gdbarch_init): Ditto.
5886 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
5887 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5888 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5889 * cris-tdep.c (cris_gdbarch_init): Ditto.
5890
5891 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
5892 * gdbarch.h, gdbarch.c: Re-generate.
5893 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
5894 (m68hc11_use_struct_convention): Delete function.
5895 (m68hc11_extract_struct_value_address): Delete function.
5896 (m68hc11_return_value): New function.
5897 (m68hc11_gdbarch_init): Instead of store_return_value,
5898 extract_return_value, return_value_on_stack,
5899 deprecated_extract_struct_value_address and use_struct_convention,
5900 set return_value.
5901 * values.c (using_struct_return): Do not call
5902 RETURN_VALUE_ON_STACK.
5903 * arch-utils.h (generic_return_value_on_stack_not): Delete
5904 declaration.
5905 * arch-utils.c (generic_return_value_on_stack_not): Delete
5906 function.
5907
5908 2004-06-12 Andrew Cagney <cagney@gnu.org>
5909
5910 * values.c (register_value_being_returned): Delete function.
5911 * infcmd.c (legacy_return_value): Delete function.
5912 * infcall.c (call_function_by_hand): Inline
5913 "register_value_being_returned", simplify.
5914 * values.c (using_struct_return): Update comment, refer to
5915 print_return_value instead of register_value_being_returned.
5916 * infcmd.c (print_return_value): Inline calls to
5917 register_value_being_returned and legacy_return_value. Simplify.
5918
5919 2004-06-11 Randolph Chung <tausq@debian.org>
5920
5921 * somread.c (som_symtab_read): Exclude gcc local symbols.
5922
5923 2004-06-11 Randolph Chung <tausq@debian.org>
5924
5925 * infrun.c (handle_inferior_event): Handle the case when a
5926 trampoline ends up in the runtime resolver, and if the trampoline
5927 has no name. Rearrange the code so that all the trampoline
5928 processing happens before other step-out-of-range handling.
5929
5930 2004-06-11 Martin Hunt <hunt@redhat.com>
5931
5932 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
5933 has no fpu.
5934
5935 2004-06-10 Andrew Cagney <cagney@gnu.org>
5936
5937 * blockframe.c (legacy_inside_entry_func): Delete.
5938 (legacy_frame_chain_valid): Inline call to
5939 legacy_inside_entry_func, simplify.
5940
5941 2004-06-10 Bob Rossi <bob@brasko.net>
5942
5943 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
5944 * dwarf2read.c (partial_die_info): Add dirname field.
5945 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
5946 (read_partial_die): Save away DW_AT_comp_dir.
5947 * defs.h (symtab_to_filename): Removed.
5948 * source.c (find_and_open_source): Added.
5949 (open_source_file): Just calls find_and_open_source.
5950 (symtab_to_filename): Removed.
5951 (symtab_to_fullname, psymtab_to_fullname): Added.
5952 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
5953 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
5954 symtab_to_filename.
5955 * symtab.h (partial_symtab): Add dirname field.
5956 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
5957 (mi_cmd_file_list_exec_source_file): Call new function
5958 symtab_to_fullname to find fullname.
5959 (mi_cmd_file_list_exec_source_files): Added.
5960 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
5961 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
5962
5963 2004-06-10 Andrew Cagney <cagney@gnu.org>
5964
5965 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
5966 to generic_use_struct_convention, the default value.
5967
5968 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
5969 of abort.
5970
5971 * ns32k-tdep.c (ns32k_push_arguments): New function.
5972 (ns32k_gdbarch_init): Set deprecated_push_arguments.
5973 * infcall.c (call_function_by_hand): Call error instead of
5974 legacy_push_arguments.
5975 * value.h (legacy_push_arguments): Delete declaration.
5976 * valops.c (legacy_push_arguments): Delete function.
5977 (value_push): Delete function.
5978
5979 2004-06-10 Brian Ford <ford@vss.fsi.com>
5980
5981 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
5982 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
5983 info.
5984 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
5985
5986 2004-06-10 Andrew Cagney <cagney@gnu.org>
5987
5988 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
5989 * gdbarch.h, gdbarch.c: Re-generate.
5990 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
5991 parameters.
5992 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
5993 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
5994 deprecated_pc_in_call_dummy instead of
5995 DEPRECATED_PC_IN_CALL_DUMMY.
5996 (arm_skip_prologue): Ditto.
5997 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
5998 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
5999 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
6000 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
6001 Ditto.
6002 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
6003 (sh64_init_extra_frame_info, sh64_get_saved_register)
6004 (sh64_pop_frame): Ditto.
6005 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
6006 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
6007 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
6008 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
6009 (h8300_pop_frame): Ditto.
6010 * blockframe.c (legacy_inside_entry_func)
6011 (legacy_frame_chain_valid): Ditto.
6012 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
6013 to deprecated_pc_in_call_dummy.
6014
6015 2004-06-09 Andrew Cagney <cagney@gnu.org>
6016
6017 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
6018 provide a default value.
6019 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
6020 * gdbarch.h, gdbarch.c: Re-generate.
6021 * arch-utils.c (generic_convert_register_p): Rename
6022 legacy_convert_register_p
6023 (legacy_register_to_value, legacy_value_to_register): Delete
6024 functions.
6025 * arch-utils.h (generic_convert_register_p): Rename
6026 legacy_convert_register_p.
6027 (legacy_register_to_value, legacy_value_to_register): Delete
6028 declarations.
6029
6030 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
6031 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
6032 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
6033 * gdbarch.h, gdbarch.c: Re-generate.
6034 * infcmd.c (default_print_registers_info): Simplify.
6035 * findvar.c (value_of_register): Simplify.
6036 * mi/mi-main.c (get_register): Simplify.
6037 * arch-utils.c (legacy_convert_register_p): Always return 0.
6038 (legacy_register_to_value, legacy_value_to_register): Always call
6039 internal_error.
6040
6041 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
6042 #ifdef CLEAR_INSN_CACHE code.
6043 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
6044 Delete #ifdef CLEAR_DEFERRED_STORES code.
6045
6046 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
6047
6048 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
6049 copyright.
6050 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
6051
6052 * config/mips/mipsv4.mh: Delete file.
6053
6054 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
6055 unreferenced macro.
6056 (hpread_adjust_stack_address): Delete declaration.
6057
6058 2004-06-08 Andrew Cagney <cagney@gnu.org>
6059
6060 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
6061 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
6062 PTRACE_ATTACH / PTRACE_DETACH available call error.
6063 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
6064 * infttrace.c (update_thread_state_after_attach, attach, detach):
6065 Remove #ifdef wrappers.
6066 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
6067 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
6068 * config/nm-bsd.h (ATTACH_DETACH): Delete.
6069 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
6070 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
6071 * config/nm-linux.h (ATTACH_DETACH): Delete.
6072 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
6073 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
6074 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
6075 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
6076 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
6077
6078 2004-06-08 Corinna Vinschen <vinschen@redhat.com>
6079
6080 * configure.in: Set $configdir to the right OS specific value.
6081 Use value when setting $tcldir and $tkdir.
6082 * configure: Regenerate.
6083
6084 2004-06-06 Paul Brook <paul@codesourcery.com>
6085
6086 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
6087 records.
6088
6089 2004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
6090
6091 * ada-lang.c (lookup_symbol_in_language): New function to allow
6092 re-use of another language's symbol lookup code. (Placed here
6093 temporarily while Ada support is being integrated into the public
6094 tree).
6095 (restore_language): New auxiliary function for
6096 lookup_symbol_in_language.
6097 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
6098 temporarily while Ada support is being integrated into the public
6099 tree).
6100
6101 2004-06-08 Alexandre Oliva <aoliva@redhat.com>
6102
6103 * Makefile.in (check//%): New.
6104
6105 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
6106 (mn10300_store_return_value): Rewrite.
6107 (mn10300_type_align): New.
6108 (mn10300_use_struct_convention): Rewrite.
6109 (mn10300_return_value): New, using all of the above.
6110 (mn10300_pop_frame_regular): Add saved_regs_size.
6111 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
6112
6113 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
6114 regs if PC is on movm.
6115
6116 2004-06-07 Jim Blandy <jimb@redhat.com>
6117
6118 Add native Linux support for the PowerPC E500.
6119 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
6120 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
6121 all architectures except the E500.
6122 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
6123 #definitions.
6124 (struct gdb_evrregset_t): New type.
6125 (have_ptrace_getsetevrregs): New variable.
6126 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
6127 fetch_spe_registers): New functions.
6128 (fetch_register): Call fetch_spe_register as appropriate.
6129 Assert that we're only passed raw register numbers.
6130 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
6131 Don't fetch gprs if they're pseudoregisters.
6132 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
6133 store_spe_registers): New functions.
6134 (store_register): Call store_spe_register as appropriate.
6135 Assert that we're only passed raw register numbers.
6136 (store_ppc_registers): Call store_spe_registers as appropriate.
6137 Don't store gprs if they're pseudoregisters.
6138
6139 2004-06-07 Jeff Johnston <jjohnstn@redhat.com>
6140
6141 * thread-db.c (thread_get_info_callback): Fill in the thread_info
6142 struct if one exists, even if we are dealing with a zombie thread.
6143
6144 2004-06-07 Andrew Cagney <cagney@gnu.org>
6145
6146 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
6147 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
6148 Rename PC_REQUIRES_RUN_BEFORE_USE.
6149 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
6150 #ifdef.
6151
6152 2004-06-07 Randolph Chung <tausq@debian.org>
6153
6154 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
6155 unwinding after sp has been saved to the stack but before the end
6156 of the prologue, and after the fp has been modified but before it has
6157 been saved to the stack.
6158 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
6159 Remove superfluous definitions.
6160 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
6161
6162 2004-06-07 Guy Martin <gmsoft@gentoo.org>
6163
6164 Committed by Randolph Chung.
6165 * hppa-linux-nat.c: Include the correct version of the header file
6166 depending on the kernel version.
6167
6168 2004-06-06 Randolph Chung <tausq@debian.org>
6169
6170 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
6171 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
6172
6173 2004-06-06 Randolph Chung <tausq@debian.org>
6174
6175 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
6176 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
6177 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
6178 * hppa-tdep.c (hppa_symbol_address): New function definition.
6179 * hppa-tdep.h (hppa_symbol_address): New function declaration.
6180
6181 2004-06-06 Randolph Chung <tausq@debian.org>
6182
6183 * hppa-tdep.h (struct value): Forward declaration.
6184 (gdbarch_tdep): Define tdep find_global_pointer method.
6185 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
6186 associated with the function we are trying to call, and write it
6187 to the gp register.
6188 (hppa32_convert_from_funct_ptr_addr): New function.
6189 (hppa_find_global_pointer): New function.
6190 (hppa_gdbarch_init): Set default find_global_pointer method; set
6191 convert_from_func_ptr_addr method.
6192 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
6193 (hppa_linux_init_abi): Set find_global_pointer method.
6194 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
6195
6196 2004-06-06 Randolph Chung <tausq@debian.org>
6197
6198 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
6199 to struct value *function.
6200 * gdbarch.c: Regenerate.
6201 * gdbarch.h: Likewise.
6202 * infcall.c (call_function_by_hand): Pass entire function value
6203 to push_dummy_call.
6204
6205 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
6206 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
6207 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
6208 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
6209 * arm-tdep.c (arm_push_dummy_call): Likewise.
6210 * avr-tdep.c (avr_push_dummy_call): Likewise.
6211 * cris-tdep.c (cris_push_dummy_call): Likewise.
6212 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
6213 * frv-tdep.c (frv_push_dummy_call): Likewise.
6214 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
6215 * hppa-tdep.c (hppa32_push_dummy_call)
6216 (hppa64_push_dummy_call): Likewise.
6217 * i386-tdep.c (i386_push_dummy_call): Likewise.
6218 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
6219 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
6220 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
6221 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
6222 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
6223 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
6224 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
6225 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
6226 (ppc64_sysv_abi_push_dummy_call): Likewise.
6227 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
6228 (ppc64_sysv_abi_push_dummy_call): Likewise.
6229 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
6230 * s390-tdep.c (s390_push_dummy_call): Likewise.
6231 * sh-tdep.c (sh_push_dummy_call_fpu)
6232 (sh_push_dummy_call_nofpu): Likewise.
6233 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
6234 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
6235 * vax-tdep.c (vax_push_dummy_call): Likewise.
6236
6237 2004-06-04 Jim Blandy <jimb@redhat.com>
6238
6239 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
6240 gdbarch argument to register_size.
6241
6242 * rs6000-tdep.c (rs6000_store_return_value): Use
6243 regcache_cooked_write_part instead of
6244 deprecated_write_register_bytes.
6245 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
6246 not gdbarch_deprecated_store_return_value.
6247
6248 * ppc-linux-nat.c (store_register, fetch_register): Remove
6249 incorrect assertions. Simplify and generalize handling of
6250 transfers whose sizes are not multiples of, or less than, sizeof
6251 (PTRACE_XFER_TYPE).
6252
6253 2004-06-04 Jeff Johnston <jjohnstn@redhat.com>
6254
6255 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
6256 as a new thread event.
6257 * thread-db.c (thread_get_info_callback): If the thread is a
6258 zombie, return TD_THR_ZOMBIE.
6259 (thread_from_lwp): If thread_get_info_callback returns
6260 TD_THR_ZOMBIE, check if the thread is still on the thread list
6261 and return a -1 ptid if not found.
6262 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
6263 change the status to TARGET_WAITKIND_SPURIOUS.
6264
6265 2004-06-03 Corinna Vinschen <vinschen@redhat.com>
6266
6267 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
6268 double values in little endian mode.
6269
6270 2004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
6271
6272 Committed by Andrew Cagney.
6273 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
6274 after last enum constant to avoid error from IBM C
6275 compiler.
6276
6277 2004-06-02 Jim Blandy <jimb@redhat.com>
6278
6279 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
6280 to 'message', and make it local to the lone block that uses it.
6281
6282 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
6283
6284 2004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
6285
6286 * ada-exp.y: Update copyright notice.
6287 Include block.h.
6288
6289 Replace REGNAME, LAST, INTERNAL_VARIABLE with
6290 SPECIAL_VARIABLE and unify the treatment of these cases.
6291
6292 (write_attribute_call0): Remove.
6293 (write_attribute_call1): Remove.
6294 (write_attribute_calln): Remove.
6295 (save_qualifier): Add missing semicolon.
6296
6297 (simple_exp,exp): Decomment (i.e., reactivate) code that was
6298 temporarily disabled to allow compilation with FSF head version.
6299
6300 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
6301 use individual operators (OP_*) for all attributes.
6302 (exp syntax): Use write_int.
6303 Handle STRING literals with OP_STRING.
6304 (variable syntax): Add limit parameter to calls to
6305 write_object_renaming.
6306
6307 (temp_parse_space): New definition to hold entities that need
6308 only live until the next call to ada_parse.
6309 (string_to_operator): Rename fields of ada_opname_table entries.
6310
6311 (write_var_from_sym): Record block.
6312 (write_var_from_name): Minor reformatting.
6313 Make sure saved name is properly encoded in the case of multiple
6314 matches, and set its language to Ada.
6315 Update comment.
6316 Modify to indicate unresolved name as symbol in the UNRESOLVED
6317 namespace, allocated in temp_parse_space.
6318 (write_int): New function.
6319
6320 (write_object_renaming): Add max_depth parameter to limit
6321 chains of object renamings.
6322 Handle case where root of renaming expression is itself a renaming.
6323 Use temp_parse_space for temporary name buffer.
6324 Handle renamings to dereferenced pointers (___XEXA suffices).
6325
6326 (ada_parse, yyerror, string_to_operator,
6327 write_var_from_sym, write_var_from_name, write_attribute_call0,
6328 write_attribute_call1, write_attribute_calln,
6329 write_object_renaming): Protoize.
6330
6331 (_initialize_ada_exp): New function.
6332
6333 * ada-lang.c: Update copyright notice.
6334 General terminology change to conform to GNAT compiler usage:
6335 mangle => encode, demangle => decode
6336 Include gdb_obstack.h.
6337 Include gdb_regex.h
6338 Include frame.h
6339 Include hashtab.h
6340 Include completer.h
6341 Include gdb_stat.h
6342 Include block.h
6343 Include infcall.h
6344
6345 (ADA_RETAIN_DOTS): Make sure this is defined.
6346 (TRUNCATION_TOWARDS_ZERO): Define.
6347 (struct string_vector): Define.
6348 (unresolved_names): Remove definition.
6349 (xnew_string_vector): New function.
6350 (string_vector_append): New function.
6351 (extract_string): Make static.
6352 (ada_unqualified_name): New function.
6353 (add_angle_brackets): New function.
6354 (function_name_from_pc): New function.
6355 (place_on_stack): Rename to ensure_lval.
6356
6357 (ensure_lval): Renamed from place_on_stack.
6358 Make identity on lvals.
6359 Update comment.
6360 (is_nonfunction): New interface.
6361 Only symbols in LOC_CONST class can be enumerals.
6362 (fill_in_ada_prototype): Remove; now independent of language.
6363 (add_defn_to_vec): Add obstack and symtab arguments.
6364 Use obstack to hold collected definitions.
6365 (num_defns_collected): New function.
6366 (defns_collected): New function.
6367 (ada_resolve_subexp): Rename to resolve_subexp.
6368 (resolve_subexp): Renamed from ada_resolve_subexp.
6369 (ada_op_name): Return non-const result.
6370 (ada_decoded_op_name): Renamed from ada_op_name, now used for
6371 other purposes.
6372
6373 (to_fixed_array_type): Add declaration.
6374 (coerce_unspec_val_to_type): Remove offset parameter.
6375 (find_sal_from_funcs_and_line): New interface.
6376 (find_line_in_linetable): Ditto.
6377
6378 (all_sals_for_line): Rename to ada_sals_for_line and make
6379 global.
6380 Add new parameter. When set, do not ask the user to choose the
6381 instance, but use the first one found instead.
6382 Use given line number in returned sals.
6383 Fix comment.
6384 Skip the prologue if funfirstline is set.
6385 Correct for memory leak when 0 lines found.
6386
6387 (value_pos_atr): Use pos_atr.
6388 (pos_atr): New function.
6389 (standard_lookup): Add block parameter.
6390
6391 (makeTimeStart): Remove declaration and uses.
6392 (makeTimeStop): Remove declaration and uses.
6393
6394 (ada_completer_word_break_characters): Allow for VMS.
6395 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
6396 (raise_sym_name): New constant.
6397 (raise_unhandled_sym_name): New constant.
6398 (raise_assert_sym_name): New constant.
6399 (process_raise_exception_name): New constant.
6400 (longest_exception_template): New constant.
6401 (warning_limit): New variable to limit warnings during expression
6402 evaluation.
6403 (warnings_issued): New variable to keep track of warnings issued.
6404 (known_runtime_file_name_patterns): New constant.
6405 (known_auxiliary_function_name_patterns): New constant.
6406 (symbol_list_obstack): New variable.
6407
6408 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
6409 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
6410 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
6411 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
6412 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
6413 ada_variant_discrim_name, field_alignment, dynamic_template_type,
6414 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
6415 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
6416 and strcmp.
6417
6418 (ada_get_field_index): New function.
6419 (lim_warning): New function.
6420 (ada_translate_error_message): New function.
6421 (MAX_OF_SIZE): New function.
6422 (MIN_OF_SIZE): New function.
6423 (UMAX_OF_SIZE): New function.
6424 (UMIN_OF_SIZE): New function.
6425 (discrete_type_high_bound): New function.
6426 (discrete_type_low_bound): New function.
6427 (base_type): New function.
6428 (do_command): Remove.
6429
6430 (ada_update_initial_language): Use language_ada, not language_unknown.
6431 (ada_encode): Renamed from ada_mangle.
6432 Obey ADA_RETAIN_DOTS.
6433 (ada_decode): Renamed from ada_demangle.
6434 Update coding conventions.
6435 (decoded_names_store): New hash table.
6436 (ada_decode_symbol): New function.
6437 (ada_la_decode): New function.
6438
6439 (modify_general_field): Correct computations of offset and bit
6440 position.
6441 (desc_base_type): Handle ref types, too.
6442 (ada_is_direct_array_type): New function.
6443
6444 (ada_is_simple_array): Rename to ada_is_simple_array_type.
6445 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
6446 (ada_is_bogus_array_descriptor,ada_type_of_array,
6447 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
6448 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
6449 ada_is_array_descriptor_type.
6450
6451 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
6452 (ada_is_packed_array_type): Handle pointers or
6453 references to packed arrays as well.
6454 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
6455 (decode_packed_array_type): Search for the packed array type
6456 symbol in the currently selected block and associated
6457 superblocks too.
6458 Use lookup_symbol again.
6459
6460 (decode_packed_array): Handle pointers and references.
6461 Update call to coerce_unspec_val_to_type.
6462 (decode_packed_array_type,value_subscript_packed): Limit warnings.
6463 (ada_value_primitive_packed_val): Improve comment.
6464
6465 (ada_index_type): Substitute int type for "undefined".
6466 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
6467 ada_array_langth, ada_is_string_type): Use renamed
6468 ada_is_simple_array_type.
6469 (empty_array): New function.
6470
6471 (ada_resolve): Rename to resolve.
6472 (resolve): Make static.
6473 Call renamed resolve_subexp.
6474 Update comment.
6475 (ada_resolve_subexp): Rename to resolve_subexp.
6476 (resolve_subexp): Update comment.
6477 Decomment disabled code.
6478 Add LOC_COMPUTED* cases.
6479 Modify to use temporary struct symbols (marked as being in
6480 UNDEF_NAMESPACE) to indicate unresolved names, instead of
6481 OP_UNRESOLVED_VALUE.
6482 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
6483 Add OP_STRING case.
6484 Remove OP_ARRAY.
6485 Use SYMBOL_PRINT_NAME instead of ada_demangle.
6486 Use new ada_lookup_symbol_list interface.
6487 Use new ada_resolve_function interface.
6488 Remove OP_TYPE case.
6489
6490 (ada_args_match): Idiot proof against null actuals.
6491 Use intermediate variables to clarify.
6492 (ada_resolve_function): Update comment and interface.
6493 (mangled_ordered_before): Rename to encoded_ordered_before and
6494 update comment.
6495 (sort_choices): Update comment and interface.
6496 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
6497 (user_select_syms): New interface.
6498 Use new sort_choices interface.
6499 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
6500 (possible_user_operator_p): Idiot-proof against null values.
6501 (ada_simple_renamed_entity): Don't make cleanup; rely on
6502 caller to free result string.
6503 Remove const from return type.
6504 (make_array_descriptor): Rename uses of place_on_stack to
6505 ensure_lval.
6506 Make sure that arrays are on stack.
6507
6508 (HASH_SIZE): Define.
6509 (struct cache_entry): Define.
6510 (cache_space): Define.
6511 (cache): Define.
6512 (clear_ada_sym_cache): New function.
6513 (find_entry): New function.
6514 (lookup_cached_symbol): New function.
6515 (defn_vector_size): Define.
6516 (cache_symbol): New function.
6517 (defn_symbols): Remove.
6518
6519 (standard_lookup): Use lookup_symbol_in_language to get effect of
6520 C lookup.
6521 Cache results.
6522
6523 (symbol_completion_match): New function.
6524 (symbol_completion_add): New function.
6525 (ada_make_symbol_completion_list): New function.
6526
6527 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
6528 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
6529 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
6530 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
6531
6532 (ada_lookup_simple_minsym): New function.
6533 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
6534
6535 (add_symbols_from_enclosing_procs): New interface.
6536 Conditionalize more helpfully.
6537 Don't bother if program isn't running.
6538 Use new interface to get_frame_block.
6539 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
6540
6541 (remove_extra_symbols): New interface.
6542 (xget_renaming_scope): New function.
6543 (is_package_name): New function.
6544 (renaming_is_visible): New function.
6545 (remove_out_of_scope_renamings): New function.
6546
6547 (ada_lookup_symbol_list): New interface.
6548 Properly reinitialize the symbol list obstack.
6549 Don't call add_symbols_from_enclosing_procs if we start from a
6550 static or global block.
6551 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
6552 add_symbols_from_enclosing_procs.
6553 Add symtab data to cached entries.
6554 Handle symbols prefixed with
6555 "standard__" specially; strip prefix and don't look in local symbols.
6556 Do not include out of scope renaming symbols in list of
6557 symbols returned.
6558 Add const to block parameter.
6559 Move check for non-local, non-global symbols earlier.
6560 Remove timing stuff.
6561 (ada_lookup_symbol): New interface.
6562 Find symtab as well.
6563 (ada_lookup_symbol_nonlocal): New function.
6564
6565 (is_name_suffix): Enhance suffix detection to recognize
6566 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
6567 (is_dot_digits_suffix): New function.
6568 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
6569
6570 (ada_add_block_symbols): New interface. Use obstack to return results
6571 in a vector of struct ada_symbol_infos. Add symtab argument.
6572 Use new interface to add_defn_to_vec.
6573 Remove calls to fill_in_ada_prototype.
6574 Use BLOCK_BUCKETS, BLOCK_BUCKET.
6575
6576 (ada_finish_decode_line_1): Add const qualification to local to fix
6577 warning.
6578 Start looking in static block for functions to avoid attempts
6579 to search frame chain for up-level variables.
6580 Adapt to new ada_sals_for_line interface.
6581 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
6582 Handle quoting of the function name inside the spec string.
6583 Skip prologue when funfirstline is set and update the
6584 function documentation to that effect.
6585
6586 (debug_print_lines, debug_print_block, debug_print_blocks,
6587 debug_print_symtab): Remove.
6588
6589 (ada_main_name): New function.
6590 (ada_exception_breakpoint_type): New function.
6591 (is_known_support_routine): New function.
6592 (ada_find_printable_frame): Renamed from find_printable_frame and made
6593 global.
6594 Remove level parameter.
6595 Use new interface to select_frame.
6596
6597 (begin_command): Remove.
6598 (ada_adjust_exception_stop): New function.
6599 (ada_print_exception_stop): New function.
6600 (exception_name_from_cond): New function.
6601 (ada_report_exception_break): Replace disabled code with
6602 conditionalization on GNAT_GDB.
6603 Get the exception name from the condition string.
6604 Remove and move functionality into new functions
6605 ada_print_exception_breakpoint_task and
6606 ada_print_exception_breakpoint_nontask.
6607 (error_breakpoint_runtime_sym_not_found): New function.
6608 (is_runtime_sym_defined): New function.
6609 (ada_breakpoint_rewrite): Uncomment suppressed code.
6610 Use symbolic error-message and runtime-symbol names.
6611 Surround runtime symbol names in quotes.
6612 Allow non-specific breakpoints on exceptions and assertions before
6613 program starts.
6614
6615 (ada_is_tagged_type): Add parameter.
6616 (ada_is_tag_type): New function.
6617 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
6618 (ada_variant_discrim_type): Ditto.
6619 (value_tag_from_contents_and_address): New function.
6620 (type_from_tag): New function.
6621 (struct tag_args): New structure used to communicate with
6622 ada_tag_name_1.
6623 (ada_tag_name_1): New function.
6624 (ada_tag_name): New function.
6625
6626 (ada_scan_number): Update comment.
6627 (find_struct_field): New function.
6628 (ada_search_struct_field): Make static.
6629 (ada_value_struct_elt): New version that returns references when
6630 given pointers or references to structs.
6631 (ada_lookup_struct_elt_type): Add 'refok' parameter.
6632 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
6633 interface.
6634 (ada_value_ind): Use new ada_to_fixed_value interface.
6635 (ada_coerce_ref): Ditto.
6636 (field_offset): Remove.
6637
6638 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
6639 (ada_find_renaming_symbol): New function.
6640 (ada_prefer_type): Prefer named types over unnamed ones.
6641 (variant_field_index): New function.
6642 (contains_variant_part): Removed: subsumed by variant_field_index.
6643 (ada_template_to_fixed_record_type): New function, mostly from
6644 template_to_fixed_record_type.
6645 (template_to_fixed_record_type):
6646 Do not scan the type fields beyond the last one; prevents a
6647 potential SEGV.
6648 Handle case where variant field is listed BEFORE discriminant it
6649 depends on.
6650 Fix calculation of record length when bit length is
6651 not evenly divisible by char length.
6652 Move code to ada_template_to_fixed_record_type and call it.
6653
6654 (template_to_static_fixed_type): Revise comment.
6655 Modify to work on ordinary record types as well as templates,
6656 so as to handle fields that use ___XVE or ___XVU encodings.
6657 (to_record_with_fixed_variant_part): Fill out comment.
6658 Initialize C++ stuff in right type.
6659 Allow case where DVAL is null.
6660 Handle case where variant field is not last.
6661 Fix typo concerning record length.
6662 (to_fixed_record_type): Decomment disabled code.
6663 (to_fixed_record_type): Use variant_field_index instead of
6664 contains_variant_part.
6665 (to_fixed_variant_branch_type): Ditto.
6666 (to_fixed_array_type): Decomment disabled code.
6667 (ada_to_fixed_type): Convert tagged types to the specific type.
6668 Deactivate the size-check for array types in order to avoid
6669 some false size alarms.
6670 (to_static_fixed_type): Decomment disabled code.
6671 Modify to call template_to_static_fixed_type
6672 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
6673 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
6674 Remove valaddr argument, as it is never really used.
6675 (ada_to_fixed_value): Change interface to act on single struct value*
6676 operand.
6677 (adjust_pc_past_prologue): New function.
6678 (ada_attribute_name): Modify to take enum exp_opcode argument.
6679
6680 (ada_enum_name): Recognize new homonym-distinguishing convention.
6681 Adjust local variable's type to remove compiler warning.
6682 Fix a small problem in the part that unqualifies the enumeration name.
6683 (ada_value_binop): New function.
6684 (ada_value_equal): New function.
6685
6686 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
6687 Don't give error message when not doing normal evaluation
6688 and a tagged type doesn't seem to contain a structure member.
6689 Give error message for packed arrays.
6690 For indexing arrays, handle pointers to packed arrays correctly.
6691 Handle case of 'first and 'last attributes of bare integral type
6692 without encoded subtype info.
6693 Remove some unnecessary casts.
6694 Fix uninitialized value of type in computing 'first, 'last, or 'length
6695 of array object.
6696 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
6697 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
6698 calls.
6699 Attributes are now exp_opcode values.
6700 Correct treatment of 'modulus.
6701 Better error message for taking 'length of wrong kind of type;
6702 improve comment.
6703 Change EVAL_NORMAL to noside for consistency.
6704 Use ada_value_binop for DIV, MOD, REM.
6705 Make special case out of array of length 0, since an argument
6706 of 0 upsets some platforms' malloc.
6707 Use OP_STRING instead of OP_ARRAY.
6708 For slice, add check that we have an array type before extracting
6709 a slice out of it. Avoids a SEGV.
6710 When evaluating an array slice, if the array type is a reference to
6711 an aligner type, then replace the aligner type by the actual type.
6712 Decomment disabled code.
6713 Remove some dead code.
6714 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
6715 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
6716 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
6717 and UNOP_MBR to UNOP_IN_RANGE.
6718 If an array type has a parallel ___XVE type, then use it.
6719 Turn arrays into pointers for lvalue arrays.
6720 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
6721 bounds error and handle 0-length slices.
6722 Use lim_warning.
6723 When selecting fields, apply ada_to_fixed_value (because the fields
6724 might have ___XVU or ___XVE encodings even if not dynamic.)
6725 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
6726 (ada_is_system_address_type): New function.
6727
6728 (get_var_value): Use new interface to ada_lookup_symbol_list.
6729 (get_int_var_value): New interface.
6730 (to_fixed_range_type): Allow unknown bound, with warning.
6731 (ada_is_modular_type): Decomment disabled code.
6732 (ADA_OPERATORS): New definition.
6733 (ada_operator_length): New function.
6734 (ada_expr_op_name): New function.
6735 (ada_forward_operator_length): New function.
6736 (ada_dump_subexp_body): New function.
6737 (ada_print_subexp): New function.
6738 (ada_exp_descriptor): New constant.
6739 (ada_op_print_tab): Add 'size. Remove FIXMEs.
6740 (ada_language_defn): Add ada_exp_descriptor entry.
6741 Change ada_parse => parse.
6742 Add post-parser entry.
6743 Use ada-specific non-local symbol lookup.
6744 Don't use C-style arrays.
6745 String lower-bound is 1.
6746 Decomment disabled code.
6747 (parse): New function.
6748 New fields ada_translate_error_message, ada_lookup_symbol,
6749 ada_lookup_minimal_symbol.
6750
6751 * ada-lang.h: Update copyright dates.
6752 Replace the mangle/demangle terminology throughout by the
6753 more appropriate encode/decode one.
6754 Include breakpoint.h.
6755 Forward declare struct partial_symbol, struct block.
6756 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
6757 (EXTRACT_ADDRESS): Remove.
6758 (EXTRACT_INT): Remove.
6759 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
6760 (MAX_ENCLOSING_FRAME_LEVELS): Define.
6761 (MAX_RENAMING_CHAIN_LENGTH): Define.
6762 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
6763
6764 (enum task_states): Remove.
6765 ada_task_states: Remove.
6766 (fat_string): Remove.
6767 (struct entry_call): Remove.
6768 (struct task_fields): Remove.
6769 (struct task_entry): Remove.
6770
6771 (struct ada_symbol_info): Define.
6772 (enum ada_attribute): Remove.
6773 (enum ada_operator): Define.
6774
6775 (ada_get_field_index): Declare.
6776 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
6777 (ada_is_simple_array): Rename to ada_is_simple_array_type.
6778 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
6779 (ada_lookup_symbol_list): New interface.
6780 (ada_decode_symbol): Declare.
6781 (ada_decode): Declare.
6782 (ada_lookup_symbol): New interface.
6783 (ada_update_initial_language): Declare.
6784 (ada_lookup_simple_minsym): Declare.
6785 (user_select_syms): New interface.
6786 (ada_sals_for_line): Declare.
6787 (ada_is_tagged_type): New interface.
6788 (ada_tag_name): Declare.
6789 (ada_lookup_struct_elt_type): Remove declaration.
6790 (ada_search_struct_field): Remove declaration.
6791 (ada_attribute_name): New interface.
6792 (ada_is_system_address_type): Declare.
6793 (ada_to_fixed_value): Remove declaration.
6794 (ada_template_to_fixed_record_type_1): Declare.
6795 (get_int_var_value): New interface.
6796 (ada_find_any_symbol): Declare.
6797 (ada_find_renaming_symbol): Declare.
6798 (ada_mangle): Rename to ada_encode.
6799 (ada_simple_renamed_entity): Remove const.
6800 (ada_main_name): Declare.
6801 (get_current_task): Rename to ada_get_current_task.
6802 (get_entry_number): Remove declaration.
6803 (ada_report_exception_break): Remove declaration.
6804 (ada_print_exception_breakpoint_nontask): Declare.
6805 (ada_print_exception_breakpoint_task): Declare.
6806 (ada_find_printable_frame): Declare.
6807
6808 * ada-lex.l: Update copyright notices.
6809 Use xmalloc and xfree instead of malloc and free.
6810 Use new interface to name_lookup.
6811 Use new interface to
6812 ada_mangle=>ada_encode.
6813 Redo handling of '$...' variable to parallel current treatment
6814 in c-exp.y.
6815 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
6816 digit_to_int, strtoulst, processInt, processReal, processId,
6817 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
6818 yywrap): Protoize.
6819
6820 (processInt): Use cast to remove harmless warning.
6821 (processReal): Modify to get rid of compiler warning on scan formats.
6822
6823 (processId): Replace xmalloc with obstack_alloc for name and remove
6824 call to ada_name_string_cleanup.
6825 Remove obsolete disabled code.
6826 (name_lookup): Ditto.
6827 New interface.
6828 Use obsavestring on temp_parse_space instead of savestring
6829 on name, and remove call to ada_name_string_cleanup.
6830 Free string returned from ada_simple_renamed_entity.
6831 Use new interface to ada_lookup_symbol_list.
6832 Decomment disabled code.
6833 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
6834 not types.
6835 When a type name lookup succeeds as a result of
6836 lookup_primitive_typename, check for regular type entry that has not
6837 yet been read in.
6838 Limit length of chain of renamed symbols we are willing to follow.
6839 Do not break names beginning with "standard__" into segments.
6840 (block_lookup): Use new interface to ada_lookup_symbol_list.
6841
6842 * ada-typeprint.c: Update copyright notice.
6843 (demangled_type_name): Rename to decoded_type_name.
6844 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
6845 (print_range_bound): Correct handling of negative
6846 bounds that make the index type looked unsigned under STABS.
6847 (print_dynamic_range_bound): Use new interface to get_int_var_value.
6848 (print_range_type_named): Use the builtin int type if no type
6849 corresponding to the given type name could be found.
6850 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
6851 Add some bullet-proofing.
6852 (print_variant_clauses): Allow for variant branches with ___XVU
6853 encodings that are not dynamic fields.
6854 Use new interface to ada_is_tagged_type.
6855 (print_record_type): Allow for fields with ___XVE encodings that
6856 are not dynamic fields.
6857 Use new interface to ada_is_tagged_type.
6858 (ada_print_type): ada_is_array_descriptor =>
6859 ada_is_array_descriptor_type.
6860
6861 * ada-valprint.c: Update copyright notice.
6862 Include gdb_string.h
6863 Include infcall.h
6864 (ui_memcpy): New function.
6865 (ada_print_floating): New function.
6866 (ada_print_str): Order arguments correctly.
6867 Correct handling of empty arrays and arrays of 0-length items.
6868 ada_is_array_descriptor => ada_is_array_descriptor_type
6869 Print values of type System.Address in hexadecimal format.
6870 Use ada_print_floating to print floating-point numbers in Ada format.
6871 Print class tag values with type names.
6872 No longer print the address of reference values. Avoids
6873 a potential confusion.
6874 (ada_value_print): Stop printing the object type for reference
6875 values, but preserve that behavior for access types. Avoids
6876 a potential confusion.
6877 Simplify one conditional expression, as the first part is now
6878 necessarily true.
6879 ada_is_array_descriptor => ada_is_array_descriptor_type
6880 Add check for arrays for null records, and print them by hand.
6881
6882 2004-06-01 Jim Blandy <jimb@redhat.com>
6883
6884 * ppc-tdep.h: Delete unused 'regoff' member.
6885 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
6886
6887 2004-06-01 Michael Chastain <mec.gnu@mindspring.com>
6888
6889 Fix PR symtab/1661.
6890 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
6891 (hpread_read_struct_type): Likewise.
6892
6893 2004-06-01 Andrew Cagney <cagney@gnu.org>
6894
6895 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
6896 instead of xasprintf.
6897 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
6898 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
6899 (mi_cmd_data_list_register_names)
6900 (mi_cmd_data_list_changed_registers)
6901 (mi_cmd_data_list_register_values)
6902 (get_register, mi_cmd_data_write_register_values)
6903 (mi_cmd_data_write_register_values)
6904 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
6905 (mi_cmd_target_download, mi_cmd_target_select)
6906 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
6907 (mi_execute_cli_command, mi_execute_async_cli_command)
6908 (mi_execute_async_cli_command): Ditto.
6909 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
6910 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
6911
6912 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
6913 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
6914 error_last_message instead of mi_error_last_message.
6915 * mi/mi-main.c (mi_error_last_message): Delete function.
6916
6917 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
6918 "invalid number of columns" error. Delete redundant "out of
6919 memory" check.
6920
6921 2004-05-31 Mark Kettenis <kettenis@gnu.org>
6922
6923 * i386bsd-nat.c: Don't include <sys/procfs.h>.
6924 (gregset_t, fpregset_t): Remove typedefs.
6925 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
6926 (REG_OFFSET): Rename argument.
6927 (i386bsd_r_reg_offset): Rename from reg_offset.
6928 (REG_ADDR): Remove macro.
6929 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
6930 functions.
6931 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
6932 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
6933 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
6934 instead of supply_gregset.
6935 (store_inferior_registers): Use `struct reg' and `struct fpreg'
6936 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
6937 instead of fill_gregset.
6938 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
6939
6940 * i386bsd-nat.c: Don't include "gregset.h".
6941 (supply_gregset, fill_gregset): Make static.
6942 (supply_fpregset, fill_fpregset): Remove.
6943 * Makefile.in (i386bsd-nat.o): Update dependencies.
6944
6945 2004-05-30 Mark Kettenis <kettenis@gnu.org>
6946
6947 * fbsd-proc.c: Include "regcache.h", "regset.h" and
6948 "gdb_assert.h". Con't include "gregset.h".
6949 (fbsd_make_corefile_notes): Use regset-based core file support
6950 instead off fill_gregset and fill_fpregset.
6951 * Makefile.in (fbsd-proc.o): Update dependencies.
6952
6953 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
6954 instructions.
6955 (m88k_frame_prev_register): Simplify code a bit.
6956
6957 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
6958 (amd64_collect_fpregset): New function.
6959 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
6960
6961 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
6962
6963 * i386-tdep.c (i386_supply_gregset): Adjust comment.
6964 (i386_collect_gregset): New function.
6965 (i386_supply_fpregset): Adjust comment.
6966 (i386_collect_fpregset): New function.
6967 (i386_regset_from_core_section): Use i386_collect_gregset and
6968 i386_collect_fpregset.
6969
6970 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
6971 handle VALUEP being null.
6972
6973 * regset.h (collect_regset_ftype): Unconstify fourth argument.
6974
6975 2004-05-29 Mark Kettenis <kettenis@gnu.org>
6976
6977 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
6978
6979 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
6980 assembler in OpenBSD 3.5-current.
6981 (amd64obsd_sigcontext_addr): Likewise.
6982
6983 2004-05-28 Jim Blandy <jimb@redhat.com>
6984
6985 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
6986 register set, so our regcache isn't declared "legacy" and our E500
6987 pseudoregister read and write functions aren't ignored.
6988 (rs6000_register_byte, rs6000_register_raw_size,
6989 rs6000_register_virtual_type, rs6000_register_convertible,
6990 rs6000_register_convert_to_virtual,
6991 rs6000_register_convert_to_raw): Deleted.
6992 (rs6000_register_type, rs6000_convert_register_p,
6993 rs6000_register_to_value, rs6000_value_to_register): New
6994 functions.
6995 (rs6000_gdbarch_init): Don't register
6996 gdbarch_deprecated_register_size,
6997 gdbarch_deprecated_register_bytes,
6998 gdbarch_deprecated_register_byte,
6999 gdbarch_deprecated_register_raw_size,
7000 gdbarch_deprecated_register_virtual_type,
7001 gdbarch_deprecated_register_convertible,
7002 gdbarch_deprecated_register_convert_to_virtual, or
7003 gdbarch_deprecated_register_convert_to_raw methods. Instead,
7004 register gdbarch_register_type, gdbarch_convert_register_p,
7005 gdbarch_register_to_value, and gdbarch_value_to_register methods.
7006
7007 2004-05-26 Jim Blandy <jimb@redhat.com>
7008
7009 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
7010 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
7011 functions, updated to match the register numberings used in GCC.
7012 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
7013 rs6000_dwarf2_reg_to_regnum as register number conversions
7014 functions for STABS and Dwarf2.
7015
7016 2004-05-26 Randolph Chung <tausq@debian.org>
7017
7018 * infttrace.h (target_waitkind): Forward declare type instead of pulling
7019 in header file.
7020
7021 2004-05-25 Joel Brobecker <brobecker@gnat.com>
7022
7023 * NEWS: Document new "start" command.
7024
7025 2004-05-25 Randolph Chung <tausq@debian.org>
7026
7027 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
7028 hppa-linux.
7029
7030 2004-05-25 Randolph Chung <tausq@debian.org>
7031
7032 * hppa-hpux-tdep.c (offsetof): Define.
7033 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
7034 (hppa32_hpux_frame_base_before_sigtramp)
7035 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
7036 (hppa64_hpux_frame_saved_pc_in_sigtramp)
7037 (hppa64_hpux_frame_base_before_sigtramp)
7038 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
7039 functions.
7040 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
7041 (hppa_hpux_sigtramp_frame_unwind_cache)
7042 (hppa_hpux_sigtramp_frame_this_id)
7043 (hppa_hpux_sigtramp_frame_prev_register)
7044 (hppa_hpux_sigtramp_frame_unwind)
7045 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
7046 (hppa_hpux_init_abi): Register sigtramp unwinder.
7047 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
7048
7049 2004-05-25 Randolph Chung <tausq@debian.org>
7050
7051 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
7052 and multiple stack unwinds.
7053 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
7054
7055 2004-05-25 Andrew Cagney <cagney@gnu.org>
7056
7057 * symfile.h (symbol_file_add_from_memory): Delete declaration.
7058 * symfile-mem.h: Delete file.
7059 * symfile-mem.c: Do not include "symfile-mem.h".
7060 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
7061 "struct bfd_section". When an error do not bother returning NULL.
7062 (add_symbol_file_from_memory_command): Use "struct bfd" and
7063 "struct bfd_section".
7064 * Makefile.in (symfile_mem_h): Delete.
7065 (symfile-mem.o): Update dependencies.
7066
7067 2004-05-25 Nick Roberts <nickrob@gnu.org>
7068
7069 * gdb-mi.el: New file.
7070
7071 2004-05-25 Andrew Cagney <cagney@gnu.org>
7072
7073 * inftarg.c: Include "observer.h".
7074 (child_attach, child_create_inferior): Notify inferior_created.
7075 * corelow.c: Include "observer.h".
7076 (core_open): Notify inferior_created.
7077 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
7078
7079 2004-05-25 Andrew Cagney <cagney@gnu.org>
7080
7081 * target.h (struct target_ops): Add from_tty to
7082 to_create_inferior.
7083 (target_create_inferior, find_default_create_inferior): Update.
7084 * infcmd.c (run_command): Update.
7085 * wince.c (child_create_inferior): Update.
7086 * win32-nat.c (child_create_inferior): Update.
7087 * uw-thread.c (uw_thread_create_inferior): Update.
7088 * thread-db.c (thread_db_create_inferior): Update.
7089 * target.c (debug_to_create_inferior)
7090 (find_default_create_inferior): Update.
7091 (maybe_kill_then_create_inferior): Update.
7092 * sol-thread.c (sol_thread_create_inferior): Update.
7093 * remote.c (extended_remote_async_create_inferior)
7094 (extended_remote_create_inferior): Update.
7095 * remote-vx.c (vx_create_inferior): Update.
7096 * remote-st.c (st2000_create_inferior): Update.
7097 * remote-sim.c (gdbsim_create_inferior): Update.
7098 * remote-sds.c (sds_create_inferior): Update.
7099 * remote-rdp.c (remote_rdp_create_inferior): Update.
7100 * remote-rdi.c (arm_rdi_create_inferior): Update.
7101 * remote-m32r-sdi.c (m32r_create_inferior): Update.
7102 * remote-e7000.c (e7000_create_inferior): Update.
7103 * procfs.c (procfs_create_inferior): Update.
7104 * ocd.c (ocd_create_inferior): Update.
7105 * ocd.h (ocd_create_inferior): Update.
7106 * nto-procfs.c (procfs_create_inferior): Update.
7107 * monitor.c (monitor_create_inferior): Update.
7108 * lin-lwp.c (lin_lwp_create_inferior): Update.
7109 * inftarg.c (child_create_inferior): Update.
7110 * hpux-thread.c (hpux_thread_create_inferior): Update.
7111 * gnu-nat.c (gnu_create_inferior): Update.
7112
7113 2004-05-25 Andrew Cagney <cagney@gnu.com>
7114
7115 * MAINTAINERS: Update e-mail address.
7116
7117 2004-05-24 Randolph Chung <tausq@debian.org>
7118
7119 * thread.c (info_threads_command, thread_apply_all_command)
7120 (thread_apply_command, thread_command, do_captured_thread_select):
7121 Remove HPUXHPPA-specific code.
7122
7123 2004-05-24 Randolph Chung <tausq@debian.org>
7124
7125 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
7126 unused symbols.
7127 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
7128 references.
7129
7130 2004-05-24 Joel Brobecker <brobecker@gnat.com>
7131
7132 * infcmd.c (kill_if_already_running): New function, extracted
7133 from run_command().
7134 (run_command): Replace extracted code by call to
7135 kill_if_already_running().
7136 (start_command): New function.
7137 (_initialize_infcmd): Add "start" command.
7138
7139 2004-05-24 Mark Kettenis <kettenis@gnu.org>
7140
7141 Add OpenBSD/m88k support.
7142 * NEWS (New native configurations): Mention OpenBSD/m88k.
7143 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
7144 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
7145 * Makefile.in (m88k_tdep_h): New variable.
7146 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
7147 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
7148 * configure.host: Add m88*-*-openbsd*.
7149 * configure.tgt: Add m88*-*-openbsd*.
7150
7151 2004-05-24 Jim Blandy <jimb@redhat.com>
7152
7153 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
7154 to approve changes.
7155
7156 2004-05-24 Kevin Buettner <kevinb@redhat.com>
7157
7158 * symtab.c (fixup_section): Search section table when lookup by
7159 name fails.
7160
7161 2004-05-24 Randolph Chung <tausq@debian.org>
7162
7163 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
7164 be "small_struct".
7165
7166 2004-05-24 Mark Kettenis <kettenis@gnu.org>
7167
7168 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
7169 register number in regcache_raw_collect call.
7170 (m68kbsd_collect_fpregset): Likewise.
7171 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
7172
7173 * regset.h (struct regset): Add back `regset' member.
7174
7175 2004-05-23 Mark Kettenis <kettenis@gnu.org>
7176
7177 * configure.in: Check for td_pcb in `struct thread'.
7178 * configure, config.in: Regenerated.
7179
7180 * dpx2-nat.c: Remove file.
7181 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
7182 (dpx2-nat.o): Remove dependencies.
7183
7184 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
7185 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
7186 (amd64obsd_supply_pcb): New function.
7187 (_initialize_amd64obsd_nat): Enable libkvm interface.
7188 * Makefile.in (amd64obsd-nat.o): Update dependencies.
7189 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
7190 (LOADLIBES): New variable.
7191
7192 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
7193 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
7194 (sparc32nbsd_supply_pcb): New function.
7195 (_initialize_sparcnbsd_nat): Enable libkvm interface.
7196 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
7197 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
7198 (LOADLIBES): New variable.
7199
7200 2004-05-22 Mark Kettenis <kettenis@gnu.org>
7201
7202 * bsd-kvm.c, bsd-kvm.h: New files.
7203 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
7204 "bsd-kvm.h".
7205 (i386fbsd_supply_pcb): New function.
7206 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
7207 (i386fbsd-nat.o): Update dependencies.
7208 (bsd_kvm_h): New variable.
7209 (bsd-kvm.o): New dependency.
7210 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
7211 (LOADLIBES): New variable.
7212
7213 * regset.c: Tweak comment.
7214 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
7215 macro.
7216 * regset.h: Update copyright year.
7217 (struct regset): Remove `descr' member, add `gdbarch' member.
7218 (regset_alloc): Adjust prototype and comment.
7219 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
7220 (i386_supply_fpregset): Likewise.
7221 (i386_regset_from_core_section): Update call to regset_alloc.
7222 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
7223 REGSET->arch.
7224 (i386obsd_aout_regset_from_core_section): Update call to
7225 regset_alloc.
7226 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
7227 REGSET->arch.
7228 (i386nbsd_aout_regset_from_core_section): Update call to
7229 regset_alloc.
7230 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
7231 REGSET->arch.
7232 (amd64_regset_from_core_section): Update call to regset_alloc.
7233 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
7234 REGSET->arch.
7235 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
7236 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
7237 &sparc32nbsd_gregset in sparc32_supply_gregset call.
7238 (sparc32nbsd_init_abi): Update call to regset_alloc.
7239 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
7240 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
7241 (sparc64obsd_init_abi): Update call to regset_alloc.
7242 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
7243 &sparc64nbsd_gregset in sparc64_supply_gregset call.
7244 (sparc64nbsd_init_abi): Update call to regset_alloc.
7245 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
7246 &sparc64fbsd_gregset in sparc64_supply_gregset call.
7247 (sparc64fbsd_init_abi): Update call to regset_alloc.
7248
7249 2004-05-22 Jim Blandy <jimb@redhat.com>
7250
7251 * ppc-tdep.h (spe_register_p): New declaration.
7252 (struct gdbarch_tdep): New members: ppc_acc_regnum and
7253 ppc_spefscr_regnum.
7254 * rs6000-tdep.c (spe_register_p): New function.
7255 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
7256 spefscr.
7257 (rs6000_gdbarch_init): Initialize the new members of the tdep
7258 structure.
7259
7260 2004-05-21 Jim Blandy <jimb@redhat.com>
7261
7262 * ppc-linux-nat.c (fetch_register): Move code back to be next
7263 to the comment that describes it. (Moved code, instead of
7264 comment, for symmetry with store_register.)
7265
7266 Allocate regset structures in the gdbarch's obstack, not using
7267 xmalloc.
7268 * regset.c (regset_alloc): Renamed from regset_xmalloc.
7269 Add 'arch' argument. Allocate the regset on arch's obstack, not
7270 using xmalloc.
7271 * regset.h (regset_alloc): Update declaration.
7272 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
7273 gdbarch argument.
7274 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7275 * i386-tdep.c (i386_regset_from_core_section): Same.
7276 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7277 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7278 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7279 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7280 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7281 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7282
7283 2004-05-21 Joel Brobecker <brobecker@gnat.com>
7284
7285 * config/djgpp/fnchange.lst: Undo previous change, was useless.
7286
7287 2004-05-21 Jim Blandy <jimb@redhat.com>
7288
7289 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
7290 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
7291
7292 2004-05-20 Jim Blandy <jimb@redhat.com>
7293
7294 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
7295
7296 2004-05-20 Mark Kettenis <kettenis@gnu.org>
7297
7298 * regset.h: Make prototype const-correct.
7299 * regset.c (regset_xmalloc): Make const-correct.
7300
7301 2004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
7302
7303 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
7304 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
7305 (symbol_search_name): Declare.
7306
7307 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
7308 (iter_name_next_hashed): Ditto.
7309 (iter_name_next_linear): Ditto.
7310 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
7311
7312 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
7313 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
7314 (symbol_search_name): New function.
7315
7316 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
7317
7318 * minsyms.c (build_minimal_symbol_hash_tables): Change
7319 test for adding to demangled hash table to check for difference
7320 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
7321
7322 2004-05-19 Jim Blandy <jimb@redhat.com>
7323
7324 Use a constructor function to create regset structures.
7325 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
7326 (struct regset): Use supply_regset_ftype. Add new
7327 'collect_regset' member.
7328 (regset_xmalloc): New declaration.
7329 * regset.c: New file.
7330 * am64-tdep.c (amd64_regset_from_core_section): Use
7331 regset_xmalloc to construct regset structures.
7332 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7333 * i386-tdep.c (i386_regset_from_core_section): Same.
7334 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7335 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7336 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7337 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7338 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7339 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7340 * Makefile.in (COMMON_OBS): Add regset.o.
7341 (regset.o): New rule.
7342
7343 2004-05-19 Joel Brobecker <brobecker@gnat.com>
7344
7345 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
7346 and pthread_cond_wait.c.
7347
7348 2004-05-18 Jim Blandy <jimb@redhat.com>
7349
7350 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
7351 before the mach-specific switch, and then let the individual cases
7352 override the defaults, rather than leaving them uninitialized
7353 until the switch and then setting them in each case.
7354
7355 2004-05-18 Randolph Chung <tausq@debian.org>
7356
7357 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
7358 millicode functions.
7359
7360 2004-05-18 Randolph Chung <tausq@debian.org>
7361
7362 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
7363 references to dld_flags_buffer consistent.
7364
7365 2004-05-18 Randolph Chung <tausq@debian.org>
7366
7367 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
7368 it for unwinding the stack.
7369
7370 2004-05-18 Randolph Chung <tausq@debian.org>
7371
7372 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
7373 Undefine these so we can overide them using gdbarch.
7374
7375 2004-05-18 Randolph Chung <tausq@debian.org>
7376
7377 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
7378 handling for 64-bit HPUX (elf).
7379
7380 2004-05-18 Daniel Jacobowitz <dan@debian.org>
7381
7382 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
7383 constants.
7384 * amd64-tdep.c (amd64_skip_prologue): Likewise.
7385 * ia64-tdep.c (examine_prologue): Likewise.
7386 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
7387 * v850-tdep.c (v850_fix_call_dummy): Likewise.
7388
7389 2004-05-18 Mark Kettenis <kettenis@gnu.org>
7390
7391 * vax-tdep.c (vax_return_value): Implement
7392 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7393
7394 2004-05-17 Mark Kettenis <kettenis@gnu.org>
7395
7396 * vax-tdep.c (vax_return_value): Fix typo.
7397
7398 2004-05-17 Andrew Cagney <cagney@redhat.com>
7399
7400 * MAINTAINERS: Mark Salter was also responsible for
7401 testsuite/config/
7402
7403 * NEWS: Mention signal fixes.
7404
7405 2004-05-17 Randolph Chung <tausq@debian.org>
7406
7407 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
7408 check to see if we are unwinding an export stub. Export stubs clobber
7409 the %rp in the call path and stores the original rp in a stack slot.
7410
7411 2004-05-17 Jim Blandy <jimb@redhat.com>
7412
7413 * MAINTAINERS: Update address for J.T. Conklin.
7414
7415 2004-05-17 Randolph Chung <tausq@debian.org>
7416
7417 * hppa-tdep.c: Remove superfluous #include's.
7418 * Makefile.in (hppa-tdep.o): Update dependencies.
7419
7420 2004-05-17 Randolph Chung <tausq@debian.org>
7421
7422 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
7423 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
7424 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
7425 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
7426 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
7427 Remove static function declarations.
7428
7429 2004-05-17 Mark Kettenis <kettenis@gnu.org>
7430
7431 * alphabsd-nat.c: Update copyright year.
7432 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
7433
7434 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
7435 and M68K_A2_REGNUM.
7436
7437 * m68k-tdep.c (m68k_svr4_return_value): Implement
7438 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7439
7440 2004-05-16 Mark Kettenis <kettenis@gnu.org>
7441
7442 * sol-thread.c Update copyright year. Fix various coding
7443 standards violations. Tweak a few comments.
7444 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
7445 Delete prototypes.
7446
7447 2004-05-15 Randolph Chung <tausq@debian.org>
7448
7449 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
7450 as pointer instead of array reference since HPUX compiler does
7451 not accept unsized array arguments.
7452 * somsolib.c (dld_flags_buffer): Use constant array size.
7453
7454 2004-05-15 Mark Kettenis <kettenis@gnu.org>
7455
7456 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
7457 offset with decimal offset.
7458 (amd64obsd_sigcontext_addr): Return correct address for entire
7459 signal trampoline.
7460
7461 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
7462 instead of get_frame_base.
7463
7464 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
7465 (fill_gregset): Use regcache_raw_collect.
7466
7467 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
7468 ppcobsd-tdep.c.
7469
7470 * config/sparc/tm-nbsd64.h: Remove file.
7471 * config/tm-sunos.h: Remove file.
7472
7473 2004-05-15 Joel Brobecker <brobecker@gnat.com>
7474
7475 * rs6000-tdep.c (store_param_on_stack_p): New function,
7476 an improved version of some code extracted from skip_prologue().
7477 (skip_prologue): Use store_param_on_stack_p() to detect
7478 instructions saving a parameter on the stack. Detect when r0
7479 is used to save a parameter.
7480 Do not mark "li rx, SIMM" instructions as part of the prologue,
7481 unless the following instruction is also part of the prologue.
7482
7483 2004-05-14 Andrew Cagney <cagney@redhat.com>
7484
7485 * infrun.c (handle_inferior_event): Simplify
7486 STEP_OVER_UNDEBUGGABLE.
7487
7488 * infrun.c (handle_step_into_function): Delete function.
7489 (handle_inferior_event): Inline calls to
7490 handle_step_into_function.
7491
7492 2004-05-14 Jerome Guitton <guitton@gnat.com>
7493
7494 * rs6000-nat.c: Fix a comment.
7495
7496 2004-05-12 David Anderson <davea@sgi.com>
7497
7498 Committed by Jim Blandy <jimb@redhat.com>:
7499 * regcache.c (struct regcache_descr): fix comment spelling.
7500
7501 2004-05-13 J. Brobecker <brobecker@gnat.com>
7502
7503 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
7504 Fixes a link link failure.
7505
7506 2004-05-13 J. Brobecker <brobecker@gnat.com>
7507
7508 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
7509 error that was causing the build to fail.
7510
7511 2004-05-13 J. Brobecker <brobecker@gnat.com>
7512
7513 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
7514 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
7515
7516 2004-05-13 Andrew Cagney <cagney@redhat.com>
7517
7518 * infrun.c (handle_inferior_event): Check for
7519 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
7520 calls. Update comments.
7521
7522 2004-05-13 Jim Blandy <jimb@redhat.com>
7523
7524 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
7525 (fetch_regs_user_thread, fetch_regs_kernel_thread)
7526 (store_regs_user_thread, store_regs_kernel_thread): Use
7527 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
7528 * ppc-linux-nat.c (fill_gregset): Same.
7529 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
7530 (ppc_linux_sigtramp_cache): Same.
7531 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
7532 (ppcnbsd_sigtramp_cache_init): Same.
7533 * rs6000-nat.c (fetch_core_registers): Same.
7534 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
7535 (rs6000_frame_cache): Same.
7536
7537 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
7538 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
7539 of assuming that the gprs are numbered starting with zero.
7540 * ppc-linux-nat.c (fill_gregset): Same.
7541 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
7542 * ppcnbsd-nat.c (getregs_supplies): Same.
7543 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
7544 * rs6000-nat.c (fetch_core_registers): Same.
7545 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
7546
7547 2004-05-07 Michael Snyder <msnyder@redhat.com>
7548
7549 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
7550 LOC_COMPUTED_ARG, and LOC_INDIRECT.
7551
7552 2004-05-13 Andrew Cagney <cagney@redhat.com>
7553
7554 * infrun.c (handle_inferior_event): Use frame_unwind_id.
7555
7556 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
7557
7558 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
7559 base_address for shared libraries.
7560
7561 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
7562
7563 * MAINTAINERS (write after approval): Add myself.
7564
7565 2004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
7566
7567 * breakpoint.c (bpstat_stop_status): Add new argument
7568 STOPPED_BY_WATCHPOINT. Use it instead of testing
7569 target_stopped_data_address agaist 0 to check whether
7570 or not we stopped due to a hardware watchpoint.
7571 * breakpoint.h (bpstat_stop_status): Adapt prototype.
7572 * infrun.c (handle_inferior_event): Call bpstat_stop_status
7573 with new argument.
7574
7575 2004-05-12 Jim Blandy <jimb@redhat.com>
7576
7577 * configure.in: When checking whether we should use the -bbigtoc
7578 option, don't forget to restore the original value of LDFLAGS.
7579 * configure: Regenerated.
7580
7581 2004-05-12 Andrew Cagney <cagney@redhat.com>
7582
7583 * thread.c (load_infrun_state): Delete step_sp.
7584 * infrun.c (context_switch): Ditto.
7585 * inferior.h (step_sp): Ditto.
7586 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
7587 * gdbthread.h (struct thread_info, save_infrun_state)
7588 (restore_infrun_state): Ditto.
7589
7590 2004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
7591
7592 * MAINTAINERS (write after approval): Add myself.
7593
7594 2004-05-12 Andrew Cagney <cagney@redhat.com>
7595
7596 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
7597 eliminate reference to step_sp.
7598 (struct execution_control_state, init_execution_control_state)
7599 (handle_inferior_event, keep_going): Delete update_step_sp and
7600 step_sp.
7601 * infcmd.c (step_sp): Note that variable is unused.
7602
7603 2004-05-11 Andrew Cagney <cagney@redhat.com>
7604
7605 * infrun.c (step_over_function): Delete function.
7606 (handle_step_into_function): Use insert_step_resume_breakpoint.
7607 (insert_step_resume_breakpoint): Fix assertion.
7608
7609 2004-05-11 Nick Roberts <nickrob@gnu.org>
7610
7611 * utils.c (defaulted_query): Just use the normal query input type
7612 when printing the annotations.
7613
7614 2004-05-11 Andrew Cagney <cagney@redhat.com>
7615
7616 * infrun.c (handle_inferior_event): Simplify code handling
7617 step-into or return-from a signal trampoline.
7618
7619 2004-05-11 Andrew Cagney <cagney@redhat.com>
7620
7621 * ppcnbsd-tdep.c: Include "gdb_assert.h".
7622 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
7623
7624 2004-05-10 Jim Blandy <jimb@redhat.com>
7625
7626 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
7627 with a call to internal_error.
7628
7629 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
7630 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
7631 processor variant lacks those registers.
7632 (ppc_floating_point_unit_p): Change description to make it clear
7633 that this returns info about the ISA, not the ABI.
7634 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
7635 return true or false by checking tdep->ppc_fp0_regnum and
7636 tdep->ppc_fpscr_regnum. The original code replicated the BFD
7637 arch/mach switching done in rs6000_gdbarch_init; it's better to
7638 keep that logic there, and just check the results here.
7639 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
7640 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
7641 floating-point registers.
7642 (ppc_supply_fpregset, ppc_collect_fpregset)
7643 (rs6000_push_dummy_call, rs6000_extract_return_value)
7644 (rs6000_store_return_value): Assert that we have floating-point
7645 registers.
7646 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
7647 (rs6000_frame_cache): Don't note the locations at which
7648 floating-point registers were saved if we have no fprs.
7649 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
7650 registers.
7651 (fetch_regs_user_thread, fetch_regs_kernel_thread)
7652 (store_regs_user_thread, store_regs_kernel_thread): Only call
7653 supply_fprs / fill_fprs if we actually have floating-point
7654 registers.
7655 (special_register_p): Check ppc_fpscr_regnum before matching
7656 against it.
7657 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
7658 supply / collect fpscr if we don't have it.
7659 * ppc-bdm.c: #include "gdb_assert.h".
7660 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
7661 have floating-point registers, since I can't test this code on
7662 FP-free systems to adapt it.
7663 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
7664 fpscr and floating point register numbers if they don't exist.
7665 (fetch_register): Assert that we have floating-point registers
7666 before we reach the code that handles them.
7667 (store_register): Same. And use tdep instead of calling
7668 gdbarch_tdep again.
7669 (fill_fpregset): Don't try to collect FP registers and fpscr if we
7670 don't have them.
7671 (ppc_linux_sigtramp_cache): Don't record the saved locations of
7672 fprs and fpscr if we don't have them.
7673 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
7674 don't have them.
7675 * ppcnbsd-nat.c: #include "gdb_assert.h".
7676 (getfpregs_supplies): Assert that we have floating-point registers.
7677 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
7678 * ppcobsd-tdep.c: #include "gdb_assert.h".
7679 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
7680 have floating-point registers.
7681 * rs6000-nat.c (regmap): Don't match against the fpscr and
7682 floating point register numbers if they don't exist.
7683 (fetch_inferior_registers, store_inferior_registers,
7684 fetch_core_registers): Only fetch / store / supply the
7685 floating-point registers and the fpscr if we have them.
7686 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
7687 (ppcobsd-tdep.o): Update dependencies.
7688
7689 2004-05-10 Andrew Cagney <cagney@redhat.com>
7690
7691 * infrun.c (through_sigtramp_breakpoint): Delete variable.
7692 (context_switch): Do not switch through_sigtramp_breakpoint.
7693 * gdbthread.h (save_infrun_state, load_infrun_state)
7694 (struct thread_info): Delete through_sigtramp_breakpoint parameter
7695 and structure member.
7696 * thread.c (load_infrun_state, save_infrun_state): Update.
7697
7698 2004-05-10 Mark Kettenis <kettenis@gnu.org>
7699
7700 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
7701
7702 2004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
7703
7704 * acinclude.m4: Quote macro names being defined by AC_DEFUN
7705 throughout.
7706 * aclocal.m4: Regenerate.
7707
7708 2004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
7709
7710 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
7711
7712 2004-05-10 Andrew Cagney <cagney@redhat.com>
7713
7714 * infrun.c (check_sigtramp2): Delete function.
7715 (handle_inferior_event): When single stepping, and taking a
7716 signal, set a breakpoint at the signal return address. Delete
7717 redundant calls to check_sigtramp2.
7718 (insert_step_resume_breakpoint): New function.
7719 (through_sigtramp_breakpoint, handle_inferior_event)
7720 (follow_exec, wait_for_inferior, fetch_inferior_event)
7721 (currently_stepping, keep_going): Delete most uses of
7722 through_sigtramp_breakpoint, not that it should be deleted.
7723 (delete_breakpoint_current_contents): Delete function.
7724
7725 2004-05-10 Randolph Chung <tausq@debian.org>
7726
7727 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
7728 target.
7729 * config/pa/tm-linux.h: New file.
7730
7731 2004-05-10 Daniel Jacobowitz <drow@mvista.com>
7732
7733 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
7734 of prefixes. Don't print the prefix twice in the CLI.
7735
7736 2004-05-10 Jim Blandy <jimb@redhat.com>
7737
7738 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
7739 collect all the gprs.
7740
7741 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
7742 loop collecting gprs.
7743
7744 2004-05-09 Andrew Cagney <cagney@redhat.com>
7745
7746 * remote-vx.c (net_step): Delete step-range code.
7747 * remote.c (remote_resume, init_all_packet_configs)
7748 (set_remote_protocol_E_packet_cmd)
7749 (show_remote_protocol_E_packet_cmd)
7750 (remote_protocol_E, show_remote_cmd, _initialize_remote)
7751 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
7752 (show_remote_protocol_e_packet_cmd): Ditto.
7753
7754 2004-05-09 Mark Kettenis <kettenis@gnu.org>
7755
7756 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
7757
7758 * hppa-tdep.h: Update copyright year.
7759 (struct trad_frame_saved_reg): Add opaque declaration.
7760
7761 * amd64-tdep.c (amd64_return_value): Implement
7762 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7763
7764 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
7765 (m68k_value_to_register): New functions.
7766 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
7767 value_to_register.
7768
7769 * defs.h (enum return_value_convention): Add
7770 RETURN_VALUE_ABI_RETURNS_ADDRESS and
7771 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
7772 * infcmd.c (legacy_return_value): New function.
7773 (print_return_value): Rwerite to implement
7774 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7775 * values.c (using_struct_return): Check for inequality to
7776 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
7777 RETURN_VALUE_STRUCT_CONVENTION.
7778 * i386-tdep.c (i386_return_value): Implement
7779 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7780
7781 * vax-tdep.c: Tweak comments. Reorder include files. Don't
7782 include "symtab.h", "opcode/vax.h" and "inferior.h".
7783 (vax_skip_prologue): Replace calls to read_memory_integer by calls
7784 to read_memory_unsigned_integer.
7785 (vax_gdbarch_init): Reorder.
7786 (_initialize_vax_tdep): Spell out prototype.
7787 * Makefile.in (vax-tdep.o): Update dependencies.
7788
7789 2004-05-08 Andrew Cagney <cagney@redhat.com>
7790
7791 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
7792 * target.c (target_detach, target_disconnect): Ditto.
7793
7794 * infcall.c (call_function_by_hand): When no
7795 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
7796 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
7797 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
7798 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7799 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7800
7801 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
7802 * gdbarch.h, gdbarch.c: Re-generate.
7803 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7804 deprecated_fix_call_dummy.
7805 * v850-tdep.c (v850_gdbarch_init): Ditto.
7806 * infcall.c (call_function_by_hand): Do not call
7807 DEPRECATED_FIX_CALL_DUMMY.
7808
7809 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
7810 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
7811 * gdbarch.h, gdbarch.c: Re-generate.
7812 * arm-linux-tdep.c (arm_linux_call_dummy_words)
7813 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
7814 deprecated_sizeof_call_dummy_words.
7815 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
7816 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7817 * v850-tdep.c (v850_gdbarch_init): Ditto.
7818 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
7819 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
7820 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7821 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7822 * arch-utils.h (legacy_call_dummy_words)
7823 (legacy_sizeof_call_dummy_words): Delete declarations.
7824 * arch-utils.c (legacy_call_dummy_words)
7825 (legacy_sizeof_call_dummy_words): Delete variables.
7826
7827 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
7828 * gdbarch.h, gdbarch.c: Re-generate.
7829 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
7830 * infcall.c (call_function_by_hand): Eliminate call to
7831 DEPRECATED_PUSH_DUMMY_FRAME.
7832 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
7833 push_dummy_frame.
7834 (ns32k_push_dummy_frame): Delete function.
7835
7836 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7837 deprecated_call_dummy_breakpoint_offset or
7838 deprecated_call_dummy_start_offset.
7839 * dummy-frame.c, arm-tdep.c: Update comments.
7840 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
7841 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
7842 * gdbarch.h, gdbarch.c: Re-generate.
7843
7844 * infcall.c (legacy_push_dummy_code): Delete function.
7845 (push_dummy_code): Delete call.
7846
7847 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
7848 * gdbarch.h, gdbarch.c: Re-generate.
7849 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
7850 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
7851 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
7852 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
7853
7854 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
7855 (struct frame_info): Delete opaque declaration.
7856 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
7857 * frame.c (get_frame_type): Delete call.
7858
7859 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
7860 pc_in_call_dummy.
7861 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
7862 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
7863
7864 2004-05-08 Mark Kettenis <kettenis@gnu.org>
7865
7866 * alphanbsd-tdep.c: Include "gdb_string.h".
7867 * armnbsd-tdep.c: Update copyright year.
7868 Include "gdb_string.h".
7869 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
7870 dependencies.
7871
7872 * delta68-nat.c: Remove file.
7873 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
7874 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
7875 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
7876 (delta68-nat.o): Remove dependency.
7877
7878 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
7879 function.
7880 (m68k_gdbarch_init): Don't set
7881 deprecated_frameless_function_invocation.
7882
7883 2004-05-07 Randolph Chung <tausq@debian.org>
7884
7885 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
7886 read_memory_nobpt for code reading when doing frame unwinding.
7887 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
7888
7889 2004-05-07 Randolph Chung <tausq@debian.org>
7890
7891 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
7892 instead of sp, handle sigaltstack case.
7893 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
7894 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
7895 signal handler and not that of the caller.
7896 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
7897 hppa_linux_sigtramp_find_sigcontext.
7898
7899 2004-05-07 Randolph Chung <tausq@debian.org>
7900
7901 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
7902 hppa-linux-nat.c.
7903 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
7904 * hppa-linux-nat.c (fetch_register, store_register): Define.
7905 (fetch_inferior_registers, store_inferior_registers): Define.
7906 (supply_gregset): Add comment and clean up some unneeded code.
7907 (fill_gregset): Add comment and fix so that it saves registers in
7908 the right place in the gregset.
7909 (fill_fpregset): Fix buffer overrun problem.
7910 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
7911
7912 2004-05-07 Randolph Chung <tausq@debian.org>
7913
7914 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
7915 do common handling of the pcoqt register.
7916 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
7917 to use helper function.
7918 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
7919 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
7920 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
7921 generic fallback unwinder when all else fails.
7922 (hppa_gdbarch_init): Add fallback sniffer.
7923 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
7924 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
7925 to use helper function.
7926
7927 2004-05-08 Joel Brobecker <brobecker@gnat.com>
7928
7929 * config/djgpp/fnchange.lst: Add translation rules for
7930 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
7931
7932 2004-05-08 Mark Kettenis <kettenis@gnu.org>
7933
7934 * frame.c (get_prev_frame_1): Work around GCC bug.
7935 * frame.h: Add comment about GCC bug.
7936
7937 2004-05-07 Andrew Cagney <cagney@redhat.com>
7938
7939 * observer.c: Include "commands.h" and "gdbcmd.h".
7940 (observer_debug, _initialize_observer): Add the
7941 command "set/show debug observer".
7942 * observer.sh: When observer debugging, log notify calls.
7943 * Makefile.in (observer.o): Update dependencies.
7944
7945 2004-05-07 Jason Molenda (jmolenda@apple.com)
7946
7947 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
7948
7949 2004-05-07 Jim Blandy <jimb@redhat.com>
7950
7951 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
7952 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
7953 to recognize gpr regnums, instead of assuming that
7954 tdep->ppc_fp0_regnum marks the end of the general-purpose
7955 registers.
7956
7957 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
7958 the given architecture has floating-point registers.
7959
7960 2004-05-07 Andrew Cagney <cagney@redhat.com>
7961
7962 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
7963 macro defined to 1.
7964 * gdbarch.h, gdbarch.c: Re-generate.
7965 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7966 deprecated_use_generic_dummy_frames.
7967
7968 2004-05-07 Brian Ford <ford@vss.fsi.com>
7969
7970 * NEWS: Mention Cygwin DWARF 2 support.
7971
7972 2004-05-07 Andrew Cagney <cagney@redhat.com>
7973
7974 * objfiles.h (struct entry_info): Delete unused fields
7975 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
7976 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
7977 * mipsread.c (mipscoff_symfile_read): Update.
7978 * mdebugread.c (parse_partial_symbols): Update.
7979 * dwarfread.c (read_file_scope): Update.
7980 * dwarf2read.c (read_file_scope): Update.
7981 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
7982 * coffread.c (complete_symtab): Update.
7983
7984 2004-05-07 Mark Kettenis <kettenis@gnu.org>
7985
7986 * infcall.c (_initialize_infcall): Fix typo.
7987
7988 2004-05-07 Andrew Cagney <cagney@redhat.com>
7989
7990 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
7991 * command.h (add_setshow_zinteger_cmd): Declare.
7992
7993 2004-05-06 Randolph Chung <tausq@debian.org>
7994
7995 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
7996 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
7997 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
7998 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
7999 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
8000 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
8001 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
8002 definitions ...
8003 * hppa-tdep.h: ... to here, with HPPA_ prefix.
8004 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
8005 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
8006 (hppa64_hpux_frame_find_saved_regs_in_sig)
8007 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
8008 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
8009 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
8010 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
8011 (hppa_linux_sigtramp_frame_prev_register): Likewise.
8012 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
8013 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
8014 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
8015 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
8016 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
8017 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
8018 (hppa32_register_type, hppa_cannot_store_register)
8019 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
8020 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
8021 * hpread.c (hpread_process_one_debug_symbol): Likewise.
8022 * pa64solib.c (pa64_solib_have_load_event)
8023 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
8024 (pa64_solib_unloaded_library_pathname): Likewise.
8025 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
8026 (som_solib_library_pathname): Likewise.
8027
8028 2004-05-05 Jim Ingham <jingham@apple.com>
8029
8030 * breakpoint.c (create_breakpoints): Copy the ignore count and
8031 thread id over from the pended breakpoint to the actual
8032 breakpoint.
8033
8034 2004-05-05 Andrew Cagney <cagney@redhat.com>
8035
8036 * gdbarch.sh (PARM_BOUNDARY): Delete.
8037 gdbarch.h, gdbarch.c: Re-generate.
8038 * valops.c (PARM_BOUNDARY): Delete macro.
8039 (value_push): Delete PARM_BOUNDARY code.
8040 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
8041
8042 2004-05-04 Jim Blandy <jimb@redhat.com>
8043
8044 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
8045 Don't assume that the gprs, fprs, and UISA sprs are
8046 contiguous, start at register number zero, and end with fpscr.
8047 Instead, use the numbers from the tdep structure.
8048
8049 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
8050 should no longer be used in code specific to the RS6000 and its
8051 derivatives.
8052 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
8053 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
8054 tdep->ppc_fp0_regnum.
8055 (ppc_supply_fpregset, ppc_collect_fpregset)
8056 (rs6000_push_dummy_call, rs6000_extract_return_value)
8057 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
8058 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
8059 FP0_REGNUM.
8060 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
8061 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
8062 Same.
8063 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
8064 bdm_ppc_store_registers): Same.
8065 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
8066 (store_register, fill_fpregset): Same.
8067 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
8068 (ppc_linux_supply_fpregset): Same.
8069 * ppcnbsd-nat.c (getfpregs_supplies): Same.
8070 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
8071 Same.
8072 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
8073 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
8074 ppc64_sysv_abi_return_value): Same.
8075 * rs6000-nat.c (regmap, fetch_inferior_registers)
8076 (store_inferior_registers, fetch_core_registers): Same.
8077
8078 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8079
8080 * m68knbsd-nat.c: Remove file.
8081 * m68knbsd-tdep.c: Remove file.
8082 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
8083 dependencies.
8084 * configure.host: Add m68k-*-netbsdelf*.
8085 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
8086 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
8087 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
8088 (XM_FILE): Remove.
8089 * config/m68k/nbsdelf.mh: New file.
8090 * config/m68k/nbsd.mt: New file.
8091 * config/m68k/nbsdaout.mt: Remove file.
8092 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
8093 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
8094 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
8095 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
8096 (use_struct_convention): Remove prototype.
8097 (USE_STRUCT_CONVENTION): Remove define.
8098 * config/m68k/xm-nbsd.h: Remove file.
8099
8100 2004-05-04 Michael Snyder <msnyder@redhat.com>
8101
8102 * m68k-tdep.c (m68k_gdbarch_init): Default to using
8103 reg_struct_return method (as gcc usually does for cross targets).
8104
8105 2004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8106
8107 Committed by Andrew Cagney.
8108 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
8109 alignment padding when accessing ucontext struct members.
8110
8111 2004-05-04 Jim Blandy <jimb@redhat.com>
8112
8113 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
8114 'ppc_gplast_regnum' member.
8115 (ppc_num_gprs): New enum constant.
8116 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
8117 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
8118 * rs6000-nat.c (regmap, fetch_inferior_registers,
8119 store_inferior_registers): Same.
8120 * rs6000-tdep.c (e500_pseudo_register_read)
8121 (e500_pseudo_register_write): Same.
8122 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
8123
8124 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
8125 * ppc-tdep.h (ppc_num_fprs): New enum constant.
8126 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
8127 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
8128 FPLAST_REGNUM.
8129 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8130 Same.
8131 * ppc-linux-nat.c (ppc_register_u_addr): Same.
8132 * rs6000-nat.c (regmap, fetch_inferior_registers)
8133 (store_inferior_registers): Same.
8134
8135 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
8136 with FPLAST_REGNUM.
8137
8138 2004-05-03 Joel Brobecker <brobecker@gnat.com>
8139
8140 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
8141 failure detected by recent versions of GCC.
8142 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
8143 to be consistent with the usage in dwarf2_create_include_psymtab.
8144
8145 2004-05-03 Michael Snyder <msnyder@redhat.com>
8146
8147 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
8148 (heuristic_proc_start): Whitespace cleanup.
8149
8150 2004-05-04 Mark Kettenis <kettenis@gnu.org>
8151
8152 * sun3-nat.c: Remove file.
8153 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
8154 dependencies.
8155 (ALLDEPFILES): Remove sun3-nat.c.
8156 (sun3-nat.o): Remove dependencies.
8157
8158 * i386-interix-nat.c, i386-interix-tdep.c,
8159 config/i386/nm-interix.h, config/i386/interix.mh,
8160 config/i386/interix.mt: Remove files.
8161 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
8162 dependencies.
8163
8164 2004-05-03 Mark Kettenis <kettenis@gnu.org>
8165
8166 * m68k-tdep.h (struct gdbarch_tdep): Add member
8167 struct_value_regnum.
8168 (m68k_svr4_init_abi): New prototype.
8169 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
8170 different calling conventions.
8171 (m68k_extract_return_value): Remove code dealing with single-field
8172 structs.
8173 (m68k_store_return_value): Remove code dealing with single-field
8174 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
8175 (m68k_extract_struct_value_address): Remove function.
8176 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
8177 (m68k_reg_struct_return_p, m68k_return_value)
8178 (m68k_svr4_return_value): New functions.
8179 (m68k_use_struct_convention): Remove function.
8180 (m68k_push_dummy_call): Use new struct_value_regnum member of
8181 `struct gdbarch_tdep' instead of hardcoded register number to
8182 store STRUCT_ADDR.
8183 (m68k_svr4_init_abi): New function.
8184 (m68k_gdbarch_init): Don't set extract_return_value,
8185 store_return_values, deprecated_extract_struct_value_address and
8186 use_struct_convention. Set return_value instead. Initialize new
8187 struct_value_regnum member of `struct gdbarch_tdep'.
8188 * m68klinux-tdep.c: Update copyright year.
8189 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
8190 (m68k_linux_extract_struct_value_address): Remove function.
8191 (m68k_linux_init_abi): Don't set extract_return_value,
8192 store_return_values, deprecated_extract_struct_value_address and
8193 use_struct_convention. Call m68k_svr4_init_abi but override the
8194 new struct_value_regnum member of `struct gdbarch_tdep'.
8195 * Makefile.in (m68k-tdep.o): Update dependencies.
8196
8197 2004-05-03 J. Brobecker <brobecker@gnat.com>
8198
8199 * dwarf2read.c (line_header): Add new included_p field in
8200 field file_names.
8201 (partial_die_info): New field has_stmt_list. New field line_offset.
8202 (dwarf2_create_include_psymtab): New function.
8203 (dwarf2_build_include_psymtabs): New function.
8204 (add_file_name): Add forward declaration. Initialize new field.
8205 (dwarf_decode_lines): Add new parameter. Enhance this procedure
8206 to be able to determine the list of files included by the
8207 given unit, and build their associated psymtabs.
8208 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
8209 files as well.
8210 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
8211 (read_file_scope): Update call to dwarf_decode_lines.
8212 (read_partial_die): Handle DW_AT_stmt_list attributes.
8213
8214 2004-05-02 Michael Chastain <mec.gnu@mindspring.com>
8215
8216 Unfix PR gdb/1626.
8217 * configure.in: Revert special case for osf5.*.
8218 * configure: Regenerate.
8219
8220 2004-05-02 Jim Blandy <jimb@redhat.com>
8221
8222 Move the symbol-file-from-memory functions into their own file.
8223 * symfile-mem.c, symfile-mem.h: New files.
8224 * symfile.c (symbol_file_add_from_bfd): New function.
8225 (symbol_file_add): Call symbol_file_add_from_bfd.
8226 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
8227 Moved to symfile-mem.c.
8228 (_initialize_symfile): Move definition of
8229 add-symbol-file-from-memory command to symfile-mem.c.
8230 * symfile.h (symbol_file_add_from_bfd): New declaration.
8231 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
8232 * config/powerpc/linux.mt (TDEPFILES): Same.
8233 * Makefile.in (SFILES): Add symfile-mem.c.
8234 (symfile_mem_h): New variable.
8235 (HFILES_NO_SRCDIR): Add symfile-mem.h.
8236 (symfile-mem.o): New rule.
8237
8238 2004-05-01 Andrew Cagney <cagney@redhat.com>
8239
8240 * breakpoint.c (insert_bp_location): Use get_frame_id, and
8241 frame_find_by_id instead of frame_relative_level.
8242 (do_enable_breakpoint): Ditto.
8243 * thread.c: Update copyright.
8244 (info_threads_command): Ditto, simplify.
8245
8246 * frame.c (deprecated_generic_get_saved_register): Delete
8247 function, moved to "xstormy16-tdep.c".
8248 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
8249 deprecated_generic_get_saved_register from "frame.c".
8250 (xstormy16_frame_saved_register): Call
8251 xstormy16_get_saved_register.
8252 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
8253 static.
8254 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
8255 * frame.h (deprecated_generic_get_saved_register): Delete.
8256
8257 2004-05-01 Michael Chastain <mec.gnu@mindspring.com>
8258
8259 * dwarfread.c: Update documentation on the state of dwarf-1.
8260
8261 2004-05-01 Andrew Cagney <cagney@redhat.com>
8262
8263 * stack.c (select_frame_command): Delete call to
8264 frame_relative_level.
8265 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
8266 Delete #if0 code.
8267 (frame_info): Do not print FRAMELESS.
8268 (print_block_frame_labels): Replace DEPRECATED_STREQ.
8269 (catch_info): Delete #if0 code.
8270
8271 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
8272 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
8273 of frame_relative_level.
8274 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
8275 to SENTINEL_FRAME.
8276 * frame.h (enum frame_type): Add SENTINEL_FRAME.
8277 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
8278 frame_relative_level.
8279
8280 * frame.h (deprecated_set_frame_type): Delete declaration.
8281 * frame.c (deprecated_set_frame_type): Delete function, update
8282 comments.
8283
8284 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
8285 * gdbarch.h, gdbarch.c: Re-generate.
8286 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
8287 (shnbsd_pc_in_sigtramp): Delete.
8288 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
8289 pc_in_sigtramp.
8290 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
8291 pc_in_sigtramp.
8292 * frame.h: Update comments.
8293 * ppc-linux-tdep.c: Update comments.
8294 * breakpoint.c (bpstat_what): Update comments.
8295
8296 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
8297 m68klinux-tdep.o's dependencies, were previously added to
8298 m68klinux-nat.o.
8299
8300 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
8301 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
8302 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
8303 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
8304 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
8305
8306 * Makefile.in (m68klinux-nat.o): Update dependencies.
8307 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8308 (m68k_linux_sigtramp_frame_cache)
8309 (m68k_linux_sigtramp_frame_this_id)
8310 (m68k_linux_sigtramp_frame_prev_register)
8311 (m68k_linux_sigtramp_frame_unwind)
8312 (m68k_linux_sigtramp_frame_sniffer)
8313 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
8314 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
8315 names, use trad-frame.h.
8316 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
8317 (struct m68k_sigtramp_info): Delete.
8318 * m68k-tdep.c (m68k_sigtramp_frame_cache)
8319 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
8320 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
8321 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
8322 "m68klinux-tdep.c".
8323
8324 * infrun.c (check_sigtramp2): Delete check for
8325 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
8326
8327 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8328
8329 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
8330
8331 2004-05-01 Andrew Cagney <cagney@redhat.com>
8332
8333 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8334 (frv_linux_sigtramp_frame_cache)
8335 (frv_linux_sigtramp_frame_this_id)
8336 (frv_linux_sigtramp_frame_prev_register)
8337 (frv_linux_sigtramp_frame_unwind)
8338 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
8339 include "linux" in function and variable names, directly call
8340 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
8341 the latest trad-frame code.
8342 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
8343 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
8344 * Makefile.in (frv-linux-tdep.o): Update dependencies.
8345 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
8346 * frv-tdep.c (frv_sigtramp_frame_cache)
8347 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
8348 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
8349 frv-linux-tdep.c.
8350 (frv_gdbarch_init): Do not append a sigtramp sniffer.
8351 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
8352 (frv_set_sigcontext_reg_addr): Delete function.
8353
8354 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
8355 (DEPRECATED_SIGTRAMP_END): Delete.
8356 * gdbarch.h, gdbarch.c: Re-generate.
8357 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
8358 * config/vax/tm-vaxbsd.h: Update copyright.
8359 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8360 (DEPRECATED_IN_SIGTRAMP): Define.
8361 * config/m68k/tm-nbsd.h: Update copyright.
8362 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8363 (DEPRECATED_IN_SIGTRAMP): Define.
8364
8365 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8366
8367 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
8368 encondings. Fixes PR gdb/1628.
8369
8370 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
8371 DW_CFA_restore state without a matching DW_CFA_remember_state
8372 instead of aborting. Fixes PR backtrace/1589.
8373
8374 2004-04-30 Joel Brobecker <brobecker@gnat.com>
8375
8376 * MAINTAINERS: Add self as AIX maintainer.
8377 Update my e-mail address in write-after-approval section.
8378
8379 2004-04-30 Andrew Cagney <cagney@redhat.com>
8380
8381 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
8382 (legacy_get_prev_frame): Ditto.
8383
8384 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
8385 (mips_gdbarch_init): Do not set pc_in_sigtramp.
8386 * mipsread.c (sigtramp_address): Delete extern variable.
8387 (mipscoff_new_init): Delete reference.
8388 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
8389 (fixup_sigtramp): Delete function.
8390 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
8391 (fixup_sigtramp): Delete declarations.
8392
8393 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
8394 deprecated_pc_in_sigtramp.
8395 (ppcnbsd_pc_in_sigtramp): Delete function.
8396
8397 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8398
8399 * config/m68k/nm-nbsd.h: Tweak comments.
8400 * config/m68k/nm-nbsdaout.h: Likewise.
8401
8402 2004-04-30 Andrew Cagney <cagney@redhat.com>
8403
8404 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
8405 legacy_pc_in_sigtramp.
8406 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
8407
8408 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8409
8410 Add OpenBSD/m68k support.
8411 * NEWS (New native configurations): Mention OpenBSD/m68k.
8412 * m68kbsd-tdep.c: New file.
8413 * m68kbsd-nat.c: New file.
8414 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
8415 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
8416 * configure.host: Add m68k-*-openbsd.
8417 * configure.tgt: Add m68k-*-openbsd.
8418 * config/m68k/tm-obsd.h: New file.
8419 * config/m68k/obsd.mt: New file.
8420 * config/m68k/obsd.mh: New file.
8421 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
8422 m68kbsd-tdep.c.
8423
8424 2004-04-30 Andrew Cagney <cagney@redhat.com>
8425
8426 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
8427 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
8428
8429 2004-04-30 Mark Kettenis <kettenis@gnu.org>
8430
8431 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
8432 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
8433
8434 2004-04-30 Brian Ford <ford@vss.fsi.com>
8435
8436 Revert 2004-04-16 change.
8437 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
8438 (i386_coff_init_abi): Remove.
8439 * i386-tdep.h (i386_coff_init_abi): Remove.
8440 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
8441
8442 2004-04-30 Andrew Cagney <cagney@redhat.com>
8443
8444 * blockframe.c (find_pc_partial_function): Delete use of
8445 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
8446 DEPRECATED_SIGTRAMP_END.
8447
8448 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
8449 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
8450 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
8451 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
8452 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
8453
8454 * defs.h (deprecated_inside_entry_file): Delete declaration.
8455 * blockframe.c (deprecated_inside_entry_file): Delete function.
8456 (legacy_frame_chain_valid): Delete call.
8457 * sh64-tdep.c (sh64_frame_chain): Delete call.
8458 * objfiles.h: Update comments.
8459 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
8460 call.
8461 * frame.c (get_prev_frame): Delete call, update comments.
8462
8463 2004-04-30 Brian Ford <ford@vss.fsi.com>
8464
8465 * MAINTAINERS (Write After Approval): Add myself.
8466
8467 2004-04-30 Andrew Cagney <cagney@redhat.com>
8468
8469 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
8470 * gdbarch.h, gdbarch.c: Re-generate.
8471 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
8472 code.
8473
8474 2004-04-30 Andrew Cagney <cagney@redhat.com>
8475
8476 * gdb-events.sh (selected_thread_changed)
8477 (selected_frame_level_changed, target_changed): Delete.
8478 * gdb-events.h, gdb-events.c: Re-generate.
8479 * valops.c (value_assign): Update.
8480 * stack.c (select_frame_command, up_silently_base)
8481 (down_silently_base): Update.
8482
8483 2004-04-29 Andrew Cagney <cagney@redhat.com>
8484
8485 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
8486 registers correctly.
8487 (print_gp_register_row, mips32_heuristic_proc_desc)
8488 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
8489 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
8490 references to mips_isa_regsize.
8491
8492 2004-04-29 Andrew Cagney <cagney@redhat.com>
8493
8494 * mips-tdep.c (struct gdbarch_tdep): Delete
8495 mips_fp_register_double.
8496 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
8497 mips_abi_regsize.
8498 (mips_gdbarch_init): Do not set mips_fp_register_double.
8499 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
8500
8501 2004-04-29 Joel Brobecker <brobecker@gnat.com>
8502
8503 Committed by Andrew Cagney.
8504 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
8505 function calls.
8506
8507 2004-04-29 Andrew Cagney <cagney@redhat.com>
8508
8509 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
8510 gdbarch, use mips_abi, update callers.
8511 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
8512 mips_abi_regsize, update callers.
8513 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
8514 mips_default_abi_regsize.
8515 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
8516 mips_default_abi_regsize.
8517
8518 2004-04-29 Andrew Cagney <cagney@redhat.com>
8519
8520 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
8521 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
8522 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
8523 mips_default_abi_regsize.
8524 (mips_isa_regsize): Rename mips_regisze.
8525 * mipsnbsd-tdep.c: Update.
8526 * mips-linux-tdep.c: Update.
8527 * irix5-nat.c: Update.
8528 * mips-tdep.h (mips_isa_regsize): Update.
8529
8530 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
8531 Delete all disabled code.
8532 * gdb-events.h, gdb-events.c: Re-generate.
8533
8534 2004-04-19 Jerome Guitton <guitton@gnat.com>
8535 Mark Kettenis <kettenis@gnu.org>
8536
8537 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
8538 the function begins with a branch instruction.
8539
8540 2004-04-29 Mark Kettenis <kettenis@gnu.org>
8541
8542 * i386-tdep.c: Fix spelling mistakes.
8543
8544 2004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8545 Andrew Cagney <cagney@redhat.com>
8546
8547 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
8548 <sys/proc.h>.
8549 * acconfig.h: Provide default _KMEMUSER value.
8550 * config.in, configure: Re-generate.
8551 * NEWS: Mention fix.
8552
8553 2004-04-24 Randolph Chung <tausq@debian.org>
8554
8555 * configure.host (hppa*-*-linux*): New target.
8556 * configure.tgt (hppa*-*-linux*): Likewise.
8557 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
8558 gdbarch_init_osabi() call earlier so that osabi-specific frame
8559 unwinders can be registered first.
8560 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
8561 hppa-linux-nat.c.
8562 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
8563 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
8564 * config/pa/linux.mh: New file.
8565 * config/pa/linux.mt: New file.
8566 * config/pa/nm-linux.h: New file.
8567 * config/pa/xm-linux.h: New file.
8568 * hppa-linux-nat.c: New file.
8569 * hppa-linux-tdep.c: New file.
8570
8571 2004-04-28 Randolph Chung <tausq@debian.org>
8572
8573 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
8574 return values.
8575 (hppa32_push_dummy_call): Fix small struct and floating point argument
8576 passing, and make sure the stack frame is properly aligned.
8577
8578 2004-04-28 Andrew Cagney <cagney@redhat.com>
8579
8580 * stack.c (print_stack_frame): Fix description.
8581
8582 * NEWS: Mention gdb/gdbserver/configure execute permission
8583 changed. PR server/519.
8584
8585 2004-04-28 Andrew Cagney <cagney@redhat.com>
8586
8587 * stack.c (print_stack_frame_stub): Delete declaration.
8588 (struct print_stack_frame_args, print_stack_frame)
8589 (print_frame_info, print_frame): Replace "source" with print what.
8590 Replace "print" with "print_level". Replace "args" with
8591 "print_args".
8592 * frame.h (show_and_print_stack_frame, print_stack_frame)
8593 (print_frame_info): Update declarations.
8594 * stack.c (select_and_print_frame, frame_command)
8595 (current_frame_command, up_command, down_command): Update calls -
8596 use get_selected_frame, pass "enum print_what" for source, do not
8597 call frame_relative_level.
8598 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
8599 * remote-rdp.c (remote_rdp_open): Ditto.
8600 * remote-mips.c (common_open): Ditto.
8601 * remote-e7000.c (e7000_start_remote): Ditto.
8602 * ocd.c (ocd_start_remote): Ditto.
8603 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
8604 * infrun.c (normal_stop): Ditto.
8605 * inflow.c (kill_command): Ditto.
8606 * infcmd.c (finish_command): Ditto.
8607 * corelow.c (core_open): Ditto.
8608 * tracepoint.c (finish_tfind_command): Ditto.
8609 * thread.c (info_threads_command, info_threads_command)
8610 (restore_current_thread, do_captured_thread_select): Ditto.
8611 * ada-tasks.c (task_command): Ditto.
8612
8613 2004-04-26 Orjan Friberg <orjanf@axis.com>
8614
8615 * frame.c: Include "observer.h".
8616 (frame_observer_target_changed): New function.
8617 (_initialize_frame): Attach target_changed observer.
8618 * regcache.c: Include "observer.h".
8619 (regcache_observer_target_changed): New function.
8620 (_initialize_regcache): Attach target_changed observer.
8621 * valops.c: Include "observer.h".
8622 (value_assign): Notify target_changed event when modifying register.
8623 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
8624
8625 2004-04-26 Orjan Friberg <orjanf@axis.com>
8626
8627 From Paul Koning <pkoning@equallogic.com>:
8628 * breakpoint.c (free_valchain): New function.
8629 (insert_bp_location, delete_breakpoint): Use free_valchain.
8630 (remove_breakpoint): Do not remove the valchain.
8631 (bpstat_stop_status): If not stopped by watchpoint, skip
8632 watchpoints when generating stop status list.
8633 * infrun.c (handle_inferior_event): Make
8634 stepped_after_stopped_by_watchpoint a global variable.
8635 * remote.c (remote_stopped_data_address): Return watch data
8636 address rather than zero if stepped_after_stopped_by_watchpoint is
8637 set.
8638
8639 2004-04-25 Michael Chastain <mec.gnu@mindspring.com>
8640
8641 Fix PR gdb/1626.
8642 * configure.in: Check for curses after termcap.
8643 On osf5.*, do not check for ncurses.
8644 * configure: Regenerate.
8645
8646 2004-04-25 Mark Kettenis <kettenis@gnu.org>
8647
8648 * ppcobsd-nat.c: Include "ppc-tdep.h".
8649 * Makefile.in (ppcobsd-nat.o): Update dependencies.
8650
8651 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
8652 Fixes PR tdep/1623 and PR tdep/1624.
8653
8654 2004-04-24 Michael Chastain <mec.gnu@mindspring.com>
8655
8656 * xmodem.h, xmodem.c: Remove files.
8657 * Makefile.in: Remove references to xmodem.h, xmodem.c.
8658
8659 2004-04-23 Randolph Chung <tausq@debian.org>
8660
8661 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
8662 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
8663 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
8664 for handling stackless frames.
8665 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
8666
8667 2004-04-23 Randolph Chung <tausq@debian.org>
8668
8669 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
8670 starts at a pc before the frame is created.
8671
8672 2004-04-23 Joel Brobecker <brobecker@gnat.com>
8673
8674 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
8675
8676 2004-04-23 Jerome Guitton <guitton@gnat.com>
8677
8678 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
8679 use convert_typed_floating to get the appropriate format.
8680
8681 2004-04-22 Randolph Chung <tausq@debian.org>
8682
8683 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
8684 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
8685 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
8686 (hppa_sign_extend): Add prototype.
8687 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
8688 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
8689 (sign_extend): Rename with hppa_ prefix and make non-static. Other
8690 hppa targets will also use these functions.
8691 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
8692 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
8693 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
8694 (hppa_gdbarch_init): Remove gdbarch setting of
8695 skip_trampoline_code, in_solib_call_trampoline and
8696 in_solib_return_trampoline.
8697 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
8698 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
8699 hppa_in_solib_call_trampoline.
8700 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
8701 Moved from hppa-tdep.c.
8702 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
8703 in_solib_call_trampoline and in_solib_return_trampoline.
8704
8705 2004-04-22 Randolph Chung <tausq@debian.org>
8706
8707 * hppa-tdep.c (hppa_debug): New variable.
8708 (find_unwind_entry, hppa_frame_cache): Add debug output.
8709 (_initialize_hppa_tdep): Add command to set debug flag.
8710
8711 2004-04-22 Andrew Cagney <cagney@redhat.com>
8712
8713 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
8714 "trad-frame.h".
8715 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
8716 signal trampoline unwinder.
8717 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
8718
8719 2004-04-22 Mark Kettenis <kettenis@gnu.org>
8720
8721 Add OpenBSD/powerpc support.
8722 * NEWS (New native configurations): Mention OpenBSD/powerpc.
8723 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
8724 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
8725 (ppc_collect_fpregset): New prototypes.
8726 * ppcobsd-nat.c: New file.
8727 * ppcobsd-tdep.c: New file.
8728 * ppcobsd-tdep.h: New file.
8729 * rs6000-tdep.c: Include "regset.h".
8730 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
8731 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
8732 New functions.
8733 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
8734 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
8735 (rs6000-tdep.o): Update dependencies.
8736 * configure.host: Add powerpc-*-openbsd.
8737 * configure.tgt: Add powerpc-*-openbsd.
8738 * config/powerpc/obsd.mh: New file.
8739 * config/powerpc/nm-obsd.h: New file.
8740 * config/powerpc/obsd.mt: New file.
8741
8742 2004-04-22 Andrew Cagney <cagney@redhat.com>
8743
8744 * frame.h (show_frame_info): Delete declaration.
8745
8746 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
8747 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
8748 * m32r-tdep.c (m32r_frame_this_id): Ditto.
8749 * frv-tdep.c (frv_frame_this_id): Ditto.
8750 * avr-tdep.c (avr_frame_this_id): Ditto.
8751
8752 2004-04-22 Elena Zannoni <ezannoni@redhat.com>
8753
8754 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
8755
8756 2004-04-22 Jim Blandy <jimb@redhat.com>
8757
8758 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
8759 register number zero.
8760
8761 2004-04-21 Michael Snyder <msnyder@redhat.com>
8762
8763 * mips-tdep.c (heuristic_proc_start):
8764 Warning() already prefixes "Warning: ".
8765
8766 2004-04-21 Andrew Cagney <cagney@redhat.com>
8767
8768 * annotate.h (deprecated_annotate_starting_hook)
8769 (deprecated_annotate_stopped_hook)
8770 (deprecated_annotate_exited_hook)
8771 (deprecated_annotate_signal_hook)
8772 (deprecated_annotate_signalled_hook): Deprecate.
8773 * tracepoint.h (deprecated_create_tracepoint_hook)
8774 (deprecated_delete_tracepoint_hook)
8775 (deprecated_modify_tracepoint_hook)
8776 (deprecated_trace_find_hook)
8777 (deprecated_trace_start_stop_hook): Deprecate.
8778 * target.h (deprecated_target_new_objfile_hook): Deprecate.
8779 * remote.h (deprecated_target_resume_hook)
8780 (deprecated_target_wait_loop_hook): Deprecate.
8781 * gdbcore.h (deprecated_exec_file_display_hook)
8782 (deprecated_file_changed_hook): Deprecate.
8783 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
8784 * defs.h (deprecated_modify_breakpoint_hook)
8785 (deprecated_command_loop_hook, deprecated_show_load_progress)
8786 (deprecated_print_frame_info_listing_hook)
8787 (deprecated_query_hook, deprecated_warning_hook)
8788 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
8789 (deprecated_delete_breakpoint_hook)
8790 (deprecated_interactive_hook, deprecated_registers_changed_hook)
8791 (deprecated_readline_begin_hook, deprecated_readline_hook)
8792 (deprecated_readline_end_hook, deprecated_register_changed_hook)
8793 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
8794 (deprecated_context_hook, deprecated_target_wait_hook)
8795 (deprecated_attach_hook, deprecated_detach_hook)
8796 (deprecated_call_command_hook, deprecated_set_hook)
8797 (deprecated_error_hook, deprecated_error_begin_hook)
8798 (deprecated_ui_load_progress_hook): Deprecate.
8799 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
8800 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
8801 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
8802 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
8803 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
8804 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
8805 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
8806 * annotate.c, aix-thread.c: Update.
8807
8808 2004-04-21 Andrew Cagney <cagney@redhat.com>
8809
8810 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
8811 * vaxnbsd-tdep.c: Include "gdb_string.h".
8812
8813 * symfile.c (symbol_file_add_from_memory): #if 0 function.
8814 (add_symbol_file_from_memory_command): #if 0 function body, call
8815 error instead.
8816
8817 2004-04-21 Andrew Cagney <cagney@redhat.com>
8818
8819 * gdbcore.h: Update copyright.
8820 (deprecated_add_core_fns): Rename add_core_fns.
8821 * win32-nat.c (_initialize_core_win32): Update.
8822 * sun3-nat.c (_initialize_core_sun3): Update.
8823 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
8824 * rs6000-nat.c (_initialize_core_rs6000): Update.
8825 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
8826 * nto-tdep.c (_initialize_nto_tdep): Update.
8827 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
8828 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
8829 * mips-nat.c (_initialize_core_mips): Update.
8830 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
8831 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
8832 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
8833 * lynx-nat.c (_initialize_core_lynx): Update.
8834 * irix5-nat.c (_initialize_core_irix5): Update.
8835 * i386-interix-nat.c (_initialize_core_interix): Update.
8836 * cris-tdep.c (_initialize_cris_tdep): Update.
8837 * corelow.c (deprecated_add_core_fns): Update.
8838 * core-regset.c (_initialize_core_regset): Update.
8839 * core-aout.c (_initialize_core_aout): Update.
8840 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
8841 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
8842 * alpha-nat.c (_initialize_core_alpha): Update.
8843
8844 2004-04-21 Jim Blandy <jimb@redhat.com>
8845
8846 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
8847
8848 2004-04-19 Daniel Jacobowitz <drow@mvista.com>
8849
8850 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
8851 Delete.
8852 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
8853 (read_attribute_value): Update calls to dwarf_alloc_block.
8854 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
8855 dwarf2_tmp_obstack.
8856 (psymtab_to_symtab_1): Likewise. Clean up using
8857 free_stack_comp_unit.
8858 (add_to_cu_func_list): Use the comp_unit_obstack.
8859
8860 2004-04-19 Joel Brobecker <brobecker@gnat.com>
8861
8862 * dwarf2read.c (dwarf2_flag_true_p): New function.
8863 (die_is_declaration): Use the function above. Add some comments.
8864
8865 2004-04-19 Mark Kettenis <kettenis@gnu.org>
8866
8867 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
8868 architecture when registering sparcnbsd_core_osabi_sniffer.
8869 Adjust comment.
8870
8871 2004-04-18 Mark Kettenis <kettenis@gnu.org>
8872
8873 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
8874 return value.
8875
8876 Based on a patch from Brian Ford <ford@vss.fsi.com>:
8877 * i386-tdep.c: Correct register numbering scheme comments
8878 throughout.
8879 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
8880 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
8881 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
8882 (i386_gdb_arch_init): Likewise.
8883
8884 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
8885 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
8886 ppcnbsd-tdep.o.
8887
8888 * m68k-tdep.h: Tweak comments.
8889 * m68k-tdep.c: Tweak comment.
8890
8891 2004-04-17 Randolph Chung <tausq@debian.org>
8892
8893 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
8894 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
8895 (hppa_hpux_som_init_abi): Set is_elf to 0.
8896 (hppa_hpux_elf_init_abi): Set is_elf to 1.
8897 * hppa-tdep.c (low_text_segment_address): Remove global.
8898 (record_text_segment_lowaddr): Pass in low address as parameter. Use
8899 section offset to calculate segment address.
8900 (internalize_unwinds): Define low_text_segment_address as local and
8901 pass to record_text_segment_lowaddr for ELF targets.
8902 (hppa_gdbarch_init): Zero fill tdep structure.
8903 (hppa_dump_tdep): Print tdep structure.
8904 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
8905
8906 2004-04-17 Randolph Chung <tausq@debian.org>
8907
8908 * hppa-tdep.c (hppa_pseudo_register_read): Define.
8909 (hppa_gdbarch_init): Set pseudo_register_read.
8910 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
8911 * regcache.c (supply_register): Remove check for
8912 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
8913
8914 2004-04-17 Randolph Chung <tausq@debian.org>
8915
8916 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
8917 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
8918 (hpread_adjust_stack_address): Move to hpread.c.
8919 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
8920 obj_private_struct): Move from tm-hppa.h.
8921 * hpread.c (hppa-tdep.h): Include.
8922 (hpread_adjust_stack_address): Move from hppa-tdep.c.
8923 (hpread_read_function_type, hpread_read_doc_function_type)
8924 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
8925 directly.
8926 * pa64solib.c (hppa-tdep.h): Include.
8927 * somsolib.c (hppa-tdep.h): Include.
8928 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
8929 inferior_status): Remove unused forward declarations.
8930 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
8931 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
8932 obj_private_struct): Move to hppa-tdep.h.
8933 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
8934
8935 2004-04-17 Randolph Chung <tausq@debian.org>
8936
8937 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
8938 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
8939 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
8940 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
8941 Remove forward declaration and make static.
8942 (hppa_reg_struct_has_addr): Remove.
8943
8944 2004-04-16 Joel Brobecker <brobecker@gnat.com>
8945
8946 * observer.sh: Move comments in sed command to first column.
8947
8948 2004-04-16 Jason Molenda (jmolenda@apple.com)
8949
8950 * frame.c: Minor typeo corrections in comments.
8951
8952 2004-04-16 Joel Brobecker <brobecker@gnat.com>
8953
8954 * observer.c (observer_test_first_notification_function): Update
8955 function profile.
8956 (observer_test_second_notification_function): Likewise.
8957 (observer_test_third_notification_function): Likewise.
8958
8959 2004-04-16 Mark Kettenis <kettenis@gnu.org>
8960
8961 From Brian Ford <ford@vss.fsi.com>:
8962 * i386-tdep.c (i386_coff_init_abi): New function.
8963 * i386-tdep.h (i386_coff_init_abi): New prototype.
8964 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
8965 register number translation functions for DWARF and DWARF 2.
8966
8967 2004-04-16 Joel Brobecker <brobecker@gnat.com>
8968
8969 * dwarf2read.c: Back out my previous change, it was incorrect.
8970
8971 2004-04-16 Daniel Jacobowitz <drow@mvista.com>
8972
8973 * dwarf2read.c: Include "hashtab.h".
8974 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
8975 has_namespace_info.
8976 (struct partial_die_info): Add comments. Use bitfields to reduce
8977 memory footprint. Add scope, scope_set, has_specification,
8978 spec_offset, die_parent, die_child, and die_sibling.
8979 (peek_die_abbrev): Add prototype.
8980 (partial_read_comp_unit_head): New function, broken out from
8981 dwarf2_build_psymtabs_hard.
8982 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
8983 Use partial_read_comp_unit_head. Initialize the CU and
8984 comp_unit_obstack. Update calls to read_partial_die and
8985 scan_partial_symbols. Use free_stack_comp_unit and
8986 load_partial_dies.
8987 (scan_partial_symbols): Change PDI to a pointer. Use the child and
8988 sibling pointers to walk partial DIEs. Call fixup_partial_die.
8989 Update calls to helper functions. Remove NAMESPACE argument.
8990 Update comments.
8991 (partial_die_parent_scope, partial_die_full_name): New functions.
8992 (add_partial_symbol): Remove namespace argument. Update call to
8993 pdi_needs_namespace. Use partial_die_full_name. Handle
8994 DW_TAG_namespace. Check has_namespace_info flag.
8995 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
8996 tag. Handle namespaces.
8997 (add_partial_namespace, add_partial_enumeration): Simplify.
8998 (guess_structure_name): New function, derived from
8999 add_partial_structure.
9000 (add_partial_structure): Remove.
9001 (determine_class_name): Update comment.
9002 (dwarf2_read_abbrevs): Set has_namespace_info flag.
9003 (is_type_tag_for_partial, load_partial_dies): New functions.
9004 (read_partial_die): Pass abbrev and abbrev_len as arguments.
9005 Record specifications instead of following them immediately.
9006 (find_partial_die_in_comp_unit, find_partial_die)
9007 (fixup_partial_die, free_stack_comp_unit)
9008 (hashtab_obstack_allocate, dummy_obstack_deallocate)
9009 (partial_die_hash, partial_die_eq): New functions.
9010 * Makefile.in (hashtab_h): Define.
9011 (dwarf2read.o): Update dependencies.
9012 (observer_inc, observer_h): Move to the correct section.
9013
9014 2004-04-15 Joel Brobecker <brobecker@gnat.com>
9015
9016 * dwarf2read.c (dwarf2_attribute_true_p): New function.
9017 (die_is_declaration): Use the function above. Add comment.
9018
9019 2004-04-15 Joel Brobecker <brobecker@gnat.com>
9020
9021 * dwarf2read.c (read_structure_scope): Identify stub types
9022 using die_is_declaration() only.
9023
9024 2004-04-15 Roland McGrath <roland@redhat.com>
9025
9026 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
9027 argument instead of NAME.
9028 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
9029 in call to symbol_file_add_with_addrs_or_offsets.
9030 (build_addr_info): New function, helper for ...
9031 (symbol_file_add_from_memory): New function.
9032 (add_symbol_file_from_memory_command): New function using that.
9033 (_initialize_symfile): Register it for add-symbol-file-from-memory.
9034 (pre_add_symbol_hook): Add const to argument type.
9035 * symfile.h (symbol_file_add_from_memory): Declare it.
9036
9037 2004-04-15 Mark Kettenis <kettenis@gnu.org>
9038
9039 * NEWS (New native configurations): Mention OpenBSD/vax.
9040 * configure.host: Add vax-*-openbsd*.
9041 * config/vax/obsd.mh: New file.
9042 * config/vax/nm-obsd.h: New file.
9043
9044 * vax-tdep.c: Include "regset.h".
9045 (vax_supply_gregset): New function.
9046 (vax_gregset): New variable.
9047 (vax_regset_from_core_section): New function.
9048 (vax_gdbarch_init): Set regset_from_core_section.
9049 * Makefile.in (vax-tdep.o): Update dependencies.
9050
9051 2004-04-15 Andrew Cagney <cagney@redhat.com>
9052
9053 * observer.c (normal_stop_subject, observer_notify_normal_stop)
9054 (observer_normal_stop_notification_stub)
9055 (observer_attach_normal_stop, observer_detach_normal_stop):
9056 Delete, replaced by #include "observer.inc".
9057 * infrun.c (normal_stop): Pass "stop_bpstat" to
9058 observer_notify_normal_stop.
9059 * Makefile.in (observer_inc): Define.
9060 (observer.o): Update dependencies.
9061 (observer.h, observer.inc): New rules.
9062 * observer.h: Delete file.
9063 * observer.sh: New file.
9064
9065 2004-04-15 Mark Kettenis <kettenis@gnu.org>
9066
9067 * vax-tdep.c (vax_frame_cache): Fix typo.
9068
9069 2004-04-14 Mark Kettenis <kettenis@gnu.org>
9070
9071 * NEWS (New native configurations): Mention NetBSD/vax.
9072 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
9073 * config/vax/nbsdelf.mh: New file.
9074 * config/vax/nbsdaout.mh: New file.
9075 * config/vax/nm-nbsd.h: New file.
9076 * config/vax/nm-nbsdaout.h: New file.
9077
9078 * vaxnbsd-tdep.c: New file.
9079 * Makefile.in (vaxnbsd-tdep.o): New dependency.
9080 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
9081 * config/vax/nbsd.mt: New file.
9082 * config/vax/tm-nbsd.h: New file.
9083
9084 * Makefile.in (vaxbsd-nat.o): New dependency.
9085
9086 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
9087 * vax-tdep.c (vax_store_arguments): Remove struct_return and
9088 struct_addr arguments. Don't push return value address.
9089 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
9090 arguments to vax_store_arguments. Store return value address in
9091 R1.
9092 (vax_store_struct_return, vax_extract_return_value)
9093 (vax_store_return_value): Remove functions.
9094 (vax_return_value): New function.
9095 (vax_gdbarch_init): Set return value. Don't set
9096 deprecated_store_struct_return, deprecated_extract_struct_return
9097 and deprecated_store_return_value.
9098
9099 2004-04-14 Andreas Schwab <schwab@suse.de>
9100
9101 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
9102 value buffer.
9103 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
9104
9105 2004-04-14 Mark Kettenis <kettenis@gnu.org>
9106
9107 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
9108 (vax_unwind_dummy_id): New functions.
9109 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
9110 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
9111 variables.
9112 (vax_fix_call_dummy): Remove function.
9113 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
9114 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
9115 call_dummy_location, deprecated_call_dummy_words,
9116 deprecated_sizeof_call_dummy_words,
9117 deprecated_call_dummy_breakpoint_offset,
9118 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
9119 and deprecated_dummy_write_sp.
9120
9121 2004-04-13 David Carlton <carlton@kealia.com>
9122
9123 * MAINTAINERS: Move myself to "paper trail" section.
9124
9125 2004-04-12 Mark Kettenis <kettenis@gnu.org>
9126
9127 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
9128 "trad-frame.h".
9129 (vax_frame_init_saved_regs): Remove function.
9130 (vax_sigtramp_saved_pc): Remove function.
9131 (vax_frame_saved_pc): Remove function.
9132 (vax_frame_args_address): Remove function.
9133 (vax_frame_num_args): Rewrite.
9134 (vax_frame_chain): Remove function.
9135 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
9136 VAX_FP_REGNUM.
9137 (vax_pop_frame): Likewise.
9138 (vax_saved_pc_after_call): Remove function.
9139 (struct vax_frame_cache): New structure.
9140 (vax_frame_cache): New function.
9141 (vax_frame_this_id): New function.
9142 (vax_frame_prev_register): New function.
9143 (vax_frame_unwind): New variable.
9144 (vax_frame_sniffer): New function.
9145 (vax_frame_base_address): New function.
9146 (vax_frame_args_address): New function.
9147 (vax_frame_base): New variable.
9148 (vax_unwind_pc): New function.
9149 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
9150 deprecated_fp_regnum, deprecated_saved_pc_after_call,
9151 deprecated_frame_chain, deprecated_frame_saved_pc,
9152 deprecated_frame_args_address and
9153 deprecated_frame_init_saved_regs.
9154 * Makefile.in (vax-tdep.o): Update dependencies.
9155
9156 * vaxbsd-nat.c: New file.
9157
9158 * vax-tdep.h: Update copyright year. Adjust comments.
9159 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
9160 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
9161 (vax_regnum): New enum. Replacing...
9162 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
9163 (VAX_PS_REGNUM): ... these removed macros.
9164 * vax-tdep.c (vax_register_name): Remove prototype.
9165 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
9166 (vax_register_byte, vax_register_raw_size,
9167 vax_register_virtual_size, vax_register_virtual_type): Remove
9168 functions.
9169 (vax_register_type): New function.
9170 (vax_breakpoint_from_pc): Reorganize.
9171 (vax_gdbarch_init): Set register_type. Don't set
9172 deprecated_register_size, deprecated_register_bytes,
9173 deprecated_register_byte, deprecated_register_raw_size,
9174 deprecated_max_register_raw_size,
9175 deprecated_register_virtual_size,
9176 deprecated_max_register_virtual_size and
9177 deprecated_register_virtual_type. Add comment on stack direction.
9178
9179 2004-04-11 Mark Kettenis <kettenis@gnu.org>
9180
9181 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
9182 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
9183 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
9184
9185 2004-04-10 Randolph Chung <tausq@debian.org>
9186
9187 * MAINTAINERS (write after approval): Add myself.
9188
9189 2004-04-07 Randolph Chung <tausq@debian.org>
9190
9191 * hppa-tdep.c (hppa_inner_than): Remove.
9192 (is_pa_2): Remove unused static variable.
9193 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
9194
9195 2004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
9196
9197 * language.h (language_defn): Add new la_post_parser field.
9198 * parser-defs.h (null_post_parser): New declaration (default for
9199 la_post_parser).
9200
9201 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
9202 insert call to that function.
9203 (parse_exp_in_context): New function, including code formerly in
9204 parse_exp_1. Calls language-dependent post-parser after
9205 prefixification.
9206 (parse_expression_in_context): New exported function.
9207 (null_post_parser): New definition.
9208 * expression.h (parse_expression_in_context): Add declaration.
9209
9210 * p-lang.c (pascal_language_defn): Add trivial post-parser.
9211 * c-lang.c (c_language_defn): Ditto.
9212 (cplus_language_defn): Ditto.
9213 (asm_language_defn): Ditto.
9214 (minimal_language_defn): Ditto.
9215 * f-lang.c (f_language_defn): Ditto.
9216 * jv-lang.c (java_language_defn): Ditto.
9217 * language.c (unknown_language_defn): Ditto.
9218 (auto_language_defn): Ditto.
9219 (local_language_defn): Ditto.
9220 * m2-lang.c (m2_language_defn): Ditto.
9221 * scm-lang.c (scm_language_defn): Ditto.
9222 * obj-lang.c (objc_language_defn): Ditto.
9223
9224 2004-04-10 Mark Kettenis <kettenis@gnu.org>
9225
9226 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
9227 (amd64nbsd_mcontext_addr): New function.
9228 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
9229 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
9230 with amd64nbsd_r_reg_offset, instead of building it on the fly.
9231
9232 * corelow.c (core_xfer_partial): Fix coding standards violation.
9233 Add support for TARGET_OBJECT_WCOOKIE.
9234
9235 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
9236 deprecated_pc_in_sigtramp.
9237 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
9238 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
9239 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
9240 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
9241 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
9242 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
9243 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
9244
9245 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
9246 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
9247 Fix typo.
9248
9249 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
9250 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
9251 (amd64_collect_fxsave): Likewise.
9252
9253 * i386-sol2-tdep.c: Include "gdb_string.h".
9254 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
9255 name.
9256 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
9257
9258 2004-04-10 Mark Kettenis <kettenis@gnu.org>
9259
9260 * i386-sol2-tdep.c: Include "solib-svr4.h".
9261 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9262 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
9263 * config/i386/tm-i386sol2.h: Include :solib.h".
9264 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
9265 solib-svr4.o and solib-legacy.o.
9266 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
9267 solib-svr4.o.
9268
9269 2004-04-09 Mark Kettenis <kettenis@gnu.org>
9270
9271 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
9272 whether a register is supplied by PTRACE_GETFPREGS.
9273 (store_inferior_registers): Likewise.
9274 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
9275 whether a register is supplied by PT_GETFPREGS.
9276 (store_inferior_registers): Likewise.
9277
9278 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
9279 * config/i386/linux64.mt (TDEPFILES): Likewise.
9280
9281 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
9282
9283 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
9284 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
9285 the program counter is in the range specified by `struct
9286 gdbarch_tdep'.
9287 * amd64-linux-tdep.c: Include "symtab.h".
9288 (amd64_linux_pc_in_sigtramp): Remove function.
9289 (amd64_linux_sigtramp_p): New function.
9290 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
9291 deprecated_pc_in_sigtramp.
9292 * amd64nbsd-tdep.c: Include "symtab.h".
9293 (amd64nbsd_sigtramp_p): New function.
9294 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
9295 deprecated_pc_in_sigtramp.
9296 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
9297 few comments.
9298 (amd64obsd_pc_in_sigtramp): Remove function.
9299 (amd64obsd_sigtramp_p): New function.
9300 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
9301 deprecated_pc_in_sigtramp.
9302 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
9303 (i386bsd_pc_ins_sigtramp): Remove prototype.
9304 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
9305 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
9306 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
9307 the program counter is in the range specified by `struct
9308 gdbarch_tdep'.
9309 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
9310 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
9311 (i386_go32_pc_in_sigtramp): Remove function.
9312 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
9313 Initialize TDEP->sigtramp_p.
9314 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
9315 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
9316 deprecated_pc_in_sigtramp.
9317 * i386-linux-tdep.c: Adjust comments.
9318 (i386_linux_pc_in_sigtramp): Remove function.
9319 (i386_linux_sigtramp_p): New function.
9320 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
9321 deprecated_pc_in_sigtramp.
9322 * i386-nto-tdep.c: Update copyright year.
9323 (i386nto_pc_in_sigtramp): Remove function.
9324 (i386nto_sigtramp_p): New function.
9325 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
9326 SP_REGNUM.
9327 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
9328 deprecated_pc_in_sigtramp.
9329 * i386-sol2-tdep.c: Update copyright year.
9330 (i386_sol2_pc_in_sigtramp): Remove function.
9331 (i386_sol2_sigtramp_p): New function.
9332 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
9333 deprecated_pc_in_sigtramp.
9334 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
9335 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
9336 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9337 deprecated_sigtramp_start and deprecated_sigtramp_end.
9338 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
9339 (i386nbsd_pc_in_sigtramp): Remove function.
9340 (i386nbsd_sigtramp_p): New function.
9341 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9342 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
9343 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
9344 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
9345 (i386obsd_pc_in_sigtramp): Remove function.
9346 (i386obsd_sigtramp_p): New function.
9347 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
9348 functions.
9349 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9350 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
9351 TDEP->sigtramp_p.
9352 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
9353 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
9354 dependencies.
9355
9356 * config/i386/i386aout.mt: Remove file.
9357
9358 * configure.tgt: Remove i[34567]86-*-go32*,
9359 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
9360 and i[34567]86-*-isc*. Set gdb_target to i386 for
9361 i[34567]86-*-netware* and i[34567]86-*-*.
9362 * config/i386/i386.mt: New file.
9363 * config/i386/embed.mt: Remove file.
9364 * config/i386/go32.mt: Remove file.
9365 * config/i386/i386nw.mt: Remove file.
9366 * config/i386/i386v.mt: Remove file.
9367 * config/i386/tm-go32.h: Remove file.
9368
9369 * tui/tui-hooks.c: Include "readline/readline.h" after
9370 "gdb_curses.h" instead of before.
9371 * tui/tui-io.c: Likewise.
9372
9373 * tui/tui.c: Fix typo in comment.
9374
9375 * sparc64-tdep.c (sparc_address_from_register): Remove function.
9376
9377 2004-04-08 Andrew Cagney <cagney@redhat.com>
9378
9379 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
9380 (deprecated_exception_support_initialized): Declare.
9381 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
9382 (initialize_hp_cxx_exception_support)
9383 (child_enable_exception_callback): Update.
9384 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
9385 (deprecated_exception_support_initialized): Rename
9386 deprecated_exception_catchpoints_are_fragile and
9387 deprecated_exception_support_initialized.
9388 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
9389
9390 * symtab.c (deprecated_hp_som_som_object_present): Rename
9391 hp_som_som_object_present.
9392 * symtab.h (deprecated_hp_som_som_object_present): Declare.
9393 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
9394 Update. Delete extern declaration.
9395 * valops.c (hp_som_som_object_present): Ditto.
9396 * parse.c (deprecated_hp_som_som_object_present)
9397 (parse_nested_classes_for_hpacc): Ditto.
9398 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
9399 * hppa-hpux-tdep.c (hp_som_som_object_present)
9400 (initialize_hp_cxx_exception_support): Ditto.
9401 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
9402 * cp-valprint.c (hp_som_som_object_present)
9403 (cp_print_class_method): Ditto.
9404 * c-typeprint.c (hp_som_som_object_present):
9405 (c_type_print_base): Ditto.
9406 * c-exp.y (hp_som_som_object_present): Ditto.
9407
9408 2004-04-08 Andrew Cagney <cagney@redhat.com>
9409
9410 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
9411 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
9412 (frame_unwind_find_by_frame): Re-implement the unwind code so
9413 that it can both prepend and append sniffers. Replace
9414 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
9415 * tramp-frame.c (tramp_frame_append): Use
9416 frame_unwind_prepend_unwinder.
9417 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
9418 frame_unwind_register_unwinder.
9419 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
9420 tramp_frame_append.
9421 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
9422 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
9423 (mips_linux_init_abi): Update.
9424
9425 2004-04-08 Kevin Buettner <kevinb@redhat.com>
9426
9427 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
9428 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
9429 file support.
9430
9431 2004-04-07 Kevin Buettner <kevinb@redhat.com>
9432
9433 * ia64-tdep.c (elf.h): Don't include.
9434 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
9435
9436 2004-04-07 Jason Molenda (jmolenda@apple.com)
9437
9438 * frame.h: Typeo corrections in comments.
9439
9440 2004-04-07 Jim Blandy <jimb@redhat.com>
9441
9442 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
9443 %esp and %ebp
9444
9445 2004-04-07 Mark Kettenis <kettenis@gnu.org>
9446
9447 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
9448 * config/sparc/linux64.mt (TDEPFILES): Likewise.
9449 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
9450 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
9451 and solib-legacy.o.
9452 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
9453 solib-svr4.o.
9454 * config/sparc/tm-sol2.h: Update copyright year. Include
9455 "solib.h".
9456
9457 * sparc-sol2-tdep.c: Update copyright year. Include
9458 "solib-svr4.h".
9459 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9460 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
9461 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9462 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
9463 dependencies.
9464
9465 2004-04-06 Andrew Cagney <cagney@redhat.com>
9466
9467 * infttrace.c: Include "infttrace.h".
9468 * infttrace.h: Include "target.h".
9469 * Makefile.in (infttrace_h): Update.
9470 (infttrace.o): Update.
9471
9472 2004-04-06 Andrew Cagney <cagney@redhat.com>
9473
9474 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
9475 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
9476 move extern declarations from here ...
9477 * infttrace.h: ... to here.
9478 * Makefile.in (hppah-nat.o): Update dependencies.
9479
9480 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
9481 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
9482 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
9483 (hppa_breakpoint_from_pc): Delete.
9484
9485 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
9486
9487 2004-04-05 Andrew Cagney <cagney@redhat.com>
9488
9489 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
9490 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
9491 <sys/file.h>.
9492
9493 2004-04-06 Randolph Chung <tausq@debian.org>
9494
9495 Committed by Andrew Cagney (mechanical change).
9496 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
9497 exception_catchpoints_are_fragile, find_stub_with_shl_get,
9498 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
9499 child_enable_exception_callback, current_ex_event,
9500 null_symtab_and_line, child_get_current_exception_event,
9501 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
9502 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
9503 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
9504 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
9505 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
9506 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
9507 Move hpux-specific definitions ...
9508 * hppa-hpux-tdep.c: ... to here.
9509
9510 2004-04-05 Andrew Cagney <cagney@redhat.com>
9511
9512 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
9513 skip_prologue_using_sal.
9514
9515 2004-04-05 Andrew Cagney <cagney@redhat.com>
9516
9517 * config/i386/tm-i386.h: Delete file.
9518 * config/i386/tm-vxworks.h: Update copyright, do not include
9519 "tm-i386.h".
9520 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
9521 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
9522 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
9523 * config/i386/ncr3000.mt (TM_FILE): Delete.
9524 * config/i386/interix.mt (TM_FILE): Delete.
9525 * config/i386/i386v.mt (TM_FILE): Delete.
9526 * config/i386/i386nw.mt (TM_FILE): Delete.
9527 * config/i386/i386gnu.mt (TM_FILE): Delete.
9528 * config/i386/i386aout.mt (TM_FILE): Delete.
9529 * config/i386/embed.mt (TM_FILE): Delete.
9530
9531 2004-04-05 Kevin Buettner <kevinb@redhat.com>
9532
9533 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
9534 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
9535 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
9536 (accg7_regnum): New constants.
9537 (last_spr_regnum, last_pseudo_regnum): Update.
9538 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
9539 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
9540 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
9541 for accg registers.
9542 (frv_register_sim_regno): Update spr_map[].
9543
9544 2004-04-04 Andrew Cagney <cagney@redhat.com>
9545
9546 * config/mips/xm-riscos.h: Delete.
9547 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
9548 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
9549 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
9550 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
9551 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
9552 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
9553 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
9554 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
9555 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
9556 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
9557 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
9558 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
9559 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
9560 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
9561 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
9562 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
9563 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
9564 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
9565 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
9566 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
9567 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
9568 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
9569 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
9570 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
9571 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
9572 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
9573
9574 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
9575 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
9576 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
9577 * configure.host: Remove m680[01]0-sun-sunos3*,
9578 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
9579 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
9580 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
9581 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
9582 mips-*-riscos*.
9583 * NEWS: Mention removed systems.
9584
9585 2004-04-04 Andrew Cagney <cagney@redhat.com>
9586
9587 GDB 6.1 release created from 6.1 branch.
9588
9589 2004-04-04 Andrew Cagney <cagney@redhat.com>
9590
9591 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
9592 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
9593 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
9594
9595 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
9596 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
9597 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
9598
9599 2004-04-03 Jim Blandy <jimb@redhat.com>
9600
9601 * MAINTAINERS: Chris Faylor has changed employers; add him to
9602 "paper trail" section, and update his E-mail address.
9603
9604 2004-04-03 Andrew Cagney <cagney@redhat.com>
9605
9606 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
9607 generic dummy frames.
9608 * dummy-frame.c: Update copyright.
9609 (dummy_frame_sniffer): Delete check for generic dummy frames.
9610
9611 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
9612 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
9613 (REG_PARM_STACK_SPACE): Delete.
9614 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
9615 Inline reference to REG_PARM_STACK_SPACE.
9616
9617 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
9618 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
9619 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
9620 (FRAME_BASE_BEFORE_SIGTRAMP)
9621 (hppa32_hpux_frame_base_before_sigtramp)
9622 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
9623 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
9624 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
9625 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
9626 (FRAME_BASE_BEFORE_SIGTRAMP)
9627 (hppa64_hpux_frame_base_before_sigtramp)
9628 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
9629
9630 2004-04-03 Andrew Cagney <cagney@redhat.com>
9631
9632 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
9633
9634 2004-04-02 Andrew Cagney <cagney@redhat.com>
9635
9636 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
9637 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
9638 * dummy-frame.h: Delete out-of-date comments.
9639 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
9640 * gdbarch.h, gdbarch.c: Re-generate.
9641
9642 2004-04-02 Joel Brobecker <brobecker@gnat.com>
9643
9644 Committed by Andrew Cagney <cagney@redhat.com>.
9645 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
9646 into account an instruction saving a register if we have already
9647 seen an earlier instruction saving that same register.
9648
9649 2004-04-02 Andrew Cagney <cagney@redhat.com>
9650
9651 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
9652 * gdbarch.h, gdbarch.c: Re-generate.
9653 * frame.c (legacy_get_prev_frame): Delete references to
9654 DEPRECATED_INIT_FRAME_PC_FIRST.
9655
9656 * infrun.c (pc_in_sigtramp): Delete function.
9657 (check_sigtramp2): Inline call to pc_in_sigtramp, use
9658 get_frame_type.
9659
9660 2004-04-02 Andrew Cagney <cagney@redhat.com>
9661
9662 * infrun.c (handle_step_into_function): Delete code conditional on
9663 legacy_frame_p.
9664 (handle_inferior_event, step_over_function): Ditto.
9665
9666 2004-04-02 Andrew Cagney <cagney@redhat.com>
9667
9668 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
9669 "previous frame inner to this frame" test.
9670
9671 2004-04-02 Andrew Cagney <cagney@redhat.com>
9672
9673 * frame.c (safe_frame_unwind_memory): New function.
9674 * frame.h (safe_frame_unwind_memory): Declare. Update description
9675 of /safe_/ methods.
9676 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
9677 "next_frame". Use safe_frame_unwind_memory.
9678 (tramp_frame_sniffer): Update call to tramp_frame_start.
9679
9680 2004-04-01 Daniel Jacobowitz <drow@mvista.com>
9681
9682 * dwarf2read.c (dwarf2_objfile_data_key): New.
9683 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
9684 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
9685 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
9686 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
9687 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
9688 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
9689 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
9690 Remove variables.
9691 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
9692 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
9693 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
9694 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
9695 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
9696 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
9697 Remove macros.
9698 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
9699 data.
9700 (dwarf2_locate_sections, dwarf2_build_psymtabs)
9701 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
9702 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
9703 (read_partial_die, read_full_die, read_indirect_string)
9704 (dwarf_decode_line_header, dwarf_decode_macros)
9705 (dwarf2_symbol_mark_computed): Remove use of removed macros.
9706 Update uses of removed variables.
9707 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
9708 of removed macros.
9709 (_initialize_dwarf2_read): New function.
9710 * symfile.h (dwarf2_has_info): Update prototype.
9711 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
9712 * elfread.c (elf_symfile_read): Likewise.
9713
9714 2004-04-01 Jim Blandy <jimb@redhat.com>
9715
9716 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
9717 function for register numbers on all the rs6000-derived targets.
9718 (rs6000_gdbarch_init): Don't register a separate
9719 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
9720 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
9721 variants.
9722
9723 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
9724 numbering.
9725
9726 2004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
9727
9728 * valarith.c: Update copyright notice.
9729 (value_add): Handle range types.
9730 (value_sub): Ditto.
9731 (value_equal): Ditto.
9732 (value_less): Ditto.
9733 (value_neg): Ditto.
9734 (value_complement): Ditto.
9735 (value_binop): Simplify slightly by using is_integral_type and
9736 eliminiating unnecessary COERCE_ENUMs.
9737
9738 2004-03-31 Andrew Cagney <cagney@redhat.com>
9739
9740 * frame.h (frame_unwind_id): Declare.
9741 * frame.c (frame_unwind_id): New function.
9742 (get_prev_frame_1): New function.
9743 (frame_debug_got_null_frame): New function.
9744 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
9745 code proper to prev_frame, update description.
9746 * infrun.c (step_over_function): Use frame_unwind_id.
9747
9748 2004-04-31 J. Brobecker <brobecker@gnat.com>
9749
9750 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
9751 (hppa64_push_dummy_call): Likewise.
9752
9753 2004-03-30 Jim Blandy <jimb@redhat.com>
9754
9755 From Ulrich Weigand:
9756 * utils.c (query): Do not use a va_list variable multiple times.
9757
9758 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
9759
9760 * Makefile.in (linux_nat_h): Update dependencies.
9761 * configure.in: Check for <gnu/libc-version.h>.
9762 * configure: Regenerate.
9763 * config.in: Regenerate.
9764 * linux-nat.h: Include "target.h". Add waitstatus field to
9765 struct lwp_info.
9766 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
9767 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
9768 to.
9769 (lin_lwp_handle_extended): New function. Handle clone events.
9770 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
9771 thread exit events.
9772 (child_wait): Handle clone events.
9773 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
9774 * linux-nat.c (linux_enable_event_reporting): Turn on
9775 PTRACE_O_TRACECLONE.
9776 (linux_handle_extended_wait): Handle clone events.
9777 * thread-db.c: Include <gnu/libc-version.h>.
9778 (struct private_thread_info): Add dying flag.
9779 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
9780 higher.
9781 (attach_thread): Update comments. Handle dying threads.
9782 (detach_thread): Set the dying flag.
9783 (check_event): Always call attach_thread.
9784
9785 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
9786
9787 * mips-tdep.c (mips_pdr_data): New.
9788 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
9789 (_initialize_mips_tdep): Initialize mips_pdr_data.
9790
9791 2004-03-29 Corinna Vinschen <vinschen@redhat.com>
9792
9793 * minsyms.c (install_minimal_symbols): Move dropping leading
9794 char from linkage name from here...
9795 (prim_record_minimal_symbol_and_info): ...to here. Simplify
9796 test for "__gnu_compiled*" symbols.
9797
9798 2004-03-28 Jim Blandy <jimb@redhat.com>
9799
9800 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
9801 registers to temp register r0 and byte stores as prologue
9802 instructions.
9803
9804 2004-03-28 Andrew Cagney <cagney@redhat.com>
9805
9806 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
9807 arm*-*-*.
9808
9809 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
9810
9811 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
9812 and switch the layout to force a display of register window.
9813
9814 2004-02-26 J. Brobecker <brobecker@gnat.com>
9815
9816 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
9817 of the INTEGER class.
9818
9819 2004-03-26 Jim Blandy <jimb@redhat.com>
9820
9821 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
9822 bytes long on PPC GNU/Linux.
9823
9824 2004-03-26 David Carlton <carlton@kealia.com>
9825
9826 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
9827
9828 2004-03-25 Andrew Cagney <cagney@redhat.com>
9829
9830 * PROBLEMS: Add general section titles, remove references to
9831 specific releases.
9832
9833 2004-03-25 Daniel Jacobowitz <drow@mvista.com>
9834
9835 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
9836 INT_REGISTER_SIZE.
9837 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
9838 FP_REGISTER_VIRTUAL_SIZE.
9839 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
9840 of DEPRECATED_REGISTER_RAW_SIZE.
9841 (arm_register_type): Add gdbarch argument.
9842 (arm_register_raw_size, arm_register_virtual_size): Delete.
9843 (arm_register_byte, arm_extract_return_value)
9844 (arm_store_return_value, arm_get_longjmp_target): Update references
9845 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
9846 (arm_gdbarch_init): Likewise. Don't set
9847 deprecated_register_raw_size, deprecated_register_virtual_size,
9848 deprecated_max_register_raw_size,
9849 deprecated_max_register_virtual_size, or
9850 deprecated_max_register_virtual_type. Do set register_type.
9851 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
9852 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
9853 (FP_REGISTER_VIRTUAL_SIZE): Delete.
9854 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
9855 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
9856 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
9857 INT_REGISTER_SIZE.
9858 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
9859 (remote_rdp_store_register): Likewise.
9860
9861 2004-03-24 Daniel Jacobowitz <drow@mvista.com>
9862
9863 * Makefile.in (mips-linux-tdep.o): Update dependencies.
9864 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
9865 to after osabi initialization.
9866 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
9867 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
9868 functions.
9869 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
9870 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
9871 variables.
9872 (mips_linux_init_abi): Append signal trampoline unwinders.
9873
9874 2004-03-24 Andrew Cagney <cagney@redhat.com>
9875
9876 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
9877 * tramp-frame.c: Include "gdb_assert.h".
9878 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
9879 correct sizeof.
9880 (tramp_frame_append): Validate the tramp frame's instructions.
9881 * Makefile.in (tramp-frame.o): Update dependencies.
9882
9883 2004-03-23 Andrew Cagney <cagney@redhat.com>
9884
9885 * trad-frame.h (trad_frame_set_reg_addr): Declare.
9886
9887 2004-03-23 Andrew Cagney <cagney@redhat.com>
9888
9889 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
9890 Nasser as past testsuite/lib/ (and other) maintainers.
9891
9892 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
9893
9894 * infcmd.c (attach_command): Reread symbols if we already have
9895 an exec file.
9896
9897 2004-03-23 Andrew Cagney <cagney@redhat.com>
9898
9899 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
9900
9901 2004-03-23 Andrew Cagney <cagney@redhat.com>
9902
9903 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
9904 * gdbarch.h, gdbarch.c: Re-generate.
9905 * i386obsd-tdep.c (i386obsd_init_abi): Update.
9906 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
9907 * i386bsd-tdep.c (i386bsd_init_abi): Update.
9908 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
9909 (DEPRECATED_SIGTRAMP_START): Update.
9910 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
9911 (DEPRECATED_SIGTRAMP_START): Update.
9912 * blockframe.c (find_pc_sect_partial_function): Update.
9913 * arch-utils.c (legacy_pc_in_sigtramp): Update.
9914
9915 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
9916
9917 * remote.c (remote_open_1): Reopen the exec file and reread symbols
9918 if necessary.
9919
9920 2004-03-23 Andrew Cagney <cagney@redhat.com>
9921
9922 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
9923 predicate, deprecate.
9924 * gdbarch.h, gdbarch.c: Re-generate.
9925 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
9926 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
9927 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
9928 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
9929 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
9930 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
9931 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
9932 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
9933 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
9934 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
9935 * blockframe.c (find_pc_partial_function): Update.
9936 * breakpoint.c (bpstat_what): Update.
9937 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
9938 * frv-linux-tdep.c (frv_linux_init_abi): Update.
9939 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
9940 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
9941 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9942 * i386-linux-tdep.c (i386_linux_init_abi): Update.
9943 * i386-nto-tdep.c (i386nto_init_abi): Update.
9944 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
9945 * i386-tdep.c (i386_sigtramp_frame_sniffer)
9946 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
9947 * i386bsd-tdep.c (i386bsd_init_abi): Update.
9948 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
9949 * i386obsd-tdep.c (i386obsd_init_abi): Update.
9950 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
9951 * infrun.c (pc_in_sigtramp): Update.
9952 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
9953 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
9954 * mips-tdep.c (mips_gdbarch_init): Update.
9955 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
9956 * ppc-linux-tdep.c: Update comment.
9957 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
9958 * shnbsd-tdep.c (shnbsd_init_abi): Update.
9959 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
9960 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
9961 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
9962 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
9963 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
9964 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
9965 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
9966 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
9967
9968 2004-03-23 Andrew Cagney <cagney@redhat.com>
9969
9970 * tramp-frame.h, tramp-frame.h: New files.
9971 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
9972 Update rules to include "tramp-frame.h" and "tramp-frame.c".
9973
9974 * Makefile.in: Update all dependencies.
9975
9976 2004-03-23 Andrew Cagney <cagney@redhat.com>
9977
9978 * Makefile.in (trad_frame_h): Add $(frame_h).
9979 * trad-frame.h: Update copyright. Include "frame.h".
9980 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
9981 (trad_frame_set_id, trad_frame_get_id): Declare.
9982 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
9983 * trad-frame.c: Update copyright.
9984 (struct trad_frame_cache): Define.
9985 (trad_frame_cache_zalloc): New function.
9986 (trad_frame_set_id, trad_frame_get_id): New functions.
9987 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
9988
9989 2004-03-22 Andrew Cagney <cagney@redhat.com>
9990
9991 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
9992 s390_pltstub_unwind_cache.
9993 (s390_stub_frame_unwind_cache): Rename
9994 s390_pltstub_frame_unwind_cache.
9995 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
9996 (s390_stub_frame_prev_register): Rename
9997 s390_pltstub_frame_prev_register.
9998 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
9999 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
10000
10001 From Ulrich Weigand:
10002 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
10003 pointer calls like PLT calls.
10004
10005 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
10006
10007 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
10008 PC rather than the partial function start address. Use the start
10009 address to sanity check the found PDR.
10010
10011 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
10012
10013 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
10014 linux_handle_extended_wait.
10015
10016 2004-03-22 Andrew Cagney <cagney@redhat.com>
10017
10018 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
10019 function.
10020
10021 * frame.h (generic_pop_current_frame): Delete declaration.
10022 (deprecate_pop_dummy_frame): Deprecate
10023 generic_pop_dummy_frame.
10024 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
10025 (generic_pop_current_frame): Delete function.
10026 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
10027 generic_pop_current_frame.
10028 * v850-tdep.c (v850_pop_frame): Update.
10029 * mcore-tdep.c (mcore_pop_frame): Update.
10030 * sh64-tdep.c (sh64_pop_frame): Update.
10031 * h8300-tdep.c (h8300_pop_frame): Update.
10032
10033 2004-03-22 Andrew Cagney <cagney@redhat.com>
10034
10035 * frame.h (deprecated_pc_in_call_dummy): Rename
10036 generic_pc_in_call_dummy.
10037 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
10038 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
10039 generic_pc_in_call_dummy.
10040 (pc_in_dummy_frame): Make static.
10041 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
10042 * gdbarch.h, gdbarch.c: Re-generate.
10043 * dummy-frame.c (dummy_frame_sniffer): Simplify.
10044 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
10045 (legacy_get_prev_frame): Ditto.
10046 * inferior.h: Delete reference to generic_pc_in_call_dummy in
10047 comment.
10048
10049 2004-03-21 Andrew Cagney <cagney@redhat.com>
10050
10051 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
10052 declaration and out-of-date comment.
10053 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
10054 Delete function.
10055 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
10056 deprecated_pc_in_call_dummy.
10057
10058 * infrun.c (handle_inferior_event): For non legacy frames, use the
10059 frame ID and frame type to identify a signal trampoline. Update
10060 comments.
10061
10062 2004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
10063
10064 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
10065 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
10066
10067 2004-03-21 Andrew Cagney <cagney@redhat.com>
10068
10069 * frame-unwind.h: Update copyright.
10070 (struct frame_data): Add opaque declaration.
10071 (frame_sniffer_ftype): Declare.
10072 (struct frame_unwind): Add "unwind_data" and "sniffer".
10073 (frame_unwind_register_unwinder): Declare.
10074 (frame_unwind_find_by_frame): Add parameter "this_cache".
10075 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
10076 (legacy_get_prev_frame, legacy_get_prev_frame)
10077 (get_frame_type): Pass the prologue_cache to
10078 frame_unwind_find_by_frame.
10079 * frame-unwind.c (struct frame_unwind_table_entry): Add field
10080 "unwinder".
10081 (frame_unwind_register_unwinder): New function.
10082 (frame_unwind_find_by_frame): Handle an unwind sniffer.
10083
10084 2004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
10085
10086 * bcache.c (print_percentage): Use floating point to avoid
10087 incorrect results when portion*100 overflows.
10088
10089 2004-03-19 Kevin Buettner <kevinb@redhat.com>
10090
10091 * ppc_tdep.h (ppc_linux_frame_saved_pc)
10092 (ppc_linux_init_extra_frame_info)
10093 (ppc_linux_frameless_function_invocation)
10094 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
10095 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
10096 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
10097 (rs6000_frame_chain): Delete declarations.
10098 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
10099 (ppc_linux_init_extra_frame_info)
10100 (ppc_linux_frameless_function_invocation)
10101 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
10102 (ppc_linux_init_abi): Remove registration of above deleted functions.
10103 * rs6000-tdep.c (rs6000_init_extra_frame_info)
10104 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
10105 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
10106 (rs6000_pop_frame, rs6000_frameless_function_invocation)
10107 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
10108 (rs6000_gdbarch_init): Remove registration of above deleted functions.
10109 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
10110 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
10111 frame management for all OSABIs.
10112
10113 2004-03-19 Andrew Cagney <cagney@redhat.com>
10114
10115 Committed by Kevin Buettner <kevinb@redhat.com>.
10116
10117 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
10118 Update copyright.
10119 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
10120 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
10121 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
10122 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
10123 unwinders. #ifdef legacy frame code.
10124 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
10125 "frame-base.h".
10126 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
10127 (struct rs6000_frame_cache, rs6000_frame_cache)
10128 (rs6000_frame_this_id, rs6000_frame_prev_register)
10129 (rs6000_frame_sniffer, rs6000_frame_unwind)
10130 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
10131 (rs6000_frame_base): Implement a traditional frame unwinder.
10132 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
10133 frame unwinder.
10134
10135 2004-03-19 Kevin Buettner <kevinb@redhat.com>
10136
10137 * breakpoint.c (adjust_breakpoint_address): Don't adjust
10138 breakpoint address for watchpoints or the catch eventpoints.
10139 Add new paramter ``bptype''. Adjust all callers.
10140
10141 2004-03-19 Andrew Cagney <cagney@redhat.com>
10142
10143 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
10144
10145 * PROBLEMS: Delete note that ARM does not use frame code, problem
10146 fixed.
10147
10148 2004-03-18 Andrew Cagney <cagney@redhat.com>
10149
10150 * stack.c (return_command): Delete code wrapped in #ifdef
10151 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
10152
10153 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
10154
10155 2004-03-18 Andrew Cagney <cagney@redhat.com>
10156
10157 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
10158 DEPRECATED_IN_SIGTRAMP.
10159 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10160 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
10161 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10162 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10163 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10164 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10165 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10166 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10167 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
10168 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
10169
10170 2004-03-18 Andrew Cagney <cagney@redhat.com>
10171
10172 * frame-base.c: Update copyright. Include "gdb_obstack.h".
10173 (struct frame_base_table_entry): Define.
10174 (struct frame_base_table): Re-implement as a linked list.
10175 (frame_base_init): Re-implement.
10176 (frame_base_table): Delete function.
10177 (append_predicate): Delete function.
10178 (frame_base_append_sniffer): Update.
10179 (frame_base_set_default): Update.
10180 (frame_base_find_by_frame): Update.
10181 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
10182 * Makefile.in (frame-base.o): Update dependencies.
10183
10184 2004-03-17 Andrew Cagney <cagney@redhat.com>
10185
10186 * frame.c (legacy_get_prev_frame): Pass correct frame to
10187 frame_unwind_find_by_frame.
10188
10189 2004-03-17 David Carlton <carlton@kealia.com>
10190
10191 * NEWS: Mention C++ nested types and namespaces
10192
10193 2004-03-16 Michael Chastain <mec.gnu@mindspring.com>
10194
10195 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
10196 and "Regressions since gdb 5.3.". Add known regressions since
10197 gdb 6.0.
10198
10199 2004-03-16 David Carlton <carlton@kealia.com>
10200
10201 * dwarf2read.c (process_structure_scope): Process children even
10202 when we're a declaration.
10203
10204 2004-03-16 Andrew Cagney <cagney@redhat.com>
10205
10206 * symtab.h (find_pc_sect_partial_function): Delete declaration.
10207 * blockframe.c (find_pc_partial_function)
10208 (find_pc_sect_partial_function): Merge into a single
10209 find_pc_partial_function.
10210
10211 2004-03-16 Mark Kettenis <kettenis@gnu.org>
10212
10213 * i386bsd-nat.c: s/regno/regnum/g.
10214 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
10215 FP0_REGNUM.
10216 (store_inferior_registers): Likewise.
10217
10218 2004-03-16 Mark Kettenis <kettenis@gnu.org>
10219
10220 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
10221 of i387_fill_fsave.
10222 (store_inferior_registers): Call i387_collect_fsave and
10223 i387_collect_fxsave instead of i387_fill_fsave and
10224 i387_fill_fxsave.
10225
10226 2004-03-15 Andrew Cagney <cagney@redhat.com>
10227
10228 * Makefile.in (frame-unwind.o): Update dependencies.
10229 * frame-unwind.c: Include "gdb_obstack.h".
10230 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
10231 parameter.
10232 (append_predicate): Delete function.
10233 (struct frame_unwind_table_entry): New structure.
10234 (struct frame_unwind_table): Replace "sniffer" with "head" and
10235 "tail".
10236 (frame_unwind_append_sniffer): Update.
10237 (frame_unwind_find_by_frame): Update.
10238 (_initialize_frame_unwind): Registe frame_unwind_init using
10239 gdbarch_data_register_pre_init.
10240
10241 2004-03-15 Mark Kettenis <kettenis@gnu.org>
10242
10243 * i386bsd-nat.c: Update copyright year.
10244 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
10245 define unconditionally.
10246
10247 2004-03-15 Mark Kettenis <kettenis@gnu.org>
10248
10249 * i387-tdep.h (i387_collect_fsave): New prototype.
10250 * i387-tdep.c (i387_collect_fsave): New function containing most
10251 of the code from i387_fill_fsave.
10252 (i387_fill_fsave): Call i387_collect_fsave.
10253
10254 2004-03-15 Mark Kettenis <kettenis@gnu.org>
10255
10256 * i386-linux-tdep.c: Update copyright year.
10257 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
10258 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
10259 svr4_ilp32_link_map_offsets instead of
10260 i386_linux_svr4_fetch_link_map_offsets.
10261
10262 2004-03-15 David Carlton <carlton@kealia.com>
10263
10264 Fix for PR c++/1553:
10265 * dwarf2read.c (read_structure_type): Determine type name by
10266 calling determine_class_name.
10267 (determine_class_name): New.
10268 (determine_prefix): Look at TYPE_TAG_NAME and call
10269 determine_class_name when appropriate.
10270 (determine_prefix_aux, class_name): Delete.
10271 (read_namespace): Set die->type.
10272
10273 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10274
10275 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
10276 unused macro definition. The definition in target.h (or perhaps
10277 elsewhere) takes precedence.
10278
10279 2004-03-15 Andrew Cagney <cagney@redhat.com>
10280
10281 * ppc-tdep.h: Update copyright.
10282 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
10283 function signatures to match "regsets.h".
10284 * ppc-linux-tdep.c: Include "regset.h".
10285 (ELF_GREGSET_SIZE): Delete.
10286 (right_supply_register): New function.
10287 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
10288 using right_supply_register.
10289 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
10290 functions.
10291 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
10292 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
10293 (_initialize_ppc_linux_tdep): Do not register
10294 ppc_linux_regset_core_fns.
10295 (ppc_linux_regset_from_core_section): Replace
10296 fetch_core_registers.
10297 (ppc_linux_regset_core_fns): Delete.
10298 * ppc-linux-nat.c: (right_fill_reg): New function.
10299 (supply_gregset): Update call to ppc_linux_supply_gregset.
10300 (fill_gregset): Clear the register set, use right_fill_reg.
10301 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
10302 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
10303
10304 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
10305 unsigned.
10306
10307 2004-03-15 Andrew Cagney <cagney@redhat.com>
10308
10309 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
10310 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
10311 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
10312 and register_gdbarch_data.
10313 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
10314 (struct gdbarch_data): Replace "init" by "pre_init" and
10315 "post_init".
10316 * gdbarch.h, gdbarch.c: Re-generate.
10317 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
10318 with"obstack", use OBSTACK_ZALLOC.
10319 (dwarf2_frame_ops): Delete.
10320 (dwarf2_frame_set_init_reg): Use gdbarch_data.
10321 (dwarf2_frame_init_reg): Use gdbarch_data.
10322 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
10323 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
10324 (_initialize_svr4_solib): Update.
10325 * user-regs.c (_initialize_user_regs): Update.
10326 * reggroups.c (_initialize_reggroup): Update.
10327 * regcache.c (_initialize_regcache): Update.
10328 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
10329 * libunwind-frame.c (_initialize_libunwind_frame): Update.
10330 * gnu-v3-abi.c (init_gnuv3_ops): Update.
10331 * frame-unwind.c (_initialize_frame_unwind): Update.
10332 * frame-base.c (_initialize_frame_base): Update.
10333 * user-regs.c (user_reg_add): Update.
10334 * reggroups.c (reggroup_add): Update.
10335 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
10336 * libunwind-frame.c (libunwind_frame_set_descr): Update.
10337 * frame-unwind.c (frame_unwind_append_sniffer): Update.
10338 * frame-base.c (frame_base_table): Update.
10339 * remote.c (_initialize_remote): Update.
10340 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
10341
10342 2004-03-15 Andrew Cagney <cagney@redhat.com>
10343
10344 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
10345
10346 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10347
10348 * Makefile.in (frv-linux-tdep.o): Add dependencies.
10349 * frv-linux-tdep.c: New file.
10350 * frv-tdep.c (struct gdbarch_tdep): Add new field
10351 ``sigcontext_reg_addr''.
10352 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
10353 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
10354 (frv_sigramp_frame_sniffer): New functions.
10355 (frv_sigtramp_frame_unwind): New static global.
10356 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
10357 sniffers.
10358 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
10359 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
10360
10361 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10362
10363 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
10364 but not via a call to error(), when unable to read memory.
10365
10366 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10367
10368 * frv-tdep.c (frv_call_dummy_words): Delete.
10369 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
10370
10371 2004-03-15 Andrew Cagney <cagney@redhat.com>
10372
10373 * infrun.c (handle_step_into_function, step_over_function): Only
10374 update and use STEP_FRAME_ID when the system is using legacy
10375 frames. Update comments.
10376
10377 2004-03-14 Mark Kettenis <kettenis@gnu.org>
10378
10379 * amd64-linux-tdep.h: Remove file.
10380 * amd64-linux-tdep.c: Don't include "inferior.h" and
10381 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
10382 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
10383 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
10384 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
10385 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
10386 macros.
10387 (user_to_gdb_regmap): Remove variable.
10388 (amd64_linux_gregset_reg_offset): New variable.
10389 (amd64_core_fns): Remove variable.
10390 (fetch_core_registers): Remove function.
10391 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
10392 functions.
10393 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
10394 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
10395 * Makefile.in (amd64_linux_tdep_h): Remove.
10396 (amd64-linux-nat.o): Update dependencies.
10397 (amd64-linux-tdep.o): Update dependencies.
10398
10399 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
10400 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
10401 functions.
10402 (fetch_inferior_registers, store_inferior_registers): Rewrite.
10403
10404 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
10405 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
10406
10407 2004-03-14 Daniel Jacobowitz <drow@mvista.com>
10408
10409 * dwarf2read.c (read_structure_type): Rename from
10410 read_structure_scope. Don't create a symbol or call process_die.
10411 Return immediately if die->type is set. Call read_type_die before
10412 dwarf2_add_member_fn.
10413 (process_structure_scope): New function.
10414 (read_enumeration_type, process_enumeration_scope): New functions,
10415 broken out from read_enumeration. Don't create the enumeration
10416 type if it has already been created.
10417 (read_enumeration): Removed.
10418 (process_die): Call read_structure_type, process_structure_scope,
10419 read_enumeration_type, and process_enumeration_scope. Just call
10420 new_symbol for base and subrange types. Add a comment about other
10421 type dies.
10422 (read_type_die): Call read_enumeration_type.
10423 (add_partial_structure, new_symbol): Update comments.
10424
10425 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
10426
10427 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
10428
10429 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
10430
10431 * tui/tui-win.h (tui_get_cmd_list): Declare.
10432 * tui/tui-win.c (tui_command): New function.
10433 (tui_get_cmd_list): New function.
10434 (_initialize_tui_win): Moved initialization of tui command in
10435 tui_get_cmd_list.
10436
10437 * tui/tui-data.c (init_content_element): Setup new data members.
10438 (init_win_info): Likewise.
10439 (free_content_elements): Free it.
10440 * tui/tui-data.h (struct tui_data_element): Store the register
10441 content to print.
10442 (struct tui_data_info): Keep the current register group.
10443
10444 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
10445
10446 * tui/tui-regs.h (tui_show_registers): Update prototype.
10447 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
10448 (tui_resize_all): No need to calculate anything for register window.
10449 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
10450 (tui_set_register_element, tui_set_general_regs_content): Remove.
10451 (tui_set_special_regs_content): Remove.
10452 (tui_set_general_and_special_regs_content): Remove.
10453 (tui_set_float_regs_content): Remove.
10454 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
10455 (tui_set_regs_content): Remove.
10456 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
10457 (tui_v_show_registers_command_support): Remove.
10458 (tui_show_registers): Use a reggroup to specify the registers to show.
10459 (tui_show_register_group): New function.
10460 (tui_display_registers_from): Compute the layout of register window
10461 and refresh with new API; be sure to delete old register windows.
10462 (tui_check_register_values): Update to use tui_get_register and
10463 tui_display_data.
10464 (tui_display_register): Just refresh the register window part.
10465 (tui_register_format): Format registers and save in tui_data_element.
10466 (tui_get_register): New to combine tui_reg_value_has_changed and
10467 tui_get_register_raw_value; fix to use the new gdb API.
10468 (tui_show_float_command): Renamed tui_reg_float_command.
10469 (tui_show_general_command): Renamed tui_reg_general_command.
10470 (tui_show_special_command): Renamed tui_reg_system_command.
10471 (_initialize_tui_regs): Remove unused commands.
10472
10473 2004-03-13 Mark Kettenis <kettenis@gnu.org>
10474
10475 * NEWS (New native configurations): Mention OpenBSD/amd64.
10476
10477 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
10478 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
10479 Remove defines.
10480 * config/i386/nm-fbsd64.h: Likewise.
10481 * config/i386/nm-obsd.h: Likewise.
10482 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
10483 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
10484
10485 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10486
10487 * frv-tdep.c (set_variant_scratch_registers): New function.
10488 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
10489 New constants.
10490
10491 From Richard Sandiford <rsandifo@redhat.com>:
10492 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
10493
10494 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10495
10496 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
10497 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
10498 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
10499 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
10500 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
10501 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
10502 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
10503 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
10504 definitions from frv-tdep.c to frv-tdep.h.
10505
10506 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10507
10508 Add shared library support for FR-V FDPIC ABI:
10509 * Makefile.in (solib-frv.o): Add dependencies.
10510 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
10511 New functions.
10512 (frv_push_dummy_call): Add support for FDPIC ABI.
10513 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
10514 for FDPIC ABI.
10515 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
10516 (frv_fdpic_find_canonical_descriptor): Declare.
10517 * solib-frv.c: New file.
10518 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
10519 * config/frv/tm-frv.h (solib.h): Include.
10520
10521 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10522
10523 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
10524 (frv-tdep.o): Update dependencies.
10525 * frv-tdep.h: New file.
10526 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
10527 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
10528 constants.
10529 (struct gdbarch_tdep): Add new member ``frv_abi''.
10530 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
10531 functions.
10532 (new_variant): Set ``frv_abi'' field.
10533 (gdb_arch_init): Detect FDPIC executables.
10534
10535 2004-03-12 Mark Kettenis <kettenis@gnu.org>
10536
10537 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
10538 wrapper.
10539
10540 2004-03-11 Andrew Cagney <cagney@redhat.com>
10541
10542 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
10543
10544 2004-03-11 Kevin Buettner <kevinb@redhat.com>
10545
10546 * solist.h (master_so_list): New function.
10547 * solib.c (master_so_list): Likewise.
10548 * solib-svr4.c (enable_break): Iterate over so_list entries
10549 obtained from master list instead of entries obtained directly
10550 via svr4_current_sos().
10551
10552 2004-03-10 Ben Elliston <bje@gnu.org>
10553
10554 * MAINTAINERS: Update my mail address.
10555
10556 2004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
10557
10558 * remote-m32r-sdi.c: Support hardware watchpoint.
10559
10560 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10561
10562 * user-regs.c: Update copyright years.
10563 (struct user_regs): Rename to gdb_user_regs.
10564 (append_user_reg, builtin_user_regs, user_regs_init)
10565 (user_reg_add, user_reg_map_name_to_regnum)
10566 (usernum_to_user_reg): Update.
10567
10568 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10569
10570 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
10571 (skip_children): New functions.
10572 (locate_pdi_sibling): Call skip_children.
10573
10574 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10575
10576 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
10577 * gdbtypes.c (check_typedef): Update comments.
10578
10579 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10580
10581 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
10582 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
10583 pointer. Update comment about comp_unit_head.
10584 (struct abbrev_info): Shorten two int flags.
10585 (dwarf_alloc_abbrev): Take a CU argument.
10586 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
10587 each time through the loop. Update cleanup argument.
10588 (psymtab_to_symtab_1): Update cleanup call.
10589 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
10590 abbrev_obstack.
10591 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
10592 Just call obstack_free and clear the pointer.
10593
10594 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10595
10596 * infrun.c (handle_inferior_event): Remove short-circuit code for
10597 events in a different thread.
10598
10599 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10600
10601 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
10602 print the whole transfer.
10603 (initialize_targets): Update description of "set debug target".
10604
10605 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10606
10607 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
10608
10609 2004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
10610
10611 * MAINTAINERS (write after approval): Add myself.
10612
10613 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
10614
10615 * sh-tdep.c (sh_print_registers_info): Use for loop.
10616 Don't skip multiple registers when a float register is encountered.
10617
10618 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
10619
10620 Fix PR tdep/1291.
10621 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
10622 to official SH documentation.
10623
10624 2004-03-07 Andrew Cagney <cagney@redhat.com>
10625
10626 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
10627 unused function.
10628
10629 2004-03-07 Daniel Jacobowitz <drow@mvista.com>
10630
10631 * arm-tdep.c (thumb_get_next_pc): Handle BX.
10632 (arm_get_next_pc): Handle BX and BLX.
10633
10634 2004-03-07 Andrew Cagney <cagney@redhat.com>
10635
10636 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
10637 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
10638 HPPA_SP_REGNUM.
10639 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
10640 (hppa_target_read_fp): Delete.
10641 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
10642 register_virtual_size, max_register_raw_size,
10643 max_register_virtual_size, register_byte, register_size,
10644 target_read_fp, fp_regnum, and register_bytes. Set register_type
10645 instead of register_virtual_type.
10646 (hppa32_register_type, hppa64_register_type): Replace
10647 hppa32_register_virtual_type and hppa64_register_virtual_type.
10648 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
10649 (HPPA_FP_REGNUM): Define.
10650
10651 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
10652
10653 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
10654 (pa_do_registers_info): Delete.
10655 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
10656 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
10657 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
10658
10659 * infcall.c (legacy_push_dummy_code): Delete #ifdef
10660 GDB_TARGET_IS_HPPA code.
10661 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
10662 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
10663 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
10664 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
10665 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
10666 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
10667 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
10668 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
10669 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
10670 (hppa_frameless_function_invocation, hppa64_store_return_value)
10671 (hppa_store_struct_return, hppa64_extract_return_value)
10672 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
10673 (hppa32_call_dummy_length, hppa64_call_dummy_length)
10674 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
10675 (find_proc_framesize, deposit_21, restore_pc_queue)
10676 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
10677 (rp_saved, pc_in_linker_stub): Delete.
10678
10679 Unconditionally enable 64-bit frame and ABI code.
10680 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
10681 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
10682 push_dummy_frame, fix_call_dummy, push_arguments,
10683 call_dummy_location, extract_return_value, use_struct_convention,
10684 store_return_value, store_struct_return, saved_pc_after_call,
10685 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
10686 frame_chain, frame_chain_valid, frameless_function_invocation,
10687 frame_saved_pc, and pop_frame.
10688
10689 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
10690 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
10691 (hppa_gdbarch_init): Do not set PC_REGNUM.
10692
10693 2004-03-06 Mark Kettenis <kettenis@gnu.org>
10694
10695 * config/alpha/tm-fbsd.h: Remove file.
10696 * config/alpha/fbsd.mt: Tweak comment.
10697 (TM_FILE): Set to tm-alpha.h.
10698
10699 2004-03-05 Andrew Cagney <cagney@redhat.com>
10700
10701 * infrun.c (step_over_function): When non-legacy code, and no
10702 step_frame_id, use the unwinder to get the caller's frame ID.
10703
10704 2004-03-05 Mark Kettenis <kettenis@gnu.org>
10705
10706 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
10707 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
10708 bfd_arch_unknown. Adjust comment.
10709
10710 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
10711 * i386obsd-tdep.c: Correct spelling in comment.
10712 * i386nbsd-tdep.c: Correct spelling in comment.
10713 * sparc-tdep.c: Correct spelling in comments.
10714
10715 2004-03-05 David Carlton <carlton@kealia.com>
10716
10717 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
10718 bug.
10719
10720 2004-03-05 Mark Kettenis <kettenis@gnu.org>
10721
10722 * sparc-tdep.c: Fix typo in comment.
10723
10724 2004-03-04 J. Brobecker <brobecker@gnat.com>
10725
10726 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
10727
10728 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
10729
10730 * dwarf2read.c: Add comment describing memory lifetimes.
10731 (struct dwarf2_pinfo): Update comment.
10732 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
10733 (read_enumeration, new_symbol): Don't use obsavestring.
10734
10735 2004-03-04 Mark Kettenis <kettenis@gnu.org>
10736
10737 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
10738 instead of amd64_fill_fxsave.
10739 * amd64bsd-nat.c (store_inferior_registers): Likewise.
10740 * amd64fbsd-nat.c (fill_fpregset): Likewise.
10741
10742 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
10743 Reorganize code a bit.
10744
10745 2004-03-04 Orjan Friberg <orjanf@axis.com>
10746
10747 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
10748 when the frame pointer is pushed. Don't set the frame pointer's
10749 address on the stack unless it's actually located there.
10750 Set the SRP's address on the stack correctly when the PC is still in
10751 the prologue.
10752 (cris_return_value): New function.
10753 (cris_gdbarch_init): Clear deprecated store_return_value,
10754 extract_return_value.
10755
10756 2004-03-02 Jim Blandy <jimb@redhat.com>
10757
10758 * stabsread.c (reg_value_complaint): The maximum register number
10759 is one less than the number of registers.
10760
10761 2004-03-02 Andrew Cagney <cagney@redhat.com>
10762
10763 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
10764 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
10765 trailing comma and redundant assignment of I386_ST0_REGNUM.
10766 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
10767 32-bit segment registers.
10768
10769 2004-03-01 Andrew Cagney <cagney@redhat.com>
10770
10771 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
10772 use frame_relative_level and get_next_frame.
10773
10774 2004-02-29 Andrew Cagney <cagney@redhat.com>
10775
10776 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
10777 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
10778 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
10779 Delete macro.
10780
10781 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
10782
10783 * inflow.c (terminal_inferior): Don't give up the terminal if we
10784 previously couldn't get the inferior's terminal state.
10785
10786 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
10787
10788 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
10789 PC_REGNUM.
10790
10791 2004-02-28 Andrew Cagney <cagney@redhat.com>
10792
10793 * NEWS: Refer to GDB 6.1.
10794 * README: Refer to GDB 6.1.
10795 * PROBLEMS: Refer to GDB 6.1.
10796
10797 2004-02-28 Daniel Jacobowitz <drow@mvista.com>
10798
10799 * thread-db.c (disable_thread_signals): Remove unused function.
10800
10801 2004-02-28 Mark Kettenis <kettenis@gnu.org>
10802
10803 * amd64-nat.c: Include "gdb_string.h".
10804 (amd64_collect_native_gregset): Zero-extend the 32-bit
10805 general-purpose registers and %eip.
10806
10807 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
10808 * amd64-tdep.c (amd64_collect_fxsave): New function.
10809 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
10810
10811 * i387-tdep.h: Update copyright year.
10812 (i387_collect_fxsave): New prototype.
10813 * i387-tdep.c: Update copyright year.
10814 (i387_collect_fxsave): New function containing most of the code
10815 from i387_fill_fxsave.
10816 (i387_fill_fxsave): Call i387_collect_fxsave.
10817
10818 2004-02-28 Andrew Cagney <cagney@redhat.com>
10819
10820 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
10821 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
10822
10823 2004-02-28 Mark Kettenis <kettenis@gnu.org>
10824
10825 * amd64-tdep.c (amd64_frame_cache): Fix comment.
10826
10827 2004-02-28 Andrew Cagney <cagney@redhat.com>
10828
10829 * utils.c: Use "", instead of <>, to include readline.
10830 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
10831 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
10832 * source.c, solib.c, exec.c, event-top.c: Ditto.
10833 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
10834 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
10835 * Makefile.in: Update all dependencies.
10836 (readline_tilde_h, readline_history_h): Define.
10837 (readline_headers): Delete.
10838
10839 2004-02-28 Mark Kettenis <kettenis@gnu.org>
10840
10841 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
10842 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
10843 "config/i386/tm-lx64.h".
10844
10845 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
10846 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
10847 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
10848
10849 2004-02-28 Andrew Cagney <cagney@redhat.com>
10850
10851 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
10852
10853 * breakpoint.c (_initialize_breakpoint): Use
10854 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
10855 Add help to show command.
10856
10857 2004-02-28 Mark Kettenis <kettenis@gnu.org>
10858
10859 * i386-nat.c: Reformat to be closer to coding standards.
10860 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
10861 `retval'. Make variables `align' and `size' local to while-loop.
10862 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
10863 (_initialize_i386_nat): New prototype.
10864
10865 * tui/tui.c: Include <readline/readline.h> instead of
10866 "readline/readline.h". Include it after <term.h> and
10867 "gdb_curses.h".
10868
10869 2004-02-27 Andrew Cagney <cagney@redhat.com>
10870
10871 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
10872 the new frame unwind code.
10873 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
10874 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
10875 PCOQ_HEAD_REGNUM.
10876
10877 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
10878 "return_value" and "push_dummy_call".
10879 (hppa32_use_struct_convention): Delete unused function.
10880 (hppa32_store_return_value): Delete unused function.
10881 (hppa32_extract_return_value): Delete unused function.
10882 (hppa32_stack_align): Delete function.
10883
10884 2004-02-27 Eli Zaretskii <eliz@elta.co.il>
10885
10886 * coffread.c (enter_linenos): Don't let rawptr reference memory
10887 outside linetab[]'s limits.
10888
10889 2004-02-27 Andrew Cagney <cagney@redhat.com>
10890
10891 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
10892 inferior stack space - the stack needs to grow upwards.
10893 (hppa32_frame_align): New function.
10894 (hppa64_frame_align): Replace hppa_frame_align.
10895 (hppa_gdbarch_init): Update.
10896
10897 2004-02-26 Orjan Friberg <orjanf@axis.com>
10898
10899 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
10900 (dwarf2-frame.h): Include.
10901 (enum cris_regnums): New enum CRIS_FP_REGNUM.
10902 Remove static variables related to ABI setting.
10903 (struct gdbarch_tdep): Remove cris_abi member.
10904 (struct frame_extra_info): Remove.
10905 (cris_unwind_cache, stack_item): New structs.
10906 (cris_frame_unwind, cris_frame_base): New variables.
10907 (push_stack_item, pop_stack_item)
10908 (cris_frame_unwind_cache, cris_frame_this_id)
10909 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
10910 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
10911 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
10912 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
10913 (cris_reg_struct_has_addr): New functions.
10914 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
10915 (cris_frame_saved_pc, cris_saved_pc_after_call,
10916 (cris_store_struct_return, cris_frameless_function_invocation)
10917 (cris_pop_frame, cris_skip_prologue_main)
10918 (cris_abi_original_store_return_value)
10919 (cris_abi_v2_store_return_value)
10920 (cris_abi_original_extract_return_value)
10921 (cris_abi_v2_extract_return_value)
10922 (cris_abi_original_reg_struct_has_addr)
10923 (cris_abi_v2_reg_struct_has_addr)
10924 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
10925 (cris_push_return_address, cris_abi_update): Remove.
10926 (_initialize_cris_tdep): Remove ABI command.
10927 (cris_dump_tdep): Ditto.
10928 (cris_gdbarch_init): Remove ABI command.
10929 Set store_return_value, extract_return_value, push_dummy_code,
10930 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
10931 frame_unwind_append_sniffer, frame_base_set_default.
10932 Clear deprecated init_frame_pc, push_arguments, store_return_value,
10933 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
10934 sizeof_call_dummy_words, get_saved_register, push_return_address,
10935 pop_frame, store_struct_return, frame_init_saved_regs,
10936 init_extra_frame_info, frameless_function_invocation, frame_chain,
10937 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
10938 dummy_write_sp.
10939
10940 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
10941
10942 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
10943 * valprint.c (print_hex_chars): Change from static to external.
10944 (print_char_chars): New function.
10945 * printcmd.c (print_scalar_formatted): For integer and enum types
10946 that are longer than LONGEST, perform processing via appropriate
10947 print_*_chars routines.
10948
10949 2004-02-26 Andrew Cagney <cagney@redhat.com>
10950
10951 * Makefile.in: Update dependencies.
10952 Changes from Ulrich Weigand,
10953 * s390-tdep.c: Include "dwarf2-frame.h".
10954 (s390_dwarf2_frame_init_reg): New function.
10955 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
10956 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
10957
10958 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
10959
10960 * breakpoint.c (pending_break_support): New setting variable.
10961 (break_command_1): Account for pending_break_support setting
10962 when creating pending breakpoints.
10963 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
10964 (_initialize_breakpoint): Add "set breakpoint pending" and
10965 "show breakpoint pending" commands.
10966
10967 2004-02-26 Andrew Cagney <cagney@redhat.com>
10968
10969 Fix PR i18n/1570.
10970 * charset.c (backslashable, backslashed, represented): Remove 'e'
10971 from list of escaped characters, not part of ISO-C.
10972
10973 2004-02-25 J. Brobecker <brobecker@gnat.com>
10974
10975 From Peter Schauer <schauer@pdf.de>:
10976 * tui/tui.c: Move system header includes after local includes.
10977 Fixes a build failure on solaris systems.
10978
10979 2004-02-25 J. Brobecker <brobecker@gnat.com>
10980
10981 * configure.in: Refine the previous change.
10982 * configure: Regenerate.
10983
10984 2004-02-25 Mark Kettenis <kettenis@gnu.org>
10985
10986 * amd64-tdep.h: Renamed from x86-64-tdep.h.
10987 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
10988 "amd64-tdep.h" instead of "x86-64-tdep.h".
10989 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
10990 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
10991 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
10992 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
10993 and "x86-64-tdep.c".
10994 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
10995 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
10996 and "x86-64-tdep.c".
10997 * amd64bsd-nat.c: Update copyright year.
10998 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
10999 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
11000 "x86-64-tdep.h".
11001 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
11002 "x86-64-tdep.h".
11003 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
11004 "x86-64-tdep.h".
11005 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
11006 "x86-64-tdep.h".
11007 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
11008 "x86-64-tdep.h".
11009 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
11010 "x86-64-tdep.h".
11011 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
11012 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
11013 * Makefile.in (amd64_linux_tdep_h): Renamed from
11014 x86_64_linux_tdep_h.
11015 (amd64_tdep_h): Renamed from x86_64_tdep_h.
11016 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
11017 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
11018 (amd64obsd-tdep.o): Update dependencies.
11019 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
11020 dependencies.
11021 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
11022 dependencies.
11023 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
11024 amd64-linux-nat.c amd64-linux-tdep.c.
11025 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
11026 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
11027 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
11028 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
11029 amd64-tdep.o and amd64-linux-tdep.o.
11030 (TM_FILE): Set to tm-linux64.h.
11031 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
11032 (NAT_FILE): Set to nm-linux64.h.
11033 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
11034 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11035 amd64-tdep.o.
11036 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11037 amd64-tdep.o.
11038 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11039 amd64-tdep.o.
11040
11041 2004-02-25 Roland McGrath <roland@redhat.com>
11042
11043 * remote.c (remote_protocol_qPart_auxv): New variable.
11044 (init_all_packet_configs): Initialize it.
11045 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
11046 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
11047 (show_remote_cmd): Call it.
11048 (_initialize_remote): Initialize commands.
11049 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
11050 service TARGET_OBJECT_AUXV requests.
11051
11052 2004-02-25 J. Brobecker <brobecker@gnat.com>
11053
11054 * configure.in: Make sure that the wborder function is available.
11055 Otherwise, search for it in the cur_colr library.
11056 * configure: Regenerate.
11057
11058 2004-02-25 Andrew Cagney <cagney@redhat.com>
11059
11060 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
11061
11062 2004-02-25 Mark Kettenis <kettenis@gnu.org>
11063
11064 * config/i386/tm-x86-64linux.h: Tweak comments.
11065
11066 2004-02-25 Richard Sandiford <rsandifo@redhat.com>
11067
11068 * MAINTAINERS: Add self to write-after-approval list.
11069
11070 2004-02-25 Andrew Cagney <cagney@redhat.com>
11071
11072 PR cli/1566. Problem found, and fix suggested by David Allan.
11073 * cli/cli-script.c (execute_control_command): Unconditionally
11074 install a cleanup. Default "ret" to "invalid_control". Use
11075 "break" instead of "return" to escape from the switch.
11076
11077 2004-02-24 J. Brobecker <brobecker@gnat.com>
11078
11079 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
11080 with the lines macro defined in term.h on AiX.
11081 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
11082 a collision with the label_width macro defined in term.h on AiX.
11083
11084 2004-02-23 David Mosberger <davidm@hpl.hp.com>
11085
11086 Committed by Kevin Buettner <kevinb@redhat.com>.
11087
11088 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
11089 * ia64-tdep.c (ia64_write_pc): Make it a global function.
11090 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
11091 instead of ia64_write_pc().
11092 * ia64-linux-tdep.c (regcache.h): Include.
11093 (ia64_linux_write_pc): New function.
11094
11095 2004-02-23 Roland McGrath <roland@redhat.com>
11096
11097 * auxv.c (info_auxv_command): Fix typos in error messages.
11098
11099 2004-02-23 Mark Kettenis <kettenis@gnu.org>
11100
11101 * x86-64-tdep.h: Tweak comment.
11102 (enum amd64_regnum): New.
11103 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
11104 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
11105 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
11106 (X86_64_XMM1_REGNUM): Removed.
11107 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
11108 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
11109 prototypes for renamed functions.
11110 * x86-64-tdep.c: Fix typo.
11111 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
11112 register numbers.
11113 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
11114 Use constants from `enum amd64_regnum' for register numbers.
11115 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
11116 (amd64_analyze_prologue, amd64_frame_cache,
11117 amd64_sigtramp_frame_cache): Use constants from `enum
11118 amd64_regnum' for register numbers.
11119 (amd64_supply_fpregset): Adjust for renamed functions.
11120 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
11121 `enum amd64_regnum' for register numbers.
11122 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
11123 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
11124 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
11125 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
11126 (amd64_linux_fill_gregset): Adjust for renamed macros.
11127 (fetch_core_registers): Adjust for renamed functions.
11128 (amd64_linux_init_abi): Adjust for renamed functions.
11129 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
11130 renamed functions.
11131 * amd64-nat.c: Adjust for renamed macros.
11132 * amd64bsd-nat.c (fetch_inferior_registers)
11133 (store_inferior_registers): Use constants from `enum amd64_regnum'
11134 for register numbers. Adjust for renamed variables.
11135 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
11136 renamed variables.
11137 (_initialize_amd64fbsd_nat): Use constants from `enum
11138 amd64_regnum' for register numbers.
11139 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
11140 `enum amd64_regnum' for register numbers.
11141 (amd64fbsd_init_abi): Adjust for renamed functions.
11142 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
11143 `enum amd64_regnum' for register numbers.
11144 (amd64nbsd_init_abi): Adjust for renamed functions.
11145 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
11146 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
11147 `enum amd64_regnum' for register numbers.
11148 (amd64obsd_init_abi): Adjust for renamed functions.
11149 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
11150
11151 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11152
11153 * breakpoint.c (print_one_breakpoint): Do not output spaces
11154 after printing <PENDING> for a pending breakpoint.
11155
11156 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11157
11158 * printcmd.c (print_scalar_formatted): Initialize val_long
11159 to remove compiler warning message.
11160
11161 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11162
11163 * defs.h (nquery, yquery): New prototypes.
11164 * breakpoint.c (break_command_1): Use new nquery interface.
11165 * utils.c (defaulted_query, nquery, yquery): New functions.
11166
11167 2004-02-23 Andrew Cagney <cagney@redhat.com>
11168
11169 * hppa-tdep.c (hppa_frame_align): New function.
11170 (hppa32_push_dummy_call): New function.
11171 (hppa64_push_dummy_call): New function.
11172 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
11173 disabled.
11174
11175 * infcall.c (legacy_push_dummy_code): Don't call deprecated
11176 FIX_CALL_DUMMY when push_dummy_call is available.
11177 (call_function_by_hand, push_dummy_code): Ditto.
11178
11179 2004-02-22 Andrew Cagney <cagney@redhat.com>
11180
11181 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
11182 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
11183 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
11184 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
11185 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
11186 call_dummy_location to ON_STACK.
11187
11188 2004-02-22 Mark Kettenis <kettenis@gnu.org>
11189
11190 * x86-64-linux-tdep.c: Tweak comment.
11191 (amd64_linux_supply_gregset): Renamed from
11192 x86_64_linux_supply_gresget.
11193 (amd64_linux_fill_gregset): Renamed from
11194 x86_64_linux_fill_gregset.
11195 (fetch_core_registers): Adjust for renamed functions.
11196 (amd64_core_fns): Renamed from x86_64_core_fns.
11197 (amd64_linux_sigtramp_start): Renamed from
11198 x86_64_linux_sigtramp_start.
11199 (amd64_linux_pc_in_sigtramp): Renamed from
11200 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
11201 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
11202 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
11203 (amd64_linux_sigcontext_addr): Renamed from
11204 x86_64_linux_sigcontext_addr.
11205 (amd64_linux_sc_reg_offset): Renamed from
11206 x86_64_linux_sc_reg_offset.
11207 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
11208 Adjust for renamed functions and variables.
11209 (_initialize_amd64_linux_tdep): Renamed from
11210 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
11211 variables.
11212 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
11213 Adjust for renamed functions.
11214
11215 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
11216 from x86_64_linux_gregset64_reg_offset.
11217 (amd64_linux_gregset32_reg_offset): Rename from
11218 x86_64_linux_gregset64_reg_offset.
11219 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
11220 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
11221 (amd64_linux_dr_set_control): Renamed from
11222 x86_64_linux_dr_set_control. Adjust for renamed functions.
11223 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
11224 Adjust for renamed functions.
11225 (amd64_linux_dr_reset_addr): Renamed from
11226 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
11227 (amd64_linux_dr_get_status): Renamed from
11228 x86_64_linux_dr_get_status. Adjust for renamed functions.
11229 (_initialize_amd64_linux_nat): Renamed from
11230 _initialize_x86_64_linux_nat. Adjust for renamed variables and
11231 functions.
11232 * config/i386/nm-x86-64linux.h: Update copyright year.
11233 Adjust for renamed functions.
11234
11235 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
11236 amd64fbsd_sigtramp_start.
11237 (amd64fbsd_sigtramp_end_addr): Renamed from
11238 amd64fbsd_sigtramp_end.
11239 (amd64fbsd_init_abi): Adjust for renamed variables.
11240 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
11241 variables.
11242 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
11243 amd64fbsd_sigtramp_start.
11244 (amd64fbsd_sigtramp_end_addr): Renamed from
11245 amd64fbsd_sigtramp_end.
11246
11247 2004-02-22 Andrew Cagney <cagney@redhat.com>
11248
11249 * hppa-tdep.c (hppa32_return_value): New function.
11250 (hppa64_return_value): New function.
11251 (hppa_gdbarch_init): Set return_value; keep disabled.
11252
11253 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
11254 struct-return and inferior function call methods.
11255
11256 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
11257 "frame-base.h".
11258 (struct hppa_frame_cache): Define.
11259 (hppa_frame_cache, hppa_frame_this_id): New functions.
11260 (hppa_frame_prev_register): New function.
11261 (hppa_frame_unwind, hppa_frame_base): New variables.
11262 (hppa_frame_unwind_sniffer): New function.
11263 (hppa_frame_base_address, hppa_unwind_pc): New function.
11264 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
11265 sniffer, and frame base sniffer; keep disabled.
11266 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
11267 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
11268
11269 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
11270 to predicates for "seriously old code".
11271
11272 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
11273 runtime if(0).
11274
11275 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
11276 unsigned.
11277 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
11278
11279 * config/pa/tm-hppa.h: Update copyright.
11280 (DEPRECATED_INIT_FRAME_PC): Delete macro.
11281 (deprecated_init_frame_pc_default): Delete declaration.
11282 (hppa_frame_init_saved_regs): Delete declaration.
11283 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
11284 * hppa-tdep.c: Include "arch-utils.h".
11285 (hppa_gdbarch_init): Set deprecated init_frame_pc
11286 and deprecated frame_init_saved_regs.
11287 (hppa_frame_init_saved_regs): Make static.
11288
11289 2004-02-22 Mark Kettenis <kettenis@gnu.org>
11290
11291 Remove old 386BSD support.
11292 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
11293 * configure.host: Remove i[34567]86-*-bsd*.
11294 * configure.tgt: Remove i[34567]86-*-bsd*.
11295 * i386b-nat.c: Removed.
11296 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
11297 (i386b-nat.o): Remove dependencies.
11298
11299 * config/i386/i386bsd.mh: Removed.
11300 * config/i386/i386bsd.mt: Removed.
11301 * config/i386/nm-i386bsd.h: Removed.
11302 * config/i386/tm-i386bsd.h: Removed.
11303 * config/i386/xm-i386bsd.h: Removed.
11304
11305 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
11306
11307 * amd64fbsd-tdep.c: Include "solib-svr4.h".
11308 (amd64fbsd_init_abi): Set link map offsets.
11309 * amd64nbsd-tdep.c: Include "slib-svr4.h".
11310 (amd64nbsd_init_abi): Set link map offsets.
11311 * amd64obsd-tdep.c: Include "solib-svr4.h".
11312 (amd64obsd_init_abi): Set link map offsets.
11313 * i386fbsd-tdep.c: Include "solib-svr4.h".
11314 (i386fbsd_init_abi): Set link map offsets.
11315 * i386nbsd-tdep.c: Include "solib-svr4.h".
11316 (i386nbsdelf_init_abi): Set link map offsets.
11317 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
11318 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
11319 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
11320 solib-legacy.o and core-aout.o. Reformat.
11321 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
11322 solib-svr4.o, solib-legacy.o. Reformat.
11323 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
11324 * config/i386/nbsdelf.mh: Reformat.
11325 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
11326 solib-svr4.o, solib-legacy.o and corelow.o.
11327 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
11328 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
11329 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
11330 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11331 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11332 (TM_FILE): Set to tm-fbsd.h.
11333 * config/i386/nbsd.mt (TDEPFILES): Reformat.
11334 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
11335 solib-svr4.o.
11336 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
11337 solib-svr4.o.
11338 (TM_FILE): Set to nm-nbsd.h.
11339 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
11340 Simplify shared library support. Don't include "elf/common.h".
11341 (SVR4_SHARED_LIBS): Don't define.
11342 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
11343 "solib.h".
11344 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
11345 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
11346 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
11347 Don't include "i386/tm-i386.h". Include "solib.h".
11348 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
11349 Don't include "i386/tm-i386.h".
11350 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
11351 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
11352 Include "i386/xm-i386.h".
11353 (HOST_LONG_DOUBLE_FORMAT): Remove.
11354
11355 Fix OpenBSD/i386 sigtramp recognition.
11356 * i386-tdep.h: Update copyright year.
11357 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
11358 (i386bsd_sigtramp_end): New prototypes.
11359 (i386fbsd_sigtramp_start_addr): Renamed from
11360 i386fbsd_sigtramp_start.
11361 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11362 (i386obsd_sigtramp_start_addr): Renamed from
11363 i386obsd_sigtramp_start.
11364 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11365 * i386bsd-tdep.c: Update copyright year.
11366 (i386bsd_pc_in_sigtramp): Make public.
11367 * i386fbsd-nat.c: Update copyright year.
11368 (_initialize_i386fbsd_nat): Adjust for renamed variables.
11369 * i386fbsd-tdep.c: Update copyright year.
11370 (i386fbsd_sigtramp_start_addr): Renamed from
11371 i386fbsd_sigtramp_start.
11372 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11373 (i386fbsdaout_init_abi): Adjust for renamed variables.
11374 * i386obsd-nat.c: Update copyright year.
11375 (_initialize_i386obsd_nat): Adjust for renamed variables.
11376 * i386obsd-tdep.c: Include "target.h".
11377 (i386obsd_page_size): New variable.
11378 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
11379 (i386obsd_sigtramp_end): New functions.
11380 (i386obsd_sigtramp_start_addr): Renamed from
11381 i386obsd_sigtramp_start.
11382 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11383 (i386obsd_init_abi): Adjust for renamed variables. Set
11384 pc_in_sigtramp, sigtramp_start and sigtramp_end.
11385 * Makefile.in (i386obsd-tdep.o): Update dependencies.
11386
11387 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
11388 trampoline change in OpenBSD kernel.
11389
11390 * amd64-nat.c: Update copyright year.
11391 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
11392 architecture from REGCACHE.
11393
11394 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
11395 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
11396
11397 2004-02-21 Mark Kettenis <kettenis@gnu.org>
11398
11399 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
11400 i[34567]86-*-openbsd3.[0-3].
11401 * config/i386/obsdaout.mh: New file.
11402
11403 * config/i386/obsd.mh (MH_FLAGS): Remove.
11404
11405 Fix PR build/1549.
11406 * i386obsd-tdep.c: Update copyright years. Include
11407 "solib-svr4.h".
11408 (i386obsd_init_abi): Don't set regset_from_core_section here.
11409 (i386obsd_aout_init_abi): New function. Set
11410 regset_from_core_section here.
11411 (i386obsd_elf_init_abi): New function.
11412 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
11413 * Makefile.in (i386obsd-tdep.o): Update dependecies.
11414 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
11415 (TM_FILE): Set to tm-nbsd.h.
11416
11417 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
11418 solib-sunos.o.
11419
11420 * solib-svr4.h: Update copyright year.
11421 (svr4_ilp32_fetch_link_map_offsets)
11422 (svr4_lp64_fetch_link_map_offsets): New prototype.
11423 * solib-svr4.c: Update copyright year.
11424 (svr4_ilp32_fetch_link_map_offsets)
11425 (svr4_lp64_fetch_link_map_offsets): New function.
11426
11427 2004-02-20 Daniel Jacobowitz <drow@mvista.com>
11428
11429 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
11430 to the partial symbol table.
11431
11432 2004-02-20 J. brobecker <brobecker@gnat.com>
11433
11434 * PROBLEMS: Add description of problem documented under gdb/1560.
11435
11436 2004-02-20 Mark Kettenis <kettenis@gnu.org>
11437
11438 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
11439 comments.
11440 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
11441 functions.
11442 (amd64obsd_init_abi): Reorder initializations. Use
11443 amd64obsd_r_reg_offset to initialize the general-purpose register
11444 set details. Set regset_from_core_section.
11445 (_initialize_amd64obsd_tdep): Rename from
11446 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
11447 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
11448 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
11449
11450 * NEWS (New native configurations): Mention OpenBSD/alpha.
11451 * configure.tgt: Add alpha*-*-openbsd*.
11452 * configure.host: Add alpha*-*-openbsd*.
11453 * alphanbsd-tdep.c: Update copyright year.
11454 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
11455
11456 2004-02-20 Andrew Cagney <cagney@redhat.com>
11457
11458 Fix PR tdep/1372.
11459 * configure.tgt: Delete target "none-*-*".
11460 * configure.host: Delete host "none-*-*".
11461 * config/none/none.mh: Delete file.
11462 * config/none/none.mt: Delete file.
11463 * config/none/xm-none.h: Delete file.
11464 * config/none/tm-none.h: Delete file.
11465 * config/none/nm-none.h: Delete file.
11466
11467 2004-02-19 Fred Fish <fnf@redhat.com>
11468
11469 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
11470 cache->uses_fp prior to setting it.
11471
11472 2004-02-19 Fred Fish <fnf@redhat.com>
11473
11474 Fix for PR breakpoint/1558.
11475 * sh-tdep.c (IS_JSR): New macro.
11476 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
11477
11478 2004-02-19 Jim Blandy <jimb@redhat.com>
11479
11480 * findvar.c (value_from_register): Doc fix.
11481
11482 2004-02-19 Jeff Johnston <jjohnstn@redhat.com>
11483
11484 * printcmd.c (print_scalar_formatted): Do not check for sizeof
11485 type being greater than sizeof of host's LONGEST. Always use
11486 unpack_long() unless format 'f' chosen.
11487
11488 2004-02-19 Joel Brobecker <brobecker@gnat.com>
11489
11490 Committed by Elena Zannoni <ezannoni@redhat.com>
11491
11492 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
11493 contains a symbol wich is the best, non-exact match for the given
11494 pc. Update comments.
11495
11496 2004-02-19 Elena Zannoni <ezannoni@redhat.com>
11497
11498 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
11499 macro, which was part of the now removed Mach 3 port.
11500 * utils.c (request_quit): Ditto.
11501
11502 2004-02-18 Mark Kettenis <kettenis@gnu.org>
11503
11504 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
11505 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
11506
11507 2004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11508
11509 Committed by Mark Kettenis <kettenis@gnu.org>.
11510
11511 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
11512 Define.
11513
11514 2004-02-18 Andrew Cagney <cagney@redhat.com>
11515
11516 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
11517 CONFIG_INSTALL and CONFIG_UNINSTALL.
11518 * configure: Re-generate.
11519 * interps.h (INTERP_TUI): Define.
11520 * Makefile.in: Update dependencies.
11521 (TUI): New macro.
11522 (tui-main.o): Specify dependencies.
11523 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
11524 * tui/tui-main.c: New file.
11525
11526 2004-02-18 Mark Kettenis <kettenis@gnu.org>
11527
11528 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
11529 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
11530 dependencies.
11531 * configure.host: Add x86_64-*-openbsd*.
11532 * configure.tgt: Add x86_64-*-openbsd*.
11533 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
11534
11535 * tui/tui.c: Don't include <malloc.h>.
11536
11537 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
11538 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
11539 amd64nbsd-tdep.c.
11540
11541 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
11542 static. Remove extraneous whitespace.
11543 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
11544 static.
11545
11546 2004-02-17 Jim Blandy <jimb@redhat.com>
11547
11548 * findvar.c (value_from_register): Doc fix.
11549
11550 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11551
11552 Committed by Jim Blandy <jimb@redhat.com>.
11553
11554 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
11555 CORE_ADDR as type for selectors. Correct types for GNU run time
11556 message lookup function to use double indirection.
11557 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
11558 * objc-lang.h (lookup_child_selector): Adapt prototype.
11559
11560 * s390-nat.c (SUBOFF): New macro.
11561 (supply_gregset, fill_gregset): Use it to handle debugging
11562 of 32-bit exectuables running under a 64-bit kernel.
11563 * s390-tdep.c: Include "solib-svr4.h".
11564 (s390_svr4_fetch_link_map_offset): New function.
11565 (s390x_svr_fetch_link_map_offset): Likewise.
11566 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
11567 * Makefile.in (s390-tdep.o): Update dependencies.
11568
11569 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
11570 "frame-unwind.h".
11571 (s390_readinstruction): Reformat. Use read_memory_nobpt.
11572 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
11573 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
11574 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
11575 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
11576 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
11577 S390_SIGNAL_FRAMESIZE,
11578 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
11579 (struct frame_extra_info): Remove.
11580 (s390_memset_extra_info): Remove.
11581 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
11582 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
11583 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
11584 (is_rse): Renamed to ...
11585 (is_rsy): ... this. Support long displacements.
11586 (is_rxe): Renamed to ...
11587 (is_rxy): ... this. Support long displacements.
11588 (compute_x_addr): Support long displacements.
11589 (struct s390_prologue_data): New data type.
11590 (s390_on_stack): Change API to use struct s390_prologue_data.
11591 (s390_store): Reimplement.
11592 (s390_load): New function.
11593 (s390_get_signal_frame_info): Remove.
11594 (s390_get_frame_info): Remove, replace by ...
11595 (s390_analyze_prolog): ... this new function.
11596 (s390_check_function_end): Remove.
11597 (s390_function_start): Remove.
11598 (s390_frameless_function_invokation): Remove.
11599 (s390_is_sigreturn): Remove.
11600 (s390_init_frame_pc_first): Remove.
11601 (s390_init_frame_extra_info): Remove.
11602 (s390_frame_init_saved_regs): Remove.
11603 (s390_frame_saved_pc_nofix): Remove.
11604 (s390_frame_saved_pc): Remove.
11605 (s390_frame_chain): Remove.
11606 (s390_fp_regnum, s390_read_fp): Remove.
11607 (s390_pop_frame_regular, s390_pop_frame): Remove.
11608 (s390_saved_pc_after_call): Remove.
11609 (s390_skip_prologue): Reimplement.
11610 (s390_in_function_epilogue_p): Support long displacements.
11611 (struct s390_unwind_cache): New data structure.
11612 (s390_frame_unwind_cache): New function.
11613 (s390_prologue_frame_unwind_cache): Likewise.
11614 (s390_backchain_frame_unwind_cache): Likewise.
11615 (s390_frame_this_id, s390_frame_prev_register): Likewise.
11616 (s390_frame_unwind): Define.
11617 (s390_frame_sniffer): New function.
11618 (struct s390_pltstub_unwind_cache): New data structure.
11619 (s390_pltstub_frame_unwind_cache): New function.
11620 (s390_pltstub_frame_this_id): Likewise.
11621 (s390_pltstub_frame_prev_register): Likewise.
11622 (s390_pltstub_frame_unwind): Define.
11623 (s390_pltstub_frame_sniffer): New function.
11624 (struct s390_sigtramp_unwind_cache): New data structure.
11625 (s390_sigtramp_frame_unwind_cache): New function.
11626 (s390_sigtramp_frame_this_id): Likewise.
11627 (s390_sigtramp_frame_prev_register): Likewise.
11628 (s390_sigtramp_frame_unwind): Define.
11629 (s390_sigtramp_frame_sniffer): New function.
11630 (s390_frame_base_address, s390_local_base_address): New functions.
11631 (s390_frame_base): Define.
11632 (s390_unwind_pc, s390_unwind_sp): New function.
11633 (s390_push_dummy_call): Use new frame base location.
11634 (s390_unwind_dummy_id): Likewise.
11635 (s390_gdbarch_init): Remove calls to:
11636 set_gdbarch_frameless_function_invocation,
11637 set_gdbarch_deprecated_init_frame_pc,
11638 set_gdbarch_deprecated_frame_chain,
11639 set_gdbarch_deprecated_frame_init_saved_regs,
11640 set_gdbarch_deprecated_pop_frame,
11641 set_gdbarch_deprecated_init_extra_frame_info,
11642 set_gdbarch_deprecated_init_frame_pc_first,
11643 set_gdbarch_deprecated_target_read_fp,
11644 set_gdbarch_deprecated_frame_saved_pc,
11645 set_gdbarch_deprecated_saved_pc_after_call,
11646 set_gdbarch_deprecated_fp_regnum.
11647 Add calls to:
11648 set_gdbarch_in_solib_call_trampoline,
11649 frame_unwind_append_sniffer,
11650 frame_base_set_default,
11651 set_gdbarch_unwind_pc,
11652 set_gdbarch_unwind_sp.
11653 * Makefile.in (s390-tdep.o): Update dependencies.
11654
11655 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
11656 (S390_STACK_FRAME_OVERHEAD): Remove.
11657 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
11658 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
11659 (s390_promote_integer_argument): Remove.
11660 (s390_cannot_extract_struct_value_address): Remove.
11661 (s390_use_struct_convention, s390_store_struct_return): Remove.
11662 (s390_extract_return_value, s390_store_return_value): Remove.
11663 (s390_return_value_convention, s390_return_value): New functions.
11664 (is_float_singleton): Handle typedefs.
11665 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
11666 Remove, replace by ...
11667 (s390_function_arg_pass_by_reference, s390_function_arg_float,
11668 s390_function_arg_integer): ... these new functions.
11669 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
11670 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
11671 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
11672 Fill in tdep->abi.
11673 Remove calls to:
11674 set_gdbarch_deprecated_store_struct_return,
11675 set_gdbarch_deprecated_extract_return_value,
11676 set_gdbarch_deprecated_store_return_value,
11677 set_gdbarch_use_struct_convention,
11678 set_gdbarch_extract_struct_value_address,
11679 set_gdbarch_deprecated_pc_in_call_dummy,
11680 set_gdbarch_deprecated_push_arguments,
11681 set_gdbarch_deprecated_save_dummy_frame_tos,
11682 set_gdbarch_deprecated_push_return_address,
11683 set_gdbarch_deprecated_sizeof_call_dummy_words,
11684 set_gdbarch_deprecated_call_dummy_words,
11685 set_gdbarch_deprecated_dummy_write_sp.
11686 Add calls to:
11687 set_gdbarch_push_dummy_call,
11688 set_gdbarch_unwind_dummy_id,
11689 set_gdbarch_return_value.
11690
11691 * config/s390/nm-linux.h: Update comments.
11692 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
11693 (STOPPED_BY_WATCHPOINT): Redefine.
11694 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
11695 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
11696 (s390_stopped_by_watchpoint): Likewise.
11697 (watch_area_cnt): Remove.
11698 * s390-nat.c: Update comments.
11699 (watch_area): Remove typedef.
11700 Global replace watch_area by struct watch_area.
11701 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
11702 (s390_stopped_by_watchpoint): Remove pid argument,
11703 use s390_inferior_tid. Add short-cut for the no watchpoint case.
11704 (s390_fix_watch_points): Remove pid argument,
11705 use s390_inferior_tid. Recompute area spanned by watchpoints.
11706 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
11707 argument. Reimplement.
11708
11709 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
11710 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
11711 (FETCH_INFERIOR_REGISTERS): Define.
11712 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
11713 core-regset.o.
11714 * config/s390/s390x.mt: Remove.
11715 * config/s390/tm-s390.h: Remove.
11716 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
11717 (TARGET_ELF64): Remove.
11718 (SKIP_TRAMPOLINE_CODE): Do not undefine.
11719 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
11720 s390*-*-* case; always set gdb_target to s390.
11721 * regformats/reg-s390.dat: Remove control registers.
11722 * regformats/reg-s390x.dat: Likewise.
11723 * s390-tdep.h: New file.
11724 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
11725 Include "inferior.h" and "s390-tdep.h".
11726 Remove private definition of offsetof.
11727 (s390_register_u_addr): Remove.
11728 (regmap_gregset, regmap_fpregset): Define.
11729 (supply_gregset, fill_gregset): Reimplement.
11730 (supply_fpregset, fill_fpregset): Likewise.
11731 (s390_inferior_tid): New function.
11732 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
11733 (fetch_inferior_registers, store_inferior_registers): Likewise.
11734 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
11735 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
11736 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
11737 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
11738 (struct gdbarch_tdep): Define.
11739 (struct s390_register_info): Define.
11740 (s390_register_info): New variable.
11741 (s390_register_name): Reimplement.
11742 (s390_register_type): New function.
11743 (s390_register_raw_size, s390x_register_raw_size): Remove.
11744 (s390_cannot_fetch_register): Remove.
11745 (s390_register_byte): Remove.
11746 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
11747 (s390_dwarf_regmap): New variable.
11748 (s390_dwarf_reg_to_regnum): New function.
11749 (s390_stab_reg_to_regnum): Remove.
11750 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
11751 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
11752 (s390_convert_register_p): Likewise.
11753 (s390_register_to_value, s390_value_to_register): Likewise.
11754 (s390_register_reggroup_p): Likewise.
11755 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
11756 s390_gregset, s390x_gregset, s390_fpregset): New variables.
11757 (s390_supply_regset, s390_regset_from_core_section): New functions.
11758 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
11759 (S390_FPR_SIZE): Likewise.
11760 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
11761 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
11762 (S390_NUM_GPRS): Move here from tm-s390.h.
11763 (S390_NUM_FPRS): Likewise.
11764 (s390_in_function_epilogue_p): New function.
11765 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
11766 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
11767 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
11768 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
11769 Replace S390_FP_REGNUM by S390_SP_REGNUM.
11770 Remove calls to:
11771 set_gdbarch_deprecated_max_register_raw_size,
11772 set_gdbarch_deprecated_max_register_virtual_size,
11773 set_gdbarch_deprecated_register_byte,
11774 set_gdbarch_cannot_fetch_register,
11775 set_gdbarch_cannot_store_register,
11776 set_gdbarch_deprecated_register_size,
11777 set_gdbarch_deprecated_register_raw_size,
11778 set_gdbarch_deprecated_register_virtual_size,
11779 set_gdbarch_deprecated_register_virtual_type,
11780 set_gdbarch_deprecated_register_bytes.
11781 Add calls to:
11782 set_gdbarch_num_pseudo_regs,
11783 set_gdbarch_register_type,
11784 set_gdbarch_convert_register_p,
11785 set_gdbarch_register_to_value,
11786 set_gdbarch_value_to_register,
11787 set_gdbarch_register_reggroup_p,
11788 set_gdbarch_regset_from_core_section,
11789 set_gdbarch_pseudo_register_read,
11790 set_gdbarch_pseudo_register_write,
11791 set_gdbarch_in_function_epilogue_p.
11792 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
11793 (s390_tdep_h): New variable.
11794
11795 2004-02-17 Jim Blandy <jimb@redhat.com>
11796
11797 * findvar.c (value_from_register): If the type has no length, just
11798 return an acceptable value --- don't report an internal error.
11799
11800 * stabsread.c (read_type): If we find any type numbers that are
11801 forward references, complain if the references aren't resolved by
11802 the time we're finished reading.
11803 (cleanup_undefined_types): Make error message more appropriate for
11804 a complaint.
11805
11806 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
11807
11808 * Makefile.in (defs_h): Remove dependency on progress_h.
11809 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
11810 progress.h.
11811 * main.c (captured_main): Delete use of START_PROGRESS and
11812 END_PROGRESS.
11813
11814 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
11815
11816 * objfiles.c (terminate_minimal_symbol_table): Add back
11817 initialization of MSYMBOL_TYPE.
11818
11819 2004-02-17 David Mosberger <davidm@hpl.hp.com>
11820
11821 Committed by Andrew Cagney.
11822 * Makefile.in (ia64_tdep_h): New macro.
11823 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
11824 (ia64-tdep.o): Likewise.
11825 * ia64-tdep.h: New file.
11826 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
11827 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
11828 (ia64_aix_sigcontext_register_address): Likewise.
11829 (ia64_linux_getunwind_table): Delete declaration.
11830 * ia64-linux-tdep.c: Likewise.
11831
11832 2004-02-17 Corinna Vinschen <vinschen@redhat.com>
11833
11834 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
11835 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
11836 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
11837
11838 2004-02-17 Andrew Cagney <cagney@redhat.com>
11839
11840 * symtab.c (skip_prologue_using_sal): New function.
11841 * symtab.h (skip_prologue_using_sal): Declare.
11842 * frv-tdep.c: Include "symtab.h".
11843 (skip_prologue_using_sal): Delete function.
11844 * mips-tdep.c (skip_prologue_using_sal): Delete function.
11845 * rs6000-tdep.c (refine_prologue_limit): Mention
11846 skip_prologue_using_sal.
11847 * ia64-tdep.c (refine_prologue_limit): Ditto.
11848 * Makefile.in: Update dependencies.
11849
11850 2004-02-16 Andrew Cagney <cagney@redhat.com>
11851
11852 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
11853 START_INFERIOR_TRAPS_EXPECTED.
11854 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
11855 START_INFERIOR_TRAPS_EXPECTED.
11856 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
11857 Delete macro.
11858 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
11859 macro, moved to "nm-osf.h". Update copyright.
11860 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
11861 update copyright.
11862
11863 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
11864 and function replacing FRAMELESS_FUNCTION_INVOCATION.
11865 * blockframe.c (legacy_frameless_look_for_prologue): Rename
11866 frameless_look_for_prologue.
11867 * frame.h (legacy_frameless_look_for_prologue): Rename
11868 frameless_look_for_prologue.
11869 * gdbarch.h, gdbarch.c: Re-generate.
11870 * sh64-tdep.c (sh64_gdbarch_init): Update.
11871 * sh-tdep.c (sh_gdbarch_init): Update.
11872 * s390-tdep.c (s390_gdbarch_init): Update.
11873 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11874 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11875 * m68k-tdep.c (m68k_gdbarch_init): Update.
11876 (delta68_frame_args_address): Update.
11877 * m32r-tdep.c (m32r_gdbarch_init): Update.
11878 * hppa-tdep.c (hppa_gdbarch_init): Update.
11879 * h8300-tdep.c (h8300_gdbarch_init): Update.
11880 * frv-tdep.c (frv_gdbarch_init): Update.
11881 (frv_frameless_function_invocation): Update.
11882 * cris-tdep.c (cris_gdbarch_init): Update.
11883 (cris_frameless_function_invocation): Update.
11884 * avr-tdep.c (avr_gdbarch_init): Update.
11885 * arm-tdep.c (arm_gdbarch_init): Update.
11886 * stack.c (frame_info): Update, call predicate.
11887 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
11888 * frame.c (legacy_get_prev_frame): Update, call predicate..
11889 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
11890 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
11891 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
11892 invocation.
11893 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11894 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11895 * vax-tdep.c (vax_gdbarch_init): Ditto.
11896
11897 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
11898 function.
11899
11900 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
11901
11902 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
11903 initializations.
11904
11905 2004-02-16 Andrew Cagney <cagney@redhat.com>
11906
11907 * tui/tui-windata.c: Include "gdb_string.h".
11908 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
11909 * tui/tui-layout.c, tui/tui-command.c: Ditto.
11910 * Makefile.in: Update dependencies.
11911
11912 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
11913
11914 * Makefile.in (infrun.o): Add $(gdb_assert_h).
11915 * infrun.c: Include "gdb_assert.h".
11916 (singlestep_ptid, saved_singlestep_ptid)
11917 (stepping_past_singlestep_breakpoint): New variables.
11918 (resume): Set singlestep_ptid. Check for singlestep thread
11919 hop.
11920 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
11921 (handle_inferior_event): Handle singlestep thread hop.
11922
11923 2004-02-16 Andrew Cagney <cagney@redhat.com>
11924
11925 * dwarf2-frame.c (dwarf2_frame_ops): New function.
11926 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
11927 (dwarf2_frame_init_reg): Ditto.
11928
11929 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
11930 suggested by Joshua Neuheisel
11931
11932 * configure.in: Always check for curses, including pdcurses.
11933 Warn, instead of error, when no curses are found. Enable TUI when
11934 curses is available.
11935 * configure: Re-generate.
11936
11937 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
11938
11939 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
11940 sh_sh4_register_convert_to_virtual.
11941 (sh_register_convert_to_raw): Rename from
11942 sh_sh4_register_convert_to_raw.
11943 (sh_pseudo_register_read): Accomodate above name change.
11944 (sh_pseudo_register_write): Ditto.
11945
11946 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
11947
11948 * sh-tdep.c (sh_generic_register_name): Remove.
11949 (sh_gdbarch_init): Use sh_sh_register_name in default case.
11950
11951 2004-02-15 Andrew Cagney <cagney@redhat.com>
11952
11953 * configure.in (build_warnings): Add -Wunused-function.
11954 * configure: Re-generate.
11955
11956 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
11957 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
11958
11959 * procfs.c (procfs_init_inferior): Assume that
11960 START_INFERIOR_TRAPS_EXPECTED is defined.
11961 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
11962 * config/ns32k/tm-nbsd.h: Delete file,
11963 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
11964
11965 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
11966 * config/vax/tm-vax.h: Delete file.
11967
11968 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11969 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11970 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11971 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11972 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
11973 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11974 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
11975
11976 2004-02-15 Mark Kettenis <kettenis@gnu.org>
11977
11978 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
11979 * dwarf2-frame.c (dwarf2_frame_data): New variable.
11980 (struct dwarf2_frame_ops): New.
11981 (dwarf2_frame_default_init_reg): New function, based on
11982 dwarf2_frame_init_reg.
11983 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
11984 (dwarf2_frame_init_reg): Call architecture-specific function.
11985 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
11986 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
11987 instead of dwarf2_frame_data.
11988 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
11989 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
11990
11991 2004-02-15 Andrew Cagney <cagney@redhat.com>
11992
11993 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
11994 register_gdbarch_swap.
11995 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
11996 * f-lang.c (_initialize_f_language): Update, use
11997 DEPRECATED_REGISTER_GDBARCH_SWAP.
11998 * remote.c (_initialize_remote): Ditto.
11999 * regcache.c (_initialize_regcache): Ditto.
12000 * parse.c (_initialize_parse): Ditto.
12001 * infrun.c (_initialize_infrun): Ditto.
12002 * mi/mi-main.c (_initialize_mi_main): Ditto.
12003 * gdbtypes.c (_initialize_gdbtypes): Ditto.
12004
12005 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
12006 poking .cacheable directly.
12007 * symfile.c (symfile_bfd_open): Ditto.
12008
12009 * Makefile.in: Update all dependencies.
12010
12011 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
12012 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
12013 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
12014 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
12015 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
12016
12017 2004-02-14 Andrew Cagney <cagney@redhat.com>
12018
12019 * arch-utils.c (legacy_convert_register_p): Check
12020 DEPRECATED_REGISTER_CONVERTIBLE_P.
12021 * findvar.c (value_of_register): Ditto.
12022
12023 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
12024 * gdbarch.h, gdbarch.c: Re-generate.
12025 * arch-utils.c (deprecated_register_convertible_not): Delete.
12026 * arch-utils.h (deprecated_register_convertible_not): Delete.
12027 * mi/mi-main.c (get_register): Update. Update copyright.
12028 * infcmd.c (default_print_registers_info): Update.
12029
12030 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
12031 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
12032 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
12033 * gdbarch.h, gdbarch.c: Re-generate.
12034 * frame.c (deprecated_get_next_frame_hack): Delete function.
12035 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
12036 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
12037 Update.
12038 * infcall.c (call_function_by_hand): Update.
12039
12040 2004-02-14 Elena Zannoni <ezannoni@redhat.com>
12041
12042 * symfile.c (init_entry_point_info, entry_point_address): Move
12043 from here...
12044 * objfiles.c (init_entry_point_info, entry_point_address):..to
12045 here.
12046 * symfile.h (init_entry_point_info, entry_point_address): Remove
12047 prototypes.
12048 * objfiles.h (init_entry_point_info, entry_point_address):Add
12049 prototypes.
12050 * cris-tdep.c: Remove include of symfile.h. Add include of
12051 objfiles.h.
12052 * infcall.c: Ditto.
12053 * mcore-tdep.c: Ditto.
12054 * mn10300-tdep.c: Ditto.
12055 * sh64-tdep.c: Ditto.
12056 * v850-tdep.c: Ditto.
12057 * arm-tdep.c: Remove include of symfile.h.
12058 * blockframe.c: Ditto.
12059 * coffread.c: Ditto.
12060 * dbxread.c: Ditto.
12061 * dwarf2read.c: Ditto.
12062 * dwarfread.c: Ditto.
12063 * frv-tdep.c: Ditto.
12064 * ia64-tdep.c: Ditto.
12065 * mdebugread.c: Ditto.
12066 * mipsread.c: Ditto.
12067 * rs6000-tdep.c: Ditto.
12068 * s390-tdep.c: Ditto.
12069 * sh-tdep.c: Ditto.
12070 * xstormy16-tdep.c: Ditto.
12071 * gdbarch.sh: Remove include of symfile.h.
12072 * gdbarch.c: Regenerate.
12073 * solib-irix.c (enable_break): Use entry_point_address().
12074 Add comment about include file.
12075 * xcoffread.c: Add comment about include file.
12076 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
12077 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
12078 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
12079 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
12080 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
12081
12082 2004-02-13 Andrew Cagney <cagney@redhat.com>
12083
12084 * corelow.c (core_xfer_partial): Use "struct bfd_section".
12085 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
12086 copyright.
12087 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
12088
12089 2004-02-12 Fred Fish <fnf@redhat.com>
12090
12091 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
12092 set_gdbarch_store_return_value.
12093
12094 2004-02-12 Andrew Cagney <cagney@redhat.com>
12095
12096 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
12097 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
12098 (interrupt_query): Ditto.
12099 (ofunc): Delete unused variable.
12100 * cris-tdep.c (cris_abi): Delete unused function.
12101 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
12102 (cris_get_wide_opcode, cris_get_short_size): Ditto.
12103 (cris_get_asr_quick_shift_steps): Ditto.
12104 (cris_skip_prologue_frameless_p): Ditto.
12105 * arm-tdep.c (arm_push_return_address): Delete unused function.
12106 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
12107 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
12108 * s390-tdep.c (s390_function_start): Delete unused function.
12109
12110 2004-02-12 Andrew Cagney <cagney@redhat.com>
12111
12112 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
12113 gdbarch.h, gdbarch.c: Re-generate.
12114 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
12115 to generic_prologue_frameless_p.
12116 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
12117 * arch-utils.c (generic_prologue_frameless_p): Delete function.
12118
12119 2004-02-11 Daniel Jacobowitz <drow@mvista.com>
12120
12121 * mips-linux-tdep.c: Include "frame.h".
12122 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
12123 (mips_linux_skip_resolver): New functions.
12124 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
12125 and set_gdbarch_in_solib_call_trampoline.
12126 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
12127 to after set_gdbarch_in_solib_return_trampoline. Only set the
12128 solib hooks to mips16 functions if the OS ABI is unknown.
12129 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
12130 including "config/tm-linux.h".
12131 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
12132 * Makefile.in (mips-linux-tdep.o): Update.
12133
12134 2004-02-11 David Carlton <carlton@kealia.com>
12135
12136 * linespec.c (decode_compound): Only look for a class symbol when
12137 considering all but the rightmost component.
12138
12139 2004-02-11 Andrew Cagney <cagney@redhat.com>
12140
12141 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
12142 abi code are are separatly grouped.
12143
12144 2004-02-11 Andrew Cagney <cagney@redhat.com>
12145
12146 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
12147 * gdbarch.h, gdbarch.c: Re-generate.
12148 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12149 * v850-tdep.c (v850_gdbarch_init): Update.
12150 * sh64-tdep.c (sh64_gdbarch_init): Update.
12151 * sh-tdep.c (sh_gdbarch_init): Update.
12152 * s390-tdep.c (s390_gdbarch_init): Update.
12153 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12154 * mips-tdep.c (mips_gdbarch_init): Update.
12155 * mcore-tdep.c (mcore_gdbarch_init): Update.
12156 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12157 * m32r-tdep.c (m32r_gdbarch_init): Update.
12158 * ia64-tdep.c (ia64_gdbarch_init): Update.
12159 * hppa-tdep.c (hppa_gdbarch_init): Update.
12160 * h8300-tdep.c (h8300_gdbarch_init): Update.
12161 * frv-tdep.c (frv_gdbarch_init): Update.
12162 * d10v-tdep.c (d10v_gdbarch_init): Update.
12163 * cris-tdep.c (cris_gdbarch_init): Update.
12164 * avr-tdep.c (avr_gdbarch_init): Update.
12165 * arm-tdep.c (arm_gdbarch_init): Update.
12166 * alpha-tdep.c (alpha_gdbarch_init): Update.
12167
12168 2004-02-11 Corinna Vinschen <vinschen@redhat.com>
12169
12170 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
12171 comma.
12172 (sh_sh4al_dsp_register_name): Ditto.
12173
12174 2004-02-10 Andrew Cagney <cagney@redhat.com>
12175
12176 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
12177 (mips_init_frame_pc_first): Delete function.
12178 (mips_frame_saved_pc): Delete function.
12179 (mips_frame_chain): Delete function.
12180 (mips_init_extra_frame_info): Delete function.
12181 (mips_xfer_register): Delete unused variable "reg".
12182 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
12183 (mips_n32n64_return_value): Delete unused variable "reg".
12184 (mips_n32n64_return_value): Delete unused variable "pos".
12185 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
12186 (mips_o32_return_value): Delete unused variable "pos".
12187 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
12188 (mips_print_fp_register): Delete unused variable "namelen"
12189 (mips_print_fp_register): Delete unused variable "flt2"
12190 (get_frame_pointer): Delete function.
12191 (cached_proc_desc): Delete static variable.
12192 (mips_pop_frame): Delete function.
12193 (mips_find_saved_regs): Delete function.
12194 (mips_get_saved_register): Delete function.
12195 (mips_saved_pc_after_call): Delete function.
12196 (SIGFRAME_BASE): Delete macro.
12197 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
12198 (SIGFRAME_PC_OFF): Delete macro.
12199 (SIGFRAME_REGSAVE_OFF): Delete macro.
12200 (mips_dump_tdep): Do not print deleted macro definitions.
12201
12202 2004-02-10 Andrew Cagney <cagney@redhat.com>
12203
12204 * Makefile.in (SFILES): Remove explictly listed tui files.
12205 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
12206
12207 2004-02-10 Jeff Johnston <jjohnstn@redhat.com>
12208
12209 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
12210 to use paddr functions to format ia64 addresses and long values.
12211 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
12212 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
12213 (get_kernel_table, ia64_find_proc_info_x): Ditto.
12214 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
12215 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
12216
12217 2004-02-10 Andrew Cagney <cagney@redhat.com>
12218
12219 * defs.h: Do not include "tui.h".
12220 * gdb_curses.h: New file.
12221 * tui/tui-hooks.h: New file.
12222 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
12223 (tui_install_hooks, tui_remove_hooks): Delete declarations.
12224 (tui_initialize_io): Delete declaration.
12225 (tui_initialize_readline: Delete redundant declaration.
12226 (struct tui_point): Delete definition.
12227 * tui/tui-data.h (struct tui_point): Define.
12228 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
12229 * utils.c: Include "tui/tui.h".
12230 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
12231 * printcmd.c [TUI]: Include "tui/tui.h".
12232 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
12233 * tui/tui-command.c: Include "gdb_curses.h".
12234 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
12235 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
12236 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
12237 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
12238 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
12239 * Makefile.in: Update all dependencies.
12240 (tui_hooks_h, gdb_curses_h): Define.
12241 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
12242
12243 2004-02-10 Elena Zannoni <ezannoni@redhat.com>
12244
12245 * objfiles.h (struct objfile): Remove unused fields auxf1 and
12246 auxf2. Add comments about some other rarely used fields.
12247
12248 2004-02-10 Andrew Cagney <cagney@redhat.com>
12249
12250 * Makefile.in (init.c): Fix script removing duplicates. Problem
12251 reported by Peter Schauer.
12252
12253 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
12254
12255 * bcache.c (bcache_xmalloc): Use obstack_init instead of
12256 obstack_specify_allocation.
12257 * objfiles.c (allocate_objfile): Ditto.
12258 * solib-sunos.c (solib_add_common_symbols)
12259 (allocate_rt_common_objfile): Ditto.
12260 * symfile.c (reread_symbols): Ditto.
12261 * gdb_obstack.h: Add comment.
12262
12263 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
12264
12265 * linespec.c (decode_line_1, locate_first_half)
12266 (decode_compound, lookup_prefix_sym): Update comments. Delete old
12267 commented out code.
12268
12269 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
12270
12271 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
12272 obstack_free.
12273
12274 2004-02-09 Andrew Cagney <cagney@redhat.com>
12275
12276 * blockframe.c (find_pc_partial_function): If find_pc_overlay
12277 fails, try find_pc_section. Fix PR c++/1267.
12278 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
12279 instead of find_pc_mapped_section.
12280 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
12281 not default to the section containing PC. Fix PR symtab/1519.
12282
12283 2004-02-09 Andrew Cagney <cagney@redhat.com>
12284
12285 * Makefile.in (mips-tdep.o): Update dependencies.
12286 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
12287 "trad-frame.h".
12288 (mips_unwind_pc): Return the pseudo PC register.
12289 (mips_unwind_dummy_id): New function.
12290 (mips16_fetch_instruction): New function.
12291 (mips32_fetch_instruction): New function.
12292 (struct mips_frame_cache): Define.
12293 (mips_mdebug_frame_cache): New function.
12294 (mips_mdebug_frame_this_id): New function.
12295 (mips_mdebug_frame_prev_register): New function.
12296 (mips_mdebug_frame_unwind): Define.
12297 (mips_mdebug_frame_sniffer): New function.
12298 (mips_mdebug_frame_base_address): New function.
12299 (mips_mdebug_frame_base): Define.
12300 (mips_mdebug_frame_base_sniffer): New function.
12301 (mips_gdbarch_init): Append unwind and base sniffers. Set
12302 unwind_dummy_id.
12303
12304 2004-02-08 Andrew Cagney <cagney@redhat.com>
12305
12306 * frame.c: Print both the register number and name.
12307
12308 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
12309 and a sed into a single sed. Make .c and .o patterns more robust.
12310 (OBS): Delete.
12311 (INIT_FILES): Replace OBS with COMMON_OBS.
12312 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
12313
12314 2004-02-08 Mark Kettenis <kettenis@gnu.org>
12315
12316 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
12317 the PT_WCOOKIE request.
12318
12319 2004-02-08 Andrew Cagney <cagney@redhat.com>
12320
12321 * mips-tdep.c (mips_unwind_pc): New function.
12322 (mips_gdbarch_init): Set mips_unwind_pc.
12323
12324 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
12325 (get_frame_id): Allow the UNKNOWN_FRAME.
12326 (frame_register_unwind, get_frame_type): Ditto.
12327
12328 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
12329 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
12330 unwind_dummy_id indicates a legacy frame.
12331
12332 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
12333 * configure: Re-generate.
12334
12335 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
12336 methods.
12337
12338 2004-02-08 Andrew Cagney <cagney@redhat.com>
12339
12340 * configure.in (CONFIG_ALL): Set to Makefile target, and not
12341 makefile macro.
12342 * configure: Re-generate.
12343 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
12344 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
12345 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
12346 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
12347 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
12348 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
12349 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
12350 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
12351 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
12352 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
12353
12354 2004-02-07 Andrew Cagney <cagney@redhat.com>
12355
12356 * Makefile.in: Update all dependencies.
12357
12358 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
12359 * configure: Re-generate.
12360 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
12361 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
12362 (COMMON_OBS): Add "main.o" and "annotate.o".
12363 (ANNOTATE_OBS): Delete.
12364 (OBS): Remove ANNOTATE_OBS.
12365 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
12366 CONFIG_INITS.
12367 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
12368 against CONFIG_OBS and "main.o".
12369 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
12370 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
12371
12372 * tui/tui-command.c: Include "gdb_string.h", delete register
12373 attribute, use ISO-C function signatures.
12374 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
12375 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
12376 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
12377 * tui/tui.c: Ditto.
12378
12379 * tui/tui-command.c: Change variable and function names to lower
12380 case.
12381 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
12382 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
12383 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
12384 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12385 * tui/tui-winsource.c, tui/tui.c: Ditto.
12386
12387 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
12388
12389 * buildsym.c (free_pending_blocks, finish_block)
12390 (record_pending_block, make_blockvector, end_symtab): Replace
12391 symbol_obstack with objfile_obstack.
12392 * coffread.c (process_coff_symbol, coff_read_struct_type)
12393 (coff_read_enum_type): Ditto.
12394 * cp-namespace.c (initialize_namespace_symtab)
12395 (check_one_possible_namespace_symbol): Ditto.
12396 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
12397 (dwarf2_symbol_mark_computed): Ditto.
12398 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
12399 * elfread.c (elf_symtab_read): Ditto.
12400 * hpread.c (hpread_symfile_init, hpread_symfile_init)
12401 (hpread_read_enum_type, hpread_read_function_type)
12402 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
12403 Ditto.
12404 * jv-lang.c (get_java_class_symtab, add_class_symbol)
12405 (java_link_class_type): Ditto.
12406 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
12407 (new_symbol): Ditto.
12408 * minsyms.c (install_minimal_symbols): Ditto.
12409 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
12410 (terminate_minimal_symbol_table): Replace symbol_obstack with
12411 objfile_obstack.
12412 (free_objfile): Remove freeing of symbol_obstack.
12413 * objfiles.h: Remove symbol_obstack field.
12414 * pa64solib.c (add_to_solist): Replace symbol_obstack with
12415 objfile_obstack.
12416 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
12417 symbol_obstack.
12418 (solib_add_common_symbols): Replace symbol_obstack with
12419 objfile_obstack.
12420 * somsolib.c (som_solib_add): Ditto.
12421 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
12422 (common_block_start, common_block_end): Ditto.
12423 * symfile.c (reread_symbols): Remove freeing and init of
12424 symbol_obstack.
12425 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
12426 * symfile.h: Update comment.
12427 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
12428 stats printing.
12429 * symtab.c (symbol_set_names): Replace symbol_obstack with
12430 objfile_obstack.
12431 * symtab.h (struct general_symbol_info, struct minimal_symbol):
12432 Update comments.
12433 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
12434 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
12435 objfile_obstack.
12436
12437 2004-02-07 Andrew Cagney <cagney@redhat.com>
12438
12439 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
12440 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
12441 fields and variables.
12442 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
12443 (m_beInvisible): Delete macro.
12444 * tui/tui-data.h: Fix case case fields and variables.
12445 (m_genWinPtrIsNull): Delete macro.
12446 (tui_win_list): Rename winList.
12447 (TUI_SRC_WIN): Rename srcWin.
12448 (TUI_DISASM_WIN): Rename disassemWin.
12449 (TUI_DATA_WIN): Rename dataWin.
12450 (TUI_CMD_WIN): Rename cmdWin.
12451 (m_genWinPtrNotNull): Delete macro.
12452 (m_winPtrIsNull): Delete macro.
12453 (m_winPtrNotNull): Delete macro.
12454 (tui_win_is_source_type): Replace m_winIsSourceType
12455 (tui_win_is_auxillary): Replace m_winIsAuzillary.
12456 (tui_win_has_locator): Replace m_hasLocator.
12457 (tui_set_win_highlight): Replace m_setWinHighlightOn and
12458 m_setWinHighlightOff.
12459 * tui/tui-data.c: Update references.
12460 (tui_win_is_source_type, tui_set_win_highlight): New functions.
12461 (tui_win_has_locator, tui_win_is_auxillary): New functions.
12462 * tui/tui-command.c, tui/tui-disasm.c: Update references.
12463 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
12464 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
12465 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12466 * tui/tui-winsource.c, tui/tui.c: Ditto.
12467
12468 2004-02-07 Mark Kettenis <kettenis@gnu.org>
12469
12470 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
12471 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
12472 StackGhost.
12473
12474 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
12475 variable `i6' to `i7'.
12476 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
12477
12478 2004-02-07 Andrew Cagney <cagney@redhat.com>
12479
12480 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
12481 (TuiPoint, TuiPointPtr): Ditto.
12482 (TuiStatus, TuiStatusPtr): Ditto.
12483 (TuiWinType, TuiWinTypePtr): Ditto.
12484 (struct tui_point): Rename _TuiPoint.
12485 (tui_get_low_disassembly_address): Rename
12486 tuiGetLowDisassemblyAddress.
12487 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
12488 (tuiFree): Delete declaration.
12489 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
12490 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
12491 * tui/tui.c (tuiFree): Delete function.
12492 * cli/cli-cmds.c (disassemble_command): Update references.
12493 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
12494 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
12495 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
12496 * tui/tui-winsource.c: Ditto.
12497
12498 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
12499
12500 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
12501 coffstab_build_psymtabs, elfstab_build_psymtabs)
12502 (stabsect_build_psymtabs): Replace psymbol_obstack with
12503 objfile_obstack.
12504 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
12505 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
12506 Ditto.
12507 * dwarfread.c (scan_compilation_units): Ditto.
12508 * elfread.c (elfstab_offset_sections): Ditto.
12509 * hppa-tdep.c (read_unwind_info): Ditto.
12510 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
12511 (hpread_end_psymtab): Ditto.
12512 * mdebugread.c (mdebug_build_psymtabs, add_pending)
12513 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
12514 Ditto.
12515 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
12516 * objfiles.c (add_to_objfile_sections)
12517 (build_objfile_section_table): Ditto.
12518 (allocate_objfile): Remove init of psymbol_obstack.
12519 (free_objfile): Remove freeing of psymbol_obstack.
12520 * objfiles.h (struct objfile): Remove field
12521 psymbol_obstack. Update comments.
12522 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
12523 psymbol_obstack with objfile_obstack.
12524 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
12525 psymbol_obstack.
12526 * somread.c (som_symfile_offsets, init_import_symbols)
12527 (init_export_symbols): Replace psymbol_obstack with
12528 objfile_obstack.
12529 * somsolib.c (som_solib_add_solib_objfile): Ditto.
12530 * symfile.c (default_symfile_offsets, syms_from_objfile)
12531 (reread_symbols): Remove freeing and init of psymbol_obstack.
12532 (cashier_psymtab): Update comment.
12533 * symmisc.c (print_objfile_statistics): Don't report stats for
12534 psymbol obstack.
12535 * symtab.h (struct general_symbol_info, struct partial_symtab):
12536 Update comments.
12537 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
12538 (xcoff_symfile_offsets): Replace psymbol_obstack with
12539 objfile_obstack.
12540
12541 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
12542
12543 * objfiles.h (struct objfile): Add objfile_obstack field.
12544 Remove type_obstack field.
12545
12546 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
12547 read_structure_scope read_enumeration, new_symbol): Replace
12548 type_obstack with objfile_obstack.
12549 * dwarfread.c (struct_type, enum_type): Ditto.
12550 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
12551 (lookup_fundamental_type): Ditto.
12552 * gdbtypes.h (TYPE_ALLOC): Ditto.
12553 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
12554 (hpread_read_doc_function_type, hpread_read_struct_type)
12555 (fix_static_member_physnames, hpread_read_array_type)
12556 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
12557 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
12558 (java_link_class_type): Ditto.
12559 * mdebugread.c (parse_type): Ditto.
12560 * objfiles.c (allocate_objfile, free_objfile): Ditto.
12561 * solib-sunos.c (solib_add_common_symbols): Ditto.
12562 * stabsread.c (define_symbol, read_type, read_member_functions,
12563 read_cpp_abbrev, read_one_struct_field): Ditto.
12564 * symfile.c (reread_symbols): Ditto.
12565 * symmisc.c (print_objfile_statistics): Ditto.
12566
12567 2004-02-07 Andrew Cagney <cagney@redhat.com>
12568
12569 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
12570 (tui_exec_info_content): Rename TuiExecInfoContent.
12571 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
12572 (TuiWinInfo, TuiWinInfoPtr): Ditto.
12573 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
12574 (TuiList, TuiListPtr): Ditto.
12575 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
12576 (TuiDataType, TuiDataTypePtr): Ditto.
12577 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
12578 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
12579 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
12580 (TuiSourceElement, TuiSourceElementPtr): Ditto.
12581 (TuiDataElement, TuiDataElementPtr): Ditto.
12582 (TuiWinElement, TuiWinElementPtr): Ditto.
12583 (TuiDataInfo, TuiDataInfoPtr): Ditto.
12584 (TuiCommandElement, TuiCommandElementPtr): Ditto.
12585 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
12586 (TuiWhichElement, TuiWhichElementPtr): Ditto.
12587 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
12588 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
12589 * tui/tui-command.c, tui/tui-data.c: Update references.
12590 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
12591 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
12592 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12593 * tui/tui-winsource.c, tui/tui.c: Ditto.
12594
12595 2004-02-07 Mark Kettenis <kettenis@gnu.org>
12596
12597 * dwarf2-frame.h: Update copyright.
12598 (enum dwarf2_frame_reg_rule): New.
12599 (struct dwarf2_frame_state_reg): New.
12600 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
12601 * dwarf2-frame.c: Update copyright.
12602 (enum dwarf2_reg_rule): Remove.
12603 (struct dwarf2_frame_state): Remove defenition of `struct
12604 dwarf2_frame_state_reg'.
12605 (read_reg): Call get_frame_arch to get the architecture instead of
12606 using CURRENT_GDBARCH.
12607 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
12608 DWARF2_FRAME_.
12609 (dwarf2_frame_init_reg): New function.
12610 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
12611 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
12612 initialize the register state. Prefix old `enum dwarf2_reg_rule'
12613 tags with DWARF2_FRAME_.
12614 (dwarf2_frame_prev_register): Call get_frame_arch to get the
12615 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
12616 dwarf2_reg_rule' tags with DWARF2_FRAME_.
12617
12618 2004-02-06 Andrew Cagney <cagney@redhat.com>
12619
12620 * tui/tui-data.h (struct tui_list): Rename _TuiList.
12621 (enum tui_data_type): Rename _TuiDataType.
12622 (struct tui_layout_def): Rename _TuiLayoutDef.
12623 (struct tui_source_element): Rename _TuiSourceElement.
12624 (struct tui_data_element): Rename _TuiDataElement.
12625 (struct tui_command_element): Rename _TuiCommandElement.
12626 (struct tui_locator_element): Rename _TuiLocatorElement.
12627 (union tui_which_element): Define.
12628 (struct tui_win_element): Rename _TuiWinElement.
12629 (struct tui_data_info): Rename _TuiDataInfo.
12630 (struct tui_source_info): Rename _TuiSourceInfo.
12631 (struct tui_command_info): Rename _TuiCommandInfo.
12632 (tui_initialize_static_data): Rename initializeStaticData.
12633 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
12634 (tui_alloc_win_info): Rename allocWinInfo.
12635 (tui_init_generic_part): Rename initGenericPart.
12636 (tui_init_win_info): Rename initWinInfo.
12637 (tui_alloc_content): Rename allocContent.
12638 (tui_add_content_elements): Rename addContentElements.
12639 (tui_init_content_element): Rename initContentElement.
12640 (tui_free_window): Rename freeWindow.
12641 (tui_free_win_content): Rename freeWinContent.
12642 (tui_free_data_content): Rename freeDataContent.
12643 (tui_free_all_source_wins_content): Rename
12644 freeAllSourceWinsContent.
12645 (tui_del_window): Rename tuiDelWindow.
12646 (tui_del_data_windows): Rename tuiDelDataWindows.
12647 (tui_partial_win_by_name): Rename partialWinByName.
12648 (tui_win_name): Rename winName.
12649 (tui_current_layout): Rename currentLayout.
12650 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
12651 (tui_term_height): Rename termHeight.
12652 (tui_set_term_height_to): Rename setTermHeightTo.
12653 (tui_term_width): Rename termWidth.
12654 (tui_set_term_width_to): Rename setTermWidthTo.
12655 (tui_set_gen_win_origin): Rename setGenWinOrigin.
12656 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
12657 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
12658 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
12659 (tui_source_windows): Rename sourceWindows.
12660 (tui_clear_source_windows): Rename clearSourceWindows.
12661 (tui_clear_source_windows_detail): Rename
12662 clearSourceWindowsDetail.
12663 (tui_clear_win_detail): Rename clearWinDetail.
12664 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
12665 (tui_default_tab_len): Rename tuiDefaultTabLen.
12666 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
12667 (tui_win_with_focus): Rename tuiWinWithFocus.
12668 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
12669 (tui_layout_def): Rename tuiLayoutDef.
12670 (tui_win_resized): Rename tuiWinResized.
12671 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
12672 (tui_next_win): Rename tuiNextWin.
12673 (tui_prev_win): Rename tuiPrevWin.
12674 (tui_add_to_source_windows): Rename addToSourceWindows.
12675 * tui/tui-winsource.c, tui/tui-win.c: Update references.
12676 * tui/tui-layout.c, tui/tui-source.c: Ditto.
12677 * tui/tui-stack.c, tui/tui-io.c: Ditto.
12678 * tui/tui.c, tui/tui-data.c: Ditto.
12679 * tui/tui-interp.c, tui/tui-data.c: Ditto.
12680 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
12681
12682 * tui/tui-source.h: Update copyright. Include "tui-data.h".
12683 (struct symtab): Declare.
12684 (tui_set_source_content): Rename tuiSetSourceContent.
12685 (tui_show_symtab_source): Rename tuiShowSource.
12686 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
12687 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
12688 * tui/tui-source.c: Update copyright. Update references.
12689 * tui/tui-win.c, tui/tui-winsource.c: Update references.
12690 * tui/tui-stack.c: Update references.
12691
12692 * tui/tui-win.h: Update copyright. Include "tui-data.h".
12693 (struct tui_win_info): Declare.
12694 (tui_scroll_forward): Rename tuiScrollForward.
12695 (tui_scroll_backward): Rename tuiScrollBackward.
12696 (tui_scroll_left): Rename tuiScrollLeft.
12697 (tui_scroll_right): Rename tuiScrollRight.
12698 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
12699 (tui_resize_all): Rename tuiResizeAll.
12700 (tui_refresh_all_win): Rename tuiRefreshAll.
12701 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
12702 * tui/tui-layout.c, * tui/tui-io.c: Update references.
12703 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
12704 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
12705
12706 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
12707 (tui_erase_data_content): Rename tuiEraseDataContent.
12708 (tui_display_all_data): Rename tuiDisplayAllData.
12709 (tui_check_data_values): Rename tuiCheckDataValues.
12710 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
12711 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
12712 (tui_first_data_element_no_in_line): Rename
12713 tuiFirstDataElementNoInLine.
12714 (tui_delete_data_content_windows): Rename
12715 tuiDeleteDataContentWindows.
12716 (tui_refresh_data_win): Rename tuiRefreshDataWin.
12717 (tui_display_data_from): Rename tuiDisplayDataFrom.
12718 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
12719 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
12720 * tui/tui-win.c, tui/tui-regs.c: Update references.
12721 * tui/tui-layout.c, tui/tui.c: Update references.
12722
12723 * tui/tui-wingeneral.h: Update copyright.
12724 (m_allBeVisible): Delete macro.
12725 (m_allBeInvisible): Delete macro.
12726 (struct tui_gen_win_info): Declare.
12727 (struct tui_win_info): Declare.
12728 (tui_unhighlight_win): Rename unhighlightWin.
12729 (tui_make_visible, tui_make_invisible): Replace makeVisible.
12730 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
12731 (tui_make_window): Rename makeWindow.
12732 (tui_copy_win): Rename copyWin.
12733 (tui_box_win): Rename boxWin.
12734 (tui_highlight_win): Rename highlightWin.
12735 (tui_check_and_display_highlight_if_needed): Rename
12736 checkAndDisplayHighlightIfNeeded.
12737 (tui_refresh_all): Rename refreshAll.
12738 (tui_delete_win): Rename tuiDelwin.
12739 (tui_refresh_win): Rename tuiRefreshWin.
12740 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
12741 (tui_make_visible, tui_make_invisible): New functions.
12742 (tui_make_all_visible, tui_make_all_invisible): New functions.
12743 (make_all_visible): Rename makeAllVisible.
12744 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
12745 * tui/tui-data.c, tui/tui-winsource.c: Update references.
12746 * tui/tui-windata.c, tui/tui-win.c: Update references.
12747 * tui/tui-regs.c, tui/tui-layout.c: Update references.
12748 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
12749
12750 2004-02-06 Mark Kettenis <kettenis@gnu.org>
12751
12752 * proc-api.c (write_with_trace): Initialize local variable to
12753 silence compiler warning.
12754
12755 2004-02-06 Andrew Cagney <cagney@redhat.com>
12756
12757 * tui/tui-source.h: Do not include "defs.h".
12758 (struct tui_win_info): Declare.
12759 (tui_set_source_content_nil): Declare.
12760 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
12761 (union tui_line_or_address): Rename _TuiLineOrAddress.
12762 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
12763 (tui_update_source_window): Rename tuiUpdateSourceWindow.
12764 (tui_update_source_window_as_is): Rename
12765 tuiUpdateSourceWindowAsIs.
12766 (tui_update_source_windows_with_addr): Rename
12767 tuiUpdateSourceWindowsWithAddr.
12768 (tui_update_source_windows_with_line): Rename
12769 tuiUpdateSourceWindowsWithLine.
12770 (tui_clear_source_content): Rename tuiClearSourceContent.
12771 (tui_erase_source_content): Rename tuiEraseSourceContent.
12772 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
12773 (tui_show_source_content): Rename tuiShowSourceContent.
12774 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
12775 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
12776 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
12777 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
12778 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
12779 (tui_update_exec_info): Rename tuiUpdateExecInfo.
12780 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
12781 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
12782 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
12783 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
12784 (struct tui_win_info): Declare.
12785 * tui/tui-stack.c: Update references.
12786 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
12787 * tui/tui-win.c, tui/tui-source.c: Ditto.
12788 * tui/tui.c, tui/tui-disasm.c: Ditto.
12789
12790 2004-02-06 Mark Kettenis <kettenis@gnu.org>
12791
12792 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
12793 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
12794
12795 2004-02-05 Mark Kettenis <kettenis@gnu.org>
12796
12797 * infrun.c (handle_inferior_event): Allow for breakpoint
12798 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
12799 and SIGEMT. Update comments.
12800 * NEWS (Revised SPARC target): Mention support for non-executable
12801 stack.
12802
12803 2004-02-04 Mark Kettenis <kettenis@gnu.org>
12804
12805 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
12806 * inftarg.c: Update copyright year.
12807 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
12808 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
12809 (sparc_xfer_wcookie): New function.
12810 * sparc-tdep.c (sparc_fetch_wcookie): New function.
12811 * Makefile.in (sparc-nat.o): Update dependencies.
12812 * config/sparc/nm-nbsd.h: Include "target.h".
12813 (NATIVE_XFER_WCOOKIE): New define.
12814 (sparc_xfer_wcookie): New prototype.
12815
12816 2004-02-04 Andrew Cagney <cagney@redhat.com>
12817
12818 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
12819 SYSCALL_TRAP function.
12820 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
12821
12822 2004-02-04 Andrew Cagney <cagney@redhat.com>
12823 Daniel Jacobowitz <drow@mvista.com>
12824
12825 * objfiles.h: Delete comments refering to inside_entry_func and
12826 DEPRECATED_FRAME_CHAIN_VALID.
12827 * defs.h (inside_entry_func): Update prototype..
12828 * blockframe.c (inside_entry_func): Rename to
12829 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
12830 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
12831
12832 2004-02-03 Jeff Johnston <jjohnstn@redhat.com>
12833
12834 * breakpoint.c (struct captured_parse_breakpoint_args): Move
12835 outside of #ifdef SOLIB_ADD region.
12836 (do_restore_lang_radix_cleanup): Ditto.
12837 (resolve_pending_breakpoint): Ditto.
12838
12839 2004-02-03 Andrew Cagney <cagney@redhat.com>
12840
12841 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
12842 (process_note_abi_tag_sections): Delete unused function.
12843 (ia64_read_fp): Delete unused function.
12844 (gdbarch_extract_struct_value_address): Delete declaration.
12845
12846 2004-02-02 Andrew Cagney <cagney@redhat.com>
12847
12848 * vax-tdep.c (vax_frame_chain): Delete call to
12849 deprecated_inside_entry_file.
12850 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
12851
12852 2004-02-02 Mark Kettenis <kettenis@gnu.org>
12853
12854 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
12855 column that's "empty" or "same value" when eliminating REG_RA
12856 rules.
12857
12858 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
12859
12860 * NEWS: Add information about new pending breakpoint support.
12861
12862 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
12863
12864 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
12865 and pending fields for pending breakpoint support.
12866 * breakpoint.c (breakpoint_enabled): Add check for not pending.
12867 (condition_command): Only parse condition if not a pending
12868 breakpoint.
12869 (print_one_breakpoint): Add support for pending breakpoints.
12870 (describe_other_breakpoints): Add checks to verify we are not
12871 dealing with pending breakpoints.
12872 (check_duplicates): Don't check pending breakpoints.
12873 (set_raw_breakpoint): Initialize pending flag.
12874 (do_restore_lang_radix_cleanup): New cleanup routine.
12875 (resolve_pending_breakpoint): New function.
12876 (re_enable_breakpoints_in_shlibs): Try and resolve any
12877 pending breakpoints via resolve_pending_breakpoint.
12878 (mention): Add pending breakpoint support.
12879 (parse_breakpoint_sals): Add new parameter to pass to
12880 decode_line_1 to indicate silent errors when files or functions
12881 are not found. Change all callers.
12882 (do_captured_parse_breakpoint): New function.
12883 (break_command_1): Change prototype to return an rc value and to
12884 take an optional pending breakpoint pointer. Support creating
12885 a pending breakpoint if a "not found" form of error occurs when
12886 parsing the breakpoint. Also support resolving an existing pending
12887 breakpoint and be silent if the resolution fails.
12888 (create_breakpoints): Change prototype to take pending breakpoint
12889 pointer. When resolving a pending breakpoint, use the new pointer
12890 to provide a conditional or commands added by the end-user.
12891 (delete_breakpoint): Add appropriate check for pending.
12892 (breakpoint_re_set_one): Ditto.
12893 (do_enable_breakpoint): Ditto.
12894
12895 2004-02-02 David Carlton <carlton@kealia.com>
12896
12897 * valops.c (enum oload_classification): New.
12898 (find_overload_match): Break implementation into separate
12899 functions; delete #if 0'd code; look for symbols within
12900 namespaces.
12901 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
12902 (find_oload_champ,oload_method_static,classify_oload_match): New.
12903 * cp-support.h: Add declaration for cp_func_name; update
12904 declaration for make_symbol_overload_list.
12905 * cp-support.c (cp_func_name): New.
12906 (overload_list_add_symbol): Fix comment, use
12907 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
12908 (make_symbol_overload_list): Take a function name and a namespace
12909 instead of a symbol; change implementation.
12910 (make_symbol_overload_list_using): New.
12911 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
12912
12913 2004-02-02 Fred Fish <fnf@redhat.com>
12914
12915 * main.c (gdb_stdtarg): Move definition to group with other
12916 gdb_stdtarg definitions and update copyright years.
12917 * remote-sim.c (gdb_os_write_stderr): Write output to
12918 gdb_stdtargerr stream instead of gdb_stdtarg stream.
12919 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
12920 gdb_stderr stream and update copyright years.
12921
12922 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
12923
12924 * Makefile.in (mips-linux-nat.o): Update dependencies.
12925 * mips-linux-nat.c: Include mips-tdep.h.
12926
12927 2004-02-01 Roland McGrath <roland@redhat.com>
12928
12929 * sol-thread.c (sol_thread_xfer_partial): New function.
12930 (init_sol_thread_ops): Use that for to_xfer_partial hook.
12931 (init_sol_core_ops): Likewise.
12932
12933 * procfs.c (procfs_xfer_partial): New function.
12934 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
12935 * Makefile.in (procfs.o): Add $(auxv_h) dep.
12936
12937 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
12938 procfs_xfer_auxv function.
12939
12940 * procfs.c (procfs_make_note_section): If we can read
12941 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
12942 * linux-proc.c (linux_make_note_section): Likewise.
12943
12944 * auxv.h: New file.
12945 * auxv.c: New file.
12946 * Makefile.in (auxv_h): New variable.
12947 (COMMON_OBS): Add auxv.o here.
12948 (auxv.o): New target.
12949
12950 * corelow.c (core_xfer_partial): New function.
12951 (init_core_ops): Use it for core_ops.to_xfer_partial.
12952
12953 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
12954 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
12955 macro if that is defined.
12956
12957 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
12958
12959 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
12960 and check the specified thread for each breakpoint.
12961 * breakpoint.h (bpstat_stop_status): Update prototype.
12962 * infrun.c (handle_inferior_event): Update calls to
12963 bpstat_stop_status.
12964
12965 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
12966
12967 * Makefile.in (cli-cmds.o): Add $(readline_h).
12968
12969 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
12970
12971 * cli/cli-cmds.c: Include readline.h.
12972 (complete_command): Pass the start of the last word to
12973 complete_line.
12974
12975 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
12976
12977 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
12978 argument, and change first argument to a CORE_ADDR.
12979 * breakpoint.h (bpstat_stop_status): Update prototype.
12980 * infrun.c (adjust_pc_after_break): Add a new comment.
12981 (handle_inferior_event): Update calls to bpstat_stop_status.
12982
12983 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
12984
12985 * breakpoint.h: Update copyright years.
12986
12987 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
12988
12989 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
12990 (bpstat_stop_status): Don't decrement PC.
12991 * breakpoint.h (software_breakpoint_inserted_here_p): Add
12992 prototype.
12993 * infrun.c (adjust_pc_after_break): New function.
12994 (handle_inferior_event): Call it, early. Remove later references
12995 to DECR_PC_AFTER_BREAK.
12996 (normal_stop): Add commentary.
12997
12998 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
12999
13000 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
13001 2004-01-27 double-free fix.
13002
13003 2004-01-31 Mark Kettenis <kettenis@gnu.org>
13004
13005 * sparc-tdep.c (sparc_fetch_wcookie): New function.
13006 (sparc32_frame_prev_register): Handle StackGhost.
13007 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
13008
13009 2004-01-29 Roland McGrath <roland@redhat.com>
13010
13011 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
13012 * configure: Regenerated.
13013
13014 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
13015 * Makefile.in (procfs.o): Add dep.
13016
13017 2004-01-28 Andrew Cagney <cagney@redhat.com>
13018
13019 * tui/tui-stack.h: Update copyright.
13020 (struct frame_info): Add opaque declaration.
13021 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
13022 (tui_show_locator_content): Rename tuiShowLocatorContent.
13023 (tui_show_frame_info): Rename tuiShowFrameInfo.
13024 * tui/tui-stack.c: Update copyright. Update references.
13025 * tui/tui-winsource.c: Update references.
13026 * tui/tui-win.c: Update references.
13027 * tui/tui-layout.c: Update references.
13028 * tui/tui-hooks.c: Update copyright, update references.
13029 * tui/tui.c: Update copyright, update references.
13030 * tui/tui-disasm.c: Update references.
13031
13032 2004-01-28 David Carlton <carlton@kealia.com>
13033
13034 * dwarf2read.c (add_partial_structure): Use demangled name if
13035 namespace equals "".
13036
13037 2004-01-27 Jim Blandy <jimb@redhat.com>
13038
13039 Clean up misapplied patch:
13040 * dwarf2read.c (determine_prefix): Change one of the two forward
13041 declarations for 'determine_prefix_aux' to a declaration for this.
13042 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
13043 argument to 'die_specification'.
13044
13045 * dwarf2read.c (read_func_scope): Re-indent comment.
13046
13047 2004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
13048
13049 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
13050 b->exp to NULL after freeing so that error during re-parsing or
13051 evaluation of expressions associated with breakpoint don't
13052 eventually lead to re-freeing of storage.
13053 Committed by Andrew Cagney.
13054
13055 2004-01-27 Andrew Cagney <cagney@redhat.com>
13056
13057 * source.c (ambiguous_line_spec): Delete undefined declaration.
13058 * m32r-rom.c (m32r_set_board_address): Delete unused function.
13059 (m32r_set_server_address, m32r_set_download_path): Ditto.
13060 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
13061
13062 2004-01-27 Daniel Jacobowitz <drow@mvista.com>
13063
13064 * dwarf2read.c: Update calls to changed and renamed functions, and
13065 references to moved variables.
13066
13067 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
13068 language, language_defn, list_in_scope, and ftypes members.
13069 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
13070 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
13071 (baseaddr): Remove globals.
13072
13073 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
13074 (set_cu_language, die_is_declaration, die_specification)
13075 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
13076 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
13077 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
13078 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
13079
13080 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
13081 cu.list_in_scope. Don't initialize cu_header_offset.
13082 (add_partial_symbol): Add local baseaddr.
13083 (psymtab_to_symtab_1): Add local baseaddr. Use
13084 objfile->section_offsets for consistency. Don't initialize
13085 cu_header_offset; do initialize cu.header.offset and
13086 cu.list_in_scope.
13087 (read_file_scope, read_func_scope, read_lexical_block_scope)
13088 (dwarf_decode_lines, new_symbol): Add local baseaddr.
13089
13090 2004-01-27 Michael Chastain <mec.gnu@mindspring.com>
13091
13092 * PROBLEMS: Add gdb/1516.
13093
13094 2003-12-29 Robert Millan <robertmh@gnu.org>
13095
13096 Patch committed by Andrw Cagney.
13097 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
13098 * configure.tgt: Match knetbsd*-gnu.
13099
13100 2004-01-26 Andrew Cagney <cagney@redhat.com>
13101
13102 * breakpoint.c (catch_command_1): Delete #ifdef code.
13103 (catch_fork_command_1): Delete #ifdef wrapper.
13104 (catch_exec_command_1): Ditto.
13105 (catch_load_command_1): Ditto.
13106 (catch_unload_command_1): Ditto.
13107
13108 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
13109 (catch_breakpoint): Delete #if0ed function.
13110 (disable_catch_breakpoint): Ditto.
13111 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
13112 (disable_catch, enable_catch, delete_catch): Ditto.
13113
13114 2004-01-26 Andrew Cagney <cagney@redhat.com>
13115
13116 * remote.c (echo_check, quit_flag): Delete variables.
13117 (cisco_kernel_mode): Delete variable.
13118 (minitelnet_return, tty_input, escape_count): Delete variables.
13119 (remote_cisco_mode): Delete variable.
13120 (remote_cisco_open, remote_cisco_close): Delete function.
13121 (remote_cisco_mourn, remote_cisco_wait): Delete function.
13122 (init_remote_cisco_ops): Delete function.
13123 (_initialize_remote): Do not install "remote cisco" code.
13124 (read_frame): Delete cisco specific code.
13125 (remote_info_process): Delete function.
13126 (remote_wait): Delete cisco specific code.
13127 (remote_cisco_section_offsets): Delete function.
13128 (remote_cisco_objfile_relocate): Delete function.
13129 (remote_async_wait): Delete cisco specific code.
13130 (minitelnet, readtty, readsocket): Delete function.
13131
13132 2004-01-26 Andrew Cagney <cagney@redhat.com>
13133
13134 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
13135 comments mentioning extract_returned_value_address.
13136 * infcmd.c (print_return_value): Update. Add comments on
13137 extract_returned_value_address.
13138 * stack.c (return_command): Add comments on
13139 extract_returned_value_address.
13140 * values.c: Update comment.
13141 * m32r-tdep.c: Update comment.
13142 * sparc-tdep.c: Update comment.
13143 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
13144 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
13145 * sh64-tdep.c (sh64_gdbarch_init): Update.
13146 * sh-tdep.c (sh_gdbarch_init): Update.
13147 * s390-tdep.c (s390_gdbarch_init): Update.
13148 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
13149 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
13150 * m68k-tdep.c (m68k_gdbarch_init): Update.
13151 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
13152 * m32r-tdep.c (m32r_gdbarch_init): Update.
13153 * ia64-tdep.c (ia64_gdbarch_init): Update.
13154 * h8300-tdep.c (h8300_gdbarch_init): Update.
13155 * frv-tdep.c (frv_gdbarch_init): Update.
13156 * arm-tdep.c (arm_gdbarch_init): Update.
13157 * alpha-tdep.c (alpha_gdbarch_init): Update.
13158
13159 2004-01-26 Andrew Cagney <cagney@redhat.com>
13160
13161 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
13162 SYMBOL_LOCATION_FUNCS
13163 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
13164 "struct symbol_ops".
13165 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
13166 type to "struct symbol_ops".
13167 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
13168 (struct symbol): Replace ".aux_value.loc.funcs" and
13169 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
13170 (SYMBOL_OBJFILE): Delete macro.
13171 (SYMBOL_LOCATION_FUNCS): Delete macro.
13172 (SYMBOL_LOCATION_BATON): Update.
13173 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
13174 intead of SYMBOL_LOCATION_FUNCS.
13175 * ax-gdb.c (gen_var_ref): Ditto.
13176 * printcmd.c (address_info): Ditto.
13177 * findvar.c (read_var_value): Ditto.
13178 (symbol_read_needs_frame): Ditto.
13179
13180 2004-01-26 Andrew Cagney <cagney@redhat.com>
13181
13182 * dwarf2read.c (read_func_scope): Document frame-base hack.
13183
13184 2004-01-25 Mark Kettenis <kettenis@gnu.org>
13185
13186 * infcmd.c (print_return_value): Plug memory leak; delete
13187 ui_stream object. Rename argument `structure_return' to
13188 `struct_return'.
13189
13190 2004-01-25 Mark Kettenis <kettenis@gnu.org>
13191
13192 * infcmd.c (print_return_value): Wrap long lines.
13193 (finish_command_continuation, finish_command): Remove unused
13194 variable `funcaddr'. Fix some coding-standards problems.
13195
13196 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
13197 SECT_SIZE is large enough, not whether it's exactly the right size.
13198 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
13199 TDEP->fpregset to zero.
13200
13201 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
13202 floating-point registers for traditional NetBSD core files.
13203 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
13204 TDEP->sizeof_fpregset here.
13205
13206 2004-01-25 Mark Kettenis <kettenis@gnu.org>
13207
13208 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
13209 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
13210 function with code split out from
13211 sparc32nbsd_sigcontext_frame_cache.
13212 (sparc32nbsd_sigcontext_frame_cache): Use
13213 sparc32nbsd_sigcontext_saved_regs.
13214 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
13215 OpenBSD.
13216 * sparcobsd-tdep.c: New file.
13217 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
13218 (sparcobsd-tdep.o): New dependency.
13219 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
13220 * config/sparc/obsd.mt: New file.
13221
13222 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
13223 TDEP->fpregset to be initialized to enable core file register
13224 sets.
13225
13226 2004-01-24 Mark Kettenis <kettenis@gnu.org>
13227
13228 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
13229 Add opaque declarations.
13230 (sparc64nbsd_sigcontext_saved_regs): New prototype.
13231 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
13232 function with code split out from
13233 sparc64nbsd_sigcontext_frame_cache.
13234 (sparc64nbsd_sigcontext_frame_cache): Use
13235 sparc64nbsd_sigcontext_saved_regs.
13236 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
13237 OpenBSD.
13238 * sparc64obsd-tdep.c: New file.
13239 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
13240 (sparc64obsd-tdep.o): New dependency.
13241 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
13242 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
13243 * config/sparc/obsd64.mt: New file.
13244
13245 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
13246 read the instruction at PC.
13247
13248 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
13249 value of GDB_OSABI_DEFAULT.
13250 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
13251 instead of GDB_OSABI_NETBSD_AOUT.
13252
13253 2004-01-24 Nick Roberts <nick@nick.uklinux.net>
13254
13255 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
13256 copyright.
13257
13258 2004-01-23 Andrew Cagney <cagney@redhat.com>
13259
13260 * printcmd.c (display_command): Replace tui_set_display call with
13261 tui_set_layout_for_display_command.
13262 * tui/tui.h (enum tui_win_type): Define.
13263 (tui_set_layout): Delete declaration.
13264 (tui_set_layout_for_display_command): Rename set_tui_layout.
13265 * tui/tui-data.h (enum tui_layout_type): Define.
13266 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
13267 "tui.h".
13268 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
13269 (tui_default_win_height): Rename tuiDefaultWinHeight.
13270 (tui_default_win_viewport_height): Rename
13271 tuiDefaultWinViewportHeight.
13272 (tui_set_layout): RenametuiSetLayout.
13273 * tui/tui-layout.c: Update references.
13274 * tui/tui.c: Update references.
13275 * tui/tui-disasm.c: Update references.
13276
13277 2004-01-23 David Carlton <carlton@kealia.com>
13278
13279 Partial workaround for PR c++/1511:
13280 * cp-namespace.c: Include frame.h.
13281 (cp_lookup_transparent_type): New
13282 (cp_lookup_transparent_type_loop): New.
13283 * cp-support.h: Declare cp_lookup_transparent_type.
13284 * symtab.c (basic_lookup_transparent_type): Renamed from
13285 lookup_transparent_type.
13286 (lookup_transparent_type): Replace old body by a call to
13287 current_language->la_lookup_transparent_type.
13288 * symtab.h: Update copyright. Declare
13289 basic_lookup_transparent_type.
13290 * language.h: Update copyright.
13291 (struct language_defn): Add la_lookup_transparent_type.
13292 * language.c: Update copyright.
13293 (unknown_language_defn): Add basic_lookup_transparent_type.
13294 (auto_language_defn): Add basic_lookup_transparent_type.
13295 (local_language_defn): Add basic_lookup_transparent_type.
13296 * ada-lang.c: Update copyright.
13297 (ada_language_defn): Add basic_lookup_transparent_type.
13298 * c-lang.c: Update copyright.
13299 (c_language_defn): Add basic_lookup_transparent_type.
13300 (cplus_language_defn): Add basic_lookup_transparent_type.
13301 (asm_language_defn): Add basic_lookup_transparent_type.
13302 (minimal_language_defn): Add basic_lookup_transparent_type.
13303 * f-lang.c: Update copyright.
13304 (f_language_defn): Add basic_lookup_transparent_type.
13305 * jv-lang.c: Update copyright.
13306 (java_language_defn): Add basic_lookup_transparent_type.
13307 * m2-lang.c: Update copyright.
13308 (m2_language_defn): Add basic_lookup_transparent_type.
13309 * objc-lang.c: Update copyright.
13310 (objc_language_defn): Add basic_lookup_transparent_type.
13311 * p-lang.c: Update copyright.
13312 (p_language_defn): Add basic_lookup_transparent_type.
13313 * scm-lang.c: Update copyright.
13314 (scm_language_defn): Add basic_lookup_transparent_type.
13315 * Makefile.in (cp-namespace.o): Depend on frame.h.
13316
13317 2004-01-23 David Carlton <carlton@kealia.com>
13318
13319 Patch for PR c++/1520:
13320 * dwarf2read.c (read_func_scope): Set processing_current_prefix
13321 properly if we have a specification die.
13322 (determine_prefix_aux): Rename from determine_prefix.
13323 (determine_prefix): Like the old determine_prefix, but never
13324 returns NULL.
13325
13326 2004-01-23 Theodore A. Roth <troth@openavr.org>
13327
13328 * avr-tdep.c: Update copyright.
13329 (avr_iaddr_p): Delete unused function.
13330 (avr_saddr_p): Delete unused function.
13331
13332 2004-01-23 David Carlton <carlton@kealia.com>
13333
13334 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
13335 Fix for PR symtab/1534.
13336
13337 2004-01-23 Mark Kettenis <kettenis@gnu.org>
13338
13339 * NEWS (New native configurations): Mention OpenBSD/sparc and
13340 OpenBSD/sparc64.
13341 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
13342 * configure.host: Likewise.
13343 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
13344 handler for OpenBSD.
13345 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
13346
13347 2004-01-22 Mark Kettenis <kettenis@gnu.org>
13348
13349 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
13350 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
13351
13352 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
13353 * cli/cli-cmds.c (shell_escape): Likewise.
13354
13355 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
13356 OpenBSD .note.openbsd.ident sections.
13357
13358 2004-01-22 David Carlton <carlton@kealia.com>
13359
13360 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
13361 get_scope_pc_bounds.
13362 (read_file_scope): Ditto.
13363 (get_scope_pc_bounds): New function, produced by extracting code
13364 from the above two functions, consolidating it, and adding support
13365 for DW_TAG_namespace.
13366
13367 2004-01-22 Mark Kettenis <kettenis@gnu.org>
13368
13369 * osabi.c (MAX_NOTESZ): New define.
13370 (check_note): New function.
13371 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
13372 check_note.
13373
13374 2004-01-21 Roland McGrath <roland@redhat.com>
13375
13376 * MAINTAINERS (write after approval): Add myself.
13377
13378 2004-01-21 Eli Zaretskii <eliz@gnu.org>
13379
13380 * utils.c (init_page_info): Move declarations of `rows' and
13381 `cols' before the __GO32__-specific code. Move the closing brace
13382 outside the #ifdef __GO32__..#endif block.
13383 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
13384
13385 2004-01-21 Paul Brook <paul@codesourcery.com>
13386
13387 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
13388 BPSTAT_WHAT_CHECK_SHLIBS.
13389
13390 2004-01-21 Paul Brook <paul@codesourcery.com>
13391
13392 * MAINTAINERS: Add myself to write-after-approval.
13393
13394 2004-01-20 Andrew Cagney <cagney@redhat.com>
13395
13396 * ax-gdb.c (print_axs_value): Delete unused function.
13397 * jv-lang.c (java_lookup_type): Delete unused function.
13398 * cli/cli-dump.c (dump_filetype): Delete unused function.
13399 * remote-mips.c (remote_mips_insert_hw_breakpoint)
13400 (remote_mips_remove_hw_breakpoint): Delete unused functions.
13401 (mips_getstring): Delete unused function.
13402 (pmon_insert_breakpoint): Delete #if0ed function.
13403 (PMON_MAX_BP): Delete #if0ed MACRO.
13404 (mips_pmon_bp_info): Delete #if0ed variable.
13405 (pmon_remove_breakpoint): Delete #if0ed function.
13406 * monitor.c (monitor_write_even_block): Delete unused function.
13407 (monitor_write_memory_block): Delete #if0ed code.
13408 * dink32-rom.c (dink32_load): Delete unused function.
13409 (_initialize_dink32_rom): Delete #if0ed code.
13410 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
13411
13412 * tui/tui-command.c: Update references.
13413 * tui/tui-io.c: Update references.
13414 * tui/tui-command.h: Update copyright.
13415 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
13416
13417 * source.c (ambiguous_line_spec): Delete never-defined function.
13418 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
13419 * gdbtypes.c (add_name, add_mangled_type): Ditto.
13420 * cli/cli-cmds.c (validate_comname): Ditto.
13421
13422 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
13423 "tui-data.h".
13424 (tui_set_disassem_content): Rename tuiSetDisassemContent.
13425 (tui_show_disassem): Rename tuiShowDisassem.
13426 (tui_show_disassem_and_update_source): Rename
13427 tuiVerticalDisassemScroll.
13428 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
13429 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
13430 * tui/tui.h: Update copyright.
13431 (enum tui_status): Define.
13432 * tui/tui-data.h (enum tui_scroll_direction): Define.
13433 * tui/tui-disasm.c: Update copyright. Update references.
13434 * tui/tui-winsource.c: Update copyright. Update references.
13435 * tui/tui-win.c: Update references.
13436 * tui/tui-layout.c: Update references.
13437
13438 2004-01-20 Andrew Cagney <cagney@redhat.com>
13439
13440 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
13441 sym2 to start of block.
13442
13443 2004-01-19 Michael Chastain <mec.gnu@mindspring.com>
13444
13445 * MAINTAINERS: Delete mmalloc.
13446 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
13447 * NEWS: Mention removal of --with-malloc.
13448 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
13449 * config.in: Regenerate.
13450 * configure: Regenerate.
13451 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
13452 USE_MMALLOC, MMCHECK_FORCE.
13453 * gdbinit.in: Remove mmalloc.
13454 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
13455 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
13456 * config/i386/go32.mh: Likewise.
13457 * config/i386/interix.mh: Likewise.
13458 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
13459
13460 2004-01-19 Jeff Johnston <jjohnstn@redhat.com>
13461
13462 * linespec.c (decode_variable, symtab_from_filename): Call
13463 error_silent with error message instead of throwing an exception
13464 directly.
13465 * defs.h (error_silent, error_output_message): Add prototypes.
13466 (catch_exceptions_with_msg): Ditto.
13467 * utils.c (error_silent, error_output_message): New functions.
13468 * top.c (catch_exceptions_with_msg): New function.
13469
13470 2004-01-20 Nick Roberts <nick@nick.uklinux.net>
13471
13472 * mi/mi-cmds.h (enum print_values): Add definition.
13473
13474 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
13475 type and value for simple data types and just the name and type
13476 for complex ones, if required.
13477
13478 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
13479 children, if required.
13480
13481 2004-01-19 Kevin Buettner <kevinb@redhat.com>
13482
13483 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
13484 unused declarations.
13485
13486 2004-01-19 Andrew Cagney <cagney@redhat.com>
13487
13488 * top.h (mapped_symbol_files): Delete declaration.
13489 * main.c (captured_main): Delete option "m" and "mapped".
13490 * objfiles.c (mapped_symbol_files): Delete variable.
13491 * symfile.c (symbol_file_command): Delete mmap code.
13492 (symbol_file_add_with_addrs_or_offsets): Ditto.
13493 (add_symbol_file_command, reread_separate_symbols): Ditto.
13494 * objfiles.h (OBJF_MAPPED): Delete.
13495 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
13496 (free_objfile) [USE_MMALLOC]: Ditto.
13497 (open_existing_mapped_file): Delete function.
13498 (open_mapped_file): Delete function.
13499 (map_to_file): Delete function.
13500
13501 2004-01-19 Kevin Buettner <kevinb@redhat.com>
13502
13503 * infrun.c (step_into_function): Account for possible breakpoint
13504 adjustment when computing ``stop_func_start''.
13505
13506 2004-01-19 Kevin Buettner <kevinb@redhat.com>
13507
13508 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
13509 the region size against the size of a pointer, not the size of
13510 a register as given by DEPRECATED_REGISTER_SIZE.
13511
13512 2004-01-19 Andrew Cagney <cagney@redhat.com>
13513
13514 * tui/tui-regs.h: Include "tui-data.h".
13515 (tuiFirstRegElementNoInLine): Delete declaration.
13516 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
13517 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
13518 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
13519 (tui_calculate_regs_column_count): Rename
13520 tuiCalculateRegsColumnCount.
13521 (tui_check_register_values): Rename tuiCheckRegisterValues.
13522 (tui_show_registers): Rename tuiShowRegisters.
13523 (tui_display_registers_from_line): Rename
13524 tuiDisplayRegistersFromLine.
13525 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
13526 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
13527 (tui_first_reg_element_no_inline): Rename
13528 tuiFirstRegElementNoInLine.
13529 * tui/tui-data.h: Update copyright.
13530 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
13531 * tui/tui-windata.c: Update copyright, update references.
13532 * tui/tui-regs.c: Update copyright, update references.
13533 * tui/tui-win.c: Update copyright, update references.
13534 * tui/tui-layout.c: Update copyright, update references.
13535
13536 2004-01-18 Andrew Cagney <cagney@redhat.com>
13537
13538 * tui/tui-io.c: Update copyright.
13539 (key_is_end_sequence, key_is_backspace): New functions.
13540 (key_is_command_char, key_is_start_sequence): New function.
13541 (tui_getc): Update references.
13542 * tui/tui-io.h: Update copyright.
13543 (m_tuiStartNewLine): Delete macro.
13544 (m_isBackspace, m_isDeleteChar): Delete macros.
13545 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
13546 (m_isNextPage, m_isPrevPage): Delete macros.
13547 (m_isLeftArrow, m_isRightArrow): Delete macros.
13548 (m_isXdbStyleCommandChar): Delete macro.
13549 (key_is_start_sequence): Declare, replace m_isStartSequence.
13550 (key_is_end_sequence): Declare, replace m_isEndSequence.
13551 (key_is_backspace): Declare ,replace m_isBackspace.
13552 (key_is_command_char): Declare, replace m_isCommandChar.
13553 * tui/tui-command.c: Update copyright.
13554 (tuiDispatchCtrlChar): Update references.
13555
13556 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
13557 tuiSourceWin.h.
13558
13559 * tui/tui-command.c: Rename tui/tuiCommand.c.
13560 * tui/tui-command.h: Rename tui/tuiCommand.h.
13561 * tui/tui-data.c: Rename tui/tuiData.c.
13562 * tui/tui-data.h: Rename tui/tuiData.h.
13563 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
13564 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
13565 * tui/tui-io.c: Rename tui/tuiIO.c.
13566 * tui/tui-io.h: Rename tui/tuiIO.h.
13567 * tui/tui-layout.c: Rename tui/tuiLayout.c.
13568 * tui/tui-layout.h: Rename tui/tuiLayout.h.
13569 * tui/tui-regs.c: Rename tui/tuiRegs.c.
13570 * tui/tui-regs.h: Rename tui/tuiRegs.h.
13571 * tui/tui-source.c: Rename tui/tuiSource.c.
13572 * tui/tui-source.h: Rename tui/tuiSource.h.
13573 * tui/tui-stack.c: Rename tui/tuiStack.c.
13574 * tui/tui-stack.h: Rename tui/tuiStack.h.
13575 * tui/tui-win.c: Rename tui/tuiWin.c.
13576 * tui/tui-win.h: Rename tui/tuiWin.h.
13577 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
13578 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
13579 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
13580 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
13581 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
13582 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
13583 * tui/tui-file.c: Update includes.
13584 * tui/tui-hooks.c: Update includes.
13585 * tui/tui-interp.c: Update includes.
13586 * tui/tui.c: Update includes.
13587 * Makefile.in: Update all tui/ dependencies.
13588 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
13589
13590 * Makefile.in: Update copyright. Update dependencies.
13591
13592 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
13593 problem.
13594
13595 2004-01-18 Andrew Cagney <cagney@redhat.com>
13596
13597 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
13598 instead of register_gdbarch_init.
13599
13600 * remote-sds.c (tohex): Delete unused function. Update copyright.
13601 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
13602 * v850-tdep.c (v850_register_virtual_size): Ditto.
13603 * target.c (normal_target_post_startup_inferior): Ditto.
13604 * source.c (ambiguous_line_spec): Ditto.
13605 * remote.c (adapt_remote_get_threadinfo): Ditto.
13606 * mi/mi-out.c (out_field_fmt): Ditto.
13607 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
13608 (output_control_change_notification): Ditto.
13609 * m68k-tdep.c (m68k_register_byte): Ditto.
13610 (m68k_remote_breakpoint_from_pc): Ditto.
13611 * ui-out.c (init_ui_out_state): Delete unused declaration.
13612 * stabsread.c (search_value): Ditto.
13613 * mi/mi-cmd-env.c (env_cli_command): Ditto.
13614 * maint.c (print_section_table): Ditto.
13615 * infrun.c (set_follow_fork_mode_command): Ditto.
13616
13617 2004-01-18 Mark Kettenis <kettenis@gnu.org>
13618
13619 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
13620 DW_CFA_def_cfa_exporession. Add support for
13621 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
13622 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
13623
13624 2004-01-18 Andrew Cagney <cagney@redhat.com>
13625
13626 * ocd.c: Update copyright.
13627 (bdm_read_register_command): Delete unused function.
13628 (_initialize_remote_ocd): Delete commented out reference.
13629 (get_quoted_char, reset_packet): Delete #if0ed function.
13630 (output_packet, put_quoted_char): Delete #if0ed function.
13631 (stu_put_packet, stu_get_packet): Delete #if0ed function.
13632 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
13633 (BDM_BREAKPOINT): Delete #if0ed macro.
13634 (remote_timeout): Delete #if0ed variable.
13635
13636 2004-01-18 Mark Kettenis <kettenis@gnu.org>
13637
13638 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
13639 (core-sol2.o): Remove dependency.
13640 * core-sol2.c: Remove file.
13641
13642 2004-01-17 Andrew Cagney <cagney@redhat.com>
13643
13644 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
13645 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
13646 enums.
13647
13648 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13649
13650 * remote.c: Update copyright years.
13651
13652 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13653
13654 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
13655
13656 2004-01-17 Andrew Cagney <cagney@redhat.com>
13657
13658 * mdebugread.c: Update copyright.
13659 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
13660 (parse_type, parse_procedure): Ditto.
13661 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
13662
13663 * cris-tdep.c (cris_store_struct_return): Put back accidently
13664 deleted function.
13665
13666 * gdbarch.sh: Update copyright year.
13667 * gdbarch.h, gdbarch.c: Re-generate.
13668
13669 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13670
13671 Suggested by George Anzinger.
13672 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
13673 correct stack offset. Include unknown opcode numbers in the error
13674 message.
13675
13676 2004-01-17 Andrew Cagney <cagney@redhat.com>
13677
13678 * x86-64-tdep.c (x86_64_init_abi): No need to clear
13679 extract_struct_value_address, i386 does not set it.
13680 * sparc64-tdep.c (sparc64_init_abi): Do not set
13681 extract_struct_value_address, never called.
13682 (sparc64_extract_struct_value_address): Delete function.
13683 * m68hc11-tdep.c: Update copyright.
13684 (m68hc11_gdbarch_init): Delete redundant assignment of
13685 extract_struct_value_address.
13686 * i386-tdep.c: Update copyright.
13687 (i386_gdbarch_init): Do not set extract_struct_value_address,
13688 never called.
13689 (i386_extract_struct_value_address): Delete function.
13690 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
13691 extract_struct_value_address, never called.
13692 (sparc32_extract_struct_value_address): #if 0 function. Add
13693 comments explaining its future.
13694
13695 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13696
13697 * arm-tdep.c (arm_write_pc): New function.
13698 (arm_gdbarch_init): Call set_gdbarch_write_pc.
13699
13700 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13701
13702 * breakpoint.c (must_shift_inst_regs): Delete.
13703 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
13704 and SHIFT_INST_REGS.
13705 * infcmd.c (step_1, step_1_continuation): Delete references to
13706 SHIFT_INST_REGS.
13707 * infrun.c (keep_going): Likewise.
13708 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
13709 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
13710
13711 2004-01-17 Andrew Cagney <cagney@redhat.com>
13712
13713 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13714 * gdbarch.h, gdbarch.c: Re-generate.
13715 * infcmd.c (print_return_value): Delete reference to
13716 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
13717
13718 * cris-tdep.c (cris_gdbarch_init): Do not set
13719 deprecated_extract_struct_value_address.
13720
13721 * xstormy16-tdep.c: Update copyright.
13722 (xstormy16_extract_struct_value_address): Update to current
13723 extract struct value address interface.
13724 (xstormy16_gdbarch_init): Set extract_struct_value_address.
13725 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
13726 current extract struct value address interface.
13727 (sh64_gdbarch_init): Set extract_struct_value_address.
13728
13729 * cris-tdep.c: Update copyright.
13730 (cris_extract_struct_value_address): Delete function.
13731 (struct_return_address): Delete variable.
13732 (cris_store_struct_return): Do not set struct_return_address.
13733
13734 * mcore-tdep.c: Update copyright.
13735 (mcore_extract_struct_value_address): Delete function. Update
13736 comments.
13737 (mcore_gdbarch_init): Update.
13738 * mn10300-tdep.c: Update copyright.
13739 (mn10300_extract_struct_value_address): Delete function.
13740 (mn10300_gdbarch_init): Update.
13741 * v850-tdep.c: Update copyright.
13742 (v850_extract_struct_value_address): Delete.
13743 (v850_gdbarch_init): Update.
13744 * ns32k-tdep.c: Update copyright.
13745 (ns32k_extract_struct_value_address): Delete.
13746 (ns32k_gdbarch_init): Update.
13747 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
13748 (hppa_gdbarch_init): Update.
13749 * vax-tdep.c: Update copyright.
13750 (vax_extract_struct_value_address): Delete.
13751 (vax_gdbarch_init): Update.
13752
13753 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
13754 * gdbarch.h, gdbarch.c: Re-generate.
13755 * procfs.c (procfs_fetch_registers): Delete reference to
13756 DEPRECATED_NPC_REGNUM.
13757 (procfs_store_registers): Ditto.
13758 * regcache.c (generic_target_write_pc): Simplify.
13759 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
13760
13761 * core-sol2.c (fetch_core_registers): Replace
13762 DEPRECATED_NPC_REGNUM with equivalent tdep value.
13763
13764 * hppa-tdep.c: Update copyright year.
13765 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
13766 NPC_REGNUM.
13767 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
13768
13769 * mips-tdep.c (mips_write_pc): New function.
13770 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
13771 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
13772 (mips_find_saved_regs, mips_software_single_step: Ditto.
13773 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
13774 mips_init_extra_frame_info, mips_pop_frame): Ditto.
13775
13776 2004-01-17 Andrew Cagney <cagney@redhat.com>
13777
13778 * mips-tdep.c: Re-indent. Group functions by ABI.
13779
13780 2004-01-17 Andrew Cagney <cagney@redhat.com>
13781
13782 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
13783 * gdbarch.c: Re-generate.
13784 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
13785 DECR_PC_AFTER_BREAK to zero.
13786 * vax-tdep.c (vax_gdbarch_init): Ditto.
13787 * v850-tdep.c (v850_gdbarch_init): Ditto.
13788 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
13789 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
13790 * sh-tdep.c (sh_gdbarch_init): Ditto.
13791 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
13792 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
13793 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
13794 * mips-tdep.c (mips_gdbarch_init): Ditto.
13795 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
13796 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13797 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
13798 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
13799 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
13800 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
13801 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
13802 * frv-tdep.c (frv_gdbarch_init): Ditto.
13803 * cris-tdep.c (cris_gdbarch_init): Ditto.
13804 * avr-tdep.c (avr_gdbarch_init): Ditto.
13805 * arm-tdep.c (arm_gdbarch_init): Ditto.
13806 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
13807
13808 2004-01-17 J. Brobecker <brobecker@gnat.com>
13809
13810 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
13811 Delete, no longer used.
13812 (read_subrange_type): New function, mostly extracted from
13813 read_array_type().
13814 (read_array_type): Replace extracted code by call to
13815 read_subrange_type().
13816 (dwarf2_get_attr_constant_value): New function.
13817 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
13818 (add_partial_symbol): Likewise.
13819 (process_die): Likewise.
13820 (new_symbol): Likewise.
13821 (read_type_die): Likewise.
13822
13823 2004-01-16 Andrew Cagney <cagney@redhat.com>
13824
13825 * symfile.c: Update copyright year.
13826 (compare_symbols): Delete unused function.
13827 * stabsread.c: Update copyright year.
13828 (lrs_general_complaint): Delete unused function.
13829 (ref_search_value): Ditto.
13830 (get_substring): Delete declaration.
13831 * sh64-tdep.c: Update copyright year.
13832 (sh64_get_gdb_regnum): Delete unused function.
13833 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
13834 Delete unused function.
13835
13836 2004-01-17 Mark Kettenis <kettenis@gnu.org>
13837
13838 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
13839 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
13840
13841 2004-01-16 Andrew Cagney <cagney@redhat.com>
13842
13843 Changes from Peter Schauer.
13844 * rs6000-tdep.c: Update copyright year.
13845 (rs6000_push_dummy_call): Update the stack pointer before
13846 accessing the corresponding stack region.
13847 * rs6000-nat.c: Update copyright year.
13848 (set_host_arch): Set "info.abfd" to "exec_bfd".
13849
13850 2004-01-15 Mark Kettenis <kettenis@gnu.org>
13851
13852 * blockframe.c: Update copyright year.
13853 (inside_entry_func): Don't treat a zero PC specially.
13854
13855 2004-01-14 Elena Zannoni <ezannoni@redhat.com>
13856
13857 * gcore.c (gcore_copy_callback): Use paddr_d to print size
13858 variable.
13859 (gcore_create_callback): Ditto. Skip any memory segment that has
13860 no permissions set.
13861
13862 2004-01-14 David Carlton <carlton@kealia.com>
13863
13864 Change symbols for C++ nested types to contain the fully qualified
13865 name, if possible. (At least in the DWARF-2 case.) Partial fix
13866 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
13867 c++/895.
13868 * c-exp.y (qualified_type): Handle types nested within classes.
13869 * cp-namespace.c: Update comments.
13870 (cp_set_block_scope): Delete #if 0.
13871 (cp_lookup_nested_type): Handle types nested within classes.
13872 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
13873 when appropriate.
13874 (add_partial_symbol): Add the name of the enclosing namespace to
13875 types.
13876 (pdi_needs_namespace): New.
13877 (add_partial_namespace): Tweak comment.
13878 (add_partial_structure): New.
13879 (psymtab_to_symtab_1): Initialize processing_current_prefix
13880 here...
13881 (process_die): instead of here.
13882 (read_structure_scope): Try to figure out the name of the class or
13883 namespace that the structure might be defined within.
13884 (read_enumeration): Generate fully-qualified names, if possible.
13885 (read_namespace): Don't set name to NULL.
13886 (die_specification): New.
13887 (new_symbol): Generate fully-qualified names for types.
13888 (read_type_die): Determine appropriate prefix.
13889 (determine_prefix): New.
13890 (typename_concat): New.
13891 (class_name): New.
13892 * valops.c (value_aggregate_elt): Pass NOSIDE to
13893 value_struct_elt_for_reference.
13894 (value_struct_elt_for_reference): Make static, add NOSIDE
13895 parameter, call value_maybe_namespace_elt as a last resort.
13896 (value_namespace_elt): Break out code into
13897 value_maybe_namespace_elt.
13898 (value_maybe_namespace_elt): New.
13899
13900 2004-01-12 Andrew Cagney <cagney@redhat.com>
13901
13902 * mips-tdep.c (mips_convert_register_p): Handle both raw and
13903 cooked floating-point registers.
13904 (mips_gdbarch_init): Set convert_register_p, register_to_value,
13905 and value_to_register.
13906
13907 2004-01-13 Andrew Cagney <cagney@redhat.com>
13908
13909 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
13910 * gdbarch.c: Re-generate.
13911 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
13912 FUNCTION_START_OFFSET.
13913 * v850-tdep.c (v850_gdbarch_init): Ditto.
13914 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
13915 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
13916 * sh-tdep.c (sh_gdbarch_init): Ditto.
13917 * s390-tdep.c (s390_gdbarch_init): Ditto.
13918 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
13919 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
13920 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
13921 * mips-tdep.c (mips_gdbarch_init): Ditto.
13922 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
13923 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
13924 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13925 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
13926 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
13927 * i386-tdep.c (i386_gdbarch_init): Ditto.
13928 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
13929 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
13930 * frv-tdep.c (frv_gdbarch_init): Ditto.
13931 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
13932 * cris-tdep.c (cris_gdbarch_init): Ditto.
13933 * avr-tdep.c (avr_gdbarch_init): Ditto.
13934 * arm-tdep.c (arm_gdbarch_init): Ditto.
13935 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
13936
13937 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
13938
13939 * infrun.c (follow_fork_mode_ask): Remove.
13940 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
13941 (follow_fork): Simplify and remove internal error for
13942 follow_fork_mode_ask.
13943 (_initialize_infrun): Update "set follow-fork-mode" help text.
13944
13945 2004-01-13 Andrew Cagney <cagney@redhat.com>
13946
13947 * configure.in: Update copyright year.
13948 (build_warnings): Add -Wunused-label.
13949 * configure: Re-generate.
13950
13951 2004-01-12 Andrew Cagney <cagney@redhat.com>
13952
13953 * exec.h (exec_ops): Make "extern".
13954
13955 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
13956 the function is void.
13957 (mips_pseudo_register_write): Ditto.
13958
13959 2004-01-12 Andrew Cagney <cagney@redhat.com>
13960
13961 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
13962 call. Never defined.
13963 * sparc-tdep.h (struct frame_info): Add opaque declaration.
13964 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
13965 (struct sparc_gregset, struct regcache): Ditto.
13966 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
13967
13968 2004-01-12 Andrew Cagney <cagney@redhat.com>
13969
13970 * mi/ChangeLog: Delete file. Renamed to ...
13971 * mi/ChangeLog-1999-2003: New file.
13972 * tui/ChangeLog: Delete file. Renamed to ...
13973 * tui/ChangeLog-1998-2003: New file.
13974
13975 2004-01-11 Mark Kettenis <kettenis@gnu.org>
13976
13977 * sparc64nbsd-tdep.c: Include "regset.h".
13978 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
13979 Remove variables.
13980 (fetch_core_registers): Remove function.
13981 (sparc64nbsd_core_fns): Remove variable.
13982 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
13983 functions.
13984 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
13985 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
13986 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
13987
13988 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
13989 sparc_extract_struct_value_address.
13990 (sparc32_gdbarch_init): Set extract_struct_value_address.
13991 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
13992 function.
13993 (sparc64_init_abi): Set extract_struct_value_address. Don't set
13994 return_value_on_stack.
13995
13996 * NEWS: Mention that %cs and %ss have been added to the AMD64
13997 configurations
13998
13999 * frame.c: Update copyright year.
14000 (get_prev_frame): Improve comment.
14001
14002 * sparc64fbsd-tdep.c: Include "regset.h".
14003 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
14004 Remove variables.
14005 (fetch_core_registers): Remove function.
14006 (sparc64fbsd_core_fns): Remove variable.
14007 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
14008 functions.
14009 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
14010 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
14011 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
14012
14013 * sparcnbsd-tdep.c: Include "regset.h".
14014 (fetch_core_registers): Remove function.
14015 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
14016 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
14017 functions.
14018 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
14019 TDEP->fpregset.
14020 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
14021
14022 * sparc-tdep.h (struct regset): Provide opaque declaration.
14023 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
14024 fpregset and sizeof_fpregset members.
14025 * sparc-tdep.c (struct regset): Provide opaque declaration.
14026 (sparc_regset_from_core_section): New function.
14027 (sparc32_gdbarch_init): Initialize TDEP->gregset,
14028 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
14029 Set regset_from_core_section when appropriate.
14030
14031 2004-01-10 Mark Kettenis <kettenis@gnu.org>
14032
14033 * x86-64-tdep.c (amd64_non_pod_p): New function.
14034 (amd64_classify_aggregate): Return class memory for non-POD
14035 C++ structure types.
14036
14037 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
14038 argument. Use it to reserve a register if necessary.
14039 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
14040 amd64_push_arguments.
14041
14042 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
14043
14044 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
14045 register numbers in comments.
14046 * x86-64-tdep.h: Update copyright year.
14047 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
14048 Adjust for addition of %cs and %ss.
14049 * amd64fbsd-nat.c: Update copyright year.
14050 (reg_offset): Add register offsets for %cs and %ss.
14051 * amd64fbsd-tdep.c: Update copyright year.
14052 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
14053 (amd64fbsd_sc_reg_offset): Likewise.
14054 * x86-64-linux-nat.c: Update copyright year.
14055 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
14056 and %ss.
14057 * amd64nbsd-nat.c: Update copyright year.
14058 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
14059 * amd64nbsd-tdep.c: Update copyright year.
14060 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
14061 * x86-64-linux-tdep.c: Update copyright year.
14062 (user_to_gdb_regmap): Add mapping for %cs and %ss.
14063 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
14064 * regformats/reg-x86-64.dat: Add %cs and %ss.
14065
14066 * blockframe.c (inside_entry_func): Reformat. Introduce new local
14067 variables to prevent long lines. Update comments to reflect
14068 reality.
14069
14070 2004-01-09 David Carlton <carlton@kealia.com>
14071
14072 Checked in by Elena Zannoni <ezannoni@redhat.com>.
14073 * dwarf2read.c (read_namespace): Pull out name-generating code
14074 into namespace_name. Rename previous_namespace to previous_prefix
14075 and processing_current_namespace to processing_current_prefix..
14076 (namespace_name): New function.
14077 (add_partial_symbol): Substitute uses of pdi->name with
14078 actual_name.
14079 * cp-support.h: Rename processing_current_namespace to
14080 processing_current_prefix.
14081 Update copyright year.
14082 * cp-namespace.c: Rename processing_current_namespace to
14083 processing_current_prefix.
14084 Update copyright year.
14085
14086 2004-01-09 Andrew Cagney <cagney@redhat.com>
14087
14088 * jv-valprint.c, ser-unix.c: Add missing copyright years.
14089
14090 2004-01-09 Mark Kettenis <kettenis@gnu.org>
14091
14092 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
14093 complaining.
14094 (process_one_symbol): Deal with N_PATCH stabs.
14095
14096 2004-01-09 Elena Zannoni <ezannoni@redhat.com>
14097
14098 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
14099 ifdeffed code.
14100 Update copyright year.
14101
14102 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
14103
14104 * config/pa/tm-hppa.h: Update extern declarations for
14105 hppa32_hpux_frame_saved_pc_in_sigtramp,
14106 hppa32_hpux_frame_base_before_sigtramp, and
14107 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
14108
14109 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
14110
14111 * config/pa/tm-hppah.h: Update copyright years.
14112
14113 2004-01-08 Andrew Cagney <cagney@redhat.com>
14114
14115 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
14116 (mips_o32_reg_struct_has_addr): Delete function.
14117 (mips_gdbarch_init): Update.
14118 (mips_extract_struct_value_address): Delete function.
14119
14120 2004-01-08 David Mosberger <davidm@hpl.hp.com>
14121
14122 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
14123 reality.
14124
14125 2004-01-07 Andrew Cagney <cagney@redhat.com>
14126
14127 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
14128 architecture's elf flags (when available).
14129
14130 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
14131 FPU to the start, check the MIPS FPU when looking for an old
14132 architecture.
14133 (set_mipsfpu_single_command): Update the architecture.
14134 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
14135
14136 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
14137 (mips_mask_address_p): Add "tdep" parameter.
14138 (show_mask_address, mips_addr_bits_remove): Update.
14139 (mips_dump_tdep): Update.
14140 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
14141 (MIPS_STACK_ARGSIZE): Delete macro.
14142 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
14143 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
14144 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
14145 (mips_dump_tdep): Update.
14146 (MIPS_SAVED_REGSIZE): Delete macro.
14147 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
14148 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
14149 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
14150 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
14151 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
14152 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
14153 (mips_pop_frame, return_value_location): Update.
14154 (mips_n32n64_return_value, mips_dump_tdep): Update.
14155
14156 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
14157 MIPS ABI.
14158
14159 * mips-tdep.c: Update copyright.
14160 (mips_gdbarch_init): Merge two code blocks handling the register
14161 name and number layout.
14162
14163 2004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
14164
14165 * tracepoint.c (validate_actionline): Fix segv at EOF
14166
14167 2004-01-07 Michael Chastain <mec.gnu@mindspring.com>
14168
14169 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
14170 properly for static fields.
14171
14172 2004-01-06 Jeff Johnston <jjohnstn@redhat.com>
14173 Jason Molenda <jmolenda@apple.com>
14174
14175 * disasm.c: Update copyright to include 2004.
14176 (do_mixed_source_and_assembly): For uiout asm list
14177 and tuple cleanups, initialize to null_cleanup instead of
14178 NULL and do so prior to loop. Only reset when we close off
14179 the tuple/list. Move check for whether to close off the
14180 asm tuple/list to after dump_insns call where it will be run
14181 on each loop iteration.
14182
14183 2004-01-05 Andrew Cagney <cagney@redhat.com>
14184
14185 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
14186 should be a switch case and not a label.
14187 * mips-tdep.c (mips32_next_pc): Delete unused labels
14188 "greater_equal_branch" and "less_zero_branch".
14189 * jv-valprint.c (java_print_value_fields): Delete unused label
14190 "flush_it".
14191
14192 * target.c (unpush_target): Only close a target that is in the
14193 target stack.
14194
14195 2004-01-05 Mark Kettenis <kettenis@gnu.org>
14196
14197 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
14198 address from [sp + 64] instead of %o2.
14199
14200 * frame.c (get_prev_frame): Don't try to unwind the PC. This
14201 fixes PR backtrace/1476.
14202
14203 2004-01-05 Andrew Cagney <cagney@redhat.com>
14204
14205 * libunwind-frame.h (struct frame_id): Add opaque declaration,
14206 move to start of file.
14207 * i386-tdep.h (struct regcache): Add opaque declaration.
14208 * config/ia64/nm-linux.h (struct target_ops): Add opaque
14209 declaration.
14210 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
14211 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
14212 * win32-nat.c (fake_create_process): Use ISO C style definition.
14213 * stabsread.c (define_symbol): Delete #ifndef
14214 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
14215 stabs_argument_has_addr call, macro never defined.
14216
14217 2004-01-04 Michael Chastain <mec.gnu@mindspring.com>
14218
14219 * op50-rom.c: Delete.
14220 * w89k-rom.c: Delete.
14221 * Makefile.in: Remove references.
14222
14223 2004-01-04 Mark Kettenis <kettenis@gnu.org>
14224
14225 * x86-64-tdep.c: Update copyright year.
14226 (struct amd64_register_info): Rename from x86_64_register_info.
14227 (amd64_register_info): Rename from x86_64_register_info.
14228 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
14229 (amd64_register_name): Rename from x86_64_register_name.
14230 (amd64_register_type): Rename from x86_64_register_type.
14231 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
14232 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
14233 (amd64_dwarf_reg_to_regnum): Rename from
14234 x86_64_dwarf_reg_to_regnum.
14235 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
14236 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
14237 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
14238 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
14239 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
14240 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
14241 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
14242 (amd64_frame_cache): Rename from x86_64_frame_cache.
14243 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
14244 (amd64_frame_prev_register): Rename from
14245 x86_64_frame_prev_register.
14246 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
14247 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
14248 (amd64_sigtramp_frame_cache): Rename from
14249 x86_64_sigtramp_frame_cache.
14250 (amd64_sigtramp_frame_prev_register): Rename from
14251 x86_64_sigtramp_frame_prev_register.
14252 (amd64_sigtramp_frame_unwind): Rename from
14253 x86_64_sigtramp_frame_unwind.
14254 (amd64_sigtramp_frame_sniffer): Rename from
14255 x86_64_sigtramp_frame_sniffer.
14256 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
14257 (amd64_frame_base): Rename from x86_64_frame_base.
14258 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
14259 (amd64_frame_align): Rename from x86_64_frame_align.
14260 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
14261 (amd64_regset_from_core_section): Rename from
14262 x86_64_regset_from_core_section.
14263 (x86_64_init_abi): Update comments.
14264
14265 2004-01-04 Nick Roberts <nick@nick.uklinux.net>
14266
14267 * MAINTAINERS (write after approval): Add myself.
14268
14269 2004-01-04 Mark Kettenis <kettenis@gnu.org>
14270
14271 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
14272 `float' arguments.
14273
14274 2004-01-04 Mark Kettenis <kettenis@gnu.org>
14275
14276 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
14277 such that it mentions a specific version of GCC that exhibits this
14278 bug.
14279
14280 2004-01-03 Mark Kettenis <kettenis@gnu.org>
14281
14282 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
14283 structure that has a single `float' member, store it in %f1 in
14284 addition to %f0.
14285
14286 * sparc-sol2-nat.c: Add missing '\'.
14287
14288 * sparc-tdep.c (sparc32_return_value): New function.
14289 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
14290 Remove functions.
14291 (sparc32_gdbarch_init): Set return_value, don't set
14292 extract_return_value, store_return_value, use_struct_convention
14293 and return_value_on_stack.
14294
14295 * sparc-sol2-nat.c: Add missing ')'.
14296
14297 2004-01-03 J. Brobecker <brobecker@gnat.com>
14298
14299 * infrun.c (handle_step_into_function): New function.
14300 (handle_inferior_event): Extract out some code into the new
14301 function above.
14302
14303 2004-01-03 J. Brobecker <brobecker@gnat.com>
14304
14305 * infrun.c (handle_inferior_event): Move the declaration of
14306 real_stop_pc inside the if blocks where it is used.
14307
14308 2004-01-03 Mark Kettenis <kettenis@gnu.org>
14309
14310 * sparc64-tdep.c (sparc64_16_byte_align_p)
14311 (sparc64_store_floating_fields, sparc64_store_floating_fields):
14312 Use check_typedef to get subtypes of structures and unions.
14313 (sparc64_store_return_value): Fix calculation of the appropriate
14314 offset into VALBUF when storing a structure or union.
14315 (sparc64_return_value): New function.
14316 (sparc64_use_struct_convention): Remove function.
14317 (sparc64_init_abi): Set return_value, don't set
14318 extract_return_value, store_return_value and
14319 use_struct_convention.
14320
14321 2004-01-03 Eli Zaretskii <eliz@elta.co.il>
14322
14323 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
14324 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
14325 gdb/config/alpha/xm-alphaosf.h,
14326 gdb/config/powerpc/tm-ppcle-eabi.h,
14327 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
14328 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
14329 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
14330 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
14331 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
14332 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
14333 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
14334 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
14335 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
14336 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
14337 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
14338 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
14339 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
14340 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
14341 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
14342 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
14343 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
14344 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
14345 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
14346 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
14347 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
14348 Remove lines for .cvsignore files.
14349
14350 2004-01-03 J. Brobecker <brobecker@gnat.com>
14351
14352 * infrun.c: Back out the previous change.
14353
14354 2004-01-03 Mark Kettenis <kettenis@gnu.org>
14355
14356 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
14357 sparc-*-sunos4* to the list of REMOVED configurations.
14358
14359 * configure.tgt: Add back sparc-*-vxworks*.
14360 * remote-vxsparc.c: Remove all includes except for "defs.h",
14361 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
14362 Include "sparc-tdep.h".
14363 (SPARC_R_G1): New define.
14364 (vxsparc_gregset): New variable.
14365 (ext_format_sparc): Remove extern declaration.
14366 (vx_read_register): Rewrite to use sparc32_supply_gregset and
14367 sparc32_supply_fpregset.
14368 (vx_write_register): Rewrite to use sparc32_collect_gregset,
14369 sparc_collect_rwindow and sparc32_collect_fpregset.
14370 * config/sparc/tm-vxworks.h: New file, based on recently removed
14371 tm-vxsparc.h.
14372 * config/sparc/vxworks.mt: New file, based on recently removed
14373 vxworks.mt.
14374
14375 2004-01-03 J. Brobecker <brobecker@gnat.com>
14376
14377 * infrun.c (handle_step_into_function): New function.
14378 (handle_inferior_event): Extract out some code into the new
14379 function above.
14380
14381 2004-01-02 Mark Kettenis <kettenis@gnu.org>
14382
14383 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
14384 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
14385 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
14386 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
14387 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
14388 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
14389 (sparc_nat_h): New variable.
14390 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
14391 (tm-sun4os4.h): Remove dependency.
14392 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
14393 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
14394 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
14395 sparc-tdep.o): Update dependencies.
14396 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
14397 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
14398 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
14399 dependencies.
14400 * configure.host: Remove existing sparc-*-lynxos*,
14401 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
14402 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
14403 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
14404 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
14405 triplets.
14406 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
14407 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
14408 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
14409 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
14410 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
14411 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
14412 sparc64-*-solaris2* and sparc64-*-* triplets.
14413 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
14414 "symtab.h" and "objfiles.h".
14415 (BIAS): Remove define.
14416 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
14417 (X_DISP19): Remove macros.
14418 (sparc_fetch_instruction): Remove function.
14419 (struct gdbarch_tdep): Remove definition.
14420 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
14421 (sparc_breakpoint_from_pc): Remove function.
14422 (struct sparc64_frame_cache): Remove definition.
14423 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
14424 sparc64_unwind_pc): Remove functions.
14425 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
14426 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
14427 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
14428 (sparc64_frame_cache): Change return type to `struct
14429 sparc_frame_cache *'. Simply call sparc_frame_cache.
14430 (sparc64_frame_this_id, sparc64_frame_prev_register,
14431 sparc64_frame_base_address): Use `struct sparc_frame_cache'
14432 instead of `struct sparc64_frame_cache.
14433 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
14434 sparc_analyze_control_transfer, sparc_software_single_step,
14435 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
14436 _initialize_sparc64_tdep): Remove functions.
14437 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
14438 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
14439 macros.
14440 (sparc64_supply_gregset, sparc64_collect_gregset,
14441 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
14442 (sparc64_init_abi): New function.
14443 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
14444 inclusion guard. Include "sparc-tdep.h".
14445 (BIAS): Define.
14446 (r_tstate_offset, r_fprs_offset): New defines.
14447 (enum sparc_regnum): Remove defenition.
14448 (enum sparc64_regnum): Reformat.
14449 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
14450 (sparc64_init_abi, sparc64_supply_gregset,
14451 sparc64_collect_gregset, sparc64_supply_fpregset,
14452 sparc64_collect_fpregset): New prototypes.
14453 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
14454 Add extern declarations.
14455 (sparc64_sol2_init_abi): New prototype.
14456 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
14457 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
14458 prototypes.
14459 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
14460 "sparnbsd-nat.h".
14461 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
14462 functions.
14463 (_initialize_sparc64fbsd_nat): Remove initialization of
14464 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
14465 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
14466 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
14467 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
14468 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
14469 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
14470 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
14471 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
14472 (sparc64fbsd_r_y_offset): Remove variables.
14473 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
14474 Make static and const.
14475 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
14476 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
14477 functions.
14478 (sparc64fbsd_gregset): New variable.
14479 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
14480 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
14481 and sparc64_supply_fpregset.
14482 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
14483 (sparc64fbsd_sigtramp_frame_this_id)
14484 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
14485 (sparc64fbsd_sigtramp_frame_unwind): New variable.
14486 (sparc64fbsd_sigtramp_frame_sniffer): New function.
14487 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
14488 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
14489 * sparcnbsd-tdep.c: Update copyright year. Include
14490 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
14491 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
14492 "value.h" and "sparcnbsd-tdep.h".
14493 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
14494 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
14495 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
14496 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
14497 defines.
14498 (sparcnbsd_gregset): New variable.
14499 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
14500 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
14501 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
14502 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
14503 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
14504 variables.
14505 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
14506 (sparc32nbsd_sigcontext_frame_this_id)
14507 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
14508 (sparc32nbsd_sigcontext_frame_unwind): New variable.
14509 (sparc32nbsd_sigtramp_frame_sniffer): New function.
14510 (sparcnbsd_get_longjmp_target_32,
14511 sparcnbsd_get_longjmp_target_64): Remove functions.
14512 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
14513 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
14514 sparcnbsd_init_elf): Remove.
14515 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
14516 (sparcnbsd_elf_init_abi): New functions.
14517 (_initialize_sparcnbsd_tdep): New prototype.
14518 (_initialize_sparnbsd_tdep): Update.
14519 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
14520 corelow.o. Add sparc64-nat.o and sparc-nat.o.
14521 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
14522 * config/sparc/linux.mh: Update comment.
14523 (XM_FILE, HOST_IPC): Remove variables.
14524 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
14525 sparc-linux-nat.o.
14526 * config/sparc/linux.mt: Update comment.
14527 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
14528 * config/sparc/nbsd.mt: Reformat.
14529 * config/sparc/nbsd64.mh: Update comment.
14530 (NATDEPFILES): Add sparc-nat.o.
14531 * config/sparc/nbsd64.mt: Update comment.
14532 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
14533 (TM_FILE): Set to tm-nbsd.h.
14534 * config/sparc/nbsdelf.mh: Update comment.
14535 (NATDEPFILES): Add sparc-nat.o.
14536 (XM_FILE): Delete.
14537 * config/sparc/nbsdaout.mh: Update comment.
14538 (NATDEPFILES): Add sparc-nat.o
14539 (XM_FILE): Delete.
14540 * config/sparc/nm-linux.h: Update copyright year. Don't include
14541 "config/nm-svr4.h" and "solib.h". Add protection against multiple
14542 inclusion.
14543 (KERNEL_U_SIZE): Remove define.
14544 (kernel_u_size): Remove prototype.
14545 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
14546 * config/sparc/nm-nbsd.h: Update copyright. Don't include
14547 "regcache.h".
14548 (CHILD_PREPARE_TO_STORE): Remove define.
14549 * config/sparc/nm-nbsdaout.h: Tweak some comments.
14550 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
14551 sparcnbsd-nat.c: Rewrite files.
14552 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
14553 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
14554 sparcnbsd-tdep.h: Remove files.
14555 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
14556 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
14557 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
14558 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
14559 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
14560 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
14561 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
14562 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
14563 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
14564 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
14565 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
14566 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
14567 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
14568 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
14569 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
14570 * config/sparc/linux64.mh, config/sparc/linux64.mt,
14571 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
14572 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
14573 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
14574
14575 2004-01-02 Andrew Cagney <cagney@redhat.com>
14576
14577 From 2003-12-18 Kazuhiro Inaoka:
14578 * configure.host: Add m32r-linux target.
14579
14580 2004-01-02 Michael Chastain <mec.gnu@mindspring.com>
14581
14582 * top.c (print_gdb_version): Update year to 2004.
14583
14584 2004-01-02 Mark Mitchell <mark@codesourcery.com>
14585
14586 * MAINTAINERS: Add myself to the write-after-approval category.
14587
14588 2004-01-02 Daniel Jacobowitz <drow@mvista.com>
14589
14590 From Bernardo Innocenti <bernie@develer.com>:
14591 * configure.tgt: Add uClinux target.
14592
14593 2004-01-02 Andrew Cagney <cagney@redhat.com>
14594
14595 * utils.c (do_my_cleanups): Make static, add forward declaration.
14596 * defs.h (do_my_cleanups): Delete declaration.
14597
14598 2004-01-02 Eli Zaretskii <eliz@elta.co.il>
14599
14600 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
14601 bfd/ChangeLog-0203.
14602
14603 2004-01-02 Mark Kettenis <kettenis@gnu.org>
14604
14605 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
14606 in <machine/reg.h>.
14607 * configure, config.in: Regenerate.
14608
14609 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
14610 tui/ChangeLog-1998-2003.
14611 \f
14612 Local Variables:
14613 mode: change-log
14614 left-margin: 8
14615 fill-column: 74
14616 version-control: never
14617 End:
This page took 0.404333 seconds and 5 git commands to generate.