* linux-nat.c (my_waitpid): New function.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
b957e937
DJ
12004-11-21 Daniel Jacobowitz <dan@debian.org>
2
3 * linux-nat.c (my_waitpid): New function.
4 (linux_test_for_tracefork): Make more robust and verbose. Take
5 an ORIGINAL_PID argument and test for PTRACE_SETOPTIONS first.
6 (linux_supports_tracefork, linux_supports_tracevforkdone): Take a PID
7 argument. Update calls to linux_test_for_tracefork.
8 (linux_enable_event_reporting, child_follow_fork)
9 (child_insert_fork_catchpoint, child_insert_vfork_catchpoint)
10 (child_insert_exec_catchpoint): Update calls to
11 linux_supports_tracefork and linux_supports_tracevforkdone.
12
65d3800a
DJ
132004-11-21 Daniel Jacobowitz <dan@debian.org>
14
15 * valarith.c (value_subscript): Copy VALUE_FRAME_ID.
16 (value_subscripted_rvalue): Likewise.
17 * valops.c (search_struct_field, value_slice): Likewise.
18
2c4a536d
MK
192004-11-21 Mark Kettenis <kettenis@gnu.org>
20
21 * inf-ptrace.c: Don't include "regcache.h" and "gdbcmd.h".
22 Reorder includes a bit. Fix comment.
23 * Makefile.in (inf-ptrace.o): Update dependencies.
24
fefa1888
AS
252004-11-21 Andreas Schwab <schwab@suse.de>
26
27 * m68klinux-tdep.c: Include "glibc-tdep.h" and "solib-svr4.h".
28 (m68k_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
29 svr4_ilp32_fetch_link_map_offsets and gdbarch_skip_solib_resolver
30 to glibc_skip_solib_resolver.
31 * config/m68k/linux.mt (TDEPFILES): Add glibc-tdep.o. Remove
32 solib-legacy.o.
33 * Makefile.in (m68klinux-tdep.o): Update dependencies.
34
d564a7d4
DA
352004-11-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
36
37 * infttrace.h (ttrace_write_reg_64): Add prototype.
38 * hppah-nat.c (store_inferior_registers): Fix warning from ambiguous
39 expression.
40 (store_inferior_registers): Correct formatting. Replace uses of
41 deprecated_registers with calls to regcache_raw_read,
42 regcache_raw_write_part and regcache_raw_read_part.
43
3f70a5e9
MK
442004-11-21 Mark Kettenis <kettenis@gnu.org>
45
46 * config/pa/hppahpux.mh: Remove file.
47 * config/pa/hpux1020.mh: Remove file.
48
ced0d73d
AS
492004-11-20 Andreas Schwab <schwab@suse.de>
50
51 * configure.host: Set host floatformat for m68k.
52
fcf54f50
EZ
532004-11-20 Eli Zaretskii <eliz@gnu.org>
54
55 * config/djgpp/fnchange.lst: Resolve file-name clash between
56 hppa-hpux-tdep.c and the new hppa-hpux-nat.c.
57
a7289609
MK
582004-11-20 Mark Kettenis <kettenis@gnu.org>
59
eeb8076c
MK
60 * hppa-hpux-nat.c: New file.
61 * config/pa/hpux.mh (NATDEPFILES): New file.
62 * Makefile.in (ALLDEPFILES): Add hppa-hpux-nat.c.
63 (hppa-hpux-nat.o): New dependency.
64 * configure.host: Remove hppa*-*-hpux10.20.
65 (hppa*-*-hpux*, hppa*-*-hiux*): Set gdb_host to hpux.mh.
66
f6ffd89b
MK
67 * inf-ptrace.c: Fix coding style.
68
f1bc22da
MK
69 * gdb_ptrace.h [PTRACE_TYPE_ARG5] (ptrace): New macro.
70 * infptrace.c (call_ptrace): Simply call ptrace with four
71 arguments.
72
e31272c3
MK
73 * dbxread.c (process_one_symbol): Fix a few coding standard
74 issues. Improve code formatting.
75
91f54576
MK
76 * dbxread.c: Include "gdb_string.h".
77 (record_minimal_symbol, read_ofile_symtab): Replace
78 DEPRECATED_STREQ and DEPRECATED_STREQN with strcmp and strncmp.
79 * Makefile.in (dbxread.o): Update dependencies.
80
a7289609
MK
81 * dwarf2-frame.c (read_encoded_value): Correctly calculate number
82 of bytes read for aligned LEB128 encodings.
83
57ac95b8
MK
842004-11-19 Mark Kettenis <kettenis@gnu.org>
85
86 * bsd-kvm.c (bsd_kvm_pcb_cmd): Cast return value from
87 parse_and_eval_address to u_long before converting it to a pointer
88 type.
89 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Change type of
90 ps_strings from int to u_long.
91 * i386obsd-nat.c (_initialize_i386obsd_nat): Cast _ps.val to
92 u_long instead of CORE_ADDR.
93
ceddaf06
MK
942004-11-18 Mark Kettenis <kettenis@gnu.org>
95
96 * dbxread.c (process_one_symbol): Do not adjust address of first
97 N_SLINE stab for a function for code generated by non-GCC
98 compilers.
99
915a2d21
KB
1002004-11-18 Kevin Buettner <kevinb@redhat.com>
101
102 * solib-null.c: New file.
103
92790ee7
AC
1042004-11-17 Andrew Cagney <cagney@gnu.org>
105
106 * MAINTAINERS: Drop MIPS and remote.
107
0c16dd26
AC
1082004-11-15 Andrew Cagney <cagney@gnu.org>
109
110 * findvar.c (value_of_register): Set the frame ID.
111 * value.c (value_primitive_field): Copy the frame ID.
112 * valops.c (value_assign): Simplify lval_register case, there's
113 always a frame.
114
2fdf551c
DJ
1152004-11-14 Daniel Jacobowitz <dan@debian.org>
116
117 * Makefile.in (mips-linux-tdep.o): Update dependencies.
118 * mips-linux-tdep.c: Include "regcache.h".
119 (fill_fpregset, mips64_fill_fpregset): Use regcache_raw_collect.
120
98754800
DJ
1212004-11-14 Daniel Jacobowitz <dan@debian.org>
122
123 * Makefile.in (linux-thread-db.o): Fix typo in last change.
124
ed89d175
DJ
1252004-11-14 Daniel Jacobowitz <dan@debian.org>
126
127 * linux-thread-db.c: New file, renamed from thread-db.c.
128 * thread-db.c: Remove.
129 * Makefile.in (linux-thread-db.o): Rename from thread-db.o rule.
130 * config/alpha/alpha-linux.mh (NATDEPFILES): Rename thread-db.o
131 to linux-thread-db.o.
132 * config/arm/linux.mh (NATDEPFILES): Likewise.
133 * config/i386/linux.mh (NATDEPFILES): Likewise.
134 * config/i386/linux64.mh (NATDEPFILES): Likewise.
135 * config/ia64/linux.mh (NATDEPFILES): Likewise.
136 * config/m32r/linux.mh (NATDEPFILES): Likewise.
137 * config/m68k/linux.mh (NATDEPFILES): Likewise.
138 * config/mips/linux.mh (NATDEPFILES): Likewise.
139 * config/pa/linux.mh (NATDEPFILES): Likewise.
140 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
141 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
142 * config/s390/s390.mh (NATDEPFILES): Likewise.
143 * config/sparc/linux.mh (NATDEPFILES): Likewise.
144 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
145
8851ec7a
AC
1462004-11-13 Andrew Cagney <cagney@gnu.org>
147
f97fe8ff
AC
148 * config/i386/i386lynx.mh: Delete file.
149 * config/i386/i386lynx.mt: Delete file.
150 * Makefile.in (ALLDEPFILES, i386ly-tdep.o): Remove i386ly-tdep.c.
151 * i386ly-tdep.c: Delete.
152
5873946b
AC
153 * config/tm-lynx.h: Delete, inline contents ...
154 * config/rs6000/tm-rs6000ly.h: ... here.
155
a69637bd
AC
156 * config/tm-sysv4.h: Delete file, inlining contents.
157 * config/ia64/tm-aix.h (SKIP_TRAMPOLINE_CODE): Define.
158 * config/tm-linux.h (SKIP_TRAMPOLINE_CODE): Define.
159 * config/tm-nto.h (SKIP_TRAMPOLINE_CODE): Define.
160
8851ec7a
AC
161 * regcache.h (deprecated_register_valid): Delete.
162 (deprecated_registers): Delete.
163 * regcache.c (deprecated_register_valid): Delete.
164 (deprecated_registers): Delete.
165 (deprecated_read_register_byte, _initialize_regcache)
166 (deprecated_write_register_bytes, build_regcache): Update.
167 * config/powerpc/ppc-sim.mt (TDEPFILES): Remove ppc-bdm.o and
168 remote-sds.o.
169 * config/powerpc/ppc-eabi.mt (TDEPFILES): Ditto.
170 * config/mips/embed.mt (TDEPFILES): Remove remote-mips.o.
171
9445aa30
AC
172 * NEWS: List h8300*-*-*, mcore-*-*, mn10300-*-*, ns32k-*-*, and
173 v850-*-* under removed.
174 * configure.host: Delete ns32k-*-netbsd*.
175 * configure.tgt: Delete h8300-*-*, mcore*-*-*, mn10300-*-*,
176 ns32k-*-netbsd*, and v850*-*-*.
177 * MAINTAINERS: Mark h8300, mcore, mn10300, ns32k, v850 as
178 "Deleted"
179 * config/h8300/tm-h8300.h, config/h8300/h8300.mt: Delete.
180 * h8300-tdep.c, config/mcore/mcore.mt, mcore-rom.c: Delete.
181 * mcore-tdep.c, config/mn10300/mn10300.mt: Delete.
182 * mn10300-tdep.c, config/ns32k/nbsdaout.mh: Delete.
183 * config/ns32k/nbsdaout.mt, config/ns32k/nm-nbsd.h: Delete.
184 * config/ns32k/nm-nbsdaout.h, config/ns32k/tm-ns32k.h: Delete.
185 * ns32knbsd-nat.c, ns32knbsd-tdep.c, ns32k-tdep.c: Delete.
186 * ns32k-tdep.h, config/v850/v850.mt, v850ice.c: Delete.
187 * v850-tdep.c: Delete.
188
f6e1bffc
JB
1892004-11-13 Joel Brobecker <brobecker@gnat.com>
190
191 * irix5-nat.c (fetch_core_registers): Replace use of
192 deprecated_registers by equivalent code.
193
44ed547b
JB
1942004-11-13 Joel Brobecker <brobecker@gnat.com>
195
196 * irix5-nat.c (fill_gregset): Replace use of deprecated_registers
197 with equivalent code.
198 (fill_fpregset): Likewise.
199
e84ecc99
AC
2002004-11-13 Andrew Cagney <cagney@gnu.org>
201
ca1a823a
AC
202 * MAINTAINERS: Do not list "Deleted" architectures.
203
e84ecc99
AC
204 * configure.tgt: Delete i[34567]86-*-vxworks*, m68*-netx-*,
205 m68*-*-vxworks*, mips*-*-vxworks*, powerpc-*-vxworks*, and
206 sparc-*-vxworks*.
207 * NEWS: Mention that vxworks was deleted.
208 * config/m68k/tm-vx68.h, config/mips/tm-vxmips.h: Delete.
209 * config/powerpc/tm-vxworks.h, config/tm-vxworks.h: Delete.
210 * config/i386/vxworks.mt, config/m68k/vxworks68.mt: Delete.
211 * config/mips/vxmips.mt, config/powerpc/vxworks.mt: Delete.
212 * config/sparc/vxworks.mt, vx-share/dbgRpcLib.h: Delete.
213 * vx-share/ptrace.h, vx-share/regPacket.h: Delete.
214 * vx-share/vxTypes.h, vx-share/vxWorks.h: Delete.
215 * vx-share/wait.h, vx-share/xdr_ld.c: Delete.
216 * vx-share/xdr_ld.h, vx-share/xdr_ptrace.c: Delete.
217 * vx-share/xdr_ptrace.h, vx-share/xdr_rdb.c: Delete.
218 * vx-share/xdr_rdb.h, remote-vxsparc.c: Delete.
219 * remote-vxmips.c, remote-vx.c: Delete.
220 * remote-vx68.c: Delete.
221 * config/m68k/tm-os68k.h: Remove reference to VxWorks.
222 * config/m68k/os68k.mt, ada-lang.h: Ditto.
223 * Makefile.in (HFILES_NO_SRCDIR, ALLDEPFILES, remote-vx68.o)
224 (remote-vx.o, remote-vxmips.o, remote-vxsparc.o): Delete vx files.
225
01e937bc
EZ
2262004-11-13 Eli Zaretskii <eliz@gnu.org>
227
29247324
EZ
228 * config/i386/xm-go32.h: Don't include fopen-bin.h.
229 Don't define CRLF_SOURCE_FILES and DIRNAME_SEPARATOR.
230
231 * source.c (OPEN_MODE, FDOPEN_MODE): Remove the definitions in the
232 branch that doesn't define CRLF_SOURCE_FILES; always use
233 binary-mode open.
234 (print_source_lines_base, forward_search_command)
235 (reverse_search_command): Enable the code that accepts DOS-style
236 CRLF line endings on all platforms (this removes the need for
237 CRLF_SOURCE_FILES).
238
f8f0d88a 239 * defs.h: Fix wording of the comment before FOPEN_RB.
29247324 240 (DIRNAME_SEPARATOR) [__MSDOS__]: Define to ';'.
f8f0d88a 241
01e937bc
EZ
242 * config/djgpp/fnchange.lst: Group renames for opcode directory
243 together.
244
245 * config/djgpp/djconfig.sh: Replace file names that don't exist
246 anymore with existing files, for checking the unpacked
247 distribution.
248
249 * config/djgpp/config.sed (am_cv_exeext, lt_cv_sys_max_cmd_len):
250 Export pre-cooked values in configure-* targets that begin with
251 "@test -f stage_last".
252
25ae5d16
AC
2532004-11-12 Andrew Cagney <cagney@gnu.org>
254
255 * defs.h (enum lval_type): Delete lval_reg_frame_relative.
256 * value.h (struct value): Update comment.
257 * valops.c (value_assign): Fold lval_reg_fame_relative into
258 lval_register.
259 * findvar.c (value_from_register, locate_var_value): Ditto.
260
d7318818
RC
2612004-11-12 Randolph Chung <tausq@debian.org>
262
263 * config/tm/tm-hppa.h (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
264 * parse.c (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
265 (write_exp_msymbol): Remove conditional check for symbols starting
266 with $. Update comments.
267
89676665
RC
2682004-11-12 Randolph Chung <tausq@debian.org>
269
270 * pa64solib.c (pa64_solib_thread_start_addr): Rename from
271 so_lib_thread_start_addr.
272 * pa64solib.h (so_list): Forward declare.
273 (pa64_solib_thread_start_addr): Prototype.
274 * somsolib.c (SHL_LOAD, SHL_UNLOAD): Define if not already defined.
275 (no_shared_libraries): Remove.
276 (som_solib_thread_start_addr): Rename from so_lib_thread_start_addr.
277 * somsolib.h (som_solib_thread_start_addr): Likewise; prototype.
278 * hpread.c (hpread_process_one_debug_symbol): Use either the som or
279 the elf solib handler to find the start address.
280
281 * config/pa/hppahpux.mh (NATDEPFILES): Move target-specific support
282 files to the target makefile.
283 * config/pa/hpux1020.mh (NATDEPFILES): Likewise.
284 * config/pa/hpux11.mh (NATDEPFILES): Likewise.
285 * config/pa/hpux11w.mh (NATDEPFILES): Likewise.
286
287 * config/pa/hppa64.mt (TDEPFILES): Put target-specific support
b82f24bf 288 files for symbol reading and shared library handling here.
89676665 289 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
b82f24bf
RC
290 (PA_SOM_ONLY): Define so we can build a 32-bit SOM only target
291 without bringing in 64-bit support.
89676665 292
df407dfe
AC
2932004-11-12 Andrew Cagney <cagney@gnu.org>
294
4991999e
AC
295 * sparc-tdep.c: Replace VALUE_TYPE with value_type.
296 * v850-tdep.c, sparc64-tdep.c, sh-tdep.c: Ditto.
297 * sh64-tdep.c, s390-tdep.c, mcore-tdep.c: Ditto.
298 * h8300-tdep.c, arm-linux-tdep.c, amd64-tdep.c: Ditto.
299 * hppa-tdep.c, mips-tdep.c, m88k-tdep.c: Ditto.
300 * m68hc11-tdep.c, m32r-tdep.c, ia64-tdep.c: Ditto.
301 * frv-tdep.c, cris-tdep.c, avr-tdep.c, alpha-tdep.c: Ditto.
302
9ee8fc9d
AC
303 Merge VALUE_REGNO and VALUE_FRAME_REGNUM into VALUE_REGNUM.
304 * value.h (VALUE_REGNO, VALUE_FRAME_REGNUM): Delete.
305 (VALUE_REGNUM): Define.
306 (struct value): Delete location.regnum, rename "regno" to
307 "regnum".
308 * value.c, valops.c, valarith.c, findvar.c: Update.
309
df407dfe
AC
310 * value.h (VALUE_TYPE, VALUE_NEXT, VALUE_OFFSET, VALUE_BITSIZE)
311 (VALUE_BITPOS): Delete.
312 (value_type, value_offset, value_bitsize, value_bitpos): Declare.
313 * value.c (value_type, value_offset, value_bitpos)
314 (value_bitsize): New functions. Update references.
315 * arm-tdep.c, gnu-v3-abi.c, hpacc-abi.c, gnu-v2-abi.c: Update.
316 * f-valprint.c, cp-valprint.c, c-valprint.c: Update.
317 * ada-valprint.c, typeprint.c, scm-valprint.c, scm-exp.c: Update.
318 * p-valprint.c, jv-valprint.c, jv-lang.c, varobj.c: Update.
319 * objc-lang.c, ada-lang.c, std-regs.c, stack.c: Update.
320 * infcall.c, linespec.c, printcmd.c, valarith.c: Update.
321 * valops.c, eval.c, findvar.c, breakpoint.c: Update.
322 * tracepoint.c, ax-gdb.c, mi/mi-main.c, cli/cli-dump.c:
323 * rs6000-tdep.c, ppc-sysv-tdep.c: Update.
324
61c82a3b
AC
3252004-11-12 Andrew Cagney <cagney@gnu.org>
326
327 * cris-tdep.c (cris_register_offset): Delete, never called.
328 (cris_spec_reg_applicable): Delete cris_ver_sim.
329 * MAINTAINERS: List d10v as OBSOLETE.
330 * rdi-share/host.h (FOPEN_WB): #ifdef 0 out definitions of
331 FOPEN_WB et.al., defined by "fopen-bin.h".
332
5aac166f
RC
3332004-11-12 Randolph Chung <tausq@debian.org>
334
335 * hppa-tdep.c (hppa_skip_permanent_breakpoint): Move definition ...
336 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): ... to here.
337 * config/pa/tm-hppa.h (SKIP_PERMANENT_BREAKPOINT): Move definition ...
338 * config/pa/tm-hppah.h (SKIP_PERMANENT_BREAKPOINT): ... to here.
339
4fab48b9
MK
3402004-11-12 Mark Kettenis <kettenis@jive.nl>
341
342 * tui/tui-io.c: Don't include "terminal.h".
343 * Makefile.in (tui-io.o): Update dependencies.
344
9b098f24
KI
3452004-11-12 Kei Sakamoto <sakamoto.kei@renesas.com>
346
347 * Makefile.in (m32r-linux-tdep.o): Update dependencies.
348 * m32r-linux-tdep.c (m32r_linux_init_abi): Call
349 set_gdbarch_regset_from_core_section for core file support.
350 (m32r_linux_supply_gregset, m32r_linux_regset_from_core_section):
351 New functions.
352
a71f8c30
RC
3532004-11-11 Randolph Chung <tausq@debian.org>
354
355 * hppa-tdep.c (skip_prologue_hard_way): Make static, add
356 stop_after_branch parameter and use it to determine if we should look
357 at the delay slot of the first branch insn to find prologue insns.
358 (hppa_skip_prologue): Update comment and call to skip_prologue_hard_way.
359 (hppa_frame_cache): Likewise.
360
50b2f48a
RC
3612004-11-11 Randolph Chung <tausq@debian.org>
362
363 * hppa-tdep.c (hppa_frame_cache): Properly handle the frame pointer
364 register so that it can be unwound from anywhere in the prologue.
365
be723e22
MS
3662004-11-10 msnyder <msnyder@redhat.com>
367
368 * rs6000-tdep.c (skip_prologue): After saving lr_offset,
369 must invalidate lr_reg (so we don't try to save it again).
370 Ditto for cr_offset and cr_reg.
371
d6f7abdf
AC
3722004-11-05 Jon Beniston <jon@beniston.com>
373
216c5547 374 Committed by Andrew Cagney.
d6f7abdf
AC
375 * remote.c (putpkt_binary) Fix PR gdb/1806. Send an ACK
376 when an unexpected packet is received, as the target stubs
377 continually retransmit the same packet until ACKed.
378
1d225535
RC
3792004-11-10 Randolph Chung <tausq@debian.org>
380
381 * frame.c (get_prev_frame): Use get_frame_type to retrieve the
d6f7abdf 382 frame's type.
1d225535 383
2315ffec
RC
3842004-11-10 Randolph Chung <tausq@debian.org>
385
386 * blockframe.c (inside_entry_func): Move to .....
387 * frame.c (inside_entry_func): ... here, and make static.
388 (backtrace_past_entry): New flag.
389 (get_prev_frame): Stop backtrace at the entry function if enabled
390 by flag. Update comments.
391 (_initialize_frame): Add command to set backtrace_past_entry flag.
392 * defs.h (inside_entry_func): Remove prototype.
393
917c78fc
MK
3942004-11-10 Mark Kettenis <kettenis@gnu.org>
395
396 * dwarf2read.c: Fix formatting.
397
994b9211
AC
3982004-11-10 Andrew Cagney <cagney@gnu.org>
399
400 * value.h (COERCE_REF, COERCE_ARRAY, COERCE_NUMBER, COERCE_ENUM)
401 (coerce_ref, coerce_array, coerce_number, coerce_enum): Replace
402 macros with function declarations.
403 * value.c (coerce_ref, coerce_array, coerce_number)
404 (coerce_enum): New functions.
405 (value_as_long, value_as_address): Update.
406 * ada-lang.c (ada_coerce_ref, ada_value_binop)
407 (ada_evaluate_subexp, ada_value_assign, ada_value_struct_elt): Update.
408 * jv-lang.c (evaluate_subexp_java): Update.
409 * valarith.c (value_less, value_neg, value_complement)
410 (value_binop, value_add, value_subscript, value_x_binop)
411 (value_logical_not, value_sub): Update.
412 * valops.c (check_field, value_struct_elt, value_ind)
413 (value_find_oload_method_list, value_cast, value_assign): Update.
414 * eval.c (evaluate_subexp_standard): Update.
415
06987e64
MK
4162004-11-10 Mark Kettenis <kettenis@gnu.org>
417
418 * mips-tdep.c (mips32_relative_offset): Change return type to
419 LONGEST, change argument type to ULONGEST. Fix sign-extension.
420
4a302917
RC
4212004-11-10 Randolph Chung <tausq@debian.org>
422
423 * hppa-tdep.c (hppa32_register_name, hppa64_register_name): Make static.
424 (hppa32_push_dummy_call, hppa64_push_dummy_call): Likewise.
425 (hppa_fetch_pointer_argument): Likewise.
426 (hppa_frame_cache): Use safe_frame_unwind_memory instead of
427 deprecated_read_memory_nobpt.
428 (_initialize_hppa_tdep): Replace deprecated_add_show_from_set/
429 add_set_cmd sequence with add_setshow_boolean_cmd.
430
390e974f
AC
4312004-11-09 Andrew Cagney <cagney@gnu.org>
432
433 GDB 6.3 released from GDB 6.3 branch.
434
92e023d6
AC
4352004-11-09 Andrew Cagney <cagney@gnu.org>
436
437 * values.c: Rename to ...
438 * value.c: ..., new file.
439 * Makefile.in: Update.
440
d10891d4
DJ
4412004-11-09 Daniel Jacobowitz <dan@debian.org>
442
443 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Correct allocated
444 size.
445
00a4c844
AC
4462004-11-09 Andrew Cagney <cagney@gnu.org>
447
c44523e7
AC
448 * TODO: Delete.
449
00a4c844
AC
450 * value.h (struct value): Delete field bfd_section.
451 (VALUE_BFD_SECTION): Delete macro.
452 (COERCE_REF): Update.
453 (value_at, value_at_lazy): Delete asection parameter.
454 * printcmd.c (print_formatted, x_command): Update.
455 (do_examine): Delete asection parameter.
456 (next_section): Delete variable.
457 * valops.c (value_cast, value_at, value_at_lazy)
458 (value_coerce_function, value_addr, value_ind, value_string)
459 (find_rt_vbase_offset, value_full_object): Update.
460 * hpacc-abi.c (hpacc_virtual_fn_field)
461 (hpacc_value_rtti_type): Update.
462 * gnu-v3-abi.c (gnuv3_rtti_type, gnuv3_virtual_fn_field)
463 (gnuv3_baseclass_offset): Update.
464 * f-valprint.c (f_val_print): Update.
465 * c-valprint.c (c_val_print): Update.
466 * p-valprint.c (pascal_val_print): Update.
467 * jv-valprint.c (java_value_print): Update.
468 * jv-lang.c (java_class_from_object, evaluate_subexp_java): Update.
469 * ada-lang.c (ada_value_primitive_packed_val)
470 (ada_evaluate_subexp): Update.
471 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Update.
472 * expprint.c (print_subexp_standard): Update.
473 * infcall.c (call_function_by_hand): Update.
474 * valarith.c (value_add): Update.
475 * eval.c (evaluate_subexp_standard): Update.
476 * values.c (allocate_value, value_copy, value_static_field): Update.
477 * findvar.c (read_var_value, locate_var_value): Update.
478
5cb2fe25
AC
4792004-11-09 Andrew Cagney <cagney@gnu.org>
480
481 * i386-linux-tdep.c: Include "dwarf2-frame.h".
482 * Makefile.in: Update all dependencies.
483
cbafadeb
AC
4842004-11-08 Andrew Cagney <cagney@gnu.org>
485
486 * sentinel-frame.c (sentinel_frame_prev_pc): New function.
487 (sentinel_frame_unwinder): Add the prev_pc method.
488 * frame.c (frame_pc_unwind): Use the per-frame pc unwinder when
489 available. Do not handle the sentinel-frame case.
490 * frame-unwind.h (frame_prev_register_ftype): Define.
491 (struct frame_unwind): Add prev_pc;
492
3b78cdbb
DA
4932004-11-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
494
495 * configure.in: Check for ncurses/term.h.
496 * gdb_curses.h: Include term.h here, prefering ncurses/term.h.
497 * utils.c: Include gdb_curses.h instead of curses.h and term.h.
498 * tui/tui.c: Don't include term.h.
499 * configure, config.in: Rebuilt.
500
bcfca652
MK
5012004-11-08 Mark Kettenis <kettenis@gnu.org>
502
503 * m68kbsd-nat.c: Include "inf-ptrace.h".
504 (_initialize_m68kbsd_nat): Fix pasto.
505 * Makefile.in (m68kbsd-nat.o): Update dependencies.
506
527159b7
RC
5072004-11-08 Randolph Chung <tausq@debian.org>
508
509 * infrun.c (debug_infrun): New variable.
510 (resume, proceed, wait_for_inferior): Annotate with debug messages.
511 (handle_inferior_event, keep_going): Likewise.
512 (_initialize_infrun): Register "set debug infrun" command.
513
c874c7fc
AS
5142004-11-08 Andreas Schwab <schwab@suse.de>
515
516 * linux-nat.c (PTRACE_EVENT_VFORK_DONE): Renamed from
517 PTRACE_EVENT_VFORKDONE.
518 (child_follow_fork): Adjust.
519
3c8fa307
AC
5202004-11-08 Andrew Cagney <cagney@gnu.org>
521
5c26072a
AC
522 * README: Refer to 6.3, not 6.2, update directory listing droppng
523 references to intl/ and mmalloc/.
524 * PROBLEMS: Refer to 6.3 not 6.2.
525
3c8fa307
AC
526 * PROBLEMS: Delete no-longer applicable problems.
527
12b8a2cb
DJ
5282004-11-07 Andrew Cagney <cagney@redhat.com>
529 Daniel Jacobowitz <dan@debian.org>
530 Roland McGrath <roland@redhat.com>
531
532 * Makefile.in (symfile-mem.o): Update dependencies.
533 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): New.
534 (i386_linux_init_abi): Call dwarf2_frame_set_signal_frame_p.
535 * inf-ptrace.c (inf_ptrace_attach): Call
536 observer_notify_inferior_created.
537 * inftarg.c (child_attach): Likewise.
538 * symfile-mem.c: Include "observer.h", "auxv.h", and "elf/common.h".
539 (symbol_file_add_from_memory): Take NAME argument. Use it for
540 the new BFD's filename.
541 (add_symbol_file_from_memory_command): Update call to
542 symbol_file_add_from_memory.
543 (struct symbol_file_add_from_memory_args, add_vsyscall_page)
544 (symbol_file_add_from_memory_wrapper): New.
545 (_initialize_symfile_mem): Register add_vsyscall_page as an
546 inferior_created observer.
547
abbc6945
MK
5482004-11-07 Mark Kettenis <kettenis@gnu.org>
549
550 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Rename from
551 fetch_inferior_registers. Make static.
552 (m68kbsd_store_inferior_registers): Rename from
553 store_inferior_registers. Make static.
554 (_initialize_m68kbsd_nat): Construct and add target vector.
555 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
556 inftarg.o. Add inf-ptrace.o.
557 (NAT_FILE): Set to tm-solib.h.
558 (LOADLIBES): New variable.
559 * config/m68k/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
560 inftarg.o. Add inf-ptrace.o.
561 (NAT_FILE): Delete variable.
562 * config/m68k/obsd.mh (NATDEPFILES): Remove infptrace.o and
563 inftarg.o. Add inf-ptrace.o.
564 (NAT_FILE): Set to tm-solib.h.
565 * config/m68k/nm-nbsdaout.h: Remove file.
566
3ed09a32
DJ
5672004-11-07 Daniel Jacobowitz <dan@debian.org>
568
569 * dwarf2-frame.c (struct dwarf2_frame_ops): Add signal_frame_p.
570 (dwarf2_frame_set_signal_frame_p, dwarf2_frame_signal_frame_p)
571 (dwarf2_signal_frame_unwind): New.
572 (dwarf2_frame_sniffer): Use dwarf2_frame_signal_frame_p.
573 * dwarf2-frame.h (dwarf2_frame_set_signal_frame_p): New prototype.
574
8e763687
MK
5752004-11-07 Mark Kettenis <kettenis@gnu.org>
576
4fb31ed0
MK
577 * Makefile.in (mips64obsd-tdep.o): Fix typo.
578
fabe86c8
MK
579 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Renamed
580 from mipsnbsd_ilp32_solib_svr4_fetch_link_map_offsets. Trim sizes
581 to only include the structure members we actually need.
582 (mipsnbsd_lp64_fetch_link_map_offsets): Renamed from
583 mipsnbsd_lp64_solib_svr4_fetch_link_map_offsets. Trim sizes to
584 only include the structure members we actually need.
585 (mipsnbsd_init_abi): Update.
586
366e93e8
MK
587 * mips64obsd-nat.c: Include "mips-tdep.h".
588 (MIPS64OBSD_NUM_REGS): Remove define.
589 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM): New defines.
590 (mips64obsd_supply_gregset, mips64obsd_collect_gregset): Handle
591 floating-point registers correctly.
592 * Makefile.in (mips64obsd-nat.o): Update dependencies.
593
8e763687
MK
594 * mips64obsd-tdep.c: Include "trad-frame.h", "tramp-frame.h" and
595 "gdb_assert.h".
596 (mips64obsd_sigframe_init): New function.
597 (mips64obsd_sigframe): New variable.
598 (mips64obsd_init_abi): Add comments. Prepend mips64obsd_sigrame
599 unwinder.
600 * Makefile.in (mips64obsd-tdep.o): Update dependencies.
601
5f6a2351
JB
6022004-11-06 Joel Brobecker <brobecker@gnat.com>
603
604 * alpha-mdebug-tdep.c: #include mdebugread.h.
605 Replace alpha_extra_func_info_t by struct mdebug_extra_func_info *.
606 * Makefile.in (alpha-mdebug-tdep.o): Add dependency on mdebugread.h.
607
f059bf6f
AC
6082004-11-05 Andrew Cagney <cagney@gnu.org>
609
610 * dwarf2-frame.c (dwarf2_frame_cache): Only complain when both the
611 CFI and the init_reg method leave the register unspecified.
612 Include the register name in the "Incomplete CFI data" complaint.
613 Supress leading zeros in the address.
614
1234d960
MK
6152004-11-05 Mark Kettenis <kettenis@gnu.org>
616
617 * dwarf2-frame.c (decode_frame_entry_1): Avoid indirection when
618 skipping a personality routine in a CIE augmentation.
619
d75e3c94
JJ
6202004-11-05 Jeff Johnston <jjohnstn@redhat.com>
621
622 * defs.h (fatal, vfatal): New function prototypes.
623 * stack.c (backtrace_command_stub): Stub to call backtrace_command_1
624 via catch_errors.
625 (backtrace_command): Change to call backtrace_command_stub via
626 catch_errors instead of calling backtrace_command_1 directly.
627 (backtrace_full_command): Ditto.
628 * utils.c (error_stream_1): New static function.
629 (verror): Change to call error_stream_1 instead of error_stream.
630 (error_stream): Call error_stream_1 with RETURN_ERROR argument.
631 (vfatal, fatal): New functions.
632
98f276a0
AC
6332004-11-05 Andrew Cagney <cagney@gnu.org>
634
635 * stack.c (parse_frame_specification_1): Clear selected_frame_p
636 when not using selected frame.
637
f724bf08
MK
6382004-11-05 Mark Kettenis <kettenis@jive.nl>
639
640 * dwarf2-frame.c (decode_frame_entry_1): Correctly skip
641 personality routine in a CIE augmentation.
642
c789492a
FL
6432004-11-05 Felix Lee <felix+log1@specifixinc.com>
644
645 * stack.c (set_current_sal_from_frame): New function.
646 (print_args_stub): Use it.
647 (print_frame_info): Don't set sal here.
648
a81b10ae
MK
6492004-11-04 Mark Kettenis <kettenis@gnu.org>
650
651 * dwarf2-frame.c (read_encoded_value): Change type of third
652 argument to `unsigned char *'. Add support for LEB128 encodings.
653
ad766c0a
JB
6542004-11-04 Jim Blandy <jimb@redhat.com>
655
656 * gdbtypes.c (make_qualified_type): Doc fix. Add assertion to
657 prevent cross-objfile references.
658 (make_cv_type): Doc fix. Don't create cross-objfile references,
659 even for stub types.
660 (replace_type): Add assertion to prevent cross-objfile references.
661 (check_typedef): Never resolve a stub type by copying over a type
662 from another file.
663
c46b0409 6642004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
f16d97c9 665
c46b0409
KI
666 * Makefile.in (m32r-tdep.o): Update dependencies.
667 * m32r-tdep.c (m32r_gdbarch_init): Call gdbarch_init_osabi for
668 ABI-specific overrides.
669
9f0b0322 6702004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
f16d97c9 671
9f0b0322
KI
672 * m32r-tdep.c (m32r_memory_insert_breakpoint): Remove
673 unnecessary parallel execution bit.
674 (m32r_memory_remove_breakpoint): Ditto.
675 (m32r_breakpoint_from_pc): Update.
676
d5c27f81
RC
6772004-11-03 Randolph Chung <tausq@debian.org>
678
679 * hppa-tdep.c (hppa_frame_cache): Use frame_pc_unwind instead of
9f0b0322 680 frame_func_unwind to locate the unwind entry.
d5c27f81
RC
681 (hppa_frame_this_id): Likewise.
682
4577593c
AC
6832004-11-03 Andrew Cagney <cagney@gnu.org>
684
685 * gdb/NEWS: Mention internationalization, m32r-*-linux-gnu, 'p'
686 packet, obsolete configurations, end-of-life deprecated_registers.
687
b04de778
MK
6882004-11-02 Mark Kettenis <kettenis@gnu.org>
689
690 * dwarf2-frame.c (read_encoded_value): Set proper size for signed
691 encodings as well as unsigned encodings.
692
9f2feefc
AC
6932004-11-02 Andrew Cagney <cagney@gnu.org>
694
695 * value.h (COERCE_VARYING_ARRAY): Delete.
696 * valops.c (value_cast, value_slice): Delete use.
697 * valarith.c (value_subscript, value_concat): Delete use.
698
117ea3cf
PH
6992004-11-02 Paul Hilfinger <hilfingr@nile.gnat.com>
700
701 * NEWS: GDB understands GNAT Ada.
702
0bbc026e
JM
7032004-11-01 Joseph S. Myers <joseph@codesourcery.com>
704
705 * Makefile.in (ALLDEPFILES): Add amd64-sol2-tdep.c.
706 (amd64-sol2-tdep.o): Add dependencies.
707 * amd64-sol2-tdep.c, config/i386/sol2-64.mh,
708 config/i386/sol2-64.mt: New files.
709 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offset,
710 amd64_sol2_gregset32_reg_offset, _initialize_amd64_sol2_nat): New.
711 (supply_gregset): Correct order of arguments to
712 amd64_supply_native_gregset.
713 (fill_gregset): Correct order of arguments to
714 amd64_collect_native_gregset.
715 * configure.host (i[34567]86-*-solaris2.1[0-9]*): Add new case.
716 * configure.tgt (i[34567]86-*-solaris2.1[0-9]*): Likewise.
717 * configure.in (*-*-solaris2.[[6789]]): Add *-*-solaris2.1[[0-9]]
718 for definition of NEW_PROC_API.
719 * configure: Regenerate.
720
3d38a0a5
JM
7212004-11-01 Joseph S. Myers <joseph@codesourcery.com>
722
723 * MAINTAINERS (Write After Approval): Add myself.
724
f81cd1cf
AC
7252004-11-01 Andrew Cagney <cagney@gnu.org>
726
727 * configure.tgt: Mark d10v-*-* as obsolete.
728 * config/d10v/d10v.mt, d10v-tdep.c: Obsolete files.
729
f4e88c8e
PH
7302004-11-01 Paul N. Hilfinger <Hilfinger@gnat.com>
731
732 * values.c (modify_field): Correct handling of bit-fields that
733 don't fit in 32 bits. Use unsigned operations throughout and
734 simplify the code a bit. Document preconditions.
735
84674fe1
AC
7362004-10-31 Andrew Cagney <cagney@gnu.org>
737
96693b3a
AC
738 * config/pa/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
739 * config/tm-sysv4.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
740 (in_plt_section): Delete.
741
6f296f8f
AC
742 * mips-tdep.c (mips_in_solib_return_trampoline): Delete.
743 (mips_gdbarch_init): Do not set same.
744
618501c0
AC
745 * arch-utils.c (generic_in_solib_call_trampoline): Delete.
746 * arch-utils.h (generic_in_solib_call_trampoline): Delete.
747
b22e8f02
AC
748 * gdbarch.sh (in_solib_call_trampoline): Delete.
749 * gdbarch.h, gdbarch.c: Re-generate.
750
84674fe1
AC
751 * hppa-tdep.c (hppa_stub_unwind_sniffer): Replace
752 IN_SOLIB_CALL_TRAMPOLINE with tdep.in_solib_call_trampoline.
753 * hppa-tdep.h (struct gdbarch_tdep): Add in_solib_call_trampoline.
754 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Set same.
755 * hppa-linux-tdep.c (hppa_linux_init_abi): Ditto.
756
c6d1029f
MK
7572004-10-31 Mark Kettenis <kettenis@gnu.org>
758
759 * mipsnbsd-nat.c: Include "target.h" and "inf-ptrace.h".
760 (mipsnbsd_fetch_inferior_registers): Rename from
761 fetch_inferior_registers. Make static.
762 (mipsnbsd_store_inferior_registers): Rename from
763 store_inferior_registers. Make static.
764 (_initialize_mipsnbsd_nat): New function and prototype.
765 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
766 * config/mips/nbsd.mh (NAT_CLIBS, NAT_FILE): Remove variables.
767 (NATDEPFILES): Remove infptrace.o and inftarg.o. Add
768 inf-ptrace.o.
769
bd9ca83f
AC
7702004-10-31 Andrew Cagney <cagney@gnu.org>
771
19d718a3
AC
772 * xstormy16-tdep.c (xstormy16_in_solib_call_trampoline)
773 (xstormy16_gdbarch_init): Do not set in_solib_call_trampoline,
774 delete corresponding unused function.
775 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Really do not set
776 in_solib_call_trampoline.
777 * config/arm/tm-embed.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
778 * config/powerpc/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
779 * config/mips/tm-nbsd.h: Ditto.
780 * config/arm/tm-linux.h: Ditto.
781 * config/mips/tm-linux.h: Ditto.
782
e8ce19c0
AC
783 * armnbsd-tdep.c (arm_netbsd_aout_init_abi)
784 (arm_netbsd_aout_in_solib_call_trampoline): Do not set
785 in_solib_call_trampoline, delete corresponding unused function.
786 * vaxnbsd-tdep.c (vaxnbsd_aout_in_solib_call_trampoline)
787 (vaxnbsd_aout_init_abi): Ditto.
788 * sparcnbsd-tdep.c (sparcnbsd_aout_in_solib_call_trampoline)
789 (sparc32nbsd_aout_init_abi): Ditto.
790 * ppc-linux-tdep.c (ppc64_in_solib_call_trampoline)
791 (ppc_linux_init_abi): Ditto.
792 * ns32knbsd-tdep.c (ns32knbsd_aout_in_solib_call_trampoline)
793 (ns32knbsd_init_abi_aout): Ditto.
794 * mips-tdep.c (mips_in_call_stub, mips_gdbarch_init): Ditto.
795 * mips-linux-tdep.c (mips_linux_init_abi): Ditto.
796 * m68kbsd-tdep.c (m68kbsd_aout_in_solib_call_trampoline)
797 (m68kbsd_aout_init_abi): Ditto.
798 * i386-cygwin-tdep.c (i386_cygwin_in_solib_call_trampoline)
799 (i386_cygwin_init_abi): Ditto.
800 * i386bsd-tdep.c (i386bsd_aout_in_solib_call_trampoline)
801 (i386bsd_init_abi): Ditto.
802
af380d61
AC
803 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Do not set
804 in_solib_call_trampoline to in_plt_entry, IN_SOLIB_CALL_TRAMPOLINE
805 isn't used by this architecture.
806 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
807 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Ditto.
808 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Ditto.
809 * s390-tdep.c (s390_gdbarch_init): Ditto.
810 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
811 * m68klinux-tdep.c (m68k_linux_init_abi): Ditto.
812 * i386-tdep.c (i386_svr4_init_abi): Ditto.
813 * i386-nto-tdep.c (i386nto_init_abi): Ditto.
814 * arm-linux-tdep.c (arm_linux_init_abi): Ditto.
815 * amd64-tdep.c (amd64_init_abi): Ditto.
816
0528d9f7
AC
817 * vaxnbsd-tdep.c (vaxnbsd_elf_init_abi): Do not set
818 in_solib_call_trampoline to its default value of
819 generic_in_solib_call_trampoline.
820 * ppcobsd-tdep.c (ppcobsd_init_abi): Ditto.
821 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Ditto.
822 * i386obsd-tdep.c (i386obsd_elf_init_abi): Ditto.
823 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Ditto.
824 * i386fbsd-tdep.c (i386fbsd_init_abi): Ditto.
825 * hppabsd-tdep.c (hppabsd_init_abi): Ditto.
826
f9f9eacb
AC
827 * mips-tdep.c (mips_dump_tdep): Don't print any of the macros.
828
a4ffd1e7
AC
829 * config/mips/obsd64.mt (DEPRECATED_TM_FILE): Delete.
830
82e34d2f
AC
831 * config/mips/tm-mips.h: Delete file.
832 * remote-mips.c: Delete tm-mips.h from comment.
833 * config/mips/embed.mt (DEPRECATED_TM_FILE): Delete.
834 * config/mips/tm-nbsd.h: Don't include tm-mips.h.
835 * config/mips/irix6.mt (DEPRECATED_TM_FILE): Delete.
836 * config/mips/tm-linux.h: Don't include tm-mips.h.
837 * config/mips/tm-vxmips.h: Don't include tm-mips.h.
838 * config/mips/irix5.mt (DEPRECATED_TM_FILE):
839 * config/mips/tm-wince.h: Don't include.
840
75dec9cf
AC
841 * mdebugread.h (MDEBUG_EFI_SYMBOL_NAME): Define.
842 * mdebugread.c (MDEBUG_EFI_SYMBOL_NAME): Delete.
843 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
844 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
845
bd9ca83f
AC
846 * mdebugread.h (ecoff_relocate_efi): Delete declaration.
847 * mdebugread.c (ecoff_relocate_efi): Delete function.
848 * objfiles.c (objfile_relocate): Delete #ifdef
849 MDEBUG_EFI_SYMBOL_NAME code.
850
3352ef37
AC
8512004-10-31 Orjan Friberg <organ.friberg@axis.com>
852 Andrew Cagney <cagney@gnu.org>
853
854 * gdbarch.sh (single_step_through_delay): Add.
855 * gdbarch.h, gdbarch.c: Re-generate.
856 * config/mips/tm-mips.h (STEP_SKIPS_DELAY_P, STEP_SKIPS_DELAY)
857 (mips_step_skips_delay): Delete.
858 * mips-tdep.c (mips_single_step_through_delay): Replace
859 mips_step_skips_delay.
860 (mips_gdbarch_init): Set single_step_through_delay.
861 (mips_dump_tdep): Do not print STEP_SKIPS_DELAY.
862
2440b685
MK
8632004-10-31 Mark Kettenis <kettenis@gnu.org>
864
865 * tramp-frame.c (tramp_frame_prepend_unwinder): Set unwinder type
866 from TRAMP_FRAME frame type.
867
56a2fed5
AC
8682004-10-31 Andrew Cagney <cagney@gnu.org>
869
9b792b1d
AC
870 * mdebugread.c (parse_procedure): Wrap use of RA_REGNUM in #ifdef.
871
0a5e8d98
AC
872 * mips-tdep.c (mips_ignore_helper): Delete.
873 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Delete.
874 * infrun.c (handle_inferior_event): Delete #ifdef
875 DEPRECATED_IGNORE_HELPER_CALL code.
876
56a2fed5
AC
877 * config/mips/tm-mips.h (RA_REGNUM): Delete.
878
f69c55b2
MK
8792004-10-31 Mark Kettenis <kettenis@gnu.org>
880
881 * i386v4-nat.c (supply_gregset, supply_fpregset, fill_gregset)
882 (fill_fpregset): Do not compile for 64-bit systems.
883 * i386-sol2-nat.c: Don't include "i386v4-nat.c".
884 * Makefile.in (i386-sol2-nat.o): Update dependencies.
885 * config/i386/i386sol2.mh (NATDEPFILES): Add back i386v4-nat.c.
886
d37cca3d
AC
8872004-10-30 Andrew Cagney <cagney@gnu.org>
888
36b8628e
AC
889 * mdebugread.h: Include "coff/sym.h" and "coff/symconst.h".
890 (struct mdebug_extra_func_info): Define.
891 * config/alpha/tm-alpha.h: Delete same.
892 * config/mips/tm-mips.h: Delete same.
893 * mdebugread.c: Delete same.
894 * Makefile.in: Update dependencies.
895 * mips-mdebug-tdep.c: Include "mdebugread.h".
896
5b123146
AC
897 * objfiles.c: Include "mdebugread.h".
898 * mdebugread.c: Include "mdebugread.h".
899 (ecoff_relocate_cfi): Delete.
900 * config/alpha/tm-alpha.h (ecoff_relcate_cfi): Delete.
901 * config/mips/tm-mips.h (ecoff_relcate_cfi): Delete.
902 * mdebugread.h (ecoff_relocate_efi): New file.
903 * Makefile.in: Update dependencies.
904
b9c3a7de
AC
905 * mips-tdep.c (struct frame_extra_info): Delete.
906 (temp_proc_desc): Delete.
907
f92761ec
AC
908 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Rename
909 MIPS_EFI_SYMBOL_NAME.
910 (mips_extra_func_info_t, mips_extra_func_info): Delete.
911 (struct mdebug_extra_func_info): Replace struct
912 alpha_extra_func_info and alpha_extra_func_info_t.
913 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Rename
914 MIPS_EFI_SYMBOL_NAME.
915 (struct mdebug_extra_func_info): Replace struct
916 alpha_extra_func_info and alpha_extra_func_info_t.
917 * objfiles.c, mips-tdep.c, mips-mdebug-tdep.c: Update.
918 * mdebugread.c, alpha-mdebug-tdep.c:
919
0bb57b31
AC
920 Suggested by Mark Kettenis.
921 * config/mips/tm-mips.h (struct mips_extra_func_info): Delete
922 fields frame_adjust and high_addr.
923 * mips-mdebug-tdep.c (PROC_HIGH_ADDR, PROC_FRAME_ADJUST): Delete.
924 (non_heuristic_proc_desc): Delete references.
925
a5c9623c
AC
926 * mips-tdep.h (MIPS_PRID_REGNUM): Add.
927 * config/mips/tm-mips.h (PRID_REGNUM): Delete.
928 * mips-tdep.c: Update.
929
607fc93c
AC
930 * mips-tdep.h (MIPS_FIRST_EMBED_REGNUM)
931 (MIPS_LAST_EMBED_REGNUM): Add.
932 * config/mips/tm-mips.h (FIRST_EMBED_REGNUM)
933 (LAST_EMBED_REGNUM): Delete.
934 * mipsv4-nat.c, mips-tdep.c, mips-linux-tdep.c: Update.
935
24e05951
AC
936 * config/mips/tm-mips.h (PS_REGNUM): Delete.
937 * mips-tdep.h (MIPS_PS_REGNUM): Add.
938 * remote-vxmips.c, mipsv4-nat.c, mips-tdep.c: Update.
939 * mips-linux-nat.c: Update.
940
613e114f
AC
941 * mips-tdep.h: Add comments on registers.
942 (MIPS_UNUSED_REGNUM): Define.
943 * config/mips/tm-mips.h (ZERO_REGNUM, UNUSED_REGNUM)
944 (T9_REGNUM, V0_REGNUM, A0_REGNUM): Delete.
945 * irix5-nat.c, mipsv4-nat.c, mips-linux-tdep.c: Update.
946 * mips-linux-nat.c, remote-mips.c: Update.
947
d37cca3d
AC
948 * config/mips/tm-mips.h (t_insn): Delete.
949 * mips-tdep.c (mips_fetch_instruction, mips_skip_trampoline_code):
950 Replace t_insn with ULONGEST.
951
ceb41096
MK
9522004-10-30 Mark Kettenis <kettenis@gnu.org>
953
d1180b0f
MK
954 * mipsnbsd-tdep.c: Include "regset.h" and "gdb_assert.h".
955 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM)
956 (MIPSNBSD_NUM_GREGS, MIPSNBSD_NUM_FPREGS): New defines.
957 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
958 (mipsnbsd_core_fns, mipsnbsd_elfcore_fns): Remove variables.
959 (mipsnbsd_core_osabi_sniffer): New function.
960 (mipsnbsd_init_abi): Set regset_from_core_section.
961 (_initialize_mipsnbsd_tdep): Remove calls to
962 deprecated_add_core_fns.
963 (mipsnbsd_supply_fpregset, mipsnbsd_supply_gregset)
964 (mipsnbsd_regset_from_core_section): New functions.
965 (mipsnbsd_gregset, mipsnbsd_fpregset): New variables.
966 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
967
ceb41096
MK
968 * procfs.c (procfs_fetch_registers, procfs_store_registers): Like
969 Remove optimization for DEPRECATED_FP_REGNUM.
970
ec4045ea
AC
9712004-10-30 Andrew Cagney <cagney@gnu.org>
972
cd65c8f6
AC
973 * alpha-tdep.c (alpha_setup_arbitrary_frame): Delete.
974 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Delete.
975 (alpha_setup_arbitrary_frame): Delete.
976 * mips-tdep.c (setup_arbitrary_frame): Delete.
977 * config/mips/tm-mips.h (SETUP_ARBITRARY_FRAME): Delete.
978 (setup_arbitrary_frame): Delete.
979 * stack.c (parse_frame_specification_1): When specified, call
980 create_new_frame with two parameters. Delete #ifdef
981 SETUP_ARBITRARY_FRAME.
982
95ac2dcf
AC
983 * config/mips/tm-mips.h (MIPS16_INSTLEN, MIPS_NUMREGS)
984 (MIPS_INSTLEN): Delete.
985 * mips-tdep.h (enum mips_insn_size): Rename MIPS32_INSN_SIZE and
986 MIPS16_INSN_SIZE to MIPS_INSN32_SIZE and MIPS_INSN16_SIZE.
987 * remote-mips.c, mips-tdep.c: Update.
988
1a8da44d
AC
989 * config/mips/embed.mt (TDEPFILES): Add mips-mdebug-tdep.o.
990 * mips-mdebug-tdep.h, mips-mdebug-tdep.c: New files.
991 * mips-tdep.c (mips_mdebug_frame_cache)
992 (mips_mdebug_frame_this_id, mips_mdebug_frame_prev_register)
993 (mips_mdebug_frame_unwind, mips_mdebug_frame_sniffer)
994 (mips_mdebug_frame_base_address, mips_mdebug_frame_sniffer)
995 (mips_mdebug_frame_base_sniffer, non_heuristic_proc_desc)
996 (compare_pdr_entries, the_bfd, mips16_fetch_instruction): Delete.
997 (mips_gdbarch_init): Do not append mdebug sniffers.
998 (PROC_LOW_ADDR, PROC_HIGH_ADDR, PROC_FRAME_OFFSET)
999 (PROC_FRAME_REG, PROC_FRAME_ADJUST, PROC_REG_MASK)
1000 (PROC_FREG_MASK, PROC_REG_OFFSET, PROC_FREG_OFFSET, PROC_PC_REG)
1001 (PROC_SYMBOL, _PROC_MAGIC_): Delete.
1002 * Makefile.in: Update dependencies.
1003
e6bc2e8a
AC
1004 * mips-tdep.h (mips_abi_regsize): Declare.
1005 * mips-tdep.c (mips_abi_regsize): Make non-static.
1006
ec4045ea
AC
1007 * mips-tdep.c (gdb_print_insn_mips): Simplify.
1008 (make_mips16_addr): Delete.
e6bc2e8a 1009
6b16acab
MK
10102004-10-30 Mark Kettenis <kettenis@gnu.org>
1011
1012 * i386-sol2-nat.c: New file.
1013 * Makefile.in (ALLDEPFILES): Add i386-sol2-nat.c and
1014 i386-sol2-tdep.c.
1015 (i386-sol2-nat.o): Update dependencies.
1016 * config/i386/i386sol2.mh (NATDEPFILES): Remove i386v4.o, add
1017 i386-sol2-nat.o.
1018
8b622e6a
AC
10192004-10-30 Andrew Cagney <cagney@gnu.org>
1020
1021 Total breakage identified by Joel Brobecker.
1022 * mips-tdep.c (after_prologue): Delete.
1023 (mips_skip_prologue): Use skip_prologue_using_sal.
1024 (heuristic_proc_desc): Delete, unused.
1025
772cf8be
MK
10262004-10-30 Mark Kettenis <kettenis@gnu.org>
1027
1028 * procfs.c (proc_get_gregs, proc_get_fpregs, proc_set_gregs)
1029 (proc_set_fpregs, procfs_fetch_registers, procfs_store_registers):
1030 Cleanup coding style.
1031
9c8fdbfa
AC
10322004-10-30 Andrew Cagney <cagney@gnu.org>
1033
0fe7e7c8
AC
1034 * mips-tdep.h (mips_pc_is_mips16): Declare.
1035 * mips-tdep.c (mips_pc_is_mips16): Rename pc_is_mips16, make
1036 non-static. Update calls.
1037
1b295c3d
AC
1038 * cli/cli-decode.c (add_setshow_enum_cmd): New function.
1039 * command.h (add_setshow_enum_cmd): Declare.
1040 * mips-tdep.c (_initialize_mips_tdep): Use add_setshow_enum_cmd.
1041
6bcadd06
AC
1042 * mips-tdep.c (_initialize_mips_tdep): Use
1043 add_setshow_zinteger_cmd.
1044
9c8fdbfa
AC
1045 * mips-tdep.c (mips_eabi_extract_return_value)
1046 (mips_o64_extract_return_value, mips_o64_store_return_value)
1047 (return_value_location, mips_eabi_reg_struct_has_addr)
1048 (mips_eabi_use_struct_convention)
1049 (mips_eabi_store_return_value): Delete.
1050 (mips_eabi_store_return_value): New function.
1051 (mips_eabi_return_value): New function.
1052 (mips_gdbarch_init): For O64 and EABI, delete
1053 extract_return_value, store_return_value, use_struct_convention
1054 and reg_struct_has_addr, add return_value.
1055
1d93fe1a
AC
1056 * mips-tdep.c (read_signed_register): Use
1057 regcache_cooked_read_signed.
1058
303d2914
MK
10592004-10-30 Mark Kettenis <kettenis@gnu.org>
1060
1061 * mipsread.c: Cleanup coding style.
1062 (mipscoff_new_init, mipscoff_symfile_init, mipscoff_symfile_read)
1063 (mipscoff_symfile_finish): Remove prototypes.
1064
10652004-10-29 Mark Kettenis <kettenis@gnu.org>
1066
1067 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
1068 (mips_mdebug_frame_cache, mips16_scan_prologue)
1069 (mips32_scan_prologue, mips_stub_frame_cache)
1070 (heuristic_proc_start, heuristic_proc_desc)
1071 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
1072 (mips_n32n64_return_value, mips_o32_push_dummy_call)
1073 (mips_o32_return_value, mips_o64_push_dummy_call)
1074 (mips_step_skips_delay, mips_skip_trampoline_code)
1075 (mips_gdbarch_init): Use MIPS_A0_REGNUM instead of A0_REGNUM,
1076 MIPS_RA_REGNUM instead of RA_REGNUM, MIPS_T9_REGNUM instead of
1077 T9_REGNUM, MIPS_V0_REGNUM instead of V0_REGNUM, MIPS_ZERO_REGNUM
1078 instead of ZERO_REGNUM, MIPS32_SIZE_INSN instead of MIPS_INSTLEN
1079 and MIPS16_INSN_SIZE instead of MIPS16_INSTLEN.
1080 (mips_dump_tdep): Don't print A0_REGNUM, RA_REGNUM,
1081 T9_REGNUM, V0_REGNUM, ZERO_REGNUM, MIPS_INSTLEN and
1082 MIPS16_INSTLEN. Use MIPS_A0_REGNUM instead of A0_REGNUM.
1083 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
1084 (mips_linux_n32n64_sigframe_init): Use MIPS_ZERO_REGNUM instead of
1085 ZERO_REGNUM.
1086 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
1087 (mipsnbsd_cannot_store_register): Use MIPS_ZERO_REGNUM instead of
1088 ZERO_REGNUM.
1089 (mipsnbsd_get_longjmp_target): Use MIPS_A0_REGNUM instead of
1090 A0_REGNUM.
1091 * mipsnbsd-nat.c: Include "mips-tdep.h".
1092 (getregs_supplies): Use MIPS_ZERO_REGNUM instead of ZERO_REGNUM.
1093 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
1094
1c8831c5
AC
10952004-10-29 Andrew Cagney <cagney@gnu.org>
1096
1097 * stack.c (parse_frame_specification_1): New function based on
1098 parse_frame_specification. Add message and selected_frame_p
1099 paramters. Truely always return non-NULL.
1100 (parse_frame_specification): Call parse_frame_specification_1.
1101 (frame_info): Update. Eliminate target_has_stack check.
1102 (select_frame_command): Update.
1103
b04f3ab4
AC
11042004-10-29 Andrew Cagney <cagney@gnu.org>
1105
1106 * frame.h (get_selected_frame): Add message parameter.
1107 * frame.c (get_selected_frame): Add and use message parameter.
1108 * stack.c (current_frame_command, return_command, locals_info)
1109 (catch_info, args_info, up_silently_base, down_silently_base): Use
1110 get_selected_frame with an explicit message.
1111 * thread.c, stack.c, sh-tdep.c, sh64-tdep.c: Update.
1112 * remote-rdp.c, remote-mips.c, remote-e7000.c: Update.
1113 * ocd.c, mi/mi-main.c, mi/mi-cmd-stack.c: Update.
1114 * infrun.c, inflow.c, infcmd.c, frame.c: Update.
1115 * findvar.c, eval.c, corelow.c, bsd-kvm.c: Update.
1116 * breakpoint.c: Update.
1117
11182004-10-29 Andrew Cagney <cagney@gnu.org>
00b25ff3
AC
1119
1120 * trad-frame.c (trad_frame_get_prev_register): Use
1121 frame_unwind_register instead of frame_register_unwind, do not
1122 recurse the register's location.
1123 * xstormy16-tdep.c (xstormy16_frame_prev_register):
1124 * sparc-tdep.c (sparc32_frame_prev_register): Ditto.
1125 * sparc64-tdep.c (sparc64_frame_prev_register): Ditto.
1126 * sh-tdep.c (sh_frame_prev_register): Ditto.
1127 * m68k-tdep.c (m68k_frame_prev_register): Ditto.
1128 * i386-tdep.c (i386_frame_prev_register): Ditto.
1129 * dwarf2-frame.c (dwarf2_frame_prev_register): Ditto.
1130 * amd64-tdep.c (amd64_frame_prev_register): Ditto.
1131
7a952542
MK
11322004-10-28 Mark Kettenis <kettenis@jive.nl>
1133
c18c06be
MK
1134 * proc-events.c: Fix several coding-style issues. Consistently
1135 use #ifdef instead of #if defined().
1136 (proc_prettyfprint_fault, proc_prettyfprint_faultset): Use
1137 ARRAY_SIZE.
1138 (_initialize_proc_events): New prototype.
1139
7a952542
MK
1140 * proc-why.c: Fix several coding-style issues.
1141 (proc_prettyfprint_why): Use ARRAY_SIZE.
1142
fcad0fa4
JB
11432004-10-27 Jim Blandy <jimb@redhat.com>
1144
1145 * remote.c (fetch_register_using_p): Construct 'p' packet in a
1146 manner independent of the host byte order.
1147
c163184f
MK
11482004-10-27 Mark Kettenis <kettenis@gnu.org>
1149
1150 * mips-tdep.c (id_delayed): Remove prototype.
1151
9c46b6f0
MK
11522004-10-26 Mark Kettenis <kettenis@gnu.org>
1153
1154 * mips-tdep.h: Add MIPS_ZERO_REGNUM, MIPS_AT_REGNUM,
1155 MIPS_V0_REGNUM. MIPS_A0_REGNUM, MIPS_T9_REGNUM and MIPS_RA_REGNUM
1156 to enum with register numbers.
1157 (enum mips_insn_size): New enum.
1158
0d0266c6
AC
11592004-10-26 Andrew Cagney <cagney@gnu.org>
1160
e7d6a6d2
AC
1161 * config/mips/tm-linux.h: Delete #undef SKIP_TRAMPOLINE_CODE.
1162 * mips-tdep.c (mips_skip_trampoline_code): Rename mips_skip_stub.
1163 (mips_gdbarch_init): Update.
1164 (mips_dump_tdep): Do not print SKIP_TRAMPOLINE_CODE.
1165
c5115f39
AC
1166 * config/arm/tm-linux.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1167 * config/mips/tm-nbsd.h, config/mips/tm-linux.h: Delete #undef
1168 IN_SOLIB_RETURN_TRAMPOLINE.
1169 * mips-tdep.c (mips_dump_tdep): Do not print
1170 IN_SOLIB_RETURN_TRAMPOLINE.
1171 (mips_in_solib_return_trampoline): Rename mips_in_return_stub.
1172 (mips_gdbarch_init): Update.
1173
0d0266c6
AC
1174 * mips-tdep.h (mips_software_single_step): Move to here ...
1175 * config/mips/tm-mips.h: ... from here.
1176 * config/mips/tm-linux.h (SOFTWARE_SINGLE_STEP_P)
1177 (SOFTWARE_SINGLE_STEP): Delete.
1178 * mips-linux-tdep.c (mips_linux_init_abi): Set software_single_step.
1179
156a53ca
AC
11802004-10-25 Andrew Cagney <cagney@gnu.org>
1181
1182 * NEWS: Add Changes since GDB 6.3 section.
1183
f27cf670
AS
11842004-10-23 Andreas Schwab <schwab@suse.de>
1185
156a53ca
AC
1186 * ada-lang.c (grow_vect): Return the new array instead of
1187 expecting pointer to pointer to avoid violation of aliasing rules.
f27cf670
AS
1188 * ada-lang.h (GROW_VECT): Adapt call to grow_vect.
1189
121d8485
UW
11902004-10-23 Ulrich Weigand <uweigand@de.ibm.com>
1191
1192 * s390-tdep.c (enum pv_boolean): Remove.
1193 (pv_is_array_ref): Remove.
1194 (s390_on_stack): Remove.
1195 (S390_NUM_SPILL_SLOTS): Remove.
1196 (struct s390_prologue_data): Remove members 'spill' and 'back_chain',
1197 add members 'gpr_slot', 'fpr_slot', and 'back_chain_saved_p'.
1198 (s390_store): Track all stores of orginal incoming registers to the
1199 stack constant offsets relative to the CFA, instead of only tracking
1200 stores into specific spill slots.
1201 (s390_load): Likewise.
1202 (s390_analyze_prologue): Adapt to struct s390_prologue_data changes.
1203 (s390_prologue_frame_unwind_cache): Likewise. Only track registers
1204 defined as call-saved by the ABI.
1205 (s390_push_dummy_call): Use bottom of dummy call argument save area
1206 as return value, not the top. Do not store to the called function's
1207 register save area.
1208 (s390_unwind_dummy_id): Adapt accordingly.
1209
0a6ddd08
AC
12102004-10-23 Andrew Cagney <cagney@gnu.org>
1211
1212 * objfiles.h (struct objfile): Rename obj_private to
1213 deprecated_obj_private, sym_private to deprecated_sym_private, and
1214 sym_stab_info to deprecated_sym_stab_info.
1215 * gdb-stabs.h: Update.
1216 * elfread.c: Update.
1217 * dbxread.c: Update.
1218 * coffread.c: Update.
1219 * xcoffread.c: Update.
1220 * symfile.c: Update.
1221 * somread.c: Update.
1222 * nlmread.c: Update.
1223 * mdebugread.c: Update.
1224 * hpread.c: Update.
1225 * coffread.c: Update.
1226
abc08782
MK
12272004-10-23 Mark Kettenis <kettenis@gnu.org>
1228
1229 * mips64obsd-nat.c, mips64obsd-tdep.c: New files.
1230 * configure.host: Add mips64*-*-openbsd*.
1231 * configure.tgt: Add mips64*-*-openbsd*.
1232 * Makefile.in (ALLDEPFILES): Add mips64obsd-nat.o,
1233 mips64obsd-tdep.c.
1234 (mips64obsd-nat.o, mips64obsd-tdep.o): New dependecies.
1235 * config/mips/obsd64.mh, config/mips/obsd64.mt: New files.
1236
fc062ac6
JB
12372004-10-21 Joel Brobecker <brobecker@gnat.com>
1238
1239 * symtab.c (symbol_search_name): Minor reformatting.
1240
5bccb4d1
JB
12412004-10-20 Joel Brobecker <brobecker@gnat.com>
1242
1243 * symtab.h: Fix typo in comment.
1244
a738430d
MK
12452004-10-19 Mark Kettenis <kettenis@gnu.org>
1246
1247 * dwarf2read.c (struct comp_unit_head): Fix coding style.
1248 (dwarf_decode_line_header): Likewise.
1249
f2cb65ca
MC
12502004-10-19 Michael Chastain <mec.gnu@mindspring.com>
1251
1252 * NEWS: GDB works with GCC -feliminate-dwarf2-dups.
1253
09e55376
AC
12542004-10-19 Andrew Cagney <cagney@gnu.org>
1255
1256 GDB 6.3 branch created.
1257 * version.in: Bump to version 6.3.50_2004-10-19-cvs.
1258
bc5f45f8
JB
12592004-10-15 Joel Brobecker <brobecker@gnat.com>
1260
1261 * dwarf2read.c (set_cu_language): Set language to Ada for
1262 DW_LANG_Ada83 and DW_LANG_Ada95.
1263
2941da8c
MC
12642004-10-15 Michael Chastain <mec.gnu@mindspring.com>
1265
1266 From Andreas Schwab <schwab@suse.de>:
1267 * Makefile.in (.y.c, .l.c.): Fix the substitutions for
1268 for xmalloc and xrealloc.
1269
34a17005
AC
12702004-10-15 Andrew Cagney <cagney@gnu.org>
1271
1272 * ada-exp.y, ada-lex.l: Use xmalloc and xrealloc through out.
1273 * inf-ptrace.c: Include "gdb_wait.h" instead of <wait.h>.
1274 * Makefile.in (.y.c, .l.c): Don't replace xmalloc with xxmalloc.
1275 Update dependencies.
1276
714e53ab
PH
12772004-10-15 Paul Hilfinger <Hilfinger@gnat.com>
1278
1279 * ada-lang.c (ada_lookup_symbol): Correct comment.
1280 (ada_evaluate_subexp): Change error message for
1281 OP_FUNCALL case so as not to indicate an internal error.
1282
12832004-10-15 Joel Brobecker <brobecker@gnat.com>
1284
1285 Committed by Paul Hilfinger.
1286 * ada-lang.c (ada_template_to_fixed_record_type_1): Detect bogus
1287 type sizes in XVE/XVU types, and emit a warning when that happens,
1288 instead of rounding up the size of the resulting type.
1289 Some minor reformatting.
1290 (ada_is_aligner_type): Do not consider a type as an aligner type
1291 if there is a corresponding XVS type as well.
1292 (ada_evaluate_subexp): For TERNOP_SLICE, handle cases where we
1293 have several levels of pointer indirection to the array.
1294
12952004-10-15 Jerome Guitton <guitton@gnat.com>
1296
1297 Committed by Paul Hilfinger.
1298 * ada-lang.c (check_size): New function.
1299 (coerce_unspec_val_to_type): call check_size to make sure
1300 that the object size is reasonable.
1301 (ada_evaluate_subexp): in UNOP_IND: Ditto. In TERNOP_SLICE:
1302 Implements the case when we get a reference when we evaluate
1303 the expression of one of the bounds of the slice.
1304 (ada_value_struct_elt): when a packed array field is
1305 a reference, use ada_coerce_ref to dereference it; use
1306 ada_value_ind only if it is a pointer.
1307
29639122
JB
13082004-10-15 Joel Brobecker <brobecker@gnat.com>
1309
1310 * mips-tdep.c (mips32_scan_prologue): Move the implementation up
1311 a bit to avoid the necessity of an advance declaration. Remove
1312 declaration.
1313 (set_reg_offset): Move implemenation up.
1314 (mips16_get_imm): Likewise.
1315 (mips16_scan_prologue): Likewise.
1316 (reset_saved_regs): Likewise.
1317 (mips32_scan_prologue): Likewise.
1318
a65bbe44
JB
13192004-10-14 Joel Brobecker <brobecker@gnat.com>
1320
1321 * mips-tdep.c (mips32_scan_prologue): Add advance declaration.
1322 Remove sp as a parameter, compute it internally instead. Move
1323 prologue scanning limit from heuristic_proc_desc to here.
1324 (mips16_scan_prologue): Likewise.
1325 (mips_insn16_frame_cache): Replace call to heuristic_proc_desc
1326 by call to mips16_scan_prologue.
1327 (mips_insn32_frame_cache): Replace call to heuristic_proc_desc
1328 by call to mips32_scan_prologue.
1329 (heuristic_proc_desc): Remove code that's no longer necessary.
1330 Update calls to mips16_scan_prologue and mips32_scan_prologue.
1331 (mips_skip_prologue): Update calls to mips16_scan_prologue
1332 and mips32_scan_prologue.
1333
1c645fec
JB
13342004-10-14 Joel Brobecker <brobecker@gnat.com>
1335
1336 * mips-tdep.c (mips16_scan_prologue): Merge code from
1337 mips16_skip_prologue. Now return the address of the first
1338 instruction past the function prologue.
1339 (mips16_skip_prologue): Remove, no longer necessary.
1340 (mips_skip_prologue): Replace call to mips16_skip_prologue
1341 by call to mips16_scan_prologue.
1342
98b4dd94
JB
13432004-10-14 Joel Brobecker <brobecker@gnat.com>
1344
1345 * mips-tdep.c (mips32_scan_prologue): Merge code from
1346 mips32_skip_prologue. Now return the address of the first
1347 instruction past the function prologue.
1348 (mips32_skip_prologue): Remove. No longer necessary.
1349 (mips16_skip_prologue): Add parameter end_pc instead of
1350 computing it.
1351 (mips_skip_prologue): Compute the upper limit for the
1352 prologue scanning. Update call to mips16_skip_prologue.
1353 Replace call to mips32_skip_prologue by call to
1354 mips32_scan_prologue.
1355
ad4c72d2
MK
13562004-10-14 Mark Kettenis <kettenis@gnu.org>
1357
dfaf8edb
MK
1358 * hppa-tdep.c (hppa_frame_cache): Add support for OpenBSD and
1359 NetBSD system call stubs that store %rp in the ERP slot of the
1360 stack frame.
1361
3e3a28f1
MK
1362 * source.c: Always define O_BINARY to 0 if not defined already.
1363 (openp): Unconditionally use O_BINARY.
1364
ad4c72d2
MK
1365 * top.c (gdb_readline): Always accept "\r\n" as a line-ending.
1366 * event-top.c (gdb_readline2): Likewise.
1367
52bd1401
OF
13682004-10-14 Orjan Friberg <orjanf@axis.com>
1369
1370 * cris-tdep.c (_initialize_cris_tdep): Re-add call to
1371 deprecated_add_core_fns which was removed by mistake.
1372
e0e25c6c
KB
13732004-10-13 Kevin Buettner <kevinb@redhat.com>
1374
1375 * ia64-linux-nat.c (fill_gregset, fill_fpregset): Replace
1376 references to deprecated_registers[] with equivalent code.
1377
9f335945
KB
13782004-10-13 Kevin Buettner <kevinb@redhat.com>
1379
1380 * rs6000-tdep.c (rs6000_push_dummy_call): Replace references to
1381 ``deprecated_registers'' with equivalent code. Use gdb_assert()
1382 instead of explicit test and print statement.
1383
06c2338d
MK
13842004-10-12 Mark Kettenis <kettenis@gnu.org>
1385
1b9445c2
MK
1386 * sparc-nat.c: Include "inf-ptrace.h".
1387 (sparc_target): New function.
1388 * sparc-nat.h: Update copyright year.
1389 (sparc_target): New prototype.
1390 * sparcnbsd-nat.c: Don't include "gdbcore.h", include "target.h".
1391 (_initialize_sparcnbsd_nat): Construct and add target vector.
1392 * sparc64nbsd-nat.c: Include "target.h".
1393 (_initialize_sparc64nbsd_nat): Construct and add target vector.
1394 * Makefile.in (sparc-nat.o, sparcnbsd-nat.o, sparc64nbsd-nat.o):
1395 Update dependencies.
1396 * config/sparc/nbsd64.mh (NATDEPFILES): Remove infptrace.o and
1397 inftarg.o, add inf-ptrace.o.
1398 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1399 inftarg.o, add inf-ptrace.o and bsd-kvm.o.
1400 (NAT_FILE): Set to nm-bsd.h.
1401 (LOADLIBES): New variable.
1402 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
1403 infarg.o, add inf-ptrace.o.
1404 * config/sparc/nm-nbsdaout.h: Remove file.
1405 * config/sparc/fbsd.mh (NATDEPFILES): Add inf-ptrace.o.
1406 * config/sparc/linux.mh (NATDEPFILES): Add inf-ptrace.o.
1407 * config/sparc/linux64.mh (NATDEPFILES): Add inf-ptrace.o.
1408
06c2338d
MK
1409 * defs.h [!FOPEN_RB]: Include "fopen-bin.h" instead of
1410 "fopen-same.h". Update comment.
1411
3303a276
MK
14122004-10-11 Mark Kettenis <kettenis@gnu.org>
1413
1414 * i386gnu-nat.c: Include "gdb_string.h".
1415 (fetch_fpregs): Use i387_supply_fxsave to fill the floating-point
1416 registers when the floating-point state isn't initialized.
1417 * Makefile.in (i386gnu-nat.o): Update dependencies.
1418
04c663e3
DA
14192004-10-11 David Anderson <davea@sgi.com>
1420
1421 * regcache.c (regcache_raw_read): Comment was missing "to".
1422 Extraneous ' removed.
1423 * gdb_thread_db.h (struct td_thrinfo): ti_lid field
1424 comment now describes use.
1425
a5f6c8f5
OF
14262004-10-11 Orjan Friberg <orjanf@axis.com>
1427
1428 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start)
1429 (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
1430 (cris_sigtramp_frame_this_id, cris_sigtramp_frame_prev_register)
1431 (cris_sigtramp_frame_sniffer): New functions.
1432 (cris_gdbarch_init): Hook in signal trampoline unwinder.
1433 (cris_dwarf2_reg_to_regnum, cris_dwarf2_frame_init_reg): New functions.
1434 (cris_gdbarch_init): Hook in Dwarf-2 unwinder.
1435 (struct gdbarch_tdep, set_cris_dwarf2_cfi, cris_dump_tdep)
1436 (cris_gdbarch_init, _initialize_cris_tdep): Add CRIS Dwarf-2 CFI usage
1437 command.
1438 (cris_version_update): Remove, replace with ...
1439 (set_cris_version): New function.
1440 (struct gdbarch_tdep, cris_mode, cris_mode_update)
1441 (cris_cannot_store_register, cris_dump_tdep, cris_gdbarch_init)
1442 (_initialize_cris_tdep): Remove CRIS mode command.
1443 (cris_fpless_backtrace, _initialize_cris_tdep): Remove
1444 cris-fpless-backtrace command.
1445 (cris_scan_prologue): Fix prologue scanning limit.
1446 (cris_register_type): Update to reflect actual registers.
1447 (cris_register_bytes_ok) Remove.
1448 (cris_gdbarch_init): Remove support for CRIS v8 and v9.
1449 Remove set_gdbarch_deprecated_register_size,
1450 set_gdbarch_deprecated_register_byte, set_gdbarch_register_bytes_ok.
1451
77109804
AC
14522004-10-10 Andrew Cagney <cagney@gnu.org>
1453
1454 * ada-lang.c (lim_warning): Add ATTR_FORMAT prototype and FIXME
1455 comment.
1456
25652d4f
JB
14572004-10-10 Joel Brobecker <brobecker@gnat.com>
1458
1459 * mips-tdep.c (mips16_scan_prologue): Remove redundant code.
1460
1e05a7bf
JB
14612004-10-10 Joel Brobecker <brobecker@gnat.com>
1462
1463 * mips-tdep.c (mips16_scan_prologue): Renames
1464 mips16_heuristic_proc_desc. Update comment.
1465 (mips32_scan_prologue): Renames mips32_heuristic_proc_desc.
1466 (heuristic_proc_desc): Update calls to the 2 functions above.
1467
c68a4142
JB
14682004-10-10 Joel Brobecker <brobecker@gnat.com>
1469
1470 * mips-tdep.c (mips_insn16_frame_cache): Remove unused variables.
1471 Update comments. Also immediately return empty cache when the start
1472 address of our function could not be found.
1473 (mips_insn32_frame_cache): Likewise.
1474
0fce0821
JB
14752004-10-10 Joel Brobecker <brobecker@gnat.com>
1476
1477 * mips-tdep.c (mips16_decode_reg_save): Delete, no longer used.
1478 (mips_insn16_frame_cache): Pass frame cache in call to
1479 heuristic_proc_desc. Move some code to mips16_heuristic_proc_desc.
1480 Remove code that became redundant as a consequence.
1481 (mips32_heuristic_proc_desc): No longer compute a fake
1482 procedure descriptor. Compute the full frame cache instead.
1483 Some minor comment reformatting.
1484
b672553e
JB
14852004-10-10 Jim Blandy <jimb@redhat.com>
1486
1487 * MAINTAINERS (generic symtabs, dwarf readers, elf reader, stabs
1488 reader, tracing bytecode stuff): Remove self.
1489
9cc52bde
MK
14902004-10-10 Mark Kettenis <kettenis@gnu.org>
1491
cc9784b6
MK
1492 * sparc64-linux-tdep.c: Update copyright year. Don't include
1493 "solib-svr4.h".
1494 (sparc64_linux_svr4_fetch_link_map_offsets): Remove function.
1495 (sparc64_linux_init_abi): Don't set solib_svr4_link_map_offsets.
1496 * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
1497
ee8aef23
MK
1498 * sparc-linux-tdep.c: Update copyright year.
1499 (sparc_linux_sigtramp_start): Change first argument from CORE_ADDR
1500 to struct frame_info *. Use safe_frame_unwind_memory instead of
1501 deprecated_read_memory_nobpt.
1502 (sparc32_linux_sigtramp_start, sparc32_linux_rt_sigtramp_start):
1503 Change argumen from CORE_ADDR to struct frame_info *. Adjust for
1504 changed signature of sparc_linux_sigtramp_start.
1505 (sparc32_linux_pc_in_sigtramp): Remove function.
1506 (sparc32_linux_sigtramp_p): New function.
1507 (sparc32_linux_sigtramp_frame_sniffer): Use
1508 sparc32_linux_sigtramp_p instead of sparc32_linux_pc_in_sigtramp.
1509
bc73f8cc
MK
1510 * sparc-linux-tdep.c (sparc32_linux_svr4_fetch_link_map_offsets):
1511 Remove function.
1512 (sparc32_linux_init_abi): Don't set solib_svr4_link_map_offsets.
1513
a2249542
MK
1514 * ada-lang.c (lim_warning): Re-implement as a varargs function.
1515 (decode_packed_array_type, value_subscript_packed)
1516 (ada_evaluate_subexp, to_fixed_range_type): Remove redundant
1517 argument in call to lim_warning.
1518
9cc52bde
MK
1519 * configure.in: Really disable the TUI if an enhanced curses
1520 library isn't found.
1521 * configure: Regenerate.
1522
151fc45b
MK
15232004-10-09 Mark Kettenis <kettenis@gnu.org>
1524
1525 * config/i386/nbsdaout.mh (NAT_FILE): Set to solib.h.
1526 * config/i386/nbsdelf.mh (NAT_FILE): Set to solib.h.
1527 * config/i386/nm-nbsdaout.h: Remove file.
1528 * config/i386/nm-fbsd.h (link_object, lo_name, lo_library)
1529 (lo_unused, lo_major, lo_minor, lo_next, link_map, lm_addr)
1530 (lm_name, lm_next, lm_lop, lm_lob, lm_rwt, lm_ld, lm_lpd)
1531 (link_dynamic_2, ld_loaded, ld_need, ld_rules, ld_got, ld_plt)
1532 (ld_rel, ld_hash, ld_stab, ld_stab_hash, ld_buckets, ld_symbols)
1533 (ld_symb_size, ld_text, ld_plt_sz, rtc_symb, rtc_sp, rtc_next)
1534 (ld_debug, ldd_version, ldd_in_debugger, ldd_sym_loaded)
1535 (ldd_bp_addr, ldd_bp_inst, ldd_cp, link_dynamic, ld_version)
1536 (ldd, ld_un, ld_2): Remove defines.
1537 * config/i386/nm-obsd.h: Likewise.
1538
375c0479
PH
15392004-10-09 Paul Hilfinger <hilfingr@nile.gnat.com>
1540
1541 * ada-lex.l: Remove useless rule whose right-context clause
1542 causes unreferenced static function warning for yyrealloc.
1543 (ada_flex_use): Remove the artificial reference to yyrealloc.
1544
c8e73a31
AC
15452004-10-08 Andrew Cagney <cagney@gnu.org>
1546
1547 * target.h (struct target_ops): Rename to_xfer_memory to
1548 deprecated_xfer_memory.
1549 * target.c: Update.
1550 (deprecated_debug_xfer_memory): Rename debug_to_xfer_memory.
1551 * wince.c: Update.
1552 * win32-nat.c: Update.
1553 * v850ice.c: Update.
1554 * uw-thread.c: Update.
1555 * thread-db.c: Update.
1556 * sol-thread.c: Update.
1557 * remote.c: Update.
1558 * remote-vx.c: Update.
1559 * remote-st.c: Update.
1560 * remote-sim.c: Update.
1561 * remote-sds.c: Update.
1562 * remote-rdp.c: Update.
1563 * remote-rdi.c: Update.
1564 * remote-mips.c: Update.
1565 * remote-m32r-sdi.c: Update.
1566 * remote-e7000.c: Update.
1567 * procfs.c: Update.
1568 * ppc-bdm.c: Update.
1569 * nto-procfs.c: Update.
1570 * monitor.c: Update.
1571 * linux-nat.c: Update.
1572 * inftarg.c: Update.
1573 * hpux-thread.c: Update.
1574 * go32-nat.c: Update.
1575 * gnu-nat.c: Update.
1576 * exec.c: Update.
1577 * corelow.c: Update.
1578 * bsd-kvm.c: Update.
1579 * aix-thread.c: Update.
1580
aa869812
AC
15812004-10-08 Andrew Cagney <cagney@gnu.org>
1582
1583 * target.c (debug_target): Move to near start of file.
1584 (target_stopped_data_address_p): Re-org logic, add casts.
1585
8dcef9cf
MK
15862004-10-02 Mark Kettenis <kettenis@gnu.org>
1587
1588 * solib-sunos.c [HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS] (link_map)
1589 (lm_addr, lm_name, lm_next, link_dynamic_2, ld_loaded, rtc_symb)
1590 (rtc_sp, rtc_next, ld_debug, ldd_in_debugger, ldd_bp_addr)
1591 (ldd_bp_inst, ldd_cp, link_dynamic, ld_version, ldd, ld_un, ld_2):
1592 New defines.
1593
4aa7a7f5
JJ
15942004-10-08 Jeff Johnston <jjohnstn@redhat.com>
1595
1596 * target.h (to_stopped_data_address): Change prototype to
1597 take a CORE_ADDR pointer and return an int.
1598 * target.c (update_current_target): Change to_stopped_data_address
1599 to match new prototype.
1600 (debug_to_stopped_data_address): Change appropriately.
1601 * breakpoint.c (bpstat_stop_status): Change call to
1602 target_stopped_data_address to use new prototype.
1603 * frv-tdep.c (frv_have_stopped_data_address): New function.
1604 (frv_stopped_data_address): Change to new prototype and
1605 functionality.
1606 * ia64-linux-nat.c (ia64_stopped_data_address): Change to new
1607 prototype and functionality.
1608 (ia64_stopped_by_watchpoint): New function.
1609 * i386-nat.c (i386_stopped_data_address): Change to new
1610 prototype and functionality.
1611 (i386_stopped_by_watchpoint): New function.
1612 * remote.c (remote_stopped_data_address): Change to new prototype
1613 and functionality.
1614 * remote-m32r-sdi.c (m32r_stopped_data_address): Ditto.
1615 * config/frv/tm-frv.h (frv_stopped_data_address): Change prototype.
1616 (STOPPED_BY_WATCHPOINT): Change to use frv_have_stopped_data_address.
1617 * config/i386/nm-i386.h (STOPPED_BY_WATCHPOINT): Change to use
1618 new i386_stopped_by_watchpoint function.
1619 (i386_stopped_by_watchpoint): New prototype.
1620 (i386_stoppped_data_address): Change to new prototype.
1621 * config/ia64/nm-linux.h (STOPPED_BY_WATCHPOINT): Change to use
1622 new ia64_stopped_by_watchpoint function.
1623 (ia64_stopped_by_watchpoint): New prototype.
1624 (ia64_stopped_data_address): Ditto.
1625
61ee279c
PH
16262004-10-08 Paul Hilfinger <Hilfinger@gnat.com>
1627
1628 * ada-typeprint.c (ada_print_type): Use int_string for printing
1629 modulus of modular type.
1630 * ada-lang.h (ada_modulus): Change return type to unsigned.
1631 * ada-lang.c (ada_language_arch_info): Correct type of
1632 string_char_type.
1633 (ada_modulus): Return unsigned result.
1634 (ada_lookup_symbol): Remove user disambiguation and modify comment
1635 accordingly.
1636
16372004-10-08 Eric Botcazou <ebotcazou@act-europe.fr>
1638
1639 Committed by Paul Hilfinger.
1640 * ada-lang.c (decode_packed_array): On big-endian targets,
1641 left-justify the value if it comes with a modular type.
1642
16432004-10-08 Joel Brobecker <brobecker@gnat.com>
1644
1645 Committed by Paul Hilfinger.
1646 * ada-lang.c (template_to_static_fixed_type): Fix a small typo.
1647 (is_name_suffix): Add support for "___JM" suffixes.
1648 (ada_check_typedef): Renames ada_completed_type.
1649 Update all users of CHECK_TYPEDEF, check_typedef, and
1650 ada_complete_type to call ada_check_typedef.
1651 * ada-typeprint.c: Likewise.
1652 * ada-valprint.c: Likewise.
1653
b6c25a56
CV
16542004-10-08 Corinna Vinschen <vinschen@redhat.com>
1655
1656 * infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
1657
83ca6a46
NR
16582004-10-08 Nick Roberts <nickrob@snap.net.nz>
1659
1660 * MAINTAINERS: Update e-mail address.
1661
1fd8cd20
DJ
16622004-10-07 Daniel Jacobowitz <dan@debian.org>
1663
1664 From Maciej W. Rozycki <macro@mips.com>:
1665 * mips-tdep.c (mips32_next_pc): Check the register's contents,
1666 not its number for BLEZ/BLEZL and BGTZ/BGTZL.
1667
cea15572
KI
16682004-10-07 Kei Sakamoto <sakamoto.kei@renesas.com>
1669
1670 * m32r-tdep.c (decode_prologue): Support functions written
1671 in assembler language. Recognize trap instructions as the
1672 end of prologue.
1673 (m32r_frame_unwind_cache): Ditto.
1674 (m32r_skip_prologue): Extend search limit. Quit analyzing
1675 prologue if pc's location is not readable.
1676
23485554
PH
16772004-10-06 Paul N. Hilfinger <Hilfinger@gnat.com>
1678
1679 * Makefile.in (.l.c): Do conversions of names of alloc and free
1680 functions that are done for .y.c files, plus special one
1681 for yy_flex_realloc. Also, correct missing-file tests here.
1682 * ada-lex.l (malloc, free): Remove macros.
1683 (resize_tempbuf): Use "realloc"; rely on sed changes to convert to
1684 xrealloc.
1685 (ada_flex_use): Dummy definition to remove warnings about unused
1686 functions.
1687 * ada-exp.y (dummy_string_to_ada_operator): Temporary definition
1688 to suppress warning.
1689
c0409442
CV
16902004-10-06 Corinna Vinschen <vinschen@redhat.com>
1691
1692 * sh-tdep.c (sh_return_value_nofpu): New function, implementing
1693 RETURN_VALUE.
1694 (sh_return_value_fpu): Ditto for CPUs with FPU.
1695 (sh_gdbarch_init): Remove STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
1696 RETURN_VALUE_ON_STACK and USE_STRUCT_CONVENTION throughout.
1697 Install sh_return_value_nofpu resp. sh_return_value_fpu as
1698 RETURN_VALUE functions.
1699
9bed62d7
CV
17002004-10-06 Corinna Vinschen <vinschen@redhat.com>
1701
1702 * sh-tdep.c (sh_pseudo_register_read): Add PSEUDO_BANK_REGNUM handling.
1703 (sh_pseudo_register_write): Ditto.
1704
03131d99
CV
17052004-10-06 Corinna Vinschen <vinschen@redhat.com>
1706
1707 * sh-tdep.c (IS_MACL_STS): New define.
1708 (IS_MOVI20): Ditto.
1709 (IS_MACL_LDS): Ditto.
1710 (sh_analyze_prologue): Recognize STS.L MACL,@-r15 and MOVI20
1711 instructions in prologue.
1712 (sh_in_function_epilogue_p): Recognize LDS.L @r15+,MACL and MOVI20
1713 instructions in epilogue.
1714
da962468
CV
17152004-10-06 Corinna Vinschen <vinschen@redhat.com>
1716
1717 * sh-tdep.c (SH_NUM_REGS): Define as 67.
1718 (sh_sh_register_name): Add eight empty register names.
1719 (sh_sh3_register_name): Ditto.
1720 (sh_sh3e_register_name): Ditto.
1721 (sh_sh2e_register_name): Ditto.
1722 (sh_sh2a_register_name): New function, defining SH2A register set.
1723 (sh_sh2a_nofpu_register_name): New function, defining SH2A register set
1724 in nofpu case.
1725 (sh_sh_dsp_register_name): Add eight empty register names.
1726 (sh_sh3_dsp_register_name): Ditto.
1727 (sh_sh4_register_name): Ditto.
1728 (sh_sh4_nofpu_register_name): Ditto.
1729 (sh_sh4al_dsp_register_name): Ditto.
1730 (sh2a_show_regs): New function.
1731 (sh2a_nofpu_show_regs): New function.
1732 (sh_sh2a_register_type): New function.
1733 (do_bank_register_info): New function.
1734 (sh_print_pseudo_register): Call do_bank_register_info.
1735 Call sh_print_pseudo_register for valid "bank" register.
1736 (sh_sh2a_register_sim_regno): New function.
1737 (sh_gdbarch_init): Add bfd_mach_sh2a and bfd_mach_sh2a_nofpu handling.
1738 Increment pseudo register count by one for all sh variants with
1739 pseudo registers to accomodate pseudo bank register.
1740 * sh-tdep.h: Add register numbers for R0_BANK0_REGNUM, MACHB_REGNUM,
1741 IVNB_REGNUM, PRB_REGNUM, GBRB_REGNUM, MACLB_REGNUM, BANK_REGNUM,
1742 IBCR_REGNUM, IBNR_REGNUM, TBR_REGNUM and PSEUDO_BANK_REGNUM.
1743 Increment pseudo register numbers.
1744
1326e61b
CV
17452004-10-06 Corinna Vinschen <vinschen@redhat.com>
1746
1747 * dwarf2read.c (read_subroutine_type): Call make_function_type
1748 instead of lookup_function_type.
1749
146c42e3
JB
17502004-10-05 Jim Blandy <jimb@redhat.com>
1751
1752 * linux-nat.c (_initialize_linux_nat): Rename child_ops.
1753 (Previous change missed some uses.)
1754
1df84f13
AC
17552004-10-05 Andrew Cagney <cagney@gnu.org>
1756
1757 * target.h (deprecated_child_ops): Rename child_ops.
1758 * wince.c: Update copyright. Rename child_ops.
1759 * win32-nat.c: Rename child_ops.
1760 * target.c: Rename child_ops.
1761 * rs6000-nat.c: Rename child_ops.
1762 * linux-nat.c: Rename child_ops.
1763 * infttrace.c: Rename child_ops.
1764 * inftarg.c: Rename child_ops.
1765 * infptrace.c: Rename child_ops.
1766 * hppah-nat.c: Update copyright. Rename child_ops.
1767 * hpux-thread.c: Update copyright. Rename child_ops.
1768
21e3b9b9
DJ
17692004-10-05 Daniel Jacobowitz <dan@debian.org>
1770
1771 * remote.c (remote_xfer_partial): Handle TARGET_OBJECT_MEMORY.
1772
de83afe7
AC
17732004-10-05 Andrew Cagney <cagney@gnu.org>
1774
1775 * version.in: Bump to version 6.2.50_YYYY-MM-DD-cvs.
1776
10b3939b
DJ
17772004-10-05 Daniel Jacobowitz <dan@debian.org>
1778
1779 * dwarf2read.c (REF_HASH_SIZE): Move earlier.
1780 (die_ref_table): Remove.
1781 (struct dwarf2_cu): Add DIES, DEPENDENCIES, and DIE_REF_TABLE.
1782 (struct dwarf2_per_cu_data): Add PSYMTAB. Add a comment describing
1783 the usage of this type.
1784 (struct dwarf2_per_objfile): Update comment for ALL_COMP_UNITS.
1785 (struct dwarf2_pinfo, PST_PRIVATE, DWARF_INFO_OFFSET): Remove.
1786 (struct dwarf2_queue_item, dwarf2_queue, dwarf2_queue_tail): New.
1787 (dwarf2_create_include_psymtab): Update comment.
1788 (find_partial_die): Remove third argument. Remove unreachable call
1789 to error ().
1790 (dwarf2_find_containing_comp_unit): Update comments. Change one
1791 assertion to an error. Remove an unreachable error.
1792 (dwarf2_find_comp_unit): Update comments.
1793 (type_at_offset): Remove dead code.
1794 (make_cleanup_free_die_list, dwarf2_empty_hash_tables): Remove.
1795 (store_in_ref_table): Add CU argument.
1796 (follow_die_ref): Take DIE, attribute, and CU arguments. Handle
1797 inter-compilation-unit references.
1798 (load_full_comp_unit, process_full_comp_unit): New functions, based
1799 on psymtab_to_symtab_1.
1800 (psymtab_to_symtab_1): Use them.
1801 (dwarf2_add_dependence): New function.
1802 (dwarf2_build_psymtabs_hard): Set the psymtab in per_cu. Always create
1803 a per_cu structure, and save it in READ_PSYMTAB_PRIVATE.
1804 (partial_die_parent_scope, guess_structure_name): Update for changes
1805 to find_partial_die.
1806 (dwarf2_psymtab_to_symtab): Initialize dwarf2_per_objfile here.
1807 (queue_comp_unit, process_queue, dwarf2_release_queue): New.
1808 (read_comp_unit): Don't call dwarf2_empty_hash_tables.
1809 (read_die_and_children): Update call to store_in_ref_table.
1810 (do_free_die_list_cleanup): Remove.
1811 (fixup_partial_die): Update for changes to find_partial_die.
1812 (read_full_die): Handle queueing absolute references.
1813 (read_attribute_value): Use DW_ADDR for all DW_FORM_ref* forms.
1814 (dwarf2_attr, die_specification, die_type)
1815 (die_containing_type, dwarf2_extension): Update calls to
1816 follow_die_ref.
1817 (dump_die): Update DW_FORM_ref* handling.
1818 (dwarf2_get_ref_die_offset): Likewise.
1819 (free_one_comp_unit): Release the dies list.
1820 (dwarf2_mark_helper): New function.
1821 (dwarf2_mark): Use it.
1822
998bdd68
MK
18232004-10-05 Mark Kettenis <kettenis@jive.nl>
1824
1825 * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
1826 when writing to memory.
1827
14588880
KI
18282004-10-05 Kei Sakamoto <sakamoto.kei@renesas.com>
1829
1830 * m32r-tdep.c (m32r_use_struct_convention): Delete function.
1831 (m32r_extract_struct_value_address): Delete function.
1832 (m32r_return_value): New function.
1833 (m32r_gdbarch_init): Instead of store_return_value,
1834 extract_return_value, deprecated_extract_struct_value_address
1835 and deprecated_use_struct_convention, set return_value.
1836
dd5e6932
DJ
18372004-10-03 Daniel Jacobowitz <dan@debian.org>
1838
1839 * dwarf2read.c (read_subrange_type): Add comment for variable
1840 sized arrays.
1841
7dc1ef8d
PH
18422004-10-03 Paul Hilfinger <hilfingr@nile.gnat.com>
1843
1844 * Makefile.in (.l.c): Modify rule for compatibility with recent
1845 versions of flex, and remove most command-line options.
1846 * ada-lex.l: Add %options line in place of -I -i and -s command-line
1847 options.
1848
1f8173e6
PH
18492004-10-02 Paul N. Hilfinger <Hilfinger@gnat.com>
1850
1851 Turn on initial Ada support (mainly expression evaluation).
1852
1853 * Makefile.in (SFILES): Remove ada-tasks.c.
1854 (HFILES_NO_SRCDIR): Add ada-lang.h.
1855 (COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
1856 (YYOBJ): Add ada-exp.o.
1857 (rule .l.c): Generalize to not mention ada.
1858 * symtab.c: Include ada-lang.h.
1859 (symbol_natural_name, symbol_demangled_name)
1860 (symbol_search_name): Add Ada case.
1861
cb85a953
AC
18622004-10-01 Andrew Cagney <cagney@gnu.org>
1863
3f3db248
AC
1864 * Makefile.in (COMMON_OBS): Add inf-child.o.
1865 * config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
1866 * config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
1867 * config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
1868 * config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
1869 * config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
1870 * config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
1871 * config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
1872 * config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
1873 * config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
1874 * config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
1875 * config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
1876 * config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
1877 * config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
1878
cb85a953
AC
1879 * target.c (xfer_using_stratum): Change return type to LONGEST.
1880 On each iteration offset, readbuf and writebuf.
1881 * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
1882 partial_length, and read/modify/write predicate, update comments.
1883 Pass buffer.word to ptrace write.
1884
963a6417
PH
18852004-10-01 Paul N. Hilfinger <Hilfinger@gnat.com>
1886
1887 * symfile.c (init_filename_language_table): Add extensions for
1888 Ada.
1889 * defs.h (enum language): Add language_ada.
1890 * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
1891 * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
1892 (add_symbols_from_enclosing_procs): Make a no-op for now.
1893 (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
1894 (extended_canonical_line_spec, find_sal_from_funcs_and_line)
1895 (find_line_in_linetable, find_next_line_in_linetable)
1896 (read_all_symtabs, is_plausible_func_for_line)
1897 (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
1898 (is_runtime_sym_defined, check_size): Remove declaration.
1899 (function_name_from_pc, ada_translate_error_message)
1900 (ada_lookup_minimal_symbol): Remove definition.
1901 (ada_add_block_symbols): Remove useless label.
1902 * ada-lang.h (ada_maybe_exception_partial_symbol): Remove
1903 useless declaration.
1904 (ada_is_exception_sym): Likewise.
1905
9b32d526
KI
19062004-09-30 Kei Sakamoto <sakamoto.kei@renesas.com>
1907
1908 Add m32r-linux support.
1909 * configure.tgt: Add m32r*-*-linux*.
1910 * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
1911 and m32r-linux-tdep.c.
1912 (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
1913 * m32r-tdep.c: Move some definitions to m32r-tdep.h.
1914 * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
1915 m32r-linux-tdep.c.
1916 * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
1917 config/m32r/linux.mh, config/m32r/linux.mt,
1918 config/m32r/nm-linux.h: New files.
1919
2de118d3
JB
19202004-09-30 Joel Brobecker <brobecker@gnat.com>
1921
1922 * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
1923 (mips32_fetch_instruction): Remove, unused.
1924
a9fe69d1
JB
19252004-09-30 Joel Brobecker <brobecker@gnat.com>
1926
1927 * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
1928 conditions that will always be true.
1929
bc8ffc12
MK
19302004-09-30 Mark Kettenis <kettenis@gnu.org>
1931
ba0cd111
MK
1932 * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
1933 (vaxbsd_fetch_inferior_registers): Rename from
1934 fetch_inferior_registers. Make static.
1935 (vaxbsd_store_inferior_registers): Rename from
1936 store_inferior_registers. Make static.
1937 (_initialize_vaxbsd_nat): Construct and add target vector.
1938 * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1939 inftarg.o. Add inf-child.o and inf-ptrace.o.
1940 * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
1941 inftarg.o. Add inf-child.o and inf-ptrace.o.
1942 (NAT_FILE): Remove.
1943 * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
1944 inftarg.o. Add inf-child.o and inf-ptrace.o.
1945 (NAT_FILE): Remove.
1946 * Makefile.in (vaxbsd-nat.o): Update dependencies.
1947
bc8ffc12
MK
1948 * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
1949 (m88kbsd_fetch_inferior_registers): Rename from
1950 fetch_inferior_registers. Make static.
1951 (m88kbsd_store_inferior_registers): Rename from
1952 store_inferior_registers. Make static.
1953 (_initialize_m88kbsd_nat): New prototype and function.
1954 * config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
1955 inftarg.o. Add inf-child.o and inf-ptrace.o.
1956 (NAT_FILE): Remove.
1957 * Makefile.in (m88kbsd-nat.o): Update dependencies.
1958
27394598
AC
19592004-09-30 Andrew Cagney <cagney@gnu.org>
1960
1961 * target.c (target_xfer_partial): New function.
1962 (target_read_memory_partial, target_write_memory_partial)
1963 (default_xfer_partial, target_read_partial, target_write_partial)
1964 (xfer_using_stratum): Use.
1965 (debug_to_xfer_partial): Delete function.
1966 (setup_target_debug): Do not override to_xfer_partial.
1967
74a4fe32
MK
19682004-09-30 Mark Kettenis <kettenis@chello.nl>
1969
1970 * fork-child.c: Update copyright year. Fix coding style.
1971
982526a1
MK
19722004-09-29 Mark Kettenis <kettenis@gnu.org>
1973
1974 * defs.h (msavestring, mstrsave): Remove prototypes.
1975 * utils.c (msavestring, mstrsave): Remove functions.
1976 * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
1977 * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
1978 of mstrsave.
1979 * source.c (find_and_open_source): Use xstrdup instead of
1980 mstrsave.
1981
b8eb5af0
AC
19822004-09-30 Andrew Cagney <cagney@gnu.org>
1983
0779438d
AC
1984 * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
1985 (inf_ptrace_xfer_memory): Delete.
1986 * target.c (target_xfer_partial_p, xfer_using_stratum): New.
1987 (target_read_memory, target_write_memory): Use xfer_using_stratum
1988 when target_xfer_partial_p.
1989 (debug_target): Move to start of file.
1990 (target_read_memory_partial, target_write_memory_partial): Use
1991 to_xfer_partial when target_xfer_partial_p.
1992
f929a579
AC
1993 * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
1994 inf_ptrace_xfer_memory with equivalent code.
1995 * inftarg.c (child_xfer_partial): When performing a write, pass
1996 writebuf to child_xfer_memory.
1997
b8eb5af0
AC
1998 * target.c (target_read_string): Use target_read_memory instead of
1999 target_xfer_memory.
2000
ee21b650
AC
20012004-09-29 Andrew Cagney <cagney@gnu.org>
2002
d3e05d0d
AC
2003 * infptrace.c (kill_inferior): Fix typo, in previous inline. Pass
2004 the address of status.
2005
ee21b650
AC
2006 * infptrace.c (ptrace_wait): Mention problem with HPUX.
2007 (kill_inferior): Inline ptrace_wait call.
2008 * linux-nat.c (kill_inferior): Inline ptrace_wait call.
2009 * inftarg.c (child_wait): Inline ptrace_wait call.
2010
a182eed6
AC
2011 * target.h (struct target_ops): Delete field to_post_wait.
2012 (target_post_wait): Delete macro.
2013 (child_post_wait): Delete declaration.
2014 * target.c (update_current_target, update_current_target)
2015 (debug_to_post_wait, setup_target_debug): Delete functions and
2016 references.
2017 * infttrace.c (ptrace_wait): Delete call to target_post_wait.
2018 * inftarg.c (child_post_wait): Delete.
2019 (init_child_ops): Do not set to_post_wait.
2020 * infptrace.c (ptrace_wait): Delete call to target_post_wait.
2021 * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
2022 * inf-child.c (inf_child_post_wait): Delete.
2023 (inf_child_target): Do not set to_post_wait.
2024 * inf-ptrace.c (inf_ptrace_post_wait): Delete.
2025 (inf_ptrace_target): Do not set to_post_wait.
2026
ba0c540b
AC
2027 * wince.c (child_ops): Delete.
2028 * win32-nat.c (child_ops): Delete.
2029
81977402
AC
2030 * inftarg.c (inftarg_set_find_memory_regions)
2031 (inftarg_set_make_corefile_notes): Delete functions.
2032 (_initialize_linux_nat): Inline calls.
2033
5ac10fd1
AC
2034 * target.h (child_ops): Declare.
2035 * inftarg.c (child_ops): Move from here ...
2036 * target.c (child_ops): ... to here.
2037 * wince.c (child_ops): Delete extern declaration.
2038 * win32-nat.c (child_ops): Delete extern declaration.
2039 * linux-nat.c (child_ops): Delete extern declaration.
2040 * hpux-thread.c (child_ops): Delete extern declaration.
2041
663408c2 20422004-09-28 Mark Kettenis <kettenis@gnu.org>
890c8f4d
MK
2043
2044 * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
2045
0dad8a66
MK
20462004-09-28 Mark Kettenis <kettenis@gnu.org>
2047
2048 * configure.in: Only set host_makefile_frag when building a native
2049 debugger.
2050 * configure: Regenerate.
e8d74ed3
MK
2051
2052 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
2053 for OpenBSD ELF.
2054
dba24537
AC
20552004-09-28 Andrew Cagney <cagney@gnu.org>
2056
e979516b
AC
2057 Problem identified by Paul Hilfinger.
2058 * Makefile.in (ada_lex_c): Define.
2059 (ada-lex.o): Delete rule.
2060
dba24537
AC
2061 * linux-proc.c: Delete file.
2062 * Makefile.in: Update.
2063 * config/sparc/linux64.mh (NATDEPFILES):
2064 * config/sparc/linux.mh (NATDEPFILES): Update.
2065 * config/s390/s390.mh (NATDEPFILES): Update.
2066 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
2067 * config/powerpc/linux.mh (NATDEPFILES): Update.
2068 * config/pa/linux.mh (NATDEPFILES): Update.
2069 * config/mips/linux.mh (NATDEPFILES): Update.
2070 * config/m68k/linux.mh (NATDEPFILES): Update.
2071 * config/ia64/linux.mh (NATDEPFILES): Update.
2072 * config/i386/linux64.mh (NATDEPFILES): Update.
2073 * config/i386/linux.mh (NATDEPFILES): Update.
2074 * config/arm/linux.mh (NATDEPFILES): Update.
2075 * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
2076 * linux-nat.c: Update copyright. Include <sys/param.h>,
2077 <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
2078 "gdbthread.h", "gdb_stat.h", <fcntl.h>.
2079 (O_LARGEFILE): Possibly define.
2080 (_initialize_linux_nat, linux_proc_pending_signals)
2081 (add_line_to_sigset, linux_proc_xfer_memory)
2082 (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
2083 (linux_nat_do_registers, linux_nat_corefile_thread_callback)
2084 (struct linux_corefile_thread_data)
2085 (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
2086 (child_pid_to_exec_file): Insert code previously in linux-proc.c.
2087
d6b0e80f
AC
20882004-09-16 Andrew Cagney <cagney@gnu.org>
2089
2090 * lin-lwp.c: Delete file.
2091 * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
2092 <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
2093 (status_to_str, init_lwp_list, add_lwp, delete_lwp)
2094 (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
2095 (linux_nat_attach, detach_callback, linux_nat_detach)
2096 (resume_callback, resume_clear_callback, linux_nat_resume)
2097 (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
2098 (stop_wait_callback, linux_nat_has_pending, flush_callback)
2099 (status_callback, running_callback, count_events_callback)
2100 (select_singlestep_lwp_callback, select_event_lwp_callback)
2101 (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
2102 (child_wait, stop_and_resume_callback, linux_nat_wait)
2103 (kill_callback, kill_wait_callback, linux_nat_kill)
2104 (linux_nat_create_inferior, linux_nat_mourn_inferior)
2105 (linux_nat_xfer_memory, linux_nat_thread_alive)
2106 (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
2107 (_initialize_linux_nat): New functions.
2108 * Makefile.in: Update all dependencies.
2109 * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
2110 * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2111 * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
2112 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
2113 * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2114 * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2115 * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2116 * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2117 * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2118 * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
2119 * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2120 * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2121 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
2122
5a174d79
MK
21232004-09-27 Mark Kettenis <kettenis@gnu.org>
2124
2f604c28
MK
2125 * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
2126 config/i386/obsd64.mh (NAT_FILE): Remove variable.
2127
5a174d79
MK
2128 * configure.in: Don't comment out NATDEPFILES in the generated
2129 Makefile if NAT_FILE is unset.
2130 * configure: Regenerate.
2131
b2ed1746
AC
21322004-09-27 Andrew Cagney <cagney@gnu.org>
2133
44cbf7b5
AC
2134 * infrun.c (check_for_old_step_resume_breakpoint): Delete.
2135 (insert_step_resume_breakpoint): Delete.
2136 (insert_step_resume_breakpoint_at_frame): New function.
2137 (insert_step_resume_breakpoint_at_sal): New function.
2138 (handle_inferior_event, step_into_function)
2139 (insert_step_resume_breakpoint): Simplify by using same.
2140
b2ed1746
AC
2141 * gdb_indent.sh (types): Add caddr_t to list of predefined types.
2142
3691b3be
MK
21432004-09-26 Mark Kettenis <kettenis@gnu.org>
2144
36f391e8
MK
2145 * fbsd-proc.c: Remove file.
2146 * Makefile.in (fbsd-proc.o): Remove dependency.
2147
771e236c
MK
2148 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
2149 code together.
2150
3691b3be
MK
2151 * config/i386/nm-fbsd64.h: Remove file.
2152 * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2153
6a5c78a3
MK
21542004-09-26 Mark Kettenis <kettenis@gnu.org>
2155
2156 * amd64-nat.h: Update copyright year.
2157 (amd64bsd_target): New prototype.
2158 * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
2159 (amd64bsd_target): New function.
2160 (amd64bsd_fetch_inferior_registers): Rename from
2161 fetch_inferior_registers. Make static.
2162 (amd64bsd_store_inferior_registers): Rename from
2163 store_inferior_registers. Make static.
2164 * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
2165 (_initialize_amd64fbsd_nat): Construct and add target vector.
2166 * amd64nbsd-nat.o: Include "target.h".
2167 (_initialize_amd64nbsd_nat): Construct and add target vector.
2168 * amd64obsd-nat.c: Include "target.h".
2169 (_initialize_amd64obsd_nat): Construct and add target vector.
2170 * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
2171 * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
2172 inftarg.o and fbsd-proc.o. Add inf-child.o, inf-ptrace.o and
2173 fbsd-nat.o.
2174 * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
2175 Remove infptrace.o and inftarg.o. Add inf-child.o and
2176 inf-ptrace.o.
2177 * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
2178 (amd64obsd-nat.o): Update dependencies.
2179
27acbe61
MK
21802004-09-25 Mark Kettenis <kettenis@gnu.org>
2181
509a5e7d
MK
2182 * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
2183 * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
2184 * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
2185 * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
2186 * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
2187
6e1e94ea
MK
2188 * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
2189 Inline attach call.
2190 (inf_ptrace_detach): Inline detach call.
2191
8b9cf735
MK
2192 * configure.in: Check for waddstr instead of mvwaddstr when
2193 searching for curses library. Check for wborder.
2194 * configure, config.in: Regenerate.
2195 * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
2196 available.
2197
27acbe61
MK
2198 * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
2199
b96ec7ac
AC
22002004-09-24 Robert Picco <Robert.Picco@hp.com>
2201
2202 Committed by Andrew Cagney.
2203 * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
2204 (show_remote_protocol_p_packet_cmd): New. Implement 'p' packet.
2205 configuration.
2206 (fetch_register_using_p): Implement 'p' packet. Based on code by
2207 Fernando Nasser.
2208 (remote_fetch_registers): Call fetch_register_using_p.
2209 (init_all_packet_configs, show_remote_cmd)
2210 (_initialize_remote): Add p-packet.
2211
62ece330
MK
22122004-09-24 Mark Kettenis <kettenis@gnu.org>
2213
2214 * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
2215 instead of call_ptrace. Call wait directly instead of
2216 ptrace_wait.
2217 (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
2218 (inf_ptrace_wait): Inline ptrace_wait call.
2219
00937274
PH
22202004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
2221
2222 * Makefile.in (.y.c): Revert previous change. ../ylwrap was
2223 rolled back instead.
2224
3f2c7a45
PH
22252004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
2226
2227 * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
2228 the new argument order.
2229
b6fcb393
CV
22302004-09-23 Corinna Vinschen <vinschen@redhat.com>
2231
2232 * MAINTAINERS: Remove "broken" from XStormy16 entry.
2233 * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
2234 (struct gdbarch_tdep): Remove.
2235 (struct xstormy16_frame_cache): New frame cache structure.
2236 (xstormy16_register_byte, xstormy16_register_raw_size)
2237 (xstormy16_reg_virtual_type, xstormy16_register_type)
2238 (xstormy16_push_arguments, xstormy16_push_return_address)
2239 (xstormy16_pop_frame, xstormy16_store_struct_return)
2240 (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
2241 (xstormy16_frame_saved_register, xstormy16_get_saved_register)
2242 (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
2243 (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
2244 (xstormy16_frame_chain, xstormy16_frame_chain_valid,
2245 (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
2246 (xstormy16_use_struct_convention): Drop gcc_p parameter.
2247 (xstormy16_extract_return_value, xstormy16_store_return_value):
2248 Regcachify. Drop useless struct convention handling.
2249 (xstormy16_register_type, xstormy16_return_value)
2250 (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
2251 (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
2252 (xstormy16_frame_prev_register, xstormy16_frame_this_id)
2253 (xstormy16_frame_base_address, xstormy16_frame_sniffer)
2254 (xstormy16_unwind_sp, xstormy16_unwind_pc)
2255 (xstormy16_unwind_dummy_id) : New functions.
2256 (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
2257 of xstormy16_scan_prologue.
2258 (xstormy16_frame_unwind): New frame_unwind structure.
2259 (xstormy16_frame_base): New frame_base structure.
2260 (xstormy16_gdbarch_init): Accomodate all of the above changes.
2261 Reshuffle for better readability. Also add dwarf2_frame_sniffer.
2262
1285b746
MK
22632004-09-22 Mark Kettenis <kettenis@gnu.org>
2264
2265 * language.c (language_gdbarch_post_init): Fix off-by one error.
2266
1c379e20
DJ
22672004-09-21 Daniel Jacobowitz <dan@debian.org>
2268
2269 * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
2270 (struct dwarf2_offset_and_type): New.
2271 (set_die_type, reset_die_and_siblings_types, get_die_type)
2272 (offset_and_type_hash, offset_and_type_eq): New functions.
2273 (read_structure_type, read_enumeration_type, read_array_type)
2274 (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
2275 (read_tag_reference_type, read_tag_const_type)
2276 (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
2277 (read_typedef, read_base_type, read_subrange_type): Use
2278 set_die_type.
2279
ae038cb0
DJ
22802004-09-20 Daniel Jacobowitz <dan@debian.org>
2281
2282 * Makefile.in (dwarf2read.o): Update dependencies.
2283 * dwarf2read.c: Include "command.h" and "gdbcmd.h".
2284 (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
2285 and read_in_chain.
2286 (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
2287 mark, and has_form_ref_addr.
2288 (struct dwarf2_per_cu_data): New.
2289 (dwarf2_max_cache_age): New.
2290 (dwarf2_build_psymtabs_hard): Free cached compilation units
2291 after loading. Create and manage the list of compilation units.
2292 Remove unnecessary NULL initialization. Fix indentation.
2293 (psymtab_to_symtab_1): Initialize all of CU.
2294 (dwarf2_read_abbrevs): Set has_form_ref_addr.
2295 (find_partial_die): Use dwarf2_find_containing_comp_unit
2296 and load_comp_unit.
2297 (free_stack_comp_unit): Update comments. Clear the per-cu
2298 pointer. Handle aging.
2299 (dwarf2_find_containing_comp_unit, free_cached_comp_units)
2300 (age_cached_comp_units, free_one_cached_comp_unit)
2301 (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
2302 (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
2303 (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
2304 (show_dwarf2_cmd): New.
2305 (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
2306 and "maint show dwarf2 max-cache-age".
2307 * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
2308 externs.
2309 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
2310 global.
2311
987504bb
JJ
23122004-09-20 Jeff Johnston <jjohnstn@redhat.com>
2313
2314 * dwarf2read.c (typename_concat): Change prototype to accept obstack
2315 and dwarf2_cu struct pointer as arguments. Change function to use
2316 obstack if provided and use dwarf2_cu to determine language-specific
2317 separator.
2318 (partial_die_parent_scope): Change comment to include java. Use
2319 new version of typename_concat instead of obconcat.
2320 (partial_die_full_name): Use typename_concat.
2321 (read_namespace): Ditto.
2322 (read_enumeration_type): Use typename_concat instead of obconcat.
2323 (new_symbol): Ditto.
2324 (add_partial_symbol): Enhance tests for C++ to also test for Java.
2325 (guess_structure_name): Ditto.
2326 (read_subroutine_type): Ditto.
2327 (read_structure_type): Ditto.
2328 (is_vtable_name): Add Java support.
2329 (determine_class_name): Switch to new typename_concat call.
2330 (determine_prefix): Switch to new typename_concat call.
2331 * jv-exp.y (FuncStart): New pattern.
2332 (MethodInvocation): Add support for simple function calls. Change
2333 warning message for other forms of inferior call currently not
2334 supported.
2335 * valarith.c (value_subscript): Treat an array with upper-bound
2336 of -1 as unknown size.
2337
d9c8471e
DJ
23382004-09-20 Daniel Jacobowitz <dan@debian.org>
2339
2340 * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
2341 (lookup_partial_symtab): Use symtab_to_fullname.
2342
d73f140a
JB
23432004-09-19 Jim Blandy <jimb@redhat.com>
2344
2345 * minsyms.c (lookup_minimal_symbol): Doc fix.
2346
adbef1f0
AC
23472004-09-20 Andrew Cagney <cagney@gnu.org>
2348
2349 * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
2350 CHILD_RESUME.
2351 * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
2352 * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
2353 KILL_INFERIOR.
2354 * infptrace.c: Update.
2355
d092d1a2
DJ
23562004-09-19 Daniel Jacobowitz <dan@debian.org>
2357
2358 * symtab.c (output_source_filename): Mark first argument as const.
2359 (sources_info): Use symtab_to_fullname and psymtab_to_fullname
2360 for "info sources" output.
2361
86d9e1d7
MK
23622004-09-20 Mark Kettenis <kettenis@gnu.org>
2363
2364 * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
2365 <machine/vmparam.h>.
2366 (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
2367 (register_u_addr): Remove prototype.
2368
9a6c8ef4
MK
23692004-09-19 Mark Kettenis <kettenis@gnu.org>
2370
9692934b
MK
2371 * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
2372 (i386bsd_fetch_inferior_registers): Rename from
2373 fetch_inferior_registers. Make static.
2374 (i386bsd_store_inferior_registers): Rename from
2375 store_inferior_registers. Make static.
2376 (i386bsd_target): New function.
2377 * i386bsd-nat.h: New file.
2378 * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
2379 "i386bsd-nat.h".
2380 (i386fbsd_resume): Rename from child_resume. Make static.
2381 (_initialize_i386fbsd_nat): Construct and add target vector.
2382 * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
2383 (_initialize_i386nbsd_nat): Construct and add target vector.
2384 * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
2385 Remove defines.
2386 * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
2387 and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
2388 * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
2389 inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
2390 (LOADLIBES): New variable.
2391 * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
2392 inf-ptrace.o. Remove inftarg.o.
2393 * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
2394 inf-ptrace.o. Remove inftarg.o.
2395 * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
2396 inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
2397 (LOADLIBES): New variable.
2398 * Makefile.in (i386bsd_nat_h): New variable.
2399 (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
2400 dependencies.
2401
3510d1f2
MK
2402 * sparc64nbsd-tdep.c: Include "objfiles.h".
2403 (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
2404 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
2405 svr4_lp64_fetch_link_map_offsets.
2406 * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
2407 "nbsd-tdep.h".
2408 (sparc64obsd_init_abi): Set in_solib_call_trampoline and
2409 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
2410 svr4_lp64_fetch_link_map_offsets.
2411 * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
2412 dependencies.
2413
578c1c03
MK
2414 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
2415 * fbsd-nat.h: New file.
2416 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
2417 (fbsd_nat_h): New variable.
2418 (fbsd-nat.o): New dependency.
2419
7a7b73b7
MK
2420 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
2421 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
2422
9a6c8ef4
MK
2423 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
2424 comment.
2425
72d5681a
PH
24262004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
2427
2428 * ada-exp.y (type_int): New function to add layer of abstraction
2429 around references to expression types.
2430 (type_long): Ditto.
2431 (type_long_long): Ditto.
2432 (type_float): Ditto.
2433 (type_double): Ditto.
2434 (type_long_double): Ditto.
2435 (type_char): Ditto.
2436 (type_system_address): Ditto.
2437 (simple_exp): Use type_* functions in place of builtin_*
2438 variables.
2439 (exp): Ditto.
2440 (write_var_from_name): Ditto.
2441 (write_object_renaming): Ditto.
2442 * ada-lang.c (ada_create_fundamental_type): Remove redundant
2443 declaration.
2444 (build_ada_types): Remove, replacing with...
2445 (ada_language_arch_info): New function to initialize primitive
2446 type vector in language_arch_info.
2447 (ada_array_length): Remove use of builtin_type_ada_int.
2448 (value_pos_atr): Ditto.
2449 (ada_evaluate_subexp): Ditto.
2450 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
2451 builtin_type_ada_long_long, builtin_type_ada_char,
2452 builtin_type_ada_float, builtin_type_ada_double,
2453 builtin_type_ada_long_double, builtin_type_ada_natural,
2454 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
2455 (ada_builtin_types): Remove.
2456 (ada_language_defn): Remove entries for la_builtin_type_vector and
2457 string_char_type and use ada_language_arch_info.
2458 (_initialize_ada_language): Do type-vector initialization along
2459 the lines of c-lang.c.
2460 (ada_create_fundamental_type): Break up line.
2461 (ada_dump_symtab): Remove unused function.
2462 (enum ada_primitive_types): Define.
2463 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
2464 builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
2465 builtin_type_ada_float, builtin_type_ada_double,
2466 builtin_type_ada_long_double, builtin_type_ada_natural,
2467 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
2468 * ada-lex.l: Use type_* functions in place of builtin_* variables.
2469 (processInt): Ditto.
2470 (processReal): Ditto.
2471 (name_lookup): Ditto.
2472 * ada-typeprint.c (print_range): Use builtin_type_int, not
2473 builtin_type_ada_int.
2474
4f0be353
MK
24752004-09-18 Mark Kettenis <kettenis@gnu.org>
2476
30b0e2d8
MK
2477 * i386-tdep.c (i386_register_name): Rename regno to regnum.
2478
4f0be353
MK
2479 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
2480 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
2481 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
2482 * configure.in: Improve checks for curses library by checking for
2483 mvwaddstr instead of initscr. Drop HP curses in favour of
2484 standard curses on HP-UX.
2485 * configure: Regenerated.
2486
72d5681a 24872004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
6c038f32
PH
2488
2489 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
2490 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
2491 Minor formatting changes.
2492 (empty_array): Slight rewrite for formatting.
2493 (emit_char,parse,ada_language_defn,build_ada_types,
2494 ada_is_exception_sym, _initialize_ada_language): Move
2495 definitions around.
2496 (ada_dump_symtab): Remove unused definition.
2497 (ada_maybe_exception_partial_symbol): Remove unused definition.
2498
1c8c7407
AC
24992004-09-16 Andrew Cagney <cagney@gnu.org>
2500
7681f339
AC
2501 * inf-child.c: Include "gdb_string.h".
2502 (inf_child_core_file_to_sym_file): Delete.
2503 (inf_child_target): Set to_fetch_registers and to_store_registers.
2504 * inf-ptrace.c: Include "gdb_string.h".
2505 * Makefile.in: Update all dependencies.
2506
1c8c7407
AC
2507 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
2508 problem.
2509
65596487
JB
25102004-09-14 Joel Brobecker <brobecker@gnat.com>
2511
2512 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
2513 call to heuristic_proc_desc. Remove code that became redundant
2514 as a consequence.
2515 (read_next_frame_reg): Remove special case for SP_REGNUM.
2516 (set_reg_offset): Fix small typo.
2517 (reset_saved_regs): New procedure.
2518 (mips32_heuristic_proc_desc): No longer compute a fake
2519 procedure descriptor. Compute the full frame cache instead.
2520 Some minor comment reformatting.
2521
95575b2e
AC
25222004-09-14 Andrew Cagney <cagney@gnu.org>
2523
f200c492
AC
2524 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
2525 maintainer.
2526
95575b2e
AC
2527 * thread-db.c (thread_db_new_objfile): Assume that there is a
2528 child process.
2529
69657671
JB
25302004-09-13 Jim Blandy <jimb@redhat.com>
2531
2532 * valops.c (value_assign): Move 'buffer' to the enclosing block,
2533 so that its storage isn't referenced after its lifetime ends.
2534
6c4182dd
JB
2535 * valops.c (value_assign): 'use_buffer' is initialized to zero,
2536 and never assigned to. Delete it, and the 'if (use_buffer)'
2537 clauses. Delete 'raw_buffer', since it is now unused.
2538
ee31a58d
AC
25392004-09-13 Andrew Cagney <cagney@gnu.org>
2540
2c0fc042
AC
2541 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
2542 * configure: Re-generate.
2543 * nlm/Makefile.in (TAGS): Update.
2544 * Makefile.in (TAGS): Update.
2545 * config/vax/nbsd.mt (TM_FILE): Update.
2546 * config/sparc/vxworks.mt (TM_FILE): Update.
2547 * config/sparc/sol2.mt (TM_FILE): Update.
2548 * config/sparc/sol2-64.mt (TM_FILE): Update.
2549 * config/sparc/obsd64.mt (TM_FILE): Update.
2550 * config/sparc/obsd.mt (TM_FILE): Update.
2551 * config/sparc/nbsd64.mt (TM_FILE): Update.
2552 * config/sparc/nbsd.mt (TM_FILE): Update.
2553 * config/sparc/linux64.mt (TM_FILE): Update.
2554 * config/sparc/linux.mt (TM_FILE): Update.
2555 * config/sparc/fbsd.mt (TM_FILE): Update.
2556 * config/sh/wince.mt (TM_FILE): Update.
2557 * config/sh/nbsd.mt (TM_FILE): Update.
2558 * config/sh/linux.mt (TM_FILE): Update.
2559 * config/sh/embed.mt (TM_FILE): Update.
2560 * config/s390/s390.mt (TM_FILE): Update.
2561 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
2562 * config/rs6000/rs6000.mt (TM_FILE): Update.
2563 * config/rs6000/aix4.mt (TM_FILE): Update.
2564 * config/powerpc/vxworks.mt (TM_FILE): Update.
2565 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
2566 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
2567 * config/powerpc/obsd.mt (TM_FILE): Update.
2568 * config/powerpc/nbsd.mt (TM_FILE): Update.
2569 * config/powerpc/linux.mt (TM_FILE): Update.
2570 * config/powerpc/aix.mt (TM_FILE): Update.
2571 * config/pa/obsd.mt (TM_FILE): Update.
2572 * config/pa/linux.mt (TM_FILE): Update.
2573 * config/pa/hppahpux.mt (TM_FILE): Update.
2574 * config/pa/hppa64.mt (TM_FILE): Update.
2575 * config/pa/hppa.mt (TM_FILE): Update.
2576 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
2577 * config/mips/wince.mt (TM_FILE): Update.
2578 * config/mips/vxmips.mt (TM_FILE): Update.
2579 * config/mips/nbsd.mt (TM_FILE): Update.
2580 * config/mips/linux.mt (TM_FILE): Update.
2581 * config/mips/irix6.mt (TM_FILE): Update.
2582 * config/mips/irix5.mt (TM_FILE): Update.
2583 * config/mips/embed.mt (TM_FILE): Update.
2584 * config/m68k/vxworks68.mt (TM_FILE): Update.
2585 * config/m68k/st2000.mt (TM_FILE): Update.
2586 * config/m68k/os68k.mt (TM_FILE): Update.
2587 * config/m68k/obsd.mt (TM_FILE): Update.
2588 * config/m68k/nbsd.mt (TM_FILE): Update.
2589 * config/m68k/monitor.mt (TM_FILE): Update.
2590 * config/m68k/linux.mt (TM_FILE): Update.
2591 * config/m68k/cisco.mt (TM_FILE): Update.
2592 * config/ia64/linux.mt (TM_FILE): Update.
2593 * config/ia64/aix.mt (TM_FILE): Update.
2594 * config/ia64/ia64.mt (TM_FILE): Update.
2595 * config/i386/vxworks.mt (TM_FILE): Update.
2596 * config/i386/obsd64.mt (TM_FILE): Update.
2597 * config/i386/obsd.mt (TM_FILE): Update.
2598 * config/i386/nto.mt (TM_FILE): Update.
2599 * config/i386/nbsd64.mt (TM_FILE): Update.
2600 * config/i386/nbsd.mt (TM_FILE): Update.
2601 * config/i386/linux64.mt (TM_FILE): Update.
2602 * config/i386/linux.mt (TM_FILE): Update.
2603 * config/i386/i386sol2.mt (TM_FILE): Update.
2604 * config/i386/i386lynx.mt (TM_FILE): Update.
2605 * config/i386/fbsd64.mt (TM_FILE): Update.
2606 * config/i386/fbsd.mt (TM_FILE): Update.
2607 * config/i386/cygwin.mt (TM_FILE): Update.
2608 * config/h8300/h8300.mt (TM_FILE): Update.
2609 * config/frv/frv.mt (TM_FILE): Update.
2610 * config/cris/cris.mt (TM_FILE): Update.
2611 * config/arm/wince.mt (TM_FILE): Update.
2612 * config/arm/nbsd.mt (TM_FILE): Update.
2613 * config/arm/linux.mt (TM_FILE): Update.
2614 * config/arm/embed.mt (TM_FILE): Update.
2615 * config/alpha/nbsd.mt (TM_FILE): Update.
2616 * config/alpha/fbsd.mt (TM_FILE): Update.
2617 * config/alpha/alpha.mt (TM_FILE): Update.
2618 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
2619 * config/alpha/alpha-linux.mt (TM_FILE): Update.
2620
362646f5
AC
2621 Eliminate event_loop_p, always has the value 1.
2622 * defs.h (event_loop_p): Delete macro.
2623 * breakpoint.c (until_break_command): Simplify.
2624 * utils.c (prompt_for_continue): Simplify.
2625 * tracepoint.c (read_actions): Simplify.
2626 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
2627 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
2628 (set_prompt, init_main): Simplify.
2629 (init_signals, disconnect): Delete, unused.
2630 * remote.c (remote_async_resume)
2631 (extended_remote_async_create_inferior): Simplify.
2632 * mi/mi-interp.c (mi_input): Delete, unused.
2633 (mi_interpreter_resume, mi_command_loop): Simplify.
2634 * interps.c (current_interp_command_loop): Simplify.
2635 * infrun.c (proceed): Simplify.
2636 * infcmd.c (run_command, continue_command, step_1, jump_command)
2637 (until_command, advance_command, finish_command)
2638 (interrupt_target_command): Simplify.
2639 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
2640
ee31a58d
AC
2641 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2642 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2643 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2644 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2645 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2646 * mips-tdep.c (mips_dump_tdep): Do not print same.
2647
b7ffc4a8
AC
26482004-09-12 Andrew Cagney <cagney@gnu.org>
2649
2bfb72ee
AC
2650 * valprint.c (print_longest): Use fputs_filtered. Make "val"
2651 const.
2652 * Makefile.in (valprint.o): Delete explict rule.
2653
4f17c3c1
AC
2654 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
2655 reported by Dave Anderson.
2656
f810308b
AC
2657 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
2658
b7ffc4a8
AC
2659 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
2660
28b41c52
AC
26612004-09-12 Salvador E. Tropea <set@users.sf.net>
2662 Andrew Cagney <cagney@gnu.org>
2663
2664 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
2665 (mi_cmd_data_list_register_values)
2666 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
2667 the register number computation.
2668
5bf970f9
AC
26692004-09-12 Andrew Cagney <cagney@gnu.org>
2670
2671 * ppcnbsd-nat.c: Include "inf-ptrace.h".
2672 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
2673 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
2674 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
2675 target.
2676 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
2677 inf-ptrace.o and inf-child.o.
2678 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
2679 * Makefile.in: Update dependencies.
2680
0759e0bf
AC
26812004-09-11 Andrew Cagney <cagney@gnu.org>
2682
2683 * language.c (hex_string, hex_string_custom): Move from here ...
2684 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
2685 (CELLSIZE): Increase to 50.
2686 * language.h (hex_string, hex_string_custom): Move from here ...
2687 * defs.h: ... to here.
2688 * Makefile.in: Update all dependencies.
2689
bb599908
PH
26902004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
2691
2692 * language.c (local_hex_format_custom): Remove.
2693 (local_hex_string): Rename to hex_string, use C format, and move to
2694 utils.c
2695 (local_hex_string_custom): Rename to hex_string_custom and change
2696 interface. Now uses C format. Move to utils.c
2697 (local_octal_format_custom): Remove.
2698 (local_decimal_format_custom): Remove.
2699 (unknown_language_defn): Remove language-specific number
2700 formatting entries.
2701 (auto_language_defn): Ditto.
2702 (local_language_defn): Ditto.
2703 * language.h (struct language_format_info): Delete declaration.
2704 (struct language_defn): Remove language_format_info fields
2705 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
2706 (local_binary_format): Remove macro.
2707 (local_binary_format_prefix): Remove macro.
2708 (local_binary_format_specifier): Remove macro.
2709 (local_binary_format_suffix): Remove macro.
2710 (local_octal_format): Remove macro.
2711 (local_octal_format_prefix): Remove macro.
2712 (local_octal_format_specifier): Remove macro.
2713 (local_octal_format_suffix): Remove macro.
2714 (local_decimal_format): Remove macro.
2715 (local_decimal_format_prefix): Remove macro.
2716 (local_decimal_format_specifier): Remove macro.
2717 (local_decimal_format_suffix): Remove macro.
2718 (local_hex_format): Remove macro.
2719 (local_hex_format_prefix): Remove macro.
2720 (local_hex_format_specifier): Remove macro.
2721 (local_hex_format_suffix): Remove macro.
2722 (local_decimal_format_custom): Remove.
2723 (local_octal_format_custom): Remove.
2724 (local_hex_format_custom): Remove.
2725 (local_hex_string): Rename to hex_string and move to defs.h.
2726 (local_hex_string_custom): Rename to hex_string_custom, change
2727 interface, and move to defs.h.
2728 * utils.c: (int_string): New function.
2729 (hex_string): New function (from language.c).
2730 (hex_string_custom): New function (from language.c).
2731 (octal2str): New function.
2732 (decimal2str): Add width parameter.
2733 (paddr_u): Use new decimal2str interface.
2734 (paddr_d): Ditto.
2735 * defs.h (hex_string): Declare.
2736 (hex_string_custom): Declare.
2737 (int_string): Declare.
2738 * printcmd.c (print_scalar_formatted): Remove localized binary
2739 formatting.
2740 * valprint.c (print_longest): Use int_string.
2741 (print_floating): Use C hex format.
2742 (print_hex_chars): Ditto.
2743 (print_binary_chars): Remove language-specific formatting.
2744 (print_octal_chars): Use C octal format.
2745 (print_decimal_chars): Delocalize format.
2746 (print_decimal): Remove.
2747 * ada-lang.c (ada_language_defn): Remove language-specific number
2748 formatting entries.
2749 * p-lang.c (pascal_language_defn): Ditto.
2750 * c-lang.c (c_language_defn): Ditto.
2751 (cplus_language_defn): Ditto.
2752 (asm_language_defn): Ditto.
2753 (minimal_language_defn): Ditto.
2754 * f-lang.c (f_language_defn): Ditto.
2755 * jv-lang.c (java_language_defn): Ditto.
2756 * m2-lang.c (m2_language_defn): Ditto.
2757 * scm-lang.c (scm_language_defn): Ditto.
2758 * objc-lang.c (objc_language_defn): Ditto.
2759 * memattr.c (mem_info_command): Use renamed hex_string_custom with
2760 new interface.
2761 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
2762 * ui-out.c (ui_out_field_core_addr): Ditto.
2763 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
2764 * exec.c (print_section_info): Ditto.
2765 * i387-tdep.c (print_i387_status_word): Ditto.
2766 (print_i387_control_word): Ditto.
2767 (i387_print_float_info): Ditto.
2768 * maint.c (maint_print_section_info): Ditto.
2769 * solib.c (info_sharedlibrary_command): Ditto.
2770 * somsolib.c (som_sharedlibrary_info_command): Ditto.
2771 * symtab.c (print_msymbol_info): Ditto.
2772 * tracepoint.c (tracepoints_info): Ditto.
2773 * solib-frv.c (lm_base): Ditto.
2774 (frv_current_sos): Ditto.
2775 (enable_break2): Ditto.
2776 (enable_break): Ditto.
2777 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
2778 (process_one_symbol): Ditto.
2779 * infcmd.c (program_info): Ditto.
2780 * mdebugread.c (parse_partial_symbols): Ditto.
2781 * symfile.c (add_symbol_file_command): Ditto.
2782 * cli/cli-cmds.c (edit_command): Ditto.
2783 (list_command): Ditto.
2784 * infcall.c (call_function_by_hand): Ditto.
2785 * remote-vx.c (vx_run_files_info): Ditto.
2786 (vx_wait): Ditto.
2787 (vx_attach): Ditto.
2788 (vx_detach): Ditto.
2789 (vx_kill): Ditto.
2790 * aix-thread.c (pdc_symbol_addrs): Ditto.
2791 (pdc_read_regs): Ditto.
2792 (pdc_write_regs): Ditto.
2793 (pdc_read_data): Ditto.
2794 (pdc_write_data): Ditto.
2795 * d10v-tdep.c (display_trace): Ditto.
2796 * rs6000-nat.c (find_toc_address): Ditto.
2797 * aix-thread.c: Don't include language.h.
2798 * buildsym.c: Ditto.
2799 * dbxread.c: Ditto.
2800 * mdebugread.c: Ditto.
2801 * rs6000-nat.c: Ditto.
2802 * buildsym.c (make_blockvector): Use renamed hex_string.
2803
33f2d567
JM
28042004-09-10 Jason Molenda (jmolenda@apple.com)
2805
2806 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
2807 chars after 'if' or 'while' commands in user-defined commands.
2808
7b90c3f9
JB
28092004-09-08 Jim Blandy <jimb@redhat.com>
2810
2811 Fix bug reported and analyzed by Olivier Crete:
2812 * symfile.c (copy_section_addr_info): New function.
2813 (symbol_file_add_with_addrs_or_offsets): Use it to save the
2814 original set of address arguments, instead of handwritten code
2815 that uses one length to allocate and a different length to
2816 initialize. Use make_cleanup_free_section_addr_info.
2817 * symfile.h (copy_section_addr_info): New declaration.
2818 * utils.c: #include "symfile.h".
2819 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
2820 New functions.
2821 * defs.h (make_cleanup_free_section_addr_info): New declaration.
2822 * Makefile.in (utils.o): Update dependencies.
2823
b26a6851
AC
28242004-09-08 Andrew Cagney <cagney@gnu.org>
2825
2826 * thread-db.c (keep_thread_db): Delete.
2827 (thread_db_new_objfile, thread_db_create_inferior)
2828 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
2829
be24b061
MK
28302004-09-08 Mark Kettenis <kettenis@gnu.org>
2831
f6792ef4
MK
2832 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
2833 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
2834 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
2835 (i386_frameless_signal_p): Remove prototype.
2836 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
2837 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
2838 I386_SSE_NUM_REGS.
2839 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
2840 instead of FP0_REGNUM.
2841 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
2842 of FP0_REGNUM and FPC_REGNUM.
2843
eeefdaa7
MK
2844 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
2845 (sunos_solib_create_inferior_hook): Don't call
2846 sunos_relocate_main_executable.
2847
be24b061
MK
2848 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
2849 solib_svr4_fetch_link_map_offsets to
2850 svr4_ilp32_fetch_link_map_offsets.
2851 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
2852 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
2853 svr4_ilp32_fetch_link_map_offsets.
2854 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
2855
7c679d16
JB
28562004-09-07 Jim Blandy <jimb@redhat.com>
2857
2858 * frame.h (frame_register): Doc fix.
2859
1f04aa62
AC
28602004-09-07 Andrew Cagney <cagney@gnu.org>
2861
2862 * vx-share/wait.h: Delete #ifdef USG.
2863 * utils.c (request_quit): Ditto.
2864 * tui/tui.c (tui_reset): Ditto.
2865 * remote.c: Ditto.
2866 * remote-sds.c: Ditto.
2867 * remote-rdi.c: Ditto.
2868 * mdebugread.c: Ditto.
2869 * m68klinux-nat.c: Ditto.
2870 * infttrace.c: Ditto.
2871 * infptrace.c: Ditto.
2872 * i386v-nat.c: Ditto.
2873 * exec.c: Ditto.
2874 * dbxread.c: Ditto.
2875 * core-aout.c: Ditto.
2876
90edbfbc
JB
28772004-09-05 Joel Brobecker <brobecker@gnat.com>
2878
2879 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
2880 heuristic_proc_desc.
2881 (mips_insn32_frame_cache): Likewise.
2882
01f4bf2b
JB
28832004-09-04 Joel Brobecker <brobecker@gnat.com>
2884
2885 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
2886 left behind by error.
2887
8511a048
JB
28882004-09-04 Joel Brobecker <brobecker@gnat.com>
2889
2890 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
2891 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
2892
649dfe9f
JB
28932004-09-04 Joel Brobecker <brobecker@gnat.com>
2894
2895 * config/rs6000/xm-aix4.h: Remove this file.
2896 * config/rs6000/aix4.mh (XM_FILE): Delete.
2897
6e50f889
JB
28982004-09-04 Joel Brobecker <brobecker@gnat.com>
2899
2900 * config/rs6000/xm-rs6000.h: Remove this file.
2901 * config/rs6000/rs6000.mh (XM_FILE): Remove.
2902
b8c4aece
AC
29032004-09-03 Andrew Cagney <cagney@gnu.org>
2904
fb603883
AC
2905 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
2906 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
2907 only use.
2908
c9343fd1
AC
2909 * mips-tdep.c (temp_saved_regs): Delete.
2910 (set_reg_offset): Replace saved_regs parameter with this_cache.
2911 (heuristic_proc_desc, mips16_heuristic_proc_desc)
2912 (mips32_heuristic_proc_desc): Add this_cache parameter.
2913 (mips_insn32_frame_cache, mips_insn16_frame_cache)
2914 (after_prologue): Pass a NULL this_cache.
2915
9733cfe1
AC
2916 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
2917 non-kernel trap prologues.
2918
0d5febcc
AC
2919 * mips-tdep.c (find_proc_desc): Delete function.
2920 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
2921 simplify.
2922 (mips_insn16_frame_cache): Replace find_proc_desc with code from
2923 mips_insn32_frame_cache.
2924
9733cfe1 2925 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
283be873
AC
2926 Simplify as NEXT_FRAME is NULL.
2927 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
2928
177f84a3
AC
2929 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
2930 local variable.
2931 (mips_skip_prologue): Update.
2932
465f7520
AC
2933 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
2934 "cur_frame" parameter.
177f84a3
AC
2935 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
2936 (mips_insn32_frame_cache, find_proc_desc): Update
465f7520 2937
e38b8658
AC
2938 * config/vax/nm-obsd.h: Delete file.
2939 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2940 * config/vax/nm-nbsd.h: Delete file.
2941 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
2942 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2943 * config/sh/nm-nbsd.h: Delete file.
2944 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
2945 * config/rs6000/nm-rs6000ly.h: Delete file.
2946 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
2947 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
2948 * config/powerpc/nm-obsd.h: Delete file.
2949 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2950 * config/powerpc/nm-nbsd.h: Delete file.
2951 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
2952 * config/pa/nm-obsd.h: Delete file.
2953 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2954 * config/mips/nm-nbsd.h: Delete file.
2955 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
2956 * config/m88k/nm-obsd.h: Delete file.
2957 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2958 * config/m68k/nm-nbsd.h: Delete file.
2959 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
2960 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2961 * config/i386/nm-nbsd.h: Delete file.
2962 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
2963 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2964 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2965 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2966 * config/i386/nm-i386lynx.h: Delete file.
2967 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
2968 * config/arm/nm-nbsd.h: Delete file.
2969 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
2970 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2971
be1ed680
AC
2972 * config/i386/tm-fbsd.h: Delete file.
2973 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
2974 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
2975
4b392b26
AC
2976 * config/rs6000/tm-rs6000-aix4.h: Delete file.
2977 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
2978 * config/rs6000/aix4.mt (TM_FILE): Set to
2979 config/rs6000/tm-rs6000.h.
2980 * config/powerpc/tm-ppc-aix.h: Delete file.
2981 * config/powerpc/aix.mt (TM_FILE): Set to
2982 config/rs6000/tm-rs6000.h.
2983 * config/m68k/tm-linux.h: Delete file.
2984 * config/m68k/linux.mt (TM_FILE): Set to solib.h
2985 * config/i386/tm-linux64.h: Delete file.
2986 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
2987 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
2988
f3219c75
AC
2989 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
2990 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
2991 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
2992 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
2993 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
2994 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
2995 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
2996 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
2997 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
2998
b8c4aece
AC
2999 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
3000 gdb_host_cpu.
3001
8ac2e020
JB
30022004-09-02 Joel Brobecker <brobecker@gnat.com>
3003
3004 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
3005 Minor reformatting. Some code factoring.
3006
c185a355
AC
30072004-09-02 Andrew Cagney <cagney@gnu.org>
3008
63f22f0d
AC
3009 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
3010 * config/vax/tm-nbsd.h: Delete file.
3011 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
3012 * config/sparc/tm-vxworks.h: Delete file.
3013 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
3014 * config/sparc/tm-nbsd.h: Delete file.
3015 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
3016 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
3017 * config/sparc/tm-linux.h: Delete file.
3018 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
3019 * config/s390/tm-linux.h: Delete file.
3020 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
3021 * config/pa/tm-bsd.h: Delete file.
3022 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
3023 * config/m68k/tm-obsd.h: Delete file.
3024 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
3025 * config/m68k/tm-nbsd.h: Delete file.
3026 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
3027 * config/i386/tm-vxworks.h: Delete file.
3028 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
3029 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
3030 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
3031 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
3032 * config/i386/tm-nbsd.h: Delete file.
3033 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
3034 * config/i386/tm-i386lynx.h: Delete file.
3035 * config/cris/cris.mt (TM_FILE): Set to solib.h.
3036 * config/cris/tm-cris.h: Delete file.
3037
0f475e27
AC
3038 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
3039 * configure: Re-generate.
3040 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
3041 * config/arm/tm-nbsd.h: Delete file.
3042
458ed000
AC
3043 * config/powerpc/tm-ppcle-sim.h: Delete.
3044 * config/powerpc/tm-ppcle-eabi.h: Delete.
3045 * config/powerpc/tm-nbsd.h: Delete.
3046 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
3047 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
3048 tm-ppcle-eabi.h.
3049
f14375f3
AC
3050 * config/i386/nto.mh (NAT_FILE): Delete.
3051 * config/i386/nm-nto.h: Delete.
3052
c34d127c
AC
3053 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
3054 * config/m68k/tm-os68k.h: Ditto.
3055 * config/m68k/tm-monitor.h: Ditto.
3056 * config/m68k/tm-cisco.h: Ditto.
3057 * config/m68k/st2000.mt (TM_FILE): Delete.
3058 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
3059 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
3060 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
3061 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
3062
f7f0fe03
AC
3063 * config/m68k/tm-st2000.h: Delete.
3064 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
3065 * config/sparc/fbsd.mt (TM_FILE): Delete.
3066 * config/sparc/tm-fbsd.h: Delete.
3067
a2558533
AC
3068 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
3069 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
3070 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
3071
b78960be
AC
3072 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
3073 GDB_TM_FILE and GDB_XM_FILE.
3074 * gdbarch.c: Re-generate.
3075 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
3076 quotes in macro definition.
3077 * configure.in: Re-generate.
3078
4d60522e
AC
3079 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
3080 validating architecture methods.
3081 * gdbarch.c: Re-generate.
3082
5010d38b
AC
3083 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
3084 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
3085 GDB_MULTI_ARCH_PARTIAL.
3086 * gdbarch.h: Re-generate.
3087
c185a355
AC
3088 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
3089 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
3090 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
3091 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
3092 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
3093 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
3094 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
3095 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
3096 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
3097 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
3098 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
3099 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
3100
14aaa6ab
AC
31012004-09-01 Andrew Cagney <cagney@gnu.org>
3102
3103 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
3104 and main_func_highpc.
3105 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
3106 * objfiles.c (init_entry_point_info, objfile_relocate): Update
3107 * nlmread.c (nlm_symfile_read): Update.
3108
a343eb3c
JB
31092004-09-01 Joel Brobecker <brobecker@gnat.com>
3110
3111 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
3112 (mips_insn32_frame_cache): Inline call to find_proc_desc.
3113 (find_proc_desc): Remove dead code.
3114
4fbbbd07
JB
31152004-09-01 Joel Brobecker <brobecker@gnat.com>
3116
3117 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
3118
84acb35a
JJ
31192004-09-01 Jeff Johnston <jjohnstn@redhat.com>
3120
3121 * observer.sh: Add struct so_list declaration.
3122 * Makefile.in: Add dependencies on observer.h for solib.c and
3123 breakpoint.c.
3124 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
3125 function.
3126 (_initialize_breakpoint): Register
3127 disable_breakpoints_in_unloaded_shlib as an observer of the
3128 "solib unloaded" observation event.
3129 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
3130 call decode_line_1 so unfound breakpoint errors are silent.
3131 * solib.c (update_solib_list): When a solib is discovered to have
3132 been unloaded by the program, notify all observers of the
3133 "solib unloaded" observation event.
3134
c8cd9f6c
AC
31352004-09-01 Andrew Cagney <cagney@gnu.org>
3136
3137 * frame.c: Include "objfiles.h".
3138 (inside_main_func): New function.
3139 (get_prev_frame): Use new inside_main_func.
3140 * Makefile.in (frame.o): Update dependencies.
3141 * defs.h (inside_main_func): Delete declaration.
3142 * blockframe.c (inside_main_func): Delete function.
3143
1168df01
JB
31442004-08-31 Jim Blandy <jimb@redhat.com>
3145
3146 * dwarf2read.c (is_vtable_name): New function, based on logic from
3147 read_structure_type, but passing the correct length to strncmp,
3148 and using 'sizeof' instead of 'strlen'.
3149 (read_structure_type): Call it.
3150
f14f9744
JB
31512004-08-31 Joel Brobecker <brobecker@gnat.com>
3152
3153 * config/powerpc/aix.mh: Add comment.
3154
386d4518
PG
31552004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
3156
3157 * MAINTAINERS: Add self to Write-After-Approval.
3158
7d97d5e2
MI
31592004-08-30 Manoj Iyer <manjo@austin.ibm.com>
3160
3161 * MAINTAINERS: Add self to Write-After-Approval.
3162
68f53502
AC
31632004-08-30 Andrew Cagney <cagney@gnu.org>
3164
3165 Fix PR breakpoints/1757.
3166 * infrun.c (struct execution_control_state): Replace
3167 remove_breakpoints_on_following_step with
3168 step_after_step_resume_breakpoint.
3169 (init_execution_control_state): Update.
3170 (handle_inferior_event): For signals, when stepping off a
3171 breakpoint, set step_after_step_resume_breakpoint. When
3172 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
3173 (keep_going): Delete code handling
3174 remove_breakpoints_on_following_step.
3175
7ca2d3a3
DL
31762004-08-29 David Lecomber <david@streamline-computing.com>
3177
3178 Fix PR gdb/648
3179 * language.h (enum array_ordering): New enum.
3180 * language.h (struct language_defn): New la_array_ordering
3181 attribute.
3182 * language.c (unknown_language_defn, auto_language_defn)
3183 (local_language_defn): Ditto.
3184 * ada-lang.c (ada_language_defn): Ditto.
3185 * c-lang.c (c_language_defn, cplus_language_defn)
3186 (asm_language_defn, minimal_language_defn): Ditto.
3187 * f-lang.c (f_language_defn): Ditto.
3188 * jv-lang.c (java_language_defn): Ditto.
3189 * m2-lang.c (f_language_defn): Ditto.
3190 * objc-lang.c (objc_language_defn): Ditto.
3191 * p-lang.c (pascal_language_defn): Ditto.
3192 * scm-lang.c (scm_language_defn): Ditto.
3193 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
3194 oriented large to small in type structure.
3195 * dwarf2read.c (read_array_order): New function.
3196 (read_array_type): Use read_array_order to check row/column
3197 major ordering.
3198
e354df01
NW
31992004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
3200
3201 * target.c (target_resize_to_sections): Check
3202 current_target.to_sections for an old value when updating.
3203
9185ddce
JB
32042004-08-27 Joel Brobecker <brobecker@gnat.com>
3205
3206 * procfs.c (dbx_link_bpt_addr): New static global variable.
3207 (dbx_link_shadow_contents): New static global variable.
3208 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
3209 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
3210 if we just hit it.
3211 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
3212 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
3213 from run to run.
3214 (procfs_create_inferior): Remove syssgi syscall-exit notifications
3215 after the inferior has been forked.
3216 (remove_dbx_link_breakpoint): New function.
3217 (dbx_link_addr): New function.
3218 (insert_dbx_link_bpt_in_file): New function.
3219 (insert_dbx_link_bpt_in_region): New function.
3220 (insert_dbx_link_breakpoint): New function.
3221 (proc_trace_syscalls_1): New function, extracted from
3222 proc_trace_syscalls.
3223 (proc_trace_syscalls): Replace extract code by call to
3224 proc_trace_syscalls_1.
3225 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
3226 is no longer valid.
3227
e6742ace
JB
32282004-08-25 Jim Blandy <jimb@redhat.com>
3229
3230 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
3231
8fb3e588
AC
32322004-08-25 Andrew Cagney <cagney@gnu.org>
3233
629a41ee
AC
3234 * infrun.c (struct execution_control_state): Delete field
3235 "stepping_through_sigtramp".
3236 (init_execution_control_state): Do not set same.
3237 (context_switch): Do not pass same to save_infrun_state and
3238 load_infrun_state.
3239 * gdbthread.h (struct thread_info): Delete field
3240 stepping_through_sigtramp.
3241 (save_infrun_state, load_infrun_state): Delete parameter
3242 stepping_through_sigtramp.
3243 * thread.c (load_infrun_state, save_infrun_state): Update.
3244
8fb3e588
AC
3245 * infrun.c: Re-indent. Move expression operators to the beginning
3246 of the line. Remove long disabled #if 0 code.
3247
49c54768
AC
32482004-08-24 Andrew Cagney <cagney@gnu.org>
3249
3250 * doublest.h (floatformat_ieee_quad): Rename
3251 floatformat_ia64_quad.
3252 * doublest.c (floatformat_ieee_quad): Rename
3253 floatformat_ia64_quad.
3254 (_initialize_doublest): Update.
3255
5ca2e327
JB
32562004-08-24 Jim Blandy <jimb@redhat.com>
3257
87808bd6
JB
3258 * dwarf2expr.h (struct dwarf_expr_context): New members
3259 'num_pieces' and 'pieces', for returning the result of an
3260 expression that uses DW_OP_piece.
3261 (struct dwarf_expr_piece): New struct type.
3262 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
3263 pieces.
3264 (free_dwarf_expr_context): Free pieces, if any.
3265 (add_piece): New function.
3266 (execute_stack_op): Implement DW_OP_piece.
3267 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
3268 expression is a list of pieces, print an error message.
3269 (dwarf2_loc_desc_needs_frame): If the expression yields
3270 pieces, and any piece is in a register, then we need a frame.
3271
5ca2e327
JB
3272 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
3273 the stack until we've decided what sort of result the evaluation
3274 has produced. Use separate variables, with more specific names.
3275
2afeb6b8
RE
32762004-08-23 Richard Earnshaw <rearnsha@arm.com>
3277
3278 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
3279 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
3280 (arm_netbsd_init_abi_common): Register them.
3281
5885ab49
MK
32822004-08-22 Mark Kettenis <kettenis@gnu.org>
3283
fda820a6
MK
3284 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
3285
1c5bf419
MK
3286 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
3287 safe_frame_unwind_memory instead of target_read_memory.
3288
8cbba7c8
MK
3289 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
3290 Reorder includes.
3291 (fetch_register, store_register): Remove prototypes.
3292 (child_resume): Reorganize code and comments such that it is
3293 grouped a bit more logically.
3294 (attach): Explicitly compare errno against 0.
3295 (detach): Likewise. Use perror_with_name instead of
3296 print_sys_errmsg.
3297 * Makefile.in (infptrace.o): Update dependencies.
3298
c5fa4245
MK
3299 * ia64-linux-nat.c: Update copyright year.
3300 (fetch_debug_register, store_debug_register)
3301 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
3302 PTRACE_TYPE_ARG3.
3303 * config/ia64/nm-linux.h: Update copyright year.
3304 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
3305
387c058c
MK
3306 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
3307 from CORE_ADDR to struct frame_info *. Use
3308 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
3309 (amd64_linux_sigtramp_p): Adjust for changed signature of
3310 and64_linux_sigtramp_start
3311
277215a6
MK
3312 * gdb_ptrace.h: GNU/Linux.
3313
25f6178e
MK
3314 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
3315 Remove defines.
3316
652fc137
MK
3317 * infptrace.c: Include "gdb_assert.h".
3318 (PTRACE_XFER_TYPE): Remove define.
3319 (offsetof): Only define if U_REGS_OFFSET isn't defined.
3320 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
3321 Tweak comment.
3322 (fetch_inferior_registers, store_inferior_registers): Remove
3323 redundant culry braces. Tweak comment. s/regno/regnum.
3324 * Makefile.in (infptrace.o): Update dependencies.
3325
5885ab49
MK
3326 * configure.in: Change test for return type of ptrace to default
3327 to `long' instead of `int'.
3328 * configure: Regenerate.
3329
11003ae3
MK
33302004-08-21 Mark Kettenis <kettenis@gnu.org>
3331
6b95110c
MK
3332 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
3333
bcb3dc3d
MK
3334 * configure.in: Check for ttrace function.
3335 * configure, config.in: Regenerate.
3336
11003ae3
MK
3337 * gdb_ptrace.h: New file.
3338 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
3339 <sys/ptrace.h>.
3340 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
3341 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
3342 (attach): Don't define PT_ATTACH.
3343 (detach): Don't define PT_DETACH.
3344 * Makefile.in (gdb_ptrace_h): New variable.
3345 (infptrace.o): Update dependencies.
3346
f8707cac
MK
33472004-08-16 Mark Kettenis <kettenis@gnu.org>
3348
3349 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
3350 instead of `int' if not already defined.
3351 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
3352 PTRACE_TYPE_ARG3.
3353 * infptrace.c (call_ptrace): Revert change that replaced
3354 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3355
655c5466
MK
33562004-08-15 Mark Kettenis <kettenis@gnu.org>
3357
156e5ba7
MK
3358 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
3359 Remove defines.
3360
de9a9e51
MK
3361 * linux-nat.c (kill_inferior): Add missing third and fourth
3362 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
3363
88800403
MK
3364 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
3365 PTRACE_TYPE_RET.
3366
849a1d7c
MK
3367 * proc-why.c (proc_prettyfprint_why): Fix format string.
3368
61ad16d1
MK
3369 * solib-osf.c (osf_current_sos): Remove unsused label.
3370
a6ed5501
MK
3371 * configure.in: Add <ncurses/ncurses.h> to the list of possible
3372 curses headers.
3373 * configure, config.in: Regenerate.
3374 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
3375 <ncurses/ncurses.h>.
3376
016ddeca
MK
3377 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
3378 * config/nm-nbsd.h: Update copyright year.
3379 (PTRACE_ARG3_TYPE): Remove define.
3380
49ec097f
MK
3381 * sparc-nat.c (fetch_inferior_registers)
3382 (store_inferior_registers, sparc_xfer_wcookie):
3383 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3384
9f8e0089
MK
3385 * alphabsd-nat.c (fetch_inferior_registers):
3386 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3387 PTRACE_TYPE_ARG3.
3388 * amd64bsd-nat.c (fetch_inferior_registers)
3389 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3390 PTRACE_TYPE_ARG3.
3391 * armnbsd-nat.c: Update copyright year.
3392 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
3393 (store_register, store_regs, store_fp_register, store_fp_regs):
3394 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3395 * hppabsd-nat.c (fetch_inferior_registers)
3396 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3397 PTRACE_TYPE_ARG3.
3398 * i386bsd-nat.c (fetch_inferior_registers)
3399 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
3400 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3401 * m68kbsd-nat.c (fetch_inferior_registers)
3402 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3403 PTRACE_TYPE_ARG3.
3404 * m88kbsd-nat.c (fetch_inferior_registers)
3405 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3406 PTRACE_TYPE_ARG3.
3407 * mipsnbsd-nat.c: Update copyright year.
3408 (fetch_inferior_registers, store_inferior_registers):
3409 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3410 * ns32knbsd-nat.c: Update copyright year.
3411 (fetch_inferior_registers, store_inferior_registers):
3412 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3413 * ppcnbsd-nat.c (fetch_inferior_registers):
3414 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3415 PTRACE_TYPE_ARG3.
3416 * ppcobsd-nat.c (fetch_inferior_registers):
3417 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3418 PTRACE_TYPE_ARG3.
3419 * shnbsd-nat.c: Update copyright year.
3420 (fetch_inferior_registers, store_inferior_registers):
3421 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3422 * vaxbsd-nat.c (fetch_inferior_registers)
3423 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3424 PTRACE_TYPE_ARG3.
3425
655c5466
MK
3426 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
3427 PTRACE_TYPE_ARG3.
3428 * infptrace.c (call_ptrace, child_resume, attach, detach)
3429 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
3430 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3431 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
3432 PTRACE_TYPE_ARG3.
3433
c40d0d10
MK
34342004-08-14 Mark Kettenis <kettenis@gnu.org>
3435
5cb0ff31
MK
3436 * defs.h: Remove out-of-date comment.
3437 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
3438 [!GETENV_PROVIDED] (getenv): Remove prototype.
3439
5f0f34cb
MK
3440 * standalone.c: Remove file.
3441 * Makefile.in (standalone.o): Remove dependency.
3442
7532965f
MK
3443 * i386-linux-nat.c (dummy_sse_values): Remove function and
3444 prototype.
3445 (i386_linux_dr_get): Fix typo in comment.
3446 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
3447
1bdc6c53
MK
3448 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
3449
c40d0d10
MK
3450 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
3451 from declaration.
3452 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
3453 from definition.
3454
64218d3e
MK
34552004-08-13 Mark Kettenis <kettenis@gnu.org>
3456
3457 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
3458 parenthesis in definition.
3459 * configure: Regenerated.
3460
926c94e7
MC
34612004-08-12 Michael Chastain <mec.gnu@mindspring.com>
3462
3463 * PROBLEMS: Mention build/1411.
3464
69489883
NN
34652004-08-09 Robert Millan <robertmh@gnu.org>
3466
3467 Committed by Nathanael Nerode.
3468 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
3469 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
3470
ebb7c577
AC
34712004-08-12 Andrew Cagney <cagney@gnu.org>
3472
3473 * NEWS: Mention fixes in GDB 6.2.1.
3474 * PROBLEMS: Remove mention of mips-irix.
3475
232d697c
JB
34762004-08-11 Joel Brobecker <brobecker@gnat.com>
3477
3478 * config/powerpc/xm-aix.h: Delete.
3479 * config/powerpc/aix.mh (MH_FILE): Remove.
3480 * config/powerpc/aix432.mh (MH_FILE): Remove.
3481
72f4e82b
JB
34822004-08-11 Joel Brobecker <brobecker@gnat.com>
3483
3484 * config/powerpc/aix.mh: Remove obsolete comment.
3485 * config/powerpc/aix432.mh: Likewise.
3486
0687ccb2
JB
34872004-08-11 Joel Brobecker <brobecker@gnat.com>
3488
3489 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
3490
dbf3ada7
JB
34912004-08-11 Joel Brobecker <brobecker@gnat.com>
3492
e08e1886
JB
3493 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
3494 this file is now empty.
3495 * config/xm-aix4.h: Remove, this file is no longer included
3496 anywhere.
3497
34982004-08-11 Joel Brobecker <brobecker@gnat.com>
3499
3500 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
3501 that file is now empty.
dbf3ada7
JB
3502 (termdef): Remove prototype, function no longer used.
3503
4c525ef6
JB
35042004-08-11 Joel Brobecker <brobecker@gnat.com>
3505
3506 * doc/gdbint.texinfo (Host Definition): Remove documentation
3507 for USE_O_NOCTTY, no longer used.
3508 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
3509 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
3510
82e0b968
JB
35112004-08-11 Joel Brobecker <brobecker@gnat.com>
3512
3513 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
3514 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
3515 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
3516
f2acbe1c
MK
35172004-08-11 Mark Kettenis <kettenis@gnu.org>
3518
daa98270
MK
3519 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
3520 instead of FIVE_ARG_PTRACE.
3521
f2acbe1c
MK
3522 * inflow.c (O_NOCTTY): Define to zero if not already defined.
3523 (new_tty): Use O_NOCTTY unconditionally.
3524
cc377e6b
MK
35252004-08-10 Mark Kettenis <kettenis@gnu.org>
3526
3527 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
3528 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
3529 fflush on stdout.
3530
3bcc18fa
JB
35312004-08-10 Joel Brobecker <brobecker@gnat.com>
3532
3533 * xcoff_symfile_finish: Replace last call to xmfree by call
3534 to xfree.
3535
7936743b
AC
35362004-08-10 Andrew Cagney <cagney@gnu.org>
3537
cc503c8a
AC
3538 * main.c (captured_main): Delete call to init_malloc.
3539 * defs.h (init_malloc): Delete declaration.
3540 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
3541 (init_malloc): Delete functions.
3542
2dc74dc1
AC
3543 * defs.h (xmfree): Delete.
3544 * utils.c (xmfree): Delete function.
3545 (xfree): Inline calls to xmfree and mfree.
3546 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
3547 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
3548 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
3549 * somread.c (som_symfile_finish): Ditto.
3550 * objfiles.c (allocate_objfile, free_objfile):
3551 * nlmread.c (nlm_symfile_finish): Ditto.
3552 * hpread.c (hpread_symfile_finish): Ditto.
3553 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
3554 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
3555 * coffread.c (coff_symfile_finish): Ditto.
3556
aa2ee5f6
AC
3557 * defs.h (xmcalloc): Delete declaration.
3558 * utils.c (xmcalloc): Delete.
3559 (xcalloc): Inline calls to xmcalloc and mcalloc.
3560 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
3561 xcalloc and xfree.
3562 * symtab.c (create_demangled_names_hash): Ditto.
3563
0efffb96
AC
3564 * defs.h (xmrealloc): Delete.
3565 * utils.c (xmrealloc): Delete.
3566 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
3567 * symmisc.c (extend_psymbol_list): Use xrealloc.
3568 * source.c (find_source_lines): Ditto.
3569 * hpread.c (hpread_lookup_type): Ditto.
3570 * dbxread.c (add_bincl_to_list): Ditto.
3571
7936743b
AC
3572 * utils.c (xmmalloc): Delete.
3573 (xmalloc): Inline xmmalloc and mmalloc calls.
3574 (msavestring): Use xmalloc.
3575 * defs.h (xmmalloc): Delete declaration.
3576 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
3577 xmmalloc.
3578 * symmisc.c (extend_psymbol_list): Ditto.
3579 * symfile.c (init_psymbol_list): Ditto.
3580 * source.c (find_source_lines): Ditto.
3581 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
3582 * elfread.c (elf_symtab_read): Ditto.
3583 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
3584 * coffread.c (coff_symfile_init): Ditto.
3585
252ab814
DC
35862004-08-10 David Carlton <carlton@bactrian.org>
3587
3588 * MAINTAINERS: Remove David Carlton from c++ testsuite
3589 maintainers.
3590
8f5ba92b
JG
35912004-08-10 Jerome Guitton <guitton@gnat.com>
3592
3593 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
3594 print a line feed before the prompt.
3595
21749010
MK
35962004-08-10 Mark Kettenis <kettenis@gnu.org>
3597
3598 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
3599
1f011ce2
JB
36002004-08-09 Joel Brobecker <brobecker@gnat.com>
3601
3602 General cleanup of the AIX xm include file:
3603 * config/xm-aix4.h (fd_set): Remove undefine.
3604 Remove include of <sys/select.h>.
3605 (HAVE_TERMIO): Remove define.
3606 (USG): Likewise.
3607 (NULL): Remove redefine.
3608 (alloca): Remove #pragma.
3609 (vfork): Remove define.
3610 (termdef): Remove.
3611 (SIGWINCH_HANDLER): Remove.
3612 (SIGWINCH_HANDLER_BODY): Remove.
3613
cf4e7692
MK
36142004-08-09 Mark Kettenis <kettenis@gnu.org>
3615
3616 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
3617 GDB_OSABI_OPENBSD_ELF.
3618
ac5754fa
MK
36192004-08-07 Robert Millan <robertmh@gnu.org>
3620
3621 * bsd-kvm.c: Check for nlist.h before including it.
3622
086ec9eb
MK
36232004-08-09 Mark Kettenis <kettenis@gnu.org>
3624
bbe06c74
MK
3625 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
3626 sigcontext' offset consistency checks for ancient BSD.
3627
3aa7b3b3
MK
3628 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
3629
086ec9eb
MK
3630 * configure.in: Check for <sys/types.h>. Check return and
3631 argument types of ptrace.
3632 * configure, config.in: Regenerate.
3633
09991fa0
JB
36342004-08-09 Jim Blandy <jimb@redhat.com>
3635
3636 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
3637 rs6000_register_sim_regno): Doc fixes.
3638
fed7ba43
JB
36392004-08-08 Joel Brobecker <brobecker@gnat.com>
3640
3641 * mips-tdep.c: Include "floatformat.h".
3642 (n32n64_floatformat_always_valid): New function.
3643 (floatformat_n32n64_long_double_big): New constant.
3644 (mips_gdbarch_init): Set size and format of long double
3645 for N32 and N64 ABIs.
3646 * Makefile.in (mips-tdep.o): Update dependencies.
3647
456fcf94
AC
36482004-08-08 Andrew Cagney <cagney@gnu.org>
3649
2f9b146e
AC
3650 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
3651 print. Improve script's error messages.
3652 * gdbarch.h: Re-generate.
3653
456fcf94
AC
3654 * gdbarch.sh (pformat): New function.
3655 (float_format, double_format, long_double_format): List with bit
3656 members. Use pformat when printing.
3657 * gdbarch.c, gdbarch.h: Re-generate.
3658
69e9e646
NW
36592004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
3660
3661 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
3662 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
3663 (ppcnbsd_supply_pcb): New function.
3664 (_initialize_ppcnbsd_nat): New prototype and function.
3665 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
3666 (LOADLIBES): New variable.
3667 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
3668
5ef2d0aa
AC
36692004-08-08 Andrew Cagney <cagney@gnu.org>
3670
3671 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
3672 (builtin_type_ieee_double, builtin_type_ia64_quad)
3673 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
3674 BE/LE floating-point types.
3675 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
3676 (builtin_type_ieee_double, builtin_type_ia64_quad)
3677 (builtin_type_ia64_spill): Declare.
3678 * doublest.c (_initialize_doublest, floatformat_ieee_single)
3679 (floatformat_ieee_double, floatformat_arm_ext)
3680 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
3681 of LE/BE floatformats.
3682 * doublest.h: (struct floatformat, floatformat_ieee_single)
3683 (floatformat_ieee_double, floatformat_arm_ext)
3684 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
3685
5c7f2947
MK
36862004-08-08 Mark Kettenis <kettenis@gnu.org>
3687
ecac404d
MK
3688 * i386gnu-nat.c (gnu_store_registers): Fix typo.
3689
9b8607ce
MK
3690 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
3691 instead of regcache_raw_supply when storing the registers.
3692
f6052080
MK
3693 * i386gnu-nat.c: Update copyright year.
3694 (gnu_store_registers): Don't use deprecated_registers and
3695 deprecated_registers_valid. Use regcache_valid_p and
3696 regcache_raw_supply instead.
3697
17777823
MK
3698 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
3699 frame_pc_unwind.
3700
5240ceac
MK
3701 * procfs.c (procfs_pid_to_str): Remove redundant and unused
3702 variables. Incapitalized "process".
3703
5c7f2947
MK
3704 * configure.in: Add cursesX to the list of possible curses libs.
3705 Add cursesX.h to the list of possible curses headers.
3706 * configure, config.in: Regenerate.
3707
da7d81e3
NW
37082004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
3709
3710 * configure.in: Test for struct lwp in <sys/lwp.h>.
3711 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
3712 the offset of l_addr in struct lwp.
3713
7f245d65
NW
37142004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
3715
3716 * bsd-kvm.c: Include "gdbcore.h"
3717 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
3718
47b3f456
AC
37192004-08-07 Andrew Cagney <cagney@gnu.org>
3720
70bd8e24
AC
3721 * gdbtypes.c (build_flt, build_complex): New functions.
3722 (gdbtypes_post_init): Use.
3723
9b0dea39
AC
3724 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
3725
5cf7abac
AC
3726 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
3727 through to builtin_type_uint128.
3728
64d2b26d
AC
3729 * c-exp.y: Use builtin_type function to obtain builtin types.
3730
7ad6570d
AC
3731 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
3732 builtin_uint128.
3733 * gdbtypes.c (gdbtypes_post_init): Update.
3734 (build_gdbtypes): Move initialization of builtin_type_int0
3735 through to builtin_type_uint128 from here ...
3736 (_initialize_gdbtypes): ... to here.
3737 * d10v-tdep.c (d10v_register_type): Update.
3738
47b3f456
AC
3739 * doublest.c: Update copyright.
3740 (floatformat_from_length): Call error when floatformat is NULL.
3741 (extract_floating_by_length): Remove NULL fmt check.
3742 (store_floating_by_length): Ditto.
3743
0a8146bf
AC
37442004-08-07 Andrew Cagney <cagney@gnu.org>
3745
3746 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
3747 that the register is valid.
3748
c0ccb908
MK
37492004-08-05 Mark Kettenis <kettenis@chello.nl>
3750
8e6bed05
MK
3751 * i386-linux-tdep.c (i386_linux_sigtramp_start)
3752 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
3753 struct frame_info *. Use safe_frame_unwind_memory instead of
3754 deprecated_read_memory_nobpt.
3755 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
3756 changed signature of i386_linux_sigtramp_start and
3757 i386_linux_rt_sigtramp_start.
3758
24f9f5e3
MK
3759 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
3760 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
3761 instead of deprecated_read_memory_nobpt.
3762 (i386nbsd_sigtramp_p): Adjust for changed signature of
3763 i386nbsd_sigtramp_offset.
3764
c822af0c
MK
3765 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
3766 safe_frame_unwind_memory instead of target_read_memory.
3767
c0ccb908
MK
3768 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
3769 !NO_SYS_FILE.
3770 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
3771 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
3772 (_initialize_kernel_u_addr): Remove prototype and function.
3773 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
3774 !NO_SYS_FILE.
3775 * xcoffread.c: Likewise.
3776
b9e1c0d6
MK
37772004-08-06 Mark Kettenis <kettenis@gnu.org>
3778
3779 * vax-nat.c: New file.
3780 * vaxbsd-nat.c: Tweak comment.
3781 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
3782 vaxnbsd-tdep.c.
3783 (vax-nat.o): New dependency.
3784 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
3785 (vax-*-ultrix2*): Remove.
3786 * config/vax/vax.mh: New file.
3787 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
3788 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
3789 (vax_register_u_addr): New prototype.
3790 (REGISTER_U_ADDR): Define using vax_register_u_addr.
3791 * config/vax/vaxult2.mh: Remove file.
3792 * config/vax/vaxult.mh: Remove file.
3793 * config/vax/vaxbsd.mh: Remove file.
3794 * config/vax/vax.mt (TM_FILE): Remove.
3795 * config/vax/tm-vaxbsd.h: Remove file.
3796
9ad7bec7
JB
37972004-08-06 Joel Brobecker <brobecker@gnat.com>
3798
3799 * aix-thread.c (get_signaled_thread): New function.
3800 (iter_trap): Delete, no longer used.
3801 (iter_tid): New function.
3802 (pd_update): Find the thread that received the SIGTRAP signal
3803 by first locating the kernel thread, and then finding its
3804 associated thread.
3805
bf0d233d
UW
38062004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
3807
3808 * lin-lwp.c (child_wait): Continue inferior after processing
3809 PTRACE_EVENT_CLONE event.
3810
d0f853e1
NN
38112004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
3812
3813 * MAINTAINERS: Add self to Write-After-Approval.
3814
ab14aeb0
JJ
38152004-08-05 Jeff Johnston <jjohnstn@redhat.com>
3816
3817 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
3818 libunwind-xxxx.so" where xxxx is UNW_TARGET.
3819
9c8dbfa9
AC
38202004-08-05 Andrew Cagney <cagney@gnu.org>
3821
c8f3ca46
AC
3822 * config/xm-sysv4.h: Delete file.
3823 * config/mips/xm-irix5.h: Delete file.
3824 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
3825 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
3826 * config/ia64/xm-aix.h: Delete file.
3827 * config/ia64/aix.mh (XM_FILE): Delete.
3828 * config/pa/xm-hppah.h: Delete file.
3829 * config/pa/hpux11w.mh (XM_FILE): Delete.
3830 * config/pa/hpux11.mh (XM_FILE): Delete.
3831 * config/pa/hpux1020.mh (XM_FILE): Delete.
3832 * config/pa/hppahpux.mh (XM_FILE): Delete.
3833
5f7daaff
AC
3834 * config/alpha/xm-alphalinux.h: Delete file.
3835 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
3836 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
3837 * config/alpha/xm-alphaosf.h: Delete file.
3838 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
3839 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
3840 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
3841 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
3842
69babf95
AC
3843 * config/i386/xm-i386v.h: Delete file.
3844 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
3845 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
3846 * config/i386/xm-i386sco.h: Delete file.
3847 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
3848 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
3849 * config/i386/xm-i386v4.h: Delete file.
3850 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
3851 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
3852 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
3853 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
3854
6f009c8a
AC
3855 * config/vax/xm-vax.h: Delete file.
3856 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
3857 * config/vax/xm-vaxult2.h: Delete file.
3858 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
3859 * config/vax/vaxult2.mh (XM_FILE): Delete.
3860 * config/vax/xm-vaxult.h: Delete file.
3861 * config/vax/vaxult.mh (XM_FILE): Delete.
3862 * config/vax/xm-vaxbsd.h: Delete file.
3863 * config/vax/vaxbsd.mh (XM_FILE): Delete.
3864
9c8dbfa9
AC
3865 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
3866 * gdbarch.h, gdbarch.c: Re-generate.
3867 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
3868 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
3869 * frame.h: Delete deprecated_read_fp from comments.
3870 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
3871 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
3872
84367a3e
MK
38732004-08-04 Mark Kettenis <kettenis@gnu.org>
3874
9c8e3411
MK
3875 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
3876 trampoline in OpenBSD 3.5-current.
3877
b87bc0d8
MK
3878 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
3879 SSE registers.
3880
84367a3e
MK
3881 * Makefile.in: Remove embedded page breaks.
3882
a44bddec
JB
38832004-08-04 Jim Blandy <jimb@redhat.com>
3884
7ab3286f
JB
3885 * regcache.c (regcache_raw_read): Assert that, after calling
3886 target_fetch_registers, the register we're reading is cached.
3887
a44bddec
JB
3888 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
3889 a call to 'internal_error', with a more helpful error message.
3890 * rs6000-tdep.c (e500_pseudo_register_read,
870d65d5 3891 e500_pseudo_register_write, rs6000_store_return_value): Same.
a44bddec 3892
35124113
AC
38932004-08-04 Andrew Cagney <cagney@gnu.org>
3894
3895 * Makefile.in: Update dependencies.
3896
9f643768
JB
38972004-08-04 Jim Blandy <jimb@redhat.com>
3898
6ced10dd
JB
3899 Change the layout of the PowerPC E500 raw register cache to allow
3900 the lower 32-bit halves of the GPRS to be their own raw registers,
3901 not pseudoregisters.
3902 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
3903 add ppc_ev0_upper_regnum flag.
3904 * rs6000-tdep.c: #include "reggroups.h".
3905 (spe_register_p): Recognize the ev upper half registers as SPE
3906 registers.
3907 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
3908 registers.
3909 (e500_move_ev_register): New function.
3910 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
3911 vector registers are the pseudo-registers now, formed by splicing
3912 together the gprs and the upper-half registers.
3913 (e500_register_reggroup_p): New function.
3914 (P): Macro deleted.
3915 (P8, A4): New macro.
3916 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
3917 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
3918 macros.
3919 (registers_e500): Rearrange register set so that the raw register
3920 set contains 32-bit GPRs and upper-half registers, and the SPE
3921 vector registers become pseudo-registers.
3922 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
3923 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
3924 register numbers are now the same for the E500 as they are for
3925 other PowerPC variants. Register e500_register_reggroup_p as the
3926 register group function for the E500.
3927 * Makefile.in (rs6000-tdep.o): Update dependencies.
3928
3929 Adapt PPC E500 native support to the new raw regcache layout.
3930 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
3931 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
3932 (fetch_spe_register, store_spe_register): Handle fetching/storing
3933 all the SPE registers at once, if regno == -1. These now take
3934 over the job of fetch_spe_registers and store_spe_registers.
3935 (fetch_spe_registers, store_spe_registers): Deleted.
3936 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
3937 unconditionally; they're always raw. Fetch/store SPE upper half
3938 registers, if present, instead of ev registers.
3939 (fetch_register, store_register): Remove sanity checks: gprs are
3940 never pseudo-registers now, so we never need to even mention any
3941 registers that are ever pseudoregisters.
3942
9f643768
JB
3943 Use a fixed register numbering when communicating with the PowerPC
3944 simulator.
3945 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
3946 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
3947 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
3948 New functions.
3949 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
3950 init_sim_regno_table.
3951 * Makefile.in (gdb_sim_ppc_h): New variable.
3952 (rs6000-tdep.o): Update dependencies.
3953
1e2279c8
AC
39542004-08-02 Andrew Cagney <cagney@gnu.org>
3955
1d94326f
AC
3956 * cris-tdep.c (cris_register_size): Restore function, still used
3957 locally.
3958
331ae7ed
AC
3959 * gdbarch.sh (deprecated_target_read_fp)
3960 (deprecated_frame_locals_address, deprecated_frame_args_address)
3961 (deprecated_frame_chain_valid, deprecated_frame_chain)
3962 (deprecated_init_extra_frame_info, deprecated_pop_frame)
3963 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
3964 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
3965 * gdbarch.h, gdbarch.c: Re-generate.
3966 * regcache.c (deprecated_read_fp): Do not call
3967 DEPRECATED_TARGET_READ_FP_P.
3968 * infcmd.c (default_print_registers_info): Do not call
3969 DEPRECATED_DO_REGISTERS_INFO.
3970 * frame-base.c (default_frame_locals_address): Do not call
3971 DEPRECATED_FRAME_LOCALS_ADDRESS.
3972 (default_frame_args_address): Do not call
3973 DEPRECATED_FRAME_ARGS_ADDRESS.
3974
1e2279c8
AC
3975 * gdbarch.sh (deprecated_register_raw_size)
3976 (deprecated_register_virtual_size:int): Delete.
3977 * gdbarch.h, gdbarch.c: Re-generate.
3978 * cris-tdep.c (cris_register_size): Delete.
3979 (cris_gdbarch_init): Update.
3980 * alpha-tdep.c (alpha_register_raw_size)
3981 (alpha_register_virtual_size): Delete.
3982 (alpha_gdbarch_init): Update.
3983
a90c06b4
AC
3984 * gdbarch.sh (deprecated_register_virtual_type)
3985 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
3986 (deprecated_dummy_write_sp): Delete.
3987 * gdbarch.h, gdbarch.c: Re-generate.
3988
f42accbe
AC
3989 * gdbarch.sh (deprecated_register_bytes): Delete.
3990 * gdbarch.h, gdbarch.c: Re-generate.
3991 * regcache.c (deprecated_register_bytes): New function.
3992 * regcache.h (deprecated_register_bytes): Declare.
3993 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3994 * v850-tdep.c (v850_gdbarch_init): Update.
3995 * sh64-tdep.c (sh64_gdbarch_init): Update.
3996 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
3997 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3998 * mcore-tdep.c (mcore_gdbarch_init): Update.
3999 * cris-tdep.c (cris_gdbarch_init): Update.
4000 * arm-tdep.c (arm_gdbarch_init): Update.
4001 * remote.c (init_remote_state): Update.
4002 * remote-vx.c (vx_prepare_to_store): Update.
4003 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
4004 * irix5-nat.c (fetch_core_registers): Update.
4005 * cris-tdep.c (cris_register_bytes_ok): Update.
4006 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
4007
45c9dd44
AC
4008 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
4009 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
4010 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
4011 (mips_insn16_frame_base_address, mips_insn16_frame_base)
4012 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
4013 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
4014 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
4015 (mips_insn32_frame_base_address, mips_insn32_frame_base)
4016 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
4017 with mips_insn16 and mips_insn32.
4018
3acba339
AC
4019 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
4020 * rs6000-tdep.c (rs6000_push_dummy_call)
4021 (rs6000_extract_return_value): Use register_size.
4022 * xstormy16-tdep.c (xstormy16_get_saved_register)
4023 (xstormy16_extract_return_value): Ditto.
4024 * valops.c (value_assign): Ditto.
4025 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
4026 * v850-tdep.c (v850_extract_return_value): Ditto.
4027 * tracepoint.c (collect_symbol): Ditto.
4028 * target.c (debug_print_register): Ditto.
4029 * stack.c (frame_info): Ditto.
4030 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
4031 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
4032 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
4033 (store_register_using_P): Ditto.
4034 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
4035 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
4036 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
4037 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
4038 * regcache.c (deprecated_read_register_bytes)
4039 (deprecated_write_register_bytes, read_register)
4040 (write_register): Ditto.
4041 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
4042 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
4043 * monitor.c (monitor_supply_register, monitor_fetch_register)
4044 (monitor_store_register): Ditto.
4045 * mn10300-tdep.c (mn10300_pop_frame_regular)
4046 (mn10300_print_register): Ditto.
4047 * mipsv4-nat.c (fill_fpregset): Ditto.
4048 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
4049 (mips64_fill_fpregset): Ditto.
4050 * mi/mi-main.c (register_changed_p, get_register)
4051 (mi_cmd_data_write_register_values): Ditto.
4052 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
4053 * irix5-nat.c (fill_gregset, fetch_core_registers):
4054 * infrun.c (write_inferior_status_register): Ditto.
4055 * infptrace.c (fetch_register, store_register): Ditto.
4056 * infcmd.c (default_print_registers_info): Ditto.
4057 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
4058 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
4059 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
4060 * hpux-thread.c (hpux_thread_fetch_registers)
4061 (hpux_thread_store_registers): Ditto.
4062 * hppah-nat.c (store_inferior_registers, fetch_register):
4063 * findvar.c (value_from_register): Ditto.
4064 * dve3900-rom.c (fetch_bitmapped_register):
4065 * cris-tdep.c (cris_gdbarch_init): Ditto.
4066 * alpha-tdep.h: Ditto.
4067 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
4068
01e1877c
AC
4069 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
4070 DEPRECATED_REGISTER_RAW_SIZE from comments.
4071 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
4072 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
4073 DEPRECATED_REGISTER_RAW_SIZE.
4074 * findvar.c (value_of_register): Simplify by assuming that the
4075 registers raw and virtual sizes are identical.
4076 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
4077 comment.
4078 * arch-utils.c (generic_register_size): Simplify by assuming
4079 register_type.
4080
73f458fb
AC
4081 * regcache.c (legacy_read_register_gen, real_register)
4082 (legacy_write_register_gen): Delete, not used.
4083
336a3131
AC
4084 * regcache.c (struct regcache_descr): Delete legacy_p.
4085 (init_legacy_regcache_descr): Delete function.
4086 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
4087 Do not use deprecated register functions.
4088 (regcache_raw_read, deprecated_write_register_gen):
4089 (deprecated_read_register_gen, regcache_raw_write): Delete code
4090 predicated on legacy_p.
4091 (register_size): Delete check against register raw size.
4092
c1d546cd
AC
4093 * cris-tdep.c (cris_register_type): Replace
4094 cris_register_virtual_type.
4095 (cris_gdbarch_init): Update, set register_type.
4096
48c2c0a6
AC
4097 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
4098 * gdbarch.h, gdbarch.c: Re-generate.
4099 * arm-tdep.c (arm_frameless_function_invocation): Delete.
4100 (arm_gdbarch_init) Do not set frameless function invocation.
4101 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
4102 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
4103 * frv-tdep.c (frv_frameless_function_invocation): Delete.
4104 (frv_gdbarch_init): Do not set frameless function invocation.
4105 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
4106 * sh-tdep.c (sh_gdbarch_init): Ditto.
4107 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
4108 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4109 * avr-tdep.c (avr_gdbarch_init): Ditto.
4110
474093a6
AC
4111 * blockframe.c (legacy_frame_chain_valid): Delete function.
4112
3c109c8b
AC
4113 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
4114 and pc. Update comments.
4115 (pc_in_dummy_frame): Delete function.
4116 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
4117 use the "id".
4118 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
4119 call_hi, top and pc, use the id.
4120 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
4121
96860204
AC
4122 * dummy-frame.c: Include "gdb_string.h".
4123 (generic_save_call_dummy_addr, generic_push_dummy_frame)
4124 (generic_save_dummy_frame_tos): Delete.
4125 (dummy_frame_push): New function, replaces above.
4126 * dummy-frame.h: Update copyright.
4127 (dummy_frame_push): Declare.
4128 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
4129 (generic_save_call_dummy_addr): Delete declarations.
4130 * infcall.c: Include "dummy-frame.h".
4131 (call_function_by_hand): Add locals caller_regcache,
4132 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
4133 with call to frame_save_as_regcache plus cleanup. Delete calls to
4134 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
4135 Move clear_proceed_status to just before the resume, add call to
4136 dummy_frame_push (discard cleanup).
4137 * Makefile.in (infcall.o): Add $(dummy_frame_h).
4138 (dummy-frame.o): Add $(gdb_string_h).
4139
d67ec5db
AC
41402004-08-01 Andrew Cagney <cagney@gnu.org>
4141
4142 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
4143 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
4144 * dummy-frame.c (find_dummy_frame): Delete.
4145 (struct dummy_frame_cache, dummy_frame_sniffer)
4146 (dummy_frame_prev_register, dummy_frame_this_id)
4147 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
4148 frame unwinder using a dummy_frame_cache.
4149
a81dcb05
AC
41502004-08-01 Andrew Cagney <cagney@gnu.org>
4151
4152 * frame.h (frame_save_as_regcache): Declare.
4153 * frame.c (frame_save_as_regcache): New function.
4154 (do_frame_read_register): Replace do_frame_unwind_register.
4155 (frame_pop): Use frame_save_as_regcache.
4156 * dummy-frame.c (generic_push_dummy_frame): Use
4157 frame_save_as_regcache.
4158
aa495d11
JB
41592004-08-01 Joel Brobecker <brobecker@gnat.com>
4160
4161 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
4162 file as included until we record the first line in the linetable.
4163
ff65ac78
AC
41642004-08-01 Andrew Cagney <cagney@gnu.org>
4165
4166 * frame.h (deprecated_pop_dummy_frame)
4167 (deprecated_read_register_dummy)
4168 (deprecated_generic_find_dummy_frame): Delete.
4169 * dummy-frame.c (deprecated_generic_find_dummy_frame)
4170 (deprecated_read_register_dummy)
4171 (deprecated_find_dummy_frame_regcache)
4172 (discard_innermost_dummy)
4173 (deprecated_pop_dummy_frame): Delete.
4174 (dummy_frame_this_id): Simplify.
4175 (struct dummy_frame): Delete "fp" and "sp".
4176 (find_dummy_frame): Simplify.
4177 (generic_push_dummy_frame): Do not set "fp" or "sp".
4178 (fprint_dummy_frames): Do not print "fp" and "sp"
4179
37bdc87e
MK
41802004-08-01 Mark Kettenis <kettenis@gnu.org>
4181
4182 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
4183 (struct i386_insn): New structure.
4184 (i386_match_insn): New function.
4185 (i386_frame_setup_skip_insns): New variable.
4186 (i386_analyze_frame_setup): Change to use i386_match_insn and the
4187 array i386_frame_setup_insns of instructions that should be
4188 skipped inside the frame setup sequence.
4189
8241eaa6
AC
41902004-08-01 Andrew Cagney <cagney@gnu.org>
4191
5bc602c7
AC
4192 * frame.h (deprecated_frame_xmalloc_with_cleanup)
4193 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
4194 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
4195 * stack.c (frame_info): Delete references to
4196 DEPRECATED_FRAME_INIT_SAVED_REGS and
4197 deprecated_get_frame_saved_regs.
4198 * frame.c (struct frame_info): Delete saved_regs and extra_info.
4199 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
4200 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
4201 (frame_unwind_register_signed)
4202 (frame_unwind_register_unsigned)
4203 (frame_unwind_unsigned_register): Use register_size.
4204 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
4205 (deprecated_frame_xmalloc_with_cleanup)
4206 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
4207 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
4208
03d363a1
AC
4209 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
4210 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
4211 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
4212 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
4213
8241eaa6
AC
4214 * infcall.c (call_function_by_hand): Do not use
4215 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
4216 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
4217 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
4218 DEPRECATED_STACK_ALIGN.
4219
f00df8b7
AC
42202004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
4221
4222 Committed by Andrew Cagney.
4223 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
4224
eec63939
AC
42252004-08-01 Andrew Cagney <cagney@gnu.org>
4226
4227 * mips-tdep.c (mips16_frame_cache)
4228 (mips16_frame_this_id, mips16_frame_prev_register)
4229 (mips16_frame_unwind, mips16_frame_sniffer)
4230 (mips16_frame_base_address, mips16_frame_base)
4231 (mips16_frame_base_sniffer, mips32_frame_cache)
4232 (mips32_frame_this_id, mips32_frame_prev_register)
4233 (mips32_frame_unwind, mips32_frame_sniffer)
4234 (mips32_frame_base_address, mips32_frame_base)
4235 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
4236 separate heuristic mips16 and mips32 unwinders.
4237 (mips_stub_frame_cache, mips_stub_frame_this_id)
4238 (mips_stub_frame_prev_register)
4239 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
4240 (mips_stub_frame_base_address, mips_stub_frame_base)
4241 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
4242 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
4243 match true mdebug frames.
4244 (non_heuristic_proc_desc): Add forward declaration.
4245
e66299b3
AC
42462004-08-01 Andrew Cagney <cagney@gnu.org>
4247
83cbbf3e
AC
4248 * config/mips/tm-irix6.h: Delete file.
4249 * config/mips/tm-irix5.h: Delete file.
4250 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
4251 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
4252
22d41b37
AC
4253 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
4254 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
4255 * config/nm-gnu.h (NO_CORE_OPS): Delete.
4256 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
4257 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
4258 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
4259 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
4260 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
4261 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
4262 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
4263 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
4264 (TARGET_SIGNAL_RAW_VALUES): Delete.
4265 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
4266 Delete.
4267 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
4268 (TARGET_HW_WATCH_LIMIT): Delete.
4269 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
4270 * minimon.h: Delete file.
4271
e66299b3
AC
4272 * trad-frame.c (trad_frame_get_this_base)
4273 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
4274 functions.
4275 * trad-frame.h (trad_frame_set_this_base)
4276 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
4277
1f67027d
AC
42782004-07-31 Andrew Cagney <cagney@gnu.org>
4279
4280 * trad-frame.c (trad_frame_get_prev_register): Rename
4281 trad_frame_get_prev_register.
4282 * vax-tdep.c (vax_frame_prev_register): Update.
4283 * trad-frame.h: Update.
4284 * trad-frame.c (trad_frame_get_register): Update.
4285 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
4286 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
4287 Update.
4288 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
4289 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
4290 Update.
4291 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
4292 Update.
4293 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
4294 Update.
4295 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
4296 Update.
4297 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
4298 Update.
4299 * s390-tdep.c (s390_frame_prev_register)
4300 (s390_stub_frame_prev_register)
4301 (s390_sigtramp_frame_prev_register): Update.
4302 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
4303 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
4304 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
4305 * m88k-tdep.c (m88k_frame_prev_register)
4306 * m68hc11-tdep.c (m68hc11_frame_prev_register)
4307 * m32r-tdep.c (m32r_frame_prev_register): Update.
4308 * hppa-tdep.c (hppa_frame_prev_register_helper)
4309 * frv-tdep.c (frv_frame_prev_register): Update.
4310 * d10v-tdep.c (d10v_frame_prev_register): Update.
4311 * cris-tdep.c (cris_frame_prev_register): Update.
4312 * avr-tdep.c (avr_frame_prev_register): Update.
4313 * arm-tdep.c (arm_prologue_prev_register)
4314 (arm_sigtramp_prev_register): Update.
4315
c1bf6f65
AC
43162004-07-31 Andrew Cagney <cagney@gnu.org>
4317
4318 * frame.h (legacy_saved_regs_unwind)
4319 (legacy_frame_chain_valid, legacy_frame_p)
4320 (enum frame_type): Delete UNKNOWN_FRAME.
01fbbd97
AC
4321 * dummy-frame.c (dummy_frame_this_id): Simplify.
4322 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
c1bf6f65
AC
4323 * frame.c (struct frame_info): Delete the field "type".
4324 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
4325 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
4326 (legacy_saved_regs_unwind, legacy_frame_p)
4327 (frame_type_from_pc): Delete.
4328 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
4329 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
4330
dc856692
MK
43312004-07-31 Mark Kettenis <kettenis@gnu.org>
4332
5a5effe1
MK
4333 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
4334 indentation.
4335
d4fd50a6
MK
4336 * mips-nat.c: Remove file.
4337 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
4338 (mips-nat.o): Remove dependency.
4339
2689df5a
MK
4340 * infptrace.c: Update copyright year.
4341 (fetch_register): Pass NULL in regcache_raw_supply call instead of
4342 explicitly setting the buffer to all zeroes.
4343
dc856692
MK
4344 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
4345 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
4346
763910e0
AC
43472004-07-30 Andrew Cagney <cagney@gnu.org>
4348
4349 * GDB 6.2 released from gdb_6_2-branch.
4350
0b66e38c
EZ
43512004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
4352
4353 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
4354
4355 * exec.c (exec_file_attach):
4356 * nto-tdep.c (nto_find_and_open_solib):
4357 * pa64solib.c (pa64_solib_sizeof_symbol_table):
4358 * solib.c (solib_open):
4359 * somsolib.c (som_solib_sizeof_symbol_table):
4360 * source.c (is_regular_file, openp, open_source_file):
4361 * symfile.c (symfile_bfd_open):
4362 * wince.c (upload_to_device): Differentiate between the search for
4363 binary and source files.
4364
be7d7357
AC
43652004-07-30 Andrew Cagney <cagney@gnu.org>
4366
4367 * complaints.c (_initialize_complaints): Pass NULL to
4368 add_setshow_zinteger_cmd for help_doc.
4369 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
4370
ddc9cd0f
AC
43712004-07-30 Andrew Cagney <cagney@gnu.org>
4372
4373 Fix PR i18n/761.
4374 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
4375 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
4376 $(PACKAGE).pot and update-po.
4377 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
4378 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
4379 (update-po): New rules.
4380 (localedir): Define using autoconf.
4381 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
4382 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
4383 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
4384 * configure.in: Generate CATALOGS and LINGUAS from contents of
4385 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
4386 * configure: Re-generate.
4387 * po/gdbtext: New file
4388
e92f3704
JG
43892004-07-30 Jerome Guitton <guitton@gnat.com>
4390
4391 * MAINTAINERS: Reorder Write After Approval list in alphabetical
4392 order.
4393
b0f35d58
DL
43942004-07-30 David Lecomber <dsl@sources.redhat.com>
4395
4396 * dwarf2read.c (read_file_scope): Set producer if attribute
4397 present.
4398 (struct dwarf2_cu): Added new member producer.
4399
ce7d4522
JG
44002004-07-30 Jerome Guitton <guitton@gnat.com>
4401
4402 * inflow.c (kill_command): release file handles in BFD.
4403 * exec.c (exec_file_attach): Ditto.
4404 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
4405
05ee07c7
AC
44062004-07-29 Andrew Cagney <cagney@gnu.org>
4407
4408 * PROBLEMS (mips-irix): Note that it is broken.
4409
62eceb47
AC
44102004-07-29 Andrew Cagney <cagney@gnu.org>
4411
e57b8d41
AC
4412 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
4413 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
4414
d334389b
AC
4415 * config/xm-nbsd.h: Delete file.
4416 * config/arm/xm-nbsd.h: Delete file.
4417 * config/i386/xm-nbsd.h: Delete file.
4418 * config/ns32k/xm-nbsd.h: Delete file.
4419 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
4420 * config/i386/nbsdelf.mh (XM_FILE): Delete.
4421 * config/i386/nbsdaout.mh (XM_FILE): Delete.
4422 * config/arm/nbsdelf.mh (XM_FILE): Delete.
4423 * config/arm/nbsdaout.mh (XM_FILE): Delete.
4424
e910f676
AC
4425 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
4426 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
4427 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
4428 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
4429 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
4430 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
4431
6fa856b9
AC
4432 * config/powerpc/xm-linux.h: Delete empty file.
4433 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
4434 * config/powerpc/linux.mh (XM_FILE): Delete.
4435 * config/m68k/xm-linux.h: Delete empty file.
4436 * config/m68k/linux.mh (XM_FILE): Delete.
4437 * config/ia64/xm-linux.h: Delete empty file.
4438 * config/ia64/linux.mh (XM_FILE): Delete.
4439 * config/arm/xm-linux.h: Delete empty file.
4440 * config/arm/linux.mh (XM_FILE): Delete.
4441
471ae5ae
AC
4442 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4443 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
4444 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4445 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
4446 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4447 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
4448 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4449 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
4450
62eceb47
AC
4451 * config/m68k/xm-m68k.h: Delete file.
4452 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
4453 copyright.
4454 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
4455 * config/pa/xm-linux.h: Delete empty file.
4456 * config/pa/linux.mh (XM_FILE): Delete.
4457 * config/i386/xm-i386.h: Delete empty file.
4458 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
4459 "i386/xm-i386.h".
4460 * config/i386/obsdaout.mh (XM_FILE): Delete.
4461 * config/i386/obsd64.mh (XM_FILE): Delete.
4462 * config/i386/fbsd64.mh (XM_FILE): Delete.
4463 * config/i386/nto.mh (XM_FILE): Delete.
4464 * config/i386/obsd.mh (XM_FILE): Delete.
4465 * config/i386/linux64.mh (XM_FILE): Delete.
4466 * config/i386/linux.mh (XM_FILE): Delete.
4467 * config/i386/i386sol2.mh (XM_FILE): Delete.
4468 * config/i386/i386gnu.mh (XM_FILE): Delete.
4469 * config/i386/fbsd.mh (XM_FILE): Delete.
4470 * config/i386/nbsd64.mh (XM_FILE): Delete.
4471
c35f4ffc
AC
44722004-07-29 Andrew Cagney <cagney@gnu.org>
4473
4474 * config/pa/xm-linux.h: Do not include "floatformat.h".
4475 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4476 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
4477 * config/i386/xm-i386.h: Do not include "floatformat.h".
4478 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4479 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
4480 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4481 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
4482 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
4483 GDB_HOST_LONG_DOUBLE_FORMAT instead.
4484 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
4485 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
4486 * configure, config.in: Regenerate.
4487 * configure.host (gdb_host_float_format, gdb_host_double_format)
4488 (gdb_host_long_double_format): Set according to the host.
4489
624a44a3
AC
44902004-07-29 Andrew Cagney <cagney@gnu.org>
4491
4492 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
4493
0dea2468
AC
44942004-07-28 Andrew Cagney <cagney@gnu.org>
4495
4496 * PROBLEMS: Mention threads/1650.
4497 * NEWS: Mention the NPTL fix.
4498
b3f42336
AC
44992004-07-28 Andrew Cagney <cagney@gnu.org>
4500
4501 * cli/cli-decode.c (add_setshow_cmd): Delete function.
4502 (add_setshow_cmd_full): Make static.
4503 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
4504 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
4505 * cli/cli-decode.c (add_setshow_filename_cmd)
4506 (add_setshow_string_cmd): New functions.
4507 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
4508 * mips-tdep.c (_initialize_mips_tdep): Update.
4509 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
4510 * cli/cli-logging.c (_initialize_cli_logging): Update.
4511 * complaints.c (_initialize_complaints): Update.
4512 * remote.c (_initialize_remote): Update.
4513
3b64bf98
AC
45142004-07-28 Andrew Cagney <cagney@gnu.org>
4515
4516 * cli/cli-decode.c (add_setshow_zinteger_cmd)
4517 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
4518 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
4519 print parameters. Make string parameters constant.
4520 * command.h: Update. Update copyright.
4521 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
4522 * observer.c (_initialize_observer): Ditto.
4523 * frame.c (_initialize_frame): Ditto.
4524 * complaints.c (_initialize_complaints): Ditto.
4525 * maint.c (_initialize_maint_cmds): Ditto.
4526 * target.c (initialize_targets): Ditto.
4527 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
4528 * infcall.c (_initialize_infcall): Ditto.
4529 * arm-tdep.c (_initialize_arm_tdep): Ditto.
4530 * m32r-rom.c (_initialize_m32r_rom): Ditto.
4531 * remote-rdi.c (_initialize_remote_rdi): Ditto.
4532 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
4533 * mips-tdep.c (_initialize_mips_tdep): Ditto.
4534
e9667a65
AC
45352004-07-28 Andrew Cagney <cagney@gnu.org>
4536
54a5b07d
AC
4537 * gdbtypes.c (lookup_primitive_typename): Delete function.
4538 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
4539 * ada-lex.l: Use language_lookup_primitive_type_by_name.
4540 * gdbtypes.c (lookup_typename): Ditto.
4541 * f-exp.y (yylex): Ditto.
4542 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
4543
e9667a65
AC
4544 * scm-lang.c (c_builtin_types): Delete extern declaration.
4545 (scm_language_defn): Replace
4546 string_char_type and primitive_type_vector with
4547 la_language_arch_info.
4548 * jv-lang.c (java_language_defn): Replace
4549 string_char_type and primitive_type_vector with
4550 la_language_arch_info.
4551 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
4552 c_builtin_types in comment.
4553 * c-lang.h (struct language_arch_info): Declare opaque.
4554 (c_language_arch_info): Declare.
4555 (c_builtin_types): Delete declaration.
4556 * c-lang.c (c_language_arch_info): Set string_char_type to
4557 builtin_char, not builtin_true_char. Make global.
4558 (c_builtin_types): Delete array.
4559 (asm_language_defn, minimal_language_defn): Replace
4560 string_char_type and primitive_type_vector with
4561 la_language_arch_info.
4562
685419e2
AC
45632004-07-28 Andrew Cagney <cagney@gnu.org>
4564
4565 * gdbtypes.h (struct builtin_type): Rename true_char to
4566 builtin_true_char.
4567 * gdbtypes.c (gdbtypes_post_init): Update.
4568 * c-lang.c (arch_info): New function.
4569 (enum c_primitive_types): New enum.
4570 (c_language_defn): Instead of string_char_type and
4571 primitive_type_vector set la_language_arch_info.
4572
5a44ea29
AC
45732004-07-28 Andrew Cagney <cagney@gnu.org>
4574
4575 * language.h (struct language_arch_info): Fix typo
4576 s/primative/primitive/.
4577 * gdbtypes.c (lookup_primitive_typename): Ditto.
4578 * language.c (language_lookup_primitive_type_by_name)
4579 (unknown_language_arch_info): Ditto.
4580
f290d38e
AC
45812004-07-27 Andrew Cagney <cagney@gnu.org>
4582
4583 * defs.h (enum language): Add nr_languages.
4584 * language.h (struct language_arch_info): Define.
4585 (struct language_defn): Add la_language_arch_info.
4586 (language_lookup_primative_type_by_name): Declare.
4587 (language_string_char_type): Declare.
4588 * language.c (_initialize_language, language_gdbarch_post_init)
4589 (struct language_gdbarch, language_gdbarch_data): Implement
4590 per-architecture language information.
4591 (unknown_language_arch_info, language_string_char_type)
4592 (language_lookup_primative_type_by_name): New functions.
4593 (unknown_language_defn, auto_language_defn)
4594 (local_language_defn): Set la_language_arch_info to
4595 unknown_language_arch_info.
4596 (unknown_builtin_types): Delete.
4597 * gdbtypes.c (lookup_primitive_typename): Use
4598 language_lookup_primative_type_by_name.
4599 (create_string_type): Use language_string_char_type.
4600 * values.c (value_from_string): Use language_string_char_type.
4601 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
4602 * p-lang.c (pascal_language_defn): Ditto.
4603 * m2-lang.c (m2_language_defn): Ditto.
4604 * jv-lang.c (java_language_defn): Ditto.
4605 * objc-lang.c (objc_language_defn): Ditto.
4606 * f-lang.c (f_language_defn): Ditto.
4607 * c-lang.c (c_language_defn, cplus_language_defn)
4608 (asm_language_defn, minimal_language_defn): Ditto.
4609
000177f0
AC
46102004-07-27 Andrew Cagney <cagney@gnu.org>
4611
4612 * gdbtypes.h (struct builtin_type): Declare.
4613 (builtin_type): Declare.
4614 * d10v-tdep.c (d10v_register_type): Use builtin_type.
4615 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
4616 (gdbtypes_post_init): New function.
4617 (builtin_type): New function.
4618
e22f895c
KI
46192004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
4620
4621 * remote-m32r-sdi.c: Fix breakpoint bug.
4622 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
4623 recv_char_data, recv_long_data): New functions to replace communication
4624 sequences.
4625
536517dd
MC
46262004-07-26 Michael Chastain <mec.gnu@mindspring.com>
4627
4628 Document PR threads/1650.
4629 * PROBLEMS (Threads): Document problem with many threads
4630
a0a44d18
AC
46312004-07-26 Andrew Cagney <cagney@gnu.org>
4632
4633 * gdb-mi.el: Move from here ...
4634 * mi/gdb-mi.el: ... to here.
4635
7ac4ac06
AC
46362004-07-26 Andrew Cagney <cagney@gnu.org>
4637
4638 Problem reported by Ashley Pittman <ashley@quadrics.com>.
4639 * main.c (captured_main): When in batch mode always detach.
4640
a1b461bf
AC
46412004-07-26 Andrew Cagney <cagney@gnu.org>
4642
4643 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
4644 and h8300 as broken.
4645 * NEWS: END-OF-LIFE frame compatibility module.
4646 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
4647 specific comments.
4648
cb1a6d5f
AC
46492004-07-26 Andrew Cagney <cagney@gnu.org>
4650
4651 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
4652 * xcoffsolib.c (_initialize_xcoffsolib): Update.
4653 * wince.c (_initialize_wince): Update.
4654 * win32-nat.c (_initialize_win32_nat): Update.
4655 * varobj.c (_initialize_varobj): Update.
4656 * valops.c (_initialize_valops): Update.
4657 * utils.c (initialize_utils, initialize_utils): Update.
4658 * tui/tui-win.c (_initialize_tui_win): Update.
4659 * top.c (init_main): Update.
4660 * symfile.c (_initialize_symfile): Update.
4661 * source.c (_initialize_source): Update.
4662 * somsolib.c (_initialize_som_solib): Update.
4663 * solib.c (_initialize_solib): Update.
4664 * solib-frv.c (_initialize_frv_solib): Update.
4665 * serial.c (_initialize_serial): Update.
4666 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
4667 * remote.c (_initialize_remote, _initialize_remote): Update.
4668 * remote-vx.c (_initialize_vx): Update.
4669 * remote-utils.c (_initialize_sr_support): Update.
4670 * remote-sds.c (_initialize_remote_sds): Update.
4671 * remote-mips.c (_initialize_remote_mips): Update.
4672 * remote-e7000.c (_initialize_remote_e7000): Update.
4673 * proc-api.c (_initialize_proc_api): Update.
4674 * printcmd.c: Update.
4675 * parse.c (_initialize_parse): Update.
4676 * pa64solib.c (_initialize_pa64_solib): Update.
4677 * p-valprint.c (_initialize_pascal_valprint): Update.
4678 * monitor.c (_initialize_remote_monitors): Update.
4679 * mips-tdep.c (_initialize_mips_tdep): Update.
4680 * mcore-tdep.c (_initialize_mcore_tdep): Update.
4681 * maint.c (_initialize_maint_cmds): Update.
4682 * lin-lwp.c (_initialize_lin_lwp): Update.
4683 * language.c (_initialize_language): Update.
4684 * kod.c (_initialize_kod): Update.
4685 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
4686 * i386-tdep.c (_initialize_i386_tdep): Update.
4687 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
4688 * gdbarch.sh: Update.
4689 * gdbarch.c: Re-generate.
4690 * gdb-events.sh: Update.
4691 * gdb-events.c: Re-generate.
4692 * frame.c (_initialize_frame): Update.
4693 * exec.c: Update.
4694 * demangle.c (_initialize_demangler): Update.
4695 * dcache.c (_initialize_dcache): Update.
4696 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
4697 * cp-valprint.c (_initialize_cp_valprint): Update.
4698 * corefile.c (_initialize_core): Update.
4699 * command.h: Update.
4700 * cli/cli-decode.h: Update.
4701 * cli/cli-cmds.c (init_cli_cmds): Update.
4702 * charset.c (_initialize_charset): Update.
4703 * breakpoint.c (_initialize_breakpoint): Update.
4704 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
4705 * alpha-tdep.c (_initialize_alpha_tdep): Update.
4706 * aix-thread.c (_initialize_aix_thread): Update.
4707
b4632131
MK
47082004-07-24 Mark Kettenis <kettenis@gnu.org>
4709
4710 Partial fix for PR backtrace/1718.
4711 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
4712 that GCC migrates into the prolugue. Don't handle any
4713 instructions that clobber %ebx.
4714
822c9732
AC
47152004-07-23 Andrew Cagney <cagney@gnu.org>
4716
4717 Use regcache_raw_collect instead of regcache_collect.
4718 * regcache.h (regcache_collect): Delete declaration.
4719 * regcache.c (regcache_colect): Delete function.
4720 * win32-nat.c (do_child_store_inferior_registers): Update.
4721 * sol-thread.c (sol_thread_store_registers): Update.
4722 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
4723 * rs6000-nat.c (store_register): Update.
4724 * remote.c (store_register_using_P, remote_store_registers): Update.
4725 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
4726 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
4727 (fill_vrregset, store_spe_registers, fill_gregset)
4728 (fill_gregset): Update.
4729 * nto-procfs.c (procfs_store_registers): Update.
4730 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
4731 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
4732 * m68klinux-nat.c (store_register, fill_gregset): Update.
4733 * m68k-tdep.c (fill_gregset): Update.
4734 * infptrace.c (store_register): Update.
4735 * i386-nto-tdep.c (i386nto_regset_fill): Update.
4736 * i386-linux-nat.c (store_register, fill_gregset): Update.
4737 * hppa-linux-nat.c (fill_gregset): Update.
4738 * go32-nat.c (store_register): Update.
4739 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
4740 (store_fp_regs): Update.
4741 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
4742 (store_nwfpe_extended, store_fpregister, store_fpregs)
4743 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
4744 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
4745 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
4746 (store_regs_user_thread, store_regs_kernel_thread): Update.
4747
32b05c07
MK
47482004-07-24 Mark Kettenis <kettenis@gnu.org>
4749
4750 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
4751 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
4752 encoding.
4753 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
4754 member of `struct comp_unit'.
4755
8567c30f
AC
47562004-07-23 Andrew Cagney <cagney@gnu.org>
4757
4758 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
4759 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
4760
f6da8dd8
MH
47612004-07-23 Martin Hunt <hunt@redhat.com>
4762 Kevin Buettner <kevinb@redhat.com>
4763
4764 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
4765 alignment was being added to the offset instead of multiplied.
4766
bd921882
MK
47672004-07-23 Mark Kettenis <kettenis@gnu.org>
4768
24f033e8
MK
4769 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
4770 changed signal trampoline in OpenBSD 3.5-current.
4771
90f3cecd
MK
4772 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
4773 <machine/pcb.h> and "bsd-kvm.h".
4774 (sparc64nbsd_supply_pcb): New function.
4775 (_initialize_sparc64nbsd_nat): Renamed from
4776 _initialize_sparcnbsd_nat. Enable libkvm interface.
4777 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
4778 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
4779 (LOADLIBES): New variable.
4780
a4954a62
MK
4781 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
4782
bd921882
MK
4783 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
4784
23a6d369
AC
47852004-07-21 Andrew Cagney <cagney@gnu.org>
4786
4787 Use regcache_raw_supply instead of supply_register.
4788 * regcache.h (supply_register): Delete declaration.
4789 * regcache.c (supply_register): Delete function.
4790 * wince.c (do_child_fetch_inferior_registers): Update.
4791 * win32-nat.c (do_child_fetch_inferior_registers)
4792 (fetch_elf_core_registers): Update.
4793 * v850ice.c (v850ice_fetch_registers): Update.
4794 * thread-db.c (thread_db_store_registers): Update.
4795 * sol-thread.c (sol_thread_store_registers): Update.
4796 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
4797 * rs6000-nat.c (fetch_register): Update.
4798 * rom68k-rom.c (rom68k_supply_one_register): Update.
4799 * remote.c (remote_wait, remote_async_wait): Update.
4800 * remote-st.c (get_hex_regs): Update.
4801 * remote-sim.c (gdbsim_fetch_register): Update.
4802 * remote-sds.c (sds_fetch_registers): Update.
4803 * remote-rdp.c (remote_rdp_fetch_register): Update.
4804 * remote-rdi.c (arm_rdi_fetch_registers): Update.
4805 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
4806 * remote-m32r-sdi.c (m32r_fetch_register): Update.
4807 * remote-hms.c (init_hms_cmds): Update.
4808 * remote-est.c (init_est_cmds): Update.
4809 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
4810 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
4811 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
4812 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
4813 (fetch_register, supply_vrregset, supply_vrregset)
4814 (fetch_spe_registers): Update.
4815 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
4816 * monitor.c (monitor_supply_register): Update.
4817 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
4818 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
4819 (mipsnbsd_supply_fpreg): Update.
4820 * mips-nat.c (fetch_inferior_registers)
4821 (fetch_core_registers): Update.
4822 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
4823 (supply_fpregset, mips64_supply_gregset)
4824 (mips64_supply_fpregset): Update.
4825 * m68klinux-nat.c (fetch_register, supply_gregset)
4826 (supply_fpregset): Update.
4827 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
4828 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
4829 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
4830 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
4831 * infptrace.c (fetch_register): Update.
4832 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
4833 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
4834 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
4835 (gnu_fetch_registers, gnu_store_registers): Update.
4836 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
4837 * i386-linux-nat.c (fetch_register, supply_gregset)
4838 (dummy_sse_values): Update.
4839 * hpux-thread.c (hpux_thread_fetch_registers): Update.
4840 * hppah-nat.c (fetch_register): Update.
4841 * hppa-linux-nat.c (fetch_register, supply_gregset)
4842 (supply_fpregset): Update.
4843 * go32-nat.c (fetch_register): Update.
4844 * dve3900-rom.c (fetch_bitmapped_register)
4845 (_initialize_r3900_rom): Update.
4846 * cris-tdep.c (supply_gregset): Update.
4847 * abug-rom.c (init_abug_cmds): Update.
4848 * core-aout.c (fetch_core_registers): Update.
4849 * armnbsd-nat.c (supply_gregset, supply_fparegset)
4850 (fetch_register, fetch_fp_register): Update.
4851 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
4852 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
4853 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
4854 * alphanbsd-tdep.c (fetch_core_registers): Update.
4855 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
4856 * alpha-nat.c (fetch_osf_core_registers)
4857 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
4858 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
4859 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
4860
73cc75f3
AC
48612004-07-21 Andrew Cagney <cagney@gnu.org>
4862
4863 * PROBLEMS: Mention breakpoints/1702.
4864 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
4865 that is known to work.
4866
a53c66de
AC
48672004-07-21 Andrew Cagney <cagney@gnu.org>
4868
4869 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
4870 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
4871 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
4872 (handle_inferior_event): Wrap call to deprecated
4873 IGNORE_HELPER_CALL in #ifdef.
4874 * config/mips/tm-nbsd.h: Update.
4875
708ff411
JB
48762004-07-20 Jim Blandy <jimb@redhat.com>
4877
412b3060
JB
4878 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
4879 bfd_mach_ppc has no segment registers.
4880
13ac140c
JB
4881 Include PowerPC SPR numbers for special-purpose registers.
4882 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
4883 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
4884 new member in initializer.
4885 (S, S4, SN4, S64): New macros for defining special-purpose
4886 registers.
4887 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
4888 registers_403, registers_403GC, registers_505, registers_860,
4889 registers_601, registers_602, registers_603, registers_604,
4890 registers_750, registers_e500): Use them.
4891
708ff411
JB
4892 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
4893 replace references with expression used to initialize variable.
4894
1f602b35
AC
48952004-07-20 Andrew Cagney <cagney@gnu.org>
4896
4897 * breakpoint.c (deprecated_read_memory_nobpt): Rename
4898 read_memory_nobpt.
4899 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
4900 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
4901 (s390_sigtramp_frame_sniffer): Update.
4902 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
4903 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
4904 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
4905 (mips32_fetch_instruction): Update.
4906 * mcore-tdep.c (get_insn): Update.
4907 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
4908 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
4909 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
4910 * i386-linux-tdep.c (i386_linux_sigtramp_start)
4911 (i386_linux_rt_sigtramp_start): Update.
4912 * i386-linux-nat.c (child_resume): Update.
4913 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
4914 * hppa-linux-tdep.c (insns_match_pattern): Update.
4915 * gdbcore.h: Update.
4916 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
4917 * frame.c (safe_frame_unwind_memory): Update.
4918 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
4919 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
4920 * alpha-tdep.c (alpha_read_insn): Update.
4921
2cd8546d
AC
49222004-07-20 Andrew Cagney <cagney@gnu.org>
4923
4924 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
4925 containing both bytes and mask. Add "frame_type".
4926 * tramp-frame.c (tramp_frame_start): Update.
4927 (tramp_frame_prepend_unwinder): Update.
4928 * mips-linux-tdep.c (mips_linux_o32_sigframe)
4929 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
4930 (mips_linux_n64_rt_sigframe): Update. Make "static const".
4931 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
4932
f928dd62
EZ
49332004-07-19 Eli Zaretskii <eliz@gnu.org>
4934
4935 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
4936 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
4937 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
4938 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
4939
d5c560f7
AC
49402004-07-17 Andrew Cagney <cagney@gnu.org>
4941
860660cb
AC
4942 * NEWS, PROBLEMS: Update for 6.2.
4943
8c266f54
AC
4944 * README: Update to 6.2.
4945
a552edd9
AC
4946 * utils.c (xvasprintf): Call xstrvprintf.
4947
c4a172b5
AC
4948 * parse.c: Update copyright.
4949 (null_post_parser): Eliminate ARGSUSED.
4950
da745b36
AC
4951 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
4952 * tui/tui-win.c (tui_get_cmd_list): Ditto.
4953 * symfile-mem.c (_initialize_symfile_mem): Ditto.
4954
9cbc6ef0
AC
4955 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
4956 * ppc-linux-nat.c: Use "Linux kernel".
4957 * hppa-linux-tdep.c: Use GNU/Linux.
4958 * hppa-linux-nat.c: Use GNU/Linux.
4959 * dwarfread.c: Add [sic] to use of Linux.
4960
1b89295f
AC
4961 * hppa-linux-nat.c: Do not include <string.h>.
4962 (supply_fpregset): Remove "register" attribute.
4963
d5c560f7
AC
4964 * solib-frv.c (fetch_loadmap): Use xfree, not free.
4965
7ddd7709
MK
49662004-07-17 Mark Kettenis <kettenis@gnu.org>
4967
b1d19a62
MK
4968 * configure.in: Define _MSE_INT_H on Solaris 9 too.
4969 * configure, config.in: Regenerated.
4970
7ddd7709
MK
4971 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
4972 "bsd-kvm.h".
4973 (vaxbsd_supply_pcb): New function.
4974 (_initialize_vaxbsd_nat): New prototype and function.
4975 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
4976 solib-sunos.o.
4977 (LOADLIBES): New variable.
4978 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
4979 (LOADLIBES): New variable.
4980 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
4981 (LOADLIBES): New variable.
4982 * Makefile.in (vaxbsd-nat.o): Update dependencies.
4983
2c07db7a
AC
49842004-07-16 Andrew Cagney <cagney@gnu.org>
4985
4986 * defs.h (event_loop_p): Replace variable declaration with macro,
4987 always 1.
4988 * main.c (captured_main): Delete options "-async" and "-noasync".
4989 (event_loop_p): Delete variable.
4990 * NEWS: Mention that "-async" and "-noasync" were removed.
4991
717eb1cf
AC
49922004-07-16 Andrew Cagney <cagney@gnu.org>
4993
4994 * remote-m32r-sdi.c: Re-indent.
4995
c101bc14
JB
49962004-07-16 Jim Blandy <jimb@redhat.com>
4997
5109a438
JB
4998 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
4999 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
5000 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
5001 missing MPC823 SPRs.
5002 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
5003 incorrect. (This was corrected in GDB's register name tables on
5004 2004-07-14.)
5005
c101bc14
JB
5006 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
5007 should be "esasrr" ("ESA Save and Restore Register").
5008
7ce450bd
AC
50092004-07-16 Andrew Cagney <cagney@gnu.org>
5010
5011 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
5012 calls, no longer applicable. Update comments and rename parameter
5013 "step_frame" to "return_frame".
5014
ca73dd9d
AC
50152004-07-16 Andrew Cagney <cagney@gnu.org>
5016
5017 * frame.c (fprint_field): New function.
5018 (fprint_frame_id): Use fprint_field.
5019
31941f6d
JB
50202004-07-15 Joel Brobecker <brobecker@gnat.com>
5021
5022 * ada-lang.c (ada_language_defn): Remove commented out code.
5023
f86a7158
JB
50242004-07-15 Jim Blandy <jimb@redhat.com>
5025
5026 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
5027 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
5028
c24791ec
JB
50292004-07-14 Jim Blandy <jimb@redhat.com>
5030
29bb1356
JB
5031 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
5032
cc98b5cc
JB
5033 * ppc-tdep.h (ppc_num_vrs): New enum constant.
5034
8f088af7
JB
5035 * ppc-tdep.h (ppc_num_srs): New enum constant.
5036
0ea0ec5f
JB
5037 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
5038 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
5039 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
5040 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
5041 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
5042 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
5043 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
5044 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
5045 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
5046 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
5047 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
5048 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
5049 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
5050 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
5051 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
5052 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
5053 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
5054 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
5055 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
5056 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
5057 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
5058 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
5059 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
5060 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
5061 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
5062 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
5063 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
5064 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
5065 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
5066 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
5067 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
5068 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
5069 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
5070 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
5071 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
5072 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
5073 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
5074 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
5075 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
5076 special-purpose register numbers.
5077
c24791ec
JB
5078 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
5079 manual mentions 'md_twb', but many mention 'm_twb', and at that
5080 point in the register list.)
5081
d833db3b
AC
50822004-07-14 Andrew Cagney <cagney@gnu.org>
5083
5084 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
5085 instead of "internal-error".
5086
080228b2
JB
50872004-07-10 Joel Brobecker <brobecker@gnat.com>
5088
5089 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
5090 that was inserted inside a comment.
5091
c268433a
RC
50922004-07-10 Randolph Chung <tausq@debian.org>
5093
5094 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
5095 function.
5096 (hppa_hpux_push_dummy_code): New function.
5097 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
5098 Set find_global_pointer method.
5099
71009278
MK
51002004-07-10 Mark Kettenis <kettenis@gnu.org>
5101
5102 * NEWS: Mention BSD libkvm interface.
5103
b2fa5097
MS
51042004-07-10 Michael Snyder <msnyder@redhat.com>
5105
5106 * symfile.c (generic_load): Comment typo.
5107 * stack.c (get_selected_block): Ditto.
5108 * regcache.c (regcache_cooked_read): Ditto.
5109 * monitor.c (monitor_debug): Ditto.
5110 * mips-tdep.c (mips_read_pc): Ditto.
5111 * i386-linux-nat.c (ps_get_thread_area): Ditto.
5112 * gdb_mbuild.sh: Ditto.
5113 * gdbarch.sh: Ditto.
5114 * gdbarch.h: Ditto.
5115
c3e5cd34
PH
51162004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
5117
8a2225b2
PH
5118 * ada-tasks.c: Remove file.
5119
c3e5cd34
PH
5120 Remove ARI problems:
5121
5122 * ada-exp.y (write_var_from_sym): Reformat to put operator at
5123 beginning of line.
5124
5125 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
5126 Add comment.
5127 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
5128 (MIN_OF_SIZE): Rename min_of_size. Add comment.
5129 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
5130 (UMIN_OF_SIZE): Remove.
5131 (max_of_type): New function to replace orphan macro in gdbtypes.h
5132 (min_of_type): Ditto.
5133 (discrete_type_high_bound): Use max_of_type.
5134 (discrete_type_low_bound): Use min_of_type.
5135 (possible_user_operator_p): Move operator to beginning of line.
5136 (ada_is_variant_part): Ditto.
5137 (ensure_lval): Rewrite to avoid deprecated operations.
5138 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
5139 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
5140 (ada_enum_name): Remove assignments in 'if' statements.
5141 (build_ada_types): Add gdbarch parameter.
5142 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
5143 with gdbarch_data_register_post_init.
5144 Use add_setshow_uinteger_cmd rather than add_set_cmd and
5145 add_show_from_set.
5146
5147 * ada-valprint.c (inspect_it): Remove declaration.
5148 (repeat_count_threshold): Remove declaration.
5149 (ada_print_floating): Remove assignments in 'if' statements.
5150 (print_str): Move operator to beginning of line.
5151
61ce229a
JB
51522004-07-08 Jim Blandy <jimb@redhat.com>
5153
5154 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
5155
09bcec80
BR
51562004-07-08 Bob Rossi <bob@brasko.net>
5157
5158 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
5159
31c27f77
JJ
51602004-07-06 Jeff Johnston <jjohnstn@redhat.com>
5161
5162 * language.h (struct_language_defn): Add new function pointer:
5163 la_class_name_from_physname. Also add new prototype for
5164 language_class_name_from_physname.
5165 * language.c (language_class_name_from_physname): New function.
5166 (unk_lang_class_name): Ditto.
5167 (unknown_language_defn, auto_language_defn): Change
5168 to add unk_lang_class_name function pointer for
5169 la_class_name_from_physname.
5170 (local_language_defn): Ditto.
5171 * dwarf2read.c (guess_structure_name): Change to call
5172 language_class_name_from_physname.
5173 (determine_class_name): Ditto.
5174 * cp-support.c (class_name_from_physname): Renamed.
5175 (cp_class_name_from_physname): New name of function.
5176 * cp-support.h: Ditto.
5177 * c-lang.c (c_language_defn): Change to add NULL
5178 for class_name_from_physname function pointer.
5179 (cplus_language_defn): Change to add cp_class_name_from_physname.
5180 * jv-lang.c (java_class_name_physname): New function.
5181 (java_find_last_component): New static routine.
5182 (java_language_defn): Add java_class_name_from_physname pointer.
5183 * ada-lang.c (ada_language_defn): Change to add NULL
5184 for class_name_from_physname function pointer.
5185 * f-lang.c (f_language_defn): Ditto.
5186 * m2-lang.c (m2_language_defn): Ditto.
5187 * objc-lang.c (objc_language_defn): Ditto.
5188 * p-lang.c (pascal_language_defn): Ditto.
5189 * scm-lang.c (scm_language_defn): Ditto.
5190
ee28ca0f
AC
51912004-07-06 Andrew Cagney <cagney@gnu.org>
5192
5193 Patch from Bart Robinson.
5194 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
5195 (O_LARGEFILE): Define to 0, if not defined.
5196
fdb1bf9d
MK
51972004-07-03 Mark Kettenis <kettenis@gnu.org>
5198
cb162ff6
MK
5199 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
5200 <machine/pcb.h> and "bsd-kvm.h".
5201 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
5202 (m68kbsd_supply_pcb): New function.
5203 (_initialize_m68kbsd_nat): New prototype and function.
5204 * Makefile.in (m68kbsd-nat.o): Update dependencies.
5205 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5206 (LOADLIBES): New variable.
5207 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
5208 (LOADLIBES): New variable.
5209
fdb1bf9d
MK
5210 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
5211
963c4174
MK
52122004-07-03 Mark Kettenis <kettenis@gnu.org>
5213
5214 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
5215 <sys/proc.h>.
5216 (bsd_kvm_cmdlist): New variable.
5217 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
5218 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
5219 command and "kvm proc" command.
5220 * Makefile.in (bsd-kvm.o): Update dependencies.
5221
533f1d8f
MK
52222004-07-02 Mark Kettenis <kettenis@gnu.org>
5223
5224 * osabi.c: Update copyright year.
5225 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
5226 notes if EI_OSABI is set to ELFOSABI_HPUX.
5227
6780dcde
MS
52282004-07-01 Michael Snyder <msnyder@redhat.com>
5229
5230 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
5231 that seems to have gotten whacked out of line.
5232
67bebe79
MK
52332004-07-01 Mark Kettenis <kettenis@gnu.org>
5234
5235 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
5236 code.
5237
0b5d8877
PH
52382004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
5239
5240 * ada-lang.c (decode_packed_array): Minor change to comment.
5241 (ada_value_slice_ptr): New function.
5242 (ada_value_slice): New function.
5243 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
5244 test. Don't know why it is there.
5245 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
5246 to avoid dereferencing huge arrays from which one is slicing.
5247 (empty_array): Correct to return an array rather than
5248 a subrange value.
5249 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
5250 on empty arrays (let'em use 'FIRST instead).
5251
19c1ef65
PH
52522004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
5253
5254 Address complaints from gdb_ari.sh:
5255
5256 * ada-exp.y: Include gdb_string.h rather than string.h.
5257 (convert_char_literal): Reformat declaration.
5258 * ada-lang.h: Include opaque struct declaration for struct frame_info.
5259 * ada-lex.l: Change use of free to xfree (the macro would do so
5260 anyway, but this is harmless).
5261 Include gdb_string.h rather than string.h.
5262 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
5263
5264 * ada-lang.c (parse): Remove K&Rism in parameter list.
5265 (is_name_suffix): Correct Linux => GNU/Linux in comment.
5266
d81cbc94
MK
52672004-06-30 Mark Kettenis <kettenis@gnu.org>
5268
5269 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
5270 dead code.
5271
07681759
MK
52722004-06-30 Mark Kettenis <kettenis@gnu.org>
5273
5274 * alphabsd-nat.c: Update copyright year.
5275 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
5276
f7948b5f
JB
52772004-06-29 Joel Brobecker <brobecker@gnat.com>
5278
6e0cdd28 5279 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
f7948b5f
JB
5280 (i386_cygwin_in_solib_call_trampoline): New function.
5281 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
5282 and skip_trampoline_code gdbarch methods.
5283
8f113c9a
JB
52842004-06-29 Jim Blandy <jimb@redhat.com>
5285
5286 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
5287 name actually used in the dependency lists.
5288
97dc871c
RC
52892004-06-29 Randolph Chung <tausq@debian.org>
5290
5291 * NEWS (New native configurations): Mention GNU/Linux/hppa.
5292
47216e51
CV
52932004-06-29 Corinna Vinschen <vinschen@redhat.com>
5294
5295 * win32-nat.c (child_pid_to_exec_file): New function.
6780dcde 5296 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
47216e51
CV
5297 functionality.
5298
e623b504
AC
52992004-06-28 Andrew Cagney <cagney@gnu.org>
5300
5301 * defs.h (xstrvprintf): Declare.
5302 * utils.c (xstrvprintf): New function.
5303 (internal_vproblem, xstrprintf, xasprintf)
5304 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
5305 * serial.c (serial_printf): Ditto.
5306 * complaints.c (vcomplaint): Ditto.
5307
79acc9b3
CV
53082004-06-29 Corinna Vinschen <vinschen@redhat.com>
5309
5310 * infcmd.c (attach_command): Move call to target_terminal_inferior
5311 behind loading symbol table.
5312
1daf35d9
AC
53132004-06-28 Andrew Cagney <cagney@gnu.org>
5314
5315 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
5316 change - add back extern deprecated_ui_loop_hook declaration.
5317
b435e160
AC
53182004-06-28 Andrew Cagney <cagney@gnu.org>
5319
5320 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
5321 xstrprintf.
5322 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
5323 (c_value_of_variable): Ditto.
5324 * utils.c (internal_vproblem): Ditto.
5325 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
5326 * remote.c (add_packet_config_cmd): Ditto.
5327 * remote-rdp.c (rdp_set_command_line): Ditto.
5328 * regcache.c (regcache_dump): Ditto.
5329 * frv-tdep.c (new_variant, new_variant): Ditto.
5330 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
5331 (fbsd_find_memory_regions): Ditto.
5332 * breakpoint.c (create_thread_event_breakpoint)
5333 (create_breakpoints): Ditto.
5334 * aix-thread.c (aix_thread_pid_to_str): Ditto.
5335 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
5336
06d5cf63
JB
53372004-06-28 Joel Brobecker <brobecker@gnat.com>
5338
5339 * ada-lang.c: Re-indent file, with some massaging to help indent
5340 a bit when the result is otherwise really too ugly.
5341
35809fad
UW
53422004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
5343
5344 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
5345 code_addr_p and special_addr_p to 'unsigned int'.
5346
40e20472
MK
53472004-06-27 Mark Kettenis <kettenis@gnu.org>
5348
5349 * i386v4-nat.c: Update copyright year and tweak comment.
5350 (regmap): Remove trailing comma.
5351 (supply_gregset): Rename local variable i to regnum. Call
5352 regcache_raw_supply instead of supply_register.
5353 (fill_gregset): Rename argument regno to regnum. Call
5354 regcache_raw_collect instead of regcache_collect.
5355
12b0b6de
UW
53562004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
5357
5358 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
5359 and special_addr_p.
5360 (frame_id_build, frame_id_build_special): Update comments.
5361 (frame_id_build_wild): New prototype.
5362 * frame.c (frame_id_build, frame_id_build_special): Fill in new
5363 struct frame_id fields.
5364 (frame_id_build_wild): New function.
5365 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
5366
47b42a3e
MK
53672004-06-27 Mark Kettenis <kettenis@gnu.org>
5368
5369 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
5370 hppabsd-tdep.c.
5371
1265e4aa
JB
53722004-06-27 Joel Brobecker <brobecker@gnat.com>
5373
5374 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
5375
76a01679
JB
53762004-06-27 Joel Brobecker <brobecker@gnat.com>
5377
5378 * ada-lang.c: Re-indent file.
5379
7aca490a
JB
53802004-06-27 Joel Brobecker <brobecker@gnat.com>
5381
5382 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
5383 (no_symtab_msg): Likewise.
5384
5e987968
AS
53852004-06-27 Andreas Schwab <schwab@suse.de>
5386
5387 * source.c: Fix whitespace.
5388
315c4276
MK
53892004-06-27 Mark Kettenis <kettenis@gnu.org>
5390
d15be926
MK
5391 * configure.in: Include <sys/param.h> for td_pcb test.
5392 * configure: Regenerated.
5393
9062529b
MK
5394 * i386nbsd-nat.c: New file.
5395 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
5396 i386obsd-nat.c and i386obsd-tdep.c.
5397 (i386nbsd-nat.o): New dependency.
5398 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
5399 bsd-kvm.o.
5400 (LOADLIBES): New variable.
5401 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
5402 bsd-kvm.o.
5403 (LOADLIBES): New variable.
5404
8010310e
MK
5405 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
5406 (LOADLIBES): New variable.
5407
efe1d7b9
MK
5408 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
5409 fetching from BSD_KVM_PADDR. Correctly lookup address for
5410 "_thread0".
5411
315c4276
MK
5412 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
5413 "bsd-kvm.h".
5414 (amd64fbsd_supply_pcb): New funcion.
5415 (_initialize_amd64fbsd_nat): Enable libkvm interface.
5416
399cfac6
DL
54172004-06-27 <david@streamline-computing.com>
5418
5419 Partial fix for PR cli/1056.
5420 * valarith.c: Check for zero in division and remainder
5421 evaluation.
5422
6235f9c8
MK
54232004-06-27 Mark Kettenis <kettenis@gnu.org>
5424
5425 * i387-tdep.c: Remove excessive whitespace.
5426
2726dafc
AC
54272004-06-26 Andrew Cagney <cagney@gnu.org>
5428
5429 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
5430 * gdb-events.h, gdb-events.c: Re-generate.
5431 * tui/tui-hooks.c (tui_install_hooks): Update.
5432 (tui_remove_hooks): Update.
5433 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
5434
0e56aeaf
MK
54352004-06-26 Mark Kettenis <kettenis@gnu.org>
5436
cb461069
MK
5437 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
5438 (gregset_t, fpregset_t): Remove typedefs.
5439 (REG_OFFSET): Rename argument.
5440 (amd64bsd_r_reg_offset): Rename from reg_offset.
5441 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
5442 Remove functions.
5443 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
5444 of reg_offset.
5445 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
5446
ecba89de
MK
5447 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
5448
4cd80476
MK
5449 * vax-tdep.c: Tweak comment.
5450
0e56aeaf
MK
5451 Add OpenBSD/hppa support.
5452 * NEWS (New native configurations): Mention OpenBSD/hppa.
5453 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
5454 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
5455 files.
5456 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
5457 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
5458 * configure.host: Add hppa*-*-openbsd*.
5459 * configure.tgt: Add hppa*-*-openbsd*.
5460
98bbd631
AC
54612004-06-25 Andrew Cagney <cagney@gnu.org>
5462
5463 * defs.h (deprecated_ui_loop_hook): Deprecated.
5464 * wince.c (child_wait): Update.
5465 * win32-nat.c (child_wait): Update.
5466 * v850ice.c (v850ice_wait): Update.
5467 * top.c (deprecated_ui_loop_hook): Update.
5468 * serial.h: Update.
5469 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
5470 (do_unix_readchar): Update.
5471 * ser-tcp.c (net_open): Update.
5472 * remote-sim.c (gdb_os_poll_quit): Update.
5473 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
5474
769d7dc4
AC
54752004-06-24 Andrew Cagney <cagney@gnu.org>
5476
5477 * defs.h (deprecated_pre_add_symbol_hook)
5478 (deprecated_post_add_symbol_hook): Deprecated.
5479 * symfile.c (symbol_file_add_with_addrs_or_offsets)
5480 (symbol_file_add_with_addrs_or_offsets): Update references.
5481
11c949aa
AC
54822004-06-24 Andrew Cagney <cagney@gnu.org>
5483
5484 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
5485 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
5486 * wince.c (ui_loop_hook): Delete extern declaration.
5487 * win32-nat.c (ui_loop_hook): Delete extern declaration..
5488 * v850ice.c (ui_loop_hook): Delete extern declaration..
5489 * ser-unix.c (ui_loop_hook): Delete extern declaration..
5490 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
5491 * remote-sim.c (ui_loop_hook): Delete extern declaration..
5492 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
5493 ui_loop_hook declaration.
5494
eedc19af
AC
54952004-06-24 Andrew Cagney <cagney@gnu.org>
5496
5497 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
5498 entry_func_highpc fields.
5499 * objfiles.c (init_entry_point_info): Do not clear
5500 entry_func_lowpc and entry_func_highpc.
5501 (objfile_relocate): Do not relocate entry_func_lowpc and
5502 entry_func_highpc.
5503 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
5504 entry_func_highpc.
5505 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
5506 entry_func_highpc.
5507 * blockframe.c (legacy_frame_chain_valid): Replace tests against
5508 entry_func_lowpc and entry_func_highpc with call to
5509 inside_entry_func.
5510
d47079be
MK
55112004-06-24 Mark Kettenis <kettenis@gnu.org>
5512
5513 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
5514 quad-precision floating point arguments in registers.
5515
2107e348
MK
55162004-06-24 Mark Kettenis <kettenis@gnu.org>
5517
5518 From Michael Mueller <m.mueller99@kay-mueller.de>:
5519 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
5520 account.
5521
46587c42
JJ
55222004-06-22 Jeff Johnston <jjohnstn@redhat.com>
5523
5524 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
5525 to -1.
5526 * breakpoint.c (bpstat_stop_status): Move check for ignoring
5527 untriggered watchpoints to a separate if clause. Update function
5528 comment regarding STOPPED_BY_WATCHPOINT argument.
5529
226f5cf4
JB
55302004-06-22 Jim Blandy <jimb@redhat.com>
5531
5532 * gdbarch.sh: Doc fix.
5533
f10683bb
MH
55342004-06-21 Martin Hunt <hunt@redhat.com>
5535 Kevin Buettner <kevinb@redhat.com>
5536
5537 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
5538 * mips-tdep.h (MIPS_SP_REGNUM): Define.
5539 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
5540 to set_gdbarch_sp_regnum(). Use cooked register number.
5541 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
5542
412d5987
AC
55432004-06-21 Andrew Cagney <cagney@gnu.org>
5544
5545 * gdbarch.sh: When the macro field is empty, do not generate a
5546 macro definition. When the macro field is "=", generate the macro
5547 name from the upper-case function name.
5548 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
5549 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
5550 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
5551 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
5552 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
5553 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
5554 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
5555 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
5556 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
5557 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
5558 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
5559 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
5560 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
5561 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
5562 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
5563 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
5564 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
5565 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
5566 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
5567 (DEPRECATED_USE_STRUCT_CONVENTION)
5568 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5569 (DEPRECATED_FRAME_INIT_SAVED_REGS)
5570 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
5571 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
5572 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
5573 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
5574 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
5575 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
5576 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
5577 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
5578 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
5579 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
5580 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
5581 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
5582 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
5583 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
5584 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
5585 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
5586
68908a3e
AC
55872004-06-21 Andrew Cagney <cagney@gnu.org>
5588
48f7351b
AC
5589 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
5590 macro name, and the function rather than macro value. Only wrap
5591 macro print statements in #ifdef. Move format logic to where it
5592 is needed.
5593 * gdbarch.c: Re-generate.
5594
283354d8
AC
5595 * gdbarch.sh (read): Delete "print_p" and "description", add
5596 "garbage_at_eol". Check for non-empty garbage at end-of-line.
5597 Delete references to print_p.
5598 (TARGET_ARCHITECTURE): Delete print predicate.
5599 * gdbarch.c: Re-generate.
5600
68908a3e
AC
5601 * gdbarch.sh: Check that multi-arch methods do not provide a
5602 macro.
5603 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
5604 (print_registers_info, print_float_info, print_vector_info)
5605 (adjust_breakpoint_address, remote_translate_xfer_address)
5606 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
5607 (address_class_type_flags_to_name, unwind_sp): Remove the macro
5608 name from the multi-arch definition.
5609
a2428dbe
AC
56102004-06-20 Andrew Cagney <cagney@gnu.org>
5611
5612 * gdbarch.sh: Sort by the function, instead of macro name.
5613 * gdbarch.c: Re-generate.
5614
750eb019
AC
56152004-06-20 Andrew Cagney <cagney@gnu.org>
5616
66d659b1
AC
5617 * gdbarch.sh: Use the function, instead of macro name in
5618 errors and the log file.
5619 (return_value): Remove stray ":" in spec.
5620
750eb019
AC
5621 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
5622 * gdbarch.h, gdbarch.c: Re-generate.
5623 * Makefile.in (arch-utils.o): Update dependencies.
5624 * values.c (using_struct_return): Move code calling
5625 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
5626 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
5627 to legacy_return_value, simplify.
5628 * infcmd.c (print_return_value): Move code calling
5629 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
5630 to legacy_return_value, simplify.
5631 * infcall.c (call_function_by_hand): Move code calling
5632 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
5633 * arch-utils.c: Update copyright. Include "gdbcore.h".
5634 (legacy_return_value): New function.
5635 * arch-utils.h: Update copyright.
5636 (legacy_return_value): Declare.
5637
b5622e8d
AC
56382004-06-20 Andrew Cagney <cagney@gnu.org>
5639
5640 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
5641 * gdbarch.h, gdbarch.c: Re-generate.
5642 * values.c (using_struct_return): Update call.
5643 * mcore-tdep.c: Update comment.
5644 * infcall.c (call_function_by_hand): Update comment.
5645 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5646 * arch-utils.h (always_use_struct_convention): Update.
5647 * v850-tdep.c (v850_gdbarch_init): Update.
5648 * sh64-tdep.c (sh64_gdbarch_init): Update.
5649 * sh-tdep.c (sh_gdbarch_init): Update.
5650 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5651 * mips-tdep.c (mips_gdbarch_init): Update.
5652 * mcore-tdep.c (mcore_gdbarch_init): Update.
5653 * m32r-tdep.c (m32r_gdbarch_init): Update.
5654 * ia64-tdep.c (ia64_gdbarch_init): Update.
5655 * h8300-tdep.c (h8300_gdbarch_init): Update.
5656 * frv-tdep.c (frv_gdbarch_init): Update.
5657 * cris-tdep.c (cris_gdbarch_init): Update.
5658 * arm-tdep.c (arm_gdbarch_init): Update.
5659 * alpha-tdep.c (alpha_gdbarch_init): Update.
5660
5191de37
MC
56612004-06-18 Michael Chastain <mec.gnu@mindspring.com>
5662
5663 * PROBLEMS: Add more specific information, and a work-around,
5664 for PR gdb/1458.
5665
782263ab
AC
56662004-06-18 Andrew Cagney <cagney@gnu.org>
5667
5668 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
5669 * gdbarch.h, gdbarch.c: Re-generate.
5670 * ada-lang.c (ada_finish_decode_line_1): Update.
5671 * infrun.c (handle_inferior_event): Update.
5672 * infcall.c (find_function_addr): Update.
5673 * linespec.c (minsym_found): Update.
5674 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
5675 Update.
5676 * blockframe.c (legacy_frameless_look_for_prologue): Update.
5677 * cli/cli-cmds.c (disassemble_command): Update.
5678 * vax-tdep.c (vax_gdbarch_init): Update.
5679
2f305df1
MK
56802004-06-18 Mark Kettenis <kettenis@gnu.org>
5681
5682 * i386-tdep.c (i386_collect_fpregset): Fix comment.
5683
e5fe55f7
AC
56842004-06-17 Andrew Cagney <cagney@gnu.org>
5685
5686 GDB 6.1.1 released from the GDB 6.1 branch.
5687 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
5688 * PROBLEMS: Ditto.
5689
473b7be6
DJ
56902004-06-16 Daniel Jacobowitz <dan@debian.org>
5691
5692 PR gdb/1658
5693 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
5694 operation as a uleb128. Found by Michael Coulter.
5695
96d887e8
PH
56962004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
5697
5698 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
5699 make it non-static.
5700 * ada-lang.h (task_control_block): declaration moved from ada-task.c
5701 to ada-lang.h; this is needed to be able to implement the kill command
5702 in multi-task mode.
5703 (task_ptid): Ditto.
5704 (task_entry): Ditto.
5705 (task_list): Ditto.
5706 (ada_build_task_list): Ditto.
5707
5708 * ada-lang.c: Conditionalize routines and data structures related
5709 to breakpoints, exceptions, completion, and symbol caching on
5710 GNAT_GDB, since these are not yet used in the submitted public sources.
5711 (ada_main_name): Editorial: Move definition out of exception-related
5712 code.
5713
31eef181
AC
57142004-06-15 Andrew Cagney <cagney@gnu.org>
5715
5716 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
5717 deprecated_pc_in_call_dummy.
5718
2c500098
AM
57192004-06-15 Alan Modra <amodra@bigpond.net.au>
5720
5721 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
5722 bfd_get_section_size_before_reloc or _raw_size.
5723 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
5724 * dwarf2read.c (dwarf2_locate_sections): Likewise.
5725 (dwarf2_read_section): Likewise.
5726 * elfread.c (elf_locate_sections): Likewise.
5727 * gcore.c (derive_heap_segment): Likewise.
5728 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
5729 * remote-e7000.c (e7000_load): Likewise.
5730 * remote-m32r-sdi.c (m32r_load): Likewise.
5731 * remote-mips.c (mips_load_srec): Likewise.
5732 (pmon_load_fast): Likewise.
5733 * remote.c (compare_sections_command): Likewise.
5734 * symfile.c (add_section_size_callback): Likewise.
5735 (load_section_callback): Likewise.
5736 (pc_in_unmapped_range): Likewise.
5737 (pc_in_mapped_range): Likewise.
5738 (sections_overlap): Likewise.
5739 (list_overlays_command): Likewise.
5740 (simple_overlay_update_1): Likewise.
5741 (simple_overlay_update): Likewise.
5742 * tracepoint.c (remote_set_transparent_ranges): Likewise.
5743 * win32-nat.c (core_section_load_dll_symbols): Likewise.
5744
90f943f1
RC
57452004-06-14 Randolph Chung <tausq@debian.org>
5746
5747 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
5748 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
5749 static.
5750 (hppa_hpux_inferior_created): New function.
5751 (hppa_hpux_init_abi): Register observer.
5752 * symfile.c (hp_cxx_exception_support_initialized)
5753 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
5754 (symbol_file_add_main_1, symbol_file_clear): Likewise.
5755
700c15aa
RC
57562004-06-14 Randolph Chung <tausq@debian.org>
5757
3973a7d3
AC
5758 * MAINTAINERS (Write After Approval): Alphabetize my entry
5759 correctly.
700c15aa 5760
cea4838c
AC
57612004-06-14 Andrew Cagney <cagney@gnu.org>
5762
5763 * MAINTAINERS (testsuite): List Michael Chastain as the lead
5764 testsuite maintainer.
5765
97092415
AC
57662004-06-13 Andrew Cagney <cagney@gnu.org>
5767
e8c3165b
AC
5768 * infcmd.c (print_return_value): Fix logic, allow
5769 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
5770
bceabdd8
AC
5771 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
5772 defining any macros.
5773 * gdbarch.h: Re-generate.
5774
57010b1c
AC
5775 * gdbarch.sh: Delete "level" attribute. Only check for a macro
5776 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
5777 * gdbarch.h: Re-generate.
5778
bc87dfa0
AC
5779 * values.c (generic_use_struct_convention): Don't check gcc_p.
5780
15ac804d
AC
5781 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
5782 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
5783 * gdbarch.h, gdbarch.c: Regenerate.
5784 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
5785 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
5786 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5787 deprecated_max_register_raw_size and
5788 deprecated_max_register_virtual_size.
5789 * v850-tdep.c (v850_gdbarch_init): Ditto.
5790 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
5791 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5792 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5793 * cris-tdep.c (cris_gdbarch_init): Ditto.
5794
97092415
AC
5795 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
5796 * gdbarch.h, gdbarch.c: Re-generate.
5797 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
5798 (m68hc11_use_struct_convention): Delete function.
5799 (m68hc11_extract_struct_value_address): Delete function.
5800 (m68hc11_return_value): New function.
5801 (m68hc11_gdbarch_init): Instead of store_return_value,
5802 extract_return_value, return_value_on_stack,
5803 deprecated_extract_struct_value_address and use_struct_convention,
5804 set return_value.
5805 * values.c (using_struct_return): Do not call
5806 RETURN_VALUE_ON_STACK.
5807 * arch-utils.h (generic_return_value_on_stack_not): Delete
5808 declaration.
5809 * arch-utils.c (generic_return_value_on_stack_not): Delete
5810 function.
5811
44e5158b
AC
58122004-06-12 Andrew Cagney <cagney@gnu.org>
5813
5814 * values.c (register_value_being_returned): Delete function.
5815 * infcmd.c (legacy_return_value): Delete function.
5816 * infcall.c (call_function_by_hand): Inline
5817 "register_value_being_returned", simplify.
5818 * values.c (using_struct_return): Update comment, refer to
5819 print_return_value instead of register_value_being_returned.
5820 * infcmd.c (print_return_value): Inline calls to
5821 register_value_being_returned and legacy_return_value. Simplify.
5822
b887c273
RC
58232004-06-11 Randolph Chung <tausq@debian.org>
5824
5825 * somread.c (som_symtab_read): Exclude gcc local symbols.
5826
1b2bfbb9
RC
58272004-06-11 Randolph Chung <tausq@debian.org>
5828
3973a7d3
AC
5829 * infrun.c (handle_inferior_event): Handle the case when a
5830 trampoline ends up in the runtime resolver, and if the trampoline
5831 has no name. Rearrange the code so that all the trampoline
5832 processing happens before other step-out-of-range handling.
1b2bfbb9 5833
a9d61c86
MH
58342004-06-11 Martin Hunt <hunt@redhat.com>
5835
5836 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
5837 has no fpu.
5838
2c87cf5a
AC
58392004-06-10 Andrew Cagney <cagney@gnu.org>
5840
5841 * blockframe.c (legacy_inside_entry_func): Delete.
5842 (legacy_frame_chain_valid): Inline call to
5843 legacy_inside_entry_func, simplify.
5844
0b67b468 58452004-06-10 Bob Rossi <bob@brasko.net>
57c22c6c
BR
5846
5847 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
3973a7d3
AC
5848 * dwarf2read.c (partial_die_info): Add dirname field.
5849 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
5850 (read_partial_die): Save away DW_AT_comp_dir.
5851 * defs.h (symtab_to_filename): Removed.
5852 * source.c (find_and_open_source): Added.
57c22c6c 5853 (open_source_file): Just calls find_and_open_source.
3973a7d3
AC
5854 (symtab_to_filename): Removed.
5855 (symtab_to_fullname, psymtab_to_fullname): Added.
57c22c6c
BR
5856 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
5857 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
5858 symtab_to_filename.
5859 * symtab.h (partial_symtab): Add dirname field.
5860 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
3973a7d3
AC
5861 (mi_cmd_file_list_exec_source_file): Call new function
5862 symtab_to_fullname to find fullname.
57c22c6c 5863 (mi_cmd_file_list_exec_source_files): Added.
3973a7d3 5864 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
57c22c6c
BR
5865 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
5866
9a1dd1ad
AC
58672004-06-10 Andrew Cagney <cagney@gnu.org>
5868
239ae8c7
AC
5869 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
5870 to generic_use_struct_convention, the default value.
5871
fc720350
AC
5872 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
5873 of abort.
5874
9a1dd1ad
AC
5875 * ns32k-tdep.c (ns32k_push_arguments): New function.
5876 (ns32k_gdbarch_init): Set deprecated_push_arguments.
5877 * infcall.c (call_function_by_hand): Call error instead of
5878 legacy_push_arguments.
5879 * value.h (legacy_push_arguments): Delete declaration.
5880 * valops.c (legacy_push_arguments): Delete function.
5881 (value_push): Delete function.
5882
fea25152
BF
58832004-06-10 Brian Ford <ford@vss.fsi.com>
5884
5885 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
5886 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
5887 info.
5888 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
5889
30a4a8e0
AC
58902004-06-10 Andrew Cagney <cagney@gnu.org>
5891
5892 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
5893 * gdbarch.h, gdbarch.c: Re-generate.
5894 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
5895 parameters.
5896 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
5897 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
5898 deprecated_pc_in_call_dummy instead of
5899 DEPRECATED_PC_IN_CALL_DUMMY.
5900 (arm_skip_prologue): Ditto.
5901 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
5902 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
5903 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
5904 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
5905 Ditto.
5906 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
5907 (sh64_init_extra_frame_info, sh64_get_saved_register)
5908 (sh64_pop_frame): Ditto.
5909 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
5910 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
5911 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
5912 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
5913 (h8300_pop_frame): Ditto.
5914 * blockframe.c (legacy_inside_entry_func)
5915 (legacy_frame_chain_valid): Ditto.
5916 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
5917 to deprecated_pc_in_call_dummy.
5918
81cfbe54
AC
59192004-06-09 Andrew Cagney <cagney@gnu.org>
5920
a1f4a1b6
AC
5921 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
5922 provide a default value.
5923 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
5924 * gdbarch.h, gdbarch.c: Re-generate.
5925 * arch-utils.c (generic_convert_register_p): Rename
5926 legacy_convert_register_p
5927 (legacy_register_to_value, legacy_value_to_register): Delete
5928 functions.
5929 * arch-utils.h (generic_convert_register_p): Rename
5930 legacy_convert_register_p.
5931 (legacy_register_to_value, legacy_value_to_register): Delete
5932 declarations.
5933
9730f241
AC
5934 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
5935 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
5936 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
5937 * gdbarch.h, gdbarch.c: Re-generate.
5938 * infcmd.c (default_print_registers_info): Simplify.
5939 * findvar.c (value_of_register): Simplify.
5940 * mi/mi-main.c (get_register): Simplify.
5941 * arch-utils.c (legacy_convert_register_p): Always return 0.
5942 (legacy_register_to_value, legacy_value_to_register): Always call
5943 internal_error.
5944
8a1bf479
AC
5945 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
5946 #ifdef CLEAR_INSN_CACHE code.
5947 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
5948 Delete #ifdef CLEAR_DEFERRED_STORES code.
5949
4b38d6f1
AC
5950 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
5951
2d62ecc7
AC
5952 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
5953 copyright.
5954 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
5955
be4f7469
AC
5956 * config/mips/mipsv4.mh: Delete file.
5957
81cfbe54
AC
5958 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
5959 unreferenced macro.
5960 (hpread_adjust_stack_address): Delete declaration.
5961
d966f0cb
AC
59622004-06-08 Andrew Cagney <cagney@gnu.org>
5963
5964 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
5965 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
5966 PTRACE_ATTACH / PTRACE_DETACH available call error.
5967 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
5968 * infttrace.c (update_thread_state_after_attach, attach, detach):
5969 Remove #ifdef wrappers.
5970 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
5971 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
5972 * config/nm-bsd.h (ATTACH_DETACH): Delete.
5973 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
5974 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
5975 * config/nm-linux.h (ATTACH_DETACH): Delete.
5976 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
5977 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
5978 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
5979 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
5980 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
5981
d91670b9
CV
59822004-06-08 Corinna Vinschen <vinschen@redhat.com>
5983
5984 * configure.in: Set $configdir to the right OS specific value.
5985 Use value when setting $tcldir and $tkdir.
5986 * configure: Regenerate.
5987
28ba0b33
PB
59882004-06-06 Paul Brook <paul@codesourcery.com>
5989
5990 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
5991 records.
5992
f26caa11
PH
59932004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
5994
5995 * ada-lang.c (lookup_symbol_in_language): New function to allow
5996 re-use of another language's symbol lookup code. (Placed here
5997 temporarily while Ada support is being integrated into the public
5998 tree).
5999 (restore_language): New auxiliary function for
6000 lookup_symbol_in_language.
6001 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
6002 temporarily while Ada support is being integrated into the public
6003 tree).
6004
d560a54b
AO
60052004-06-08 Alexandre Oliva <aoliva@redhat.com>
6006
e75d110c
AO
6007 * Makefile.in (check//%): New.
6008
d560a54b
AO
6009 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
6010 (mn10300_store_return_value): Rewrite.
6011 (mn10300_type_align): New.
6012 (mn10300_use_struct_convention): Rewrite.
6013 (mn10300_return_value): New, using all of the above.
6014 (mn10300_pop_frame_regular): Add saved_regs_size.
6015 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
6016
a72fbdb7
AO
6017 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
6018 regs if PC is on movm.
6019
01904826
JB
60202004-06-07 Jim Blandy <jimb@redhat.com>
6021
6022 Add native Linux support for the PowerPC E500.
6023 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
6024 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
6025 all architectures except the E500.
6026 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
6027 #definitions.
6028 (struct gdb_evrregset_t): New type.
6029 (have_ptrace_getsetevrregs): New variable.
6030 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
6031 fetch_spe_registers): New functions.
6032 (fetch_register): Call fetch_spe_register as appropriate.
6033 Assert that we're only passed raw register numbers.
6034 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
6035 Don't fetch gprs if they're pseudoregisters.
6036 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
6037 store_spe_registers): New functions.
6038 (store_register): Call store_spe_register as appropriate.
6039 Assert that we're only passed raw register numbers.
6040 (store_ppc_registers): Call store_spe_registers as appropriate.
6041 Don't store gprs if they're pseudoregisters.
6042
f90ef764
JJ
60432004-06-07 Jeff Johnston <jjohnstn@redhat.com>
6044
6045 * thread-db.c (thread_get_info_callback): Fill in the thread_info
6046 struct if one exists, even if we are dealing with a zombie thread.
6047
45b75230
AC
60482004-06-07 Andrew Cagney <cagney@gnu.org>
6049
6050 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
6051 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
6052 Rename PC_REQUIRES_RUN_BEFORE_USE.
6053 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
6054 #ifdef.
6055
1658da49
RC
60562004-06-07 Randolph Chung <tausq@debian.org>
6057
6058 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
6059 unwinding after sp has been saved to the stack but before the end
6060 of the prologue, and after the fp has been modified but before it has
6061 been saved to the stack.
6062 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
6063 Remove superfluous definitions.
6064 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
6065
9a727a3c
RC
60662004-06-07 Guy Martin <gmsoft@gentoo.org>
6067
6068 Committed by Randolph Chung.
6069 * hppa-linux-nat.c: Include the correct version of the header file
6070 depending on the kernel version.
6071
9e500012
RC
60722004-06-06 Randolph Chung <tausq@debian.org>
6073
6074 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
6075 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
6076
3388d7ff
RC
60772004-06-06 Randolph Chung <tausq@debian.org>
6078
6079 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
6080 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
6081 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
6082 * hppa-tdep.c (hppa_symbol_address): New function definition.
6083 * hppa-tdep.h (hppa_symbol_address): New function declaration.
6084
d49771ef
RC
60852004-06-06 Randolph Chung <tausq@debian.org>
6086
6087 * hppa-tdep.h (struct value): Forward declaration.
6088 (gdbarch_tdep): Define tdep find_global_pointer method.
6089 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
6090 associated with the function we are trying to call, and write it
6091 to the gp register.
6092 (hppa32_convert_from_funct_ptr_addr): New function.
6093 (hppa_find_global_pointer): New function.
6094 (hppa_gdbarch_init): Set default find_global_pointer method; set
6095 convert_from_func_ptr_addr method.
6096 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
6097 (hppa_linux_init_abi): Set find_global_pointer method.
6098 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
6099
7d9b040b
RC
61002004-06-06 Randolph Chung <tausq@debian.org>
6101
6102 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
6103 to struct value *function.
6104 * gdbarch.c: Regenerate.
6105 * gdbarch.h: Likewise.
6106 * infcall.c (call_function_by_hand): Pass entire function value
6107 to push_dummy_call.
6108
6109 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
6110 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
6111 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
6112 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
6113 * arm-tdep.c (arm_push_dummy_call): Likewise.
6114 * avr-tdep.c (avr_push_dummy_call): Likewise.
6115 * cris-tdep.c (cris_push_dummy_call): Likewise.
6116 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
6117 * frv-tdep.c (frv_push_dummy_call): Likewise.
6118 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
6119 * hppa-tdep.c (hppa32_push_dummy_call)
6120 (hppa64_push_dummy_call): Likewise.
6121 * i386-tdep.c (i386_push_dummy_call): Likewise.
6122 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
6123 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
6124 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
6125 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
6126 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
6127 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
6128 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
6129 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
6130 (ppc64_sysv_abi_push_dummy_call): Likewise.
6131 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
6132 (ppc64_sysv_abi_push_dummy_call): Likewise.
6133 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
6134 * s390-tdep.c (s390_push_dummy_call): Likewise.
6135 * sh-tdep.c (sh_push_dummy_call_fpu)
6136 (sh_push_dummy_call_nofpu): Likewise.
6137 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
6138 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
6139 * vax-tdep.c (vax_push_dummy_call): Likewise.
6140
4a19ea35
JB
61412004-06-04 Jim Blandy <jimb@redhat.com>
6142
8327ccee
JB
6143 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
6144 gdbarch argument to register_size.
6145
a3c001ce
JB
6146 * rs6000-tdep.c (rs6000_store_return_value): Use
6147 regcache_cooked_write_part instead of
6148 deprecated_write_register_bytes.
6149 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
6150 not gdbarch_deprecated_store_return_value.
6151
4a19ea35
JB
6152 * ppc-linux-nat.c (store_register, fetch_register): Remove
6153 incorrect assertions. Simplify and generalize handling of
6154 transfers whose sizes are not multiples of, or less than, sizeof
6155 (PTRACE_XFER_TYPE).
6156
b9b5d7ea
JJ
61572004-06-04 Jeff Johnston <jjohnstn@redhat.com>
6158
6159 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
6160 as a new thread event.
720c7d64 6161 * thread-db.c (thread_get_info_callback): If the thread is a
b9b5d7ea 6162 zombie, return TD_THR_ZOMBIE.
720c7d64 6163 (thread_from_lwp): If thread_get_info_callback returns
b9b5d7ea
JJ
6164 TD_THR_ZOMBIE, check if the thread is still on the thread list
6165 and return a -1 ptid if not found.
6166 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
6167 change the status to TARGET_WAITKIND_SPURIOUS.
6168
c8a3b559
CV
61692004-06-03 Corinna Vinschen <vinschen@redhat.com>
6170
6171 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
6172 double values in little endian mode.
6173
20605361
AC
61742004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
6175
6176 Committed by Andrew Cagney.
6177 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
6178 after last enum constant to avoid error from IBM C
6179 compiler.
6180
bc97b3ba
JB
61812004-06-02 Jim Blandy <jimb@redhat.com>
6182
6183 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
6184 to 'message', and make it local to the lone block that uses it.
6185
1da28ab0
JB
6186 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
6187
4c4b4cd2
PH
61882004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
6189
8a2225b2
PH
6190 * ada-exp.y: Update copyright notice.
6191 Include block.h.
6192
6193 Replace REGNAME, LAST, INTERNAL_VARIABLE with
6194 SPECIAL_VARIABLE and unify the treatment of these cases.
6195
6196 (write_attribute_call0): Remove.
6197 (write_attribute_call1): Remove.
6198 (write_attribute_calln): Remove.
6199 (save_qualifier): Add missing semicolon.
6200
6201 (simple_exp,exp): Decomment (i.e., reactivate) code that was
6202 temporarily disabled to allow compilation with FSF head version.
6203
6204 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
6205 use individual operators (OP_*) for all attributes.
6206 (exp syntax): Use write_int.
6207 Handle STRING literals with OP_STRING.
6208 (variable syntax): Add limit parameter to calls to
6209 write_object_renaming.
6210
6211 (temp_parse_space): New definition to hold entities that need
6212 only live until the next call to ada_parse.
6213 (string_to_operator): Rename fields of ada_opname_table entries.
6214
6215 (write_var_from_sym): Record block.
6216 (write_var_from_name): Minor reformatting.
6217 Make sure saved name is properly encoded in the case of multiple
6218 matches, and set its language to Ada.
6219 Update comment.
6220 Modify to indicate unresolved name as symbol in the UNRESOLVED
6221 namespace, allocated in temp_parse_space.
6222 (write_int): New function.
6223
6224 (write_object_renaming): Add max_depth parameter to limit
6225 chains of object renamings.
6226 Handle case where root of renaming expression is itself a renaming.
6227 Use temp_parse_space for temporary name buffer.
6228 Handle renamings to dereferenced pointers (___XEXA suffices).
6229
6230 (ada_parse, yyerror, string_to_operator,
6231 write_var_from_sym, write_var_from_name, write_attribute_call0,
6232 write_attribute_call1, write_attribute_calln,
6233 write_object_renaming): Protoize.
6234
6235 (_initialize_ada_exp): New function.
6236
6237 * ada-lang.c: Update copyright notice.
6238 General terminology change to conform to GNAT compiler usage:
6239 mangle => encode, demangle => decode
6240 Include gdb_obstack.h.
6241 Include gdb_regex.h
6242 Include frame.h
6243 Include hashtab.h
6244 Include completer.h
6245 Include gdb_stat.h
6246 Include block.h
6247 Include infcall.h
6248
6249 (ADA_RETAIN_DOTS): Make sure this is defined.
6250 (TRUNCATION_TOWARDS_ZERO): Define.
6251 (struct string_vector): Define.
6252 (unresolved_names): Remove definition.
6253 (xnew_string_vector): New function.
6254 (string_vector_append): New function.
6255 (extract_string): Make static.
6256 (ada_unqualified_name): New function.
6257 (add_angle_brackets): New function.
6258 (function_name_from_pc): New function.
6259 (place_on_stack): Rename to ensure_lval.
6260
6261 (ensure_lval): Renamed from place_on_stack.
6262 Make identity on lvals.
6263 Update comment.
6264 (is_nonfunction): New interface.
6265 Only symbols in LOC_CONST class can be enumerals.
6266 (fill_in_ada_prototype): Remove; now independent of language.
6267 (add_defn_to_vec): Add obstack and symtab arguments.
6268 Use obstack to hold collected definitions.
6269 (num_defns_collected): New function.
6270 (defns_collected): New function.
6271 (ada_resolve_subexp): Rename to resolve_subexp.
6272 (resolve_subexp): Renamed from ada_resolve_subexp.
6273 (ada_op_name): Return non-const result.
6274 (ada_decoded_op_name): Renamed from ada_op_name, now used for
6275 other purposes.
6276
6277 (to_fixed_array_type): Add declaration.
6278 (coerce_unspec_val_to_type): Remove offset parameter.
6279 (find_sal_from_funcs_and_line): New interface.
6280 (find_line_in_linetable): Ditto.
6281
6282 (all_sals_for_line): Rename to ada_sals_for_line and make
6283 global.
6284 Add new parameter. When set, do not ask the user to choose the
6285 instance, but use the first one found instead.
6286 Use given line number in returned sals.
6287 Fix comment.
6288 Skip the prologue if funfirstline is set.
6289 Correct for memory leak when 0 lines found.
6290
6291 (value_pos_atr): Use pos_atr.
6292 (pos_atr): New function.
6293 (standard_lookup): Add block parameter.
6294
6295 (makeTimeStart): Remove declaration and uses.
6296 (makeTimeStop): Remove declaration and uses.
6297
6298 (ada_completer_word_break_characters): Allow for VMS.
6299 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
6300 (raise_sym_name): New constant.
6301 (raise_unhandled_sym_name): New constant.
6302 (raise_assert_sym_name): New constant.
6303 (process_raise_exception_name): New constant.
6304 (longest_exception_template): New constant.
6305 (warning_limit): New variable to limit warnings during expression
6306 evaluation.
6307 (warnings_issued): New variable to keep track of warnings issued.
6308 (known_runtime_file_name_patterns): New constant.
6309 (known_auxiliary_function_name_patterns): New constant.
6310 (symbol_list_obstack): New variable.
6311
6312 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
6313 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
6314 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
6315 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
6316 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
6317 ada_variant_discrim_name, field_alignment, dynamic_template_type,
6318 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
6319 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
6320 and strcmp.
6321
6322 (ada_get_field_index): New function.
6323 (lim_warning): New function.
6324 (ada_translate_error_message): New function.
6325 (MAX_OF_SIZE): New function.
6326 (MIN_OF_SIZE): New function.
6327 (UMAX_OF_SIZE): New function.
6328 (UMIN_OF_SIZE): New function.
6329 (discrete_type_high_bound): New function.
6330 (discrete_type_low_bound): New function.
6331 (base_type): New function.
6332 (do_command): Remove.
6333
6334 (ada_update_initial_language): Use language_ada, not language_unknown.
6335 (ada_encode): Renamed from ada_mangle.
6336 Obey ADA_RETAIN_DOTS.
6337 (ada_decode): Renamed from ada_demangle.
6338 Update coding conventions.
6339 (decoded_names_store): New hash table.
6340 (ada_decode_symbol): New function.
6341 (ada_la_decode): New function.
6342
6343 (modify_general_field): Correct computations of offset and bit
6344 position.
6345 (desc_base_type): Handle ref types, too.
6346 (ada_is_direct_array_type): New function.
6347
6348 (ada_is_simple_array): Rename to ada_is_simple_array_type.
6349 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
6350 (ada_is_bogus_array_descriptor,ada_type_of_array,
6351 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
6352 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
6353 ada_is_array_descriptor_type.
6354
6355 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
6356 (ada_is_packed_array_type): Handle pointers or
6357 references to packed arrays as well.
6358 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
6359 (decode_packed_array_type): Search for the packed array type
6360 symbol in the currently selected block and associated
6361 superblocks too.
6362 Use lookup_symbol again.
6363
6364 (decode_packed_array): Handle pointers and references.
6365 Update call to coerce_unspec_val_to_type.
6366 (decode_packed_array_type,value_subscript_packed): Limit warnings.
6367 (ada_value_primitive_packed_val): Improve comment.
6368
6369 (ada_index_type): Substitute int type for "undefined".
6370 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
6371 ada_array_langth, ada_is_string_type): Use renamed
6372 ada_is_simple_array_type.
6373 (empty_array): New function.
6374
6375 (ada_resolve): Rename to resolve.
6376 (resolve): Make static.
6377 Call renamed resolve_subexp.
6378 Update comment.
6379 (ada_resolve_subexp): Rename to resolve_subexp.
6380 (resolve_subexp): Update comment.
6381 Decomment disabled code.
6382 Add LOC_COMPUTED* cases.
6383 Modify to use temporary struct symbols (marked as being in
6384 UNDEF_NAMESPACE) to indicate unresolved names, instead of
6385 OP_UNRESOLVED_VALUE.
6386 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
6387 Add OP_STRING case.
6388 Remove OP_ARRAY.
6389 Use SYMBOL_PRINT_NAME instead of ada_demangle.
6390 Use new ada_lookup_symbol_list interface.
6391 Use new ada_resolve_function interface.
6392 Remove OP_TYPE case.
6393
6394 (ada_args_match): Idiot proof against null actuals.
6395 Use intermediate variables to clarify.
6396 (ada_resolve_function): Update comment and interface.
6397 (mangled_ordered_before): Rename to encoded_ordered_before and
6398 update comment.
6399 (sort_choices): Update comment and interface.
6400 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
6401 (user_select_syms): New interface.
6402 Use new sort_choices interface.
6403 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
6404 (possible_user_operator_p): Idiot-proof against null values.
6405 (ada_simple_renamed_entity): Don't make cleanup; rely on
6406 caller to free result string.
6407 Remove const from return type.
6408 (make_array_descriptor): Rename uses of place_on_stack to
6409 ensure_lval.
6410 Make sure that arrays are on stack.
6411
6412 (HASH_SIZE): Define.
6413 (struct cache_entry): Define.
6414 (cache_space): Define.
6415 (cache): Define.
6416 (clear_ada_sym_cache): New function.
6417 (find_entry): New function.
6418 (lookup_cached_symbol): New function.
6419 (defn_vector_size): Define.
6420 (cache_symbol): New function.
6421 (defn_symbols): Remove.
6422
6423 (standard_lookup): Use lookup_symbol_in_language to get effect of
6424 C lookup.
6425 Cache results.
6426
6427 (symbol_completion_match): New function.
6428 (symbol_completion_add): New function.
6429 (ada_make_symbol_completion_list): New function.
6430
6431 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
6432 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
6433 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
6434 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
6435
6436 (ada_lookup_simple_minsym): New function.
6437 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
6438
6439 (add_symbols_from_enclosing_procs): New interface.
6440 Conditionalize more helpfully.
6441 Don't bother if program isn't running.
6442 Use new interface to get_frame_block.
6443 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
6444
6445 (remove_extra_symbols): New interface.
6446 (xget_renaming_scope): New function.
6447 (is_package_name): New function.
6448 (renaming_is_visible): New function.
6449 (remove_out_of_scope_renamings): New function.
6450
6451 (ada_lookup_symbol_list): New interface.
6452 Properly reinitialize the symbol list obstack.
6453 Don't call add_symbols_from_enclosing_procs if we start from a
6454 static or global block.
6455 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
6456 add_symbols_from_enclosing_procs.
6457 Add symtab data to cached entries.
6458 Handle symbols prefixed with
6459 "standard__" specially; strip prefix and don't look in local symbols.
6460 Do not include out of scope renaming symbols in list of
6461 symbols returned.
6462 Add const to block parameter.
6463 Move check for non-local, non-global symbols earlier.
6464 Remove timing stuff.
6465 (ada_lookup_symbol): New interface.
6466 Find symtab as well.
6467 (ada_lookup_symbol_nonlocal): New function.
6468
6469 (is_name_suffix): Enhance suffix detection to recognize
6470 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
6471 (is_dot_digits_suffix): New function.
6472 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
6473
6474 (ada_add_block_symbols): New interface. Use obstack to return results
6475 in a vector of struct ada_symbol_infos. Add symtab argument.
6476 Use new interface to add_defn_to_vec.
6477 Remove calls to fill_in_ada_prototype.
6478 Use BLOCK_BUCKETS, BLOCK_BUCKET.
6479
6480 (ada_finish_decode_line_1): Add const qualification to local to fix
6481 warning.
6482 Start looking in static block for functions to avoid attempts
6483 to search frame chain for up-level variables.
6484 Adapt to new ada_sals_for_line interface.
6485 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
6486 Handle quoting of the function name inside the spec string.
6487 Skip prologue when funfirstline is set and update the
6488 function documentation to that effect.
6489
6490 (debug_print_lines, debug_print_block, debug_print_blocks,
6491 debug_print_symtab): Remove.
6492
6493 (ada_main_name): New function.
6494 (ada_exception_breakpoint_type): New function.
6495 (is_known_support_routine): New function.
6496 (ada_find_printable_frame): Renamed from find_printable_frame and made
6497 global.
6498 Remove level parameter.
6499 Use new interface to select_frame.
6500
6501 (begin_command): Remove.
6502 (ada_adjust_exception_stop): New function.
6503 (ada_print_exception_stop): New function.
6504 (exception_name_from_cond): New function.
6505 (ada_report_exception_break): Replace disabled code with
6506 conditionalization on GNAT_GDB.
6507 Get the exception name from the condition string.
6508 Remove and move functionality into new functions
6509 ada_print_exception_breakpoint_task and
6510 ada_print_exception_breakpoint_nontask.
6511 (error_breakpoint_runtime_sym_not_found): New function.
6512 (is_runtime_sym_defined): New function.
6513 (ada_breakpoint_rewrite): Uncomment suppressed code.
6514 Use symbolic error-message and runtime-symbol names.
6515 Surround runtime symbol names in quotes.
6516 Allow non-specific breakpoints on exceptions and assertions before
6517 program starts.
6518
6519 (ada_is_tagged_type): Add parameter.
6520 (ada_is_tag_type): New function.
6521 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
6522 (ada_variant_discrim_type): Ditto.
6523 (value_tag_from_contents_and_address): New function.
6524 (type_from_tag): New function.
6525 (struct tag_args): New structure used to communicate with
6526 ada_tag_name_1.
6527 (ada_tag_name_1): New function.
6528 (ada_tag_name): New function.
6529
6530 (ada_scan_number): Update comment.
6531 (find_struct_field): New function.
6532 (ada_search_struct_field): Make static.
6533 (ada_value_struct_elt): New version that returns references when
6534 given pointers or references to structs.
6535 (ada_lookup_struct_elt_type): Add 'refok' parameter.
6536 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
6537 interface.
6538 (ada_value_ind): Use new ada_to_fixed_value interface.
6539 (ada_coerce_ref): Ditto.
6540 (field_offset): Remove.
6541
6542 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
6543 (ada_find_renaming_symbol): New function.
6544 (ada_prefer_type): Prefer named types over unnamed ones.
6545 (variant_field_index): New function.
6546 (contains_variant_part): Removed: subsumed by variant_field_index.
6547 (ada_template_to_fixed_record_type): New function, mostly from
6548 template_to_fixed_record_type.
6549 (template_to_fixed_record_type):
6550 Do not scan the type fields beyond the last one; prevents a
6551 potential SEGV.
6552 Handle case where variant field is listed BEFORE discriminant it
6553 depends on.
6554 Fix calculation of record length when bit length is
6555 not evenly divisible by char length.
6556 Move code to ada_template_to_fixed_record_type and call it.
6557
6558 (template_to_static_fixed_type): Revise comment.
6559 Modify to work on ordinary record types as well as templates,
6560 so as to handle fields that use ___XVE or ___XVU encodings.
6561 (to_record_with_fixed_variant_part): Fill out comment.
6562 Initialize C++ stuff in right type.
6563 Allow case where DVAL is null.
6564 Handle case where variant field is not last.
6565 Fix typo concerning record length.
6566 (to_fixed_record_type): Decomment disabled code.
6567 (to_fixed_record_type): Use variant_field_index instead of
6568 contains_variant_part.
6569 (to_fixed_variant_branch_type): Ditto.
6570 (to_fixed_array_type): Decomment disabled code.
6571 (ada_to_fixed_type): Convert tagged types to the specific type.
6572 Deactivate the size-check for array types in order to avoid
6573 some false size alarms.
6574 (to_static_fixed_type): Decomment disabled code.
6575 Modify to call template_to_static_fixed_type
6576 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
6577 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
6578 Remove valaddr argument, as it is never really used.
6579 (ada_to_fixed_value): Change interface to act on single struct value*
6580 operand.
6581 (adjust_pc_past_prologue): New function.
6582 (ada_attribute_name): Modify to take enum exp_opcode argument.
6583
6584 (ada_enum_name): Recognize new homonym-distinguishing convention.
6585 Adjust local variable's type to remove compiler warning.
6586 Fix a small problem in the part that unqualifies the enumeration name.
6587 (ada_value_binop): New function.
6588 (ada_value_equal): New function.
6589
6590 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
6591 Don't give error message when not doing normal evaluation
6592 and a tagged type doesn't seem to contain a structure member.
6593 Give error message for packed arrays.
6594 For indexing arrays, handle pointers to packed arrays correctly.
6595 Handle case of 'first and 'last attributes of bare integral type
6596 without encoded subtype info.
6597 Remove some unnecessary casts.
6598 Fix uninitialized value of type in computing 'first, 'last, or 'length
6599 of array object.
6600 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
6601 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
6602 calls.
6603 Attributes are now exp_opcode values.
6604 Correct treatment of 'modulus.
6605 Better error message for taking 'length of wrong kind of type;
6606 improve comment.
6607 Change EVAL_NORMAL to noside for consistency.
6608 Use ada_value_binop for DIV, MOD, REM.
6609 Make special case out of array of length 0, since an argument
6610 of 0 upsets some platforms' malloc.
6611 Use OP_STRING instead of OP_ARRAY.
6612 For slice, add check that we have an array type before extracting
6613 a slice out of it. Avoids a SEGV.
6614 When evaluating an array slice, if the array type is a reference to
6615 an aligner type, then replace the aligner type by the actual type.
6616 Decomment disabled code.
6617 Remove some dead code.
6618 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
6619 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
6620 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
6621 and UNOP_MBR to UNOP_IN_RANGE.
6622 If an array type has a parallel ___XVE type, then use it.
6623 Turn arrays into pointers for lvalue arrays.
6624 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
6625 bounds error and handle 0-length slices.
6626 Use lim_warning.
6627 When selecting fields, apply ada_to_fixed_value (because the fields
6628 might have ___XVU or ___XVE encodings even if not dynamic.)
6629 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
6630 (ada_is_system_address_type): New function.
6631
6632 (get_var_value): Use new interface to ada_lookup_symbol_list.
6633 (get_int_var_value): New interface.
6634 (to_fixed_range_type): Allow unknown bound, with warning.
6635 (ada_is_modular_type): Decomment disabled code.
6636 (ADA_OPERATORS): New definition.
6637 (ada_operator_length): New function.
6638 (ada_expr_op_name): New function.
6639 (ada_forward_operator_length): New function.
6640 (ada_dump_subexp_body): New function.
6641 (ada_print_subexp): New function.
6642 (ada_exp_descriptor): New constant.
6643 (ada_op_print_tab): Add 'size. Remove FIXMEs.
6644 (ada_language_defn): Add ada_exp_descriptor entry.
6645 Change ada_parse => parse.
6646 Add post-parser entry.
6647 Use ada-specific non-local symbol lookup.
6648 Don't use C-style arrays.
6649 String lower-bound is 1.
6650 Decomment disabled code.
6651 (parse): New function.
6652 New fields ada_translate_error_message, ada_lookup_symbol,
6653 ada_lookup_minimal_symbol.
6654
6655 * ada-lang.h: Update copyright dates.
6656 Replace the mangle/demangle terminology throughout by the
6657 more appropriate encode/decode one.
6658 Include breakpoint.h.
6659 Forward declare struct partial_symbol, struct block.
6660 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
6661 (EXTRACT_ADDRESS): Remove.
6662 (EXTRACT_INT): Remove.
6663 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
6664 (MAX_ENCLOSING_FRAME_LEVELS): Define.
6665 (MAX_RENAMING_CHAIN_LENGTH): Define.
6666 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
6667
6668 (enum task_states): Remove.
6669 ada_task_states: Remove.
6670 (fat_string): Remove.
6671 (struct entry_call): Remove.
6672 (struct task_fields): Remove.
6673 (struct task_entry): Remove.
6674
6675 (struct ada_symbol_info): Define.
6676 (enum ada_attribute): Remove.
6677 (enum ada_operator): Define.
6678
6679 (ada_get_field_index): Declare.
6680 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
6681 (ada_is_simple_array): Rename to ada_is_simple_array_type.
6682 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
6683 (ada_lookup_symbol_list): New interface.
6684 (ada_decode_symbol): Declare.
6685 (ada_decode): Declare.
6686 (ada_lookup_symbol): New interface.
6687 (ada_update_initial_language): Declare.
6688 (ada_lookup_simple_minsym): Declare.
6689 (user_select_syms): New interface.
6690 (ada_sals_for_line): Declare.
6691 (ada_is_tagged_type): New interface.
6692 (ada_tag_name): Declare.
6693 (ada_lookup_struct_elt_type): Remove declaration.
6694 (ada_search_struct_field): Remove declaration.
6695 (ada_attribute_name): New interface.
6696 (ada_is_system_address_type): Declare.
6697 (ada_to_fixed_value): Remove declaration.
6698 (ada_template_to_fixed_record_type_1): Declare.
6699 (get_int_var_value): New interface.
6700 (ada_find_any_symbol): Declare.
6701 (ada_find_renaming_symbol): Declare.
6702 (ada_mangle): Rename to ada_encode.
6703 (ada_simple_renamed_entity): Remove const.
6704 (ada_main_name): Declare.
6705 (get_current_task): Rename to ada_get_current_task.
6706 (get_entry_number): Remove declaration.
6707 (ada_report_exception_break): Remove declaration.
6708 (ada_print_exception_breakpoint_nontask): Declare.
6709 (ada_print_exception_breakpoint_task): Declare.
6710 (ada_find_printable_frame): Declare.
6711
6712 * ada-lex.l: Update copyright notices.
6713 Use xmalloc and xfree instead of malloc and free.
6714 Use new interface to name_lookup.
6715 Use new interface to
6716 ada_mangle=>ada_encode.
6717 Redo handling of '$...' variable to parallel current treatment
6718 in c-exp.y.
6719 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
6720 digit_to_int, strtoulst, processInt, processReal, processId,
6721 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
6722 yywrap): Protoize.
6723
6724 (processInt): Use cast to remove harmless warning.
6725 (processReal): Modify to get rid of compiler warning on scan formats.
6726
6727 (processId): Replace xmalloc with obstack_alloc for name and remove
6728 call to ada_name_string_cleanup.
6729 Remove obsolete disabled code.
6730 (name_lookup): Ditto.
6731 New interface.
6732 Use obsavestring on temp_parse_space instead of savestring
6733 on name, and remove call to ada_name_string_cleanup.
6734 Free string returned from ada_simple_renamed_entity.
6735 Use new interface to ada_lookup_symbol_list.
6736 Decomment disabled code.
6737 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
6738 not types.
6739 When a type name lookup succeeds as a result of
6740 lookup_primitive_typename, check for regular type entry that has not
6741 yet been read in.
6742 Limit length of chain of renamed symbols we are willing to follow.
6743 Do not break names beginning with "standard__" into segments.
6744 (block_lookup): Use new interface to ada_lookup_symbol_list.
6745
6746 * ada-typeprint.c: Update copyright notice.
6747 (demangled_type_name): Rename to decoded_type_name.
6748 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
6749 (print_range_bound): Correct handling of negative
6750 bounds that make the index type looked unsigned under STABS.
6751 (print_dynamic_range_bound): Use new interface to get_int_var_value.
6752 (print_range_type_named): Use the builtin int type if no type
6753 corresponding to the given type name could be found.
6754 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
6755 Add some bullet-proofing.
6756 (print_variant_clauses): Allow for variant branches with ___XVU
6757 encodings that are not dynamic fields.
6758 Use new interface to ada_is_tagged_type.
6759 (print_record_type): Allow for fields with ___XVE encodings that
6760 are not dynamic fields.
6761 Use new interface to ada_is_tagged_type.
6762 (ada_print_type): ada_is_array_descriptor =>
6763 ada_is_array_descriptor_type.
6764
6765 * ada-valprint.c: Update copyright notice.
6766 Include gdb_string.h
6767 Include infcall.h
6768 (ui_memcpy): New function.
6769 (ada_print_floating): New function.
6770 (ada_print_str): Order arguments correctly.
6771 Correct handling of empty arrays and arrays of 0-length items.
6772 ada_is_array_descriptor => ada_is_array_descriptor_type
6773 Print values of type System.Address in hexadecimal format.
6774 Use ada_print_floating to print floating-point numbers in Ada format.
6775 Print class tag values with type names.
6776 No longer print the address of reference values. Avoids
6777 a potential confusion.
6778 (ada_value_print): Stop printing the object type for reference
6779 values, but preserve that behavior for access types. Avoids
6780 a potential confusion.
6781 Simplify one conditional expression, as the first part is now
6782 necessarily true.
6783 ada_is_array_descriptor => ada_is_array_descriptor_type
6784 Add check for arrays for null records, and print them by hand.
4c4b4cd2 6785
f65f91b5
JB
67862004-06-01 Jim Blandy <jimb@redhat.com>
6787
6788 * ppc-tdep.h: Delete unused 'regoff' member.
6789 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
6790
d4687fa0
MC
67912004-06-01 Michael Chastain <mec.gnu@mindspring.com>
6792
6793 Fix PR symtab/1661.
6794 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
6795 (hpread_read_struct_type): Likewise.
6796
de169ec9
AC
67972004-06-01 Andrew Cagney <cagney@gnu.org>
6798
c6902d46
AC
6799 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
6800 instead of xasprintf.
6801 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
6802 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
6803 (mi_cmd_data_list_register_names)
6804 (mi_cmd_data_list_changed_registers)
6805 (mi_cmd_data_list_register_values)
6806 (get_register, mi_cmd_data_write_register_values)
6807 (mi_cmd_data_write_register_values)
6808 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
6809 (mi_cmd_target_download, mi_cmd_target_select)
6810 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
6811 (mi_execute_cli_command, mi_execute_async_cli_command)
6812 (mi_execute_async_cli_command): Ditto.
6813 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
6814 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
6815
6085fc2d
AC
6816 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
6817 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
6818 error_last_message instead of mi_error_last_message.
6819 * mi/mi-main.c (mi_error_last_message): Delete function.
6820
de169ec9
AC
6821 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
6822 "invalid number of columns" error. Delete redundant "out of
6823 memory" check.
6824
1fc7d519
MK
68252004-05-31 Mark Kettenis <kettenis@gnu.org>
6826
6cfb2041
MK
6827 * i386bsd-nat.c: Don't include <sys/procfs.h>.
6828 (gregset_t, fpregset_t): Remove typedefs.
6829 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
6830 (REG_OFFSET): Rename argument.
6831 (i386bsd_r_reg_offset): Rename from reg_offset.
6832 (REG_ADDR): Remove macro.
6833 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
6834 functions.
6835 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
6836 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
6837 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
6838 instead of supply_gregset.
6839 (store_inferior_registers): Use `struct reg' and `struct fpreg'
6840 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
6841 instead of fill_gregset.
6842 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
6843
1fc7d519
MK
6844 * i386bsd-nat.c: Don't include "gregset.h".
6845 (supply_gregset, fill_gregset): Make static.
6846 (supply_fpregset, fill_fpregset): Remove.
6847 * Makefile.in (i386bsd-nat.o): Update dependencies.
6848
2c34abbe
MK
68492004-05-30 Mark Kettenis <kettenis@gnu.org>
6850
448724fb
MK
6851 * fbsd-proc.c: Include "regcache.h", "regset.h" and
6852 "gdb_assert.h". Con't include "gregset.h".
6853 (fbsd_make_corefile_notes): Use regset-based core file support
6854 instead off fill_gregset and fill_fpregset.
6855 * Makefile.in (fbsd-proc.o): Update dependencies.
6856
5ca8ca7c
MK
6857 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
6858 instructions.
6859 (m88k_frame_prev_register): Simplify code a bit.
6860
593adc23
MK
6861 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
6862 (amd64_collect_fpregset): New function.
6863 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
6864
8d1b517b
MK
6865 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
6866
7fdafb5a
MK
6867 * i386-tdep.c (i386_supply_gregset): Adjust comment.
6868 (i386_collect_gregset): New function.
6869 (i386_supply_fpregset): Adjust comment.
6870 (i386_collect_fpregset): New function.
6871 (i386_regset_from_core_section): Use i386_collect_gregset and
6872 i386_collect_fpregset.
6873
8693c419
MK
6874 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
6875 handle VALUEP being null.
6876
2c34abbe
MK
6877 * regset.h (collect_regset_ftype): Unconstify fourth argument.
6878
45d134d8
MK
68792004-05-29 Mark Kettenis <kettenis@gnu.org>
6880
1698f4e7
MK
6881 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
6882
45d134d8
MK
6883 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
6884 assembler in OpenBSD 3.5-current.
6885 (amd64obsd_sigcontext_addr): Likewise.
6886
691d145a
JB
68872004-05-28 Jim Blandy <jimb@redhat.com>
6888
6889 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
6890 register set, so our regcache isn't declared "legacy" and our E500
6891 pseudoregister read and write functions aren't ignored.
6892 (rs6000_register_byte, rs6000_register_raw_size,
6893 rs6000_register_virtual_type, rs6000_register_convertible,
6894 rs6000_register_convert_to_virtual,
6895 rs6000_register_convert_to_raw): Deleted.
6896 (rs6000_register_type, rs6000_convert_register_p,
6897 rs6000_register_to_value, rs6000_value_to_register): New
6898 functions.
6899 (rs6000_gdbarch_init): Don't register
6900 gdbarch_deprecated_register_size,
6901 gdbarch_deprecated_register_bytes,
6902 gdbarch_deprecated_register_byte,
6903 gdbarch_deprecated_register_raw_size,
6904 gdbarch_deprecated_register_virtual_type,
6905 gdbarch_deprecated_register_convertible,
6906 gdbarch_deprecated_register_convert_to_virtual, or
6907 gdbarch_deprecated_register_convert_to_raw methods. Instead,
6908 register gdbarch_register_type, gdbarch_convert_register_p,
6909 gdbarch_register_to_value, and gdbarch_value_to_register methods.
6910
18ed0c4e
JB
69112004-05-26 Jim Blandy <jimb@redhat.com>
6912
6913 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
6914 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
6915 functions, updated to match the register numberings used in GCC.
6916 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
6917 rs6000_dwarf2_reg_to_regnum as register number conversions
6918 functions for STABS and Dwarf2.
6919
779af9e3
RC
69202004-05-26 Randolph Chung <tausq@debian.org>
6921
6922 * infttrace.h (target_waitkind): Forward declare type instead of pulling
6923 in header file.
6924
c23968a2
JB
69252004-05-25 Joel Brobecker <brobecker@gnat.com>
6926
6927 * NEWS: Document new "start" command.
6928
3a7d1c27
RC
69292004-05-25 Randolph Chung <tausq@debian.org>
6930
6931 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
6932 hppa-linux.
6933
43613416
RC
69342004-05-25 Randolph Chung <tausq@debian.org>
6935
6936 * hppa-hpux-tdep.c (offsetof): Define.
6937 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
6938 (hppa32_hpux_frame_base_before_sigtramp)
6939 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
6940 (hppa64_hpux_frame_saved_pc_in_sigtramp)
6941 (hppa64_hpux_frame_base_before_sigtramp)
6942 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
6943 functions.
6944 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
6945 (hppa_hpux_sigtramp_frame_unwind_cache)
6946 (hppa_hpux_sigtramp_frame_this_id)
6947 (hppa_hpux_sigtramp_frame_prev_register)
6948 (hppa_hpux_sigtramp_frame_unwind)
6949 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
6950 (hppa_hpux_init_abi): Register sigtramp unwinder.
6951 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
6952
6d1be3f1
RC
69532004-05-25 Randolph Chung <tausq@debian.org>
6954
6955 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
6956 and multiple stack unwinds.
6957 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
6958
97c34f65
AC
69592004-05-25 Andrew Cagney <cagney@gnu.org>
6960
6961 * symfile.h (symbol_file_add_from_memory): Delete declaration.
6962 * symfile-mem.h: Delete file.
6963 * symfile-mem.c: Do not include "symfile-mem.h".
6964 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
6965 "struct bfd_section". When an error do not bother returning NULL.
6966 (add_symbol_file_from_memory_command): Use "struct bfd" and
6967 "struct bfd_section".
6968 * Makefile.in (symfile_mem_h): Delete.
6969 (symfile-mem.o): Update dependencies.
6970
e23cbd82
NR
69712004-05-25 Nick Roberts <nickrob@gnu.org>
6972
6973 * gdb-mi.el: New file.
6974
20d2ca3e
AC
69752004-05-25 Andrew Cagney <cagney@gnu.org>
6976
6977 * inftarg.c: Include "observer.h".
6978 (child_attach, child_create_inferior): Notify inferior_created.
6979 * corelow.c: Include "observer.h".
6980 (core_open): Notify inferior_created.
6981 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
6982
c27cda74
AC
69832004-05-25 Andrew Cagney <cagney@gnu.org>
6984
6985 * target.h (struct target_ops): Add from_tty to
6986 to_create_inferior.
6987 (target_create_inferior, find_default_create_inferior): Update.
6988 * infcmd.c (run_command): Update.
6989 * wince.c (child_create_inferior): Update.
6990 * win32-nat.c (child_create_inferior): Update.
6991 * uw-thread.c (uw_thread_create_inferior): Update.
6992 * thread-db.c (thread_db_create_inferior): Update.
6993 * target.c (debug_to_create_inferior)
6994 (find_default_create_inferior): Update.
6995 (maybe_kill_then_create_inferior): Update.
6996 * sol-thread.c (sol_thread_create_inferior): Update.
6997 * remote.c (extended_remote_async_create_inferior)
6998 (extended_remote_create_inferior): Update.
6999 * remote-vx.c (vx_create_inferior): Update.
7000 * remote-st.c (st2000_create_inferior): Update.
7001 * remote-sim.c (gdbsim_create_inferior): Update.
7002 * remote-sds.c (sds_create_inferior): Update.
7003 * remote-rdp.c (remote_rdp_create_inferior): Update.
7004 * remote-rdi.c (arm_rdi_create_inferior): Update.
7005 * remote-m32r-sdi.c (m32r_create_inferior): Update.
7006 * remote-e7000.c (e7000_create_inferior): Update.
7007 * procfs.c (procfs_create_inferior): Update.
7008 * ocd.c (ocd_create_inferior): Update.
7009 * ocd.h (ocd_create_inferior): Update.
7010 * nto-procfs.c (procfs_create_inferior): Update.
7011 * monitor.c (monitor_create_inferior): Update.
7012 * lin-lwp.c (lin_lwp_create_inferior): Update.
7013 * inftarg.c (child_create_inferior): Update.
7014 * hpux-thread.c (hpux_thread_create_inferior): Update.
7015 * gnu-nat.c (gnu_create_inferior): Update.
7016
1db2a798
AC
70172004-05-25 Andrew Cagney <cagney@gnu.com>
7018
7019 * MAINTAINERS: Update e-mail address.
7020
007d08bb
RC
70212004-05-24 Randolph Chung <tausq@debian.org>
7022
7023 * thread.c (info_threads_command, thread_apply_all_command)
7024 (thread_apply_command, thread_command, do_captured_thread_select):
7025 Remove HPUXHPPA-specific code.
7026
69e7b95e
RC
70272004-05-24 Randolph Chung <tausq@debian.org>
7028
7029 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
7030 unused symbols.
7031 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
7032 references.
7033
a4d5f2e0
JB
70342004-05-24 Joel Brobecker <brobecker@gnat.com>
7035
7036 * infcmd.c (kill_if_already_running): New function, extracted
7037 from run_command().
7038 (run_command): Replace extracted code by call to
7039 kill_if_already_running().
7040 (start_command): New function.
7041 (_initialize_infcmd): Add "start" command.
7042
bf2ca189
MK
70432004-05-24 Mark Kettenis <kettenis@gnu.org>
7044
7045 Add OpenBSD/m88k support.
7046 * NEWS (New native configurations): Mention OpenBSD/m88k.
7047 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
7048 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
7049 * Makefile.in (m88k_tdep_h): New variable.
7050 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
7051 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
7052 * configure.host: Add m88*-*-openbsd*.
7053 * configure.tgt: Add m88*-*-openbsd*.
7054
80fadb11
JB
70552004-05-24 Jim Blandy <jimb@redhat.com>
7056
7057 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
7058 to approve changes.
7059
19e2d14b
KB
70602004-05-24 Kevin Buettner <kevinb@redhat.com>
7061
7062 * symtab.c (fixup_section): Search section table when lookup by
7063 name fails.
7064
1b07b470
RC
70652004-05-24 Randolph Chung <tausq@debian.org>
7066
7067 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
7068 be "small_struct".
7069
368702b1
MK
70702004-05-24 Mark Kettenis <kettenis@gnu.org>
7071
5df97fde
MK
7072 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
7073 register number in regcache_raw_collect call.
7074 (m68kbsd_collect_fpregset): Likewise.
7075 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
7076
368702b1
MK
7077 * regset.h (struct regset): Add back `regset' member.
7078
a770d4ec
MK
70792004-05-23 Mark Kettenis <kettenis@gnu.org>
7080
70f9f479
MK
7081 * configure.in: Check for td_pcb in `struct thread'.
7082 * configure, config.in: Regenerated.
7083
2e16d79e
MK
7084 * dpx2-nat.c: Remove file.
7085 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
7086 (dpx2-nat.o): Remove dependencies.
7087
492cf391
MK
7088 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
7089 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
7090 (amd64obsd_supply_pcb): New function.
7091 (_initialize_amd64obsd_nat): Enable libkvm interface.
7092 * Makefile.in (amd64obsd-nat.o): Update dependencies.
7093 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
7094 (LOADLIBES): New variable.
7095
a770d4ec
MK
7096 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
7097 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
7098 (sparc32nbsd_supply_pcb): New function.
7099 (_initialize_sparcnbsd_nat): Enable libkvm interface.
7100 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
7101 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
7102 (LOADLIBES): New variable.
7103
9ea75c57
MK
71042004-05-22 Mark Kettenis <kettenis@gnu.org>
7105
2e0c3539
MK
7106 * bsd-kvm.c, bsd-kvm.h: New files.
7107 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
7108 "bsd-kvm.h".
7109 (i386fbsd_supply_pcb): New function.
7110 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
7111 (i386fbsd-nat.o): Update dependencies.
7112 (bsd_kvm_h): New variable.
7113 (bsd-kvm.o): New dependency.
7114 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
7115 (LOADLIBES): New variable.
7116
9ea75c57
MK
7117 * regset.c: Tweak comment.
7118 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
7119 macro.
7120 * regset.h: Update copyright year.
7121 (struct regset): Remove `descr' member, add `gdbarch' member.
7122 (regset_alloc): Adjust prototype and comment.
7123 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
7124 (i386_supply_fpregset): Likewise.
7125 (i386_regset_from_core_section): Update call to regset_alloc.
7126 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
7127 REGSET->arch.
7128 (i386obsd_aout_regset_from_core_section): Update call to
7129 regset_alloc.
7130 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
7131 REGSET->arch.
7132 (i386nbsd_aout_regset_from_core_section): Update call to
7133 regset_alloc.
7134 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
7135 REGSET->arch.
7136 (amd64_regset_from_core_section): Update call to regset_alloc.
7137 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
7138 REGSET->arch.
7139 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
7140 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
7141 &sparc32nbsd_gregset in sparc32_supply_gregset call.
7142 (sparc32nbsd_init_abi): Update call to regset_alloc.
7143 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
7144 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
7145 (sparc64obsd_init_abi): Update call to regset_alloc.
7146 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
7147 &sparc64nbsd_gregset in sparc64_supply_gregset call.
7148 (sparc64nbsd_init_abi): Update call to regset_alloc.
7149 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
7150 &sparc64fbsd_gregset in sparc64_supply_gregset call.
7151 (sparc64fbsd_init_abi): Update call to regset_alloc.
7152
867e2dc5
JB
71532004-05-22 Jim Blandy <jimb@redhat.com>
7154
7155 * ppc-tdep.h (spe_register_p): New declaration.
7156 (struct gdbarch_tdep): New members: ppc_acc_regnum and
7157 ppc_spefscr_regnum.
7158 * rs6000-tdep.c (spe_register_p): New function.
7159 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
7160 spefscr.
7161 (rs6000_gdbarch_init): Initialize the new members of the tdep
7162 structure.
7163
617a4cba
JB
71642004-05-21 Jim Blandy <jimb@redhat.com>
7165
0397dee1
JB
7166 * ppc-linux-nat.c (fetch_register): Move code back to be next
7167 to the comment that describes it. (Moved code, instead of
7168 comment, for symmetry with store_register.)
7169
617a4cba
JB
7170 Allocate regset structures in the gdbarch's obstack, not using
7171 xmalloc.
7172 * regset.c (regset_alloc): Renamed from regset_xmalloc.
7173 Add 'arch' argument. Allocate the regset on arch's obstack, not
7174 using xmalloc.
7175 * regset.h (regset_alloc): Update declaration.
7176 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
7177 gdbarch argument.
7178 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7179 * i386-tdep.c (i386_regset_from_core_section): Same.
7180 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7181 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7182 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7183 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7184 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7185 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7186
9aa3914d
JB
71872004-05-21 Joel Brobecker <brobecker@gnat.com>
7188
7189 * config/djgpp/fnchange.lst: Undo previous change, was useless.
7190
99c87dab
JB
71912004-05-21 Jim Blandy <jimb@redhat.com>
7192
7193 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
7194 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
7195
c2b6b4aa
JB
71962004-05-20 Jim Blandy <jimb@redhat.com>
7197
7198 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
7199
144529d0
MK
72002004-05-20 Mark Kettenis <kettenis@gnu.org>
7201
7202 * regset.h: Make prototype const-correct.
7203 * regset.c (regset_xmalloc): Make const-correct.
7204
4725b721
PH
72052004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
7206
7207 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
7208 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
7209 (symbol_search_name): Declare.
7210
7211 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
7212 (iter_name_next_hashed): Ditto.
7213 (iter_name_next_linear): Ditto.
7214 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
7215
7216 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
7217 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
7218 (symbol_search_name): New function.
7219
7220 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
7221
7222 * minsyms.c (build_minimal_symbol_hash_tables): Change
7223 test for adding to demangled hash table to check for difference
7224 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
7225
be07a590
JB
72262004-05-19 Jim Blandy <jimb@redhat.com>
7227
7228 Use a constructor function to create regset structures.
7229 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
7230 (struct regset): Use supply_regset_ftype. Add new
7231 'collect_regset' member.
7232 (regset_xmalloc): New declaration.
7233 * regset.c: New file.
7234 * am64-tdep.c (amd64_regset_from_core_section): Use
7235 regset_xmalloc to construct regset structures.
7236 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7237 * i386-tdep.c (i386_regset_from_core_section): Same.
7238 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7239 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7240 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7241 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7242 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7243 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7244 * Makefile.in (COMMON_OBS): Add regset.o.
7245 (regset.o): New rule.
7246
604368f5
JB
72472004-05-19 Joel Brobecker <brobecker@gnat.com>
7248
7249 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
7250 and pthread_cond_wait.c.
7251
82d69f8b
JB
72522004-05-18 Jim Blandy <jimb@redhat.com>
7253
7254 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
7255 before the mach-specific switch, and then let the individual cases
7256 override the defaults, rather than leaving them uninitialized
7257 until the switch and then setting them in each case.
7258
5859efe5
RC
72592004-05-18 Randolph Chung <tausq@debian.org>
7260
7261 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
7262 millicode functions.
7263
9ca80cf8
RC
72642004-05-18 Randolph Chung <tausq@debian.org>
7265
7266 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
7267 references to dld_flags_buffer consistent.
7268
ed70ba00
RC
72692004-05-18 Randolph Chung <tausq@debian.org>
7270
7271 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
7272 it for unwinding the stack.
7273
63100632
RC
72742004-05-18 Randolph Chung <tausq@debian.org>
7275
7276 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
7277 Undefine these so we can overide them using gdbarch.
7278
090ccbb7
RC
72792004-05-18 Randolph Chung <tausq@debian.org>
7280
7281 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
7282 handling for 64-bit HPUX (elf).
7283
594706e6
DJ
72842004-05-18 Daniel Jacobowitz <dan@debian.org>
7285
7286 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
7287 constants.
7288 * amd64-tdep.c (amd64_skip_prologue): Likewise.
7289 * ia64-tdep.c (examine_prologue): Likewise.
7290 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
7291 * v850-tdep.c (v850_fix_call_dummy): Likewise.
7292
e5483145
MK
72932004-05-18 Mark Kettenis <kettenis@gnu.org>
7294
7295 * vax-tdep.c (vax_return_value): Implement
7296 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7297
caed1a45
MK
72982004-05-17 Mark Kettenis <kettenis@gnu.org>
7299
7300 * vax-tdep.c (vax_return_value): Fix typo.
7301
3c0b7db2
AC
73022004-05-17 Andrew Cagney <cagney@redhat.com>
7303
5aae53e5
AC
7304 * MAINTAINERS: Mark Salter was also responsible for
7305 testsuite/config/
7306
3c0b7db2
AC
7307 * NEWS: Mention signal fixes.
7308
22b0923d
RC
73092004-05-17 Randolph Chung <tausq@debian.org>
7310
7311 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
7312 check to see if we are unwinding an export stub. Export stubs clobber
7313 the %rp in the call path and stores the original rp in a stack slot.
7314
22f2b2f3
JB
73152004-05-17 Jim Blandy <jimb@redhat.com>
7316
7317 * MAINTAINERS: Update address for J.T. Conklin.
7318
cea96d64
RC
73192004-05-17 Randolph Chung <tausq@debian.org>
7320
7321 * hppa-tdep.c: Remove superfluous #include's.
7322 * Makefile.in (hppa-tdep.o): Update dependencies.
7323
f08f6a4a
RC
73242004-05-17 Randolph Chung <tausq@debian.org>
7325
7326 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
7327 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
7328 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
7329 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
7330 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
7331 Remove static function declarations.
7332
51da707a
MK
73332004-05-17 Mark Kettenis <kettenis@gnu.org>
7334
caed1a45
MK
7335 * alphabsd-nat.c: Update copyright year.
7336 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
7337
c0c2b0db
MK
7338 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
7339 and M68K_A2_REGNUM.
7340
51da707a
MK
7341 * m68k-tdep.c (m68k_svr4_return_value): Implement
7342 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7343
8d027a04
MK
73442004-05-16 Mark Kettenis <kettenis@gnu.org>
7345
7346 * sol-thread.c Update copyright year. Fix various coding
7347 standards violations. Tweak a few comments.
7348 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
7349 Delete prototypes.
7350
0d99fdb9
RC
73512004-05-15 Randolph Chung <tausq@debian.org>
7352
7353 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
7354 as pointer instead of array reference since HPUX compiler does
7355 not accept unsized array arguments.
7356 * somsolib.c (dld_flags_buffer): Use constant array size.
7357
f7e3843a
MK
73582004-05-15 Mark Kettenis <kettenis@gnu.org>
7359
0fe85704
MK
7360 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
7361 offset with decimal offset.
7362 (amd64obsd_sigcontext_addr): Return correct address for entire
7363 signal trampoline.
7364
a54f9a00
MK
7365 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
7366 instead of get_frame_base.
7367
feae6502
MK
7368 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
7369 (fill_gregset): Use regcache_raw_collect.
7370
0382d099
MK
7371 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
7372 ppcobsd-tdep.c.
7373
f7e3843a
MK
7374 * config/sparc/tm-nbsd64.h: Remove file.
7375 * config/tm-sunos.h: Remove file.
7376
773df3e5
JB
73772004-05-15 Joel Brobecker <brobecker@gnat.com>
7378
7379 * rs6000-tdep.c (store_param_on_stack_p): New function,
7380 an improved version of some code extracted from skip_prologue().
7381 (skip_prologue): Use store_param_on_stack_p() to detect
7382 instructions saving a parameter on the stack. Detect when r0
7383 is used to save a parameter.
7384 Do not mark "li rx, SIMM" instructions as part of the prologue,
7385 unless the following instruction is also part of the prologue.
7386
95918acb
AC
73872004-05-14 Andrew Cagney <cagney@redhat.com>
7388
06f32659
AC
7389 * infrun.c (handle_inferior_event): Simplify
7390 STEP_OVER_UNDEBUGGABLE.
7391
95918acb
AC
7392 * infrun.c (handle_step_into_function): Delete function.
7393 (handle_inferior_event): Inline calls to
7394 handle_step_into_function.
7395
40711ff1 73962004-05-14 Jerome Guitton <guitton@gnat.com>
42203e46
JG
7397
7398 * rs6000-nat.c: Fix a comment.
7399
02f60eae
JB
74002004-05-12 David Anderson <davea@sgi.com>
7401
7402 Committed by Jim Blandy <jimb@redhat.com>:
7403 * regcache.c (struct regcache_descr): fix comment spelling.
7404
552e377b
JB
74052004-05-13 J. Brobecker <brobecker@gnat.com>
7406
7407 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
7408 Fixes a link link failure.
7409
349766b2
JB
74102004-05-13 J. Brobecker <brobecker@gnat.com>
7411
7412 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
7413 error that was causing the build to fail.
7414
0d4d5484
JB
74152004-05-13 J. Brobecker <brobecker@gnat.com>
7416
7417 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
7418 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
7419
0b30808c
AC
74202004-05-13 Andrew Cagney <cagney@redhat.com>
7421
7422 * infrun.c (handle_inferior_event): Check for
7423 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
7424 calls. Update comments.
7425
cdf2c5f5
JB
74262004-05-13 Jim Blandy <jimb@redhat.com>
7427
063715bf
JB
7428 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
7429 (fetch_regs_user_thread, fetch_regs_kernel_thread)
7430 (store_regs_user_thread, store_regs_kernel_thread): Use
7431 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
7432 * ppc-linux-nat.c (fill_gregset): Same.
7433 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
7434 (ppc_linux_sigtramp_cache): Same.
7435 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
7436 (ppcnbsd_sigtramp_cache_init): Same.
7437 * rs6000-nat.c (fetch_core_registers): Same.
7438 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
7439 (rs6000_frame_cache): Same.
7440
cdf2c5f5
JB
7441 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
7442 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
7443 of assuming that the gprs are numbered starting with zero.
7444 * ppc-linux-nat.c (fill_gregset): Same.
7445 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
7446 * ppcnbsd-nat.c (getregs_supplies): Same.
7447 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
7448 * rs6000-nat.c (fetch_core_registers): Same.
7449 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
7450
450bd37b
MS
74512004-05-07 Michael Snyder <msnyder@redhat.com>
7452
7453 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
7454 LOC_COMPUTED_ARG, and LOC_INDIRECT.
7455
4a72a2a6
AC
74562004-05-13 Andrew Cagney <cagney@redhat.com>
7457
7458 * infrun.c (handle_inferior_event): Use frame_unwind_id.
7459
8edfa926
BM
74602004-05-13 Bryce McKinlay <mckinlay@redhat.com>
7461
7462 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
7463 base_address for shared libraries.
7464
723e0e3d
BM
74652004-05-13 Bryce McKinlay <mckinlay@redhat.com>
7466
7467 * MAINTAINERS (write after approval): Add myself.
7468
00d4360e
UW
74692004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
7470
7471 * breakpoint.c (bpstat_stop_status): Add new argument
7472 STOPPED_BY_WATCHPOINT. Use it instead of testing
7473 target_stopped_data_address agaist 0 to check whether
7474 or not we stopped due to a hardware watchpoint.
7475 * breakpoint.h (bpstat_stop_status): Adapt prototype.
7476 * infrun.c (handle_inferior_event): Call bpstat_stop_status
7477 with new argument.
7478
ec76baa5
JB
74792004-05-12 Jim Blandy <jimb@redhat.com>
7480
7481 * configure.in: When checking whether we should use the -bbigtoc
7482 option, don't forget to restore the original value of LDFLAGS.
7483 * configure: Regenerated.
7484
f2c9ca08
AC
74852004-05-12 Andrew Cagney <cagney@redhat.com>
7486
7487 * thread.c (load_infrun_state): Delete step_sp.
7488 * infrun.c (context_switch): Ditto.
7489 * inferior.h (step_sp): Ditto.
7490 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
7491 * gdbthread.h (struct thread_info, save_infrun_state)
7492 (restore_infrun_state): Ditto.
7493
090ddb2a
UW
74942004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
7495
7496 * MAINTAINERS (write after approval): Add myself.
7497
8aad930b
AC
74982004-05-12 Andrew Cagney <cagney@redhat.com>
7499
7500 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
7501 eliminate reference to step_sp.
7502 (struct execution_control_state, init_execution_control_state)
7503 (handle_inferior_event, keep_going): Delete update_step_sp and
7504 step_sp.
7505 * infcmd.c (step_sp): Note that variable is unused.
7506
922d5ae0
AC
75072004-05-11 Andrew Cagney <cagney@redhat.com>
7508
7509 * infrun.c (step_over_function): Delete function.
7510 (handle_step_into_function): Use insert_step_resume_breakpoint.
7511 (insert_step_resume_breakpoint): Fix assertion.
7512
017c5ca5
NR
75132004-05-11 Nick Roberts <nickrob@gnu.org>
7514
7515 * utils.c (defaulted_query): Just use the normal query input type
7516 when printing the annotations.
7517
42edda50
AC
75182004-05-11 Andrew Cagney <cagney@redhat.com>
7519
7520 * infrun.c (handle_inferior_event): Simplify code handling
7521 step-into or return-from a signal trampoline.
7522
d28b44a7
AC
75232004-05-11 Andrew Cagney <cagney@redhat.com>
7524
7525 * ppcnbsd-tdep.c: Include "gdb_assert.h".
7526 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
7527
383f0f5b
JB
75282004-05-10 Jim Blandy <jimb@redhat.com>
7529
d0b57c3a
JB
7530 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
7531 with a call to internal_error.
7532
383f0f5b
JB
7533 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
7534 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
7535 processor variant lacks those registers.
7536 (ppc_floating_point_unit_p): Change description to make it clear
7537 that this returns info about the ISA, not the ABI.
7538 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
7539 return true or false by checking tdep->ppc_fp0_regnum and
7540 tdep->ppc_fpscr_regnum. The original code replicated the BFD
7541 arch/mach switching done in rs6000_gdbarch_init; it's better to
7542 keep that logic there, and just check the results here.
7543 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
7544 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
7545 floating-point registers.
7546 (ppc_supply_fpregset, ppc_collect_fpregset)
7547 (rs6000_push_dummy_call, rs6000_extract_return_value)
7548 (rs6000_store_return_value): Assert that we have floating-point
7549 registers.
7550 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
7551 (rs6000_frame_cache): Don't note the locations at which
7552 floating-point registers were saved if we have no fprs.
7553 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
7554 registers.
7555 (fetch_regs_user_thread, fetch_regs_kernel_thread)
7556 (store_regs_user_thread, store_regs_kernel_thread): Only call
7557 supply_fprs / fill_fprs if we actually have floating-point
7558 registers.
7559 (special_register_p): Check ppc_fpscr_regnum before matching
7560 against it.
7561 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
7562 supply / collect fpscr if we don't have it.
7563 * ppc-bdm.c: #include "gdb_assert.h".
7564 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
7565 have floating-point registers, since I can't test this code on
7566 FP-free systems to adapt it.
7567 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
7568 fpscr and floating point register numbers if they don't exist.
7569 (fetch_register): Assert that we have floating-point registers
7570 before we reach the code that handles them.
7571 (store_register): Same. And use tdep instead of calling
7572 gdbarch_tdep again.
7573 (fill_fpregset): Don't try to collect FP registers and fpscr if we
7574 don't have them.
7575 (ppc_linux_sigtramp_cache): Don't record the saved locations of
7576 fprs and fpscr if we don't have them.
7577 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
7578 don't have them.
7579 * ppcnbsd-nat.c: #include "gdb_assert.h".
7580 (getfpregs_supplies): Assert that we have floating-point registers.
7581 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
7582 * ppcobsd-tdep.c: #include "gdb_assert.h".
7583 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
7584 have floating-point registers.
7585 * rs6000-nat.c (regmap): Don't match against the fpscr and
7586 floating point register numbers if they don't exist.
7587 (fetch_inferior_registers, store_inferior_registers,
7588 fetch_core_registers): Only fetch / store / supply the
7589 floating-point registers and the fpscr if we have them.
7590 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
7591 (ppcobsd-tdep.o): Update dependencies.
7592
15960608
AC
75932004-05-10 Andrew Cagney <cagney@redhat.com>
7594
7595 * infrun.c (through_sigtramp_breakpoint): Delete variable.
7596 (context_switch): Do not switch through_sigtramp_breakpoint.
7597 * gdbthread.h (save_infrun_state, load_infrun_state)
7598 (struct thread_info): Delete through_sigtramp_breakpoint parameter
7599 and structure member.
7600 * thread.c (load_infrun_state, save_infrun_state): Update.
7601
5ab5aa0f
MK
76022004-05-10 Mark Kettenis <kettenis@gnu.org>
7603
7604 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
7605
da78b0e7
DJ
76062004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
7607
7608 * acinclude.m4: Quote macro names being defined by AC_DEFUN
7609 throughout.
7610 * aclocal.m4: Regenerate.
7611
cca0d3b0
NW
76122004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
7613
7614 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
7615
d303a6c7
AC
76162004-05-10 Andrew Cagney <cagney@redhat.com>
7617
7618 * infrun.c (check_sigtramp2): Delete function.
7619 (handle_inferior_event): When single stepping, and taking a
7620 signal, set a breakpoint at the signal return address. Delete
7621 redundant calls to check_sigtramp2.
7622 (insert_step_resume_breakpoint): New function.
7623 (through_sigtramp_breakpoint, handle_inferior_event)
7624 (follow_exec, wait_for_inferior, fetch_inferior_event)
7625 (currently_stepping, keep_going): Delete most uses of
7626 through_sigtramp_breakpoint, not that it should be deleted.
7627 (delete_breakpoint_current_contents): Delete function.
7628
03f4cc20
RC
76292004-05-10 Randolph Chung <tausq@debian.org>
7630
7631 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
7632 target.
7633 * config/pa/tm-linux.h: New file.
7634
37fc812e
DJ
76352004-05-10 Daniel Jacobowitz <drow@mvista.com>
7636
7637 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
7638 of prefixes. Don't print the prefix twice in the CLI.
7639
26c0b942
JB
76402004-05-10 Jim Blandy <jimb@redhat.com>
7641
2e56e9c1
JB
7642 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
7643 collect all the gprs.
7644
26c0b942
JB
7645 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
7646 loop collecting gprs.
7647
dc497459
AC
76482004-05-09 Andrew Cagney <cagney@redhat.com>
7649
7650 * remote-vx.c (net_step): Delete step-range code.
7651 * remote.c (remote_resume, init_all_packet_configs)
7652 (set_remote_protocol_E_packet_cmd)
7653 (show_remote_protocol_E_packet_cmd)
7654 (remote_protocol_E, show_remote_cmd, _initialize_remote)
7655 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
7656 (show_remote_protocol_e_packet_cmd): Ditto.
7657
0543f387
MK
76582004-05-09 Mark Kettenis <kettenis@gnu.org>
7659
c481d1ca
MK
7660 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
7661
f626a069
MK
7662 * hppa-tdep.h: Update copyright year.
7663 (struct trad_frame_saved_reg): Add opaque declaration.
7664
6fa57a7d
MK
7665 * amd64-tdep.c (amd64_return_value): Implement
7666 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7667
e47577ab
MK
7668 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
7669 (m68k_value_to_register): New functions.
7670 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
7671 value_to_register.
7672
31db7b6c
MK
7673 * defs.h (enum return_value_convention): Add
7674 RETURN_VALUE_ABI_RETURNS_ADDRESS and
7675 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
7676 * infcmd.c (legacy_return_value): New function.
7677 (print_return_value): Rwerite to implement
7678 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7679 * values.c (using_struct_return): Check for inequality to
7680 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
7681 RETURN_VALUE_STRUCT_CONVENTION.
7682 * i386-tdep.c (i386_return_value): Implement
7683 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7684
0543f387
MK
7685 * vax-tdep.c: Tweak comments. Reorder include files. Don't
7686 include "symtab.h", "opcode/vax.h" and "inferior.h".
7687 (vax_skip_prologue): Replace calls to read_memory_integer by calls
7688 to read_memory_unsigned_integer.
7689 (vax_gdbarch_init): Reorder.
7690 (_initialize_vax_tdep): Spell out prototype.
7691 * Makefile.in (vax-tdep.o): Update dependencies.
7692
0c93b7b6
AC
76932004-05-08 Andrew Cagney <cagney@redhat.com>
7694
e6b55ae2
AC
7695 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
7696 * target.c (target_detach, target_disconnect): Ditto.
7697
1ac839b8
AC
7698 * infcall.c (call_function_by_hand): When no
7699 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
7700 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
7701 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
7702 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7703 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7704
28954179
AC
7705 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
7706 * gdbarch.h, gdbarch.c: Re-generate.
7707 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7708 deprecated_fix_call_dummy.
7709 * v850-tdep.c (v850_gdbarch_init): Ditto.
7710 * infcall.c (call_function_by_hand): Do not call
7711 DEPRECATED_FIX_CALL_DUMMY.
7712
434b87dd
AC
7713 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
7714 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
7715 * gdbarch.h, gdbarch.c: Re-generate.
7716 * arm-linux-tdep.c (arm_linux_call_dummy_words)
7717 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
7718 deprecated_sizeof_call_dummy_words.
7719 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
7720 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7721 * v850-tdep.c (v850_gdbarch_init): Ditto.
7722 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
7723 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
7724 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7725 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7726 * arch-utils.h (legacy_call_dummy_words)
7727 (legacy_sizeof_call_dummy_words): Delete declarations.
7728 * arch-utils.c (legacy_call_dummy_words)
7729 (legacy_sizeof_call_dummy_words): Delete variables.
7730
58d28df8
AC
7731 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
7732 * gdbarch.h, gdbarch.c: Re-generate.
7733 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
7734 * infcall.c (call_function_by_hand): Eliminate call to
7735 DEPRECATED_PUSH_DUMMY_FRAME.
7736 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
7737 push_dummy_frame.
7738 (ns32k_push_dummy_frame): Delete function.
7739
e4a2df64
AC
7740 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7741 deprecated_call_dummy_breakpoint_offset or
7742 deprecated_call_dummy_start_offset.
7743 * dummy-frame.c, arm-tdep.c: Update comments.
7744 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
7745 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
7746 * gdbarch.h, gdbarch.c: Re-generate.
7747
d3712828
AC
7748 * infcall.c (legacy_push_dummy_code): Delete function.
7749 (push_dummy_code): Delete call.
7750
7a882905
AC
7751 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
7752 * gdbarch.h, gdbarch.c: Re-generate.
7753 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
7754 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
7755 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
7756 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
7757
0ec5872b
AC
7758 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
7759 (struct frame_info): Delete opaque declaration.
7760 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
7761 * frame.c (get_frame_type): Delete call.
7762
0c93b7b6
AC
7763 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
7764 pc_in_call_dummy.
7765 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
7766 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
7767
75536971
MK
77682004-05-08 Mark Kettenis <kettenis@gnu.org>
7769
527ca6bb
MK
7770 * alphanbsd-tdep.c: Include "gdb_string.h".
7771 * armnbsd-tdep.c: Update copyright year.
7772 Include "gdb_string.h".
7773 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
7774 dependencies.
7775
d39fdc61
MK
7776 * delta68-nat.c: Remove file.
7777 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
7778 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
7779 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
7780 (delta68-nat.o): Remove dependency.
7781
75536971
MK
7782 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
7783 function.
7784 (m68k_gdbarch_init): Don't set
7785 deprecated_frameless_function_invocation.
7786
f4ca1d1f
RC
77872004-05-07 Randolph Chung <tausq@debian.org>
7788
7789 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
7790 read_memory_nobpt for code reading when doing frame unwinding.
7791 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
7792
2f0e8c7a
RC
77932004-05-07 Randolph Chung <tausq@debian.org>
7794
7795 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
7796 instead of sp, handle sigaltstack case.
7797 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
7798 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
7799 signal handler and not that of the caller.
7800 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
7801 hppa_linux_sigtramp_find_sigcontext.
7802
959464ff
RC
78032004-05-07 Randolph Chung <tausq@debian.org>
7804
7805 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
7806 hppa-linux-nat.c.
7807 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
7808 * hppa-linux-nat.c (fetch_register, store_register): Define.
7809 (fetch_inferior_registers, store_inferior_registers): Define.
7810 (supply_gregset): Add comment and clean up some unneeded code.
7811 (fill_gregset): Add comment and fix so that it saves registers in
7812 the right place in the gregset.
7813 (fill_fpregset): Fix buffer overrun problem.
7814 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
7815
0da28f8a
RC
78162004-05-07 Randolph Chung <tausq@debian.org>
7817
7818 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
7819 do common handling of the pcoqt register.
7820 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
7821 to use helper function.
7822 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
7823 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
7824 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
7825 generic fallback unwinder when all else fails.
7826 (hppa_gdbarch_init): Add fallback sniffer.
7827 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
7828 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
7829 to use helper function.
7830
b9ec757a
JB
78312004-05-08 Joel Brobecker <brobecker@gnat.com>
7832
7833 * config/djgpp/fnchange.lst: Add translation rules for
7834 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
7835
756e95f1
MK
78362004-05-08 Mark Kettenis <kettenis@gnu.org>
7837
7838 * frame.c (get_prev_frame_1): Work around GCC bug.
7839 * frame.h: Add comment about GCC bug.
7840
2b4855ab
AC
78412004-05-07 Andrew Cagney <cagney@redhat.com>
7842
7843 * observer.c: Include "commands.h" and "gdbcmd.h".
7844 (observer_debug, _initialize_observer): Add the
7845 command "set/show debug observer".
7846 * observer.sh: When observer debugging, log notify calls.
7847 * Makefile.in (observer.o): Update dependencies.
7848
ba3e8e46
JM
78492004-05-07 Jason Molenda (jmolenda@apple.com)
7850
7851 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
7852
16796152
JB
78532004-05-07 Jim Blandy <jimb@redhat.com>
7854
daf6dc85
JB
7855 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
7856 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
7857 to recognize gpr regnums, instead of assuming that
7858 tdep->ppc_fp0_regnum marks the end of the general-purpose
7859 registers.
7860
16796152
JB
7861 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
7862 the given architecture has floating-point registers.
7863
c69b8bfc
AC
78642004-05-07 Andrew Cagney <cagney@redhat.com>
7865
7866 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
7867 macro defined to 1.
7868 * gdbarch.h, gdbarch.c: Re-generate.
7869 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7870 deprecated_use_generic_dummy_frames.
7871
7243600a
BF
78722004-05-07 Brian Ford <ford@vss.fsi.com>
7873
7874 * NEWS: Mention Cygwin DWARF 2 support.
7875
73c1e0a1
AC
78762004-05-07 Andrew Cagney <cagney@redhat.com>
7877
7878 * objfiles.h (struct entry_info): Delete unused fields
7879 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
7880 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
7881 * mipsread.c (mipscoff_symfile_read): Update.
7882 * mdebugread.c (parse_partial_symbols): Update.
7883 * dwarfread.c (read_file_scope): Update.
7884 * dwarf2read.c (read_file_scope): Update.
7885 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
7886 * coffread.c (complete_symtab): Update.
7887
1d3056ac
MK
78882004-05-07 Mark Kettenis <kettenis@gnu.org>
7889
7890 * infcall.c (_initialize_infcall): Fix typo.
7891
15170568
AC
78922004-05-07 Andrew Cagney <cagney@redhat.com>
7893
7894 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
7895 * command.h (add_setshow_zinteger_cmd): Declare.
7896
34f75cc1
RC
78972004-05-06 Randolph Chung <tausq@debian.org>
7898
7899 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
7900 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
7901 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
7902 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
7903 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
7904 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
7905 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
7906 definitions ...
7907 * hppa-tdep.h: ... to here, with HPPA_ prefix.
7908 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
7909 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
7910 (hppa64_hpux_frame_find_saved_regs_in_sig)
7911 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
7912 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
7913 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
7914 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
7915 (hppa_linux_sigtramp_frame_prev_register): Likewise.
7916 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
7917 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
7918 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
7919 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
7920 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
7921 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
7922 (hppa32_register_type, hppa_cannot_store_register)
7923 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
7924 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
7925 * hpread.c (hpread_process_one_debug_symbol): Likewise.
7926 * pa64solib.c (pa64_solib_have_load_event)
7927 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
7928 (pa64_solib_unloaded_library_pathname): Likewise.
7929 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
7930 (som_solib_library_pathname): Likewise.
7931
0a5e7efe
JI
79322004-05-05 Jim Ingham <jingham@apple.com>
7933
7934 * breakpoint.c (create_breakpoints): Copy the ignore count and
7935 thread id over from the pended breakpoint to the actual
7936 breakpoint.
7937
10a4b113
AC
79382004-05-05 Andrew Cagney <cagney@redhat.com>
7939
7940 * gdbarch.sh (PARM_BOUNDARY): Delete.
7941 gdbarch.h, gdbarch.c: Re-generate.
7942 * valops.c (PARM_BOUNDARY): Delete macro.
7943 (value_push): Delete PARM_BOUNDARY code.
7944 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
7945
366f009f
JB
79462004-05-04 Jim Blandy <jimb@redhat.com>
7947
32b99774
JB
7948 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
7949 Don't assume that the gprs, fprs, and UISA sprs are
7950 contiguous, start at register number zero, and end with fpscr.
7951 Instead, use the numbers from the tdep structure.
7952
366f009f
JB
7953 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
7954 should no longer be used in code specific to the RS6000 and its
7955 derivatives.
7956 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
7957 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
7958 tdep->ppc_fp0_regnum.
7959 (ppc_supply_fpregset, ppc_collect_fpregset)
7960 (rs6000_push_dummy_call, rs6000_extract_return_value)
7961 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
7962 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
7963 FP0_REGNUM.
7964 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
7965 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
7966 Same.
7967 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
7968 bdm_ppc_store_registers): Same.
7969 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
7970 (store_register, fill_fpregset): Same.
7971 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
7972 (ppc_linux_supply_fpregset): Same.
7973 * ppcnbsd-nat.c (getfpregs_supplies): Same.
7974 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
7975 Same.
7976 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
7977 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
7978 ppc64_sysv_abi_return_value): Same.
7979 * rs6000-nat.c (regmap, fetch_inferior_registers)
7980 (store_inferior_registers, fetch_core_registers): Same.
7981
827f338d
MK
79822004-05-01 Mark Kettenis <kettenis@gnu.org>
7983
7984 * m68knbsd-nat.c: Remove file.
7985 * m68knbsd-tdep.c: Remove file.
7986 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
7987 dependencies.
7988 * configure.host: Add m68k-*-netbsdelf*.
7989 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
7990 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
7991 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
7992 (XM_FILE): Remove.
7993 * config/m68k/nbsdelf.mh: New file.
7994 * config/m68k/nbsd.mt: New file.
7995 * config/m68k/nbsdaout.mt: Remove file.
7996 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
7997 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
7998 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
7999 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
8000 (use_struct_convention): Remove prototype.
8001 (USE_STRUCT_CONVENTION): Remove define.
8002 * config/m68k/xm-nbsd.h: Remove file.
8003
66894781
MS
80042004-05-04 Michael Snyder <msnyder@redhat.com>
8005
8006 * m68k-tdep.c (m68k_gdbarch_init): Default to using
8007 reg_struct_return method (as gcc usually does for cross targets).
8008
f0f63663
AC
80092004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8010
8011 Committed by Andrew Cagney.
8012 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
8013 alignment padding when accessing ucontext struct members.
8014
edf61169
JB
80152004-05-04 Jim Blandy <jimb@redhat.com>
8016
8bf659e8
JB
8017 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
8018 'ppc_gplast_regnum' member.
8019 (ppc_num_gprs): New enum constant.
8020 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
8021 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
8022 * rs6000-nat.c (regmap, fetch_inferior_registers,
8023 store_inferior_registers): Same.
8024 * rs6000-tdep.c (e500_pseudo_register_read)
8025 (e500_pseudo_register_write): Same.
8026 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
8027
b967e06f
JB
8028 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
8029 * ppc-tdep.h (ppc_num_fprs): New enum constant.
8030 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
8031 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
8032 FPLAST_REGNUM.
8033 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8034 Same.
8035 * ppc-linux-nat.c (ppc_register_u_addr): Same.
8036 * rs6000-nat.c (regmap, fetch_inferior_registers)
8037 (store_inferior_registers): Same.
8038
edf61169
JB
8039 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
8040 with FPLAST_REGNUM.
8041
58a9656e
JB
80422004-05-03 Joel Brobecker <brobecker@gnat.com>
8043
8044 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
8045 failure detected by recent versions of GCC.
8046 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
8047 to be consistent with the usage in dwarf2_create_include_psymtab.
8048
dc305454
MS
80492004-05-03 Michael Snyder <msnyder@redhat.com>
8050
8051 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
8052 (heuristic_proc_start): Whitespace cleanup.
8053
29972665
MK
80542004-05-04 Mark Kettenis <kettenis@gnu.org>
8055
6b57680d
MK
8056 * sun3-nat.c: Remove file.
8057 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
8058 dependencies.
8059 (ALLDEPFILES): Remove sun3-nat.c.
8060 (sun3-nat.o): Remove dependencies.
8061
29972665
MK
8062 * i386-interix-nat.c, i386-interix-tdep.c,
8063 config/i386/nm-interix.h, config/i386/interix.mh,
8064 config/i386/interix.mt: Remove files.
8065 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
8066 dependencies.
8067
f595cb19
MK
80682004-05-03 Mark Kettenis <kettenis@gnu.org>
8069
8070 * m68k-tdep.h (struct gdbarch_tdep): Add member
8071 struct_value_regnum.
8072 (m68k_svr4_init_abi): New prototype.
8073 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
8074 different calling conventions.
8075 (m68k_extract_return_value): Remove code dealing with single-field
8076 structs.
8077 (m68k_store_return_value): Remove code dealing with single-field
8078 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
8079 (m68k_extract_struct_value_address): Remove function.
8080 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
8081 (m68k_reg_struct_return_p, m68k_return_value)
8082 (m68k_svr4_return_value): New functions.
8083 (m68k_use_struct_convention): Remove function.
8084 (m68k_push_dummy_call): Use new struct_value_regnum member of
8085 `struct gdbarch_tdep' instead of hardcoded register number to
8086 store STRUCT_ADDR.
8087 (m68k_svr4_init_abi): New function.
8088 (m68k_gdbarch_init): Don't set extract_return_value,
8089 store_return_values, deprecated_extract_struct_value_address and
8090 use_struct_convention. Set return_value instead. Initialize new
8091 struct_value_regnum member of `struct gdbarch_tdep'.
8092 * m68klinux-tdep.c: Update copyright year.
8093 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
8094 (m68k_linux_extract_struct_value_address): Remove function.
8095 (m68k_linux_init_abi): Don't set extract_return_value,
8096 store_return_values, deprecated_extract_struct_value_address and
8097 use_struct_convention. Call m68k_svr4_init_abi but override the
8098 new struct_value_regnum member of `struct gdbarch_tdep'.
8099 * Makefile.in (m68k-tdep.o): Update dependencies.
8100
aaa75496
JB
81012004-05-03 J. Brobecker <brobecker@gnat.com>
8102
8103 * dwarf2read.c (line_header): Add new included_p field in
8104 field file_names.
8105 (partial_die_info): New field has_stmt_list. New field line_offset.
8106 (dwarf2_create_include_psymtab): New function.
8107 (dwarf2_build_include_psymtabs): New function.
8108 (add_file_name): Add forward declaration. Initialize new field.
8109 (dwarf_decode_lines): Add new parameter. Enhance this procedure
8110 to be able to determine the list of files included by the
8111 given unit, and build their associated psymtabs.
8112 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
8113 files as well.
8114 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
8115 (read_file_scope): Update call to dwarf_decode_lines.
8116 (read_partial_die): Handle DW_AT_stmt_list attributes.
8117
c848556f
MC
81182004-05-02 Michael Chastain <mec.gnu@mindspring.com>
8119
8120 Unfix PR gdb/1626.
8121 * configure.in: Revert special case for osf5.*.
8122 * configure: Regenerate.
8123
eb4556d7
JB
81242004-05-02 Jim Blandy <jimb@redhat.com>
8125
8126 Move the symbol-file-from-memory functions into their own file.
8127 * symfile-mem.c, symfile-mem.h: New files.
8128 * symfile.c (symbol_file_add_from_bfd): New function.
8129 (symbol_file_add): Call symbol_file_add_from_bfd.
8130 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
8131 Moved to symfile-mem.c.
8132 (_initialize_symfile): Move definition of
8133 add-symbol-file-from-memory command to symfile-mem.c.
8134 * symfile.h (symbol_file_add_from_bfd): New declaration.
8135 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
8136 * config/powerpc/linux.mt (TDEPFILES): Same.
8137 * Makefile.in (SFILES): Add symfile-mem.c.
8138 (symfile_mem_h): New variable.
8139 (HFILES_NO_SRCDIR): Add symfile-mem.h.
8140 (symfile-mem.o): New rule.
8141
80bb239e
AC
81422004-05-01 Andrew Cagney <cagney@redhat.com>
8143
7789d0fa
AC
8144 * breakpoint.c (insert_bp_location): Use get_frame_id, and
8145 frame_find_by_id instead of frame_relative_level.
8146 (do_enable_breakpoint): Ditto.
8147 * thread.c: Update copyright.
8148 (info_threads_command): Ditto, simplify.
8149
80bb239e
AC
8150 * frame.c (deprecated_generic_get_saved_register): Delete
8151 function, moved to "xstormy16-tdep.c".
8152 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
8153 deprecated_generic_get_saved_register from "frame.c".
8154 (xstormy16_frame_saved_register): Call
8155 xstormy16_get_saved_register.
8156 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
8157 static.
8158 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
8159 * frame.h (deprecated_generic_get_saved_register): Delete.
8160
b2a871dd
MC
81612004-05-01 Michael Chastain <mec.gnu@mindspring.com>
8162
8163 * dwarfread.c: Update documentation on the state of dwarf-1.
8164
0e100dab
AC
81652004-05-01 Andrew Cagney <cagney@redhat.com>
8166
acd8056e
AC
8167 * stack.c (select_frame_command): Delete call to
8168 frame_relative_level.
8169 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
8170 Delete #if0 code.
8171 (frame_info): Do not print FRAMELESS.
8172 (print_block_frame_labels): Replace DEPRECATED_STREQ.
8173 (catch_info): Delete #if0 code.
8174
0e100dab
AC
8175 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
8176 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
8177 of frame_relative_level.
8178 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
8179 to SENTINEL_FRAME.
8180 * frame.h (enum frame_type): Add SENTINEL_FRAME.
8181 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
8182 frame_relative_level.
8183
55699d59
AC
8184 * frame.h (deprecated_set_frame_type): Delete declaration.
8185 * frame.c (deprecated_set_frame_type): Delete function, update
8186 comments.
8187
fcf70625
AC
8188 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
8189 * gdbarch.h, gdbarch.c: Re-generate.
8190 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
8191 (shnbsd_pc_in_sigtramp): Delete.
8192 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
8193 pc_in_sigtramp.
8194 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
8195 pc_in_sigtramp.
8196 * frame.h: Update comments.
8197 * ppc-linux-tdep.c: Update comments.
8198 * breakpoint.c (bpstat_what): Update comments.
8199
ac5eccb7
AC
8200 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
8201 m68klinux-tdep.o's dependencies, were previously added to
8202 m68klinux-nat.o.
8203
f2524b93
AC
8204 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
8205 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
8206 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
8207 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
8208 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
8209
17e20bce
AC
8210 * Makefile.in (m68klinux-nat.o): Update dependencies.
8211 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8212 (m68k_linux_sigtramp_frame_cache)
8213 (m68k_linux_sigtramp_frame_this_id)
8214 (m68k_linux_sigtramp_frame_prev_register)
8215 (m68k_linux_sigtramp_frame_unwind)
8216 (m68k_linux_sigtramp_frame_sniffer)
8217 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
8218 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
8219 names, use trad-frame.h.
8220 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
8221 (struct m68k_sigtramp_info): Delete.
8222 * m68k-tdep.c (m68k_sigtramp_frame_cache)
8223 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
8224 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
8225 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
8226 "m68klinux-tdep.c".
8227
c8864fa2
AC
8228 * infrun.c (check_sigtramp2): Delete check for
8229 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
8230
511dd2cd
MK
82312004-05-01 Mark Kettenis <kettenis@gnu.org>
8232
8233 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
8234
8c6b0e06
AC
82352004-05-01 Andrew Cagney <cagney@redhat.com>
8236
9df0bb3f
AC
8237 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8238 (frv_linux_sigtramp_frame_cache)
8239 (frv_linux_sigtramp_frame_this_id)
8240 (frv_linux_sigtramp_frame_prev_register)
8241 (frv_linux_sigtramp_frame_unwind)
8242 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
8243 include "linux" in function and variable names, directly call
8244 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
8245 the latest trad-frame code.
8246 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
8247 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
8248 * Makefile.in (frv-linux-tdep.o): Update dependencies.
8249 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
8250 * frv-tdep.c (frv_sigtramp_frame_cache)
8251 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
8252 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
8253 frv-linux-tdep.c.
8254 (frv_gdbarch_init): Do not append a sigtramp sniffer.
8255 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
8256 (frv_set_sigcontext_reg_addr): Delete function.
8257
8c6b0e06
AC
8258 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
8259 (DEPRECATED_SIGTRAMP_END): Delete.
8260 * gdbarch.h, gdbarch.c: Re-generate.
8261 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
8262 * config/vax/tm-vaxbsd.h: Update copyright.
8263 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8264 (DEPRECATED_IN_SIGTRAMP): Define.
8265 * config/m68k/tm-nbsd.h: Update copyright.
8266 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8267 (DEPRECATED_IN_SIGTRAMP): Define.
8268
50ea7769
MK
82692004-05-01 Mark Kettenis <kettenis@gnu.org>
8270
03ac2a74
MK
8271 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
8272 encondings. Fixes PR gdb/1628.
8273
50ea7769
MK
8274 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
8275 DW_CFA_restore state without a matching DW_CFA_remember_state
8276 instead of aborting. Fixes PR backtrace/1589.
8277
9a5d7be1
JB
82782004-04-30 Joel Brobecker <brobecker@gnat.com>
8279
8280 * MAINTAINERS: Add self as AIX maintainer.
8281 Update my e-mail address in write-after-approval section.
8282
2593d1cd
AC
82832004-04-30 Andrew Cagney <cagney@redhat.com>
8284
ce12bbf9
AC
8285 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
8286 (legacy_get_prev_frame): Ditto.
8287
36710c63
AC
8288 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
8289 (mips_gdbarch_init): Do not set pc_in_sigtramp.
8290 * mipsread.c (sigtramp_address): Delete extern variable.
8291 (mipscoff_new_init): Delete reference.
8292 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
8293 (fixup_sigtramp): Delete function.
8294 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
8295 (fixup_sigtramp): Delete declarations.
8296
2593d1cd
AC
8297 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
8298 deprecated_pc_in_sigtramp.
8299 (ppcnbsd_pc_in_sigtramp): Delete function.
8300
2a25f91c
MK
83012004-05-01 Mark Kettenis <kettenis@gnu.org>
8302
8303 * config/m68k/nm-nbsd.h: Tweak comments.
8304 * config/m68k/nm-nbsdaout.h: Likewise.
8305
0b281939
AC
83062004-04-30 Andrew Cagney <cagney@redhat.com>
8307
8308 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
8309 legacy_pc_in_sigtramp.
8310 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
8311
8f2d3ea0
MK
83122004-05-01 Mark Kettenis <kettenis@gnu.org>
8313
8314 Add OpenBSD/m68k support.
8315 * NEWS (New native configurations): Mention OpenBSD/m68k.
8316 * m68kbsd-tdep.c: New file.
8317 * m68kbsd-nat.c: New file.
8318 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
8319 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
8320 * configure.host: Add m68k-*-openbsd.
8321 * configure.tgt: Add m68k-*-openbsd.
8322 * config/m68k/tm-obsd.h: New file.
8323 * config/m68k/obsd.mt: New file.
8324 * config/m68k/obsd.mh: New file.
8325 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
8326 m68kbsd-tdep.c.
8327
c40f49a4
AC
83282004-04-30 Andrew Cagney <cagney@redhat.com>
8329
8330 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
8331 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
8332
e81554cd
MK
83332004-04-30 Mark Kettenis <kettenis@gnu.org>
8334
8335 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
8336 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
8337
d4dc1a91
BF
83382004-04-30 Brian Ford <ford@vss.fsi.com>
8339
8340 Revert 2004-04-16 change.
8341 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
8342 (i386_coff_init_abi): Remove.
8343 * i386-tdep.h (i386_coff_init_abi): Remove.
8344 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
8345
2f72f850
AC
83462004-04-30 Andrew Cagney <cagney@redhat.com>
8347
e492f9d6
AC
8348 * blockframe.c (find_pc_partial_function): Delete use of
8349 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
8350 DEPRECATED_SIGTRAMP_END.
8351
7b7adad0
AC
8352 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
8353 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
8354 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
8355 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
8356 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
8357
2f72f850
AC
8358 * defs.h (deprecated_inside_entry_file): Delete declaration.
8359 * blockframe.c (deprecated_inside_entry_file): Delete function.
8360 (legacy_frame_chain_valid): Delete call.
8361 * sh64-tdep.c (sh64_frame_chain): Delete call.
8362 * objfiles.h: Update comments.
8363 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
8364 call.
8365 * frame.c (get_prev_frame): Delete call, update comments.
8366
283f90a7
BF
83672004-04-30 Brian Ford <ford@vss.fsi.com>
8368
8369 * MAINTAINERS (Write After Approval): Add myself.
8370
8ee56bcf
AC
83712004-04-30 Andrew Cagney <cagney@redhat.com>
8372
8373 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
8374 * gdbarch.h, gdbarch.c: Re-generate.
8375 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
8376 code.
8377
ee27e1b6
AC
83782004-04-30 Andrew Cagney <cagney@redhat.com>
8379
8380 * gdb-events.sh (selected_thread_changed)
8381 (selected_frame_level_changed, target_changed): Delete.
8382 * gdb-events.h, gdb-events.c: Re-generate.
8383 * valops.c (value_assign): Update.
8384 * stack.c (select_frame_command, up_silently_base)
8385 (down_silently_base): Update.
8386
d5ac5a39
AC
83872004-04-29 Andrew Cagney <cagney@redhat.com>
8388
8389 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
8390 registers correctly.
8391 (print_gp_register_row, mips32_heuristic_proc_desc)
8392 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
8393 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
8394 references to mips_isa_regsize.
8395
ceae6e75
AC
83962004-04-29 Andrew Cagney <cagney@redhat.com>
8397
8398 * mips-tdep.c (struct gdbarch_tdep): Delete
8399 mips_fp_register_double.
8400 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
8401 mips_abi_regsize.
8402 (mips_gdbarch_init): Do not set mips_fp_register_double.
8403 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
8404
a587af0b
AC
84052004-04-29 Joel Brobecker <brobecker@gnat.com>
8406
8407 Committed by Andrew Cagney.
8408 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
8409 function calls.
8410
13326b4e
AC
84112004-04-29 Andrew Cagney <cagney@redhat.com>
8412
8413 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
8414 gdbarch, use mips_abi, update callers.
8415 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
8416 mips_abi_regsize, update callers.
8417 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
8418 mips_default_abi_regsize.
8419 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
8420 mips_default_abi_regsize.
8421
711cc5cd
AC
84222004-04-29 Andrew Cagney <cagney@redhat.com>
8423
1b13c4f6
AC
8424 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
8425 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
8426 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
8427 mips_default_abi_regsize.
8428 (mips_isa_regsize): Rename mips_regisze.
8429 * mipsnbsd-tdep.c: Update.
8430 * mips-linux-tdep.c: Update.
8431 * irix5-nat.c: Update.
8432 * mips-tdep.h (mips_isa_regsize): Update.
8433
711cc5cd
AC
8434 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
8435 Delete all disabled code.
8436 * gdb-events.h, gdb-events.c: Re-generate.
8437
e63bbc88
MK
84382004-04-19 Jerome Guitton <guitton@gnat.com>
8439 Mark Kettenis <kettenis@gnu.org>
8440
8441 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
8442 the function begins with a branch instruction.
8443
fd35795f
MK
84442004-04-29 Mark Kettenis <kettenis@gnu.org>
8445
8446 * i386-tdep.c: Fix spelling mistakes.
8447
c960c18f
AC
84482004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8449 Andrew Cagney <cagney@redhat.com>
8450
8451 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
8452 <sys/proc.h>.
8453 * acconfig.h: Provide default _KMEMUSER value.
8454 * config.in, configure: Re-generate.
8455 * NEWS: Mention fix.
8456
50306a9d
RC
84572004-04-24 Randolph Chung <tausq@debian.org>
8458
8459 * configure.host (hppa*-*-linux*): New target.
8460 * configure.tgt (hppa*-*-linux*): Likewise.
8461 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
8462 gdbarch_init_osabi() call earlier so that osabi-specific frame
8463 unwinders can be registered first.
8464 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
8465 hppa-linux-nat.c.
8466 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
8467 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
8468 * config/pa/linux.mh: New file.
8469 * config/pa/linux.mt: New file.
8470 * config/pa/nm-linux.h: New file.
8471 * config/pa/xm-linux.h: New file.
8472 * hppa-linux-nat.c: New file.
8473 * hppa-linux-tdep.c: New file.
8474
2a6228ef
RC
84752004-04-28 Randolph Chung <tausq@debian.org>
8476
8477 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
8478 return values.
8479 (hppa32_push_dummy_call): Fix small struct and floating point argument
8480 passing, and make sure the stack frame is properly aligned.
8481
82c10df6
AC
84822004-04-28 Andrew Cagney <cagney@redhat.com>
8483
d762c46a
AC
8484 * stack.c (print_stack_frame): Fix description.
8485
82c10df6
AC
8486 * NEWS: Mention gdb/gdbserver/configure execute permission
8487 changed. PR server/519.
8488
0faf0076
AC
84892004-04-28 Andrew Cagney <cagney@redhat.com>
8490
8491 * stack.c (print_stack_frame_stub): Delete declaration.
8492 (struct print_stack_frame_args, print_stack_frame)
8493 (print_frame_info, print_frame): Replace "source" with print what.
8494 Replace "print" with "print_level". Replace "args" with
8495 "print_args".
8496 * frame.h (show_and_print_stack_frame, print_stack_frame)
8497 (print_frame_info): Update declarations.
8498 * stack.c (select_and_print_frame, frame_command)
8499 (current_frame_command, up_command, down_command): Update calls -
8500 use get_selected_frame, pass "enum print_what" for source, do not
8501 call frame_relative_level.
8502 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
8503 * remote-rdp.c (remote_rdp_open): Ditto.
8504 * remote-mips.c (common_open): Ditto.
8505 * remote-e7000.c (e7000_start_remote): Ditto.
8506 * ocd.c (ocd_start_remote): Ditto.
8507 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
8508 * infrun.c (normal_stop): Ditto.
8509 * inflow.c (kill_command): Ditto.
8510 * infcmd.c (finish_command): Ditto.
8511 * corelow.c (core_open): Ditto.
8512 * tracepoint.c (finish_tfind_command): Ditto.
8513 * thread.c (info_threads_command, info_threads_command)
8514 (restore_current_thread, do_captured_thread_select): Ditto.
8515 * ada-tasks.c (task_command): Ditto.
8516
f4c5303c
OF
85172004-04-26 Orjan Friberg <orjanf@axis.com>
8518
8519 * frame.c: Include "observer.h".
8520 (frame_observer_target_changed): New function.
8521 (_initialize_frame): Attach target_changed observer.
8522 * regcache.c: Include "observer.h".
8523 (regcache_observer_target_changed): New function.
8524 (_initialize_regcache): Attach target_changed observer.
8525 * valops.c: Include "observer.h".
8526 (value_assign): Notify target_changed event when modifying register.
8527 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
8528
7270d8f2
OF
85292004-04-26 Orjan Friberg <orjanf@axis.com>
8530
8531 From Paul Koning <pkoning@equallogic.com>:
8532 * breakpoint.c (free_valchain): New function.
8533 (insert_bp_location, delete_breakpoint): Use free_valchain.
8534 (remove_breakpoint): Do not remove the valchain.
8535 (bpstat_stop_status): If not stopped by watchpoint, skip
8536 watchpoints when generating stop status list.
8537 * infrun.c (handle_inferior_event): Make
8538 stepped_after_stopped_by_watchpoint a global variable.
8539 * remote.c (remote_stopped_data_address): Return watch data
8540 address rather than zero if stepped_after_stopped_by_watchpoint is
8541 set.
8542
02d62932
MC
85432004-04-25 Michael Chastain <mec.gnu@mindspring.com>
8544
8545 Fix PR gdb/1626.
8546 * configure.in: Check for curses after termcap.
8547 On osf5.*, do not check for ncurses.
8548 * configure: Regenerate.
8549
3e9a183c
MK
85502004-04-25 Mark Kettenis <kettenis@gnu.org>
8551
c79ac407
MK
8552 * ppcobsd-nat.c: Include "ppc-tdep.h".
8553 * Makefile.in (ppcobsd-nat.o): Update dependencies.
8554
3e9a183c
MK
8555 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
8556 Fixes PR tdep/1623 and PR tdep/1624.
8557
38cc9c28
MC
85582004-04-24 Michael Chastain <mec.gnu@mindspring.com>
8559
8560 * xmodem.h, xmodem.c: Remove files.
8561 * Makefile.in: Remove references to xmodem.h, xmodem.c.
8562
7f07c5b6
RC
85632004-04-23 Randolph Chung <tausq@debian.org>
8564
8565 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
8566 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
8567 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
8568 for handling stackless frames.
8569 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
8570
9f7194c3
RC
85712004-04-23 Randolph Chung <tausq@debian.org>
8572
8573 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
8574 starts at a pc before the frame is created.
8575
dcff6009
JB
85762004-04-23 Joel Brobecker <brobecker@gnat.com>
8577
8578 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
8579
40711ff1 85802004-04-23 Jerome Guitton <guitton@gnat.com>
65951cd9
JG
8581
8582 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
8583 use convert_typed_floating to get the appropriate format.
8584
abc485a1
RC
85852004-04-22 Randolph Chung <tausq@debian.org>
8586
8587 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
8588 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
8589 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
8590 (hppa_sign_extend): Add prototype.
8591 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
8592 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
8593 (sign_extend): Rename with hppa_ prefix and make non-static. Other
8594 hppa targets will also use these functions.
8595 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
8596 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
8597 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
8598 (hppa_gdbarch_init): Remove gdbarch setting of
8599 skip_trampoline_code, in_solib_call_trampoline and
8600 in_solib_return_trampoline.
8601 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
8602 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
8603 hppa_in_solib_call_trampoline.
8604 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
8605 Moved from hppa-tdep.c.
8606 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
8607 in_solib_call_trampoline and in_solib_return_trampoline.
8608
369aa520
RC
86092004-04-22 Randolph Chung <tausq@debian.org>
8610
8611 * hppa-tdep.c (hppa_debug): New variable.
8612 (find_unwind_entry, hppa_frame_cache): Add debug output.
8613 (_initialize_hppa_tdep): Add command to set debug flag.
8614
476be15e
AC
86152004-04-22 Andrew Cagney <cagney@redhat.com>
8616
8617 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
8618 "trad-frame.h".
8619 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
8620 signal trampoline unwinder.
8621 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
8622
d195bc9f
MK
86232004-04-22 Mark Kettenis <kettenis@gnu.org>
8624
8625 Add OpenBSD/powerpc support.
8626 * NEWS (New native configurations): Mention OpenBSD/powerpc.
8627 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
8628 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
8629 (ppc_collect_fpregset): New prototypes.
8630 * ppcobsd-nat.c: New file.
8631 * ppcobsd-tdep.c: New file.
8632 * ppcobsd-tdep.h: New file.
8633 * rs6000-tdep.c: Include "regset.h".
8634 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
8635 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
8636 New functions.
8637 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
8638 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
8639 (rs6000-tdep.o): Update dependencies.
8640 * configure.host: Add powerpc-*-openbsd.
8641 * configure.tgt: Add powerpc-*-openbsd.
8642 * config/powerpc/obsd.mh: New file.
8643 * config/powerpc/nm-obsd.h: New file.
8644 * config/powerpc/obsd.mt: New file.
8645
6f14cc33
AC
86462004-04-22 Andrew Cagney <cagney@redhat.com>
8647
fcf29e5f
AC
8648 * frame.h (show_frame_info): Delete declaration.
8649
6f14cc33
AC
8650 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
8651 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
8652 * m32r-tdep.c (m32r_frame_this_id): Ditto.
8653 * frv-tdep.c (frv_frame_this_id): Ditto.
8654 * avr-tdep.c (avr_frame_this_id): Ditto.
8655
e5786a5c
EZ
86562004-04-22 Elena Zannoni <ezannoni@redhat.com>
8657
8658 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
8659
26e75e5c
JB
86602004-04-22 Jim Blandy <jimb@redhat.com>
8661
8662 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
8663 register number zero.
8664
d8d65dd3
MS
86652004-04-21 Michael Snyder <msnyder@redhat.com>
8666
8667 * mips-tdep.c (heuristic_proc_start):
8668 Warning() already prefixes "Warning: ".
8669
9a4105ab
AC
86702004-04-21 Andrew Cagney <cagney@redhat.com>
8671
8672 * annotate.h (deprecated_annotate_starting_hook)
8673 (deprecated_annotate_stopped_hook)
8674 (deprecated_annotate_exited_hook)
8675 (deprecated_annotate_signal_hook)
8676 (deprecated_annotate_signalled_hook): Deprecate.
8677 * tracepoint.h (deprecated_create_tracepoint_hook)
8678 (deprecated_delete_tracepoint_hook)
8679 (deprecated_modify_tracepoint_hook)
8680 (deprecated_trace_find_hook)
8681 (deprecated_trace_start_stop_hook): Deprecate.
8682 * target.h (deprecated_target_new_objfile_hook): Deprecate.
8683 * remote.h (deprecated_target_resume_hook)
8684 (deprecated_target_wait_loop_hook): Deprecate.
8685 * gdbcore.h (deprecated_exec_file_display_hook)
8686 (deprecated_file_changed_hook): Deprecate.
8687 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
8688 * defs.h (deprecated_modify_breakpoint_hook)
8689 (deprecated_command_loop_hook, deprecated_show_load_progress)
8690 (deprecated_print_frame_info_listing_hook)
8691 (deprecated_query_hook, deprecated_warning_hook)
8692 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
8693 (deprecated_delete_breakpoint_hook)
8694 (deprecated_interactive_hook, deprecated_registers_changed_hook)
8695 (deprecated_readline_begin_hook, deprecated_readline_hook)
8696 (deprecated_readline_end_hook, deprecated_register_changed_hook)
8697 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
8698 (deprecated_context_hook, deprecated_target_wait_hook)
8699 (deprecated_attach_hook, deprecated_detach_hook)
8700 (deprecated_call_command_hook, deprecated_set_hook)
8701 (deprecated_error_hook, deprecated_error_begin_hook)
8702 (deprecated_ui_load_progress_hook): Deprecate.
8703 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
8704 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
8705 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
8706 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
8707 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
8708 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
8709 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
8710 * annotate.c, aix-thread.c: Update.
8711
62cf13cc
AC
87122004-04-21 Andrew Cagney <cagney@redhat.com>
8713
b2e31a62
AC
8714 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
8715 * vaxnbsd-tdep.c: Include "gdb_string.h".
8716
62cf13cc
AC
8717 * symfile.c (symbol_file_add_from_memory): #if 0 function.
8718 (add_symbol_file_from_memory_command): #if 0 function body, call
8719 error instead.
8720
00e32a35
AC
87212004-04-21 Andrew Cagney <cagney@redhat.com>
8722
8723 * gdbcore.h: Update copyright.
8724 (deprecated_add_core_fns): Rename add_core_fns.
8725 * win32-nat.c (_initialize_core_win32): Update.
8726 * sun3-nat.c (_initialize_core_sun3): Update.
8727 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
8728 * rs6000-nat.c (_initialize_core_rs6000): Update.
8729 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
8730 * nto-tdep.c (_initialize_nto_tdep): Update.
8731 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
8732 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
8733 * mips-nat.c (_initialize_core_mips): Update.
8734 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
8735 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
8736 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
8737 * lynx-nat.c (_initialize_core_lynx): Update.
8738 * irix5-nat.c (_initialize_core_irix5): Update.
8739 * i386-interix-nat.c (_initialize_core_interix): Update.
8740 * cris-tdep.c (_initialize_cris_tdep): Update.
8741 * corelow.c (deprecated_add_core_fns): Update.
8742 * core-regset.c (_initialize_core_regset): Update.
8743 * core-aout.c (_initialize_core_aout): Update.
8744 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
8745 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
8746 * alpha-nat.c (_initialize_core_alpha): Update.
8747
13c7b1ca
JB
87482004-04-21 Jim Blandy <jimb@redhat.com>
8749
8750 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
8751
7b5a2f43
DJ
87522004-04-19 Daniel Jacobowitz <drow@mvista.com>
8753
8754 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
8755 Delete.
8756 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
8757 (read_attribute_value): Update calls to dwarf_alloc_block.
8758 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
8759 dwarf2_tmp_obstack.
8760 (psymtab_to_symtab_1): Likewise. Clean up using
8761 free_stack_comp_unit.
8762 (add_to_cu_func_list): Use the comp_unit_obstack.
8763
05cf31d1
JB
87642004-04-19 Joel Brobecker <brobecker@gnat.com>
8765
8766 * dwarf2read.c (dwarf2_flag_true_p): New function.
8767 (die_is_declaration): Use the function above. Add some comments.
8768
adf93a2f
MK
87692004-04-19 Mark Kettenis <kettenis@gnu.org>
8770
8771 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
8772 architecture when registering sparcnbsd_core_osabi_sniffer.
8773 Adjust comment.
8774
748894bf
MK
87752004-04-18 Mark Kettenis <kettenis@gnu.org>
8776
f622ad42
MK
8777 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
8778 return value.
8779
c4fc7f1b
MK
8780 Based on a patch from Brian Ford <ford@vss.fsi.com>:
8781 * i386-tdep.c: Correct register numbering scheme comments
8782 throughout.
8783 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
8784 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
8785 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
8786 (i386_gdb_arch_init): Likewise.
8787
b4ead1bd
MK
8788 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
8789 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
8790 ppcnbsd-tdep.o.
8791
748894bf
MK
8792 * m68k-tdep.h: Tweak comments.
8793 * m68k-tdep.c: Tweak comment.
8794
fdd72f95
RC
87952004-04-17 Randolph Chung <tausq@debian.org>
8796
8797 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
8798 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
8799 (hppa_hpux_som_init_abi): Set is_elf to 0.
8800 (hppa_hpux_elf_init_abi): Set is_elf to 1.
8801 * hppa-tdep.c (low_text_segment_address): Remove global.
8802 (record_text_segment_lowaddr): Pass in low address as parameter. Use
8803 section offset to calculate segment address.
8804 (internalize_unwinds): Define low_text_segment_address as local and
8805 pass to record_text_segment_lowaddr for ELF targets.
8806 (hppa_gdbarch_init): Zero fill tdep structure.
8807 (hppa_dump_tdep): Print tdep structure.
8808 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
8809
0f8d9d59
RC
88102004-04-17 Randolph Chung <tausq@debian.org>
8811
8812 * hppa-tdep.c (hppa_pseudo_register_read): Define.
8813 (hppa_gdbarch_init): Set pseudo_register_read.
8814 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
8815 * regcache.c (supply_register): Remove check for
8816 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
8817
7c46b9fb
RC
88182004-04-17 Randolph Chung <tausq@debian.org>
8819
8820 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
8821 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
8822 (hpread_adjust_stack_address): Move to hpread.c.
8823 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
8824 obj_private_struct): Move from tm-hppa.h.
8825 * hpread.c (hppa-tdep.h): Include.
8826 (hpread_adjust_stack_address): Move from hppa-tdep.c.
8827 (hpread_read_function_type, hpread_read_doc_function_type)
8828 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
8829 directly.
8830 * pa64solib.c (hppa-tdep.h): Include.
8831 * somsolib.c (hppa-tdep.h): Include.
8832 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
8833 inferior_status): Remove unused forward declarations.
8834 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
8835 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
8836 obj_private_struct): Move to hppa-tdep.h.
8837 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
8838
8d153463
RC
88392004-04-17 Randolph Chung <tausq@debian.org>
8840
8841 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
8842 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
8843 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
8844 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
8845 Remove forward declaration and make static.
8846 (hppa_reg_struct_has_addr): Remove.
8847
350c2e5b
JB
88482004-04-16 Joel Brobecker <brobecker@gnat.com>
8849
8850 * observer.sh: Move comments in sed command to first column.
8851
bbde78fa
JM
88522004-04-16 Jason Molenda (jmolenda@apple.com)
8853
8854 * frame.c: Minor typeo corrections in comments.
8855
e0270fd9
JB
88562004-04-16 Joel Brobecker <brobecker@gnat.com>
8857
8858 * observer.c (observer_test_first_notification_function): Update
8859 function profile.
8860 (observer_test_second_notification_function): Likewise.
8861 (observer_test_third_notification_function): Likewise.
8862
3d049254
MK
88632004-04-16 Mark Kettenis <kettenis@gnu.org>
8864
8865 From Brian Ford <ford@vss.fsi.com>:
8866 * i386-tdep.c (i386_coff_init_abi): New function.
8867 * i386-tdep.h (i386_coff_init_abi): New prototype.
8868 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
8869 register number translation functions for DWARF and DWARF 2.
8870
7867684d
JB
88712004-04-16 Joel Brobecker <brobecker@gnat.com>
8872
8873 * dwarf2read.c: Back out my previous change, it was incorrect.
8874
72bf9492
DJ
88752004-04-16 Daniel Jacobowitz <drow@mvista.com>
8876
8877 * dwarf2read.c: Include "hashtab.h".
8878 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
8879 has_namespace_info.
8880 (struct partial_die_info): Add comments. Use bitfields to reduce
8881 memory footprint. Add scope, scope_set, has_specification,
8882 spec_offset, die_parent, die_child, and die_sibling.
8883 (peek_die_abbrev): Add prototype.
8884 (partial_read_comp_unit_head): New function, broken out from
8885 dwarf2_build_psymtabs_hard.
8886 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
8887 Use partial_read_comp_unit_head. Initialize the CU and
8888 comp_unit_obstack. Update calls to read_partial_die and
8889 scan_partial_symbols. Use free_stack_comp_unit and
8890 load_partial_dies.
8891 (scan_partial_symbols): Change PDI to a pointer. Use the child and
8892 sibling pointers to walk partial DIEs. Call fixup_partial_die.
8893 Update calls to helper functions. Remove NAMESPACE argument.
8894 Update comments.
8895 (partial_die_parent_scope, partial_die_full_name): New functions.
8896 (add_partial_symbol): Remove namespace argument. Update call to
8897 pdi_needs_namespace. Use partial_die_full_name. Handle
8898 DW_TAG_namespace. Check has_namespace_info flag.
8899 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
8900 tag. Handle namespaces.
8901 (add_partial_namespace, add_partial_enumeration): Simplify.
8902 (guess_structure_name): New function, derived from
8903 add_partial_structure.
8904 (add_partial_structure): Remove.
8905 (determine_class_name): Update comment.
8906 (dwarf2_read_abbrevs): Set has_namespace_info flag.
8907 (is_type_tag_for_partial, load_partial_dies): New functions.
8908 (read_partial_die): Pass abbrev and abbrev_len as arguments.
8909 Record specifications instead of following them immediately.
8910 (find_partial_die_in_comp_unit, find_partial_die)
8911 (fixup_partial_die, free_stack_comp_unit)
8912 (hashtab_obstack_allocate, dummy_obstack_deallocate)
8913 (partial_die_hash, partial_die_eq): New functions.
8914 * Makefile.in (hashtab_h): Define.
8915 (dwarf2read.o): Update dependencies.
8916 (observer_inc, observer_h): Move to the correct section.
8917
fdc860a3
JB
89182004-04-15 Joel Brobecker <brobecker@gnat.com>
8919
8920 * dwarf2read.c (dwarf2_attribute_true_p): New function.
8921 (die_is_declaration): Use the function above. Add comment.
8922
dc718098
JB
89232004-04-15 Joel Brobecker <brobecker@gnat.com>
8924
8925 * dwarf2read.c (read_structure_scope): Identify stub types
8926 using die_is_declaration() only.
8927
8718a420
RM
89282004-04-15 Roland McGrath <roland@redhat.com>
8929
8930 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
8931 argument instead of NAME.
8932 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
8933 in call to symbol_file_add_with_addrs_or_offsets.
8934 (build_addr_info): New function, helper for ...
8935 (symbol_file_add_from_memory): New function.
8936 (add_symbol_file_from_memory_command): New function using that.
8937 (_initialize_symfile): Register it for add-symbol-file-from-memory.
8938 (pre_add_symbol_hook): Add const to argument type.
8939 * symfile.h (symbol_file_add_from_memory): Declare it.
8940
8b910bab
MK
89412004-04-15 Mark Kettenis <kettenis@gnu.org>
8942
9f076e7a
MK
8943 * NEWS (New native configurations): Mention OpenBSD/vax.
8944 * configure.host: Add vax-*-openbsd*.
8945 * config/vax/obsd.mh: New file.
8946 * config/vax/nm-obsd.h: New file.
8947
8b910bab
MK
8948 * vax-tdep.c: Include "regset.h".
8949 (vax_supply_gregset): New function.
8950 (vax_gregset): New variable.
8951 (vax_regset_from_core_section): New function.
8952 (vax_gdbarch_init): Set regset_from_core_section.
8953 * Makefile.in (vax-tdep.o): Update dependencies.
8954
7a464420
AC
89552004-04-15 Andrew Cagney <cagney@redhat.com>
8956
8957 * observer.c (normal_stop_subject, observer_notify_normal_stop)
8958 (observer_normal_stop_notification_stub)
8959 (observer_attach_normal_stop, observer_detach_normal_stop):
8960 Delete, replaced by #include "observer.inc".
8961 * infrun.c (normal_stop): Pass "stop_bpstat" to
8962 observer_notify_normal_stop.
8963 * Makefile.in (observer_inc): Define.
8964 (observer.o): Update dependencies.
8965 (observer.h, observer.inc): New rules.
8966 * observer.h: Delete file.
8967 * observer.sh: New file.
8968
e36ad527
MK
89692004-04-15 Mark Kettenis <kettenis@gnu.org>
8970
8971 * vax-tdep.c (vax_frame_cache): Fix typo.
8972
67b441e1
MK
89732004-04-14 Mark Kettenis <kettenis@gnu.org>
8974
6f606e1c
MK
8975 * NEWS (New native configurations): Mention NetBSD/vax.
8976 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
8977 * config/vax/nbsdelf.mh: New file.
8978 * config/vax/nbsdaout.mh: New file.
8979 * config/vax/nm-nbsd.h: New file.
8980 * config/vax/nm-nbsdaout.h: New file.
8981
9c5519a5
MK
8982 * vaxnbsd-tdep.c: New file.
8983 * Makefile.in (vaxnbsd-tdep.o): New dependency.
8984 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
8985 * config/vax/nbsd.mt: New file.
8986 * config/vax/tm-nbsd.h: New file.
8987
4844a614
MK
8988 * Makefile.in (vaxbsd-nat.o): New dependency.
8989
67b441e1
MK
8990 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
8991 * vax-tdep.c (vax_store_arguments): Remove struct_return and
8992 struct_addr arguments. Don't push return value address.
8993 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
8994 arguments to vax_store_arguments. Store return value address in
8995 R1.
8996 (vax_store_struct_return, vax_extract_return_value)
8997 (vax_store_return_value): Remove functions.
8998 (vax_return_value): New function.
8999 (vax_gdbarch_init): Set return value. Don't set
9000 deprecated_store_struct_return, deprecated_extract_struct_return
9001 and deprecated_store_return_value.
9002
6672f2ae
AS
90032004-04-14 Andreas Schwab <schwab@suse.de>
9004
9005 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
9006 value buffer.
9007 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
9008
7346c184
MK
90092004-04-14 Mark Kettenis <kettenis@gnu.org>
9010
9011 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
9012 (vax_unwind_dummy_id): New functions.
9013 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
9014 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
9015 variables.
9016 (vax_fix_call_dummy): Remove function.
9017 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
9018 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
9019 call_dummy_location, deprecated_call_dummy_words,
9020 deprecated_sizeof_call_dummy_words,
9021 deprecated_call_dummy_breakpoint_offset,
9022 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
9023 and deprecated_dummy_write_sp.
9024
58e23df4
DC
90252004-04-13 David Carlton <carlton@kealia.com>
9026
9027 * MAINTAINERS: Move myself to "paper trail" section.
9028
5e6b39ff
MK
90292004-04-12 Mark Kettenis <kettenis@gnu.org>
9030
7def7fef
MK
9031 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
9032 "trad-frame.h".
9033 (vax_frame_init_saved_regs): Remove function.
9034 (vax_sigtramp_saved_pc): Remove function.
9035 (vax_frame_saved_pc): Remove function.
9036 (vax_frame_args_address): Remove function.
9037 (vax_frame_num_args): Rewrite.
9038 (vax_frame_chain): Remove function.
9039 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
9040 VAX_FP_REGNUM.
9041 (vax_pop_frame): Likewise.
9042 (vax_saved_pc_after_call): Remove function.
9043 (struct vax_frame_cache): New structure.
9044 (vax_frame_cache): New function.
9045 (vax_frame_this_id): New function.
9046 (vax_frame_prev_register): New function.
9047 (vax_frame_unwind): New variable.
9048 (vax_frame_sniffer): New function.
9049 (vax_frame_base_address): New function.
9050 (vax_frame_args_address): New function.
9051 (vax_frame_base): New variable.
9052 (vax_unwind_pc): New function.
9053 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
9054 deprecated_fp_regnum, deprecated_saved_pc_after_call,
9055 deprecated_frame_chain, deprecated_frame_saved_pc,
9056 deprecated_frame_args_address and
9057 deprecated_frame_init_saved_regs.
9058 * Makefile.in (vax-tdep.o): Update dependencies.
9059
53284fc1
MK
9060 * vaxbsd-nat.c: New file.
9061
5e6b39ff
MK
9062 * vax-tdep.h: Update copyright year. Adjust comments.
9063 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
9064 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
9065 (vax_regnum): New enum. Replacing...
9066 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
9067 (VAX_PS_REGNUM): ... these removed macros.
9068 * vax-tdep.c (vax_register_name): Remove prototype.
9069 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
9070 (vax_register_byte, vax_register_raw_size,
9071 vax_register_virtual_size, vax_register_virtual_type): Remove
9072 functions.
9073 (vax_register_type): New function.
9074 (vax_breakpoint_from_pc): Reorganize.
9075 (vax_gdbarch_init): Set register_type. Don't set
9076 deprecated_register_size, deprecated_register_bytes,
9077 deprecated_register_byte, deprecated_register_raw_size,
9078 deprecated_max_register_raw_size,
9079 deprecated_register_virtual_size,
9080 deprecated_max_register_virtual_size and
9081 deprecated_register_virtual_type. Add comment on stack direction.
9082
e9c71e9f
MK
90832004-04-11 Mark Kettenis <kettenis@gnu.org>
9084
9085 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
9086 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
296bc76f 9087 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
e9c71e9f 9088
d46f1176 90892004-04-10 Randolph Chung <tausq@debian.org>
8718a420 9090
d46f1176
RC
9091 * MAINTAINERS (write after approval): Add myself.
9092
a2a84a72
RC
90932004-04-07 Randolph Chung <tausq@debian.org>
9094
9095 * hppa-tdep.c (hppa_inner_than): Remove.
9096 (is_pa_2): Remove unused static variable.
8718a420 9097 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
a2a84a72 9098
e85c3284
PH
90992004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
9100
9101 * language.h (language_defn): Add new la_post_parser field.
9102 * parser-defs.h (null_post_parser): New declaration (default for
9103 la_post_parser).
8718a420 9104
e85c3284
PH
9105 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
9106 insert call to that function.
9107 (parse_exp_in_context): New function, including code formerly in
8718a420 9108 parse_exp_1. Calls language-dependent post-parser after
e85c3284
PH
9109 prefixification.
9110 (parse_expression_in_context): New exported function.
9111 (null_post_parser): New definition.
9112 * expression.h (parse_expression_in_context): Add declaration.
8718a420 9113
e85c3284
PH
9114 * p-lang.c (pascal_language_defn): Add trivial post-parser.
9115 * c-lang.c (c_language_defn): Ditto.
9116 (cplus_language_defn): Ditto.
9117 (asm_language_defn): Ditto.
9118 (minimal_language_defn): Ditto.
9119 * f-lang.c (f_language_defn): Ditto.
9120 * jv-lang.c (java_language_defn): Ditto.
9121 * language.c (unknown_language_defn): Ditto.
9122 (auto_language_defn): Ditto.
9123 (local_language_defn): Ditto.
9124 * m2-lang.c (m2_language_defn): Ditto.
9125 * scm-lang.c (scm_language_defn): Ditto.
9126 * obj-lang.c (objc_language_defn): Ditto.
8718a420 9127
d9f8c85b
MK
91282004-04-10 Mark Kettenis <kettenis@gnu.org>
9129
fa34704a
MK
9130 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
9131 (amd64nbsd_mcontext_addr): New function.
9132 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
9133 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
9134 with amd64nbsd_r_reg_offset, instead of building it on the fly.
9135
403e1656
MK
9136 * corelow.c (core_xfer_partial): Fix coding standards violation.
9137 Add support for TARGET_OBJECT_WCOOKIE.
9138
a57e5a95
MK
9139 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
9140 deprecated_pc_in_sigtramp.
9141 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
9142 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
9143 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
9144 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
9145 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
9146 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
9147 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
9148
377d9ebd
MK
9149 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
9150 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
9151 Fix typo.
9152
f0ef85a5
MK
9153 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
9154 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
9155 (amd64_collect_fxsave): Likewise.
9156
d9f8c85b
MK
9157 * i386-sol2-tdep.c: Include "gdb_string.h".
9158 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
9159 name.
9160 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
9161
75f501b5
MK
91622004-04-10 Mark Kettenis <kettenis@gnu.org>
9163
9164 * i386-sol2-tdep.c: Include "solib-svr4.h".
9165 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9166 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
9167 * config/i386/tm-i386sol2.h: Include :solib.h".
9168 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
9169 solib-svr4.o and solib-legacy.o.
9170 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
9171 solib-svr4.o.
9172
b31bc724
MK
91732004-04-09 Mark Kettenis <kettenis@gnu.org>
9174
18bbbd9e
MK
9175 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
9176 whether a register is supplied by PTRACE_GETFPREGS.
9177 (store_inferior_registers): Likewise.
9178 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
9179 whether a register is supplied by PT_GETFPREGS.
9180 (store_inferior_registers): Likewise.
9181
3c30bf1b
MK
9182 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
9183 * config/i386/linux64.mt (TDEPFILES): Likewise.
9184
a4194092
MK
9185 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
9186
911bc6ee
MK
9187 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
9188 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
9189 the program counter is in the range specified by `struct
9190 gdbarch_tdep'.
9191 * amd64-linux-tdep.c: Include "symtab.h".
9192 (amd64_linux_pc_in_sigtramp): Remove function.
9193 (amd64_linux_sigtramp_p): New function.
9194 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
9195 deprecated_pc_in_sigtramp.
9196 * amd64nbsd-tdep.c: Include "symtab.h".
9197 (amd64nbsd_sigtramp_p): New function.
9198 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
9199 deprecated_pc_in_sigtramp.
9200 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
9201 few comments.
9202 (amd64obsd_pc_in_sigtramp): Remove function.
9203 (amd64obsd_sigtramp_p): New function.
9204 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
9205 deprecated_pc_in_sigtramp.
9206 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
9207 (i386bsd_pc_ins_sigtramp): Remove prototype.
9208 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
9209 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
9210 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
9211 the program counter is in the range specified by `struct
9212 gdbarch_tdep'.
9213 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
9214 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
9215 (i386_go32_pc_in_sigtramp): Remove function.
9216 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
9217 Initialize TDEP->sigtramp_p.
9218 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
9219 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
9220 deprecated_pc_in_sigtramp.
9221 * i386-linux-tdep.c: Adjust comments.
9222 (i386_linux_pc_in_sigtramp): Remove function.
9223 (i386_linux_sigtramp_p): New function.
9224 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
9225 deprecated_pc_in_sigtramp.
9226 * i386-nto-tdep.c: Update copyright year.
9227 (i386nto_pc_in_sigtramp): Remove function.
9228 (i386nto_sigtramp_p): New function.
9229 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
9230 SP_REGNUM.
9231 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
9232 deprecated_pc_in_sigtramp.
9233 * i386-sol2-tdep.c: Update copyright year.
9234 (i386_sol2_pc_in_sigtramp): Remove function.
9235 (i386_sol2_sigtramp_p): New function.
9236 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
9237 deprecated_pc_in_sigtramp.
9238 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
9239 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
9240 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9241 deprecated_sigtramp_start and deprecated_sigtramp_end.
9242 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
9243 (i386nbsd_pc_in_sigtramp): Remove function.
9244 (i386nbsd_sigtramp_p): New function.
9245 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9246 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
9247 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
9248 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
9249 (i386obsd_pc_in_sigtramp): Remove function.
9250 (i386obsd_sigtramp_p): New function.
9251 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
9252 functions.
9253 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9254 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
9255 TDEP->sigtramp_p.
9256 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
9257 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
9258 dependencies.
9259
e083e6ec
MK
9260 * config/i386/i386aout.mt: Remove file.
9261
bd153b94
MK
9262 * configure.tgt: Remove i[34567]86-*-go32*,
9263 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
9264 and i[34567]86-*-isc*. Set gdb_target to i386 for
9265 i[34567]86-*-netware* and i[34567]86-*-*.
9266 * config/i386/i386.mt: New file.
9267 * config/i386/embed.mt: Remove file.
9268 * config/i386/go32.mt: Remove file.
9269 * config/i386/i386nw.mt: Remove file.
9270 * config/i386/i386v.mt: Remove file.
9271 * config/i386/tm-go32.h: Remove file.
9272
4a1bcc8c
MK
9273 * tui/tui-hooks.c: Include "readline/readline.h" after
9274 "gdb_curses.h" instead of before.
9275 * tui/tui-io.c: Likewise.
9276
f9a79064
MK
9277 * tui/tui.c: Fix typo in comment.
9278
b31bc724
MK
9279 * sparc64-tdep.c (sparc_address_from_register): Remove function.
9280
f83f82bc
AC
92812004-04-08 Andrew Cagney <cagney@redhat.com>
9282
9283 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
9284 (deprecated_exception_support_initialized): Declare.
8718a420 9285 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
f83f82bc
AC
9286 (initialize_hp_cxx_exception_support)
9287 (child_enable_exception_callback): Update.
9288 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
9289 (deprecated_exception_support_initialized): Rename
9290 deprecated_exception_catchpoints_are_fragile and
9291 deprecated_exception_support_initialized.
9292 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
9293
9294 * symtab.c (deprecated_hp_som_som_object_present): Rename
9295 hp_som_som_object_present.
9296 * symtab.h (deprecated_hp_som_som_object_present): Declare.
9297 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
9298 Update. Delete extern declaration.
9299 * valops.c (hp_som_som_object_present): Ditto.
8718a420 9300 * parse.c (deprecated_hp_som_som_object_present)
f83f82bc
AC
9301 (parse_nested_classes_for_hpacc): Ditto.
9302 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
8718a420 9303 * hppa-hpux-tdep.c (hp_som_som_object_present)
f83f82bc
AC
9304 (initialize_hp_cxx_exception_support): Ditto.
9305 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
8718a420 9306 * cp-valprint.c (hp_som_som_object_present)
f83f82bc 9307 (cp_print_class_method): Ditto.
8718a420 9308 * c-typeprint.c (hp_som_som_object_present):
f83f82bc
AC
9309 (c_type_print_base): Ditto.
9310 * c-exp.y (hp_som_som_object_present): Ditto.
9311
fb2be677
AC
93122004-04-08 Andrew Cagney <cagney@redhat.com>
9313
9314 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
9315 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
9316 (frame_unwind_find_by_frame): Re-implement the unwind code so
9317 that it can both prepend and append sniffers. Replace
9318 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
9319 * tramp-frame.c (tramp_frame_append): Use
9320 frame_unwind_prepend_unwinder.
9321 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
9322 frame_unwind_register_unwinder.
9323 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
9324 tramp_frame_append.
9325 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
8718a420 9326 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
fb2be677
AC
9327 (mips_linux_init_abi): Update.
9328
67faf007
KB
93292004-04-08 Kevin Buettner <kevinb@redhat.com>
9330
9331 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
9332 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
9333 file support.
9334
8973ff21
KB
93352004-04-07 Kevin Buettner <kevinb@redhat.com>
9336
9337 * ia64-tdep.c (elf.h): Don't include.
9338 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
9339
4a0e2f88
JM
93402004-04-07 Jason Molenda (jmolenda@apple.com)
9341
9342 * frame.h: Typeo corrections in comments.
9343
9872ad24
JB
93442004-04-07 Jim Blandy <jimb@redhat.com>
9345
9346 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
9347 %esp and %ebp
9348
70b216c8
MK
93492004-04-07 Mark Kettenis <kettenis@gnu.org>
9350
11d5789c
MK
9351 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
9352 * config/sparc/linux64.mt (TDEPFILES): Likewise.
9353 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
9354 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
9355 and solib-legacy.o.
9356 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
9357 solib-svr4.o.
9358 * config/sparc/tm-sol2.h: Update copyright year. Include
9359 "solib.h".
9360
70b216c8
MK
9361 * sparc-sol2-tdep.c: Update copyright year. Include
9362 "solib-svr4.h".
9363 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9364 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
9365 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
096f864c 9366 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
70b216c8
MK
9367 dependencies.
9368
6339dc9e
AC
93692004-04-06 Andrew Cagney <cagney@redhat.com>
9370
9371 * infttrace.c: Include "infttrace.h".
9372 * infttrace.h: Include "target.h".
9373 * Makefile.in (infttrace_h): Update.
9374 (infttrace.o): Update.
8718a420 9375
93449403
AC
93762004-04-06 Andrew Cagney <cagney@redhat.com>
9377
6d518969
AC
9378 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
9379 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
9380 move extern declarations from here ...
9381 * infttrace.h: ... to here.
9382 * Makefile.in (hppah-nat.o): Update dependencies.
9383
85f4f2d8
AC
9384 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
9385 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
8718a420 9386 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
85f4f2d8
AC
9387 (hppa_breakpoint_from_pc): Delete.
9388
93449403
AC
9389 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
9390
71456ec6
AC
93912004-04-05 Andrew Cagney <cagney@redhat.com>
9392
9393 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
9394 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
9395 <sys/file.h>.
8718a420 9396
4c02c60c
AC
93972004-04-06 Randolph Chung <tausq@debian.org>
9398
9399 Committed by Andrew Cagney (mechanical change).
9400 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
9401 exception_catchpoints_are_fragile, find_stub_with_shl_get,
9402 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
9403 child_enable_exception_callback, current_ex_event,
9404 null_symtab_and_line, child_get_current_exception_event,
9405 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
9406 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
9407 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
9408 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
9409 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
9410 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
9411 Move hpux-specific definitions ...
9412 * hppa-hpux-tdep.c: ... to here.
9413
3a515653
AC
94142004-04-05 Andrew Cagney <cagney@redhat.com>
9415
9416 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
9417 skip_prologue_using_sal.
9418
c1730d02
AC
94192004-04-05 Andrew Cagney <cagney@redhat.com>
9420
9421 * config/i386/tm-i386.h: Delete file.
9422 * config/i386/tm-vxworks.h: Update copyright, do not include
9423 "tm-i386.h".
9424 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
9425 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
9426 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
9427 * config/i386/ncr3000.mt (TM_FILE): Delete.
9428 * config/i386/interix.mt (TM_FILE): Delete.
9429 * config/i386/i386v.mt (TM_FILE): Delete.
9430 * config/i386/i386nw.mt (TM_FILE): Delete.
9431 * config/i386/i386gnu.mt (TM_FILE): Delete.
9432 * config/i386/i386aout.mt (TM_FILE): Delete.
9433 * config/i386/embed.mt (TM_FILE): Delete.
9434
8b67aa36
KB
94352004-04-05 Kevin Buettner <kevinb@redhat.com>
9436
9437 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
9438 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
9439 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
9440 (accg7_regnum): New constants.
9441 (last_spr_regnum, last_pseudo_regnum): Update.
c2f59a1a
KB
9442 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
9443 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
8b67aa36
KB
9444 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
9445 for accg registers.
9446 (frv_register_sim_regno): Update spr_map[].
9447
3c7012f5
AC
94482004-04-04 Andrew Cagney <cagney@redhat.com>
9449
9450 * config/mips/xm-riscos.h: Delete.
9451 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
9452 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
9453 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
9454 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
9455 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
9456 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
9457 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
9458 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
9459 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
9460 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
9461 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
9462 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
9463 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
9464 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
9465 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
9466 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
9467 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
9468 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
9469 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
9470 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
9471 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
9472 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
9473 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
9474 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
9475 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
9476 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
8718a420 9477
3c7012f5
AC
9478 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
9479 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
9480 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
9481 * configure.host: Remove m680[01]0-sun-sunos3*,
9482 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
9483 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
9484 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
9485 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
9486 mips-*-riscos*.
9487 * NEWS: Mention removed systems.
9488
99d16a21
AC
94892004-04-04 Andrew Cagney <cagney@redhat.com>
9490
9491 GDB 6.1 release created from 6.1 branch.
9492
6cdf9d98
AC
94932004-04-04 Andrew Cagney <cagney@redhat.com>
9494
98d346c3
AC
9495 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
9496 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
9497 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
9498
6cdf9d98
AC
9499 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
9500 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
9501 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
9502
859a326d
JB
95032004-04-03 Jim Blandy <jimb@redhat.com>
9504
9505 * MAINTAINERS: Chris Faylor has changed employers; add him to
9506 "paper trail" section, and update his E-mail address.
9507
b87178c3
AC
95082004-04-03 Andrew Cagney <cagney@redhat.com>
9509
4ea2acf0
AC
9510 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
9511 generic dummy frames.
9512 * dummy-frame.c: Update copyright.
9513 (dummy_frame_sniffer): Delete check for generic dummy frames.
9514
d0bd2d18 9515 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
8718a420 9516 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
d0bd2d18
AC
9517 (REG_PARM_STACK_SPACE): Delete.
9518 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
9519 Inline reference to REG_PARM_STACK_SPACE.
9520
b87178c3
AC
9521 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
9522 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
9523 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
9524 (FRAME_BASE_BEFORE_SIGTRAMP)
9525 (hppa32_hpux_frame_base_before_sigtramp)
9526 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
9527 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
9528 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
9529 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
9530 (FRAME_BASE_BEFORE_SIGTRAMP)
9531 (hppa64_hpux_frame_base_before_sigtramp)
9532 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
9533
43e2e1a0
AC
95342004-04-03 Andrew Cagney <cagney@redhat.com>
9535
9536 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
9537
ddc135a4
AC
95382004-04-02 Andrew Cagney <cagney@redhat.com>
9539
9540 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
9541 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
9542 * dummy-frame.h: Delete out-of-date comments.
9543 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
9544 * gdbarch.h, gdbarch.c: Re-generate.
9545
d15bfd3a 95462004-04-02 Joel Brobecker <brobecker@gnat.com>
8718a420 9547
d15bfd3a
AC
9548 Committed by Andrew Cagney <cagney@redhat.com>.
9549 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
9550 into account an instruction saving a register if we have already
9551 seen an earlier instruction saving that same register.
9552
f04ceafa
AC
95532004-04-02 Andrew Cagney <cagney@redhat.com>
9554
08be3abd
AC
9555 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
9556 * gdbarch.h, gdbarch.c: Re-generate.
9557 * frame.c (legacy_get_prev_frame): Delete references to
9558 DEPRECATED_INIT_FRAME_PC_FIRST.
9559
f04ceafa
AC
9560 * infrun.c (pc_in_sigtramp): Delete function.
9561 (check_sigtramp2): Inline call to pc_in_sigtramp, use
9562 get_frame_type.
9563
08e69816
AC
95642004-04-02 Andrew Cagney <cagney@redhat.com>
9565
9566 * infrun.c (handle_step_into_function): Delete code conditional on
9567 legacy_frame_p.
9568 (handle_inferior_event, step_over_function): Ditto.
9569
adb54772
AC
95702004-04-02 Andrew Cagney <cagney@redhat.com>
9571
9572 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
9573 "previous frame inner to this frame" test.
9574
304396fb
AC
95752004-04-02 Andrew Cagney <cagney@redhat.com>
9576
9577 * frame.c (safe_frame_unwind_memory): New function.
9578 * frame.h (safe_frame_unwind_memory): Declare. Update description
9579 of /safe_/ methods.
9580 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
9581 "next_frame". Use safe_frame_unwind_memory.
9582 (tramp_frame_sniffer): Update call to tramp_frame_start.
9583
6502dd73
DJ
95842004-04-01 Daniel Jacobowitz <drow@mvista.com>
9585
9586 * dwarf2read.c (dwarf2_objfile_data_key): New.
9587 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
9588 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
9589 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
9590 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
9591 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
9592 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
9593 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
9594 Remove variables.
9595 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
9596 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
9597 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
9598 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
9599 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
9600 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
9601 Remove macros.
9602 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
9603 data.
9604 (dwarf2_locate_sections, dwarf2_build_psymtabs)
9605 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
9606 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
9607 (read_partial_die, read_full_die, read_indirect_string)
9608 (dwarf_decode_line_header, dwarf_decode_macros)
9609 (dwarf2_symbol_mark_computed): Remove use of removed macros.
9610 Update uses of removed variables.
9611 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
9612 of removed macros.
9613 (_initialize_dwarf2_read): New function.
9614 * symfile.h (dwarf2_has_info): Update prototype.
9615 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
9616 * elfread.c (elf_symfile_read): Likewise.
9617
408752b0
JB
96182004-04-01 Jim Blandy <jimb@redhat.com>
9619
9f744501
JB
9620 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
9621 function for register numbers on all the rs6000-derived targets.
9622 (rs6000_gdbarch_init): Don't register a separate
9623 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
9624 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
9625 variants.
9626
408752b0
JB
9627 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
9628 numbering.
9629
2de41bce
PH
96302004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
9631
9632 * valarith.c: Update copyright notice.
9633 (value_add): Handle range types.
9634 (value_sub): Ditto.
9635 (value_equal): Ditto.
9636 (value_less): Ditto.
9637 (value_neg): Ditto.
9638 (value_complement): Ditto.
8718a420 9639 (value_binop): Simplify slightly by using is_integral_type and
2de41bce 9640 eliminiating unnecessary COERCE_ENUMs.
8718a420 9641
5613d8d3
AC
96422004-03-31 Andrew Cagney <cagney@redhat.com>
9643
9644 * frame.h (frame_unwind_id): Declare.
9645 * frame.c (frame_unwind_id): New function.
9646 (get_prev_frame_1): New function.
9647 (frame_debug_got_null_frame): New function.
9648 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
9649 code proper to prev_frame, update description.
9650 * infrun.c (step_over_function): Use frame_unwind_id.
9651
c4557624
JB
96522004-04-31 J. Brobecker <brobecker@gnat.com>
9653
9654 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
9655 (hppa64_push_dummy_call): Likewise.
9656
3e6bb910
JB
96572004-03-30 Jim Blandy <jimb@redhat.com>
9658
9659 From Ulrich Weigand:
9660 * utils.c (query): Do not use a va_list variable multiple times.
9661
a2f23071
DJ
96622004-03-29 Daniel Jacobowitz <drow@mvista.com>
9663
9664 * Makefile.in (linux_nat_h): Update dependencies.
9665 * configure.in: Check for <gnu/libc-version.h>.
9666 * configure: Regenerate.
9667 * config.in: Regenerate.
9668 * linux-nat.h: Include "target.h". Add waitstatus field to
9669 struct lwp_info.
9670 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
9671 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
9672 to.
9673 (lin_lwp_handle_extended): New function. Handle clone events.
9674 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
9675 thread exit events.
9676 (child_wait): Handle clone events.
9677 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
9678 * linux-nat.c (linux_enable_event_reporting): Turn on
9679 PTRACE_O_TRACECLONE.
9680 (linux_handle_extended_wait): Handle clone events.
9681 * thread-db.c: Include <gnu/libc-version.h>.
9682 (struct private_thread_info): Add dying flag.
9683 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
9684 higher.
9685 (attach_thread): Update comments. Handle dying threads.
9686 (detach_thread): Set the dying flag.
9687 (check_event): Always call attach_thread.
9688
8d5f9dcb
DJ
96892004-03-29 Daniel Jacobowitz <drow@mvista.com>
9690
9691 * mips-tdep.c (mips_pdr_data): New.
9692 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
9693 (_initialize_mips_tdep): Initialize mips_pdr_data.
9694
66337bb1
CV
96952004-03-29 Corinna Vinschen <vinschen@redhat.com>
9696
9697 * minsyms.c (install_minimal_symbols): Move dropping leading
9698 char from linkage name from here...
9699 (prim_record_minimal_symbol_and_info): ...to here. Simplify
9700 test for "__gnu_compiled*" symbols.
9701
e802b915
JB
97022004-03-28 Jim Blandy <jimb@redhat.com>
9703
9704 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
9705 registers to temp register r0 and byte stores as prologue
9706 instructions.
9707
72b56458
AC
97082004-03-28 Andrew Cagney <cagney@redhat.com>
9709
9710 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
9711 arm*-*-*.
9712
0bfbda3b
SC
97132004-03-28 Stephane Carrez <stcarrez@nerim.fr>
9714
9715 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
9716 and switch the layout to force a display of register window.
9717
5a7225ed
JB
97182004-02-26 J. Brobecker <brobecker@gnat.com>
9719
9720 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
9721 of the INTEGER class.
9722
81a07a45
JB
97232004-03-26 Jim Blandy <jimb@redhat.com>
9724
9725 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
9726 bytes long on PPC GNU/Linux.
9727
8c691c7a
DC
97282004-03-26 David Carlton <carlton@kealia.com>
9729
9730 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
9731
103a0089
AC
97322004-03-25 Andrew Cagney <cagney@redhat.com>
9733
9734 * PROBLEMS: Add general section titles, remove references to
9735 specific releases.
9736
7a5ea0d4
DJ
97372004-03-25 Daniel Jacobowitz <drow@mvista.com>
9738
9739 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
9740 INT_REGISTER_SIZE.
9741 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
9742 FP_REGISTER_VIRTUAL_SIZE.
9743 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
9744 of DEPRECATED_REGISTER_RAW_SIZE.
9745 (arm_register_type): Add gdbarch argument.
9746 (arm_register_raw_size, arm_register_virtual_size): Delete.
9747 (arm_register_byte, arm_extract_return_value)
9748 (arm_store_return_value, arm_get_longjmp_target): Update references
9749 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
9750 (arm_gdbarch_init): Likewise. Don't set
9751 deprecated_register_raw_size, deprecated_register_virtual_size,
9752 deprecated_max_register_raw_size,
9753 deprecated_max_register_virtual_size, or
9754 deprecated_max_register_virtual_type. Do set register_type.
9755 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
9756 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
9757 (FP_REGISTER_VIRTUAL_SIZE): Delete.
9758 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
9759 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
9760 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
9761 INT_REGISTER_SIZE.
9762 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
9763 (remote_rdp_store_register): Likewise.
9764
5792a79b
DJ
97652004-03-24 Daniel Jacobowitz <drow@mvista.com>
9766
9767 * Makefile.in (mips-linux-tdep.o): Update dependencies.
9768 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
9769 to after osabi initialization.
9770 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
9771 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
9772 functions.
9773 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
9774 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
9775 variables.
9776 (mips_linux_init_abi): Append signal trampoline unwinders.
9777
1196bfda
AC
97782004-03-24 Andrew Cagney <cagney@redhat.com>
9779
9780 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
9781 * tramp-frame.c: Include "gdb_assert.h".
9782 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
9783 correct sizeof.
9784 (tramp_frame_append): Validate the tramp frame's instructions.
9785 * Makefile.in (tramp-frame.o): Update dependencies.
9786
4be282b4
AC
97872004-03-23 Andrew Cagney <cagney@redhat.com>
9788
9789 * trad-frame.h (trad_frame_set_reg_addr): Declare.
9790
69aec09b
AC
97912004-03-23 Andrew Cagney <cagney@redhat.com>
9792
9793 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
9794 Nasser as past testsuite/lib/ (and other) maintainers.
9795
63ed89b4
DJ
97962004-03-23 Daniel Jacobowitz <drow@mvista.com>
9797
9798 * infcmd.c (attach_command): Reread symbols if we already have
9799 an exec file.
9800
f3b36427
AC
98012004-03-23 Andrew Cagney <cagney@redhat.com>
9802
9803 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
9804
aa2a3f87
AC
98052004-03-23 Andrew Cagney <cagney@redhat.com>
9806
9807 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
9808 * gdbarch.h, gdbarch.c: Re-generate.
9809 * i386obsd-tdep.c (i386obsd_init_abi): Update.
9810 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
9811 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8718a420 9812 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87 9813 (DEPRECATED_SIGTRAMP_START): Update.
8718a420 9814 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87
AC
9815 (DEPRECATED_SIGTRAMP_START): Update.
9816 * blockframe.c (find_pc_sect_partial_function): Update.
9817 * arch-utils.c (legacy_pc_in_sigtramp): Update.
9818
00cac895
DJ
98192004-03-23 Daniel Jacobowitz <drow@mvista.com>
9820
9821 * remote.c (remote_open_1): Reopen the exec file and reread symbols
9822 if necessary.
9823
f561f026
AC
98242004-03-23 Andrew Cagney <cagney@redhat.com>
9825
9826 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
9827 predicate, deprecate.
9828 * gdbarch.h, gdbarch.c: Re-generate.
9829 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
9830 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
9831 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
9832 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
9833 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
9834 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
9835 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
9836 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
9837 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
9838 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
9839 * blockframe.c (find_pc_partial_function): Update.
9840 * breakpoint.c (bpstat_what): Update.
9841 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
9842 * frv-linux-tdep.c (frv_linux_init_abi): Update.
9843 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
9844 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
9845 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9846 * i386-linux-tdep.c (i386_linux_init_abi): Update.
9847 * i386-nto-tdep.c (i386nto_init_abi): Update.
9848 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
9849 * i386-tdep.c (i386_sigtramp_frame_sniffer)
9850 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
9851 * i386bsd-tdep.c (i386bsd_init_abi): Update.
9852 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
9853 * i386obsd-tdep.c (i386obsd_init_abi): Update.
9854 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
9855 * infrun.c (pc_in_sigtramp): Update.
9856 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
9857 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
9858 * mips-tdep.c (mips_gdbarch_init): Update.
9859 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
9860 * ppc-linux-tdep.c: Update comment.
9861 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
9862 * shnbsd-tdep.c (shnbsd_init_abi): Update.
9863 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
9864 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
9865 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
9866 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
9867 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
9868 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
9869 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
9870 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
8718a420 9871
8050c72f
AC
98722004-03-23 Andrew Cagney <cagney@redhat.com>
9873
d2259dd3
AC
9874 * tramp-frame.h, tramp-frame.h: New files.
9875 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
9876 Update rules to include "tramp-frame.h" and "tramp-frame.c".
9877
8050c72f
AC
9878 * Makefile.in: Update all dependencies.
9879
0db9b4b7
AC
98802004-03-23 Andrew Cagney <cagney@redhat.com>
9881
9882 * Makefile.in (trad_frame_h): Add $(frame_h).
9883 * trad-frame.h: Update copyright. Include "frame.h".
9884 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
9885 (trad_frame_set_id, trad_frame_get_id): Declare.
9886 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
9887 * trad-frame.c: Update copyright.
9888 (struct trad_frame_cache): Define.
9889 (trad_frame_cache_zalloc): New function.
9890 (trad_frame_set_id, trad_frame_get_id): New functions.
9891 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
8718a420 9892
8e645ae7
AC
98932004-03-22 Andrew Cagney <cagney@redhat.com>
9894
9895 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
9896 s390_pltstub_unwind_cache.
9897 (s390_stub_frame_unwind_cache): Rename
9898 s390_pltstub_frame_unwind_cache.
9899 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
9900 (s390_stub_frame_prev_register): Rename
9901 s390_pltstub_frame_prev_register.
9902 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
9903 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
9904
9905 From Ulrich Weigand:
9906 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
9907 pointer calls like PLT calls.
9908
34fcf120
DJ
99092004-03-22 Daniel Jacobowitz <drow@mvista.com>
9910
9911 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
9912 PC rather than the partial function start address. Use the start
9913 address to sanity check the found PDR.
9914
5b917078
DJ
99152004-03-22 Daniel Jacobowitz <drow@mvista.com>
9916
9917 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
9918 linux_handle_extended_wait.
9919
8adf9e78
AC
99202004-03-22 Andrew Cagney <cagney@redhat.com>
9921
c3122434
AC
9922 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
9923 function.
9924
8adf9e78
AC
9925 * frame.h (generic_pop_current_frame): Delete declaration.
9926 (deprecate_pop_dummy_frame): Deprecate
9927 generic_pop_dummy_frame.
9928 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
9929 (generic_pop_current_frame): Delete function.
9930 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
9931 generic_pop_current_frame.
9932 * v850-tdep.c (v850_pop_frame): Update.
9933 * mcore-tdep.c (mcore_pop_frame): Update.
9934 * sh64-tdep.c (sh64_pop_frame): Update.
9935 * h8300-tdep.c (h8300_pop_frame): Update.
9936
90ba813f
AC
99372004-03-22 Andrew Cagney <cagney@redhat.com>
9938
9939 * frame.h (deprecated_pc_in_call_dummy): Rename
9940 generic_pc_in_call_dummy.
9941 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
9942 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
9943 generic_pc_in_call_dummy.
9944 (pc_in_dummy_frame): Make static.
9945 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
9946 * gdbarch.h, gdbarch.c: Re-generate.
9947 * dummy-frame.c (dummy_frame_sniffer): Simplify.
9948 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
9949 (legacy_get_prev_frame): Ditto.
9950 * inferior.h: Delete reference to generic_pc_in_call_dummy in
9951 comment.
8718a420 9952
ca4bb888
AC
99532004-03-21 Andrew Cagney <cagney@redhat.com>
9954
244675f9
AC
9955 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
9956 declaration and out-of-date comment.
9957 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
9958 Delete function.
9959 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
9960 deprecated_pc_in_call_dummy.
9961
ca4bb888
AC
9962 * infrun.c (handle_inferior_event): For non legacy frames, use the
9963 frame ID and frame type to identify a signal trampoline. Update
9964 comments.
9965
1777c7b4
NW
99662004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
9967
9968 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
9969 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
9970
82417da5
AC
99712004-03-21 Andrew Cagney <cagney@redhat.com>
9972
9973 * frame-unwind.h: Update copyright.
9974 (struct frame_data): Add opaque declaration.
9975 (frame_sniffer_ftype): Declare.
9976 (struct frame_unwind): Add "unwind_data" and "sniffer".
9977 (frame_unwind_register_unwinder): Declare.
9978 (frame_unwind_find_by_frame): Add parameter "this_cache".
9979 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
9980 (legacy_get_prev_frame, legacy_get_prev_frame)
9981 (get_frame_type): Pass the prologue_cache to
9982 frame_unwind_find_by_frame.
9983 * frame-unwind.c (struct frame_unwind_table_entry): Add field
9984 "unwinder".
9985 (frame_unwind_register_unwinder): New function.
9986 (frame_unwind_find_by_frame): Handle an unwind sniffer.
9987
b2ba182e
PH
99882004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
9989
9990 * bcache.c (print_percentage): Use floating point to avoid
9991 incorrect results when portion*100 overflows.
9992
81332287
KB
99932004-03-19 Kevin Buettner <kevinb@redhat.com>
9994
9995 * ppc_tdep.h (ppc_linux_frame_saved_pc)
9996 (ppc_linux_init_extra_frame_info)
9997 (ppc_linux_frameless_function_invocation)
9998 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
9999 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
10000 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
10001 (rs6000_frame_chain): Delete declarations.
10002 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
10003 (ppc_linux_init_extra_frame_info)
10004 (ppc_linux_frameless_function_invocation)
10005 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
10006 (ppc_linux_init_abi): Remove registration of above deleted functions.
10007 * rs6000-tdep.c (rs6000_init_extra_frame_info)
10008 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
10009 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
10010 (rs6000_pop_frame, rs6000_frameless_function_invocation)
10011 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
10012 (rs6000_gdbarch_init): Remove registration of above deleted functions.
10013 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
10014 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
10015 frame management for all OSABIs.
10016
61a65099
KB
100172004-03-19 Andrew Cagney <cagney@redhat.com>
10018
10019 Committed by Kevin Buettner <kevinb@redhat.com>.
10020
10021 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
10022 Update copyright.
10023 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
10024 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
10025 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
10026 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
10027 unwinders. #ifdef legacy frame code.
10028 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
10029 "frame-base.h".
10030 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
10031 (struct rs6000_frame_cache, rs6000_frame_cache)
10032 (rs6000_frame_this_id, rs6000_frame_prev_register)
10033 (rs6000_frame_sniffer, rs6000_frame_unwind)
10034 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
10035 (rs6000_frame_base): Implement a traditional frame unwinder.
10036 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
10037 frame unwinder.
10038
88f7da05
KB
100392004-03-19 Kevin Buettner <kevinb@redhat.com>
10040
10041 * breakpoint.c (adjust_breakpoint_address): Don't adjust
10042 breakpoint address for watchpoints or the catch eventpoints.
10043 Add new paramter ``bptype''. Adjust all callers.
10044
f826dce1
AC
100452004-03-19 Andrew Cagney <cagney@redhat.com>
10046
33cb8b0f
AC
10047 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
10048
f826dce1
AC
10049 * PROBLEMS: Delete note that ARM does not use frame code, problem
10050 fixed.
10051
43b1ab88
AC
100522004-03-18 Andrew Cagney <cagney@redhat.com>
10053
292ab034
AC
10054 * stack.c (return_command): Delete code wrapped in #ifdef
10055 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
10056
43b1ab88
AC
10057 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
10058
dbfe4626
AC
100592004-03-18 Andrew Cagney <cagney@redhat.com>
10060
10061 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
10062 DEPRECATED_IN_SIGTRAMP.
10063 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10064 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
10065 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10066 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10067 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10068 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10069 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10070 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10071 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
10072 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
10073
0cad6aec
AC
100742004-03-18 Andrew Cagney <cagney@redhat.com>
10075
10076 * frame-base.c: Update copyright. Include "gdb_obstack.h".
10077 (struct frame_base_table_entry): Define.
10078 (struct frame_base_table): Re-implement as a linked list.
10079 (frame_base_init): Re-implement.
10080 (frame_base_table): Delete function.
10081 (append_predicate): Delete function.
10082 (frame_base_append_sniffer): Update.
10083 (frame_base_set_default): Update.
10084 (frame_base_find_by_frame): Update.
10085 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
10086 * Makefile.in (frame-base.o): Update dependencies.
10087
9982c2e7
AC
100882004-03-17 Andrew Cagney <cagney@redhat.com>
10089
10090 * frame.c (legacy_get_prev_frame): Pass correct frame to
10091 frame_unwind_find_by_frame.
10092
8dfe8985
DC
100932004-03-17 David Carlton <carlton@kealia.com>
10094
10095 * NEWS: Mention C++ nested types and namespaces
10096
ed47347a
MC
100972004-03-16 Michael Chastain <mec.gnu@mindspring.com>
10098
10099 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
10100 and "Regressions since gdb 5.3.". Add known regressions since
10101 gdb 6.0.
10102
90aeadfc
DC
101032004-03-16 David Carlton <carlton@kealia.com>
10104
10105 * dwarf2read.c (process_structure_scope): Process children even
10106 when we're a declaration.
10107
73912b9b
AC
101082004-03-16 Andrew Cagney <cagney@redhat.com>
10109
10110 * symtab.h (find_pc_sect_partial_function): Delete declaration.
10111 * blockframe.c (find_pc_partial_function)
10112 (find_pc_sect_partial_function): Merge into a single
10113 find_pc_partial_function.
10114
283accbc
MK
101152004-03-16 Mark Kettenis <kettenis@gnu.org>
10116
10117 * i386bsd-nat.c: s/regno/regnum/g.
10118 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
10119 FP0_REGNUM.
10120 (store_inferior_registers): Likewise.
10121
f5b1afdf
MK
101222004-03-16 Mark Kettenis <kettenis@gnu.org>
10123
10124 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
10125 of i387_fill_fsave.
10126 (store_inferior_registers): Call i387_collect_fsave and
10127 i387_collect_fxsave instead of i387_fill_fsave and
10128 i387_fill_fxsave.
10129
41fe5eb3
AC
101302004-03-15 Andrew Cagney <cagney@redhat.com>
10131
10132 * Makefile.in (frame-unwind.o): Update dependencies.
10133 * frame-unwind.c: Include "gdb_obstack.h".
10134 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
10135 parameter.
10136 (append_predicate): Delete function.
10137 (struct frame_unwind_table_entry): New structure.
10138 (struct frame_unwind_table): Replace "sniffer" with "head" and
10139 "tail".
10140 (frame_unwind_append_sniffer): Update.
10141 (frame_unwind_find_by_frame): Update.
10142 (_initialize_frame_unwind): Registe frame_unwind_init using
10143 gdbarch_data_register_pre_init.
10144
3f63813d
MK
101452004-03-15 Mark Kettenis <kettenis@gnu.org>
10146
10147 * i386bsd-nat.c: Update copyright year.
10148 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
10149 define unconditionally.
10150
3248c325 101512004-03-15 Mark Kettenis <kettenis@gnu.org>
63b6c53f
MK
10152
10153 * i387-tdep.h (i387_collect_fsave): New prototype.
10154 * i387-tdep.c (i387_collect_fsave): New function containing most
10155 of the code from i387_fill_fsave.
3248c325 10156 (i387_fill_fsave): Call i387_collect_fsave.
63b6c53f 10157
871fbe6a
MK
101582004-03-15 Mark Kettenis <kettenis@gnu.org>
10159
10160 * i386-linux-tdep.c: Update copyright year.
10161 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
10162 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
10163 svr4_ilp32_link_map_offsets instead of
10164 i386_linux_svr4_fetch_link_map_offsets.
10165
8176b9b8
DC
101662004-03-15 David Carlton <carlton@kealia.com>
10167
10168 Fix for PR c++/1553:
10169 * dwarf2read.c (read_structure_type): Determine type name by
10170 calling determine_class_name.
10171 (determine_class_name): New.
10172 (determine_prefix): Look at TYPE_TAG_NAME and call
10173 determine_class_name when appropriate.
10174 (determine_prefix_aux, class_name): Delete.
9d58e29d 10175 (read_namespace): Set die->type.
8176b9b8 10176
fe8bf7d7
KB
101772004-03-15 Kevin Buettner <kevinb@redhat.com>
10178
10179 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
10180 unused macro definition. The definition in target.h (or perhaps
10181 elsewhere) takes precedence.
10182
ed6edd9b
AC
101832004-03-15 Andrew Cagney <cagney@redhat.com>
10184
f9be684a
AC
10185 * ppc-tdep.h: Update copyright.
10186 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
10187 function signatures to match "regsets.h".
10188 * ppc-linux-tdep.c: Include "regset.h".
10189 (ELF_GREGSET_SIZE): Delete.
10190 (right_supply_register): New function.
10191 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
10192 using right_supply_register.
10193 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
10194 functions.
10195 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
10196 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
10197 (_initialize_ppc_linux_tdep): Do not register
10198 ppc_linux_regset_core_fns.
10199 (ppc_linux_regset_from_core_section): Replace
10200 fetch_core_registers.
10201 (ppc_linux_regset_core_fns): Delete.
10202 * ppc-linux-nat.c: (right_fill_reg): New function.
10203 (supply_gregset): Update call to ppc_linux_supply_gregset.
10204 (fill_gregset): Clear the register set, use right_fill_reg.
10205 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
10206 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
10207
ed6edd9b
AC
10208 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
10209 unsigned.
10210
030f20e1
AC
102112004-03-15 Andrew Cagney <cagney@redhat.com>
10212
10213 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
10214 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
10215 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
10216 and register_gdbarch_data.
10217 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
10218 (struct gdbarch_data): Replace "init" by "pre_init" and
10219 "post_init".
10220 * gdbarch.h, gdbarch.c: Re-generate.
10221 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
10222 with"obstack", use OBSTACK_ZALLOC.
10223 (dwarf2_frame_ops): Delete.
10224 (dwarf2_frame_set_init_reg): Use gdbarch_data.
10225 (dwarf2_frame_init_reg): Use gdbarch_data.
10226 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
8718a420 10227 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
030f20e1
AC
10228 (_initialize_svr4_solib): Update.
10229 * user-regs.c (_initialize_user_regs): Update.
10230 * reggroups.c (_initialize_reggroup): Update.
10231 * regcache.c (_initialize_regcache): Update.
10232 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
10233 * libunwind-frame.c (_initialize_libunwind_frame): Update.
10234 * gnu-v3-abi.c (init_gnuv3_ops): Update.
10235 * frame-unwind.c (_initialize_frame_unwind): Update.
10236 * frame-base.c (_initialize_frame_base): Update.
10237 * user-regs.c (user_reg_add): Update.
10238 * reggroups.c (reggroup_add): Update.
10239 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
10240 * libunwind-frame.c (libunwind_frame_set_descr): Update.
10241 * frame-unwind.c (frame_unwind_append_sniffer): Update.
10242 * frame-base.c (frame_base_table): Update.
10243 * remote.c (_initialize_remote): Update.
10244 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
8718a420 10245
3111a3fc
AC
102462004-03-15 Andrew Cagney <cagney@redhat.com>
10247
10248 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
10249
5ecb7103
KB
102502004-03-15 Kevin Buettner <kevinb@redhat.com>
10251
10252 * Makefile.in (frv-linux-tdep.o): Add dependencies.
10253 * frv-linux-tdep.c: New file.
10254 * frv-tdep.c (struct gdbarch_tdep): Add new field
10255 ``sigcontext_reg_addr''.
10256 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
10257 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
10258 (frv_sigramp_frame_sniffer): New functions.
10259 (frv_sigtramp_frame_unwind): New static global.
10260 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
10261 sniffers.
10262 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
10263 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
10264
1ccda5e9
KB
102652004-03-15 Kevin Buettner <kevinb@redhat.com>
10266
10267 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
10268 but not via a call to error(), when unable to read memory.
10269
b375a0a5
KB
102702004-03-15 Kevin Buettner <kevinb@redhat.com>
10271
10272 * frv-tdep.c (frv_call_dummy_words): Delete.
10273 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
10274
4fdf6121
AC
102752004-03-15 Andrew Cagney <cagney@redhat.com>
10276
10277 * infrun.c (handle_step_into_function, step_over_function): Only
10278 update and use STEP_FRAME_ID when the system is using legacy
10279 frames. Update comments.
10280
34021503
MK
102812004-03-14 Mark Kettenis <kettenis@gnu.org>
10282
187e21d1
MK
10283 * amd64-linux-tdep.h: Remove file.
10284 * amd64-linux-tdep.c: Don't include "inferior.h" and
10285 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
10286 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
10287 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
10288 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
10289 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
10290 macros.
10291 (user_to_gdb_regmap): Remove variable.
10292 (amd64_linux_gregset_reg_offset): New variable.
10293 (amd64_core_fns): Remove variable.
10294 (fetch_core_registers): Remove function.
10295 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
10296 functions.
10297 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
10298 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
10299 * Makefile.in (amd64_linux_tdep_h): Remove.
10300 (amd64-linux-nat.o): Update dependencies.
10301 (amd64-linux-tdep.o): Update dependencies.
10302
99679982
MK
10303 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
10304 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
10305 functions.
10306 (fetch_inferior_registers, store_inferior_registers): Rewrite.
10307
34021503
MK
10308 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
10309 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
10310
134d01f1
DJ
103112004-03-14 Daniel Jacobowitz <drow@mvista.com>
10312
10313 * dwarf2read.c (read_structure_type): Rename from
8718a420 10314 read_structure_scope. Don't create a symbol or call process_die.
134d01f1
DJ
10315 Return immediately if die->type is set. Call read_type_die before
10316 dwarf2_add_member_fn.
10317 (process_structure_scope): New function.
10318 (read_enumeration_type, process_enumeration_scope): New functions,
10319 broken out from read_enumeration. Don't create the enumeration
10320 type if it has already been created.
10321 (read_enumeration): Removed.
10322 (process_die): Call read_structure_type, process_structure_scope,
10323 read_enumeration_type, and process_enumeration_scope. Just call
10324 new_symbol for base and subrange types. Add a comment about other
10325 type dies.
10326 (read_type_die): Call read_enumeration_type.
10327 (add_partial_structure, new_symbol): Update comments.
10328
65760afb
SC
103292004-03-13 Stephane Carrez <stcarrez@nerim.fr>
10330
10331 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
10332
10f59415
SC
103332004-03-13 Stephane Carrez <stcarrez@nerim.fr>
10334
10335 * tui/tui-win.h (tui_get_cmd_list): Declare.
10336 * tui/tui-win.c (tui_command): New function.
10337 (tui_get_cmd_list): New function.
10338 (_initialize_tui_win): Moved initialization of tui command in
10339 tui_get_cmd_list.
10340
10341 * tui/tui-data.c (init_content_element): Setup new data members.
10342 (init_win_info): Likewise.
10343 (free_content_elements): Free it.
10344 * tui/tui-data.h (struct tui_data_element): Store the register
10345 content to print.
10346 (struct tui_data_info): Keep the current register group.
10347
10348 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
10349
10350 * tui/tui-regs.h (tui_show_registers): Update prototype.
10351 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
10352 (tui_resize_all): No need to calculate anything for register window.
10353 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
10354 (tui_set_register_element, tui_set_general_regs_content): Remove.
10355 (tui_set_special_regs_content): Remove.
10356 (tui_set_general_and_special_regs_content): Remove.
10357 (tui_set_float_regs_content): Remove.
10358 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
10359 (tui_set_regs_content): Remove.
10360 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
10361 (tui_v_show_registers_command_support): Remove.
10362 (tui_show_registers): Use a reggroup to specify the registers to show.
10363 (tui_show_register_group): New function.
10364 (tui_display_registers_from): Compute the layout of register window
10365 and refresh with new API; be sure to delete old register windows.
10366 (tui_check_register_values): Update to use tui_get_register and
10367 tui_display_data.
10368 (tui_display_register): Just refresh the register window part.
10369 (tui_register_format): Format registers and save in tui_data_element.
10370 (tui_get_register): New to combine tui_reg_value_has_changed and
10371 tui_get_register_raw_value; fix to use the new gdb API.
10372 (tui_show_float_command): Renamed tui_reg_float_command.
10373 (tui_show_general_command): Renamed tui_reg_general_command.
10374 (tui_show_special_command): Renamed tui_reg_system_command.
10375 (_initialize_tui_regs): Remove unused commands.
10376
c3364ea4
MK
103772004-03-13 Mark Kettenis <kettenis@gnu.org>
10378
27d1e716
MK
10379 * NEWS (New native configurations): Mention OpenBSD/amd64.
10380
c3364ea4
MK
10381 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
10382 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
10383 Remove defines.
10384 * config/i386/nm-fbsd64.h: Likewise.
10385 * config/i386/nm-obsd.h: Likewise.
10386 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
10387 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
10388
b2d6d697
KB
103892004-03-12 Kevin Buettner <kevinb@redhat.com>
10390
10391 * frv-tdep.c (set_variant_scratch_registers): New function.
b2d6d697
KB
10392 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
10393 New constants.
10394
76e43199
KB
10395 From Richard Sandiford <rsandifo@redhat.com>:
10396 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
10397
34ce532e
KB
103982004-03-12 Kevin Buettner <kevinb@redhat.com>
10399
10400 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
10401 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
10402 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
10403 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
10404 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
10405 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
10406 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
10407 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
10408 definitions from frv-tdep.c to frv-tdep.h.
10409
c4d10515
KB
104102004-03-12 Kevin Buettner <kevinb@redhat.com>
10411
10412 Add shared library support for FR-V FDPIC ABI:
10413 * Makefile.in (solib-frv.o): Add dependencies.
10414 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
10415 New functions.
10416 (frv_push_dummy_call): Add support for FDPIC ABI.
10417 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
10418 for FDPIC ABI.
10419 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
10420 (frv_fdpic_find_canonical_descriptor): Declare.
10421 * solib-frv.c: New file.
10422 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
10423 * config/frv/tm-frv.h (solib.h): Include.
10424
ed1bd989
KB
104252004-03-12 Kevin Buettner <kevinb@redhat.com>
10426
10427 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
10428 (frv-tdep.o): Update dependencies.
10429 * frv-tdep.h: New file.
10430 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
10431 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
10432 constants.
10433 (struct gdbarch_tdep): Add new member ``frv_abi''.
10434 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
10435 functions.
10436 (new_variant): Set ``frv_abi'' field.
10437 (gdb_arch_init): Detect FDPIC executables.
10438
82b38f72
MK
104392004-03-12 Mark Kettenis <kettenis@gnu.org>
10440
10441 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
10442 wrapper.
10443
db1ea9ba
AC
104442004-03-11 Andrew Cagney <cagney@redhat.com>
10445
10446 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
10447
f8766ec1
KB
104482004-03-11 Kevin Buettner <kevinb@redhat.com>
10449
10450 * solist.h (master_so_list): New function.
10451 * solib.c (master_so_list): Likewise.
10452 * solib-svr4.c (enable_break): Iterate over so_list entries
10453 obtained from master list instead of entries obtained directly
10454 via svr4_current_sos().
10455
523f6a27
BE
104562004-03-10 Ben Elliston <bje@gnu.org>
10457
10458 * MAINTAINERS: Update my mail address.
10459
37814c18
KI
104602004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
10461
10462 * remote-m32r-sdi.c: Support hardware watchpoint.
10463
8b9740d8
DJ
104642004-03-09 Daniel Jacobowitz <drow@mvista.com>
10465
10466 * user-regs.c: Update copyright years.
10467 (struct user_regs): Rename to gdb_user_regs.
10468 (append_user_reg, builtin_user_regs, user_regs_init)
10469 (user_reg_add, user_reg_map_name_to_regnum)
10470 (usernum_to_user_reg): Update.
10471
4bb7a0a7
DJ
104722004-03-09 Daniel Jacobowitz <drow@mvista.com>
10473
10474 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
10475 (skip_children): New functions.
10476 (locate_pdi_sibling): Call skip_children.
10477
44e1a9eb
DJ
104782004-03-09 Daniel Jacobowitz <drow@mvista.com>
10479
10480 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
10481 * gdbtypes.c (check_typedef): Update comments.
10482
f3dd6933
DJ
104832004-03-09 Daniel Jacobowitz <drow@mvista.com>
10484
10485 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
10486 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
10487 pointer. Update comment about comp_unit_head.
10488 (struct abbrev_info): Shorten two int flags.
10489 (dwarf_alloc_abbrev): Take a CU argument.
10490 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
10491 each time through the loop. Update cleanup argument.
10492 (psymtab_to_symtab_1): Update cleanup call.
10493 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
10494 abbrev_obstack.
10495 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
10496 Just call obstack_free and clear the pointer.
10497
b40c7d58
DJ
104982004-03-09 Daniel Jacobowitz <drow@mvista.com>
10499
10500 * infrun.c (handle_inferior_event): Remove short-circuit code for
10501 events in a different thread.
10502
333dabeb
DJ
105032004-03-09 Daniel Jacobowitz <drow@mvista.com>
10504
10505 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
10506 print the whole transfer.
10507 (initialize_targets): Update description of "set debug target".
10508
aa17d93e
DJ
105092004-03-09 Daniel Jacobowitz <drow@mvista.com>
10510
10511 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
10512
0b71f08f
NW
105132004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
10514
10515 * MAINTAINERS (write after approval): Add myself.
10516
3930f270
CV
105172004-03-08 Corinna Vinschen <vinschen@redhat.com>
10518
10519 * sh-tdep.c (sh_print_registers_info): Use for loop.
10520 Don't skip multiple registers when a float register is encountered.
10521
a2b4a96c
CV
105222004-03-08 Corinna Vinschen <vinschen@redhat.com>
10523
10524 Fix PR tdep/1291.
10525 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
10526 to official SH documentation.
10527
f15a4bc0
AC
105282004-03-07 Andrew Cagney <cagney@redhat.com>
10529
10530 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
10531 unused function.
10532
9498281f
DJ
105332004-03-07 Daniel Jacobowitz <drow@mvista.com>
10534
10535 * arm-tdep.c (thumb_get_next_pc): Handle BX.
10536 (arm_get_next_pc): Handle BX and BLX.
10537
449e1137
AC
105382004-03-07 Andrew Cagney <cagney@redhat.com>
10539
eded0a31
AC
10540 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
10541 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
10542 HPPA_SP_REGNUM.
10543 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
10544 (hppa_target_read_fp): Delete.
10545 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
10546 register_virtual_size, max_register_raw_size,
10547 max_register_virtual_size, register_byte, register_size,
10548 target_read_fp, fp_regnum, and register_bytes. Set register_type
10549 instead of register_virtual_type.
10550 (hppa32_register_type, hppa64_register_type): Replace
10551 hppa32_register_virtual_type and hppa64_register_virtual_type.
10552 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
10553 (HPPA_FP_REGNUM): Define.
10554
f5f907e2
AC
10555 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
10556
69b4bbe4
AC
10557 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
10558 (pa_do_registers_info): Delete.
10559 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
8718a420 10560 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
69b4bbe4 10561 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
f5f907e2 10562
78161e48
AC
10563 * infcall.c (legacy_push_dummy_code): Delete #ifdef
10564 GDB_TARGET_IS_HPPA code.
10565 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
8718a420 10566 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
78161e48
AC
10567 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
10568 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
8718a420
RM
10569 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
10570 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
10571 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
78161e48 10572 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
8718a420
RM
10573 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
10574 (hppa_frameless_function_invocation, hppa64_store_return_value)
10575 (hppa_store_struct_return, hppa64_extract_return_value)
78161e48 10576 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
8718a420 10577 (hppa32_call_dummy_length, hppa64_call_dummy_length)
78161e48 10578 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
8718a420
RM
10579 (find_proc_framesize, deposit_21, restore_pc_queue)
10580 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
210197d2 10581 (rp_saved, pc_in_linker_stub): Delete.
78161e48 10582
782eae8b
AC
10583 Unconditionally enable 64-bit frame and ABI code.
10584 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
10585 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
10586 push_dummy_frame, fix_call_dummy, push_arguments,
10587 call_dummy_location, extract_return_value, use_struct_convention,
10588 store_return_value, store_struct_return, saved_pc_after_call,
10589 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
10590 frame_chain, frame_chain_valid, frameless_function_invocation,
10591 frame_saved_pc, and pop_frame.
78161e48 10592
449e1137
AC
10593 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
10594 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
10595 (hppa_gdbarch_init): Do not set PC_REGNUM.
10596
12507572
MK
105972004-03-06 Mark Kettenis <kettenis@gnu.org>
10598
10599 * config/alpha/tm-fbsd.h: Remove file.
10600 * config/alpha/fbsd.mt: Tweak comment.
10601 (TM_FILE): Set to tm-alpha.h.
10602
c107cc1b
AC
106032004-03-05 Andrew Cagney <cagney@redhat.com>
10604
10605 * infrun.c (step_over_function): When non-legacy code, and no
10606 step_frame_id, use the unwinder to get the caller's frame ID.
10607
f2e7c15d
MK
106082004-03-05 Mark Kettenis <kettenis@gnu.org>
10609
8b0c3633
MK
10610 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
10611 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
10612 bfd_arch_unknown. Adjust comment.
10613
f2e7c15d
MK
10614 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
10615 * i386obsd-tdep.c: Correct spelling in comment.
10616 * i386nbsd-tdep.c: Correct spelling in comment.
10617 * sparc-tdep.c: Correct spelling in comments.
10618
1198ecbe
DC
106192004-03-05 David Carlton <carlton@kealia.com>
10620
10621 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
10622 bug.
10623
9eb42ed1
MK
106242004-03-05 Mark Kettenis <kettenis@gnu.org>
10625
10626 * sparc-tdep.c: Fix typo in comment.
10627
52b5e991
JB
106282004-03-04 J. Brobecker <brobecker@gnat.com>
10629
10630 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
10631
d8151005
DJ
106322004-03-04 Daniel Jacobowitz <drow@mvista.com>
10633
10634 * dwarf2read.c: Add comment describing memory lifetimes.
10635 (struct dwarf2_pinfo): Update comment.
10636 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
10637 (read_enumeration, new_symbol): Don't use obsavestring.
10638
cbeae229
MK
106392004-03-04 Mark Kettenis <kettenis@gnu.org>
10640
722d18c2
MK
10641 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
10642 instead of amd64_fill_fxsave.
10643 * amd64bsd-nat.c (store_inferior_registers): Likewise.
10644 * amd64fbsd-nat.c (fill_fpregset): Likewise.
10645
cbeae229
MK
10646 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
10647 Reorganize code a bit.
10648
b4206d25
OF
106492004-03-04 Orjan Friberg <orjanf@axis.com>
10650
10651 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
8718a420
RM
10652 when the frame pointer is pushed. Don't set the frame pointer's
10653 address on the stack unless it's actually located there.
b4206d25
OF
10654 Set the SRP's address on the stack correctly when the PC is still in
10655 the prologue.
10656 (cris_return_value): New function.
10657 (cris_gdbarch_init): Clear deprecated store_return_value,
10658 extract_return_value.
10659
49b0b195
JB
106602004-03-02 Jim Blandy <jimb@redhat.com>
10661
10662 * stabsread.c (reg_value_complaint): The maximum register number
10663 is one less than the number of registers.
10664
e9ff708b
AC
106652004-03-02 Andrew Cagney <cagney@redhat.com>
10666
10667 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
10668 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
10669 trailing comma and redundant assignment of I386_ST0_REGNUM.
10670 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
10671 32-bit segment registers.
10672
d4715e41
AC
106732004-03-01 Andrew Cagney <cagney@redhat.com>
10674
10675 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
10676 use frame_relative_level and get_next_frame.
10677
3ce2bf18
AC
106782004-02-29 Andrew Cagney <cagney@redhat.com>
10679
10680 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
10681 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
10682 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
10683 Delete macro.
10684
2da6aac3
DJ
106852004-02-29 Daniel Jacobowitz <drow@mvista.com>
10686
10687 * inflow.c (terminal_inferior): Don't give up the terminal if we
10688 previously couldn't get the inferior's terminal state.
10689
6ba34a8d
DJ
106902004-02-29 Daniel Jacobowitz <drow@mvista.com>
10691
10692 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
10693 PC_REGNUM.
10694
faae5abe
AC
106952004-02-28 Andrew Cagney <cagney@redhat.com>
10696
10697 * NEWS: Refer to GDB 6.1.
10698 * README: Refer to GDB 6.1.
10699 * PROBLEMS: Refer to GDB 6.1.
10700
2227a3c5
DJ
107012004-02-28 Daniel Jacobowitz <drow@mvista.com>
10702
10703 * thread-db.c (disable_thread_signals): Remove unused function.
10704
80571bff
MK
107052004-02-28 Mark Kettenis <kettenis@gnu.org>
10706
041bd74b
MK
10707 * amd64-nat.c: Include "gdb_string.h".
10708 (amd64_collect_native_gregset): Zero-extend the 32-bit
10709 general-purpose registers and %eip.
10710
3c017e40
MK
10711 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
10712 * amd64-tdep.c (amd64_collect_fxsave): New function.
10713 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
10714
80571bff
MK
10715 * i387-tdep.h: Update copyright year.
10716 (i387_collect_fxsave): New prototype.
10717 * i387-tdep.c: Update copyright year.
10718 (i387_collect_fxsave): New function containing most of the code
10719 from i387_fill_fxsave.
10720 (i387_fill_fxsave): Call i387_collect_fxsave.
10721
50d71875
AC
107222004-02-28 Andrew Cagney <cagney@redhat.com>
10723
10724 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
10725 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
10726
4a28816e
MK
107272004-02-28 Mark Kettenis <kettenis@gnu.org>
10728
10729 * amd64-tdep.c (amd64_frame_cache): Fix comment.
10730
dbda9972
AC
107312004-02-28 Andrew Cagney <cagney@redhat.com>
10732
10733 * utils.c: Use "", instead of <>, to include readline.
10734 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
10735 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
10736 * source.c, solib.c, exec.c, event-top.c: Ditto.
10737 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
10738 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
10739 * Makefile.in: Update all dependencies.
10740 (readline_tilde_h, readline_history_h): Define.
10741 (readline_headers): Delete.
10742
83277a99
MK
107432004-02-28 Mark Kettenis <kettenis@gnu.org>
10744
91ae4303
MK
10745 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
10746 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
10747 "config/i386/tm-lx64.h".
10748
83277a99
MK
10749 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
10750 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
10751 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
10752
6e1d7d6c
AC
107532004-02-28 Andrew Cagney <cagney@redhat.com>
10754
ecc9ac84
AC
10755 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
10756
6e1d7d6c
AC
10757 * breakpoint.c (_initialize_breakpoint): Use
10758 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
10759 Add help to show command.
10760
9671aeef
MK
107612004-02-28 Mark Kettenis <kettenis@gnu.org>
10762
7fa2737c
MK
10763 * i386-nat.c: Reformat to be closer to coding standards.
10764 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
10765 `retval'. Make variables `align' and `size' local to while-loop.
10766 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
10767 (_initialize_i386_nat): New prototype.
10768
9671aeef
MK
10769 * tui/tui.c: Include <readline/readline.h> instead of
10770 "readline/readline.h". Include it after <term.h> and
10771 "gdb_curses.h".
10772
fca7aa43
AC
107732004-02-27 Andrew Cagney <cagney@redhat.com>
10774
412275d5
AC
10775 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
10776 the new frame unwind code.
10777 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
10778 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
10779 PCOQ_HEAD_REGNUM.
10780
fca7aa43
AC
10781 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
10782 "return_value" and "push_dummy_call".
10783 (hppa32_use_struct_convention): Delete unused function.
10784 (hppa32_store_return_value): Delete unused function.
10785 (hppa32_extract_return_value): Delete unused function.
10786 (hppa32_stack_align): Delete function.
10787
e6a8a7d2
EZ
107882004-02-27 Eli Zaretskii <eliz@elta.co.il>
10789
10790 * coffread.c (enter_linenos): Don't let rawptr reference memory
10791 outside linetab[]'s limits.
10792
1797a8f6
AC
107932004-02-27 Andrew Cagney <cagney@redhat.com>
10794
10795 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
10796 inferior stack space - the stack needs to grow upwards.
10797 (hppa32_frame_align): New function.
10798 (hppa64_frame_align): Replace hppa_frame_align.
10799 (hppa_gdbarch_init): Update.
10800
2e4b5889
OF
108012004-02-26 Orjan Friberg <orjanf@axis.com>
10802
10803 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
10804 (dwarf2-frame.h): Include.
10805 (enum cris_regnums): New enum CRIS_FP_REGNUM.
10806 Remove static variables related to ABI setting.
10807 (struct gdbarch_tdep): Remove cris_abi member.
10808 (struct frame_extra_info): Remove.
10809 (cris_unwind_cache, stack_item): New structs.
10810 (cris_frame_unwind, cris_frame_base): New variables.
10811 (push_stack_item, pop_stack_item)
10812 (cris_frame_unwind_cache, cris_frame_this_id)
10813 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
10814 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
10815 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
10816 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
10817 (cris_reg_struct_has_addr): New functions.
10818 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
8718a420 10819 (cris_frame_saved_pc, cris_saved_pc_after_call,
2e4b5889
OF
10820 (cris_store_struct_return, cris_frameless_function_invocation)
10821 (cris_pop_frame, cris_skip_prologue_main)
10822 (cris_abi_original_store_return_value)
10823 (cris_abi_v2_store_return_value)
10824 (cris_abi_original_extract_return_value)
10825 (cris_abi_v2_extract_return_value)
10826 (cris_abi_original_reg_struct_has_addr)
10827 (cris_abi_v2_reg_struct_has_addr)
10828 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
10829 (cris_push_return_address, cris_abi_update): Remove.
10830 (_initialize_cris_tdep): Remove ABI command.
10831 (cris_dump_tdep): Ditto.
8718a420 10832 (cris_gdbarch_init): Remove ABI command.
2e4b5889
OF
10833 Set store_return_value, extract_return_value, push_dummy_code,
10834 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
10835 frame_unwind_append_sniffer, frame_base_set_default.
10836 Clear deprecated init_frame_pc, push_arguments, store_return_value,
10837 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
10838 sizeof_call_dummy_words, get_saved_register, push_return_address,
8718a420 10839 pop_frame, store_struct_return, frame_init_saved_regs,
2e4b5889
OF
10840 init_extra_frame_info, frameless_function_invocation, frame_chain,
10841 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
10842 dummy_write_sp.
8718a420 10843
6b9acc27
JJ
108442004-02-26 Jeff Johnston <jjohnstn@redhat.com>
10845
10846 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
10847 * valprint.c (print_hex_chars): Change from static to external.
10848 (print_char_chars): New function.
10849 * printcmd.c (print_scalar_formatted): For integer and enum types
10850 that are longer than LONGEST, perform processing via appropriate
10851 print_*_chars routines.
10852
a431654a
AC
108532004-02-26 Andrew Cagney <cagney@redhat.com>
10854
10855 * Makefile.in: Update dependencies.
10856 Changes from Ulrich Weigand,
10857 * s390-tdep.c: Include "dwarf2-frame.h".
10858 (s390_dwarf2_frame_init_reg): New function.
10859 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
10860 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
10861
fa8d40ab
JJ
108622004-02-26 Jeff Johnston <jjohnstn@redhat.com>
10863
10864 * breakpoint.c (pending_break_support): New setting variable.
10865 (break_command_1): Account for pending_break_support setting
10866 when creating pending breakpoints.
10867 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
10868 (_initialize_breakpoint): Add "set breakpoint pending" and
10869 "show breakpoint pending" commands.
10870
0dcd613f
AC
108712004-02-26 Andrew Cagney <cagney@redhat.com>
10872
10873 Fix PR i18n/1570.
10874 * charset.c (backslashable, backslashed, represented): Remove 'e'
10875 from list of escaped characters, not part of ISO-C.
10876
479272a3
JB
108772004-02-25 J. Brobecker <brobecker@gnat.com>
10878
10879 From Peter Schauer <schauer@pdf.de>:
10880 * tui/tui.c: Move system header includes after local includes.
10881 Fixes a build failure on solaris systems.
10882
7613d933
JB
108832004-02-25 J. Brobecker <brobecker@gnat.com>
10884
10885 * configure.in: Refine the previous change.
10886 * configure: Regenerate.
10887
9c1488cb
MK
108882004-02-25 Mark Kettenis <kettenis@gnu.org>
10889
10890 * amd64-tdep.h: Renamed from x86-64-tdep.h.
10891 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
10892 "amd64-tdep.h" instead of "x86-64-tdep.h".
10893 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
10894 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
10895 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
10896 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
10897 and "x86-64-tdep.c".
10898 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
10899 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
10900 and "x86-64-tdep.c".
10901 * amd64bsd-nat.c: Update copyright year.
10902 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
10903 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
10904 "x86-64-tdep.h".
10905 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
10906 "x86-64-tdep.h".
10907 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
10908 "x86-64-tdep.h".
10909 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
10910 "x86-64-tdep.h".
10911 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
10912 "x86-64-tdep.h".
10913 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
10914 "x86-64-tdep.h".
8718a420 10915 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
9c1488cb
MK
10916 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
10917 * Makefile.in (amd64_linux_tdep_h): Renamed from
10918 x86_64_linux_tdep_h.
10919 (amd64_tdep_h): Renamed from x86_64_tdep_h.
10920 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
10921 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
10922 (amd64obsd-tdep.o): Update dependencies.
10923 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
10924 dependencies.
10925 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
10926 dependencies.
10927 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
10928 amd64-linux-nat.c amd64-linux-tdep.c.
10929 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
10930 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
10931 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
10932 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
10933 amd64-tdep.o and amd64-linux-tdep.o.
10934 (TM_FILE): Set to tm-linux64.h.
10935 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
10936 (NAT_FILE): Set to nm-linux64.h.
10937 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
10938 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10939 amd64-tdep.o.
10940 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10941 amd64-tdep.o.
10942 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10943 amd64-tdep.o.
10944
4b8dad4a
RM
109452004-02-25 Roland McGrath <roland@redhat.com>
10946
10947 * remote.c (remote_protocol_qPart_auxv): New variable.
10948 (init_all_packet_configs): Initialize it.
10949 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
10950 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
10951 (show_remote_cmd): Call it.
10952 (_initialize_remote): Initialize commands.
10953 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
10954 service TARGET_OBJECT_AUXV requests.
10955
66745969
JB
109562004-02-25 J. Brobecker <brobecker@gnat.com>
10957
10958 * configure.in: Make sure that the wborder function is available.
10959 Otherwise, search for it in the cur_colr library.
10960 * configure: Regenerate.
10961
79508e1e
AC
109622004-02-25 Andrew Cagney <cagney@redhat.com>
10963
10964 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
10965
571ee600
MK
109662004-02-25 Mark Kettenis <kettenis@gnu.org>
10967
10968 * config/i386/tm-x86-64linux.h: Tweak comments.
10969
2b1b322f 109702004-02-25 Richard Sandiford <rsandifo@redhat.com>
ad74788f
RS
10971
10972 * MAINTAINERS: Add self to write-after-approval list.
10973
4d2acc65
AC
109742004-02-25 Andrew Cagney <cagney@redhat.com>
10975
4b8dad4a 10976 PR cli/1566. Problem found, and fix suggested by David Allan.
4d2acc65
AC
10977 * cli/cli-script.c (execute_control_command): Unconditionally
10978 install a cleanup. Default "ret" to "invalid_control". Use
10979 "break" instead of "return" to escape from the switch.
10980
4cfcaf21
JB
109812004-02-24 J. Brobecker <brobecker@gnat.com>
10982
10983 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
10984 with the lines macro defined in term.h on AiX.
10985 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
10986 a collision with the label_width macro defined in term.h on AiX.
10987
54a5c8d8
KB
109882004-02-23 David Mosberger <davidm@hpl.hp.com>
10989
10990 Committed by Kevin Buettner <kevinb@redhat.com>.
10991
10992 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
10993 * ia64-tdep.c (ia64_write_pc): Make it a global function.
10994 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
10995 instead of ia64_write_pc().
10996 * ia64-linux-tdep.c (regcache.h): Include.
10997 (ia64_linux_write_pc): New function.
4b8dad4a 10998
8a1dac83
RM
109992004-02-23 Roland McGrath <roland@redhat.com>
11000
11001 * auxv.c (info_auxv_command): Fix typos in error messages.
11002
90f90721
MK
110032004-02-23 Mark Kettenis <kettenis@gnu.org>
11004
8a1dac83 11005 * x86-64-tdep.h: Tweak comment.
90f90721
MK
11006 (enum amd64_regnum): New.
11007 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
11008 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
11009 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
11010 (X86_64_XMM1_REGNUM): Removed.
11011 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
11012 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
11013 prototypes for renamed functions.
11014 * x86-64-tdep.c: Fix typo.
11015 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
11016 register numbers.
11017 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
11018 Use constants from `enum amd64_regnum' for register numbers.
11019 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
11020 (amd64_analyze_prologue, amd64_frame_cache,
11021 amd64_sigtramp_frame_cache): Use constants from `enum
11022 amd64_regnum' for register numbers.
11023 (amd64_supply_fpregset): Adjust for renamed functions.
11024 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
11025 `enum amd64_regnum' for register numbers.
11026 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
11027 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
11028 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
11029 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
11030 (amd64_linux_fill_gregset): Adjust for renamed macros.
11031 (fetch_core_registers): Adjust for renamed functions.
11032 (amd64_linux_init_abi): Adjust for renamed functions.
11033 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
11034 renamed functions.
11035 * amd64-nat.c: Adjust for renamed macros.
11036 * amd64bsd-nat.c (fetch_inferior_registers)
11037 (store_inferior_registers): Use constants from `enum amd64_regnum'
11038 for register numbers. Adjust for renamed variables.
11039 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
11040 renamed variables.
11041 (_initialize_amd64fbsd_nat): Use constants from `enum
11042 amd64_regnum' for register numbers.
11043 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
11044 `enum amd64_regnum' for register numbers.
11045 (amd64fbsd_init_abi): Adjust for renamed functions.
11046 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
11047 `enum amd64_regnum' for register numbers.
11048 (amd64nbsd_init_abi): Adjust for renamed functions.
11049 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
11050 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
11051 `enum amd64_regnum' for register numbers.
11052 (amd64obsd_init_abi): Adjust for renamed functions.
11053 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
11054
d5479188
JJ
110552004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11056
11057 * breakpoint.c (print_one_breakpoint): Do not output spaces
11058 after printing <PENDING> for a pending breakpoint.
11059
81cb7cc9
JJ
110602004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11061
11062 * printcmd.c (print_scalar_formatted): Initialize val_long
11063 to remove compiler warning message.
11064
cbdeadca
JJ
110652004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11066
11067 * defs.h (nquery, yquery): New prototypes.
11068 * breakpoint.c (break_command_1): Use new nquery interface.
11069 * utils.c (defaulted_query, nquery, yquery): New functions.
11070
da6bab63
AC
110712004-02-23 Andrew Cagney <cagney@redhat.com>
11072
2f690297
AC
11073 * hppa-tdep.c (hppa_frame_align): New function.
11074 (hppa32_push_dummy_call): New function.
11075 (hppa64_push_dummy_call): New function.
11076 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
11077 disabled.
8a1dac83 11078
da6bab63
AC
11079 * infcall.c (legacy_push_dummy_code): Don't call deprecated
11080 FIX_CALL_DUMMY when push_dummy_call is available.
11081 (call_function_by_hand, push_dummy_code): Ditto.
11082
abf9b42d
AC
110832004-02-22 Andrew Cagney <cagney@redhat.com>
11084
11085 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
11086 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
11087 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
11088 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
11089 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
11090 call_dummy_location to ON_STACK.
11091
10fc94a4
MK
110922004-02-22 Mark Kettenis <kettenis@gnu.org>
11093
51433e4b
MK
11094 * x86-64-linux-tdep.c: Tweak comment.
11095 (amd64_linux_supply_gregset): Renamed from
11096 x86_64_linux_supply_gresget.
11097 (amd64_linux_fill_gregset): Renamed from
11098 x86_64_linux_fill_gregset.
11099 (fetch_core_registers): Adjust for renamed functions.
11100 (amd64_core_fns): Renamed from x86_64_core_fns.
11101 (amd64_linux_sigtramp_start): Renamed from
11102 x86_64_linux_sigtramp_start.
11103 (amd64_linux_pc_in_sigtramp): Renamed from
11104 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
11105 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
11106 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
11107 (amd64_linux_sigcontext_addr): Renamed from
11108 x86_64_linux_sigcontext_addr.
11109 (amd64_linux_sc_reg_offset): Renamed from
11110 x86_64_linux_sc_reg_offset.
11111 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
11112 Adjust for renamed functions and variables.
11113 (_initialize_amd64_linux_tdep): Renamed from
11114 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
11115 variables.
11116 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
11117 Adjust for renamed functions.
11118
430eaf2e
MK
11119 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
11120 from x86_64_linux_gregset64_reg_offset.
11121 (amd64_linux_gregset32_reg_offset): Rename from
11122 x86_64_linux_gregset64_reg_offset.
11123 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
11124 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
11125 (amd64_linux_dr_set_control): Renamed from
11126 x86_64_linux_dr_set_control. Adjust for renamed functions.
11127 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
11128 Adjust for renamed functions.
11129 (amd64_linux_dr_reset_addr): Renamed from
11130 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
11131 (amd64_linux_dr_get_status): Renamed from
11132 x86_64_linux_dr_get_status. Adjust for renamed functions.
11133 (_initialize_amd64_linux_nat): Renamed from
11134 _initialize_x86_64_linux_nat. Adjust for renamed variables and
11135 functions.
11136 * config/i386/nm-x86-64linux.h: Update copyright year.
11137 Adjust for renamed functions.
11138
10fc94a4
MK
11139 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
11140 amd64fbsd_sigtramp_start.
11141 (amd64fbsd_sigtramp_end_addr): Renamed from
11142 amd64fbsd_sigtramp_end.
11143 (amd64fbsd_init_abi): Adjust for renamed variables.
11144 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
11145 variables.
11146 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
11147 amd64fbsd_sigtramp_start.
11148 (amd64fbsd_sigtramp_end_addr): Renamed from
11149 amd64fbsd_sigtramp_end.
11150
343af405
AC
111512004-02-22 Andrew Cagney <cagney@redhat.com>
11152
537987fc
AC
11153 * hppa-tdep.c (hppa32_return_value): New function.
11154 (hppa64_return_value): New function.
11155 (hppa_gdbarch_init): Set return_value; keep disabled.
11156
fad850b2
AC
11157 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
11158 struct-return and inferior function call methods.
11159
26d08f08
AC
11160 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
11161 "frame-base.h".
11162 (struct hppa_frame_cache): Define.
11163 (hppa_frame_cache, hppa_frame_this_id): New functions.
11164 (hppa_frame_prev_register): New function.
11165 (hppa_frame_unwind, hppa_frame_base): New variables.
11166 (hppa_frame_unwind_sniffer): New function.
11167 (hppa_frame_base_address, hppa_unwind_pc): New function.
11168 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
11169 sniffer, and frame base sniffer; keep disabled.
11170 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
11171 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
11172
e7d7bd65
AC
11173 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
11174 to predicates for "seriously old code".
11175
e963316f
AC
11176 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
11177 runtime if(0).
11178
56132691
AC
11179 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
11180 unsigned.
11181 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
e963316f 11182
343af405
AC
11183 * config/pa/tm-hppa.h: Update copyright.
11184 (DEPRECATED_INIT_FRAME_PC): Delete macro.
11185 (deprecated_init_frame_pc_default): Delete declaration.
11186 (hppa_frame_init_saved_regs): Delete declaration.
11187 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
11188 * hppa-tdep.c: Include "arch-utils.h".
11189 (hppa_gdbarch_init): Set deprecated init_frame_pc
11190 and deprecated frame_init_saved_regs.
11191 (hppa_frame_init_saved_regs): Make static.
11192
f5859b4d
MK
111932004-02-22 Mark Kettenis <kettenis@gnu.org>
11194
86f6f8e7 11195 Remove old 386BSD support.
cf7c5c23 11196 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
86f6f8e7
MK
11197 * configure.host: Remove i[34567]86-*-bsd*.
11198 * configure.tgt: Remove i[34567]86-*-bsd*.
11199 * i386b-nat.c: Removed.
11200 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
cf7c5c23
MK
11201 (i386b-nat.o): Remove dependencies.
11202
86f6f8e7
MK
11203 * config/i386/i386bsd.mh: Removed.
11204 * config/i386/i386bsd.mt: Removed.
11205 * config/i386/nm-i386bsd.h: Removed.
11206 * config/i386/tm-i386bsd.h: Removed.
11207 * config/i386/xm-i386bsd.h: Removed.
11208
971218cd
MK
11209 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
11210
7e654c37
MK
11211 * amd64fbsd-tdep.c: Include "solib-svr4.h".
11212 (amd64fbsd_init_abi): Set link map offsets.
11213 * amd64nbsd-tdep.c: Include "slib-svr4.h".
11214 (amd64nbsd_init_abi): Set link map offsets.
11215 * amd64obsd-tdep.c: Include "solib-svr4.h".
11216 (amd64obsd_init_abi): Set link map offsets.
11217 * i386fbsd-tdep.c: Include "solib-svr4.h".
11218 (i386fbsd_init_abi): Set link map offsets.
11219 * i386nbsd-tdep.c: Include "solib-svr4.h".
11220 (i386nbsdelf_init_abi): Set link map offsets.
11221 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
11222 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
11223 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
11224 solib-legacy.o and core-aout.o. Reformat.
11225 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
11226 solib-svr4.o, solib-legacy.o. Reformat.
11227 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
11228 * config/i386/nbsdelf.mh: Reformat.
11229 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
11230 solib-svr4.o, solib-legacy.o and corelow.o.
11231 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
11232 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
11233 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
11234 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11235 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11236 (TM_FILE): Set to tm-fbsd.h.
11237 * config/i386/nbsd.mt (TDEPFILES): Reformat.
11238 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
11239 solib-svr4.o.
11240 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
11241 solib-svr4.o.
11242 (TM_FILE): Set to nm-nbsd.h.
11243 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
11244 Simplify shared library support. Don't include "elf/common.h".
11245 (SVR4_SHARED_LIBS): Don't define.
11246 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
11247 "solib.h".
11248 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
11249 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
11250 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
11251 Don't include "i386/tm-i386.h". Include "solib.h".
11252 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
11253 Don't include "i386/tm-i386.h".
11254 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
11255 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
11256 Include "i386/xm-i386.h".
11257 (HOST_LONG_DOUBLE_FORMAT): Remove.
11258
5d93ae8c
MK
11259 Fix OpenBSD/i386 sigtramp recognition.
11260 * i386-tdep.h: Update copyright year.
11261 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
11262 (i386bsd_sigtramp_end): New prototypes.
11263 (i386fbsd_sigtramp_start_addr): Renamed from
11264 i386fbsd_sigtramp_start.
11265 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11266 (i386obsd_sigtramp_start_addr): Renamed from
11267 i386obsd_sigtramp_start.
11268 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11269 * i386bsd-tdep.c: Update copyright year.
11270 (i386bsd_pc_in_sigtramp): Make public.
11271 * i386fbsd-nat.c: Update copyright year.
11272 (_initialize_i386fbsd_nat): Adjust for renamed variables.
11273 * i386fbsd-tdep.c: Update copyright year.
11274 (i386fbsd_sigtramp_start_addr): Renamed from
11275 i386fbsd_sigtramp_start.
11276 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11277 (i386fbsdaout_init_abi): Adjust for renamed variables.
11278 * i386obsd-nat.c: Update copyright year.
11279 (_initialize_i386obsd_nat): Adjust for renamed variables.
11280 * i386obsd-tdep.c: Include "target.h".
11281 (i386obsd_page_size): New variable.
11282 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
11283 (i386obsd_sigtramp_end): New functions.
11284 (i386obsd_sigtramp_start_addr): Renamed from
11285 i386obsd_sigtramp_start.
11286 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11287 (i386obsd_init_abi): Adjust for renamed variables. Set
11288 pc_in_sigtramp, sigtramp_start and sigtramp_end.
11289 * Makefile.in (i386obsd-tdep.o): Update dependencies.
11290
84d04465
MK
11291 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
11292 trampoline change in OpenBSD kernel.
11293
b053aceb
MK
11294 * amd64-nat.c: Update copyright year.
11295 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
11296 architecture from REGCACHE.
11297
f5859b4d
MK
11298 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
11299 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
11300
e4bbbda8
MK
113012004-02-21 Mark Kettenis <kettenis@gnu.org>
11302
ba361932
MK
11303 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
11304 i[34567]86-*-openbsd3.[0-3].
11305 * config/i386/obsdaout.mh: New file.
11306
d3e48264
MK
11307 * config/i386/obsd.mh (MH_FLAGS): Remove.
11308
60a6eeb6
MK
11309 Fix PR build/1549.
11310 * i386obsd-tdep.c: Update copyright years. Include
11311 "solib-svr4.h".
11312 (i386obsd_init_abi): Don't set regset_from_core_section here.
11313 (i386obsd_aout_init_abi): New function. Set
11314 regset_from_core_section here.
11315 (i386obsd_elf_init_abi): New function.
11316 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
11317 * Makefile.in (i386obsd-tdep.o): Update dependecies.
11318 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
11319 (TM_FILE): Set to tm-nbsd.h.
11320
11321 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
11322 solib-sunos.o.
11323
e4bbbda8
MK
11324 * solib-svr4.h: Update copyright year.
11325 (svr4_ilp32_fetch_link_map_offsets)
11326 (svr4_lp64_fetch_link_map_offsets): New prototype.
11327 * solib-svr4.c: Update copyright year.
11328 (svr4_ilp32_fetch_link_map_offsets)
11329 (svr4_lp64_fetch_link_map_offsets): New function.
11330
f6fe98ef
DJ
113312004-02-20 Daniel Jacobowitz <drow@mvista.com>
11332
11333 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
11334 to the partial symbol table.
11335
589ca796
JB
113362004-02-20 J. brobecker <brobecker@gnat.com>
11337
11338 * PROBLEMS: Add description of problem documented under gdb/1560.
11339
2031c21a
MK
113402004-02-20 Mark Kettenis <kettenis@gnu.org>
11341
30b344b1
MK
11342 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
11343 comments.
11344 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
11345 functions.
11346 (amd64obsd_init_abi): Reorder initializations. Use
11347 amd64obsd_r_reg_offset to initialize the general-purpose register
11348 set details. Set regset_from_core_section.
11349 (_initialize_amd64obsd_tdep): Rename from
11350 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
11351 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
11352 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
11353
2031c21a
MK
11354 * NEWS (New native configurations): Mention OpenBSD/alpha.
11355 * configure.tgt: Add alpha*-*-openbsd*.
11356 * configure.host: Add alpha*-*-openbsd*.
11357 * alphanbsd-tdep.c: Update copyright year.
11358 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
11359
42471775
AC
113602004-02-20 Andrew Cagney <cagney@redhat.com>
11361
11362 Fix PR tdep/1372.
11363 * configure.tgt: Delete target "none-*-*".
11364 * configure.host: Delete host "none-*-*".
11365 * config/none/none.mh: Delete file.
11366 * config/none/none.mt: Delete file.
11367 * config/none/xm-none.h: Delete file.
11368 * config/none/tm-none.h: Delete file.
11369 * config/none/nm-none.h: Delete file.
11370
960ccd7d
FF
113712004-02-19 Fred Fish <fnf@redhat.com>
11372
11373 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
11374 cache->uses_fp prior to setting it.
11375
5f883edd
FF
113762004-02-19 Fred Fish <fnf@redhat.com>
11377
11378 Fix for PR breakpoint/1558.
11379 * sh-tdep.c (IS_JSR): New macro.
11380 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
11381
f98c22d5
JB
113822004-02-19 Jim Blandy <jimb@redhat.com>
11383
11384 * findvar.c (value_from_register): Doc fix.
11385
95051d27
JJ
113862004-02-19 Jeff Johnston <jjohnstn@redhat.com>
11387
11388 * printcmd.c (print_scalar_formatted): Do not check for sizeof
11389 type being greater than sizeof of host's LONGEST. Always use
11390 unpack_long() unless format 'f' chosen.
11391
ccefbec3
EZ
113922004-02-19 Joel Brobecker <brobecker@gnat.com>
11393
11394 Committed by Elena Zannoni <ezannoni@redhat.com>
2ede629f 11395
ccefbec3
EZ
11396 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
11397 contains a symbol wich is the best, non-exact match for the given
11398 pc. Update comments.
11399
114002004-02-19 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 11401
2ede629f
EZ
11402 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
11403 macro, which was part of the now removed Mach 3 port.
11404 * utils.c (request_quit): Ditto.
11405
567ee972
MK
114062004-02-18 Mark Kettenis <kettenis@gnu.org>
11407
11408 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
11409 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
11410
50cca7bb
MK
114112004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11412
11413 Committed by Mark Kettenis <kettenis@gnu.org>.
11414
11415 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
11416 Define.
11417
226361c4
AC
114182004-02-18 Andrew Cagney <cagney@redhat.com>
11419
11420 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
11421 CONFIG_INSTALL and CONFIG_UNINSTALL.
11422 * configure: Re-generate.
11423 * interps.h (INTERP_TUI): Define.
11424 * Makefile.in: Update dependencies.
11425 (TUI): New macro.
11426 (tui-main.o): Specify dependencies.
11427 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
11428 * tui/tui-main.c: New file.
11429
49cfa46f
MK
114302004-02-18 Mark Kettenis <kettenis@gnu.org>
11431
e2879ccb
MK
11432 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
11433 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
11434 dependencies.
11435 * configure.host: Add x86_64-*-openbsd*.
11436 * configure.tgt: Add x86_64-*-openbsd*.
11437 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
11438
c43f4bec
MK
11439 * tui/tui.c: Don't include <malloc.h>.
11440
09ae75b6
MK
11441 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
11442 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
11443 amd64nbsd-tdep.c.
11444
49cfa46f 11445 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
8a1dac83 11446 static. Remove extraneous whitespace.
49cfa46f
MK
11447 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
11448 static.
11449
05957fdb
JB
114502004-02-17 Jim Blandy <jimb@redhat.com>
11451
11452 * findvar.c (value_from_register): Doc fix.
11453
d0f54f9d
JB
114542004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11455
11456 Committed by Jim Blandy <jimb@redhat.com>.
e1457d83 11457
8a1dac83 11458 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
c253954e
JB
11459 CORE_ADDR as type for selectors. Correct types for GNU run time
11460 message lookup function to use double indirection.
11461 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
11462 * objc-lang.h (lookup_child_selector): Adapt prototype.
11463
9cbd5950
JB
11464 * s390-nat.c (SUBOFF): New macro.
11465 (supply_gregset, fill_gregset): Use it to handle debugging
11466 of 32-bit exectuables running under a 64-bit kernel.
11467 * s390-tdep.c: Include "solib-svr4.h".
11468 (s390_svr4_fetch_link_map_offset): New function.
11469 (s390x_svr_fetch_link_map_offset): Likewise.
11470 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
11471 * Makefile.in (s390-tdep.o): Update dependencies.
11472
a8c99f38
JB
11473 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
11474 "frame-unwind.h".
11475 (s390_readinstruction): Reformat. Use read_memory_nobpt.
11476 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
11477 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
11478 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
11479 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
11480 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
8a1dac83 11481 S390_SIGNAL_FRAMESIZE,
a8c99f38
JB
11482 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
11483 (struct frame_extra_info): Remove.
11484 (s390_memset_extra_info): Remove.
f73b1eff
JB
11485 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
11486 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
11487 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
a8c99f38
JB
11488 (is_rse): Renamed to ...
11489 (is_rsy): ... this. Support long displacements.
11490 (is_rxe): Renamed to ...
11491 (is_rxy): ... this. Support long displacements.
11492 (compute_x_addr): Support long displacements.
11493 (struct s390_prologue_data): New data type.
11494 (s390_on_stack): Change API to use struct s390_prologue_data.
11495 (s390_store): Reimplement.
11496 (s390_load): New function.
11497 (s390_get_signal_frame_info): Remove.
11498 (s390_get_frame_info): Remove, replace by ...
11499 (s390_analyze_prolog): ... this new function.
11500 (s390_check_function_end): Remove.
11501 (s390_function_start): Remove.
11502 (s390_frameless_function_invokation): Remove.
11503 (s390_is_sigreturn): Remove.
11504 (s390_init_frame_pc_first): Remove.
11505 (s390_init_frame_extra_info): Remove.
11506 (s390_frame_init_saved_regs): Remove.
11507 (s390_frame_saved_pc_nofix): Remove.
11508 (s390_frame_saved_pc): Remove.
11509 (s390_frame_chain): Remove.
11510 (s390_fp_regnum, s390_read_fp): Remove.
11511 (s390_pop_frame_regular, s390_pop_frame): Remove.
11512 (s390_saved_pc_after_call): Remove.
11513 (s390_skip_prologue): Reimplement.
11514 (s390_in_function_epilogue_p): Support long displacements.
11515 (struct s390_unwind_cache): New data structure.
11516 (s390_frame_unwind_cache): New function.
11517 (s390_prologue_frame_unwind_cache): Likewise.
11518 (s390_backchain_frame_unwind_cache): Likewise.
11519 (s390_frame_this_id, s390_frame_prev_register): Likewise.
11520 (s390_frame_unwind): Define.
11521 (s390_frame_sniffer): New function.
11522 (struct s390_pltstub_unwind_cache): New data structure.
11523 (s390_pltstub_frame_unwind_cache): New function.
11524 (s390_pltstub_frame_this_id): Likewise.
11525 (s390_pltstub_frame_prev_register): Likewise.
11526 (s390_pltstub_frame_unwind): Define.
11527 (s390_pltstub_frame_sniffer): New function.
11528 (struct s390_sigtramp_unwind_cache): New data structure.
11529 (s390_sigtramp_frame_unwind_cache): New function.
11530 (s390_sigtramp_frame_this_id): Likewise.
11531 (s390_sigtramp_frame_prev_register): Likewise.
11532 (s390_sigtramp_frame_unwind): Define.
11533 (s390_sigtramp_frame_sniffer): New function.
11534 (s390_frame_base_address, s390_local_base_address): New functions.
11535 (s390_frame_base): Define.
11536 (s390_unwind_pc, s390_unwind_sp): New function.
11537 (s390_push_dummy_call): Use new frame base location.
11538 (s390_unwind_dummy_id): Likewise.
11539 (s390_gdbarch_init): Remove calls to:
11540 set_gdbarch_frameless_function_invocation,
11541 set_gdbarch_deprecated_init_frame_pc,
11542 set_gdbarch_deprecated_frame_chain,
11543 set_gdbarch_deprecated_frame_init_saved_regs,
11544 set_gdbarch_deprecated_pop_frame,
11545 set_gdbarch_deprecated_init_extra_frame_info,
11546 set_gdbarch_deprecated_init_frame_pc_first,
11547 set_gdbarch_deprecated_target_read_fp,
11548 set_gdbarch_deprecated_frame_saved_pc,
11549 set_gdbarch_deprecated_saved_pc_after_call,
11550 set_gdbarch_deprecated_fp_regnum.
11551 Add calls to:
11552 set_gdbarch_in_solib_call_trampoline,
11553 frame_unwind_append_sniffer,
11554 frame_base_set_default,
11555 set_gdbarch_unwind_pc,
11556 set_gdbarch_unwind_sp.
11557 * Makefile.in (s390-tdep.o): Update dependencies.
11558
b0cf273e
JB
11559 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
11560 (S390_STACK_FRAME_OVERHEAD): Remove.
11561 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
11562 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
11563 (s390_promote_integer_argument): Remove.
11564 (s390_cannot_extract_struct_value_address): Remove.
11565 (s390_use_struct_convention, s390_store_struct_return): Remove.
11566 (s390_extract_return_value, s390_store_return_value): Remove.
11567 (s390_return_value_convention, s390_return_value): New functions.
11568 (is_float_singleton): Handle typedefs.
8a1dac83 11569 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
b0cf273e
JB
11570 Remove, replace by ...
11571 (s390_function_arg_pass_by_reference, s390_function_arg_float,
11572 s390_function_arg_integer): ... these new functions.
11573 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
11574 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
11575 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
11576 Fill in tdep->abi.
11577 Remove calls to:
11578 set_gdbarch_deprecated_store_struct_return,
11579 set_gdbarch_deprecated_extract_return_value,
11580 set_gdbarch_deprecated_store_return_value,
11581 set_gdbarch_use_struct_convention,
11582 set_gdbarch_extract_struct_value_address,
11583 set_gdbarch_deprecated_pc_in_call_dummy,
11584 set_gdbarch_deprecated_push_arguments,
11585 set_gdbarch_deprecated_save_dummy_frame_tos,
11586 set_gdbarch_deprecated_push_return_address,
11587 set_gdbarch_deprecated_sizeof_call_dummy_words,
11588 set_gdbarch_deprecated_call_dummy_words,
11589 set_gdbarch_deprecated_dummy_write_sp.
11590 Add calls to:
11591 set_gdbarch_push_dummy_call,
11592 set_gdbarch_unwind_dummy_id,
11593 set_gdbarch_return_value.
8a1dac83 11594
e1457d83
JB
11595 * config/s390/nm-linux.h: Update comments.
11596 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
11597 (STOPPED_BY_WATCHPOINT): Redefine.
11598 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
11599 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
11600 (s390_stopped_by_watchpoint): Likewise.
11601 (watch_area_cnt): Remove.
11602 * s390-nat.c: Update comments.
11603 (watch_area): Remove typedef.
11604 Global replace watch_area by struct watch_area.
11605 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
8a1dac83 11606 (s390_stopped_by_watchpoint): Remove pid argument,
e1457d83
JB
11607 use s390_inferior_tid. Add short-cut for the no watchpoint case.
11608 (s390_fix_watch_points): Remove pid argument,
11609 use s390_inferior_tid. Recompute area spanned by watchpoints.
11610 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
11611 argument. Reimplement.
11612
d0f54f9d
JB
11613 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
11614 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
11615 (FETCH_INFERIOR_REGISTERS): Define.
8a1dac83 11616 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
d0f54f9d
JB
11617 core-regset.o.
11618 * config/s390/s390x.mt: Remove.
11619 * config/s390/tm-s390.h: Remove.
11620 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
11621 (TARGET_ELF64): Remove.
11622 (SKIP_TRAMPOLINE_CODE): Do not undefine.
11623 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
11624 s390*-*-* case; always set gdb_target to s390.
11625 * regformats/reg-s390.dat: Remove control registers.
11626 * regformats/reg-s390x.dat: Likewise.
11627 * s390-tdep.h: New file.
8a1dac83 11628 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
d0f54f9d
JB
11629 Include "inferior.h" and "s390-tdep.h".
11630 Remove private definition of offsetof.
11631 (s390_register_u_addr): Remove.
11632 (regmap_gregset, regmap_fpregset): Define.
11633 (supply_gregset, fill_gregset): Reimplement.
11634 (supply_fpregset, fill_fpregset): Likewise.
11635 (s390_inferior_tid): New function.
11636 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
11637 (fetch_inferior_registers, store_inferior_registers): Likewise.
11638 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
11639 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
11640 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
11641 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
11642 (struct gdbarch_tdep): Define.
11643 (struct s390_register_info): Define.
11644 (s390_register_info): New variable.
11645 (s390_register_name): Reimplement.
11646 (s390_register_type): New function.
11647 (s390_register_raw_size, s390x_register_raw_size): Remove.
11648 (s390_cannot_fetch_register): Remove.
11649 (s390_register_byte): Remove.
11650 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
11651 (s390_dwarf_regmap): New variable.
11652 (s390_dwarf_reg_to_regnum): New function.
11653 (s390_stab_reg_to_regnum): Remove.
11654 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
11655 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
11656 (s390_convert_register_p): Likewise.
11657 (s390_register_to_value, s390_value_to_register): Likewise.
11658 (s390_register_reggroup_p): Likewise.
11659 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
11660 s390_gregset, s390x_gregset, s390_fpregset): New variables.
11661 (s390_supply_regset, s390_regset_from_core_section): New functions.
11662 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
11663 (S390_FPR_SIZE): Likewise.
11664 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
11665 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
11666 (S390_NUM_GPRS): Move here from tm-s390.h.
11667 (S390_NUM_FPRS): Likewise.
11668 (s390_in_function_epilogue_p): New function.
11669 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
11670 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
11671 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
11672 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
11673 Replace S390_FP_REGNUM by S390_SP_REGNUM.
11674 Remove calls to:
11675 set_gdbarch_deprecated_max_register_raw_size,
8a1dac83
RM
11676 set_gdbarch_deprecated_max_register_virtual_size,
11677 set_gdbarch_deprecated_register_byte,
d0f54f9d 11678 set_gdbarch_cannot_fetch_register,
8a1dac83 11679 set_gdbarch_cannot_store_register,
d0f54f9d
JB
11680 set_gdbarch_deprecated_register_size,
11681 set_gdbarch_deprecated_register_raw_size,
11682 set_gdbarch_deprecated_register_virtual_size,
11683 set_gdbarch_deprecated_register_virtual_type,
11684 set_gdbarch_deprecated_register_bytes.
11685 Add calls to:
11686 set_gdbarch_num_pseudo_regs,
11687 set_gdbarch_register_type,
11688 set_gdbarch_convert_register_p,
11689 set_gdbarch_register_to_value,
11690 set_gdbarch_value_to_register,
11691 set_gdbarch_register_reggroup_p,
11692 set_gdbarch_regset_from_core_section,
11693 set_gdbarch_pseudo_register_read,
11694 set_gdbarch_pseudo_register_write,
11695 set_gdbarch_in_function_epilogue_p.
11696 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
11697 (s390_tdep_h): New variable.
11698
8cfe231d
JB
116992004-02-17 Jim Blandy <jimb@redhat.com>
11700
4589a601
JB
11701 * findvar.c (value_from_register): If the type has no length, just
11702 return an acceptable value --- don't report an internal error.
11703
8cfe231d
JB
11704 * stabsread.c (read_type): If we find any type numbers that are
11705 forward references, complain if the references aren't resolved by
11706 the time we're finished reading.
11707 (cleanup_undefined_types): Make error message more appropriate for
11708 a complaint.
11709
5bf0017e
EZ
117102004-02-17 Elena Zannoni <ezannoni@redhat.com>
11711
9d62932d
EZ
11712 * Makefile.in (defs_h): Remove dependency on progress_h.
11713 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
11714 progress.h.
11715 * main.c (captured_main): Delete use of START_PROGRESS and
11716 END_PROGRESS.
11717
117182004-02-17 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 11719
5bf0017e
EZ
11720 * objfiles.c (terminate_minimal_symbol_table): Add back
11721 initialization of MSYMBOL_TYPE.
11722
9fc9f5e2
AC
117232004-02-17 David Mosberger <davidm@hpl.hp.com>
11724
11725 Committed by Andrew Cagney.
11726 * Makefile.in (ia64_tdep_h): New macro.
11727 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
11728 (ia64-tdep.o): Likewise.
11729 * ia64-tdep.h: New file.
11730 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
11731 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
11732 (ia64_aix_sigcontext_register_address): Likewise.
11733 (ia64_linux_getunwind_table): Delete declaration.
11734 * ia64-linux-tdep.c: Likewise.
11735
76cd2bd9
CV
117362004-02-17 Corinna Vinschen <vinschen@redhat.com>
11737
11738 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
11739 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
11740 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
11741
634aa483
AC
117422004-02-17 Andrew Cagney <cagney@redhat.com>
11743
11744 * symtab.c (skip_prologue_using_sal): New function.
11745 * symtab.h (skip_prologue_using_sal): Declare.
11746 * frv-tdep.c: Include "symtab.h".
11747 (skip_prologue_using_sal): Delete function.
11748 * mips-tdep.c (skip_prologue_using_sal): Delete function.
11749 * rs6000-tdep.c (refine_prologue_limit): Mention
11750 skip_prologue_using_sal.
11751 * ia64-tdep.c (refine_prologue_limit): Ditto.
11752 * Makefile.in: Update dependencies.
11753
117542004-02-16 Andrew Cagney <cagney@redhat.com>
19772a2c 11755
39ce7b3f
AC
11756 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
11757 START_INFERIOR_TRAPS_EXPECTED.
11758 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
11759 START_INFERIOR_TRAPS_EXPECTED.
11760 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
11761 Delete macro.
11762 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
11763 macro, moved to "nm-osf.h". Update copyright.
11764 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
11765 update copyright.
11766
19772a2c
AC
11767 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
11768 and function replacing FRAMELESS_FUNCTION_INVOCATION.
11769 * blockframe.c (legacy_frameless_look_for_prologue): Rename
11770 frameless_look_for_prologue.
11771 * frame.h (legacy_frameless_look_for_prologue): Rename
11772 frameless_look_for_prologue.
11773 * gdbarch.h, gdbarch.c: Re-generate.
11774 * sh64-tdep.c (sh64_gdbarch_init): Update.
11775 * sh-tdep.c (sh_gdbarch_init): Update.
11776 * s390-tdep.c (s390_gdbarch_init): Update.
11777 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11778 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11779 * m68k-tdep.c (m68k_gdbarch_init): Update.
11780 (delta68_frame_args_address): Update.
11781 * m32r-tdep.c (m32r_gdbarch_init): Update.
11782 * hppa-tdep.c (hppa_gdbarch_init): Update.
11783 * h8300-tdep.c (h8300_gdbarch_init): Update.
11784 * frv-tdep.c (frv_gdbarch_init): Update.
11785 (frv_frameless_function_invocation): Update.
11786 * cris-tdep.c (cris_gdbarch_init): Update.
11787 (cris_frameless_function_invocation): Update.
11788 * avr-tdep.c (avr_gdbarch_init): Update.
11789 * arm-tdep.c (arm_gdbarch_init): Update.
11790 * stack.c (frame_info): Update, call predicate.
11791 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
11792 * frame.c (legacy_get_prev_frame): Update, call predicate..
11793 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
11794 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
11795 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
11796 invocation.
11797 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11798 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11799 * vax-tdep.c (vax_gdbarch_init): Ditto.
2be8b3c1
AC
11800
11801 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
11802 function.
11803
7dcaac91
DJ
118042004-02-16 Daniel Jacobowitz <drow@mvista.com>
11805
11806 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
11807 initializations.
11808
88289b6e
AC
118092004-02-16 Andrew Cagney <cagney@redhat.com>
11810
11811 * tui/tui-windata.c: Include "gdb_string.h".
11812 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
11813 * tui/tui-layout.c, tui/tui-command.c: Ditto.
11814 * Makefile.in: Update dependencies.
11815
9f976b41
DJ
118162004-02-16 Daniel Jacobowitz <drow@mvista.com>
11817
11818 * Makefile.in (infrun.o): Add $(gdb_assert_h).
11819 * infrun.c: Include "gdb_assert.h".
11820 (singlestep_ptid, saved_singlestep_ptid)
11821 (stepping_past_singlestep_breakpoint): New variables.
11822 (resume): Set singlestep_ptid. Check for singlestep thread
11823 hop.
11824 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
11825 (handle_inferior_event): Handle singlestep thread hop.
11826
c324d747
AC
118272004-02-16 Andrew Cagney <cagney@redhat.com>
11828
f090b9b1
AC
11829 * dwarf2-frame.c (dwarf2_frame_ops): New function.
11830 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
11831 (dwarf2_frame_init_reg): Ditto.
11832
fd33e6cb
AC
11833 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
11834 suggested by Joshua Neuheisel
11835
c324d747
AC
11836 * configure.in: Always check for curses, including pdcurses.
11837 Warn, instead of error, when no curses are found. Enable TUI when
11838 curses is available.
11839 * configure: Re-generate.
11840
b66ba949
CV
118412004-02-16 Corinna Vinschen <vinschen@redhat.com>
11842
11843 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
11844 sh_sh4_register_convert_to_virtual.
11845 (sh_register_convert_to_raw): Rename from
11846 sh_sh4_register_convert_to_raw.
11847 (sh_pseudo_register_read): Accomodate above name change.
11848 (sh_pseudo_register_write): Ditto.
11849
b58cbbf2
CV
118502004-02-16 Corinna Vinschen <vinschen@redhat.com>
11851
11852 * sh-tdep.c (sh_generic_register_name): Remove.
11853 (sh_gdbarch_init): Use sh_sh_register_name in default case.
11854
5929a910
AC
118552004-02-15 Andrew Cagney <cagney@redhat.com>
11856
4566dfcf
AC
11857 * configure.in (build_warnings): Add -Wunused-function.
11858 * configure: Re-generate.
11859
db11ed55
AC
11860 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
11861 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
11862
46ac7a5d
AC
11863 * procfs.c (procfs_init_inferior): Assume that
11864 START_INFERIOR_TRAPS_EXPECTED is defined.
11865 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
11866 * config/ns32k/tm-nbsd.h: Delete file,
11867 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
11868
ba801595
AC
11869 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
11870 * config/vax/tm-vax.h: Delete file.
11871
5929a910
AC
11872 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11873 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11874 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11875 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11876 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
11877 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11878 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
11879
8f22cb90
MK
118802004-02-15 Mark Kettenis <kettenis@gnu.org>
11881
11882 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
11883 * dwarf2-frame.c (dwarf2_frame_data): New variable.
11884 (struct dwarf2_frame_ops): New.
11885 (dwarf2_frame_default_init_reg): New function, based on
11886 dwarf2_frame_init_reg.
11887 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
11888 (dwarf2_frame_init_reg): Call architecture-specific function.
11889 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
11890 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
11891 instead of dwarf2_frame_data.
11892 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
11893 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
11894
8132723e
AC
118952004-02-15 Andrew Cagney <cagney@redhat.com>
11896
046a4708
AC
11897 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
11898 register_gdbarch_swap.
11899 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
11900 * f-lang.c (_initialize_f_language): Update, use
11901 DEPRECATED_REGISTER_GDBARCH_SWAP.
11902 * remote.c (_initialize_remote): Ditto.
11903 * regcache.c (_initialize_regcache): Ditto.
11904 * parse.c (_initialize_parse): Ditto.
11905 * infrun.c (_initialize_infrun): Ditto.
11906 * mi/mi-main.c (_initialize_mi_main): Ditto.
11907 * gdbtypes.c (_initialize_gdbtypes): Ditto.
8a1dac83 11908
549c1eea
AC
11909 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
11910 poking .cacheable directly.
11911 * symfile.c (symfile_bfd_open): Ditto.
11912
0c0b39de
AC
11913 * Makefile.in: Update all dependencies.
11914
8132723e
AC
11915 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
11916 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
11917 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
11918 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
11919 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
0c0b39de 11920
b9d26eb9
AC
119212004-02-14 Andrew Cagney <cagney@redhat.com>
11922
8e1f669a
AC
11923 * arch-utils.c (legacy_convert_register_p): Check
11924 DEPRECATED_REGISTER_CONVERTIBLE_P.
11925 * findvar.c (value_of_register): Ditto.
11926
cd0bfa36
AC
11927 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
11928 * gdbarch.h, gdbarch.c: Re-generate.
11929 * arch-utils.c (deprecated_register_convertible_not): Delete.
11930 * arch-utils.h (deprecated_register_convertible_not): Delete.
11931 * mi/mi-main.c (get_register): Update. Update copyright.
11932 * infcmd.c (default_print_registers_info): Update.
11933
b9d26eb9
AC
11934 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
11935 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
11936 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
8a1dac83 11937 * gdbarch.h, gdbarch.c: Re-generate.
b9d26eb9
AC
11938 * frame.c (deprecated_get_next_frame_hack): Delete function.
11939 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
11940 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
11941 Update.
11942 * infcall.c (call_function_by_hand): Update.
11943
9ab9195f
EZ
119442004-02-14 Elena Zannoni <ezannoni@redhat.com>
11945
11946 * symfile.c (init_entry_point_info, entry_point_address): Move
8a1dac83 11947 from here...
9ab9195f
EZ
11948 * objfiles.c (init_entry_point_info, entry_point_address):..to
11949 here.
11950 * symfile.h (init_entry_point_info, entry_point_address): Remove
11951 prototypes.
11952 * objfiles.h (init_entry_point_info, entry_point_address):Add
8a1dac83 11953 prototypes.
9ab9195f
EZ
11954 * cris-tdep.c: Remove include of symfile.h. Add include of
11955 objfiles.h.
11956 * infcall.c: Ditto.
11957 * mcore-tdep.c: Ditto.
11958 * mn10300-tdep.c: Ditto.
11959 * sh64-tdep.c: Ditto.
11960 * v850-tdep.c: Ditto.
11961 * arm-tdep.c: Remove include of symfile.h.
11962 * blockframe.c: Ditto.
11963 * coffread.c: Ditto.
11964 * dbxread.c: Ditto.
11965 * dwarf2read.c: Ditto.
11966 * dwarfread.c: Ditto.
8a1dac83 11967 * frv-tdep.c: Ditto.
9ab9195f
EZ
11968 * ia64-tdep.c: Ditto.
11969 * mdebugread.c: Ditto.
11970 * mipsread.c: Ditto.
8a1dac83 11971 * rs6000-tdep.c: Ditto.
9ab9195f
EZ
11972 * s390-tdep.c: Ditto.
11973 * sh-tdep.c: Ditto.
8a1dac83 11974 * xstormy16-tdep.c: Ditto.
9ab9195f
EZ
11975 * gdbarch.sh: Remove include of symfile.h.
11976 * gdbarch.c: Regenerate.
11977 * solib-irix.c (enable_break): Use entry_point_address().
11978 Add comment about include file.
11979 * xcoffread.c: Add comment about include file.
8a1dac83
RM
11980 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
11981 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
11982 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
11983 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
9ab9195f
EZ
11984 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
11985
c4c5b7ba
AC
119862004-02-13 Andrew Cagney <cagney@redhat.com>
11987
11988 * corelow.c (core_xfer_partial): Use "struct bfd_section".
11989 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
11990 copyright.
11991 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
11992
3e7879de
FF
119932004-02-12 Fred Fish <fnf@redhat.com>
11994
11995 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
11996 set_gdbarch_store_return_value.
11997
6a7760b6
AC
119982004-02-12 Andrew Cagney <cagney@redhat.com>
11999
12000 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
12001 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
12002 (interrupt_query): Ditto.
12003 (ofunc): Delete unused variable.
12004 * cris-tdep.c (cris_abi): Delete unused function.
12005 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
12006 (cris_get_wide_opcode, cris_get_short_size): Ditto.
12007 (cris_get_asr_quick_shift_steps): Ditto.
12008 (cris_skip_prologue_frameless_p): Ditto.
12009 * arm-tdep.c (arm_push_return_address): Delete unused function.
12010 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
12011 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
12012 * s390-tdep.c (s390_function_start): Delete unused function.
12013
31687c3c
AC
120142004-02-12 Andrew Cagney <cagney@redhat.com>
12015
12016 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
12017 gdbarch.h, gdbarch.c: Re-generate.
12018 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
12019 to generic_prologue_frameless_p.
12020 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
12021 * arch-utils.c (generic_prologue_frameless_p): Delete function.
12022
6de918a6
DJ
120232004-02-11 Daniel Jacobowitz <drow@mvista.com>
12024
12025 * mips-linux-tdep.c: Include "frame.h".
12026 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
12027 (mips_linux_skip_resolver): New functions.
12028 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
12029 and set_gdbarch_in_solib_call_trampoline.
12030 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
12031 to after set_gdbarch_in_solib_return_trampoline. Only set the
12032 solib hooks to mips16 functions if the OS ABI is unknown.
12033 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
12034 including "config/tm-linux.h".
12035 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
12036 * Makefile.in (mips-linux-tdep.o): Update.
12037
87b3ede8
DC
120382004-02-11 David Carlton <carlton@kealia.com>
12039
12040 * linespec.c (decode_compound): Only look for a class symbol when
12041 considering all but the rightmost component.
12042
5979bc46
AC
120432004-02-11 Andrew Cagney <cagney@redhat.com>
12044
12045 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
12046 abi code are are separatly grouped.
12047
5867a2fb
AC
120482004-02-11 Andrew Cagney <cagney@redhat.com>
12049
12050 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
12051 * gdbarch.h, gdbarch.c: Re-generate.
12052 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12053 * v850-tdep.c (v850_gdbarch_init): Update.
12054 * sh64-tdep.c (sh64_gdbarch_init): Update.
12055 * sh-tdep.c (sh_gdbarch_init): Update.
12056 * s390-tdep.c (s390_gdbarch_init): Update.
12057 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12058 * mips-tdep.c (mips_gdbarch_init): Update.
12059 * mcore-tdep.c (mcore_gdbarch_init): Update.
12060 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12061 * m32r-tdep.c (m32r_gdbarch_init): Update.
12062 * ia64-tdep.c (ia64_gdbarch_init): Update.
12063 * hppa-tdep.c (hppa_gdbarch_init): Update.
12064 * h8300-tdep.c (h8300_gdbarch_init): Update.
12065 * frv-tdep.c (frv_gdbarch_init): Update.
12066 * d10v-tdep.c (d10v_gdbarch_init): Update.
12067 * cris-tdep.c (cris_gdbarch_init): Update.
12068 * avr-tdep.c (avr_gdbarch_init): Update.
12069 * arm-tdep.c (arm_gdbarch_init): Update.
12070 * alpha-tdep.c (alpha_gdbarch_init): Update.
12071
026a72f8
CV
120722004-02-11 Corinna Vinschen <vinschen@redhat.com>
12073
12074 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
12075 comma.
12076 (sh_sh4al_dsp_register_name): Ditto.
12077
3903d437
AC
120782004-02-10 Andrew Cagney <cagney@redhat.com>
12079
12080 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
12081 (mips_init_frame_pc_first): Delete function.
12082 (mips_frame_saved_pc): Delete function.
12083 (mips_frame_chain): Delete function.
12084 (mips_init_extra_frame_info): Delete function.
12085 (mips_xfer_register): Delete unused variable "reg".
12086 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
12087 (mips_n32n64_return_value): Delete unused variable "reg".
12088 (mips_n32n64_return_value): Delete unused variable "pos".
12089 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
12090 (mips_o32_return_value): Delete unused variable "pos".
12091 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
12092 (mips_print_fp_register): Delete unused variable "namelen"
12093 (mips_print_fp_register): Delete unused variable "flt2"
12094 (get_frame_pointer): Delete function.
12095 (cached_proc_desc): Delete static variable.
12096 (mips_pop_frame): Delete function.
12097 (mips_find_saved_regs): Delete function.
12098 (mips_get_saved_register): Delete function.
12099 (mips_saved_pc_after_call): Delete function.
12100 (SIGFRAME_BASE): Delete macro.
12101 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
12102 (SIGFRAME_PC_OFF): Delete macro.
12103 (SIGFRAME_REGSAVE_OFF): Delete macro.
12104 (mips_dump_tdep): Do not print deleted macro definitions.
12105
b9fb98bd
AC
121062004-02-10 Andrew Cagney <cagney@redhat.com>
12107
12108 * Makefile.in (SFILES): Remove explictly listed tui files.
12109 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
12110
78ced177 121112004-02-10 Jeff Johnston <jjohnstn@redhat.com>
8a1dac83 12112
78ced177
JJ
12113 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
12114 to use paddr functions to format ia64 addresses and long values.
12115 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
12116 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
12117 (get_kernel_table, ia64_find_proc_info_x): Ditto.
12118 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
12119 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
12120
6a83354a
AC
121212004-02-10 Andrew Cagney <cagney@redhat.com>
12122
12123 * defs.h: Do not include "tui.h".
12124 * gdb_curses.h: New file.
12125 * tui/tui-hooks.h: New file.
12126 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
12127 (tui_install_hooks, tui_remove_hooks): Delete declarations.
12128 (tui_initialize_io): Delete declaration.
12129 (tui_initialize_readline: Delete redundant declaration.
12130 (struct tui_point): Delete definition.
12131 * tui/tui-data.h (struct tui_point): Define.
12132 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
12133 * utils.c: Include "tui/tui.h".
12134 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
12135 * printcmd.c [TUI]: Include "tui/tui.h".
12136 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
12137 * tui/tui-command.c: Include "gdb_curses.h".
12138 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
12139 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
12140 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
12141 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
12142 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
12143 * Makefile.in: Update all dependencies.
12144 (tui_hooks_h, gdb_curses_h): Define.
12145 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
12146
997470ef
EZ
121472004-02-10 Elena Zannoni <ezannoni@redhat.com>
12148
12149 * objfiles.h (struct objfile): Remove unused fields auxf1 and
12150 auxf2. Add comments about some other rarely used fields.
12151
4ff2cc4d
AC
121522004-02-10 Andrew Cagney <cagney@redhat.com>
12153
12154 * Makefile.in (init.c): Fix script removing duplicates. Problem
12155 reported by Peter Schauer.
12156
1ab21617
EZ
121572004-02-09 Elena Zannoni <ezannoni@redhat.com>
12158
12159 * bcache.c (bcache_xmalloc): Use obstack_init instead of
12160 obstack_specify_allocation.
12161 * objfiles.c (allocate_objfile): Ditto.
8a1dac83 12162 * solib-sunos.c (solib_add_common_symbols)
1ab21617
EZ
12163 (allocate_rt_common_objfile): Ditto.
12164 * symfile.c (reread_symbols): Ditto.
12165 * gdb_obstack.h: Add comment.
12166
17763fd9
EZ
121672004-02-09 Elena Zannoni <ezannoni@redhat.com>
12168
12169 * linespec.c (decode_line_1, locate_first_half)
12170 (decode_compound, lookup_prefix_sym): Update comments. Delete old
12171 commented out code.
12172
ec5cdd75
DJ
121732004-02-09 Daniel Jacobowitz <drow@mvista.com>
12174
12175 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
12176 obstack_free.
12177
43b54b88
AC
121782004-02-09 Andrew Cagney <cagney@redhat.com>
12179
12180 * blockframe.c (find_pc_partial_function): If find_pc_overlay
12181 fails, try find_pc_section. Fix PR c++/1267.
12182 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
12183 instead of find_pc_mapped_section.
12184 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
12185 not default to the section containing PC. Fix PR symtab/1519.
12186
edfae063
AC
121872004-02-09 Andrew Cagney <cagney@redhat.com>
12188
12189 * Makefile.in (mips-tdep.o): Update dependencies.
12190 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
12191 "trad-frame.h".
12192 (mips_unwind_pc): Return the pseudo PC register.
12193 (mips_unwind_dummy_id): New function.
12194 (mips16_fetch_instruction): New function.
12195 (mips32_fetch_instruction): New function.
12196 (struct mips_frame_cache): Define.
12197 (mips_mdebug_frame_cache): New function.
12198 (mips_mdebug_frame_this_id): New function.
12199 (mips_mdebug_frame_prev_register): New function.
12200 (mips_mdebug_frame_unwind): Define.
12201 (mips_mdebug_frame_sniffer): New function.
12202 (mips_mdebug_frame_base_address): New function.
12203 (mips_mdebug_frame_base): Define.
12204 (mips_mdebug_frame_base_sniffer): New function.
12205 (mips_gdbarch_init): Append unwind and base sniffers. Set
12206 unwind_dummy_id.
12207
defc864c
AC
122082004-02-08 Andrew Cagney <cagney@redhat.com>
12209
6764ddad
AC
12210 * frame.c: Print both the register number and name.
12211
defc864c
AC
12212 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
12213 and a sed into a single sed. Make .c and .o patterns more robust.
12214 (OBS): Delete.
12215 (INIT_FILES): Replace OBS with COMMON_OBS.
12216 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
12217
645d6d10
MK
122182004-02-08 Mark Kettenis <kettenis@gnu.org>
12219
12220 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
12221 the PT_WCOOKIE request.
12222
23e3c3fc
AC
122232004-02-08 Andrew Cagney <cagney@redhat.com>
12224
58dfe9ff
AC
12225 * mips-tdep.c (mips_unwind_pc): New function.
12226 (mips_gdbarch_init): Set mips_unwind_pc.
12227
1152e35e
AC
12228 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
12229 (get_frame_id): Allow the UNKNOWN_FRAME.
12230 (frame_register_unwind, get_frame_type): Ditto.
12231
31b75dbf
AC
12232 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
12233 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
12234 unwind_dummy_id indicates a legacy frame.
12235
3483b318
AC
12236 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
12237 * configure: Re-generate.
12238
23e3c3fc
AC
12239 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
12240 methods.
12241
33f8ca73
AC
122422004-02-08 Andrew Cagney <cagney@redhat.com>
12243
12244 * configure.in (CONFIG_ALL): Set to Makefile target, and not
12245 makefile macro.
12246 * configure: Re-generate.
12247 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
12248 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
12249 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
12250 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
12251 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
12252 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
12253 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
12254 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
12255 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
12256 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
12257
6ba8e26f 122582004-02-07 Andrew Cagney <cagney@redhat.com>
d836ee13 12259
20d286a5
AC
12260 * Makefile.in: Update all dependencies.
12261
d836ee13
AC
12262 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
12263 * configure: Re-generate.
12264 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
12265 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
12266 (COMMON_OBS): Add "main.o" and "annotate.o".
12267 (ANNOTATE_OBS): Delete.
12268 (OBS): Remove ANNOTATE_OBS.
12269 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
12270 CONFIG_INITS.
12271 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
12272 against CONFIG_OBS and "main.o".
12273 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
12274 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
12275
d02c80cd
AC
12276 * tui/tui-command.c: Include "gdb_string.h", delete register
12277 attribute, use ISO-C function signatures.
12278 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
12279 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
12280 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
12281 * tui/tui.c: Ditto.
6ba8e26f
AC
12282
12283 * tui/tui-command.c: Change variable and function names to lower
12284 case.
12285 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
12286 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
12287 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
12288 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12289 * tui/tui-winsource.c, tui/tui.c: Ditto.
12290
4a146b47
EZ
122912004-02-07 Elena Zannoni <ezannoni@redhat.com>
12292
12293 * buildsym.c (free_pending_blocks, finish_block)
12294 (record_pending_block, make_blockvector, end_symtab): Replace
12295 symbol_obstack with objfile_obstack.
8a1dac83 12296 * coffread.c (process_coff_symbol, coff_read_struct_type)
4a146b47 12297 (coff_read_enum_type): Ditto.
8a1dac83 12298 * cp-namespace.c (initialize_namespace_symtab)
4a146b47 12299 (check_one_possible_namespace_symbol): Ditto.
8a1dac83 12300 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
4a146b47
EZ
12301 (dwarf2_symbol_mark_computed): Ditto.
12302 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
12303 * elfread.c (elf_symtab_read): Ditto.
12304 * hpread.c (hpread_symfile_init, hpread_symfile_init)
12305 (hpread_read_enum_type, hpread_read_function_type)
12306 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
12307 Ditto.
8a1dac83 12308 * jv-lang.c (get_java_class_symtab, add_class_symbol)
4a146b47 12309 (java_link_class_type): Ditto.
8a1dac83 12310 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
4a146b47
EZ
12311 (new_symbol): Ditto.
12312 * minsyms.c (install_minimal_symbols): Ditto.
12313 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
12314 (terminate_minimal_symbol_table): Replace symbol_obstack with
12315 objfile_obstack.
12316 (free_objfile): Remove freeing of symbol_obstack.
12317 * objfiles.h: Remove symbol_obstack field.
12318 * pa64solib.c (add_to_solist): Replace symbol_obstack with
12319 objfile_obstack.
12320 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
12321 symbol_obstack.
12322 (solib_add_common_symbols): Replace symbol_obstack with
12323 objfile_obstack.
12324 * somsolib.c (som_solib_add): Ditto.
12325 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
12326 (common_block_start, common_block_end): Ditto.
12327 * symfile.c (reread_symbols): Remove freeing and init of
12328 symbol_obstack.
12329 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
12330 * symfile.h: Update comment.
12331 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
12332 stats printing.
12333 * symtab.c (symbol_set_names): Replace symbol_obstack with
12334 objfile_obstack.
12335 * symtab.h (struct general_symbol_info, struct minimal_symbol):
12336 Update comments.
12337 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
12338 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
12339 objfile_obstack.
12340
6d012f14
AC
123412004-02-07 Andrew Cagney <cagney@redhat.com>
12342
12343 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
12344 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
12345 fields and variables.
12346 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
12347 (m_beInvisible): Delete macro.
12348 * tui/tui-data.h: Fix case case fields and variables.
12349 (m_genWinPtrIsNull): Delete macro.
12350 (tui_win_list): Rename winList.
12351 (TUI_SRC_WIN): Rename srcWin.
12352 (TUI_DISASM_WIN): Rename disassemWin.
12353 (TUI_DATA_WIN): Rename dataWin.
12354 (TUI_CMD_WIN): Rename cmdWin.
12355 (m_genWinPtrNotNull): Delete macro.
12356 (m_winPtrIsNull): Delete macro.
12357 (m_winPtrNotNull): Delete macro.
12358 (tui_win_is_source_type): Replace m_winIsSourceType
12359 (tui_win_is_auxillary): Replace m_winIsAuzillary.
12360 (tui_win_has_locator): Replace m_hasLocator.
12361 (tui_set_win_highlight): Replace m_setWinHighlightOn and
12362 m_setWinHighlightOff.
12363 * tui/tui-data.c: Update references.
12364 (tui_win_is_source_type, tui_set_win_highlight): New functions.
12365 (tui_win_has_locator, tui_win_is_auxillary): New functions.
12366 * tui/tui-command.c, tui/tui-disasm.c: Update references.
12367 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
12368 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
12369 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12370 * tui/tui-winsource.c, tui/tui.c: Ditto.
12371
7d34766b
MK
123722004-02-07 Mark Kettenis <kettenis@gnu.org>
12373
1c800673
MK
12374 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
12375 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
12376 StackGhost.
12377
7d34766b
MK
12378 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
12379 variable `i6' to `i7'.
12380 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
12381
22940a24
AC
123822004-02-07 Andrew Cagney <cagney@redhat.com>
12383
12384 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
12385 (TuiPoint, TuiPointPtr): Ditto.
12386 (TuiStatus, TuiStatusPtr): Ditto.
12387 (TuiWinType, TuiWinTypePtr): Ditto.
12388 (struct tui_point): Rename _TuiPoint.
12389 (tui_get_low_disassembly_address): Rename
12390 tuiGetLowDisassemblyAddress.
12391 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
12392 (tuiFree): Delete declaration.
12393 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
12394 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
12395 * tui/tui.c (tuiFree): Delete function.
12396 * cli/cli-cmds.c (disassemble_command): Update references.
12397 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
12398 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
12399 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
12400 * tui/tui-winsource.c: Ditto.
12401
8b92e4d5
EZ
124022004-02-07 Elena Zannoni <ezannoni@redhat.com>
12403
12404 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
12405 coffstab_build_psymtabs, elfstab_build_psymtabs)
12406 (stabsect_build_psymtabs): Replace psymbol_obstack with
12407 objfile_obstack.
12408 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
12409 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
12410 Ditto.
12411 * dwarfread.c (scan_compilation_units): Ditto.
12412 * elfread.c (elfstab_offset_sections): Ditto.
12413 * hppa-tdep.c (read_unwind_info): Ditto.
12414 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
12415 (hpread_end_psymtab): Ditto.
12416 * mdebugread.c (mdebug_build_psymtabs, add_pending)
12417 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
12418 Ditto.
12419 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
8a1dac83 12420 * objfiles.c (add_to_objfile_sections)
8b92e4d5
EZ
12421 (build_objfile_section_table): Ditto.
12422 (allocate_objfile): Remove init of psymbol_obstack.
12423 (free_objfile): Remove freeing of psymbol_obstack.
12424 * objfiles.h (struct objfile): Remove field
12425 psymbol_obstack. Update comments.
12426 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
12427 psymbol_obstack with objfile_obstack.
12428 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
12429 psymbol_obstack.
12430 * somread.c (som_symfile_offsets, init_import_symbols)
12431 (init_export_symbols): Replace psymbol_obstack with
12432 objfile_obstack.
12433 * somsolib.c (som_solib_add_solib_objfile): Ditto.
12434 * symfile.c (default_symfile_offsets, syms_from_objfile)
12435 (reread_symbols): Remove freeing and init of psymbol_obstack.
12436 (cashier_psymtab): Update comment.
12437 * symmisc.c (print_objfile_statistics): Don't report stats for
12438 psymbol obstack.
12439 * symtab.h (struct general_symbol_info, struct partial_symtab):
12440 Update comments.
12441 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
12442 (xcoff_symfile_offsets): Replace psymbol_obstack with
12443 objfile_obstack.
12444
b99607ea
EZ
124452004-02-07 Elena Zannoni <ezannoni@redhat.com>
12446
12447 * objfiles.h (struct objfile): Add objfile_obstack field.
12448 Remove type_obstack field.
12449
12450 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
12451 read_structure_scope read_enumeration, new_symbol): Replace
12452 type_obstack with objfile_obstack.
12453 * dwarfread.c (struct_type, enum_type): Ditto.
8a1dac83 12454 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
b99607ea
EZ
12455 (lookup_fundamental_type): Ditto.
12456 * gdbtypes.h (TYPE_ALLOC): Ditto.
8a1dac83
RM
12457 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
12458 (hpread_read_doc_function_type, hpread_read_struct_type)
12459 (fix_static_member_physnames, hpread_read_array_type)
b99607ea 12460 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
8a1dac83 12461 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
b99607ea
EZ
12462 (java_link_class_type): Ditto.
12463 * mdebugread.c (parse_type): Ditto.
12464 * objfiles.c (allocate_objfile, free_objfile): Ditto.
12465 * solib-sunos.c (solib_add_common_symbols): Ditto.
12466 * stabsread.c (define_symbol, read_type, read_member_functions,
12467 read_cpp_abbrev, read_one_struct_field): Ditto.
12468 * symfile.c (reread_symbols): Ditto.
12469 * symmisc.c (print_objfile_statistics): Ditto.
8a1dac83 12470
2a8854a7
AC
124712004-02-07 Andrew Cagney <cagney@redhat.com>
12472
12473 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
12474 (tui_exec_info_content): Rename TuiExecInfoContent.
12475 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
12476 (TuiWinInfo, TuiWinInfoPtr): Ditto.
12477 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
12478 (TuiList, TuiListPtr): Ditto.
12479 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
12480 (TuiDataType, TuiDataTypePtr): Ditto.
12481 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
12482 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
12483 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
12484 (TuiSourceElement, TuiSourceElementPtr): Ditto.
12485 (TuiDataElement, TuiDataElementPtr): Ditto.
12486 (TuiWinElement, TuiWinElementPtr): Ditto.
12487 (TuiDataInfo, TuiDataInfoPtr): Ditto.
12488 (TuiCommandElement, TuiCommandElementPtr): Ditto.
12489 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
12490 (TuiWhichElement, TuiWhichElementPtr): Ditto.
12491 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
12492 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
12493 * tui/tui-command.c, tui/tui-data.c: Update references.
12494 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
12495 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
12496 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12497 * tui/tui-winsource.c, tui/tui.c: Ditto.
8a1dac83 12498
05cbe71a
MK
124992004-02-07 Mark Kettenis <kettenis@gnu.org>
12500
12501 * dwarf2-frame.h: Update copyright.
12502 (enum dwarf2_frame_reg_rule): New.
12503 (struct dwarf2_frame_state_reg): New.
12504 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
12505 * dwarf2-frame.c: Update copyright.
12506 (enum dwarf2_reg_rule): Remove.
12507 (struct dwarf2_frame_state): Remove defenition of `struct
12508 dwarf2_frame_state_reg'.
12509 (read_reg): Call get_frame_arch to get the architecture instead of
12510 using CURRENT_GDBARCH.
12511 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
12512 DWARF2_FRAME_.
12513 (dwarf2_frame_init_reg): New function.
12514 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
12515 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
12516 initialize the register state. Prefix old `enum dwarf2_reg_rule'
12517 tags with DWARF2_FRAME_.
12518 (dwarf2_frame_prev_register): Call get_frame_arch to get the
12519 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
12520 dwarf2_reg_rule' tags with DWARF2_FRAME_.
12521
ec7d9e56
AC
125222004-02-06 Andrew Cagney <cagney@redhat.com>
12523
dd1abb8c
AC
12524 * tui/tui-data.h (struct tui_list): Rename _TuiList.
12525 (enum tui_data_type): Rename _TuiDataType.
12526 (struct tui_layout_def): Rename _TuiLayoutDef.
12527 (struct tui_source_element): Rename _TuiSourceElement.
12528 (struct tui_data_element): Rename _TuiDataElement.
12529 (struct tui_command_element): Rename _TuiCommandElement.
12530 (struct tui_locator_element): Rename _TuiLocatorElement.
12531 (union tui_which_element): Define.
12532 (struct tui_win_element): Rename _TuiWinElement.
12533 (struct tui_data_info): Rename _TuiDataInfo.
12534 (struct tui_source_info): Rename _TuiSourceInfo.
12535 (struct tui_command_info): Rename _TuiCommandInfo.
12536 (tui_initialize_static_data): Rename initializeStaticData.
12537 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
12538 (tui_alloc_win_info): Rename allocWinInfo.
12539 (tui_init_generic_part): Rename initGenericPart.
12540 (tui_init_win_info): Rename initWinInfo.
12541 (tui_alloc_content): Rename allocContent.
12542 (tui_add_content_elements): Rename addContentElements.
12543 (tui_init_content_element): Rename initContentElement.
12544 (tui_free_window): Rename freeWindow.
12545 (tui_free_win_content): Rename freeWinContent.
12546 (tui_free_data_content): Rename freeDataContent.
12547 (tui_free_all_source_wins_content): Rename
12548 freeAllSourceWinsContent.
12549 (tui_del_window): Rename tuiDelWindow.
12550 (tui_del_data_windows): Rename tuiDelDataWindows.
12551 (tui_partial_win_by_name): Rename partialWinByName.
12552 (tui_win_name): Rename winName.
12553 (tui_current_layout): Rename currentLayout.
12554 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
12555 (tui_term_height): Rename termHeight.
12556 (tui_set_term_height_to): Rename setTermHeightTo.
12557 (tui_term_width): Rename termWidth.
12558 (tui_set_term_width_to): Rename setTermWidthTo.
12559 (tui_set_gen_win_origin): Rename setGenWinOrigin.
12560 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
12561 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
12562 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
12563 (tui_source_windows): Rename sourceWindows.
12564 (tui_clear_source_windows): Rename clearSourceWindows.
12565 (tui_clear_source_windows_detail): Rename
12566 clearSourceWindowsDetail.
12567 (tui_clear_win_detail): Rename clearWinDetail.
12568 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
12569 (tui_default_tab_len): Rename tuiDefaultTabLen.
12570 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
12571 (tui_win_with_focus): Rename tuiWinWithFocus.
12572 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
12573 (tui_layout_def): Rename tuiLayoutDef.
12574 (tui_win_resized): Rename tuiWinResized.
12575 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
12576 (tui_next_win): Rename tuiNextWin.
12577 (tui_prev_win): Rename tuiPrevWin.
12578 (tui_add_to_source_windows): Rename addToSourceWindows.
12579 * tui/tui-winsource.c, tui/tui-win.c: Update references.
12580 * tui/tui-layout.c, tui/tui-source.c: Ditto.
12581 * tui/tui-stack.c, tui/tui-io.c: Ditto.
12582 * tui/tui.c, tui/tui-data.c: Ditto.
12583 * tui/tui-interp.c, tui/tui-data.c: Ditto.
12584 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
12585
a358af15
AC
12586 * tui/tui-source.h: Update copyright. Include "tui-data.h".
12587 (struct symtab): Declare.
12588 (tui_set_source_content): Rename tuiSetSourceContent.
12589 (tui_show_symtab_source): Rename tuiShowSource.
12590 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
12591 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
12592 * tui/tui-source.c: Update copyright. Update references.
12593 * tui/tui-win.c, tui/tui-winsource.c: Update references.
12594 * tui/tui-stack.c: Update references.
12595
a21fcd8f
AC
12596 * tui/tui-win.h: Update copyright. Include "tui-data.h".
12597 (struct tui_win_info): Declare.
12598 (tui_scroll_forward): Rename tuiScrollForward.
12599 (tui_scroll_backward): Rename tuiScrollBackward.
12600 (tui_scroll_left): Rename tuiScrollLeft.
12601 (tui_scroll_right): Rename tuiScrollRight.
12602 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
12603 (tui_resize_all): Rename tuiResizeAll.
12604 (tui_refresh_all_win): Rename tuiRefreshAll.
12605 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
12606 * tui/tui-layout.c, * tui/tui-io.c: Update references.
12607 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
12608 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
12609
edae1ccf
AC
12610 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
12611 (tui_erase_data_content): Rename tuiEraseDataContent.
12612 (tui_display_all_data): Rename tuiDisplayAllData.
12613 (tui_check_data_values): Rename tuiCheckDataValues.
12614 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
12615 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
12616 (tui_first_data_element_no_in_line): Rename
12617 tuiFirstDataElementNoInLine.
12618 (tui_delete_data_content_windows): Rename
12619 tuiDeleteDataContentWindows.
12620 (tui_refresh_data_win): Rename tuiRefreshDataWin.
12621 (tui_display_data_from): Rename tuiDisplayDataFrom.
12622 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
12623 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
12624 * tui/tui-win.c, tui/tui-regs.c: Update references.
12625 * tui/tui-layout.c, tui/tui.c: Update references.
12626
ec7d9e56
AC
12627 * tui/tui-wingeneral.h: Update copyright.
12628 (m_allBeVisible): Delete macro.
8a1dac83 12629 (m_allBeInvisible): Delete macro.
ec7d9e56
AC
12630 (struct tui_gen_win_info): Declare.
12631 (struct tui_win_info): Declare.
12632 (tui_unhighlight_win): Rename unhighlightWin.
12633 (tui_make_visible, tui_make_invisible): Replace makeVisible.
12634 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
12635 (tui_make_window): Rename makeWindow.
12636 (tui_copy_win): Rename copyWin.
12637 (tui_box_win): Rename boxWin.
12638 (tui_highlight_win): Rename highlightWin.
12639 (tui_check_and_display_highlight_if_needed): Rename
12640 checkAndDisplayHighlightIfNeeded.
12641 (tui_refresh_all): Rename refreshAll.
12642 (tui_delete_win): Rename tuiDelwin.
12643 (tui_refresh_win): Rename tuiRefreshWin.
12644 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
12645 (tui_make_visible, tui_make_invisible): New functions.
12646 (tui_make_all_visible, tui_make_all_invisible): New functions.
12647 (make_all_visible): Rename makeAllVisible.
12648 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
12649 * tui/tui-data.c, tui/tui-winsource.c: Update references.
12650 * tui/tui-windata.c, tui/tui-win.c: Update references.
12651 * tui/tui-regs.c, tui/tui-layout.c: Update references.
12652 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
12653
1e52e2eb
MK
126542004-02-06 Mark Kettenis <kettenis@gnu.org>
12655
12656 * proc-api.c (write_with_trace): Initialize local variable to
12657 silence compiler warning.
12658
f80bda8e
AC
126592004-02-06 Andrew Cagney <cagney@redhat.com>
12660
12661 * tui/tui-source.h: Do not include "defs.h".
12662 (struct tui_win_info): Declare.
12663 (tui_set_source_content_nil): Declare.
12664 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
12665 (union tui_line_or_address): Rename _TuiLineOrAddress.
12666 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
12667 (tui_update_source_window): Rename tuiUpdateSourceWindow.
12668 (tui_update_source_window_as_is): Rename
12669 tuiUpdateSourceWindowAsIs.
12670 (tui_update_source_windows_with_addr): Rename
12671 tuiUpdateSourceWindowsWithAddr.
12672 (tui_update_source_windows_with_line): Rename
12673 tuiUpdateSourceWindowsWithLine.
12674 (tui_clear_source_content): Rename tuiClearSourceContent.
12675 (tui_erase_source_content): Rename tuiEraseSourceContent.
12676 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
12677 (tui_show_source_content): Rename tuiShowSourceContent.
12678 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
12679 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
12680 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
12681 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
12682 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
12683 (tui_update_exec_info): Rename tuiUpdateExecInfo.
12684 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
12685 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
12686 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
12687 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
12688 (struct tui_win_info): Declare.
12689 * tui/tui-stack.c: Update references.
12690 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
12691 * tui/tui-win.c, tui/tui-source.c: Ditto.
12692 * tui/tui.c, tui/tui-disasm.c: Ditto.
12693
9fbfb822
MK
126942004-02-06 Mark Kettenis <kettenis@gnu.org>
12695
12696 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
12697 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
12698
03cebad2
MK
126992004-02-05 Mark Kettenis <kettenis@gnu.org>
12700
12701 * infrun.c (handle_inferior_event): Allow for breakpoint
12702 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
12703 and SIGEMT. Update comments.
12704 * NEWS (Revised SPARC target): Mention support for non-executable
12705 stack.
12706
290281b1
MK
127072004-02-04 Mark Kettenis <kettenis@gnu.org>
12708
12709 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
12710 * inftarg.c: Update copyright year.
12711 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
12712 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
12713 (sparc_xfer_wcookie): New function.
12714 * sparc-tdep.c (sparc_fetch_wcookie): New function.
12715 * Makefile.in (sparc-nat.o): Update dependencies.
12716 * config/sparc/nm-nbsd.h: Include "target.h".
12717 (NATIVE_XFER_WCOOKIE): New define.
12718 (sparc_xfer_wcookie): New prototype.
12719
212161df
AC
127202004-02-04 Andrew Cagney <cagney@redhat.com>
12721
12722 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
12723 SYSCALL_TRAP function.
12724 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
12725
6e4c6c91
DJ
127262004-02-04 Andrew Cagney <cagney@redhat.com>
12727 Daniel Jacobowitz <drow@mvista.com>
12728
12729 * objfiles.h: Delete comments refering to inside_entry_func and
12730 DEPRECATED_FRAME_CHAIN_VALID.
12731 * defs.h (inside_entry_func): Update prototype..
12732 * blockframe.c (inside_entry_func): Rename to
12733 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
12734 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
12735
cae688ec
JJ
127362004-02-03 Jeff Johnston <jjohnstn@redhat.com>
12737
12738 * breakpoint.c (struct captured_parse_breakpoint_args): Move
12739 outside of #ifdef SOLIB_ADD region.
12740 (do_restore_lang_radix_cleanup): Ditto.
12741 (resolve_pending_breakpoint): Ditto.
12742
19217676
AC
127432004-02-03 Andrew Cagney <cagney@redhat.com>
12744
12745 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
12746 (process_note_abi_tag_sections): Delete unused function.
12747 (ia64_read_fp): Delete unused function.
12748 (gdbarch_extract_struct_value_address): Delete declaration.
12749
876753be
AC
127502004-02-02 Andrew Cagney <cagney@redhat.com>
12751
12752 * vax-tdep.c (vax_frame_chain): Delete call to
12753 deprecated_inside_entry_file.
12754 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
12755
d4f10bf2
MK
127562004-02-02 Mark Kettenis <kettenis@gnu.org>
12757
12758 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
12759 column that's "empty" or "same value" when eliminating REG_RA
12760 rules.
12761
cae688ec
JJ
127622004-02-02 Jeff Johnston <jjohnstn@redhat.com>
12763
12764 * NEWS: Add information about new pending breakpoint support.
12765
0101ce28
JJ
127662004-02-02 Jeff Johnston <jjohnstn@redhat.com>
12767
12768 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
12769 and pending fields for pending breakpoint support.
12770 * breakpoint.c (breakpoint_enabled): Add check for not pending.
12771 (condition_command): Only parse condition if not a pending
12772 breakpoint.
12773 (print_one_breakpoint): Add support for pending breakpoints.
12774 (describe_other_breakpoints): Add checks to verify we are not
12775 dealing with pending breakpoints.
12776 (check_duplicates): Don't check pending breakpoints.
12777 (set_raw_breakpoint): Initialize pending flag.
12778 (do_restore_lang_radix_cleanup): New cleanup routine.
12779 (resolve_pending_breakpoint): New function.
12780 (re_enable_breakpoints_in_shlibs): Try and resolve any
12781 pending breakpoints via resolve_pending_breakpoint.
12782 (mention): Add pending breakpoint support.
12783 (parse_breakpoint_sals): Add new parameter to pass to
12784 decode_line_1 to indicate silent errors when files or functions
12785 are not found. Change all callers.
12786 (do_captured_parse_breakpoint): New function.
12787 (break_command_1): Change prototype to return an rc value and to
12788 take an optional pending breakpoint pointer. Support creating
12789 a pending breakpoint if a "not found" form of error occurs when
12790 parsing the breakpoint. Also support resolving an existing pending
12791 breakpoint and be silent if the resolution fails.
12792 (create_breakpoints): Change prototype to take pending breakpoint
12793 pointer. When resolving a pending breakpoint, use the new pointer
12794 to provide a conditional or commands added by the end-user.
12795 (delete_breakpoint): Add appropriate check for pending.
12796 (breakpoint_re_set_one): Ditto.
12797 (do_enable_breakpoint): Ditto.
12798
8d577d32
DC
127992004-02-02 David Carlton <carlton@kealia.com>
12800
12801 * valops.c (enum oload_classification): New.
12802 (find_overload_match): Break implementation into separate
12803 functions; delete #if 0'd code; look for symbols within
12804 namespaces.
12805 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
12806 (find_oload_champ,oload_method_static,classify_oload_match): New.
12807 * cp-support.h: Add declaration for cp_func_name; update
12808 declaration for make_symbol_overload_list.
12809 * cp-support.c (cp_func_name): New.
12810 (overload_list_add_symbol): Fix comment, use
12811 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
12812 (make_symbol_overload_list): Take a function name and a namespace
12813 instead of a symbol; change implementation.
12814 (make_symbol_overload_list_using): New.
12815 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
12816
22e8e3c7
FF
128172004-02-02 Fred Fish <fnf@redhat.com>
12818
12819 * main.c (gdb_stdtarg): Move definition to group with other
15390fef 12820 gdb_stdtarg definitions and update copyright years.
22e8e3c7
FF
12821 * remote-sim.c (gdb_os_write_stderr): Write output to
12822 gdb_stdtargerr stream instead of gdb_stdtarg stream.
12823 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
15390fef 12824 gdb_stderr stream and update copyright years.
22e8e3c7 12825
6b753f60
DJ
128262004-02-01 Daniel Jacobowitz <drow@mvista.com>
12827
12828 * Makefile.in (mips-linux-nat.o): Update dependencies.
12829 * mips-linux-nat.c: Include mips-tdep.h.
12830
128312004-02-01 Roland McGrath <roland@redhat.com>
2cb6b099
RM
12832
12833 * sol-thread.c (sol_thread_xfer_partial): New function.
12834 (init_sol_thread_ops): Use that for to_xfer_partial hook.
12835 (init_sol_core_ops): Likewise.
12836
12837 * procfs.c (procfs_xfer_partial): New function.
12838 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
12839 * Makefile.in (procfs.o): Add $(auxv_h) dep.
12840
12841 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
12842 procfs_xfer_auxv function.
12843
12844 * procfs.c (procfs_make_note_section): If we can read
12845 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
12846 * linux-proc.c (linux_make_note_section): Likewise.
12847
12848 * auxv.h: New file.
12849 * auxv.c: New file.
12850 * Makefile.in (auxv_h): New variable.
12851 (COMMON_OBS): Add auxv.o here.
12852 (auxv.o): New target.
12853
12854 * corelow.c (core_xfer_partial): New function.
12855 (init_core_ops): Use it for core_ops.to_xfer_partial.
12856
12857 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
12858 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
12859 macro if that is defined.
12860
fa5281d0
DJ
128612004-02-01 Daniel Jacobowitz <drow@mvista.com>
12862
12863 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
12864 and check the specified thread for each breakpoint.
12865 * breakpoint.h (bpstat_stop_status): Update prototype.
12866 * infrun.c (handle_inferior_event): Update calls to
12867 bpstat_stop_status.
12868
26ee262d
DJ
128692004-02-01 Daniel Jacobowitz <drow@mvista.com>
12870
12871 * Makefile.in (cli-cmds.o): Add $(readline_h).
12872
d9b52655
DJ
128732004-02-01 Daniel Jacobowitz <drow@mvista.com>
12874
12875 * cli/cli-cmds.c: Include readline.h.
12876 (complete_command): Pass the start of the last word to
12877 complete_line.
12878
9709f61c
DJ
128792004-01-31 Daniel Jacobowitz <drow@mvista.com>
12880
12881 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
12882 argument, and change first argument to a CORE_ADDR.
12883 * breakpoint.h (bpstat_stop_status): Update prototype.
12884 * infrun.c (adjust_pc_after_break): Add a new comment.
12885 (handle_inferior_event): Update calls to bpstat_stop_status.
12886
4f1280bb
DJ
128872004-01-31 Daniel Jacobowitz <drow@mvista.com>
12888
12889 * breakpoint.h: Update copyright years.
12890
4fa8626c
DJ
128912004-01-31 Daniel Jacobowitz <drow@mvista.com>
12892
12893 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
12894 (bpstat_stop_status): Don't decrement PC.
12895 * breakpoint.h (software_breakpoint_inserted_here_p): Add
12896 prototype.
12897 * infrun.c (adjust_pc_after_break): New function.
12898 (handle_inferior_event): Call it, early. Remove later references
12899 to DECR_PC_AFTER_BREAK.
12900 (normal_stop): Add commentary.
12901
fad0733a
DJ
129022004-01-31 Daniel Jacobowitz <drow@mvista.com>
12903
12904 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
12905 2004-01-27 double-free fix.
12906
42cdca6c
MK
129072004-01-31 Mark Kettenis <kettenis@gnu.org>
12908
12909 * sparc-tdep.c (sparc_fetch_wcookie): New function.
12910 (sparc32_frame_prev_register): Handle StackGhost.
12911 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
12912
932d5416
RM
129132004-01-29 Roland McGrath <roland@redhat.com>
12914
12915 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
12916 * configure: Regenerated.
12917
12918 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
12919 * Makefile.in (procfs.o): Add dep.
12920
47d3492a
AC
129212004-01-28 Andrew Cagney <cagney@redhat.com>
12922
12923 * tui/tui-stack.h: Update copyright.
12924 (struct frame_info): Add opaque declaration.
12925 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
12926 (tui_show_locator_content): Rename tuiShowLocatorContent.
12927 (tui_show_frame_info): Rename tuiShowFrameInfo.
12928 * tui/tui-stack.c: Update copyright. Update references.
12929 * tui/tui-winsource.c: Update references.
12930 * tui/tui-win.c: Update references.
12931 * tui/tui-layout.c: Update references.
12932 * tui/tui-hooks.c: Update copyright, update references.
12933 * tui/tui.c: Update copyright, update references.
12934 * tui/tui-disasm.c: Update references.
12935
5d51ca54
DC
129362004-01-28 David Carlton <carlton@kealia.com>
12937
12938 * dwarf2read.c (add_partial_structure): Use demangled name if
12939 namespace equals "".
12940
086ed43d
JB
129412004-01-27 Jim Blandy <jimb@redhat.com>
12942
12943 Clean up misapplied patch:
12944 * dwarf2read.c (determine_prefix): Change one of the two forward
12945 declarations for 'determine_prefix_aux' to a declaration for this.
12946 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
12947 argument to 'die_specification'.
12948
2a35147e
JB
12949 * dwarf2read.c (read_func_scope): Re-indent comment.
12950
a355c7de 129512004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
932d5416 12952
a355c7de
AC
12953 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
12954 b->exp to NULL after freeing so that error during re-parsing or
12955 evaluation of expressions associated with breakpoint don't
12956 eventually lead to re-freeing of storage.
12957 Committed by Andrew Cagney.
12958
63ff5125
AC
129592004-01-27 Andrew Cagney <cagney@redhat.com>
12960
12961 * source.c (ambiguous_line_spec): Delete undefined declaration.
12962 * m32r-rom.c (m32r_set_board_address): Delete unused function.
12963 (m32r_set_server_address, m32r_set_download_path): Ditto.
12964 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
12965
e142c38c
DJ
129662004-01-27 Daniel Jacobowitz <drow@mvista.com>
12967
12968 * dwarf2read.c: Update calls to changed and renamed functions, and
12969 references to moved variables.
12970
12971 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
12972 language, language_defn, list_in_scope, and ftypes members.
12973 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
12974 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
12975 (baseaddr): Remove globals.
12976
12977 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
12978 (set_cu_language, die_is_declaration, die_specification)
12979 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
12980 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
12981 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
12982 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
12983
12984 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
12985 cu.list_in_scope. Don't initialize cu_header_offset.
12986 (add_partial_symbol): Add local baseaddr.
12987 (psymtab_to_symtab_1): Add local baseaddr. Use
12988 objfile->section_offsets for consistency. Don't initialize
12989 cu_header_offset; do initialize cu.header.offset and
12990 cu.list_in_scope.
12991 (read_file_scope, read_func_scope, read_lexical_block_scope)
12992 (dwarf_decode_lines, new_symbol): Add local baseaddr.
12993
c6e06ede
MC
129942004-01-27 Michael Chastain <mec.gnu@mindspring.com>
12995
fb328ecc 12996 * PROBLEMS: Add gdb/1516.
c6e06ede 12997
48184fd4
AC
129982003-12-29 Robert Millan <robertmh@gnu.org>
12999
13000 Patch committed by Andrw Cagney.
13001 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
13002 * configure.tgt: Match knetbsd*-gnu.
13003
c1321b30
AC
130042004-01-26 Andrew Cagney <cagney@redhat.com>
13005
f3699be3
AC
13006 * breakpoint.c (catch_command_1): Delete #ifdef code.
13007 (catch_fork_command_1): Delete #ifdef wrapper.
13008 (catch_exec_command_1): Ditto.
13009 (catch_load_command_1): Ditto.
13010 (catch_unload_command_1): Ditto.
13011
c1321b30
AC
13012 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
13013 (catch_breakpoint): Delete #if0ed function.
13014 (disable_catch_breakpoint): Ditto.
13015 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
13016 (disable_catch, enable_catch, delete_catch): Ditto.
13017
b4501125
AC
130182004-01-26 Andrew Cagney <cagney@redhat.com>
13019
13020 * remote.c (echo_check, quit_flag): Delete variables.
13021 (cisco_kernel_mode): Delete variable.
13022 (minitelnet_return, tty_input, escape_count): Delete variables.
13023 (remote_cisco_mode): Delete variable.
13024 (remote_cisco_open, remote_cisco_close): Delete function.
13025 (remote_cisco_mourn, remote_cisco_wait): Delete function.
13026 (init_remote_cisco_ops): Delete function.
13027 (_initialize_remote): Do not install "remote cisco" code.
13028 (read_frame): Delete cisco specific code.
13029 (remote_info_process): Delete function.
13030 (remote_wait): Delete cisco specific code.
13031 (remote_cisco_section_offsets): Delete function.
13032 (remote_cisco_objfile_relocate): Delete function.
13033 (remote_async_wait): Delete cisco specific code.
13034 (minitelnet, readtty, readsocket): Delete function.
13035
74055713
AC
130362004-01-26 Andrew Cagney <cagney@redhat.com>
13037
13038 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
13039 comments mentioning extract_returned_value_address.
13040 * infcmd.c (print_return_value): Update. Add comments on
13041 extract_returned_value_address.
13042 * stack.c (return_command): Add comments on
13043 extract_returned_value_address.
13044 * values.c: Update comment.
13045 * m32r-tdep.c: Update comment.
13046 * sparc-tdep.c: Update comment.
13047 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
13048 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
13049 * sh64-tdep.c (sh64_gdbarch_init): Update.
13050 * sh-tdep.c (sh_gdbarch_init): Update.
13051 * s390-tdep.c (s390_gdbarch_init): Update.
13052 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
13053 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
13054 * m68k-tdep.c (m68k_gdbarch_init): Update.
13055 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
13056 * m32r-tdep.c (m32r_gdbarch_init): Update.
13057 * ia64-tdep.c (ia64_gdbarch_init): Update.
13058 * h8300-tdep.c (h8300_gdbarch_init): Update.
13059 * frv-tdep.c (frv_gdbarch_init): Update.
13060 * arm-tdep.c (arm_gdbarch_init): Update.
13061 * alpha-tdep.c (alpha_gdbarch_init): Update.
13062
a67af2b9
AC
130632004-01-26 Andrew Cagney <cagney@redhat.com>
13064
13065 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
13066 SYMBOL_LOCATION_FUNCS
13067 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
13068 "struct symbol_ops".
13069 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
13070 type to "struct symbol_ops".
13071 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
13072 (struct symbol): Replace ".aux_value.loc.funcs" and
13073 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
13074 (SYMBOL_OBJFILE): Delete macro.
13075 (SYMBOL_LOCATION_FUNCS): Delete macro.
13076 (SYMBOL_LOCATION_BATON): Update.
13077 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
13078 intead of SYMBOL_LOCATION_FUNCS.
13079 * ax-gdb.c (gen_var_ref): Ditto.
13080 * printcmd.c (address_info): Ditto.
13081 * findvar.c (read_var_value): Ditto.
13082 (symbol_read_needs_frame): Ditto.
13083
c034e007
AC
130842004-01-26 Andrew Cagney <cagney@redhat.com>
13085
13086 * dwarf2read.c (read_func_scope): Document frame-base hack.
13087
bb472c1e
MK
130882004-01-25 Mark Kettenis <kettenis@gnu.org>
13089
13090 * infcmd.c (print_return_value): Plug memory leak; delete
13091 ui_stream object. Rename argument `structure_return' to
13092 `struct_return'.
13093
c8e737d5
MK
130942004-01-25 Mark Kettenis <kettenis@gnu.org>
13095
f941662f
MK
13096 * infcmd.c (print_return_value): Wrap long lines.
13097 (finish_command_continuation, finish_command): Remove unused
13098 variable `funcaddr'. Fix some coding-standards problems.
13099
c558d81a 13100 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
d8d65dd3 13101 SECT_SIZE is large enough, not whether it's exactly the right size.
c558d81a
MK
13102 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
13103 TDEP->fpregset to zero.
13104
bf1e5861 13105 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
c8e737d5
MK
13106 floating-point registers for traditional NetBSD core files.
13107 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
13108 TDEP->sizeof_fpregset here.
13109
4c72d57a
MK
131102004-01-25 Mark Kettenis <kettenis@gnu.org>
13111
566626fa
MK
13112 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
13113 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
13114 function with code split out from
13115 sparc32nbsd_sigcontext_frame_cache.
13116 (sparc32nbsd_sigcontext_frame_cache): Use
13117 sparc32nbsd_sigcontext_saved_regs.
13118 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
13119 OpenBSD.
13120 * sparcobsd-tdep.c: New file.
13121 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
13122 (sparcobsd-tdep.o): New dependency.
13123 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
13124 * config/sparc/obsd.mt: New file.
13125
4c72d57a
MK
13126 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
13127 TDEP->fpregset to be initialized to enable core file register
13128 sets.
13129
7e5e9f88
MK
131302004-01-24 Mark Kettenis <kettenis@gnu.org>
13131
f0f207fd 13132 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
1e067c66
MK
13133 Add opaque declarations.
13134 (sparc64nbsd_sigcontext_saved_regs): New prototype.
13135 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
13136 function with code split out from
13137 sparc64nbsd_sigcontext_frame_cache.
13138 (sparc64nbsd_sigcontext_frame_cache): Use
13139 sparc64nbsd_sigcontext_saved_regs.
13140 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
13141 OpenBSD.
13142 * sparc64obsd-tdep.c: New file.
13143 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
13144 (sparc64obsd-tdep.o): New dependency.
13145 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
13146 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
13147 * config/sparc/obsd64.mt: New file.
13148
690668cc
MK
13149 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
13150 read the instruction at PC.
13151
7e5e9f88
MK
13152 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
13153 value of GDB_OSABI_DEFAULT.
13154 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
13155 instead of GDB_OSABI_NETBSD_AOUT.
13156
68b6dce9
NR
131572004-01-24 Nick Roberts <nick@nick.uklinux.net>
13158
13159 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
13160 copyright.
13161
080ce8c0
AC
131622004-01-23 Andrew Cagney <cagney@redhat.com>
13163
13164 * printcmd.c (display_command): Replace tui_set_display call with
13165 tui_set_layout_for_display_command.
13166 * tui/tui.h (enum tui_win_type): Define.
13167 (tui_set_layout): Delete declaration.
13168 (tui_set_layout_for_display_command): Rename set_tui_layout.
13169 * tui/tui-data.h (enum tui_layout_type): Define.
13170 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
13171 "tui.h".
13172 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
13173 (tui_default_win_height): Rename tuiDefaultWinHeight.
13174 (tui_default_win_viewport_height): Rename
13175 tuiDefaultWinViewportHeight.
13176 (tui_set_layout): RenametuiSetLayout.
13177 * tui/tui-layout.c: Update references.
13178 * tui/tui.c: Update references.
13179 * tui/tui-disasm.c: Update references.
13180
b368761e
DC
131812004-01-23 David Carlton <carlton@kealia.com>
13182
13183 Partial workaround for PR c++/1511:
13184 * cp-namespace.c: Include frame.h.
13185 (cp_lookup_transparent_type): New
13186 (cp_lookup_transparent_type_loop): New.
13187 * cp-support.h: Declare cp_lookup_transparent_type.
13188 * symtab.c (basic_lookup_transparent_type): Renamed from
13189 lookup_transparent_type.
13190 (lookup_transparent_type): Replace old body by a call to
13191 current_language->la_lookup_transparent_type.
13192 * symtab.h: Update copyright. Declare
13193 basic_lookup_transparent_type.
13194 * language.h: Update copyright.
13195 (struct language_defn): Add la_lookup_transparent_type.
13196 * language.c: Update copyright.
13197 (unknown_language_defn): Add basic_lookup_transparent_type.
13198 (auto_language_defn): Add basic_lookup_transparent_type.
13199 (local_language_defn): Add basic_lookup_transparent_type.
13200 * ada-lang.c: Update copyright.
13201 (ada_language_defn): Add basic_lookup_transparent_type.
13202 * c-lang.c: Update copyright.
13203 (c_language_defn): Add basic_lookup_transparent_type.
13204 (cplus_language_defn): Add basic_lookup_transparent_type.
13205 (asm_language_defn): Add basic_lookup_transparent_type.
13206 (minimal_language_defn): Add basic_lookup_transparent_type.
13207 * f-lang.c: Update copyright.
13208 (f_language_defn): Add basic_lookup_transparent_type.
13209 * jv-lang.c: Update copyright.
13210 (java_language_defn): Add basic_lookup_transparent_type.
13211 * m2-lang.c: Update copyright.
13212 (m2_language_defn): Add basic_lookup_transparent_type.
13213 * objc-lang.c: Update copyright.
13214 (objc_language_defn): Add basic_lookup_transparent_type.
13215 * p-lang.c: Update copyright.
13216 (p_language_defn): Add basic_lookup_transparent_type.
13217 * scm-lang.c: Update copyright.
13218 (scm_language_defn): Add basic_lookup_transparent_type.
13219 * Makefile.in (cp-namespace.o): Depend on frame.h.
13220
fdde2d81
DC
132212004-01-23 David Carlton <carlton@kealia.com>
13222
13223 Patch for PR c++/1520:
13224 * dwarf2read.c (read_func_scope): Set processing_current_prefix
13225 properly if we have a specification die.
13226 (determine_prefix_aux): Rename from determine_prefix.
13227 (determine_prefix): Like the old determine_prefix, but never
13228 returns NULL.
13229
5b828b6b
TR
132302004-01-23 Theodore A. Roth <troth@openavr.org>
13231
13232 * avr-tdep.c: Update copyright.
13233 (avr_iaddr_p): Delete unused function.
13234 (avr_saddr_p): Delete unused function.
13235
a1b8c067
DC
132362004-01-23 David Carlton <carlton@kealia.com>
13237
13238 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
13239 Fix for PR symtab/1534.
13240
f2cab569
MK
132412004-01-23 Mark Kettenis <kettenis@gnu.org>
13242
13243 * NEWS (New native configurations): Mention OpenBSD/sparc and
13244 OpenBSD/sparc64.
13245 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
13246 * configure.host: Likewise.
13247 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
13248 handler for OpenBSD.
13249 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
13250
642d8300
MK
132512004-01-22 Mark Kettenis <kettenis@gnu.org>
13252
89aac506
MK
13253 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
13254 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
13255
36662fde
MK
13256 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
13257 * cli/cli-cmds.c (shell_escape): Likewise.
13258
642d8300
MK
13259 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
13260 OpenBSD .note.openbsd.ident sections.
13261
fae299cd
DC
132622004-01-22 David Carlton <carlton@kealia.com>
13263
13264 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
13265 get_scope_pc_bounds.
13266 (read_file_scope): Ditto.
13267 (get_scope_pc_bounds): New function, produced by extracting code
13268 from the above two functions, consolidating it, and adding support
13269 for DW_TAG_namespace.
13270
a49d618c
MK
132712004-01-22 Mark Kettenis <kettenis@gnu.org>
13272
13273 * osabi.c (MAX_NOTESZ): New define.
13274 (check_note): New function.
13275 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
13276 check_note.
13277
fe61caab
RM
132782004-01-21 Roland McGrath <roland@redhat.com>
13279
13280 * MAINTAINERS (write after approval): Add myself.
13281
ec145965
EZ
132822004-01-21 Eli Zaretskii <eliz@gnu.org>
13283
13284 * utils.c (init_page_info): Move declarations of `rows' and
13285 `cols' before the __GO32__-specific code. Move the closing brace
13286 outside the #ifdef __GO32__..#endif block.
13287 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
13288
877522db
PB
132892004-01-21 Paul Brook <paul@codesourcery.com>
13290
13291 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
13292 BPSTAT_WHAT_CHECK_SHLIBS.
13293
dbf5be1c
PB
132942004-01-21 Paul Brook <paul@codesourcery.com>
13295
13296 * MAINTAINERS: Add myself to write-after-approval.
13297
81f08b92
AC
132982004-01-20 Andrew Cagney <cagney@redhat.com>
13299
5a1efed7
AC
13300 * ax-gdb.c (print_axs_value): Delete unused function.
13301 * jv-lang.c (java_lookup_type): Delete unused function.
13302 * cli/cli-dump.c (dump_filetype): Delete unused function.
13303 * remote-mips.c (remote_mips_insert_hw_breakpoint)
13304 (remote_mips_remove_hw_breakpoint): Delete unused functions.
13305 (mips_getstring): Delete unused function.
13306 (pmon_insert_breakpoint): Delete #if0ed function.
13307 (PMON_MAX_BP): Delete #if0ed MACRO.
13308 (mips_pmon_bp_info): Delete #if0ed variable.
13309 (pmon_remove_breakpoint): Delete #if0ed function.
13310 * monitor.c (monitor_write_even_block): Delete unused function.
13311 (monitor_write_memory_block): Delete #if0ed code.
13312 * dink32-rom.c (dink32_load): Delete unused function.
13313 (_initialize_dink32_rom): Delete #if0ed code.
13314 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
13315
b0a30fce
AC
13316 * tui/tui-command.c: Update references.
13317 * tui/tui-io.c: Update references.
13318 * tui/tui-command.h: Update copyright.
13319 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
13320
81f08b92
AC
13321 * source.c (ambiguous_line_spec): Delete never-defined function.
13322 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
13323 * gdbtypes.c (add_name, add_mangled_type): Ditto.
13324 * cli/cli-cmds.c (validate_comname): Ditto.
13325
65f05602
AC
13326 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
13327 "tui-data.h".
13328 (tui_set_disassem_content): Rename tuiSetDisassemContent.
13329 (tui_show_disassem): Rename tuiShowDisassem.
13330 (tui_show_disassem_and_update_source): Rename
13331 tuiVerticalDisassemScroll.
13332 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
13333 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
13334 * tui/tui.h: Update copyright.
13335 (enum tui_status): Define.
13336 * tui/tui-data.h (enum tui_scroll_direction): Define.
13337 * tui/tui-disasm.c: Update copyright. Update references.
13338 * tui/tui-winsource.c: Update copyright. Update references.
13339 * tui/tui-win.c: Update references.
13340 * tui/tui-layout.c: Update references.
13341
6bb0384f
AC
133422004-01-20 Andrew Cagney <cagney@redhat.com>
13343
13344 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
13345 sym2 to start of block.
13346
9175c9a3
MC
133472004-01-19 Michael Chastain <mec.gnu@mindspring.com>
13348
13349 * MAINTAINERS: Delete mmalloc.
13350 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
13351 * NEWS: Mention removal of --with-malloc.
13352 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
13353 * config.in: Regenerate.
13354 * configure: Regenerate.
6bb0384f
AC
13355 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
13356 USE_MMALLOC, MMCHECK_FORCE.
9175c9a3
MC
13357 * gdbinit.in: Remove mmalloc.
13358 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
13359 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
13360 * config/i386/go32.mh: Likewise.
13361 * config/i386/interix.mh: Likewise.
13362 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
13363
4fcef00a
JJ
133642004-01-19 Jeff Johnston <jjohnstn@redhat.com>
13365
13366 * linespec.c (decode_variable, symtab_from_filename): Call
13367 error_silent with error message instead of throwing an exception
13368 directly.
13369 * defs.h (error_silent, error_output_message): Add prototypes.
13370 (catch_exceptions_with_msg): Ditto.
13371 * utils.c (error_silent, error_output_message): New functions.
13372 * top.c (catch_exceptions_with_msg): New function.
13373
8e94b928
NR
133742004-01-20 Nick Roberts <nick@nick.uklinux.net>
13375
13376 * mi/mi-cmds.h (enum print_values): Add definition.
13377
13378 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
13379 type and value for simple data types and just the name and type
13380 for complex ones, if required.
13381
13382 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
13383 children, if required.
13384
a02d6af8
KB
133852004-01-19 Kevin Buettner <kevinb@redhat.com>
13386
13387 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
13388 unused declarations.
13389
78a4a9b9
AC
133902004-01-19 Andrew Cagney <cagney@redhat.com>
13391
13392 * top.h (mapped_symbol_files): Delete declaration.
13393 * main.c (captured_main): Delete option "m" and "mapped".
13394 * objfiles.c (mapped_symbol_files): Delete variable.
13395 * symfile.c (symbol_file_command): Delete mmap code.
13396 (symbol_file_add_with_addrs_or_offsets): Ditto.
13397 (add_symbol_file_command, reread_separate_symbols): Ditto.
13398 * objfiles.h (OBJF_MAPPED): Delete.
13399 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
13400 (free_objfile) [USE_MMALLOC]: Ditto.
13401 (open_existing_mapped_file): Delete function.
13402 (open_mapped_file): Delete function.
13403 (map_to_file): Delete function.
13404
2dbd5e30
KB
134052004-01-19 Kevin Buettner <kevinb@redhat.com>
13406
13407 * infrun.c (step_into_function): Account for possible breakpoint
13408 adjustment when computing ``stop_func_start''.
13409
437b434f
KB
134102004-01-19 Kevin Buettner <kevinb@redhat.com>
13411
13412 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
13413 the region size against the size of a pointer, not the size of
13414 a register as given by DEPRECATED_REGISTER_SIZE.
13415
55fb0713
AC
134162004-01-19 Andrew Cagney <cagney@redhat.com>
13417
13418 * tui/tui-regs.h: Include "tui-data.h".
13419 (tuiFirstRegElementNoInLine): Delete declaration.
13420 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
13421 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
13422 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
13423 (tui_calculate_regs_column_count): Rename
13424 tuiCalculateRegsColumnCount.
13425 (tui_check_register_values): Rename tuiCheckRegisterValues.
13426 (tui_show_registers): Rename tuiShowRegisters.
13427 (tui_display_registers_from_line): Rename
13428 tuiDisplayRegistersFromLine.
13429 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
13430 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
13431 (tui_first_reg_element_no_inline): Rename
13432 tuiFirstRegElementNoInLine.
13433 * tui/tui-data.h: Update copyright.
13434 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
13435 * tui/tui-windata.c: Update copyright, update references.
13436 * tui/tui-regs.c: Update copyright, update references.
13437 * tui/tui-win.c: Update copyright, update references.
13438 * tui/tui-layout.c: Update copyright, update references.
fe61caab 13439
cebe9500
AC
134402004-01-18 Andrew Cagney <cagney@redhat.com>
13441
bcdf1568
AC
13442 * tui/tui-io.c: Update copyright.
13443 (key_is_end_sequence, key_is_backspace): New functions.
13444 (key_is_command_char, key_is_start_sequence): New function.
13445 (tui_getc): Update references.
13446 * tui/tui-io.h: Update copyright.
13447 (m_tuiStartNewLine): Delete macro.
13448 (m_isBackspace, m_isDeleteChar): Delete macros.
13449 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
13450 (m_isNextPage, m_isPrevPage): Delete macros.
13451 (m_isLeftArrow, m_isRightArrow): Delete macros.
13452 (m_isXdbStyleCommandChar): Delete macro.
13453 (key_is_start_sequence): Declare, replace m_isStartSequence.
13454 (key_is_end_sequence): Declare, replace m_isEndSequence.
13455 (key_is_backspace): Declare ,replace m_isBackspace.
13456 (key_is_command_char): Declare, replace m_isCommandChar.
13457 * tui/tui-command.c: Update copyright.
13458 (tuiDispatchCtrlChar): Update references.
13459
130d87e6
AC
13460 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
13461 tuiSourceWin.h.
13462
d7b2e967
AC
13463 * tui/tui-command.c: Rename tui/tuiCommand.c.
13464 * tui/tui-command.h: Rename tui/tuiCommand.h.
13465 * tui/tui-data.c: Rename tui/tuiData.c.
13466 * tui/tui-data.h: Rename tui/tuiData.h.
13467 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
13468 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
13469 * tui/tui-io.c: Rename tui/tuiIO.c.
13470 * tui/tui-io.h: Rename tui/tuiIO.h.
13471 * tui/tui-layout.c: Rename tui/tuiLayout.c.
13472 * tui/tui-layout.h: Rename tui/tuiLayout.h.
13473 * tui/tui-regs.c: Rename tui/tuiRegs.c.
13474 * tui/tui-regs.h: Rename tui/tuiRegs.h.
13475 * tui/tui-source.c: Rename tui/tuiSource.c.
13476 * tui/tui-source.h: Rename tui/tuiSource.h.
13477 * tui/tui-stack.c: Rename tui/tuiStack.c.
13478 * tui/tui-stack.h: Rename tui/tuiStack.h.
13479 * tui/tui-win.c: Rename tui/tuiWin.c.
13480 * tui/tui-win.h: Rename tui/tuiWin.h.
13481 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
13482 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
13483 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
13484 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
13485 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
13486 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
13487 * tui/tui-file.c: Update includes.
13488 * tui/tui-hooks.c: Update includes.
13489 * tui/tui-interp.c: Update includes.
13490 * tui/tui.c: Update includes.
13491 * Makefile.in: Update all tui/ dependencies.
13492 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
13493
b2100910
AC
13494 * Makefile.in: Update copyright. Update dependencies.
13495
cebe9500
AC
13496 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
13497 problem.
13498
c6f0559b
AC
134992004-01-18 Andrew Cagney <cagney@redhat.com>
13500
43e9390b
AC
13501 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
13502 instead of register_gdbarch_init.
13503
c6f0559b
AC
13504 * remote-sds.c (tohex): Delete unused function. Update copyright.
13505 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
13506 * v850-tdep.c (v850_register_virtual_size): Ditto.
13507 * target.c (normal_target_post_startup_inferior): Ditto.
13508 * source.c (ambiguous_line_spec): Ditto.
13509 * remote.c (adapt_remote_get_threadinfo): Ditto.
13510 * mi/mi-out.c (out_field_fmt): Ditto.
13511 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
13512 (output_control_change_notification): Ditto.
13513 * m68k-tdep.c (m68k_register_byte): Ditto.
13514 (m68k_remote_breakpoint_from_pc): Ditto.
13515 * ui-out.c (init_ui_out_state): Delete unused declaration.
13516 * stabsread.c (search_value): Ditto.
13517 * mi/mi-cmd-env.c (env_cli_command): Ditto.
13518 * maint.c (print_section_table): Ditto.
13519 * infrun.c (set_follow_fork_mode_command): Ditto.
13520
a8504492
MK
135212004-01-18 Mark Kettenis <kettenis@gnu.org>
13522
13523 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
13524 DW_CFA_def_cfa_exporession. Add support for
13525 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
13526 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
13527
0bd8997e
AC
135282004-01-18 Andrew Cagney <cagney@redhat.com>
13529
13530 * ocd.c: Update copyright.
13531 (bdm_read_register_command): Delete unused function.
13532 (_initialize_remote_ocd): Delete commented out reference.
13533 (get_quoted_char, reset_packet): Delete #if0ed function.
13534 (output_packet, put_quoted_char): Delete #if0ed function.
13535 (stu_put_packet, stu_get_packet): Delete #if0ed function.
13536 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
13537 (BDM_BREAKPOINT): Delete #if0ed macro.
13538 (remote_timeout): Delete #if0ed variable.
13539
31bb40e4
MK
135402004-01-18 Mark Kettenis <kettenis@gnu.org>
13541
13542 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
13543 (core-sol2.o): Remove dependency.
13544 * core-sol2.c: Remove file.
13545
887432a5
AC
135462004-01-17 Andrew Cagney <cagney@redhat.com>
13547
13548 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
13549 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
13550 enums.
13551
29182b13
DJ
135522004-01-17 Daniel Jacobowitz <drow@mvista.com>
13553
13554 * remote.c: Update copyright years.
13555
2963ee1d
DJ
135562004-01-17 Daniel Jacobowitz <drow@mvista.com>
13557
13558 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
13559
79d45cd4
AC
135602004-01-17 Andrew Cagney <cagney@redhat.com>
13561
ee300cd4
AC
13562 * mdebugread.c: Update copyright.
13563 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
13564 (parse_type, parse_procedure): Ditto.
13565 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
13566
fcacc9c2
AC
13567 * cris-tdep.c (cris_store_struct_return): Put back accidently
13568 deleted function.
13569
79d45cd4
AC
13570 * gdbarch.sh: Update copyright year.
13571 * gdbarch.h, gdbarch.c: Re-generate.
13572
b263358a
DJ
135732004-01-17 Daniel Jacobowitz <drow@mvista.com>
13574
13575 Suggested by George Anzinger.
13576 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
13577 correct stack offset. Include unknown opcode numbers in the error
13578 message.
13579
931aecf5
AC
135802004-01-17 Andrew Cagney <cagney@redhat.com>
13581
13582 * x86-64-tdep.c (x86_64_init_abi): No need to clear
13583 extract_struct_value_address, i386 does not set it.
13584 * sparc64-tdep.c (sparc64_init_abi): Do not set
13585 extract_struct_value_address, never called.
13586 (sparc64_extract_struct_value_address): Delete function.
13587 * m68hc11-tdep.c: Update copyright.
13588 (m68hc11_gdbarch_init): Delete redundant assignment of
13589 extract_struct_value_address.
13590 * i386-tdep.c: Update copyright.
13591 (i386_gdbarch_init): Do not set extract_struct_value_address,
13592 never called.
13593 (i386_extract_struct_value_address): Delete function.
13594 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
13595 extract_struct_value_address, never called.
13596 (sparc32_extract_struct_value_address): #if 0 function. Add
13597 comments explaining its future.
13598
756fe439
DJ
135992004-01-17 Daniel Jacobowitz <drow@mvista.com>
13600
13601 * arm-tdep.c (arm_write_pc): New function.
13602 (arm_gdbarch_init): Call set_gdbarch_write_pc.
13603
e74f0f02
DJ
136042004-01-17 Daniel Jacobowitz <drow@mvista.com>
13605
13606 * breakpoint.c (must_shift_inst_regs): Delete.
13607 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
13608 and SHIFT_INST_REGS.
13609 * infcmd.c (step_1, step_1_continuation): Delete references to
13610 SHIFT_INST_REGS.
13611 * infrun.c (keep_going): Likewise.
13612 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
13613 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
13614
b6cb9035
AC
136152004-01-17 Andrew Cagney <cagney@redhat.com>
13616
444a1e2e
AC
13617 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13618 * gdbarch.h, gdbarch.c: Re-generate.
13619 * infcmd.c (print_return_value): Delete reference to
13620 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
13621
def7e6ed
AC
13622 * cris-tdep.c (cris_gdbarch_init): Do not set
13623 deprecated_extract_struct_value_address.
13624
07be497a
AC
13625 * xstormy16-tdep.c: Update copyright.
13626 (xstormy16_extract_struct_value_address): Update to current
13627 extract struct value address interface.
13628 (xstormy16_gdbarch_init): Set extract_struct_value_address.
13629 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
13630 current extract struct value address interface.
13631 (sh64_gdbarch_init): Set extract_struct_value_address.
13632
6b4d5c91
AC
13633 * cris-tdep.c: Update copyright.
13634 (cris_extract_struct_value_address): Delete function.
13635 (struct_return_address): Delete variable.
13636 (cris_store_struct_return): Do not set struct_return_address.
13637
464e0365
AC
13638 * mcore-tdep.c: Update copyright.
13639 (mcore_extract_struct_value_address): Delete function. Update
13640 comments.
13641 (mcore_gdbarch_init): Update.
13642 * mn10300-tdep.c: Update copyright.
13643 (mn10300_extract_struct_value_address): Delete function.
13644 (mn10300_gdbarch_init): Update.
13645 * v850-tdep.c: Update copyright.
13646 (v850_extract_struct_value_address): Delete.
13647 (v850_gdbarch_init): Update.
13648 * ns32k-tdep.c: Update copyright.
13649 (ns32k_extract_struct_value_address): Delete.
13650 (ns32k_gdbarch_init): Update.
13651 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
13652 (hppa_gdbarch_init): Update.
13653 * vax-tdep.c: Update copyright.
13654 (vax_extract_struct_value_address): Delete.
13655 (vax_gdbarch_init): Update.
13656
afb18d0f
AC
13657 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
13658 * gdbarch.h, gdbarch.c: Re-generate.
13659 * procfs.c (procfs_fetch_registers): Delete reference to
13660 DEPRECATED_NPC_REGNUM.
13661 (procfs_store_registers): Ditto.
13662 * regcache.c (generic_target_write_pc): Simplify.
13663 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
13664
a698f53e
AC
13665 * core-sol2.c (fetch_core_registers): Replace
13666 DEPRECATED_NPC_REGNUM with equivalent tdep value.
13667
adc11376
AC
13668 * hppa-tdep.c: Update copyright year.
13669 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
13670 NPC_REGNUM.
13671 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
13672
b6cb9035
AC
13673 * mips-tdep.c (mips_write_pc): New function.
13674 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
13675 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
13676 (mips_find_saved_regs, mips_software_single_step: Ditto.
13677 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
13678 mips_init_extra_frame_info, mips_pop_frame): Ditto.
13679
6d82d43b
AC
136802004-01-17 Andrew Cagney <cagney@redhat.com>
13681
13682 * mips-tdep.c: Re-indent. Group functions by ABI.
13683
71bd6bd4
AC
136842004-01-17 Andrew Cagney <cagney@redhat.com>
13685
13686 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
13687 * gdbarch.c: Re-generate.
13688 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
13689 DECR_PC_AFTER_BREAK to zero.
13690 * vax-tdep.c (vax_gdbarch_init): Ditto.
13691 * v850-tdep.c (v850_gdbarch_init): Ditto.
13692 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
13693 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
13694 * sh-tdep.c (sh_gdbarch_init): Ditto.
13695 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
13696 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
13697 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
13698 * mips-tdep.c (mips_gdbarch_init): Ditto.
13699 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
13700 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13701 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
13702 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
13703 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
13704 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
13705 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
13706 * frv-tdep.c (frv_gdbarch_init): Ditto.
13707 * cris-tdep.c (cris_gdbarch_init): Ditto.
13708 * avr-tdep.c (avr_gdbarch_init): Ditto.
13709 * arm-tdep.c (arm_gdbarch_init): Ditto.
13710 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
13711
a02abb62
JB
137122004-01-17 J. Brobecker <brobecker@gnat.com>
13713
13714 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
13715 Delete, no longer used.
13716 (read_subrange_type): New function, mostly extracted from
13717 read_array_type().
13718 (read_array_type): Replace extracted code by call to
13719 read_subrange_type().
13720 (dwarf2_get_attr_constant_value): New function.
13721 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
13722 (add_partial_symbol): Likewise.
13723 (process_die): Likewise.
13724 (new_symbol): Likewise.
13725 (read_type_die): Likewise.
13726
cf5b2f1b
AC
137272004-01-16 Andrew Cagney <cagney@redhat.com>
13728
13729 * symfile.c: Update copyright year.
13730 (compare_symbols): Delete unused function.
13731 * stabsread.c: Update copyright year.
13732 (lrs_general_complaint): Delete unused function.
13733 (ref_search_value): Ditto.
13734 (get_substring): Delete declaration.
13735 * sh64-tdep.c: Update copyright year.
13736 (sh64_get_gdb_regnum): Delete unused function.
13737 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
13738 Delete unused function.
13739
d33b9831
MK
137402004-01-17 Mark Kettenis <kettenis@gnu.org>
13741
13742 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
13743 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
13744
7aea86e6
AC
137452004-01-16 Andrew Cagney <cagney@redhat.com>
13746
13747 Changes from Peter Schauer.
13748 * rs6000-tdep.c: Update copyright year.
13749 (rs6000_push_dummy_call): Update the stack pointer before
13750 accessing the corresponding stack region.
13751 * rs6000-nat.c: Update copyright year.
13752 (set_host_arch): Set "info.abfd" to "exec_bfd".
13753
26b0da32
MK
137542004-01-15 Mark Kettenis <kettenis@gnu.org>
13755
13756 * blockframe.c: Update copyright year.
13757 (inside_entry_func): Don't treat a zero PC specially.
13758
86fbe6cc
EZ
137592004-01-14 Elena Zannoni <ezannoni@redhat.com>
13760
13761 * gcore.c (gcore_copy_callback): Use paddr_d to print size
13762 variable.
13763 (gcore_create_callback): Ditto. Skip any memory segment that has
13764 no permissions set.
13765
63d06c5c
DC
137662004-01-14 David Carlton <carlton@kealia.com>
13767
13768 Change symbols for C++ nested types to contain the fully qualified
13769 name, if possible. (At least in the DWARF-2 case.) Partial fix
13770 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
13771 c++/895.
13772 * c-exp.y (qualified_type): Handle types nested within classes.
13773 * cp-namespace.c: Update comments.
13774 (cp_set_block_scope): Delete #if 0.
13775 (cp_lookup_nested_type): Handle types nested within classes.
13776 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
13777 when appropriate.
13778 (add_partial_symbol): Add the name of the enclosing namespace to
13779 types.
13780 (pdi_needs_namespace): New.
13781 (add_partial_namespace): Tweak comment.
13782 (add_partial_structure): New.
13783 (psymtab_to_symtab_1): Initialize processing_current_prefix
13784 here...
13785 (process_die): instead of here.
13786 (read_structure_scope): Try to figure out the name of the class or
13787 namespace that the structure might be defined within.
13788 (read_enumeration): Generate fully-qualified names, if possible.
13789 (read_namespace): Don't set name to NULL.
13790 (die_specification): New.
13791 (new_symbol): Generate fully-qualified names for types.
13792 (read_type_die): Determine appropriate prefix.
13793 (determine_prefix): New.
13794 (typename_concat): New.
13795 (class_name): New.
13796 * valops.c (value_aggregate_elt): Pass NOSIDE to
13797 value_struct_elt_for_reference.
13798 (value_struct_elt_for_reference): Make static, add NOSIDE
13799 parameter, call value_maybe_namespace_elt as a last resort.
13800 (value_namespace_elt): Break out code into
13801 value_maybe_namespace_elt.
13802 (value_maybe_namespace_elt): New.
13803
87783b8b
AC
138042004-01-12 Andrew Cagney <cagney@redhat.com>
13805
13806 * mips-tdep.c (mips_convert_register_p): Handle both raw and
13807 cooked floating-point registers.
13808 (mips_gdbarch_init): Set convert_register_p, register_to_value,
13809 and value_to_register.
13810
6503b91e
AC
138112004-01-13 Andrew Cagney <cagney@redhat.com>
13812
13813 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
13814 * gdbarch.c: Re-generate.
13815 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
13816 FUNCTION_START_OFFSET.
13817 * v850-tdep.c (v850_gdbarch_init): Ditto.
13818 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
13819 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
13820 * sh-tdep.c (sh_gdbarch_init): Ditto.
13821 * s390-tdep.c (s390_gdbarch_init): Ditto.
13822 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
13823 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
13824 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
13825 * mips-tdep.c (mips_gdbarch_init): Ditto.
13826 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
13827 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
13828 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13829 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
13830 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
13831 * i386-tdep.c (i386_gdbarch_init): Ditto.
13832 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
13833 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
13834 * frv-tdep.c (frv_gdbarch_init): Ditto.
13835 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
13836 * cris-tdep.c (cris_gdbarch_init): Ditto.
13837 * avr-tdep.c (avr_gdbarch_init): Ditto.
13838 * arm-tdep.c (arm_gdbarch_init): Ditto.
13839 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
13840
ea1dd7bc
DJ
138412004-01-13 Daniel Jacobowitz <drow@mvista.com>
13842
13843 * infrun.c (follow_fork_mode_ask): Remove.
13844 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
13845 (follow_fork): Simplify and remove internal error for
13846 follow_fork_mode_ask.
13847 (_initialize_infrun): Update "set follow-fork-mode" help text.
13848
0f0cffd2
AC
138492004-01-13 Andrew Cagney <cagney@redhat.com>
13850
13851 * configure.in: Update copyright year.
13852 (build_warnings): Add -Wunused-label.
13853 * configure: Re-generate.
13854
de38af99
AC
138552004-01-12 Andrew Cagney <cagney@redhat.com>
13856
954a7fba
AC
13857 * exec.h (exec_ops): Make "extern".
13858
de38af99
AC
13859 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
13860 the function is void.
13861 (mips_pseudo_register_write): Ditto.
13862
1a111ce3
AC
138632004-01-12 Andrew Cagney <cagney@redhat.com>
13864
13865 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
13866 call. Never defined.
13867 * sparc-tdep.h (struct frame_info): Add opaque declaration.
13868 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
13869 (struct sparc_gregset, struct regcache): Ditto.
13870 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
13871
48efe704
AC
138722004-01-12 Andrew Cagney <cagney@redhat.com>
13873
13874 * mi/ChangeLog: Delete file. Renamed to ...
13875 * mi/ChangeLog-1999-2003: New file.
13876 * tui/ChangeLog: Delete file. Renamed to ...
13877 * tui/ChangeLog-1998-2003: New file.
fe61caab 13878
a54124c5
MK
138792004-01-11 Mark Kettenis <kettenis@gnu.org>
13880
2ca62865
MK
13881 * sparc64nbsd-tdep.c: Include "regset.h".
13882 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
13883 Remove variables.
13884 (fetch_core_registers): Remove function.
13885 (sparc64nbsd_core_fns): Remove variable.
13886 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
13887 functions.
13888 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
13889 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
13890 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
13891
ca9d58e9
MK
13892 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
13893 sparc_extract_struct_value_address.
13894 (sparc32_gdbarch_init): Set extract_struct_value_address.
13895 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
13896 function.
13897 (sparc64_init_abi): Set extract_struct_value_address. Don't set
13898 return_value_on_stack.
13899
3cc87ec0
MK
13900 * NEWS: Mention that %cs and %ss have been added to the AMD64
13901 configurations
13902
5bf00f29
MK
13903 * frame.c: Update copyright year.
13904 (get_prev_frame): Improve comment.
13905
4f7ec84e
MK
13906 * sparc64fbsd-tdep.c: Include "regset.h".
13907 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
13908 Remove variables.
13909 (fetch_core_registers): Remove function.
13910 (sparc64fbsd_core_fns): Remove variable.
13911 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
13912 functions.
13913 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
13914 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
46b58ce9 13915 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
4f7ec84e 13916
4e7b0cd3
MK
13917 * sparcnbsd-tdep.c: Include "regset.h".
13918 (fetch_core_registers): Remove function.
13919 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
13920 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
13921 functions.
13922 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
13923 TDEP->fpregset.
46b58ce9 13924 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
4e7b0cd3 13925
a54124c5
MK
13926 * sparc-tdep.h (struct regset): Provide opaque declaration.
13927 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
13928 fpregset and sizeof_fpregset members.
13929 * sparc-tdep.c (struct regset): Provide opaque declaration.
13930 (sparc_regset_from_core_section): New function.
13931 (sparc32_gdbarch_init): Initialize TDEP->gregset,
13932 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
13933 Set regset_from_core_section when appropriate.
13934
29ff87c5
MK
139352004-01-10 Mark Kettenis <kettenis@gnu.org>
13936
79b1ab3d
MK
13937 * x86-64-tdep.c (amd64_non_pod_p): New function.
13938 (amd64_classify_aggregate): Return class memory for non-POD
13939 C++ structure types.
13940
6470d250
MK
13941 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
13942 argument. Use it to reserve a register if necessary.
13943 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
13944 amd64_push_arguments.
13945
562c50c2
MK
13946 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
13947
af233647
MK
13948 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
13949 register numbers in comments.
13950 * x86-64-tdep.h: Update copyright year.
13951 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
13952 Adjust for addition of %cs and %ss.
13953 * amd64fbsd-nat.c: Update copyright year.
13954 (reg_offset): Add register offsets for %cs and %ss.
13955 * amd64fbsd-tdep.c: Update copyright year.
13956 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
13957 (amd64fbsd_sc_reg_offset): Likewise.
13958 * x86-64-linux-nat.c: Update copyright year.
13959 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
13960 and %ss.
13961 * amd64nbsd-nat.c: Update copyright year.
13962 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
13963 * amd64nbsd-tdep.c: Update copyright year.
13964 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
13965 * x86-64-linux-tdep.c: Update copyright year.
13966 (user_to_gdb_regmap): Add mapping for %cs and %ss.
13967 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
13968 * regformats/reg-x86-64.dat: Add %cs and %ss.
13969
29ff87c5
MK
13970 * blockframe.c (inside_entry_func): Reformat. Introduce new local
13971 variables to prevent long lines. Update comments to reflect
13972 reality.
13973
38d518c9
EZ
139742004-01-09 David Carlton <carlton@kealia.com>
13975
13976 Checked in by Elena Zannoni <ezannoni@redhat.com>.
13977 * dwarf2read.c (read_namespace): Pull out name-generating code
13978 into namespace_name. Rename previous_namespace to previous_prefix
13979 and processing_current_namespace to processing_current_prefix..
13980 (namespace_name): New function.
13981 (add_partial_symbol): Substitute uses of pdi->name with
13982 actual_name.
13983 * cp-support.h: Rename processing_current_namespace to
13984 processing_current_prefix.
13985 Update copyright year.
13986 * cp-namespace.c: Rename processing_current_namespace to
13987 processing_current_prefix.
13988 Update copyright year.
fe61caab 13989
1e4728e7
AC
139902004-01-09 Andrew Cagney <cagney@redhat.com>
13991
13992 * jv-valprint.c, ser-unix.c: Add missing copyright years.
13993
c77c642a
MK
139942004-01-09 Mark Kettenis <kettenis@gnu.org>
13995
13996 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
13997 complaining.
13998 (process_one_symbol): Deal with N_PATCH stabs.
13999
b44e9041
EZ
140002004-01-09 Elena Zannoni <ezannoni@redhat.com>
14001
14002 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
14003 ifdeffed code.
14004 Update copyright year.
38d518c9 14005
eccfb640
MC
140062004-01-08 Michael Chastain <mec.gnu@mindspring.com>
14007
14008 * config/pa/tm-hppa.h: Update extern declarations for
14009 hppa32_hpux_frame_saved_pc_in_sigtramp,
14010 hppa32_hpux_frame_base_before_sigtramp, and
14011 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
14012
848c5feb
MC
140132004-01-08 Michael Chastain <mec.gnu@mindspring.com>
14014
14015 * config/pa/tm-hppah.h: Update copyright years.
14016
3cc5d663
AC
140172004-01-08 Andrew Cagney <cagney@redhat.com>
14018
14019 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
14020 (mips_o32_reg_struct_has_addr): Delete function.
14021 (mips_gdbarch_init): Update.
14022 (mips_extract_struct_value_address): Delete function.
14023
bfec0b41
JJ
140242004-01-08 David Mosberger <davidm@hpl.hp.com>
14025
14026 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
14027 reality.
14028
16e109ca
AC
140292004-01-07 Andrew Cagney <cagney@redhat.com>
14030
6214a8a1
AC
14031 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
14032 architecture's elf flags (when available).
14033
8d5838b5
AC
14034 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
14035 FPU to the start, check the MIPS FPU when looking for an old
14036 architecture.
14037 (set_mipsfpu_single_command): Update the architecture.
14038 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
14039
480d3dd2
AC
14040 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
14041 (mips_mask_address_p): Add "tdep" parameter.
14042 (show_mask_address, mips_addr_bits_remove): Update.
14043 (mips_dump_tdep): Update.
14044 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
14045 (MIPS_STACK_ARGSIZE): Delete macro.
14046 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
14047 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
14048 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
14049 (mips_dump_tdep): Update.
14050 (MIPS_SAVED_REGSIZE): Delete macro.
14051 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
14052 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
14053 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
14054 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
14055 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
14056 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
14057 (mips_pop_frame, return_value_location): Update.
14058 (mips_n32n64_return_value, mips_dump_tdep): Update.
14059
ec03c1ac
AC
14060 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
14061 MIPS ABI.
14062
16e109ca
AC
14063 * mips-tdep.c: Update copyright.
14064 (mips_gdbarch_init): Merge two code blocks handling the register
14065 name and number layout.
14066
15255275
MS
140672004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
14068
14069 * tracepoint.c (validate_actionline): Fix segv at EOF
14070
9f9057da
MC
140712004-01-07 Michael Chastain <mec.gnu@mindspring.com>
14072
14073 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
14074 properly for static fields.
14075
0127c0d3 140762004-01-06 Jeff Johnston <jjohnstn@redhat.com>
91562f53 14077 Jason Molenda <jmolenda@apple.com>
0127c0d3
JJ
14078
14079 * disasm.c: Update copyright to include 2004.
14080 (do_mixed_source_and_assembly): For uiout asm list
14081 and tuple cleanups, initialize to null_cleanup instead of
fe61caab 14082 NULL and do so prior to loop. Only reset when we close off
0127c0d3 14083 the tuple/list. Move check for whether to close off the
fe61caab 14084 asm tuple/list to after dump_insns call where it will be run
0127c0d3
JJ
14085 on each loop iteration.
14086
5269965e
AC
140872004-01-05 Andrew Cagney <cagney@redhat.com>
14088
54f1137d
AC
14089 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
14090 should be a switch case and not a label.
14091 * mips-tdep.c (mips32_next_pc): Delete unused labels
14092 "greater_equal_branch" and "less_zero_branch".
14093 * jv-valprint.c (java_print_value_fields): Delete unused label
14094 "flush_it".
14095
5269965e
AC
14096 * target.c (unpush_target): Only close a target that is in the
14097 target stack.
14098
dbc22fa1
MK
140992004-01-05 Mark Kettenis <kettenis@gnu.org>
14100
9515395e
MK
14101 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
14102 address from [sp + 64] instead of %o2.
14103
dbc22fa1
MK
14104 * frame.c (get_prev_frame): Don't try to unwind the PC. This
14105 fixes PR backtrace/1476.
14106
5439edaa
AC
141072004-01-05 Andrew Cagney <cagney@redhat.com>
14108
14109 * libunwind-frame.h (struct frame_id): Add opaque declaration,
14110 move to start of file.
14111 * i386-tdep.h (struct regcache): Add opaque declaration.
14112 * config/ia64/nm-linux.h (struct target_ops): Add opaque
14113 declaration.
14114 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
14115 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
14116 * win32-nat.c (fake_create_process): Use ISO C style definition.
14117 * stabsread.c (define_symbol): Delete #ifndef
14118 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
14119 stabs_argument_has_addr call, macro never defined.
14120
19061abe
MC
141212004-01-04 Michael Chastain <mec.gnu@mindspring.com>
14122
14123 * op50-rom.c: Delete.
14124 * w89k-rom.c: Delete.
14125 * Makefile.in: Remove references.
14126
e53bef9f
MK
141272004-01-04 Mark Kettenis <kettenis@gnu.org>
14128
14129 * x86-64-tdep.c: Update copyright year.
14130 (struct amd64_register_info): Rename from x86_64_register_info.
14131 (amd64_register_info): Rename from x86_64_register_info.
14132 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
14133 (amd64_register_name): Rename from x86_64_register_name.
14134 (amd64_register_type): Rename from x86_64_register_type.
14135 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
14136 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
14137 (amd64_dwarf_reg_to_regnum): Rename from
14138 x86_64_dwarf_reg_to_regnum.
14139 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
14140 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
14141 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
14142 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
14143 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
14144 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
14145 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
14146 (amd64_frame_cache): Rename from x86_64_frame_cache.
14147 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
14148 (amd64_frame_prev_register): Rename from
14149 x86_64_frame_prev_register.
14150 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
14151 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
14152 (amd64_sigtramp_frame_cache): Rename from
14153 x86_64_sigtramp_frame_cache.
14154 (amd64_sigtramp_frame_prev_register): Rename from
14155 x86_64_sigtramp_frame_prev_register.
14156 (amd64_sigtramp_frame_unwind): Rename from
14157 x86_64_sigtramp_frame_unwind.
14158 (amd64_sigtramp_frame_sniffer): Rename from
14159 x86_64_sigtramp_frame_sniffer.
14160 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
14161 (amd64_frame_base): Rename from x86_64_frame_base.
14162 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
14163 (amd64_frame_align): Rename from x86_64_frame_align.
14164 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
14165 (amd64_regset_from_core_section): Rename from
14166 x86_64_regset_from_core_section.
14167 (x86_64_init_abi): Update comments.
14168
fca6aa58
NR
141692004-01-04 Nick Roberts <nick@nick.uklinux.net>
14170
14171 * MAINTAINERS (write after approval): Add myself.
14172
8ada74e3
MK
141732004-01-04 Mark Kettenis <kettenis@gnu.org>
14174
14175 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
14176 `float' arguments.
14177
5154b0cd
MK
141782004-01-04 Mark Kettenis <kettenis@gnu.org>
14179
14180 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
14181 such that it mentions a specific version of GCC that exhibits this
14182 bug.
14183
fb316966
MK
141842004-01-03 Mark Kettenis <kettenis@gnu.org>
14185
200cc553
MK
14186 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
14187 structure that has a single `float' member, store it in %f1 in
14188 addition to %f0.
14189
e226a4a0
MK
14190 * sparc-sol2-nat.c: Add missing '\'.
14191
b9d4c5ed
MK
14192 * sparc-tdep.c (sparc32_return_value): New function.
14193 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
14194 Remove functions.
14195 (sparc32_gdbarch_init): Set return_value, don't set
14196 extract_return_value, store_return_value, use_struct_convention
14197 and return_value_on_stack.
14198
fb316966
MK
14199 * sparc-sol2-nat.c: Add missing ')'.
14200
1af510a8
JB
142012004-01-03 J. Brobecker <brobecker@gnat.com>
14202
14203 * infrun.c (handle_step_into_function): New function.
14204 (handle_inferior_event): Extract out some code into the new
14205 function above.
14206
5cf4d23a
JB
142072004-01-03 J. Brobecker <brobecker@gnat.com>
14208
14209 * infrun.c (handle_inferior_event): Move the declaration of
14210 real_stop_pc inside the if blocks where it is used.
14211
60af1db2
MK
142122004-01-03 Mark Kettenis <kettenis@gnu.org>
14213
14214 * sparc64-tdep.c (sparc64_16_byte_align_p)
14215 (sparc64_store_floating_fields, sparc64_store_floating_fields):
14216 Use check_typedef to get subtypes of structures and unions.
14217 (sparc64_store_return_value): Fix calculation of the appropriate
14218 offset into VALBUF when storing a structure or union.
14219 (sparc64_return_value): New function.
14220 (sparc64_use_struct_convention): Remove function.
14221 (sparc64_init_abi): Set return_value, don't set
14222 extract_return_value, store_return_value and
14223 use_struct_convention.
14224
1a901d3f
EZ
142252004-01-03 Eli Zaretskii <eliz@elta.co.il>
14226
14227 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
14228 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
14229 gdb/config/alpha/xm-alphaosf.h,
14230 gdb/config/powerpc/tm-ppcle-eabi.h,
14231 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
14232 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
14233 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
14234 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
14235 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
14236 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
14237 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
14238 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
14239 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
14240 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
14241 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
14242 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
14243 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
14244 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
14245 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
14246 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
14247 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
14248 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
14249 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
14250 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
14251 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
14252 Remove lines for .cvsignore files.
14253
ef52e463
JB
142542004-01-03 J. Brobecker <brobecker@gnat.com>
14255
14256 * infrun.c: Back out the previous change.
14257
cb1bf9dc
MK
142582004-01-03 Mark Kettenis <kettenis@gnu.org>
14259
f0424ef6
MK
14260 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
14261 sparc-*-sunos4* to the list of REMOVED configurations.
14262
cb1bf9dc
MK
14263 * configure.tgt: Add back sparc-*-vxworks*.
14264 * remote-vxsparc.c: Remove all includes except for "defs.h",
14265 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
14266 Include "sparc-tdep.h".
14267 (SPARC_R_G1): New define.
14268 (vxsparc_gregset): New variable.
14269 (ext_format_sparc): Remove extern declaration.
14270 (vx_read_register): Rewrite to use sparc32_supply_gregset and
14271 sparc32_supply_fpregset.
14272 (vx_write_register): Rewrite to use sparc32_collect_gregset,
14273 sparc_collect_rwindow and sparc32_collect_fpregset.
14274 * config/sparc/tm-vxworks.h: New file, based on recently removed
14275 tm-vxsparc.h.
14276 * config/sparc/vxworks.mt: New file, based on recently removed
14277 vxworks.mt.
fe61caab 14278
5e938f9f
JB
142792004-01-03 J. Brobecker <brobecker@gnat.com>
14280
14281 * infrun.c (handle_step_into_function): New function.
14282 (handle_inferior_event): Extract out some code into the new
14283 function above.
14284
386c036b
MK
142852004-01-02 Mark Kettenis <kettenis@gnu.org>
14286
14287 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
14288 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
14289 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
14290 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
14291 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
14292 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
14293 (sparc_nat_h): New variable.
14294 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
14295 (tm-sun4os4.h): Remove dependency.
14296 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
14297 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
14298 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
14299 sparc-tdep.o): Update dependencies.
14300 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
14301 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
14302 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
14303 dependencies.
14304 * configure.host: Remove existing sparc-*-lynxos*,
14305 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
14306 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
14307 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
14308 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
14309 triplets.
14310 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
14311 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
14312 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
14313 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
14314 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
14315 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
14316 sparc64-*-solaris2* and sparc64-*-* triplets.
14317 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
14318 "symtab.h" and "objfiles.h".
14319 (BIAS): Remove define.
14320 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
14321 (X_DISP19): Remove macros.
14322 (sparc_fetch_instruction): Remove function.
14323 (struct gdbarch_tdep): Remove definition.
14324 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
14325 (sparc_breakpoint_from_pc): Remove function.
14326 (struct sparc64_frame_cache): Remove definition.
14327 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
14328 sparc64_unwind_pc): Remove functions.
14329 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
14330 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
14331 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
14332 (sparc64_frame_cache): Change return type to `struct
14333 sparc_frame_cache *'. Simply call sparc_frame_cache.
14334 (sparc64_frame_this_id, sparc64_frame_prev_register,
14335 sparc64_frame_base_address): Use `struct sparc_frame_cache'
14336 instead of `struct sparc64_frame_cache.
14337 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
14338 sparc_analyze_control_transfer, sparc_software_single_step,
14339 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
14340 _initialize_sparc64_tdep): Remove functions.
14341 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
14342 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
14343 macros.
14344 (sparc64_supply_gregset, sparc64_collect_gregset,
14345 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
14346 (sparc64_init_abi): New function.
14347 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
14348 inclusion guard. Include "sparc-tdep.h".
14349 (BIAS): Define.
14350 (r_tstate_offset, r_fprs_offset): New defines.
14351 (enum sparc_regnum): Remove defenition.
14352 (enum sparc64_regnum): Reformat.
14353 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
14354 (sparc64_init_abi, sparc64_supply_gregset,
14355 sparc64_collect_gregset, sparc64_supply_fpregset,
14356 sparc64_collect_fpregset): New prototypes.
14357 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
14358 Add extern declarations.
14359 (sparc64_sol2_init_abi): New prototype.
14360 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
14361 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
14362 prototypes.
14363 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
14364 "sparnbsd-nat.h".
14365 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
14366 functions.
14367 (_initialize_sparc64fbsd_nat): Remove initialization of
14368 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
14369 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
fe61caab 14370 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
386c036b
MK
14371 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
14372 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
14373 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
14374 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
14375 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
14376 (sparc64fbsd_r_y_offset): Remove variables.
14377 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
14378 Make static and const.
14379 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
14380 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
14381 functions.
14382 (sparc64fbsd_gregset): New variable.
14383 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
14384 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
14385 and sparc64_supply_fpregset.
14386 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
14387 (sparc64fbsd_sigtramp_frame_this_id)
14388 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
14389 (sparc64fbsd_sigtramp_frame_unwind): New variable.
14390 (sparc64fbsd_sigtramp_frame_sniffer): New function.
14391 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
14392 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
14393 * sparcnbsd-tdep.c: Update copyright year. Include
14394 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
14395 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
14396 "value.h" and "sparcnbsd-tdep.h".
14397 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
14398 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
14399 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
14400 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
14401 defines.
14402 (sparcnbsd_gregset): New variable.
14403 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
14404 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
14405 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
14406 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
14407 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
14408 variables.
14409 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
14410 (sparc32nbsd_sigcontext_frame_this_id)
14411 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
14412 (sparc32nbsd_sigcontext_frame_unwind): New variable.
14413 (sparc32nbsd_sigtramp_frame_sniffer): New function.
14414 (sparcnbsd_get_longjmp_target_32,
14415 sparcnbsd_get_longjmp_target_64): Remove functions.
14416 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
14417 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
14418 sparcnbsd_init_elf): Remove.
14419 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
14420 (sparcnbsd_elf_init_abi): New functions.
14421 (_initialize_sparcnbsd_tdep): New prototype.
14422 (_initialize_sparnbsd_tdep): Update.
14423 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
14424 corelow.o. Add sparc64-nat.o and sparc-nat.o.
14425 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
14426 * config/sparc/linux.mh: Update comment.
14427 (XM_FILE, HOST_IPC): Remove variables.
14428 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
14429 sparc-linux-nat.o.
14430 * config/sparc/linux.mt: Update comment.
14431 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
14432 * config/sparc/nbsd.mt: Reformat.
14433 * config/sparc/nbsd64.mh: Update comment.
14434 (NATDEPFILES): Add sparc-nat.o.
14435 * config/sparc/nbsd64.mt: Update comment.
14436 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
14437 (TM_FILE): Set to tm-nbsd.h.
14438 * config/sparc/nbsdelf.mh: Update comment.
14439 (NATDEPFILES): Add sparc-nat.o.
14440 (XM_FILE): Delete.
14441 * config/sparc/nbsdaout.mh: Update comment.
14442 (NATDEPFILES): Add sparc-nat.o
14443 (XM_FILE): Delete.
14444 * config/sparc/nm-linux.h: Update copyright year. Don't include
14445 "config/nm-svr4.h" and "solib.h". Add protection against multiple
14446 inclusion.
14447 (KERNEL_U_SIZE): Remove define.
14448 (kernel_u_size): Remove prototype.
14449 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
14450 * config/sparc/nm-nbsd.h: Update copyright. Don't include
14451 "regcache.h".
14452 (CHILD_PREPARE_TO_STORE): Remove define.
14453 * config/sparc/nm-nbsdaout.h: Tweak some comments.
14454 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
14455 sparcnbsd-nat.c: Rewrite files.
14456 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
14457 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
14458 sparcnbsd-tdep.h: Remove files.
14459 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
14460 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
14461 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
14462 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
14463 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
14464 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
14465 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
14466 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
14467 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
14468 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
14469 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
14470 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
14471 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
14472 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
14473 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
14474 * config/sparc/linux64.mh, config/sparc/linux64.mt,
14475 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
14476 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
14477 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
14478
ee84457a
AC
144792004-01-02 Andrew Cagney <cagney@redhat.com>
14480
14481 From 2003-12-18 Kazuhiro Inaoka:
14482 * configure.host: Add m32r-linux target.
14483
0bc2134e
MC
144842004-01-02 Michael Chastain <mec.gnu@mindspring.com>
14485
14486 * top.c (print_gdb_version): Update year to 2004.
14487
89a72f9c
MM
144882004-01-02 Mark Mitchell <mark@codesourcery.com>
14489
14490 * MAINTAINERS: Add myself to the write-after-approval category.
14491
86b013ed
DJ
144922004-01-02 Daniel Jacobowitz <drow@mvista.com>
14493
14494 From Bernardo Innocenti <bernie@develer.com>:
14495 * configure.tgt: Add uClinux target.
14496
e42c9534
AC
144972004-01-02 Andrew Cagney <cagney@redhat.com>
14498
14499 * utils.c (do_my_cleanups): Make static, add forward declaration.
14500 * defs.h (do_my_cleanups): Delete declaration.
14501
162467d3
EZ
145022004-01-02 Eli Zaretskii <eliz@elta.co.il>
14503
14504 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
14505 bfd/ChangeLog-0203.
14506
78434e59
MK
145072004-01-02 Mark Kettenis <kettenis@gnu.org>
14508
14509 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
14510 in <machine/reg.h>.
14511 * configure, config.in: Regenerate.
14512
48efe704
AC
14513For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
14514tui/ChangeLog-1998-2003.
c906108c
SS
14515\f
14516Local Variables:
14517mode: change-log
14518left-margin: 8
14519fill-column: 74
14520version-control: never
14521End:
This page took 1.278095 seconds and 4 git commands to generate.