Remove config.if.
[binutils-gdb.git] / gdb / ChangeLog
1 2004-12-03 Richard Sandiford <rsandifo@redhat.com>
2
3 * README: Remove config.if from directory listing.
4
5 2004-12-01 Joel Brobecker <brobecker@gnat.com>
6
7 * alpha-tdep.c (alpha_register_name): Add comment.
8 (alpha_cannot_fetch_register): Exclude registers numbers which
9 are no longer used from the list of registers that can be fetched.
10 (alpha_cannot_store_register): Exclude registers numbers which
11 are no longer used from the list of registers that can be stored.
12 * alpha-nat.c (fetch_osf_core_registers): Add missing value in
13 core_reg_mapping array.
14
15 2004-12-01 Joel Brobecker <brobecker@gnat.com>
16
17 * alpha-tdep.c (alpha_heuristic_frame_prev_register): Fetch
18 the register value from the correct frame.
19
20 2004-11-30 Randolph Chung <tausq@debian.org>
21
22 * hppa-linux-tdep.c (insns_match_pattern_relaxed): New function.
23 (hppa_linux_in_dyncall): Check that we are inside the range of
24 $$dyncall, not necessarily at the first insn.
25 (hppa_linux_in_solib_call_trampoline): Identify a trampoline
26 even if the pc does not point to the first insn of the trampoline.
27
28 2004-11-30 Randolph Chung <tausq@debian.org>
29
30 * breakpoint.c (break_at_finish_command): Delete.
31 (break_at_finish_command_1): Delete.
32 (break_at_finish_at_depth_command): Delete.
33 (break_at_finish_at_depth_command_1): Delete.
34 (tbreak_at_finish_command): Delete.
35 * hppa-tdep.c (_initialize_hppa_tdep): Remove deprecated xbreak, tbreak
36 and bx commands.
37
38 2004-11-30 Andrew Cagney <cagney@gnu.org>
39
40 * config/nm-gnu.h: Delete file.
41 * config/i386/nm-i386gnu.h: Inline "config/nm-gnu.h".
42
43 * config/nm-sysv4.h: Delete file.
44 * config/i386/nm-i386v4.h: Inline "config/nm-sysv4.h".
45 * config/i386/nm-i386v42mp.h: Inline "config/nm-sysv4.h".
46 * config/i386/nm-i386sol2.h: Inline "config/nm-sysv4.h".
47 * config/ia64/nm-aix.h: Inline "config/nm-sysv4.h".
48 * config/mips/nm-irix5.h: Inline "config/nm-sysv4.h".
49
50 2004-11-29 Andrew Cagney <cagney@gnu.org>
51
52 * MAINTAINERS: Add Randolph Chung (pa), Jeff Johnston (ia64), Kei
53 Sakamoto (m32r), Joel Brobecker (mips), and Ulrich Weigand (s390)
54 as can-commit architecture developers.
55
56 2004-11-29 Mark Kettenis <kettenis@gnu.org>
57
58 * sparc-tdep.c (X_RS1, X_SIMM13): New macros.
59 (sparc32_skip_prologue): Skip instructions that store arguments in
60 registers into their corresponding stack slots.
61
62 * config/m68k/nbsdaout.mh (NAT_FILE): Set to solib.h instead of
63 tm-solib.h.
64 * config/m68k/obsd.mh (NAT_FILE): Likewise.
65
66 * sparc-tdep.h (sparc32nbsd_elf_init_abi): New prototype.
67 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Make global.
68 * sparcobsd-tdep.c (sparc32obsd_init_abi): Call
69 sparc32nbsd_elf_init_abi. Remove duplicate code.
70
71 * config/sparc/nbsdaout.mh (NAT_FILE): Set to solib.h.
72 * config/sparc/nbsdelf.mh (NAT_FILE): Remove variable.
73 * config/sparc/nm-nbsd.h: Remove file.
74 * config/sparc/nm-nbsdaout.h: Remove file.
75
76 * sparc-nat.c (inf_ptrace_xfer_partial): New variable.
77 (sparc_xfer_partial): New function.
78 (sparc_target): Save value of to_xfer_partial from ptrace vector.
79 Set to_xfer_partial.
80
81 * fork-child.c (fork_inferior): Fork instead of vfork if
82 PRE_TRACE_FUN is non-null.
83
84 2004-11-24 Fred Fish <fnf@specifixinc.com>
85
86 * rs6000-tdep.c (skip_prologue): Use line table info to skip over
87 compiler generated function calls made as part of a prologue.
88
89 2004-11-23 Mark Kettenis <kettenis@gnu.org>
90
91 * inf-ttrace.c: New file.
92 * inf-ttrace.h: New file.
93 * hppa-hpux-nat.c [HAVE_TTRACE]: Include <sys/ttrace>.
94 Include "inf-ttrace.h".
95 (ss_mpsfu_high): Define to ss_tlsp if necessary.
96 (hppa_hpux_fetch_register, hppa_hpux_store_register): Use
97 ptid_get_pid instead of PIDGET. Modify to handle both ttrace and
98 ptrace systems.
99 (_initialize_hppa_hpux_nat) [HAVE_TTRACE]: Call inf_ttrace_traget
100 instead of inf_ptrace_target.
101 * config/pa/hpux.mh (NATDEPFILES): Add inf-ttrace.o.
102 * Makefile.in (inf_ttrace_h): New variable.
103 (hppa-hpux-nat.o): Update dependency.
104 (inf-ttrace.o): New dependency.
105 (ALLDEPFILES): Add inf-ptrace.c and inf-ttrace.c.
106
107 2004-11-23 Randolph Chung <tausq@debian.org>
108
109 * arch-utils.c (generic_instruction_nullified): New.
110 * arch-utils.h (generic_instruction_nullified): New.
111 * gdbarch.sh (instruction_nullified): New method.
112 * gdbarch.c: Regenerate.
113 * gdbarch.h: Regenerate.
114 * infrun.c (INSTRUCTION_NULLIFIED): Delete.
115 (handle_inferior_event): Replace INSTRUCTION_NULLIFIED with calls to
116 new gdbarch method.
117 * config/pa/tm-hppa.h (INSTRUCTION_NULLIFIED): Delete definition.
118 * hppa-tdep.c (hppa_instruction_nullified): Remove prototype and make
119 static. Rewrite to work directly off the passed regcache.
120 (hppa_gdbarch_init): Set instruction_nullified method.
121
122 2004-11-23 Joel Brobecker <brobecker@gnat.com>
123
124 * sparc-tdep.c (sparc_is_unimp_insn): New function.
125 (sparc32_frame_cache): For functions where there is no debugging
126 information to help us determine whether it's a struct-return
127 function or not, fallback on checking whether the instruction
128 at the return address is an "unimp" instruction or not.
129
130 2004-11-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
131
132 * MAINTAINERS: Add myself to write after approval section.
133
134 * hppa-hpux-nat.c (child_suppress_run): Add variable to allow
135 hpux-thread.c to suppress children from running.
136 (hppa_hpux_child_can_run): New function.
137 (_initialize_hppa_hpux_nat): Use hppa_hpux_child_can_run.
138 * hpux-thread.c: Include string.h and hppa-tdep.h.
139 (FLAGS_REGNUM, SP_REGNUM, PC_REGNUM): Rename to HPPA_FLAGS_REGNUM,
140 HPPA_SP_REGNUM and HPPA_PCOQ_HEAD_REGNUM, respectively.
141 (hpux_thread_store_registers): Replace deprecated_registers with
142 calls to regcache_raw_read.
143 * config/pa/hpux11.mh, config/pa/hpux11w.mh: Delete HOST_IPC.
144
145 2004-11-21 Mark Kettenis <kettenis@gnu.org>
146
147 * sparc64fbsd-nat.c: Update copyright year.
148 (_initialize_sparc64fbsd_nat): Construct and add target vector.
149 * config/sparc/fbsd.mh (NATDEPFILES): Remove infptrace.o,
150 inftarg.o.
151
152 2004-11-21 Daniel Jacobowitz <dan@debian.org>
153
154 * sparc-tdep.c (sparc_software_single_step): Handle stepping to NULL.
155
156 2004-11-21 Daniel Jacobowitz <dan@debian.org>
157
158 * linux-nat.c (my_waitpid): New function.
159 (linux_test_for_tracefork): Make more robust and verbose. Take
160 an ORIGINAL_PID argument and test for PTRACE_SETOPTIONS first.
161 (linux_supports_tracefork, linux_supports_tracevforkdone): Take a PID
162 argument. Update calls to linux_test_for_tracefork.
163 (linux_enable_event_reporting, child_follow_fork)
164 (child_insert_fork_catchpoint, child_insert_vfork_catchpoint)
165 (child_insert_exec_catchpoint): Update calls to
166 linux_supports_tracefork and linux_supports_tracevforkdone.
167
168 2004-11-21 Daniel Jacobowitz <dan@debian.org>
169
170 * valarith.c (value_subscript): Copy VALUE_FRAME_ID.
171 (value_subscripted_rvalue): Likewise.
172 * valops.c (search_struct_field, value_slice): Likewise.
173
174 2004-11-21 Mark Kettenis <kettenis@gnu.org>
175
176 * inf-ptrace.c: Don't include "regcache.h" and "gdbcmd.h".
177 Reorder includes a bit. Fix comment.
178 * Makefile.in (inf-ptrace.o): Update dependencies.
179
180 2004-11-21 Andreas Schwab <schwab@suse.de>
181
182 * m68klinux-tdep.c: Include "glibc-tdep.h" and "solib-svr4.h".
183 (m68k_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
184 svr4_ilp32_fetch_link_map_offsets and gdbarch_skip_solib_resolver
185 to glibc_skip_solib_resolver.
186 * config/m68k/linux.mt (TDEPFILES): Add glibc-tdep.o. Remove
187 solib-legacy.o.
188 * Makefile.in (m68klinux-tdep.o): Update dependencies.
189
190 2004-11-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
191
192 * infttrace.h (ttrace_write_reg_64): Add prototype.
193 * hppah-nat.c (store_inferior_registers): Fix warning from ambiguous
194 expression.
195 (store_inferior_registers): Correct formatting. Replace uses of
196 deprecated_registers with calls to regcache_raw_read,
197 regcache_raw_write_part and regcache_raw_read_part.
198
199 2004-11-21 Mark Kettenis <kettenis@gnu.org>
200
201 * config/pa/hppahpux.mh: Remove file.
202 * config/pa/hpux1020.mh: Remove file.
203
204 2004-11-20 Andreas Schwab <schwab@suse.de>
205
206 * configure.host: Set host floatformat for m68k.
207
208 2004-11-20 Eli Zaretskii <eliz@gnu.org>
209
210 * config/djgpp/fnchange.lst: Resolve file-name clash between
211 hppa-hpux-tdep.c and the new hppa-hpux-nat.c.
212
213 2004-11-20 Mark Kettenis <kettenis@gnu.org>
214
215 * hppa-hpux-nat.c: New file.
216 * config/pa/hpux.mh (NATDEPFILES): New file.
217 * Makefile.in (ALLDEPFILES): Add hppa-hpux-nat.c.
218 (hppa-hpux-nat.o): New dependency.
219 * configure.host: Remove hppa*-*-hpux10.20.
220 (hppa*-*-hpux*, hppa*-*-hiux*): Set gdb_host to hpux.mh.
221
222 * inf-ptrace.c: Fix coding style.
223
224 * gdb_ptrace.h [PTRACE_TYPE_ARG5] (ptrace): New macro.
225 * infptrace.c (call_ptrace): Simply call ptrace with four
226 arguments.
227
228 * dbxread.c (process_one_symbol): Fix a few coding standard
229 issues. Improve code formatting.
230
231 * dbxread.c: Include "gdb_string.h".
232 (record_minimal_symbol, read_ofile_symtab): Replace
233 DEPRECATED_STREQ and DEPRECATED_STREQN with strcmp and strncmp.
234 * Makefile.in (dbxread.o): Update dependencies.
235
236 * dwarf2-frame.c (read_encoded_value): Correctly calculate number
237 of bytes read for aligned LEB128 encodings.
238
239 2004-11-19 Mark Kettenis <kettenis@gnu.org>
240
241 * bsd-kvm.c (bsd_kvm_pcb_cmd): Cast return value from
242 parse_and_eval_address to u_long before converting it to a pointer
243 type.
244 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Change type of
245 ps_strings from int to u_long.
246 * i386obsd-nat.c (_initialize_i386obsd_nat): Cast _ps.val to
247 u_long instead of CORE_ADDR.
248
249 2004-11-18 Mark Kettenis <kettenis@gnu.org>
250
251 * dbxread.c (process_one_symbol): Do not adjust address of first
252 N_SLINE stab for a function for code generated by non-GCC
253 compilers.
254
255 2004-11-18 Kevin Buettner <kevinb@redhat.com>
256
257 * solib-null.c: New file.
258
259 2004-11-17 Andrew Cagney <cagney@gnu.org>
260
261 * MAINTAINERS: Drop MIPS and remote.
262
263 2004-11-15 Andrew Cagney <cagney@gnu.org>
264
265 * findvar.c (value_of_register): Set the frame ID.
266 * value.c (value_primitive_field): Copy the frame ID.
267 * valops.c (value_assign): Simplify lval_register case, there's
268 always a frame.
269
270 2004-11-14 Daniel Jacobowitz <dan@debian.org>
271
272 * Makefile.in (mips-linux-tdep.o): Update dependencies.
273 * mips-linux-tdep.c: Include "regcache.h".
274 (fill_fpregset, mips64_fill_fpregset): Use regcache_raw_collect.
275
276 2004-11-14 Daniel Jacobowitz <dan@debian.org>
277
278 * Makefile.in (linux-thread-db.o): Fix typo in last change.
279
280 2004-11-14 Daniel Jacobowitz <dan@debian.org>
281
282 * linux-thread-db.c: New file, renamed from thread-db.c.
283 * thread-db.c: Remove.
284 * Makefile.in (linux-thread-db.o): Rename from thread-db.o rule.
285 * config/alpha/alpha-linux.mh (NATDEPFILES): Rename thread-db.o
286 to linux-thread-db.o.
287 * config/arm/linux.mh (NATDEPFILES): Likewise.
288 * config/i386/linux.mh (NATDEPFILES): Likewise.
289 * config/i386/linux64.mh (NATDEPFILES): Likewise.
290 * config/ia64/linux.mh (NATDEPFILES): Likewise.
291 * config/m32r/linux.mh (NATDEPFILES): Likewise.
292 * config/m68k/linux.mh (NATDEPFILES): Likewise.
293 * config/mips/linux.mh (NATDEPFILES): Likewise.
294 * config/pa/linux.mh (NATDEPFILES): Likewise.
295 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
296 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
297 * config/s390/s390.mh (NATDEPFILES): Likewise.
298 * config/sparc/linux.mh (NATDEPFILES): Likewise.
299 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
300
301 2004-11-13 Andrew Cagney <cagney@gnu.org>
302
303 * config/i386/i386lynx.mh: Delete file.
304 * config/i386/i386lynx.mt: Delete file.
305 * Makefile.in (ALLDEPFILES, i386ly-tdep.o): Remove i386ly-tdep.c.
306 * i386ly-tdep.c: Delete.
307
308 * config/tm-lynx.h: Delete, inline contents ...
309 * config/rs6000/tm-rs6000ly.h: ... here.
310
311 * config/tm-sysv4.h: Delete file, inlining contents.
312 * config/ia64/tm-aix.h (SKIP_TRAMPOLINE_CODE): Define.
313 * config/tm-linux.h (SKIP_TRAMPOLINE_CODE): Define.
314 * config/tm-nto.h (SKIP_TRAMPOLINE_CODE): Define.
315
316 * regcache.h (deprecated_register_valid): Delete.
317 (deprecated_registers): Delete.
318 * regcache.c (deprecated_register_valid): Delete.
319 (deprecated_registers): Delete.
320 (deprecated_read_register_byte, _initialize_regcache)
321 (deprecated_write_register_bytes, build_regcache): Update.
322 * config/powerpc/ppc-sim.mt (TDEPFILES): Remove ppc-bdm.o and
323 remote-sds.o.
324 * config/powerpc/ppc-eabi.mt (TDEPFILES): Ditto.
325 * config/mips/embed.mt (TDEPFILES): Remove remote-mips.o.
326
327 * NEWS: List h8300*-*-*, mcore-*-*, mn10300-*-*, ns32k-*-*, and
328 v850-*-* under removed.
329 * configure.host: Delete ns32k-*-netbsd*.
330 * configure.tgt: Delete h8300-*-*, mcore*-*-*, mn10300-*-*,
331 ns32k-*-netbsd*, and v850*-*-*.
332 * MAINTAINERS: Mark h8300, mcore, mn10300, ns32k, v850 as
333 "Deleted"
334 * config/h8300/tm-h8300.h, config/h8300/h8300.mt: Delete.
335 * h8300-tdep.c, config/mcore/mcore.mt, mcore-rom.c: Delete.
336 * mcore-tdep.c, config/mn10300/mn10300.mt: Delete.
337 * mn10300-tdep.c, config/ns32k/nbsdaout.mh: Delete.
338 * config/ns32k/nbsdaout.mt, config/ns32k/nm-nbsd.h: Delete.
339 * config/ns32k/nm-nbsdaout.h, config/ns32k/tm-ns32k.h: Delete.
340 * ns32knbsd-nat.c, ns32knbsd-tdep.c, ns32k-tdep.c: Delete.
341 * ns32k-tdep.h, config/v850/v850.mt, v850ice.c: Delete.
342 * v850-tdep.c: Delete.
343
344 2004-11-13 Joel Brobecker <brobecker@gnat.com>
345
346 * irix5-nat.c (fetch_core_registers): Replace use of
347 deprecated_registers by equivalent code.
348
349 2004-11-13 Joel Brobecker <brobecker@gnat.com>
350
351 * irix5-nat.c (fill_gregset): Replace use of deprecated_registers
352 with equivalent code.
353 (fill_fpregset): Likewise.
354
355 2004-11-13 Andrew Cagney <cagney@gnu.org>
356
357 * MAINTAINERS: Do not list "Deleted" architectures.
358
359 * configure.tgt: Delete i[34567]86-*-vxworks*, m68*-netx-*,
360 m68*-*-vxworks*, mips*-*-vxworks*, powerpc-*-vxworks*, and
361 sparc-*-vxworks*.
362 * NEWS: Mention that vxworks was deleted.
363 * config/m68k/tm-vx68.h, config/mips/tm-vxmips.h: Delete.
364 * config/powerpc/tm-vxworks.h, config/tm-vxworks.h: Delete.
365 * config/i386/vxworks.mt, config/m68k/vxworks68.mt: Delete.
366 * config/mips/vxmips.mt, config/powerpc/vxworks.mt: Delete.
367 * config/sparc/vxworks.mt, vx-share/dbgRpcLib.h: Delete.
368 * vx-share/ptrace.h, vx-share/regPacket.h: Delete.
369 * vx-share/vxTypes.h, vx-share/vxWorks.h: Delete.
370 * vx-share/wait.h, vx-share/xdr_ld.c: Delete.
371 * vx-share/xdr_ld.h, vx-share/xdr_ptrace.c: Delete.
372 * vx-share/xdr_ptrace.h, vx-share/xdr_rdb.c: Delete.
373 * vx-share/xdr_rdb.h, remote-vxsparc.c: Delete.
374 * remote-vxmips.c, remote-vx.c: Delete.
375 * remote-vx68.c: Delete.
376 * config/m68k/tm-os68k.h: Remove reference to VxWorks.
377 * config/m68k/os68k.mt, ada-lang.h: Ditto.
378 * Makefile.in (HFILES_NO_SRCDIR, ALLDEPFILES, remote-vx68.o)
379 (remote-vx.o, remote-vxmips.o, remote-vxsparc.o): Delete vx files.
380
381 2004-11-13 Eli Zaretskii <eliz@gnu.org>
382
383 * config/i386/xm-go32.h: Don't include fopen-bin.h.
384 Don't define CRLF_SOURCE_FILES and DIRNAME_SEPARATOR.
385
386 * source.c (OPEN_MODE, FDOPEN_MODE): Remove the definitions in the
387 branch that doesn't define CRLF_SOURCE_FILES; always use
388 binary-mode open.
389 (print_source_lines_base, forward_search_command)
390 (reverse_search_command): Enable the code that accepts DOS-style
391 CRLF line endings on all platforms (this removes the need for
392 CRLF_SOURCE_FILES).
393
394 * defs.h: Fix wording of the comment before FOPEN_RB.
395 (DIRNAME_SEPARATOR) [__MSDOS__]: Define to ';'.
396
397 * config/djgpp/fnchange.lst: Group renames for opcode directory
398 together.
399
400 * config/djgpp/djconfig.sh: Replace file names that don't exist
401 anymore with existing files, for checking the unpacked
402 distribution.
403
404 * config/djgpp/config.sed (am_cv_exeext, lt_cv_sys_max_cmd_len):
405 Export pre-cooked values in configure-* targets that begin with
406 "@test -f stage_last".
407
408 2004-11-12 Andrew Cagney <cagney@gnu.org>
409
410 * defs.h (enum lval_type): Delete lval_reg_frame_relative.
411 * value.h (struct value): Update comment.
412 * valops.c (value_assign): Fold lval_reg_fame_relative into
413 lval_register.
414 * findvar.c (value_from_register, locate_var_value): Ditto.
415
416 2004-11-12 Randolph Chung <tausq@debian.org>
417
418 * config/tm/tm-hppa.h (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
419 * parse.c (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
420 (write_exp_msymbol): Remove conditional check for symbols starting
421 with $. Update comments.
422
423 2004-11-12 Randolph Chung <tausq@debian.org>
424
425 * pa64solib.c (pa64_solib_thread_start_addr): Rename from
426 so_lib_thread_start_addr.
427 * pa64solib.h (so_list): Forward declare.
428 (pa64_solib_thread_start_addr): Prototype.
429 * somsolib.c (SHL_LOAD, SHL_UNLOAD): Define if not already defined.
430 (no_shared_libraries): Remove.
431 (som_solib_thread_start_addr): Rename from so_lib_thread_start_addr.
432 * somsolib.h (som_solib_thread_start_addr): Likewise; prototype.
433 * hpread.c (hpread_process_one_debug_symbol): Use either the som or
434 the elf solib handler to find the start address.
435
436 * config/pa/hppahpux.mh (NATDEPFILES): Move target-specific support
437 files to the target makefile.
438 * config/pa/hpux1020.mh (NATDEPFILES): Likewise.
439 * config/pa/hpux11.mh (NATDEPFILES): Likewise.
440 * config/pa/hpux11w.mh (NATDEPFILES): Likewise.
441
442 * config/pa/hppa64.mt (TDEPFILES): Put target-specific support
443 files for symbol reading and shared library handling here.
444 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
445 (PA_SOM_ONLY): Define so we can build a 32-bit SOM only target
446 without bringing in 64-bit support.
447
448 2004-11-12 Andrew Cagney <cagney@gnu.org>
449
450 * sparc-tdep.c: Replace VALUE_TYPE with value_type.
451 * v850-tdep.c, sparc64-tdep.c, sh-tdep.c: Ditto.
452 * sh64-tdep.c, s390-tdep.c, mcore-tdep.c: Ditto.
453 * h8300-tdep.c, arm-linux-tdep.c, amd64-tdep.c: Ditto.
454 * hppa-tdep.c, mips-tdep.c, m88k-tdep.c: Ditto.
455 * m68hc11-tdep.c, m32r-tdep.c, ia64-tdep.c: Ditto.
456 * frv-tdep.c, cris-tdep.c, avr-tdep.c, alpha-tdep.c: Ditto.
457
458 Merge VALUE_REGNO and VALUE_FRAME_REGNUM into VALUE_REGNUM.
459 * value.h (VALUE_REGNO, VALUE_FRAME_REGNUM): Delete.
460 (VALUE_REGNUM): Define.
461 (struct value): Delete location.regnum, rename "regno" to
462 "regnum".
463 * value.c, valops.c, valarith.c, findvar.c: Update.
464
465 * value.h (VALUE_TYPE, VALUE_NEXT, VALUE_OFFSET, VALUE_BITSIZE)
466 (VALUE_BITPOS): Delete.
467 (value_type, value_offset, value_bitsize, value_bitpos): Declare.
468 * value.c (value_type, value_offset, value_bitpos)
469 (value_bitsize): New functions. Update references.
470 * arm-tdep.c, gnu-v3-abi.c, hpacc-abi.c, gnu-v2-abi.c: Update.
471 * f-valprint.c, cp-valprint.c, c-valprint.c: Update.
472 * ada-valprint.c, typeprint.c, scm-valprint.c, scm-exp.c: Update.
473 * p-valprint.c, jv-valprint.c, jv-lang.c, varobj.c: Update.
474 * objc-lang.c, ada-lang.c, std-regs.c, stack.c: Update.
475 * infcall.c, linespec.c, printcmd.c, valarith.c: Update.
476 * valops.c, eval.c, findvar.c, breakpoint.c: Update.
477 * tracepoint.c, ax-gdb.c, mi/mi-main.c, cli/cli-dump.c:
478 * rs6000-tdep.c, ppc-sysv-tdep.c: Update.
479
480 2004-11-12 Andrew Cagney <cagney@gnu.org>
481
482 * cris-tdep.c (cris_register_offset): Delete, never called.
483 (cris_spec_reg_applicable): Delete cris_ver_sim.
484 * MAINTAINERS: List d10v as OBSOLETE.
485 * rdi-share/host.h (FOPEN_WB): #ifdef 0 out definitions of
486 FOPEN_WB et.al., defined by "fopen-bin.h".
487
488 2004-11-12 Randolph Chung <tausq@debian.org>
489
490 * hppa-tdep.c (hppa_skip_permanent_breakpoint): Move definition ...
491 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): ... to here.
492 * config/pa/tm-hppa.h (SKIP_PERMANENT_BREAKPOINT): Move definition ...
493 * config/pa/tm-hppah.h (SKIP_PERMANENT_BREAKPOINT): ... to here.
494
495 2004-11-12 Mark Kettenis <kettenis@jive.nl>
496
497 * tui/tui-io.c: Don't include "terminal.h".
498 * Makefile.in (tui-io.o): Update dependencies.
499
500 2004-11-12 Kei Sakamoto <sakamoto.kei@renesas.com>
501
502 * Makefile.in (m32r-linux-tdep.o): Update dependencies.
503 * m32r-linux-tdep.c (m32r_linux_init_abi): Call
504 set_gdbarch_regset_from_core_section for core file support.
505 (m32r_linux_supply_gregset, m32r_linux_regset_from_core_section):
506 New functions.
507
508 2004-11-11 Randolph Chung <tausq@debian.org>
509
510 * hppa-tdep.c (skip_prologue_hard_way): Make static, add
511 stop_after_branch parameter and use it to determine if we should look
512 at the delay slot of the first branch insn to find prologue insns.
513 (hppa_skip_prologue): Update comment and call to skip_prologue_hard_way.
514 (hppa_frame_cache): Likewise.
515
516 2004-11-11 Randolph Chung <tausq@debian.org>
517
518 * hppa-tdep.c (hppa_frame_cache): Properly handle the frame pointer
519 register so that it can be unwound from anywhere in the prologue.
520
521 2004-11-10 msnyder <msnyder@redhat.com>
522
523 * rs6000-tdep.c (skip_prologue): After saving lr_offset,
524 must invalidate lr_reg (so we don't try to save it again).
525 Ditto for cr_offset and cr_reg.
526
527 2004-11-05 Jon Beniston <jon@beniston.com>
528
529 Committed by Andrew Cagney.
530 * remote.c (putpkt_binary) Fix PR gdb/1806. Send an ACK
531 when an unexpected packet is received, as the target stubs
532 continually retransmit the same packet until ACKed.
533
534 2004-11-10 Randolph Chung <tausq@debian.org>
535
536 * frame.c (get_prev_frame): Use get_frame_type to retrieve the
537 frame's type.
538
539 2004-11-10 Randolph Chung <tausq@debian.org>
540
541 * blockframe.c (inside_entry_func): Move to .....
542 * frame.c (inside_entry_func): ... here, and make static.
543 (backtrace_past_entry): New flag.
544 (get_prev_frame): Stop backtrace at the entry function if enabled
545 by flag. Update comments.
546 (_initialize_frame): Add command to set backtrace_past_entry flag.
547 * defs.h (inside_entry_func): Remove prototype.
548
549 2004-11-10 Mark Kettenis <kettenis@gnu.org>
550
551 * dwarf2read.c: Fix formatting.
552
553 2004-11-10 Andrew Cagney <cagney@gnu.org>
554
555 * value.h (COERCE_REF, COERCE_ARRAY, COERCE_NUMBER, COERCE_ENUM)
556 (coerce_ref, coerce_array, coerce_number, coerce_enum): Replace
557 macros with function declarations.
558 * value.c (coerce_ref, coerce_array, coerce_number)
559 (coerce_enum): New functions.
560 (value_as_long, value_as_address): Update.
561 * ada-lang.c (ada_coerce_ref, ada_value_binop)
562 (ada_evaluate_subexp, ada_value_assign, ada_value_struct_elt): Update.
563 * jv-lang.c (evaluate_subexp_java): Update.
564 * valarith.c (value_less, value_neg, value_complement)
565 (value_binop, value_add, value_subscript, value_x_binop)
566 (value_logical_not, value_sub): Update.
567 * valops.c (check_field, value_struct_elt, value_ind)
568 (value_find_oload_method_list, value_cast, value_assign): Update.
569 * eval.c (evaluate_subexp_standard): Update.
570
571 2004-11-10 Mark Kettenis <kettenis@gnu.org>
572
573 * mips-tdep.c (mips32_relative_offset): Change return type to
574 LONGEST, change argument type to ULONGEST. Fix sign-extension.
575
576 2004-11-10 Randolph Chung <tausq@debian.org>
577
578 * hppa-tdep.c (hppa32_register_name, hppa64_register_name): Make static.
579 (hppa32_push_dummy_call, hppa64_push_dummy_call): Likewise.
580 (hppa_fetch_pointer_argument): Likewise.
581 (hppa_frame_cache): Use safe_frame_unwind_memory instead of
582 deprecated_read_memory_nobpt.
583 (_initialize_hppa_tdep): Replace deprecated_add_show_from_set/
584 add_set_cmd sequence with add_setshow_boolean_cmd.
585
586 2004-11-09 Andrew Cagney <cagney@gnu.org>
587
588 GDB 6.3 released from GDB 6.3 branch.
589
590 2004-11-09 Andrew Cagney <cagney@gnu.org>
591
592 * values.c: Rename to ...
593 * value.c: ..., new file.
594 * Makefile.in: Update.
595
596 2004-11-09 Daniel Jacobowitz <dan@debian.org>
597
598 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Correct allocated
599 size.
600
601 2004-11-09 Andrew Cagney <cagney@gnu.org>
602
603 * TODO: Delete.
604
605 * value.h (struct value): Delete field bfd_section.
606 (VALUE_BFD_SECTION): Delete macro.
607 (COERCE_REF): Update.
608 (value_at, value_at_lazy): Delete asection parameter.
609 * printcmd.c (print_formatted, x_command): Update.
610 (do_examine): Delete asection parameter.
611 (next_section): Delete variable.
612 * valops.c (value_cast, value_at, value_at_lazy)
613 (value_coerce_function, value_addr, value_ind, value_string)
614 (find_rt_vbase_offset, value_full_object): Update.
615 * hpacc-abi.c (hpacc_virtual_fn_field)
616 (hpacc_value_rtti_type): Update.
617 * gnu-v3-abi.c (gnuv3_rtti_type, gnuv3_virtual_fn_field)
618 (gnuv3_baseclass_offset): Update.
619 * f-valprint.c (f_val_print): Update.
620 * c-valprint.c (c_val_print): Update.
621 * p-valprint.c (pascal_val_print): Update.
622 * jv-valprint.c (java_value_print): Update.
623 * jv-lang.c (java_class_from_object, evaluate_subexp_java): Update.
624 * ada-lang.c (ada_value_primitive_packed_val)
625 (ada_evaluate_subexp): Update.
626 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Update.
627 * expprint.c (print_subexp_standard): Update.
628 * infcall.c (call_function_by_hand): Update.
629 * valarith.c (value_add): Update.
630 * eval.c (evaluate_subexp_standard): Update.
631 * values.c (allocate_value, value_copy, value_static_field): Update.
632 * findvar.c (read_var_value, locate_var_value): Update.
633
634 2004-11-09 Andrew Cagney <cagney@gnu.org>
635
636 * i386-linux-tdep.c: Include "dwarf2-frame.h".
637 * Makefile.in: Update all dependencies.
638
639 2004-11-08 Andrew Cagney <cagney@gnu.org>
640
641 * sentinel-frame.c (sentinel_frame_prev_pc): New function.
642 (sentinel_frame_unwinder): Add the prev_pc method.
643 * frame.c (frame_pc_unwind): Use the per-frame pc unwinder when
644 available. Do not handle the sentinel-frame case.
645 * frame-unwind.h (frame_prev_register_ftype): Define.
646 (struct frame_unwind): Add prev_pc;
647
648 2004-11-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
649
650 * configure.in: Check for ncurses/term.h.
651 * gdb_curses.h: Include term.h here, prefering ncurses/term.h.
652 * utils.c: Include gdb_curses.h instead of curses.h and term.h.
653 * tui/tui.c: Don't include term.h.
654 * configure, config.in: Rebuilt.
655
656 2004-11-08 Mark Kettenis <kettenis@gnu.org>
657
658 * m68kbsd-nat.c: Include "inf-ptrace.h".
659 (_initialize_m68kbsd_nat): Fix pasto.
660 * Makefile.in (m68kbsd-nat.o): Update dependencies.
661
662 2004-11-08 Randolph Chung <tausq@debian.org>
663
664 * infrun.c (debug_infrun): New variable.
665 (resume, proceed, wait_for_inferior): Annotate with debug messages.
666 (handle_inferior_event, keep_going): Likewise.
667 (_initialize_infrun): Register "set debug infrun" command.
668
669 2004-11-08 Andreas Schwab <schwab@suse.de>
670
671 * linux-nat.c (PTRACE_EVENT_VFORK_DONE): Renamed from
672 PTRACE_EVENT_VFORKDONE.
673 (child_follow_fork): Adjust.
674
675 2004-11-08 Andrew Cagney <cagney@gnu.org>
676
677 * README: Refer to 6.3, not 6.2, update directory listing droppng
678 references to intl/ and mmalloc/.
679 * PROBLEMS: Refer to 6.3 not 6.2.
680
681 * PROBLEMS: Delete no-longer applicable problems.
682
683 2004-11-07 Andrew Cagney <cagney@redhat.com>
684 Daniel Jacobowitz <dan@debian.org>
685 Roland McGrath <roland@redhat.com>
686
687 * Makefile.in (symfile-mem.o): Update dependencies.
688 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): New.
689 (i386_linux_init_abi): Call dwarf2_frame_set_signal_frame_p.
690 * inf-ptrace.c (inf_ptrace_attach): Call
691 observer_notify_inferior_created.
692 * inftarg.c (child_attach): Likewise.
693 * symfile-mem.c: Include "observer.h", "auxv.h", and "elf/common.h".
694 (symbol_file_add_from_memory): Take NAME argument. Use it for
695 the new BFD's filename.
696 (add_symbol_file_from_memory_command): Update call to
697 symbol_file_add_from_memory.
698 (struct symbol_file_add_from_memory_args, add_vsyscall_page)
699 (symbol_file_add_from_memory_wrapper): New.
700 (_initialize_symfile_mem): Register add_vsyscall_page as an
701 inferior_created observer.
702
703 2004-11-07 Mark Kettenis <kettenis@gnu.org>
704
705 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Rename from
706 fetch_inferior_registers. Make static.
707 (m68kbsd_store_inferior_registers): Rename from
708 store_inferior_registers. Make static.
709 (_initialize_m68kbsd_nat): Construct and add target vector.
710 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
711 inftarg.o. Add inf-ptrace.o.
712 (NAT_FILE): Set to tm-solib.h.
713 (LOADLIBES): New variable.
714 * config/m68k/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
715 inftarg.o. Add inf-ptrace.o.
716 (NAT_FILE): Delete variable.
717 * config/m68k/obsd.mh (NATDEPFILES): Remove infptrace.o and
718 inftarg.o. Add inf-ptrace.o.
719 (NAT_FILE): Set to tm-solib.h.
720 * config/m68k/nm-nbsdaout.h: Remove file.
721
722 2004-11-07 Daniel Jacobowitz <dan@debian.org>
723
724 * dwarf2-frame.c (struct dwarf2_frame_ops): Add signal_frame_p.
725 (dwarf2_frame_set_signal_frame_p, dwarf2_frame_signal_frame_p)
726 (dwarf2_signal_frame_unwind): New.
727 (dwarf2_frame_sniffer): Use dwarf2_frame_signal_frame_p.
728 * dwarf2-frame.h (dwarf2_frame_set_signal_frame_p): New prototype.
729
730 2004-11-07 Mark Kettenis <kettenis@gnu.org>
731
732 * Makefile.in (mips64obsd-tdep.o): Fix typo.
733
734 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Renamed
735 from mipsnbsd_ilp32_solib_svr4_fetch_link_map_offsets. Trim sizes
736 to only include the structure members we actually need.
737 (mipsnbsd_lp64_fetch_link_map_offsets): Renamed from
738 mipsnbsd_lp64_solib_svr4_fetch_link_map_offsets. Trim sizes to
739 only include the structure members we actually need.
740 (mipsnbsd_init_abi): Update.
741
742 * mips64obsd-nat.c: Include "mips-tdep.h".
743 (MIPS64OBSD_NUM_REGS): Remove define.
744 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM): New defines.
745 (mips64obsd_supply_gregset, mips64obsd_collect_gregset): Handle
746 floating-point registers correctly.
747 * Makefile.in (mips64obsd-nat.o): Update dependencies.
748
749 * mips64obsd-tdep.c: Include "trad-frame.h", "tramp-frame.h" and
750 "gdb_assert.h".
751 (mips64obsd_sigframe_init): New function.
752 (mips64obsd_sigframe): New variable.
753 (mips64obsd_init_abi): Add comments. Prepend mips64obsd_sigrame
754 unwinder.
755 * Makefile.in (mips64obsd-tdep.o): Update dependencies.
756
757 2004-11-06 Joel Brobecker <brobecker@gnat.com>
758
759 * alpha-mdebug-tdep.c: #include mdebugread.h.
760 Replace alpha_extra_func_info_t by struct mdebug_extra_func_info *.
761 * Makefile.in (alpha-mdebug-tdep.o): Add dependency on mdebugread.h.
762
763 2004-11-05 Andrew Cagney <cagney@gnu.org>
764
765 * dwarf2-frame.c (dwarf2_frame_cache): Only complain when both the
766 CFI and the init_reg method leave the register unspecified.
767 Include the register name in the "Incomplete CFI data" complaint.
768 Supress leading zeros in the address.
769
770 2004-11-05 Mark Kettenis <kettenis@gnu.org>
771
772 * dwarf2-frame.c (decode_frame_entry_1): Avoid indirection when
773 skipping a personality routine in a CIE augmentation.
774
775 2004-11-05 Jeff Johnston <jjohnstn@redhat.com>
776
777 * defs.h (fatal, vfatal): New function prototypes.
778 * stack.c (backtrace_command_stub): Stub to call backtrace_command_1
779 via catch_errors.
780 (backtrace_command): Change to call backtrace_command_stub via
781 catch_errors instead of calling backtrace_command_1 directly.
782 (backtrace_full_command): Ditto.
783 * utils.c (error_stream_1): New static function.
784 (verror): Change to call error_stream_1 instead of error_stream.
785 (error_stream): Call error_stream_1 with RETURN_ERROR argument.
786 (vfatal, fatal): New functions.
787
788 2004-11-05 Andrew Cagney <cagney@gnu.org>
789
790 * stack.c (parse_frame_specification_1): Clear selected_frame_p
791 when not using selected frame.
792
793 2004-11-05 Mark Kettenis <kettenis@jive.nl>
794
795 * dwarf2-frame.c (decode_frame_entry_1): Correctly skip
796 personality routine in a CIE augmentation.
797
798 2004-11-05 Felix Lee <felix+log1@specifixinc.com>
799
800 * stack.c (set_current_sal_from_frame): New function.
801 (print_args_stub): Use it.
802 (print_frame_info): Don't set sal here.
803
804 2004-11-04 Mark Kettenis <kettenis@gnu.org>
805
806 * dwarf2-frame.c (read_encoded_value): Change type of third
807 argument to `unsigned char *'. Add support for LEB128 encodings.
808
809 2004-11-04 Jim Blandy <jimb@redhat.com>
810
811 * gdbtypes.c (make_qualified_type): Doc fix. Add assertion to
812 prevent cross-objfile references.
813 (make_cv_type): Doc fix. Don't create cross-objfile references,
814 even for stub types.
815 (replace_type): Add assertion to prevent cross-objfile references.
816 (check_typedef): Never resolve a stub type by copying over a type
817 from another file.
818
819 2004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
820
821 * Makefile.in (m32r-tdep.o): Update dependencies.
822 * m32r-tdep.c (m32r_gdbarch_init): Call gdbarch_init_osabi for
823 ABI-specific overrides.
824
825 2004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
826
827 * m32r-tdep.c (m32r_memory_insert_breakpoint): Remove
828 unnecessary parallel execution bit.
829 (m32r_memory_remove_breakpoint): Ditto.
830 (m32r_breakpoint_from_pc): Update.
831
832 2004-11-03 Randolph Chung <tausq@debian.org>
833
834 * hppa-tdep.c (hppa_frame_cache): Use frame_pc_unwind instead of
835 frame_func_unwind to locate the unwind entry.
836 (hppa_frame_this_id): Likewise.
837
838 2004-11-03 Andrew Cagney <cagney@gnu.org>
839
840 * gdb/NEWS: Mention internationalization, m32r-*-linux-gnu, 'p'
841 packet, obsolete configurations, end-of-life deprecated_registers.
842
843 2004-11-02 Mark Kettenis <kettenis@gnu.org>
844
845 * dwarf2-frame.c (read_encoded_value): Set proper size for signed
846 encodings as well as unsigned encodings.
847
848 2004-11-02 Andrew Cagney <cagney@gnu.org>
849
850 * value.h (COERCE_VARYING_ARRAY): Delete.
851 * valops.c (value_cast, value_slice): Delete use.
852 * valarith.c (value_subscript, value_concat): Delete use.
853
854 2004-11-02 Paul Hilfinger <hilfingr@nile.gnat.com>
855
856 * NEWS: GDB understands GNAT Ada.
857
858 2004-11-01 Joseph S. Myers <joseph@codesourcery.com>
859
860 * Makefile.in (ALLDEPFILES): Add amd64-sol2-tdep.c.
861 (amd64-sol2-tdep.o): Add dependencies.
862 * amd64-sol2-tdep.c, config/i386/sol2-64.mh,
863 config/i386/sol2-64.mt: New files.
864 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offset,
865 amd64_sol2_gregset32_reg_offset, _initialize_amd64_sol2_nat): New.
866 (supply_gregset): Correct order of arguments to
867 amd64_supply_native_gregset.
868 (fill_gregset): Correct order of arguments to
869 amd64_collect_native_gregset.
870 * configure.host (i[34567]86-*-solaris2.1[0-9]*): Add new case.
871 * configure.tgt (i[34567]86-*-solaris2.1[0-9]*): Likewise.
872 * configure.in (*-*-solaris2.[[6789]]): Add *-*-solaris2.1[[0-9]]
873 for definition of NEW_PROC_API.
874 * configure: Regenerate.
875
876 2004-11-01 Joseph S. Myers <joseph@codesourcery.com>
877
878 * MAINTAINERS (Write After Approval): Add myself.
879
880 2004-11-01 Andrew Cagney <cagney@gnu.org>
881
882 * configure.tgt: Mark d10v-*-* as obsolete.
883 * config/d10v/d10v.mt, d10v-tdep.c: Obsolete files.
884
885 2004-11-01 Paul N. Hilfinger <Hilfinger@gnat.com>
886
887 * values.c (modify_field): Correct handling of bit-fields that
888 don't fit in 32 bits. Use unsigned operations throughout and
889 simplify the code a bit. Document preconditions.
890
891 2004-10-31 Andrew Cagney <cagney@gnu.org>
892
893 * config/pa/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
894 * config/tm-sysv4.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
895 (in_plt_section): Delete.
896
897 * mips-tdep.c (mips_in_solib_return_trampoline): Delete.
898 (mips_gdbarch_init): Do not set same.
899
900 * arch-utils.c (generic_in_solib_call_trampoline): Delete.
901 * arch-utils.h (generic_in_solib_call_trampoline): Delete.
902
903 * gdbarch.sh (in_solib_call_trampoline): Delete.
904 * gdbarch.h, gdbarch.c: Re-generate.
905
906 * hppa-tdep.c (hppa_stub_unwind_sniffer): Replace
907 IN_SOLIB_CALL_TRAMPOLINE with tdep.in_solib_call_trampoline.
908 * hppa-tdep.h (struct gdbarch_tdep): Add in_solib_call_trampoline.
909 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Set same.
910 * hppa-linux-tdep.c (hppa_linux_init_abi): Ditto.
911
912 2004-10-31 Mark Kettenis <kettenis@gnu.org>
913
914 * mipsnbsd-nat.c: Include "target.h" and "inf-ptrace.h".
915 (mipsnbsd_fetch_inferior_registers): Rename from
916 fetch_inferior_registers. Make static.
917 (mipsnbsd_store_inferior_registers): Rename from
918 store_inferior_registers. Make static.
919 (_initialize_mipsnbsd_nat): New function and prototype.
920 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
921 * config/mips/nbsd.mh (NAT_CLIBS, NAT_FILE): Remove variables.
922 (NATDEPFILES): Remove infptrace.o and inftarg.o. Add
923 inf-ptrace.o.
924
925 2004-10-31 Andrew Cagney <cagney@gnu.org>
926
927 * xstormy16-tdep.c (xstormy16_in_solib_call_trampoline)
928 (xstormy16_gdbarch_init): Do not set in_solib_call_trampoline,
929 delete corresponding unused function.
930 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Really do not set
931 in_solib_call_trampoline.
932 * config/arm/tm-embed.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
933 * config/powerpc/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
934 * config/mips/tm-nbsd.h: Ditto.
935 * config/arm/tm-linux.h: Ditto.
936 * config/mips/tm-linux.h: Ditto.
937
938 * armnbsd-tdep.c (arm_netbsd_aout_init_abi)
939 (arm_netbsd_aout_in_solib_call_trampoline): Do not set
940 in_solib_call_trampoline, delete corresponding unused function.
941 * vaxnbsd-tdep.c (vaxnbsd_aout_in_solib_call_trampoline)
942 (vaxnbsd_aout_init_abi): Ditto.
943 * sparcnbsd-tdep.c (sparcnbsd_aout_in_solib_call_trampoline)
944 (sparc32nbsd_aout_init_abi): Ditto.
945 * ppc-linux-tdep.c (ppc64_in_solib_call_trampoline)
946 (ppc_linux_init_abi): Ditto.
947 * ns32knbsd-tdep.c (ns32knbsd_aout_in_solib_call_trampoline)
948 (ns32knbsd_init_abi_aout): Ditto.
949 * mips-tdep.c (mips_in_call_stub, mips_gdbarch_init): Ditto.
950 * mips-linux-tdep.c (mips_linux_init_abi): Ditto.
951 * m68kbsd-tdep.c (m68kbsd_aout_in_solib_call_trampoline)
952 (m68kbsd_aout_init_abi): Ditto.
953 * i386-cygwin-tdep.c (i386_cygwin_in_solib_call_trampoline)
954 (i386_cygwin_init_abi): Ditto.
955 * i386bsd-tdep.c (i386bsd_aout_in_solib_call_trampoline)
956 (i386bsd_init_abi): Ditto.
957
958 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Do not set
959 in_solib_call_trampoline to in_plt_entry, IN_SOLIB_CALL_TRAMPOLINE
960 isn't used by this architecture.
961 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
962 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Ditto.
963 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Ditto.
964 * s390-tdep.c (s390_gdbarch_init): Ditto.
965 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
966 * m68klinux-tdep.c (m68k_linux_init_abi): Ditto.
967 * i386-tdep.c (i386_svr4_init_abi): Ditto.
968 * i386-nto-tdep.c (i386nto_init_abi): Ditto.
969 * arm-linux-tdep.c (arm_linux_init_abi): Ditto.
970 * amd64-tdep.c (amd64_init_abi): Ditto.
971
972 * vaxnbsd-tdep.c (vaxnbsd_elf_init_abi): Do not set
973 in_solib_call_trampoline to its default value of
974 generic_in_solib_call_trampoline.
975 * ppcobsd-tdep.c (ppcobsd_init_abi): Ditto.
976 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Ditto.
977 * i386obsd-tdep.c (i386obsd_elf_init_abi): Ditto.
978 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Ditto.
979 * i386fbsd-tdep.c (i386fbsd_init_abi): Ditto.
980 * hppabsd-tdep.c (hppabsd_init_abi): Ditto.
981
982 * mips-tdep.c (mips_dump_tdep): Don't print any of the macros.
983
984 * config/mips/obsd64.mt (DEPRECATED_TM_FILE): Delete.
985
986 * config/mips/tm-mips.h: Delete file.
987 * remote-mips.c: Delete tm-mips.h from comment.
988 * config/mips/embed.mt (DEPRECATED_TM_FILE): Delete.
989 * config/mips/tm-nbsd.h: Don't include tm-mips.h.
990 * config/mips/irix6.mt (DEPRECATED_TM_FILE): Delete.
991 * config/mips/tm-linux.h: Don't include tm-mips.h.
992 * config/mips/tm-vxmips.h: Don't include tm-mips.h.
993 * config/mips/irix5.mt (DEPRECATED_TM_FILE):
994 * config/mips/tm-wince.h: Don't include.
995
996 * mdebugread.h (MDEBUG_EFI_SYMBOL_NAME): Define.
997 * mdebugread.c (MDEBUG_EFI_SYMBOL_NAME): Delete.
998 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
999 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
1000
1001 * mdebugread.h (ecoff_relocate_efi): Delete declaration.
1002 * mdebugread.c (ecoff_relocate_efi): Delete function.
1003 * objfiles.c (objfile_relocate): Delete #ifdef
1004 MDEBUG_EFI_SYMBOL_NAME code.
1005
1006 2004-10-31 Orjan Friberg <organ.friberg@axis.com>
1007 Andrew Cagney <cagney@gnu.org>
1008
1009 * gdbarch.sh (single_step_through_delay): Add.
1010 * gdbarch.h, gdbarch.c: Re-generate.
1011 * config/mips/tm-mips.h (STEP_SKIPS_DELAY_P, STEP_SKIPS_DELAY)
1012 (mips_step_skips_delay): Delete.
1013 * mips-tdep.c (mips_single_step_through_delay): Replace
1014 mips_step_skips_delay.
1015 (mips_gdbarch_init): Set single_step_through_delay.
1016 (mips_dump_tdep): Do not print STEP_SKIPS_DELAY.
1017
1018 2004-10-31 Mark Kettenis <kettenis@gnu.org>
1019
1020 * tramp-frame.c (tramp_frame_prepend_unwinder): Set unwinder type
1021 from TRAMP_FRAME frame type.
1022
1023 2004-10-31 Andrew Cagney <cagney@gnu.org>
1024
1025 * mdebugread.c (parse_procedure): Wrap use of RA_REGNUM in #ifdef.
1026
1027 * mips-tdep.c (mips_ignore_helper): Delete.
1028 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Delete.
1029 * infrun.c (handle_inferior_event): Delete #ifdef
1030 DEPRECATED_IGNORE_HELPER_CALL code.
1031
1032 * config/mips/tm-mips.h (RA_REGNUM): Delete.
1033
1034 2004-10-31 Mark Kettenis <kettenis@gnu.org>
1035
1036 * i386v4-nat.c (supply_gregset, supply_fpregset, fill_gregset)
1037 (fill_fpregset): Do not compile for 64-bit systems.
1038 * i386-sol2-nat.c: Don't include "i386v4-nat.c".
1039 * Makefile.in (i386-sol2-nat.o): Update dependencies.
1040 * config/i386/i386sol2.mh (NATDEPFILES): Add back i386v4-nat.c.
1041
1042 2004-10-30 Andrew Cagney <cagney@gnu.org>
1043
1044 * mdebugread.h: Include "coff/sym.h" and "coff/symconst.h".
1045 (struct mdebug_extra_func_info): Define.
1046 * config/alpha/tm-alpha.h: Delete same.
1047 * config/mips/tm-mips.h: Delete same.
1048 * mdebugread.c: Delete same.
1049 * Makefile.in: Update dependencies.
1050 * mips-mdebug-tdep.c: Include "mdebugread.h".
1051
1052 * objfiles.c: Include "mdebugread.h".
1053 * mdebugread.c: Include "mdebugread.h".
1054 (ecoff_relocate_cfi): Delete.
1055 * config/alpha/tm-alpha.h (ecoff_relcate_cfi): Delete.
1056 * config/mips/tm-mips.h (ecoff_relcate_cfi): Delete.
1057 * mdebugread.h (ecoff_relocate_efi): New file.
1058 * Makefile.in: Update dependencies.
1059
1060 * mips-tdep.c (struct frame_extra_info): Delete.
1061 (temp_proc_desc): Delete.
1062
1063 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Rename
1064 MIPS_EFI_SYMBOL_NAME.
1065 (mips_extra_func_info_t, mips_extra_func_info): Delete.
1066 (struct mdebug_extra_func_info): Replace struct
1067 alpha_extra_func_info and alpha_extra_func_info_t.
1068 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Rename
1069 MIPS_EFI_SYMBOL_NAME.
1070 (struct mdebug_extra_func_info): Replace struct
1071 alpha_extra_func_info and alpha_extra_func_info_t.
1072 * objfiles.c, mips-tdep.c, mips-mdebug-tdep.c: Update.
1073 * mdebugread.c, alpha-mdebug-tdep.c:
1074
1075 Suggested by Mark Kettenis.
1076 * config/mips/tm-mips.h (struct mips_extra_func_info): Delete
1077 fields frame_adjust and high_addr.
1078 * mips-mdebug-tdep.c (PROC_HIGH_ADDR, PROC_FRAME_ADJUST): Delete.
1079 (non_heuristic_proc_desc): Delete references.
1080
1081 * mips-tdep.h (MIPS_PRID_REGNUM): Add.
1082 * config/mips/tm-mips.h (PRID_REGNUM): Delete.
1083 * mips-tdep.c: Update.
1084
1085 * mips-tdep.h (MIPS_FIRST_EMBED_REGNUM)
1086 (MIPS_LAST_EMBED_REGNUM): Add.
1087 * config/mips/tm-mips.h (FIRST_EMBED_REGNUM)
1088 (LAST_EMBED_REGNUM): Delete.
1089 * mipsv4-nat.c, mips-tdep.c, mips-linux-tdep.c: Update.
1090
1091 * config/mips/tm-mips.h (PS_REGNUM): Delete.
1092 * mips-tdep.h (MIPS_PS_REGNUM): Add.
1093 * remote-vxmips.c, mipsv4-nat.c, mips-tdep.c: Update.
1094 * mips-linux-nat.c: Update.
1095
1096 * mips-tdep.h: Add comments on registers.
1097 (MIPS_UNUSED_REGNUM): Define.
1098 * config/mips/tm-mips.h (ZERO_REGNUM, UNUSED_REGNUM)
1099 (T9_REGNUM, V0_REGNUM, A0_REGNUM): Delete.
1100 * irix5-nat.c, mipsv4-nat.c, mips-linux-tdep.c: Update.
1101 * mips-linux-nat.c, remote-mips.c: Update.
1102
1103 * config/mips/tm-mips.h (t_insn): Delete.
1104 * mips-tdep.c (mips_fetch_instruction, mips_skip_trampoline_code):
1105 Replace t_insn with ULONGEST.
1106
1107 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1108
1109 * mipsnbsd-tdep.c: Include "regset.h" and "gdb_assert.h".
1110 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM)
1111 (MIPSNBSD_NUM_GREGS, MIPSNBSD_NUM_FPREGS): New defines.
1112 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
1113 (mipsnbsd_core_fns, mipsnbsd_elfcore_fns): Remove variables.
1114 (mipsnbsd_core_osabi_sniffer): New function.
1115 (mipsnbsd_init_abi): Set regset_from_core_section.
1116 (_initialize_mipsnbsd_tdep): Remove calls to
1117 deprecated_add_core_fns.
1118 (mipsnbsd_supply_fpregset, mipsnbsd_supply_gregset)
1119 (mipsnbsd_regset_from_core_section): New functions.
1120 (mipsnbsd_gregset, mipsnbsd_fpregset): New variables.
1121 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
1122
1123 * procfs.c (procfs_fetch_registers, procfs_store_registers): Like
1124 Remove optimization for DEPRECATED_FP_REGNUM.
1125
1126 2004-10-30 Andrew Cagney <cagney@gnu.org>
1127
1128 * alpha-tdep.c (alpha_setup_arbitrary_frame): Delete.
1129 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Delete.
1130 (alpha_setup_arbitrary_frame): Delete.
1131 * mips-tdep.c (setup_arbitrary_frame): Delete.
1132 * config/mips/tm-mips.h (SETUP_ARBITRARY_FRAME): Delete.
1133 (setup_arbitrary_frame): Delete.
1134 * stack.c (parse_frame_specification_1): When specified, call
1135 create_new_frame with two parameters. Delete #ifdef
1136 SETUP_ARBITRARY_FRAME.
1137
1138 * config/mips/tm-mips.h (MIPS16_INSTLEN, MIPS_NUMREGS)
1139 (MIPS_INSTLEN): Delete.
1140 * mips-tdep.h (enum mips_insn_size): Rename MIPS32_INSN_SIZE and
1141 MIPS16_INSN_SIZE to MIPS_INSN32_SIZE and MIPS_INSN16_SIZE.
1142 * remote-mips.c, mips-tdep.c: Update.
1143
1144 * config/mips/embed.mt (TDEPFILES): Add mips-mdebug-tdep.o.
1145 * mips-mdebug-tdep.h, mips-mdebug-tdep.c: New files.
1146 * mips-tdep.c (mips_mdebug_frame_cache)
1147 (mips_mdebug_frame_this_id, mips_mdebug_frame_prev_register)
1148 (mips_mdebug_frame_unwind, mips_mdebug_frame_sniffer)
1149 (mips_mdebug_frame_base_address, mips_mdebug_frame_sniffer)
1150 (mips_mdebug_frame_base_sniffer, non_heuristic_proc_desc)
1151 (compare_pdr_entries, the_bfd, mips16_fetch_instruction): Delete.
1152 (mips_gdbarch_init): Do not append mdebug sniffers.
1153 (PROC_LOW_ADDR, PROC_HIGH_ADDR, PROC_FRAME_OFFSET)
1154 (PROC_FRAME_REG, PROC_FRAME_ADJUST, PROC_REG_MASK)
1155 (PROC_FREG_MASK, PROC_REG_OFFSET, PROC_FREG_OFFSET, PROC_PC_REG)
1156 (PROC_SYMBOL, _PROC_MAGIC_): Delete.
1157 * Makefile.in: Update dependencies.
1158
1159 * mips-tdep.h (mips_abi_regsize): Declare.
1160 * mips-tdep.c (mips_abi_regsize): Make non-static.
1161
1162 * mips-tdep.c (gdb_print_insn_mips): Simplify.
1163 (make_mips16_addr): Delete.
1164
1165 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1166
1167 * i386-sol2-nat.c: New file.
1168 * Makefile.in (ALLDEPFILES): Add i386-sol2-nat.c and
1169 i386-sol2-tdep.c.
1170 (i386-sol2-nat.o): Update dependencies.
1171 * config/i386/i386sol2.mh (NATDEPFILES): Remove i386v4.o, add
1172 i386-sol2-nat.o.
1173
1174 2004-10-30 Andrew Cagney <cagney@gnu.org>
1175
1176 Total breakage identified by Joel Brobecker.
1177 * mips-tdep.c (after_prologue): Delete.
1178 (mips_skip_prologue): Use skip_prologue_using_sal.
1179 (heuristic_proc_desc): Delete, unused.
1180
1181 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1182
1183 * procfs.c (proc_get_gregs, proc_get_fpregs, proc_set_gregs)
1184 (proc_set_fpregs, procfs_fetch_registers, procfs_store_registers):
1185 Cleanup coding style.
1186
1187 2004-10-30 Andrew Cagney <cagney@gnu.org>
1188
1189 * mips-tdep.h (mips_pc_is_mips16): Declare.
1190 * mips-tdep.c (mips_pc_is_mips16): Rename pc_is_mips16, make
1191 non-static. Update calls.
1192
1193 * cli/cli-decode.c (add_setshow_enum_cmd): New function.
1194 * command.h (add_setshow_enum_cmd): Declare.
1195 * mips-tdep.c (_initialize_mips_tdep): Use add_setshow_enum_cmd.
1196
1197 * mips-tdep.c (_initialize_mips_tdep): Use
1198 add_setshow_zinteger_cmd.
1199
1200 * mips-tdep.c (mips_eabi_extract_return_value)
1201 (mips_o64_extract_return_value, mips_o64_store_return_value)
1202 (return_value_location, mips_eabi_reg_struct_has_addr)
1203 (mips_eabi_use_struct_convention)
1204 (mips_eabi_store_return_value): Delete.
1205 (mips_eabi_store_return_value): New function.
1206 (mips_eabi_return_value): New function.
1207 (mips_gdbarch_init): For O64 and EABI, delete
1208 extract_return_value, store_return_value, use_struct_convention
1209 and reg_struct_has_addr, add return_value.
1210
1211 * mips-tdep.c (read_signed_register): Use
1212 regcache_cooked_read_signed.
1213
1214 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1215
1216 * mipsread.c: Cleanup coding style.
1217 (mipscoff_new_init, mipscoff_symfile_init, mipscoff_symfile_read)
1218 (mipscoff_symfile_finish): Remove prototypes.
1219
1220 2004-10-29 Mark Kettenis <kettenis@gnu.org>
1221
1222 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
1223 (mips_mdebug_frame_cache, mips16_scan_prologue)
1224 (mips32_scan_prologue, mips_stub_frame_cache)
1225 (heuristic_proc_start, heuristic_proc_desc)
1226 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
1227 (mips_n32n64_return_value, mips_o32_push_dummy_call)
1228 (mips_o32_return_value, mips_o64_push_dummy_call)
1229 (mips_step_skips_delay, mips_skip_trampoline_code)
1230 (mips_gdbarch_init): Use MIPS_A0_REGNUM instead of A0_REGNUM,
1231 MIPS_RA_REGNUM instead of RA_REGNUM, MIPS_T9_REGNUM instead of
1232 T9_REGNUM, MIPS_V0_REGNUM instead of V0_REGNUM, MIPS_ZERO_REGNUM
1233 instead of ZERO_REGNUM, MIPS32_SIZE_INSN instead of MIPS_INSTLEN
1234 and MIPS16_INSN_SIZE instead of MIPS16_INSTLEN.
1235 (mips_dump_tdep): Don't print A0_REGNUM, RA_REGNUM,
1236 T9_REGNUM, V0_REGNUM, ZERO_REGNUM, MIPS_INSTLEN and
1237 MIPS16_INSTLEN. Use MIPS_A0_REGNUM instead of A0_REGNUM.
1238 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
1239 (mips_linux_n32n64_sigframe_init): Use MIPS_ZERO_REGNUM instead of
1240 ZERO_REGNUM.
1241 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
1242 (mipsnbsd_cannot_store_register): Use MIPS_ZERO_REGNUM instead of
1243 ZERO_REGNUM.
1244 (mipsnbsd_get_longjmp_target): Use MIPS_A0_REGNUM instead of
1245 A0_REGNUM.
1246 * mipsnbsd-nat.c: Include "mips-tdep.h".
1247 (getregs_supplies): Use MIPS_ZERO_REGNUM instead of ZERO_REGNUM.
1248 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
1249
1250 2004-10-29 Andrew Cagney <cagney@gnu.org>
1251
1252 * stack.c (parse_frame_specification_1): New function based on
1253 parse_frame_specification. Add message and selected_frame_p
1254 paramters. Truely always return non-NULL.
1255 (parse_frame_specification): Call parse_frame_specification_1.
1256 (frame_info): Update. Eliminate target_has_stack check.
1257 (select_frame_command): Update.
1258
1259 2004-10-29 Andrew Cagney <cagney@gnu.org>
1260
1261 * frame.h (get_selected_frame): Add message parameter.
1262 * frame.c (get_selected_frame): Add and use message parameter.
1263 * stack.c (current_frame_command, return_command, locals_info)
1264 (catch_info, args_info, up_silently_base, down_silently_base): Use
1265 get_selected_frame with an explicit message.
1266 * thread.c, stack.c, sh-tdep.c, sh64-tdep.c: Update.
1267 * remote-rdp.c, remote-mips.c, remote-e7000.c: Update.
1268 * ocd.c, mi/mi-main.c, mi/mi-cmd-stack.c: Update.
1269 * infrun.c, inflow.c, infcmd.c, frame.c: Update.
1270 * findvar.c, eval.c, corelow.c, bsd-kvm.c: Update.
1271 * breakpoint.c: Update.
1272
1273 2004-10-29 Andrew Cagney <cagney@gnu.org>
1274
1275 * trad-frame.c (trad_frame_get_prev_register): Use
1276 frame_unwind_register instead of frame_register_unwind, do not
1277 recurse the register's location.
1278 * xstormy16-tdep.c (xstormy16_frame_prev_register):
1279 * sparc-tdep.c (sparc32_frame_prev_register): Ditto.
1280 * sparc64-tdep.c (sparc64_frame_prev_register): Ditto.
1281 * sh-tdep.c (sh_frame_prev_register): Ditto.
1282 * m68k-tdep.c (m68k_frame_prev_register): Ditto.
1283 * i386-tdep.c (i386_frame_prev_register): Ditto.
1284 * dwarf2-frame.c (dwarf2_frame_prev_register): Ditto.
1285 * amd64-tdep.c (amd64_frame_prev_register): Ditto.
1286
1287 2004-10-28 Mark Kettenis <kettenis@jive.nl>
1288
1289 * proc-events.c: Fix several coding-style issues. Consistently
1290 use #ifdef instead of #if defined().
1291 (proc_prettyfprint_fault, proc_prettyfprint_faultset): Use
1292 ARRAY_SIZE.
1293 (_initialize_proc_events): New prototype.
1294
1295 * proc-why.c: Fix several coding-style issues.
1296 (proc_prettyfprint_why): Use ARRAY_SIZE.
1297
1298 2004-10-27 Jim Blandy <jimb@redhat.com>
1299
1300 * remote.c (fetch_register_using_p): Construct 'p' packet in a
1301 manner independent of the host byte order.
1302
1303 2004-10-27 Mark Kettenis <kettenis@gnu.org>
1304
1305 * mips-tdep.c (id_delayed): Remove prototype.
1306
1307 2004-10-26 Mark Kettenis <kettenis@gnu.org>
1308
1309 * mips-tdep.h: Add MIPS_ZERO_REGNUM, MIPS_AT_REGNUM,
1310 MIPS_V0_REGNUM. MIPS_A0_REGNUM, MIPS_T9_REGNUM and MIPS_RA_REGNUM
1311 to enum with register numbers.
1312 (enum mips_insn_size): New enum.
1313
1314 2004-10-26 Andrew Cagney <cagney@gnu.org>
1315
1316 * config/mips/tm-linux.h: Delete #undef SKIP_TRAMPOLINE_CODE.
1317 * mips-tdep.c (mips_skip_trampoline_code): Rename mips_skip_stub.
1318 (mips_gdbarch_init): Update.
1319 (mips_dump_tdep): Do not print SKIP_TRAMPOLINE_CODE.
1320
1321 * config/arm/tm-linux.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1322 * config/mips/tm-nbsd.h, config/mips/tm-linux.h: Delete #undef
1323 IN_SOLIB_RETURN_TRAMPOLINE.
1324 * mips-tdep.c (mips_dump_tdep): Do not print
1325 IN_SOLIB_RETURN_TRAMPOLINE.
1326 (mips_in_solib_return_trampoline): Rename mips_in_return_stub.
1327 (mips_gdbarch_init): Update.
1328
1329 * mips-tdep.h (mips_software_single_step): Move to here ...
1330 * config/mips/tm-mips.h: ... from here.
1331 * config/mips/tm-linux.h (SOFTWARE_SINGLE_STEP_P)
1332 (SOFTWARE_SINGLE_STEP): Delete.
1333 * mips-linux-tdep.c (mips_linux_init_abi): Set software_single_step.
1334
1335 2004-10-25 Andrew Cagney <cagney@gnu.org>
1336
1337 * NEWS: Add Changes since GDB 6.3 section.
1338
1339 2004-10-23 Andreas Schwab <schwab@suse.de>
1340
1341 * ada-lang.c (grow_vect): Return the new array instead of
1342 expecting pointer to pointer to avoid violation of aliasing rules.
1343 * ada-lang.h (GROW_VECT): Adapt call to grow_vect.
1344
1345 2004-10-23 Ulrich Weigand <uweigand@de.ibm.com>
1346
1347 * s390-tdep.c (enum pv_boolean): Remove.
1348 (pv_is_array_ref): Remove.
1349 (s390_on_stack): Remove.
1350 (S390_NUM_SPILL_SLOTS): Remove.
1351 (struct s390_prologue_data): Remove members 'spill' and 'back_chain',
1352 add members 'gpr_slot', 'fpr_slot', and 'back_chain_saved_p'.
1353 (s390_store): Track all stores of orginal incoming registers to the
1354 stack constant offsets relative to the CFA, instead of only tracking
1355 stores into specific spill slots.
1356 (s390_load): Likewise.
1357 (s390_analyze_prologue): Adapt to struct s390_prologue_data changes.
1358 (s390_prologue_frame_unwind_cache): Likewise. Only track registers
1359 defined as call-saved by the ABI.
1360 (s390_push_dummy_call): Use bottom of dummy call argument save area
1361 as return value, not the top. Do not store to the called function's
1362 register save area.
1363 (s390_unwind_dummy_id): Adapt accordingly.
1364
1365 2004-10-23 Andrew Cagney <cagney@gnu.org>
1366
1367 * objfiles.h (struct objfile): Rename obj_private to
1368 deprecated_obj_private, sym_private to deprecated_sym_private, and
1369 sym_stab_info to deprecated_sym_stab_info.
1370 * gdb-stabs.h: Update.
1371 * elfread.c: Update.
1372 * dbxread.c: Update.
1373 * coffread.c: Update.
1374 * xcoffread.c: Update.
1375 * symfile.c: Update.
1376 * somread.c: Update.
1377 * nlmread.c: Update.
1378 * mdebugread.c: Update.
1379 * hpread.c: Update.
1380 * coffread.c: Update.
1381
1382 2004-10-23 Mark Kettenis <kettenis@gnu.org>
1383
1384 * mips64obsd-nat.c, mips64obsd-tdep.c: New files.
1385 * configure.host: Add mips64*-*-openbsd*.
1386 * configure.tgt: Add mips64*-*-openbsd*.
1387 * Makefile.in (ALLDEPFILES): Add mips64obsd-nat.o,
1388 mips64obsd-tdep.c.
1389 (mips64obsd-nat.o, mips64obsd-tdep.o): New dependecies.
1390 * config/mips/obsd64.mh, config/mips/obsd64.mt: New files.
1391
1392 2004-10-21 Joel Brobecker <brobecker@gnat.com>
1393
1394 * symtab.c (symbol_search_name): Minor reformatting.
1395
1396 2004-10-20 Joel Brobecker <brobecker@gnat.com>
1397
1398 * symtab.h: Fix typo in comment.
1399
1400 2004-10-19 Mark Kettenis <kettenis@gnu.org>
1401
1402 * dwarf2read.c (struct comp_unit_head): Fix coding style.
1403 (dwarf_decode_line_header): Likewise.
1404
1405 2004-10-19 Michael Chastain <mec.gnu@mindspring.com>
1406
1407 * NEWS: GDB works with GCC -feliminate-dwarf2-dups.
1408
1409 2004-10-19 Andrew Cagney <cagney@gnu.org>
1410
1411 GDB 6.3 branch created.
1412 * version.in: Bump to version 6.3.50_2004-10-19-cvs.
1413
1414 2004-10-15 Joel Brobecker <brobecker@gnat.com>
1415
1416 * dwarf2read.c (set_cu_language): Set language to Ada for
1417 DW_LANG_Ada83 and DW_LANG_Ada95.
1418
1419 2004-10-15 Michael Chastain <mec.gnu@mindspring.com>
1420
1421 From Andreas Schwab <schwab@suse.de>:
1422 * Makefile.in (.y.c, .l.c.): Fix the substitutions for
1423 for xmalloc and xrealloc.
1424
1425 2004-10-15 Andrew Cagney <cagney@gnu.org>
1426
1427 * ada-exp.y, ada-lex.l: Use xmalloc and xrealloc through out.
1428 * inf-ptrace.c: Include "gdb_wait.h" instead of <wait.h>.
1429 * Makefile.in (.y.c, .l.c): Don't replace xmalloc with xxmalloc.
1430 Update dependencies.
1431
1432 2004-10-15 Paul Hilfinger <Hilfinger@gnat.com>
1433
1434 * ada-lang.c (ada_lookup_symbol): Correct comment.
1435 (ada_evaluate_subexp): Change error message for
1436 OP_FUNCALL case so as not to indicate an internal error.
1437
1438 2004-10-15 Joel Brobecker <brobecker@gnat.com>
1439
1440 Committed by Paul Hilfinger.
1441 * ada-lang.c (ada_template_to_fixed_record_type_1): Detect bogus
1442 type sizes in XVE/XVU types, and emit a warning when that happens,
1443 instead of rounding up the size of the resulting type.
1444 Some minor reformatting.
1445 (ada_is_aligner_type): Do not consider a type as an aligner type
1446 if there is a corresponding XVS type as well.
1447 (ada_evaluate_subexp): For TERNOP_SLICE, handle cases where we
1448 have several levels of pointer indirection to the array.
1449
1450 2004-10-15 Jerome Guitton <guitton@gnat.com>
1451
1452 Committed by Paul Hilfinger.
1453 * ada-lang.c (check_size): New function.
1454 (coerce_unspec_val_to_type): call check_size to make sure
1455 that the object size is reasonable.
1456 (ada_evaluate_subexp): in UNOP_IND: Ditto. In TERNOP_SLICE:
1457 Implements the case when we get a reference when we evaluate
1458 the expression of one of the bounds of the slice.
1459 (ada_value_struct_elt): when a packed array field is
1460 a reference, use ada_coerce_ref to dereference it; use
1461 ada_value_ind only if it is a pointer.
1462
1463 2004-10-15 Joel Brobecker <brobecker@gnat.com>
1464
1465 * mips-tdep.c (mips32_scan_prologue): Move the implementation up
1466 a bit to avoid the necessity of an advance declaration. Remove
1467 declaration.
1468 (set_reg_offset): Move implemenation up.
1469 (mips16_get_imm): Likewise.
1470 (mips16_scan_prologue): Likewise.
1471 (reset_saved_regs): Likewise.
1472 (mips32_scan_prologue): Likewise.
1473
1474 2004-10-14 Joel Brobecker <brobecker@gnat.com>
1475
1476 * mips-tdep.c (mips32_scan_prologue): Add advance declaration.
1477 Remove sp as a parameter, compute it internally instead. Move
1478 prologue scanning limit from heuristic_proc_desc to here.
1479 (mips16_scan_prologue): Likewise.
1480 (mips_insn16_frame_cache): Replace call to heuristic_proc_desc
1481 by call to mips16_scan_prologue.
1482 (mips_insn32_frame_cache): Replace call to heuristic_proc_desc
1483 by call to mips32_scan_prologue.
1484 (heuristic_proc_desc): Remove code that's no longer necessary.
1485 Update calls to mips16_scan_prologue and mips32_scan_prologue.
1486 (mips_skip_prologue): Update calls to mips16_scan_prologue
1487 and mips32_scan_prologue.
1488
1489 2004-10-14 Joel Brobecker <brobecker@gnat.com>
1490
1491 * mips-tdep.c (mips16_scan_prologue): Merge code from
1492 mips16_skip_prologue. Now return the address of the first
1493 instruction past the function prologue.
1494 (mips16_skip_prologue): Remove, no longer necessary.
1495 (mips_skip_prologue): Replace call to mips16_skip_prologue
1496 by call to mips16_scan_prologue.
1497
1498 2004-10-14 Joel Brobecker <brobecker@gnat.com>
1499
1500 * mips-tdep.c (mips32_scan_prologue): Merge code from
1501 mips32_skip_prologue. Now return the address of the first
1502 instruction past the function prologue.
1503 (mips32_skip_prologue): Remove. No longer necessary.
1504 (mips16_skip_prologue): Add parameter end_pc instead of
1505 computing it.
1506 (mips_skip_prologue): Compute the upper limit for the
1507 prologue scanning. Update call to mips16_skip_prologue.
1508 Replace call to mips32_skip_prologue by call to
1509 mips32_scan_prologue.
1510
1511 2004-10-14 Mark Kettenis <kettenis@gnu.org>
1512
1513 * hppa-tdep.c (hppa_frame_cache): Add support for OpenBSD and
1514 NetBSD system call stubs that store %rp in the ERP slot of the
1515 stack frame.
1516
1517 * source.c: Always define O_BINARY to 0 if not defined already.
1518 (openp): Unconditionally use O_BINARY.
1519
1520 * top.c (gdb_readline): Always accept "\r\n" as a line-ending.
1521 * event-top.c (gdb_readline2): Likewise.
1522
1523 2004-10-14 Orjan Friberg <orjanf@axis.com>
1524
1525 * cris-tdep.c (_initialize_cris_tdep): Re-add call to
1526 deprecated_add_core_fns which was removed by mistake.
1527
1528 2004-10-13 Kevin Buettner <kevinb@redhat.com>
1529
1530 * ia64-linux-nat.c (fill_gregset, fill_fpregset): Replace
1531 references to deprecated_registers[] with equivalent code.
1532
1533 2004-10-13 Kevin Buettner <kevinb@redhat.com>
1534
1535 * rs6000-tdep.c (rs6000_push_dummy_call): Replace references to
1536 ``deprecated_registers'' with equivalent code. Use gdb_assert()
1537 instead of explicit test and print statement.
1538
1539 2004-10-12 Mark Kettenis <kettenis@gnu.org>
1540
1541 * sparc-nat.c: Include "inf-ptrace.h".
1542 (sparc_target): New function.
1543 * sparc-nat.h: Update copyright year.
1544 (sparc_target): New prototype.
1545 * sparcnbsd-nat.c: Don't include "gdbcore.h", include "target.h".
1546 (_initialize_sparcnbsd_nat): Construct and add target vector.
1547 * sparc64nbsd-nat.c: Include "target.h".
1548 (_initialize_sparc64nbsd_nat): Construct and add target vector.
1549 * Makefile.in (sparc-nat.o, sparcnbsd-nat.o, sparc64nbsd-nat.o):
1550 Update dependencies.
1551 * config/sparc/nbsd64.mh (NATDEPFILES): Remove infptrace.o and
1552 inftarg.o, add inf-ptrace.o.
1553 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1554 inftarg.o, add inf-ptrace.o and bsd-kvm.o.
1555 (NAT_FILE): Set to nm-bsd.h.
1556 (LOADLIBES): New variable.
1557 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
1558 infarg.o, add inf-ptrace.o.
1559 * config/sparc/nm-nbsdaout.h: Remove file.
1560 * config/sparc/fbsd.mh (NATDEPFILES): Add inf-ptrace.o.
1561 * config/sparc/linux.mh (NATDEPFILES): Add inf-ptrace.o.
1562 * config/sparc/linux64.mh (NATDEPFILES): Add inf-ptrace.o.
1563
1564 * defs.h [!FOPEN_RB]: Include "fopen-bin.h" instead of
1565 "fopen-same.h". Update comment.
1566
1567 2004-10-11 Mark Kettenis <kettenis@gnu.org>
1568
1569 * i386gnu-nat.c: Include "gdb_string.h".
1570 (fetch_fpregs): Use i387_supply_fxsave to fill the floating-point
1571 registers when the floating-point state isn't initialized.
1572 * Makefile.in (i386gnu-nat.o): Update dependencies.
1573
1574 2004-10-11 David Anderson <davea@sgi.com>
1575
1576 * regcache.c (regcache_raw_read): Comment was missing "to".
1577 Extraneous ' removed.
1578 * gdb_thread_db.h (struct td_thrinfo): ti_lid field
1579 comment now describes use.
1580
1581 2004-10-11 Orjan Friberg <orjanf@axis.com>
1582
1583 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start)
1584 (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
1585 (cris_sigtramp_frame_this_id, cris_sigtramp_frame_prev_register)
1586 (cris_sigtramp_frame_sniffer): New functions.
1587 (cris_gdbarch_init): Hook in signal trampoline unwinder.
1588 (cris_dwarf2_reg_to_regnum, cris_dwarf2_frame_init_reg): New functions.
1589 (cris_gdbarch_init): Hook in Dwarf-2 unwinder.
1590 (struct gdbarch_tdep, set_cris_dwarf2_cfi, cris_dump_tdep)
1591 (cris_gdbarch_init, _initialize_cris_tdep): Add CRIS Dwarf-2 CFI usage
1592 command.
1593 (cris_version_update): Remove, replace with ...
1594 (set_cris_version): New function.
1595 (struct gdbarch_tdep, cris_mode, cris_mode_update)
1596 (cris_cannot_store_register, cris_dump_tdep, cris_gdbarch_init)
1597 (_initialize_cris_tdep): Remove CRIS mode command.
1598 (cris_fpless_backtrace, _initialize_cris_tdep): Remove
1599 cris-fpless-backtrace command.
1600 (cris_scan_prologue): Fix prologue scanning limit.
1601 (cris_register_type): Update to reflect actual registers.
1602 (cris_register_bytes_ok) Remove.
1603 (cris_gdbarch_init): Remove support for CRIS v8 and v9.
1604 Remove set_gdbarch_deprecated_register_size,
1605 set_gdbarch_deprecated_register_byte, set_gdbarch_register_bytes_ok.
1606
1607 2004-10-10 Andrew Cagney <cagney@gnu.org>
1608
1609 * ada-lang.c (lim_warning): Add ATTR_FORMAT prototype and FIXME
1610 comment.
1611
1612 2004-10-10 Joel Brobecker <brobecker@gnat.com>
1613
1614 * mips-tdep.c (mips16_scan_prologue): Remove redundant code.
1615
1616 2004-10-10 Joel Brobecker <brobecker@gnat.com>
1617
1618 * mips-tdep.c (mips16_scan_prologue): Renames
1619 mips16_heuristic_proc_desc. Update comment.
1620 (mips32_scan_prologue): Renames mips32_heuristic_proc_desc.
1621 (heuristic_proc_desc): Update calls to the 2 functions above.
1622
1623 2004-10-10 Joel Brobecker <brobecker@gnat.com>
1624
1625 * mips-tdep.c (mips_insn16_frame_cache): Remove unused variables.
1626 Update comments. Also immediately return empty cache when the start
1627 address of our function could not be found.
1628 (mips_insn32_frame_cache): Likewise.
1629
1630 2004-10-10 Joel Brobecker <brobecker@gnat.com>
1631
1632 * mips-tdep.c (mips16_decode_reg_save): Delete, no longer used.
1633 (mips_insn16_frame_cache): Pass frame cache in call to
1634 heuristic_proc_desc. Move some code to mips16_heuristic_proc_desc.
1635 Remove code that became redundant as a consequence.
1636 (mips32_heuristic_proc_desc): No longer compute a fake
1637 procedure descriptor. Compute the full frame cache instead.
1638 Some minor comment reformatting.
1639
1640 2004-10-10 Jim Blandy <jimb@redhat.com>
1641
1642 * MAINTAINERS (generic symtabs, dwarf readers, elf reader, stabs
1643 reader, tracing bytecode stuff): Remove self.
1644
1645 2004-10-10 Mark Kettenis <kettenis@gnu.org>
1646
1647 * sparc64-linux-tdep.c: Update copyright year. Don't include
1648 "solib-svr4.h".
1649 (sparc64_linux_svr4_fetch_link_map_offsets): Remove function.
1650 (sparc64_linux_init_abi): Don't set solib_svr4_link_map_offsets.
1651 * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
1652
1653 * sparc-linux-tdep.c: Update copyright year.
1654 (sparc_linux_sigtramp_start): Change first argument from CORE_ADDR
1655 to struct frame_info *. Use safe_frame_unwind_memory instead of
1656 deprecated_read_memory_nobpt.
1657 (sparc32_linux_sigtramp_start, sparc32_linux_rt_sigtramp_start):
1658 Change argumen from CORE_ADDR to struct frame_info *. Adjust for
1659 changed signature of sparc_linux_sigtramp_start.
1660 (sparc32_linux_pc_in_sigtramp): Remove function.
1661 (sparc32_linux_sigtramp_p): New function.
1662 (sparc32_linux_sigtramp_frame_sniffer): Use
1663 sparc32_linux_sigtramp_p instead of sparc32_linux_pc_in_sigtramp.
1664
1665 * sparc-linux-tdep.c (sparc32_linux_svr4_fetch_link_map_offsets):
1666 Remove function.
1667 (sparc32_linux_init_abi): Don't set solib_svr4_link_map_offsets.
1668
1669 * ada-lang.c (lim_warning): Re-implement as a varargs function.
1670 (decode_packed_array_type, value_subscript_packed)
1671 (ada_evaluate_subexp, to_fixed_range_type): Remove redundant
1672 argument in call to lim_warning.
1673
1674 * configure.in: Really disable the TUI if an enhanced curses
1675 library isn't found.
1676 * configure: Regenerate.
1677
1678 2004-10-09 Mark Kettenis <kettenis@gnu.org>
1679
1680 * config/i386/nbsdaout.mh (NAT_FILE): Set to solib.h.
1681 * config/i386/nbsdelf.mh (NAT_FILE): Set to solib.h.
1682 * config/i386/nm-nbsdaout.h: Remove file.
1683 * config/i386/nm-fbsd.h (link_object, lo_name, lo_library)
1684 (lo_unused, lo_major, lo_minor, lo_next, link_map, lm_addr)
1685 (lm_name, lm_next, lm_lop, lm_lob, lm_rwt, lm_ld, lm_lpd)
1686 (link_dynamic_2, ld_loaded, ld_need, ld_rules, ld_got, ld_plt)
1687 (ld_rel, ld_hash, ld_stab, ld_stab_hash, ld_buckets, ld_symbols)
1688 (ld_symb_size, ld_text, ld_plt_sz, rtc_symb, rtc_sp, rtc_next)
1689 (ld_debug, ldd_version, ldd_in_debugger, ldd_sym_loaded)
1690 (ldd_bp_addr, ldd_bp_inst, ldd_cp, link_dynamic, ld_version)
1691 (ldd, ld_un, ld_2): Remove defines.
1692 * config/i386/nm-obsd.h: Likewise.
1693
1694 2004-10-09 Paul Hilfinger <hilfingr@nile.gnat.com>
1695
1696 * ada-lex.l: Remove useless rule whose right-context clause
1697 causes unreferenced static function warning for yyrealloc.
1698 (ada_flex_use): Remove the artificial reference to yyrealloc.
1699
1700 2004-10-08 Andrew Cagney <cagney@gnu.org>
1701
1702 * target.h (struct target_ops): Rename to_xfer_memory to
1703 deprecated_xfer_memory.
1704 * target.c: Update.
1705 (deprecated_debug_xfer_memory): Rename debug_to_xfer_memory.
1706 * wince.c: Update.
1707 * win32-nat.c: Update.
1708 * v850ice.c: Update.
1709 * uw-thread.c: Update.
1710 * thread-db.c: Update.
1711 * sol-thread.c: Update.
1712 * remote.c: Update.
1713 * remote-vx.c: Update.
1714 * remote-st.c: Update.
1715 * remote-sim.c: Update.
1716 * remote-sds.c: Update.
1717 * remote-rdp.c: Update.
1718 * remote-rdi.c: Update.
1719 * remote-mips.c: Update.
1720 * remote-m32r-sdi.c: Update.
1721 * remote-e7000.c: Update.
1722 * procfs.c: Update.
1723 * ppc-bdm.c: Update.
1724 * nto-procfs.c: Update.
1725 * monitor.c: Update.
1726 * linux-nat.c: Update.
1727 * inftarg.c: Update.
1728 * hpux-thread.c: Update.
1729 * go32-nat.c: Update.
1730 * gnu-nat.c: Update.
1731 * exec.c: Update.
1732 * corelow.c: Update.
1733 * bsd-kvm.c: Update.
1734 * aix-thread.c: Update.
1735
1736 2004-10-08 Andrew Cagney <cagney@gnu.org>
1737
1738 * target.c (debug_target): Move to near start of file.
1739 (target_stopped_data_address_p): Re-org logic, add casts.
1740
1741 2004-10-02 Mark Kettenis <kettenis@gnu.org>
1742
1743 * solib-sunos.c [HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS] (link_map)
1744 (lm_addr, lm_name, lm_next, link_dynamic_2, ld_loaded, rtc_symb)
1745 (rtc_sp, rtc_next, ld_debug, ldd_in_debugger, ldd_bp_addr)
1746 (ldd_bp_inst, ldd_cp, link_dynamic, ld_version, ldd, ld_un, ld_2):
1747 New defines.
1748
1749 2004-10-08 Jeff Johnston <jjohnstn@redhat.com>
1750
1751 * target.h (to_stopped_data_address): Change prototype to
1752 take a CORE_ADDR pointer and return an int.
1753 * target.c (update_current_target): Change to_stopped_data_address
1754 to match new prototype.
1755 (debug_to_stopped_data_address): Change appropriately.
1756 * breakpoint.c (bpstat_stop_status): Change call to
1757 target_stopped_data_address to use new prototype.
1758 * frv-tdep.c (frv_have_stopped_data_address): New function.
1759 (frv_stopped_data_address): Change to new prototype and
1760 functionality.
1761 * ia64-linux-nat.c (ia64_stopped_data_address): Change to new
1762 prototype and functionality.
1763 (ia64_stopped_by_watchpoint): New function.
1764 * i386-nat.c (i386_stopped_data_address): Change to new
1765 prototype and functionality.
1766 (i386_stopped_by_watchpoint): New function.
1767 * remote.c (remote_stopped_data_address): Change to new prototype
1768 and functionality.
1769 * remote-m32r-sdi.c (m32r_stopped_data_address): Ditto.
1770 * config/frv/tm-frv.h (frv_stopped_data_address): Change prototype.
1771 (STOPPED_BY_WATCHPOINT): Change to use frv_have_stopped_data_address.
1772 * config/i386/nm-i386.h (STOPPED_BY_WATCHPOINT): Change to use
1773 new i386_stopped_by_watchpoint function.
1774 (i386_stopped_by_watchpoint): New prototype.
1775 (i386_stoppped_data_address): Change to new prototype.
1776 * config/ia64/nm-linux.h (STOPPED_BY_WATCHPOINT): Change to use
1777 new ia64_stopped_by_watchpoint function.
1778 (ia64_stopped_by_watchpoint): New prototype.
1779 (ia64_stopped_data_address): Ditto.
1780
1781 2004-10-08 Paul Hilfinger <Hilfinger@gnat.com>
1782
1783 * ada-typeprint.c (ada_print_type): Use int_string for printing
1784 modulus of modular type.
1785 * ada-lang.h (ada_modulus): Change return type to unsigned.
1786 * ada-lang.c (ada_language_arch_info): Correct type of
1787 string_char_type.
1788 (ada_modulus): Return unsigned result.
1789 (ada_lookup_symbol): Remove user disambiguation and modify comment
1790 accordingly.
1791
1792 2004-10-08 Eric Botcazou <ebotcazou@act-europe.fr>
1793
1794 Committed by Paul Hilfinger.
1795 * ada-lang.c (decode_packed_array): On big-endian targets,
1796 left-justify the value if it comes with a modular type.
1797
1798 2004-10-08 Joel Brobecker <brobecker@gnat.com>
1799
1800 Committed by Paul Hilfinger.
1801 * ada-lang.c (template_to_static_fixed_type): Fix a small typo.
1802 (is_name_suffix): Add support for "___JM" suffixes.
1803 (ada_check_typedef): Renames ada_completed_type.
1804 Update all users of CHECK_TYPEDEF, check_typedef, and
1805 ada_complete_type to call ada_check_typedef.
1806 * ada-typeprint.c: Likewise.
1807 * ada-valprint.c: Likewise.
1808
1809 2004-10-08 Corinna Vinschen <vinschen@redhat.com>
1810
1811 * infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
1812
1813 2004-10-08 Nick Roberts <nickrob@snap.net.nz>
1814
1815 * MAINTAINERS: Update e-mail address.
1816
1817 2004-10-07 Daniel Jacobowitz <dan@debian.org>
1818
1819 From Maciej W. Rozycki <macro@mips.com>:
1820 * mips-tdep.c (mips32_next_pc): Check the register's contents,
1821 not its number for BLEZ/BLEZL and BGTZ/BGTZL.
1822
1823 2004-10-07 Kei Sakamoto <sakamoto.kei@renesas.com>
1824
1825 * m32r-tdep.c (decode_prologue): Support functions written
1826 in assembler language. Recognize trap instructions as the
1827 end of prologue.
1828 (m32r_frame_unwind_cache): Ditto.
1829 (m32r_skip_prologue): Extend search limit. Quit analyzing
1830 prologue if pc's location is not readable.
1831
1832 2004-10-06 Paul N. Hilfinger <Hilfinger@gnat.com>
1833
1834 * Makefile.in (.l.c): Do conversions of names of alloc and free
1835 functions that are done for .y.c files, plus special one
1836 for yy_flex_realloc. Also, correct missing-file tests here.
1837 * ada-lex.l (malloc, free): Remove macros.
1838 (resize_tempbuf): Use "realloc"; rely on sed changes to convert to
1839 xrealloc.
1840 (ada_flex_use): Dummy definition to remove warnings about unused
1841 functions.
1842 * ada-exp.y (dummy_string_to_ada_operator): Temporary definition
1843 to suppress warning.
1844
1845 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1846
1847 * sh-tdep.c (sh_return_value_nofpu): New function, implementing
1848 RETURN_VALUE.
1849 (sh_return_value_fpu): Ditto for CPUs with FPU.
1850 (sh_gdbarch_init): Remove STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
1851 RETURN_VALUE_ON_STACK and USE_STRUCT_CONVENTION throughout.
1852 Install sh_return_value_nofpu resp. sh_return_value_fpu as
1853 RETURN_VALUE functions.
1854
1855 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1856
1857 * sh-tdep.c (sh_pseudo_register_read): Add PSEUDO_BANK_REGNUM handling.
1858 (sh_pseudo_register_write): Ditto.
1859
1860 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1861
1862 * sh-tdep.c (IS_MACL_STS): New define.
1863 (IS_MOVI20): Ditto.
1864 (IS_MACL_LDS): Ditto.
1865 (sh_analyze_prologue): Recognize STS.L MACL,@-r15 and MOVI20
1866 instructions in prologue.
1867 (sh_in_function_epilogue_p): Recognize LDS.L @r15+,MACL and MOVI20
1868 instructions in epilogue.
1869
1870 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1871
1872 * sh-tdep.c (SH_NUM_REGS): Define as 67.
1873 (sh_sh_register_name): Add eight empty register names.
1874 (sh_sh3_register_name): Ditto.
1875 (sh_sh3e_register_name): Ditto.
1876 (sh_sh2e_register_name): Ditto.
1877 (sh_sh2a_register_name): New function, defining SH2A register set.
1878 (sh_sh2a_nofpu_register_name): New function, defining SH2A register set
1879 in nofpu case.
1880 (sh_sh_dsp_register_name): Add eight empty register names.
1881 (sh_sh3_dsp_register_name): Ditto.
1882 (sh_sh4_register_name): Ditto.
1883 (sh_sh4_nofpu_register_name): Ditto.
1884 (sh_sh4al_dsp_register_name): Ditto.
1885 (sh2a_show_regs): New function.
1886 (sh2a_nofpu_show_regs): New function.
1887 (sh_sh2a_register_type): New function.
1888 (do_bank_register_info): New function.
1889 (sh_print_pseudo_register): Call do_bank_register_info.
1890 Call sh_print_pseudo_register for valid "bank" register.
1891 (sh_sh2a_register_sim_regno): New function.
1892 (sh_gdbarch_init): Add bfd_mach_sh2a and bfd_mach_sh2a_nofpu handling.
1893 Increment pseudo register count by one for all sh variants with
1894 pseudo registers to accomodate pseudo bank register.
1895 * sh-tdep.h: Add register numbers for R0_BANK0_REGNUM, MACHB_REGNUM,
1896 IVNB_REGNUM, PRB_REGNUM, GBRB_REGNUM, MACLB_REGNUM, BANK_REGNUM,
1897 IBCR_REGNUM, IBNR_REGNUM, TBR_REGNUM and PSEUDO_BANK_REGNUM.
1898 Increment pseudo register numbers.
1899
1900 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1901
1902 * dwarf2read.c (read_subroutine_type): Call make_function_type
1903 instead of lookup_function_type.
1904
1905 2004-10-05 Jim Blandy <jimb@redhat.com>
1906
1907 * linux-nat.c (_initialize_linux_nat): Rename child_ops.
1908 (Previous change missed some uses.)
1909
1910 2004-10-05 Andrew Cagney <cagney@gnu.org>
1911
1912 * target.h (deprecated_child_ops): Rename child_ops.
1913 * wince.c: Update copyright. Rename child_ops.
1914 * win32-nat.c: Rename child_ops.
1915 * target.c: Rename child_ops.
1916 * rs6000-nat.c: Rename child_ops.
1917 * linux-nat.c: Rename child_ops.
1918 * infttrace.c: Rename child_ops.
1919 * inftarg.c: Rename child_ops.
1920 * infptrace.c: Rename child_ops.
1921 * hppah-nat.c: Update copyright. Rename child_ops.
1922 * hpux-thread.c: Update copyright. Rename child_ops.
1923
1924 2004-10-05 Daniel Jacobowitz <dan@debian.org>
1925
1926 * remote.c (remote_xfer_partial): Handle TARGET_OBJECT_MEMORY.
1927
1928 2004-10-05 Andrew Cagney <cagney@gnu.org>
1929
1930 * version.in: Bump to version 6.2.50_YYYY-MM-DD-cvs.
1931
1932 2004-10-05 Daniel Jacobowitz <dan@debian.org>
1933
1934 * dwarf2read.c (REF_HASH_SIZE): Move earlier.
1935 (die_ref_table): Remove.
1936 (struct dwarf2_cu): Add DIES, DEPENDENCIES, and DIE_REF_TABLE.
1937 (struct dwarf2_per_cu_data): Add PSYMTAB. Add a comment describing
1938 the usage of this type.
1939 (struct dwarf2_per_objfile): Update comment for ALL_COMP_UNITS.
1940 (struct dwarf2_pinfo, PST_PRIVATE, DWARF_INFO_OFFSET): Remove.
1941 (struct dwarf2_queue_item, dwarf2_queue, dwarf2_queue_tail): New.
1942 (dwarf2_create_include_psymtab): Update comment.
1943 (find_partial_die): Remove third argument. Remove unreachable call
1944 to error ().
1945 (dwarf2_find_containing_comp_unit): Update comments. Change one
1946 assertion to an error. Remove an unreachable error.
1947 (dwarf2_find_comp_unit): Update comments.
1948 (type_at_offset): Remove dead code.
1949 (make_cleanup_free_die_list, dwarf2_empty_hash_tables): Remove.
1950 (store_in_ref_table): Add CU argument.
1951 (follow_die_ref): Take DIE, attribute, and CU arguments. Handle
1952 inter-compilation-unit references.
1953 (load_full_comp_unit, process_full_comp_unit): New functions, based
1954 on psymtab_to_symtab_1.
1955 (psymtab_to_symtab_1): Use them.
1956 (dwarf2_add_dependence): New function.
1957 (dwarf2_build_psymtabs_hard): Set the psymtab in per_cu. Always create
1958 a per_cu structure, and save it in READ_PSYMTAB_PRIVATE.
1959 (partial_die_parent_scope, guess_structure_name): Update for changes
1960 to find_partial_die.
1961 (dwarf2_psymtab_to_symtab): Initialize dwarf2_per_objfile here.
1962 (queue_comp_unit, process_queue, dwarf2_release_queue): New.
1963 (read_comp_unit): Don't call dwarf2_empty_hash_tables.
1964 (read_die_and_children): Update call to store_in_ref_table.
1965 (do_free_die_list_cleanup): Remove.
1966 (fixup_partial_die): Update for changes to find_partial_die.
1967 (read_full_die): Handle queueing absolute references.
1968 (read_attribute_value): Use DW_ADDR for all DW_FORM_ref* forms.
1969 (dwarf2_attr, die_specification, die_type)
1970 (die_containing_type, dwarf2_extension): Update calls to
1971 follow_die_ref.
1972 (dump_die): Update DW_FORM_ref* handling.
1973 (dwarf2_get_ref_die_offset): Likewise.
1974 (free_one_comp_unit): Release the dies list.
1975 (dwarf2_mark_helper): New function.
1976 (dwarf2_mark): Use it.
1977
1978 2004-10-05 Mark Kettenis <kettenis@jive.nl>
1979
1980 * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
1981 when writing to memory.
1982
1983 2004-10-05 Kei Sakamoto <sakamoto.kei@renesas.com>
1984
1985 * m32r-tdep.c (m32r_use_struct_convention): Delete function.
1986 (m32r_extract_struct_value_address): Delete function.
1987 (m32r_return_value): New function.
1988 (m32r_gdbarch_init): Instead of store_return_value,
1989 extract_return_value, deprecated_extract_struct_value_address
1990 and deprecated_use_struct_convention, set return_value.
1991
1992 2004-10-03 Daniel Jacobowitz <dan@debian.org>
1993
1994 * dwarf2read.c (read_subrange_type): Add comment for variable
1995 sized arrays.
1996
1997 2004-10-03 Paul Hilfinger <hilfingr@nile.gnat.com>
1998
1999 * Makefile.in (.l.c): Modify rule for compatibility with recent
2000 versions of flex, and remove most command-line options.
2001 * ada-lex.l: Add %options line in place of -I -i and -s command-line
2002 options.
2003
2004 2004-10-02 Paul N. Hilfinger <Hilfinger@gnat.com>
2005
2006 Turn on initial Ada support (mainly expression evaluation).
2007
2008 * Makefile.in (SFILES): Remove ada-tasks.c.
2009 (HFILES_NO_SRCDIR): Add ada-lang.h.
2010 (COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
2011 (YYOBJ): Add ada-exp.o.
2012 (rule .l.c): Generalize to not mention ada.
2013 * symtab.c: Include ada-lang.h.
2014 (symbol_natural_name, symbol_demangled_name)
2015 (symbol_search_name): Add Ada case.
2016
2017 2004-10-01 Andrew Cagney <cagney@gnu.org>
2018
2019 * Makefile.in (COMMON_OBS): Add inf-child.o.
2020 * config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
2021 * config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
2022 * config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
2023 * config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
2024 * config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
2025 * config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
2026 * config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
2027 * config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
2028 * config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
2029 * config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
2030 * config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
2031 * config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
2032 * config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
2033
2034 * target.c (xfer_using_stratum): Change return type to LONGEST.
2035 On each iteration offset, readbuf and writebuf.
2036 * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
2037 partial_length, and read/modify/write predicate, update comments.
2038 Pass buffer.word to ptrace write.
2039
2040 2004-10-01 Paul N. Hilfinger <Hilfinger@gnat.com>
2041
2042 * symfile.c (init_filename_language_table): Add extensions for
2043 Ada.
2044 * defs.h (enum language): Add language_ada.
2045 * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
2046 * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
2047 (add_symbols_from_enclosing_procs): Make a no-op for now.
2048 (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
2049 (extended_canonical_line_spec, find_sal_from_funcs_and_line)
2050 (find_line_in_linetable, find_next_line_in_linetable)
2051 (read_all_symtabs, is_plausible_func_for_line)
2052 (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
2053 (is_runtime_sym_defined, check_size): Remove declaration.
2054 (function_name_from_pc, ada_translate_error_message)
2055 (ada_lookup_minimal_symbol): Remove definition.
2056 (ada_add_block_symbols): Remove useless label.
2057 * ada-lang.h (ada_maybe_exception_partial_symbol): Remove
2058 useless declaration.
2059 (ada_is_exception_sym): Likewise.
2060
2061 2004-09-30 Kei Sakamoto <sakamoto.kei@renesas.com>
2062
2063 Add m32r-linux support.
2064 * configure.tgt: Add m32r*-*-linux*.
2065 * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
2066 and m32r-linux-tdep.c.
2067 (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
2068 * m32r-tdep.c: Move some definitions to m32r-tdep.h.
2069 * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
2070 m32r-linux-tdep.c.
2071 * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
2072 config/m32r/linux.mh, config/m32r/linux.mt,
2073 config/m32r/nm-linux.h: New files.
2074
2075 2004-09-30 Joel Brobecker <brobecker@gnat.com>
2076
2077 * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
2078 (mips32_fetch_instruction): Remove, unused.
2079
2080 2004-09-30 Joel Brobecker <brobecker@gnat.com>
2081
2082 * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
2083 conditions that will always be true.
2084
2085 2004-09-30 Mark Kettenis <kettenis@gnu.org>
2086
2087 * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
2088 (vaxbsd_fetch_inferior_registers): Rename from
2089 fetch_inferior_registers. Make static.
2090 (vaxbsd_store_inferior_registers): Rename from
2091 store_inferior_registers. Make static.
2092 (_initialize_vaxbsd_nat): Construct and add target vector.
2093 * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
2094 inftarg.o. Add inf-child.o and inf-ptrace.o.
2095 * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
2096 inftarg.o. Add inf-child.o and inf-ptrace.o.
2097 (NAT_FILE): Remove.
2098 * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
2099 inftarg.o. Add inf-child.o and inf-ptrace.o.
2100 (NAT_FILE): Remove.
2101 * Makefile.in (vaxbsd-nat.o): Update dependencies.
2102
2103 * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
2104 (m88kbsd_fetch_inferior_registers): Rename from
2105 fetch_inferior_registers. Make static.
2106 (m88kbsd_store_inferior_registers): Rename from
2107 store_inferior_registers. Make static.
2108 (_initialize_m88kbsd_nat): New prototype and function.
2109 * config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
2110 inftarg.o. Add inf-child.o and inf-ptrace.o.
2111 (NAT_FILE): Remove.
2112 * Makefile.in (m88kbsd-nat.o): Update dependencies.
2113
2114 2004-09-30 Andrew Cagney <cagney@gnu.org>
2115
2116 * target.c (target_xfer_partial): New function.
2117 (target_read_memory_partial, target_write_memory_partial)
2118 (default_xfer_partial, target_read_partial, target_write_partial)
2119 (xfer_using_stratum): Use.
2120 (debug_to_xfer_partial): Delete function.
2121 (setup_target_debug): Do not override to_xfer_partial.
2122
2123 2004-09-30 Mark Kettenis <kettenis@chello.nl>
2124
2125 * fork-child.c: Update copyright year. Fix coding style.
2126
2127 2004-09-29 Mark Kettenis <kettenis@gnu.org>
2128
2129 * defs.h (msavestring, mstrsave): Remove prototypes.
2130 * utils.c (msavestring, mstrsave): Remove functions.
2131 * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
2132 * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
2133 of mstrsave.
2134 * source.c (find_and_open_source): Use xstrdup instead of
2135 mstrsave.
2136
2137 2004-09-30 Andrew Cagney <cagney@gnu.org>
2138
2139 * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
2140 (inf_ptrace_xfer_memory): Delete.
2141 * target.c (target_xfer_partial_p, xfer_using_stratum): New.
2142 (target_read_memory, target_write_memory): Use xfer_using_stratum
2143 when target_xfer_partial_p.
2144 (debug_target): Move to start of file.
2145 (target_read_memory_partial, target_write_memory_partial): Use
2146 to_xfer_partial when target_xfer_partial_p.
2147
2148 * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
2149 inf_ptrace_xfer_memory with equivalent code.
2150 * inftarg.c (child_xfer_partial): When performing a write, pass
2151 writebuf to child_xfer_memory.
2152
2153 * target.c (target_read_string): Use target_read_memory instead of
2154 target_xfer_memory.
2155
2156 2004-09-29 Andrew Cagney <cagney@gnu.org>
2157
2158 * infptrace.c (kill_inferior): Fix typo, in previous inline. Pass
2159 the address of status.
2160
2161 * infptrace.c (ptrace_wait): Mention problem with HPUX.
2162 (kill_inferior): Inline ptrace_wait call.
2163 * linux-nat.c (kill_inferior): Inline ptrace_wait call.
2164 * inftarg.c (child_wait): Inline ptrace_wait call.
2165
2166 * target.h (struct target_ops): Delete field to_post_wait.
2167 (target_post_wait): Delete macro.
2168 (child_post_wait): Delete declaration.
2169 * target.c (update_current_target, update_current_target)
2170 (debug_to_post_wait, setup_target_debug): Delete functions and
2171 references.
2172 * infttrace.c (ptrace_wait): Delete call to target_post_wait.
2173 * inftarg.c (child_post_wait): Delete.
2174 (init_child_ops): Do not set to_post_wait.
2175 * infptrace.c (ptrace_wait): Delete call to target_post_wait.
2176 * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
2177 * inf-child.c (inf_child_post_wait): Delete.
2178 (inf_child_target): Do not set to_post_wait.
2179 * inf-ptrace.c (inf_ptrace_post_wait): Delete.
2180 (inf_ptrace_target): Do not set to_post_wait.
2181
2182 * wince.c (child_ops): Delete.
2183 * win32-nat.c (child_ops): Delete.
2184
2185 * inftarg.c (inftarg_set_find_memory_regions)
2186 (inftarg_set_make_corefile_notes): Delete functions.
2187 (_initialize_linux_nat): Inline calls.
2188
2189 * target.h (child_ops): Declare.
2190 * inftarg.c (child_ops): Move from here ...
2191 * target.c (child_ops): ... to here.
2192 * wince.c (child_ops): Delete extern declaration.
2193 * win32-nat.c (child_ops): Delete extern declaration.
2194 * linux-nat.c (child_ops): Delete extern declaration.
2195 * hpux-thread.c (child_ops): Delete extern declaration.
2196
2197 2004-09-28 Mark Kettenis <kettenis@gnu.org>
2198
2199 * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
2200
2201 2004-09-28 Mark Kettenis <kettenis@gnu.org>
2202
2203 * configure.in: Only set host_makefile_frag when building a native
2204 debugger.
2205 * configure: Regenerate.
2206
2207 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
2208 for OpenBSD ELF.
2209
2210 2004-09-28 Andrew Cagney <cagney@gnu.org>
2211
2212 Problem identified by Paul Hilfinger.
2213 * Makefile.in (ada_lex_c): Define.
2214 (ada-lex.o): Delete rule.
2215
2216 * linux-proc.c: Delete file.
2217 * Makefile.in: Update.
2218 * config/sparc/linux64.mh (NATDEPFILES):
2219 * config/sparc/linux.mh (NATDEPFILES): Update.
2220 * config/s390/s390.mh (NATDEPFILES): Update.
2221 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
2222 * config/powerpc/linux.mh (NATDEPFILES): Update.
2223 * config/pa/linux.mh (NATDEPFILES): Update.
2224 * config/mips/linux.mh (NATDEPFILES): Update.
2225 * config/m68k/linux.mh (NATDEPFILES): Update.
2226 * config/ia64/linux.mh (NATDEPFILES): Update.
2227 * config/i386/linux64.mh (NATDEPFILES): Update.
2228 * config/i386/linux.mh (NATDEPFILES): Update.
2229 * config/arm/linux.mh (NATDEPFILES): Update.
2230 * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
2231 * linux-nat.c: Update copyright. Include <sys/param.h>,
2232 <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
2233 "gdbthread.h", "gdb_stat.h", <fcntl.h>.
2234 (O_LARGEFILE): Possibly define.
2235 (_initialize_linux_nat, linux_proc_pending_signals)
2236 (add_line_to_sigset, linux_proc_xfer_memory)
2237 (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
2238 (linux_nat_do_registers, linux_nat_corefile_thread_callback)
2239 (struct linux_corefile_thread_data)
2240 (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
2241 (child_pid_to_exec_file): Insert code previously in linux-proc.c.
2242
2243 2004-09-16 Andrew Cagney <cagney@gnu.org>
2244
2245 * lin-lwp.c: Delete file.
2246 * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
2247 <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
2248 (status_to_str, init_lwp_list, add_lwp, delete_lwp)
2249 (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
2250 (linux_nat_attach, detach_callback, linux_nat_detach)
2251 (resume_callback, resume_clear_callback, linux_nat_resume)
2252 (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
2253 (stop_wait_callback, linux_nat_has_pending, flush_callback)
2254 (status_callback, running_callback, count_events_callback)
2255 (select_singlestep_lwp_callback, select_event_lwp_callback)
2256 (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
2257 (child_wait, stop_and_resume_callback, linux_nat_wait)
2258 (kill_callback, kill_wait_callback, linux_nat_kill)
2259 (linux_nat_create_inferior, linux_nat_mourn_inferior)
2260 (linux_nat_xfer_memory, linux_nat_thread_alive)
2261 (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
2262 (_initialize_linux_nat): New functions.
2263 * Makefile.in: Update all dependencies.
2264 * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
2265 * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2266 * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
2267 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
2268 * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2269 * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2270 * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2271 * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2272 * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2273 * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
2274 * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2275 * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2276 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
2277
2278 2004-09-27 Mark Kettenis <kettenis@gnu.org>
2279
2280 * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
2281 config/i386/obsd64.mh (NAT_FILE): Remove variable.
2282
2283 * configure.in: Don't comment out NATDEPFILES in the generated
2284 Makefile if NAT_FILE is unset.
2285 * configure: Regenerate.
2286
2287 2004-09-27 Andrew Cagney <cagney@gnu.org>
2288
2289 * infrun.c (check_for_old_step_resume_breakpoint): Delete.
2290 (insert_step_resume_breakpoint): Delete.
2291 (insert_step_resume_breakpoint_at_frame): New function.
2292 (insert_step_resume_breakpoint_at_sal): New function.
2293 (handle_inferior_event, step_into_function)
2294 (insert_step_resume_breakpoint): Simplify by using same.
2295
2296 * gdb_indent.sh (types): Add caddr_t to list of predefined types.
2297
2298 2004-09-26 Mark Kettenis <kettenis@gnu.org>
2299
2300 * fbsd-proc.c: Remove file.
2301 * Makefile.in (fbsd-proc.o): Remove dependency.
2302
2303 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
2304 code together.
2305
2306 * config/i386/nm-fbsd64.h: Remove file.
2307 * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2308
2309 2004-09-26 Mark Kettenis <kettenis@gnu.org>
2310
2311 * amd64-nat.h: Update copyright year.
2312 (amd64bsd_target): New prototype.
2313 * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
2314 (amd64bsd_target): New function.
2315 (amd64bsd_fetch_inferior_registers): Rename from
2316 fetch_inferior_registers. Make static.
2317 (amd64bsd_store_inferior_registers): Rename from
2318 store_inferior_registers. Make static.
2319 * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
2320 (_initialize_amd64fbsd_nat): Construct and add target vector.
2321 * amd64nbsd-nat.o: Include "target.h".
2322 (_initialize_amd64nbsd_nat): Construct and add target vector.
2323 * amd64obsd-nat.c: Include "target.h".
2324 (_initialize_amd64obsd_nat): Construct and add target vector.
2325 * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
2326 * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
2327 inftarg.o and fbsd-proc.o. Add inf-child.o, inf-ptrace.o and
2328 fbsd-nat.o.
2329 * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
2330 Remove infptrace.o and inftarg.o. Add inf-child.o and
2331 inf-ptrace.o.
2332 * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
2333 (amd64obsd-nat.o): Update dependencies.
2334
2335 2004-09-25 Mark Kettenis <kettenis@gnu.org>
2336
2337 * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
2338 * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
2339 * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
2340 * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
2341 * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
2342
2343 * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
2344 Inline attach call.
2345 (inf_ptrace_detach): Inline detach call.
2346
2347 * configure.in: Check for waddstr instead of mvwaddstr when
2348 searching for curses library. Check for wborder.
2349 * configure, config.in: Regenerate.
2350 * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
2351 available.
2352
2353 * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
2354
2355 2004-09-24 Robert Picco <Robert.Picco@hp.com>
2356
2357 Committed by Andrew Cagney.
2358 * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
2359 (show_remote_protocol_p_packet_cmd): New. Implement 'p' packet.
2360 configuration.
2361 (fetch_register_using_p): Implement 'p' packet. Based on code by
2362 Fernando Nasser.
2363 (remote_fetch_registers): Call fetch_register_using_p.
2364 (init_all_packet_configs, show_remote_cmd)
2365 (_initialize_remote): Add p-packet.
2366
2367 2004-09-24 Mark Kettenis <kettenis@gnu.org>
2368
2369 * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
2370 instead of call_ptrace. Call wait directly instead of
2371 ptrace_wait.
2372 (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
2373 (inf_ptrace_wait): Inline ptrace_wait call.
2374
2375 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
2376
2377 * Makefile.in (.y.c): Revert previous change. ../ylwrap was
2378 rolled back instead.
2379
2380 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
2381
2382 * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
2383 the new argument order.
2384
2385 2004-09-23 Corinna Vinschen <vinschen@redhat.com>
2386
2387 * MAINTAINERS: Remove "broken" from XStormy16 entry.
2388 * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
2389 (struct gdbarch_tdep): Remove.
2390 (struct xstormy16_frame_cache): New frame cache structure.
2391 (xstormy16_register_byte, xstormy16_register_raw_size)
2392 (xstormy16_reg_virtual_type, xstormy16_register_type)
2393 (xstormy16_push_arguments, xstormy16_push_return_address)
2394 (xstormy16_pop_frame, xstormy16_store_struct_return)
2395 (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
2396 (xstormy16_frame_saved_register, xstormy16_get_saved_register)
2397 (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
2398 (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
2399 (xstormy16_frame_chain, xstormy16_frame_chain_valid,
2400 (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
2401 (xstormy16_use_struct_convention): Drop gcc_p parameter.
2402 (xstormy16_extract_return_value, xstormy16_store_return_value):
2403 Regcachify. Drop useless struct convention handling.
2404 (xstormy16_register_type, xstormy16_return_value)
2405 (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
2406 (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
2407 (xstormy16_frame_prev_register, xstormy16_frame_this_id)
2408 (xstormy16_frame_base_address, xstormy16_frame_sniffer)
2409 (xstormy16_unwind_sp, xstormy16_unwind_pc)
2410 (xstormy16_unwind_dummy_id) : New functions.
2411 (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
2412 of xstormy16_scan_prologue.
2413 (xstormy16_frame_unwind): New frame_unwind structure.
2414 (xstormy16_frame_base): New frame_base structure.
2415 (xstormy16_gdbarch_init): Accomodate all of the above changes.
2416 Reshuffle for better readability. Also add dwarf2_frame_sniffer.
2417
2418 2004-09-22 Mark Kettenis <kettenis@gnu.org>
2419
2420 * language.c (language_gdbarch_post_init): Fix off-by one error.
2421
2422 2004-09-21 Daniel Jacobowitz <dan@debian.org>
2423
2424 * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
2425 (struct dwarf2_offset_and_type): New.
2426 (set_die_type, reset_die_and_siblings_types, get_die_type)
2427 (offset_and_type_hash, offset_and_type_eq): New functions.
2428 (read_structure_type, read_enumeration_type, read_array_type)
2429 (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
2430 (read_tag_reference_type, read_tag_const_type)
2431 (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
2432 (read_typedef, read_base_type, read_subrange_type): Use
2433 set_die_type.
2434
2435 2004-09-20 Daniel Jacobowitz <dan@debian.org>
2436
2437 * Makefile.in (dwarf2read.o): Update dependencies.
2438 * dwarf2read.c: Include "command.h" and "gdbcmd.h".
2439 (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
2440 and read_in_chain.
2441 (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
2442 mark, and has_form_ref_addr.
2443 (struct dwarf2_per_cu_data): New.
2444 (dwarf2_max_cache_age): New.
2445 (dwarf2_build_psymtabs_hard): Free cached compilation units
2446 after loading. Create and manage the list of compilation units.
2447 Remove unnecessary NULL initialization. Fix indentation.
2448 (psymtab_to_symtab_1): Initialize all of CU.
2449 (dwarf2_read_abbrevs): Set has_form_ref_addr.
2450 (find_partial_die): Use dwarf2_find_containing_comp_unit
2451 and load_comp_unit.
2452 (free_stack_comp_unit): Update comments. Clear the per-cu
2453 pointer. Handle aging.
2454 (dwarf2_find_containing_comp_unit, free_cached_comp_units)
2455 (age_cached_comp_units, free_one_cached_comp_unit)
2456 (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
2457 (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
2458 (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
2459 (show_dwarf2_cmd): New.
2460 (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
2461 and "maint show dwarf2 max-cache-age".
2462 * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
2463 externs.
2464 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
2465 global.
2466
2467 2004-09-20 Jeff Johnston <jjohnstn@redhat.com>
2468
2469 * dwarf2read.c (typename_concat): Change prototype to accept obstack
2470 and dwarf2_cu struct pointer as arguments. Change function to use
2471 obstack if provided and use dwarf2_cu to determine language-specific
2472 separator.
2473 (partial_die_parent_scope): Change comment to include java. Use
2474 new version of typename_concat instead of obconcat.
2475 (partial_die_full_name): Use typename_concat.
2476 (read_namespace): Ditto.
2477 (read_enumeration_type): Use typename_concat instead of obconcat.
2478 (new_symbol): Ditto.
2479 (add_partial_symbol): Enhance tests for C++ to also test for Java.
2480 (guess_structure_name): Ditto.
2481 (read_subroutine_type): Ditto.
2482 (read_structure_type): Ditto.
2483 (is_vtable_name): Add Java support.
2484 (determine_class_name): Switch to new typename_concat call.
2485 (determine_prefix): Switch to new typename_concat call.
2486 * jv-exp.y (FuncStart): New pattern.
2487 (MethodInvocation): Add support for simple function calls. Change
2488 warning message for other forms of inferior call currently not
2489 supported.
2490 * valarith.c (value_subscript): Treat an array with upper-bound
2491 of -1 as unknown size.
2492
2493 2004-09-20 Daniel Jacobowitz <dan@debian.org>
2494
2495 * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
2496 (lookup_partial_symtab): Use symtab_to_fullname.
2497
2498 2004-09-19 Jim Blandy <jimb@redhat.com>
2499
2500 * minsyms.c (lookup_minimal_symbol): Doc fix.
2501
2502 2004-09-20 Andrew Cagney <cagney@gnu.org>
2503
2504 * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
2505 CHILD_RESUME.
2506 * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
2507 * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
2508 KILL_INFERIOR.
2509 * infptrace.c: Update.
2510
2511 2004-09-19 Daniel Jacobowitz <dan@debian.org>
2512
2513 * symtab.c (output_source_filename): Mark first argument as const.
2514 (sources_info): Use symtab_to_fullname and psymtab_to_fullname
2515 for "info sources" output.
2516
2517 2004-09-20 Mark Kettenis <kettenis@gnu.org>
2518
2519 * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
2520 <machine/vmparam.h>.
2521 (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
2522 (register_u_addr): Remove prototype.
2523
2524 2004-09-19 Mark Kettenis <kettenis@gnu.org>
2525
2526 * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
2527 (i386bsd_fetch_inferior_registers): Rename from
2528 fetch_inferior_registers. Make static.
2529 (i386bsd_store_inferior_registers): Rename from
2530 store_inferior_registers. Make static.
2531 (i386bsd_target): New function.
2532 * i386bsd-nat.h: New file.
2533 * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
2534 "i386bsd-nat.h".
2535 (i386fbsd_resume): Rename from child_resume. Make static.
2536 (_initialize_i386fbsd_nat): Construct and add target vector.
2537 * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
2538 (_initialize_i386nbsd_nat): Construct and add target vector.
2539 * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
2540 Remove defines.
2541 * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
2542 and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
2543 * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
2544 inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
2545 (LOADLIBES): New variable.
2546 * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
2547 inf-ptrace.o. Remove inftarg.o.
2548 * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
2549 inf-ptrace.o. Remove inftarg.o.
2550 * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
2551 inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
2552 (LOADLIBES): New variable.
2553 * Makefile.in (i386bsd_nat_h): New variable.
2554 (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
2555 dependencies.
2556
2557 * sparc64nbsd-tdep.c: Include "objfiles.h".
2558 (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
2559 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
2560 svr4_lp64_fetch_link_map_offsets.
2561 * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
2562 "nbsd-tdep.h".
2563 (sparc64obsd_init_abi): Set in_solib_call_trampoline and
2564 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
2565 svr4_lp64_fetch_link_map_offsets.
2566 * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
2567 dependencies.
2568
2569 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
2570 * fbsd-nat.h: New file.
2571 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
2572 (fbsd_nat_h): New variable.
2573 (fbsd-nat.o): New dependency.
2574
2575 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
2576 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
2577
2578 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
2579 comment.
2580
2581 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
2582
2583 * ada-exp.y (type_int): New function to add layer of abstraction
2584 around references to expression types.
2585 (type_long): Ditto.
2586 (type_long_long): Ditto.
2587 (type_float): Ditto.
2588 (type_double): Ditto.
2589 (type_long_double): Ditto.
2590 (type_char): Ditto.
2591 (type_system_address): Ditto.
2592 (simple_exp): Use type_* functions in place of builtin_*
2593 variables.
2594 (exp): Ditto.
2595 (write_var_from_name): Ditto.
2596 (write_object_renaming): Ditto.
2597 * ada-lang.c (ada_create_fundamental_type): Remove redundant
2598 declaration.
2599 (build_ada_types): Remove, replacing with...
2600 (ada_language_arch_info): New function to initialize primitive
2601 type vector in language_arch_info.
2602 (ada_array_length): Remove use of builtin_type_ada_int.
2603 (value_pos_atr): Ditto.
2604 (ada_evaluate_subexp): Ditto.
2605 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
2606 builtin_type_ada_long_long, builtin_type_ada_char,
2607 builtin_type_ada_float, builtin_type_ada_double,
2608 builtin_type_ada_long_double, builtin_type_ada_natural,
2609 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
2610 (ada_builtin_types): Remove.
2611 (ada_language_defn): Remove entries for la_builtin_type_vector and
2612 string_char_type and use ada_language_arch_info.
2613 (_initialize_ada_language): Do type-vector initialization along
2614 the lines of c-lang.c.
2615 (ada_create_fundamental_type): Break up line.
2616 (ada_dump_symtab): Remove unused function.
2617 (enum ada_primitive_types): Define.
2618 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
2619 builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
2620 builtin_type_ada_float, builtin_type_ada_double,
2621 builtin_type_ada_long_double, builtin_type_ada_natural,
2622 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
2623 * ada-lex.l: Use type_* functions in place of builtin_* variables.
2624 (processInt): Ditto.
2625 (processReal): Ditto.
2626 (name_lookup): Ditto.
2627 * ada-typeprint.c (print_range): Use builtin_type_int, not
2628 builtin_type_ada_int.
2629
2630 2004-09-18 Mark Kettenis <kettenis@gnu.org>
2631
2632 * i386-tdep.c (i386_register_name): Rename regno to regnum.
2633
2634 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
2635 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
2636 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
2637 * configure.in: Improve checks for curses library by checking for
2638 mvwaddstr instead of initscr. Drop HP curses in favour of
2639 standard curses on HP-UX.
2640 * configure: Regenerated.
2641
2642 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
2643
2644 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
2645 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
2646 Minor formatting changes.
2647 (empty_array): Slight rewrite for formatting.
2648 (emit_char,parse,ada_language_defn,build_ada_types,
2649 ada_is_exception_sym, _initialize_ada_language): Move
2650 definitions around.
2651 (ada_dump_symtab): Remove unused definition.
2652 (ada_maybe_exception_partial_symbol): Remove unused definition.
2653
2654 2004-09-16 Andrew Cagney <cagney@gnu.org>
2655
2656 * inf-child.c: Include "gdb_string.h".
2657 (inf_child_core_file_to_sym_file): Delete.
2658 (inf_child_target): Set to_fetch_registers and to_store_registers.
2659 * inf-ptrace.c: Include "gdb_string.h".
2660 * Makefile.in: Update all dependencies.
2661
2662 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
2663 problem.
2664
2665 2004-09-14 Joel Brobecker <brobecker@gnat.com>
2666
2667 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
2668 call to heuristic_proc_desc. Remove code that became redundant
2669 as a consequence.
2670 (read_next_frame_reg): Remove special case for SP_REGNUM.
2671 (set_reg_offset): Fix small typo.
2672 (reset_saved_regs): New procedure.
2673 (mips32_heuristic_proc_desc): No longer compute a fake
2674 procedure descriptor. Compute the full frame cache instead.
2675 Some minor comment reformatting.
2676
2677 2004-09-14 Andrew Cagney <cagney@gnu.org>
2678
2679 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
2680 maintainer.
2681
2682 * thread-db.c (thread_db_new_objfile): Assume that there is a
2683 child process.
2684
2685 2004-09-13 Jim Blandy <jimb@redhat.com>
2686
2687 * valops.c (value_assign): Move 'buffer' to the enclosing block,
2688 so that its storage isn't referenced after its lifetime ends.
2689
2690 * valops.c (value_assign): 'use_buffer' is initialized to zero,
2691 and never assigned to. Delete it, and the 'if (use_buffer)'
2692 clauses. Delete 'raw_buffer', since it is now unused.
2693
2694 2004-09-13 Andrew Cagney <cagney@gnu.org>
2695
2696 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
2697 * configure: Re-generate.
2698 * nlm/Makefile.in (TAGS): Update.
2699 * Makefile.in (TAGS): Update.
2700 * config/vax/nbsd.mt (TM_FILE): Update.
2701 * config/sparc/vxworks.mt (TM_FILE): Update.
2702 * config/sparc/sol2.mt (TM_FILE): Update.
2703 * config/sparc/sol2-64.mt (TM_FILE): Update.
2704 * config/sparc/obsd64.mt (TM_FILE): Update.
2705 * config/sparc/obsd.mt (TM_FILE): Update.
2706 * config/sparc/nbsd64.mt (TM_FILE): Update.
2707 * config/sparc/nbsd.mt (TM_FILE): Update.
2708 * config/sparc/linux64.mt (TM_FILE): Update.
2709 * config/sparc/linux.mt (TM_FILE): Update.
2710 * config/sparc/fbsd.mt (TM_FILE): Update.
2711 * config/sh/wince.mt (TM_FILE): Update.
2712 * config/sh/nbsd.mt (TM_FILE): Update.
2713 * config/sh/linux.mt (TM_FILE): Update.
2714 * config/sh/embed.mt (TM_FILE): Update.
2715 * config/s390/s390.mt (TM_FILE): Update.
2716 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
2717 * config/rs6000/rs6000.mt (TM_FILE): Update.
2718 * config/rs6000/aix4.mt (TM_FILE): Update.
2719 * config/powerpc/vxworks.mt (TM_FILE): Update.
2720 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
2721 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
2722 * config/powerpc/obsd.mt (TM_FILE): Update.
2723 * config/powerpc/nbsd.mt (TM_FILE): Update.
2724 * config/powerpc/linux.mt (TM_FILE): Update.
2725 * config/powerpc/aix.mt (TM_FILE): Update.
2726 * config/pa/obsd.mt (TM_FILE): Update.
2727 * config/pa/linux.mt (TM_FILE): Update.
2728 * config/pa/hppahpux.mt (TM_FILE): Update.
2729 * config/pa/hppa64.mt (TM_FILE): Update.
2730 * config/pa/hppa.mt (TM_FILE): Update.
2731 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
2732 * config/mips/wince.mt (TM_FILE): Update.
2733 * config/mips/vxmips.mt (TM_FILE): Update.
2734 * config/mips/nbsd.mt (TM_FILE): Update.
2735 * config/mips/linux.mt (TM_FILE): Update.
2736 * config/mips/irix6.mt (TM_FILE): Update.
2737 * config/mips/irix5.mt (TM_FILE): Update.
2738 * config/mips/embed.mt (TM_FILE): Update.
2739 * config/m68k/vxworks68.mt (TM_FILE): Update.
2740 * config/m68k/st2000.mt (TM_FILE): Update.
2741 * config/m68k/os68k.mt (TM_FILE): Update.
2742 * config/m68k/obsd.mt (TM_FILE): Update.
2743 * config/m68k/nbsd.mt (TM_FILE): Update.
2744 * config/m68k/monitor.mt (TM_FILE): Update.
2745 * config/m68k/linux.mt (TM_FILE): Update.
2746 * config/m68k/cisco.mt (TM_FILE): Update.
2747 * config/ia64/linux.mt (TM_FILE): Update.
2748 * config/ia64/aix.mt (TM_FILE): Update.
2749 * config/ia64/ia64.mt (TM_FILE): Update.
2750 * config/i386/vxworks.mt (TM_FILE): Update.
2751 * config/i386/obsd64.mt (TM_FILE): Update.
2752 * config/i386/obsd.mt (TM_FILE): Update.
2753 * config/i386/nto.mt (TM_FILE): Update.
2754 * config/i386/nbsd64.mt (TM_FILE): Update.
2755 * config/i386/nbsd.mt (TM_FILE): Update.
2756 * config/i386/linux64.mt (TM_FILE): Update.
2757 * config/i386/linux.mt (TM_FILE): Update.
2758 * config/i386/i386sol2.mt (TM_FILE): Update.
2759 * config/i386/i386lynx.mt (TM_FILE): Update.
2760 * config/i386/fbsd64.mt (TM_FILE): Update.
2761 * config/i386/fbsd.mt (TM_FILE): Update.
2762 * config/i386/cygwin.mt (TM_FILE): Update.
2763 * config/h8300/h8300.mt (TM_FILE): Update.
2764 * config/frv/frv.mt (TM_FILE): Update.
2765 * config/cris/cris.mt (TM_FILE): Update.
2766 * config/arm/wince.mt (TM_FILE): Update.
2767 * config/arm/nbsd.mt (TM_FILE): Update.
2768 * config/arm/linux.mt (TM_FILE): Update.
2769 * config/arm/embed.mt (TM_FILE): Update.
2770 * config/alpha/nbsd.mt (TM_FILE): Update.
2771 * config/alpha/fbsd.mt (TM_FILE): Update.
2772 * config/alpha/alpha.mt (TM_FILE): Update.
2773 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
2774 * config/alpha/alpha-linux.mt (TM_FILE): Update.
2775
2776 Eliminate event_loop_p, always has the value 1.
2777 * defs.h (event_loop_p): Delete macro.
2778 * breakpoint.c (until_break_command): Simplify.
2779 * utils.c (prompt_for_continue): Simplify.
2780 * tracepoint.c (read_actions): Simplify.
2781 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
2782 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
2783 (set_prompt, init_main): Simplify.
2784 (init_signals, disconnect): Delete, unused.
2785 * remote.c (remote_async_resume)
2786 (extended_remote_async_create_inferior): Simplify.
2787 * mi/mi-interp.c (mi_input): Delete, unused.
2788 (mi_interpreter_resume, mi_command_loop): Simplify.
2789 * interps.c (current_interp_command_loop): Simplify.
2790 * infrun.c (proceed): Simplify.
2791 * infcmd.c (run_command, continue_command, step_1, jump_command)
2792 (until_command, advance_command, finish_command)
2793 (interrupt_target_command): Simplify.
2794 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
2795
2796 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2797 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2798 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2799 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2800 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2801 * mips-tdep.c (mips_dump_tdep): Do not print same.
2802
2803 2004-09-12 Andrew Cagney <cagney@gnu.org>
2804
2805 * valprint.c (print_longest): Use fputs_filtered. Make "val"
2806 const.
2807 * Makefile.in (valprint.o): Delete explict rule.
2808
2809 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
2810 reported by Dave Anderson.
2811
2812 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
2813
2814 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
2815
2816 2004-09-12 Salvador E. Tropea <set@users.sf.net>
2817 Andrew Cagney <cagney@gnu.org>
2818
2819 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
2820 (mi_cmd_data_list_register_values)
2821 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
2822 the register number computation.
2823
2824 2004-09-12 Andrew Cagney <cagney@gnu.org>
2825
2826 * ppcnbsd-nat.c: Include "inf-ptrace.h".
2827 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
2828 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
2829 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
2830 target.
2831 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
2832 inf-ptrace.o and inf-child.o.
2833 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
2834 * Makefile.in: Update dependencies.
2835
2836 2004-09-11 Andrew Cagney <cagney@gnu.org>
2837
2838 * language.c (hex_string, hex_string_custom): Move from here ...
2839 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
2840 (CELLSIZE): Increase to 50.
2841 * language.h (hex_string, hex_string_custom): Move from here ...
2842 * defs.h: ... to here.
2843 * Makefile.in: Update all dependencies.
2844
2845 2004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
2846
2847 * language.c (local_hex_format_custom): Remove.
2848 (local_hex_string): Rename to hex_string, use C format, and move to
2849 utils.c
2850 (local_hex_string_custom): Rename to hex_string_custom and change
2851 interface. Now uses C format. Move to utils.c
2852 (local_octal_format_custom): Remove.
2853 (local_decimal_format_custom): Remove.
2854 (unknown_language_defn): Remove language-specific number
2855 formatting entries.
2856 (auto_language_defn): Ditto.
2857 (local_language_defn): Ditto.
2858 * language.h (struct language_format_info): Delete declaration.
2859 (struct language_defn): Remove language_format_info fields
2860 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
2861 (local_binary_format): Remove macro.
2862 (local_binary_format_prefix): Remove macro.
2863 (local_binary_format_specifier): Remove macro.
2864 (local_binary_format_suffix): Remove macro.
2865 (local_octal_format): Remove macro.
2866 (local_octal_format_prefix): Remove macro.
2867 (local_octal_format_specifier): Remove macro.
2868 (local_octal_format_suffix): Remove macro.
2869 (local_decimal_format): Remove macro.
2870 (local_decimal_format_prefix): Remove macro.
2871 (local_decimal_format_specifier): Remove macro.
2872 (local_decimal_format_suffix): Remove macro.
2873 (local_hex_format): Remove macro.
2874 (local_hex_format_prefix): Remove macro.
2875 (local_hex_format_specifier): Remove macro.
2876 (local_hex_format_suffix): Remove macro.
2877 (local_decimal_format_custom): Remove.
2878 (local_octal_format_custom): Remove.
2879 (local_hex_format_custom): Remove.
2880 (local_hex_string): Rename to hex_string and move to defs.h.
2881 (local_hex_string_custom): Rename to hex_string_custom, change
2882 interface, and move to defs.h.
2883 * utils.c: (int_string): New function.
2884 (hex_string): New function (from language.c).
2885 (hex_string_custom): New function (from language.c).
2886 (octal2str): New function.
2887 (decimal2str): Add width parameter.
2888 (paddr_u): Use new decimal2str interface.
2889 (paddr_d): Ditto.
2890 * defs.h (hex_string): Declare.
2891 (hex_string_custom): Declare.
2892 (int_string): Declare.
2893 * printcmd.c (print_scalar_formatted): Remove localized binary
2894 formatting.
2895 * valprint.c (print_longest): Use int_string.
2896 (print_floating): Use C hex format.
2897 (print_hex_chars): Ditto.
2898 (print_binary_chars): Remove language-specific formatting.
2899 (print_octal_chars): Use C octal format.
2900 (print_decimal_chars): Delocalize format.
2901 (print_decimal): Remove.
2902 * ada-lang.c (ada_language_defn): Remove language-specific number
2903 formatting entries.
2904 * p-lang.c (pascal_language_defn): Ditto.
2905 * c-lang.c (c_language_defn): Ditto.
2906 (cplus_language_defn): Ditto.
2907 (asm_language_defn): Ditto.
2908 (minimal_language_defn): Ditto.
2909 * f-lang.c (f_language_defn): Ditto.
2910 * jv-lang.c (java_language_defn): Ditto.
2911 * m2-lang.c (m2_language_defn): Ditto.
2912 * scm-lang.c (scm_language_defn): Ditto.
2913 * objc-lang.c (objc_language_defn): Ditto.
2914 * memattr.c (mem_info_command): Use renamed hex_string_custom with
2915 new interface.
2916 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
2917 * ui-out.c (ui_out_field_core_addr): Ditto.
2918 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
2919 * exec.c (print_section_info): Ditto.
2920 * i387-tdep.c (print_i387_status_word): Ditto.
2921 (print_i387_control_word): Ditto.
2922 (i387_print_float_info): Ditto.
2923 * maint.c (maint_print_section_info): Ditto.
2924 * solib.c (info_sharedlibrary_command): Ditto.
2925 * somsolib.c (som_sharedlibrary_info_command): Ditto.
2926 * symtab.c (print_msymbol_info): Ditto.
2927 * tracepoint.c (tracepoints_info): Ditto.
2928 * solib-frv.c (lm_base): Ditto.
2929 (frv_current_sos): Ditto.
2930 (enable_break2): Ditto.
2931 (enable_break): Ditto.
2932 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
2933 (process_one_symbol): Ditto.
2934 * infcmd.c (program_info): Ditto.
2935 * mdebugread.c (parse_partial_symbols): Ditto.
2936 * symfile.c (add_symbol_file_command): Ditto.
2937 * cli/cli-cmds.c (edit_command): Ditto.
2938 (list_command): Ditto.
2939 * infcall.c (call_function_by_hand): Ditto.
2940 * remote-vx.c (vx_run_files_info): Ditto.
2941 (vx_wait): Ditto.
2942 (vx_attach): Ditto.
2943 (vx_detach): Ditto.
2944 (vx_kill): Ditto.
2945 * aix-thread.c (pdc_symbol_addrs): Ditto.
2946 (pdc_read_regs): Ditto.
2947 (pdc_write_regs): Ditto.
2948 (pdc_read_data): Ditto.
2949 (pdc_write_data): Ditto.
2950 * d10v-tdep.c (display_trace): Ditto.
2951 * rs6000-nat.c (find_toc_address): Ditto.
2952 * aix-thread.c: Don't include language.h.
2953 * buildsym.c: Ditto.
2954 * dbxread.c: Ditto.
2955 * mdebugread.c: Ditto.
2956 * rs6000-nat.c: Ditto.
2957 * buildsym.c (make_blockvector): Use renamed hex_string.
2958
2959 2004-09-10 Jason Molenda (jmolenda@apple.com)
2960
2961 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
2962 chars after 'if' or 'while' commands in user-defined commands.
2963
2964 2004-09-08 Jim Blandy <jimb@redhat.com>
2965
2966 Fix bug reported and analyzed by Olivier Crete:
2967 * symfile.c (copy_section_addr_info): New function.
2968 (symbol_file_add_with_addrs_or_offsets): Use it to save the
2969 original set of address arguments, instead of handwritten code
2970 that uses one length to allocate and a different length to
2971 initialize. Use make_cleanup_free_section_addr_info.
2972 * symfile.h (copy_section_addr_info): New declaration.
2973 * utils.c: #include "symfile.h".
2974 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
2975 New functions.
2976 * defs.h (make_cleanup_free_section_addr_info): New declaration.
2977 * Makefile.in (utils.o): Update dependencies.
2978
2979 2004-09-08 Andrew Cagney <cagney@gnu.org>
2980
2981 * thread-db.c (keep_thread_db): Delete.
2982 (thread_db_new_objfile, thread_db_create_inferior)
2983 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
2984
2985 2004-09-08 Mark Kettenis <kettenis@gnu.org>
2986
2987 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
2988 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
2989 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
2990 (i386_frameless_signal_p): Remove prototype.
2991 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
2992 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
2993 I386_SSE_NUM_REGS.
2994 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
2995 instead of FP0_REGNUM.
2996 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
2997 of FP0_REGNUM and FPC_REGNUM.
2998
2999 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
3000 (sunos_solib_create_inferior_hook): Don't call
3001 sunos_relocate_main_executable.
3002
3003 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
3004 solib_svr4_fetch_link_map_offsets to
3005 svr4_ilp32_fetch_link_map_offsets.
3006 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
3007 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
3008 svr4_ilp32_fetch_link_map_offsets.
3009 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
3010
3011 2004-09-07 Jim Blandy <jimb@redhat.com>
3012
3013 * frame.h (frame_register): Doc fix.
3014
3015 2004-09-07 Andrew Cagney <cagney@gnu.org>
3016
3017 * vx-share/wait.h: Delete #ifdef USG.
3018 * utils.c (request_quit): Ditto.
3019 * tui/tui.c (tui_reset): Ditto.
3020 * remote.c: Ditto.
3021 * remote-sds.c: Ditto.
3022 * remote-rdi.c: Ditto.
3023 * mdebugread.c: Ditto.
3024 * m68klinux-nat.c: Ditto.
3025 * infttrace.c: Ditto.
3026 * infptrace.c: Ditto.
3027 * i386v-nat.c: Ditto.
3028 * exec.c: Ditto.
3029 * dbxread.c: Ditto.
3030 * core-aout.c: Ditto.
3031
3032 2004-09-05 Joel Brobecker <brobecker@gnat.com>
3033
3034 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
3035 heuristic_proc_desc.
3036 (mips_insn32_frame_cache): Likewise.
3037
3038 2004-09-04 Joel Brobecker <brobecker@gnat.com>
3039
3040 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
3041 left behind by error.
3042
3043 2004-09-04 Joel Brobecker <brobecker@gnat.com>
3044
3045 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
3046 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
3047
3048 2004-09-04 Joel Brobecker <brobecker@gnat.com>
3049
3050 * config/rs6000/xm-aix4.h: Remove this file.
3051 * config/rs6000/aix4.mh (XM_FILE): Delete.
3052
3053 2004-09-04 Joel Brobecker <brobecker@gnat.com>
3054
3055 * config/rs6000/xm-rs6000.h: Remove this file.
3056 * config/rs6000/rs6000.mh (XM_FILE): Remove.
3057
3058 2004-09-03 Andrew Cagney <cagney@gnu.org>
3059
3060 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
3061 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
3062 only use.
3063
3064 * mips-tdep.c (temp_saved_regs): Delete.
3065 (set_reg_offset): Replace saved_regs parameter with this_cache.
3066 (heuristic_proc_desc, mips16_heuristic_proc_desc)
3067 (mips32_heuristic_proc_desc): Add this_cache parameter.
3068 (mips_insn32_frame_cache, mips_insn16_frame_cache)
3069 (after_prologue): Pass a NULL this_cache.
3070
3071 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
3072 non-kernel trap prologues.
3073
3074 * mips-tdep.c (find_proc_desc): Delete function.
3075 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
3076 simplify.
3077 (mips_insn16_frame_cache): Replace find_proc_desc with code from
3078 mips_insn32_frame_cache.
3079
3080 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
3081 Simplify as NEXT_FRAME is NULL.
3082 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
3083
3084 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
3085 local variable.
3086 (mips_skip_prologue): Update.
3087
3088 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
3089 "cur_frame" parameter.
3090 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
3091 (mips_insn32_frame_cache, find_proc_desc): Update
3092
3093 * config/vax/nm-obsd.h: Delete file.
3094 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3095 * config/vax/nm-nbsd.h: Delete file.
3096 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
3097 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3098 * config/sh/nm-nbsd.h: Delete file.
3099 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3100 * config/rs6000/nm-rs6000ly.h: Delete file.
3101 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
3102 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
3103 * config/powerpc/nm-obsd.h: Delete file.
3104 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3105 * config/powerpc/nm-nbsd.h: Delete file.
3106 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3107 * config/pa/nm-obsd.h: Delete file.
3108 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3109 * config/mips/nm-nbsd.h: Delete file.
3110 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3111 * config/m88k/nm-obsd.h: Delete file.
3112 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3113 * config/m68k/nm-nbsd.h: Delete file.
3114 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
3115 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3116 * config/i386/nm-nbsd.h: Delete file.
3117 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
3118 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
3119 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
3120 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3121 * config/i386/nm-i386lynx.h: Delete file.
3122 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
3123 * config/arm/nm-nbsd.h: Delete file.
3124 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
3125 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3126
3127 * config/i386/tm-fbsd.h: Delete file.
3128 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
3129 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
3130
3131 * config/rs6000/tm-rs6000-aix4.h: Delete file.
3132 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
3133 * config/rs6000/aix4.mt (TM_FILE): Set to
3134 config/rs6000/tm-rs6000.h.
3135 * config/powerpc/tm-ppc-aix.h: Delete file.
3136 * config/powerpc/aix.mt (TM_FILE): Set to
3137 config/rs6000/tm-rs6000.h.
3138 * config/m68k/tm-linux.h: Delete file.
3139 * config/m68k/linux.mt (TM_FILE): Set to solib.h
3140 * config/i386/tm-linux64.h: Delete file.
3141 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
3142 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
3143
3144 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
3145 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
3146 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
3147 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
3148 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
3149 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
3150 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
3151 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
3152 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
3153
3154 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
3155 gdb_host_cpu.
3156
3157 2004-09-02 Joel Brobecker <brobecker@gnat.com>
3158
3159 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
3160 Minor reformatting. Some code factoring.
3161
3162 2004-09-02 Andrew Cagney <cagney@gnu.org>
3163
3164 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
3165 * config/vax/tm-nbsd.h: Delete file.
3166 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
3167 * config/sparc/tm-vxworks.h: Delete file.
3168 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
3169 * config/sparc/tm-nbsd.h: Delete file.
3170 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
3171 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
3172 * config/sparc/tm-linux.h: Delete file.
3173 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
3174 * config/s390/tm-linux.h: Delete file.
3175 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
3176 * config/pa/tm-bsd.h: Delete file.
3177 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
3178 * config/m68k/tm-obsd.h: Delete file.
3179 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
3180 * config/m68k/tm-nbsd.h: Delete file.
3181 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
3182 * config/i386/tm-vxworks.h: Delete file.
3183 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
3184 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
3185 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
3186 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
3187 * config/i386/tm-nbsd.h: Delete file.
3188 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
3189 * config/i386/tm-i386lynx.h: Delete file.
3190 * config/cris/cris.mt (TM_FILE): Set to solib.h.
3191 * config/cris/tm-cris.h: Delete file.
3192
3193 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
3194 * configure: Re-generate.
3195 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
3196 * config/arm/tm-nbsd.h: Delete file.
3197
3198 * config/powerpc/tm-ppcle-sim.h: Delete.
3199 * config/powerpc/tm-ppcle-eabi.h: Delete.
3200 * config/powerpc/tm-nbsd.h: Delete.
3201 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
3202 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
3203 tm-ppcle-eabi.h.
3204
3205 * config/i386/nto.mh (NAT_FILE): Delete.
3206 * config/i386/nm-nto.h: Delete.
3207
3208 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
3209 * config/m68k/tm-os68k.h: Ditto.
3210 * config/m68k/tm-monitor.h: Ditto.
3211 * config/m68k/tm-cisco.h: Ditto.
3212 * config/m68k/st2000.mt (TM_FILE): Delete.
3213 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
3214 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
3215 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
3216 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
3217
3218 * config/m68k/tm-st2000.h: Delete.
3219 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
3220 * config/sparc/fbsd.mt (TM_FILE): Delete.
3221 * config/sparc/tm-fbsd.h: Delete.
3222
3223 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
3224 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
3225 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
3226
3227 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
3228 GDB_TM_FILE and GDB_XM_FILE.
3229 * gdbarch.c: Re-generate.
3230 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
3231 quotes in macro definition.
3232 * configure.in: Re-generate.
3233
3234 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
3235 validating architecture methods.
3236 * gdbarch.c: Re-generate.
3237
3238 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
3239 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
3240 GDB_MULTI_ARCH_PARTIAL.
3241 * gdbarch.h: Re-generate.
3242
3243 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
3244 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
3245 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
3246 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
3247 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
3248 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
3249 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
3250 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
3251 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
3252 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
3253 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
3254 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
3255
3256 2004-09-01 Andrew Cagney <cagney@gnu.org>
3257
3258 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
3259 and main_func_highpc.
3260 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
3261 * objfiles.c (init_entry_point_info, objfile_relocate): Update
3262 * nlmread.c (nlm_symfile_read): Update.
3263
3264 2004-09-01 Joel Brobecker <brobecker@gnat.com>
3265
3266 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
3267 (mips_insn32_frame_cache): Inline call to find_proc_desc.
3268 (find_proc_desc): Remove dead code.
3269
3270 2004-09-01 Joel Brobecker <brobecker@gnat.com>
3271
3272 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
3273
3274 2004-09-01 Jeff Johnston <jjohnstn@redhat.com>
3275
3276 * observer.sh: Add struct so_list declaration.
3277 * Makefile.in: Add dependencies on observer.h for solib.c and
3278 breakpoint.c.
3279 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
3280 function.
3281 (_initialize_breakpoint): Register
3282 disable_breakpoints_in_unloaded_shlib as an observer of the
3283 "solib unloaded" observation event.
3284 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
3285 call decode_line_1 so unfound breakpoint errors are silent.
3286 * solib.c (update_solib_list): When a solib is discovered to have
3287 been unloaded by the program, notify all observers of the
3288 "solib unloaded" observation event.
3289
3290 2004-09-01 Andrew Cagney <cagney@gnu.org>
3291
3292 * frame.c: Include "objfiles.h".
3293 (inside_main_func): New function.
3294 (get_prev_frame): Use new inside_main_func.
3295 * Makefile.in (frame.o): Update dependencies.
3296 * defs.h (inside_main_func): Delete declaration.
3297 * blockframe.c (inside_main_func): Delete function.
3298
3299 2004-08-31 Jim Blandy <jimb@redhat.com>
3300
3301 * dwarf2read.c (is_vtable_name): New function, based on logic from
3302 read_structure_type, but passing the correct length to strncmp,
3303 and using 'sizeof' instead of 'strlen'.
3304 (read_structure_type): Call it.
3305
3306 2004-08-31 Joel Brobecker <brobecker@gnat.com>
3307
3308 * config/powerpc/aix.mh: Add comment.
3309
3310 2004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
3311
3312 * MAINTAINERS: Add self to Write-After-Approval.
3313
3314 2004-08-30 Manoj Iyer <manjo@austin.ibm.com>
3315
3316 * MAINTAINERS: Add self to Write-After-Approval.
3317
3318 2004-08-30 Andrew Cagney <cagney@gnu.org>
3319
3320 Fix PR breakpoints/1757.
3321 * infrun.c (struct execution_control_state): Replace
3322 remove_breakpoints_on_following_step with
3323 step_after_step_resume_breakpoint.
3324 (init_execution_control_state): Update.
3325 (handle_inferior_event): For signals, when stepping off a
3326 breakpoint, set step_after_step_resume_breakpoint. When
3327 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
3328 (keep_going): Delete code handling
3329 remove_breakpoints_on_following_step.
3330
3331 2004-08-29 David Lecomber <david@streamline-computing.com>
3332
3333 Fix PR gdb/648
3334 * language.h (enum array_ordering): New enum.
3335 * language.h (struct language_defn): New la_array_ordering
3336 attribute.
3337 * language.c (unknown_language_defn, auto_language_defn)
3338 (local_language_defn): Ditto.
3339 * ada-lang.c (ada_language_defn): Ditto.
3340 * c-lang.c (c_language_defn, cplus_language_defn)
3341 (asm_language_defn, minimal_language_defn): Ditto.
3342 * f-lang.c (f_language_defn): Ditto.
3343 * jv-lang.c (java_language_defn): Ditto.
3344 * m2-lang.c (f_language_defn): Ditto.
3345 * objc-lang.c (objc_language_defn): Ditto.
3346 * p-lang.c (pascal_language_defn): Ditto.
3347 * scm-lang.c (scm_language_defn): Ditto.
3348 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
3349 oriented large to small in type structure.
3350 * dwarf2read.c (read_array_order): New function.
3351 (read_array_type): Use read_array_order to check row/column
3352 major ordering.
3353
3354 2004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
3355
3356 * target.c (target_resize_to_sections): Check
3357 current_target.to_sections for an old value when updating.
3358
3359 2004-08-27 Joel Brobecker <brobecker@gnat.com>
3360
3361 * procfs.c (dbx_link_bpt_addr): New static global variable.
3362 (dbx_link_shadow_contents): New static global variable.
3363 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
3364 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
3365 if we just hit it.
3366 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
3367 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
3368 from run to run.
3369 (procfs_create_inferior): Remove syssgi syscall-exit notifications
3370 after the inferior has been forked.
3371 (remove_dbx_link_breakpoint): New function.
3372 (dbx_link_addr): New function.
3373 (insert_dbx_link_bpt_in_file): New function.
3374 (insert_dbx_link_bpt_in_region): New function.
3375 (insert_dbx_link_breakpoint): New function.
3376 (proc_trace_syscalls_1): New function, extracted from
3377 proc_trace_syscalls.
3378 (proc_trace_syscalls): Replace extract code by call to
3379 proc_trace_syscalls_1.
3380 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
3381 is no longer valid.
3382
3383 2004-08-25 Jim Blandy <jimb@redhat.com>
3384
3385 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
3386
3387 2004-08-25 Andrew Cagney <cagney@gnu.org>
3388
3389 * infrun.c (struct execution_control_state): Delete field
3390 "stepping_through_sigtramp".
3391 (init_execution_control_state): Do not set same.
3392 (context_switch): Do not pass same to save_infrun_state and
3393 load_infrun_state.
3394 * gdbthread.h (struct thread_info): Delete field
3395 stepping_through_sigtramp.
3396 (save_infrun_state, load_infrun_state): Delete parameter
3397 stepping_through_sigtramp.
3398 * thread.c (load_infrun_state, save_infrun_state): Update.
3399
3400 * infrun.c: Re-indent. Move expression operators to the beginning
3401 of the line. Remove long disabled #if 0 code.
3402
3403 2004-08-24 Andrew Cagney <cagney@gnu.org>
3404
3405 * doublest.h (floatformat_ieee_quad): Rename
3406 floatformat_ia64_quad.
3407 * doublest.c (floatformat_ieee_quad): Rename
3408 floatformat_ia64_quad.
3409 (_initialize_doublest): Update.
3410
3411 2004-08-24 Jim Blandy <jimb@redhat.com>
3412
3413 * dwarf2expr.h (struct dwarf_expr_context): New members
3414 'num_pieces' and 'pieces', for returning the result of an
3415 expression that uses DW_OP_piece.
3416 (struct dwarf_expr_piece): New struct type.
3417 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
3418 pieces.
3419 (free_dwarf_expr_context): Free pieces, if any.
3420 (add_piece): New function.
3421 (execute_stack_op): Implement DW_OP_piece.
3422 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
3423 expression is a list of pieces, print an error message.
3424 (dwarf2_loc_desc_needs_frame): If the expression yields
3425 pieces, and any piece is in a register, then we need a frame.
3426
3427 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
3428 the stack until we've decided what sort of result the evaluation
3429 has produced. Use separate variables, with more specific names.
3430
3431 2004-08-23 Richard Earnshaw <rearnsha@arm.com>
3432
3433 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
3434 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
3435 (arm_netbsd_init_abi_common): Register them.
3436
3437 2004-08-22 Mark Kettenis <kettenis@gnu.org>
3438
3439 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
3440
3441 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
3442 safe_frame_unwind_memory instead of target_read_memory.
3443
3444 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
3445 Reorder includes.
3446 (fetch_register, store_register): Remove prototypes.
3447 (child_resume): Reorganize code and comments such that it is
3448 grouped a bit more logically.
3449 (attach): Explicitly compare errno against 0.
3450 (detach): Likewise. Use perror_with_name instead of
3451 print_sys_errmsg.
3452 * Makefile.in (infptrace.o): Update dependencies.
3453
3454 * ia64-linux-nat.c: Update copyright year.
3455 (fetch_debug_register, store_debug_register)
3456 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
3457 PTRACE_TYPE_ARG3.
3458 * config/ia64/nm-linux.h: Update copyright year.
3459 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
3460
3461 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
3462 from CORE_ADDR to struct frame_info *. Use
3463 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
3464 (amd64_linux_sigtramp_p): Adjust for changed signature of
3465 and64_linux_sigtramp_start
3466
3467 * gdb_ptrace.h: GNU/Linux.
3468
3469 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
3470 Remove defines.
3471
3472 * infptrace.c: Include "gdb_assert.h".
3473 (PTRACE_XFER_TYPE): Remove define.
3474 (offsetof): Only define if U_REGS_OFFSET isn't defined.
3475 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
3476 Tweak comment.
3477 (fetch_inferior_registers, store_inferior_registers): Remove
3478 redundant culry braces. Tweak comment. s/regno/regnum.
3479 * Makefile.in (infptrace.o): Update dependencies.
3480
3481 * configure.in: Change test for return type of ptrace to default
3482 to `long' instead of `int'.
3483 * configure: Regenerate.
3484
3485 2004-08-21 Mark Kettenis <kettenis@gnu.org>
3486
3487 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
3488
3489 * configure.in: Check for ttrace function.
3490 * configure, config.in: Regenerate.
3491
3492 * gdb_ptrace.h: New file.
3493 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
3494 <sys/ptrace.h>.
3495 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
3496 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
3497 (attach): Don't define PT_ATTACH.
3498 (detach): Don't define PT_DETACH.
3499 * Makefile.in (gdb_ptrace_h): New variable.
3500 (infptrace.o): Update dependencies.
3501
3502 2004-08-16 Mark Kettenis <kettenis@gnu.org>
3503
3504 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
3505 instead of `int' if not already defined.
3506 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
3507 PTRACE_TYPE_ARG3.
3508 * infptrace.c (call_ptrace): Revert change that replaced
3509 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3510
3511 2004-08-15 Mark Kettenis <kettenis@gnu.org>
3512
3513 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
3514 Remove defines.
3515
3516 * linux-nat.c (kill_inferior): Add missing third and fourth
3517 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
3518
3519 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
3520 PTRACE_TYPE_RET.
3521
3522 * proc-why.c (proc_prettyfprint_why): Fix format string.
3523
3524 * solib-osf.c (osf_current_sos): Remove unsused label.
3525
3526 * configure.in: Add <ncurses/ncurses.h> to the list of possible
3527 curses headers.
3528 * configure, config.in: Regenerate.
3529 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
3530 <ncurses/ncurses.h>.
3531
3532 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
3533 * config/nm-nbsd.h: Update copyright year.
3534 (PTRACE_ARG3_TYPE): Remove define.
3535
3536 * sparc-nat.c (fetch_inferior_registers)
3537 (store_inferior_registers, sparc_xfer_wcookie):
3538 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3539
3540 * alphabsd-nat.c (fetch_inferior_registers):
3541 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3542 PTRACE_TYPE_ARG3.
3543 * amd64bsd-nat.c (fetch_inferior_registers)
3544 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3545 PTRACE_TYPE_ARG3.
3546 * armnbsd-nat.c: Update copyright year.
3547 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
3548 (store_register, store_regs, store_fp_register, store_fp_regs):
3549 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3550 * hppabsd-nat.c (fetch_inferior_registers)
3551 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3552 PTRACE_TYPE_ARG3.
3553 * i386bsd-nat.c (fetch_inferior_registers)
3554 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
3555 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3556 * m68kbsd-nat.c (fetch_inferior_registers)
3557 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3558 PTRACE_TYPE_ARG3.
3559 * m88kbsd-nat.c (fetch_inferior_registers)
3560 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3561 PTRACE_TYPE_ARG3.
3562 * mipsnbsd-nat.c: Update copyright year.
3563 (fetch_inferior_registers, store_inferior_registers):
3564 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3565 * ns32knbsd-nat.c: Update copyright year.
3566 (fetch_inferior_registers, store_inferior_registers):
3567 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3568 * ppcnbsd-nat.c (fetch_inferior_registers):
3569 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3570 PTRACE_TYPE_ARG3.
3571 * ppcobsd-nat.c (fetch_inferior_registers):
3572 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3573 PTRACE_TYPE_ARG3.
3574 * shnbsd-nat.c: Update copyright year.
3575 (fetch_inferior_registers, store_inferior_registers):
3576 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3577 * vaxbsd-nat.c (fetch_inferior_registers)
3578 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3579 PTRACE_TYPE_ARG3.
3580
3581 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
3582 PTRACE_TYPE_ARG3.
3583 * infptrace.c (call_ptrace, child_resume, attach, detach)
3584 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
3585 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3586 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
3587 PTRACE_TYPE_ARG3.
3588
3589 2004-08-14 Mark Kettenis <kettenis@gnu.org>
3590
3591 * defs.h: Remove out-of-date comment.
3592 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
3593 [!GETENV_PROVIDED] (getenv): Remove prototype.
3594
3595 * standalone.c: Remove file.
3596 * Makefile.in (standalone.o): Remove dependency.
3597
3598 * i386-linux-nat.c (dummy_sse_values): Remove function and
3599 prototype.
3600 (i386_linux_dr_get): Fix typo in comment.
3601 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
3602
3603 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
3604
3605 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
3606 from declaration.
3607 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
3608 from definition.
3609
3610 2004-08-13 Mark Kettenis <kettenis@gnu.org>
3611
3612 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
3613 parenthesis in definition.
3614 * configure: Regenerated.
3615
3616 2004-08-12 Michael Chastain <mec.gnu@mindspring.com>
3617
3618 * PROBLEMS: Mention build/1411.
3619
3620 2004-08-09 Robert Millan <robertmh@gnu.org>
3621
3622 Committed by Nathanael Nerode.
3623 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
3624 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
3625
3626 2004-08-12 Andrew Cagney <cagney@gnu.org>
3627
3628 * NEWS: Mention fixes in GDB 6.2.1.
3629 * PROBLEMS: Remove mention of mips-irix.
3630
3631 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3632
3633 * config/powerpc/xm-aix.h: Delete.
3634 * config/powerpc/aix.mh (MH_FILE): Remove.
3635 * config/powerpc/aix432.mh (MH_FILE): Remove.
3636
3637 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3638
3639 * config/powerpc/aix.mh: Remove obsolete comment.
3640 * config/powerpc/aix432.mh: Likewise.
3641
3642 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3643
3644 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
3645
3646 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3647
3648 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
3649 this file is now empty.
3650 * config/xm-aix4.h: Remove, this file is no longer included
3651 anywhere.
3652
3653 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3654
3655 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
3656 that file is now empty.
3657 (termdef): Remove prototype, function no longer used.
3658
3659 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3660
3661 * doc/gdbint.texinfo (Host Definition): Remove documentation
3662 for USE_O_NOCTTY, no longer used.
3663 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
3664 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
3665
3666 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3667
3668 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
3669 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
3670 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
3671
3672 2004-08-11 Mark Kettenis <kettenis@gnu.org>
3673
3674 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
3675 instead of FIVE_ARG_PTRACE.
3676
3677 * inflow.c (O_NOCTTY): Define to zero if not already defined.
3678 (new_tty): Use O_NOCTTY unconditionally.
3679
3680 2004-08-10 Mark Kettenis <kettenis@gnu.org>
3681
3682 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
3683 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
3684 fflush on stdout.
3685
3686 2004-08-10 Joel Brobecker <brobecker@gnat.com>
3687
3688 * xcoff_symfile_finish: Replace last call to xmfree by call
3689 to xfree.
3690
3691 2004-08-10 Andrew Cagney <cagney@gnu.org>
3692
3693 * main.c (captured_main): Delete call to init_malloc.
3694 * defs.h (init_malloc): Delete declaration.
3695 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
3696 (init_malloc): Delete functions.
3697
3698 * defs.h (xmfree): Delete.
3699 * utils.c (xmfree): Delete function.
3700 (xfree): Inline calls to xmfree and mfree.
3701 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
3702 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
3703 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
3704 * somread.c (som_symfile_finish): Ditto.
3705 * objfiles.c (allocate_objfile, free_objfile):
3706 * nlmread.c (nlm_symfile_finish): Ditto.
3707 * hpread.c (hpread_symfile_finish): Ditto.
3708 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
3709 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
3710 * coffread.c (coff_symfile_finish): Ditto.
3711
3712 * defs.h (xmcalloc): Delete declaration.
3713 * utils.c (xmcalloc): Delete.
3714 (xcalloc): Inline calls to xmcalloc and mcalloc.
3715 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
3716 xcalloc and xfree.
3717 * symtab.c (create_demangled_names_hash): Ditto.
3718
3719 * defs.h (xmrealloc): Delete.
3720 * utils.c (xmrealloc): Delete.
3721 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
3722 * symmisc.c (extend_psymbol_list): Use xrealloc.
3723 * source.c (find_source_lines): Ditto.
3724 * hpread.c (hpread_lookup_type): Ditto.
3725 * dbxread.c (add_bincl_to_list): Ditto.
3726
3727 * utils.c (xmmalloc): Delete.
3728 (xmalloc): Inline xmmalloc and mmalloc calls.
3729 (msavestring): Use xmalloc.
3730 * defs.h (xmmalloc): Delete declaration.
3731 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
3732 xmmalloc.
3733 * symmisc.c (extend_psymbol_list): Ditto.
3734 * symfile.c (init_psymbol_list): Ditto.
3735 * source.c (find_source_lines): Ditto.
3736 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
3737 * elfread.c (elf_symtab_read): Ditto.
3738 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
3739 * coffread.c (coff_symfile_init): Ditto.
3740
3741 2004-08-10 David Carlton <carlton@bactrian.org>
3742
3743 * MAINTAINERS: Remove David Carlton from c++ testsuite
3744 maintainers.
3745
3746 2004-08-10 Jerome Guitton <guitton@gnat.com>
3747
3748 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
3749 print a line feed before the prompt.
3750
3751 2004-08-10 Mark Kettenis <kettenis@gnu.org>
3752
3753 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
3754
3755 2004-08-09 Joel Brobecker <brobecker@gnat.com>
3756
3757 General cleanup of the AIX xm include file:
3758 * config/xm-aix4.h (fd_set): Remove undefine.
3759 Remove include of <sys/select.h>.
3760 (HAVE_TERMIO): Remove define.
3761 (USG): Likewise.
3762 (NULL): Remove redefine.
3763 (alloca): Remove #pragma.
3764 (vfork): Remove define.
3765 (termdef): Remove.
3766 (SIGWINCH_HANDLER): Remove.
3767 (SIGWINCH_HANDLER_BODY): Remove.
3768
3769 2004-08-09 Mark Kettenis <kettenis@gnu.org>
3770
3771 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
3772 GDB_OSABI_OPENBSD_ELF.
3773
3774 2004-08-07 Robert Millan <robertmh@gnu.org>
3775
3776 * bsd-kvm.c: Check for nlist.h before including it.
3777
3778 2004-08-09 Mark Kettenis <kettenis@gnu.org>
3779
3780 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
3781 sigcontext' offset consistency checks for ancient BSD.
3782
3783 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
3784
3785 * configure.in: Check for <sys/types.h>. Check return and
3786 argument types of ptrace.
3787 * configure, config.in: Regenerate.
3788
3789 2004-08-09 Jim Blandy <jimb@redhat.com>
3790
3791 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
3792 rs6000_register_sim_regno): Doc fixes.
3793
3794 2004-08-08 Joel Brobecker <brobecker@gnat.com>
3795
3796 * mips-tdep.c: Include "floatformat.h".
3797 (n32n64_floatformat_always_valid): New function.
3798 (floatformat_n32n64_long_double_big): New constant.
3799 (mips_gdbarch_init): Set size and format of long double
3800 for N32 and N64 ABIs.
3801 * Makefile.in (mips-tdep.o): Update dependencies.
3802
3803 2004-08-08 Andrew Cagney <cagney@gnu.org>
3804
3805 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
3806 print. Improve script's error messages.
3807 * gdbarch.h: Re-generate.
3808
3809 * gdbarch.sh (pformat): New function.
3810 (float_format, double_format, long_double_format): List with bit
3811 members. Use pformat when printing.
3812 * gdbarch.c, gdbarch.h: Re-generate.
3813
3814 2004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
3815
3816 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
3817 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
3818 (ppcnbsd_supply_pcb): New function.
3819 (_initialize_ppcnbsd_nat): New prototype and function.
3820 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
3821 (LOADLIBES): New variable.
3822 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
3823
3824 2004-08-08 Andrew Cagney <cagney@gnu.org>
3825
3826 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
3827 (builtin_type_ieee_double, builtin_type_ia64_quad)
3828 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
3829 BE/LE floating-point types.
3830 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
3831 (builtin_type_ieee_double, builtin_type_ia64_quad)
3832 (builtin_type_ia64_spill): Declare.
3833 * doublest.c (_initialize_doublest, floatformat_ieee_single)
3834 (floatformat_ieee_double, floatformat_arm_ext)
3835 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
3836 of LE/BE floatformats.
3837 * doublest.h: (struct floatformat, floatformat_ieee_single)
3838 (floatformat_ieee_double, floatformat_arm_ext)
3839 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
3840
3841 2004-08-08 Mark Kettenis <kettenis@gnu.org>
3842
3843 * i386gnu-nat.c (gnu_store_registers): Fix typo.
3844
3845 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
3846 instead of regcache_raw_supply when storing the registers.
3847
3848 * i386gnu-nat.c: Update copyright year.
3849 (gnu_store_registers): Don't use deprecated_registers and
3850 deprecated_registers_valid. Use regcache_valid_p and
3851 regcache_raw_supply instead.
3852
3853 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
3854 frame_pc_unwind.
3855
3856 * procfs.c (procfs_pid_to_str): Remove redundant and unused
3857 variables. Incapitalized "process".
3858
3859 * configure.in: Add cursesX to the list of possible curses libs.
3860 Add cursesX.h to the list of possible curses headers.
3861 * configure, config.in: Regenerate.
3862
3863 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
3864
3865 * configure.in: Test for struct lwp in <sys/lwp.h>.
3866 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
3867 the offset of l_addr in struct lwp.
3868
3869 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
3870
3871 * bsd-kvm.c: Include "gdbcore.h"
3872 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
3873
3874 2004-08-07 Andrew Cagney <cagney@gnu.org>
3875
3876 * gdbtypes.c (build_flt, build_complex): New functions.
3877 (gdbtypes_post_init): Use.
3878
3879 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
3880
3881 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
3882 through to builtin_type_uint128.
3883
3884 * c-exp.y: Use builtin_type function to obtain builtin types.
3885
3886 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
3887 builtin_uint128.
3888 * gdbtypes.c (gdbtypes_post_init): Update.
3889 (build_gdbtypes): Move initialization of builtin_type_int0
3890 through to builtin_type_uint128 from here ...
3891 (_initialize_gdbtypes): ... to here.
3892 * d10v-tdep.c (d10v_register_type): Update.
3893
3894 * doublest.c: Update copyright.
3895 (floatformat_from_length): Call error when floatformat is NULL.
3896 (extract_floating_by_length): Remove NULL fmt check.
3897 (store_floating_by_length): Ditto.
3898
3899 2004-08-07 Andrew Cagney <cagney@gnu.org>
3900
3901 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
3902 that the register is valid.
3903
3904 2004-08-05 Mark Kettenis <kettenis@chello.nl>
3905
3906 * i386-linux-tdep.c (i386_linux_sigtramp_start)
3907 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
3908 struct frame_info *. Use safe_frame_unwind_memory instead of
3909 deprecated_read_memory_nobpt.
3910 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
3911 changed signature of i386_linux_sigtramp_start and
3912 i386_linux_rt_sigtramp_start.
3913
3914 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
3915 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
3916 instead of deprecated_read_memory_nobpt.
3917 (i386nbsd_sigtramp_p): Adjust for changed signature of
3918 i386nbsd_sigtramp_offset.
3919
3920 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
3921 safe_frame_unwind_memory instead of target_read_memory.
3922
3923 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
3924 !NO_SYS_FILE.
3925 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
3926 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
3927 (_initialize_kernel_u_addr): Remove prototype and function.
3928 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
3929 !NO_SYS_FILE.
3930 * xcoffread.c: Likewise.
3931
3932 2004-08-06 Mark Kettenis <kettenis@gnu.org>
3933
3934 * vax-nat.c: New file.
3935 * vaxbsd-nat.c: Tweak comment.
3936 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
3937 vaxnbsd-tdep.c.
3938 (vax-nat.o): New dependency.
3939 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
3940 (vax-*-ultrix2*): Remove.
3941 * config/vax/vax.mh: New file.
3942 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
3943 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
3944 (vax_register_u_addr): New prototype.
3945 (REGISTER_U_ADDR): Define using vax_register_u_addr.
3946 * config/vax/vaxult2.mh: Remove file.
3947 * config/vax/vaxult.mh: Remove file.
3948 * config/vax/vaxbsd.mh: Remove file.
3949 * config/vax/vax.mt (TM_FILE): Remove.
3950 * config/vax/tm-vaxbsd.h: Remove file.
3951
3952 2004-08-06 Joel Brobecker <brobecker@gnat.com>
3953
3954 * aix-thread.c (get_signaled_thread): New function.
3955 (iter_trap): Delete, no longer used.
3956 (iter_tid): New function.
3957 (pd_update): Find the thread that received the SIGTRAP signal
3958 by first locating the kernel thread, and then finding its
3959 associated thread.
3960
3961 2004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
3962
3963 * lin-lwp.c (child_wait): Continue inferior after processing
3964 PTRACE_EVENT_CLONE event.
3965
3966 2004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
3967
3968 * MAINTAINERS: Add self to Write-After-Approval.
3969
3970 2004-08-05 Jeff Johnston <jjohnstn@redhat.com>
3971
3972 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
3973 libunwind-xxxx.so" where xxxx is UNW_TARGET.
3974
3975 2004-08-05 Andrew Cagney <cagney@gnu.org>
3976
3977 * config/xm-sysv4.h: Delete file.
3978 * config/mips/xm-irix5.h: Delete file.
3979 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
3980 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
3981 * config/ia64/xm-aix.h: Delete file.
3982 * config/ia64/aix.mh (XM_FILE): Delete.
3983 * config/pa/xm-hppah.h: Delete file.
3984 * config/pa/hpux11w.mh (XM_FILE): Delete.
3985 * config/pa/hpux11.mh (XM_FILE): Delete.
3986 * config/pa/hpux1020.mh (XM_FILE): Delete.
3987 * config/pa/hppahpux.mh (XM_FILE): Delete.
3988
3989 * config/alpha/xm-alphalinux.h: Delete file.
3990 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
3991 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
3992 * config/alpha/xm-alphaosf.h: Delete file.
3993 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
3994 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
3995 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
3996 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
3997
3998 * config/i386/xm-i386v.h: Delete file.
3999 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
4000 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
4001 * config/i386/xm-i386sco.h: Delete file.
4002 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
4003 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
4004 * config/i386/xm-i386v4.h: Delete file.
4005 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
4006 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
4007 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
4008 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
4009
4010 * config/vax/xm-vax.h: Delete file.
4011 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
4012 * config/vax/xm-vaxult2.h: Delete file.
4013 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
4014 * config/vax/vaxult2.mh (XM_FILE): Delete.
4015 * config/vax/xm-vaxult.h: Delete file.
4016 * config/vax/vaxult.mh (XM_FILE): Delete.
4017 * config/vax/xm-vaxbsd.h: Delete file.
4018 * config/vax/vaxbsd.mh (XM_FILE): Delete.
4019
4020 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
4021 * gdbarch.h, gdbarch.c: Re-generate.
4022 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
4023 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
4024 * frame.h: Delete deprecated_read_fp from comments.
4025 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
4026 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
4027
4028 2004-08-04 Mark Kettenis <kettenis@gnu.org>
4029
4030 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
4031 trampoline in OpenBSD 3.5-current.
4032
4033 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
4034 SSE registers.
4035
4036 * Makefile.in: Remove embedded page breaks.
4037
4038 2004-08-04 Jim Blandy <jimb@redhat.com>
4039
4040 * regcache.c (regcache_raw_read): Assert that, after calling
4041 target_fetch_registers, the register we're reading is cached.
4042
4043 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
4044 a call to 'internal_error', with a more helpful error message.
4045 * rs6000-tdep.c (e500_pseudo_register_read,
4046 e500_pseudo_register_write, rs6000_store_return_value): Same.
4047
4048 2004-08-04 Andrew Cagney <cagney@gnu.org>
4049
4050 * Makefile.in: Update dependencies.
4051
4052 2004-08-04 Jim Blandy <jimb@redhat.com>
4053
4054 Change the layout of the PowerPC E500 raw register cache to allow
4055 the lower 32-bit halves of the GPRS to be their own raw registers,
4056 not pseudoregisters.
4057 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
4058 add ppc_ev0_upper_regnum flag.
4059 * rs6000-tdep.c: #include "reggroups.h".
4060 (spe_register_p): Recognize the ev upper half registers as SPE
4061 registers.
4062 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
4063 registers.
4064 (e500_move_ev_register): New function.
4065 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
4066 vector registers are the pseudo-registers now, formed by splicing
4067 together the gprs and the upper-half registers.
4068 (e500_register_reggroup_p): New function.
4069 (P): Macro deleted.
4070 (P8, A4): New macro.
4071 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
4072 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
4073 macros.
4074 (registers_e500): Rearrange register set so that the raw register
4075 set contains 32-bit GPRs and upper-half registers, and the SPE
4076 vector registers become pseudo-registers.
4077 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
4078 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
4079 register numbers are now the same for the E500 as they are for
4080 other PowerPC variants. Register e500_register_reggroup_p as the
4081 register group function for the E500.
4082 * Makefile.in (rs6000-tdep.o): Update dependencies.
4083
4084 Adapt PPC E500 native support to the new raw regcache layout.
4085 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
4086 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
4087 (fetch_spe_register, store_spe_register): Handle fetching/storing
4088 all the SPE registers at once, if regno == -1. These now take
4089 over the job of fetch_spe_registers and store_spe_registers.
4090 (fetch_spe_registers, store_spe_registers): Deleted.
4091 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
4092 unconditionally; they're always raw. Fetch/store SPE upper half
4093 registers, if present, instead of ev registers.
4094 (fetch_register, store_register): Remove sanity checks: gprs are
4095 never pseudo-registers now, so we never need to even mention any
4096 registers that are ever pseudoregisters.
4097
4098 Use a fixed register numbering when communicating with the PowerPC
4099 simulator.
4100 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
4101 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
4102 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
4103 New functions.
4104 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
4105 init_sim_regno_table.
4106 * Makefile.in (gdb_sim_ppc_h): New variable.
4107 (rs6000-tdep.o): Update dependencies.
4108
4109 2004-08-02 Andrew Cagney <cagney@gnu.org>
4110
4111 * cris-tdep.c (cris_register_size): Restore function, still used
4112 locally.
4113
4114 * gdbarch.sh (deprecated_target_read_fp)
4115 (deprecated_frame_locals_address, deprecated_frame_args_address)
4116 (deprecated_frame_chain_valid, deprecated_frame_chain)
4117 (deprecated_init_extra_frame_info, deprecated_pop_frame)
4118 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
4119 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
4120 * gdbarch.h, gdbarch.c: Re-generate.
4121 * regcache.c (deprecated_read_fp): Do not call
4122 DEPRECATED_TARGET_READ_FP_P.
4123 * infcmd.c (default_print_registers_info): Do not call
4124 DEPRECATED_DO_REGISTERS_INFO.
4125 * frame-base.c (default_frame_locals_address): Do not call
4126 DEPRECATED_FRAME_LOCALS_ADDRESS.
4127 (default_frame_args_address): Do not call
4128 DEPRECATED_FRAME_ARGS_ADDRESS.
4129
4130 * gdbarch.sh (deprecated_register_raw_size)
4131 (deprecated_register_virtual_size:int): Delete.
4132 * gdbarch.h, gdbarch.c: Re-generate.
4133 * cris-tdep.c (cris_register_size): Delete.
4134 (cris_gdbarch_init): Update.
4135 * alpha-tdep.c (alpha_register_raw_size)
4136 (alpha_register_virtual_size): Delete.
4137 (alpha_gdbarch_init): Update.
4138
4139 * gdbarch.sh (deprecated_register_virtual_type)
4140 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
4141 (deprecated_dummy_write_sp): Delete.
4142 * gdbarch.h, gdbarch.c: Re-generate.
4143
4144 * gdbarch.sh (deprecated_register_bytes): Delete.
4145 * gdbarch.h, gdbarch.c: Re-generate.
4146 * regcache.c (deprecated_register_bytes): New function.
4147 * regcache.h (deprecated_register_bytes): Declare.
4148 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4149 * v850-tdep.c (v850_gdbarch_init): Update.
4150 * sh64-tdep.c (sh64_gdbarch_init): Update.
4151 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
4152 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4153 * mcore-tdep.c (mcore_gdbarch_init): Update.
4154 * cris-tdep.c (cris_gdbarch_init): Update.
4155 * arm-tdep.c (arm_gdbarch_init): Update.
4156 * remote.c (init_remote_state): Update.
4157 * remote-vx.c (vx_prepare_to_store): Update.
4158 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
4159 * irix5-nat.c (fetch_core_registers): Update.
4160 * cris-tdep.c (cris_register_bytes_ok): Update.
4161 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
4162
4163 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
4164 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
4165 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
4166 (mips_insn16_frame_base_address, mips_insn16_frame_base)
4167 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
4168 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
4169 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
4170 (mips_insn32_frame_base_address, mips_insn32_frame_base)
4171 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
4172 with mips_insn16 and mips_insn32.
4173
4174 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
4175 * rs6000-tdep.c (rs6000_push_dummy_call)
4176 (rs6000_extract_return_value): Use register_size.
4177 * xstormy16-tdep.c (xstormy16_get_saved_register)
4178 (xstormy16_extract_return_value): Ditto.
4179 * valops.c (value_assign): Ditto.
4180 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
4181 * v850-tdep.c (v850_extract_return_value): Ditto.
4182 * tracepoint.c (collect_symbol): Ditto.
4183 * target.c (debug_print_register): Ditto.
4184 * stack.c (frame_info): Ditto.
4185 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
4186 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
4187 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
4188 (store_register_using_P): Ditto.
4189 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
4190 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
4191 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
4192 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
4193 * regcache.c (deprecated_read_register_bytes)
4194 (deprecated_write_register_bytes, read_register)
4195 (write_register): Ditto.
4196 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
4197 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
4198 * monitor.c (monitor_supply_register, monitor_fetch_register)
4199 (monitor_store_register): Ditto.
4200 * mn10300-tdep.c (mn10300_pop_frame_regular)
4201 (mn10300_print_register): Ditto.
4202 * mipsv4-nat.c (fill_fpregset): Ditto.
4203 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
4204 (mips64_fill_fpregset): Ditto.
4205 * mi/mi-main.c (register_changed_p, get_register)
4206 (mi_cmd_data_write_register_values): Ditto.
4207 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
4208 * irix5-nat.c (fill_gregset, fetch_core_registers):
4209 * infrun.c (write_inferior_status_register): Ditto.
4210 * infptrace.c (fetch_register, store_register): Ditto.
4211 * infcmd.c (default_print_registers_info): Ditto.
4212 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
4213 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
4214 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
4215 * hpux-thread.c (hpux_thread_fetch_registers)
4216 (hpux_thread_store_registers): Ditto.
4217 * hppah-nat.c (store_inferior_registers, fetch_register):
4218 * findvar.c (value_from_register): Ditto.
4219 * dve3900-rom.c (fetch_bitmapped_register):
4220 * cris-tdep.c (cris_gdbarch_init): Ditto.
4221 * alpha-tdep.h: Ditto.
4222 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
4223
4224 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
4225 DEPRECATED_REGISTER_RAW_SIZE from comments.
4226 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
4227 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
4228 DEPRECATED_REGISTER_RAW_SIZE.
4229 * findvar.c (value_of_register): Simplify by assuming that the
4230 registers raw and virtual sizes are identical.
4231 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
4232 comment.
4233 * arch-utils.c (generic_register_size): Simplify by assuming
4234 register_type.
4235
4236 * regcache.c (legacy_read_register_gen, real_register)
4237 (legacy_write_register_gen): Delete, not used.
4238
4239 * regcache.c (struct regcache_descr): Delete legacy_p.
4240 (init_legacy_regcache_descr): Delete function.
4241 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
4242 Do not use deprecated register functions.
4243 (regcache_raw_read, deprecated_write_register_gen):
4244 (deprecated_read_register_gen, regcache_raw_write): Delete code
4245 predicated on legacy_p.
4246 (register_size): Delete check against register raw size.
4247
4248 * cris-tdep.c (cris_register_type): Replace
4249 cris_register_virtual_type.
4250 (cris_gdbarch_init): Update, set register_type.
4251
4252 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
4253 * gdbarch.h, gdbarch.c: Re-generate.
4254 * arm-tdep.c (arm_frameless_function_invocation): Delete.
4255 (arm_gdbarch_init) Do not set frameless function invocation.
4256 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
4257 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
4258 * frv-tdep.c (frv_frameless_function_invocation): Delete.
4259 (frv_gdbarch_init): Do not set frameless function invocation.
4260 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
4261 * sh-tdep.c (sh_gdbarch_init): Ditto.
4262 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
4263 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4264 * avr-tdep.c (avr_gdbarch_init): Ditto.
4265
4266 * blockframe.c (legacy_frame_chain_valid): Delete function.
4267
4268 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
4269 and pc. Update comments.
4270 (pc_in_dummy_frame): Delete function.
4271 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
4272 use the "id".
4273 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
4274 call_hi, top and pc, use the id.
4275 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
4276
4277 * dummy-frame.c: Include "gdb_string.h".
4278 (generic_save_call_dummy_addr, generic_push_dummy_frame)
4279 (generic_save_dummy_frame_tos): Delete.
4280 (dummy_frame_push): New function, replaces above.
4281 * dummy-frame.h: Update copyright.
4282 (dummy_frame_push): Declare.
4283 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
4284 (generic_save_call_dummy_addr): Delete declarations.
4285 * infcall.c: Include "dummy-frame.h".
4286 (call_function_by_hand): Add locals caller_regcache,
4287 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
4288 with call to frame_save_as_regcache plus cleanup. Delete calls to
4289 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
4290 Move clear_proceed_status to just before the resume, add call to
4291 dummy_frame_push (discard cleanup).
4292 * Makefile.in (infcall.o): Add $(dummy_frame_h).
4293 (dummy-frame.o): Add $(gdb_string_h).
4294
4295 2004-08-01 Andrew Cagney <cagney@gnu.org>
4296
4297 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
4298 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
4299 * dummy-frame.c (find_dummy_frame): Delete.
4300 (struct dummy_frame_cache, dummy_frame_sniffer)
4301 (dummy_frame_prev_register, dummy_frame_this_id)
4302 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
4303 frame unwinder using a dummy_frame_cache.
4304
4305 2004-08-01 Andrew Cagney <cagney@gnu.org>
4306
4307 * frame.h (frame_save_as_regcache): Declare.
4308 * frame.c (frame_save_as_regcache): New function.
4309 (do_frame_read_register): Replace do_frame_unwind_register.
4310 (frame_pop): Use frame_save_as_regcache.
4311 * dummy-frame.c (generic_push_dummy_frame): Use
4312 frame_save_as_regcache.
4313
4314 2004-08-01 Joel Brobecker <brobecker@gnat.com>
4315
4316 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
4317 file as included until we record the first line in the linetable.
4318
4319 2004-08-01 Andrew Cagney <cagney@gnu.org>
4320
4321 * frame.h (deprecated_pop_dummy_frame)
4322 (deprecated_read_register_dummy)
4323 (deprecated_generic_find_dummy_frame): Delete.
4324 * dummy-frame.c (deprecated_generic_find_dummy_frame)
4325 (deprecated_read_register_dummy)
4326 (deprecated_find_dummy_frame_regcache)
4327 (discard_innermost_dummy)
4328 (deprecated_pop_dummy_frame): Delete.
4329 (dummy_frame_this_id): Simplify.
4330 (struct dummy_frame): Delete "fp" and "sp".
4331 (find_dummy_frame): Simplify.
4332 (generic_push_dummy_frame): Do not set "fp" or "sp".
4333 (fprint_dummy_frames): Do not print "fp" and "sp"
4334
4335 2004-08-01 Mark Kettenis <kettenis@gnu.org>
4336
4337 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
4338 (struct i386_insn): New structure.
4339 (i386_match_insn): New function.
4340 (i386_frame_setup_skip_insns): New variable.
4341 (i386_analyze_frame_setup): Change to use i386_match_insn and the
4342 array i386_frame_setup_insns of instructions that should be
4343 skipped inside the frame setup sequence.
4344
4345 2004-08-01 Andrew Cagney <cagney@gnu.org>
4346
4347 * frame.h (deprecated_frame_xmalloc_with_cleanup)
4348 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
4349 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
4350 * stack.c (frame_info): Delete references to
4351 DEPRECATED_FRAME_INIT_SAVED_REGS and
4352 deprecated_get_frame_saved_regs.
4353 * frame.c (struct frame_info): Delete saved_regs and extra_info.
4354 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
4355 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
4356 (frame_unwind_register_signed)
4357 (frame_unwind_register_unsigned)
4358 (frame_unwind_unsigned_register): Use register_size.
4359 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
4360 (deprecated_frame_xmalloc_with_cleanup)
4361 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
4362 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
4363
4364 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
4365 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
4366 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
4367 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
4368
4369 * infcall.c (call_function_by_hand): Do not use
4370 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
4371 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
4372 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
4373 DEPRECATED_STACK_ALIGN.
4374
4375 2004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
4376
4377 Committed by Andrew Cagney.
4378 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
4379
4380 2004-08-01 Andrew Cagney <cagney@gnu.org>
4381
4382 * mips-tdep.c (mips16_frame_cache)
4383 (mips16_frame_this_id, mips16_frame_prev_register)
4384 (mips16_frame_unwind, mips16_frame_sniffer)
4385 (mips16_frame_base_address, mips16_frame_base)
4386 (mips16_frame_base_sniffer, mips32_frame_cache)
4387 (mips32_frame_this_id, mips32_frame_prev_register)
4388 (mips32_frame_unwind, mips32_frame_sniffer)
4389 (mips32_frame_base_address, mips32_frame_base)
4390 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
4391 separate heuristic mips16 and mips32 unwinders.
4392 (mips_stub_frame_cache, mips_stub_frame_this_id)
4393 (mips_stub_frame_prev_register)
4394 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
4395 (mips_stub_frame_base_address, mips_stub_frame_base)
4396 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
4397 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
4398 match true mdebug frames.
4399 (non_heuristic_proc_desc): Add forward declaration.
4400
4401 2004-08-01 Andrew Cagney <cagney@gnu.org>
4402
4403 * config/mips/tm-irix6.h: Delete file.
4404 * config/mips/tm-irix5.h: Delete file.
4405 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
4406 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
4407
4408 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
4409 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
4410 * config/nm-gnu.h (NO_CORE_OPS): Delete.
4411 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
4412 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
4413 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
4414 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
4415 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
4416 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
4417 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
4418 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
4419 (TARGET_SIGNAL_RAW_VALUES): Delete.
4420 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
4421 Delete.
4422 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
4423 (TARGET_HW_WATCH_LIMIT): Delete.
4424 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
4425 * minimon.h: Delete file.
4426
4427 * trad-frame.c (trad_frame_get_this_base)
4428 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
4429 functions.
4430 * trad-frame.h (trad_frame_set_this_base)
4431 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
4432
4433 2004-07-31 Andrew Cagney <cagney@gnu.org>
4434
4435 * trad-frame.c (trad_frame_get_prev_register): Rename
4436 trad_frame_get_prev_register.
4437 * vax-tdep.c (vax_frame_prev_register): Update.
4438 * trad-frame.h: Update.
4439 * trad-frame.c (trad_frame_get_register): Update.
4440 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
4441 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
4442 Update.
4443 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
4444 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
4445 Update.
4446 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
4447 Update.
4448 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
4449 Update.
4450 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
4451 Update.
4452 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
4453 Update.
4454 * s390-tdep.c (s390_frame_prev_register)
4455 (s390_stub_frame_prev_register)
4456 (s390_sigtramp_frame_prev_register): Update.
4457 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
4458 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
4459 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
4460 * m88k-tdep.c (m88k_frame_prev_register)
4461 * m68hc11-tdep.c (m68hc11_frame_prev_register)
4462 * m32r-tdep.c (m32r_frame_prev_register): Update.
4463 * hppa-tdep.c (hppa_frame_prev_register_helper)
4464 * frv-tdep.c (frv_frame_prev_register): Update.
4465 * d10v-tdep.c (d10v_frame_prev_register): Update.
4466 * cris-tdep.c (cris_frame_prev_register): Update.
4467 * avr-tdep.c (avr_frame_prev_register): Update.
4468 * arm-tdep.c (arm_prologue_prev_register)
4469 (arm_sigtramp_prev_register): Update.
4470
4471 2004-07-31 Andrew Cagney <cagney@gnu.org>
4472
4473 * frame.h (legacy_saved_regs_unwind)
4474 (legacy_frame_chain_valid, legacy_frame_p)
4475 (enum frame_type): Delete UNKNOWN_FRAME.
4476 * dummy-frame.c (dummy_frame_this_id): Simplify.
4477 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
4478 * frame.c (struct frame_info): Delete the field "type".
4479 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
4480 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
4481 (legacy_saved_regs_unwind, legacy_frame_p)
4482 (frame_type_from_pc): Delete.
4483 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
4484 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
4485
4486 2004-07-31 Mark Kettenis <kettenis@gnu.org>
4487
4488 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
4489 indentation.
4490
4491 * mips-nat.c: Remove file.
4492 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
4493 (mips-nat.o): Remove dependency.
4494
4495 * infptrace.c: Update copyright year.
4496 (fetch_register): Pass NULL in regcache_raw_supply call instead of
4497 explicitly setting the buffer to all zeroes.
4498
4499 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
4500 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
4501
4502 2004-07-30 Andrew Cagney <cagney@gnu.org>
4503
4504 * GDB 6.2 released from gdb_6_2-branch.
4505
4506 2004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
4507
4508 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
4509
4510 * exec.c (exec_file_attach):
4511 * nto-tdep.c (nto_find_and_open_solib):
4512 * pa64solib.c (pa64_solib_sizeof_symbol_table):
4513 * solib.c (solib_open):
4514 * somsolib.c (som_solib_sizeof_symbol_table):
4515 * source.c (is_regular_file, openp, open_source_file):
4516 * symfile.c (symfile_bfd_open):
4517 * wince.c (upload_to_device): Differentiate between the search for
4518 binary and source files.
4519
4520 2004-07-30 Andrew Cagney <cagney@gnu.org>
4521
4522 * complaints.c (_initialize_complaints): Pass NULL to
4523 add_setshow_zinteger_cmd for help_doc.
4524 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
4525
4526 2004-07-30 Andrew Cagney <cagney@gnu.org>
4527
4528 Fix PR i18n/761.
4529 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
4530 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
4531 $(PACKAGE).pot and update-po.
4532 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
4533 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
4534 (update-po): New rules.
4535 (localedir): Define using autoconf.
4536 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
4537 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
4538 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
4539 * configure.in: Generate CATALOGS and LINGUAS from contents of
4540 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
4541 * configure: Re-generate.
4542 * po/gdbtext: New file
4543
4544 2004-07-30 Jerome Guitton <guitton@gnat.com>
4545
4546 * MAINTAINERS: Reorder Write After Approval list in alphabetical
4547 order.
4548
4549 2004-07-30 David Lecomber <dsl@sources.redhat.com>
4550
4551 * dwarf2read.c (read_file_scope): Set producer if attribute
4552 present.
4553 (struct dwarf2_cu): Added new member producer.
4554
4555 2004-07-30 Jerome Guitton <guitton@gnat.com>
4556
4557 * inflow.c (kill_command): release file handles in BFD.
4558 * exec.c (exec_file_attach): Ditto.
4559 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
4560
4561 2004-07-29 Andrew Cagney <cagney@gnu.org>
4562
4563 * PROBLEMS (mips-irix): Note that it is broken.
4564
4565 2004-07-29 Andrew Cagney <cagney@gnu.org>
4566
4567 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
4568 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
4569
4570 * config/xm-nbsd.h: Delete file.
4571 * config/arm/xm-nbsd.h: Delete file.
4572 * config/i386/xm-nbsd.h: Delete file.
4573 * config/ns32k/xm-nbsd.h: Delete file.
4574 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
4575 * config/i386/nbsdelf.mh (XM_FILE): Delete.
4576 * config/i386/nbsdaout.mh (XM_FILE): Delete.
4577 * config/arm/nbsdelf.mh (XM_FILE): Delete.
4578 * config/arm/nbsdaout.mh (XM_FILE): Delete.
4579
4580 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
4581 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
4582 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
4583 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
4584 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
4585 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
4586
4587 * config/powerpc/xm-linux.h: Delete empty file.
4588 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
4589 * config/powerpc/linux.mh (XM_FILE): Delete.
4590 * config/m68k/xm-linux.h: Delete empty file.
4591 * config/m68k/linux.mh (XM_FILE): Delete.
4592 * config/ia64/xm-linux.h: Delete empty file.
4593 * config/ia64/linux.mh (XM_FILE): Delete.
4594 * config/arm/xm-linux.h: Delete empty file.
4595 * config/arm/linux.mh (XM_FILE): Delete.
4596
4597 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4598 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
4599 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4600 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
4601 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4602 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
4603 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4604 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
4605
4606 * config/m68k/xm-m68k.h: Delete file.
4607 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
4608 copyright.
4609 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
4610 * config/pa/xm-linux.h: Delete empty file.
4611 * config/pa/linux.mh (XM_FILE): Delete.
4612 * config/i386/xm-i386.h: Delete empty file.
4613 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
4614 "i386/xm-i386.h".
4615 * config/i386/obsdaout.mh (XM_FILE): Delete.
4616 * config/i386/obsd64.mh (XM_FILE): Delete.
4617 * config/i386/fbsd64.mh (XM_FILE): Delete.
4618 * config/i386/nto.mh (XM_FILE): Delete.
4619 * config/i386/obsd.mh (XM_FILE): Delete.
4620 * config/i386/linux64.mh (XM_FILE): Delete.
4621 * config/i386/linux.mh (XM_FILE): Delete.
4622 * config/i386/i386sol2.mh (XM_FILE): Delete.
4623 * config/i386/i386gnu.mh (XM_FILE): Delete.
4624 * config/i386/fbsd.mh (XM_FILE): Delete.
4625 * config/i386/nbsd64.mh (XM_FILE): Delete.
4626
4627 2004-07-29 Andrew Cagney <cagney@gnu.org>
4628
4629 * config/pa/xm-linux.h: Do not include "floatformat.h".
4630 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4631 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
4632 * config/i386/xm-i386.h: Do not include "floatformat.h".
4633 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4634 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
4635 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4636 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
4637 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
4638 GDB_HOST_LONG_DOUBLE_FORMAT instead.
4639 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
4640 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
4641 * configure, config.in: Regenerate.
4642 * configure.host (gdb_host_float_format, gdb_host_double_format)
4643 (gdb_host_long_double_format): Set according to the host.
4644
4645 2004-07-29 Andrew Cagney <cagney@gnu.org>
4646
4647 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
4648
4649 2004-07-28 Andrew Cagney <cagney@gnu.org>
4650
4651 * PROBLEMS: Mention threads/1650.
4652 * NEWS: Mention the NPTL fix.
4653
4654 2004-07-28 Andrew Cagney <cagney@gnu.org>
4655
4656 * cli/cli-decode.c (add_setshow_cmd): Delete function.
4657 (add_setshow_cmd_full): Make static.
4658 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
4659 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
4660 * cli/cli-decode.c (add_setshow_filename_cmd)
4661 (add_setshow_string_cmd): New functions.
4662 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
4663 * mips-tdep.c (_initialize_mips_tdep): Update.
4664 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
4665 * cli/cli-logging.c (_initialize_cli_logging): Update.
4666 * complaints.c (_initialize_complaints): Update.
4667 * remote.c (_initialize_remote): Update.
4668
4669 2004-07-28 Andrew Cagney <cagney@gnu.org>
4670
4671 * cli/cli-decode.c (add_setshow_zinteger_cmd)
4672 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
4673 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
4674 print parameters. Make string parameters constant.
4675 * command.h: Update. Update copyright.
4676 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
4677 * observer.c (_initialize_observer): Ditto.
4678 * frame.c (_initialize_frame): Ditto.
4679 * complaints.c (_initialize_complaints): Ditto.
4680 * maint.c (_initialize_maint_cmds): Ditto.
4681 * target.c (initialize_targets): Ditto.
4682 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
4683 * infcall.c (_initialize_infcall): Ditto.
4684 * arm-tdep.c (_initialize_arm_tdep): Ditto.
4685 * m32r-rom.c (_initialize_m32r_rom): Ditto.
4686 * remote-rdi.c (_initialize_remote_rdi): Ditto.
4687 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
4688 * mips-tdep.c (_initialize_mips_tdep): Ditto.
4689
4690 2004-07-28 Andrew Cagney <cagney@gnu.org>
4691
4692 * gdbtypes.c (lookup_primitive_typename): Delete function.
4693 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
4694 * ada-lex.l: Use language_lookup_primitive_type_by_name.
4695 * gdbtypes.c (lookup_typename): Ditto.
4696 * f-exp.y (yylex): Ditto.
4697 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
4698
4699 * scm-lang.c (c_builtin_types): Delete extern declaration.
4700 (scm_language_defn): Replace
4701 string_char_type and primitive_type_vector with
4702 la_language_arch_info.
4703 * jv-lang.c (java_language_defn): Replace
4704 string_char_type and primitive_type_vector with
4705 la_language_arch_info.
4706 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
4707 c_builtin_types in comment.
4708 * c-lang.h (struct language_arch_info): Declare opaque.
4709 (c_language_arch_info): Declare.
4710 (c_builtin_types): Delete declaration.
4711 * c-lang.c (c_language_arch_info): Set string_char_type to
4712 builtin_char, not builtin_true_char. Make global.
4713 (c_builtin_types): Delete array.
4714 (asm_language_defn, minimal_language_defn): Replace
4715 string_char_type and primitive_type_vector with
4716 la_language_arch_info.
4717
4718 2004-07-28 Andrew Cagney <cagney@gnu.org>
4719
4720 * gdbtypes.h (struct builtin_type): Rename true_char to
4721 builtin_true_char.
4722 * gdbtypes.c (gdbtypes_post_init): Update.
4723 * c-lang.c (arch_info): New function.
4724 (enum c_primitive_types): New enum.
4725 (c_language_defn): Instead of string_char_type and
4726 primitive_type_vector set la_language_arch_info.
4727
4728 2004-07-28 Andrew Cagney <cagney@gnu.org>
4729
4730 * language.h (struct language_arch_info): Fix typo
4731 s/primative/primitive/.
4732 * gdbtypes.c (lookup_primitive_typename): Ditto.
4733 * language.c (language_lookup_primitive_type_by_name)
4734 (unknown_language_arch_info): Ditto.
4735
4736 2004-07-27 Andrew Cagney <cagney@gnu.org>
4737
4738 * defs.h (enum language): Add nr_languages.
4739 * language.h (struct language_arch_info): Define.
4740 (struct language_defn): Add la_language_arch_info.
4741 (language_lookup_primative_type_by_name): Declare.
4742 (language_string_char_type): Declare.
4743 * language.c (_initialize_language, language_gdbarch_post_init)
4744 (struct language_gdbarch, language_gdbarch_data): Implement
4745 per-architecture language information.
4746 (unknown_language_arch_info, language_string_char_type)
4747 (language_lookup_primative_type_by_name): New functions.
4748 (unknown_language_defn, auto_language_defn)
4749 (local_language_defn): Set la_language_arch_info to
4750 unknown_language_arch_info.
4751 (unknown_builtin_types): Delete.
4752 * gdbtypes.c (lookup_primitive_typename): Use
4753 language_lookup_primative_type_by_name.
4754 (create_string_type): Use language_string_char_type.
4755 * values.c (value_from_string): Use language_string_char_type.
4756 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
4757 * p-lang.c (pascal_language_defn): Ditto.
4758 * m2-lang.c (m2_language_defn): Ditto.
4759 * jv-lang.c (java_language_defn): Ditto.
4760 * objc-lang.c (objc_language_defn): Ditto.
4761 * f-lang.c (f_language_defn): Ditto.
4762 * c-lang.c (c_language_defn, cplus_language_defn)
4763 (asm_language_defn, minimal_language_defn): Ditto.
4764
4765 2004-07-27 Andrew Cagney <cagney@gnu.org>
4766
4767 * gdbtypes.h (struct builtin_type): Declare.
4768 (builtin_type): Declare.
4769 * d10v-tdep.c (d10v_register_type): Use builtin_type.
4770 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
4771 (gdbtypes_post_init): New function.
4772 (builtin_type): New function.
4773
4774 2004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
4775
4776 * remote-m32r-sdi.c: Fix breakpoint bug.
4777 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
4778 recv_char_data, recv_long_data): New functions to replace communication
4779 sequences.
4780
4781 2004-07-26 Michael Chastain <mec.gnu@mindspring.com>
4782
4783 Document PR threads/1650.
4784 * PROBLEMS (Threads): Document problem with many threads
4785
4786 2004-07-26 Andrew Cagney <cagney@gnu.org>
4787
4788 * gdb-mi.el: Move from here ...
4789 * mi/gdb-mi.el: ... to here.
4790
4791 2004-07-26 Andrew Cagney <cagney@gnu.org>
4792
4793 Problem reported by Ashley Pittman <ashley@quadrics.com>.
4794 * main.c (captured_main): When in batch mode always detach.
4795
4796 2004-07-26 Andrew Cagney <cagney@gnu.org>
4797
4798 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
4799 and h8300 as broken.
4800 * NEWS: END-OF-LIFE frame compatibility module.
4801 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
4802 specific comments.
4803
4804 2004-07-26 Andrew Cagney <cagney@gnu.org>
4805
4806 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
4807 * xcoffsolib.c (_initialize_xcoffsolib): Update.
4808 * wince.c (_initialize_wince): Update.
4809 * win32-nat.c (_initialize_win32_nat): Update.
4810 * varobj.c (_initialize_varobj): Update.
4811 * valops.c (_initialize_valops): Update.
4812 * utils.c (initialize_utils, initialize_utils): Update.
4813 * tui/tui-win.c (_initialize_tui_win): Update.
4814 * top.c (init_main): Update.
4815 * symfile.c (_initialize_symfile): Update.
4816 * source.c (_initialize_source): Update.
4817 * somsolib.c (_initialize_som_solib): Update.
4818 * solib.c (_initialize_solib): Update.
4819 * solib-frv.c (_initialize_frv_solib): Update.
4820 * serial.c (_initialize_serial): Update.
4821 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
4822 * remote.c (_initialize_remote, _initialize_remote): Update.
4823 * remote-vx.c (_initialize_vx): Update.
4824 * remote-utils.c (_initialize_sr_support): Update.
4825 * remote-sds.c (_initialize_remote_sds): Update.
4826 * remote-mips.c (_initialize_remote_mips): Update.
4827 * remote-e7000.c (_initialize_remote_e7000): Update.
4828 * proc-api.c (_initialize_proc_api): Update.
4829 * printcmd.c: Update.
4830 * parse.c (_initialize_parse): Update.
4831 * pa64solib.c (_initialize_pa64_solib): Update.
4832 * p-valprint.c (_initialize_pascal_valprint): Update.
4833 * monitor.c (_initialize_remote_monitors): Update.
4834 * mips-tdep.c (_initialize_mips_tdep): Update.
4835 * mcore-tdep.c (_initialize_mcore_tdep): Update.
4836 * maint.c (_initialize_maint_cmds): Update.
4837 * lin-lwp.c (_initialize_lin_lwp): Update.
4838 * language.c (_initialize_language): Update.
4839 * kod.c (_initialize_kod): Update.
4840 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
4841 * i386-tdep.c (_initialize_i386_tdep): Update.
4842 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
4843 * gdbarch.sh: Update.
4844 * gdbarch.c: Re-generate.
4845 * gdb-events.sh: Update.
4846 * gdb-events.c: Re-generate.
4847 * frame.c (_initialize_frame): Update.
4848 * exec.c: Update.
4849 * demangle.c (_initialize_demangler): Update.
4850 * dcache.c (_initialize_dcache): Update.
4851 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
4852 * cp-valprint.c (_initialize_cp_valprint): Update.
4853 * corefile.c (_initialize_core): Update.
4854 * command.h: Update.
4855 * cli/cli-decode.h: Update.
4856 * cli/cli-cmds.c (init_cli_cmds): Update.
4857 * charset.c (_initialize_charset): Update.
4858 * breakpoint.c (_initialize_breakpoint): Update.
4859 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
4860 * alpha-tdep.c (_initialize_alpha_tdep): Update.
4861 * aix-thread.c (_initialize_aix_thread): Update.
4862
4863 2004-07-24 Mark Kettenis <kettenis@gnu.org>
4864
4865 Partial fix for PR backtrace/1718.
4866 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
4867 that GCC migrates into the prolugue. Don't handle any
4868 instructions that clobber %ebx.
4869
4870 2004-07-23 Andrew Cagney <cagney@gnu.org>
4871
4872 Use regcache_raw_collect instead of regcache_collect.
4873 * regcache.h (regcache_collect): Delete declaration.
4874 * regcache.c (regcache_colect): Delete function.
4875 * win32-nat.c (do_child_store_inferior_registers): Update.
4876 * sol-thread.c (sol_thread_store_registers): Update.
4877 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
4878 * rs6000-nat.c (store_register): Update.
4879 * remote.c (store_register_using_P, remote_store_registers): Update.
4880 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
4881 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
4882 (fill_vrregset, store_spe_registers, fill_gregset)
4883 (fill_gregset): Update.
4884 * nto-procfs.c (procfs_store_registers): Update.
4885 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
4886 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
4887 * m68klinux-nat.c (store_register, fill_gregset): Update.
4888 * m68k-tdep.c (fill_gregset): Update.
4889 * infptrace.c (store_register): Update.
4890 * i386-nto-tdep.c (i386nto_regset_fill): Update.
4891 * i386-linux-nat.c (store_register, fill_gregset): Update.
4892 * hppa-linux-nat.c (fill_gregset): Update.
4893 * go32-nat.c (store_register): Update.
4894 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
4895 (store_fp_regs): Update.
4896 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
4897 (store_nwfpe_extended, store_fpregister, store_fpregs)
4898 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
4899 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
4900 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
4901 (store_regs_user_thread, store_regs_kernel_thread): Update.
4902
4903 2004-07-24 Mark Kettenis <kettenis@gnu.org>
4904
4905 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
4906 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
4907 encoding.
4908 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
4909 member of `struct comp_unit'.
4910
4911 2004-07-23 Andrew Cagney <cagney@gnu.org>
4912
4913 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
4914 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
4915
4916 2004-07-23 Martin Hunt <hunt@redhat.com>
4917 Kevin Buettner <kevinb@redhat.com>
4918
4919 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
4920 alignment was being added to the offset instead of multiplied.
4921
4922 2004-07-23 Mark Kettenis <kettenis@gnu.org>
4923
4924 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
4925 changed signal trampoline in OpenBSD 3.5-current.
4926
4927 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
4928 <machine/pcb.h> and "bsd-kvm.h".
4929 (sparc64nbsd_supply_pcb): New function.
4930 (_initialize_sparc64nbsd_nat): Renamed from
4931 _initialize_sparcnbsd_nat. Enable libkvm interface.
4932 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
4933 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
4934 (LOADLIBES): New variable.
4935
4936 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
4937
4938 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
4939
4940 2004-07-21 Andrew Cagney <cagney@gnu.org>
4941
4942 Use regcache_raw_supply instead of supply_register.
4943 * regcache.h (supply_register): Delete declaration.
4944 * regcache.c (supply_register): Delete function.
4945 * wince.c (do_child_fetch_inferior_registers): Update.
4946 * win32-nat.c (do_child_fetch_inferior_registers)
4947 (fetch_elf_core_registers): Update.
4948 * v850ice.c (v850ice_fetch_registers): Update.
4949 * thread-db.c (thread_db_store_registers): Update.
4950 * sol-thread.c (sol_thread_store_registers): Update.
4951 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
4952 * rs6000-nat.c (fetch_register): Update.
4953 * rom68k-rom.c (rom68k_supply_one_register): Update.
4954 * remote.c (remote_wait, remote_async_wait): Update.
4955 * remote-st.c (get_hex_regs): Update.
4956 * remote-sim.c (gdbsim_fetch_register): Update.
4957 * remote-sds.c (sds_fetch_registers): Update.
4958 * remote-rdp.c (remote_rdp_fetch_register): Update.
4959 * remote-rdi.c (arm_rdi_fetch_registers): Update.
4960 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
4961 * remote-m32r-sdi.c (m32r_fetch_register): Update.
4962 * remote-hms.c (init_hms_cmds): Update.
4963 * remote-est.c (init_est_cmds): Update.
4964 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
4965 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
4966 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
4967 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
4968 (fetch_register, supply_vrregset, supply_vrregset)
4969 (fetch_spe_registers): Update.
4970 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
4971 * monitor.c (monitor_supply_register): Update.
4972 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
4973 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
4974 (mipsnbsd_supply_fpreg): Update.
4975 * mips-nat.c (fetch_inferior_registers)
4976 (fetch_core_registers): Update.
4977 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
4978 (supply_fpregset, mips64_supply_gregset)
4979 (mips64_supply_fpregset): Update.
4980 * m68klinux-nat.c (fetch_register, supply_gregset)
4981 (supply_fpregset): Update.
4982 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
4983 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
4984 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
4985 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
4986 * infptrace.c (fetch_register): Update.
4987 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
4988 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
4989 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
4990 (gnu_fetch_registers, gnu_store_registers): Update.
4991 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
4992 * i386-linux-nat.c (fetch_register, supply_gregset)
4993 (dummy_sse_values): Update.
4994 * hpux-thread.c (hpux_thread_fetch_registers): Update.
4995 * hppah-nat.c (fetch_register): Update.
4996 * hppa-linux-nat.c (fetch_register, supply_gregset)
4997 (supply_fpregset): Update.
4998 * go32-nat.c (fetch_register): Update.
4999 * dve3900-rom.c (fetch_bitmapped_register)
5000 (_initialize_r3900_rom): Update.
5001 * cris-tdep.c (supply_gregset): Update.
5002 * abug-rom.c (init_abug_cmds): Update.
5003 * core-aout.c (fetch_core_registers): Update.
5004 * armnbsd-nat.c (supply_gregset, supply_fparegset)
5005 (fetch_register, fetch_fp_register): Update.
5006 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
5007 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
5008 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
5009 * alphanbsd-tdep.c (fetch_core_registers): Update.
5010 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
5011 * alpha-nat.c (fetch_osf_core_registers)
5012 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
5013 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
5014 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
5015
5016 2004-07-21 Andrew Cagney <cagney@gnu.org>
5017
5018 * PROBLEMS: Mention breakpoints/1702.
5019 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
5020 that is known to work.
5021
5022 2004-07-21 Andrew Cagney <cagney@gnu.org>
5023
5024 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
5025 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
5026 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
5027 (handle_inferior_event): Wrap call to deprecated
5028 IGNORE_HELPER_CALL in #ifdef.
5029 * config/mips/tm-nbsd.h: Update.
5030
5031 2004-07-20 Jim Blandy <jimb@redhat.com>
5032
5033 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
5034 bfd_mach_ppc has no segment registers.
5035
5036 Include PowerPC SPR numbers for special-purpose registers.
5037 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
5038 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
5039 new member in initializer.
5040 (S, S4, SN4, S64): New macros for defining special-purpose
5041 registers.
5042 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
5043 registers_403, registers_403GC, registers_505, registers_860,
5044 registers_601, registers_602, registers_603, registers_604,
5045 registers_750, registers_e500): Use them.
5046
5047 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
5048 replace references with expression used to initialize variable.
5049
5050 2004-07-20 Andrew Cagney <cagney@gnu.org>
5051
5052 * breakpoint.c (deprecated_read_memory_nobpt): Rename
5053 read_memory_nobpt.
5054 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
5055 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
5056 (s390_sigtramp_frame_sniffer): Update.
5057 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
5058 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
5059 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
5060 (mips32_fetch_instruction): Update.
5061 * mcore-tdep.c (get_insn): Update.
5062 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
5063 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
5064 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
5065 * i386-linux-tdep.c (i386_linux_sigtramp_start)
5066 (i386_linux_rt_sigtramp_start): Update.
5067 * i386-linux-nat.c (child_resume): Update.
5068 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
5069 * hppa-linux-tdep.c (insns_match_pattern): Update.
5070 * gdbcore.h: Update.
5071 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
5072 * frame.c (safe_frame_unwind_memory): Update.
5073 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
5074 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
5075 * alpha-tdep.c (alpha_read_insn): Update.
5076
5077 2004-07-20 Andrew Cagney <cagney@gnu.org>
5078
5079 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
5080 containing both bytes and mask. Add "frame_type".
5081 * tramp-frame.c (tramp_frame_start): Update.
5082 (tramp_frame_prepend_unwinder): Update.
5083 * mips-linux-tdep.c (mips_linux_o32_sigframe)
5084 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
5085 (mips_linux_n64_rt_sigframe): Update. Make "static const".
5086 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
5087
5088 2004-07-19 Eli Zaretskii <eliz@gnu.org>
5089
5090 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
5091 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
5092 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
5093 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
5094
5095 2004-07-17 Andrew Cagney <cagney@gnu.org>
5096
5097 * NEWS, PROBLEMS: Update for 6.2.
5098
5099 * README: Update to 6.2.
5100
5101 * utils.c (xvasprintf): Call xstrvprintf.
5102
5103 * parse.c: Update copyright.
5104 (null_post_parser): Eliminate ARGSUSED.
5105
5106 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
5107 * tui/tui-win.c (tui_get_cmd_list): Ditto.
5108 * symfile-mem.c (_initialize_symfile_mem): Ditto.
5109
5110 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
5111 * ppc-linux-nat.c: Use "Linux kernel".
5112 * hppa-linux-tdep.c: Use GNU/Linux.
5113 * hppa-linux-nat.c: Use GNU/Linux.
5114 * dwarfread.c: Add [sic] to use of Linux.
5115
5116 * hppa-linux-nat.c: Do not include <string.h>.
5117 (supply_fpregset): Remove "register" attribute.
5118
5119 * solib-frv.c (fetch_loadmap): Use xfree, not free.
5120
5121 2004-07-17 Mark Kettenis <kettenis@gnu.org>
5122
5123 * configure.in: Define _MSE_INT_H on Solaris 9 too.
5124 * configure, config.in: Regenerated.
5125
5126 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
5127 "bsd-kvm.h".
5128 (vaxbsd_supply_pcb): New function.
5129 (_initialize_vaxbsd_nat): New prototype and function.
5130 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
5131 solib-sunos.o.
5132 (LOADLIBES): New variable.
5133 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5134 (LOADLIBES): New variable.
5135 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
5136 (LOADLIBES): New variable.
5137 * Makefile.in (vaxbsd-nat.o): Update dependencies.
5138
5139 2004-07-16 Andrew Cagney <cagney@gnu.org>
5140
5141 * defs.h (event_loop_p): Replace variable declaration with macro,
5142 always 1.
5143 * main.c (captured_main): Delete options "-async" and "-noasync".
5144 (event_loop_p): Delete variable.
5145 * NEWS: Mention that "-async" and "-noasync" were removed.
5146
5147 2004-07-16 Andrew Cagney <cagney@gnu.org>
5148
5149 * remote-m32r-sdi.c: Re-indent.
5150
5151 2004-07-16 Jim Blandy <jimb@redhat.com>
5152
5153 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
5154 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
5155 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
5156 missing MPC823 SPRs.
5157 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
5158 incorrect. (This was corrected in GDB's register name tables on
5159 2004-07-14.)
5160
5161 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
5162 should be "esasrr" ("ESA Save and Restore Register").
5163
5164 2004-07-16 Andrew Cagney <cagney@gnu.org>
5165
5166 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
5167 calls, no longer applicable. Update comments and rename parameter
5168 "step_frame" to "return_frame".
5169
5170 2004-07-16 Andrew Cagney <cagney@gnu.org>
5171
5172 * frame.c (fprint_field): New function.
5173 (fprint_frame_id): Use fprint_field.
5174
5175 2004-07-15 Joel Brobecker <brobecker@gnat.com>
5176
5177 * ada-lang.c (ada_language_defn): Remove commented out code.
5178
5179 2004-07-15 Jim Blandy <jimb@redhat.com>
5180
5181 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
5182 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
5183
5184 2004-07-14 Jim Blandy <jimb@redhat.com>
5185
5186 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
5187
5188 * ppc-tdep.h (ppc_num_vrs): New enum constant.
5189
5190 * ppc-tdep.h (ppc_num_srs): New enum constant.
5191
5192 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
5193 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
5194 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
5195 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
5196 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
5197 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
5198 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
5199 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
5200 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
5201 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
5202 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
5203 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
5204 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
5205 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
5206 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
5207 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
5208 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
5209 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
5210 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
5211 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
5212 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
5213 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
5214 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
5215 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
5216 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
5217 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
5218 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
5219 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
5220 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
5221 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
5222 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
5223 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
5224 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
5225 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
5226 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
5227 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
5228 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
5229 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
5230 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
5231 special-purpose register numbers.
5232
5233 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
5234 manual mentions 'md_twb', but many mention 'm_twb', and at that
5235 point in the register list.)
5236
5237 2004-07-14 Andrew Cagney <cagney@gnu.org>
5238
5239 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
5240 instead of "internal-error".
5241
5242 2004-07-10 Joel Brobecker <brobecker@gnat.com>
5243
5244 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
5245 that was inserted inside a comment.
5246
5247 2004-07-10 Randolph Chung <tausq@debian.org>
5248
5249 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
5250 function.
5251 (hppa_hpux_push_dummy_code): New function.
5252 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
5253 Set find_global_pointer method.
5254
5255 2004-07-10 Mark Kettenis <kettenis@gnu.org>
5256
5257 * NEWS: Mention BSD libkvm interface.
5258
5259 2004-07-10 Michael Snyder <msnyder@redhat.com>
5260
5261 * symfile.c (generic_load): Comment typo.
5262 * stack.c (get_selected_block): Ditto.
5263 * regcache.c (regcache_cooked_read): Ditto.
5264 * monitor.c (monitor_debug): Ditto.
5265 * mips-tdep.c (mips_read_pc): Ditto.
5266 * i386-linux-nat.c (ps_get_thread_area): Ditto.
5267 * gdb_mbuild.sh: Ditto.
5268 * gdbarch.sh: Ditto.
5269 * gdbarch.h: Ditto.
5270
5271 2004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
5272
5273 * ada-tasks.c: Remove file.
5274
5275 Remove ARI problems:
5276
5277 * ada-exp.y (write_var_from_sym): Reformat to put operator at
5278 beginning of line.
5279
5280 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
5281 Add comment.
5282 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
5283 (MIN_OF_SIZE): Rename min_of_size. Add comment.
5284 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
5285 (UMIN_OF_SIZE): Remove.
5286 (max_of_type): New function to replace orphan macro in gdbtypes.h
5287 (min_of_type): Ditto.
5288 (discrete_type_high_bound): Use max_of_type.
5289 (discrete_type_low_bound): Use min_of_type.
5290 (possible_user_operator_p): Move operator to beginning of line.
5291 (ada_is_variant_part): Ditto.
5292 (ensure_lval): Rewrite to avoid deprecated operations.
5293 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
5294 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
5295 (ada_enum_name): Remove assignments in 'if' statements.
5296 (build_ada_types): Add gdbarch parameter.
5297 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
5298 with gdbarch_data_register_post_init.
5299 Use add_setshow_uinteger_cmd rather than add_set_cmd and
5300 add_show_from_set.
5301
5302 * ada-valprint.c (inspect_it): Remove declaration.
5303 (repeat_count_threshold): Remove declaration.
5304 (ada_print_floating): Remove assignments in 'if' statements.
5305 (print_str): Move operator to beginning of line.
5306
5307 2004-07-08 Jim Blandy <jimb@redhat.com>
5308
5309 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
5310
5311 2004-07-08 Bob Rossi <bob@brasko.net>
5312
5313 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
5314
5315 2004-07-06 Jeff Johnston <jjohnstn@redhat.com>
5316
5317 * language.h (struct_language_defn): Add new function pointer:
5318 la_class_name_from_physname. Also add new prototype for
5319 language_class_name_from_physname.
5320 * language.c (language_class_name_from_physname): New function.
5321 (unk_lang_class_name): Ditto.
5322 (unknown_language_defn, auto_language_defn): Change
5323 to add unk_lang_class_name function pointer for
5324 la_class_name_from_physname.
5325 (local_language_defn): Ditto.
5326 * dwarf2read.c (guess_structure_name): Change to call
5327 language_class_name_from_physname.
5328 (determine_class_name): Ditto.
5329 * cp-support.c (class_name_from_physname): Renamed.
5330 (cp_class_name_from_physname): New name of function.
5331 * cp-support.h: Ditto.
5332 * c-lang.c (c_language_defn): Change to add NULL
5333 for class_name_from_physname function pointer.
5334 (cplus_language_defn): Change to add cp_class_name_from_physname.
5335 * jv-lang.c (java_class_name_physname): New function.
5336 (java_find_last_component): New static routine.
5337 (java_language_defn): Add java_class_name_from_physname pointer.
5338 * ada-lang.c (ada_language_defn): Change to add NULL
5339 for class_name_from_physname function pointer.
5340 * f-lang.c (f_language_defn): Ditto.
5341 * m2-lang.c (m2_language_defn): Ditto.
5342 * objc-lang.c (objc_language_defn): Ditto.
5343 * p-lang.c (pascal_language_defn): Ditto.
5344 * scm-lang.c (scm_language_defn): Ditto.
5345
5346 2004-07-06 Andrew Cagney <cagney@gnu.org>
5347
5348 Patch from Bart Robinson.
5349 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
5350 (O_LARGEFILE): Define to 0, if not defined.
5351
5352 2004-07-03 Mark Kettenis <kettenis@gnu.org>
5353
5354 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
5355 <machine/pcb.h> and "bsd-kvm.h".
5356 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
5357 (m68kbsd_supply_pcb): New function.
5358 (_initialize_m68kbsd_nat): New prototype and function.
5359 * Makefile.in (m68kbsd-nat.o): Update dependencies.
5360 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5361 (LOADLIBES): New variable.
5362 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
5363 (LOADLIBES): New variable.
5364
5365 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
5366
5367 2004-07-03 Mark Kettenis <kettenis@gnu.org>
5368
5369 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
5370 <sys/proc.h>.
5371 (bsd_kvm_cmdlist): New variable.
5372 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
5373 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
5374 command and "kvm proc" command.
5375 * Makefile.in (bsd-kvm.o): Update dependencies.
5376
5377 2004-07-02 Mark Kettenis <kettenis@gnu.org>
5378
5379 * osabi.c: Update copyright year.
5380 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
5381 notes if EI_OSABI is set to ELFOSABI_HPUX.
5382
5383 2004-07-01 Michael Snyder <msnyder@redhat.com>
5384
5385 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
5386 that seems to have gotten whacked out of line.
5387
5388 2004-07-01 Mark Kettenis <kettenis@gnu.org>
5389
5390 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
5391 code.
5392
5393 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
5394
5395 * ada-lang.c (decode_packed_array): Minor change to comment.
5396 (ada_value_slice_ptr): New function.
5397 (ada_value_slice): New function.
5398 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
5399 test. Don't know why it is there.
5400 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
5401 to avoid dereferencing huge arrays from which one is slicing.
5402 (empty_array): Correct to return an array rather than
5403 a subrange value.
5404 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
5405 on empty arrays (let'em use 'FIRST instead).
5406
5407 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
5408
5409 Address complaints from gdb_ari.sh:
5410
5411 * ada-exp.y: Include gdb_string.h rather than string.h.
5412 (convert_char_literal): Reformat declaration.
5413 * ada-lang.h: Include opaque struct declaration for struct frame_info.
5414 * ada-lex.l: Change use of free to xfree (the macro would do so
5415 anyway, but this is harmless).
5416 Include gdb_string.h rather than string.h.
5417 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
5418
5419 * ada-lang.c (parse): Remove K&Rism in parameter list.
5420 (is_name_suffix): Correct Linux => GNU/Linux in comment.
5421
5422 2004-06-30 Mark Kettenis <kettenis@gnu.org>
5423
5424 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
5425 dead code.
5426
5427 2004-06-30 Mark Kettenis <kettenis@gnu.org>
5428
5429 * alphabsd-nat.c: Update copyright year.
5430 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
5431
5432 2004-06-29 Joel Brobecker <brobecker@gnat.com>
5433
5434 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
5435 (i386_cygwin_in_solib_call_trampoline): New function.
5436 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
5437 and skip_trampoline_code gdbarch methods.
5438
5439 2004-06-29 Jim Blandy <jimb@redhat.com>
5440
5441 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
5442 name actually used in the dependency lists.
5443
5444 2004-06-29 Randolph Chung <tausq@debian.org>
5445
5446 * NEWS (New native configurations): Mention GNU/Linux/hppa.
5447
5448 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
5449
5450 * win32-nat.c (child_pid_to_exec_file): New function.
5451 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
5452 functionality.
5453
5454 2004-06-28 Andrew Cagney <cagney@gnu.org>
5455
5456 * defs.h (xstrvprintf): Declare.
5457 * utils.c (xstrvprintf): New function.
5458 (internal_vproblem, xstrprintf, xasprintf)
5459 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
5460 * serial.c (serial_printf): Ditto.
5461 * complaints.c (vcomplaint): Ditto.
5462
5463 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
5464
5465 * infcmd.c (attach_command): Move call to target_terminal_inferior
5466 behind loading symbol table.
5467
5468 2004-06-28 Andrew Cagney <cagney@gnu.org>
5469
5470 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
5471 change - add back extern deprecated_ui_loop_hook declaration.
5472
5473 2004-06-28 Andrew Cagney <cagney@gnu.org>
5474
5475 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
5476 xstrprintf.
5477 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
5478 (c_value_of_variable): Ditto.
5479 * utils.c (internal_vproblem): Ditto.
5480 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
5481 * remote.c (add_packet_config_cmd): Ditto.
5482 * remote-rdp.c (rdp_set_command_line): Ditto.
5483 * regcache.c (regcache_dump): Ditto.
5484 * frv-tdep.c (new_variant, new_variant): Ditto.
5485 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
5486 (fbsd_find_memory_regions): Ditto.
5487 * breakpoint.c (create_thread_event_breakpoint)
5488 (create_breakpoints): Ditto.
5489 * aix-thread.c (aix_thread_pid_to_str): Ditto.
5490 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
5491
5492 2004-06-28 Joel Brobecker <brobecker@gnat.com>
5493
5494 * ada-lang.c: Re-indent file, with some massaging to help indent
5495 a bit when the result is otherwise really too ugly.
5496
5497 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
5498
5499 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
5500 code_addr_p and special_addr_p to 'unsigned int'.
5501
5502 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5503
5504 * i386v4-nat.c: Update copyright year and tweak comment.
5505 (regmap): Remove trailing comma.
5506 (supply_gregset): Rename local variable i to regnum. Call
5507 regcache_raw_supply instead of supply_register.
5508 (fill_gregset): Rename argument regno to regnum. Call
5509 regcache_raw_collect instead of regcache_collect.
5510
5511 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
5512
5513 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
5514 and special_addr_p.
5515 (frame_id_build, frame_id_build_special): Update comments.
5516 (frame_id_build_wild): New prototype.
5517 * frame.c (frame_id_build, frame_id_build_special): Fill in new
5518 struct frame_id fields.
5519 (frame_id_build_wild): New function.
5520 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
5521
5522 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5523
5524 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
5525 hppabsd-tdep.c.
5526
5527 2004-06-27 Joel Brobecker <brobecker@gnat.com>
5528
5529 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
5530
5531 2004-06-27 Joel Brobecker <brobecker@gnat.com>
5532
5533 * ada-lang.c: Re-indent file.
5534
5535 2004-06-27 Joel Brobecker <brobecker@gnat.com>
5536
5537 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
5538 (no_symtab_msg): Likewise.
5539
5540 2004-06-27 Andreas Schwab <schwab@suse.de>
5541
5542 * source.c: Fix whitespace.
5543
5544 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5545
5546 * configure.in: Include <sys/param.h> for td_pcb test.
5547 * configure: Regenerated.
5548
5549 * i386nbsd-nat.c: New file.
5550 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
5551 i386obsd-nat.c and i386obsd-tdep.c.
5552 (i386nbsd-nat.o): New dependency.
5553 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
5554 bsd-kvm.o.
5555 (LOADLIBES): New variable.
5556 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
5557 bsd-kvm.o.
5558 (LOADLIBES): New variable.
5559
5560 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
5561 (LOADLIBES): New variable.
5562
5563 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
5564 fetching from BSD_KVM_PADDR. Correctly lookup address for
5565 "_thread0".
5566
5567 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
5568 "bsd-kvm.h".
5569 (amd64fbsd_supply_pcb): New funcion.
5570 (_initialize_amd64fbsd_nat): Enable libkvm interface.
5571
5572 2004-06-27 <david@streamline-computing.com>
5573
5574 Partial fix for PR cli/1056.
5575 * valarith.c: Check for zero in division and remainder
5576 evaluation.
5577
5578 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5579
5580 * i387-tdep.c: Remove excessive whitespace.
5581
5582 2004-06-26 Andrew Cagney <cagney@gnu.org>
5583
5584 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
5585 * gdb-events.h, gdb-events.c: Re-generate.
5586 * tui/tui-hooks.c (tui_install_hooks): Update.
5587 (tui_remove_hooks): Update.
5588 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
5589
5590 2004-06-26 Mark Kettenis <kettenis@gnu.org>
5591
5592 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
5593 (gregset_t, fpregset_t): Remove typedefs.
5594 (REG_OFFSET): Rename argument.
5595 (amd64bsd_r_reg_offset): Rename from reg_offset.
5596 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
5597 Remove functions.
5598 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
5599 of reg_offset.
5600 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
5601
5602 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
5603
5604 * vax-tdep.c: Tweak comment.
5605
5606 Add OpenBSD/hppa support.
5607 * NEWS (New native configurations): Mention OpenBSD/hppa.
5608 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
5609 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
5610 files.
5611 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
5612 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
5613 * configure.host: Add hppa*-*-openbsd*.
5614 * configure.tgt: Add hppa*-*-openbsd*.
5615
5616 2004-06-25 Andrew Cagney <cagney@gnu.org>
5617
5618 * defs.h (deprecated_ui_loop_hook): Deprecated.
5619 * wince.c (child_wait): Update.
5620 * win32-nat.c (child_wait): Update.
5621 * v850ice.c (v850ice_wait): Update.
5622 * top.c (deprecated_ui_loop_hook): Update.
5623 * serial.h: Update.
5624 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
5625 (do_unix_readchar): Update.
5626 * ser-tcp.c (net_open): Update.
5627 * remote-sim.c (gdb_os_poll_quit): Update.
5628 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
5629
5630 2004-06-24 Andrew Cagney <cagney@gnu.org>
5631
5632 * defs.h (deprecated_pre_add_symbol_hook)
5633 (deprecated_post_add_symbol_hook): Deprecated.
5634 * symfile.c (symbol_file_add_with_addrs_or_offsets)
5635 (symbol_file_add_with_addrs_or_offsets): Update references.
5636
5637 2004-06-24 Andrew Cagney <cagney@gnu.org>
5638
5639 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
5640 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
5641 * wince.c (ui_loop_hook): Delete extern declaration.
5642 * win32-nat.c (ui_loop_hook): Delete extern declaration..
5643 * v850ice.c (ui_loop_hook): Delete extern declaration..
5644 * ser-unix.c (ui_loop_hook): Delete extern declaration..
5645 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
5646 * remote-sim.c (ui_loop_hook): Delete extern declaration..
5647 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
5648 ui_loop_hook declaration.
5649
5650 2004-06-24 Andrew Cagney <cagney@gnu.org>
5651
5652 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
5653 entry_func_highpc fields.
5654 * objfiles.c (init_entry_point_info): Do not clear
5655 entry_func_lowpc and entry_func_highpc.
5656 (objfile_relocate): Do not relocate entry_func_lowpc and
5657 entry_func_highpc.
5658 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
5659 entry_func_highpc.
5660 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
5661 entry_func_highpc.
5662 * blockframe.c (legacy_frame_chain_valid): Replace tests against
5663 entry_func_lowpc and entry_func_highpc with call to
5664 inside_entry_func.
5665
5666 2004-06-24 Mark Kettenis <kettenis@gnu.org>
5667
5668 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
5669 quad-precision floating point arguments in registers.
5670
5671 2004-06-24 Mark Kettenis <kettenis@gnu.org>
5672
5673 From Michael Mueller <m.mueller99@kay-mueller.de>:
5674 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
5675 account.
5676
5677 2004-06-22 Jeff Johnston <jjohnstn@redhat.com>
5678
5679 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
5680 to -1.
5681 * breakpoint.c (bpstat_stop_status): Move check for ignoring
5682 untriggered watchpoints to a separate if clause. Update function
5683 comment regarding STOPPED_BY_WATCHPOINT argument.
5684
5685 2004-06-22 Jim Blandy <jimb@redhat.com>
5686
5687 * gdbarch.sh: Doc fix.
5688
5689 2004-06-21 Martin Hunt <hunt@redhat.com>
5690 Kevin Buettner <kevinb@redhat.com>
5691
5692 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
5693 * mips-tdep.h (MIPS_SP_REGNUM): Define.
5694 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
5695 to set_gdbarch_sp_regnum(). Use cooked register number.
5696 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
5697
5698 2004-06-21 Andrew Cagney <cagney@gnu.org>
5699
5700 * gdbarch.sh: When the macro field is empty, do not generate a
5701 macro definition. When the macro field is "=", generate the macro
5702 name from the upper-case function name.
5703 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
5704 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
5705 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
5706 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
5707 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
5708 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
5709 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
5710 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
5711 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
5712 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
5713 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
5714 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
5715 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
5716 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
5717 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
5718 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
5719 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
5720 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
5721 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
5722 (DEPRECATED_USE_STRUCT_CONVENTION)
5723 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5724 (DEPRECATED_FRAME_INIT_SAVED_REGS)
5725 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
5726 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
5727 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
5728 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
5729 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
5730 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
5731 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
5732 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
5733 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
5734 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
5735 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
5736 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
5737 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
5738 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
5739 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
5740 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
5741
5742 2004-06-21 Andrew Cagney <cagney@gnu.org>
5743
5744 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
5745 macro name, and the function rather than macro value. Only wrap
5746 macro print statements in #ifdef. Move format logic to where it
5747 is needed.
5748 * gdbarch.c: Re-generate.
5749
5750 * gdbarch.sh (read): Delete "print_p" and "description", add
5751 "garbage_at_eol". Check for non-empty garbage at end-of-line.
5752 Delete references to print_p.
5753 (TARGET_ARCHITECTURE): Delete print predicate.
5754 * gdbarch.c: Re-generate.
5755
5756 * gdbarch.sh: Check that multi-arch methods do not provide a
5757 macro.
5758 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
5759 (print_registers_info, print_float_info, print_vector_info)
5760 (adjust_breakpoint_address, remote_translate_xfer_address)
5761 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
5762 (address_class_type_flags_to_name, unwind_sp): Remove the macro
5763 name from the multi-arch definition.
5764
5765 2004-06-20 Andrew Cagney <cagney@gnu.org>
5766
5767 * gdbarch.sh: Sort by the function, instead of macro name.
5768 * gdbarch.c: Re-generate.
5769
5770 2004-06-20 Andrew Cagney <cagney@gnu.org>
5771
5772 * gdbarch.sh: Use the function, instead of macro name in
5773 errors and the log file.
5774 (return_value): Remove stray ":" in spec.
5775
5776 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
5777 * gdbarch.h, gdbarch.c: Re-generate.
5778 * Makefile.in (arch-utils.o): Update dependencies.
5779 * values.c (using_struct_return): Move code calling
5780 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
5781 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
5782 to legacy_return_value, simplify.
5783 * infcmd.c (print_return_value): Move code calling
5784 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
5785 to legacy_return_value, simplify.
5786 * infcall.c (call_function_by_hand): Move code calling
5787 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
5788 * arch-utils.c: Update copyright. Include "gdbcore.h".
5789 (legacy_return_value): New function.
5790 * arch-utils.h: Update copyright.
5791 (legacy_return_value): Declare.
5792
5793 2004-06-20 Andrew Cagney <cagney@gnu.org>
5794
5795 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
5796 * gdbarch.h, gdbarch.c: Re-generate.
5797 * values.c (using_struct_return): Update call.
5798 * mcore-tdep.c: Update comment.
5799 * infcall.c (call_function_by_hand): Update comment.
5800 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5801 * arch-utils.h (always_use_struct_convention): Update.
5802 * v850-tdep.c (v850_gdbarch_init): Update.
5803 * sh64-tdep.c (sh64_gdbarch_init): Update.
5804 * sh-tdep.c (sh_gdbarch_init): Update.
5805 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5806 * mips-tdep.c (mips_gdbarch_init): Update.
5807 * mcore-tdep.c (mcore_gdbarch_init): Update.
5808 * m32r-tdep.c (m32r_gdbarch_init): Update.
5809 * ia64-tdep.c (ia64_gdbarch_init): Update.
5810 * h8300-tdep.c (h8300_gdbarch_init): Update.
5811 * frv-tdep.c (frv_gdbarch_init): Update.
5812 * cris-tdep.c (cris_gdbarch_init): Update.
5813 * arm-tdep.c (arm_gdbarch_init): Update.
5814 * alpha-tdep.c (alpha_gdbarch_init): Update.
5815
5816 2004-06-18 Michael Chastain <mec.gnu@mindspring.com>
5817
5818 * PROBLEMS: Add more specific information, and a work-around,
5819 for PR gdb/1458.
5820
5821 2004-06-18 Andrew Cagney <cagney@gnu.org>
5822
5823 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
5824 * gdbarch.h, gdbarch.c: Re-generate.
5825 * ada-lang.c (ada_finish_decode_line_1): Update.
5826 * infrun.c (handle_inferior_event): Update.
5827 * infcall.c (find_function_addr): Update.
5828 * linespec.c (minsym_found): Update.
5829 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
5830 Update.
5831 * blockframe.c (legacy_frameless_look_for_prologue): Update.
5832 * cli/cli-cmds.c (disassemble_command): Update.
5833 * vax-tdep.c (vax_gdbarch_init): Update.
5834
5835 2004-06-18 Mark Kettenis <kettenis@gnu.org>
5836
5837 * i386-tdep.c (i386_collect_fpregset): Fix comment.
5838
5839 2004-06-17 Andrew Cagney <cagney@gnu.org>
5840
5841 GDB 6.1.1 released from the GDB 6.1 branch.
5842 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
5843 * PROBLEMS: Ditto.
5844
5845 2004-06-16 Daniel Jacobowitz <dan@debian.org>
5846
5847 PR gdb/1658
5848 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
5849 operation as a uleb128. Found by Michael Coulter.
5850
5851 2004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
5852
5853 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
5854 make it non-static.
5855 * ada-lang.h (task_control_block): declaration moved from ada-task.c
5856 to ada-lang.h; this is needed to be able to implement the kill command
5857 in multi-task mode.
5858 (task_ptid): Ditto.
5859 (task_entry): Ditto.
5860 (task_list): Ditto.
5861 (ada_build_task_list): Ditto.
5862
5863 * ada-lang.c: Conditionalize routines and data structures related
5864 to breakpoints, exceptions, completion, and symbol caching on
5865 GNAT_GDB, since these are not yet used in the submitted public sources.
5866 (ada_main_name): Editorial: Move definition out of exception-related
5867 code.
5868
5869 2004-06-15 Andrew Cagney <cagney@gnu.org>
5870
5871 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
5872 deprecated_pc_in_call_dummy.
5873
5874 2004-06-15 Alan Modra <amodra@bigpond.net.au>
5875
5876 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
5877 bfd_get_section_size_before_reloc or _raw_size.
5878 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
5879 * dwarf2read.c (dwarf2_locate_sections): Likewise.
5880 (dwarf2_read_section): Likewise.
5881 * elfread.c (elf_locate_sections): Likewise.
5882 * gcore.c (derive_heap_segment): Likewise.
5883 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
5884 * remote-e7000.c (e7000_load): Likewise.
5885 * remote-m32r-sdi.c (m32r_load): Likewise.
5886 * remote-mips.c (mips_load_srec): Likewise.
5887 (pmon_load_fast): Likewise.
5888 * remote.c (compare_sections_command): Likewise.
5889 * symfile.c (add_section_size_callback): Likewise.
5890 (load_section_callback): Likewise.
5891 (pc_in_unmapped_range): Likewise.
5892 (pc_in_mapped_range): Likewise.
5893 (sections_overlap): Likewise.
5894 (list_overlays_command): Likewise.
5895 (simple_overlay_update_1): Likewise.
5896 (simple_overlay_update): Likewise.
5897 * tracepoint.c (remote_set_transparent_ranges): Likewise.
5898 * win32-nat.c (core_section_load_dll_symbols): Likewise.
5899
5900 2004-06-14 Randolph Chung <tausq@debian.org>
5901
5902 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
5903 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
5904 static.
5905 (hppa_hpux_inferior_created): New function.
5906 (hppa_hpux_init_abi): Register observer.
5907 * symfile.c (hp_cxx_exception_support_initialized)
5908 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
5909 (symbol_file_add_main_1, symbol_file_clear): Likewise.
5910
5911 2004-06-14 Randolph Chung <tausq@debian.org>
5912
5913 * MAINTAINERS (Write After Approval): Alphabetize my entry
5914 correctly.
5915
5916 2004-06-14 Andrew Cagney <cagney@gnu.org>
5917
5918 * MAINTAINERS (testsuite): List Michael Chastain as the lead
5919 testsuite maintainer.
5920
5921 2004-06-13 Andrew Cagney <cagney@gnu.org>
5922
5923 * infcmd.c (print_return_value): Fix logic, allow
5924 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
5925
5926 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
5927 defining any macros.
5928 * gdbarch.h: Re-generate.
5929
5930 * gdbarch.sh: Delete "level" attribute. Only check for a macro
5931 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
5932 * gdbarch.h: Re-generate.
5933
5934 * values.c (generic_use_struct_convention): Don't check gcc_p.
5935
5936 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
5937 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
5938 * gdbarch.h, gdbarch.c: Regenerate.
5939 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
5940 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
5941 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5942 deprecated_max_register_raw_size and
5943 deprecated_max_register_virtual_size.
5944 * v850-tdep.c (v850_gdbarch_init): Ditto.
5945 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
5946 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5947 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5948 * cris-tdep.c (cris_gdbarch_init): Ditto.
5949
5950 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
5951 * gdbarch.h, gdbarch.c: Re-generate.
5952 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
5953 (m68hc11_use_struct_convention): Delete function.
5954 (m68hc11_extract_struct_value_address): Delete function.
5955 (m68hc11_return_value): New function.
5956 (m68hc11_gdbarch_init): Instead of store_return_value,
5957 extract_return_value, return_value_on_stack,
5958 deprecated_extract_struct_value_address and use_struct_convention,
5959 set return_value.
5960 * values.c (using_struct_return): Do not call
5961 RETURN_VALUE_ON_STACK.
5962 * arch-utils.h (generic_return_value_on_stack_not): Delete
5963 declaration.
5964 * arch-utils.c (generic_return_value_on_stack_not): Delete
5965 function.
5966
5967 2004-06-12 Andrew Cagney <cagney@gnu.org>
5968
5969 * values.c (register_value_being_returned): Delete function.
5970 * infcmd.c (legacy_return_value): Delete function.
5971 * infcall.c (call_function_by_hand): Inline
5972 "register_value_being_returned", simplify.
5973 * values.c (using_struct_return): Update comment, refer to
5974 print_return_value instead of register_value_being_returned.
5975 * infcmd.c (print_return_value): Inline calls to
5976 register_value_being_returned and legacy_return_value. Simplify.
5977
5978 2004-06-11 Randolph Chung <tausq@debian.org>
5979
5980 * somread.c (som_symtab_read): Exclude gcc local symbols.
5981
5982 2004-06-11 Randolph Chung <tausq@debian.org>
5983
5984 * infrun.c (handle_inferior_event): Handle the case when a
5985 trampoline ends up in the runtime resolver, and if the trampoline
5986 has no name. Rearrange the code so that all the trampoline
5987 processing happens before other step-out-of-range handling.
5988
5989 2004-06-11 Martin Hunt <hunt@redhat.com>
5990
5991 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
5992 has no fpu.
5993
5994 2004-06-10 Andrew Cagney <cagney@gnu.org>
5995
5996 * blockframe.c (legacy_inside_entry_func): Delete.
5997 (legacy_frame_chain_valid): Inline call to
5998 legacy_inside_entry_func, simplify.
5999
6000 2004-06-10 Bob Rossi <bob@brasko.net>
6001
6002 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
6003 * dwarf2read.c (partial_die_info): Add dirname field.
6004 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
6005 (read_partial_die): Save away DW_AT_comp_dir.
6006 * defs.h (symtab_to_filename): Removed.
6007 * source.c (find_and_open_source): Added.
6008 (open_source_file): Just calls find_and_open_source.
6009 (symtab_to_filename): Removed.
6010 (symtab_to_fullname, psymtab_to_fullname): Added.
6011 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
6012 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
6013 symtab_to_filename.
6014 * symtab.h (partial_symtab): Add dirname field.
6015 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
6016 (mi_cmd_file_list_exec_source_file): Call new function
6017 symtab_to_fullname to find fullname.
6018 (mi_cmd_file_list_exec_source_files): Added.
6019 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
6020 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
6021
6022 2004-06-10 Andrew Cagney <cagney@gnu.org>
6023
6024 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
6025 to generic_use_struct_convention, the default value.
6026
6027 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
6028 of abort.
6029
6030 * ns32k-tdep.c (ns32k_push_arguments): New function.
6031 (ns32k_gdbarch_init): Set deprecated_push_arguments.
6032 * infcall.c (call_function_by_hand): Call error instead of
6033 legacy_push_arguments.
6034 * value.h (legacy_push_arguments): Delete declaration.
6035 * valops.c (legacy_push_arguments): Delete function.
6036 (value_push): Delete function.
6037
6038 2004-06-10 Brian Ford <ford@vss.fsi.com>
6039
6040 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
6041 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
6042 info.
6043 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
6044
6045 2004-06-10 Andrew Cagney <cagney@gnu.org>
6046
6047 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
6048 * gdbarch.h, gdbarch.c: Re-generate.
6049 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
6050 parameters.
6051 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
6052 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
6053 deprecated_pc_in_call_dummy instead of
6054 DEPRECATED_PC_IN_CALL_DUMMY.
6055 (arm_skip_prologue): Ditto.
6056 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
6057 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
6058 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
6059 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
6060 Ditto.
6061 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
6062 (sh64_init_extra_frame_info, sh64_get_saved_register)
6063 (sh64_pop_frame): Ditto.
6064 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
6065 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
6066 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
6067 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
6068 (h8300_pop_frame): Ditto.
6069 * blockframe.c (legacy_inside_entry_func)
6070 (legacy_frame_chain_valid): Ditto.
6071 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
6072 to deprecated_pc_in_call_dummy.
6073
6074 2004-06-09 Andrew Cagney <cagney@gnu.org>
6075
6076 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
6077 provide a default value.
6078 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
6079 * gdbarch.h, gdbarch.c: Re-generate.
6080 * arch-utils.c (generic_convert_register_p): Rename
6081 legacy_convert_register_p
6082 (legacy_register_to_value, legacy_value_to_register): Delete
6083 functions.
6084 * arch-utils.h (generic_convert_register_p): Rename
6085 legacy_convert_register_p.
6086 (legacy_register_to_value, legacy_value_to_register): Delete
6087 declarations.
6088
6089 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
6090 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
6091 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
6092 * gdbarch.h, gdbarch.c: Re-generate.
6093 * infcmd.c (default_print_registers_info): Simplify.
6094 * findvar.c (value_of_register): Simplify.
6095 * mi/mi-main.c (get_register): Simplify.
6096 * arch-utils.c (legacy_convert_register_p): Always return 0.
6097 (legacy_register_to_value, legacy_value_to_register): Always call
6098 internal_error.
6099
6100 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
6101 #ifdef CLEAR_INSN_CACHE code.
6102 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
6103 Delete #ifdef CLEAR_DEFERRED_STORES code.
6104
6105 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
6106
6107 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
6108 copyright.
6109 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
6110
6111 * config/mips/mipsv4.mh: Delete file.
6112
6113 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
6114 unreferenced macro.
6115 (hpread_adjust_stack_address): Delete declaration.
6116
6117 2004-06-08 Andrew Cagney <cagney@gnu.org>
6118
6119 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
6120 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
6121 PTRACE_ATTACH / PTRACE_DETACH available call error.
6122 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
6123 * infttrace.c (update_thread_state_after_attach, attach, detach):
6124 Remove #ifdef wrappers.
6125 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
6126 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
6127 * config/nm-bsd.h (ATTACH_DETACH): Delete.
6128 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
6129 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
6130 * config/nm-linux.h (ATTACH_DETACH): Delete.
6131 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
6132 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
6133 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
6134 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
6135 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
6136
6137 2004-06-08 Corinna Vinschen <vinschen@redhat.com>
6138
6139 * configure.in: Set $configdir to the right OS specific value.
6140 Use value when setting $tcldir and $tkdir.
6141 * configure: Regenerate.
6142
6143 2004-06-06 Paul Brook <paul@codesourcery.com>
6144
6145 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
6146 records.
6147
6148 2004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
6149
6150 * ada-lang.c (lookup_symbol_in_language): New function to allow
6151 re-use of another language's symbol lookup code. (Placed here
6152 temporarily while Ada support is being integrated into the public
6153 tree).
6154 (restore_language): New auxiliary function for
6155 lookup_symbol_in_language.
6156 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
6157 temporarily while Ada support is being integrated into the public
6158 tree).
6159
6160 2004-06-08 Alexandre Oliva <aoliva@redhat.com>
6161
6162 * Makefile.in (check//%): New.
6163
6164 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
6165 (mn10300_store_return_value): Rewrite.
6166 (mn10300_type_align): New.
6167 (mn10300_use_struct_convention): Rewrite.
6168 (mn10300_return_value): New, using all of the above.
6169 (mn10300_pop_frame_regular): Add saved_regs_size.
6170 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
6171
6172 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
6173 regs if PC is on movm.
6174
6175 2004-06-07 Jim Blandy <jimb@redhat.com>
6176
6177 Add native Linux support for the PowerPC E500.
6178 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
6179 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
6180 all architectures except the E500.
6181 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
6182 #definitions.
6183 (struct gdb_evrregset_t): New type.
6184 (have_ptrace_getsetevrregs): New variable.
6185 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
6186 fetch_spe_registers): New functions.
6187 (fetch_register): Call fetch_spe_register as appropriate.
6188 Assert that we're only passed raw register numbers.
6189 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
6190 Don't fetch gprs if they're pseudoregisters.
6191 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
6192 store_spe_registers): New functions.
6193 (store_register): Call store_spe_register as appropriate.
6194 Assert that we're only passed raw register numbers.
6195 (store_ppc_registers): Call store_spe_registers as appropriate.
6196 Don't store gprs if they're pseudoregisters.
6197
6198 2004-06-07 Jeff Johnston <jjohnstn@redhat.com>
6199
6200 * thread-db.c (thread_get_info_callback): Fill in the thread_info
6201 struct if one exists, even if we are dealing with a zombie thread.
6202
6203 2004-06-07 Andrew Cagney <cagney@gnu.org>
6204
6205 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
6206 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
6207 Rename PC_REQUIRES_RUN_BEFORE_USE.
6208 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
6209 #ifdef.
6210
6211 2004-06-07 Randolph Chung <tausq@debian.org>
6212
6213 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
6214 unwinding after sp has been saved to the stack but before the end
6215 of the prologue, and after the fp has been modified but before it has
6216 been saved to the stack.
6217 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
6218 Remove superfluous definitions.
6219 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
6220
6221 2004-06-07 Guy Martin <gmsoft@gentoo.org>
6222
6223 Committed by Randolph Chung.
6224 * hppa-linux-nat.c: Include the correct version of the header file
6225 depending on the kernel version.
6226
6227 2004-06-06 Randolph Chung <tausq@debian.org>
6228
6229 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
6230 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
6231
6232 2004-06-06 Randolph Chung <tausq@debian.org>
6233
6234 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
6235 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
6236 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
6237 * hppa-tdep.c (hppa_symbol_address): New function definition.
6238 * hppa-tdep.h (hppa_symbol_address): New function declaration.
6239
6240 2004-06-06 Randolph Chung <tausq@debian.org>
6241
6242 * hppa-tdep.h (struct value): Forward declaration.
6243 (gdbarch_tdep): Define tdep find_global_pointer method.
6244 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
6245 associated with the function we are trying to call, and write it
6246 to the gp register.
6247 (hppa32_convert_from_funct_ptr_addr): New function.
6248 (hppa_find_global_pointer): New function.
6249 (hppa_gdbarch_init): Set default find_global_pointer method; set
6250 convert_from_func_ptr_addr method.
6251 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
6252 (hppa_linux_init_abi): Set find_global_pointer method.
6253 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
6254
6255 2004-06-06 Randolph Chung <tausq@debian.org>
6256
6257 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
6258 to struct value *function.
6259 * gdbarch.c: Regenerate.
6260 * gdbarch.h: Likewise.
6261 * infcall.c (call_function_by_hand): Pass entire function value
6262 to push_dummy_call.
6263
6264 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
6265 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
6266 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
6267 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
6268 * arm-tdep.c (arm_push_dummy_call): Likewise.
6269 * avr-tdep.c (avr_push_dummy_call): Likewise.
6270 * cris-tdep.c (cris_push_dummy_call): Likewise.
6271 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
6272 * frv-tdep.c (frv_push_dummy_call): Likewise.
6273 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
6274 * hppa-tdep.c (hppa32_push_dummy_call)
6275 (hppa64_push_dummy_call): Likewise.
6276 * i386-tdep.c (i386_push_dummy_call): Likewise.
6277 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
6278 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
6279 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
6280 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
6281 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
6282 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
6283 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
6284 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
6285 (ppc64_sysv_abi_push_dummy_call): Likewise.
6286 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
6287 (ppc64_sysv_abi_push_dummy_call): Likewise.
6288 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
6289 * s390-tdep.c (s390_push_dummy_call): Likewise.
6290 * sh-tdep.c (sh_push_dummy_call_fpu)
6291 (sh_push_dummy_call_nofpu): Likewise.
6292 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
6293 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
6294 * vax-tdep.c (vax_push_dummy_call): Likewise.
6295
6296 2004-06-04 Jim Blandy <jimb@redhat.com>
6297
6298 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
6299 gdbarch argument to register_size.
6300
6301 * rs6000-tdep.c (rs6000_store_return_value): Use
6302 regcache_cooked_write_part instead of
6303 deprecated_write_register_bytes.
6304 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
6305 not gdbarch_deprecated_store_return_value.
6306
6307 * ppc-linux-nat.c (store_register, fetch_register): Remove
6308 incorrect assertions. Simplify and generalize handling of
6309 transfers whose sizes are not multiples of, or less than, sizeof
6310 (PTRACE_XFER_TYPE).
6311
6312 2004-06-04 Jeff Johnston <jjohnstn@redhat.com>
6313
6314 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
6315 as a new thread event.
6316 * thread-db.c (thread_get_info_callback): If the thread is a
6317 zombie, return TD_THR_ZOMBIE.
6318 (thread_from_lwp): If thread_get_info_callback returns
6319 TD_THR_ZOMBIE, check if the thread is still on the thread list
6320 and return a -1 ptid if not found.
6321 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
6322 change the status to TARGET_WAITKIND_SPURIOUS.
6323
6324 2004-06-03 Corinna Vinschen <vinschen@redhat.com>
6325
6326 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
6327 double values in little endian mode.
6328
6329 2004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
6330
6331 Committed by Andrew Cagney.
6332 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
6333 after last enum constant to avoid error from IBM C
6334 compiler.
6335
6336 2004-06-02 Jim Blandy <jimb@redhat.com>
6337
6338 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
6339 to 'message', and make it local to the lone block that uses it.
6340
6341 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
6342
6343 2004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
6344
6345 * ada-exp.y: Update copyright notice.
6346 Include block.h.
6347
6348 Replace REGNAME, LAST, INTERNAL_VARIABLE with
6349 SPECIAL_VARIABLE and unify the treatment of these cases.
6350
6351 (write_attribute_call0): Remove.
6352 (write_attribute_call1): Remove.
6353 (write_attribute_calln): Remove.
6354 (save_qualifier): Add missing semicolon.
6355
6356 (simple_exp,exp): Decomment (i.e., reactivate) code that was
6357 temporarily disabled to allow compilation with FSF head version.
6358
6359 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
6360 use individual operators (OP_*) for all attributes.
6361 (exp syntax): Use write_int.
6362 Handle STRING literals with OP_STRING.
6363 (variable syntax): Add limit parameter to calls to
6364 write_object_renaming.
6365
6366 (temp_parse_space): New definition to hold entities that need
6367 only live until the next call to ada_parse.
6368 (string_to_operator): Rename fields of ada_opname_table entries.
6369
6370 (write_var_from_sym): Record block.
6371 (write_var_from_name): Minor reformatting.
6372 Make sure saved name is properly encoded in the case of multiple
6373 matches, and set its language to Ada.
6374 Update comment.
6375 Modify to indicate unresolved name as symbol in the UNRESOLVED
6376 namespace, allocated in temp_parse_space.
6377 (write_int): New function.
6378
6379 (write_object_renaming): Add max_depth parameter to limit
6380 chains of object renamings.
6381 Handle case where root of renaming expression is itself a renaming.
6382 Use temp_parse_space for temporary name buffer.
6383 Handle renamings to dereferenced pointers (___XEXA suffices).
6384
6385 (ada_parse, yyerror, string_to_operator,
6386 write_var_from_sym, write_var_from_name, write_attribute_call0,
6387 write_attribute_call1, write_attribute_calln,
6388 write_object_renaming): Protoize.
6389
6390 (_initialize_ada_exp): New function.
6391
6392 * ada-lang.c: Update copyright notice.
6393 General terminology change to conform to GNAT compiler usage:
6394 mangle => encode, demangle => decode
6395 Include gdb_obstack.h.
6396 Include gdb_regex.h
6397 Include frame.h
6398 Include hashtab.h
6399 Include completer.h
6400 Include gdb_stat.h
6401 Include block.h
6402 Include infcall.h
6403
6404 (ADA_RETAIN_DOTS): Make sure this is defined.
6405 (TRUNCATION_TOWARDS_ZERO): Define.
6406 (struct string_vector): Define.
6407 (unresolved_names): Remove definition.
6408 (xnew_string_vector): New function.
6409 (string_vector_append): New function.
6410 (extract_string): Make static.
6411 (ada_unqualified_name): New function.
6412 (add_angle_brackets): New function.
6413 (function_name_from_pc): New function.
6414 (place_on_stack): Rename to ensure_lval.
6415
6416 (ensure_lval): Renamed from place_on_stack.
6417 Make identity on lvals.
6418 Update comment.
6419 (is_nonfunction): New interface.
6420 Only symbols in LOC_CONST class can be enumerals.
6421 (fill_in_ada_prototype): Remove; now independent of language.
6422 (add_defn_to_vec): Add obstack and symtab arguments.
6423 Use obstack to hold collected definitions.
6424 (num_defns_collected): New function.
6425 (defns_collected): New function.
6426 (ada_resolve_subexp): Rename to resolve_subexp.
6427 (resolve_subexp): Renamed from ada_resolve_subexp.
6428 (ada_op_name): Return non-const result.
6429 (ada_decoded_op_name): Renamed from ada_op_name, now used for
6430 other purposes.
6431
6432 (to_fixed_array_type): Add declaration.
6433 (coerce_unspec_val_to_type): Remove offset parameter.
6434 (find_sal_from_funcs_and_line): New interface.
6435 (find_line_in_linetable): Ditto.
6436
6437 (all_sals_for_line): Rename to ada_sals_for_line and make
6438 global.
6439 Add new parameter. When set, do not ask the user to choose the
6440 instance, but use the first one found instead.
6441 Use given line number in returned sals.
6442 Fix comment.
6443 Skip the prologue if funfirstline is set.
6444 Correct for memory leak when 0 lines found.
6445
6446 (value_pos_atr): Use pos_atr.
6447 (pos_atr): New function.
6448 (standard_lookup): Add block parameter.
6449
6450 (makeTimeStart): Remove declaration and uses.
6451 (makeTimeStop): Remove declaration and uses.
6452
6453 (ada_completer_word_break_characters): Allow for VMS.
6454 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
6455 (raise_sym_name): New constant.
6456 (raise_unhandled_sym_name): New constant.
6457 (raise_assert_sym_name): New constant.
6458 (process_raise_exception_name): New constant.
6459 (longest_exception_template): New constant.
6460 (warning_limit): New variable to limit warnings during expression
6461 evaluation.
6462 (warnings_issued): New variable to keep track of warnings issued.
6463 (known_runtime_file_name_patterns): New constant.
6464 (known_auxiliary_function_name_patterns): New constant.
6465 (symbol_list_obstack): New variable.
6466
6467 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
6468 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
6469 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
6470 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
6471 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
6472 ada_variant_discrim_name, field_alignment, dynamic_template_type,
6473 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
6474 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
6475 and strcmp.
6476
6477 (ada_get_field_index): New function.
6478 (lim_warning): New function.
6479 (ada_translate_error_message): New function.
6480 (MAX_OF_SIZE): New function.
6481 (MIN_OF_SIZE): New function.
6482 (UMAX_OF_SIZE): New function.
6483 (UMIN_OF_SIZE): New function.
6484 (discrete_type_high_bound): New function.
6485 (discrete_type_low_bound): New function.
6486 (base_type): New function.
6487 (do_command): Remove.
6488
6489 (ada_update_initial_language): Use language_ada, not language_unknown.
6490 (ada_encode): Renamed from ada_mangle.
6491 Obey ADA_RETAIN_DOTS.
6492 (ada_decode): Renamed from ada_demangle.
6493 Update coding conventions.
6494 (decoded_names_store): New hash table.
6495 (ada_decode_symbol): New function.
6496 (ada_la_decode): New function.
6497
6498 (modify_general_field): Correct computations of offset and bit
6499 position.
6500 (desc_base_type): Handle ref types, too.
6501 (ada_is_direct_array_type): New function.
6502
6503 (ada_is_simple_array): Rename to ada_is_simple_array_type.
6504 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
6505 (ada_is_bogus_array_descriptor,ada_type_of_array,
6506 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
6507 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
6508 ada_is_array_descriptor_type.
6509
6510 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
6511 (ada_is_packed_array_type): Handle pointers or
6512 references to packed arrays as well.
6513 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
6514 (decode_packed_array_type): Search for the packed array type
6515 symbol in the currently selected block and associated
6516 superblocks too.
6517 Use lookup_symbol again.
6518
6519 (decode_packed_array): Handle pointers and references.
6520 Update call to coerce_unspec_val_to_type.
6521 (decode_packed_array_type,value_subscript_packed): Limit warnings.
6522 (ada_value_primitive_packed_val): Improve comment.
6523
6524 (ada_index_type): Substitute int type for "undefined".
6525 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
6526 ada_array_langth, ada_is_string_type): Use renamed
6527 ada_is_simple_array_type.
6528 (empty_array): New function.
6529
6530 (ada_resolve): Rename to resolve.
6531 (resolve): Make static.
6532 Call renamed resolve_subexp.
6533 Update comment.
6534 (ada_resolve_subexp): Rename to resolve_subexp.
6535 (resolve_subexp): Update comment.
6536 Decomment disabled code.
6537 Add LOC_COMPUTED* cases.
6538 Modify to use temporary struct symbols (marked as being in
6539 UNDEF_NAMESPACE) to indicate unresolved names, instead of
6540 OP_UNRESOLVED_VALUE.
6541 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
6542 Add OP_STRING case.
6543 Remove OP_ARRAY.
6544 Use SYMBOL_PRINT_NAME instead of ada_demangle.
6545 Use new ada_lookup_symbol_list interface.
6546 Use new ada_resolve_function interface.
6547 Remove OP_TYPE case.
6548
6549 (ada_args_match): Idiot proof against null actuals.
6550 Use intermediate variables to clarify.
6551 (ada_resolve_function): Update comment and interface.
6552 (mangled_ordered_before): Rename to encoded_ordered_before and
6553 update comment.
6554 (sort_choices): Update comment and interface.
6555 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
6556 (user_select_syms): New interface.
6557 Use new sort_choices interface.
6558 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
6559 (possible_user_operator_p): Idiot-proof against null values.
6560 (ada_simple_renamed_entity): Don't make cleanup; rely on
6561 caller to free result string.
6562 Remove const from return type.
6563 (make_array_descriptor): Rename uses of place_on_stack to
6564 ensure_lval.
6565 Make sure that arrays are on stack.
6566
6567 (HASH_SIZE): Define.
6568 (struct cache_entry): Define.
6569 (cache_space): Define.
6570 (cache): Define.
6571 (clear_ada_sym_cache): New function.
6572 (find_entry): New function.
6573 (lookup_cached_symbol): New function.
6574 (defn_vector_size): Define.
6575 (cache_symbol): New function.
6576 (defn_symbols): Remove.
6577
6578 (standard_lookup): Use lookup_symbol_in_language to get effect of
6579 C lookup.
6580 Cache results.
6581
6582 (symbol_completion_match): New function.
6583 (symbol_completion_add): New function.
6584 (ada_make_symbol_completion_list): New function.
6585
6586 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
6587 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
6588 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
6589 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
6590
6591 (ada_lookup_simple_minsym): New function.
6592 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
6593
6594 (add_symbols_from_enclosing_procs): New interface.
6595 Conditionalize more helpfully.
6596 Don't bother if program isn't running.
6597 Use new interface to get_frame_block.
6598 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
6599
6600 (remove_extra_symbols): New interface.
6601 (xget_renaming_scope): New function.
6602 (is_package_name): New function.
6603 (renaming_is_visible): New function.
6604 (remove_out_of_scope_renamings): New function.
6605
6606 (ada_lookup_symbol_list): New interface.
6607 Properly reinitialize the symbol list obstack.
6608 Don't call add_symbols_from_enclosing_procs if we start from a
6609 static or global block.
6610 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
6611 add_symbols_from_enclosing_procs.
6612 Add symtab data to cached entries.
6613 Handle symbols prefixed with
6614 "standard__" specially; strip prefix and don't look in local symbols.
6615 Do not include out of scope renaming symbols in list of
6616 symbols returned.
6617 Add const to block parameter.
6618 Move check for non-local, non-global symbols earlier.
6619 Remove timing stuff.
6620 (ada_lookup_symbol): New interface.
6621 Find symtab as well.
6622 (ada_lookup_symbol_nonlocal): New function.
6623
6624 (is_name_suffix): Enhance suffix detection to recognize
6625 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
6626 (is_dot_digits_suffix): New function.
6627 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
6628
6629 (ada_add_block_symbols): New interface. Use obstack to return results
6630 in a vector of struct ada_symbol_infos. Add symtab argument.
6631 Use new interface to add_defn_to_vec.
6632 Remove calls to fill_in_ada_prototype.
6633 Use BLOCK_BUCKETS, BLOCK_BUCKET.
6634
6635 (ada_finish_decode_line_1): Add const qualification to local to fix
6636 warning.
6637 Start looking in static block for functions to avoid attempts
6638 to search frame chain for up-level variables.
6639 Adapt to new ada_sals_for_line interface.
6640 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
6641 Handle quoting of the function name inside the spec string.
6642 Skip prologue when funfirstline is set and update the
6643 function documentation to that effect.
6644
6645 (debug_print_lines, debug_print_block, debug_print_blocks,
6646 debug_print_symtab): Remove.
6647
6648 (ada_main_name): New function.
6649 (ada_exception_breakpoint_type): New function.
6650 (is_known_support_routine): New function.
6651 (ada_find_printable_frame): Renamed from find_printable_frame and made
6652 global.
6653 Remove level parameter.
6654 Use new interface to select_frame.
6655
6656 (begin_command): Remove.
6657 (ada_adjust_exception_stop): New function.
6658 (ada_print_exception_stop): New function.
6659 (exception_name_from_cond): New function.
6660 (ada_report_exception_break): Replace disabled code with
6661 conditionalization on GNAT_GDB.
6662 Get the exception name from the condition string.
6663 Remove and move functionality into new functions
6664 ada_print_exception_breakpoint_task and
6665 ada_print_exception_breakpoint_nontask.
6666 (error_breakpoint_runtime_sym_not_found): New function.
6667 (is_runtime_sym_defined): New function.
6668 (ada_breakpoint_rewrite): Uncomment suppressed code.
6669 Use symbolic error-message and runtime-symbol names.
6670 Surround runtime symbol names in quotes.
6671 Allow non-specific breakpoints on exceptions and assertions before
6672 program starts.
6673
6674 (ada_is_tagged_type): Add parameter.
6675 (ada_is_tag_type): New function.
6676 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
6677 (ada_variant_discrim_type): Ditto.
6678 (value_tag_from_contents_and_address): New function.
6679 (type_from_tag): New function.
6680 (struct tag_args): New structure used to communicate with
6681 ada_tag_name_1.
6682 (ada_tag_name_1): New function.
6683 (ada_tag_name): New function.
6684
6685 (ada_scan_number): Update comment.
6686 (find_struct_field): New function.
6687 (ada_search_struct_field): Make static.
6688 (ada_value_struct_elt): New version that returns references when
6689 given pointers or references to structs.
6690 (ada_lookup_struct_elt_type): Add 'refok' parameter.
6691 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
6692 interface.
6693 (ada_value_ind): Use new ada_to_fixed_value interface.
6694 (ada_coerce_ref): Ditto.
6695 (field_offset): Remove.
6696
6697 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
6698 (ada_find_renaming_symbol): New function.
6699 (ada_prefer_type): Prefer named types over unnamed ones.
6700 (variant_field_index): New function.
6701 (contains_variant_part): Removed: subsumed by variant_field_index.
6702 (ada_template_to_fixed_record_type): New function, mostly from
6703 template_to_fixed_record_type.
6704 (template_to_fixed_record_type):
6705 Do not scan the type fields beyond the last one; prevents a
6706 potential SEGV.
6707 Handle case where variant field is listed BEFORE discriminant it
6708 depends on.
6709 Fix calculation of record length when bit length is
6710 not evenly divisible by char length.
6711 Move code to ada_template_to_fixed_record_type and call it.
6712
6713 (template_to_static_fixed_type): Revise comment.
6714 Modify to work on ordinary record types as well as templates,
6715 so as to handle fields that use ___XVE or ___XVU encodings.
6716 (to_record_with_fixed_variant_part): Fill out comment.
6717 Initialize C++ stuff in right type.
6718 Allow case where DVAL is null.
6719 Handle case where variant field is not last.
6720 Fix typo concerning record length.
6721 (to_fixed_record_type): Decomment disabled code.
6722 (to_fixed_record_type): Use variant_field_index instead of
6723 contains_variant_part.
6724 (to_fixed_variant_branch_type): Ditto.
6725 (to_fixed_array_type): Decomment disabled code.
6726 (ada_to_fixed_type): Convert tagged types to the specific type.
6727 Deactivate the size-check for array types in order to avoid
6728 some false size alarms.
6729 (to_static_fixed_type): Decomment disabled code.
6730 Modify to call template_to_static_fixed_type
6731 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
6732 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
6733 Remove valaddr argument, as it is never really used.
6734 (ada_to_fixed_value): Change interface to act on single struct value*
6735 operand.
6736 (adjust_pc_past_prologue): New function.
6737 (ada_attribute_name): Modify to take enum exp_opcode argument.
6738
6739 (ada_enum_name): Recognize new homonym-distinguishing convention.
6740 Adjust local variable's type to remove compiler warning.
6741 Fix a small problem in the part that unqualifies the enumeration name.
6742 (ada_value_binop): New function.
6743 (ada_value_equal): New function.
6744
6745 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
6746 Don't give error message when not doing normal evaluation
6747 and a tagged type doesn't seem to contain a structure member.
6748 Give error message for packed arrays.
6749 For indexing arrays, handle pointers to packed arrays correctly.
6750 Handle case of 'first and 'last attributes of bare integral type
6751 without encoded subtype info.
6752 Remove some unnecessary casts.
6753 Fix uninitialized value of type in computing 'first, 'last, or 'length
6754 of array object.
6755 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
6756 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
6757 calls.
6758 Attributes are now exp_opcode values.
6759 Correct treatment of 'modulus.
6760 Better error message for taking 'length of wrong kind of type;
6761 improve comment.
6762 Change EVAL_NORMAL to noside for consistency.
6763 Use ada_value_binop for DIV, MOD, REM.
6764 Make special case out of array of length 0, since an argument
6765 of 0 upsets some platforms' malloc.
6766 Use OP_STRING instead of OP_ARRAY.
6767 For slice, add check that we have an array type before extracting
6768 a slice out of it. Avoids a SEGV.
6769 When evaluating an array slice, if the array type is a reference to
6770 an aligner type, then replace the aligner type by the actual type.
6771 Decomment disabled code.
6772 Remove some dead code.
6773 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
6774 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
6775 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
6776 and UNOP_MBR to UNOP_IN_RANGE.
6777 If an array type has a parallel ___XVE type, then use it.
6778 Turn arrays into pointers for lvalue arrays.
6779 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
6780 bounds error and handle 0-length slices.
6781 Use lim_warning.
6782 When selecting fields, apply ada_to_fixed_value (because the fields
6783 might have ___XVU or ___XVE encodings even if not dynamic.)
6784 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
6785 (ada_is_system_address_type): New function.
6786
6787 (get_var_value): Use new interface to ada_lookup_symbol_list.
6788 (get_int_var_value): New interface.
6789 (to_fixed_range_type): Allow unknown bound, with warning.
6790 (ada_is_modular_type): Decomment disabled code.
6791 (ADA_OPERATORS): New definition.
6792 (ada_operator_length): New function.
6793 (ada_expr_op_name): New function.
6794 (ada_forward_operator_length): New function.
6795 (ada_dump_subexp_body): New function.
6796 (ada_print_subexp): New function.
6797 (ada_exp_descriptor): New constant.
6798 (ada_op_print_tab): Add 'size. Remove FIXMEs.
6799 (ada_language_defn): Add ada_exp_descriptor entry.
6800 Change ada_parse => parse.
6801 Add post-parser entry.
6802 Use ada-specific non-local symbol lookup.
6803 Don't use C-style arrays.
6804 String lower-bound is 1.
6805 Decomment disabled code.
6806 (parse): New function.
6807 New fields ada_translate_error_message, ada_lookup_symbol,
6808 ada_lookup_minimal_symbol.
6809
6810 * ada-lang.h: Update copyright dates.
6811 Replace the mangle/demangle terminology throughout by the
6812 more appropriate encode/decode one.
6813 Include breakpoint.h.
6814 Forward declare struct partial_symbol, struct block.
6815 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
6816 (EXTRACT_ADDRESS): Remove.
6817 (EXTRACT_INT): Remove.
6818 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
6819 (MAX_ENCLOSING_FRAME_LEVELS): Define.
6820 (MAX_RENAMING_CHAIN_LENGTH): Define.
6821 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
6822
6823 (enum task_states): Remove.
6824 ada_task_states: Remove.
6825 (fat_string): Remove.
6826 (struct entry_call): Remove.
6827 (struct task_fields): Remove.
6828 (struct task_entry): Remove.
6829
6830 (struct ada_symbol_info): Define.
6831 (enum ada_attribute): Remove.
6832 (enum ada_operator): Define.
6833
6834 (ada_get_field_index): Declare.
6835 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
6836 (ada_is_simple_array): Rename to ada_is_simple_array_type.
6837 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
6838 (ada_lookup_symbol_list): New interface.
6839 (ada_decode_symbol): Declare.
6840 (ada_decode): Declare.
6841 (ada_lookup_symbol): New interface.
6842 (ada_update_initial_language): Declare.
6843 (ada_lookup_simple_minsym): Declare.
6844 (user_select_syms): New interface.
6845 (ada_sals_for_line): Declare.
6846 (ada_is_tagged_type): New interface.
6847 (ada_tag_name): Declare.
6848 (ada_lookup_struct_elt_type): Remove declaration.
6849 (ada_search_struct_field): Remove declaration.
6850 (ada_attribute_name): New interface.
6851 (ada_is_system_address_type): Declare.
6852 (ada_to_fixed_value): Remove declaration.
6853 (ada_template_to_fixed_record_type_1): Declare.
6854 (get_int_var_value): New interface.
6855 (ada_find_any_symbol): Declare.
6856 (ada_find_renaming_symbol): Declare.
6857 (ada_mangle): Rename to ada_encode.
6858 (ada_simple_renamed_entity): Remove const.
6859 (ada_main_name): Declare.
6860 (get_current_task): Rename to ada_get_current_task.
6861 (get_entry_number): Remove declaration.
6862 (ada_report_exception_break): Remove declaration.
6863 (ada_print_exception_breakpoint_nontask): Declare.
6864 (ada_print_exception_breakpoint_task): Declare.
6865 (ada_find_printable_frame): Declare.
6866
6867 * ada-lex.l: Update copyright notices.
6868 Use xmalloc and xfree instead of malloc and free.
6869 Use new interface to name_lookup.
6870 Use new interface to
6871 ada_mangle=>ada_encode.
6872 Redo handling of '$...' variable to parallel current treatment
6873 in c-exp.y.
6874 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
6875 digit_to_int, strtoulst, processInt, processReal, processId,
6876 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
6877 yywrap): Protoize.
6878
6879 (processInt): Use cast to remove harmless warning.
6880 (processReal): Modify to get rid of compiler warning on scan formats.
6881
6882 (processId): Replace xmalloc with obstack_alloc for name and remove
6883 call to ada_name_string_cleanup.
6884 Remove obsolete disabled code.
6885 (name_lookup): Ditto.
6886 New interface.
6887 Use obsavestring on temp_parse_space instead of savestring
6888 on name, and remove call to ada_name_string_cleanup.
6889 Free string returned from ada_simple_renamed_entity.
6890 Use new interface to ada_lookup_symbol_list.
6891 Decomment disabled code.
6892 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
6893 not types.
6894 When a type name lookup succeeds as a result of
6895 lookup_primitive_typename, check for regular type entry that has not
6896 yet been read in.
6897 Limit length of chain of renamed symbols we are willing to follow.
6898 Do not break names beginning with "standard__" into segments.
6899 (block_lookup): Use new interface to ada_lookup_symbol_list.
6900
6901 * ada-typeprint.c: Update copyright notice.
6902 (demangled_type_name): Rename to decoded_type_name.
6903 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
6904 (print_range_bound): Correct handling of negative
6905 bounds that make the index type looked unsigned under STABS.
6906 (print_dynamic_range_bound): Use new interface to get_int_var_value.
6907 (print_range_type_named): Use the builtin int type if no type
6908 corresponding to the given type name could be found.
6909 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
6910 Add some bullet-proofing.
6911 (print_variant_clauses): Allow for variant branches with ___XVU
6912 encodings that are not dynamic fields.
6913 Use new interface to ada_is_tagged_type.
6914 (print_record_type): Allow for fields with ___XVE encodings that
6915 are not dynamic fields.
6916 Use new interface to ada_is_tagged_type.
6917 (ada_print_type): ada_is_array_descriptor =>
6918 ada_is_array_descriptor_type.
6919
6920 * ada-valprint.c: Update copyright notice.
6921 Include gdb_string.h
6922 Include infcall.h
6923 (ui_memcpy): New function.
6924 (ada_print_floating): New function.
6925 (ada_print_str): Order arguments correctly.
6926 Correct handling of empty arrays and arrays of 0-length items.
6927 ada_is_array_descriptor => ada_is_array_descriptor_type
6928 Print values of type System.Address in hexadecimal format.
6929 Use ada_print_floating to print floating-point numbers in Ada format.
6930 Print class tag values with type names.
6931 No longer print the address of reference values. Avoids
6932 a potential confusion.
6933 (ada_value_print): Stop printing the object type for reference
6934 values, but preserve that behavior for access types. Avoids
6935 a potential confusion.
6936 Simplify one conditional expression, as the first part is now
6937 necessarily true.
6938 ada_is_array_descriptor => ada_is_array_descriptor_type
6939 Add check for arrays for null records, and print them by hand.
6940
6941 2004-06-01 Jim Blandy <jimb@redhat.com>
6942
6943 * ppc-tdep.h: Delete unused 'regoff' member.
6944 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
6945
6946 2004-06-01 Michael Chastain <mec.gnu@mindspring.com>
6947
6948 Fix PR symtab/1661.
6949 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
6950 (hpread_read_struct_type): Likewise.
6951
6952 2004-06-01 Andrew Cagney <cagney@gnu.org>
6953
6954 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
6955 instead of xasprintf.
6956 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
6957 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
6958 (mi_cmd_data_list_register_names)
6959 (mi_cmd_data_list_changed_registers)
6960 (mi_cmd_data_list_register_values)
6961 (get_register, mi_cmd_data_write_register_values)
6962 (mi_cmd_data_write_register_values)
6963 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
6964 (mi_cmd_target_download, mi_cmd_target_select)
6965 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
6966 (mi_execute_cli_command, mi_execute_async_cli_command)
6967 (mi_execute_async_cli_command): Ditto.
6968 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
6969 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
6970
6971 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
6972 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
6973 error_last_message instead of mi_error_last_message.
6974 * mi/mi-main.c (mi_error_last_message): Delete function.
6975
6976 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
6977 "invalid number of columns" error. Delete redundant "out of
6978 memory" check.
6979
6980 2004-05-31 Mark Kettenis <kettenis@gnu.org>
6981
6982 * i386bsd-nat.c: Don't include <sys/procfs.h>.
6983 (gregset_t, fpregset_t): Remove typedefs.
6984 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
6985 (REG_OFFSET): Rename argument.
6986 (i386bsd_r_reg_offset): Rename from reg_offset.
6987 (REG_ADDR): Remove macro.
6988 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
6989 functions.
6990 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
6991 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
6992 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
6993 instead of supply_gregset.
6994 (store_inferior_registers): Use `struct reg' and `struct fpreg'
6995 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
6996 instead of fill_gregset.
6997 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
6998
6999 * i386bsd-nat.c: Don't include "gregset.h".
7000 (supply_gregset, fill_gregset): Make static.
7001 (supply_fpregset, fill_fpregset): Remove.
7002 * Makefile.in (i386bsd-nat.o): Update dependencies.
7003
7004 2004-05-30 Mark Kettenis <kettenis@gnu.org>
7005
7006 * fbsd-proc.c: Include "regcache.h", "regset.h" and
7007 "gdb_assert.h". Con't include "gregset.h".
7008 (fbsd_make_corefile_notes): Use regset-based core file support
7009 instead off fill_gregset and fill_fpregset.
7010 * Makefile.in (fbsd-proc.o): Update dependencies.
7011
7012 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
7013 instructions.
7014 (m88k_frame_prev_register): Simplify code a bit.
7015
7016 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
7017 (amd64_collect_fpregset): New function.
7018 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
7019
7020 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
7021
7022 * i386-tdep.c (i386_supply_gregset): Adjust comment.
7023 (i386_collect_gregset): New function.
7024 (i386_supply_fpregset): Adjust comment.
7025 (i386_collect_fpregset): New function.
7026 (i386_regset_from_core_section): Use i386_collect_gregset and
7027 i386_collect_fpregset.
7028
7029 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
7030 handle VALUEP being null.
7031
7032 * regset.h (collect_regset_ftype): Unconstify fourth argument.
7033
7034 2004-05-29 Mark Kettenis <kettenis@gnu.org>
7035
7036 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
7037
7038 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
7039 assembler in OpenBSD 3.5-current.
7040 (amd64obsd_sigcontext_addr): Likewise.
7041
7042 2004-05-28 Jim Blandy <jimb@redhat.com>
7043
7044 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
7045 register set, so our regcache isn't declared "legacy" and our E500
7046 pseudoregister read and write functions aren't ignored.
7047 (rs6000_register_byte, rs6000_register_raw_size,
7048 rs6000_register_virtual_type, rs6000_register_convertible,
7049 rs6000_register_convert_to_virtual,
7050 rs6000_register_convert_to_raw): Deleted.
7051 (rs6000_register_type, rs6000_convert_register_p,
7052 rs6000_register_to_value, rs6000_value_to_register): New
7053 functions.
7054 (rs6000_gdbarch_init): Don't register
7055 gdbarch_deprecated_register_size,
7056 gdbarch_deprecated_register_bytes,
7057 gdbarch_deprecated_register_byte,
7058 gdbarch_deprecated_register_raw_size,
7059 gdbarch_deprecated_register_virtual_type,
7060 gdbarch_deprecated_register_convertible,
7061 gdbarch_deprecated_register_convert_to_virtual, or
7062 gdbarch_deprecated_register_convert_to_raw methods. Instead,
7063 register gdbarch_register_type, gdbarch_convert_register_p,
7064 gdbarch_register_to_value, and gdbarch_value_to_register methods.
7065
7066 2004-05-26 Jim Blandy <jimb@redhat.com>
7067
7068 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
7069 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
7070 functions, updated to match the register numberings used in GCC.
7071 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
7072 rs6000_dwarf2_reg_to_regnum as register number conversions
7073 functions for STABS and Dwarf2.
7074
7075 2004-05-26 Randolph Chung <tausq@debian.org>
7076
7077 * infttrace.h (target_waitkind): Forward declare type instead of pulling
7078 in header file.
7079
7080 2004-05-25 Joel Brobecker <brobecker@gnat.com>
7081
7082 * NEWS: Document new "start" command.
7083
7084 2004-05-25 Randolph Chung <tausq@debian.org>
7085
7086 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
7087 hppa-linux.
7088
7089 2004-05-25 Randolph Chung <tausq@debian.org>
7090
7091 * hppa-hpux-tdep.c (offsetof): Define.
7092 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
7093 (hppa32_hpux_frame_base_before_sigtramp)
7094 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
7095 (hppa64_hpux_frame_saved_pc_in_sigtramp)
7096 (hppa64_hpux_frame_base_before_sigtramp)
7097 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
7098 functions.
7099 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
7100 (hppa_hpux_sigtramp_frame_unwind_cache)
7101 (hppa_hpux_sigtramp_frame_this_id)
7102 (hppa_hpux_sigtramp_frame_prev_register)
7103 (hppa_hpux_sigtramp_frame_unwind)
7104 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
7105 (hppa_hpux_init_abi): Register sigtramp unwinder.
7106 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
7107
7108 2004-05-25 Randolph Chung <tausq@debian.org>
7109
7110 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
7111 and multiple stack unwinds.
7112 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
7113
7114 2004-05-25 Andrew Cagney <cagney@gnu.org>
7115
7116 * symfile.h (symbol_file_add_from_memory): Delete declaration.
7117 * symfile-mem.h: Delete file.
7118 * symfile-mem.c: Do not include "symfile-mem.h".
7119 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
7120 "struct bfd_section". When an error do not bother returning NULL.
7121 (add_symbol_file_from_memory_command): Use "struct bfd" and
7122 "struct bfd_section".
7123 * Makefile.in (symfile_mem_h): Delete.
7124 (symfile-mem.o): Update dependencies.
7125
7126 2004-05-25 Nick Roberts <nickrob@gnu.org>
7127
7128 * gdb-mi.el: New file.
7129
7130 2004-05-25 Andrew Cagney <cagney@gnu.org>
7131
7132 * inftarg.c: Include "observer.h".
7133 (child_attach, child_create_inferior): Notify inferior_created.
7134 * corelow.c: Include "observer.h".
7135 (core_open): Notify inferior_created.
7136 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
7137
7138 2004-05-25 Andrew Cagney <cagney@gnu.org>
7139
7140 * target.h (struct target_ops): Add from_tty to
7141 to_create_inferior.
7142 (target_create_inferior, find_default_create_inferior): Update.
7143 * infcmd.c (run_command): Update.
7144 * wince.c (child_create_inferior): Update.
7145 * win32-nat.c (child_create_inferior): Update.
7146 * uw-thread.c (uw_thread_create_inferior): Update.
7147 * thread-db.c (thread_db_create_inferior): Update.
7148 * target.c (debug_to_create_inferior)
7149 (find_default_create_inferior): Update.
7150 (maybe_kill_then_create_inferior): Update.
7151 * sol-thread.c (sol_thread_create_inferior): Update.
7152 * remote.c (extended_remote_async_create_inferior)
7153 (extended_remote_create_inferior): Update.
7154 * remote-vx.c (vx_create_inferior): Update.
7155 * remote-st.c (st2000_create_inferior): Update.
7156 * remote-sim.c (gdbsim_create_inferior): Update.
7157 * remote-sds.c (sds_create_inferior): Update.
7158 * remote-rdp.c (remote_rdp_create_inferior): Update.
7159 * remote-rdi.c (arm_rdi_create_inferior): Update.
7160 * remote-m32r-sdi.c (m32r_create_inferior): Update.
7161 * remote-e7000.c (e7000_create_inferior): Update.
7162 * procfs.c (procfs_create_inferior): Update.
7163 * ocd.c (ocd_create_inferior): Update.
7164 * ocd.h (ocd_create_inferior): Update.
7165 * nto-procfs.c (procfs_create_inferior): Update.
7166 * monitor.c (monitor_create_inferior): Update.
7167 * lin-lwp.c (lin_lwp_create_inferior): Update.
7168 * inftarg.c (child_create_inferior): Update.
7169 * hpux-thread.c (hpux_thread_create_inferior): Update.
7170 * gnu-nat.c (gnu_create_inferior): Update.
7171
7172 2004-05-25 Andrew Cagney <cagney@gnu.com>
7173
7174 * MAINTAINERS: Update e-mail address.
7175
7176 2004-05-24 Randolph Chung <tausq@debian.org>
7177
7178 * thread.c (info_threads_command, thread_apply_all_command)
7179 (thread_apply_command, thread_command, do_captured_thread_select):
7180 Remove HPUXHPPA-specific code.
7181
7182 2004-05-24 Randolph Chung <tausq@debian.org>
7183
7184 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
7185 unused symbols.
7186 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
7187 references.
7188
7189 2004-05-24 Joel Brobecker <brobecker@gnat.com>
7190
7191 * infcmd.c (kill_if_already_running): New function, extracted
7192 from run_command().
7193 (run_command): Replace extracted code by call to
7194 kill_if_already_running().
7195 (start_command): New function.
7196 (_initialize_infcmd): Add "start" command.
7197
7198 2004-05-24 Mark Kettenis <kettenis@gnu.org>
7199
7200 Add OpenBSD/m88k support.
7201 * NEWS (New native configurations): Mention OpenBSD/m88k.
7202 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
7203 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
7204 * Makefile.in (m88k_tdep_h): New variable.
7205 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
7206 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
7207 * configure.host: Add m88*-*-openbsd*.
7208 * configure.tgt: Add m88*-*-openbsd*.
7209
7210 2004-05-24 Jim Blandy <jimb@redhat.com>
7211
7212 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
7213 to approve changes.
7214
7215 2004-05-24 Kevin Buettner <kevinb@redhat.com>
7216
7217 * symtab.c (fixup_section): Search section table when lookup by
7218 name fails.
7219
7220 2004-05-24 Randolph Chung <tausq@debian.org>
7221
7222 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
7223 be "small_struct".
7224
7225 2004-05-24 Mark Kettenis <kettenis@gnu.org>
7226
7227 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
7228 register number in regcache_raw_collect call.
7229 (m68kbsd_collect_fpregset): Likewise.
7230 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
7231
7232 * regset.h (struct regset): Add back `regset' member.
7233
7234 2004-05-23 Mark Kettenis <kettenis@gnu.org>
7235
7236 * configure.in: Check for td_pcb in `struct thread'.
7237 * configure, config.in: Regenerated.
7238
7239 * dpx2-nat.c: Remove file.
7240 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
7241 (dpx2-nat.o): Remove dependencies.
7242
7243 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
7244 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
7245 (amd64obsd_supply_pcb): New function.
7246 (_initialize_amd64obsd_nat): Enable libkvm interface.
7247 * Makefile.in (amd64obsd-nat.o): Update dependencies.
7248 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
7249 (LOADLIBES): New variable.
7250
7251 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
7252 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
7253 (sparc32nbsd_supply_pcb): New function.
7254 (_initialize_sparcnbsd_nat): Enable libkvm interface.
7255 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
7256 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
7257 (LOADLIBES): New variable.
7258
7259 2004-05-22 Mark Kettenis <kettenis@gnu.org>
7260
7261 * bsd-kvm.c, bsd-kvm.h: New files.
7262 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
7263 "bsd-kvm.h".
7264 (i386fbsd_supply_pcb): New function.
7265 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
7266 (i386fbsd-nat.o): Update dependencies.
7267 (bsd_kvm_h): New variable.
7268 (bsd-kvm.o): New dependency.
7269 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
7270 (LOADLIBES): New variable.
7271
7272 * regset.c: Tweak comment.
7273 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
7274 macro.
7275 * regset.h: Update copyright year.
7276 (struct regset): Remove `descr' member, add `gdbarch' member.
7277 (regset_alloc): Adjust prototype and comment.
7278 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
7279 (i386_supply_fpregset): Likewise.
7280 (i386_regset_from_core_section): Update call to regset_alloc.
7281 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
7282 REGSET->arch.
7283 (i386obsd_aout_regset_from_core_section): Update call to
7284 regset_alloc.
7285 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
7286 REGSET->arch.
7287 (i386nbsd_aout_regset_from_core_section): Update call to
7288 regset_alloc.
7289 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
7290 REGSET->arch.
7291 (amd64_regset_from_core_section): Update call to regset_alloc.
7292 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
7293 REGSET->arch.
7294 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
7295 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
7296 &sparc32nbsd_gregset in sparc32_supply_gregset call.
7297 (sparc32nbsd_init_abi): Update call to regset_alloc.
7298 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
7299 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
7300 (sparc64obsd_init_abi): Update call to regset_alloc.
7301 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
7302 &sparc64nbsd_gregset in sparc64_supply_gregset call.
7303 (sparc64nbsd_init_abi): Update call to regset_alloc.
7304 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
7305 &sparc64fbsd_gregset in sparc64_supply_gregset call.
7306 (sparc64fbsd_init_abi): Update call to regset_alloc.
7307
7308 2004-05-22 Jim Blandy <jimb@redhat.com>
7309
7310 * ppc-tdep.h (spe_register_p): New declaration.
7311 (struct gdbarch_tdep): New members: ppc_acc_regnum and
7312 ppc_spefscr_regnum.
7313 * rs6000-tdep.c (spe_register_p): New function.
7314 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
7315 spefscr.
7316 (rs6000_gdbarch_init): Initialize the new members of the tdep
7317 structure.
7318
7319 2004-05-21 Jim Blandy <jimb@redhat.com>
7320
7321 * ppc-linux-nat.c (fetch_register): Move code back to be next
7322 to the comment that describes it. (Moved code, instead of
7323 comment, for symmetry with store_register.)
7324
7325 Allocate regset structures in the gdbarch's obstack, not using
7326 xmalloc.
7327 * regset.c (regset_alloc): Renamed from regset_xmalloc.
7328 Add 'arch' argument. Allocate the regset on arch's obstack, not
7329 using xmalloc.
7330 * regset.h (regset_alloc): Update declaration.
7331 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
7332 gdbarch argument.
7333 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7334 * i386-tdep.c (i386_regset_from_core_section): Same.
7335 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7336 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7337 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7338 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7339 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7340 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7341
7342 2004-05-21 Joel Brobecker <brobecker@gnat.com>
7343
7344 * config/djgpp/fnchange.lst: Undo previous change, was useless.
7345
7346 2004-05-21 Jim Blandy <jimb@redhat.com>
7347
7348 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
7349 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
7350
7351 2004-05-20 Jim Blandy <jimb@redhat.com>
7352
7353 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
7354
7355 2004-05-20 Mark Kettenis <kettenis@gnu.org>
7356
7357 * regset.h: Make prototype const-correct.
7358 * regset.c (regset_xmalloc): Make const-correct.
7359
7360 2004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
7361
7362 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
7363 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
7364 (symbol_search_name): Declare.
7365
7366 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
7367 (iter_name_next_hashed): Ditto.
7368 (iter_name_next_linear): Ditto.
7369 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
7370
7371 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
7372 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
7373 (symbol_search_name): New function.
7374
7375 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
7376
7377 * minsyms.c (build_minimal_symbol_hash_tables): Change
7378 test for adding to demangled hash table to check for difference
7379 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
7380
7381 2004-05-19 Jim Blandy <jimb@redhat.com>
7382
7383 Use a constructor function to create regset structures.
7384 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
7385 (struct regset): Use supply_regset_ftype. Add new
7386 'collect_regset' member.
7387 (regset_xmalloc): New declaration.
7388 * regset.c: New file.
7389 * am64-tdep.c (amd64_regset_from_core_section): Use
7390 regset_xmalloc to construct regset structures.
7391 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7392 * i386-tdep.c (i386_regset_from_core_section): Same.
7393 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7394 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7395 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7396 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7397 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7398 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7399 * Makefile.in (COMMON_OBS): Add regset.o.
7400 (regset.o): New rule.
7401
7402 2004-05-19 Joel Brobecker <brobecker@gnat.com>
7403
7404 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
7405 and pthread_cond_wait.c.
7406
7407 2004-05-18 Jim Blandy <jimb@redhat.com>
7408
7409 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
7410 before the mach-specific switch, and then let the individual cases
7411 override the defaults, rather than leaving them uninitialized
7412 until the switch and then setting them in each case.
7413
7414 2004-05-18 Randolph Chung <tausq@debian.org>
7415
7416 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
7417 millicode functions.
7418
7419 2004-05-18 Randolph Chung <tausq@debian.org>
7420
7421 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
7422 references to dld_flags_buffer consistent.
7423
7424 2004-05-18 Randolph Chung <tausq@debian.org>
7425
7426 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
7427 it for unwinding the stack.
7428
7429 2004-05-18 Randolph Chung <tausq@debian.org>
7430
7431 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
7432 Undefine these so we can overide them using gdbarch.
7433
7434 2004-05-18 Randolph Chung <tausq@debian.org>
7435
7436 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
7437 handling for 64-bit HPUX (elf).
7438
7439 2004-05-18 Daniel Jacobowitz <dan@debian.org>
7440
7441 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
7442 constants.
7443 * amd64-tdep.c (amd64_skip_prologue): Likewise.
7444 * ia64-tdep.c (examine_prologue): Likewise.
7445 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
7446 * v850-tdep.c (v850_fix_call_dummy): Likewise.
7447
7448 2004-05-18 Mark Kettenis <kettenis@gnu.org>
7449
7450 * vax-tdep.c (vax_return_value): Implement
7451 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7452
7453 2004-05-17 Mark Kettenis <kettenis@gnu.org>
7454
7455 * vax-tdep.c (vax_return_value): Fix typo.
7456
7457 2004-05-17 Andrew Cagney <cagney@redhat.com>
7458
7459 * MAINTAINERS: Mark Salter was also responsible for
7460 testsuite/config/
7461
7462 * NEWS: Mention signal fixes.
7463
7464 2004-05-17 Randolph Chung <tausq@debian.org>
7465
7466 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
7467 check to see if we are unwinding an export stub. Export stubs clobber
7468 the %rp in the call path and stores the original rp in a stack slot.
7469
7470 2004-05-17 Jim Blandy <jimb@redhat.com>
7471
7472 * MAINTAINERS: Update address for J.T. Conklin.
7473
7474 2004-05-17 Randolph Chung <tausq@debian.org>
7475
7476 * hppa-tdep.c: Remove superfluous #include's.
7477 * Makefile.in (hppa-tdep.o): Update dependencies.
7478
7479 2004-05-17 Randolph Chung <tausq@debian.org>
7480
7481 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
7482 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
7483 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
7484 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
7485 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
7486 Remove static function declarations.
7487
7488 2004-05-17 Mark Kettenis <kettenis@gnu.org>
7489
7490 * alphabsd-nat.c: Update copyright year.
7491 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
7492
7493 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
7494 and M68K_A2_REGNUM.
7495
7496 * m68k-tdep.c (m68k_svr4_return_value): Implement
7497 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7498
7499 2004-05-16 Mark Kettenis <kettenis@gnu.org>
7500
7501 * sol-thread.c Update copyright year. Fix various coding
7502 standards violations. Tweak a few comments.
7503 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
7504 Delete prototypes.
7505
7506 2004-05-15 Randolph Chung <tausq@debian.org>
7507
7508 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
7509 as pointer instead of array reference since HPUX compiler does
7510 not accept unsized array arguments.
7511 * somsolib.c (dld_flags_buffer): Use constant array size.
7512
7513 2004-05-15 Mark Kettenis <kettenis@gnu.org>
7514
7515 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
7516 offset with decimal offset.
7517 (amd64obsd_sigcontext_addr): Return correct address for entire
7518 signal trampoline.
7519
7520 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
7521 instead of get_frame_base.
7522
7523 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
7524 (fill_gregset): Use regcache_raw_collect.
7525
7526 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
7527 ppcobsd-tdep.c.
7528
7529 * config/sparc/tm-nbsd64.h: Remove file.
7530 * config/tm-sunos.h: Remove file.
7531
7532 2004-05-15 Joel Brobecker <brobecker@gnat.com>
7533
7534 * rs6000-tdep.c (store_param_on_stack_p): New function,
7535 an improved version of some code extracted from skip_prologue().
7536 (skip_prologue): Use store_param_on_stack_p() to detect
7537 instructions saving a parameter on the stack. Detect when r0
7538 is used to save a parameter.
7539 Do not mark "li rx, SIMM" instructions as part of the prologue,
7540 unless the following instruction is also part of the prologue.
7541
7542 2004-05-14 Andrew Cagney <cagney@redhat.com>
7543
7544 * infrun.c (handle_inferior_event): Simplify
7545 STEP_OVER_UNDEBUGGABLE.
7546
7547 * infrun.c (handle_step_into_function): Delete function.
7548 (handle_inferior_event): Inline calls to
7549 handle_step_into_function.
7550
7551 2004-05-14 Jerome Guitton <guitton@gnat.com>
7552
7553 * rs6000-nat.c: Fix a comment.
7554
7555 2004-05-12 David Anderson <davea@sgi.com>
7556
7557 Committed by Jim Blandy <jimb@redhat.com>:
7558 * regcache.c (struct regcache_descr): fix comment spelling.
7559
7560 2004-05-13 J. Brobecker <brobecker@gnat.com>
7561
7562 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
7563 Fixes a link link failure.
7564
7565 2004-05-13 J. Brobecker <brobecker@gnat.com>
7566
7567 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
7568 error that was causing the build to fail.
7569
7570 2004-05-13 J. Brobecker <brobecker@gnat.com>
7571
7572 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
7573 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
7574
7575 2004-05-13 Andrew Cagney <cagney@redhat.com>
7576
7577 * infrun.c (handle_inferior_event): Check for
7578 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
7579 calls. Update comments.
7580
7581 2004-05-13 Jim Blandy <jimb@redhat.com>
7582
7583 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
7584 (fetch_regs_user_thread, fetch_regs_kernel_thread)
7585 (store_regs_user_thread, store_regs_kernel_thread): Use
7586 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
7587 * ppc-linux-nat.c (fill_gregset): Same.
7588 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
7589 (ppc_linux_sigtramp_cache): Same.
7590 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
7591 (ppcnbsd_sigtramp_cache_init): Same.
7592 * rs6000-nat.c (fetch_core_registers): Same.
7593 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
7594 (rs6000_frame_cache): Same.
7595
7596 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
7597 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
7598 of assuming that the gprs are numbered starting with zero.
7599 * ppc-linux-nat.c (fill_gregset): Same.
7600 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
7601 * ppcnbsd-nat.c (getregs_supplies): Same.
7602 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
7603 * rs6000-nat.c (fetch_core_registers): Same.
7604 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
7605
7606 2004-05-07 Michael Snyder <msnyder@redhat.com>
7607
7608 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
7609 LOC_COMPUTED_ARG, and LOC_INDIRECT.
7610
7611 2004-05-13 Andrew Cagney <cagney@redhat.com>
7612
7613 * infrun.c (handle_inferior_event): Use frame_unwind_id.
7614
7615 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
7616
7617 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
7618 base_address for shared libraries.
7619
7620 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
7621
7622 * MAINTAINERS (write after approval): Add myself.
7623
7624 2004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
7625
7626 * breakpoint.c (bpstat_stop_status): Add new argument
7627 STOPPED_BY_WATCHPOINT. Use it instead of testing
7628 target_stopped_data_address agaist 0 to check whether
7629 or not we stopped due to a hardware watchpoint.
7630 * breakpoint.h (bpstat_stop_status): Adapt prototype.
7631 * infrun.c (handle_inferior_event): Call bpstat_stop_status
7632 with new argument.
7633
7634 2004-05-12 Jim Blandy <jimb@redhat.com>
7635
7636 * configure.in: When checking whether we should use the -bbigtoc
7637 option, don't forget to restore the original value of LDFLAGS.
7638 * configure: Regenerated.
7639
7640 2004-05-12 Andrew Cagney <cagney@redhat.com>
7641
7642 * thread.c (load_infrun_state): Delete step_sp.
7643 * infrun.c (context_switch): Ditto.
7644 * inferior.h (step_sp): Ditto.
7645 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
7646 * gdbthread.h (struct thread_info, save_infrun_state)
7647 (restore_infrun_state): Ditto.
7648
7649 2004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
7650
7651 * MAINTAINERS (write after approval): Add myself.
7652
7653 2004-05-12 Andrew Cagney <cagney@redhat.com>
7654
7655 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
7656 eliminate reference to step_sp.
7657 (struct execution_control_state, init_execution_control_state)
7658 (handle_inferior_event, keep_going): Delete update_step_sp and
7659 step_sp.
7660 * infcmd.c (step_sp): Note that variable is unused.
7661
7662 2004-05-11 Andrew Cagney <cagney@redhat.com>
7663
7664 * infrun.c (step_over_function): Delete function.
7665 (handle_step_into_function): Use insert_step_resume_breakpoint.
7666 (insert_step_resume_breakpoint): Fix assertion.
7667
7668 2004-05-11 Nick Roberts <nickrob@gnu.org>
7669
7670 * utils.c (defaulted_query): Just use the normal query input type
7671 when printing the annotations.
7672
7673 2004-05-11 Andrew Cagney <cagney@redhat.com>
7674
7675 * infrun.c (handle_inferior_event): Simplify code handling
7676 step-into or return-from a signal trampoline.
7677
7678 2004-05-11 Andrew Cagney <cagney@redhat.com>
7679
7680 * ppcnbsd-tdep.c: Include "gdb_assert.h".
7681 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
7682
7683 2004-05-10 Jim Blandy <jimb@redhat.com>
7684
7685 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
7686 with a call to internal_error.
7687
7688 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
7689 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
7690 processor variant lacks those registers.
7691 (ppc_floating_point_unit_p): Change description to make it clear
7692 that this returns info about the ISA, not the ABI.
7693 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
7694 return true or false by checking tdep->ppc_fp0_regnum and
7695 tdep->ppc_fpscr_regnum. The original code replicated the BFD
7696 arch/mach switching done in rs6000_gdbarch_init; it's better to
7697 keep that logic there, and just check the results here.
7698 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
7699 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
7700 floating-point registers.
7701 (ppc_supply_fpregset, ppc_collect_fpregset)
7702 (rs6000_push_dummy_call, rs6000_extract_return_value)
7703 (rs6000_store_return_value): Assert that we have floating-point
7704 registers.
7705 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
7706 (rs6000_frame_cache): Don't note the locations at which
7707 floating-point registers were saved if we have no fprs.
7708 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
7709 registers.
7710 (fetch_regs_user_thread, fetch_regs_kernel_thread)
7711 (store_regs_user_thread, store_regs_kernel_thread): Only call
7712 supply_fprs / fill_fprs if we actually have floating-point
7713 registers.
7714 (special_register_p): Check ppc_fpscr_regnum before matching
7715 against it.
7716 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
7717 supply / collect fpscr if we don't have it.
7718 * ppc-bdm.c: #include "gdb_assert.h".
7719 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
7720 have floating-point registers, since I can't test this code on
7721 FP-free systems to adapt it.
7722 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
7723 fpscr and floating point register numbers if they don't exist.
7724 (fetch_register): Assert that we have floating-point registers
7725 before we reach the code that handles them.
7726 (store_register): Same. And use tdep instead of calling
7727 gdbarch_tdep again.
7728 (fill_fpregset): Don't try to collect FP registers and fpscr if we
7729 don't have them.
7730 (ppc_linux_sigtramp_cache): Don't record the saved locations of
7731 fprs and fpscr if we don't have them.
7732 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
7733 don't have them.
7734 * ppcnbsd-nat.c: #include "gdb_assert.h".
7735 (getfpregs_supplies): Assert that we have floating-point registers.
7736 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
7737 * ppcobsd-tdep.c: #include "gdb_assert.h".
7738 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
7739 have floating-point registers.
7740 * rs6000-nat.c (regmap): Don't match against the fpscr and
7741 floating point register numbers if they don't exist.
7742 (fetch_inferior_registers, store_inferior_registers,
7743 fetch_core_registers): Only fetch / store / supply the
7744 floating-point registers and the fpscr if we have them.
7745 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
7746 (ppcobsd-tdep.o): Update dependencies.
7747
7748 2004-05-10 Andrew Cagney <cagney@redhat.com>
7749
7750 * infrun.c (through_sigtramp_breakpoint): Delete variable.
7751 (context_switch): Do not switch through_sigtramp_breakpoint.
7752 * gdbthread.h (save_infrun_state, load_infrun_state)
7753 (struct thread_info): Delete through_sigtramp_breakpoint parameter
7754 and structure member.
7755 * thread.c (load_infrun_state, save_infrun_state): Update.
7756
7757 2004-05-10 Mark Kettenis <kettenis@gnu.org>
7758
7759 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
7760
7761 2004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
7762
7763 * acinclude.m4: Quote macro names being defined by AC_DEFUN
7764 throughout.
7765 * aclocal.m4: Regenerate.
7766
7767 2004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
7768
7769 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
7770
7771 2004-05-10 Andrew Cagney <cagney@redhat.com>
7772
7773 * infrun.c (check_sigtramp2): Delete function.
7774 (handle_inferior_event): When single stepping, and taking a
7775 signal, set a breakpoint at the signal return address. Delete
7776 redundant calls to check_sigtramp2.
7777 (insert_step_resume_breakpoint): New function.
7778 (through_sigtramp_breakpoint, handle_inferior_event)
7779 (follow_exec, wait_for_inferior, fetch_inferior_event)
7780 (currently_stepping, keep_going): Delete most uses of
7781 through_sigtramp_breakpoint, not that it should be deleted.
7782 (delete_breakpoint_current_contents): Delete function.
7783
7784 2004-05-10 Randolph Chung <tausq@debian.org>
7785
7786 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
7787 target.
7788 * config/pa/tm-linux.h: New file.
7789
7790 2004-05-10 Daniel Jacobowitz <drow@mvista.com>
7791
7792 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
7793 of prefixes. Don't print the prefix twice in the CLI.
7794
7795 2004-05-10 Jim Blandy <jimb@redhat.com>
7796
7797 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
7798 collect all the gprs.
7799
7800 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
7801 loop collecting gprs.
7802
7803 2004-05-09 Andrew Cagney <cagney@redhat.com>
7804
7805 * remote-vx.c (net_step): Delete step-range code.
7806 * remote.c (remote_resume, init_all_packet_configs)
7807 (set_remote_protocol_E_packet_cmd)
7808 (show_remote_protocol_E_packet_cmd)
7809 (remote_protocol_E, show_remote_cmd, _initialize_remote)
7810 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
7811 (show_remote_protocol_e_packet_cmd): Ditto.
7812
7813 2004-05-09 Mark Kettenis <kettenis@gnu.org>
7814
7815 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
7816
7817 * hppa-tdep.h: Update copyright year.
7818 (struct trad_frame_saved_reg): Add opaque declaration.
7819
7820 * amd64-tdep.c (amd64_return_value): Implement
7821 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7822
7823 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
7824 (m68k_value_to_register): New functions.
7825 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
7826 value_to_register.
7827
7828 * defs.h (enum return_value_convention): Add
7829 RETURN_VALUE_ABI_RETURNS_ADDRESS and
7830 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
7831 * infcmd.c (legacy_return_value): New function.
7832 (print_return_value): Rwerite to implement
7833 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7834 * values.c (using_struct_return): Check for inequality to
7835 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
7836 RETURN_VALUE_STRUCT_CONVENTION.
7837 * i386-tdep.c (i386_return_value): Implement
7838 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7839
7840 * vax-tdep.c: Tweak comments. Reorder include files. Don't
7841 include "symtab.h", "opcode/vax.h" and "inferior.h".
7842 (vax_skip_prologue): Replace calls to read_memory_integer by calls
7843 to read_memory_unsigned_integer.
7844 (vax_gdbarch_init): Reorder.
7845 (_initialize_vax_tdep): Spell out prototype.
7846 * Makefile.in (vax-tdep.o): Update dependencies.
7847
7848 2004-05-08 Andrew Cagney <cagney@redhat.com>
7849
7850 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
7851 * target.c (target_detach, target_disconnect): Ditto.
7852
7853 * infcall.c (call_function_by_hand): When no
7854 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
7855 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
7856 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
7857 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7858 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7859
7860 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
7861 * gdbarch.h, gdbarch.c: Re-generate.
7862 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7863 deprecated_fix_call_dummy.
7864 * v850-tdep.c (v850_gdbarch_init): Ditto.
7865 * infcall.c (call_function_by_hand): Do not call
7866 DEPRECATED_FIX_CALL_DUMMY.
7867
7868 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
7869 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
7870 * gdbarch.h, gdbarch.c: Re-generate.
7871 * arm-linux-tdep.c (arm_linux_call_dummy_words)
7872 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
7873 deprecated_sizeof_call_dummy_words.
7874 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
7875 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7876 * v850-tdep.c (v850_gdbarch_init): Ditto.
7877 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
7878 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
7879 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7880 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7881 * arch-utils.h (legacy_call_dummy_words)
7882 (legacy_sizeof_call_dummy_words): Delete declarations.
7883 * arch-utils.c (legacy_call_dummy_words)
7884 (legacy_sizeof_call_dummy_words): Delete variables.
7885
7886 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
7887 * gdbarch.h, gdbarch.c: Re-generate.
7888 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
7889 * infcall.c (call_function_by_hand): Eliminate call to
7890 DEPRECATED_PUSH_DUMMY_FRAME.
7891 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
7892 push_dummy_frame.
7893 (ns32k_push_dummy_frame): Delete function.
7894
7895 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7896 deprecated_call_dummy_breakpoint_offset or
7897 deprecated_call_dummy_start_offset.
7898 * dummy-frame.c, arm-tdep.c: Update comments.
7899 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
7900 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
7901 * gdbarch.h, gdbarch.c: Re-generate.
7902
7903 * infcall.c (legacy_push_dummy_code): Delete function.
7904 (push_dummy_code): Delete call.
7905
7906 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
7907 * gdbarch.h, gdbarch.c: Re-generate.
7908 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
7909 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
7910 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
7911 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
7912
7913 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
7914 (struct frame_info): Delete opaque declaration.
7915 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
7916 * frame.c (get_frame_type): Delete call.
7917
7918 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
7919 pc_in_call_dummy.
7920 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
7921 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
7922
7923 2004-05-08 Mark Kettenis <kettenis@gnu.org>
7924
7925 * alphanbsd-tdep.c: Include "gdb_string.h".
7926 * armnbsd-tdep.c: Update copyright year.
7927 Include "gdb_string.h".
7928 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
7929 dependencies.
7930
7931 * delta68-nat.c: Remove file.
7932 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
7933 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
7934 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
7935 (delta68-nat.o): Remove dependency.
7936
7937 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
7938 function.
7939 (m68k_gdbarch_init): Don't set
7940 deprecated_frameless_function_invocation.
7941
7942 2004-05-07 Randolph Chung <tausq@debian.org>
7943
7944 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
7945 read_memory_nobpt for code reading when doing frame unwinding.
7946 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
7947
7948 2004-05-07 Randolph Chung <tausq@debian.org>
7949
7950 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
7951 instead of sp, handle sigaltstack case.
7952 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
7953 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
7954 signal handler and not that of the caller.
7955 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
7956 hppa_linux_sigtramp_find_sigcontext.
7957
7958 2004-05-07 Randolph Chung <tausq@debian.org>
7959
7960 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
7961 hppa-linux-nat.c.
7962 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
7963 * hppa-linux-nat.c (fetch_register, store_register): Define.
7964 (fetch_inferior_registers, store_inferior_registers): Define.
7965 (supply_gregset): Add comment and clean up some unneeded code.
7966 (fill_gregset): Add comment and fix so that it saves registers in
7967 the right place in the gregset.
7968 (fill_fpregset): Fix buffer overrun problem.
7969 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
7970
7971 2004-05-07 Randolph Chung <tausq@debian.org>
7972
7973 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
7974 do common handling of the pcoqt register.
7975 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
7976 to use helper function.
7977 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
7978 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
7979 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
7980 generic fallback unwinder when all else fails.
7981 (hppa_gdbarch_init): Add fallback sniffer.
7982 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
7983 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
7984 to use helper function.
7985
7986 2004-05-08 Joel Brobecker <brobecker@gnat.com>
7987
7988 * config/djgpp/fnchange.lst: Add translation rules for
7989 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
7990
7991 2004-05-08 Mark Kettenis <kettenis@gnu.org>
7992
7993 * frame.c (get_prev_frame_1): Work around GCC bug.
7994 * frame.h: Add comment about GCC bug.
7995
7996 2004-05-07 Andrew Cagney <cagney@redhat.com>
7997
7998 * observer.c: Include "commands.h" and "gdbcmd.h".
7999 (observer_debug, _initialize_observer): Add the
8000 command "set/show debug observer".
8001 * observer.sh: When observer debugging, log notify calls.
8002 * Makefile.in (observer.o): Update dependencies.
8003
8004 2004-05-07 Jason Molenda (jmolenda@apple.com)
8005
8006 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
8007
8008 2004-05-07 Jim Blandy <jimb@redhat.com>
8009
8010 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
8011 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
8012 to recognize gpr regnums, instead of assuming that
8013 tdep->ppc_fp0_regnum marks the end of the general-purpose
8014 registers.
8015
8016 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
8017 the given architecture has floating-point registers.
8018
8019 2004-05-07 Andrew Cagney <cagney@redhat.com>
8020
8021 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
8022 macro defined to 1.
8023 * gdbarch.h, gdbarch.c: Re-generate.
8024 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
8025 deprecated_use_generic_dummy_frames.
8026
8027 2004-05-07 Brian Ford <ford@vss.fsi.com>
8028
8029 * NEWS: Mention Cygwin DWARF 2 support.
8030
8031 2004-05-07 Andrew Cagney <cagney@redhat.com>
8032
8033 * objfiles.h (struct entry_info): Delete unused fields
8034 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
8035 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
8036 * mipsread.c (mipscoff_symfile_read): Update.
8037 * mdebugread.c (parse_partial_symbols): Update.
8038 * dwarfread.c (read_file_scope): Update.
8039 * dwarf2read.c (read_file_scope): Update.
8040 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
8041 * coffread.c (complete_symtab): Update.
8042
8043 2004-05-07 Mark Kettenis <kettenis@gnu.org>
8044
8045 * infcall.c (_initialize_infcall): Fix typo.
8046
8047 2004-05-07 Andrew Cagney <cagney@redhat.com>
8048
8049 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
8050 * command.h (add_setshow_zinteger_cmd): Declare.
8051
8052 2004-05-06 Randolph Chung <tausq@debian.org>
8053
8054 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
8055 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
8056 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
8057 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
8058 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
8059 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
8060 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
8061 definitions ...
8062 * hppa-tdep.h: ... to here, with HPPA_ prefix.
8063 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
8064 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
8065 (hppa64_hpux_frame_find_saved_regs_in_sig)
8066 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
8067 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
8068 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
8069 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
8070 (hppa_linux_sigtramp_frame_prev_register): Likewise.
8071 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
8072 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
8073 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
8074 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
8075 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
8076 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
8077 (hppa32_register_type, hppa_cannot_store_register)
8078 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
8079 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
8080 * hpread.c (hpread_process_one_debug_symbol): Likewise.
8081 * pa64solib.c (pa64_solib_have_load_event)
8082 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
8083 (pa64_solib_unloaded_library_pathname): Likewise.
8084 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
8085 (som_solib_library_pathname): Likewise.
8086
8087 2004-05-05 Jim Ingham <jingham@apple.com>
8088
8089 * breakpoint.c (create_breakpoints): Copy the ignore count and
8090 thread id over from the pended breakpoint to the actual
8091 breakpoint.
8092
8093 2004-05-05 Andrew Cagney <cagney@redhat.com>
8094
8095 * gdbarch.sh (PARM_BOUNDARY): Delete.
8096 gdbarch.h, gdbarch.c: Re-generate.
8097 * valops.c (PARM_BOUNDARY): Delete macro.
8098 (value_push): Delete PARM_BOUNDARY code.
8099 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
8100
8101 2004-05-04 Jim Blandy <jimb@redhat.com>
8102
8103 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
8104 Don't assume that the gprs, fprs, and UISA sprs are
8105 contiguous, start at register number zero, and end with fpscr.
8106 Instead, use the numbers from the tdep structure.
8107
8108 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
8109 should no longer be used in code specific to the RS6000 and its
8110 derivatives.
8111 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
8112 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
8113 tdep->ppc_fp0_regnum.
8114 (ppc_supply_fpregset, ppc_collect_fpregset)
8115 (rs6000_push_dummy_call, rs6000_extract_return_value)
8116 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
8117 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
8118 FP0_REGNUM.
8119 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
8120 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
8121 Same.
8122 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
8123 bdm_ppc_store_registers): Same.
8124 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
8125 (store_register, fill_fpregset): Same.
8126 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
8127 (ppc_linux_supply_fpregset): Same.
8128 * ppcnbsd-nat.c (getfpregs_supplies): Same.
8129 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
8130 Same.
8131 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
8132 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
8133 ppc64_sysv_abi_return_value): Same.
8134 * rs6000-nat.c (regmap, fetch_inferior_registers)
8135 (store_inferior_registers, fetch_core_registers): Same.
8136
8137 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8138
8139 * m68knbsd-nat.c: Remove file.
8140 * m68knbsd-tdep.c: Remove file.
8141 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
8142 dependencies.
8143 * configure.host: Add m68k-*-netbsdelf*.
8144 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
8145 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
8146 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
8147 (XM_FILE): Remove.
8148 * config/m68k/nbsdelf.mh: New file.
8149 * config/m68k/nbsd.mt: New file.
8150 * config/m68k/nbsdaout.mt: Remove file.
8151 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
8152 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
8153 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
8154 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
8155 (use_struct_convention): Remove prototype.
8156 (USE_STRUCT_CONVENTION): Remove define.
8157 * config/m68k/xm-nbsd.h: Remove file.
8158
8159 2004-05-04 Michael Snyder <msnyder@redhat.com>
8160
8161 * m68k-tdep.c (m68k_gdbarch_init): Default to using
8162 reg_struct_return method (as gcc usually does for cross targets).
8163
8164 2004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8165
8166 Committed by Andrew Cagney.
8167 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
8168 alignment padding when accessing ucontext struct members.
8169
8170 2004-05-04 Jim Blandy <jimb@redhat.com>
8171
8172 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
8173 'ppc_gplast_regnum' member.
8174 (ppc_num_gprs): New enum constant.
8175 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
8176 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
8177 * rs6000-nat.c (regmap, fetch_inferior_registers,
8178 store_inferior_registers): Same.
8179 * rs6000-tdep.c (e500_pseudo_register_read)
8180 (e500_pseudo_register_write): Same.
8181 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
8182
8183 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
8184 * ppc-tdep.h (ppc_num_fprs): New enum constant.
8185 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
8186 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
8187 FPLAST_REGNUM.
8188 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8189 Same.
8190 * ppc-linux-nat.c (ppc_register_u_addr): Same.
8191 * rs6000-nat.c (regmap, fetch_inferior_registers)
8192 (store_inferior_registers): Same.
8193
8194 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
8195 with FPLAST_REGNUM.
8196
8197 2004-05-03 Joel Brobecker <brobecker@gnat.com>
8198
8199 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
8200 failure detected by recent versions of GCC.
8201 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
8202 to be consistent with the usage in dwarf2_create_include_psymtab.
8203
8204 2004-05-03 Michael Snyder <msnyder@redhat.com>
8205
8206 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
8207 (heuristic_proc_start): Whitespace cleanup.
8208
8209 2004-05-04 Mark Kettenis <kettenis@gnu.org>
8210
8211 * sun3-nat.c: Remove file.
8212 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
8213 dependencies.
8214 (ALLDEPFILES): Remove sun3-nat.c.
8215 (sun3-nat.o): Remove dependencies.
8216
8217 * i386-interix-nat.c, i386-interix-tdep.c,
8218 config/i386/nm-interix.h, config/i386/interix.mh,
8219 config/i386/interix.mt: Remove files.
8220 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
8221 dependencies.
8222
8223 2004-05-03 Mark Kettenis <kettenis@gnu.org>
8224
8225 * m68k-tdep.h (struct gdbarch_tdep): Add member
8226 struct_value_regnum.
8227 (m68k_svr4_init_abi): New prototype.
8228 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
8229 different calling conventions.
8230 (m68k_extract_return_value): Remove code dealing with single-field
8231 structs.
8232 (m68k_store_return_value): Remove code dealing with single-field
8233 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
8234 (m68k_extract_struct_value_address): Remove function.
8235 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
8236 (m68k_reg_struct_return_p, m68k_return_value)
8237 (m68k_svr4_return_value): New functions.
8238 (m68k_use_struct_convention): Remove function.
8239 (m68k_push_dummy_call): Use new struct_value_regnum member of
8240 `struct gdbarch_tdep' instead of hardcoded register number to
8241 store STRUCT_ADDR.
8242 (m68k_svr4_init_abi): New function.
8243 (m68k_gdbarch_init): Don't set extract_return_value,
8244 store_return_values, deprecated_extract_struct_value_address and
8245 use_struct_convention. Set return_value instead. Initialize new
8246 struct_value_regnum member of `struct gdbarch_tdep'.
8247 * m68klinux-tdep.c: Update copyright year.
8248 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
8249 (m68k_linux_extract_struct_value_address): Remove function.
8250 (m68k_linux_init_abi): Don't set extract_return_value,
8251 store_return_values, deprecated_extract_struct_value_address and
8252 use_struct_convention. Call m68k_svr4_init_abi but override the
8253 new struct_value_regnum member of `struct gdbarch_tdep'.
8254 * Makefile.in (m68k-tdep.o): Update dependencies.
8255
8256 2004-05-03 J. Brobecker <brobecker@gnat.com>
8257
8258 * dwarf2read.c (line_header): Add new included_p field in
8259 field file_names.
8260 (partial_die_info): New field has_stmt_list. New field line_offset.
8261 (dwarf2_create_include_psymtab): New function.
8262 (dwarf2_build_include_psymtabs): New function.
8263 (add_file_name): Add forward declaration. Initialize new field.
8264 (dwarf_decode_lines): Add new parameter. Enhance this procedure
8265 to be able to determine the list of files included by the
8266 given unit, and build their associated psymtabs.
8267 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
8268 files as well.
8269 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
8270 (read_file_scope): Update call to dwarf_decode_lines.
8271 (read_partial_die): Handle DW_AT_stmt_list attributes.
8272
8273 2004-05-02 Michael Chastain <mec.gnu@mindspring.com>
8274
8275 Unfix PR gdb/1626.
8276 * configure.in: Revert special case for osf5.*.
8277 * configure: Regenerate.
8278
8279 2004-05-02 Jim Blandy <jimb@redhat.com>
8280
8281 Move the symbol-file-from-memory functions into their own file.
8282 * symfile-mem.c, symfile-mem.h: New files.
8283 * symfile.c (symbol_file_add_from_bfd): New function.
8284 (symbol_file_add): Call symbol_file_add_from_bfd.
8285 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
8286 Moved to symfile-mem.c.
8287 (_initialize_symfile): Move definition of
8288 add-symbol-file-from-memory command to symfile-mem.c.
8289 * symfile.h (symbol_file_add_from_bfd): New declaration.
8290 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
8291 * config/powerpc/linux.mt (TDEPFILES): Same.
8292 * Makefile.in (SFILES): Add symfile-mem.c.
8293 (symfile_mem_h): New variable.
8294 (HFILES_NO_SRCDIR): Add symfile-mem.h.
8295 (symfile-mem.o): New rule.
8296
8297 2004-05-01 Andrew Cagney <cagney@redhat.com>
8298
8299 * breakpoint.c (insert_bp_location): Use get_frame_id, and
8300 frame_find_by_id instead of frame_relative_level.
8301 (do_enable_breakpoint): Ditto.
8302 * thread.c: Update copyright.
8303 (info_threads_command): Ditto, simplify.
8304
8305 * frame.c (deprecated_generic_get_saved_register): Delete
8306 function, moved to "xstormy16-tdep.c".
8307 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
8308 deprecated_generic_get_saved_register from "frame.c".
8309 (xstormy16_frame_saved_register): Call
8310 xstormy16_get_saved_register.
8311 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
8312 static.
8313 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
8314 * frame.h (deprecated_generic_get_saved_register): Delete.
8315
8316 2004-05-01 Michael Chastain <mec.gnu@mindspring.com>
8317
8318 * dwarfread.c: Update documentation on the state of dwarf-1.
8319
8320 2004-05-01 Andrew Cagney <cagney@redhat.com>
8321
8322 * stack.c (select_frame_command): Delete call to
8323 frame_relative_level.
8324 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
8325 Delete #if0 code.
8326 (frame_info): Do not print FRAMELESS.
8327 (print_block_frame_labels): Replace DEPRECATED_STREQ.
8328 (catch_info): Delete #if0 code.
8329
8330 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
8331 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
8332 of frame_relative_level.
8333 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
8334 to SENTINEL_FRAME.
8335 * frame.h (enum frame_type): Add SENTINEL_FRAME.
8336 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
8337 frame_relative_level.
8338
8339 * frame.h (deprecated_set_frame_type): Delete declaration.
8340 * frame.c (deprecated_set_frame_type): Delete function, update
8341 comments.
8342
8343 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
8344 * gdbarch.h, gdbarch.c: Re-generate.
8345 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
8346 (shnbsd_pc_in_sigtramp): Delete.
8347 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
8348 pc_in_sigtramp.
8349 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
8350 pc_in_sigtramp.
8351 * frame.h: Update comments.
8352 * ppc-linux-tdep.c: Update comments.
8353 * breakpoint.c (bpstat_what): Update comments.
8354
8355 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
8356 m68klinux-tdep.o's dependencies, were previously added to
8357 m68klinux-nat.o.
8358
8359 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
8360 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
8361 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
8362 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
8363 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
8364
8365 * Makefile.in (m68klinux-nat.o): Update dependencies.
8366 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8367 (m68k_linux_sigtramp_frame_cache)
8368 (m68k_linux_sigtramp_frame_this_id)
8369 (m68k_linux_sigtramp_frame_prev_register)
8370 (m68k_linux_sigtramp_frame_unwind)
8371 (m68k_linux_sigtramp_frame_sniffer)
8372 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
8373 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
8374 names, use trad-frame.h.
8375 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
8376 (struct m68k_sigtramp_info): Delete.
8377 * m68k-tdep.c (m68k_sigtramp_frame_cache)
8378 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
8379 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
8380 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
8381 "m68klinux-tdep.c".
8382
8383 * infrun.c (check_sigtramp2): Delete check for
8384 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
8385
8386 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8387
8388 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
8389
8390 2004-05-01 Andrew Cagney <cagney@redhat.com>
8391
8392 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8393 (frv_linux_sigtramp_frame_cache)
8394 (frv_linux_sigtramp_frame_this_id)
8395 (frv_linux_sigtramp_frame_prev_register)
8396 (frv_linux_sigtramp_frame_unwind)
8397 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
8398 include "linux" in function and variable names, directly call
8399 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
8400 the latest trad-frame code.
8401 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
8402 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
8403 * Makefile.in (frv-linux-tdep.o): Update dependencies.
8404 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
8405 * frv-tdep.c (frv_sigtramp_frame_cache)
8406 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
8407 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
8408 frv-linux-tdep.c.
8409 (frv_gdbarch_init): Do not append a sigtramp sniffer.
8410 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
8411 (frv_set_sigcontext_reg_addr): Delete function.
8412
8413 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
8414 (DEPRECATED_SIGTRAMP_END): Delete.
8415 * gdbarch.h, gdbarch.c: Re-generate.
8416 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
8417 * config/vax/tm-vaxbsd.h: Update copyright.
8418 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8419 (DEPRECATED_IN_SIGTRAMP): Define.
8420 * config/m68k/tm-nbsd.h: Update copyright.
8421 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8422 (DEPRECATED_IN_SIGTRAMP): Define.
8423
8424 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8425
8426 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
8427 encondings. Fixes PR gdb/1628.
8428
8429 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
8430 DW_CFA_restore state without a matching DW_CFA_remember_state
8431 instead of aborting. Fixes PR backtrace/1589.
8432
8433 2004-04-30 Joel Brobecker <brobecker@gnat.com>
8434
8435 * MAINTAINERS: Add self as AIX maintainer.
8436 Update my e-mail address in write-after-approval section.
8437
8438 2004-04-30 Andrew Cagney <cagney@redhat.com>
8439
8440 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
8441 (legacy_get_prev_frame): Ditto.
8442
8443 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
8444 (mips_gdbarch_init): Do not set pc_in_sigtramp.
8445 * mipsread.c (sigtramp_address): Delete extern variable.
8446 (mipscoff_new_init): Delete reference.
8447 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
8448 (fixup_sigtramp): Delete function.
8449 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
8450 (fixup_sigtramp): Delete declarations.
8451
8452 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
8453 deprecated_pc_in_sigtramp.
8454 (ppcnbsd_pc_in_sigtramp): Delete function.
8455
8456 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8457
8458 * config/m68k/nm-nbsd.h: Tweak comments.
8459 * config/m68k/nm-nbsdaout.h: Likewise.
8460
8461 2004-04-30 Andrew Cagney <cagney@redhat.com>
8462
8463 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
8464 legacy_pc_in_sigtramp.
8465 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
8466
8467 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8468
8469 Add OpenBSD/m68k support.
8470 * NEWS (New native configurations): Mention OpenBSD/m68k.
8471 * m68kbsd-tdep.c: New file.
8472 * m68kbsd-nat.c: New file.
8473 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
8474 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
8475 * configure.host: Add m68k-*-openbsd.
8476 * configure.tgt: Add m68k-*-openbsd.
8477 * config/m68k/tm-obsd.h: New file.
8478 * config/m68k/obsd.mt: New file.
8479 * config/m68k/obsd.mh: New file.
8480 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
8481 m68kbsd-tdep.c.
8482
8483 2004-04-30 Andrew Cagney <cagney@redhat.com>
8484
8485 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
8486 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
8487
8488 2004-04-30 Mark Kettenis <kettenis@gnu.org>
8489
8490 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
8491 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
8492
8493 2004-04-30 Brian Ford <ford@vss.fsi.com>
8494
8495 Revert 2004-04-16 change.
8496 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
8497 (i386_coff_init_abi): Remove.
8498 * i386-tdep.h (i386_coff_init_abi): Remove.
8499 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
8500
8501 2004-04-30 Andrew Cagney <cagney@redhat.com>
8502
8503 * blockframe.c (find_pc_partial_function): Delete use of
8504 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
8505 DEPRECATED_SIGTRAMP_END.
8506
8507 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
8508 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
8509 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
8510 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
8511 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
8512
8513 * defs.h (deprecated_inside_entry_file): Delete declaration.
8514 * blockframe.c (deprecated_inside_entry_file): Delete function.
8515 (legacy_frame_chain_valid): Delete call.
8516 * sh64-tdep.c (sh64_frame_chain): Delete call.
8517 * objfiles.h: Update comments.
8518 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
8519 call.
8520 * frame.c (get_prev_frame): Delete call, update comments.
8521
8522 2004-04-30 Brian Ford <ford@vss.fsi.com>
8523
8524 * MAINTAINERS (Write After Approval): Add myself.
8525
8526 2004-04-30 Andrew Cagney <cagney@redhat.com>
8527
8528 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
8529 * gdbarch.h, gdbarch.c: Re-generate.
8530 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
8531 code.
8532
8533 2004-04-30 Andrew Cagney <cagney@redhat.com>
8534
8535 * gdb-events.sh (selected_thread_changed)
8536 (selected_frame_level_changed, target_changed): Delete.
8537 * gdb-events.h, gdb-events.c: Re-generate.
8538 * valops.c (value_assign): Update.
8539 * stack.c (select_frame_command, up_silently_base)
8540 (down_silently_base): Update.
8541
8542 2004-04-29 Andrew Cagney <cagney@redhat.com>
8543
8544 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
8545 registers correctly.
8546 (print_gp_register_row, mips32_heuristic_proc_desc)
8547 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
8548 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
8549 references to mips_isa_regsize.
8550
8551 2004-04-29 Andrew Cagney <cagney@redhat.com>
8552
8553 * mips-tdep.c (struct gdbarch_tdep): Delete
8554 mips_fp_register_double.
8555 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
8556 mips_abi_regsize.
8557 (mips_gdbarch_init): Do not set mips_fp_register_double.
8558 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
8559
8560 2004-04-29 Joel Brobecker <brobecker@gnat.com>
8561
8562 Committed by Andrew Cagney.
8563 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
8564 function calls.
8565
8566 2004-04-29 Andrew Cagney <cagney@redhat.com>
8567
8568 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
8569 gdbarch, use mips_abi, update callers.
8570 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
8571 mips_abi_regsize, update callers.
8572 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
8573 mips_default_abi_regsize.
8574 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
8575 mips_default_abi_regsize.
8576
8577 2004-04-29 Andrew Cagney <cagney@redhat.com>
8578
8579 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
8580 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
8581 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
8582 mips_default_abi_regsize.
8583 (mips_isa_regsize): Rename mips_regisze.
8584 * mipsnbsd-tdep.c: Update.
8585 * mips-linux-tdep.c: Update.
8586 * irix5-nat.c: Update.
8587 * mips-tdep.h (mips_isa_regsize): Update.
8588
8589 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
8590 Delete all disabled code.
8591 * gdb-events.h, gdb-events.c: Re-generate.
8592
8593 2004-04-19 Jerome Guitton <guitton@gnat.com>
8594 Mark Kettenis <kettenis@gnu.org>
8595
8596 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
8597 the function begins with a branch instruction.
8598
8599 2004-04-29 Mark Kettenis <kettenis@gnu.org>
8600
8601 * i386-tdep.c: Fix spelling mistakes.
8602
8603 2004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8604 Andrew Cagney <cagney@redhat.com>
8605
8606 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
8607 <sys/proc.h>.
8608 * acconfig.h: Provide default _KMEMUSER value.
8609 * config.in, configure: Re-generate.
8610 * NEWS: Mention fix.
8611
8612 2004-04-24 Randolph Chung <tausq@debian.org>
8613
8614 * configure.host (hppa*-*-linux*): New target.
8615 * configure.tgt (hppa*-*-linux*): Likewise.
8616 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
8617 gdbarch_init_osabi() call earlier so that osabi-specific frame
8618 unwinders can be registered first.
8619 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
8620 hppa-linux-nat.c.
8621 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
8622 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
8623 * config/pa/linux.mh: New file.
8624 * config/pa/linux.mt: New file.
8625 * config/pa/nm-linux.h: New file.
8626 * config/pa/xm-linux.h: New file.
8627 * hppa-linux-nat.c: New file.
8628 * hppa-linux-tdep.c: New file.
8629
8630 2004-04-28 Randolph Chung <tausq@debian.org>
8631
8632 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
8633 return values.
8634 (hppa32_push_dummy_call): Fix small struct and floating point argument
8635 passing, and make sure the stack frame is properly aligned.
8636
8637 2004-04-28 Andrew Cagney <cagney@redhat.com>
8638
8639 * stack.c (print_stack_frame): Fix description.
8640
8641 * NEWS: Mention gdb/gdbserver/configure execute permission
8642 changed. PR server/519.
8643
8644 2004-04-28 Andrew Cagney <cagney@redhat.com>
8645
8646 * stack.c (print_stack_frame_stub): Delete declaration.
8647 (struct print_stack_frame_args, print_stack_frame)
8648 (print_frame_info, print_frame): Replace "source" with print what.
8649 Replace "print" with "print_level". Replace "args" with
8650 "print_args".
8651 * frame.h (show_and_print_stack_frame, print_stack_frame)
8652 (print_frame_info): Update declarations.
8653 * stack.c (select_and_print_frame, frame_command)
8654 (current_frame_command, up_command, down_command): Update calls -
8655 use get_selected_frame, pass "enum print_what" for source, do not
8656 call frame_relative_level.
8657 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
8658 * remote-rdp.c (remote_rdp_open): Ditto.
8659 * remote-mips.c (common_open): Ditto.
8660 * remote-e7000.c (e7000_start_remote): Ditto.
8661 * ocd.c (ocd_start_remote): Ditto.
8662 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
8663 * infrun.c (normal_stop): Ditto.
8664 * inflow.c (kill_command): Ditto.
8665 * infcmd.c (finish_command): Ditto.
8666 * corelow.c (core_open): Ditto.
8667 * tracepoint.c (finish_tfind_command): Ditto.
8668 * thread.c (info_threads_command, info_threads_command)
8669 (restore_current_thread, do_captured_thread_select): Ditto.
8670 * ada-tasks.c (task_command): Ditto.
8671
8672 2004-04-26 Orjan Friberg <orjanf@axis.com>
8673
8674 * frame.c: Include "observer.h".
8675 (frame_observer_target_changed): New function.
8676 (_initialize_frame): Attach target_changed observer.
8677 * regcache.c: Include "observer.h".
8678 (regcache_observer_target_changed): New function.
8679 (_initialize_regcache): Attach target_changed observer.
8680 * valops.c: Include "observer.h".
8681 (value_assign): Notify target_changed event when modifying register.
8682 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
8683
8684 2004-04-26 Orjan Friberg <orjanf@axis.com>
8685
8686 From Paul Koning <pkoning@equallogic.com>:
8687 * breakpoint.c (free_valchain): New function.
8688 (insert_bp_location, delete_breakpoint): Use free_valchain.
8689 (remove_breakpoint): Do not remove the valchain.
8690 (bpstat_stop_status): If not stopped by watchpoint, skip
8691 watchpoints when generating stop status list.
8692 * infrun.c (handle_inferior_event): Make
8693 stepped_after_stopped_by_watchpoint a global variable.
8694 * remote.c (remote_stopped_data_address): Return watch data
8695 address rather than zero if stepped_after_stopped_by_watchpoint is
8696 set.
8697
8698 2004-04-25 Michael Chastain <mec.gnu@mindspring.com>
8699
8700 Fix PR gdb/1626.
8701 * configure.in: Check for curses after termcap.
8702 On osf5.*, do not check for ncurses.
8703 * configure: Regenerate.
8704
8705 2004-04-25 Mark Kettenis <kettenis@gnu.org>
8706
8707 * ppcobsd-nat.c: Include "ppc-tdep.h".
8708 * Makefile.in (ppcobsd-nat.o): Update dependencies.
8709
8710 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
8711 Fixes PR tdep/1623 and PR tdep/1624.
8712
8713 2004-04-24 Michael Chastain <mec.gnu@mindspring.com>
8714
8715 * xmodem.h, xmodem.c: Remove files.
8716 * Makefile.in: Remove references to xmodem.h, xmodem.c.
8717
8718 2004-04-23 Randolph Chung <tausq@debian.org>
8719
8720 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
8721 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
8722 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
8723 for handling stackless frames.
8724 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
8725
8726 2004-04-23 Randolph Chung <tausq@debian.org>
8727
8728 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
8729 starts at a pc before the frame is created.
8730
8731 2004-04-23 Joel Brobecker <brobecker@gnat.com>
8732
8733 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
8734
8735 2004-04-23 Jerome Guitton <guitton@gnat.com>
8736
8737 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
8738 use convert_typed_floating to get the appropriate format.
8739
8740 2004-04-22 Randolph Chung <tausq@debian.org>
8741
8742 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
8743 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
8744 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
8745 (hppa_sign_extend): Add prototype.
8746 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
8747 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
8748 (sign_extend): Rename with hppa_ prefix and make non-static. Other
8749 hppa targets will also use these functions.
8750 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
8751 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
8752 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
8753 (hppa_gdbarch_init): Remove gdbarch setting of
8754 skip_trampoline_code, in_solib_call_trampoline and
8755 in_solib_return_trampoline.
8756 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
8757 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
8758 hppa_in_solib_call_trampoline.
8759 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
8760 Moved from hppa-tdep.c.
8761 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
8762 in_solib_call_trampoline and in_solib_return_trampoline.
8763
8764 2004-04-22 Randolph Chung <tausq@debian.org>
8765
8766 * hppa-tdep.c (hppa_debug): New variable.
8767 (find_unwind_entry, hppa_frame_cache): Add debug output.
8768 (_initialize_hppa_tdep): Add command to set debug flag.
8769
8770 2004-04-22 Andrew Cagney <cagney@redhat.com>
8771
8772 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
8773 "trad-frame.h".
8774 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
8775 signal trampoline unwinder.
8776 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
8777
8778 2004-04-22 Mark Kettenis <kettenis@gnu.org>
8779
8780 Add OpenBSD/powerpc support.
8781 * NEWS (New native configurations): Mention OpenBSD/powerpc.
8782 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
8783 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
8784 (ppc_collect_fpregset): New prototypes.
8785 * ppcobsd-nat.c: New file.
8786 * ppcobsd-tdep.c: New file.
8787 * ppcobsd-tdep.h: New file.
8788 * rs6000-tdep.c: Include "regset.h".
8789 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
8790 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
8791 New functions.
8792 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
8793 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
8794 (rs6000-tdep.o): Update dependencies.
8795 * configure.host: Add powerpc-*-openbsd.
8796 * configure.tgt: Add powerpc-*-openbsd.
8797 * config/powerpc/obsd.mh: New file.
8798 * config/powerpc/nm-obsd.h: New file.
8799 * config/powerpc/obsd.mt: New file.
8800
8801 2004-04-22 Andrew Cagney <cagney@redhat.com>
8802
8803 * frame.h (show_frame_info): Delete declaration.
8804
8805 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
8806 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
8807 * m32r-tdep.c (m32r_frame_this_id): Ditto.
8808 * frv-tdep.c (frv_frame_this_id): Ditto.
8809 * avr-tdep.c (avr_frame_this_id): Ditto.
8810
8811 2004-04-22 Elena Zannoni <ezannoni@redhat.com>
8812
8813 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
8814
8815 2004-04-22 Jim Blandy <jimb@redhat.com>
8816
8817 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
8818 register number zero.
8819
8820 2004-04-21 Michael Snyder <msnyder@redhat.com>
8821
8822 * mips-tdep.c (heuristic_proc_start):
8823 Warning() already prefixes "Warning: ".
8824
8825 2004-04-21 Andrew Cagney <cagney@redhat.com>
8826
8827 * annotate.h (deprecated_annotate_starting_hook)
8828 (deprecated_annotate_stopped_hook)
8829 (deprecated_annotate_exited_hook)
8830 (deprecated_annotate_signal_hook)
8831 (deprecated_annotate_signalled_hook): Deprecate.
8832 * tracepoint.h (deprecated_create_tracepoint_hook)
8833 (deprecated_delete_tracepoint_hook)
8834 (deprecated_modify_tracepoint_hook)
8835 (deprecated_trace_find_hook)
8836 (deprecated_trace_start_stop_hook): Deprecate.
8837 * target.h (deprecated_target_new_objfile_hook): Deprecate.
8838 * remote.h (deprecated_target_resume_hook)
8839 (deprecated_target_wait_loop_hook): Deprecate.
8840 * gdbcore.h (deprecated_exec_file_display_hook)
8841 (deprecated_file_changed_hook): Deprecate.
8842 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
8843 * defs.h (deprecated_modify_breakpoint_hook)
8844 (deprecated_command_loop_hook, deprecated_show_load_progress)
8845 (deprecated_print_frame_info_listing_hook)
8846 (deprecated_query_hook, deprecated_warning_hook)
8847 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
8848 (deprecated_delete_breakpoint_hook)
8849 (deprecated_interactive_hook, deprecated_registers_changed_hook)
8850 (deprecated_readline_begin_hook, deprecated_readline_hook)
8851 (deprecated_readline_end_hook, deprecated_register_changed_hook)
8852 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
8853 (deprecated_context_hook, deprecated_target_wait_hook)
8854 (deprecated_attach_hook, deprecated_detach_hook)
8855 (deprecated_call_command_hook, deprecated_set_hook)
8856 (deprecated_error_hook, deprecated_error_begin_hook)
8857 (deprecated_ui_load_progress_hook): Deprecate.
8858 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
8859 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
8860 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
8861 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
8862 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
8863 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
8864 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
8865 * annotate.c, aix-thread.c: Update.
8866
8867 2004-04-21 Andrew Cagney <cagney@redhat.com>
8868
8869 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
8870 * vaxnbsd-tdep.c: Include "gdb_string.h".
8871
8872 * symfile.c (symbol_file_add_from_memory): #if 0 function.
8873 (add_symbol_file_from_memory_command): #if 0 function body, call
8874 error instead.
8875
8876 2004-04-21 Andrew Cagney <cagney@redhat.com>
8877
8878 * gdbcore.h: Update copyright.
8879 (deprecated_add_core_fns): Rename add_core_fns.
8880 * win32-nat.c (_initialize_core_win32): Update.
8881 * sun3-nat.c (_initialize_core_sun3): Update.
8882 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
8883 * rs6000-nat.c (_initialize_core_rs6000): Update.
8884 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
8885 * nto-tdep.c (_initialize_nto_tdep): Update.
8886 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
8887 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
8888 * mips-nat.c (_initialize_core_mips): Update.
8889 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
8890 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
8891 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
8892 * lynx-nat.c (_initialize_core_lynx): Update.
8893 * irix5-nat.c (_initialize_core_irix5): Update.
8894 * i386-interix-nat.c (_initialize_core_interix): Update.
8895 * cris-tdep.c (_initialize_cris_tdep): Update.
8896 * corelow.c (deprecated_add_core_fns): Update.
8897 * core-regset.c (_initialize_core_regset): Update.
8898 * core-aout.c (_initialize_core_aout): Update.
8899 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
8900 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
8901 * alpha-nat.c (_initialize_core_alpha): Update.
8902
8903 2004-04-21 Jim Blandy <jimb@redhat.com>
8904
8905 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
8906
8907 2004-04-19 Daniel Jacobowitz <drow@mvista.com>
8908
8909 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
8910 Delete.
8911 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
8912 (read_attribute_value): Update calls to dwarf_alloc_block.
8913 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
8914 dwarf2_tmp_obstack.
8915 (psymtab_to_symtab_1): Likewise. Clean up using
8916 free_stack_comp_unit.
8917 (add_to_cu_func_list): Use the comp_unit_obstack.
8918
8919 2004-04-19 Joel Brobecker <brobecker@gnat.com>
8920
8921 * dwarf2read.c (dwarf2_flag_true_p): New function.
8922 (die_is_declaration): Use the function above. Add some comments.
8923
8924 2004-04-19 Mark Kettenis <kettenis@gnu.org>
8925
8926 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
8927 architecture when registering sparcnbsd_core_osabi_sniffer.
8928 Adjust comment.
8929
8930 2004-04-18 Mark Kettenis <kettenis@gnu.org>
8931
8932 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
8933 return value.
8934
8935 Based on a patch from Brian Ford <ford@vss.fsi.com>:
8936 * i386-tdep.c: Correct register numbering scheme comments
8937 throughout.
8938 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
8939 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
8940 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
8941 (i386_gdb_arch_init): Likewise.
8942
8943 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
8944 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
8945 ppcnbsd-tdep.o.
8946
8947 * m68k-tdep.h: Tweak comments.
8948 * m68k-tdep.c: Tweak comment.
8949
8950 2004-04-17 Randolph Chung <tausq@debian.org>
8951
8952 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
8953 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
8954 (hppa_hpux_som_init_abi): Set is_elf to 0.
8955 (hppa_hpux_elf_init_abi): Set is_elf to 1.
8956 * hppa-tdep.c (low_text_segment_address): Remove global.
8957 (record_text_segment_lowaddr): Pass in low address as parameter. Use
8958 section offset to calculate segment address.
8959 (internalize_unwinds): Define low_text_segment_address as local and
8960 pass to record_text_segment_lowaddr for ELF targets.
8961 (hppa_gdbarch_init): Zero fill tdep structure.
8962 (hppa_dump_tdep): Print tdep structure.
8963 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
8964
8965 2004-04-17 Randolph Chung <tausq@debian.org>
8966
8967 * hppa-tdep.c (hppa_pseudo_register_read): Define.
8968 (hppa_gdbarch_init): Set pseudo_register_read.
8969 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
8970 * regcache.c (supply_register): Remove check for
8971 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
8972
8973 2004-04-17 Randolph Chung <tausq@debian.org>
8974
8975 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
8976 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
8977 (hpread_adjust_stack_address): Move to hpread.c.
8978 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
8979 obj_private_struct): Move from tm-hppa.h.
8980 * hpread.c (hppa-tdep.h): Include.
8981 (hpread_adjust_stack_address): Move from hppa-tdep.c.
8982 (hpread_read_function_type, hpread_read_doc_function_type)
8983 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
8984 directly.
8985 * pa64solib.c (hppa-tdep.h): Include.
8986 * somsolib.c (hppa-tdep.h): Include.
8987 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
8988 inferior_status): Remove unused forward declarations.
8989 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
8990 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
8991 obj_private_struct): Move to hppa-tdep.h.
8992 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
8993
8994 2004-04-17 Randolph Chung <tausq@debian.org>
8995
8996 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
8997 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
8998 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
8999 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
9000 Remove forward declaration and make static.
9001 (hppa_reg_struct_has_addr): Remove.
9002
9003 2004-04-16 Joel Brobecker <brobecker@gnat.com>
9004
9005 * observer.sh: Move comments in sed command to first column.
9006
9007 2004-04-16 Jason Molenda (jmolenda@apple.com)
9008
9009 * frame.c: Minor typeo corrections in comments.
9010
9011 2004-04-16 Joel Brobecker <brobecker@gnat.com>
9012
9013 * observer.c (observer_test_first_notification_function): Update
9014 function profile.
9015 (observer_test_second_notification_function): Likewise.
9016 (observer_test_third_notification_function): Likewise.
9017
9018 2004-04-16 Mark Kettenis <kettenis@gnu.org>
9019
9020 From Brian Ford <ford@vss.fsi.com>:
9021 * i386-tdep.c (i386_coff_init_abi): New function.
9022 * i386-tdep.h (i386_coff_init_abi): New prototype.
9023 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
9024 register number translation functions for DWARF and DWARF 2.
9025
9026 2004-04-16 Joel Brobecker <brobecker@gnat.com>
9027
9028 * dwarf2read.c: Back out my previous change, it was incorrect.
9029
9030 2004-04-16 Daniel Jacobowitz <drow@mvista.com>
9031
9032 * dwarf2read.c: Include "hashtab.h".
9033 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
9034 has_namespace_info.
9035 (struct partial_die_info): Add comments. Use bitfields to reduce
9036 memory footprint. Add scope, scope_set, has_specification,
9037 spec_offset, die_parent, die_child, and die_sibling.
9038 (peek_die_abbrev): Add prototype.
9039 (partial_read_comp_unit_head): New function, broken out from
9040 dwarf2_build_psymtabs_hard.
9041 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
9042 Use partial_read_comp_unit_head. Initialize the CU and
9043 comp_unit_obstack. Update calls to read_partial_die and
9044 scan_partial_symbols. Use free_stack_comp_unit and
9045 load_partial_dies.
9046 (scan_partial_symbols): Change PDI to a pointer. Use the child and
9047 sibling pointers to walk partial DIEs. Call fixup_partial_die.
9048 Update calls to helper functions. Remove NAMESPACE argument.
9049 Update comments.
9050 (partial_die_parent_scope, partial_die_full_name): New functions.
9051 (add_partial_symbol): Remove namespace argument. Update call to
9052 pdi_needs_namespace. Use partial_die_full_name. Handle
9053 DW_TAG_namespace. Check has_namespace_info flag.
9054 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
9055 tag. Handle namespaces.
9056 (add_partial_namespace, add_partial_enumeration): Simplify.
9057 (guess_structure_name): New function, derived from
9058 add_partial_structure.
9059 (add_partial_structure): Remove.
9060 (determine_class_name): Update comment.
9061 (dwarf2_read_abbrevs): Set has_namespace_info flag.
9062 (is_type_tag_for_partial, load_partial_dies): New functions.
9063 (read_partial_die): Pass abbrev and abbrev_len as arguments.
9064 Record specifications instead of following them immediately.
9065 (find_partial_die_in_comp_unit, find_partial_die)
9066 (fixup_partial_die, free_stack_comp_unit)
9067 (hashtab_obstack_allocate, dummy_obstack_deallocate)
9068 (partial_die_hash, partial_die_eq): New functions.
9069 * Makefile.in (hashtab_h): Define.
9070 (dwarf2read.o): Update dependencies.
9071 (observer_inc, observer_h): Move to the correct section.
9072
9073 2004-04-15 Joel Brobecker <brobecker@gnat.com>
9074
9075 * dwarf2read.c (dwarf2_attribute_true_p): New function.
9076 (die_is_declaration): Use the function above. Add comment.
9077
9078 2004-04-15 Joel Brobecker <brobecker@gnat.com>
9079
9080 * dwarf2read.c (read_structure_scope): Identify stub types
9081 using die_is_declaration() only.
9082
9083 2004-04-15 Roland McGrath <roland@redhat.com>
9084
9085 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
9086 argument instead of NAME.
9087 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
9088 in call to symbol_file_add_with_addrs_or_offsets.
9089 (build_addr_info): New function, helper for ...
9090 (symbol_file_add_from_memory): New function.
9091 (add_symbol_file_from_memory_command): New function using that.
9092 (_initialize_symfile): Register it for add-symbol-file-from-memory.
9093 (pre_add_symbol_hook): Add const to argument type.
9094 * symfile.h (symbol_file_add_from_memory): Declare it.
9095
9096 2004-04-15 Mark Kettenis <kettenis@gnu.org>
9097
9098 * NEWS (New native configurations): Mention OpenBSD/vax.
9099 * configure.host: Add vax-*-openbsd*.
9100 * config/vax/obsd.mh: New file.
9101 * config/vax/nm-obsd.h: New file.
9102
9103 * vax-tdep.c: Include "regset.h".
9104 (vax_supply_gregset): New function.
9105 (vax_gregset): New variable.
9106 (vax_regset_from_core_section): New function.
9107 (vax_gdbarch_init): Set regset_from_core_section.
9108 * Makefile.in (vax-tdep.o): Update dependencies.
9109
9110 2004-04-15 Andrew Cagney <cagney@redhat.com>
9111
9112 * observer.c (normal_stop_subject, observer_notify_normal_stop)
9113 (observer_normal_stop_notification_stub)
9114 (observer_attach_normal_stop, observer_detach_normal_stop):
9115 Delete, replaced by #include "observer.inc".
9116 * infrun.c (normal_stop): Pass "stop_bpstat" to
9117 observer_notify_normal_stop.
9118 * Makefile.in (observer_inc): Define.
9119 (observer.o): Update dependencies.
9120 (observer.h, observer.inc): New rules.
9121 * observer.h: Delete file.
9122 * observer.sh: New file.
9123
9124 2004-04-15 Mark Kettenis <kettenis@gnu.org>
9125
9126 * vax-tdep.c (vax_frame_cache): Fix typo.
9127
9128 2004-04-14 Mark Kettenis <kettenis@gnu.org>
9129
9130 * NEWS (New native configurations): Mention NetBSD/vax.
9131 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
9132 * config/vax/nbsdelf.mh: New file.
9133 * config/vax/nbsdaout.mh: New file.
9134 * config/vax/nm-nbsd.h: New file.
9135 * config/vax/nm-nbsdaout.h: New file.
9136
9137 * vaxnbsd-tdep.c: New file.
9138 * Makefile.in (vaxnbsd-tdep.o): New dependency.
9139 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
9140 * config/vax/nbsd.mt: New file.
9141 * config/vax/tm-nbsd.h: New file.
9142
9143 * Makefile.in (vaxbsd-nat.o): New dependency.
9144
9145 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
9146 * vax-tdep.c (vax_store_arguments): Remove struct_return and
9147 struct_addr arguments. Don't push return value address.
9148 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
9149 arguments to vax_store_arguments. Store return value address in
9150 R1.
9151 (vax_store_struct_return, vax_extract_return_value)
9152 (vax_store_return_value): Remove functions.
9153 (vax_return_value): New function.
9154 (vax_gdbarch_init): Set return value. Don't set
9155 deprecated_store_struct_return, deprecated_extract_struct_return
9156 and deprecated_store_return_value.
9157
9158 2004-04-14 Andreas Schwab <schwab@suse.de>
9159
9160 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
9161 value buffer.
9162 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
9163
9164 2004-04-14 Mark Kettenis <kettenis@gnu.org>
9165
9166 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
9167 (vax_unwind_dummy_id): New functions.
9168 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
9169 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
9170 variables.
9171 (vax_fix_call_dummy): Remove function.
9172 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
9173 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
9174 call_dummy_location, deprecated_call_dummy_words,
9175 deprecated_sizeof_call_dummy_words,
9176 deprecated_call_dummy_breakpoint_offset,
9177 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
9178 and deprecated_dummy_write_sp.
9179
9180 2004-04-13 David Carlton <carlton@kealia.com>
9181
9182 * MAINTAINERS: Move myself to "paper trail" section.
9183
9184 2004-04-12 Mark Kettenis <kettenis@gnu.org>
9185
9186 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
9187 "trad-frame.h".
9188 (vax_frame_init_saved_regs): Remove function.
9189 (vax_sigtramp_saved_pc): Remove function.
9190 (vax_frame_saved_pc): Remove function.
9191 (vax_frame_args_address): Remove function.
9192 (vax_frame_num_args): Rewrite.
9193 (vax_frame_chain): Remove function.
9194 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
9195 VAX_FP_REGNUM.
9196 (vax_pop_frame): Likewise.
9197 (vax_saved_pc_after_call): Remove function.
9198 (struct vax_frame_cache): New structure.
9199 (vax_frame_cache): New function.
9200 (vax_frame_this_id): New function.
9201 (vax_frame_prev_register): New function.
9202 (vax_frame_unwind): New variable.
9203 (vax_frame_sniffer): New function.
9204 (vax_frame_base_address): New function.
9205 (vax_frame_args_address): New function.
9206 (vax_frame_base): New variable.
9207 (vax_unwind_pc): New function.
9208 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
9209 deprecated_fp_regnum, deprecated_saved_pc_after_call,
9210 deprecated_frame_chain, deprecated_frame_saved_pc,
9211 deprecated_frame_args_address and
9212 deprecated_frame_init_saved_regs.
9213 * Makefile.in (vax-tdep.o): Update dependencies.
9214
9215 * vaxbsd-nat.c: New file.
9216
9217 * vax-tdep.h: Update copyright year. Adjust comments.
9218 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
9219 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
9220 (vax_regnum): New enum. Replacing...
9221 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
9222 (VAX_PS_REGNUM): ... these removed macros.
9223 * vax-tdep.c (vax_register_name): Remove prototype.
9224 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
9225 (vax_register_byte, vax_register_raw_size,
9226 vax_register_virtual_size, vax_register_virtual_type): Remove
9227 functions.
9228 (vax_register_type): New function.
9229 (vax_breakpoint_from_pc): Reorganize.
9230 (vax_gdbarch_init): Set register_type. Don't set
9231 deprecated_register_size, deprecated_register_bytes,
9232 deprecated_register_byte, deprecated_register_raw_size,
9233 deprecated_max_register_raw_size,
9234 deprecated_register_virtual_size,
9235 deprecated_max_register_virtual_size and
9236 deprecated_register_virtual_type. Add comment on stack direction.
9237
9238 2004-04-11 Mark Kettenis <kettenis@gnu.org>
9239
9240 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
9241 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
9242 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
9243
9244 2004-04-10 Randolph Chung <tausq@debian.org>
9245
9246 * MAINTAINERS (write after approval): Add myself.
9247
9248 2004-04-07 Randolph Chung <tausq@debian.org>
9249
9250 * hppa-tdep.c (hppa_inner_than): Remove.
9251 (is_pa_2): Remove unused static variable.
9252 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
9253
9254 2004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
9255
9256 * language.h (language_defn): Add new la_post_parser field.
9257 * parser-defs.h (null_post_parser): New declaration (default for
9258 la_post_parser).
9259
9260 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
9261 insert call to that function.
9262 (parse_exp_in_context): New function, including code formerly in
9263 parse_exp_1. Calls language-dependent post-parser after
9264 prefixification.
9265 (parse_expression_in_context): New exported function.
9266 (null_post_parser): New definition.
9267 * expression.h (parse_expression_in_context): Add declaration.
9268
9269 * p-lang.c (pascal_language_defn): Add trivial post-parser.
9270 * c-lang.c (c_language_defn): Ditto.
9271 (cplus_language_defn): Ditto.
9272 (asm_language_defn): Ditto.
9273 (minimal_language_defn): Ditto.
9274 * f-lang.c (f_language_defn): Ditto.
9275 * jv-lang.c (java_language_defn): Ditto.
9276 * language.c (unknown_language_defn): Ditto.
9277 (auto_language_defn): Ditto.
9278 (local_language_defn): Ditto.
9279 * m2-lang.c (m2_language_defn): Ditto.
9280 * scm-lang.c (scm_language_defn): Ditto.
9281 * obj-lang.c (objc_language_defn): Ditto.
9282
9283 2004-04-10 Mark Kettenis <kettenis@gnu.org>
9284
9285 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
9286 (amd64nbsd_mcontext_addr): New function.
9287 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
9288 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
9289 with amd64nbsd_r_reg_offset, instead of building it on the fly.
9290
9291 * corelow.c (core_xfer_partial): Fix coding standards violation.
9292 Add support for TARGET_OBJECT_WCOOKIE.
9293
9294 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
9295 deprecated_pc_in_sigtramp.
9296 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
9297 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
9298 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
9299 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
9300 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
9301 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
9302 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
9303
9304 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
9305 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
9306 Fix typo.
9307
9308 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
9309 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
9310 (amd64_collect_fxsave): Likewise.
9311
9312 * i386-sol2-tdep.c: Include "gdb_string.h".
9313 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
9314 name.
9315 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
9316
9317 2004-04-10 Mark Kettenis <kettenis@gnu.org>
9318
9319 * i386-sol2-tdep.c: Include "solib-svr4.h".
9320 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9321 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
9322 * config/i386/tm-i386sol2.h: Include :solib.h".
9323 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
9324 solib-svr4.o and solib-legacy.o.
9325 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
9326 solib-svr4.o.
9327
9328 2004-04-09 Mark Kettenis <kettenis@gnu.org>
9329
9330 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
9331 whether a register is supplied by PTRACE_GETFPREGS.
9332 (store_inferior_registers): Likewise.
9333 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
9334 whether a register is supplied by PT_GETFPREGS.
9335 (store_inferior_registers): Likewise.
9336
9337 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
9338 * config/i386/linux64.mt (TDEPFILES): Likewise.
9339
9340 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
9341
9342 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
9343 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
9344 the program counter is in the range specified by `struct
9345 gdbarch_tdep'.
9346 * amd64-linux-tdep.c: Include "symtab.h".
9347 (amd64_linux_pc_in_sigtramp): Remove function.
9348 (amd64_linux_sigtramp_p): New function.
9349 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
9350 deprecated_pc_in_sigtramp.
9351 * amd64nbsd-tdep.c: Include "symtab.h".
9352 (amd64nbsd_sigtramp_p): New function.
9353 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
9354 deprecated_pc_in_sigtramp.
9355 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
9356 few comments.
9357 (amd64obsd_pc_in_sigtramp): Remove function.
9358 (amd64obsd_sigtramp_p): New function.
9359 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
9360 deprecated_pc_in_sigtramp.
9361 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
9362 (i386bsd_pc_ins_sigtramp): Remove prototype.
9363 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
9364 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
9365 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
9366 the program counter is in the range specified by `struct
9367 gdbarch_tdep'.
9368 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
9369 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
9370 (i386_go32_pc_in_sigtramp): Remove function.
9371 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
9372 Initialize TDEP->sigtramp_p.
9373 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
9374 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
9375 deprecated_pc_in_sigtramp.
9376 * i386-linux-tdep.c: Adjust comments.
9377 (i386_linux_pc_in_sigtramp): Remove function.
9378 (i386_linux_sigtramp_p): New function.
9379 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
9380 deprecated_pc_in_sigtramp.
9381 * i386-nto-tdep.c: Update copyright year.
9382 (i386nto_pc_in_sigtramp): Remove function.
9383 (i386nto_sigtramp_p): New function.
9384 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
9385 SP_REGNUM.
9386 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
9387 deprecated_pc_in_sigtramp.
9388 * i386-sol2-tdep.c: Update copyright year.
9389 (i386_sol2_pc_in_sigtramp): Remove function.
9390 (i386_sol2_sigtramp_p): New function.
9391 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
9392 deprecated_pc_in_sigtramp.
9393 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
9394 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
9395 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9396 deprecated_sigtramp_start and deprecated_sigtramp_end.
9397 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
9398 (i386nbsd_pc_in_sigtramp): Remove function.
9399 (i386nbsd_sigtramp_p): New function.
9400 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9401 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
9402 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
9403 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
9404 (i386obsd_pc_in_sigtramp): Remove function.
9405 (i386obsd_sigtramp_p): New function.
9406 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
9407 functions.
9408 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9409 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
9410 TDEP->sigtramp_p.
9411 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
9412 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
9413 dependencies.
9414
9415 * config/i386/i386aout.mt: Remove file.
9416
9417 * configure.tgt: Remove i[34567]86-*-go32*,
9418 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
9419 and i[34567]86-*-isc*. Set gdb_target to i386 for
9420 i[34567]86-*-netware* and i[34567]86-*-*.
9421 * config/i386/i386.mt: New file.
9422 * config/i386/embed.mt: Remove file.
9423 * config/i386/go32.mt: Remove file.
9424 * config/i386/i386nw.mt: Remove file.
9425 * config/i386/i386v.mt: Remove file.
9426 * config/i386/tm-go32.h: Remove file.
9427
9428 * tui/tui-hooks.c: Include "readline/readline.h" after
9429 "gdb_curses.h" instead of before.
9430 * tui/tui-io.c: Likewise.
9431
9432 * tui/tui.c: Fix typo in comment.
9433
9434 * sparc64-tdep.c (sparc_address_from_register): Remove function.
9435
9436 2004-04-08 Andrew Cagney <cagney@redhat.com>
9437
9438 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
9439 (deprecated_exception_support_initialized): Declare.
9440 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
9441 (initialize_hp_cxx_exception_support)
9442 (child_enable_exception_callback): Update.
9443 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
9444 (deprecated_exception_support_initialized): Rename
9445 deprecated_exception_catchpoints_are_fragile and
9446 deprecated_exception_support_initialized.
9447 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
9448
9449 * symtab.c (deprecated_hp_som_som_object_present): Rename
9450 hp_som_som_object_present.
9451 * symtab.h (deprecated_hp_som_som_object_present): Declare.
9452 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
9453 Update. Delete extern declaration.
9454 * valops.c (hp_som_som_object_present): Ditto.
9455 * parse.c (deprecated_hp_som_som_object_present)
9456 (parse_nested_classes_for_hpacc): Ditto.
9457 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
9458 * hppa-hpux-tdep.c (hp_som_som_object_present)
9459 (initialize_hp_cxx_exception_support): Ditto.
9460 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
9461 * cp-valprint.c (hp_som_som_object_present)
9462 (cp_print_class_method): Ditto.
9463 * c-typeprint.c (hp_som_som_object_present):
9464 (c_type_print_base): Ditto.
9465 * c-exp.y (hp_som_som_object_present): Ditto.
9466
9467 2004-04-08 Andrew Cagney <cagney@redhat.com>
9468
9469 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
9470 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
9471 (frame_unwind_find_by_frame): Re-implement the unwind code so
9472 that it can both prepend and append sniffers. Replace
9473 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
9474 * tramp-frame.c (tramp_frame_append): Use
9475 frame_unwind_prepend_unwinder.
9476 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
9477 frame_unwind_register_unwinder.
9478 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
9479 tramp_frame_append.
9480 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
9481 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
9482 (mips_linux_init_abi): Update.
9483
9484 2004-04-08 Kevin Buettner <kevinb@redhat.com>
9485
9486 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
9487 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
9488 file support.
9489
9490 2004-04-07 Kevin Buettner <kevinb@redhat.com>
9491
9492 * ia64-tdep.c (elf.h): Don't include.
9493 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
9494
9495 2004-04-07 Jason Molenda (jmolenda@apple.com)
9496
9497 * frame.h: Typeo corrections in comments.
9498
9499 2004-04-07 Jim Blandy <jimb@redhat.com>
9500
9501 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
9502 %esp and %ebp
9503
9504 2004-04-07 Mark Kettenis <kettenis@gnu.org>
9505
9506 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
9507 * config/sparc/linux64.mt (TDEPFILES): Likewise.
9508 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
9509 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
9510 and solib-legacy.o.
9511 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
9512 solib-svr4.o.
9513 * config/sparc/tm-sol2.h: Update copyright year. Include
9514 "solib.h".
9515
9516 * sparc-sol2-tdep.c: Update copyright year. Include
9517 "solib-svr4.h".
9518 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9519 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
9520 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9521 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
9522 dependencies.
9523
9524 2004-04-06 Andrew Cagney <cagney@redhat.com>
9525
9526 * infttrace.c: Include "infttrace.h".
9527 * infttrace.h: Include "target.h".
9528 * Makefile.in (infttrace_h): Update.
9529 (infttrace.o): Update.
9530
9531 2004-04-06 Andrew Cagney <cagney@redhat.com>
9532
9533 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
9534 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
9535 move extern declarations from here ...
9536 * infttrace.h: ... to here.
9537 * Makefile.in (hppah-nat.o): Update dependencies.
9538
9539 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
9540 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
9541 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
9542 (hppa_breakpoint_from_pc): Delete.
9543
9544 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
9545
9546 2004-04-05 Andrew Cagney <cagney@redhat.com>
9547
9548 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
9549 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
9550 <sys/file.h>.
9551
9552 2004-04-06 Randolph Chung <tausq@debian.org>
9553
9554 Committed by Andrew Cagney (mechanical change).
9555 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
9556 exception_catchpoints_are_fragile, find_stub_with_shl_get,
9557 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
9558 child_enable_exception_callback, current_ex_event,
9559 null_symtab_and_line, child_get_current_exception_event,
9560 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
9561 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
9562 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
9563 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
9564 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
9565 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
9566 Move hpux-specific definitions ...
9567 * hppa-hpux-tdep.c: ... to here.
9568
9569 2004-04-05 Andrew Cagney <cagney@redhat.com>
9570
9571 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
9572 skip_prologue_using_sal.
9573
9574 2004-04-05 Andrew Cagney <cagney@redhat.com>
9575
9576 * config/i386/tm-i386.h: Delete file.
9577 * config/i386/tm-vxworks.h: Update copyright, do not include
9578 "tm-i386.h".
9579 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
9580 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
9581 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
9582 * config/i386/ncr3000.mt (TM_FILE): Delete.
9583 * config/i386/interix.mt (TM_FILE): Delete.
9584 * config/i386/i386v.mt (TM_FILE): Delete.
9585 * config/i386/i386nw.mt (TM_FILE): Delete.
9586 * config/i386/i386gnu.mt (TM_FILE): Delete.
9587 * config/i386/i386aout.mt (TM_FILE): Delete.
9588 * config/i386/embed.mt (TM_FILE): Delete.
9589
9590 2004-04-05 Kevin Buettner <kevinb@redhat.com>
9591
9592 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
9593 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
9594 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
9595 (accg7_regnum): New constants.
9596 (last_spr_regnum, last_pseudo_regnum): Update.
9597 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
9598 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
9599 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
9600 for accg registers.
9601 (frv_register_sim_regno): Update spr_map[].
9602
9603 2004-04-04 Andrew Cagney <cagney@redhat.com>
9604
9605 * config/mips/xm-riscos.h: Delete.
9606 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
9607 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
9608 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
9609 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
9610 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
9611 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
9612 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
9613 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
9614 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
9615 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
9616 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
9617 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
9618 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
9619 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
9620 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
9621 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
9622 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
9623 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
9624 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
9625 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
9626 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
9627 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
9628 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
9629 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
9630 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
9631 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
9632
9633 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
9634 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
9635 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
9636 * configure.host: Remove m680[01]0-sun-sunos3*,
9637 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
9638 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
9639 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
9640 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
9641 mips-*-riscos*.
9642 * NEWS: Mention removed systems.
9643
9644 2004-04-04 Andrew Cagney <cagney@redhat.com>
9645
9646 GDB 6.1 release created from 6.1 branch.
9647
9648 2004-04-04 Andrew Cagney <cagney@redhat.com>
9649
9650 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
9651 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
9652 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
9653
9654 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
9655 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
9656 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
9657
9658 2004-04-03 Jim Blandy <jimb@redhat.com>
9659
9660 * MAINTAINERS: Chris Faylor has changed employers; add him to
9661 "paper trail" section, and update his E-mail address.
9662
9663 2004-04-03 Andrew Cagney <cagney@redhat.com>
9664
9665 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
9666 generic dummy frames.
9667 * dummy-frame.c: Update copyright.
9668 (dummy_frame_sniffer): Delete check for generic dummy frames.
9669
9670 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
9671 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
9672 (REG_PARM_STACK_SPACE): Delete.
9673 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
9674 Inline reference to REG_PARM_STACK_SPACE.
9675
9676 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
9677 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
9678 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
9679 (FRAME_BASE_BEFORE_SIGTRAMP)
9680 (hppa32_hpux_frame_base_before_sigtramp)
9681 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
9682 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
9683 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
9684 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
9685 (FRAME_BASE_BEFORE_SIGTRAMP)
9686 (hppa64_hpux_frame_base_before_sigtramp)
9687 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
9688
9689 2004-04-03 Andrew Cagney <cagney@redhat.com>
9690
9691 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
9692
9693 2004-04-02 Andrew Cagney <cagney@redhat.com>
9694
9695 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
9696 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
9697 * dummy-frame.h: Delete out-of-date comments.
9698 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
9699 * gdbarch.h, gdbarch.c: Re-generate.
9700
9701 2004-04-02 Joel Brobecker <brobecker@gnat.com>
9702
9703 Committed by Andrew Cagney <cagney@redhat.com>.
9704 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
9705 into account an instruction saving a register if we have already
9706 seen an earlier instruction saving that same register.
9707
9708 2004-04-02 Andrew Cagney <cagney@redhat.com>
9709
9710 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
9711 * gdbarch.h, gdbarch.c: Re-generate.
9712 * frame.c (legacy_get_prev_frame): Delete references to
9713 DEPRECATED_INIT_FRAME_PC_FIRST.
9714
9715 * infrun.c (pc_in_sigtramp): Delete function.
9716 (check_sigtramp2): Inline call to pc_in_sigtramp, use
9717 get_frame_type.
9718
9719 2004-04-02 Andrew Cagney <cagney@redhat.com>
9720
9721 * infrun.c (handle_step_into_function): Delete code conditional on
9722 legacy_frame_p.
9723 (handle_inferior_event, step_over_function): Ditto.
9724
9725 2004-04-02 Andrew Cagney <cagney@redhat.com>
9726
9727 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
9728 "previous frame inner to this frame" test.
9729
9730 2004-04-02 Andrew Cagney <cagney@redhat.com>
9731
9732 * frame.c (safe_frame_unwind_memory): New function.
9733 * frame.h (safe_frame_unwind_memory): Declare. Update description
9734 of /safe_/ methods.
9735 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
9736 "next_frame". Use safe_frame_unwind_memory.
9737 (tramp_frame_sniffer): Update call to tramp_frame_start.
9738
9739 2004-04-01 Daniel Jacobowitz <drow@mvista.com>
9740
9741 * dwarf2read.c (dwarf2_objfile_data_key): New.
9742 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
9743 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
9744 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
9745 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
9746 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
9747 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
9748 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
9749 Remove variables.
9750 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
9751 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
9752 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
9753 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
9754 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
9755 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
9756 Remove macros.
9757 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
9758 data.
9759 (dwarf2_locate_sections, dwarf2_build_psymtabs)
9760 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
9761 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
9762 (read_partial_die, read_full_die, read_indirect_string)
9763 (dwarf_decode_line_header, dwarf_decode_macros)
9764 (dwarf2_symbol_mark_computed): Remove use of removed macros.
9765 Update uses of removed variables.
9766 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
9767 of removed macros.
9768 (_initialize_dwarf2_read): New function.
9769 * symfile.h (dwarf2_has_info): Update prototype.
9770 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
9771 * elfread.c (elf_symfile_read): Likewise.
9772
9773 2004-04-01 Jim Blandy <jimb@redhat.com>
9774
9775 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
9776 function for register numbers on all the rs6000-derived targets.
9777 (rs6000_gdbarch_init): Don't register a separate
9778 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
9779 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
9780 variants.
9781
9782 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
9783 numbering.
9784
9785 2004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
9786
9787 * valarith.c: Update copyright notice.
9788 (value_add): Handle range types.
9789 (value_sub): Ditto.
9790 (value_equal): Ditto.
9791 (value_less): Ditto.
9792 (value_neg): Ditto.
9793 (value_complement): Ditto.
9794 (value_binop): Simplify slightly by using is_integral_type and
9795 eliminiating unnecessary COERCE_ENUMs.
9796
9797 2004-03-31 Andrew Cagney <cagney@redhat.com>
9798
9799 * frame.h (frame_unwind_id): Declare.
9800 * frame.c (frame_unwind_id): New function.
9801 (get_prev_frame_1): New function.
9802 (frame_debug_got_null_frame): New function.
9803 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
9804 code proper to prev_frame, update description.
9805 * infrun.c (step_over_function): Use frame_unwind_id.
9806
9807 2004-04-31 J. Brobecker <brobecker@gnat.com>
9808
9809 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
9810 (hppa64_push_dummy_call): Likewise.
9811
9812 2004-03-30 Jim Blandy <jimb@redhat.com>
9813
9814 From Ulrich Weigand:
9815 * utils.c (query): Do not use a va_list variable multiple times.
9816
9817 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
9818
9819 * Makefile.in (linux_nat_h): Update dependencies.
9820 * configure.in: Check for <gnu/libc-version.h>.
9821 * configure: Regenerate.
9822 * config.in: Regenerate.
9823 * linux-nat.h: Include "target.h". Add waitstatus field to
9824 struct lwp_info.
9825 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
9826 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
9827 to.
9828 (lin_lwp_handle_extended): New function. Handle clone events.
9829 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
9830 thread exit events.
9831 (child_wait): Handle clone events.
9832 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
9833 * linux-nat.c (linux_enable_event_reporting): Turn on
9834 PTRACE_O_TRACECLONE.
9835 (linux_handle_extended_wait): Handle clone events.
9836 * thread-db.c: Include <gnu/libc-version.h>.
9837 (struct private_thread_info): Add dying flag.
9838 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
9839 higher.
9840 (attach_thread): Update comments. Handle dying threads.
9841 (detach_thread): Set the dying flag.
9842 (check_event): Always call attach_thread.
9843
9844 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
9845
9846 * mips-tdep.c (mips_pdr_data): New.
9847 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
9848 (_initialize_mips_tdep): Initialize mips_pdr_data.
9849
9850 2004-03-29 Corinna Vinschen <vinschen@redhat.com>
9851
9852 * minsyms.c (install_minimal_symbols): Move dropping leading
9853 char from linkage name from here...
9854 (prim_record_minimal_symbol_and_info): ...to here. Simplify
9855 test for "__gnu_compiled*" symbols.
9856
9857 2004-03-28 Jim Blandy <jimb@redhat.com>
9858
9859 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
9860 registers to temp register r0 and byte stores as prologue
9861 instructions.
9862
9863 2004-03-28 Andrew Cagney <cagney@redhat.com>
9864
9865 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
9866 arm*-*-*.
9867
9868 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
9869
9870 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
9871 and switch the layout to force a display of register window.
9872
9873 2004-02-26 J. Brobecker <brobecker@gnat.com>
9874
9875 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
9876 of the INTEGER class.
9877
9878 2004-03-26 Jim Blandy <jimb@redhat.com>
9879
9880 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
9881 bytes long on PPC GNU/Linux.
9882
9883 2004-03-26 David Carlton <carlton@kealia.com>
9884
9885 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
9886
9887 2004-03-25 Andrew Cagney <cagney@redhat.com>
9888
9889 * PROBLEMS: Add general section titles, remove references to
9890 specific releases.
9891
9892 2004-03-25 Daniel Jacobowitz <drow@mvista.com>
9893
9894 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
9895 INT_REGISTER_SIZE.
9896 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
9897 FP_REGISTER_VIRTUAL_SIZE.
9898 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
9899 of DEPRECATED_REGISTER_RAW_SIZE.
9900 (arm_register_type): Add gdbarch argument.
9901 (arm_register_raw_size, arm_register_virtual_size): Delete.
9902 (arm_register_byte, arm_extract_return_value)
9903 (arm_store_return_value, arm_get_longjmp_target): Update references
9904 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
9905 (arm_gdbarch_init): Likewise. Don't set
9906 deprecated_register_raw_size, deprecated_register_virtual_size,
9907 deprecated_max_register_raw_size,
9908 deprecated_max_register_virtual_size, or
9909 deprecated_max_register_virtual_type. Do set register_type.
9910 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
9911 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
9912 (FP_REGISTER_VIRTUAL_SIZE): Delete.
9913 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
9914 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
9915 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
9916 INT_REGISTER_SIZE.
9917 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
9918 (remote_rdp_store_register): Likewise.
9919
9920 2004-03-24 Daniel Jacobowitz <drow@mvista.com>
9921
9922 * Makefile.in (mips-linux-tdep.o): Update dependencies.
9923 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
9924 to after osabi initialization.
9925 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
9926 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
9927 functions.
9928 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
9929 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
9930 variables.
9931 (mips_linux_init_abi): Append signal trampoline unwinders.
9932
9933 2004-03-24 Andrew Cagney <cagney@redhat.com>
9934
9935 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
9936 * tramp-frame.c: Include "gdb_assert.h".
9937 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
9938 correct sizeof.
9939 (tramp_frame_append): Validate the tramp frame's instructions.
9940 * Makefile.in (tramp-frame.o): Update dependencies.
9941
9942 2004-03-23 Andrew Cagney <cagney@redhat.com>
9943
9944 * trad-frame.h (trad_frame_set_reg_addr): Declare.
9945
9946 2004-03-23 Andrew Cagney <cagney@redhat.com>
9947
9948 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
9949 Nasser as past testsuite/lib/ (and other) maintainers.
9950
9951 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
9952
9953 * infcmd.c (attach_command): Reread symbols if we already have
9954 an exec file.
9955
9956 2004-03-23 Andrew Cagney <cagney@redhat.com>
9957
9958 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
9959
9960 2004-03-23 Andrew Cagney <cagney@redhat.com>
9961
9962 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
9963 * gdbarch.h, gdbarch.c: Re-generate.
9964 * i386obsd-tdep.c (i386obsd_init_abi): Update.
9965 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
9966 * i386bsd-tdep.c (i386bsd_init_abi): Update.
9967 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
9968 (DEPRECATED_SIGTRAMP_START): Update.
9969 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
9970 (DEPRECATED_SIGTRAMP_START): Update.
9971 * blockframe.c (find_pc_sect_partial_function): Update.
9972 * arch-utils.c (legacy_pc_in_sigtramp): Update.
9973
9974 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
9975
9976 * remote.c (remote_open_1): Reopen the exec file and reread symbols
9977 if necessary.
9978
9979 2004-03-23 Andrew Cagney <cagney@redhat.com>
9980
9981 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
9982 predicate, deprecate.
9983 * gdbarch.h, gdbarch.c: Re-generate.
9984 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
9985 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
9986 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
9987 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
9988 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
9989 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
9990 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
9991 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
9992 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
9993 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
9994 * blockframe.c (find_pc_partial_function): Update.
9995 * breakpoint.c (bpstat_what): Update.
9996 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
9997 * frv-linux-tdep.c (frv_linux_init_abi): Update.
9998 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
9999 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
10000 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10001 * i386-linux-tdep.c (i386_linux_init_abi): Update.
10002 * i386-nto-tdep.c (i386nto_init_abi): Update.
10003 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
10004 * i386-tdep.c (i386_sigtramp_frame_sniffer)
10005 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
10006 * i386bsd-tdep.c (i386bsd_init_abi): Update.
10007 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
10008 * i386obsd-tdep.c (i386obsd_init_abi): Update.
10009 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
10010 * infrun.c (pc_in_sigtramp): Update.
10011 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
10012 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
10013 * mips-tdep.c (mips_gdbarch_init): Update.
10014 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
10015 * ppc-linux-tdep.c: Update comment.
10016 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
10017 * shnbsd-tdep.c (shnbsd_init_abi): Update.
10018 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
10019 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
10020 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
10021 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
10022 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
10023 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
10024 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
10025 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
10026
10027 2004-03-23 Andrew Cagney <cagney@redhat.com>
10028
10029 * tramp-frame.h, tramp-frame.h: New files.
10030 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
10031 Update rules to include "tramp-frame.h" and "tramp-frame.c".
10032
10033 * Makefile.in: Update all dependencies.
10034
10035 2004-03-23 Andrew Cagney <cagney@redhat.com>
10036
10037 * Makefile.in (trad_frame_h): Add $(frame_h).
10038 * trad-frame.h: Update copyright. Include "frame.h".
10039 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
10040 (trad_frame_set_id, trad_frame_get_id): Declare.
10041 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
10042 * trad-frame.c: Update copyright.
10043 (struct trad_frame_cache): Define.
10044 (trad_frame_cache_zalloc): New function.
10045 (trad_frame_set_id, trad_frame_get_id): New functions.
10046 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
10047
10048 2004-03-22 Andrew Cagney <cagney@redhat.com>
10049
10050 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
10051 s390_pltstub_unwind_cache.
10052 (s390_stub_frame_unwind_cache): Rename
10053 s390_pltstub_frame_unwind_cache.
10054 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
10055 (s390_stub_frame_prev_register): Rename
10056 s390_pltstub_frame_prev_register.
10057 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
10058 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
10059
10060 From Ulrich Weigand:
10061 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
10062 pointer calls like PLT calls.
10063
10064 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
10065
10066 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
10067 PC rather than the partial function start address. Use the start
10068 address to sanity check the found PDR.
10069
10070 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
10071
10072 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
10073 linux_handle_extended_wait.
10074
10075 2004-03-22 Andrew Cagney <cagney@redhat.com>
10076
10077 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
10078 function.
10079
10080 * frame.h (generic_pop_current_frame): Delete declaration.
10081 (deprecate_pop_dummy_frame): Deprecate
10082 generic_pop_dummy_frame.
10083 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
10084 (generic_pop_current_frame): Delete function.
10085 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
10086 generic_pop_current_frame.
10087 * v850-tdep.c (v850_pop_frame): Update.
10088 * mcore-tdep.c (mcore_pop_frame): Update.
10089 * sh64-tdep.c (sh64_pop_frame): Update.
10090 * h8300-tdep.c (h8300_pop_frame): Update.
10091
10092 2004-03-22 Andrew Cagney <cagney@redhat.com>
10093
10094 * frame.h (deprecated_pc_in_call_dummy): Rename
10095 generic_pc_in_call_dummy.
10096 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
10097 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
10098 generic_pc_in_call_dummy.
10099 (pc_in_dummy_frame): Make static.
10100 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
10101 * gdbarch.h, gdbarch.c: Re-generate.
10102 * dummy-frame.c (dummy_frame_sniffer): Simplify.
10103 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
10104 (legacy_get_prev_frame): Ditto.
10105 * inferior.h: Delete reference to generic_pc_in_call_dummy in
10106 comment.
10107
10108 2004-03-21 Andrew Cagney <cagney@redhat.com>
10109
10110 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
10111 declaration and out-of-date comment.
10112 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
10113 Delete function.
10114 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
10115 deprecated_pc_in_call_dummy.
10116
10117 * infrun.c (handle_inferior_event): For non legacy frames, use the
10118 frame ID and frame type to identify a signal trampoline. Update
10119 comments.
10120
10121 2004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
10122
10123 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
10124 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
10125
10126 2004-03-21 Andrew Cagney <cagney@redhat.com>
10127
10128 * frame-unwind.h: Update copyright.
10129 (struct frame_data): Add opaque declaration.
10130 (frame_sniffer_ftype): Declare.
10131 (struct frame_unwind): Add "unwind_data" and "sniffer".
10132 (frame_unwind_register_unwinder): Declare.
10133 (frame_unwind_find_by_frame): Add parameter "this_cache".
10134 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
10135 (legacy_get_prev_frame, legacy_get_prev_frame)
10136 (get_frame_type): Pass the prologue_cache to
10137 frame_unwind_find_by_frame.
10138 * frame-unwind.c (struct frame_unwind_table_entry): Add field
10139 "unwinder".
10140 (frame_unwind_register_unwinder): New function.
10141 (frame_unwind_find_by_frame): Handle an unwind sniffer.
10142
10143 2004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
10144
10145 * bcache.c (print_percentage): Use floating point to avoid
10146 incorrect results when portion*100 overflows.
10147
10148 2004-03-19 Kevin Buettner <kevinb@redhat.com>
10149
10150 * ppc_tdep.h (ppc_linux_frame_saved_pc)
10151 (ppc_linux_init_extra_frame_info)
10152 (ppc_linux_frameless_function_invocation)
10153 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
10154 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
10155 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
10156 (rs6000_frame_chain): Delete declarations.
10157 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
10158 (ppc_linux_init_extra_frame_info)
10159 (ppc_linux_frameless_function_invocation)
10160 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
10161 (ppc_linux_init_abi): Remove registration of above deleted functions.
10162 * rs6000-tdep.c (rs6000_init_extra_frame_info)
10163 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
10164 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
10165 (rs6000_pop_frame, rs6000_frameless_function_invocation)
10166 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
10167 (rs6000_gdbarch_init): Remove registration of above deleted functions.
10168 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
10169 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
10170 frame management for all OSABIs.
10171
10172 2004-03-19 Andrew Cagney <cagney@redhat.com>
10173
10174 Committed by Kevin Buettner <kevinb@redhat.com>.
10175
10176 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
10177 Update copyright.
10178 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
10179 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
10180 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
10181 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
10182 unwinders. #ifdef legacy frame code.
10183 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
10184 "frame-base.h".
10185 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
10186 (struct rs6000_frame_cache, rs6000_frame_cache)
10187 (rs6000_frame_this_id, rs6000_frame_prev_register)
10188 (rs6000_frame_sniffer, rs6000_frame_unwind)
10189 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
10190 (rs6000_frame_base): Implement a traditional frame unwinder.
10191 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
10192 frame unwinder.
10193
10194 2004-03-19 Kevin Buettner <kevinb@redhat.com>
10195
10196 * breakpoint.c (adjust_breakpoint_address): Don't adjust
10197 breakpoint address for watchpoints or the catch eventpoints.
10198 Add new paramter ``bptype''. Adjust all callers.
10199
10200 2004-03-19 Andrew Cagney <cagney@redhat.com>
10201
10202 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
10203
10204 * PROBLEMS: Delete note that ARM does not use frame code, problem
10205 fixed.
10206
10207 2004-03-18 Andrew Cagney <cagney@redhat.com>
10208
10209 * stack.c (return_command): Delete code wrapped in #ifdef
10210 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
10211
10212 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
10213
10214 2004-03-18 Andrew Cagney <cagney@redhat.com>
10215
10216 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
10217 DEPRECATED_IN_SIGTRAMP.
10218 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10219 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
10220 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10221 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10222 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10223 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10224 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10225 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10226 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
10227 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
10228
10229 2004-03-18 Andrew Cagney <cagney@redhat.com>
10230
10231 * frame-base.c: Update copyright. Include "gdb_obstack.h".
10232 (struct frame_base_table_entry): Define.
10233 (struct frame_base_table): Re-implement as a linked list.
10234 (frame_base_init): Re-implement.
10235 (frame_base_table): Delete function.
10236 (append_predicate): Delete function.
10237 (frame_base_append_sniffer): Update.
10238 (frame_base_set_default): Update.
10239 (frame_base_find_by_frame): Update.
10240 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
10241 * Makefile.in (frame-base.o): Update dependencies.
10242
10243 2004-03-17 Andrew Cagney <cagney@redhat.com>
10244
10245 * frame.c (legacy_get_prev_frame): Pass correct frame to
10246 frame_unwind_find_by_frame.
10247
10248 2004-03-17 David Carlton <carlton@kealia.com>
10249
10250 * NEWS: Mention C++ nested types and namespaces
10251
10252 2004-03-16 Michael Chastain <mec.gnu@mindspring.com>
10253
10254 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
10255 and "Regressions since gdb 5.3.". Add known regressions since
10256 gdb 6.0.
10257
10258 2004-03-16 David Carlton <carlton@kealia.com>
10259
10260 * dwarf2read.c (process_structure_scope): Process children even
10261 when we're a declaration.
10262
10263 2004-03-16 Andrew Cagney <cagney@redhat.com>
10264
10265 * symtab.h (find_pc_sect_partial_function): Delete declaration.
10266 * blockframe.c (find_pc_partial_function)
10267 (find_pc_sect_partial_function): Merge into a single
10268 find_pc_partial_function.
10269
10270 2004-03-16 Mark Kettenis <kettenis@gnu.org>
10271
10272 * i386bsd-nat.c: s/regno/regnum/g.
10273 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
10274 FP0_REGNUM.
10275 (store_inferior_registers): Likewise.
10276
10277 2004-03-16 Mark Kettenis <kettenis@gnu.org>
10278
10279 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
10280 of i387_fill_fsave.
10281 (store_inferior_registers): Call i387_collect_fsave and
10282 i387_collect_fxsave instead of i387_fill_fsave and
10283 i387_fill_fxsave.
10284
10285 2004-03-15 Andrew Cagney <cagney@redhat.com>
10286
10287 * Makefile.in (frame-unwind.o): Update dependencies.
10288 * frame-unwind.c: Include "gdb_obstack.h".
10289 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
10290 parameter.
10291 (append_predicate): Delete function.
10292 (struct frame_unwind_table_entry): New structure.
10293 (struct frame_unwind_table): Replace "sniffer" with "head" and
10294 "tail".
10295 (frame_unwind_append_sniffer): Update.
10296 (frame_unwind_find_by_frame): Update.
10297 (_initialize_frame_unwind): Registe frame_unwind_init using
10298 gdbarch_data_register_pre_init.
10299
10300 2004-03-15 Mark Kettenis <kettenis@gnu.org>
10301
10302 * i386bsd-nat.c: Update copyright year.
10303 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
10304 define unconditionally.
10305
10306 2004-03-15 Mark Kettenis <kettenis@gnu.org>
10307
10308 * i387-tdep.h (i387_collect_fsave): New prototype.
10309 * i387-tdep.c (i387_collect_fsave): New function containing most
10310 of the code from i387_fill_fsave.
10311 (i387_fill_fsave): Call i387_collect_fsave.
10312
10313 2004-03-15 Mark Kettenis <kettenis@gnu.org>
10314
10315 * i386-linux-tdep.c: Update copyright year.
10316 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
10317 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
10318 svr4_ilp32_link_map_offsets instead of
10319 i386_linux_svr4_fetch_link_map_offsets.
10320
10321 2004-03-15 David Carlton <carlton@kealia.com>
10322
10323 Fix for PR c++/1553:
10324 * dwarf2read.c (read_structure_type): Determine type name by
10325 calling determine_class_name.
10326 (determine_class_name): New.
10327 (determine_prefix): Look at TYPE_TAG_NAME and call
10328 determine_class_name when appropriate.
10329 (determine_prefix_aux, class_name): Delete.
10330 (read_namespace): Set die->type.
10331
10332 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10333
10334 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
10335 unused macro definition. The definition in target.h (or perhaps
10336 elsewhere) takes precedence.
10337
10338 2004-03-15 Andrew Cagney <cagney@redhat.com>
10339
10340 * ppc-tdep.h: Update copyright.
10341 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
10342 function signatures to match "regsets.h".
10343 * ppc-linux-tdep.c: Include "regset.h".
10344 (ELF_GREGSET_SIZE): Delete.
10345 (right_supply_register): New function.
10346 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
10347 using right_supply_register.
10348 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
10349 functions.
10350 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
10351 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
10352 (_initialize_ppc_linux_tdep): Do not register
10353 ppc_linux_regset_core_fns.
10354 (ppc_linux_regset_from_core_section): Replace
10355 fetch_core_registers.
10356 (ppc_linux_regset_core_fns): Delete.
10357 * ppc-linux-nat.c: (right_fill_reg): New function.
10358 (supply_gregset): Update call to ppc_linux_supply_gregset.
10359 (fill_gregset): Clear the register set, use right_fill_reg.
10360 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
10361 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
10362
10363 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
10364 unsigned.
10365
10366 2004-03-15 Andrew Cagney <cagney@redhat.com>
10367
10368 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
10369 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
10370 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
10371 and register_gdbarch_data.
10372 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
10373 (struct gdbarch_data): Replace "init" by "pre_init" and
10374 "post_init".
10375 * gdbarch.h, gdbarch.c: Re-generate.
10376 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
10377 with"obstack", use OBSTACK_ZALLOC.
10378 (dwarf2_frame_ops): Delete.
10379 (dwarf2_frame_set_init_reg): Use gdbarch_data.
10380 (dwarf2_frame_init_reg): Use gdbarch_data.
10381 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
10382 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
10383 (_initialize_svr4_solib): Update.
10384 * user-regs.c (_initialize_user_regs): Update.
10385 * reggroups.c (_initialize_reggroup): Update.
10386 * regcache.c (_initialize_regcache): Update.
10387 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
10388 * libunwind-frame.c (_initialize_libunwind_frame): Update.
10389 * gnu-v3-abi.c (init_gnuv3_ops): Update.
10390 * frame-unwind.c (_initialize_frame_unwind): Update.
10391 * frame-base.c (_initialize_frame_base): Update.
10392 * user-regs.c (user_reg_add): Update.
10393 * reggroups.c (reggroup_add): Update.
10394 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
10395 * libunwind-frame.c (libunwind_frame_set_descr): Update.
10396 * frame-unwind.c (frame_unwind_append_sniffer): Update.
10397 * frame-base.c (frame_base_table): Update.
10398 * remote.c (_initialize_remote): Update.
10399 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
10400
10401 2004-03-15 Andrew Cagney <cagney@redhat.com>
10402
10403 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
10404
10405 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10406
10407 * Makefile.in (frv-linux-tdep.o): Add dependencies.
10408 * frv-linux-tdep.c: New file.
10409 * frv-tdep.c (struct gdbarch_tdep): Add new field
10410 ``sigcontext_reg_addr''.
10411 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
10412 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
10413 (frv_sigramp_frame_sniffer): New functions.
10414 (frv_sigtramp_frame_unwind): New static global.
10415 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
10416 sniffers.
10417 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
10418 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
10419
10420 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10421
10422 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
10423 but not via a call to error(), when unable to read memory.
10424
10425 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10426
10427 * frv-tdep.c (frv_call_dummy_words): Delete.
10428 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
10429
10430 2004-03-15 Andrew Cagney <cagney@redhat.com>
10431
10432 * infrun.c (handle_step_into_function, step_over_function): Only
10433 update and use STEP_FRAME_ID when the system is using legacy
10434 frames. Update comments.
10435
10436 2004-03-14 Mark Kettenis <kettenis@gnu.org>
10437
10438 * amd64-linux-tdep.h: Remove file.
10439 * amd64-linux-tdep.c: Don't include "inferior.h" and
10440 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
10441 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
10442 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
10443 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
10444 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
10445 macros.
10446 (user_to_gdb_regmap): Remove variable.
10447 (amd64_linux_gregset_reg_offset): New variable.
10448 (amd64_core_fns): Remove variable.
10449 (fetch_core_registers): Remove function.
10450 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
10451 functions.
10452 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
10453 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
10454 * Makefile.in (amd64_linux_tdep_h): Remove.
10455 (amd64-linux-nat.o): Update dependencies.
10456 (amd64-linux-tdep.o): Update dependencies.
10457
10458 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
10459 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
10460 functions.
10461 (fetch_inferior_registers, store_inferior_registers): Rewrite.
10462
10463 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
10464 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
10465
10466 2004-03-14 Daniel Jacobowitz <drow@mvista.com>
10467
10468 * dwarf2read.c (read_structure_type): Rename from
10469 read_structure_scope. Don't create a symbol or call process_die.
10470 Return immediately if die->type is set. Call read_type_die before
10471 dwarf2_add_member_fn.
10472 (process_structure_scope): New function.
10473 (read_enumeration_type, process_enumeration_scope): New functions,
10474 broken out from read_enumeration. Don't create the enumeration
10475 type if it has already been created.
10476 (read_enumeration): Removed.
10477 (process_die): Call read_structure_type, process_structure_scope,
10478 read_enumeration_type, and process_enumeration_scope. Just call
10479 new_symbol for base and subrange types. Add a comment about other
10480 type dies.
10481 (read_type_die): Call read_enumeration_type.
10482 (add_partial_structure, new_symbol): Update comments.
10483
10484 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
10485
10486 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
10487
10488 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
10489
10490 * tui/tui-win.h (tui_get_cmd_list): Declare.
10491 * tui/tui-win.c (tui_command): New function.
10492 (tui_get_cmd_list): New function.
10493 (_initialize_tui_win): Moved initialization of tui command in
10494 tui_get_cmd_list.
10495
10496 * tui/tui-data.c (init_content_element): Setup new data members.
10497 (init_win_info): Likewise.
10498 (free_content_elements): Free it.
10499 * tui/tui-data.h (struct tui_data_element): Store the register
10500 content to print.
10501 (struct tui_data_info): Keep the current register group.
10502
10503 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
10504
10505 * tui/tui-regs.h (tui_show_registers): Update prototype.
10506 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
10507 (tui_resize_all): No need to calculate anything for register window.
10508 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
10509 (tui_set_register_element, tui_set_general_regs_content): Remove.
10510 (tui_set_special_regs_content): Remove.
10511 (tui_set_general_and_special_regs_content): Remove.
10512 (tui_set_float_regs_content): Remove.
10513 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
10514 (tui_set_regs_content): Remove.
10515 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
10516 (tui_v_show_registers_command_support): Remove.
10517 (tui_show_registers): Use a reggroup to specify the registers to show.
10518 (tui_show_register_group): New function.
10519 (tui_display_registers_from): Compute the layout of register window
10520 and refresh with new API; be sure to delete old register windows.
10521 (tui_check_register_values): Update to use tui_get_register and
10522 tui_display_data.
10523 (tui_display_register): Just refresh the register window part.
10524 (tui_register_format): Format registers and save in tui_data_element.
10525 (tui_get_register): New to combine tui_reg_value_has_changed and
10526 tui_get_register_raw_value; fix to use the new gdb API.
10527 (tui_show_float_command): Renamed tui_reg_float_command.
10528 (tui_show_general_command): Renamed tui_reg_general_command.
10529 (tui_show_special_command): Renamed tui_reg_system_command.
10530 (_initialize_tui_regs): Remove unused commands.
10531
10532 2004-03-13 Mark Kettenis <kettenis@gnu.org>
10533
10534 * NEWS (New native configurations): Mention OpenBSD/amd64.
10535
10536 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
10537 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
10538 Remove defines.
10539 * config/i386/nm-fbsd64.h: Likewise.
10540 * config/i386/nm-obsd.h: Likewise.
10541 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
10542 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
10543
10544 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10545
10546 * frv-tdep.c (set_variant_scratch_registers): New function.
10547 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
10548 New constants.
10549
10550 From Richard Sandiford <rsandifo@redhat.com>:
10551 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
10552
10553 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10554
10555 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
10556 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
10557 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
10558 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
10559 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
10560 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
10561 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
10562 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
10563 definitions from frv-tdep.c to frv-tdep.h.
10564
10565 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10566
10567 Add shared library support for FR-V FDPIC ABI:
10568 * Makefile.in (solib-frv.o): Add dependencies.
10569 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
10570 New functions.
10571 (frv_push_dummy_call): Add support for FDPIC ABI.
10572 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
10573 for FDPIC ABI.
10574 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
10575 (frv_fdpic_find_canonical_descriptor): Declare.
10576 * solib-frv.c: New file.
10577 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
10578 * config/frv/tm-frv.h (solib.h): Include.
10579
10580 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10581
10582 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
10583 (frv-tdep.o): Update dependencies.
10584 * frv-tdep.h: New file.
10585 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
10586 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
10587 constants.
10588 (struct gdbarch_tdep): Add new member ``frv_abi''.
10589 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
10590 functions.
10591 (new_variant): Set ``frv_abi'' field.
10592 (gdb_arch_init): Detect FDPIC executables.
10593
10594 2004-03-12 Mark Kettenis <kettenis@gnu.org>
10595
10596 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
10597 wrapper.
10598
10599 2004-03-11 Andrew Cagney <cagney@redhat.com>
10600
10601 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
10602
10603 2004-03-11 Kevin Buettner <kevinb@redhat.com>
10604
10605 * solist.h (master_so_list): New function.
10606 * solib.c (master_so_list): Likewise.
10607 * solib-svr4.c (enable_break): Iterate over so_list entries
10608 obtained from master list instead of entries obtained directly
10609 via svr4_current_sos().
10610
10611 2004-03-10 Ben Elliston <bje@gnu.org>
10612
10613 * MAINTAINERS: Update my mail address.
10614
10615 2004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
10616
10617 * remote-m32r-sdi.c: Support hardware watchpoint.
10618
10619 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10620
10621 * user-regs.c: Update copyright years.
10622 (struct user_regs): Rename to gdb_user_regs.
10623 (append_user_reg, builtin_user_regs, user_regs_init)
10624 (user_reg_add, user_reg_map_name_to_regnum)
10625 (usernum_to_user_reg): Update.
10626
10627 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10628
10629 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
10630 (skip_children): New functions.
10631 (locate_pdi_sibling): Call skip_children.
10632
10633 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10634
10635 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
10636 * gdbtypes.c (check_typedef): Update comments.
10637
10638 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10639
10640 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
10641 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
10642 pointer. Update comment about comp_unit_head.
10643 (struct abbrev_info): Shorten two int flags.
10644 (dwarf_alloc_abbrev): Take a CU argument.
10645 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
10646 each time through the loop. Update cleanup argument.
10647 (psymtab_to_symtab_1): Update cleanup call.
10648 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
10649 abbrev_obstack.
10650 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
10651 Just call obstack_free and clear the pointer.
10652
10653 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10654
10655 * infrun.c (handle_inferior_event): Remove short-circuit code for
10656 events in a different thread.
10657
10658 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10659
10660 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
10661 print the whole transfer.
10662 (initialize_targets): Update description of "set debug target".
10663
10664 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10665
10666 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
10667
10668 2004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
10669
10670 * MAINTAINERS (write after approval): Add myself.
10671
10672 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
10673
10674 * sh-tdep.c (sh_print_registers_info): Use for loop.
10675 Don't skip multiple registers when a float register is encountered.
10676
10677 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
10678
10679 Fix PR tdep/1291.
10680 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
10681 to official SH documentation.
10682
10683 2004-03-07 Andrew Cagney <cagney@redhat.com>
10684
10685 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
10686 unused function.
10687
10688 2004-03-07 Daniel Jacobowitz <drow@mvista.com>
10689
10690 * arm-tdep.c (thumb_get_next_pc): Handle BX.
10691 (arm_get_next_pc): Handle BX and BLX.
10692
10693 2004-03-07 Andrew Cagney <cagney@redhat.com>
10694
10695 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
10696 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
10697 HPPA_SP_REGNUM.
10698 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
10699 (hppa_target_read_fp): Delete.
10700 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
10701 register_virtual_size, max_register_raw_size,
10702 max_register_virtual_size, register_byte, register_size,
10703 target_read_fp, fp_regnum, and register_bytes. Set register_type
10704 instead of register_virtual_type.
10705 (hppa32_register_type, hppa64_register_type): Replace
10706 hppa32_register_virtual_type and hppa64_register_virtual_type.
10707 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
10708 (HPPA_FP_REGNUM): Define.
10709
10710 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
10711
10712 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
10713 (pa_do_registers_info): Delete.
10714 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
10715 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
10716 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
10717
10718 * infcall.c (legacy_push_dummy_code): Delete #ifdef
10719 GDB_TARGET_IS_HPPA code.
10720 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
10721 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
10722 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
10723 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
10724 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
10725 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
10726 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
10727 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
10728 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
10729 (hppa_frameless_function_invocation, hppa64_store_return_value)
10730 (hppa_store_struct_return, hppa64_extract_return_value)
10731 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
10732 (hppa32_call_dummy_length, hppa64_call_dummy_length)
10733 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
10734 (find_proc_framesize, deposit_21, restore_pc_queue)
10735 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
10736 (rp_saved, pc_in_linker_stub): Delete.
10737
10738 Unconditionally enable 64-bit frame and ABI code.
10739 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
10740 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
10741 push_dummy_frame, fix_call_dummy, push_arguments,
10742 call_dummy_location, extract_return_value, use_struct_convention,
10743 store_return_value, store_struct_return, saved_pc_after_call,
10744 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
10745 frame_chain, frame_chain_valid, frameless_function_invocation,
10746 frame_saved_pc, and pop_frame.
10747
10748 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
10749 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
10750 (hppa_gdbarch_init): Do not set PC_REGNUM.
10751
10752 2004-03-06 Mark Kettenis <kettenis@gnu.org>
10753
10754 * config/alpha/tm-fbsd.h: Remove file.
10755 * config/alpha/fbsd.mt: Tweak comment.
10756 (TM_FILE): Set to tm-alpha.h.
10757
10758 2004-03-05 Andrew Cagney <cagney@redhat.com>
10759
10760 * infrun.c (step_over_function): When non-legacy code, and no
10761 step_frame_id, use the unwinder to get the caller's frame ID.
10762
10763 2004-03-05 Mark Kettenis <kettenis@gnu.org>
10764
10765 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
10766 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
10767 bfd_arch_unknown. Adjust comment.
10768
10769 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
10770 * i386obsd-tdep.c: Correct spelling in comment.
10771 * i386nbsd-tdep.c: Correct spelling in comment.
10772 * sparc-tdep.c: Correct spelling in comments.
10773
10774 2004-03-05 David Carlton <carlton@kealia.com>
10775
10776 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
10777 bug.
10778
10779 2004-03-05 Mark Kettenis <kettenis@gnu.org>
10780
10781 * sparc-tdep.c: Fix typo in comment.
10782
10783 2004-03-04 J. Brobecker <brobecker@gnat.com>
10784
10785 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
10786
10787 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
10788
10789 * dwarf2read.c: Add comment describing memory lifetimes.
10790 (struct dwarf2_pinfo): Update comment.
10791 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
10792 (read_enumeration, new_symbol): Don't use obsavestring.
10793
10794 2004-03-04 Mark Kettenis <kettenis@gnu.org>
10795
10796 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
10797 instead of amd64_fill_fxsave.
10798 * amd64bsd-nat.c (store_inferior_registers): Likewise.
10799 * amd64fbsd-nat.c (fill_fpregset): Likewise.
10800
10801 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
10802 Reorganize code a bit.
10803
10804 2004-03-04 Orjan Friberg <orjanf@axis.com>
10805
10806 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
10807 when the frame pointer is pushed. Don't set the frame pointer's
10808 address on the stack unless it's actually located there.
10809 Set the SRP's address on the stack correctly when the PC is still in
10810 the prologue.
10811 (cris_return_value): New function.
10812 (cris_gdbarch_init): Clear deprecated store_return_value,
10813 extract_return_value.
10814
10815 2004-03-02 Jim Blandy <jimb@redhat.com>
10816
10817 * stabsread.c (reg_value_complaint): The maximum register number
10818 is one less than the number of registers.
10819
10820 2004-03-02 Andrew Cagney <cagney@redhat.com>
10821
10822 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
10823 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
10824 trailing comma and redundant assignment of I386_ST0_REGNUM.
10825 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
10826 32-bit segment registers.
10827
10828 2004-03-01 Andrew Cagney <cagney@redhat.com>
10829
10830 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
10831 use frame_relative_level and get_next_frame.
10832
10833 2004-02-29 Andrew Cagney <cagney@redhat.com>
10834
10835 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
10836 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
10837 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
10838 Delete macro.
10839
10840 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
10841
10842 * inflow.c (terminal_inferior): Don't give up the terminal if we
10843 previously couldn't get the inferior's terminal state.
10844
10845 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
10846
10847 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
10848 PC_REGNUM.
10849
10850 2004-02-28 Andrew Cagney <cagney@redhat.com>
10851
10852 * NEWS: Refer to GDB 6.1.
10853 * README: Refer to GDB 6.1.
10854 * PROBLEMS: Refer to GDB 6.1.
10855
10856 2004-02-28 Daniel Jacobowitz <drow@mvista.com>
10857
10858 * thread-db.c (disable_thread_signals): Remove unused function.
10859
10860 2004-02-28 Mark Kettenis <kettenis@gnu.org>
10861
10862 * amd64-nat.c: Include "gdb_string.h".
10863 (amd64_collect_native_gregset): Zero-extend the 32-bit
10864 general-purpose registers and %eip.
10865
10866 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
10867 * amd64-tdep.c (amd64_collect_fxsave): New function.
10868 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
10869
10870 * i387-tdep.h: Update copyright year.
10871 (i387_collect_fxsave): New prototype.
10872 * i387-tdep.c: Update copyright year.
10873 (i387_collect_fxsave): New function containing most of the code
10874 from i387_fill_fxsave.
10875 (i387_fill_fxsave): Call i387_collect_fxsave.
10876
10877 2004-02-28 Andrew Cagney <cagney@redhat.com>
10878
10879 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
10880 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
10881
10882 2004-02-28 Mark Kettenis <kettenis@gnu.org>
10883
10884 * amd64-tdep.c (amd64_frame_cache): Fix comment.
10885
10886 2004-02-28 Andrew Cagney <cagney@redhat.com>
10887
10888 * utils.c: Use "", instead of <>, to include readline.
10889 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
10890 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
10891 * source.c, solib.c, exec.c, event-top.c: Ditto.
10892 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
10893 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
10894 * Makefile.in: Update all dependencies.
10895 (readline_tilde_h, readline_history_h): Define.
10896 (readline_headers): Delete.
10897
10898 2004-02-28 Mark Kettenis <kettenis@gnu.org>
10899
10900 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
10901 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
10902 "config/i386/tm-lx64.h".
10903
10904 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
10905 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
10906 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
10907
10908 2004-02-28 Andrew Cagney <cagney@redhat.com>
10909
10910 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
10911
10912 * breakpoint.c (_initialize_breakpoint): Use
10913 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
10914 Add help to show command.
10915
10916 2004-02-28 Mark Kettenis <kettenis@gnu.org>
10917
10918 * i386-nat.c: Reformat to be closer to coding standards.
10919 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
10920 `retval'. Make variables `align' and `size' local to while-loop.
10921 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
10922 (_initialize_i386_nat): New prototype.
10923
10924 * tui/tui.c: Include <readline/readline.h> instead of
10925 "readline/readline.h". Include it after <term.h> and
10926 "gdb_curses.h".
10927
10928 2004-02-27 Andrew Cagney <cagney@redhat.com>
10929
10930 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
10931 the new frame unwind code.
10932 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
10933 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
10934 PCOQ_HEAD_REGNUM.
10935
10936 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
10937 "return_value" and "push_dummy_call".
10938 (hppa32_use_struct_convention): Delete unused function.
10939 (hppa32_store_return_value): Delete unused function.
10940 (hppa32_extract_return_value): Delete unused function.
10941 (hppa32_stack_align): Delete function.
10942
10943 2004-02-27 Eli Zaretskii <eliz@elta.co.il>
10944
10945 * coffread.c (enter_linenos): Don't let rawptr reference memory
10946 outside linetab[]'s limits.
10947
10948 2004-02-27 Andrew Cagney <cagney@redhat.com>
10949
10950 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
10951 inferior stack space - the stack needs to grow upwards.
10952 (hppa32_frame_align): New function.
10953 (hppa64_frame_align): Replace hppa_frame_align.
10954 (hppa_gdbarch_init): Update.
10955
10956 2004-02-26 Orjan Friberg <orjanf@axis.com>
10957
10958 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
10959 (dwarf2-frame.h): Include.
10960 (enum cris_regnums): New enum CRIS_FP_REGNUM.
10961 Remove static variables related to ABI setting.
10962 (struct gdbarch_tdep): Remove cris_abi member.
10963 (struct frame_extra_info): Remove.
10964 (cris_unwind_cache, stack_item): New structs.
10965 (cris_frame_unwind, cris_frame_base): New variables.
10966 (push_stack_item, pop_stack_item)
10967 (cris_frame_unwind_cache, cris_frame_this_id)
10968 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
10969 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
10970 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
10971 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
10972 (cris_reg_struct_has_addr): New functions.
10973 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
10974 (cris_frame_saved_pc, cris_saved_pc_after_call,
10975 (cris_store_struct_return, cris_frameless_function_invocation)
10976 (cris_pop_frame, cris_skip_prologue_main)
10977 (cris_abi_original_store_return_value)
10978 (cris_abi_v2_store_return_value)
10979 (cris_abi_original_extract_return_value)
10980 (cris_abi_v2_extract_return_value)
10981 (cris_abi_original_reg_struct_has_addr)
10982 (cris_abi_v2_reg_struct_has_addr)
10983 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
10984 (cris_push_return_address, cris_abi_update): Remove.
10985 (_initialize_cris_tdep): Remove ABI command.
10986 (cris_dump_tdep): Ditto.
10987 (cris_gdbarch_init): Remove ABI command.
10988 Set store_return_value, extract_return_value, push_dummy_code,
10989 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
10990 frame_unwind_append_sniffer, frame_base_set_default.
10991 Clear deprecated init_frame_pc, push_arguments, store_return_value,
10992 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
10993 sizeof_call_dummy_words, get_saved_register, push_return_address,
10994 pop_frame, store_struct_return, frame_init_saved_regs,
10995 init_extra_frame_info, frameless_function_invocation, frame_chain,
10996 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
10997 dummy_write_sp.
10998
10999 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
11000
11001 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
11002 * valprint.c (print_hex_chars): Change from static to external.
11003 (print_char_chars): New function.
11004 * printcmd.c (print_scalar_formatted): For integer and enum types
11005 that are longer than LONGEST, perform processing via appropriate
11006 print_*_chars routines.
11007
11008 2004-02-26 Andrew Cagney <cagney@redhat.com>
11009
11010 * Makefile.in: Update dependencies.
11011 Changes from Ulrich Weigand,
11012 * s390-tdep.c: Include "dwarf2-frame.h".
11013 (s390_dwarf2_frame_init_reg): New function.
11014 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
11015 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
11016
11017 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
11018
11019 * breakpoint.c (pending_break_support): New setting variable.
11020 (break_command_1): Account for pending_break_support setting
11021 when creating pending breakpoints.
11022 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
11023 (_initialize_breakpoint): Add "set breakpoint pending" and
11024 "show breakpoint pending" commands.
11025
11026 2004-02-26 Andrew Cagney <cagney@redhat.com>
11027
11028 Fix PR i18n/1570.
11029 * charset.c (backslashable, backslashed, represented): Remove 'e'
11030 from list of escaped characters, not part of ISO-C.
11031
11032 2004-02-25 J. Brobecker <brobecker@gnat.com>
11033
11034 From Peter Schauer <schauer@pdf.de>:
11035 * tui/tui.c: Move system header includes after local includes.
11036 Fixes a build failure on solaris systems.
11037
11038 2004-02-25 J. Brobecker <brobecker@gnat.com>
11039
11040 * configure.in: Refine the previous change.
11041 * configure: Regenerate.
11042
11043 2004-02-25 Mark Kettenis <kettenis@gnu.org>
11044
11045 * amd64-tdep.h: Renamed from x86-64-tdep.h.
11046 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
11047 "amd64-tdep.h" instead of "x86-64-tdep.h".
11048 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
11049 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
11050 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
11051 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
11052 and "x86-64-tdep.c".
11053 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
11054 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
11055 and "x86-64-tdep.c".
11056 * amd64bsd-nat.c: Update copyright year.
11057 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
11058 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
11059 "x86-64-tdep.h".
11060 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
11061 "x86-64-tdep.h".
11062 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
11063 "x86-64-tdep.h".
11064 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
11065 "x86-64-tdep.h".
11066 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
11067 "x86-64-tdep.h".
11068 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
11069 "x86-64-tdep.h".
11070 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
11071 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
11072 * Makefile.in (amd64_linux_tdep_h): Renamed from
11073 x86_64_linux_tdep_h.
11074 (amd64_tdep_h): Renamed from x86_64_tdep_h.
11075 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
11076 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
11077 (amd64obsd-tdep.o): Update dependencies.
11078 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
11079 dependencies.
11080 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
11081 dependencies.
11082 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
11083 amd64-linux-nat.c amd64-linux-tdep.c.
11084 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
11085 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
11086 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
11087 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
11088 amd64-tdep.o and amd64-linux-tdep.o.
11089 (TM_FILE): Set to tm-linux64.h.
11090 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
11091 (NAT_FILE): Set to nm-linux64.h.
11092 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
11093 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11094 amd64-tdep.o.
11095 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11096 amd64-tdep.o.
11097 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11098 amd64-tdep.o.
11099
11100 2004-02-25 Roland McGrath <roland@redhat.com>
11101
11102 * remote.c (remote_protocol_qPart_auxv): New variable.
11103 (init_all_packet_configs): Initialize it.
11104 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
11105 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
11106 (show_remote_cmd): Call it.
11107 (_initialize_remote): Initialize commands.
11108 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
11109 service TARGET_OBJECT_AUXV requests.
11110
11111 2004-02-25 J. Brobecker <brobecker@gnat.com>
11112
11113 * configure.in: Make sure that the wborder function is available.
11114 Otherwise, search for it in the cur_colr library.
11115 * configure: Regenerate.
11116
11117 2004-02-25 Andrew Cagney <cagney@redhat.com>
11118
11119 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
11120
11121 2004-02-25 Mark Kettenis <kettenis@gnu.org>
11122
11123 * config/i386/tm-x86-64linux.h: Tweak comments.
11124
11125 2004-02-25 Richard Sandiford <rsandifo@redhat.com>
11126
11127 * MAINTAINERS: Add self to write-after-approval list.
11128
11129 2004-02-25 Andrew Cagney <cagney@redhat.com>
11130
11131 PR cli/1566. Problem found, and fix suggested by David Allan.
11132 * cli/cli-script.c (execute_control_command): Unconditionally
11133 install a cleanup. Default "ret" to "invalid_control". Use
11134 "break" instead of "return" to escape from the switch.
11135
11136 2004-02-24 J. Brobecker <brobecker@gnat.com>
11137
11138 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
11139 with the lines macro defined in term.h on AiX.
11140 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
11141 a collision with the label_width macro defined in term.h on AiX.
11142
11143 2004-02-23 David Mosberger <davidm@hpl.hp.com>
11144
11145 Committed by Kevin Buettner <kevinb@redhat.com>.
11146
11147 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
11148 * ia64-tdep.c (ia64_write_pc): Make it a global function.
11149 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
11150 instead of ia64_write_pc().
11151 * ia64-linux-tdep.c (regcache.h): Include.
11152 (ia64_linux_write_pc): New function.
11153
11154 2004-02-23 Roland McGrath <roland@redhat.com>
11155
11156 * auxv.c (info_auxv_command): Fix typos in error messages.
11157
11158 2004-02-23 Mark Kettenis <kettenis@gnu.org>
11159
11160 * x86-64-tdep.h: Tweak comment.
11161 (enum amd64_regnum): New.
11162 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
11163 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
11164 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
11165 (X86_64_XMM1_REGNUM): Removed.
11166 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
11167 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
11168 prototypes for renamed functions.
11169 * x86-64-tdep.c: Fix typo.
11170 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
11171 register numbers.
11172 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
11173 Use constants from `enum amd64_regnum' for register numbers.
11174 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
11175 (amd64_analyze_prologue, amd64_frame_cache,
11176 amd64_sigtramp_frame_cache): Use constants from `enum
11177 amd64_regnum' for register numbers.
11178 (amd64_supply_fpregset): Adjust for renamed functions.
11179 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
11180 `enum amd64_regnum' for register numbers.
11181 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
11182 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
11183 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
11184 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
11185 (amd64_linux_fill_gregset): Adjust for renamed macros.
11186 (fetch_core_registers): Adjust for renamed functions.
11187 (amd64_linux_init_abi): Adjust for renamed functions.
11188 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
11189 renamed functions.
11190 * amd64-nat.c: Adjust for renamed macros.
11191 * amd64bsd-nat.c (fetch_inferior_registers)
11192 (store_inferior_registers): Use constants from `enum amd64_regnum'
11193 for register numbers. Adjust for renamed variables.
11194 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
11195 renamed variables.
11196 (_initialize_amd64fbsd_nat): Use constants from `enum
11197 amd64_regnum' for register numbers.
11198 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
11199 `enum amd64_regnum' for register numbers.
11200 (amd64fbsd_init_abi): Adjust for renamed functions.
11201 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
11202 `enum amd64_regnum' for register numbers.
11203 (amd64nbsd_init_abi): Adjust for renamed functions.
11204 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
11205 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
11206 `enum amd64_regnum' for register numbers.
11207 (amd64obsd_init_abi): Adjust for renamed functions.
11208 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
11209
11210 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11211
11212 * breakpoint.c (print_one_breakpoint): Do not output spaces
11213 after printing <PENDING> for a pending breakpoint.
11214
11215 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11216
11217 * printcmd.c (print_scalar_formatted): Initialize val_long
11218 to remove compiler warning message.
11219
11220 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11221
11222 * defs.h (nquery, yquery): New prototypes.
11223 * breakpoint.c (break_command_1): Use new nquery interface.
11224 * utils.c (defaulted_query, nquery, yquery): New functions.
11225
11226 2004-02-23 Andrew Cagney <cagney@redhat.com>
11227
11228 * hppa-tdep.c (hppa_frame_align): New function.
11229 (hppa32_push_dummy_call): New function.
11230 (hppa64_push_dummy_call): New function.
11231 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
11232 disabled.
11233
11234 * infcall.c (legacy_push_dummy_code): Don't call deprecated
11235 FIX_CALL_DUMMY when push_dummy_call is available.
11236 (call_function_by_hand, push_dummy_code): Ditto.
11237
11238 2004-02-22 Andrew Cagney <cagney@redhat.com>
11239
11240 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
11241 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
11242 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
11243 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
11244 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
11245 call_dummy_location to ON_STACK.
11246
11247 2004-02-22 Mark Kettenis <kettenis@gnu.org>
11248
11249 * x86-64-linux-tdep.c: Tweak comment.
11250 (amd64_linux_supply_gregset): Renamed from
11251 x86_64_linux_supply_gresget.
11252 (amd64_linux_fill_gregset): Renamed from
11253 x86_64_linux_fill_gregset.
11254 (fetch_core_registers): Adjust for renamed functions.
11255 (amd64_core_fns): Renamed from x86_64_core_fns.
11256 (amd64_linux_sigtramp_start): Renamed from
11257 x86_64_linux_sigtramp_start.
11258 (amd64_linux_pc_in_sigtramp): Renamed from
11259 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
11260 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
11261 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
11262 (amd64_linux_sigcontext_addr): Renamed from
11263 x86_64_linux_sigcontext_addr.
11264 (amd64_linux_sc_reg_offset): Renamed from
11265 x86_64_linux_sc_reg_offset.
11266 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
11267 Adjust for renamed functions and variables.
11268 (_initialize_amd64_linux_tdep): Renamed from
11269 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
11270 variables.
11271 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
11272 Adjust for renamed functions.
11273
11274 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
11275 from x86_64_linux_gregset64_reg_offset.
11276 (amd64_linux_gregset32_reg_offset): Rename from
11277 x86_64_linux_gregset64_reg_offset.
11278 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
11279 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
11280 (amd64_linux_dr_set_control): Renamed from
11281 x86_64_linux_dr_set_control. Adjust for renamed functions.
11282 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
11283 Adjust for renamed functions.
11284 (amd64_linux_dr_reset_addr): Renamed from
11285 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
11286 (amd64_linux_dr_get_status): Renamed from
11287 x86_64_linux_dr_get_status. Adjust for renamed functions.
11288 (_initialize_amd64_linux_nat): Renamed from
11289 _initialize_x86_64_linux_nat. Adjust for renamed variables and
11290 functions.
11291 * config/i386/nm-x86-64linux.h: Update copyright year.
11292 Adjust for renamed functions.
11293
11294 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
11295 amd64fbsd_sigtramp_start.
11296 (amd64fbsd_sigtramp_end_addr): Renamed from
11297 amd64fbsd_sigtramp_end.
11298 (amd64fbsd_init_abi): Adjust for renamed variables.
11299 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
11300 variables.
11301 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
11302 amd64fbsd_sigtramp_start.
11303 (amd64fbsd_sigtramp_end_addr): Renamed from
11304 amd64fbsd_sigtramp_end.
11305
11306 2004-02-22 Andrew Cagney <cagney@redhat.com>
11307
11308 * hppa-tdep.c (hppa32_return_value): New function.
11309 (hppa64_return_value): New function.
11310 (hppa_gdbarch_init): Set return_value; keep disabled.
11311
11312 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
11313 struct-return and inferior function call methods.
11314
11315 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
11316 "frame-base.h".
11317 (struct hppa_frame_cache): Define.
11318 (hppa_frame_cache, hppa_frame_this_id): New functions.
11319 (hppa_frame_prev_register): New function.
11320 (hppa_frame_unwind, hppa_frame_base): New variables.
11321 (hppa_frame_unwind_sniffer): New function.
11322 (hppa_frame_base_address, hppa_unwind_pc): New function.
11323 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
11324 sniffer, and frame base sniffer; keep disabled.
11325 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
11326 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
11327
11328 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
11329 to predicates for "seriously old code".
11330
11331 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
11332 runtime if(0).
11333
11334 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
11335 unsigned.
11336 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
11337
11338 * config/pa/tm-hppa.h: Update copyright.
11339 (DEPRECATED_INIT_FRAME_PC): Delete macro.
11340 (deprecated_init_frame_pc_default): Delete declaration.
11341 (hppa_frame_init_saved_regs): Delete declaration.
11342 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
11343 * hppa-tdep.c: Include "arch-utils.h".
11344 (hppa_gdbarch_init): Set deprecated init_frame_pc
11345 and deprecated frame_init_saved_regs.
11346 (hppa_frame_init_saved_regs): Make static.
11347
11348 2004-02-22 Mark Kettenis <kettenis@gnu.org>
11349
11350 Remove old 386BSD support.
11351 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
11352 * configure.host: Remove i[34567]86-*-bsd*.
11353 * configure.tgt: Remove i[34567]86-*-bsd*.
11354 * i386b-nat.c: Removed.
11355 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
11356 (i386b-nat.o): Remove dependencies.
11357
11358 * config/i386/i386bsd.mh: Removed.
11359 * config/i386/i386bsd.mt: Removed.
11360 * config/i386/nm-i386bsd.h: Removed.
11361 * config/i386/tm-i386bsd.h: Removed.
11362 * config/i386/xm-i386bsd.h: Removed.
11363
11364 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
11365
11366 * amd64fbsd-tdep.c: Include "solib-svr4.h".
11367 (amd64fbsd_init_abi): Set link map offsets.
11368 * amd64nbsd-tdep.c: Include "slib-svr4.h".
11369 (amd64nbsd_init_abi): Set link map offsets.
11370 * amd64obsd-tdep.c: Include "solib-svr4.h".
11371 (amd64obsd_init_abi): Set link map offsets.
11372 * i386fbsd-tdep.c: Include "solib-svr4.h".
11373 (i386fbsd_init_abi): Set link map offsets.
11374 * i386nbsd-tdep.c: Include "solib-svr4.h".
11375 (i386nbsdelf_init_abi): Set link map offsets.
11376 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
11377 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
11378 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
11379 solib-legacy.o and core-aout.o. Reformat.
11380 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
11381 solib-svr4.o, solib-legacy.o. Reformat.
11382 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
11383 * config/i386/nbsdelf.mh: Reformat.
11384 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
11385 solib-svr4.o, solib-legacy.o and corelow.o.
11386 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
11387 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
11388 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
11389 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11390 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11391 (TM_FILE): Set to tm-fbsd.h.
11392 * config/i386/nbsd.mt (TDEPFILES): Reformat.
11393 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
11394 solib-svr4.o.
11395 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
11396 solib-svr4.o.
11397 (TM_FILE): Set to nm-nbsd.h.
11398 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
11399 Simplify shared library support. Don't include "elf/common.h".
11400 (SVR4_SHARED_LIBS): Don't define.
11401 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
11402 "solib.h".
11403 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
11404 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
11405 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
11406 Don't include "i386/tm-i386.h". Include "solib.h".
11407 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
11408 Don't include "i386/tm-i386.h".
11409 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
11410 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
11411 Include "i386/xm-i386.h".
11412 (HOST_LONG_DOUBLE_FORMAT): Remove.
11413
11414 Fix OpenBSD/i386 sigtramp recognition.
11415 * i386-tdep.h: Update copyright year.
11416 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
11417 (i386bsd_sigtramp_end): New prototypes.
11418 (i386fbsd_sigtramp_start_addr): Renamed from
11419 i386fbsd_sigtramp_start.
11420 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11421 (i386obsd_sigtramp_start_addr): Renamed from
11422 i386obsd_sigtramp_start.
11423 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11424 * i386bsd-tdep.c: Update copyright year.
11425 (i386bsd_pc_in_sigtramp): Make public.
11426 * i386fbsd-nat.c: Update copyright year.
11427 (_initialize_i386fbsd_nat): Adjust for renamed variables.
11428 * i386fbsd-tdep.c: Update copyright year.
11429 (i386fbsd_sigtramp_start_addr): Renamed from
11430 i386fbsd_sigtramp_start.
11431 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11432 (i386fbsdaout_init_abi): Adjust for renamed variables.
11433 * i386obsd-nat.c: Update copyright year.
11434 (_initialize_i386obsd_nat): Adjust for renamed variables.
11435 * i386obsd-tdep.c: Include "target.h".
11436 (i386obsd_page_size): New variable.
11437 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
11438 (i386obsd_sigtramp_end): New functions.
11439 (i386obsd_sigtramp_start_addr): Renamed from
11440 i386obsd_sigtramp_start.
11441 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11442 (i386obsd_init_abi): Adjust for renamed variables. Set
11443 pc_in_sigtramp, sigtramp_start and sigtramp_end.
11444 * Makefile.in (i386obsd-tdep.o): Update dependencies.
11445
11446 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
11447 trampoline change in OpenBSD kernel.
11448
11449 * amd64-nat.c: Update copyright year.
11450 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
11451 architecture from REGCACHE.
11452
11453 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
11454 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
11455
11456 2004-02-21 Mark Kettenis <kettenis@gnu.org>
11457
11458 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
11459 i[34567]86-*-openbsd3.[0-3].
11460 * config/i386/obsdaout.mh: New file.
11461
11462 * config/i386/obsd.mh (MH_FLAGS): Remove.
11463
11464 Fix PR build/1549.
11465 * i386obsd-tdep.c: Update copyright years. Include
11466 "solib-svr4.h".
11467 (i386obsd_init_abi): Don't set regset_from_core_section here.
11468 (i386obsd_aout_init_abi): New function. Set
11469 regset_from_core_section here.
11470 (i386obsd_elf_init_abi): New function.
11471 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
11472 * Makefile.in (i386obsd-tdep.o): Update dependecies.
11473 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
11474 (TM_FILE): Set to tm-nbsd.h.
11475
11476 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
11477 solib-sunos.o.
11478
11479 * solib-svr4.h: Update copyright year.
11480 (svr4_ilp32_fetch_link_map_offsets)
11481 (svr4_lp64_fetch_link_map_offsets): New prototype.
11482 * solib-svr4.c: Update copyright year.
11483 (svr4_ilp32_fetch_link_map_offsets)
11484 (svr4_lp64_fetch_link_map_offsets): New function.
11485
11486 2004-02-20 Daniel Jacobowitz <drow@mvista.com>
11487
11488 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
11489 to the partial symbol table.
11490
11491 2004-02-20 J. brobecker <brobecker@gnat.com>
11492
11493 * PROBLEMS: Add description of problem documented under gdb/1560.
11494
11495 2004-02-20 Mark Kettenis <kettenis@gnu.org>
11496
11497 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
11498 comments.
11499 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
11500 functions.
11501 (amd64obsd_init_abi): Reorder initializations. Use
11502 amd64obsd_r_reg_offset to initialize the general-purpose register
11503 set details. Set regset_from_core_section.
11504 (_initialize_amd64obsd_tdep): Rename from
11505 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
11506 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
11507 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
11508
11509 * NEWS (New native configurations): Mention OpenBSD/alpha.
11510 * configure.tgt: Add alpha*-*-openbsd*.
11511 * configure.host: Add alpha*-*-openbsd*.
11512 * alphanbsd-tdep.c: Update copyright year.
11513 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
11514
11515 2004-02-20 Andrew Cagney <cagney@redhat.com>
11516
11517 Fix PR tdep/1372.
11518 * configure.tgt: Delete target "none-*-*".
11519 * configure.host: Delete host "none-*-*".
11520 * config/none/none.mh: Delete file.
11521 * config/none/none.mt: Delete file.
11522 * config/none/xm-none.h: Delete file.
11523 * config/none/tm-none.h: Delete file.
11524 * config/none/nm-none.h: Delete file.
11525
11526 2004-02-19 Fred Fish <fnf@redhat.com>
11527
11528 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
11529 cache->uses_fp prior to setting it.
11530
11531 2004-02-19 Fred Fish <fnf@redhat.com>
11532
11533 Fix for PR breakpoint/1558.
11534 * sh-tdep.c (IS_JSR): New macro.
11535 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
11536
11537 2004-02-19 Jim Blandy <jimb@redhat.com>
11538
11539 * findvar.c (value_from_register): Doc fix.
11540
11541 2004-02-19 Jeff Johnston <jjohnstn@redhat.com>
11542
11543 * printcmd.c (print_scalar_formatted): Do not check for sizeof
11544 type being greater than sizeof of host's LONGEST. Always use
11545 unpack_long() unless format 'f' chosen.
11546
11547 2004-02-19 Joel Brobecker <brobecker@gnat.com>
11548
11549 Committed by Elena Zannoni <ezannoni@redhat.com>
11550
11551 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
11552 contains a symbol wich is the best, non-exact match for the given
11553 pc. Update comments.
11554
11555 2004-02-19 Elena Zannoni <ezannoni@redhat.com>
11556
11557 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
11558 macro, which was part of the now removed Mach 3 port.
11559 * utils.c (request_quit): Ditto.
11560
11561 2004-02-18 Mark Kettenis <kettenis@gnu.org>
11562
11563 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
11564 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
11565
11566 2004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11567
11568 Committed by Mark Kettenis <kettenis@gnu.org>.
11569
11570 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
11571 Define.
11572
11573 2004-02-18 Andrew Cagney <cagney@redhat.com>
11574
11575 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
11576 CONFIG_INSTALL and CONFIG_UNINSTALL.
11577 * configure: Re-generate.
11578 * interps.h (INTERP_TUI): Define.
11579 * Makefile.in: Update dependencies.
11580 (TUI): New macro.
11581 (tui-main.o): Specify dependencies.
11582 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
11583 * tui/tui-main.c: New file.
11584
11585 2004-02-18 Mark Kettenis <kettenis@gnu.org>
11586
11587 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
11588 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
11589 dependencies.
11590 * configure.host: Add x86_64-*-openbsd*.
11591 * configure.tgt: Add x86_64-*-openbsd*.
11592 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
11593
11594 * tui/tui.c: Don't include <malloc.h>.
11595
11596 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
11597 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
11598 amd64nbsd-tdep.c.
11599
11600 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
11601 static. Remove extraneous whitespace.
11602 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
11603 static.
11604
11605 2004-02-17 Jim Blandy <jimb@redhat.com>
11606
11607 * findvar.c (value_from_register): Doc fix.
11608
11609 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11610
11611 Committed by Jim Blandy <jimb@redhat.com>.
11612
11613 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
11614 CORE_ADDR as type for selectors. Correct types for GNU run time
11615 message lookup function to use double indirection.
11616 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
11617 * objc-lang.h (lookup_child_selector): Adapt prototype.
11618
11619 * s390-nat.c (SUBOFF): New macro.
11620 (supply_gregset, fill_gregset): Use it to handle debugging
11621 of 32-bit exectuables running under a 64-bit kernel.
11622 * s390-tdep.c: Include "solib-svr4.h".
11623 (s390_svr4_fetch_link_map_offset): New function.
11624 (s390x_svr_fetch_link_map_offset): Likewise.
11625 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
11626 * Makefile.in (s390-tdep.o): Update dependencies.
11627
11628 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
11629 "frame-unwind.h".
11630 (s390_readinstruction): Reformat. Use read_memory_nobpt.
11631 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
11632 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
11633 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
11634 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
11635 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
11636 S390_SIGNAL_FRAMESIZE,
11637 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
11638 (struct frame_extra_info): Remove.
11639 (s390_memset_extra_info): Remove.
11640 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
11641 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
11642 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
11643 (is_rse): Renamed to ...
11644 (is_rsy): ... this. Support long displacements.
11645 (is_rxe): Renamed to ...
11646 (is_rxy): ... this. Support long displacements.
11647 (compute_x_addr): Support long displacements.
11648 (struct s390_prologue_data): New data type.
11649 (s390_on_stack): Change API to use struct s390_prologue_data.
11650 (s390_store): Reimplement.
11651 (s390_load): New function.
11652 (s390_get_signal_frame_info): Remove.
11653 (s390_get_frame_info): Remove, replace by ...
11654 (s390_analyze_prolog): ... this new function.
11655 (s390_check_function_end): Remove.
11656 (s390_function_start): Remove.
11657 (s390_frameless_function_invokation): Remove.
11658 (s390_is_sigreturn): Remove.
11659 (s390_init_frame_pc_first): Remove.
11660 (s390_init_frame_extra_info): Remove.
11661 (s390_frame_init_saved_regs): Remove.
11662 (s390_frame_saved_pc_nofix): Remove.
11663 (s390_frame_saved_pc): Remove.
11664 (s390_frame_chain): Remove.
11665 (s390_fp_regnum, s390_read_fp): Remove.
11666 (s390_pop_frame_regular, s390_pop_frame): Remove.
11667 (s390_saved_pc_after_call): Remove.
11668 (s390_skip_prologue): Reimplement.
11669 (s390_in_function_epilogue_p): Support long displacements.
11670 (struct s390_unwind_cache): New data structure.
11671 (s390_frame_unwind_cache): New function.
11672 (s390_prologue_frame_unwind_cache): Likewise.
11673 (s390_backchain_frame_unwind_cache): Likewise.
11674 (s390_frame_this_id, s390_frame_prev_register): Likewise.
11675 (s390_frame_unwind): Define.
11676 (s390_frame_sniffer): New function.
11677 (struct s390_pltstub_unwind_cache): New data structure.
11678 (s390_pltstub_frame_unwind_cache): New function.
11679 (s390_pltstub_frame_this_id): Likewise.
11680 (s390_pltstub_frame_prev_register): Likewise.
11681 (s390_pltstub_frame_unwind): Define.
11682 (s390_pltstub_frame_sniffer): New function.
11683 (struct s390_sigtramp_unwind_cache): New data structure.
11684 (s390_sigtramp_frame_unwind_cache): New function.
11685 (s390_sigtramp_frame_this_id): Likewise.
11686 (s390_sigtramp_frame_prev_register): Likewise.
11687 (s390_sigtramp_frame_unwind): Define.
11688 (s390_sigtramp_frame_sniffer): New function.
11689 (s390_frame_base_address, s390_local_base_address): New functions.
11690 (s390_frame_base): Define.
11691 (s390_unwind_pc, s390_unwind_sp): New function.
11692 (s390_push_dummy_call): Use new frame base location.
11693 (s390_unwind_dummy_id): Likewise.
11694 (s390_gdbarch_init): Remove calls to:
11695 set_gdbarch_frameless_function_invocation,
11696 set_gdbarch_deprecated_init_frame_pc,
11697 set_gdbarch_deprecated_frame_chain,
11698 set_gdbarch_deprecated_frame_init_saved_regs,
11699 set_gdbarch_deprecated_pop_frame,
11700 set_gdbarch_deprecated_init_extra_frame_info,
11701 set_gdbarch_deprecated_init_frame_pc_first,
11702 set_gdbarch_deprecated_target_read_fp,
11703 set_gdbarch_deprecated_frame_saved_pc,
11704 set_gdbarch_deprecated_saved_pc_after_call,
11705 set_gdbarch_deprecated_fp_regnum.
11706 Add calls to:
11707 set_gdbarch_in_solib_call_trampoline,
11708 frame_unwind_append_sniffer,
11709 frame_base_set_default,
11710 set_gdbarch_unwind_pc,
11711 set_gdbarch_unwind_sp.
11712 * Makefile.in (s390-tdep.o): Update dependencies.
11713
11714 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
11715 (S390_STACK_FRAME_OVERHEAD): Remove.
11716 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
11717 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
11718 (s390_promote_integer_argument): Remove.
11719 (s390_cannot_extract_struct_value_address): Remove.
11720 (s390_use_struct_convention, s390_store_struct_return): Remove.
11721 (s390_extract_return_value, s390_store_return_value): Remove.
11722 (s390_return_value_convention, s390_return_value): New functions.
11723 (is_float_singleton): Handle typedefs.
11724 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
11725 Remove, replace by ...
11726 (s390_function_arg_pass_by_reference, s390_function_arg_float,
11727 s390_function_arg_integer): ... these new functions.
11728 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
11729 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
11730 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
11731 Fill in tdep->abi.
11732 Remove calls to:
11733 set_gdbarch_deprecated_store_struct_return,
11734 set_gdbarch_deprecated_extract_return_value,
11735 set_gdbarch_deprecated_store_return_value,
11736 set_gdbarch_use_struct_convention,
11737 set_gdbarch_extract_struct_value_address,
11738 set_gdbarch_deprecated_pc_in_call_dummy,
11739 set_gdbarch_deprecated_push_arguments,
11740 set_gdbarch_deprecated_save_dummy_frame_tos,
11741 set_gdbarch_deprecated_push_return_address,
11742 set_gdbarch_deprecated_sizeof_call_dummy_words,
11743 set_gdbarch_deprecated_call_dummy_words,
11744 set_gdbarch_deprecated_dummy_write_sp.
11745 Add calls to:
11746 set_gdbarch_push_dummy_call,
11747 set_gdbarch_unwind_dummy_id,
11748 set_gdbarch_return_value.
11749
11750 * config/s390/nm-linux.h: Update comments.
11751 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
11752 (STOPPED_BY_WATCHPOINT): Redefine.
11753 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
11754 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
11755 (s390_stopped_by_watchpoint): Likewise.
11756 (watch_area_cnt): Remove.
11757 * s390-nat.c: Update comments.
11758 (watch_area): Remove typedef.
11759 Global replace watch_area by struct watch_area.
11760 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
11761 (s390_stopped_by_watchpoint): Remove pid argument,
11762 use s390_inferior_tid. Add short-cut for the no watchpoint case.
11763 (s390_fix_watch_points): Remove pid argument,
11764 use s390_inferior_tid. Recompute area spanned by watchpoints.
11765 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
11766 argument. Reimplement.
11767
11768 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
11769 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
11770 (FETCH_INFERIOR_REGISTERS): Define.
11771 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
11772 core-regset.o.
11773 * config/s390/s390x.mt: Remove.
11774 * config/s390/tm-s390.h: Remove.
11775 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
11776 (TARGET_ELF64): Remove.
11777 (SKIP_TRAMPOLINE_CODE): Do not undefine.
11778 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
11779 s390*-*-* case; always set gdb_target to s390.
11780 * regformats/reg-s390.dat: Remove control registers.
11781 * regformats/reg-s390x.dat: Likewise.
11782 * s390-tdep.h: New file.
11783 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
11784 Include "inferior.h" and "s390-tdep.h".
11785 Remove private definition of offsetof.
11786 (s390_register_u_addr): Remove.
11787 (regmap_gregset, regmap_fpregset): Define.
11788 (supply_gregset, fill_gregset): Reimplement.
11789 (supply_fpregset, fill_fpregset): Likewise.
11790 (s390_inferior_tid): New function.
11791 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
11792 (fetch_inferior_registers, store_inferior_registers): Likewise.
11793 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
11794 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
11795 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
11796 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
11797 (struct gdbarch_tdep): Define.
11798 (struct s390_register_info): Define.
11799 (s390_register_info): New variable.
11800 (s390_register_name): Reimplement.
11801 (s390_register_type): New function.
11802 (s390_register_raw_size, s390x_register_raw_size): Remove.
11803 (s390_cannot_fetch_register): Remove.
11804 (s390_register_byte): Remove.
11805 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
11806 (s390_dwarf_regmap): New variable.
11807 (s390_dwarf_reg_to_regnum): New function.
11808 (s390_stab_reg_to_regnum): Remove.
11809 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
11810 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
11811 (s390_convert_register_p): Likewise.
11812 (s390_register_to_value, s390_value_to_register): Likewise.
11813 (s390_register_reggroup_p): Likewise.
11814 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
11815 s390_gregset, s390x_gregset, s390_fpregset): New variables.
11816 (s390_supply_regset, s390_regset_from_core_section): New functions.
11817 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
11818 (S390_FPR_SIZE): Likewise.
11819 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
11820 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
11821 (S390_NUM_GPRS): Move here from tm-s390.h.
11822 (S390_NUM_FPRS): Likewise.
11823 (s390_in_function_epilogue_p): New function.
11824 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
11825 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
11826 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
11827 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
11828 Replace S390_FP_REGNUM by S390_SP_REGNUM.
11829 Remove calls to:
11830 set_gdbarch_deprecated_max_register_raw_size,
11831 set_gdbarch_deprecated_max_register_virtual_size,
11832 set_gdbarch_deprecated_register_byte,
11833 set_gdbarch_cannot_fetch_register,
11834 set_gdbarch_cannot_store_register,
11835 set_gdbarch_deprecated_register_size,
11836 set_gdbarch_deprecated_register_raw_size,
11837 set_gdbarch_deprecated_register_virtual_size,
11838 set_gdbarch_deprecated_register_virtual_type,
11839 set_gdbarch_deprecated_register_bytes.
11840 Add calls to:
11841 set_gdbarch_num_pseudo_regs,
11842 set_gdbarch_register_type,
11843 set_gdbarch_convert_register_p,
11844 set_gdbarch_register_to_value,
11845 set_gdbarch_value_to_register,
11846 set_gdbarch_register_reggroup_p,
11847 set_gdbarch_regset_from_core_section,
11848 set_gdbarch_pseudo_register_read,
11849 set_gdbarch_pseudo_register_write,
11850 set_gdbarch_in_function_epilogue_p.
11851 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
11852 (s390_tdep_h): New variable.
11853
11854 2004-02-17 Jim Blandy <jimb@redhat.com>
11855
11856 * findvar.c (value_from_register): If the type has no length, just
11857 return an acceptable value --- don't report an internal error.
11858
11859 * stabsread.c (read_type): If we find any type numbers that are
11860 forward references, complain if the references aren't resolved by
11861 the time we're finished reading.
11862 (cleanup_undefined_types): Make error message more appropriate for
11863 a complaint.
11864
11865 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
11866
11867 * Makefile.in (defs_h): Remove dependency on progress_h.
11868 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
11869 progress.h.
11870 * main.c (captured_main): Delete use of START_PROGRESS and
11871 END_PROGRESS.
11872
11873 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
11874
11875 * objfiles.c (terminate_minimal_symbol_table): Add back
11876 initialization of MSYMBOL_TYPE.
11877
11878 2004-02-17 David Mosberger <davidm@hpl.hp.com>
11879
11880 Committed by Andrew Cagney.
11881 * Makefile.in (ia64_tdep_h): New macro.
11882 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
11883 (ia64-tdep.o): Likewise.
11884 * ia64-tdep.h: New file.
11885 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
11886 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
11887 (ia64_aix_sigcontext_register_address): Likewise.
11888 (ia64_linux_getunwind_table): Delete declaration.
11889 * ia64-linux-tdep.c: Likewise.
11890
11891 2004-02-17 Corinna Vinschen <vinschen@redhat.com>
11892
11893 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
11894 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
11895 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
11896
11897 2004-02-17 Andrew Cagney <cagney@redhat.com>
11898
11899 * symtab.c (skip_prologue_using_sal): New function.
11900 * symtab.h (skip_prologue_using_sal): Declare.
11901 * frv-tdep.c: Include "symtab.h".
11902 (skip_prologue_using_sal): Delete function.
11903 * mips-tdep.c (skip_prologue_using_sal): Delete function.
11904 * rs6000-tdep.c (refine_prologue_limit): Mention
11905 skip_prologue_using_sal.
11906 * ia64-tdep.c (refine_prologue_limit): Ditto.
11907 * Makefile.in: Update dependencies.
11908
11909 2004-02-16 Andrew Cagney <cagney@redhat.com>
11910
11911 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
11912 START_INFERIOR_TRAPS_EXPECTED.
11913 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
11914 START_INFERIOR_TRAPS_EXPECTED.
11915 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
11916 Delete macro.
11917 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
11918 macro, moved to "nm-osf.h". Update copyright.
11919 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
11920 update copyright.
11921
11922 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
11923 and function replacing FRAMELESS_FUNCTION_INVOCATION.
11924 * blockframe.c (legacy_frameless_look_for_prologue): Rename
11925 frameless_look_for_prologue.
11926 * frame.h (legacy_frameless_look_for_prologue): Rename
11927 frameless_look_for_prologue.
11928 * gdbarch.h, gdbarch.c: Re-generate.
11929 * sh64-tdep.c (sh64_gdbarch_init): Update.
11930 * sh-tdep.c (sh_gdbarch_init): Update.
11931 * s390-tdep.c (s390_gdbarch_init): Update.
11932 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11933 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11934 * m68k-tdep.c (m68k_gdbarch_init): Update.
11935 (delta68_frame_args_address): Update.
11936 * m32r-tdep.c (m32r_gdbarch_init): Update.
11937 * hppa-tdep.c (hppa_gdbarch_init): Update.
11938 * h8300-tdep.c (h8300_gdbarch_init): Update.
11939 * frv-tdep.c (frv_gdbarch_init): Update.
11940 (frv_frameless_function_invocation): Update.
11941 * cris-tdep.c (cris_gdbarch_init): Update.
11942 (cris_frameless_function_invocation): Update.
11943 * avr-tdep.c (avr_gdbarch_init): Update.
11944 * arm-tdep.c (arm_gdbarch_init): Update.
11945 * stack.c (frame_info): Update, call predicate.
11946 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
11947 * frame.c (legacy_get_prev_frame): Update, call predicate..
11948 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
11949 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
11950 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
11951 invocation.
11952 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11953 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11954 * vax-tdep.c (vax_gdbarch_init): Ditto.
11955
11956 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
11957 function.
11958
11959 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
11960
11961 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
11962 initializations.
11963
11964 2004-02-16 Andrew Cagney <cagney@redhat.com>
11965
11966 * tui/tui-windata.c: Include "gdb_string.h".
11967 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
11968 * tui/tui-layout.c, tui/tui-command.c: Ditto.
11969 * Makefile.in: Update dependencies.
11970
11971 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
11972
11973 * Makefile.in (infrun.o): Add $(gdb_assert_h).
11974 * infrun.c: Include "gdb_assert.h".
11975 (singlestep_ptid, saved_singlestep_ptid)
11976 (stepping_past_singlestep_breakpoint): New variables.
11977 (resume): Set singlestep_ptid. Check for singlestep thread
11978 hop.
11979 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
11980 (handle_inferior_event): Handle singlestep thread hop.
11981
11982 2004-02-16 Andrew Cagney <cagney@redhat.com>
11983
11984 * dwarf2-frame.c (dwarf2_frame_ops): New function.
11985 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
11986 (dwarf2_frame_init_reg): Ditto.
11987
11988 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
11989 suggested by Joshua Neuheisel
11990
11991 * configure.in: Always check for curses, including pdcurses.
11992 Warn, instead of error, when no curses are found. Enable TUI when
11993 curses is available.
11994 * configure: Re-generate.
11995
11996 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
11997
11998 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
11999 sh_sh4_register_convert_to_virtual.
12000 (sh_register_convert_to_raw): Rename from
12001 sh_sh4_register_convert_to_raw.
12002 (sh_pseudo_register_read): Accomodate above name change.
12003 (sh_pseudo_register_write): Ditto.
12004
12005 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
12006
12007 * sh-tdep.c (sh_generic_register_name): Remove.
12008 (sh_gdbarch_init): Use sh_sh_register_name in default case.
12009
12010 2004-02-15 Andrew Cagney <cagney@redhat.com>
12011
12012 * configure.in (build_warnings): Add -Wunused-function.
12013 * configure: Re-generate.
12014
12015 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
12016 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
12017
12018 * procfs.c (procfs_init_inferior): Assume that
12019 START_INFERIOR_TRAPS_EXPECTED is defined.
12020 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
12021 * config/ns32k/tm-nbsd.h: Delete file,
12022 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
12023
12024 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
12025 * config/vax/tm-vax.h: Delete file.
12026
12027 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12028 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12029 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12030 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12031 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
12032 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12033 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
12034
12035 2004-02-15 Mark Kettenis <kettenis@gnu.org>
12036
12037 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
12038 * dwarf2-frame.c (dwarf2_frame_data): New variable.
12039 (struct dwarf2_frame_ops): New.
12040 (dwarf2_frame_default_init_reg): New function, based on
12041 dwarf2_frame_init_reg.
12042 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
12043 (dwarf2_frame_init_reg): Call architecture-specific function.
12044 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
12045 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
12046 instead of dwarf2_frame_data.
12047 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
12048 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
12049
12050 2004-02-15 Andrew Cagney <cagney@redhat.com>
12051
12052 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
12053 register_gdbarch_swap.
12054 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
12055 * f-lang.c (_initialize_f_language): Update, use
12056 DEPRECATED_REGISTER_GDBARCH_SWAP.
12057 * remote.c (_initialize_remote): Ditto.
12058 * regcache.c (_initialize_regcache): Ditto.
12059 * parse.c (_initialize_parse): Ditto.
12060 * infrun.c (_initialize_infrun): Ditto.
12061 * mi/mi-main.c (_initialize_mi_main): Ditto.
12062 * gdbtypes.c (_initialize_gdbtypes): Ditto.
12063
12064 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
12065 poking .cacheable directly.
12066 * symfile.c (symfile_bfd_open): Ditto.
12067
12068 * Makefile.in: Update all dependencies.
12069
12070 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
12071 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
12072 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
12073 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
12074 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
12075
12076 2004-02-14 Andrew Cagney <cagney@redhat.com>
12077
12078 * arch-utils.c (legacy_convert_register_p): Check
12079 DEPRECATED_REGISTER_CONVERTIBLE_P.
12080 * findvar.c (value_of_register): Ditto.
12081
12082 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
12083 * gdbarch.h, gdbarch.c: Re-generate.
12084 * arch-utils.c (deprecated_register_convertible_not): Delete.
12085 * arch-utils.h (deprecated_register_convertible_not): Delete.
12086 * mi/mi-main.c (get_register): Update. Update copyright.
12087 * infcmd.c (default_print_registers_info): Update.
12088
12089 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
12090 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
12091 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
12092 * gdbarch.h, gdbarch.c: Re-generate.
12093 * frame.c (deprecated_get_next_frame_hack): Delete function.
12094 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
12095 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
12096 Update.
12097 * infcall.c (call_function_by_hand): Update.
12098
12099 2004-02-14 Elena Zannoni <ezannoni@redhat.com>
12100
12101 * symfile.c (init_entry_point_info, entry_point_address): Move
12102 from here...
12103 * objfiles.c (init_entry_point_info, entry_point_address):..to
12104 here.
12105 * symfile.h (init_entry_point_info, entry_point_address): Remove
12106 prototypes.
12107 * objfiles.h (init_entry_point_info, entry_point_address):Add
12108 prototypes.
12109 * cris-tdep.c: Remove include of symfile.h. Add include of
12110 objfiles.h.
12111 * infcall.c: Ditto.
12112 * mcore-tdep.c: Ditto.
12113 * mn10300-tdep.c: Ditto.
12114 * sh64-tdep.c: Ditto.
12115 * v850-tdep.c: Ditto.
12116 * arm-tdep.c: Remove include of symfile.h.
12117 * blockframe.c: Ditto.
12118 * coffread.c: Ditto.
12119 * dbxread.c: Ditto.
12120 * dwarf2read.c: Ditto.
12121 * dwarfread.c: Ditto.
12122 * frv-tdep.c: Ditto.
12123 * ia64-tdep.c: Ditto.
12124 * mdebugread.c: Ditto.
12125 * mipsread.c: Ditto.
12126 * rs6000-tdep.c: Ditto.
12127 * s390-tdep.c: Ditto.
12128 * sh-tdep.c: Ditto.
12129 * xstormy16-tdep.c: Ditto.
12130 * gdbarch.sh: Remove include of symfile.h.
12131 * gdbarch.c: Regenerate.
12132 * solib-irix.c (enable_break): Use entry_point_address().
12133 Add comment about include file.
12134 * xcoffread.c: Add comment about include file.
12135 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
12136 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
12137 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
12138 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
12139 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
12140
12141 2004-02-13 Andrew Cagney <cagney@redhat.com>
12142
12143 * corelow.c (core_xfer_partial): Use "struct bfd_section".
12144 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
12145 copyright.
12146 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
12147
12148 2004-02-12 Fred Fish <fnf@redhat.com>
12149
12150 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
12151 set_gdbarch_store_return_value.
12152
12153 2004-02-12 Andrew Cagney <cagney@redhat.com>
12154
12155 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
12156 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
12157 (interrupt_query): Ditto.
12158 (ofunc): Delete unused variable.
12159 * cris-tdep.c (cris_abi): Delete unused function.
12160 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
12161 (cris_get_wide_opcode, cris_get_short_size): Ditto.
12162 (cris_get_asr_quick_shift_steps): Ditto.
12163 (cris_skip_prologue_frameless_p): Ditto.
12164 * arm-tdep.c (arm_push_return_address): Delete unused function.
12165 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
12166 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
12167 * s390-tdep.c (s390_function_start): Delete unused function.
12168
12169 2004-02-12 Andrew Cagney <cagney@redhat.com>
12170
12171 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
12172 gdbarch.h, gdbarch.c: Re-generate.
12173 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
12174 to generic_prologue_frameless_p.
12175 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
12176 * arch-utils.c (generic_prologue_frameless_p): Delete function.
12177
12178 2004-02-11 Daniel Jacobowitz <drow@mvista.com>
12179
12180 * mips-linux-tdep.c: Include "frame.h".
12181 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
12182 (mips_linux_skip_resolver): New functions.
12183 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
12184 and set_gdbarch_in_solib_call_trampoline.
12185 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
12186 to after set_gdbarch_in_solib_return_trampoline. Only set the
12187 solib hooks to mips16 functions if the OS ABI is unknown.
12188 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
12189 including "config/tm-linux.h".
12190 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
12191 * Makefile.in (mips-linux-tdep.o): Update.
12192
12193 2004-02-11 David Carlton <carlton@kealia.com>
12194
12195 * linespec.c (decode_compound): Only look for a class symbol when
12196 considering all but the rightmost component.
12197
12198 2004-02-11 Andrew Cagney <cagney@redhat.com>
12199
12200 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
12201 abi code are are separatly grouped.
12202
12203 2004-02-11 Andrew Cagney <cagney@redhat.com>
12204
12205 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
12206 * gdbarch.h, gdbarch.c: Re-generate.
12207 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12208 * v850-tdep.c (v850_gdbarch_init): Update.
12209 * sh64-tdep.c (sh64_gdbarch_init): Update.
12210 * sh-tdep.c (sh_gdbarch_init): Update.
12211 * s390-tdep.c (s390_gdbarch_init): Update.
12212 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12213 * mips-tdep.c (mips_gdbarch_init): Update.
12214 * mcore-tdep.c (mcore_gdbarch_init): Update.
12215 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12216 * m32r-tdep.c (m32r_gdbarch_init): Update.
12217 * ia64-tdep.c (ia64_gdbarch_init): Update.
12218 * hppa-tdep.c (hppa_gdbarch_init): Update.
12219 * h8300-tdep.c (h8300_gdbarch_init): Update.
12220 * frv-tdep.c (frv_gdbarch_init): Update.
12221 * d10v-tdep.c (d10v_gdbarch_init): Update.
12222 * cris-tdep.c (cris_gdbarch_init): Update.
12223 * avr-tdep.c (avr_gdbarch_init): Update.
12224 * arm-tdep.c (arm_gdbarch_init): Update.
12225 * alpha-tdep.c (alpha_gdbarch_init): Update.
12226
12227 2004-02-11 Corinna Vinschen <vinschen@redhat.com>
12228
12229 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
12230 comma.
12231 (sh_sh4al_dsp_register_name): Ditto.
12232
12233 2004-02-10 Andrew Cagney <cagney@redhat.com>
12234
12235 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
12236 (mips_init_frame_pc_first): Delete function.
12237 (mips_frame_saved_pc): Delete function.
12238 (mips_frame_chain): Delete function.
12239 (mips_init_extra_frame_info): Delete function.
12240 (mips_xfer_register): Delete unused variable "reg".
12241 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
12242 (mips_n32n64_return_value): Delete unused variable "reg".
12243 (mips_n32n64_return_value): Delete unused variable "pos".
12244 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
12245 (mips_o32_return_value): Delete unused variable "pos".
12246 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
12247 (mips_print_fp_register): Delete unused variable "namelen"
12248 (mips_print_fp_register): Delete unused variable "flt2"
12249 (get_frame_pointer): Delete function.
12250 (cached_proc_desc): Delete static variable.
12251 (mips_pop_frame): Delete function.
12252 (mips_find_saved_regs): Delete function.
12253 (mips_get_saved_register): Delete function.
12254 (mips_saved_pc_after_call): Delete function.
12255 (SIGFRAME_BASE): Delete macro.
12256 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
12257 (SIGFRAME_PC_OFF): Delete macro.
12258 (SIGFRAME_REGSAVE_OFF): Delete macro.
12259 (mips_dump_tdep): Do not print deleted macro definitions.
12260
12261 2004-02-10 Andrew Cagney <cagney@redhat.com>
12262
12263 * Makefile.in (SFILES): Remove explictly listed tui files.
12264 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
12265
12266 2004-02-10 Jeff Johnston <jjohnstn@redhat.com>
12267
12268 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
12269 to use paddr functions to format ia64 addresses and long values.
12270 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
12271 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
12272 (get_kernel_table, ia64_find_proc_info_x): Ditto.
12273 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
12274 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
12275
12276 2004-02-10 Andrew Cagney <cagney@redhat.com>
12277
12278 * defs.h: Do not include "tui.h".
12279 * gdb_curses.h: New file.
12280 * tui/tui-hooks.h: New file.
12281 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
12282 (tui_install_hooks, tui_remove_hooks): Delete declarations.
12283 (tui_initialize_io): Delete declaration.
12284 (tui_initialize_readline: Delete redundant declaration.
12285 (struct tui_point): Delete definition.
12286 * tui/tui-data.h (struct tui_point): Define.
12287 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
12288 * utils.c: Include "tui/tui.h".
12289 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
12290 * printcmd.c [TUI]: Include "tui/tui.h".
12291 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
12292 * tui/tui-command.c: Include "gdb_curses.h".
12293 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
12294 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
12295 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
12296 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
12297 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
12298 * Makefile.in: Update all dependencies.
12299 (tui_hooks_h, gdb_curses_h): Define.
12300 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
12301
12302 2004-02-10 Elena Zannoni <ezannoni@redhat.com>
12303
12304 * objfiles.h (struct objfile): Remove unused fields auxf1 and
12305 auxf2. Add comments about some other rarely used fields.
12306
12307 2004-02-10 Andrew Cagney <cagney@redhat.com>
12308
12309 * Makefile.in (init.c): Fix script removing duplicates. Problem
12310 reported by Peter Schauer.
12311
12312 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
12313
12314 * bcache.c (bcache_xmalloc): Use obstack_init instead of
12315 obstack_specify_allocation.
12316 * objfiles.c (allocate_objfile): Ditto.
12317 * solib-sunos.c (solib_add_common_symbols)
12318 (allocate_rt_common_objfile): Ditto.
12319 * symfile.c (reread_symbols): Ditto.
12320 * gdb_obstack.h: Add comment.
12321
12322 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
12323
12324 * linespec.c (decode_line_1, locate_first_half)
12325 (decode_compound, lookup_prefix_sym): Update comments. Delete old
12326 commented out code.
12327
12328 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
12329
12330 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
12331 obstack_free.
12332
12333 2004-02-09 Andrew Cagney <cagney@redhat.com>
12334
12335 * blockframe.c (find_pc_partial_function): If find_pc_overlay
12336 fails, try find_pc_section. Fix PR c++/1267.
12337 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
12338 instead of find_pc_mapped_section.
12339 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
12340 not default to the section containing PC. Fix PR symtab/1519.
12341
12342 2004-02-09 Andrew Cagney <cagney@redhat.com>
12343
12344 * Makefile.in (mips-tdep.o): Update dependencies.
12345 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
12346 "trad-frame.h".
12347 (mips_unwind_pc): Return the pseudo PC register.
12348 (mips_unwind_dummy_id): New function.
12349 (mips16_fetch_instruction): New function.
12350 (mips32_fetch_instruction): New function.
12351 (struct mips_frame_cache): Define.
12352 (mips_mdebug_frame_cache): New function.
12353 (mips_mdebug_frame_this_id): New function.
12354 (mips_mdebug_frame_prev_register): New function.
12355 (mips_mdebug_frame_unwind): Define.
12356 (mips_mdebug_frame_sniffer): New function.
12357 (mips_mdebug_frame_base_address): New function.
12358 (mips_mdebug_frame_base): Define.
12359 (mips_mdebug_frame_base_sniffer): New function.
12360 (mips_gdbarch_init): Append unwind and base sniffers. Set
12361 unwind_dummy_id.
12362
12363 2004-02-08 Andrew Cagney <cagney@redhat.com>
12364
12365 * frame.c: Print both the register number and name.
12366
12367 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
12368 and a sed into a single sed. Make .c and .o patterns more robust.
12369 (OBS): Delete.
12370 (INIT_FILES): Replace OBS with COMMON_OBS.
12371 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
12372
12373 2004-02-08 Mark Kettenis <kettenis@gnu.org>
12374
12375 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
12376 the PT_WCOOKIE request.
12377
12378 2004-02-08 Andrew Cagney <cagney@redhat.com>
12379
12380 * mips-tdep.c (mips_unwind_pc): New function.
12381 (mips_gdbarch_init): Set mips_unwind_pc.
12382
12383 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
12384 (get_frame_id): Allow the UNKNOWN_FRAME.
12385 (frame_register_unwind, get_frame_type): Ditto.
12386
12387 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
12388 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
12389 unwind_dummy_id indicates a legacy frame.
12390
12391 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
12392 * configure: Re-generate.
12393
12394 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
12395 methods.
12396
12397 2004-02-08 Andrew Cagney <cagney@redhat.com>
12398
12399 * configure.in (CONFIG_ALL): Set to Makefile target, and not
12400 makefile macro.
12401 * configure: Re-generate.
12402 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
12403 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
12404 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
12405 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
12406 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
12407 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
12408 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
12409 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
12410 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
12411 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
12412
12413 2004-02-07 Andrew Cagney <cagney@redhat.com>
12414
12415 * Makefile.in: Update all dependencies.
12416
12417 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
12418 * configure: Re-generate.
12419 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
12420 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
12421 (COMMON_OBS): Add "main.o" and "annotate.o".
12422 (ANNOTATE_OBS): Delete.
12423 (OBS): Remove ANNOTATE_OBS.
12424 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
12425 CONFIG_INITS.
12426 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
12427 against CONFIG_OBS and "main.o".
12428 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
12429 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
12430
12431 * tui/tui-command.c: Include "gdb_string.h", delete register
12432 attribute, use ISO-C function signatures.
12433 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
12434 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
12435 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
12436 * tui/tui.c: Ditto.
12437
12438 * tui/tui-command.c: Change variable and function names to lower
12439 case.
12440 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
12441 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
12442 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
12443 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12444 * tui/tui-winsource.c, tui/tui.c: Ditto.
12445
12446 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
12447
12448 * buildsym.c (free_pending_blocks, finish_block)
12449 (record_pending_block, make_blockvector, end_symtab): Replace
12450 symbol_obstack with objfile_obstack.
12451 * coffread.c (process_coff_symbol, coff_read_struct_type)
12452 (coff_read_enum_type): Ditto.
12453 * cp-namespace.c (initialize_namespace_symtab)
12454 (check_one_possible_namespace_symbol): Ditto.
12455 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
12456 (dwarf2_symbol_mark_computed): Ditto.
12457 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
12458 * elfread.c (elf_symtab_read): Ditto.
12459 * hpread.c (hpread_symfile_init, hpread_symfile_init)
12460 (hpread_read_enum_type, hpread_read_function_type)
12461 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
12462 Ditto.
12463 * jv-lang.c (get_java_class_symtab, add_class_symbol)
12464 (java_link_class_type): Ditto.
12465 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
12466 (new_symbol): Ditto.
12467 * minsyms.c (install_minimal_symbols): Ditto.
12468 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
12469 (terminate_minimal_symbol_table): Replace symbol_obstack with
12470 objfile_obstack.
12471 (free_objfile): Remove freeing of symbol_obstack.
12472 * objfiles.h: Remove symbol_obstack field.
12473 * pa64solib.c (add_to_solist): Replace symbol_obstack with
12474 objfile_obstack.
12475 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
12476 symbol_obstack.
12477 (solib_add_common_symbols): Replace symbol_obstack with
12478 objfile_obstack.
12479 * somsolib.c (som_solib_add): Ditto.
12480 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
12481 (common_block_start, common_block_end): Ditto.
12482 * symfile.c (reread_symbols): Remove freeing and init of
12483 symbol_obstack.
12484 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
12485 * symfile.h: Update comment.
12486 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
12487 stats printing.
12488 * symtab.c (symbol_set_names): Replace symbol_obstack with
12489 objfile_obstack.
12490 * symtab.h (struct general_symbol_info, struct minimal_symbol):
12491 Update comments.
12492 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
12493 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
12494 objfile_obstack.
12495
12496 2004-02-07 Andrew Cagney <cagney@redhat.com>
12497
12498 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
12499 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
12500 fields and variables.
12501 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
12502 (m_beInvisible): Delete macro.
12503 * tui/tui-data.h: Fix case case fields and variables.
12504 (m_genWinPtrIsNull): Delete macro.
12505 (tui_win_list): Rename winList.
12506 (TUI_SRC_WIN): Rename srcWin.
12507 (TUI_DISASM_WIN): Rename disassemWin.
12508 (TUI_DATA_WIN): Rename dataWin.
12509 (TUI_CMD_WIN): Rename cmdWin.
12510 (m_genWinPtrNotNull): Delete macro.
12511 (m_winPtrIsNull): Delete macro.
12512 (m_winPtrNotNull): Delete macro.
12513 (tui_win_is_source_type): Replace m_winIsSourceType
12514 (tui_win_is_auxillary): Replace m_winIsAuzillary.
12515 (tui_win_has_locator): Replace m_hasLocator.
12516 (tui_set_win_highlight): Replace m_setWinHighlightOn and
12517 m_setWinHighlightOff.
12518 * tui/tui-data.c: Update references.
12519 (tui_win_is_source_type, tui_set_win_highlight): New functions.
12520 (tui_win_has_locator, tui_win_is_auxillary): New functions.
12521 * tui/tui-command.c, tui/tui-disasm.c: Update references.
12522 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
12523 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
12524 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12525 * tui/tui-winsource.c, tui/tui.c: Ditto.
12526
12527 2004-02-07 Mark Kettenis <kettenis@gnu.org>
12528
12529 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
12530 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
12531 StackGhost.
12532
12533 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
12534 variable `i6' to `i7'.
12535 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
12536
12537 2004-02-07 Andrew Cagney <cagney@redhat.com>
12538
12539 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
12540 (TuiPoint, TuiPointPtr): Ditto.
12541 (TuiStatus, TuiStatusPtr): Ditto.
12542 (TuiWinType, TuiWinTypePtr): Ditto.
12543 (struct tui_point): Rename _TuiPoint.
12544 (tui_get_low_disassembly_address): Rename
12545 tuiGetLowDisassemblyAddress.
12546 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
12547 (tuiFree): Delete declaration.
12548 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
12549 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
12550 * tui/tui.c (tuiFree): Delete function.
12551 * cli/cli-cmds.c (disassemble_command): Update references.
12552 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
12553 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
12554 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
12555 * tui/tui-winsource.c: Ditto.
12556
12557 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
12558
12559 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
12560 coffstab_build_psymtabs, elfstab_build_psymtabs)
12561 (stabsect_build_psymtabs): Replace psymbol_obstack with
12562 objfile_obstack.
12563 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
12564 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
12565 Ditto.
12566 * dwarfread.c (scan_compilation_units): Ditto.
12567 * elfread.c (elfstab_offset_sections): Ditto.
12568 * hppa-tdep.c (read_unwind_info): Ditto.
12569 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
12570 (hpread_end_psymtab): Ditto.
12571 * mdebugread.c (mdebug_build_psymtabs, add_pending)
12572 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
12573 Ditto.
12574 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
12575 * objfiles.c (add_to_objfile_sections)
12576 (build_objfile_section_table): Ditto.
12577 (allocate_objfile): Remove init of psymbol_obstack.
12578 (free_objfile): Remove freeing of psymbol_obstack.
12579 * objfiles.h (struct objfile): Remove field
12580 psymbol_obstack. Update comments.
12581 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
12582 psymbol_obstack with objfile_obstack.
12583 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
12584 psymbol_obstack.
12585 * somread.c (som_symfile_offsets, init_import_symbols)
12586 (init_export_symbols): Replace psymbol_obstack with
12587 objfile_obstack.
12588 * somsolib.c (som_solib_add_solib_objfile): Ditto.
12589 * symfile.c (default_symfile_offsets, syms_from_objfile)
12590 (reread_symbols): Remove freeing and init of psymbol_obstack.
12591 (cashier_psymtab): Update comment.
12592 * symmisc.c (print_objfile_statistics): Don't report stats for
12593 psymbol obstack.
12594 * symtab.h (struct general_symbol_info, struct partial_symtab):
12595 Update comments.
12596 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
12597 (xcoff_symfile_offsets): Replace psymbol_obstack with
12598 objfile_obstack.
12599
12600 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
12601
12602 * objfiles.h (struct objfile): Add objfile_obstack field.
12603 Remove type_obstack field.
12604
12605 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
12606 read_structure_scope read_enumeration, new_symbol): Replace
12607 type_obstack with objfile_obstack.
12608 * dwarfread.c (struct_type, enum_type): Ditto.
12609 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
12610 (lookup_fundamental_type): Ditto.
12611 * gdbtypes.h (TYPE_ALLOC): Ditto.
12612 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
12613 (hpread_read_doc_function_type, hpread_read_struct_type)
12614 (fix_static_member_physnames, hpread_read_array_type)
12615 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
12616 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
12617 (java_link_class_type): Ditto.
12618 * mdebugread.c (parse_type): Ditto.
12619 * objfiles.c (allocate_objfile, free_objfile): Ditto.
12620 * solib-sunos.c (solib_add_common_symbols): Ditto.
12621 * stabsread.c (define_symbol, read_type, read_member_functions,
12622 read_cpp_abbrev, read_one_struct_field): Ditto.
12623 * symfile.c (reread_symbols): Ditto.
12624 * symmisc.c (print_objfile_statistics): Ditto.
12625
12626 2004-02-07 Andrew Cagney <cagney@redhat.com>
12627
12628 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
12629 (tui_exec_info_content): Rename TuiExecInfoContent.
12630 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
12631 (TuiWinInfo, TuiWinInfoPtr): Ditto.
12632 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
12633 (TuiList, TuiListPtr): Ditto.
12634 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
12635 (TuiDataType, TuiDataTypePtr): Ditto.
12636 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
12637 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
12638 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
12639 (TuiSourceElement, TuiSourceElementPtr): Ditto.
12640 (TuiDataElement, TuiDataElementPtr): Ditto.
12641 (TuiWinElement, TuiWinElementPtr): Ditto.
12642 (TuiDataInfo, TuiDataInfoPtr): Ditto.
12643 (TuiCommandElement, TuiCommandElementPtr): Ditto.
12644 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
12645 (TuiWhichElement, TuiWhichElementPtr): Ditto.
12646 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
12647 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
12648 * tui/tui-command.c, tui/tui-data.c: Update references.
12649 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
12650 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
12651 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12652 * tui/tui-winsource.c, tui/tui.c: Ditto.
12653
12654 2004-02-07 Mark Kettenis <kettenis@gnu.org>
12655
12656 * dwarf2-frame.h: Update copyright.
12657 (enum dwarf2_frame_reg_rule): New.
12658 (struct dwarf2_frame_state_reg): New.
12659 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
12660 * dwarf2-frame.c: Update copyright.
12661 (enum dwarf2_reg_rule): Remove.
12662 (struct dwarf2_frame_state): Remove defenition of `struct
12663 dwarf2_frame_state_reg'.
12664 (read_reg): Call get_frame_arch to get the architecture instead of
12665 using CURRENT_GDBARCH.
12666 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
12667 DWARF2_FRAME_.
12668 (dwarf2_frame_init_reg): New function.
12669 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
12670 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
12671 initialize the register state. Prefix old `enum dwarf2_reg_rule'
12672 tags with DWARF2_FRAME_.
12673 (dwarf2_frame_prev_register): Call get_frame_arch to get the
12674 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
12675 dwarf2_reg_rule' tags with DWARF2_FRAME_.
12676
12677 2004-02-06 Andrew Cagney <cagney@redhat.com>
12678
12679 * tui/tui-data.h (struct tui_list): Rename _TuiList.
12680 (enum tui_data_type): Rename _TuiDataType.
12681 (struct tui_layout_def): Rename _TuiLayoutDef.
12682 (struct tui_source_element): Rename _TuiSourceElement.
12683 (struct tui_data_element): Rename _TuiDataElement.
12684 (struct tui_command_element): Rename _TuiCommandElement.
12685 (struct tui_locator_element): Rename _TuiLocatorElement.
12686 (union tui_which_element): Define.
12687 (struct tui_win_element): Rename _TuiWinElement.
12688 (struct tui_data_info): Rename _TuiDataInfo.
12689 (struct tui_source_info): Rename _TuiSourceInfo.
12690 (struct tui_command_info): Rename _TuiCommandInfo.
12691 (tui_initialize_static_data): Rename initializeStaticData.
12692 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
12693 (tui_alloc_win_info): Rename allocWinInfo.
12694 (tui_init_generic_part): Rename initGenericPart.
12695 (tui_init_win_info): Rename initWinInfo.
12696 (tui_alloc_content): Rename allocContent.
12697 (tui_add_content_elements): Rename addContentElements.
12698 (tui_init_content_element): Rename initContentElement.
12699 (tui_free_window): Rename freeWindow.
12700 (tui_free_win_content): Rename freeWinContent.
12701 (tui_free_data_content): Rename freeDataContent.
12702 (tui_free_all_source_wins_content): Rename
12703 freeAllSourceWinsContent.
12704 (tui_del_window): Rename tuiDelWindow.
12705 (tui_del_data_windows): Rename tuiDelDataWindows.
12706 (tui_partial_win_by_name): Rename partialWinByName.
12707 (tui_win_name): Rename winName.
12708 (tui_current_layout): Rename currentLayout.
12709 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
12710 (tui_term_height): Rename termHeight.
12711 (tui_set_term_height_to): Rename setTermHeightTo.
12712 (tui_term_width): Rename termWidth.
12713 (tui_set_term_width_to): Rename setTermWidthTo.
12714 (tui_set_gen_win_origin): Rename setGenWinOrigin.
12715 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
12716 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
12717 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
12718 (tui_source_windows): Rename sourceWindows.
12719 (tui_clear_source_windows): Rename clearSourceWindows.
12720 (tui_clear_source_windows_detail): Rename
12721 clearSourceWindowsDetail.
12722 (tui_clear_win_detail): Rename clearWinDetail.
12723 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
12724 (tui_default_tab_len): Rename tuiDefaultTabLen.
12725 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
12726 (tui_win_with_focus): Rename tuiWinWithFocus.
12727 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
12728 (tui_layout_def): Rename tuiLayoutDef.
12729 (tui_win_resized): Rename tuiWinResized.
12730 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
12731 (tui_next_win): Rename tuiNextWin.
12732 (tui_prev_win): Rename tuiPrevWin.
12733 (tui_add_to_source_windows): Rename addToSourceWindows.
12734 * tui/tui-winsource.c, tui/tui-win.c: Update references.
12735 * tui/tui-layout.c, tui/tui-source.c: Ditto.
12736 * tui/tui-stack.c, tui/tui-io.c: Ditto.
12737 * tui/tui.c, tui/tui-data.c: Ditto.
12738 * tui/tui-interp.c, tui/tui-data.c: Ditto.
12739 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
12740
12741 * tui/tui-source.h: Update copyright. Include "tui-data.h".
12742 (struct symtab): Declare.
12743 (tui_set_source_content): Rename tuiSetSourceContent.
12744 (tui_show_symtab_source): Rename tuiShowSource.
12745 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
12746 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
12747 * tui/tui-source.c: Update copyright. Update references.
12748 * tui/tui-win.c, tui/tui-winsource.c: Update references.
12749 * tui/tui-stack.c: Update references.
12750
12751 * tui/tui-win.h: Update copyright. Include "tui-data.h".
12752 (struct tui_win_info): Declare.
12753 (tui_scroll_forward): Rename tuiScrollForward.
12754 (tui_scroll_backward): Rename tuiScrollBackward.
12755 (tui_scroll_left): Rename tuiScrollLeft.
12756 (tui_scroll_right): Rename tuiScrollRight.
12757 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
12758 (tui_resize_all): Rename tuiResizeAll.
12759 (tui_refresh_all_win): Rename tuiRefreshAll.
12760 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
12761 * tui/tui-layout.c, * tui/tui-io.c: Update references.
12762 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
12763 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
12764
12765 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
12766 (tui_erase_data_content): Rename tuiEraseDataContent.
12767 (tui_display_all_data): Rename tuiDisplayAllData.
12768 (tui_check_data_values): Rename tuiCheckDataValues.
12769 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
12770 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
12771 (tui_first_data_element_no_in_line): Rename
12772 tuiFirstDataElementNoInLine.
12773 (tui_delete_data_content_windows): Rename
12774 tuiDeleteDataContentWindows.
12775 (tui_refresh_data_win): Rename tuiRefreshDataWin.
12776 (tui_display_data_from): Rename tuiDisplayDataFrom.
12777 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
12778 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
12779 * tui/tui-win.c, tui/tui-regs.c: Update references.
12780 * tui/tui-layout.c, tui/tui.c: Update references.
12781
12782 * tui/tui-wingeneral.h: Update copyright.
12783 (m_allBeVisible): Delete macro.
12784 (m_allBeInvisible): Delete macro.
12785 (struct tui_gen_win_info): Declare.
12786 (struct tui_win_info): Declare.
12787 (tui_unhighlight_win): Rename unhighlightWin.
12788 (tui_make_visible, tui_make_invisible): Replace makeVisible.
12789 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
12790 (tui_make_window): Rename makeWindow.
12791 (tui_copy_win): Rename copyWin.
12792 (tui_box_win): Rename boxWin.
12793 (tui_highlight_win): Rename highlightWin.
12794 (tui_check_and_display_highlight_if_needed): Rename
12795 checkAndDisplayHighlightIfNeeded.
12796 (tui_refresh_all): Rename refreshAll.
12797 (tui_delete_win): Rename tuiDelwin.
12798 (tui_refresh_win): Rename tuiRefreshWin.
12799 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
12800 (tui_make_visible, tui_make_invisible): New functions.
12801 (tui_make_all_visible, tui_make_all_invisible): New functions.
12802 (make_all_visible): Rename makeAllVisible.
12803 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
12804 * tui/tui-data.c, tui/tui-winsource.c: Update references.
12805 * tui/tui-windata.c, tui/tui-win.c: Update references.
12806 * tui/tui-regs.c, tui/tui-layout.c: Update references.
12807 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
12808
12809 2004-02-06 Mark Kettenis <kettenis@gnu.org>
12810
12811 * proc-api.c (write_with_trace): Initialize local variable to
12812 silence compiler warning.
12813
12814 2004-02-06 Andrew Cagney <cagney@redhat.com>
12815
12816 * tui/tui-source.h: Do not include "defs.h".
12817 (struct tui_win_info): Declare.
12818 (tui_set_source_content_nil): Declare.
12819 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
12820 (union tui_line_or_address): Rename _TuiLineOrAddress.
12821 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
12822 (tui_update_source_window): Rename tuiUpdateSourceWindow.
12823 (tui_update_source_window_as_is): Rename
12824 tuiUpdateSourceWindowAsIs.
12825 (tui_update_source_windows_with_addr): Rename
12826 tuiUpdateSourceWindowsWithAddr.
12827 (tui_update_source_windows_with_line): Rename
12828 tuiUpdateSourceWindowsWithLine.
12829 (tui_clear_source_content): Rename tuiClearSourceContent.
12830 (tui_erase_source_content): Rename tuiEraseSourceContent.
12831 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
12832 (tui_show_source_content): Rename tuiShowSourceContent.
12833 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
12834 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
12835 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
12836 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
12837 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
12838 (tui_update_exec_info): Rename tuiUpdateExecInfo.
12839 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
12840 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
12841 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
12842 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
12843 (struct tui_win_info): Declare.
12844 * tui/tui-stack.c: Update references.
12845 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
12846 * tui/tui-win.c, tui/tui-source.c: Ditto.
12847 * tui/tui.c, tui/tui-disasm.c: Ditto.
12848
12849 2004-02-06 Mark Kettenis <kettenis@gnu.org>
12850
12851 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
12852 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
12853
12854 2004-02-05 Mark Kettenis <kettenis@gnu.org>
12855
12856 * infrun.c (handle_inferior_event): Allow for breakpoint
12857 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
12858 and SIGEMT. Update comments.
12859 * NEWS (Revised SPARC target): Mention support for non-executable
12860 stack.
12861
12862 2004-02-04 Mark Kettenis <kettenis@gnu.org>
12863
12864 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
12865 * inftarg.c: Update copyright year.
12866 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
12867 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
12868 (sparc_xfer_wcookie): New function.
12869 * sparc-tdep.c (sparc_fetch_wcookie): New function.
12870 * Makefile.in (sparc-nat.o): Update dependencies.
12871 * config/sparc/nm-nbsd.h: Include "target.h".
12872 (NATIVE_XFER_WCOOKIE): New define.
12873 (sparc_xfer_wcookie): New prototype.
12874
12875 2004-02-04 Andrew Cagney <cagney@redhat.com>
12876
12877 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
12878 SYSCALL_TRAP function.
12879 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
12880
12881 2004-02-04 Andrew Cagney <cagney@redhat.com>
12882 Daniel Jacobowitz <drow@mvista.com>
12883
12884 * objfiles.h: Delete comments refering to inside_entry_func and
12885 DEPRECATED_FRAME_CHAIN_VALID.
12886 * defs.h (inside_entry_func): Update prototype..
12887 * blockframe.c (inside_entry_func): Rename to
12888 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
12889 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
12890
12891 2004-02-03 Jeff Johnston <jjohnstn@redhat.com>
12892
12893 * breakpoint.c (struct captured_parse_breakpoint_args): Move
12894 outside of #ifdef SOLIB_ADD region.
12895 (do_restore_lang_radix_cleanup): Ditto.
12896 (resolve_pending_breakpoint): Ditto.
12897
12898 2004-02-03 Andrew Cagney <cagney@redhat.com>
12899
12900 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
12901 (process_note_abi_tag_sections): Delete unused function.
12902 (ia64_read_fp): Delete unused function.
12903 (gdbarch_extract_struct_value_address): Delete declaration.
12904
12905 2004-02-02 Andrew Cagney <cagney@redhat.com>
12906
12907 * vax-tdep.c (vax_frame_chain): Delete call to
12908 deprecated_inside_entry_file.
12909 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
12910
12911 2004-02-02 Mark Kettenis <kettenis@gnu.org>
12912
12913 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
12914 column that's "empty" or "same value" when eliminating REG_RA
12915 rules.
12916
12917 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
12918
12919 * NEWS: Add information about new pending breakpoint support.
12920
12921 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
12922
12923 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
12924 and pending fields for pending breakpoint support.
12925 * breakpoint.c (breakpoint_enabled): Add check for not pending.
12926 (condition_command): Only parse condition if not a pending
12927 breakpoint.
12928 (print_one_breakpoint): Add support for pending breakpoints.
12929 (describe_other_breakpoints): Add checks to verify we are not
12930 dealing with pending breakpoints.
12931 (check_duplicates): Don't check pending breakpoints.
12932 (set_raw_breakpoint): Initialize pending flag.
12933 (do_restore_lang_radix_cleanup): New cleanup routine.
12934 (resolve_pending_breakpoint): New function.
12935 (re_enable_breakpoints_in_shlibs): Try and resolve any
12936 pending breakpoints via resolve_pending_breakpoint.
12937 (mention): Add pending breakpoint support.
12938 (parse_breakpoint_sals): Add new parameter to pass to
12939 decode_line_1 to indicate silent errors when files or functions
12940 are not found. Change all callers.
12941 (do_captured_parse_breakpoint): New function.
12942 (break_command_1): Change prototype to return an rc value and to
12943 take an optional pending breakpoint pointer. Support creating
12944 a pending breakpoint if a "not found" form of error occurs when
12945 parsing the breakpoint. Also support resolving an existing pending
12946 breakpoint and be silent if the resolution fails.
12947 (create_breakpoints): Change prototype to take pending breakpoint
12948 pointer. When resolving a pending breakpoint, use the new pointer
12949 to provide a conditional or commands added by the end-user.
12950 (delete_breakpoint): Add appropriate check for pending.
12951 (breakpoint_re_set_one): Ditto.
12952 (do_enable_breakpoint): Ditto.
12953
12954 2004-02-02 David Carlton <carlton@kealia.com>
12955
12956 * valops.c (enum oload_classification): New.
12957 (find_overload_match): Break implementation into separate
12958 functions; delete #if 0'd code; look for symbols within
12959 namespaces.
12960 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
12961 (find_oload_champ,oload_method_static,classify_oload_match): New.
12962 * cp-support.h: Add declaration for cp_func_name; update
12963 declaration for make_symbol_overload_list.
12964 * cp-support.c (cp_func_name): New.
12965 (overload_list_add_symbol): Fix comment, use
12966 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
12967 (make_symbol_overload_list): Take a function name and a namespace
12968 instead of a symbol; change implementation.
12969 (make_symbol_overload_list_using): New.
12970 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
12971
12972 2004-02-02 Fred Fish <fnf@redhat.com>
12973
12974 * main.c (gdb_stdtarg): Move definition to group with other
12975 gdb_stdtarg definitions and update copyright years.
12976 * remote-sim.c (gdb_os_write_stderr): Write output to
12977 gdb_stdtargerr stream instead of gdb_stdtarg stream.
12978 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
12979 gdb_stderr stream and update copyright years.
12980
12981 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
12982
12983 * Makefile.in (mips-linux-nat.o): Update dependencies.
12984 * mips-linux-nat.c: Include mips-tdep.h.
12985
12986 2004-02-01 Roland McGrath <roland@redhat.com>
12987
12988 * sol-thread.c (sol_thread_xfer_partial): New function.
12989 (init_sol_thread_ops): Use that for to_xfer_partial hook.
12990 (init_sol_core_ops): Likewise.
12991
12992 * procfs.c (procfs_xfer_partial): New function.
12993 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
12994 * Makefile.in (procfs.o): Add $(auxv_h) dep.
12995
12996 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
12997 procfs_xfer_auxv function.
12998
12999 * procfs.c (procfs_make_note_section): If we can read
13000 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
13001 * linux-proc.c (linux_make_note_section): Likewise.
13002
13003 * auxv.h: New file.
13004 * auxv.c: New file.
13005 * Makefile.in (auxv_h): New variable.
13006 (COMMON_OBS): Add auxv.o here.
13007 (auxv.o): New target.
13008
13009 * corelow.c (core_xfer_partial): New function.
13010 (init_core_ops): Use it for core_ops.to_xfer_partial.
13011
13012 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
13013 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
13014 macro if that is defined.
13015
13016 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
13017
13018 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
13019 and check the specified thread for each breakpoint.
13020 * breakpoint.h (bpstat_stop_status): Update prototype.
13021 * infrun.c (handle_inferior_event): Update calls to
13022 bpstat_stop_status.
13023
13024 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
13025
13026 * Makefile.in (cli-cmds.o): Add $(readline_h).
13027
13028 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
13029
13030 * cli/cli-cmds.c: Include readline.h.
13031 (complete_command): Pass the start of the last word to
13032 complete_line.
13033
13034 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
13035
13036 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
13037 argument, and change first argument to a CORE_ADDR.
13038 * breakpoint.h (bpstat_stop_status): Update prototype.
13039 * infrun.c (adjust_pc_after_break): Add a new comment.
13040 (handle_inferior_event): Update calls to bpstat_stop_status.
13041
13042 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
13043
13044 * breakpoint.h: Update copyright years.
13045
13046 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
13047
13048 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
13049 (bpstat_stop_status): Don't decrement PC.
13050 * breakpoint.h (software_breakpoint_inserted_here_p): Add
13051 prototype.
13052 * infrun.c (adjust_pc_after_break): New function.
13053 (handle_inferior_event): Call it, early. Remove later references
13054 to DECR_PC_AFTER_BREAK.
13055 (normal_stop): Add commentary.
13056
13057 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
13058
13059 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
13060 2004-01-27 double-free fix.
13061
13062 2004-01-31 Mark Kettenis <kettenis@gnu.org>
13063
13064 * sparc-tdep.c (sparc_fetch_wcookie): New function.
13065 (sparc32_frame_prev_register): Handle StackGhost.
13066 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
13067
13068 2004-01-29 Roland McGrath <roland@redhat.com>
13069
13070 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
13071 * configure: Regenerated.
13072
13073 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
13074 * Makefile.in (procfs.o): Add dep.
13075
13076 2004-01-28 Andrew Cagney <cagney@redhat.com>
13077
13078 * tui/tui-stack.h: Update copyright.
13079 (struct frame_info): Add opaque declaration.
13080 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
13081 (tui_show_locator_content): Rename tuiShowLocatorContent.
13082 (tui_show_frame_info): Rename tuiShowFrameInfo.
13083 * tui/tui-stack.c: Update copyright. Update references.
13084 * tui/tui-winsource.c: Update references.
13085 * tui/tui-win.c: Update references.
13086 * tui/tui-layout.c: Update references.
13087 * tui/tui-hooks.c: Update copyright, update references.
13088 * tui/tui.c: Update copyright, update references.
13089 * tui/tui-disasm.c: Update references.
13090
13091 2004-01-28 David Carlton <carlton@kealia.com>
13092
13093 * dwarf2read.c (add_partial_structure): Use demangled name if
13094 namespace equals "".
13095
13096 2004-01-27 Jim Blandy <jimb@redhat.com>
13097
13098 Clean up misapplied patch:
13099 * dwarf2read.c (determine_prefix): Change one of the two forward
13100 declarations for 'determine_prefix_aux' to a declaration for this.
13101 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
13102 argument to 'die_specification'.
13103
13104 * dwarf2read.c (read_func_scope): Re-indent comment.
13105
13106 2004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
13107
13108 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
13109 b->exp to NULL after freeing so that error during re-parsing or
13110 evaluation of expressions associated with breakpoint don't
13111 eventually lead to re-freeing of storage.
13112 Committed by Andrew Cagney.
13113
13114 2004-01-27 Andrew Cagney <cagney@redhat.com>
13115
13116 * source.c (ambiguous_line_spec): Delete undefined declaration.
13117 * m32r-rom.c (m32r_set_board_address): Delete unused function.
13118 (m32r_set_server_address, m32r_set_download_path): Ditto.
13119 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
13120
13121 2004-01-27 Daniel Jacobowitz <drow@mvista.com>
13122
13123 * dwarf2read.c: Update calls to changed and renamed functions, and
13124 references to moved variables.
13125
13126 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
13127 language, language_defn, list_in_scope, and ftypes members.
13128 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
13129 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
13130 (baseaddr): Remove globals.
13131
13132 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
13133 (set_cu_language, die_is_declaration, die_specification)
13134 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
13135 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
13136 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
13137 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
13138
13139 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
13140 cu.list_in_scope. Don't initialize cu_header_offset.
13141 (add_partial_symbol): Add local baseaddr.
13142 (psymtab_to_symtab_1): Add local baseaddr. Use
13143 objfile->section_offsets for consistency. Don't initialize
13144 cu_header_offset; do initialize cu.header.offset and
13145 cu.list_in_scope.
13146 (read_file_scope, read_func_scope, read_lexical_block_scope)
13147 (dwarf_decode_lines, new_symbol): Add local baseaddr.
13148
13149 2004-01-27 Michael Chastain <mec.gnu@mindspring.com>
13150
13151 * PROBLEMS: Add gdb/1516.
13152
13153 2003-12-29 Robert Millan <robertmh@gnu.org>
13154
13155 Patch committed by Andrw Cagney.
13156 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
13157 * configure.tgt: Match knetbsd*-gnu.
13158
13159 2004-01-26 Andrew Cagney <cagney@redhat.com>
13160
13161 * breakpoint.c (catch_command_1): Delete #ifdef code.
13162 (catch_fork_command_1): Delete #ifdef wrapper.
13163 (catch_exec_command_1): Ditto.
13164 (catch_load_command_1): Ditto.
13165 (catch_unload_command_1): Ditto.
13166
13167 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
13168 (catch_breakpoint): Delete #if0ed function.
13169 (disable_catch_breakpoint): Ditto.
13170 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
13171 (disable_catch, enable_catch, delete_catch): Ditto.
13172
13173 2004-01-26 Andrew Cagney <cagney@redhat.com>
13174
13175 * remote.c (echo_check, quit_flag): Delete variables.
13176 (cisco_kernel_mode): Delete variable.
13177 (minitelnet_return, tty_input, escape_count): Delete variables.
13178 (remote_cisco_mode): Delete variable.
13179 (remote_cisco_open, remote_cisco_close): Delete function.
13180 (remote_cisco_mourn, remote_cisco_wait): Delete function.
13181 (init_remote_cisco_ops): Delete function.
13182 (_initialize_remote): Do not install "remote cisco" code.
13183 (read_frame): Delete cisco specific code.
13184 (remote_info_process): Delete function.
13185 (remote_wait): Delete cisco specific code.
13186 (remote_cisco_section_offsets): Delete function.
13187 (remote_cisco_objfile_relocate): Delete function.
13188 (remote_async_wait): Delete cisco specific code.
13189 (minitelnet, readtty, readsocket): Delete function.
13190
13191 2004-01-26 Andrew Cagney <cagney@redhat.com>
13192
13193 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
13194 comments mentioning extract_returned_value_address.
13195 * infcmd.c (print_return_value): Update. Add comments on
13196 extract_returned_value_address.
13197 * stack.c (return_command): Add comments on
13198 extract_returned_value_address.
13199 * values.c: Update comment.
13200 * m32r-tdep.c: Update comment.
13201 * sparc-tdep.c: Update comment.
13202 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
13203 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
13204 * sh64-tdep.c (sh64_gdbarch_init): Update.
13205 * sh-tdep.c (sh_gdbarch_init): Update.
13206 * s390-tdep.c (s390_gdbarch_init): Update.
13207 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
13208 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
13209 * m68k-tdep.c (m68k_gdbarch_init): Update.
13210 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
13211 * m32r-tdep.c (m32r_gdbarch_init): Update.
13212 * ia64-tdep.c (ia64_gdbarch_init): Update.
13213 * h8300-tdep.c (h8300_gdbarch_init): Update.
13214 * frv-tdep.c (frv_gdbarch_init): Update.
13215 * arm-tdep.c (arm_gdbarch_init): Update.
13216 * alpha-tdep.c (alpha_gdbarch_init): Update.
13217
13218 2004-01-26 Andrew Cagney <cagney@redhat.com>
13219
13220 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
13221 SYMBOL_LOCATION_FUNCS
13222 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
13223 "struct symbol_ops".
13224 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
13225 type to "struct symbol_ops".
13226 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
13227 (struct symbol): Replace ".aux_value.loc.funcs" and
13228 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
13229 (SYMBOL_OBJFILE): Delete macro.
13230 (SYMBOL_LOCATION_FUNCS): Delete macro.
13231 (SYMBOL_LOCATION_BATON): Update.
13232 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
13233 intead of SYMBOL_LOCATION_FUNCS.
13234 * ax-gdb.c (gen_var_ref): Ditto.
13235 * printcmd.c (address_info): Ditto.
13236 * findvar.c (read_var_value): Ditto.
13237 (symbol_read_needs_frame): Ditto.
13238
13239 2004-01-26 Andrew Cagney <cagney@redhat.com>
13240
13241 * dwarf2read.c (read_func_scope): Document frame-base hack.
13242
13243 2004-01-25 Mark Kettenis <kettenis@gnu.org>
13244
13245 * infcmd.c (print_return_value): Plug memory leak; delete
13246 ui_stream object. Rename argument `structure_return' to
13247 `struct_return'.
13248
13249 2004-01-25 Mark Kettenis <kettenis@gnu.org>
13250
13251 * infcmd.c (print_return_value): Wrap long lines.
13252 (finish_command_continuation, finish_command): Remove unused
13253 variable `funcaddr'. Fix some coding-standards problems.
13254
13255 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
13256 SECT_SIZE is large enough, not whether it's exactly the right size.
13257 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
13258 TDEP->fpregset to zero.
13259
13260 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
13261 floating-point registers for traditional NetBSD core files.
13262 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
13263 TDEP->sizeof_fpregset here.
13264
13265 2004-01-25 Mark Kettenis <kettenis@gnu.org>
13266
13267 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
13268 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
13269 function with code split out from
13270 sparc32nbsd_sigcontext_frame_cache.
13271 (sparc32nbsd_sigcontext_frame_cache): Use
13272 sparc32nbsd_sigcontext_saved_regs.
13273 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
13274 OpenBSD.
13275 * sparcobsd-tdep.c: New file.
13276 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
13277 (sparcobsd-tdep.o): New dependency.
13278 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
13279 * config/sparc/obsd.mt: New file.
13280
13281 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
13282 TDEP->fpregset to be initialized to enable core file register
13283 sets.
13284
13285 2004-01-24 Mark Kettenis <kettenis@gnu.org>
13286
13287 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
13288 Add opaque declarations.
13289 (sparc64nbsd_sigcontext_saved_regs): New prototype.
13290 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
13291 function with code split out from
13292 sparc64nbsd_sigcontext_frame_cache.
13293 (sparc64nbsd_sigcontext_frame_cache): Use
13294 sparc64nbsd_sigcontext_saved_regs.
13295 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
13296 OpenBSD.
13297 * sparc64obsd-tdep.c: New file.
13298 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
13299 (sparc64obsd-tdep.o): New dependency.
13300 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
13301 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
13302 * config/sparc/obsd64.mt: New file.
13303
13304 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
13305 read the instruction at PC.
13306
13307 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
13308 value of GDB_OSABI_DEFAULT.
13309 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
13310 instead of GDB_OSABI_NETBSD_AOUT.
13311
13312 2004-01-24 Nick Roberts <nick@nick.uklinux.net>
13313
13314 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
13315 copyright.
13316
13317 2004-01-23 Andrew Cagney <cagney@redhat.com>
13318
13319 * printcmd.c (display_command): Replace tui_set_display call with
13320 tui_set_layout_for_display_command.
13321 * tui/tui.h (enum tui_win_type): Define.
13322 (tui_set_layout): Delete declaration.
13323 (tui_set_layout_for_display_command): Rename set_tui_layout.
13324 * tui/tui-data.h (enum tui_layout_type): Define.
13325 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
13326 "tui.h".
13327 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
13328 (tui_default_win_height): Rename tuiDefaultWinHeight.
13329 (tui_default_win_viewport_height): Rename
13330 tuiDefaultWinViewportHeight.
13331 (tui_set_layout): RenametuiSetLayout.
13332 * tui/tui-layout.c: Update references.
13333 * tui/tui.c: Update references.
13334 * tui/tui-disasm.c: Update references.
13335
13336 2004-01-23 David Carlton <carlton@kealia.com>
13337
13338 Partial workaround for PR c++/1511:
13339 * cp-namespace.c: Include frame.h.
13340 (cp_lookup_transparent_type): New
13341 (cp_lookup_transparent_type_loop): New.
13342 * cp-support.h: Declare cp_lookup_transparent_type.
13343 * symtab.c (basic_lookup_transparent_type): Renamed from
13344 lookup_transparent_type.
13345 (lookup_transparent_type): Replace old body by a call to
13346 current_language->la_lookup_transparent_type.
13347 * symtab.h: Update copyright. Declare
13348 basic_lookup_transparent_type.
13349 * language.h: Update copyright.
13350 (struct language_defn): Add la_lookup_transparent_type.
13351 * language.c: Update copyright.
13352 (unknown_language_defn): Add basic_lookup_transparent_type.
13353 (auto_language_defn): Add basic_lookup_transparent_type.
13354 (local_language_defn): Add basic_lookup_transparent_type.
13355 * ada-lang.c: Update copyright.
13356 (ada_language_defn): Add basic_lookup_transparent_type.
13357 * c-lang.c: Update copyright.
13358 (c_language_defn): Add basic_lookup_transparent_type.
13359 (cplus_language_defn): Add basic_lookup_transparent_type.
13360 (asm_language_defn): Add basic_lookup_transparent_type.
13361 (minimal_language_defn): Add basic_lookup_transparent_type.
13362 * f-lang.c: Update copyright.
13363 (f_language_defn): Add basic_lookup_transparent_type.
13364 * jv-lang.c: Update copyright.
13365 (java_language_defn): Add basic_lookup_transparent_type.
13366 * m2-lang.c: Update copyright.
13367 (m2_language_defn): Add basic_lookup_transparent_type.
13368 * objc-lang.c: Update copyright.
13369 (objc_language_defn): Add basic_lookup_transparent_type.
13370 * p-lang.c: Update copyright.
13371 (p_language_defn): Add basic_lookup_transparent_type.
13372 * scm-lang.c: Update copyright.
13373 (scm_language_defn): Add basic_lookup_transparent_type.
13374 * Makefile.in (cp-namespace.o): Depend on frame.h.
13375
13376 2004-01-23 David Carlton <carlton@kealia.com>
13377
13378 Patch for PR c++/1520:
13379 * dwarf2read.c (read_func_scope): Set processing_current_prefix
13380 properly if we have a specification die.
13381 (determine_prefix_aux): Rename from determine_prefix.
13382 (determine_prefix): Like the old determine_prefix, but never
13383 returns NULL.
13384
13385 2004-01-23 Theodore A. Roth <troth@openavr.org>
13386
13387 * avr-tdep.c: Update copyright.
13388 (avr_iaddr_p): Delete unused function.
13389 (avr_saddr_p): Delete unused function.
13390
13391 2004-01-23 David Carlton <carlton@kealia.com>
13392
13393 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
13394 Fix for PR symtab/1534.
13395
13396 2004-01-23 Mark Kettenis <kettenis@gnu.org>
13397
13398 * NEWS (New native configurations): Mention OpenBSD/sparc and
13399 OpenBSD/sparc64.
13400 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
13401 * configure.host: Likewise.
13402 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
13403 handler for OpenBSD.
13404 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
13405
13406 2004-01-22 Mark Kettenis <kettenis@gnu.org>
13407
13408 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
13409 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
13410
13411 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
13412 * cli/cli-cmds.c (shell_escape): Likewise.
13413
13414 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
13415 OpenBSD .note.openbsd.ident sections.
13416
13417 2004-01-22 David Carlton <carlton@kealia.com>
13418
13419 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
13420 get_scope_pc_bounds.
13421 (read_file_scope): Ditto.
13422 (get_scope_pc_bounds): New function, produced by extracting code
13423 from the above two functions, consolidating it, and adding support
13424 for DW_TAG_namespace.
13425
13426 2004-01-22 Mark Kettenis <kettenis@gnu.org>
13427
13428 * osabi.c (MAX_NOTESZ): New define.
13429 (check_note): New function.
13430 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
13431 check_note.
13432
13433 2004-01-21 Roland McGrath <roland@redhat.com>
13434
13435 * MAINTAINERS (write after approval): Add myself.
13436
13437 2004-01-21 Eli Zaretskii <eliz@gnu.org>
13438
13439 * utils.c (init_page_info): Move declarations of `rows' and
13440 `cols' before the __GO32__-specific code. Move the closing brace
13441 outside the #ifdef __GO32__..#endif block.
13442 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
13443
13444 2004-01-21 Paul Brook <paul@codesourcery.com>
13445
13446 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
13447 BPSTAT_WHAT_CHECK_SHLIBS.
13448
13449 2004-01-21 Paul Brook <paul@codesourcery.com>
13450
13451 * MAINTAINERS: Add myself to write-after-approval.
13452
13453 2004-01-20 Andrew Cagney <cagney@redhat.com>
13454
13455 * ax-gdb.c (print_axs_value): Delete unused function.
13456 * jv-lang.c (java_lookup_type): Delete unused function.
13457 * cli/cli-dump.c (dump_filetype): Delete unused function.
13458 * remote-mips.c (remote_mips_insert_hw_breakpoint)
13459 (remote_mips_remove_hw_breakpoint): Delete unused functions.
13460 (mips_getstring): Delete unused function.
13461 (pmon_insert_breakpoint): Delete #if0ed function.
13462 (PMON_MAX_BP): Delete #if0ed MACRO.
13463 (mips_pmon_bp_info): Delete #if0ed variable.
13464 (pmon_remove_breakpoint): Delete #if0ed function.
13465 * monitor.c (monitor_write_even_block): Delete unused function.
13466 (monitor_write_memory_block): Delete #if0ed code.
13467 * dink32-rom.c (dink32_load): Delete unused function.
13468 (_initialize_dink32_rom): Delete #if0ed code.
13469 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
13470
13471 * tui/tui-command.c: Update references.
13472 * tui/tui-io.c: Update references.
13473 * tui/tui-command.h: Update copyright.
13474 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
13475
13476 * source.c (ambiguous_line_spec): Delete never-defined function.
13477 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
13478 * gdbtypes.c (add_name, add_mangled_type): Ditto.
13479 * cli/cli-cmds.c (validate_comname): Ditto.
13480
13481 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
13482 "tui-data.h".
13483 (tui_set_disassem_content): Rename tuiSetDisassemContent.
13484 (tui_show_disassem): Rename tuiShowDisassem.
13485 (tui_show_disassem_and_update_source): Rename
13486 tuiVerticalDisassemScroll.
13487 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
13488 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
13489 * tui/tui.h: Update copyright.
13490 (enum tui_status): Define.
13491 * tui/tui-data.h (enum tui_scroll_direction): Define.
13492 * tui/tui-disasm.c: Update copyright. Update references.
13493 * tui/tui-winsource.c: Update copyright. Update references.
13494 * tui/tui-win.c: Update references.
13495 * tui/tui-layout.c: Update references.
13496
13497 2004-01-20 Andrew Cagney <cagney@redhat.com>
13498
13499 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
13500 sym2 to start of block.
13501
13502 2004-01-19 Michael Chastain <mec.gnu@mindspring.com>
13503
13504 * MAINTAINERS: Delete mmalloc.
13505 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
13506 * NEWS: Mention removal of --with-malloc.
13507 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
13508 * config.in: Regenerate.
13509 * configure: Regenerate.
13510 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
13511 USE_MMALLOC, MMCHECK_FORCE.
13512 * gdbinit.in: Remove mmalloc.
13513 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
13514 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
13515 * config/i386/go32.mh: Likewise.
13516 * config/i386/interix.mh: Likewise.
13517 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
13518
13519 2004-01-19 Jeff Johnston <jjohnstn@redhat.com>
13520
13521 * linespec.c (decode_variable, symtab_from_filename): Call
13522 error_silent with error message instead of throwing an exception
13523 directly.
13524 * defs.h (error_silent, error_output_message): Add prototypes.
13525 (catch_exceptions_with_msg): Ditto.
13526 * utils.c (error_silent, error_output_message): New functions.
13527 * top.c (catch_exceptions_with_msg): New function.
13528
13529 2004-01-20 Nick Roberts <nick@nick.uklinux.net>
13530
13531 * mi/mi-cmds.h (enum print_values): Add definition.
13532
13533 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
13534 type and value for simple data types and just the name and type
13535 for complex ones, if required.
13536
13537 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
13538 children, if required.
13539
13540 2004-01-19 Kevin Buettner <kevinb@redhat.com>
13541
13542 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
13543 unused declarations.
13544
13545 2004-01-19 Andrew Cagney <cagney@redhat.com>
13546
13547 * top.h (mapped_symbol_files): Delete declaration.
13548 * main.c (captured_main): Delete option "m" and "mapped".
13549 * objfiles.c (mapped_symbol_files): Delete variable.
13550 * symfile.c (symbol_file_command): Delete mmap code.
13551 (symbol_file_add_with_addrs_or_offsets): Ditto.
13552 (add_symbol_file_command, reread_separate_symbols): Ditto.
13553 * objfiles.h (OBJF_MAPPED): Delete.
13554 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
13555 (free_objfile) [USE_MMALLOC]: Ditto.
13556 (open_existing_mapped_file): Delete function.
13557 (open_mapped_file): Delete function.
13558 (map_to_file): Delete function.
13559
13560 2004-01-19 Kevin Buettner <kevinb@redhat.com>
13561
13562 * infrun.c (step_into_function): Account for possible breakpoint
13563 adjustment when computing ``stop_func_start''.
13564
13565 2004-01-19 Kevin Buettner <kevinb@redhat.com>
13566
13567 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
13568 the region size against the size of a pointer, not the size of
13569 a register as given by DEPRECATED_REGISTER_SIZE.
13570
13571 2004-01-19 Andrew Cagney <cagney@redhat.com>
13572
13573 * tui/tui-regs.h: Include "tui-data.h".
13574 (tuiFirstRegElementNoInLine): Delete declaration.
13575 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
13576 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
13577 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
13578 (tui_calculate_regs_column_count): Rename
13579 tuiCalculateRegsColumnCount.
13580 (tui_check_register_values): Rename tuiCheckRegisterValues.
13581 (tui_show_registers): Rename tuiShowRegisters.
13582 (tui_display_registers_from_line): Rename
13583 tuiDisplayRegistersFromLine.
13584 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
13585 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
13586 (tui_first_reg_element_no_inline): Rename
13587 tuiFirstRegElementNoInLine.
13588 * tui/tui-data.h: Update copyright.
13589 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
13590 * tui/tui-windata.c: Update copyright, update references.
13591 * tui/tui-regs.c: Update copyright, update references.
13592 * tui/tui-win.c: Update copyright, update references.
13593 * tui/tui-layout.c: Update copyright, update references.
13594
13595 2004-01-18 Andrew Cagney <cagney@redhat.com>
13596
13597 * tui/tui-io.c: Update copyright.
13598 (key_is_end_sequence, key_is_backspace): New functions.
13599 (key_is_command_char, key_is_start_sequence): New function.
13600 (tui_getc): Update references.
13601 * tui/tui-io.h: Update copyright.
13602 (m_tuiStartNewLine): Delete macro.
13603 (m_isBackspace, m_isDeleteChar): Delete macros.
13604 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
13605 (m_isNextPage, m_isPrevPage): Delete macros.
13606 (m_isLeftArrow, m_isRightArrow): Delete macros.
13607 (m_isXdbStyleCommandChar): Delete macro.
13608 (key_is_start_sequence): Declare, replace m_isStartSequence.
13609 (key_is_end_sequence): Declare, replace m_isEndSequence.
13610 (key_is_backspace): Declare ,replace m_isBackspace.
13611 (key_is_command_char): Declare, replace m_isCommandChar.
13612 * tui/tui-command.c: Update copyright.
13613 (tuiDispatchCtrlChar): Update references.
13614
13615 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
13616 tuiSourceWin.h.
13617
13618 * tui/tui-command.c: Rename tui/tuiCommand.c.
13619 * tui/tui-command.h: Rename tui/tuiCommand.h.
13620 * tui/tui-data.c: Rename tui/tuiData.c.
13621 * tui/tui-data.h: Rename tui/tuiData.h.
13622 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
13623 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
13624 * tui/tui-io.c: Rename tui/tuiIO.c.
13625 * tui/tui-io.h: Rename tui/tuiIO.h.
13626 * tui/tui-layout.c: Rename tui/tuiLayout.c.
13627 * tui/tui-layout.h: Rename tui/tuiLayout.h.
13628 * tui/tui-regs.c: Rename tui/tuiRegs.c.
13629 * tui/tui-regs.h: Rename tui/tuiRegs.h.
13630 * tui/tui-source.c: Rename tui/tuiSource.c.
13631 * tui/tui-source.h: Rename tui/tuiSource.h.
13632 * tui/tui-stack.c: Rename tui/tuiStack.c.
13633 * tui/tui-stack.h: Rename tui/tuiStack.h.
13634 * tui/tui-win.c: Rename tui/tuiWin.c.
13635 * tui/tui-win.h: Rename tui/tuiWin.h.
13636 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
13637 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
13638 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
13639 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
13640 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
13641 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
13642 * tui/tui-file.c: Update includes.
13643 * tui/tui-hooks.c: Update includes.
13644 * tui/tui-interp.c: Update includes.
13645 * tui/tui.c: Update includes.
13646 * Makefile.in: Update all tui/ dependencies.
13647 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
13648
13649 * Makefile.in: Update copyright. Update dependencies.
13650
13651 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
13652 problem.
13653
13654 2004-01-18 Andrew Cagney <cagney@redhat.com>
13655
13656 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
13657 instead of register_gdbarch_init.
13658
13659 * remote-sds.c (tohex): Delete unused function. Update copyright.
13660 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
13661 * v850-tdep.c (v850_register_virtual_size): Ditto.
13662 * target.c (normal_target_post_startup_inferior): Ditto.
13663 * source.c (ambiguous_line_spec): Ditto.
13664 * remote.c (adapt_remote_get_threadinfo): Ditto.
13665 * mi/mi-out.c (out_field_fmt): Ditto.
13666 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
13667 (output_control_change_notification): Ditto.
13668 * m68k-tdep.c (m68k_register_byte): Ditto.
13669 (m68k_remote_breakpoint_from_pc): Ditto.
13670 * ui-out.c (init_ui_out_state): Delete unused declaration.
13671 * stabsread.c (search_value): Ditto.
13672 * mi/mi-cmd-env.c (env_cli_command): Ditto.
13673 * maint.c (print_section_table): Ditto.
13674 * infrun.c (set_follow_fork_mode_command): Ditto.
13675
13676 2004-01-18 Mark Kettenis <kettenis@gnu.org>
13677
13678 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
13679 DW_CFA_def_cfa_exporession. Add support for
13680 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
13681 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
13682
13683 2004-01-18 Andrew Cagney <cagney@redhat.com>
13684
13685 * ocd.c: Update copyright.
13686 (bdm_read_register_command): Delete unused function.
13687 (_initialize_remote_ocd): Delete commented out reference.
13688 (get_quoted_char, reset_packet): Delete #if0ed function.
13689 (output_packet, put_quoted_char): Delete #if0ed function.
13690 (stu_put_packet, stu_get_packet): Delete #if0ed function.
13691 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
13692 (BDM_BREAKPOINT): Delete #if0ed macro.
13693 (remote_timeout): Delete #if0ed variable.
13694
13695 2004-01-18 Mark Kettenis <kettenis@gnu.org>
13696
13697 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
13698 (core-sol2.o): Remove dependency.
13699 * core-sol2.c: Remove file.
13700
13701 2004-01-17 Andrew Cagney <cagney@redhat.com>
13702
13703 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
13704 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
13705 enums.
13706
13707 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13708
13709 * remote.c: Update copyright years.
13710
13711 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13712
13713 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
13714
13715 2004-01-17 Andrew Cagney <cagney@redhat.com>
13716
13717 * mdebugread.c: Update copyright.
13718 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
13719 (parse_type, parse_procedure): Ditto.
13720 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
13721
13722 * cris-tdep.c (cris_store_struct_return): Put back accidently
13723 deleted function.
13724
13725 * gdbarch.sh: Update copyright year.
13726 * gdbarch.h, gdbarch.c: Re-generate.
13727
13728 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13729
13730 Suggested by George Anzinger.
13731 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
13732 correct stack offset. Include unknown opcode numbers in the error
13733 message.
13734
13735 2004-01-17 Andrew Cagney <cagney@redhat.com>
13736
13737 * x86-64-tdep.c (x86_64_init_abi): No need to clear
13738 extract_struct_value_address, i386 does not set it.
13739 * sparc64-tdep.c (sparc64_init_abi): Do not set
13740 extract_struct_value_address, never called.
13741 (sparc64_extract_struct_value_address): Delete function.
13742 * m68hc11-tdep.c: Update copyright.
13743 (m68hc11_gdbarch_init): Delete redundant assignment of
13744 extract_struct_value_address.
13745 * i386-tdep.c: Update copyright.
13746 (i386_gdbarch_init): Do not set extract_struct_value_address,
13747 never called.
13748 (i386_extract_struct_value_address): Delete function.
13749 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
13750 extract_struct_value_address, never called.
13751 (sparc32_extract_struct_value_address): #if 0 function. Add
13752 comments explaining its future.
13753
13754 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13755
13756 * arm-tdep.c (arm_write_pc): New function.
13757 (arm_gdbarch_init): Call set_gdbarch_write_pc.
13758
13759 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13760
13761 * breakpoint.c (must_shift_inst_regs): Delete.
13762 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
13763 and SHIFT_INST_REGS.
13764 * infcmd.c (step_1, step_1_continuation): Delete references to
13765 SHIFT_INST_REGS.
13766 * infrun.c (keep_going): Likewise.
13767 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
13768 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
13769
13770 2004-01-17 Andrew Cagney <cagney@redhat.com>
13771
13772 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13773 * gdbarch.h, gdbarch.c: Re-generate.
13774 * infcmd.c (print_return_value): Delete reference to
13775 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
13776
13777 * cris-tdep.c (cris_gdbarch_init): Do not set
13778 deprecated_extract_struct_value_address.
13779
13780 * xstormy16-tdep.c: Update copyright.
13781 (xstormy16_extract_struct_value_address): Update to current
13782 extract struct value address interface.
13783 (xstormy16_gdbarch_init): Set extract_struct_value_address.
13784 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
13785 current extract struct value address interface.
13786 (sh64_gdbarch_init): Set extract_struct_value_address.
13787
13788 * cris-tdep.c: Update copyright.
13789 (cris_extract_struct_value_address): Delete function.
13790 (struct_return_address): Delete variable.
13791 (cris_store_struct_return): Do not set struct_return_address.
13792
13793 * mcore-tdep.c: Update copyright.
13794 (mcore_extract_struct_value_address): Delete function. Update
13795 comments.
13796 (mcore_gdbarch_init): Update.
13797 * mn10300-tdep.c: Update copyright.
13798 (mn10300_extract_struct_value_address): Delete function.
13799 (mn10300_gdbarch_init): Update.
13800 * v850-tdep.c: Update copyright.
13801 (v850_extract_struct_value_address): Delete.
13802 (v850_gdbarch_init): Update.
13803 * ns32k-tdep.c: Update copyright.
13804 (ns32k_extract_struct_value_address): Delete.
13805 (ns32k_gdbarch_init): Update.
13806 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
13807 (hppa_gdbarch_init): Update.
13808 * vax-tdep.c: Update copyright.
13809 (vax_extract_struct_value_address): Delete.
13810 (vax_gdbarch_init): Update.
13811
13812 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
13813 * gdbarch.h, gdbarch.c: Re-generate.
13814 * procfs.c (procfs_fetch_registers): Delete reference to
13815 DEPRECATED_NPC_REGNUM.
13816 (procfs_store_registers): Ditto.
13817 * regcache.c (generic_target_write_pc): Simplify.
13818 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
13819
13820 * core-sol2.c (fetch_core_registers): Replace
13821 DEPRECATED_NPC_REGNUM with equivalent tdep value.
13822
13823 * hppa-tdep.c: Update copyright year.
13824 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
13825 NPC_REGNUM.
13826 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
13827
13828 * mips-tdep.c (mips_write_pc): New function.
13829 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
13830 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
13831 (mips_find_saved_regs, mips_software_single_step: Ditto.
13832 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
13833 mips_init_extra_frame_info, mips_pop_frame): Ditto.
13834
13835 2004-01-17 Andrew Cagney <cagney@redhat.com>
13836
13837 * mips-tdep.c: Re-indent. Group functions by ABI.
13838
13839 2004-01-17 Andrew Cagney <cagney@redhat.com>
13840
13841 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
13842 * gdbarch.c: Re-generate.
13843 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
13844 DECR_PC_AFTER_BREAK to zero.
13845 * vax-tdep.c (vax_gdbarch_init): Ditto.
13846 * v850-tdep.c (v850_gdbarch_init): Ditto.
13847 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
13848 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
13849 * sh-tdep.c (sh_gdbarch_init): Ditto.
13850 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
13851 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
13852 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
13853 * mips-tdep.c (mips_gdbarch_init): Ditto.
13854 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
13855 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13856 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
13857 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
13858 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
13859 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
13860 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
13861 * frv-tdep.c (frv_gdbarch_init): Ditto.
13862 * cris-tdep.c (cris_gdbarch_init): Ditto.
13863 * avr-tdep.c (avr_gdbarch_init): Ditto.
13864 * arm-tdep.c (arm_gdbarch_init): Ditto.
13865 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
13866
13867 2004-01-17 J. Brobecker <brobecker@gnat.com>
13868
13869 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
13870 Delete, no longer used.
13871 (read_subrange_type): New function, mostly extracted from
13872 read_array_type().
13873 (read_array_type): Replace extracted code by call to
13874 read_subrange_type().
13875 (dwarf2_get_attr_constant_value): New function.
13876 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
13877 (add_partial_symbol): Likewise.
13878 (process_die): Likewise.
13879 (new_symbol): Likewise.
13880 (read_type_die): Likewise.
13881
13882 2004-01-16 Andrew Cagney <cagney@redhat.com>
13883
13884 * symfile.c: Update copyright year.
13885 (compare_symbols): Delete unused function.
13886 * stabsread.c: Update copyright year.
13887 (lrs_general_complaint): Delete unused function.
13888 (ref_search_value): Ditto.
13889 (get_substring): Delete declaration.
13890 * sh64-tdep.c: Update copyright year.
13891 (sh64_get_gdb_regnum): Delete unused function.
13892 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
13893 Delete unused function.
13894
13895 2004-01-17 Mark Kettenis <kettenis@gnu.org>
13896
13897 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
13898 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
13899
13900 2004-01-16 Andrew Cagney <cagney@redhat.com>
13901
13902 Changes from Peter Schauer.
13903 * rs6000-tdep.c: Update copyright year.
13904 (rs6000_push_dummy_call): Update the stack pointer before
13905 accessing the corresponding stack region.
13906 * rs6000-nat.c: Update copyright year.
13907 (set_host_arch): Set "info.abfd" to "exec_bfd".
13908
13909 2004-01-15 Mark Kettenis <kettenis@gnu.org>
13910
13911 * blockframe.c: Update copyright year.
13912 (inside_entry_func): Don't treat a zero PC specially.
13913
13914 2004-01-14 Elena Zannoni <ezannoni@redhat.com>
13915
13916 * gcore.c (gcore_copy_callback): Use paddr_d to print size
13917 variable.
13918 (gcore_create_callback): Ditto. Skip any memory segment that has
13919 no permissions set.
13920
13921 2004-01-14 David Carlton <carlton@kealia.com>
13922
13923 Change symbols for C++ nested types to contain the fully qualified
13924 name, if possible. (At least in the DWARF-2 case.) Partial fix
13925 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
13926 c++/895.
13927 * c-exp.y (qualified_type): Handle types nested within classes.
13928 * cp-namespace.c: Update comments.
13929 (cp_set_block_scope): Delete #if 0.
13930 (cp_lookup_nested_type): Handle types nested within classes.
13931 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
13932 when appropriate.
13933 (add_partial_symbol): Add the name of the enclosing namespace to
13934 types.
13935 (pdi_needs_namespace): New.
13936 (add_partial_namespace): Tweak comment.
13937 (add_partial_structure): New.
13938 (psymtab_to_symtab_1): Initialize processing_current_prefix
13939 here...
13940 (process_die): instead of here.
13941 (read_structure_scope): Try to figure out the name of the class or
13942 namespace that the structure might be defined within.
13943 (read_enumeration): Generate fully-qualified names, if possible.
13944 (read_namespace): Don't set name to NULL.
13945 (die_specification): New.
13946 (new_symbol): Generate fully-qualified names for types.
13947 (read_type_die): Determine appropriate prefix.
13948 (determine_prefix): New.
13949 (typename_concat): New.
13950 (class_name): New.
13951 * valops.c (value_aggregate_elt): Pass NOSIDE to
13952 value_struct_elt_for_reference.
13953 (value_struct_elt_for_reference): Make static, add NOSIDE
13954 parameter, call value_maybe_namespace_elt as a last resort.
13955 (value_namespace_elt): Break out code into
13956 value_maybe_namespace_elt.
13957 (value_maybe_namespace_elt): New.
13958
13959 2004-01-12 Andrew Cagney <cagney@redhat.com>
13960
13961 * mips-tdep.c (mips_convert_register_p): Handle both raw and
13962 cooked floating-point registers.
13963 (mips_gdbarch_init): Set convert_register_p, register_to_value,
13964 and value_to_register.
13965
13966 2004-01-13 Andrew Cagney <cagney@redhat.com>
13967
13968 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
13969 * gdbarch.c: Re-generate.
13970 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
13971 FUNCTION_START_OFFSET.
13972 * v850-tdep.c (v850_gdbarch_init): Ditto.
13973 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
13974 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
13975 * sh-tdep.c (sh_gdbarch_init): Ditto.
13976 * s390-tdep.c (s390_gdbarch_init): Ditto.
13977 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
13978 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
13979 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
13980 * mips-tdep.c (mips_gdbarch_init): Ditto.
13981 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
13982 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
13983 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13984 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
13985 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
13986 * i386-tdep.c (i386_gdbarch_init): Ditto.
13987 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
13988 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
13989 * frv-tdep.c (frv_gdbarch_init): Ditto.
13990 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
13991 * cris-tdep.c (cris_gdbarch_init): Ditto.
13992 * avr-tdep.c (avr_gdbarch_init): Ditto.
13993 * arm-tdep.c (arm_gdbarch_init): Ditto.
13994 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
13995
13996 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
13997
13998 * infrun.c (follow_fork_mode_ask): Remove.
13999 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
14000 (follow_fork): Simplify and remove internal error for
14001 follow_fork_mode_ask.
14002 (_initialize_infrun): Update "set follow-fork-mode" help text.
14003
14004 2004-01-13 Andrew Cagney <cagney@redhat.com>
14005
14006 * configure.in: Update copyright year.
14007 (build_warnings): Add -Wunused-label.
14008 * configure: Re-generate.
14009
14010 2004-01-12 Andrew Cagney <cagney@redhat.com>
14011
14012 * exec.h (exec_ops): Make "extern".
14013
14014 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
14015 the function is void.
14016 (mips_pseudo_register_write): Ditto.
14017
14018 2004-01-12 Andrew Cagney <cagney@redhat.com>
14019
14020 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
14021 call. Never defined.
14022 * sparc-tdep.h (struct frame_info): Add opaque declaration.
14023 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
14024 (struct sparc_gregset, struct regcache): Ditto.
14025 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
14026
14027 2004-01-12 Andrew Cagney <cagney@redhat.com>
14028
14029 * mi/ChangeLog: Delete file. Renamed to ...
14030 * mi/ChangeLog-1999-2003: New file.
14031 * tui/ChangeLog: Delete file. Renamed to ...
14032 * tui/ChangeLog-1998-2003: New file.
14033
14034 2004-01-11 Mark Kettenis <kettenis@gnu.org>
14035
14036 * sparc64nbsd-tdep.c: Include "regset.h".
14037 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
14038 Remove variables.
14039 (fetch_core_registers): Remove function.
14040 (sparc64nbsd_core_fns): Remove variable.
14041 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
14042 functions.
14043 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
14044 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
14045 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
14046
14047 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
14048 sparc_extract_struct_value_address.
14049 (sparc32_gdbarch_init): Set extract_struct_value_address.
14050 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
14051 function.
14052 (sparc64_init_abi): Set extract_struct_value_address. Don't set
14053 return_value_on_stack.
14054
14055 * NEWS: Mention that %cs and %ss have been added to the AMD64
14056 configurations
14057
14058 * frame.c: Update copyright year.
14059 (get_prev_frame): Improve comment.
14060
14061 * sparc64fbsd-tdep.c: Include "regset.h".
14062 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
14063 Remove variables.
14064 (fetch_core_registers): Remove function.
14065 (sparc64fbsd_core_fns): Remove variable.
14066 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
14067 functions.
14068 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
14069 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
14070 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
14071
14072 * sparcnbsd-tdep.c: Include "regset.h".
14073 (fetch_core_registers): Remove function.
14074 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
14075 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
14076 functions.
14077 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
14078 TDEP->fpregset.
14079 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
14080
14081 * sparc-tdep.h (struct regset): Provide opaque declaration.
14082 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
14083 fpregset and sizeof_fpregset members.
14084 * sparc-tdep.c (struct regset): Provide opaque declaration.
14085 (sparc_regset_from_core_section): New function.
14086 (sparc32_gdbarch_init): Initialize TDEP->gregset,
14087 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
14088 Set regset_from_core_section when appropriate.
14089
14090 2004-01-10 Mark Kettenis <kettenis@gnu.org>
14091
14092 * x86-64-tdep.c (amd64_non_pod_p): New function.
14093 (amd64_classify_aggregate): Return class memory for non-POD
14094 C++ structure types.
14095
14096 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
14097 argument. Use it to reserve a register if necessary.
14098 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
14099 amd64_push_arguments.
14100
14101 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
14102
14103 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
14104 register numbers in comments.
14105 * x86-64-tdep.h: Update copyright year.
14106 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
14107 Adjust for addition of %cs and %ss.
14108 * amd64fbsd-nat.c: Update copyright year.
14109 (reg_offset): Add register offsets for %cs and %ss.
14110 * amd64fbsd-tdep.c: Update copyright year.
14111 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
14112 (amd64fbsd_sc_reg_offset): Likewise.
14113 * x86-64-linux-nat.c: Update copyright year.
14114 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
14115 and %ss.
14116 * amd64nbsd-nat.c: Update copyright year.
14117 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
14118 * amd64nbsd-tdep.c: Update copyright year.
14119 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
14120 * x86-64-linux-tdep.c: Update copyright year.
14121 (user_to_gdb_regmap): Add mapping for %cs and %ss.
14122 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
14123 * regformats/reg-x86-64.dat: Add %cs and %ss.
14124
14125 * blockframe.c (inside_entry_func): Reformat. Introduce new local
14126 variables to prevent long lines. Update comments to reflect
14127 reality.
14128
14129 2004-01-09 David Carlton <carlton@kealia.com>
14130
14131 Checked in by Elena Zannoni <ezannoni@redhat.com>.
14132 * dwarf2read.c (read_namespace): Pull out name-generating code
14133 into namespace_name. Rename previous_namespace to previous_prefix
14134 and processing_current_namespace to processing_current_prefix..
14135 (namespace_name): New function.
14136 (add_partial_symbol): Substitute uses of pdi->name with
14137 actual_name.
14138 * cp-support.h: Rename processing_current_namespace to
14139 processing_current_prefix.
14140 Update copyright year.
14141 * cp-namespace.c: Rename processing_current_namespace to
14142 processing_current_prefix.
14143 Update copyright year.
14144
14145 2004-01-09 Andrew Cagney <cagney@redhat.com>
14146
14147 * jv-valprint.c, ser-unix.c: Add missing copyright years.
14148
14149 2004-01-09 Mark Kettenis <kettenis@gnu.org>
14150
14151 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
14152 complaining.
14153 (process_one_symbol): Deal with N_PATCH stabs.
14154
14155 2004-01-09 Elena Zannoni <ezannoni@redhat.com>
14156
14157 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
14158 ifdeffed code.
14159 Update copyright year.
14160
14161 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
14162
14163 * config/pa/tm-hppa.h: Update extern declarations for
14164 hppa32_hpux_frame_saved_pc_in_sigtramp,
14165 hppa32_hpux_frame_base_before_sigtramp, and
14166 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
14167
14168 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
14169
14170 * config/pa/tm-hppah.h: Update copyright years.
14171
14172 2004-01-08 Andrew Cagney <cagney@redhat.com>
14173
14174 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
14175 (mips_o32_reg_struct_has_addr): Delete function.
14176 (mips_gdbarch_init): Update.
14177 (mips_extract_struct_value_address): Delete function.
14178
14179 2004-01-08 David Mosberger <davidm@hpl.hp.com>
14180
14181 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
14182 reality.
14183
14184 2004-01-07 Andrew Cagney <cagney@redhat.com>
14185
14186 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
14187 architecture's elf flags (when available).
14188
14189 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
14190 FPU to the start, check the MIPS FPU when looking for an old
14191 architecture.
14192 (set_mipsfpu_single_command): Update the architecture.
14193 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
14194
14195 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
14196 (mips_mask_address_p): Add "tdep" parameter.
14197 (show_mask_address, mips_addr_bits_remove): Update.
14198 (mips_dump_tdep): Update.
14199 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
14200 (MIPS_STACK_ARGSIZE): Delete macro.
14201 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
14202 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
14203 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
14204 (mips_dump_tdep): Update.
14205 (MIPS_SAVED_REGSIZE): Delete macro.
14206 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
14207 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
14208 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
14209 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
14210 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
14211 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
14212 (mips_pop_frame, return_value_location): Update.
14213 (mips_n32n64_return_value, mips_dump_tdep): Update.
14214
14215 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
14216 MIPS ABI.
14217
14218 * mips-tdep.c: Update copyright.
14219 (mips_gdbarch_init): Merge two code blocks handling the register
14220 name and number layout.
14221
14222 2004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
14223
14224 * tracepoint.c (validate_actionline): Fix segv at EOF
14225
14226 2004-01-07 Michael Chastain <mec.gnu@mindspring.com>
14227
14228 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
14229 properly for static fields.
14230
14231 2004-01-06 Jeff Johnston <jjohnstn@redhat.com>
14232 Jason Molenda <jmolenda@apple.com>
14233
14234 * disasm.c: Update copyright to include 2004.
14235 (do_mixed_source_and_assembly): For uiout asm list
14236 and tuple cleanups, initialize to null_cleanup instead of
14237 NULL and do so prior to loop. Only reset when we close off
14238 the tuple/list. Move check for whether to close off the
14239 asm tuple/list to after dump_insns call where it will be run
14240 on each loop iteration.
14241
14242 2004-01-05 Andrew Cagney <cagney@redhat.com>
14243
14244 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
14245 should be a switch case and not a label.
14246 * mips-tdep.c (mips32_next_pc): Delete unused labels
14247 "greater_equal_branch" and "less_zero_branch".
14248 * jv-valprint.c (java_print_value_fields): Delete unused label
14249 "flush_it".
14250
14251 * target.c (unpush_target): Only close a target that is in the
14252 target stack.
14253
14254 2004-01-05 Mark Kettenis <kettenis@gnu.org>
14255
14256 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
14257 address from [sp + 64] instead of %o2.
14258
14259 * frame.c (get_prev_frame): Don't try to unwind the PC. This
14260 fixes PR backtrace/1476.
14261
14262 2004-01-05 Andrew Cagney <cagney@redhat.com>
14263
14264 * libunwind-frame.h (struct frame_id): Add opaque declaration,
14265 move to start of file.
14266 * i386-tdep.h (struct regcache): Add opaque declaration.
14267 * config/ia64/nm-linux.h (struct target_ops): Add opaque
14268 declaration.
14269 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
14270 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
14271 * win32-nat.c (fake_create_process): Use ISO C style definition.
14272 * stabsread.c (define_symbol): Delete #ifndef
14273 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
14274 stabs_argument_has_addr call, macro never defined.
14275
14276 2004-01-04 Michael Chastain <mec.gnu@mindspring.com>
14277
14278 * op50-rom.c: Delete.
14279 * w89k-rom.c: Delete.
14280 * Makefile.in: Remove references.
14281
14282 2004-01-04 Mark Kettenis <kettenis@gnu.org>
14283
14284 * x86-64-tdep.c: Update copyright year.
14285 (struct amd64_register_info): Rename from x86_64_register_info.
14286 (amd64_register_info): Rename from x86_64_register_info.
14287 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
14288 (amd64_register_name): Rename from x86_64_register_name.
14289 (amd64_register_type): Rename from x86_64_register_type.
14290 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
14291 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
14292 (amd64_dwarf_reg_to_regnum): Rename from
14293 x86_64_dwarf_reg_to_regnum.
14294 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
14295 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
14296 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
14297 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
14298 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
14299 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
14300 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
14301 (amd64_frame_cache): Rename from x86_64_frame_cache.
14302 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
14303 (amd64_frame_prev_register): Rename from
14304 x86_64_frame_prev_register.
14305 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
14306 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
14307 (amd64_sigtramp_frame_cache): Rename from
14308 x86_64_sigtramp_frame_cache.
14309 (amd64_sigtramp_frame_prev_register): Rename from
14310 x86_64_sigtramp_frame_prev_register.
14311 (amd64_sigtramp_frame_unwind): Rename from
14312 x86_64_sigtramp_frame_unwind.
14313 (amd64_sigtramp_frame_sniffer): Rename from
14314 x86_64_sigtramp_frame_sniffer.
14315 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
14316 (amd64_frame_base): Rename from x86_64_frame_base.
14317 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
14318 (amd64_frame_align): Rename from x86_64_frame_align.
14319 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
14320 (amd64_regset_from_core_section): Rename from
14321 x86_64_regset_from_core_section.
14322 (x86_64_init_abi): Update comments.
14323
14324 2004-01-04 Nick Roberts <nick@nick.uklinux.net>
14325
14326 * MAINTAINERS (write after approval): Add myself.
14327
14328 2004-01-04 Mark Kettenis <kettenis@gnu.org>
14329
14330 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
14331 `float' arguments.
14332
14333 2004-01-04 Mark Kettenis <kettenis@gnu.org>
14334
14335 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
14336 such that it mentions a specific version of GCC that exhibits this
14337 bug.
14338
14339 2004-01-03 Mark Kettenis <kettenis@gnu.org>
14340
14341 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
14342 structure that has a single `float' member, store it in %f1 in
14343 addition to %f0.
14344
14345 * sparc-sol2-nat.c: Add missing '\'.
14346
14347 * sparc-tdep.c (sparc32_return_value): New function.
14348 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
14349 Remove functions.
14350 (sparc32_gdbarch_init): Set return_value, don't set
14351 extract_return_value, store_return_value, use_struct_convention
14352 and return_value_on_stack.
14353
14354 * sparc-sol2-nat.c: Add missing ')'.
14355
14356 2004-01-03 J. Brobecker <brobecker@gnat.com>
14357
14358 * infrun.c (handle_step_into_function): New function.
14359 (handle_inferior_event): Extract out some code into the new
14360 function above.
14361
14362 2004-01-03 J. Brobecker <brobecker@gnat.com>
14363
14364 * infrun.c (handle_inferior_event): Move the declaration of
14365 real_stop_pc inside the if blocks where it is used.
14366
14367 2004-01-03 Mark Kettenis <kettenis@gnu.org>
14368
14369 * sparc64-tdep.c (sparc64_16_byte_align_p)
14370 (sparc64_store_floating_fields, sparc64_store_floating_fields):
14371 Use check_typedef to get subtypes of structures and unions.
14372 (sparc64_store_return_value): Fix calculation of the appropriate
14373 offset into VALBUF when storing a structure or union.
14374 (sparc64_return_value): New function.
14375 (sparc64_use_struct_convention): Remove function.
14376 (sparc64_init_abi): Set return_value, don't set
14377 extract_return_value, store_return_value and
14378 use_struct_convention.
14379
14380 2004-01-03 Eli Zaretskii <eliz@elta.co.il>
14381
14382 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
14383 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
14384 gdb/config/alpha/xm-alphaosf.h,
14385 gdb/config/powerpc/tm-ppcle-eabi.h,
14386 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
14387 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
14388 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
14389 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
14390 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
14391 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
14392 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
14393 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
14394 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
14395 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
14396 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
14397 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
14398 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
14399 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
14400 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
14401 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
14402 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
14403 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
14404 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
14405 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
14406 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
14407 Remove lines for .cvsignore files.
14408
14409 2004-01-03 J. Brobecker <brobecker@gnat.com>
14410
14411 * infrun.c: Back out the previous change.
14412
14413 2004-01-03 Mark Kettenis <kettenis@gnu.org>
14414
14415 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
14416 sparc-*-sunos4* to the list of REMOVED configurations.
14417
14418 * configure.tgt: Add back sparc-*-vxworks*.
14419 * remote-vxsparc.c: Remove all includes except for "defs.h",
14420 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
14421 Include "sparc-tdep.h".
14422 (SPARC_R_G1): New define.
14423 (vxsparc_gregset): New variable.
14424 (ext_format_sparc): Remove extern declaration.
14425 (vx_read_register): Rewrite to use sparc32_supply_gregset and
14426 sparc32_supply_fpregset.
14427 (vx_write_register): Rewrite to use sparc32_collect_gregset,
14428 sparc_collect_rwindow and sparc32_collect_fpregset.
14429 * config/sparc/tm-vxworks.h: New file, based on recently removed
14430 tm-vxsparc.h.
14431 * config/sparc/vxworks.mt: New file, based on recently removed
14432 vxworks.mt.
14433
14434 2004-01-03 J. Brobecker <brobecker@gnat.com>
14435
14436 * infrun.c (handle_step_into_function): New function.
14437 (handle_inferior_event): Extract out some code into the new
14438 function above.
14439
14440 2004-01-02 Mark Kettenis <kettenis@gnu.org>
14441
14442 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
14443 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
14444 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
14445 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
14446 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
14447 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
14448 (sparc_nat_h): New variable.
14449 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
14450 (tm-sun4os4.h): Remove dependency.
14451 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
14452 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
14453 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
14454 sparc-tdep.o): Update dependencies.
14455 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
14456 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
14457 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
14458 dependencies.
14459 * configure.host: Remove existing sparc-*-lynxos*,
14460 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
14461 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
14462 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
14463 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
14464 triplets.
14465 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
14466 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
14467 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
14468 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
14469 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
14470 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
14471 sparc64-*-solaris2* and sparc64-*-* triplets.
14472 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
14473 "symtab.h" and "objfiles.h".
14474 (BIAS): Remove define.
14475 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
14476 (X_DISP19): Remove macros.
14477 (sparc_fetch_instruction): Remove function.
14478 (struct gdbarch_tdep): Remove definition.
14479 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
14480 (sparc_breakpoint_from_pc): Remove function.
14481 (struct sparc64_frame_cache): Remove definition.
14482 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
14483 sparc64_unwind_pc): Remove functions.
14484 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
14485 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
14486 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
14487 (sparc64_frame_cache): Change return type to `struct
14488 sparc_frame_cache *'. Simply call sparc_frame_cache.
14489 (sparc64_frame_this_id, sparc64_frame_prev_register,
14490 sparc64_frame_base_address): Use `struct sparc_frame_cache'
14491 instead of `struct sparc64_frame_cache.
14492 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
14493 sparc_analyze_control_transfer, sparc_software_single_step,
14494 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
14495 _initialize_sparc64_tdep): Remove functions.
14496 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
14497 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
14498 macros.
14499 (sparc64_supply_gregset, sparc64_collect_gregset,
14500 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
14501 (sparc64_init_abi): New function.
14502 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
14503 inclusion guard. Include "sparc-tdep.h".
14504 (BIAS): Define.
14505 (r_tstate_offset, r_fprs_offset): New defines.
14506 (enum sparc_regnum): Remove defenition.
14507 (enum sparc64_regnum): Reformat.
14508 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
14509 (sparc64_init_abi, sparc64_supply_gregset,
14510 sparc64_collect_gregset, sparc64_supply_fpregset,
14511 sparc64_collect_fpregset): New prototypes.
14512 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
14513 Add extern declarations.
14514 (sparc64_sol2_init_abi): New prototype.
14515 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
14516 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
14517 prototypes.
14518 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
14519 "sparnbsd-nat.h".
14520 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
14521 functions.
14522 (_initialize_sparc64fbsd_nat): Remove initialization of
14523 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
14524 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
14525 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
14526 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
14527 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
14528 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
14529 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
14530 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
14531 (sparc64fbsd_r_y_offset): Remove variables.
14532 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
14533 Make static and const.
14534 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
14535 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
14536 functions.
14537 (sparc64fbsd_gregset): New variable.
14538 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
14539 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
14540 and sparc64_supply_fpregset.
14541 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
14542 (sparc64fbsd_sigtramp_frame_this_id)
14543 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
14544 (sparc64fbsd_sigtramp_frame_unwind): New variable.
14545 (sparc64fbsd_sigtramp_frame_sniffer): New function.
14546 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
14547 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
14548 * sparcnbsd-tdep.c: Update copyright year. Include
14549 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
14550 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
14551 "value.h" and "sparcnbsd-tdep.h".
14552 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
14553 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
14554 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
14555 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
14556 defines.
14557 (sparcnbsd_gregset): New variable.
14558 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
14559 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
14560 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
14561 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
14562 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
14563 variables.
14564 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
14565 (sparc32nbsd_sigcontext_frame_this_id)
14566 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
14567 (sparc32nbsd_sigcontext_frame_unwind): New variable.
14568 (sparc32nbsd_sigtramp_frame_sniffer): New function.
14569 (sparcnbsd_get_longjmp_target_32,
14570 sparcnbsd_get_longjmp_target_64): Remove functions.
14571 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
14572 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
14573 sparcnbsd_init_elf): Remove.
14574 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
14575 (sparcnbsd_elf_init_abi): New functions.
14576 (_initialize_sparcnbsd_tdep): New prototype.
14577 (_initialize_sparnbsd_tdep): Update.
14578 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
14579 corelow.o. Add sparc64-nat.o and sparc-nat.o.
14580 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
14581 * config/sparc/linux.mh: Update comment.
14582 (XM_FILE, HOST_IPC): Remove variables.
14583 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
14584 sparc-linux-nat.o.
14585 * config/sparc/linux.mt: Update comment.
14586 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
14587 * config/sparc/nbsd.mt: Reformat.
14588 * config/sparc/nbsd64.mh: Update comment.
14589 (NATDEPFILES): Add sparc-nat.o.
14590 * config/sparc/nbsd64.mt: Update comment.
14591 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
14592 (TM_FILE): Set to tm-nbsd.h.
14593 * config/sparc/nbsdelf.mh: Update comment.
14594 (NATDEPFILES): Add sparc-nat.o.
14595 (XM_FILE): Delete.
14596 * config/sparc/nbsdaout.mh: Update comment.
14597 (NATDEPFILES): Add sparc-nat.o
14598 (XM_FILE): Delete.
14599 * config/sparc/nm-linux.h: Update copyright year. Don't include
14600 "config/nm-svr4.h" and "solib.h". Add protection against multiple
14601 inclusion.
14602 (KERNEL_U_SIZE): Remove define.
14603 (kernel_u_size): Remove prototype.
14604 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
14605 * config/sparc/nm-nbsd.h: Update copyright. Don't include
14606 "regcache.h".
14607 (CHILD_PREPARE_TO_STORE): Remove define.
14608 * config/sparc/nm-nbsdaout.h: Tweak some comments.
14609 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
14610 sparcnbsd-nat.c: Rewrite files.
14611 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
14612 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
14613 sparcnbsd-tdep.h: Remove files.
14614 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
14615 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
14616 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
14617 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
14618 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
14619 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
14620 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
14621 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
14622 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
14623 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
14624 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
14625 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
14626 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
14627 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
14628 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
14629 * config/sparc/linux64.mh, config/sparc/linux64.mt,
14630 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
14631 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
14632 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
14633
14634 2004-01-02 Andrew Cagney <cagney@redhat.com>
14635
14636 From 2003-12-18 Kazuhiro Inaoka:
14637 * configure.host: Add m32r-linux target.
14638
14639 2004-01-02 Michael Chastain <mec.gnu@mindspring.com>
14640
14641 * top.c (print_gdb_version): Update year to 2004.
14642
14643 2004-01-02 Mark Mitchell <mark@codesourcery.com>
14644
14645 * MAINTAINERS: Add myself to the write-after-approval category.
14646
14647 2004-01-02 Daniel Jacobowitz <drow@mvista.com>
14648
14649 From Bernardo Innocenti <bernie@develer.com>:
14650 * configure.tgt: Add uClinux target.
14651
14652 2004-01-02 Andrew Cagney <cagney@redhat.com>
14653
14654 * utils.c (do_my_cleanups): Make static, add forward declaration.
14655 * defs.h (do_my_cleanups): Delete declaration.
14656
14657 2004-01-02 Eli Zaretskii <eliz@elta.co.il>
14658
14659 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
14660 bfd/ChangeLog-0203.
14661
14662 2004-01-02 Mark Kettenis <kettenis@gnu.org>
14663
14664 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
14665 in <machine/reg.h>.
14666 * configure, config.in: Regenerate.
14667
14668 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
14669 tui/ChangeLog-1998-2003.
14670 \f
14671 Local Variables:
14672 mode: change-log
14673 left-margin: 8
14674 fill-column: 74
14675 version-control: never
14676 End: