2004-11-23 Randolph Chung <tausq@debian.org>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
3ca64954
RC
12004-11-23 Randolph Chung <tausq@debian.org>
2
3 * arch-utils.c (generic_instruction_nullified): New.
4 * arch-utils.h (generic_instruction_nullified): New.
5 * gdbarch.sh (instruction_nullified): New method.
6 * gdbarch.c: Regenerate.
7 * gdbarch.h: Regenerate.
8 * infrun.c (INSTRUCTION_NULLIFIED): Delete.
9 (handle_inferior_event): Replace INSTRUCTION_NULLIFIED with calls to
10 new gdbarch method.
11 * config/pa/tm-hppa.h (INSTRUCTION_NULLIFIED): Delete definition.
12 * hppa-tdep.c (hppa_instruction_nullified): Remove prototype and make
13 static. Rewrite to work directly off the passed regcache.
14 (hppa_gdbarch_init): Set instruction_nullified method.
15
5465445a
JB
162004-11-23 Joel Brobecker <brobecker@gnat.com>
17
18 * sparc-tdep.c (sparc_is_unimp_insn): New function.
19 (sparc32_frame_cache): For functions where there is no debugging
20 information to help us determine whether it's a struct-return
21 function or not, fallback on checking whether the instruction
22 at the return address is an "unimp" instruction or not.
23
3f6306ec
DA
242004-11-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
25
871cce51
DA
26 * MAINTAINERS: Add myself to write after approval section.
27
3f6306ec
DA
28 * hppa-hpux-nat.c (child_suppress_run): Add variable to allow
29 hpux-thread.c to suppress children from running.
30 (hppa_hpux_child_can_run): New function.
31 (_initialize_hppa_hpux_nat): Use hppa_hpux_child_can_run.
32 * hpux-thread.c: Include string.h and hppa-tdep.h.
33 (FLAGS_REGNUM, SP_REGNUM, PC_REGNUM): Rename to HPPA_FLAGS_REGNUM,
34 HPPA_SP_REGNUM and HPPA_PCOQ_HEAD_REGNUM, respectively.
35 (hpux_thread_store_registers): Replace deprecated_registers with
36 calls to regcache_raw_read.
37 * config/pa/hpux11.mh, config/pa/hpux11w.mh: Delete HOST_IPC.
38
f5ccf7a2
MK
392004-11-21 Mark Kettenis <kettenis@gnu.org>
40
41 * sparc64fbsd-nat.c: Update copyright year.
42 (_initialize_sparc64fbsd_nat): Construct and add target vector.
43 * config/sparc/fbsd.mh (NATDEPFILES): Remove infptrace.o,
44 inftarg.o.
45
8c3900e4
DJ
462004-11-21 Daniel Jacobowitz <dan@debian.org>
47
48 * sparc-tdep.c (sparc_software_single_step): Handle stepping to NULL.
49
b957e937
DJ
502004-11-21 Daniel Jacobowitz <dan@debian.org>
51
52 * linux-nat.c (my_waitpid): New function.
53 (linux_test_for_tracefork): Make more robust and verbose. Take
54 an ORIGINAL_PID argument and test for PTRACE_SETOPTIONS first.
55 (linux_supports_tracefork, linux_supports_tracevforkdone): Take a PID
56 argument. Update calls to linux_test_for_tracefork.
57 (linux_enable_event_reporting, child_follow_fork)
58 (child_insert_fork_catchpoint, child_insert_vfork_catchpoint)
59 (child_insert_exec_catchpoint): Update calls to
60 linux_supports_tracefork and linux_supports_tracevforkdone.
61
65d3800a
DJ
622004-11-21 Daniel Jacobowitz <dan@debian.org>
63
64 * valarith.c (value_subscript): Copy VALUE_FRAME_ID.
65 (value_subscripted_rvalue): Likewise.
66 * valops.c (search_struct_field, value_slice): Likewise.
67
2c4a536d
MK
682004-11-21 Mark Kettenis <kettenis@gnu.org>
69
70 * inf-ptrace.c: Don't include "regcache.h" and "gdbcmd.h".
71 Reorder includes a bit. Fix comment.
72 * Makefile.in (inf-ptrace.o): Update dependencies.
73
fefa1888
AS
742004-11-21 Andreas Schwab <schwab@suse.de>
75
76 * m68klinux-tdep.c: Include "glibc-tdep.h" and "solib-svr4.h".
77 (m68k_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
78 svr4_ilp32_fetch_link_map_offsets and gdbarch_skip_solib_resolver
79 to glibc_skip_solib_resolver.
80 * config/m68k/linux.mt (TDEPFILES): Add glibc-tdep.o. Remove
81 solib-legacy.o.
82 * Makefile.in (m68klinux-tdep.o): Update dependencies.
83
d564a7d4
DA
842004-11-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
85
86 * infttrace.h (ttrace_write_reg_64): Add prototype.
87 * hppah-nat.c (store_inferior_registers): Fix warning from ambiguous
88 expression.
89 (store_inferior_registers): Correct formatting. Replace uses of
90 deprecated_registers with calls to regcache_raw_read,
91 regcache_raw_write_part and regcache_raw_read_part.
92
3f70a5e9
MK
932004-11-21 Mark Kettenis <kettenis@gnu.org>
94
95 * config/pa/hppahpux.mh: Remove file.
96 * config/pa/hpux1020.mh: Remove file.
97
ced0d73d
AS
982004-11-20 Andreas Schwab <schwab@suse.de>
99
100 * configure.host: Set host floatformat for m68k.
101
fcf54f50
EZ
1022004-11-20 Eli Zaretskii <eliz@gnu.org>
103
104 * config/djgpp/fnchange.lst: Resolve file-name clash between
105 hppa-hpux-tdep.c and the new hppa-hpux-nat.c.
106
a7289609
MK
1072004-11-20 Mark Kettenis <kettenis@gnu.org>
108
eeb8076c
MK
109 * hppa-hpux-nat.c: New file.
110 * config/pa/hpux.mh (NATDEPFILES): New file.
111 * Makefile.in (ALLDEPFILES): Add hppa-hpux-nat.c.
112 (hppa-hpux-nat.o): New dependency.
113 * configure.host: Remove hppa*-*-hpux10.20.
114 (hppa*-*-hpux*, hppa*-*-hiux*): Set gdb_host to hpux.mh.
115
f6ffd89b
MK
116 * inf-ptrace.c: Fix coding style.
117
f1bc22da
MK
118 * gdb_ptrace.h [PTRACE_TYPE_ARG5] (ptrace): New macro.
119 * infptrace.c (call_ptrace): Simply call ptrace with four
120 arguments.
121
e31272c3
MK
122 * dbxread.c (process_one_symbol): Fix a few coding standard
123 issues. Improve code formatting.
124
91f54576
MK
125 * dbxread.c: Include "gdb_string.h".
126 (record_minimal_symbol, read_ofile_symtab): Replace
127 DEPRECATED_STREQ and DEPRECATED_STREQN with strcmp and strncmp.
128 * Makefile.in (dbxread.o): Update dependencies.
129
a7289609
MK
130 * dwarf2-frame.c (read_encoded_value): Correctly calculate number
131 of bytes read for aligned LEB128 encodings.
132
57ac95b8
MK
1332004-11-19 Mark Kettenis <kettenis@gnu.org>
134
135 * bsd-kvm.c (bsd_kvm_pcb_cmd): Cast return value from
136 parse_and_eval_address to u_long before converting it to a pointer
137 type.
138 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Change type of
139 ps_strings from int to u_long.
140 * i386obsd-nat.c (_initialize_i386obsd_nat): Cast _ps.val to
141 u_long instead of CORE_ADDR.
142
ceddaf06
MK
1432004-11-18 Mark Kettenis <kettenis@gnu.org>
144
145 * dbxread.c (process_one_symbol): Do not adjust address of first
146 N_SLINE stab for a function for code generated by non-GCC
147 compilers.
148
915a2d21
KB
1492004-11-18 Kevin Buettner <kevinb@redhat.com>
150
151 * solib-null.c: New file.
152
92790ee7
AC
1532004-11-17 Andrew Cagney <cagney@gnu.org>
154
155 * MAINTAINERS: Drop MIPS and remote.
156
0c16dd26
AC
1572004-11-15 Andrew Cagney <cagney@gnu.org>
158
159 * findvar.c (value_of_register): Set the frame ID.
160 * value.c (value_primitive_field): Copy the frame ID.
161 * valops.c (value_assign): Simplify lval_register case, there's
162 always a frame.
163
2fdf551c
DJ
1642004-11-14 Daniel Jacobowitz <dan@debian.org>
165
166 * Makefile.in (mips-linux-tdep.o): Update dependencies.
167 * mips-linux-tdep.c: Include "regcache.h".
168 (fill_fpregset, mips64_fill_fpregset): Use regcache_raw_collect.
169
98754800
DJ
1702004-11-14 Daniel Jacobowitz <dan@debian.org>
171
172 * Makefile.in (linux-thread-db.o): Fix typo in last change.
173
ed89d175
DJ
1742004-11-14 Daniel Jacobowitz <dan@debian.org>
175
176 * linux-thread-db.c: New file, renamed from thread-db.c.
177 * thread-db.c: Remove.
178 * Makefile.in (linux-thread-db.o): Rename from thread-db.o rule.
179 * config/alpha/alpha-linux.mh (NATDEPFILES): Rename thread-db.o
180 to linux-thread-db.o.
181 * config/arm/linux.mh (NATDEPFILES): Likewise.
182 * config/i386/linux.mh (NATDEPFILES): Likewise.
183 * config/i386/linux64.mh (NATDEPFILES): Likewise.
184 * config/ia64/linux.mh (NATDEPFILES): Likewise.
185 * config/m32r/linux.mh (NATDEPFILES): Likewise.
186 * config/m68k/linux.mh (NATDEPFILES): Likewise.
187 * config/mips/linux.mh (NATDEPFILES): Likewise.
188 * config/pa/linux.mh (NATDEPFILES): Likewise.
189 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
190 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
191 * config/s390/s390.mh (NATDEPFILES): Likewise.
192 * config/sparc/linux.mh (NATDEPFILES): Likewise.
193 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
194
8851ec7a
AC
1952004-11-13 Andrew Cagney <cagney@gnu.org>
196
f97fe8ff
AC
197 * config/i386/i386lynx.mh: Delete file.
198 * config/i386/i386lynx.mt: Delete file.
199 * Makefile.in (ALLDEPFILES, i386ly-tdep.o): Remove i386ly-tdep.c.
200 * i386ly-tdep.c: Delete.
201
5873946b
AC
202 * config/tm-lynx.h: Delete, inline contents ...
203 * config/rs6000/tm-rs6000ly.h: ... here.
204
a69637bd
AC
205 * config/tm-sysv4.h: Delete file, inlining contents.
206 * config/ia64/tm-aix.h (SKIP_TRAMPOLINE_CODE): Define.
207 * config/tm-linux.h (SKIP_TRAMPOLINE_CODE): Define.
208 * config/tm-nto.h (SKIP_TRAMPOLINE_CODE): Define.
209
8851ec7a
AC
210 * regcache.h (deprecated_register_valid): Delete.
211 (deprecated_registers): Delete.
212 * regcache.c (deprecated_register_valid): Delete.
213 (deprecated_registers): Delete.
214 (deprecated_read_register_byte, _initialize_regcache)
215 (deprecated_write_register_bytes, build_regcache): Update.
216 * config/powerpc/ppc-sim.mt (TDEPFILES): Remove ppc-bdm.o and
217 remote-sds.o.
218 * config/powerpc/ppc-eabi.mt (TDEPFILES): Ditto.
219 * config/mips/embed.mt (TDEPFILES): Remove remote-mips.o.
220
9445aa30
AC
221 * NEWS: List h8300*-*-*, mcore-*-*, mn10300-*-*, ns32k-*-*, and
222 v850-*-* under removed.
223 * configure.host: Delete ns32k-*-netbsd*.
224 * configure.tgt: Delete h8300-*-*, mcore*-*-*, mn10300-*-*,
225 ns32k-*-netbsd*, and v850*-*-*.
226 * MAINTAINERS: Mark h8300, mcore, mn10300, ns32k, v850 as
227 "Deleted"
228 * config/h8300/tm-h8300.h, config/h8300/h8300.mt: Delete.
229 * h8300-tdep.c, config/mcore/mcore.mt, mcore-rom.c: Delete.
230 * mcore-tdep.c, config/mn10300/mn10300.mt: Delete.
231 * mn10300-tdep.c, config/ns32k/nbsdaout.mh: Delete.
232 * config/ns32k/nbsdaout.mt, config/ns32k/nm-nbsd.h: Delete.
233 * config/ns32k/nm-nbsdaout.h, config/ns32k/tm-ns32k.h: Delete.
234 * ns32knbsd-nat.c, ns32knbsd-tdep.c, ns32k-tdep.c: Delete.
235 * ns32k-tdep.h, config/v850/v850.mt, v850ice.c: Delete.
236 * v850-tdep.c: Delete.
237
f6e1bffc
JB
2382004-11-13 Joel Brobecker <brobecker@gnat.com>
239
240 * irix5-nat.c (fetch_core_registers): Replace use of
241 deprecated_registers by equivalent code.
242
44ed547b
JB
2432004-11-13 Joel Brobecker <brobecker@gnat.com>
244
245 * irix5-nat.c (fill_gregset): Replace use of deprecated_registers
246 with equivalent code.
247 (fill_fpregset): Likewise.
248
e84ecc99
AC
2492004-11-13 Andrew Cagney <cagney@gnu.org>
250
ca1a823a
AC
251 * MAINTAINERS: Do not list "Deleted" architectures.
252
e84ecc99
AC
253 * configure.tgt: Delete i[34567]86-*-vxworks*, m68*-netx-*,
254 m68*-*-vxworks*, mips*-*-vxworks*, powerpc-*-vxworks*, and
255 sparc-*-vxworks*.
256 * NEWS: Mention that vxworks was deleted.
257 * config/m68k/tm-vx68.h, config/mips/tm-vxmips.h: Delete.
258 * config/powerpc/tm-vxworks.h, config/tm-vxworks.h: Delete.
259 * config/i386/vxworks.mt, config/m68k/vxworks68.mt: Delete.
260 * config/mips/vxmips.mt, config/powerpc/vxworks.mt: Delete.
261 * config/sparc/vxworks.mt, vx-share/dbgRpcLib.h: Delete.
262 * vx-share/ptrace.h, vx-share/regPacket.h: Delete.
263 * vx-share/vxTypes.h, vx-share/vxWorks.h: Delete.
264 * vx-share/wait.h, vx-share/xdr_ld.c: Delete.
265 * vx-share/xdr_ld.h, vx-share/xdr_ptrace.c: Delete.
266 * vx-share/xdr_ptrace.h, vx-share/xdr_rdb.c: Delete.
267 * vx-share/xdr_rdb.h, remote-vxsparc.c: Delete.
268 * remote-vxmips.c, remote-vx.c: Delete.
269 * remote-vx68.c: Delete.
270 * config/m68k/tm-os68k.h: Remove reference to VxWorks.
271 * config/m68k/os68k.mt, ada-lang.h: Ditto.
272 * Makefile.in (HFILES_NO_SRCDIR, ALLDEPFILES, remote-vx68.o)
273 (remote-vx.o, remote-vxmips.o, remote-vxsparc.o): Delete vx files.
274
01e937bc
EZ
2752004-11-13 Eli Zaretskii <eliz@gnu.org>
276
29247324
EZ
277 * config/i386/xm-go32.h: Don't include fopen-bin.h.
278 Don't define CRLF_SOURCE_FILES and DIRNAME_SEPARATOR.
279
280 * source.c (OPEN_MODE, FDOPEN_MODE): Remove the definitions in the
281 branch that doesn't define CRLF_SOURCE_FILES; always use
282 binary-mode open.
283 (print_source_lines_base, forward_search_command)
284 (reverse_search_command): Enable the code that accepts DOS-style
285 CRLF line endings on all platforms (this removes the need for
286 CRLF_SOURCE_FILES).
287
f8f0d88a 288 * defs.h: Fix wording of the comment before FOPEN_RB.
29247324 289 (DIRNAME_SEPARATOR) [__MSDOS__]: Define to ';'.
f8f0d88a 290
01e937bc
EZ
291 * config/djgpp/fnchange.lst: Group renames for opcode directory
292 together.
293
294 * config/djgpp/djconfig.sh: Replace file names that don't exist
295 anymore with existing files, for checking the unpacked
296 distribution.
297
298 * config/djgpp/config.sed (am_cv_exeext, lt_cv_sys_max_cmd_len):
299 Export pre-cooked values in configure-* targets that begin with
300 "@test -f stage_last".
301
25ae5d16
AC
3022004-11-12 Andrew Cagney <cagney@gnu.org>
303
304 * defs.h (enum lval_type): Delete lval_reg_frame_relative.
305 * value.h (struct value): Update comment.
306 * valops.c (value_assign): Fold lval_reg_fame_relative into
307 lval_register.
308 * findvar.c (value_from_register, locate_var_value): Ditto.
309
d7318818
RC
3102004-11-12 Randolph Chung <tausq@debian.org>
311
312 * config/tm/tm-hppa.h (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
313 * parse.c (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
314 (write_exp_msymbol): Remove conditional check for symbols starting
315 with $. Update comments.
316
89676665
RC
3172004-11-12 Randolph Chung <tausq@debian.org>
318
319 * pa64solib.c (pa64_solib_thread_start_addr): Rename from
320 so_lib_thread_start_addr.
321 * pa64solib.h (so_list): Forward declare.
322 (pa64_solib_thread_start_addr): Prototype.
323 * somsolib.c (SHL_LOAD, SHL_UNLOAD): Define if not already defined.
324 (no_shared_libraries): Remove.
325 (som_solib_thread_start_addr): Rename from so_lib_thread_start_addr.
326 * somsolib.h (som_solib_thread_start_addr): Likewise; prototype.
327 * hpread.c (hpread_process_one_debug_symbol): Use either the som or
328 the elf solib handler to find the start address.
329
330 * config/pa/hppahpux.mh (NATDEPFILES): Move target-specific support
331 files to the target makefile.
332 * config/pa/hpux1020.mh (NATDEPFILES): Likewise.
333 * config/pa/hpux11.mh (NATDEPFILES): Likewise.
334 * config/pa/hpux11w.mh (NATDEPFILES): Likewise.
335
336 * config/pa/hppa64.mt (TDEPFILES): Put target-specific support
b82f24bf 337 files for symbol reading and shared library handling here.
89676665 338 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
b82f24bf
RC
339 (PA_SOM_ONLY): Define so we can build a 32-bit SOM only target
340 without bringing in 64-bit support.
89676665 341
df407dfe
AC
3422004-11-12 Andrew Cagney <cagney@gnu.org>
343
4991999e
AC
344 * sparc-tdep.c: Replace VALUE_TYPE with value_type.
345 * v850-tdep.c, sparc64-tdep.c, sh-tdep.c: Ditto.
346 * sh64-tdep.c, s390-tdep.c, mcore-tdep.c: Ditto.
347 * h8300-tdep.c, arm-linux-tdep.c, amd64-tdep.c: Ditto.
348 * hppa-tdep.c, mips-tdep.c, m88k-tdep.c: Ditto.
349 * m68hc11-tdep.c, m32r-tdep.c, ia64-tdep.c: Ditto.
350 * frv-tdep.c, cris-tdep.c, avr-tdep.c, alpha-tdep.c: Ditto.
351
9ee8fc9d
AC
352 Merge VALUE_REGNO and VALUE_FRAME_REGNUM into VALUE_REGNUM.
353 * value.h (VALUE_REGNO, VALUE_FRAME_REGNUM): Delete.
354 (VALUE_REGNUM): Define.
355 (struct value): Delete location.regnum, rename "regno" to
356 "regnum".
357 * value.c, valops.c, valarith.c, findvar.c: Update.
358
df407dfe
AC
359 * value.h (VALUE_TYPE, VALUE_NEXT, VALUE_OFFSET, VALUE_BITSIZE)
360 (VALUE_BITPOS): Delete.
361 (value_type, value_offset, value_bitsize, value_bitpos): Declare.
362 * value.c (value_type, value_offset, value_bitpos)
363 (value_bitsize): New functions. Update references.
364 * arm-tdep.c, gnu-v3-abi.c, hpacc-abi.c, gnu-v2-abi.c: Update.
365 * f-valprint.c, cp-valprint.c, c-valprint.c: Update.
366 * ada-valprint.c, typeprint.c, scm-valprint.c, scm-exp.c: Update.
367 * p-valprint.c, jv-valprint.c, jv-lang.c, varobj.c: Update.
368 * objc-lang.c, ada-lang.c, std-regs.c, stack.c: Update.
369 * infcall.c, linespec.c, printcmd.c, valarith.c: Update.
370 * valops.c, eval.c, findvar.c, breakpoint.c: Update.
371 * tracepoint.c, ax-gdb.c, mi/mi-main.c, cli/cli-dump.c:
372 * rs6000-tdep.c, ppc-sysv-tdep.c: Update.
373
61c82a3b
AC
3742004-11-12 Andrew Cagney <cagney@gnu.org>
375
376 * cris-tdep.c (cris_register_offset): Delete, never called.
377 (cris_spec_reg_applicable): Delete cris_ver_sim.
378 * MAINTAINERS: List d10v as OBSOLETE.
379 * rdi-share/host.h (FOPEN_WB): #ifdef 0 out definitions of
380 FOPEN_WB et.al., defined by "fopen-bin.h".
381
5aac166f
RC
3822004-11-12 Randolph Chung <tausq@debian.org>
383
384 * hppa-tdep.c (hppa_skip_permanent_breakpoint): Move definition ...
385 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): ... to here.
386 * config/pa/tm-hppa.h (SKIP_PERMANENT_BREAKPOINT): Move definition ...
387 * config/pa/tm-hppah.h (SKIP_PERMANENT_BREAKPOINT): ... to here.
388
4fab48b9
MK
3892004-11-12 Mark Kettenis <kettenis@jive.nl>
390
391 * tui/tui-io.c: Don't include "terminal.h".
392 * Makefile.in (tui-io.o): Update dependencies.
393
9b098f24
KI
3942004-11-12 Kei Sakamoto <sakamoto.kei@renesas.com>
395
396 * Makefile.in (m32r-linux-tdep.o): Update dependencies.
397 * m32r-linux-tdep.c (m32r_linux_init_abi): Call
398 set_gdbarch_regset_from_core_section for core file support.
399 (m32r_linux_supply_gregset, m32r_linux_regset_from_core_section):
400 New functions.
401
a71f8c30
RC
4022004-11-11 Randolph Chung <tausq@debian.org>
403
404 * hppa-tdep.c (skip_prologue_hard_way): Make static, add
405 stop_after_branch parameter and use it to determine if we should look
406 at the delay slot of the first branch insn to find prologue insns.
407 (hppa_skip_prologue): Update comment and call to skip_prologue_hard_way.
408 (hppa_frame_cache): Likewise.
409
50b2f48a
RC
4102004-11-11 Randolph Chung <tausq@debian.org>
411
412 * hppa-tdep.c (hppa_frame_cache): Properly handle the frame pointer
413 register so that it can be unwound from anywhere in the prologue.
414
be723e22
MS
4152004-11-10 msnyder <msnyder@redhat.com>
416
417 * rs6000-tdep.c (skip_prologue): After saving lr_offset,
418 must invalidate lr_reg (so we don't try to save it again).
419 Ditto for cr_offset and cr_reg.
420
d6f7abdf
AC
4212004-11-05 Jon Beniston <jon@beniston.com>
422
216c5547 423 Committed by Andrew Cagney.
d6f7abdf
AC
424 * remote.c (putpkt_binary) Fix PR gdb/1806. Send an ACK
425 when an unexpected packet is received, as the target stubs
426 continually retransmit the same packet until ACKed.
427
1d225535
RC
4282004-11-10 Randolph Chung <tausq@debian.org>
429
430 * frame.c (get_prev_frame): Use get_frame_type to retrieve the
d6f7abdf 431 frame's type.
1d225535 432
2315ffec
RC
4332004-11-10 Randolph Chung <tausq@debian.org>
434
435 * blockframe.c (inside_entry_func): Move to .....
436 * frame.c (inside_entry_func): ... here, and make static.
437 (backtrace_past_entry): New flag.
438 (get_prev_frame): Stop backtrace at the entry function if enabled
439 by flag. Update comments.
440 (_initialize_frame): Add command to set backtrace_past_entry flag.
441 * defs.h (inside_entry_func): Remove prototype.
442
917c78fc
MK
4432004-11-10 Mark Kettenis <kettenis@gnu.org>
444
445 * dwarf2read.c: Fix formatting.
446
994b9211
AC
4472004-11-10 Andrew Cagney <cagney@gnu.org>
448
449 * value.h (COERCE_REF, COERCE_ARRAY, COERCE_NUMBER, COERCE_ENUM)
450 (coerce_ref, coerce_array, coerce_number, coerce_enum): Replace
451 macros with function declarations.
452 * value.c (coerce_ref, coerce_array, coerce_number)
453 (coerce_enum): New functions.
454 (value_as_long, value_as_address): Update.
455 * ada-lang.c (ada_coerce_ref, ada_value_binop)
456 (ada_evaluate_subexp, ada_value_assign, ada_value_struct_elt): Update.
457 * jv-lang.c (evaluate_subexp_java): Update.
458 * valarith.c (value_less, value_neg, value_complement)
459 (value_binop, value_add, value_subscript, value_x_binop)
460 (value_logical_not, value_sub): Update.
461 * valops.c (check_field, value_struct_elt, value_ind)
462 (value_find_oload_method_list, value_cast, value_assign): Update.
463 * eval.c (evaluate_subexp_standard): Update.
464
06987e64
MK
4652004-11-10 Mark Kettenis <kettenis@gnu.org>
466
467 * mips-tdep.c (mips32_relative_offset): Change return type to
468 LONGEST, change argument type to ULONGEST. Fix sign-extension.
469
4a302917
RC
4702004-11-10 Randolph Chung <tausq@debian.org>
471
472 * hppa-tdep.c (hppa32_register_name, hppa64_register_name): Make static.
473 (hppa32_push_dummy_call, hppa64_push_dummy_call): Likewise.
474 (hppa_fetch_pointer_argument): Likewise.
475 (hppa_frame_cache): Use safe_frame_unwind_memory instead of
476 deprecated_read_memory_nobpt.
477 (_initialize_hppa_tdep): Replace deprecated_add_show_from_set/
478 add_set_cmd sequence with add_setshow_boolean_cmd.
479
390e974f
AC
4802004-11-09 Andrew Cagney <cagney@gnu.org>
481
482 GDB 6.3 released from GDB 6.3 branch.
483
92e023d6
AC
4842004-11-09 Andrew Cagney <cagney@gnu.org>
485
486 * values.c: Rename to ...
487 * value.c: ..., new file.
488 * Makefile.in: Update.
489
d10891d4
DJ
4902004-11-09 Daniel Jacobowitz <dan@debian.org>
491
492 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Correct allocated
493 size.
494
00a4c844
AC
4952004-11-09 Andrew Cagney <cagney@gnu.org>
496
c44523e7
AC
497 * TODO: Delete.
498
00a4c844
AC
499 * value.h (struct value): Delete field bfd_section.
500 (VALUE_BFD_SECTION): Delete macro.
501 (COERCE_REF): Update.
502 (value_at, value_at_lazy): Delete asection parameter.
503 * printcmd.c (print_formatted, x_command): Update.
504 (do_examine): Delete asection parameter.
505 (next_section): Delete variable.
506 * valops.c (value_cast, value_at, value_at_lazy)
507 (value_coerce_function, value_addr, value_ind, value_string)
508 (find_rt_vbase_offset, value_full_object): Update.
509 * hpacc-abi.c (hpacc_virtual_fn_field)
510 (hpacc_value_rtti_type): Update.
511 * gnu-v3-abi.c (gnuv3_rtti_type, gnuv3_virtual_fn_field)
512 (gnuv3_baseclass_offset): Update.
513 * f-valprint.c (f_val_print): Update.
514 * c-valprint.c (c_val_print): Update.
515 * p-valprint.c (pascal_val_print): Update.
516 * jv-valprint.c (java_value_print): Update.
517 * jv-lang.c (java_class_from_object, evaluate_subexp_java): Update.
518 * ada-lang.c (ada_value_primitive_packed_val)
519 (ada_evaluate_subexp): Update.
520 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Update.
521 * expprint.c (print_subexp_standard): Update.
522 * infcall.c (call_function_by_hand): Update.
523 * valarith.c (value_add): Update.
524 * eval.c (evaluate_subexp_standard): Update.
525 * values.c (allocate_value, value_copy, value_static_field): Update.
526 * findvar.c (read_var_value, locate_var_value): Update.
527
5cb2fe25
AC
5282004-11-09 Andrew Cagney <cagney@gnu.org>
529
530 * i386-linux-tdep.c: Include "dwarf2-frame.h".
531 * Makefile.in: Update all dependencies.
532
cbafadeb
AC
5332004-11-08 Andrew Cagney <cagney@gnu.org>
534
535 * sentinel-frame.c (sentinel_frame_prev_pc): New function.
536 (sentinel_frame_unwinder): Add the prev_pc method.
537 * frame.c (frame_pc_unwind): Use the per-frame pc unwinder when
538 available. Do not handle the sentinel-frame case.
539 * frame-unwind.h (frame_prev_register_ftype): Define.
540 (struct frame_unwind): Add prev_pc;
541
3b78cdbb
DA
5422004-11-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
543
544 * configure.in: Check for ncurses/term.h.
545 * gdb_curses.h: Include term.h here, prefering ncurses/term.h.
546 * utils.c: Include gdb_curses.h instead of curses.h and term.h.
547 * tui/tui.c: Don't include term.h.
548 * configure, config.in: Rebuilt.
549
bcfca652
MK
5502004-11-08 Mark Kettenis <kettenis@gnu.org>
551
552 * m68kbsd-nat.c: Include "inf-ptrace.h".
553 (_initialize_m68kbsd_nat): Fix pasto.
554 * Makefile.in (m68kbsd-nat.o): Update dependencies.
555
527159b7
RC
5562004-11-08 Randolph Chung <tausq@debian.org>
557
558 * infrun.c (debug_infrun): New variable.
559 (resume, proceed, wait_for_inferior): Annotate with debug messages.
560 (handle_inferior_event, keep_going): Likewise.
561 (_initialize_infrun): Register "set debug infrun" command.
562
c874c7fc
AS
5632004-11-08 Andreas Schwab <schwab@suse.de>
564
565 * linux-nat.c (PTRACE_EVENT_VFORK_DONE): Renamed from
566 PTRACE_EVENT_VFORKDONE.
567 (child_follow_fork): Adjust.
568
3c8fa307
AC
5692004-11-08 Andrew Cagney <cagney@gnu.org>
570
5c26072a
AC
571 * README: Refer to 6.3, not 6.2, update directory listing droppng
572 references to intl/ and mmalloc/.
573 * PROBLEMS: Refer to 6.3 not 6.2.
574
3c8fa307
AC
575 * PROBLEMS: Delete no-longer applicable problems.
576
12b8a2cb
DJ
5772004-11-07 Andrew Cagney <cagney@redhat.com>
578 Daniel Jacobowitz <dan@debian.org>
579 Roland McGrath <roland@redhat.com>
580
581 * Makefile.in (symfile-mem.o): Update dependencies.
582 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): New.
583 (i386_linux_init_abi): Call dwarf2_frame_set_signal_frame_p.
584 * inf-ptrace.c (inf_ptrace_attach): Call
585 observer_notify_inferior_created.
586 * inftarg.c (child_attach): Likewise.
587 * symfile-mem.c: Include "observer.h", "auxv.h", and "elf/common.h".
588 (symbol_file_add_from_memory): Take NAME argument. Use it for
589 the new BFD's filename.
590 (add_symbol_file_from_memory_command): Update call to
591 symbol_file_add_from_memory.
592 (struct symbol_file_add_from_memory_args, add_vsyscall_page)
593 (symbol_file_add_from_memory_wrapper): New.
594 (_initialize_symfile_mem): Register add_vsyscall_page as an
595 inferior_created observer.
596
abbc6945
MK
5972004-11-07 Mark Kettenis <kettenis@gnu.org>
598
599 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Rename from
600 fetch_inferior_registers. Make static.
601 (m68kbsd_store_inferior_registers): Rename from
602 store_inferior_registers. Make static.
603 (_initialize_m68kbsd_nat): Construct and add target vector.
604 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
605 inftarg.o. Add inf-ptrace.o.
606 (NAT_FILE): Set to tm-solib.h.
607 (LOADLIBES): New variable.
608 * config/m68k/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
609 inftarg.o. Add inf-ptrace.o.
610 (NAT_FILE): Delete variable.
611 * config/m68k/obsd.mh (NATDEPFILES): Remove infptrace.o and
612 inftarg.o. Add inf-ptrace.o.
613 (NAT_FILE): Set to tm-solib.h.
614 * config/m68k/nm-nbsdaout.h: Remove file.
615
3ed09a32
DJ
6162004-11-07 Daniel Jacobowitz <dan@debian.org>
617
618 * dwarf2-frame.c (struct dwarf2_frame_ops): Add signal_frame_p.
619 (dwarf2_frame_set_signal_frame_p, dwarf2_frame_signal_frame_p)
620 (dwarf2_signal_frame_unwind): New.
621 (dwarf2_frame_sniffer): Use dwarf2_frame_signal_frame_p.
622 * dwarf2-frame.h (dwarf2_frame_set_signal_frame_p): New prototype.
623
8e763687
MK
6242004-11-07 Mark Kettenis <kettenis@gnu.org>
625
4fb31ed0
MK
626 * Makefile.in (mips64obsd-tdep.o): Fix typo.
627
fabe86c8
MK
628 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Renamed
629 from mipsnbsd_ilp32_solib_svr4_fetch_link_map_offsets. Trim sizes
630 to only include the structure members we actually need.
631 (mipsnbsd_lp64_fetch_link_map_offsets): Renamed from
632 mipsnbsd_lp64_solib_svr4_fetch_link_map_offsets. Trim sizes to
633 only include the structure members we actually need.
634 (mipsnbsd_init_abi): Update.
635
366e93e8
MK
636 * mips64obsd-nat.c: Include "mips-tdep.h".
637 (MIPS64OBSD_NUM_REGS): Remove define.
638 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM): New defines.
639 (mips64obsd_supply_gregset, mips64obsd_collect_gregset): Handle
640 floating-point registers correctly.
641 * Makefile.in (mips64obsd-nat.o): Update dependencies.
642
8e763687
MK
643 * mips64obsd-tdep.c: Include "trad-frame.h", "tramp-frame.h" and
644 "gdb_assert.h".
645 (mips64obsd_sigframe_init): New function.
646 (mips64obsd_sigframe): New variable.
647 (mips64obsd_init_abi): Add comments. Prepend mips64obsd_sigrame
648 unwinder.
649 * Makefile.in (mips64obsd-tdep.o): Update dependencies.
650
5f6a2351
JB
6512004-11-06 Joel Brobecker <brobecker@gnat.com>
652
653 * alpha-mdebug-tdep.c: #include mdebugread.h.
654 Replace alpha_extra_func_info_t by struct mdebug_extra_func_info *.
655 * Makefile.in (alpha-mdebug-tdep.o): Add dependency on mdebugread.h.
656
f059bf6f
AC
6572004-11-05 Andrew Cagney <cagney@gnu.org>
658
659 * dwarf2-frame.c (dwarf2_frame_cache): Only complain when both the
660 CFI and the init_reg method leave the register unspecified.
661 Include the register name in the "Incomplete CFI data" complaint.
662 Supress leading zeros in the address.
663
1234d960
MK
6642004-11-05 Mark Kettenis <kettenis@gnu.org>
665
666 * dwarf2-frame.c (decode_frame_entry_1): Avoid indirection when
667 skipping a personality routine in a CIE augmentation.
668
d75e3c94
JJ
6692004-11-05 Jeff Johnston <jjohnstn@redhat.com>
670
671 * defs.h (fatal, vfatal): New function prototypes.
672 * stack.c (backtrace_command_stub): Stub to call backtrace_command_1
673 via catch_errors.
674 (backtrace_command): Change to call backtrace_command_stub via
675 catch_errors instead of calling backtrace_command_1 directly.
676 (backtrace_full_command): Ditto.
677 * utils.c (error_stream_1): New static function.
678 (verror): Change to call error_stream_1 instead of error_stream.
679 (error_stream): Call error_stream_1 with RETURN_ERROR argument.
680 (vfatal, fatal): New functions.
681
98f276a0
AC
6822004-11-05 Andrew Cagney <cagney@gnu.org>
683
684 * stack.c (parse_frame_specification_1): Clear selected_frame_p
685 when not using selected frame.
686
f724bf08
MK
6872004-11-05 Mark Kettenis <kettenis@jive.nl>
688
689 * dwarf2-frame.c (decode_frame_entry_1): Correctly skip
690 personality routine in a CIE augmentation.
691
c789492a
FL
6922004-11-05 Felix Lee <felix+log1@specifixinc.com>
693
694 * stack.c (set_current_sal_from_frame): New function.
695 (print_args_stub): Use it.
696 (print_frame_info): Don't set sal here.
697
a81b10ae
MK
6982004-11-04 Mark Kettenis <kettenis@gnu.org>
699
700 * dwarf2-frame.c (read_encoded_value): Change type of third
701 argument to `unsigned char *'. Add support for LEB128 encodings.
702
ad766c0a
JB
7032004-11-04 Jim Blandy <jimb@redhat.com>
704
705 * gdbtypes.c (make_qualified_type): Doc fix. Add assertion to
706 prevent cross-objfile references.
707 (make_cv_type): Doc fix. Don't create cross-objfile references,
708 even for stub types.
709 (replace_type): Add assertion to prevent cross-objfile references.
710 (check_typedef): Never resolve a stub type by copying over a type
711 from another file.
712
c46b0409 7132004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
f16d97c9 714
c46b0409
KI
715 * Makefile.in (m32r-tdep.o): Update dependencies.
716 * m32r-tdep.c (m32r_gdbarch_init): Call gdbarch_init_osabi for
717 ABI-specific overrides.
718
9f0b0322 7192004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
f16d97c9 720
9f0b0322
KI
721 * m32r-tdep.c (m32r_memory_insert_breakpoint): Remove
722 unnecessary parallel execution bit.
723 (m32r_memory_remove_breakpoint): Ditto.
724 (m32r_breakpoint_from_pc): Update.
725
d5c27f81
RC
7262004-11-03 Randolph Chung <tausq@debian.org>
727
728 * hppa-tdep.c (hppa_frame_cache): Use frame_pc_unwind instead of
9f0b0322 729 frame_func_unwind to locate the unwind entry.
d5c27f81
RC
730 (hppa_frame_this_id): Likewise.
731
4577593c
AC
7322004-11-03 Andrew Cagney <cagney@gnu.org>
733
734 * gdb/NEWS: Mention internationalization, m32r-*-linux-gnu, 'p'
735 packet, obsolete configurations, end-of-life deprecated_registers.
736
b04de778
MK
7372004-11-02 Mark Kettenis <kettenis@gnu.org>
738
739 * dwarf2-frame.c (read_encoded_value): Set proper size for signed
740 encodings as well as unsigned encodings.
741
9f2feefc
AC
7422004-11-02 Andrew Cagney <cagney@gnu.org>
743
744 * value.h (COERCE_VARYING_ARRAY): Delete.
745 * valops.c (value_cast, value_slice): Delete use.
746 * valarith.c (value_subscript, value_concat): Delete use.
747
117ea3cf
PH
7482004-11-02 Paul Hilfinger <hilfingr@nile.gnat.com>
749
750 * NEWS: GDB understands GNAT Ada.
751
0bbc026e
JM
7522004-11-01 Joseph S. Myers <joseph@codesourcery.com>
753
754 * Makefile.in (ALLDEPFILES): Add amd64-sol2-tdep.c.
755 (amd64-sol2-tdep.o): Add dependencies.
756 * amd64-sol2-tdep.c, config/i386/sol2-64.mh,
757 config/i386/sol2-64.mt: New files.
758 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offset,
759 amd64_sol2_gregset32_reg_offset, _initialize_amd64_sol2_nat): New.
760 (supply_gregset): Correct order of arguments to
761 amd64_supply_native_gregset.
762 (fill_gregset): Correct order of arguments to
763 amd64_collect_native_gregset.
764 * configure.host (i[34567]86-*-solaris2.1[0-9]*): Add new case.
765 * configure.tgt (i[34567]86-*-solaris2.1[0-9]*): Likewise.
766 * configure.in (*-*-solaris2.[[6789]]): Add *-*-solaris2.1[[0-9]]
767 for definition of NEW_PROC_API.
768 * configure: Regenerate.
769
3d38a0a5
JM
7702004-11-01 Joseph S. Myers <joseph@codesourcery.com>
771
772 * MAINTAINERS (Write After Approval): Add myself.
773
f81cd1cf
AC
7742004-11-01 Andrew Cagney <cagney@gnu.org>
775
776 * configure.tgt: Mark d10v-*-* as obsolete.
777 * config/d10v/d10v.mt, d10v-tdep.c: Obsolete files.
778
f4e88c8e
PH
7792004-11-01 Paul N. Hilfinger <Hilfinger@gnat.com>
780
781 * values.c (modify_field): Correct handling of bit-fields that
782 don't fit in 32 bits. Use unsigned operations throughout and
783 simplify the code a bit. Document preconditions.
784
84674fe1
AC
7852004-10-31 Andrew Cagney <cagney@gnu.org>
786
96693b3a
AC
787 * config/pa/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
788 * config/tm-sysv4.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
789 (in_plt_section): Delete.
790
6f296f8f
AC
791 * mips-tdep.c (mips_in_solib_return_trampoline): Delete.
792 (mips_gdbarch_init): Do not set same.
793
618501c0
AC
794 * arch-utils.c (generic_in_solib_call_trampoline): Delete.
795 * arch-utils.h (generic_in_solib_call_trampoline): Delete.
796
b22e8f02
AC
797 * gdbarch.sh (in_solib_call_trampoline): Delete.
798 * gdbarch.h, gdbarch.c: Re-generate.
799
84674fe1
AC
800 * hppa-tdep.c (hppa_stub_unwind_sniffer): Replace
801 IN_SOLIB_CALL_TRAMPOLINE with tdep.in_solib_call_trampoline.
802 * hppa-tdep.h (struct gdbarch_tdep): Add in_solib_call_trampoline.
803 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Set same.
804 * hppa-linux-tdep.c (hppa_linux_init_abi): Ditto.
805
c6d1029f
MK
8062004-10-31 Mark Kettenis <kettenis@gnu.org>
807
808 * mipsnbsd-nat.c: Include "target.h" and "inf-ptrace.h".
809 (mipsnbsd_fetch_inferior_registers): Rename from
810 fetch_inferior_registers. Make static.
811 (mipsnbsd_store_inferior_registers): Rename from
812 store_inferior_registers. Make static.
813 (_initialize_mipsnbsd_nat): New function and prototype.
814 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
815 * config/mips/nbsd.mh (NAT_CLIBS, NAT_FILE): Remove variables.
816 (NATDEPFILES): Remove infptrace.o and inftarg.o. Add
817 inf-ptrace.o.
818
bd9ca83f
AC
8192004-10-31 Andrew Cagney <cagney@gnu.org>
820
19d718a3
AC
821 * xstormy16-tdep.c (xstormy16_in_solib_call_trampoline)
822 (xstormy16_gdbarch_init): Do not set in_solib_call_trampoline,
823 delete corresponding unused function.
824 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Really do not set
825 in_solib_call_trampoline.
826 * config/arm/tm-embed.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
827 * config/powerpc/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
828 * config/mips/tm-nbsd.h: Ditto.
829 * config/arm/tm-linux.h: Ditto.
830 * config/mips/tm-linux.h: Ditto.
831
e8ce19c0
AC
832 * armnbsd-tdep.c (arm_netbsd_aout_init_abi)
833 (arm_netbsd_aout_in_solib_call_trampoline): Do not set
834 in_solib_call_trampoline, delete corresponding unused function.
835 * vaxnbsd-tdep.c (vaxnbsd_aout_in_solib_call_trampoline)
836 (vaxnbsd_aout_init_abi): Ditto.
837 * sparcnbsd-tdep.c (sparcnbsd_aout_in_solib_call_trampoline)
838 (sparc32nbsd_aout_init_abi): Ditto.
839 * ppc-linux-tdep.c (ppc64_in_solib_call_trampoline)
840 (ppc_linux_init_abi): Ditto.
841 * ns32knbsd-tdep.c (ns32knbsd_aout_in_solib_call_trampoline)
842 (ns32knbsd_init_abi_aout): Ditto.
843 * mips-tdep.c (mips_in_call_stub, mips_gdbarch_init): Ditto.
844 * mips-linux-tdep.c (mips_linux_init_abi): Ditto.
845 * m68kbsd-tdep.c (m68kbsd_aout_in_solib_call_trampoline)
846 (m68kbsd_aout_init_abi): Ditto.
847 * i386-cygwin-tdep.c (i386_cygwin_in_solib_call_trampoline)
848 (i386_cygwin_init_abi): Ditto.
849 * i386bsd-tdep.c (i386bsd_aout_in_solib_call_trampoline)
850 (i386bsd_init_abi): Ditto.
851
af380d61
AC
852 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Do not set
853 in_solib_call_trampoline to in_plt_entry, IN_SOLIB_CALL_TRAMPOLINE
854 isn't used by this architecture.
855 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
856 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Ditto.
857 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Ditto.
858 * s390-tdep.c (s390_gdbarch_init): Ditto.
859 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
860 * m68klinux-tdep.c (m68k_linux_init_abi): Ditto.
861 * i386-tdep.c (i386_svr4_init_abi): Ditto.
862 * i386-nto-tdep.c (i386nto_init_abi): Ditto.
863 * arm-linux-tdep.c (arm_linux_init_abi): Ditto.
864 * amd64-tdep.c (amd64_init_abi): Ditto.
865
0528d9f7
AC
866 * vaxnbsd-tdep.c (vaxnbsd_elf_init_abi): Do not set
867 in_solib_call_trampoline to its default value of
868 generic_in_solib_call_trampoline.
869 * ppcobsd-tdep.c (ppcobsd_init_abi): Ditto.
870 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Ditto.
871 * i386obsd-tdep.c (i386obsd_elf_init_abi): Ditto.
872 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Ditto.
873 * i386fbsd-tdep.c (i386fbsd_init_abi): Ditto.
874 * hppabsd-tdep.c (hppabsd_init_abi): Ditto.
875
f9f9eacb
AC
876 * mips-tdep.c (mips_dump_tdep): Don't print any of the macros.
877
a4ffd1e7
AC
878 * config/mips/obsd64.mt (DEPRECATED_TM_FILE): Delete.
879
82e34d2f
AC
880 * config/mips/tm-mips.h: Delete file.
881 * remote-mips.c: Delete tm-mips.h from comment.
882 * config/mips/embed.mt (DEPRECATED_TM_FILE): Delete.
883 * config/mips/tm-nbsd.h: Don't include tm-mips.h.
884 * config/mips/irix6.mt (DEPRECATED_TM_FILE): Delete.
885 * config/mips/tm-linux.h: Don't include tm-mips.h.
886 * config/mips/tm-vxmips.h: Don't include tm-mips.h.
887 * config/mips/irix5.mt (DEPRECATED_TM_FILE):
888 * config/mips/tm-wince.h: Don't include.
889
75dec9cf
AC
890 * mdebugread.h (MDEBUG_EFI_SYMBOL_NAME): Define.
891 * mdebugread.c (MDEBUG_EFI_SYMBOL_NAME): Delete.
892 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
893 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
894
bd9ca83f
AC
895 * mdebugread.h (ecoff_relocate_efi): Delete declaration.
896 * mdebugread.c (ecoff_relocate_efi): Delete function.
897 * objfiles.c (objfile_relocate): Delete #ifdef
898 MDEBUG_EFI_SYMBOL_NAME code.
899
3352ef37
AC
9002004-10-31 Orjan Friberg <organ.friberg@axis.com>
901 Andrew Cagney <cagney@gnu.org>
902
903 * gdbarch.sh (single_step_through_delay): Add.
904 * gdbarch.h, gdbarch.c: Re-generate.
905 * config/mips/tm-mips.h (STEP_SKIPS_DELAY_P, STEP_SKIPS_DELAY)
906 (mips_step_skips_delay): Delete.
907 * mips-tdep.c (mips_single_step_through_delay): Replace
908 mips_step_skips_delay.
909 (mips_gdbarch_init): Set single_step_through_delay.
910 (mips_dump_tdep): Do not print STEP_SKIPS_DELAY.
911
2440b685
MK
9122004-10-31 Mark Kettenis <kettenis@gnu.org>
913
914 * tramp-frame.c (tramp_frame_prepend_unwinder): Set unwinder type
915 from TRAMP_FRAME frame type.
916
56a2fed5
AC
9172004-10-31 Andrew Cagney <cagney@gnu.org>
918
9b792b1d
AC
919 * mdebugread.c (parse_procedure): Wrap use of RA_REGNUM in #ifdef.
920
0a5e8d98
AC
921 * mips-tdep.c (mips_ignore_helper): Delete.
922 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Delete.
923 * infrun.c (handle_inferior_event): Delete #ifdef
924 DEPRECATED_IGNORE_HELPER_CALL code.
925
56a2fed5
AC
926 * config/mips/tm-mips.h (RA_REGNUM): Delete.
927
f69c55b2
MK
9282004-10-31 Mark Kettenis <kettenis@gnu.org>
929
930 * i386v4-nat.c (supply_gregset, supply_fpregset, fill_gregset)
931 (fill_fpregset): Do not compile for 64-bit systems.
932 * i386-sol2-nat.c: Don't include "i386v4-nat.c".
933 * Makefile.in (i386-sol2-nat.o): Update dependencies.
934 * config/i386/i386sol2.mh (NATDEPFILES): Add back i386v4-nat.c.
935
d37cca3d
AC
9362004-10-30 Andrew Cagney <cagney@gnu.org>
937
36b8628e
AC
938 * mdebugread.h: Include "coff/sym.h" and "coff/symconst.h".
939 (struct mdebug_extra_func_info): Define.
940 * config/alpha/tm-alpha.h: Delete same.
941 * config/mips/tm-mips.h: Delete same.
942 * mdebugread.c: Delete same.
943 * Makefile.in: Update dependencies.
944 * mips-mdebug-tdep.c: Include "mdebugread.h".
945
5b123146
AC
946 * objfiles.c: Include "mdebugread.h".
947 * mdebugread.c: Include "mdebugread.h".
948 (ecoff_relocate_cfi): Delete.
949 * config/alpha/tm-alpha.h (ecoff_relcate_cfi): Delete.
950 * config/mips/tm-mips.h (ecoff_relcate_cfi): Delete.
951 * mdebugread.h (ecoff_relocate_efi): New file.
952 * Makefile.in: Update dependencies.
953
b9c3a7de
AC
954 * mips-tdep.c (struct frame_extra_info): Delete.
955 (temp_proc_desc): Delete.
956
f92761ec
AC
957 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Rename
958 MIPS_EFI_SYMBOL_NAME.
959 (mips_extra_func_info_t, mips_extra_func_info): Delete.
960 (struct mdebug_extra_func_info): Replace struct
961 alpha_extra_func_info and alpha_extra_func_info_t.
962 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Rename
963 MIPS_EFI_SYMBOL_NAME.
964 (struct mdebug_extra_func_info): Replace struct
965 alpha_extra_func_info and alpha_extra_func_info_t.
966 * objfiles.c, mips-tdep.c, mips-mdebug-tdep.c: Update.
967 * mdebugread.c, alpha-mdebug-tdep.c:
968
0bb57b31
AC
969 Suggested by Mark Kettenis.
970 * config/mips/tm-mips.h (struct mips_extra_func_info): Delete
971 fields frame_adjust and high_addr.
972 * mips-mdebug-tdep.c (PROC_HIGH_ADDR, PROC_FRAME_ADJUST): Delete.
973 (non_heuristic_proc_desc): Delete references.
974
a5c9623c
AC
975 * mips-tdep.h (MIPS_PRID_REGNUM): Add.
976 * config/mips/tm-mips.h (PRID_REGNUM): Delete.
977 * mips-tdep.c: Update.
978
607fc93c
AC
979 * mips-tdep.h (MIPS_FIRST_EMBED_REGNUM)
980 (MIPS_LAST_EMBED_REGNUM): Add.
981 * config/mips/tm-mips.h (FIRST_EMBED_REGNUM)
982 (LAST_EMBED_REGNUM): Delete.
983 * mipsv4-nat.c, mips-tdep.c, mips-linux-tdep.c: Update.
984
24e05951
AC
985 * config/mips/tm-mips.h (PS_REGNUM): Delete.
986 * mips-tdep.h (MIPS_PS_REGNUM): Add.
987 * remote-vxmips.c, mipsv4-nat.c, mips-tdep.c: Update.
988 * mips-linux-nat.c: Update.
989
613e114f
AC
990 * mips-tdep.h: Add comments on registers.
991 (MIPS_UNUSED_REGNUM): Define.
992 * config/mips/tm-mips.h (ZERO_REGNUM, UNUSED_REGNUM)
993 (T9_REGNUM, V0_REGNUM, A0_REGNUM): Delete.
994 * irix5-nat.c, mipsv4-nat.c, mips-linux-tdep.c: Update.
995 * mips-linux-nat.c, remote-mips.c: Update.
996
d37cca3d
AC
997 * config/mips/tm-mips.h (t_insn): Delete.
998 * mips-tdep.c (mips_fetch_instruction, mips_skip_trampoline_code):
999 Replace t_insn with ULONGEST.
1000
ceb41096
MK
10012004-10-30 Mark Kettenis <kettenis@gnu.org>
1002
d1180b0f
MK
1003 * mipsnbsd-tdep.c: Include "regset.h" and "gdb_assert.h".
1004 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM)
1005 (MIPSNBSD_NUM_GREGS, MIPSNBSD_NUM_FPREGS): New defines.
1006 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
1007 (mipsnbsd_core_fns, mipsnbsd_elfcore_fns): Remove variables.
1008 (mipsnbsd_core_osabi_sniffer): New function.
1009 (mipsnbsd_init_abi): Set regset_from_core_section.
1010 (_initialize_mipsnbsd_tdep): Remove calls to
1011 deprecated_add_core_fns.
1012 (mipsnbsd_supply_fpregset, mipsnbsd_supply_gregset)
1013 (mipsnbsd_regset_from_core_section): New functions.
1014 (mipsnbsd_gregset, mipsnbsd_fpregset): New variables.
1015 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
1016
ceb41096
MK
1017 * procfs.c (procfs_fetch_registers, procfs_store_registers): Like
1018 Remove optimization for DEPRECATED_FP_REGNUM.
1019
ec4045ea
AC
10202004-10-30 Andrew Cagney <cagney@gnu.org>
1021
cd65c8f6
AC
1022 * alpha-tdep.c (alpha_setup_arbitrary_frame): Delete.
1023 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Delete.
1024 (alpha_setup_arbitrary_frame): Delete.
1025 * mips-tdep.c (setup_arbitrary_frame): Delete.
1026 * config/mips/tm-mips.h (SETUP_ARBITRARY_FRAME): Delete.
1027 (setup_arbitrary_frame): Delete.
1028 * stack.c (parse_frame_specification_1): When specified, call
1029 create_new_frame with two parameters. Delete #ifdef
1030 SETUP_ARBITRARY_FRAME.
1031
95ac2dcf
AC
1032 * config/mips/tm-mips.h (MIPS16_INSTLEN, MIPS_NUMREGS)
1033 (MIPS_INSTLEN): Delete.
1034 * mips-tdep.h (enum mips_insn_size): Rename MIPS32_INSN_SIZE and
1035 MIPS16_INSN_SIZE to MIPS_INSN32_SIZE and MIPS_INSN16_SIZE.
1036 * remote-mips.c, mips-tdep.c: Update.
1037
1a8da44d
AC
1038 * config/mips/embed.mt (TDEPFILES): Add mips-mdebug-tdep.o.
1039 * mips-mdebug-tdep.h, mips-mdebug-tdep.c: New files.
1040 * mips-tdep.c (mips_mdebug_frame_cache)
1041 (mips_mdebug_frame_this_id, mips_mdebug_frame_prev_register)
1042 (mips_mdebug_frame_unwind, mips_mdebug_frame_sniffer)
1043 (mips_mdebug_frame_base_address, mips_mdebug_frame_sniffer)
1044 (mips_mdebug_frame_base_sniffer, non_heuristic_proc_desc)
1045 (compare_pdr_entries, the_bfd, mips16_fetch_instruction): Delete.
1046 (mips_gdbarch_init): Do not append mdebug sniffers.
1047 (PROC_LOW_ADDR, PROC_HIGH_ADDR, PROC_FRAME_OFFSET)
1048 (PROC_FRAME_REG, PROC_FRAME_ADJUST, PROC_REG_MASK)
1049 (PROC_FREG_MASK, PROC_REG_OFFSET, PROC_FREG_OFFSET, PROC_PC_REG)
1050 (PROC_SYMBOL, _PROC_MAGIC_): Delete.
1051 * Makefile.in: Update dependencies.
1052
e6bc2e8a
AC
1053 * mips-tdep.h (mips_abi_regsize): Declare.
1054 * mips-tdep.c (mips_abi_regsize): Make non-static.
1055
ec4045ea
AC
1056 * mips-tdep.c (gdb_print_insn_mips): Simplify.
1057 (make_mips16_addr): Delete.
e6bc2e8a 1058
6b16acab
MK
10592004-10-30 Mark Kettenis <kettenis@gnu.org>
1060
1061 * i386-sol2-nat.c: New file.
1062 * Makefile.in (ALLDEPFILES): Add i386-sol2-nat.c and
1063 i386-sol2-tdep.c.
1064 (i386-sol2-nat.o): Update dependencies.
1065 * config/i386/i386sol2.mh (NATDEPFILES): Remove i386v4.o, add
1066 i386-sol2-nat.o.
1067
8b622e6a
AC
10682004-10-30 Andrew Cagney <cagney@gnu.org>
1069
1070 Total breakage identified by Joel Brobecker.
1071 * mips-tdep.c (after_prologue): Delete.
1072 (mips_skip_prologue): Use skip_prologue_using_sal.
1073 (heuristic_proc_desc): Delete, unused.
1074
772cf8be
MK
10752004-10-30 Mark Kettenis <kettenis@gnu.org>
1076
1077 * procfs.c (proc_get_gregs, proc_get_fpregs, proc_set_gregs)
1078 (proc_set_fpregs, procfs_fetch_registers, procfs_store_registers):
1079 Cleanup coding style.
1080
9c8fdbfa
AC
10812004-10-30 Andrew Cagney <cagney@gnu.org>
1082
0fe7e7c8
AC
1083 * mips-tdep.h (mips_pc_is_mips16): Declare.
1084 * mips-tdep.c (mips_pc_is_mips16): Rename pc_is_mips16, make
1085 non-static. Update calls.
1086
1b295c3d
AC
1087 * cli/cli-decode.c (add_setshow_enum_cmd): New function.
1088 * command.h (add_setshow_enum_cmd): Declare.
1089 * mips-tdep.c (_initialize_mips_tdep): Use add_setshow_enum_cmd.
1090
6bcadd06
AC
1091 * mips-tdep.c (_initialize_mips_tdep): Use
1092 add_setshow_zinteger_cmd.
1093
9c8fdbfa
AC
1094 * mips-tdep.c (mips_eabi_extract_return_value)
1095 (mips_o64_extract_return_value, mips_o64_store_return_value)
1096 (return_value_location, mips_eabi_reg_struct_has_addr)
1097 (mips_eabi_use_struct_convention)
1098 (mips_eabi_store_return_value): Delete.
1099 (mips_eabi_store_return_value): New function.
1100 (mips_eabi_return_value): New function.
1101 (mips_gdbarch_init): For O64 and EABI, delete
1102 extract_return_value, store_return_value, use_struct_convention
1103 and reg_struct_has_addr, add return_value.
1104
1d93fe1a
AC
1105 * mips-tdep.c (read_signed_register): Use
1106 regcache_cooked_read_signed.
1107
303d2914
MK
11082004-10-30 Mark Kettenis <kettenis@gnu.org>
1109
1110 * mipsread.c: Cleanup coding style.
1111 (mipscoff_new_init, mipscoff_symfile_init, mipscoff_symfile_read)
1112 (mipscoff_symfile_finish): Remove prototypes.
1113
11142004-10-29 Mark Kettenis <kettenis@gnu.org>
1115
1116 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
1117 (mips_mdebug_frame_cache, mips16_scan_prologue)
1118 (mips32_scan_prologue, mips_stub_frame_cache)
1119 (heuristic_proc_start, heuristic_proc_desc)
1120 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
1121 (mips_n32n64_return_value, mips_o32_push_dummy_call)
1122 (mips_o32_return_value, mips_o64_push_dummy_call)
1123 (mips_step_skips_delay, mips_skip_trampoline_code)
1124 (mips_gdbarch_init): Use MIPS_A0_REGNUM instead of A0_REGNUM,
1125 MIPS_RA_REGNUM instead of RA_REGNUM, MIPS_T9_REGNUM instead of
1126 T9_REGNUM, MIPS_V0_REGNUM instead of V0_REGNUM, MIPS_ZERO_REGNUM
1127 instead of ZERO_REGNUM, MIPS32_SIZE_INSN instead of MIPS_INSTLEN
1128 and MIPS16_INSN_SIZE instead of MIPS16_INSTLEN.
1129 (mips_dump_tdep): Don't print A0_REGNUM, RA_REGNUM,
1130 T9_REGNUM, V0_REGNUM, ZERO_REGNUM, MIPS_INSTLEN and
1131 MIPS16_INSTLEN. Use MIPS_A0_REGNUM instead of A0_REGNUM.
1132 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
1133 (mips_linux_n32n64_sigframe_init): Use MIPS_ZERO_REGNUM instead of
1134 ZERO_REGNUM.
1135 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
1136 (mipsnbsd_cannot_store_register): Use MIPS_ZERO_REGNUM instead of
1137 ZERO_REGNUM.
1138 (mipsnbsd_get_longjmp_target): Use MIPS_A0_REGNUM instead of
1139 A0_REGNUM.
1140 * mipsnbsd-nat.c: Include "mips-tdep.h".
1141 (getregs_supplies): Use MIPS_ZERO_REGNUM instead of ZERO_REGNUM.
1142 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
1143
1c8831c5
AC
11442004-10-29 Andrew Cagney <cagney@gnu.org>
1145
1146 * stack.c (parse_frame_specification_1): New function based on
1147 parse_frame_specification. Add message and selected_frame_p
1148 paramters. Truely always return non-NULL.
1149 (parse_frame_specification): Call parse_frame_specification_1.
1150 (frame_info): Update. Eliminate target_has_stack check.
1151 (select_frame_command): Update.
1152
b04f3ab4
AC
11532004-10-29 Andrew Cagney <cagney@gnu.org>
1154
1155 * frame.h (get_selected_frame): Add message parameter.
1156 * frame.c (get_selected_frame): Add and use message parameter.
1157 * stack.c (current_frame_command, return_command, locals_info)
1158 (catch_info, args_info, up_silently_base, down_silently_base): Use
1159 get_selected_frame with an explicit message.
1160 * thread.c, stack.c, sh-tdep.c, sh64-tdep.c: Update.
1161 * remote-rdp.c, remote-mips.c, remote-e7000.c: Update.
1162 * ocd.c, mi/mi-main.c, mi/mi-cmd-stack.c: Update.
1163 * infrun.c, inflow.c, infcmd.c, frame.c: Update.
1164 * findvar.c, eval.c, corelow.c, bsd-kvm.c: Update.
1165 * breakpoint.c: Update.
1166
11672004-10-29 Andrew Cagney <cagney@gnu.org>
00b25ff3
AC
1168
1169 * trad-frame.c (trad_frame_get_prev_register): Use
1170 frame_unwind_register instead of frame_register_unwind, do not
1171 recurse the register's location.
1172 * xstormy16-tdep.c (xstormy16_frame_prev_register):
1173 * sparc-tdep.c (sparc32_frame_prev_register): Ditto.
1174 * sparc64-tdep.c (sparc64_frame_prev_register): Ditto.
1175 * sh-tdep.c (sh_frame_prev_register): Ditto.
1176 * m68k-tdep.c (m68k_frame_prev_register): Ditto.
1177 * i386-tdep.c (i386_frame_prev_register): Ditto.
1178 * dwarf2-frame.c (dwarf2_frame_prev_register): Ditto.
1179 * amd64-tdep.c (amd64_frame_prev_register): Ditto.
1180
7a952542
MK
11812004-10-28 Mark Kettenis <kettenis@jive.nl>
1182
c18c06be
MK
1183 * proc-events.c: Fix several coding-style issues. Consistently
1184 use #ifdef instead of #if defined().
1185 (proc_prettyfprint_fault, proc_prettyfprint_faultset): Use
1186 ARRAY_SIZE.
1187 (_initialize_proc_events): New prototype.
1188
7a952542
MK
1189 * proc-why.c: Fix several coding-style issues.
1190 (proc_prettyfprint_why): Use ARRAY_SIZE.
1191
fcad0fa4
JB
11922004-10-27 Jim Blandy <jimb@redhat.com>
1193
1194 * remote.c (fetch_register_using_p): Construct 'p' packet in a
1195 manner independent of the host byte order.
1196
c163184f
MK
11972004-10-27 Mark Kettenis <kettenis@gnu.org>
1198
1199 * mips-tdep.c (id_delayed): Remove prototype.
1200
9c46b6f0
MK
12012004-10-26 Mark Kettenis <kettenis@gnu.org>
1202
1203 * mips-tdep.h: Add MIPS_ZERO_REGNUM, MIPS_AT_REGNUM,
1204 MIPS_V0_REGNUM. MIPS_A0_REGNUM, MIPS_T9_REGNUM and MIPS_RA_REGNUM
1205 to enum with register numbers.
1206 (enum mips_insn_size): New enum.
1207
0d0266c6
AC
12082004-10-26 Andrew Cagney <cagney@gnu.org>
1209
e7d6a6d2
AC
1210 * config/mips/tm-linux.h: Delete #undef SKIP_TRAMPOLINE_CODE.
1211 * mips-tdep.c (mips_skip_trampoline_code): Rename mips_skip_stub.
1212 (mips_gdbarch_init): Update.
1213 (mips_dump_tdep): Do not print SKIP_TRAMPOLINE_CODE.
1214
c5115f39
AC
1215 * config/arm/tm-linux.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1216 * config/mips/tm-nbsd.h, config/mips/tm-linux.h: Delete #undef
1217 IN_SOLIB_RETURN_TRAMPOLINE.
1218 * mips-tdep.c (mips_dump_tdep): Do not print
1219 IN_SOLIB_RETURN_TRAMPOLINE.
1220 (mips_in_solib_return_trampoline): Rename mips_in_return_stub.
1221 (mips_gdbarch_init): Update.
1222
0d0266c6
AC
1223 * mips-tdep.h (mips_software_single_step): Move to here ...
1224 * config/mips/tm-mips.h: ... from here.
1225 * config/mips/tm-linux.h (SOFTWARE_SINGLE_STEP_P)
1226 (SOFTWARE_SINGLE_STEP): Delete.
1227 * mips-linux-tdep.c (mips_linux_init_abi): Set software_single_step.
1228
156a53ca
AC
12292004-10-25 Andrew Cagney <cagney@gnu.org>
1230
1231 * NEWS: Add Changes since GDB 6.3 section.
1232
f27cf670
AS
12332004-10-23 Andreas Schwab <schwab@suse.de>
1234
156a53ca
AC
1235 * ada-lang.c (grow_vect): Return the new array instead of
1236 expecting pointer to pointer to avoid violation of aliasing rules.
f27cf670
AS
1237 * ada-lang.h (GROW_VECT): Adapt call to grow_vect.
1238
121d8485
UW
12392004-10-23 Ulrich Weigand <uweigand@de.ibm.com>
1240
1241 * s390-tdep.c (enum pv_boolean): Remove.
1242 (pv_is_array_ref): Remove.
1243 (s390_on_stack): Remove.
1244 (S390_NUM_SPILL_SLOTS): Remove.
1245 (struct s390_prologue_data): Remove members 'spill' and 'back_chain',
1246 add members 'gpr_slot', 'fpr_slot', and 'back_chain_saved_p'.
1247 (s390_store): Track all stores of orginal incoming registers to the
1248 stack constant offsets relative to the CFA, instead of only tracking
1249 stores into specific spill slots.
1250 (s390_load): Likewise.
1251 (s390_analyze_prologue): Adapt to struct s390_prologue_data changes.
1252 (s390_prologue_frame_unwind_cache): Likewise. Only track registers
1253 defined as call-saved by the ABI.
1254 (s390_push_dummy_call): Use bottom of dummy call argument save area
1255 as return value, not the top. Do not store to the called function's
1256 register save area.
1257 (s390_unwind_dummy_id): Adapt accordingly.
1258
0a6ddd08
AC
12592004-10-23 Andrew Cagney <cagney@gnu.org>
1260
1261 * objfiles.h (struct objfile): Rename obj_private to
1262 deprecated_obj_private, sym_private to deprecated_sym_private, and
1263 sym_stab_info to deprecated_sym_stab_info.
1264 * gdb-stabs.h: Update.
1265 * elfread.c: Update.
1266 * dbxread.c: Update.
1267 * coffread.c: Update.
1268 * xcoffread.c: Update.
1269 * symfile.c: Update.
1270 * somread.c: Update.
1271 * nlmread.c: Update.
1272 * mdebugread.c: Update.
1273 * hpread.c: Update.
1274 * coffread.c: Update.
1275
abc08782
MK
12762004-10-23 Mark Kettenis <kettenis@gnu.org>
1277
1278 * mips64obsd-nat.c, mips64obsd-tdep.c: New files.
1279 * configure.host: Add mips64*-*-openbsd*.
1280 * configure.tgt: Add mips64*-*-openbsd*.
1281 * Makefile.in (ALLDEPFILES): Add mips64obsd-nat.o,
1282 mips64obsd-tdep.c.
1283 (mips64obsd-nat.o, mips64obsd-tdep.o): New dependecies.
1284 * config/mips/obsd64.mh, config/mips/obsd64.mt: New files.
1285
fc062ac6
JB
12862004-10-21 Joel Brobecker <brobecker@gnat.com>
1287
1288 * symtab.c (symbol_search_name): Minor reformatting.
1289
5bccb4d1
JB
12902004-10-20 Joel Brobecker <brobecker@gnat.com>
1291
1292 * symtab.h: Fix typo in comment.
1293
a738430d
MK
12942004-10-19 Mark Kettenis <kettenis@gnu.org>
1295
1296 * dwarf2read.c (struct comp_unit_head): Fix coding style.
1297 (dwarf_decode_line_header): Likewise.
1298
f2cb65ca
MC
12992004-10-19 Michael Chastain <mec.gnu@mindspring.com>
1300
1301 * NEWS: GDB works with GCC -feliminate-dwarf2-dups.
1302
09e55376
AC
13032004-10-19 Andrew Cagney <cagney@gnu.org>
1304
1305 GDB 6.3 branch created.
1306 * version.in: Bump to version 6.3.50_2004-10-19-cvs.
1307
bc5f45f8
JB
13082004-10-15 Joel Brobecker <brobecker@gnat.com>
1309
1310 * dwarf2read.c (set_cu_language): Set language to Ada for
1311 DW_LANG_Ada83 and DW_LANG_Ada95.
1312
2941da8c
MC
13132004-10-15 Michael Chastain <mec.gnu@mindspring.com>
1314
1315 From Andreas Schwab <schwab@suse.de>:
1316 * Makefile.in (.y.c, .l.c.): Fix the substitutions for
1317 for xmalloc and xrealloc.
1318
34a17005
AC
13192004-10-15 Andrew Cagney <cagney@gnu.org>
1320
1321 * ada-exp.y, ada-lex.l: Use xmalloc and xrealloc through out.
1322 * inf-ptrace.c: Include "gdb_wait.h" instead of <wait.h>.
1323 * Makefile.in (.y.c, .l.c): Don't replace xmalloc with xxmalloc.
1324 Update dependencies.
1325
714e53ab
PH
13262004-10-15 Paul Hilfinger <Hilfinger@gnat.com>
1327
1328 * ada-lang.c (ada_lookup_symbol): Correct comment.
1329 (ada_evaluate_subexp): Change error message for
1330 OP_FUNCALL case so as not to indicate an internal error.
1331
13322004-10-15 Joel Brobecker <brobecker@gnat.com>
1333
1334 Committed by Paul Hilfinger.
1335 * ada-lang.c (ada_template_to_fixed_record_type_1): Detect bogus
1336 type sizes in XVE/XVU types, and emit a warning when that happens,
1337 instead of rounding up the size of the resulting type.
1338 Some minor reformatting.
1339 (ada_is_aligner_type): Do not consider a type as an aligner type
1340 if there is a corresponding XVS type as well.
1341 (ada_evaluate_subexp): For TERNOP_SLICE, handle cases where we
1342 have several levels of pointer indirection to the array.
1343
13442004-10-15 Jerome Guitton <guitton@gnat.com>
1345
1346 Committed by Paul Hilfinger.
1347 * ada-lang.c (check_size): New function.
1348 (coerce_unspec_val_to_type): call check_size to make sure
1349 that the object size is reasonable.
1350 (ada_evaluate_subexp): in UNOP_IND: Ditto. In TERNOP_SLICE:
1351 Implements the case when we get a reference when we evaluate
1352 the expression of one of the bounds of the slice.
1353 (ada_value_struct_elt): when a packed array field is
1354 a reference, use ada_coerce_ref to dereference it; use
1355 ada_value_ind only if it is a pointer.
1356
29639122
JB
13572004-10-15 Joel Brobecker <brobecker@gnat.com>
1358
1359 * mips-tdep.c (mips32_scan_prologue): Move the implementation up
1360 a bit to avoid the necessity of an advance declaration. Remove
1361 declaration.
1362 (set_reg_offset): Move implemenation up.
1363 (mips16_get_imm): Likewise.
1364 (mips16_scan_prologue): Likewise.
1365 (reset_saved_regs): Likewise.
1366 (mips32_scan_prologue): Likewise.
1367
a65bbe44
JB
13682004-10-14 Joel Brobecker <brobecker@gnat.com>
1369
1370 * mips-tdep.c (mips32_scan_prologue): Add advance declaration.
1371 Remove sp as a parameter, compute it internally instead. Move
1372 prologue scanning limit from heuristic_proc_desc to here.
1373 (mips16_scan_prologue): Likewise.
1374 (mips_insn16_frame_cache): Replace call to heuristic_proc_desc
1375 by call to mips16_scan_prologue.
1376 (mips_insn32_frame_cache): Replace call to heuristic_proc_desc
1377 by call to mips32_scan_prologue.
1378 (heuristic_proc_desc): Remove code that's no longer necessary.
1379 Update calls to mips16_scan_prologue and mips32_scan_prologue.
1380 (mips_skip_prologue): Update calls to mips16_scan_prologue
1381 and mips32_scan_prologue.
1382
1c645fec
JB
13832004-10-14 Joel Brobecker <brobecker@gnat.com>
1384
1385 * mips-tdep.c (mips16_scan_prologue): Merge code from
1386 mips16_skip_prologue. Now return the address of the first
1387 instruction past the function prologue.
1388 (mips16_skip_prologue): Remove, no longer necessary.
1389 (mips_skip_prologue): Replace call to mips16_skip_prologue
1390 by call to mips16_scan_prologue.
1391
98b4dd94
JB
13922004-10-14 Joel Brobecker <brobecker@gnat.com>
1393
1394 * mips-tdep.c (mips32_scan_prologue): Merge code from
1395 mips32_skip_prologue. Now return the address of the first
1396 instruction past the function prologue.
1397 (mips32_skip_prologue): Remove. No longer necessary.
1398 (mips16_skip_prologue): Add parameter end_pc instead of
1399 computing it.
1400 (mips_skip_prologue): Compute the upper limit for the
1401 prologue scanning. Update call to mips16_skip_prologue.
1402 Replace call to mips32_skip_prologue by call to
1403 mips32_scan_prologue.
1404
ad4c72d2
MK
14052004-10-14 Mark Kettenis <kettenis@gnu.org>
1406
dfaf8edb
MK
1407 * hppa-tdep.c (hppa_frame_cache): Add support for OpenBSD and
1408 NetBSD system call stubs that store %rp in the ERP slot of the
1409 stack frame.
1410
3e3a28f1
MK
1411 * source.c: Always define O_BINARY to 0 if not defined already.
1412 (openp): Unconditionally use O_BINARY.
1413
ad4c72d2
MK
1414 * top.c (gdb_readline): Always accept "\r\n" as a line-ending.
1415 * event-top.c (gdb_readline2): Likewise.
1416
52bd1401
OF
14172004-10-14 Orjan Friberg <orjanf@axis.com>
1418
1419 * cris-tdep.c (_initialize_cris_tdep): Re-add call to
1420 deprecated_add_core_fns which was removed by mistake.
1421
e0e25c6c
KB
14222004-10-13 Kevin Buettner <kevinb@redhat.com>
1423
1424 * ia64-linux-nat.c (fill_gregset, fill_fpregset): Replace
1425 references to deprecated_registers[] with equivalent code.
1426
9f335945
KB
14272004-10-13 Kevin Buettner <kevinb@redhat.com>
1428
1429 * rs6000-tdep.c (rs6000_push_dummy_call): Replace references to
1430 ``deprecated_registers'' with equivalent code. Use gdb_assert()
1431 instead of explicit test and print statement.
1432
06c2338d
MK
14332004-10-12 Mark Kettenis <kettenis@gnu.org>
1434
1b9445c2
MK
1435 * sparc-nat.c: Include "inf-ptrace.h".
1436 (sparc_target): New function.
1437 * sparc-nat.h: Update copyright year.
1438 (sparc_target): New prototype.
1439 * sparcnbsd-nat.c: Don't include "gdbcore.h", include "target.h".
1440 (_initialize_sparcnbsd_nat): Construct and add target vector.
1441 * sparc64nbsd-nat.c: Include "target.h".
1442 (_initialize_sparc64nbsd_nat): Construct and add target vector.
1443 * Makefile.in (sparc-nat.o, sparcnbsd-nat.o, sparc64nbsd-nat.o):
1444 Update dependencies.
1445 * config/sparc/nbsd64.mh (NATDEPFILES): Remove infptrace.o and
1446 inftarg.o, add inf-ptrace.o.
1447 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1448 inftarg.o, add inf-ptrace.o and bsd-kvm.o.
1449 (NAT_FILE): Set to nm-bsd.h.
1450 (LOADLIBES): New variable.
1451 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
1452 infarg.o, add inf-ptrace.o.
1453 * config/sparc/nm-nbsdaout.h: Remove file.
1454 * config/sparc/fbsd.mh (NATDEPFILES): Add inf-ptrace.o.
1455 * config/sparc/linux.mh (NATDEPFILES): Add inf-ptrace.o.
1456 * config/sparc/linux64.mh (NATDEPFILES): Add inf-ptrace.o.
1457
06c2338d
MK
1458 * defs.h [!FOPEN_RB]: Include "fopen-bin.h" instead of
1459 "fopen-same.h". Update comment.
1460
3303a276
MK
14612004-10-11 Mark Kettenis <kettenis@gnu.org>
1462
1463 * i386gnu-nat.c: Include "gdb_string.h".
1464 (fetch_fpregs): Use i387_supply_fxsave to fill the floating-point
1465 registers when the floating-point state isn't initialized.
1466 * Makefile.in (i386gnu-nat.o): Update dependencies.
1467
04c663e3
DA
14682004-10-11 David Anderson <davea@sgi.com>
1469
1470 * regcache.c (regcache_raw_read): Comment was missing "to".
1471 Extraneous ' removed.
1472 * gdb_thread_db.h (struct td_thrinfo): ti_lid field
1473 comment now describes use.
1474
a5f6c8f5
OF
14752004-10-11 Orjan Friberg <orjanf@axis.com>
1476
1477 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start)
1478 (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
1479 (cris_sigtramp_frame_this_id, cris_sigtramp_frame_prev_register)
1480 (cris_sigtramp_frame_sniffer): New functions.
1481 (cris_gdbarch_init): Hook in signal trampoline unwinder.
1482 (cris_dwarf2_reg_to_regnum, cris_dwarf2_frame_init_reg): New functions.
1483 (cris_gdbarch_init): Hook in Dwarf-2 unwinder.
1484 (struct gdbarch_tdep, set_cris_dwarf2_cfi, cris_dump_tdep)
1485 (cris_gdbarch_init, _initialize_cris_tdep): Add CRIS Dwarf-2 CFI usage
1486 command.
1487 (cris_version_update): Remove, replace with ...
1488 (set_cris_version): New function.
1489 (struct gdbarch_tdep, cris_mode, cris_mode_update)
1490 (cris_cannot_store_register, cris_dump_tdep, cris_gdbarch_init)
1491 (_initialize_cris_tdep): Remove CRIS mode command.
1492 (cris_fpless_backtrace, _initialize_cris_tdep): Remove
1493 cris-fpless-backtrace command.
1494 (cris_scan_prologue): Fix prologue scanning limit.
1495 (cris_register_type): Update to reflect actual registers.
1496 (cris_register_bytes_ok) Remove.
1497 (cris_gdbarch_init): Remove support for CRIS v8 and v9.
1498 Remove set_gdbarch_deprecated_register_size,
1499 set_gdbarch_deprecated_register_byte, set_gdbarch_register_bytes_ok.
1500
77109804
AC
15012004-10-10 Andrew Cagney <cagney@gnu.org>
1502
1503 * ada-lang.c (lim_warning): Add ATTR_FORMAT prototype and FIXME
1504 comment.
1505
25652d4f
JB
15062004-10-10 Joel Brobecker <brobecker@gnat.com>
1507
1508 * mips-tdep.c (mips16_scan_prologue): Remove redundant code.
1509
1e05a7bf
JB
15102004-10-10 Joel Brobecker <brobecker@gnat.com>
1511
1512 * mips-tdep.c (mips16_scan_prologue): Renames
1513 mips16_heuristic_proc_desc. Update comment.
1514 (mips32_scan_prologue): Renames mips32_heuristic_proc_desc.
1515 (heuristic_proc_desc): Update calls to the 2 functions above.
1516
c68a4142
JB
15172004-10-10 Joel Brobecker <brobecker@gnat.com>
1518
1519 * mips-tdep.c (mips_insn16_frame_cache): Remove unused variables.
1520 Update comments. Also immediately return empty cache when the start
1521 address of our function could not be found.
1522 (mips_insn32_frame_cache): Likewise.
1523
0fce0821
JB
15242004-10-10 Joel Brobecker <brobecker@gnat.com>
1525
1526 * mips-tdep.c (mips16_decode_reg_save): Delete, no longer used.
1527 (mips_insn16_frame_cache): Pass frame cache in call to
1528 heuristic_proc_desc. Move some code to mips16_heuristic_proc_desc.
1529 Remove code that became redundant as a consequence.
1530 (mips32_heuristic_proc_desc): No longer compute a fake
1531 procedure descriptor. Compute the full frame cache instead.
1532 Some minor comment reformatting.
1533
b672553e
JB
15342004-10-10 Jim Blandy <jimb@redhat.com>
1535
1536 * MAINTAINERS (generic symtabs, dwarf readers, elf reader, stabs
1537 reader, tracing bytecode stuff): Remove self.
1538
9cc52bde
MK
15392004-10-10 Mark Kettenis <kettenis@gnu.org>
1540
cc9784b6
MK
1541 * sparc64-linux-tdep.c: Update copyright year. Don't include
1542 "solib-svr4.h".
1543 (sparc64_linux_svr4_fetch_link_map_offsets): Remove function.
1544 (sparc64_linux_init_abi): Don't set solib_svr4_link_map_offsets.
1545 * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
1546
ee8aef23
MK
1547 * sparc-linux-tdep.c: Update copyright year.
1548 (sparc_linux_sigtramp_start): Change first argument from CORE_ADDR
1549 to struct frame_info *. Use safe_frame_unwind_memory instead of
1550 deprecated_read_memory_nobpt.
1551 (sparc32_linux_sigtramp_start, sparc32_linux_rt_sigtramp_start):
1552 Change argumen from CORE_ADDR to struct frame_info *. Adjust for
1553 changed signature of sparc_linux_sigtramp_start.
1554 (sparc32_linux_pc_in_sigtramp): Remove function.
1555 (sparc32_linux_sigtramp_p): New function.
1556 (sparc32_linux_sigtramp_frame_sniffer): Use
1557 sparc32_linux_sigtramp_p instead of sparc32_linux_pc_in_sigtramp.
1558
bc73f8cc
MK
1559 * sparc-linux-tdep.c (sparc32_linux_svr4_fetch_link_map_offsets):
1560 Remove function.
1561 (sparc32_linux_init_abi): Don't set solib_svr4_link_map_offsets.
1562
a2249542
MK
1563 * ada-lang.c (lim_warning): Re-implement as a varargs function.
1564 (decode_packed_array_type, value_subscript_packed)
1565 (ada_evaluate_subexp, to_fixed_range_type): Remove redundant
1566 argument in call to lim_warning.
1567
9cc52bde
MK
1568 * configure.in: Really disable the TUI if an enhanced curses
1569 library isn't found.
1570 * configure: Regenerate.
1571
151fc45b
MK
15722004-10-09 Mark Kettenis <kettenis@gnu.org>
1573
1574 * config/i386/nbsdaout.mh (NAT_FILE): Set to solib.h.
1575 * config/i386/nbsdelf.mh (NAT_FILE): Set to solib.h.
1576 * config/i386/nm-nbsdaout.h: Remove file.
1577 * config/i386/nm-fbsd.h (link_object, lo_name, lo_library)
1578 (lo_unused, lo_major, lo_minor, lo_next, link_map, lm_addr)
1579 (lm_name, lm_next, lm_lop, lm_lob, lm_rwt, lm_ld, lm_lpd)
1580 (link_dynamic_2, ld_loaded, ld_need, ld_rules, ld_got, ld_plt)
1581 (ld_rel, ld_hash, ld_stab, ld_stab_hash, ld_buckets, ld_symbols)
1582 (ld_symb_size, ld_text, ld_plt_sz, rtc_symb, rtc_sp, rtc_next)
1583 (ld_debug, ldd_version, ldd_in_debugger, ldd_sym_loaded)
1584 (ldd_bp_addr, ldd_bp_inst, ldd_cp, link_dynamic, ld_version)
1585 (ldd, ld_un, ld_2): Remove defines.
1586 * config/i386/nm-obsd.h: Likewise.
1587
375c0479
PH
15882004-10-09 Paul Hilfinger <hilfingr@nile.gnat.com>
1589
1590 * ada-lex.l: Remove useless rule whose right-context clause
1591 causes unreferenced static function warning for yyrealloc.
1592 (ada_flex_use): Remove the artificial reference to yyrealloc.
1593
c8e73a31
AC
15942004-10-08 Andrew Cagney <cagney@gnu.org>
1595
1596 * target.h (struct target_ops): Rename to_xfer_memory to
1597 deprecated_xfer_memory.
1598 * target.c: Update.
1599 (deprecated_debug_xfer_memory): Rename debug_to_xfer_memory.
1600 * wince.c: Update.
1601 * win32-nat.c: Update.
1602 * v850ice.c: Update.
1603 * uw-thread.c: Update.
1604 * thread-db.c: Update.
1605 * sol-thread.c: Update.
1606 * remote.c: Update.
1607 * remote-vx.c: Update.
1608 * remote-st.c: Update.
1609 * remote-sim.c: Update.
1610 * remote-sds.c: Update.
1611 * remote-rdp.c: Update.
1612 * remote-rdi.c: Update.
1613 * remote-mips.c: Update.
1614 * remote-m32r-sdi.c: Update.
1615 * remote-e7000.c: Update.
1616 * procfs.c: Update.
1617 * ppc-bdm.c: Update.
1618 * nto-procfs.c: Update.
1619 * monitor.c: Update.
1620 * linux-nat.c: Update.
1621 * inftarg.c: Update.
1622 * hpux-thread.c: Update.
1623 * go32-nat.c: Update.
1624 * gnu-nat.c: Update.
1625 * exec.c: Update.
1626 * corelow.c: Update.
1627 * bsd-kvm.c: Update.
1628 * aix-thread.c: Update.
1629
aa869812
AC
16302004-10-08 Andrew Cagney <cagney@gnu.org>
1631
1632 * target.c (debug_target): Move to near start of file.
1633 (target_stopped_data_address_p): Re-org logic, add casts.
1634
8dcef9cf
MK
16352004-10-02 Mark Kettenis <kettenis@gnu.org>
1636
1637 * solib-sunos.c [HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS] (link_map)
1638 (lm_addr, lm_name, lm_next, link_dynamic_2, ld_loaded, rtc_symb)
1639 (rtc_sp, rtc_next, ld_debug, ldd_in_debugger, ldd_bp_addr)
1640 (ldd_bp_inst, ldd_cp, link_dynamic, ld_version, ldd, ld_un, ld_2):
1641 New defines.
1642
4aa7a7f5
JJ
16432004-10-08 Jeff Johnston <jjohnstn@redhat.com>
1644
1645 * target.h (to_stopped_data_address): Change prototype to
1646 take a CORE_ADDR pointer and return an int.
1647 * target.c (update_current_target): Change to_stopped_data_address
1648 to match new prototype.
1649 (debug_to_stopped_data_address): Change appropriately.
1650 * breakpoint.c (bpstat_stop_status): Change call to
1651 target_stopped_data_address to use new prototype.
1652 * frv-tdep.c (frv_have_stopped_data_address): New function.
1653 (frv_stopped_data_address): Change to new prototype and
1654 functionality.
1655 * ia64-linux-nat.c (ia64_stopped_data_address): Change to new
1656 prototype and functionality.
1657 (ia64_stopped_by_watchpoint): New function.
1658 * i386-nat.c (i386_stopped_data_address): Change to new
1659 prototype and functionality.
1660 (i386_stopped_by_watchpoint): New function.
1661 * remote.c (remote_stopped_data_address): Change to new prototype
1662 and functionality.
1663 * remote-m32r-sdi.c (m32r_stopped_data_address): Ditto.
1664 * config/frv/tm-frv.h (frv_stopped_data_address): Change prototype.
1665 (STOPPED_BY_WATCHPOINT): Change to use frv_have_stopped_data_address.
1666 * config/i386/nm-i386.h (STOPPED_BY_WATCHPOINT): Change to use
1667 new i386_stopped_by_watchpoint function.
1668 (i386_stopped_by_watchpoint): New prototype.
1669 (i386_stoppped_data_address): Change to new prototype.
1670 * config/ia64/nm-linux.h (STOPPED_BY_WATCHPOINT): Change to use
1671 new ia64_stopped_by_watchpoint function.
1672 (ia64_stopped_by_watchpoint): New prototype.
1673 (ia64_stopped_data_address): Ditto.
1674
61ee279c
PH
16752004-10-08 Paul Hilfinger <Hilfinger@gnat.com>
1676
1677 * ada-typeprint.c (ada_print_type): Use int_string for printing
1678 modulus of modular type.
1679 * ada-lang.h (ada_modulus): Change return type to unsigned.
1680 * ada-lang.c (ada_language_arch_info): Correct type of
1681 string_char_type.
1682 (ada_modulus): Return unsigned result.
1683 (ada_lookup_symbol): Remove user disambiguation and modify comment
1684 accordingly.
1685
16862004-10-08 Eric Botcazou <ebotcazou@act-europe.fr>
1687
1688 Committed by Paul Hilfinger.
1689 * ada-lang.c (decode_packed_array): On big-endian targets,
1690 left-justify the value if it comes with a modular type.
1691
16922004-10-08 Joel Brobecker <brobecker@gnat.com>
1693
1694 Committed by Paul Hilfinger.
1695 * ada-lang.c (template_to_static_fixed_type): Fix a small typo.
1696 (is_name_suffix): Add support for "___JM" suffixes.
1697 (ada_check_typedef): Renames ada_completed_type.
1698 Update all users of CHECK_TYPEDEF, check_typedef, and
1699 ada_complete_type to call ada_check_typedef.
1700 * ada-typeprint.c: Likewise.
1701 * ada-valprint.c: Likewise.
1702
b6c25a56
CV
17032004-10-08 Corinna Vinschen <vinschen@redhat.com>
1704
1705 * infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
1706
83ca6a46
NR
17072004-10-08 Nick Roberts <nickrob@snap.net.nz>
1708
1709 * MAINTAINERS: Update e-mail address.
1710
1fd8cd20
DJ
17112004-10-07 Daniel Jacobowitz <dan@debian.org>
1712
1713 From Maciej W. Rozycki <macro@mips.com>:
1714 * mips-tdep.c (mips32_next_pc): Check the register's contents,
1715 not its number for BLEZ/BLEZL and BGTZ/BGTZL.
1716
cea15572
KI
17172004-10-07 Kei Sakamoto <sakamoto.kei@renesas.com>
1718
1719 * m32r-tdep.c (decode_prologue): Support functions written
1720 in assembler language. Recognize trap instructions as the
1721 end of prologue.
1722 (m32r_frame_unwind_cache): Ditto.
1723 (m32r_skip_prologue): Extend search limit. Quit analyzing
1724 prologue if pc's location is not readable.
1725
23485554
PH
17262004-10-06 Paul N. Hilfinger <Hilfinger@gnat.com>
1727
1728 * Makefile.in (.l.c): Do conversions of names of alloc and free
1729 functions that are done for .y.c files, plus special one
1730 for yy_flex_realloc. Also, correct missing-file tests here.
1731 * ada-lex.l (malloc, free): Remove macros.
1732 (resize_tempbuf): Use "realloc"; rely on sed changes to convert to
1733 xrealloc.
1734 (ada_flex_use): Dummy definition to remove warnings about unused
1735 functions.
1736 * ada-exp.y (dummy_string_to_ada_operator): Temporary definition
1737 to suppress warning.
1738
c0409442
CV
17392004-10-06 Corinna Vinschen <vinschen@redhat.com>
1740
1741 * sh-tdep.c (sh_return_value_nofpu): New function, implementing
1742 RETURN_VALUE.
1743 (sh_return_value_fpu): Ditto for CPUs with FPU.
1744 (sh_gdbarch_init): Remove STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
1745 RETURN_VALUE_ON_STACK and USE_STRUCT_CONVENTION throughout.
1746 Install sh_return_value_nofpu resp. sh_return_value_fpu as
1747 RETURN_VALUE functions.
1748
9bed62d7
CV
17492004-10-06 Corinna Vinschen <vinschen@redhat.com>
1750
1751 * sh-tdep.c (sh_pseudo_register_read): Add PSEUDO_BANK_REGNUM handling.
1752 (sh_pseudo_register_write): Ditto.
1753
03131d99
CV
17542004-10-06 Corinna Vinschen <vinschen@redhat.com>
1755
1756 * sh-tdep.c (IS_MACL_STS): New define.
1757 (IS_MOVI20): Ditto.
1758 (IS_MACL_LDS): Ditto.
1759 (sh_analyze_prologue): Recognize STS.L MACL,@-r15 and MOVI20
1760 instructions in prologue.
1761 (sh_in_function_epilogue_p): Recognize LDS.L @r15+,MACL and MOVI20
1762 instructions in epilogue.
1763
da962468
CV
17642004-10-06 Corinna Vinschen <vinschen@redhat.com>
1765
1766 * sh-tdep.c (SH_NUM_REGS): Define as 67.
1767 (sh_sh_register_name): Add eight empty register names.
1768 (sh_sh3_register_name): Ditto.
1769 (sh_sh3e_register_name): Ditto.
1770 (sh_sh2e_register_name): Ditto.
1771 (sh_sh2a_register_name): New function, defining SH2A register set.
1772 (sh_sh2a_nofpu_register_name): New function, defining SH2A register set
1773 in nofpu case.
1774 (sh_sh_dsp_register_name): Add eight empty register names.
1775 (sh_sh3_dsp_register_name): Ditto.
1776 (sh_sh4_register_name): Ditto.
1777 (sh_sh4_nofpu_register_name): Ditto.
1778 (sh_sh4al_dsp_register_name): Ditto.
1779 (sh2a_show_regs): New function.
1780 (sh2a_nofpu_show_regs): New function.
1781 (sh_sh2a_register_type): New function.
1782 (do_bank_register_info): New function.
1783 (sh_print_pseudo_register): Call do_bank_register_info.
1784 Call sh_print_pseudo_register for valid "bank" register.
1785 (sh_sh2a_register_sim_regno): New function.
1786 (sh_gdbarch_init): Add bfd_mach_sh2a and bfd_mach_sh2a_nofpu handling.
1787 Increment pseudo register count by one for all sh variants with
1788 pseudo registers to accomodate pseudo bank register.
1789 * sh-tdep.h: Add register numbers for R0_BANK0_REGNUM, MACHB_REGNUM,
1790 IVNB_REGNUM, PRB_REGNUM, GBRB_REGNUM, MACLB_REGNUM, BANK_REGNUM,
1791 IBCR_REGNUM, IBNR_REGNUM, TBR_REGNUM and PSEUDO_BANK_REGNUM.
1792 Increment pseudo register numbers.
1793
1326e61b
CV
17942004-10-06 Corinna Vinschen <vinschen@redhat.com>
1795
1796 * dwarf2read.c (read_subroutine_type): Call make_function_type
1797 instead of lookup_function_type.
1798
146c42e3
JB
17992004-10-05 Jim Blandy <jimb@redhat.com>
1800
1801 * linux-nat.c (_initialize_linux_nat): Rename child_ops.
1802 (Previous change missed some uses.)
1803
1df84f13
AC
18042004-10-05 Andrew Cagney <cagney@gnu.org>
1805
1806 * target.h (deprecated_child_ops): Rename child_ops.
1807 * wince.c: Update copyright. Rename child_ops.
1808 * win32-nat.c: Rename child_ops.
1809 * target.c: Rename child_ops.
1810 * rs6000-nat.c: Rename child_ops.
1811 * linux-nat.c: Rename child_ops.
1812 * infttrace.c: Rename child_ops.
1813 * inftarg.c: Rename child_ops.
1814 * infptrace.c: Rename child_ops.
1815 * hppah-nat.c: Update copyright. Rename child_ops.
1816 * hpux-thread.c: Update copyright. Rename child_ops.
1817
21e3b9b9
DJ
18182004-10-05 Daniel Jacobowitz <dan@debian.org>
1819
1820 * remote.c (remote_xfer_partial): Handle TARGET_OBJECT_MEMORY.
1821
de83afe7
AC
18222004-10-05 Andrew Cagney <cagney@gnu.org>
1823
1824 * version.in: Bump to version 6.2.50_YYYY-MM-DD-cvs.
1825
10b3939b
DJ
18262004-10-05 Daniel Jacobowitz <dan@debian.org>
1827
1828 * dwarf2read.c (REF_HASH_SIZE): Move earlier.
1829 (die_ref_table): Remove.
1830 (struct dwarf2_cu): Add DIES, DEPENDENCIES, and DIE_REF_TABLE.
1831 (struct dwarf2_per_cu_data): Add PSYMTAB. Add a comment describing
1832 the usage of this type.
1833 (struct dwarf2_per_objfile): Update comment for ALL_COMP_UNITS.
1834 (struct dwarf2_pinfo, PST_PRIVATE, DWARF_INFO_OFFSET): Remove.
1835 (struct dwarf2_queue_item, dwarf2_queue, dwarf2_queue_tail): New.
1836 (dwarf2_create_include_psymtab): Update comment.
1837 (find_partial_die): Remove third argument. Remove unreachable call
1838 to error ().
1839 (dwarf2_find_containing_comp_unit): Update comments. Change one
1840 assertion to an error. Remove an unreachable error.
1841 (dwarf2_find_comp_unit): Update comments.
1842 (type_at_offset): Remove dead code.
1843 (make_cleanup_free_die_list, dwarf2_empty_hash_tables): Remove.
1844 (store_in_ref_table): Add CU argument.
1845 (follow_die_ref): Take DIE, attribute, and CU arguments. Handle
1846 inter-compilation-unit references.
1847 (load_full_comp_unit, process_full_comp_unit): New functions, based
1848 on psymtab_to_symtab_1.
1849 (psymtab_to_symtab_1): Use them.
1850 (dwarf2_add_dependence): New function.
1851 (dwarf2_build_psymtabs_hard): Set the psymtab in per_cu. Always create
1852 a per_cu structure, and save it in READ_PSYMTAB_PRIVATE.
1853 (partial_die_parent_scope, guess_structure_name): Update for changes
1854 to find_partial_die.
1855 (dwarf2_psymtab_to_symtab): Initialize dwarf2_per_objfile here.
1856 (queue_comp_unit, process_queue, dwarf2_release_queue): New.
1857 (read_comp_unit): Don't call dwarf2_empty_hash_tables.
1858 (read_die_and_children): Update call to store_in_ref_table.
1859 (do_free_die_list_cleanup): Remove.
1860 (fixup_partial_die): Update for changes to find_partial_die.
1861 (read_full_die): Handle queueing absolute references.
1862 (read_attribute_value): Use DW_ADDR for all DW_FORM_ref* forms.
1863 (dwarf2_attr, die_specification, die_type)
1864 (die_containing_type, dwarf2_extension): Update calls to
1865 follow_die_ref.
1866 (dump_die): Update DW_FORM_ref* handling.
1867 (dwarf2_get_ref_die_offset): Likewise.
1868 (free_one_comp_unit): Release the dies list.
1869 (dwarf2_mark_helper): New function.
1870 (dwarf2_mark): Use it.
1871
998bdd68
MK
18722004-10-05 Mark Kettenis <kettenis@jive.nl>
1873
1874 * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
1875 when writing to memory.
1876
14588880
KI
18772004-10-05 Kei Sakamoto <sakamoto.kei@renesas.com>
1878
1879 * m32r-tdep.c (m32r_use_struct_convention): Delete function.
1880 (m32r_extract_struct_value_address): Delete function.
1881 (m32r_return_value): New function.
1882 (m32r_gdbarch_init): Instead of store_return_value,
1883 extract_return_value, deprecated_extract_struct_value_address
1884 and deprecated_use_struct_convention, set return_value.
1885
dd5e6932
DJ
18862004-10-03 Daniel Jacobowitz <dan@debian.org>
1887
1888 * dwarf2read.c (read_subrange_type): Add comment for variable
1889 sized arrays.
1890
7dc1ef8d
PH
18912004-10-03 Paul Hilfinger <hilfingr@nile.gnat.com>
1892
1893 * Makefile.in (.l.c): Modify rule for compatibility with recent
1894 versions of flex, and remove most command-line options.
1895 * ada-lex.l: Add %options line in place of -I -i and -s command-line
1896 options.
1897
1f8173e6
PH
18982004-10-02 Paul N. Hilfinger <Hilfinger@gnat.com>
1899
1900 Turn on initial Ada support (mainly expression evaluation).
1901
1902 * Makefile.in (SFILES): Remove ada-tasks.c.
1903 (HFILES_NO_SRCDIR): Add ada-lang.h.
1904 (COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
1905 (YYOBJ): Add ada-exp.o.
1906 (rule .l.c): Generalize to not mention ada.
1907 * symtab.c: Include ada-lang.h.
1908 (symbol_natural_name, symbol_demangled_name)
1909 (symbol_search_name): Add Ada case.
1910
cb85a953
AC
19112004-10-01 Andrew Cagney <cagney@gnu.org>
1912
3f3db248
AC
1913 * Makefile.in (COMMON_OBS): Add inf-child.o.
1914 * config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
1915 * config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
1916 * config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
1917 * config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
1918 * config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
1919 * config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
1920 * config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
1921 * config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
1922 * config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
1923 * config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
1924 * config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
1925 * config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
1926 * config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
1927
cb85a953
AC
1928 * target.c (xfer_using_stratum): Change return type to LONGEST.
1929 On each iteration offset, readbuf and writebuf.
1930 * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
1931 partial_length, and read/modify/write predicate, update comments.
1932 Pass buffer.word to ptrace write.
1933
963a6417
PH
19342004-10-01 Paul N. Hilfinger <Hilfinger@gnat.com>
1935
1936 * symfile.c (init_filename_language_table): Add extensions for
1937 Ada.
1938 * defs.h (enum language): Add language_ada.
1939 * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
1940 * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
1941 (add_symbols_from_enclosing_procs): Make a no-op for now.
1942 (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
1943 (extended_canonical_line_spec, find_sal_from_funcs_and_line)
1944 (find_line_in_linetable, find_next_line_in_linetable)
1945 (read_all_symtabs, is_plausible_func_for_line)
1946 (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
1947 (is_runtime_sym_defined, check_size): Remove declaration.
1948 (function_name_from_pc, ada_translate_error_message)
1949 (ada_lookup_minimal_symbol): Remove definition.
1950 (ada_add_block_symbols): Remove useless label.
1951 * ada-lang.h (ada_maybe_exception_partial_symbol): Remove
1952 useless declaration.
1953 (ada_is_exception_sym): Likewise.
1954
9b32d526
KI
19552004-09-30 Kei Sakamoto <sakamoto.kei@renesas.com>
1956
1957 Add m32r-linux support.
1958 * configure.tgt: Add m32r*-*-linux*.
1959 * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
1960 and m32r-linux-tdep.c.
1961 (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
1962 * m32r-tdep.c: Move some definitions to m32r-tdep.h.
1963 * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
1964 m32r-linux-tdep.c.
1965 * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
1966 config/m32r/linux.mh, config/m32r/linux.mt,
1967 config/m32r/nm-linux.h: New files.
1968
2de118d3
JB
19692004-09-30 Joel Brobecker <brobecker@gnat.com>
1970
1971 * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
1972 (mips32_fetch_instruction): Remove, unused.
1973
a9fe69d1
JB
19742004-09-30 Joel Brobecker <brobecker@gnat.com>
1975
1976 * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
1977 conditions that will always be true.
1978
bc8ffc12
MK
19792004-09-30 Mark Kettenis <kettenis@gnu.org>
1980
ba0cd111
MK
1981 * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
1982 (vaxbsd_fetch_inferior_registers): Rename from
1983 fetch_inferior_registers. Make static.
1984 (vaxbsd_store_inferior_registers): Rename from
1985 store_inferior_registers. Make static.
1986 (_initialize_vaxbsd_nat): Construct and add target vector.
1987 * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1988 inftarg.o. Add inf-child.o and inf-ptrace.o.
1989 * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
1990 inftarg.o. Add inf-child.o and inf-ptrace.o.
1991 (NAT_FILE): Remove.
1992 * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
1993 inftarg.o. Add inf-child.o and inf-ptrace.o.
1994 (NAT_FILE): Remove.
1995 * Makefile.in (vaxbsd-nat.o): Update dependencies.
1996
bc8ffc12
MK
1997 * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
1998 (m88kbsd_fetch_inferior_registers): Rename from
1999 fetch_inferior_registers. Make static.
2000 (m88kbsd_store_inferior_registers): Rename from
2001 store_inferior_registers. Make static.
2002 (_initialize_m88kbsd_nat): New prototype and function.
2003 * config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
2004 inftarg.o. Add inf-child.o and inf-ptrace.o.
2005 (NAT_FILE): Remove.
2006 * Makefile.in (m88kbsd-nat.o): Update dependencies.
2007
27394598
AC
20082004-09-30 Andrew Cagney <cagney@gnu.org>
2009
2010 * target.c (target_xfer_partial): New function.
2011 (target_read_memory_partial, target_write_memory_partial)
2012 (default_xfer_partial, target_read_partial, target_write_partial)
2013 (xfer_using_stratum): Use.
2014 (debug_to_xfer_partial): Delete function.
2015 (setup_target_debug): Do not override to_xfer_partial.
2016
74a4fe32
MK
20172004-09-30 Mark Kettenis <kettenis@chello.nl>
2018
2019 * fork-child.c: Update copyright year. Fix coding style.
2020
982526a1
MK
20212004-09-29 Mark Kettenis <kettenis@gnu.org>
2022
2023 * defs.h (msavestring, mstrsave): Remove prototypes.
2024 * utils.c (msavestring, mstrsave): Remove functions.
2025 * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
2026 * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
2027 of mstrsave.
2028 * source.c (find_and_open_source): Use xstrdup instead of
2029 mstrsave.
2030
b8eb5af0
AC
20312004-09-30 Andrew Cagney <cagney@gnu.org>
2032
0779438d
AC
2033 * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
2034 (inf_ptrace_xfer_memory): Delete.
2035 * target.c (target_xfer_partial_p, xfer_using_stratum): New.
2036 (target_read_memory, target_write_memory): Use xfer_using_stratum
2037 when target_xfer_partial_p.
2038 (debug_target): Move to start of file.
2039 (target_read_memory_partial, target_write_memory_partial): Use
2040 to_xfer_partial when target_xfer_partial_p.
2041
f929a579
AC
2042 * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
2043 inf_ptrace_xfer_memory with equivalent code.
2044 * inftarg.c (child_xfer_partial): When performing a write, pass
2045 writebuf to child_xfer_memory.
2046
b8eb5af0
AC
2047 * target.c (target_read_string): Use target_read_memory instead of
2048 target_xfer_memory.
2049
ee21b650
AC
20502004-09-29 Andrew Cagney <cagney@gnu.org>
2051
d3e05d0d
AC
2052 * infptrace.c (kill_inferior): Fix typo, in previous inline. Pass
2053 the address of status.
2054
ee21b650
AC
2055 * infptrace.c (ptrace_wait): Mention problem with HPUX.
2056 (kill_inferior): Inline ptrace_wait call.
2057 * linux-nat.c (kill_inferior): Inline ptrace_wait call.
2058 * inftarg.c (child_wait): Inline ptrace_wait call.
2059
a182eed6
AC
2060 * target.h (struct target_ops): Delete field to_post_wait.
2061 (target_post_wait): Delete macro.
2062 (child_post_wait): Delete declaration.
2063 * target.c (update_current_target, update_current_target)
2064 (debug_to_post_wait, setup_target_debug): Delete functions and
2065 references.
2066 * infttrace.c (ptrace_wait): Delete call to target_post_wait.
2067 * inftarg.c (child_post_wait): Delete.
2068 (init_child_ops): Do not set to_post_wait.
2069 * infptrace.c (ptrace_wait): Delete call to target_post_wait.
2070 * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
2071 * inf-child.c (inf_child_post_wait): Delete.
2072 (inf_child_target): Do not set to_post_wait.
2073 * inf-ptrace.c (inf_ptrace_post_wait): Delete.
2074 (inf_ptrace_target): Do not set to_post_wait.
2075
ba0c540b
AC
2076 * wince.c (child_ops): Delete.
2077 * win32-nat.c (child_ops): Delete.
2078
81977402
AC
2079 * inftarg.c (inftarg_set_find_memory_regions)
2080 (inftarg_set_make_corefile_notes): Delete functions.
2081 (_initialize_linux_nat): Inline calls.
2082
5ac10fd1
AC
2083 * target.h (child_ops): Declare.
2084 * inftarg.c (child_ops): Move from here ...
2085 * target.c (child_ops): ... to here.
2086 * wince.c (child_ops): Delete extern declaration.
2087 * win32-nat.c (child_ops): Delete extern declaration.
2088 * linux-nat.c (child_ops): Delete extern declaration.
2089 * hpux-thread.c (child_ops): Delete extern declaration.
2090
663408c2 20912004-09-28 Mark Kettenis <kettenis@gnu.org>
890c8f4d
MK
2092
2093 * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
2094
0dad8a66
MK
20952004-09-28 Mark Kettenis <kettenis@gnu.org>
2096
2097 * configure.in: Only set host_makefile_frag when building a native
2098 debugger.
2099 * configure: Regenerate.
e8d74ed3
MK
2100
2101 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
2102 for OpenBSD ELF.
2103
dba24537
AC
21042004-09-28 Andrew Cagney <cagney@gnu.org>
2105
e979516b
AC
2106 Problem identified by Paul Hilfinger.
2107 * Makefile.in (ada_lex_c): Define.
2108 (ada-lex.o): Delete rule.
2109
dba24537
AC
2110 * linux-proc.c: Delete file.
2111 * Makefile.in: Update.
2112 * config/sparc/linux64.mh (NATDEPFILES):
2113 * config/sparc/linux.mh (NATDEPFILES): Update.
2114 * config/s390/s390.mh (NATDEPFILES): Update.
2115 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
2116 * config/powerpc/linux.mh (NATDEPFILES): Update.
2117 * config/pa/linux.mh (NATDEPFILES): Update.
2118 * config/mips/linux.mh (NATDEPFILES): Update.
2119 * config/m68k/linux.mh (NATDEPFILES): Update.
2120 * config/ia64/linux.mh (NATDEPFILES): Update.
2121 * config/i386/linux64.mh (NATDEPFILES): Update.
2122 * config/i386/linux.mh (NATDEPFILES): Update.
2123 * config/arm/linux.mh (NATDEPFILES): Update.
2124 * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
2125 * linux-nat.c: Update copyright. Include <sys/param.h>,
2126 <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
2127 "gdbthread.h", "gdb_stat.h", <fcntl.h>.
2128 (O_LARGEFILE): Possibly define.
2129 (_initialize_linux_nat, linux_proc_pending_signals)
2130 (add_line_to_sigset, linux_proc_xfer_memory)
2131 (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
2132 (linux_nat_do_registers, linux_nat_corefile_thread_callback)
2133 (struct linux_corefile_thread_data)
2134 (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
2135 (child_pid_to_exec_file): Insert code previously in linux-proc.c.
2136
d6b0e80f
AC
21372004-09-16 Andrew Cagney <cagney@gnu.org>
2138
2139 * lin-lwp.c: Delete file.
2140 * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
2141 <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
2142 (status_to_str, init_lwp_list, add_lwp, delete_lwp)
2143 (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
2144 (linux_nat_attach, detach_callback, linux_nat_detach)
2145 (resume_callback, resume_clear_callback, linux_nat_resume)
2146 (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
2147 (stop_wait_callback, linux_nat_has_pending, flush_callback)
2148 (status_callback, running_callback, count_events_callback)
2149 (select_singlestep_lwp_callback, select_event_lwp_callback)
2150 (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
2151 (child_wait, stop_and_resume_callback, linux_nat_wait)
2152 (kill_callback, kill_wait_callback, linux_nat_kill)
2153 (linux_nat_create_inferior, linux_nat_mourn_inferior)
2154 (linux_nat_xfer_memory, linux_nat_thread_alive)
2155 (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
2156 (_initialize_linux_nat): New functions.
2157 * Makefile.in: Update all dependencies.
2158 * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
2159 * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2160 * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
2161 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
2162 * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2163 * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2164 * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2165 * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2166 * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2167 * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
2168 * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2169 * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2170 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
2171
5a174d79
MK
21722004-09-27 Mark Kettenis <kettenis@gnu.org>
2173
2f604c28
MK
2174 * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
2175 config/i386/obsd64.mh (NAT_FILE): Remove variable.
2176
5a174d79
MK
2177 * configure.in: Don't comment out NATDEPFILES in the generated
2178 Makefile if NAT_FILE is unset.
2179 * configure: Regenerate.
2180
b2ed1746
AC
21812004-09-27 Andrew Cagney <cagney@gnu.org>
2182
44cbf7b5
AC
2183 * infrun.c (check_for_old_step_resume_breakpoint): Delete.
2184 (insert_step_resume_breakpoint): Delete.
2185 (insert_step_resume_breakpoint_at_frame): New function.
2186 (insert_step_resume_breakpoint_at_sal): New function.
2187 (handle_inferior_event, step_into_function)
2188 (insert_step_resume_breakpoint): Simplify by using same.
2189
b2ed1746
AC
2190 * gdb_indent.sh (types): Add caddr_t to list of predefined types.
2191
3691b3be
MK
21922004-09-26 Mark Kettenis <kettenis@gnu.org>
2193
36f391e8
MK
2194 * fbsd-proc.c: Remove file.
2195 * Makefile.in (fbsd-proc.o): Remove dependency.
2196
771e236c
MK
2197 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
2198 code together.
2199
3691b3be
MK
2200 * config/i386/nm-fbsd64.h: Remove file.
2201 * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2202
6a5c78a3
MK
22032004-09-26 Mark Kettenis <kettenis@gnu.org>
2204
2205 * amd64-nat.h: Update copyright year.
2206 (amd64bsd_target): New prototype.
2207 * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
2208 (amd64bsd_target): New function.
2209 (amd64bsd_fetch_inferior_registers): Rename from
2210 fetch_inferior_registers. Make static.
2211 (amd64bsd_store_inferior_registers): Rename from
2212 store_inferior_registers. Make static.
2213 * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
2214 (_initialize_amd64fbsd_nat): Construct and add target vector.
2215 * amd64nbsd-nat.o: Include "target.h".
2216 (_initialize_amd64nbsd_nat): Construct and add target vector.
2217 * amd64obsd-nat.c: Include "target.h".
2218 (_initialize_amd64obsd_nat): Construct and add target vector.
2219 * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
2220 * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
2221 inftarg.o and fbsd-proc.o. Add inf-child.o, inf-ptrace.o and
2222 fbsd-nat.o.
2223 * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
2224 Remove infptrace.o and inftarg.o. Add inf-child.o and
2225 inf-ptrace.o.
2226 * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
2227 (amd64obsd-nat.o): Update dependencies.
2228
27acbe61
MK
22292004-09-25 Mark Kettenis <kettenis@gnu.org>
2230
509a5e7d
MK
2231 * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
2232 * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
2233 * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
2234 * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
2235 * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
2236
6e1e94ea
MK
2237 * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
2238 Inline attach call.
2239 (inf_ptrace_detach): Inline detach call.
2240
8b9cf735
MK
2241 * configure.in: Check for waddstr instead of mvwaddstr when
2242 searching for curses library. Check for wborder.
2243 * configure, config.in: Regenerate.
2244 * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
2245 available.
2246
27acbe61
MK
2247 * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
2248
b96ec7ac
AC
22492004-09-24 Robert Picco <Robert.Picco@hp.com>
2250
2251 Committed by Andrew Cagney.
2252 * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
2253 (show_remote_protocol_p_packet_cmd): New. Implement 'p' packet.
2254 configuration.
2255 (fetch_register_using_p): Implement 'p' packet. Based on code by
2256 Fernando Nasser.
2257 (remote_fetch_registers): Call fetch_register_using_p.
2258 (init_all_packet_configs, show_remote_cmd)
2259 (_initialize_remote): Add p-packet.
2260
62ece330
MK
22612004-09-24 Mark Kettenis <kettenis@gnu.org>
2262
2263 * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
2264 instead of call_ptrace. Call wait directly instead of
2265 ptrace_wait.
2266 (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
2267 (inf_ptrace_wait): Inline ptrace_wait call.
2268
00937274
PH
22692004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
2270
2271 * Makefile.in (.y.c): Revert previous change. ../ylwrap was
2272 rolled back instead.
2273
3f2c7a45
PH
22742004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
2275
2276 * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
2277 the new argument order.
2278
b6fcb393
CV
22792004-09-23 Corinna Vinschen <vinschen@redhat.com>
2280
2281 * MAINTAINERS: Remove "broken" from XStormy16 entry.
2282 * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
2283 (struct gdbarch_tdep): Remove.
2284 (struct xstormy16_frame_cache): New frame cache structure.
2285 (xstormy16_register_byte, xstormy16_register_raw_size)
2286 (xstormy16_reg_virtual_type, xstormy16_register_type)
2287 (xstormy16_push_arguments, xstormy16_push_return_address)
2288 (xstormy16_pop_frame, xstormy16_store_struct_return)
2289 (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
2290 (xstormy16_frame_saved_register, xstormy16_get_saved_register)
2291 (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
2292 (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
2293 (xstormy16_frame_chain, xstormy16_frame_chain_valid,
2294 (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
2295 (xstormy16_use_struct_convention): Drop gcc_p parameter.
2296 (xstormy16_extract_return_value, xstormy16_store_return_value):
2297 Regcachify. Drop useless struct convention handling.
2298 (xstormy16_register_type, xstormy16_return_value)
2299 (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
2300 (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
2301 (xstormy16_frame_prev_register, xstormy16_frame_this_id)
2302 (xstormy16_frame_base_address, xstormy16_frame_sniffer)
2303 (xstormy16_unwind_sp, xstormy16_unwind_pc)
2304 (xstormy16_unwind_dummy_id) : New functions.
2305 (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
2306 of xstormy16_scan_prologue.
2307 (xstormy16_frame_unwind): New frame_unwind structure.
2308 (xstormy16_frame_base): New frame_base structure.
2309 (xstormy16_gdbarch_init): Accomodate all of the above changes.
2310 Reshuffle for better readability. Also add dwarf2_frame_sniffer.
2311
1285b746
MK
23122004-09-22 Mark Kettenis <kettenis@gnu.org>
2313
2314 * language.c (language_gdbarch_post_init): Fix off-by one error.
2315
1c379e20
DJ
23162004-09-21 Daniel Jacobowitz <dan@debian.org>
2317
2318 * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
2319 (struct dwarf2_offset_and_type): New.
2320 (set_die_type, reset_die_and_siblings_types, get_die_type)
2321 (offset_and_type_hash, offset_and_type_eq): New functions.
2322 (read_structure_type, read_enumeration_type, read_array_type)
2323 (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
2324 (read_tag_reference_type, read_tag_const_type)
2325 (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
2326 (read_typedef, read_base_type, read_subrange_type): Use
2327 set_die_type.
2328
ae038cb0
DJ
23292004-09-20 Daniel Jacobowitz <dan@debian.org>
2330
2331 * Makefile.in (dwarf2read.o): Update dependencies.
2332 * dwarf2read.c: Include "command.h" and "gdbcmd.h".
2333 (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
2334 and read_in_chain.
2335 (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
2336 mark, and has_form_ref_addr.
2337 (struct dwarf2_per_cu_data): New.
2338 (dwarf2_max_cache_age): New.
2339 (dwarf2_build_psymtabs_hard): Free cached compilation units
2340 after loading. Create and manage the list of compilation units.
2341 Remove unnecessary NULL initialization. Fix indentation.
2342 (psymtab_to_symtab_1): Initialize all of CU.
2343 (dwarf2_read_abbrevs): Set has_form_ref_addr.
2344 (find_partial_die): Use dwarf2_find_containing_comp_unit
2345 and load_comp_unit.
2346 (free_stack_comp_unit): Update comments. Clear the per-cu
2347 pointer. Handle aging.
2348 (dwarf2_find_containing_comp_unit, free_cached_comp_units)
2349 (age_cached_comp_units, free_one_cached_comp_unit)
2350 (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
2351 (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
2352 (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
2353 (show_dwarf2_cmd): New.
2354 (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
2355 and "maint show dwarf2 max-cache-age".
2356 * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
2357 externs.
2358 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
2359 global.
2360
987504bb
JJ
23612004-09-20 Jeff Johnston <jjohnstn@redhat.com>
2362
2363 * dwarf2read.c (typename_concat): Change prototype to accept obstack
2364 and dwarf2_cu struct pointer as arguments. Change function to use
2365 obstack if provided and use dwarf2_cu to determine language-specific
2366 separator.
2367 (partial_die_parent_scope): Change comment to include java. Use
2368 new version of typename_concat instead of obconcat.
2369 (partial_die_full_name): Use typename_concat.
2370 (read_namespace): Ditto.
2371 (read_enumeration_type): Use typename_concat instead of obconcat.
2372 (new_symbol): Ditto.
2373 (add_partial_symbol): Enhance tests for C++ to also test for Java.
2374 (guess_structure_name): Ditto.
2375 (read_subroutine_type): Ditto.
2376 (read_structure_type): Ditto.
2377 (is_vtable_name): Add Java support.
2378 (determine_class_name): Switch to new typename_concat call.
2379 (determine_prefix): Switch to new typename_concat call.
2380 * jv-exp.y (FuncStart): New pattern.
2381 (MethodInvocation): Add support for simple function calls. Change
2382 warning message for other forms of inferior call currently not
2383 supported.
2384 * valarith.c (value_subscript): Treat an array with upper-bound
2385 of -1 as unknown size.
2386
d9c8471e
DJ
23872004-09-20 Daniel Jacobowitz <dan@debian.org>
2388
2389 * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
2390 (lookup_partial_symtab): Use symtab_to_fullname.
2391
d73f140a
JB
23922004-09-19 Jim Blandy <jimb@redhat.com>
2393
2394 * minsyms.c (lookup_minimal_symbol): Doc fix.
2395
adbef1f0
AC
23962004-09-20 Andrew Cagney <cagney@gnu.org>
2397
2398 * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
2399 CHILD_RESUME.
2400 * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
2401 * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
2402 KILL_INFERIOR.
2403 * infptrace.c: Update.
2404
d092d1a2
DJ
24052004-09-19 Daniel Jacobowitz <dan@debian.org>
2406
2407 * symtab.c (output_source_filename): Mark first argument as const.
2408 (sources_info): Use symtab_to_fullname and psymtab_to_fullname
2409 for "info sources" output.
2410
86d9e1d7
MK
24112004-09-20 Mark Kettenis <kettenis@gnu.org>
2412
2413 * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
2414 <machine/vmparam.h>.
2415 (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
2416 (register_u_addr): Remove prototype.
2417
9a6c8ef4
MK
24182004-09-19 Mark Kettenis <kettenis@gnu.org>
2419
9692934b
MK
2420 * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
2421 (i386bsd_fetch_inferior_registers): Rename from
2422 fetch_inferior_registers. Make static.
2423 (i386bsd_store_inferior_registers): Rename from
2424 store_inferior_registers. Make static.
2425 (i386bsd_target): New function.
2426 * i386bsd-nat.h: New file.
2427 * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
2428 "i386bsd-nat.h".
2429 (i386fbsd_resume): Rename from child_resume. Make static.
2430 (_initialize_i386fbsd_nat): Construct and add target vector.
2431 * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
2432 (_initialize_i386nbsd_nat): Construct and add target vector.
2433 * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
2434 Remove defines.
2435 * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
2436 and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
2437 * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
2438 inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
2439 (LOADLIBES): New variable.
2440 * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
2441 inf-ptrace.o. Remove inftarg.o.
2442 * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
2443 inf-ptrace.o. Remove inftarg.o.
2444 * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
2445 inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
2446 (LOADLIBES): New variable.
2447 * Makefile.in (i386bsd_nat_h): New variable.
2448 (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
2449 dependencies.
2450
3510d1f2
MK
2451 * sparc64nbsd-tdep.c: Include "objfiles.h".
2452 (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
2453 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
2454 svr4_lp64_fetch_link_map_offsets.
2455 * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
2456 "nbsd-tdep.h".
2457 (sparc64obsd_init_abi): Set in_solib_call_trampoline and
2458 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
2459 svr4_lp64_fetch_link_map_offsets.
2460 * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
2461 dependencies.
2462
578c1c03
MK
2463 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
2464 * fbsd-nat.h: New file.
2465 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
2466 (fbsd_nat_h): New variable.
2467 (fbsd-nat.o): New dependency.
2468
7a7b73b7
MK
2469 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
2470 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
2471
9a6c8ef4
MK
2472 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
2473 comment.
2474
72d5681a
PH
24752004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
2476
2477 * ada-exp.y (type_int): New function to add layer of abstraction
2478 around references to expression types.
2479 (type_long): Ditto.
2480 (type_long_long): Ditto.
2481 (type_float): Ditto.
2482 (type_double): Ditto.
2483 (type_long_double): Ditto.
2484 (type_char): Ditto.
2485 (type_system_address): Ditto.
2486 (simple_exp): Use type_* functions in place of builtin_*
2487 variables.
2488 (exp): Ditto.
2489 (write_var_from_name): Ditto.
2490 (write_object_renaming): Ditto.
2491 * ada-lang.c (ada_create_fundamental_type): Remove redundant
2492 declaration.
2493 (build_ada_types): Remove, replacing with...
2494 (ada_language_arch_info): New function to initialize primitive
2495 type vector in language_arch_info.
2496 (ada_array_length): Remove use of builtin_type_ada_int.
2497 (value_pos_atr): Ditto.
2498 (ada_evaluate_subexp): Ditto.
2499 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
2500 builtin_type_ada_long_long, builtin_type_ada_char,
2501 builtin_type_ada_float, builtin_type_ada_double,
2502 builtin_type_ada_long_double, builtin_type_ada_natural,
2503 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
2504 (ada_builtin_types): Remove.
2505 (ada_language_defn): Remove entries for la_builtin_type_vector and
2506 string_char_type and use ada_language_arch_info.
2507 (_initialize_ada_language): Do type-vector initialization along
2508 the lines of c-lang.c.
2509 (ada_create_fundamental_type): Break up line.
2510 (ada_dump_symtab): Remove unused function.
2511 (enum ada_primitive_types): Define.
2512 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
2513 builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
2514 builtin_type_ada_float, builtin_type_ada_double,
2515 builtin_type_ada_long_double, builtin_type_ada_natural,
2516 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
2517 * ada-lex.l: Use type_* functions in place of builtin_* variables.
2518 (processInt): Ditto.
2519 (processReal): Ditto.
2520 (name_lookup): Ditto.
2521 * ada-typeprint.c (print_range): Use builtin_type_int, not
2522 builtin_type_ada_int.
2523
4f0be353
MK
25242004-09-18 Mark Kettenis <kettenis@gnu.org>
2525
30b0e2d8
MK
2526 * i386-tdep.c (i386_register_name): Rename regno to regnum.
2527
4f0be353
MK
2528 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
2529 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
2530 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
2531 * configure.in: Improve checks for curses library by checking for
2532 mvwaddstr instead of initscr. Drop HP curses in favour of
2533 standard curses on HP-UX.
2534 * configure: Regenerated.
2535
72d5681a 25362004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
6c038f32
PH
2537
2538 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
2539 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
2540 Minor formatting changes.
2541 (empty_array): Slight rewrite for formatting.
2542 (emit_char,parse,ada_language_defn,build_ada_types,
2543 ada_is_exception_sym, _initialize_ada_language): Move
2544 definitions around.
2545 (ada_dump_symtab): Remove unused definition.
2546 (ada_maybe_exception_partial_symbol): Remove unused definition.
2547
1c8c7407
AC
25482004-09-16 Andrew Cagney <cagney@gnu.org>
2549
7681f339
AC
2550 * inf-child.c: Include "gdb_string.h".
2551 (inf_child_core_file_to_sym_file): Delete.
2552 (inf_child_target): Set to_fetch_registers and to_store_registers.
2553 * inf-ptrace.c: Include "gdb_string.h".
2554 * Makefile.in: Update all dependencies.
2555
1c8c7407
AC
2556 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
2557 problem.
2558
65596487
JB
25592004-09-14 Joel Brobecker <brobecker@gnat.com>
2560
2561 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
2562 call to heuristic_proc_desc. Remove code that became redundant
2563 as a consequence.
2564 (read_next_frame_reg): Remove special case for SP_REGNUM.
2565 (set_reg_offset): Fix small typo.
2566 (reset_saved_regs): New procedure.
2567 (mips32_heuristic_proc_desc): No longer compute a fake
2568 procedure descriptor. Compute the full frame cache instead.
2569 Some minor comment reformatting.
2570
95575b2e
AC
25712004-09-14 Andrew Cagney <cagney@gnu.org>
2572
f200c492
AC
2573 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
2574 maintainer.
2575
95575b2e
AC
2576 * thread-db.c (thread_db_new_objfile): Assume that there is a
2577 child process.
2578
69657671
JB
25792004-09-13 Jim Blandy <jimb@redhat.com>
2580
2581 * valops.c (value_assign): Move 'buffer' to the enclosing block,
2582 so that its storage isn't referenced after its lifetime ends.
2583
6c4182dd
JB
2584 * valops.c (value_assign): 'use_buffer' is initialized to zero,
2585 and never assigned to. Delete it, and the 'if (use_buffer)'
2586 clauses. Delete 'raw_buffer', since it is now unused.
2587
ee31a58d
AC
25882004-09-13 Andrew Cagney <cagney@gnu.org>
2589
2c0fc042
AC
2590 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
2591 * configure: Re-generate.
2592 * nlm/Makefile.in (TAGS): Update.
2593 * Makefile.in (TAGS): Update.
2594 * config/vax/nbsd.mt (TM_FILE): Update.
2595 * config/sparc/vxworks.mt (TM_FILE): Update.
2596 * config/sparc/sol2.mt (TM_FILE): Update.
2597 * config/sparc/sol2-64.mt (TM_FILE): Update.
2598 * config/sparc/obsd64.mt (TM_FILE): Update.
2599 * config/sparc/obsd.mt (TM_FILE): Update.
2600 * config/sparc/nbsd64.mt (TM_FILE): Update.
2601 * config/sparc/nbsd.mt (TM_FILE): Update.
2602 * config/sparc/linux64.mt (TM_FILE): Update.
2603 * config/sparc/linux.mt (TM_FILE): Update.
2604 * config/sparc/fbsd.mt (TM_FILE): Update.
2605 * config/sh/wince.mt (TM_FILE): Update.
2606 * config/sh/nbsd.mt (TM_FILE): Update.
2607 * config/sh/linux.mt (TM_FILE): Update.
2608 * config/sh/embed.mt (TM_FILE): Update.
2609 * config/s390/s390.mt (TM_FILE): Update.
2610 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
2611 * config/rs6000/rs6000.mt (TM_FILE): Update.
2612 * config/rs6000/aix4.mt (TM_FILE): Update.
2613 * config/powerpc/vxworks.mt (TM_FILE): Update.
2614 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
2615 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
2616 * config/powerpc/obsd.mt (TM_FILE): Update.
2617 * config/powerpc/nbsd.mt (TM_FILE): Update.
2618 * config/powerpc/linux.mt (TM_FILE): Update.
2619 * config/powerpc/aix.mt (TM_FILE): Update.
2620 * config/pa/obsd.mt (TM_FILE): Update.
2621 * config/pa/linux.mt (TM_FILE): Update.
2622 * config/pa/hppahpux.mt (TM_FILE): Update.
2623 * config/pa/hppa64.mt (TM_FILE): Update.
2624 * config/pa/hppa.mt (TM_FILE): Update.
2625 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
2626 * config/mips/wince.mt (TM_FILE): Update.
2627 * config/mips/vxmips.mt (TM_FILE): Update.
2628 * config/mips/nbsd.mt (TM_FILE): Update.
2629 * config/mips/linux.mt (TM_FILE): Update.
2630 * config/mips/irix6.mt (TM_FILE): Update.
2631 * config/mips/irix5.mt (TM_FILE): Update.
2632 * config/mips/embed.mt (TM_FILE): Update.
2633 * config/m68k/vxworks68.mt (TM_FILE): Update.
2634 * config/m68k/st2000.mt (TM_FILE): Update.
2635 * config/m68k/os68k.mt (TM_FILE): Update.
2636 * config/m68k/obsd.mt (TM_FILE): Update.
2637 * config/m68k/nbsd.mt (TM_FILE): Update.
2638 * config/m68k/monitor.mt (TM_FILE): Update.
2639 * config/m68k/linux.mt (TM_FILE): Update.
2640 * config/m68k/cisco.mt (TM_FILE): Update.
2641 * config/ia64/linux.mt (TM_FILE): Update.
2642 * config/ia64/aix.mt (TM_FILE): Update.
2643 * config/ia64/ia64.mt (TM_FILE): Update.
2644 * config/i386/vxworks.mt (TM_FILE): Update.
2645 * config/i386/obsd64.mt (TM_FILE): Update.
2646 * config/i386/obsd.mt (TM_FILE): Update.
2647 * config/i386/nto.mt (TM_FILE): Update.
2648 * config/i386/nbsd64.mt (TM_FILE): Update.
2649 * config/i386/nbsd.mt (TM_FILE): Update.
2650 * config/i386/linux64.mt (TM_FILE): Update.
2651 * config/i386/linux.mt (TM_FILE): Update.
2652 * config/i386/i386sol2.mt (TM_FILE): Update.
2653 * config/i386/i386lynx.mt (TM_FILE): Update.
2654 * config/i386/fbsd64.mt (TM_FILE): Update.
2655 * config/i386/fbsd.mt (TM_FILE): Update.
2656 * config/i386/cygwin.mt (TM_FILE): Update.
2657 * config/h8300/h8300.mt (TM_FILE): Update.
2658 * config/frv/frv.mt (TM_FILE): Update.
2659 * config/cris/cris.mt (TM_FILE): Update.
2660 * config/arm/wince.mt (TM_FILE): Update.
2661 * config/arm/nbsd.mt (TM_FILE): Update.
2662 * config/arm/linux.mt (TM_FILE): Update.
2663 * config/arm/embed.mt (TM_FILE): Update.
2664 * config/alpha/nbsd.mt (TM_FILE): Update.
2665 * config/alpha/fbsd.mt (TM_FILE): Update.
2666 * config/alpha/alpha.mt (TM_FILE): Update.
2667 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
2668 * config/alpha/alpha-linux.mt (TM_FILE): Update.
2669
362646f5
AC
2670 Eliminate event_loop_p, always has the value 1.
2671 * defs.h (event_loop_p): Delete macro.
2672 * breakpoint.c (until_break_command): Simplify.
2673 * utils.c (prompt_for_continue): Simplify.
2674 * tracepoint.c (read_actions): Simplify.
2675 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
2676 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
2677 (set_prompt, init_main): Simplify.
2678 (init_signals, disconnect): Delete, unused.
2679 * remote.c (remote_async_resume)
2680 (extended_remote_async_create_inferior): Simplify.
2681 * mi/mi-interp.c (mi_input): Delete, unused.
2682 (mi_interpreter_resume, mi_command_loop): Simplify.
2683 * interps.c (current_interp_command_loop): Simplify.
2684 * infrun.c (proceed): Simplify.
2685 * infcmd.c (run_command, continue_command, step_1, jump_command)
2686 (until_command, advance_command, finish_command)
2687 (interrupt_target_command): Simplify.
2688 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
2689
ee31a58d
AC
2690 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2691 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2692 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2693 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2694 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2695 * mips-tdep.c (mips_dump_tdep): Do not print same.
2696
b7ffc4a8
AC
26972004-09-12 Andrew Cagney <cagney@gnu.org>
2698
2bfb72ee
AC
2699 * valprint.c (print_longest): Use fputs_filtered. Make "val"
2700 const.
2701 * Makefile.in (valprint.o): Delete explict rule.
2702
4f17c3c1
AC
2703 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
2704 reported by Dave Anderson.
2705
f810308b
AC
2706 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
2707
b7ffc4a8
AC
2708 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
2709
28b41c52
AC
27102004-09-12 Salvador E. Tropea <set@users.sf.net>
2711 Andrew Cagney <cagney@gnu.org>
2712
2713 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
2714 (mi_cmd_data_list_register_values)
2715 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
2716 the register number computation.
2717
5bf970f9
AC
27182004-09-12 Andrew Cagney <cagney@gnu.org>
2719
2720 * ppcnbsd-nat.c: Include "inf-ptrace.h".
2721 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
2722 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
2723 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
2724 target.
2725 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
2726 inf-ptrace.o and inf-child.o.
2727 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
2728 * Makefile.in: Update dependencies.
2729
0759e0bf
AC
27302004-09-11 Andrew Cagney <cagney@gnu.org>
2731
2732 * language.c (hex_string, hex_string_custom): Move from here ...
2733 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
2734 (CELLSIZE): Increase to 50.
2735 * language.h (hex_string, hex_string_custom): Move from here ...
2736 * defs.h: ... to here.
2737 * Makefile.in: Update all dependencies.
2738
bb599908
PH
27392004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
2740
2741 * language.c (local_hex_format_custom): Remove.
2742 (local_hex_string): Rename to hex_string, use C format, and move to
2743 utils.c
2744 (local_hex_string_custom): Rename to hex_string_custom and change
2745 interface. Now uses C format. Move to utils.c
2746 (local_octal_format_custom): Remove.
2747 (local_decimal_format_custom): Remove.
2748 (unknown_language_defn): Remove language-specific number
2749 formatting entries.
2750 (auto_language_defn): Ditto.
2751 (local_language_defn): Ditto.
2752 * language.h (struct language_format_info): Delete declaration.
2753 (struct language_defn): Remove language_format_info fields
2754 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
2755 (local_binary_format): Remove macro.
2756 (local_binary_format_prefix): Remove macro.
2757 (local_binary_format_specifier): Remove macro.
2758 (local_binary_format_suffix): Remove macro.
2759 (local_octal_format): Remove macro.
2760 (local_octal_format_prefix): Remove macro.
2761 (local_octal_format_specifier): Remove macro.
2762 (local_octal_format_suffix): Remove macro.
2763 (local_decimal_format): Remove macro.
2764 (local_decimal_format_prefix): Remove macro.
2765 (local_decimal_format_specifier): Remove macro.
2766 (local_decimal_format_suffix): Remove macro.
2767 (local_hex_format): Remove macro.
2768 (local_hex_format_prefix): Remove macro.
2769 (local_hex_format_specifier): Remove macro.
2770 (local_hex_format_suffix): Remove macro.
2771 (local_decimal_format_custom): Remove.
2772 (local_octal_format_custom): Remove.
2773 (local_hex_format_custom): Remove.
2774 (local_hex_string): Rename to hex_string and move to defs.h.
2775 (local_hex_string_custom): Rename to hex_string_custom, change
2776 interface, and move to defs.h.
2777 * utils.c: (int_string): New function.
2778 (hex_string): New function (from language.c).
2779 (hex_string_custom): New function (from language.c).
2780 (octal2str): New function.
2781 (decimal2str): Add width parameter.
2782 (paddr_u): Use new decimal2str interface.
2783 (paddr_d): Ditto.
2784 * defs.h (hex_string): Declare.
2785 (hex_string_custom): Declare.
2786 (int_string): Declare.
2787 * printcmd.c (print_scalar_formatted): Remove localized binary
2788 formatting.
2789 * valprint.c (print_longest): Use int_string.
2790 (print_floating): Use C hex format.
2791 (print_hex_chars): Ditto.
2792 (print_binary_chars): Remove language-specific formatting.
2793 (print_octal_chars): Use C octal format.
2794 (print_decimal_chars): Delocalize format.
2795 (print_decimal): Remove.
2796 * ada-lang.c (ada_language_defn): Remove language-specific number
2797 formatting entries.
2798 * p-lang.c (pascal_language_defn): Ditto.
2799 * c-lang.c (c_language_defn): Ditto.
2800 (cplus_language_defn): Ditto.
2801 (asm_language_defn): Ditto.
2802 (minimal_language_defn): Ditto.
2803 * f-lang.c (f_language_defn): Ditto.
2804 * jv-lang.c (java_language_defn): Ditto.
2805 * m2-lang.c (m2_language_defn): Ditto.
2806 * scm-lang.c (scm_language_defn): Ditto.
2807 * objc-lang.c (objc_language_defn): Ditto.
2808 * memattr.c (mem_info_command): Use renamed hex_string_custom with
2809 new interface.
2810 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
2811 * ui-out.c (ui_out_field_core_addr): Ditto.
2812 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
2813 * exec.c (print_section_info): Ditto.
2814 * i387-tdep.c (print_i387_status_word): Ditto.
2815 (print_i387_control_word): Ditto.
2816 (i387_print_float_info): Ditto.
2817 * maint.c (maint_print_section_info): Ditto.
2818 * solib.c (info_sharedlibrary_command): Ditto.
2819 * somsolib.c (som_sharedlibrary_info_command): Ditto.
2820 * symtab.c (print_msymbol_info): Ditto.
2821 * tracepoint.c (tracepoints_info): Ditto.
2822 * solib-frv.c (lm_base): Ditto.
2823 (frv_current_sos): Ditto.
2824 (enable_break2): Ditto.
2825 (enable_break): Ditto.
2826 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
2827 (process_one_symbol): Ditto.
2828 * infcmd.c (program_info): Ditto.
2829 * mdebugread.c (parse_partial_symbols): Ditto.
2830 * symfile.c (add_symbol_file_command): Ditto.
2831 * cli/cli-cmds.c (edit_command): Ditto.
2832 (list_command): Ditto.
2833 * infcall.c (call_function_by_hand): Ditto.
2834 * remote-vx.c (vx_run_files_info): Ditto.
2835 (vx_wait): Ditto.
2836 (vx_attach): Ditto.
2837 (vx_detach): Ditto.
2838 (vx_kill): Ditto.
2839 * aix-thread.c (pdc_symbol_addrs): Ditto.
2840 (pdc_read_regs): Ditto.
2841 (pdc_write_regs): Ditto.
2842 (pdc_read_data): Ditto.
2843 (pdc_write_data): Ditto.
2844 * d10v-tdep.c (display_trace): Ditto.
2845 * rs6000-nat.c (find_toc_address): Ditto.
2846 * aix-thread.c: Don't include language.h.
2847 * buildsym.c: Ditto.
2848 * dbxread.c: Ditto.
2849 * mdebugread.c: Ditto.
2850 * rs6000-nat.c: Ditto.
2851 * buildsym.c (make_blockvector): Use renamed hex_string.
2852
33f2d567
JM
28532004-09-10 Jason Molenda (jmolenda@apple.com)
2854
2855 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
2856 chars after 'if' or 'while' commands in user-defined commands.
2857
7b90c3f9
JB
28582004-09-08 Jim Blandy <jimb@redhat.com>
2859
2860 Fix bug reported and analyzed by Olivier Crete:
2861 * symfile.c (copy_section_addr_info): New function.
2862 (symbol_file_add_with_addrs_or_offsets): Use it to save the
2863 original set of address arguments, instead of handwritten code
2864 that uses one length to allocate and a different length to
2865 initialize. Use make_cleanup_free_section_addr_info.
2866 * symfile.h (copy_section_addr_info): New declaration.
2867 * utils.c: #include "symfile.h".
2868 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
2869 New functions.
2870 * defs.h (make_cleanup_free_section_addr_info): New declaration.
2871 * Makefile.in (utils.o): Update dependencies.
2872
b26a6851
AC
28732004-09-08 Andrew Cagney <cagney@gnu.org>
2874
2875 * thread-db.c (keep_thread_db): Delete.
2876 (thread_db_new_objfile, thread_db_create_inferior)
2877 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
2878
be24b061
MK
28792004-09-08 Mark Kettenis <kettenis@gnu.org>
2880
f6792ef4
MK
2881 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
2882 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
2883 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
2884 (i386_frameless_signal_p): Remove prototype.
2885 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
2886 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
2887 I386_SSE_NUM_REGS.
2888 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
2889 instead of FP0_REGNUM.
2890 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
2891 of FP0_REGNUM and FPC_REGNUM.
2892
eeefdaa7
MK
2893 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
2894 (sunos_solib_create_inferior_hook): Don't call
2895 sunos_relocate_main_executable.
2896
be24b061
MK
2897 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
2898 solib_svr4_fetch_link_map_offsets to
2899 svr4_ilp32_fetch_link_map_offsets.
2900 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
2901 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
2902 svr4_ilp32_fetch_link_map_offsets.
2903 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
2904
7c679d16
JB
29052004-09-07 Jim Blandy <jimb@redhat.com>
2906
2907 * frame.h (frame_register): Doc fix.
2908
1f04aa62
AC
29092004-09-07 Andrew Cagney <cagney@gnu.org>
2910
2911 * vx-share/wait.h: Delete #ifdef USG.
2912 * utils.c (request_quit): Ditto.
2913 * tui/tui.c (tui_reset): Ditto.
2914 * remote.c: Ditto.
2915 * remote-sds.c: Ditto.
2916 * remote-rdi.c: Ditto.
2917 * mdebugread.c: Ditto.
2918 * m68klinux-nat.c: Ditto.
2919 * infttrace.c: Ditto.
2920 * infptrace.c: Ditto.
2921 * i386v-nat.c: Ditto.
2922 * exec.c: Ditto.
2923 * dbxread.c: Ditto.
2924 * core-aout.c: Ditto.
2925
90edbfbc
JB
29262004-09-05 Joel Brobecker <brobecker@gnat.com>
2927
2928 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
2929 heuristic_proc_desc.
2930 (mips_insn32_frame_cache): Likewise.
2931
01f4bf2b
JB
29322004-09-04 Joel Brobecker <brobecker@gnat.com>
2933
2934 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
2935 left behind by error.
2936
8511a048
JB
29372004-09-04 Joel Brobecker <brobecker@gnat.com>
2938
2939 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
2940 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
2941
649dfe9f
JB
29422004-09-04 Joel Brobecker <brobecker@gnat.com>
2943
2944 * config/rs6000/xm-aix4.h: Remove this file.
2945 * config/rs6000/aix4.mh (XM_FILE): Delete.
2946
6e50f889
JB
29472004-09-04 Joel Brobecker <brobecker@gnat.com>
2948
2949 * config/rs6000/xm-rs6000.h: Remove this file.
2950 * config/rs6000/rs6000.mh (XM_FILE): Remove.
2951
b8c4aece
AC
29522004-09-03 Andrew Cagney <cagney@gnu.org>
2953
fb603883
AC
2954 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
2955 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
2956 only use.
2957
c9343fd1
AC
2958 * mips-tdep.c (temp_saved_regs): Delete.
2959 (set_reg_offset): Replace saved_regs parameter with this_cache.
2960 (heuristic_proc_desc, mips16_heuristic_proc_desc)
2961 (mips32_heuristic_proc_desc): Add this_cache parameter.
2962 (mips_insn32_frame_cache, mips_insn16_frame_cache)
2963 (after_prologue): Pass a NULL this_cache.
2964
9733cfe1
AC
2965 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
2966 non-kernel trap prologues.
2967
0d5febcc
AC
2968 * mips-tdep.c (find_proc_desc): Delete function.
2969 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
2970 simplify.
2971 (mips_insn16_frame_cache): Replace find_proc_desc with code from
2972 mips_insn32_frame_cache.
2973
9733cfe1 2974 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
283be873
AC
2975 Simplify as NEXT_FRAME is NULL.
2976 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
2977
177f84a3
AC
2978 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
2979 local variable.
2980 (mips_skip_prologue): Update.
2981
465f7520
AC
2982 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
2983 "cur_frame" parameter.
177f84a3
AC
2984 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
2985 (mips_insn32_frame_cache, find_proc_desc): Update
465f7520 2986
e38b8658
AC
2987 * config/vax/nm-obsd.h: Delete file.
2988 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2989 * config/vax/nm-nbsd.h: Delete file.
2990 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
2991 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2992 * config/sh/nm-nbsd.h: Delete file.
2993 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
2994 * config/rs6000/nm-rs6000ly.h: Delete file.
2995 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
2996 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
2997 * config/powerpc/nm-obsd.h: Delete file.
2998 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2999 * config/powerpc/nm-nbsd.h: Delete file.
3000 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3001 * config/pa/nm-obsd.h: Delete file.
3002 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3003 * config/mips/nm-nbsd.h: Delete file.
3004 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3005 * config/m88k/nm-obsd.h: Delete file.
3006 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3007 * config/m68k/nm-nbsd.h: Delete file.
3008 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
3009 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3010 * config/i386/nm-nbsd.h: Delete file.
3011 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
3012 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
3013 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
3014 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3015 * config/i386/nm-i386lynx.h: Delete file.
3016 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
3017 * config/arm/nm-nbsd.h: Delete file.
3018 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
3019 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3020
be1ed680
AC
3021 * config/i386/tm-fbsd.h: Delete file.
3022 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
3023 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
3024
4b392b26
AC
3025 * config/rs6000/tm-rs6000-aix4.h: Delete file.
3026 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
3027 * config/rs6000/aix4.mt (TM_FILE): Set to
3028 config/rs6000/tm-rs6000.h.
3029 * config/powerpc/tm-ppc-aix.h: Delete file.
3030 * config/powerpc/aix.mt (TM_FILE): Set to
3031 config/rs6000/tm-rs6000.h.
3032 * config/m68k/tm-linux.h: Delete file.
3033 * config/m68k/linux.mt (TM_FILE): Set to solib.h
3034 * config/i386/tm-linux64.h: Delete file.
3035 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
3036 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
3037
f3219c75
AC
3038 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
3039 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
3040 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
3041 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
3042 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
3043 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
3044 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
3045 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
3046 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
3047
b8c4aece
AC
3048 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
3049 gdb_host_cpu.
3050
8ac2e020
JB
30512004-09-02 Joel Brobecker <brobecker@gnat.com>
3052
3053 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
3054 Minor reformatting. Some code factoring.
3055
c185a355
AC
30562004-09-02 Andrew Cagney <cagney@gnu.org>
3057
63f22f0d
AC
3058 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
3059 * config/vax/tm-nbsd.h: Delete file.
3060 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
3061 * config/sparc/tm-vxworks.h: Delete file.
3062 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
3063 * config/sparc/tm-nbsd.h: Delete file.
3064 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
3065 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
3066 * config/sparc/tm-linux.h: Delete file.
3067 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
3068 * config/s390/tm-linux.h: Delete file.
3069 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
3070 * config/pa/tm-bsd.h: Delete file.
3071 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
3072 * config/m68k/tm-obsd.h: Delete file.
3073 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
3074 * config/m68k/tm-nbsd.h: Delete file.
3075 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
3076 * config/i386/tm-vxworks.h: Delete file.
3077 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
3078 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
3079 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
3080 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
3081 * config/i386/tm-nbsd.h: Delete file.
3082 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
3083 * config/i386/tm-i386lynx.h: Delete file.
3084 * config/cris/cris.mt (TM_FILE): Set to solib.h.
3085 * config/cris/tm-cris.h: Delete file.
3086
0f475e27
AC
3087 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
3088 * configure: Re-generate.
3089 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
3090 * config/arm/tm-nbsd.h: Delete file.
3091
458ed000
AC
3092 * config/powerpc/tm-ppcle-sim.h: Delete.
3093 * config/powerpc/tm-ppcle-eabi.h: Delete.
3094 * config/powerpc/tm-nbsd.h: Delete.
3095 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
3096 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
3097 tm-ppcle-eabi.h.
3098
f14375f3
AC
3099 * config/i386/nto.mh (NAT_FILE): Delete.
3100 * config/i386/nm-nto.h: Delete.
3101
c34d127c
AC
3102 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
3103 * config/m68k/tm-os68k.h: Ditto.
3104 * config/m68k/tm-monitor.h: Ditto.
3105 * config/m68k/tm-cisco.h: Ditto.
3106 * config/m68k/st2000.mt (TM_FILE): Delete.
3107 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
3108 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
3109 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
3110 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
3111
f7f0fe03
AC
3112 * config/m68k/tm-st2000.h: Delete.
3113 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
3114 * config/sparc/fbsd.mt (TM_FILE): Delete.
3115 * config/sparc/tm-fbsd.h: Delete.
3116
a2558533
AC
3117 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
3118 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
3119 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
3120
b78960be
AC
3121 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
3122 GDB_TM_FILE and GDB_XM_FILE.
3123 * gdbarch.c: Re-generate.
3124 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
3125 quotes in macro definition.
3126 * configure.in: Re-generate.
3127
4d60522e
AC
3128 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
3129 validating architecture methods.
3130 * gdbarch.c: Re-generate.
3131
5010d38b
AC
3132 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
3133 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
3134 GDB_MULTI_ARCH_PARTIAL.
3135 * gdbarch.h: Re-generate.
3136
c185a355
AC
3137 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
3138 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
3139 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
3140 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
3141 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
3142 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
3143 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
3144 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
3145 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
3146 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
3147 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
3148 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
3149
14aaa6ab
AC
31502004-09-01 Andrew Cagney <cagney@gnu.org>
3151
3152 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
3153 and main_func_highpc.
3154 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
3155 * objfiles.c (init_entry_point_info, objfile_relocate): Update
3156 * nlmread.c (nlm_symfile_read): Update.
3157
a343eb3c
JB
31582004-09-01 Joel Brobecker <brobecker@gnat.com>
3159
3160 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
3161 (mips_insn32_frame_cache): Inline call to find_proc_desc.
3162 (find_proc_desc): Remove dead code.
3163
4fbbbd07
JB
31642004-09-01 Joel Brobecker <brobecker@gnat.com>
3165
3166 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
3167
84acb35a
JJ
31682004-09-01 Jeff Johnston <jjohnstn@redhat.com>
3169
3170 * observer.sh: Add struct so_list declaration.
3171 * Makefile.in: Add dependencies on observer.h for solib.c and
3172 breakpoint.c.
3173 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
3174 function.
3175 (_initialize_breakpoint): Register
3176 disable_breakpoints_in_unloaded_shlib as an observer of the
3177 "solib unloaded" observation event.
3178 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
3179 call decode_line_1 so unfound breakpoint errors are silent.
3180 * solib.c (update_solib_list): When a solib is discovered to have
3181 been unloaded by the program, notify all observers of the
3182 "solib unloaded" observation event.
3183
c8cd9f6c
AC
31842004-09-01 Andrew Cagney <cagney@gnu.org>
3185
3186 * frame.c: Include "objfiles.h".
3187 (inside_main_func): New function.
3188 (get_prev_frame): Use new inside_main_func.
3189 * Makefile.in (frame.o): Update dependencies.
3190 * defs.h (inside_main_func): Delete declaration.
3191 * blockframe.c (inside_main_func): Delete function.
3192
1168df01
JB
31932004-08-31 Jim Blandy <jimb@redhat.com>
3194
3195 * dwarf2read.c (is_vtable_name): New function, based on logic from
3196 read_structure_type, but passing the correct length to strncmp,
3197 and using 'sizeof' instead of 'strlen'.
3198 (read_structure_type): Call it.
3199
f14f9744
JB
32002004-08-31 Joel Brobecker <brobecker@gnat.com>
3201
3202 * config/powerpc/aix.mh: Add comment.
3203
386d4518
PG
32042004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
3205
3206 * MAINTAINERS: Add self to Write-After-Approval.
3207
7d97d5e2
MI
32082004-08-30 Manoj Iyer <manjo@austin.ibm.com>
3209
3210 * MAINTAINERS: Add self to Write-After-Approval.
3211
68f53502
AC
32122004-08-30 Andrew Cagney <cagney@gnu.org>
3213
3214 Fix PR breakpoints/1757.
3215 * infrun.c (struct execution_control_state): Replace
3216 remove_breakpoints_on_following_step with
3217 step_after_step_resume_breakpoint.
3218 (init_execution_control_state): Update.
3219 (handle_inferior_event): For signals, when stepping off a
3220 breakpoint, set step_after_step_resume_breakpoint. When
3221 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
3222 (keep_going): Delete code handling
3223 remove_breakpoints_on_following_step.
3224
7ca2d3a3
DL
32252004-08-29 David Lecomber <david@streamline-computing.com>
3226
3227 Fix PR gdb/648
3228 * language.h (enum array_ordering): New enum.
3229 * language.h (struct language_defn): New la_array_ordering
3230 attribute.
3231 * language.c (unknown_language_defn, auto_language_defn)
3232 (local_language_defn): Ditto.
3233 * ada-lang.c (ada_language_defn): Ditto.
3234 * c-lang.c (c_language_defn, cplus_language_defn)
3235 (asm_language_defn, minimal_language_defn): Ditto.
3236 * f-lang.c (f_language_defn): Ditto.
3237 * jv-lang.c (java_language_defn): Ditto.
3238 * m2-lang.c (f_language_defn): Ditto.
3239 * objc-lang.c (objc_language_defn): Ditto.
3240 * p-lang.c (pascal_language_defn): Ditto.
3241 * scm-lang.c (scm_language_defn): Ditto.
3242 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
3243 oriented large to small in type structure.
3244 * dwarf2read.c (read_array_order): New function.
3245 (read_array_type): Use read_array_order to check row/column
3246 major ordering.
3247
e354df01
NW
32482004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
3249
3250 * target.c (target_resize_to_sections): Check
3251 current_target.to_sections for an old value when updating.
3252
9185ddce
JB
32532004-08-27 Joel Brobecker <brobecker@gnat.com>
3254
3255 * procfs.c (dbx_link_bpt_addr): New static global variable.
3256 (dbx_link_shadow_contents): New static global variable.
3257 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
3258 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
3259 if we just hit it.
3260 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
3261 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
3262 from run to run.
3263 (procfs_create_inferior): Remove syssgi syscall-exit notifications
3264 after the inferior has been forked.
3265 (remove_dbx_link_breakpoint): New function.
3266 (dbx_link_addr): New function.
3267 (insert_dbx_link_bpt_in_file): New function.
3268 (insert_dbx_link_bpt_in_region): New function.
3269 (insert_dbx_link_breakpoint): New function.
3270 (proc_trace_syscalls_1): New function, extracted from
3271 proc_trace_syscalls.
3272 (proc_trace_syscalls): Replace extract code by call to
3273 proc_trace_syscalls_1.
3274 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
3275 is no longer valid.
3276
e6742ace
JB
32772004-08-25 Jim Blandy <jimb@redhat.com>
3278
3279 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
3280
8fb3e588
AC
32812004-08-25 Andrew Cagney <cagney@gnu.org>
3282
629a41ee
AC
3283 * infrun.c (struct execution_control_state): Delete field
3284 "stepping_through_sigtramp".
3285 (init_execution_control_state): Do not set same.
3286 (context_switch): Do not pass same to save_infrun_state and
3287 load_infrun_state.
3288 * gdbthread.h (struct thread_info): Delete field
3289 stepping_through_sigtramp.
3290 (save_infrun_state, load_infrun_state): Delete parameter
3291 stepping_through_sigtramp.
3292 * thread.c (load_infrun_state, save_infrun_state): Update.
3293
8fb3e588
AC
3294 * infrun.c: Re-indent. Move expression operators to the beginning
3295 of the line. Remove long disabled #if 0 code.
3296
49c54768
AC
32972004-08-24 Andrew Cagney <cagney@gnu.org>
3298
3299 * doublest.h (floatformat_ieee_quad): Rename
3300 floatformat_ia64_quad.
3301 * doublest.c (floatformat_ieee_quad): Rename
3302 floatformat_ia64_quad.
3303 (_initialize_doublest): Update.
3304
5ca2e327
JB
33052004-08-24 Jim Blandy <jimb@redhat.com>
3306
87808bd6
JB
3307 * dwarf2expr.h (struct dwarf_expr_context): New members
3308 'num_pieces' and 'pieces', for returning the result of an
3309 expression that uses DW_OP_piece.
3310 (struct dwarf_expr_piece): New struct type.
3311 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
3312 pieces.
3313 (free_dwarf_expr_context): Free pieces, if any.
3314 (add_piece): New function.
3315 (execute_stack_op): Implement DW_OP_piece.
3316 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
3317 expression is a list of pieces, print an error message.
3318 (dwarf2_loc_desc_needs_frame): If the expression yields
3319 pieces, and any piece is in a register, then we need a frame.
3320
5ca2e327
JB
3321 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
3322 the stack until we've decided what sort of result the evaluation
3323 has produced. Use separate variables, with more specific names.
3324
2afeb6b8
RE
33252004-08-23 Richard Earnshaw <rearnsha@arm.com>
3326
3327 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
3328 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
3329 (arm_netbsd_init_abi_common): Register them.
3330
5885ab49
MK
33312004-08-22 Mark Kettenis <kettenis@gnu.org>
3332
fda820a6
MK
3333 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
3334
1c5bf419
MK
3335 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
3336 safe_frame_unwind_memory instead of target_read_memory.
3337
8cbba7c8
MK
3338 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
3339 Reorder includes.
3340 (fetch_register, store_register): Remove prototypes.
3341 (child_resume): Reorganize code and comments such that it is
3342 grouped a bit more logically.
3343 (attach): Explicitly compare errno against 0.
3344 (detach): Likewise. Use perror_with_name instead of
3345 print_sys_errmsg.
3346 * Makefile.in (infptrace.o): Update dependencies.
3347
c5fa4245
MK
3348 * ia64-linux-nat.c: Update copyright year.
3349 (fetch_debug_register, store_debug_register)
3350 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
3351 PTRACE_TYPE_ARG3.
3352 * config/ia64/nm-linux.h: Update copyright year.
3353 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
3354
387c058c
MK
3355 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
3356 from CORE_ADDR to struct frame_info *. Use
3357 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
3358 (amd64_linux_sigtramp_p): Adjust for changed signature of
3359 and64_linux_sigtramp_start
3360
277215a6
MK
3361 * gdb_ptrace.h: GNU/Linux.
3362
25f6178e
MK
3363 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
3364 Remove defines.
3365
652fc137
MK
3366 * infptrace.c: Include "gdb_assert.h".
3367 (PTRACE_XFER_TYPE): Remove define.
3368 (offsetof): Only define if U_REGS_OFFSET isn't defined.
3369 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
3370 Tweak comment.
3371 (fetch_inferior_registers, store_inferior_registers): Remove
3372 redundant culry braces. Tweak comment. s/regno/regnum.
3373 * Makefile.in (infptrace.o): Update dependencies.
3374
5885ab49
MK
3375 * configure.in: Change test for return type of ptrace to default
3376 to `long' instead of `int'.
3377 * configure: Regenerate.
3378
11003ae3
MK
33792004-08-21 Mark Kettenis <kettenis@gnu.org>
3380
6b95110c
MK
3381 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
3382
bcb3dc3d
MK
3383 * configure.in: Check for ttrace function.
3384 * configure, config.in: Regenerate.
3385
11003ae3
MK
3386 * gdb_ptrace.h: New file.
3387 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
3388 <sys/ptrace.h>.
3389 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
3390 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
3391 (attach): Don't define PT_ATTACH.
3392 (detach): Don't define PT_DETACH.
3393 * Makefile.in (gdb_ptrace_h): New variable.
3394 (infptrace.o): Update dependencies.
3395
f8707cac
MK
33962004-08-16 Mark Kettenis <kettenis@gnu.org>
3397
3398 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
3399 instead of `int' if not already defined.
3400 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
3401 PTRACE_TYPE_ARG3.
3402 * infptrace.c (call_ptrace): Revert change that replaced
3403 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3404
655c5466
MK
34052004-08-15 Mark Kettenis <kettenis@gnu.org>
3406
156e5ba7
MK
3407 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
3408 Remove defines.
3409
de9a9e51
MK
3410 * linux-nat.c (kill_inferior): Add missing third and fourth
3411 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
3412
88800403
MK
3413 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
3414 PTRACE_TYPE_RET.
3415
849a1d7c
MK
3416 * proc-why.c (proc_prettyfprint_why): Fix format string.
3417
61ad16d1
MK
3418 * solib-osf.c (osf_current_sos): Remove unsused label.
3419
a6ed5501
MK
3420 * configure.in: Add <ncurses/ncurses.h> to the list of possible
3421 curses headers.
3422 * configure, config.in: Regenerate.
3423 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
3424 <ncurses/ncurses.h>.
3425
016ddeca
MK
3426 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
3427 * config/nm-nbsd.h: Update copyright year.
3428 (PTRACE_ARG3_TYPE): Remove define.
3429
49ec097f
MK
3430 * sparc-nat.c (fetch_inferior_registers)
3431 (store_inferior_registers, sparc_xfer_wcookie):
3432 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3433
9f8e0089
MK
3434 * alphabsd-nat.c (fetch_inferior_registers):
3435 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3436 PTRACE_TYPE_ARG3.
3437 * amd64bsd-nat.c (fetch_inferior_registers)
3438 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3439 PTRACE_TYPE_ARG3.
3440 * armnbsd-nat.c: Update copyright year.
3441 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
3442 (store_register, store_regs, store_fp_register, store_fp_regs):
3443 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3444 * hppabsd-nat.c (fetch_inferior_registers)
3445 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3446 PTRACE_TYPE_ARG3.
3447 * i386bsd-nat.c (fetch_inferior_registers)
3448 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
3449 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3450 * m68kbsd-nat.c (fetch_inferior_registers)
3451 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3452 PTRACE_TYPE_ARG3.
3453 * m88kbsd-nat.c (fetch_inferior_registers)
3454 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3455 PTRACE_TYPE_ARG3.
3456 * mipsnbsd-nat.c: Update copyright year.
3457 (fetch_inferior_registers, store_inferior_registers):
3458 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3459 * ns32knbsd-nat.c: Update copyright year.
3460 (fetch_inferior_registers, store_inferior_registers):
3461 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3462 * ppcnbsd-nat.c (fetch_inferior_registers):
3463 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3464 PTRACE_TYPE_ARG3.
3465 * ppcobsd-nat.c (fetch_inferior_registers):
3466 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3467 PTRACE_TYPE_ARG3.
3468 * shnbsd-nat.c: Update copyright year.
3469 (fetch_inferior_registers, store_inferior_registers):
3470 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3471 * vaxbsd-nat.c (fetch_inferior_registers)
3472 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3473 PTRACE_TYPE_ARG3.
3474
655c5466
MK
3475 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
3476 PTRACE_TYPE_ARG3.
3477 * infptrace.c (call_ptrace, child_resume, attach, detach)
3478 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
3479 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3480 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
3481 PTRACE_TYPE_ARG3.
3482
c40d0d10
MK
34832004-08-14 Mark Kettenis <kettenis@gnu.org>
3484
5cb0ff31
MK
3485 * defs.h: Remove out-of-date comment.
3486 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
3487 [!GETENV_PROVIDED] (getenv): Remove prototype.
3488
5f0f34cb
MK
3489 * standalone.c: Remove file.
3490 * Makefile.in (standalone.o): Remove dependency.
3491
7532965f
MK
3492 * i386-linux-nat.c (dummy_sse_values): Remove function and
3493 prototype.
3494 (i386_linux_dr_get): Fix typo in comment.
3495 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
3496
1bdc6c53
MK
3497 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
3498
c40d0d10
MK
3499 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
3500 from declaration.
3501 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
3502 from definition.
3503
64218d3e
MK
35042004-08-13 Mark Kettenis <kettenis@gnu.org>
3505
3506 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
3507 parenthesis in definition.
3508 * configure: Regenerated.
3509
926c94e7
MC
35102004-08-12 Michael Chastain <mec.gnu@mindspring.com>
3511
3512 * PROBLEMS: Mention build/1411.
3513
69489883
NN
35142004-08-09 Robert Millan <robertmh@gnu.org>
3515
3516 Committed by Nathanael Nerode.
3517 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
3518 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
3519
ebb7c577
AC
35202004-08-12 Andrew Cagney <cagney@gnu.org>
3521
3522 * NEWS: Mention fixes in GDB 6.2.1.
3523 * PROBLEMS: Remove mention of mips-irix.
3524
232d697c
JB
35252004-08-11 Joel Brobecker <brobecker@gnat.com>
3526
3527 * config/powerpc/xm-aix.h: Delete.
3528 * config/powerpc/aix.mh (MH_FILE): Remove.
3529 * config/powerpc/aix432.mh (MH_FILE): Remove.
3530
72f4e82b
JB
35312004-08-11 Joel Brobecker <brobecker@gnat.com>
3532
3533 * config/powerpc/aix.mh: Remove obsolete comment.
3534 * config/powerpc/aix432.mh: Likewise.
3535
0687ccb2
JB
35362004-08-11 Joel Brobecker <brobecker@gnat.com>
3537
3538 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
3539
dbf3ada7
JB
35402004-08-11 Joel Brobecker <brobecker@gnat.com>
3541
e08e1886
JB
3542 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
3543 this file is now empty.
3544 * config/xm-aix4.h: Remove, this file is no longer included
3545 anywhere.
3546
35472004-08-11 Joel Brobecker <brobecker@gnat.com>
3548
3549 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
3550 that file is now empty.
dbf3ada7
JB
3551 (termdef): Remove prototype, function no longer used.
3552
4c525ef6
JB
35532004-08-11 Joel Brobecker <brobecker@gnat.com>
3554
3555 * doc/gdbint.texinfo (Host Definition): Remove documentation
3556 for USE_O_NOCTTY, no longer used.
3557 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
3558 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
3559
82e0b968
JB
35602004-08-11 Joel Brobecker <brobecker@gnat.com>
3561
3562 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
3563 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
3564 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
3565
f2acbe1c
MK
35662004-08-11 Mark Kettenis <kettenis@gnu.org>
3567
daa98270
MK
3568 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
3569 instead of FIVE_ARG_PTRACE.
3570
f2acbe1c
MK
3571 * inflow.c (O_NOCTTY): Define to zero if not already defined.
3572 (new_tty): Use O_NOCTTY unconditionally.
3573
cc377e6b
MK
35742004-08-10 Mark Kettenis <kettenis@gnu.org>
3575
3576 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
3577 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
3578 fflush on stdout.
3579
3bcc18fa
JB
35802004-08-10 Joel Brobecker <brobecker@gnat.com>
3581
3582 * xcoff_symfile_finish: Replace last call to xmfree by call
3583 to xfree.
3584
7936743b
AC
35852004-08-10 Andrew Cagney <cagney@gnu.org>
3586
cc503c8a
AC
3587 * main.c (captured_main): Delete call to init_malloc.
3588 * defs.h (init_malloc): Delete declaration.
3589 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
3590 (init_malloc): Delete functions.
3591
2dc74dc1
AC
3592 * defs.h (xmfree): Delete.
3593 * utils.c (xmfree): Delete function.
3594 (xfree): Inline calls to xmfree and mfree.
3595 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
3596 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
3597 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
3598 * somread.c (som_symfile_finish): Ditto.
3599 * objfiles.c (allocate_objfile, free_objfile):
3600 * nlmread.c (nlm_symfile_finish): Ditto.
3601 * hpread.c (hpread_symfile_finish): Ditto.
3602 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
3603 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
3604 * coffread.c (coff_symfile_finish): Ditto.
3605
aa2ee5f6
AC
3606 * defs.h (xmcalloc): Delete declaration.
3607 * utils.c (xmcalloc): Delete.
3608 (xcalloc): Inline calls to xmcalloc and mcalloc.
3609 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
3610 xcalloc and xfree.
3611 * symtab.c (create_demangled_names_hash): Ditto.
3612
0efffb96
AC
3613 * defs.h (xmrealloc): Delete.
3614 * utils.c (xmrealloc): Delete.
3615 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
3616 * symmisc.c (extend_psymbol_list): Use xrealloc.
3617 * source.c (find_source_lines): Ditto.
3618 * hpread.c (hpread_lookup_type): Ditto.
3619 * dbxread.c (add_bincl_to_list): Ditto.
3620
7936743b
AC
3621 * utils.c (xmmalloc): Delete.
3622 (xmalloc): Inline xmmalloc and mmalloc calls.
3623 (msavestring): Use xmalloc.
3624 * defs.h (xmmalloc): Delete declaration.
3625 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
3626 xmmalloc.
3627 * symmisc.c (extend_psymbol_list): Ditto.
3628 * symfile.c (init_psymbol_list): Ditto.
3629 * source.c (find_source_lines): Ditto.
3630 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
3631 * elfread.c (elf_symtab_read): Ditto.
3632 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
3633 * coffread.c (coff_symfile_init): Ditto.
3634
252ab814
DC
36352004-08-10 David Carlton <carlton@bactrian.org>
3636
3637 * MAINTAINERS: Remove David Carlton from c++ testsuite
3638 maintainers.
3639
8f5ba92b
JG
36402004-08-10 Jerome Guitton <guitton@gnat.com>
3641
3642 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
3643 print a line feed before the prompt.
3644
21749010
MK
36452004-08-10 Mark Kettenis <kettenis@gnu.org>
3646
3647 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
3648
1f011ce2
JB
36492004-08-09 Joel Brobecker <brobecker@gnat.com>
3650
3651 General cleanup of the AIX xm include file:
3652 * config/xm-aix4.h (fd_set): Remove undefine.
3653 Remove include of <sys/select.h>.
3654 (HAVE_TERMIO): Remove define.
3655 (USG): Likewise.
3656 (NULL): Remove redefine.
3657 (alloca): Remove #pragma.
3658 (vfork): Remove define.
3659 (termdef): Remove.
3660 (SIGWINCH_HANDLER): Remove.
3661 (SIGWINCH_HANDLER_BODY): Remove.
3662
cf4e7692
MK
36632004-08-09 Mark Kettenis <kettenis@gnu.org>
3664
3665 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
3666 GDB_OSABI_OPENBSD_ELF.
3667
ac5754fa
MK
36682004-08-07 Robert Millan <robertmh@gnu.org>
3669
3670 * bsd-kvm.c: Check for nlist.h before including it.
3671
086ec9eb
MK
36722004-08-09 Mark Kettenis <kettenis@gnu.org>
3673
bbe06c74
MK
3674 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
3675 sigcontext' offset consistency checks for ancient BSD.
3676
3aa7b3b3
MK
3677 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
3678
086ec9eb
MK
3679 * configure.in: Check for <sys/types.h>. Check return and
3680 argument types of ptrace.
3681 * configure, config.in: Regenerate.
3682
09991fa0
JB
36832004-08-09 Jim Blandy <jimb@redhat.com>
3684
3685 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
3686 rs6000_register_sim_regno): Doc fixes.
3687
fed7ba43
JB
36882004-08-08 Joel Brobecker <brobecker@gnat.com>
3689
3690 * mips-tdep.c: Include "floatformat.h".
3691 (n32n64_floatformat_always_valid): New function.
3692 (floatformat_n32n64_long_double_big): New constant.
3693 (mips_gdbarch_init): Set size and format of long double
3694 for N32 and N64 ABIs.
3695 * Makefile.in (mips-tdep.o): Update dependencies.
3696
456fcf94
AC
36972004-08-08 Andrew Cagney <cagney@gnu.org>
3698
2f9b146e
AC
3699 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
3700 print. Improve script's error messages.
3701 * gdbarch.h: Re-generate.
3702
456fcf94
AC
3703 * gdbarch.sh (pformat): New function.
3704 (float_format, double_format, long_double_format): List with bit
3705 members. Use pformat when printing.
3706 * gdbarch.c, gdbarch.h: Re-generate.
3707
69e9e646
NW
37082004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
3709
3710 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
3711 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
3712 (ppcnbsd_supply_pcb): New function.
3713 (_initialize_ppcnbsd_nat): New prototype and function.
3714 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
3715 (LOADLIBES): New variable.
3716 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
3717
5ef2d0aa
AC
37182004-08-08 Andrew Cagney <cagney@gnu.org>
3719
3720 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
3721 (builtin_type_ieee_double, builtin_type_ia64_quad)
3722 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
3723 BE/LE floating-point types.
3724 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
3725 (builtin_type_ieee_double, builtin_type_ia64_quad)
3726 (builtin_type_ia64_spill): Declare.
3727 * doublest.c (_initialize_doublest, floatformat_ieee_single)
3728 (floatformat_ieee_double, floatformat_arm_ext)
3729 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
3730 of LE/BE floatformats.
3731 * doublest.h: (struct floatformat, floatformat_ieee_single)
3732 (floatformat_ieee_double, floatformat_arm_ext)
3733 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
3734
5c7f2947
MK
37352004-08-08 Mark Kettenis <kettenis@gnu.org>
3736
ecac404d
MK
3737 * i386gnu-nat.c (gnu_store_registers): Fix typo.
3738
9b8607ce
MK
3739 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
3740 instead of regcache_raw_supply when storing the registers.
3741
f6052080
MK
3742 * i386gnu-nat.c: Update copyright year.
3743 (gnu_store_registers): Don't use deprecated_registers and
3744 deprecated_registers_valid. Use regcache_valid_p and
3745 regcache_raw_supply instead.
3746
17777823
MK
3747 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
3748 frame_pc_unwind.
3749
5240ceac
MK
3750 * procfs.c (procfs_pid_to_str): Remove redundant and unused
3751 variables. Incapitalized "process".
3752
5c7f2947
MK
3753 * configure.in: Add cursesX to the list of possible curses libs.
3754 Add cursesX.h to the list of possible curses headers.
3755 * configure, config.in: Regenerate.
3756
da7d81e3
NW
37572004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
3758
3759 * configure.in: Test for struct lwp in <sys/lwp.h>.
3760 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
3761 the offset of l_addr in struct lwp.
3762
7f245d65
NW
37632004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
3764
3765 * bsd-kvm.c: Include "gdbcore.h"
3766 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
3767
47b3f456
AC
37682004-08-07 Andrew Cagney <cagney@gnu.org>
3769
70bd8e24
AC
3770 * gdbtypes.c (build_flt, build_complex): New functions.
3771 (gdbtypes_post_init): Use.
3772
9b0dea39
AC
3773 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
3774
5cf7abac
AC
3775 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
3776 through to builtin_type_uint128.
3777
64d2b26d
AC
3778 * c-exp.y: Use builtin_type function to obtain builtin types.
3779
7ad6570d
AC
3780 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
3781 builtin_uint128.
3782 * gdbtypes.c (gdbtypes_post_init): Update.
3783 (build_gdbtypes): Move initialization of builtin_type_int0
3784 through to builtin_type_uint128 from here ...
3785 (_initialize_gdbtypes): ... to here.
3786 * d10v-tdep.c (d10v_register_type): Update.
3787
47b3f456
AC
3788 * doublest.c: Update copyright.
3789 (floatformat_from_length): Call error when floatformat is NULL.
3790 (extract_floating_by_length): Remove NULL fmt check.
3791 (store_floating_by_length): Ditto.
3792
0a8146bf
AC
37932004-08-07 Andrew Cagney <cagney@gnu.org>
3794
3795 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
3796 that the register is valid.
3797
c0ccb908
MK
37982004-08-05 Mark Kettenis <kettenis@chello.nl>
3799
8e6bed05
MK
3800 * i386-linux-tdep.c (i386_linux_sigtramp_start)
3801 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
3802 struct frame_info *. Use safe_frame_unwind_memory instead of
3803 deprecated_read_memory_nobpt.
3804 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
3805 changed signature of i386_linux_sigtramp_start and
3806 i386_linux_rt_sigtramp_start.
3807
24f9f5e3
MK
3808 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
3809 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
3810 instead of deprecated_read_memory_nobpt.
3811 (i386nbsd_sigtramp_p): Adjust for changed signature of
3812 i386nbsd_sigtramp_offset.
3813
c822af0c
MK
3814 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
3815 safe_frame_unwind_memory instead of target_read_memory.
3816
c0ccb908
MK
3817 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
3818 !NO_SYS_FILE.
3819 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
3820 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
3821 (_initialize_kernel_u_addr): Remove prototype and function.
3822 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
3823 !NO_SYS_FILE.
3824 * xcoffread.c: Likewise.
3825
b9e1c0d6
MK
38262004-08-06 Mark Kettenis <kettenis@gnu.org>
3827
3828 * vax-nat.c: New file.
3829 * vaxbsd-nat.c: Tweak comment.
3830 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
3831 vaxnbsd-tdep.c.
3832 (vax-nat.o): New dependency.
3833 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
3834 (vax-*-ultrix2*): Remove.
3835 * config/vax/vax.mh: New file.
3836 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
3837 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
3838 (vax_register_u_addr): New prototype.
3839 (REGISTER_U_ADDR): Define using vax_register_u_addr.
3840 * config/vax/vaxult2.mh: Remove file.
3841 * config/vax/vaxult.mh: Remove file.
3842 * config/vax/vaxbsd.mh: Remove file.
3843 * config/vax/vax.mt (TM_FILE): Remove.
3844 * config/vax/tm-vaxbsd.h: Remove file.
3845
9ad7bec7
JB
38462004-08-06 Joel Brobecker <brobecker@gnat.com>
3847
3848 * aix-thread.c (get_signaled_thread): New function.
3849 (iter_trap): Delete, no longer used.
3850 (iter_tid): New function.
3851 (pd_update): Find the thread that received the SIGTRAP signal
3852 by first locating the kernel thread, and then finding its
3853 associated thread.
3854
bf0d233d
UW
38552004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
3856
3857 * lin-lwp.c (child_wait): Continue inferior after processing
3858 PTRACE_EVENT_CLONE event.
3859
d0f853e1
NN
38602004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
3861
3862 * MAINTAINERS: Add self to Write-After-Approval.
3863
ab14aeb0
JJ
38642004-08-05 Jeff Johnston <jjohnstn@redhat.com>
3865
3866 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
3867 libunwind-xxxx.so" where xxxx is UNW_TARGET.
3868
9c8dbfa9
AC
38692004-08-05 Andrew Cagney <cagney@gnu.org>
3870
c8f3ca46
AC
3871 * config/xm-sysv4.h: Delete file.
3872 * config/mips/xm-irix5.h: Delete file.
3873 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
3874 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
3875 * config/ia64/xm-aix.h: Delete file.
3876 * config/ia64/aix.mh (XM_FILE): Delete.
3877 * config/pa/xm-hppah.h: Delete file.
3878 * config/pa/hpux11w.mh (XM_FILE): Delete.
3879 * config/pa/hpux11.mh (XM_FILE): Delete.
3880 * config/pa/hpux1020.mh (XM_FILE): Delete.
3881 * config/pa/hppahpux.mh (XM_FILE): Delete.
3882
5f7daaff
AC
3883 * config/alpha/xm-alphalinux.h: Delete file.
3884 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
3885 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
3886 * config/alpha/xm-alphaosf.h: Delete file.
3887 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
3888 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
3889 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
3890 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
3891
69babf95
AC
3892 * config/i386/xm-i386v.h: Delete file.
3893 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
3894 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
3895 * config/i386/xm-i386sco.h: Delete file.
3896 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
3897 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
3898 * config/i386/xm-i386v4.h: Delete file.
3899 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
3900 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
3901 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
3902 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
3903
6f009c8a
AC
3904 * config/vax/xm-vax.h: Delete file.
3905 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
3906 * config/vax/xm-vaxult2.h: Delete file.
3907 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
3908 * config/vax/vaxult2.mh (XM_FILE): Delete.
3909 * config/vax/xm-vaxult.h: Delete file.
3910 * config/vax/vaxult.mh (XM_FILE): Delete.
3911 * config/vax/xm-vaxbsd.h: Delete file.
3912 * config/vax/vaxbsd.mh (XM_FILE): Delete.
3913
9c8dbfa9
AC
3914 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
3915 * gdbarch.h, gdbarch.c: Re-generate.
3916 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
3917 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
3918 * frame.h: Delete deprecated_read_fp from comments.
3919 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
3920 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
3921
84367a3e
MK
39222004-08-04 Mark Kettenis <kettenis@gnu.org>
3923
9c8e3411
MK
3924 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
3925 trampoline in OpenBSD 3.5-current.
3926
b87bc0d8
MK
3927 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
3928 SSE registers.
3929
84367a3e
MK
3930 * Makefile.in: Remove embedded page breaks.
3931
a44bddec
JB
39322004-08-04 Jim Blandy <jimb@redhat.com>
3933
7ab3286f
JB
3934 * regcache.c (regcache_raw_read): Assert that, after calling
3935 target_fetch_registers, the register we're reading is cached.
3936
a44bddec
JB
3937 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
3938 a call to 'internal_error', with a more helpful error message.
3939 * rs6000-tdep.c (e500_pseudo_register_read,
870d65d5 3940 e500_pseudo_register_write, rs6000_store_return_value): Same.
a44bddec 3941
35124113
AC
39422004-08-04 Andrew Cagney <cagney@gnu.org>
3943
3944 * Makefile.in: Update dependencies.
3945
9f643768
JB
39462004-08-04 Jim Blandy <jimb@redhat.com>
3947
6ced10dd
JB
3948 Change the layout of the PowerPC E500 raw register cache to allow
3949 the lower 32-bit halves of the GPRS to be their own raw registers,
3950 not pseudoregisters.
3951 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
3952 add ppc_ev0_upper_regnum flag.
3953 * rs6000-tdep.c: #include "reggroups.h".
3954 (spe_register_p): Recognize the ev upper half registers as SPE
3955 registers.
3956 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
3957 registers.
3958 (e500_move_ev_register): New function.
3959 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
3960 vector registers are the pseudo-registers now, formed by splicing
3961 together the gprs and the upper-half registers.
3962 (e500_register_reggroup_p): New function.
3963 (P): Macro deleted.
3964 (P8, A4): New macro.
3965 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
3966 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
3967 macros.
3968 (registers_e500): Rearrange register set so that the raw register
3969 set contains 32-bit GPRs and upper-half registers, and the SPE
3970 vector registers become pseudo-registers.
3971 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
3972 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
3973 register numbers are now the same for the E500 as they are for
3974 other PowerPC variants. Register e500_register_reggroup_p as the
3975 register group function for the E500.
3976 * Makefile.in (rs6000-tdep.o): Update dependencies.
3977
3978 Adapt PPC E500 native support to the new raw regcache layout.
3979 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
3980 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
3981 (fetch_spe_register, store_spe_register): Handle fetching/storing
3982 all the SPE registers at once, if regno == -1. These now take
3983 over the job of fetch_spe_registers and store_spe_registers.
3984 (fetch_spe_registers, store_spe_registers): Deleted.
3985 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
3986 unconditionally; they're always raw. Fetch/store SPE upper half
3987 registers, if present, instead of ev registers.
3988 (fetch_register, store_register): Remove sanity checks: gprs are
3989 never pseudo-registers now, so we never need to even mention any
3990 registers that are ever pseudoregisters.
3991
9f643768
JB
3992 Use a fixed register numbering when communicating with the PowerPC
3993 simulator.
3994 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
3995 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
3996 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
3997 New functions.
3998 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
3999 init_sim_regno_table.
4000 * Makefile.in (gdb_sim_ppc_h): New variable.
4001 (rs6000-tdep.o): Update dependencies.
4002
1e2279c8
AC
40032004-08-02 Andrew Cagney <cagney@gnu.org>
4004
1d94326f
AC
4005 * cris-tdep.c (cris_register_size): Restore function, still used
4006 locally.
4007
331ae7ed
AC
4008 * gdbarch.sh (deprecated_target_read_fp)
4009 (deprecated_frame_locals_address, deprecated_frame_args_address)
4010 (deprecated_frame_chain_valid, deprecated_frame_chain)
4011 (deprecated_init_extra_frame_info, deprecated_pop_frame)
4012 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
4013 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
4014 * gdbarch.h, gdbarch.c: Re-generate.
4015 * regcache.c (deprecated_read_fp): Do not call
4016 DEPRECATED_TARGET_READ_FP_P.
4017 * infcmd.c (default_print_registers_info): Do not call
4018 DEPRECATED_DO_REGISTERS_INFO.
4019 * frame-base.c (default_frame_locals_address): Do not call
4020 DEPRECATED_FRAME_LOCALS_ADDRESS.
4021 (default_frame_args_address): Do not call
4022 DEPRECATED_FRAME_ARGS_ADDRESS.
4023
1e2279c8
AC
4024 * gdbarch.sh (deprecated_register_raw_size)
4025 (deprecated_register_virtual_size:int): Delete.
4026 * gdbarch.h, gdbarch.c: Re-generate.
4027 * cris-tdep.c (cris_register_size): Delete.
4028 (cris_gdbarch_init): Update.
4029 * alpha-tdep.c (alpha_register_raw_size)
4030 (alpha_register_virtual_size): Delete.
4031 (alpha_gdbarch_init): Update.
4032
a90c06b4
AC
4033 * gdbarch.sh (deprecated_register_virtual_type)
4034 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
4035 (deprecated_dummy_write_sp): Delete.
4036 * gdbarch.h, gdbarch.c: Re-generate.
4037
f42accbe
AC
4038 * gdbarch.sh (deprecated_register_bytes): Delete.
4039 * gdbarch.h, gdbarch.c: Re-generate.
4040 * regcache.c (deprecated_register_bytes): New function.
4041 * regcache.h (deprecated_register_bytes): Declare.
4042 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4043 * v850-tdep.c (v850_gdbarch_init): Update.
4044 * sh64-tdep.c (sh64_gdbarch_init): Update.
4045 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
4046 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4047 * mcore-tdep.c (mcore_gdbarch_init): Update.
4048 * cris-tdep.c (cris_gdbarch_init): Update.
4049 * arm-tdep.c (arm_gdbarch_init): Update.
4050 * remote.c (init_remote_state): Update.
4051 * remote-vx.c (vx_prepare_to_store): Update.
4052 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
4053 * irix5-nat.c (fetch_core_registers): Update.
4054 * cris-tdep.c (cris_register_bytes_ok): Update.
4055 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
4056
45c9dd44
AC
4057 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
4058 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
4059 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
4060 (mips_insn16_frame_base_address, mips_insn16_frame_base)
4061 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
4062 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
4063 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
4064 (mips_insn32_frame_base_address, mips_insn32_frame_base)
4065 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
4066 with mips_insn16 and mips_insn32.
4067
3acba339
AC
4068 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
4069 * rs6000-tdep.c (rs6000_push_dummy_call)
4070 (rs6000_extract_return_value): Use register_size.
4071 * xstormy16-tdep.c (xstormy16_get_saved_register)
4072 (xstormy16_extract_return_value): Ditto.
4073 * valops.c (value_assign): Ditto.
4074 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
4075 * v850-tdep.c (v850_extract_return_value): Ditto.
4076 * tracepoint.c (collect_symbol): Ditto.
4077 * target.c (debug_print_register): Ditto.
4078 * stack.c (frame_info): Ditto.
4079 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
4080 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
4081 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
4082 (store_register_using_P): Ditto.
4083 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
4084 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
4085 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
4086 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
4087 * regcache.c (deprecated_read_register_bytes)
4088 (deprecated_write_register_bytes, read_register)
4089 (write_register): Ditto.
4090 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
4091 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
4092 * monitor.c (monitor_supply_register, monitor_fetch_register)
4093 (monitor_store_register): Ditto.
4094 * mn10300-tdep.c (mn10300_pop_frame_regular)
4095 (mn10300_print_register): Ditto.
4096 * mipsv4-nat.c (fill_fpregset): Ditto.
4097 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
4098 (mips64_fill_fpregset): Ditto.
4099 * mi/mi-main.c (register_changed_p, get_register)
4100 (mi_cmd_data_write_register_values): Ditto.
4101 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
4102 * irix5-nat.c (fill_gregset, fetch_core_registers):
4103 * infrun.c (write_inferior_status_register): Ditto.
4104 * infptrace.c (fetch_register, store_register): Ditto.
4105 * infcmd.c (default_print_registers_info): Ditto.
4106 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
4107 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
4108 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
4109 * hpux-thread.c (hpux_thread_fetch_registers)
4110 (hpux_thread_store_registers): Ditto.
4111 * hppah-nat.c (store_inferior_registers, fetch_register):
4112 * findvar.c (value_from_register): Ditto.
4113 * dve3900-rom.c (fetch_bitmapped_register):
4114 * cris-tdep.c (cris_gdbarch_init): Ditto.
4115 * alpha-tdep.h: Ditto.
4116 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
4117
01e1877c
AC
4118 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
4119 DEPRECATED_REGISTER_RAW_SIZE from comments.
4120 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
4121 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
4122 DEPRECATED_REGISTER_RAW_SIZE.
4123 * findvar.c (value_of_register): Simplify by assuming that the
4124 registers raw and virtual sizes are identical.
4125 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
4126 comment.
4127 * arch-utils.c (generic_register_size): Simplify by assuming
4128 register_type.
4129
73f458fb
AC
4130 * regcache.c (legacy_read_register_gen, real_register)
4131 (legacy_write_register_gen): Delete, not used.
4132
336a3131
AC
4133 * regcache.c (struct regcache_descr): Delete legacy_p.
4134 (init_legacy_regcache_descr): Delete function.
4135 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
4136 Do not use deprecated register functions.
4137 (regcache_raw_read, deprecated_write_register_gen):
4138 (deprecated_read_register_gen, regcache_raw_write): Delete code
4139 predicated on legacy_p.
4140 (register_size): Delete check against register raw size.
4141
c1d546cd
AC
4142 * cris-tdep.c (cris_register_type): Replace
4143 cris_register_virtual_type.
4144 (cris_gdbarch_init): Update, set register_type.
4145
48c2c0a6
AC
4146 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
4147 * gdbarch.h, gdbarch.c: Re-generate.
4148 * arm-tdep.c (arm_frameless_function_invocation): Delete.
4149 (arm_gdbarch_init) Do not set frameless function invocation.
4150 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
4151 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
4152 * frv-tdep.c (frv_frameless_function_invocation): Delete.
4153 (frv_gdbarch_init): Do not set frameless function invocation.
4154 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
4155 * sh-tdep.c (sh_gdbarch_init): Ditto.
4156 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
4157 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4158 * avr-tdep.c (avr_gdbarch_init): Ditto.
4159
474093a6
AC
4160 * blockframe.c (legacy_frame_chain_valid): Delete function.
4161
3c109c8b
AC
4162 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
4163 and pc. Update comments.
4164 (pc_in_dummy_frame): Delete function.
4165 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
4166 use the "id".
4167 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
4168 call_hi, top and pc, use the id.
4169 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
4170
96860204
AC
4171 * dummy-frame.c: Include "gdb_string.h".
4172 (generic_save_call_dummy_addr, generic_push_dummy_frame)
4173 (generic_save_dummy_frame_tos): Delete.
4174 (dummy_frame_push): New function, replaces above.
4175 * dummy-frame.h: Update copyright.
4176 (dummy_frame_push): Declare.
4177 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
4178 (generic_save_call_dummy_addr): Delete declarations.
4179 * infcall.c: Include "dummy-frame.h".
4180 (call_function_by_hand): Add locals caller_regcache,
4181 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
4182 with call to frame_save_as_regcache plus cleanup. Delete calls to
4183 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
4184 Move clear_proceed_status to just before the resume, add call to
4185 dummy_frame_push (discard cleanup).
4186 * Makefile.in (infcall.o): Add $(dummy_frame_h).
4187 (dummy-frame.o): Add $(gdb_string_h).
4188
d67ec5db
AC
41892004-08-01 Andrew Cagney <cagney@gnu.org>
4190
4191 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
4192 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
4193 * dummy-frame.c (find_dummy_frame): Delete.
4194 (struct dummy_frame_cache, dummy_frame_sniffer)
4195 (dummy_frame_prev_register, dummy_frame_this_id)
4196 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
4197 frame unwinder using a dummy_frame_cache.
4198
a81dcb05
AC
41992004-08-01 Andrew Cagney <cagney@gnu.org>
4200
4201 * frame.h (frame_save_as_regcache): Declare.
4202 * frame.c (frame_save_as_regcache): New function.
4203 (do_frame_read_register): Replace do_frame_unwind_register.
4204 (frame_pop): Use frame_save_as_regcache.
4205 * dummy-frame.c (generic_push_dummy_frame): Use
4206 frame_save_as_regcache.
4207
aa495d11
JB
42082004-08-01 Joel Brobecker <brobecker@gnat.com>
4209
4210 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
4211 file as included until we record the first line in the linetable.
4212
ff65ac78
AC
42132004-08-01 Andrew Cagney <cagney@gnu.org>
4214
4215 * frame.h (deprecated_pop_dummy_frame)
4216 (deprecated_read_register_dummy)
4217 (deprecated_generic_find_dummy_frame): Delete.
4218 * dummy-frame.c (deprecated_generic_find_dummy_frame)
4219 (deprecated_read_register_dummy)
4220 (deprecated_find_dummy_frame_regcache)
4221 (discard_innermost_dummy)
4222 (deprecated_pop_dummy_frame): Delete.
4223 (dummy_frame_this_id): Simplify.
4224 (struct dummy_frame): Delete "fp" and "sp".
4225 (find_dummy_frame): Simplify.
4226 (generic_push_dummy_frame): Do not set "fp" or "sp".
4227 (fprint_dummy_frames): Do not print "fp" and "sp"
4228
37bdc87e
MK
42292004-08-01 Mark Kettenis <kettenis@gnu.org>
4230
4231 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
4232 (struct i386_insn): New structure.
4233 (i386_match_insn): New function.
4234 (i386_frame_setup_skip_insns): New variable.
4235 (i386_analyze_frame_setup): Change to use i386_match_insn and the
4236 array i386_frame_setup_insns of instructions that should be
4237 skipped inside the frame setup sequence.
4238
8241eaa6
AC
42392004-08-01 Andrew Cagney <cagney@gnu.org>
4240
5bc602c7
AC
4241 * frame.h (deprecated_frame_xmalloc_with_cleanup)
4242 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
4243 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
4244 * stack.c (frame_info): Delete references to
4245 DEPRECATED_FRAME_INIT_SAVED_REGS and
4246 deprecated_get_frame_saved_regs.
4247 * frame.c (struct frame_info): Delete saved_regs and extra_info.
4248 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
4249 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
4250 (frame_unwind_register_signed)
4251 (frame_unwind_register_unsigned)
4252 (frame_unwind_unsigned_register): Use register_size.
4253 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
4254 (deprecated_frame_xmalloc_with_cleanup)
4255 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
4256 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
4257
03d363a1
AC
4258 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
4259 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
4260 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
4261 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
4262
8241eaa6
AC
4263 * infcall.c (call_function_by_hand): Do not use
4264 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
4265 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
4266 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
4267 DEPRECATED_STACK_ALIGN.
4268
f00df8b7
AC
42692004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
4270
4271 Committed by Andrew Cagney.
4272 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
4273
eec63939
AC
42742004-08-01 Andrew Cagney <cagney@gnu.org>
4275
4276 * mips-tdep.c (mips16_frame_cache)
4277 (mips16_frame_this_id, mips16_frame_prev_register)
4278 (mips16_frame_unwind, mips16_frame_sniffer)
4279 (mips16_frame_base_address, mips16_frame_base)
4280 (mips16_frame_base_sniffer, mips32_frame_cache)
4281 (mips32_frame_this_id, mips32_frame_prev_register)
4282 (mips32_frame_unwind, mips32_frame_sniffer)
4283 (mips32_frame_base_address, mips32_frame_base)
4284 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
4285 separate heuristic mips16 and mips32 unwinders.
4286 (mips_stub_frame_cache, mips_stub_frame_this_id)
4287 (mips_stub_frame_prev_register)
4288 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
4289 (mips_stub_frame_base_address, mips_stub_frame_base)
4290 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
4291 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
4292 match true mdebug frames.
4293 (non_heuristic_proc_desc): Add forward declaration.
4294
e66299b3
AC
42952004-08-01 Andrew Cagney <cagney@gnu.org>
4296
83cbbf3e
AC
4297 * config/mips/tm-irix6.h: Delete file.
4298 * config/mips/tm-irix5.h: Delete file.
4299 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
4300 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
4301
22d41b37
AC
4302 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
4303 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
4304 * config/nm-gnu.h (NO_CORE_OPS): Delete.
4305 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
4306 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
4307 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
4308 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
4309 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
4310 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
4311 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
4312 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
4313 (TARGET_SIGNAL_RAW_VALUES): Delete.
4314 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
4315 Delete.
4316 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
4317 (TARGET_HW_WATCH_LIMIT): Delete.
4318 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
4319 * minimon.h: Delete file.
4320
e66299b3
AC
4321 * trad-frame.c (trad_frame_get_this_base)
4322 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
4323 functions.
4324 * trad-frame.h (trad_frame_set_this_base)
4325 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
4326
1f67027d
AC
43272004-07-31 Andrew Cagney <cagney@gnu.org>
4328
4329 * trad-frame.c (trad_frame_get_prev_register): Rename
4330 trad_frame_get_prev_register.
4331 * vax-tdep.c (vax_frame_prev_register): Update.
4332 * trad-frame.h: Update.
4333 * trad-frame.c (trad_frame_get_register): Update.
4334 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
4335 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
4336 Update.
4337 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
4338 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
4339 Update.
4340 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
4341 Update.
4342 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
4343 Update.
4344 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
4345 Update.
4346 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
4347 Update.
4348 * s390-tdep.c (s390_frame_prev_register)
4349 (s390_stub_frame_prev_register)
4350 (s390_sigtramp_frame_prev_register): Update.
4351 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
4352 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
4353 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
4354 * m88k-tdep.c (m88k_frame_prev_register)
4355 * m68hc11-tdep.c (m68hc11_frame_prev_register)
4356 * m32r-tdep.c (m32r_frame_prev_register): Update.
4357 * hppa-tdep.c (hppa_frame_prev_register_helper)
4358 * frv-tdep.c (frv_frame_prev_register): Update.
4359 * d10v-tdep.c (d10v_frame_prev_register): Update.
4360 * cris-tdep.c (cris_frame_prev_register): Update.
4361 * avr-tdep.c (avr_frame_prev_register): Update.
4362 * arm-tdep.c (arm_prologue_prev_register)
4363 (arm_sigtramp_prev_register): Update.
4364
c1bf6f65
AC
43652004-07-31 Andrew Cagney <cagney@gnu.org>
4366
4367 * frame.h (legacy_saved_regs_unwind)
4368 (legacy_frame_chain_valid, legacy_frame_p)
4369 (enum frame_type): Delete UNKNOWN_FRAME.
01fbbd97
AC
4370 * dummy-frame.c (dummy_frame_this_id): Simplify.
4371 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
c1bf6f65
AC
4372 * frame.c (struct frame_info): Delete the field "type".
4373 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
4374 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
4375 (legacy_saved_regs_unwind, legacy_frame_p)
4376 (frame_type_from_pc): Delete.
4377 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
4378 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
4379
dc856692
MK
43802004-07-31 Mark Kettenis <kettenis@gnu.org>
4381
5a5effe1
MK
4382 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
4383 indentation.
4384
d4fd50a6
MK
4385 * mips-nat.c: Remove file.
4386 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
4387 (mips-nat.o): Remove dependency.
4388
2689df5a
MK
4389 * infptrace.c: Update copyright year.
4390 (fetch_register): Pass NULL in regcache_raw_supply call instead of
4391 explicitly setting the buffer to all zeroes.
4392
dc856692
MK
4393 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
4394 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
4395
763910e0
AC
43962004-07-30 Andrew Cagney <cagney@gnu.org>
4397
4398 * GDB 6.2 released from gdb_6_2-branch.
4399
0b66e38c
EZ
44002004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
4401
4402 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
4403
4404 * exec.c (exec_file_attach):
4405 * nto-tdep.c (nto_find_and_open_solib):
4406 * pa64solib.c (pa64_solib_sizeof_symbol_table):
4407 * solib.c (solib_open):
4408 * somsolib.c (som_solib_sizeof_symbol_table):
4409 * source.c (is_regular_file, openp, open_source_file):
4410 * symfile.c (symfile_bfd_open):
4411 * wince.c (upload_to_device): Differentiate between the search for
4412 binary and source files.
4413
be7d7357
AC
44142004-07-30 Andrew Cagney <cagney@gnu.org>
4415
4416 * complaints.c (_initialize_complaints): Pass NULL to
4417 add_setshow_zinteger_cmd for help_doc.
4418 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
4419
ddc9cd0f
AC
44202004-07-30 Andrew Cagney <cagney@gnu.org>
4421
4422 Fix PR i18n/761.
4423 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
4424 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
4425 $(PACKAGE).pot and update-po.
4426 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
4427 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
4428 (update-po): New rules.
4429 (localedir): Define using autoconf.
4430 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
4431 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
4432 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
4433 * configure.in: Generate CATALOGS and LINGUAS from contents of
4434 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
4435 * configure: Re-generate.
4436 * po/gdbtext: New file
4437
e92f3704
JG
44382004-07-30 Jerome Guitton <guitton@gnat.com>
4439
4440 * MAINTAINERS: Reorder Write After Approval list in alphabetical
4441 order.
4442
b0f35d58
DL
44432004-07-30 David Lecomber <dsl@sources.redhat.com>
4444
4445 * dwarf2read.c (read_file_scope): Set producer if attribute
4446 present.
4447 (struct dwarf2_cu): Added new member producer.
4448
ce7d4522
JG
44492004-07-30 Jerome Guitton <guitton@gnat.com>
4450
4451 * inflow.c (kill_command): release file handles in BFD.
4452 * exec.c (exec_file_attach): Ditto.
4453 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
4454
05ee07c7
AC
44552004-07-29 Andrew Cagney <cagney@gnu.org>
4456
4457 * PROBLEMS (mips-irix): Note that it is broken.
4458
62eceb47
AC
44592004-07-29 Andrew Cagney <cagney@gnu.org>
4460
e57b8d41
AC
4461 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
4462 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
4463
d334389b
AC
4464 * config/xm-nbsd.h: Delete file.
4465 * config/arm/xm-nbsd.h: Delete file.
4466 * config/i386/xm-nbsd.h: Delete file.
4467 * config/ns32k/xm-nbsd.h: Delete file.
4468 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
4469 * config/i386/nbsdelf.mh (XM_FILE): Delete.
4470 * config/i386/nbsdaout.mh (XM_FILE): Delete.
4471 * config/arm/nbsdelf.mh (XM_FILE): Delete.
4472 * config/arm/nbsdaout.mh (XM_FILE): Delete.
4473
e910f676
AC
4474 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
4475 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
4476 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
4477 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
4478 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
4479 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
4480
6fa856b9
AC
4481 * config/powerpc/xm-linux.h: Delete empty file.
4482 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
4483 * config/powerpc/linux.mh (XM_FILE): Delete.
4484 * config/m68k/xm-linux.h: Delete empty file.
4485 * config/m68k/linux.mh (XM_FILE): Delete.
4486 * config/ia64/xm-linux.h: Delete empty file.
4487 * config/ia64/linux.mh (XM_FILE): Delete.
4488 * config/arm/xm-linux.h: Delete empty file.
4489 * config/arm/linux.mh (XM_FILE): Delete.
4490
471ae5ae
AC
4491 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4492 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
4493 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4494 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
4495 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4496 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
4497 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4498 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
4499
62eceb47
AC
4500 * config/m68k/xm-m68k.h: Delete file.
4501 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
4502 copyright.
4503 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
4504 * config/pa/xm-linux.h: Delete empty file.
4505 * config/pa/linux.mh (XM_FILE): Delete.
4506 * config/i386/xm-i386.h: Delete empty file.
4507 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
4508 "i386/xm-i386.h".
4509 * config/i386/obsdaout.mh (XM_FILE): Delete.
4510 * config/i386/obsd64.mh (XM_FILE): Delete.
4511 * config/i386/fbsd64.mh (XM_FILE): Delete.
4512 * config/i386/nto.mh (XM_FILE): Delete.
4513 * config/i386/obsd.mh (XM_FILE): Delete.
4514 * config/i386/linux64.mh (XM_FILE): Delete.
4515 * config/i386/linux.mh (XM_FILE): Delete.
4516 * config/i386/i386sol2.mh (XM_FILE): Delete.
4517 * config/i386/i386gnu.mh (XM_FILE): Delete.
4518 * config/i386/fbsd.mh (XM_FILE): Delete.
4519 * config/i386/nbsd64.mh (XM_FILE): Delete.
4520
c35f4ffc
AC
45212004-07-29 Andrew Cagney <cagney@gnu.org>
4522
4523 * config/pa/xm-linux.h: Do not include "floatformat.h".
4524 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4525 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
4526 * config/i386/xm-i386.h: Do not include "floatformat.h".
4527 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4528 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
4529 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4530 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
4531 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
4532 GDB_HOST_LONG_DOUBLE_FORMAT instead.
4533 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
4534 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
4535 * configure, config.in: Regenerate.
4536 * configure.host (gdb_host_float_format, gdb_host_double_format)
4537 (gdb_host_long_double_format): Set according to the host.
4538
624a44a3
AC
45392004-07-29 Andrew Cagney <cagney@gnu.org>
4540
4541 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
4542
0dea2468
AC
45432004-07-28 Andrew Cagney <cagney@gnu.org>
4544
4545 * PROBLEMS: Mention threads/1650.
4546 * NEWS: Mention the NPTL fix.
4547
b3f42336
AC
45482004-07-28 Andrew Cagney <cagney@gnu.org>
4549
4550 * cli/cli-decode.c (add_setshow_cmd): Delete function.
4551 (add_setshow_cmd_full): Make static.
4552 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
4553 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
4554 * cli/cli-decode.c (add_setshow_filename_cmd)
4555 (add_setshow_string_cmd): New functions.
4556 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
4557 * mips-tdep.c (_initialize_mips_tdep): Update.
4558 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
4559 * cli/cli-logging.c (_initialize_cli_logging): Update.
4560 * complaints.c (_initialize_complaints): Update.
4561 * remote.c (_initialize_remote): Update.
4562
3b64bf98
AC
45632004-07-28 Andrew Cagney <cagney@gnu.org>
4564
4565 * cli/cli-decode.c (add_setshow_zinteger_cmd)
4566 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
4567 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
4568 print parameters. Make string parameters constant.
4569 * command.h: Update. Update copyright.
4570 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
4571 * observer.c (_initialize_observer): Ditto.
4572 * frame.c (_initialize_frame): Ditto.
4573 * complaints.c (_initialize_complaints): Ditto.
4574 * maint.c (_initialize_maint_cmds): Ditto.
4575 * target.c (initialize_targets): Ditto.
4576 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
4577 * infcall.c (_initialize_infcall): Ditto.
4578 * arm-tdep.c (_initialize_arm_tdep): Ditto.
4579 * m32r-rom.c (_initialize_m32r_rom): Ditto.
4580 * remote-rdi.c (_initialize_remote_rdi): Ditto.
4581 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
4582 * mips-tdep.c (_initialize_mips_tdep): Ditto.
4583
e9667a65
AC
45842004-07-28 Andrew Cagney <cagney@gnu.org>
4585
54a5b07d
AC
4586 * gdbtypes.c (lookup_primitive_typename): Delete function.
4587 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
4588 * ada-lex.l: Use language_lookup_primitive_type_by_name.
4589 * gdbtypes.c (lookup_typename): Ditto.
4590 * f-exp.y (yylex): Ditto.
4591 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
4592
e9667a65
AC
4593 * scm-lang.c (c_builtin_types): Delete extern declaration.
4594 (scm_language_defn): Replace
4595 string_char_type and primitive_type_vector with
4596 la_language_arch_info.
4597 * jv-lang.c (java_language_defn): Replace
4598 string_char_type and primitive_type_vector with
4599 la_language_arch_info.
4600 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
4601 c_builtin_types in comment.
4602 * c-lang.h (struct language_arch_info): Declare opaque.
4603 (c_language_arch_info): Declare.
4604 (c_builtin_types): Delete declaration.
4605 * c-lang.c (c_language_arch_info): Set string_char_type to
4606 builtin_char, not builtin_true_char. Make global.
4607 (c_builtin_types): Delete array.
4608 (asm_language_defn, minimal_language_defn): Replace
4609 string_char_type and primitive_type_vector with
4610 la_language_arch_info.
4611
685419e2
AC
46122004-07-28 Andrew Cagney <cagney@gnu.org>
4613
4614 * gdbtypes.h (struct builtin_type): Rename true_char to
4615 builtin_true_char.
4616 * gdbtypes.c (gdbtypes_post_init): Update.
4617 * c-lang.c (arch_info): New function.
4618 (enum c_primitive_types): New enum.
4619 (c_language_defn): Instead of string_char_type and
4620 primitive_type_vector set la_language_arch_info.
4621
5a44ea29
AC
46222004-07-28 Andrew Cagney <cagney@gnu.org>
4623
4624 * language.h (struct language_arch_info): Fix typo
4625 s/primative/primitive/.
4626 * gdbtypes.c (lookup_primitive_typename): Ditto.
4627 * language.c (language_lookup_primitive_type_by_name)
4628 (unknown_language_arch_info): Ditto.
4629
f290d38e
AC
46302004-07-27 Andrew Cagney <cagney@gnu.org>
4631
4632 * defs.h (enum language): Add nr_languages.
4633 * language.h (struct language_arch_info): Define.
4634 (struct language_defn): Add la_language_arch_info.
4635 (language_lookup_primative_type_by_name): Declare.
4636 (language_string_char_type): Declare.
4637 * language.c (_initialize_language, language_gdbarch_post_init)
4638 (struct language_gdbarch, language_gdbarch_data): Implement
4639 per-architecture language information.
4640 (unknown_language_arch_info, language_string_char_type)
4641 (language_lookup_primative_type_by_name): New functions.
4642 (unknown_language_defn, auto_language_defn)
4643 (local_language_defn): Set la_language_arch_info to
4644 unknown_language_arch_info.
4645 (unknown_builtin_types): Delete.
4646 * gdbtypes.c (lookup_primitive_typename): Use
4647 language_lookup_primative_type_by_name.
4648 (create_string_type): Use language_string_char_type.
4649 * values.c (value_from_string): Use language_string_char_type.
4650 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
4651 * p-lang.c (pascal_language_defn): Ditto.
4652 * m2-lang.c (m2_language_defn): Ditto.
4653 * jv-lang.c (java_language_defn): Ditto.
4654 * objc-lang.c (objc_language_defn): Ditto.
4655 * f-lang.c (f_language_defn): Ditto.
4656 * c-lang.c (c_language_defn, cplus_language_defn)
4657 (asm_language_defn, minimal_language_defn): Ditto.
4658
000177f0
AC
46592004-07-27 Andrew Cagney <cagney@gnu.org>
4660
4661 * gdbtypes.h (struct builtin_type): Declare.
4662 (builtin_type): Declare.
4663 * d10v-tdep.c (d10v_register_type): Use builtin_type.
4664 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
4665 (gdbtypes_post_init): New function.
4666 (builtin_type): New function.
4667
e22f895c
KI
46682004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
4669
4670 * remote-m32r-sdi.c: Fix breakpoint bug.
4671 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
4672 recv_char_data, recv_long_data): New functions to replace communication
4673 sequences.
4674
536517dd
MC
46752004-07-26 Michael Chastain <mec.gnu@mindspring.com>
4676
4677 Document PR threads/1650.
4678 * PROBLEMS (Threads): Document problem with many threads
4679
a0a44d18
AC
46802004-07-26 Andrew Cagney <cagney@gnu.org>
4681
4682 * gdb-mi.el: Move from here ...
4683 * mi/gdb-mi.el: ... to here.
4684
7ac4ac06
AC
46852004-07-26 Andrew Cagney <cagney@gnu.org>
4686
4687 Problem reported by Ashley Pittman <ashley@quadrics.com>.
4688 * main.c (captured_main): When in batch mode always detach.
4689
a1b461bf
AC
46902004-07-26 Andrew Cagney <cagney@gnu.org>
4691
4692 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
4693 and h8300 as broken.
4694 * NEWS: END-OF-LIFE frame compatibility module.
4695 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
4696 specific comments.
4697
cb1a6d5f
AC
46982004-07-26 Andrew Cagney <cagney@gnu.org>
4699
4700 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
4701 * xcoffsolib.c (_initialize_xcoffsolib): Update.
4702 * wince.c (_initialize_wince): Update.
4703 * win32-nat.c (_initialize_win32_nat): Update.
4704 * varobj.c (_initialize_varobj): Update.
4705 * valops.c (_initialize_valops): Update.
4706 * utils.c (initialize_utils, initialize_utils): Update.
4707 * tui/tui-win.c (_initialize_tui_win): Update.
4708 * top.c (init_main): Update.
4709 * symfile.c (_initialize_symfile): Update.
4710 * source.c (_initialize_source): Update.
4711 * somsolib.c (_initialize_som_solib): Update.
4712 * solib.c (_initialize_solib): Update.
4713 * solib-frv.c (_initialize_frv_solib): Update.
4714 * serial.c (_initialize_serial): Update.
4715 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
4716 * remote.c (_initialize_remote, _initialize_remote): Update.
4717 * remote-vx.c (_initialize_vx): Update.
4718 * remote-utils.c (_initialize_sr_support): Update.
4719 * remote-sds.c (_initialize_remote_sds): Update.
4720 * remote-mips.c (_initialize_remote_mips): Update.
4721 * remote-e7000.c (_initialize_remote_e7000): Update.
4722 * proc-api.c (_initialize_proc_api): Update.
4723 * printcmd.c: Update.
4724 * parse.c (_initialize_parse): Update.
4725 * pa64solib.c (_initialize_pa64_solib): Update.
4726 * p-valprint.c (_initialize_pascal_valprint): Update.
4727 * monitor.c (_initialize_remote_monitors): Update.
4728 * mips-tdep.c (_initialize_mips_tdep): Update.
4729 * mcore-tdep.c (_initialize_mcore_tdep): Update.
4730 * maint.c (_initialize_maint_cmds): Update.
4731 * lin-lwp.c (_initialize_lin_lwp): Update.
4732 * language.c (_initialize_language): Update.
4733 * kod.c (_initialize_kod): Update.
4734 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
4735 * i386-tdep.c (_initialize_i386_tdep): Update.
4736 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
4737 * gdbarch.sh: Update.
4738 * gdbarch.c: Re-generate.
4739 * gdb-events.sh: Update.
4740 * gdb-events.c: Re-generate.
4741 * frame.c (_initialize_frame): Update.
4742 * exec.c: Update.
4743 * demangle.c (_initialize_demangler): Update.
4744 * dcache.c (_initialize_dcache): Update.
4745 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
4746 * cp-valprint.c (_initialize_cp_valprint): Update.
4747 * corefile.c (_initialize_core): Update.
4748 * command.h: Update.
4749 * cli/cli-decode.h: Update.
4750 * cli/cli-cmds.c (init_cli_cmds): Update.
4751 * charset.c (_initialize_charset): Update.
4752 * breakpoint.c (_initialize_breakpoint): Update.
4753 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
4754 * alpha-tdep.c (_initialize_alpha_tdep): Update.
4755 * aix-thread.c (_initialize_aix_thread): Update.
4756
b4632131
MK
47572004-07-24 Mark Kettenis <kettenis@gnu.org>
4758
4759 Partial fix for PR backtrace/1718.
4760 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
4761 that GCC migrates into the prolugue. Don't handle any
4762 instructions that clobber %ebx.
4763
822c9732
AC
47642004-07-23 Andrew Cagney <cagney@gnu.org>
4765
4766 Use regcache_raw_collect instead of regcache_collect.
4767 * regcache.h (regcache_collect): Delete declaration.
4768 * regcache.c (regcache_colect): Delete function.
4769 * win32-nat.c (do_child_store_inferior_registers): Update.
4770 * sol-thread.c (sol_thread_store_registers): Update.
4771 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
4772 * rs6000-nat.c (store_register): Update.
4773 * remote.c (store_register_using_P, remote_store_registers): Update.
4774 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
4775 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
4776 (fill_vrregset, store_spe_registers, fill_gregset)
4777 (fill_gregset): Update.
4778 * nto-procfs.c (procfs_store_registers): Update.
4779 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
4780 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
4781 * m68klinux-nat.c (store_register, fill_gregset): Update.
4782 * m68k-tdep.c (fill_gregset): Update.
4783 * infptrace.c (store_register): Update.
4784 * i386-nto-tdep.c (i386nto_regset_fill): Update.
4785 * i386-linux-nat.c (store_register, fill_gregset): Update.
4786 * hppa-linux-nat.c (fill_gregset): Update.
4787 * go32-nat.c (store_register): Update.
4788 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
4789 (store_fp_regs): Update.
4790 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
4791 (store_nwfpe_extended, store_fpregister, store_fpregs)
4792 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
4793 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
4794 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
4795 (store_regs_user_thread, store_regs_kernel_thread): Update.
4796
32b05c07
MK
47972004-07-24 Mark Kettenis <kettenis@gnu.org>
4798
4799 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
4800 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
4801 encoding.
4802 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
4803 member of `struct comp_unit'.
4804
8567c30f
AC
48052004-07-23 Andrew Cagney <cagney@gnu.org>
4806
4807 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
4808 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
4809
f6da8dd8
MH
48102004-07-23 Martin Hunt <hunt@redhat.com>
4811 Kevin Buettner <kevinb@redhat.com>
4812
4813 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
4814 alignment was being added to the offset instead of multiplied.
4815
bd921882
MK
48162004-07-23 Mark Kettenis <kettenis@gnu.org>
4817
24f033e8
MK
4818 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
4819 changed signal trampoline in OpenBSD 3.5-current.
4820
90f3cecd
MK
4821 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
4822 <machine/pcb.h> and "bsd-kvm.h".
4823 (sparc64nbsd_supply_pcb): New function.
4824 (_initialize_sparc64nbsd_nat): Renamed from
4825 _initialize_sparcnbsd_nat. Enable libkvm interface.
4826 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
4827 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
4828 (LOADLIBES): New variable.
4829
a4954a62
MK
4830 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
4831
bd921882
MK
4832 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
4833
23a6d369
AC
48342004-07-21 Andrew Cagney <cagney@gnu.org>
4835
4836 Use regcache_raw_supply instead of supply_register.
4837 * regcache.h (supply_register): Delete declaration.
4838 * regcache.c (supply_register): Delete function.
4839 * wince.c (do_child_fetch_inferior_registers): Update.
4840 * win32-nat.c (do_child_fetch_inferior_registers)
4841 (fetch_elf_core_registers): Update.
4842 * v850ice.c (v850ice_fetch_registers): Update.
4843 * thread-db.c (thread_db_store_registers): Update.
4844 * sol-thread.c (sol_thread_store_registers): Update.
4845 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
4846 * rs6000-nat.c (fetch_register): Update.
4847 * rom68k-rom.c (rom68k_supply_one_register): Update.
4848 * remote.c (remote_wait, remote_async_wait): Update.
4849 * remote-st.c (get_hex_regs): Update.
4850 * remote-sim.c (gdbsim_fetch_register): Update.
4851 * remote-sds.c (sds_fetch_registers): Update.
4852 * remote-rdp.c (remote_rdp_fetch_register): Update.
4853 * remote-rdi.c (arm_rdi_fetch_registers): Update.
4854 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
4855 * remote-m32r-sdi.c (m32r_fetch_register): Update.
4856 * remote-hms.c (init_hms_cmds): Update.
4857 * remote-est.c (init_est_cmds): Update.
4858 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
4859 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
4860 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
4861 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
4862 (fetch_register, supply_vrregset, supply_vrregset)
4863 (fetch_spe_registers): Update.
4864 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
4865 * monitor.c (monitor_supply_register): Update.
4866 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
4867 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
4868 (mipsnbsd_supply_fpreg): Update.
4869 * mips-nat.c (fetch_inferior_registers)
4870 (fetch_core_registers): Update.
4871 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
4872 (supply_fpregset, mips64_supply_gregset)
4873 (mips64_supply_fpregset): Update.
4874 * m68klinux-nat.c (fetch_register, supply_gregset)
4875 (supply_fpregset): Update.
4876 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
4877 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
4878 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
4879 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
4880 * infptrace.c (fetch_register): Update.
4881 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
4882 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
4883 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
4884 (gnu_fetch_registers, gnu_store_registers): Update.
4885 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
4886 * i386-linux-nat.c (fetch_register, supply_gregset)
4887 (dummy_sse_values): Update.
4888 * hpux-thread.c (hpux_thread_fetch_registers): Update.
4889 * hppah-nat.c (fetch_register): Update.
4890 * hppa-linux-nat.c (fetch_register, supply_gregset)
4891 (supply_fpregset): Update.
4892 * go32-nat.c (fetch_register): Update.
4893 * dve3900-rom.c (fetch_bitmapped_register)
4894 (_initialize_r3900_rom): Update.
4895 * cris-tdep.c (supply_gregset): Update.
4896 * abug-rom.c (init_abug_cmds): Update.
4897 * core-aout.c (fetch_core_registers): Update.
4898 * armnbsd-nat.c (supply_gregset, supply_fparegset)
4899 (fetch_register, fetch_fp_register): Update.
4900 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
4901 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
4902 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
4903 * alphanbsd-tdep.c (fetch_core_registers): Update.
4904 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
4905 * alpha-nat.c (fetch_osf_core_registers)
4906 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
4907 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
4908 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
4909
73cc75f3
AC
49102004-07-21 Andrew Cagney <cagney@gnu.org>
4911
4912 * PROBLEMS: Mention breakpoints/1702.
4913 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
4914 that is known to work.
4915
a53c66de
AC
49162004-07-21 Andrew Cagney <cagney@gnu.org>
4917
4918 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
4919 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
4920 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
4921 (handle_inferior_event): Wrap call to deprecated
4922 IGNORE_HELPER_CALL in #ifdef.
4923 * config/mips/tm-nbsd.h: Update.
4924
708ff411
JB
49252004-07-20 Jim Blandy <jimb@redhat.com>
4926
412b3060
JB
4927 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
4928 bfd_mach_ppc has no segment registers.
4929
13ac140c
JB
4930 Include PowerPC SPR numbers for special-purpose registers.
4931 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
4932 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
4933 new member in initializer.
4934 (S, S4, SN4, S64): New macros for defining special-purpose
4935 registers.
4936 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
4937 registers_403, registers_403GC, registers_505, registers_860,
4938 registers_601, registers_602, registers_603, registers_604,
4939 registers_750, registers_e500): Use them.
4940
708ff411
JB
4941 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
4942 replace references with expression used to initialize variable.
4943
1f602b35
AC
49442004-07-20 Andrew Cagney <cagney@gnu.org>
4945
4946 * breakpoint.c (deprecated_read_memory_nobpt): Rename
4947 read_memory_nobpt.
4948 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
4949 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
4950 (s390_sigtramp_frame_sniffer): Update.
4951 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
4952 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
4953 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
4954 (mips32_fetch_instruction): Update.
4955 * mcore-tdep.c (get_insn): Update.
4956 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
4957 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
4958 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
4959 * i386-linux-tdep.c (i386_linux_sigtramp_start)
4960 (i386_linux_rt_sigtramp_start): Update.
4961 * i386-linux-nat.c (child_resume): Update.
4962 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
4963 * hppa-linux-tdep.c (insns_match_pattern): Update.
4964 * gdbcore.h: Update.
4965 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
4966 * frame.c (safe_frame_unwind_memory): Update.
4967 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
4968 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
4969 * alpha-tdep.c (alpha_read_insn): Update.
4970
2cd8546d
AC
49712004-07-20 Andrew Cagney <cagney@gnu.org>
4972
4973 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
4974 containing both bytes and mask. Add "frame_type".
4975 * tramp-frame.c (tramp_frame_start): Update.
4976 (tramp_frame_prepend_unwinder): Update.
4977 * mips-linux-tdep.c (mips_linux_o32_sigframe)
4978 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
4979 (mips_linux_n64_rt_sigframe): Update. Make "static const".
4980 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
4981
f928dd62
EZ
49822004-07-19 Eli Zaretskii <eliz@gnu.org>
4983
4984 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
4985 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
4986 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
4987 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
4988
d5c560f7
AC
49892004-07-17 Andrew Cagney <cagney@gnu.org>
4990
860660cb
AC
4991 * NEWS, PROBLEMS: Update for 6.2.
4992
8c266f54
AC
4993 * README: Update to 6.2.
4994
a552edd9
AC
4995 * utils.c (xvasprintf): Call xstrvprintf.
4996
c4a172b5
AC
4997 * parse.c: Update copyright.
4998 (null_post_parser): Eliminate ARGSUSED.
4999
da745b36
AC
5000 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
5001 * tui/tui-win.c (tui_get_cmd_list): Ditto.
5002 * symfile-mem.c (_initialize_symfile_mem): Ditto.
5003
9cbc6ef0
AC
5004 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
5005 * ppc-linux-nat.c: Use "Linux kernel".
5006 * hppa-linux-tdep.c: Use GNU/Linux.
5007 * hppa-linux-nat.c: Use GNU/Linux.
5008 * dwarfread.c: Add [sic] to use of Linux.
5009
1b89295f
AC
5010 * hppa-linux-nat.c: Do not include <string.h>.
5011 (supply_fpregset): Remove "register" attribute.
5012
d5c560f7
AC
5013 * solib-frv.c (fetch_loadmap): Use xfree, not free.
5014
7ddd7709
MK
50152004-07-17 Mark Kettenis <kettenis@gnu.org>
5016
b1d19a62
MK
5017 * configure.in: Define _MSE_INT_H on Solaris 9 too.
5018 * configure, config.in: Regenerated.
5019
7ddd7709
MK
5020 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
5021 "bsd-kvm.h".
5022 (vaxbsd_supply_pcb): New function.
5023 (_initialize_vaxbsd_nat): New prototype and function.
5024 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
5025 solib-sunos.o.
5026 (LOADLIBES): New variable.
5027 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5028 (LOADLIBES): New variable.
5029 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
5030 (LOADLIBES): New variable.
5031 * Makefile.in (vaxbsd-nat.o): Update dependencies.
5032
2c07db7a
AC
50332004-07-16 Andrew Cagney <cagney@gnu.org>
5034
5035 * defs.h (event_loop_p): Replace variable declaration with macro,
5036 always 1.
5037 * main.c (captured_main): Delete options "-async" and "-noasync".
5038 (event_loop_p): Delete variable.
5039 * NEWS: Mention that "-async" and "-noasync" were removed.
5040
717eb1cf
AC
50412004-07-16 Andrew Cagney <cagney@gnu.org>
5042
5043 * remote-m32r-sdi.c: Re-indent.
5044
c101bc14
JB
50452004-07-16 Jim Blandy <jimb@redhat.com>
5046
5109a438
JB
5047 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
5048 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
5049 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
5050 missing MPC823 SPRs.
5051 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
5052 incorrect. (This was corrected in GDB's register name tables on
5053 2004-07-14.)
5054
c101bc14
JB
5055 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
5056 should be "esasrr" ("ESA Save and Restore Register").
5057
7ce450bd
AC
50582004-07-16 Andrew Cagney <cagney@gnu.org>
5059
5060 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
5061 calls, no longer applicable. Update comments and rename parameter
5062 "step_frame" to "return_frame".
5063
ca73dd9d
AC
50642004-07-16 Andrew Cagney <cagney@gnu.org>
5065
5066 * frame.c (fprint_field): New function.
5067 (fprint_frame_id): Use fprint_field.
5068
31941f6d
JB
50692004-07-15 Joel Brobecker <brobecker@gnat.com>
5070
5071 * ada-lang.c (ada_language_defn): Remove commented out code.
5072
f86a7158
JB
50732004-07-15 Jim Blandy <jimb@redhat.com>
5074
5075 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
5076 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
5077
c24791ec
JB
50782004-07-14 Jim Blandy <jimb@redhat.com>
5079
29bb1356
JB
5080 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
5081
cc98b5cc
JB
5082 * ppc-tdep.h (ppc_num_vrs): New enum constant.
5083
8f088af7
JB
5084 * ppc-tdep.h (ppc_num_srs): New enum constant.
5085
0ea0ec5f
JB
5086 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
5087 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
5088 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
5089 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
5090 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
5091 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
5092 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
5093 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
5094 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
5095 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
5096 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
5097 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
5098 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
5099 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
5100 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
5101 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
5102 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
5103 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
5104 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
5105 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
5106 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
5107 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
5108 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
5109 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
5110 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
5111 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
5112 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
5113 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
5114 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
5115 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
5116 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
5117 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
5118 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
5119 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
5120 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
5121 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
5122 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
5123 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
5124 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
5125 special-purpose register numbers.
5126
c24791ec
JB
5127 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
5128 manual mentions 'md_twb', but many mention 'm_twb', and at that
5129 point in the register list.)
5130
d833db3b
AC
51312004-07-14 Andrew Cagney <cagney@gnu.org>
5132
5133 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
5134 instead of "internal-error".
5135
080228b2
JB
51362004-07-10 Joel Brobecker <brobecker@gnat.com>
5137
5138 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
5139 that was inserted inside a comment.
5140
c268433a
RC
51412004-07-10 Randolph Chung <tausq@debian.org>
5142
5143 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
5144 function.
5145 (hppa_hpux_push_dummy_code): New function.
5146 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
5147 Set find_global_pointer method.
5148
71009278
MK
51492004-07-10 Mark Kettenis <kettenis@gnu.org>
5150
5151 * NEWS: Mention BSD libkvm interface.
5152
b2fa5097
MS
51532004-07-10 Michael Snyder <msnyder@redhat.com>
5154
5155 * symfile.c (generic_load): Comment typo.
5156 * stack.c (get_selected_block): Ditto.
5157 * regcache.c (regcache_cooked_read): Ditto.
5158 * monitor.c (monitor_debug): Ditto.
5159 * mips-tdep.c (mips_read_pc): Ditto.
5160 * i386-linux-nat.c (ps_get_thread_area): Ditto.
5161 * gdb_mbuild.sh: Ditto.
5162 * gdbarch.sh: Ditto.
5163 * gdbarch.h: Ditto.
5164
c3e5cd34
PH
51652004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
5166
8a2225b2
PH
5167 * ada-tasks.c: Remove file.
5168
c3e5cd34
PH
5169 Remove ARI problems:
5170
5171 * ada-exp.y (write_var_from_sym): Reformat to put operator at
5172 beginning of line.
5173
5174 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
5175 Add comment.
5176 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
5177 (MIN_OF_SIZE): Rename min_of_size. Add comment.
5178 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
5179 (UMIN_OF_SIZE): Remove.
5180 (max_of_type): New function to replace orphan macro in gdbtypes.h
5181 (min_of_type): Ditto.
5182 (discrete_type_high_bound): Use max_of_type.
5183 (discrete_type_low_bound): Use min_of_type.
5184 (possible_user_operator_p): Move operator to beginning of line.
5185 (ada_is_variant_part): Ditto.
5186 (ensure_lval): Rewrite to avoid deprecated operations.
5187 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
5188 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
5189 (ada_enum_name): Remove assignments in 'if' statements.
5190 (build_ada_types): Add gdbarch parameter.
5191 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
5192 with gdbarch_data_register_post_init.
5193 Use add_setshow_uinteger_cmd rather than add_set_cmd and
5194 add_show_from_set.
5195
5196 * ada-valprint.c (inspect_it): Remove declaration.
5197 (repeat_count_threshold): Remove declaration.
5198 (ada_print_floating): Remove assignments in 'if' statements.
5199 (print_str): Move operator to beginning of line.
5200
61ce229a
JB
52012004-07-08 Jim Blandy <jimb@redhat.com>
5202
5203 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
5204
09bcec80
BR
52052004-07-08 Bob Rossi <bob@brasko.net>
5206
5207 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
5208
31c27f77
JJ
52092004-07-06 Jeff Johnston <jjohnstn@redhat.com>
5210
5211 * language.h (struct_language_defn): Add new function pointer:
5212 la_class_name_from_physname. Also add new prototype for
5213 language_class_name_from_physname.
5214 * language.c (language_class_name_from_physname): New function.
5215 (unk_lang_class_name): Ditto.
5216 (unknown_language_defn, auto_language_defn): Change
5217 to add unk_lang_class_name function pointer for
5218 la_class_name_from_physname.
5219 (local_language_defn): Ditto.
5220 * dwarf2read.c (guess_structure_name): Change to call
5221 language_class_name_from_physname.
5222 (determine_class_name): Ditto.
5223 * cp-support.c (class_name_from_physname): Renamed.
5224 (cp_class_name_from_physname): New name of function.
5225 * cp-support.h: Ditto.
5226 * c-lang.c (c_language_defn): Change to add NULL
5227 for class_name_from_physname function pointer.
5228 (cplus_language_defn): Change to add cp_class_name_from_physname.
5229 * jv-lang.c (java_class_name_physname): New function.
5230 (java_find_last_component): New static routine.
5231 (java_language_defn): Add java_class_name_from_physname pointer.
5232 * ada-lang.c (ada_language_defn): Change to add NULL
5233 for class_name_from_physname function pointer.
5234 * f-lang.c (f_language_defn): Ditto.
5235 * m2-lang.c (m2_language_defn): Ditto.
5236 * objc-lang.c (objc_language_defn): Ditto.
5237 * p-lang.c (pascal_language_defn): Ditto.
5238 * scm-lang.c (scm_language_defn): Ditto.
5239
ee28ca0f
AC
52402004-07-06 Andrew Cagney <cagney@gnu.org>
5241
5242 Patch from Bart Robinson.
5243 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
5244 (O_LARGEFILE): Define to 0, if not defined.
5245
fdb1bf9d
MK
52462004-07-03 Mark Kettenis <kettenis@gnu.org>
5247
cb162ff6
MK
5248 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
5249 <machine/pcb.h> and "bsd-kvm.h".
5250 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
5251 (m68kbsd_supply_pcb): New function.
5252 (_initialize_m68kbsd_nat): New prototype and function.
5253 * Makefile.in (m68kbsd-nat.o): Update dependencies.
5254 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5255 (LOADLIBES): New variable.
5256 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
5257 (LOADLIBES): New variable.
5258
fdb1bf9d
MK
5259 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
5260
963c4174
MK
52612004-07-03 Mark Kettenis <kettenis@gnu.org>
5262
5263 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
5264 <sys/proc.h>.
5265 (bsd_kvm_cmdlist): New variable.
5266 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
5267 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
5268 command and "kvm proc" command.
5269 * Makefile.in (bsd-kvm.o): Update dependencies.
5270
533f1d8f
MK
52712004-07-02 Mark Kettenis <kettenis@gnu.org>
5272
5273 * osabi.c: Update copyright year.
5274 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
5275 notes if EI_OSABI is set to ELFOSABI_HPUX.
5276
6780dcde
MS
52772004-07-01 Michael Snyder <msnyder@redhat.com>
5278
5279 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
5280 that seems to have gotten whacked out of line.
5281
67bebe79
MK
52822004-07-01 Mark Kettenis <kettenis@gnu.org>
5283
5284 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
5285 code.
5286
0b5d8877
PH
52872004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
5288
5289 * ada-lang.c (decode_packed_array): Minor change to comment.
5290 (ada_value_slice_ptr): New function.
5291 (ada_value_slice): New function.
5292 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
5293 test. Don't know why it is there.
5294 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
5295 to avoid dereferencing huge arrays from which one is slicing.
5296 (empty_array): Correct to return an array rather than
5297 a subrange value.
5298 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
5299 on empty arrays (let'em use 'FIRST instead).
5300
19c1ef65
PH
53012004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
5302
5303 Address complaints from gdb_ari.sh:
5304
5305 * ada-exp.y: Include gdb_string.h rather than string.h.
5306 (convert_char_literal): Reformat declaration.
5307 * ada-lang.h: Include opaque struct declaration for struct frame_info.
5308 * ada-lex.l: Change use of free to xfree (the macro would do so
5309 anyway, but this is harmless).
5310 Include gdb_string.h rather than string.h.
5311 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
5312
5313 * ada-lang.c (parse): Remove K&Rism in parameter list.
5314 (is_name_suffix): Correct Linux => GNU/Linux in comment.
5315
d81cbc94
MK
53162004-06-30 Mark Kettenis <kettenis@gnu.org>
5317
5318 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
5319 dead code.
5320
07681759
MK
53212004-06-30 Mark Kettenis <kettenis@gnu.org>
5322
5323 * alphabsd-nat.c: Update copyright year.
5324 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
5325
f7948b5f
JB
53262004-06-29 Joel Brobecker <brobecker@gnat.com>
5327
6e0cdd28 5328 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
f7948b5f
JB
5329 (i386_cygwin_in_solib_call_trampoline): New function.
5330 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
5331 and skip_trampoline_code gdbarch methods.
5332
8f113c9a
JB
53332004-06-29 Jim Blandy <jimb@redhat.com>
5334
5335 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
5336 name actually used in the dependency lists.
5337
97dc871c
RC
53382004-06-29 Randolph Chung <tausq@debian.org>
5339
5340 * NEWS (New native configurations): Mention GNU/Linux/hppa.
5341
47216e51
CV
53422004-06-29 Corinna Vinschen <vinschen@redhat.com>
5343
5344 * win32-nat.c (child_pid_to_exec_file): New function.
6780dcde 5345 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
47216e51
CV
5346 functionality.
5347
e623b504
AC
53482004-06-28 Andrew Cagney <cagney@gnu.org>
5349
5350 * defs.h (xstrvprintf): Declare.
5351 * utils.c (xstrvprintf): New function.
5352 (internal_vproblem, xstrprintf, xasprintf)
5353 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
5354 * serial.c (serial_printf): Ditto.
5355 * complaints.c (vcomplaint): Ditto.
5356
79acc9b3
CV
53572004-06-29 Corinna Vinschen <vinschen@redhat.com>
5358
5359 * infcmd.c (attach_command): Move call to target_terminal_inferior
5360 behind loading symbol table.
5361
1daf35d9
AC
53622004-06-28 Andrew Cagney <cagney@gnu.org>
5363
5364 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
5365 change - add back extern deprecated_ui_loop_hook declaration.
5366
b435e160
AC
53672004-06-28 Andrew Cagney <cagney@gnu.org>
5368
5369 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
5370 xstrprintf.
5371 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
5372 (c_value_of_variable): Ditto.
5373 * utils.c (internal_vproblem): Ditto.
5374 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
5375 * remote.c (add_packet_config_cmd): Ditto.
5376 * remote-rdp.c (rdp_set_command_line): Ditto.
5377 * regcache.c (regcache_dump): Ditto.
5378 * frv-tdep.c (new_variant, new_variant): Ditto.
5379 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
5380 (fbsd_find_memory_regions): Ditto.
5381 * breakpoint.c (create_thread_event_breakpoint)
5382 (create_breakpoints): Ditto.
5383 * aix-thread.c (aix_thread_pid_to_str): Ditto.
5384 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
5385
06d5cf63
JB
53862004-06-28 Joel Brobecker <brobecker@gnat.com>
5387
5388 * ada-lang.c: Re-indent file, with some massaging to help indent
5389 a bit when the result is otherwise really too ugly.
5390
35809fad
UW
53912004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
5392
5393 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
5394 code_addr_p and special_addr_p to 'unsigned int'.
5395
40e20472
MK
53962004-06-27 Mark Kettenis <kettenis@gnu.org>
5397
5398 * i386v4-nat.c: Update copyright year and tweak comment.
5399 (regmap): Remove trailing comma.
5400 (supply_gregset): Rename local variable i to regnum. Call
5401 regcache_raw_supply instead of supply_register.
5402 (fill_gregset): Rename argument regno to regnum. Call
5403 regcache_raw_collect instead of regcache_collect.
5404
12b0b6de
UW
54052004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
5406
5407 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
5408 and special_addr_p.
5409 (frame_id_build, frame_id_build_special): Update comments.
5410 (frame_id_build_wild): New prototype.
5411 * frame.c (frame_id_build, frame_id_build_special): Fill in new
5412 struct frame_id fields.
5413 (frame_id_build_wild): New function.
5414 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
5415
47b42a3e
MK
54162004-06-27 Mark Kettenis <kettenis@gnu.org>
5417
5418 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
5419 hppabsd-tdep.c.
5420
1265e4aa
JB
54212004-06-27 Joel Brobecker <brobecker@gnat.com>
5422
5423 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
5424
76a01679
JB
54252004-06-27 Joel Brobecker <brobecker@gnat.com>
5426
5427 * ada-lang.c: Re-indent file.
5428
7aca490a
JB
54292004-06-27 Joel Brobecker <brobecker@gnat.com>
5430
5431 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
5432 (no_symtab_msg): Likewise.
5433
5e987968
AS
54342004-06-27 Andreas Schwab <schwab@suse.de>
5435
5436 * source.c: Fix whitespace.
5437
315c4276
MK
54382004-06-27 Mark Kettenis <kettenis@gnu.org>
5439
d15be926
MK
5440 * configure.in: Include <sys/param.h> for td_pcb test.
5441 * configure: Regenerated.
5442
9062529b
MK
5443 * i386nbsd-nat.c: New file.
5444 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
5445 i386obsd-nat.c and i386obsd-tdep.c.
5446 (i386nbsd-nat.o): New dependency.
5447 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
5448 bsd-kvm.o.
5449 (LOADLIBES): New variable.
5450 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
5451 bsd-kvm.o.
5452 (LOADLIBES): New variable.
5453
8010310e
MK
5454 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
5455 (LOADLIBES): New variable.
5456
efe1d7b9
MK
5457 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
5458 fetching from BSD_KVM_PADDR. Correctly lookup address for
5459 "_thread0".
5460
315c4276
MK
5461 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
5462 "bsd-kvm.h".
5463 (amd64fbsd_supply_pcb): New funcion.
5464 (_initialize_amd64fbsd_nat): Enable libkvm interface.
5465
399cfac6
DL
54662004-06-27 <david@streamline-computing.com>
5467
5468 Partial fix for PR cli/1056.
5469 * valarith.c: Check for zero in division and remainder
5470 evaluation.
5471
6235f9c8
MK
54722004-06-27 Mark Kettenis <kettenis@gnu.org>
5473
5474 * i387-tdep.c: Remove excessive whitespace.
5475
2726dafc
AC
54762004-06-26 Andrew Cagney <cagney@gnu.org>
5477
5478 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
5479 * gdb-events.h, gdb-events.c: Re-generate.
5480 * tui/tui-hooks.c (tui_install_hooks): Update.
5481 (tui_remove_hooks): Update.
5482 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
5483
0e56aeaf
MK
54842004-06-26 Mark Kettenis <kettenis@gnu.org>
5485
cb461069
MK
5486 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
5487 (gregset_t, fpregset_t): Remove typedefs.
5488 (REG_OFFSET): Rename argument.
5489 (amd64bsd_r_reg_offset): Rename from reg_offset.
5490 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
5491 Remove functions.
5492 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
5493 of reg_offset.
5494 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
5495
ecba89de
MK
5496 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
5497
4cd80476
MK
5498 * vax-tdep.c: Tweak comment.
5499
0e56aeaf
MK
5500 Add OpenBSD/hppa support.
5501 * NEWS (New native configurations): Mention OpenBSD/hppa.
5502 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
5503 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
5504 files.
5505 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
5506 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
5507 * configure.host: Add hppa*-*-openbsd*.
5508 * configure.tgt: Add hppa*-*-openbsd*.
5509
98bbd631
AC
55102004-06-25 Andrew Cagney <cagney@gnu.org>
5511
5512 * defs.h (deprecated_ui_loop_hook): Deprecated.
5513 * wince.c (child_wait): Update.
5514 * win32-nat.c (child_wait): Update.
5515 * v850ice.c (v850ice_wait): Update.
5516 * top.c (deprecated_ui_loop_hook): Update.
5517 * serial.h: Update.
5518 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
5519 (do_unix_readchar): Update.
5520 * ser-tcp.c (net_open): Update.
5521 * remote-sim.c (gdb_os_poll_quit): Update.
5522 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
5523
769d7dc4
AC
55242004-06-24 Andrew Cagney <cagney@gnu.org>
5525
5526 * defs.h (deprecated_pre_add_symbol_hook)
5527 (deprecated_post_add_symbol_hook): Deprecated.
5528 * symfile.c (symbol_file_add_with_addrs_or_offsets)
5529 (symbol_file_add_with_addrs_or_offsets): Update references.
5530
11c949aa
AC
55312004-06-24 Andrew Cagney <cagney@gnu.org>
5532
5533 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
5534 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
5535 * wince.c (ui_loop_hook): Delete extern declaration.
5536 * win32-nat.c (ui_loop_hook): Delete extern declaration..
5537 * v850ice.c (ui_loop_hook): Delete extern declaration..
5538 * ser-unix.c (ui_loop_hook): Delete extern declaration..
5539 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
5540 * remote-sim.c (ui_loop_hook): Delete extern declaration..
5541 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
5542 ui_loop_hook declaration.
5543
eedc19af
AC
55442004-06-24 Andrew Cagney <cagney@gnu.org>
5545
5546 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
5547 entry_func_highpc fields.
5548 * objfiles.c (init_entry_point_info): Do not clear
5549 entry_func_lowpc and entry_func_highpc.
5550 (objfile_relocate): Do not relocate entry_func_lowpc and
5551 entry_func_highpc.
5552 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
5553 entry_func_highpc.
5554 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
5555 entry_func_highpc.
5556 * blockframe.c (legacy_frame_chain_valid): Replace tests against
5557 entry_func_lowpc and entry_func_highpc with call to
5558 inside_entry_func.
5559
d47079be
MK
55602004-06-24 Mark Kettenis <kettenis@gnu.org>
5561
5562 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
5563 quad-precision floating point arguments in registers.
5564
2107e348
MK
55652004-06-24 Mark Kettenis <kettenis@gnu.org>
5566
5567 From Michael Mueller <m.mueller99@kay-mueller.de>:
5568 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
5569 account.
5570
46587c42
JJ
55712004-06-22 Jeff Johnston <jjohnstn@redhat.com>
5572
5573 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
5574 to -1.
5575 * breakpoint.c (bpstat_stop_status): Move check for ignoring
5576 untriggered watchpoints to a separate if clause. Update function
5577 comment regarding STOPPED_BY_WATCHPOINT argument.
5578
226f5cf4
JB
55792004-06-22 Jim Blandy <jimb@redhat.com>
5580
5581 * gdbarch.sh: Doc fix.
5582
f10683bb
MH
55832004-06-21 Martin Hunt <hunt@redhat.com>
5584 Kevin Buettner <kevinb@redhat.com>
5585
5586 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
5587 * mips-tdep.h (MIPS_SP_REGNUM): Define.
5588 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
5589 to set_gdbarch_sp_regnum(). Use cooked register number.
5590 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
5591
412d5987
AC
55922004-06-21 Andrew Cagney <cagney@gnu.org>
5593
5594 * gdbarch.sh: When the macro field is empty, do not generate a
5595 macro definition. When the macro field is "=", generate the macro
5596 name from the upper-case function name.
5597 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
5598 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
5599 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
5600 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
5601 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
5602 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
5603 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
5604 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
5605 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
5606 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
5607 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
5608 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
5609 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
5610 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
5611 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
5612 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
5613 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
5614 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
5615 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
5616 (DEPRECATED_USE_STRUCT_CONVENTION)
5617 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5618 (DEPRECATED_FRAME_INIT_SAVED_REGS)
5619 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
5620 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
5621 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
5622 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
5623 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
5624 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
5625 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
5626 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
5627 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
5628 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
5629 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
5630 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
5631 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
5632 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
5633 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
5634 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
5635
68908a3e
AC
56362004-06-21 Andrew Cagney <cagney@gnu.org>
5637
48f7351b
AC
5638 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
5639 macro name, and the function rather than macro value. Only wrap
5640 macro print statements in #ifdef. Move format logic to where it
5641 is needed.
5642 * gdbarch.c: Re-generate.
5643
283354d8
AC
5644 * gdbarch.sh (read): Delete "print_p" and "description", add
5645 "garbage_at_eol". Check for non-empty garbage at end-of-line.
5646 Delete references to print_p.
5647 (TARGET_ARCHITECTURE): Delete print predicate.
5648 * gdbarch.c: Re-generate.
5649
68908a3e
AC
5650 * gdbarch.sh: Check that multi-arch methods do not provide a
5651 macro.
5652 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
5653 (print_registers_info, print_float_info, print_vector_info)
5654 (adjust_breakpoint_address, remote_translate_xfer_address)
5655 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
5656 (address_class_type_flags_to_name, unwind_sp): Remove the macro
5657 name from the multi-arch definition.
5658
a2428dbe
AC
56592004-06-20 Andrew Cagney <cagney@gnu.org>
5660
5661 * gdbarch.sh: Sort by the function, instead of macro name.
5662 * gdbarch.c: Re-generate.
5663
750eb019
AC
56642004-06-20 Andrew Cagney <cagney@gnu.org>
5665
66d659b1
AC
5666 * gdbarch.sh: Use the function, instead of macro name in
5667 errors and the log file.
5668 (return_value): Remove stray ":" in spec.
5669
750eb019
AC
5670 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
5671 * gdbarch.h, gdbarch.c: Re-generate.
5672 * Makefile.in (arch-utils.o): Update dependencies.
5673 * values.c (using_struct_return): Move code calling
5674 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
5675 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
5676 to legacy_return_value, simplify.
5677 * infcmd.c (print_return_value): Move code calling
5678 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
5679 to legacy_return_value, simplify.
5680 * infcall.c (call_function_by_hand): Move code calling
5681 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
5682 * arch-utils.c: Update copyright. Include "gdbcore.h".
5683 (legacy_return_value): New function.
5684 * arch-utils.h: Update copyright.
5685 (legacy_return_value): Declare.
5686
b5622e8d
AC
56872004-06-20 Andrew Cagney <cagney@gnu.org>
5688
5689 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
5690 * gdbarch.h, gdbarch.c: Re-generate.
5691 * values.c (using_struct_return): Update call.
5692 * mcore-tdep.c: Update comment.
5693 * infcall.c (call_function_by_hand): Update comment.
5694 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5695 * arch-utils.h (always_use_struct_convention): Update.
5696 * v850-tdep.c (v850_gdbarch_init): Update.
5697 * sh64-tdep.c (sh64_gdbarch_init): Update.
5698 * sh-tdep.c (sh_gdbarch_init): Update.
5699 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5700 * mips-tdep.c (mips_gdbarch_init): Update.
5701 * mcore-tdep.c (mcore_gdbarch_init): Update.
5702 * m32r-tdep.c (m32r_gdbarch_init): Update.
5703 * ia64-tdep.c (ia64_gdbarch_init): Update.
5704 * h8300-tdep.c (h8300_gdbarch_init): Update.
5705 * frv-tdep.c (frv_gdbarch_init): Update.
5706 * cris-tdep.c (cris_gdbarch_init): Update.
5707 * arm-tdep.c (arm_gdbarch_init): Update.
5708 * alpha-tdep.c (alpha_gdbarch_init): Update.
5709
5191de37
MC
57102004-06-18 Michael Chastain <mec.gnu@mindspring.com>
5711
5712 * PROBLEMS: Add more specific information, and a work-around,
5713 for PR gdb/1458.
5714
782263ab
AC
57152004-06-18 Andrew Cagney <cagney@gnu.org>
5716
5717 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
5718 * gdbarch.h, gdbarch.c: Re-generate.
5719 * ada-lang.c (ada_finish_decode_line_1): Update.
5720 * infrun.c (handle_inferior_event): Update.
5721 * infcall.c (find_function_addr): Update.
5722 * linespec.c (minsym_found): Update.
5723 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
5724 Update.
5725 * blockframe.c (legacy_frameless_look_for_prologue): Update.
5726 * cli/cli-cmds.c (disassemble_command): Update.
5727 * vax-tdep.c (vax_gdbarch_init): Update.
5728
2f305df1
MK
57292004-06-18 Mark Kettenis <kettenis@gnu.org>
5730
5731 * i386-tdep.c (i386_collect_fpregset): Fix comment.
5732
e5fe55f7
AC
57332004-06-17 Andrew Cagney <cagney@gnu.org>
5734
5735 GDB 6.1.1 released from the GDB 6.1 branch.
5736 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
5737 * PROBLEMS: Ditto.
5738
473b7be6
DJ
57392004-06-16 Daniel Jacobowitz <dan@debian.org>
5740
5741 PR gdb/1658
5742 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
5743 operation as a uleb128. Found by Michael Coulter.
5744
96d887e8
PH
57452004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
5746
5747 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
5748 make it non-static.
5749 * ada-lang.h (task_control_block): declaration moved from ada-task.c
5750 to ada-lang.h; this is needed to be able to implement the kill command
5751 in multi-task mode.
5752 (task_ptid): Ditto.
5753 (task_entry): Ditto.
5754 (task_list): Ditto.
5755 (ada_build_task_list): Ditto.
5756
5757 * ada-lang.c: Conditionalize routines and data structures related
5758 to breakpoints, exceptions, completion, and symbol caching on
5759 GNAT_GDB, since these are not yet used in the submitted public sources.
5760 (ada_main_name): Editorial: Move definition out of exception-related
5761 code.
5762
31eef181
AC
57632004-06-15 Andrew Cagney <cagney@gnu.org>
5764
5765 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
5766 deprecated_pc_in_call_dummy.
5767
2c500098
AM
57682004-06-15 Alan Modra <amodra@bigpond.net.au>
5769
5770 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
5771 bfd_get_section_size_before_reloc or _raw_size.
5772 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
5773 * dwarf2read.c (dwarf2_locate_sections): Likewise.
5774 (dwarf2_read_section): Likewise.
5775 * elfread.c (elf_locate_sections): Likewise.
5776 * gcore.c (derive_heap_segment): Likewise.
5777 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
5778 * remote-e7000.c (e7000_load): Likewise.
5779 * remote-m32r-sdi.c (m32r_load): Likewise.
5780 * remote-mips.c (mips_load_srec): Likewise.
5781 (pmon_load_fast): Likewise.
5782 * remote.c (compare_sections_command): Likewise.
5783 * symfile.c (add_section_size_callback): Likewise.
5784 (load_section_callback): Likewise.
5785 (pc_in_unmapped_range): Likewise.
5786 (pc_in_mapped_range): Likewise.
5787 (sections_overlap): Likewise.
5788 (list_overlays_command): Likewise.
5789 (simple_overlay_update_1): Likewise.
5790 (simple_overlay_update): Likewise.
5791 * tracepoint.c (remote_set_transparent_ranges): Likewise.
5792 * win32-nat.c (core_section_load_dll_symbols): Likewise.
5793
90f943f1
RC
57942004-06-14 Randolph Chung <tausq@debian.org>
5795
5796 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
5797 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
5798 static.
5799 (hppa_hpux_inferior_created): New function.
5800 (hppa_hpux_init_abi): Register observer.
5801 * symfile.c (hp_cxx_exception_support_initialized)
5802 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
5803 (symbol_file_add_main_1, symbol_file_clear): Likewise.
5804
700c15aa
RC
58052004-06-14 Randolph Chung <tausq@debian.org>
5806
3973a7d3
AC
5807 * MAINTAINERS (Write After Approval): Alphabetize my entry
5808 correctly.
700c15aa 5809
cea4838c
AC
58102004-06-14 Andrew Cagney <cagney@gnu.org>
5811
5812 * MAINTAINERS (testsuite): List Michael Chastain as the lead
5813 testsuite maintainer.
5814
97092415
AC
58152004-06-13 Andrew Cagney <cagney@gnu.org>
5816
e8c3165b
AC
5817 * infcmd.c (print_return_value): Fix logic, allow
5818 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
5819
bceabdd8
AC
5820 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
5821 defining any macros.
5822 * gdbarch.h: Re-generate.
5823
57010b1c
AC
5824 * gdbarch.sh: Delete "level" attribute. Only check for a macro
5825 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
5826 * gdbarch.h: Re-generate.
5827
bc87dfa0
AC
5828 * values.c (generic_use_struct_convention): Don't check gcc_p.
5829
15ac804d
AC
5830 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
5831 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
5832 * gdbarch.h, gdbarch.c: Regenerate.
5833 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
5834 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
5835 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5836 deprecated_max_register_raw_size and
5837 deprecated_max_register_virtual_size.
5838 * v850-tdep.c (v850_gdbarch_init): Ditto.
5839 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
5840 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5841 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5842 * cris-tdep.c (cris_gdbarch_init): Ditto.
5843
97092415
AC
5844 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
5845 * gdbarch.h, gdbarch.c: Re-generate.
5846 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
5847 (m68hc11_use_struct_convention): Delete function.
5848 (m68hc11_extract_struct_value_address): Delete function.
5849 (m68hc11_return_value): New function.
5850 (m68hc11_gdbarch_init): Instead of store_return_value,
5851 extract_return_value, return_value_on_stack,
5852 deprecated_extract_struct_value_address and use_struct_convention,
5853 set return_value.
5854 * values.c (using_struct_return): Do not call
5855 RETURN_VALUE_ON_STACK.
5856 * arch-utils.h (generic_return_value_on_stack_not): Delete
5857 declaration.
5858 * arch-utils.c (generic_return_value_on_stack_not): Delete
5859 function.
5860
44e5158b
AC
58612004-06-12 Andrew Cagney <cagney@gnu.org>
5862
5863 * values.c (register_value_being_returned): Delete function.
5864 * infcmd.c (legacy_return_value): Delete function.
5865 * infcall.c (call_function_by_hand): Inline
5866 "register_value_being_returned", simplify.
5867 * values.c (using_struct_return): Update comment, refer to
5868 print_return_value instead of register_value_being_returned.
5869 * infcmd.c (print_return_value): Inline calls to
5870 register_value_being_returned and legacy_return_value. Simplify.
5871
b887c273
RC
58722004-06-11 Randolph Chung <tausq@debian.org>
5873
5874 * somread.c (som_symtab_read): Exclude gcc local symbols.
5875
1b2bfbb9
RC
58762004-06-11 Randolph Chung <tausq@debian.org>
5877
3973a7d3
AC
5878 * infrun.c (handle_inferior_event): Handle the case when a
5879 trampoline ends up in the runtime resolver, and if the trampoline
5880 has no name. Rearrange the code so that all the trampoline
5881 processing happens before other step-out-of-range handling.
1b2bfbb9 5882
a9d61c86
MH
58832004-06-11 Martin Hunt <hunt@redhat.com>
5884
5885 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
5886 has no fpu.
5887
2c87cf5a
AC
58882004-06-10 Andrew Cagney <cagney@gnu.org>
5889
5890 * blockframe.c (legacy_inside_entry_func): Delete.
5891 (legacy_frame_chain_valid): Inline call to
5892 legacy_inside_entry_func, simplify.
5893
0b67b468 58942004-06-10 Bob Rossi <bob@brasko.net>
57c22c6c
BR
5895
5896 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
3973a7d3
AC
5897 * dwarf2read.c (partial_die_info): Add dirname field.
5898 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
5899 (read_partial_die): Save away DW_AT_comp_dir.
5900 * defs.h (symtab_to_filename): Removed.
5901 * source.c (find_and_open_source): Added.
57c22c6c 5902 (open_source_file): Just calls find_and_open_source.
3973a7d3
AC
5903 (symtab_to_filename): Removed.
5904 (symtab_to_fullname, psymtab_to_fullname): Added.
57c22c6c
BR
5905 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
5906 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
5907 symtab_to_filename.
5908 * symtab.h (partial_symtab): Add dirname field.
5909 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
3973a7d3
AC
5910 (mi_cmd_file_list_exec_source_file): Call new function
5911 symtab_to_fullname to find fullname.
57c22c6c 5912 (mi_cmd_file_list_exec_source_files): Added.
3973a7d3 5913 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
57c22c6c
BR
5914 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
5915
9a1dd1ad
AC
59162004-06-10 Andrew Cagney <cagney@gnu.org>
5917
239ae8c7
AC
5918 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
5919 to generic_use_struct_convention, the default value.
5920
fc720350
AC
5921 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
5922 of abort.
5923
9a1dd1ad
AC
5924 * ns32k-tdep.c (ns32k_push_arguments): New function.
5925 (ns32k_gdbarch_init): Set deprecated_push_arguments.
5926 * infcall.c (call_function_by_hand): Call error instead of
5927 legacy_push_arguments.
5928 * value.h (legacy_push_arguments): Delete declaration.
5929 * valops.c (legacy_push_arguments): Delete function.
5930 (value_push): Delete function.
5931
fea25152
BF
59322004-06-10 Brian Ford <ford@vss.fsi.com>
5933
5934 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
5935 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
5936 info.
5937 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
5938
30a4a8e0
AC
59392004-06-10 Andrew Cagney <cagney@gnu.org>
5940
5941 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
5942 * gdbarch.h, gdbarch.c: Re-generate.
5943 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
5944 parameters.
5945 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
5946 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
5947 deprecated_pc_in_call_dummy instead of
5948 DEPRECATED_PC_IN_CALL_DUMMY.
5949 (arm_skip_prologue): Ditto.
5950 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
5951 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
5952 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
5953 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
5954 Ditto.
5955 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
5956 (sh64_init_extra_frame_info, sh64_get_saved_register)
5957 (sh64_pop_frame): Ditto.
5958 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
5959 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
5960 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
5961 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
5962 (h8300_pop_frame): Ditto.
5963 * blockframe.c (legacy_inside_entry_func)
5964 (legacy_frame_chain_valid): Ditto.
5965 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
5966 to deprecated_pc_in_call_dummy.
5967
81cfbe54
AC
59682004-06-09 Andrew Cagney <cagney@gnu.org>
5969
a1f4a1b6
AC
5970 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
5971 provide a default value.
5972 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
5973 * gdbarch.h, gdbarch.c: Re-generate.
5974 * arch-utils.c (generic_convert_register_p): Rename
5975 legacy_convert_register_p
5976 (legacy_register_to_value, legacy_value_to_register): Delete
5977 functions.
5978 * arch-utils.h (generic_convert_register_p): Rename
5979 legacy_convert_register_p.
5980 (legacy_register_to_value, legacy_value_to_register): Delete
5981 declarations.
5982
9730f241
AC
5983 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
5984 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
5985 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
5986 * gdbarch.h, gdbarch.c: Re-generate.
5987 * infcmd.c (default_print_registers_info): Simplify.
5988 * findvar.c (value_of_register): Simplify.
5989 * mi/mi-main.c (get_register): Simplify.
5990 * arch-utils.c (legacy_convert_register_p): Always return 0.
5991 (legacy_register_to_value, legacy_value_to_register): Always call
5992 internal_error.
5993
8a1bf479
AC
5994 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
5995 #ifdef CLEAR_INSN_CACHE code.
5996 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
5997 Delete #ifdef CLEAR_DEFERRED_STORES code.
5998
4b38d6f1
AC
5999 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
6000
2d62ecc7
AC
6001 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
6002 copyright.
6003 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
6004
be4f7469
AC
6005 * config/mips/mipsv4.mh: Delete file.
6006
81cfbe54
AC
6007 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
6008 unreferenced macro.
6009 (hpread_adjust_stack_address): Delete declaration.
6010
d966f0cb
AC
60112004-06-08 Andrew Cagney <cagney@gnu.org>
6012
6013 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
6014 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
6015 PTRACE_ATTACH / PTRACE_DETACH available call error.
6016 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
6017 * infttrace.c (update_thread_state_after_attach, attach, detach):
6018 Remove #ifdef wrappers.
6019 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
6020 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
6021 * config/nm-bsd.h (ATTACH_DETACH): Delete.
6022 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
6023 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
6024 * config/nm-linux.h (ATTACH_DETACH): Delete.
6025 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
6026 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
6027 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
6028 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
6029 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
6030
d91670b9
CV
60312004-06-08 Corinna Vinschen <vinschen@redhat.com>
6032
6033 * configure.in: Set $configdir to the right OS specific value.
6034 Use value when setting $tcldir and $tkdir.
6035 * configure: Regenerate.
6036
28ba0b33
PB
60372004-06-06 Paul Brook <paul@codesourcery.com>
6038
6039 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
6040 records.
6041
f26caa11
PH
60422004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
6043
6044 * ada-lang.c (lookup_symbol_in_language): New function to allow
6045 re-use of another language's symbol lookup code. (Placed here
6046 temporarily while Ada support is being integrated into the public
6047 tree).
6048 (restore_language): New auxiliary function for
6049 lookup_symbol_in_language.
6050 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
6051 temporarily while Ada support is being integrated into the public
6052 tree).
6053
d560a54b
AO
60542004-06-08 Alexandre Oliva <aoliva@redhat.com>
6055
e75d110c
AO
6056 * Makefile.in (check//%): New.
6057
d560a54b
AO
6058 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
6059 (mn10300_store_return_value): Rewrite.
6060 (mn10300_type_align): New.
6061 (mn10300_use_struct_convention): Rewrite.
6062 (mn10300_return_value): New, using all of the above.
6063 (mn10300_pop_frame_regular): Add saved_regs_size.
6064 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
6065
a72fbdb7
AO
6066 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
6067 regs if PC is on movm.
6068
01904826
JB
60692004-06-07 Jim Blandy <jimb@redhat.com>
6070
6071 Add native Linux support for the PowerPC E500.
6072 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
6073 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
6074 all architectures except the E500.
6075 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
6076 #definitions.
6077 (struct gdb_evrregset_t): New type.
6078 (have_ptrace_getsetevrregs): New variable.
6079 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
6080 fetch_spe_registers): New functions.
6081 (fetch_register): Call fetch_spe_register as appropriate.
6082 Assert that we're only passed raw register numbers.
6083 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
6084 Don't fetch gprs if they're pseudoregisters.
6085 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
6086 store_spe_registers): New functions.
6087 (store_register): Call store_spe_register as appropriate.
6088 Assert that we're only passed raw register numbers.
6089 (store_ppc_registers): Call store_spe_registers as appropriate.
6090 Don't store gprs if they're pseudoregisters.
6091
f90ef764
JJ
60922004-06-07 Jeff Johnston <jjohnstn@redhat.com>
6093
6094 * thread-db.c (thread_get_info_callback): Fill in the thread_info
6095 struct if one exists, even if we are dealing with a zombie thread.
6096
45b75230
AC
60972004-06-07 Andrew Cagney <cagney@gnu.org>
6098
6099 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
6100 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
6101 Rename PC_REQUIRES_RUN_BEFORE_USE.
6102 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
6103 #ifdef.
6104
1658da49
RC
61052004-06-07 Randolph Chung <tausq@debian.org>
6106
6107 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
6108 unwinding after sp has been saved to the stack but before the end
6109 of the prologue, and after the fp has been modified but before it has
6110 been saved to the stack.
6111 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
6112 Remove superfluous definitions.
6113 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
6114
9a727a3c
RC
61152004-06-07 Guy Martin <gmsoft@gentoo.org>
6116
6117 Committed by Randolph Chung.
6118 * hppa-linux-nat.c: Include the correct version of the header file
6119 depending on the kernel version.
6120
9e500012
RC
61212004-06-06 Randolph Chung <tausq@debian.org>
6122
6123 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
6124 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
6125
3388d7ff
RC
61262004-06-06 Randolph Chung <tausq@debian.org>
6127
6128 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
6129 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
6130 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
6131 * hppa-tdep.c (hppa_symbol_address): New function definition.
6132 * hppa-tdep.h (hppa_symbol_address): New function declaration.
6133
d49771ef
RC
61342004-06-06 Randolph Chung <tausq@debian.org>
6135
6136 * hppa-tdep.h (struct value): Forward declaration.
6137 (gdbarch_tdep): Define tdep find_global_pointer method.
6138 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
6139 associated with the function we are trying to call, and write it
6140 to the gp register.
6141 (hppa32_convert_from_funct_ptr_addr): New function.
6142 (hppa_find_global_pointer): New function.
6143 (hppa_gdbarch_init): Set default find_global_pointer method; set
6144 convert_from_func_ptr_addr method.
6145 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
6146 (hppa_linux_init_abi): Set find_global_pointer method.
6147 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
6148
7d9b040b
RC
61492004-06-06 Randolph Chung <tausq@debian.org>
6150
6151 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
6152 to struct value *function.
6153 * gdbarch.c: Regenerate.
6154 * gdbarch.h: Likewise.
6155 * infcall.c (call_function_by_hand): Pass entire function value
6156 to push_dummy_call.
6157
6158 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
6159 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
6160 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
6161 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
6162 * arm-tdep.c (arm_push_dummy_call): Likewise.
6163 * avr-tdep.c (avr_push_dummy_call): Likewise.
6164 * cris-tdep.c (cris_push_dummy_call): Likewise.
6165 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
6166 * frv-tdep.c (frv_push_dummy_call): Likewise.
6167 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
6168 * hppa-tdep.c (hppa32_push_dummy_call)
6169 (hppa64_push_dummy_call): Likewise.
6170 * i386-tdep.c (i386_push_dummy_call): Likewise.
6171 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
6172 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
6173 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
6174 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
6175 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
6176 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
6177 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
6178 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
6179 (ppc64_sysv_abi_push_dummy_call): Likewise.
6180 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
6181 (ppc64_sysv_abi_push_dummy_call): Likewise.
6182 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
6183 * s390-tdep.c (s390_push_dummy_call): Likewise.
6184 * sh-tdep.c (sh_push_dummy_call_fpu)
6185 (sh_push_dummy_call_nofpu): Likewise.
6186 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
6187 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
6188 * vax-tdep.c (vax_push_dummy_call): Likewise.
6189
4a19ea35
JB
61902004-06-04 Jim Blandy <jimb@redhat.com>
6191
8327ccee
JB
6192 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
6193 gdbarch argument to register_size.
6194
a3c001ce
JB
6195 * rs6000-tdep.c (rs6000_store_return_value): Use
6196 regcache_cooked_write_part instead of
6197 deprecated_write_register_bytes.
6198 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
6199 not gdbarch_deprecated_store_return_value.
6200
4a19ea35
JB
6201 * ppc-linux-nat.c (store_register, fetch_register): Remove
6202 incorrect assertions. Simplify and generalize handling of
6203 transfers whose sizes are not multiples of, or less than, sizeof
6204 (PTRACE_XFER_TYPE).
6205
b9b5d7ea
JJ
62062004-06-04 Jeff Johnston <jjohnstn@redhat.com>
6207
6208 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
6209 as a new thread event.
720c7d64 6210 * thread-db.c (thread_get_info_callback): If the thread is a
b9b5d7ea 6211 zombie, return TD_THR_ZOMBIE.
720c7d64 6212 (thread_from_lwp): If thread_get_info_callback returns
b9b5d7ea
JJ
6213 TD_THR_ZOMBIE, check if the thread is still on the thread list
6214 and return a -1 ptid if not found.
6215 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
6216 change the status to TARGET_WAITKIND_SPURIOUS.
6217
c8a3b559
CV
62182004-06-03 Corinna Vinschen <vinschen@redhat.com>
6219
6220 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
6221 double values in little endian mode.
6222
20605361
AC
62232004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
6224
6225 Committed by Andrew Cagney.
6226 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
6227 after last enum constant to avoid error from IBM C
6228 compiler.
6229
bc97b3ba
JB
62302004-06-02 Jim Blandy <jimb@redhat.com>
6231
6232 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
6233 to 'message', and make it local to the lone block that uses it.
6234
1da28ab0
JB
6235 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
6236
4c4b4cd2
PH
62372004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
6238
8a2225b2
PH
6239 * ada-exp.y: Update copyright notice.
6240 Include block.h.
6241
6242 Replace REGNAME, LAST, INTERNAL_VARIABLE with
6243 SPECIAL_VARIABLE and unify the treatment of these cases.
6244
6245 (write_attribute_call0): Remove.
6246 (write_attribute_call1): Remove.
6247 (write_attribute_calln): Remove.
6248 (save_qualifier): Add missing semicolon.
6249
6250 (simple_exp,exp): Decomment (i.e., reactivate) code that was
6251 temporarily disabled to allow compilation with FSF head version.
6252
6253 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
6254 use individual operators (OP_*) for all attributes.
6255 (exp syntax): Use write_int.
6256 Handle STRING literals with OP_STRING.
6257 (variable syntax): Add limit parameter to calls to
6258 write_object_renaming.
6259
6260 (temp_parse_space): New definition to hold entities that need
6261 only live until the next call to ada_parse.
6262 (string_to_operator): Rename fields of ada_opname_table entries.
6263
6264 (write_var_from_sym): Record block.
6265 (write_var_from_name): Minor reformatting.
6266 Make sure saved name is properly encoded in the case of multiple
6267 matches, and set its language to Ada.
6268 Update comment.
6269 Modify to indicate unresolved name as symbol in the UNRESOLVED
6270 namespace, allocated in temp_parse_space.
6271 (write_int): New function.
6272
6273 (write_object_renaming): Add max_depth parameter to limit
6274 chains of object renamings.
6275 Handle case where root of renaming expression is itself a renaming.
6276 Use temp_parse_space for temporary name buffer.
6277 Handle renamings to dereferenced pointers (___XEXA suffices).
6278
6279 (ada_parse, yyerror, string_to_operator,
6280 write_var_from_sym, write_var_from_name, write_attribute_call0,
6281 write_attribute_call1, write_attribute_calln,
6282 write_object_renaming): Protoize.
6283
6284 (_initialize_ada_exp): New function.
6285
6286 * ada-lang.c: Update copyright notice.
6287 General terminology change to conform to GNAT compiler usage:
6288 mangle => encode, demangle => decode
6289 Include gdb_obstack.h.
6290 Include gdb_regex.h
6291 Include frame.h
6292 Include hashtab.h
6293 Include completer.h
6294 Include gdb_stat.h
6295 Include block.h
6296 Include infcall.h
6297
6298 (ADA_RETAIN_DOTS): Make sure this is defined.
6299 (TRUNCATION_TOWARDS_ZERO): Define.
6300 (struct string_vector): Define.
6301 (unresolved_names): Remove definition.
6302 (xnew_string_vector): New function.
6303 (string_vector_append): New function.
6304 (extract_string): Make static.
6305 (ada_unqualified_name): New function.
6306 (add_angle_brackets): New function.
6307 (function_name_from_pc): New function.
6308 (place_on_stack): Rename to ensure_lval.
6309
6310 (ensure_lval): Renamed from place_on_stack.
6311 Make identity on lvals.
6312 Update comment.
6313 (is_nonfunction): New interface.
6314 Only symbols in LOC_CONST class can be enumerals.
6315 (fill_in_ada_prototype): Remove; now independent of language.
6316 (add_defn_to_vec): Add obstack and symtab arguments.
6317 Use obstack to hold collected definitions.
6318 (num_defns_collected): New function.
6319 (defns_collected): New function.
6320 (ada_resolve_subexp): Rename to resolve_subexp.
6321 (resolve_subexp): Renamed from ada_resolve_subexp.
6322 (ada_op_name): Return non-const result.
6323 (ada_decoded_op_name): Renamed from ada_op_name, now used for
6324 other purposes.
6325
6326 (to_fixed_array_type): Add declaration.
6327 (coerce_unspec_val_to_type): Remove offset parameter.
6328 (find_sal_from_funcs_and_line): New interface.
6329 (find_line_in_linetable): Ditto.
6330
6331 (all_sals_for_line): Rename to ada_sals_for_line and make
6332 global.
6333 Add new parameter. When set, do not ask the user to choose the
6334 instance, but use the first one found instead.
6335 Use given line number in returned sals.
6336 Fix comment.
6337 Skip the prologue if funfirstline is set.
6338 Correct for memory leak when 0 lines found.
6339
6340 (value_pos_atr): Use pos_atr.
6341 (pos_atr): New function.
6342 (standard_lookup): Add block parameter.
6343
6344 (makeTimeStart): Remove declaration and uses.
6345 (makeTimeStop): Remove declaration and uses.
6346
6347 (ada_completer_word_break_characters): Allow for VMS.
6348 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
6349 (raise_sym_name): New constant.
6350 (raise_unhandled_sym_name): New constant.
6351 (raise_assert_sym_name): New constant.
6352 (process_raise_exception_name): New constant.
6353 (longest_exception_template): New constant.
6354 (warning_limit): New variable to limit warnings during expression
6355 evaluation.
6356 (warnings_issued): New variable to keep track of warnings issued.
6357 (known_runtime_file_name_patterns): New constant.
6358 (known_auxiliary_function_name_patterns): New constant.
6359 (symbol_list_obstack): New variable.
6360
6361 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
6362 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
6363 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
6364 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
6365 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
6366 ada_variant_discrim_name, field_alignment, dynamic_template_type,
6367 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
6368 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
6369 and strcmp.
6370
6371 (ada_get_field_index): New function.
6372 (lim_warning): New function.
6373 (ada_translate_error_message): New function.
6374 (MAX_OF_SIZE): New function.
6375 (MIN_OF_SIZE): New function.
6376 (UMAX_OF_SIZE): New function.
6377 (UMIN_OF_SIZE): New function.
6378 (discrete_type_high_bound): New function.
6379 (discrete_type_low_bound): New function.
6380 (base_type): New function.
6381 (do_command): Remove.
6382
6383 (ada_update_initial_language): Use language_ada, not language_unknown.
6384 (ada_encode): Renamed from ada_mangle.
6385 Obey ADA_RETAIN_DOTS.
6386 (ada_decode): Renamed from ada_demangle.
6387 Update coding conventions.
6388 (decoded_names_store): New hash table.
6389 (ada_decode_symbol): New function.
6390 (ada_la_decode): New function.
6391
6392 (modify_general_field): Correct computations of offset and bit
6393 position.
6394 (desc_base_type): Handle ref types, too.
6395 (ada_is_direct_array_type): New function.
6396
6397 (ada_is_simple_array): Rename to ada_is_simple_array_type.
6398 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
6399 (ada_is_bogus_array_descriptor,ada_type_of_array,
6400 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
6401 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
6402 ada_is_array_descriptor_type.
6403
6404 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
6405 (ada_is_packed_array_type): Handle pointers or
6406 references to packed arrays as well.
6407 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
6408 (decode_packed_array_type): Search for the packed array type
6409 symbol in the currently selected block and associated
6410 superblocks too.
6411 Use lookup_symbol again.
6412
6413 (decode_packed_array): Handle pointers and references.
6414 Update call to coerce_unspec_val_to_type.
6415 (decode_packed_array_type,value_subscript_packed): Limit warnings.
6416 (ada_value_primitive_packed_val): Improve comment.
6417
6418 (ada_index_type): Substitute int type for "undefined".
6419 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
6420 ada_array_langth, ada_is_string_type): Use renamed
6421 ada_is_simple_array_type.
6422 (empty_array): New function.
6423
6424 (ada_resolve): Rename to resolve.
6425 (resolve): Make static.
6426 Call renamed resolve_subexp.
6427 Update comment.
6428 (ada_resolve_subexp): Rename to resolve_subexp.
6429 (resolve_subexp): Update comment.
6430 Decomment disabled code.
6431 Add LOC_COMPUTED* cases.
6432 Modify to use temporary struct symbols (marked as being in
6433 UNDEF_NAMESPACE) to indicate unresolved names, instead of
6434 OP_UNRESOLVED_VALUE.
6435 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
6436 Add OP_STRING case.
6437 Remove OP_ARRAY.
6438 Use SYMBOL_PRINT_NAME instead of ada_demangle.
6439 Use new ada_lookup_symbol_list interface.
6440 Use new ada_resolve_function interface.
6441 Remove OP_TYPE case.
6442
6443 (ada_args_match): Idiot proof against null actuals.
6444 Use intermediate variables to clarify.
6445 (ada_resolve_function): Update comment and interface.
6446 (mangled_ordered_before): Rename to encoded_ordered_before and
6447 update comment.
6448 (sort_choices): Update comment and interface.
6449 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
6450 (user_select_syms): New interface.
6451 Use new sort_choices interface.
6452 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
6453 (possible_user_operator_p): Idiot-proof against null values.
6454 (ada_simple_renamed_entity): Don't make cleanup; rely on
6455 caller to free result string.
6456 Remove const from return type.
6457 (make_array_descriptor): Rename uses of place_on_stack to
6458 ensure_lval.
6459 Make sure that arrays are on stack.
6460
6461 (HASH_SIZE): Define.
6462 (struct cache_entry): Define.
6463 (cache_space): Define.
6464 (cache): Define.
6465 (clear_ada_sym_cache): New function.
6466 (find_entry): New function.
6467 (lookup_cached_symbol): New function.
6468 (defn_vector_size): Define.
6469 (cache_symbol): New function.
6470 (defn_symbols): Remove.
6471
6472 (standard_lookup): Use lookup_symbol_in_language to get effect of
6473 C lookup.
6474 Cache results.
6475
6476 (symbol_completion_match): New function.
6477 (symbol_completion_add): New function.
6478 (ada_make_symbol_completion_list): New function.
6479
6480 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
6481 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
6482 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
6483 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
6484
6485 (ada_lookup_simple_minsym): New function.
6486 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
6487
6488 (add_symbols_from_enclosing_procs): New interface.
6489 Conditionalize more helpfully.
6490 Don't bother if program isn't running.
6491 Use new interface to get_frame_block.
6492 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
6493
6494 (remove_extra_symbols): New interface.
6495 (xget_renaming_scope): New function.
6496 (is_package_name): New function.
6497 (renaming_is_visible): New function.
6498 (remove_out_of_scope_renamings): New function.
6499
6500 (ada_lookup_symbol_list): New interface.
6501 Properly reinitialize the symbol list obstack.
6502 Don't call add_symbols_from_enclosing_procs if we start from a
6503 static or global block.
6504 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
6505 add_symbols_from_enclosing_procs.
6506 Add symtab data to cached entries.
6507 Handle symbols prefixed with
6508 "standard__" specially; strip prefix and don't look in local symbols.
6509 Do not include out of scope renaming symbols in list of
6510 symbols returned.
6511 Add const to block parameter.
6512 Move check for non-local, non-global symbols earlier.
6513 Remove timing stuff.
6514 (ada_lookup_symbol): New interface.
6515 Find symtab as well.
6516 (ada_lookup_symbol_nonlocal): New function.
6517
6518 (is_name_suffix): Enhance suffix detection to recognize
6519 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
6520 (is_dot_digits_suffix): New function.
6521 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
6522
6523 (ada_add_block_symbols): New interface. Use obstack to return results
6524 in a vector of struct ada_symbol_infos. Add symtab argument.
6525 Use new interface to add_defn_to_vec.
6526 Remove calls to fill_in_ada_prototype.
6527 Use BLOCK_BUCKETS, BLOCK_BUCKET.
6528
6529 (ada_finish_decode_line_1): Add const qualification to local to fix
6530 warning.
6531 Start looking in static block for functions to avoid attempts
6532 to search frame chain for up-level variables.
6533 Adapt to new ada_sals_for_line interface.
6534 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
6535 Handle quoting of the function name inside the spec string.
6536 Skip prologue when funfirstline is set and update the
6537 function documentation to that effect.
6538
6539 (debug_print_lines, debug_print_block, debug_print_blocks,
6540 debug_print_symtab): Remove.
6541
6542 (ada_main_name): New function.
6543 (ada_exception_breakpoint_type): New function.
6544 (is_known_support_routine): New function.
6545 (ada_find_printable_frame): Renamed from find_printable_frame and made
6546 global.
6547 Remove level parameter.
6548 Use new interface to select_frame.
6549
6550 (begin_command): Remove.
6551 (ada_adjust_exception_stop): New function.
6552 (ada_print_exception_stop): New function.
6553 (exception_name_from_cond): New function.
6554 (ada_report_exception_break): Replace disabled code with
6555 conditionalization on GNAT_GDB.
6556 Get the exception name from the condition string.
6557 Remove and move functionality into new functions
6558 ada_print_exception_breakpoint_task and
6559 ada_print_exception_breakpoint_nontask.
6560 (error_breakpoint_runtime_sym_not_found): New function.
6561 (is_runtime_sym_defined): New function.
6562 (ada_breakpoint_rewrite): Uncomment suppressed code.
6563 Use symbolic error-message and runtime-symbol names.
6564 Surround runtime symbol names in quotes.
6565 Allow non-specific breakpoints on exceptions and assertions before
6566 program starts.
6567
6568 (ada_is_tagged_type): Add parameter.
6569 (ada_is_tag_type): New function.
6570 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
6571 (ada_variant_discrim_type): Ditto.
6572 (value_tag_from_contents_and_address): New function.
6573 (type_from_tag): New function.
6574 (struct tag_args): New structure used to communicate with
6575 ada_tag_name_1.
6576 (ada_tag_name_1): New function.
6577 (ada_tag_name): New function.
6578
6579 (ada_scan_number): Update comment.
6580 (find_struct_field): New function.
6581 (ada_search_struct_field): Make static.
6582 (ada_value_struct_elt): New version that returns references when
6583 given pointers or references to structs.
6584 (ada_lookup_struct_elt_type): Add 'refok' parameter.
6585 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
6586 interface.
6587 (ada_value_ind): Use new ada_to_fixed_value interface.
6588 (ada_coerce_ref): Ditto.
6589 (field_offset): Remove.
6590
6591 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
6592 (ada_find_renaming_symbol): New function.
6593 (ada_prefer_type): Prefer named types over unnamed ones.
6594 (variant_field_index): New function.
6595 (contains_variant_part): Removed: subsumed by variant_field_index.
6596 (ada_template_to_fixed_record_type): New function, mostly from
6597 template_to_fixed_record_type.
6598 (template_to_fixed_record_type):
6599 Do not scan the type fields beyond the last one; prevents a
6600 potential SEGV.
6601 Handle case where variant field is listed BEFORE discriminant it
6602 depends on.
6603 Fix calculation of record length when bit length is
6604 not evenly divisible by char length.
6605 Move code to ada_template_to_fixed_record_type and call it.
6606
6607 (template_to_static_fixed_type): Revise comment.
6608 Modify to work on ordinary record types as well as templates,
6609 so as to handle fields that use ___XVE or ___XVU encodings.
6610 (to_record_with_fixed_variant_part): Fill out comment.
6611 Initialize C++ stuff in right type.
6612 Allow case where DVAL is null.
6613 Handle case where variant field is not last.
6614 Fix typo concerning record length.
6615 (to_fixed_record_type): Decomment disabled code.
6616 (to_fixed_record_type): Use variant_field_index instead of
6617 contains_variant_part.
6618 (to_fixed_variant_branch_type): Ditto.
6619 (to_fixed_array_type): Decomment disabled code.
6620 (ada_to_fixed_type): Convert tagged types to the specific type.
6621 Deactivate the size-check for array types in order to avoid
6622 some false size alarms.
6623 (to_static_fixed_type): Decomment disabled code.
6624 Modify to call template_to_static_fixed_type
6625 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
6626 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
6627 Remove valaddr argument, as it is never really used.
6628 (ada_to_fixed_value): Change interface to act on single struct value*
6629 operand.
6630 (adjust_pc_past_prologue): New function.
6631 (ada_attribute_name): Modify to take enum exp_opcode argument.
6632
6633 (ada_enum_name): Recognize new homonym-distinguishing convention.
6634 Adjust local variable's type to remove compiler warning.
6635 Fix a small problem in the part that unqualifies the enumeration name.
6636 (ada_value_binop): New function.
6637 (ada_value_equal): New function.
6638
6639 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
6640 Don't give error message when not doing normal evaluation
6641 and a tagged type doesn't seem to contain a structure member.
6642 Give error message for packed arrays.
6643 For indexing arrays, handle pointers to packed arrays correctly.
6644 Handle case of 'first and 'last attributes of bare integral type
6645 without encoded subtype info.
6646 Remove some unnecessary casts.
6647 Fix uninitialized value of type in computing 'first, 'last, or 'length
6648 of array object.
6649 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
6650 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
6651 calls.
6652 Attributes are now exp_opcode values.
6653 Correct treatment of 'modulus.
6654 Better error message for taking 'length of wrong kind of type;
6655 improve comment.
6656 Change EVAL_NORMAL to noside for consistency.
6657 Use ada_value_binop for DIV, MOD, REM.
6658 Make special case out of array of length 0, since an argument
6659 of 0 upsets some platforms' malloc.
6660 Use OP_STRING instead of OP_ARRAY.
6661 For slice, add check that we have an array type before extracting
6662 a slice out of it. Avoids a SEGV.
6663 When evaluating an array slice, if the array type is a reference to
6664 an aligner type, then replace the aligner type by the actual type.
6665 Decomment disabled code.
6666 Remove some dead code.
6667 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
6668 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
6669 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
6670 and UNOP_MBR to UNOP_IN_RANGE.
6671 If an array type has a parallel ___XVE type, then use it.
6672 Turn arrays into pointers for lvalue arrays.
6673 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
6674 bounds error and handle 0-length slices.
6675 Use lim_warning.
6676 When selecting fields, apply ada_to_fixed_value (because the fields
6677 might have ___XVU or ___XVE encodings even if not dynamic.)
6678 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
6679 (ada_is_system_address_type): New function.
6680
6681 (get_var_value): Use new interface to ada_lookup_symbol_list.
6682 (get_int_var_value): New interface.
6683 (to_fixed_range_type): Allow unknown bound, with warning.
6684 (ada_is_modular_type): Decomment disabled code.
6685 (ADA_OPERATORS): New definition.
6686 (ada_operator_length): New function.
6687 (ada_expr_op_name): New function.
6688 (ada_forward_operator_length): New function.
6689 (ada_dump_subexp_body): New function.
6690 (ada_print_subexp): New function.
6691 (ada_exp_descriptor): New constant.
6692 (ada_op_print_tab): Add 'size. Remove FIXMEs.
6693 (ada_language_defn): Add ada_exp_descriptor entry.
6694 Change ada_parse => parse.
6695 Add post-parser entry.
6696 Use ada-specific non-local symbol lookup.
6697 Don't use C-style arrays.
6698 String lower-bound is 1.
6699 Decomment disabled code.
6700 (parse): New function.
6701 New fields ada_translate_error_message, ada_lookup_symbol,
6702 ada_lookup_minimal_symbol.
6703
6704 * ada-lang.h: Update copyright dates.
6705 Replace the mangle/demangle terminology throughout by the
6706 more appropriate encode/decode one.
6707 Include breakpoint.h.
6708 Forward declare struct partial_symbol, struct block.
6709 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
6710 (EXTRACT_ADDRESS): Remove.
6711 (EXTRACT_INT): Remove.
6712 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
6713 (MAX_ENCLOSING_FRAME_LEVELS): Define.
6714 (MAX_RENAMING_CHAIN_LENGTH): Define.
6715 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
6716
6717 (enum task_states): Remove.
6718 ada_task_states: Remove.
6719 (fat_string): Remove.
6720 (struct entry_call): Remove.
6721 (struct task_fields): Remove.
6722 (struct task_entry): Remove.
6723
6724 (struct ada_symbol_info): Define.
6725 (enum ada_attribute): Remove.
6726 (enum ada_operator): Define.
6727
6728 (ada_get_field_index): Declare.
6729 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
6730 (ada_is_simple_array): Rename to ada_is_simple_array_type.
6731 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
6732 (ada_lookup_symbol_list): New interface.
6733 (ada_decode_symbol): Declare.
6734 (ada_decode): Declare.
6735 (ada_lookup_symbol): New interface.
6736 (ada_update_initial_language): Declare.
6737 (ada_lookup_simple_minsym): Declare.
6738 (user_select_syms): New interface.
6739 (ada_sals_for_line): Declare.
6740 (ada_is_tagged_type): New interface.
6741 (ada_tag_name): Declare.
6742 (ada_lookup_struct_elt_type): Remove declaration.
6743 (ada_search_struct_field): Remove declaration.
6744 (ada_attribute_name): New interface.
6745 (ada_is_system_address_type): Declare.
6746 (ada_to_fixed_value): Remove declaration.
6747 (ada_template_to_fixed_record_type_1): Declare.
6748 (get_int_var_value): New interface.
6749 (ada_find_any_symbol): Declare.
6750 (ada_find_renaming_symbol): Declare.
6751 (ada_mangle): Rename to ada_encode.
6752 (ada_simple_renamed_entity): Remove const.
6753 (ada_main_name): Declare.
6754 (get_current_task): Rename to ada_get_current_task.
6755 (get_entry_number): Remove declaration.
6756 (ada_report_exception_break): Remove declaration.
6757 (ada_print_exception_breakpoint_nontask): Declare.
6758 (ada_print_exception_breakpoint_task): Declare.
6759 (ada_find_printable_frame): Declare.
6760
6761 * ada-lex.l: Update copyright notices.
6762 Use xmalloc and xfree instead of malloc and free.
6763 Use new interface to name_lookup.
6764 Use new interface to
6765 ada_mangle=>ada_encode.
6766 Redo handling of '$...' variable to parallel current treatment
6767 in c-exp.y.
6768 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
6769 digit_to_int, strtoulst, processInt, processReal, processId,
6770 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
6771 yywrap): Protoize.
6772
6773 (processInt): Use cast to remove harmless warning.
6774 (processReal): Modify to get rid of compiler warning on scan formats.
6775
6776 (processId): Replace xmalloc with obstack_alloc for name and remove
6777 call to ada_name_string_cleanup.
6778 Remove obsolete disabled code.
6779 (name_lookup): Ditto.
6780 New interface.
6781 Use obsavestring on temp_parse_space instead of savestring
6782 on name, and remove call to ada_name_string_cleanup.
6783 Free string returned from ada_simple_renamed_entity.
6784 Use new interface to ada_lookup_symbol_list.
6785 Decomment disabled code.
6786 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
6787 not types.
6788 When a type name lookup succeeds as a result of
6789 lookup_primitive_typename, check for regular type entry that has not
6790 yet been read in.
6791 Limit length of chain of renamed symbols we are willing to follow.
6792 Do not break names beginning with "standard__" into segments.
6793 (block_lookup): Use new interface to ada_lookup_symbol_list.
6794
6795 * ada-typeprint.c: Update copyright notice.
6796 (demangled_type_name): Rename to decoded_type_name.
6797 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
6798 (print_range_bound): Correct handling of negative
6799 bounds that make the index type looked unsigned under STABS.
6800 (print_dynamic_range_bound): Use new interface to get_int_var_value.
6801 (print_range_type_named): Use the builtin int type if no type
6802 corresponding to the given type name could be found.
6803 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
6804 Add some bullet-proofing.
6805 (print_variant_clauses): Allow for variant branches with ___XVU
6806 encodings that are not dynamic fields.
6807 Use new interface to ada_is_tagged_type.
6808 (print_record_type): Allow for fields with ___XVE encodings that
6809 are not dynamic fields.
6810 Use new interface to ada_is_tagged_type.
6811 (ada_print_type): ada_is_array_descriptor =>
6812 ada_is_array_descriptor_type.
6813
6814 * ada-valprint.c: Update copyright notice.
6815 Include gdb_string.h
6816 Include infcall.h
6817 (ui_memcpy): New function.
6818 (ada_print_floating): New function.
6819 (ada_print_str): Order arguments correctly.
6820 Correct handling of empty arrays and arrays of 0-length items.
6821 ada_is_array_descriptor => ada_is_array_descriptor_type
6822 Print values of type System.Address in hexadecimal format.
6823 Use ada_print_floating to print floating-point numbers in Ada format.
6824 Print class tag values with type names.
6825 No longer print the address of reference values. Avoids
6826 a potential confusion.
6827 (ada_value_print): Stop printing the object type for reference
6828 values, but preserve that behavior for access types. Avoids
6829 a potential confusion.
6830 Simplify one conditional expression, as the first part is now
6831 necessarily true.
6832 ada_is_array_descriptor => ada_is_array_descriptor_type
6833 Add check for arrays for null records, and print them by hand.
4c4b4cd2 6834
f65f91b5
JB
68352004-06-01 Jim Blandy <jimb@redhat.com>
6836
6837 * ppc-tdep.h: Delete unused 'regoff' member.
6838 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
6839
d4687fa0
MC
68402004-06-01 Michael Chastain <mec.gnu@mindspring.com>
6841
6842 Fix PR symtab/1661.
6843 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
6844 (hpread_read_struct_type): Likewise.
6845
de169ec9
AC
68462004-06-01 Andrew Cagney <cagney@gnu.org>
6847
c6902d46
AC
6848 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
6849 instead of xasprintf.
6850 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
6851 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
6852 (mi_cmd_data_list_register_names)
6853 (mi_cmd_data_list_changed_registers)
6854 (mi_cmd_data_list_register_values)
6855 (get_register, mi_cmd_data_write_register_values)
6856 (mi_cmd_data_write_register_values)
6857 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
6858 (mi_cmd_target_download, mi_cmd_target_select)
6859 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
6860 (mi_execute_cli_command, mi_execute_async_cli_command)
6861 (mi_execute_async_cli_command): Ditto.
6862 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
6863 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
6864
6085fc2d
AC
6865 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
6866 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
6867 error_last_message instead of mi_error_last_message.
6868 * mi/mi-main.c (mi_error_last_message): Delete function.
6869
de169ec9
AC
6870 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
6871 "invalid number of columns" error. Delete redundant "out of
6872 memory" check.
6873
1fc7d519
MK
68742004-05-31 Mark Kettenis <kettenis@gnu.org>
6875
6cfb2041
MK
6876 * i386bsd-nat.c: Don't include <sys/procfs.h>.
6877 (gregset_t, fpregset_t): Remove typedefs.
6878 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
6879 (REG_OFFSET): Rename argument.
6880 (i386bsd_r_reg_offset): Rename from reg_offset.
6881 (REG_ADDR): Remove macro.
6882 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
6883 functions.
6884 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
6885 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
6886 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
6887 instead of supply_gregset.
6888 (store_inferior_registers): Use `struct reg' and `struct fpreg'
6889 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
6890 instead of fill_gregset.
6891 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
6892
1fc7d519
MK
6893 * i386bsd-nat.c: Don't include "gregset.h".
6894 (supply_gregset, fill_gregset): Make static.
6895 (supply_fpregset, fill_fpregset): Remove.
6896 * Makefile.in (i386bsd-nat.o): Update dependencies.
6897
2c34abbe
MK
68982004-05-30 Mark Kettenis <kettenis@gnu.org>
6899
448724fb
MK
6900 * fbsd-proc.c: Include "regcache.h", "regset.h" and
6901 "gdb_assert.h". Con't include "gregset.h".
6902 (fbsd_make_corefile_notes): Use regset-based core file support
6903 instead off fill_gregset and fill_fpregset.
6904 * Makefile.in (fbsd-proc.o): Update dependencies.
6905
5ca8ca7c
MK
6906 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
6907 instructions.
6908 (m88k_frame_prev_register): Simplify code a bit.
6909
593adc23
MK
6910 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
6911 (amd64_collect_fpregset): New function.
6912 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
6913
8d1b517b
MK
6914 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
6915
7fdafb5a
MK
6916 * i386-tdep.c (i386_supply_gregset): Adjust comment.
6917 (i386_collect_gregset): New function.
6918 (i386_supply_fpregset): Adjust comment.
6919 (i386_collect_fpregset): New function.
6920 (i386_regset_from_core_section): Use i386_collect_gregset and
6921 i386_collect_fpregset.
6922
8693c419
MK
6923 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
6924 handle VALUEP being null.
6925
2c34abbe
MK
6926 * regset.h (collect_regset_ftype): Unconstify fourth argument.
6927
45d134d8
MK
69282004-05-29 Mark Kettenis <kettenis@gnu.org>
6929
1698f4e7
MK
6930 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
6931
45d134d8
MK
6932 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
6933 assembler in OpenBSD 3.5-current.
6934 (amd64obsd_sigcontext_addr): Likewise.
6935
691d145a
JB
69362004-05-28 Jim Blandy <jimb@redhat.com>
6937
6938 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
6939 register set, so our regcache isn't declared "legacy" and our E500
6940 pseudoregister read and write functions aren't ignored.
6941 (rs6000_register_byte, rs6000_register_raw_size,
6942 rs6000_register_virtual_type, rs6000_register_convertible,
6943 rs6000_register_convert_to_virtual,
6944 rs6000_register_convert_to_raw): Deleted.
6945 (rs6000_register_type, rs6000_convert_register_p,
6946 rs6000_register_to_value, rs6000_value_to_register): New
6947 functions.
6948 (rs6000_gdbarch_init): Don't register
6949 gdbarch_deprecated_register_size,
6950 gdbarch_deprecated_register_bytes,
6951 gdbarch_deprecated_register_byte,
6952 gdbarch_deprecated_register_raw_size,
6953 gdbarch_deprecated_register_virtual_type,
6954 gdbarch_deprecated_register_convertible,
6955 gdbarch_deprecated_register_convert_to_virtual, or
6956 gdbarch_deprecated_register_convert_to_raw methods. Instead,
6957 register gdbarch_register_type, gdbarch_convert_register_p,
6958 gdbarch_register_to_value, and gdbarch_value_to_register methods.
6959
18ed0c4e
JB
69602004-05-26 Jim Blandy <jimb@redhat.com>
6961
6962 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
6963 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
6964 functions, updated to match the register numberings used in GCC.
6965 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
6966 rs6000_dwarf2_reg_to_regnum as register number conversions
6967 functions for STABS and Dwarf2.
6968
779af9e3
RC
69692004-05-26 Randolph Chung <tausq@debian.org>
6970
6971 * infttrace.h (target_waitkind): Forward declare type instead of pulling
6972 in header file.
6973
c23968a2
JB
69742004-05-25 Joel Brobecker <brobecker@gnat.com>
6975
6976 * NEWS: Document new "start" command.
6977
3a7d1c27
RC
69782004-05-25 Randolph Chung <tausq@debian.org>
6979
6980 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
6981 hppa-linux.
6982
43613416
RC
69832004-05-25 Randolph Chung <tausq@debian.org>
6984
6985 * hppa-hpux-tdep.c (offsetof): Define.
6986 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
6987 (hppa32_hpux_frame_base_before_sigtramp)
6988 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
6989 (hppa64_hpux_frame_saved_pc_in_sigtramp)
6990 (hppa64_hpux_frame_base_before_sigtramp)
6991 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
6992 functions.
6993 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
6994 (hppa_hpux_sigtramp_frame_unwind_cache)
6995 (hppa_hpux_sigtramp_frame_this_id)
6996 (hppa_hpux_sigtramp_frame_prev_register)
6997 (hppa_hpux_sigtramp_frame_unwind)
6998 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
6999 (hppa_hpux_init_abi): Register sigtramp unwinder.
7000 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
7001
6d1be3f1
RC
70022004-05-25 Randolph Chung <tausq@debian.org>
7003
7004 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
7005 and multiple stack unwinds.
7006 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
7007
97c34f65
AC
70082004-05-25 Andrew Cagney <cagney@gnu.org>
7009
7010 * symfile.h (symbol_file_add_from_memory): Delete declaration.
7011 * symfile-mem.h: Delete file.
7012 * symfile-mem.c: Do not include "symfile-mem.h".
7013 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
7014 "struct bfd_section". When an error do not bother returning NULL.
7015 (add_symbol_file_from_memory_command): Use "struct bfd" and
7016 "struct bfd_section".
7017 * Makefile.in (symfile_mem_h): Delete.
7018 (symfile-mem.o): Update dependencies.
7019
e23cbd82
NR
70202004-05-25 Nick Roberts <nickrob@gnu.org>
7021
7022 * gdb-mi.el: New file.
7023
20d2ca3e
AC
70242004-05-25 Andrew Cagney <cagney@gnu.org>
7025
7026 * inftarg.c: Include "observer.h".
7027 (child_attach, child_create_inferior): Notify inferior_created.
7028 * corelow.c: Include "observer.h".
7029 (core_open): Notify inferior_created.
7030 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
7031
c27cda74
AC
70322004-05-25 Andrew Cagney <cagney@gnu.org>
7033
7034 * target.h (struct target_ops): Add from_tty to
7035 to_create_inferior.
7036 (target_create_inferior, find_default_create_inferior): Update.
7037 * infcmd.c (run_command): Update.
7038 * wince.c (child_create_inferior): Update.
7039 * win32-nat.c (child_create_inferior): Update.
7040 * uw-thread.c (uw_thread_create_inferior): Update.
7041 * thread-db.c (thread_db_create_inferior): Update.
7042 * target.c (debug_to_create_inferior)
7043 (find_default_create_inferior): Update.
7044 (maybe_kill_then_create_inferior): Update.
7045 * sol-thread.c (sol_thread_create_inferior): Update.
7046 * remote.c (extended_remote_async_create_inferior)
7047 (extended_remote_create_inferior): Update.
7048 * remote-vx.c (vx_create_inferior): Update.
7049 * remote-st.c (st2000_create_inferior): Update.
7050 * remote-sim.c (gdbsim_create_inferior): Update.
7051 * remote-sds.c (sds_create_inferior): Update.
7052 * remote-rdp.c (remote_rdp_create_inferior): Update.
7053 * remote-rdi.c (arm_rdi_create_inferior): Update.
7054 * remote-m32r-sdi.c (m32r_create_inferior): Update.
7055 * remote-e7000.c (e7000_create_inferior): Update.
7056 * procfs.c (procfs_create_inferior): Update.
7057 * ocd.c (ocd_create_inferior): Update.
7058 * ocd.h (ocd_create_inferior): Update.
7059 * nto-procfs.c (procfs_create_inferior): Update.
7060 * monitor.c (monitor_create_inferior): Update.
7061 * lin-lwp.c (lin_lwp_create_inferior): Update.
7062 * inftarg.c (child_create_inferior): Update.
7063 * hpux-thread.c (hpux_thread_create_inferior): Update.
7064 * gnu-nat.c (gnu_create_inferior): Update.
7065
1db2a798
AC
70662004-05-25 Andrew Cagney <cagney@gnu.com>
7067
7068 * MAINTAINERS: Update e-mail address.
7069
007d08bb
RC
70702004-05-24 Randolph Chung <tausq@debian.org>
7071
7072 * thread.c (info_threads_command, thread_apply_all_command)
7073 (thread_apply_command, thread_command, do_captured_thread_select):
7074 Remove HPUXHPPA-specific code.
7075
69e7b95e
RC
70762004-05-24 Randolph Chung <tausq@debian.org>
7077
7078 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
7079 unused symbols.
7080 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
7081 references.
7082
a4d5f2e0
JB
70832004-05-24 Joel Brobecker <brobecker@gnat.com>
7084
7085 * infcmd.c (kill_if_already_running): New function, extracted
7086 from run_command().
7087 (run_command): Replace extracted code by call to
7088 kill_if_already_running().
7089 (start_command): New function.
7090 (_initialize_infcmd): Add "start" command.
7091
bf2ca189
MK
70922004-05-24 Mark Kettenis <kettenis@gnu.org>
7093
7094 Add OpenBSD/m88k support.
7095 * NEWS (New native configurations): Mention OpenBSD/m88k.
7096 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
7097 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
7098 * Makefile.in (m88k_tdep_h): New variable.
7099 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
7100 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
7101 * configure.host: Add m88*-*-openbsd*.
7102 * configure.tgt: Add m88*-*-openbsd*.
7103
80fadb11
JB
71042004-05-24 Jim Blandy <jimb@redhat.com>
7105
7106 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
7107 to approve changes.
7108
19e2d14b
KB
71092004-05-24 Kevin Buettner <kevinb@redhat.com>
7110
7111 * symtab.c (fixup_section): Search section table when lookup by
7112 name fails.
7113
1b07b470
RC
71142004-05-24 Randolph Chung <tausq@debian.org>
7115
7116 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
7117 be "small_struct".
7118
368702b1
MK
71192004-05-24 Mark Kettenis <kettenis@gnu.org>
7120
5df97fde
MK
7121 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
7122 register number in regcache_raw_collect call.
7123 (m68kbsd_collect_fpregset): Likewise.
7124 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
7125
368702b1
MK
7126 * regset.h (struct regset): Add back `regset' member.
7127
a770d4ec
MK
71282004-05-23 Mark Kettenis <kettenis@gnu.org>
7129
70f9f479
MK
7130 * configure.in: Check for td_pcb in `struct thread'.
7131 * configure, config.in: Regenerated.
7132
2e16d79e
MK
7133 * dpx2-nat.c: Remove file.
7134 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
7135 (dpx2-nat.o): Remove dependencies.
7136
492cf391
MK
7137 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
7138 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
7139 (amd64obsd_supply_pcb): New function.
7140 (_initialize_amd64obsd_nat): Enable libkvm interface.
7141 * Makefile.in (amd64obsd-nat.o): Update dependencies.
7142 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
7143 (LOADLIBES): New variable.
7144
a770d4ec
MK
7145 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
7146 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
7147 (sparc32nbsd_supply_pcb): New function.
7148 (_initialize_sparcnbsd_nat): Enable libkvm interface.
7149 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
7150 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
7151 (LOADLIBES): New variable.
7152
9ea75c57
MK
71532004-05-22 Mark Kettenis <kettenis@gnu.org>
7154
2e0c3539
MK
7155 * bsd-kvm.c, bsd-kvm.h: New files.
7156 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
7157 "bsd-kvm.h".
7158 (i386fbsd_supply_pcb): New function.
7159 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
7160 (i386fbsd-nat.o): Update dependencies.
7161 (bsd_kvm_h): New variable.
7162 (bsd-kvm.o): New dependency.
7163 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
7164 (LOADLIBES): New variable.
7165
9ea75c57
MK
7166 * regset.c: Tweak comment.
7167 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
7168 macro.
7169 * regset.h: Update copyright year.
7170 (struct regset): Remove `descr' member, add `gdbarch' member.
7171 (regset_alloc): Adjust prototype and comment.
7172 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
7173 (i386_supply_fpregset): Likewise.
7174 (i386_regset_from_core_section): Update call to regset_alloc.
7175 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
7176 REGSET->arch.
7177 (i386obsd_aout_regset_from_core_section): Update call to
7178 regset_alloc.
7179 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
7180 REGSET->arch.
7181 (i386nbsd_aout_regset_from_core_section): Update call to
7182 regset_alloc.
7183 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
7184 REGSET->arch.
7185 (amd64_regset_from_core_section): Update call to regset_alloc.
7186 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
7187 REGSET->arch.
7188 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
7189 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
7190 &sparc32nbsd_gregset in sparc32_supply_gregset call.
7191 (sparc32nbsd_init_abi): Update call to regset_alloc.
7192 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
7193 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
7194 (sparc64obsd_init_abi): Update call to regset_alloc.
7195 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
7196 &sparc64nbsd_gregset in sparc64_supply_gregset call.
7197 (sparc64nbsd_init_abi): Update call to regset_alloc.
7198 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
7199 &sparc64fbsd_gregset in sparc64_supply_gregset call.
7200 (sparc64fbsd_init_abi): Update call to regset_alloc.
7201
867e2dc5
JB
72022004-05-22 Jim Blandy <jimb@redhat.com>
7203
7204 * ppc-tdep.h (spe_register_p): New declaration.
7205 (struct gdbarch_tdep): New members: ppc_acc_regnum and
7206 ppc_spefscr_regnum.
7207 * rs6000-tdep.c (spe_register_p): New function.
7208 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
7209 spefscr.
7210 (rs6000_gdbarch_init): Initialize the new members of the tdep
7211 structure.
7212
617a4cba
JB
72132004-05-21 Jim Blandy <jimb@redhat.com>
7214
0397dee1
JB
7215 * ppc-linux-nat.c (fetch_register): Move code back to be next
7216 to the comment that describes it. (Moved code, instead of
7217 comment, for symmetry with store_register.)
7218
617a4cba
JB
7219 Allocate regset structures in the gdbarch's obstack, not using
7220 xmalloc.
7221 * regset.c (regset_alloc): Renamed from regset_xmalloc.
7222 Add 'arch' argument. Allocate the regset on arch's obstack, not
7223 using xmalloc.
7224 * regset.h (regset_alloc): Update declaration.
7225 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
7226 gdbarch argument.
7227 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7228 * i386-tdep.c (i386_regset_from_core_section): Same.
7229 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7230 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7231 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7232 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7233 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7234 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7235
9aa3914d
JB
72362004-05-21 Joel Brobecker <brobecker@gnat.com>
7237
7238 * config/djgpp/fnchange.lst: Undo previous change, was useless.
7239
99c87dab
JB
72402004-05-21 Jim Blandy <jimb@redhat.com>
7241
7242 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
7243 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
7244
c2b6b4aa
JB
72452004-05-20 Jim Blandy <jimb@redhat.com>
7246
7247 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
7248
144529d0
MK
72492004-05-20 Mark Kettenis <kettenis@gnu.org>
7250
7251 * regset.h: Make prototype const-correct.
7252 * regset.c (regset_xmalloc): Make const-correct.
7253
4725b721
PH
72542004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
7255
7256 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
7257 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
7258 (symbol_search_name): Declare.
7259
7260 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
7261 (iter_name_next_hashed): Ditto.
7262 (iter_name_next_linear): Ditto.
7263 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
7264
7265 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
7266 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
7267 (symbol_search_name): New function.
7268
7269 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
7270
7271 * minsyms.c (build_minimal_symbol_hash_tables): Change
7272 test for adding to demangled hash table to check for difference
7273 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
7274
be07a590
JB
72752004-05-19 Jim Blandy <jimb@redhat.com>
7276
7277 Use a constructor function to create regset structures.
7278 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
7279 (struct regset): Use supply_regset_ftype. Add new
7280 'collect_regset' member.
7281 (regset_xmalloc): New declaration.
7282 * regset.c: New file.
7283 * am64-tdep.c (amd64_regset_from_core_section): Use
7284 regset_xmalloc to construct regset structures.
7285 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7286 * i386-tdep.c (i386_regset_from_core_section): Same.
7287 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7288 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7289 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7290 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7291 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7292 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7293 * Makefile.in (COMMON_OBS): Add regset.o.
7294 (regset.o): New rule.
7295
604368f5
JB
72962004-05-19 Joel Brobecker <brobecker@gnat.com>
7297
7298 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
7299 and pthread_cond_wait.c.
7300
82d69f8b
JB
73012004-05-18 Jim Blandy <jimb@redhat.com>
7302
7303 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
7304 before the mach-specific switch, and then let the individual cases
7305 override the defaults, rather than leaving them uninitialized
7306 until the switch and then setting them in each case.
7307
5859efe5
RC
73082004-05-18 Randolph Chung <tausq@debian.org>
7309
7310 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
7311 millicode functions.
7312
9ca80cf8
RC
73132004-05-18 Randolph Chung <tausq@debian.org>
7314
7315 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
7316 references to dld_flags_buffer consistent.
7317
ed70ba00
RC
73182004-05-18 Randolph Chung <tausq@debian.org>
7319
7320 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
7321 it for unwinding the stack.
7322
63100632
RC
73232004-05-18 Randolph Chung <tausq@debian.org>
7324
7325 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
7326 Undefine these so we can overide them using gdbarch.
7327
090ccbb7
RC
73282004-05-18 Randolph Chung <tausq@debian.org>
7329
7330 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
7331 handling for 64-bit HPUX (elf).
7332
594706e6
DJ
73332004-05-18 Daniel Jacobowitz <dan@debian.org>
7334
7335 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
7336 constants.
7337 * amd64-tdep.c (amd64_skip_prologue): Likewise.
7338 * ia64-tdep.c (examine_prologue): Likewise.
7339 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
7340 * v850-tdep.c (v850_fix_call_dummy): Likewise.
7341
e5483145
MK
73422004-05-18 Mark Kettenis <kettenis@gnu.org>
7343
7344 * vax-tdep.c (vax_return_value): Implement
7345 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7346
caed1a45
MK
73472004-05-17 Mark Kettenis <kettenis@gnu.org>
7348
7349 * vax-tdep.c (vax_return_value): Fix typo.
7350
3c0b7db2
AC
73512004-05-17 Andrew Cagney <cagney@redhat.com>
7352
5aae53e5
AC
7353 * MAINTAINERS: Mark Salter was also responsible for
7354 testsuite/config/
7355
3c0b7db2
AC
7356 * NEWS: Mention signal fixes.
7357
22b0923d
RC
73582004-05-17 Randolph Chung <tausq@debian.org>
7359
7360 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
7361 check to see if we are unwinding an export stub. Export stubs clobber
7362 the %rp in the call path and stores the original rp in a stack slot.
7363
22f2b2f3
JB
73642004-05-17 Jim Blandy <jimb@redhat.com>
7365
7366 * MAINTAINERS: Update address for J.T. Conklin.
7367
cea96d64
RC
73682004-05-17 Randolph Chung <tausq@debian.org>
7369
7370 * hppa-tdep.c: Remove superfluous #include's.
7371 * Makefile.in (hppa-tdep.o): Update dependencies.
7372
f08f6a4a
RC
73732004-05-17 Randolph Chung <tausq@debian.org>
7374
7375 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
7376 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
7377 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
7378 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
7379 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
7380 Remove static function declarations.
7381
51da707a
MK
73822004-05-17 Mark Kettenis <kettenis@gnu.org>
7383
caed1a45
MK
7384 * alphabsd-nat.c: Update copyright year.
7385 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
7386
c0c2b0db
MK
7387 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
7388 and M68K_A2_REGNUM.
7389
51da707a
MK
7390 * m68k-tdep.c (m68k_svr4_return_value): Implement
7391 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7392
8d027a04
MK
73932004-05-16 Mark Kettenis <kettenis@gnu.org>
7394
7395 * sol-thread.c Update copyright year. Fix various coding
7396 standards violations. Tweak a few comments.
7397 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
7398 Delete prototypes.
7399
0d99fdb9
RC
74002004-05-15 Randolph Chung <tausq@debian.org>
7401
7402 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
7403 as pointer instead of array reference since HPUX compiler does
7404 not accept unsized array arguments.
7405 * somsolib.c (dld_flags_buffer): Use constant array size.
7406
f7e3843a
MK
74072004-05-15 Mark Kettenis <kettenis@gnu.org>
7408
0fe85704
MK
7409 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
7410 offset with decimal offset.
7411 (amd64obsd_sigcontext_addr): Return correct address for entire
7412 signal trampoline.
7413
a54f9a00
MK
7414 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
7415 instead of get_frame_base.
7416
feae6502
MK
7417 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
7418 (fill_gregset): Use regcache_raw_collect.
7419
0382d099
MK
7420 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
7421 ppcobsd-tdep.c.
7422
f7e3843a
MK
7423 * config/sparc/tm-nbsd64.h: Remove file.
7424 * config/tm-sunos.h: Remove file.
7425
773df3e5
JB
74262004-05-15 Joel Brobecker <brobecker@gnat.com>
7427
7428 * rs6000-tdep.c (store_param_on_stack_p): New function,
7429 an improved version of some code extracted from skip_prologue().
7430 (skip_prologue): Use store_param_on_stack_p() to detect
7431 instructions saving a parameter on the stack. Detect when r0
7432 is used to save a parameter.
7433 Do not mark "li rx, SIMM" instructions as part of the prologue,
7434 unless the following instruction is also part of the prologue.
7435
95918acb
AC
74362004-05-14 Andrew Cagney <cagney@redhat.com>
7437
06f32659
AC
7438 * infrun.c (handle_inferior_event): Simplify
7439 STEP_OVER_UNDEBUGGABLE.
7440
95918acb
AC
7441 * infrun.c (handle_step_into_function): Delete function.
7442 (handle_inferior_event): Inline calls to
7443 handle_step_into_function.
7444
40711ff1 74452004-05-14 Jerome Guitton <guitton@gnat.com>
42203e46
JG
7446
7447 * rs6000-nat.c: Fix a comment.
7448
02f60eae
JB
74492004-05-12 David Anderson <davea@sgi.com>
7450
7451 Committed by Jim Blandy <jimb@redhat.com>:
7452 * regcache.c (struct regcache_descr): fix comment spelling.
7453
552e377b
JB
74542004-05-13 J. Brobecker <brobecker@gnat.com>
7455
7456 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
7457 Fixes a link link failure.
7458
349766b2
JB
74592004-05-13 J. Brobecker <brobecker@gnat.com>
7460
7461 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
7462 error that was causing the build to fail.
7463
0d4d5484
JB
74642004-05-13 J. Brobecker <brobecker@gnat.com>
7465
7466 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
7467 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
7468
0b30808c
AC
74692004-05-13 Andrew Cagney <cagney@redhat.com>
7470
7471 * infrun.c (handle_inferior_event): Check for
7472 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
7473 calls. Update comments.
7474
cdf2c5f5
JB
74752004-05-13 Jim Blandy <jimb@redhat.com>
7476
063715bf
JB
7477 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
7478 (fetch_regs_user_thread, fetch_regs_kernel_thread)
7479 (store_regs_user_thread, store_regs_kernel_thread): Use
7480 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
7481 * ppc-linux-nat.c (fill_gregset): Same.
7482 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
7483 (ppc_linux_sigtramp_cache): Same.
7484 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
7485 (ppcnbsd_sigtramp_cache_init): Same.
7486 * rs6000-nat.c (fetch_core_registers): Same.
7487 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
7488 (rs6000_frame_cache): Same.
7489
cdf2c5f5
JB
7490 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
7491 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
7492 of assuming that the gprs are numbered starting with zero.
7493 * ppc-linux-nat.c (fill_gregset): Same.
7494 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
7495 * ppcnbsd-nat.c (getregs_supplies): Same.
7496 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
7497 * rs6000-nat.c (fetch_core_registers): Same.
7498 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
7499
450bd37b
MS
75002004-05-07 Michael Snyder <msnyder@redhat.com>
7501
7502 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
7503 LOC_COMPUTED_ARG, and LOC_INDIRECT.
7504
4a72a2a6
AC
75052004-05-13 Andrew Cagney <cagney@redhat.com>
7506
7507 * infrun.c (handle_inferior_event): Use frame_unwind_id.
7508
8edfa926
BM
75092004-05-13 Bryce McKinlay <mckinlay@redhat.com>
7510
7511 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
7512 base_address for shared libraries.
7513
723e0e3d
BM
75142004-05-13 Bryce McKinlay <mckinlay@redhat.com>
7515
7516 * MAINTAINERS (write after approval): Add myself.
7517
00d4360e
UW
75182004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
7519
7520 * breakpoint.c (bpstat_stop_status): Add new argument
7521 STOPPED_BY_WATCHPOINT. Use it instead of testing
7522 target_stopped_data_address agaist 0 to check whether
7523 or not we stopped due to a hardware watchpoint.
7524 * breakpoint.h (bpstat_stop_status): Adapt prototype.
7525 * infrun.c (handle_inferior_event): Call bpstat_stop_status
7526 with new argument.
7527
ec76baa5
JB
75282004-05-12 Jim Blandy <jimb@redhat.com>
7529
7530 * configure.in: When checking whether we should use the -bbigtoc
7531 option, don't forget to restore the original value of LDFLAGS.
7532 * configure: Regenerated.
7533
f2c9ca08
AC
75342004-05-12 Andrew Cagney <cagney@redhat.com>
7535
7536 * thread.c (load_infrun_state): Delete step_sp.
7537 * infrun.c (context_switch): Ditto.
7538 * inferior.h (step_sp): Ditto.
7539 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
7540 * gdbthread.h (struct thread_info, save_infrun_state)
7541 (restore_infrun_state): Ditto.
7542
090ddb2a
UW
75432004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
7544
7545 * MAINTAINERS (write after approval): Add myself.
7546
8aad930b
AC
75472004-05-12 Andrew Cagney <cagney@redhat.com>
7548
7549 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
7550 eliminate reference to step_sp.
7551 (struct execution_control_state, init_execution_control_state)
7552 (handle_inferior_event, keep_going): Delete update_step_sp and
7553 step_sp.
7554 * infcmd.c (step_sp): Note that variable is unused.
7555
922d5ae0
AC
75562004-05-11 Andrew Cagney <cagney@redhat.com>
7557
7558 * infrun.c (step_over_function): Delete function.
7559 (handle_step_into_function): Use insert_step_resume_breakpoint.
7560 (insert_step_resume_breakpoint): Fix assertion.
7561
017c5ca5
NR
75622004-05-11 Nick Roberts <nickrob@gnu.org>
7563
7564 * utils.c (defaulted_query): Just use the normal query input type
7565 when printing the annotations.
7566
42edda50
AC
75672004-05-11 Andrew Cagney <cagney@redhat.com>
7568
7569 * infrun.c (handle_inferior_event): Simplify code handling
7570 step-into or return-from a signal trampoline.
7571
d28b44a7
AC
75722004-05-11 Andrew Cagney <cagney@redhat.com>
7573
7574 * ppcnbsd-tdep.c: Include "gdb_assert.h".
7575 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
7576
383f0f5b
JB
75772004-05-10 Jim Blandy <jimb@redhat.com>
7578
d0b57c3a
JB
7579 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
7580 with a call to internal_error.
7581
383f0f5b
JB
7582 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
7583 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
7584 processor variant lacks those registers.
7585 (ppc_floating_point_unit_p): Change description to make it clear
7586 that this returns info about the ISA, not the ABI.
7587 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
7588 return true or false by checking tdep->ppc_fp0_regnum and
7589 tdep->ppc_fpscr_regnum. The original code replicated the BFD
7590 arch/mach switching done in rs6000_gdbarch_init; it's better to
7591 keep that logic there, and just check the results here.
7592 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
7593 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
7594 floating-point registers.
7595 (ppc_supply_fpregset, ppc_collect_fpregset)
7596 (rs6000_push_dummy_call, rs6000_extract_return_value)
7597 (rs6000_store_return_value): Assert that we have floating-point
7598 registers.
7599 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
7600 (rs6000_frame_cache): Don't note the locations at which
7601 floating-point registers were saved if we have no fprs.
7602 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
7603 registers.
7604 (fetch_regs_user_thread, fetch_regs_kernel_thread)
7605 (store_regs_user_thread, store_regs_kernel_thread): Only call
7606 supply_fprs / fill_fprs if we actually have floating-point
7607 registers.
7608 (special_register_p): Check ppc_fpscr_regnum before matching
7609 against it.
7610 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
7611 supply / collect fpscr if we don't have it.
7612 * ppc-bdm.c: #include "gdb_assert.h".
7613 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
7614 have floating-point registers, since I can't test this code on
7615 FP-free systems to adapt it.
7616 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
7617 fpscr and floating point register numbers if they don't exist.
7618 (fetch_register): Assert that we have floating-point registers
7619 before we reach the code that handles them.
7620 (store_register): Same. And use tdep instead of calling
7621 gdbarch_tdep again.
7622 (fill_fpregset): Don't try to collect FP registers and fpscr if we
7623 don't have them.
7624 (ppc_linux_sigtramp_cache): Don't record the saved locations of
7625 fprs and fpscr if we don't have them.
7626 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
7627 don't have them.
7628 * ppcnbsd-nat.c: #include "gdb_assert.h".
7629 (getfpregs_supplies): Assert that we have floating-point registers.
7630 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
7631 * ppcobsd-tdep.c: #include "gdb_assert.h".
7632 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
7633 have floating-point registers.
7634 * rs6000-nat.c (regmap): Don't match against the fpscr and
7635 floating point register numbers if they don't exist.
7636 (fetch_inferior_registers, store_inferior_registers,
7637 fetch_core_registers): Only fetch / store / supply the
7638 floating-point registers and the fpscr if we have them.
7639 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
7640 (ppcobsd-tdep.o): Update dependencies.
7641
15960608
AC
76422004-05-10 Andrew Cagney <cagney@redhat.com>
7643
7644 * infrun.c (through_sigtramp_breakpoint): Delete variable.
7645 (context_switch): Do not switch through_sigtramp_breakpoint.
7646 * gdbthread.h (save_infrun_state, load_infrun_state)
7647 (struct thread_info): Delete through_sigtramp_breakpoint parameter
7648 and structure member.
7649 * thread.c (load_infrun_state, save_infrun_state): Update.
7650
5ab5aa0f
MK
76512004-05-10 Mark Kettenis <kettenis@gnu.org>
7652
7653 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
7654
da78b0e7
DJ
76552004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
7656
7657 * acinclude.m4: Quote macro names being defined by AC_DEFUN
7658 throughout.
7659 * aclocal.m4: Regenerate.
7660
cca0d3b0
NW
76612004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
7662
7663 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
7664
d303a6c7
AC
76652004-05-10 Andrew Cagney <cagney@redhat.com>
7666
7667 * infrun.c (check_sigtramp2): Delete function.
7668 (handle_inferior_event): When single stepping, and taking a
7669 signal, set a breakpoint at the signal return address. Delete
7670 redundant calls to check_sigtramp2.
7671 (insert_step_resume_breakpoint): New function.
7672 (through_sigtramp_breakpoint, handle_inferior_event)
7673 (follow_exec, wait_for_inferior, fetch_inferior_event)
7674 (currently_stepping, keep_going): Delete most uses of
7675 through_sigtramp_breakpoint, not that it should be deleted.
7676 (delete_breakpoint_current_contents): Delete function.
7677
03f4cc20
RC
76782004-05-10 Randolph Chung <tausq@debian.org>
7679
7680 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
7681 target.
7682 * config/pa/tm-linux.h: New file.
7683
37fc812e
DJ
76842004-05-10 Daniel Jacobowitz <drow@mvista.com>
7685
7686 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
7687 of prefixes. Don't print the prefix twice in the CLI.
7688
26c0b942
JB
76892004-05-10 Jim Blandy <jimb@redhat.com>
7690
2e56e9c1
JB
7691 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
7692 collect all the gprs.
7693
26c0b942
JB
7694 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
7695 loop collecting gprs.
7696
dc497459
AC
76972004-05-09 Andrew Cagney <cagney@redhat.com>
7698
7699 * remote-vx.c (net_step): Delete step-range code.
7700 * remote.c (remote_resume, init_all_packet_configs)
7701 (set_remote_protocol_E_packet_cmd)
7702 (show_remote_protocol_E_packet_cmd)
7703 (remote_protocol_E, show_remote_cmd, _initialize_remote)
7704 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
7705 (show_remote_protocol_e_packet_cmd): Ditto.
7706
0543f387
MK
77072004-05-09 Mark Kettenis <kettenis@gnu.org>
7708
c481d1ca
MK
7709 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
7710
f626a069
MK
7711 * hppa-tdep.h: Update copyright year.
7712 (struct trad_frame_saved_reg): Add opaque declaration.
7713
6fa57a7d
MK
7714 * amd64-tdep.c (amd64_return_value): Implement
7715 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7716
e47577ab
MK
7717 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
7718 (m68k_value_to_register): New functions.
7719 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
7720 value_to_register.
7721
31db7b6c
MK
7722 * defs.h (enum return_value_convention): Add
7723 RETURN_VALUE_ABI_RETURNS_ADDRESS and
7724 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
7725 * infcmd.c (legacy_return_value): New function.
7726 (print_return_value): Rwerite to implement
7727 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7728 * values.c (using_struct_return): Check for inequality to
7729 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
7730 RETURN_VALUE_STRUCT_CONVENTION.
7731 * i386-tdep.c (i386_return_value): Implement
7732 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7733
0543f387
MK
7734 * vax-tdep.c: Tweak comments. Reorder include files. Don't
7735 include "symtab.h", "opcode/vax.h" and "inferior.h".
7736 (vax_skip_prologue): Replace calls to read_memory_integer by calls
7737 to read_memory_unsigned_integer.
7738 (vax_gdbarch_init): Reorder.
7739 (_initialize_vax_tdep): Spell out prototype.
7740 * Makefile.in (vax-tdep.o): Update dependencies.
7741
0c93b7b6
AC
77422004-05-08 Andrew Cagney <cagney@redhat.com>
7743
e6b55ae2
AC
7744 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
7745 * target.c (target_detach, target_disconnect): Ditto.
7746
1ac839b8
AC
7747 * infcall.c (call_function_by_hand): When no
7748 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
7749 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
7750 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
7751 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7752 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7753
28954179
AC
7754 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
7755 * gdbarch.h, gdbarch.c: Re-generate.
7756 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7757 deprecated_fix_call_dummy.
7758 * v850-tdep.c (v850_gdbarch_init): Ditto.
7759 * infcall.c (call_function_by_hand): Do not call
7760 DEPRECATED_FIX_CALL_DUMMY.
7761
434b87dd
AC
7762 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
7763 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
7764 * gdbarch.h, gdbarch.c: Re-generate.
7765 * arm-linux-tdep.c (arm_linux_call_dummy_words)
7766 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
7767 deprecated_sizeof_call_dummy_words.
7768 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
7769 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7770 * v850-tdep.c (v850_gdbarch_init): Ditto.
7771 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
7772 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
7773 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7774 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7775 * arch-utils.h (legacy_call_dummy_words)
7776 (legacy_sizeof_call_dummy_words): Delete declarations.
7777 * arch-utils.c (legacy_call_dummy_words)
7778 (legacy_sizeof_call_dummy_words): Delete variables.
7779
58d28df8
AC
7780 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
7781 * gdbarch.h, gdbarch.c: Re-generate.
7782 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
7783 * infcall.c (call_function_by_hand): Eliminate call to
7784 DEPRECATED_PUSH_DUMMY_FRAME.
7785 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
7786 push_dummy_frame.
7787 (ns32k_push_dummy_frame): Delete function.
7788
e4a2df64
AC
7789 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7790 deprecated_call_dummy_breakpoint_offset or
7791 deprecated_call_dummy_start_offset.
7792 * dummy-frame.c, arm-tdep.c: Update comments.
7793 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
7794 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
7795 * gdbarch.h, gdbarch.c: Re-generate.
7796
d3712828
AC
7797 * infcall.c (legacy_push_dummy_code): Delete function.
7798 (push_dummy_code): Delete call.
7799
7a882905
AC
7800 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
7801 * gdbarch.h, gdbarch.c: Re-generate.
7802 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
7803 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
7804 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
7805 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
7806
0ec5872b
AC
7807 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
7808 (struct frame_info): Delete opaque declaration.
7809 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
7810 * frame.c (get_frame_type): Delete call.
7811
0c93b7b6
AC
7812 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
7813 pc_in_call_dummy.
7814 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
7815 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
7816
75536971
MK
78172004-05-08 Mark Kettenis <kettenis@gnu.org>
7818
527ca6bb
MK
7819 * alphanbsd-tdep.c: Include "gdb_string.h".
7820 * armnbsd-tdep.c: Update copyright year.
7821 Include "gdb_string.h".
7822 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
7823 dependencies.
7824
d39fdc61
MK
7825 * delta68-nat.c: Remove file.
7826 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
7827 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
7828 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
7829 (delta68-nat.o): Remove dependency.
7830
75536971
MK
7831 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
7832 function.
7833 (m68k_gdbarch_init): Don't set
7834 deprecated_frameless_function_invocation.
7835
f4ca1d1f
RC
78362004-05-07 Randolph Chung <tausq@debian.org>
7837
7838 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
7839 read_memory_nobpt for code reading when doing frame unwinding.
7840 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
7841
2f0e8c7a
RC
78422004-05-07 Randolph Chung <tausq@debian.org>
7843
7844 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
7845 instead of sp, handle sigaltstack case.
7846 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
7847 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
7848 signal handler and not that of the caller.
7849 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
7850 hppa_linux_sigtramp_find_sigcontext.
7851
959464ff
RC
78522004-05-07 Randolph Chung <tausq@debian.org>
7853
7854 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
7855 hppa-linux-nat.c.
7856 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
7857 * hppa-linux-nat.c (fetch_register, store_register): Define.
7858 (fetch_inferior_registers, store_inferior_registers): Define.
7859 (supply_gregset): Add comment and clean up some unneeded code.
7860 (fill_gregset): Add comment and fix so that it saves registers in
7861 the right place in the gregset.
7862 (fill_fpregset): Fix buffer overrun problem.
7863 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
7864
0da28f8a
RC
78652004-05-07 Randolph Chung <tausq@debian.org>
7866
7867 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
7868 do common handling of the pcoqt register.
7869 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
7870 to use helper function.
7871 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
7872 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
7873 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
7874 generic fallback unwinder when all else fails.
7875 (hppa_gdbarch_init): Add fallback sniffer.
7876 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
7877 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
7878 to use helper function.
7879
b9ec757a
JB
78802004-05-08 Joel Brobecker <brobecker@gnat.com>
7881
7882 * config/djgpp/fnchange.lst: Add translation rules for
7883 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
7884
756e95f1
MK
78852004-05-08 Mark Kettenis <kettenis@gnu.org>
7886
7887 * frame.c (get_prev_frame_1): Work around GCC bug.
7888 * frame.h: Add comment about GCC bug.
7889
2b4855ab
AC
78902004-05-07 Andrew Cagney <cagney@redhat.com>
7891
7892 * observer.c: Include "commands.h" and "gdbcmd.h".
7893 (observer_debug, _initialize_observer): Add the
7894 command "set/show debug observer".
7895 * observer.sh: When observer debugging, log notify calls.
7896 * Makefile.in (observer.o): Update dependencies.
7897
ba3e8e46
JM
78982004-05-07 Jason Molenda (jmolenda@apple.com)
7899
7900 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
7901
16796152
JB
79022004-05-07 Jim Blandy <jimb@redhat.com>
7903
daf6dc85
JB
7904 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
7905 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
7906 to recognize gpr regnums, instead of assuming that
7907 tdep->ppc_fp0_regnum marks the end of the general-purpose
7908 registers.
7909
16796152
JB
7910 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
7911 the given architecture has floating-point registers.
7912
c69b8bfc
AC
79132004-05-07 Andrew Cagney <cagney@redhat.com>
7914
7915 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
7916 macro defined to 1.
7917 * gdbarch.h, gdbarch.c: Re-generate.
7918 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7919 deprecated_use_generic_dummy_frames.
7920
7243600a
BF
79212004-05-07 Brian Ford <ford@vss.fsi.com>
7922
7923 * NEWS: Mention Cygwin DWARF 2 support.
7924
73c1e0a1
AC
79252004-05-07 Andrew Cagney <cagney@redhat.com>
7926
7927 * objfiles.h (struct entry_info): Delete unused fields
7928 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
7929 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
7930 * mipsread.c (mipscoff_symfile_read): Update.
7931 * mdebugread.c (parse_partial_symbols): Update.
7932 * dwarfread.c (read_file_scope): Update.
7933 * dwarf2read.c (read_file_scope): Update.
7934 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
7935 * coffread.c (complete_symtab): Update.
7936
1d3056ac
MK
79372004-05-07 Mark Kettenis <kettenis@gnu.org>
7938
7939 * infcall.c (_initialize_infcall): Fix typo.
7940
15170568
AC
79412004-05-07 Andrew Cagney <cagney@redhat.com>
7942
7943 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
7944 * command.h (add_setshow_zinteger_cmd): Declare.
7945
34f75cc1
RC
79462004-05-06 Randolph Chung <tausq@debian.org>
7947
7948 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
7949 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
7950 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
7951 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
7952 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
7953 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
7954 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
7955 definitions ...
7956 * hppa-tdep.h: ... to here, with HPPA_ prefix.
7957 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
7958 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
7959 (hppa64_hpux_frame_find_saved_regs_in_sig)
7960 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
7961 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
7962 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
7963 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
7964 (hppa_linux_sigtramp_frame_prev_register): Likewise.
7965 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
7966 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
7967 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
7968 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
7969 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
7970 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
7971 (hppa32_register_type, hppa_cannot_store_register)
7972 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
7973 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
7974 * hpread.c (hpread_process_one_debug_symbol): Likewise.
7975 * pa64solib.c (pa64_solib_have_load_event)
7976 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
7977 (pa64_solib_unloaded_library_pathname): Likewise.
7978 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
7979 (som_solib_library_pathname): Likewise.
7980
0a5e7efe
JI
79812004-05-05 Jim Ingham <jingham@apple.com>
7982
7983 * breakpoint.c (create_breakpoints): Copy the ignore count and
7984 thread id over from the pended breakpoint to the actual
7985 breakpoint.
7986
10a4b113
AC
79872004-05-05 Andrew Cagney <cagney@redhat.com>
7988
7989 * gdbarch.sh (PARM_BOUNDARY): Delete.
7990 gdbarch.h, gdbarch.c: Re-generate.
7991 * valops.c (PARM_BOUNDARY): Delete macro.
7992 (value_push): Delete PARM_BOUNDARY code.
7993 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
7994
366f009f
JB
79952004-05-04 Jim Blandy <jimb@redhat.com>
7996
32b99774
JB
7997 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
7998 Don't assume that the gprs, fprs, and UISA sprs are
7999 contiguous, start at register number zero, and end with fpscr.
8000 Instead, use the numbers from the tdep structure.
8001
366f009f
JB
8002 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
8003 should no longer be used in code specific to the RS6000 and its
8004 derivatives.
8005 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
8006 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
8007 tdep->ppc_fp0_regnum.
8008 (ppc_supply_fpregset, ppc_collect_fpregset)
8009 (rs6000_push_dummy_call, rs6000_extract_return_value)
8010 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
8011 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
8012 FP0_REGNUM.
8013 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
8014 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
8015 Same.
8016 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
8017 bdm_ppc_store_registers): Same.
8018 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
8019 (store_register, fill_fpregset): Same.
8020 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
8021 (ppc_linux_supply_fpregset): Same.
8022 * ppcnbsd-nat.c (getfpregs_supplies): Same.
8023 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
8024 Same.
8025 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
8026 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
8027 ppc64_sysv_abi_return_value): Same.
8028 * rs6000-nat.c (regmap, fetch_inferior_registers)
8029 (store_inferior_registers, fetch_core_registers): Same.
8030
827f338d
MK
80312004-05-01 Mark Kettenis <kettenis@gnu.org>
8032
8033 * m68knbsd-nat.c: Remove file.
8034 * m68knbsd-tdep.c: Remove file.
8035 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
8036 dependencies.
8037 * configure.host: Add m68k-*-netbsdelf*.
8038 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
8039 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
8040 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
8041 (XM_FILE): Remove.
8042 * config/m68k/nbsdelf.mh: New file.
8043 * config/m68k/nbsd.mt: New file.
8044 * config/m68k/nbsdaout.mt: Remove file.
8045 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
8046 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
8047 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
8048 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
8049 (use_struct_convention): Remove prototype.
8050 (USE_STRUCT_CONVENTION): Remove define.
8051 * config/m68k/xm-nbsd.h: Remove file.
8052
66894781
MS
80532004-05-04 Michael Snyder <msnyder@redhat.com>
8054
8055 * m68k-tdep.c (m68k_gdbarch_init): Default to using
8056 reg_struct_return method (as gcc usually does for cross targets).
8057
f0f63663
AC
80582004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8059
8060 Committed by Andrew Cagney.
8061 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
8062 alignment padding when accessing ucontext struct members.
8063
edf61169
JB
80642004-05-04 Jim Blandy <jimb@redhat.com>
8065
8bf659e8
JB
8066 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
8067 'ppc_gplast_regnum' member.
8068 (ppc_num_gprs): New enum constant.
8069 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
8070 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
8071 * rs6000-nat.c (regmap, fetch_inferior_registers,
8072 store_inferior_registers): Same.
8073 * rs6000-tdep.c (e500_pseudo_register_read)
8074 (e500_pseudo_register_write): Same.
8075 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
8076
b967e06f
JB
8077 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
8078 * ppc-tdep.h (ppc_num_fprs): New enum constant.
8079 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
8080 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
8081 FPLAST_REGNUM.
8082 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8083 Same.
8084 * ppc-linux-nat.c (ppc_register_u_addr): Same.
8085 * rs6000-nat.c (regmap, fetch_inferior_registers)
8086 (store_inferior_registers): Same.
8087
edf61169
JB
8088 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
8089 with FPLAST_REGNUM.
8090
58a9656e
JB
80912004-05-03 Joel Brobecker <brobecker@gnat.com>
8092
8093 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
8094 failure detected by recent versions of GCC.
8095 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
8096 to be consistent with the usage in dwarf2_create_include_psymtab.
8097
dc305454
MS
80982004-05-03 Michael Snyder <msnyder@redhat.com>
8099
8100 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
8101 (heuristic_proc_start): Whitespace cleanup.
8102
29972665
MK
81032004-05-04 Mark Kettenis <kettenis@gnu.org>
8104
6b57680d
MK
8105 * sun3-nat.c: Remove file.
8106 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
8107 dependencies.
8108 (ALLDEPFILES): Remove sun3-nat.c.
8109 (sun3-nat.o): Remove dependencies.
8110
29972665
MK
8111 * i386-interix-nat.c, i386-interix-tdep.c,
8112 config/i386/nm-interix.h, config/i386/interix.mh,
8113 config/i386/interix.mt: Remove files.
8114 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
8115 dependencies.
8116
f595cb19
MK
81172004-05-03 Mark Kettenis <kettenis@gnu.org>
8118
8119 * m68k-tdep.h (struct gdbarch_tdep): Add member
8120 struct_value_regnum.
8121 (m68k_svr4_init_abi): New prototype.
8122 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
8123 different calling conventions.
8124 (m68k_extract_return_value): Remove code dealing with single-field
8125 structs.
8126 (m68k_store_return_value): Remove code dealing with single-field
8127 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
8128 (m68k_extract_struct_value_address): Remove function.
8129 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
8130 (m68k_reg_struct_return_p, m68k_return_value)
8131 (m68k_svr4_return_value): New functions.
8132 (m68k_use_struct_convention): Remove function.
8133 (m68k_push_dummy_call): Use new struct_value_regnum member of
8134 `struct gdbarch_tdep' instead of hardcoded register number to
8135 store STRUCT_ADDR.
8136 (m68k_svr4_init_abi): New function.
8137 (m68k_gdbarch_init): Don't set extract_return_value,
8138 store_return_values, deprecated_extract_struct_value_address and
8139 use_struct_convention. Set return_value instead. Initialize new
8140 struct_value_regnum member of `struct gdbarch_tdep'.
8141 * m68klinux-tdep.c: Update copyright year.
8142 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
8143 (m68k_linux_extract_struct_value_address): Remove function.
8144 (m68k_linux_init_abi): Don't set extract_return_value,
8145 store_return_values, deprecated_extract_struct_value_address and
8146 use_struct_convention. Call m68k_svr4_init_abi but override the
8147 new struct_value_regnum member of `struct gdbarch_tdep'.
8148 * Makefile.in (m68k-tdep.o): Update dependencies.
8149
aaa75496
JB
81502004-05-03 J. Brobecker <brobecker@gnat.com>
8151
8152 * dwarf2read.c (line_header): Add new included_p field in
8153 field file_names.
8154 (partial_die_info): New field has_stmt_list. New field line_offset.
8155 (dwarf2_create_include_psymtab): New function.
8156 (dwarf2_build_include_psymtabs): New function.
8157 (add_file_name): Add forward declaration. Initialize new field.
8158 (dwarf_decode_lines): Add new parameter. Enhance this procedure
8159 to be able to determine the list of files included by the
8160 given unit, and build their associated psymtabs.
8161 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
8162 files as well.
8163 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
8164 (read_file_scope): Update call to dwarf_decode_lines.
8165 (read_partial_die): Handle DW_AT_stmt_list attributes.
8166
c848556f
MC
81672004-05-02 Michael Chastain <mec.gnu@mindspring.com>
8168
8169 Unfix PR gdb/1626.
8170 * configure.in: Revert special case for osf5.*.
8171 * configure: Regenerate.
8172
eb4556d7
JB
81732004-05-02 Jim Blandy <jimb@redhat.com>
8174
8175 Move the symbol-file-from-memory functions into their own file.
8176 * symfile-mem.c, symfile-mem.h: New files.
8177 * symfile.c (symbol_file_add_from_bfd): New function.
8178 (symbol_file_add): Call symbol_file_add_from_bfd.
8179 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
8180 Moved to symfile-mem.c.
8181 (_initialize_symfile): Move definition of
8182 add-symbol-file-from-memory command to symfile-mem.c.
8183 * symfile.h (symbol_file_add_from_bfd): New declaration.
8184 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
8185 * config/powerpc/linux.mt (TDEPFILES): Same.
8186 * Makefile.in (SFILES): Add symfile-mem.c.
8187 (symfile_mem_h): New variable.
8188 (HFILES_NO_SRCDIR): Add symfile-mem.h.
8189 (symfile-mem.o): New rule.
8190
80bb239e
AC
81912004-05-01 Andrew Cagney <cagney@redhat.com>
8192
7789d0fa
AC
8193 * breakpoint.c (insert_bp_location): Use get_frame_id, and
8194 frame_find_by_id instead of frame_relative_level.
8195 (do_enable_breakpoint): Ditto.
8196 * thread.c: Update copyright.
8197 (info_threads_command): Ditto, simplify.
8198
80bb239e
AC
8199 * frame.c (deprecated_generic_get_saved_register): Delete
8200 function, moved to "xstormy16-tdep.c".
8201 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
8202 deprecated_generic_get_saved_register from "frame.c".
8203 (xstormy16_frame_saved_register): Call
8204 xstormy16_get_saved_register.
8205 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
8206 static.
8207 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
8208 * frame.h (deprecated_generic_get_saved_register): Delete.
8209
b2a871dd
MC
82102004-05-01 Michael Chastain <mec.gnu@mindspring.com>
8211
8212 * dwarfread.c: Update documentation on the state of dwarf-1.
8213
0e100dab
AC
82142004-05-01 Andrew Cagney <cagney@redhat.com>
8215
acd8056e
AC
8216 * stack.c (select_frame_command): Delete call to
8217 frame_relative_level.
8218 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
8219 Delete #if0 code.
8220 (frame_info): Do not print FRAMELESS.
8221 (print_block_frame_labels): Replace DEPRECATED_STREQ.
8222 (catch_info): Delete #if0 code.
8223
0e100dab
AC
8224 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
8225 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
8226 of frame_relative_level.
8227 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
8228 to SENTINEL_FRAME.
8229 * frame.h (enum frame_type): Add SENTINEL_FRAME.
8230 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
8231 frame_relative_level.
8232
55699d59
AC
8233 * frame.h (deprecated_set_frame_type): Delete declaration.
8234 * frame.c (deprecated_set_frame_type): Delete function, update
8235 comments.
8236
fcf70625
AC
8237 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
8238 * gdbarch.h, gdbarch.c: Re-generate.
8239 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
8240 (shnbsd_pc_in_sigtramp): Delete.
8241 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
8242 pc_in_sigtramp.
8243 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
8244 pc_in_sigtramp.
8245 * frame.h: Update comments.
8246 * ppc-linux-tdep.c: Update comments.
8247 * breakpoint.c (bpstat_what): Update comments.
8248
ac5eccb7
AC
8249 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
8250 m68klinux-tdep.o's dependencies, were previously added to
8251 m68klinux-nat.o.
8252
f2524b93
AC
8253 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
8254 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
8255 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
8256 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
8257 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
8258
17e20bce
AC
8259 * Makefile.in (m68klinux-nat.o): Update dependencies.
8260 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8261 (m68k_linux_sigtramp_frame_cache)
8262 (m68k_linux_sigtramp_frame_this_id)
8263 (m68k_linux_sigtramp_frame_prev_register)
8264 (m68k_linux_sigtramp_frame_unwind)
8265 (m68k_linux_sigtramp_frame_sniffer)
8266 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
8267 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
8268 names, use trad-frame.h.
8269 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
8270 (struct m68k_sigtramp_info): Delete.
8271 * m68k-tdep.c (m68k_sigtramp_frame_cache)
8272 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
8273 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
8274 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
8275 "m68klinux-tdep.c".
8276
c8864fa2
AC
8277 * infrun.c (check_sigtramp2): Delete check for
8278 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
8279
511dd2cd
MK
82802004-05-01 Mark Kettenis <kettenis@gnu.org>
8281
8282 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
8283
8c6b0e06
AC
82842004-05-01 Andrew Cagney <cagney@redhat.com>
8285
9df0bb3f
AC
8286 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8287 (frv_linux_sigtramp_frame_cache)
8288 (frv_linux_sigtramp_frame_this_id)
8289 (frv_linux_sigtramp_frame_prev_register)
8290 (frv_linux_sigtramp_frame_unwind)
8291 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
8292 include "linux" in function and variable names, directly call
8293 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
8294 the latest trad-frame code.
8295 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
8296 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
8297 * Makefile.in (frv-linux-tdep.o): Update dependencies.
8298 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
8299 * frv-tdep.c (frv_sigtramp_frame_cache)
8300 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
8301 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
8302 frv-linux-tdep.c.
8303 (frv_gdbarch_init): Do not append a sigtramp sniffer.
8304 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
8305 (frv_set_sigcontext_reg_addr): Delete function.
8306
8c6b0e06
AC
8307 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
8308 (DEPRECATED_SIGTRAMP_END): Delete.
8309 * gdbarch.h, gdbarch.c: Re-generate.
8310 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
8311 * config/vax/tm-vaxbsd.h: Update copyright.
8312 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8313 (DEPRECATED_IN_SIGTRAMP): Define.
8314 * config/m68k/tm-nbsd.h: Update copyright.
8315 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8316 (DEPRECATED_IN_SIGTRAMP): Define.
8317
50ea7769
MK
83182004-05-01 Mark Kettenis <kettenis@gnu.org>
8319
03ac2a74
MK
8320 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
8321 encondings. Fixes PR gdb/1628.
8322
50ea7769
MK
8323 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
8324 DW_CFA_restore state without a matching DW_CFA_remember_state
8325 instead of aborting. Fixes PR backtrace/1589.
8326
9a5d7be1
JB
83272004-04-30 Joel Brobecker <brobecker@gnat.com>
8328
8329 * MAINTAINERS: Add self as AIX maintainer.
8330 Update my e-mail address in write-after-approval section.
8331
2593d1cd
AC
83322004-04-30 Andrew Cagney <cagney@redhat.com>
8333
ce12bbf9
AC
8334 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
8335 (legacy_get_prev_frame): Ditto.
8336
36710c63
AC
8337 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
8338 (mips_gdbarch_init): Do not set pc_in_sigtramp.
8339 * mipsread.c (sigtramp_address): Delete extern variable.
8340 (mipscoff_new_init): Delete reference.
8341 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
8342 (fixup_sigtramp): Delete function.
8343 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
8344 (fixup_sigtramp): Delete declarations.
8345
2593d1cd
AC
8346 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
8347 deprecated_pc_in_sigtramp.
8348 (ppcnbsd_pc_in_sigtramp): Delete function.
8349
2a25f91c
MK
83502004-05-01 Mark Kettenis <kettenis@gnu.org>
8351
8352 * config/m68k/nm-nbsd.h: Tweak comments.
8353 * config/m68k/nm-nbsdaout.h: Likewise.
8354
0b281939
AC
83552004-04-30 Andrew Cagney <cagney@redhat.com>
8356
8357 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
8358 legacy_pc_in_sigtramp.
8359 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
8360
8f2d3ea0
MK
83612004-05-01 Mark Kettenis <kettenis@gnu.org>
8362
8363 Add OpenBSD/m68k support.
8364 * NEWS (New native configurations): Mention OpenBSD/m68k.
8365 * m68kbsd-tdep.c: New file.
8366 * m68kbsd-nat.c: New file.
8367 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
8368 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
8369 * configure.host: Add m68k-*-openbsd.
8370 * configure.tgt: Add m68k-*-openbsd.
8371 * config/m68k/tm-obsd.h: New file.
8372 * config/m68k/obsd.mt: New file.
8373 * config/m68k/obsd.mh: New file.
8374 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
8375 m68kbsd-tdep.c.
8376
c40f49a4
AC
83772004-04-30 Andrew Cagney <cagney@redhat.com>
8378
8379 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
8380 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
8381
e81554cd
MK
83822004-04-30 Mark Kettenis <kettenis@gnu.org>
8383
8384 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
8385 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
8386
d4dc1a91
BF
83872004-04-30 Brian Ford <ford@vss.fsi.com>
8388
8389 Revert 2004-04-16 change.
8390 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
8391 (i386_coff_init_abi): Remove.
8392 * i386-tdep.h (i386_coff_init_abi): Remove.
8393 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
8394
2f72f850
AC
83952004-04-30 Andrew Cagney <cagney@redhat.com>
8396
e492f9d6
AC
8397 * blockframe.c (find_pc_partial_function): Delete use of
8398 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
8399 DEPRECATED_SIGTRAMP_END.
8400
7b7adad0
AC
8401 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
8402 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
8403 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
8404 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
8405 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
8406
2f72f850
AC
8407 * defs.h (deprecated_inside_entry_file): Delete declaration.
8408 * blockframe.c (deprecated_inside_entry_file): Delete function.
8409 (legacy_frame_chain_valid): Delete call.
8410 * sh64-tdep.c (sh64_frame_chain): Delete call.
8411 * objfiles.h: Update comments.
8412 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
8413 call.
8414 * frame.c (get_prev_frame): Delete call, update comments.
8415
283f90a7
BF
84162004-04-30 Brian Ford <ford@vss.fsi.com>
8417
8418 * MAINTAINERS (Write After Approval): Add myself.
8419
8ee56bcf
AC
84202004-04-30 Andrew Cagney <cagney@redhat.com>
8421
8422 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
8423 * gdbarch.h, gdbarch.c: Re-generate.
8424 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
8425 code.
8426
ee27e1b6
AC
84272004-04-30 Andrew Cagney <cagney@redhat.com>
8428
8429 * gdb-events.sh (selected_thread_changed)
8430 (selected_frame_level_changed, target_changed): Delete.
8431 * gdb-events.h, gdb-events.c: Re-generate.
8432 * valops.c (value_assign): Update.
8433 * stack.c (select_frame_command, up_silently_base)
8434 (down_silently_base): Update.
8435
d5ac5a39
AC
84362004-04-29 Andrew Cagney <cagney@redhat.com>
8437
8438 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
8439 registers correctly.
8440 (print_gp_register_row, mips32_heuristic_proc_desc)
8441 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
8442 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
8443 references to mips_isa_regsize.
8444
ceae6e75
AC
84452004-04-29 Andrew Cagney <cagney@redhat.com>
8446
8447 * mips-tdep.c (struct gdbarch_tdep): Delete
8448 mips_fp_register_double.
8449 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
8450 mips_abi_regsize.
8451 (mips_gdbarch_init): Do not set mips_fp_register_double.
8452 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
8453
a587af0b
AC
84542004-04-29 Joel Brobecker <brobecker@gnat.com>
8455
8456 Committed by Andrew Cagney.
8457 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
8458 function calls.
8459
13326b4e
AC
84602004-04-29 Andrew Cagney <cagney@redhat.com>
8461
8462 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
8463 gdbarch, use mips_abi, update callers.
8464 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
8465 mips_abi_regsize, update callers.
8466 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
8467 mips_default_abi_regsize.
8468 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
8469 mips_default_abi_regsize.
8470
711cc5cd
AC
84712004-04-29 Andrew Cagney <cagney@redhat.com>
8472
1b13c4f6
AC
8473 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
8474 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
8475 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
8476 mips_default_abi_regsize.
8477 (mips_isa_regsize): Rename mips_regisze.
8478 * mipsnbsd-tdep.c: Update.
8479 * mips-linux-tdep.c: Update.
8480 * irix5-nat.c: Update.
8481 * mips-tdep.h (mips_isa_regsize): Update.
8482
711cc5cd
AC
8483 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
8484 Delete all disabled code.
8485 * gdb-events.h, gdb-events.c: Re-generate.
8486
e63bbc88
MK
84872004-04-19 Jerome Guitton <guitton@gnat.com>
8488 Mark Kettenis <kettenis@gnu.org>
8489
8490 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
8491 the function begins with a branch instruction.
8492
fd35795f
MK
84932004-04-29 Mark Kettenis <kettenis@gnu.org>
8494
8495 * i386-tdep.c: Fix spelling mistakes.
8496
c960c18f
AC
84972004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8498 Andrew Cagney <cagney@redhat.com>
8499
8500 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
8501 <sys/proc.h>.
8502 * acconfig.h: Provide default _KMEMUSER value.
8503 * config.in, configure: Re-generate.
8504 * NEWS: Mention fix.
8505
50306a9d
RC
85062004-04-24 Randolph Chung <tausq@debian.org>
8507
8508 * configure.host (hppa*-*-linux*): New target.
8509 * configure.tgt (hppa*-*-linux*): Likewise.
8510 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
8511 gdbarch_init_osabi() call earlier so that osabi-specific frame
8512 unwinders can be registered first.
8513 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
8514 hppa-linux-nat.c.
8515 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
8516 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
8517 * config/pa/linux.mh: New file.
8518 * config/pa/linux.mt: New file.
8519 * config/pa/nm-linux.h: New file.
8520 * config/pa/xm-linux.h: New file.
8521 * hppa-linux-nat.c: New file.
8522 * hppa-linux-tdep.c: New file.
8523
2a6228ef
RC
85242004-04-28 Randolph Chung <tausq@debian.org>
8525
8526 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
8527 return values.
8528 (hppa32_push_dummy_call): Fix small struct and floating point argument
8529 passing, and make sure the stack frame is properly aligned.
8530
82c10df6
AC
85312004-04-28 Andrew Cagney <cagney@redhat.com>
8532
d762c46a
AC
8533 * stack.c (print_stack_frame): Fix description.
8534
82c10df6
AC
8535 * NEWS: Mention gdb/gdbserver/configure execute permission
8536 changed. PR server/519.
8537
0faf0076
AC
85382004-04-28 Andrew Cagney <cagney@redhat.com>
8539
8540 * stack.c (print_stack_frame_stub): Delete declaration.
8541 (struct print_stack_frame_args, print_stack_frame)
8542 (print_frame_info, print_frame): Replace "source" with print what.
8543 Replace "print" with "print_level". Replace "args" with
8544 "print_args".
8545 * frame.h (show_and_print_stack_frame, print_stack_frame)
8546 (print_frame_info): Update declarations.
8547 * stack.c (select_and_print_frame, frame_command)
8548 (current_frame_command, up_command, down_command): Update calls -
8549 use get_selected_frame, pass "enum print_what" for source, do not
8550 call frame_relative_level.
8551 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
8552 * remote-rdp.c (remote_rdp_open): Ditto.
8553 * remote-mips.c (common_open): Ditto.
8554 * remote-e7000.c (e7000_start_remote): Ditto.
8555 * ocd.c (ocd_start_remote): Ditto.
8556 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
8557 * infrun.c (normal_stop): Ditto.
8558 * inflow.c (kill_command): Ditto.
8559 * infcmd.c (finish_command): Ditto.
8560 * corelow.c (core_open): Ditto.
8561 * tracepoint.c (finish_tfind_command): Ditto.
8562 * thread.c (info_threads_command, info_threads_command)
8563 (restore_current_thread, do_captured_thread_select): Ditto.
8564 * ada-tasks.c (task_command): Ditto.
8565
f4c5303c
OF
85662004-04-26 Orjan Friberg <orjanf@axis.com>
8567
8568 * frame.c: Include "observer.h".
8569 (frame_observer_target_changed): New function.
8570 (_initialize_frame): Attach target_changed observer.
8571 * regcache.c: Include "observer.h".
8572 (regcache_observer_target_changed): New function.
8573 (_initialize_regcache): Attach target_changed observer.
8574 * valops.c: Include "observer.h".
8575 (value_assign): Notify target_changed event when modifying register.
8576 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
8577
7270d8f2
OF
85782004-04-26 Orjan Friberg <orjanf@axis.com>
8579
8580 From Paul Koning <pkoning@equallogic.com>:
8581 * breakpoint.c (free_valchain): New function.
8582 (insert_bp_location, delete_breakpoint): Use free_valchain.
8583 (remove_breakpoint): Do not remove the valchain.
8584 (bpstat_stop_status): If not stopped by watchpoint, skip
8585 watchpoints when generating stop status list.
8586 * infrun.c (handle_inferior_event): Make
8587 stepped_after_stopped_by_watchpoint a global variable.
8588 * remote.c (remote_stopped_data_address): Return watch data
8589 address rather than zero if stepped_after_stopped_by_watchpoint is
8590 set.
8591
02d62932
MC
85922004-04-25 Michael Chastain <mec.gnu@mindspring.com>
8593
8594 Fix PR gdb/1626.
8595 * configure.in: Check for curses after termcap.
8596 On osf5.*, do not check for ncurses.
8597 * configure: Regenerate.
8598
3e9a183c
MK
85992004-04-25 Mark Kettenis <kettenis@gnu.org>
8600
c79ac407
MK
8601 * ppcobsd-nat.c: Include "ppc-tdep.h".
8602 * Makefile.in (ppcobsd-nat.o): Update dependencies.
8603
3e9a183c
MK
8604 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
8605 Fixes PR tdep/1623 and PR tdep/1624.
8606
38cc9c28
MC
86072004-04-24 Michael Chastain <mec.gnu@mindspring.com>
8608
8609 * xmodem.h, xmodem.c: Remove files.
8610 * Makefile.in: Remove references to xmodem.h, xmodem.c.
8611
7f07c5b6
RC
86122004-04-23 Randolph Chung <tausq@debian.org>
8613
8614 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
8615 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
8616 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
8617 for handling stackless frames.
8618 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
8619
9f7194c3
RC
86202004-04-23 Randolph Chung <tausq@debian.org>
8621
8622 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
8623 starts at a pc before the frame is created.
8624
dcff6009
JB
86252004-04-23 Joel Brobecker <brobecker@gnat.com>
8626
8627 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
8628
40711ff1 86292004-04-23 Jerome Guitton <guitton@gnat.com>
65951cd9
JG
8630
8631 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
8632 use convert_typed_floating to get the appropriate format.
8633
abc485a1
RC
86342004-04-22 Randolph Chung <tausq@debian.org>
8635
8636 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
8637 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
8638 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
8639 (hppa_sign_extend): Add prototype.
8640 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
8641 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
8642 (sign_extend): Rename with hppa_ prefix and make non-static. Other
8643 hppa targets will also use these functions.
8644 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
8645 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
8646 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
8647 (hppa_gdbarch_init): Remove gdbarch setting of
8648 skip_trampoline_code, in_solib_call_trampoline and
8649 in_solib_return_trampoline.
8650 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
8651 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
8652 hppa_in_solib_call_trampoline.
8653 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
8654 Moved from hppa-tdep.c.
8655 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
8656 in_solib_call_trampoline and in_solib_return_trampoline.
8657
369aa520
RC
86582004-04-22 Randolph Chung <tausq@debian.org>
8659
8660 * hppa-tdep.c (hppa_debug): New variable.
8661 (find_unwind_entry, hppa_frame_cache): Add debug output.
8662 (_initialize_hppa_tdep): Add command to set debug flag.
8663
476be15e
AC
86642004-04-22 Andrew Cagney <cagney@redhat.com>
8665
8666 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
8667 "trad-frame.h".
8668 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
8669 signal trampoline unwinder.
8670 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
8671
d195bc9f
MK
86722004-04-22 Mark Kettenis <kettenis@gnu.org>
8673
8674 Add OpenBSD/powerpc support.
8675 * NEWS (New native configurations): Mention OpenBSD/powerpc.
8676 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
8677 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
8678 (ppc_collect_fpregset): New prototypes.
8679 * ppcobsd-nat.c: New file.
8680 * ppcobsd-tdep.c: New file.
8681 * ppcobsd-tdep.h: New file.
8682 * rs6000-tdep.c: Include "regset.h".
8683 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
8684 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
8685 New functions.
8686 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
8687 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
8688 (rs6000-tdep.o): Update dependencies.
8689 * configure.host: Add powerpc-*-openbsd.
8690 * configure.tgt: Add powerpc-*-openbsd.
8691 * config/powerpc/obsd.mh: New file.
8692 * config/powerpc/nm-obsd.h: New file.
8693 * config/powerpc/obsd.mt: New file.
8694
6f14cc33
AC
86952004-04-22 Andrew Cagney <cagney@redhat.com>
8696
fcf29e5f
AC
8697 * frame.h (show_frame_info): Delete declaration.
8698
6f14cc33
AC
8699 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
8700 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
8701 * m32r-tdep.c (m32r_frame_this_id): Ditto.
8702 * frv-tdep.c (frv_frame_this_id): Ditto.
8703 * avr-tdep.c (avr_frame_this_id): Ditto.
8704
e5786a5c
EZ
87052004-04-22 Elena Zannoni <ezannoni@redhat.com>
8706
8707 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
8708
26e75e5c
JB
87092004-04-22 Jim Blandy <jimb@redhat.com>
8710
8711 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
8712 register number zero.
8713
d8d65dd3
MS
87142004-04-21 Michael Snyder <msnyder@redhat.com>
8715
8716 * mips-tdep.c (heuristic_proc_start):
8717 Warning() already prefixes "Warning: ".
8718
9a4105ab
AC
87192004-04-21 Andrew Cagney <cagney@redhat.com>
8720
8721 * annotate.h (deprecated_annotate_starting_hook)
8722 (deprecated_annotate_stopped_hook)
8723 (deprecated_annotate_exited_hook)
8724 (deprecated_annotate_signal_hook)
8725 (deprecated_annotate_signalled_hook): Deprecate.
8726 * tracepoint.h (deprecated_create_tracepoint_hook)
8727 (deprecated_delete_tracepoint_hook)
8728 (deprecated_modify_tracepoint_hook)
8729 (deprecated_trace_find_hook)
8730 (deprecated_trace_start_stop_hook): Deprecate.
8731 * target.h (deprecated_target_new_objfile_hook): Deprecate.
8732 * remote.h (deprecated_target_resume_hook)
8733 (deprecated_target_wait_loop_hook): Deprecate.
8734 * gdbcore.h (deprecated_exec_file_display_hook)
8735 (deprecated_file_changed_hook): Deprecate.
8736 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
8737 * defs.h (deprecated_modify_breakpoint_hook)
8738 (deprecated_command_loop_hook, deprecated_show_load_progress)
8739 (deprecated_print_frame_info_listing_hook)
8740 (deprecated_query_hook, deprecated_warning_hook)
8741 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
8742 (deprecated_delete_breakpoint_hook)
8743 (deprecated_interactive_hook, deprecated_registers_changed_hook)
8744 (deprecated_readline_begin_hook, deprecated_readline_hook)
8745 (deprecated_readline_end_hook, deprecated_register_changed_hook)
8746 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
8747 (deprecated_context_hook, deprecated_target_wait_hook)
8748 (deprecated_attach_hook, deprecated_detach_hook)
8749 (deprecated_call_command_hook, deprecated_set_hook)
8750 (deprecated_error_hook, deprecated_error_begin_hook)
8751 (deprecated_ui_load_progress_hook): Deprecate.
8752 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
8753 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
8754 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
8755 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
8756 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
8757 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
8758 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
8759 * annotate.c, aix-thread.c: Update.
8760
62cf13cc
AC
87612004-04-21 Andrew Cagney <cagney@redhat.com>
8762
b2e31a62
AC
8763 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
8764 * vaxnbsd-tdep.c: Include "gdb_string.h".
8765
62cf13cc
AC
8766 * symfile.c (symbol_file_add_from_memory): #if 0 function.
8767 (add_symbol_file_from_memory_command): #if 0 function body, call
8768 error instead.
8769
00e32a35
AC
87702004-04-21 Andrew Cagney <cagney@redhat.com>
8771
8772 * gdbcore.h: Update copyright.
8773 (deprecated_add_core_fns): Rename add_core_fns.
8774 * win32-nat.c (_initialize_core_win32): Update.
8775 * sun3-nat.c (_initialize_core_sun3): Update.
8776 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
8777 * rs6000-nat.c (_initialize_core_rs6000): Update.
8778 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
8779 * nto-tdep.c (_initialize_nto_tdep): Update.
8780 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
8781 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
8782 * mips-nat.c (_initialize_core_mips): Update.
8783 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
8784 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
8785 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
8786 * lynx-nat.c (_initialize_core_lynx): Update.
8787 * irix5-nat.c (_initialize_core_irix5): Update.
8788 * i386-interix-nat.c (_initialize_core_interix): Update.
8789 * cris-tdep.c (_initialize_cris_tdep): Update.
8790 * corelow.c (deprecated_add_core_fns): Update.
8791 * core-regset.c (_initialize_core_regset): Update.
8792 * core-aout.c (_initialize_core_aout): Update.
8793 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
8794 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
8795 * alpha-nat.c (_initialize_core_alpha): Update.
8796
13c7b1ca
JB
87972004-04-21 Jim Blandy <jimb@redhat.com>
8798
8799 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
8800
7b5a2f43
DJ
88012004-04-19 Daniel Jacobowitz <drow@mvista.com>
8802
8803 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
8804 Delete.
8805 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
8806 (read_attribute_value): Update calls to dwarf_alloc_block.
8807 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
8808 dwarf2_tmp_obstack.
8809 (psymtab_to_symtab_1): Likewise. Clean up using
8810 free_stack_comp_unit.
8811 (add_to_cu_func_list): Use the comp_unit_obstack.
8812
05cf31d1
JB
88132004-04-19 Joel Brobecker <brobecker@gnat.com>
8814
8815 * dwarf2read.c (dwarf2_flag_true_p): New function.
8816 (die_is_declaration): Use the function above. Add some comments.
8817
adf93a2f
MK
88182004-04-19 Mark Kettenis <kettenis@gnu.org>
8819
8820 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
8821 architecture when registering sparcnbsd_core_osabi_sniffer.
8822 Adjust comment.
8823
748894bf
MK
88242004-04-18 Mark Kettenis <kettenis@gnu.org>
8825
f622ad42
MK
8826 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
8827 return value.
8828
c4fc7f1b
MK
8829 Based on a patch from Brian Ford <ford@vss.fsi.com>:
8830 * i386-tdep.c: Correct register numbering scheme comments
8831 throughout.
8832 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
8833 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
8834 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
8835 (i386_gdb_arch_init): Likewise.
8836
b4ead1bd
MK
8837 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
8838 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
8839 ppcnbsd-tdep.o.
8840
748894bf
MK
8841 * m68k-tdep.h: Tweak comments.
8842 * m68k-tdep.c: Tweak comment.
8843
fdd72f95
RC
88442004-04-17 Randolph Chung <tausq@debian.org>
8845
8846 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
8847 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
8848 (hppa_hpux_som_init_abi): Set is_elf to 0.
8849 (hppa_hpux_elf_init_abi): Set is_elf to 1.
8850 * hppa-tdep.c (low_text_segment_address): Remove global.
8851 (record_text_segment_lowaddr): Pass in low address as parameter. Use
8852 section offset to calculate segment address.
8853 (internalize_unwinds): Define low_text_segment_address as local and
8854 pass to record_text_segment_lowaddr for ELF targets.
8855 (hppa_gdbarch_init): Zero fill tdep structure.
8856 (hppa_dump_tdep): Print tdep structure.
8857 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
8858
0f8d9d59
RC
88592004-04-17 Randolph Chung <tausq@debian.org>
8860
8861 * hppa-tdep.c (hppa_pseudo_register_read): Define.
8862 (hppa_gdbarch_init): Set pseudo_register_read.
8863 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
8864 * regcache.c (supply_register): Remove check for
8865 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
8866
7c46b9fb
RC
88672004-04-17 Randolph Chung <tausq@debian.org>
8868
8869 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
8870 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
8871 (hpread_adjust_stack_address): Move to hpread.c.
8872 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
8873 obj_private_struct): Move from tm-hppa.h.
8874 * hpread.c (hppa-tdep.h): Include.
8875 (hpread_adjust_stack_address): Move from hppa-tdep.c.
8876 (hpread_read_function_type, hpread_read_doc_function_type)
8877 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
8878 directly.
8879 * pa64solib.c (hppa-tdep.h): Include.
8880 * somsolib.c (hppa-tdep.h): Include.
8881 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
8882 inferior_status): Remove unused forward declarations.
8883 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
8884 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
8885 obj_private_struct): Move to hppa-tdep.h.
8886 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
8887
8d153463
RC
88882004-04-17 Randolph Chung <tausq@debian.org>
8889
8890 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
8891 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
8892 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
8893 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
8894 Remove forward declaration and make static.
8895 (hppa_reg_struct_has_addr): Remove.
8896
350c2e5b
JB
88972004-04-16 Joel Brobecker <brobecker@gnat.com>
8898
8899 * observer.sh: Move comments in sed command to first column.
8900
bbde78fa
JM
89012004-04-16 Jason Molenda (jmolenda@apple.com)
8902
8903 * frame.c: Minor typeo corrections in comments.
8904
e0270fd9
JB
89052004-04-16 Joel Brobecker <brobecker@gnat.com>
8906
8907 * observer.c (observer_test_first_notification_function): Update
8908 function profile.
8909 (observer_test_second_notification_function): Likewise.
8910 (observer_test_third_notification_function): Likewise.
8911
3d049254
MK
89122004-04-16 Mark Kettenis <kettenis@gnu.org>
8913
8914 From Brian Ford <ford@vss.fsi.com>:
8915 * i386-tdep.c (i386_coff_init_abi): New function.
8916 * i386-tdep.h (i386_coff_init_abi): New prototype.
8917 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
8918 register number translation functions for DWARF and DWARF 2.
8919
7867684d
JB
89202004-04-16 Joel Brobecker <brobecker@gnat.com>
8921
8922 * dwarf2read.c: Back out my previous change, it was incorrect.
8923
72bf9492
DJ
89242004-04-16 Daniel Jacobowitz <drow@mvista.com>
8925
8926 * dwarf2read.c: Include "hashtab.h".
8927 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
8928 has_namespace_info.
8929 (struct partial_die_info): Add comments. Use bitfields to reduce
8930 memory footprint. Add scope, scope_set, has_specification,
8931 spec_offset, die_parent, die_child, and die_sibling.
8932 (peek_die_abbrev): Add prototype.
8933 (partial_read_comp_unit_head): New function, broken out from
8934 dwarf2_build_psymtabs_hard.
8935 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
8936 Use partial_read_comp_unit_head. Initialize the CU and
8937 comp_unit_obstack. Update calls to read_partial_die and
8938 scan_partial_symbols. Use free_stack_comp_unit and
8939 load_partial_dies.
8940 (scan_partial_symbols): Change PDI to a pointer. Use the child and
8941 sibling pointers to walk partial DIEs. Call fixup_partial_die.
8942 Update calls to helper functions. Remove NAMESPACE argument.
8943 Update comments.
8944 (partial_die_parent_scope, partial_die_full_name): New functions.
8945 (add_partial_symbol): Remove namespace argument. Update call to
8946 pdi_needs_namespace. Use partial_die_full_name. Handle
8947 DW_TAG_namespace. Check has_namespace_info flag.
8948 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
8949 tag. Handle namespaces.
8950 (add_partial_namespace, add_partial_enumeration): Simplify.
8951 (guess_structure_name): New function, derived from
8952 add_partial_structure.
8953 (add_partial_structure): Remove.
8954 (determine_class_name): Update comment.
8955 (dwarf2_read_abbrevs): Set has_namespace_info flag.
8956 (is_type_tag_for_partial, load_partial_dies): New functions.
8957 (read_partial_die): Pass abbrev and abbrev_len as arguments.
8958 Record specifications instead of following them immediately.
8959 (find_partial_die_in_comp_unit, find_partial_die)
8960 (fixup_partial_die, free_stack_comp_unit)
8961 (hashtab_obstack_allocate, dummy_obstack_deallocate)
8962 (partial_die_hash, partial_die_eq): New functions.
8963 * Makefile.in (hashtab_h): Define.
8964 (dwarf2read.o): Update dependencies.
8965 (observer_inc, observer_h): Move to the correct section.
8966
fdc860a3
JB
89672004-04-15 Joel Brobecker <brobecker@gnat.com>
8968
8969 * dwarf2read.c (dwarf2_attribute_true_p): New function.
8970 (die_is_declaration): Use the function above. Add comment.
8971
dc718098
JB
89722004-04-15 Joel Brobecker <brobecker@gnat.com>
8973
8974 * dwarf2read.c (read_structure_scope): Identify stub types
8975 using die_is_declaration() only.
8976
8718a420
RM
89772004-04-15 Roland McGrath <roland@redhat.com>
8978
8979 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
8980 argument instead of NAME.
8981 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
8982 in call to symbol_file_add_with_addrs_or_offsets.
8983 (build_addr_info): New function, helper for ...
8984 (symbol_file_add_from_memory): New function.
8985 (add_symbol_file_from_memory_command): New function using that.
8986 (_initialize_symfile): Register it for add-symbol-file-from-memory.
8987 (pre_add_symbol_hook): Add const to argument type.
8988 * symfile.h (symbol_file_add_from_memory): Declare it.
8989
8b910bab
MK
89902004-04-15 Mark Kettenis <kettenis@gnu.org>
8991
9f076e7a
MK
8992 * NEWS (New native configurations): Mention OpenBSD/vax.
8993 * configure.host: Add vax-*-openbsd*.
8994 * config/vax/obsd.mh: New file.
8995 * config/vax/nm-obsd.h: New file.
8996
8b910bab
MK
8997 * vax-tdep.c: Include "regset.h".
8998 (vax_supply_gregset): New function.
8999 (vax_gregset): New variable.
9000 (vax_regset_from_core_section): New function.
9001 (vax_gdbarch_init): Set regset_from_core_section.
9002 * Makefile.in (vax-tdep.o): Update dependencies.
9003
7a464420
AC
90042004-04-15 Andrew Cagney <cagney@redhat.com>
9005
9006 * observer.c (normal_stop_subject, observer_notify_normal_stop)
9007 (observer_normal_stop_notification_stub)
9008 (observer_attach_normal_stop, observer_detach_normal_stop):
9009 Delete, replaced by #include "observer.inc".
9010 * infrun.c (normal_stop): Pass "stop_bpstat" to
9011 observer_notify_normal_stop.
9012 * Makefile.in (observer_inc): Define.
9013 (observer.o): Update dependencies.
9014 (observer.h, observer.inc): New rules.
9015 * observer.h: Delete file.
9016 * observer.sh: New file.
9017
e36ad527
MK
90182004-04-15 Mark Kettenis <kettenis@gnu.org>
9019
9020 * vax-tdep.c (vax_frame_cache): Fix typo.
9021
67b441e1
MK
90222004-04-14 Mark Kettenis <kettenis@gnu.org>
9023
6f606e1c
MK
9024 * NEWS (New native configurations): Mention NetBSD/vax.
9025 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
9026 * config/vax/nbsdelf.mh: New file.
9027 * config/vax/nbsdaout.mh: New file.
9028 * config/vax/nm-nbsd.h: New file.
9029 * config/vax/nm-nbsdaout.h: New file.
9030
9c5519a5
MK
9031 * vaxnbsd-tdep.c: New file.
9032 * Makefile.in (vaxnbsd-tdep.o): New dependency.
9033 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
9034 * config/vax/nbsd.mt: New file.
9035 * config/vax/tm-nbsd.h: New file.
9036
4844a614
MK
9037 * Makefile.in (vaxbsd-nat.o): New dependency.
9038
67b441e1
MK
9039 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
9040 * vax-tdep.c (vax_store_arguments): Remove struct_return and
9041 struct_addr arguments. Don't push return value address.
9042 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
9043 arguments to vax_store_arguments. Store return value address in
9044 R1.
9045 (vax_store_struct_return, vax_extract_return_value)
9046 (vax_store_return_value): Remove functions.
9047 (vax_return_value): New function.
9048 (vax_gdbarch_init): Set return value. Don't set
9049 deprecated_store_struct_return, deprecated_extract_struct_return
9050 and deprecated_store_return_value.
9051
6672f2ae
AS
90522004-04-14 Andreas Schwab <schwab@suse.de>
9053
9054 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
9055 value buffer.
9056 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
9057
7346c184
MK
90582004-04-14 Mark Kettenis <kettenis@gnu.org>
9059
9060 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
9061 (vax_unwind_dummy_id): New functions.
9062 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
9063 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
9064 variables.
9065 (vax_fix_call_dummy): Remove function.
9066 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
9067 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
9068 call_dummy_location, deprecated_call_dummy_words,
9069 deprecated_sizeof_call_dummy_words,
9070 deprecated_call_dummy_breakpoint_offset,
9071 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
9072 and deprecated_dummy_write_sp.
9073
58e23df4
DC
90742004-04-13 David Carlton <carlton@kealia.com>
9075
9076 * MAINTAINERS: Move myself to "paper trail" section.
9077
5e6b39ff
MK
90782004-04-12 Mark Kettenis <kettenis@gnu.org>
9079
7def7fef
MK
9080 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
9081 "trad-frame.h".
9082 (vax_frame_init_saved_regs): Remove function.
9083 (vax_sigtramp_saved_pc): Remove function.
9084 (vax_frame_saved_pc): Remove function.
9085 (vax_frame_args_address): Remove function.
9086 (vax_frame_num_args): Rewrite.
9087 (vax_frame_chain): Remove function.
9088 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
9089 VAX_FP_REGNUM.
9090 (vax_pop_frame): Likewise.
9091 (vax_saved_pc_after_call): Remove function.
9092 (struct vax_frame_cache): New structure.
9093 (vax_frame_cache): New function.
9094 (vax_frame_this_id): New function.
9095 (vax_frame_prev_register): New function.
9096 (vax_frame_unwind): New variable.
9097 (vax_frame_sniffer): New function.
9098 (vax_frame_base_address): New function.
9099 (vax_frame_args_address): New function.
9100 (vax_frame_base): New variable.
9101 (vax_unwind_pc): New function.
9102 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
9103 deprecated_fp_regnum, deprecated_saved_pc_after_call,
9104 deprecated_frame_chain, deprecated_frame_saved_pc,
9105 deprecated_frame_args_address and
9106 deprecated_frame_init_saved_regs.
9107 * Makefile.in (vax-tdep.o): Update dependencies.
9108
53284fc1
MK
9109 * vaxbsd-nat.c: New file.
9110
5e6b39ff
MK
9111 * vax-tdep.h: Update copyright year. Adjust comments.
9112 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
9113 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
9114 (vax_regnum): New enum. Replacing...
9115 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
9116 (VAX_PS_REGNUM): ... these removed macros.
9117 * vax-tdep.c (vax_register_name): Remove prototype.
9118 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
9119 (vax_register_byte, vax_register_raw_size,
9120 vax_register_virtual_size, vax_register_virtual_type): Remove
9121 functions.
9122 (vax_register_type): New function.
9123 (vax_breakpoint_from_pc): Reorganize.
9124 (vax_gdbarch_init): Set register_type. Don't set
9125 deprecated_register_size, deprecated_register_bytes,
9126 deprecated_register_byte, deprecated_register_raw_size,
9127 deprecated_max_register_raw_size,
9128 deprecated_register_virtual_size,
9129 deprecated_max_register_virtual_size and
9130 deprecated_register_virtual_type. Add comment on stack direction.
9131
e9c71e9f
MK
91322004-04-11 Mark Kettenis <kettenis@gnu.org>
9133
9134 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
9135 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
296bc76f 9136 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
e9c71e9f 9137
d46f1176 91382004-04-10 Randolph Chung <tausq@debian.org>
8718a420 9139
d46f1176
RC
9140 * MAINTAINERS (write after approval): Add myself.
9141
a2a84a72
RC
91422004-04-07 Randolph Chung <tausq@debian.org>
9143
9144 * hppa-tdep.c (hppa_inner_than): Remove.
9145 (is_pa_2): Remove unused static variable.
8718a420 9146 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
a2a84a72 9147
e85c3284
PH
91482004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
9149
9150 * language.h (language_defn): Add new la_post_parser field.
9151 * parser-defs.h (null_post_parser): New declaration (default for
9152 la_post_parser).
8718a420 9153
e85c3284
PH
9154 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
9155 insert call to that function.
9156 (parse_exp_in_context): New function, including code formerly in
8718a420 9157 parse_exp_1. Calls language-dependent post-parser after
e85c3284
PH
9158 prefixification.
9159 (parse_expression_in_context): New exported function.
9160 (null_post_parser): New definition.
9161 * expression.h (parse_expression_in_context): Add declaration.
8718a420 9162
e85c3284
PH
9163 * p-lang.c (pascal_language_defn): Add trivial post-parser.
9164 * c-lang.c (c_language_defn): Ditto.
9165 (cplus_language_defn): Ditto.
9166 (asm_language_defn): Ditto.
9167 (minimal_language_defn): Ditto.
9168 * f-lang.c (f_language_defn): Ditto.
9169 * jv-lang.c (java_language_defn): Ditto.
9170 * language.c (unknown_language_defn): Ditto.
9171 (auto_language_defn): Ditto.
9172 (local_language_defn): Ditto.
9173 * m2-lang.c (m2_language_defn): Ditto.
9174 * scm-lang.c (scm_language_defn): Ditto.
9175 * obj-lang.c (objc_language_defn): Ditto.
8718a420 9176
d9f8c85b
MK
91772004-04-10 Mark Kettenis <kettenis@gnu.org>
9178
fa34704a
MK
9179 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
9180 (amd64nbsd_mcontext_addr): New function.
9181 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
9182 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
9183 with amd64nbsd_r_reg_offset, instead of building it on the fly.
9184
403e1656
MK
9185 * corelow.c (core_xfer_partial): Fix coding standards violation.
9186 Add support for TARGET_OBJECT_WCOOKIE.
9187
a57e5a95
MK
9188 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
9189 deprecated_pc_in_sigtramp.
9190 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
9191 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
9192 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
9193 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
9194 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
9195 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
9196 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
9197
377d9ebd
MK
9198 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
9199 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
9200 Fix typo.
9201
f0ef85a5
MK
9202 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
9203 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
9204 (amd64_collect_fxsave): Likewise.
9205
d9f8c85b
MK
9206 * i386-sol2-tdep.c: Include "gdb_string.h".
9207 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
9208 name.
9209 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
9210
75f501b5
MK
92112004-04-10 Mark Kettenis <kettenis@gnu.org>
9212
9213 * i386-sol2-tdep.c: Include "solib-svr4.h".
9214 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9215 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
9216 * config/i386/tm-i386sol2.h: Include :solib.h".
9217 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
9218 solib-svr4.o and solib-legacy.o.
9219 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
9220 solib-svr4.o.
9221
b31bc724
MK
92222004-04-09 Mark Kettenis <kettenis@gnu.org>
9223
18bbbd9e
MK
9224 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
9225 whether a register is supplied by PTRACE_GETFPREGS.
9226 (store_inferior_registers): Likewise.
9227 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
9228 whether a register is supplied by PT_GETFPREGS.
9229 (store_inferior_registers): Likewise.
9230
3c30bf1b
MK
9231 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
9232 * config/i386/linux64.mt (TDEPFILES): Likewise.
9233
a4194092
MK
9234 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
9235
911bc6ee
MK
9236 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
9237 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
9238 the program counter is in the range specified by `struct
9239 gdbarch_tdep'.
9240 * amd64-linux-tdep.c: Include "symtab.h".
9241 (amd64_linux_pc_in_sigtramp): Remove function.
9242 (amd64_linux_sigtramp_p): New function.
9243 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
9244 deprecated_pc_in_sigtramp.
9245 * amd64nbsd-tdep.c: Include "symtab.h".
9246 (amd64nbsd_sigtramp_p): New function.
9247 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
9248 deprecated_pc_in_sigtramp.
9249 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
9250 few comments.
9251 (amd64obsd_pc_in_sigtramp): Remove function.
9252 (amd64obsd_sigtramp_p): New function.
9253 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
9254 deprecated_pc_in_sigtramp.
9255 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
9256 (i386bsd_pc_ins_sigtramp): Remove prototype.
9257 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
9258 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
9259 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
9260 the program counter is in the range specified by `struct
9261 gdbarch_tdep'.
9262 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
9263 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
9264 (i386_go32_pc_in_sigtramp): Remove function.
9265 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
9266 Initialize TDEP->sigtramp_p.
9267 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
9268 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
9269 deprecated_pc_in_sigtramp.
9270 * i386-linux-tdep.c: Adjust comments.
9271 (i386_linux_pc_in_sigtramp): Remove function.
9272 (i386_linux_sigtramp_p): New function.
9273 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
9274 deprecated_pc_in_sigtramp.
9275 * i386-nto-tdep.c: Update copyright year.
9276 (i386nto_pc_in_sigtramp): Remove function.
9277 (i386nto_sigtramp_p): New function.
9278 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
9279 SP_REGNUM.
9280 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
9281 deprecated_pc_in_sigtramp.
9282 * i386-sol2-tdep.c: Update copyright year.
9283 (i386_sol2_pc_in_sigtramp): Remove function.
9284 (i386_sol2_sigtramp_p): New function.
9285 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
9286 deprecated_pc_in_sigtramp.
9287 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
9288 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
9289 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9290 deprecated_sigtramp_start and deprecated_sigtramp_end.
9291 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
9292 (i386nbsd_pc_in_sigtramp): Remove function.
9293 (i386nbsd_sigtramp_p): New function.
9294 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9295 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
9296 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
9297 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
9298 (i386obsd_pc_in_sigtramp): Remove function.
9299 (i386obsd_sigtramp_p): New function.
9300 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
9301 functions.
9302 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9303 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
9304 TDEP->sigtramp_p.
9305 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
9306 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
9307 dependencies.
9308
e083e6ec
MK
9309 * config/i386/i386aout.mt: Remove file.
9310
bd153b94
MK
9311 * configure.tgt: Remove i[34567]86-*-go32*,
9312 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
9313 and i[34567]86-*-isc*. Set gdb_target to i386 for
9314 i[34567]86-*-netware* and i[34567]86-*-*.
9315 * config/i386/i386.mt: New file.
9316 * config/i386/embed.mt: Remove file.
9317 * config/i386/go32.mt: Remove file.
9318 * config/i386/i386nw.mt: Remove file.
9319 * config/i386/i386v.mt: Remove file.
9320 * config/i386/tm-go32.h: Remove file.
9321
4a1bcc8c
MK
9322 * tui/tui-hooks.c: Include "readline/readline.h" after
9323 "gdb_curses.h" instead of before.
9324 * tui/tui-io.c: Likewise.
9325
f9a79064
MK
9326 * tui/tui.c: Fix typo in comment.
9327
b31bc724
MK
9328 * sparc64-tdep.c (sparc_address_from_register): Remove function.
9329
f83f82bc
AC
93302004-04-08 Andrew Cagney <cagney@redhat.com>
9331
9332 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
9333 (deprecated_exception_support_initialized): Declare.
8718a420 9334 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
f83f82bc
AC
9335 (initialize_hp_cxx_exception_support)
9336 (child_enable_exception_callback): Update.
9337 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
9338 (deprecated_exception_support_initialized): Rename
9339 deprecated_exception_catchpoints_are_fragile and
9340 deprecated_exception_support_initialized.
9341 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
9342
9343 * symtab.c (deprecated_hp_som_som_object_present): Rename
9344 hp_som_som_object_present.
9345 * symtab.h (deprecated_hp_som_som_object_present): Declare.
9346 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
9347 Update. Delete extern declaration.
9348 * valops.c (hp_som_som_object_present): Ditto.
8718a420 9349 * parse.c (deprecated_hp_som_som_object_present)
f83f82bc
AC
9350 (parse_nested_classes_for_hpacc): Ditto.
9351 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
8718a420 9352 * hppa-hpux-tdep.c (hp_som_som_object_present)
f83f82bc
AC
9353 (initialize_hp_cxx_exception_support): Ditto.
9354 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
8718a420 9355 * cp-valprint.c (hp_som_som_object_present)
f83f82bc 9356 (cp_print_class_method): Ditto.
8718a420 9357 * c-typeprint.c (hp_som_som_object_present):
f83f82bc
AC
9358 (c_type_print_base): Ditto.
9359 * c-exp.y (hp_som_som_object_present): Ditto.
9360
fb2be677
AC
93612004-04-08 Andrew Cagney <cagney@redhat.com>
9362
9363 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
9364 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
9365 (frame_unwind_find_by_frame): Re-implement the unwind code so
9366 that it can both prepend and append sniffers. Replace
9367 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
9368 * tramp-frame.c (tramp_frame_append): Use
9369 frame_unwind_prepend_unwinder.
9370 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
9371 frame_unwind_register_unwinder.
9372 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
9373 tramp_frame_append.
9374 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
8718a420 9375 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
fb2be677
AC
9376 (mips_linux_init_abi): Update.
9377
67faf007
KB
93782004-04-08 Kevin Buettner <kevinb@redhat.com>
9379
9380 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
9381 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
9382 file support.
9383
8973ff21
KB
93842004-04-07 Kevin Buettner <kevinb@redhat.com>
9385
9386 * ia64-tdep.c (elf.h): Don't include.
9387 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
9388
4a0e2f88
JM
93892004-04-07 Jason Molenda (jmolenda@apple.com)
9390
9391 * frame.h: Typeo corrections in comments.
9392
9872ad24
JB
93932004-04-07 Jim Blandy <jimb@redhat.com>
9394
9395 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
9396 %esp and %ebp
9397
70b216c8
MK
93982004-04-07 Mark Kettenis <kettenis@gnu.org>
9399
11d5789c
MK
9400 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
9401 * config/sparc/linux64.mt (TDEPFILES): Likewise.
9402 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
9403 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
9404 and solib-legacy.o.
9405 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
9406 solib-svr4.o.
9407 * config/sparc/tm-sol2.h: Update copyright year. Include
9408 "solib.h".
9409
70b216c8
MK
9410 * sparc-sol2-tdep.c: Update copyright year. Include
9411 "solib-svr4.h".
9412 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9413 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
9414 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
096f864c 9415 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
70b216c8
MK
9416 dependencies.
9417
6339dc9e
AC
94182004-04-06 Andrew Cagney <cagney@redhat.com>
9419
9420 * infttrace.c: Include "infttrace.h".
9421 * infttrace.h: Include "target.h".
9422 * Makefile.in (infttrace_h): Update.
9423 (infttrace.o): Update.
8718a420 9424
93449403
AC
94252004-04-06 Andrew Cagney <cagney@redhat.com>
9426
6d518969
AC
9427 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
9428 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
9429 move extern declarations from here ...
9430 * infttrace.h: ... to here.
9431 * Makefile.in (hppah-nat.o): Update dependencies.
9432
85f4f2d8
AC
9433 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
9434 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
8718a420 9435 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
85f4f2d8
AC
9436 (hppa_breakpoint_from_pc): Delete.
9437
93449403
AC
9438 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
9439
71456ec6
AC
94402004-04-05 Andrew Cagney <cagney@redhat.com>
9441
9442 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
9443 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
9444 <sys/file.h>.
8718a420 9445
4c02c60c
AC
94462004-04-06 Randolph Chung <tausq@debian.org>
9447
9448 Committed by Andrew Cagney (mechanical change).
9449 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
9450 exception_catchpoints_are_fragile, find_stub_with_shl_get,
9451 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
9452 child_enable_exception_callback, current_ex_event,
9453 null_symtab_and_line, child_get_current_exception_event,
9454 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
9455 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
9456 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
9457 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
9458 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
9459 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
9460 Move hpux-specific definitions ...
9461 * hppa-hpux-tdep.c: ... to here.
9462
3a515653
AC
94632004-04-05 Andrew Cagney <cagney@redhat.com>
9464
9465 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
9466 skip_prologue_using_sal.
9467
c1730d02
AC
94682004-04-05 Andrew Cagney <cagney@redhat.com>
9469
9470 * config/i386/tm-i386.h: Delete file.
9471 * config/i386/tm-vxworks.h: Update copyright, do not include
9472 "tm-i386.h".
9473 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
9474 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
9475 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
9476 * config/i386/ncr3000.mt (TM_FILE): Delete.
9477 * config/i386/interix.mt (TM_FILE): Delete.
9478 * config/i386/i386v.mt (TM_FILE): Delete.
9479 * config/i386/i386nw.mt (TM_FILE): Delete.
9480 * config/i386/i386gnu.mt (TM_FILE): Delete.
9481 * config/i386/i386aout.mt (TM_FILE): Delete.
9482 * config/i386/embed.mt (TM_FILE): Delete.
9483
8b67aa36
KB
94842004-04-05 Kevin Buettner <kevinb@redhat.com>
9485
9486 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
9487 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
9488 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
9489 (accg7_regnum): New constants.
9490 (last_spr_regnum, last_pseudo_regnum): Update.
c2f59a1a
KB
9491 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
9492 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
8b67aa36
KB
9493 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
9494 for accg registers.
9495 (frv_register_sim_regno): Update spr_map[].
9496
3c7012f5
AC
94972004-04-04 Andrew Cagney <cagney@redhat.com>
9498
9499 * config/mips/xm-riscos.h: Delete.
9500 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
9501 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
9502 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
9503 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
9504 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
9505 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
9506 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
9507 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
9508 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
9509 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
9510 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
9511 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
9512 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
9513 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
9514 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
9515 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
9516 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
9517 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
9518 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
9519 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
9520 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
9521 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
9522 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
9523 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
9524 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
9525 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
8718a420 9526
3c7012f5
AC
9527 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
9528 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
9529 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
9530 * configure.host: Remove m680[01]0-sun-sunos3*,
9531 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
9532 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
9533 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
9534 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
9535 mips-*-riscos*.
9536 * NEWS: Mention removed systems.
9537
99d16a21
AC
95382004-04-04 Andrew Cagney <cagney@redhat.com>
9539
9540 GDB 6.1 release created from 6.1 branch.
9541
6cdf9d98
AC
95422004-04-04 Andrew Cagney <cagney@redhat.com>
9543
98d346c3
AC
9544 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
9545 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
9546 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
9547
6cdf9d98
AC
9548 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
9549 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
9550 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
9551
859a326d
JB
95522004-04-03 Jim Blandy <jimb@redhat.com>
9553
9554 * MAINTAINERS: Chris Faylor has changed employers; add him to
9555 "paper trail" section, and update his E-mail address.
9556
b87178c3
AC
95572004-04-03 Andrew Cagney <cagney@redhat.com>
9558
4ea2acf0
AC
9559 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
9560 generic dummy frames.
9561 * dummy-frame.c: Update copyright.
9562 (dummy_frame_sniffer): Delete check for generic dummy frames.
9563
d0bd2d18 9564 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
8718a420 9565 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
d0bd2d18
AC
9566 (REG_PARM_STACK_SPACE): Delete.
9567 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
9568 Inline reference to REG_PARM_STACK_SPACE.
9569
b87178c3
AC
9570 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
9571 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
9572 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
9573 (FRAME_BASE_BEFORE_SIGTRAMP)
9574 (hppa32_hpux_frame_base_before_sigtramp)
9575 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
9576 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
9577 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
9578 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
9579 (FRAME_BASE_BEFORE_SIGTRAMP)
9580 (hppa64_hpux_frame_base_before_sigtramp)
9581 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
9582
43e2e1a0
AC
95832004-04-03 Andrew Cagney <cagney@redhat.com>
9584
9585 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
9586
ddc135a4
AC
95872004-04-02 Andrew Cagney <cagney@redhat.com>
9588
9589 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
9590 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
9591 * dummy-frame.h: Delete out-of-date comments.
9592 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
9593 * gdbarch.h, gdbarch.c: Re-generate.
9594
d15bfd3a 95952004-04-02 Joel Brobecker <brobecker@gnat.com>
8718a420 9596
d15bfd3a
AC
9597 Committed by Andrew Cagney <cagney@redhat.com>.
9598 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
9599 into account an instruction saving a register if we have already
9600 seen an earlier instruction saving that same register.
9601
f04ceafa
AC
96022004-04-02 Andrew Cagney <cagney@redhat.com>
9603
08be3abd
AC
9604 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
9605 * gdbarch.h, gdbarch.c: Re-generate.
9606 * frame.c (legacy_get_prev_frame): Delete references to
9607 DEPRECATED_INIT_FRAME_PC_FIRST.
9608
f04ceafa
AC
9609 * infrun.c (pc_in_sigtramp): Delete function.
9610 (check_sigtramp2): Inline call to pc_in_sigtramp, use
9611 get_frame_type.
9612
08e69816
AC
96132004-04-02 Andrew Cagney <cagney@redhat.com>
9614
9615 * infrun.c (handle_step_into_function): Delete code conditional on
9616 legacy_frame_p.
9617 (handle_inferior_event, step_over_function): Ditto.
9618
adb54772
AC
96192004-04-02 Andrew Cagney <cagney@redhat.com>
9620
9621 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
9622 "previous frame inner to this frame" test.
9623
304396fb
AC
96242004-04-02 Andrew Cagney <cagney@redhat.com>
9625
9626 * frame.c (safe_frame_unwind_memory): New function.
9627 * frame.h (safe_frame_unwind_memory): Declare. Update description
9628 of /safe_/ methods.
9629 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
9630 "next_frame". Use safe_frame_unwind_memory.
9631 (tramp_frame_sniffer): Update call to tramp_frame_start.
9632
6502dd73
DJ
96332004-04-01 Daniel Jacobowitz <drow@mvista.com>
9634
9635 * dwarf2read.c (dwarf2_objfile_data_key): New.
9636 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
9637 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
9638 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
9639 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
9640 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
9641 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
9642 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
9643 Remove variables.
9644 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
9645 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
9646 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
9647 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
9648 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
9649 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
9650 Remove macros.
9651 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
9652 data.
9653 (dwarf2_locate_sections, dwarf2_build_psymtabs)
9654 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
9655 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
9656 (read_partial_die, read_full_die, read_indirect_string)
9657 (dwarf_decode_line_header, dwarf_decode_macros)
9658 (dwarf2_symbol_mark_computed): Remove use of removed macros.
9659 Update uses of removed variables.
9660 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
9661 of removed macros.
9662 (_initialize_dwarf2_read): New function.
9663 * symfile.h (dwarf2_has_info): Update prototype.
9664 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
9665 * elfread.c (elf_symfile_read): Likewise.
9666
408752b0
JB
96672004-04-01 Jim Blandy <jimb@redhat.com>
9668
9f744501
JB
9669 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
9670 function for register numbers on all the rs6000-derived targets.
9671 (rs6000_gdbarch_init): Don't register a separate
9672 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
9673 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
9674 variants.
9675
408752b0
JB
9676 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
9677 numbering.
9678
2de41bce
PH
96792004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
9680
9681 * valarith.c: Update copyright notice.
9682 (value_add): Handle range types.
9683 (value_sub): Ditto.
9684 (value_equal): Ditto.
9685 (value_less): Ditto.
9686 (value_neg): Ditto.
9687 (value_complement): Ditto.
8718a420 9688 (value_binop): Simplify slightly by using is_integral_type and
2de41bce 9689 eliminiating unnecessary COERCE_ENUMs.
8718a420 9690
5613d8d3
AC
96912004-03-31 Andrew Cagney <cagney@redhat.com>
9692
9693 * frame.h (frame_unwind_id): Declare.
9694 * frame.c (frame_unwind_id): New function.
9695 (get_prev_frame_1): New function.
9696 (frame_debug_got_null_frame): New function.
9697 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
9698 code proper to prev_frame, update description.
9699 * infrun.c (step_over_function): Use frame_unwind_id.
9700
c4557624
JB
97012004-04-31 J. Brobecker <brobecker@gnat.com>
9702
9703 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
9704 (hppa64_push_dummy_call): Likewise.
9705
3e6bb910
JB
97062004-03-30 Jim Blandy <jimb@redhat.com>
9707
9708 From Ulrich Weigand:
9709 * utils.c (query): Do not use a va_list variable multiple times.
9710
a2f23071
DJ
97112004-03-29 Daniel Jacobowitz <drow@mvista.com>
9712
9713 * Makefile.in (linux_nat_h): Update dependencies.
9714 * configure.in: Check for <gnu/libc-version.h>.
9715 * configure: Regenerate.
9716 * config.in: Regenerate.
9717 * linux-nat.h: Include "target.h". Add waitstatus field to
9718 struct lwp_info.
9719 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
9720 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
9721 to.
9722 (lin_lwp_handle_extended): New function. Handle clone events.
9723 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
9724 thread exit events.
9725 (child_wait): Handle clone events.
9726 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
9727 * linux-nat.c (linux_enable_event_reporting): Turn on
9728 PTRACE_O_TRACECLONE.
9729 (linux_handle_extended_wait): Handle clone events.
9730 * thread-db.c: Include <gnu/libc-version.h>.
9731 (struct private_thread_info): Add dying flag.
9732 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
9733 higher.
9734 (attach_thread): Update comments. Handle dying threads.
9735 (detach_thread): Set the dying flag.
9736 (check_event): Always call attach_thread.
9737
8d5f9dcb
DJ
97382004-03-29 Daniel Jacobowitz <drow@mvista.com>
9739
9740 * mips-tdep.c (mips_pdr_data): New.
9741 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
9742 (_initialize_mips_tdep): Initialize mips_pdr_data.
9743
66337bb1
CV
97442004-03-29 Corinna Vinschen <vinschen@redhat.com>
9745
9746 * minsyms.c (install_minimal_symbols): Move dropping leading
9747 char from linkage name from here...
9748 (prim_record_minimal_symbol_and_info): ...to here. Simplify
9749 test for "__gnu_compiled*" symbols.
9750
e802b915
JB
97512004-03-28 Jim Blandy <jimb@redhat.com>
9752
9753 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
9754 registers to temp register r0 and byte stores as prologue
9755 instructions.
9756
72b56458
AC
97572004-03-28 Andrew Cagney <cagney@redhat.com>
9758
9759 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
9760 arm*-*-*.
9761
0bfbda3b
SC
97622004-03-28 Stephane Carrez <stcarrez@nerim.fr>
9763
9764 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
9765 and switch the layout to force a display of register window.
9766
5a7225ed
JB
97672004-02-26 J. Brobecker <brobecker@gnat.com>
9768
9769 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
9770 of the INTEGER class.
9771
81a07a45
JB
97722004-03-26 Jim Blandy <jimb@redhat.com>
9773
9774 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
9775 bytes long on PPC GNU/Linux.
9776
8c691c7a
DC
97772004-03-26 David Carlton <carlton@kealia.com>
9778
9779 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
9780
103a0089
AC
97812004-03-25 Andrew Cagney <cagney@redhat.com>
9782
9783 * PROBLEMS: Add general section titles, remove references to
9784 specific releases.
9785
7a5ea0d4
DJ
97862004-03-25 Daniel Jacobowitz <drow@mvista.com>
9787
9788 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
9789 INT_REGISTER_SIZE.
9790 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
9791 FP_REGISTER_VIRTUAL_SIZE.
9792 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
9793 of DEPRECATED_REGISTER_RAW_SIZE.
9794 (arm_register_type): Add gdbarch argument.
9795 (arm_register_raw_size, arm_register_virtual_size): Delete.
9796 (arm_register_byte, arm_extract_return_value)
9797 (arm_store_return_value, arm_get_longjmp_target): Update references
9798 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
9799 (arm_gdbarch_init): Likewise. Don't set
9800 deprecated_register_raw_size, deprecated_register_virtual_size,
9801 deprecated_max_register_raw_size,
9802 deprecated_max_register_virtual_size, or
9803 deprecated_max_register_virtual_type. Do set register_type.
9804 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
9805 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
9806 (FP_REGISTER_VIRTUAL_SIZE): Delete.
9807 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
9808 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
9809 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
9810 INT_REGISTER_SIZE.
9811 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
9812 (remote_rdp_store_register): Likewise.
9813
5792a79b
DJ
98142004-03-24 Daniel Jacobowitz <drow@mvista.com>
9815
9816 * Makefile.in (mips-linux-tdep.o): Update dependencies.
9817 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
9818 to after osabi initialization.
9819 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
9820 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
9821 functions.
9822 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
9823 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
9824 variables.
9825 (mips_linux_init_abi): Append signal trampoline unwinders.
9826
1196bfda
AC
98272004-03-24 Andrew Cagney <cagney@redhat.com>
9828
9829 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
9830 * tramp-frame.c: Include "gdb_assert.h".
9831 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
9832 correct sizeof.
9833 (tramp_frame_append): Validate the tramp frame's instructions.
9834 * Makefile.in (tramp-frame.o): Update dependencies.
9835
4be282b4
AC
98362004-03-23 Andrew Cagney <cagney@redhat.com>
9837
9838 * trad-frame.h (trad_frame_set_reg_addr): Declare.
9839
69aec09b
AC
98402004-03-23 Andrew Cagney <cagney@redhat.com>
9841
9842 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
9843 Nasser as past testsuite/lib/ (and other) maintainers.
9844
63ed89b4
DJ
98452004-03-23 Daniel Jacobowitz <drow@mvista.com>
9846
9847 * infcmd.c (attach_command): Reread symbols if we already have
9848 an exec file.
9849
f3b36427
AC
98502004-03-23 Andrew Cagney <cagney@redhat.com>
9851
9852 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
9853
aa2a3f87
AC
98542004-03-23 Andrew Cagney <cagney@redhat.com>
9855
9856 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
9857 * gdbarch.h, gdbarch.c: Re-generate.
9858 * i386obsd-tdep.c (i386obsd_init_abi): Update.
9859 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
9860 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8718a420 9861 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87 9862 (DEPRECATED_SIGTRAMP_START): Update.
8718a420 9863 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87
AC
9864 (DEPRECATED_SIGTRAMP_START): Update.
9865 * blockframe.c (find_pc_sect_partial_function): Update.
9866 * arch-utils.c (legacy_pc_in_sigtramp): Update.
9867
00cac895
DJ
98682004-03-23 Daniel Jacobowitz <drow@mvista.com>
9869
9870 * remote.c (remote_open_1): Reopen the exec file and reread symbols
9871 if necessary.
9872
f561f026
AC
98732004-03-23 Andrew Cagney <cagney@redhat.com>
9874
9875 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
9876 predicate, deprecate.
9877 * gdbarch.h, gdbarch.c: Re-generate.
9878 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
9879 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
9880 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
9881 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
9882 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
9883 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
9884 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
9885 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
9886 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
9887 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
9888 * blockframe.c (find_pc_partial_function): Update.
9889 * breakpoint.c (bpstat_what): Update.
9890 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
9891 * frv-linux-tdep.c (frv_linux_init_abi): Update.
9892 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
9893 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
9894 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9895 * i386-linux-tdep.c (i386_linux_init_abi): Update.
9896 * i386-nto-tdep.c (i386nto_init_abi): Update.
9897 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
9898 * i386-tdep.c (i386_sigtramp_frame_sniffer)
9899 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
9900 * i386bsd-tdep.c (i386bsd_init_abi): Update.
9901 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
9902 * i386obsd-tdep.c (i386obsd_init_abi): Update.
9903 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
9904 * infrun.c (pc_in_sigtramp): Update.
9905 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
9906 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
9907 * mips-tdep.c (mips_gdbarch_init): Update.
9908 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
9909 * ppc-linux-tdep.c: Update comment.
9910 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
9911 * shnbsd-tdep.c (shnbsd_init_abi): Update.
9912 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
9913 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
9914 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
9915 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
9916 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
9917 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
9918 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
9919 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
8718a420 9920
8050c72f
AC
99212004-03-23 Andrew Cagney <cagney@redhat.com>
9922
d2259dd3
AC
9923 * tramp-frame.h, tramp-frame.h: New files.
9924 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
9925 Update rules to include "tramp-frame.h" and "tramp-frame.c".
9926
8050c72f
AC
9927 * Makefile.in: Update all dependencies.
9928
0db9b4b7
AC
99292004-03-23 Andrew Cagney <cagney@redhat.com>
9930
9931 * Makefile.in (trad_frame_h): Add $(frame_h).
9932 * trad-frame.h: Update copyright. Include "frame.h".
9933 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
9934 (trad_frame_set_id, trad_frame_get_id): Declare.
9935 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
9936 * trad-frame.c: Update copyright.
9937 (struct trad_frame_cache): Define.
9938 (trad_frame_cache_zalloc): New function.
9939 (trad_frame_set_id, trad_frame_get_id): New functions.
9940 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
8718a420 9941
8e645ae7
AC
99422004-03-22 Andrew Cagney <cagney@redhat.com>
9943
9944 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
9945 s390_pltstub_unwind_cache.
9946 (s390_stub_frame_unwind_cache): Rename
9947 s390_pltstub_frame_unwind_cache.
9948 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
9949 (s390_stub_frame_prev_register): Rename
9950 s390_pltstub_frame_prev_register.
9951 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
9952 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
9953
9954 From Ulrich Weigand:
9955 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
9956 pointer calls like PLT calls.
9957
34fcf120
DJ
99582004-03-22 Daniel Jacobowitz <drow@mvista.com>
9959
9960 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
9961 PC rather than the partial function start address. Use the start
9962 address to sanity check the found PDR.
9963
5b917078
DJ
99642004-03-22 Daniel Jacobowitz <drow@mvista.com>
9965
9966 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
9967 linux_handle_extended_wait.
9968
8adf9e78
AC
99692004-03-22 Andrew Cagney <cagney@redhat.com>
9970
c3122434
AC
9971 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
9972 function.
9973
8adf9e78
AC
9974 * frame.h (generic_pop_current_frame): Delete declaration.
9975 (deprecate_pop_dummy_frame): Deprecate
9976 generic_pop_dummy_frame.
9977 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
9978 (generic_pop_current_frame): Delete function.
9979 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
9980 generic_pop_current_frame.
9981 * v850-tdep.c (v850_pop_frame): Update.
9982 * mcore-tdep.c (mcore_pop_frame): Update.
9983 * sh64-tdep.c (sh64_pop_frame): Update.
9984 * h8300-tdep.c (h8300_pop_frame): Update.
9985
90ba813f
AC
99862004-03-22 Andrew Cagney <cagney@redhat.com>
9987
9988 * frame.h (deprecated_pc_in_call_dummy): Rename
9989 generic_pc_in_call_dummy.
9990 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
9991 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
9992 generic_pc_in_call_dummy.
9993 (pc_in_dummy_frame): Make static.
9994 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
9995 * gdbarch.h, gdbarch.c: Re-generate.
9996 * dummy-frame.c (dummy_frame_sniffer): Simplify.
9997 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
9998 (legacy_get_prev_frame): Ditto.
9999 * inferior.h: Delete reference to generic_pc_in_call_dummy in
10000 comment.
8718a420 10001
ca4bb888
AC
100022004-03-21 Andrew Cagney <cagney@redhat.com>
10003
244675f9
AC
10004 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
10005 declaration and out-of-date comment.
10006 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
10007 Delete function.
10008 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
10009 deprecated_pc_in_call_dummy.
10010
ca4bb888
AC
10011 * infrun.c (handle_inferior_event): For non legacy frames, use the
10012 frame ID and frame type to identify a signal trampoline. Update
10013 comments.
10014
1777c7b4
NW
100152004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
10016
10017 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
10018 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
10019
82417da5
AC
100202004-03-21 Andrew Cagney <cagney@redhat.com>
10021
10022 * frame-unwind.h: Update copyright.
10023 (struct frame_data): Add opaque declaration.
10024 (frame_sniffer_ftype): Declare.
10025 (struct frame_unwind): Add "unwind_data" and "sniffer".
10026 (frame_unwind_register_unwinder): Declare.
10027 (frame_unwind_find_by_frame): Add parameter "this_cache".
10028 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
10029 (legacy_get_prev_frame, legacy_get_prev_frame)
10030 (get_frame_type): Pass the prologue_cache to
10031 frame_unwind_find_by_frame.
10032 * frame-unwind.c (struct frame_unwind_table_entry): Add field
10033 "unwinder".
10034 (frame_unwind_register_unwinder): New function.
10035 (frame_unwind_find_by_frame): Handle an unwind sniffer.
10036
b2ba182e
PH
100372004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
10038
10039 * bcache.c (print_percentage): Use floating point to avoid
10040 incorrect results when portion*100 overflows.
10041
81332287
KB
100422004-03-19 Kevin Buettner <kevinb@redhat.com>
10043
10044 * ppc_tdep.h (ppc_linux_frame_saved_pc)
10045 (ppc_linux_init_extra_frame_info)
10046 (ppc_linux_frameless_function_invocation)
10047 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
10048 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
10049 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
10050 (rs6000_frame_chain): Delete declarations.
10051 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
10052 (ppc_linux_init_extra_frame_info)
10053 (ppc_linux_frameless_function_invocation)
10054 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
10055 (ppc_linux_init_abi): Remove registration of above deleted functions.
10056 * rs6000-tdep.c (rs6000_init_extra_frame_info)
10057 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
10058 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
10059 (rs6000_pop_frame, rs6000_frameless_function_invocation)
10060 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
10061 (rs6000_gdbarch_init): Remove registration of above deleted functions.
10062 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
10063 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
10064 frame management for all OSABIs.
10065
61a65099
KB
100662004-03-19 Andrew Cagney <cagney@redhat.com>
10067
10068 Committed by Kevin Buettner <kevinb@redhat.com>.
10069
10070 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
10071 Update copyright.
10072 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
10073 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
10074 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
10075 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
10076 unwinders. #ifdef legacy frame code.
10077 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
10078 "frame-base.h".
10079 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
10080 (struct rs6000_frame_cache, rs6000_frame_cache)
10081 (rs6000_frame_this_id, rs6000_frame_prev_register)
10082 (rs6000_frame_sniffer, rs6000_frame_unwind)
10083 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
10084 (rs6000_frame_base): Implement a traditional frame unwinder.
10085 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
10086 frame unwinder.
10087
88f7da05
KB
100882004-03-19 Kevin Buettner <kevinb@redhat.com>
10089
10090 * breakpoint.c (adjust_breakpoint_address): Don't adjust
10091 breakpoint address for watchpoints or the catch eventpoints.
10092 Add new paramter ``bptype''. Adjust all callers.
10093
f826dce1
AC
100942004-03-19 Andrew Cagney <cagney@redhat.com>
10095
33cb8b0f
AC
10096 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
10097
f826dce1
AC
10098 * PROBLEMS: Delete note that ARM does not use frame code, problem
10099 fixed.
10100
43b1ab88
AC
101012004-03-18 Andrew Cagney <cagney@redhat.com>
10102
292ab034
AC
10103 * stack.c (return_command): Delete code wrapped in #ifdef
10104 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
10105
43b1ab88
AC
10106 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
10107
dbfe4626
AC
101082004-03-18 Andrew Cagney <cagney@redhat.com>
10109
10110 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
10111 DEPRECATED_IN_SIGTRAMP.
10112 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10113 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
10114 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10115 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10116 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10117 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10118 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10119 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10120 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
10121 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
10122
0cad6aec
AC
101232004-03-18 Andrew Cagney <cagney@redhat.com>
10124
10125 * frame-base.c: Update copyright. Include "gdb_obstack.h".
10126 (struct frame_base_table_entry): Define.
10127 (struct frame_base_table): Re-implement as a linked list.
10128 (frame_base_init): Re-implement.
10129 (frame_base_table): Delete function.
10130 (append_predicate): Delete function.
10131 (frame_base_append_sniffer): Update.
10132 (frame_base_set_default): Update.
10133 (frame_base_find_by_frame): Update.
10134 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
10135 * Makefile.in (frame-base.o): Update dependencies.
10136
9982c2e7
AC
101372004-03-17 Andrew Cagney <cagney@redhat.com>
10138
10139 * frame.c (legacy_get_prev_frame): Pass correct frame to
10140 frame_unwind_find_by_frame.
10141
8dfe8985
DC
101422004-03-17 David Carlton <carlton@kealia.com>
10143
10144 * NEWS: Mention C++ nested types and namespaces
10145
ed47347a
MC
101462004-03-16 Michael Chastain <mec.gnu@mindspring.com>
10147
10148 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
10149 and "Regressions since gdb 5.3.". Add known regressions since
10150 gdb 6.0.
10151
90aeadfc
DC
101522004-03-16 David Carlton <carlton@kealia.com>
10153
10154 * dwarf2read.c (process_structure_scope): Process children even
10155 when we're a declaration.
10156
73912b9b
AC
101572004-03-16 Andrew Cagney <cagney@redhat.com>
10158
10159 * symtab.h (find_pc_sect_partial_function): Delete declaration.
10160 * blockframe.c (find_pc_partial_function)
10161 (find_pc_sect_partial_function): Merge into a single
10162 find_pc_partial_function.
10163
283accbc
MK
101642004-03-16 Mark Kettenis <kettenis@gnu.org>
10165
10166 * i386bsd-nat.c: s/regno/regnum/g.
10167 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
10168 FP0_REGNUM.
10169 (store_inferior_registers): Likewise.
10170
f5b1afdf
MK
101712004-03-16 Mark Kettenis <kettenis@gnu.org>
10172
10173 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
10174 of i387_fill_fsave.
10175 (store_inferior_registers): Call i387_collect_fsave and
10176 i387_collect_fxsave instead of i387_fill_fsave and
10177 i387_fill_fxsave.
10178
41fe5eb3
AC
101792004-03-15 Andrew Cagney <cagney@redhat.com>
10180
10181 * Makefile.in (frame-unwind.o): Update dependencies.
10182 * frame-unwind.c: Include "gdb_obstack.h".
10183 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
10184 parameter.
10185 (append_predicate): Delete function.
10186 (struct frame_unwind_table_entry): New structure.
10187 (struct frame_unwind_table): Replace "sniffer" with "head" and
10188 "tail".
10189 (frame_unwind_append_sniffer): Update.
10190 (frame_unwind_find_by_frame): Update.
10191 (_initialize_frame_unwind): Registe frame_unwind_init using
10192 gdbarch_data_register_pre_init.
10193
3f63813d
MK
101942004-03-15 Mark Kettenis <kettenis@gnu.org>
10195
10196 * i386bsd-nat.c: Update copyright year.
10197 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
10198 define unconditionally.
10199
3248c325 102002004-03-15 Mark Kettenis <kettenis@gnu.org>
63b6c53f
MK
10201
10202 * i387-tdep.h (i387_collect_fsave): New prototype.
10203 * i387-tdep.c (i387_collect_fsave): New function containing most
10204 of the code from i387_fill_fsave.
3248c325 10205 (i387_fill_fsave): Call i387_collect_fsave.
63b6c53f 10206
871fbe6a
MK
102072004-03-15 Mark Kettenis <kettenis@gnu.org>
10208
10209 * i386-linux-tdep.c: Update copyright year.
10210 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
10211 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
10212 svr4_ilp32_link_map_offsets instead of
10213 i386_linux_svr4_fetch_link_map_offsets.
10214
8176b9b8
DC
102152004-03-15 David Carlton <carlton@kealia.com>
10216
10217 Fix for PR c++/1553:
10218 * dwarf2read.c (read_structure_type): Determine type name by
10219 calling determine_class_name.
10220 (determine_class_name): New.
10221 (determine_prefix): Look at TYPE_TAG_NAME and call
10222 determine_class_name when appropriate.
10223 (determine_prefix_aux, class_name): Delete.
9d58e29d 10224 (read_namespace): Set die->type.
8176b9b8 10225
fe8bf7d7
KB
102262004-03-15 Kevin Buettner <kevinb@redhat.com>
10227
10228 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
10229 unused macro definition. The definition in target.h (or perhaps
10230 elsewhere) takes precedence.
10231
ed6edd9b
AC
102322004-03-15 Andrew Cagney <cagney@redhat.com>
10233
f9be684a
AC
10234 * ppc-tdep.h: Update copyright.
10235 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
10236 function signatures to match "regsets.h".
10237 * ppc-linux-tdep.c: Include "regset.h".
10238 (ELF_GREGSET_SIZE): Delete.
10239 (right_supply_register): New function.
10240 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
10241 using right_supply_register.
10242 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
10243 functions.
10244 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
10245 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
10246 (_initialize_ppc_linux_tdep): Do not register
10247 ppc_linux_regset_core_fns.
10248 (ppc_linux_regset_from_core_section): Replace
10249 fetch_core_registers.
10250 (ppc_linux_regset_core_fns): Delete.
10251 * ppc-linux-nat.c: (right_fill_reg): New function.
10252 (supply_gregset): Update call to ppc_linux_supply_gregset.
10253 (fill_gregset): Clear the register set, use right_fill_reg.
10254 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
10255 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
10256
ed6edd9b
AC
10257 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
10258 unsigned.
10259
030f20e1
AC
102602004-03-15 Andrew Cagney <cagney@redhat.com>
10261
10262 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
10263 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
10264 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
10265 and register_gdbarch_data.
10266 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
10267 (struct gdbarch_data): Replace "init" by "pre_init" and
10268 "post_init".
10269 * gdbarch.h, gdbarch.c: Re-generate.
10270 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
10271 with"obstack", use OBSTACK_ZALLOC.
10272 (dwarf2_frame_ops): Delete.
10273 (dwarf2_frame_set_init_reg): Use gdbarch_data.
10274 (dwarf2_frame_init_reg): Use gdbarch_data.
10275 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
8718a420 10276 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
030f20e1
AC
10277 (_initialize_svr4_solib): Update.
10278 * user-regs.c (_initialize_user_regs): Update.
10279 * reggroups.c (_initialize_reggroup): Update.
10280 * regcache.c (_initialize_regcache): Update.
10281 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
10282 * libunwind-frame.c (_initialize_libunwind_frame): Update.
10283 * gnu-v3-abi.c (init_gnuv3_ops): Update.
10284 * frame-unwind.c (_initialize_frame_unwind): Update.
10285 * frame-base.c (_initialize_frame_base): Update.
10286 * user-regs.c (user_reg_add): Update.
10287 * reggroups.c (reggroup_add): Update.
10288 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
10289 * libunwind-frame.c (libunwind_frame_set_descr): Update.
10290 * frame-unwind.c (frame_unwind_append_sniffer): Update.
10291 * frame-base.c (frame_base_table): Update.
10292 * remote.c (_initialize_remote): Update.
10293 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
8718a420 10294
3111a3fc
AC
102952004-03-15 Andrew Cagney <cagney@redhat.com>
10296
10297 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
10298
5ecb7103
KB
102992004-03-15 Kevin Buettner <kevinb@redhat.com>
10300
10301 * Makefile.in (frv-linux-tdep.o): Add dependencies.
10302 * frv-linux-tdep.c: New file.
10303 * frv-tdep.c (struct gdbarch_tdep): Add new field
10304 ``sigcontext_reg_addr''.
10305 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
10306 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
10307 (frv_sigramp_frame_sniffer): New functions.
10308 (frv_sigtramp_frame_unwind): New static global.
10309 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
10310 sniffers.
10311 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
10312 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
10313
1ccda5e9
KB
103142004-03-15 Kevin Buettner <kevinb@redhat.com>
10315
10316 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
10317 but not via a call to error(), when unable to read memory.
10318
b375a0a5
KB
103192004-03-15 Kevin Buettner <kevinb@redhat.com>
10320
10321 * frv-tdep.c (frv_call_dummy_words): Delete.
10322 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
10323
4fdf6121
AC
103242004-03-15 Andrew Cagney <cagney@redhat.com>
10325
10326 * infrun.c (handle_step_into_function, step_over_function): Only
10327 update and use STEP_FRAME_ID when the system is using legacy
10328 frames. Update comments.
10329
34021503
MK
103302004-03-14 Mark Kettenis <kettenis@gnu.org>
10331
187e21d1
MK
10332 * amd64-linux-tdep.h: Remove file.
10333 * amd64-linux-tdep.c: Don't include "inferior.h" and
10334 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
10335 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
10336 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
10337 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
10338 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
10339 macros.
10340 (user_to_gdb_regmap): Remove variable.
10341 (amd64_linux_gregset_reg_offset): New variable.
10342 (amd64_core_fns): Remove variable.
10343 (fetch_core_registers): Remove function.
10344 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
10345 functions.
10346 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
10347 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
10348 * Makefile.in (amd64_linux_tdep_h): Remove.
10349 (amd64-linux-nat.o): Update dependencies.
10350 (amd64-linux-tdep.o): Update dependencies.
10351
99679982
MK
10352 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
10353 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
10354 functions.
10355 (fetch_inferior_registers, store_inferior_registers): Rewrite.
10356
34021503
MK
10357 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
10358 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
10359
134d01f1
DJ
103602004-03-14 Daniel Jacobowitz <drow@mvista.com>
10361
10362 * dwarf2read.c (read_structure_type): Rename from
8718a420 10363 read_structure_scope. Don't create a symbol or call process_die.
134d01f1
DJ
10364 Return immediately if die->type is set. Call read_type_die before
10365 dwarf2_add_member_fn.
10366 (process_structure_scope): New function.
10367 (read_enumeration_type, process_enumeration_scope): New functions,
10368 broken out from read_enumeration. Don't create the enumeration
10369 type if it has already been created.
10370 (read_enumeration): Removed.
10371 (process_die): Call read_structure_type, process_structure_scope,
10372 read_enumeration_type, and process_enumeration_scope. Just call
10373 new_symbol for base and subrange types. Add a comment about other
10374 type dies.
10375 (read_type_die): Call read_enumeration_type.
10376 (add_partial_structure, new_symbol): Update comments.
10377
65760afb
SC
103782004-03-13 Stephane Carrez <stcarrez@nerim.fr>
10379
10380 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
10381
10f59415
SC
103822004-03-13 Stephane Carrez <stcarrez@nerim.fr>
10383
10384 * tui/tui-win.h (tui_get_cmd_list): Declare.
10385 * tui/tui-win.c (tui_command): New function.
10386 (tui_get_cmd_list): New function.
10387 (_initialize_tui_win): Moved initialization of tui command in
10388 tui_get_cmd_list.
10389
10390 * tui/tui-data.c (init_content_element): Setup new data members.
10391 (init_win_info): Likewise.
10392 (free_content_elements): Free it.
10393 * tui/tui-data.h (struct tui_data_element): Store the register
10394 content to print.
10395 (struct tui_data_info): Keep the current register group.
10396
10397 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
10398
10399 * tui/tui-regs.h (tui_show_registers): Update prototype.
10400 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
10401 (tui_resize_all): No need to calculate anything for register window.
10402 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
10403 (tui_set_register_element, tui_set_general_regs_content): Remove.
10404 (tui_set_special_regs_content): Remove.
10405 (tui_set_general_and_special_regs_content): Remove.
10406 (tui_set_float_regs_content): Remove.
10407 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
10408 (tui_set_regs_content): Remove.
10409 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
10410 (tui_v_show_registers_command_support): Remove.
10411 (tui_show_registers): Use a reggroup to specify the registers to show.
10412 (tui_show_register_group): New function.
10413 (tui_display_registers_from): Compute the layout of register window
10414 and refresh with new API; be sure to delete old register windows.
10415 (tui_check_register_values): Update to use tui_get_register and
10416 tui_display_data.
10417 (tui_display_register): Just refresh the register window part.
10418 (tui_register_format): Format registers and save in tui_data_element.
10419 (tui_get_register): New to combine tui_reg_value_has_changed and
10420 tui_get_register_raw_value; fix to use the new gdb API.
10421 (tui_show_float_command): Renamed tui_reg_float_command.
10422 (tui_show_general_command): Renamed tui_reg_general_command.
10423 (tui_show_special_command): Renamed tui_reg_system_command.
10424 (_initialize_tui_regs): Remove unused commands.
10425
c3364ea4
MK
104262004-03-13 Mark Kettenis <kettenis@gnu.org>
10427
27d1e716
MK
10428 * NEWS (New native configurations): Mention OpenBSD/amd64.
10429
c3364ea4
MK
10430 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
10431 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
10432 Remove defines.
10433 * config/i386/nm-fbsd64.h: Likewise.
10434 * config/i386/nm-obsd.h: Likewise.
10435 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
10436 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
10437
b2d6d697
KB
104382004-03-12 Kevin Buettner <kevinb@redhat.com>
10439
10440 * frv-tdep.c (set_variant_scratch_registers): New function.
b2d6d697
KB
10441 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
10442 New constants.
10443
76e43199
KB
10444 From Richard Sandiford <rsandifo@redhat.com>:
10445 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
10446
34ce532e
KB
104472004-03-12 Kevin Buettner <kevinb@redhat.com>
10448
10449 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
10450 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
10451 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
10452 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
10453 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
10454 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
10455 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
10456 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
10457 definitions from frv-tdep.c to frv-tdep.h.
10458
c4d10515
KB
104592004-03-12 Kevin Buettner <kevinb@redhat.com>
10460
10461 Add shared library support for FR-V FDPIC ABI:
10462 * Makefile.in (solib-frv.o): Add dependencies.
10463 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
10464 New functions.
10465 (frv_push_dummy_call): Add support for FDPIC ABI.
10466 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
10467 for FDPIC ABI.
10468 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
10469 (frv_fdpic_find_canonical_descriptor): Declare.
10470 * solib-frv.c: New file.
10471 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
10472 * config/frv/tm-frv.h (solib.h): Include.
10473
ed1bd989
KB
104742004-03-12 Kevin Buettner <kevinb@redhat.com>
10475
10476 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
10477 (frv-tdep.o): Update dependencies.
10478 * frv-tdep.h: New file.
10479 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
10480 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
10481 constants.
10482 (struct gdbarch_tdep): Add new member ``frv_abi''.
10483 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
10484 functions.
10485 (new_variant): Set ``frv_abi'' field.
10486 (gdb_arch_init): Detect FDPIC executables.
10487
82b38f72
MK
104882004-03-12 Mark Kettenis <kettenis@gnu.org>
10489
10490 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
10491 wrapper.
10492
db1ea9ba
AC
104932004-03-11 Andrew Cagney <cagney@redhat.com>
10494
10495 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
10496
f8766ec1
KB
104972004-03-11 Kevin Buettner <kevinb@redhat.com>
10498
10499 * solist.h (master_so_list): New function.
10500 * solib.c (master_so_list): Likewise.
10501 * solib-svr4.c (enable_break): Iterate over so_list entries
10502 obtained from master list instead of entries obtained directly
10503 via svr4_current_sos().
10504
523f6a27
BE
105052004-03-10 Ben Elliston <bje@gnu.org>
10506
10507 * MAINTAINERS: Update my mail address.
10508
37814c18
KI
105092004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
10510
10511 * remote-m32r-sdi.c: Support hardware watchpoint.
10512
8b9740d8
DJ
105132004-03-09 Daniel Jacobowitz <drow@mvista.com>
10514
10515 * user-regs.c: Update copyright years.
10516 (struct user_regs): Rename to gdb_user_regs.
10517 (append_user_reg, builtin_user_regs, user_regs_init)
10518 (user_reg_add, user_reg_map_name_to_regnum)
10519 (usernum_to_user_reg): Update.
10520
4bb7a0a7
DJ
105212004-03-09 Daniel Jacobowitz <drow@mvista.com>
10522
10523 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
10524 (skip_children): New functions.
10525 (locate_pdi_sibling): Call skip_children.
10526
44e1a9eb
DJ
105272004-03-09 Daniel Jacobowitz <drow@mvista.com>
10528
10529 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
10530 * gdbtypes.c (check_typedef): Update comments.
10531
f3dd6933
DJ
105322004-03-09 Daniel Jacobowitz <drow@mvista.com>
10533
10534 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
10535 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
10536 pointer. Update comment about comp_unit_head.
10537 (struct abbrev_info): Shorten two int flags.
10538 (dwarf_alloc_abbrev): Take a CU argument.
10539 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
10540 each time through the loop. Update cleanup argument.
10541 (psymtab_to_symtab_1): Update cleanup call.
10542 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
10543 abbrev_obstack.
10544 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
10545 Just call obstack_free and clear the pointer.
10546
b40c7d58
DJ
105472004-03-09 Daniel Jacobowitz <drow@mvista.com>
10548
10549 * infrun.c (handle_inferior_event): Remove short-circuit code for
10550 events in a different thread.
10551
333dabeb
DJ
105522004-03-09 Daniel Jacobowitz <drow@mvista.com>
10553
10554 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
10555 print the whole transfer.
10556 (initialize_targets): Update description of "set debug target".
10557
aa17d93e
DJ
105582004-03-09 Daniel Jacobowitz <drow@mvista.com>
10559
10560 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
10561
0b71f08f
NW
105622004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
10563
10564 * MAINTAINERS (write after approval): Add myself.
10565
3930f270
CV
105662004-03-08 Corinna Vinschen <vinschen@redhat.com>
10567
10568 * sh-tdep.c (sh_print_registers_info): Use for loop.
10569 Don't skip multiple registers when a float register is encountered.
10570
a2b4a96c
CV
105712004-03-08 Corinna Vinschen <vinschen@redhat.com>
10572
10573 Fix PR tdep/1291.
10574 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
10575 to official SH documentation.
10576
f15a4bc0
AC
105772004-03-07 Andrew Cagney <cagney@redhat.com>
10578
10579 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
10580 unused function.
10581
9498281f
DJ
105822004-03-07 Daniel Jacobowitz <drow@mvista.com>
10583
10584 * arm-tdep.c (thumb_get_next_pc): Handle BX.
10585 (arm_get_next_pc): Handle BX and BLX.
10586
449e1137
AC
105872004-03-07 Andrew Cagney <cagney@redhat.com>
10588
eded0a31
AC
10589 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
10590 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
10591 HPPA_SP_REGNUM.
10592 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
10593 (hppa_target_read_fp): Delete.
10594 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
10595 register_virtual_size, max_register_raw_size,
10596 max_register_virtual_size, register_byte, register_size,
10597 target_read_fp, fp_regnum, and register_bytes. Set register_type
10598 instead of register_virtual_type.
10599 (hppa32_register_type, hppa64_register_type): Replace
10600 hppa32_register_virtual_type and hppa64_register_virtual_type.
10601 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
10602 (HPPA_FP_REGNUM): Define.
10603
f5f907e2
AC
10604 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
10605
69b4bbe4
AC
10606 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
10607 (pa_do_registers_info): Delete.
10608 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
8718a420 10609 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
69b4bbe4 10610 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
f5f907e2 10611
78161e48
AC
10612 * infcall.c (legacy_push_dummy_code): Delete #ifdef
10613 GDB_TARGET_IS_HPPA code.
10614 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
8718a420 10615 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
78161e48
AC
10616 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
10617 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
8718a420
RM
10618 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
10619 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
10620 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
78161e48 10621 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
8718a420
RM
10622 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
10623 (hppa_frameless_function_invocation, hppa64_store_return_value)
10624 (hppa_store_struct_return, hppa64_extract_return_value)
78161e48 10625 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
8718a420 10626 (hppa32_call_dummy_length, hppa64_call_dummy_length)
78161e48 10627 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
8718a420
RM
10628 (find_proc_framesize, deposit_21, restore_pc_queue)
10629 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
210197d2 10630 (rp_saved, pc_in_linker_stub): Delete.
78161e48 10631
782eae8b
AC
10632 Unconditionally enable 64-bit frame and ABI code.
10633 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
10634 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
10635 push_dummy_frame, fix_call_dummy, push_arguments,
10636 call_dummy_location, extract_return_value, use_struct_convention,
10637 store_return_value, store_struct_return, saved_pc_after_call,
10638 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
10639 frame_chain, frame_chain_valid, frameless_function_invocation,
10640 frame_saved_pc, and pop_frame.
78161e48 10641
449e1137
AC
10642 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
10643 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
10644 (hppa_gdbarch_init): Do not set PC_REGNUM.
10645
12507572
MK
106462004-03-06 Mark Kettenis <kettenis@gnu.org>
10647
10648 * config/alpha/tm-fbsd.h: Remove file.
10649 * config/alpha/fbsd.mt: Tweak comment.
10650 (TM_FILE): Set to tm-alpha.h.
10651
c107cc1b
AC
106522004-03-05 Andrew Cagney <cagney@redhat.com>
10653
10654 * infrun.c (step_over_function): When non-legacy code, and no
10655 step_frame_id, use the unwinder to get the caller's frame ID.
10656
f2e7c15d
MK
106572004-03-05 Mark Kettenis <kettenis@gnu.org>
10658
8b0c3633
MK
10659 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
10660 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
10661 bfd_arch_unknown. Adjust comment.
10662
f2e7c15d
MK
10663 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
10664 * i386obsd-tdep.c: Correct spelling in comment.
10665 * i386nbsd-tdep.c: Correct spelling in comment.
10666 * sparc-tdep.c: Correct spelling in comments.
10667
1198ecbe
DC
106682004-03-05 David Carlton <carlton@kealia.com>
10669
10670 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
10671 bug.
10672
9eb42ed1
MK
106732004-03-05 Mark Kettenis <kettenis@gnu.org>
10674
10675 * sparc-tdep.c: Fix typo in comment.
10676
52b5e991
JB
106772004-03-04 J. Brobecker <brobecker@gnat.com>
10678
10679 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
10680
d8151005
DJ
106812004-03-04 Daniel Jacobowitz <drow@mvista.com>
10682
10683 * dwarf2read.c: Add comment describing memory lifetimes.
10684 (struct dwarf2_pinfo): Update comment.
10685 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
10686 (read_enumeration, new_symbol): Don't use obsavestring.
10687
cbeae229
MK
106882004-03-04 Mark Kettenis <kettenis@gnu.org>
10689
722d18c2
MK
10690 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
10691 instead of amd64_fill_fxsave.
10692 * amd64bsd-nat.c (store_inferior_registers): Likewise.
10693 * amd64fbsd-nat.c (fill_fpregset): Likewise.
10694
cbeae229
MK
10695 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
10696 Reorganize code a bit.
10697
b4206d25
OF
106982004-03-04 Orjan Friberg <orjanf@axis.com>
10699
10700 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
8718a420
RM
10701 when the frame pointer is pushed. Don't set the frame pointer's
10702 address on the stack unless it's actually located there.
b4206d25
OF
10703 Set the SRP's address on the stack correctly when the PC is still in
10704 the prologue.
10705 (cris_return_value): New function.
10706 (cris_gdbarch_init): Clear deprecated store_return_value,
10707 extract_return_value.
10708
49b0b195
JB
107092004-03-02 Jim Blandy <jimb@redhat.com>
10710
10711 * stabsread.c (reg_value_complaint): The maximum register number
10712 is one less than the number of registers.
10713
e9ff708b
AC
107142004-03-02 Andrew Cagney <cagney@redhat.com>
10715
10716 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
10717 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
10718 trailing comma and redundant assignment of I386_ST0_REGNUM.
10719 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
10720 32-bit segment registers.
10721
d4715e41
AC
107222004-03-01 Andrew Cagney <cagney@redhat.com>
10723
10724 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
10725 use frame_relative_level and get_next_frame.
10726
3ce2bf18
AC
107272004-02-29 Andrew Cagney <cagney@redhat.com>
10728
10729 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
10730 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
10731 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
10732 Delete macro.
10733
2da6aac3
DJ
107342004-02-29 Daniel Jacobowitz <drow@mvista.com>
10735
10736 * inflow.c (terminal_inferior): Don't give up the terminal if we
10737 previously couldn't get the inferior's terminal state.
10738
6ba34a8d
DJ
107392004-02-29 Daniel Jacobowitz <drow@mvista.com>
10740
10741 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
10742 PC_REGNUM.
10743
faae5abe
AC
107442004-02-28 Andrew Cagney <cagney@redhat.com>
10745
10746 * NEWS: Refer to GDB 6.1.
10747 * README: Refer to GDB 6.1.
10748 * PROBLEMS: Refer to GDB 6.1.
10749
2227a3c5
DJ
107502004-02-28 Daniel Jacobowitz <drow@mvista.com>
10751
10752 * thread-db.c (disable_thread_signals): Remove unused function.
10753
80571bff
MK
107542004-02-28 Mark Kettenis <kettenis@gnu.org>
10755
041bd74b
MK
10756 * amd64-nat.c: Include "gdb_string.h".
10757 (amd64_collect_native_gregset): Zero-extend the 32-bit
10758 general-purpose registers and %eip.
10759
3c017e40
MK
10760 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
10761 * amd64-tdep.c (amd64_collect_fxsave): New function.
10762 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
10763
80571bff
MK
10764 * i387-tdep.h: Update copyright year.
10765 (i387_collect_fxsave): New prototype.
10766 * i387-tdep.c: Update copyright year.
10767 (i387_collect_fxsave): New function containing most of the code
10768 from i387_fill_fxsave.
10769 (i387_fill_fxsave): Call i387_collect_fxsave.
10770
50d71875
AC
107712004-02-28 Andrew Cagney <cagney@redhat.com>
10772
10773 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
10774 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
10775
4a28816e
MK
107762004-02-28 Mark Kettenis <kettenis@gnu.org>
10777
10778 * amd64-tdep.c (amd64_frame_cache): Fix comment.
10779
dbda9972
AC
107802004-02-28 Andrew Cagney <cagney@redhat.com>
10781
10782 * utils.c: Use "", instead of <>, to include readline.
10783 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
10784 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
10785 * source.c, solib.c, exec.c, event-top.c: Ditto.
10786 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
10787 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
10788 * Makefile.in: Update all dependencies.
10789 (readline_tilde_h, readline_history_h): Define.
10790 (readline_headers): Delete.
10791
83277a99
MK
107922004-02-28 Mark Kettenis <kettenis@gnu.org>
10793
91ae4303
MK
10794 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
10795 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
10796 "config/i386/tm-lx64.h".
10797
83277a99
MK
10798 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
10799 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
10800 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
10801
6e1d7d6c
AC
108022004-02-28 Andrew Cagney <cagney@redhat.com>
10803
ecc9ac84
AC
10804 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
10805
6e1d7d6c
AC
10806 * breakpoint.c (_initialize_breakpoint): Use
10807 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
10808 Add help to show command.
10809
9671aeef
MK
108102004-02-28 Mark Kettenis <kettenis@gnu.org>
10811
7fa2737c
MK
10812 * i386-nat.c: Reformat to be closer to coding standards.
10813 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
10814 `retval'. Make variables `align' and `size' local to while-loop.
10815 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
10816 (_initialize_i386_nat): New prototype.
10817
9671aeef
MK
10818 * tui/tui.c: Include <readline/readline.h> instead of
10819 "readline/readline.h". Include it after <term.h> and
10820 "gdb_curses.h".
10821
fca7aa43
AC
108222004-02-27 Andrew Cagney <cagney@redhat.com>
10823
412275d5
AC
10824 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
10825 the new frame unwind code.
10826 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
10827 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
10828 PCOQ_HEAD_REGNUM.
10829
fca7aa43
AC
10830 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
10831 "return_value" and "push_dummy_call".
10832 (hppa32_use_struct_convention): Delete unused function.
10833 (hppa32_store_return_value): Delete unused function.
10834 (hppa32_extract_return_value): Delete unused function.
10835 (hppa32_stack_align): Delete function.
10836
e6a8a7d2
EZ
108372004-02-27 Eli Zaretskii <eliz@elta.co.il>
10838
10839 * coffread.c (enter_linenos): Don't let rawptr reference memory
10840 outside linetab[]'s limits.
10841
1797a8f6
AC
108422004-02-27 Andrew Cagney <cagney@redhat.com>
10843
10844 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
10845 inferior stack space - the stack needs to grow upwards.
10846 (hppa32_frame_align): New function.
10847 (hppa64_frame_align): Replace hppa_frame_align.
10848 (hppa_gdbarch_init): Update.
10849
2e4b5889
OF
108502004-02-26 Orjan Friberg <orjanf@axis.com>
10851
10852 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
10853 (dwarf2-frame.h): Include.
10854 (enum cris_regnums): New enum CRIS_FP_REGNUM.
10855 Remove static variables related to ABI setting.
10856 (struct gdbarch_tdep): Remove cris_abi member.
10857 (struct frame_extra_info): Remove.
10858 (cris_unwind_cache, stack_item): New structs.
10859 (cris_frame_unwind, cris_frame_base): New variables.
10860 (push_stack_item, pop_stack_item)
10861 (cris_frame_unwind_cache, cris_frame_this_id)
10862 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
10863 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
10864 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
10865 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
10866 (cris_reg_struct_has_addr): New functions.
10867 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
8718a420 10868 (cris_frame_saved_pc, cris_saved_pc_after_call,
2e4b5889
OF
10869 (cris_store_struct_return, cris_frameless_function_invocation)
10870 (cris_pop_frame, cris_skip_prologue_main)
10871 (cris_abi_original_store_return_value)
10872 (cris_abi_v2_store_return_value)
10873 (cris_abi_original_extract_return_value)
10874 (cris_abi_v2_extract_return_value)
10875 (cris_abi_original_reg_struct_has_addr)
10876 (cris_abi_v2_reg_struct_has_addr)
10877 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
10878 (cris_push_return_address, cris_abi_update): Remove.
10879 (_initialize_cris_tdep): Remove ABI command.
10880 (cris_dump_tdep): Ditto.
8718a420 10881 (cris_gdbarch_init): Remove ABI command.
2e4b5889
OF
10882 Set store_return_value, extract_return_value, push_dummy_code,
10883 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
10884 frame_unwind_append_sniffer, frame_base_set_default.
10885 Clear deprecated init_frame_pc, push_arguments, store_return_value,
10886 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
10887 sizeof_call_dummy_words, get_saved_register, push_return_address,
8718a420 10888 pop_frame, store_struct_return, frame_init_saved_regs,
2e4b5889
OF
10889 init_extra_frame_info, frameless_function_invocation, frame_chain,
10890 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
10891 dummy_write_sp.
8718a420 10892
6b9acc27
JJ
108932004-02-26 Jeff Johnston <jjohnstn@redhat.com>
10894
10895 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
10896 * valprint.c (print_hex_chars): Change from static to external.
10897 (print_char_chars): New function.
10898 * printcmd.c (print_scalar_formatted): For integer and enum types
10899 that are longer than LONGEST, perform processing via appropriate
10900 print_*_chars routines.
10901
a431654a
AC
109022004-02-26 Andrew Cagney <cagney@redhat.com>
10903
10904 * Makefile.in: Update dependencies.
10905 Changes from Ulrich Weigand,
10906 * s390-tdep.c: Include "dwarf2-frame.h".
10907 (s390_dwarf2_frame_init_reg): New function.
10908 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
10909 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
10910
fa8d40ab
JJ
109112004-02-26 Jeff Johnston <jjohnstn@redhat.com>
10912
10913 * breakpoint.c (pending_break_support): New setting variable.
10914 (break_command_1): Account for pending_break_support setting
10915 when creating pending breakpoints.
10916 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
10917 (_initialize_breakpoint): Add "set breakpoint pending" and
10918 "show breakpoint pending" commands.
10919
0dcd613f
AC
109202004-02-26 Andrew Cagney <cagney@redhat.com>
10921
10922 Fix PR i18n/1570.
10923 * charset.c (backslashable, backslashed, represented): Remove 'e'
10924 from list of escaped characters, not part of ISO-C.
10925
479272a3
JB
109262004-02-25 J. Brobecker <brobecker@gnat.com>
10927
10928 From Peter Schauer <schauer@pdf.de>:
10929 * tui/tui.c: Move system header includes after local includes.
10930 Fixes a build failure on solaris systems.
10931
7613d933
JB
109322004-02-25 J. Brobecker <brobecker@gnat.com>
10933
10934 * configure.in: Refine the previous change.
10935 * configure: Regenerate.
10936
9c1488cb
MK
109372004-02-25 Mark Kettenis <kettenis@gnu.org>
10938
10939 * amd64-tdep.h: Renamed from x86-64-tdep.h.
10940 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
10941 "amd64-tdep.h" instead of "x86-64-tdep.h".
10942 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
10943 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
10944 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
10945 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
10946 and "x86-64-tdep.c".
10947 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
10948 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
10949 and "x86-64-tdep.c".
10950 * amd64bsd-nat.c: Update copyright year.
10951 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
10952 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
10953 "x86-64-tdep.h".
10954 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
10955 "x86-64-tdep.h".
10956 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
10957 "x86-64-tdep.h".
10958 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
10959 "x86-64-tdep.h".
10960 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
10961 "x86-64-tdep.h".
10962 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
10963 "x86-64-tdep.h".
8718a420 10964 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
9c1488cb
MK
10965 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
10966 * Makefile.in (amd64_linux_tdep_h): Renamed from
10967 x86_64_linux_tdep_h.
10968 (amd64_tdep_h): Renamed from x86_64_tdep_h.
10969 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
10970 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
10971 (amd64obsd-tdep.o): Update dependencies.
10972 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
10973 dependencies.
10974 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
10975 dependencies.
10976 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
10977 amd64-linux-nat.c amd64-linux-tdep.c.
10978 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
10979 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
10980 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
10981 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
10982 amd64-tdep.o and amd64-linux-tdep.o.
10983 (TM_FILE): Set to tm-linux64.h.
10984 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
10985 (NAT_FILE): Set to nm-linux64.h.
10986 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
10987 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10988 amd64-tdep.o.
10989 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10990 amd64-tdep.o.
10991 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10992 amd64-tdep.o.
10993
4b8dad4a
RM
109942004-02-25 Roland McGrath <roland@redhat.com>
10995
10996 * remote.c (remote_protocol_qPart_auxv): New variable.
10997 (init_all_packet_configs): Initialize it.
10998 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
10999 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
11000 (show_remote_cmd): Call it.
11001 (_initialize_remote): Initialize commands.
11002 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
11003 service TARGET_OBJECT_AUXV requests.
11004
66745969
JB
110052004-02-25 J. Brobecker <brobecker@gnat.com>
11006
11007 * configure.in: Make sure that the wborder function is available.
11008 Otherwise, search for it in the cur_colr library.
11009 * configure: Regenerate.
11010
79508e1e
AC
110112004-02-25 Andrew Cagney <cagney@redhat.com>
11012
11013 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
11014
571ee600
MK
110152004-02-25 Mark Kettenis <kettenis@gnu.org>
11016
11017 * config/i386/tm-x86-64linux.h: Tweak comments.
11018
2b1b322f 110192004-02-25 Richard Sandiford <rsandifo@redhat.com>
ad74788f
RS
11020
11021 * MAINTAINERS: Add self to write-after-approval list.
11022
4d2acc65
AC
110232004-02-25 Andrew Cagney <cagney@redhat.com>
11024
4b8dad4a 11025 PR cli/1566. Problem found, and fix suggested by David Allan.
4d2acc65
AC
11026 * cli/cli-script.c (execute_control_command): Unconditionally
11027 install a cleanup. Default "ret" to "invalid_control". Use
11028 "break" instead of "return" to escape from the switch.
11029
4cfcaf21
JB
110302004-02-24 J. Brobecker <brobecker@gnat.com>
11031
11032 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
11033 with the lines macro defined in term.h on AiX.
11034 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
11035 a collision with the label_width macro defined in term.h on AiX.
11036
54a5c8d8
KB
110372004-02-23 David Mosberger <davidm@hpl.hp.com>
11038
11039 Committed by Kevin Buettner <kevinb@redhat.com>.
11040
11041 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
11042 * ia64-tdep.c (ia64_write_pc): Make it a global function.
11043 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
11044 instead of ia64_write_pc().
11045 * ia64-linux-tdep.c (regcache.h): Include.
11046 (ia64_linux_write_pc): New function.
4b8dad4a 11047
8a1dac83
RM
110482004-02-23 Roland McGrath <roland@redhat.com>
11049
11050 * auxv.c (info_auxv_command): Fix typos in error messages.
11051
90f90721
MK
110522004-02-23 Mark Kettenis <kettenis@gnu.org>
11053
8a1dac83 11054 * x86-64-tdep.h: Tweak comment.
90f90721
MK
11055 (enum amd64_regnum): New.
11056 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
11057 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
11058 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
11059 (X86_64_XMM1_REGNUM): Removed.
11060 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
11061 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
11062 prototypes for renamed functions.
11063 * x86-64-tdep.c: Fix typo.
11064 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
11065 register numbers.
11066 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
11067 Use constants from `enum amd64_regnum' for register numbers.
11068 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
11069 (amd64_analyze_prologue, amd64_frame_cache,
11070 amd64_sigtramp_frame_cache): Use constants from `enum
11071 amd64_regnum' for register numbers.
11072 (amd64_supply_fpregset): Adjust for renamed functions.
11073 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
11074 `enum amd64_regnum' for register numbers.
11075 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
11076 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
11077 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
11078 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
11079 (amd64_linux_fill_gregset): Adjust for renamed macros.
11080 (fetch_core_registers): Adjust for renamed functions.
11081 (amd64_linux_init_abi): Adjust for renamed functions.
11082 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
11083 renamed functions.
11084 * amd64-nat.c: Adjust for renamed macros.
11085 * amd64bsd-nat.c (fetch_inferior_registers)
11086 (store_inferior_registers): Use constants from `enum amd64_regnum'
11087 for register numbers. Adjust for renamed variables.
11088 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
11089 renamed variables.
11090 (_initialize_amd64fbsd_nat): Use constants from `enum
11091 amd64_regnum' for register numbers.
11092 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
11093 `enum amd64_regnum' for register numbers.
11094 (amd64fbsd_init_abi): Adjust for renamed functions.
11095 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
11096 `enum amd64_regnum' for register numbers.
11097 (amd64nbsd_init_abi): Adjust for renamed functions.
11098 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
11099 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
11100 `enum amd64_regnum' for register numbers.
11101 (amd64obsd_init_abi): Adjust for renamed functions.
11102 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
11103
d5479188
JJ
111042004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11105
11106 * breakpoint.c (print_one_breakpoint): Do not output spaces
11107 after printing <PENDING> for a pending breakpoint.
11108
81cb7cc9
JJ
111092004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11110
11111 * printcmd.c (print_scalar_formatted): Initialize val_long
11112 to remove compiler warning message.
11113
cbdeadca
JJ
111142004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11115
11116 * defs.h (nquery, yquery): New prototypes.
11117 * breakpoint.c (break_command_1): Use new nquery interface.
11118 * utils.c (defaulted_query, nquery, yquery): New functions.
11119
da6bab63
AC
111202004-02-23 Andrew Cagney <cagney@redhat.com>
11121
2f690297
AC
11122 * hppa-tdep.c (hppa_frame_align): New function.
11123 (hppa32_push_dummy_call): New function.
11124 (hppa64_push_dummy_call): New function.
11125 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
11126 disabled.
8a1dac83 11127
da6bab63
AC
11128 * infcall.c (legacy_push_dummy_code): Don't call deprecated
11129 FIX_CALL_DUMMY when push_dummy_call is available.
11130 (call_function_by_hand, push_dummy_code): Ditto.
11131
abf9b42d
AC
111322004-02-22 Andrew Cagney <cagney@redhat.com>
11133
11134 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
11135 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
11136 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
11137 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
11138 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
11139 call_dummy_location to ON_STACK.
11140
10fc94a4
MK
111412004-02-22 Mark Kettenis <kettenis@gnu.org>
11142
51433e4b
MK
11143 * x86-64-linux-tdep.c: Tweak comment.
11144 (amd64_linux_supply_gregset): Renamed from
11145 x86_64_linux_supply_gresget.
11146 (amd64_linux_fill_gregset): Renamed from
11147 x86_64_linux_fill_gregset.
11148 (fetch_core_registers): Adjust for renamed functions.
11149 (amd64_core_fns): Renamed from x86_64_core_fns.
11150 (amd64_linux_sigtramp_start): Renamed from
11151 x86_64_linux_sigtramp_start.
11152 (amd64_linux_pc_in_sigtramp): Renamed from
11153 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
11154 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
11155 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
11156 (amd64_linux_sigcontext_addr): Renamed from
11157 x86_64_linux_sigcontext_addr.
11158 (amd64_linux_sc_reg_offset): Renamed from
11159 x86_64_linux_sc_reg_offset.
11160 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
11161 Adjust for renamed functions and variables.
11162 (_initialize_amd64_linux_tdep): Renamed from
11163 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
11164 variables.
11165 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
11166 Adjust for renamed functions.
11167
430eaf2e
MK
11168 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
11169 from x86_64_linux_gregset64_reg_offset.
11170 (amd64_linux_gregset32_reg_offset): Rename from
11171 x86_64_linux_gregset64_reg_offset.
11172 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
11173 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
11174 (amd64_linux_dr_set_control): Renamed from
11175 x86_64_linux_dr_set_control. Adjust for renamed functions.
11176 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
11177 Adjust for renamed functions.
11178 (amd64_linux_dr_reset_addr): Renamed from
11179 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
11180 (amd64_linux_dr_get_status): Renamed from
11181 x86_64_linux_dr_get_status. Adjust for renamed functions.
11182 (_initialize_amd64_linux_nat): Renamed from
11183 _initialize_x86_64_linux_nat. Adjust for renamed variables and
11184 functions.
11185 * config/i386/nm-x86-64linux.h: Update copyright year.
11186 Adjust for renamed functions.
11187
10fc94a4
MK
11188 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
11189 amd64fbsd_sigtramp_start.
11190 (amd64fbsd_sigtramp_end_addr): Renamed from
11191 amd64fbsd_sigtramp_end.
11192 (amd64fbsd_init_abi): Adjust for renamed variables.
11193 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
11194 variables.
11195 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
11196 amd64fbsd_sigtramp_start.
11197 (amd64fbsd_sigtramp_end_addr): Renamed from
11198 amd64fbsd_sigtramp_end.
11199
343af405
AC
112002004-02-22 Andrew Cagney <cagney@redhat.com>
11201
537987fc
AC
11202 * hppa-tdep.c (hppa32_return_value): New function.
11203 (hppa64_return_value): New function.
11204 (hppa_gdbarch_init): Set return_value; keep disabled.
11205
fad850b2
AC
11206 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
11207 struct-return and inferior function call methods.
11208
26d08f08
AC
11209 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
11210 "frame-base.h".
11211 (struct hppa_frame_cache): Define.
11212 (hppa_frame_cache, hppa_frame_this_id): New functions.
11213 (hppa_frame_prev_register): New function.
11214 (hppa_frame_unwind, hppa_frame_base): New variables.
11215 (hppa_frame_unwind_sniffer): New function.
11216 (hppa_frame_base_address, hppa_unwind_pc): New function.
11217 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
11218 sniffer, and frame base sniffer; keep disabled.
11219 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
11220 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
11221
e7d7bd65
AC
11222 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
11223 to predicates for "seriously old code".
11224
e963316f
AC
11225 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
11226 runtime if(0).
11227
56132691
AC
11228 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
11229 unsigned.
11230 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
e963316f 11231
343af405
AC
11232 * config/pa/tm-hppa.h: Update copyright.
11233 (DEPRECATED_INIT_FRAME_PC): Delete macro.
11234 (deprecated_init_frame_pc_default): Delete declaration.
11235 (hppa_frame_init_saved_regs): Delete declaration.
11236 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
11237 * hppa-tdep.c: Include "arch-utils.h".
11238 (hppa_gdbarch_init): Set deprecated init_frame_pc
11239 and deprecated frame_init_saved_regs.
11240 (hppa_frame_init_saved_regs): Make static.
11241
f5859b4d
MK
112422004-02-22 Mark Kettenis <kettenis@gnu.org>
11243
86f6f8e7 11244 Remove old 386BSD support.
cf7c5c23 11245 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
86f6f8e7
MK
11246 * configure.host: Remove i[34567]86-*-bsd*.
11247 * configure.tgt: Remove i[34567]86-*-bsd*.
11248 * i386b-nat.c: Removed.
11249 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
cf7c5c23
MK
11250 (i386b-nat.o): Remove dependencies.
11251
86f6f8e7
MK
11252 * config/i386/i386bsd.mh: Removed.
11253 * config/i386/i386bsd.mt: Removed.
11254 * config/i386/nm-i386bsd.h: Removed.
11255 * config/i386/tm-i386bsd.h: Removed.
11256 * config/i386/xm-i386bsd.h: Removed.
11257
971218cd
MK
11258 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
11259
7e654c37
MK
11260 * amd64fbsd-tdep.c: Include "solib-svr4.h".
11261 (amd64fbsd_init_abi): Set link map offsets.
11262 * amd64nbsd-tdep.c: Include "slib-svr4.h".
11263 (amd64nbsd_init_abi): Set link map offsets.
11264 * amd64obsd-tdep.c: Include "solib-svr4.h".
11265 (amd64obsd_init_abi): Set link map offsets.
11266 * i386fbsd-tdep.c: Include "solib-svr4.h".
11267 (i386fbsd_init_abi): Set link map offsets.
11268 * i386nbsd-tdep.c: Include "solib-svr4.h".
11269 (i386nbsdelf_init_abi): Set link map offsets.
11270 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
11271 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
11272 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
11273 solib-legacy.o and core-aout.o. Reformat.
11274 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
11275 solib-svr4.o, solib-legacy.o. Reformat.
11276 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
11277 * config/i386/nbsdelf.mh: Reformat.
11278 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
11279 solib-svr4.o, solib-legacy.o and corelow.o.
11280 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
11281 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
11282 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
11283 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11284 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11285 (TM_FILE): Set to tm-fbsd.h.
11286 * config/i386/nbsd.mt (TDEPFILES): Reformat.
11287 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
11288 solib-svr4.o.
11289 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
11290 solib-svr4.o.
11291 (TM_FILE): Set to nm-nbsd.h.
11292 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
11293 Simplify shared library support. Don't include "elf/common.h".
11294 (SVR4_SHARED_LIBS): Don't define.
11295 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
11296 "solib.h".
11297 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
11298 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
11299 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
11300 Don't include "i386/tm-i386.h". Include "solib.h".
11301 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
11302 Don't include "i386/tm-i386.h".
11303 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
11304 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
11305 Include "i386/xm-i386.h".
11306 (HOST_LONG_DOUBLE_FORMAT): Remove.
11307
5d93ae8c
MK
11308 Fix OpenBSD/i386 sigtramp recognition.
11309 * i386-tdep.h: Update copyright year.
11310 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
11311 (i386bsd_sigtramp_end): New prototypes.
11312 (i386fbsd_sigtramp_start_addr): Renamed from
11313 i386fbsd_sigtramp_start.
11314 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11315 (i386obsd_sigtramp_start_addr): Renamed from
11316 i386obsd_sigtramp_start.
11317 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11318 * i386bsd-tdep.c: Update copyright year.
11319 (i386bsd_pc_in_sigtramp): Make public.
11320 * i386fbsd-nat.c: Update copyright year.
11321 (_initialize_i386fbsd_nat): Adjust for renamed variables.
11322 * i386fbsd-tdep.c: Update copyright year.
11323 (i386fbsd_sigtramp_start_addr): Renamed from
11324 i386fbsd_sigtramp_start.
11325 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11326 (i386fbsdaout_init_abi): Adjust for renamed variables.
11327 * i386obsd-nat.c: Update copyright year.
11328 (_initialize_i386obsd_nat): Adjust for renamed variables.
11329 * i386obsd-tdep.c: Include "target.h".
11330 (i386obsd_page_size): New variable.
11331 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
11332 (i386obsd_sigtramp_end): New functions.
11333 (i386obsd_sigtramp_start_addr): Renamed from
11334 i386obsd_sigtramp_start.
11335 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11336 (i386obsd_init_abi): Adjust for renamed variables. Set
11337 pc_in_sigtramp, sigtramp_start and sigtramp_end.
11338 * Makefile.in (i386obsd-tdep.o): Update dependencies.
11339
84d04465
MK
11340 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
11341 trampoline change in OpenBSD kernel.
11342
b053aceb
MK
11343 * amd64-nat.c: Update copyright year.
11344 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
11345 architecture from REGCACHE.
11346
f5859b4d
MK
11347 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
11348 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
11349
e4bbbda8
MK
113502004-02-21 Mark Kettenis <kettenis@gnu.org>
11351
ba361932
MK
11352 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
11353 i[34567]86-*-openbsd3.[0-3].
11354 * config/i386/obsdaout.mh: New file.
11355
d3e48264
MK
11356 * config/i386/obsd.mh (MH_FLAGS): Remove.
11357
60a6eeb6
MK
11358 Fix PR build/1549.
11359 * i386obsd-tdep.c: Update copyright years. Include
11360 "solib-svr4.h".
11361 (i386obsd_init_abi): Don't set regset_from_core_section here.
11362 (i386obsd_aout_init_abi): New function. Set
11363 regset_from_core_section here.
11364 (i386obsd_elf_init_abi): New function.
11365 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
11366 * Makefile.in (i386obsd-tdep.o): Update dependecies.
11367 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
11368 (TM_FILE): Set to tm-nbsd.h.
11369
11370 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
11371 solib-sunos.o.
11372
e4bbbda8
MK
11373 * solib-svr4.h: Update copyright year.
11374 (svr4_ilp32_fetch_link_map_offsets)
11375 (svr4_lp64_fetch_link_map_offsets): New prototype.
11376 * solib-svr4.c: Update copyright year.
11377 (svr4_ilp32_fetch_link_map_offsets)
11378 (svr4_lp64_fetch_link_map_offsets): New function.
11379
f6fe98ef
DJ
113802004-02-20 Daniel Jacobowitz <drow@mvista.com>
11381
11382 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
11383 to the partial symbol table.
11384
589ca796
JB
113852004-02-20 J. brobecker <brobecker@gnat.com>
11386
11387 * PROBLEMS: Add description of problem documented under gdb/1560.
11388
2031c21a
MK
113892004-02-20 Mark Kettenis <kettenis@gnu.org>
11390
30b344b1
MK
11391 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
11392 comments.
11393 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
11394 functions.
11395 (amd64obsd_init_abi): Reorder initializations. Use
11396 amd64obsd_r_reg_offset to initialize the general-purpose register
11397 set details. Set regset_from_core_section.
11398 (_initialize_amd64obsd_tdep): Rename from
11399 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
11400 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
11401 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
11402
2031c21a
MK
11403 * NEWS (New native configurations): Mention OpenBSD/alpha.
11404 * configure.tgt: Add alpha*-*-openbsd*.
11405 * configure.host: Add alpha*-*-openbsd*.
11406 * alphanbsd-tdep.c: Update copyright year.
11407 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
11408
42471775
AC
114092004-02-20 Andrew Cagney <cagney@redhat.com>
11410
11411 Fix PR tdep/1372.
11412 * configure.tgt: Delete target "none-*-*".
11413 * configure.host: Delete host "none-*-*".
11414 * config/none/none.mh: Delete file.
11415 * config/none/none.mt: Delete file.
11416 * config/none/xm-none.h: Delete file.
11417 * config/none/tm-none.h: Delete file.
11418 * config/none/nm-none.h: Delete file.
11419
960ccd7d
FF
114202004-02-19 Fred Fish <fnf@redhat.com>
11421
11422 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
11423 cache->uses_fp prior to setting it.
11424
5f883edd
FF
114252004-02-19 Fred Fish <fnf@redhat.com>
11426
11427 Fix for PR breakpoint/1558.
11428 * sh-tdep.c (IS_JSR): New macro.
11429 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
11430
f98c22d5
JB
114312004-02-19 Jim Blandy <jimb@redhat.com>
11432
11433 * findvar.c (value_from_register): Doc fix.
11434
95051d27
JJ
114352004-02-19 Jeff Johnston <jjohnstn@redhat.com>
11436
11437 * printcmd.c (print_scalar_formatted): Do not check for sizeof
11438 type being greater than sizeof of host's LONGEST. Always use
11439 unpack_long() unless format 'f' chosen.
11440
ccefbec3
EZ
114412004-02-19 Joel Brobecker <brobecker@gnat.com>
11442
11443 Committed by Elena Zannoni <ezannoni@redhat.com>
2ede629f 11444
ccefbec3
EZ
11445 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
11446 contains a symbol wich is the best, non-exact match for the given
11447 pc. Update comments.
11448
114492004-02-19 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 11450
2ede629f
EZ
11451 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
11452 macro, which was part of the now removed Mach 3 port.
11453 * utils.c (request_quit): Ditto.
11454
567ee972
MK
114552004-02-18 Mark Kettenis <kettenis@gnu.org>
11456
11457 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
11458 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
11459
50cca7bb
MK
114602004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11461
11462 Committed by Mark Kettenis <kettenis@gnu.org>.
11463
11464 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
11465 Define.
11466
226361c4
AC
114672004-02-18 Andrew Cagney <cagney@redhat.com>
11468
11469 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
11470 CONFIG_INSTALL and CONFIG_UNINSTALL.
11471 * configure: Re-generate.
11472 * interps.h (INTERP_TUI): Define.
11473 * Makefile.in: Update dependencies.
11474 (TUI): New macro.
11475 (tui-main.o): Specify dependencies.
11476 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
11477 * tui/tui-main.c: New file.
11478
49cfa46f
MK
114792004-02-18 Mark Kettenis <kettenis@gnu.org>
11480
e2879ccb
MK
11481 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
11482 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
11483 dependencies.
11484 * configure.host: Add x86_64-*-openbsd*.
11485 * configure.tgt: Add x86_64-*-openbsd*.
11486 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
11487
c43f4bec
MK
11488 * tui/tui.c: Don't include <malloc.h>.
11489
09ae75b6
MK
11490 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
11491 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
11492 amd64nbsd-tdep.c.
11493
49cfa46f 11494 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
8a1dac83 11495 static. Remove extraneous whitespace.
49cfa46f
MK
11496 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
11497 static.
11498
05957fdb
JB
114992004-02-17 Jim Blandy <jimb@redhat.com>
11500
11501 * findvar.c (value_from_register): Doc fix.
11502
d0f54f9d
JB
115032004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11504
11505 Committed by Jim Blandy <jimb@redhat.com>.
e1457d83 11506
8a1dac83 11507 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
c253954e
JB
11508 CORE_ADDR as type for selectors. Correct types for GNU run time
11509 message lookup function to use double indirection.
11510 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
11511 * objc-lang.h (lookup_child_selector): Adapt prototype.
11512
9cbd5950
JB
11513 * s390-nat.c (SUBOFF): New macro.
11514 (supply_gregset, fill_gregset): Use it to handle debugging
11515 of 32-bit exectuables running under a 64-bit kernel.
11516 * s390-tdep.c: Include "solib-svr4.h".
11517 (s390_svr4_fetch_link_map_offset): New function.
11518 (s390x_svr_fetch_link_map_offset): Likewise.
11519 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
11520 * Makefile.in (s390-tdep.o): Update dependencies.
11521
a8c99f38
JB
11522 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
11523 "frame-unwind.h".
11524 (s390_readinstruction): Reformat. Use read_memory_nobpt.
11525 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
11526 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
11527 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
11528 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
11529 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
8a1dac83 11530 S390_SIGNAL_FRAMESIZE,
a8c99f38
JB
11531 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
11532 (struct frame_extra_info): Remove.
11533 (s390_memset_extra_info): Remove.
f73b1eff
JB
11534 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
11535 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
11536 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
a8c99f38
JB
11537 (is_rse): Renamed to ...
11538 (is_rsy): ... this. Support long displacements.
11539 (is_rxe): Renamed to ...
11540 (is_rxy): ... this. Support long displacements.
11541 (compute_x_addr): Support long displacements.
11542 (struct s390_prologue_data): New data type.
11543 (s390_on_stack): Change API to use struct s390_prologue_data.
11544 (s390_store): Reimplement.
11545 (s390_load): New function.
11546 (s390_get_signal_frame_info): Remove.
11547 (s390_get_frame_info): Remove, replace by ...
11548 (s390_analyze_prolog): ... this new function.
11549 (s390_check_function_end): Remove.
11550 (s390_function_start): Remove.
11551 (s390_frameless_function_invokation): Remove.
11552 (s390_is_sigreturn): Remove.
11553 (s390_init_frame_pc_first): Remove.
11554 (s390_init_frame_extra_info): Remove.
11555 (s390_frame_init_saved_regs): Remove.
11556 (s390_frame_saved_pc_nofix): Remove.
11557 (s390_frame_saved_pc): Remove.
11558 (s390_frame_chain): Remove.
11559 (s390_fp_regnum, s390_read_fp): Remove.
11560 (s390_pop_frame_regular, s390_pop_frame): Remove.
11561 (s390_saved_pc_after_call): Remove.
11562 (s390_skip_prologue): Reimplement.
11563 (s390_in_function_epilogue_p): Support long displacements.
11564 (struct s390_unwind_cache): New data structure.
11565 (s390_frame_unwind_cache): New function.
11566 (s390_prologue_frame_unwind_cache): Likewise.
11567 (s390_backchain_frame_unwind_cache): Likewise.
11568 (s390_frame_this_id, s390_frame_prev_register): Likewise.
11569 (s390_frame_unwind): Define.
11570 (s390_frame_sniffer): New function.
11571 (struct s390_pltstub_unwind_cache): New data structure.
11572 (s390_pltstub_frame_unwind_cache): New function.
11573 (s390_pltstub_frame_this_id): Likewise.
11574 (s390_pltstub_frame_prev_register): Likewise.
11575 (s390_pltstub_frame_unwind): Define.
11576 (s390_pltstub_frame_sniffer): New function.
11577 (struct s390_sigtramp_unwind_cache): New data structure.
11578 (s390_sigtramp_frame_unwind_cache): New function.
11579 (s390_sigtramp_frame_this_id): Likewise.
11580 (s390_sigtramp_frame_prev_register): Likewise.
11581 (s390_sigtramp_frame_unwind): Define.
11582 (s390_sigtramp_frame_sniffer): New function.
11583 (s390_frame_base_address, s390_local_base_address): New functions.
11584 (s390_frame_base): Define.
11585 (s390_unwind_pc, s390_unwind_sp): New function.
11586 (s390_push_dummy_call): Use new frame base location.
11587 (s390_unwind_dummy_id): Likewise.
11588 (s390_gdbarch_init): Remove calls to:
11589 set_gdbarch_frameless_function_invocation,
11590 set_gdbarch_deprecated_init_frame_pc,
11591 set_gdbarch_deprecated_frame_chain,
11592 set_gdbarch_deprecated_frame_init_saved_regs,
11593 set_gdbarch_deprecated_pop_frame,
11594 set_gdbarch_deprecated_init_extra_frame_info,
11595 set_gdbarch_deprecated_init_frame_pc_first,
11596 set_gdbarch_deprecated_target_read_fp,
11597 set_gdbarch_deprecated_frame_saved_pc,
11598 set_gdbarch_deprecated_saved_pc_after_call,
11599 set_gdbarch_deprecated_fp_regnum.
11600 Add calls to:
11601 set_gdbarch_in_solib_call_trampoline,
11602 frame_unwind_append_sniffer,
11603 frame_base_set_default,
11604 set_gdbarch_unwind_pc,
11605 set_gdbarch_unwind_sp.
11606 * Makefile.in (s390-tdep.o): Update dependencies.
11607
b0cf273e
JB
11608 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
11609 (S390_STACK_FRAME_OVERHEAD): Remove.
11610 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
11611 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
11612 (s390_promote_integer_argument): Remove.
11613 (s390_cannot_extract_struct_value_address): Remove.
11614 (s390_use_struct_convention, s390_store_struct_return): Remove.
11615 (s390_extract_return_value, s390_store_return_value): Remove.
11616 (s390_return_value_convention, s390_return_value): New functions.
11617 (is_float_singleton): Handle typedefs.
8a1dac83 11618 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
b0cf273e
JB
11619 Remove, replace by ...
11620 (s390_function_arg_pass_by_reference, s390_function_arg_float,
11621 s390_function_arg_integer): ... these new functions.
11622 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
11623 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
11624 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
11625 Fill in tdep->abi.
11626 Remove calls to:
11627 set_gdbarch_deprecated_store_struct_return,
11628 set_gdbarch_deprecated_extract_return_value,
11629 set_gdbarch_deprecated_store_return_value,
11630 set_gdbarch_use_struct_convention,
11631 set_gdbarch_extract_struct_value_address,
11632 set_gdbarch_deprecated_pc_in_call_dummy,
11633 set_gdbarch_deprecated_push_arguments,
11634 set_gdbarch_deprecated_save_dummy_frame_tos,
11635 set_gdbarch_deprecated_push_return_address,
11636 set_gdbarch_deprecated_sizeof_call_dummy_words,
11637 set_gdbarch_deprecated_call_dummy_words,
11638 set_gdbarch_deprecated_dummy_write_sp.
11639 Add calls to:
11640 set_gdbarch_push_dummy_call,
11641 set_gdbarch_unwind_dummy_id,
11642 set_gdbarch_return_value.
8a1dac83 11643
e1457d83
JB
11644 * config/s390/nm-linux.h: Update comments.
11645 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
11646 (STOPPED_BY_WATCHPOINT): Redefine.
11647 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
11648 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
11649 (s390_stopped_by_watchpoint): Likewise.
11650 (watch_area_cnt): Remove.
11651 * s390-nat.c: Update comments.
11652 (watch_area): Remove typedef.
11653 Global replace watch_area by struct watch_area.
11654 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
8a1dac83 11655 (s390_stopped_by_watchpoint): Remove pid argument,
e1457d83
JB
11656 use s390_inferior_tid. Add short-cut for the no watchpoint case.
11657 (s390_fix_watch_points): Remove pid argument,
11658 use s390_inferior_tid. Recompute area spanned by watchpoints.
11659 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
11660 argument. Reimplement.
11661
d0f54f9d
JB
11662 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
11663 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
11664 (FETCH_INFERIOR_REGISTERS): Define.
8a1dac83 11665 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
d0f54f9d
JB
11666 core-regset.o.
11667 * config/s390/s390x.mt: Remove.
11668 * config/s390/tm-s390.h: Remove.
11669 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
11670 (TARGET_ELF64): Remove.
11671 (SKIP_TRAMPOLINE_CODE): Do not undefine.
11672 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
11673 s390*-*-* case; always set gdb_target to s390.
11674 * regformats/reg-s390.dat: Remove control registers.
11675 * regformats/reg-s390x.dat: Likewise.
11676 * s390-tdep.h: New file.
8a1dac83 11677 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
d0f54f9d
JB
11678 Include "inferior.h" and "s390-tdep.h".
11679 Remove private definition of offsetof.
11680 (s390_register_u_addr): Remove.
11681 (regmap_gregset, regmap_fpregset): Define.
11682 (supply_gregset, fill_gregset): Reimplement.
11683 (supply_fpregset, fill_fpregset): Likewise.
11684 (s390_inferior_tid): New function.
11685 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
11686 (fetch_inferior_registers, store_inferior_registers): Likewise.
11687 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
11688 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
11689 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
11690 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
11691 (struct gdbarch_tdep): Define.
11692 (struct s390_register_info): Define.
11693 (s390_register_info): New variable.
11694 (s390_register_name): Reimplement.
11695 (s390_register_type): New function.
11696 (s390_register_raw_size, s390x_register_raw_size): Remove.
11697 (s390_cannot_fetch_register): Remove.
11698 (s390_register_byte): Remove.
11699 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
11700 (s390_dwarf_regmap): New variable.
11701 (s390_dwarf_reg_to_regnum): New function.
11702 (s390_stab_reg_to_regnum): Remove.
11703 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
11704 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
11705 (s390_convert_register_p): Likewise.
11706 (s390_register_to_value, s390_value_to_register): Likewise.
11707 (s390_register_reggroup_p): Likewise.
11708 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
11709 s390_gregset, s390x_gregset, s390_fpregset): New variables.
11710 (s390_supply_regset, s390_regset_from_core_section): New functions.
11711 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
11712 (S390_FPR_SIZE): Likewise.
11713 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
11714 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
11715 (S390_NUM_GPRS): Move here from tm-s390.h.
11716 (S390_NUM_FPRS): Likewise.
11717 (s390_in_function_epilogue_p): New function.
11718 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
11719 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
11720 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
11721 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
11722 Replace S390_FP_REGNUM by S390_SP_REGNUM.
11723 Remove calls to:
11724 set_gdbarch_deprecated_max_register_raw_size,
8a1dac83
RM
11725 set_gdbarch_deprecated_max_register_virtual_size,
11726 set_gdbarch_deprecated_register_byte,
d0f54f9d 11727 set_gdbarch_cannot_fetch_register,
8a1dac83 11728 set_gdbarch_cannot_store_register,
d0f54f9d
JB
11729 set_gdbarch_deprecated_register_size,
11730 set_gdbarch_deprecated_register_raw_size,
11731 set_gdbarch_deprecated_register_virtual_size,
11732 set_gdbarch_deprecated_register_virtual_type,
11733 set_gdbarch_deprecated_register_bytes.
11734 Add calls to:
11735 set_gdbarch_num_pseudo_regs,
11736 set_gdbarch_register_type,
11737 set_gdbarch_convert_register_p,
11738 set_gdbarch_register_to_value,
11739 set_gdbarch_value_to_register,
11740 set_gdbarch_register_reggroup_p,
11741 set_gdbarch_regset_from_core_section,
11742 set_gdbarch_pseudo_register_read,
11743 set_gdbarch_pseudo_register_write,
11744 set_gdbarch_in_function_epilogue_p.
11745 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
11746 (s390_tdep_h): New variable.
11747
8cfe231d
JB
117482004-02-17 Jim Blandy <jimb@redhat.com>
11749
4589a601
JB
11750 * findvar.c (value_from_register): If the type has no length, just
11751 return an acceptable value --- don't report an internal error.
11752
8cfe231d
JB
11753 * stabsread.c (read_type): If we find any type numbers that are
11754 forward references, complain if the references aren't resolved by
11755 the time we're finished reading.
11756 (cleanup_undefined_types): Make error message more appropriate for
11757 a complaint.
11758
5bf0017e
EZ
117592004-02-17 Elena Zannoni <ezannoni@redhat.com>
11760
9d62932d
EZ
11761 * Makefile.in (defs_h): Remove dependency on progress_h.
11762 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
11763 progress.h.
11764 * main.c (captured_main): Delete use of START_PROGRESS and
11765 END_PROGRESS.
11766
117672004-02-17 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 11768
5bf0017e
EZ
11769 * objfiles.c (terminate_minimal_symbol_table): Add back
11770 initialization of MSYMBOL_TYPE.
11771
9fc9f5e2
AC
117722004-02-17 David Mosberger <davidm@hpl.hp.com>
11773
11774 Committed by Andrew Cagney.
11775 * Makefile.in (ia64_tdep_h): New macro.
11776 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
11777 (ia64-tdep.o): Likewise.
11778 * ia64-tdep.h: New file.
11779 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
11780 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
11781 (ia64_aix_sigcontext_register_address): Likewise.
11782 (ia64_linux_getunwind_table): Delete declaration.
11783 * ia64-linux-tdep.c: Likewise.
11784
76cd2bd9
CV
117852004-02-17 Corinna Vinschen <vinschen@redhat.com>
11786
11787 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
11788 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
11789 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
11790
634aa483
AC
117912004-02-17 Andrew Cagney <cagney@redhat.com>
11792
11793 * symtab.c (skip_prologue_using_sal): New function.
11794 * symtab.h (skip_prologue_using_sal): Declare.
11795 * frv-tdep.c: Include "symtab.h".
11796 (skip_prologue_using_sal): Delete function.
11797 * mips-tdep.c (skip_prologue_using_sal): Delete function.
11798 * rs6000-tdep.c (refine_prologue_limit): Mention
11799 skip_prologue_using_sal.
11800 * ia64-tdep.c (refine_prologue_limit): Ditto.
11801 * Makefile.in: Update dependencies.
11802
118032004-02-16 Andrew Cagney <cagney@redhat.com>
19772a2c 11804
39ce7b3f
AC
11805 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
11806 START_INFERIOR_TRAPS_EXPECTED.
11807 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
11808 START_INFERIOR_TRAPS_EXPECTED.
11809 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
11810 Delete macro.
11811 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
11812 macro, moved to "nm-osf.h". Update copyright.
11813 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
11814 update copyright.
11815
19772a2c
AC
11816 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
11817 and function replacing FRAMELESS_FUNCTION_INVOCATION.
11818 * blockframe.c (legacy_frameless_look_for_prologue): Rename
11819 frameless_look_for_prologue.
11820 * frame.h (legacy_frameless_look_for_prologue): Rename
11821 frameless_look_for_prologue.
11822 * gdbarch.h, gdbarch.c: Re-generate.
11823 * sh64-tdep.c (sh64_gdbarch_init): Update.
11824 * sh-tdep.c (sh_gdbarch_init): Update.
11825 * s390-tdep.c (s390_gdbarch_init): Update.
11826 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11827 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11828 * m68k-tdep.c (m68k_gdbarch_init): Update.
11829 (delta68_frame_args_address): Update.
11830 * m32r-tdep.c (m32r_gdbarch_init): Update.
11831 * hppa-tdep.c (hppa_gdbarch_init): Update.
11832 * h8300-tdep.c (h8300_gdbarch_init): Update.
11833 * frv-tdep.c (frv_gdbarch_init): Update.
11834 (frv_frameless_function_invocation): Update.
11835 * cris-tdep.c (cris_gdbarch_init): Update.
11836 (cris_frameless_function_invocation): Update.
11837 * avr-tdep.c (avr_gdbarch_init): Update.
11838 * arm-tdep.c (arm_gdbarch_init): Update.
11839 * stack.c (frame_info): Update, call predicate.
11840 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
11841 * frame.c (legacy_get_prev_frame): Update, call predicate..
11842 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
11843 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
11844 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
11845 invocation.
11846 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11847 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11848 * vax-tdep.c (vax_gdbarch_init): Ditto.
2be8b3c1
AC
11849
11850 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
11851 function.
11852
7dcaac91
DJ
118532004-02-16 Daniel Jacobowitz <drow@mvista.com>
11854
11855 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
11856 initializations.
11857
88289b6e
AC
118582004-02-16 Andrew Cagney <cagney@redhat.com>
11859
11860 * tui/tui-windata.c: Include "gdb_string.h".
11861 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
11862 * tui/tui-layout.c, tui/tui-command.c: Ditto.
11863 * Makefile.in: Update dependencies.
11864
9f976b41
DJ
118652004-02-16 Daniel Jacobowitz <drow@mvista.com>
11866
11867 * Makefile.in (infrun.o): Add $(gdb_assert_h).
11868 * infrun.c: Include "gdb_assert.h".
11869 (singlestep_ptid, saved_singlestep_ptid)
11870 (stepping_past_singlestep_breakpoint): New variables.
11871 (resume): Set singlestep_ptid. Check for singlestep thread
11872 hop.
11873 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
11874 (handle_inferior_event): Handle singlestep thread hop.
11875
c324d747
AC
118762004-02-16 Andrew Cagney <cagney@redhat.com>
11877
f090b9b1
AC
11878 * dwarf2-frame.c (dwarf2_frame_ops): New function.
11879 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
11880 (dwarf2_frame_init_reg): Ditto.
11881
fd33e6cb
AC
11882 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
11883 suggested by Joshua Neuheisel
11884
c324d747
AC
11885 * configure.in: Always check for curses, including pdcurses.
11886 Warn, instead of error, when no curses are found. Enable TUI when
11887 curses is available.
11888 * configure: Re-generate.
11889
b66ba949
CV
118902004-02-16 Corinna Vinschen <vinschen@redhat.com>
11891
11892 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
11893 sh_sh4_register_convert_to_virtual.
11894 (sh_register_convert_to_raw): Rename from
11895 sh_sh4_register_convert_to_raw.
11896 (sh_pseudo_register_read): Accomodate above name change.
11897 (sh_pseudo_register_write): Ditto.
11898
b58cbbf2
CV
118992004-02-16 Corinna Vinschen <vinschen@redhat.com>
11900
11901 * sh-tdep.c (sh_generic_register_name): Remove.
11902 (sh_gdbarch_init): Use sh_sh_register_name in default case.
11903
5929a910
AC
119042004-02-15 Andrew Cagney <cagney@redhat.com>
11905
4566dfcf
AC
11906 * configure.in (build_warnings): Add -Wunused-function.
11907 * configure: Re-generate.
11908
db11ed55
AC
11909 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
11910 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
11911
46ac7a5d
AC
11912 * procfs.c (procfs_init_inferior): Assume that
11913 START_INFERIOR_TRAPS_EXPECTED is defined.
11914 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
11915 * config/ns32k/tm-nbsd.h: Delete file,
11916 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
11917
ba801595
AC
11918 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
11919 * config/vax/tm-vax.h: Delete file.
11920
5929a910
AC
11921 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11922 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11923 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11924 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11925 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
11926 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11927 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
11928
8f22cb90
MK
119292004-02-15 Mark Kettenis <kettenis@gnu.org>
11930
11931 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
11932 * dwarf2-frame.c (dwarf2_frame_data): New variable.
11933 (struct dwarf2_frame_ops): New.
11934 (dwarf2_frame_default_init_reg): New function, based on
11935 dwarf2_frame_init_reg.
11936 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
11937 (dwarf2_frame_init_reg): Call architecture-specific function.
11938 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
11939 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
11940 instead of dwarf2_frame_data.
11941 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
11942 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
11943
8132723e
AC
119442004-02-15 Andrew Cagney <cagney@redhat.com>
11945
046a4708
AC
11946 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
11947 register_gdbarch_swap.
11948 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
11949 * f-lang.c (_initialize_f_language): Update, use
11950 DEPRECATED_REGISTER_GDBARCH_SWAP.
11951 * remote.c (_initialize_remote): Ditto.
11952 * regcache.c (_initialize_regcache): Ditto.
11953 * parse.c (_initialize_parse): Ditto.
11954 * infrun.c (_initialize_infrun): Ditto.
11955 * mi/mi-main.c (_initialize_mi_main): Ditto.
11956 * gdbtypes.c (_initialize_gdbtypes): Ditto.
8a1dac83 11957
549c1eea
AC
11958 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
11959 poking .cacheable directly.
11960 * symfile.c (symfile_bfd_open): Ditto.
11961
0c0b39de
AC
11962 * Makefile.in: Update all dependencies.
11963
8132723e
AC
11964 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
11965 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
11966 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
11967 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
11968 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
0c0b39de 11969
b9d26eb9
AC
119702004-02-14 Andrew Cagney <cagney@redhat.com>
11971
8e1f669a
AC
11972 * arch-utils.c (legacy_convert_register_p): Check
11973 DEPRECATED_REGISTER_CONVERTIBLE_P.
11974 * findvar.c (value_of_register): Ditto.
11975
cd0bfa36
AC
11976 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
11977 * gdbarch.h, gdbarch.c: Re-generate.
11978 * arch-utils.c (deprecated_register_convertible_not): Delete.
11979 * arch-utils.h (deprecated_register_convertible_not): Delete.
11980 * mi/mi-main.c (get_register): Update. Update copyright.
11981 * infcmd.c (default_print_registers_info): Update.
11982
b9d26eb9
AC
11983 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
11984 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
11985 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
8a1dac83 11986 * gdbarch.h, gdbarch.c: Re-generate.
b9d26eb9
AC
11987 * frame.c (deprecated_get_next_frame_hack): Delete function.
11988 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
11989 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
11990 Update.
11991 * infcall.c (call_function_by_hand): Update.
11992
9ab9195f
EZ
119932004-02-14 Elena Zannoni <ezannoni@redhat.com>
11994
11995 * symfile.c (init_entry_point_info, entry_point_address): Move
8a1dac83 11996 from here...
9ab9195f
EZ
11997 * objfiles.c (init_entry_point_info, entry_point_address):..to
11998 here.
11999 * symfile.h (init_entry_point_info, entry_point_address): Remove
12000 prototypes.
12001 * objfiles.h (init_entry_point_info, entry_point_address):Add
8a1dac83 12002 prototypes.
9ab9195f
EZ
12003 * cris-tdep.c: Remove include of symfile.h. Add include of
12004 objfiles.h.
12005 * infcall.c: Ditto.
12006 * mcore-tdep.c: Ditto.
12007 * mn10300-tdep.c: Ditto.
12008 * sh64-tdep.c: Ditto.
12009 * v850-tdep.c: Ditto.
12010 * arm-tdep.c: Remove include of symfile.h.
12011 * blockframe.c: Ditto.
12012 * coffread.c: Ditto.
12013 * dbxread.c: Ditto.
12014 * dwarf2read.c: Ditto.
12015 * dwarfread.c: Ditto.
8a1dac83 12016 * frv-tdep.c: Ditto.
9ab9195f
EZ
12017 * ia64-tdep.c: Ditto.
12018 * mdebugread.c: Ditto.
12019 * mipsread.c: Ditto.
8a1dac83 12020 * rs6000-tdep.c: Ditto.
9ab9195f
EZ
12021 * s390-tdep.c: Ditto.
12022 * sh-tdep.c: Ditto.
8a1dac83 12023 * xstormy16-tdep.c: Ditto.
9ab9195f
EZ
12024 * gdbarch.sh: Remove include of symfile.h.
12025 * gdbarch.c: Regenerate.
12026 * solib-irix.c (enable_break): Use entry_point_address().
12027 Add comment about include file.
12028 * xcoffread.c: Add comment about include file.
8a1dac83
RM
12029 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
12030 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
12031 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
12032 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
9ab9195f
EZ
12033 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
12034
c4c5b7ba
AC
120352004-02-13 Andrew Cagney <cagney@redhat.com>
12036
12037 * corelow.c (core_xfer_partial): Use "struct bfd_section".
12038 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
12039 copyright.
12040 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
12041
3e7879de
FF
120422004-02-12 Fred Fish <fnf@redhat.com>
12043
12044 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
12045 set_gdbarch_store_return_value.
12046
6a7760b6
AC
120472004-02-12 Andrew Cagney <cagney@redhat.com>
12048
12049 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
12050 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
12051 (interrupt_query): Ditto.
12052 (ofunc): Delete unused variable.
12053 * cris-tdep.c (cris_abi): Delete unused function.
12054 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
12055 (cris_get_wide_opcode, cris_get_short_size): Ditto.
12056 (cris_get_asr_quick_shift_steps): Ditto.
12057 (cris_skip_prologue_frameless_p): Ditto.
12058 * arm-tdep.c (arm_push_return_address): Delete unused function.
12059 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
12060 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
12061 * s390-tdep.c (s390_function_start): Delete unused function.
12062
31687c3c
AC
120632004-02-12 Andrew Cagney <cagney@redhat.com>
12064
12065 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
12066 gdbarch.h, gdbarch.c: Re-generate.
12067 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
12068 to generic_prologue_frameless_p.
12069 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
12070 * arch-utils.c (generic_prologue_frameless_p): Delete function.
12071
6de918a6
DJ
120722004-02-11 Daniel Jacobowitz <drow@mvista.com>
12073
12074 * mips-linux-tdep.c: Include "frame.h".
12075 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
12076 (mips_linux_skip_resolver): New functions.
12077 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
12078 and set_gdbarch_in_solib_call_trampoline.
12079 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
12080 to after set_gdbarch_in_solib_return_trampoline. Only set the
12081 solib hooks to mips16 functions if the OS ABI is unknown.
12082 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
12083 including "config/tm-linux.h".
12084 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
12085 * Makefile.in (mips-linux-tdep.o): Update.
12086
87b3ede8
DC
120872004-02-11 David Carlton <carlton@kealia.com>
12088
12089 * linespec.c (decode_compound): Only look for a class symbol when
12090 considering all but the rightmost component.
12091
5979bc46
AC
120922004-02-11 Andrew Cagney <cagney@redhat.com>
12093
12094 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
12095 abi code are are separatly grouped.
12096
5867a2fb
AC
120972004-02-11 Andrew Cagney <cagney@redhat.com>
12098
12099 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
12100 * gdbarch.h, gdbarch.c: Re-generate.
12101 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12102 * v850-tdep.c (v850_gdbarch_init): Update.
12103 * sh64-tdep.c (sh64_gdbarch_init): Update.
12104 * sh-tdep.c (sh_gdbarch_init): Update.
12105 * s390-tdep.c (s390_gdbarch_init): Update.
12106 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12107 * mips-tdep.c (mips_gdbarch_init): Update.
12108 * mcore-tdep.c (mcore_gdbarch_init): Update.
12109 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12110 * m32r-tdep.c (m32r_gdbarch_init): Update.
12111 * ia64-tdep.c (ia64_gdbarch_init): Update.
12112 * hppa-tdep.c (hppa_gdbarch_init): Update.
12113 * h8300-tdep.c (h8300_gdbarch_init): Update.
12114 * frv-tdep.c (frv_gdbarch_init): Update.
12115 * d10v-tdep.c (d10v_gdbarch_init): Update.
12116 * cris-tdep.c (cris_gdbarch_init): Update.
12117 * avr-tdep.c (avr_gdbarch_init): Update.
12118 * arm-tdep.c (arm_gdbarch_init): Update.
12119 * alpha-tdep.c (alpha_gdbarch_init): Update.
12120
026a72f8
CV
121212004-02-11 Corinna Vinschen <vinschen@redhat.com>
12122
12123 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
12124 comma.
12125 (sh_sh4al_dsp_register_name): Ditto.
12126
3903d437
AC
121272004-02-10 Andrew Cagney <cagney@redhat.com>
12128
12129 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
12130 (mips_init_frame_pc_first): Delete function.
12131 (mips_frame_saved_pc): Delete function.
12132 (mips_frame_chain): Delete function.
12133 (mips_init_extra_frame_info): Delete function.
12134 (mips_xfer_register): Delete unused variable "reg".
12135 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
12136 (mips_n32n64_return_value): Delete unused variable "reg".
12137 (mips_n32n64_return_value): Delete unused variable "pos".
12138 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
12139 (mips_o32_return_value): Delete unused variable "pos".
12140 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
12141 (mips_print_fp_register): Delete unused variable "namelen"
12142 (mips_print_fp_register): Delete unused variable "flt2"
12143 (get_frame_pointer): Delete function.
12144 (cached_proc_desc): Delete static variable.
12145 (mips_pop_frame): Delete function.
12146 (mips_find_saved_regs): Delete function.
12147 (mips_get_saved_register): Delete function.
12148 (mips_saved_pc_after_call): Delete function.
12149 (SIGFRAME_BASE): Delete macro.
12150 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
12151 (SIGFRAME_PC_OFF): Delete macro.
12152 (SIGFRAME_REGSAVE_OFF): Delete macro.
12153 (mips_dump_tdep): Do not print deleted macro definitions.
12154
b9fb98bd
AC
121552004-02-10 Andrew Cagney <cagney@redhat.com>
12156
12157 * Makefile.in (SFILES): Remove explictly listed tui files.
12158 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
12159
78ced177 121602004-02-10 Jeff Johnston <jjohnstn@redhat.com>
8a1dac83 12161
78ced177
JJ
12162 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
12163 to use paddr functions to format ia64 addresses and long values.
12164 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
12165 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
12166 (get_kernel_table, ia64_find_proc_info_x): Ditto.
12167 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
12168 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
12169
6a83354a
AC
121702004-02-10 Andrew Cagney <cagney@redhat.com>
12171
12172 * defs.h: Do not include "tui.h".
12173 * gdb_curses.h: New file.
12174 * tui/tui-hooks.h: New file.
12175 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
12176 (tui_install_hooks, tui_remove_hooks): Delete declarations.
12177 (tui_initialize_io): Delete declaration.
12178 (tui_initialize_readline: Delete redundant declaration.
12179 (struct tui_point): Delete definition.
12180 * tui/tui-data.h (struct tui_point): Define.
12181 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
12182 * utils.c: Include "tui/tui.h".
12183 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
12184 * printcmd.c [TUI]: Include "tui/tui.h".
12185 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
12186 * tui/tui-command.c: Include "gdb_curses.h".
12187 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
12188 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
12189 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
12190 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
12191 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
12192 * Makefile.in: Update all dependencies.
12193 (tui_hooks_h, gdb_curses_h): Define.
12194 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
12195
997470ef
EZ
121962004-02-10 Elena Zannoni <ezannoni@redhat.com>
12197
12198 * objfiles.h (struct objfile): Remove unused fields auxf1 and
12199 auxf2. Add comments about some other rarely used fields.
12200
4ff2cc4d
AC
122012004-02-10 Andrew Cagney <cagney@redhat.com>
12202
12203 * Makefile.in (init.c): Fix script removing duplicates. Problem
12204 reported by Peter Schauer.
12205
1ab21617
EZ
122062004-02-09 Elena Zannoni <ezannoni@redhat.com>
12207
12208 * bcache.c (bcache_xmalloc): Use obstack_init instead of
12209 obstack_specify_allocation.
12210 * objfiles.c (allocate_objfile): Ditto.
8a1dac83 12211 * solib-sunos.c (solib_add_common_symbols)
1ab21617
EZ
12212 (allocate_rt_common_objfile): Ditto.
12213 * symfile.c (reread_symbols): Ditto.
12214 * gdb_obstack.h: Add comment.
12215
17763fd9
EZ
122162004-02-09 Elena Zannoni <ezannoni@redhat.com>
12217
12218 * linespec.c (decode_line_1, locate_first_half)
12219 (decode_compound, lookup_prefix_sym): Update comments. Delete old
12220 commented out code.
12221
ec5cdd75
DJ
122222004-02-09 Daniel Jacobowitz <drow@mvista.com>
12223
12224 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
12225 obstack_free.
12226
43b54b88
AC
122272004-02-09 Andrew Cagney <cagney@redhat.com>
12228
12229 * blockframe.c (find_pc_partial_function): If find_pc_overlay
12230 fails, try find_pc_section. Fix PR c++/1267.
12231 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
12232 instead of find_pc_mapped_section.
12233 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
12234 not default to the section containing PC. Fix PR symtab/1519.
12235
edfae063
AC
122362004-02-09 Andrew Cagney <cagney@redhat.com>
12237
12238 * Makefile.in (mips-tdep.o): Update dependencies.
12239 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
12240 "trad-frame.h".
12241 (mips_unwind_pc): Return the pseudo PC register.
12242 (mips_unwind_dummy_id): New function.
12243 (mips16_fetch_instruction): New function.
12244 (mips32_fetch_instruction): New function.
12245 (struct mips_frame_cache): Define.
12246 (mips_mdebug_frame_cache): New function.
12247 (mips_mdebug_frame_this_id): New function.
12248 (mips_mdebug_frame_prev_register): New function.
12249 (mips_mdebug_frame_unwind): Define.
12250 (mips_mdebug_frame_sniffer): New function.
12251 (mips_mdebug_frame_base_address): New function.
12252 (mips_mdebug_frame_base): Define.
12253 (mips_mdebug_frame_base_sniffer): New function.
12254 (mips_gdbarch_init): Append unwind and base sniffers. Set
12255 unwind_dummy_id.
12256
defc864c
AC
122572004-02-08 Andrew Cagney <cagney@redhat.com>
12258
6764ddad
AC
12259 * frame.c: Print both the register number and name.
12260
defc864c
AC
12261 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
12262 and a sed into a single sed. Make .c and .o patterns more robust.
12263 (OBS): Delete.
12264 (INIT_FILES): Replace OBS with COMMON_OBS.
12265 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
12266
645d6d10
MK
122672004-02-08 Mark Kettenis <kettenis@gnu.org>
12268
12269 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
12270 the PT_WCOOKIE request.
12271
23e3c3fc
AC
122722004-02-08 Andrew Cagney <cagney@redhat.com>
12273
58dfe9ff
AC
12274 * mips-tdep.c (mips_unwind_pc): New function.
12275 (mips_gdbarch_init): Set mips_unwind_pc.
12276
1152e35e
AC
12277 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
12278 (get_frame_id): Allow the UNKNOWN_FRAME.
12279 (frame_register_unwind, get_frame_type): Ditto.
12280
31b75dbf
AC
12281 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
12282 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
12283 unwind_dummy_id indicates a legacy frame.
12284
3483b318
AC
12285 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
12286 * configure: Re-generate.
12287
23e3c3fc
AC
12288 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
12289 methods.
12290
33f8ca73
AC
122912004-02-08 Andrew Cagney <cagney@redhat.com>
12292
12293 * configure.in (CONFIG_ALL): Set to Makefile target, and not
12294 makefile macro.
12295 * configure: Re-generate.
12296 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
12297 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
12298 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
12299 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
12300 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
12301 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
12302 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
12303 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
12304 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
12305 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
12306
6ba8e26f 123072004-02-07 Andrew Cagney <cagney@redhat.com>
d836ee13 12308
20d286a5
AC
12309 * Makefile.in: Update all dependencies.
12310
d836ee13
AC
12311 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
12312 * configure: Re-generate.
12313 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
12314 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
12315 (COMMON_OBS): Add "main.o" and "annotate.o".
12316 (ANNOTATE_OBS): Delete.
12317 (OBS): Remove ANNOTATE_OBS.
12318 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
12319 CONFIG_INITS.
12320 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
12321 against CONFIG_OBS and "main.o".
12322 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
12323 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
12324
d02c80cd
AC
12325 * tui/tui-command.c: Include "gdb_string.h", delete register
12326 attribute, use ISO-C function signatures.
12327 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
12328 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
12329 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
12330 * tui/tui.c: Ditto.
6ba8e26f
AC
12331
12332 * tui/tui-command.c: Change variable and function names to lower
12333 case.
12334 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
12335 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
12336 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
12337 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12338 * tui/tui-winsource.c, tui/tui.c: Ditto.
12339
4a146b47
EZ
123402004-02-07 Elena Zannoni <ezannoni@redhat.com>
12341
12342 * buildsym.c (free_pending_blocks, finish_block)
12343 (record_pending_block, make_blockvector, end_symtab): Replace
12344 symbol_obstack with objfile_obstack.
8a1dac83 12345 * coffread.c (process_coff_symbol, coff_read_struct_type)
4a146b47 12346 (coff_read_enum_type): Ditto.
8a1dac83 12347 * cp-namespace.c (initialize_namespace_symtab)
4a146b47 12348 (check_one_possible_namespace_symbol): Ditto.
8a1dac83 12349 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
4a146b47
EZ
12350 (dwarf2_symbol_mark_computed): Ditto.
12351 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
12352 * elfread.c (elf_symtab_read): Ditto.
12353 * hpread.c (hpread_symfile_init, hpread_symfile_init)
12354 (hpread_read_enum_type, hpread_read_function_type)
12355 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
12356 Ditto.
8a1dac83 12357 * jv-lang.c (get_java_class_symtab, add_class_symbol)
4a146b47 12358 (java_link_class_type): Ditto.
8a1dac83 12359 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
4a146b47
EZ
12360 (new_symbol): Ditto.
12361 * minsyms.c (install_minimal_symbols): Ditto.
12362 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
12363 (terminate_minimal_symbol_table): Replace symbol_obstack with
12364 objfile_obstack.
12365 (free_objfile): Remove freeing of symbol_obstack.
12366 * objfiles.h: Remove symbol_obstack field.
12367 * pa64solib.c (add_to_solist): Replace symbol_obstack with
12368 objfile_obstack.
12369 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
12370 symbol_obstack.
12371 (solib_add_common_symbols): Replace symbol_obstack with
12372 objfile_obstack.
12373 * somsolib.c (som_solib_add): Ditto.
12374 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
12375 (common_block_start, common_block_end): Ditto.
12376 * symfile.c (reread_symbols): Remove freeing and init of
12377 symbol_obstack.
12378 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
12379 * symfile.h: Update comment.
12380 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
12381 stats printing.
12382 * symtab.c (symbol_set_names): Replace symbol_obstack with
12383 objfile_obstack.
12384 * symtab.h (struct general_symbol_info, struct minimal_symbol):
12385 Update comments.
12386 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
12387 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
12388 objfile_obstack.
12389
6d012f14
AC
123902004-02-07 Andrew Cagney <cagney@redhat.com>
12391
12392 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
12393 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
12394 fields and variables.
12395 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
12396 (m_beInvisible): Delete macro.
12397 * tui/tui-data.h: Fix case case fields and variables.
12398 (m_genWinPtrIsNull): Delete macro.
12399 (tui_win_list): Rename winList.
12400 (TUI_SRC_WIN): Rename srcWin.
12401 (TUI_DISASM_WIN): Rename disassemWin.
12402 (TUI_DATA_WIN): Rename dataWin.
12403 (TUI_CMD_WIN): Rename cmdWin.
12404 (m_genWinPtrNotNull): Delete macro.
12405 (m_winPtrIsNull): Delete macro.
12406 (m_winPtrNotNull): Delete macro.
12407 (tui_win_is_source_type): Replace m_winIsSourceType
12408 (tui_win_is_auxillary): Replace m_winIsAuzillary.
12409 (tui_win_has_locator): Replace m_hasLocator.
12410 (tui_set_win_highlight): Replace m_setWinHighlightOn and
12411 m_setWinHighlightOff.
12412 * tui/tui-data.c: Update references.
12413 (tui_win_is_source_type, tui_set_win_highlight): New functions.
12414 (tui_win_has_locator, tui_win_is_auxillary): New functions.
12415 * tui/tui-command.c, tui/tui-disasm.c: Update references.
12416 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
12417 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
12418 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12419 * tui/tui-winsource.c, tui/tui.c: Ditto.
12420
7d34766b
MK
124212004-02-07 Mark Kettenis <kettenis@gnu.org>
12422
1c800673
MK
12423 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
12424 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
12425 StackGhost.
12426
7d34766b
MK
12427 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
12428 variable `i6' to `i7'.
12429 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
12430
22940a24
AC
124312004-02-07 Andrew Cagney <cagney@redhat.com>
12432
12433 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
12434 (TuiPoint, TuiPointPtr): Ditto.
12435 (TuiStatus, TuiStatusPtr): Ditto.
12436 (TuiWinType, TuiWinTypePtr): Ditto.
12437 (struct tui_point): Rename _TuiPoint.
12438 (tui_get_low_disassembly_address): Rename
12439 tuiGetLowDisassemblyAddress.
12440 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
12441 (tuiFree): Delete declaration.
12442 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
12443 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
12444 * tui/tui.c (tuiFree): Delete function.
12445 * cli/cli-cmds.c (disassemble_command): Update references.
12446 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
12447 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
12448 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
12449 * tui/tui-winsource.c: Ditto.
12450
8b92e4d5
EZ
124512004-02-07 Elena Zannoni <ezannoni@redhat.com>
12452
12453 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
12454 coffstab_build_psymtabs, elfstab_build_psymtabs)
12455 (stabsect_build_psymtabs): Replace psymbol_obstack with
12456 objfile_obstack.
12457 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
12458 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
12459 Ditto.
12460 * dwarfread.c (scan_compilation_units): Ditto.
12461 * elfread.c (elfstab_offset_sections): Ditto.
12462 * hppa-tdep.c (read_unwind_info): Ditto.
12463 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
12464 (hpread_end_psymtab): Ditto.
12465 * mdebugread.c (mdebug_build_psymtabs, add_pending)
12466 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
12467 Ditto.
12468 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
8a1dac83 12469 * objfiles.c (add_to_objfile_sections)
8b92e4d5
EZ
12470 (build_objfile_section_table): Ditto.
12471 (allocate_objfile): Remove init of psymbol_obstack.
12472 (free_objfile): Remove freeing of psymbol_obstack.
12473 * objfiles.h (struct objfile): Remove field
12474 psymbol_obstack. Update comments.
12475 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
12476 psymbol_obstack with objfile_obstack.
12477 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
12478 psymbol_obstack.
12479 * somread.c (som_symfile_offsets, init_import_symbols)
12480 (init_export_symbols): Replace psymbol_obstack with
12481 objfile_obstack.
12482 * somsolib.c (som_solib_add_solib_objfile): Ditto.
12483 * symfile.c (default_symfile_offsets, syms_from_objfile)
12484 (reread_symbols): Remove freeing and init of psymbol_obstack.
12485 (cashier_psymtab): Update comment.
12486 * symmisc.c (print_objfile_statistics): Don't report stats for
12487 psymbol obstack.
12488 * symtab.h (struct general_symbol_info, struct partial_symtab):
12489 Update comments.
12490 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
12491 (xcoff_symfile_offsets): Replace psymbol_obstack with
12492 objfile_obstack.
12493
b99607ea
EZ
124942004-02-07 Elena Zannoni <ezannoni@redhat.com>
12495
12496 * objfiles.h (struct objfile): Add objfile_obstack field.
12497 Remove type_obstack field.
12498
12499 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
12500 read_structure_scope read_enumeration, new_symbol): Replace
12501 type_obstack with objfile_obstack.
12502 * dwarfread.c (struct_type, enum_type): Ditto.
8a1dac83 12503 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
b99607ea
EZ
12504 (lookup_fundamental_type): Ditto.
12505 * gdbtypes.h (TYPE_ALLOC): Ditto.
8a1dac83
RM
12506 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
12507 (hpread_read_doc_function_type, hpread_read_struct_type)
12508 (fix_static_member_physnames, hpread_read_array_type)
b99607ea 12509 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
8a1dac83 12510 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
b99607ea
EZ
12511 (java_link_class_type): Ditto.
12512 * mdebugread.c (parse_type): Ditto.
12513 * objfiles.c (allocate_objfile, free_objfile): Ditto.
12514 * solib-sunos.c (solib_add_common_symbols): Ditto.
12515 * stabsread.c (define_symbol, read_type, read_member_functions,
12516 read_cpp_abbrev, read_one_struct_field): Ditto.
12517 * symfile.c (reread_symbols): Ditto.
12518 * symmisc.c (print_objfile_statistics): Ditto.
8a1dac83 12519
2a8854a7
AC
125202004-02-07 Andrew Cagney <cagney@redhat.com>
12521
12522 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
12523 (tui_exec_info_content): Rename TuiExecInfoContent.
12524 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
12525 (TuiWinInfo, TuiWinInfoPtr): Ditto.
12526 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
12527 (TuiList, TuiListPtr): Ditto.
12528 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
12529 (TuiDataType, TuiDataTypePtr): Ditto.
12530 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
12531 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
12532 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
12533 (TuiSourceElement, TuiSourceElementPtr): Ditto.
12534 (TuiDataElement, TuiDataElementPtr): Ditto.
12535 (TuiWinElement, TuiWinElementPtr): Ditto.
12536 (TuiDataInfo, TuiDataInfoPtr): Ditto.
12537 (TuiCommandElement, TuiCommandElementPtr): Ditto.
12538 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
12539 (TuiWhichElement, TuiWhichElementPtr): Ditto.
12540 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
12541 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
12542 * tui/tui-command.c, tui/tui-data.c: Update references.
12543 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
12544 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
12545 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12546 * tui/tui-winsource.c, tui/tui.c: Ditto.
8a1dac83 12547
05cbe71a
MK
125482004-02-07 Mark Kettenis <kettenis@gnu.org>
12549
12550 * dwarf2-frame.h: Update copyright.
12551 (enum dwarf2_frame_reg_rule): New.
12552 (struct dwarf2_frame_state_reg): New.
12553 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
12554 * dwarf2-frame.c: Update copyright.
12555 (enum dwarf2_reg_rule): Remove.
12556 (struct dwarf2_frame_state): Remove defenition of `struct
12557 dwarf2_frame_state_reg'.
12558 (read_reg): Call get_frame_arch to get the architecture instead of
12559 using CURRENT_GDBARCH.
12560 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
12561 DWARF2_FRAME_.
12562 (dwarf2_frame_init_reg): New function.
12563 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
12564 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
12565 initialize the register state. Prefix old `enum dwarf2_reg_rule'
12566 tags with DWARF2_FRAME_.
12567 (dwarf2_frame_prev_register): Call get_frame_arch to get the
12568 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
12569 dwarf2_reg_rule' tags with DWARF2_FRAME_.
12570
ec7d9e56
AC
125712004-02-06 Andrew Cagney <cagney@redhat.com>
12572
dd1abb8c
AC
12573 * tui/tui-data.h (struct tui_list): Rename _TuiList.
12574 (enum tui_data_type): Rename _TuiDataType.
12575 (struct tui_layout_def): Rename _TuiLayoutDef.
12576 (struct tui_source_element): Rename _TuiSourceElement.
12577 (struct tui_data_element): Rename _TuiDataElement.
12578 (struct tui_command_element): Rename _TuiCommandElement.
12579 (struct tui_locator_element): Rename _TuiLocatorElement.
12580 (union tui_which_element): Define.
12581 (struct tui_win_element): Rename _TuiWinElement.
12582 (struct tui_data_info): Rename _TuiDataInfo.
12583 (struct tui_source_info): Rename _TuiSourceInfo.
12584 (struct tui_command_info): Rename _TuiCommandInfo.
12585 (tui_initialize_static_data): Rename initializeStaticData.
12586 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
12587 (tui_alloc_win_info): Rename allocWinInfo.
12588 (tui_init_generic_part): Rename initGenericPart.
12589 (tui_init_win_info): Rename initWinInfo.
12590 (tui_alloc_content): Rename allocContent.
12591 (tui_add_content_elements): Rename addContentElements.
12592 (tui_init_content_element): Rename initContentElement.
12593 (tui_free_window): Rename freeWindow.
12594 (tui_free_win_content): Rename freeWinContent.
12595 (tui_free_data_content): Rename freeDataContent.
12596 (tui_free_all_source_wins_content): Rename
12597 freeAllSourceWinsContent.
12598 (tui_del_window): Rename tuiDelWindow.
12599 (tui_del_data_windows): Rename tuiDelDataWindows.
12600 (tui_partial_win_by_name): Rename partialWinByName.
12601 (tui_win_name): Rename winName.
12602 (tui_current_layout): Rename currentLayout.
12603 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
12604 (tui_term_height): Rename termHeight.
12605 (tui_set_term_height_to): Rename setTermHeightTo.
12606 (tui_term_width): Rename termWidth.
12607 (tui_set_term_width_to): Rename setTermWidthTo.
12608 (tui_set_gen_win_origin): Rename setGenWinOrigin.
12609 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
12610 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
12611 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
12612 (tui_source_windows): Rename sourceWindows.
12613 (tui_clear_source_windows): Rename clearSourceWindows.
12614 (tui_clear_source_windows_detail): Rename
12615 clearSourceWindowsDetail.
12616 (tui_clear_win_detail): Rename clearWinDetail.
12617 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
12618 (tui_default_tab_len): Rename tuiDefaultTabLen.
12619 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
12620 (tui_win_with_focus): Rename tuiWinWithFocus.
12621 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
12622 (tui_layout_def): Rename tuiLayoutDef.
12623 (tui_win_resized): Rename tuiWinResized.
12624 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
12625 (tui_next_win): Rename tuiNextWin.
12626 (tui_prev_win): Rename tuiPrevWin.
12627 (tui_add_to_source_windows): Rename addToSourceWindows.
12628 * tui/tui-winsource.c, tui/tui-win.c: Update references.
12629 * tui/tui-layout.c, tui/tui-source.c: Ditto.
12630 * tui/tui-stack.c, tui/tui-io.c: Ditto.
12631 * tui/tui.c, tui/tui-data.c: Ditto.
12632 * tui/tui-interp.c, tui/tui-data.c: Ditto.
12633 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
12634
a358af15
AC
12635 * tui/tui-source.h: Update copyright. Include "tui-data.h".
12636 (struct symtab): Declare.
12637 (tui_set_source_content): Rename tuiSetSourceContent.
12638 (tui_show_symtab_source): Rename tuiShowSource.
12639 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
12640 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
12641 * tui/tui-source.c: Update copyright. Update references.
12642 * tui/tui-win.c, tui/tui-winsource.c: Update references.
12643 * tui/tui-stack.c: Update references.
12644
a21fcd8f
AC
12645 * tui/tui-win.h: Update copyright. Include "tui-data.h".
12646 (struct tui_win_info): Declare.
12647 (tui_scroll_forward): Rename tuiScrollForward.
12648 (tui_scroll_backward): Rename tuiScrollBackward.
12649 (tui_scroll_left): Rename tuiScrollLeft.
12650 (tui_scroll_right): Rename tuiScrollRight.
12651 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
12652 (tui_resize_all): Rename tuiResizeAll.
12653 (tui_refresh_all_win): Rename tuiRefreshAll.
12654 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
12655 * tui/tui-layout.c, * tui/tui-io.c: Update references.
12656 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
12657 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
12658
edae1ccf
AC
12659 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
12660 (tui_erase_data_content): Rename tuiEraseDataContent.
12661 (tui_display_all_data): Rename tuiDisplayAllData.
12662 (tui_check_data_values): Rename tuiCheckDataValues.
12663 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
12664 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
12665 (tui_first_data_element_no_in_line): Rename
12666 tuiFirstDataElementNoInLine.
12667 (tui_delete_data_content_windows): Rename
12668 tuiDeleteDataContentWindows.
12669 (tui_refresh_data_win): Rename tuiRefreshDataWin.
12670 (tui_display_data_from): Rename tuiDisplayDataFrom.
12671 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
12672 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
12673 * tui/tui-win.c, tui/tui-regs.c: Update references.
12674 * tui/tui-layout.c, tui/tui.c: Update references.
12675
ec7d9e56
AC
12676 * tui/tui-wingeneral.h: Update copyright.
12677 (m_allBeVisible): Delete macro.
8a1dac83 12678 (m_allBeInvisible): Delete macro.
ec7d9e56
AC
12679 (struct tui_gen_win_info): Declare.
12680 (struct tui_win_info): Declare.
12681 (tui_unhighlight_win): Rename unhighlightWin.
12682 (tui_make_visible, tui_make_invisible): Replace makeVisible.
12683 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
12684 (tui_make_window): Rename makeWindow.
12685 (tui_copy_win): Rename copyWin.
12686 (tui_box_win): Rename boxWin.
12687 (tui_highlight_win): Rename highlightWin.
12688 (tui_check_and_display_highlight_if_needed): Rename
12689 checkAndDisplayHighlightIfNeeded.
12690 (tui_refresh_all): Rename refreshAll.
12691 (tui_delete_win): Rename tuiDelwin.
12692 (tui_refresh_win): Rename tuiRefreshWin.
12693 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
12694 (tui_make_visible, tui_make_invisible): New functions.
12695 (tui_make_all_visible, tui_make_all_invisible): New functions.
12696 (make_all_visible): Rename makeAllVisible.
12697 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
12698 * tui/tui-data.c, tui/tui-winsource.c: Update references.
12699 * tui/tui-windata.c, tui/tui-win.c: Update references.
12700 * tui/tui-regs.c, tui/tui-layout.c: Update references.
12701 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
12702
1e52e2eb
MK
127032004-02-06 Mark Kettenis <kettenis@gnu.org>
12704
12705 * proc-api.c (write_with_trace): Initialize local variable to
12706 silence compiler warning.
12707
f80bda8e
AC
127082004-02-06 Andrew Cagney <cagney@redhat.com>
12709
12710 * tui/tui-source.h: Do not include "defs.h".
12711 (struct tui_win_info): Declare.
12712 (tui_set_source_content_nil): Declare.
12713 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
12714 (union tui_line_or_address): Rename _TuiLineOrAddress.
12715 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
12716 (tui_update_source_window): Rename tuiUpdateSourceWindow.
12717 (tui_update_source_window_as_is): Rename
12718 tuiUpdateSourceWindowAsIs.
12719 (tui_update_source_windows_with_addr): Rename
12720 tuiUpdateSourceWindowsWithAddr.
12721 (tui_update_source_windows_with_line): Rename
12722 tuiUpdateSourceWindowsWithLine.
12723 (tui_clear_source_content): Rename tuiClearSourceContent.
12724 (tui_erase_source_content): Rename tuiEraseSourceContent.
12725 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
12726 (tui_show_source_content): Rename tuiShowSourceContent.
12727 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
12728 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
12729 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
12730 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
12731 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
12732 (tui_update_exec_info): Rename tuiUpdateExecInfo.
12733 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
12734 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
12735 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
12736 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
12737 (struct tui_win_info): Declare.
12738 * tui/tui-stack.c: Update references.
12739 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
12740 * tui/tui-win.c, tui/tui-source.c: Ditto.
12741 * tui/tui.c, tui/tui-disasm.c: Ditto.
12742
9fbfb822
MK
127432004-02-06 Mark Kettenis <kettenis@gnu.org>
12744
12745 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
12746 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
12747
03cebad2
MK
127482004-02-05 Mark Kettenis <kettenis@gnu.org>
12749
12750 * infrun.c (handle_inferior_event): Allow for breakpoint
12751 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
12752 and SIGEMT. Update comments.
12753 * NEWS (Revised SPARC target): Mention support for non-executable
12754 stack.
12755
290281b1
MK
127562004-02-04 Mark Kettenis <kettenis@gnu.org>
12757
12758 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
12759 * inftarg.c: Update copyright year.
12760 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
12761 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
12762 (sparc_xfer_wcookie): New function.
12763 * sparc-tdep.c (sparc_fetch_wcookie): New function.
12764 * Makefile.in (sparc-nat.o): Update dependencies.
12765 * config/sparc/nm-nbsd.h: Include "target.h".
12766 (NATIVE_XFER_WCOOKIE): New define.
12767 (sparc_xfer_wcookie): New prototype.
12768
212161df
AC
127692004-02-04 Andrew Cagney <cagney@redhat.com>
12770
12771 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
12772 SYSCALL_TRAP function.
12773 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
12774
6e4c6c91
DJ
127752004-02-04 Andrew Cagney <cagney@redhat.com>
12776 Daniel Jacobowitz <drow@mvista.com>
12777
12778 * objfiles.h: Delete comments refering to inside_entry_func and
12779 DEPRECATED_FRAME_CHAIN_VALID.
12780 * defs.h (inside_entry_func): Update prototype..
12781 * blockframe.c (inside_entry_func): Rename to
12782 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
12783 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
12784
cae688ec
JJ
127852004-02-03 Jeff Johnston <jjohnstn@redhat.com>
12786
12787 * breakpoint.c (struct captured_parse_breakpoint_args): Move
12788 outside of #ifdef SOLIB_ADD region.
12789 (do_restore_lang_radix_cleanup): Ditto.
12790 (resolve_pending_breakpoint): Ditto.
12791
19217676
AC
127922004-02-03 Andrew Cagney <cagney@redhat.com>
12793
12794 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
12795 (process_note_abi_tag_sections): Delete unused function.
12796 (ia64_read_fp): Delete unused function.
12797 (gdbarch_extract_struct_value_address): Delete declaration.
12798
876753be
AC
127992004-02-02 Andrew Cagney <cagney@redhat.com>
12800
12801 * vax-tdep.c (vax_frame_chain): Delete call to
12802 deprecated_inside_entry_file.
12803 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
12804
d4f10bf2
MK
128052004-02-02 Mark Kettenis <kettenis@gnu.org>
12806
12807 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
12808 column that's "empty" or "same value" when eliminating REG_RA
12809 rules.
12810
cae688ec
JJ
128112004-02-02 Jeff Johnston <jjohnstn@redhat.com>
12812
12813 * NEWS: Add information about new pending breakpoint support.
12814
0101ce28
JJ
128152004-02-02 Jeff Johnston <jjohnstn@redhat.com>
12816
12817 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
12818 and pending fields for pending breakpoint support.
12819 * breakpoint.c (breakpoint_enabled): Add check for not pending.
12820 (condition_command): Only parse condition if not a pending
12821 breakpoint.
12822 (print_one_breakpoint): Add support for pending breakpoints.
12823 (describe_other_breakpoints): Add checks to verify we are not
12824 dealing with pending breakpoints.
12825 (check_duplicates): Don't check pending breakpoints.
12826 (set_raw_breakpoint): Initialize pending flag.
12827 (do_restore_lang_radix_cleanup): New cleanup routine.
12828 (resolve_pending_breakpoint): New function.
12829 (re_enable_breakpoints_in_shlibs): Try and resolve any
12830 pending breakpoints via resolve_pending_breakpoint.
12831 (mention): Add pending breakpoint support.
12832 (parse_breakpoint_sals): Add new parameter to pass to
12833 decode_line_1 to indicate silent errors when files or functions
12834 are not found. Change all callers.
12835 (do_captured_parse_breakpoint): New function.
12836 (break_command_1): Change prototype to return an rc value and to
12837 take an optional pending breakpoint pointer. Support creating
12838 a pending breakpoint if a "not found" form of error occurs when
12839 parsing the breakpoint. Also support resolving an existing pending
12840 breakpoint and be silent if the resolution fails.
12841 (create_breakpoints): Change prototype to take pending breakpoint
12842 pointer. When resolving a pending breakpoint, use the new pointer
12843 to provide a conditional or commands added by the end-user.
12844 (delete_breakpoint): Add appropriate check for pending.
12845 (breakpoint_re_set_one): Ditto.
12846 (do_enable_breakpoint): Ditto.
12847
8d577d32
DC
128482004-02-02 David Carlton <carlton@kealia.com>
12849
12850 * valops.c (enum oload_classification): New.
12851 (find_overload_match): Break implementation into separate
12852 functions; delete #if 0'd code; look for symbols within
12853 namespaces.
12854 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
12855 (find_oload_champ,oload_method_static,classify_oload_match): New.
12856 * cp-support.h: Add declaration for cp_func_name; update
12857 declaration for make_symbol_overload_list.
12858 * cp-support.c (cp_func_name): New.
12859 (overload_list_add_symbol): Fix comment, use
12860 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
12861 (make_symbol_overload_list): Take a function name and a namespace
12862 instead of a symbol; change implementation.
12863 (make_symbol_overload_list_using): New.
12864 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
12865
22e8e3c7
FF
128662004-02-02 Fred Fish <fnf@redhat.com>
12867
12868 * main.c (gdb_stdtarg): Move definition to group with other
15390fef 12869 gdb_stdtarg definitions and update copyright years.
22e8e3c7
FF
12870 * remote-sim.c (gdb_os_write_stderr): Write output to
12871 gdb_stdtargerr stream instead of gdb_stdtarg stream.
12872 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
15390fef 12873 gdb_stderr stream and update copyright years.
22e8e3c7 12874
6b753f60
DJ
128752004-02-01 Daniel Jacobowitz <drow@mvista.com>
12876
12877 * Makefile.in (mips-linux-nat.o): Update dependencies.
12878 * mips-linux-nat.c: Include mips-tdep.h.
12879
128802004-02-01 Roland McGrath <roland@redhat.com>
2cb6b099
RM
12881
12882 * sol-thread.c (sol_thread_xfer_partial): New function.
12883 (init_sol_thread_ops): Use that for to_xfer_partial hook.
12884 (init_sol_core_ops): Likewise.
12885
12886 * procfs.c (procfs_xfer_partial): New function.
12887 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
12888 * Makefile.in (procfs.o): Add $(auxv_h) dep.
12889
12890 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
12891 procfs_xfer_auxv function.
12892
12893 * procfs.c (procfs_make_note_section): If we can read
12894 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
12895 * linux-proc.c (linux_make_note_section): Likewise.
12896
12897 * auxv.h: New file.
12898 * auxv.c: New file.
12899 * Makefile.in (auxv_h): New variable.
12900 (COMMON_OBS): Add auxv.o here.
12901 (auxv.o): New target.
12902
12903 * corelow.c (core_xfer_partial): New function.
12904 (init_core_ops): Use it for core_ops.to_xfer_partial.
12905
12906 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
12907 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
12908 macro if that is defined.
12909
fa5281d0
DJ
129102004-02-01 Daniel Jacobowitz <drow@mvista.com>
12911
12912 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
12913 and check the specified thread for each breakpoint.
12914 * breakpoint.h (bpstat_stop_status): Update prototype.
12915 * infrun.c (handle_inferior_event): Update calls to
12916 bpstat_stop_status.
12917
26ee262d
DJ
129182004-02-01 Daniel Jacobowitz <drow@mvista.com>
12919
12920 * Makefile.in (cli-cmds.o): Add $(readline_h).
12921
d9b52655
DJ
129222004-02-01 Daniel Jacobowitz <drow@mvista.com>
12923
12924 * cli/cli-cmds.c: Include readline.h.
12925 (complete_command): Pass the start of the last word to
12926 complete_line.
12927
9709f61c
DJ
129282004-01-31 Daniel Jacobowitz <drow@mvista.com>
12929
12930 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
12931 argument, and change first argument to a CORE_ADDR.
12932 * breakpoint.h (bpstat_stop_status): Update prototype.
12933 * infrun.c (adjust_pc_after_break): Add a new comment.
12934 (handle_inferior_event): Update calls to bpstat_stop_status.
12935
4f1280bb
DJ
129362004-01-31 Daniel Jacobowitz <drow@mvista.com>
12937
12938 * breakpoint.h: Update copyright years.
12939
4fa8626c
DJ
129402004-01-31 Daniel Jacobowitz <drow@mvista.com>
12941
12942 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
12943 (bpstat_stop_status): Don't decrement PC.
12944 * breakpoint.h (software_breakpoint_inserted_here_p): Add
12945 prototype.
12946 * infrun.c (adjust_pc_after_break): New function.
12947 (handle_inferior_event): Call it, early. Remove later references
12948 to DECR_PC_AFTER_BREAK.
12949 (normal_stop): Add commentary.
12950
fad0733a
DJ
129512004-01-31 Daniel Jacobowitz <drow@mvista.com>
12952
12953 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
12954 2004-01-27 double-free fix.
12955
42cdca6c
MK
129562004-01-31 Mark Kettenis <kettenis@gnu.org>
12957
12958 * sparc-tdep.c (sparc_fetch_wcookie): New function.
12959 (sparc32_frame_prev_register): Handle StackGhost.
12960 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
12961
932d5416
RM
129622004-01-29 Roland McGrath <roland@redhat.com>
12963
12964 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
12965 * configure: Regenerated.
12966
12967 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
12968 * Makefile.in (procfs.o): Add dep.
12969
47d3492a
AC
129702004-01-28 Andrew Cagney <cagney@redhat.com>
12971
12972 * tui/tui-stack.h: Update copyright.
12973 (struct frame_info): Add opaque declaration.
12974 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
12975 (tui_show_locator_content): Rename tuiShowLocatorContent.
12976 (tui_show_frame_info): Rename tuiShowFrameInfo.
12977 * tui/tui-stack.c: Update copyright. Update references.
12978 * tui/tui-winsource.c: Update references.
12979 * tui/tui-win.c: Update references.
12980 * tui/tui-layout.c: Update references.
12981 * tui/tui-hooks.c: Update copyright, update references.
12982 * tui/tui.c: Update copyright, update references.
12983 * tui/tui-disasm.c: Update references.
12984
5d51ca54
DC
129852004-01-28 David Carlton <carlton@kealia.com>
12986
12987 * dwarf2read.c (add_partial_structure): Use demangled name if
12988 namespace equals "".
12989
086ed43d
JB
129902004-01-27 Jim Blandy <jimb@redhat.com>
12991
12992 Clean up misapplied patch:
12993 * dwarf2read.c (determine_prefix): Change one of the two forward
12994 declarations for 'determine_prefix_aux' to a declaration for this.
12995 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
12996 argument to 'die_specification'.
12997
2a35147e
JB
12998 * dwarf2read.c (read_func_scope): Re-indent comment.
12999
a355c7de 130002004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
932d5416 13001
a355c7de
AC
13002 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
13003 b->exp to NULL after freeing so that error during re-parsing or
13004 evaluation of expressions associated with breakpoint don't
13005 eventually lead to re-freeing of storage.
13006 Committed by Andrew Cagney.
13007
63ff5125
AC
130082004-01-27 Andrew Cagney <cagney@redhat.com>
13009
13010 * source.c (ambiguous_line_spec): Delete undefined declaration.
13011 * m32r-rom.c (m32r_set_board_address): Delete unused function.
13012 (m32r_set_server_address, m32r_set_download_path): Ditto.
13013 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
13014
e142c38c
DJ
130152004-01-27 Daniel Jacobowitz <drow@mvista.com>
13016
13017 * dwarf2read.c: Update calls to changed and renamed functions, and
13018 references to moved variables.
13019
13020 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
13021 language, language_defn, list_in_scope, and ftypes members.
13022 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
13023 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
13024 (baseaddr): Remove globals.
13025
13026 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
13027 (set_cu_language, die_is_declaration, die_specification)
13028 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
13029 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
13030 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
13031 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
13032
13033 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
13034 cu.list_in_scope. Don't initialize cu_header_offset.
13035 (add_partial_symbol): Add local baseaddr.
13036 (psymtab_to_symtab_1): Add local baseaddr. Use
13037 objfile->section_offsets for consistency. Don't initialize
13038 cu_header_offset; do initialize cu.header.offset and
13039 cu.list_in_scope.
13040 (read_file_scope, read_func_scope, read_lexical_block_scope)
13041 (dwarf_decode_lines, new_symbol): Add local baseaddr.
13042
c6e06ede
MC
130432004-01-27 Michael Chastain <mec.gnu@mindspring.com>
13044
fb328ecc 13045 * PROBLEMS: Add gdb/1516.
c6e06ede 13046
48184fd4
AC
130472003-12-29 Robert Millan <robertmh@gnu.org>
13048
13049 Patch committed by Andrw Cagney.
13050 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
13051 * configure.tgt: Match knetbsd*-gnu.
13052
c1321b30
AC
130532004-01-26 Andrew Cagney <cagney@redhat.com>
13054
f3699be3
AC
13055 * breakpoint.c (catch_command_1): Delete #ifdef code.
13056 (catch_fork_command_1): Delete #ifdef wrapper.
13057 (catch_exec_command_1): Ditto.
13058 (catch_load_command_1): Ditto.
13059 (catch_unload_command_1): Ditto.
13060
c1321b30
AC
13061 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
13062 (catch_breakpoint): Delete #if0ed function.
13063 (disable_catch_breakpoint): Ditto.
13064 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
13065 (disable_catch, enable_catch, delete_catch): Ditto.
13066
b4501125
AC
130672004-01-26 Andrew Cagney <cagney@redhat.com>
13068
13069 * remote.c (echo_check, quit_flag): Delete variables.
13070 (cisco_kernel_mode): Delete variable.
13071 (minitelnet_return, tty_input, escape_count): Delete variables.
13072 (remote_cisco_mode): Delete variable.
13073 (remote_cisco_open, remote_cisco_close): Delete function.
13074 (remote_cisco_mourn, remote_cisco_wait): Delete function.
13075 (init_remote_cisco_ops): Delete function.
13076 (_initialize_remote): Do not install "remote cisco" code.
13077 (read_frame): Delete cisco specific code.
13078 (remote_info_process): Delete function.
13079 (remote_wait): Delete cisco specific code.
13080 (remote_cisco_section_offsets): Delete function.
13081 (remote_cisco_objfile_relocate): Delete function.
13082 (remote_async_wait): Delete cisco specific code.
13083 (minitelnet, readtty, readsocket): Delete function.
13084
74055713
AC
130852004-01-26 Andrew Cagney <cagney@redhat.com>
13086
13087 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
13088 comments mentioning extract_returned_value_address.
13089 * infcmd.c (print_return_value): Update. Add comments on
13090 extract_returned_value_address.
13091 * stack.c (return_command): Add comments on
13092 extract_returned_value_address.
13093 * values.c: Update comment.
13094 * m32r-tdep.c: Update comment.
13095 * sparc-tdep.c: Update comment.
13096 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
13097 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
13098 * sh64-tdep.c (sh64_gdbarch_init): Update.
13099 * sh-tdep.c (sh_gdbarch_init): Update.
13100 * s390-tdep.c (s390_gdbarch_init): Update.
13101 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
13102 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
13103 * m68k-tdep.c (m68k_gdbarch_init): Update.
13104 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
13105 * m32r-tdep.c (m32r_gdbarch_init): Update.
13106 * ia64-tdep.c (ia64_gdbarch_init): Update.
13107 * h8300-tdep.c (h8300_gdbarch_init): Update.
13108 * frv-tdep.c (frv_gdbarch_init): Update.
13109 * arm-tdep.c (arm_gdbarch_init): Update.
13110 * alpha-tdep.c (alpha_gdbarch_init): Update.
13111
a67af2b9
AC
131122004-01-26 Andrew Cagney <cagney@redhat.com>
13113
13114 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
13115 SYMBOL_LOCATION_FUNCS
13116 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
13117 "struct symbol_ops".
13118 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
13119 type to "struct symbol_ops".
13120 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
13121 (struct symbol): Replace ".aux_value.loc.funcs" and
13122 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
13123 (SYMBOL_OBJFILE): Delete macro.
13124 (SYMBOL_LOCATION_FUNCS): Delete macro.
13125 (SYMBOL_LOCATION_BATON): Update.
13126 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
13127 intead of SYMBOL_LOCATION_FUNCS.
13128 * ax-gdb.c (gen_var_ref): Ditto.
13129 * printcmd.c (address_info): Ditto.
13130 * findvar.c (read_var_value): Ditto.
13131 (symbol_read_needs_frame): Ditto.
13132
c034e007
AC
131332004-01-26 Andrew Cagney <cagney@redhat.com>
13134
13135 * dwarf2read.c (read_func_scope): Document frame-base hack.
13136
bb472c1e
MK
131372004-01-25 Mark Kettenis <kettenis@gnu.org>
13138
13139 * infcmd.c (print_return_value): Plug memory leak; delete
13140 ui_stream object. Rename argument `structure_return' to
13141 `struct_return'.
13142
c8e737d5
MK
131432004-01-25 Mark Kettenis <kettenis@gnu.org>
13144
f941662f
MK
13145 * infcmd.c (print_return_value): Wrap long lines.
13146 (finish_command_continuation, finish_command): Remove unused
13147 variable `funcaddr'. Fix some coding-standards problems.
13148
c558d81a 13149 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
d8d65dd3 13150 SECT_SIZE is large enough, not whether it's exactly the right size.
c558d81a
MK
13151 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
13152 TDEP->fpregset to zero.
13153
bf1e5861 13154 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
c8e737d5
MK
13155 floating-point registers for traditional NetBSD core files.
13156 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
13157 TDEP->sizeof_fpregset here.
13158
4c72d57a
MK
131592004-01-25 Mark Kettenis <kettenis@gnu.org>
13160
566626fa
MK
13161 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
13162 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
13163 function with code split out from
13164 sparc32nbsd_sigcontext_frame_cache.
13165 (sparc32nbsd_sigcontext_frame_cache): Use
13166 sparc32nbsd_sigcontext_saved_regs.
13167 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
13168 OpenBSD.
13169 * sparcobsd-tdep.c: New file.
13170 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
13171 (sparcobsd-tdep.o): New dependency.
13172 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
13173 * config/sparc/obsd.mt: New file.
13174
4c72d57a
MK
13175 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
13176 TDEP->fpregset to be initialized to enable core file register
13177 sets.
13178
7e5e9f88
MK
131792004-01-24 Mark Kettenis <kettenis@gnu.org>
13180
f0f207fd 13181 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
1e067c66
MK
13182 Add opaque declarations.
13183 (sparc64nbsd_sigcontext_saved_regs): New prototype.
13184 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
13185 function with code split out from
13186 sparc64nbsd_sigcontext_frame_cache.
13187 (sparc64nbsd_sigcontext_frame_cache): Use
13188 sparc64nbsd_sigcontext_saved_regs.
13189 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
13190 OpenBSD.
13191 * sparc64obsd-tdep.c: New file.
13192 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
13193 (sparc64obsd-tdep.o): New dependency.
13194 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
13195 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
13196 * config/sparc/obsd64.mt: New file.
13197
690668cc
MK
13198 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
13199 read the instruction at PC.
13200
7e5e9f88
MK
13201 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
13202 value of GDB_OSABI_DEFAULT.
13203 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
13204 instead of GDB_OSABI_NETBSD_AOUT.
13205
68b6dce9
NR
132062004-01-24 Nick Roberts <nick@nick.uklinux.net>
13207
13208 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
13209 copyright.
13210
080ce8c0
AC
132112004-01-23 Andrew Cagney <cagney@redhat.com>
13212
13213 * printcmd.c (display_command): Replace tui_set_display call with
13214 tui_set_layout_for_display_command.
13215 * tui/tui.h (enum tui_win_type): Define.
13216 (tui_set_layout): Delete declaration.
13217 (tui_set_layout_for_display_command): Rename set_tui_layout.
13218 * tui/tui-data.h (enum tui_layout_type): Define.
13219 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
13220 "tui.h".
13221 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
13222 (tui_default_win_height): Rename tuiDefaultWinHeight.
13223 (tui_default_win_viewport_height): Rename
13224 tuiDefaultWinViewportHeight.
13225 (tui_set_layout): RenametuiSetLayout.
13226 * tui/tui-layout.c: Update references.
13227 * tui/tui.c: Update references.
13228 * tui/tui-disasm.c: Update references.
13229
b368761e
DC
132302004-01-23 David Carlton <carlton@kealia.com>
13231
13232 Partial workaround for PR c++/1511:
13233 * cp-namespace.c: Include frame.h.
13234 (cp_lookup_transparent_type): New
13235 (cp_lookup_transparent_type_loop): New.
13236 * cp-support.h: Declare cp_lookup_transparent_type.
13237 * symtab.c (basic_lookup_transparent_type): Renamed from
13238 lookup_transparent_type.
13239 (lookup_transparent_type): Replace old body by a call to
13240 current_language->la_lookup_transparent_type.
13241 * symtab.h: Update copyright. Declare
13242 basic_lookup_transparent_type.
13243 * language.h: Update copyright.
13244 (struct language_defn): Add la_lookup_transparent_type.
13245 * language.c: Update copyright.
13246 (unknown_language_defn): Add basic_lookup_transparent_type.
13247 (auto_language_defn): Add basic_lookup_transparent_type.
13248 (local_language_defn): Add basic_lookup_transparent_type.
13249 * ada-lang.c: Update copyright.
13250 (ada_language_defn): Add basic_lookup_transparent_type.
13251 * c-lang.c: Update copyright.
13252 (c_language_defn): Add basic_lookup_transparent_type.
13253 (cplus_language_defn): Add basic_lookup_transparent_type.
13254 (asm_language_defn): Add basic_lookup_transparent_type.
13255 (minimal_language_defn): Add basic_lookup_transparent_type.
13256 * f-lang.c: Update copyright.
13257 (f_language_defn): Add basic_lookup_transparent_type.
13258 * jv-lang.c: Update copyright.
13259 (java_language_defn): Add basic_lookup_transparent_type.
13260 * m2-lang.c: Update copyright.
13261 (m2_language_defn): Add basic_lookup_transparent_type.
13262 * objc-lang.c: Update copyright.
13263 (objc_language_defn): Add basic_lookup_transparent_type.
13264 * p-lang.c: Update copyright.
13265 (p_language_defn): Add basic_lookup_transparent_type.
13266 * scm-lang.c: Update copyright.
13267 (scm_language_defn): Add basic_lookup_transparent_type.
13268 * Makefile.in (cp-namespace.o): Depend on frame.h.
13269
fdde2d81
DC
132702004-01-23 David Carlton <carlton@kealia.com>
13271
13272 Patch for PR c++/1520:
13273 * dwarf2read.c (read_func_scope): Set processing_current_prefix
13274 properly if we have a specification die.
13275 (determine_prefix_aux): Rename from determine_prefix.
13276 (determine_prefix): Like the old determine_prefix, but never
13277 returns NULL.
13278
5b828b6b
TR
132792004-01-23 Theodore A. Roth <troth@openavr.org>
13280
13281 * avr-tdep.c: Update copyright.
13282 (avr_iaddr_p): Delete unused function.
13283 (avr_saddr_p): Delete unused function.
13284
a1b8c067
DC
132852004-01-23 David Carlton <carlton@kealia.com>
13286
13287 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
13288 Fix for PR symtab/1534.
13289
f2cab569
MK
132902004-01-23 Mark Kettenis <kettenis@gnu.org>
13291
13292 * NEWS (New native configurations): Mention OpenBSD/sparc and
13293 OpenBSD/sparc64.
13294 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
13295 * configure.host: Likewise.
13296 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
13297 handler for OpenBSD.
13298 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
13299
642d8300
MK
133002004-01-22 Mark Kettenis <kettenis@gnu.org>
13301
89aac506
MK
13302 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
13303 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
13304
36662fde
MK
13305 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
13306 * cli/cli-cmds.c (shell_escape): Likewise.
13307
642d8300
MK
13308 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
13309 OpenBSD .note.openbsd.ident sections.
13310
fae299cd
DC
133112004-01-22 David Carlton <carlton@kealia.com>
13312
13313 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
13314 get_scope_pc_bounds.
13315 (read_file_scope): Ditto.
13316 (get_scope_pc_bounds): New function, produced by extracting code
13317 from the above two functions, consolidating it, and adding support
13318 for DW_TAG_namespace.
13319
a49d618c
MK
133202004-01-22 Mark Kettenis <kettenis@gnu.org>
13321
13322 * osabi.c (MAX_NOTESZ): New define.
13323 (check_note): New function.
13324 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
13325 check_note.
13326
fe61caab
RM
133272004-01-21 Roland McGrath <roland@redhat.com>
13328
13329 * MAINTAINERS (write after approval): Add myself.
13330
ec145965
EZ
133312004-01-21 Eli Zaretskii <eliz@gnu.org>
13332
13333 * utils.c (init_page_info): Move declarations of `rows' and
13334 `cols' before the __GO32__-specific code. Move the closing brace
13335 outside the #ifdef __GO32__..#endif block.
13336 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
13337
877522db
PB
133382004-01-21 Paul Brook <paul@codesourcery.com>
13339
13340 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
13341 BPSTAT_WHAT_CHECK_SHLIBS.
13342
dbf5be1c
PB
133432004-01-21 Paul Brook <paul@codesourcery.com>
13344
13345 * MAINTAINERS: Add myself to write-after-approval.
13346
81f08b92
AC
133472004-01-20 Andrew Cagney <cagney@redhat.com>
13348
5a1efed7
AC
13349 * ax-gdb.c (print_axs_value): Delete unused function.
13350 * jv-lang.c (java_lookup_type): Delete unused function.
13351 * cli/cli-dump.c (dump_filetype): Delete unused function.
13352 * remote-mips.c (remote_mips_insert_hw_breakpoint)
13353 (remote_mips_remove_hw_breakpoint): Delete unused functions.
13354 (mips_getstring): Delete unused function.
13355 (pmon_insert_breakpoint): Delete #if0ed function.
13356 (PMON_MAX_BP): Delete #if0ed MACRO.
13357 (mips_pmon_bp_info): Delete #if0ed variable.
13358 (pmon_remove_breakpoint): Delete #if0ed function.
13359 * monitor.c (monitor_write_even_block): Delete unused function.
13360 (monitor_write_memory_block): Delete #if0ed code.
13361 * dink32-rom.c (dink32_load): Delete unused function.
13362 (_initialize_dink32_rom): Delete #if0ed code.
13363 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
13364
b0a30fce
AC
13365 * tui/tui-command.c: Update references.
13366 * tui/tui-io.c: Update references.
13367 * tui/tui-command.h: Update copyright.
13368 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
13369
81f08b92
AC
13370 * source.c (ambiguous_line_spec): Delete never-defined function.
13371 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
13372 * gdbtypes.c (add_name, add_mangled_type): Ditto.
13373 * cli/cli-cmds.c (validate_comname): Ditto.
13374
65f05602
AC
13375 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
13376 "tui-data.h".
13377 (tui_set_disassem_content): Rename tuiSetDisassemContent.
13378 (tui_show_disassem): Rename tuiShowDisassem.
13379 (tui_show_disassem_and_update_source): Rename
13380 tuiVerticalDisassemScroll.
13381 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
13382 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
13383 * tui/tui.h: Update copyright.
13384 (enum tui_status): Define.
13385 * tui/tui-data.h (enum tui_scroll_direction): Define.
13386 * tui/tui-disasm.c: Update copyright. Update references.
13387 * tui/tui-winsource.c: Update copyright. Update references.
13388 * tui/tui-win.c: Update references.
13389 * tui/tui-layout.c: Update references.
13390
6bb0384f
AC
133912004-01-20 Andrew Cagney <cagney@redhat.com>
13392
13393 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
13394 sym2 to start of block.
13395
9175c9a3
MC
133962004-01-19 Michael Chastain <mec.gnu@mindspring.com>
13397
13398 * MAINTAINERS: Delete mmalloc.
13399 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
13400 * NEWS: Mention removal of --with-malloc.
13401 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
13402 * config.in: Regenerate.
13403 * configure: Regenerate.
6bb0384f
AC
13404 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
13405 USE_MMALLOC, MMCHECK_FORCE.
9175c9a3
MC
13406 * gdbinit.in: Remove mmalloc.
13407 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
13408 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
13409 * config/i386/go32.mh: Likewise.
13410 * config/i386/interix.mh: Likewise.
13411 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
13412
4fcef00a
JJ
134132004-01-19 Jeff Johnston <jjohnstn@redhat.com>
13414
13415 * linespec.c (decode_variable, symtab_from_filename): Call
13416 error_silent with error message instead of throwing an exception
13417 directly.
13418 * defs.h (error_silent, error_output_message): Add prototypes.
13419 (catch_exceptions_with_msg): Ditto.
13420 * utils.c (error_silent, error_output_message): New functions.
13421 * top.c (catch_exceptions_with_msg): New function.
13422
8e94b928
NR
134232004-01-20 Nick Roberts <nick@nick.uklinux.net>
13424
13425 * mi/mi-cmds.h (enum print_values): Add definition.
13426
13427 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
13428 type and value for simple data types and just the name and type
13429 for complex ones, if required.
13430
13431 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
13432 children, if required.
13433
a02d6af8
KB
134342004-01-19 Kevin Buettner <kevinb@redhat.com>
13435
13436 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
13437 unused declarations.
13438
78a4a9b9
AC
134392004-01-19 Andrew Cagney <cagney@redhat.com>
13440
13441 * top.h (mapped_symbol_files): Delete declaration.
13442 * main.c (captured_main): Delete option "m" and "mapped".
13443 * objfiles.c (mapped_symbol_files): Delete variable.
13444 * symfile.c (symbol_file_command): Delete mmap code.
13445 (symbol_file_add_with_addrs_or_offsets): Ditto.
13446 (add_symbol_file_command, reread_separate_symbols): Ditto.
13447 * objfiles.h (OBJF_MAPPED): Delete.
13448 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
13449 (free_objfile) [USE_MMALLOC]: Ditto.
13450 (open_existing_mapped_file): Delete function.
13451 (open_mapped_file): Delete function.
13452 (map_to_file): Delete function.
13453
2dbd5e30
KB
134542004-01-19 Kevin Buettner <kevinb@redhat.com>
13455
13456 * infrun.c (step_into_function): Account for possible breakpoint
13457 adjustment when computing ``stop_func_start''.
13458
437b434f
KB
134592004-01-19 Kevin Buettner <kevinb@redhat.com>
13460
13461 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
13462 the region size against the size of a pointer, not the size of
13463 a register as given by DEPRECATED_REGISTER_SIZE.
13464
55fb0713
AC
134652004-01-19 Andrew Cagney <cagney@redhat.com>
13466
13467 * tui/tui-regs.h: Include "tui-data.h".
13468 (tuiFirstRegElementNoInLine): Delete declaration.
13469 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
13470 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
13471 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
13472 (tui_calculate_regs_column_count): Rename
13473 tuiCalculateRegsColumnCount.
13474 (tui_check_register_values): Rename tuiCheckRegisterValues.
13475 (tui_show_registers): Rename tuiShowRegisters.
13476 (tui_display_registers_from_line): Rename
13477 tuiDisplayRegistersFromLine.
13478 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
13479 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
13480 (tui_first_reg_element_no_inline): Rename
13481 tuiFirstRegElementNoInLine.
13482 * tui/tui-data.h: Update copyright.
13483 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
13484 * tui/tui-windata.c: Update copyright, update references.
13485 * tui/tui-regs.c: Update copyright, update references.
13486 * tui/tui-win.c: Update copyright, update references.
13487 * tui/tui-layout.c: Update copyright, update references.
fe61caab 13488
cebe9500
AC
134892004-01-18 Andrew Cagney <cagney@redhat.com>
13490
bcdf1568
AC
13491 * tui/tui-io.c: Update copyright.
13492 (key_is_end_sequence, key_is_backspace): New functions.
13493 (key_is_command_char, key_is_start_sequence): New function.
13494 (tui_getc): Update references.
13495 * tui/tui-io.h: Update copyright.
13496 (m_tuiStartNewLine): Delete macro.
13497 (m_isBackspace, m_isDeleteChar): Delete macros.
13498 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
13499 (m_isNextPage, m_isPrevPage): Delete macros.
13500 (m_isLeftArrow, m_isRightArrow): Delete macros.
13501 (m_isXdbStyleCommandChar): Delete macro.
13502 (key_is_start_sequence): Declare, replace m_isStartSequence.
13503 (key_is_end_sequence): Declare, replace m_isEndSequence.
13504 (key_is_backspace): Declare ,replace m_isBackspace.
13505 (key_is_command_char): Declare, replace m_isCommandChar.
13506 * tui/tui-command.c: Update copyright.
13507 (tuiDispatchCtrlChar): Update references.
13508
130d87e6
AC
13509 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
13510 tuiSourceWin.h.
13511
d7b2e967
AC
13512 * tui/tui-command.c: Rename tui/tuiCommand.c.
13513 * tui/tui-command.h: Rename tui/tuiCommand.h.
13514 * tui/tui-data.c: Rename tui/tuiData.c.
13515 * tui/tui-data.h: Rename tui/tuiData.h.
13516 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
13517 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
13518 * tui/tui-io.c: Rename tui/tuiIO.c.
13519 * tui/tui-io.h: Rename tui/tuiIO.h.
13520 * tui/tui-layout.c: Rename tui/tuiLayout.c.
13521 * tui/tui-layout.h: Rename tui/tuiLayout.h.
13522 * tui/tui-regs.c: Rename tui/tuiRegs.c.
13523 * tui/tui-regs.h: Rename tui/tuiRegs.h.
13524 * tui/tui-source.c: Rename tui/tuiSource.c.
13525 * tui/tui-source.h: Rename tui/tuiSource.h.
13526 * tui/tui-stack.c: Rename tui/tuiStack.c.
13527 * tui/tui-stack.h: Rename tui/tuiStack.h.
13528 * tui/tui-win.c: Rename tui/tuiWin.c.
13529 * tui/tui-win.h: Rename tui/tuiWin.h.
13530 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
13531 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
13532 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
13533 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
13534 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
13535 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
13536 * tui/tui-file.c: Update includes.
13537 * tui/tui-hooks.c: Update includes.
13538 * tui/tui-interp.c: Update includes.
13539 * tui/tui.c: Update includes.
13540 * Makefile.in: Update all tui/ dependencies.
13541 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
13542
b2100910
AC
13543 * Makefile.in: Update copyright. Update dependencies.
13544
cebe9500
AC
13545 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
13546 problem.
13547
c6f0559b
AC
135482004-01-18 Andrew Cagney <cagney@redhat.com>
13549
43e9390b
AC
13550 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
13551 instead of register_gdbarch_init.
13552
c6f0559b
AC
13553 * remote-sds.c (tohex): Delete unused function. Update copyright.
13554 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
13555 * v850-tdep.c (v850_register_virtual_size): Ditto.
13556 * target.c (normal_target_post_startup_inferior): Ditto.
13557 * source.c (ambiguous_line_spec): Ditto.
13558 * remote.c (adapt_remote_get_threadinfo): Ditto.
13559 * mi/mi-out.c (out_field_fmt): Ditto.
13560 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
13561 (output_control_change_notification): Ditto.
13562 * m68k-tdep.c (m68k_register_byte): Ditto.
13563 (m68k_remote_breakpoint_from_pc): Ditto.
13564 * ui-out.c (init_ui_out_state): Delete unused declaration.
13565 * stabsread.c (search_value): Ditto.
13566 * mi/mi-cmd-env.c (env_cli_command): Ditto.
13567 * maint.c (print_section_table): Ditto.
13568 * infrun.c (set_follow_fork_mode_command): Ditto.
13569
a8504492
MK
135702004-01-18 Mark Kettenis <kettenis@gnu.org>
13571
13572 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
13573 DW_CFA_def_cfa_exporession. Add support for
13574 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
13575 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
13576
0bd8997e
AC
135772004-01-18 Andrew Cagney <cagney@redhat.com>
13578
13579 * ocd.c: Update copyright.
13580 (bdm_read_register_command): Delete unused function.
13581 (_initialize_remote_ocd): Delete commented out reference.
13582 (get_quoted_char, reset_packet): Delete #if0ed function.
13583 (output_packet, put_quoted_char): Delete #if0ed function.
13584 (stu_put_packet, stu_get_packet): Delete #if0ed function.
13585 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
13586 (BDM_BREAKPOINT): Delete #if0ed macro.
13587 (remote_timeout): Delete #if0ed variable.
13588
31bb40e4
MK
135892004-01-18 Mark Kettenis <kettenis@gnu.org>
13590
13591 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
13592 (core-sol2.o): Remove dependency.
13593 * core-sol2.c: Remove file.
13594
887432a5
AC
135952004-01-17 Andrew Cagney <cagney@redhat.com>
13596
13597 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
13598 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
13599 enums.
13600
29182b13
DJ
136012004-01-17 Daniel Jacobowitz <drow@mvista.com>
13602
13603 * remote.c: Update copyright years.
13604
2963ee1d
DJ
136052004-01-17 Daniel Jacobowitz <drow@mvista.com>
13606
13607 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
13608
79d45cd4
AC
136092004-01-17 Andrew Cagney <cagney@redhat.com>
13610
ee300cd4
AC
13611 * mdebugread.c: Update copyright.
13612 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
13613 (parse_type, parse_procedure): Ditto.
13614 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
13615
fcacc9c2
AC
13616 * cris-tdep.c (cris_store_struct_return): Put back accidently
13617 deleted function.
13618
79d45cd4
AC
13619 * gdbarch.sh: Update copyright year.
13620 * gdbarch.h, gdbarch.c: Re-generate.
13621
b263358a
DJ
136222004-01-17 Daniel Jacobowitz <drow@mvista.com>
13623
13624 Suggested by George Anzinger.
13625 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
13626 correct stack offset. Include unknown opcode numbers in the error
13627 message.
13628
931aecf5
AC
136292004-01-17 Andrew Cagney <cagney@redhat.com>
13630
13631 * x86-64-tdep.c (x86_64_init_abi): No need to clear
13632 extract_struct_value_address, i386 does not set it.
13633 * sparc64-tdep.c (sparc64_init_abi): Do not set
13634 extract_struct_value_address, never called.
13635 (sparc64_extract_struct_value_address): Delete function.
13636 * m68hc11-tdep.c: Update copyright.
13637 (m68hc11_gdbarch_init): Delete redundant assignment of
13638 extract_struct_value_address.
13639 * i386-tdep.c: Update copyright.
13640 (i386_gdbarch_init): Do not set extract_struct_value_address,
13641 never called.
13642 (i386_extract_struct_value_address): Delete function.
13643 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
13644 extract_struct_value_address, never called.
13645 (sparc32_extract_struct_value_address): #if 0 function. Add
13646 comments explaining its future.
13647
756fe439
DJ
136482004-01-17 Daniel Jacobowitz <drow@mvista.com>
13649
13650 * arm-tdep.c (arm_write_pc): New function.
13651 (arm_gdbarch_init): Call set_gdbarch_write_pc.
13652
e74f0f02
DJ
136532004-01-17 Daniel Jacobowitz <drow@mvista.com>
13654
13655 * breakpoint.c (must_shift_inst_regs): Delete.
13656 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
13657 and SHIFT_INST_REGS.
13658 * infcmd.c (step_1, step_1_continuation): Delete references to
13659 SHIFT_INST_REGS.
13660 * infrun.c (keep_going): Likewise.
13661 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
13662 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
13663
b6cb9035
AC
136642004-01-17 Andrew Cagney <cagney@redhat.com>
13665
444a1e2e
AC
13666 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13667 * gdbarch.h, gdbarch.c: Re-generate.
13668 * infcmd.c (print_return_value): Delete reference to
13669 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
13670
def7e6ed
AC
13671 * cris-tdep.c (cris_gdbarch_init): Do not set
13672 deprecated_extract_struct_value_address.
13673
07be497a
AC
13674 * xstormy16-tdep.c: Update copyright.
13675 (xstormy16_extract_struct_value_address): Update to current
13676 extract struct value address interface.
13677 (xstormy16_gdbarch_init): Set extract_struct_value_address.
13678 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
13679 current extract struct value address interface.
13680 (sh64_gdbarch_init): Set extract_struct_value_address.
13681
6b4d5c91
AC
13682 * cris-tdep.c: Update copyright.
13683 (cris_extract_struct_value_address): Delete function.
13684 (struct_return_address): Delete variable.
13685 (cris_store_struct_return): Do not set struct_return_address.
13686
464e0365
AC
13687 * mcore-tdep.c: Update copyright.
13688 (mcore_extract_struct_value_address): Delete function. Update
13689 comments.
13690 (mcore_gdbarch_init): Update.
13691 * mn10300-tdep.c: Update copyright.
13692 (mn10300_extract_struct_value_address): Delete function.
13693 (mn10300_gdbarch_init): Update.
13694 * v850-tdep.c: Update copyright.
13695 (v850_extract_struct_value_address): Delete.
13696 (v850_gdbarch_init): Update.
13697 * ns32k-tdep.c: Update copyright.
13698 (ns32k_extract_struct_value_address): Delete.
13699 (ns32k_gdbarch_init): Update.
13700 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
13701 (hppa_gdbarch_init): Update.
13702 * vax-tdep.c: Update copyright.
13703 (vax_extract_struct_value_address): Delete.
13704 (vax_gdbarch_init): Update.
13705
afb18d0f
AC
13706 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
13707 * gdbarch.h, gdbarch.c: Re-generate.
13708 * procfs.c (procfs_fetch_registers): Delete reference to
13709 DEPRECATED_NPC_REGNUM.
13710 (procfs_store_registers): Ditto.
13711 * regcache.c (generic_target_write_pc): Simplify.
13712 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
13713
a698f53e
AC
13714 * core-sol2.c (fetch_core_registers): Replace
13715 DEPRECATED_NPC_REGNUM with equivalent tdep value.
13716
adc11376
AC
13717 * hppa-tdep.c: Update copyright year.
13718 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
13719 NPC_REGNUM.
13720 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
13721
b6cb9035
AC
13722 * mips-tdep.c (mips_write_pc): New function.
13723 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
13724 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
13725 (mips_find_saved_regs, mips_software_single_step: Ditto.
13726 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
13727 mips_init_extra_frame_info, mips_pop_frame): Ditto.
13728
6d82d43b
AC
137292004-01-17 Andrew Cagney <cagney@redhat.com>
13730
13731 * mips-tdep.c: Re-indent. Group functions by ABI.
13732
71bd6bd4
AC
137332004-01-17 Andrew Cagney <cagney@redhat.com>
13734
13735 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
13736 * gdbarch.c: Re-generate.
13737 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
13738 DECR_PC_AFTER_BREAK to zero.
13739 * vax-tdep.c (vax_gdbarch_init): Ditto.
13740 * v850-tdep.c (v850_gdbarch_init): Ditto.
13741 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
13742 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
13743 * sh-tdep.c (sh_gdbarch_init): Ditto.
13744 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
13745 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
13746 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
13747 * mips-tdep.c (mips_gdbarch_init): Ditto.
13748 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
13749 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13750 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
13751 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
13752 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
13753 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
13754 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
13755 * frv-tdep.c (frv_gdbarch_init): Ditto.
13756 * cris-tdep.c (cris_gdbarch_init): Ditto.
13757 * avr-tdep.c (avr_gdbarch_init): Ditto.
13758 * arm-tdep.c (arm_gdbarch_init): Ditto.
13759 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
13760
a02abb62
JB
137612004-01-17 J. Brobecker <brobecker@gnat.com>
13762
13763 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
13764 Delete, no longer used.
13765 (read_subrange_type): New function, mostly extracted from
13766 read_array_type().
13767 (read_array_type): Replace extracted code by call to
13768 read_subrange_type().
13769 (dwarf2_get_attr_constant_value): New function.
13770 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
13771 (add_partial_symbol): Likewise.
13772 (process_die): Likewise.
13773 (new_symbol): Likewise.
13774 (read_type_die): Likewise.
13775
cf5b2f1b
AC
137762004-01-16 Andrew Cagney <cagney@redhat.com>
13777
13778 * symfile.c: Update copyright year.
13779 (compare_symbols): Delete unused function.
13780 * stabsread.c: Update copyright year.
13781 (lrs_general_complaint): Delete unused function.
13782 (ref_search_value): Ditto.
13783 (get_substring): Delete declaration.
13784 * sh64-tdep.c: Update copyright year.
13785 (sh64_get_gdb_regnum): Delete unused function.
13786 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
13787 Delete unused function.
13788
d33b9831
MK
137892004-01-17 Mark Kettenis <kettenis@gnu.org>
13790
13791 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
13792 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
13793
7aea86e6
AC
137942004-01-16 Andrew Cagney <cagney@redhat.com>
13795
13796 Changes from Peter Schauer.
13797 * rs6000-tdep.c: Update copyright year.
13798 (rs6000_push_dummy_call): Update the stack pointer before
13799 accessing the corresponding stack region.
13800 * rs6000-nat.c: Update copyright year.
13801 (set_host_arch): Set "info.abfd" to "exec_bfd".
13802
26b0da32
MK
138032004-01-15 Mark Kettenis <kettenis@gnu.org>
13804
13805 * blockframe.c: Update copyright year.
13806 (inside_entry_func): Don't treat a zero PC specially.
13807
86fbe6cc
EZ
138082004-01-14 Elena Zannoni <ezannoni@redhat.com>
13809
13810 * gcore.c (gcore_copy_callback): Use paddr_d to print size
13811 variable.
13812 (gcore_create_callback): Ditto. Skip any memory segment that has
13813 no permissions set.
13814
63d06c5c
DC
138152004-01-14 David Carlton <carlton@kealia.com>
13816
13817 Change symbols for C++ nested types to contain the fully qualified
13818 name, if possible. (At least in the DWARF-2 case.) Partial fix
13819 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
13820 c++/895.
13821 * c-exp.y (qualified_type): Handle types nested within classes.
13822 * cp-namespace.c: Update comments.
13823 (cp_set_block_scope): Delete #if 0.
13824 (cp_lookup_nested_type): Handle types nested within classes.
13825 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
13826 when appropriate.
13827 (add_partial_symbol): Add the name of the enclosing namespace to
13828 types.
13829 (pdi_needs_namespace): New.
13830 (add_partial_namespace): Tweak comment.
13831 (add_partial_structure): New.
13832 (psymtab_to_symtab_1): Initialize processing_current_prefix
13833 here...
13834 (process_die): instead of here.
13835 (read_structure_scope): Try to figure out the name of the class or
13836 namespace that the structure might be defined within.
13837 (read_enumeration): Generate fully-qualified names, if possible.
13838 (read_namespace): Don't set name to NULL.
13839 (die_specification): New.
13840 (new_symbol): Generate fully-qualified names for types.
13841 (read_type_die): Determine appropriate prefix.
13842 (determine_prefix): New.
13843 (typename_concat): New.
13844 (class_name): New.
13845 * valops.c (value_aggregate_elt): Pass NOSIDE to
13846 value_struct_elt_for_reference.
13847 (value_struct_elt_for_reference): Make static, add NOSIDE
13848 parameter, call value_maybe_namespace_elt as a last resort.
13849 (value_namespace_elt): Break out code into
13850 value_maybe_namespace_elt.
13851 (value_maybe_namespace_elt): New.
13852
87783b8b
AC
138532004-01-12 Andrew Cagney <cagney@redhat.com>
13854
13855 * mips-tdep.c (mips_convert_register_p): Handle both raw and
13856 cooked floating-point registers.
13857 (mips_gdbarch_init): Set convert_register_p, register_to_value,
13858 and value_to_register.
13859
6503b91e
AC
138602004-01-13 Andrew Cagney <cagney@redhat.com>
13861
13862 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
13863 * gdbarch.c: Re-generate.
13864 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
13865 FUNCTION_START_OFFSET.
13866 * v850-tdep.c (v850_gdbarch_init): Ditto.
13867 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
13868 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
13869 * sh-tdep.c (sh_gdbarch_init): Ditto.
13870 * s390-tdep.c (s390_gdbarch_init): Ditto.
13871 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
13872 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
13873 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
13874 * mips-tdep.c (mips_gdbarch_init): Ditto.
13875 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
13876 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
13877 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13878 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
13879 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
13880 * i386-tdep.c (i386_gdbarch_init): Ditto.
13881 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
13882 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
13883 * frv-tdep.c (frv_gdbarch_init): Ditto.
13884 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
13885 * cris-tdep.c (cris_gdbarch_init): Ditto.
13886 * avr-tdep.c (avr_gdbarch_init): Ditto.
13887 * arm-tdep.c (arm_gdbarch_init): Ditto.
13888 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
13889
ea1dd7bc
DJ
138902004-01-13 Daniel Jacobowitz <drow@mvista.com>
13891
13892 * infrun.c (follow_fork_mode_ask): Remove.
13893 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
13894 (follow_fork): Simplify and remove internal error for
13895 follow_fork_mode_ask.
13896 (_initialize_infrun): Update "set follow-fork-mode" help text.
13897
0f0cffd2
AC
138982004-01-13 Andrew Cagney <cagney@redhat.com>
13899
13900 * configure.in: Update copyright year.
13901 (build_warnings): Add -Wunused-label.
13902 * configure: Re-generate.
13903
de38af99
AC
139042004-01-12 Andrew Cagney <cagney@redhat.com>
13905
954a7fba
AC
13906 * exec.h (exec_ops): Make "extern".
13907
de38af99
AC
13908 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
13909 the function is void.
13910 (mips_pseudo_register_write): Ditto.
13911
1a111ce3
AC
139122004-01-12 Andrew Cagney <cagney@redhat.com>
13913
13914 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
13915 call. Never defined.
13916 * sparc-tdep.h (struct frame_info): Add opaque declaration.
13917 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
13918 (struct sparc_gregset, struct regcache): Ditto.
13919 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
13920
48efe704
AC
139212004-01-12 Andrew Cagney <cagney@redhat.com>
13922
13923 * mi/ChangeLog: Delete file. Renamed to ...
13924 * mi/ChangeLog-1999-2003: New file.
13925 * tui/ChangeLog: Delete file. Renamed to ...
13926 * tui/ChangeLog-1998-2003: New file.
fe61caab 13927
a54124c5
MK
139282004-01-11 Mark Kettenis <kettenis@gnu.org>
13929
2ca62865
MK
13930 * sparc64nbsd-tdep.c: Include "regset.h".
13931 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
13932 Remove variables.
13933 (fetch_core_registers): Remove function.
13934 (sparc64nbsd_core_fns): Remove variable.
13935 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
13936 functions.
13937 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
13938 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
13939 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
13940
ca9d58e9
MK
13941 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
13942 sparc_extract_struct_value_address.
13943 (sparc32_gdbarch_init): Set extract_struct_value_address.
13944 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
13945 function.
13946 (sparc64_init_abi): Set extract_struct_value_address. Don't set
13947 return_value_on_stack.
13948
3cc87ec0
MK
13949 * NEWS: Mention that %cs and %ss have been added to the AMD64
13950 configurations
13951
5bf00f29
MK
13952 * frame.c: Update copyright year.
13953 (get_prev_frame): Improve comment.
13954
4f7ec84e
MK
13955 * sparc64fbsd-tdep.c: Include "regset.h".
13956 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
13957 Remove variables.
13958 (fetch_core_registers): Remove function.
13959 (sparc64fbsd_core_fns): Remove variable.
13960 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
13961 functions.
13962 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
13963 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
46b58ce9 13964 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
4f7ec84e 13965
4e7b0cd3
MK
13966 * sparcnbsd-tdep.c: Include "regset.h".
13967 (fetch_core_registers): Remove function.
13968 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
13969 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
13970 functions.
13971 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
13972 TDEP->fpregset.
46b58ce9 13973 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
4e7b0cd3 13974
a54124c5
MK
13975 * sparc-tdep.h (struct regset): Provide opaque declaration.
13976 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
13977 fpregset and sizeof_fpregset members.
13978 * sparc-tdep.c (struct regset): Provide opaque declaration.
13979 (sparc_regset_from_core_section): New function.
13980 (sparc32_gdbarch_init): Initialize TDEP->gregset,
13981 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
13982 Set regset_from_core_section when appropriate.
13983
29ff87c5
MK
139842004-01-10 Mark Kettenis <kettenis@gnu.org>
13985
79b1ab3d
MK
13986 * x86-64-tdep.c (amd64_non_pod_p): New function.
13987 (amd64_classify_aggregate): Return class memory for non-POD
13988 C++ structure types.
13989
6470d250
MK
13990 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
13991 argument. Use it to reserve a register if necessary.
13992 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
13993 amd64_push_arguments.
13994
562c50c2
MK
13995 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
13996
af233647
MK
13997 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
13998 register numbers in comments.
13999 * x86-64-tdep.h: Update copyright year.
14000 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
14001 Adjust for addition of %cs and %ss.
14002 * amd64fbsd-nat.c: Update copyright year.
14003 (reg_offset): Add register offsets for %cs and %ss.
14004 * amd64fbsd-tdep.c: Update copyright year.
14005 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
14006 (amd64fbsd_sc_reg_offset): Likewise.
14007 * x86-64-linux-nat.c: Update copyright year.
14008 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
14009 and %ss.
14010 * amd64nbsd-nat.c: Update copyright year.
14011 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
14012 * amd64nbsd-tdep.c: Update copyright year.
14013 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
14014 * x86-64-linux-tdep.c: Update copyright year.
14015 (user_to_gdb_regmap): Add mapping for %cs and %ss.
14016 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
14017 * regformats/reg-x86-64.dat: Add %cs and %ss.
14018
29ff87c5
MK
14019 * blockframe.c (inside_entry_func): Reformat. Introduce new local
14020 variables to prevent long lines. Update comments to reflect
14021 reality.
14022
38d518c9
EZ
140232004-01-09 David Carlton <carlton@kealia.com>
14024
14025 Checked in by Elena Zannoni <ezannoni@redhat.com>.
14026 * dwarf2read.c (read_namespace): Pull out name-generating code
14027 into namespace_name. Rename previous_namespace to previous_prefix
14028 and processing_current_namespace to processing_current_prefix..
14029 (namespace_name): New function.
14030 (add_partial_symbol): Substitute uses of pdi->name with
14031 actual_name.
14032 * cp-support.h: Rename processing_current_namespace to
14033 processing_current_prefix.
14034 Update copyright year.
14035 * cp-namespace.c: Rename processing_current_namespace to
14036 processing_current_prefix.
14037 Update copyright year.
fe61caab 14038
1e4728e7
AC
140392004-01-09 Andrew Cagney <cagney@redhat.com>
14040
14041 * jv-valprint.c, ser-unix.c: Add missing copyright years.
14042
c77c642a
MK
140432004-01-09 Mark Kettenis <kettenis@gnu.org>
14044
14045 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
14046 complaining.
14047 (process_one_symbol): Deal with N_PATCH stabs.
14048
b44e9041
EZ
140492004-01-09 Elena Zannoni <ezannoni@redhat.com>
14050
14051 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
14052 ifdeffed code.
14053 Update copyright year.
38d518c9 14054
eccfb640
MC
140552004-01-08 Michael Chastain <mec.gnu@mindspring.com>
14056
14057 * config/pa/tm-hppa.h: Update extern declarations for
14058 hppa32_hpux_frame_saved_pc_in_sigtramp,
14059 hppa32_hpux_frame_base_before_sigtramp, and
14060 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
14061
848c5feb
MC
140622004-01-08 Michael Chastain <mec.gnu@mindspring.com>
14063
14064 * config/pa/tm-hppah.h: Update copyright years.
14065
3cc5d663
AC
140662004-01-08 Andrew Cagney <cagney@redhat.com>
14067
14068 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
14069 (mips_o32_reg_struct_has_addr): Delete function.
14070 (mips_gdbarch_init): Update.
14071 (mips_extract_struct_value_address): Delete function.
14072
bfec0b41
JJ
140732004-01-08 David Mosberger <davidm@hpl.hp.com>
14074
14075 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
14076 reality.
14077
16e109ca
AC
140782004-01-07 Andrew Cagney <cagney@redhat.com>
14079
6214a8a1
AC
14080 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
14081 architecture's elf flags (when available).
14082
8d5838b5
AC
14083 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
14084 FPU to the start, check the MIPS FPU when looking for an old
14085 architecture.
14086 (set_mipsfpu_single_command): Update the architecture.
14087 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
14088
480d3dd2
AC
14089 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
14090 (mips_mask_address_p): Add "tdep" parameter.
14091 (show_mask_address, mips_addr_bits_remove): Update.
14092 (mips_dump_tdep): Update.
14093 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
14094 (MIPS_STACK_ARGSIZE): Delete macro.
14095 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
14096 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
14097 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
14098 (mips_dump_tdep): Update.
14099 (MIPS_SAVED_REGSIZE): Delete macro.
14100 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
14101 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
14102 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
14103 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
14104 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
14105 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
14106 (mips_pop_frame, return_value_location): Update.
14107 (mips_n32n64_return_value, mips_dump_tdep): Update.
14108
ec03c1ac
AC
14109 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
14110 MIPS ABI.
14111
16e109ca
AC
14112 * mips-tdep.c: Update copyright.
14113 (mips_gdbarch_init): Merge two code blocks handling the register
14114 name and number layout.
14115
15255275
MS
141162004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
14117
14118 * tracepoint.c (validate_actionline): Fix segv at EOF
14119
9f9057da
MC
141202004-01-07 Michael Chastain <mec.gnu@mindspring.com>
14121
14122 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
14123 properly for static fields.
14124
0127c0d3 141252004-01-06 Jeff Johnston <jjohnstn@redhat.com>
91562f53 14126 Jason Molenda <jmolenda@apple.com>
0127c0d3
JJ
14127
14128 * disasm.c: Update copyright to include 2004.
14129 (do_mixed_source_and_assembly): For uiout asm list
14130 and tuple cleanups, initialize to null_cleanup instead of
fe61caab 14131 NULL and do so prior to loop. Only reset when we close off
0127c0d3 14132 the tuple/list. Move check for whether to close off the
fe61caab 14133 asm tuple/list to after dump_insns call where it will be run
0127c0d3
JJ
14134 on each loop iteration.
14135
5269965e
AC
141362004-01-05 Andrew Cagney <cagney@redhat.com>
14137
54f1137d
AC
14138 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
14139 should be a switch case and not a label.
14140 * mips-tdep.c (mips32_next_pc): Delete unused labels
14141 "greater_equal_branch" and "less_zero_branch".
14142 * jv-valprint.c (java_print_value_fields): Delete unused label
14143 "flush_it".
14144
5269965e
AC
14145 * target.c (unpush_target): Only close a target that is in the
14146 target stack.
14147
dbc22fa1
MK
141482004-01-05 Mark Kettenis <kettenis@gnu.org>
14149
9515395e
MK
14150 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
14151 address from [sp + 64] instead of %o2.
14152
dbc22fa1
MK
14153 * frame.c (get_prev_frame): Don't try to unwind the PC. This
14154 fixes PR backtrace/1476.
14155
5439edaa
AC
141562004-01-05 Andrew Cagney <cagney@redhat.com>
14157
14158 * libunwind-frame.h (struct frame_id): Add opaque declaration,
14159 move to start of file.
14160 * i386-tdep.h (struct regcache): Add opaque declaration.
14161 * config/ia64/nm-linux.h (struct target_ops): Add opaque
14162 declaration.
14163 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
14164 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
14165 * win32-nat.c (fake_create_process): Use ISO C style definition.
14166 * stabsread.c (define_symbol): Delete #ifndef
14167 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
14168 stabs_argument_has_addr call, macro never defined.
14169
19061abe
MC
141702004-01-04 Michael Chastain <mec.gnu@mindspring.com>
14171
14172 * op50-rom.c: Delete.
14173 * w89k-rom.c: Delete.
14174 * Makefile.in: Remove references.
14175
e53bef9f
MK
141762004-01-04 Mark Kettenis <kettenis@gnu.org>
14177
14178 * x86-64-tdep.c: Update copyright year.
14179 (struct amd64_register_info): Rename from x86_64_register_info.
14180 (amd64_register_info): Rename from x86_64_register_info.
14181 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
14182 (amd64_register_name): Rename from x86_64_register_name.
14183 (amd64_register_type): Rename from x86_64_register_type.
14184 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
14185 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
14186 (amd64_dwarf_reg_to_regnum): Rename from
14187 x86_64_dwarf_reg_to_regnum.
14188 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
14189 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
14190 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
14191 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
14192 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
14193 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
14194 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
14195 (amd64_frame_cache): Rename from x86_64_frame_cache.
14196 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
14197 (amd64_frame_prev_register): Rename from
14198 x86_64_frame_prev_register.
14199 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
14200 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
14201 (amd64_sigtramp_frame_cache): Rename from
14202 x86_64_sigtramp_frame_cache.
14203 (amd64_sigtramp_frame_prev_register): Rename from
14204 x86_64_sigtramp_frame_prev_register.
14205 (amd64_sigtramp_frame_unwind): Rename from
14206 x86_64_sigtramp_frame_unwind.
14207 (amd64_sigtramp_frame_sniffer): Rename from
14208 x86_64_sigtramp_frame_sniffer.
14209 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
14210 (amd64_frame_base): Rename from x86_64_frame_base.
14211 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
14212 (amd64_frame_align): Rename from x86_64_frame_align.
14213 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
14214 (amd64_regset_from_core_section): Rename from
14215 x86_64_regset_from_core_section.
14216 (x86_64_init_abi): Update comments.
14217
fca6aa58
NR
142182004-01-04 Nick Roberts <nick@nick.uklinux.net>
14219
14220 * MAINTAINERS (write after approval): Add myself.
14221
8ada74e3
MK
142222004-01-04 Mark Kettenis <kettenis@gnu.org>
14223
14224 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
14225 `float' arguments.
14226
5154b0cd
MK
142272004-01-04 Mark Kettenis <kettenis@gnu.org>
14228
14229 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
14230 such that it mentions a specific version of GCC that exhibits this
14231 bug.
14232
fb316966
MK
142332004-01-03 Mark Kettenis <kettenis@gnu.org>
14234
200cc553
MK
14235 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
14236 structure that has a single `float' member, store it in %f1 in
14237 addition to %f0.
14238
e226a4a0
MK
14239 * sparc-sol2-nat.c: Add missing '\'.
14240
b9d4c5ed
MK
14241 * sparc-tdep.c (sparc32_return_value): New function.
14242 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
14243 Remove functions.
14244 (sparc32_gdbarch_init): Set return_value, don't set
14245 extract_return_value, store_return_value, use_struct_convention
14246 and return_value_on_stack.
14247
fb316966
MK
14248 * sparc-sol2-nat.c: Add missing ')'.
14249
1af510a8
JB
142502004-01-03 J. Brobecker <brobecker@gnat.com>
14251
14252 * infrun.c (handle_step_into_function): New function.
14253 (handle_inferior_event): Extract out some code into the new
14254 function above.
14255
5cf4d23a
JB
142562004-01-03 J. Brobecker <brobecker@gnat.com>
14257
14258 * infrun.c (handle_inferior_event): Move the declaration of
14259 real_stop_pc inside the if blocks where it is used.
14260
60af1db2
MK
142612004-01-03 Mark Kettenis <kettenis@gnu.org>
14262
14263 * sparc64-tdep.c (sparc64_16_byte_align_p)
14264 (sparc64_store_floating_fields, sparc64_store_floating_fields):
14265 Use check_typedef to get subtypes of structures and unions.
14266 (sparc64_store_return_value): Fix calculation of the appropriate
14267 offset into VALBUF when storing a structure or union.
14268 (sparc64_return_value): New function.
14269 (sparc64_use_struct_convention): Remove function.
14270 (sparc64_init_abi): Set return_value, don't set
14271 extract_return_value, store_return_value and
14272 use_struct_convention.
14273
1a901d3f
EZ
142742004-01-03 Eli Zaretskii <eliz@elta.co.il>
14275
14276 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
14277 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
14278 gdb/config/alpha/xm-alphaosf.h,
14279 gdb/config/powerpc/tm-ppcle-eabi.h,
14280 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
14281 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
14282 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
14283 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
14284 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
14285 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
14286 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
14287 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
14288 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
14289 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
14290 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
14291 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
14292 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
14293 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
14294 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
14295 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
14296 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
14297 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
14298 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
14299 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
14300 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
14301 Remove lines for .cvsignore files.
14302
ef52e463
JB
143032004-01-03 J. Brobecker <brobecker@gnat.com>
14304
14305 * infrun.c: Back out the previous change.
14306
cb1bf9dc
MK
143072004-01-03 Mark Kettenis <kettenis@gnu.org>
14308
f0424ef6
MK
14309 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
14310 sparc-*-sunos4* to the list of REMOVED configurations.
14311
cb1bf9dc
MK
14312 * configure.tgt: Add back sparc-*-vxworks*.
14313 * remote-vxsparc.c: Remove all includes except for "defs.h",
14314 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
14315 Include "sparc-tdep.h".
14316 (SPARC_R_G1): New define.
14317 (vxsparc_gregset): New variable.
14318 (ext_format_sparc): Remove extern declaration.
14319 (vx_read_register): Rewrite to use sparc32_supply_gregset and
14320 sparc32_supply_fpregset.
14321 (vx_write_register): Rewrite to use sparc32_collect_gregset,
14322 sparc_collect_rwindow and sparc32_collect_fpregset.
14323 * config/sparc/tm-vxworks.h: New file, based on recently removed
14324 tm-vxsparc.h.
14325 * config/sparc/vxworks.mt: New file, based on recently removed
14326 vxworks.mt.
fe61caab 14327
5e938f9f
JB
143282004-01-03 J. Brobecker <brobecker@gnat.com>
14329
14330 * infrun.c (handle_step_into_function): New function.
14331 (handle_inferior_event): Extract out some code into the new
14332 function above.
14333
386c036b
MK
143342004-01-02 Mark Kettenis <kettenis@gnu.org>
14335
14336 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
14337 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
14338 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
14339 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
14340 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
14341 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
14342 (sparc_nat_h): New variable.
14343 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
14344 (tm-sun4os4.h): Remove dependency.
14345 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
14346 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
14347 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
14348 sparc-tdep.o): Update dependencies.
14349 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
14350 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
14351 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
14352 dependencies.
14353 * configure.host: Remove existing sparc-*-lynxos*,
14354 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
14355 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
14356 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
14357 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
14358 triplets.
14359 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
14360 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
14361 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
14362 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
14363 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
14364 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
14365 sparc64-*-solaris2* and sparc64-*-* triplets.
14366 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
14367 "symtab.h" and "objfiles.h".
14368 (BIAS): Remove define.
14369 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
14370 (X_DISP19): Remove macros.
14371 (sparc_fetch_instruction): Remove function.
14372 (struct gdbarch_tdep): Remove definition.
14373 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
14374 (sparc_breakpoint_from_pc): Remove function.
14375 (struct sparc64_frame_cache): Remove definition.
14376 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
14377 sparc64_unwind_pc): Remove functions.
14378 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
14379 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
14380 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
14381 (sparc64_frame_cache): Change return type to `struct
14382 sparc_frame_cache *'. Simply call sparc_frame_cache.
14383 (sparc64_frame_this_id, sparc64_frame_prev_register,
14384 sparc64_frame_base_address): Use `struct sparc_frame_cache'
14385 instead of `struct sparc64_frame_cache.
14386 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
14387 sparc_analyze_control_transfer, sparc_software_single_step,
14388 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
14389 _initialize_sparc64_tdep): Remove functions.
14390 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
14391 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
14392 macros.
14393 (sparc64_supply_gregset, sparc64_collect_gregset,
14394 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
14395 (sparc64_init_abi): New function.
14396 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
14397 inclusion guard. Include "sparc-tdep.h".
14398 (BIAS): Define.
14399 (r_tstate_offset, r_fprs_offset): New defines.
14400 (enum sparc_regnum): Remove defenition.
14401 (enum sparc64_regnum): Reformat.
14402 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
14403 (sparc64_init_abi, sparc64_supply_gregset,
14404 sparc64_collect_gregset, sparc64_supply_fpregset,
14405 sparc64_collect_fpregset): New prototypes.
14406 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
14407 Add extern declarations.
14408 (sparc64_sol2_init_abi): New prototype.
14409 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
14410 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
14411 prototypes.
14412 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
14413 "sparnbsd-nat.h".
14414 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
14415 functions.
14416 (_initialize_sparc64fbsd_nat): Remove initialization of
14417 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
14418 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
fe61caab 14419 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
386c036b
MK
14420 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
14421 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
14422 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
14423 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
14424 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
14425 (sparc64fbsd_r_y_offset): Remove variables.
14426 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
14427 Make static and const.
14428 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
14429 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
14430 functions.
14431 (sparc64fbsd_gregset): New variable.
14432 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
14433 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
14434 and sparc64_supply_fpregset.
14435 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
14436 (sparc64fbsd_sigtramp_frame_this_id)
14437 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
14438 (sparc64fbsd_sigtramp_frame_unwind): New variable.
14439 (sparc64fbsd_sigtramp_frame_sniffer): New function.
14440 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
14441 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
14442 * sparcnbsd-tdep.c: Update copyright year. Include
14443 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
14444 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
14445 "value.h" and "sparcnbsd-tdep.h".
14446 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
14447 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
14448 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
14449 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
14450 defines.
14451 (sparcnbsd_gregset): New variable.
14452 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
14453 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
14454 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
14455 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
14456 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
14457 variables.
14458 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
14459 (sparc32nbsd_sigcontext_frame_this_id)
14460 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
14461 (sparc32nbsd_sigcontext_frame_unwind): New variable.
14462 (sparc32nbsd_sigtramp_frame_sniffer): New function.
14463 (sparcnbsd_get_longjmp_target_32,
14464 sparcnbsd_get_longjmp_target_64): Remove functions.
14465 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
14466 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
14467 sparcnbsd_init_elf): Remove.
14468 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
14469 (sparcnbsd_elf_init_abi): New functions.
14470 (_initialize_sparcnbsd_tdep): New prototype.
14471 (_initialize_sparnbsd_tdep): Update.
14472 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
14473 corelow.o. Add sparc64-nat.o and sparc-nat.o.
14474 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
14475 * config/sparc/linux.mh: Update comment.
14476 (XM_FILE, HOST_IPC): Remove variables.
14477 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
14478 sparc-linux-nat.o.
14479 * config/sparc/linux.mt: Update comment.
14480 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
14481 * config/sparc/nbsd.mt: Reformat.
14482 * config/sparc/nbsd64.mh: Update comment.
14483 (NATDEPFILES): Add sparc-nat.o.
14484 * config/sparc/nbsd64.mt: Update comment.
14485 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
14486 (TM_FILE): Set to tm-nbsd.h.
14487 * config/sparc/nbsdelf.mh: Update comment.
14488 (NATDEPFILES): Add sparc-nat.o.
14489 (XM_FILE): Delete.
14490 * config/sparc/nbsdaout.mh: Update comment.
14491 (NATDEPFILES): Add sparc-nat.o
14492 (XM_FILE): Delete.
14493 * config/sparc/nm-linux.h: Update copyright year. Don't include
14494 "config/nm-svr4.h" and "solib.h". Add protection against multiple
14495 inclusion.
14496 (KERNEL_U_SIZE): Remove define.
14497 (kernel_u_size): Remove prototype.
14498 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
14499 * config/sparc/nm-nbsd.h: Update copyright. Don't include
14500 "regcache.h".
14501 (CHILD_PREPARE_TO_STORE): Remove define.
14502 * config/sparc/nm-nbsdaout.h: Tweak some comments.
14503 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
14504 sparcnbsd-nat.c: Rewrite files.
14505 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
14506 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
14507 sparcnbsd-tdep.h: Remove files.
14508 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
14509 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
14510 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
14511 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
14512 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
14513 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
14514 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
14515 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
14516 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
14517 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
14518 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
14519 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
14520 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
14521 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
14522 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
14523 * config/sparc/linux64.mh, config/sparc/linux64.mt,
14524 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
14525 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
14526 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
14527
ee84457a
AC
145282004-01-02 Andrew Cagney <cagney@redhat.com>
14529
14530 From 2003-12-18 Kazuhiro Inaoka:
14531 * configure.host: Add m32r-linux target.
14532
0bc2134e
MC
145332004-01-02 Michael Chastain <mec.gnu@mindspring.com>
14534
14535 * top.c (print_gdb_version): Update year to 2004.
14536
89a72f9c
MM
145372004-01-02 Mark Mitchell <mark@codesourcery.com>
14538
14539 * MAINTAINERS: Add myself to the write-after-approval category.
14540
86b013ed
DJ
145412004-01-02 Daniel Jacobowitz <drow@mvista.com>
14542
14543 From Bernardo Innocenti <bernie@develer.com>:
14544 * configure.tgt: Add uClinux target.
14545
e42c9534
AC
145462004-01-02 Andrew Cagney <cagney@redhat.com>
14547
14548 * utils.c (do_my_cleanups): Make static, add forward declaration.
14549 * defs.h (do_my_cleanups): Delete declaration.
14550
162467d3
EZ
145512004-01-02 Eli Zaretskii <eliz@elta.co.il>
14552
14553 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
14554 bfd/ChangeLog-0203.
14555
78434e59
MK
145562004-01-02 Mark Kettenis <kettenis@gnu.org>
14557
14558 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
14559 in <machine/reg.h>.
14560 * configure, config.in: Regenerate.
14561
48efe704
AC
14562For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
14563tui/ChangeLog-1998-2003.
c906108c
SS
14564\f
14565Local Variables:
14566mode: change-log
14567left-margin: 8
14568fill-column: 74
14569version-control: never
14570End:
This page took 1.685919 seconds and 4 git commands to generate.