* hppa-hpux-nat.c (child_suppress_run): Add variable to allow
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
3f6306ec
DA
12004-11-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2
3 * hppa-hpux-nat.c (child_suppress_run): Add variable to allow
4 hpux-thread.c to suppress children from running.
5 (hppa_hpux_child_can_run): New function.
6 (_initialize_hppa_hpux_nat): Use hppa_hpux_child_can_run.
7 * hpux-thread.c: Include string.h and hppa-tdep.h.
8 (FLAGS_REGNUM, SP_REGNUM, PC_REGNUM): Rename to HPPA_FLAGS_REGNUM,
9 HPPA_SP_REGNUM and HPPA_PCOQ_HEAD_REGNUM, respectively.
10 (hpux_thread_store_registers): Replace deprecated_registers with
11 calls to regcache_raw_read.
12 * config/pa/hpux11.mh, config/pa/hpux11w.mh: Delete HOST_IPC.
13
f5ccf7a2
MK
142004-11-21 Mark Kettenis <kettenis@gnu.org>
15
16 * sparc64fbsd-nat.c: Update copyright year.
17 (_initialize_sparc64fbsd_nat): Construct and add target vector.
18 * config/sparc/fbsd.mh (NATDEPFILES): Remove infptrace.o,
19 inftarg.o.
20
8c3900e4
DJ
212004-11-21 Daniel Jacobowitz <dan@debian.org>
22
23 * sparc-tdep.c (sparc_software_single_step): Handle stepping to NULL.
24
b957e937
DJ
252004-11-21 Daniel Jacobowitz <dan@debian.org>
26
27 * linux-nat.c (my_waitpid): New function.
28 (linux_test_for_tracefork): Make more robust and verbose. Take
29 an ORIGINAL_PID argument and test for PTRACE_SETOPTIONS first.
30 (linux_supports_tracefork, linux_supports_tracevforkdone): Take a PID
31 argument. Update calls to linux_test_for_tracefork.
32 (linux_enable_event_reporting, child_follow_fork)
33 (child_insert_fork_catchpoint, child_insert_vfork_catchpoint)
34 (child_insert_exec_catchpoint): Update calls to
35 linux_supports_tracefork and linux_supports_tracevforkdone.
36
65d3800a
DJ
372004-11-21 Daniel Jacobowitz <dan@debian.org>
38
39 * valarith.c (value_subscript): Copy VALUE_FRAME_ID.
40 (value_subscripted_rvalue): Likewise.
41 * valops.c (search_struct_field, value_slice): Likewise.
42
2c4a536d
MK
432004-11-21 Mark Kettenis <kettenis@gnu.org>
44
45 * inf-ptrace.c: Don't include "regcache.h" and "gdbcmd.h".
46 Reorder includes a bit. Fix comment.
47 * Makefile.in (inf-ptrace.o): Update dependencies.
48
fefa1888
AS
492004-11-21 Andreas Schwab <schwab@suse.de>
50
51 * m68klinux-tdep.c: Include "glibc-tdep.h" and "solib-svr4.h".
52 (m68k_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
53 svr4_ilp32_fetch_link_map_offsets and gdbarch_skip_solib_resolver
54 to glibc_skip_solib_resolver.
55 * config/m68k/linux.mt (TDEPFILES): Add glibc-tdep.o. Remove
56 solib-legacy.o.
57 * Makefile.in (m68klinux-tdep.o): Update dependencies.
58
d564a7d4
DA
592004-11-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
60
61 * infttrace.h (ttrace_write_reg_64): Add prototype.
62 * hppah-nat.c (store_inferior_registers): Fix warning from ambiguous
63 expression.
64 (store_inferior_registers): Correct formatting. Replace uses of
65 deprecated_registers with calls to regcache_raw_read,
66 regcache_raw_write_part and regcache_raw_read_part.
67
3f70a5e9
MK
682004-11-21 Mark Kettenis <kettenis@gnu.org>
69
70 * config/pa/hppahpux.mh: Remove file.
71 * config/pa/hpux1020.mh: Remove file.
72
ced0d73d
AS
732004-11-20 Andreas Schwab <schwab@suse.de>
74
75 * configure.host: Set host floatformat for m68k.
76
fcf54f50
EZ
772004-11-20 Eli Zaretskii <eliz@gnu.org>
78
79 * config/djgpp/fnchange.lst: Resolve file-name clash between
80 hppa-hpux-tdep.c and the new hppa-hpux-nat.c.
81
a7289609
MK
822004-11-20 Mark Kettenis <kettenis@gnu.org>
83
eeb8076c
MK
84 * hppa-hpux-nat.c: New file.
85 * config/pa/hpux.mh (NATDEPFILES): New file.
86 * Makefile.in (ALLDEPFILES): Add hppa-hpux-nat.c.
87 (hppa-hpux-nat.o): New dependency.
88 * configure.host: Remove hppa*-*-hpux10.20.
89 (hppa*-*-hpux*, hppa*-*-hiux*): Set gdb_host to hpux.mh.
90
f6ffd89b
MK
91 * inf-ptrace.c: Fix coding style.
92
f1bc22da
MK
93 * gdb_ptrace.h [PTRACE_TYPE_ARG5] (ptrace): New macro.
94 * infptrace.c (call_ptrace): Simply call ptrace with four
95 arguments.
96
e31272c3
MK
97 * dbxread.c (process_one_symbol): Fix a few coding standard
98 issues. Improve code formatting.
99
91f54576
MK
100 * dbxread.c: Include "gdb_string.h".
101 (record_minimal_symbol, read_ofile_symtab): Replace
102 DEPRECATED_STREQ and DEPRECATED_STREQN with strcmp and strncmp.
103 * Makefile.in (dbxread.o): Update dependencies.
104
a7289609
MK
105 * dwarf2-frame.c (read_encoded_value): Correctly calculate number
106 of bytes read for aligned LEB128 encodings.
107
57ac95b8
MK
1082004-11-19 Mark Kettenis <kettenis@gnu.org>
109
110 * bsd-kvm.c (bsd_kvm_pcb_cmd): Cast return value from
111 parse_and_eval_address to u_long before converting it to a pointer
112 type.
113 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Change type of
114 ps_strings from int to u_long.
115 * i386obsd-nat.c (_initialize_i386obsd_nat): Cast _ps.val to
116 u_long instead of CORE_ADDR.
117
ceddaf06
MK
1182004-11-18 Mark Kettenis <kettenis@gnu.org>
119
120 * dbxread.c (process_one_symbol): Do not adjust address of first
121 N_SLINE stab for a function for code generated by non-GCC
122 compilers.
123
915a2d21
KB
1242004-11-18 Kevin Buettner <kevinb@redhat.com>
125
126 * solib-null.c: New file.
127
92790ee7
AC
1282004-11-17 Andrew Cagney <cagney@gnu.org>
129
130 * MAINTAINERS: Drop MIPS and remote.
131
0c16dd26
AC
1322004-11-15 Andrew Cagney <cagney@gnu.org>
133
134 * findvar.c (value_of_register): Set the frame ID.
135 * value.c (value_primitive_field): Copy the frame ID.
136 * valops.c (value_assign): Simplify lval_register case, there's
137 always a frame.
138
2fdf551c
DJ
1392004-11-14 Daniel Jacobowitz <dan@debian.org>
140
141 * Makefile.in (mips-linux-tdep.o): Update dependencies.
142 * mips-linux-tdep.c: Include "regcache.h".
143 (fill_fpregset, mips64_fill_fpregset): Use regcache_raw_collect.
144
98754800
DJ
1452004-11-14 Daniel Jacobowitz <dan@debian.org>
146
147 * Makefile.in (linux-thread-db.o): Fix typo in last change.
148
ed89d175
DJ
1492004-11-14 Daniel Jacobowitz <dan@debian.org>
150
151 * linux-thread-db.c: New file, renamed from thread-db.c.
152 * thread-db.c: Remove.
153 * Makefile.in (linux-thread-db.o): Rename from thread-db.o rule.
154 * config/alpha/alpha-linux.mh (NATDEPFILES): Rename thread-db.o
155 to linux-thread-db.o.
156 * config/arm/linux.mh (NATDEPFILES): Likewise.
157 * config/i386/linux.mh (NATDEPFILES): Likewise.
158 * config/i386/linux64.mh (NATDEPFILES): Likewise.
159 * config/ia64/linux.mh (NATDEPFILES): Likewise.
160 * config/m32r/linux.mh (NATDEPFILES): Likewise.
161 * config/m68k/linux.mh (NATDEPFILES): Likewise.
162 * config/mips/linux.mh (NATDEPFILES): Likewise.
163 * config/pa/linux.mh (NATDEPFILES): Likewise.
164 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
165 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
166 * config/s390/s390.mh (NATDEPFILES): Likewise.
167 * config/sparc/linux.mh (NATDEPFILES): Likewise.
168 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
169
8851ec7a
AC
1702004-11-13 Andrew Cagney <cagney@gnu.org>
171
f97fe8ff
AC
172 * config/i386/i386lynx.mh: Delete file.
173 * config/i386/i386lynx.mt: Delete file.
174 * Makefile.in (ALLDEPFILES, i386ly-tdep.o): Remove i386ly-tdep.c.
175 * i386ly-tdep.c: Delete.
176
5873946b
AC
177 * config/tm-lynx.h: Delete, inline contents ...
178 * config/rs6000/tm-rs6000ly.h: ... here.
179
a69637bd
AC
180 * config/tm-sysv4.h: Delete file, inlining contents.
181 * config/ia64/tm-aix.h (SKIP_TRAMPOLINE_CODE): Define.
182 * config/tm-linux.h (SKIP_TRAMPOLINE_CODE): Define.
183 * config/tm-nto.h (SKIP_TRAMPOLINE_CODE): Define.
184
8851ec7a
AC
185 * regcache.h (deprecated_register_valid): Delete.
186 (deprecated_registers): Delete.
187 * regcache.c (deprecated_register_valid): Delete.
188 (deprecated_registers): Delete.
189 (deprecated_read_register_byte, _initialize_regcache)
190 (deprecated_write_register_bytes, build_regcache): Update.
191 * config/powerpc/ppc-sim.mt (TDEPFILES): Remove ppc-bdm.o and
192 remote-sds.o.
193 * config/powerpc/ppc-eabi.mt (TDEPFILES): Ditto.
194 * config/mips/embed.mt (TDEPFILES): Remove remote-mips.o.
195
9445aa30
AC
196 * NEWS: List h8300*-*-*, mcore-*-*, mn10300-*-*, ns32k-*-*, and
197 v850-*-* under removed.
198 * configure.host: Delete ns32k-*-netbsd*.
199 * configure.tgt: Delete h8300-*-*, mcore*-*-*, mn10300-*-*,
200 ns32k-*-netbsd*, and v850*-*-*.
201 * MAINTAINERS: Mark h8300, mcore, mn10300, ns32k, v850 as
202 "Deleted"
203 * config/h8300/tm-h8300.h, config/h8300/h8300.mt: Delete.
204 * h8300-tdep.c, config/mcore/mcore.mt, mcore-rom.c: Delete.
205 * mcore-tdep.c, config/mn10300/mn10300.mt: Delete.
206 * mn10300-tdep.c, config/ns32k/nbsdaout.mh: Delete.
207 * config/ns32k/nbsdaout.mt, config/ns32k/nm-nbsd.h: Delete.
208 * config/ns32k/nm-nbsdaout.h, config/ns32k/tm-ns32k.h: Delete.
209 * ns32knbsd-nat.c, ns32knbsd-tdep.c, ns32k-tdep.c: Delete.
210 * ns32k-tdep.h, config/v850/v850.mt, v850ice.c: Delete.
211 * v850-tdep.c: Delete.
212
f6e1bffc
JB
2132004-11-13 Joel Brobecker <brobecker@gnat.com>
214
215 * irix5-nat.c (fetch_core_registers): Replace use of
216 deprecated_registers by equivalent code.
217
44ed547b
JB
2182004-11-13 Joel Brobecker <brobecker@gnat.com>
219
220 * irix5-nat.c (fill_gregset): Replace use of deprecated_registers
221 with equivalent code.
222 (fill_fpregset): Likewise.
223
e84ecc99
AC
2242004-11-13 Andrew Cagney <cagney@gnu.org>
225
ca1a823a
AC
226 * MAINTAINERS: Do not list "Deleted" architectures.
227
e84ecc99
AC
228 * configure.tgt: Delete i[34567]86-*-vxworks*, m68*-netx-*,
229 m68*-*-vxworks*, mips*-*-vxworks*, powerpc-*-vxworks*, and
230 sparc-*-vxworks*.
231 * NEWS: Mention that vxworks was deleted.
232 * config/m68k/tm-vx68.h, config/mips/tm-vxmips.h: Delete.
233 * config/powerpc/tm-vxworks.h, config/tm-vxworks.h: Delete.
234 * config/i386/vxworks.mt, config/m68k/vxworks68.mt: Delete.
235 * config/mips/vxmips.mt, config/powerpc/vxworks.mt: Delete.
236 * config/sparc/vxworks.mt, vx-share/dbgRpcLib.h: Delete.
237 * vx-share/ptrace.h, vx-share/regPacket.h: Delete.
238 * vx-share/vxTypes.h, vx-share/vxWorks.h: Delete.
239 * vx-share/wait.h, vx-share/xdr_ld.c: Delete.
240 * vx-share/xdr_ld.h, vx-share/xdr_ptrace.c: Delete.
241 * vx-share/xdr_ptrace.h, vx-share/xdr_rdb.c: Delete.
242 * vx-share/xdr_rdb.h, remote-vxsparc.c: Delete.
243 * remote-vxmips.c, remote-vx.c: Delete.
244 * remote-vx68.c: Delete.
245 * config/m68k/tm-os68k.h: Remove reference to VxWorks.
246 * config/m68k/os68k.mt, ada-lang.h: Ditto.
247 * Makefile.in (HFILES_NO_SRCDIR, ALLDEPFILES, remote-vx68.o)
248 (remote-vx.o, remote-vxmips.o, remote-vxsparc.o): Delete vx files.
249
01e937bc
EZ
2502004-11-13 Eli Zaretskii <eliz@gnu.org>
251
29247324
EZ
252 * config/i386/xm-go32.h: Don't include fopen-bin.h.
253 Don't define CRLF_SOURCE_FILES and DIRNAME_SEPARATOR.
254
255 * source.c (OPEN_MODE, FDOPEN_MODE): Remove the definitions in the
256 branch that doesn't define CRLF_SOURCE_FILES; always use
257 binary-mode open.
258 (print_source_lines_base, forward_search_command)
259 (reverse_search_command): Enable the code that accepts DOS-style
260 CRLF line endings on all platforms (this removes the need for
261 CRLF_SOURCE_FILES).
262
f8f0d88a 263 * defs.h: Fix wording of the comment before FOPEN_RB.
29247324 264 (DIRNAME_SEPARATOR) [__MSDOS__]: Define to ';'.
f8f0d88a 265
01e937bc
EZ
266 * config/djgpp/fnchange.lst: Group renames for opcode directory
267 together.
268
269 * config/djgpp/djconfig.sh: Replace file names that don't exist
270 anymore with existing files, for checking the unpacked
271 distribution.
272
273 * config/djgpp/config.sed (am_cv_exeext, lt_cv_sys_max_cmd_len):
274 Export pre-cooked values in configure-* targets that begin with
275 "@test -f stage_last".
276
25ae5d16
AC
2772004-11-12 Andrew Cagney <cagney@gnu.org>
278
279 * defs.h (enum lval_type): Delete lval_reg_frame_relative.
280 * value.h (struct value): Update comment.
281 * valops.c (value_assign): Fold lval_reg_fame_relative into
282 lval_register.
283 * findvar.c (value_from_register, locate_var_value): Ditto.
284
d7318818
RC
2852004-11-12 Randolph Chung <tausq@debian.org>
286
287 * config/tm/tm-hppa.h (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
288 * parse.c (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
289 (write_exp_msymbol): Remove conditional check for symbols starting
290 with $. Update comments.
291
89676665
RC
2922004-11-12 Randolph Chung <tausq@debian.org>
293
294 * pa64solib.c (pa64_solib_thread_start_addr): Rename from
295 so_lib_thread_start_addr.
296 * pa64solib.h (so_list): Forward declare.
297 (pa64_solib_thread_start_addr): Prototype.
298 * somsolib.c (SHL_LOAD, SHL_UNLOAD): Define if not already defined.
299 (no_shared_libraries): Remove.
300 (som_solib_thread_start_addr): Rename from so_lib_thread_start_addr.
301 * somsolib.h (som_solib_thread_start_addr): Likewise; prototype.
302 * hpread.c (hpread_process_one_debug_symbol): Use either the som or
303 the elf solib handler to find the start address.
304
305 * config/pa/hppahpux.mh (NATDEPFILES): Move target-specific support
306 files to the target makefile.
307 * config/pa/hpux1020.mh (NATDEPFILES): Likewise.
308 * config/pa/hpux11.mh (NATDEPFILES): Likewise.
309 * config/pa/hpux11w.mh (NATDEPFILES): Likewise.
310
311 * config/pa/hppa64.mt (TDEPFILES): Put target-specific support
b82f24bf 312 files for symbol reading and shared library handling here.
89676665 313 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
b82f24bf
RC
314 (PA_SOM_ONLY): Define so we can build a 32-bit SOM only target
315 without bringing in 64-bit support.
89676665 316
df407dfe
AC
3172004-11-12 Andrew Cagney <cagney@gnu.org>
318
4991999e
AC
319 * sparc-tdep.c: Replace VALUE_TYPE with value_type.
320 * v850-tdep.c, sparc64-tdep.c, sh-tdep.c: Ditto.
321 * sh64-tdep.c, s390-tdep.c, mcore-tdep.c: Ditto.
322 * h8300-tdep.c, arm-linux-tdep.c, amd64-tdep.c: Ditto.
323 * hppa-tdep.c, mips-tdep.c, m88k-tdep.c: Ditto.
324 * m68hc11-tdep.c, m32r-tdep.c, ia64-tdep.c: Ditto.
325 * frv-tdep.c, cris-tdep.c, avr-tdep.c, alpha-tdep.c: Ditto.
326
9ee8fc9d
AC
327 Merge VALUE_REGNO and VALUE_FRAME_REGNUM into VALUE_REGNUM.
328 * value.h (VALUE_REGNO, VALUE_FRAME_REGNUM): Delete.
329 (VALUE_REGNUM): Define.
330 (struct value): Delete location.regnum, rename "regno" to
331 "regnum".
332 * value.c, valops.c, valarith.c, findvar.c: Update.
333
df407dfe
AC
334 * value.h (VALUE_TYPE, VALUE_NEXT, VALUE_OFFSET, VALUE_BITSIZE)
335 (VALUE_BITPOS): Delete.
336 (value_type, value_offset, value_bitsize, value_bitpos): Declare.
337 * value.c (value_type, value_offset, value_bitpos)
338 (value_bitsize): New functions. Update references.
339 * arm-tdep.c, gnu-v3-abi.c, hpacc-abi.c, gnu-v2-abi.c: Update.
340 * f-valprint.c, cp-valprint.c, c-valprint.c: Update.
341 * ada-valprint.c, typeprint.c, scm-valprint.c, scm-exp.c: Update.
342 * p-valprint.c, jv-valprint.c, jv-lang.c, varobj.c: Update.
343 * objc-lang.c, ada-lang.c, std-regs.c, stack.c: Update.
344 * infcall.c, linespec.c, printcmd.c, valarith.c: Update.
345 * valops.c, eval.c, findvar.c, breakpoint.c: Update.
346 * tracepoint.c, ax-gdb.c, mi/mi-main.c, cli/cli-dump.c:
347 * rs6000-tdep.c, ppc-sysv-tdep.c: Update.
348
61c82a3b
AC
3492004-11-12 Andrew Cagney <cagney@gnu.org>
350
351 * cris-tdep.c (cris_register_offset): Delete, never called.
352 (cris_spec_reg_applicable): Delete cris_ver_sim.
353 * MAINTAINERS: List d10v as OBSOLETE.
354 * rdi-share/host.h (FOPEN_WB): #ifdef 0 out definitions of
355 FOPEN_WB et.al., defined by "fopen-bin.h".
356
5aac166f
RC
3572004-11-12 Randolph Chung <tausq@debian.org>
358
359 * hppa-tdep.c (hppa_skip_permanent_breakpoint): Move definition ...
360 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): ... to here.
361 * config/pa/tm-hppa.h (SKIP_PERMANENT_BREAKPOINT): Move definition ...
362 * config/pa/tm-hppah.h (SKIP_PERMANENT_BREAKPOINT): ... to here.
363
4fab48b9
MK
3642004-11-12 Mark Kettenis <kettenis@jive.nl>
365
366 * tui/tui-io.c: Don't include "terminal.h".
367 * Makefile.in (tui-io.o): Update dependencies.
368
9b098f24
KI
3692004-11-12 Kei Sakamoto <sakamoto.kei@renesas.com>
370
371 * Makefile.in (m32r-linux-tdep.o): Update dependencies.
372 * m32r-linux-tdep.c (m32r_linux_init_abi): Call
373 set_gdbarch_regset_from_core_section for core file support.
374 (m32r_linux_supply_gregset, m32r_linux_regset_from_core_section):
375 New functions.
376
a71f8c30
RC
3772004-11-11 Randolph Chung <tausq@debian.org>
378
379 * hppa-tdep.c (skip_prologue_hard_way): Make static, add
380 stop_after_branch parameter and use it to determine if we should look
381 at the delay slot of the first branch insn to find prologue insns.
382 (hppa_skip_prologue): Update comment and call to skip_prologue_hard_way.
383 (hppa_frame_cache): Likewise.
384
50b2f48a
RC
3852004-11-11 Randolph Chung <tausq@debian.org>
386
387 * hppa-tdep.c (hppa_frame_cache): Properly handle the frame pointer
388 register so that it can be unwound from anywhere in the prologue.
389
be723e22
MS
3902004-11-10 msnyder <msnyder@redhat.com>
391
392 * rs6000-tdep.c (skip_prologue): After saving lr_offset,
393 must invalidate lr_reg (so we don't try to save it again).
394 Ditto for cr_offset and cr_reg.
395
d6f7abdf
AC
3962004-11-05 Jon Beniston <jon@beniston.com>
397
216c5547 398 Committed by Andrew Cagney.
d6f7abdf
AC
399 * remote.c (putpkt_binary) Fix PR gdb/1806. Send an ACK
400 when an unexpected packet is received, as the target stubs
401 continually retransmit the same packet until ACKed.
402
1d225535
RC
4032004-11-10 Randolph Chung <tausq@debian.org>
404
405 * frame.c (get_prev_frame): Use get_frame_type to retrieve the
d6f7abdf 406 frame's type.
1d225535 407
2315ffec
RC
4082004-11-10 Randolph Chung <tausq@debian.org>
409
410 * blockframe.c (inside_entry_func): Move to .....
411 * frame.c (inside_entry_func): ... here, and make static.
412 (backtrace_past_entry): New flag.
413 (get_prev_frame): Stop backtrace at the entry function if enabled
414 by flag. Update comments.
415 (_initialize_frame): Add command to set backtrace_past_entry flag.
416 * defs.h (inside_entry_func): Remove prototype.
417
917c78fc
MK
4182004-11-10 Mark Kettenis <kettenis@gnu.org>
419
420 * dwarf2read.c: Fix formatting.
421
994b9211
AC
4222004-11-10 Andrew Cagney <cagney@gnu.org>
423
424 * value.h (COERCE_REF, COERCE_ARRAY, COERCE_NUMBER, COERCE_ENUM)
425 (coerce_ref, coerce_array, coerce_number, coerce_enum): Replace
426 macros with function declarations.
427 * value.c (coerce_ref, coerce_array, coerce_number)
428 (coerce_enum): New functions.
429 (value_as_long, value_as_address): Update.
430 * ada-lang.c (ada_coerce_ref, ada_value_binop)
431 (ada_evaluate_subexp, ada_value_assign, ada_value_struct_elt): Update.
432 * jv-lang.c (evaluate_subexp_java): Update.
433 * valarith.c (value_less, value_neg, value_complement)
434 (value_binop, value_add, value_subscript, value_x_binop)
435 (value_logical_not, value_sub): Update.
436 * valops.c (check_field, value_struct_elt, value_ind)
437 (value_find_oload_method_list, value_cast, value_assign): Update.
438 * eval.c (evaluate_subexp_standard): Update.
439
06987e64
MK
4402004-11-10 Mark Kettenis <kettenis@gnu.org>
441
442 * mips-tdep.c (mips32_relative_offset): Change return type to
443 LONGEST, change argument type to ULONGEST. Fix sign-extension.
444
4a302917
RC
4452004-11-10 Randolph Chung <tausq@debian.org>
446
447 * hppa-tdep.c (hppa32_register_name, hppa64_register_name): Make static.
448 (hppa32_push_dummy_call, hppa64_push_dummy_call): Likewise.
449 (hppa_fetch_pointer_argument): Likewise.
450 (hppa_frame_cache): Use safe_frame_unwind_memory instead of
451 deprecated_read_memory_nobpt.
452 (_initialize_hppa_tdep): Replace deprecated_add_show_from_set/
453 add_set_cmd sequence with add_setshow_boolean_cmd.
454
390e974f
AC
4552004-11-09 Andrew Cagney <cagney@gnu.org>
456
457 GDB 6.3 released from GDB 6.3 branch.
458
92e023d6
AC
4592004-11-09 Andrew Cagney <cagney@gnu.org>
460
461 * values.c: Rename to ...
462 * value.c: ..., new file.
463 * Makefile.in: Update.
464
d10891d4
DJ
4652004-11-09 Daniel Jacobowitz <dan@debian.org>
466
467 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Correct allocated
468 size.
469
00a4c844
AC
4702004-11-09 Andrew Cagney <cagney@gnu.org>
471
c44523e7
AC
472 * TODO: Delete.
473
00a4c844
AC
474 * value.h (struct value): Delete field bfd_section.
475 (VALUE_BFD_SECTION): Delete macro.
476 (COERCE_REF): Update.
477 (value_at, value_at_lazy): Delete asection parameter.
478 * printcmd.c (print_formatted, x_command): Update.
479 (do_examine): Delete asection parameter.
480 (next_section): Delete variable.
481 * valops.c (value_cast, value_at, value_at_lazy)
482 (value_coerce_function, value_addr, value_ind, value_string)
483 (find_rt_vbase_offset, value_full_object): Update.
484 * hpacc-abi.c (hpacc_virtual_fn_field)
485 (hpacc_value_rtti_type): Update.
486 * gnu-v3-abi.c (gnuv3_rtti_type, gnuv3_virtual_fn_field)
487 (gnuv3_baseclass_offset): Update.
488 * f-valprint.c (f_val_print): Update.
489 * c-valprint.c (c_val_print): Update.
490 * p-valprint.c (pascal_val_print): Update.
491 * jv-valprint.c (java_value_print): Update.
492 * jv-lang.c (java_class_from_object, evaluate_subexp_java): Update.
493 * ada-lang.c (ada_value_primitive_packed_val)
494 (ada_evaluate_subexp): Update.
495 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Update.
496 * expprint.c (print_subexp_standard): Update.
497 * infcall.c (call_function_by_hand): Update.
498 * valarith.c (value_add): Update.
499 * eval.c (evaluate_subexp_standard): Update.
500 * values.c (allocate_value, value_copy, value_static_field): Update.
501 * findvar.c (read_var_value, locate_var_value): Update.
502
5cb2fe25
AC
5032004-11-09 Andrew Cagney <cagney@gnu.org>
504
505 * i386-linux-tdep.c: Include "dwarf2-frame.h".
506 * Makefile.in: Update all dependencies.
507
cbafadeb
AC
5082004-11-08 Andrew Cagney <cagney@gnu.org>
509
510 * sentinel-frame.c (sentinel_frame_prev_pc): New function.
511 (sentinel_frame_unwinder): Add the prev_pc method.
512 * frame.c (frame_pc_unwind): Use the per-frame pc unwinder when
513 available. Do not handle the sentinel-frame case.
514 * frame-unwind.h (frame_prev_register_ftype): Define.
515 (struct frame_unwind): Add prev_pc;
516
3b78cdbb
DA
5172004-11-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
518
519 * configure.in: Check for ncurses/term.h.
520 * gdb_curses.h: Include term.h here, prefering ncurses/term.h.
521 * utils.c: Include gdb_curses.h instead of curses.h and term.h.
522 * tui/tui.c: Don't include term.h.
523 * configure, config.in: Rebuilt.
524
bcfca652
MK
5252004-11-08 Mark Kettenis <kettenis@gnu.org>
526
527 * m68kbsd-nat.c: Include "inf-ptrace.h".
528 (_initialize_m68kbsd_nat): Fix pasto.
529 * Makefile.in (m68kbsd-nat.o): Update dependencies.
530
527159b7
RC
5312004-11-08 Randolph Chung <tausq@debian.org>
532
533 * infrun.c (debug_infrun): New variable.
534 (resume, proceed, wait_for_inferior): Annotate with debug messages.
535 (handle_inferior_event, keep_going): Likewise.
536 (_initialize_infrun): Register "set debug infrun" command.
537
c874c7fc
AS
5382004-11-08 Andreas Schwab <schwab@suse.de>
539
540 * linux-nat.c (PTRACE_EVENT_VFORK_DONE): Renamed from
541 PTRACE_EVENT_VFORKDONE.
542 (child_follow_fork): Adjust.
543
3c8fa307
AC
5442004-11-08 Andrew Cagney <cagney@gnu.org>
545
5c26072a
AC
546 * README: Refer to 6.3, not 6.2, update directory listing droppng
547 references to intl/ and mmalloc/.
548 * PROBLEMS: Refer to 6.3 not 6.2.
549
3c8fa307
AC
550 * PROBLEMS: Delete no-longer applicable problems.
551
12b8a2cb
DJ
5522004-11-07 Andrew Cagney <cagney@redhat.com>
553 Daniel Jacobowitz <dan@debian.org>
554 Roland McGrath <roland@redhat.com>
555
556 * Makefile.in (symfile-mem.o): Update dependencies.
557 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): New.
558 (i386_linux_init_abi): Call dwarf2_frame_set_signal_frame_p.
559 * inf-ptrace.c (inf_ptrace_attach): Call
560 observer_notify_inferior_created.
561 * inftarg.c (child_attach): Likewise.
562 * symfile-mem.c: Include "observer.h", "auxv.h", and "elf/common.h".
563 (symbol_file_add_from_memory): Take NAME argument. Use it for
564 the new BFD's filename.
565 (add_symbol_file_from_memory_command): Update call to
566 symbol_file_add_from_memory.
567 (struct symbol_file_add_from_memory_args, add_vsyscall_page)
568 (symbol_file_add_from_memory_wrapper): New.
569 (_initialize_symfile_mem): Register add_vsyscall_page as an
570 inferior_created observer.
571
abbc6945
MK
5722004-11-07 Mark Kettenis <kettenis@gnu.org>
573
574 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Rename from
575 fetch_inferior_registers. Make static.
576 (m68kbsd_store_inferior_registers): Rename from
577 store_inferior_registers. Make static.
578 (_initialize_m68kbsd_nat): Construct and add target vector.
579 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
580 inftarg.o. Add inf-ptrace.o.
581 (NAT_FILE): Set to tm-solib.h.
582 (LOADLIBES): New variable.
583 * config/m68k/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
584 inftarg.o. Add inf-ptrace.o.
585 (NAT_FILE): Delete variable.
586 * config/m68k/obsd.mh (NATDEPFILES): Remove infptrace.o and
587 inftarg.o. Add inf-ptrace.o.
588 (NAT_FILE): Set to tm-solib.h.
589 * config/m68k/nm-nbsdaout.h: Remove file.
590
3ed09a32
DJ
5912004-11-07 Daniel Jacobowitz <dan@debian.org>
592
593 * dwarf2-frame.c (struct dwarf2_frame_ops): Add signal_frame_p.
594 (dwarf2_frame_set_signal_frame_p, dwarf2_frame_signal_frame_p)
595 (dwarf2_signal_frame_unwind): New.
596 (dwarf2_frame_sniffer): Use dwarf2_frame_signal_frame_p.
597 * dwarf2-frame.h (dwarf2_frame_set_signal_frame_p): New prototype.
598
8e763687
MK
5992004-11-07 Mark Kettenis <kettenis@gnu.org>
600
4fb31ed0
MK
601 * Makefile.in (mips64obsd-tdep.o): Fix typo.
602
fabe86c8
MK
603 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Renamed
604 from mipsnbsd_ilp32_solib_svr4_fetch_link_map_offsets. Trim sizes
605 to only include the structure members we actually need.
606 (mipsnbsd_lp64_fetch_link_map_offsets): Renamed from
607 mipsnbsd_lp64_solib_svr4_fetch_link_map_offsets. Trim sizes to
608 only include the structure members we actually need.
609 (mipsnbsd_init_abi): Update.
610
366e93e8
MK
611 * mips64obsd-nat.c: Include "mips-tdep.h".
612 (MIPS64OBSD_NUM_REGS): Remove define.
613 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM): New defines.
614 (mips64obsd_supply_gregset, mips64obsd_collect_gregset): Handle
615 floating-point registers correctly.
616 * Makefile.in (mips64obsd-nat.o): Update dependencies.
617
8e763687
MK
618 * mips64obsd-tdep.c: Include "trad-frame.h", "tramp-frame.h" and
619 "gdb_assert.h".
620 (mips64obsd_sigframe_init): New function.
621 (mips64obsd_sigframe): New variable.
622 (mips64obsd_init_abi): Add comments. Prepend mips64obsd_sigrame
623 unwinder.
624 * Makefile.in (mips64obsd-tdep.o): Update dependencies.
625
5f6a2351
JB
6262004-11-06 Joel Brobecker <brobecker@gnat.com>
627
628 * alpha-mdebug-tdep.c: #include mdebugread.h.
629 Replace alpha_extra_func_info_t by struct mdebug_extra_func_info *.
630 * Makefile.in (alpha-mdebug-tdep.o): Add dependency on mdebugread.h.
631
f059bf6f
AC
6322004-11-05 Andrew Cagney <cagney@gnu.org>
633
634 * dwarf2-frame.c (dwarf2_frame_cache): Only complain when both the
635 CFI and the init_reg method leave the register unspecified.
636 Include the register name in the "Incomplete CFI data" complaint.
637 Supress leading zeros in the address.
638
1234d960
MK
6392004-11-05 Mark Kettenis <kettenis@gnu.org>
640
641 * dwarf2-frame.c (decode_frame_entry_1): Avoid indirection when
642 skipping a personality routine in a CIE augmentation.
643
d75e3c94
JJ
6442004-11-05 Jeff Johnston <jjohnstn@redhat.com>
645
646 * defs.h (fatal, vfatal): New function prototypes.
647 * stack.c (backtrace_command_stub): Stub to call backtrace_command_1
648 via catch_errors.
649 (backtrace_command): Change to call backtrace_command_stub via
650 catch_errors instead of calling backtrace_command_1 directly.
651 (backtrace_full_command): Ditto.
652 * utils.c (error_stream_1): New static function.
653 (verror): Change to call error_stream_1 instead of error_stream.
654 (error_stream): Call error_stream_1 with RETURN_ERROR argument.
655 (vfatal, fatal): New functions.
656
98f276a0
AC
6572004-11-05 Andrew Cagney <cagney@gnu.org>
658
659 * stack.c (parse_frame_specification_1): Clear selected_frame_p
660 when not using selected frame.
661
f724bf08
MK
6622004-11-05 Mark Kettenis <kettenis@jive.nl>
663
664 * dwarf2-frame.c (decode_frame_entry_1): Correctly skip
665 personality routine in a CIE augmentation.
666
c789492a
FL
6672004-11-05 Felix Lee <felix+log1@specifixinc.com>
668
669 * stack.c (set_current_sal_from_frame): New function.
670 (print_args_stub): Use it.
671 (print_frame_info): Don't set sal here.
672
a81b10ae
MK
6732004-11-04 Mark Kettenis <kettenis@gnu.org>
674
675 * dwarf2-frame.c (read_encoded_value): Change type of third
676 argument to `unsigned char *'. Add support for LEB128 encodings.
677
ad766c0a
JB
6782004-11-04 Jim Blandy <jimb@redhat.com>
679
680 * gdbtypes.c (make_qualified_type): Doc fix. Add assertion to
681 prevent cross-objfile references.
682 (make_cv_type): Doc fix. Don't create cross-objfile references,
683 even for stub types.
684 (replace_type): Add assertion to prevent cross-objfile references.
685 (check_typedef): Never resolve a stub type by copying over a type
686 from another file.
687
c46b0409 6882004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
f16d97c9 689
c46b0409
KI
690 * Makefile.in (m32r-tdep.o): Update dependencies.
691 * m32r-tdep.c (m32r_gdbarch_init): Call gdbarch_init_osabi for
692 ABI-specific overrides.
693
9f0b0322 6942004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
f16d97c9 695
9f0b0322
KI
696 * m32r-tdep.c (m32r_memory_insert_breakpoint): Remove
697 unnecessary parallel execution bit.
698 (m32r_memory_remove_breakpoint): Ditto.
699 (m32r_breakpoint_from_pc): Update.
700
d5c27f81
RC
7012004-11-03 Randolph Chung <tausq@debian.org>
702
703 * hppa-tdep.c (hppa_frame_cache): Use frame_pc_unwind instead of
9f0b0322 704 frame_func_unwind to locate the unwind entry.
d5c27f81
RC
705 (hppa_frame_this_id): Likewise.
706
4577593c
AC
7072004-11-03 Andrew Cagney <cagney@gnu.org>
708
709 * gdb/NEWS: Mention internationalization, m32r-*-linux-gnu, 'p'
710 packet, obsolete configurations, end-of-life deprecated_registers.
711
b04de778
MK
7122004-11-02 Mark Kettenis <kettenis@gnu.org>
713
714 * dwarf2-frame.c (read_encoded_value): Set proper size for signed
715 encodings as well as unsigned encodings.
716
9f2feefc
AC
7172004-11-02 Andrew Cagney <cagney@gnu.org>
718
719 * value.h (COERCE_VARYING_ARRAY): Delete.
720 * valops.c (value_cast, value_slice): Delete use.
721 * valarith.c (value_subscript, value_concat): Delete use.
722
117ea3cf
PH
7232004-11-02 Paul Hilfinger <hilfingr@nile.gnat.com>
724
725 * NEWS: GDB understands GNAT Ada.
726
0bbc026e
JM
7272004-11-01 Joseph S. Myers <joseph@codesourcery.com>
728
729 * Makefile.in (ALLDEPFILES): Add amd64-sol2-tdep.c.
730 (amd64-sol2-tdep.o): Add dependencies.
731 * amd64-sol2-tdep.c, config/i386/sol2-64.mh,
732 config/i386/sol2-64.mt: New files.
733 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offset,
734 amd64_sol2_gregset32_reg_offset, _initialize_amd64_sol2_nat): New.
735 (supply_gregset): Correct order of arguments to
736 amd64_supply_native_gregset.
737 (fill_gregset): Correct order of arguments to
738 amd64_collect_native_gregset.
739 * configure.host (i[34567]86-*-solaris2.1[0-9]*): Add new case.
740 * configure.tgt (i[34567]86-*-solaris2.1[0-9]*): Likewise.
741 * configure.in (*-*-solaris2.[[6789]]): Add *-*-solaris2.1[[0-9]]
742 for definition of NEW_PROC_API.
743 * configure: Regenerate.
744
3d38a0a5
JM
7452004-11-01 Joseph S. Myers <joseph@codesourcery.com>
746
747 * MAINTAINERS (Write After Approval): Add myself.
748
f81cd1cf
AC
7492004-11-01 Andrew Cagney <cagney@gnu.org>
750
751 * configure.tgt: Mark d10v-*-* as obsolete.
752 * config/d10v/d10v.mt, d10v-tdep.c: Obsolete files.
753
f4e88c8e
PH
7542004-11-01 Paul N. Hilfinger <Hilfinger@gnat.com>
755
756 * values.c (modify_field): Correct handling of bit-fields that
757 don't fit in 32 bits. Use unsigned operations throughout and
758 simplify the code a bit. Document preconditions.
759
84674fe1
AC
7602004-10-31 Andrew Cagney <cagney@gnu.org>
761
96693b3a
AC
762 * config/pa/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
763 * config/tm-sysv4.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
764 (in_plt_section): Delete.
765
6f296f8f
AC
766 * mips-tdep.c (mips_in_solib_return_trampoline): Delete.
767 (mips_gdbarch_init): Do not set same.
768
618501c0
AC
769 * arch-utils.c (generic_in_solib_call_trampoline): Delete.
770 * arch-utils.h (generic_in_solib_call_trampoline): Delete.
771
b22e8f02
AC
772 * gdbarch.sh (in_solib_call_trampoline): Delete.
773 * gdbarch.h, gdbarch.c: Re-generate.
774
84674fe1
AC
775 * hppa-tdep.c (hppa_stub_unwind_sniffer): Replace
776 IN_SOLIB_CALL_TRAMPOLINE with tdep.in_solib_call_trampoline.
777 * hppa-tdep.h (struct gdbarch_tdep): Add in_solib_call_trampoline.
778 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Set same.
779 * hppa-linux-tdep.c (hppa_linux_init_abi): Ditto.
780
c6d1029f
MK
7812004-10-31 Mark Kettenis <kettenis@gnu.org>
782
783 * mipsnbsd-nat.c: Include "target.h" and "inf-ptrace.h".
784 (mipsnbsd_fetch_inferior_registers): Rename from
785 fetch_inferior_registers. Make static.
786 (mipsnbsd_store_inferior_registers): Rename from
787 store_inferior_registers. Make static.
788 (_initialize_mipsnbsd_nat): New function and prototype.
789 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
790 * config/mips/nbsd.mh (NAT_CLIBS, NAT_FILE): Remove variables.
791 (NATDEPFILES): Remove infptrace.o and inftarg.o. Add
792 inf-ptrace.o.
793
bd9ca83f
AC
7942004-10-31 Andrew Cagney <cagney@gnu.org>
795
19d718a3
AC
796 * xstormy16-tdep.c (xstormy16_in_solib_call_trampoline)
797 (xstormy16_gdbarch_init): Do not set in_solib_call_trampoline,
798 delete corresponding unused function.
799 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Really do not set
800 in_solib_call_trampoline.
801 * config/arm/tm-embed.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
802 * config/powerpc/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
803 * config/mips/tm-nbsd.h: Ditto.
804 * config/arm/tm-linux.h: Ditto.
805 * config/mips/tm-linux.h: Ditto.
806
e8ce19c0
AC
807 * armnbsd-tdep.c (arm_netbsd_aout_init_abi)
808 (arm_netbsd_aout_in_solib_call_trampoline): Do not set
809 in_solib_call_trampoline, delete corresponding unused function.
810 * vaxnbsd-tdep.c (vaxnbsd_aout_in_solib_call_trampoline)
811 (vaxnbsd_aout_init_abi): Ditto.
812 * sparcnbsd-tdep.c (sparcnbsd_aout_in_solib_call_trampoline)
813 (sparc32nbsd_aout_init_abi): Ditto.
814 * ppc-linux-tdep.c (ppc64_in_solib_call_trampoline)
815 (ppc_linux_init_abi): Ditto.
816 * ns32knbsd-tdep.c (ns32knbsd_aout_in_solib_call_trampoline)
817 (ns32knbsd_init_abi_aout): Ditto.
818 * mips-tdep.c (mips_in_call_stub, mips_gdbarch_init): Ditto.
819 * mips-linux-tdep.c (mips_linux_init_abi): Ditto.
820 * m68kbsd-tdep.c (m68kbsd_aout_in_solib_call_trampoline)
821 (m68kbsd_aout_init_abi): Ditto.
822 * i386-cygwin-tdep.c (i386_cygwin_in_solib_call_trampoline)
823 (i386_cygwin_init_abi): Ditto.
824 * i386bsd-tdep.c (i386bsd_aout_in_solib_call_trampoline)
825 (i386bsd_init_abi): Ditto.
826
af380d61
AC
827 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Do not set
828 in_solib_call_trampoline to in_plt_entry, IN_SOLIB_CALL_TRAMPOLINE
829 isn't used by this architecture.
830 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
831 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Ditto.
832 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Ditto.
833 * s390-tdep.c (s390_gdbarch_init): Ditto.
834 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
835 * m68klinux-tdep.c (m68k_linux_init_abi): Ditto.
836 * i386-tdep.c (i386_svr4_init_abi): Ditto.
837 * i386-nto-tdep.c (i386nto_init_abi): Ditto.
838 * arm-linux-tdep.c (arm_linux_init_abi): Ditto.
839 * amd64-tdep.c (amd64_init_abi): Ditto.
840
0528d9f7
AC
841 * vaxnbsd-tdep.c (vaxnbsd_elf_init_abi): Do not set
842 in_solib_call_trampoline to its default value of
843 generic_in_solib_call_trampoline.
844 * ppcobsd-tdep.c (ppcobsd_init_abi): Ditto.
845 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Ditto.
846 * i386obsd-tdep.c (i386obsd_elf_init_abi): Ditto.
847 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Ditto.
848 * i386fbsd-tdep.c (i386fbsd_init_abi): Ditto.
849 * hppabsd-tdep.c (hppabsd_init_abi): Ditto.
850
f9f9eacb
AC
851 * mips-tdep.c (mips_dump_tdep): Don't print any of the macros.
852
a4ffd1e7
AC
853 * config/mips/obsd64.mt (DEPRECATED_TM_FILE): Delete.
854
82e34d2f
AC
855 * config/mips/tm-mips.h: Delete file.
856 * remote-mips.c: Delete tm-mips.h from comment.
857 * config/mips/embed.mt (DEPRECATED_TM_FILE): Delete.
858 * config/mips/tm-nbsd.h: Don't include tm-mips.h.
859 * config/mips/irix6.mt (DEPRECATED_TM_FILE): Delete.
860 * config/mips/tm-linux.h: Don't include tm-mips.h.
861 * config/mips/tm-vxmips.h: Don't include tm-mips.h.
862 * config/mips/irix5.mt (DEPRECATED_TM_FILE):
863 * config/mips/tm-wince.h: Don't include.
864
75dec9cf
AC
865 * mdebugread.h (MDEBUG_EFI_SYMBOL_NAME): Define.
866 * mdebugread.c (MDEBUG_EFI_SYMBOL_NAME): Delete.
867 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
868 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
869
bd9ca83f
AC
870 * mdebugread.h (ecoff_relocate_efi): Delete declaration.
871 * mdebugread.c (ecoff_relocate_efi): Delete function.
872 * objfiles.c (objfile_relocate): Delete #ifdef
873 MDEBUG_EFI_SYMBOL_NAME code.
874
3352ef37
AC
8752004-10-31 Orjan Friberg <organ.friberg@axis.com>
876 Andrew Cagney <cagney@gnu.org>
877
878 * gdbarch.sh (single_step_through_delay): Add.
879 * gdbarch.h, gdbarch.c: Re-generate.
880 * config/mips/tm-mips.h (STEP_SKIPS_DELAY_P, STEP_SKIPS_DELAY)
881 (mips_step_skips_delay): Delete.
882 * mips-tdep.c (mips_single_step_through_delay): Replace
883 mips_step_skips_delay.
884 (mips_gdbarch_init): Set single_step_through_delay.
885 (mips_dump_tdep): Do not print STEP_SKIPS_DELAY.
886
2440b685
MK
8872004-10-31 Mark Kettenis <kettenis@gnu.org>
888
889 * tramp-frame.c (tramp_frame_prepend_unwinder): Set unwinder type
890 from TRAMP_FRAME frame type.
891
56a2fed5
AC
8922004-10-31 Andrew Cagney <cagney@gnu.org>
893
9b792b1d
AC
894 * mdebugread.c (parse_procedure): Wrap use of RA_REGNUM in #ifdef.
895
0a5e8d98
AC
896 * mips-tdep.c (mips_ignore_helper): Delete.
897 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Delete.
898 * infrun.c (handle_inferior_event): Delete #ifdef
899 DEPRECATED_IGNORE_HELPER_CALL code.
900
56a2fed5
AC
901 * config/mips/tm-mips.h (RA_REGNUM): Delete.
902
f69c55b2
MK
9032004-10-31 Mark Kettenis <kettenis@gnu.org>
904
905 * i386v4-nat.c (supply_gregset, supply_fpregset, fill_gregset)
906 (fill_fpregset): Do not compile for 64-bit systems.
907 * i386-sol2-nat.c: Don't include "i386v4-nat.c".
908 * Makefile.in (i386-sol2-nat.o): Update dependencies.
909 * config/i386/i386sol2.mh (NATDEPFILES): Add back i386v4-nat.c.
910
d37cca3d
AC
9112004-10-30 Andrew Cagney <cagney@gnu.org>
912
36b8628e
AC
913 * mdebugread.h: Include "coff/sym.h" and "coff/symconst.h".
914 (struct mdebug_extra_func_info): Define.
915 * config/alpha/tm-alpha.h: Delete same.
916 * config/mips/tm-mips.h: Delete same.
917 * mdebugread.c: Delete same.
918 * Makefile.in: Update dependencies.
919 * mips-mdebug-tdep.c: Include "mdebugread.h".
920
5b123146
AC
921 * objfiles.c: Include "mdebugread.h".
922 * mdebugread.c: Include "mdebugread.h".
923 (ecoff_relocate_cfi): Delete.
924 * config/alpha/tm-alpha.h (ecoff_relcate_cfi): Delete.
925 * config/mips/tm-mips.h (ecoff_relcate_cfi): Delete.
926 * mdebugread.h (ecoff_relocate_efi): New file.
927 * Makefile.in: Update dependencies.
928
b9c3a7de
AC
929 * mips-tdep.c (struct frame_extra_info): Delete.
930 (temp_proc_desc): Delete.
931
f92761ec
AC
932 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Rename
933 MIPS_EFI_SYMBOL_NAME.
934 (mips_extra_func_info_t, mips_extra_func_info): Delete.
935 (struct mdebug_extra_func_info): Replace struct
936 alpha_extra_func_info and alpha_extra_func_info_t.
937 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Rename
938 MIPS_EFI_SYMBOL_NAME.
939 (struct mdebug_extra_func_info): Replace struct
940 alpha_extra_func_info and alpha_extra_func_info_t.
941 * objfiles.c, mips-tdep.c, mips-mdebug-tdep.c: Update.
942 * mdebugread.c, alpha-mdebug-tdep.c:
943
0bb57b31
AC
944 Suggested by Mark Kettenis.
945 * config/mips/tm-mips.h (struct mips_extra_func_info): Delete
946 fields frame_adjust and high_addr.
947 * mips-mdebug-tdep.c (PROC_HIGH_ADDR, PROC_FRAME_ADJUST): Delete.
948 (non_heuristic_proc_desc): Delete references.
949
a5c9623c
AC
950 * mips-tdep.h (MIPS_PRID_REGNUM): Add.
951 * config/mips/tm-mips.h (PRID_REGNUM): Delete.
952 * mips-tdep.c: Update.
953
607fc93c
AC
954 * mips-tdep.h (MIPS_FIRST_EMBED_REGNUM)
955 (MIPS_LAST_EMBED_REGNUM): Add.
956 * config/mips/tm-mips.h (FIRST_EMBED_REGNUM)
957 (LAST_EMBED_REGNUM): Delete.
958 * mipsv4-nat.c, mips-tdep.c, mips-linux-tdep.c: Update.
959
24e05951
AC
960 * config/mips/tm-mips.h (PS_REGNUM): Delete.
961 * mips-tdep.h (MIPS_PS_REGNUM): Add.
962 * remote-vxmips.c, mipsv4-nat.c, mips-tdep.c: Update.
963 * mips-linux-nat.c: Update.
964
613e114f
AC
965 * mips-tdep.h: Add comments on registers.
966 (MIPS_UNUSED_REGNUM): Define.
967 * config/mips/tm-mips.h (ZERO_REGNUM, UNUSED_REGNUM)
968 (T9_REGNUM, V0_REGNUM, A0_REGNUM): Delete.
969 * irix5-nat.c, mipsv4-nat.c, mips-linux-tdep.c: Update.
970 * mips-linux-nat.c, remote-mips.c: Update.
971
d37cca3d
AC
972 * config/mips/tm-mips.h (t_insn): Delete.
973 * mips-tdep.c (mips_fetch_instruction, mips_skip_trampoline_code):
974 Replace t_insn with ULONGEST.
975
ceb41096
MK
9762004-10-30 Mark Kettenis <kettenis@gnu.org>
977
d1180b0f
MK
978 * mipsnbsd-tdep.c: Include "regset.h" and "gdb_assert.h".
979 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM)
980 (MIPSNBSD_NUM_GREGS, MIPSNBSD_NUM_FPREGS): New defines.
981 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
982 (mipsnbsd_core_fns, mipsnbsd_elfcore_fns): Remove variables.
983 (mipsnbsd_core_osabi_sniffer): New function.
984 (mipsnbsd_init_abi): Set regset_from_core_section.
985 (_initialize_mipsnbsd_tdep): Remove calls to
986 deprecated_add_core_fns.
987 (mipsnbsd_supply_fpregset, mipsnbsd_supply_gregset)
988 (mipsnbsd_regset_from_core_section): New functions.
989 (mipsnbsd_gregset, mipsnbsd_fpregset): New variables.
990 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
991
ceb41096
MK
992 * procfs.c (procfs_fetch_registers, procfs_store_registers): Like
993 Remove optimization for DEPRECATED_FP_REGNUM.
994
ec4045ea
AC
9952004-10-30 Andrew Cagney <cagney@gnu.org>
996
cd65c8f6
AC
997 * alpha-tdep.c (alpha_setup_arbitrary_frame): Delete.
998 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Delete.
999 (alpha_setup_arbitrary_frame): Delete.
1000 * mips-tdep.c (setup_arbitrary_frame): Delete.
1001 * config/mips/tm-mips.h (SETUP_ARBITRARY_FRAME): Delete.
1002 (setup_arbitrary_frame): Delete.
1003 * stack.c (parse_frame_specification_1): When specified, call
1004 create_new_frame with two parameters. Delete #ifdef
1005 SETUP_ARBITRARY_FRAME.
1006
95ac2dcf
AC
1007 * config/mips/tm-mips.h (MIPS16_INSTLEN, MIPS_NUMREGS)
1008 (MIPS_INSTLEN): Delete.
1009 * mips-tdep.h (enum mips_insn_size): Rename MIPS32_INSN_SIZE and
1010 MIPS16_INSN_SIZE to MIPS_INSN32_SIZE and MIPS_INSN16_SIZE.
1011 * remote-mips.c, mips-tdep.c: Update.
1012
1a8da44d
AC
1013 * config/mips/embed.mt (TDEPFILES): Add mips-mdebug-tdep.o.
1014 * mips-mdebug-tdep.h, mips-mdebug-tdep.c: New files.
1015 * mips-tdep.c (mips_mdebug_frame_cache)
1016 (mips_mdebug_frame_this_id, mips_mdebug_frame_prev_register)
1017 (mips_mdebug_frame_unwind, mips_mdebug_frame_sniffer)
1018 (mips_mdebug_frame_base_address, mips_mdebug_frame_sniffer)
1019 (mips_mdebug_frame_base_sniffer, non_heuristic_proc_desc)
1020 (compare_pdr_entries, the_bfd, mips16_fetch_instruction): Delete.
1021 (mips_gdbarch_init): Do not append mdebug sniffers.
1022 (PROC_LOW_ADDR, PROC_HIGH_ADDR, PROC_FRAME_OFFSET)
1023 (PROC_FRAME_REG, PROC_FRAME_ADJUST, PROC_REG_MASK)
1024 (PROC_FREG_MASK, PROC_REG_OFFSET, PROC_FREG_OFFSET, PROC_PC_REG)
1025 (PROC_SYMBOL, _PROC_MAGIC_): Delete.
1026 * Makefile.in: Update dependencies.
1027
e6bc2e8a
AC
1028 * mips-tdep.h (mips_abi_regsize): Declare.
1029 * mips-tdep.c (mips_abi_regsize): Make non-static.
1030
ec4045ea
AC
1031 * mips-tdep.c (gdb_print_insn_mips): Simplify.
1032 (make_mips16_addr): Delete.
e6bc2e8a 1033
6b16acab
MK
10342004-10-30 Mark Kettenis <kettenis@gnu.org>
1035
1036 * i386-sol2-nat.c: New file.
1037 * Makefile.in (ALLDEPFILES): Add i386-sol2-nat.c and
1038 i386-sol2-tdep.c.
1039 (i386-sol2-nat.o): Update dependencies.
1040 * config/i386/i386sol2.mh (NATDEPFILES): Remove i386v4.o, add
1041 i386-sol2-nat.o.
1042
8b622e6a
AC
10432004-10-30 Andrew Cagney <cagney@gnu.org>
1044
1045 Total breakage identified by Joel Brobecker.
1046 * mips-tdep.c (after_prologue): Delete.
1047 (mips_skip_prologue): Use skip_prologue_using_sal.
1048 (heuristic_proc_desc): Delete, unused.
1049
772cf8be
MK
10502004-10-30 Mark Kettenis <kettenis@gnu.org>
1051
1052 * procfs.c (proc_get_gregs, proc_get_fpregs, proc_set_gregs)
1053 (proc_set_fpregs, procfs_fetch_registers, procfs_store_registers):
1054 Cleanup coding style.
1055
9c8fdbfa
AC
10562004-10-30 Andrew Cagney <cagney@gnu.org>
1057
0fe7e7c8
AC
1058 * mips-tdep.h (mips_pc_is_mips16): Declare.
1059 * mips-tdep.c (mips_pc_is_mips16): Rename pc_is_mips16, make
1060 non-static. Update calls.
1061
1b295c3d
AC
1062 * cli/cli-decode.c (add_setshow_enum_cmd): New function.
1063 * command.h (add_setshow_enum_cmd): Declare.
1064 * mips-tdep.c (_initialize_mips_tdep): Use add_setshow_enum_cmd.
1065
6bcadd06
AC
1066 * mips-tdep.c (_initialize_mips_tdep): Use
1067 add_setshow_zinteger_cmd.
1068
9c8fdbfa
AC
1069 * mips-tdep.c (mips_eabi_extract_return_value)
1070 (mips_o64_extract_return_value, mips_o64_store_return_value)
1071 (return_value_location, mips_eabi_reg_struct_has_addr)
1072 (mips_eabi_use_struct_convention)
1073 (mips_eabi_store_return_value): Delete.
1074 (mips_eabi_store_return_value): New function.
1075 (mips_eabi_return_value): New function.
1076 (mips_gdbarch_init): For O64 and EABI, delete
1077 extract_return_value, store_return_value, use_struct_convention
1078 and reg_struct_has_addr, add return_value.
1079
1d93fe1a
AC
1080 * mips-tdep.c (read_signed_register): Use
1081 regcache_cooked_read_signed.
1082
303d2914
MK
10832004-10-30 Mark Kettenis <kettenis@gnu.org>
1084
1085 * mipsread.c: Cleanup coding style.
1086 (mipscoff_new_init, mipscoff_symfile_init, mipscoff_symfile_read)
1087 (mipscoff_symfile_finish): Remove prototypes.
1088
10892004-10-29 Mark Kettenis <kettenis@gnu.org>
1090
1091 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
1092 (mips_mdebug_frame_cache, mips16_scan_prologue)
1093 (mips32_scan_prologue, mips_stub_frame_cache)
1094 (heuristic_proc_start, heuristic_proc_desc)
1095 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
1096 (mips_n32n64_return_value, mips_o32_push_dummy_call)
1097 (mips_o32_return_value, mips_o64_push_dummy_call)
1098 (mips_step_skips_delay, mips_skip_trampoline_code)
1099 (mips_gdbarch_init): Use MIPS_A0_REGNUM instead of A0_REGNUM,
1100 MIPS_RA_REGNUM instead of RA_REGNUM, MIPS_T9_REGNUM instead of
1101 T9_REGNUM, MIPS_V0_REGNUM instead of V0_REGNUM, MIPS_ZERO_REGNUM
1102 instead of ZERO_REGNUM, MIPS32_SIZE_INSN instead of MIPS_INSTLEN
1103 and MIPS16_INSN_SIZE instead of MIPS16_INSTLEN.
1104 (mips_dump_tdep): Don't print A0_REGNUM, RA_REGNUM,
1105 T9_REGNUM, V0_REGNUM, ZERO_REGNUM, MIPS_INSTLEN and
1106 MIPS16_INSTLEN. Use MIPS_A0_REGNUM instead of A0_REGNUM.
1107 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
1108 (mips_linux_n32n64_sigframe_init): Use MIPS_ZERO_REGNUM instead of
1109 ZERO_REGNUM.
1110 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
1111 (mipsnbsd_cannot_store_register): Use MIPS_ZERO_REGNUM instead of
1112 ZERO_REGNUM.
1113 (mipsnbsd_get_longjmp_target): Use MIPS_A0_REGNUM instead of
1114 A0_REGNUM.
1115 * mipsnbsd-nat.c: Include "mips-tdep.h".
1116 (getregs_supplies): Use MIPS_ZERO_REGNUM instead of ZERO_REGNUM.
1117 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
1118
1c8831c5
AC
11192004-10-29 Andrew Cagney <cagney@gnu.org>
1120
1121 * stack.c (parse_frame_specification_1): New function based on
1122 parse_frame_specification. Add message and selected_frame_p
1123 paramters. Truely always return non-NULL.
1124 (parse_frame_specification): Call parse_frame_specification_1.
1125 (frame_info): Update. Eliminate target_has_stack check.
1126 (select_frame_command): Update.
1127
b04f3ab4
AC
11282004-10-29 Andrew Cagney <cagney@gnu.org>
1129
1130 * frame.h (get_selected_frame): Add message parameter.
1131 * frame.c (get_selected_frame): Add and use message parameter.
1132 * stack.c (current_frame_command, return_command, locals_info)
1133 (catch_info, args_info, up_silently_base, down_silently_base): Use
1134 get_selected_frame with an explicit message.
1135 * thread.c, stack.c, sh-tdep.c, sh64-tdep.c: Update.
1136 * remote-rdp.c, remote-mips.c, remote-e7000.c: Update.
1137 * ocd.c, mi/mi-main.c, mi/mi-cmd-stack.c: Update.
1138 * infrun.c, inflow.c, infcmd.c, frame.c: Update.
1139 * findvar.c, eval.c, corelow.c, bsd-kvm.c: Update.
1140 * breakpoint.c: Update.
1141
11422004-10-29 Andrew Cagney <cagney@gnu.org>
00b25ff3
AC
1143
1144 * trad-frame.c (trad_frame_get_prev_register): Use
1145 frame_unwind_register instead of frame_register_unwind, do not
1146 recurse the register's location.
1147 * xstormy16-tdep.c (xstormy16_frame_prev_register):
1148 * sparc-tdep.c (sparc32_frame_prev_register): Ditto.
1149 * sparc64-tdep.c (sparc64_frame_prev_register): Ditto.
1150 * sh-tdep.c (sh_frame_prev_register): Ditto.
1151 * m68k-tdep.c (m68k_frame_prev_register): Ditto.
1152 * i386-tdep.c (i386_frame_prev_register): Ditto.
1153 * dwarf2-frame.c (dwarf2_frame_prev_register): Ditto.
1154 * amd64-tdep.c (amd64_frame_prev_register): Ditto.
1155
7a952542
MK
11562004-10-28 Mark Kettenis <kettenis@jive.nl>
1157
c18c06be
MK
1158 * proc-events.c: Fix several coding-style issues. Consistently
1159 use #ifdef instead of #if defined().
1160 (proc_prettyfprint_fault, proc_prettyfprint_faultset): Use
1161 ARRAY_SIZE.
1162 (_initialize_proc_events): New prototype.
1163
7a952542
MK
1164 * proc-why.c: Fix several coding-style issues.
1165 (proc_prettyfprint_why): Use ARRAY_SIZE.
1166
fcad0fa4
JB
11672004-10-27 Jim Blandy <jimb@redhat.com>
1168
1169 * remote.c (fetch_register_using_p): Construct 'p' packet in a
1170 manner independent of the host byte order.
1171
c163184f
MK
11722004-10-27 Mark Kettenis <kettenis@gnu.org>
1173
1174 * mips-tdep.c (id_delayed): Remove prototype.
1175
9c46b6f0
MK
11762004-10-26 Mark Kettenis <kettenis@gnu.org>
1177
1178 * mips-tdep.h: Add MIPS_ZERO_REGNUM, MIPS_AT_REGNUM,
1179 MIPS_V0_REGNUM. MIPS_A0_REGNUM, MIPS_T9_REGNUM and MIPS_RA_REGNUM
1180 to enum with register numbers.
1181 (enum mips_insn_size): New enum.
1182
0d0266c6
AC
11832004-10-26 Andrew Cagney <cagney@gnu.org>
1184
e7d6a6d2
AC
1185 * config/mips/tm-linux.h: Delete #undef SKIP_TRAMPOLINE_CODE.
1186 * mips-tdep.c (mips_skip_trampoline_code): Rename mips_skip_stub.
1187 (mips_gdbarch_init): Update.
1188 (mips_dump_tdep): Do not print SKIP_TRAMPOLINE_CODE.
1189
c5115f39
AC
1190 * config/arm/tm-linux.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1191 * config/mips/tm-nbsd.h, config/mips/tm-linux.h: Delete #undef
1192 IN_SOLIB_RETURN_TRAMPOLINE.
1193 * mips-tdep.c (mips_dump_tdep): Do not print
1194 IN_SOLIB_RETURN_TRAMPOLINE.
1195 (mips_in_solib_return_trampoline): Rename mips_in_return_stub.
1196 (mips_gdbarch_init): Update.
1197
0d0266c6
AC
1198 * mips-tdep.h (mips_software_single_step): Move to here ...
1199 * config/mips/tm-mips.h: ... from here.
1200 * config/mips/tm-linux.h (SOFTWARE_SINGLE_STEP_P)
1201 (SOFTWARE_SINGLE_STEP): Delete.
1202 * mips-linux-tdep.c (mips_linux_init_abi): Set software_single_step.
1203
156a53ca
AC
12042004-10-25 Andrew Cagney <cagney@gnu.org>
1205
1206 * NEWS: Add Changes since GDB 6.3 section.
1207
f27cf670
AS
12082004-10-23 Andreas Schwab <schwab@suse.de>
1209
156a53ca
AC
1210 * ada-lang.c (grow_vect): Return the new array instead of
1211 expecting pointer to pointer to avoid violation of aliasing rules.
f27cf670
AS
1212 * ada-lang.h (GROW_VECT): Adapt call to grow_vect.
1213
121d8485
UW
12142004-10-23 Ulrich Weigand <uweigand@de.ibm.com>
1215
1216 * s390-tdep.c (enum pv_boolean): Remove.
1217 (pv_is_array_ref): Remove.
1218 (s390_on_stack): Remove.
1219 (S390_NUM_SPILL_SLOTS): Remove.
1220 (struct s390_prologue_data): Remove members 'spill' and 'back_chain',
1221 add members 'gpr_slot', 'fpr_slot', and 'back_chain_saved_p'.
1222 (s390_store): Track all stores of orginal incoming registers to the
1223 stack constant offsets relative to the CFA, instead of only tracking
1224 stores into specific spill slots.
1225 (s390_load): Likewise.
1226 (s390_analyze_prologue): Adapt to struct s390_prologue_data changes.
1227 (s390_prologue_frame_unwind_cache): Likewise. Only track registers
1228 defined as call-saved by the ABI.
1229 (s390_push_dummy_call): Use bottom of dummy call argument save area
1230 as return value, not the top. Do not store to the called function's
1231 register save area.
1232 (s390_unwind_dummy_id): Adapt accordingly.
1233
0a6ddd08
AC
12342004-10-23 Andrew Cagney <cagney@gnu.org>
1235
1236 * objfiles.h (struct objfile): Rename obj_private to
1237 deprecated_obj_private, sym_private to deprecated_sym_private, and
1238 sym_stab_info to deprecated_sym_stab_info.
1239 * gdb-stabs.h: Update.
1240 * elfread.c: Update.
1241 * dbxread.c: Update.
1242 * coffread.c: Update.
1243 * xcoffread.c: Update.
1244 * symfile.c: Update.
1245 * somread.c: Update.
1246 * nlmread.c: Update.
1247 * mdebugread.c: Update.
1248 * hpread.c: Update.
1249 * coffread.c: Update.
1250
abc08782
MK
12512004-10-23 Mark Kettenis <kettenis@gnu.org>
1252
1253 * mips64obsd-nat.c, mips64obsd-tdep.c: New files.
1254 * configure.host: Add mips64*-*-openbsd*.
1255 * configure.tgt: Add mips64*-*-openbsd*.
1256 * Makefile.in (ALLDEPFILES): Add mips64obsd-nat.o,
1257 mips64obsd-tdep.c.
1258 (mips64obsd-nat.o, mips64obsd-tdep.o): New dependecies.
1259 * config/mips/obsd64.mh, config/mips/obsd64.mt: New files.
1260
fc062ac6
JB
12612004-10-21 Joel Brobecker <brobecker@gnat.com>
1262
1263 * symtab.c (symbol_search_name): Minor reformatting.
1264
5bccb4d1
JB
12652004-10-20 Joel Brobecker <brobecker@gnat.com>
1266
1267 * symtab.h: Fix typo in comment.
1268
a738430d
MK
12692004-10-19 Mark Kettenis <kettenis@gnu.org>
1270
1271 * dwarf2read.c (struct comp_unit_head): Fix coding style.
1272 (dwarf_decode_line_header): Likewise.
1273
f2cb65ca
MC
12742004-10-19 Michael Chastain <mec.gnu@mindspring.com>
1275
1276 * NEWS: GDB works with GCC -feliminate-dwarf2-dups.
1277
09e55376
AC
12782004-10-19 Andrew Cagney <cagney@gnu.org>
1279
1280 GDB 6.3 branch created.
1281 * version.in: Bump to version 6.3.50_2004-10-19-cvs.
1282
bc5f45f8
JB
12832004-10-15 Joel Brobecker <brobecker@gnat.com>
1284
1285 * dwarf2read.c (set_cu_language): Set language to Ada for
1286 DW_LANG_Ada83 and DW_LANG_Ada95.
1287
2941da8c
MC
12882004-10-15 Michael Chastain <mec.gnu@mindspring.com>
1289
1290 From Andreas Schwab <schwab@suse.de>:
1291 * Makefile.in (.y.c, .l.c.): Fix the substitutions for
1292 for xmalloc and xrealloc.
1293
34a17005
AC
12942004-10-15 Andrew Cagney <cagney@gnu.org>
1295
1296 * ada-exp.y, ada-lex.l: Use xmalloc and xrealloc through out.
1297 * inf-ptrace.c: Include "gdb_wait.h" instead of <wait.h>.
1298 * Makefile.in (.y.c, .l.c): Don't replace xmalloc with xxmalloc.
1299 Update dependencies.
1300
714e53ab
PH
13012004-10-15 Paul Hilfinger <Hilfinger@gnat.com>
1302
1303 * ada-lang.c (ada_lookup_symbol): Correct comment.
1304 (ada_evaluate_subexp): Change error message for
1305 OP_FUNCALL case so as not to indicate an internal error.
1306
13072004-10-15 Joel Brobecker <brobecker@gnat.com>
1308
1309 Committed by Paul Hilfinger.
1310 * ada-lang.c (ada_template_to_fixed_record_type_1): Detect bogus
1311 type sizes in XVE/XVU types, and emit a warning when that happens,
1312 instead of rounding up the size of the resulting type.
1313 Some minor reformatting.
1314 (ada_is_aligner_type): Do not consider a type as an aligner type
1315 if there is a corresponding XVS type as well.
1316 (ada_evaluate_subexp): For TERNOP_SLICE, handle cases where we
1317 have several levels of pointer indirection to the array.
1318
13192004-10-15 Jerome Guitton <guitton@gnat.com>
1320
1321 Committed by Paul Hilfinger.
1322 * ada-lang.c (check_size): New function.
1323 (coerce_unspec_val_to_type): call check_size to make sure
1324 that the object size is reasonable.
1325 (ada_evaluate_subexp): in UNOP_IND: Ditto. In TERNOP_SLICE:
1326 Implements the case when we get a reference when we evaluate
1327 the expression of one of the bounds of the slice.
1328 (ada_value_struct_elt): when a packed array field is
1329 a reference, use ada_coerce_ref to dereference it; use
1330 ada_value_ind only if it is a pointer.
1331
29639122
JB
13322004-10-15 Joel Brobecker <brobecker@gnat.com>
1333
1334 * mips-tdep.c (mips32_scan_prologue): Move the implementation up
1335 a bit to avoid the necessity of an advance declaration. Remove
1336 declaration.
1337 (set_reg_offset): Move implemenation up.
1338 (mips16_get_imm): Likewise.
1339 (mips16_scan_prologue): Likewise.
1340 (reset_saved_regs): Likewise.
1341 (mips32_scan_prologue): Likewise.
1342
a65bbe44
JB
13432004-10-14 Joel Brobecker <brobecker@gnat.com>
1344
1345 * mips-tdep.c (mips32_scan_prologue): Add advance declaration.
1346 Remove sp as a parameter, compute it internally instead. Move
1347 prologue scanning limit from heuristic_proc_desc to here.
1348 (mips16_scan_prologue): Likewise.
1349 (mips_insn16_frame_cache): Replace call to heuristic_proc_desc
1350 by call to mips16_scan_prologue.
1351 (mips_insn32_frame_cache): Replace call to heuristic_proc_desc
1352 by call to mips32_scan_prologue.
1353 (heuristic_proc_desc): Remove code that's no longer necessary.
1354 Update calls to mips16_scan_prologue and mips32_scan_prologue.
1355 (mips_skip_prologue): Update calls to mips16_scan_prologue
1356 and mips32_scan_prologue.
1357
1c645fec
JB
13582004-10-14 Joel Brobecker <brobecker@gnat.com>
1359
1360 * mips-tdep.c (mips16_scan_prologue): Merge code from
1361 mips16_skip_prologue. Now return the address of the first
1362 instruction past the function prologue.
1363 (mips16_skip_prologue): Remove, no longer necessary.
1364 (mips_skip_prologue): Replace call to mips16_skip_prologue
1365 by call to mips16_scan_prologue.
1366
98b4dd94
JB
13672004-10-14 Joel Brobecker <brobecker@gnat.com>
1368
1369 * mips-tdep.c (mips32_scan_prologue): Merge code from
1370 mips32_skip_prologue. Now return the address of the first
1371 instruction past the function prologue.
1372 (mips32_skip_prologue): Remove. No longer necessary.
1373 (mips16_skip_prologue): Add parameter end_pc instead of
1374 computing it.
1375 (mips_skip_prologue): Compute the upper limit for the
1376 prologue scanning. Update call to mips16_skip_prologue.
1377 Replace call to mips32_skip_prologue by call to
1378 mips32_scan_prologue.
1379
ad4c72d2
MK
13802004-10-14 Mark Kettenis <kettenis@gnu.org>
1381
dfaf8edb
MK
1382 * hppa-tdep.c (hppa_frame_cache): Add support for OpenBSD and
1383 NetBSD system call stubs that store %rp in the ERP slot of the
1384 stack frame.
1385
3e3a28f1
MK
1386 * source.c: Always define O_BINARY to 0 if not defined already.
1387 (openp): Unconditionally use O_BINARY.
1388
ad4c72d2
MK
1389 * top.c (gdb_readline): Always accept "\r\n" as a line-ending.
1390 * event-top.c (gdb_readline2): Likewise.
1391
52bd1401
OF
13922004-10-14 Orjan Friberg <orjanf@axis.com>
1393
1394 * cris-tdep.c (_initialize_cris_tdep): Re-add call to
1395 deprecated_add_core_fns which was removed by mistake.
1396
e0e25c6c
KB
13972004-10-13 Kevin Buettner <kevinb@redhat.com>
1398
1399 * ia64-linux-nat.c (fill_gregset, fill_fpregset): Replace
1400 references to deprecated_registers[] with equivalent code.
1401
9f335945
KB
14022004-10-13 Kevin Buettner <kevinb@redhat.com>
1403
1404 * rs6000-tdep.c (rs6000_push_dummy_call): Replace references to
1405 ``deprecated_registers'' with equivalent code. Use gdb_assert()
1406 instead of explicit test and print statement.
1407
06c2338d
MK
14082004-10-12 Mark Kettenis <kettenis@gnu.org>
1409
1b9445c2
MK
1410 * sparc-nat.c: Include "inf-ptrace.h".
1411 (sparc_target): New function.
1412 * sparc-nat.h: Update copyright year.
1413 (sparc_target): New prototype.
1414 * sparcnbsd-nat.c: Don't include "gdbcore.h", include "target.h".
1415 (_initialize_sparcnbsd_nat): Construct and add target vector.
1416 * sparc64nbsd-nat.c: Include "target.h".
1417 (_initialize_sparc64nbsd_nat): Construct and add target vector.
1418 * Makefile.in (sparc-nat.o, sparcnbsd-nat.o, sparc64nbsd-nat.o):
1419 Update dependencies.
1420 * config/sparc/nbsd64.mh (NATDEPFILES): Remove infptrace.o and
1421 inftarg.o, add inf-ptrace.o.
1422 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1423 inftarg.o, add inf-ptrace.o and bsd-kvm.o.
1424 (NAT_FILE): Set to nm-bsd.h.
1425 (LOADLIBES): New variable.
1426 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
1427 infarg.o, add inf-ptrace.o.
1428 * config/sparc/nm-nbsdaout.h: Remove file.
1429 * config/sparc/fbsd.mh (NATDEPFILES): Add inf-ptrace.o.
1430 * config/sparc/linux.mh (NATDEPFILES): Add inf-ptrace.o.
1431 * config/sparc/linux64.mh (NATDEPFILES): Add inf-ptrace.o.
1432
06c2338d
MK
1433 * defs.h [!FOPEN_RB]: Include "fopen-bin.h" instead of
1434 "fopen-same.h". Update comment.
1435
3303a276
MK
14362004-10-11 Mark Kettenis <kettenis@gnu.org>
1437
1438 * i386gnu-nat.c: Include "gdb_string.h".
1439 (fetch_fpregs): Use i387_supply_fxsave to fill the floating-point
1440 registers when the floating-point state isn't initialized.
1441 * Makefile.in (i386gnu-nat.o): Update dependencies.
1442
04c663e3
DA
14432004-10-11 David Anderson <davea@sgi.com>
1444
1445 * regcache.c (regcache_raw_read): Comment was missing "to".
1446 Extraneous ' removed.
1447 * gdb_thread_db.h (struct td_thrinfo): ti_lid field
1448 comment now describes use.
1449
a5f6c8f5
OF
14502004-10-11 Orjan Friberg <orjanf@axis.com>
1451
1452 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start)
1453 (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
1454 (cris_sigtramp_frame_this_id, cris_sigtramp_frame_prev_register)
1455 (cris_sigtramp_frame_sniffer): New functions.
1456 (cris_gdbarch_init): Hook in signal trampoline unwinder.
1457 (cris_dwarf2_reg_to_regnum, cris_dwarf2_frame_init_reg): New functions.
1458 (cris_gdbarch_init): Hook in Dwarf-2 unwinder.
1459 (struct gdbarch_tdep, set_cris_dwarf2_cfi, cris_dump_tdep)
1460 (cris_gdbarch_init, _initialize_cris_tdep): Add CRIS Dwarf-2 CFI usage
1461 command.
1462 (cris_version_update): Remove, replace with ...
1463 (set_cris_version): New function.
1464 (struct gdbarch_tdep, cris_mode, cris_mode_update)
1465 (cris_cannot_store_register, cris_dump_tdep, cris_gdbarch_init)
1466 (_initialize_cris_tdep): Remove CRIS mode command.
1467 (cris_fpless_backtrace, _initialize_cris_tdep): Remove
1468 cris-fpless-backtrace command.
1469 (cris_scan_prologue): Fix prologue scanning limit.
1470 (cris_register_type): Update to reflect actual registers.
1471 (cris_register_bytes_ok) Remove.
1472 (cris_gdbarch_init): Remove support for CRIS v8 and v9.
1473 Remove set_gdbarch_deprecated_register_size,
1474 set_gdbarch_deprecated_register_byte, set_gdbarch_register_bytes_ok.
1475
77109804
AC
14762004-10-10 Andrew Cagney <cagney@gnu.org>
1477
1478 * ada-lang.c (lim_warning): Add ATTR_FORMAT prototype and FIXME
1479 comment.
1480
25652d4f
JB
14812004-10-10 Joel Brobecker <brobecker@gnat.com>
1482
1483 * mips-tdep.c (mips16_scan_prologue): Remove redundant code.
1484
1e05a7bf
JB
14852004-10-10 Joel Brobecker <brobecker@gnat.com>
1486
1487 * mips-tdep.c (mips16_scan_prologue): Renames
1488 mips16_heuristic_proc_desc. Update comment.
1489 (mips32_scan_prologue): Renames mips32_heuristic_proc_desc.
1490 (heuristic_proc_desc): Update calls to the 2 functions above.
1491
c68a4142
JB
14922004-10-10 Joel Brobecker <brobecker@gnat.com>
1493
1494 * mips-tdep.c (mips_insn16_frame_cache): Remove unused variables.
1495 Update comments. Also immediately return empty cache when the start
1496 address of our function could not be found.
1497 (mips_insn32_frame_cache): Likewise.
1498
0fce0821
JB
14992004-10-10 Joel Brobecker <brobecker@gnat.com>
1500
1501 * mips-tdep.c (mips16_decode_reg_save): Delete, no longer used.
1502 (mips_insn16_frame_cache): Pass frame cache in call to
1503 heuristic_proc_desc. Move some code to mips16_heuristic_proc_desc.
1504 Remove code that became redundant as a consequence.
1505 (mips32_heuristic_proc_desc): No longer compute a fake
1506 procedure descriptor. Compute the full frame cache instead.
1507 Some minor comment reformatting.
1508
b672553e
JB
15092004-10-10 Jim Blandy <jimb@redhat.com>
1510
1511 * MAINTAINERS (generic symtabs, dwarf readers, elf reader, stabs
1512 reader, tracing bytecode stuff): Remove self.
1513
9cc52bde
MK
15142004-10-10 Mark Kettenis <kettenis@gnu.org>
1515
cc9784b6
MK
1516 * sparc64-linux-tdep.c: Update copyright year. Don't include
1517 "solib-svr4.h".
1518 (sparc64_linux_svr4_fetch_link_map_offsets): Remove function.
1519 (sparc64_linux_init_abi): Don't set solib_svr4_link_map_offsets.
1520 * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
1521
ee8aef23
MK
1522 * sparc-linux-tdep.c: Update copyright year.
1523 (sparc_linux_sigtramp_start): Change first argument from CORE_ADDR
1524 to struct frame_info *. Use safe_frame_unwind_memory instead of
1525 deprecated_read_memory_nobpt.
1526 (sparc32_linux_sigtramp_start, sparc32_linux_rt_sigtramp_start):
1527 Change argumen from CORE_ADDR to struct frame_info *. Adjust for
1528 changed signature of sparc_linux_sigtramp_start.
1529 (sparc32_linux_pc_in_sigtramp): Remove function.
1530 (sparc32_linux_sigtramp_p): New function.
1531 (sparc32_linux_sigtramp_frame_sniffer): Use
1532 sparc32_linux_sigtramp_p instead of sparc32_linux_pc_in_sigtramp.
1533
bc73f8cc
MK
1534 * sparc-linux-tdep.c (sparc32_linux_svr4_fetch_link_map_offsets):
1535 Remove function.
1536 (sparc32_linux_init_abi): Don't set solib_svr4_link_map_offsets.
1537
a2249542
MK
1538 * ada-lang.c (lim_warning): Re-implement as a varargs function.
1539 (decode_packed_array_type, value_subscript_packed)
1540 (ada_evaluate_subexp, to_fixed_range_type): Remove redundant
1541 argument in call to lim_warning.
1542
9cc52bde
MK
1543 * configure.in: Really disable the TUI if an enhanced curses
1544 library isn't found.
1545 * configure: Regenerate.
1546
151fc45b
MK
15472004-10-09 Mark Kettenis <kettenis@gnu.org>
1548
1549 * config/i386/nbsdaout.mh (NAT_FILE): Set to solib.h.
1550 * config/i386/nbsdelf.mh (NAT_FILE): Set to solib.h.
1551 * config/i386/nm-nbsdaout.h: Remove file.
1552 * config/i386/nm-fbsd.h (link_object, lo_name, lo_library)
1553 (lo_unused, lo_major, lo_minor, lo_next, link_map, lm_addr)
1554 (lm_name, lm_next, lm_lop, lm_lob, lm_rwt, lm_ld, lm_lpd)
1555 (link_dynamic_2, ld_loaded, ld_need, ld_rules, ld_got, ld_plt)
1556 (ld_rel, ld_hash, ld_stab, ld_stab_hash, ld_buckets, ld_symbols)
1557 (ld_symb_size, ld_text, ld_plt_sz, rtc_symb, rtc_sp, rtc_next)
1558 (ld_debug, ldd_version, ldd_in_debugger, ldd_sym_loaded)
1559 (ldd_bp_addr, ldd_bp_inst, ldd_cp, link_dynamic, ld_version)
1560 (ldd, ld_un, ld_2): Remove defines.
1561 * config/i386/nm-obsd.h: Likewise.
1562
375c0479
PH
15632004-10-09 Paul Hilfinger <hilfingr@nile.gnat.com>
1564
1565 * ada-lex.l: Remove useless rule whose right-context clause
1566 causes unreferenced static function warning for yyrealloc.
1567 (ada_flex_use): Remove the artificial reference to yyrealloc.
1568
c8e73a31
AC
15692004-10-08 Andrew Cagney <cagney@gnu.org>
1570
1571 * target.h (struct target_ops): Rename to_xfer_memory to
1572 deprecated_xfer_memory.
1573 * target.c: Update.
1574 (deprecated_debug_xfer_memory): Rename debug_to_xfer_memory.
1575 * wince.c: Update.
1576 * win32-nat.c: Update.
1577 * v850ice.c: Update.
1578 * uw-thread.c: Update.
1579 * thread-db.c: Update.
1580 * sol-thread.c: Update.
1581 * remote.c: Update.
1582 * remote-vx.c: Update.
1583 * remote-st.c: Update.
1584 * remote-sim.c: Update.
1585 * remote-sds.c: Update.
1586 * remote-rdp.c: Update.
1587 * remote-rdi.c: Update.
1588 * remote-mips.c: Update.
1589 * remote-m32r-sdi.c: Update.
1590 * remote-e7000.c: Update.
1591 * procfs.c: Update.
1592 * ppc-bdm.c: Update.
1593 * nto-procfs.c: Update.
1594 * monitor.c: Update.
1595 * linux-nat.c: Update.
1596 * inftarg.c: Update.
1597 * hpux-thread.c: Update.
1598 * go32-nat.c: Update.
1599 * gnu-nat.c: Update.
1600 * exec.c: Update.
1601 * corelow.c: Update.
1602 * bsd-kvm.c: Update.
1603 * aix-thread.c: Update.
1604
aa869812
AC
16052004-10-08 Andrew Cagney <cagney@gnu.org>
1606
1607 * target.c (debug_target): Move to near start of file.
1608 (target_stopped_data_address_p): Re-org logic, add casts.
1609
8dcef9cf
MK
16102004-10-02 Mark Kettenis <kettenis@gnu.org>
1611
1612 * solib-sunos.c [HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS] (link_map)
1613 (lm_addr, lm_name, lm_next, link_dynamic_2, ld_loaded, rtc_symb)
1614 (rtc_sp, rtc_next, ld_debug, ldd_in_debugger, ldd_bp_addr)
1615 (ldd_bp_inst, ldd_cp, link_dynamic, ld_version, ldd, ld_un, ld_2):
1616 New defines.
1617
4aa7a7f5
JJ
16182004-10-08 Jeff Johnston <jjohnstn@redhat.com>
1619
1620 * target.h (to_stopped_data_address): Change prototype to
1621 take a CORE_ADDR pointer and return an int.
1622 * target.c (update_current_target): Change to_stopped_data_address
1623 to match new prototype.
1624 (debug_to_stopped_data_address): Change appropriately.
1625 * breakpoint.c (bpstat_stop_status): Change call to
1626 target_stopped_data_address to use new prototype.
1627 * frv-tdep.c (frv_have_stopped_data_address): New function.
1628 (frv_stopped_data_address): Change to new prototype and
1629 functionality.
1630 * ia64-linux-nat.c (ia64_stopped_data_address): Change to new
1631 prototype and functionality.
1632 (ia64_stopped_by_watchpoint): New function.
1633 * i386-nat.c (i386_stopped_data_address): Change to new
1634 prototype and functionality.
1635 (i386_stopped_by_watchpoint): New function.
1636 * remote.c (remote_stopped_data_address): Change to new prototype
1637 and functionality.
1638 * remote-m32r-sdi.c (m32r_stopped_data_address): Ditto.
1639 * config/frv/tm-frv.h (frv_stopped_data_address): Change prototype.
1640 (STOPPED_BY_WATCHPOINT): Change to use frv_have_stopped_data_address.
1641 * config/i386/nm-i386.h (STOPPED_BY_WATCHPOINT): Change to use
1642 new i386_stopped_by_watchpoint function.
1643 (i386_stopped_by_watchpoint): New prototype.
1644 (i386_stoppped_data_address): Change to new prototype.
1645 * config/ia64/nm-linux.h (STOPPED_BY_WATCHPOINT): Change to use
1646 new ia64_stopped_by_watchpoint function.
1647 (ia64_stopped_by_watchpoint): New prototype.
1648 (ia64_stopped_data_address): Ditto.
1649
61ee279c
PH
16502004-10-08 Paul Hilfinger <Hilfinger@gnat.com>
1651
1652 * ada-typeprint.c (ada_print_type): Use int_string for printing
1653 modulus of modular type.
1654 * ada-lang.h (ada_modulus): Change return type to unsigned.
1655 * ada-lang.c (ada_language_arch_info): Correct type of
1656 string_char_type.
1657 (ada_modulus): Return unsigned result.
1658 (ada_lookup_symbol): Remove user disambiguation and modify comment
1659 accordingly.
1660
16612004-10-08 Eric Botcazou <ebotcazou@act-europe.fr>
1662
1663 Committed by Paul Hilfinger.
1664 * ada-lang.c (decode_packed_array): On big-endian targets,
1665 left-justify the value if it comes with a modular type.
1666
16672004-10-08 Joel Brobecker <brobecker@gnat.com>
1668
1669 Committed by Paul Hilfinger.
1670 * ada-lang.c (template_to_static_fixed_type): Fix a small typo.
1671 (is_name_suffix): Add support for "___JM" suffixes.
1672 (ada_check_typedef): Renames ada_completed_type.
1673 Update all users of CHECK_TYPEDEF, check_typedef, and
1674 ada_complete_type to call ada_check_typedef.
1675 * ada-typeprint.c: Likewise.
1676 * ada-valprint.c: Likewise.
1677
b6c25a56
CV
16782004-10-08 Corinna Vinschen <vinschen@redhat.com>
1679
1680 * infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
1681
83ca6a46
NR
16822004-10-08 Nick Roberts <nickrob@snap.net.nz>
1683
1684 * MAINTAINERS: Update e-mail address.
1685
1fd8cd20
DJ
16862004-10-07 Daniel Jacobowitz <dan@debian.org>
1687
1688 From Maciej W. Rozycki <macro@mips.com>:
1689 * mips-tdep.c (mips32_next_pc): Check the register's contents,
1690 not its number for BLEZ/BLEZL and BGTZ/BGTZL.
1691
cea15572
KI
16922004-10-07 Kei Sakamoto <sakamoto.kei@renesas.com>
1693
1694 * m32r-tdep.c (decode_prologue): Support functions written
1695 in assembler language. Recognize trap instructions as the
1696 end of prologue.
1697 (m32r_frame_unwind_cache): Ditto.
1698 (m32r_skip_prologue): Extend search limit. Quit analyzing
1699 prologue if pc's location is not readable.
1700
23485554
PH
17012004-10-06 Paul N. Hilfinger <Hilfinger@gnat.com>
1702
1703 * Makefile.in (.l.c): Do conversions of names of alloc and free
1704 functions that are done for .y.c files, plus special one
1705 for yy_flex_realloc. Also, correct missing-file tests here.
1706 * ada-lex.l (malloc, free): Remove macros.
1707 (resize_tempbuf): Use "realloc"; rely on sed changes to convert to
1708 xrealloc.
1709 (ada_flex_use): Dummy definition to remove warnings about unused
1710 functions.
1711 * ada-exp.y (dummy_string_to_ada_operator): Temporary definition
1712 to suppress warning.
1713
c0409442
CV
17142004-10-06 Corinna Vinschen <vinschen@redhat.com>
1715
1716 * sh-tdep.c (sh_return_value_nofpu): New function, implementing
1717 RETURN_VALUE.
1718 (sh_return_value_fpu): Ditto for CPUs with FPU.
1719 (sh_gdbarch_init): Remove STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
1720 RETURN_VALUE_ON_STACK and USE_STRUCT_CONVENTION throughout.
1721 Install sh_return_value_nofpu resp. sh_return_value_fpu as
1722 RETURN_VALUE functions.
1723
9bed62d7
CV
17242004-10-06 Corinna Vinschen <vinschen@redhat.com>
1725
1726 * sh-tdep.c (sh_pseudo_register_read): Add PSEUDO_BANK_REGNUM handling.
1727 (sh_pseudo_register_write): Ditto.
1728
03131d99
CV
17292004-10-06 Corinna Vinschen <vinschen@redhat.com>
1730
1731 * sh-tdep.c (IS_MACL_STS): New define.
1732 (IS_MOVI20): Ditto.
1733 (IS_MACL_LDS): Ditto.
1734 (sh_analyze_prologue): Recognize STS.L MACL,@-r15 and MOVI20
1735 instructions in prologue.
1736 (sh_in_function_epilogue_p): Recognize LDS.L @r15+,MACL and MOVI20
1737 instructions in epilogue.
1738
da962468
CV
17392004-10-06 Corinna Vinschen <vinschen@redhat.com>
1740
1741 * sh-tdep.c (SH_NUM_REGS): Define as 67.
1742 (sh_sh_register_name): Add eight empty register names.
1743 (sh_sh3_register_name): Ditto.
1744 (sh_sh3e_register_name): Ditto.
1745 (sh_sh2e_register_name): Ditto.
1746 (sh_sh2a_register_name): New function, defining SH2A register set.
1747 (sh_sh2a_nofpu_register_name): New function, defining SH2A register set
1748 in nofpu case.
1749 (sh_sh_dsp_register_name): Add eight empty register names.
1750 (sh_sh3_dsp_register_name): Ditto.
1751 (sh_sh4_register_name): Ditto.
1752 (sh_sh4_nofpu_register_name): Ditto.
1753 (sh_sh4al_dsp_register_name): Ditto.
1754 (sh2a_show_regs): New function.
1755 (sh2a_nofpu_show_regs): New function.
1756 (sh_sh2a_register_type): New function.
1757 (do_bank_register_info): New function.
1758 (sh_print_pseudo_register): Call do_bank_register_info.
1759 Call sh_print_pseudo_register for valid "bank" register.
1760 (sh_sh2a_register_sim_regno): New function.
1761 (sh_gdbarch_init): Add bfd_mach_sh2a and bfd_mach_sh2a_nofpu handling.
1762 Increment pseudo register count by one for all sh variants with
1763 pseudo registers to accomodate pseudo bank register.
1764 * sh-tdep.h: Add register numbers for R0_BANK0_REGNUM, MACHB_REGNUM,
1765 IVNB_REGNUM, PRB_REGNUM, GBRB_REGNUM, MACLB_REGNUM, BANK_REGNUM,
1766 IBCR_REGNUM, IBNR_REGNUM, TBR_REGNUM and PSEUDO_BANK_REGNUM.
1767 Increment pseudo register numbers.
1768
1326e61b
CV
17692004-10-06 Corinna Vinschen <vinschen@redhat.com>
1770
1771 * dwarf2read.c (read_subroutine_type): Call make_function_type
1772 instead of lookup_function_type.
1773
146c42e3
JB
17742004-10-05 Jim Blandy <jimb@redhat.com>
1775
1776 * linux-nat.c (_initialize_linux_nat): Rename child_ops.
1777 (Previous change missed some uses.)
1778
1df84f13
AC
17792004-10-05 Andrew Cagney <cagney@gnu.org>
1780
1781 * target.h (deprecated_child_ops): Rename child_ops.
1782 * wince.c: Update copyright. Rename child_ops.
1783 * win32-nat.c: Rename child_ops.
1784 * target.c: Rename child_ops.
1785 * rs6000-nat.c: Rename child_ops.
1786 * linux-nat.c: Rename child_ops.
1787 * infttrace.c: Rename child_ops.
1788 * inftarg.c: Rename child_ops.
1789 * infptrace.c: Rename child_ops.
1790 * hppah-nat.c: Update copyright. Rename child_ops.
1791 * hpux-thread.c: Update copyright. Rename child_ops.
1792
21e3b9b9
DJ
17932004-10-05 Daniel Jacobowitz <dan@debian.org>
1794
1795 * remote.c (remote_xfer_partial): Handle TARGET_OBJECT_MEMORY.
1796
de83afe7
AC
17972004-10-05 Andrew Cagney <cagney@gnu.org>
1798
1799 * version.in: Bump to version 6.2.50_YYYY-MM-DD-cvs.
1800
10b3939b
DJ
18012004-10-05 Daniel Jacobowitz <dan@debian.org>
1802
1803 * dwarf2read.c (REF_HASH_SIZE): Move earlier.
1804 (die_ref_table): Remove.
1805 (struct dwarf2_cu): Add DIES, DEPENDENCIES, and DIE_REF_TABLE.
1806 (struct dwarf2_per_cu_data): Add PSYMTAB. Add a comment describing
1807 the usage of this type.
1808 (struct dwarf2_per_objfile): Update comment for ALL_COMP_UNITS.
1809 (struct dwarf2_pinfo, PST_PRIVATE, DWARF_INFO_OFFSET): Remove.
1810 (struct dwarf2_queue_item, dwarf2_queue, dwarf2_queue_tail): New.
1811 (dwarf2_create_include_psymtab): Update comment.
1812 (find_partial_die): Remove third argument. Remove unreachable call
1813 to error ().
1814 (dwarf2_find_containing_comp_unit): Update comments. Change one
1815 assertion to an error. Remove an unreachable error.
1816 (dwarf2_find_comp_unit): Update comments.
1817 (type_at_offset): Remove dead code.
1818 (make_cleanup_free_die_list, dwarf2_empty_hash_tables): Remove.
1819 (store_in_ref_table): Add CU argument.
1820 (follow_die_ref): Take DIE, attribute, and CU arguments. Handle
1821 inter-compilation-unit references.
1822 (load_full_comp_unit, process_full_comp_unit): New functions, based
1823 on psymtab_to_symtab_1.
1824 (psymtab_to_symtab_1): Use them.
1825 (dwarf2_add_dependence): New function.
1826 (dwarf2_build_psymtabs_hard): Set the psymtab in per_cu. Always create
1827 a per_cu structure, and save it in READ_PSYMTAB_PRIVATE.
1828 (partial_die_parent_scope, guess_structure_name): Update for changes
1829 to find_partial_die.
1830 (dwarf2_psymtab_to_symtab): Initialize dwarf2_per_objfile here.
1831 (queue_comp_unit, process_queue, dwarf2_release_queue): New.
1832 (read_comp_unit): Don't call dwarf2_empty_hash_tables.
1833 (read_die_and_children): Update call to store_in_ref_table.
1834 (do_free_die_list_cleanup): Remove.
1835 (fixup_partial_die): Update for changes to find_partial_die.
1836 (read_full_die): Handle queueing absolute references.
1837 (read_attribute_value): Use DW_ADDR for all DW_FORM_ref* forms.
1838 (dwarf2_attr, die_specification, die_type)
1839 (die_containing_type, dwarf2_extension): Update calls to
1840 follow_die_ref.
1841 (dump_die): Update DW_FORM_ref* handling.
1842 (dwarf2_get_ref_die_offset): Likewise.
1843 (free_one_comp_unit): Release the dies list.
1844 (dwarf2_mark_helper): New function.
1845 (dwarf2_mark): Use it.
1846
998bdd68
MK
18472004-10-05 Mark Kettenis <kettenis@jive.nl>
1848
1849 * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
1850 when writing to memory.
1851
14588880
KI
18522004-10-05 Kei Sakamoto <sakamoto.kei@renesas.com>
1853
1854 * m32r-tdep.c (m32r_use_struct_convention): Delete function.
1855 (m32r_extract_struct_value_address): Delete function.
1856 (m32r_return_value): New function.
1857 (m32r_gdbarch_init): Instead of store_return_value,
1858 extract_return_value, deprecated_extract_struct_value_address
1859 and deprecated_use_struct_convention, set return_value.
1860
dd5e6932
DJ
18612004-10-03 Daniel Jacobowitz <dan@debian.org>
1862
1863 * dwarf2read.c (read_subrange_type): Add comment for variable
1864 sized arrays.
1865
7dc1ef8d
PH
18662004-10-03 Paul Hilfinger <hilfingr@nile.gnat.com>
1867
1868 * Makefile.in (.l.c): Modify rule for compatibility with recent
1869 versions of flex, and remove most command-line options.
1870 * ada-lex.l: Add %options line in place of -I -i and -s command-line
1871 options.
1872
1f8173e6
PH
18732004-10-02 Paul N. Hilfinger <Hilfinger@gnat.com>
1874
1875 Turn on initial Ada support (mainly expression evaluation).
1876
1877 * Makefile.in (SFILES): Remove ada-tasks.c.
1878 (HFILES_NO_SRCDIR): Add ada-lang.h.
1879 (COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
1880 (YYOBJ): Add ada-exp.o.
1881 (rule .l.c): Generalize to not mention ada.
1882 * symtab.c: Include ada-lang.h.
1883 (symbol_natural_name, symbol_demangled_name)
1884 (symbol_search_name): Add Ada case.
1885
cb85a953
AC
18862004-10-01 Andrew Cagney <cagney@gnu.org>
1887
3f3db248
AC
1888 * Makefile.in (COMMON_OBS): Add inf-child.o.
1889 * config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
1890 * config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
1891 * config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
1892 * config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
1893 * config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
1894 * config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
1895 * config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
1896 * config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
1897 * config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
1898 * config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
1899 * config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
1900 * config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
1901 * config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
1902
cb85a953
AC
1903 * target.c (xfer_using_stratum): Change return type to LONGEST.
1904 On each iteration offset, readbuf and writebuf.
1905 * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
1906 partial_length, and read/modify/write predicate, update comments.
1907 Pass buffer.word to ptrace write.
1908
963a6417
PH
19092004-10-01 Paul N. Hilfinger <Hilfinger@gnat.com>
1910
1911 * symfile.c (init_filename_language_table): Add extensions for
1912 Ada.
1913 * defs.h (enum language): Add language_ada.
1914 * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
1915 * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
1916 (add_symbols_from_enclosing_procs): Make a no-op for now.
1917 (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
1918 (extended_canonical_line_spec, find_sal_from_funcs_and_line)
1919 (find_line_in_linetable, find_next_line_in_linetable)
1920 (read_all_symtabs, is_plausible_func_for_line)
1921 (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
1922 (is_runtime_sym_defined, check_size): Remove declaration.
1923 (function_name_from_pc, ada_translate_error_message)
1924 (ada_lookup_minimal_symbol): Remove definition.
1925 (ada_add_block_symbols): Remove useless label.
1926 * ada-lang.h (ada_maybe_exception_partial_symbol): Remove
1927 useless declaration.
1928 (ada_is_exception_sym): Likewise.
1929
9b32d526
KI
19302004-09-30 Kei Sakamoto <sakamoto.kei@renesas.com>
1931
1932 Add m32r-linux support.
1933 * configure.tgt: Add m32r*-*-linux*.
1934 * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
1935 and m32r-linux-tdep.c.
1936 (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
1937 * m32r-tdep.c: Move some definitions to m32r-tdep.h.
1938 * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
1939 m32r-linux-tdep.c.
1940 * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
1941 config/m32r/linux.mh, config/m32r/linux.mt,
1942 config/m32r/nm-linux.h: New files.
1943
2de118d3
JB
19442004-09-30 Joel Brobecker <brobecker@gnat.com>
1945
1946 * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
1947 (mips32_fetch_instruction): Remove, unused.
1948
a9fe69d1
JB
19492004-09-30 Joel Brobecker <brobecker@gnat.com>
1950
1951 * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
1952 conditions that will always be true.
1953
bc8ffc12
MK
19542004-09-30 Mark Kettenis <kettenis@gnu.org>
1955
ba0cd111
MK
1956 * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
1957 (vaxbsd_fetch_inferior_registers): Rename from
1958 fetch_inferior_registers. Make static.
1959 (vaxbsd_store_inferior_registers): Rename from
1960 store_inferior_registers. Make static.
1961 (_initialize_vaxbsd_nat): Construct and add target vector.
1962 * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1963 inftarg.o. Add inf-child.o and inf-ptrace.o.
1964 * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
1965 inftarg.o. Add inf-child.o and inf-ptrace.o.
1966 (NAT_FILE): Remove.
1967 * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
1968 inftarg.o. Add inf-child.o and inf-ptrace.o.
1969 (NAT_FILE): Remove.
1970 * Makefile.in (vaxbsd-nat.o): Update dependencies.
1971
bc8ffc12
MK
1972 * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
1973 (m88kbsd_fetch_inferior_registers): Rename from
1974 fetch_inferior_registers. Make static.
1975 (m88kbsd_store_inferior_registers): Rename from
1976 store_inferior_registers. Make static.
1977 (_initialize_m88kbsd_nat): New prototype and function.
1978 * config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
1979 inftarg.o. Add inf-child.o and inf-ptrace.o.
1980 (NAT_FILE): Remove.
1981 * Makefile.in (m88kbsd-nat.o): Update dependencies.
1982
27394598
AC
19832004-09-30 Andrew Cagney <cagney@gnu.org>
1984
1985 * target.c (target_xfer_partial): New function.
1986 (target_read_memory_partial, target_write_memory_partial)
1987 (default_xfer_partial, target_read_partial, target_write_partial)
1988 (xfer_using_stratum): Use.
1989 (debug_to_xfer_partial): Delete function.
1990 (setup_target_debug): Do not override to_xfer_partial.
1991
74a4fe32
MK
19922004-09-30 Mark Kettenis <kettenis@chello.nl>
1993
1994 * fork-child.c: Update copyright year. Fix coding style.
1995
982526a1
MK
19962004-09-29 Mark Kettenis <kettenis@gnu.org>
1997
1998 * defs.h (msavestring, mstrsave): Remove prototypes.
1999 * utils.c (msavestring, mstrsave): Remove functions.
2000 * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
2001 * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
2002 of mstrsave.
2003 * source.c (find_and_open_source): Use xstrdup instead of
2004 mstrsave.
2005
b8eb5af0
AC
20062004-09-30 Andrew Cagney <cagney@gnu.org>
2007
0779438d
AC
2008 * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
2009 (inf_ptrace_xfer_memory): Delete.
2010 * target.c (target_xfer_partial_p, xfer_using_stratum): New.
2011 (target_read_memory, target_write_memory): Use xfer_using_stratum
2012 when target_xfer_partial_p.
2013 (debug_target): Move to start of file.
2014 (target_read_memory_partial, target_write_memory_partial): Use
2015 to_xfer_partial when target_xfer_partial_p.
2016
f929a579
AC
2017 * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
2018 inf_ptrace_xfer_memory with equivalent code.
2019 * inftarg.c (child_xfer_partial): When performing a write, pass
2020 writebuf to child_xfer_memory.
2021
b8eb5af0
AC
2022 * target.c (target_read_string): Use target_read_memory instead of
2023 target_xfer_memory.
2024
ee21b650
AC
20252004-09-29 Andrew Cagney <cagney@gnu.org>
2026
d3e05d0d
AC
2027 * infptrace.c (kill_inferior): Fix typo, in previous inline. Pass
2028 the address of status.
2029
ee21b650
AC
2030 * infptrace.c (ptrace_wait): Mention problem with HPUX.
2031 (kill_inferior): Inline ptrace_wait call.
2032 * linux-nat.c (kill_inferior): Inline ptrace_wait call.
2033 * inftarg.c (child_wait): Inline ptrace_wait call.
2034
a182eed6
AC
2035 * target.h (struct target_ops): Delete field to_post_wait.
2036 (target_post_wait): Delete macro.
2037 (child_post_wait): Delete declaration.
2038 * target.c (update_current_target, update_current_target)
2039 (debug_to_post_wait, setup_target_debug): Delete functions and
2040 references.
2041 * infttrace.c (ptrace_wait): Delete call to target_post_wait.
2042 * inftarg.c (child_post_wait): Delete.
2043 (init_child_ops): Do not set to_post_wait.
2044 * infptrace.c (ptrace_wait): Delete call to target_post_wait.
2045 * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
2046 * inf-child.c (inf_child_post_wait): Delete.
2047 (inf_child_target): Do not set to_post_wait.
2048 * inf-ptrace.c (inf_ptrace_post_wait): Delete.
2049 (inf_ptrace_target): Do not set to_post_wait.
2050
ba0c540b
AC
2051 * wince.c (child_ops): Delete.
2052 * win32-nat.c (child_ops): Delete.
2053
81977402
AC
2054 * inftarg.c (inftarg_set_find_memory_regions)
2055 (inftarg_set_make_corefile_notes): Delete functions.
2056 (_initialize_linux_nat): Inline calls.
2057
5ac10fd1
AC
2058 * target.h (child_ops): Declare.
2059 * inftarg.c (child_ops): Move from here ...
2060 * target.c (child_ops): ... to here.
2061 * wince.c (child_ops): Delete extern declaration.
2062 * win32-nat.c (child_ops): Delete extern declaration.
2063 * linux-nat.c (child_ops): Delete extern declaration.
2064 * hpux-thread.c (child_ops): Delete extern declaration.
2065
663408c2 20662004-09-28 Mark Kettenis <kettenis@gnu.org>
890c8f4d
MK
2067
2068 * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
2069
0dad8a66
MK
20702004-09-28 Mark Kettenis <kettenis@gnu.org>
2071
2072 * configure.in: Only set host_makefile_frag when building a native
2073 debugger.
2074 * configure: Regenerate.
e8d74ed3
MK
2075
2076 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
2077 for OpenBSD ELF.
2078
dba24537
AC
20792004-09-28 Andrew Cagney <cagney@gnu.org>
2080
e979516b
AC
2081 Problem identified by Paul Hilfinger.
2082 * Makefile.in (ada_lex_c): Define.
2083 (ada-lex.o): Delete rule.
2084
dba24537
AC
2085 * linux-proc.c: Delete file.
2086 * Makefile.in: Update.
2087 * config/sparc/linux64.mh (NATDEPFILES):
2088 * config/sparc/linux.mh (NATDEPFILES): Update.
2089 * config/s390/s390.mh (NATDEPFILES): Update.
2090 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
2091 * config/powerpc/linux.mh (NATDEPFILES): Update.
2092 * config/pa/linux.mh (NATDEPFILES): Update.
2093 * config/mips/linux.mh (NATDEPFILES): Update.
2094 * config/m68k/linux.mh (NATDEPFILES): Update.
2095 * config/ia64/linux.mh (NATDEPFILES): Update.
2096 * config/i386/linux64.mh (NATDEPFILES): Update.
2097 * config/i386/linux.mh (NATDEPFILES): Update.
2098 * config/arm/linux.mh (NATDEPFILES): Update.
2099 * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
2100 * linux-nat.c: Update copyright. Include <sys/param.h>,
2101 <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
2102 "gdbthread.h", "gdb_stat.h", <fcntl.h>.
2103 (O_LARGEFILE): Possibly define.
2104 (_initialize_linux_nat, linux_proc_pending_signals)
2105 (add_line_to_sigset, linux_proc_xfer_memory)
2106 (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
2107 (linux_nat_do_registers, linux_nat_corefile_thread_callback)
2108 (struct linux_corefile_thread_data)
2109 (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
2110 (child_pid_to_exec_file): Insert code previously in linux-proc.c.
2111
d6b0e80f
AC
21122004-09-16 Andrew Cagney <cagney@gnu.org>
2113
2114 * lin-lwp.c: Delete file.
2115 * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
2116 <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
2117 (status_to_str, init_lwp_list, add_lwp, delete_lwp)
2118 (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
2119 (linux_nat_attach, detach_callback, linux_nat_detach)
2120 (resume_callback, resume_clear_callback, linux_nat_resume)
2121 (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
2122 (stop_wait_callback, linux_nat_has_pending, flush_callback)
2123 (status_callback, running_callback, count_events_callback)
2124 (select_singlestep_lwp_callback, select_event_lwp_callback)
2125 (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
2126 (child_wait, stop_and_resume_callback, linux_nat_wait)
2127 (kill_callback, kill_wait_callback, linux_nat_kill)
2128 (linux_nat_create_inferior, linux_nat_mourn_inferior)
2129 (linux_nat_xfer_memory, linux_nat_thread_alive)
2130 (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
2131 (_initialize_linux_nat): New functions.
2132 * Makefile.in: Update all dependencies.
2133 * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
2134 * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2135 * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
2136 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
2137 * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2138 * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2139 * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2140 * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2141 * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2142 * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
2143 * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2144 * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2145 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
2146
5a174d79
MK
21472004-09-27 Mark Kettenis <kettenis@gnu.org>
2148
2f604c28
MK
2149 * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
2150 config/i386/obsd64.mh (NAT_FILE): Remove variable.
2151
5a174d79
MK
2152 * configure.in: Don't comment out NATDEPFILES in the generated
2153 Makefile if NAT_FILE is unset.
2154 * configure: Regenerate.
2155
b2ed1746
AC
21562004-09-27 Andrew Cagney <cagney@gnu.org>
2157
44cbf7b5
AC
2158 * infrun.c (check_for_old_step_resume_breakpoint): Delete.
2159 (insert_step_resume_breakpoint): Delete.
2160 (insert_step_resume_breakpoint_at_frame): New function.
2161 (insert_step_resume_breakpoint_at_sal): New function.
2162 (handle_inferior_event, step_into_function)
2163 (insert_step_resume_breakpoint): Simplify by using same.
2164
b2ed1746
AC
2165 * gdb_indent.sh (types): Add caddr_t to list of predefined types.
2166
3691b3be
MK
21672004-09-26 Mark Kettenis <kettenis@gnu.org>
2168
36f391e8
MK
2169 * fbsd-proc.c: Remove file.
2170 * Makefile.in (fbsd-proc.o): Remove dependency.
2171
771e236c
MK
2172 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
2173 code together.
2174
3691b3be
MK
2175 * config/i386/nm-fbsd64.h: Remove file.
2176 * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2177
6a5c78a3
MK
21782004-09-26 Mark Kettenis <kettenis@gnu.org>
2179
2180 * amd64-nat.h: Update copyright year.
2181 (amd64bsd_target): New prototype.
2182 * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
2183 (amd64bsd_target): New function.
2184 (amd64bsd_fetch_inferior_registers): Rename from
2185 fetch_inferior_registers. Make static.
2186 (amd64bsd_store_inferior_registers): Rename from
2187 store_inferior_registers. Make static.
2188 * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
2189 (_initialize_amd64fbsd_nat): Construct and add target vector.
2190 * amd64nbsd-nat.o: Include "target.h".
2191 (_initialize_amd64nbsd_nat): Construct and add target vector.
2192 * amd64obsd-nat.c: Include "target.h".
2193 (_initialize_amd64obsd_nat): Construct and add target vector.
2194 * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
2195 * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
2196 inftarg.o and fbsd-proc.o. Add inf-child.o, inf-ptrace.o and
2197 fbsd-nat.o.
2198 * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
2199 Remove infptrace.o and inftarg.o. Add inf-child.o and
2200 inf-ptrace.o.
2201 * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
2202 (amd64obsd-nat.o): Update dependencies.
2203
27acbe61
MK
22042004-09-25 Mark Kettenis <kettenis@gnu.org>
2205
509a5e7d
MK
2206 * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
2207 * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
2208 * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
2209 * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
2210 * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
2211
6e1e94ea
MK
2212 * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
2213 Inline attach call.
2214 (inf_ptrace_detach): Inline detach call.
2215
8b9cf735
MK
2216 * configure.in: Check for waddstr instead of mvwaddstr when
2217 searching for curses library. Check for wborder.
2218 * configure, config.in: Regenerate.
2219 * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
2220 available.
2221
27acbe61
MK
2222 * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
2223
b96ec7ac
AC
22242004-09-24 Robert Picco <Robert.Picco@hp.com>
2225
2226 Committed by Andrew Cagney.
2227 * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
2228 (show_remote_protocol_p_packet_cmd): New. Implement 'p' packet.
2229 configuration.
2230 (fetch_register_using_p): Implement 'p' packet. Based on code by
2231 Fernando Nasser.
2232 (remote_fetch_registers): Call fetch_register_using_p.
2233 (init_all_packet_configs, show_remote_cmd)
2234 (_initialize_remote): Add p-packet.
2235
62ece330
MK
22362004-09-24 Mark Kettenis <kettenis@gnu.org>
2237
2238 * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
2239 instead of call_ptrace. Call wait directly instead of
2240 ptrace_wait.
2241 (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
2242 (inf_ptrace_wait): Inline ptrace_wait call.
2243
00937274
PH
22442004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
2245
2246 * Makefile.in (.y.c): Revert previous change. ../ylwrap was
2247 rolled back instead.
2248
3f2c7a45
PH
22492004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
2250
2251 * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
2252 the new argument order.
2253
b6fcb393
CV
22542004-09-23 Corinna Vinschen <vinschen@redhat.com>
2255
2256 * MAINTAINERS: Remove "broken" from XStormy16 entry.
2257 * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
2258 (struct gdbarch_tdep): Remove.
2259 (struct xstormy16_frame_cache): New frame cache structure.
2260 (xstormy16_register_byte, xstormy16_register_raw_size)
2261 (xstormy16_reg_virtual_type, xstormy16_register_type)
2262 (xstormy16_push_arguments, xstormy16_push_return_address)
2263 (xstormy16_pop_frame, xstormy16_store_struct_return)
2264 (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
2265 (xstormy16_frame_saved_register, xstormy16_get_saved_register)
2266 (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
2267 (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
2268 (xstormy16_frame_chain, xstormy16_frame_chain_valid,
2269 (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
2270 (xstormy16_use_struct_convention): Drop gcc_p parameter.
2271 (xstormy16_extract_return_value, xstormy16_store_return_value):
2272 Regcachify. Drop useless struct convention handling.
2273 (xstormy16_register_type, xstormy16_return_value)
2274 (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
2275 (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
2276 (xstormy16_frame_prev_register, xstormy16_frame_this_id)
2277 (xstormy16_frame_base_address, xstormy16_frame_sniffer)
2278 (xstormy16_unwind_sp, xstormy16_unwind_pc)
2279 (xstormy16_unwind_dummy_id) : New functions.
2280 (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
2281 of xstormy16_scan_prologue.
2282 (xstormy16_frame_unwind): New frame_unwind structure.
2283 (xstormy16_frame_base): New frame_base structure.
2284 (xstormy16_gdbarch_init): Accomodate all of the above changes.
2285 Reshuffle for better readability. Also add dwarf2_frame_sniffer.
2286
1285b746
MK
22872004-09-22 Mark Kettenis <kettenis@gnu.org>
2288
2289 * language.c (language_gdbarch_post_init): Fix off-by one error.
2290
1c379e20
DJ
22912004-09-21 Daniel Jacobowitz <dan@debian.org>
2292
2293 * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
2294 (struct dwarf2_offset_and_type): New.
2295 (set_die_type, reset_die_and_siblings_types, get_die_type)
2296 (offset_and_type_hash, offset_and_type_eq): New functions.
2297 (read_structure_type, read_enumeration_type, read_array_type)
2298 (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
2299 (read_tag_reference_type, read_tag_const_type)
2300 (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
2301 (read_typedef, read_base_type, read_subrange_type): Use
2302 set_die_type.
2303
ae038cb0
DJ
23042004-09-20 Daniel Jacobowitz <dan@debian.org>
2305
2306 * Makefile.in (dwarf2read.o): Update dependencies.
2307 * dwarf2read.c: Include "command.h" and "gdbcmd.h".
2308 (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
2309 and read_in_chain.
2310 (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
2311 mark, and has_form_ref_addr.
2312 (struct dwarf2_per_cu_data): New.
2313 (dwarf2_max_cache_age): New.
2314 (dwarf2_build_psymtabs_hard): Free cached compilation units
2315 after loading. Create and manage the list of compilation units.
2316 Remove unnecessary NULL initialization. Fix indentation.
2317 (psymtab_to_symtab_1): Initialize all of CU.
2318 (dwarf2_read_abbrevs): Set has_form_ref_addr.
2319 (find_partial_die): Use dwarf2_find_containing_comp_unit
2320 and load_comp_unit.
2321 (free_stack_comp_unit): Update comments. Clear the per-cu
2322 pointer. Handle aging.
2323 (dwarf2_find_containing_comp_unit, free_cached_comp_units)
2324 (age_cached_comp_units, free_one_cached_comp_unit)
2325 (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
2326 (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
2327 (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
2328 (show_dwarf2_cmd): New.
2329 (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
2330 and "maint show dwarf2 max-cache-age".
2331 * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
2332 externs.
2333 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
2334 global.
2335
987504bb
JJ
23362004-09-20 Jeff Johnston <jjohnstn@redhat.com>
2337
2338 * dwarf2read.c (typename_concat): Change prototype to accept obstack
2339 and dwarf2_cu struct pointer as arguments. Change function to use
2340 obstack if provided and use dwarf2_cu to determine language-specific
2341 separator.
2342 (partial_die_parent_scope): Change comment to include java. Use
2343 new version of typename_concat instead of obconcat.
2344 (partial_die_full_name): Use typename_concat.
2345 (read_namespace): Ditto.
2346 (read_enumeration_type): Use typename_concat instead of obconcat.
2347 (new_symbol): Ditto.
2348 (add_partial_symbol): Enhance tests for C++ to also test for Java.
2349 (guess_structure_name): Ditto.
2350 (read_subroutine_type): Ditto.
2351 (read_structure_type): Ditto.
2352 (is_vtable_name): Add Java support.
2353 (determine_class_name): Switch to new typename_concat call.
2354 (determine_prefix): Switch to new typename_concat call.
2355 * jv-exp.y (FuncStart): New pattern.
2356 (MethodInvocation): Add support for simple function calls. Change
2357 warning message for other forms of inferior call currently not
2358 supported.
2359 * valarith.c (value_subscript): Treat an array with upper-bound
2360 of -1 as unknown size.
2361
d9c8471e
DJ
23622004-09-20 Daniel Jacobowitz <dan@debian.org>
2363
2364 * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
2365 (lookup_partial_symtab): Use symtab_to_fullname.
2366
d73f140a
JB
23672004-09-19 Jim Blandy <jimb@redhat.com>
2368
2369 * minsyms.c (lookup_minimal_symbol): Doc fix.
2370
adbef1f0
AC
23712004-09-20 Andrew Cagney <cagney@gnu.org>
2372
2373 * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
2374 CHILD_RESUME.
2375 * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
2376 * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
2377 KILL_INFERIOR.
2378 * infptrace.c: Update.
2379
d092d1a2
DJ
23802004-09-19 Daniel Jacobowitz <dan@debian.org>
2381
2382 * symtab.c (output_source_filename): Mark first argument as const.
2383 (sources_info): Use symtab_to_fullname and psymtab_to_fullname
2384 for "info sources" output.
2385
86d9e1d7
MK
23862004-09-20 Mark Kettenis <kettenis@gnu.org>
2387
2388 * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
2389 <machine/vmparam.h>.
2390 (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
2391 (register_u_addr): Remove prototype.
2392
9a6c8ef4
MK
23932004-09-19 Mark Kettenis <kettenis@gnu.org>
2394
9692934b
MK
2395 * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
2396 (i386bsd_fetch_inferior_registers): Rename from
2397 fetch_inferior_registers. Make static.
2398 (i386bsd_store_inferior_registers): Rename from
2399 store_inferior_registers. Make static.
2400 (i386bsd_target): New function.
2401 * i386bsd-nat.h: New file.
2402 * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
2403 "i386bsd-nat.h".
2404 (i386fbsd_resume): Rename from child_resume. Make static.
2405 (_initialize_i386fbsd_nat): Construct and add target vector.
2406 * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
2407 (_initialize_i386nbsd_nat): Construct and add target vector.
2408 * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
2409 Remove defines.
2410 * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
2411 and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
2412 * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
2413 inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
2414 (LOADLIBES): New variable.
2415 * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
2416 inf-ptrace.o. Remove inftarg.o.
2417 * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
2418 inf-ptrace.o. Remove inftarg.o.
2419 * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
2420 inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
2421 (LOADLIBES): New variable.
2422 * Makefile.in (i386bsd_nat_h): New variable.
2423 (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
2424 dependencies.
2425
3510d1f2
MK
2426 * sparc64nbsd-tdep.c: Include "objfiles.h".
2427 (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
2428 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
2429 svr4_lp64_fetch_link_map_offsets.
2430 * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
2431 "nbsd-tdep.h".
2432 (sparc64obsd_init_abi): Set in_solib_call_trampoline and
2433 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
2434 svr4_lp64_fetch_link_map_offsets.
2435 * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
2436 dependencies.
2437
578c1c03
MK
2438 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
2439 * fbsd-nat.h: New file.
2440 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
2441 (fbsd_nat_h): New variable.
2442 (fbsd-nat.o): New dependency.
2443
7a7b73b7
MK
2444 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
2445 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
2446
9a6c8ef4
MK
2447 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
2448 comment.
2449
72d5681a
PH
24502004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
2451
2452 * ada-exp.y (type_int): New function to add layer of abstraction
2453 around references to expression types.
2454 (type_long): Ditto.
2455 (type_long_long): Ditto.
2456 (type_float): Ditto.
2457 (type_double): Ditto.
2458 (type_long_double): Ditto.
2459 (type_char): Ditto.
2460 (type_system_address): Ditto.
2461 (simple_exp): Use type_* functions in place of builtin_*
2462 variables.
2463 (exp): Ditto.
2464 (write_var_from_name): Ditto.
2465 (write_object_renaming): Ditto.
2466 * ada-lang.c (ada_create_fundamental_type): Remove redundant
2467 declaration.
2468 (build_ada_types): Remove, replacing with...
2469 (ada_language_arch_info): New function to initialize primitive
2470 type vector in language_arch_info.
2471 (ada_array_length): Remove use of builtin_type_ada_int.
2472 (value_pos_atr): Ditto.
2473 (ada_evaluate_subexp): Ditto.
2474 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
2475 builtin_type_ada_long_long, builtin_type_ada_char,
2476 builtin_type_ada_float, builtin_type_ada_double,
2477 builtin_type_ada_long_double, builtin_type_ada_natural,
2478 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
2479 (ada_builtin_types): Remove.
2480 (ada_language_defn): Remove entries for la_builtin_type_vector and
2481 string_char_type and use ada_language_arch_info.
2482 (_initialize_ada_language): Do type-vector initialization along
2483 the lines of c-lang.c.
2484 (ada_create_fundamental_type): Break up line.
2485 (ada_dump_symtab): Remove unused function.
2486 (enum ada_primitive_types): Define.
2487 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
2488 builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
2489 builtin_type_ada_float, builtin_type_ada_double,
2490 builtin_type_ada_long_double, builtin_type_ada_natural,
2491 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
2492 * ada-lex.l: Use type_* functions in place of builtin_* variables.
2493 (processInt): Ditto.
2494 (processReal): Ditto.
2495 (name_lookup): Ditto.
2496 * ada-typeprint.c (print_range): Use builtin_type_int, not
2497 builtin_type_ada_int.
2498
4f0be353
MK
24992004-09-18 Mark Kettenis <kettenis@gnu.org>
2500
30b0e2d8
MK
2501 * i386-tdep.c (i386_register_name): Rename regno to regnum.
2502
4f0be353
MK
2503 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
2504 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
2505 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
2506 * configure.in: Improve checks for curses library by checking for
2507 mvwaddstr instead of initscr. Drop HP curses in favour of
2508 standard curses on HP-UX.
2509 * configure: Regenerated.
2510
72d5681a 25112004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
6c038f32
PH
2512
2513 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
2514 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
2515 Minor formatting changes.
2516 (empty_array): Slight rewrite for formatting.
2517 (emit_char,parse,ada_language_defn,build_ada_types,
2518 ada_is_exception_sym, _initialize_ada_language): Move
2519 definitions around.
2520 (ada_dump_symtab): Remove unused definition.
2521 (ada_maybe_exception_partial_symbol): Remove unused definition.
2522
1c8c7407
AC
25232004-09-16 Andrew Cagney <cagney@gnu.org>
2524
7681f339
AC
2525 * inf-child.c: Include "gdb_string.h".
2526 (inf_child_core_file_to_sym_file): Delete.
2527 (inf_child_target): Set to_fetch_registers and to_store_registers.
2528 * inf-ptrace.c: Include "gdb_string.h".
2529 * Makefile.in: Update all dependencies.
2530
1c8c7407
AC
2531 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
2532 problem.
2533
65596487
JB
25342004-09-14 Joel Brobecker <brobecker@gnat.com>
2535
2536 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
2537 call to heuristic_proc_desc. Remove code that became redundant
2538 as a consequence.
2539 (read_next_frame_reg): Remove special case for SP_REGNUM.
2540 (set_reg_offset): Fix small typo.
2541 (reset_saved_regs): New procedure.
2542 (mips32_heuristic_proc_desc): No longer compute a fake
2543 procedure descriptor. Compute the full frame cache instead.
2544 Some minor comment reformatting.
2545
95575b2e
AC
25462004-09-14 Andrew Cagney <cagney@gnu.org>
2547
f200c492
AC
2548 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
2549 maintainer.
2550
95575b2e
AC
2551 * thread-db.c (thread_db_new_objfile): Assume that there is a
2552 child process.
2553
69657671
JB
25542004-09-13 Jim Blandy <jimb@redhat.com>
2555
2556 * valops.c (value_assign): Move 'buffer' to the enclosing block,
2557 so that its storage isn't referenced after its lifetime ends.
2558
6c4182dd
JB
2559 * valops.c (value_assign): 'use_buffer' is initialized to zero,
2560 and never assigned to. Delete it, and the 'if (use_buffer)'
2561 clauses. Delete 'raw_buffer', since it is now unused.
2562
ee31a58d
AC
25632004-09-13 Andrew Cagney <cagney@gnu.org>
2564
2c0fc042
AC
2565 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
2566 * configure: Re-generate.
2567 * nlm/Makefile.in (TAGS): Update.
2568 * Makefile.in (TAGS): Update.
2569 * config/vax/nbsd.mt (TM_FILE): Update.
2570 * config/sparc/vxworks.mt (TM_FILE): Update.
2571 * config/sparc/sol2.mt (TM_FILE): Update.
2572 * config/sparc/sol2-64.mt (TM_FILE): Update.
2573 * config/sparc/obsd64.mt (TM_FILE): Update.
2574 * config/sparc/obsd.mt (TM_FILE): Update.
2575 * config/sparc/nbsd64.mt (TM_FILE): Update.
2576 * config/sparc/nbsd.mt (TM_FILE): Update.
2577 * config/sparc/linux64.mt (TM_FILE): Update.
2578 * config/sparc/linux.mt (TM_FILE): Update.
2579 * config/sparc/fbsd.mt (TM_FILE): Update.
2580 * config/sh/wince.mt (TM_FILE): Update.
2581 * config/sh/nbsd.mt (TM_FILE): Update.
2582 * config/sh/linux.mt (TM_FILE): Update.
2583 * config/sh/embed.mt (TM_FILE): Update.
2584 * config/s390/s390.mt (TM_FILE): Update.
2585 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
2586 * config/rs6000/rs6000.mt (TM_FILE): Update.
2587 * config/rs6000/aix4.mt (TM_FILE): Update.
2588 * config/powerpc/vxworks.mt (TM_FILE): Update.
2589 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
2590 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
2591 * config/powerpc/obsd.mt (TM_FILE): Update.
2592 * config/powerpc/nbsd.mt (TM_FILE): Update.
2593 * config/powerpc/linux.mt (TM_FILE): Update.
2594 * config/powerpc/aix.mt (TM_FILE): Update.
2595 * config/pa/obsd.mt (TM_FILE): Update.
2596 * config/pa/linux.mt (TM_FILE): Update.
2597 * config/pa/hppahpux.mt (TM_FILE): Update.
2598 * config/pa/hppa64.mt (TM_FILE): Update.
2599 * config/pa/hppa.mt (TM_FILE): Update.
2600 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
2601 * config/mips/wince.mt (TM_FILE): Update.
2602 * config/mips/vxmips.mt (TM_FILE): Update.
2603 * config/mips/nbsd.mt (TM_FILE): Update.
2604 * config/mips/linux.mt (TM_FILE): Update.
2605 * config/mips/irix6.mt (TM_FILE): Update.
2606 * config/mips/irix5.mt (TM_FILE): Update.
2607 * config/mips/embed.mt (TM_FILE): Update.
2608 * config/m68k/vxworks68.mt (TM_FILE): Update.
2609 * config/m68k/st2000.mt (TM_FILE): Update.
2610 * config/m68k/os68k.mt (TM_FILE): Update.
2611 * config/m68k/obsd.mt (TM_FILE): Update.
2612 * config/m68k/nbsd.mt (TM_FILE): Update.
2613 * config/m68k/monitor.mt (TM_FILE): Update.
2614 * config/m68k/linux.mt (TM_FILE): Update.
2615 * config/m68k/cisco.mt (TM_FILE): Update.
2616 * config/ia64/linux.mt (TM_FILE): Update.
2617 * config/ia64/aix.mt (TM_FILE): Update.
2618 * config/ia64/ia64.mt (TM_FILE): Update.
2619 * config/i386/vxworks.mt (TM_FILE): Update.
2620 * config/i386/obsd64.mt (TM_FILE): Update.
2621 * config/i386/obsd.mt (TM_FILE): Update.
2622 * config/i386/nto.mt (TM_FILE): Update.
2623 * config/i386/nbsd64.mt (TM_FILE): Update.
2624 * config/i386/nbsd.mt (TM_FILE): Update.
2625 * config/i386/linux64.mt (TM_FILE): Update.
2626 * config/i386/linux.mt (TM_FILE): Update.
2627 * config/i386/i386sol2.mt (TM_FILE): Update.
2628 * config/i386/i386lynx.mt (TM_FILE): Update.
2629 * config/i386/fbsd64.mt (TM_FILE): Update.
2630 * config/i386/fbsd.mt (TM_FILE): Update.
2631 * config/i386/cygwin.mt (TM_FILE): Update.
2632 * config/h8300/h8300.mt (TM_FILE): Update.
2633 * config/frv/frv.mt (TM_FILE): Update.
2634 * config/cris/cris.mt (TM_FILE): Update.
2635 * config/arm/wince.mt (TM_FILE): Update.
2636 * config/arm/nbsd.mt (TM_FILE): Update.
2637 * config/arm/linux.mt (TM_FILE): Update.
2638 * config/arm/embed.mt (TM_FILE): Update.
2639 * config/alpha/nbsd.mt (TM_FILE): Update.
2640 * config/alpha/fbsd.mt (TM_FILE): Update.
2641 * config/alpha/alpha.mt (TM_FILE): Update.
2642 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
2643 * config/alpha/alpha-linux.mt (TM_FILE): Update.
2644
362646f5
AC
2645 Eliminate event_loop_p, always has the value 1.
2646 * defs.h (event_loop_p): Delete macro.
2647 * breakpoint.c (until_break_command): Simplify.
2648 * utils.c (prompt_for_continue): Simplify.
2649 * tracepoint.c (read_actions): Simplify.
2650 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
2651 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
2652 (set_prompt, init_main): Simplify.
2653 (init_signals, disconnect): Delete, unused.
2654 * remote.c (remote_async_resume)
2655 (extended_remote_async_create_inferior): Simplify.
2656 * mi/mi-interp.c (mi_input): Delete, unused.
2657 (mi_interpreter_resume, mi_command_loop): Simplify.
2658 * interps.c (current_interp_command_loop): Simplify.
2659 * infrun.c (proceed): Simplify.
2660 * infcmd.c (run_command, continue_command, step_1, jump_command)
2661 (until_command, advance_command, finish_command)
2662 (interrupt_target_command): Simplify.
2663 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
2664
ee31a58d
AC
2665 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2666 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2667 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2668 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2669 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2670 * mips-tdep.c (mips_dump_tdep): Do not print same.
2671
b7ffc4a8
AC
26722004-09-12 Andrew Cagney <cagney@gnu.org>
2673
2bfb72ee
AC
2674 * valprint.c (print_longest): Use fputs_filtered. Make "val"
2675 const.
2676 * Makefile.in (valprint.o): Delete explict rule.
2677
4f17c3c1
AC
2678 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
2679 reported by Dave Anderson.
2680
f810308b
AC
2681 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
2682
b7ffc4a8
AC
2683 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
2684
28b41c52
AC
26852004-09-12 Salvador E. Tropea <set@users.sf.net>
2686 Andrew Cagney <cagney@gnu.org>
2687
2688 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
2689 (mi_cmd_data_list_register_values)
2690 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
2691 the register number computation.
2692
5bf970f9
AC
26932004-09-12 Andrew Cagney <cagney@gnu.org>
2694
2695 * ppcnbsd-nat.c: Include "inf-ptrace.h".
2696 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
2697 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
2698 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
2699 target.
2700 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
2701 inf-ptrace.o and inf-child.o.
2702 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
2703 * Makefile.in: Update dependencies.
2704
0759e0bf
AC
27052004-09-11 Andrew Cagney <cagney@gnu.org>
2706
2707 * language.c (hex_string, hex_string_custom): Move from here ...
2708 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
2709 (CELLSIZE): Increase to 50.
2710 * language.h (hex_string, hex_string_custom): Move from here ...
2711 * defs.h: ... to here.
2712 * Makefile.in: Update all dependencies.
2713
bb599908
PH
27142004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
2715
2716 * language.c (local_hex_format_custom): Remove.
2717 (local_hex_string): Rename to hex_string, use C format, and move to
2718 utils.c
2719 (local_hex_string_custom): Rename to hex_string_custom and change
2720 interface. Now uses C format. Move to utils.c
2721 (local_octal_format_custom): Remove.
2722 (local_decimal_format_custom): Remove.
2723 (unknown_language_defn): Remove language-specific number
2724 formatting entries.
2725 (auto_language_defn): Ditto.
2726 (local_language_defn): Ditto.
2727 * language.h (struct language_format_info): Delete declaration.
2728 (struct language_defn): Remove language_format_info fields
2729 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
2730 (local_binary_format): Remove macro.
2731 (local_binary_format_prefix): Remove macro.
2732 (local_binary_format_specifier): Remove macro.
2733 (local_binary_format_suffix): Remove macro.
2734 (local_octal_format): Remove macro.
2735 (local_octal_format_prefix): Remove macro.
2736 (local_octal_format_specifier): Remove macro.
2737 (local_octal_format_suffix): Remove macro.
2738 (local_decimal_format): Remove macro.
2739 (local_decimal_format_prefix): Remove macro.
2740 (local_decimal_format_specifier): Remove macro.
2741 (local_decimal_format_suffix): Remove macro.
2742 (local_hex_format): Remove macro.
2743 (local_hex_format_prefix): Remove macro.
2744 (local_hex_format_specifier): Remove macro.
2745 (local_hex_format_suffix): Remove macro.
2746 (local_decimal_format_custom): Remove.
2747 (local_octal_format_custom): Remove.
2748 (local_hex_format_custom): Remove.
2749 (local_hex_string): Rename to hex_string and move to defs.h.
2750 (local_hex_string_custom): Rename to hex_string_custom, change
2751 interface, and move to defs.h.
2752 * utils.c: (int_string): New function.
2753 (hex_string): New function (from language.c).
2754 (hex_string_custom): New function (from language.c).
2755 (octal2str): New function.
2756 (decimal2str): Add width parameter.
2757 (paddr_u): Use new decimal2str interface.
2758 (paddr_d): Ditto.
2759 * defs.h (hex_string): Declare.
2760 (hex_string_custom): Declare.
2761 (int_string): Declare.
2762 * printcmd.c (print_scalar_formatted): Remove localized binary
2763 formatting.
2764 * valprint.c (print_longest): Use int_string.
2765 (print_floating): Use C hex format.
2766 (print_hex_chars): Ditto.
2767 (print_binary_chars): Remove language-specific formatting.
2768 (print_octal_chars): Use C octal format.
2769 (print_decimal_chars): Delocalize format.
2770 (print_decimal): Remove.
2771 * ada-lang.c (ada_language_defn): Remove language-specific number
2772 formatting entries.
2773 * p-lang.c (pascal_language_defn): Ditto.
2774 * c-lang.c (c_language_defn): Ditto.
2775 (cplus_language_defn): Ditto.
2776 (asm_language_defn): Ditto.
2777 (minimal_language_defn): Ditto.
2778 * f-lang.c (f_language_defn): Ditto.
2779 * jv-lang.c (java_language_defn): Ditto.
2780 * m2-lang.c (m2_language_defn): Ditto.
2781 * scm-lang.c (scm_language_defn): Ditto.
2782 * objc-lang.c (objc_language_defn): Ditto.
2783 * memattr.c (mem_info_command): Use renamed hex_string_custom with
2784 new interface.
2785 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
2786 * ui-out.c (ui_out_field_core_addr): Ditto.
2787 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
2788 * exec.c (print_section_info): Ditto.
2789 * i387-tdep.c (print_i387_status_word): Ditto.
2790 (print_i387_control_word): Ditto.
2791 (i387_print_float_info): Ditto.
2792 * maint.c (maint_print_section_info): Ditto.
2793 * solib.c (info_sharedlibrary_command): Ditto.
2794 * somsolib.c (som_sharedlibrary_info_command): Ditto.
2795 * symtab.c (print_msymbol_info): Ditto.
2796 * tracepoint.c (tracepoints_info): Ditto.
2797 * solib-frv.c (lm_base): Ditto.
2798 (frv_current_sos): Ditto.
2799 (enable_break2): Ditto.
2800 (enable_break): Ditto.
2801 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
2802 (process_one_symbol): Ditto.
2803 * infcmd.c (program_info): Ditto.
2804 * mdebugread.c (parse_partial_symbols): Ditto.
2805 * symfile.c (add_symbol_file_command): Ditto.
2806 * cli/cli-cmds.c (edit_command): Ditto.
2807 (list_command): Ditto.
2808 * infcall.c (call_function_by_hand): Ditto.
2809 * remote-vx.c (vx_run_files_info): Ditto.
2810 (vx_wait): Ditto.
2811 (vx_attach): Ditto.
2812 (vx_detach): Ditto.
2813 (vx_kill): Ditto.
2814 * aix-thread.c (pdc_symbol_addrs): Ditto.
2815 (pdc_read_regs): Ditto.
2816 (pdc_write_regs): Ditto.
2817 (pdc_read_data): Ditto.
2818 (pdc_write_data): Ditto.
2819 * d10v-tdep.c (display_trace): Ditto.
2820 * rs6000-nat.c (find_toc_address): Ditto.
2821 * aix-thread.c: Don't include language.h.
2822 * buildsym.c: Ditto.
2823 * dbxread.c: Ditto.
2824 * mdebugread.c: Ditto.
2825 * rs6000-nat.c: Ditto.
2826 * buildsym.c (make_blockvector): Use renamed hex_string.
2827
33f2d567
JM
28282004-09-10 Jason Molenda (jmolenda@apple.com)
2829
2830 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
2831 chars after 'if' or 'while' commands in user-defined commands.
2832
7b90c3f9
JB
28332004-09-08 Jim Blandy <jimb@redhat.com>
2834
2835 Fix bug reported and analyzed by Olivier Crete:
2836 * symfile.c (copy_section_addr_info): New function.
2837 (symbol_file_add_with_addrs_or_offsets): Use it to save the
2838 original set of address arguments, instead of handwritten code
2839 that uses one length to allocate and a different length to
2840 initialize. Use make_cleanup_free_section_addr_info.
2841 * symfile.h (copy_section_addr_info): New declaration.
2842 * utils.c: #include "symfile.h".
2843 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
2844 New functions.
2845 * defs.h (make_cleanup_free_section_addr_info): New declaration.
2846 * Makefile.in (utils.o): Update dependencies.
2847
b26a6851
AC
28482004-09-08 Andrew Cagney <cagney@gnu.org>
2849
2850 * thread-db.c (keep_thread_db): Delete.
2851 (thread_db_new_objfile, thread_db_create_inferior)
2852 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
2853
be24b061
MK
28542004-09-08 Mark Kettenis <kettenis@gnu.org>
2855
f6792ef4
MK
2856 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
2857 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
2858 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
2859 (i386_frameless_signal_p): Remove prototype.
2860 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
2861 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
2862 I386_SSE_NUM_REGS.
2863 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
2864 instead of FP0_REGNUM.
2865 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
2866 of FP0_REGNUM and FPC_REGNUM.
2867
eeefdaa7
MK
2868 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
2869 (sunos_solib_create_inferior_hook): Don't call
2870 sunos_relocate_main_executable.
2871
be24b061
MK
2872 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
2873 solib_svr4_fetch_link_map_offsets to
2874 svr4_ilp32_fetch_link_map_offsets.
2875 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
2876 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
2877 svr4_ilp32_fetch_link_map_offsets.
2878 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
2879
7c679d16
JB
28802004-09-07 Jim Blandy <jimb@redhat.com>
2881
2882 * frame.h (frame_register): Doc fix.
2883
1f04aa62
AC
28842004-09-07 Andrew Cagney <cagney@gnu.org>
2885
2886 * vx-share/wait.h: Delete #ifdef USG.
2887 * utils.c (request_quit): Ditto.
2888 * tui/tui.c (tui_reset): Ditto.
2889 * remote.c: Ditto.
2890 * remote-sds.c: Ditto.
2891 * remote-rdi.c: Ditto.
2892 * mdebugread.c: Ditto.
2893 * m68klinux-nat.c: Ditto.
2894 * infttrace.c: Ditto.
2895 * infptrace.c: Ditto.
2896 * i386v-nat.c: Ditto.
2897 * exec.c: Ditto.
2898 * dbxread.c: Ditto.
2899 * core-aout.c: Ditto.
2900
90edbfbc
JB
29012004-09-05 Joel Brobecker <brobecker@gnat.com>
2902
2903 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
2904 heuristic_proc_desc.
2905 (mips_insn32_frame_cache): Likewise.
2906
01f4bf2b
JB
29072004-09-04 Joel Brobecker <brobecker@gnat.com>
2908
2909 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
2910 left behind by error.
2911
8511a048
JB
29122004-09-04 Joel Brobecker <brobecker@gnat.com>
2913
2914 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
2915 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
2916
649dfe9f
JB
29172004-09-04 Joel Brobecker <brobecker@gnat.com>
2918
2919 * config/rs6000/xm-aix4.h: Remove this file.
2920 * config/rs6000/aix4.mh (XM_FILE): Delete.
2921
6e50f889
JB
29222004-09-04 Joel Brobecker <brobecker@gnat.com>
2923
2924 * config/rs6000/xm-rs6000.h: Remove this file.
2925 * config/rs6000/rs6000.mh (XM_FILE): Remove.
2926
b8c4aece
AC
29272004-09-03 Andrew Cagney <cagney@gnu.org>
2928
fb603883
AC
2929 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
2930 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
2931 only use.
2932
c9343fd1
AC
2933 * mips-tdep.c (temp_saved_regs): Delete.
2934 (set_reg_offset): Replace saved_regs parameter with this_cache.
2935 (heuristic_proc_desc, mips16_heuristic_proc_desc)
2936 (mips32_heuristic_proc_desc): Add this_cache parameter.
2937 (mips_insn32_frame_cache, mips_insn16_frame_cache)
2938 (after_prologue): Pass a NULL this_cache.
2939
9733cfe1
AC
2940 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
2941 non-kernel trap prologues.
2942
0d5febcc
AC
2943 * mips-tdep.c (find_proc_desc): Delete function.
2944 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
2945 simplify.
2946 (mips_insn16_frame_cache): Replace find_proc_desc with code from
2947 mips_insn32_frame_cache.
2948
9733cfe1 2949 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
283be873
AC
2950 Simplify as NEXT_FRAME is NULL.
2951 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
2952
177f84a3
AC
2953 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
2954 local variable.
2955 (mips_skip_prologue): Update.
2956
465f7520
AC
2957 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
2958 "cur_frame" parameter.
177f84a3
AC
2959 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
2960 (mips_insn32_frame_cache, find_proc_desc): Update
465f7520 2961
e38b8658
AC
2962 * config/vax/nm-obsd.h: Delete file.
2963 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2964 * config/vax/nm-nbsd.h: Delete file.
2965 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
2966 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2967 * config/sh/nm-nbsd.h: Delete file.
2968 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
2969 * config/rs6000/nm-rs6000ly.h: Delete file.
2970 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
2971 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
2972 * config/powerpc/nm-obsd.h: Delete file.
2973 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2974 * config/powerpc/nm-nbsd.h: Delete file.
2975 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
2976 * config/pa/nm-obsd.h: Delete file.
2977 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2978 * config/mips/nm-nbsd.h: Delete file.
2979 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
2980 * config/m88k/nm-obsd.h: Delete file.
2981 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2982 * config/m68k/nm-nbsd.h: Delete file.
2983 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
2984 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2985 * config/i386/nm-nbsd.h: Delete file.
2986 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
2987 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2988 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2989 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2990 * config/i386/nm-i386lynx.h: Delete file.
2991 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
2992 * config/arm/nm-nbsd.h: Delete file.
2993 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
2994 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2995
be1ed680
AC
2996 * config/i386/tm-fbsd.h: Delete file.
2997 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
2998 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
2999
4b392b26
AC
3000 * config/rs6000/tm-rs6000-aix4.h: Delete file.
3001 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
3002 * config/rs6000/aix4.mt (TM_FILE): Set to
3003 config/rs6000/tm-rs6000.h.
3004 * config/powerpc/tm-ppc-aix.h: Delete file.
3005 * config/powerpc/aix.mt (TM_FILE): Set to
3006 config/rs6000/tm-rs6000.h.
3007 * config/m68k/tm-linux.h: Delete file.
3008 * config/m68k/linux.mt (TM_FILE): Set to solib.h
3009 * config/i386/tm-linux64.h: Delete file.
3010 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
3011 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
3012
f3219c75
AC
3013 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
3014 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
3015 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
3016 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
3017 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
3018 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
3019 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
3020 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
3021 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
3022
b8c4aece
AC
3023 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
3024 gdb_host_cpu.
3025
8ac2e020
JB
30262004-09-02 Joel Brobecker <brobecker@gnat.com>
3027
3028 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
3029 Minor reformatting. Some code factoring.
3030
c185a355
AC
30312004-09-02 Andrew Cagney <cagney@gnu.org>
3032
63f22f0d
AC
3033 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
3034 * config/vax/tm-nbsd.h: Delete file.
3035 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
3036 * config/sparc/tm-vxworks.h: Delete file.
3037 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
3038 * config/sparc/tm-nbsd.h: Delete file.
3039 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
3040 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
3041 * config/sparc/tm-linux.h: Delete file.
3042 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
3043 * config/s390/tm-linux.h: Delete file.
3044 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
3045 * config/pa/tm-bsd.h: Delete file.
3046 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
3047 * config/m68k/tm-obsd.h: Delete file.
3048 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
3049 * config/m68k/tm-nbsd.h: Delete file.
3050 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
3051 * config/i386/tm-vxworks.h: Delete file.
3052 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
3053 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
3054 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
3055 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
3056 * config/i386/tm-nbsd.h: Delete file.
3057 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
3058 * config/i386/tm-i386lynx.h: Delete file.
3059 * config/cris/cris.mt (TM_FILE): Set to solib.h.
3060 * config/cris/tm-cris.h: Delete file.
3061
0f475e27
AC
3062 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
3063 * configure: Re-generate.
3064 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
3065 * config/arm/tm-nbsd.h: Delete file.
3066
458ed000
AC
3067 * config/powerpc/tm-ppcle-sim.h: Delete.
3068 * config/powerpc/tm-ppcle-eabi.h: Delete.
3069 * config/powerpc/tm-nbsd.h: Delete.
3070 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
3071 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
3072 tm-ppcle-eabi.h.
3073
f14375f3
AC
3074 * config/i386/nto.mh (NAT_FILE): Delete.
3075 * config/i386/nm-nto.h: Delete.
3076
c34d127c
AC
3077 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
3078 * config/m68k/tm-os68k.h: Ditto.
3079 * config/m68k/tm-monitor.h: Ditto.
3080 * config/m68k/tm-cisco.h: Ditto.
3081 * config/m68k/st2000.mt (TM_FILE): Delete.
3082 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
3083 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
3084 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
3085 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
3086
f7f0fe03
AC
3087 * config/m68k/tm-st2000.h: Delete.
3088 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
3089 * config/sparc/fbsd.mt (TM_FILE): Delete.
3090 * config/sparc/tm-fbsd.h: Delete.
3091
a2558533
AC
3092 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
3093 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
3094 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
3095
b78960be
AC
3096 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
3097 GDB_TM_FILE and GDB_XM_FILE.
3098 * gdbarch.c: Re-generate.
3099 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
3100 quotes in macro definition.
3101 * configure.in: Re-generate.
3102
4d60522e
AC
3103 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
3104 validating architecture methods.
3105 * gdbarch.c: Re-generate.
3106
5010d38b
AC
3107 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
3108 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
3109 GDB_MULTI_ARCH_PARTIAL.
3110 * gdbarch.h: Re-generate.
3111
c185a355
AC
3112 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
3113 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
3114 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
3115 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
3116 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
3117 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
3118 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
3119 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
3120 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
3121 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
3122 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
3123 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
3124
14aaa6ab
AC
31252004-09-01 Andrew Cagney <cagney@gnu.org>
3126
3127 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
3128 and main_func_highpc.
3129 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
3130 * objfiles.c (init_entry_point_info, objfile_relocate): Update
3131 * nlmread.c (nlm_symfile_read): Update.
3132
a343eb3c
JB
31332004-09-01 Joel Brobecker <brobecker@gnat.com>
3134
3135 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
3136 (mips_insn32_frame_cache): Inline call to find_proc_desc.
3137 (find_proc_desc): Remove dead code.
3138
4fbbbd07
JB
31392004-09-01 Joel Brobecker <brobecker@gnat.com>
3140
3141 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
3142
84acb35a
JJ
31432004-09-01 Jeff Johnston <jjohnstn@redhat.com>
3144
3145 * observer.sh: Add struct so_list declaration.
3146 * Makefile.in: Add dependencies on observer.h for solib.c and
3147 breakpoint.c.
3148 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
3149 function.
3150 (_initialize_breakpoint): Register
3151 disable_breakpoints_in_unloaded_shlib as an observer of the
3152 "solib unloaded" observation event.
3153 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
3154 call decode_line_1 so unfound breakpoint errors are silent.
3155 * solib.c (update_solib_list): When a solib is discovered to have
3156 been unloaded by the program, notify all observers of the
3157 "solib unloaded" observation event.
3158
c8cd9f6c
AC
31592004-09-01 Andrew Cagney <cagney@gnu.org>
3160
3161 * frame.c: Include "objfiles.h".
3162 (inside_main_func): New function.
3163 (get_prev_frame): Use new inside_main_func.
3164 * Makefile.in (frame.o): Update dependencies.
3165 * defs.h (inside_main_func): Delete declaration.
3166 * blockframe.c (inside_main_func): Delete function.
3167
1168df01
JB
31682004-08-31 Jim Blandy <jimb@redhat.com>
3169
3170 * dwarf2read.c (is_vtable_name): New function, based on logic from
3171 read_structure_type, but passing the correct length to strncmp,
3172 and using 'sizeof' instead of 'strlen'.
3173 (read_structure_type): Call it.
3174
f14f9744
JB
31752004-08-31 Joel Brobecker <brobecker@gnat.com>
3176
3177 * config/powerpc/aix.mh: Add comment.
3178
386d4518
PG
31792004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
3180
3181 * MAINTAINERS: Add self to Write-After-Approval.
3182
7d97d5e2
MI
31832004-08-30 Manoj Iyer <manjo@austin.ibm.com>
3184
3185 * MAINTAINERS: Add self to Write-After-Approval.
3186
68f53502
AC
31872004-08-30 Andrew Cagney <cagney@gnu.org>
3188
3189 Fix PR breakpoints/1757.
3190 * infrun.c (struct execution_control_state): Replace
3191 remove_breakpoints_on_following_step with
3192 step_after_step_resume_breakpoint.
3193 (init_execution_control_state): Update.
3194 (handle_inferior_event): For signals, when stepping off a
3195 breakpoint, set step_after_step_resume_breakpoint. When
3196 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
3197 (keep_going): Delete code handling
3198 remove_breakpoints_on_following_step.
3199
7ca2d3a3
DL
32002004-08-29 David Lecomber <david@streamline-computing.com>
3201
3202 Fix PR gdb/648
3203 * language.h (enum array_ordering): New enum.
3204 * language.h (struct language_defn): New la_array_ordering
3205 attribute.
3206 * language.c (unknown_language_defn, auto_language_defn)
3207 (local_language_defn): Ditto.
3208 * ada-lang.c (ada_language_defn): Ditto.
3209 * c-lang.c (c_language_defn, cplus_language_defn)
3210 (asm_language_defn, minimal_language_defn): Ditto.
3211 * f-lang.c (f_language_defn): Ditto.
3212 * jv-lang.c (java_language_defn): Ditto.
3213 * m2-lang.c (f_language_defn): Ditto.
3214 * objc-lang.c (objc_language_defn): Ditto.
3215 * p-lang.c (pascal_language_defn): Ditto.
3216 * scm-lang.c (scm_language_defn): Ditto.
3217 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
3218 oriented large to small in type structure.
3219 * dwarf2read.c (read_array_order): New function.
3220 (read_array_type): Use read_array_order to check row/column
3221 major ordering.
3222
e354df01
NW
32232004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
3224
3225 * target.c (target_resize_to_sections): Check
3226 current_target.to_sections for an old value when updating.
3227
9185ddce
JB
32282004-08-27 Joel Brobecker <brobecker@gnat.com>
3229
3230 * procfs.c (dbx_link_bpt_addr): New static global variable.
3231 (dbx_link_shadow_contents): New static global variable.
3232 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
3233 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
3234 if we just hit it.
3235 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
3236 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
3237 from run to run.
3238 (procfs_create_inferior): Remove syssgi syscall-exit notifications
3239 after the inferior has been forked.
3240 (remove_dbx_link_breakpoint): New function.
3241 (dbx_link_addr): New function.
3242 (insert_dbx_link_bpt_in_file): New function.
3243 (insert_dbx_link_bpt_in_region): New function.
3244 (insert_dbx_link_breakpoint): New function.
3245 (proc_trace_syscalls_1): New function, extracted from
3246 proc_trace_syscalls.
3247 (proc_trace_syscalls): Replace extract code by call to
3248 proc_trace_syscalls_1.
3249 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
3250 is no longer valid.
3251
e6742ace
JB
32522004-08-25 Jim Blandy <jimb@redhat.com>
3253
3254 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
3255
8fb3e588
AC
32562004-08-25 Andrew Cagney <cagney@gnu.org>
3257
629a41ee
AC
3258 * infrun.c (struct execution_control_state): Delete field
3259 "stepping_through_sigtramp".
3260 (init_execution_control_state): Do not set same.
3261 (context_switch): Do not pass same to save_infrun_state and
3262 load_infrun_state.
3263 * gdbthread.h (struct thread_info): Delete field
3264 stepping_through_sigtramp.
3265 (save_infrun_state, load_infrun_state): Delete parameter
3266 stepping_through_sigtramp.
3267 * thread.c (load_infrun_state, save_infrun_state): Update.
3268
8fb3e588
AC
3269 * infrun.c: Re-indent. Move expression operators to the beginning
3270 of the line. Remove long disabled #if 0 code.
3271
49c54768
AC
32722004-08-24 Andrew Cagney <cagney@gnu.org>
3273
3274 * doublest.h (floatformat_ieee_quad): Rename
3275 floatformat_ia64_quad.
3276 * doublest.c (floatformat_ieee_quad): Rename
3277 floatformat_ia64_quad.
3278 (_initialize_doublest): Update.
3279
5ca2e327
JB
32802004-08-24 Jim Blandy <jimb@redhat.com>
3281
87808bd6
JB
3282 * dwarf2expr.h (struct dwarf_expr_context): New members
3283 'num_pieces' and 'pieces', for returning the result of an
3284 expression that uses DW_OP_piece.
3285 (struct dwarf_expr_piece): New struct type.
3286 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
3287 pieces.
3288 (free_dwarf_expr_context): Free pieces, if any.
3289 (add_piece): New function.
3290 (execute_stack_op): Implement DW_OP_piece.
3291 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
3292 expression is a list of pieces, print an error message.
3293 (dwarf2_loc_desc_needs_frame): If the expression yields
3294 pieces, and any piece is in a register, then we need a frame.
3295
5ca2e327
JB
3296 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
3297 the stack until we've decided what sort of result the evaluation
3298 has produced. Use separate variables, with more specific names.
3299
2afeb6b8
RE
33002004-08-23 Richard Earnshaw <rearnsha@arm.com>
3301
3302 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
3303 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
3304 (arm_netbsd_init_abi_common): Register them.
3305
5885ab49
MK
33062004-08-22 Mark Kettenis <kettenis@gnu.org>
3307
fda820a6
MK
3308 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
3309
1c5bf419
MK
3310 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
3311 safe_frame_unwind_memory instead of target_read_memory.
3312
8cbba7c8
MK
3313 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
3314 Reorder includes.
3315 (fetch_register, store_register): Remove prototypes.
3316 (child_resume): Reorganize code and comments such that it is
3317 grouped a bit more logically.
3318 (attach): Explicitly compare errno against 0.
3319 (detach): Likewise. Use perror_with_name instead of
3320 print_sys_errmsg.
3321 * Makefile.in (infptrace.o): Update dependencies.
3322
c5fa4245
MK
3323 * ia64-linux-nat.c: Update copyright year.
3324 (fetch_debug_register, store_debug_register)
3325 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
3326 PTRACE_TYPE_ARG3.
3327 * config/ia64/nm-linux.h: Update copyright year.
3328 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
3329
387c058c
MK
3330 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
3331 from CORE_ADDR to struct frame_info *. Use
3332 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
3333 (amd64_linux_sigtramp_p): Adjust for changed signature of
3334 and64_linux_sigtramp_start
3335
277215a6
MK
3336 * gdb_ptrace.h: GNU/Linux.
3337
25f6178e
MK
3338 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
3339 Remove defines.
3340
652fc137
MK
3341 * infptrace.c: Include "gdb_assert.h".
3342 (PTRACE_XFER_TYPE): Remove define.
3343 (offsetof): Only define if U_REGS_OFFSET isn't defined.
3344 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
3345 Tweak comment.
3346 (fetch_inferior_registers, store_inferior_registers): Remove
3347 redundant culry braces. Tweak comment. s/regno/regnum.
3348 * Makefile.in (infptrace.o): Update dependencies.
3349
5885ab49
MK
3350 * configure.in: Change test for return type of ptrace to default
3351 to `long' instead of `int'.
3352 * configure: Regenerate.
3353
11003ae3
MK
33542004-08-21 Mark Kettenis <kettenis@gnu.org>
3355
6b95110c
MK
3356 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
3357
bcb3dc3d
MK
3358 * configure.in: Check for ttrace function.
3359 * configure, config.in: Regenerate.
3360
11003ae3
MK
3361 * gdb_ptrace.h: New file.
3362 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
3363 <sys/ptrace.h>.
3364 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
3365 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
3366 (attach): Don't define PT_ATTACH.
3367 (detach): Don't define PT_DETACH.
3368 * Makefile.in (gdb_ptrace_h): New variable.
3369 (infptrace.o): Update dependencies.
3370
f8707cac
MK
33712004-08-16 Mark Kettenis <kettenis@gnu.org>
3372
3373 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
3374 instead of `int' if not already defined.
3375 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
3376 PTRACE_TYPE_ARG3.
3377 * infptrace.c (call_ptrace): Revert change that replaced
3378 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3379
655c5466
MK
33802004-08-15 Mark Kettenis <kettenis@gnu.org>
3381
156e5ba7
MK
3382 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
3383 Remove defines.
3384
de9a9e51
MK
3385 * linux-nat.c (kill_inferior): Add missing third and fourth
3386 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
3387
88800403
MK
3388 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
3389 PTRACE_TYPE_RET.
3390
849a1d7c
MK
3391 * proc-why.c (proc_prettyfprint_why): Fix format string.
3392
61ad16d1
MK
3393 * solib-osf.c (osf_current_sos): Remove unsused label.
3394
a6ed5501
MK
3395 * configure.in: Add <ncurses/ncurses.h> to the list of possible
3396 curses headers.
3397 * configure, config.in: Regenerate.
3398 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
3399 <ncurses/ncurses.h>.
3400
016ddeca
MK
3401 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
3402 * config/nm-nbsd.h: Update copyright year.
3403 (PTRACE_ARG3_TYPE): Remove define.
3404
49ec097f
MK
3405 * sparc-nat.c (fetch_inferior_registers)
3406 (store_inferior_registers, sparc_xfer_wcookie):
3407 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3408
9f8e0089
MK
3409 * alphabsd-nat.c (fetch_inferior_registers):
3410 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3411 PTRACE_TYPE_ARG3.
3412 * amd64bsd-nat.c (fetch_inferior_registers)
3413 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3414 PTRACE_TYPE_ARG3.
3415 * armnbsd-nat.c: Update copyright year.
3416 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
3417 (store_register, store_regs, store_fp_register, store_fp_regs):
3418 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3419 * hppabsd-nat.c (fetch_inferior_registers)
3420 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3421 PTRACE_TYPE_ARG3.
3422 * i386bsd-nat.c (fetch_inferior_registers)
3423 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
3424 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3425 * m68kbsd-nat.c (fetch_inferior_registers)
3426 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3427 PTRACE_TYPE_ARG3.
3428 * m88kbsd-nat.c (fetch_inferior_registers)
3429 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3430 PTRACE_TYPE_ARG3.
3431 * mipsnbsd-nat.c: Update copyright year.
3432 (fetch_inferior_registers, store_inferior_registers):
3433 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3434 * ns32knbsd-nat.c: Update copyright year.
3435 (fetch_inferior_registers, store_inferior_registers):
3436 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3437 * ppcnbsd-nat.c (fetch_inferior_registers):
3438 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3439 PTRACE_TYPE_ARG3.
3440 * ppcobsd-nat.c (fetch_inferior_registers):
3441 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3442 PTRACE_TYPE_ARG3.
3443 * shnbsd-nat.c: Update copyright year.
3444 (fetch_inferior_registers, store_inferior_registers):
3445 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3446 * vaxbsd-nat.c (fetch_inferior_registers)
3447 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3448 PTRACE_TYPE_ARG3.
3449
655c5466
MK
3450 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
3451 PTRACE_TYPE_ARG3.
3452 * infptrace.c (call_ptrace, child_resume, attach, detach)
3453 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
3454 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3455 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
3456 PTRACE_TYPE_ARG3.
3457
c40d0d10
MK
34582004-08-14 Mark Kettenis <kettenis@gnu.org>
3459
5cb0ff31
MK
3460 * defs.h: Remove out-of-date comment.
3461 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
3462 [!GETENV_PROVIDED] (getenv): Remove prototype.
3463
5f0f34cb
MK
3464 * standalone.c: Remove file.
3465 * Makefile.in (standalone.o): Remove dependency.
3466
7532965f
MK
3467 * i386-linux-nat.c (dummy_sse_values): Remove function and
3468 prototype.
3469 (i386_linux_dr_get): Fix typo in comment.
3470 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
3471
1bdc6c53
MK
3472 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
3473
c40d0d10
MK
3474 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
3475 from declaration.
3476 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
3477 from definition.
3478
64218d3e
MK
34792004-08-13 Mark Kettenis <kettenis@gnu.org>
3480
3481 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
3482 parenthesis in definition.
3483 * configure: Regenerated.
3484
926c94e7
MC
34852004-08-12 Michael Chastain <mec.gnu@mindspring.com>
3486
3487 * PROBLEMS: Mention build/1411.
3488
69489883
NN
34892004-08-09 Robert Millan <robertmh@gnu.org>
3490
3491 Committed by Nathanael Nerode.
3492 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
3493 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
3494
ebb7c577
AC
34952004-08-12 Andrew Cagney <cagney@gnu.org>
3496
3497 * NEWS: Mention fixes in GDB 6.2.1.
3498 * PROBLEMS: Remove mention of mips-irix.
3499
232d697c
JB
35002004-08-11 Joel Brobecker <brobecker@gnat.com>
3501
3502 * config/powerpc/xm-aix.h: Delete.
3503 * config/powerpc/aix.mh (MH_FILE): Remove.
3504 * config/powerpc/aix432.mh (MH_FILE): Remove.
3505
72f4e82b
JB
35062004-08-11 Joel Brobecker <brobecker@gnat.com>
3507
3508 * config/powerpc/aix.mh: Remove obsolete comment.
3509 * config/powerpc/aix432.mh: Likewise.
3510
0687ccb2
JB
35112004-08-11 Joel Brobecker <brobecker@gnat.com>
3512
3513 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
3514
dbf3ada7
JB
35152004-08-11 Joel Brobecker <brobecker@gnat.com>
3516
e08e1886
JB
3517 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
3518 this file is now empty.
3519 * config/xm-aix4.h: Remove, this file is no longer included
3520 anywhere.
3521
35222004-08-11 Joel Brobecker <brobecker@gnat.com>
3523
3524 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
3525 that file is now empty.
dbf3ada7
JB
3526 (termdef): Remove prototype, function no longer used.
3527
4c525ef6
JB
35282004-08-11 Joel Brobecker <brobecker@gnat.com>
3529
3530 * doc/gdbint.texinfo (Host Definition): Remove documentation
3531 for USE_O_NOCTTY, no longer used.
3532 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
3533 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
3534
82e0b968
JB
35352004-08-11 Joel Brobecker <brobecker@gnat.com>
3536
3537 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
3538 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
3539 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
3540
f2acbe1c
MK
35412004-08-11 Mark Kettenis <kettenis@gnu.org>
3542
daa98270
MK
3543 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
3544 instead of FIVE_ARG_PTRACE.
3545
f2acbe1c
MK
3546 * inflow.c (O_NOCTTY): Define to zero if not already defined.
3547 (new_tty): Use O_NOCTTY unconditionally.
3548
cc377e6b
MK
35492004-08-10 Mark Kettenis <kettenis@gnu.org>
3550
3551 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
3552 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
3553 fflush on stdout.
3554
3bcc18fa
JB
35552004-08-10 Joel Brobecker <brobecker@gnat.com>
3556
3557 * xcoff_symfile_finish: Replace last call to xmfree by call
3558 to xfree.
3559
7936743b
AC
35602004-08-10 Andrew Cagney <cagney@gnu.org>
3561
cc503c8a
AC
3562 * main.c (captured_main): Delete call to init_malloc.
3563 * defs.h (init_malloc): Delete declaration.
3564 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
3565 (init_malloc): Delete functions.
3566
2dc74dc1
AC
3567 * defs.h (xmfree): Delete.
3568 * utils.c (xmfree): Delete function.
3569 (xfree): Inline calls to xmfree and mfree.
3570 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
3571 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
3572 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
3573 * somread.c (som_symfile_finish): Ditto.
3574 * objfiles.c (allocate_objfile, free_objfile):
3575 * nlmread.c (nlm_symfile_finish): Ditto.
3576 * hpread.c (hpread_symfile_finish): Ditto.
3577 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
3578 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
3579 * coffread.c (coff_symfile_finish): Ditto.
3580
aa2ee5f6
AC
3581 * defs.h (xmcalloc): Delete declaration.
3582 * utils.c (xmcalloc): Delete.
3583 (xcalloc): Inline calls to xmcalloc and mcalloc.
3584 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
3585 xcalloc and xfree.
3586 * symtab.c (create_demangled_names_hash): Ditto.
3587
0efffb96
AC
3588 * defs.h (xmrealloc): Delete.
3589 * utils.c (xmrealloc): Delete.
3590 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
3591 * symmisc.c (extend_psymbol_list): Use xrealloc.
3592 * source.c (find_source_lines): Ditto.
3593 * hpread.c (hpread_lookup_type): Ditto.
3594 * dbxread.c (add_bincl_to_list): Ditto.
3595
7936743b
AC
3596 * utils.c (xmmalloc): Delete.
3597 (xmalloc): Inline xmmalloc and mmalloc calls.
3598 (msavestring): Use xmalloc.
3599 * defs.h (xmmalloc): Delete declaration.
3600 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
3601 xmmalloc.
3602 * symmisc.c (extend_psymbol_list): Ditto.
3603 * symfile.c (init_psymbol_list): Ditto.
3604 * source.c (find_source_lines): Ditto.
3605 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
3606 * elfread.c (elf_symtab_read): Ditto.
3607 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
3608 * coffread.c (coff_symfile_init): Ditto.
3609
252ab814
DC
36102004-08-10 David Carlton <carlton@bactrian.org>
3611
3612 * MAINTAINERS: Remove David Carlton from c++ testsuite
3613 maintainers.
3614
8f5ba92b
JG
36152004-08-10 Jerome Guitton <guitton@gnat.com>
3616
3617 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
3618 print a line feed before the prompt.
3619
21749010
MK
36202004-08-10 Mark Kettenis <kettenis@gnu.org>
3621
3622 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
3623
1f011ce2
JB
36242004-08-09 Joel Brobecker <brobecker@gnat.com>
3625
3626 General cleanup of the AIX xm include file:
3627 * config/xm-aix4.h (fd_set): Remove undefine.
3628 Remove include of <sys/select.h>.
3629 (HAVE_TERMIO): Remove define.
3630 (USG): Likewise.
3631 (NULL): Remove redefine.
3632 (alloca): Remove #pragma.
3633 (vfork): Remove define.
3634 (termdef): Remove.
3635 (SIGWINCH_HANDLER): Remove.
3636 (SIGWINCH_HANDLER_BODY): Remove.
3637
cf4e7692
MK
36382004-08-09 Mark Kettenis <kettenis@gnu.org>
3639
3640 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
3641 GDB_OSABI_OPENBSD_ELF.
3642
ac5754fa
MK
36432004-08-07 Robert Millan <robertmh@gnu.org>
3644
3645 * bsd-kvm.c: Check for nlist.h before including it.
3646
086ec9eb
MK
36472004-08-09 Mark Kettenis <kettenis@gnu.org>
3648
bbe06c74
MK
3649 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
3650 sigcontext' offset consistency checks for ancient BSD.
3651
3aa7b3b3
MK
3652 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
3653
086ec9eb
MK
3654 * configure.in: Check for <sys/types.h>. Check return and
3655 argument types of ptrace.
3656 * configure, config.in: Regenerate.
3657
09991fa0
JB
36582004-08-09 Jim Blandy <jimb@redhat.com>
3659
3660 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
3661 rs6000_register_sim_regno): Doc fixes.
3662
fed7ba43
JB
36632004-08-08 Joel Brobecker <brobecker@gnat.com>
3664
3665 * mips-tdep.c: Include "floatformat.h".
3666 (n32n64_floatformat_always_valid): New function.
3667 (floatformat_n32n64_long_double_big): New constant.
3668 (mips_gdbarch_init): Set size and format of long double
3669 for N32 and N64 ABIs.
3670 * Makefile.in (mips-tdep.o): Update dependencies.
3671
456fcf94
AC
36722004-08-08 Andrew Cagney <cagney@gnu.org>
3673
2f9b146e
AC
3674 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
3675 print. Improve script's error messages.
3676 * gdbarch.h: Re-generate.
3677
456fcf94
AC
3678 * gdbarch.sh (pformat): New function.
3679 (float_format, double_format, long_double_format): List with bit
3680 members. Use pformat when printing.
3681 * gdbarch.c, gdbarch.h: Re-generate.
3682
69e9e646
NW
36832004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
3684
3685 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
3686 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
3687 (ppcnbsd_supply_pcb): New function.
3688 (_initialize_ppcnbsd_nat): New prototype and function.
3689 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
3690 (LOADLIBES): New variable.
3691 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
3692
5ef2d0aa
AC
36932004-08-08 Andrew Cagney <cagney@gnu.org>
3694
3695 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
3696 (builtin_type_ieee_double, builtin_type_ia64_quad)
3697 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
3698 BE/LE floating-point types.
3699 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
3700 (builtin_type_ieee_double, builtin_type_ia64_quad)
3701 (builtin_type_ia64_spill): Declare.
3702 * doublest.c (_initialize_doublest, floatformat_ieee_single)
3703 (floatformat_ieee_double, floatformat_arm_ext)
3704 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
3705 of LE/BE floatformats.
3706 * doublest.h: (struct floatformat, floatformat_ieee_single)
3707 (floatformat_ieee_double, floatformat_arm_ext)
3708 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
3709
5c7f2947
MK
37102004-08-08 Mark Kettenis <kettenis@gnu.org>
3711
ecac404d
MK
3712 * i386gnu-nat.c (gnu_store_registers): Fix typo.
3713
9b8607ce
MK
3714 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
3715 instead of regcache_raw_supply when storing the registers.
3716
f6052080
MK
3717 * i386gnu-nat.c: Update copyright year.
3718 (gnu_store_registers): Don't use deprecated_registers and
3719 deprecated_registers_valid. Use regcache_valid_p and
3720 regcache_raw_supply instead.
3721
17777823
MK
3722 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
3723 frame_pc_unwind.
3724
5240ceac
MK
3725 * procfs.c (procfs_pid_to_str): Remove redundant and unused
3726 variables. Incapitalized "process".
3727
5c7f2947
MK
3728 * configure.in: Add cursesX to the list of possible curses libs.
3729 Add cursesX.h to the list of possible curses headers.
3730 * configure, config.in: Regenerate.
3731
da7d81e3
NW
37322004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
3733
3734 * configure.in: Test for struct lwp in <sys/lwp.h>.
3735 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
3736 the offset of l_addr in struct lwp.
3737
7f245d65
NW
37382004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
3739
3740 * bsd-kvm.c: Include "gdbcore.h"
3741 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
3742
47b3f456
AC
37432004-08-07 Andrew Cagney <cagney@gnu.org>
3744
70bd8e24
AC
3745 * gdbtypes.c (build_flt, build_complex): New functions.
3746 (gdbtypes_post_init): Use.
3747
9b0dea39
AC
3748 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
3749
5cf7abac
AC
3750 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
3751 through to builtin_type_uint128.
3752
64d2b26d
AC
3753 * c-exp.y: Use builtin_type function to obtain builtin types.
3754
7ad6570d
AC
3755 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
3756 builtin_uint128.
3757 * gdbtypes.c (gdbtypes_post_init): Update.
3758 (build_gdbtypes): Move initialization of builtin_type_int0
3759 through to builtin_type_uint128 from here ...
3760 (_initialize_gdbtypes): ... to here.
3761 * d10v-tdep.c (d10v_register_type): Update.
3762
47b3f456
AC
3763 * doublest.c: Update copyright.
3764 (floatformat_from_length): Call error when floatformat is NULL.
3765 (extract_floating_by_length): Remove NULL fmt check.
3766 (store_floating_by_length): Ditto.
3767
0a8146bf
AC
37682004-08-07 Andrew Cagney <cagney@gnu.org>
3769
3770 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
3771 that the register is valid.
3772
c0ccb908
MK
37732004-08-05 Mark Kettenis <kettenis@chello.nl>
3774
8e6bed05
MK
3775 * i386-linux-tdep.c (i386_linux_sigtramp_start)
3776 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
3777 struct frame_info *. Use safe_frame_unwind_memory instead of
3778 deprecated_read_memory_nobpt.
3779 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
3780 changed signature of i386_linux_sigtramp_start and
3781 i386_linux_rt_sigtramp_start.
3782
24f9f5e3
MK
3783 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
3784 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
3785 instead of deprecated_read_memory_nobpt.
3786 (i386nbsd_sigtramp_p): Adjust for changed signature of
3787 i386nbsd_sigtramp_offset.
3788
c822af0c
MK
3789 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
3790 safe_frame_unwind_memory instead of target_read_memory.
3791
c0ccb908
MK
3792 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
3793 !NO_SYS_FILE.
3794 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
3795 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
3796 (_initialize_kernel_u_addr): Remove prototype and function.
3797 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
3798 !NO_SYS_FILE.
3799 * xcoffread.c: Likewise.
3800
b9e1c0d6
MK
38012004-08-06 Mark Kettenis <kettenis@gnu.org>
3802
3803 * vax-nat.c: New file.
3804 * vaxbsd-nat.c: Tweak comment.
3805 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
3806 vaxnbsd-tdep.c.
3807 (vax-nat.o): New dependency.
3808 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
3809 (vax-*-ultrix2*): Remove.
3810 * config/vax/vax.mh: New file.
3811 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
3812 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
3813 (vax_register_u_addr): New prototype.
3814 (REGISTER_U_ADDR): Define using vax_register_u_addr.
3815 * config/vax/vaxult2.mh: Remove file.
3816 * config/vax/vaxult.mh: Remove file.
3817 * config/vax/vaxbsd.mh: Remove file.
3818 * config/vax/vax.mt (TM_FILE): Remove.
3819 * config/vax/tm-vaxbsd.h: Remove file.
3820
9ad7bec7
JB
38212004-08-06 Joel Brobecker <brobecker@gnat.com>
3822
3823 * aix-thread.c (get_signaled_thread): New function.
3824 (iter_trap): Delete, no longer used.
3825 (iter_tid): New function.
3826 (pd_update): Find the thread that received the SIGTRAP signal
3827 by first locating the kernel thread, and then finding its
3828 associated thread.
3829
bf0d233d
UW
38302004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
3831
3832 * lin-lwp.c (child_wait): Continue inferior after processing
3833 PTRACE_EVENT_CLONE event.
3834
d0f853e1
NN
38352004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
3836
3837 * MAINTAINERS: Add self to Write-After-Approval.
3838
ab14aeb0
JJ
38392004-08-05 Jeff Johnston <jjohnstn@redhat.com>
3840
3841 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
3842 libunwind-xxxx.so" where xxxx is UNW_TARGET.
3843
9c8dbfa9
AC
38442004-08-05 Andrew Cagney <cagney@gnu.org>
3845
c8f3ca46
AC
3846 * config/xm-sysv4.h: Delete file.
3847 * config/mips/xm-irix5.h: Delete file.
3848 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
3849 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
3850 * config/ia64/xm-aix.h: Delete file.
3851 * config/ia64/aix.mh (XM_FILE): Delete.
3852 * config/pa/xm-hppah.h: Delete file.
3853 * config/pa/hpux11w.mh (XM_FILE): Delete.
3854 * config/pa/hpux11.mh (XM_FILE): Delete.
3855 * config/pa/hpux1020.mh (XM_FILE): Delete.
3856 * config/pa/hppahpux.mh (XM_FILE): Delete.
3857
5f7daaff
AC
3858 * config/alpha/xm-alphalinux.h: Delete file.
3859 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
3860 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
3861 * config/alpha/xm-alphaosf.h: Delete file.
3862 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
3863 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
3864 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
3865 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
3866
69babf95
AC
3867 * config/i386/xm-i386v.h: Delete file.
3868 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
3869 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
3870 * config/i386/xm-i386sco.h: Delete file.
3871 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
3872 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
3873 * config/i386/xm-i386v4.h: Delete file.
3874 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
3875 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
3876 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
3877 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
3878
6f009c8a
AC
3879 * config/vax/xm-vax.h: Delete file.
3880 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
3881 * config/vax/xm-vaxult2.h: Delete file.
3882 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
3883 * config/vax/vaxult2.mh (XM_FILE): Delete.
3884 * config/vax/xm-vaxult.h: Delete file.
3885 * config/vax/vaxult.mh (XM_FILE): Delete.
3886 * config/vax/xm-vaxbsd.h: Delete file.
3887 * config/vax/vaxbsd.mh (XM_FILE): Delete.
3888
9c8dbfa9
AC
3889 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
3890 * gdbarch.h, gdbarch.c: Re-generate.
3891 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
3892 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
3893 * frame.h: Delete deprecated_read_fp from comments.
3894 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
3895 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
3896
84367a3e
MK
38972004-08-04 Mark Kettenis <kettenis@gnu.org>
3898
9c8e3411
MK
3899 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
3900 trampoline in OpenBSD 3.5-current.
3901
b87bc0d8
MK
3902 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
3903 SSE registers.
3904
84367a3e
MK
3905 * Makefile.in: Remove embedded page breaks.
3906
a44bddec
JB
39072004-08-04 Jim Blandy <jimb@redhat.com>
3908
7ab3286f
JB
3909 * regcache.c (regcache_raw_read): Assert that, after calling
3910 target_fetch_registers, the register we're reading is cached.
3911
a44bddec
JB
3912 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
3913 a call to 'internal_error', with a more helpful error message.
3914 * rs6000-tdep.c (e500_pseudo_register_read,
870d65d5 3915 e500_pseudo_register_write, rs6000_store_return_value): Same.
a44bddec 3916
35124113
AC
39172004-08-04 Andrew Cagney <cagney@gnu.org>
3918
3919 * Makefile.in: Update dependencies.
3920
9f643768
JB
39212004-08-04 Jim Blandy <jimb@redhat.com>
3922
6ced10dd
JB
3923 Change the layout of the PowerPC E500 raw register cache to allow
3924 the lower 32-bit halves of the GPRS to be their own raw registers,
3925 not pseudoregisters.
3926 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
3927 add ppc_ev0_upper_regnum flag.
3928 * rs6000-tdep.c: #include "reggroups.h".
3929 (spe_register_p): Recognize the ev upper half registers as SPE
3930 registers.
3931 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
3932 registers.
3933 (e500_move_ev_register): New function.
3934 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
3935 vector registers are the pseudo-registers now, formed by splicing
3936 together the gprs and the upper-half registers.
3937 (e500_register_reggroup_p): New function.
3938 (P): Macro deleted.
3939 (P8, A4): New macro.
3940 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
3941 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
3942 macros.
3943 (registers_e500): Rearrange register set so that the raw register
3944 set contains 32-bit GPRs and upper-half registers, and the SPE
3945 vector registers become pseudo-registers.
3946 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
3947 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
3948 register numbers are now the same for the E500 as they are for
3949 other PowerPC variants. Register e500_register_reggroup_p as the
3950 register group function for the E500.
3951 * Makefile.in (rs6000-tdep.o): Update dependencies.
3952
3953 Adapt PPC E500 native support to the new raw regcache layout.
3954 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
3955 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
3956 (fetch_spe_register, store_spe_register): Handle fetching/storing
3957 all the SPE registers at once, if regno == -1. These now take
3958 over the job of fetch_spe_registers and store_spe_registers.
3959 (fetch_spe_registers, store_spe_registers): Deleted.
3960 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
3961 unconditionally; they're always raw. Fetch/store SPE upper half
3962 registers, if present, instead of ev registers.
3963 (fetch_register, store_register): Remove sanity checks: gprs are
3964 never pseudo-registers now, so we never need to even mention any
3965 registers that are ever pseudoregisters.
3966
9f643768
JB
3967 Use a fixed register numbering when communicating with the PowerPC
3968 simulator.
3969 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
3970 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
3971 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
3972 New functions.
3973 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
3974 init_sim_regno_table.
3975 * Makefile.in (gdb_sim_ppc_h): New variable.
3976 (rs6000-tdep.o): Update dependencies.
3977
1e2279c8
AC
39782004-08-02 Andrew Cagney <cagney@gnu.org>
3979
1d94326f
AC
3980 * cris-tdep.c (cris_register_size): Restore function, still used
3981 locally.
3982
331ae7ed
AC
3983 * gdbarch.sh (deprecated_target_read_fp)
3984 (deprecated_frame_locals_address, deprecated_frame_args_address)
3985 (deprecated_frame_chain_valid, deprecated_frame_chain)
3986 (deprecated_init_extra_frame_info, deprecated_pop_frame)
3987 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
3988 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
3989 * gdbarch.h, gdbarch.c: Re-generate.
3990 * regcache.c (deprecated_read_fp): Do not call
3991 DEPRECATED_TARGET_READ_FP_P.
3992 * infcmd.c (default_print_registers_info): Do not call
3993 DEPRECATED_DO_REGISTERS_INFO.
3994 * frame-base.c (default_frame_locals_address): Do not call
3995 DEPRECATED_FRAME_LOCALS_ADDRESS.
3996 (default_frame_args_address): Do not call
3997 DEPRECATED_FRAME_ARGS_ADDRESS.
3998
1e2279c8
AC
3999 * gdbarch.sh (deprecated_register_raw_size)
4000 (deprecated_register_virtual_size:int): Delete.
4001 * gdbarch.h, gdbarch.c: Re-generate.
4002 * cris-tdep.c (cris_register_size): Delete.
4003 (cris_gdbarch_init): Update.
4004 * alpha-tdep.c (alpha_register_raw_size)
4005 (alpha_register_virtual_size): Delete.
4006 (alpha_gdbarch_init): Update.
4007
a90c06b4
AC
4008 * gdbarch.sh (deprecated_register_virtual_type)
4009 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
4010 (deprecated_dummy_write_sp): Delete.
4011 * gdbarch.h, gdbarch.c: Re-generate.
4012
f42accbe
AC
4013 * gdbarch.sh (deprecated_register_bytes): Delete.
4014 * gdbarch.h, gdbarch.c: Re-generate.
4015 * regcache.c (deprecated_register_bytes): New function.
4016 * regcache.h (deprecated_register_bytes): Declare.
4017 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4018 * v850-tdep.c (v850_gdbarch_init): Update.
4019 * sh64-tdep.c (sh64_gdbarch_init): Update.
4020 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
4021 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4022 * mcore-tdep.c (mcore_gdbarch_init): Update.
4023 * cris-tdep.c (cris_gdbarch_init): Update.
4024 * arm-tdep.c (arm_gdbarch_init): Update.
4025 * remote.c (init_remote_state): Update.
4026 * remote-vx.c (vx_prepare_to_store): Update.
4027 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
4028 * irix5-nat.c (fetch_core_registers): Update.
4029 * cris-tdep.c (cris_register_bytes_ok): Update.
4030 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
4031
45c9dd44
AC
4032 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
4033 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
4034 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
4035 (mips_insn16_frame_base_address, mips_insn16_frame_base)
4036 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
4037 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
4038 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
4039 (mips_insn32_frame_base_address, mips_insn32_frame_base)
4040 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
4041 with mips_insn16 and mips_insn32.
4042
3acba339
AC
4043 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
4044 * rs6000-tdep.c (rs6000_push_dummy_call)
4045 (rs6000_extract_return_value): Use register_size.
4046 * xstormy16-tdep.c (xstormy16_get_saved_register)
4047 (xstormy16_extract_return_value): Ditto.
4048 * valops.c (value_assign): Ditto.
4049 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
4050 * v850-tdep.c (v850_extract_return_value): Ditto.
4051 * tracepoint.c (collect_symbol): Ditto.
4052 * target.c (debug_print_register): Ditto.
4053 * stack.c (frame_info): Ditto.
4054 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
4055 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
4056 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
4057 (store_register_using_P): Ditto.
4058 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
4059 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
4060 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
4061 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
4062 * regcache.c (deprecated_read_register_bytes)
4063 (deprecated_write_register_bytes, read_register)
4064 (write_register): Ditto.
4065 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
4066 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
4067 * monitor.c (monitor_supply_register, monitor_fetch_register)
4068 (monitor_store_register): Ditto.
4069 * mn10300-tdep.c (mn10300_pop_frame_regular)
4070 (mn10300_print_register): Ditto.
4071 * mipsv4-nat.c (fill_fpregset): Ditto.
4072 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
4073 (mips64_fill_fpregset): Ditto.
4074 * mi/mi-main.c (register_changed_p, get_register)
4075 (mi_cmd_data_write_register_values): Ditto.
4076 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
4077 * irix5-nat.c (fill_gregset, fetch_core_registers):
4078 * infrun.c (write_inferior_status_register): Ditto.
4079 * infptrace.c (fetch_register, store_register): Ditto.
4080 * infcmd.c (default_print_registers_info): Ditto.
4081 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
4082 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
4083 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
4084 * hpux-thread.c (hpux_thread_fetch_registers)
4085 (hpux_thread_store_registers): Ditto.
4086 * hppah-nat.c (store_inferior_registers, fetch_register):
4087 * findvar.c (value_from_register): Ditto.
4088 * dve3900-rom.c (fetch_bitmapped_register):
4089 * cris-tdep.c (cris_gdbarch_init): Ditto.
4090 * alpha-tdep.h: Ditto.
4091 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
4092
01e1877c
AC
4093 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
4094 DEPRECATED_REGISTER_RAW_SIZE from comments.
4095 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
4096 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
4097 DEPRECATED_REGISTER_RAW_SIZE.
4098 * findvar.c (value_of_register): Simplify by assuming that the
4099 registers raw and virtual sizes are identical.
4100 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
4101 comment.
4102 * arch-utils.c (generic_register_size): Simplify by assuming
4103 register_type.
4104
73f458fb
AC
4105 * regcache.c (legacy_read_register_gen, real_register)
4106 (legacy_write_register_gen): Delete, not used.
4107
336a3131
AC
4108 * regcache.c (struct regcache_descr): Delete legacy_p.
4109 (init_legacy_regcache_descr): Delete function.
4110 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
4111 Do not use deprecated register functions.
4112 (regcache_raw_read, deprecated_write_register_gen):
4113 (deprecated_read_register_gen, regcache_raw_write): Delete code
4114 predicated on legacy_p.
4115 (register_size): Delete check against register raw size.
4116
c1d546cd
AC
4117 * cris-tdep.c (cris_register_type): Replace
4118 cris_register_virtual_type.
4119 (cris_gdbarch_init): Update, set register_type.
4120
48c2c0a6
AC
4121 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
4122 * gdbarch.h, gdbarch.c: Re-generate.
4123 * arm-tdep.c (arm_frameless_function_invocation): Delete.
4124 (arm_gdbarch_init) Do not set frameless function invocation.
4125 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
4126 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
4127 * frv-tdep.c (frv_frameless_function_invocation): Delete.
4128 (frv_gdbarch_init): Do not set frameless function invocation.
4129 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
4130 * sh-tdep.c (sh_gdbarch_init): Ditto.
4131 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
4132 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4133 * avr-tdep.c (avr_gdbarch_init): Ditto.
4134
474093a6
AC
4135 * blockframe.c (legacy_frame_chain_valid): Delete function.
4136
3c109c8b
AC
4137 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
4138 and pc. Update comments.
4139 (pc_in_dummy_frame): Delete function.
4140 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
4141 use the "id".
4142 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
4143 call_hi, top and pc, use the id.
4144 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
4145
96860204
AC
4146 * dummy-frame.c: Include "gdb_string.h".
4147 (generic_save_call_dummy_addr, generic_push_dummy_frame)
4148 (generic_save_dummy_frame_tos): Delete.
4149 (dummy_frame_push): New function, replaces above.
4150 * dummy-frame.h: Update copyright.
4151 (dummy_frame_push): Declare.
4152 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
4153 (generic_save_call_dummy_addr): Delete declarations.
4154 * infcall.c: Include "dummy-frame.h".
4155 (call_function_by_hand): Add locals caller_regcache,
4156 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
4157 with call to frame_save_as_regcache plus cleanup. Delete calls to
4158 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
4159 Move clear_proceed_status to just before the resume, add call to
4160 dummy_frame_push (discard cleanup).
4161 * Makefile.in (infcall.o): Add $(dummy_frame_h).
4162 (dummy-frame.o): Add $(gdb_string_h).
4163
d67ec5db
AC
41642004-08-01 Andrew Cagney <cagney@gnu.org>
4165
4166 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
4167 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
4168 * dummy-frame.c (find_dummy_frame): Delete.
4169 (struct dummy_frame_cache, dummy_frame_sniffer)
4170 (dummy_frame_prev_register, dummy_frame_this_id)
4171 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
4172 frame unwinder using a dummy_frame_cache.
4173
a81dcb05
AC
41742004-08-01 Andrew Cagney <cagney@gnu.org>
4175
4176 * frame.h (frame_save_as_regcache): Declare.
4177 * frame.c (frame_save_as_regcache): New function.
4178 (do_frame_read_register): Replace do_frame_unwind_register.
4179 (frame_pop): Use frame_save_as_regcache.
4180 * dummy-frame.c (generic_push_dummy_frame): Use
4181 frame_save_as_regcache.
4182
aa495d11
JB
41832004-08-01 Joel Brobecker <brobecker@gnat.com>
4184
4185 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
4186 file as included until we record the first line in the linetable.
4187
ff65ac78
AC
41882004-08-01 Andrew Cagney <cagney@gnu.org>
4189
4190 * frame.h (deprecated_pop_dummy_frame)
4191 (deprecated_read_register_dummy)
4192 (deprecated_generic_find_dummy_frame): Delete.
4193 * dummy-frame.c (deprecated_generic_find_dummy_frame)
4194 (deprecated_read_register_dummy)
4195 (deprecated_find_dummy_frame_regcache)
4196 (discard_innermost_dummy)
4197 (deprecated_pop_dummy_frame): Delete.
4198 (dummy_frame_this_id): Simplify.
4199 (struct dummy_frame): Delete "fp" and "sp".
4200 (find_dummy_frame): Simplify.
4201 (generic_push_dummy_frame): Do not set "fp" or "sp".
4202 (fprint_dummy_frames): Do not print "fp" and "sp"
4203
37bdc87e
MK
42042004-08-01 Mark Kettenis <kettenis@gnu.org>
4205
4206 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
4207 (struct i386_insn): New structure.
4208 (i386_match_insn): New function.
4209 (i386_frame_setup_skip_insns): New variable.
4210 (i386_analyze_frame_setup): Change to use i386_match_insn and the
4211 array i386_frame_setup_insns of instructions that should be
4212 skipped inside the frame setup sequence.
4213
8241eaa6
AC
42142004-08-01 Andrew Cagney <cagney@gnu.org>
4215
5bc602c7
AC
4216 * frame.h (deprecated_frame_xmalloc_with_cleanup)
4217 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
4218 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
4219 * stack.c (frame_info): Delete references to
4220 DEPRECATED_FRAME_INIT_SAVED_REGS and
4221 deprecated_get_frame_saved_regs.
4222 * frame.c (struct frame_info): Delete saved_regs and extra_info.
4223 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
4224 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
4225 (frame_unwind_register_signed)
4226 (frame_unwind_register_unsigned)
4227 (frame_unwind_unsigned_register): Use register_size.
4228 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
4229 (deprecated_frame_xmalloc_with_cleanup)
4230 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
4231 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
4232
03d363a1
AC
4233 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
4234 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
4235 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
4236 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
4237
8241eaa6
AC
4238 * infcall.c (call_function_by_hand): Do not use
4239 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
4240 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
4241 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
4242 DEPRECATED_STACK_ALIGN.
4243
f00df8b7
AC
42442004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
4245
4246 Committed by Andrew Cagney.
4247 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
4248
eec63939
AC
42492004-08-01 Andrew Cagney <cagney@gnu.org>
4250
4251 * mips-tdep.c (mips16_frame_cache)
4252 (mips16_frame_this_id, mips16_frame_prev_register)
4253 (mips16_frame_unwind, mips16_frame_sniffer)
4254 (mips16_frame_base_address, mips16_frame_base)
4255 (mips16_frame_base_sniffer, mips32_frame_cache)
4256 (mips32_frame_this_id, mips32_frame_prev_register)
4257 (mips32_frame_unwind, mips32_frame_sniffer)
4258 (mips32_frame_base_address, mips32_frame_base)
4259 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
4260 separate heuristic mips16 and mips32 unwinders.
4261 (mips_stub_frame_cache, mips_stub_frame_this_id)
4262 (mips_stub_frame_prev_register)
4263 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
4264 (mips_stub_frame_base_address, mips_stub_frame_base)
4265 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
4266 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
4267 match true mdebug frames.
4268 (non_heuristic_proc_desc): Add forward declaration.
4269
e66299b3
AC
42702004-08-01 Andrew Cagney <cagney@gnu.org>
4271
83cbbf3e
AC
4272 * config/mips/tm-irix6.h: Delete file.
4273 * config/mips/tm-irix5.h: Delete file.
4274 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
4275 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
4276
22d41b37
AC
4277 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
4278 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
4279 * config/nm-gnu.h (NO_CORE_OPS): Delete.
4280 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
4281 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
4282 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
4283 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
4284 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
4285 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
4286 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
4287 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
4288 (TARGET_SIGNAL_RAW_VALUES): Delete.
4289 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
4290 Delete.
4291 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
4292 (TARGET_HW_WATCH_LIMIT): Delete.
4293 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
4294 * minimon.h: Delete file.
4295
e66299b3
AC
4296 * trad-frame.c (trad_frame_get_this_base)
4297 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
4298 functions.
4299 * trad-frame.h (trad_frame_set_this_base)
4300 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
4301
1f67027d
AC
43022004-07-31 Andrew Cagney <cagney@gnu.org>
4303
4304 * trad-frame.c (trad_frame_get_prev_register): Rename
4305 trad_frame_get_prev_register.
4306 * vax-tdep.c (vax_frame_prev_register): Update.
4307 * trad-frame.h: Update.
4308 * trad-frame.c (trad_frame_get_register): Update.
4309 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
4310 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
4311 Update.
4312 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
4313 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
4314 Update.
4315 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
4316 Update.
4317 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
4318 Update.
4319 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
4320 Update.
4321 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
4322 Update.
4323 * s390-tdep.c (s390_frame_prev_register)
4324 (s390_stub_frame_prev_register)
4325 (s390_sigtramp_frame_prev_register): Update.
4326 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
4327 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
4328 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
4329 * m88k-tdep.c (m88k_frame_prev_register)
4330 * m68hc11-tdep.c (m68hc11_frame_prev_register)
4331 * m32r-tdep.c (m32r_frame_prev_register): Update.
4332 * hppa-tdep.c (hppa_frame_prev_register_helper)
4333 * frv-tdep.c (frv_frame_prev_register): Update.
4334 * d10v-tdep.c (d10v_frame_prev_register): Update.
4335 * cris-tdep.c (cris_frame_prev_register): Update.
4336 * avr-tdep.c (avr_frame_prev_register): Update.
4337 * arm-tdep.c (arm_prologue_prev_register)
4338 (arm_sigtramp_prev_register): Update.
4339
c1bf6f65
AC
43402004-07-31 Andrew Cagney <cagney@gnu.org>
4341
4342 * frame.h (legacy_saved_regs_unwind)
4343 (legacy_frame_chain_valid, legacy_frame_p)
4344 (enum frame_type): Delete UNKNOWN_FRAME.
01fbbd97
AC
4345 * dummy-frame.c (dummy_frame_this_id): Simplify.
4346 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
c1bf6f65
AC
4347 * frame.c (struct frame_info): Delete the field "type".
4348 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
4349 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
4350 (legacy_saved_regs_unwind, legacy_frame_p)
4351 (frame_type_from_pc): Delete.
4352 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
4353 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
4354
dc856692
MK
43552004-07-31 Mark Kettenis <kettenis@gnu.org>
4356
5a5effe1
MK
4357 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
4358 indentation.
4359
d4fd50a6
MK
4360 * mips-nat.c: Remove file.
4361 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
4362 (mips-nat.o): Remove dependency.
4363
2689df5a
MK
4364 * infptrace.c: Update copyright year.
4365 (fetch_register): Pass NULL in regcache_raw_supply call instead of
4366 explicitly setting the buffer to all zeroes.
4367
dc856692
MK
4368 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
4369 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
4370
763910e0
AC
43712004-07-30 Andrew Cagney <cagney@gnu.org>
4372
4373 * GDB 6.2 released from gdb_6_2-branch.
4374
0b66e38c
EZ
43752004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
4376
4377 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
4378
4379 * exec.c (exec_file_attach):
4380 * nto-tdep.c (nto_find_and_open_solib):
4381 * pa64solib.c (pa64_solib_sizeof_symbol_table):
4382 * solib.c (solib_open):
4383 * somsolib.c (som_solib_sizeof_symbol_table):
4384 * source.c (is_regular_file, openp, open_source_file):
4385 * symfile.c (symfile_bfd_open):
4386 * wince.c (upload_to_device): Differentiate between the search for
4387 binary and source files.
4388
be7d7357
AC
43892004-07-30 Andrew Cagney <cagney@gnu.org>
4390
4391 * complaints.c (_initialize_complaints): Pass NULL to
4392 add_setshow_zinteger_cmd for help_doc.
4393 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
4394
ddc9cd0f
AC
43952004-07-30 Andrew Cagney <cagney@gnu.org>
4396
4397 Fix PR i18n/761.
4398 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
4399 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
4400 $(PACKAGE).pot and update-po.
4401 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
4402 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
4403 (update-po): New rules.
4404 (localedir): Define using autoconf.
4405 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
4406 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
4407 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
4408 * configure.in: Generate CATALOGS and LINGUAS from contents of
4409 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
4410 * configure: Re-generate.
4411 * po/gdbtext: New file
4412
e92f3704
JG
44132004-07-30 Jerome Guitton <guitton@gnat.com>
4414
4415 * MAINTAINERS: Reorder Write After Approval list in alphabetical
4416 order.
4417
b0f35d58
DL
44182004-07-30 David Lecomber <dsl@sources.redhat.com>
4419
4420 * dwarf2read.c (read_file_scope): Set producer if attribute
4421 present.
4422 (struct dwarf2_cu): Added new member producer.
4423
ce7d4522
JG
44242004-07-30 Jerome Guitton <guitton@gnat.com>
4425
4426 * inflow.c (kill_command): release file handles in BFD.
4427 * exec.c (exec_file_attach): Ditto.
4428 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
4429
05ee07c7
AC
44302004-07-29 Andrew Cagney <cagney@gnu.org>
4431
4432 * PROBLEMS (mips-irix): Note that it is broken.
4433
62eceb47
AC
44342004-07-29 Andrew Cagney <cagney@gnu.org>
4435
e57b8d41
AC
4436 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
4437 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
4438
d334389b
AC
4439 * config/xm-nbsd.h: Delete file.
4440 * config/arm/xm-nbsd.h: Delete file.
4441 * config/i386/xm-nbsd.h: Delete file.
4442 * config/ns32k/xm-nbsd.h: Delete file.
4443 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
4444 * config/i386/nbsdelf.mh (XM_FILE): Delete.
4445 * config/i386/nbsdaout.mh (XM_FILE): Delete.
4446 * config/arm/nbsdelf.mh (XM_FILE): Delete.
4447 * config/arm/nbsdaout.mh (XM_FILE): Delete.
4448
e910f676
AC
4449 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
4450 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
4451 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
4452 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
4453 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
4454 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
4455
6fa856b9
AC
4456 * config/powerpc/xm-linux.h: Delete empty file.
4457 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
4458 * config/powerpc/linux.mh (XM_FILE): Delete.
4459 * config/m68k/xm-linux.h: Delete empty file.
4460 * config/m68k/linux.mh (XM_FILE): Delete.
4461 * config/ia64/xm-linux.h: Delete empty file.
4462 * config/ia64/linux.mh (XM_FILE): Delete.
4463 * config/arm/xm-linux.h: Delete empty file.
4464 * config/arm/linux.mh (XM_FILE): Delete.
4465
471ae5ae
AC
4466 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4467 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
4468 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4469 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
4470 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4471 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
4472 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4473 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
4474
62eceb47
AC
4475 * config/m68k/xm-m68k.h: Delete file.
4476 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
4477 copyright.
4478 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
4479 * config/pa/xm-linux.h: Delete empty file.
4480 * config/pa/linux.mh (XM_FILE): Delete.
4481 * config/i386/xm-i386.h: Delete empty file.
4482 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
4483 "i386/xm-i386.h".
4484 * config/i386/obsdaout.mh (XM_FILE): Delete.
4485 * config/i386/obsd64.mh (XM_FILE): Delete.
4486 * config/i386/fbsd64.mh (XM_FILE): Delete.
4487 * config/i386/nto.mh (XM_FILE): Delete.
4488 * config/i386/obsd.mh (XM_FILE): Delete.
4489 * config/i386/linux64.mh (XM_FILE): Delete.
4490 * config/i386/linux.mh (XM_FILE): Delete.
4491 * config/i386/i386sol2.mh (XM_FILE): Delete.
4492 * config/i386/i386gnu.mh (XM_FILE): Delete.
4493 * config/i386/fbsd.mh (XM_FILE): Delete.
4494 * config/i386/nbsd64.mh (XM_FILE): Delete.
4495
c35f4ffc
AC
44962004-07-29 Andrew Cagney <cagney@gnu.org>
4497
4498 * config/pa/xm-linux.h: Do not include "floatformat.h".
4499 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4500 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
4501 * config/i386/xm-i386.h: Do not include "floatformat.h".
4502 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4503 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
4504 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4505 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
4506 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
4507 GDB_HOST_LONG_DOUBLE_FORMAT instead.
4508 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
4509 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
4510 * configure, config.in: Regenerate.
4511 * configure.host (gdb_host_float_format, gdb_host_double_format)
4512 (gdb_host_long_double_format): Set according to the host.
4513
624a44a3
AC
45142004-07-29 Andrew Cagney <cagney@gnu.org>
4515
4516 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
4517
0dea2468
AC
45182004-07-28 Andrew Cagney <cagney@gnu.org>
4519
4520 * PROBLEMS: Mention threads/1650.
4521 * NEWS: Mention the NPTL fix.
4522
b3f42336
AC
45232004-07-28 Andrew Cagney <cagney@gnu.org>
4524
4525 * cli/cli-decode.c (add_setshow_cmd): Delete function.
4526 (add_setshow_cmd_full): Make static.
4527 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
4528 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
4529 * cli/cli-decode.c (add_setshow_filename_cmd)
4530 (add_setshow_string_cmd): New functions.
4531 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
4532 * mips-tdep.c (_initialize_mips_tdep): Update.
4533 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
4534 * cli/cli-logging.c (_initialize_cli_logging): Update.
4535 * complaints.c (_initialize_complaints): Update.
4536 * remote.c (_initialize_remote): Update.
4537
3b64bf98
AC
45382004-07-28 Andrew Cagney <cagney@gnu.org>
4539
4540 * cli/cli-decode.c (add_setshow_zinteger_cmd)
4541 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
4542 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
4543 print parameters. Make string parameters constant.
4544 * command.h: Update. Update copyright.
4545 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
4546 * observer.c (_initialize_observer): Ditto.
4547 * frame.c (_initialize_frame): Ditto.
4548 * complaints.c (_initialize_complaints): Ditto.
4549 * maint.c (_initialize_maint_cmds): Ditto.
4550 * target.c (initialize_targets): Ditto.
4551 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
4552 * infcall.c (_initialize_infcall): Ditto.
4553 * arm-tdep.c (_initialize_arm_tdep): Ditto.
4554 * m32r-rom.c (_initialize_m32r_rom): Ditto.
4555 * remote-rdi.c (_initialize_remote_rdi): Ditto.
4556 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
4557 * mips-tdep.c (_initialize_mips_tdep): Ditto.
4558
e9667a65
AC
45592004-07-28 Andrew Cagney <cagney@gnu.org>
4560
54a5b07d
AC
4561 * gdbtypes.c (lookup_primitive_typename): Delete function.
4562 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
4563 * ada-lex.l: Use language_lookup_primitive_type_by_name.
4564 * gdbtypes.c (lookup_typename): Ditto.
4565 * f-exp.y (yylex): Ditto.
4566 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
4567
e9667a65
AC
4568 * scm-lang.c (c_builtin_types): Delete extern declaration.
4569 (scm_language_defn): Replace
4570 string_char_type and primitive_type_vector with
4571 la_language_arch_info.
4572 * jv-lang.c (java_language_defn): Replace
4573 string_char_type and primitive_type_vector with
4574 la_language_arch_info.
4575 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
4576 c_builtin_types in comment.
4577 * c-lang.h (struct language_arch_info): Declare opaque.
4578 (c_language_arch_info): Declare.
4579 (c_builtin_types): Delete declaration.
4580 * c-lang.c (c_language_arch_info): Set string_char_type to
4581 builtin_char, not builtin_true_char. Make global.
4582 (c_builtin_types): Delete array.
4583 (asm_language_defn, minimal_language_defn): Replace
4584 string_char_type and primitive_type_vector with
4585 la_language_arch_info.
4586
685419e2
AC
45872004-07-28 Andrew Cagney <cagney@gnu.org>
4588
4589 * gdbtypes.h (struct builtin_type): Rename true_char to
4590 builtin_true_char.
4591 * gdbtypes.c (gdbtypes_post_init): Update.
4592 * c-lang.c (arch_info): New function.
4593 (enum c_primitive_types): New enum.
4594 (c_language_defn): Instead of string_char_type and
4595 primitive_type_vector set la_language_arch_info.
4596
5a44ea29
AC
45972004-07-28 Andrew Cagney <cagney@gnu.org>
4598
4599 * language.h (struct language_arch_info): Fix typo
4600 s/primative/primitive/.
4601 * gdbtypes.c (lookup_primitive_typename): Ditto.
4602 * language.c (language_lookup_primitive_type_by_name)
4603 (unknown_language_arch_info): Ditto.
4604
f290d38e
AC
46052004-07-27 Andrew Cagney <cagney@gnu.org>
4606
4607 * defs.h (enum language): Add nr_languages.
4608 * language.h (struct language_arch_info): Define.
4609 (struct language_defn): Add la_language_arch_info.
4610 (language_lookup_primative_type_by_name): Declare.
4611 (language_string_char_type): Declare.
4612 * language.c (_initialize_language, language_gdbarch_post_init)
4613 (struct language_gdbarch, language_gdbarch_data): Implement
4614 per-architecture language information.
4615 (unknown_language_arch_info, language_string_char_type)
4616 (language_lookup_primative_type_by_name): New functions.
4617 (unknown_language_defn, auto_language_defn)
4618 (local_language_defn): Set la_language_arch_info to
4619 unknown_language_arch_info.
4620 (unknown_builtin_types): Delete.
4621 * gdbtypes.c (lookup_primitive_typename): Use
4622 language_lookup_primative_type_by_name.
4623 (create_string_type): Use language_string_char_type.
4624 * values.c (value_from_string): Use language_string_char_type.
4625 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
4626 * p-lang.c (pascal_language_defn): Ditto.
4627 * m2-lang.c (m2_language_defn): Ditto.
4628 * jv-lang.c (java_language_defn): Ditto.
4629 * objc-lang.c (objc_language_defn): Ditto.
4630 * f-lang.c (f_language_defn): Ditto.
4631 * c-lang.c (c_language_defn, cplus_language_defn)
4632 (asm_language_defn, minimal_language_defn): Ditto.
4633
000177f0
AC
46342004-07-27 Andrew Cagney <cagney@gnu.org>
4635
4636 * gdbtypes.h (struct builtin_type): Declare.
4637 (builtin_type): Declare.
4638 * d10v-tdep.c (d10v_register_type): Use builtin_type.
4639 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
4640 (gdbtypes_post_init): New function.
4641 (builtin_type): New function.
4642
e22f895c
KI
46432004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
4644
4645 * remote-m32r-sdi.c: Fix breakpoint bug.
4646 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
4647 recv_char_data, recv_long_data): New functions to replace communication
4648 sequences.
4649
536517dd
MC
46502004-07-26 Michael Chastain <mec.gnu@mindspring.com>
4651
4652 Document PR threads/1650.
4653 * PROBLEMS (Threads): Document problem with many threads
4654
a0a44d18
AC
46552004-07-26 Andrew Cagney <cagney@gnu.org>
4656
4657 * gdb-mi.el: Move from here ...
4658 * mi/gdb-mi.el: ... to here.
4659
7ac4ac06
AC
46602004-07-26 Andrew Cagney <cagney@gnu.org>
4661
4662 Problem reported by Ashley Pittman <ashley@quadrics.com>.
4663 * main.c (captured_main): When in batch mode always detach.
4664
a1b461bf
AC
46652004-07-26 Andrew Cagney <cagney@gnu.org>
4666
4667 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
4668 and h8300 as broken.
4669 * NEWS: END-OF-LIFE frame compatibility module.
4670 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
4671 specific comments.
4672
cb1a6d5f
AC
46732004-07-26 Andrew Cagney <cagney@gnu.org>
4674
4675 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
4676 * xcoffsolib.c (_initialize_xcoffsolib): Update.
4677 * wince.c (_initialize_wince): Update.
4678 * win32-nat.c (_initialize_win32_nat): Update.
4679 * varobj.c (_initialize_varobj): Update.
4680 * valops.c (_initialize_valops): Update.
4681 * utils.c (initialize_utils, initialize_utils): Update.
4682 * tui/tui-win.c (_initialize_tui_win): Update.
4683 * top.c (init_main): Update.
4684 * symfile.c (_initialize_symfile): Update.
4685 * source.c (_initialize_source): Update.
4686 * somsolib.c (_initialize_som_solib): Update.
4687 * solib.c (_initialize_solib): Update.
4688 * solib-frv.c (_initialize_frv_solib): Update.
4689 * serial.c (_initialize_serial): Update.
4690 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
4691 * remote.c (_initialize_remote, _initialize_remote): Update.
4692 * remote-vx.c (_initialize_vx): Update.
4693 * remote-utils.c (_initialize_sr_support): Update.
4694 * remote-sds.c (_initialize_remote_sds): Update.
4695 * remote-mips.c (_initialize_remote_mips): Update.
4696 * remote-e7000.c (_initialize_remote_e7000): Update.
4697 * proc-api.c (_initialize_proc_api): Update.
4698 * printcmd.c: Update.
4699 * parse.c (_initialize_parse): Update.
4700 * pa64solib.c (_initialize_pa64_solib): Update.
4701 * p-valprint.c (_initialize_pascal_valprint): Update.
4702 * monitor.c (_initialize_remote_monitors): Update.
4703 * mips-tdep.c (_initialize_mips_tdep): Update.
4704 * mcore-tdep.c (_initialize_mcore_tdep): Update.
4705 * maint.c (_initialize_maint_cmds): Update.
4706 * lin-lwp.c (_initialize_lin_lwp): Update.
4707 * language.c (_initialize_language): Update.
4708 * kod.c (_initialize_kod): Update.
4709 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
4710 * i386-tdep.c (_initialize_i386_tdep): Update.
4711 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
4712 * gdbarch.sh: Update.
4713 * gdbarch.c: Re-generate.
4714 * gdb-events.sh: Update.
4715 * gdb-events.c: Re-generate.
4716 * frame.c (_initialize_frame): Update.
4717 * exec.c: Update.
4718 * demangle.c (_initialize_demangler): Update.
4719 * dcache.c (_initialize_dcache): Update.
4720 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
4721 * cp-valprint.c (_initialize_cp_valprint): Update.
4722 * corefile.c (_initialize_core): Update.
4723 * command.h: Update.
4724 * cli/cli-decode.h: Update.
4725 * cli/cli-cmds.c (init_cli_cmds): Update.
4726 * charset.c (_initialize_charset): Update.
4727 * breakpoint.c (_initialize_breakpoint): Update.
4728 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
4729 * alpha-tdep.c (_initialize_alpha_tdep): Update.
4730 * aix-thread.c (_initialize_aix_thread): Update.
4731
b4632131
MK
47322004-07-24 Mark Kettenis <kettenis@gnu.org>
4733
4734 Partial fix for PR backtrace/1718.
4735 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
4736 that GCC migrates into the prolugue. Don't handle any
4737 instructions that clobber %ebx.
4738
822c9732
AC
47392004-07-23 Andrew Cagney <cagney@gnu.org>
4740
4741 Use regcache_raw_collect instead of regcache_collect.
4742 * regcache.h (regcache_collect): Delete declaration.
4743 * regcache.c (regcache_colect): Delete function.
4744 * win32-nat.c (do_child_store_inferior_registers): Update.
4745 * sol-thread.c (sol_thread_store_registers): Update.
4746 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
4747 * rs6000-nat.c (store_register): Update.
4748 * remote.c (store_register_using_P, remote_store_registers): Update.
4749 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
4750 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
4751 (fill_vrregset, store_spe_registers, fill_gregset)
4752 (fill_gregset): Update.
4753 * nto-procfs.c (procfs_store_registers): Update.
4754 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
4755 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
4756 * m68klinux-nat.c (store_register, fill_gregset): Update.
4757 * m68k-tdep.c (fill_gregset): Update.
4758 * infptrace.c (store_register): Update.
4759 * i386-nto-tdep.c (i386nto_regset_fill): Update.
4760 * i386-linux-nat.c (store_register, fill_gregset): Update.
4761 * hppa-linux-nat.c (fill_gregset): Update.
4762 * go32-nat.c (store_register): Update.
4763 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
4764 (store_fp_regs): Update.
4765 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
4766 (store_nwfpe_extended, store_fpregister, store_fpregs)
4767 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
4768 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
4769 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
4770 (store_regs_user_thread, store_regs_kernel_thread): Update.
4771
32b05c07
MK
47722004-07-24 Mark Kettenis <kettenis@gnu.org>
4773
4774 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
4775 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
4776 encoding.
4777 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
4778 member of `struct comp_unit'.
4779
8567c30f
AC
47802004-07-23 Andrew Cagney <cagney@gnu.org>
4781
4782 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
4783 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
4784
f6da8dd8
MH
47852004-07-23 Martin Hunt <hunt@redhat.com>
4786 Kevin Buettner <kevinb@redhat.com>
4787
4788 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
4789 alignment was being added to the offset instead of multiplied.
4790
bd921882
MK
47912004-07-23 Mark Kettenis <kettenis@gnu.org>
4792
24f033e8
MK
4793 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
4794 changed signal trampoline in OpenBSD 3.5-current.
4795
90f3cecd
MK
4796 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
4797 <machine/pcb.h> and "bsd-kvm.h".
4798 (sparc64nbsd_supply_pcb): New function.
4799 (_initialize_sparc64nbsd_nat): Renamed from
4800 _initialize_sparcnbsd_nat. Enable libkvm interface.
4801 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
4802 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
4803 (LOADLIBES): New variable.
4804
a4954a62
MK
4805 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
4806
bd921882
MK
4807 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
4808
23a6d369
AC
48092004-07-21 Andrew Cagney <cagney@gnu.org>
4810
4811 Use regcache_raw_supply instead of supply_register.
4812 * regcache.h (supply_register): Delete declaration.
4813 * regcache.c (supply_register): Delete function.
4814 * wince.c (do_child_fetch_inferior_registers): Update.
4815 * win32-nat.c (do_child_fetch_inferior_registers)
4816 (fetch_elf_core_registers): Update.
4817 * v850ice.c (v850ice_fetch_registers): Update.
4818 * thread-db.c (thread_db_store_registers): Update.
4819 * sol-thread.c (sol_thread_store_registers): Update.
4820 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
4821 * rs6000-nat.c (fetch_register): Update.
4822 * rom68k-rom.c (rom68k_supply_one_register): Update.
4823 * remote.c (remote_wait, remote_async_wait): Update.
4824 * remote-st.c (get_hex_regs): Update.
4825 * remote-sim.c (gdbsim_fetch_register): Update.
4826 * remote-sds.c (sds_fetch_registers): Update.
4827 * remote-rdp.c (remote_rdp_fetch_register): Update.
4828 * remote-rdi.c (arm_rdi_fetch_registers): Update.
4829 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
4830 * remote-m32r-sdi.c (m32r_fetch_register): Update.
4831 * remote-hms.c (init_hms_cmds): Update.
4832 * remote-est.c (init_est_cmds): Update.
4833 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
4834 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
4835 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
4836 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
4837 (fetch_register, supply_vrregset, supply_vrregset)
4838 (fetch_spe_registers): Update.
4839 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
4840 * monitor.c (monitor_supply_register): Update.
4841 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
4842 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
4843 (mipsnbsd_supply_fpreg): Update.
4844 * mips-nat.c (fetch_inferior_registers)
4845 (fetch_core_registers): Update.
4846 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
4847 (supply_fpregset, mips64_supply_gregset)
4848 (mips64_supply_fpregset): Update.
4849 * m68klinux-nat.c (fetch_register, supply_gregset)
4850 (supply_fpregset): Update.
4851 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
4852 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
4853 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
4854 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
4855 * infptrace.c (fetch_register): Update.
4856 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
4857 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
4858 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
4859 (gnu_fetch_registers, gnu_store_registers): Update.
4860 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
4861 * i386-linux-nat.c (fetch_register, supply_gregset)
4862 (dummy_sse_values): Update.
4863 * hpux-thread.c (hpux_thread_fetch_registers): Update.
4864 * hppah-nat.c (fetch_register): Update.
4865 * hppa-linux-nat.c (fetch_register, supply_gregset)
4866 (supply_fpregset): Update.
4867 * go32-nat.c (fetch_register): Update.
4868 * dve3900-rom.c (fetch_bitmapped_register)
4869 (_initialize_r3900_rom): Update.
4870 * cris-tdep.c (supply_gregset): Update.
4871 * abug-rom.c (init_abug_cmds): Update.
4872 * core-aout.c (fetch_core_registers): Update.
4873 * armnbsd-nat.c (supply_gregset, supply_fparegset)
4874 (fetch_register, fetch_fp_register): Update.
4875 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
4876 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
4877 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
4878 * alphanbsd-tdep.c (fetch_core_registers): Update.
4879 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
4880 * alpha-nat.c (fetch_osf_core_registers)
4881 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
4882 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
4883 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
4884
73cc75f3
AC
48852004-07-21 Andrew Cagney <cagney@gnu.org>
4886
4887 * PROBLEMS: Mention breakpoints/1702.
4888 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
4889 that is known to work.
4890
a53c66de
AC
48912004-07-21 Andrew Cagney <cagney@gnu.org>
4892
4893 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
4894 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
4895 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
4896 (handle_inferior_event): Wrap call to deprecated
4897 IGNORE_HELPER_CALL in #ifdef.
4898 * config/mips/tm-nbsd.h: Update.
4899
708ff411
JB
49002004-07-20 Jim Blandy <jimb@redhat.com>
4901
412b3060
JB
4902 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
4903 bfd_mach_ppc has no segment registers.
4904
13ac140c
JB
4905 Include PowerPC SPR numbers for special-purpose registers.
4906 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
4907 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
4908 new member in initializer.
4909 (S, S4, SN4, S64): New macros for defining special-purpose
4910 registers.
4911 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
4912 registers_403, registers_403GC, registers_505, registers_860,
4913 registers_601, registers_602, registers_603, registers_604,
4914 registers_750, registers_e500): Use them.
4915
708ff411
JB
4916 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
4917 replace references with expression used to initialize variable.
4918
1f602b35
AC
49192004-07-20 Andrew Cagney <cagney@gnu.org>
4920
4921 * breakpoint.c (deprecated_read_memory_nobpt): Rename
4922 read_memory_nobpt.
4923 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
4924 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
4925 (s390_sigtramp_frame_sniffer): Update.
4926 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
4927 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
4928 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
4929 (mips32_fetch_instruction): Update.
4930 * mcore-tdep.c (get_insn): Update.
4931 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
4932 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
4933 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
4934 * i386-linux-tdep.c (i386_linux_sigtramp_start)
4935 (i386_linux_rt_sigtramp_start): Update.
4936 * i386-linux-nat.c (child_resume): Update.
4937 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
4938 * hppa-linux-tdep.c (insns_match_pattern): Update.
4939 * gdbcore.h: Update.
4940 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
4941 * frame.c (safe_frame_unwind_memory): Update.
4942 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
4943 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
4944 * alpha-tdep.c (alpha_read_insn): Update.
4945
2cd8546d
AC
49462004-07-20 Andrew Cagney <cagney@gnu.org>
4947
4948 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
4949 containing both bytes and mask. Add "frame_type".
4950 * tramp-frame.c (tramp_frame_start): Update.
4951 (tramp_frame_prepend_unwinder): Update.
4952 * mips-linux-tdep.c (mips_linux_o32_sigframe)
4953 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
4954 (mips_linux_n64_rt_sigframe): Update. Make "static const".
4955 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
4956
f928dd62
EZ
49572004-07-19 Eli Zaretskii <eliz@gnu.org>
4958
4959 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
4960 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
4961 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
4962 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
4963
d5c560f7
AC
49642004-07-17 Andrew Cagney <cagney@gnu.org>
4965
860660cb
AC
4966 * NEWS, PROBLEMS: Update for 6.2.
4967
8c266f54
AC
4968 * README: Update to 6.2.
4969
a552edd9
AC
4970 * utils.c (xvasprintf): Call xstrvprintf.
4971
c4a172b5
AC
4972 * parse.c: Update copyright.
4973 (null_post_parser): Eliminate ARGSUSED.
4974
da745b36
AC
4975 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
4976 * tui/tui-win.c (tui_get_cmd_list): Ditto.
4977 * symfile-mem.c (_initialize_symfile_mem): Ditto.
4978
9cbc6ef0
AC
4979 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
4980 * ppc-linux-nat.c: Use "Linux kernel".
4981 * hppa-linux-tdep.c: Use GNU/Linux.
4982 * hppa-linux-nat.c: Use GNU/Linux.
4983 * dwarfread.c: Add [sic] to use of Linux.
4984
1b89295f
AC
4985 * hppa-linux-nat.c: Do not include <string.h>.
4986 (supply_fpregset): Remove "register" attribute.
4987
d5c560f7
AC
4988 * solib-frv.c (fetch_loadmap): Use xfree, not free.
4989
7ddd7709
MK
49902004-07-17 Mark Kettenis <kettenis@gnu.org>
4991
b1d19a62
MK
4992 * configure.in: Define _MSE_INT_H on Solaris 9 too.
4993 * configure, config.in: Regenerated.
4994
7ddd7709
MK
4995 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
4996 "bsd-kvm.h".
4997 (vaxbsd_supply_pcb): New function.
4998 (_initialize_vaxbsd_nat): New prototype and function.
4999 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
5000 solib-sunos.o.
5001 (LOADLIBES): New variable.
5002 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5003 (LOADLIBES): New variable.
5004 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
5005 (LOADLIBES): New variable.
5006 * Makefile.in (vaxbsd-nat.o): Update dependencies.
5007
2c07db7a
AC
50082004-07-16 Andrew Cagney <cagney@gnu.org>
5009
5010 * defs.h (event_loop_p): Replace variable declaration with macro,
5011 always 1.
5012 * main.c (captured_main): Delete options "-async" and "-noasync".
5013 (event_loop_p): Delete variable.
5014 * NEWS: Mention that "-async" and "-noasync" were removed.
5015
717eb1cf
AC
50162004-07-16 Andrew Cagney <cagney@gnu.org>
5017
5018 * remote-m32r-sdi.c: Re-indent.
5019
c101bc14
JB
50202004-07-16 Jim Blandy <jimb@redhat.com>
5021
5109a438
JB
5022 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
5023 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
5024 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
5025 missing MPC823 SPRs.
5026 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
5027 incorrect. (This was corrected in GDB's register name tables on
5028 2004-07-14.)
5029
c101bc14
JB
5030 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
5031 should be "esasrr" ("ESA Save and Restore Register").
5032
7ce450bd
AC
50332004-07-16 Andrew Cagney <cagney@gnu.org>
5034
5035 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
5036 calls, no longer applicable. Update comments and rename parameter
5037 "step_frame" to "return_frame".
5038
ca73dd9d
AC
50392004-07-16 Andrew Cagney <cagney@gnu.org>
5040
5041 * frame.c (fprint_field): New function.
5042 (fprint_frame_id): Use fprint_field.
5043
31941f6d
JB
50442004-07-15 Joel Brobecker <brobecker@gnat.com>
5045
5046 * ada-lang.c (ada_language_defn): Remove commented out code.
5047
f86a7158
JB
50482004-07-15 Jim Blandy <jimb@redhat.com>
5049
5050 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
5051 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
5052
c24791ec
JB
50532004-07-14 Jim Blandy <jimb@redhat.com>
5054
29bb1356
JB
5055 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
5056
cc98b5cc
JB
5057 * ppc-tdep.h (ppc_num_vrs): New enum constant.
5058
8f088af7
JB
5059 * ppc-tdep.h (ppc_num_srs): New enum constant.
5060
0ea0ec5f
JB
5061 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
5062 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
5063 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
5064 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
5065 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
5066 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
5067 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
5068 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
5069 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
5070 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
5071 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
5072 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
5073 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
5074 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
5075 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
5076 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
5077 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
5078 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
5079 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
5080 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
5081 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
5082 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
5083 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
5084 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
5085 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
5086 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
5087 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
5088 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
5089 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
5090 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
5091 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
5092 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
5093 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
5094 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
5095 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
5096 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
5097 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
5098 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
5099 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
5100 special-purpose register numbers.
5101
c24791ec
JB
5102 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
5103 manual mentions 'md_twb', but many mention 'm_twb', and at that
5104 point in the register list.)
5105
d833db3b
AC
51062004-07-14 Andrew Cagney <cagney@gnu.org>
5107
5108 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
5109 instead of "internal-error".
5110
080228b2
JB
51112004-07-10 Joel Brobecker <brobecker@gnat.com>
5112
5113 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
5114 that was inserted inside a comment.
5115
c268433a
RC
51162004-07-10 Randolph Chung <tausq@debian.org>
5117
5118 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
5119 function.
5120 (hppa_hpux_push_dummy_code): New function.
5121 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
5122 Set find_global_pointer method.
5123
71009278
MK
51242004-07-10 Mark Kettenis <kettenis@gnu.org>
5125
5126 * NEWS: Mention BSD libkvm interface.
5127
b2fa5097
MS
51282004-07-10 Michael Snyder <msnyder@redhat.com>
5129
5130 * symfile.c (generic_load): Comment typo.
5131 * stack.c (get_selected_block): Ditto.
5132 * regcache.c (regcache_cooked_read): Ditto.
5133 * monitor.c (monitor_debug): Ditto.
5134 * mips-tdep.c (mips_read_pc): Ditto.
5135 * i386-linux-nat.c (ps_get_thread_area): Ditto.
5136 * gdb_mbuild.sh: Ditto.
5137 * gdbarch.sh: Ditto.
5138 * gdbarch.h: Ditto.
5139
c3e5cd34
PH
51402004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
5141
8a2225b2
PH
5142 * ada-tasks.c: Remove file.
5143
c3e5cd34
PH
5144 Remove ARI problems:
5145
5146 * ada-exp.y (write_var_from_sym): Reformat to put operator at
5147 beginning of line.
5148
5149 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
5150 Add comment.
5151 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
5152 (MIN_OF_SIZE): Rename min_of_size. Add comment.
5153 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
5154 (UMIN_OF_SIZE): Remove.
5155 (max_of_type): New function to replace orphan macro in gdbtypes.h
5156 (min_of_type): Ditto.
5157 (discrete_type_high_bound): Use max_of_type.
5158 (discrete_type_low_bound): Use min_of_type.
5159 (possible_user_operator_p): Move operator to beginning of line.
5160 (ada_is_variant_part): Ditto.
5161 (ensure_lval): Rewrite to avoid deprecated operations.
5162 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
5163 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
5164 (ada_enum_name): Remove assignments in 'if' statements.
5165 (build_ada_types): Add gdbarch parameter.
5166 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
5167 with gdbarch_data_register_post_init.
5168 Use add_setshow_uinteger_cmd rather than add_set_cmd and
5169 add_show_from_set.
5170
5171 * ada-valprint.c (inspect_it): Remove declaration.
5172 (repeat_count_threshold): Remove declaration.
5173 (ada_print_floating): Remove assignments in 'if' statements.
5174 (print_str): Move operator to beginning of line.
5175
61ce229a
JB
51762004-07-08 Jim Blandy <jimb@redhat.com>
5177
5178 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
5179
09bcec80
BR
51802004-07-08 Bob Rossi <bob@brasko.net>
5181
5182 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
5183
31c27f77
JJ
51842004-07-06 Jeff Johnston <jjohnstn@redhat.com>
5185
5186 * language.h (struct_language_defn): Add new function pointer:
5187 la_class_name_from_physname. Also add new prototype for
5188 language_class_name_from_physname.
5189 * language.c (language_class_name_from_physname): New function.
5190 (unk_lang_class_name): Ditto.
5191 (unknown_language_defn, auto_language_defn): Change
5192 to add unk_lang_class_name function pointer for
5193 la_class_name_from_physname.
5194 (local_language_defn): Ditto.
5195 * dwarf2read.c (guess_structure_name): Change to call
5196 language_class_name_from_physname.
5197 (determine_class_name): Ditto.
5198 * cp-support.c (class_name_from_physname): Renamed.
5199 (cp_class_name_from_physname): New name of function.
5200 * cp-support.h: Ditto.
5201 * c-lang.c (c_language_defn): Change to add NULL
5202 for class_name_from_physname function pointer.
5203 (cplus_language_defn): Change to add cp_class_name_from_physname.
5204 * jv-lang.c (java_class_name_physname): New function.
5205 (java_find_last_component): New static routine.
5206 (java_language_defn): Add java_class_name_from_physname pointer.
5207 * ada-lang.c (ada_language_defn): Change to add NULL
5208 for class_name_from_physname function pointer.
5209 * f-lang.c (f_language_defn): Ditto.
5210 * m2-lang.c (m2_language_defn): Ditto.
5211 * objc-lang.c (objc_language_defn): Ditto.
5212 * p-lang.c (pascal_language_defn): Ditto.
5213 * scm-lang.c (scm_language_defn): Ditto.
5214
ee28ca0f
AC
52152004-07-06 Andrew Cagney <cagney@gnu.org>
5216
5217 Patch from Bart Robinson.
5218 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
5219 (O_LARGEFILE): Define to 0, if not defined.
5220
fdb1bf9d
MK
52212004-07-03 Mark Kettenis <kettenis@gnu.org>
5222
cb162ff6
MK
5223 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
5224 <machine/pcb.h> and "bsd-kvm.h".
5225 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
5226 (m68kbsd_supply_pcb): New function.
5227 (_initialize_m68kbsd_nat): New prototype and function.
5228 * Makefile.in (m68kbsd-nat.o): Update dependencies.
5229 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5230 (LOADLIBES): New variable.
5231 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
5232 (LOADLIBES): New variable.
5233
fdb1bf9d
MK
5234 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
5235
963c4174
MK
52362004-07-03 Mark Kettenis <kettenis@gnu.org>
5237
5238 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
5239 <sys/proc.h>.
5240 (bsd_kvm_cmdlist): New variable.
5241 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
5242 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
5243 command and "kvm proc" command.
5244 * Makefile.in (bsd-kvm.o): Update dependencies.
5245
533f1d8f
MK
52462004-07-02 Mark Kettenis <kettenis@gnu.org>
5247
5248 * osabi.c: Update copyright year.
5249 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
5250 notes if EI_OSABI is set to ELFOSABI_HPUX.
5251
6780dcde
MS
52522004-07-01 Michael Snyder <msnyder@redhat.com>
5253
5254 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
5255 that seems to have gotten whacked out of line.
5256
67bebe79
MK
52572004-07-01 Mark Kettenis <kettenis@gnu.org>
5258
5259 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
5260 code.
5261
0b5d8877
PH
52622004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
5263
5264 * ada-lang.c (decode_packed_array): Minor change to comment.
5265 (ada_value_slice_ptr): New function.
5266 (ada_value_slice): New function.
5267 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
5268 test. Don't know why it is there.
5269 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
5270 to avoid dereferencing huge arrays from which one is slicing.
5271 (empty_array): Correct to return an array rather than
5272 a subrange value.
5273 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
5274 on empty arrays (let'em use 'FIRST instead).
5275
19c1ef65
PH
52762004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
5277
5278 Address complaints from gdb_ari.sh:
5279
5280 * ada-exp.y: Include gdb_string.h rather than string.h.
5281 (convert_char_literal): Reformat declaration.
5282 * ada-lang.h: Include opaque struct declaration for struct frame_info.
5283 * ada-lex.l: Change use of free to xfree (the macro would do so
5284 anyway, but this is harmless).
5285 Include gdb_string.h rather than string.h.
5286 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
5287
5288 * ada-lang.c (parse): Remove K&Rism in parameter list.
5289 (is_name_suffix): Correct Linux => GNU/Linux in comment.
5290
d81cbc94
MK
52912004-06-30 Mark Kettenis <kettenis@gnu.org>
5292
5293 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
5294 dead code.
5295
07681759
MK
52962004-06-30 Mark Kettenis <kettenis@gnu.org>
5297
5298 * alphabsd-nat.c: Update copyright year.
5299 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
5300
f7948b5f
JB
53012004-06-29 Joel Brobecker <brobecker@gnat.com>
5302
6e0cdd28 5303 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
f7948b5f
JB
5304 (i386_cygwin_in_solib_call_trampoline): New function.
5305 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
5306 and skip_trampoline_code gdbarch methods.
5307
8f113c9a
JB
53082004-06-29 Jim Blandy <jimb@redhat.com>
5309
5310 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
5311 name actually used in the dependency lists.
5312
97dc871c
RC
53132004-06-29 Randolph Chung <tausq@debian.org>
5314
5315 * NEWS (New native configurations): Mention GNU/Linux/hppa.
5316
47216e51
CV
53172004-06-29 Corinna Vinschen <vinschen@redhat.com>
5318
5319 * win32-nat.c (child_pid_to_exec_file): New function.
6780dcde 5320 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
47216e51
CV
5321 functionality.
5322
e623b504
AC
53232004-06-28 Andrew Cagney <cagney@gnu.org>
5324
5325 * defs.h (xstrvprintf): Declare.
5326 * utils.c (xstrvprintf): New function.
5327 (internal_vproblem, xstrprintf, xasprintf)
5328 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
5329 * serial.c (serial_printf): Ditto.
5330 * complaints.c (vcomplaint): Ditto.
5331
79acc9b3
CV
53322004-06-29 Corinna Vinschen <vinschen@redhat.com>
5333
5334 * infcmd.c (attach_command): Move call to target_terminal_inferior
5335 behind loading symbol table.
5336
1daf35d9
AC
53372004-06-28 Andrew Cagney <cagney@gnu.org>
5338
5339 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
5340 change - add back extern deprecated_ui_loop_hook declaration.
5341
b435e160
AC
53422004-06-28 Andrew Cagney <cagney@gnu.org>
5343
5344 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
5345 xstrprintf.
5346 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
5347 (c_value_of_variable): Ditto.
5348 * utils.c (internal_vproblem): Ditto.
5349 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
5350 * remote.c (add_packet_config_cmd): Ditto.
5351 * remote-rdp.c (rdp_set_command_line): Ditto.
5352 * regcache.c (regcache_dump): Ditto.
5353 * frv-tdep.c (new_variant, new_variant): Ditto.
5354 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
5355 (fbsd_find_memory_regions): Ditto.
5356 * breakpoint.c (create_thread_event_breakpoint)
5357 (create_breakpoints): Ditto.
5358 * aix-thread.c (aix_thread_pid_to_str): Ditto.
5359 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
5360
06d5cf63
JB
53612004-06-28 Joel Brobecker <brobecker@gnat.com>
5362
5363 * ada-lang.c: Re-indent file, with some massaging to help indent
5364 a bit when the result is otherwise really too ugly.
5365
35809fad
UW
53662004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
5367
5368 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
5369 code_addr_p and special_addr_p to 'unsigned int'.
5370
40e20472
MK
53712004-06-27 Mark Kettenis <kettenis@gnu.org>
5372
5373 * i386v4-nat.c: Update copyright year and tweak comment.
5374 (regmap): Remove trailing comma.
5375 (supply_gregset): Rename local variable i to regnum. Call
5376 regcache_raw_supply instead of supply_register.
5377 (fill_gregset): Rename argument regno to regnum. Call
5378 regcache_raw_collect instead of regcache_collect.
5379
12b0b6de
UW
53802004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
5381
5382 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
5383 and special_addr_p.
5384 (frame_id_build, frame_id_build_special): Update comments.
5385 (frame_id_build_wild): New prototype.
5386 * frame.c (frame_id_build, frame_id_build_special): Fill in new
5387 struct frame_id fields.
5388 (frame_id_build_wild): New function.
5389 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
5390
47b42a3e
MK
53912004-06-27 Mark Kettenis <kettenis@gnu.org>
5392
5393 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
5394 hppabsd-tdep.c.
5395
1265e4aa
JB
53962004-06-27 Joel Brobecker <brobecker@gnat.com>
5397
5398 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
5399
76a01679
JB
54002004-06-27 Joel Brobecker <brobecker@gnat.com>
5401
5402 * ada-lang.c: Re-indent file.
5403
7aca490a
JB
54042004-06-27 Joel Brobecker <brobecker@gnat.com>
5405
5406 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
5407 (no_symtab_msg): Likewise.
5408
5e987968
AS
54092004-06-27 Andreas Schwab <schwab@suse.de>
5410
5411 * source.c: Fix whitespace.
5412
315c4276
MK
54132004-06-27 Mark Kettenis <kettenis@gnu.org>
5414
d15be926
MK
5415 * configure.in: Include <sys/param.h> for td_pcb test.
5416 * configure: Regenerated.
5417
9062529b
MK
5418 * i386nbsd-nat.c: New file.
5419 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
5420 i386obsd-nat.c and i386obsd-tdep.c.
5421 (i386nbsd-nat.o): New dependency.
5422 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
5423 bsd-kvm.o.
5424 (LOADLIBES): New variable.
5425 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
5426 bsd-kvm.o.
5427 (LOADLIBES): New variable.
5428
8010310e
MK
5429 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
5430 (LOADLIBES): New variable.
5431
efe1d7b9
MK
5432 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
5433 fetching from BSD_KVM_PADDR. Correctly lookup address for
5434 "_thread0".
5435
315c4276
MK
5436 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
5437 "bsd-kvm.h".
5438 (amd64fbsd_supply_pcb): New funcion.
5439 (_initialize_amd64fbsd_nat): Enable libkvm interface.
5440
399cfac6
DL
54412004-06-27 <david@streamline-computing.com>
5442
5443 Partial fix for PR cli/1056.
5444 * valarith.c: Check for zero in division and remainder
5445 evaluation.
5446
6235f9c8
MK
54472004-06-27 Mark Kettenis <kettenis@gnu.org>
5448
5449 * i387-tdep.c: Remove excessive whitespace.
5450
2726dafc
AC
54512004-06-26 Andrew Cagney <cagney@gnu.org>
5452
5453 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
5454 * gdb-events.h, gdb-events.c: Re-generate.
5455 * tui/tui-hooks.c (tui_install_hooks): Update.
5456 (tui_remove_hooks): Update.
5457 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
5458
0e56aeaf
MK
54592004-06-26 Mark Kettenis <kettenis@gnu.org>
5460
cb461069
MK
5461 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
5462 (gregset_t, fpregset_t): Remove typedefs.
5463 (REG_OFFSET): Rename argument.
5464 (amd64bsd_r_reg_offset): Rename from reg_offset.
5465 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
5466 Remove functions.
5467 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
5468 of reg_offset.
5469 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
5470
ecba89de
MK
5471 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
5472
4cd80476
MK
5473 * vax-tdep.c: Tweak comment.
5474
0e56aeaf
MK
5475 Add OpenBSD/hppa support.
5476 * NEWS (New native configurations): Mention OpenBSD/hppa.
5477 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
5478 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
5479 files.
5480 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
5481 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
5482 * configure.host: Add hppa*-*-openbsd*.
5483 * configure.tgt: Add hppa*-*-openbsd*.
5484
98bbd631
AC
54852004-06-25 Andrew Cagney <cagney@gnu.org>
5486
5487 * defs.h (deprecated_ui_loop_hook): Deprecated.
5488 * wince.c (child_wait): Update.
5489 * win32-nat.c (child_wait): Update.
5490 * v850ice.c (v850ice_wait): Update.
5491 * top.c (deprecated_ui_loop_hook): Update.
5492 * serial.h: Update.
5493 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
5494 (do_unix_readchar): Update.
5495 * ser-tcp.c (net_open): Update.
5496 * remote-sim.c (gdb_os_poll_quit): Update.
5497 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
5498
769d7dc4
AC
54992004-06-24 Andrew Cagney <cagney@gnu.org>
5500
5501 * defs.h (deprecated_pre_add_symbol_hook)
5502 (deprecated_post_add_symbol_hook): Deprecated.
5503 * symfile.c (symbol_file_add_with_addrs_or_offsets)
5504 (symbol_file_add_with_addrs_or_offsets): Update references.
5505
11c949aa
AC
55062004-06-24 Andrew Cagney <cagney@gnu.org>
5507
5508 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
5509 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
5510 * wince.c (ui_loop_hook): Delete extern declaration.
5511 * win32-nat.c (ui_loop_hook): Delete extern declaration..
5512 * v850ice.c (ui_loop_hook): Delete extern declaration..
5513 * ser-unix.c (ui_loop_hook): Delete extern declaration..
5514 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
5515 * remote-sim.c (ui_loop_hook): Delete extern declaration..
5516 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
5517 ui_loop_hook declaration.
5518
eedc19af
AC
55192004-06-24 Andrew Cagney <cagney@gnu.org>
5520
5521 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
5522 entry_func_highpc fields.
5523 * objfiles.c (init_entry_point_info): Do not clear
5524 entry_func_lowpc and entry_func_highpc.
5525 (objfile_relocate): Do not relocate entry_func_lowpc and
5526 entry_func_highpc.
5527 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
5528 entry_func_highpc.
5529 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
5530 entry_func_highpc.
5531 * blockframe.c (legacy_frame_chain_valid): Replace tests against
5532 entry_func_lowpc and entry_func_highpc with call to
5533 inside_entry_func.
5534
d47079be
MK
55352004-06-24 Mark Kettenis <kettenis@gnu.org>
5536
5537 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
5538 quad-precision floating point arguments in registers.
5539
2107e348
MK
55402004-06-24 Mark Kettenis <kettenis@gnu.org>
5541
5542 From Michael Mueller <m.mueller99@kay-mueller.de>:
5543 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
5544 account.
5545
46587c42
JJ
55462004-06-22 Jeff Johnston <jjohnstn@redhat.com>
5547
5548 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
5549 to -1.
5550 * breakpoint.c (bpstat_stop_status): Move check for ignoring
5551 untriggered watchpoints to a separate if clause. Update function
5552 comment regarding STOPPED_BY_WATCHPOINT argument.
5553
226f5cf4
JB
55542004-06-22 Jim Blandy <jimb@redhat.com>
5555
5556 * gdbarch.sh: Doc fix.
5557
f10683bb
MH
55582004-06-21 Martin Hunt <hunt@redhat.com>
5559 Kevin Buettner <kevinb@redhat.com>
5560
5561 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
5562 * mips-tdep.h (MIPS_SP_REGNUM): Define.
5563 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
5564 to set_gdbarch_sp_regnum(). Use cooked register number.
5565 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
5566
412d5987
AC
55672004-06-21 Andrew Cagney <cagney@gnu.org>
5568
5569 * gdbarch.sh: When the macro field is empty, do not generate a
5570 macro definition. When the macro field is "=", generate the macro
5571 name from the upper-case function name.
5572 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
5573 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
5574 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
5575 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
5576 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
5577 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
5578 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
5579 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
5580 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
5581 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
5582 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
5583 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
5584 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
5585 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
5586 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
5587 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
5588 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
5589 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
5590 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
5591 (DEPRECATED_USE_STRUCT_CONVENTION)
5592 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5593 (DEPRECATED_FRAME_INIT_SAVED_REGS)
5594 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
5595 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
5596 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
5597 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
5598 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
5599 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
5600 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
5601 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
5602 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
5603 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
5604 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
5605 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
5606 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
5607 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
5608 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
5609 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
5610
68908a3e
AC
56112004-06-21 Andrew Cagney <cagney@gnu.org>
5612
48f7351b
AC
5613 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
5614 macro name, and the function rather than macro value. Only wrap
5615 macro print statements in #ifdef. Move format logic to where it
5616 is needed.
5617 * gdbarch.c: Re-generate.
5618
283354d8
AC
5619 * gdbarch.sh (read): Delete "print_p" and "description", add
5620 "garbage_at_eol". Check for non-empty garbage at end-of-line.
5621 Delete references to print_p.
5622 (TARGET_ARCHITECTURE): Delete print predicate.
5623 * gdbarch.c: Re-generate.
5624
68908a3e
AC
5625 * gdbarch.sh: Check that multi-arch methods do not provide a
5626 macro.
5627 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
5628 (print_registers_info, print_float_info, print_vector_info)
5629 (adjust_breakpoint_address, remote_translate_xfer_address)
5630 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
5631 (address_class_type_flags_to_name, unwind_sp): Remove the macro
5632 name from the multi-arch definition.
5633
a2428dbe
AC
56342004-06-20 Andrew Cagney <cagney@gnu.org>
5635
5636 * gdbarch.sh: Sort by the function, instead of macro name.
5637 * gdbarch.c: Re-generate.
5638
750eb019
AC
56392004-06-20 Andrew Cagney <cagney@gnu.org>
5640
66d659b1
AC
5641 * gdbarch.sh: Use the function, instead of macro name in
5642 errors and the log file.
5643 (return_value): Remove stray ":" in spec.
5644
750eb019
AC
5645 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
5646 * gdbarch.h, gdbarch.c: Re-generate.
5647 * Makefile.in (arch-utils.o): Update dependencies.
5648 * values.c (using_struct_return): Move code calling
5649 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
5650 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
5651 to legacy_return_value, simplify.
5652 * infcmd.c (print_return_value): Move code calling
5653 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
5654 to legacy_return_value, simplify.
5655 * infcall.c (call_function_by_hand): Move code calling
5656 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
5657 * arch-utils.c: Update copyright. Include "gdbcore.h".
5658 (legacy_return_value): New function.
5659 * arch-utils.h: Update copyright.
5660 (legacy_return_value): Declare.
5661
b5622e8d
AC
56622004-06-20 Andrew Cagney <cagney@gnu.org>
5663
5664 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
5665 * gdbarch.h, gdbarch.c: Re-generate.
5666 * values.c (using_struct_return): Update call.
5667 * mcore-tdep.c: Update comment.
5668 * infcall.c (call_function_by_hand): Update comment.
5669 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5670 * arch-utils.h (always_use_struct_convention): Update.
5671 * v850-tdep.c (v850_gdbarch_init): Update.
5672 * sh64-tdep.c (sh64_gdbarch_init): Update.
5673 * sh-tdep.c (sh_gdbarch_init): Update.
5674 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5675 * mips-tdep.c (mips_gdbarch_init): Update.
5676 * mcore-tdep.c (mcore_gdbarch_init): Update.
5677 * m32r-tdep.c (m32r_gdbarch_init): Update.
5678 * ia64-tdep.c (ia64_gdbarch_init): Update.
5679 * h8300-tdep.c (h8300_gdbarch_init): Update.
5680 * frv-tdep.c (frv_gdbarch_init): Update.
5681 * cris-tdep.c (cris_gdbarch_init): Update.
5682 * arm-tdep.c (arm_gdbarch_init): Update.
5683 * alpha-tdep.c (alpha_gdbarch_init): Update.
5684
5191de37
MC
56852004-06-18 Michael Chastain <mec.gnu@mindspring.com>
5686
5687 * PROBLEMS: Add more specific information, and a work-around,
5688 for PR gdb/1458.
5689
782263ab
AC
56902004-06-18 Andrew Cagney <cagney@gnu.org>
5691
5692 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
5693 * gdbarch.h, gdbarch.c: Re-generate.
5694 * ada-lang.c (ada_finish_decode_line_1): Update.
5695 * infrun.c (handle_inferior_event): Update.
5696 * infcall.c (find_function_addr): Update.
5697 * linespec.c (minsym_found): Update.
5698 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
5699 Update.
5700 * blockframe.c (legacy_frameless_look_for_prologue): Update.
5701 * cli/cli-cmds.c (disassemble_command): Update.
5702 * vax-tdep.c (vax_gdbarch_init): Update.
5703
2f305df1
MK
57042004-06-18 Mark Kettenis <kettenis@gnu.org>
5705
5706 * i386-tdep.c (i386_collect_fpregset): Fix comment.
5707
e5fe55f7
AC
57082004-06-17 Andrew Cagney <cagney@gnu.org>
5709
5710 GDB 6.1.1 released from the GDB 6.1 branch.
5711 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
5712 * PROBLEMS: Ditto.
5713
473b7be6
DJ
57142004-06-16 Daniel Jacobowitz <dan@debian.org>
5715
5716 PR gdb/1658
5717 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
5718 operation as a uleb128. Found by Michael Coulter.
5719
96d887e8
PH
57202004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
5721
5722 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
5723 make it non-static.
5724 * ada-lang.h (task_control_block): declaration moved from ada-task.c
5725 to ada-lang.h; this is needed to be able to implement the kill command
5726 in multi-task mode.
5727 (task_ptid): Ditto.
5728 (task_entry): Ditto.
5729 (task_list): Ditto.
5730 (ada_build_task_list): Ditto.
5731
5732 * ada-lang.c: Conditionalize routines and data structures related
5733 to breakpoints, exceptions, completion, and symbol caching on
5734 GNAT_GDB, since these are not yet used in the submitted public sources.
5735 (ada_main_name): Editorial: Move definition out of exception-related
5736 code.
5737
31eef181
AC
57382004-06-15 Andrew Cagney <cagney@gnu.org>
5739
5740 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
5741 deprecated_pc_in_call_dummy.
5742
2c500098
AM
57432004-06-15 Alan Modra <amodra@bigpond.net.au>
5744
5745 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
5746 bfd_get_section_size_before_reloc or _raw_size.
5747 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
5748 * dwarf2read.c (dwarf2_locate_sections): Likewise.
5749 (dwarf2_read_section): Likewise.
5750 * elfread.c (elf_locate_sections): Likewise.
5751 * gcore.c (derive_heap_segment): Likewise.
5752 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
5753 * remote-e7000.c (e7000_load): Likewise.
5754 * remote-m32r-sdi.c (m32r_load): Likewise.
5755 * remote-mips.c (mips_load_srec): Likewise.
5756 (pmon_load_fast): Likewise.
5757 * remote.c (compare_sections_command): Likewise.
5758 * symfile.c (add_section_size_callback): Likewise.
5759 (load_section_callback): Likewise.
5760 (pc_in_unmapped_range): Likewise.
5761 (pc_in_mapped_range): Likewise.
5762 (sections_overlap): Likewise.
5763 (list_overlays_command): Likewise.
5764 (simple_overlay_update_1): Likewise.
5765 (simple_overlay_update): Likewise.
5766 * tracepoint.c (remote_set_transparent_ranges): Likewise.
5767 * win32-nat.c (core_section_load_dll_symbols): Likewise.
5768
90f943f1
RC
57692004-06-14 Randolph Chung <tausq@debian.org>
5770
5771 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
5772 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
5773 static.
5774 (hppa_hpux_inferior_created): New function.
5775 (hppa_hpux_init_abi): Register observer.
5776 * symfile.c (hp_cxx_exception_support_initialized)
5777 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
5778 (symbol_file_add_main_1, symbol_file_clear): Likewise.
5779
700c15aa
RC
57802004-06-14 Randolph Chung <tausq@debian.org>
5781
3973a7d3
AC
5782 * MAINTAINERS (Write After Approval): Alphabetize my entry
5783 correctly.
700c15aa 5784
cea4838c
AC
57852004-06-14 Andrew Cagney <cagney@gnu.org>
5786
5787 * MAINTAINERS (testsuite): List Michael Chastain as the lead
5788 testsuite maintainer.
5789
97092415
AC
57902004-06-13 Andrew Cagney <cagney@gnu.org>
5791
e8c3165b
AC
5792 * infcmd.c (print_return_value): Fix logic, allow
5793 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
5794
bceabdd8
AC
5795 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
5796 defining any macros.
5797 * gdbarch.h: Re-generate.
5798
57010b1c
AC
5799 * gdbarch.sh: Delete "level" attribute. Only check for a macro
5800 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
5801 * gdbarch.h: Re-generate.
5802
bc87dfa0
AC
5803 * values.c (generic_use_struct_convention): Don't check gcc_p.
5804
15ac804d
AC
5805 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
5806 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
5807 * gdbarch.h, gdbarch.c: Regenerate.
5808 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
5809 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
5810 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5811 deprecated_max_register_raw_size and
5812 deprecated_max_register_virtual_size.
5813 * v850-tdep.c (v850_gdbarch_init): Ditto.
5814 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
5815 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5816 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5817 * cris-tdep.c (cris_gdbarch_init): Ditto.
5818
97092415
AC
5819 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
5820 * gdbarch.h, gdbarch.c: Re-generate.
5821 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
5822 (m68hc11_use_struct_convention): Delete function.
5823 (m68hc11_extract_struct_value_address): Delete function.
5824 (m68hc11_return_value): New function.
5825 (m68hc11_gdbarch_init): Instead of store_return_value,
5826 extract_return_value, return_value_on_stack,
5827 deprecated_extract_struct_value_address and use_struct_convention,
5828 set return_value.
5829 * values.c (using_struct_return): Do not call
5830 RETURN_VALUE_ON_STACK.
5831 * arch-utils.h (generic_return_value_on_stack_not): Delete
5832 declaration.
5833 * arch-utils.c (generic_return_value_on_stack_not): Delete
5834 function.
5835
44e5158b
AC
58362004-06-12 Andrew Cagney <cagney@gnu.org>
5837
5838 * values.c (register_value_being_returned): Delete function.
5839 * infcmd.c (legacy_return_value): Delete function.
5840 * infcall.c (call_function_by_hand): Inline
5841 "register_value_being_returned", simplify.
5842 * values.c (using_struct_return): Update comment, refer to
5843 print_return_value instead of register_value_being_returned.
5844 * infcmd.c (print_return_value): Inline calls to
5845 register_value_being_returned and legacy_return_value. Simplify.
5846
b887c273
RC
58472004-06-11 Randolph Chung <tausq@debian.org>
5848
5849 * somread.c (som_symtab_read): Exclude gcc local symbols.
5850
1b2bfbb9
RC
58512004-06-11 Randolph Chung <tausq@debian.org>
5852
3973a7d3
AC
5853 * infrun.c (handle_inferior_event): Handle the case when a
5854 trampoline ends up in the runtime resolver, and if the trampoline
5855 has no name. Rearrange the code so that all the trampoline
5856 processing happens before other step-out-of-range handling.
1b2bfbb9 5857
a9d61c86
MH
58582004-06-11 Martin Hunt <hunt@redhat.com>
5859
5860 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
5861 has no fpu.
5862
2c87cf5a
AC
58632004-06-10 Andrew Cagney <cagney@gnu.org>
5864
5865 * blockframe.c (legacy_inside_entry_func): Delete.
5866 (legacy_frame_chain_valid): Inline call to
5867 legacy_inside_entry_func, simplify.
5868
0b67b468 58692004-06-10 Bob Rossi <bob@brasko.net>
57c22c6c
BR
5870
5871 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
3973a7d3
AC
5872 * dwarf2read.c (partial_die_info): Add dirname field.
5873 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
5874 (read_partial_die): Save away DW_AT_comp_dir.
5875 * defs.h (symtab_to_filename): Removed.
5876 * source.c (find_and_open_source): Added.
57c22c6c 5877 (open_source_file): Just calls find_and_open_source.
3973a7d3
AC
5878 (symtab_to_filename): Removed.
5879 (symtab_to_fullname, psymtab_to_fullname): Added.
57c22c6c
BR
5880 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
5881 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
5882 symtab_to_filename.
5883 * symtab.h (partial_symtab): Add dirname field.
5884 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
3973a7d3
AC
5885 (mi_cmd_file_list_exec_source_file): Call new function
5886 symtab_to_fullname to find fullname.
57c22c6c 5887 (mi_cmd_file_list_exec_source_files): Added.
3973a7d3 5888 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
57c22c6c
BR
5889 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
5890
9a1dd1ad
AC
58912004-06-10 Andrew Cagney <cagney@gnu.org>
5892
239ae8c7
AC
5893 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
5894 to generic_use_struct_convention, the default value.
5895
fc720350
AC
5896 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
5897 of abort.
5898
9a1dd1ad
AC
5899 * ns32k-tdep.c (ns32k_push_arguments): New function.
5900 (ns32k_gdbarch_init): Set deprecated_push_arguments.
5901 * infcall.c (call_function_by_hand): Call error instead of
5902 legacy_push_arguments.
5903 * value.h (legacy_push_arguments): Delete declaration.
5904 * valops.c (legacy_push_arguments): Delete function.
5905 (value_push): Delete function.
5906
fea25152
BF
59072004-06-10 Brian Ford <ford@vss.fsi.com>
5908
5909 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
5910 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
5911 info.
5912 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
5913
30a4a8e0
AC
59142004-06-10 Andrew Cagney <cagney@gnu.org>
5915
5916 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
5917 * gdbarch.h, gdbarch.c: Re-generate.
5918 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
5919 parameters.
5920 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
5921 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
5922 deprecated_pc_in_call_dummy instead of
5923 DEPRECATED_PC_IN_CALL_DUMMY.
5924 (arm_skip_prologue): Ditto.
5925 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
5926 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
5927 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
5928 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
5929 Ditto.
5930 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
5931 (sh64_init_extra_frame_info, sh64_get_saved_register)
5932 (sh64_pop_frame): Ditto.
5933 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
5934 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
5935 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
5936 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
5937 (h8300_pop_frame): Ditto.
5938 * blockframe.c (legacy_inside_entry_func)
5939 (legacy_frame_chain_valid): Ditto.
5940 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
5941 to deprecated_pc_in_call_dummy.
5942
81cfbe54
AC
59432004-06-09 Andrew Cagney <cagney@gnu.org>
5944
a1f4a1b6
AC
5945 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
5946 provide a default value.
5947 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
5948 * gdbarch.h, gdbarch.c: Re-generate.
5949 * arch-utils.c (generic_convert_register_p): Rename
5950 legacy_convert_register_p
5951 (legacy_register_to_value, legacy_value_to_register): Delete
5952 functions.
5953 * arch-utils.h (generic_convert_register_p): Rename
5954 legacy_convert_register_p.
5955 (legacy_register_to_value, legacy_value_to_register): Delete
5956 declarations.
5957
9730f241
AC
5958 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
5959 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
5960 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
5961 * gdbarch.h, gdbarch.c: Re-generate.
5962 * infcmd.c (default_print_registers_info): Simplify.
5963 * findvar.c (value_of_register): Simplify.
5964 * mi/mi-main.c (get_register): Simplify.
5965 * arch-utils.c (legacy_convert_register_p): Always return 0.
5966 (legacy_register_to_value, legacy_value_to_register): Always call
5967 internal_error.
5968
8a1bf479
AC
5969 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
5970 #ifdef CLEAR_INSN_CACHE code.
5971 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
5972 Delete #ifdef CLEAR_DEFERRED_STORES code.
5973
4b38d6f1
AC
5974 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
5975
2d62ecc7
AC
5976 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
5977 copyright.
5978 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
5979
be4f7469
AC
5980 * config/mips/mipsv4.mh: Delete file.
5981
81cfbe54
AC
5982 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
5983 unreferenced macro.
5984 (hpread_adjust_stack_address): Delete declaration.
5985
d966f0cb
AC
59862004-06-08 Andrew Cagney <cagney@gnu.org>
5987
5988 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
5989 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
5990 PTRACE_ATTACH / PTRACE_DETACH available call error.
5991 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
5992 * infttrace.c (update_thread_state_after_attach, attach, detach):
5993 Remove #ifdef wrappers.
5994 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
5995 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
5996 * config/nm-bsd.h (ATTACH_DETACH): Delete.
5997 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
5998 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
5999 * config/nm-linux.h (ATTACH_DETACH): Delete.
6000 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
6001 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
6002 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
6003 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
6004 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
6005
d91670b9
CV
60062004-06-08 Corinna Vinschen <vinschen@redhat.com>
6007
6008 * configure.in: Set $configdir to the right OS specific value.
6009 Use value when setting $tcldir and $tkdir.
6010 * configure: Regenerate.
6011
28ba0b33
PB
60122004-06-06 Paul Brook <paul@codesourcery.com>
6013
6014 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
6015 records.
6016
f26caa11
PH
60172004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
6018
6019 * ada-lang.c (lookup_symbol_in_language): New function to allow
6020 re-use of another language's symbol lookup code. (Placed here
6021 temporarily while Ada support is being integrated into the public
6022 tree).
6023 (restore_language): New auxiliary function for
6024 lookup_symbol_in_language.
6025 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
6026 temporarily while Ada support is being integrated into the public
6027 tree).
6028
d560a54b
AO
60292004-06-08 Alexandre Oliva <aoliva@redhat.com>
6030
e75d110c
AO
6031 * Makefile.in (check//%): New.
6032
d560a54b
AO
6033 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
6034 (mn10300_store_return_value): Rewrite.
6035 (mn10300_type_align): New.
6036 (mn10300_use_struct_convention): Rewrite.
6037 (mn10300_return_value): New, using all of the above.
6038 (mn10300_pop_frame_regular): Add saved_regs_size.
6039 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
6040
a72fbdb7
AO
6041 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
6042 regs if PC is on movm.
6043
01904826
JB
60442004-06-07 Jim Blandy <jimb@redhat.com>
6045
6046 Add native Linux support for the PowerPC E500.
6047 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
6048 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
6049 all architectures except the E500.
6050 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
6051 #definitions.
6052 (struct gdb_evrregset_t): New type.
6053 (have_ptrace_getsetevrregs): New variable.
6054 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
6055 fetch_spe_registers): New functions.
6056 (fetch_register): Call fetch_spe_register as appropriate.
6057 Assert that we're only passed raw register numbers.
6058 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
6059 Don't fetch gprs if they're pseudoregisters.
6060 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
6061 store_spe_registers): New functions.
6062 (store_register): Call store_spe_register as appropriate.
6063 Assert that we're only passed raw register numbers.
6064 (store_ppc_registers): Call store_spe_registers as appropriate.
6065 Don't store gprs if they're pseudoregisters.
6066
f90ef764
JJ
60672004-06-07 Jeff Johnston <jjohnstn@redhat.com>
6068
6069 * thread-db.c (thread_get_info_callback): Fill in the thread_info
6070 struct if one exists, even if we are dealing with a zombie thread.
6071
45b75230
AC
60722004-06-07 Andrew Cagney <cagney@gnu.org>
6073
6074 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
6075 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
6076 Rename PC_REQUIRES_RUN_BEFORE_USE.
6077 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
6078 #ifdef.
6079
1658da49
RC
60802004-06-07 Randolph Chung <tausq@debian.org>
6081
6082 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
6083 unwinding after sp has been saved to the stack but before the end
6084 of the prologue, and after the fp has been modified but before it has
6085 been saved to the stack.
6086 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
6087 Remove superfluous definitions.
6088 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
6089
9a727a3c
RC
60902004-06-07 Guy Martin <gmsoft@gentoo.org>
6091
6092 Committed by Randolph Chung.
6093 * hppa-linux-nat.c: Include the correct version of the header file
6094 depending on the kernel version.
6095
9e500012
RC
60962004-06-06 Randolph Chung <tausq@debian.org>
6097
6098 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
6099 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
6100
3388d7ff
RC
61012004-06-06 Randolph Chung <tausq@debian.org>
6102
6103 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
6104 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
6105 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
6106 * hppa-tdep.c (hppa_symbol_address): New function definition.
6107 * hppa-tdep.h (hppa_symbol_address): New function declaration.
6108
d49771ef
RC
61092004-06-06 Randolph Chung <tausq@debian.org>
6110
6111 * hppa-tdep.h (struct value): Forward declaration.
6112 (gdbarch_tdep): Define tdep find_global_pointer method.
6113 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
6114 associated with the function we are trying to call, and write it
6115 to the gp register.
6116 (hppa32_convert_from_funct_ptr_addr): New function.
6117 (hppa_find_global_pointer): New function.
6118 (hppa_gdbarch_init): Set default find_global_pointer method; set
6119 convert_from_func_ptr_addr method.
6120 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
6121 (hppa_linux_init_abi): Set find_global_pointer method.
6122 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
6123
7d9b040b
RC
61242004-06-06 Randolph Chung <tausq@debian.org>
6125
6126 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
6127 to struct value *function.
6128 * gdbarch.c: Regenerate.
6129 * gdbarch.h: Likewise.
6130 * infcall.c (call_function_by_hand): Pass entire function value
6131 to push_dummy_call.
6132
6133 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
6134 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
6135 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
6136 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
6137 * arm-tdep.c (arm_push_dummy_call): Likewise.
6138 * avr-tdep.c (avr_push_dummy_call): Likewise.
6139 * cris-tdep.c (cris_push_dummy_call): Likewise.
6140 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
6141 * frv-tdep.c (frv_push_dummy_call): Likewise.
6142 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
6143 * hppa-tdep.c (hppa32_push_dummy_call)
6144 (hppa64_push_dummy_call): Likewise.
6145 * i386-tdep.c (i386_push_dummy_call): Likewise.
6146 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
6147 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
6148 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
6149 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
6150 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
6151 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
6152 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
6153 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
6154 (ppc64_sysv_abi_push_dummy_call): Likewise.
6155 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
6156 (ppc64_sysv_abi_push_dummy_call): Likewise.
6157 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
6158 * s390-tdep.c (s390_push_dummy_call): Likewise.
6159 * sh-tdep.c (sh_push_dummy_call_fpu)
6160 (sh_push_dummy_call_nofpu): Likewise.
6161 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
6162 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
6163 * vax-tdep.c (vax_push_dummy_call): Likewise.
6164
4a19ea35
JB
61652004-06-04 Jim Blandy <jimb@redhat.com>
6166
8327ccee
JB
6167 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
6168 gdbarch argument to register_size.
6169
a3c001ce
JB
6170 * rs6000-tdep.c (rs6000_store_return_value): Use
6171 regcache_cooked_write_part instead of
6172 deprecated_write_register_bytes.
6173 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
6174 not gdbarch_deprecated_store_return_value.
6175
4a19ea35
JB
6176 * ppc-linux-nat.c (store_register, fetch_register): Remove
6177 incorrect assertions. Simplify and generalize handling of
6178 transfers whose sizes are not multiples of, or less than, sizeof
6179 (PTRACE_XFER_TYPE).
6180
b9b5d7ea
JJ
61812004-06-04 Jeff Johnston <jjohnstn@redhat.com>
6182
6183 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
6184 as a new thread event.
720c7d64 6185 * thread-db.c (thread_get_info_callback): If the thread is a
b9b5d7ea 6186 zombie, return TD_THR_ZOMBIE.
720c7d64 6187 (thread_from_lwp): If thread_get_info_callback returns
b9b5d7ea
JJ
6188 TD_THR_ZOMBIE, check if the thread is still on the thread list
6189 and return a -1 ptid if not found.
6190 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
6191 change the status to TARGET_WAITKIND_SPURIOUS.
6192
c8a3b559
CV
61932004-06-03 Corinna Vinschen <vinschen@redhat.com>
6194
6195 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
6196 double values in little endian mode.
6197
20605361
AC
61982004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
6199
6200 Committed by Andrew Cagney.
6201 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
6202 after last enum constant to avoid error from IBM C
6203 compiler.
6204
bc97b3ba
JB
62052004-06-02 Jim Blandy <jimb@redhat.com>
6206
6207 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
6208 to 'message', and make it local to the lone block that uses it.
6209
1da28ab0
JB
6210 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
6211
4c4b4cd2
PH
62122004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
6213
8a2225b2
PH
6214 * ada-exp.y: Update copyright notice.
6215 Include block.h.
6216
6217 Replace REGNAME, LAST, INTERNAL_VARIABLE with
6218 SPECIAL_VARIABLE and unify the treatment of these cases.
6219
6220 (write_attribute_call0): Remove.
6221 (write_attribute_call1): Remove.
6222 (write_attribute_calln): Remove.
6223 (save_qualifier): Add missing semicolon.
6224
6225 (simple_exp,exp): Decomment (i.e., reactivate) code that was
6226 temporarily disabled to allow compilation with FSF head version.
6227
6228 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
6229 use individual operators (OP_*) for all attributes.
6230 (exp syntax): Use write_int.
6231 Handle STRING literals with OP_STRING.
6232 (variable syntax): Add limit parameter to calls to
6233 write_object_renaming.
6234
6235 (temp_parse_space): New definition to hold entities that need
6236 only live until the next call to ada_parse.
6237 (string_to_operator): Rename fields of ada_opname_table entries.
6238
6239 (write_var_from_sym): Record block.
6240 (write_var_from_name): Minor reformatting.
6241 Make sure saved name is properly encoded in the case of multiple
6242 matches, and set its language to Ada.
6243 Update comment.
6244 Modify to indicate unresolved name as symbol in the UNRESOLVED
6245 namespace, allocated in temp_parse_space.
6246 (write_int): New function.
6247
6248 (write_object_renaming): Add max_depth parameter to limit
6249 chains of object renamings.
6250 Handle case where root of renaming expression is itself a renaming.
6251 Use temp_parse_space for temporary name buffer.
6252 Handle renamings to dereferenced pointers (___XEXA suffices).
6253
6254 (ada_parse, yyerror, string_to_operator,
6255 write_var_from_sym, write_var_from_name, write_attribute_call0,
6256 write_attribute_call1, write_attribute_calln,
6257 write_object_renaming): Protoize.
6258
6259 (_initialize_ada_exp): New function.
6260
6261 * ada-lang.c: Update copyright notice.
6262 General terminology change to conform to GNAT compiler usage:
6263 mangle => encode, demangle => decode
6264 Include gdb_obstack.h.
6265 Include gdb_regex.h
6266 Include frame.h
6267 Include hashtab.h
6268 Include completer.h
6269 Include gdb_stat.h
6270 Include block.h
6271 Include infcall.h
6272
6273 (ADA_RETAIN_DOTS): Make sure this is defined.
6274 (TRUNCATION_TOWARDS_ZERO): Define.
6275 (struct string_vector): Define.
6276 (unresolved_names): Remove definition.
6277 (xnew_string_vector): New function.
6278 (string_vector_append): New function.
6279 (extract_string): Make static.
6280 (ada_unqualified_name): New function.
6281 (add_angle_brackets): New function.
6282 (function_name_from_pc): New function.
6283 (place_on_stack): Rename to ensure_lval.
6284
6285 (ensure_lval): Renamed from place_on_stack.
6286 Make identity on lvals.
6287 Update comment.
6288 (is_nonfunction): New interface.
6289 Only symbols in LOC_CONST class can be enumerals.
6290 (fill_in_ada_prototype): Remove; now independent of language.
6291 (add_defn_to_vec): Add obstack and symtab arguments.
6292 Use obstack to hold collected definitions.
6293 (num_defns_collected): New function.
6294 (defns_collected): New function.
6295 (ada_resolve_subexp): Rename to resolve_subexp.
6296 (resolve_subexp): Renamed from ada_resolve_subexp.
6297 (ada_op_name): Return non-const result.
6298 (ada_decoded_op_name): Renamed from ada_op_name, now used for
6299 other purposes.
6300
6301 (to_fixed_array_type): Add declaration.
6302 (coerce_unspec_val_to_type): Remove offset parameter.
6303 (find_sal_from_funcs_and_line): New interface.
6304 (find_line_in_linetable): Ditto.
6305
6306 (all_sals_for_line): Rename to ada_sals_for_line and make
6307 global.
6308 Add new parameter. When set, do not ask the user to choose the
6309 instance, but use the first one found instead.
6310 Use given line number in returned sals.
6311 Fix comment.
6312 Skip the prologue if funfirstline is set.
6313 Correct for memory leak when 0 lines found.
6314
6315 (value_pos_atr): Use pos_atr.
6316 (pos_atr): New function.
6317 (standard_lookup): Add block parameter.
6318
6319 (makeTimeStart): Remove declaration and uses.
6320 (makeTimeStop): Remove declaration and uses.
6321
6322 (ada_completer_word_break_characters): Allow for VMS.
6323 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
6324 (raise_sym_name): New constant.
6325 (raise_unhandled_sym_name): New constant.
6326 (raise_assert_sym_name): New constant.
6327 (process_raise_exception_name): New constant.
6328 (longest_exception_template): New constant.
6329 (warning_limit): New variable to limit warnings during expression
6330 evaluation.
6331 (warnings_issued): New variable to keep track of warnings issued.
6332 (known_runtime_file_name_patterns): New constant.
6333 (known_auxiliary_function_name_patterns): New constant.
6334 (symbol_list_obstack): New variable.
6335
6336 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
6337 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
6338 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
6339 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
6340 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
6341 ada_variant_discrim_name, field_alignment, dynamic_template_type,
6342 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
6343 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
6344 and strcmp.
6345
6346 (ada_get_field_index): New function.
6347 (lim_warning): New function.
6348 (ada_translate_error_message): New function.
6349 (MAX_OF_SIZE): New function.
6350 (MIN_OF_SIZE): New function.
6351 (UMAX_OF_SIZE): New function.
6352 (UMIN_OF_SIZE): New function.
6353 (discrete_type_high_bound): New function.
6354 (discrete_type_low_bound): New function.
6355 (base_type): New function.
6356 (do_command): Remove.
6357
6358 (ada_update_initial_language): Use language_ada, not language_unknown.
6359 (ada_encode): Renamed from ada_mangle.
6360 Obey ADA_RETAIN_DOTS.
6361 (ada_decode): Renamed from ada_demangle.
6362 Update coding conventions.
6363 (decoded_names_store): New hash table.
6364 (ada_decode_symbol): New function.
6365 (ada_la_decode): New function.
6366
6367 (modify_general_field): Correct computations of offset and bit
6368 position.
6369 (desc_base_type): Handle ref types, too.
6370 (ada_is_direct_array_type): New function.
6371
6372 (ada_is_simple_array): Rename to ada_is_simple_array_type.
6373 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
6374 (ada_is_bogus_array_descriptor,ada_type_of_array,
6375 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
6376 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
6377 ada_is_array_descriptor_type.
6378
6379 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
6380 (ada_is_packed_array_type): Handle pointers or
6381 references to packed arrays as well.
6382 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
6383 (decode_packed_array_type): Search for the packed array type
6384 symbol in the currently selected block and associated
6385 superblocks too.
6386 Use lookup_symbol again.
6387
6388 (decode_packed_array): Handle pointers and references.
6389 Update call to coerce_unspec_val_to_type.
6390 (decode_packed_array_type,value_subscript_packed): Limit warnings.
6391 (ada_value_primitive_packed_val): Improve comment.
6392
6393 (ada_index_type): Substitute int type for "undefined".
6394 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
6395 ada_array_langth, ada_is_string_type): Use renamed
6396 ada_is_simple_array_type.
6397 (empty_array): New function.
6398
6399 (ada_resolve): Rename to resolve.
6400 (resolve): Make static.
6401 Call renamed resolve_subexp.
6402 Update comment.
6403 (ada_resolve_subexp): Rename to resolve_subexp.
6404 (resolve_subexp): Update comment.
6405 Decomment disabled code.
6406 Add LOC_COMPUTED* cases.
6407 Modify to use temporary struct symbols (marked as being in
6408 UNDEF_NAMESPACE) to indicate unresolved names, instead of
6409 OP_UNRESOLVED_VALUE.
6410 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
6411 Add OP_STRING case.
6412 Remove OP_ARRAY.
6413 Use SYMBOL_PRINT_NAME instead of ada_demangle.
6414 Use new ada_lookup_symbol_list interface.
6415 Use new ada_resolve_function interface.
6416 Remove OP_TYPE case.
6417
6418 (ada_args_match): Idiot proof against null actuals.
6419 Use intermediate variables to clarify.
6420 (ada_resolve_function): Update comment and interface.
6421 (mangled_ordered_before): Rename to encoded_ordered_before and
6422 update comment.
6423 (sort_choices): Update comment and interface.
6424 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
6425 (user_select_syms): New interface.
6426 Use new sort_choices interface.
6427 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
6428 (possible_user_operator_p): Idiot-proof against null values.
6429 (ada_simple_renamed_entity): Don't make cleanup; rely on
6430 caller to free result string.
6431 Remove const from return type.
6432 (make_array_descriptor): Rename uses of place_on_stack to
6433 ensure_lval.
6434 Make sure that arrays are on stack.
6435
6436 (HASH_SIZE): Define.
6437 (struct cache_entry): Define.
6438 (cache_space): Define.
6439 (cache): Define.
6440 (clear_ada_sym_cache): New function.
6441 (find_entry): New function.
6442 (lookup_cached_symbol): New function.
6443 (defn_vector_size): Define.
6444 (cache_symbol): New function.
6445 (defn_symbols): Remove.
6446
6447 (standard_lookup): Use lookup_symbol_in_language to get effect of
6448 C lookup.
6449 Cache results.
6450
6451 (symbol_completion_match): New function.
6452 (symbol_completion_add): New function.
6453 (ada_make_symbol_completion_list): New function.
6454
6455 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
6456 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
6457 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
6458 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
6459
6460 (ada_lookup_simple_minsym): New function.
6461 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
6462
6463 (add_symbols_from_enclosing_procs): New interface.
6464 Conditionalize more helpfully.
6465 Don't bother if program isn't running.
6466 Use new interface to get_frame_block.
6467 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
6468
6469 (remove_extra_symbols): New interface.
6470 (xget_renaming_scope): New function.
6471 (is_package_name): New function.
6472 (renaming_is_visible): New function.
6473 (remove_out_of_scope_renamings): New function.
6474
6475 (ada_lookup_symbol_list): New interface.
6476 Properly reinitialize the symbol list obstack.
6477 Don't call add_symbols_from_enclosing_procs if we start from a
6478 static or global block.
6479 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
6480 add_symbols_from_enclosing_procs.
6481 Add symtab data to cached entries.
6482 Handle symbols prefixed with
6483 "standard__" specially; strip prefix and don't look in local symbols.
6484 Do not include out of scope renaming symbols in list of
6485 symbols returned.
6486 Add const to block parameter.
6487 Move check for non-local, non-global symbols earlier.
6488 Remove timing stuff.
6489 (ada_lookup_symbol): New interface.
6490 Find symtab as well.
6491 (ada_lookup_symbol_nonlocal): New function.
6492
6493 (is_name_suffix): Enhance suffix detection to recognize
6494 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
6495 (is_dot_digits_suffix): New function.
6496 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
6497
6498 (ada_add_block_symbols): New interface. Use obstack to return results
6499 in a vector of struct ada_symbol_infos. Add symtab argument.
6500 Use new interface to add_defn_to_vec.
6501 Remove calls to fill_in_ada_prototype.
6502 Use BLOCK_BUCKETS, BLOCK_BUCKET.
6503
6504 (ada_finish_decode_line_1): Add const qualification to local to fix
6505 warning.
6506 Start looking in static block for functions to avoid attempts
6507 to search frame chain for up-level variables.
6508 Adapt to new ada_sals_for_line interface.
6509 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
6510 Handle quoting of the function name inside the spec string.
6511 Skip prologue when funfirstline is set and update the
6512 function documentation to that effect.
6513
6514 (debug_print_lines, debug_print_block, debug_print_blocks,
6515 debug_print_symtab): Remove.
6516
6517 (ada_main_name): New function.
6518 (ada_exception_breakpoint_type): New function.
6519 (is_known_support_routine): New function.
6520 (ada_find_printable_frame): Renamed from find_printable_frame and made
6521 global.
6522 Remove level parameter.
6523 Use new interface to select_frame.
6524
6525 (begin_command): Remove.
6526 (ada_adjust_exception_stop): New function.
6527 (ada_print_exception_stop): New function.
6528 (exception_name_from_cond): New function.
6529 (ada_report_exception_break): Replace disabled code with
6530 conditionalization on GNAT_GDB.
6531 Get the exception name from the condition string.
6532 Remove and move functionality into new functions
6533 ada_print_exception_breakpoint_task and
6534 ada_print_exception_breakpoint_nontask.
6535 (error_breakpoint_runtime_sym_not_found): New function.
6536 (is_runtime_sym_defined): New function.
6537 (ada_breakpoint_rewrite): Uncomment suppressed code.
6538 Use symbolic error-message and runtime-symbol names.
6539 Surround runtime symbol names in quotes.
6540 Allow non-specific breakpoints on exceptions and assertions before
6541 program starts.
6542
6543 (ada_is_tagged_type): Add parameter.
6544 (ada_is_tag_type): New function.
6545 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
6546 (ada_variant_discrim_type): Ditto.
6547 (value_tag_from_contents_and_address): New function.
6548 (type_from_tag): New function.
6549 (struct tag_args): New structure used to communicate with
6550 ada_tag_name_1.
6551 (ada_tag_name_1): New function.
6552 (ada_tag_name): New function.
6553
6554 (ada_scan_number): Update comment.
6555 (find_struct_field): New function.
6556 (ada_search_struct_field): Make static.
6557 (ada_value_struct_elt): New version that returns references when
6558 given pointers or references to structs.
6559 (ada_lookup_struct_elt_type): Add 'refok' parameter.
6560 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
6561 interface.
6562 (ada_value_ind): Use new ada_to_fixed_value interface.
6563 (ada_coerce_ref): Ditto.
6564 (field_offset): Remove.
6565
6566 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
6567 (ada_find_renaming_symbol): New function.
6568 (ada_prefer_type): Prefer named types over unnamed ones.
6569 (variant_field_index): New function.
6570 (contains_variant_part): Removed: subsumed by variant_field_index.
6571 (ada_template_to_fixed_record_type): New function, mostly from
6572 template_to_fixed_record_type.
6573 (template_to_fixed_record_type):
6574 Do not scan the type fields beyond the last one; prevents a
6575 potential SEGV.
6576 Handle case where variant field is listed BEFORE discriminant it
6577 depends on.
6578 Fix calculation of record length when bit length is
6579 not evenly divisible by char length.
6580 Move code to ada_template_to_fixed_record_type and call it.
6581
6582 (template_to_static_fixed_type): Revise comment.
6583 Modify to work on ordinary record types as well as templates,
6584 so as to handle fields that use ___XVE or ___XVU encodings.
6585 (to_record_with_fixed_variant_part): Fill out comment.
6586 Initialize C++ stuff in right type.
6587 Allow case where DVAL is null.
6588 Handle case where variant field is not last.
6589 Fix typo concerning record length.
6590 (to_fixed_record_type): Decomment disabled code.
6591 (to_fixed_record_type): Use variant_field_index instead of
6592 contains_variant_part.
6593 (to_fixed_variant_branch_type): Ditto.
6594 (to_fixed_array_type): Decomment disabled code.
6595 (ada_to_fixed_type): Convert tagged types to the specific type.
6596 Deactivate the size-check for array types in order to avoid
6597 some false size alarms.
6598 (to_static_fixed_type): Decomment disabled code.
6599 Modify to call template_to_static_fixed_type
6600 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
6601 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
6602 Remove valaddr argument, as it is never really used.
6603 (ada_to_fixed_value): Change interface to act on single struct value*
6604 operand.
6605 (adjust_pc_past_prologue): New function.
6606 (ada_attribute_name): Modify to take enum exp_opcode argument.
6607
6608 (ada_enum_name): Recognize new homonym-distinguishing convention.
6609 Adjust local variable's type to remove compiler warning.
6610 Fix a small problem in the part that unqualifies the enumeration name.
6611 (ada_value_binop): New function.
6612 (ada_value_equal): New function.
6613
6614 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
6615 Don't give error message when not doing normal evaluation
6616 and a tagged type doesn't seem to contain a structure member.
6617 Give error message for packed arrays.
6618 For indexing arrays, handle pointers to packed arrays correctly.
6619 Handle case of 'first and 'last attributes of bare integral type
6620 without encoded subtype info.
6621 Remove some unnecessary casts.
6622 Fix uninitialized value of type in computing 'first, 'last, or 'length
6623 of array object.
6624 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
6625 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
6626 calls.
6627 Attributes are now exp_opcode values.
6628 Correct treatment of 'modulus.
6629 Better error message for taking 'length of wrong kind of type;
6630 improve comment.
6631 Change EVAL_NORMAL to noside for consistency.
6632 Use ada_value_binop for DIV, MOD, REM.
6633 Make special case out of array of length 0, since an argument
6634 of 0 upsets some platforms' malloc.
6635 Use OP_STRING instead of OP_ARRAY.
6636 For slice, add check that we have an array type before extracting
6637 a slice out of it. Avoids a SEGV.
6638 When evaluating an array slice, if the array type is a reference to
6639 an aligner type, then replace the aligner type by the actual type.
6640 Decomment disabled code.
6641 Remove some dead code.
6642 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
6643 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
6644 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
6645 and UNOP_MBR to UNOP_IN_RANGE.
6646 If an array type has a parallel ___XVE type, then use it.
6647 Turn arrays into pointers for lvalue arrays.
6648 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
6649 bounds error and handle 0-length slices.
6650 Use lim_warning.
6651 When selecting fields, apply ada_to_fixed_value (because the fields
6652 might have ___XVU or ___XVE encodings even if not dynamic.)
6653 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
6654 (ada_is_system_address_type): New function.
6655
6656 (get_var_value): Use new interface to ada_lookup_symbol_list.
6657 (get_int_var_value): New interface.
6658 (to_fixed_range_type): Allow unknown bound, with warning.
6659 (ada_is_modular_type): Decomment disabled code.
6660 (ADA_OPERATORS): New definition.
6661 (ada_operator_length): New function.
6662 (ada_expr_op_name): New function.
6663 (ada_forward_operator_length): New function.
6664 (ada_dump_subexp_body): New function.
6665 (ada_print_subexp): New function.
6666 (ada_exp_descriptor): New constant.
6667 (ada_op_print_tab): Add 'size. Remove FIXMEs.
6668 (ada_language_defn): Add ada_exp_descriptor entry.
6669 Change ada_parse => parse.
6670 Add post-parser entry.
6671 Use ada-specific non-local symbol lookup.
6672 Don't use C-style arrays.
6673 String lower-bound is 1.
6674 Decomment disabled code.
6675 (parse): New function.
6676 New fields ada_translate_error_message, ada_lookup_symbol,
6677 ada_lookup_minimal_symbol.
6678
6679 * ada-lang.h: Update copyright dates.
6680 Replace the mangle/demangle terminology throughout by the
6681 more appropriate encode/decode one.
6682 Include breakpoint.h.
6683 Forward declare struct partial_symbol, struct block.
6684 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
6685 (EXTRACT_ADDRESS): Remove.
6686 (EXTRACT_INT): Remove.
6687 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
6688 (MAX_ENCLOSING_FRAME_LEVELS): Define.
6689 (MAX_RENAMING_CHAIN_LENGTH): Define.
6690 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
6691
6692 (enum task_states): Remove.
6693 ada_task_states: Remove.
6694 (fat_string): Remove.
6695 (struct entry_call): Remove.
6696 (struct task_fields): Remove.
6697 (struct task_entry): Remove.
6698
6699 (struct ada_symbol_info): Define.
6700 (enum ada_attribute): Remove.
6701 (enum ada_operator): Define.
6702
6703 (ada_get_field_index): Declare.
6704 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
6705 (ada_is_simple_array): Rename to ada_is_simple_array_type.
6706 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
6707 (ada_lookup_symbol_list): New interface.
6708 (ada_decode_symbol): Declare.
6709 (ada_decode): Declare.
6710 (ada_lookup_symbol): New interface.
6711 (ada_update_initial_language): Declare.
6712 (ada_lookup_simple_minsym): Declare.
6713 (user_select_syms): New interface.
6714 (ada_sals_for_line): Declare.
6715 (ada_is_tagged_type): New interface.
6716 (ada_tag_name): Declare.
6717 (ada_lookup_struct_elt_type): Remove declaration.
6718 (ada_search_struct_field): Remove declaration.
6719 (ada_attribute_name): New interface.
6720 (ada_is_system_address_type): Declare.
6721 (ada_to_fixed_value): Remove declaration.
6722 (ada_template_to_fixed_record_type_1): Declare.
6723 (get_int_var_value): New interface.
6724 (ada_find_any_symbol): Declare.
6725 (ada_find_renaming_symbol): Declare.
6726 (ada_mangle): Rename to ada_encode.
6727 (ada_simple_renamed_entity): Remove const.
6728 (ada_main_name): Declare.
6729 (get_current_task): Rename to ada_get_current_task.
6730 (get_entry_number): Remove declaration.
6731 (ada_report_exception_break): Remove declaration.
6732 (ada_print_exception_breakpoint_nontask): Declare.
6733 (ada_print_exception_breakpoint_task): Declare.
6734 (ada_find_printable_frame): Declare.
6735
6736 * ada-lex.l: Update copyright notices.
6737 Use xmalloc and xfree instead of malloc and free.
6738 Use new interface to name_lookup.
6739 Use new interface to
6740 ada_mangle=>ada_encode.
6741 Redo handling of '$...' variable to parallel current treatment
6742 in c-exp.y.
6743 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
6744 digit_to_int, strtoulst, processInt, processReal, processId,
6745 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
6746 yywrap): Protoize.
6747
6748 (processInt): Use cast to remove harmless warning.
6749 (processReal): Modify to get rid of compiler warning on scan formats.
6750
6751 (processId): Replace xmalloc with obstack_alloc for name and remove
6752 call to ada_name_string_cleanup.
6753 Remove obsolete disabled code.
6754 (name_lookup): Ditto.
6755 New interface.
6756 Use obsavestring on temp_parse_space instead of savestring
6757 on name, and remove call to ada_name_string_cleanup.
6758 Free string returned from ada_simple_renamed_entity.
6759 Use new interface to ada_lookup_symbol_list.
6760 Decomment disabled code.
6761 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
6762 not types.
6763 When a type name lookup succeeds as a result of
6764 lookup_primitive_typename, check for regular type entry that has not
6765 yet been read in.
6766 Limit length of chain of renamed symbols we are willing to follow.
6767 Do not break names beginning with "standard__" into segments.
6768 (block_lookup): Use new interface to ada_lookup_symbol_list.
6769
6770 * ada-typeprint.c: Update copyright notice.
6771 (demangled_type_name): Rename to decoded_type_name.
6772 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
6773 (print_range_bound): Correct handling of negative
6774 bounds that make the index type looked unsigned under STABS.
6775 (print_dynamic_range_bound): Use new interface to get_int_var_value.
6776 (print_range_type_named): Use the builtin int type if no type
6777 corresponding to the given type name could be found.
6778 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
6779 Add some bullet-proofing.
6780 (print_variant_clauses): Allow for variant branches with ___XVU
6781 encodings that are not dynamic fields.
6782 Use new interface to ada_is_tagged_type.
6783 (print_record_type): Allow for fields with ___XVE encodings that
6784 are not dynamic fields.
6785 Use new interface to ada_is_tagged_type.
6786 (ada_print_type): ada_is_array_descriptor =>
6787 ada_is_array_descriptor_type.
6788
6789 * ada-valprint.c: Update copyright notice.
6790 Include gdb_string.h
6791 Include infcall.h
6792 (ui_memcpy): New function.
6793 (ada_print_floating): New function.
6794 (ada_print_str): Order arguments correctly.
6795 Correct handling of empty arrays and arrays of 0-length items.
6796 ada_is_array_descriptor => ada_is_array_descriptor_type
6797 Print values of type System.Address in hexadecimal format.
6798 Use ada_print_floating to print floating-point numbers in Ada format.
6799 Print class tag values with type names.
6800 No longer print the address of reference values. Avoids
6801 a potential confusion.
6802 (ada_value_print): Stop printing the object type for reference
6803 values, but preserve that behavior for access types. Avoids
6804 a potential confusion.
6805 Simplify one conditional expression, as the first part is now
6806 necessarily true.
6807 ada_is_array_descriptor => ada_is_array_descriptor_type
6808 Add check for arrays for null records, and print them by hand.
4c4b4cd2 6809
f65f91b5
JB
68102004-06-01 Jim Blandy <jimb@redhat.com>
6811
6812 * ppc-tdep.h: Delete unused 'regoff' member.
6813 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
6814
d4687fa0
MC
68152004-06-01 Michael Chastain <mec.gnu@mindspring.com>
6816
6817 Fix PR symtab/1661.
6818 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
6819 (hpread_read_struct_type): Likewise.
6820
de169ec9
AC
68212004-06-01 Andrew Cagney <cagney@gnu.org>
6822
c6902d46
AC
6823 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
6824 instead of xasprintf.
6825 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
6826 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
6827 (mi_cmd_data_list_register_names)
6828 (mi_cmd_data_list_changed_registers)
6829 (mi_cmd_data_list_register_values)
6830 (get_register, mi_cmd_data_write_register_values)
6831 (mi_cmd_data_write_register_values)
6832 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
6833 (mi_cmd_target_download, mi_cmd_target_select)
6834 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
6835 (mi_execute_cli_command, mi_execute_async_cli_command)
6836 (mi_execute_async_cli_command): Ditto.
6837 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
6838 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
6839
6085fc2d
AC
6840 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
6841 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
6842 error_last_message instead of mi_error_last_message.
6843 * mi/mi-main.c (mi_error_last_message): Delete function.
6844
de169ec9
AC
6845 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
6846 "invalid number of columns" error. Delete redundant "out of
6847 memory" check.
6848
1fc7d519
MK
68492004-05-31 Mark Kettenis <kettenis@gnu.org>
6850
6cfb2041
MK
6851 * i386bsd-nat.c: Don't include <sys/procfs.h>.
6852 (gregset_t, fpregset_t): Remove typedefs.
6853 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
6854 (REG_OFFSET): Rename argument.
6855 (i386bsd_r_reg_offset): Rename from reg_offset.
6856 (REG_ADDR): Remove macro.
6857 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
6858 functions.
6859 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
6860 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
6861 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
6862 instead of supply_gregset.
6863 (store_inferior_registers): Use `struct reg' and `struct fpreg'
6864 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
6865 instead of fill_gregset.
6866 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
6867
1fc7d519
MK
6868 * i386bsd-nat.c: Don't include "gregset.h".
6869 (supply_gregset, fill_gregset): Make static.
6870 (supply_fpregset, fill_fpregset): Remove.
6871 * Makefile.in (i386bsd-nat.o): Update dependencies.
6872
2c34abbe
MK
68732004-05-30 Mark Kettenis <kettenis@gnu.org>
6874
448724fb
MK
6875 * fbsd-proc.c: Include "regcache.h", "regset.h" and
6876 "gdb_assert.h". Con't include "gregset.h".
6877 (fbsd_make_corefile_notes): Use regset-based core file support
6878 instead off fill_gregset and fill_fpregset.
6879 * Makefile.in (fbsd-proc.o): Update dependencies.
6880
5ca8ca7c
MK
6881 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
6882 instructions.
6883 (m88k_frame_prev_register): Simplify code a bit.
6884
593adc23
MK
6885 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
6886 (amd64_collect_fpregset): New function.
6887 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
6888
8d1b517b
MK
6889 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
6890
7fdafb5a
MK
6891 * i386-tdep.c (i386_supply_gregset): Adjust comment.
6892 (i386_collect_gregset): New function.
6893 (i386_supply_fpregset): Adjust comment.
6894 (i386_collect_fpregset): New function.
6895 (i386_regset_from_core_section): Use i386_collect_gregset and
6896 i386_collect_fpregset.
6897
8693c419
MK
6898 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
6899 handle VALUEP being null.
6900
2c34abbe
MK
6901 * regset.h (collect_regset_ftype): Unconstify fourth argument.
6902
45d134d8
MK
69032004-05-29 Mark Kettenis <kettenis@gnu.org>
6904
1698f4e7
MK
6905 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
6906
45d134d8
MK
6907 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
6908 assembler in OpenBSD 3.5-current.
6909 (amd64obsd_sigcontext_addr): Likewise.
6910
691d145a
JB
69112004-05-28 Jim Blandy <jimb@redhat.com>
6912
6913 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
6914 register set, so our regcache isn't declared "legacy" and our E500
6915 pseudoregister read and write functions aren't ignored.
6916 (rs6000_register_byte, rs6000_register_raw_size,
6917 rs6000_register_virtual_type, rs6000_register_convertible,
6918 rs6000_register_convert_to_virtual,
6919 rs6000_register_convert_to_raw): Deleted.
6920 (rs6000_register_type, rs6000_convert_register_p,
6921 rs6000_register_to_value, rs6000_value_to_register): New
6922 functions.
6923 (rs6000_gdbarch_init): Don't register
6924 gdbarch_deprecated_register_size,
6925 gdbarch_deprecated_register_bytes,
6926 gdbarch_deprecated_register_byte,
6927 gdbarch_deprecated_register_raw_size,
6928 gdbarch_deprecated_register_virtual_type,
6929 gdbarch_deprecated_register_convertible,
6930 gdbarch_deprecated_register_convert_to_virtual, or
6931 gdbarch_deprecated_register_convert_to_raw methods. Instead,
6932 register gdbarch_register_type, gdbarch_convert_register_p,
6933 gdbarch_register_to_value, and gdbarch_value_to_register methods.
6934
18ed0c4e
JB
69352004-05-26 Jim Blandy <jimb@redhat.com>
6936
6937 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
6938 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
6939 functions, updated to match the register numberings used in GCC.
6940 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
6941 rs6000_dwarf2_reg_to_regnum as register number conversions
6942 functions for STABS and Dwarf2.
6943
779af9e3
RC
69442004-05-26 Randolph Chung <tausq@debian.org>
6945
6946 * infttrace.h (target_waitkind): Forward declare type instead of pulling
6947 in header file.
6948
c23968a2
JB
69492004-05-25 Joel Brobecker <brobecker@gnat.com>
6950
6951 * NEWS: Document new "start" command.
6952
3a7d1c27
RC
69532004-05-25 Randolph Chung <tausq@debian.org>
6954
6955 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
6956 hppa-linux.
6957
43613416
RC
69582004-05-25 Randolph Chung <tausq@debian.org>
6959
6960 * hppa-hpux-tdep.c (offsetof): Define.
6961 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
6962 (hppa32_hpux_frame_base_before_sigtramp)
6963 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
6964 (hppa64_hpux_frame_saved_pc_in_sigtramp)
6965 (hppa64_hpux_frame_base_before_sigtramp)
6966 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
6967 functions.
6968 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
6969 (hppa_hpux_sigtramp_frame_unwind_cache)
6970 (hppa_hpux_sigtramp_frame_this_id)
6971 (hppa_hpux_sigtramp_frame_prev_register)
6972 (hppa_hpux_sigtramp_frame_unwind)
6973 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
6974 (hppa_hpux_init_abi): Register sigtramp unwinder.
6975 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
6976
6d1be3f1
RC
69772004-05-25 Randolph Chung <tausq@debian.org>
6978
6979 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
6980 and multiple stack unwinds.
6981 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
6982
97c34f65
AC
69832004-05-25 Andrew Cagney <cagney@gnu.org>
6984
6985 * symfile.h (symbol_file_add_from_memory): Delete declaration.
6986 * symfile-mem.h: Delete file.
6987 * symfile-mem.c: Do not include "symfile-mem.h".
6988 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
6989 "struct bfd_section". When an error do not bother returning NULL.
6990 (add_symbol_file_from_memory_command): Use "struct bfd" and
6991 "struct bfd_section".
6992 * Makefile.in (symfile_mem_h): Delete.
6993 (symfile-mem.o): Update dependencies.
6994
e23cbd82
NR
69952004-05-25 Nick Roberts <nickrob@gnu.org>
6996
6997 * gdb-mi.el: New file.
6998
20d2ca3e
AC
69992004-05-25 Andrew Cagney <cagney@gnu.org>
7000
7001 * inftarg.c: Include "observer.h".
7002 (child_attach, child_create_inferior): Notify inferior_created.
7003 * corelow.c: Include "observer.h".
7004 (core_open): Notify inferior_created.
7005 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
7006
c27cda74
AC
70072004-05-25 Andrew Cagney <cagney@gnu.org>
7008
7009 * target.h (struct target_ops): Add from_tty to
7010 to_create_inferior.
7011 (target_create_inferior, find_default_create_inferior): Update.
7012 * infcmd.c (run_command): Update.
7013 * wince.c (child_create_inferior): Update.
7014 * win32-nat.c (child_create_inferior): Update.
7015 * uw-thread.c (uw_thread_create_inferior): Update.
7016 * thread-db.c (thread_db_create_inferior): Update.
7017 * target.c (debug_to_create_inferior)
7018 (find_default_create_inferior): Update.
7019 (maybe_kill_then_create_inferior): Update.
7020 * sol-thread.c (sol_thread_create_inferior): Update.
7021 * remote.c (extended_remote_async_create_inferior)
7022 (extended_remote_create_inferior): Update.
7023 * remote-vx.c (vx_create_inferior): Update.
7024 * remote-st.c (st2000_create_inferior): Update.
7025 * remote-sim.c (gdbsim_create_inferior): Update.
7026 * remote-sds.c (sds_create_inferior): Update.
7027 * remote-rdp.c (remote_rdp_create_inferior): Update.
7028 * remote-rdi.c (arm_rdi_create_inferior): Update.
7029 * remote-m32r-sdi.c (m32r_create_inferior): Update.
7030 * remote-e7000.c (e7000_create_inferior): Update.
7031 * procfs.c (procfs_create_inferior): Update.
7032 * ocd.c (ocd_create_inferior): Update.
7033 * ocd.h (ocd_create_inferior): Update.
7034 * nto-procfs.c (procfs_create_inferior): Update.
7035 * monitor.c (monitor_create_inferior): Update.
7036 * lin-lwp.c (lin_lwp_create_inferior): Update.
7037 * inftarg.c (child_create_inferior): Update.
7038 * hpux-thread.c (hpux_thread_create_inferior): Update.
7039 * gnu-nat.c (gnu_create_inferior): Update.
7040
1db2a798
AC
70412004-05-25 Andrew Cagney <cagney@gnu.com>
7042
7043 * MAINTAINERS: Update e-mail address.
7044
007d08bb
RC
70452004-05-24 Randolph Chung <tausq@debian.org>
7046
7047 * thread.c (info_threads_command, thread_apply_all_command)
7048 (thread_apply_command, thread_command, do_captured_thread_select):
7049 Remove HPUXHPPA-specific code.
7050
69e7b95e
RC
70512004-05-24 Randolph Chung <tausq@debian.org>
7052
7053 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
7054 unused symbols.
7055 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
7056 references.
7057
a4d5f2e0
JB
70582004-05-24 Joel Brobecker <brobecker@gnat.com>
7059
7060 * infcmd.c (kill_if_already_running): New function, extracted
7061 from run_command().
7062 (run_command): Replace extracted code by call to
7063 kill_if_already_running().
7064 (start_command): New function.
7065 (_initialize_infcmd): Add "start" command.
7066
bf2ca189
MK
70672004-05-24 Mark Kettenis <kettenis@gnu.org>
7068
7069 Add OpenBSD/m88k support.
7070 * NEWS (New native configurations): Mention OpenBSD/m88k.
7071 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
7072 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
7073 * Makefile.in (m88k_tdep_h): New variable.
7074 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
7075 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
7076 * configure.host: Add m88*-*-openbsd*.
7077 * configure.tgt: Add m88*-*-openbsd*.
7078
80fadb11
JB
70792004-05-24 Jim Blandy <jimb@redhat.com>
7080
7081 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
7082 to approve changes.
7083
19e2d14b
KB
70842004-05-24 Kevin Buettner <kevinb@redhat.com>
7085
7086 * symtab.c (fixup_section): Search section table when lookup by
7087 name fails.
7088
1b07b470
RC
70892004-05-24 Randolph Chung <tausq@debian.org>
7090
7091 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
7092 be "small_struct".
7093
368702b1
MK
70942004-05-24 Mark Kettenis <kettenis@gnu.org>
7095
5df97fde
MK
7096 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
7097 register number in regcache_raw_collect call.
7098 (m68kbsd_collect_fpregset): Likewise.
7099 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
7100
368702b1
MK
7101 * regset.h (struct regset): Add back `regset' member.
7102
a770d4ec
MK
71032004-05-23 Mark Kettenis <kettenis@gnu.org>
7104
70f9f479
MK
7105 * configure.in: Check for td_pcb in `struct thread'.
7106 * configure, config.in: Regenerated.
7107
2e16d79e
MK
7108 * dpx2-nat.c: Remove file.
7109 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
7110 (dpx2-nat.o): Remove dependencies.
7111
492cf391
MK
7112 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
7113 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
7114 (amd64obsd_supply_pcb): New function.
7115 (_initialize_amd64obsd_nat): Enable libkvm interface.
7116 * Makefile.in (amd64obsd-nat.o): Update dependencies.
7117 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
7118 (LOADLIBES): New variable.
7119
a770d4ec
MK
7120 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
7121 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
7122 (sparc32nbsd_supply_pcb): New function.
7123 (_initialize_sparcnbsd_nat): Enable libkvm interface.
7124 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
7125 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
7126 (LOADLIBES): New variable.
7127
9ea75c57
MK
71282004-05-22 Mark Kettenis <kettenis@gnu.org>
7129
2e0c3539
MK
7130 * bsd-kvm.c, bsd-kvm.h: New files.
7131 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
7132 "bsd-kvm.h".
7133 (i386fbsd_supply_pcb): New function.
7134 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
7135 (i386fbsd-nat.o): Update dependencies.
7136 (bsd_kvm_h): New variable.
7137 (bsd-kvm.o): New dependency.
7138 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
7139 (LOADLIBES): New variable.
7140
9ea75c57
MK
7141 * regset.c: Tweak comment.
7142 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
7143 macro.
7144 * regset.h: Update copyright year.
7145 (struct regset): Remove `descr' member, add `gdbarch' member.
7146 (regset_alloc): Adjust prototype and comment.
7147 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
7148 (i386_supply_fpregset): Likewise.
7149 (i386_regset_from_core_section): Update call to regset_alloc.
7150 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
7151 REGSET->arch.
7152 (i386obsd_aout_regset_from_core_section): Update call to
7153 regset_alloc.
7154 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
7155 REGSET->arch.
7156 (i386nbsd_aout_regset_from_core_section): Update call to
7157 regset_alloc.
7158 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
7159 REGSET->arch.
7160 (amd64_regset_from_core_section): Update call to regset_alloc.
7161 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
7162 REGSET->arch.
7163 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
7164 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
7165 &sparc32nbsd_gregset in sparc32_supply_gregset call.
7166 (sparc32nbsd_init_abi): Update call to regset_alloc.
7167 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
7168 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
7169 (sparc64obsd_init_abi): Update call to regset_alloc.
7170 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
7171 &sparc64nbsd_gregset in sparc64_supply_gregset call.
7172 (sparc64nbsd_init_abi): Update call to regset_alloc.
7173 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
7174 &sparc64fbsd_gregset in sparc64_supply_gregset call.
7175 (sparc64fbsd_init_abi): Update call to regset_alloc.
7176
867e2dc5
JB
71772004-05-22 Jim Blandy <jimb@redhat.com>
7178
7179 * ppc-tdep.h (spe_register_p): New declaration.
7180 (struct gdbarch_tdep): New members: ppc_acc_regnum and
7181 ppc_spefscr_regnum.
7182 * rs6000-tdep.c (spe_register_p): New function.
7183 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
7184 spefscr.
7185 (rs6000_gdbarch_init): Initialize the new members of the tdep
7186 structure.
7187
617a4cba
JB
71882004-05-21 Jim Blandy <jimb@redhat.com>
7189
0397dee1
JB
7190 * ppc-linux-nat.c (fetch_register): Move code back to be next
7191 to the comment that describes it. (Moved code, instead of
7192 comment, for symmetry with store_register.)
7193
617a4cba
JB
7194 Allocate regset structures in the gdbarch's obstack, not using
7195 xmalloc.
7196 * regset.c (regset_alloc): Renamed from regset_xmalloc.
7197 Add 'arch' argument. Allocate the regset on arch's obstack, not
7198 using xmalloc.
7199 * regset.h (regset_alloc): Update declaration.
7200 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
7201 gdbarch argument.
7202 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7203 * i386-tdep.c (i386_regset_from_core_section): Same.
7204 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7205 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7206 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7207 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7208 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7209 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7210
9aa3914d
JB
72112004-05-21 Joel Brobecker <brobecker@gnat.com>
7212
7213 * config/djgpp/fnchange.lst: Undo previous change, was useless.
7214
99c87dab
JB
72152004-05-21 Jim Blandy <jimb@redhat.com>
7216
7217 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
7218 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
7219
c2b6b4aa
JB
72202004-05-20 Jim Blandy <jimb@redhat.com>
7221
7222 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
7223
144529d0
MK
72242004-05-20 Mark Kettenis <kettenis@gnu.org>
7225
7226 * regset.h: Make prototype const-correct.
7227 * regset.c (regset_xmalloc): Make const-correct.
7228
4725b721
PH
72292004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
7230
7231 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
7232 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
7233 (symbol_search_name): Declare.
7234
7235 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
7236 (iter_name_next_hashed): Ditto.
7237 (iter_name_next_linear): Ditto.
7238 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
7239
7240 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
7241 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
7242 (symbol_search_name): New function.
7243
7244 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
7245
7246 * minsyms.c (build_minimal_symbol_hash_tables): Change
7247 test for adding to demangled hash table to check for difference
7248 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
7249
be07a590
JB
72502004-05-19 Jim Blandy <jimb@redhat.com>
7251
7252 Use a constructor function to create regset structures.
7253 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
7254 (struct regset): Use supply_regset_ftype. Add new
7255 'collect_regset' member.
7256 (regset_xmalloc): New declaration.
7257 * regset.c: New file.
7258 * am64-tdep.c (amd64_regset_from_core_section): Use
7259 regset_xmalloc to construct regset structures.
7260 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7261 * i386-tdep.c (i386_regset_from_core_section): Same.
7262 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7263 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7264 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7265 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7266 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7267 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7268 * Makefile.in (COMMON_OBS): Add regset.o.
7269 (regset.o): New rule.
7270
604368f5
JB
72712004-05-19 Joel Brobecker <brobecker@gnat.com>
7272
7273 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
7274 and pthread_cond_wait.c.
7275
82d69f8b
JB
72762004-05-18 Jim Blandy <jimb@redhat.com>
7277
7278 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
7279 before the mach-specific switch, and then let the individual cases
7280 override the defaults, rather than leaving them uninitialized
7281 until the switch and then setting them in each case.
7282
5859efe5
RC
72832004-05-18 Randolph Chung <tausq@debian.org>
7284
7285 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
7286 millicode functions.
7287
9ca80cf8
RC
72882004-05-18 Randolph Chung <tausq@debian.org>
7289
7290 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
7291 references to dld_flags_buffer consistent.
7292
ed70ba00
RC
72932004-05-18 Randolph Chung <tausq@debian.org>
7294
7295 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
7296 it for unwinding the stack.
7297
63100632
RC
72982004-05-18 Randolph Chung <tausq@debian.org>
7299
7300 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
7301 Undefine these so we can overide them using gdbarch.
7302
090ccbb7
RC
73032004-05-18 Randolph Chung <tausq@debian.org>
7304
7305 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
7306 handling for 64-bit HPUX (elf).
7307
594706e6
DJ
73082004-05-18 Daniel Jacobowitz <dan@debian.org>
7309
7310 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
7311 constants.
7312 * amd64-tdep.c (amd64_skip_prologue): Likewise.
7313 * ia64-tdep.c (examine_prologue): Likewise.
7314 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
7315 * v850-tdep.c (v850_fix_call_dummy): Likewise.
7316
e5483145
MK
73172004-05-18 Mark Kettenis <kettenis@gnu.org>
7318
7319 * vax-tdep.c (vax_return_value): Implement
7320 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7321
caed1a45
MK
73222004-05-17 Mark Kettenis <kettenis@gnu.org>
7323
7324 * vax-tdep.c (vax_return_value): Fix typo.
7325
3c0b7db2
AC
73262004-05-17 Andrew Cagney <cagney@redhat.com>
7327
5aae53e5
AC
7328 * MAINTAINERS: Mark Salter was also responsible for
7329 testsuite/config/
7330
3c0b7db2
AC
7331 * NEWS: Mention signal fixes.
7332
22b0923d
RC
73332004-05-17 Randolph Chung <tausq@debian.org>
7334
7335 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
7336 check to see if we are unwinding an export stub. Export stubs clobber
7337 the %rp in the call path and stores the original rp in a stack slot.
7338
22f2b2f3
JB
73392004-05-17 Jim Blandy <jimb@redhat.com>
7340
7341 * MAINTAINERS: Update address for J.T. Conklin.
7342
cea96d64
RC
73432004-05-17 Randolph Chung <tausq@debian.org>
7344
7345 * hppa-tdep.c: Remove superfluous #include's.
7346 * Makefile.in (hppa-tdep.o): Update dependencies.
7347
f08f6a4a
RC
73482004-05-17 Randolph Chung <tausq@debian.org>
7349
7350 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
7351 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
7352 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
7353 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
7354 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
7355 Remove static function declarations.
7356
51da707a
MK
73572004-05-17 Mark Kettenis <kettenis@gnu.org>
7358
caed1a45
MK
7359 * alphabsd-nat.c: Update copyright year.
7360 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
7361
c0c2b0db
MK
7362 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
7363 and M68K_A2_REGNUM.
7364
51da707a
MK
7365 * m68k-tdep.c (m68k_svr4_return_value): Implement
7366 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7367
8d027a04
MK
73682004-05-16 Mark Kettenis <kettenis@gnu.org>
7369
7370 * sol-thread.c Update copyright year. Fix various coding
7371 standards violations. Tweak a few comments.
7372 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
7373 Delete prototypes.
7374
0d99fdb9
RC
73752004-05-15 Randolph Chung <tausq@debian.org>
7376
7377 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
7378 as pointer instead of array reference since HPUX compiler does
7379 not accept unsized array arguments.
7380 * somsolib.c (dld_flags_buffer): Use constant array size.
7381
f7e3843a
MK
73822004-05-15 Mark Kettenis <kettenis@gnu.org>
7383
0fe85704
MK
7384 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
7385 offset with decimal offset.
7386 (amd64obsd_sigcontext_addr): Return correct address for entire
7387 signal trampoline.
7388
a54f9a00
MK
7389 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
7390 instead of get_frame_base.
7391
feae6502
MK
7392 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
7393 (fill_gregset): Use regcache_raw_collect.
7394
0382d099
MK
7395 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
7396 ppcobsd-tdep.c.
7397
f7e3843a
MK
7398 * config/sparc/tm-nbsd64.h: Remove file.
7399 * config/tm-sunos.h: Remove file.
7400
773df3e5
JB
74012004-05-15 Joel Brobecker <brobecker@gnat.com>
7402
7403 * rs6000-tdep.c (store_param_on_stack_p): New function,
7404 an improved version of some code extracted from skip_prologue().
7405 (skip_prologue): Use store_param_on_stack_p() to detect
7406 instructions saving a parameter on the stack. Detect when r0
7407 is used to save a parameter.
7408 Do not mark "li rx, SIMM" instructions as part of the prologue,
7409 unless the following instruction is also part of the prologue.
7410
95918acb
AC
74112004-05-14 Andrew Cagney <cagney@redhat.com>
7412
06f32659
AC
7413 * infrun.c (handle_inferior_event): Simplify
7414 STEP_OVER_UNDEBUGGABLE.
7415
95918acb
AC
7416 * infrun.c (handle_step_into_function): Delete function.
7417 (handle_inferior_event): Inline calls to
7418 handle_step_into_function.
7419
40711ff1 74202004-05-14 Jerome Guitton <guitton@gnat.com>
42203e46
JG
7421
7422 * rs6000-nat.c: Fix a comment.
7423
02f60eae
JB
74242004-05-12 David Anderson <davea@sgi.com>
7425
7426 Committed by Jim Blandy <jimb@redhat.com>:
7427 * regcache.c (struct regcache_descr): fix comment spelling.
7428
552e377b
JB
74292004-05-13 J. Brobecker <brobecker@gnat.com>
7430
7431 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
7432 Fixes a link link failure.
7433
349766b2
JB
74342004-05-13 J. Brobecker <brobecker@gnat.com>
7435
7436 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
7437 error that was causing the build to fail.
7438
0d4d5484
JB
74392004-05-13 J. Brobecker <brobecker@gnat.com>
7440
7441 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
7442 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
7443
0b30808c
AC
74442004-05-13 Andrew Cagney <cagney@redhat.com>
7445
7446 * infrun.c (handle_inferior_event): Check for
7447 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
7448 calls. Update comments.
7449
cdf2c5f5
JB
74502004-05-13 Jim Blandy <jimb@redhat.com>
7451
063715bf
JB
7452 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
7453 (fetch_regs_user_thread, fetch_regs_kernel_thread)
7454 (store_regs_user_thread, store_regs_kernel_thread): Use
7455 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
7456 * ppc-linux-nat.c (fill_gregset): Same.
7457 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
7458 (ppc_linux_sigtramp_cache): Same.
7459 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
7460 (ppcnbsd_sigtramp_cache_init): Same.
7461 * rs6000-nat.c (fetch_core_registers): Same.
7462 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
7463 (rs6000_frame_cache): Same.
7464
cdf2c5f5
JB
7465 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
7466 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
7467 of assuming that the gprs are numbered starting with zero.
7468 * ppc-linux-nat.c (fill_gregset): Same.
7469 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
7470 * ppcnbsd-nat.c (getregs_supplies): Same.
7471 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
7472 * rs6000-nat.c (fetch_core_registers): Same.
7473 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
7474
450bd37b
MS
74752004-05-07 Michael Snyder <msnyder@redhat.com>
7476
7477 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
7478 LOC_COMPUTED_ARG, and LOC_INDIRECT.
7479
4a72a2a6
AC
74802004-05-13 Andrew Cagney <cagney@redhat.com>
7481
7482 * infrun.c (handle_inferior_event): Use frame_unwind_id.
7483
8edfa926
BM
74842004-05-13 Bryce McKinlay <mckinlay@redhat.com>
7485
7486 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
7487 base_address for shared libraries.
7488
723e0e3d
BM
74892004-05-13 Bryce McKinlay <mckinlay@redhat.com>
7490
7491 * MAINTAINERS (write after approval): Add myself.
7492
00d4360e
UW
74932004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
7494
7495 * breakpoint.c (bpstat_stop_status): Add new argument
7496 STOPPED_BY_WATCHPOINT. Use it instead of testing
7497 target_stopped_data_address agaist 0 to check whether
7498 or not we stopped due to a hardware watchpoint.
7499 * breakpoint.h (bpstat_stop_status): Adapt prototype.
7500 * infrun.c (handle_inferior_event): Call bpstat_stop_status
7501 with new argument.
7502
ec76baa5
JB
75032004-05-12 Jim Blandy <jimb@redhat.com>
7504
7505 * configure.in: When checking whether we should use the -bbigtoc
7506 option, don't forget to restore the original value of LDFLAGS.
7507 * configure: Regenerated.
7508
f2c9ca08
AC
75092004-05-12 Andrew Cagney <cagney@redhat.com>
7510
7511 * thread.c (load_infrun_state): Delete step_sp.
7512 * infrun.c (context_switch): Ditto.
7513 * inferior.h (step_sp): Ditto.
7514 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
7515 * gdbthread.h (struct thread_info, save_infrun_state)
7516 (restore_infrun_state): Ditto.
7517
090ddb2a
UW
75182004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
7519
7520 * MAINTAINERS (write after approval): Add myself.
7521
8aad930b
AC
75222004-05-12 Andrew Cagney <cagney@redhat.com>
7523
7524 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
7525 eliminate reference to step_sp.
7526 (struct execution_control_state, init_execution_control_state)
7527 (handle_inferior_event, keep_going): Delete update_step_sp and
7528 step_sp.
7529 * infcmd.c (step_sp): Note that variable is unused.
7530
922d5ae0
AC
75312004-05-11 Andrew Cagney <cagney@redhat.com>
7532
7533 * infrun.c (step_over_function): Delete function.
7534 (handle_step_into_function): Use insert_step_resume_breakpoint.
7535 (insert_step_resume_breakpoint): Fix assertion.
7536
017c5ca5
NR
75372004-05-11 Nick Roberts <nickrob@gnu.org>
7538
7539 * utils.c (defaulted_query): Just use the normal query input type
7540 when printing the annotations.
7541
42edda50
AC
75422004-05-11 Andrew Cagney <cagney@redhat.com>
7543
7544 * infrun.c (handle_inferior_event): Simplify code handling
7545 step-into or return-from a signal trampoline.
7546
d28b44a7
AC
75472004-05-11 Andrew Cagney <cagney@redhat.com>
7548
7549 * ppcnbsd-tdep.c: Include "gdb_assert.h".
7550 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
7551
383f0f5b
JB
75522004-05-10 Jim Blandy <jimb@redhat.com>
7553
d0b57c3a
JB
7554 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
7555 with a call to internal_error.
7556
383f0f5b
JB
7557 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
7558 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
7559 processor variant lacks those registers.
7560 (ppc_floating_point_unit_p): Change description to make it clear
7561 that this returns info about the ISA, not the ABI.
7562 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
7563 return true or false by checking tdep->ppc_fp0_regnum and
7564 tdep->ppc_fpscr_regnum. The original code replicated the BFD
7565 arch/mach switching done in rs6000_gdbarch_init; it's better to
7566 keep that logic there, and just check the results here.
7567 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
7568 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
7569 floating-point registers.
7570 (ppc_supply_fpregset, ppc_collect_fpregset)
7571 (rs6000_push_dummy_call, rs6000_extract_return_value)
7572 (rs6000_store_return_value): Assert that we have floating-point
7573 registers.
7574 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
7575 (rs6000_frame_cache): Don't note the locations at which
7576 floating-point registers were saved if we have no fprs.
7577 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
7578 registers.
7579 (fetch_regs_user_thread, fetch_regs_kernel_thread)
7580 (store_regs_user_thread, store_regs_kernel_thread): Only call
7581 supply_fprs / fill_fprs if we actually have floating-point
7582 registers.
7583 (special_register_p): Check ppc_fpscr_regnum before matching
7584 against it.
7585 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
7586 supply / collect fpscr if we don't have it.
7587 * ppc-bdm.c: #include "gdb_assert.h".
7588 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
7589 have floating-point registers, since I can't test this code on
7590 FP-free systems to adapt it.
7591 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
7592 fpscr and floating point register numbers if they don't exist.
7593 (fetch_register): Assert that we have floating-point registers
7594 before we reach the code that handles them.
7595 (store_register): Same. And use tdep instead of calling
7596 gdbarch_tdep again.
7597 (fill_fpregset): Don't try to collect FP registers and fpscr if we
7598 don't have them.
7599 (ppc_linux_sigtramp_cache): Don't record the saved locations of
7600 fprs and fpscr if we don't have them.
7601 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
7602 don't have them.
7603 * ppcnbsd-nat.c: #include "gdb_assert.h".
7604 (getfpregs_supplies): Assert that we have floating-point registers.
7605 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
7606 * ppcobsd-tdep.c: #include "gdb_assert.h".
7607 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
7608 have floating-point registers.
7609 * rs6000-nat.c (regmap): Don't match against the fpscr and
7610 floating point register numbers if they don't exist.
7611 (fetch_inferior_registers, store_inferior_registers,
7612 fetch_core_registers): Only fetch / store / supply the
7613 floating-point registers and the fpscr if we have them.
7614 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
7615 (ppcobsd-tdep.o): Update dependencies.
7616
15960608
AC
76172004-05-10 Andrew Cagney <cagney@redhat.com>
7618
7619 * infrun.c (through_sigtramp_breakpoint): Delete variable.
7620 (context_switch): Do not switch through_sigtramp_breakpoint.
7621 * gdbthread.h (save_infrun_state, load_infrun_state)
7622 (struct thread_info): Delete through_sigtramp_breakpoint parameter
7623 and structure member.
7624 * thread.c (load_infrun_state, save_infrun_state): Update.
7625
5ab5aa0f
MK
76262004-05-10 Mark Kettenis <kettenis@gnu.org>
7627
7628 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
7629
da78b0e7
DJ
76302004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
7631
7632 * acinclude.m4: Quote macro names being defined by AC_DEFUN
7633 throughout.
7634 * aclocal.m4: Regenerate.
7635
cca0d3b0
NW
76362004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
7637
7638 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
7639
d303a6c7
AC
76402004-05-10 Andrew Cagney <cagney@redhat.com>
7641
7642 * infrun.c (check_sigtramp2): Delete function.
7643 (handle_inferior_event): When single stepping, and taking a
7644 signal, set a breakpoint at the signal return address. Delete
7645 redundant calls to check_sigtramp2.
7646 (insert_step_resume_breakpoint): New function.
7647 (through_sigtramp_breakpoint, handle_inferior_event)
7648 (follow_exec, wait_for_inferior, fetch_inferior_event)
7649 (currently_stepping, keep_going): Delete most uses of
7650 through_sigtramp_breakpoint, not that it should be deleted.
7651 (delete_breakpoint_current_contents): Delete function.
7652
03f4cc20
RC
76532004-05-10 Randolph Chung <tausq@debian.org>
7654
7655 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
7656 target.
7657 * config/pa/tm-linux.h: New file.
7658
37fc812e
DJ
76592004-05-10 Daniel Jacobowitz <drow@mvista.com>
7660
7661 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
7662 of prefixes. Don't print the prefix twice in the CLI.
7663
26c0b942
JB
76642004-05-10 Jim Blandy <jimb@redhat.com>
7665
2e56e9c1
JB
7666 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
7667 collect all the gprs.
7668
26c0b942
JB
7669 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
7670 loop collecting gprs.
7671
dc497459
AC
76722004-05-09 Andrew Cagney <cagney@redhat.com>
7673
7674 * remote-vx.c (net_step): Delete step-range code.
7675 * remote.c (remote_resume, init_all_packet_configs)
7676 (set_remote_protocol_E_packet_cmd)
7677 (show_remote_protocol_E_packet_cmd)
7678 (remote_protocol_E, show_remote_cmd, _initialize_remote)
7679 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
7680 (show_remote_protocol_e_packet_cmd): Ditto.
7681
0543f387
MK
76822004-05-09 Mark Kettenis <kettenis@gnu.org>
7683
c481d1ca
MK
7684 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
7685
f626a069
MK
7686 * hppa-tdep.h: Update copyright year.
7687 (struct trad_frame_saved_reg): Add opaque declaration.
7688
6fa57a7d
MK
7689 * amd64-tdep.c (amd64_return_value): Implement
7690 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7691
e47577ab
MK
7692 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
7693 (m68k_value_to_register): New functions.
7694 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
7695 value_to_register.
7696
31db7b6c
MK
7697 * defs.h (enum return_value_convention): Add
7698 RETURN_VALUE_ABI_RETURNS_ADDRESS and
7699 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
7700 * infcmd.c (legacy_return_value): New function.
7701 (print_return_value): Rwerite to implement
7702 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7703 * values.c (using_struct_return): Check for inequality to
7704 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
7705 RETURN_VALUE_STRUCT_CONVENTION.
7706 * i386-tdep.c (i386_return_value): Implement
7707 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7708
0543f387
MK
7709 * vax-tdep.c: Tweak comments. Reorder include files. Don't
7710 include "symtab.h", "opcode/vax.h" and "inferior.h".
7711 (vax_skip_prologue): Replace calls to read_memory_integer by calls
7712 to read_memory_unsigned_integer.
7713 (vax_gdbarch_init): Reorder.
7714 (_initialize_vax_tdep): Spell out prototype.
7715 * Makefile.in (vax-tdep.o): Update dependencies.
7716
0c93b7b6
AC
77172004-05-08 Andrew Cagney <cagney@redhat.com>
7718
e6b55ae2
AC
7719 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
7720 * target.c (target_detach, target_disconnect): Ditto.
7721
1ac839b8
AC
7722 * infcall.c (call_function_by_hand): When no
7723 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
7724 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
7725 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
7726 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7727 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7728
28954179
AC
7729 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
7730 * gdbarch.h, gdbarch.c: Re-generate.
7731 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7732 deprecated_fix_call_dummy.
7733 * v850-tdep.c (v850_gdbarch_init): Ditto.
7734 * infcall.c (call_function_by_hand): Do not call
7735 DEPRECATED_FIX_CALL_DUMMY.
7736
434b87dd
AC
7737 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
7738 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
7739 * gdbarch.h, gdbarch.c: Re-generate.
7740 * arm-linux-tdep.c (arm_linux_call_dummy_words)
7741 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
7742 deprecated_sizeof_call_dummy_words.
7743 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
7744 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7745 * v850-tdep.c (v850_gdbarch_init): Ditto.
7746 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
7747 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
7748 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7749 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7750 * arch-utils.h (legacy_call_dummy_words)
7751 (legacy_sizeof_call_dummy_words): Delete declarations.
7752 * arch-utils.c (legacy_call_dummy_words)
7753 (legacy_sizeof_call_dummy_words): Delete variables.
7754
58d28df8
AC
7755 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
7756 * gdbarch.h, gdbarch.c: Re-generate.
7757 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
7758 * infcall.c (call_function_by_hand): Eliminate call to
7759 DEPRECATED_PUSH_DUMMY_FRAME.
7760 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
7761 push_dummy_frame.
7762 (ns32k_push_dummy_frame): Delete function.
7763
e4a2df64
AC
7764 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7765 deprecated_call_dummy_breakpoint_offset or
7766 deprecated_call_dummy_start_offset.
7767 * dummy-frame.c, arm-tdep.c: Update comments.
7768 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
7769 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
7770 * gdbarch.h, gdbarch.c: Re-generate.
7771
d3712828
AC
7772 * infcall.c (legacy_push_dummy_code): Delete function.
7773 (push_dummy_code): Delete call.
7774
7a882905
AC
7775 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
7776 * gdbarch.h, gdbarch.c: Re-generate.
7777 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
7778 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
7779 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
7780 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
7781
0ec5872b
AC
7782 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
7783 (struct frame_info): Delete opaque declaration.
7784 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
7785 * frame.c (get_frame_type): Delete call.
7786
0c93b7b6
AC
7787 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
7788 pc_in_call_dummy.
7789 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
7790 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
7791
75536971
MK
77922004-05-08 Mark Kettenis <kettenis@gnu.org>
7793
527ca6bb
MK
7794 * alphanbsd-tdep.c: Include "gdb_string.h".
7795 * armnbsd-tdep.c: Update copyright year.
7796 Include "gdb_string.h".
7797 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
7798 dependencies.
7799
d39fdc61
MK
7800 * delta68-nat.c: Remove file.
7801 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
7802 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
7803 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
7804 (delta68-nat.o): Remove dependency.
7805
75536971
MK
7806 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
7807 function.
7808 (m68k_gdbarch_init): Don't set
7809 deprecated_frameless_function_invocation.
7810
f4ca1d1f
RC
78112004-05-07 Randolph Chung <tausq@debian.org>
7812
7813 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
7814 read_memory_nobpt for code reading when doing frame unwinding.
7815 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
7816
2f0e8c7a
RC
78172004-05-07 Randolph Chung <tausq@debian.org>
7818
7819 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
7820 instead of sp, handle sigaltstack case.
7821 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
7822 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
7823 signal handler and not that of the caller.
7824 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
7825 hppa_linux_sigtramp_find_sigcontext.
7826
959464ff
RC
78272004-05-07 Randolph Chung <tausq@debian.org>
7828
7829 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
7830 hppa-linux-nat.c.
7831 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
7832 * hppa-linux-nat.c (fetch_register, store_register): Define.
7833 (fetch_inferior_registers, store_inferior_registers): Define.
7834 (supply_gregset): Add comment and clean up some unneeded code.
7835 (fill_gregset): Add comment and fix so that it saves registers in
7836 the right place in the gregset.
7837 (fill_fpregset): Fix buffer overrun problem.
7838 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
7839
0da28f8a
RC
78402004-05-07 Randolph Chung <tausq@debian.org>
7841
7842 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
7843 do common handling of the pcoqt register.
7844 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
7845 to use helper function.
7846 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
7847 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
7848 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
7849 generic fallback unwinder when all else fails.
7850 (hppa_gdbarch_init): Add fallback sniffer.
7851 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
7852 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
7853 to use helper function.
7854
b9ec757a
JB
78552004-05-08 Joel Brobecker <brobecker@gnat.com>
7856
7857 * config/djgpp/fnchange.lst: Add translation rules for
7858 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
7859
756e95f1
MK
78602004-05-08 Mark Kettenis <kettenis@gnu.org>
7861
7862 * frame.c (get_prev_frame_1): Work around GCC bug.
7863 * frame.h: Add comment about GCC bug.
7864
2b4855ab
AC
78652004-05-07 Andrew Cagney <cagney@redhat.com>
7866
7867 * observer.c: Include "commands.h" and "gdbcmd.h".
7868 (observer_debug, _initialize_observer): Add the
7869 command "set/show debug observer".
7870 * observer.sh: When observer debugging, log notify calls.
7871 * Makefile.in (observer.o): Update dependencies.
7872
ba3e8e46
JM
78732004-05-07 Jason Molenda (jmolenda@apple.com)
7874
7875 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
7876
16796152
JB
78772004-05-07 Jim Blandy <jimb@redhat.com>
7878
daf6dc85
JB
7879 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
7880 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
7881 to recognize gpr regnums, instead of assuming that
7882 tdep->ppc_fp0_regnum marks the end of the general-purpose
7883 registers.
7884
16796152
JB
7885 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
7886 the given architecture has floating-point registers.
7887
c69b8bfc
AC
78882004-05-07 Andrew Cagney <cagney@redhat.com>
7889
7890 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
7891 macro defined to 1.
7892 * gdbarch.h, gdbarch.c: Re-generate.
7893 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7894 deprecated_use_generic_dummy_frames.
7895
7243600a
BF
78962004-05-07 Brian Ford <ford@vss.fsi.com>
7897
7898 * NEWS: Mention Cygwin DWARF 2 support.
7899
73c1e0a1
AC
79002004-05-07 Andrew Cagney <cagney@redhat.com>
7901
7902 * objfiles.h (struct entry_info): Delete unused fields
7903 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
7904 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
7905 * mipsread.c (mipscoff_symfile_read): Update.
7906 * mdebugread.c (parse_partial_symbols): Update.
7907 * dwarfread.c (read_file_scope): Update.
7908 * dwarf2read.c (read_file_scope): Update.
7909 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
7910 * coffread.c (complete_symtab): Update.
7911
1d3056ac
MK
79122004-05-07 Mark Kettenis <kettenis@gnu.org>
7913
7914 * infcall.c (_initialize_infcall): Fix typo.
7915
15170568
AC
79162004-05-07 Andrew Cagney <cagney@redhat.com>
7917
7918 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
7919 * command.h (add_setshow_zinteger_cmd): Declare.
7920
34f75cc1
RC
79212004-05-06 Randolph Chung <tausq@debian.org>
7922
7923 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
7924 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
7925 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
7926 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
7927 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
7928 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
7929 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
7930 definitions ...
7931 * hppa-tdep.h: ... to here, with HPPA_ prefix.
7932 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
7933 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
7934 (hppa64_hpux_frame_find_saved_regs_in_sig)
7935 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
7936 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
7937 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
7938 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
7939 (hppa_linux_sigtramp_frame_prev_register): Likewise.
7940 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
7941 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
7942 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
7943 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
7944 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
7945 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
7946 (hppa32_register_type, hppa_cannot_store_register)
7947 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
7948 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
7949 * hpread.c (hpread_process_one_debug_symbol): Likewise.
7950 * pa64solib.c (pa64_solib_have_load_event)
7951 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
7952 (pa64_solib_unloaded_library_pathname): Likewise.
7953 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
7954 (som_solib_library_pathname): Likewise.
7955
0a5e7efe
JI
79562004-05-05 Jim Ingham <jingham@apple.com>
7957
7958 * breakpoint.c (create_breakpoints): Copy the ignore count and
7959 thread id over from the pended breakpoint to the actual
7960 breakpoint.
7961
10a4b113
AC
79622004-05-05 Andrew Cagney <cagney@redhat.com>
7963
7964 * gdbarch.sh (PARM_BOUNDARY): Delete.
7965 gdbarch.h, gdbarch.c: Re-generate.
7966 * valops.c (PARM_BOUNDARY): Delete macro.
7967 (value_push): Delete PARM_BOUNDARY code.
7968 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
7969
366f009f
JB
79702004-05-04 Jim Blandy <jimb@redhat.com>
7971
32b99774
JB
7972 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
7973 Don't assume that the gprs, fprs, and UISA sprs are
7974 contiguous, start at register number zero, and end with fpscr.
7975 Instead, use the numbers from the tdep structure.
7976
366f009f
JB
7977 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
7978 should no longer be used in code specific to the RS6000 and its
7979 derivatives.
7980 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
7981 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
7982 tdep->ppc_fp0_regnum.
7983 (ppc_supply_fpregset, ppc_collect_fpregset)
7984 (rs6000_push_dummy_call, rs6000_extract_return_value)
7985 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
7986 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
7987 FP0_REGNUM.
7988 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
7989 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
7990 Same.
7991 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
7992 bdm_ppc_store_registers): Same.
7993 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
7994 (store_register, fill_fpregset): Same.
7995 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
7996 (ppc_linux_supply_fpregset): Same.
7997 * ppcnbsd-nat.c (getfpregs_supplies): Same.
7998 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
7999 Same.
8000 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
8001 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
8002 ppc64_sysv_abi_return_value): Same.
8003 * rs6000-nat.c (regmap, fetch_inferior_registers)
8004 (store_inferior_registers, fetch_core_registers): Same.
8005
827f338d
MK
80062004-05-01 Mark Kettenis <kettenis@gnu.org>
8007
8008 * m68knbsd-nat.c: Remove file.
8009 * m68knbsd-tdep.c: Remove file.
8010 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
8011 dependencies.
8012 * configure.host: Add m68k-*-netbsdelf*.
8013 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
8014 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
8015 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
8016 (XM_FILE): Remove.
8017 * config/m68k/nbsdelf.mh: New file.
8018 * config/m68k/nbsd.mt: New file.
8019 * config/m68k/nbsdaout.mt: Remove file.
8020 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
8021 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
8022 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
8023 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
8024 (use_struct_convention): Remove prototype.
8025 (USE_STRUCT_CONVENTION): Remove define.
8026 * config/m68k/xm-nbsd.h: Remove file.
8027
66894781
MS
80282004-05-04 Michael Snyder <msnyder@redhat.com>
8029
8030 * m68k-tdep.c (m68k_gdbarch_init): Default to using
8031 reg_struct_return method (as gcc usually does for cross targets).
8032
f0f63663
AC
80332004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8034
8035 Committed by Andrew Cagney.
8036 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
8037 alignment padding when accessing ucontext struct members.
8038
edf61169
JB
80392004-05-04 Jim Blandy <jimb@redhat.com>
8040
8bf659e8
JB
8041 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
8042 'ppc_gplast_regnum' member.
8043 (ppc_num_gprs): New enum constant.
8044 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
8045 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
8046 * rs6000-nat.c (regmap, fetch_inferior_registers,
8047 store_inferior_registers): Same.
8048 * rs6000-tdep.c (e500_pseudo_register_read)
8049 (e500_pseudo_register_write): Same.
8050 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
8051
b967e06f
JB
8052 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
8053 * ppc-tdep.h (ppc_num_fprs): New enum constant.
8054 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
8055 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
8056 FPLAST_REGNUM.
8057 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8058 Same.
8059 * ppc-linux-nat.c (ppc_register_u_addr): Same.
8060 * rs6000-nat.c (regmap, fetch_inferior_registers)
8061 (store_inferior_registers): Same.
8062
edf61169
JB
8063 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
8064 with FPLAST_REGNUM.
8065
58a9656e
JB
80662004-05-03 Joel Brobecker <brobecker@gnat.com>
8067
8068 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
8069 failure detected by recent versions of GCC.
8070 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
8071 to be consistent with the usage in dwarf2_create_include_psymtab.
8072
dc305454
MS
80732004-05-03 Michael Snyder <msnyder@redhat.com>
8074
8075 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
8076 (heuristic_proc_start): Whitespace cleanup.
8077
29972665
MK
80782004-05-04 Mark Kettenis <kettenis@gnu.org>
8079
6b57680d
MK
8080 * sun3-nat.c: Remove file.
8081 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
8082 dependencies.
8083 (ALLDEPFILES): Remove sun3-nat.c.
8084 (sun3-nat.o): Remove dependencies.
8085
29972665
MK
8086 * i386-interix-nat.c, i386-interix-tdep.c,
8087 config/i386/nm-interix.h, config/i386/interix.mh,
8088 config/i386/interix.mt: Remove files.
8089 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
8090 dependencies.
8091
f595cb19
MK
80922004-05-03 Mark Kettenis <kettenis@gnu.org>
8093
8094 * m68k-tdep.h (struct gdbarch_tdep): Add member
8095 struct_value_regnum.
8096 (m68k_svr4_init_abi): New prototype.
8097 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
8098 different calling conventions.
8099 (m68k_extract_return_value): Remove code dealing with single-field
8100 structs.
8101 (m68k_store_return_value): Remove code dealing with single-field
8102 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
8103 (m68k_extract_struct_value_address): Remove function.
8104 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
8105 (m68k_reg_struct_return_p, m68k_return_value)
8106 (m68k_svr4_return_value): New functions.
8107 (m68k_use_struct_convention): Remove function.
8108 (m68k_push_dummy_call): Use new struct_value_regnum member of
8109 `struct gdbarch_tdep' instead of hardcoded register number to
8110 store STRUCT_ADDR.
8111 (m68k_svr4_init_abi): New function.
8112 (m68k_gdbarch_init): Don't set extract_return_value,
8113 store_return_values, deprecated_extract_struct_value_address and
8114 use_struct_convention. Set return_value instead. Initialize new
8115 struct_value_regnum member of `struct gdbarch_tdep'.
8116 * m68klinux-tdep.c: Update copyright year.
8117 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
8118 (m68k_linux_extract_struct_value_address): Remove function.
8119 (m68k_linux_init_abi): Don't set extract_return_value,
8120 store_return_values, deprecated_extract_struct_value_address and
8121 use_struct_convention. Call m68k_svr4_init_abi but override the
8122 new struct_value_regnum member of `struct gdbarch_tdep'.
8123 * Makefile.in (m68k-tdep.o): Update dependencies.
8124
aaa75496
JB
81252004-05-03 J. Brobecker <brobecker@gnat.com>
8126
8127 * dwarf2read.c (line_header): Add new included_p field in
8128 field file_names.
8129 (partial_die_info): New field has_stmt_list. New field line_offset.
8130 (dwarf2_create_include_psymtab): New function.
8131 (dwarf2_build_include_psymtabs): New function.
8132 (add_file_name): Add forward declaration. Initialize new field.
8133 (dwarf_decode_lines): Add new parameter. Enhance this procedure
8134 to be able to determine the list of files included by the
8135 given unit, and build their associated psymtabs.
8136 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
8137 files as well.
8138 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
8139 (read_file_scope): Update call to dwarf_decode_lines.
8140 (read_partial_die): Handle DW_AT_stmt_list attributes.
8141
c848556f
MC
81422004-05-02 Michael Chastain <mec.gnu@mindspring.com>
8143
8144 Unfix PR gdb/1626.
8145 * configure.in: Revert special case for osf5.*.
8146 * configure: Regenerate.
8147
eb4556d7
JB
81482004-05-02 Jim Blandy <jimb@redhat.com>
8149
8150 Move the symbol-file-from-memory functions into their own file.
8151 * symfile-mem.c, symfile-mem.h: New files.
8152 * symfile.c (symbol_file_add_from_bfd): New function.
8153 (symbol_file_add): Call symbol_file_add_from_bfd.
8154 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
8155 Moved to symfile-mem.c.
8156 (_initialize_symfile): Move definition of
8157 add-symbol-file-from-memory command to symfile-mem.c.
8158 * symfile.h (symbol_file_add_from_bfd): New declaration.
8159 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
8160 * config/powerpc/linux.mt (TDEPFILES): Same.
8161 * Makefile.in (SFILES): Add symfile-mem.c.
8162 (symfile_mem_h): New variable.
8163 (HFILES_NO_SRCDIR): Add symfile-mem.h.
8164 (symfile-mem.o): New rule.
8165
80bb239e
AC
81662004-05-01 Andrew Cagney <cagney@redhat.com>
8167
7789d0fa
AC
8168 * breakpoint.c (insert_bp_location): Use get_frame_id, and
8169 frame_find_by_id instead of frame_relative_level.
8170 (do_enable_breakpoint): Ditto.
8171 * thread.c: Update copyright.
8172 (info_threads_command): Ditto, simplify.
8173
80bb239e
AC
8174 * frame.c (deprecated_generic_get_saved_register): Delete
8175 function, moved to "xstormy16-tdep.c".
8176 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
8177 deprecated_generic_get_saved_register from "frame.c".
8178 (xstormy16_frame_saved_register): Call
8179 xstormy16_get_saved_register.
8180 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
8181 static.
8182 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
8183 * frame.h (deprecated_generic_get_saved_register): Delete.
8184
b2a871dd
MC
81852004-05-01 Michael Chastain <mec.gnu@mindspring.com>
8186
8187 * dwarfread.c: Update documentation on the state of dwarf-1.
8188
0e100dab
AC
81892004-05-01 Andrew Cagney <cagney@redhat.com>
8190
acd8056e
AC
8191 * stack.c (select_frame_command): Delete call to
8192 frame_relative_level.
8193 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
8194 Delete #if0 code.
8195 (frame_info): Do not print FRAMELESS.
8196 (print_block_frame_labels): Replace DEPRECATED_STREQ.
8197 (catch_info): Delete #if0 code.
8198
0e100dab
AC
8199 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
8200 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
8201 of frame_relative_level.
8202 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
8203 to SENTINEL_FRAME.
8204 * frame.h (enum frame_type): Add SENTINEL_FRAME.
8205 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
8206 frame_relative_level.
8207
55699d59
AC
8208 * frame.h (deprecated_set_frame_type): Delete declaration.
8209 * frame.c (deprecated_set_frame_type): Delete function, update
8210 comments.
8211
fcf70625
AC
8212 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
8213 * gdbarch.h, gdbarch.c: Re-generate.
8214 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
8215 (shnbsd_pc_in_sigtramp): Delete.
8216 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
8217 pc_in_sigtramp.
8218 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
8219 pc_in_sigtramp.
8220 * frame.h: Update comments.
8221 * ppc-linux-tdep.c: Update comments.
8222 * breakpoint.c (bpstat_what): Update comments.
8223
ac5eccb7
AC
8224 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
8225 m68klinux-tdep.o's dependencies, were previously added to
8226 m68klinux-nat.o.
8227
f2524b93
AC
8228 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
8229 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
8230 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
8231 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
8232 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
8233
17e20bce
AC
8234 * Makefile.in (m68klinux-nat.o): Update dependencies.
8235 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8236 (m68k_linux_sigtramp_frame_cache)
8237 (m68k_linux_sigtramp_frame_this_id)
8238 (m68k_linux_sigtramp_frame_prev_register)
8239 (m68k_linux_sigtramp_frame_unwind)
8240 (m68k_linux_sigtramp_frame_sniffer)
8241 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
8242 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
8243 names, use trad-frame.h.
8244 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
8245 (struct m68k_sigtramp_info): Delete.
8246 * m68k-tdep.c (m68k_sigtramp_frame_cache)
8247 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
8248 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
8249 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
8250 "m68klinux-tdep.c".
8251
c8864fa2
AC
8252 * infrun.c (check_sigtramp2): Delete check for
8253 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
8254
511dd2cd
MK
82552004-05-01 Mark Kettenis <kettenis@gnu.org>
8256
8257 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
8258
8c6b0e06
AC
82592004-05-01 Andrew Cagney <cagney@redhat.com>
8260
9df0bb3f
AC
8261 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8262 (frv_linux_sigtramp_frame_cache)
8263 (frv_linux_sigtramp_frame_this_id)
8264 (frv_linux_sigtramp_frame_prev_register)
8265 (frv_linux_sigtramp_frame_unwind)
8266 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
8267 include "linux" in function and variable names, directly call
8268 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
8269 the latest trad-frame code.
8270 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
8271 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
8272 * Makefile.in (frv-linux-tdep.o): Update dependencies.
8273 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
8274 * frv-tdep.c (frv_sigtramp_frame_cache)
8275 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
8276 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
8277 frv-linux-tdep.c.
8278 (frv_gdbarch_init): Do not append a sigtramp sniffer.
8279 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
8280 (frv_set_sigcontext_reg_addr): Delete function.
8281
8c6b0e06
AC
8282 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
8283 (DEPRECATED_SIGTRAMP_END): Delete.
8284 * gdbarch.h, gdbarch.c: Re-generate.
8285 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
8286 * config/vax/tm-vaxbsd.h: Update copyright.
8287 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8288 (DEPRECATED_IN_SIGTRAMP): Define.
8289 * config/m68k/tm-nbsd.h: Update copyright.
8290 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8291 (DEPRECATED_IN_SIGTRAMP): Define.
8292
50ea7769
MK
82932004-05-01 Mark Kettenis <kettenis@gnu.org>
8294
03ac2a74
MK
8295 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
8296 encondings. Fixes PR gdb/1628.
8297
50ea7769
MK
8298 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
8299 DW_CFA_restore state without a matching DW_CFA_remember_state
8300 instead of aborting. Fixes PR backtrace/1589.
8301
9a5d7be1
JB
83022004-04-30 Joel Brobecker <brobecker@gnat.com>
8303
8304 * MAINTAINERS: Add self as AIX maintainer.
8305 Update my e-mail address in write-after-approval section.
8306
2593d1cd
AC
83072004-04-30 Andrew Cagney <cagney@redhat.com>
8308
ce12bbf9
AC
8309 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
8310 (legacy_get_prev_frame): Ditto.
8311
36710c63
AC
8312 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
8313 (mips_gdbarch_init): Do not set pc_in_sigtramp.
8314 * mipsread.c (sigtramp_address): Delete extern variable.
8315 (mipscoff_new_init): Delete reference.
8316 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
8317 (fixup_sigtramp): Delete function.
8318 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
8319 (fixup_sigtramp): Delete declarations.
8320
2593d1cd
AC
8321 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
8322 deprecated_pc_in_sigtramp.
8323 (ppcnbsd_pc_in_sigtramp): Delete function.
8324
2a25f91c
MK
83252004-05-01 Mark Kettenis <kettenis@gnu.org>
8326
8327 * config/m68k/nm-nbsd.h: Tweak comments.
8328 * config/m68k/nm-nbsdaout.h: Likewise.
8329
0b281939
AC
83302004-04-30 Andrew Cagney <cagney@redhat.com>
8331
8332 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
8333 legacy_pc_in_sigtramp.
8334 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
8335
8f2d3ea0
MK
83362004-05-01 Mark Kettenis <kettenis@gnu.org>
8337
8338 Add OpenBSD/m68k support.
8339 * NEWS (New native configurations): Mention OpenBSD/m68k.
8340 * m68kbsd-tdep.c: New file.
8341 * m68kbsd-nat.c: New file.
8342 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
8343 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
8344 * configure.host: Add m68k-*-openbsd.
8345 * configure.tgt: Add m68k-*-openbsd.
8346 * config/m68k/tm-obsd.h: New file.
8347 * config/m68k/obsd.mt: New file.
8348 * config/m68k/obsd.mh: New file.
8349 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
8350 m68kbsd-tdep.c.
8351
c40f49a4
AC
83522004-04-30 Andrew Cagney <cagney@redhat.com>
8353
8354 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
8355 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
8356
e81554cd
MK
83572004-04-30 Mark Kettenis <kettenis@gnu.org>
8358
8359 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
8360 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
8361
d4dc1a91
BF
83622004-04-30 Brian Ford <ford@vss.fsi.com>
8363
8364 Revert 2004-04-16 change.
8365 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
8366 (i386_coff_init_abi): Remove.
8367 * i386-tdep.h (i386_coff_init_abi): Remove.
8368 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
8369
2f72f850
AC
83702004-04-30 Andrew Cagney <cagney@redhat.com>
8371
e492f9d6
AC
8372 * blockframe.c (find_pc_partial_function): Delete use of
8373 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
8374 DEPRECATED_SIGTRAMP_END.
8375
7b7adad0
AC
8376 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
8377 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
8378 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
8379 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
8380 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
8381
2f72f850
AC
8382 * defs.h (deprecated_inside_entry_file): Delete declaration.
8383 * blockframe.c (deprecated_inside_entry_file): Delete function.
8384 (legacy_frame_chain_valid): Delete call.
8385 * sh64-tdep.c (sh64_frame_chain): Delete call.
8386 * objfiles.h: Update comments.
8387 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
8388 call.
8389 * frame.c (get_prev_frame): Delete call, update comments.
8390
283f90a7
BF
83912004-04-30 Brian Ford <ford@vss.fsi.com>
8392
8393 * MAINTAINERS (Write After Approval): Add myself.
8394
8ee56bcf
AC
83952004-04-30 Andrew Cagney <cagney@redhat.com>
8396
8397 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
8398 * gdbarch.h, gdbarch.c: Re-generate.
8399 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
8400 code.
8401
ee27e1b6
AC
84022004-04-30 Andrew Cagney <cagney@redhat.com>
8403
8404 * gdb-events.sh (selected_thread_changed)
8405 (selected_frame_level_changed, target_changed): Delete.
8406 * gdb-events.h, gdb-events.c: Re-generate.
8407 * valops.c (value_assign): Update.
8408 * stack.c (select_frame_command, up_silently_base)
8409 (down_silently_base): Update.
8410
d5ac5a39
AC
84112004-04-29 Andrew Cagney <cagney@redhat.com>
8412
8413 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
8414 registers correctly.
8415 (print_gp_register_row, mips32_heuristic_proc_desc)
8416 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
8417 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
8418 references to mips_isa_regsize.
8419
ceae6e75
AC
84202004-04-29 Andrew Cagney <cagney@redhat.com>
8421
8422 * mips-tdep.c (struct gdbarch_tdep): Delete
8423 mips_fp_register_double.
8424 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
8425 mips_abi_regsize.
8426 (mips_gdbarch_init): Do not set mips_fp_register_double.
8427 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
8428
a587af0b
AC
84292004-04-29 Joel Brobecker <brobecker@gnat.com>
8430
8431 Committed by Andrew Cagney.
8432 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
8433 function calls.
8434
13326b4e
AC
84352004-04-29 Andrew Cagney <cagney@redhat.com>
8436
8437 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
8438 gdbarch, use mips_abi, update callers.
8439 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
8440 mips_abi_regsize, update callers.
8441 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
8442 mips_default_abi_regsize.
8443 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
8444 mips_default_abi_regsize.
8445
711cc5cd
AC
84462004-04-29 Andrew Cagney <cagney@redhat.com>
8447
1b13c4f6
AC
8448 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
8449 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
8450 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
8451 mips_default_abi_regsize.
8452 (mips_isa_regsize): Rename mips_regisze.
8453 * mipsnbsd-tdep.c: Update.
8454 * mips-linux-tdep.c: Update.
8455 * irix5-nat.c: Update.
8456 * mips-tdep.h (mips_isa_regsize): Update.
8457
711cc5cd
AC
8458 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
8459 Delete all disabled code.
8460 * gdb-events.h, gdb-events.c: Re-generate.
8461
e63bbc88
MK
84622004-04-19 Jerome Guitton <guitton@gnat.com>
8463 Mark Kettenis <kettenis@gnu.org>
8464
8465 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
8466 the function begins with a branch instruction.
8467
fd35795f
MK
84682004-04-29 Mark Kettenis <kettenis@gnu.org>
8469
8470 * i386-tdep.c: Fix spelling mistakes.
8471
c960c18f
AC
84722004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8473 Andrew Cagney <cagney@redhat.com>
8474
8475 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
8476 <sys/proc.h>.
8477 * acconfig.h: Provide default _KMEMUSER value.
8478 * config.in, configure: Re-generate.
8479 * NEWS: Mention fix.
8480
50306a9d
RC
84812004-04-24 Randolph Chung <tausq@debian.org>
8482
8483 * configure.host (hppa*-*-linux*): New target.
8484 * configure.tgt (hppa*-*-linux*): Likewise.
8485 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
8486 gdbarch_init_osabi() call earlier so that osabi-specific frame
8487 unwinders can be registered first.
8488 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
8489 hppa-linux-nat.c.
8490 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
8491 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
8492 * config/pa/linux.mh: New file.
8493 * config/pa/linux.mt: New file.
8494 * config/pa/nm-linux.h: New file.
8495 * config/pa/xm-linux.h: New file.
8496 * hppa-linux-nat.c: New file.
8497 * hppa-linux-tdep.c: New file.
8498
2a6228ef
RC
84992004-04-28 Randolph Chung <tausq@debian.org>
8500
8501 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
8502 return values.
8503 (hppa32_push_dummy_call): Fix small struct and floating point argument
8504 passing, and make sure the stack frame is properly aligned.
8505
82c10df6
AC
85062004-04-28 Andrew Cagney <cagney@redhat.com>
8507
d762c46a
AC
8508 * stack.c (print_stack_frame): Fix description.
8509
82c10df6
AC
8510 * NEWS: Mention gdb/gdbserver/configure execute permission
8511 changed. PR server/519.
8512
0faf0076
AC
85132004-04-28 Andrew Cagney <cagney@redhat.com>
8514
8515 * stack.c (print_stack_frame_stub): Delete declaration.
8516 (struct print_stack_frame_args, print_stack_frame)
8517 (print_frame_info, print_frame): Replace "source" with print what.
8518 Replace "print" with "print_level". Replace "args" with
8519 "print_args".
8520 * frame.h (show_and_print_stack_frame, print_stack_frame)
8521 (print_frame_info): Update declarations.
8522 * stack.c (select_and_print_frame, frame_command)
8523 (current_frame_command, up_command, down_command): Update calls -
8524 use get_selected_frame, pass "enum print_what" for source, do not
8525 call frame_relative_level.
8526 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
8527 * remote-rdp.c (remote_rdp_open): Ditto.
8528 * remote-mips.c (common_open): Ditto.
8529 * remote-e7000.c (e7000_start_remote): Ditto.
8530 * ocd.c (ocd_start_remote): Ditto.
8531 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
8532 * infrun.c (normal_stop): Ditto.
8533 * inflow.c (kill_command): Ditto.
8534 * infcmd.c (finish_command): Ditto.
8535 * corelow.c (core_open): Ditto.
8536 * tracepoint.c (finish_tfind_command): Ditto.
8537 * thread.c (info_threads_command, info_threads_command)
8538 (restore_current_thread, do_captured_thread_select): Ditto.
8539 * ada-tasks.c (task_command): Ditto.
8540
f4c5303c
OF
85412004-04-26 Orjan Friberg <orjanf@axis.com>
8542
8543 * frame.c: Include "observer.h".
8544 (frame_observer_target_changed): New function.
8545 (_initialize_frame): Attach target_changed observer.
8546 * regcache.c: Include "observer.h".
8547 (regcache_observer_target_changed): New function.
8548 (_initialize_regcache): Attach target_changed observer.
8549 * valops.c: Include "observer.h".
8550 (value_assign): Notify target_changed event when modifying register.
8551 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
8552
7270d8f2
OF
85532004-04-26 Orjan Friberg <orjanf@axis.com>
8554
8555 From Paul Koning <pkoning@equallogic.com>:
8556 * breakpoint.c (free_valchain): New function.
8557 (insert_bp_location, delete_breakpoint): Use free_valchain.
8558 (remove_breakpoint): Do not remove the valchain.
8559 (bpstat_stop_status): If not stopped by watchpoint, skip
8560 watchpoints when generating stop status list.
8561 * infrun.c (handle_inferior_event): Make
8562 stepped_after_stopped_by_watchpoint a global variable.
8563 * remote.c (remote_stopped_data_address): Return watch data
8564 address rather than zero if stepped_after_stopped_by_watchpoint is
8565 set.
8566
02d62932
MC
85672004-04-25 Michael Chastain <mec.gnu@mindspring.com>
8568
8569 Fix PR gdb/1626.
8570 * configure.in: Check for curses after termcap.
8571 On osf5.*, do not check for ncurses.
8572 * configure: Regenerate.
8573
3e9a183c
MK
85742004-04-25 Mark Kettenis <kettenis@gnu.org>
8575
c79ac407
MK
8576 * ppcobsd-nat.c: Include "ppc-tdep.h".
8577 * Makefile.in (ppcobsd-nat.o): Update dependencies.
8578
3e9a183c
MK
8579 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
8580 Fixes PR tdep/1623 and PR tdep/1624.
8581
38cc9c28
MC
85822004-04-24 Michael Chastain <mec.gnu@mindspring.com>
8583
8584 * xmodem.h, xmodem.c: Remove files.
8585 * Makefile.in: Remove references to xmodem.h, xmodem.c.
8586
7f07c5b6
RC
85872004-04-23 Randolph Chung <tausq@debian.org>
8588
8589 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
8590 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
8591 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
8592 for handling stackless frames.
8593 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
8594
9f7194c3
RC
85952004-04-23 Randolph Chung <tausq@debian.org>
8596
8597 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
8598 starts at a pc before the frame is created.
8599
dcff6009
JB
86002004-04-23 Joel Brobecker <brobecker@gnat.com>
8601
8602 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
8603
40711ff1 86042004-04-23 Jerome Guitton <guitton@gnat.com>
65951cd9
JG
8605
8606 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
8607 use convert_typed_floating to get the appropriate format.
8608
abc485a1
RC
86092004-04-22 Randolph Chung <tausq@debian.org>
8610
8611 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
8612 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
8613 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
8614 (hppa_sign_extend): Add prototype.
8615 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
8616 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
8617 (sign_extend): Rename with hppa_ prefix and make non-static. Other
8618 hppa targets will also use these functions.
8619 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
8620 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
8621 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
8622 (hppa_gdbarch_init): Remove gdbarch setting of
8623 skip_trampoline_code, in_solib_call_trampoline and
8624 in_solib_return_trampoline.
8625 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
8626 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
8627 hppa_in_solib_call_trampoline.
8628 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
8629 Moved from hppa-tdep.c.
8630 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
8631 in_solib_call_trampoline and in_solib_return_trampoline.
8632
369aa520
RC
86332004-04-22 Randolph Chung <tausq@debian.org>
8634
8635 * hppa-tdep.c (hppa_debug): New variable.
8636 (find_unwind_entry, hppa_frame_cache): Add debug output.
8637 (_initialize_hppa_tdep): Add command to set debug flag.
8638
476be15e
AC
86392004-04-22 Andrew Cagney <cagney@redhat.com>
8640
8641 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
8642 "trad-frame.h".
8643 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
8644 signal trampoline unwinder.
8645 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
8646
d195bc9f
MK
86472004-04-22 Mark Kettenis <kettenis@gnu.org>
8648
8649 Add OpenBSD/powerpc support.
8650 * NEWS (New native configurations): Mention OpenBSD/powerpc.
8651 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
8652 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
8653 (ppc_collect_fpregset): New prototypes.
8654 * ppcobsd-nat.c: New file.
8655 * ppcobsd-tdep.c: New file.
8656 * ppcobsd-tdep.h: New file.
8657 * rs6000-tdep.c: Include "regset.h".
8658 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
8659 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
8660 New functions.
8661 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
8662 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
8663 (rs6000-tdep.o): Update dependencies.
8664 * configure.host: Add powerpc-*-openbsd.
8665 * configure.tgt: Add powerpc-*-openbsd.
8666 * config/powerpc/obsd.mh: New file.
8667 * config/powerpc/nm-obsd.h: New file.
8668 * config/powerpc/obsd.mt: New file.
8669
6f14cc33
AC
86702004-04-22 Andrew Cagney <cagney@redhat.com>
8671
fcf29e5f
AC
8672 * frame.h (show_frame_info): Delete declaration.
8673
6f14cc33
AC
8674 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
8675 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
8676 * m32r-tdep.c (m32r_frame_this_id): Ditto.
8677 * frv-tdep.c (frv_frame_this_id): Ditto.
8678 * avr-tdep.c (avr_frame_this_id): Ditto.
8679
e5786a5c
EZ
86802004-04-22 Elena Zannoni <ezannoni@redhat.com>
8681
8682 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
8683
26e75e5c
JB
86842004-04-22 Jim Blandy <jimb@redhat.com>
8685
8686 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
8687 register number zero.
8688
d8d65dd3
MS
86892004-04-21 Michael Snyder <msnyder@redhat.com>
8690
8691 * mips-tdep.c (heuristic_proc_start):
8692 Warning() already prefixes "Warning: ".
8693
9a4105ab
AC
86942004-04-21 Andrew Cagney <cagney@redhat.com>
8695
8696 * annotate.h (deprecated_annotate_starting_hook)
8697 (deprecated_annotate_stopped_hook)
8698 (deprecated_annotate_exited_hook)
8699 (deprecated_annotate_signal_hook)
8700 (deprecated_annotate_signalled_hook): Deprecate.
8701 * tracepoint.h (deprecated_create_tracepoint_hook)
8702 (deprecated_delete_tracepoint_hook)
8703 (deprecated_modify_tracepoint_hook)
8704 (deprecated_trace_find_hook)
8705 (deprecated_trace_start_stop_hook): Deprecate.
8706 * target.h (deprecated_target_new_objfile_hook): Deprecate.
8707 * remote.h (deprecated_target_resume_hook)
8708 (deprecated_target_wait_loop_hook): Deprecate.
8709 * gdbcore.h (deprecated_exec_file_display_hook)
8710 (deprecated_file_changed_hook): Deprecate.
8711 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
8712 * defs.h (deprecated_modify_breakpoint_hook)
8713 (deprecated_command_loop_hook, deprecated_show_load_progress)
8714 (deprecated_print_frame_info_listing_hook)
8715 (deprecated_query_hook, deprecated_warning_hook)
8716 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
8717 (deprecated_delete_breakpoint_hook)
8718 (deprecated_interactive_hook, deprecated_registers_changed_hook)
8719 (deprecated_readline_begin_hook, deprecated_readline_hook)
8720 (deprecated_readline_end_hook, deprecated_register_changed_hook)
8721 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
8722 (deprecated_context_hook, deprecated_target_wait_hook)
8723 (deprecated_attach_hook, deprecated_detach_hook)
8724 (deprecated_call_command_hook, deprecated_set_hook)
8725 (deprecated_error_hook, deprecated_error_begin_hook)
8726 (deprecated_ui_load_progress_hook): Deprecate.
8727 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
8728 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
8729 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
8730 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
8731 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
8732 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
8733 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
8734 * annotate.c, aix-thread.c: Update.
8735
62cf13cc
AC
87362004-04-21 Andrew Cagney <cagney@redhat.com>
8737
b2e31a62
AC
8738 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
8739 * vaxnbsd-tdep.c: Include "gdb_string.h".
8740
62cf13cc
AC
8741 * symfile.c (symbol_file_add_from_memory): #if 0 function.
8742 (add_symbol_file_from_memory_command): #if 0 function body, call
8743 error instead.
8744
00e32a35
AC
87452004-04-21 Andrew Cagney <cagney@redhat.com>
8746
8747 * gdbcore.h: Update copyright.
8748 (deprecated_add_core_fns): Rename add_core_fns.
8749 * win32-nat.c (_initialize_core_win32): Update.
8750 * sun3-nat.c (_initialize_core_sun3): Update.
8751 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
8752 * rs6000-nat.c (_initialize_core_rs6000): Update.
8753 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
8754 * nto-tdep.c (_initialize_nto_tdep): Update.
8755 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
8756 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
8757 * mips-nat.c (_initialize_core_mips): Update.
8758 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
8759 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
8760 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
8761 * lynx-nat.c (_initialize_core_lynx): Update.
8762 * irix5-nat.c (_initialize_core_irix5): Update.
8763 * i386-interix-nat.c (_initialize_core_interix): Update.
8764 * cris-tdep.c (_initialize_cris_tdep): Update.
8765 * corelow.c (deprecated_add_core_fns): Update.
8766 * core-regset.c (_initialize_core_regset): Update.
8767 * core-aout.c (_initialize_core_aout): Update.
8768 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
8769 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
8770 * alpha-nat.c (_initialize_core_alpha): Update.
8771
13c7b1ca
JB
87722004-04-21 Jim Blandy <jimb@redhat.com>
8773
8774 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
8775
7b5a2f43
DJ
87762004-04-19 Daniel Jacobowitz <drow@mvista.com>
8777
8778 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
8779 Delete.
8780 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
8781 (read_attribute_value): Update calls to dwarf_alloc_block.
8782 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
8783 dwarf2_tmp_obstack.
8784 (psymtab_to_symtab_1): Likewise. Clean up using
8785 free_stack_comp_unit.
8786 (add_to_cu_func_list): Use the comp_unit_obstack.
8787
05cf31d1
JB
87882004-04-19 Joel Brobecker <brobecker@gnat.com>
8789
8790 * dwarf2read.c (dwarf2_flag_true_p): New function.
8791 (die_is_declaration): Use the function above. Add some comments.
8792
adf93a2f
MK
87932004-04-19 Mark Kettenis <kettenis@gnu.org>
8794
8795 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
8796 architecture when registering sparcnbsd_core_osabi_sniffer.
8797 Adjust comment.
8798
748894bf
MK
87992004-04-18 Mark Kettenis <kettenis@gnu.org>
8800
f622ad42
MK
8801 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
8802 return value.
8803
c4fc7f1b
MK
8804 Based on a patch from Brian Ford <ford@vss.fsi.com>:
8805 * i386-tdep.c: Correct register numbering scheme comments
8806 throughout.
8807 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
8808 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
8809 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
8810 (i386_gdb_arch_init): Likewise.
8811
b4ead1bd
MK
8812 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
8813 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
8814 ppcnbsd-tdep.o.
8815
748894bf
MK
8816 * m68k-tdep.h: Tweak comments.
8817 * m68k-tdep.c: Tweak comment.
8818
fdd72f95
RC
88192004-04-17 Randolph Chung <tausq@debian.org>
8820
8821 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
8822 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
8823 (hppa_hpux_som_init_abi): Set is_elf to 0.
8824 (hppa_hpux_elf_init_abi): Set is_elf to 1.
8825 * hppa-tdep.c (low_text_segment_address): Remove global.
8826 (record_text_segment_lowaddr): Pass in low address as parameter. Use
8827 section offset to calculate segment address.
8828 (internalize_unwinds): Define low_text_segment_address as local and
8829 pass to record_text_segment_lowaddr for ELF targets.
8830 (hppa_gdbarch_init): Zero fill tdep structure.
8831 (hppa_dump_tdep): Print tdep structure.
8832 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
8833
0f8d9d59
RC
88342004-04-17 Randolph Chung <tausq@debian.org>
8835
8836 * hppa-tdep.c (hppa_pseudo_register_read): Define.
8837 (hppa_gdbarch_init): Set pseudo_register_read.
8838 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
8839 * regcache.c (supply_register): Remove check for
8840 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
8841
7c46b9fb
RC
88422004-04-17 Randolph Chung <tausq@debian.org>
8843
8844 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
8845 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
8846 (hpread_adjust_stack_address): Move to hpread.c.
8847 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
8848 obj_private_struct): Move from tm-hppa.h.
8849 * hpread.c (hppa-tdep.h): Include.
8850 (hpread_adjust_stack_address): Move from hppa-tdep.c.
8851 (hpread_read_function_type, hpread_read_doc_function_type)
8852 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
8853 directly.
8854 * pa64solib.c (hppa-tdep.h): Include.
8855 * somsolib.c (hppa-tdep.h): Include.
8856 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
8857 inferior_status): Remove unused forward declarations.
8858 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
8859 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
8860 obj_private_struct): Move to hppa-tdep.h.
8861 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
8862
8d153463
RC
88632004-04-17 Randolph Chung <tausq@debian.org>
8864
8865 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
8866 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
8867 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
8868 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
8869 Remove forward declaration and make static.
8870 (hppa_reg_struct_has_addr): Remove.
8871
350c2e5b
JB
88722004-04-16 Joel Brobecker <brobecker@gnat.com>
8873
8874 * observer.sh: Move comments in sed command to first column.
8875
bbde78fa
JM
88762004-04-16 Jason Molenda (jmolenda@apple.com)
8877
8878 * frame.c: Minor typeo corrections in comments.
8879
e0270fd9
JB
88802004-04-16 Joel Brobecker <brobecker@gnat.com>
8881
8882 * observer.c (observer_test_first_notification_function): Update
8883 function profile.
8884 (observer_test_second_notification_function): Likewise.
8885 (observer_test_third_notification_function): Likewise.
8886
3d049254
MK
88872004-04-16 Mark Kettenis <kettenis@gnu.org>
8888
8889 From Brian Ford <ford@vss.fsi.com>:
8890 * i386-tdep.c (i386_coff_init_abi): New function.
8891 * i386-tdep.h (i386_coff_init_abi): New prototype.
8892 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
8893 register number translation functions for DWARF and DWARF 2.
8894
7867684d
JB
88952004-04-16 Joel Brobecker <brobecker@gnat.com>
8896
8897 * dwarf2read.c: Back out my previous change, it was incorrect.
8898
72bf9492
DJ
88992004-04-16 Daniel Jacobowitz <drow@mvista.com>
8900
8901 * dwarf2read.c: Include "hashtab.h".
8902 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
8903 has_namespace_info.
8904 (struct partial_die_info): Add comments. Use bitfields to reduce
8905 memory footprint. Add scope, scope_set, has_specification,
8906 spec_offset, die_parent, die_child, and die_sibling.
8907 (peek_die_abbrev): Add prototype.
8908 (partial_read_comp_unit_head): New function, broken out from
8909 dwarf2_build_psymtabs_hard.
8910 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
8911 Use partial_read_comp_unit_head. Initialize the CU and
8912 comp_unit_obstack. Update calls to read_partial_die and
8913 scan_partial_symbols. Use free_stack_comp_unit and
8914 load_partial_dies.
8915 (scan_partial_symbols): Change PDI to a pointer. Use the child and
8916 sibling pointers to walk partial DIEs. Call fixup_partial_die.
8917 Update calls to helper functions. Remove NAMESPACE argument.
8918 Update comments.
8919 (partial_die_parent_scope, partial_die_full_name): New functions.
8920 (add_partial_symbol): Remove namespace argument. Update call to
8921 pdi_needs_namespace. Use partial_die_full_name. Handle
8922 DW_TAG_namespace. Check has_namespace_info flag.
8923 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
8924 tag. Handle namespaces.
8925 (add_partial_namespace, add_partial_enumeration): Simplify.
8926 (guess_structure_name): New function, derived from
8927 add_partial_structure.
8928 (add_partial_structure): Remove.
8929 (determine_class_name): Update comment.
8930 (dwarf2_read_abbrevs): Set has_namespace_info flag.
8931 (is_type_tag_for_partial, load_partial_dies): New functions.
8932 (read_partial_die): Pass abbrev and abbrev_len as arguments.
8933 Record specifications instead of following them immediately.
8934 (find_partial_die_in_comp_unit, find_partial_die)
8935 (fixup_partial_die, free_stack_comp_unit)
8936 (hashtab_obstack_allocate, dummy_obstack_deallocate)
8937 (partial_die_hash, partial_die_eq): New functions.
8938 * Makefile.in (hashtab_h): Define.
8939 (dwarf2read.o): Update dependencies.
8940 (observer_inc, observer_h): Move to the correct section.
8941
fdc860a3
JB
89422004-04-15 Joel Brobecker <brobecker@gnat.com>
8943
8944 * dwarf2read.c (dwarf2_attribute_true_p): New function.
8945 (die_is_declaration): Use the function above. Add comment.
8946
dc718098
JB
89472004-04-15 Joel Brobecker <brobecker@gnat.com>
8948
8949 * dwarf2read.c (read_structure_scope): Identify stub types
8950 using die_is_declaration() only.
8951
8718a420
RM
89522004-04-15 Roland McGrath <roland@redhat.com>
8953
8954 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
8955 argument instead of NAME.
8956 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
8957 in call to symbol_file_add_with_addrs_or_offsets.
8958 (build_addr_info): New function, helper for ...
8959 (symbol_file_add_from_memory): New function.
8960 (add_symbol_file_from_memory_command): New function using that.
8961 (_initialize_symfile): Register it for add-symbol-file-from-memory.
8962 (pre_add_symbol_hook): Add const to argument type.
8963 * symfile.h (symbol_file_add_from_memory): Declare it.
8964
8b910bab
MK
89652004-04-15 Mark Kettenis <kettenis@gnu.org>
8966
9f076e7a
MK
8967 * NEWS (New native configurations): Mention OpenBSD/vax.
8968 * configure.host: Add vax-*-openbsd*.
8969 * config/vax/obsd.mh: New file.
8970 * config/vax/nm-obsd.h: New file.
8971
8b910bab
MK
8972 * vax-tdep.c: Include "regset.h".
8973 (vax_supply_gregset): New function.
8974 (vax_gregset): New variable.
8975 (vax_regset_from_core_section): New function.
8976 (vax_gdbarch_init): Set regset_from_core_section.
8977 * Makefile.in (vax-tdep.o): Update dependencies.
8978
7a464420
AC
89792004-04-15 Andrew Cagney <cagney@redhat.com>
8980
8981 * observer.c (normal_stop_subject, observer_notify_normal_stop)
8982 (observer_normal_stop_notification_stub)
8983 (observer_attach_normal_stop, observer_detach_normal_stop):
8984 Delete, replaced by #include "observer.inc".
8985 * infrun.c (normal_stop): Pass "stop_bpstat" to
8986 observer_notify_normal_stop.
8987 * Makefile.in (observer_inc): Define.
8988 (observer.o): Update dependencies.
8989 (observer.h, observer.inc): New rules.
8990 * observer.h: Delete file.
8991 * observer.sh: New file.
8992
e36ad527
MK
89932004-04-15 Mark Kettenis <kettenis@gnu.org>
8994
8995 * vax-tdep.c (vax_frame_cache): Fix typo.
8996
67b441e1
MK
89972004-04-14 Mark Kettenis <kettenis@gnu.org>
8998
6f606e1c
MK
8999 * NEWS (New native configurations): Mention NetBSD/vax.
9000 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
9001 * config/vax/nbsdelf.mh: New file.
9002 * config/vax/nbsdaout.mh: New file.
9003 * config/vax/nm-nbsd.h: New file.
9004 * config/vax/nm-nbsdaout.h: New file.
9005
9c5519a5
MK
9006 * vaxnbsd-tdep.c: New file.
9007 * Makefile.in (vaxnbsd-tdep.o): New dependency.
9008 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
9009 * config/vax/nbsd.mt: New file.
9010 * config/vax/tm-nbsd.h: New file.
9011
4844a614
MK
9012 * Makefile.in (vaxbsd-nat.o): New dependency.
9013
67b441e1
MK
9014 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
9015 * vax-tdep.c (vax_store_arguments): Remove struct_return and
9016 struct_addr arguments. Don't push return value address.
9017 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
9018 arguments to vax_store_arguments. Store return value address in
9019 R1.
9020 (vax_store_struct_return, vax_extract_return_value)
9021 (vax_store_return_value): Remove functions.
9022 (vax_return_value): New function.
9023 (vax_gdbarch_init): Set return value. Don't set
9024 deprecated_store_struct_return, deprecated_extract_struct_return
9025 and deprecated_store_return_value.
9026
6672f2ae
AS
90272004-04-14 Andreas Schwab <schwab@suse.de>
9028
9029 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
9030 value buffer.
9031 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
9032
7346c184
MK
90332004-04-14 Mark Kettenis <kettenis@gnu.org>
9034
9035 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
9036 (vax_unwind_dummy_id): New functions.
9037 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
9038 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
9039 variables.
9040 (vax_fix_call_dummy): Remove function.
9041 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
9042 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
9043 call_dummy_location, deprecated_call_dummy_words,
9044 deprecated_sizeof_call_dummy_words,
9045 deprecated_call_dummy_breakpoint_offset,
9046 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
9047 and deprecated_dummy_write_sp.
9048
58e23df4
DC
90492004-04-13 David Carlton <carlton@kealia.com>
9050
9051 * MAINTAINERS: Move myself to "paper trail" section.
9052
5e6b39ff
MK
90532004-04-12 Mark Kettenis <kettenis@gnu.org>
9054
7def7fef
MK
9055 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
9056 "trad-frame.h".
9057 (vax_frame_init_saved_regs): Remove function.
9058 (vax_sigtramp_saved_pc): Remove function.
9059 (vax_frame_saved_pc): Remove function.
9060 (vax_frame_args_address): Remove function.
9061 (vax_frame_num_args): Rewrite.
9062 (vax_frame_chain): Remove function.
9063 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
9064 VAX_FP_REGNUM.
9065 (vax_pop_frame): Likewise.
9066 (vax_saved_pc_after_call): Remove function.
9067 (struct vax_frame_cache): New structure.
9068 (vax_frame_cache): New function.
9069 (vax_frame_this_id): New function.
9070 (vax_frame_prev_register): New function.
9071 (vax_frame_unwind): New variable.
9072 (vax_frame_sniffer): New function.
9073 (vax_frame_base_address): New function.
9074 (vax_frame_args_address): New function.
9075 (vax_frame_base): New variable.
9076 (vax_unwind_pc): New function.
9077 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
9078 deprecated_fp_regnum, deprecated_saved_pc_after_call,
9079 deprecated_frame_chain, deprecated_frame_saved_pc,
9080 deprecated_frame_args_address and
9081 deprecated_frame_init_saved_regs.
9082 * Makefile.in (vax-tdep.o): Update dependencies.
9083
53284fc1
MK
9084 * vaxbsd-nat.c: New file.
9085
5e6b39ff
MK
9086 * vax-tdep.h: Update copyright year. Adjust comments.
9087 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
9088 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
9089 (vax_regnum): New enum. Replacing...
9090 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
9091 (VAX_PS_REGNUM): ... these removed macros.
9092 * vax-tdep.c (vax_register_name): Remove prototype.
9093 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
9094 (vax_register_byte, vax_register_raw_size,
9095 vax_register_virtual_size, vax_register_virtual_type): Remove
9096 functions.
9097 (vax_register_type): New function.
9098 (vax_breakpoint_from_pc): Reorganize.
9099 (vax_gdbarch_init): Set register_type. Don't set
9100 deprecated_register_size, deprecated_register_bytes,
9101 deprecated_register_byte, deprecated_register_raw_size,
9102 deprecated_max_register_raw_size,
9103 deprecated_register_virtual_size,
9104 deprecated_max_register_virtual_size and
9105 deprecated_register_virtual_type. Add comment on stack direction.
9106
e9c71e9f
MK
91072004-04-11 Mark Kettenis <kettenis@gnu.org>
9108
9109 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
9110 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
296bc76f 9111 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
e9c71e9f 9112
d46f1176 91132004-04-10 Randolph Chung <tausq@debian.org>
8718a420 9114
d46f1176
RC
9115 * MAINTAINERS (write after approval): Add myself.
9116
a2a84a72
RC
91172004-04-07 Randolph Chung <tausq@debian.org>
9118
9119 * hppa-tdep.c (hppa_inner_than): Remove.
9120 (is_pa_2): Remove unused static variable.
8718a420 9121 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
a2a84a72 9122
e85c3284
PH
91232004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
9124
9125 * language.h (language_defn): Add new la_post_parser field.
9126 * parser-defs.h (null_post_parser): New declaration (default for
9127 la_post_parser).
8718a420 9128
e85c3284
PH
9129 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
9130 insert call to that function.
9131 (parse_exp_in_context): New function, including code formerly in
8718a420 9132 parse_exp_1. Calls language-dependent post-parser after
e85c3284
PH
9133 prefixification.
9134 (parse_expression_in_context): New exported function.
9135 (null_post_parser): New definition.
9136 * expression.h (parse_expression_in_context): Add declaration.
8718a420 9137
e85c3284
PH
9138 * p-lang.c (pascal_language_defn): Add trivial post-parser.
9139 * c-lang.c (c_language_defn): Ditto.
9140 (cplus_language_defn): Ditto.
9141 (asm_language_defn): Ditto.
9142 (minimal_language_defn): Ditto.
9143 * f-lang.c (f_language_defn): Ditto.
9144 * jv-lang.c (java_language_defn): Ditto.
9145 * language.c (unknown_language_defn): Ditto.
9146 (auto_language_defn): Ditto.
9147 (local_language_defn): Ditto.
9148 * m2-lang.c (m2_language_defn): Ditto.
9149 * scm-lang.c (scm_language_defn): Ditto.
9150 * obj-lang.c (objc_language_defn): Ditto.
8718a420 9151
d9f8c85b
MK
91522004-04-10 Mark Kettenis <kettenis@gnu.org>
9153
fa34704a
MK
9154 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
9155 (amd64nbsd_mcontext_addr): New function.
9156 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
9157 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
9158 with amd64nbsd_r_reg_offset, instead of building it on the fly.
9159
403e1656
MK
9160 * corelow.c (core_xfer_partial): Fix coding standards violation.
9161 Add support for TARGET_OBJECT_WCOOKIE.
9162
a57e5a95
MK
9163 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
9164 deprecated_pc_in_sigtramp.
9165 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
9166 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
9167 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
9168 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
9169 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
9170 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
9171 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
9172
377d9ebd
MK
9173 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
9174 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
9175 Fix typo.
9176
f0ef85a5
MK
9177 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
9178 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
9179 (amd64_collect_fxsave): Likewise.
9180
d9f8c85b
MK
9181 * i386-sol2-tdep.c: Include "gdb_string.h".
9182 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
9183 name.
9184 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
9185
75f501b5
MK
91862004-04-10 Mark Kettenis <kettenis@gnu.org>
9187
9188 * i386-sol2-tdep.c: Include "solib-svr4.h".
9189 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9190 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
9191 * config/i386/tm-i386sol2.h: Include :solib.h".
9192 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
9193 solib-svr4.o and solib-legacy.o.
9194 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
9195 solib-svr4.o.
9196
b31bc724
MK
91972004-04-09 Mark Kettenis <kettenis@gnu.org>
9198
18bbbd9e
MK
9199 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
9200 whether a register is supplied by PTRACE_GETFPREGS.
9201 (store_inferior_registers): Likewise.
9202 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
9203 whether a register is supplied by PT_GETFPREGS.
9204 (store_inferior_registers): Likewise.
9205
3c30bf1b
MK
9206 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
9207 * config/i386/linux64.mt (TDEPFILES): Likewise.
9208
a4194092
MK
9209 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
9210
911bc6ee
MK
9211 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
9212 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
9213 the program counter is in the range specified by `struct
9214 gdbarch_tdep'.
9215 * amd64-linux-tdep.c: Include "symtab.h".
9216 (amd64_linux_pc_in_sigtramp): Remove function.
9217 (amd64_linux_sigtramp_p): New function.
9218 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
9219 deprecated_pc_in_sigtramp.
9220 * amd64nbsd-tdep.c: Include "symtab.h".
9221 (amd64nbsd_sigtramp_p): New function.
9222 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
9223 deprecated_pc_in_sigtramp.
9224 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
9225 few comments.
9226 (amd64obsd_pc_in_sigtramp): Remove function.
9227 (amd64obsd_sigtramp_p): New function.
9228 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
9229 deprecated_pc_in_sigtramp.
9230 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
9231 (i386bsd_pc_ins_sigtramp): Remove prototype.
9232 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
9233 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
9234 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
9235 the program counter is in the range specified by `struct
9236 gdbarch_tdep'.
9237 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
9238 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
9239 (i386_go32_pc_in_sigtramp): Remove function.
9240 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
9241 Initialize TDEP->sigtramp_p.
9242 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
9243 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
9244 deprecated_pc_in_sigtramp.
9245 * i386-linux-tdep.c: Adjust comments.
9246 (i386_linux_pc_in_sigtramp): Remove function.
9247 (i386_linux_sigtramp_p): New function.
9248 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
9249 deprecated_pc_in_sigtramp.
9250 * i386-nto-tdep.c: Update copyright year.
9251 (i386nto_pc_in_sigtramp): Remove function.
9252 (i386nto_sigtramp_p): New function.
9253 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
9254 SP_REGNUM.
9255 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
9256 deprecated_pc_in_sigtramp.
9257 * i386-sol2-tdep.c: Update copyright year.
9258 (i386_sol2_pc_in_sigtramp): Remove function.
9259 (i386_sol2_sigtramp_p): New function.
9260 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
9261 deprecated_pc_in_sigtramp.
9262 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
9263 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
9264 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9265 deprecated_sigtramp_start and deprecated_sigtramp_end.
9266 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
9267 (i386nbsd_pc_in_sigtramp): Remove function.
9268 (i386nbsd_sigtramp_p): New function.
9269 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9270 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
9271 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
9272 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
9273 (i386obsd_pc_in_sigtramp): Remove function.
9274 (i386obsd_sigtramp_p): New function.
9275 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
9276 functions.
9277 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9278 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
9279 TDEP->sigtramp_p.
9280 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
9281 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
9282 dependencies.
9283
e083e6ec
MK
9284 * config/i386/i386aout.mt: Remove file.
9285
bd153b94
MK
9286 * configure.tgt: Remove i[34567]86-*-go32*,
9287 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
9288 and i[34567]86-*-isc*. Set gdb_target to i386 for
9289 i[34567]86-*-netware* and i[34567]86-*-*.
9290 * config/i386/i386.mt: New file.
9291 * config/i386/embed.mt: Remove file.
9292 * config/i386/go32.mt: Remove file.
9293 * config/i386/i386nw.mt: Remove file.
9294 * config/i386/i386v.mt: Remove file.
9295 * config/i386/tm-go32.h: Remove file.
9296
4a1bcc8c
MK
9297 * tui/tui-hooks.c: Include "readline/readline.h" after
9298 "gdb_curses.h" instead of before.
9299 * tui/tui-io.c: Likewise.
9300
f9a79064
MK
9301 * tui/tui.c: Fix typo in comment.
9302
b31bc724
MK
9303 * sparc64-tdep.c (sparc_address_from_register): Remove function.
9304
f83f82bc
AC
93052004-04-08 Andrew Cagney <cagney@redhat.com>
9306
9307 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
9308 (deprecated_exception_support_initialized): Declare.
8718a420 9309 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
f83f82bc
AC
9310 (initialize_hp_cxx_exception_support)
9311 (child_enable_exception_callback): Update.
9312 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
9313 (deprecated_exception_support_initialized): Rename
9314 deprecated_exception_catchpoints_are_fragile and
9315 deprecated_exception_support_initialized.
9316 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
9317
9318 * symtab.c (deprecated_hp_som_som_object_present): Rename
9319 hp_som_som_object_present.
9320 * symtab.h (deprecated_hp_som_som_object_present): Declare.
9321 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
9322 Update. Delete extern declaration.
9323 * valops.c (hp_som_som_object_present): Ditto.
8718a420 9324 * parse.c (deprecated_hp_som_som_object_present)
f83f82bc
AC
9325 (parse_nested_classes_for_hpacc): Ditto.
9326 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
8718a420 9327 * hppa-hpux-tdep.c (hp_som_som_object_present)
f83f82bc
AC
9328 (initialize_hp_cxx_exception_support): Ditto.
9329 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
8718a420 9330 * cp-valprint.c (hp_som_som_object_present)
f83f82bc 9331 (cp_print_class_method): Ditto.
8718a420 9332 * c-typeprint.c (hp_som_som_object_present):
f83f82bc
AC
9333 (c_type_print_base): Ditto.
9334 * c-exp.y (hp_som_som_object_present): Ditto.
9335
fb2be677
AC
93362004-04-08 Andrew Cagney <cagney@redhat.com>
9337
9338 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
9339 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
9340 (frame_unwind_find_by_frame): Re-implement the unwind code so
9341 that it can both prepend and append sniffers. Replace
9342 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
9343 * tramp-frame.c (tramp_frame_append): Use
9344 frame_unwind_prepend_unwinder.
9345 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
9346 frame_unwind_register_unwinder.
9347 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
9348 tramp_frame_append.
9349 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
8718a420 9350 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
fb2be677
AC
9351 (mips_linux_init_abi): Update.
9352
67faf007
KB
93532004-04-08 Kevin Buettner <kevinb@redhat.com>
9354
9355 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
9356 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
9357 file support.
9358
8973ff21
KB
93592004-04-07 Kevin Buettner <kevinb@redhat.com>
9360
9361 * ia64-tdep.c (elf.h): Don't include.
9362 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
9363
4a0e2f88
JM
93642004-04-07 Jason Molenda (jmolenda@apple.com)
9365
9366 * frame.h: Typeo corrections in comments.
9367
9872ad24
JB
93682004-04-07 Jim Blandy <jimb@redhat.com>
9369
9370 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
9371 %esp and %ebp
9372
70b216c8
MK
93732004-04-07 Mark Kettenis <kettenis@gnu.org>
9374
11d5789c
MK
9375 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
9376 * config/sparc/linux64.mt (TDEPFILES): Likewise.
9377 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
9378 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
9379 and solib-legacy.o.
9380 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
9381 solib-svr4.o.
9382 * config/sparc/tm-sol2.h: Update copyright year. Include
9383 "solib.h".
9384
70b216c8
MK
9385 * sparc-sol2-tdep.c: Update copyright year. Include
9386 "solib-svr4.h".
9387 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9388 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
9389 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
096f864c 9390 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
70b216c8
MK
9391 dependencies.
9392
6339dc9e
AC
93932004-04-06 Andrew Cagney <cagney@redhat.com>
9394
9395 * infttrace.c: Include "infttrace.h".
9396 * infttrace.h: Include "target.h".
9397 * Makefile.in (infttrace_h): Update.
9398 (infttrace.o): Update.
8718a420 9399
93449403
AC
94002004-04-06 Andrew Cagney <cagney@redhat.com>
9401
6d518969
AC
9402 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
9403 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
9404 move extern declarations from here ...
9405 * infttrace.h: ... to here.
9406 * Makefile.in (hppah-nat.o): Update dependencies.
9407
85f4f2d8
AC
9408 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
9409 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
8718a420 9410 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
85f4f2d8
AC
9411 (hppa_breakpoint_from_pc): Delete.
9412
93449403
AC
9413 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
9414
71456ec6
AC
94152004-04-05 Andrew Cagney <cagney@redhat.com>
9416
9417 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
9418 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
9419 <sys/file.h>.
8718a420 9420
4c02c60c
AC
94212004-04-06 Randolph Chung <tausq@debian.org>
9422
9423 Committed by Andrew Cagney (mechanical change).
9424 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
9425 exception_catchpoints_are_fragile, find_stub_with_shl_get,
9426 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
9427 child_enable_exception_callback, current_ex_event,
9428 null_symtab_and_line, child_get_current_exception_event,
9429 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
9430 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
9431 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
9432 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
9433 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
9434 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
9435 Move hpux-specific definitions ...
9436 * hppa-hpux-tdep.c: ... to here.
9437
3a515653
AC
94382004-04-05 Andrew Cagney <cagney@redhat.com>
9439
9440 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
9441 skip_prologue_using_sal.
9442
c1730d02
AC
94432004-04-05 Andrew Cagney <cagney@redhat.com>
9444
9445 * config/i386/tm-i386.h: Delete file.
9446 * config/i386/tm-vxworks.h: Update copyright, do not include
9447 "tm-i386.h".
9448 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
9449 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
9450 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
9451 * config/i386/ncr3000.mt (TM_FILE): Delete.
9452 * config/i386/interix.mt (TM_FILE): Delete.
9453 * config/i386/i386v.mt (TM_FILE): Delete.
9454 * config/i386/i386nw.mt (TM_FILE): Delete.
9455 * config/i386/i386gnu.mt (TM_FILE): Delete.
9456 * config/i386/i386aout.mt (TM_FILE): Delete.
9457 * config/i386/embed.mt (TM_FILE): Delete.
9458
8b67aa36
KB
94592004-04-05 Kevin Buettner <kevinb@redhat.com>
9460
9461 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
9462 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
9463 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
9464 (accg7_regnum): New constants.
9465 (last_spr_regnum, last_pseudo_regnum): Update.
c2f59a1a
KB
9466 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
9467 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
8b67aa36
KB
9468 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
9469 for accg registers.
9470 (frv_register_sim_regno): Update spr_map[].
9471
3c7012f5
AC
94722004-04-04 Andrew Cagney <cagney@redhat.com>
9473
9474 * config/mips/xm-riscos.h: Delete.
9475 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
9476 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
9477 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
9478 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
9479 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
9480 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
9481 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
9482 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
9483 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
9484 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
9485 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
9486 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
9487 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
9488 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
9489 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
9490 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
9491 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
9492 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
9493 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
9494 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
9495 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
9496 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
9497 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
9498 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
9499 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
9500 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
8718a420 9501
3c7012f5
AC
9502 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
9503 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
9504 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
9505 * configure.host: Remove m680[01]0-sun-sunos3*,
9506 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
9507 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
9508 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
9509 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
9510 mips-*-riscos*.
9511 * NEWS: Mention removed systems.
9512
99d16a21
AC
95132004-04-04 Andrew Cagney <cagney@redhat.com>
9514
9515 GDB 6.1 release created from 6.1 branch.
9516
6cdf9d98
AC
95172004-04-04 Andrew Cagney <cagney@redhat.com>
9518
98d346c3
AC
9519 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
9520 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
9521 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
9522
6cdf9d98
AC
9523 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
9524 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
9525 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
9526
859a326d
JB
95272004-04-03 Jim Blandy <jimb@redhat.com>
9528
9529 * MAINTAINERS: Chris Faylor has changed employers; add him to
9530 "paper trail" section, and update his E-mail address.
9531
b87178c3
AC
95322004-04-03 Andrew Cagney <cagney@redhat.com>
9533
4ea2acf0
AC
9534 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
9535 generic dummy frames.
9536 * dummy-frame.c: Update copyright.
9537 (dummy_frame_sniffer): Delete check for generic dummy frames.
9538
d0bd2d18 9539 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
8718a420 9540 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
d0bd2d18
AC
9541 (REG_PARM_STACK_SPACE): Delete.
9542 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
9543 Inline reference to REG_PARM_STACK_SPACE.
9544
b87178c3
AC
9545 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
9546 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
9547 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
9548 (FRAME_BASE_BEFORE_SIGTRAMP)
9549 (hppa32_hpux_frame_base_before_sigtramp)
9550 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
9551 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
9552 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
9553 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
9554 (FRAME_BASE_BEFORE_SIGTRAMP)
9555 (hppa64_hpux_frame_base_before_sigtramp)
9556 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
9557
43e2e1a0
AC
95582004-04-03 Andrew Cagney <cagney@redhat.com>
9559
9560 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
9561
ddc135a4
AC
95622004-04-02 Andrew Cagney <cagney@redhat.com>
9563
9564 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
9565 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
9566 * dummy-frame.h: Delete out-of-date comments.
9567 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
9568 * gdbarch.h, gdbarch.c: Re-generate.
9569
d15bfd3a 95702004-04-02 Joel Brobecker <brobecker@gnat.com>
8718a420 9571
d15bfd3a
AC
9572 Committed by Andrew Cagney <cagney@redhat.com>.
9573 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
9574 into account an instruction saving a register if we have already
9575 seen an earlier instruction saving that same register.
9576
f04ceafa
AC
95772004-04-02 Andrew Cagney <cagney@redhat.com>
9578
08be3abd
AC
9579 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
9580 * gdbarch.h, gdbarch.c: Re-generate.
9581 * frame.c (legacy_get_prev_frame): Delete references to
9582 DEPRECATED_INIT_FRAME_PC_FIRST.
9583
f04ceafa
AC
9584 * infrun.c (pc_in_sigtramp): Delete function.
9585 (check_sigtramp2): Inline call to pc_in_sigtramp, use
9586 get_frame_type.
9587
08e69816
AC
95882004-04-02 Andrew Cagney <cagney@redhat.com>
9589
9590 * infrun.c (handle_step_into_function): Delete code conditional on
9591 legacy_frame_p.
9592 (handle_inferior_event, step_over_function): Ditto.
9593
adb54772
AC
95942004-04-02 Andrew Cagney <cagney@redhat.com>
9595
9596 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
9597 "previous frame inner to this frame" test.
9598
304396fb
AC
95992004-04-02 Andrew Cagney <cagney@redhat.com>
9600
9601 * frame.c (safe_frame_unwind_memory): New function.
9602 * frame.h (safe_frame_unwind_memory): Declare. Update description
9603 of /safe_/ methods.
9604 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
9605 "next_frame". Use safe_frame_unwind_memory.
9606 (tramp_frame_sniffer): Update call to tramp_frame_start.
9607
6502dd73
DJ
96082004-04-01 Daniel Jacobowitz <drow@mvista.com>
9609
9610 * dwarf2read.c (dwarf2_objfile_data_key): New.
9611 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
9612 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
9613 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
9614 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
9615 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
9616 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
9617 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
9618 Remove variables.
9619 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
9620 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
9621 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
9622 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
9623 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
9624 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
9625 Remove macros.
9626 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
9627 data.
9628 (dwarf2_locate_sections, dwarf2_build_psymtabs)
9629 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
9630 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
9631 (read_partial_die, read_full_die, read_indirect_string)
9632 (dwarf_decode_line_header, dwarf_decode_macros)
9633 (dwarf2_symbol_mark_computed): Remove use of removed macros.
9634 Update uses of removed variables.
9635 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
9636 of removed macros.
9637 (_initialize_dwarf2_read): New function.
9638 * symfile.h (dwarf2_has_info): Update prototype.
9639 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
9640 * elfread.c (elf_symfile_read): Likewise.
9641
408752b0
JB
96422004-04-01 Jim Blandy <jimb@redhat.com>
9643
9f744501
JB
9644 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
9645 function for register numbers on all the rs6000-derived targets.
9646 (rs6000_gdbarch_init): Don't register a separate
9647 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
9648 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
9649 variants.
9650
408752b0
JB
9651 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
9652 numbering.
9653
2de41bce
PH
96542004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
9655
9656 * valarith.c: Update copyright notice.
9657 (value_add): Handle range types.
9658 (value_sub): Ditto.
9659 (value_equal): Ditto.
9660 (value_less): Ditto.
9661 (value_neg): Ditto.
9662 (value_complement): Ditto.
8718a420 9663 (value_binop): Simplify slightly by using is_integral_type and
2de41bce 9664 eliminiating unnecessary COERCE_ENUMs.
8718a420 9665
5613d8d3
AC
96662004-03-31 Andrew Cagney <cagney@redhat.com>
9667
9668 * frame.h (frame_unwind_id): Declare.
9669 * frame.c (frame_unwind_id): New function.
9670 (get_prev_frame_1): New function.
9671 (frame_debug_got_null_frame): New function.
9672 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
9673 code proper to prev_frame, update description.
9674 * infrun.c (step_over_function): Use frame_unwind_id.
9675
c4557624
JB
96762004-04-31 J. Brobecker <brobecker@gnat.com>
9677
9678 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
9679 (hppa64_push_dummy_call): Likewise.
9680
3e6bb910
JB
96812004-03-30 Jim Blandy <jimb@redhat.com>
9682
9683 From Ulrich Weigand:
9684 * utils.c (query): Do not use a va_list variable multiple times.
9685
a2f23071
DJ
96862004-03-29 Daniel Jacobowitz <drow@mvista.com>
9687
9688 * Makefile.in (linux_nat_h): Update dependencies.
9689 * configure.in: Check for <gnu/libc-version.h>.
9690 * configure: Regenerate.
9691 * config.in: Regenerate.
9692 * linux-nat.h: Include "target.h". Add waitstatus field to
9693 struct lwp_info.
9694 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
9695 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
9696 to.
9697 (lin_lwp_handle_extended): New function. Handle clone events.
9698 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
9699 thread exit events.
9700 (child_wait): Handle clone events.
9701 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
9702 * linux-nat.c (linux_enable_event_reporting): Turn on
9703 PTRACE_O_TRACECLONE.
9704 (linux_handle_extended_wait): Handle clone events.
9705 * thread-db.c: Include <gnu/libc-version.h>.
9706 (struct private_thread_info): Add dying flag.
9707 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
9708 higher.
9709 (attach_thread): Update comments. Handle dying threads.
9710 (detach_thread): Set the dying flag.
9711 (check_event): Always call attach_thread.
9712
8d5f9dcb
DJ
97132004-03-29 Daniel Jacobowitz <drow@mvista.com>
9714
9715 * mips-tdep.c (mips_pdr_data): New.
9716 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
9717 (_initialize_mips_tdep): Initialize mips_pdr_data.
9718
66337bb1
CV
97192004-03-29 Corinna Vinschen <vinschen@redhat.com>
9720
9721 * minsyms.c (install_minimal_symbols): Move dropping leading
9722 char from linkage name from here...
9723 (prim_record_minimal_symbol_and_info): ...to here. Simplify
9724 test for "__gnu_compiled*" symbols.
9725
e802b915
JB
97262004-03-28 Jim Blandy <jimb@redhat.com>
9727
9728 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
9729 registers to temp register r0 and byte stores as prologue
9730 instructions.
9731
72b56458
AC
97322004-03-28 Andrew Cagney <cagney@redhat.com>
9733
9734 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
9735 arm*-*-*.
9736
0bfbda3b
SC
97372004-03-28 Stephane Carrez <stcarrez@nerim.fr>
9738
9739 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
9740 and switch the layout to force a display of register window.
9741
5a7225ed
JB
97422004-02-26 J. Brobecker <brobecker@gnat.com>
9743
9744 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
9745 of the INTEGER class.
9746
81a07a45
JB
97472004-03-26 Jim Blandy <jimb@redhat.com>
9748
9749 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
9750 bytes long on PPC GNU/Linux.
9751
8c691c7a
DC
97522004-03-26 David Carlton <carlton@kealia.com>
9753
9754 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
9755
103a0089
AC
97562004-03-25 Andrew Cagney <cagney@redhat.com>
9757
9758 * PROBLEMS: Add general section titles, remove references to
9759 specific releases.
9760
7a5ea0d4
DJ
97612004-03-25 Daniel Jacobowitz <drow@mvista.com>
9762
9763 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
9764 INT_REGISTER_SIZE.
9765 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
9766 FP_REGISTER_VIRTUAL_SIZE.
9767 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
9768 of DEPRECATED_REGISTER_RAW_SIZE.
9769 (arm_register_type): Add gdbarch argument.
9770 (arm_register_raw_size, arm_register_virtual_size): Delete.
9771 (arm_register_byte, arm_extract_return_value)
9772 (arm_store_return_value, arm_get_longjmp_target): Update references
9773 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
9774 (arm_gdbarch_init): Likewise. Don't set
9775 deprecated_register_raw_size, deprecated_register_virtual_size,
9776 deprecated_max_register_raw_size,
9777 deprecated_max_register_virtual_size, or
9778 deprecated_max_register_virtual_type. Do set register_type.
9779 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
9780 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
9781 (FP_REGISTER_VIRTUAL_SIZE): Delete.
9782 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
9783 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
9784 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
9785 INT_REGISTER_SIZE.
9786 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
9787 (remote_rdp_store_register): Likewise.
9788
5792a79b
DJ
97892004-03-24 Daniel Jacobowitz <drow@mvista.com>
9790
9791 * Makefile.in (mips-linux-tdep.o): Update dependencies.
9792 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
9793 to after osabi initialization.
9794 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
9795 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
9796 functions.
9797 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
9798 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
9799 variables.
9800 (mips_linux_init_abi): Append signal trampoline unwinders.
9801
1196bfda
AC
98022004-03-24 Andrew Cagney <cagney@redhat.com>
9803
9804 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
9805 * tramp-frame.c: Include "gdb_assert.h".
9806 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
9807 correct sizeof.
9808 (tramp_frame_append): Validate the tramp frame's instructions.
9809 * Makefile.in (tramp-frame.o): Update dependencies.
9810
4be282b4
AC
98112004-03-23 Andrew Cagney <cagney@redhat.com>
9812
9813 * trad-frame.h (trad_frame_set_reg_addr): Declare.
9814
69aec09b
AC
98152004-03-23 Andrew Cagney <cagney@redhat.com>
9816
9817 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
9818 Nasser as past testsuite/lib/ (and other) maintainers.
9819
63ed89b4
DJ
98202004-03-23 Daniel Jacobowitz <drow@mvista.com>
9821
9822 * infcmd.c (attach_command): Reread symbols if we already have
9823 an exec file.
9824
f3b36427
AC
98252004-03-23 Andrew Cagney <cagney@redhat.com>
9826
9827 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
9828
aa2a3f87
AC
98292004-03-23 Andrew Cagney <cagney@redhat.com>
9830
9831 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
9832 * gdbarch.h, gdbarch.c: Re-generate.
9833 * i386obsd-tdep.c (i386obsd_init_abi): Update.
9834 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
9835 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8718a420 9836 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87 9837 (DEPRECATED_SIGTRAMP_START): Update.
8718a420 9838 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87
AC
9839 (DEPRECATED_SIGTRAMP_START): Update.
9840 * blockframe.c (find_pc_sect_partial_function): Update.
9841 * arch-utils.c (legacy_pc_in_sigtramp): Update.
9842
00cac895
DJ
98432004-03-23 Daniel Jacobowitz <drow@mvista.com>
9844
9845 * remote.c (remote_open_1): Reopen the exec file and reread symbols
9846 if necessary.
9847
f561f026
AC
98482004-03-23 Andrew Cagney <cagney@redhat.com>
9849
9850 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
9851 predicate, deprecate.
9852 * gdbarch.h, gdbarch.c: Re-generate.
9853 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
9854 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
9855 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
9856 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
9857 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
9858 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
9859 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
9860 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
9861 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
9862 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
9863 * blockframe.c (find_pc_partial_function): Update.
9864 * breakpoint.c (bpstat_what): Update.
9865 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
9866 * frv-linux-tdep.c (frv_linux_init_abi): Update.
9867 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
9868 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
9869 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9870 * i386-linux-tdep.c (i386_linux_init_abi): Update.
9871 * i386-nto-tdep.c (i386nto_init_abi): Update.
9872 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
9873 * i386-tdep.c (i386_sigtramp_frame_sniffer)
9874 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
9875 * i386bsd-tdep.c (i386bsd_init_abi): Update.
9876 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
9877 * i386obsd-tdep.c (i386obsd_init_abi): Update.
9878 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
9879 * infrun.c (pc_in_sigtramp): Update.
9880 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
9881 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
9882 * mips-tdep.c (mips_gdbarch_init): Update.
9883 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
9884 * ppc-linux-tdep.c: Update comment.
9885 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
9886 * shnbsd-tdep.c (shnbsd_init_abi): Update.
9887 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
9888 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
9889 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
9890 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
9891 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
9892 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
9893 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
9894 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
8718a420 9895
8050c72f
AC
98962004-03-23 Andrew Cagney <cagney@redhat.com>
9897
d2259dd3
AC
9898 * tramp-frame.h, tramp-frame.h: New files.
9899 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
9900 Update rules to include "tramp-frame.h" and "tramp-frame.c".
9901
8050c72f
AC
9902 * Makefile.in: Update all dependencies.
9903
0db9b4b7
AC
99042004-03-23 Andrew Cagney <cagney@redhat.com>
9905
9906 * Makefile.in (trad_frame_h): Add $(frame_h).
9907 * trad-frame.h: Update copyright. Include "frame.h".
9908 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
9909 (trad_frame_set_id, trad_frame_get_id): Declare.
9910 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
9911 * trad-frame.c: Update copyright.
9912 (struct trad_frame_cache): Define.
9913 (trad_frame_cache_zalloc): New function.
9914 (trad_frame_set_id, trad_frame_get_id): New functions.
9915 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
8718a420 9916
8e645ae7
AC
99172004-03-22 Andrew Cagney <cagney@redhat.com>
9918
9919 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
9920 s390_pltstub_unwind_cache.
9921 (s390_stub_frame_unwind_cache): Rename
9922 s390_pltstub_frame_unwind_cache.
9923 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
9924 (s390_stub_frame_prev_register): Rename
9925 s390_pltstub_frame_prev_register.
9926 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
9927 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
9928
9929 From Ulrich Weigand:
9930 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
9931 pointer calls like PLT calls.
9932
34fcf120
DJ
99332004-03-22 Daniel Jacobowitz <drow@mvista.com>
9934
9935 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
9936 PC rather than the partial function start address. Use the start
9937 address to sanity check the found PDR.
9938
5b917078
DJ
99392004-03-22 Daniel Jacobowitz <drow@mvista.com>
9940
9941 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
9942 linux_handle_extended_wait.
9943
8adf9e78
AC
99442004-03-22 Andrew Cagney <cagney@redhat.com>
9945
c3122434
AC
9946 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
9947 function.
9948
8adf9e78
AC
9949 * frame.h (generic_pop_current_frame): Delete declaration.
9950 (deprecate_pop_dummy_frame): Deprecate
9951 generic_pop_dummy_frame.
9952 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
9953 (generic_pop_current_frame): Delete function.
9954 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
9955 generic_pop_current_frame.
9956 * v850-tdep.c (v850_pop_frame): Update.
9957 * mcore-tdep.c (mcore_pop_frame): Update.
9958 * sh64-tdep.c (sh64_pop_frame): Update.
9959 * h8300-tdep.c (h8300_pop_frame): Update.
9960
90ba813f
AC
99612004-03-22 Andrew Cagney <cagney@redhat.com>
9962
9963 * frame.h (deprecated_pc_in_call_dummy): Rename
9964 generic_pc_in_call_dummy.
9965 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
9966 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
9967 generic_pc_in_call_dummy.
9968 (pc_in_dummy_frame): Make static.
9969 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
9970 * gdbarch.h, gdbarch.c: Re-generate.
9971 * dummy-frame.c (dummy_frame_sniffer): Simplify.
9972 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
9973 (legacy_get_prev_frame): Ditto.
9974 * inferior.h: Delete reference to generic_pc_in_call_dummy in
9975 comment.
8718a420 9976
ca4bb888
AC
99772004-03-21 Andrew Cagney <cagney@redhat.com>
9978
244675f9
AC
9979 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
9980 declaration and out-of-date comment.
9981 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
9982 Delete function.
9983 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
9984 deprecated_pc_in_call_dummy.
9985
ca4bb888
AC
9986 * infrun.c (handle_inferior_event): For non legacy frames, use the
9987 frame ID and frame type to identify a signal trampoline. Update
9988 comments.
9989
1777c7b4
NW
99902004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
9991
9992 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
9993 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
9994
82417da5
AC
99952004-03-21 Andrew Cagney <cagney@redhat.com>
9996
9997 * frame-unwind.h: Update copyright.
9998 (struct frame_data): Add opaque declaration.
9999 (frame_sniffer_ftype): Declare.
10000 (struct frame_unwind): Add "unwind_data" and "sniffer".
10001 (frame_unwind_register_unwinder): Declare.
10002 (frame_unwind_find_by_frame): Add parameter "this_cache".
10003 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
10004 (legacy_get_prev_frame, legacy_get_prev_frame)
10005 (get_frame_type): Pass the prologue_cache to
10006 frame_unwind_find_by_frame.
10007 * frame-unwind.c (struct frame_unwind_table_entry): Add field
10008 "unwinder".
10009 (frame_unwind_register_unwinder): New function.
10010 (frame_unwind_find_by_frame): Handle an unwind sniffer.
10011
b2ba182e
PH
100122004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
10013
10014 * bcache.c (print_percentage): Use floating point to avoid
10015 incorrect results when portion*100 overflows.
10016
81332287
KB
100172004-03-19 Kevin Buettner <kevinb@redhat.com>
10018
10019 * ppc_tdep.h (ppc_linux_frame_saved_pc)
10020 (ppc_linux_init_extra_frame_info)
10021 (ppc_linux_frameless_function_invocation)
10022 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
10023 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
10024 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
10025 (rs6000_frame_chain): Delete declarations.
10026 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
10027 (ppc_linux_init_extra_frame_info)
10028 (ppc_linux_frameless_function_invocation)
10029 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
10030 (ppc_linux_init_abi): Remove registration of above deleted functions.
10031 * rs6000-tdep.c (rs6000_init_extra_frame_info)
10032 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
10033 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
10034 (rs6000_pop_frame, rs6000_frameless_function_invocation)
10035 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
10036 (rs6000_gdbarch_init): Remove registration of above deleted functions.
10037 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
10038 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
10039 frame management for all OSABIs.
10040
61a65099
KB
100412004-03-19 Andrew Cagney <cagney@redhat.com>
10042
10043 Committed by Kevin Buettner <kevinb@redhat.com>.
10044
10045 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
10046 Update copyright.
10047 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
10048 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
10049 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
10050 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
10051 unwinders. #ifdef legacy frame code.
10052 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
10053 "frame-base.h".
10054 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
10055 (struct rs6000_frame_cache, rs6000_frame_cache)
10056 (rs6000_frame_this_id, rs6000_frame_prev_register)
10057 (rs6000_frame_sniffer, rs6000_frame_unwind)
10058 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
10059 (rs6000_frame_base): Implement a traditional frame unwinder.
10060 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
10061 frame unwinder.
10062
88f7da05
KB
100632004-03-19 Kevin Buettner <kevinb@redhat.com>
10064
10065 * breakpoint.c (adjust_breakpoint_address): Don't adjust
10066 breakpoint address for watchpoints or the catch eventpoints.
10067 Add new paramter ``bptype''. Adjust all callers.
10068
f826dce1
AC
100692004-03-19 Andrew Cagney <cagney@redhat.com>
10070
33cb8b0f
AC
10071 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
10072
f826dce1
AC
10073 * PROBLEMS: Delete note that ARM does not use frame code, problem
10074 fixed.
10075
43b1ab88
AC
100762004-03-18 Andrew Cagney <cagney@redhat.com>
10077
292ab034
AC
10078 * stack.c (return_command): Delete code wrapped in #ifdef
10079 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
10080
43b1ab88
AC
10081 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
10082
dbfe4626
AC
100832004-03-18 Andrew Cagney <cagney@redhat.com>
10084
10085 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
10086 DEPRECATED_IN_SIGTRAMP.
10087 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10088 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
10089 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10090 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10091 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10092 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10093 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10094 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10095 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
10096 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
10097
0cad6aec
AC
100982004-03-18 Andrew Cagney <cagney@redhat.com>
10099
10100 * frame-base.c: Update copyright. Include "gdb_obstack.h".
10101 (struct frame_base_table_entry): Define.
10102 (struct frame_base_table): Re-implement as a linked list.
10103 (frame_base_init): Re-implement.
10104 (frame_base_table): Delete function.
10105 (append_predicate): Delete function.
10106 (frame_base_append_sniffer): Update.
10107 (frame_base_set_default): Update.
10108 (frame_base_find_by_frame): Update.
10109 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
10110 * Makefile.in (frame-base.o): Update dependencies.
10111
9982c2e7
AC
101122004-03-17 Andrew Cagney <cagney@redhat.com>
10113
10114 * frame.c (legacy_get_prev_frame): Pass correct frame to
10115 frame_unwind_find_by_frame.
10116
8dfe8985
DC
101172004-03-17 David Carlton <carlton@kealia.com>
10118
10119 * NEWS: Mention C++ nested types and namespaces
10120
ed47347a
MC
101212004-03-16 Michael Chastain <mec.gnu@mindspring.com>
10122
10123 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
10124 and "Regressions since gdb 5.3.". Add known regressions since
10125 gdb 6.0.
10126
90aeadfc
DC
101272004-03-16 David Carlton <carlton@kealia.com>
10128
10129 * dwarf2read.c (process_structure_scope): Process children even
10130 when we're a declaration.
10131
73912b9b
AC
101322004-03-16 Andrew Cagney <cagney@redhat.com>
10133
10134 * symtab.h (find_pc_sect_partial_function): Delete declaration.
10135 * blockframe.c (find_pc_partial_function)
10136 (find_pc_sect_partial_function): Merge into a single
10137 find_pc_partial_function.
10138
283accbc
MK
101392004-03-16 Mark Kettenis <kettenis@gnu.org>
10140
10141 * i386bsd-nat.c: s/regno/regnum/g.
10142 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
10143 FP0_REGNUM.
10144 (store_inferior_registers): Likewise.
10145
f5b1afdf
MK
101462004-03-16 Mark Kettenis <kettenis@gnu.org>
10147
10148 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
10149 of i387_fill_fsave.
10150 (store_inferior_registers): Call i387_collect_fsave and
10151 i387_collect_fxsave instead of i387_fill_fsave and
10152 i387_fill_fxsave.
10153
41fe5eb3
AC
101542004-03-15 Andrew Cagney <cagney@redhat.com>
10155
10156 * Makefile.in (frame-unwind.o): Update dependencies.
10157 * frame-unwind.c: Include "gdb_obstack.h".
10158 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
10159 parameter.
10160 (append_predicate): Delete function.
10161 (struct frame_unwind_table_entry): New structure.
10162 (struct frame_unwind_table): Replace "sniffer" with "head" and
10163 "tail".
10164 (frame_unwind_append_sniffer): Update.
10165 (frame_unwind_find_by_frame): Update.
10166 (_initialize_frame_unwind): Registe frame_unwind_init using
10167 gdbarch_data_register_pre_init.
10168
3f63813d
MK
101692004-03-15 Mark Kettenis <kettenis@gnu.org>
10170
10171 * i386bsd-nat.c: Update copyright year.
10172 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
10173 define unconditionally.
10174
3248c325 101752004-03-15 Mark Kettenis <kettenis@gnu.org>
63b6c53f
MK
10176
10177 * i387-tdep.h (i387_collect_fsave): New prototype.
10178 * i387-tdep.c (i387_collect_fsave): New function containing most
10179 of the code from i387_fill_fsave.
3248c325 10180 (i387_fill_fsave): Call i387_collect_fsave.
63b6c53f 10181
871fbe6a
MK
101822004-03-15 Mark Kettenis <kettenis@gnu.org>
10183
10184 * i386-linux-tdep.c: Update copyright year.
10185 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
10186 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
10187 svr4_ilp32_link_map_offsets instead of
10188 i386_linux_svr4_fetch_link_map_offsets.
10189
8176b9b8
DC
101902004-03-15 David Carlton <carlton@kealia.com>
10191
10192 Fix for PR c++/1553:
10193 * dwarf2read.c (read_structure_type): Determine type name by
10194 calling determine_class_name.
10195 (determine_class_name): New.
10196 (determine_prefix): Look at TYPE_TAG_NAME and call
10197 determine_class_name when appropriate.
10198 (determine_prefix_aux, class_name): Delete.
9d58e29d 10199 (read_namespace): Set die->type.
8176b9b8 10200
fe8bf7d7
KB
102012004-03-15 Kevin Buettner <kevinb@redhat.com>
10202
10203 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
10204 unused macro definition. The definition in target.h (or perhaps
10205 elsewhere) takes precedence.
10206
ed6edd9b
AC
102072004-03-15 Andrew Cagney <cagney@redhat.com>
10208
f9be684a
AC
10209 * ppc-tdep.h: Update copyright.
10210 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
10211 function signatures to match "regsets.h".
10212 * ppc-linux-tdep.c: Include "regset.h".
10213 (ELF_GREGSET_SIZE): Delete.
10214 (right_supply_register): New function.
10215 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
10216 using right_supply_register.
10217 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
10218 functions.
10219 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
10220 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
10221 (_initialize_ppc_linux_tdep): Do not register
10222 ppc_linux_regset_core_fns.
10223 (ppc_linux_regset_from_core_section): Replace
10224 fetch_core_registers.
10225 (ppc_linux_regset_core_fns): Delete.
10226 * ppc-linux-nat.c: (right_fill_reg): New function.
10227 (supply_gregset): Update call to ppc_linux_supply_gregset.
10228 (fill_gregset): Clear the register set, use right_fill_reg.
10229 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
10230 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
10231
ed6edd9b
AC
10232 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
10233 unsigned.
10234
030f20e1
AC
102352004-03-15 Andrew Cagney <cagney@redhat.com>
10236
10237 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
10238 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
10239 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
10240 and register_gdbarch_data.
10241 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
10242 (struct gdbarch_data): Replace "init" by "pre_init" and
10243 "post_init".
10244 * gdbarch.h, gdbarch.c: Re-generate.
10245 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
10246 with"obstack", use OBSTACK_ZALLOC.
10247 (dwarf2_frame_ops): Delete.
10248 (dwarf2_frame_set_init_reg): Use gdbarch_data.
10249 (dwarf2_frame_init_reg): Use gdbarch_data.
10250 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
8718a420 10251 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
030f20e1
AC
10252 (_initialize_svr4_solib): Update.
10253 * user-regs.c (_initialize_user_regs): Update.
10254 * reggroups.c (_initialize_reggroup): Update.
10255 * regcache.c (_initialize_regcache): Update.
10256 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
10257 * libunwind-frame.c (_initialize_libunwind_frame): Update.
10258 * gnu-v3-abi.c (init_gnuv3_ops): Update.
10259 * frame-unwind.c (_initialize_frame_unwind): Update.
10260 * frame-base.c (_initialize_frame_base): Update.
10261 * user-regs.c (user_reg_add): Update.
10262 * reggroups.c (reggroup_add): Update.
10263 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
10264 * libunwind-frame.c (libunwind_frame_set_descr): Update.
10265 * frame-unwind.c (frame_unwind_append_sniffer): Update.
10266 * frame-base.c (frame_base_table): Update.
10267 * remote.c (_initialize_remote): Update.
10268 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
8718a420 10269
3111a3fc
AC
102702004-03-15 Andrew Cagney <cagney@redhat.com>
10271
10272 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
10273
5ecb7103
KB
102742004-03-15 Kevin Buettner <kevinb@redhat.com>
10275
10276 * Makefile.in (frv-linux-tdep.o): Add dependencies.
10277 * frv-linux-tdep.c: New file.
10278 * frv-tdep.c (struct gdbarch_tdep): Add new field
10279 ``sigcontext_reg_addr''.
10280 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
10281 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
10282 (frv_sigramp_frame_sniffer): New functions.
10283 (frv_sigtramp_frame_unwind): New static global.
10284 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
10285 sniffers.
10286 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
10287 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
10288
1ccda5e9
KB
102892004-03-15 Kevin Buettner <kevinb@redhat.com>
10290
10291 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
10292 but not via a call to error(), when unable to read memory.
10293
b375a0a5
KB
102942004-03-15 Kevin Buettner <kevinb@redhat.com>
10295
10296 * frv-tdep.c (frv_call_dummy_words): Delete.
10297 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
10298
4fdf6121
AC
102992004-03-15 Andrew Cagney <cagney@redhat.com>
10300
10301 * infrun.c (handle_step_into_function, step_over_function): Only
10302 update and use STEP_FRAME_ID when the system is using legacy
10303 frames. Update comments.
10304
34021503
MK
103052004-03-14 Mark Kettenis <kettenis@gnu.org>
10306
187e21d1
MK
10307 * amd64-linux-tdep.h: Remove file.
10308 * amd64-linux-tdep.c: Don't include "inferior.h" and
10309 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
10310 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
10311 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
10312 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
10313 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
10314 macros.
10315 (user_to_gdb_regmap): Remove variable.
10316 (amd64_linux_gregset_reg_offset): New variable.
10317 (amd64_core_fns): Remove variable.
10318 (fetch_core_registers): Remove function.
10319 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
10320 functions.
10321 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
10322 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
10323 * Makefile.in (amd64_linux_tdep_h): Remove.
10324 (amd64-linux-nat.o): Update dependencies.
10325 (amd64-linux-tdep.o): Update dependencies.
10326
99679982
MK
10327 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
10328 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
10329 functions.
10330 (fetch_inferior_registers, store_inferior_registers): Rewrite.
10331
34021503
MK
10332 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
10333 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
10334
134d01f1
DJ
103352004-03-14 Daniel Jacobowitz <drow@mvista.com>
10336
10337 * dwarf2read.c (read_structure_type): Rename from
8718a420 10338 read_structure_scope. Don't create a symbol or call process_die.
134d01f1
DJ
10339 Return immediately if die->type is set. Call read_type_die before
10340 dwarf2_add_member_fn.
10341 (process_structure_scope): New function.
10342 (read_enumeration_type, process_enumeration_scope): New functions,
10343 broken out from read_enumeration. Don't create the enumeration
10344 type if it has already been created.
10345 (read_enumeration): Removed.
10346 (process_die): Call read_structure_type, process_structure_scope,
10347 read_enumeration_type, and process_enumeration_scope. Just call
10348 new_symbol for base and subrange types. Add a comment about other
10349 type dies.
10350 (read_type_die): Call read_enumeration_type.
10351 (add_partial_structure, new_symbol): Update comments.
10352
65760afb
SC
103532004-03-13 Stephane Carrez <stcarrez@nerim.fr>
10354
10355 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
10356
10f59415
SC
103572004-03-13 Stephane Carrez <stcarrez@nerim.fr>
10358
10359 * tui/tui-win.h (tui_get_cmd_list): Declare.
10360 * tui/tui-win.c (tui_command): New function.
10361 (tui_get_cmd_list): New function.
10362 (_initialize_tui_win): Moved initialization of tui command in
10363 tui_get_cmd_list.
10364
10365 * tui/tui-data.c (init_content_element): Setup new data members.
10366 (init_win_info): Likewise.
10367 (free_content_elements): Free it.
10368 * tui/tui-data.h (struct tui_data_element): Store the register
10369 content to print.
10370 (struct tui_data_info): Keep the current register group.
10371
10372 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
10373
10374 * tui/tui-regs.h (tui_show_registers): Update prototype.
10375 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
10376 (tui_resize_all): No need to calculate anything for register window.
10377 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
10378 (tui_set_register_element, tui_set_general_regs_content): Remove.
10379 (tui_set_special_regs_content): Remove.
10380 (tui_set_general_and_special_regs_content): Remove.
10381 (tui_set_float_regs_content): Remove.
10382 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
10383 (tui_set_regs_content): Remove.
10384 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
10385 (tui_v_show_registers_command_support): Remove.
10386 (tui_show_registers): Use a reggroup to specify the registers to show.
10387 (tui_show_register_group): New function.
10388 (tui_display_registers_from): Compute the layout of register window
10389 and refresh with new API; be sure to delete old register windows.
10390 (tui_check_register_values): Update to use tui_get_register and
10391 tui_display_data.
10392 (tui_display_register): Just refresh the register window part.
10393 (tui_register_format): Format registers and save in tui_data_element.
10394 (tui_get_register): New to combine tui_reg_value_has_changed and
10395 tui_get_register_raw_value; fix to use the new gdb API.
10396 (tui_show_float_command): Renamed tui_reg_float_command.
10397 (tui_show_general_command): Renamed tui_reg_general_command.
10398 (tui_show_special_command): Renamed tui_reg_system_command.
10399 (_initialize_tui_regs): Remove unused commands.
10400
c3364ea4
MK
104012004-03-13 Mark Kettenis <kettenis@gnu.org>
10402
27d1e716
MK
10403 * NEWS (New native configurations): Mention OpenBSD/amd64.
10404
c3364ea4
MK
10405 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
10406 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
10407 Remove defines.
10408 * config/i386/nm-fbsd64.h: Likewise.
10409 * config/i386/nm-obsd.h: Likewise.
10410 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
10411 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
10412
b2d6d697
KB
104132004-03-12 Kevin Buettner <kevinb@redhat.com>
10414
10415 * frv-tdep.c (set_variant_scratch_registers): New function.
b2d6d697
KB
10416 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
10417 New constants.
10418
76e43199
KB
10419 From Richard Sandiford <rsandifo@redhat.com>:
10420 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
10421
34ce532e
KB
104222004-03-12 Kevin Buettner <kevinb@redhat.com>
10423
10424 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
10425 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
10426 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
10427 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
10428 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
10429 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
10430 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
10431 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
10432 definitions from frv-tdep.c to frv-tdep.h.
10433
c4d10515
KB
104342004-03-12 Kevin Buettner <kevinb@redhat.com>
10435
10436 Add shared library support for FR-V FDPIC ABI:
10437 * Makefile.in (solib-frv.o): Add dependencies.
10438 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
10439 New functions.
10440 (frv_push_dummy_call): Add support for FDPIC ABI.
10441 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
10442 for FDPIC ABI.
10443 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
10444 (frv_fdpic_find_canonical_descriptor): Declare.
10445 * solib-frv.c: New file.
10446 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
10447 * config/frv/tm-frv.h (solib.h): Include.
10448
ed1bd989
KB
104492004-03-12 Kevin Buettner <kevinb@redhat.com>
10450
10451 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
10452 (frv-tdep.o): Update dependencies.
10453 * frv-tdep.h: New file.
10454 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
10455 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
10456 constants.
10457 (struct gdbarch_tdep): Add new member ``frv_abi''.
10458 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
10459 functions.
10460 (new_variant): Set ``frv_abi'' field.
10461 (gdb_arch_init): Detect FDPIC executables.
10462
82b38f72
MK
104632004-03-12 Mark Kettenis <kettenis@gnu.org>
10464
10465 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
10466 wrapper.
10467
db1ea9ba
AC
104682004-03-11 Andrew Cagney <cagney@redhat.com>
10469
10470 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
10471
f8766ec1
KB
104722004-03-11 Kevin Buettner <kevinb@redhat.com>
10473
10474 * solist.h (master_so_list): New function.
10475 * solib.c (master_so_list): Likewise.
10476 * solib-svr4.c (enable_break): Iterate over so_list entries
10477 obtained from master list instead of entries obtained directly
10478 via svr4_current_sos().
10479
523f6a27
BE
104802004-03-10 Ben Elliston <bje@gnu.org>
10481
10482 * MAINTAINERS: Update my mail address.
10483
37814c18
KI
104842004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
10485
10486 * remote-m32r-sdi.c: Support hardware watchpoint.
10487
8b9740d8
DJ
104882004-03-09 Daniel Jacobowitz <drow@mvista.com>
10489
10490 * user-regs.c: Update copyright years.
10491 (struct user_regs): Rename to gdb_user_regs.
10492 (append_user_reg, builtin_user_regs, user_regs_init)
10493 (user_reg_add, user_reg_map_name_to_regnum)
10494 (usernum_to_user_reg): Update.
10495
4bb7a0a7
DJ
104962004-03-09 Daniel Jacobowitz <drow@mvista.com>
10497
10498 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
10499 (skip_children): New functions.
10500 (locate_pdi_sibling): Call skip_children.
10501
44e1a9eb
DJ
105022004-03-09 Daniel Jacobowitz <drow@mvista.com>
10503
10504 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
10505 * gdbtypes.c (check_typedef): Update comments.
10506
f3dd6933
DJ
105072004-03-09 Daniel Jacobowitz <drow@mvista.com>
10508
10509 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
10510 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
10511 pointer. Update comment about comp_unit_head.
10512 (struct abbrev_info): Shorten two int flags.
10513 (dwarf_alloc_abbrev): Take a CU argument.
10514 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
10515 each time through the loop. Update cleanup argument.
10516 (psymtab_to_symtab_1): Update cleanup call.
10517 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
10518 abbrev_obstack.
10519 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
10520 Just call obstack_free and clear the pointer.
10521
b40c7d58
DJ
105222004-03-09 Daniel Jacobowitz <drow@mvista.com>
10523
10524 * infrun.c (handle_inferior_event): Remove short-circuit code for
10525 events in a different thread.
10526
333dabeb
DJ
105272004-03-09 Daniel Jacobowitz <drow@mvista.com>
10528
10529 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
10530 print the whole transfer.
10531 (initialize_targets): Update description of "set debug target".
10532
aa17d93e
DJ
105332004-03-09 Daniel Jacobowitz <drow@mvista.com>
10534
10535 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
10536
0b71f08f
NW
105372004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
10538
10539 * MAINTAINERS (write after approval): Add myself.
10540
3930f270
CV
105412004-03-08 Corinna Vinschen <vinschen@redhat.com>
10542
10543 * sh-tdep.c (sh_print_registers_info): Use for loop.
10544 Don't skip multiple registers when a float register is encountered.
10545
a2b4a96c
CV
105462004-03-08 Corinna Vinschen <vinschen@redhat.com>
10547
10548 Fix PR tdep/1291.
10549 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
10550 to official SH documentation.
10551
f15a4bc0
AC
105522004-03-07 Andrew Cagney <cagney@redhat.com>
10553
10554 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
10555 unused function.
10556
9498281f
DJ
105572004-03-07 Daniel Jacobowitz <drow@mvista.com>
10558
10559 * arm-tdep.c (thumb_get_next_pc): Handle BX.
10560 (arm_get_next_pc): Handle BX and BLX.
10561
449e1137
AC
105622004-03-07 Andrew Cagney <cagney@redhat.com>
10563
eded0a31
AC
10564 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
10565 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
10566 HPPA_SP_REGNUM.
10567 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
10568 (hppa_target_read_fp): Delete.
10569 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
10570 register_virtual_size, max_register_raw_size,
10571 max_register_virtual_size, register_byte, register_size,
10572 target_read_fp, fp_regnum, and register_bytes. Set register_type
10573 instead of register_virtual_type.
10574 (hppa32_register_type, hppa64_register_type): Replace
10575 hppa32_register_virtual_type and hppa64_register_virtual_type.
10576 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
10577 (HPPA_FP_REGNUM): Define.
10578
f5f907e2
AC
10579 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
10580
69b4bbe4
AC
10581 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
10582 (pa_do_registers_info): Delete.
10583 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
8718a420 10584 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
69b4bbe4 10585 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
f5f907e2 10586
78161e48
AC
10587 * infcall.c (legacy_push_dummy_code): Delete #ifdef
10588 GDB_TARGET_IS_HPPA code.
10589 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
8718a420 10590 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
78161e48
AC
10591 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
10592 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
8718a420
RM
10593 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
10594 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
10595 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
78161e48 10596 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
8718a420
RM
10597 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
10598 (hppa_frameless_function_invocation, hppa64_store_return_value)
10599 (hppa_store_struct_return, hppa64_extract_return_value)
78161e48 10600 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
8718a420 10601 (hppa32_call_dummy_length, hppa64_call_dummy_length)
78161e48 10602 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
8718a420
RM
10603 (find_proc_framesize, deposit_21, restore_pc_queue)
10604 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
210197d2 10605 (rp_saved, pc_in_linker_stub): Delete.
78161e48 10606
782eae8b
AC
10607 Unconditionally enable 64-bit frame and ABI code.
10608 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
10609 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
10610 push_dummy_frame, fix_call_dummy, push_arguments,
10611 call_dummy_location, extract_return_value, use_struct_convention,
10612 store_return_value, store_struct_return, saved_pc_after_call,
10613 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
10614 frame_chain, frame_chain_valid, frameless_function_invocation,
10615 frame_saved_pc, and pop_frame.
78161e48 10616
449e1137
AC
10617 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
10618 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
10619 (hppa_gdbarch_init): Do not set PC_REGNUM.
10620
12507572
MK
106212004-03-06 Mark Kettenis <kettenis@gnu.org>
10622
10623 * config/alpha/tm-fbsd.h: Remove file.
10624 * config/alpha/fbsd.mt: Tweak comment.
10625 (TM_FILE): Set to tm-alpha.h.
10626
c107cc1b
AC
106272004-03-05 Andrew Cagney <cagney@redhat.com>
10628
10629 * infrun.c (step_over_function): When non-legacy code, and no
10630 step_frame_id, use the unwinder to get the caller's frame ID.
10631
f2e7c15d
MK
106322004-03-05 Mark Kettenis <kettenis@gnu.org>
10633
8b0c3633
MK
10634 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
10635 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
10636 bfd_arch_unknown. Adjust comment.
10637
f2e7c15d
MK
10638 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
10639 * i386obsd-tdep.c: Correct spelling in comment.
10640 * i386nbsd-tdep.c: Correct spelling in comment.
10641 * sparc-tdep.c: Correct spelling in comments.
10642
1198ecbe
DC
106432004-03-05 David Carlton <carlton@kealia.com>
10644
10645 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
10646 bug.
10647
9eb42ed1
MK
106482004-03-05 Mark Kettenis <kettenis@gnu.org>
10649
10650 * sparc-tdep.c: Fix typo in comment.
10651
52b5e991
JB
106522004-03-04 J. Brobecker <brobecker@gnat.com>
10653
10654 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
10655
d8151005
DJ
106562004-03-04 Daniel Jacobowitz <drow@mvista.com>
10657
10658 * dwarf2read.c: Add comment describing memory lifetimes.
10659 (struct dwarf2_pinfo): Update comment.
10660 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
10661 (read_enumeration, new_symbol): Don't use obsavestring.
10662
cbeae229
MK
106632004-03-04 Mark Kettenis <kettenis@gnu.org>
10664
722d18c2
MK
10665 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
10666 instead of amd64_fill_fxsave.
10667 * amd64bsd-nat.c (store_inferior_registers): Likewise.
10668 * amd64fbsd-nat.c (fill_fpregset): Likewise.
10669
cbeae229
MK
10670 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
10671 Reorganize code a bit.
10672
b4206d25
OF
106732004-03-04 Orjan Friberg <orjanf@axis.com>
10674
10675 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
8718a420
RM
10676 when the frame pointer is pushed. Don't set the frame pointer's
10677 address on the stack unless it's actually located there.
b4206d25
OF
10678 Set the SRP's address on the stack correctly when the PC is still in
10679 the prologue.
10680 (cris_return_value): New function.
10681 (cris_gdbarch_init): Clear deprecated store_return_value,
10682 extract_return_value.
10683
49b0b195
JB
106842004-03-02 Jim Blandy <jimb@redhat.com>
10685
10686 * stabsread.c (reg_value_complaint): The maximum register number
10687 is one less than the number of registers.
10688
e9ff708b
AC
106892004-03-02 Andrew Cagney <cagney@redhat.com>
10690
10691 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
10692 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
10693 trailing comma and redundant assignment of I386_ST0_REGNUM.
10694 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
10695 32-bit segment registers.
10696
d4715e41
AC
106972004-03-01 Andrew Cagney <cagney@redhat.com>
10698
10699 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
10700 use frame_relative_level and get_next_frame.
10701
3ce2bf18
AC
107022004-02-29 Andrew Cagney <cagney@redhat.com>
10703
10704 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
10705 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
10706 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
10707 Delete macro.
10708
2da6aac3
DJ
107092004-02-29 Daniel Jacobowitz <drow@mvista.com>
10710
10711 * inflow.c (terminal_inferior): Don't give up the terminal if we
10712 previously couldn't get the inferior's terminal state.
10713
6ba34a8d
DJ
107142004-02-29 Daniel Jacobowitz <drow@mvista.com>
10715
10716 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
10717 PC_REGNUM.
10718
faae5abe
AC
107192004-02-28 Andrew Cagney <cagney@redhat.com>
10720
10721 * NEWS: Refer to GDB 6.1.
10722 * README: Refer to GDB 6.1.
10723 * PROBLEMS: Refer to GDB 6.1.
10724
2227a3c5
DJ
107252004-02-28 Daniel Jacobowitz <drow@mvista.com>
10726
10727 * thread-db.c (disable_thread_signals): Remove unused function.
10728
80571bff
MK
107292004-02-28 Mark Kettenis <kettenis@gnu.org>
10730
041bd74b
MK
10731 * amd64-nat.c: Include "gdb_string.h".
10732 (amd64_collect_native_gregset): Zero-extend the 32-bit
10733 general-purpose registers and %eip.
10734
3c017e40
MK
10735 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
10736 * amd64-tdep.c (amd64_collect_fxsave): New function.
10737 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
10738
80571bff
MK
10739 * i387-tdep.h: Update copyright year.
10740 (i387_collect_fxsave): New prototype.
10741 * i387-tdep.c: Update copyright year.
10742 (i387_collect_fxsave): New function containing most of the code
10743 from i387_fill_fxsave.
10744 (i387_fill_fxsave): Call i387_collect_fxsave.
10745
50d71875
AC
107462004-02-28 Andrew Cagney <cagney@redhat.com>
10747
10748 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
10749 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
10750
4a28816e
MK
107512004-02-28 Mark Kettenis <kettenis@gnu.org>
10752
10753 * amd64-tdep.c (amd64_frame_cache): Fix comment.
10754
dbda9972
AC
107552004-02-28 Andrew Cagney <cagney@redhat.com>
10756
10757 * utils.c: Use "", instead of <>, to include readline.
10758 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
10759 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
10760 * source.c, solib.c, exec.c, event-top.c: Ditto.
10761 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
10762 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
10763 * Makefile.in: Update all dependencies.
10764 (readline_tilde_h, readline_history_h): Define.
10765 (readline_headers): Delete.
10766
83277a99
MK
107672004-02-28 Mark Kettenis <kettenis@gnu.org>
10768
91ae4303
MK
10769 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
10770 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
10771 "config/i386/tm-lx64.h".
10772
83277a99
MK
10773 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
10774 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
10775 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
10776
6e1d7d6c
AC
107772004-02-28 Andrew Cagney <cagney@redhat.com>
10778
ecc9ac84
AC
10779 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
10780
6e1d7d6c
AC
10781 * breakpoint.c (_initialize_breakpoint): Use
10782 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
10783 Add help to show command.
10784
9671aeef
MK
107852004-02-28 Mark Kettenis <kettenis@gnu.org>
10786
7fa2737c
MK
10787 * i386-nat.c: Reformat to be closer to coding standards.
10788 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
10789 `retval'. Make variables `align' and `size' local to while-loop.
10790 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
10791 (_initialize_i386_nat): New prototype.
10792
9671aeef
MK
10793 * tui/tui.c: Include <readline/readline.h> instead of
10794 "readline/readline.h". Include it after <term.h> and
10795 "gdb_curses.h".
10796
fca7aa43
AC
107972004-02-27 Andrew Cagney <cagney@redhat.com>
10798
412275d5
AC
10799 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
10800 the new frame unwind code.
10801 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
10802 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
10803 PCOQ_HEAD_REGNUM.
10804
fca7aa43
AC
10805 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
10806 "return_value" and "push_dummy_call".
10807 (hppa32_use_struct_convention): Delete unused function.
10808 (hppa32_store_return_value): Delete unused function.
10809 (hppa32_extract_return_value): Delete unused function.
10810 (hppa32_stack_align): Delete function.
10811
e6a8a7d2
EZ
108122004-02-27 Eli Zaretskii <eliz@elta.co.il>
10813
10814 * coffread.c (enter_linenos): Don't let rawptr reference memory
10815 outside linetab[]'s limits.
10816
1797a8f6
AC
108172004-02-27 Andrew Cagney <cagney@redhat.com>
10818
10819 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
10820 inferior stack space - the stack needs to grow upwards.
10821 (hppa32_frame_align): New function.
10822 (hppa64_frame_align): Replace hppa_frame_align.
10823 (hppa_gdbarch_init): Update.
10824
2e4b5889
OF
108252004-02-26 Orjan Friberg <orjanf@axis.com>
10826
10827 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
10828 (dwarf2-frame.h): Include.
10829 (enum cris_regnums): New enum CRIS_FP_REGNUM.
10830 Remove static variables related to ABI setting.
10831 (struct gdbarch_tdep): Remove cris_abi member.
10832 (struct frame_extra_info): Remove.
10833 (cris_unwind_cache, stack_item): New structs.
10834 (cris_frame_unwind, cris_frame_base): New variables.
10835 (push_stack_item, pop_stack_item)
10836 (cris_frame_unwind_cache, cris_frame_this_id)
10837 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
10838 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
10839 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
10840 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
10841 (cris_reg_struct_has_addr): New functions.
10842 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
8718a420 10843 (cris_frame_saved_pc, cris_saved_pc_after_call,
2e4b5889
OF
10844 (cris_store_struct_return, cris_frameless_function_invocation)
10845 (cris_pop_frame, cris_skip_prologue_main)
10846 (cris_abi_original_store_return_value)
10847 (cris_abi_v2_store_return_value)
10848 (cris_abi_original_extract_return_value)
10849 (cris_abi_v2_extract_return_value)
10850 (cris_abi_original_reg_struct_has_addr)
10851 (cris_abi_v2_reg_struct_has_addr)
10852 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
10853 (cris_push_return_address, cris_abi_update): Remove.
10854 (_initialize_cris_tdep): Remove ABI command.
10855 (cris_dump_tdep): Ditto.
8718a420 10856 (cris_gdbarch_init): Remove ABI command.
2e4b5889
OF
10857 Set store_return_value, extract_return_value, push_dummy_code,
10858 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
10859 frame_unwind_append_sniffer, frame_base_set_default.
10860 Clear deprecated init_frame_pc, push_arguments, store_return_value,
10861 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
10862 sizeof_call_dummy_words, get_saved_register, push_return_address,
8718a420 10863 pop_frame, store_struct_return, frame_init_saved_regs,
2e4b5889
OF
10864 init_extra_frame_info, frameless_function_invocation, frame_chain,
10865 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
10866 dummy_write_sp.
8718a420 10867
6b9acc27
JJ
108682004-02-26 Jeff Johnston <jjohnstn@redhat.com>
10869
10870 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
10871 * valprint.c (print_hex_chars): Change from static to external.
10872 (print_char_chars): New function.
10873 * printcmd.c (print_scalar_formatted): For integer and enum types
10874 that are longer than LONGEST, perform processing via appropriate
10875 print_*_chars routines.
10876
a431654a
AC
108772004-02-26 Andrew Cagney <cagney@redhat.com>
10878
10879 * Makefile.in: Update dependencies.
10880 Changes from Ulrich Weigand,
10881 * s390-tdep.c: Include "dwarf2-frame.h".
10882 (s390_dwarf2_frame_init_reg): New function.
10883 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
10884 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
10885
fa8d40ab
JJ
108862004-02-26 Jeff Johnston <jjohnstn@redhat.com>
10887
10888 * breakpoint.c (pending_break_support): New setting variable.
10889 (break_command_1): Account for pending_break_support setting
10890 when creating pending breakpoints.
10891 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
10892 (_initialize_breakpoint): Add "set breakpoint pending" and
10893 "show breakpoint pending" commands.
10894
0dcd613f
AC
108952004-02-26 Andrew Cagney <cagney@redhat.com>
10896
10897 Fix PR i18n/1570.
10898 * charset.c (backslashable, backslashed, represented): Remove 'e'
10899 from list of escaped characters, not part of ISO-C.
10900
479272a3
JB
109012004-02-25 J. Brobecker <brobecker@gnat.com>
10902
10903 From Peter Schauer <schauer@pdf.de>:
10904 * tui/tui.c: Move system header includes after local includes.
10905 Fixes a build failure on solaris systems.
10906
7613d933
JB
109072004-02-25 J. Brobecker <brobecker@gnat.com>
10908
10909 * configure.in: Refine the previous change.
10910 * configure: Regenerate.
10911
9c1488cb
MK
109122004-02-25 Mark Kettenis <kettenis@gnu.org>
10913
10914 * amd64-tdep.h: Renamed from x86-64-tdep.h.
10915 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
10916 "amd64-tdep.h" instead of "x86-64-tdep.h".
10917 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
10918 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
10919 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
10920 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
10921 and "x86-64-tdep.c".
10922 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
10923 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
10924 and "x86-64-tdep.c".
10925 * amd64bsd-nat.c: Update copyright year.
10926 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
10927 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
10928 "x86-64-tdep.h".
10929 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
10930 "x86-64-tdep.h".
10931 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
10932 "x86-64-tdep.h".
10933 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
10934 "x86-64-tdep.h".
10935 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
10936 "x86-64-tdep.h".
10937 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
10938 "x86-64-tdep.h".
8718a420 10939 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
9c1488cb
MK
10940 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
10941 * Makefile.in (amd64_linux_tdep_h): Renamed from
10942 x86_64_linux_tdep_h.
10943 (amd64_tdep_h): Renamed from x86_64_tdep_h.
10944 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
10945 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
10946 (amd64obsd-tdep.o): Update dependencies.
10947 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
10948 dependencies.
10949 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
10950 dependencies.
10951 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
10952 amd64-linux-nat.c amd64-linux-tdep.c.
10953 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
10954 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
10955 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
10956 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
10957 amd64-tdep.o and amd64-linux-tdep.o.
10958 (TM_FILE): Set to tm-linux64.h.
10959 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
10960 (NAT_FILE): Set to nm-linux64.h.
10961 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
10962 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10963 amd64-tdep.o.
10964 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10965 amd64-tdep.o.
10966 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10967 amd64-tdep.o.
10968
4b8dad4a
RM
109692004-02-25 Roland McGrath <roland@redhat.com>
10970
10971 * remote.c (remote_protocol_qPart_auxv): New variable.
10972 (init_all_packet_configs): Initialize it.
10973 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
10974 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
10975 (show_remote_cmd): Call it.
10976 (_initialize_remote): Initialize commands.
10977 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
10978 service TARGET_OBJECT_AUXV requests.
10979
66745969
JB
109802004-02-25 J. Brobecker <brobecker@gnat.com>
10981
10982 * configure.in: Make sure that the wborder function is available.
10983 Otherwise, search for it in the cur_colr library.
10984 * configure: Regenerate.
10985
79508e1e
AC
109862004-02-25 Andrew Cagney <cagney@redhat.com>
10987
10988 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
10989
571ee600
MK
109902004-02-25 Mark Kettenis <kettenis@gnu.org>
10991
10992 * config/i386/tm-x86-64linux.h: Tweak comments.
10993
2b1b322f 109942004-02-25 Richard Sandiford <rsandifo@redhat.com>
ad74788f
RS
10995
10996 * MAINTAINERS: Add self to write-after-approval list.
10997
4d2acc65
AC
109982004-02-25 Andrew Cagney <cagney@redhat.com>
10999
4b8dad4a 11000 PR cli/1566. Problem found, and fix suggested by David Allan.
4d2acc65
AC
11001 * cli/cli-script.c (execute_control_command): Unconditionally
11002 install a cleanup. Default "ret" to "invalid_control". Use
11003 "break" instead of "return" to escape from the switch.
11004
4cfcaf21
JB
110052004-02-24 J. Brobecker <brobecker@gnat.com>
11006
11007 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
11008 with the lines macro defined in term.h on AiX.
11009 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
11010 a collision with the label_width macro defined in term.h on AiX.
11011
54a5c8d8
KB
110122004-02-23 David Mosberger <davidm@hpl.hp.com>
11013
11014 Committed by Kevin Buettner <kevinb@redhat.com>.
11015
11016 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
11017 * ia64-tdep.c (ia64_write_pc): Make it a global function.
11018 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
11019 instead of ia64_write_pc().
11020 * ia64-linux-tdep.c (regcache.h): Include.
11021 (ia64_linux_write_pc): New function.
4b8dad4a 11022
8a1dac83
RM
110232004-02-23 Roland McGrath <roland@redhat.com>
11024
11025 * auxv.c (info_auxv_command): Fix typos in error messages.
11026
90f90721
MK
110272004-02-23 Mark Kettenis <kettenis@gnu.org>
11028
8a1dac83 11029 * x86-64-tdep.h: Tweak comment.
90f90721
MK
11030 (enum amd64_regnum): New.
11031 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
11032 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
11033 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
11034 (X86_64_XMM1_REGNUM): Removed.
11035 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
11036 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
11037 prototypes for renamed functions.
11038 * x86-64-tdep.c: Fix typo.
11039 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
11040 register numbers.
11041 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
11042 Use constants from `enum amd64_regnum' for register numbers.
11043 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
11044 (amd64_analyze_prologue, amd64_frame_cache,
11045 amd64_sigtramp_frame_cache): Use constants from `enum
11046 amd64_regnum' for register numbers.
11047 (amd64_supply_fpregset): Adjust for renamed functions.
11048 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
11049 `enum amd64_regnum' for register numbers.
11050 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
11051 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
11052 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
11053 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
11054 (amd64_linux_fill_gregset): Adjust for renamed macros.
11055 (fetch_core_registers): Adjust for renamed functions.
11056 (amd64_linux_init_abi): Adjust for renamed functions.
11057 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
11058 renamed functions.
11059 * amd64-nat.c: Adjust for renamed macros.
11060 * amd64bsd-nat.c (fetch_inferior_registers)
11061 (store_inferior_registers): Use constants from `enum amd64_regnum'
11062 for register numbers. Adjust for renamed variables.
11063 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
11064 renamed variables.
11065 (_initialize_amd64fbsd_nat): Use constants from `enum
11066 amd64_regnum' for register numbers.
11067 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
11068 `enum amd64_regnum' for register numbers.
11069 (amd64fbsd_init_abi): Adjust for renamed functions.
11070 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
11071 `enum amd64_regnum' for register numbers.
11072 (amd64nbsd_init_abi): Adjust for renamed functions.
11073 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
11074 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
11075 `enum amd64_regnum' for register numbers.
11076 (amd64obsd_init_abi): Adjust for renamed functions.
11077 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
11078
d5479188
JJ
110792004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11080
11081 * breakpoint.c (print_one_breakpoint): Do not output spaces
11082 after printing <PENDING> for a pending breakpoint.
11083
81cb7cc9
JJ
110842004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11085
11086 * printcmd.c (print_scalar_formatted): Initialize val_long
11087 to remove compiler warning message.
11088
cbdeadca
JJ
110892004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11090
11091 * defs.h (nquery, yquery): New prototypes.
11092 * breakpoint.c (break_command_1): Use new nquery interface.
11093 * utils.c (defaulted_query, nquery, yquery): New functions.
11094
da6bab63
AC
110952004-02-23 Andrew Cagney <cagney@redhat.com>
11096
2f690297
AC
11097 * hppa-tdep.c (hppa_frame_align): New function.
11098 (hppa32_push_dummy_call): New function.
11099 (hppa64_push_dummy_call): New function.
11100 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
11101 disabled.
8a1dac83 11102
da6bab63
AC
11103 * infcall.c (legacy_push_dummy_code): Don't call deprecated
11104 FIX_CALL_DUMMY when push_dummy_call is available.
11105 (call_function_by_hand, push_dummy_code): Ditto.
11106
abf9b42d
AC
111072004-02-22 Andrew Cagney <cagney@redhat.com>
11108
11109 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
11110 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
11111 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
11112 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
11113 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
11114 call_dummy_location to ON_STACK.
11115
10fc94a4
MK
111162004-02-22 Mark Kettenis <kettenis@gnu.org>
11117
51433e4b
MK
11118 * x86-64-linux-tdep.c: Tweak comment.
11119 (amd64_linux_supply_gregset): Renamed from
11120 x86_64_linux_supply_gresget.
11121 (amd64_linux_fill_gregset): Renamed from
11122 x86_64_linux_fill_gregset.
11123 (fetch_core_registers): Adjust for renamed functions.
11124 (amd64_core_fns): Renamed from x86_64_core_fns.
11125 (amd64_linux_sigtramp_start): Renamed from
11126 x86_64_linux_sigtramp_start.
11127 (amd64_linux_pc_in_sigtramp): Renamed from
11128 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
11129 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
11130 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
11131 (amd64_linux_sigcontext_addr): Renamed from
11132 x86_64_linux_sigcontext_addr.
11133 (amd64_linux_sc_reg_offset): Renamed from
11134 x86_64_linux_sc_reg_offset.
11135 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
11136 Adjust for renamed functions and variables.
11137 (_initialize_amd64_linux_tdep): Renamed from
11138 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
11139 variables.
11140 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
11141 Adjust for renamed functions.
11142
430eaf2e
MK
11143 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
11144 from x86_64_linux_gregset64_reg_offset.
11145 (amd64_linux_gregset32_reg_offset): Rename from
11146 x86_64_linux_gregset64_reg_offset.
11147 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
11148 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
11149 (amd64_linux_dr_set_control): Renamed from
11150 x86_64_linux_dr_set_control. Adjust for renamed functions.
11151 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
11152 Adjust for renamed functions.
11153 (amd64_linux_dr_reset_addr): Renamed from
11154 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
11155 (amd64_linux_dr_get_status): Renamed from
11156 x86_64_linux_dr_get_status. Adjust for renamed functions.
11157 (_initialize_amd64_linux_nat): Renamed from
11158 _initialize_x86_64_linux_nat. Adjust for renamed variables and
11159 functions.
11160 * config/i386/nm-x86-64linux.h: Update copyright year.
11161 Adjust for renamed functions.
11162
10fc94a4
MK
11163 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
11164 amd64fbsd_sigtramp_start.
11165 (amd64fbsd_sigtramp_end_addr): Renamed from
11166 amd64fbsd_sigtramp_end.
11167 (amd64fbsd_init_abi): Adjust for renamed variables.
11168 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
11169 variables.
11170 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
11171 amd64fbsd_sigtramp_start.
11172 (amd64fbsd_sigtramp_end_addr): Renamed from
11173 amd64fbsd_sigtramp_end.
11174
343af405
AC
111752004-02-22 Andrew Cagney <cagney@redhat.com>
11176
537987fc
AC
11177 * hppa-tdep.c (hppa32_return_value): New function.
11178 (hppa64_return_value): New function.
11179 (hppa_gdbarch_init): Set return_value; keep disabled.
11180
fad850b2
AC
11181 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
11182 struct-return and inferior function call methods.
11183
26d08f08
AC
11184 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
11185 "frame-base.h".
11186 (struct hppa_frame_cache): Define.
11187 (hppa_frame_cache, hppa_frame_this_id): New functions.
11188 (hppa_frame_prev_register): New function.
11189 (hppa_frame_unwind, hppa_frame_base): New variables.
11190 (hppa_frame_unwind_sniffer): New function.
11191 (hppa_frame_base_address, hppa_unwind_pc): New function.
11192 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
11193 sniffer, and frame base sniffer; keep disabled.
11194 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
11195 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
11196
e7d7bd65
AC
11197 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
11198 to predicates for "seriously old code".
11199
e963316f
AC
11200 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
11201 runtime if(0).
11202
56132691
AC
11203 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
11204 unsigned.
11205 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
e963316f 11206
343af405
AC
11207 * config/pa/tm-hppa.h: Update copyright.
11208 (DEPRECATED_INIT_FRAME_PC): Delete macro.
11209 (deprecated_init_frame_pc_default): Delete declaration.
11210 (hppa_frame_init_saved_regs): Delete declaration.
11211 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
11212 * hppa-tdep.c: Include "arch-utils.h".
11213 (hppa_gdbarch_init): Set deprecated init_frame_pc
11214 and deprecated frame_init_saved_regs.
11215 (hppa_frame_init_saved_regs): Make static.
11216
f5859b4d
MK
112172004-02-22 Mark Kettenis <kettenis@gnu.org>
11218
86f6f8e7 11219 Remove old 386BSD support.
cf7c5c23 11220 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
86f6f8e7
MK
11221 * configure.host: Remove i[34567]86-*-bsd*.
11222 * configure.tgt: Remove i[34567]86-*-bsd*.
11223 * i386b-nat.c: Removed.
11224 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
cf7c5c23
MK
11225 (i386b-nat.o): Remove dependencies.
11226
86f6f8e7
MK
11227 * config/i386/i386bsd.mh: Removed.
11228 * config/i386/i386bsd.mt: Removed.
11229 * config/i386/nm-i386bsd.h: Removed.
11230 * config/i386/tm-i386bsd.h: Removed.
11231 * config/i386/xm-i386bsd.h: Removed.
11232
971218cd
MK
11233 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
11234
7e654c37
MK
11235 * amd64fbsd-tdep.c: Include "solib-svr4.h".
11236 (amd64fbsd_init_abi): Set link map offsets.
11237 * amd64nbsd-tdep.c: Include "slib-svr4.h".
11238 (amd64nbsd_init_abi): Set link map offsets.
11239 * amd64obsd-tdep.c: Include "solib-svr4.h".
11240 (amd64obsd_init_abi): Set link map offsets.
11241 * i386fbsd-tdep.c: Include "solib-svr4.h".
11242 (i386fbsd_init_abi): Set link map offsets.
11243 * i386nbsd-tdep.c: Include "solib-svr4.h".
11244 (i386nbsdelf_init_abi): Set link map offsets.
11245 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
11246 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
11247 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
11248 solib-legacy.o and core-aout.o. Reformat.
11249 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
11250 solib-svr4.o, solib-legacy.o. Reformat.
11251 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
11252 * config/i386/nbsdelf.mh: Reformat.
11253 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
11254 solib-svr4.o, solib-legacy.o and corelow.o.
11255 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
11256 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
11257 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
11258 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11259 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11260 (TM_FILE): Set to tm-fbsd.h.
11261 * config/i386/nbsd.mt (TDEPFILES): Reformat.
11262 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
11263 solib-svr4.o.
11264 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
11265 solib-svr4.o.
11266 (TM_FILE): Set to nm-nbsd.h.
11267 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
11268 Simplify shared library support. Don't include "elf/common.h".
11269 (SVR4_SHARED_LIBS): Don't define.
11270 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
11271 "solib.h".
11272 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
11273 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
11274 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
11275 Don't include "i386/tm-i386.h". Include "solib.h".
11276 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
11277 Don't include "i386/tm-i386.h".
11278 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
11279 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
11280 Include "i386/xm-i386.h".
11281 (HOST_LONG_DOUBLE_FORMAT): Remove.
11282
5d93ae8c
MK
11283 Fix OpenBSD/i386 sigtramp recognition.
11284 * i386-tdep.h: Update copyright year.
11285 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
11286 (i386bsd_sigtramp_end): New prototypes.
11287 (i386fbsd_sigtramp_start_addr): Renamed from
11288 i386fbsd_sigtramp_start.
11289 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11290 (i386obsd_sigtramp_start_addr): Renamed from
11291 i386obsd_sigtramp_start.
11292 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11293 * i386bsd-tdep.c: Update copyright year.
11294 (i386bsd_pc_in_sigtramp): Make public.
11295 * i386fbsd-nat.c: Update copyright year.
11296 (_initialize_i386fbsd_nat): Adjust for renamed variables.
11297 * i386fbsd-tdep.c: Update copyright year.
11298 (i386fbsd_sigtramp_start_addr): Renamed from
11299 i386fbsd_sigtramp_start.
11300 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11301 (i386fbsdaout_init_abi): Adjust for renamed variables.
11302 * i386obsd-nat.c: Update copyright year.
11303 (_initialize_i386obsd_nat): Adjust for renamed variables.
11304 * i386obsd-tdep.c: Include "target.h".
11305 (i386obsd_page_size): New variable.
11306 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
11307 (i386obsd_sigtramp_end): New functions.
11308 (i386obsd_sigtramp_start_addr): Renamed from
11309 i386obsd_sigtramp_start.
11310 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11311 (i386obsd_init_abi): Adjust for renamed variables. Set
11312 pc_in_sigtramp, sigtramp_start and sigtramp_end.
11313 * Makefile.in (i386obsd-tdep.o): Update dependencies.
11314
84d04465
MK
11315 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
11316 trampoline change in OpenBSD kernel.
11317
b053aceb
MK
11318 * amd64-nat.c: Update copyright year.
11319 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
11320 architecture from REGCACHE.
11321
f5859b4d
MK
11322 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
11323 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
11324
e4bbbda8
MK
113252004-02-21 Mark Kettenis <kettenis@gnu.org>
11326
ba361932
MK
11327 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
11328 i[34567]86-*-openbsd3.[0-3].
11329 * config/i386/obsdaout.mh: New file.
11330
d3e48264
MK
11331 * config/i386/obsd.mh (MH_FLAGS): Remove.
11332
60a6eeb6
MK
11333 Fix PR build/1549.
11334 * i386obsd-tdep.c: Update copyright years. Include
11335 "solib-svr4.h".
11336 (i386obsd_init_abi): Don't set regset_from_core_section here.
11337 (i386obsd_aout_init_abi): New function. Set
11338 regset_from_core_section here.
11339 (i386obsd_elf_init_abi): New function.
11340 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
11341 * Makefile.in (i386obsd-tdep.o): Update dependecies.
11342 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
11343 (TM_FILE): Set to tm-nbsd.h.
11344
11345 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
11346 solib-sunos.o.
11347
e4bbbda8
MK
11348 * solib-svr4.h: Update copyright year.
11349 (svr4_ilp32_fetch_link_map_offsets)
11350 (svr4_lp64_fetch_link_map_offsets): New prototype.
11351 * solib-svr4.c: Update copyright year.
11352 (svr4_ilp32_fetch_link_map_offsets)
11353 (svr4_lp64_fetch_link_map_offsets): New function.
11354
f6fe98ef
DJ
113552004-02-20 Daniel Jacobowitz <drow@mvista.com>
11356
11357 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
11358 to the partial symbol table.
11359
589ca796
JB
113602004-02-20 J. brobecker <brobecker@gnat.com>
11361
11362 * PROBLEMS: Add description of problem documented under gdb/1560.
11363
2031c21a
MK
113642004-02-20 Mark Kettenis <kettenis@gnu.org>
11365
30b344b1
MK
11366 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
11367 comments.
11368 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
11369 functions.
11370 (amd64obsd_init_abi): Reorder initializations. Use
11371 amd64obsd_r_reg_offset to initialize the general-purpose register
11372 set details. Set regset_from_core_section.
11373 (_initialize_amd64obsd_tdep): Rename from
11374 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
11375 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
11376 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
11377
2031c21a
MK
11378 * NEWS (New native configurations): Mention OpenBSD/alpha.
11379 * configure.tgt: Add alpha*-*-openbsd*.
11380 * configure.host: Add alpha*-*-openbsd*.
11381 * alphanbsd-tdep.c: Update copyright year.
11382 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
11383
42471775
AC
113842004-02-20 Andrew Cagney <cagney@redhat.com>
11385
11386 Fix PR tdep/1372.
11387 * configure.tgt: Delete target "none-*-*".
11388 * configure.host: Delete host "none-*-*".
11389 * config/none/none.mh: Delete file.
11390 * config/none/none.mt: Delete file.
11391 * config/none/xm-none.h: Delete file.
11392 * config/none/tm-none.h: Delete file.
11393 * config/none/nm-none.h: Delete file.
11394
960ccd7d
FF
113952004-02-19 Fred Fish <fnf@redhat.com>
11396
11397 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
11398 cache->uses_fp prior to setting it.
11399
5f883edd
FF
114002004-02-19 Fred Fish <fnf@redhat.com>
11401
11402 Fix for PR breakpoint/1558.
11403 * sh-tdep.c (IS_JSR): New macro.
11404 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
11405
f98c22d5
JB
114062004-02-19 Jim Blandy <jimb@redhat.com>
11407
11408 * findvar.c (value_from_register): Doc fix.
11409
95051d27
JJ
114102004-02-19 Jeff Johnston <jjohnstn@redhat.com>
11411
11412 * printcmd.c (print_scalar_formatted): Do not check for sizeof
11413 type being greater than sizeof of host's LONGEST. Always use
11414 unpack_long() unless format 'f' chosen.
11415
ccefbec3
EZ
114162004-02-19 Joel Brobecker <brobecker@gnat.com>
11417
11418 Committed by Elena Zannoni <ezannoni@redhat.com>
2ede629f 11419
ccefbec3
EZ
11420 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
11421 contains a symbol wich is the best, non-exact match for the given
11422 pc. Update comments.
11423
114242004-02-19 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 11425
2ede629f
EZ
11426 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
11427 macro, which was part of the now removed Mach 3 port.
11428 * utils.c (request_quit): Ditto.
11429
567ee972
MK
114302004-02-18 Mark Kettenis <kettenis@gnu.org>
11431
11432 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
11433 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
11434
50cca7bb
MK
114352004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11436
11437 Committed by Mark Kettenis <kettenis@gnu.org>.
11438
11439 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
11440 Define.
11441
226361c4
AC
114422004-02-18 Andrew Cagney <cagney@redhat.com>
11443
11444 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
11445 CONFIG_INSTALL and CONFIG_UNINSTALL.
11446 * configure: Re-generate.
11447 * interps.h (INTERP_TUI): Define.
11448 * Makefile.in: Update dependencies.
11449 (TUI): New macro.
11450 (tui-main.o): Specify dependencies.
11451 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
11452 * tui/tui-main.c: New file.
11453
49cfa46f
MK
114542004-02-18 Mark Kettenis <kettenis@gnu.org>
11455
e2879ccb
MK
11456 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
11457 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
11458 dependencies.
11459 * configure.host: Add x86_64-*-openbsd*.
11460 * configure.tgt: Add x86_64-*-openbsd*.
11461 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
11462
c43f4bec
MK
11463 * tui/tui.c: Don't include <malloc.h>.
11464
09ae75b6
MK
11465 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
11466 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
11467 amd64nbsd-tdep.c.
11468
49cfa46f 11469 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
8a1dac83 11470 static. Remove extraneous whitespace.
49cfa46f
MK
11471 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
11472 static.
11473
05957fdb
JB
114742004-02-17 Jim Blandy <jimb@redhat.com>
11475
11476 * findvar.c (value_from_register): Doc fix.
11477
d0f54f9d
JB
114782004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11479
11480 Committed by Jim Blandy <jimb@redhat.com>.
e1457d83 11481
8a1dac83 11482 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
c253954e
JB
11483 CORE_ADDR as type for selectors. Correct types for GNU run time
11484 message lookup function to use double indirection.
11485 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
11486 * objc-lang.h (lookup_child_selector): Adapt prototype.
11487
9cbd5950
JB
11488 * s390-nat.c (SUBOFF): New macro.
11489 (supply_gregset, fill_gregset): Use it to handle debugging
11490 of 32-bit exectuables running under a 64-bit kernel.
11491 * s390-tdep.c: Include "solib-svr4.h".
11492 (s390_svr4_fetch_link_map_offset): New function.
11493 (s390x_svr_fetch_link_map_offset): Likewise.
11494 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
11495 * Makefile.in (s390-tdep.o): Update dependencies.
11496
a8c99f38
JB
11497 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
11498 "frame-unwind.h".
11499 (s390_readinstruction): Reformat. Use read_memory_nobpt.
11500 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
11501 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
11502 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
11503 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
11504 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
8a1dac83 11505 S390_SIGNAL_FRAMESIZE,
a8c99f38
JB
11506 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
11507 (struct frame_extra_info): Remove.
11508 (s390_memset_extra_info): Remove.
f73b1eff
JB
11509 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
11510 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
11511 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
a8c99f38
JB
11512 (is_rse): Renamed to ...
11513 (is_rsy): ... this. Support long displacements.
11514 (is_rxe): Renamed to ...
11515 (is_rxy): ... this. Support long displacements.
11516 (compute_x_addr): Support long displacements.
11517 (struct s390_prologue_data): New data type.
11518 (s390_on_stack): Change API to use struct s390_prologue_data.
11519 (s390_store): Reimplement.
11520 (s390_load): New function.
11521 (s390_get_signal_frame_info): Remove.
11522 (s390_get_frame_info): Remove, replace by ...
11523 (s390_analyze_prolog): ... this new function.
11524 (s390_check_function_end): Remove.
11525 (s390_function_start): Remove.
11526 (s390_frameless_function_invokation): Remove.
11527 (s390_is_sigreturn): Remove.
11528 (s390_init_frame_pc_first): Remove.
11529 (s390_init_frame_extra_info): Remove.
11530 (s390_frame_init_saved_regs): Remove.
11531 (s390_frame_saved_pc_nofix): Remove.
11532 (s390_frame_saved_pc): Remove.
11533 (s390_frame_chain): Remove.
11534 (s390_fp_regnum, s390_read_fp): Remove.
11535 (s390_pop_frame_regular, s390_pop_frame): Remove.
11536 (s390_saved_pc_after_call): Remove.
11537 (s390_skip_prologue): Reimplement.
11538 (s390_in_function_epilogue_p): Support long displacements.
11539 (struct s390_unwind_cache): New data structure.
11540 (s390_frame_unwind_cache): New function.
11541 (s390_prologue_frame_unwind_cache): Likewise.
11542 (s390_backchain_frame_unwind_cache): Likewise.
11543 (s390_frame_this_id, s390_frame_prev_register): Likewise.
11544 (s390_frame_unwind): Define.
11545 (s390_frame_sniffer): New function.
11546 (struct s390_pltstub_unwind_cache): New data structure.
11547 (s390_pltstub_frame_unwind_cache): New function.
11548 (s390_pltstub_frame_this_id): Likewise.
11549 (s390_pltstub_frame_prev_register): Likewise.
11550 (s390_pltstub_frame_unwind): Define.
11551 (s390_pltstub_frame_sniffer): New function.
11552 (struct s390_sigtramp_unwind_cache): New data structure.
11553 (s390_sigtramp_frame_unwind_cache): New function.
11554 (s390_sigtramp_frame_this_id): Likewise.
11555 (s390_sigtramp_frame_prev_register): Likewise.
11556 (s390_sigtramp_frame_unwind): Define.
11557 (s390_sigtramp_frame_sniffer): New function.
11558 (s390_frame_base_address, s390_local_base_address): New functions.
11559 (s390_frame_base): Define.
11560 (s390_unwind_pc, s390_unwind_sp): New function.
11561 (s390_push_dummy_call): Use new frame base location.
11562 (s390_unwind_dummy_id): Likewise.
11563 (s390_gdbarch_init): Remove calls to:
11564 set_gdbarch_frameless_function_invocation,
11565 set_gdbarch_deprecated_init_frame_pc,
11566 set_gdbarch_deprecated_frame_chain,
11567 set_gdbarch_deprecated_frame_init_saved_regs,
11568 set_gdbarch_deprecated_pop_frame,
11569 set_gdbarch_deprecated_init_extra_frame_info,
11570 set_gdbarch_deprecated_init_frame_pc_first,
11571 set_gdbarch_deprecated_target_read_fp,
11572 set_gdbarch_deprecated_frame_saved_pc,
11573 set_gdbarch_deprecated_saved_pc_after_call,
11574 set_gdbarch_deprecated_fp_regnum.
11575 Add calls to:
11576 set_gdbarch_in_solib_call_trampoline,
11577 frame_unwind_append_sniffer,
11578 frame_base_set_default,
11579 set_gdbarch_unwind_pc,
11580 set_gdbarch_unwind_sp.
11581 * Makefile.in (s390-tdep.o): Update dependencies.
11582
b0cf273e
JB
11583 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
11584 (S390_STACK_FRAME_OVERHEAD): Remove.
11585 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
11586 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
11587 (s390_promote_integer_argument): Remove.
11588 (s390_cannot_extract_struct_value_address): Remove.
11589 (s390_use_struct_convention, s390_store_struct_return): Remove.
11590 (s390_extract_return_value, s390_store_return_value): Remove.
11591 (s390_return_value_convention, s390_return_value): New functions.
11592 (is_float_singleton): Handle typedefs.
8a1dac83 11593 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
b0cf273e
JB
11594 Remove, replace by ...
11595 (s390_function_arg_pass_by_reference, s390_function_arg_float,
11596 s390_function_arg_integer): ... these new functions.
11597 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
11598 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
11599 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
11600 Fill in tdep->abi.
11601 Remove calls to:
11602 set_gdbarch_deprecated_store_struct_return,
11603 set_gdbarch_deprecated_extract_return_value,
11604 set_gdbarch_deprecated_store_return_value,
11605 set_gdbarch_use_struct_convention,
11606 set_gdbarch_extract_struct_value_address,
11607 set_gdbarch_deprecated_pc_in_call_dummy,
11608 set_gdbarch_deprecated_push_arguments,
11609 set_gdbarch_deprecated_save_dummy_frame_tos,
11610 set_gdbarch_deprecated_push_return_address,
11611 set_gdbarch_deprecated_sizeof_call_dummy_words,
11612 set_gdbarch_deprecated_call_dummy_words,
11613 set_gdbarch_deprecated_dummy_write_sp.
11614 Add calls to:
11615 set_gdbarch_push_dummy_call,
11616 set_gdbarch_unwind_dummy_id,
11617 set_gdbarch_return_value.
8a1dac83 11618
e1457d83
JB
11619 * config/s390/nm-linux.h: Update comments.
11620 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
11621 (STOPPED_BY_WATCHPOINT): Redefine.
11622 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
11623 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
11624 (s390_stopped_by_watchpoint): Likewise.
11625 (watch_area_cnt): Remove.
11626 * s390-nat.c: Update comments.
11627 (watch_area): Remove typedef.
11628 Global replace watch_area by struct watch_area.
11629 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
8a1dac83 11630 (s390_stopped_by_watchpoint): Remove pid argument,
e1457d83
JB
11631 use s390_inferior_tid. Add short-cut for the no watchpoint case.
11632 (s390_fix_watch_points): Remove pid argument,
11633 use s390_inferior_tid. Recompute area spanned by watchpoints.
11634 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
11635 argument. Reimplement.
11636
d0f54f9d
JB
11637 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
11638 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
11639 (FETCH_INFERIOR_REGISTERS): Define.
8a1dac83 11640 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
d0f54f9d
JB
11641 core-regset.o.
11642 * config/s390/s390x.mt: Remove.
11643 * config/s390/tm-s390.h: Remove.
11644 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
11645 (TARGET_ELF64): Remove.
11646 (SKIP_TRAMPOLINE_CODE): Do not undefine.
11647 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
11648 s390*-*-* case; always set gdb_target to s390.
11649 * regformats/reg-s390.dat: Remove control registers.
11650 * regformats/reg-s390x.dat: Likewise.
11651 * s390-tdep.h: New file.
8a1dac83 11652 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
d0f54f9d
JB
11653 Include "inferior.h" and "s390-tdep.h".
11654 Remove private definition of offsetof.
11655 (s390_register_u_addr): Remove.
11656 (regmap_gregset, regmap_fpregset): Define.
11657 (supply_gregset, fill_gregset): Reimplement.
11658 (supply_fpregset, fill_fpregset): Likewise.
11659 (s390_inferior_tid): New function.
11660 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
11661 (fetch_inferior_registers, store_inferior_registers): Likewise.
11662 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
11663 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
11664 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
11665 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
11666 (struct gdbarch_tdep): Define.
11667 (struct s390_register_info): Define.
11668 (s390_register_info): New variable.
11669 (s390_register_name): Reimplement.
11670 (s390_register_type): New function.
11671 (s390_register_raw_size, s390x_register_raw_size): Remove.
11672 (s390_cannot_fetch_register): Remove.
11673 (s390_register_byte): Remove.
11674 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
11675 (s390_dwarf_regmap): New variable.
11676 (s390_dwarf_reg_to_regnum): New function.
11677 (s390_stab_reg_to_regnum): Remove.
11678 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
11679 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
11680 (s390_convert_register_p): Likewise.
11681 (s390_register_to_value, s390_value_to_register): Likewise.
11682 (s390_register_reggroup_p): Likewise.
11683 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
11684 s390_gregset, s390x_gregset, s390_fpregset): New variables.
11685 (s390_supply_regset, s390_regset_from_core_section): New functions.
11686 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
11687 (S390_FPR_SIZE): Likewise.
11688 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
11689 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
11690 (S390_NUM_GPRS): Move here from tm-s390.h.
11691 (S390_NUM_FPRS): Likewise.
11692 (s390_in_function_epilogue_p): New function.
11693 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
11694 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
11695 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
11696 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
11697 Replace S390_FP_REGNUM by S390_SP_REGNUM.
11698 Remove calls to:
11699 set_gdbarch_deprecated_max_register_raw_size,
8a1dac83
RM
11700 set_gdbarch_deprecated_max_register_virtual_size,
11701 set_gdbarch_deprecated_register_byte,
d0f54f9d 11702 set_gdbarch_cannot_fetch_register,
8a1dac83 11703 set_gdbarch_cannot_store_register,
d0f54f9d
JB
11704 set_gdbarch_deprecated_register_size,
11705 set_gdbarch_deprecated_register_raw_size,
11706 set_gdbarch_deprecated_register_virtual_size,
11707 set_gdbarch_deprecated_register_virtual_type,
11708 set_gdbarch_deprecated_register_bytes.
11709 Add calls to:
11710 set_gdbarch_num_pseudo_regs,
11711 set_gdbarch_register_type,
11712 set_gdbarch_convert_register_p,
11713 set_gdbarch_register_to_value,
11714 set_gdbarch_value_to_register,
11715 set_gdbarch_register_reggroup_p,
11716 set_gdbarch_regset_from_core_section,
11717 set_gdbarch_pseudo_register_read,
11718 set_gdbarch_pseudo_register_write,
11719 set_gdbarch_in_function_epilogue_p.
11720 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
11721 (s390_tdep_h): New variable.
11722
8cfe231d
JB
117232004-02-17 Jim Blandy <jimb@redhat.com>
11724
4589a601
JB
11725 * findvar.c (value_from_register): If the type has no length, just
11726 return an acceptable value --- don't report an internal error.
11727
8cfe231d
JB
11728 * stabsread.c (read_type): If we find any type numbers that are
11729 forward references, complain if the references aren't resolved by
11730 the time we're finished reading.
11731 (cleanup_undefined_types): Make error message more appropriate for
11732 a complaint.
11733
5bf0017e
EZ
117342004-02-17 Elena Zannoni <ezannoni@redhat.com>
11735
9d62932d
EZ
11736 * Makefile.in (defs_h): Remove dependency on progress_h.
11737 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
11738 progress.h.
11739 * main.c (captured_main): Delete use of START_PROGRESS and
11740 END_PROGRESS.
11741
117422004-02-17 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 11743
5bf0017e
EZ
11744 * objfiles.c (terminate_minimal_symbol_table): Add back
11745 initialization of MSYMBOL_TYPE.
11746
9fc9f5e2
AC
117472004-02-17 David Mosberger <davidm@hpl.hp.com>
11748
11749 Committed by Andrew Cagney.
11750 * Makefile.in (ia64_tdep_h): New macro.
11751 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
11752 (ia64-tdep.o): Likewise.
11753 * ia64-tdep.h: New file.
11754 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
11755 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
11756 (ia64_aix_sigcontext_register_address): Likewise.
11757 (ia64_linux_getunwind_table): Delete declaration.
11758 * ia64-linux-tdep.c: Likewise.
11759
76cd2bd9
CV
117602004-02-17 Corinna Vinschen <vinschen@redhat.com>
11761
11762 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
11763 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
11764 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
11765
634aa483
AC
117662004-02-17 Andrew Cagney <cagney@redhat.com>
11767
11768 * symtab.c (skip_prologue_using_sal): New function.
11769 * symtab.h (skip_prologue_using_sal): Declare.
11770 * frv-tdep.c: Include "symtab.h".
11771 (skip_prologue_using_sal): Delete function.
11772 * mips-tdep.c (skip_prologue_using_sal): Delete function.
11773 * rs6000-tdep.c (refine_prologue_limit): Mention
11774 skip_prologue_using_sal.
11775 * ia64-tdep.c (refine_prologue_limit): Ditto.
11776 * Makefile.in: Update dependencies.
11777
117782004-02-16 Andrew Cagney <cagney@redhat.com>
19772a2c 11779
39ce7b3f
AC
11780 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
11781 START_INFERIOR_TRAPS_EXPECTED.
11782 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
11783 START_INFERIOR_TRAPS_EXPECTED.
11784 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
11785 Delete macro.
11786 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
11787 macro, moved to "nm-osf.h". Update copyright.
11788 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
11789 update copyright.
11790
19772a2c
AC
11791 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
11792 and function replacing FRAMELESS_FUNCTION_INVOCATION.
11793 * blockframe.c (legacy_frameless_look_for_prologue): Rename
11794 frameless_look_for_prologue.
11795 * frame.h (legacy_frameless_look_for_prologue): Rename
11796 frameless_look_for_prologue.
11797 * gdbarch.h, gdbarch.c: Re-generate.
11798 * sh64-tdep.c (sh64_gdbarch_init): Update.
11799 * sh-tdep.c (sh_gdbarch_init): Update.
11800 * s390-tdep.c (s390_gdbarch_init): Update.
11801 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11802 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11803 * m68k-tdep.c (m68k_gdbarch_init): Update.
11804 (delta68_frame_args_address): Update.
11805 * m32r-tdep.c (m32r_gdbarch_init): Update.
11806 * hppa-tdep.c (hppa_gdbarch_init): Update.
11807 * h8300-tdep.c (h8300_gdbarch_init): Update.
11808 * frv-tdep.c (frv_gdbarch_init): Update.
11809 (frv_frameless_function_invocation): Update.
11810 * cris-tdep.c (cris_gdbarch_init): Update.
11811 (cris_frameless_function_invocation): Update.
11812 * avr-tdep.c (avr_gdbarch_init): Update.
11813 * arm-tdep.c (arm_gdbarch_init): Update.
11814 * stack.c (frame_info): Update, call predicate.
11815 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
11816 * frame.c (legacy_get_prev_frame): Update, call predicate..
11817 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
11818 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
11819 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
11820 invocation.
11821 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11822 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11823 * vax-tdep.c (vax_gdbarch_init): Ditto.
2be8b3c1
AC
11824
11825 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
11826 function.
11827
7dcaac91
DJ
118282004-02-16 Daniel Jacobowitz <drow@mvista.com>
11829
11830 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
11831 initializations.
11832
88289b6e
AC
118332004-02-16 Andrew Cagney <cagney@redhat.com>
11834
11835 * tui/tui-windata.c: Include "gdb_string.h".
11836 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
11837 * tui/tui-layout.c, tui/tui-command.c: Ditto.
11838 * Makefile.in: Update dependencies.
11839
9f976b41
DJ
118402004-02-16 Daniel Jacobowitz <drow@mvista.com>
11841
11842 * Makefile.in (infrun.o): Add $(gdb_assert_h).
11843 * infrun.c: Include "gdb_assert.h".
11844 (singlestep_ptid, saved_singlestep_ptid)
11845 (stepping_past_singlestep_breakpoint): New variables.
11846 (resume): Set singlestep_ptid. Check for singlestep thread
11847 hop.
11848 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
11849 (handle_inferior_event): Handle singlestep thread hop.
11850
c324d747
AC
118512004-02-16 Andrew Cagney <cagney@redhat.com>
11852
f090b9b1
AC
11853 * dwarf2-frame.c (dwarf2_frame_ops): New function.
11854 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
11855 (dwarf2_frame_init_reg): Ditto.
11856
fd33e6cb
AC
11857 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
11858 suggested by Joshua Neuheisel
11859
c324d747
AC
11860 * configure.in: Always check for curses, including pdcurses.
11861 Warn, instead of error, when no curses are found. Enable TUI when
11862 curses is available.
11863 * configure: Re-generate.
11864
b66ba949
CV
118652004-02-16 Corinna Vinschen <vinschen@redhat.com>
11866
11867 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
11868 sh_sh4_register_convert_to_virtual.
11869 (sh_register_convert_to_raw): Rename from
11870 sh_sh4_register_convert_to_raw.
11871 (sh_pseudo_register_read): Accomodate above name change.
11872 (sh_pseudo_register_write): Ditto.
11873
b58cbbf2
CV
118742004-02-16 Corinna Vinschen <vinschen@redhat.com>
11875
11876 * sh-tdep.c (sh_generic_register_name): Remove.
11877 (sh_gdbarch_init): Use sh_sh_register_name in default case.
11878
5929a910
AC
118792004-02-15 Andrew Cagney <cagney@redhat.com>
11880
4566dfcf
AC
11881 * configure.in (build_warnings): Add -Wunused-function.
11882 * configure: Re-generate.
11883
db11ed55
AC
11884 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
11885 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
11886
46ac7a5d
AC
11887 * procfs.c (procfs_init_inferior): Assume that
11888 START_INFERIOR_TRAPS_EXPECTED is defined.
11889 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
11890 * config/ns32k/tm-nbsd.h: Delete file,
11891 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
11892
ba801595
AC
11893 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
11894 * config/vax/tm-vax.h: Delete file.
11895
5929a910
AC
11896 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11897 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11898 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11899 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11900 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
11901 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11902 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
11903
8f22cb90
MK
119042004-02-15 Mark Kettenis <kettenis@gnu.org>
11905
11906 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
11907 * dwarf2-frame.c (dwarf2_frame_data): New variable.
11908 (struct dwarf2_frame_ops): New.
11909 (dwarf2_frame_default_init_reg): New function, based on
11910 dwarf2_frame_init_reg.
11911 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
11912 (dwarf2_frame_init_reg): Call architecture-specific function.
11913 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
11914 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
11915 instead of dwarf2_frame_data.
11916 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
11917 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
11918
8132723e
AC
119192004-02-15 Andrew Cagney <cagney@redhat.com>
11920
046a4708
AC
11921 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
11922 register_gdbarch_swap.
11923 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
11924 * f-lang.c (_initialize_f_language): Update, use
11925 DEPRECATED_REGISTER_GDBARCH_SWAP.
11926 * remote.c (_initialize_remote): Ditto.
11927 * regcache.c (_initialize_regcache): Ditto.
11928 * parse.c (_initialize_parse): Ditto.
11929 * infrun.c (_initialize_infrun): Ditto.
11930 * mi/mi-main.c (_initialize_mi_main): Ditto.
11931 * gdbtypes.c (_initialize_gdbtypes): Ditto.
8a1dac83 11932
549c1eea
AC
11933 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
11934 poking .cacheable directly.
11935 * symfile.c (symfile_bfd_open): Ditto.
11936
0c0b39de
AC
11937 * Makefile.in: Update all dependencies.
11938
8132723e
AC
11939 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
11940 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
11941 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
11942 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
11943 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
0c0b39de 11944
b9d26eb9
AC
119452004-02-14 Andrew Cagney <cagney@redhat.com>
11946
8e1f669a
AC
11947 * arch-utils.c (legacy_convert_register_p): Check
11948 DEPRECATED_REGISTER_CONVERTIBLE_P.
11949 * findvar.c (value_of_register): Ditto.
11950
cd0bfa36
AC
11951 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
11952 * gdbarch.h, gdbarch.c: Re-generate.
11953 * arch-utils.c (deprecated_register_convertible_not): Delete.
11954 * arch-utils.h (deprecated_register_convertible_not): Delete.
11955 * mi/mi-main.c (get_register): Update. Update copyright.
11956 * infcmd.c (default_print_registers_info): Update.
11957
b9d26eb9
AC
11958 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
11959 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
11960 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
8a1dac83 11961 * gdbarch.h, gdbarch.c: Re-generate.
b9d26eb9
AC
11962 * frame.c (deprecated_get_next_frame_hack): Delete function.
11963 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
11964 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
11965 Update.
11966 * infcall.c (call_function_by_hand): Update.
11967
9ab9195f
EZ
119682004-02-14 Elena Zannoni <ezannoni@redhat.com>
11969
11970 * symfile.c (init_entry_point_info, entry_point_address): Move
8a1dac83 11971 from here...
9ab9195f
EZ
11972 * objfiles.c (init_entry_point_info, entry_point_address):..to
11973 here.
11974 * symfile.h (init_entry_point_info, entry_point_address): Remove
11975 prototypes.
11976 * objfiles.h (init_entry_point_info, entry_point_address):Add
8a1dac83 11977 prototypes.
9ab9195f
EZ
11978 * cris-tdep.c: Remove include of symfile.h. Add include of
11979 objfiles.h.
11980 * infcall.c: Ditto.
11981 * mcore-tdep.c: Ditto.
11982 * mn10300-tdep.c: Ditto.
11983 * sh64-tdep.c: Ditto.
11984 * v850-tdep.c: Ditto.
11985 * arm-tdep.c: Remove include of symfile.h.
11986 * blockframe.c: Ditto.
11987 * coffread.c: Ditto.
11988 * dbxread.c: Ditto.
11989 * dwarf2read.c: Ditto.
11990 * dwarfread.c: Ditto.
8a1dac83 11991 * frv-tdep.c: Ditto.
9ab9195f
EZ
11992 * ia64-tdep.c: Ditto.
11993 * mdebugread.c: Ditto.
11994 * mipsread.c: Ditto.
8a1dac83 11995 * rs6000-tdep.c: Ditto.
9ab9195f
EZ
11996 * s390-tdep.c: Ditto.
11997 * sh-tdep.c: Ditto.
8a1dac83 11998 * xstormy16-tdep.c: Ditto.
9ab9195f
EZ
11999 * gdbarch.sh: Remove include of symfile.h.
12000 * gdbarch.c: Regenerate.
12001 * solib-irix.c (enable_break): Use entry_point_address().
12002 Add comment about include file.
12003 * xcoffread.c: Add comment about include file.
8a1dac83
RM
12004 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
12005 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
12006 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
12007 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
9ab9195f
EZ
12008 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
12009
c4c5b7ba
AC
120102004-02-13 Andrew Cagney <cagney@redhat.com>
12011
12012 * corelow.c (core_xfer_partial): Use "struct bfd_section".
12013 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
12014 copyright.
12015 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
12016
3e7879de
FF
120172004-02-12 Fred Fish <fnf@redhat.com>
12018
12019 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
12020 set_gdbarch_store_return_value.
12021
6a7760b6
AC
120222004-02-12 Andrew Cagney <cagney@redhat.com>
12023
12024 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
12025 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
12026 (interrupt_query): Ditto.
12027 (ofunc): Delete unused variable.
12028 * cris-tdep.c (cris_abi): Delete unused function.
12029 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
12030 (cris_get_wide_opcode, cris_get_short_size): Ditto.
12031 (cris_get_asr_quick_shift_steps): Ditto.
12032 (cris_skip_prologue_frameless_p): Ditto.
12033 * arm-tdep.c (arm_push_return_address): Delete unused function.
12034 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
12035 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
12036 * s390-tdep.c (s390_function_start): Delete unused function.
12037
31687c3c
AC
120382004-02-12 Andrew Cagney <cagney@redhat.com>
12039
12040 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
12041 gdbarch.h, gdbarch.c: Re-generate.
12042 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
12043 to generic_prologue_frameless_p.
12044 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
12045 * arch-utils.c (generic_prologue_frameless_p): Delete function.
12046
6de918a6
DJ
120472004-02-11 Daniel Jacobowitz <drow@mvista.com>
12048
12049 * mips-linux-tdep.c: Include "frame.h".
12050 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
12051 (mips_linux_skip_resolver): New functions.
12052 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
12053 and set_gdbarch_in_solib_call_trampoline.
12054 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
12055 to after set_gdbarch_in_solib_return_trampoline. Only set the
12056 solib hooks to mips16 functions if the OS ABI is unknown.
12057 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
12058 including "config/tm-linux.h".
12059 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
12060 * Makefile.in (mips-linux-tdep.o): Update.
12061
87b3ede8
DC
120622004-02-11 David Carlton <carlton@kealia.com>
12063
12064 * linespec.c (decode_compound): Only look for a class symbol when
12065 considering all but the rightmost component.
12066
5979bc46
AC
120672004-02-11 Andrew Cagney <cagney@redhat.com>
12068
12069 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
12070 abi code are are separatly grouped.
12071
5867a2fb
AC
120722004-02-11 Andrew Cagney <cagney@redhat.com>
12073
12074 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
12075 * gdbarch.h, gdbarch.c: Re-generate.
12076 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12077 * v850-tdep.c (v850_gdbarch_init): Update.
12078 * sh64-tdep.c (sh64_gdbarch_init): Update.
12079 * sh-tdep.c (sh_gdbarch_init): Update.
12080 * s390-tdep.c (s390_gdbarch_init): Update.
12081 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12082 * mips-tdep.c (mips_gdbarch_init): Update.
12083 * mcore-tdep.c (mcore_gdbarch_init): Update.
12084 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12085 * m32r-tdep.c (m32r_gdbarch_init): Update.
12086 * ia64-tdep.c (ia64_gdbarch_init): Update.
12087 * hppa-tdep.c (hppa_gdbarch_init): Update.
12088 * h8300-tdep.c (h8300_gdbarch_init): Update.
12089 * frv-tdep.c (frv_gdbarch_init): Update.
12090 * d10v-tdep.c (d10v_gdbarch_init): Update.
12091 * cris-tdep.c (cris_gdbarch_init): Update.
12092 * avr-tdep.c (avr_gdbarch_init): Update.
12093 * arm-tdep.c (arm_gdbarch_init): Update.
12094 * alpha-tdep.c (alpha_gdbarch_init): Update.
12095
026a72f8
CV
120962004-02-11 Corinna Vinschen <vinschen@redhat.com>
12097
12098 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
12099 comma.
12100 (sh_sh4al_dsp_register_name): Ditto.
12101
3903d437
AC
121022004-02-10 Andrew Cagney <cagney@redhat.com>
12103
12104 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
12105 (mips_init_frame_pc_first): Delete function.
12106 (mips_frame_saved_pc): Delete function.
12107 (mips_frame_chain): Delete function.
12108 (mips_init_extra_frame_info): Delete function.
12109 (mips_xfer_register): Delete unused variable "reg".
12110 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
12111 (mips_n32n64_return_value): Delete unused variable "reg".
12112 (mips_n32n64_return_value): Delete unused variable "pos".
12113 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
12114 (mips_o32_return_value): Delete unused variable "pos".
12115 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
12116 (mips_print_fp_register): Delete unused variable "namelen"
12117 (mips_print_fp_register): Delete unused variable "flt2"
12118 (get_frame_pointer): Delete function.
12119 (cached_proc_desc): Delete static variable.
12120 (mips_pop_frame): Delete function.
12121 (mips_find_saved_regs): Delete function.
12122 (mips_get_saved_register): Delete function.
12123 (mips_saved_pc_after_call): Delete function.
12124 (SIGFRAME_BASE): Delete macro.
12125 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
12126 (SIGFRAME_PC_OFF): Delete macro.
12127 (SIGFRAME_REGSAVE_OFF): Delete macro.
12128 (mips_dump_tdep): Do not print deleted macro definitions.
12129
b9fb98bd
AC
121302004-02-10 Andrew Cagney <cagney@redhat.com>
12131
12132 * Makefile.in (SFILES): Remove explictly listed tui files.
12133 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
12134
78ced177 121352004-02-10 Jeff Johnston <jjohnstn@redhat.com>
8a1dac83 12136
78ced177
JJ
12137 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
12138 to use paddr functions to format ia64 addresses and long values.
12139 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
12140 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
12141 (get_kernel_table, ia64_find_proc_info_x): Ditto.
12142 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
12143 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
12144
6a83354a
AC
121452004-02-10 Andrew Cagney <cagney@redhat.com>
12146
12147 * defs.h: Do not include "tui.h".
12148 * gdb_curses.h: New file.
12149 * tui/tui-hooks.h: New file.
12150 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
12151 (tui_install_hooks, tui_remove_hooks): Delete declarations.
12152 (tui_initialize_io): Delete declaration.
12153 (tui_initialize_readline: Delete redundant declaration.
12154 (struct tui_point): Delete definition.
12155 * tui/tui-data.h (struct tui_point): Define.
12156 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
12157 * utils.c: Include "tui/tui.h".
12158 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
12159 * printcmd.c [TUI]: Include "tui/tui.h".
12160 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
12161 * tui/tui-command.c: Include "gdb_curses.h".
12162 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
12163 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
12164 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
12165 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
12166 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
12167 * Makefile.in: Update all dependencies.
12168 (tui_hooks_h, gdb_curses_h): Define.
12169 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
12170
997470ef
EZ
121712004-02-10 Elena Zannoni <ezannoni@redhat.com>
12172
12173 * objfiles.h (struct objfile): Remove unused fields auxf1 and
12174 auxf2. Add comments about some other rarely used fields.
12175
4ff2cc4d
AC
121762004-02-10 Andrew Cagney <cagney@redhat.com>
12177
12178 * Makefile.in (init.c): Fix script removing duplicates. Problem
12179 reported by Peter Schauer.
12180
1ab21617
EZ
121812004-02-09 Elena Zannoni <ezannoni@redhat.com>
12182
12183 * bcache.c (bcache_xmalloc): Use obstack_init instead of
12184 obstack_specify_allocation.
12185 * objfiles.c (allocate_objfile): Ditto.
8a1dac83 12186 * solib-sunos.c (solib_add_common_symbols)
1ab21617
EZ
12187 (allocate_rt_common_objfile): Ditto.
12188 * symfile.c (reread_symbols): Ditto.
12189 * gdb_obstack.h: Add comment.
12190
17763fd9
EZ
121912004-02-09 Elena Zannoni <ezannoni@redhat.com>
12192
12193 * linespec.c (decode_line_1, locate_first_half)
12194 (decode_compound, lookup_prefix_sym): Update comments. Delete old
12195 commented out code.
12196
ec5cdd75
DJ
121972004-02-09 Daniel Jacobowitz <drow@mvista.com>
12198
12199 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
12200 obstack_free.
12201
43b54b88
AC
122022004-02-09 Andrew Cagney <cagney@redhat.com>
12203
12204 * blockframe.c (find_pc_partial_function): If find_pc_overlay
12205 fails, try find_pc_section. Fix PR c++/1267.
12206 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
12207 instead of find_pc_mapped_section.
12208 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
12209 not default to the section containing PC. Fix PR symtab/1519.
12210
edfae063
AC
122112004-02-09 Andrew Cagney <cagney@redhat.com>
12212
12213 * Makefile.in (mips-tdep.o): Update dependencies.
12214 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
12215 "trad-frame.h".
12216 (mips_unwind_pc): Return the pseudo PC register.
12217 (mips_unwind_dummy_id): New function.
12218 (mips16_fetch_instruction): New function.
12219 (mips32_fetch_instruction): New function.
12220 (struct mips_frame_cache): Define.
12221 (mips_mdebug_frame_cache): New function.
12222 (mips_mdebug_frame_this_id): New function.
12223 (mips_mdebug_frame_prev_register): New function.
12224 (mips_mdebug_frame_unwind): Define.
12225 (mips_mdebug_frame_sniffer): New function.
12226 (mips_mdebug_frame_base_address): New function.
12227 (mips_mdebug_frame_base): Define.
12228 (mips_mdebug_frame_base_sniffer): New function.
12229 (mips_gdbarch_init): Append unwind and base sniffers. Set
12230 unwind_dummy_id.
12231
defc864c
AC
122322004-02-08 Andrew Cagney <cagney@redhat.com>
12233
6764ddad
AC
12234 * frame.c: Print both the register number and name.
12235
defc864c
AC
12236 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
12237 and a sed into a single sed. Make .c and .o patterns more robust.
12238 (OBS): Delete.
12239 (INIT_FILES): Replace OBS with COMMON_OBS.
12240 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
12241
645d6d10
MK
122422004-02-08 Mark Kettenis <kettenis@gnu.org>
12243
12244 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
12245 the PT_WCOOKIE request.
12246
23e3c3fc
AC
122472004-02-08 Andrew Cagney <cagney@redhat.com>
12248
58dfe9ff
AC
12249 * mips-tdep.c (mips_unwind_pc): New function.
12250 (mips_gdbarch_init): Set mips_unwind_pc.
12251
1152e35e
AC
12252 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
12253 (get_frame_id): Allow the UNKNOWN_FRAME.
12254 (frame_register_unwind, get_frame_type): Ditto.
12255
31b75dbf
AC
12256 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
12257 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
12258 unwind_dummy_id indicates a legacy frame.
12259
3483b318
AC
12260 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
12261 * configure: Re-generate.
12262
23e3c3fc
AC
12263 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
12264 methods.
12265
33f8ca73
AC
122662004-02-08 Andrew Cagney <cagney@redhat.com>
12267
12268 * configure.in (CONFIG_ALL): Set to Makefile target, and not
12269 makefile macro.
12270 * configure: Re-generate.
12271 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
12272 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
12273 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
12274 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
12275 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
12276 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
12277 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
12278 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
12279 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
12280 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
12281
6ba8e26f 122822004-02-07 Andrew Cagney <cagney@redhat.com>
d836ee13 12283
20d286a5
AC
12284 * Makefile.in: Update all dependencies.
12285
d836ee13
AC
12286 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
12287 * configure: Re-generate.
12288 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
12289 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
12290 (COMMON_OBS): Add "main.o" and "annotate.o".
12291 (ANNOTATE_OBS): Delete.
12292 (OBS): Remove ANNOTATE_OBS.
12293 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
12294 CONFIG_INITS.
12295 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
12296 against CONFIG_OBS and "main.o".
12297 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
12298 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
12299
d02c80cd
AC
12300 * tui/tui-command.c: Include "gdb_string.h", delete register
12301 attribute, use ISO-C function signatures.
12302 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
12303 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
12304 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
12305 * tui/tui.c: Ditto.
6ba8e26f
AC
12306
12307 * tui/tui-command.c: Change variable and function names to lower
12308 case.
12309 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
12310 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
12311 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
12312 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12313 * tui/tui-winsource.c, tui/tui.c: Ditto.
12314
4a146b47
EZ
123152004-02-07 Elena Zannoni <ezannoni@redhat.com>
12316
12317 * buildsym.c (free_pending_blocks, finish_block)
12318 (record_pending_block, make_blockvector, end_symtab): Replace
12319 symbol_obstack with objfile_obstack.
8a1dac83 12320 * coffread.c (process_coff_symbol, coff_read_struct_type)
4a146b47 12321 (coff_read_enum_type): Ditto.
8a1dac83 12322 * cp-namespace.c (initialize_namespace_symtab)
4a146b47 12323 (check_one_possible_namespace_symbol): Ditto.
8a1dac83 12324 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
4a146b47
EZ
12325 (dwarf2_symbol_mark_computed): Ditto.
12326 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
12327 * elfread.c (elf_symtab_read): Ditto.
12328 * hpread.c (hpread_symfile_init, hpread_symfile_init)
12329 (hpread_read_enum_type, hpread_read_function_type)
12330 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
12331 Ditto.
8a1dac83 12332 * jv-lang.c (get_java_class_symtab, add_class_symbol)
4a146b47 12333 (java_link_class_type): Ditto.
8a1dac83 12334 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
4a146b47
EZ
12335 (new_symbol): Ditto.
12336 * minsyms.c (install_minimal_symbols): Ditto.
12337 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
12338 (terminate_minimal_symbol_table): Replace symbol_obstack with
12339 objfile_obstack.
12340 (free_objfile): Remove freeing of symbol_obstack.
12341 * objfiles.h: Remove symbol_obstack field.
12342 * pa64solib.c (add_to_solist): Replace symbol_obstack with
12343 objfile_obstack.
12344 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
12345 symbol_obstack.
12346 (solib_add_common_symbols): Replace symbol_obstack with
12347 objfile_obstack.
12348 * somsolib.c (som_solib_add): Ditto.
12349 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
12350 (common_block_start, common_block_end): Ditto.
12351 * symfile.c (reread_symbols): Remove freeing and init of
12352 symbol_obstack.
12353 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
12354 * symfile.h: Update comment.
12355 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
12356 stats printing.
12357 * symtab.c (symbol_set_names): Replace symbol_obstack with
12358 objfile_obstack.
12359 * symtab.h (struct general_symbol_info, struct minimal_symbol):
12360 Update comments.
12361 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
12362 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
12363 objfile_obstack.
12364
6d012f14
AC
123652004-02-07 Andrew Cagney <cagney@redhat.com>
12366
12367 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
12368 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
12369 fields and variables.
12370 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
12371 (m_beInvisible): Delete macro.
12372 * tui/tui-data.h: Fix case case fields and variables.
12373 (m_genWinPtrIsNull): Delete macro.
12374 (tui_win_list): Rename winList.
12375 (TUI_SRC_WIN): Rename srcWin.
12376 (TUI_DISASM_WIN): Rename disassemWin.
12377 (TUI_DATA_WIN): Rename dataWin.
12378 (TUI_CMD_WIN): Rename cmdWin.
12379 (m_genWinPtrNotNull): Delete macro.
12380 (m_winPtrIsNull): Delete macro.
12381 (m_winPtrNotNull): Delete macro.
12382 (tui_win_is_source_type): Replace m_winIsSourceType
12383 (tui_win_is_auxillary): Replace m_winIsAuzillary.
12384 (tui_win_has_locator): Replace m_hasLocator.
12385 (tui_set_win_highlight): Replace m_setWinHighlightOn and
12386 m_setWinHighlightOff.
12387 * tui/tui-data.c: Update references.
12388 (tui_win_is_source_type, tui_set_win_highlight): New functions.
12389 (tui_win_has_locator, tui_win_is_auxillary): New functions.
12390 * tui/tui-command.c, tui/tui-disasm.c: Update references.
12391 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
12392 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
12393 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12394 * tui/tui-winsource.c, tui/tui.c: Ditto.
12395
7d34766b
MK
123962004-02-07 Mark Kettenis <kettenis@gnu.org>
12397
1c800673
MK
12398 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
12399 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
12400 StackGhost.
12401
7d34766b
MK
12402 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
12403 variable `i6' to `i7'.
12404 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
12405
22940a24
AC
124062004-02-07 Andrew Cagney <cagney@redhat.com>
12407
12408 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
12409 (TuiPoint, TuiPointPtr): Ditto.
12410 (TuiStatus, TuiStatusPtr): Ditto.
12411 (TuiWinType, TuiWinTypePtr): Ditto.
12412 (struct tui_point): Rename _TuiPoint.
12413 (tui_get_low_disassembly_address): Rename
12414 tuiGetLowDisassemblyAddress.
12415 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
12416 (tuiFree): Delete declaration.
12417 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
12418 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
12419 * tui/tui.c (tuiFree): Delete function.
12420 * cli/cli-cmds.c (disassemble_command): Update references.
12421 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
12422 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
12423 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
12424 * tui/tui-winsource.c: Ditto.
12425
8b92e4d5
EZ
124262004-02-07 Elena Zannoni <ezannoni@redhat.com>
12427
12428 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
12429 coffstab_build_psymtabs, elfstab_build_psymtabs)
12430 (stabsect_build_psymtabs): Replace psymbol_obstack with
12431 objfile_obstack.
12432 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
12433 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
12434 Ditto.
12435 * dwarfread.c (scan_compilation_units): Ditto.
12436 * elfread.c (elfstab_offset_sections): Ditto.
12437 * hppa-tdep.c (read_unwind_info): Ditto.
12438 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
12439 (hpread_end_psymtab): Ditto.
12440 * mdebugread.c (mdebug_build_psymtabs, add_pending)
12441 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
12442 Ditto.
12443 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
8a1dac83 12444 * objfiles.c (add_to_objfile_sections)
8b92e4d5
EZ
12445 (build_objfile_section_table): Ditto.
12446 (allocate_objfile): Remove init of psymbol_obstack.
12447 (free_objfile): Remove freeing of psymbol_obstack.
12448 * objfiles.h (struct objfile): Remove field
12449 psymbol_obstack. Update comments.
12450 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
12451 psymbol_obstack with objfile_obstack.
12452 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
12453 psymbol_obstack.
12454 * somread.c (som_symfile_offsets, init_import_symbols)
12455 (init_export_symbols): Replace psymbol_obstack with
12456 objfile_obstack.
12457 * somsolib.c (som_solib_add_solib_objfile): Ditto.
12458 * symfile.c (default_symfile_offsets, syms_from_objfile)
12459 (reread_symbols): Remove freeing and init of psymbol_obstack.
12460 (cashier_psymtab): Update comment.
12461 * symmisc.c (print_objfile_statistics): Don't report stats for
12462 psymbol obstack.
12463 * symtab.h (struct general_symbol_info, struct partial_symtab):
12464 Update comments.
12465 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
12466 (xcoff_symfile_offsets): Replace psymbol_obstack with
12467 objfile_obstack.
12468
b99607ea
EZ
124692004-02-07 Elena Zannoni <ezannoni@redhat.com>
12470
12471 * objfiles.h (struct objfile): Add objfile_obstack field.
12472 Remove type_obstack field.
12473
12474 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
12475 read_structure_scope read_enumeration, new_symbol): Replace
12476 type_obstack with objfile_obstack.
12477 * dwarfread.c (struct_type, enum_type): Ditto.
8a1dac83 12478 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
b99607ea
EZ
12479 (lookup_fundamental_type): Ditto.
12480 * gdbtypes.h (TYPE_ALLOC): Ditto.
8a1dac83
RM
12481 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
12482 (hpread_read_doc_function_type, hpread_read_struct_type)
12483 (fix_static_member_physnames, hpread_read_array_type)
b99607ea 12484 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
8a1dac83 12485 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
b99607ea
EZ
12486 (java_link_class_type): Ditto.
12487 * mdebugread.c (parse_type): Ditto.
12488 * objfiles.c (allocate_objfile, free_objfile): Ditto.
12489 * solib-sunos.c (solib_add_common_symbols): Ditto.
12490 * stabsread.c (define_symbol, read_type, read_member_functions,
12491 read_cpp_abbrev, read_one_struct_field): Ditto.
12492 * symfile.c (reread_symbols): Ditto.
12493 * symmisc.c (print_objfile_statistics): Ditto.
8a1dac83 12494
2a8854a7
AC
124952004-02-07 Andrew Cagney <cagney@redhat.com>
12496
12497 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
12498 (tui_exec_info_content): Rename TuiExecInfoContent.
12499 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
12500 (TuiWinInfo, TuiWinInfoPtr): Ditto.
12501 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
12502 (TuiList, TuiListPtr): Ditto.
12503 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
12504 (TuiDataType, TuiDataTypePtr): Ditto.
12505 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
12506 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
12507 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
12508 (TuiSourceElement, TuiSourceElementPtr): Ditto.
12509 (TuiDataElement, TuiDataElementPtr): Ditto.
12510 (TuiWinElement, TuiWinElementPtr): Ditto.
12511 (TuiDataInfo, TuiDataInfoPtr): Ditto.
12512 (TuiCommandElement, TuiCommandElementPtr): Ditto.
12513 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
12514 (TuiWhichElement, TuiWhichElementPtr): Ditto.
12515 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
12516 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
12517 * tui/tui-command.c, tui/tui-data.c: Update references.
12518 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
12519 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
12520 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12521 * tui/tui-winsource.c, tui/tui.c: Ditto.
8a1dac83 12522
05cbe71a
MK
125232004-02-07 Mark Kettenis <kettenis@gnu.org>
12524
12525 * dwarf2-frame.h: Update copyright.
12526 (enum dwarf2_frame_reg_rule): New.
12527 (struct dwarf2_frame_state_reg): New.
12528 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
12529 * dwarf2-frame.c: Update copyright.
12530 (enum dwarf2_reg_rule): Remove.
12531 (struct dwarf2_frame_state): Remove defenition of `struct
12532 dwarf2_frame_state_reg'.
12533 (read_reg): Call get_frame_arch to get the architecture instead of
12534 using CURRENT_GDBARCH.
12535 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
12536 DWARF2_FRAME_.
12537 (dwarf2_frame_init_reg): New function.
12538 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
12539 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
12540 initialize the register state. Prefix old `enum dwarf2_reg_rule'
12541 tags with DWARF2_FRAME_.
12542 (dwarf2_frame_prev_register): Call get_frame_arch to get the
12543 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
12544 dwarf2_reg_rule' tags with DWARF2_FRAME_.
12545
ec7d9e56
AC
125462004-02-06 Andrew Cagney <cagney@redhat.com>
12547
dd1abb8c
AC
12548 * tui/tui-data.h (struct tui_list): Rename _TuiList.
12549 (enum tui_data_type): Rename _TuiDataType.
12550 (struct tui_layout_def): Rename _TuiLayoutDef.
12551 (struct tui_source_element): Rename _TuiSourceElement.
12552 (struct tui_data_element): Rename _TuiDataElement.
12553 (struct tui_command_element): Rename _TuiCommandElement.
12554 (struct tui_locator_element): Rename _TuiLocatorElement.
12555 (union tui_which_element): Define.
12556 (struct tui_win_element): Rename _TuiWinElement.
12557 (struct tui_data_info): Rename _TuiDataInfo.
12558 (struct tui_source_info): Rename _TuiSourceInfo.
12559 (struct tui_command_info): Rename _TuiCommandInfo.
12560 (tui_initialize_static_data): Rename initializeStaticData.
12561 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
12562 (tui_alloc_win_info): Rename allocWinInfo.
12563 (tui_init_generic_part): Rename initGenericPart.
12564 (tui_init_win_info): Rename initWinInfo.
12565 (tui_alloc_content): Rename allocContent.
12566 (tui_add_content_elements): Rename addContentElements.
12567 (tui_init_content_element): Rename initContentElement.
12568 (tui_free_window): Rename freeWindow.
12569 (tui_free_win_content): Rename freeWinContent.
12570 (tui_free_data_content): Rename freeDataContent.
12571 (tui_free_all_source_wins_content): Rename
12572 freeAllSourceWinsContent.
12573 (tui_del_window): Rename tuiDelWindow.
12574 (tui_del_data_windows): Rename tuiDelDataWindows.
12575 (tui_partial_win_by_name): Rename partialWinByName.
12576 (tui_win_name): Rename winName.
12577 (tui_current_layout): Rename currentLayout.
12578 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
12579 (tui_term_height): Rename termHeight.
12580 (tui_set_term_height_to): Rename setTermHeightTo.
12581 (tui_term_width): Rename termWidth.
12582 (tui_set_term_width_to): Rename setTermWidthTo.
12583 (tui_set_gen_win_origin): Rename setGenWinOrigin.
12584 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
12585 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
12586 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
12587 (tui_source_windows): Rename sourceWindows.
12588 (tui_clear_source_windows): Rename clearSourceWindows.
12589 (tui_clear_source_windows_detail): Rename
12590 clearSourceWindowsDetail.
12591 (tui_clear_win_detail): Rename clearWinDetail.
12592 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
12593 (tui_default_tab_len): Rename tuiDefaultTabLen.
12594 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
12595 (tui_win_with_focus): Rename tuiWinWithFocus.
12596 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
12597 (tui_layout_def): Rename tuiLayoutDef.
12598 (tui_win_resized): Rename tuiWinResized.
12599 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
12600 (tui_next_win): Rename tuiNextWin.
12601 (tui_prev_win): Rename tuiPrevWin.
12602 (tui_add_to_source_windows): Rename addToSourceWindows.
12603 * tui/tui-winsource.c, tui/tui-win.c: Update references.
12604 * tui/tui-layout.c, tui/tui-source.c: Ditto.
12605 * tui/tui-stack.c, tui/tui-io.c: Ditto.
12606 * tui/tui.c, tui/tui-data.c: Ditto.
12607 * tui/tui-interp.c, tui/tui-data.c: Ditto.
12608 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
12609
a358af15
AC
12610 * tui/tui-source.h: Update copyright. Include "tui-data.h".
12611 (struct symtab): Declare.
12612 (tui_set_source_content): Rename tuiSetSourceContent.
12613 (tui_show_symtab_source): Rename tuiShowSource.
12614 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
12615 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
12616 * tui/tui-source.c: Update copyright. Update references.
12617 * tui/tui-win.c, tui/tui-winsource.c: Update references.
12618 * tui/tui-stack.c: Update references.
12619
a21fcd8f
AC
12620 * tui/tui-win.h: Update copyright. Include "tui-data.h".
12621 (struct tui_win_info): Declare.
12622 (tui_scroll_forward): Rename tuiScrollForward.
12623 (tui_scroll_backward): Rename tuiScrollBackward.
12624 (tui_scroll_left): Rename tuiScrollLeft.
12625 (tui_scroll_right): Rename tuiScrollRight.
12626 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
12627 (tui_resize_all): Rename tuiResizeAll.
12628 (tui_refresh_all_win): Rename tuiRefreshAll.
12629 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
12630 * tui/tui-layout.c, * tui/tui-io.c: Update references.
12631 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
12632 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
12633
edae1ccf
AC
12634 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
12635 (tui_erase_data_content): Rename tuiEraseDataContent.
12636 (tui_display_all_data): Rename tuiDisplayAllData.
12637 (tui_check_data_values): Rename tuiCheckDataValues.
12638 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
12639 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
12640 (tui_first_data_element_no_in_line): Rename
12641 tuiFirstDataElementNoInLine.
12642 (tui_delete_data_content_windows): Rename
12643 tuiDeleteDataContentWindows.
12644 (tui_refresh_data_win): Rename tuiRefreshDataWin.
12645 (tui_display_data_from): Rename tuiDisplayDataFrom.
12646 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
12647 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
12648 * tui/tui-win.c, tui/tui-regs.c: Update references.
12649 * tui/tui-layout.c, tui/tui.c: Update references.
12650
ec7d9e56
AC
12651 * tui/tui-wingeneral.h: Update copyright.
12652 (m_allBeVisible): Delete macro.
8a1dac83 12653 (m_allBeInvisible): Delete macro.
ec7d9e56
AC
12654 (struct tui_gen_win_info): Declare.
12655 (struct tui_win_info): Declare.
12656 (tui_unhighlight_win): Rename unhighlightWin.
12657 (tui_make_visible, tui_make_invisible): Replace makeVisible.
12658 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
12659 (tui_make_window): Rename makeWindow.
12660 (tui_copy_win): Rename copyWin.
12661 (tui_box_win): Rename boxWin.
12662 (tui_highlight_win): Rename highlightWin.
12663 (tui_check_and_display_highlight_if_needed): Rename
12664 checkAndDisplayHighlightIfNeeded.
12665 (tui_refresh_all): Rename refreshAll.
12666 (tui_delete_win): Rename tuiDelwin.
12667 (tui_refresh_win): Rename tuiRefreshWin.
12668 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
12669 (tui_make_visible, tui_make_invisible): New functions.
12670 (tui_make_all_visible, tui_make_all_invisible): New functions.
12671 (make_all_visible): Rename makeAllVisible.
12672 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
12673 * tui/tui-data.c, tui/tui-winsource.c: Update references.
12674 * tui/tui-windata.c, tui/tui-win.c: Update references.
12675 * tui/tui-regs.c, tui/tui-layout.c: Update references.
12676 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
12677
1e52e2eb
MK
126782004-02-06 Mark Kettenis <kettenis@gnu.org>
12679
12680 * proc-api.c (write_with_trace): Initialize local variable to
12681 silence compiler warning.
12682
f80bda8e
AC
126832004-02-06 Andrew Cagney <cagney@redhat.com>
12684
12685 * tui/tui-source.h: Do not include "defs.h".
12686 (struct tui_win_info): Declare.
12687 (tui_set_source_content_nil): Declare.
12688 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
12689 (union tui_line_or_address): Rename _TuiLineOrAddress.
12690 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
12691 (tui_update_source_window): Rename tuiUpdateSourceWindow.
12692 (tui_update_source_window_as_is): Rename
12693 tuiUpdateSourceWindowAsIs.
12694 (tui_update_source_windows_with_addr): Rename
12695 tuiUpdateSourceWindowsWithAddr.
12696 (tui_update_source_windows_with_line): Rename
12697 tuiUpdateSourceWindowsWithLine.
12698 (tui_clear_source_content): Rename tuiClearSourceContent.
12699 (tui_erase_source_content): Rename tuiEraseSourceContent.
12700 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
12701 (tui_show_source_content): Rename tuiShowSourceContent.
12702 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
12703 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
12704 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
12705 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
12706 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
12707 (tui_update_exec_info): Rename tuiUpdateExecInfo.
12708 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
12709 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
12710 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
12711 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
12712 (struct tui_win_info): Declare.
12713 * tui/tui-stack.c: Update references.
12714 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
12715 * tui/tui-win.c, tui/tui-source.c: Ditto.
12716 * tui/tui.c, tui/tui-disasm.c: Ditto.
12717
9fbfb822
MK
127182004-02-06 Mark Kettenis <kettenis@gnu.org>
12719
12720 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
12721 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
12722
03cebad2
MK
127232004-02-05 Mark Kettenis <kettenis@gnu.org>
12724
12725 * infrun.c (handle_inferior_event): Allow for breakpoint
12726 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
12727 and SIGEMT. Update comments.
12728 * NEWS (Revised SPARC target): Mention support for non-executable
12729 stack.
12730
290281b1
MK
127312004-02-04 Mark Kettenis <kettenis@gnu.org>
12732
12733 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
12734 * inftarg.c: Update copyright year.
12735 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
12736 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
12737 (sparc_xfer_wcookie): New function.
12738 * sparc-tdep.c (sparc_fetch_wcookie): New function.
12739 * Makefile.in (sparc-nat.o): Update dependencies.
12740 * config/sparc/nm-nbsd.h: Include "target.h".
12741 (NATIVE_XFER_WCOOKIE): New define.
12742 (sparc_xfer_wcookie): New prototype.
12743
212161df
AC
127442004-02-04 Andrew Cagney <cagney@redhat.com>
12745
12746 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
12747 SYSCALL_TRAP function.
12748 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
12749
6e4c6c91
DJ
127502004-02-04 Andrew Cagney <cagney@redhat.com>
12751 Daniel Jacobowitz <drow@mvista.com>
12752
12753 * objfiles.h: Delete comments refering to inside_entry_func and
12754 DEPRECATED_FRAME_CHAIN_VALID.
12755 * defs.h (inside_entry_func): Update prototype..
12756 * blockframe.c (inside_entry_func): Rename to
12757 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
12758 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
12759
cae688ec
JJ
127602004-02-03 Jeff Johnston <jjohnstn@redhat.com>
12761
12762 * breakpoint.c (struct captured_parse_breakpoint_args): Move
12763 outside of #ifdef SOLIB_ADD region.
12764 (do_restore_lang_radix_cleanup): Ditto.
12765 (resolve_pending_breakpoint): Ditto.
12766
19217676
AC
127672004-02-03 Andrew Cagney <cagney@redhat.com>
12768
12769 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
12770 (process_note_abi_tag_sections): Delete unused function.
12771 (ia64_read_fp): Delete unused function.
12772 (gdbarch_extract_struct_value_address): Delete declaration.
12773
876753be
AC
127742004-02-02 Andrew Cagney <cagney@redhat.com>
12775
12776 * vax-tdep.c (vax_frame_chain): Delete call to
12777 deprecated_inside_entry_file.
12778 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
12779
d4f10bf2
MK
127802004-02-02 Mark Kettenis <kettenis@gnu.org>
12781
12782 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
12783 column that's "empty" or "same value" when eliminating REG_RA
12784 rules.
12785
cae688ec
JJ
127862004-02-02 Jeff Johnston <jjohnstn@redhat.com>
12787
12788 * NEWS: Add information about new pending breakpoint support.
12789
0101ce28
JJ
127902004-02-02 Jeff Johnston <jjohnstn@redhat.com>
12791
12792 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
12793 and pending fields for pending breakpoint support.
12794 * breakpoint.c (breakpoint_enabled): Add check for not pending.
12795 (condition_command): Only parse condition if not a pending
12796 breakpoint.
12797 (print_one_breakpoint): Add support for pending breakpoints.
12798 (describe_other_breakpoints): Add checks to verify we are not
12799 dealing with pending breakpoints.
12800 (check_duplicates): Don't check pending breakpoints.
12801 (set_raw_breakpoint): Initialize pending flag.
12802 (do_restore_lang_radix_cleanup): New cleanup routine.
12803 (resolve_pending_breakpoint): New function.
12804 (re_enable_breakpoints_in_shlibs): Try and resolve any
12805 pending breakpoints via resolve_pending_breakpoint.
12806 (mention): Add pending breakpoint support.
12807 (parse_breakpoint_sals): Add new parameter to pass to
12808 decode_line_1 to indicate silent errors when files or functions
12809 are not found. Change all callers.
12810 (do_captured_parse_breakpoint): New function.
12811 (break_command_1): Change prototype to return an rc value and to
12812 take an optional pending breakpoint pointer. Support creating
12813 a pending breakpoint if a "not found" form of error occurs when
12814 parsing the breakpoint. Also support resolving an existing pending
12815 breakpoint and be silent if the resolution fails.
12816 (create_breakpoints): Change prototype to take pending breakpoint
12817 pointer. When resolving a pending breakpoint, use the new pointer
12818 to provide a conditional or commands added by the end-user.
12819 (delete_breakpoint): Add appropriate check for pending.
12820 (breakpoint_re_set_one): Ditto.
12821 (do_enable_breakpoint): Ditto.
12822
8d577d32
DC
128232004-02-02 David Carlton <carlton@kealia.com>
12824
12825 * valops.c (enum oload_classification): New.
12826 (find_overload_match): Break implementation into separate
12827 functions; delete #if 0'd code; look for symbols within
12828 namespaces.
12829 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
12830 (find_oload_champ,oload_method_static,classify_oload_match): New.
12831 * cp-support.h: Add declaration for cp_func_name; update
12832 declaration for make_symbol_overload_list.
12833 * cp-support.c (cp_func_name): New.
12834 (overload_list_add_symbol): Fix comment, use
12835 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
12836 (make_symbol_overload_list): Take a function name and a namespace
12837 instead of a symbol; change implementation.
12838 (make_symbol_overload_list_using): New.
12839 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
12840
22e8e3c7
FF
128412004-02-02 Fred Fish <fnf@redhat.com>
12842
12843 * main.c (gdb_stdtarg): Move definition to group with other
15390fef 12844 gdb_stdtarg definitions and update copyright years.
22e8e3c7
FF
12845 * remote-sim.c (gdb_os_write_stderr): Write output to
12846 gdb_stdtargerr stream instead of gdb_stdtarg stream.
12847 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
15390fef 12848 gdb_stderr stream and update copyright years.
22e8e3c7 12849
6b753f60
DJ
128502004-02-01 Daniel Jacobowitz <drow@mvista.com>
12851
12852 * Makefile.in (mips-linux-nat.o): Update dependencies.
12853 * mips-linux-nat.c: Include mips-tdep.h.
12854
128552004-02-01 Roland McGrath <roland@redhat.com>
2cb6b099
RM
12856
12857 * sol-thread.c (sol_thread_xfer_partial): New function.
12858 (init_sol_thread_ops): Use that for to_xfer_partial hook.
12859 (init_sol_core_ops): Likewise.
12860
12861 * procfs.c (procfs_xfer_partial): New function.
12862 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
12863 * Makefile.in (procfs.o): Add $(auxv_h) dep.
12864
12865 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
12866 procfs_xfer_auxv function.
12867
12868 * procfs.c (procfs_make_note_section): If we can read
12869 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
12870 * linux-proc.c (linux_make_note_section): Likewise.
12871
12872 * auxv.h: New file.
12873 * auxv.c: New file.
12874 * Makefile.in (auxv_h): New variable.
12875 (COMMON_OBS): Add auxv.o here.
12876 (auxv.o): New target.
12877
12878 * corelow.c (core_xfer_partial): New function.
12879 (init_core_ops): Use it for core_ops.to_xfer_partial.
12880
12881 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
12882 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
12883 macro if that is defined.
12884
fa5281d0
DJ
128852004-02-01 Daniel Jacobowitz <drow@mvista.com>
12886
12887 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
12888 and check the specified thread for each breakpoint.
12889 * breakpoint.h (bpstat_stop_status): Update prototype.
12890 * infrun.c (handle_inferior_event): Update calls to
12891 bpstat_stop_status.
12892
26ee262d
DJ
128932004-02-01 Daniel Jacobowitz <drow@mvista.com>
12894
12895 * Makefile.in (cli-cmds.o): Add $(readline_h).
12896
d9b52655
DJ
128972004-02-01 Daniel Jacobowitz <drow@mvista.com>
12898
12899 * cli/cli-cmds.c: Include readline.h.
12900 (complete_command): Pass the start of the last word to
12901 complete_line.
12902
9709f61c
DJ
129032004-01-31 Daniel Jacobowitz <drow@mvista.com>
12904
12905 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
12906 argument, and change first argument to a CORE_ADDR.
12907 * breakpoint.h (bpstat_stop_status): Update prototype.
12908 * infrun.c (adjust_pc_after_break): Add a new comment.
12909 (handle_inferior_event): Update calls to bpstat_stop_status.
12910
4f1280bb
DJ
129112004-01-31 Daniel Jacobowitz <drow@mvista.com>
12912
12913 * breakpoint.h: Update copyright years.
12914
4fa8626c
DJ
129152004-01-31 Daniel Jacobowitz <drow@mvista.com>
12916
12917 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
12918 (bpstat_stop_status): Don't decrement PC.
12919 * breakpoint.h (software_breakpoint_inserted_here_p): Add
12920 prototype.
12921 * infrun.c (adjust_pc_after_break): New function.
12922 (handle_inferior_event): Call it, early. Remove later references
12923 to DECR_PC_AFTER_BREAK.
12924 (normal_stop): Add commentary.
12925
fad0733a
DJ
129262004-01-31 Daniel Jacobowitz <drow@mvista.com>
12927
12928 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
12929 2004-01-27 double-free fix.
12930
42cdca6c
MK
129312004-01-31 Mark Kettenis <kettenis@gnu.org>
12932
12933 * sparc-tdep.c (sparc_fetch_wcookie): New function.
12934 (sparc32_frame_prev_register): Handle StackGhost.
12935 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
12936
932d5416
RM
129372004-01-29 Roland McGrath <roland@redhat.com>
12938
12939 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
12940 * configure: Regenerated.
12941
12942 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
12943 * Makefile.in (procfs.o): Add dep.
12944
47d3492a
AC
129452004-01-28 Andrew Cagney <cagney@redhat.com>
12946
12947 * tui/tui-stack.h: Update copyright.
12948 (struct frame_info): Add opaque declaration.
12949 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
12950 (tui_show_locator_content): Rename tuiShowLocatorContent.
12951 (tui_show_frame_info): Rename tuiShowFrameInfo.
12952 * tui/tui-stack.c: Update copyright. Update references.
12953 * tui/tui-winsource.c: Update references.
12954 * tui/tui-win.c: Update references.
12955 * tui/tui-layout.c: Update references.
12956 * tui/tui-hooks.c: Update copyright, update references.
12957 * tui/tui.c: Update copyright, update references.
12958 * tui/tui-disasm.c: Update references.
12959
5d51ca54
DC
129602004-01-28 David Carlton <carlton@kealia.com>
12961
12962 * dwarf2read.c (add_partial_structure): Use demangled name if
12963 namespace equals "".
12964
086ed43d
JB
129652004-01-27 Jim Blandy <jimb@redhat.com>
12966
12967 Clean up misapplied patch:
12968 * dwarf2read.c (determine_prefix): Change one of the two forward
12969 declarations for 'determine_prefix_aux' to a declaration for this.
12970 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
12971 argument to 'die_specification'.
12972
2a35147e
JB
12973 * dwarf2read.c (read_func_scope): Re-indent comment.
12974
a355c7de 129752004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
932d5416 12976
a355c7de
AC
12977 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
12978 b->exp to NULL after freeing so that error during re-parsing or
12979 evaluation of expressions associated with breakpoint don't
12980 eventually lead to re-freeing of storage.
12981 Committed by Andrew Cagney.
12982
63ff5125
AC
129832004-01-27 Andrew Cagney <cagney@redhat.com>
12984
12985 * source.c (ambiguous_line_spec): Delete undefined declaration.
12986 * m32r-rom.c (m32r_set_board_address): Delete unused function.
12987 (m32r_set_server_address, m32r_set_download_path): Ditto.
12988 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
12989
e142c38c
DJ
129902004-01-27 Daniel Jacobowitz <drow@mvista.com>
12991
12992 * dwarf2read.c: Update calls to changed and renamed functions, and
12993 references to moved variables.
12994
12995 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
12996 language, language_defn, list_in_scope, and ftypes members.
12997 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
12998 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
12999 (baseaddr): Remove globals.
13000
13001 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
13002 (set_cu_language, die_is_declaration, die_specification)
13003 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
13004 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
13005 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
13006 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
13007
13008 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
13009 cu.list_in_scope. Don't initialize cu_header_offset.
13010 (add_partial_symbol): Add local baseaddr.
13011 (psymtab_to_symtab_1): Add local baseaddr. Use
13012 objfile->section_offsets for consistency. Don't initialize
13013 cu_header_offset; do initialize cu.header.offset and
13014 cu.list_in_scope.
13015 (read_file_scope, read_func_scope, read_lexical_block_scope)
13016 (dwarf_decode_lines, new_symbol): Add local baseaddr.
13017
c6e06ede
MC
130182004-01-27 Michael Chastain <mec.gnu@mindspring.com>
13019
fb328ecc 13020 * PROBLEMS: Add gdb/1516.
c6e06ede 13021
48184fd4
AC
130222003-12-29 Robert Millan <robertmh@gnu.org>
13023
13024 Patch committed by Andrw Cagney.
13025 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
13026 * configure.tgt: Match knetbsd*-gnu.
13027
c1321b30
AC
130282004-01-26 Andrew Cagney <cagney@redhat.com>
13029
f3699be3
AC
13030 * breakpoint.c (catch_command_1): Delete #ifdef code.
13031 (catch_fork_command_1): Delete #ifdef wrapper.
13032 (catch_exec_command_1): Ditto.
13033 (catch_load_command_1): Ditto.
13034 (catch_unload_command_1): Ditto.
13035
c1321b30
AC
13036 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
13037 (catch_breakpoint): Delete #if0ed function.
13038 (disable_catch_breakpoint): Ditto.
13039 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
13040 (disable_catch, enable_catch, delete_catch): Ditto.
13041
b4501125
AC
130422004-01-26 Andrew Cagney <cagney@redhat.com>
13043
13044 * remote.c (echo_check, quit_flag): Delete variables.
13045 (cisco_kernel_mode): Delete variable.
13046 (minitelnet_return, tty_input, escape_count): Delete variables.
13047 (remote_cisco_mode): Delete variable.
13048 (remote_cisco_open, remote_cisco_close): Delete function.
13049 (remote_cisco_mourn, remote_cisco_wait): Delete function.
13050 (init_remote_cisco_ops): Delete function.
13051 (_initialize_remote): Do not install "remote cisco" code.
13052 (read_frame): Delete cisco specific code.
13053 (remote_info_process): Delete function.
13054 (remote_wait): Delete cisco specific code.
13055 (remote_cisco_section_offsets): Delete function.
13056 (remote_cisco_objfile_relocate): Delete function.
13057 (remote_async_wait): Delete cisco specific code.
13058 (minitelnet, readtty, readsocket): Delete function.
13059
74055713
AC
130602004-01-26 Andrew Cagney <cagney@redhat.com>
13061
13062 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
13063 comments mentioning extract_returned_value_address.
13064 * infcmd.c (print_return_value): Update. Add comments on
13065 extract_returned_value_address.
13066 * stack.c (return_command): Add comments on
13067 extract_returned_value_address.
13068 * values.c: Update comment.
13069 * m32r-tdep.c: Update comment.
13070 * sparc-tdep.c: Update comment.
13071 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
13072 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
13073 * sh64-tdep.c (sh64_gdbarch_init): Update.
13074 * sh-tdep.c (sh_gdbarch_init): Update.
13075 * s390-tdep.c (s390_gdbarch_init): Update.
13076 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
13077 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
13078 * m68k-tdep.c (m68k_gdbarch_init): Update.
13079 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
13080 * m32r-tdep.c (m32r_gdbarch_init): Update.
13081 * ia64-tdep.c (ia64_gdbarch_init): Update.
13082 * h8300-tdep.c (h8300_gdbarch_init): Update.
13083 * frv-tdep.c (frv_gdbarch_init): Update.
13084 * arm-tdep.c (arm_gdbarch_init): Update.
13085 * alpha-tdep.c (alpha_gdbarch_init): Update.
13086
a67af2b9
AC
130872004-01-26 Andrew Cagney <cagney@redhat.com>
13088
13089 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
13090 SYMBOL_LOCATION_FUNCS
13091 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
13092 "struct symbol_ops".
13093 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
13094 type to "struct symbol_ops".
13095 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
13096 (struct symbol): Replace ".aux_value.loc.funcs" and
13097 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
13098 (SYMBOL_OBJFILE): Delete macro.
13099 (SYMBOL_LOCATION_FUNCS): Delete macro.
13100 (SYMBOL_LOCATION_BATON): Update.
13101 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
13102 intead of SYMBOL_LOCATION_FUNCS.
13103 * ax-gdb.c (gen_var_ref): Ditto.
13104 * printcmd.c (address_info): Ditto.
13105 * findvar.c (read_var_value): Ditto.
13106 (symbol_read_needs_frame): Ditto.
13107
c034e007
AC
131082004-01-26 Andrew Cagney <cagney@redhat.com>
13109
13110 * dwarf2read.c (read_func_scope): Document frame-base hack.
13111
bb472c1e
MK
131122004-01-25 Mark Kettenis <kettenis@gnu.org>
13113
13114 * infcmd.c (print_return_value): Plug memory leak; delete
13115 ui_stream object. Rename argument `structure_return' to
13116 `struct_return'.
13117
c8e737d5
MK
131182004-01-25 Mark Kettenis <kettenis@gnu.org>
13119
f941662f
MK
13120 * infcmd.c (print_return_value): Wrap long lines.
13121 (finish_command_continuation, finish_command): Remove unused
13122 variable `funcaddr'. Fix some coding-standards problems.
13123
c558d81a 13124 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
d8d65dd3 13125 SECT_SIZE is large enough, not whether it's exactly the right size.
c558d81a
MK
13126 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
13127 TDEP->fpregset to zero.
13128
bf1e5861 13129 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
c8e737d5
MK
13130 floating-point registers for traditional NetBSD core files.
13131 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
13132 TDEP->sizeof_fpregset here.
13133
4c72d57a
MK
131342004-01-25 Mark Kettenis <kettenis@gnu.org>
13135
566626fa
MK
13136 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
13137 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
13138 function with code split out from
13139 sparc32nbsd_sigcontext_frame_cache.
13140 (sparc32nbsd_sigcontext_frame_cache): Use
13141 sparc32nbsd_sigcontext_saved_regs.
13142 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
13143 OpenBSD.
13144 * sparcobsd-tdep.c: New file.
13145 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
13146 (sparcobsd-tdep.o): New dependency.
13147 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
13148 * config/sparc/obsd.mt: New file.
13149
4c72d57a
MK
13150 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
13151 TDEP->fpregset to be initialized to enable core file register
13152 sets.
13153
7e5e9f88
MK
131542004-01-24 Mark Kettenis <kettenis@gnu.org>
13155
f0f207fd 13156 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
1e067c66
MK
13157 Add opaque declarations.
13158 (sparc64nbsd_sigcontext_saved_regs): New prototype.
13159 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
13160 function with code split out from
13161 sparc64nbsd_sigcontext_frame_cache.
13162 (sparc64nbsd_sigcontext_frame_cache): Use
13163 sparc64nbsd_sigcontext_saved_regs.
13164 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
13165 OpenBSD.
13166 * sparc64obsd-tdep.c: New file.
13167 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
13168 (sparc64obsd-tdep.o): New dependency.
13169 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
13170 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
13171 * config/sparc/obsd64.mt: New file.
13172
690668cc
MK
13173 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
13174 read the instruction at PC.
13175
7e5e9f88
MK
13176 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
13177 value of GDB_OSABI_DEFAULT.
13178 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
13179 instead of GDB_OSABI_NETBSD_AOUT.
13180
68b6dce9
NR
131812004-01-24 Nick Roberts <nick@nick.uklinux.net>
13182
13183 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
13184 copyright.
13185
080ce8c0
AC
131862004-01-23 Andrew Cagney <cagney@redhat.com>
13187
13188 * printcmd.c (display_command): Replace tui_set_display call with
13189 tui_set_layout_for_display_command.
13190 * tui/tui.h (enum tui_win_type): Define.
13191 (tui_set_layout): Delete declaration.
13192 (tui_set_layout_for_display_command): Rename set_tui_layout.
13193 * tui/tui-data.h (enum tui_layout_type): Define.
13194 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
13195 "tui.h".
13196 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
13197 (tui_default_win_height): Rename tuiDefaultWinHeight.
13198 (tui_default_win_viewport_height): Rename
13199 tuiDefaultWinViewportHeight.
13200 (tui_set_layout): RenametuiSetLayout.
13201 * tui/tui-layout.c: Update references.
13202 * tui/tui.c: Update references.
13203 * tui/tui-disasm.c: Update references.
13204
b368761e
DC
132052004-01-23 David Carlton <carlton@kealia.com>
13206
13207 Partial workaround for PR c++/1511:
13208 * cp-namespace.c: Include frame.h.
13209 (cp_lookup_transparent_type): New
13210 (cp_lookup_transparent_type_loop): New.
13211 * cp-support.h: Declare cp_lookup_transparent_type.
13212 * symtab.c (basic_lookup_transparent_type): Renamed from
13213 lookup_transparent_type.
13214 (lookup_transparent_type): Replace old body by a call to
13215 current_language->la_lookup_transparent_type.
13216 * symtab.h: Update copyright. Declare
13217 basic_lookup_transparent_type.
13218 * language.h: Update copyright.
13219 (struct language_defn): Add la_lookup_transparent_type.
13220 * language.c: Update copyright.
13221 (unknown_language_defn): Add basic_lookup_transparent_type.
13222 (auto_language_defn): Add basic_lookup_transparent_type.
13223 (local_language_defn): Add basic_lookup_transparent_type.
13224 * ada-lang.c: Update copyright.
13225 (ada_language_defn): Add basic_lookup_transparent_type.
13226 * c-lang.c: Update copyright.
13227 (c_language_defn): Add basic_lookup_transparent_type.
13228 (cplus_language_defn): Add basic_lookup_transparent_type.
13229 (asm_language_defn): Add basic_lookup_transparent_type.
13230 (minimal_language_defn): Add basic_lookup_transparent_type.
13231 * f-lang.c: Update copyright.
13232 (f_language_defn): Add basic_lookup_transparent_type.
13233 * jv-lang.c: Update copyright.
13234 (java_language_defn): Add basic_lookup_transparent_type.
13235 * m2-lang.c: Update copyright.
13236 (m2_language_defn): Add basic_lookup_transparent_type.
13237 * objc-lang.c: Update copyright.
13238 (objc_language_defn): Add basic_lookup_transparent_type.
13239 * p-lang.c: Update copyright.
13240 (p_language_defn): Add basic_lookup_transparent_type.
13241 * scm-lang.c: Update copyright.
13242 (scm_language_defn): Add basic_lookup_transparent_type.
13243 * Makefile.in (cp-namespace.o): Depend on frame.h.
13244
fdde2d81
DC
132452004-01-23 David Carlton <carlton@kealia.com>
13246
13247 Patch for PR c++/1520:
13248 * dwarf2read.c (read_func_scope): Set processing_current_prefix
13249 properly if we have a specification die.
13250 (determine_prefix_aux): Rename from determine_prefix.
13251 (determine_prefix): Like the old determine_prefix, but never
13252 returns NULL.
13253
5b828b6b
TR
132542004-01-23 Theodore A. Roth <troth@openavr.org>
13255
13256 * avr-tdep.c: Update copyright.
13257 (avr_iaddr_p): Delete unused function.
13258 (avr_saddr_p): Delete unused function.
13259
a1b8c067
DC
132602004-01-23 David Carlton <carlton@kealia.com>
13261
13262 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
13263 Fix for PR symtab/1534.
13264
f2cab569
MK
132652004-01-23 Mark Kettenis <kettenis@gnu.org>
13266
13267 * NEWS (New native configurations): Mention OpenBSD/sparc and
13268 OpenBSD/sparc64.
13269 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
13270 * configure.host: Likewise.
13271 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
13272 handler for OpenBSD.
13273 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
13274
642d8300
MK
132752004-01-22 Mark Kettenis <kettenis@gnu.org>
13276
89aac506
MK
13277 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
13278 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
13279
36662fde
MK
13280 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
13281 * cli/cli-cmds.c (shell_escape): Likewise.
13282
642d8300
MK
13283 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
13284 OpenBSD .note.openbsd.ident sections.
13285
fae299cd
DC
132862004-01-22 David Carlton <carlton@kealia.com>
13287
13288 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
13289 get_scope_pc_bounds.
13290 (read_file_scope): Ditto.
13291 (get_scope_pc_bounds): New function, produced by extracting code
13292 from the above two functions, consolidating it, and adding support
13293 for DW_TAG_namespace.
13294
a49d618c
MK
132952004-01-22 Mark Kettenis <kettenis@gnu.org>
13296
13297 * osabi.c (MAX_NOTESZ): New define.
13298 (check_note): New function.
13299 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
13300 check_note.
13301
fe61caab
RM
133022004-01-21 Roland McGrath <roland@redhat.com>
13303
13304 * MAINTAINERS (write after approval): Add myself.
13305
ec145965
EZ
133062004-01-21 Eli Zaretskii <eliz@gnu.org>
13307
13308 * utils.c (init_page_info): Move declarations of `rows' and
13309 `cols' before the __GO32__-specific code. Move the closing brace
13310 outside the #ifdef __GO32__..#endif block.
13311 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
13312
877522db
PB
133132004-01-21 Paul Brook <paul@codesourcery.com>
13314
13315 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
13316 BPSTAT_WHAT_CHECK_SHLIBS.
13317
dbf5be1c
PB
133182004-01-21 Paul Brook <paul@codesourcery.com>
13319
13320 * MAINTAINERS: Add myself to write-after-approval.
13321
81f08b92
AC
133222004-01-20 Andrew Cagney <cagney@redhat.com>
13323
5a1efed7
AC
13324 * ax-gdb.c (print_axs_value): Delete unused function.
13325 * jv-lang.c (java_lookup_type): Delete unused function.
13326 * cli/cli-dump.c (dump_filetype): Delete unused function.
13327 * remote-mips.c (remote_mips_insert_hw_breakpoint)
13328 (remote_mips_remove_hw_breakpoint): Delete unused functions.
13329 (mips_getstring): Delete unused function.
13330 (pmon_insert_breakpoint): Delete #if0ed function.
13331 (PMON_MAX_BP): Delete #if0ed MACRO.
13332 (mips_pmon_bp_info): Delete #if0ed variable.
13333 (pmon_remove_breakpoint): Delete #if0ed function.
13334 * monitor.c (monitor_write_even_block): Delete unused function.
13335 (monitor_write_memory_block): Delete #if0ed code.
13336 * dink32-rom.c (dink32_load): Delete unused function.
13337 (_initialize_dink32_rom): Delete #if0ed code.
13338 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
13339
b0a30fce
AC
13340 * tui/tui-command.c: Update references.
13341 * tui/tui-io.c: Update references.
13342 * tui/tui-command.h: Update copyright.
13343 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
13344
81f08b92
AC
13345 * source.c (ambiguous_line_spec): Delete never-defined function.
13346 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
13347 * gdbtypes.c (add_name, add_mangled_type): Ditto.
13348 * cli/cli-cmds.c (validate_comname): Ditto.
13349
65f05602
AC
13350 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
13351 "tui-data.h".
13352 (tui_set_disassem_content): Rename tuiSetDisassemContent.
13353 (tui_show_disassem): Rename tuiShowDisassem.
13354 (tui_show_disassem_and_update_source): Rename
13355 tuiVerticalDisassemScroll.
13356 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
13357 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
13358 * tui/tui.h: Update copyright.
13359 (enum tui_status): Define.
13360 * tui/tui-data.h (enum tui_scroll_direction): Define.
13361 * tui/tui-disasm.c: Update copyright. Update references.
13362 * tui/tui-winsource.c: Update copyright. Update references.
13363 * tui/tui-win.c: Update references.
13364 * tui/tui-layout.c: Update references.
13365
6bb0384f
AC
133662004-01-20 Andrew Cagney <cagney@redhat.com>
13367
13368 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
13369 sym2 to start of block.
13370
9175c9a3
MC
133712004-01-19 Michael Chastain <mec.gnu@mindspring.com>
13372
13373 * MAINTAINERS: Delete mmalloc.
13374 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
13375 * NEWS: Mention removal of --with-malloc.
13376 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
13377 * config.in: Regenerate.
13378 * configure: Regenerate.
6bb0384f
AC
13379 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
13380 USE_MMALLOC, MMCHECK_FORCE.
9175c9a3
MC
13381 * gdbinit.in: Remove mmalloc.
13382 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
13383 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
13384 * config/i386/go32.mh: Likewise.
13385 * config/i386/interix.mh: Likewise.
13386 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
13387
4fcef00a
JJ
133882004-01-19 Jeff Johnston <jjohnstn@redhat.com>
13389
13390 * linespec.c (decode_variable, symtab_from_filename): Call
13391 error_silent with error message instead of throwing an exception
13392 directly.
13393 * defs.h (error_silent, error_output_message): Add prototypes.
13394 (catch_exceptions_with_msg): Ditto.
13395 * utils.c (error_silent, error_output_message): New functions.
13396 * top.c (catch_exceptions_with_msg): New function.
13397
8e94b928
NR
133982004-01-20 Nick Roberts <nick@nick.uklinux.net>
13399
13400 * mi/mi-cmds.h (enum print_values): Add definition.
13401
13402 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
13403 type and value for simple data types and just the name and type
13404 for complex ones, if required.
13405
13406 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
13407 children, if required.
13408
a02d6af8
KB
134092004-01-19 Kevin Buettner <kevinb@redhat.com>
13410
13411 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
13412 unused declarations.
13413
78a4a9b9
AC
134142004-01-19 Andrew Cagney <cagney@redhat.com>
13415
13416 * top.h (mapped_symbol_files): Delete declaration.
13417 * main.c (captured_main): Delete option "m" and "mapped".
13418 * objfiles.c (mapped_symbol_files): Delete variable.
13419 * symfile.c (symbol_file_command): Delete mmap code.
13420 (symbol_file_add_with_addrs_or_offsets): Ditto.
13421 (add_symbol_file_command, reread_separate_symbols): Ditto.
13422 * objfiles.h (OBJF_MAPPED): Delete.
13423 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
13424 (free_objfile) [USE_MMALLOC]: Ditto.
13425 (open_existing_mapped_file): Delete function.
13426 (open_mapped_file): Delete function.
13427 (map_to_file): Delete function.
13428
2dbd5e30
KB
134292004-01-19 Kevin Buettner <kevinb@redhat.com>
13430
13431 * infrun.c (step_into_function): Account for possible breakpoint
13432 adjustment when computing ``stop_func_start''.
13433
437b434f
KB
134342004-01-19 Kevin Buettner <kevinb@redhat.com>
13435
13436 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
13437 the region size against the size of a pointer, not the size of
13438 a register as given by DEPRECATED_REGISTER_SIZE.
13439
55fb0713
AC
134402004-01-19 Andrew Cagney <cagney@redhat.com>
13441
13442 * tui/tui-regs.h: Include "tui-data.h".
13443 (tuiFirstRegElementNoInLine): Delete declaration.
13444 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
13445 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
13446 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
13447 (tui_calculate_regs_column_count): Rename
13448 tuiCalculateRegsColumnCount.
13449 (tui_check_register_values): Rename tuiCheckRegisterValues.
13450 (tui_show_registers): Rename tuiShowRegisters.
13451 (tui_display_registers_from_line): Rename
13452 tuiDisplayRegistersFromLine.
13453 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
13454 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
13455 (tui_first_reg_element_no_inline): Rename
13456 tuiFirstRegElementNoInLine.
13457 * tui/tui-data.h: Update copyright.
13458 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
13459 * tui/tui-windata.c: Update copyright, update references.
13460 * tui/tui-regs.c: Update copyright, update references.
13461 * tui/tui-win.c: Update copyright, update references.
13462 * tui/tui-layout.c: Update copyright, update references.
fe61caab 13463
cebe9500
AC
134642004-01-18 Andrew Cagney <cagney@redhat.com>
13465
bcdf1568
AC
13466 * tui/tui-io.c: Update copyright.
13467 (key_is_end_sequence, key_is_backspace): New functions.
13468 (key_is_command_char, key_is_start_sequence): New function.
13469 (tui_getc): Update references.
13470 * tui/tui-io.h: Update copyright.
13471 (m_tuiStartNewLine): Delete macro.
13472 (m_isBackspace, m_isDeleteChar): Delete macros.
13473 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
13474 (m_isNextPage, m_isPrevPage): Delete macros.
13475 (m_isLeftArrow, m_isRightArrow): Delete macros.
13476 (m_isXdbStyleCommandChar): Delete macro.
13477 (key_is_start_sequence): Declare, replace m_isStartSequence.
13478 (key_is_end_sequence): Declare, replace m_isEndSequence.
13479 (key_is_backspace): Declare ,replace m_isBackspace.
13480 (key_is_command_char): Declare, replace m_isCommandChar.
13481 * tui/tui-command.c: Update copyright.
13482 (tuiDispatchCtrlChar): Update references.
13483
130d87e6
AC
13484 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
13485 tuiSourceWin.h.
13486
d7b2e967
AC
13487 * tui/tui-command.c: Rename tui/tuiCommand.c.
13488 * tui/tui-command.h: Rename tui/tuiCommand.h.
13489 * tui/tui-data.c: Rename tui/tuiData.c.
13490 * tui/tui-data.h: Rename tui/tuiData.h.
13491 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
13492 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
13493 * tui/tui-io.c: Rename tui/tuiIO.c.
13494 * tui/tui-io.h: Rename tui/tuiIO.h.
13495 * tui/tui-layout.c: Rename tui/tuiLayout.c.
13496 * tui/tui-layout.h: Rename tui/tuiLayout.h.
13497 * tui/tui-regs.c: Rename tui/tuiRegs.c.
13498 * tui/tui-regs.h: Rename tui/tuiRegs.h.
13499 * tui/tui-source.c: Rename tui/tuiSource.c.
13500 * tui/tui-source.h: Rename tui/tuiSource.h.
13501 * tui/tui-stack.c: Rename tui/tuiStack.c.
13502 * tui/tui-stack.h: Rename tui/tuiStack.h.
13503 * tui/tui-win.c: Rename tui/tuiWin.c.
13504 * tui/tui-win.h: Rename tui/tuiWin.h.
13505 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
13506 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
13507 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
13508 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
13509 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
13510 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
13511 * tui/tui-file.c: Update includes.
13512 * tui/tui-hooks.c: Update includes.
13513 * tui/tui-interp.c: Update includes.
13514 * tui/tui.c: Update includes.
13515 * Makefile.in: Update all tui/ dependencies.
13516 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
13517
b2100910
AC
13518 * Makefile.in: Update copyright. Update dependencies.
13519
cebe9500
AC
13520 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
13521 problem.
13522
c6f0559b
AC
135232004-01-18 Andrew Cagney <cagney@redhat.com>
13524
43e9390b
AC
13525 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
13526 instead of register_gdbarch_init.
13527
c6f0559b
AC
13528 * remote-sds.c (tohex): Delete unused function. Update copyright.
13529 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
13530 * v850-tdep.c (v850_register_virtual_size): Ditto.
13531 * target.c (normal_target_post_startup_inferior): Ditto.
13532 * source.c (ambiguous_line_spec): Ditto.
13533 * remote.c (adapt_remote_get_threadinfo): Ditto.
13534 * mi/mi-out.c (out_field_fmt): Ditto.
13535 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
13536 (output_control_change_notification): Ditto.
13537 * m68k-tdep.c (m68k_register_byte): Ditto.
13538 (m68k_remote_breakpoint_from_pc): Ditto.
13539 * ui-out.c (init_ui_out_state): Delete unused declaration.
13540 * stabsread.c (search_value): Ditto.
13541 * mi/mi-cmd-env.c (env_cli_command): Ditto.
13542 * maint.c (print_section_table): Ditto.
13543 * infrun.c (set_follow_fork_mode_command): Ditto.
13544
a8504492
MK
135452004-01-18 Mark Kettenis <kettenis@gnu.org>
13546
13547 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
13548 DW_CFA_def_cfa_exporession. Add support for
13549 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
13550 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
13551
0bd8997e
AC
135522004-01-18 Andrew Cagney <cagney@redhat.com>
13553
13554 * ocd.c: Update copyright.
13555 (bdm_read_register_command): Delete unused function.
13556 (_initialize_remote_ocd): Delete commented out reference.
13557 (get_quoted_char, reset_packet): Delete #if0ed function.
13558 (output_packet, put_quoted_char): Delete #if0ed function.
13559 (stu_put_packet, stu_get_packet): Delete #if0ed function.
13560 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
13561 (BDM_BREAKPOINT): Delete #if0ed macro.
13562 (remote_timeout): Delete #if0ed variable.
13563
31bb40e4
MK
135642004-01-18 Mark Kettenis <kettenis@gnu.org>
13565
13566 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
13567 (core-sol2.o): Remove dependency.
13568 * core-sol2.c: Remove file.
13569
887432a5
AC
135702004-01-17 Andrew Cagney <cagney@redhat.com>
13571
13572 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
13573 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
13574 enums.
13575
29182b13
DJ
135762004-01-17 Daniel Jacobowitz <drow@mvista.com>
13577
13578 * remote.c: Update copyright years.
13579
2963ee1d
DJ
135802004-01-17 Daniel Jacobowitz <drow@mvista.com>
13581
13582 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
13583
79d45cd4
AC
135842004-01-17 Andrew Cagney <cagney@redhat.com>
13585
ee300cd4
AC
13586 * mdebugread.c: Update copyright.
13587 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
13588 (parse_type, parse_procedure): Ditto.
13589 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
13590
fcacc9c2
AC
13591 * cris-tdep.c (cris_store_struct_return): Put back accidently
13592 deleted function.
13593
79d45cd4
AC
13594 * gdbarch.sh: Update copyright year.
13595 * gdbarch.h, gdbarch.c: Re-generate.
13596
b263358a
DJ
135972004-01-17 Daniel Jacobowitz <drow@mvista.com>
13598
13599 Suggested by George Anzinger.
13600 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
13601 correct stack offset. Include unknown opcode numbers in the error
13602 message.
13603
931aecf5
AC
136042004-01-17 Andrew Cagney <cagney@redhat.com>
13605
13606 * x86-64-tdep.c (x86_64_init_abi): No need to clear
13607 extract_struct_value_address, i386 does not set it.
13608 * sparc64-tdep.c (sparc64_init_abi): Do not set
13609 extract_struct_value_address, never called.
13610 (sparc64_extract_struct_value_address): Delete function.
13611 * m68hc11-tdep.c: Update copyright.
13612 (m68hc11_gdbarch_init): Delete redundant assignment of
13613 extract_struct_value_address.
13614 * i386-tdep.c: Update copyright.
13615 (i386_gdbarch_init): Do not set extract_struct_value_address,
13616 never called.
13617 (i386_extract_struct_value_address): Delete function.
13618 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
13619 extract_struct_value_address, never called.
13620 (sparc32_extract_struct_value_address): #if 0 function. Add
13621 comments explaining its future.
13622
756fe439
DJ
136232004-01-17 Daniel Jacobowitz <drow@mvista.com>
13624
13625 * arm-tdep.c (arm_write_pc): New function.
13626 (arm_gdbarch_init): Call set_gdbarch_write_pc.
13627
e74f0f02
DJ
136282004-01-17 Daniel Jacobowitz <drow@mvista.com>
13629
13630 * breakpoint.c (must_shift_inst_regs): Delete.
13631 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
13632 and SHIFT_INST_REGS.
13633 * infcmd.c (step_1, step_1_continuation): Delete references to
13634 SHIFT_INST_REGS.
13635 * infrun.c (keep_going): Likewise.
13636 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
13637 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
13638
b6cb9035
AC
136392004-01-17 Andrew Cagney <cagney@redhat.com>
13640
444a1e2e
AC
13641 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13642 * gdbarch.h, gdbarch.c: Re-generate.
13643 * infcmd.c (print_return_value): Delete reference to
13644 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
13645
def7e6ed
AC
13646 * cris-tdep.c (cris_gdbarch_init): Do not set
13647 deprecated_extract_struct_value_address.
13648
07be497a
AC
13649 * xstormy16-tdep.c: Update copyright.
13650 (xstormy16_extract_struct_value_address): Update to current
13651 extract struct value address interface.
13652 (xstormy16_gdbarch_init): Set extract_struct_value_address.
13653 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
13654 current extract struct value address interface.
13655 (sh64_gdbarch_init): Set extract_struct_value_address.
13656
6b4d5c91
AC
13657 * cris-tdep.c: Update copyright.
13658 (cris_extract_struct_value_address): Delete function.
13659 (struct_return_address): Delete variable.
13660 (cris_store_struct_return): Do not set struct_return_address.
13661
464e0365
AC
13662 * mcore-tdep.c: Update copyright.
13663 (mcore_extract_struct_value_address): Delete function. Update
13664 comments.
13665 (mcore_gdbarch_init): Update.
13666 * mn10300-tdep.c: Update copyright.
13667 (mn10300_extract_struct_value_address): Delete function.
13668 (mn10300_gdbarch_init): Update.
13669 * v850-tdep.c: Update copyright.
13670 (v850_extract_struct_value_address): Delete.
13671 (v850_gdbarch_init): Update.
13672 * ns32k-tdep.c: Update copyright.
13673 (ns32k_extract_struct_value_address): Delete.
13674 (ns32k_gdbarch_init): Update.
13675 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
13676 (hppa_gdbarch_init): Update.
13677 * vax-tdep.c: Update copyright.
13678 (vax_extract_struct_value_address): Delete.
13679 (vax_gdbarch_init): Update.
13680
afb18d0f
AC
13681 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
13682 * gdbarch.h, gdbarch.c: Re-generate.
13683 * procfs.c (procfs_fetch_registers): Delete reference to
13684 DEPRECATED_NPC_REGNUM.
13685 (procfs_store_registers): Ditto.
13686 * regcache.c (generic_target_write_pc): Simplify.
13687 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
13688
a698f53e
AC
13689 * core-sol2.c (fetch_core_registers): Replace
13690 DEPRECATED_NPC_REGNUM with equivalent tdep value.
13691
adc11376
AC
13692 * hppa-tdep.c: Update copyright year.
13693 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
13694 NPC_REGNUM.
13695 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
13696
b6cb9035
AC
13697 * mips-tdep.c (mips_write_pc): New function.
13698 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
13699 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
13700 (mips_find_saved_regs, mips_software_single_step: Ditto.
13701 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
13702 mips_init_extra_frame_info, mips_pop_frame): Ditto.
13703
6d82d43b
AC
137042004-01-17 Andrew Cagney <cagney@redhat.com>
13705
13706 * mips-tdep.c: Re-indent. Group functions by ABI.
13707
71bd6bd4
AC
137082004-01-17 Andrew Cagney <cagney@redhat.com>
13709
13710 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
13711 * gdbarch.c: Re-generate.
13712 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
13713 DECR_PC_AFTER_BREAK to zero.
13714 * vax-tdep.c (vax_gdbarch_init): Ditto.
13715 * v850-tdep.c (v850_gdbarch_init): Ditto.
13716 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
13717 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
13718 * sh-tdep.c (sh_gdbarch_init): Ditto.
13719 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
13720 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
13721 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
13722 * mips-tdep.c (mips_gdbarch_init): Ditto.
13723 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
13724 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13725 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
13726 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
13727 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
13728 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
13729 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
13730 * frv-tdep.c (frv_gdbarch_init): Ditto.
13731 * cris-tdep.c (cris_gdbarch_init): Ditto.
13732 * avr-tdep.c (avr_gdbarch_init): Ditto.
13733 * arm-tdep.c (arm_gdbarch_init): Ditto.
13734 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
13735
a02abb62
JB
137362004-01-17 J. Brobecker <brobecker@gnat.com>
13737
13738 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
13739 Delete, no longer used.
13740 (read_subrange_type): New function, mostly extracted from
13741 read_array_type().
13742 (read_array_type): Replace extracted code by call to
13743 read_subrange_type().
13744 (dwarf2_get_attr_constant_value): New function.
13745 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
13746 (add_partial_symbol): Likewise.
13747 (process_die): Likewise.
13748 (new_symbol): Likewise.
13749 (read_type_die): Likewise.
13750
cf5b2f1b
AC
137512004-01-16 Andrew Cagney <cagney@redhat.com>
13752
13753 * symfile.c: Update copyright year.
13754 (compare_symbols): Delete unused function.
13755 * stabsread.c: Update copyright year.
13756 (lrs_general_complaint): Delete unused function.
13757 (ref_search_value): Ditto.
13758 (get_substring): Delete declaration.
13759 * sh64-tdep.c: Update copyright year.
13760 (sh64_get_gdb_regnum): Delete unused function.
13761 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
13762 Delete unused function.
13763
d33b9831
MK
137642004-01-17 Mark Kettenis <kettenis@gnu.org>
13765
13766 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
13767 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
13768
7aea86e6
AC
137692004-01-16 Andrew Cagney <cagney@redhat.com>
13770
13771 Changes from Peter Schauer.
13772 * rs6000-tdep.c: Update copyright year.
13773 (rs6000_push_dummy_call): Update the stack pointer before
13774 accessing the corresponding stack region.
13775 * rs6000-nat.c: Update copyright year.
13776 (set_host_arch): Set "info.abfd" to "exec_bfd".
13777
26b0da32
MK
137782004-01-15 Mark Kettenis <kettenis@gnu.org>
13779
13780 * blockframe.c: Update copyright year.
13781 (inside_entry_func): Don't treat a zero PC specially.
13782
86fbe6cc
EZ
137832004-01-14 Elena Zannoni <ezannoni@redhat.com>
13784
13785 * gcore.c (gcore_copy_callback): Use paddr_d to print size
13786 variable.
13787 (gcore_create_callback): Ditto. Skip any memory segment that has
13788 no permissions set.
13789
63d06c5c
DC
137902004-01-14 David Carlton <carlton@kealia.com>
13791
13792 Change symbols for C++ nested types to contain the fully qualified
13793 name, if possible. (At least in the DWARF-2 case.) Partial fix
13794 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
13795 c++/895.
13796 * c-exp.y (qualified_type): Handle types nested within classes.
13797 * cp-namespace.c: Update comments.
13798 (cp_set_block_scope): Delete #if 0.
13799 (cp_lookup_nested_type): Handle types nested within classes.
13800 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
13801 when appropriate.
13802 (add_partial_symbol): Add the name of the enclosing namespace to
13803 types.
13804 (pdi_needs_namespace): New.
13805 (add_partial_namespace): Tweak comment.
13806 (add_partial_structure): New.
13807 (psymtab_to_symtab_1): Initialize processing_current_prefix
13808 here...
13809 (process_die): instead of here.
13810 (read_structure_scope): Try to figure out the name of the class or
13811 namespace that the structure might be defined within.
13812 (read_enumeration): Generate fully-qualified names, if possible.
13813 (read_namespace): Don't set name to NULL.
13814 (die_specification): New.
13815 (new_symbol): Generate fully-qualified names for types.
13816 (read_type_die): Determine appropriate prefix.
13817 (determine_prefix): New.
13818 (typename_concat): New.
13819 (class_name): New.
13820 * valops.c (value_aggregate_elt): Pass NOSIDE to
13821 value_struct_elt_for_reference.
13822 (value_struct_elt_for_reference): Make static, add NOSIDE
13823 parameter, call value_maybe_namespace_elt as a last resort.
13824 (value_namespace_elt): Break out code into
13825 value_maybe_namespace_elt.
13826 (value_maybe_namespace_elt): New.
13827
87783b8b
AC
138282004-01-12 Andrew Cagney <cagney@redhat.com>
13829
13830 * mips-tdep.c (mips_convert_register_p): Handle both raw and
13831 cooked floating-point registers.
13832 (mips_gdbarch_init): Set convert_register_p, register_to_value,
13833 and value_to_register.
13834
6503b91e
AC
138352004-01-13 Andrew Cagney <cagney@redhat.com>
13836
13837 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
13838 * gdbarch.c: Re-generate.
13839 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
13840 FUNCTION_START_OFFSET.
13841 * v850-tdep.c (v850_gdbarch_init): Ditto.
13842 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
13843 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
13844 * sh-tdep.c (sh_gdbarch_init): Ditto.
13845 * s390-tdep.c (s390_gdbarch_init): Ditto.
13846 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
13847 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
13848 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
13849 * mips-tdep.c (mips_gdbarch_init): Ditto.
13850 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
13851 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
13852 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13853 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
13854 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
13855 * i386-tdep.c (i386_gdbarch_init): Ditto.
13856 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
13857 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
13858 * frv-tdep.c (frv_gdbarch_init): Ditto.
13859 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
13860 * cris-tdep.c (cris_gdbarch_init): Ditto.
13861 * avr-tdep.c (avr_gdbarch_init): Ditto.
13862 * arm-tdep.c (arm_gdbarch_init): Ditto.
13863 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
13864
ea1dd7bc
DJ
138652004-01-13 Daniel Jacobowitz <drow@mvista.com>
13866
13867 * infrun.c (follow_fork_mode_ask): Remove.
13868 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
13869 (follow_fork): Simplify and remove internal error for
13870 follow_fork_mode_ask.
13871 (_initialize_infrun): Update "set follow-fork-mode" help text.
13872
0f0cffd2
AC
138732004-01-13 Andrew Cagney <cagney@redhat.com>
13874
13875 * configure.in: Update copyright year.
13876 (build_warnings): Add -Wunused-label.
13877 * configure: Re-generate.
13878
de38af99
AC
138792004-01-12 Andrew Cagney <cagney@redhat.com>
13880
954a7fba
AC
13881 * exec.h (exec_ops): Make "extern".
13882
de38af99
AC
13883 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
13884 the function is void.
13885 (mips_pseudo_register_write): Ditto.
13886
1a111ce3
AC
138872004-01-12 Andrew Cagney <cagney@redhat.com>
13888
13889 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
13890 call. Never defined.
13891 * sparc-tdep.h (struct frame_info): Add opaque declaration.
13892 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
13893 (struct sparc_gregset, struct regcache): Ditto.
13894 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
13895
48efe704
AC
138962004-01-12 Andrew Cagney <cagney@redhat.com>
13897
13898 * mi/ChangeLog: Delete file. Renamed to ...
13899 * mi/ChangeLog-1999-2003: New file.
13900 * tui/ChangeLog: Delete file. Renamed to ...
13901 * tui/ChangeLog-1998-2003: New file.
fe61caab 13902
a54124c5
MK
139032004-01-11 Mark Kettenis <kettenis@gnu.org>
13904
2ca62865
MK
13905 * sparc64nbsd-tdep.c: Include "regset.h".
13906 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
13907 Remove variables.
13908 (fetch_core_registers): Remove function.
13909 (sparc64nbsd_core_fns): Remove variable.
13910 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
13911 functions.
13912 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
13913 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
13914 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
13915
ca9d58e9
MK
13916 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
13917 sparc_extract_struct_value_address.
13918 (sparc32_gdbarch_init): Set extract_struct_value_address.
13919 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
13920 function.
13921 (sparc64_init_abi): Set extract_struct_value_address. Don't set
13922 return_value_on_stack.
13923
3cc87ec0
MK
13924 * NEWS: Mention that %cs and %ss have been added to the AMD64
13925 configurations
13926
5bf00f29
MK
13927 * frame.c: Update copyright year.
13928 (get_prev_frame): Improve comment.
13929
4f7ec84e
MK
13930 * sparc64fbsd-tdep.c: Include "regset.h".
13931 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
13932 Remove variables.
13933 (fetch_core_registers): Remove function.
13934 (sparc64fbsd_core_fns): Remove variable.
13935 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
13936 functions.
13937 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
13938 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
46b58ce9 13939 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
4f7ec84e 13940
4e7b0cd3
MK
13941 * sparcnbsd-tdep.c: Include "regset.h".
13942 (fetch_core_registers): Remove function.
13943 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
13944 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
13945 functions.
13946 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
13947 TDEP->fpregset.
46b58ce9 13948 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
4e7b0cd3 13949
a54124c5
MK
13950 * sparc-tdep.h (struct regset): Provide opaque declaration.
13951 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
13952 fpregset and sizeof_fpregset members.
13953 * sparc-tdep.c (struct regset): Provide opaque declaration.
13954 (sparc_regset_from_core_section): New function.
13955 (sparc32_gdbarch_init): Initialize TDEP->gregset,
13956 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
13957 Set regset_from_core_section when appropriate.
13958
29ff87c5
MK
139592004-01-10 Mark Kettenis <kettenis@gnu.org>
13960
79b1ab3d
MK
13961 * x86-64-tdep.c (amd64_non_pod_p): New function.
13962 (amd64_classify_aggregate): Return class memory for non-POD
13963 C++ structure types.
13964
6470d250
MK
13965 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
13966 argument. Use it to reserve a register if necessary.
13967 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
13968 amd64_push_arguments.
13969
562c50c2
MK
13970 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
13971
af233647
MK
13972 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
13973 register numbers in comments.
13974 * x86-64-tdep.h: Update copyright year.
13975 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
13976 Adjust for addition of %cs and %ss.
13977 * amd64fbsd-nat.c: Update copyright year.
13978 (reg_offset): Add register offsets for %cs and %ss.
13979 * amd64fbsd-tdep.c: Update copyright year.
13980 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
13981 (amd64fbsd_sc_reg_offset): Likewise.
13982 * x86-64-linux-nat.c: Update copyright year.
13983 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
13984 and %ss.
13985 * amd64nbsd-nat.c: Update copyright year.
13986 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
13987 * amd64nbsd-tdep.c: Update copyright year.
13988 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
13989 * x86-64-linux-tdep.c: Update copyright year.
13990 (user_to_gdb_regmap): Add mapping for %cs and %ss.
13991 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
13992 * regformats/reg-x86-64.dat: Add %cs and %ss.
13993
29ff87c5
MK
13994 * blockframe.c (inside_entry_func): Reformat. Introduce new local
13995 variables to prevent long lines. Update comments to reflect
13996 reality.
13997
38d518c9
EZ
139982004-01-09 David Carlton <carlton@kealia.com>
13999
14000 Checked in by Elena Zannoni <ezannoni@redhat.com>.
14001 * dwarf2read.c (read_namespace): Pull out name-generating code
14002 into namespace_name. Rename previous_namespace to previous_prefix
14003 and processing_current_namespace to processing_current_prefix..
14004 (namespace_name): New function.
14005 (add_partial_symbol): Substitute uses of pdi->name with
14006 actual_name.
14007 * cp-support.h: Rename processing_current_namespace to
14008 processing_current_prefix.
14009 Update copyright year.
14010 * cp-namespace.c: Rename processing_current_namespace to
14011 processing_current_prefix.
14012 Update copyright year.
fe61caab 14013
1e4728e7
AC
140142004-01-09 Andrew Cagney <cagney@redhat.com>
14015
14016 * jv-valprint.c, ser-unix.c: Add missing copyright years.
14017
c77c642a
MK
140182004-01-09 Mark Kettenis <kettenis@gnu.org>
14019
14020 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
14021 complaining.
14022 (process_one_symbol): Deal with N_PATCH stabs.
14023
b44e9041
EZ
140242004-01-09 Elena Zannoni <ezannoni@redhat.com>
14025
14026 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
14027 ifdeffed code.
14028 Update copyright year.
38d518c9 14029
eccfb640
MC
140302004-01-08 Michael Chastain <mec.gnu@mindspring.com>
14031
14032 * config/pa/tm-hppa.h: Update extern declarations for
14033 hppa32_hpux_frame_saved_pc_in_sigtramp,
14034 hppa32_hpux_frame_base_before_sigtramp, and
14035 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
14036
848c5feb
MC
140372004-01-08 Michael Chastain <mec.gnu@mindspring.com>
14038
14039 * config/pa/tm-hppah.h: Update copyright years.
14040
3cc5d663
AC
140412004-01-08 Andrew Cagney <cagney@redhat.com>
14042
14043 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
14044 (mips_o32_reg_struct_has_addr): Delete function.
14045 (mips_gdbarch_init): Update.
14046 (mips_extract_struct_value_address): Delete function.
14047
bfec0b41
JJ
140482004-01-08 David Mosberger <davidm@hpl.hp.com>
14049
14050 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
14051 reality.
14052
16e109ca
AC
140532004-01-07 Andrew Cagney <cagney@redhat.com>
14054
6214a8a1
AC
14055 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
14056 architecture's elf flags (when available).
14057
8d5838b5
AC
14058 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
14059 FPU to the start, check the MIPS FPU when looking for an old
14060 architecture.
14061 (set_mipsfpu_single_command): Update the architecture.
14062 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
14063
480d3dd2
AC
14064 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
14065 (mips_mask_address_p): Add "tdep" parameter.
14066 (show_mask_address, mips_addr_bits_remove): Update.
14067 (mips_dump_tdep): Update.
14068 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
14069 (MIPS_STACK_ARGSIZE): Delete macro.
14070 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
14071 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
14072 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
14073 (mips_dump_tdep): Update.
14074 (MIPS_SAVED_REGSIZE): Delete macro.
14075 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
14076 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
14077 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
14078 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
14079 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
14080 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
14081 (mips_pop_frame, return_value_location): Update.
14082 (mips_n32n64_return_value, mips_dump_tdep): Update.
14083
ec03c1ac
AC
14084 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
14085 MIPS ABI.
14086
16e109ca
AC
14087 * mips-tdep.c: Update copyright.
14088 (mips_gdbarch_init): Merge two code blocks handling the register
14089 name and number layout.
14090
15255275
MS
140912004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
14092
14093 * tracepoint.c (validate_actionline): Fix segv at EOF
14094
9f9057da
MC
140952004-01-07 Michael Chastain <mec.gnu@mindspring.com>
14096
14097 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
14098 properly for static fields.
14099
0127c0d3 141002004-01-06 Jeff Johnston <jjohnstn@redhat.com>
91562f53 14101 Jason Molenda <jmolenda@apple.com>
0127c0d3
JJ
14102
14103 * disasm.c: Update copyright to include 2004.
14104 (do_mixed_source_and_assembly): For uiout asm list
14105 and tuple cleanups, initialize to null_cleanup instead of
fe61caab 14106 NULL and do so prior to loop. Only reset when we close off
0127c0d3 14107 the tuple/list. Move check for whether to close off the
fe61caab 14108 asm tuple/list to after dump_insns call where it will be run
0127c0d3
JJ
14109 on each loop iteration.
14110
5269965e
AC
141112004-01-05 Andrew Cagney <cagney@redhat.com>
14112
54f1137d
AC
14113 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
14114 should be a switch case and not a label.
14115 * mips-tdep.c (mips32_next_pc): Delete unused labels
14116 "greater_equal_branch" and "less_zero_branch".
14117 * jv-valprint.c (java_print_value_fields): Delete unused label
14118 "flush_it".
14119
5269965e
AC
14120 * target.c (unpush_target): Only close a target that is in the
14121 target stack.
14122
dbc22fa1
MK
141232004-01-05 Mark Kettenis <kettenis@gnu.org>
14124
9515395e
MK
14125 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
14126 address from [sp + 64] instead of %o2.
14127
dbc22fa1
MK
14128 * frame.c (get_prev_frame): Don't try to unwind the PC. This
14129 fixes PR backtrace/1476.
14130
5439edaa
AC
141312004-01-05 Andrew Cagney <cagney@redhat.com>
14132
14133 * libunwind-frame.h (struct frame_id): Add opaque declaration,
14134 move to start of file.
14135 * i386-tdep.h (struct regcache): Add opaque declaration.
14136 * config/ia64/nm-linux.h (struct target_ops): Add opaque
14137 declaration.
14138 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
14139 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
14140 * win32-nat.c (fake_create_process): Use ISO C style definition.
14141 * stabsread.c (define_symbol): Delete #ifndef
14142 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
14143 stabs_argument_has_addr call, macro never defined.
14144
19061abe
MC
141452004-01-04 Michael Chastain <mec.gnu@mindspring.com>
14146
14147 * op50-rom.c: Delete.
14148 * w89k-rom.c: Delete.
14149 * Makefile.in: Remove references.
14150
e53bef9f
MK
141512004-01-04 Mark Kettenis <kettenis@gnu.org>
14152
14153 * x86-64-tdep.c: Update copyright year.
14154 (struct amd64_register_info): Rename from x86_64_register_info.
14155 (amd64_register_info): Rename from x86_64_register_info.
14156 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
14157 (amd64_register_name): Rename from x86_64_register_name.
14158 (amd64_register_type): Rename from x86_64_register_type.
14159 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
14160 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
14161 (amd64_dwarf_reg_to_regnum): Rename from
14162 x86_64_dwarf_reg_to_regnum.
14163 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
14164 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
14165 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
14166 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
14167 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
14168 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
14169 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
14170 (amd64_frame_cache): Rename from x86_64_frame_cache.
14171 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
14172 (amd64_frame_prev_register): Rename from
14173 x86_64_frame_prev_register.
14174 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
14175 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
14176 (amd64_sigtramp_frame_cache): Rename from
14177 x86_64_sigtramp_frame_cache.
14178 (amd64_sigtramp_frame_prev_register): Rename from
14179 x86_64_sigtramp_frame_prev_register.
14180 (amd64_sigtramp_frame_unwind): Rename from
14181 x86_64_sigtramp_frame_unwind.
14182 (amd64_sigtramp_frame_sniffer): Rename from
14183 x86_64_sigtramp_frame_sniffer.
14184 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
14185 (amd64_frame_base): Rename from x86_64_frame_base.
14186 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
14187 (amd64_frame_align): Rename from x86_64_frame_align.
14188 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
14189 (amd64_regset_from_core_section): Rename from
14190 x86_64_regset_from_core_section.
14191 (x86_64_init_abi): Update comments.
14192
fca6aa58
NR
141932004-01-04 Nick Roberts <nick@nick.uklinux.net>
14194
14195 * MAINTAINERS (write after approval): Add myself.
14196
8ada74e3
MK
141972004-01-04 Mark Kettenis <kettenis@gnu.org>
14198
14199 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
14200 `float' arguments.
14201
5154b0cd
MK
142022004-01-04 Mark Kettenis <kettenis@gnu.org>
14203
14204 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
14205 such that it mentions a specific version of GCC that exhibits this
14206 bug.
14207
fb316966
MK
142082004-01-03 Mark Kettenis <kettenis@gnu.org>
14209
200cc553
MK
14210 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
14211 structure that has a single `float' member, store it in %f1 in
14212 addition to %f0.
14213
e226a4a0
MK
14214 * sparc-sol2-nat.c: Add missing '\'.
14215
b9d4c5ed
MK
14216 * sparc-tdep.c (sparc32_return_value): New function.
14217 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
14218 Remove functions.
14219 (sparc32_gdbarch_init): Set return_value, don't set
14220 extract_return_value, store_return_value, use_struct_convention
14221 and return_value_on_stack.
14222
fb316966
MK
14223 * sparc-sol2-nat.c: Add missing ')'.
14224
1af510a8
JB
142252004-01-03 J. Brobecker <brobecker@gnat.com>
14226
14227 * infrun.c (handle_step_into_function): New function.
14228 (handle_inferior_event): Extract out some code into the new
14229 function above.
14230
5cf4d23a
JB
142312004-01-03 J. Brobecker <brobecker@gnat.com>
14232
14233 * infrun.c (handle_inferior_event): Move the declaration of
14234 real_stop_pc inside the if blocks where it is used.
14235
60af1db2
MK
142362004-01-03 Mark Kettenis <kettenis@gnu.org>
14237
14238 * sparc64-tdep.c (sparc64_16_byte_align_p)
14239 (sparc64_store_floating_fields, sparc64_store_floating_fields):
14240 Use check_typedef to get subtypes of structures and unions.
14241 (sparc64_store_return_value): Fix calculation of the appropriate
14242 offset into VALBUF when storing a structure or union.
14243 (sparc64_return_value): New function.
14244 (sparc64_use_struct_convention): Remove function.
14245 (sparc64_init_abi): Set return_value, don't set
14246 extract_return_value, store_return_value and
14247 use_struct_convention.
14248
1a901d3f
EZ
142492004-01-03 Eli Zaretskii <eliz@elta.co.il>
14250
14251 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
14252 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
14253 gdb/config/alpha/xm-alphaosf.h,
14254 gdb/config/powerpc/tm-ppcle-eabi.h,
14255 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
14256 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
14257 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
14258 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
14259 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
14260 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
14261 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
14262 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
14263 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
14264 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
14265 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
14266 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
14267 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
14268 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
14269 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
14270 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
14271 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
14272 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
14273 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
14274 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
14275 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
14276 Remove lines for .cvsignore files.
14277
ef52e463
JB
142782004-01-03 J. Brobecker <brobecker@gnat.com>
14279
14280 * infrun.c: Back out the previous change.
14281
cb1bf9dc
MK
142822004-01-03 Mark Kettenis <kettenis@gnu.org>
14283
f0424ef6
MK
14284 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
14285 sparc-*-sunos4* to the list of REMOVED configurations.
14286
cb1bf9dc
MK
14287 * configure.tgt: Add back sparc-*-vxworks*.
14288 * remote-vxsparc.c: Remove all includes except for "defs.h",
14289 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
14290 Include "sparc-tdep.h".
14291 (SPARC_R_G1): New define.
14292 (vxsparc_gregset): New variable.
14293 (ext_format_sparc): Remove extern declaration.
14294 (vx_read_register): Rewrite to use sparc32_supply_gregset and
14295 sparc32_supply_fpregset.
14296 (vx_write_register): Rewrite to use sparc32_collect_gregset,
14297 sparc_collect_rwindow and sparc32_collect_fpregset.
14298 * config/sparc/tm-vxworks.h: New file, based on recently removed
14299 tm-vxsparc.h.
14300 * config/sparc/vxworks.mt: New file, based on recently removed
14301 vxworks.mt.
fe61caab 14302
5e938f9f
JB
143032004-01-03 J. Brobecker <brobecker@gnat.com>
14304
14305 * infrun.c (handle_step_into_function): New function.
14306 (handle_inferior_event): Extract out some code into the new
14307 function above.
14308
386c036b
MK
143092004-01-02 Mark Kettenis <kettenis@gnu.org>
14310
14311 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
14312 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
14313 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
14314 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
14315 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
14316 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
14317 (sparc_nat_h): New variable.
14318 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
14319 (tm-sun4os4.h): Remove dependency.
14320 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
14321 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
14322 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
14323 sparc-tdep.o): Update dependencies.
14324 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
14325 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
14326 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
14327 dependencies.
14328 * configure.host: Remove existing sparc-*-lynxos*,
14329 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
14330 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
14331 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
14332 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
14333 triplets.
14334 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
14335 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
14336 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
14337 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
14338 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
14339 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
14340 sparc64-*-solaris2* and sparc64-*-* triplets.
14341 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
14342 "symtab.h" and "objfiles.h".
14343 (BIAS): Remove define.
14344 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
14345 (X_DISP19): Remove macros.
14346 (sparc_fetch_instruction): Remove function.
14347 (struct gdbarch_tdep): Remove definition.
14348 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
14349 (sparc_breakpoint_from_pc): Remove function.
14350 (struct sparc64_frame_cache): Remove definition.
14351 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
14352 sparc64_unwind_pc): Remove functions.
14353 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
14354 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
14355 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
14356 (sparc64_frame_cache): Change return type to `struct
14357 sparc_frame_cache *'. Simply call sparc_frame_cache.
14358 (sparc64_frame_this_id, sparc64_frame_prev_register,
14359 sparc64_frame_base_address): Use `struct sparc_frame_cache'
14360 instead of `struct sparc64_frame_cache.
14361 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
14362 sparc_analyze_control_transfer, sparc_software_single_step,
14363 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
14364 _initialize_sparc64_tdep): Remove functions.
14365 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
14366 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
14367 macros.
14368 (sparc64_supply_gregset, sparc64_collect_gregset,
14369 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
14370 (sparc64_init_abi): New function.
14371 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
14372 inclusion guard. Include "sparc-tdep.h".
14373 (BIAS): Define.
14374 (r_tstate_offset, r_fprs_offset): New defines.
14375 (enum sparc_regnum): Remove defenition.
14376 (enum sparc64_regnum): Reformat.
14377 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
14378 (sparc64_init_abi, sparc64_supply_gregset,
14379 sparc64_collect_gregset, sparc64_supply_fpregset,
14380 sparc64_collect_fpregset): New prototypes.
14381 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
14382 Add extern declarations.
14383 (sparc64_sol2_init_abi): New prototype.
14384 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
14385 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
14386 prototypes.
14387 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
14388 "sparnbsd-nat.h".
14389 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
14390 functions.
14391 (_initialize_sparc64fbsd_nat): Remove initialization of
14392 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
14393 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
fe61caab 14394 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
386c036b
MK
14395 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
14396 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
14397 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
14398 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
14399 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
14400 (sparc64fbsd_r_y_offset): Remove variables.
14401 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
14402 Make static and const.
14403 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
14404 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
14405 functions.
14406 (sparc64fbsd_gregset): New variable.
14407 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
14408 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
14409 and sparc64_supply_fpregset.
14410 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
14411 (sparc64fbsd_sigtramp_frame_this_id)
14412 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
14413 (sparc64fbsd_sigtramp_frame_unwind): New variable.
14414 (sparc64fbsd_sigtramp_frame_sniffer): New function.
14415 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
14416 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
14417 * sparcnbsd-tdep.c: Update copyright year. Include
14418 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
14419 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
14420 "value.h" and "sparcnbsd-tdep.h".
14421 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
14422 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
14423 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
14424 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
14425 defines.
14426 (sparcnbsd_gregset): New variable.
14427 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
14428 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
14429 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
14430 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
14431 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
14432 variables.
14433 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
14434 (sparc32nbsd_sigcontext_frame_this_id)
14435 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
14436 (sparc32nbsd_sigcontext_frame_unwind): New variable.
14437 (sparc32nbsd_sigtramp_frame_sniffer): New function.
14438 (sparcnbsd_get_longjmp_target_32,
14439 sparcnbsd_get_longjmp_target_64): Remove functions.
14440 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
14441 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
14442 sparcnbsd_init_elf): Remove.
14443 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
14444 (sparcnbsd_elf_init_abi): New functions.
14445 (_initialize_sparcnbsd_tdep): New prototype.
14446 (_initialize_sparnbsd_tdep): Update.
14447 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
14448 corelow.o. Add sparc64-nat.o and sparc-nat.o.
14449 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
14450 * config/sparc/linux.mh: Update comment.
14451 (XM_FILE, HOST_IPC): Remove variables.
14452 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
14453 sparc-linux-nat.o.
14454 * config/sparc/linux.mt: Update comment.
14455 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
14456 * config/sparc/nbsd.mt: Reformat.
14457 * config/sparc/nbsd64.mh: Update comment.
14458 (NATDEPFILES): Add sparc-nat.o.
14459 * config/sparc/nbsd64.mt: Update comment.
14460 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
14461 (TM_FILE): Set to tm-nbsd.h.
14462 * config/sparc/nbsdelf.mh: Update comment.
14463 (NATDEPFILES): Add sparc-nat.o.
14464 (XM_FILE): Delete.
14465 * config/sparc/nbsdaout.mh: Update comment.
14466 (NATDEPFILES): Add sparc-nat.o
14467 (XM_FILE): Delete.
14468 * config/sparc/nm-linux.h: Update copyright year. Don't include
14469 "config/nm-svr4.h" and "solib.h". Add protection against multiple
14470 inclusion.
14471 (KERNEL_U_SIZE): Remove define.
14472 (kernel_u_size): Remove prototype.
14473 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
14474 * config/sparc/nm-nbsd.h: Update copyright. Don't include
14475 "regcache.h".
14476 (CHILD_PREPARE_TO_STORE): Remove define.
14477 * config/sparc/nm-nbsdaout.h: Tweak some comments.
14478 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
14479 sparcnbsd-nat.c: Rewrite files.
14480 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
14481 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
14482 sparcnbsd-tdep.h: Remove files.
14483 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
14484 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
14485 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
14486 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
14487 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
14488 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
14489 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
14490 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
14491 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
14492 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
14493 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
14494 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
14495 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
14496 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
14497 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
14498 * config/sparc/linux64.mh, config/sparc/linux64.mt,
14499 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
14500 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
14501 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
14502
ee84457a
AC
145032004-01-02 Andrew Cagney <cagney@redhat.com>
14504
14505 From 2003-12-18 Kazuhiro Inaoka:
14506 * configure.host: Add m32r-linux target.
14507
0bc2134e
MC
145082004-01-02 Michael Chastain <mec.gnu@mindspring.com>
14509
14510 * top.c (print_gdb_version): Update year to 2004.
14511
89a72f9c
MM
145122004-01-02 Mark Mitchell <mark@codesourcery.com>
14513
14514 * MAINTAINERS: Add myself to the write-after-approval category.
14515
86b013ed
DJ
145162004-01-02 Daniel Jacobowitz <drow@mvista.com>
14517
14518 From Bernardo Innocenti <bernie@develer.com>:
14519 * configure.tgt: Add uClinux target.
14520
e42c9534
AC
145212004-01-02 Andrew Cagney <cagney@redhat.com>
14522
14523 * utils.c (do_my_cleanups): Make static, add forward declaration.
14524 * defs.h (do_my_cleanups): Delete declaration.
14525
162467d3
EZ
145262004-01-02 Eli Zaretskii <eliz@elta.co.il>
14527
14528 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
14529 bfd/ChangeLog-0203.
14530
78434e59
MK
145312004-01-02 Mark Kettenis <kettenis@gnu.org>
14532
14533 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
14534 in <machine/reg.h>.
14535 * configure, config.in: Regenerate.
14536
48efe704
AC
14537For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
14538tui/ChangeLog-1998-2003.
c906108c
SS
14539\f
14540Local Variables:
14541mode: change-log
14542left-margin: 8
14543fill-column: 74
14544version-control: never
14545End:
This page took 1.257769 seconds and 4 git commands to generate.