* inf-ptrace.c: Don't include "regcache.h" and "gdbcmd.h".
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2004-11-21 Mark Kettenis <kettenis@gnu.org>
2
3 * inf-ptrace.c: Don't include "regcache.h" and "gdbcmd.h".
4 Reorder includes a bit. Fix comment.
5 * Makefile.in (inf-ptrace.o): Update dependencies.
6
7 2004-11-21 Andreas Schwab <schwab@suse.de>
8
9 * m68klinux-tdep.c: Include "glibc-tdep.h" and "solib-svr4.h".
10 (m68k_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
11 svr4_ilp32_fetch_link_map_offsets and gdbarch_skip_solib_resolver
12 to glibc_skip_solib_resolver.
13 * config/m68k/linux.mt (TDEPFILES): Add glibc-tdep.o. Remove
14 solib-legacy.o.
15 * Makefile.in (m68klinux-tdep.o): Update dependencies.
16
17 2004-11-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18
19 * infttrace.h (ttrace_write_reg_64): Add prototype.
20 * hppah-nat.c (store_inferior_registers): Fix warning from ambiguous
21 expression.
22 (store_inferior_registers): Correct formatting. Replace uses of
23 deprecated_registers with calls to regcache_raw_read,
24 regcache_raw_write_part and regcache_raw_read_part.
25
26 2004-11-21 Mark Kettenis <kettenis@gnu.org>
27
28 * config/pa/hppahpux.mh: Remove file.
29 * config/pa/hpux1020.mh: Remove file.
30
31 2004-11-20 Andreas Schwab <schwab@suse.de>
32
33 * configure.host: Set host floatformat for m68k.
34
35 2004-11-20 Eli Zaretskii <eliz@gnu.org>
36
37 * config/djgpp/fnchange.lst: Resolve file-name clash between
38 hppa-hpux-tdep.c and the new hppa-hpux-nat.c.
39
40 2004-11-20 Mark Kettenis <kettenis@gnu.org>
41
42 * hppa-hpux-nat.c: New file.
43 * config/pa/hpux.mh (NATDEPFILES): New file.
44 * Makefile.in (ALLDEPFILES): Add hppa-hpux-nat.c.
45 (hppa-hpux-nat.o): New dependency.
46 * configure.host: Remove hppa*-*-hpux10.20.
47 (hppa*-*-hpux*, hppa*-*-hiux*): Set gdb_host to hpux.mh.
48
49 * inf-ptrace.c: Fix coding style.
50
51 * gdb_ptrace.h [PTRACE_TYPE_ARG5] (ptrace): New macro.
52 * infptrace.c (call_ptrace): Simply call ptrace with four
53 arguments.
54
55 * dbxread.c (process_one_symbol): Fix a few coding standard
56 issues. Improve code formatting.
57
58 * dbxread.c: Include "gdb_string.h".
59 (record_minimal_symbol, read_ofile_symtab): Replace
60 DEPRECATED_STREQ and DEPRECATED_STREQN with strcmp and strncmp.
61 * Makefile.in (dbxread.o): Update dependencies.
62
63 * dwarf2-frame.c (read_encoded_value): Correctly calculate number
64 of bytes read for aligned LEB128 encodings.
65
66 2004-11-19 Mark Kettenis <kettenis@gnu.org>
67
68 * bsd-kvm.c (bsd_kvm_pcb_cmd): Cast return value from
69 parse_and_eval_address to u_long before converting it to a pointer
70 type.
71 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Change type of
72 ps_strings from int to u_long.
73 * i386obsd-nat.c (_initialize_i386obsd_nat): Cast _ps.val to
74 u_long instead of CORE_ADDR.
75
76 2004-11-18 Mark Kettenis <kettenis@gnu.org>
77
78 * dbxread.c (process_one_symbol): Do not adjust address of first
79 N_SLINE stab for a function for code generated by non-GCC
80 compilers.
81
82 2004-11-18 Kevin Buettner <kevinb@redhat.com>
83
84 * solib-null.c: New file.
85
86 2004-11-17 Andrew Cagney <cagney@gnu.org>
87
88 * MAINTAINERS: Drop MIPS and remote.
89
90 2004-11-15 Andrew Cagney <cagney@gnu.org>
91
92 * findvar.c (value_of_register): Set the frame ID.
93 * value.c (value_primitive_field): Copy the frame ID.
94 * valops.c (value_assign): Simplify lval_register case, there's
95 always a frame.
96
97 2004-11-14 Daniel Jacobowitz <dan@debian.org>
98
99 * Makefile.in (mips-linux-tdep.o): Update dependencies.
100 * mips-linux-tdep.c: Include "regcache.h".
101 (fill_fpregset, mips64_fill_fpregset): Use regcache_raw_collect.
102
103 2004-11-14 Daniel Jacobowitz <dan@debian.org>
104
105 * Makefile.in (linux-thread-db.o): Fix typo in last change.
106
107 2004-11-14 Daniel Jacobowitz <dan@debian.org>
108
109 * linux-thread-db.c: New file, renamed from thread-db.c.
110 * thread-db.c: Remove.
111 * Makefile.in (linux-thread-db.o): Rename from thread-db.o rule.
112 * config/alpha/alpha-linux.mh (NATDEPFILES): Rename thread-db.o
113 to linux-thread-db.o.
114 * config/arm/linux.mh (NATDEPFILES): Likewise.
115 * config/i386/linux.mh (NATDEPFILES): Likewise.
116 * config/i386/linux64.mh (NATDEPFILES): Likewise.
117 * config/ia64/linux.mh (NATDEPFILES): Likewise.
118 * config/m32r/linux.mh (NATDEPFILES): Likewise.
119 * config/m68k/linux.mh (NATDEPFILES): Likewise.
120 * config/mips/linux.mh (NATDEPFILES): Likewise.
121 * config/pa/linux.mh (NATDEPFILES): Likewise.
122 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
123 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
124 * config/s390/s390.mh (NATDEPFILES): Likewise.
125 * config/sparc/linux.mh (NATDEPFILES): Likewise.
126 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
127
128 2004-11-13 Andrew Cagney <cagney@gnu.org>
129
130 * config/i386/i386lynx.mh: Delete file.
131 * config/i386/i386lynx.mt: Delete file.
132 * Makefile.in (ALLDEPFILES, i386ly-tdep.o): Remove i386ly-tdep.c.
133 * i386ly-tdep.c: Delete.
134
135 * config/tm-lynx.h: Delete, inline contents ...
136 * config/rs6000/tm-rs6000ly.h: ... here.
137
138 * config/tm-sysv4.h: Delete file, inlining contents.
139 * config/ia64/tm-aix.h (SKIP_TRAMPOLINE_CODE): Define.
140 * config/tm-linux.h (SKIP_TRAMPOLINE_CODE): Define.
141 * config/tm-nto.h (SKIP_TRAMPOLINE_CODE): Define.
142
143 * regcache.h (deprecated_register_valid): Delete.
144 (deprecated_registers): Delete.
145 * regcache.c (deprecated_register_valid): Delete.
146 (deprecated_registers): Delete.
147 (deprecated_read_register_byte, _initialize_regcache)
148 (deprecated_write_register_bytes, build_regcache): Update.
149 * config/powerpc/ppc-sim.mt (TDEPFILES): Remove ppc-bdm.o and
150 remote-sds.o.
151 * config/powerpc/ppc-eabi.mt (TDEPFILES): Ditto.
152 * config/mips/embed.mt (TDEPFILES): Remove remote-mips.o.
153
154 * NEWS: List h8300*-*-*, mcore-*-*, mn10300-*-*, ns32k-*-*, and
155 v850-*-* under removed.
156 * configure.host: Delete ns32k-*-netbsd*.
157 * configure.tgt: Delete h8300-*-*, mcore*-*-*, mn10300-*-*,
158 ns32k-*-netbsd*, and v850*-*-*.
159 * MAINTAINERS: Mark h8300, mcore, mn10300, ns32k, v850 as
160 "Deleted"
161 * config/h8300/tm-h8300.h, config/h8300/h8300.mt: Delete.
162 * h8300-tdep.c, config/mcore/mcore.mt, mcore-rom.c: Delete.
163 * mcore-tdep.c, config/mn10300/mn10300.mt: Delete.
164 * mn10300-tdep.c, config/ns32k/nbsdaout.mh: Delete.
165 * config/ns32k/nbsdaout.mt, config/ns32k/nm-nbsd.h: Delete.
166 * config/ns32k/nm-nbsdaout.h, config/ns32k/tm-ns32k.h: Delete.
167 * ns32knbsd-nat.c, ns32knbsd-tdep.c, ns32k-tdep.c: Delete.
168 * ns32k-tdep.h, config/v850/v850.mt, v850ice.c: Delete.
169 * v850-tdep.c: Delete.
170
171 2004-11-13 Joel Brobecker <brobecker@gnat.com>
172
173 * irix5-nat.c (fetch_core_registers): Replace use of
174 deprecated_registers by equivalent code.
175
176 2004-11-13 Joel Brobecker <brobecker@gnat.com>
177
178 * irix5-nat.c (fill_gregset): Replace use of deprecated_registers
179 with equivalent code.
180 (fill_fpregset): Likewise.
181
182 2004-11-13 Andrew Cagney <cagney@gnu.org>
183
184 * MAINTAINERS: Do not list "Deleted" architectures.
185
186 * configure.tgt: Delete i[34567]86-*-vxworks*, m68*-netx-*,
187 m68*-*-vxworks*, mips*-*-vxworks*, powerpc-*-vxworks*, and
188 sparc-*-vxworks*.
189 * NEWS: Mention that vxworks was deleted.
190 * config/m68k/tm-vx68.h, config/mips/tm-vxmips.h: Delete.
191 * config/powerpc/tm-vxworks.h, config/tm-vxworks.h: Delete.
192 * config/i386/vxworks.mt, config/m68k/vxworks68.mt: Delete.
193 * config/mips/vxmips.mt, config/powerpc/vxworks.mt: Delete.
194 * config/sparc/vxworks.mt, vx-share/dbgRpcLib.h: Delete.
195 * vx-share/ptrace.h, vx-share/regPacket.h: Delete.
196 * vx-share/vxTypes.h, vx-share/vxWorks.h: Delete.
197 * vx-share/wait.h, vx-share/xdr_ld.c: Delete.
198 * vx-share/xdr_ld.h, vx-share/xdr_ptrace.c: Delete.
199 * vx-share/xdr_ptrace.h, vx-share/xdr_rdb.c: Delete.
200 * vx-share/xdr_rdb.h, remote-vxsparc.c: Delete.
201 * remote-vxmips.c, remote-vx.c: Delete.
202 * remote-vx68.c: Delete.
203 * config/m68k/tm-os68k.h: Remove reference to VxWorks.
204 * config/m68k/os68k.mt, ada-lang.h: Ditto.
205 * Makefile.in (HFILES_NO_SRCDIR, ALLDEPFILES, remote-vx68.o)
206 (remote-vx.o, remote-vxmips.o, remote-vxsparc.o): Delete vx files.
207
208 2004-11-13 Eli Zaretskii <eliz@gnu.org>
209
210 * config/i386/xm-go32.h: Don't include fopen-bin.h.
211 Don't define CRLF_SOURCE_FILES and DIRNAME_SEPARATOR.
212
213 * source.c (OPEN_MODE, FDOPEN_MODE): Remove the definitions in the
214 branch that doesn't define CRLF_SOURCE_FILES; always use
215 binary-mode open.
216 (print_source_lines_base, forward_search_command)
217 (reverse_search_command): Enable the code that accepts DOS-style
218 CRLF line endings on all platforms (this removes the need for
219 CRLF_SOURCE_FILES).
220
221 * defs.h: Fix wording of the comment before FOPEN_RB.
222 (DIRNAME_SEPARATOR) [__MSDOS__]: Define to ';'.
223
224 * config/djgpp/fnchange.lst: Group renames for opcode directory
225 together.
226
227 * config/djgpp/djconfig.sh: Replace file names that don't exist
228 anymore with existing files, for checking the unpacked
229 distribution.
230
231 * config/djgpp/config.sed (am_cv_exeext, lt_cv_sys_max_cmd_len):
232 Export pre-cooked values in configure-* targets that begin with
233 "@test -f stage_last".
234
235 2004-11-12 Andrew Cagney <cagney@gnu.org>
236
237 * defs.h (enum lval_type): Delete lval_reg_frame_relative.
238 * value.h (struct value): Update comment.
239 * valops.c (value_assign): Fold lval_reg_fame_relative into
240 lval_register.
241 * findvar.c (value_from_register, locate_var_value): Ditto.
242
243 2004-11-12 Randolph Chung <tausq@debian.org>
244
245 * config/tm/tm-hppa.h (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
246 * parse.c (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
247 (write_exp_msymbol): Remove conditional check for symbols starting
248 with $. Update comments.
249
250 2004-11-12 Randolph Chung <tausq@debian.org>
251
252 * pa64solib.c (pa64_solib_thread_start_addr): Rename from
253 so_lib_thread_start_addr.
254 * pa64solib.h (so_list): Forward declare.
255 (pa64_solib_thread_start_addr): Prototype.
256 * somsolib.c (SHL_LOAD, SHL_UNLOAD): Define if not already defined.
257 (no_shared_libraries): Remove.
258 (som_solib_thread_start_addr): Rename from so_lib_thread_start_addr.
259 * somsolib.h (som_solib_thread_start_addr): Likewise; prototype.
260 * hpread.c (hpread_process_one_debug_symbol): Use either the som or
261 the elf solib handler to find the start address.
262
263 * config/pa/hppahpux.mh (NATDEPFILES): Move target-specific support
264 files to the target makefile.
265 * config/pa/hpux1020.mh (NATDEPFILES): Likewise.
266 * config/pa/hpux11.mh (NATDEPFILES): Likewise.
267 * config/pa/hpux11w.mh (NATDEPFILES): Likewise.
268
269 * config/pa/hppa64.mt (TDEPFILES): Put target-specific support
270 files for symbol reading and shared library handling here.
271 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
272 (PA_SOM_ONLY): Define so we can build a 32-bit SOM only target
273 without bringing in 64-bit support.
274
275 2004-11-12 Andrew Cagney <cagney@gnu.org>
276
277 * sparc-tdep.c: Replace VALUE_TYPE with value_type.
278 * v850-tdep.c, sparc64-tdep.c, sh-tdep.c: Ditto.
279 * sh64-tdep.c, s390-tdep.c, mcore-tdep.c: Ditto.
280 * h8300-tdep.c, arm-linux-tdep.c, amd64-tdep.c: Ditto.
281 * hppa-tdep.c, mips-tdep.c, m88k-tdep.c: Ditto.
282 * m68hc11-tdep.c, m32r-tdep.c, ia64-tdep.c: Ditto.
283 * frv-tdep.c, cris-tdep.c, avr-tdep.c, alpha-tdep.c: Ditto.
284
285 Merge VALUE_REGNO and VALUE_FRAME_REGNUM into VALUE_REGNUM.
286 * value.h (VALUE_REGNO, VALUE_FRAME_REGNUM): Delete.
287 (VALUE_REGNUM): Define.
288 (struct value): Delete location.regnum, rename "regno" to
289 "regnum".
290 * value.c, valops.c, valarith.c, findvar.c: Update.
291
292 * value.h (VALUE_TYPE, VALUE_NEXT, VALUE_OFFSET, VALUE_BITSIZE)
293 (VALUE_BITPOS): Delete.
294 (value_type, value_offset, value_bitsize, value_bitpos): Declare.
295 * value.c (value_type, value_offset, value_bitpos)
296 (value_bitsize): New functions. Update references.
297 * arm-tdep.c, gnu-v3-abi.c, hpacc-abi.c, gnu-v2-abi.c: Update.
298 * f-valprint.c, cp-valprint.c, c-valprint.c: Update.
299 * ada-valprint.c, typeprint.c, scm-valprint.c, scm-exp.c: Update.
300 * p-valprint.c, jv-valprint.c, jv-lang.c, varobj.c: Update.
301 * objc-lang.c, ada-lang.c, std-regs.c, stack.c: Update.
302 * infcall.c, linespec.c, printcmd.c, valarith.c: Update.
303 * valops.c, eval.c, findvar.c, breakpoint.c: Update.
304 * tracepoint.c, ax-gdb.c, mi/mi-main.c, cli/cli-dump.c:
305 * rs6000-tdep.c, ppc-sysv-tdep.c: Update.
306
307 2004-11-12 Andrew Cagney <cagney@gnu.org>
308
309 * cris-tdep.c (cris_register_offset): Delete, never called.
310 (cris_spec_reg_applicable): Delete cris_ver_sim.
311 * MAINTAINERS: List d10v as OBSOLETE.
312 * rdi-share/host.h (FOPEN_WB): #ifdef 0 out definitions of
313 FOPEN_WB et.al., defined by "fopen-bin.h".
314
315 2004-11-12 Randolph Chung <tausq@debian.org>
316
317 * hppa-tdep.c (hppa_skip_permanent_breakpoint): Move definition ...
318 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): ... to here.
319 * config/pa/tm-hppa.h (SKIP_PERMANENT_BREAKPOINT): Move definition ...
320 * config/pa/tm-hppah.h (SKIP_PERMANENT_BREAKPOINT): ... to here.
321
322 2004-11-12 Mark Kettenis <kettenis@jive.nl>
323
324 * tui/tui-io.c: Don't include "terminal.h".
325 * Makefile.in (tui-io.o): Update dependencies.
326
327 2004-11-12 Kei Sakamoto <sakamoto.kei@renesas.com>
328
329 * Makefile.in (m32r-linux-tdep.o): Update dependencies.
330 * m32r-linux-tdep.c (m32r_linux_init_abi): Call
331 set_gdbarch_regset_from_core_section for core file support.
332 (m32r_linux_supply_gregset, m32r_linux_regset_from_core_section):
333 New functions.
334
335 2004-11-11 Randolph Chung <tausq@debian.org>
336
337 * hppa-tdep.c (skip_prologue_hard_way): Make static, add
338 stop_after_branch parameter and use it to determine if we should look
339 at the delay slot of the first branch insn to find prologue insns.
340 (hppa_skip_prologue): Update comment and call to skip_prologue_hard_way.
341 (hppa_frame_cache): Likewise.
342
343 2004-11-11 Randolph Chung <tausq@debian.org>
344
345 * hppa-tdep.c (hppa_frame_cache): Properly handle the frame pointer
346 register so that it can be unwound from anywhere in the prologue.
347
348 2004-11-10 msnyder <msnyder@redhat.com>
349
350 * rs6000-tdep.c (skip_prologue): After saving lr_offset,
351 must invalidate lr_reg (so we don't try to save it again).
352 Ditto for cr_offset and cr_reg.
353
354 2004-11-05 Jon Beniston <jon@beniston.com>
355
356 Committed by Andrew Cagney.
357 * remote.c (putpkt_binary) Fix PR gdb/1806. Send an ACK
358 when an unexpected packet is received, as the target stubs
359 continually retransmit the same packet until ACKed.
360
361 2004-11-10 Randolph Chung <tausq@debian.org>
362
363 * frame.c (get_prev_frame): Use get_frame_type to retrieve the
364 frame's type.
365
366 2004-11-10 Randolph Chung <tausq@debian.org>
367
368 * blockframe.c (inside_entry_func): Move to .....
369 * frame.c (inside_entry_func): ... here, and make static.
370 (backtrace_past_entry): New flag.
371 (get_prev_frame): Stop backtrace at the entry function if enabled
372 by flag. Update comments.
373 (_initialize_frame): Add command to set backtrace_past_entry flag.
374 * defs.h (inside_entry_func): Remove prototype.
375
376 2004-11-10 Mark Kettenis <kettenis@gnu.org>
377
378 * dwarf2read.c: Fix formatting.
379
380 2004-11-10 Andrew Cagney <cagney@gnu.org>
381
382 * value.h (COERCE_REF, COERCE_ARRAY, COERCE_NUMBER, COERCE_ENUM)
383 (coerce_ref, coerce_array, coerce_number, coerce_enum): Replace
384 macros with function declarations.
385 * value.c (coerce_ref, coerce_array, coerce_number)
386 (coerce_enum): New functions.
387 (value_as_long, value_as_address): Update.
388 * ada-lang.c (ada_coerce_ref, ada_value_binop)
389 (ada_evaluate_subexp, ada_value_assign, ada_value_struct_elt): Update.
390 * jv-lang.c (evaluate_subexp_java): Update.
391 * valarith.c (value_less, value_neg, value_complement)
392 (value_binop, value_add, value_subscript, value_x_binop)
393 (value_logical_not, value_sub): Update.
394 * valops.c (check_field, value_struct_elt, value_ind)
395 (value_find_oload_method_list, value_cast, value_assign): Update.
396 * eval.c (evaluate_subexp_standard): Update.
397
398 2004-11-10 Mark Kettenis <kettenis@gnu.org>
399
400 * mips-tdep.c (mips32_relative_offset): Change return type to
401 LONGEST, change argument type to ULONGEST. Fix sign-extension.
402
403 2004-11-10 Randolph Chung <tausq@debian.org>
404
405 * hppa-tdep.c (hppa32_register_name, hppa64_register_name): Make static.
406 (hppa32_push_dummy_call, hppa64_push_dummy_call): Likewise.
407 (hppa_fetch_pointer_argument): Likewise.
408 (hppa_frame_cache): Use safe_frame_unwind_memory instead of
409 deprecated_read_memory_nobpt.
410 (_initialize_hppa_tdep): Replace deprecated_add_show_from_set/
411 add_set_cmd sequence with add_setshow_boolean_cmd.
412
413 2004-11-09 Andrew Cagney <cagney@gnu.org>
414
415 GDB 6.3 released from GDB 6.3 branch.
416
417 2004-11-09 Andrew Cagney <cagney@gnu.org>
418
419 * values.c: Rename to ...
420 * value.c: ..., new file.
421 * Makefile.in: Update.
422
423 2004-11-09 Daniel Jacobowitz <dan@debian.org>
424
425 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Correct allocated
426 size.
427
428 2004-11-09 Andrew Cagney <cagney@gnu.org>
429
430 * TODO: Delete.
431
432 * value.h (struct value): Delete field bfd_section.
433 (VALUE_BFD_SECTION): Delete macro.
434 (COERCE_REF): Update.
435 (value_at, value_at_lazy): Delete asection parameter.
436 * printcmd.c (print_formatted, x_command): Update.
437 (do_examine): Delete asection parameter.
438 (next_section): Delete variable.
439 * valops.c (value_cast, value_at, value_at_lazy)
440 (value_coerce_function, value_addr, value_ind, value_string)
441 (find_rt_vbase_offset, value_full_object): Update.
442 * hpacc-abi.c (hpacc_virtual_fn_field)
443 (hpacc_value_rtti_type): Update.
444 * gnu-v3-abi.c (gnuv3_rtti_type, gnuv3_virtual_fn_field)
445 (gnuv3_baseclass_offset): Update.
446 * f-valprint.c (f_val_print): Update.
447 * c-valprint.c (c_val_print): Update.
448 * p-valprint.c (pascal_val_print): Update.
449 * jv-valprint.c (java_value_print): Update.
450 * jv-lang.c (java_class_from_object, evaluate_subexp_java): Update.
451 * ada-lang.c (ada_value_primitive_packed_val)
452 (ada_evaluate_subexp): Update.
453 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Update.
454 * expprint.c (print_subexp_standard): Update.
455 * infcall.c (call_function_by_hand): Update.
456 * valarith.c (value_add): Update.
457 * eval.c (evaluate_subexp_standard): Update.
458 * values.c (allocate_value, value_copy, value_static_field): Update.
459 * findvar.c (read_var_value, locate_var_value): Update.
460
461 2004-11-09 Andrew Cagney <cagney@gnu.org>
462
463 * i386-linux-tdep.c: Include "dwarf2-frame.h".
464 * Makefile.in: Update all dependencies.
465
466 2004-11-08 Andrew Cagney <cagney@gnu.org>
467
468 * sentinel-frame.c (sentinel_frame_prev_pc): New function.
469 (sentinel_frame_unwinder): Add the prev_pc method.
470 * frame.c (frame_pc_unwind): Use the per-frame pc unwinder when
471 available. Do not handle the sentinel-frame case.
472 * frame-unwind.h (frame_prev_register_ftype): Define.
473 (struct frame_unwind): Add prev_pc;
474
475 2004-11-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
476
477 * configure.in: Check for ncurses/term.h.
478 * gdb_curses.h: Include term.h here, prefering ncurses/term.h.
479 * utils.c: Include gdb_curses.h instead of curses.h and term.h.
480 * tui/tui.c: Don't include term.h.
481 * configure, config.in: Rebuilt.
482
483 2004-11-08 Mark Kettenis <kettenis@gnu.org>
484
485 * m68kbsd-nat.c: Include "inf-ptrace.h".
486 (_initialize_m68kbsd_nat): Fix pasto.
487 * Makefile.in (m68kbsd-nat.o): Update dependencies.
488
489 2004-11-08 Randolph Chung <tausq@debian.org>
490
491 * infrun.c (debug_infrun): New variable.
492 (resume, proceed, wait_for_inferior): Annotate with debug messages.
493 (handle_inferior_event, keep_going): Likewise.
494 (_initialize_infrun): Register "set debug infrun" command.
495
496 2004-11-08 Andreas Schwab <schwab@suse.de>
497
498 * linux-nat.c (PTRACE_EVENT_VFORK_DONE): Renamed from
499 PTRACE_EVENT_VFORKDONE.
500 (child_follow_fork): Adjust.
501
502 2004-11-08 Andrew Cagney <cagney@gnu.org>
503
504 * README: Refer to 6.3, not 6.2, update directory listing droppng
505 references to intl/ and mmalloc/.
506 * PROBLEMS: Refer to 6.3 not 6.2.
507
508 * PROBLEMS: Delete no-longer applicable problems.
509
510 2004-11-07 Andrew Cagney <cagney@redhat.com>
511 Daniel Jacobowitz <dan@debian.org>
512 Roland McGrath <roland@redhat.com>
513
514 * Makefile.in (symfile-mem.o): Update dependencies.
515 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): New.
516 (i386_linux_init_abi): Call dwarf2_frame_set_signal_frame_p.
517 * inf-ptrace.c (inf_ptrace_attach): Call
518 observer_notify_inferior_created.
519 * inftarg.c (child_attach): Likewise.
520 * symfile-mem.c: Include "observer.h", "auxv.h", and "elf/common.h".
521 (symbol_file_add_from_memory): Take NAME argument. Use it for
522 the new BFD's filename.
523 (add_symbol_file_from_memory_command): Update call to
524 symbol_file_add_from_memory.
525 (struct symbol_file_add_from_memory_args, add_vsyscall_page)
526 (symbol_file_add_from_memory_wrapper): New.
527 (_initialize_symfile_mem): Register add_vsyscall_page as an
528 inferior_created observer.
529
530 2004-11-07 Mark Kettenis <kettenis@gnu.org>
531
532 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Rename from
533 fetch_inferior_registers. Make static.
534 (m68kbsd_store_inferior_registers): Rename from
535 store_inferior_registers. Make static.
536 (_initialize_m68kbsd_nat): Construct and add target vector.
537 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
538 inftarg.o. Add inf-ptrace.o.
539 (NAT_FILE): Set to tm-solib.h.
540 (LOADLIBES): New variable.
541 * config/m68k/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
542 inftarg.o. Add inf-ptrace.o.
543 (NAT_FILE): Delete variable.
544 * config/m68k/obsd.mh (NATDEPFILES): Remove infptrace.o and
545 inftarg.o. Add inf-ptrace.o.
546 (NAT_FILE): Set to tm-solib.h.
547 * config/m68k/nm-nbsdaout.h: Remove file.
548
549 2004-11-07 Daniel Jacobowitz <dan@debian.org>
550
551 * dwarf2-frame.c (struct dwarf2_frame_ops): Add signal_frame_p.
552 (dwarf2_frame_set_signal_frame_p, dwarf2_frame_signal_frame_p)
553 (dwarf2_signal_frame_unwind): New.
554 (dwarf2_frame_sniffer): Use dwarf2_frame_signal_frame_p.
555 * dwarf2-frame.h (dwarf2_frame_set_signal_frame_p): New prototype.
556
557 2004-11-07 Mark Kettenis <kettenis@gnu.org>
558
559 * Makefile.in (mips64obsd-tdep.o): Fix typo.
560
561 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Renamed
562 from mipsnbsd_ilp32_solib_svr4_fetch_link_map_offsets. Trim sizes
563 to only include the structure members we actually need.
564 (mipsnbsd_lp64_fetch_link_map_offsets): Renamed from
565 mipsnbsd_lp64_solib_svr4_fetch_link_map_offsets. Trim sizes to
566 only include the structure members we actually need.
567 (mipsnbsd_init_abi): Update.
568
569 * mips64obsd-nat.c: Include "mips-tdep.h".
570 (MIPS64OBSD_NUM_REGS): Remove define.
571 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM): New defines.
572 (mips64obsd_supply_gregset, mips64obsd_collect_gregset): Handle
573 floating-point registers correctly.
574 * Makefile.in (mips64obsd-nat.o): Update dependencies.
575
576 * mips64obsd-tdep.c: Include "trad-frame.h", "tramp-frame.h" and
577 "gdb_assert.h".
578 (mips64obsd_sigframe_init): New function.
579 (mips64obsd_sigframe): New variable.
580 (mips64obsd_init_abi): Add comments. Prepend mips64obsd_sigrame
581 unwinder.
582 * Makefile.in (mips64obsd-tdep.o): Update dependencies.
583
584 2004-11-06 Joel Brobecker <brobecker@gnat.com>
585
586 * alpha-mdebug-tdep.c: #include mdebugread.h.
587 Replace alpha_extra_func_info_t by struct mdebug_extra_func_info *.
588 * Makefile.in (alpha-mdebug-tdep.o): Add dependency on mdebugread.h.
589
590 2004-11-05 Andrew Cagney <cagney@gnu.org>
591
592 * dwarf2-frame.c (dwarf2_frame_cache): Only complain when both the
593 CFI and the init_reg method leave the register unspecified.
594 Include the register name in the "Incomplete CFI data" complaint.
595 Supress leading zeros in the address.
596
597 2004-11-05 Mark Kettenis <kettenis@gnu.org>
598
599 * dwarf2-frame.c (decode_frame_entry_1): Avoid indirection when
600 skipping a personality routine in a CIE augmentation.
601
602 2004-11-05 Jeff Johnston <jjohnstn@redhat.com>
603
604 * defs.h (fatal, vfatal): New function prototypes.
605 * stack.c (backtrace_command_stub): Stub to call backtrace_command_1
606 via catch_errors.
607 (backtrace_command): Change to call backtrace_command_stub via
608 catch_errors instead of calling backtrace_command_1 directly.
609 (backtrace_full_command): Ditto.
610 * utils.c (error_stream_1): New static function.
611 (verror): Change to call error_stream_1 instead of error_stream.
612 (error_stream): Call error_stream_1 with RETURN_ERROR argument.
613 (vfatal, fatal): New functions.
614
615 2004-11-05 Andrew Cagney <cagney@gnu.org>
616
617 * stack.c (parse_frame_specification_1): Clear selected_frame_p
618 when not using selected frame.
619
620 2004-11-05 Mark Kettenis <kettenis@jive.nl>
621
622 * dwarf2-frame.c (decode_frame_entry_1): Correctly skip
623 personality routine in a CIE augmentation.
624
625 2004-11-05 Felix Lee <felix+log1@specifixinc.com>
626
627 * stack.c (set_current_sal_from_frame): New function.
628 (print_args_stub): Use it.
629 (print_frame_info): Don't set sal here.
630
631 2004-11-04 Mark Kettenis <kettenis@gnu.org>
632
633 * dwarf2-frame.c (read_encoded_value): Change type of third
634 argument to `unsigned char *'. Add support for LEB128 encodings.
635
636 2004-11-04 Jim Blandy <jimb@redhat.com>
637
638 * gdbtypes.c (make_qualified_type): Doc fix. Add assertion to
639 prevent cross-objfile references.
640 (make_cv_type): Doc fix. Don't create cross-objfile references,
641 even for stub types.
642 (replace_type): Add assertion to prevent cross-objfile references.
643 (check_typedef): Never resolve a stub type by copying over a type
644 from another file.
645
646 2004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
647
648 * Makefile.in (m32r-tdep.o): Update dependencies.
649 * m32r-tdep.c (m32r_gdbarch_init): Call gdbarch_init_osabi for
650 ABI-specific overrides.
651
652 2004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
653
654 * m32r-tdep.c (m32r_memory_insert_breakpoint): Remove
655 unnecessary parallel execution bit.
656 (m32r_memory_remove_breakpoint): Ditto.
657 (m32r_breakpoint_from_pc): Update.
658
659 2004-11-03 Randolph Chung <tausq@debian.org>
660
661 * hppa-tdep.c (hppa_frame_cache): Use frame_pc_unwind instead of
662 frame_func_unwind to locate the unwind entry.
663 (hppa_frame_this_id): Likewise.
664
665 2004-11-03 Andrew Cagney <cagney@gnu.org>
666
667 * gdb/NEWS: Mention internationalization, m32r-*-linux-gnu, 'p'
668 packet, obsolete configurations, end-of-life deprecated_registers.
669
670 2004-11-02 Mark Kettenis <kettenis@gnu.org>
671
672 * dwarf2-frame.c (read_encoded_value): Set proper size for signed
673 encodings as well as unsigned encodings.
674
675 2004-11-02 Andrew Cagney <cagney@gnu.org>
676
677 * value.h (COERCE_VARYING_ARRAY): Delete.
678 * valops.c (value_cast, value_slice): Delete use.
679 * valarith.c (value_subscript, value_concat): Delete use.
680
681 2004-11-02 Paul Hilfinger <hilfingr@nile.gnat.com>
682
683 * NEWS: GDB understands GNAT Ada.
684
685 2004-11-01 Joseph S. Myers <joseph@codesourcery.com>
686
687 * Makefile.in (ALLDEPFILES): Add amd64-sol2-tdep.c.
688 (amd64-sol2-tdep.o): Add dependencies.
689 * amd64-sol2-tdep.c, config/i386/sol2-64.mh,
690 config/i386/sol2-64.mt: New files.
691 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offset,
692 amd64_sol2_gregset32_reg_offset, _initialize_amd64_sol2_nat): New.
693 (supply_gregset): Correct order of arguments to
694 amd64_supply_native_gregset.
695 (fill_gregset): Correct order of arguments to
696 amd64_collect_native_gregset.
697 * configure.host (i[34567]86-*-solaris2.1[0-9]*): Add new case.
698 * configure.tgt (i[34567]86-*-solaris2.1[0-9]*): Likewise.
699 * configure.in (*-*-solaris2.[[6789]]): Add *-*-solaris2.1[[0-9]]
700 for definition of NEW_PROC_API.
701 * configure: Regenerate.
702
703 2004-11-01 Joseph S. Myers <joseph@codesourcery.com>
704
705 * MAINTAINERS (Write After Approval): Add myself.
706
707 2004-11-01 Andrew Cagney <cagney@gnu.org>
708
709 * configure.tgt: Mark d10v-*-* as obsolete.
710 * config/d10v/d10v.mt, d10v-tdep.c: Obsolete files.
711
712 2004-11-01 Paul N. Hilfinger <Hilfinger@gnat.com>
713
714 * values.c (modify_field): Correct handling of bit-fields that
715 don't fit in 32 bits. Use unsigned operations throughout and
716 simplify the code a bit. Document preconditions.
717
718 2004-10-31 Andrew Cagney <cagney@gnu.org>
719
720 * config/pa/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
721 * config/tm-sysv4.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
722 (in_plt_section): Delete.
723
724 * mips-tdep.c (mips_in_solib_return_trampoline): Delete.
725 (mips_gdbarch_init): Do not set same.
726
727 * arch-utils.c (generic_in_solib_call_trampoline): Delete.
728 * arch-utils.h (generic_in_solib_call_trampoline): Delete.
729
730 * gdbarch.sh (in_solib_call_trampoline): Delete.
731 * gdbarch.h, gdbarch.c: Re-generate.
732
733 * hppa-tdep.c (hppa_stub_unwind_sniffer): Replace
734 IN_SOLIB_CALL_TRAMPOLINE with tdep.in_solib_call_trampoline.
735 * hppa-tdep.h (struct gdbarch_tdep): Add in_solib_call_trampoline.
736 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Set same.
737 * hppa-linux-tdep.c (hppa_linux_init_abi): Ditto.
738
739 2004-10-31 Mark Kettenis <kettenis@gnu.org>
740
741 * mipsnbsd-nat.c: Include "target.h" and "inf-ptrace.h".
742 (mipsnbsd_fetch_inferior_registers): Rename from
743 fetch_inferior_registers. Make static.
744 (mipsnbsd_store_inferior_registers): Rename from
745 store_inferior_registers. Make static.
746 (_initialize_mipsnbsd_nat): New function and prototype.
747 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
748 * config/mips/nbsd.mh (NAT_CLIBS, NAT_FILE): Remove variables.
749 (NATDEPFILES): Remove infptrace.o and inftarg.o. Add
750 inf-ptrace.o.
751
752 2004-10-31 Andrew Cagney <cagney@gnu.org>
753
754 * xstormy16-tdep.c (xstormy16_in_solib_call_trampoline)
755 (xstormy16_gdbarch_init): Do not set in_solib_call_trampoline,
756 delete corresponding unused function.
757 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Really do not set
758 in_solib_call_trampoline.
759 * config/arm/tm-embed.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
760 * config/powerpc/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
761 * config/mips/tm-nbsd.h: Ditto.
762 * config/arm/tm-linux.h: Ditto.
763 * config/mips/tm-linux.h: Ditto.
764
765 * armnbsd-tdep.c (arm_netbsd_aout_init_abi)
766 (arm_netbsd_aout_in_solib_call_trampoline): Do not set
767 in_solib_call_trampoline, delete corresponding unused function.
768 * vaxnbsd-tdep.c (vaxnbsd_aout_in_solib_call_trampoline)
769 (vaxnbsd_aout_init_abi): Ditto.
770 * sparcnbsd-tdep.c (sparcnbsd_aout_in_solib_call_trampoline)
771 (sparc32nbsd_aout_init_abi): Ditto.
772 * ppc-linux-tdep.c (ppc64_in_solib_call_trampoline)
773 (ppc_linux_init_abi): Ditto.
774 * ns32knbsd-tdep.c (ns32knbsd_aout_in_solib_call_trampoline)
775 (ns32knbsd_init_abi_aout): Ditto.
776 * mips-tdep.c (mips_in_call_stub, mips_gdbarch_init): Ditto.
777 * mips-linux-tdep.c (mips_linux_init_abi): Ditto.
778 * m68kbsd-tdep.c (m68kbsd_aout_in_solib_call_trampoline)
779 (m68kbsd_aout_init_abi): Ditto.
780 * i386-cygwin-tdep.c (i386_cygwin_in_solib_call_trampoline)
781 (i386_cygwin_init_abi): Ditto.
782 * i386bsd-tdep.c (i386bsd_aout_in_solib_call_trampoline)
783 (i386bsd_init_abi): Ditto.
784
785 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Do not set
786 in_solib_call_trampoline to in_plt_entry, IN_SOLIB_CALL_TRAMPOLINE
787 isn't used by this architecture.
788 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
789 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Ditto.
790 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Ditto.
791 * s390-tdep.c (s390_gdbarch_init): Ditto.
792 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
793 * m68klinux-tdep.c (m68k_linux_init_abi): Ditto.
794 * i386-tdep.c (i386_svr4_init_abi): Ditto.
795 * i386-nto-tdep.c (i386nto_init_abi): Ditto.
796 * arm-linux-tdep.c (arm_linux_init_abi): Ditto.
797 * amd64-tdep.c (amd64_init_abi): Ditto.
798
799 * vaxnbsd-tdep.c (vaxnbsd_elf_init_abi): Do not set
800 in_solib_call_trampoline to its default value of
801 generic_in_solib_call_trampoline.
802 * ppcobsd-tdep.c (ppcobsd_init_abi): Ditto.
803 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Ditto.
804 * i386obsd-tdep.c (i386obsd_elf_init_abi): Ditto.
805 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Ditto.
806 * i386fbsd-tdep.c (i386fbsd_init_abi): Ditto.
807 * hppabsd-tdep.c (hppabsd_init_abi): Ditto.
808
809 * mips-tdep.c (mips_dump_tdep): Don't print any of the macros.
810
811 * config/mips/obsd64.mt (DEPRECATED_TM_FILE): Delete.
812
813 * config/mips/tm-mips.h: Delete file.
814 * remote-mips.c: Delete tm-mips.h from comment.
815 * config/mips/embed.mt (DEPRECATED_TM_FILE): Delete.
816 * config/mips/tm-nbsd.h: Don't include tm-mips.h.
817 * config/mips/irix6.mt (DEPRECATED_TM_FILE): Delete.
818 * config/mips/tm-linux.h: Don't include tm-mips.h.
819 * config/mips/tm-vxmips.h: Don't include tm-mips.h.
820 * config/mips/irix5.mt (DEPRECATED_TM_FILE):
821 * config/mips/tm-wince.h: Don't include.
822
823 * mdebugread.h (MDEBUG_EFI_SYMBOL_NAME): Define.
824 * mdebugread.c (MDEBUG_EFI_SYMBOL_NAME): Delete.
825 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
826 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
827
828 * mdebugread.h (ecoff_relocate_efi): Delete declaration.
829 * mdebugread.c (ecoff_relocate_efi): Delete function.
830 * objfiles.c (objfile_relocate): Delete #ifdef
831 MDEBUG_EFI_SYMBOL_NAME code.
832
833 2004-10-31 Orjan Friberg <organ.friberg@axis.com>
834 Andrew Cagney <cagney@gnu.org>
835
836 * gdbarch.sh (single_step_through_delay): Add.
837 * gdbarch.h, gdbarch.c: Re-generate.
838 * config/mips/tm-mips.h (STEP_SKIPS_DELAY_P, STEP_SKIPS_DELAY)
839 (mips_step_skips_delay): Delete.
840 * mips-tdep.c (mips_single_step_through_delay): Replace
841 mips_step_skips_delay.
842 (mips_gdbarch_init): Set single_step_through_delay.
843 (mips_dump_tdep): Do not print STEP_SKIPS_DELAY.
844
845 2004-10-31 Mark Kettenis <kettenis@gnu.org>
846
847 * tramp-frame.c (tramp_frame_prepend_unwinder): Set unwinder type
848 from TRAMP_FRAME frame type.
849
850 2004-10-31 Andrew Cagney <cagney@gnu.org>
851
852 * mdebugread.c (parse_procedure): Wrap use of RA_REGNUM in #ifdef.
853
854 * mips-tdep.c (mips_ignore_helper): Delete.
855 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Delete.
856 * infrun.c (handle_inferior_event): Delete #ifdef
857 DEPRECATED_IGNORE_HELPER_CALL code.
858
859 * config/mips/tm-mips.h (RA_REGNUM): Delete.
860
861 2004-10-31 Mark Kettenis <kettenis@gnu.org>
862
863 * i386v4-nat.c (supply_gregset, supply_fpregset, fill_gregset)
864 (fill_fpregset): Do not compile for 64-bit systems.
865 * i386-sol2-nat.c: Don't include "i386v4-nat.c".
866 * Makefile.in (i386-sol2-nat.o): Update dependencies.
867 * config/i386/i386sol2.mh (NATDEPFILES): Add back i386v4-nat.c.
868
869 2004-10-30 Andrew Cagney <cagney@gnu.org>
870
871 * mdebugread.h: Include "coff/sym.h" and "coff/symconst.h".
872 (struct mdebug_extra_func_info): Define.
873 * config/alpha/tm-alpha.h: Delete same.
874 * config/mips/tm-mips.h: Delete same.
875 * mdebugread.c: Delete same.
876 * Makefile.in: Update dependencies.
877 * mips-mdebug-tdep.c: Include "mdebugread.h".
878
879 * objfiles.c: Include "mdebugread.h".
880 * mdebugread.c: Include "mdebugread.h".
881 (ecoff_relocate_cfi): Delete.
882 * config/alpha/tm-alpha.h (ecoff_relcate_cfi): Delete.
883 * config/mips/tm-mips.h (ecoff_relcate_cfi): Delete.
884 * mdebugread.h (ecoff_relocate_efi): New file.
885 * Makefile.in: Update dependencies.
886
887 * mips-tdep.c (struct frame_extra_info): Delete.
888 (temp_proc_desc): Delete.
889
890 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Rename
891 MIPS_EFI_SYMBOL_NAME.
892 (mips_extra_func_info_t, mips_extra_func_info): Delete.
893 (struct mdebug_extra_func_info): Replace struct
894 alpha_extra_func_info and alpha_extra_func_info_t.
895 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Rename
896 MIPS_EFI_SYMBOL_NAME.
897 (struct mdebug_extra_func_info): Replace struct
898 alpha_extra_func_info and alpha_extra_func_info_t.
899 * objfiles.c, mips-tdep.c, mips-mdebug-tdep.c: Update.
900 * mdebugread.c, alpha-mdebug-tdep.c:
901
902 Suggested by Mark Kettenis.
903 * config/mips/tm-mips.h (struct mips_extra_func_info): Delete
904 fields frame_adjust and high_addr.
905 * mips-mdebug-tdep.c (PROC_HIGH_ADDR, PROC_FRAME_ADJUST): Delete.
906 (non_heuristic_proc_desc): Delete references.
907
908 * mips-tdep.h (MIPS_PRID_REGNUM): Add.
909 * config/mips/tm-mips.h (PRID_REGNUM): Delete.
910 * mips-tdep.c: Update.
911
912 * mips-tdep.h (MIPS_FIRST_EMBED_REGNUM)
913 (MIPS_LAST_EMBED_REGNUM): Add.
914 * config/mips/tm-mips.h (FIRST_EMBED_REGNUM)
915 (LAST_EMBED_REGNUM): Delete.
916 * mipsv4-nat.c, mips-tdep.c, mips-linux-tdep.c: Update.
917
918 * config/mips/tm-mips.h (PS_REGNUM): Delete.
919 * mips-tdep.h (MIPS_PS_REGNUM): Add.
920 * remote-vxmips.c, mipsv4-nat.c, mips-tdep.c: Update.
921 * mips-linux-nat.c: Update.
922
923 * mips-tdep.h: Add comments on registers.
924 (MIPS_UNUSED_REGNUM): Define.
925 * config/mips/tm-mips.h (ZERO_REGNUM, UNUSED_REGNUM)
926 (T9_REGNUM, V0_REGNUM, A0_REGNUM): Delete.
927 * irix5-nat.c, mipsv4-nat.c, mips-linux-tdep.c: Update.
928 * mips-linux-nat.c, remote-mips.c: Update.
929
930 * config/mips/tm-mips.h (t_insn): Delete.
931 * mips-tdep.c (mips_fetch_instruction, mips_skip_trampoline_code):
932 Replace t_insn with ULONGEST.
933
934 2004-10-30 Mark Kettenis <kettenis@gnu.org>
935
936 * mipsnbsd-tdep.c: Include "regset.h" and "gdb_assert.h".
937 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM)
938 (MIPSNBSD_NUM_GREGS, MIPSNBSD_NUM_FPREGS): New defines.
939 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
940 (mipsnbsd_core_fns, mipsnbsd_elfcore_fns): Remove variables.
941 (mipsnbsd_core_osabi_sniffer): New function.
942 (mipsnbsd_init_abi): Set regset_from_core_section.
943 (_initialize_mipsnbsd_tdep): Remove calls to
944 deprecated_add_core_fns.
945 (mipsnbsd_supply_fpregset, mipsnbsd_supply_gregset)
946 (mipsnbsd_regset_from_core_section): New functions.
947 (mipsnbsd_gregset, mipsnbsd_fpregset): New variables.
948 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
949
950 * procfs.c (procfs_fetch_registers, procfs_store_registers): Like
951 Remove optimization for DEPRECATED_FP_REGNUM.
952
953 2004-10-30 Andrew Cagney <cagney@gnu.org>
954
955 * alpha-tdep.c (alpha_setup_arbitrary_frame): Delete.
956 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Delete.
957 (alpha_setup_arbitrary_frame): Delete.
958 * mips-tdep.c (setup_arbitrary_frame): Delete.
959 * config/mips/tm-mips.h (SETUP_ARBITRARY_FRAME): Delete.
960 (setup_arbitrary_frame): Delete.
961 * stack.c (parse_frame_specification_1): When specified, call
962 create_new_frame with two parameters. Delete #ifdef
963 SETUP_ARBITRARY_FRAME.
964
965 * config/mips/tm-mips.h (MIPS16_INSTLEN, MIPS_NUMREGS)
966 (MIPS_INSTLEN): Delete.
967 * mips-tdep.h (enum mips_insn_size): Rename MIPS32_INSN_SIZE and
968 MIPS16_INSN_SIZE to MIPS_INSN32_SIZE and MIPS_INSN16_SIZE.
969 * remote-mips.c, mips-tdep.c: Update.
970
971 * config/mips/embed.mt (TDEPFILES): Add mips-mdebug-tdep.o.
972 * mips-mdebug-tdep.h, mips-mdebug-tdep.c: New files.
973 * mips-tdep.c (mips_mdebug_frame_cache)
974 (mips_mdebug_frame_this_id, mips_mdebug_frame_prev_register)
975 (mips_mdebug_frame_unwind, mips_mdebug_frame_sniffer)
976 (mips_mdebug_frame_base_address, mips_mdebug_frame_sniffer)
977 (mips_mdebug_frame_base_sniffer, non_heuristic_proc_desc)
978 (compare_pdr_entries, the_bfd, mips16_fetch_instruction): Delete.
979 (mips_gdbarch_init): Do not append mdebug sniffers.
980 (PROC_LOW_ADDR, PROC_HIGH_ADDR, PROC_FRAME_OFFSET)
981 (PROC_FRAME_REG, PROC_FRAME_ADJUST, PROC_REG_MASK)
982 (PROC_FREG_MASK, PROC_REG_OFFSET, PROC_FREG_OFFSET, PROC_PC_REG)
983 (PROC_SYMBOL, _PROC_MAGIC_): Delete.
984 * Makefile.in: Update dependencies.
985
986 * mips-tdep.h (mips_abi_regsize): Declare.
987 * mips-tdep.c (mips_abi_regsize): Make non-static.
988
989 * mips-tdep.c (gdb_print_insn_mips): Simplify.
990 (make_mips16_addr): Delete.
991
992 2004-10-30 Mark Kettenis <kettenis@gnu.org>
993
994 * i386-sol2-nat.c: New file.
995 * Makefile.in (ALLDEPFILES): Add i386-sol2-nat.c and
996 i386-sol2-tdep.c.
997 (i386-sol2-nat.o): Update dependencies.
998 * config/i386/i386sol2.mh (NATDEPFILES): Remove i386v4.o, add
999 i386-sol2-nat.o.
1000
1001 2004-10-30 Andrew Cagney <cagney@gnu.org>
1002
1003 Total breakage identified by Joel Brobecker.
1004 * mips-tdep.c (after_prologue): Delete.
1005 (mips_skip_prologue): Use skip_prologue_using_sal.
1006 (heuristic_proc_desc): Delete, unused.
1007
1008 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1009
1010 * procfs.c (proc_get_gregs, proc_get_fpregs, proc_set_gregs)
1011 (proc_set_fpregs, procfs_fetch_registers, procfs_store_registers):
1012 Cleanup coding style.
1013
1014 2004-10-30 Andrew Cagney <cagney@gnu.org>
1015
1016 * mips-tdep.h (mips_pc_is_mips16): Declare.
1017 * mips-tdep.c (mips_pc_is_mips16): Rename pc_is_mips16, make
1018 non-static. Update calls.
1019
1020 * cli/cli-decode.c (add_setshow_enum_cmd): New function.
1021 * command.h (add_setshow_enum_cmd): Declare.
1022 * mips-tdep.c (_initialize_mips_tdep): Use add_setshow_enum_cmd.
1023
1024 * mips-tdep.c (_initialize_mips_tdep): Use
1025 add_setshow_zinteger_cmd.
1026
1027 * mips-tdep.c (mips_eabi_extract_return_value)
1028 (mips_o64_extract_return_value, mips_o64_store_return_value)
1029 (return_value_location, mips_eabi_reg_struct_has_addr)
1030 (mips_eabi_use_struct_convention)
1031 (mips_eabi_store_return_value): Delete.
1032 (mips_eabi_store_return_value): New function.
1033 (mips_eabi_return_value): New function.
1034 (mips_gdbarch_init): For O64 and EABI, delete
1035 extract_return_value, store_return_value, use_struct_convention
1036 and reg_struct_has_addr, add return_value.
1037
1038 * mips-tdep.c (read_signed_register): Use
1039 regcache_cooked_read_signed.
1040
1041 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1042
1043 * mipsread.c: Cleanup coding style.
1044 (mipscoff_new_init, mipscoff_symfile_init, mipscoff_symfile_read)
1045 (mipscoff_symfile_finish): Remove prototypes.
1046
1047 2004-10-29 Mark Kettenis <kettenis@gnu.org>
1048
1049 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
1050 (mips_mdebug_frame_cache, mips16_scan_prologue)
1051 (mips32_scan_prologue, mips_stub_frame_cache)
1052 (heuristic_proc_start, heuristic_proc_desc)
1053 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
1054 (mips_n32n64_return_value, mips_o32_push_dummy_call)
1055 (mips_o32_return_value, mips_o64_push_dummy_call)
1056 (mips_step_skips_delay, mips_skip_trampoline_code)
1057 (mips_gdbarch_init): Use MIPS_A0_REGNUM instead of A0_REGNUM,
1058 MIPS_RA_REGNUM instead of RA_REGNUM, MIPS_T9_REGNUM instead of
1059 T9_REGNUM, MIPS_V0_REGNUM instead of V0_REGNUM, MIPS_ZERO_REGNUM
1060 instead of ZERO_REGNUM, MIPS32_SIZE_INSN instead of MIPS_INSTLEN
1061 and MIPS16_INSN_SIZE instead of MIPS16_INSTLEN.
1062 (mips_dump_tdep): Don't print A0_REGNUM, RA_REGNUM,
1063 T9_REGNUM, V0_REGNUM, ZERO_REGNUM, MIPS_INSTLEN and
1064 MIPS16_INSTLEN. Use MIPS_A0_REGNUM instead of A0_REGNUM.
1065 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
1066 (mips_linux_n32n64_sigframe_init): Use MIPS_ZERO_REGNUM instead of
1067 ZERO_REGNUM.
1068 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
1069 (mipsnbsd_cannot_store_register): Use MIPS_ZERO_REGNUM instead of
1070 ZERO_REGNUM.
1071 (mipsnbsd_get_longjmp_target): Use MIPS_A0_REGNUM instead of
1072 A0_REGNUM.
1073 * mipsnbsd-nat.c: Include "mips-tdep.h".
1074 (getregs_supplies): Use MIPS_ZERO_REGNUM instead of ZERO_REGNUM.
1075 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
1076
1077 2004-10-29 Andrew Cagney <cagney@gnu.org>
1078
1079 * stack.c (parse_frame_specification_1): New function based on
1080 parse_frame_specification. Add message and selected_frame_p
1081 paramters. Truely always return non-NULL.
1082 (parse_frame_specification): Call parse_frame_specification_1.
1083 (frame_info): Update. Eliminate target_has_stack check.
1084 (select_frame_command): Update.
1085
1086 2004-10-29 Andrew Cagney <cagney@gnu.org>
1087
1088 * frame.h (get_selected_frame): Add message parameter.
1089 * frame.c (get_selected_frame): Add and use message parameter.
1090 * stack.c (current_frame_command, return_command, locals_info)
1091 (catch_info, args_info, up_silently_base, down_silently_base): Use
1092 get_selected_frame with an explicit message.
1093 * thread.c, stack.c, sh-tdep.c, sh64-tdep.c: Update.
1094 * remote-rdp.c, remote-mips.c, remote-e7000.c: Update.
1095 * ocd.c, mi/mi-main.c, mi/mi-cmd-stack.c: Update.
1096 * infrun.c, inflow.c, infcmd.c, frame.c: Update.
1097 * findvar.c, eval.c, corelow.c, bsd-kvm.c: Update.
1098 * breakpoint.c: Update.
1099
1100 2004-10-29 Andrew Cagney <cagney@gnu.org>
1101
1102 * trad-frame.c (trad_frame_get_prev_register): Use
1103 frame_unwind_register instead of frame_register_unwind, do not
1104 recurse the register's location.
1105 * xstormy16-tdep.c (xstormy16_frame_prev_register):
1106 * sparc-tdep.c (sparc32_frame_prev_register): Ditto.
1107 * sparc64-tdep.c (sparc64_frame_prev_register): Ditto.
1108 * sh-tdep.c (sh_frame_prev_register): Ditto.
1109 * m68k-tdep.c (m68k_frame_prev_register): Ditto.
1110 * i386-tdep.c (i386_frame_prev_register): Ditto.
1111 * dwarf2-frame.c (dwarf2_frame_prev_register): Ditto.
1112 * amd64-tdep.c (amd64_frame_prev_register): Ditto.
1113
1114 2004-10-28 Mark Kettenis <kettenis@jive.nl>
1115
1116 * proc-events.c: Fix several coding-style issues. Consistently
1117 use #ifdef instead of #if defined().
1118 (proc_prettyfprint_fault, proc_prettyfprint_faultset): Use
1119 ARRAY_SIZE.
1120 (_initialize_proc_events): New prototype.
1121
1122 * proc-why.c: Fix several coding-style issues.
1123 (proc_prettyfprint_why): Use ARRAY_SIZE.
1124
1125 2004-10-27 Jim Blandy <jimb@redhat.com>
1126
1127 * remote.c (fetch_register_using_p): Construct 'p' packet in a
1128 manner independent of the host byte order.
1129
1130 2004-10-27 Mark Kettenis <kettenis@gnu.org>
1131
1132 * mips-tdep.c (id_delayed): Remove prototype.
1133
1134 2004-10-26 Mark Kettenis <kettenis@gnu.org>
1135
1136 * mips-tdep.h: Add MIPS_ZERO_REGNUM, MIPS_AT_REGNUM,
1137 MIPS_V0_REGNUM. MIPS_A0_REGNUM, MIPS_T9_REGNUM and MIPS_RA_REGNUM
1138 to enum with register numbers.
1139 (enum mips_insn_size): New enum.
1140
1141 2004-10-26 Andrew Cagney <cagney@gnu.org>
1142
1143 * config/mips/tm-linux.h: Delete #undef SKIP_TRAMPOLINE_CODE.
1144 * mips-tdep.c (mips_skip_trampoline_code): Rename mips_skip_stub.
1145 (mips_gdbarch_init): Update.
1146 (mips_dump_tdep): Do not print SKIP_TRAMPOLINE_CODE.
1147
1148 * config/arm/tm-linux.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1149 * config/mips/tm-nbsd.h, config/mips/tm-linux.h: Delete #undef
1150 IN_SOLIB_RETURN_TRAMPOLINE.
1151 * mips-tdep.c (mips_dump_tdep): Do not print
1152 IN_SOLIB_RETURN_TRAMPOLINE.
1153 (mips_in_solib_return_trampoline): Rename mips_in_return_stub.
1154 (mips_gdbarch_init): Update.
1155
1156 * mips-tdep.h (mips_software_single_step): Move to here ...
1157 * config/mips/tm-mips.h: ... from here.
1158 * config/mips/tm-linux.h (SOFTWARE_SINGLE_STEP_P)
1159 (SOFTWARE_SINGLE_STEP): Delete.
1160 * mips-linux-tdep.c (mips_linux_init_abi): Set software_single_step.
1161
1162 2004-10-25 Andrew Cagney <cagney@gnu.org>
1163
1164 * NEWS: Add Changes since GDB 6.3 section.
1165
1166 2004-10-23 Andreas Schwab <schwab@suse.de>
1167
1168 * ada-lang.c (grow_vect): Return the new array instead of
1169 expecting pointer to pointer to avoid violation of aliasing rules.
1170 * ada-lang.h (GROW_VECT): Adapt call to grow_vect.
1171
1172 2004-10-23 Ulrich Weigand <uweigand@de.ibm.com>
1173
1174 * s390-tdep.c (enum pv_boolean): Remove.
1175 (pv_is_array_ref): Remove.
1176 (s390_on_stack): Remove.
1177 (S390_NUM_SPILL_SLOTS): Remove.
1178 (struct s390_prologue_data): Remove members 'spill' and 'back_chain',
1179 add members 'gpr_slot', 'fpr_slot', and 'back_chain_saved_p'.
1180 (s390_store): Track all stores of orginal incoming registers to the
1181 stack constant offsets relative to the CFA, instead of only tracking
1182 stores into specific spill slots.
1183 (s390_load): Likewise.
1184 (s390_analyze_prologue): Adapt to struct s390_prologue_data changes.
1185 (s390_prologue_frame_unwind_cache): Likewise. Only track registers
1186 defined as call-saved by the ABI.
1187 (s390_push_dummy_call): Use bottom of dummy call argument save area
1188 as return value, not the top. Do not store to the called function's
1189 register save area.
1190 (s390_unwind_dummy_id): Adapt accordingly.
1191
1192 2004-10-23 Andrew Cagney <cagney@gnu.org>
1193
1194 * objfiles.h (struct objfile): Rename obj_private to
1195 deprecated_obj_private, sym_private to deprecated_sym_private, and
1196 sym_stab_info to deprecated_sym_stab_info.
1197 * gdb-stabs.h: Update.
1198 * elfread.c: Update.
1199 * dbxread.c: Update.
1200 * coffread.c: Update.
1201 * xcoffread.c: Update.
1202 * symfile.c: Update.
1203 * somread.c: Update.
1204 * nlmread.c: Update.
1205 * mdebugread.c: Update.
1206 * hpread.c: Update.
1207 * coffread.c: Update.
1208
1209 2004-10-23 Mark Kettenis <kettenis@gnu.org>
1210
1211 * mips64obsd-nat.c, mips64obsd-tdep.c: New files.
1212 * configure.host: Add mips64*-*-openbsd*.
1213 * configure.tgt: Add mips64*-*-openbsd*.
1214 * Makefile.in (ALLDEPFILES): Add mips64obsd-nat.o,
1215 mips64obsd-tdep.c.
1216 (mips64obsd-nat.o, mips64obsd-tdep.o): New dependecies.
1217 * config/mips/obsd64.mh, config/mips/obsd64.mt: New files.
1218
1219 2004-10-21 Joel Brobecker <brobecker@gnat.com>
1220
1221 * symtab.c (symbol_search_name): Minor reformatting.
1222
1223 2004-10-20 Joel Brobecker <brobecker@gnat.com>
1224
1225 * symtab.h: Fix typo in comment.
1226
1227 2004-10-19 Mark Kettenis <kettenis@gnu.org>
1228
1229 * dwarf2read.c (struct comp_unit_head): Fix coding style.
1230 (dwarf_decode_line_header): Likewise.
1231
1232 2004-10-19 Michael Chastain <mec.gnu@mindspring.com>
1233
1234 * NEWS: GDB works with GCC -feliminate-dwarf2-dups.
1235
1236 2004-10-19 Andrew Cagney <cagney@gnu.org>
1237
1238 GDB 6.3 branch created.
1239 * version.in: Bump to version 6.3.50_2004-10-19-cvs.
1240
1241 2004-10-15 Joel Brobecker <brobecker@gnat.com>
1242
1243 * dwarf2read.c (set_cu_language): Set language to Ada for
1244 DW_LANG_Ada83 and DW_LANG_Ada95.
1245
1246 2004-10-15 Michael Chastain <mec.gnu@mindspring.com>
1247
1248 From Andreas Schwab <schwab@suse.de>:
1249 * Makefile.in (.y.c, .l.c.): Fix the substitutions for
1250 for xmalloc and xrealloc.
1251
1252 2004-10-15 Andrew Cagney <cagney@gnu.org>
1253
1254 * ada-exp.y, ada-lex.l: Use xmalloc and xrealloc through out.
1255 * inf-ptrace.c: Include "gdb_wait.h" instead of <wait.h>.
1256 * Makefile.in (.y.c, .l.c): Don't replace xmalloc with xxmalloc.
1257 Update dependencies.
1258
1259 2004-10-15 Paul Hilfinger <Hilfinger@gnat.com>
1260
1261 * ada-lang.c (ada_lookup_symbol): Correct comment.
1262 (ada_evaluate_subexp): Change error message for
1263 OP_FUNCALL case so as not to indicate an internal error.
1264
1265 2004-10-15 Joel Brobecker <brobecker@gnat.com>
1266
1267 Committed by Paul Hilfinger.
1268 * ada-lang.c (ada_template_to_fixed_record_type_1): Detect bogus
1269 type sizes in XVE/XVU types, and emit a warning when that happens,
1270 instead of rounding up the size of the resulting type.
1271 Some minor reformatting.
1272 (ada_is_aligner_type): Do not consider a type as an aligner type
1273 if there is a corresponding XVS type as well.
1274 (ada_evaluate_subexp): For TERNOP_SLICE, handle cases where we
1275 have several levels of pointer indirection to the array.
1276
1277 2004-10-15 Jerome Guitton <guitton@gnat.com>
1278
1279 Committed by Paul Hilfinger.
1280 * ada-lang.c (check_size): New function.
1281 (coerce_unspec_val_to_type): call check_size to make sure
1282 that the object size is reasonable.
1283 (ada_evaluate_subexp): in UNOP_IND: Ditto. In TERNOP_SLICE:
1284 Implements the case when we get a reference when we evaluate
1285 the expression of one of the bounds of the slice.
1286 (ada_value_struct_elt): when a packed array field is
1287 a reference, use ada_coerce_ref to dereference it; use
1288 ada_value_ind only if it is a pointer.
1289
1290 2004-10-15 Joel Brobecker <brobecker@gnat.com>
1291
1292 * mips-tdep.c (mips32_scan_prologue): Move the implementation up
1293 a bit to avoid the necessity of an advance declaration. Remove
1294 declaration.
1295 (set_reg_offset): Move implemenation up.
1296 (mips16_get_imm): Likewise.
1297 (mips16_scan_prologue): Likewise.
1298 (reset_saved_regs): Likewise.
1299 (mips32_scan_prologue): Likewise.
1300
1301 2004-10-14 Joel Brobecker <brobecker@gnat.com>
1302
1303 * mips-tdep.c (mips32_scan_prologue): Add advance declaration.
1304 Remove sp as a parameter, compute it internally instead. Move
1305 prologue scanning limit from heuristic_proc_desc to here.
1306 (mips16_scan_prologue): Likewise.
1307 (mips_insn16_frame_cache): Replace call to heuristic_proc_desc
1308 by call to mips16_scan_prologue.
1309 (mips_insn32_frame_cache): Replace call to heuristic_proc_desc
1310 by call to mips32_scan_prologue.
1311 (heuristic_proc_desc): Remove code that's no longer necessary.
1312 Update calls to mips16_scan_prologue and mips32_scan_prologue.
1313 (mips_skip_prologue): Update calls to mips16_scan_prologue
1314 and mips32_scan_prologue.
1315
1316 2004-10-14 Joel Brobecker <brobecker@gnat.com>
1317
1318 * mips-tdep.c (mips16_scan_prologue): Merge code from
1319 mips16_skip_prologue. Now return the address of the first
1320 instruction past the function prologue.
1321 (mips16_skip_prologue): Remove, no longer necessary.
1322 (mips_skip_prologue): Replace call to mips16_skip_prologue
1323 by call to mips16_scan_prologue.
1324
1325 2004-10-14 Joel Brobecker <brobecker@gnat.com>
1326
1327 * mips-tdep.c (mips32_scan_prologue): Merge code from
1328 mips32_skip_prologue. Now return the address of the first
1329 instruction past the function prologue.
1330 (mips32_skip_prologue): Remove. No longer necessary.
1331 (mips16_skip_prologue): Add parameter end_pc instead of
1332 computing it.
1333 (mips_skip_prologue): Compute the upper limit for the
1334 prologue scanning. Update call to mips16_skip_prologue.
1335 Replace call to mips32_skip_prologue by call to
1336 mips32_scan_prologue.
1337
1338 2004-10-14 Mark Kettenis <kettenis@gnu.org>
1339
1340 * hppa-tdep.c (hppa_frame_cache): Add support for OpenBSD and
1341 NetBSD system call stubs that store %rp in the ERP slot of the
1342 stack frame.
1343
1344 * source.c: Always define O_BINARY to 0 if not defined already.
1345 (openp): Unconditionally use O_BINARY.
1346
1347 * top.c (gdb_readline): Always accept "\r\n" as a line-ending.
1348 * event-top.c (gdb_readline2): Likewise.
1349
1350 2004-10-14 Orjan Friberg <orjanf@axis.com>
1351
1352 * cris-tdep.c (_initialize_cris_tdep): Re-add call to
1353 deprecated_add_core_fns which was removed by mistake.
1354
1355 2004-10-13 Kevin Buettner <kevinb@redhat.com>
1356
1357 * ia64-linux-nat.c (fill_gregset, fill_fpregset): Replace
1358 references to deprecated_registers[] with equivalent code.
1359
1360 2004-10-13 Kevin Buettner <kevinb@redhat.com>
1361
1362 * rs6000-tdep.c (rs6000_push_dummy_call): Replace references to
1363 ``deprecated_registers'' with equivalent code. Use gdb_assert()
1364 instead of explicit test and print statement.
1365
1366 2004-10-12 Mark Kettenis <kettenis@gnu.org>
1367
1368 * sparc-nat.c: Include "inf-ptrace.h".
1369 (sparc_target): New function.
1370 * sparc-nat.h: Update copyright year.
1371 (sparc_target): New prototype.
1372 * sparcnbsd-nat.c: Don't include "gdbcore.h", include "target.h".
1373 (_initialize_sparcnbsd_nat): Construct and add target vector.
1374 * sparc64nbsd-nat.c: Include "target.h".
1375 (_initialize_sparc64nbsd_nat): Construct and add target vector.
1376 * Makefile.in (sparc-nat.o, sparcnbsd-nat.o, sparc64nbsd-nat.o):
1377 Update dependencies.
1378 * config/sparc/nbsd64.mh (NATDEPFILES): Remove infptrace.o and
1379 inftarg.o, add inf-ptrace.o.
1380 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1381 inftarg.o, add inf-ptrace.o and bsd-kvm.o.
1382 (NAT_FILE): Set to nm-bsd.h.
1383 (LOADLIBES): New variable.
1384 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
1385 infarg.o, add inf-ptrace.o.
1386 * config/sparc/nm-nbsdaout.h: Remove file.
1387 * config/sparc/fbsd.mh (NATDEPFILES): Add inf-ptrace.o.
1388 * config/sparc/linux.mh (NATDEPFILES): Add inf-ptrace.o.
1389 * config/sparc/linux64.mh (NATDEPFILES): Add inf-ptrace.o.
1390
1391 * defs.h [!FOPEN_RB]: Include "fopen-bin.h" instead of
1392 "fopen-same.h". Update comment.
1393
1394 2004-10-11 Mark Kettenis <kettenis@gnu.org>
1395
1396 * i386gnu-nat.c: Include "gdb_string.h".
1397 (fetch_fpregs): Use i387_supply_fxsave to fill the floating-point
1398 registers when the floating-point state isn't initialized.
1399 * Makefile.in (i386gnu-nat.o): Update dependencies.
1400
1401 2004-10-11 David Anderson <davea@sgi.com>
1402
1403 * regcache.c (regcache_raw_read): Comment was missing "to".
1404 Extraneous ' removed.
1405 * gdb_thread_db.h (struct td_thrinfo): ti_lid field
1406 comment now describes use.
1407
1408 2004-10-11 Orjan Friberg <orjanf@axis.com>
1409
1410 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start)
1411 (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
1412 (cris_sigtramp_frame_this_id, cris_sigtramp_frame_prev_register)
1413 (cris_sigtramp_frame_sniffer): New functions.
1414 (cris_gdbarch_init): Hook in signal trampoline unwinder.
1415 (cris_dwarf2_reg_to_regnum, cris_dwarf2_frame_init_reg): New functions.
1416 (cris_gdbarch_init): Hook in Dwarf-2 unwinder.
1417 (struct gdbarch_tdep, set_cris_dwarf2_cfi, cris_dump_tdep)
1418 (cris_gdbarch_init, _initialize_cris_tdep): Add CRIS Dwarf-2 CFI usage
1419 command.
1420 (cris_version_update): Remove, replace with ...
1421 (set_cris_version): New function.
1422 (struct gdbarch_tdep, cris_mode, cris_mode_update)
1423 (cris_cannot_store_register, cris_dump_tdep, cris_gdbarch_init)
1424 (_initialize_cris_tdep): Remove CRIS mode command.
1425 (cris_fpless_backtrace, _initialize_cris_tdep): Remove
1426 cris-fpless-backtrace command.
1427 (cris_scan_prologue): Fix prologue scanning limit.
1428 (cris_register_type): Update to reflect actual registers.
1429 (cris_register_bytes_ok) Remove.
1430 (cris_gdbarch_init): Remove support for CRIS v8 and v9.
1431 Remove set_gdbarch_deprecated_register_size,
1432 set_gdbarch_deprecated_register_byte, set_gdbarch_register_bytes_ok.
1433
1434 2004-10-10 Andrew Cagney <cagney@gnu.org>
1435
1436 * ada-lang.c (lim_warning): Add ATTR_FORMAT prototype and FIXME
1437 comment.
1438
1439 2004-10-10 Joel Brobecker <brobecker@gnat.com>
1440
1441 * mips-tdep.c (mips16_scan_prologue): Remove redundant code.
1442
1443 2004-10-10 Joel Brobecker <brobecker@gnat.com>
1444
1445 * mips-tdep.c (mips16_scan_prologue): Renames
1446 mips16_heuristic_proc_desc. Update comment.
1447 (mips32_scan_prologue): Renames mips32_heuristic_proc_desc.
1448 (heuristic_proc_desc): Update calls to the 2 functions above.
1449
1450 2004-10-10 Joel Brobecker <brobecker@gnat.com>
1451
1452 * mips-tdep.c (mips_insn16_frame_cache): Remove unused variables.
1453 Update comments. Also immediately return empty cache when the start
1454 address of our function could not be found.
1455 (mips_insn32_frame_cache): Likewise.
1456
1457 2004-10-10 Joel Brobecker <brobecker@gnat.com>
1458
1459 * mips-tdep.c (mips16_decode_reg_save): Delete, no longer used.
1460 (mips_insn16_frame_cache): Pass frame cache in call to
1461 heuristic_proc_desc. Move some code to mips16_heuristic_proc_desc.
1462 Remove code that became redundant as a consequence.
1463 (mips32_heuristic_proc_desc): No longer compute a fake
1464 procedure descriptor. Compute the full frame cache instead.
1465 Some minor comment reformatting.
1466
1467 2004-10-10 Jim Blandy <jimb@redhat.com>
1468
1469 * MAINTAINERS (generic symtabs, dwarf readers, elf reader, stabs
1470 reader, tracing bytecode stuff): Remove self.
1471
1472 2004-10-10 Mark Kettenis <kettenis@gnu.org>
1473
1474 * sparc64-linux-tdep.c: Update copyright year. Don't include
1475 "solib-svr4.h".
1476 (sparc64_linux_svr4_fetch_link_map_offsets): Remove function.
1477 (sparc64_linux_init_abi): Don't set solib_svr4_link_map_offsets.
1478 * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
1479
1480 * sparc-linux-tdep.c: Update copyright year.
1481 (sparc_linux_sigtramp_start): Change first argument from CORE_ADDR
1482 to struct frame_info *. Use safe_frame_unwind_memory instead of
1483 deprecated_read_memory_nobpt.
1484 (sparc32_linux_sigtramp_start, sparc32_linux_rt_sigtramp_start):
1485 Change argumen from CORE_ADDR to struct frame_info *. Adjust for
1486 changed signature of sparc_linux_sigtramp_start.
1487 (sparc32_linux_pc_in_sigtramp): Remove function.
1488 (sparc32_linux_sigtramp_p): New function.
1489 (sparc32_linux_sigtramp_frame_sniffer): Use
1490 sparc32_linux_sigtramp_p instead of sparc32_linux_pc_in_sigtramp.
1491
1492 * sparc-linux-tdep.c (sparc32_linux_svr4_fetch_link_map_offsets):
1493 Remove function.
1494 (sparc32_linux_init_abi): Don't set solib_svr4_link_map_offsets.
1495
1496 * ada-lang.c (lim_warning): Re-implement as a varargs function.
1497 (decode_packed_array_type, value_subscript_packed)
1498 (ada_evaluate_subexp, to_fixed_range_type): Remove redundant
1499 argument in call to lim_warning.
1500
1501 * configure.in: Really disable the TUI if an enhanced curses
1502 library isn't found.
1503 * configure: Regenerate.
1504
1505 2004-10-09 Mark Kettenis <kettenis@gnu.org>
1506
1507 * config/i386/nbsdaout.mh (NAT_FILE): Set to solib.h.
1508 * config/i386/nbsdelf.mh (NAT_FILE): Set to solib.h.
1509 * config/i386/nm-nbsdaout.h: Remove file.
1510 * config/i386/nm-fbsd.h (link_object, lo_name, lo_library)
1511 (lo_unused, lo_major, lo_minor, lo_next, link_map, lm_addr)
1512 (lm_name, lm_next, lm_lop, lm_lob, lm_rwt, lm_ld, lm_lpd)
1513 (link_dynamic_2, ld_loaded, ld_need, ld_rules, ld_got, ld_plt)
1514 (ld_rel, ld_hash, ld_stab, ld_stab_hash, ld_buckets, ld_symbols)
1515 (ld_symb_size, ld_text, ld_plt_sz, rtc_symb, rtc_sp, rtc_next)
1516 (ld_debug, ldd_version, ldd_in_debugger, ldd_sym_loaded)
1517 (ldd_bp_addr, ldd_bp_inst, ldd_cp, link_dynamic, ld_version)
1518 (ldd, ld_un, ld_2): Remove defines.
1519 * config/i386/nm-obsd.h: Likewise.
1520
1521 2004-10-09 Paul Hilfinger <hilfingr@nile.gnat.com>
1522
1523 * ada-lex.l: Remove useless rule whose right-context clause
1524 causes unreferenced static function warning for yyrealloc.
1525 (ada_flex_use): Remove the artificial reference to yyrealloc.
1526
1527 2004-10-08 Andrew Cagney <cagney@gnu.org>
1528
1529 * target.h (struct target_ops): Rename to_xfer_memory to
1530 deprecated_xfer_memory.
1531 * target.c: Update.
1532 (deprecated_debug_xfer_memory): Rename debug_to_xfer_memory.
1533 * wince.c: Update.
1534 * win32-nat.c: Update.
1535 * v850ice.c: Update.
1536 * uw-thread.c: Update.
1537 * thread-db.c: Update.
1538 * sol-thread.c: Update.
1539 * remote.c: Update.
1540 * remote-vx.c: Update.
1541 * remote-st.c: Update.
1542 * remote-sim.c: Update.
1543 * remote-sds.c: Update.
1544 * remote-rdp.c: Update.
1545 * remote-rdi.c: Update.
1546 * remote-mips.c: Update.
1547 * remote-m32r-sdi.c: Update.
1548 * remote-e7000.c: Update.
1549 * procfs.c: Update.
1550 * ppc-bdm.c: Update.
1551 * nto-procfs.c: Update.
1552 * monitor.c: Update.
1553 * linux-nat.c: Update.
1554 * inftarg.c: Update.
1555 * hpux-thread.c: Update.
1556 * go32-nat.c: Update.
1557 * gnu-nat.c: Update.
1558 * exec.c: Update.
1559 * corelow.c: Update.
1560 * bsd-kvm.c: Update.
1561 * aix-thread.c: Update.
1562
1563 2004-10-08 Andrew Cagney <cagney@gnu.org>
1564
1565 * target.c (debug_target): Move to near start of file.
1566 (target_stopped_data_address_p): Re-org logic, add casts.
1567
1568 2004-10-02 Mark Kettenis <kettenis@gnu.org>
1569
1570 * solib-sunos.c [HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS] (link_map)
1571 (lm_addr, lm_name, lm_next, link_dynamic_2, ld_loaded, rtc_symb)
1572 (rtc_sp, rtc_next, ld_debug, ldd_in_debugger, ldd_bp_addr)
1573 (ldd_bp_inst, ldd_cp, link_dynamic, ld_version, ldd, ld_un, ld_2):
1574 New defines.
1575
1576 2004-10-08 Jeff Johnston <jjohnstn@redhat.com>
1577
1578 * target.h (to_stopped_data_address): Change prototype to
1579 take a CORE_ADDR pointer and return an int.
1580 * target.c (update_current_target): Change to_stopped_data_address
1581 to match new prototype.
1582 (debug_to_stopped_data_address): Change appropriately.
1583 * breakpoint.c (bpstat_stop_status): Change call to
1584 target_stopped_data_address to use new prototype.
1585 * frv-tdep.c (frv_have_stopped_data_address): New function.
1586 (frv_stopped_data_address): Change to new prototype and
1587 functionality.
1588 * ia64-linux-nat.c (ia64_stopped_data_address): Change to new
1589 prototype and functionality.
1590 (ia64_stopped_by_watchpoint): New function.
1591 * i386-nat.c (i386_stopped_data_address): Change to new
1592 prototype and functionality.
1593 (i386_stopped_by_watchpoint): New function.
1594 * remote.c (remote_stopped_data_address): Change to new prototype
1595 and functionality.
1596 * remote-m32r-sdi.c (m32r_stopped_data_address): Ditto.
1597 * config/frv/tm-frv.h (frv_stopped_data_address): Change prototype.
1598 (STOPPED_BY_WATCHPOINT): Change to use frv_have_stopped_data_address.
1599 * config/i386/nm-i386.h (STOPPED_BY_WATCHPOINT): Change to use
1600 new i386_stopped_by_watchpoint function.
1601 (i386_stopped_by_watchpoint): New prototype.
1602 (i386_stoppped_data_address): Change to new prototype.
1603 * config/ia64/nm-linux.h (STOPPED_BY_WATCHPOINT): Change to use
1604 new ia64_stopped_by_watchpoint function.
1605 (ia64_stopped_by_watchpoint): New prototype.
1606 (ia64_stopped_data_address): Ditto.
1607
1608 2004-10-08 Paul Hilfinger <Hilfinger@gnat.com>
1609
1610 * ada-typeprint.c (ada_print_type): Use int_string for printing
1611 modulus of modular type.
1612 * ada-lang.h (ada_modulus): Change return type to unsigned.
1613 * ada-lang.c (ada_language_arch_info): Correct type of
1614 string_char_type.
1615 (ada_modulus): Return unsigned result.
1616 (ada_lookup_symbol): Remove user disambiguation and modify comment
1617 accordingly.
1618
1619 2004-10-08 Eric Botcazou <ebotcazou@act-europe.fr>
1620
1621 Committed by Paul Hilfinger.
1622 * ada-lang.c (decode_packed_array): On big-endian targets,
1623 left-justify the value if it comes with a modular type.
1624
1625 2004-10-08 Joel Brobecker <brobecker@gnat.com>
1626
1627 Committed by Paul Hilfinger.
1628 * ada-lang.c (template_to_static_fixed_type): Fix a small typo.
1629 (is_name_suffix): Add support for "___JM" suffixes.
1630 (ada_check_typedef): Renames ada_completed_type.
1631 Update all users of CHECK_TYPEDEF, check_typedef, and
1632 ada_complete_type to call ada_check_typedef.
1633 * ada-typeprint.c: Likewise.
1634 * ada-valprint.c: Likewise.
1635
1636 2004-10-08 Corinna Vinschen <vinschen@redhat.com>
1637
1638 * infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
1639
1640 2004-10-08 Nick Roberts <nickrob@snap.net.nz>
1641
1642 * MAINTAINERS: Update e-mail address.
1643
1644 2004-10-07 Daniel Jacobowitz <dan@debian.org>
1645
1646 From Maciej W. Rozycki <macro@mips.com>:
1647 * mips-tdep.c (mips32_next_pc): Check the register's contents,
1648 not its number for BLEZ/BLEZL and BGTZ/BGTZL.
1649
1650 2004-10-07 Kei Sakamoto <sakamoto.kei@renesas.com>
1651
1652 * m32r-tdep.c (decode_prologue): Support functions written
1653 in assembler language. Recognize trap instructions as the
1654 end of prologue.
1655 (m32r_frame_unwind_cache): Ditto.
1656 (m32r_skip_prologue): Extend search limit. Quit analyzing
1657 prologue if pc's location is not readable.
1658
1659 2004-10-06 Paul N. Hilfinger <Hilfinger@gnat.com>
1660
1661 * Makefile.in (.l.c): Do conversions of names of alloc and free
1662 functions that are done for .y.c files, plus special one
1663 for yy_flex_realloc. Also, correct missing-file tests here.
1664 * ada-lex.l (malloc, free): Remove macros.
1665 (resize_tempbuf): Use "realloc"; rely on sed changes to convert to
1666 xrealloc.
1667 (ada_flex_use): Dummy definition to remove warnings about unused
1668 functions.
1669 * ada-exp.y (dummy_string_to_ada_operator): Temporary definition
1670 to suppress warning.
1671
1672 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1673
1674 * sh-tdep.c (sh_return_value_nofpu): New function, implementing
1675 RETURN_VALUE.
1676 (sh_return_value_fpu): Ditto for CPUs with FPU.
1677 (sh_gdbarch_init): Remove STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
1678 RETURN_VALUE_ON_STACK and USE_STRUCT_CONVENTION throughout.
1679 Install sh_return_value_nofpu resp. sh_return_value_fpu as
1680 RETURN_VALUE functions.
1681
1682 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1683
1684 * sh-tdep.c (sh_pseudo_register_read): Add PSEUDO_BANK_REGNUM handling.
1685 (sh_pseudo_register_write): Ditto.
1686
1687 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1688
1689 * sh-tdep.c (IS_MACL_STS): New define.
1690 (IS_MOVI20): Ditto.
1691 (IS_MACL_LDS): Ditto.
1692 (sh_analyze_prologue): Recognize STS.L MACL,@-r15 and MOVI20
1693 instructions in prologue.
1694 (sh_in_function_epilogue_p): Recognize LDS.L @r15+,MACL and MOVI20
1695 instructions in epilogue.
1696
1697 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1698
1699 * sh-tdep.c (SH_NUM_REGS): Define as 67.
1700 (sh_sh_register_name): Add eight empty register names.
1701 (sh_sh3_register_name): Ditto.
1702 (sh_sh3e_register_name): Ditto.
1703 (sh_sh2e_register_name): Ditto.
1704 (sh_sh2a_register_name): New function, defining SH2A register set.
1705 (sh_sh2a_nofpu_register_name): New function, defining SH2A register set
1706 in nofpu case.
1707 (sh_sh_dsp_register_name): Add eight empty register names.
1708 (sh_sh3_dsp_register_name): Ditto.
1709 (sh_sh4_register_name): Ditto.
1710 (sh_sh4_nofpu_register_name): Ditto.
1711 (sh_sh4al_dsp_register_name): Ditto.
1712 (sh2a_show_regs): New function.
1713 (sh2a_nofpu_show_regs): New function.
1714 (sh_sh2a_register_type): New function.
1715 (do_bank_register_info): New function.
1716 (sh_print_pseudo_register): Call do_bank_register_info.
1717 Call sh_print_pseudo_register for valid "bank" register.
1718 (sh_sh2a_register_sim_regno): New function.
1719 (sh_gdbarch_init): Add bfd_mach_sh2a and bfd_mach_sh2a_nofpu handling.
1720 Increment pseudo register count by one for all sh variants with
1721 pseudo registers to accomodate pseudo bank register.
1722 * sh-tdep.h: Add register numbers for R0_BANK0_REGNUM, MACHB_REGNUM,
1723 IVNB_REGNUM, PRB_REGNUM, GBRB_REGNUM, MACLB_REGNUM, BANK_REGNUM,
1724 IBCR_REGNUM, IBNR_REGNUM, TBR_REGNUM and PSEUDO_BANK_REGNUM.
1725 Increment pseudo register numbers.
1726
1727 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1728
1729 * dwarf2read.c (read_subroutine_type): Call make_function_type
1730 instead of lookup_function_type.
1731
1732 2004-10-05 Jim Blandy <jimb@redhat.com>
1733
1734 * linux-nat.c (_initialize_linux_nat): Rename child_ops.
1735 (Previous change missed some uses.)
1736
1737 2004-10-05 Andrew Cagney <cagney@gnu.org>
1738
1739 * target.h (deprecated_child_ops): Rename child_ops.
1740 * wince.c: Update copyright. Rename child_ops.
1741 * win32-nat.c: Rename child_ops.
1742 * target.c: Rename child_ops.
1743 * rs6000-nat.c: Rename child_ops.
1744 * linux-nat.c: Rename child_ops.
1745 * infttrace.c: Rename child_ops.
1746 * inftarg.c: Rename child_ops.
1747 * infptrace.c: Rename child_ops.
1748 * hppah-nat.c: Update copyright. Rename child_ops.
1749 * hpux-thread.c: Update copyright. Rename child_ops.
1750
1751 2004-10-05 Daniel Jacobowitz <dan@debian.org>
1752
1753 * remote.c (remote_xfer_partial): Handle TARGET_OBJECT_MEMORY.
1754
1755 2004-10-05 Andrew Cagney <cagney@gnu.org>
1756
1757 * version.in: Bump to version 6.2.50_YYYY-MM-DD-cvs.
1758
1759 2004-10-05 Daniel Jacobowitz <dan@debian.org>
1760
1761 * dwarf2read.c (REF_HASH_SIZE): Move earlier.
1762 (die_ref_table): Remove.
1763 (struct dwarf2_cu): Add DIES, DEPENDENCIES, and DIE_REF_TABLE.
1764 (struct dwarf2_per_cu_data): Add PSYMTAB. Add a comment describing
1765 the usage of this type.
1766 (struct dwarf2_per_objfile): Update comment for ALL_COMP_UNITS.
1767 (struct dwarf2_pinfo, PST_PRIVATE, DWARF_INFO_OFFSET): Remove.
1768 (struct dwarf2_queue_item, dwarf2_queue, dwarf2_queue_tail): New.
1769 (dwarf2_create_include_psymtab): Update comment.
1770 (find_partial_die): Remove third argument. Remove unreachable call
1771 to error ().
1772 (dwarf2_find_containing_comp_unit): Update comments. Change one
1773 assertion to an error. Remove an unreachable error.
1774 (dwarf2_find_comp_unit): Update comments.
1775 (type_at_offset): Remove dead code.
1776 (make_cleanup_free_die_list, dwarf2_empty_hash_tables): Remove.
1777 (store_in_ref_table): Add CU argument.
1778 (follow_die_ref): Take DIE, attribute, and CU arguments. Handle
1779 inter-compilation-unit references.
1780 (load_full_comp_unit, process_full_comp_unit): New functions, based
1781 on psymtab_to_symtab_1.
1782 (psymtab_to_symtab_1): Use them.
1783 (dwarf2_add_dependence): New function.
1784 (dwarf2_build_psymtabs_hard): Set the psymtab in per_cu. Always create
1785 a per_cu structure, and save it in READ_PSYMTAB_PRIVATE.
1786 (partial_die_parent_scope, guess_structure_name): Update for changes
1787 to find_partial_die.
1788 (dwarf2_psymtab_to_symtab): Initialize dwarf2_per_objfile here.
1789 (queue_comp_unit, process_queue, dwarf2_release_queue): New.
1790 (read_comp_unit): Don't call dwarf2_empty_hash_tables.
1791 (read_die_and_children): Update call to store_in_ref_table.
1792 (do_free_die_list_cleanup): Remove.
1793 (fixup_partial_die): Update for changes to find_partial_die.
1794 (read_full_die): Handle queueing absolute references.
1795 (read_attribute_value): Use DW_ADDR for all DW_FORM_ref* forms.
1796 (dwarf2_attr, die_specification, die_type)
1797 (die_containing_type, dwarf2_extension): Update calls to
1798 follow_die_ref.
1799 (dump_die): Update DW_FORM_ref* handling.
1800 (dwarf2_get_ref_die_offset): Likewise.
1801 (free_one_comp_unit): Release the dies list.
1802 (dwarf2_mark_helper): New function.
1803 (dwarf2_mark): Use it.
1804
1805 2004-10-05 Mark Kettenis <kettenis@jive.nl>
1806
1807 * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
1808 when writing to memory.
1809
1810 2004-10-05 Kei Sakamoto <sakamoto.kei@renesas.com>
1811
1812 * m32r-tdep.c (m32r_use_struct_convention): Delete function.
1813 (m32r_extract_struct_value_address): Delete function.
1814 (m32r_return_value): New function.
1815 (m32r_gdbarch_init): Instead of store_return_value,
1816 extract_return_value, deprecated_extract_struct_value_address
1817 and deprecated_use_struct_convention, set return_value.
1818
1819 2004-10-03 Daniel Jacobowitz <dan@debian.org>
1820
1821 * dwarf2read.c (read_subrange_type): Add comment for variable
1822 sized arrays.
1823
1824 2004-10-03 Paul Hilfinger <hilfingr@nile.gnat.com>
1825
1826 * Makefile.in (.l.c): Modify rule for compatibility with recent
1827 versions of flex, and remove most command-line options.
1828 * ada-lex.l: Add %options line in place of -I -i and -s command-line
1829 options.
1830
1831 2004-10-02 Paul N. Hilfinger <Hilfinger@gnat.com>
1832
1833 Turn on initial Ada support (mainly expression evaluation).
1834
1835 * Makefile.in (SFILES): Remove ada-tasks.c.
1836 (HFILES_NO_SRCDIR): Add ada-lang.h.
1837 (COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
1838 (YYOBJ): Add ada-exp.o.
1839 (rule .l.c): Generalize to not mention ada.
1840 * symtab.c: Include ada-lang.h.
1841 (symbol_natural_name, symbol_demangled_name)
1842 (symbol_search_name): Add Ada case.
1843
1844 2004-10-01 Andrew Cagney <cagney@gnu.org>
1845
1846 * Makefile.in (COMMON_OBS): Add inf-child.o.
1847 * config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
1848 * config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
1849 * config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
1850 * config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
1851 * config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
1852 * config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
1853 * config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
1854 * config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
1855 * config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
1856 * config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
1857 * config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
1858 * config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
1859 * config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
1860
1861 * target.c (xfer_using_stratum): Change return type to LONGEST.
1862 On each iteration offset, readbuf and writebuf.
1863 * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
1864 partial_length, and read/modify/write predicate, update comments.
1865 Pass buffer.word to ptrace write.
1866
1867 2004-10-01 Paul N. Hilfinger <Hilfinger@gnat.com>
1868
1869 * symfile.c (init_filename_language_table): Add extensions for
1870 Ada.
1871 * defs.h (enum language): Add language_ada.
1872 * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
1873 * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
1874 (add_symbols_from_enclosing_procs): Make a no-op for now.
1875 (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
1876 (extended_canonical_line_spec, find_sal_from_funcs_and_line)
1877 (find_line_in_linetable, find_next_line_in_linetable)
1878 (read_all_symtabs, is_plausible_func_for_line)
1879 (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
1880 (is_runtime_sym_defined, check_size): Remove declaration.
1881 (function_name_from_pc, ada_translate_error_message)
1882 (ada_lookup_minimal_symbol): Remove definition.
1883 (ada_add_block_symbols): Remove useless label.
1884 * ada-lang.h (ada_maybe_exception_partial_symbol): Remove
1885 useless declaration.
1886 (ada_is_exception_sym): Likewise.
1887
1888 2004-09-30 Kei Sakamoto <sakamoto.kei@renesas.com>
1889
1890 Add m32r-linux support.
1891 * configure.tgt: Add m32r*-*-linux*.
1892 * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
1893 and m32r-linux-tdep.c.
1894 (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
1895 * m32r-tdep.c: Move some definitions to m32r-tdep.h.
1896 * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
1897 m32r-linux-tdep.c.
1898 * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
1899 config/m32r/linux.mh, config/m32r/linux.mt,
1900 config/m32r/nm-linux.h: New files.
1901
1902 2004-09-30 Joel Brobecker <brobecker@gnat.com>
1903
1904 * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
1905 (mips32_fetch_instruction): Remove, unused.
1906
1907 2004-09-30 Joel Brobecker <brobecker@gnat.com>
1908
1909 * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
1910 conditions that will always be true.
1911
1912 2004-09-30 Mark Kettenis <kettenis@gnu.org>
1913
1914 * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
1915 (vaxbsd_fetch_inferior_registers): Rename from
1916 fetch_inferior_registers. Make static.
1917 (vaxbsd_store_inferior_registers): Rename from
1918 store_inferior_registers. Make static.
1919 (_initialize_vaxbsd_nat): Construct and add target vector.
1920 * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1921 inftarg.o. Add inf-child.o and inf-ptrace.o.
1922 * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
1923 inftarg.o. Add inf-child.o and inf-ptrace.o.
1924 (NAT_FILE): Remove.
1925 * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
1926 inftarg.o. Add inf-child.o and inf-ptrace.o.
1927 (NAT_FILE): Remove.
1928 * Makefile.in (vaxbsd-nat.o): Update dependencies.
1929
1930 * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
1931 (m88kbsd_fetch_inferior_registers): Rename from
1932 fetch_inferior_registers. Make static.
1933 (m88kbsd_store_inferior_registers): Rename from
1934 store_inferior_registers. Make static.
1935 (_initialize_m88kbsd_nat): New prototype and function.
1936 * config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
1937 inftarg.o. Add inf-child.o and inf-ptrace.o.
1938 (NAT_FILE): Remove.
1939 * Makefile.in (m88kbsd-nat.o): Update dependencies.
1940
1941 2004-09-30 Andrew Cagney <cagney@gnu.org>
1942
1943 * target.c (target_xfer_partial): New function.
1944 (target_read_memory_partial, target_write_memory_partial)
1945 (default_xfer_partial, target_read_partial, target_write_partial)
1946 (xfer_using_stratum): Use.
1947 (debug_to_xfer_partial): Delete function.
1948 (setup_target_debug): Do not override to_xfer_partial.
1949
1950 2004-09-30 Mark Kettenis <kettenis@chello.nl>
1951
1952 * fork-child.c: Update copyright year. Fix coding style.
1953
1954 2004-09-29 Mark Kettenis <kettenis@gnu.org>
1955
1956 * defs.h (msavestring, mstrsave): Remove prototypes.
1957 * utils.c (msavestring, mstrsave): Remove functions.
1958 * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
1959 * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
1960 of mstrsave.
1961 * source.c (find_and_open_source): Use xstrdup instead of
1962 mstrsave.
1963
1964 2004-09-30 Andrew Cagney <cagney@gnu.org>
1965
1966 * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
1967 (inf_ptrace_xfer_memory): Delete.
1968 * target.c (target_xfer_partial_p, xfer_using_stratum): New.
1969 (target_read_memory, target_write_memory): Use xfer_using_stratum
1970 when target_xfer_partial_p.
1971 (debug_target): Move to start of file.
1972 (target_read_memory_partial, target_write_memory_partial): Use
1973 to_xfer_partial when target_xfer_partial_p.
1974
1975 * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
1976 inf_ptrace_xfer_memory with equivalent code.
1977 * inftarg.c (child_xfer_partial): When performing a write, pass
1978 writebuf to child_xfer_memory.
1979
1980 * target.c (target_read_string): Use target_read_memory instead of
1981 target_xfer_memory.
1982
1983 2004-09-29 Andrew Cagney <cagney@gnu.org>
1984
1985 * infptrace.c (kill_inferior): Fix typo, in previous inline. Pass
1986 the address of status.
1987
1988 * infptrace.c (ptrace_wait): Mention problem with HPUX.
1989 (kill_inferior): Inline ptrace_wait call.
1990 * linux-nat.c (kill_inferior): Inline ptrace_wait call.
1991 * inftarg.c (child_wait): Inline ptrace_wait call.
1992
1993 * target.h (struct target_ops): Delete field to_post_wait.
1994 (target_post_wait): Delete macro.
1995 (child_post_wait): Delete declaration.
1996 * target.c (update_current_target, update_current_target)
1997 (debug_to_post_wait, setup_target_debug): Delete functions and
1998 references.
1999 * infttrace.c (ptrace_wait): Delete call to target_post_wait.
2000 * inftarg.c (child_post_wait): Delete.
2001 (init_child_ops): Do not set to_post_wait.
2002 * infptrace.c (ptrace_wait): Delete call to target_post_wait.
2003 * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
2004 * inf-child.c (inf_child_post_wait): Delete.
2005 (inf_child_target): Do not set to_post_wait.
2006 * inf-ptrace.c (inf_ptrace_post_wait): Delete.
2007 (inf_ptrace_target): Do not set to_post_wait.
2008
2009 * wince.c (child_ops): Delete.
2010 * win32-nat.c (child_ops): Delete.
2011
2012 * inftarg.c (inftarg_set_find_memory_regions)
2013 (inftarg_set_make_corefile_notes): Delete functions.
2014 (_initialize_linux_nat): Inline calls.
2015
2016 * target.h (child_ops): Declare.
2017 * inftarg.c (child_ops): Move from here ...
2018 * target.c (child_ops): ... to here.
2019 * wince.c (child_ops): Delete extern declaration.
2020 * win32-nat.c (child_ops): Delete extern declaration.
2021 * linux-nat.c (child_ops): Delete extern declaration.
2022 * hpux-thread.c (child_ops): Delete extern declaration.
2023
2024 2004-09-28 Mark Kettenis <kettenis@gnu.org>
2025
2026 * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
2027
2028 2004-09-28 Mark Kettenis <kettenis@gnu.org>
2029
2030 * configure.in: Only set host_makefile_frag when building a native
2031 debugger.
2032 * configure: Regenerate.
2033
2034 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
2035 for OpenBSD ELF.
2036
2037 2004-09-28 Andrew Cagney <cagney@gnu.org>
2038
2039 Problem identified by Paul Hilfinger.
2040 * Makefile.in (ada_lex_c): Define.
2041 (ada-lex.o): Delete rule.
2042
2043 * linux-proc.c: Delete file.
2044 * Makefile.in: Update.
2045 * config/sparc/linux64.mh (NATDEPFILES):
2046 * config/sparc/linux.mh (NATDEPFILES): Update.
2047 * config/s390/s390.mh (NATDEPFILES): Update.
2048 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
2049 * config/powerpc/linux.mh (NATDEPFILES): Update.
2050 * config/pa/linux.mh (NATDEPFILES): Update.
2051 * config/mips/linux.mh (NATDEPFILES): Update.
2052 * config/m68k/linux.mh (NATDEPFILES): Update.
2053 * config/ia64/linux.mh (NATDEPFILES): Update.
2054 * config/i386/linux64.mh (NATDEPFILES): Update.
2055 * config/i386/linux.mh (NATDEPFILES): Update.
2056 * config/arm/linux.mh (NATDEPFILES): Update.
2057 * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
2058 * linux-nat.c: Update copyright. Include <sys/param.h>,
2059 <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
2060 "gdbthread.h", "gdb_stat.h", <fcntl.h>.
2061 (O_LARGEFILE): Possibly define.
2062 (_initialize_linux_nat, linux_proc_pending_signals)
2063 (add_line_to_sigset, linux_proc_xfer_memory)
2064 (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
2065 (linux_nat_do_registers, linux_nat_corefile_thread_callback)
2066 (struct linux_corefile_thread_data)
2067 (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
2068 (child_pid_to_exec_file): Insert code previously in linux-proc.c.
2069
2070 2004-09-16 Andrew Cagney <cagney@gnu.org>
2071
2072 * lin-lwp.c: Delete file.
2073 * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
2074 <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
2075 (status_to_str, init_lwp_list, add_lwp, delete_lwp)
2076 (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
2077 (linux_nat_attach, detach_callback, linux_nat_detach)
2078 (resume_callback, resume_clear_callback, linux_nat_resume)
2079 (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
2080 (stop_wait_callback, linux_nat_has_pending, flush_callback)
2081 (status_callback, running_callback, count_events_callback)
2082 (select_singlestep_lwp_callback, select_event_lwp_callback)
2083 (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
2084 (child_wait, stop_and_resume_callback, linux_nat_wait)
2085 (kill_callback, kill_wait_callback, linux_nat_kill)
2086 (linux_nat_create_inferior, linux_nat_mourn_inferior)
2087 (linux_nat_xfer_memory, linux_nat_thread_alive)
2088 (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
2089 (_initialize_linux_nat): New functions.
2090 * Makefile.in: Update all dependencies.
2091 * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
2092 * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2093 * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
2094 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
2095 * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2096 * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2097 * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2098 * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2099 * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2100 * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
2101 * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2102 * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2103 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
2104
2105 2004-09-27 Mark Kettenis <kettenis@gnu.org>
2106
2107 * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
2108 config/i386/obsd64.mh (NAT_FILE): Remove variable.
2109
2110 * configure.in: Don't comment out NATDEPFILES in the generated
2111 Makefile if NAT_FILE is unset.
2112 * configure: Regenerate.
2113
2114 2004-09-27 Andrew Cagney <cagney@gnu.org>
2115
2116 * infrun.c (check_for_old_step_resume_breakpoint): Delete.
2117 (insert_step_resume_breakpoint): Delete.
2118 (insert_step_resume_breakpoint_at_frame): New function.
2119 (insert_step_resume_breakpoint_at_sal): New function.
2120 (handle_inferior_event, step_into_function)
2121 (insert_step_resume_breakpoint): Simplify by using same.
2122
2123 * gdb_indent.sh (types): Add caddr_t to list of predefined types.
2124
2125 2004-09-26 Mark Kettenis <kettenis@gnu.org>
2126
2127 * fbsd-proc.c: Remove file.
2128 * Makefile.in (fbsd-proc.o): Remove dependency.
2129
2130 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
2131 code together.
2132
2133 * config/i386/nm-fbsd64.h: Remove file.
2134 * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2135
2136 2004-09-26 Mark Kettenis <kettenis@gnu.org>
2137
2138 * amd64-nat.h: Update copyright year.
2139 (amd64bsd_target): New prototype.
2140 * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
2141 (amd64bsd_target): New function.
2142 (amd64bsd_fetch_inferior_registers): Rename from
2143 fetch_inferior_registers. Make static.
2144 (amd64bsd_store_inferior_registers): Rename from
2145 store_inferior_registers. Make static.
2146 * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
2147 (_initialize_amd64fbsd_nat): Construct and add target vector.
2148 * amd64nbsd-nat.o: Include "target.h".
2149 (_initialize_amd64nbsd_nat): Construct and add target vector.
2150 * amd64obsd-nat.c: Include "target.h".
2151 (_initialize_amd64obsd_nat): Construct and add target vector.
2152 * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
2153 * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
2154 inftarg.o and fbsd-proc.o. Add inf-child.o, inf-ptrace.o and
2155 fbsd-nat.o.
2156 * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
2157 Remove infptrace.o and inftarg.o. Add inf-child.o and
2158 inf-ptrace.o.
2159 * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
2160 (amd64obsd-nat.o): Update dependencies.
2161
2162 2004-09-25 Mark Kettenis <kettenis@gnu.org>
2163
2164 * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
2165 * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
2166 * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
2167 * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
2168 * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
2169
2170 * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
2171 Inline attach call.
2172 (inf_ptrace_detach): Inline detach call.
2173
2174 * configure.in: Check for waddstr instead of mvwaddstr when
2175 searching for curses library. Check for wborder.
2176 * configure, config.in: Regenerate.
2177 * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
2178 available.
2179
2180 * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
2181
2182 2004-09-24 Robert Picco <Robert.Picco@hp.com>
2183
2184 Committed by Andrew Cagney.
2185 * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
2186 (show_remote_protocol_p_packet_cmd): New. Implement 'p' packet.
2187 configuration.
2188 (fetch_register_using_p): Implement 'p' packet. Based on code by
2189 Fernando Nasser.
2190 (remote_fetch_registers): Call fetch_register_using_p.
2191 (init_all_packet_configs, show_remote_cmd)
2192 (_initialize_remote): Add p-packet.
2193
2194 2004-09-24 Mark Kettenis <kettenis@gnu.org>
2195
2196 * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
2197 instead of call_ptrace. Call wait directly instead of
2198 ptrace_wait.
2199 (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
2200 (inf_ptrace_wait): Inline ptrace_wait call.
2201
2202 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
2203
2204 * Makefile.in (.y.c): Revert previous change. ../ylwrap was
2205 rolled back instead.
2206
2207 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
2208
2209 * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
2210 the new argument order.
2211
2212 2004-09-23 Corinna Vinschen <vinschen@redhat.com>
2213
2214 * MAINTAINERS: Remove "broken" from XStormy16 entry.
2215 * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
2216 (struct gdbarch_tdep): Remove.
2217 (struct xstormy16_frame_cache): New frame cache structure.
2218 (xstormy16_register_byte, xstormy16_register_raw_size)
2219 (xstormy16_reg_virtual_type, xstormy16_register_type)
2220 (xstormy16_push_arguments, xstormy16_push_return_address)
2221 (xstormy16_pop_frame, xstormy16_store_struct_return)
2222 (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
2223 (xstormy16_frame_saved_register, xstormy16_get_saved_register)
2224 (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
2225 (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
2226 (xstormy16_frame_chain, xstormy16_frame_chain_valid,
2227 (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
2228 (xstormy16_use_struct_convention): Drop gcc_p parameter.
2229 (xstormy16_extract_return_value, xstormy16_store_return_value):
2230 Regcachify. Drop useless struct convention handling.
2231 (xstormy16_register_type, xstormy16_return_value)
2232 (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
2233 (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
2234 (xstormy16_frame_prev_register, xstormy16_frame_this_id)
2235 (xstormy16_frame_base_address, xstormy16_frame_sniffer)
2236 (xstormy16_unwind_sp, xstormy16_unwind_pc)
2237 (xstormy16_unwind_dummy_id) : New functions.
2238 (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
2239 of xstormy16_scan_prologue.
2240 (xstormy16_frame_unwind): New frame_unwind structure.
2241 (xstormy16_frame_base): New frame_base structure.
2242 (xstormy16_gdbarch_init): Accomodate all of the above changes.
2243 Reshuffle for better readability. Also add dwarf2_frame_sniffer.
2244
2245 2004-09-22 Mark Kettenis <kettenis@gnu.org>
2246
2247 * language.c (language_gdbarch_post_init): Fix off-by one error.
2248
2249 2004-09-21 Daniel Jacobowitz <dan@debian.org>
2250
2251 * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
2252 (struct dwarf2_offset_and_type): New.
2253 (set_die_type, reset_die_and_siblings_types, get_die_type)
2254 (offset_and_type_hash, offset_and_type_eq): New functions.
2255 (read_structure_type, read_enumeration_type, read_array_type)
2256 (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
2257 (read_tag_reference_type, read_tag_const_type)
2258 (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
2259 (read_typedef, read_base_type, read_subrange_type): Use
2260 set_die_type.
2261
2262 2004-09-20 Daniel Jacobowitz <dan@debian.org>
2263
2264 * Makefile.in (dwarf2read.o): Update dependencies.
2265 * dwarf2read.c: Include "command.h" and "gdbcmd.h".
2266 (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
2267 and read_in_chain.
2268 (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
2269 mark, and has_form_ref_addr.
2270 (struct dwarf2_per_cu_data): New.
2271 (dwarf2_max_cache_age): New.
2272 (dwarf2_build_psymtabs_hard): Free cached compilation units
2273 after loading. Create and manage the list of compilation units.
2274 Remove unnecessary NULL initialization. Fix indentation.
2275 (psymtab_to_symtab_1): Initialize all of CU.
2276 (dwarf2_read_abbrevs): Set has_form_ref_addr.
2277 (find_partial_die): Use dwarf2_find_containing_comp_unit
2278 and load_comp_unit.
2279 (free_stack_comp_unit): Update comments. Clear the per-cu
2280 pointer. Handle aging.
2281 (dwarf2_find_containing_comp_unit, free_cached_comp_units)
2282 (age_cached_comp_units, free_one_cached_comp_unit)
2283 (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
2284 (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
2285 (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
2286 (show_dwarf2_cmd): New.
2287 (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
2288 and "maint show dwarf2 max-cache-age".
2289 * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
2290 externs.
2291 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
2292 global.
2293
2294 2004-09-20 Jeff Johnston <jjohnstn@redhat.com>
2295
2296 * dwarf2read.c (typename_concat): Change prototype to accept obstack
2297 and dwarf2_cu struct pointer as arguments. Change function to use
2298 obstack if provided and use dwarf2_cu to determine language-specific
2299 separator.
2300 (partial_die_parent_scope): Change comment to include java. Use
2301 new version of typename_concat instead of obconcat.
2302 (partial_die_full_name): Use typename_concat.
2303 (read_namespace): Ditto.
2304 (read_enumeration_type): Use typename_concat instead of obconcat.
2305 (new_symbol): Ditto.
2306 (add_partial_symbol): Enhance tests for C++ to also test for Java.
2307 (guess_structure_name): Ditto.
2308 (read_subroutine_type): Ditto.
2309 (read_structure_type): Ditto.
2310 (is_vtable_name): Add Java support.
2311 (determine_class_name): Switch to new typename_concat call.
2312 (determine_prefix): Switch to new typename_concat call.
2313 * jv-exp.y (FuncStart): New pattern.
2314 (MethodInvocation): Add support for simple function calls. Change
2315 warning message for other forms of inferior call currently not
2316 supported.
2317 * valarith.c (value_subscript): Treat an array with upper-bound
2318 of -1 as unknown size.
2319
2320 2004-09-20 Daniel Jacobowitz <dan@debian.org>
2321
2322 * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
2323 (lookup_partial_symtab): Use symtab_to_fullname.
2324
2325 2004-09-19 Jim Blandy <jimb@redhat.com>
2326
2327 * minsyms.c (lookup_minimal_symbol): Doc fix.
2328
2329 2004-09-20 Andrew Cagney <cagney@gnu.org>
2330
2331 * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
2332 CHILD_RESUME.
2333 * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
2334 * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
2335 KILL_INFERIOR.
2336 * infptrace.c: Update.
2337
2338 2004-09-19 Daniel Jacobowitz <dan@debian.org>
2339
2340 * symtab.c (output_source_filename): Mark first argument as const.
2341 (sources_info): Use symtab_to_fullname and psymtab_to_fullname
2342 for "info sources" output.
2343
2344 2004-09-20 Mark Kettenis <kettenis@gnu.org>
2345
2346 * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
2347 <machine/vmparam.h>.
2348 (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
2349 (register_u_addr): Remove prototype.
2350
2351 2004-09-19 Mark Kettenis <kettenis@gnu.org>
2352
2353 * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
2354 (i386bsd_fetch_inferior_registers): Rename from
2355 fetch_inferior_registers. Make static.
2356 (i386bsd_store_inferior_registers): Rename from
2357 store_inferior_registers. Make static.
2358 (i386bsd_target): New function.
2359 * i386bsd-nat.h: New file.
2360 * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
2361 "i386bsd-nat.h".
2362 (i386fbsd_resume): Rename from child_resume. Make static.
2363 (_initialize_i386fbsd_nat): Construct and add target vector.
2364 * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
2365 (_initialize_i386nbsd_nat): Construct and add target vector.
2366 * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
2367 Remove defines.
2368 * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
2369 and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
2370 * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
2371 inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
2372 (LOADLIBES): New variable.
2373 * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
2374 inf-ptrace.o. Remove inftarg.o.
2375 * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
2376 inf-ptrace.o. Remove inftarg.o.
2377 * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
2378 inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
2379 (LOADLIBES): New variable.
2380 * Makefile.in (i386bsd_nat_h): New variable.
2381 (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
2382 dependencies.
2383
2384 * sparc64nbsd-tdep.c: Include "objfiles.h".
2385 (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
2386 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
2387 svr4_lp64_fetch_link_map_offsets.
2388 * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
2389 "nbsd-tdep.h".
2390 (sparc64obsd_init_abi): Set in_solib_call_trampoline and
2391 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
2392 svr4_lp64_fetch_link_map_offsets.
2393 * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
2394 dependencies.
2395
2396 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
2397 * fbsd-nat.h: New file.
2398 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
2399 (fbsd_nat_h): New variable.
2400 (fbsd-nat.o): New dependency.
2401
2402 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
2403 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
2404
2405 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
2406 comment.
2407
2408 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
2409
2410 * ada-exp.y (type_int): New function to add layer of abstraction
2411 around references to expression types.
2412 (type_long): Ditto.
2413 (type_long_long): Ditto.
2414 (type_float): Ditto.
2415 (type_double): Ditto.
2416 (type_long_double): Ditto.
2417 (type_char): Ditto.
2418 (type_system_address): Ditto.
2419 (simple_exp): Use type_* functions in place of builtin_*
2420 variables.
2421 (exp): Ditto.
2422 (write_var_from_name): Ditto.
2423 (write_object_renaming): Ditto.
2424 * ada-lang.c (ada_create_fundamental_type): Remove redundant
2425 declaration.
2426 (build_ada_types): Remove, replacing with...
2427 (ada_language_arch_info): New function to initialize primitive
2428 type vector in language_arch_info.
2429 (ada_array_length): Remove use of builtin_type_ada_int.
2430 (value_pos_atr): Ditto.
2431 (ada_evaluate_subexp): Ditto.
2432 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
2433 builtin_type_ada_long_long, builtin_type_ada_char,
2434 builtin_type_ada_float, builtin_type_ada_double,
2435 builtin_type_ada_long_double, builtin_type_ada_natural,
2436 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
2437 (ada_builtin_types): Remove.
2438 (ada_language_defn): Remove entries for la_builtin_type_vector and
2439 string_char_type and use ada_language_arch_info.
2440 (_initialize_ada_language): Do type-vector initialization along
2441 the lines of c-lang.c.
2442 (ada_create_fundamental_type): Break up line.
2443 (ada_dump_symtab): Remove unused function.
2444 (enum ada_primitive_types): Define.
2445 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
2446 builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
2447 builtin_type_ada_float, builtin_type_ada_double,
2448 builtin_type_ada_long_double, builtin_type_ada_natural,
2449 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
2450 * ada-lex.l: Use type_* functions in place of builtin_* variables.
2451 (processInt): Ditto.
2452 (processReal): Ditto.
2453 (name_lookup): Ditto.
2454 * ada-typeprint.c (print_range): Use builtin_type_int, not
2455 builtin_type_ada_int.
2456
2457 2004-09-18 Mark Kettenis <kettenis@gnu.org>
2458
2459 * i386-tdep.c (i386_register_name): Rename regno to regnum.
2460
2461 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
2462 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
2463 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
2464 * configure.in: Improve checks for curses library by checking for
2465 mvwaddstr instead of initscr. Drop HP curses in favour of
2466 standard curses on HP-UX.
2467 * configure: Regenerated.
2468
2469 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
2470
2471 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
2472 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
2473 Minor formatting changes.
2474 (empty_array): Slight rewrite for formatting.
2475 (emit_char,parse,ada_language_defn,build_ada_types,
2476 ada_is_exception_sym, _initialize_ada_language): Move
2477 definitions around.
2478 (ada_dump_symtab): Remove unused definition.
2479 (ada_maybe_exception_partial_symbol): Remove unused definition.
2480
2481 2004-09-16 Andrew Cagney <cagney@gnu.org>
2482
2483 * inf-child.c: Include "gdb_string.h".
2484 (inf_child_core_file_to_sym_file): Delete.
2485 (inf_child_target): Set to_fetch_registers and to_store_registers.
2486 * inf-ptrace.c: Include "gdb_string.h".
2487 * Makefile.in: Update all dependencies.
2488
2489 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
2490 problem.
2491
2492 2004-09-14 Joel Brobecker <brobecker@gnat.com>
2493
2494 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
2495 call to heuristic_proc_desc. Remove code that became redundant
2496 as a consequence.
2497 (read_next_frame_reg): Remove special case for SP_REGNUM.
2498 (set_reg_offset): Fix small typo.
2499 (reset_saved_regs): New procedure.
2500 (mips32_heuristic_proc_desc): No longer compute a fake
2501 procedure descriptor. Compute the full frame cache instead.
2502 Some minor comment reformatting.
2503
2504 2004-09-14 Andrew Cagney <cagney@gnu.org>
2505
2506 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
2507 maintainer.
2508
2509 * thread-db.c (thread_db_new_objfile): Assume that there is a
2510 child process.
2511
2512 2004-09-13 Jim Blandy <jimb@redhat.com>
2513
2514 * valops.c (value_assign): Move 'buffer' to the enclosing block,
2515 so that its storage isn't referenced after its lifetime ends.
2516
2517 * valops.c (value_assign): 'use_buffer' is initialized to zero,
2518 and never assigned to. Delete it, and the 'if (use_buffer)'
2519 clauses. Delete 'raw_buffer', since it is now unused.
2520
2521 2004-09-13 Andrew Cagney <cagney@gnu.org>
2522
2523 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
2524 * configure: Re-generate.
2525 * nlm/Makefile.in (TAGS): Update.
2526 * Makefile.in (TAGS): Update.
2527 * config/vax/nbsd.mt (TM_FILE): Update.
2528 * config/sparc/vxworks.mt (TM_FILE): Update.
2529 * config/sparc/sol2.mt (TM_FILE): Update.
2530 * config/sparc/sol2-64.mt (TM_FILE): Update.
2531 * config/sparc/obsd64.mt (TM_FILE): Update.
2532 * config/sparc/obsd.mt (TM_FILE): Update.
2533 * config/sparc/nbsd64.mt (TM_FILE): Update.
2534 * config/sparc/nbsd.mt (TM_FILE): Update.
2535 * config/sparc/linux64.mt (TM_FILE): Update.
2536 * config/sparc/linux.mt (TM_FILE): Update.
2537 * config/sparc/fbsd.mt (TM_FILE): Update.
2538 * config/sh/wince.mt (TM_FILE): Update.
2539 * config/sh/nbsd.mt (TM_FILE): Update.
2540 * config/sh/linux.mt (TM_FILE): Update.
2541 * config/sh/embed.mt (TM_FILE): Update.
2542 * config/s390/s390.mt (TM_FILE): Update.
2543 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
2544 * config/rs6000/rs6000.mt (TM_FILE): Update.
2545 * config/rs6000/aix4.mt (TM_FILE): Update.
2546 * config/powerpc/vxworks.mt (TM_FILE): Update.
2547 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
2548 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
2549 * config/powerpc/obsd.mt (TM_FILE): Update.
2550 * config/powerpc/nbsd.mt (TM_FILE): Update.
2551 * config/powerpc/linux.mt (TM_FILE): Update.
2552 * config/powerpc/aix.mt (TM_FILE): Update.
2553 * config/pa/obsd.mt (TM_FILE): Update.
2554 * config/pa/linux.mt (TM_FILE): Update.
2555 * config/pa/hppahpux.mt (TM_FILE): Update.
2556 * config/pa/hppa64.mt (TM_FILE): Update.
2557 * config/pa/hppa.mt (TM_FILE): Update.
2558 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
2559 * config/mips/wince.mt (TM_FILE): Update.
2560 * config/mips/vxmips.mt (TM_FILE): Update.
2561 * config/mips/nbsd.mt (TM_FILE): Update.
2562 * config/mips/linux.mt (TM_FILE): Update.
2563 * config/mips/irix6.mt (TM_FILE): Update.
2564 * config/mips/irix5.mt (TM_FILE): Update.
2565 * config/mips/embed.mt (TM_FILE): Update.
2566 * config/m68k/vxworks68.mt (TM_FILE): Update.
2567 * config/m68k/st2000.mt (TM_FILE): Update.
2568 * config/m68k/os68k.mt (TM_FILE): Update.
2569 * config/m68k/obsd.mt (TM_FILE): Update.
2570 * config/m68k/nbsd.mt (TM_FILE): Update.
2571 * config/m68k/monitor.mt (TM_FILE): Update.
2572 * config/m68k/linux.mt (TM_FILE): Update.
2573 * config/m68k/cisco.mt (TM_FILE): Update.
2574 * config/ia64/linux.mt (TM_FILE): Update.
2575 * config/ia64/aix.mt (TM_FILE): Update.
2576 * config/ia64/ia64.mt (TM_FILE): Update.
2577 * config/i386/vxworks.mt (TM_FILE): Update.
2578 * config/i386/obsd64.mt (TM_FILE): Update.
2579 * config/i386/obsd.mt (TM_FILE): Update.
2580 * config/i386/nto.mt (TM_FILE): Update.
2581 * config/i386/nbsd64.mt (TM_FILE): Update.
2582 * config/i386/nbsd.mt (TM_FILE): Update.
2583 * config/i386/linux64.mt (TM_FILE): Update.
2584 * config/i386/linux.mt (TM_FILE): Update.
2585 * config/i386/i386sol2.mt (TM_FILE): Update.
2586 * config/i386/i386lynx.mt (TM_FILE): Update.
2587 * config/i386/fbsd64.mt (TM_FILE): Update.
2588 * config/i386/fbsd.mt (TM_FILE): Update.
2589 * config/i386/cygwin.mt (TM_FILE): Update.
2590 * config/h8300/h8300.mt (TM_FILE): Update.
2591 * config/frv/frv.mt (TM_FILE): Update.
2592 * config/cris/cris.mt (TM_FILE): Update.
2593 * config/arm/wince.mt (TM_FILE): Update.
2594 * config/arm/nbsd.mt (TM_FILE): Update.
2595 * config/arm/linux.mt (TM_FILE): Update.
2596 * config/arm/embed.mt (TM_FILE): Update.
2597 * config/alpha/nbsd.mt (TM_FILE): Update.
2598 * config/alpha/fbsd.mt (TM_FILE): Update.
2599 * config/alpha/alpha.mt (TM_FILE): Update.
2600 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
2601 * config/alpha/alpha-linux.mt (TM_FILE): Update.
2602
2603 Eliminate event_loop_p, always has the value 1.
2604 * defs.h (event_loop_p): Delete macro.
2605 * breakpoint.c (until_break_command): Simplify.
2606 * utils.c (prompt_for_continue): Simplify.
2607 * tracepoint.c (read_actions): Simplify.
2608 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
2609 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
2610 (set_prompt, init_main): Simplify.
2611 (init_signals, disconnect): Delete, unused.
2612 * remote.c (remote_async_resume)
2613 (extended_remote_async_create_inferior): Simplify.
2614 * mi/mi-interp.c (mi_input): Delete, unused.
2615 (mi_interpreter_resume, mi_command_loop): Simplify.
2616 * interps.c (current_interp_command_loop): Simplify.
2617 * infrun.c (proceed): Simplify.
2618 * infcmd.c (run_command, continue_command, step_1, jump_command)
2619 (until_command, advance_command, finish_command)
2620 (interrupt_target_command): Simplify.
2621 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
2622
2623 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2624 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2625 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2626 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2627 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2628 * mips-tdep.c (mips_dump_tdep): Do not print same.
2629
2630 2004-09-12 Andrew Cagney <cagney@gnu.org>
2631
2632 * valprint.c (print_longest): Use fputs_filtered. Make "val"
2633 const.
2634 * Makefile.in (valprint.o): Delete explict rule.
2635
2636 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
2637 reported by Dave Anderson.
2638
2639 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
2640
2641 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
2642
2643 2004-09-12 Salvador E. Tropea <set@users.sf.net>
2644 Andrew Cagney <cagney@gnu.org>
2645
2646 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
2647 (mi_cmd_data_list_register_values)
2648 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
2649 the register number computation.
2650
2651 2004-09-12 Andrew Cagney <cagney@gnu.org>
2652
2653 * ppcnbsd-nat.c: Include "inf-ptrace.h".
2654 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
2655 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
2656 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
2657 target.
2658 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
2659 inf-ptrace.o and inf-child.o.
2660 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
2661 * Makefile.in: Update dependencies.
2662
2663 2004-09-11 Andrew Cagney <cagney@gnu.org>
2664
2665 * language.c (hex_string, hex_string_custom): Move from here ...
2666 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
2667 (CELLSIZE): Increase to 50.
2668 * language.h (hex_string, hex_string_custom): Move from here ...
2669 * defs.h: ... to here.
2670 * Makefile.in: Update all dependencies.
2671
2672 2004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
2673
2674 * language.c (local_hex_format_custom): Remove.
2675 (local_hex_string): Rename to hex_string, use C format, and move to
2676 utils.c
2677 (local_hex_string_custom): Rename to hex_string_custom and change
2678 interface. Now uses C format. Move to utils.c
2679 (local_octal_format_custom): Remove.
2680 (local_decimal_format_custom): Remove.
2681 (unknown_language_defn): Remove language-specific number
2682 formatting entries.
2683 (auto_language_defn): Ditto.
2684 (local_language_defn): Ditto.
2685 * language.h (struct language_format_info): Delete declaration.
2686 (struct language_defn): Remove language_format_info fields
2687 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
2688 (local_binary_format): Remove macro.
2689 (local_binary_format_prefix): Remove macro.
2690 (local_binary_format_specifier): Remove macro.
2691 (local_binary_format_suffix): Remove macro.
2692 (local_octal_format): Remove macro.
2693 (local_octal_format_prefix): Remove macro.
2694 (local_octal_format_specifier): Remove macro.
2695 (local_octal_format_suffix): Remove macro.
2696 (local_decimal_format): Remove macro.
2697 (local_decimal_format_prefix): Remove macro.
2698 (local_decimal_format_specifier): Remove macro.
2699 (local_decimal_format_suffix): Remove macro.
2700 (local_hex_format): Remove macro.
2701 (local_hex_format_prefix): Remove macro.
2702 (local_hex_format_specifier): Remove macro.
2703 (local_hex_format_suffix): Remove macro.
2704 (local_decimal_format_custom): Remove.
2705 (local_octal_format_custom): Remove.
2706 (local_hex_format_custom): Remove.
2707 (local_hex_string): Rename to hex_string and move to defs.h.
2708 (local_hex_string_custom): Rename to hex_string_custom, change
2709 interface, and move to defs.h.
2710 * utils.c: (int_string): New function.
2711 (hex_string): New function (from language.c).
2712 (hex_string_custom): New function (from language.c).
2713 (octal2str): New function.
2714 (decimal2str): Add width parameter.
2715 (paddr_u): Use new decimal2str interface.
2716 (paddr_d): Ditto.
2717 * defs.h (hex_string): Declare.
2718 (hex_string_custom): Declare.
2719 (int_string): Declare.
2720 * printcmd.c (print_scalar_formatted): Remove localized binary
2721 formatting.
2722 * valprint.c (print_longest): Use int_string.
2723 (print_floating): Use C hex format.
2724 (print_hex_chars): Ditto.
2725 (print_binary_chars): Remove language-specific formatting.
2726 (print_octal_chars): Use C octal format.
2727 (print_decimal_chars): Delocalize format.
2728 (print_decimal): Remove.
2729 * ada-lang.c (ada_language_defn): Remove language-specific number
2730 formatting entries.
2731 * p-lang.c (pascal_language_defn): Ditto.
2732 * c-lang.c (c_language_defn): Ditto.
2733 (cplus_language_defn): Ditto.
2734 (asm_language_defn): Ditto.
2735 (minimal_language_defn): Ditto.
2736 * f-lang.c (f_language_defn): Ditto.
2737 * jv-lang.c (java_language_defn): Ditto.
2738 * m2-lang.c (m2_language_defn): Ditto.
2739 * scm-lang.c (scm_language_defn): Ditto.
2740 * objc-lang.c (objc_language_defn): Ditto.
2741 * memattr.c (mem_info_command): Use renamed hex_string_custom with
2742 new interface.
2743 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
2744 * ui-out.c (ui_out_field_core_addr): Ditto.
2745 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
2746 * exec.c (print_section_info): Ditto.
2747 * i387-tdep.c (print_i387_status_word): Ditto.
2748 (print_i387_control_word): Ditto.
2749 (i387_print_float_info): Ditto.
2750 * maint.c (maint_print_section_info): Ditto.
2751 * solib.c (info_sharedlibrary_command): Ditto.
2752 * somsolib.c (som_sharedlibrary_info_command): Ditto.
2753 * symtab.c (print_msymbol_info): Ditto.
2754 * tracepoint.c (tracepoints_info): Ditto.
2755 * solib-frv.c (lm_base): Ditto.
2756 (frv_current_sos): Ditto.
2757 (enable_break2): Ditto.
2758 (enable_break): Ditto.
2759 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
2760 (process_one_symbol): Ditto.
2761 * infcmd.c (program_info): Ditto.
2762 * mdebugread.c (parse_partial_symbols): Ditto.
2763 * symfile.c (add_symbol_file_command): Ditto.
2764 * cli/cli-cmds.c (edit_command): Ditto.
2765 (list_command): Ditto.
2766 * infcall.c (call_function_by_hand): Ditto.
2767 * remote-vx.c (vx_run_files_info): Ditto.
2768 (vx_wait): Ditto.
2769 (vx_attach): Ditto.
2770 (vx_detach): Ditto.
2771 (vx_kill): Ditto.
2772 * aix-thread.c (pdc_symbol_addrs): Ditto.
2773 (pdc_read_regs): Ditto.
2774 (pdc_write_regs): Ditto.
2775 (pdc_read_data): Ditto.
2776 (pdc_write_data): Ditto.
2777 * d10v-tdep.c (display_trace): Ditto.
2778 * rs6000-nat.c (find_toc_address): Ditto.
2779 * aix-thread.c: Don't include language.h.
2780 * buildsym.c: Ditto.
2781 * dbxread.c: Ditto.
2782 * mdebugread.c: Ditto.
2783 * rs6000-nat.c: Ditto.
2784 * buildsym.c (make_blockvector): Use renamed hex_string.
2785
2786 2004-09-10 Jason Molenda (jmolenda@apple.com)
2787
2788 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
2789 chars after 'if' or 'while' commands in user-defined commands.
2790
2791 2004-09-08 Jim Blandy <jimb@redhat.com>
2792
2793 Fix bug reported and analyzed by Olivier Crete:
2794 * symfile.c (copy_section_addr_info): New function.
2795 (symbol_file_add_with_addrs_or_offsets): Use it to save the
2796 original set of address arguments, instead of handwritten code
2797 that uses one length to allocate and a different length to
2798 initialize. Use make_cleanup_free_section_addr_info.
2799 * symfile.h (copy_section_addr_info): New declaration.
2800 * utils.c: #include "symfile.h".
2801 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
2802 New functions.
2803 * defs.h (make_cleanup_free_section_addr_info): New declaration.
2804 * Makefile.in (utils.o): Update dependencies.
2805
2806 2004-09-08 Andrew Cagney <cagney@gnu.org>
2807
2808 * thread-db.c (keep_thread_db): Delete.
2809 (thread_db_new_objfile, thread_db_create_inferior)
2810 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
2811
2812 2004-09-08 Mark Kettenis <kettenis@gnu.org>
2813
2814 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
2815 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
2816 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
2817 (i386_frameless_signal_p): Remove prototype.
2818 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
2819 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
2820 I386_SSE_NUM_REGS.
2821 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
2822 instead of FP0_REGNUM.
2823 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
2824 of FP0_REGNUM and FPC_REGNUM.
2825
2826 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
2827 (sunos_solib_create_inferior_hook): Don't call
2828 sunos_relocate_main_executable.
2829
2830 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
2831 solib_svr4_fetch_link_map_offsets to
2832 svr4_ilp32_fetch_link_map_offsets.
2833 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
2834 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
2835 svr4_ilp32_fetch_link_map_offsets.
2836 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
2837
2838 2004-09-07 Jim Blandy <jimb@redhat.com>
2839
2840 * frame.h (frame_register): Doc fix.
2841
2842 2004-09-07 Andrew Cagney <cagney@gnu.org>
2843
2844 * vx-share/wait.h: Delete #ifdef USG.
2845 * utils.c (request_quit): Ditto.
2846 * tui/tui.c (tui_reset): Ditto.
2847 * remote.c: Ditto.
2848 * remote-sds.c: Ditto.
2849 * remote-rdi.c: Ditto.
2850 * mdebugread.c: Ditto.
2851 * m68klinux-nat.c: Ditto.
2852 * infttrace.c: Ditto.
2853 * infptrace.c: Ditto.
2854 * i386v-nat.c: Ditto.
2855 * exec.c: Ditto.
2856 * dbxread.c: Ditto.
2857 * core-aout.c: Ditto.
2858
2859 2004-09-05 Joel Brobecker <brobecker@gnat.com>
2860
2861 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
2862 heuristic_proc_desc.
2863 (mips_insn32_frame_cache): Likewise.
2864
2865 2004-09-04 Joel Brobecker <brobecker@gnat.com>
2866
2867 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
2868 left behind by error.
2869
2870 2004-09-04 Joel Brobecker <brobecker@gnat.com>
2871
2872 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
2873 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
2874
2875 2004-09-04 Joel Brobecker <brobecker@gnat.com>
2876
2877 * config/rs6000/xm-aix4.h: Remove this file.
2878 * config/rs6000/aix4.mh (XM_FILE): Delete.
2879
2880 2004-09-04 Joel Brobecker <brobecker@gnat.com>
2881
2882 * config/rs6000/xm-rs6000.h: Remove this file.
2883 * config/rs6000/rs6000.mh (XM_FILE): Remove.
2884
2885 2004-09-03 Andrew Cagney <cagney@gnu.org>
2886
2887 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
2888 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
2889 only use.
2890
2891 * mips-tdep.c (temp_saved_regs): Delete.
2892 (set_reg_offset): Replace saved_regs parameter with this_cache.
2893 (heuristic_proc_desc, mips16_heuristic_proc_desc)
2894 (mips32_heuristic_proc_desc): Add this_cache parameter.
2895 (mips_insn32_frame_cache, mips_insn16_frame_cache)
2896 (after_prologue): Pass a NULL this_cache.
2897
2898 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
2899 non-kernel trap prologues.
2900
2901 * mips-tdep.c (find_proc_desc): Delete function.
2902 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
2903 simplify.
2904 (mips_insn16_frame_cache): Replace find_proc_desc with code from
2905 mips_insn32_frame_cache.
2906
2907 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
2908 Simplify as NEXT_FRAME is NULL.
2909 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
2910
2911 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
2912 local variable.
2913 (mips_skip_prologue): Update.
2914
2915 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
2916 "cur_frame" parameter.
2917 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
2918 (mips_insn32_frame_cache, find_proc_desc): Update
2919
2920 * config/vax/nm-obsd.h: Delete file.
2921 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2922 * config/vax/nm-nbsd.h: Delete file.
2923 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
2924 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2925 * config/sh/nm-nbsd.h: Delete file.
2926 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
2927 * config/rs6000/nm-rs6000ly.h: Delete file.
2928 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
2929 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
2930 * config/powerpc/nm-obsd.h: Delete file.
2931 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2932 * config/powerpc/nm-nbsd.h: Delete file.
2933 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
2934 * config/pa/nm-obsd.h: Delete file.
2935 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2936 * config/mips/nm-nbsd.h: Delete file.
2937 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
2938 * config/m88k/nm-obsd.h: Delete file.
2939 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2940 * config/m68k/nm-nbsd.h: Delete file.
2941 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
2942 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2943 * config/i386/nm-nbsd.h: Delete file.
2944 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
2945 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2946 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2947 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2948 * config/i386/nm-i386lynx.h: Delete file.
2949 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
2950 * config/arm/nm-nbsd.h: Delete file.
2951 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
2952 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2953
2954 * config/i386/tm-fbsd.h: Delete file.
2955 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
2956 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
2957
2958 * config/rs6000/tm-rs6000-aix4.h: Delete file.
2959 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
2960 * config/rs6000/aix4.mt (TM_FILE): Set to
2961 config/rs6000/tm-rs6000.h.
2962 * config/powerpc/tm-ppc-aix.h: Delete file.
2963 * config/powerpc/aix.mt (TM_FILE): Set to
2964 config/rs6000/tm-rs6000.h.
2965 * config/m68k/tm-linux.h: Delete file.
2966 * config/m68k/linux.mt (TM_FILE): Set to solib.h
2967 * config/i386/tm-linux64.h: Delete file.
2968 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
2969 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
2970
2971 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
2972 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
2973 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
2974 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
2975 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
2976 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
2977 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
2978 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
2979 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
2980
2981 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
2982 gdb_host_cpu.
2983
2984 2004-09-02 Joel Brobecker <brobecker@gnat.com>
2985
2986 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
2987 Minor reformatting. Some code factoring.
2988
2989 2004-09-02 Andrew Cagney <cagney@gnu.org>
2990
2991 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
2992 * config/vax/tm-nbsd.h: Delete file.
2993 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
2994 * config/sparc/tm-vxworks.h: Delete file.
2995 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
2996 * config/sparc/tm-nbsd.h: Delete file.
2997 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
2998 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
2999 * config/sparc/tm-linux.h: Delete file.
3000 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
3001 * config/s390/tm-linux.h: Delete file.
3002 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
3003 * config/pa/tm-bsd.h: Delete file.
3004 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
3005 * config/m68k/tm-obsd.h: Delete file.
3006 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
3007 * config/m68k/tm-nbsd.h: Delete file.
3008 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
3009 * config/i386/tm-vxworks.h: Delete file.
3010 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
3011 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
3012 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
3013 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
3014 * config/i386/tm-nbsd.h: Delete file.
3015 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
3016 * config/i386/tm-i386lynx.h: Delete file.
3017 * config/cris/cris.mt (TM_FILE): Set to solib.h.
3018 * config/cris/tm-cris.h: Delete file.
3019
3020 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
3021 * configure: Re-generate.
3022 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
3023 * config/arm/tm-nbsd.h: Delete file.
3024
3025 * config/powerpc/tm-ppcle-sim.h: Delete.
3026 * config/powerpc/tm-ppcle-eabi.h: Delete.
3027 * config/powerpc/tm-nbsd.h: Delete.
3028 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
3029 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
3030 tm-ppcle-eabi.h.
3031
3032 * config/i386/nto.mh (NAT_FILE): Delete.
3033 * config/i386/nm-nto.h: Delete.
3034
3035 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
3036 * config/m68k/tm-os68k.h: Ditto.
3037 * config/m68k/tm-monitor.h: Ditto.
3038 * config/m68k/tm-cisco.h: Ditto.
3039 * config/m68k/st2000.mt (TM_FILE): Delete.
3040 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
3041 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
3042 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
3043 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
3044
3045 * config/m68k/tm-st2000.h: Delete.
3046 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
3047 * config/sparc/fbsd.mt (TM_FILE): Delete.
3048 * config/sparc/tm-fbsd.h: Delete.
3049
3050 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
3051 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
3052 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
3053
3054 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
3055 GDB_TM_FILE and GDB_XM_FILE.
3056 * gdbarch.c: Re-generate.
3057 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
3058 quotes in macro definition.
3059 * configure.in: Re-generate.
3060
3061 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
3062 validating architecture methods.
3063 * gdbarch.c: Re-generate.
3064
3065 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
3066 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
3067 GDB_MULTI_ARCH_PARTIAL.
3068 * gdbarch.h: Re-generate.
3069
3070 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
3071 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
3072 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
3073 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
3074 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
3075 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
3076 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
3077 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
3078 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
3079 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
3080 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
3081 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
3082
3083 2004-09-01 Andrew Cagney <cagney@gnu.org>
3084
3085 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
3086 and main_func_highpc.
3087 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
3088 * objfiles.c (init_entry_point_info, objfile_relocate): Update
3089 * nlmread.c (nlm_symfile_read): Update.
3090
3091 2004-09-01 Joel Brobecker <brobecker@gnat.com>
3092
3093 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
3094 (mips_insn32_frame_cache): Inline call to find_proc_desc.
3095 (find_proc_desc): Remove dead code.
3096
3097 2004-09-01 Joel Brobecker <brobecker@gnat.com>
3098
3099 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
3100
3101 2004-09-01 Jeff Johnston <jjohnstn@redhat.com>
3102
3103 * observer.sh: Add struct so_list declaration.
3104 * Makefile.in: Add dependencies on observer.h for solib.c and
3105 breakpoint.c.
3106 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
3107 function.
3108 (_initialize_breakpoint): Register
3109 disable_breakpoints_in_unloaded_shlib as an observer of the
3110 "solib unloaded" observation event.
3111 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
3112 call decode_line_1 so unfound breakpoint errors are silent.
3113 * solib.c (update_solib_list): When a solib is discovered to have
3114 been unloaded by the program, notify all observers of the
3115 "solib unloaded" observation event.
3116
3117 2004-09-01 Andrew Cagney <cagney@gnu.org>
3118
3119 * frame.c: Include "objfiles.h".
3120 (inside_main_func): New function.
3121 (get_prev_frame): Use new inside_main_func.
3122 * Makefile.in (frame.o): Update dependencies.
3123 * defs.h (inside_main_func): Delete declaration.
3124 * blockframe.c (inside_main_func): Delete function.
3125
3126 2004-08-31 Jim Blandy <jimb@redhat.com>
3127
3128 * dwarf2read.c (is_vtable_name): New function, based on logic from
3129 read_structure_type, but passing the correct length to strncmp,
3130 and using 'sizeof' instead of 'strlen'.
3131 (read_structure_type): Call it.
3132
3133 2004-08-31 Joel Brobecker <brobecker@gnat.com>
3134
3135 * config/powerpc/aix.mh: Add comment.
3136
3137 2004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
3138
3139 * MAINTAINERS: Add self to Write-After-Approval.
3140
3141 2004-08-30 Manoj Iyer <manjo@austin.ibm.com>
3142
3143 * MAINTAINERS: Add self to Write-After-Approval.
3144
3145 2004-08-30 Andrew Cagney <cagney@gnu.org>
3146
3147 Fix PR breakpoints/1757.
3148 * infrun.c (struct execution_control_state): Replace
3149 remove_breakpoints_on_following_step with
3150 step_after_step_resume_breakpoint.
3151 (init_execution_control_state): Update.
3152 (handle_inferior_event): For signals, when stepping off a
3153 breakpoint, set step_after_step_resume_breakpoint. When
3154 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
3155 (keep_going): Delete code handling
3156 remove_breakpoints_on_following_step.
3157
3158 2004-08-29 David Lecomber <david@streamline-computing.com>
3159
3160 Fix PR gdb/648
3161 * language.h (enum array_ordering): New enum.
3162 * language.h (struct language_defn): New la_array_ordering
3163 attribute.
3164 * language.c (unknown_language_defn, auto_language_defn)
3165 (local_language_defn): Ditto.
3166 * ada-lang.c (ada_language_defn): Ditto.
3167 * c-lang.c (c_language_defn, cplus_language_defn)
3168 (asm_language_defn, minimal_language_defn): Ditto.
3169 * f-lang.c (f_language_defn): Ditto.
3170 * jv-lang.c (java_language_defn): Ditto.
3171 * m2-lang.c (f_language_defn): Ditto.
3172 * objc-lang.c (objc_language_defn): Ditto.
3173 * p-lang.c (pascal_language_defn): Ditto.
3174 * scm-lang.c (scm_language_defn): Ditto.
3175 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
3176 oriented large to small in type structure.
3177 * dwarf2read.c (read_array_order): New function.
3178 (read_array_type): Use read_array_order to check row/column
3179 major ordering.
3180
3181 2004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
3182
3183 * target.c (target_resize_to_sections): Check
3184 current_target.to_sections for an old value when updating.
3185
3186 2004-08-27 Joel Brobecker <brobecker@gnat.com>
3187
3188 * procfs.c (dbx_link_bpt_addr): New static global variable.
3189 (dbx_link_shadow_contents): New static global variable.
3190 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
3191 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
3192 if we just hit it.
3193 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
3194 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
3195 from run to run.
3196 (procfs_create_inferior): Remove syssgi syscall-exit notifications
3197 after the inferior has been forked.
3198 (remove_dbx_link_breakpoint): New function.
3199 (dbx_link_addr): New function.
3200 (insert_dbx_link_bpt_in_file): New function.
3201 (insert_dbx_link_bpt_in_region): New function.
3202 (insert_dbx_link_breakpoint): New function.
3203 (proc_trace_syscalls_1): New function, extracted from
3204 proc_trace_syscalls.
3205 (proc_trace_syscalls): Replace extract code by call to
3206 proc_trace_syscalls_1.
3207 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
3208 is no longer valid.
3209
3210 2004-08-25 Jim Blandy <jimb@redhat.com>
3211
3212 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
3213
3214 2004-08-25 Andrew Cagney <cagney@gnu.org>
3215
3216 * infrun.c (struct execution_control_state): Delete field
3217 "stepping_through_sigtramp".
3218 (init_execution_control_state): Do not set same.
3219 (context_switch): Do not pass same to save_infrun_state and
3220 load_infrun_state.
3221 * gdbthread.h (struct thread_info): Delete field
3222 stepping_through_sigtramp.
3223 (save_infrun_state, load_infrun_state): Delete parameter
3224 stepping_through_sigtramp.
3225 * thread.c (load_infrun_state, save_infrun_state): Update.
3226
3227 * infrun.c: Re-indent. Move expression operators to the beginning
3228 of the line. Remove long disabled #if 0 code.
3229
3230 2004-08-24 Andrew Cagney <cagney@gnu.org>
3231
3232 * doublest.h (floatformat_ieee_quad): Rename
3233 floatformat_ia64_quad.
3234 * doublest.c (floatformat_ieee_quad): Rename
3235 floatformat_ia64_quad.
3236 (_initialize_doublest): Update.
3237
3238 2004-08-24 Jim Blandy <jimb@redhat.com>
3239
3240 * dwarf2expr.h (struct dwarf_expr_context): New members
3241 'num_pieces' and 'pieces', for returning the result of an
3242 expression that uses DW_OP_piece.
3243 (struct dwarf_expr_piece): New struct type.
3244 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
3245 pieces.
3246 (free_dwarf_expr_context): Free pieces, if any.
3247 (add_piece): New function.
3248 (execute_stack_op): Implement DW_OP_piece.
3249 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
3250 expression is a list of pieces, print an error message.
3251 (dwarf2_loc_desc_needs_frame): If the expression yields
3252 pieces, and any piece is in a register, then we need a frame.
3253
3254 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
3255 the stack until we've decided what sort of result the evaluation
3256 has produced. Use separate variables, with more specific names.
3257
3258 2004-08-23 Richard Earnshaw <rearnsha@arm.com>
3259
3260 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
3261 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
3262 (arm_netbsd_init_abi_common): Register them.
3263
3264 2004-08-22 Mark Kettenis <kettenis@gnu.org>
3265
3266 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
3267
3268 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
3269 safe_frame_unwind_memory instead of target_read_memory.
3270
3271 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
3272 Reorder includes.
3273 (fetch_register, store_register): Remove prototypes.
3274 (child_resume): Reorganize code and comments such that it is
3275 grouped a bit more logically.
3276 (attach): Explicitly compare errno against 0.
3277 (detach): Likewise. Use perror_with_name instead of
3278 print_sys_errmsg.
3279 * Makefile.in (infptrace.o): Update dependencies.
3280
3281 * ia64-linux-nat.c: Update copyright year.
3282 (fetch_debug_register, store_debug_register)
3283 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
3284 PTRACE_TYPE_ARG3.
3285 * config/ia64/nm-linux.h: Update copyright year.
3286 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
3287
3288 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
3289 from CORE_ADDR to struct frame_info *. Use
3290 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
3291 (amd64_linux_sigtramp_p): Adjust for changed signature of
3292 and64_linux_sigtramp_start
3293
3294 * gdb_ptrace.h: GNU/Linux.
3295
3296 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
3297 Remove defines.
3298
3299 * infptrace.c: Include "gdb_assert.h".
3300 (PTRACE_XFER_TYPE): Remove define.
3301 (offsetof): Only define if U_REGS_OFFSET isn't defined.
3302 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
3303 Tweak comment.
3304 (fetch_inferior_registers, store_inferior_registers): Remove
3305 redundant culry braces. Tweak comment. s/regno/regnum.
3306 * Makefile.in (infptrace.o): Update dependencies.
3307
3308 * configure.in: Change test for return type of ptrace to default
3309 to `long' instead of `int'.
3310 * configure: Regenerate.
3311
3312 2004-08-21 Mark Kettenis <kettenis@gnu.org>
3313
3314 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
3315
3316 * configure.in: Check for ttrace function.
3317 * configure, config.in: Regenerate.
3318
3319 * gdb_ptrace.h: New file.
3320 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
3321 <sys/ptrace.h>.
3322 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
3323 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
3324 (attach): Don't define PT_ATTACH.
3325 (detach): Don't define PT_DETACH.
3326 * Makefile.in (gdb_ptrace_h): New variable.
3327 (infptrace.o): Update dependencies.
3328
3329 2004-08-16 Mark Kettenis <kettenis@gnu.org>
3330
3331 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
3332 instead of `int' if not already defined.
3333 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
3334 PTRACE_TYPE_ARG3.
3335 * infptrace.c (call_ptrace): Revert change that replaced
3336 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3337
3338 2004-08-15 Mark Kettenis <kettenis@gnu.org>
3339
3340 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
3341 Remove defines.
3342
3343 * linux-nat.c (kill_inferior): Add missing third and fourth
3344 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
3345
3346 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
3347 PTRACE_TYPE_RET.
3348
3349 * proc-why.c (proc_prettyfprint_why): Fix format string.
3350
3351 * solib-osf.c (osf_current_sos): Remove unsused label.
3352
3353 * configure.in: Add <ncurses/ncurses.h> to the list of possible
3354 curses headers.
3355 * configure, config.in: Regenerate.
3356 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
3357 <ncurses/ncurses.h>.
3358
3359 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
3360 * config/nm-nbsd.h: Update copyright year.
3361 (PTRACE_ARG3_TYPE): Remove define.
3362
3363 * sparc-nat.c (fetch_inferior_registers)
3364 (store_inferior_registers, sparc_xfer_wcookie):
3365 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3366
3367 * alphabsd-nat.c (fetch_inferior_registers):
3368 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3369 PTRACE_TYPE_ARG3.
3370 * amd64bsd-nat.c (fetch_inferior_registers)
3371 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3372 PTRACE_TYPE_ARG3.
3373 * armnbsd-nat.c: Update copyright year.
3374 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
3375 (store_register, store_regs, store_fp_register, store_fp_regs):
3376 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3377 * hppabsd-nat.c (fetch_inferior_registers)
3378 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3379 PTRACE_TYPE_ARG3.
3380 * i386bsd-nat.c (fetch_inferior_registers)
3381 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
3382 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3383 * m68kbsd-nat.c (fetch_inferior_registers)
3384 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3385 PTRACE_TYPE_ARG3.
3386 * m88kbsd-nat.c (fetch_inferior_registers)
3387 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3388 PTRACE_TYPE_ARG3.
3389 * mipsnbsd-nat.c: Update copyright year.
3390 (fetch_inferior_registers, store_inferior_registers):
3391 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3392 * ns32knbsd-nat.c: Update copyright year.
3393 (fetch_inferior_registers, store_inferior_registers):
3394 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3395 * ppcnbsd-nat.c (fetch_inferior_registers):
3396 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3397 PTRACE_TYPE_ARG3.
3398 * ppcobsd-nat.c (fetch_inferior_registers):
3399 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3400 PTRACE_TYPE_ARG3.
3401 * shnbsd-nat.c: Update copyright year.
3402 (fetch_inferior_registers, store_inferior_registers):
3403 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3404 * vaxbsd-nat.c (fetch_inferior_registers)
3405 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3406 PTRACE_TYPE_ARG3.
3407
3408 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
3409 PTRACE_TYPE_ARG3.
3410 * infptrace.c (call_ptrace, child_resume, attach, detach)
3411 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
3412 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3413 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
3414 PTRACE_TYPE_ARG3.
3415
3416 2004-08-14 Mark Kettenis <kettenis@gnu.org>
3417
3418 * defs.h: Remove out-of-date comment.
3419 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
3420 [!GETENV_PROVIDED] (getenv): Remove prototype.
3421
3422 * standalone.c: Remove file.
3423 * Makefile.in (standalone.o): Remove dependency.
3424
3425 * i386-linux-nat.c (dummy_sse_values): Remove function and
3426 prototype.
3427 (i386_linux_dr_get): Fix typo in comment.
3428 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
3429
3430 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
3431
3432 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
3433 from declaration.
3434 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
3435 from definition.
3436
3437 2004-08-13 Mark Kettenis <kettenis@gnu.org>
3438
3439 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
3440 parenthesis in definition.
3441 * configure: Regenerated.
3442
3443 2004-08-12 Michael Chastain <mec.gnu@mindspring.com>
3444
3445 * PROBLEMS: Mention build/1411.
3446
3447 2004-08-09 Robert Millan <robertmh@gnu.org>
3448
3449 Committed by Nathanael Nerode.
3450 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
3451 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
3452
3453 2004-08-12 Andrew Cagney <cagney@gnu.org>
3454
3455 * NEWS: Mention fixes in GDB 6.2.1.
3456 * PROBLEMS: Remove mention of mips-irix.
3457
3458 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3459
3460 * config/powerpc/xm-aix.h: Delete.
3461 * config/powerpc/aix.mh (MH_FILE): Remove.
3462 * config/powerpc/aix432.mh (MH_FILE): Remove.
3463
3464 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3465
3466 * config/powerpc/aix.mh: Remove obsolete comment.
3467 * config/powerpc/aix432.mh: Likewise.
3468
3469 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3470
3471 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
3472
3473 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3474
3475 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
3476 this file is now empty.
3477 * config/xm-aix4.h: Remove, this file is no longer included
3478 anywhere.
3479
3480 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3481
3482 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
3483 that file is now empty.
3484 (termdef): Remove prototype, function no longer used.
3485
3486 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3487
3488 * doc/gdbint.texinfo (Host Definition): Remove documentation
3489 for USE_O_NOCTTY, no longer used.
3490 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
3491 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
3492
3493 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3494
3495 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
3496 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
3497 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
3498
3499 2004-08-11 Mark Kettenis <kettenis@gnu.org>
3500
3501 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
3502 instead of FIVE_ARG_PTRACE.
3503
3504 * inflow.c (O_NOCTTY): Define to zero if not already defined.
3505 (new_tty): Use O_NOCTTY unconditionally.
3506
3507 2004-08-10 Mark Kettenis <kettenis@gnu.org>
3508
3509 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
3510 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
3511 fflush on stdout.
3512
3513 2004-08-10 Joel Brobecker <brobecker@gnat.com>
3514
3515 * xcoff_symfile_finish: Replace last call to xmfree by call
3516 to xfree.
3517
3518 2004-08-10 Andrew Cagney <cagney@gnu.org>
3519
3520 * main.c (captured_main): Delete call to init_malloc.
3521 * defs.h (init_malloc): Delete declaration.
3522 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
3523 (init_malloc): Delete functions.
3524
3525 * defs.h (xmfree): Delete.
3526 * utils.c (xmfree): Delete function.
3527 (xfree): Inline calls to xmfree and mfree.
3528 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
3529 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
3530 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
3531 * somread.c (som_symfile_finish): Ditto.
3532 * objfiles.c (allocate_objfile, free_objfile):
3533 * nlmread.c (nlm_symfile_finish): Ditto.
3534 * hpread.c (hpread_symfile_finish): Ditto.
3535 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
3536 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
3537 * coffread.c (coff_symfile_finish): Ditto.
3538
3539 * defs.h (xmcalloc): Delete declaration.
3540 * utils.c (xmcalloc): Delete.
3541 (xcalloc): Inline calls to xmcalloc and mcalloc.
3542 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
3543 xcalloc and xfree.
3544 * symtab.c (create_demangled_names_hash): Ditto.
3545
3546 * defs.h (xmrealloc): Delete.
3547 * utils.c (xmrealloc): Delete.
3548 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
3549 * symmisc.c (extend_psymbol_list): Use xrealloc.
3550 * source.c (find_source_lines): Ditto.
3551 * hpread.c (hpread_lookup_type): Ditto.
3552 * dbxread.c (add_bincl_to_list): Ditto.
3553
3554 * utils.c (xmmalloc): Delete.
3555 (xmalloc): Inline xmmalloc and mmalloc calls.
3556 (msavestring): Use xmalloc.
3557 * defs.h (xmmalloc): Delete declaration.
3558 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
3559 xmmalloc.
3560 * symmisc.c (extend_psymbol_list): Ditto.
3561 * symfile.c (init_psymbol_list): Ditto.
3562 * source.c (find_source_lines): Ditto.
3563 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
3564 * elfread.c (elf_symtab_read): Ditto.
3565 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
3566 * coffread.c (coff_symfile_init): Ditto.
3567
3568 2004-08-10 David Carlton <carlton@bactrian.org>
3569
3570 * MAINTAINERS: Remove David Carlton from c++ testsuite
3571 maintainers.
3572
3573 2004-08-10 Jerome Guitton <guitton@gnat.com>
3574
3575 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
3576 print a line feed before the prompt.
3577
3578 2004-08-10 Mark Kettenis <kettenis@gnu.org>
3579
3580 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
3581
3582 2004-08-09 Joel Brobecker <brobecker@gnat.com>
3583
3584 General cleanup of the AIX xm include file:
3585 * config/xm-aix4.h (fd_set): Remove undefine.
3586 Remove include of <sys/select.h>.
3587 (HAVE_TERMIO): Remove define.
3588 (USG): Likewise.
3589 (NULL): Remove redefine.
3590 (alloca): Remove #pragma.
3591 (vfork): Remove define.
3592 (termdef): Remove.
3593 (SIGWINCH_HANDLER): Remove.
3594 (SIGWINCH_HANDLER_BODY): Remove.
3595
3596 2004-08-09 Mark Kettenis <kettenis@gnu.org>
3597
3598 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
3599 GDB_OSABI_OPENBSD_ELF.
3600
3601 2004-08-07 Robert Millan <robertmh@gnu.org>
3602
3603 * bsd-kvm.c: Check for nlist.h before including it.
3604
3605 2004-08-09 Mark Kettenis <kettenis@gnu.org>
3606
3607 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
3608 sigcontext' offset consistency checks for ancient BSD.
3609
3610 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
3611
3612 * configure.in: Check for <sys/types.h>. Check return and
3613 argument types of ptrace.
3614 * configure, config.in: Regenerate.
3615
3616 2004-08-09 Jim Blandy <jimb@redhat.com>
3617
3618 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
3619 rs6000_register_sim_regno): Doc fixes.
3620
3621 2004-08-08 Joel Brobecker <brobecker@gnat.com>
3622
3623 * mips-tdep.c: Include "floatformat.h".
3624 (n32n64_floatformat_always_valid): New function.
3625 (floatformat_n32n64_long_double_big): New constant.
3626 (mips_gdbarch_init): Set size and format of long double
3627 for N32 and N64 ABIs.
3628 * Makefile.in (mips-tdep.o): Update dependencies.
3629
3630 2004-08-08 Andrew Cagney <cagney@gnu.org>
3631
3632 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
3633 print. Improve script's error messages.
3634 * gdbarch.h: Re-generate.
3635
3636 * gdbarch.sh (pformat): New function.
3637 (float_format, double_format, long_double_format): List with bit
3638 members. Use pformat when printing.
3639 * gdbarch.c, gdbarch.h: Re-generate.
3640
3641 2004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
3642
3643 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
3644 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
3645 (ppcnbsd_supply_pcb): New function.
3646 (_initialize_ppcnbsd_nat): New prototype and function.
3647 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
3648 (LOADLIBES): New variable.
3649 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
3650
3651 2004-08-08 Andrew Cagney <cagney@gnu.org>
3652
3653 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
3654 (builtin_type_ieee_double, builtin_type_ia64_quad)
3655 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
3656 BE/LE floating-point types.
3657 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
3658 (builtin_type_ieee_double, builtin_type_ia64_quad)
3659 (builtin_type_ia64_spill): Declare.
3660 * doublest.c (_initialize_doublest, floatformat_ieee_single)
3661 (floatformat_ieee_double, floatformat_arm_ext)
3662 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
3663 of LE/BE floatformats.
3664 * doublest.h: (struct floatformat, floatformat_ieee_single)
3665 (floatformat_ieee_double, floatformat_arm_ext)
3666 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
3667
3668 2004-08-08 Mark Kettenis <kettenis@gnu.org>
3669
3670 * i386gnu-nat.c (gnu_store_registers): Fix typo.
3671
3672 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
3673 instead of regcache_raw_supply when storing the registers.
3674
3675 * i386gnu-nat.c: Update copyright year.
3676 (gnu_store_registers): Don't use deprecated_registers and
3677 deprecated_registers_valid. Use regcache_valid_p and
3678 regcache_raw_supply instead.
3679
3680 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
3681 frame_pc_unwind.
3682
3683 * procfs.c (procfs_pid_to_str): Remove redundant and unused
3684 variables. Incapitalized "process".
3685
3686 * configure.in: Add cursesX to the list of possible curses libs.
3687 Add cursesX.h to the list of possible curses headers.
3688 * configure, config.in: Regenerate.
3689
3690 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
3691
3692 * configure.in: Test for struct lwp in <sys/lwp.h>.
3693 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
3694 the offset of l_addr in struct lwp.
3695
3696 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
3697
3698 * bsd-kvm.c: Include "gdbcore.h"
3699 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
3700
3701 2004-08-07 Andrew Cagney <cagney@gnu.org>
3702
3703 * gdbtypes.c (build_flt, build_complex): New functions.
3704 (gdbtypes_post_init): Use.
3705
3706 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
3707
3708 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
3709 through to builtin_type_uint128.
3710
3711 * c-exp.y: Use builtin_type function to obtain builtin types.
3712
3713 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
3714 builtin_uint128.
3715 * gdbtypes.c (gdbtypes_post_init): Update.
3716 (build_gdbtypes): Move initialization of builtin_type_int0
3717 through to builtin_type_uint128 from here ...
3718 (_initialize_gdbtypes): ... to here.
3719 * d10v-tdep.c (d10v_register_type): Update.
3720
3721 * doublest.c: Update copyright.
3722 (floatformat_from_length): Call error when floatformat is NULL.
3723 (extract_floating_by_length): Remove NULL fmt check.
3724 (store_floating_by_length): Ditto.
3725
3726 2004-08-07 Andrew Cagney <cagney@gnu.org>
3727
3728 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
3729 that the register is valid.
3730
3731 2004-08-05 Mark Kettenis <kettenis@chello.nl>
3732
3733 * i386-linux-tdep.c (i386_linux_sigtramp_start)
3734 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
3735 struct frame_info *. Use safe_frame_unwind_memory instead of
3736 deprecated_read_memory_nobpt.
3737 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
3738 changed signature of i386_linux_sigtramp_start and
3739 i386_linux_rt_sigtramp_start.
3740
3741 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
3742 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
3743 instead of deprecated_read_memory_nobpt.
3744 (i386nbsd_sigtramp_p): Adjust for changed signature of
3745 i386nbsd_sigtramp_offset.
3746
3747 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
3748 safe_frame_unwind_memory instead of target_read_memory.
3749
3750 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
3751 !NO_SYS_FILE.
3752 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
3753 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
3754 (_initialize_kernel_u_addr): Remove prototype and function.
3755 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
3756 !NO_SYS_FILE.
3757 * xcoffread.c: Likewise.
3758
3759 2004-08-06 Mark Kettenis <kettenis@gnu.org>
3760
3761 * vax-nat.c: New file.
3762 * vaxbsd-nat.c: Tweak comment.
3763 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
3764 vaxnbsd-tdep.c.
3765 (vax-nat.o): New dependency.
3766 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
3767 (vax-*-ultrix2*): Remove.
3768 * config/vax/vax.mh: New file.
3769 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
3770 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
3771 (vax_register_u_addr): New prototype.
3772 (REGISTER_U_ADDR): Define using vax_register_u_addr.
3773 * config/vax/vaxult2.mh: Remove file.
3774 * config/vax/vaxult.mh: Remove file.
3775 * config/vax/vaxbsd.mh: Remove file.
3776 * config/vax/vax.mt (TM_FILE): Remove.
3777 * config/vax/tm-vaxbsd.h: Remove file.
3778
3779 2004-08-06 Joel Brobecker <brobecker@gnat.com>
3780
3781 * aix-thread.c (get_signaled_thread): New function.
3782 (iter_trap): Delete, no longer used.
3783 (iter_tid): New function.
3784 (pd_update): Find the thread that received the SIGTRAP signal
3785 by first locating the kernel thread, and then finding its
3786 associated thread.
3787
3788 2004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
3789
3790 * lin-lwp.c (child_wait): Continue inferior after processing
3791 PTRACE_EVENT_CLONE event.
3792
3793 2004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
3794
3795 * MAINTAINERS: Add self to Write-After-Approval.
3796
3797 2004-08-05 Jeff Johnston <jjohnstn@redhat.com>
3798
3799 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
3800 libunwind-xxxx.so" where xxxx is UNW_TARGET.
3801
3802 2004-08-05 Andrew Cagney <cagney@gnu.org>
3803
3804 * config/xm-sysv4.h: Delete file.
3805 * config/mips/xm-irix5.h: Delete file.
3806 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
3807 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
3808 * config/ia64/xm-aix.h: Delete file.
3809 * config/ia64/aix.mh (XM_FILE): Delete.
3810 * config/pa/xm-hppah.h: Delete file.
3811 * config/pa/hpux11w.mh (XM_FILE): Delete.
3812 * config/pa/hpux11.mh (XM_FILE): Delete.
3813 * config/pa/hpux1020.mh (XM_FILE): Delete.
3814 * config/pa/hppahpux.mh (XM_FILE): Delete.
3815
3816 * config/alpha/xm-alphalinux.h: Delete file.
3817 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
3818 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
3819 * config/alpha/xm-alphaosf.h: Delete file.
3820 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
3821 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
3822 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
3823 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
3824
3825 * config/i386/xm-i386v.h: Delete file.
3826 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
3827 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
3828 * config/i386/xm-i386sco.h: Delete file.
3829 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
3830 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
3831 * config/i386/xm-i386v4.h: Delete file.
3832 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
3833 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
3834 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
3835 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
3836
3837 * config/vax/xm-vax.h: Delete file.
3838 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
3839 * config/vax/xm-vaxult2.h: Delete file.
3840 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
3841 * config/vax/vaxult2.mh (XM_FILE): Delete.
3842 * config/vax/xm-vaxult.h: Delete file.
3843 * config/vax/vaxult.mh (XM_FILE): Delete.
3844 * config/vax/xm-vaxbsd.h: Delete file.
3845 * config/vax/vaxbsd.mh (XM_FILE): Delete.
3846
3847 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
3848 * gdbarch.h, gdbarch.c: Re-generate.
3849 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
3850 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
3851 * frame.h: Delete deprecated_read_fp from comments.
3852 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
3853 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
3854
3855 2004-08-04 Mark Kettenis <kettenis@gnu.org>
3856
3857 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
3858 trampoline in OpenBSD 3.5-current.
3859
3860 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
3861 SSE registers.
3862
3863 * Makefile.in: Remove embedded page breaks.
3864
3865 2004-08-04 Jim Blandy <jimb@redhat.com>
3866
3867 * regcache.c (regcache_raw_read): Assert that, after calling
3868 target_fetch_registers, the register we're reading is cached.
3869
3870 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
3871 a call to 'internal_error', with a more helpful error message.
3872 * rs6000-tdep.c (e500_pseudo_register_read,
3873 e500_pseudo_register_write, rs6000_store_return_value): Same.
3874
3875 2004-08-04 Andrew Cagney <cagney@gnu.org>
3876
3877 * Makefile.in: Update dependencies.
3878
3879 2004-08-04 Jim Blandy <jimb@redhat.com>
3880
3881 Change the layout of the PowerPC E500 raw register cache to allow
3882 the lower 32-bit halves of the GPRS to be their own raw registers,
3883 not pseudoregisters.
3884 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
3885 add ppc_ev0_upper_regnum flag.
3886 * rs6000-tdep.c: #include "reggroups.h".
3887 (spe_register_p): Recognize the ev upper half registers as SPE
3888 registers.
3889 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
3890 registers.
3891 (e500_move_ev_register): New function.
3892 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
3893 vector registers are the pseudo-registers now, formed by splicing
3894 together the gprs and the upper-half registers.
3895 (e500_register_reggroup_p): New function.
3896 (P): Macro deleted.
3897 (P8, A4): New macro.
3898 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
3899 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
3900 macros.
3901 (registers_e500): Rearrange register set so that the raw register
3902 set contains 32-bit GPRs and upper-half registers, and the SPE
3903 vector registers become pseudo-registers.
3904 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
3905 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
3906 register numbers are now the same for the E500 as they are for
3907 other PowerPC variants. Register e500_register_reggroup_p as the
3908 register group function for the E500.
3909 * Makefile.in (rs6000-tdep.o): Update dependencies.
3910
3911 Adapt PPC E500 native support to the new raw regcache layout.
3912 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
3913 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
3914 (fetch_spe_register, store_spe_register): Handle fetching/storing
3915 all the SPE registers at once, if regno == -1. These now take
3916 over the job of fetch_spe_registers and store_spe_registers.
3917 (fetch_spe_registers, store_spe_registers): Deleted.
3918 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
3919 unconditionally; they're always raw. Fetch/store SPE upper half
3920 registers, if present, instead of ev registers.
3921 (fetch_register, store_register): Remove sanity checks: gprs are
3922 never pseudo-registers now, so we never need to even mention any
3923 registers that are ever pseudoregisters.
3924
3925 Use a fixed register numbering when communicating with the PowerPC
3926 simulator.
3927 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
3928 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
3929 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
3930 New functions.
3931 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
3932 init_sim_regno_table.
3933 * Makefile.in (gdb_sim_ppc_h): New variable.
3934 (rs6000-tdep.o): Update dependencies.
3935
3936 2004-08-02 Andrew Cagney <cagney@gnu.org>
3937
3938 * cris-tdep.c (cris_register_size): Restore function, still used
3939 locally.
3940
3941 * gdbarch.sh (deprecated_target_read_fp)
3942 (deprecated_frame_locals_address, deprecated_frame_args_address)
3943 (deprecated_frame_chain_valid, deprecated_frame_chain)
3944 (deprecated_init_extra_frame_info, deprecated_pop_frame)
3945 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
3946 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
3947 * gdbarch.h, gdbarch.c: Re-generate.
3948 * regcache.c (deprecated_read_fp): Do not call
3949 DEPRECATED_TARGET_READ_FP_P.
3950 * infcmd.c (default_print_registers_info): Do not call
3951 DEPRECATED_DO_REGISTERS_INFO.
3952 * frame-base.c (default_frame_locals_address): Do not call
3953 DEPRECATED_FRAME_LOCALS_ADDRESS.
3954 (default_frame_args_address): Do not call
3955 DEPRECATED_FRAME_ARGS_ADDRESS.
3956
3957 * gdbarch.sh (deprecated_register_raw_size)
3958 (deprecated_register_virtual_size:int): Delete.
3959 * gdbarch.h, gdbarch.c: Re-generate.
3960 * cris-tdep.c (cris_register_size): Delete.
3961 (cris_gdbarch_init): Update.
3962 * alpha-tdep.c (alpha_register_raw_size)
3963 (alpha_register_virtual_size): Delete.
3964 (alpha_gdbarch_init): Update.
3965
3966 * gdbarch.sh (deprecated_register_virtual_type)
3967 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
3968 (deprecated_dummy_write_sp): Delete.
3969 * gdbarch.h, gdbarch.c: Re-generate.
3970
3971 * gdbarch.sh (deprecated_register_bytes): Delete.
3972 * gdbarch.h, gdbarch.c: Re-generate.
3973 * regcache.c (deprecated_register_bytes): New function.
3974 * regcache.h (deprecated_register_bytes): Declare.
3975 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3976 * v850-tdep.c (v850_gdbarch_init): Update.
3977 * sh64-tdep.c (sh64_gdbarch_init): Update.
3978 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
3979 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3980 * mcore-tdep.c (mcore_gdbarch_init): Update.
3981 * cris-tdep.c (cris_gdbarch_init): Update.
3982 * arm-tdep.c (arm_gdbarch_init): Update.
3983 * remote.c (init_remote_state): Update.
3984 * remote-vx.c (vx_prepare_to_store): Update.
3985 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
3986 * irix5-nat.c (fetch_core_registers): Update.
3987 * cris-tdep.c (cris_register_bytes_ok): Update.
3988 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
3989
3990 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
3991 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
3992 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
3993 (mips_insn16_frame_base_address, mips_insn16_frame_base)
3994 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
3995 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
3996 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
3997 (mips_insn32_frame_base_address, mips_insn32_frame_base)
3998 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
3999 with mips_insn16 and mips_insn32.
4000
4001 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
4002 * rs6000-tdep.c (rs6000_push_dummy_call)
4003 (rs6000_extract_return_value): Use register_size.
4004 * xstormy16-tdep.c (xstormy16_get_saved_register)
4005 (xstormy16_extract_return_value): Ditto.
4006 * valops.c (value_assign): Ditto.
4007 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
4008 * v850-tdep.c (v850_extract_return_value): Ditto.
4009 * tracepoint.c (collect_symbol): Ditto.
4010 * target.c (debug_print_register): Ditto.
4011 * stack.c (frame_info): Ditto.
4012 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
4013 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
4014 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
4015 (store_register_using_P): Ditto.
4016 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
4017 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
4018 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
4019 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
4020 * regcache.c (deprecated_read_register_bytes)
4021 (deprecated_write_register_bytes, read_register)
4022 (write_register): Ditto.
4023 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
4024 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
4025 * monitor.c (monitor_supply_register, monitor_fetch_register)
4026 (monitor_store_register): Ditto.
4027 * mn10300-tdep.c (mn10300_pop_frame_regular)
4028 (mn10300_print_register): Ditto.
4029 * mipsv4-nat.c (fill_fpregset): Ditto.
4030 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
4031 (mips64_fill_fpregset): Ditto.
4032 * mi/mi-main.c (register_changed_p, get_register)
4033 (mi_cmd_data_write_register_values): Ditto.
4034 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
4035 * irix5-nat.c (fill_gregset, fetch_core_registers):
4036 * infrun.c (write_inferior_status_register): Ditto.
4037 * infptrace.c (fetch_register, store_register): Ditto.
4038 * infcmd.c (default_print_registers_info): Ditto.
4039 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
4040 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
4041 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
4042 * hpux-thread.c (hpux_thread_fetch_registers)
4043 (hpux_thread_store_registers): Ditto.
4044 * hppah-nat.c (store_inferior_registers, fetch_register):
4045 * findvar.c (value_from_register): Ditto.
4046 * dve3900-rom.c (fetch_bitmapped_register):
4047 * cris-tdep.c (cris_gdbarch_init): Ditto.
4048 * alpha-tdep.h: Ditto.
4049 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
4050
4051 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
4052 DEPRECATED_REGISTER_RAW_SIZE from comments.
4053 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
4054 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
4055 DEPRECATED_REGISTER_RAW_SIZE.
4056 * findvar.c (value_of_register): Simplify by assuming that the
4057 registers raw and virtual sizes are identical.
4058 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
4059 comment.
4060 * arch-utils.c (generic_register_size): Simplify by assuming
4061 register_type.
4062
4063 * regcache.c (legacy_read_register_gen, real_register)
4064 (legacy_write_register_gen): Delete, not used.
4065
4066 * regcache.c (struct regcache_descr): Delete legacy_p.
4067 (init_legacy_regcache_descr): Delete function.
4068 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
4069 Do not use deprecated register functions.
4070 (regcache_raw_read, deprecated_write_register_gen):
4071 (deprecated_read_register_gen, regcache_raw_write): Delete code
4072 predicated on legacy_p.
4073 (register_size): Delete check against register raw size.
4074
4075 * cris-tdep.c (cris_register_type): Replace
4076 cris_register_virtual_type.
4077 (cris_gdbarch_init): Update, set register_type.
4078
4079 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
4080 * gdbarch.h, gdbarch.c: Re-generate.
4081 * arm-tdep.c (arm_frameless_function_invocation): Delete.
4082 (arm_gdbarch_init) Do not set frameless function invocation.
4083 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
4084 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
4085 * frv-tdep.c (frv_frameless_function_invocation): Delete.
4086 (frv_gdbarch_init): Do not set frameless function invocation.
4087 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
4088 * sh-tdep.c (sh_gdbarch_init): Ditto.
4089 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
4090 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4091 * avr-tdep.c (avr_gdbarch_init): Ditto.
4092
4093 * blockframe.c (legacy_frame_chain_valid): Delete function.
4094
4095 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
4096 and pc. Update comments.
4097 (pc_in_dummy_frame): Delete function.
4098 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
4099 use the "id".
4100 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
4101 call_hi, top and pc, use the id.
4102 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
4103
4104 * dummy-frame.c: Include "gdb_string.h".
4105 (generic_save_call_dummy_addr, generic_push_dummy_frame)
4106 (generic_save_dummy_frame_tos): Delete.
4107 (dummy_frame_push): New function, replaces above.
4108 * dummy-frame.h: Update copyright.
4109 (dummy_frame_push): Declare.
4110 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
4111 (generic_save_call_dummy_addr): Delete declarations.
4112 * infcall.c: Include "dummy-frame.h".
4113 (call_function_by_hand): Add locals caller_regcache,
4114 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
4115 with call to frame_save_as_regcache plus cleanup. Delete calls to
4116 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
4117 Move clear_proceed_status to just before the resume, add call to
4118 dummy_frame_push (discard cleanup).
4119 * Makefile.in (infcall.o): Add $(dummy_frame_h).
4120 (dummy-frame.o): Add $(gdb_string_h).
4121
4122 2004-08-01 Andrew Cagney <cagney@gnu.org>
4123
4124 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
4125 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
4126 * dummy-frame.c (find_dummy_frame): Delete.
4127 (struct dummy_frame_cache, dummy_frame_sniffer)
4128 (dummy_frame_prev_register, dummy_frame_this_id)
4129 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
4130 frame unwinder using a dummy_frame_cache.
4131
4132 2004-08-01 Andrew Cagney <cagney@gnu.org>
4133
4134 * frame.h (frame_save_as_regcache): Declare.
4135 * frame.c (frame_save_as_regcache): New function.
4136 (do_frame_read_register): Replace do_frame_unwind_register.
4137 (frame_pop): Use frame_save_as_regcache.
4138 * dummy-frame.c (generic_push_dummy_frame): Use
4139 frame_save_as_regcache.
4140
4141 2004-08-01 Joel Brobecker <brobecker@gnat.com>
4142
4143 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
4144 file as included until we record the first line in the linetable.
4145
4146 2004-08-01 Andrew Cagney <cagney@gnu.org>
4147
4148 * frame.h (deprecated_pop_dummy_frame)
4149 (deprecated_read_register_dummy)
4150 (deprecated_generic_find_dummy_frame): Delete.
4151 * dummy-frame.c (deprecated_generic_find_dummy_frame)
4152 (deprecated_read_register_dummy)
4153 (deprecated_find_dummy_frame_regcache)
4154 (discard_innermost_dummy)
4155 (deprecated_pop_dummy_frame): Delete.
4156 (dummy_frame_this_id): Simplify.
4157 (struct dummy_frame): Delete "fp" and "sp".
4158 (find_dummy_frame): Simplify.
4159 (generic_push_dummy_frame): Do not set "fp" or "sp".
4160 (fprint_dummy_frames): Do not print "fp" and "sp"
4161
4162 2004-08-01 Mark Kettenis <kettenis@gnu.org>
4163
4164 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
4165 (struct i386_insn): New structure.
4166 (i386_match_insn): New function.
4167 (i386_frame_setup_skip_insns): New variable.
4168 (i386_analyze_frame_setup): Change to use i386_match_insn and the
4169 array i386_frame_setup_insns of instructions that should be
4170 skipped inside the frame setup sequence.
4171
4172 2004-08-01 Andrew Cagney <cagney@gnu.org>
4173
4174 * frame.h (deprecated_frame_xmalloc_with_cleanup)
4175 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
4176 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
4177 * stack.c (frame_info): Delete references to
4178 DEPRECATED_FRAME_INIT_SAVED_REGS and
4179 deprecated_get_frame_saved_regs.
4180 * frame.c (struct frame_info): Delete saved_regs and extra_info.
4181 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
4182 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
4183 (frame_unwind_register_signed)
4184 (frame_unwind_register_unsigned)
4185 (frame_unwind_unsigned_register): Use register_size.
4186 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
4187 (deprecated_frame_xmalloc_with_cleanup)
4188 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
4189 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
4190
4191 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
4192 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
4193 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
4194 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
4195
4196 * infcall.c (call_function_by_hand): Do not use
4197 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
4198 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
4199 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
4200 DEPRECATED_STACK_ALIGN.
4201
4202 2004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
4203
4204 Committed by Andrew Cagney.
4205 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
4206
4207 2004-08-01 Andrew Cagney <cagney@gnu.org>
4208
4209 * mips-tdep.c (mips16_frame_cache)
4210 (mips16_frame_this_id, mips16_frame_prev_register)
4211 (mips16_frame_unwind, mips16_frame_sniffer)
4212 (mips16_frame_base_address, mips16_frame_base)
4213 (mips16_frame_base_sniffer, mips32_frame_cache)
4214 (mips32_frame_this_id, mips32_frame_prev_register)
4215 (mips32_frame_unwind, mips32_frame_sniffer)
4216 (mips32_frame_base_address, mips32_frame_base)
4217 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
4218 separate heuristic mips16 and mips32 unwinders.
4219 (mips_stub_frame_cache, mips_stub_frame_this_id)
4220 (mips_stub_frame_prev_register)
4221 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
4222 (mips_stub_frame_base_address, mips_stub_frame_base)
4223 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
4224 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
4225 match true mdebug frames.
4226 (non_heuristic_proc_desc): Add forward declaration.
4227
4228 2004-08-01 Andrew Cagney <cagney@gnu.org>
4229
4230 * config/mips/tm-irix6.h: Delete file.
4231 * config/mips/tm-irix5.h: Delete file.
4232 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
4233 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
4234
4235 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
4236 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
4237 * config/nm-gnu.h (NO_CORE_OPS): Delete.
4238 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
4239 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
4240 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
4241 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
4242 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
4243 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
4244 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
4245 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
4246 (TARGET_SIGNAL_RAW_VALUES): Delete.
4247 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
4248 Delete.
4249 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
4250 (TARGET_HW_WATCH_LIMIT): Delete.
4251 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
4252 * minimon.h: Delete file.
4253
4254 * trad-frame.c (trad_frame_get_this_base)
4255 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
4256 functions.
4257 * trad-frame.h (trad_frame_set_this_base)
4258 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
4259
4260 2004-07-31 Andrew Cagney <cagney@gnu.org>
4261
4262 * trad-frame.c (trad_frame_get_prev_register): Rename
4263 trad_frame_get_prev_register.
4264 * vax-tdep.c (vax_frame_prev_register): Update.
4265 * trad-frame.h: Update.
4266 * trad-frame.c (trad_frame_get_register): Update.
4267 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
4268 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
4269 Update.
4270 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
4271 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
4272 Update.
4273 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
4274 Update.
4275 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
4276 Update.
4277 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
4278 Update.
4279 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
4280 Update.
4281 * s390-tdep.c (s390_frame_prev_register)
4282 (s390_stub_frame_prev_register)
4283 (s390_sigtramp_frame_prev_register): Update.
4284 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
4285 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
4286 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
4287 * m88k-tdep.c (m88k_frame_prev_register)
4288 * m68hc11-tdep.c (m68hc11_frame_prev_register)
4289 * m32r-tdep.c (m32r_frame_prev_register): Update.
4290 * hppa-tdep.c (hppa_frame_prev_register_helper)
4291 * frv-tdep.c (frv_frame_prev_register): Update.
4292 * d10v-tdep.c (d10v_frame_prev_register): Update.
4293 * cris-tdep.c (cris_frame_prev_register): Update.
4294 * avr-tdep.c (avr_frame_prev_register): Update.
4295 * arm-tdep.c (arm_prologue_prev_register)
4296 (arm_sigtramp_prev_register): Update.
4297
4298 2004-07-31 Andrew Cagney <cagney@gnu.org>
4299
4300 * frame.h (legacy_saved_regs_unwind)
4301 (legacy_frame_chain_valid, legacy_frame_p)
4302 (enum frame_type): Delete UNKNOWN_FRAME.
4303 * dummy-frame.c (dummy_frame_this_id): Simplify.
4304 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
4305 * frame.c (struct frame_info): Delete the field "type".
4306 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
4307 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
4308 (legacy_saved_regs_unwind, legacy_frame_p)
4309 (frame_type_from_pc): Delete.
4310 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
4311 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
4312
4313 2004-07-31 Mark Kettenis <kettenis@gnu.org>
4314
4315 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
4316 indentation.
4317
4318 * mips-nat.c: Remove file.
4319 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
4320 (mips-nat.o): Remove dependency.
4321
4322 * infptrace.c: Update copyright year.
4323 (fetch_register): Pass NULL in regcache_raw_supply call instead of
4324 explicitly setting the buffer to all zeroes.
4325
4326 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
4327 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
4328
4329 2004-07-30 Andrew Cagney <cagney@gnu.org>
4330
4331 * GDB 6.2 released from gdb_6_2-branch.
4332
4333 2004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
4334
4335 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
4336
4337 * exec.c (exec_file_attach):
4338 * nto-tdep.c (nto_find_and_open_solib):
4339 * pa64solib.c (pa64_solib_sizeof_symbol_table):
4340 * solib.c (solib_open):
4341 * somsolib.c (som_solib_sizeof_symbol_table):
4342 * source.c (is_regular_file, openp, open_source_file):
4343 * symfile.c (symfile_bfd_open):
4344 * wince.c (upload_to_device): Differentiate between the search for
4345 binary and source files.
4346
4347 2004-07-30 Andrew Cagney <cagney@gnu.org>
4348
4349 * complaints.c (_initialize_complaints): Pass NULL to
4350 add_setshow_zinteger_cmd for help_doc.
4351 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
4352
4353 2004-07-30 Andrew Cagney <cagney@gnu.org>
4354
4355 Fix PR i18n/761.
4356 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
4357 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
4358 $(PACKAGE).pot and update-po.
4359 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
4360 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
4361 (update-po): New rules.
4362 (localedir): Define using autoconf.
4363 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
4364 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
4365 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
4366 * configure.in: Generate CATALOGS and LINGUAS from contents of
4367 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
4368 * configure: Re-generate.
4369 * po/gdbtext: New file
4370
4371 2004-07-30 Jerome Guitton <guitton@gnat.com>
4372
4373 * MAINTAINERS: Reorder Write After Approval list in alphabetical
4374 order.
4375
4376 2004-07-30 David Lecomber <dsl@sources.redhat.com>
4377
4378 * dwarf2read.c (read_file_scope): Set producer if attribute
4379 present.
4380 (struct dwarf2_cu): Added new member producer.
4381
4382 2004-07-30 Jerome Guitton <guitton@gnat.com>
4383
4384 * inflow.c (kill_command): release file handles in BFD.
4385 * exec.c (exec_file_attach): Ditto.
4386 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
4387
4388 2004-07-29 Andrew Cagney <cagney@gnu.org>
4389
4390 * PROBLEMS (mips-irix): Note that it is broken.
4391
4392 2004-07-29 Andrew Cagney <cagney@gnu.org>
4393
4394 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
4395 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
4396
4397 * config/xm-nbsd.h: Delete file.
4398 * config/arm/xm-nbsd.h: Delete file.
4399 * config/i386/xm-nbsd.h: Delete file.
4400 * config/ns32k/xm-nbsd.h: Delete file.
4401 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
4402 * config/i386/nbsdelf.mh (XM_FILE): Delete.
4403 * config/i386/nbsdaout.mh (XM_FILE): Delete.
4404 * config/arm/nbsdelf.mh (XM_FILE): Delete.
4405 * config/arm/nbsdaout.mh (XM_FILE): Delete.
4406
4407 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
4408 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
4409 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
4410 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
4411 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
4412 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
4413
4414 * config/powerpc/xm-linux.h: Delete empty file.
4415 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
4416 * config/powerpc/linux.mh (XM_FILE): Delete.
4417 * config/m68k/xm-linux.h: Delete empty file.
4418 * config/m68k/linux.mh (XM_FILE): Delete.
4419 * config/ia64/xm-linux.h: Delete empty file.
4420 * config/ia64/linux.mh (XM_FILE): Delete.
4421 * config/arm/xm-linux.h: Delete empty file.
4422 * config/arm/linux.mh (XM_FILE): Delete.
4423
4424 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4425 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
4426 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4427 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
4428 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4429 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
4430 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4431 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
4432
4433 * config/m68k/xm-m68k.h: Delete file.
4434 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
4435 copyright.
4436 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
4437 * config/pa/xm-linux.h: Delete empty file.
4438 * config/pa/linux.mh (XM_FILE): Delete.
4439 * config/i386/xm-i386.h: Delete empty file.
4440 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
4441 "i386/xm-i386.h".
4442 * config/i386/obsdaout.mh (XM_FILE): Delete.
4443 * config/i386/obsd64.mh (XM_FILE): Delete.
4444 * config/i386/fbsd64.mh (XM_FILE): Delete.
4445 * config/i386/nto.mh (XM_FILE): Delete.
4446 * config/i386/obsd.mh (XM_FILE): Delete.
4447 * config/i386/linux64.mh (XM_FILE): Delete.
4448 * config/i386/linux.mh (XM_FILE): Delete.
4449 * config/i386/i386sol2.mh (XM_FILE): Delete.
4450 * config/i386/i386gnu.mh (XM_FILE): Delete.
4451 * config/i386/fbsd.mh (XM_FILE): Delete.
4452 * config/i386/nbsd64.mh (XM_FILE): Delete.
4453
4454 2004-07-29 Andrew Cagney <cagney@gnu.org>
4455
4456 * config/pa/xm-linux.h: Do not include "floatformat.h".
4457 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4458 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
4459 * config/i386/xm-i386.h: Do not include "floatformat.h".
4460 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4461 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
4462 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4463 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
4464 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
4465 GDB_HOST_LONG_DOUBLE_FORMAT instead.
4466 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
4467 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
4468 * configure, config.in: Regenerate.
4469 * configure.host (gdb_host_float_format, gdb_host_double_format)
4470 (gdb_host_long_double_format): Set according to the host.
4471
4472 2004-07-29 Andrew Cagney <cagney@gnu.org>
4473
4474 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
4475
4476 2004-07-28 Andrew Cagney <cagney@gnu.org>
4477
4478 * PROBLEMS: Mention threads/1650.
4479 * NEWS: Mention the NPTL fix.
4480
4481 2004-07-28 Andrew Cagney <cagney@gnu.org>
4482
4483 * cli/cli-decode.c (add_setshow_cmd): Delete function.
4484 (add_setshow_cmd_full): Make static.
4485 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
4486 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
4487 * cli/cli-decode.c (add_setshow_filename_cmd)
4488 (add_setshow_string_cmd): New functions.
4489 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
4490 * mips-tdep.c (_initialize_mips_tdep): Update.
4491 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
4492 * cli/cli-logging.c (_initialize_cli_logging): Update.
4493 * complaints.c (_initialize_complaints): Update.
4494 * remote.c (_initialize_remote): Update.
4495
4496 2004-07-28 Andrew Cagney <cagney@gnu.org>
4497
4498 * cli/cli-decode.c (add_setshow_zinteger_cmd)
4499 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
4500 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
4501 print parameters. Make string parameters constant.
4502 * command.h: Update. Update copyright.
4503 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
4504 * observer.c (_initialize_observer): Ditto.
4505 * frame.c (_initialize_frame): Ditto.
4506 * complaints.c (_initialize_complaints): Ditto.
4507 * maint.c (_initialize_maint_cmds): Ditto.
4508 * target.c (initialize_targets): Ditto.
4509 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
4510 * infcall.c (_initialize_infcall): Ditto.
4511 * arm-tdep.c (_initialize_arm_tdep): Ditto.
4512 * m32r-rom.c (_initialize_m32r_rom): Ditto.
4513 * remote-rdi.c (_initialize_remote_rdi): Ditto.
4514 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
4515 * mips-tdep.c (_initialize_mips_tdep): Ditto.
4516
4517 2004-07-28 Andrew Cagney <cagney@gnu.org>
4518
4519 * gdbtypes.c (lookup_primitive_typename): Delete function.
4520 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
4521 * ada-lex.l: Use language_lookup_primitive_type_by_name.
4522 * gdbtypes.c (lookup_typename): Ditto.
4523 * f-exp.y (yylex): Ditto.
4524 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
4525
4526 * scm-lang.c (c_builtin_types): Delete extern declaration.
4527 (scm_language_defn): Replace
4528 string_char_type and primitive_type_vector with
4529 la_language_arch_info.
4530 * jv-lang.c (java_language_defn): Replace
4531 string_char_type and primitive_type_vector with
4532 la_language_arch_info.
4533 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
4534 c_builtin_types in comment.
4535 * c-lang.h (struct language_arch_info): Declare opaque.
4536 (c_language_arch_info): Declare.
4537 (c_builtin_types): Delete declaration.
4538 * c-lang.c (c_language_arch_info): Set string_char_type to
4539 builtin_char, not builtin_true_char. Make global.
4540 (c_builtin_types): Delete array.
4541 (asm_language_defn, minimal_language_defn): Replace
4542 string_char_type and primitive_type_vector with
4543 la_language_arch_info.
4544
4545 2004-07-28 Andrew Cagney <cagney@gnu.org>
4546
4547 * gdbtypes.h (struct builtin_type): Rename true_char to
4548 builtin_true_char.
4549 * gdbtypes.c (gdbtypes_post_init): Update.
4550 * c-lang.c (arch_info): New function.
4551 (enum c_primitive_types): New enum.
4552 (c_language_defn): Instead of string_char_type and
4553 primitive_type_vector set la_language_arch_info.
4554
4555 2004-07-28 Andrew Cagney <cagney@gnu.org>
4556
4557 * language.h (struct language_arch_info): Fix typo
4558 s/primative/primitive/.
4559 * gdbtypes.c (lookup_primitive_typename): Ditto.
4560 * language.c (language_lookup_primitive_type_by_name)
4561 (unknown_language_arch_info): Ditto.
4562
4563 2004-07-27 Andrew Cagney <cagney@gnu.org>
4564
4565 * defs.h (enum language): Add nr_languages.
4566 * language.h (struct language_arch_info): Define.
4567 (struct language_defn): Add la_language_arch_info.
4568 (language_lookup_primative_type_by_name): Declare.
4569 (language_string_char_type): Declare.
4570 * language.c (_initialize_language, language_gdbarch_post_init)
4571 (struct language_gdbarch, language_gdbarch_data): Implement
4572 per-architecture language information.
4573 (unknown_language_arch_info, language_string_char_type)
4574 (language_lookup_primative_type_by_name): New functions.
4575 (unknown_language_defn, auto_language_defn)
4576 (local_language_defn): Set la_language_arch_info to
4577 unknown_language_arch_info.
4578 (unknown_builtin_types): Delete.
4579 * gdbtypes.c (lookup_primitive_typename): Use
4580 language_lookup_primative_type_by_name.
4581 (create_string_type): Use language_string_char_type.
4582 * values.c (value_from_string): Use language_string_char_type.
4583 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
4584 * p-lang.c (pascal_language_defn): Ditto.
4585 * m2-lang.c (m2_language_defn): Ditto.
4586 * jv-lang.c (java_language_defn): Ditto.
4587 * objc-lang.c (objc_language_defn): Ditto.
4588 * f-lang.c (f_language_defn): Ditto.
4589 * c-lang.c (c_language_defn, cplus_language_defn)
4590 (asm_language_defn, minimal_language_defn): Ditto.
4591
4592 2004-07-27 Andrew Cagney <cagney@gnu.org>
4593
4594 * gdbtypes.h (struct builtin_type): Declare.
4595 (builtin_type): Declare.
4596 * d10v-tdep.c (d10v_register_type): Use builtin_type.
4597 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
4598 (gdbtypes_post_init): New function.
4599 (builtin_type): New function.
4600
4601 2004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
4602
4603 * remote-m32r-sdi.c: Fix breakpoint bug.
4604 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
4605 recv_char_data, recv_long_data): New functions to replace communication
4606 sequences.
4607
4608 2004-07-26 Michael Chastain <mec.gnu@mindspring.com>
4609
4610 Document PR threads/1650.
4611 * PROBLEMS (Threads): Document problem with many threads
4612
4613 2004-07-26 Andrew Cagney <cagney@gnu.org>
4614
4615 * gdb-mi.el: Move from here ...
4616 * mi/gdb-mi.el: ... to here.
4617
4618 2004-07-26 Andrew Cagney <cagney@gnu.org>
4619
4620 Problem reported by Ashley Pittman <ashley@quadrics.com>.
4621 * main.c (captured_main): When in batch mode always detach.
4622
4623 2004-07-26 Andrew Cagney <cagney@gnu.org>
4624
4625 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
4626 and h8300 as broken.
4627 * NEWS: END-OF-LIFE frame compatibility module.
4628 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
4629 specific comments.
4630
4631 2004-07-26 Andrew Cagney <cagney@gnu.org>
4632
4633 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
4634 * xcoffsolib.c (_initialize_xcoffsolib): Update.
4635 * wince.c (_initialize_wince): Update.
4636 * win32-nat.c (_initialize_win32_nat): Update.
4637 * varobj.c (_initialize_varobj): Update.
4638 * valops.c (_initialize_valops): Update.
4639 * utils.c (initialize_utils, initialize_utils): Update.
4640 * tui/tui-win.c (_initialize_tui_win): Update.
4641 * top.c (init_main): Update.
4642 * symfile.c (_initialize_symfile): Update.
4643 * source.c (_initialize_source): Update.
4644 * somsolib.c (_initialize_som_solib): Update.
4645 * solib.c (_initialize_solib): Update.
4646 * solib-frv.c (_initialize_frv_solib): Update.
4647 * serial.c (_initialize_serial): Update.
4648 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
4649 * remote.c (_initialize_remote, _initialize_remote): Update.
4650 * remote-vx.c (_initialize_vx): Update.
4651 * remote-utils.c (_initialize_sr_support): Update.
4652 * remote-sds.c (_initialize_remote_sds): Update.
4653 * remote-mips.c (_initialize_remote_mips): Update.
4654 * remote-e7000.c (_initialize_remote_e7000): Update.
4655 * proc-api.c (_initialize_proc_api): Update.
4656 * printcmd.c: Update.
4657 * parse.c (_initialize_parse): Update.
4658 * pa64solib.c (_initialize_pa64_solib): Update.
4659 * p-valprint.c (_initialize_pascal_valprint): Update.
4660 * monitor.c (_initialize_remote_monitors): Update.
4661 * mips-tdep.c (_initialize_mips_tdep): Update.
4662 * mcore-tdep.c (_initialize_mcore_tdep): Update.
4663 * maint.c (_initialize_maint_cmds): Update.
4664 * lin-lwp.c (_initialize_lin_lwp): Update.
4665 * language.c (_initialize_language): Update.
4666 * kod.c (_initialize_kod): Update.
4667 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
4668 * i386-tdep.c (_initialize_i386_tdep): Update.
4669 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
4670 * gdbarch.sh: Update.
4671 * gdbarch.c: Re-generate.
4672 * gdb-events.sh: Update.
4673 * gdb-events.c: Re-generate.
4674 * frame.c (_initialize_frame): Update.
4675 * exec.c: Update.
4676 * demangle.c (_initialize_demangler): Update.
4677 * dcache.c (_initialize_dcache): Update.
4678 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
4679 * cp-valprint.c (_initialize_cp_valprint): Update.
4680 * corefile.c (_initialize_core): Update.
4681 * command.h: Update.
4682 * cli/cli-decode.h: Update.
4683 * cli/cli-cmds.c (init_cli_cmds): Update.
4684 * charset.c (_initialize_charset): Update.
4685 * breakpoint.c (_initialize_breakpoint): Update.
4686 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
4687 * alpha-tdep.c (_initialize_alpha_tdep): Update.
4688 * aix-thread.c (_initialize_aix_thread): Update.
4689
4690 2004-07-24 Mark Kettenis <kettenis@gnu.org>
4691
4692 Partial fix for PR backtrace/1718.
4693 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
4694 that GCC migrates into the prolugue. Don't handle any
4695 instructions that clobber %ebx.
4696
4697 2004-07-23 Andrew Cagney <cagney@gnu.org>
4698
4699 Use regcache_raw_collect instead of regcache_collect.
4700 * regcache.h (regcache_collect): Delete declaration.
4701 * regcache.c (regcache_colect): Delete function.
4702 * win32-nat.c (do_child_store_inferior_registers): Update.
4703 * sol-thread.c (sol_thread_store_registers): Update.
4704 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
4705 * rs6000-nat.c (store_register): Update.
4706 * remote.c (store_register_using_P, remote_store_registers): Update.
4707 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
4708 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
4709 (fill_vrregset, store_spe_registers, fill_gregset)
4710 (fill_gregset): Update.
4711 * nto-procfs.c (procfs_store_registers): Update.
4712 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
4713 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
4714 * m68klinux-nat.c (store_register, fill_gregset): Update.
4715 * m68k-tdep.c (fill_gregset): Update.
4716 * infptrace.c (store_register): Update.
4717 * i386-nto-tdep.c (i386nto_regset_fill): Update.
4718 * i386-linux-nat.c (store_register, fill_gregset): Update.
4719 * hppa-linux-nat.c (fill_gregset): Update.
4720 * go32-nat.c (store_register): Update.
4721 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
4722 (store_fp_regs): Update.
4723 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
4724 (store_nwfpe_extended, store_fpregister, store_fpregs)
4725 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
4726 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
4727 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
4728 (store_regs_user_thread, store_regs_kernel_thread): Update.
4729
4730 2004-07-24 Mark Kettenis <kettenis@gnu.org>
4731
4732 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
4733 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
4734 encoding.
4735 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
4736 member of `struct comp_unit'.
4737
4738 2004-07-23 Andrew Cagney <cagney@gnu.org>
4739
4740 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
4741 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
4742
4743 2004-07-23 Martin Hunt <hunt@redhat.com>
4744 Kevin Buettner <kevinb@redhat.com>
4745
4746 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
4747 alignment was being added to the offset instead of multiplied.
4748
4749 2004-07-23 Mark Kettenis <kettenis@gnu.org>
4750
4751 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
4752 changed signal trampoline in OpenBSD 3.5-current.
4753
4754 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
4755 <machine/pcb.h> and "bsd-kvm.h".
4756 (sparc64nbsd_supply_pcb): New function.
4757 (_initialize_sparc64nbsd_nat): Renamed from
4758 _initialize_sparcnbsd_nat. Enable libkvm interface.
4759 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
4760 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
4761 (LOADLIBES): New variable.
4762
4763 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
4764
4765 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
4766
4767 2004-07-21 Andrew Cagney <cagney@gnu.org>
4768
4769 Use regcache_raw_supply instead of supply_register.
4770 * regcache.h (supply_register): Delete declaration.
4771 * regcache.c (supply_register): Delete function.
4772 * wince.c (do_child_fetch_inferior_registers): Update.
4773 * win32-nat.c (do_child_fetch_inferior_registers)
4774 (fetch_elf_core_registers): Update.
4775 * v850ice.c (v850ice_fetch_registers): Update.
4776 * thread-db.c (thread_db_store_registers): Update.
4777 * sol-thread.c (sol_thread_store_registers): Update.
4778 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
4779 * rs6000-nat.c (fetch_register): Update.
4780 * rom68k-rom.c (rom68k_supply_one_register): Update.
4781 * remote.c (remote_wait, remote_async_wait): Update.
4782 * remote-st.c (get_hex_regs): Update.
4783 * remote-sim.c (gdbsim_fetch_register): Update.
4784 * remote-sds.c (sds_fetch_registers): Update.
4785 * remote-rdp.c (remote_rdp_fetch_register): Update.
4786 * remote-rdi.c (arm_rdi_fetch_registers): Update.
4787 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
4788 * remote-m32r-sdi.c (m32r_fetch_register): Update.
4789 * remote-hms.c (init_hms_cmds): Update.
4790 * remote-est.c (init_est_cmds): Update.
4791 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
4792 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
4793 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
4794 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
4795 (fetch_register, supply_vrregset, supply_vrregset)
4796 (fetch_spe_registers): Update.
4797 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
4798 * monitor.c (monitor_supply_register): Update.
4799 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
4800 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
4801 (mipsnbsd_supply_fpreg): Update.
4802 * mips-nat.c (fetch_inferior_registers)
4803 (fetch_core_registers): Update.
4804 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
4805 (supply_fpregset, mips64_supply_gregset)
4806 (mips64_supply_fpregset): Update.
4807 * m68klinux-nat.c (fetch_register, supply_gregset)
4808 (supply_fpregset): Update.
4809 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
4810 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
4811 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
4812 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
4813 * infptrace.c (fetch_register): Update.
4814 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
4815 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
4816 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
4817 (gnu_fetch_registers, gnu_store_registers): Update.
4818 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
4819 * i386-linux-nat.c (fetch_register, supply_gregset)
4820 (dummy_sse_values): Update.
4821 * hpux-thread.c (hpux_thread_fetch_registers): Update.
4822 * hppah-nat.c (fetch_register): Update.
4823 * hppa-linux-nat.c (fetch_register, supply_gregset)
4824 (supply_fpregset): Update.
4825 * go32-nat.c (fetch_register): Update.
4826 * dve3900-rom.c (fetch_bitmapped_register)
4827 (_initialize_r3900_rom): Update.
4828 * cris-tdep.c (supply_gregset): Update.
4829 * abug-rom.c (init_abug_cmds): Update.
4830 * core-aout.c (fetch_core_registers): Update.
4831 * armnbsd-nat.c (supply_gregset, supply_fparegset)
4832 (fetch_register, fetch_fp_register): Update.
4833 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
4834 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
4835 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
4836 * alphanbsd-tdep.c (fetch_core_registers): Update.
4837 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
4838 * alpha-nat.c (fetch_osf_core_registers)
4839 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
4840 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
4841 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
4842
4843 2004-07-21 Andrew Cagney <cagney@gnu.org>
4844
4845 * PROBLEMS: Mention breakpoints/1702.
4846 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
4847 that is known to work.
4848
4849 2004-07-21 Andrew Cagney <cagney@gnu.org>
4850
4851 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
4852 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
4853 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
4854 (handle_inferior_event): Wrap call to deprecated
4855 IGNORE_HELPER_CALL in #ifdef.
4856 * config/mips/tm-nbsd.h: Update.
4857
4858 2004-07-20 Jim Blandy <jimb@redhat.com>
4859
4860 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
4861 bfd_mach_ppc has no segment registers.
4862
4863 Include PowerPC SPR numbers for special-purpose registers.
4864 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
4865 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
4866 new member in initializer.
4867 (S, S4, SN4, S64): New macros for defining special-purpose
4868 registers.
4869 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
4870 registers_403, registers_403GC, registers_505, registers_860,
4871 registers_601, registers_602, registers_603, registers_604,
4872 registers_750, registers_e500): Use them.
4873
4874 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
4875 replace references with expression used to initialize variable.
4876
4877 2004-07-20 Andrew Cagney <cagney@gnu.org>
4878
4879 * breakpoint.c (deprecated_read_memory_nobpt): Rename
4880 read_memory_nobpt.
4881 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
4882 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
4883 (s390_sigtramp_frame_sniffer): Update.
4884 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
4885 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
4886 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
4887 (mips32_fetch_instruction): Update.
4888 * mcore-tdep.c (get_insn): Update.
4889 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
4890 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
4891 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
4892 * i386-linux-tdep.c (i386_linux_sigtramp_start)
4893 (i386_linux_rt_sigtramp_start): Update.
4894 * i386-linux-nat.c (child_resume): Update.
4895 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
4896 * hppa-linux-tdep.c (insns_match_pattern): Update.
4897 * gdbcore.h: Update.
4898 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
4899 * frame.c (safe_frame_unwind_memory): Update.
4900 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
4901 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
4902 * alpha-tdep.c (alpha_read_insn): Update.
4903
4904 2004-07-20 Andrew Cagney <cagney@gnu.org>
4905
4906 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
4907 containing both bytes and mask. Add "frame_type".
4908 * tramp-frame.c (tramp_frame_start): Update.
4909 (tramp_frame_prepend_unwinder): Update.
4910 * mips-linux-tdep.c (mips_linux_o32_sigframe)
4911 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
4912 (mips_linux_n64_rt_sigframe): Update. Make "static const".
4913 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
4914
4915 2004-07-19 Eli Zaretskii <eliz@gnu.org>
4916
4917 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
4918 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
4919 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
4920 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
4921
4922 2004-07-17 Andrew Cagney <cagney@gnu.org>
4923
4924 * NEWS, PROBLEMS: Update for 6.2.
4925
4926 * README: Update to 6.2.
4927
4928 * utils.c (xvasprintf): Call xstrvprintf.
4929
4930 * parse.c: Update copyright.
4931 (null_post_parser): Eliminate ARGSUSED.
4932
4933 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
4934 * tui/tui-win.c (tui_get_cmd_list): Ditto.
4935 * symfile-mem.c (_initialize_symfile_mem): Ditto.
4936
4937 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
4938 * ppc-linux-nat.c: Use "Linux kernel".
4939 * hppa-linux-tdep.c: Use GNU/Linux.
4940 * hppa-linux-nat.c: Use GNU/Linux.
4941 * dwarfread.c: Add [sic] to use of Linux.
4942
4943 * hppa-linux-nat.c: Do not include <string.h>.
4944 (supply_fpregset): Remove "register" attribute.
4945
4946 * solib-frv.c (fetch_loadmap): Use xfree, not free.
4947
4948 2004-07-17 Mark Kettenis <kettenis@gnu.org>
4949
4950 * configure.in: Define _MSE_INT_H on Solaris 9 too.
4951 * configure, config.in: Regenerated.
4952
4953 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
4954 "bsd-kvm.h".
4955 (vaxbsd_supply_pcb): New function.
4956 (_initialize_vaxbsd_nat): New prototype and function.
4957 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
4958 solib-sunos.o.
4959 (LOADLIBES): New variable.
4960 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
4961 (LOADLIBES): New variable.
4962 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
4963 (LOADLIBES): New variable.
4964 * Makefile.in (vaxbsd-nat.o): Update dependencies.
4965
4966 2004-07-16 Andrew Cagney <cagney@gnu.org>
4967
4968 * defs.h (event_loop_p): Replace variable declaration with macro,
4969 always 1.
4970 * main.c (captured_main): Delete options "-async" and "-noasync".
4971 (event_loop_p): Delete variable.
4972 * NEWS: Mention that "-async" and "-noasync" were removed.
4973
4974 2004-07-16 Andrew Cagney <cagney@gnu.org>
4975
4976 * remote-m32r-sdi.c: Re-indent.
4977
4978 2004-07-16 Jim Blandy <jimb@redhat.com>
4979
4980 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
4981 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
4982 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
4983 missing MPC823 SPRs.
4984 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
4985 incorrect. (This was corrected in GDB's register name tables on
4986 2004-07-14.)
4987
4988 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
4989 should be "esasrr" ("ESA Save and Restore Register").
4990
4991 2004-07-16 Andrew Cagney <cagney@gnu.org>
4992
4993 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
4994 calls, no longer applicable. Update comments and rename parameter
4995 "step_frame" to "return_frame".
4996
4997 2004-07-16 Andrew Cagney <cagney@gnu.org>
4998
4999 * frame.c (fprint_field): New function.
5000 (fprint_frame_id): Use fprint_field.
5001
5002 2004-07-15 Joel Brobecker <brobecker@gnat.com>
5003
5004 * ada-lang.c (ada_language_defn): Remove commented out code.
5005
5006 2004-07-15 Jim Blandy <jimb@redhat.com>
5007
5008 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
5009 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
5010
5011 2004-07-14 Jim Blandy <jimb@redhat.com>
5012
5013 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
5014
5015 * ppc-tdep.h (ppc_num_vrs): New enum constant.
5016
5017 * ppc-tdep.h (ppc_num_srs): New enum constant.
5018
5019 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
5020 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
5021 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
5022 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
5023 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
5024 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
5025 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
5026 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
5027 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
5028 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
5029 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
5030 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
5031 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
5032 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
5033 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
5034 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
5035 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
5036 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
5037 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
5038 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
5039 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
5040 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
5041 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
5042 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
5043 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
5044 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
5045 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
5046 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
5047 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
5048 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
5049 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
5050 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
5051 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
5052 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
5053 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
5054 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
5055 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
5056 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
5057 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
5058 special-purpose register numbers.
5059
5060 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
5061 manual mentions 'md_twb', but many mention 'm_twb', and at that
5062 point in the register list.)
5063
5064 2004-07-14 Andrew Cagney <cagney@gnu.org>
5065
5066 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
5067 instead of "internal-error".
5068
5069 2004-07-10 Joel Brobecker <brobecker@gnat.com>
5070
5071 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
5072 that was inserted inside a comment.
5073
5074 2004-07-10 Randolph Chung <tausq@debian.org>
5075
5076 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
5077 function.
5078 (hppa_hpux_push_dummy_code): New function.
5079 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
5080 Set find_global_pointer method.
5081
5082 2004-07-10 Mark Kettenis <kettenis@gnu.org>
5083
5084 * NEWS: Mention BSD libkvm interface.
5085
5086 2004-07-10 Michael Snyder <msnyder@redhat.com>
5087
5088 * symfile.c (generic_load): Comment typo.
5089 * stack.c (get_selected_block): Ditto.
5090 * regcache.c (regcache_cooked_read): Ditto.
5091 * monitor.c (monitor_debug): Ditto.
5092 * mips-tdep.c (mips_read_pc): Ditto.
5093 * i386-linux-nat.c (ps_get_thread_area): Ditto.
5094 * gdb_mbuild.sh: Ditto.
5095 * gdbarch.sh: Ditto.
5096 * gdbarch.h: Ditto.
5097
5098 2004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
5099
5100 * ada-tasks.c: Remove file.
5101
5102 Remove ARI problems:
5103
5104 * ada-exp.y (write_var_from_sym): Reformat to put operator at
5105 beginning of line.
5106
5107 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
5108 Add comment.
5109 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
5110 (MIN_OF_SIZE): Rename min_of_size. Add comment.
5111 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
5112 (UMIN_OF_SIZE): Remove.
5113 (max_of_type): New function to replace orphan macro in gdbtypes.h
5114 (min_of_type): Ditto.
5115 (discrete_type_high_bound): Use max_of_type.
5116 (discrete_type_low_bound): Use min_of_type.
5117 (possible_user_operator_p): Move operator to beginning of line.
5118 (ada_is_variant_part): Ditto.
5119 (ensure_lval): Rewrite to avoid deprecated operations.
5120 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
5121 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
5122 (ada_enum_name): Remove assignments in 'if' statements.
5123 (build_ada_types): Add gdbarch parameter.
5124 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
5125 with gdbarch_data_register_post_init.
5126 Use add_setshow_uinteger_cmd rather than add_set_cmd and
5127 add_show_from_set.
5128
5129 * ada-valprint.c (inspect_it): Remove declaration.
5130 (repeat_count_threshold): Remove declaration.
5131 (ada_print_floating): Remove assignments in 'if' statements.
5132 (print_str): Move operator to beginning of line.
5133
5134 2004-07-08 Jim Blandy <jimb@redhat.com>
5135
5136 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
5137
5138 2004-07-08 Bob Rossi <bob@brasko.net>
5139
5140 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
5141
5142 2004-07-06 Jeff Johnston <jjohnstn@redhat.com>
5143
5144 * language.h (struct_language_defn): Add new function pointer:
5145 la_class_name_from_physname. Also add new prototype for
5146 language_class_name_from_physname.
5147 * language.c (language_class_name_from_physname): New function.
5148 (unk_lang_class_name): Ditto.
5149 (unknown_language_defn, auto_language_defn): Change
5150 to add unk_lang_class_name function pointer for
5151 la_class_name_from_physname.
5152 (local_language_defn): Ditto.
5153 * dwarf2read.c (guess_structure_name): Change to call
5154 language_class_name_from_physname.
5155 (determine_class_name): Ditto.
5156 * cp-support.c (class_name_from_physname): Renamed.
5157 (cp_class_name_from_physname): New name of function.
5158 * cp-support.h: Ditto.
5159 * c-lang.c (c_language_defn): Change to add NULL
5160 for class_name_from_physname function pointer.
5161 (cplus_language_defn): Change to add cp_class_name_from_physname.
5162 * jv-lang.c (java_class_name_physname): New function.
5163 (java_find_last_component): New static routine.
5164 (java_language_defn): Add java_class_name_from_physname pointer.
5165 * ada-lang.c (ada_language_defn): Change to add NULL
5166 for class_name_from_physname function pointer.
5167 * f-lang.c (f_language_defn): Ditto.
5168 * m2-lang.c (m2_language_defn): Ditto.
5169 * objc-lang.c (objc_language_defn): Ditto.
5170 * p-lang.c (pascal_language_defn): Ditto.
5171 * scm-lang.c (scm_language_defn): Ditto.
5172
5173 2004-07-06 Andrew Cagney <cagney@gnu.org>
5174
5175 Patch from Bart Robinson.
5176 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
5177 (O_LARGEFILE): Define to 0, if not defined.
5178
5179 2004-07-03 Mark Kettenis <kettenis@gnu.org>
5180
5181 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
5182 <machine/pcb.h> and "bsd-kvm.h".
5183 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
5184 (m68kbsd_supply_pcb): New function.
5185 (_initialize_m68kbsd_nat): New prototype and function.
5186 * Makefile.in (m68kbsd-nat.o): Update dependencies.
5187 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5188 (LOADLIBES): New variable.
5189 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
5190 (LOADLIBES): New variable.
5191
5192 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
5193
5194 2004-07-03 Mark Kettenis <kettenis@gnu.org>
5195
5196 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
5197 <sys/proc.h>.
5198 (bsd_kvm_cmdlist): New variable.
5199 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
5200 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
5201 command and "kvm proc" command.
5202 * Makefile.in (bsd-kvm.o): Update dependencies.
5203
5204 2004-07-02 Mark Kettenis <kettenis@gnu.org>
5205
5206 * osabi.c: Update copyright year.
5207 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
5208 notes if EI_OSABI is set to ELFOSABI_HPUX.
5209
5210 2004-07-01 Michael Snyder <msnyder@redhat.com>
5211
5212 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
5213 that seems to have gotten whacked out of line.
5214
5215 2004-07-01 Mark Kettenis <kettenis@gnu.org>
5216
5217 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
5218 code.
5219
5220 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
5221
5222 * ada-lang.c (decode_packed_array): Minor change to comment.
5223 (ada_value_slice_ptr): New function.
5224 (ada_value_slice): New function.
5225 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
5226 test. Don't know why it is there.
5227 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
5228 to avoid dereferencing huge arrays from which one is slicing.
5229 (empty_array): Correct to return an array rather than
5230 a subrange value.
5231 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
5232 on empty arrays (let'em use 'FIRST instead).
5233
5234 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
5235
5236 Address complaints from gdb_ari.sh:
5237
5238 * ada-exp.y: Include gdb_string.h rather than string.h.
5239 (convert_char_literal): Reformat declaration.
5240 * ada-lang.h: Include opaque struct declaration for struct frame_info.
5241 * ada-lex.l: Change use of free to xfree (the macro would do so
5242 anyway, but this is harmless).
5243 Include gdb_string.h rather than string.h.
5244 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
5245
5246 * ada-lang.c (parse): Remove K&Rism in parameter list.
5247 (is_name_suffix): Correct Linux => GNU/Linux in comment.
5248
5249 2004-06-30 Mark Kettenis <kettenis@gnu.org>
5250
5251 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
5252 dead code.
5253
5254 2004-06-30 Mark Kettenis <kettenis@gnu.org>
5255
5256 * alphabsd-nat.c: Update copyright year.
5257 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
5258
5259 2004-06-29 Joel Brobecker <brobecker@gnat.com>
5260
5261 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
5262 (i386_cygwin_in_solib_call_trampoline): New function.
5263 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
5264 and skip_trampoline_code gdbarch methods.
5265
5266 2004-06-29 Jim Blandy <jimb@redhat.com>
5267
5268 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
5269 name actually used in the dependency lists.
5270
5271 2004-06-29 Randolph Chung <tausq@debian.org>
5272
5273 * NEWS (New native configurations): Mention GNU/Linux/hppa.
5274
5275 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
5276
5277 * win32-nat.c (child_pid_to_exec_file): New function.
5278 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
5279 functionality.
5280
5281 2004-06-28 Andrew Cagney <cagney@gnu.org>
5282
5283 * defs.h (xstrvprintf): Declare.
5284 * utils.c (xstrvprintf): New function.
5285 (internal_vproblem, xstrprintf, xasprintf)
5286 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
5287 * serial.c (serial_printf): Ditto.
5288 * complaints.c (vcomplaint): Ditto.
5289
5290 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
5291
5292 * infcmd.c (attach_command): Move call to target_terminal_inferior
5293 behind loading symbol table.
5294
5295 2004-06-28 Andrew Cagney <cagney@gnu.org>
5296
5297 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
5298 change - add back extern deprecated_ui_loop_hook declaration.
5299
5300 2004-06-28 Andrew Cagney <cagney@gnu.org>
5301
5302 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
5303 xstrprintf.
5304 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
5305 (c_value_of_variable): Ditto.
5306 * utils.c (internal_vproblem): Ditto.
5307 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
5308 * remote.c (add_packet_config_cmd): Ditto.
5309 * remote-rdp.c (rdp_set_command_line): Ditto.
5310 * regcache.c (regcache_dump): Ditto.
5311 * frv-tdep.c (new_variant, new_variant): Ditto.
5312 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
5313 (fbsd_find_memory_regions): Ditto.
5314 * breakpoint.c (create_thread_event_breakpoint)
5315 (create_breakpoints): Ditto.
5316 * aix-thread.c (aix_thread_pid_to_str): Ditto.
5317 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
5318
5319 2004-06-28 Joel Brobecker <brobecker@gnat.com>
5320
5321 * ada-lang.c: Re-indent file, with some massaging to help indent
5322 a bit when the result is otherwise really too ugly.
5323
5324 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
5325
5326 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
5327 code_addr_p and special_addr_p to 'unsigned int'.
5328
5329 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5330
5331 * i386v4-nat.c: Update copyright year and tweak comment.
5332 (regmap): Remove trailing comma.
5333 (supply_gregset): Rename local variable i to regnum. Call
5334 regcache_raw_supply instead of supply_register.
5335 (fill_gregset): Rename argument regno to regnum. Call
5336 regcache_raw_collect instead of regcache_collect.
5337
5338 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
5339
5340 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
5341 and special_addr_p.
5342 (frame_id_build, frame_id_build_special): Update comments.
5343 (frame_id_build_wild): New prototype.
5344 * frame.c (frame_id_build, frame_id_build_special): Fill in new
5345 struct frame_id fields.
5346 (frame_id_build_wild): New function.
5347 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
5348
5349 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5350
5351 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
5352 hppabsd-tdep.c.
5353
5354 2004-06-27 Joel Brobecker <brobecker@gnat.com>
5355
5356 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
5357
5358 2004-06-27 Joel Brobecker <brobecker@gnat.com>
5359
5360 * ada-lang.c: Re-indent file.
5361
5362 2004-06-27 Joel Brobecker <brobecker@gnat.com>
5363
5364 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
5365 (no_symtab_msg): Likewise.
5366
5367 2004-06-27 Andreas Schwab <schwab@suse.de>
5368
5369 * source.c: Fix whitespace.
5370
5371 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5372
5373 * configure.in: Include <sys/param.h> for td_pcb test.
5374 * configure: Regenerated.
5375
5376 * i386nbsd-nat.c: New file.
5377 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
5378 i386obsd-nat.c and i386obsd-tdep.c.
5379 (i386nbsd-nat.o): New dependency.
5380 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
5381 bsd-kvm.o.
5382 (LOADLIBES): New variable.
5383 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
5384 bsd-kvm.o.
5385 (LOADLIBES): New variable.
5386
5387 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
5388 (LOADLIBES): New variable.
5389
5390 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
5391 fetching from BSD_KVM_PADDR. Correctly lookup address for
5392 "_thread0".
5393
5394 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
5395 "bsd-kvm.h".
5396 (amd64fbsd_supply_pcb): New funcion.
5397 (_initialize_amd64fbsd_nat): Enable libkvm interface.
5398
5399 2004-06-27 <david@streamline-computing.com>
5400
5401 Partial fix for PR cli/1056.
5402 * valarith.c: Check for zero in division and remainder
5403 evaluation.
5404
5405 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5406
5407 * i387-tdep.c: Remove excessive whitespace.
5408
5409 2004-06-26 Andrew Cagney <cagney@gnu.org>
5410
5411 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
5412 * gdb-events.h, gdb-events.c: Re-generate.
5413 * tui/tui-hooks.c (tui_install_hooks): Update.
5414 (tui_remove_hooks): Update.
5415 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
5416
5417 2004-06-26 Mark Kettenis <kettenis@gnu.org>
5418
5419 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
5420 (gregset_t, fpregset_t): Remove typedefs.
5421 (REG_OFFSET): Rename argument.
5422 (amd64bsd_r_reg_offset): Rename from reg_offset.
5423 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
5424 Remove functions.
5425 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
5426 of reg_offset.
5427 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
5428
5429 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
5430
5431 * vax-tdep.c: Tweak comment.
5432
5433 Add OpenBSD/hppa support.
5434 * NEWS (New native configurations): Mention OpenBSD/hppa.
5435 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
5436 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
5437 files.
5438 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
5439 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
5440 * configure.host: Add hppa*-*-openbsd*.
5441 * configure.tgt: Add hppa*-*-openbsd*.
5442
5443 2004-06-25 Andrew Cagney <cagney@gnu.org>
5444
5445 * defs.h (deprecated_ui_loop_hook): Deprecated.
5446 * wince.c (child_wait): Update.
5447 * win32-nat.c (child_wait): Update.
5448 * v850ice.c (v850ice_wait): Update.
5449 * top.c (deprecated_ui_loop_hook): Update.
5450 * serial.h: Update.
5451 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
5452 (do_unix_readchar): Update.
5453 * ser-tcp.c (net_open): Update.
5454 * remote-sim.c (gdb_os_poll_quit): Update.
5455 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
5456
5457 2004-06-24 Andrew Cagney <cagney@gnu.org>
5458
5459 * defs.h (deprecated_pre_add_symbol_hook)
5460 (deprecated_post_add_symbol_hook): Deprecated.
5461 * symfile.c (symbol_file_add_with_addrs_or_offsets)
5462 (symbol_file_add_with_addrs_or_offsets): Update references.
5463
5464 2004-06-24 Andrew Cagney <cagney@gnu.org>
5465
5466 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
5467 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
5468 * wince.c (ui_loop_hook): Delete extern declaration.
5469 * win32-nat.c (ui_loop_hook): Delete extern declaration..
5470 * v850ice.c (ui_loop_hook): Delete extern declaration..
5471 * ser-unix.c (ui_loop_hook): Delete extern declaration..
5472 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
5473 * remote-sim.c (ui_loop_hook): Delete extern declaration..
5474 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
5475 ui_loop_hook declaration.
5476
5477 2004-06-24 Andrew Cagney <cagney@gnu.org>
5478
5479 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
5480 entry_func_highpc fields.
5481 * objfiles.c (init_entry_point_info): Do not clear
5482 entry_func_lowpc and entry_func_highpc.
5483 (objfile_relocate): Do not relocate entry_func_lowpc and
5484 entry_func_highpc.
5485 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
5486 entry_func_highpc.
5487 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
5488 entry_func_highpc.
5489 * blockframe.c (legacy_frame_chain_valid): Replace tests against
5490 entry_func_lowpc and entry_func_highpc with call to
5491 inside_entry_func.
5492
5493 2004-06-24 Mark Kettenis <kettenis@gnu.org>
5494
5495 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
5496 quad-precision floating point arguments in registers.
5497
5498 2004-06-24 Mark Kettenis <kettenis@gnu.org>
5499
5500 From Michael Mueller <m.mueller99@kay-mueller.de>:
5501 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
5502 account.
5503
5504 2004-06-22 Jeff Johnston <jjohnstn@redhat.com>
5505
5506 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
5507 to -1.
5508 * breakpoint.c (bpstat_stop_status): Move check for ignoring
5509 untriggered watchpoints to a separate if clause. Update function
5510 comment regarding STOPPED_BY_WATCHPOINT argument.
5511
5512 2004-06-22 Jim Blandy <jimb@redhat.com>
5513
5514 * gdbarch.sh: Doc fix.
5515
5516 2004-06-21 Martin Hunt <hunt@redhat.com>
5517 Kevin Buettner <kevinb@redhat.com>
5518
5519 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
5520 * mips-tdep.h (MIPS_SP_REGNUM): Define.
5521 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
5522 to set_gdbarch_sp_regnum(). Use cooked register number.
5523 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
5524
5525 2004-06-21 Andrew Cagney <cagney@gnu.org>
5526
5527 * gdbarch.sh: When the macro field is empty, do not generate a
5528 macro definition. When the macro field is "=", generate the macro
5529 name from the upper-case function name.
5530 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
5531 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
5532 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
5533 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
5534 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
5535 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
5536 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
5537 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
5538 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
5539 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
5540 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
5541 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
5542 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
5543 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
5544 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
5545 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
5546 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
5547 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
5548 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
5549 (DEPRECATED_USE_STRUCT_CONVENTION)
5550 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5551 (DEPRECATED_FRAME_INIT_SAVED_REGS)
5552 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
5553 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
5554 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
5555 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
5556 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
5557 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
5558 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
5559 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
5560 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
5561 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
5562 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
5563 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
5564 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
5565 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
5566 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
5567 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
5568
5569 2004-06-21 Andrew Cagney <cagney@gnu.org>
5570
5571 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
5572 macro name, and the function rather than macro value. Only wrap
5573 macro print statements in #ifdef. Move format logic to where it
5574 is needed.
5575 * gdbarch.c: Re-generate.
5576
5577 * gdbarch.sh (read): Delete "print_p" and "description", add
5578 "garbage_at_eol". Check for non-empty garbage at end-of-line.
5579 Delete references to print_p.
5580 (TARGET_ARCHITECTURE): Delete print predicate.
5581 * gdbarch.c: Re-generate.
5582
5583 * gdbarch.sh: Check that multi-arch methods do not provide a
5584 macro.
5585 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
5586 (print_registers_info, print_float_info, print_vector_info)
5587 (adjust_breakpoint_address, remote_translate_xfer_address)
5588 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
5589 (address_class_type_flags_to_name, unwind_sp): Remove the macro
5590 name from the multi-arch definition.
5591
5592 2004-06-20 Andrew Cagney <cagney@gnu.org>
5593
5594 * gdbarch.sh: Sort by the function, instead of macro name.
5595 * gdbarch.c: Re-generate.
5596
5597 2004-06-20 Andrew Cagney <cagney@gnu.org>
5598
5599 * gdbarch.sh: Use the function, instead of macro name in
5600 errors and the log file.
5601 (return_value): Remove stray ":" in spec.
5602
5603 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
5604 * gdbarch.h, gdbarch.c: Re-generate.
5605 * Makefile.in (arch-utils.o): Update dependencies.
5606 * values.c (using_struct_return): Move code calling
5607 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
5608 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
5609 to legacy_return_value, simplify.
5610 * infcmd.c (print_return_value): Move code calling
5611 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
5612 to legacy_return_value, simplify.
5613 * infcall.c (call_function_by_hand): Move code calling
5614 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
5615 * arch-utils.c: Update copyright. Include "gdbcore.h".
5616 (legacy_return_value): New function.
5617 * arch-utils.h: Update copyright.
5618 (legacy_return_value): Declare.
5619
5620 2004-06-20 Andrew Cagney <cagney@gnu.org>
5621
5622 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
5623 * gdbarch.h, gdbarch.c: Re-generate.
5624 * values.c (using_struct_return): Update call.
5625 * mcore-tdep.c: Update comment.
5626 * infcall.c (call_function_by_hand): Update comment.
5627 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5628 * arch-utils.h (always_use_struct_convention): Update.
5629 * v850-tdep.c (v850_gdbarch_init): Update.
5630 * sh64-tdep.c (sh64_gdbarch_init): Update.
5631 * sh-tdep.c (sh_gdbarch_init): Update.
5632 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5633 * mips-tdep.c (mips_gdbarch_init): Update.
5634 * mcore-tdep.c (mcore_gdbarch_init): Update.
5635 * m32r-tdep.c (m32r_gdbarch_init): Update.
5636 * ia64-tdep.c (ia64_gdbarch_init): Update.
5637 * h8300-tdep.c (h8300_gdbarch_init): Update.
5638 * frv-tdep.c (frv_gdbarch_init): Update.
5639 * cris-tdep.c (cris_gdbarch_init): Update.
5640 * arm-tdep.c (arm_gdbarch_init): Update.
5641 * alpha-tdep.c (alpha_gdbarch_init): Update.
5642
5643 2004-06-18 Michael Chastain <mec.gnu@mindspring.com>
5644
5645 * PROBLEMS: Add more specific information, and a work-around,
5646 for PR gdb/1458.
5647
5648 2004-06-18 Andrew Cagney <cagney@gnu.org>
5649
5650 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
5651 * gdbarch.h, gdbarch.c: Re-generate.
5652 * ada-lang.c (ada_finish_decode_line_1): Update.
5653 * infrun.c (handle_inferior_event): Update.
5654 * infcall.c (find_function_addr): Update.
5655 * linespec.c (minsym_found): Update.
5656 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
5657 Update.
5658 * blockframe.c (legacy_frameless_look_for_prologue): Update.
5659 * cli/cli-cmds.c (disassemble_command): Update.
5660 * vax-tdep.c (vax_gdbarch_init): Update.
5661
5662 2004-06-18 Mark Kettenis <kettenis@gnu.org>
5663
5664 * i386-tdep.c (i386_collect_fpregset): Fix comment.
5665
5666 2004-06-17 Andrew Cagney <cagney@gnu.org>
5667
5668 GDB 6.1.1 released from the GDB 6.1 branch.
5669 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
5670 * PROBLEMS: Ditto.
5671
5672 2004-06-16 Daniel Jacobowitz <dan@debian.org>
5673
5674 PR gdb/1658
5675 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
5676 operation as a uleb128. Found by Michael Coulter.
5677
5678 2004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
5679
5680 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
5681 make it non-static.
5682 * ada-lang.h (task_control_block): declaration moved from ada-task.c
5683 to ada-lang.h; this is needed to be able to implement the kill command
5684 in multi-task mode.
5685 (task_ptid): Ditto.
5686 (task_entry): Ditto.
5687 (task_list): Ditto.
5688 (ada_build_task_list): Ditto.
5689
5690 * ada-lang.c: Conditionalize routines and data structures related
5691 to breakpoints, exceptions, completion, and symbol caching on
5692 GNAT_GDB, since these are not yet used in the submitted public sources.
5693 (ada_main_name): Editorial: Move definition out of exception-related
5694 code.
5695
5696 2004-06-15 Andrew Cagney <cagney@gnu.org>
5697
5698 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
5699 deprecated_pc_in_call_dummy.
5700
5701 2004-06-15 Alan Modra <amodra@bigpond.net.au>
5702
5703 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
5704 bfd_get_section_size_before_reloc or _raw_size.
5705 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
5706 * dwarf2read.c (dwarf2_locate_sections): Likewise.
5707 (dwarf2_read_section): Likewise.
5708 * elfread.c (elf_locate_sections): Likewise.
5709 * gcore.c (derive_heap_segment): Likewise.
5710 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
5711 * remote-e7000.c (e7000_load): Likewise.
5712 * remote-m32r-sdi.c (m32r_load): Likewise.
5713 * remote-mips.c (mips_load_srec): Likewise.
5714 (pmon_load_fast): Likewise.
5715 * remote.c (compare_sections_command): Likewise.
5716 * symfile.c (add_section_size_callback): Likewise.
5717 (load_section_callback): Likewise.
5718 (pc_in_unmapped_range): Likewise.
5719 (pc_in_mapped_range): Likewise.
5720 (sections_overlap): Likewise.
5721 (list_overlays_command): Likewise.
5722 (simple_overlay_update_1): Likewise.
5723 (simple_overlay_update): Likewise.
5724 * tracepoint.c (remote_set_transparent_ranges): Likewise.
5725 * win32-nat.c (core_section_load_dll_symbols): Likewise.
5726
5727 2004-06-14 Randolph Chung <tausq@debian.org>
5728
5729 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
5730 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
5731 static.
5732 (hppa_hpux_inferior_created): New function.
5733 (hppa_hpux_init_abi): Register observer.
5734 * symfile.c (hp_cxx_exception_support_initialized)
5735 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
5736 (symbol_file_add_main_1, symbol_file_clear): Likewise.
5737
5738 2004-06-14 Randolph Chung <tausq@debian.org>
5739
5740 * MAINTAINERS (Write After Approval): Alphabetize my entry
5741 correctly.
5742
5743 2004-06-14 Andrew Cagney <cagney@gnu.org>
5744
5745 * MAINTAINERS (testsuite): List Michael Chastain as the lead
5746 testsuite maintainer.
5747
5748 2004-06-13 Andrew Cagney <cagney@gnu.org>
5749
5750 * infcmd.c (print_return_value): Fix logic, allow
5751 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
5752
5753 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
5754 defining any macros.
5755 * gdbarch.h: Re-generate.
5756
5757 * gdbarch.sh: Delete "level" attribute. Only check for a macro
5758 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
5759 * gdbarch.h: Re-generate.
5760
5761 * values.c (generic_use_struct_convention): Don't check gcc_p.
5762
5763 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
5764 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
5765 * gdbarch.h, gdbarch.c: Regenerate.
5766 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
5767 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
5768 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5769 deprecated_max_register_raw_size and
5770 deprecated_max_register_virtual_size.
5771 * v850-tdep.c (v850_gdbarch_init): Ditto.
5772 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
5773 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5774 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5775 * cris-tdep.c (cris_gdbarch_init): Ditto.
5776
5777 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
5778 * gdbarch.h, gdbarch.c: Re-generate.
5779 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
5780 (m68hc11_use_struct_convention): Delete function.
5781 (m68hc11_extract_struct_value_address): Delete function.
5782 (m68hc11_return_value): New function.
5783 (m68hc11_gdbarch_init): Instead of store_return_value,
5784 extract_return_value, return_value_on_stack,
5785 deprecated_extract_struct_value_address and use_struct_convention,
5786 set return_value.
5787 * values.c (using_struct_return): Do not call
5788 RETURN_VALUE_ON_STACK.
5789 * arch-utils.h (generic_return_value_on_stack_not): Delete
5790 declaration.
5791 * arch-utils.c (generic_return_value_on_stack_not): Delete
5792 function.
5793
5794 2004-06-12 Andrew Cagney <cagney@gnu.org>
5795
5796 * values.c (register_value_being_returned): Delete function.
5797 * infcmd.c (legacy_return_value): Delete function.
5798 * infcall.c (call_function_by_hand): Inline
5799 "register_value_being_returned", simplify.
5800 * values.c (using_struct_return): Update comment, refer to
5801 print_return_value instead of register_value_being_returned.
5802 * infcmd.c (print_return_value): Inline calls to
5803 register_value_being_returned and legacy_return_value. Simplify.
5804
5805 2004-06-11 Randolph Chung <tausq@debian.org>
5806
5807 * somread.c (som_symtab_read): Exclude gcc local symbols.
5808
5809 2004-06-11 Randolph Chung <tausq@debian.org>
5810
5811 * infrun.c (handle_inferior_event): Handle the case when a
5812 trampoline ends up in the runtime resolver, and if the trampoline
5813 has no name. Rearrange the code so that all the trampoline
5814 processing happens before other step-out-of-range handling.
5815
5816 2004-06-11 Martin Hunt <hunt@redhat.com>
5817
5818 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
5819 has no fpu.
5820
5821 2004-06-10 Andrew Cagney <cagney@gnu.org>
5822
5823 * blockframe.c (legacy_inside_entry_func): Delete.
5824 (legacy_frame_chain_valid): Inline call to
5825 legacy_inside_entry_func, simplify.
5826
5827 2004-06-10 Bob Rossi <bob@brasko.net>
5828
5829 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
5830 * dwarf2read.c (partial_die_info): Add dirname field.
5831 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
5832 (read_partial_die): Save away DW_AT_comp_dir.
5833 * defs.h (symtab_to_filename): Removed.
5834 * source.c (find_and_open_source): Added.
5835 (open_source_file): Just calls find_and_open_source.
5836 (symtab_to_filename): Removed.
5837 (symtab_to_fullname, psymtab_to_fullname): Added.
5838 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
5839 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
5840 symtab_to_filename.
5841 * symtab.h (partial_symtab): Add dirname field.
5842 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
5843 (mi_cmd_file_list_exec_source_file): Call new function
5844 symtab_to_fullname to find fullname.
5845 (mi_cmd_file_list_exec_source_files): Added.
5846 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
5847 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
5848
5849 2004-06-10 Andrew Cagney <cagney@gnu.org>
5850
5851 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
5852 to generic_use_struct_convention, the default value.
5853
5854 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
5855 of abort.
5856
5857 * ns32k-tdep.c (ns32k_push_arguments): New function.
5858 (ns32k_gdbarch_init): Set deprecated_push_arguments.
5859 * infcall.c (call_function_by_hand): Call error instead of
5860 legacy_push_arguments.
5861 * value.h (legacy_push_arguments): Delete declaration.
5862 * valops.c (legacy_push_arguments): Delete function.
5863 (value_push): Delete function.
5864
5865 2004-06-10 Brian Ford <ford@vss.fsi.com>
5866
5867 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
5868 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
5869 info.
5870 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
5871
5872 2004-06-10 Andrew Cagney <cagney@gnu.org>
5873
5874 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
5875 * gdbarch.h, gdbarch.c: Re-generate.
5876 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
5877 parameters.
5878 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
5879 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
5880 deprecated_pc_in_call_dummy instead of
5881 DEPRECATED_PC_IN_CALL_DUMMY.
5882 (arm_skip_prologue): Ditto.
5883 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
5884 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
5885 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
5886 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
5887 Ditto.
5888 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
5889 (sh64_init_extra_frame_info, sh64_get_saved_register)
5890 (sh64_pop_frame): Ditto.
5891 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
5892 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
5893 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
5894 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
5895 (h8300_pop_frame): Ditto.
5896 * blockframe.c (legacy_inside_entry_func)
5897 (legacy_frame_chain_valid): Ditto.
5898 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
5899 to deprecated_pc_in_call_dummy.
5900
5901 2004-06-09 Andrew Cagney <cagney@gnu.org>
5902
5903 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
5904 provide a default value.
5905 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
5906 * gdbarch.h, gdbarch.c: Re-generate.
5907 * arch-utils.c (generic_convert_register_p): Rename
5908 legacy_convert_register_p
5909 (legacy_register_to_value, legacy_value_to_register): Delete
5910 functions.
5911 * arch-utils.h (generic_convert_register_p): Rename
5912 legacy_convert_register_p.
5913 (legacy_register_to_value, legacy_value_to_register): Delete
5914 declarations.
5915
5916 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
5917 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
5918 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
5919 * gdbarch.h, gdbarch.c: Re-generate.
5920 * infcmd.c (default_print_registers_info): Simplify.
5921 * findvar.c (value_of_register): Simplify.
5922 * mi/mi-main.c (get_register): Simplify.
5923 * arch-utils.c (legacy_convert_register_p): Always return 0.
5924 (legacy_register_to_value, legacy_value_to_register): Always call
5925 internal_error.
5926
5927 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
5928 #ifdef CLEAR_INSN_CACHE code.
5929 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
5930 Delete #ifdef CLEAR_DEFERRED_STORES code.
5931
5932 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
5933
5934 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
5935 copyright.
5936 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
5937
5938 * config/mips/mipsv4.mh: Delete file.
5939
5940 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
5941 unreferenced macro.
5942 (hpread_adjust_stack_address): Delete declaration.
5943
5944 2004-06-08 Andrew Cagney <cagney@gnu.org>
5945
5946 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
5947 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
5948 PTRACE_ATTACH / PTRACE_DETACH available call error.
5949 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
5950 * infttrace.c (update_thread_state_after_attach, attach, detach):
5951 Remove #ifdef wrappers.
5952 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
5953 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
5954 * config/nm-bsd.h (ATTACH_DETACH): Delete.
5955 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
5956 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
5957 * config/nm-linux.h (ATTACH_DETACH): Delete.
5958 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
5959 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
5960 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
5961 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
5962 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
5963
5964 2004-06-08 Corinna Vinschen <vinschen@redhat.com>
5965
5966 * configure.in: Set $configdir to the right OS specific value.
5967 Use value when setting $tcldir and $tkdir.
5968 * configure: Regenerate.
5969
5970 2004-06-06 Paul Brook <paul@codesourcery.com>
5971
5972 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
5973 records.
5974
5975 2004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
5976
5977 * ada-lang.c (lookup_symbol_in_language): New function to allow
5978 re-use of another language's symbol lookup code. (Placed here
5979 temporarily while Ada support is being integrated into the public
5980 tree).
5981 (restore_language): New auxiliary function for
5982 lookup_symbol_in_language.
5983 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
5984 temporarily while Ada support is being integrated into the public
5985 tree).
5986
5987 2004-06-08 Alexandre Oliva <aoliva@redhat.com>
5988
5989 * Makefile.in (check//%): New.
5990
5991 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
5992 (mn10300_store_return_value): Rewrite.
5993 (mn10300_type_align): New.
5994 (mn10300_use_struct_convention): Rewrite.
5995 (mn10300_return_value): New, using all of the above.
5996 (mn10300_pop_frame_regular): Add saved_regs_size.
5997 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
5998
5999 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
6000 regs if PC is on movm.
6001
6002 2004-06-07 Jim Blandy <jimb@redhat.com>
6003
6004 Add native Linux support for the PowerPC E500.
6005 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
6006 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
6007 all architectures except the E500.
6008 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
6009 #definitions.
6010 (struct gdb_evrregset_t): New type.
6011 (have_ptrace_getsetevrregs): New variable.
6012 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
6013 fetch_spe_registers): New functions.
6014 (fetch_register): Call fetch_spe_register as appropriate.
6015 Assert that we're only passed raw register numbers.
6016 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
6017 Don't fetch gprs if they're pseudoregisters.
6018 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
6019 store_spe_registers): New functions.
6020 (store_register): Call store_spe_register as appropriate.
6021 Assert that we're only passed raw register numbers.
6022 (store_ppc_registers): Call store_spe_registers as appropriate.
6023 Don't store gprs if they're pseudoregisters.
6024
6025 2004-06-07 Jeff Johnston <jjohnstn@redhat.com>
6026
6027 * thread-db.c (thread_get_info_callback): Fill in the thread_info
6028 struct if one exists, even if we are dealing with a zombie thread.
6029
6030 2004-06-07 Andrew Cagney <cagney@gnu.org>
6031
6032 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
6033 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
6034 Rename PC_REQUIRES_RUN_BEFORE_USE.
6035 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
6036 #ifdef.
6037
6038 2004-06-07 Randolph Chung <tausq@debian.org>
6039
6040 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
6041 unwinding after sp has been saved to the stack but before the end
6042 of the prologue, and after the fp has been modified but before it has
6043 been saved to the stack.
6044 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
6045 Remove superfluous definitions.
6046 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
6047
6048 2004-06-07 Guy Martin <gmsoft@gentoo.org>
6049
6050 Committed by Randolph Chung.
6051 * hppa-linux-nat.c: Include the correct version of the header file
6052 depending on the kernel version.
6053
6054 2004-06-06 Randolph Chung <tausq@debian.org>
6055
6056 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
6057 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
6058
6059 2004-06-06 Randolph Chung <tausq@debian.org>
6060
6061 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
6062 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
6063 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
6064 * hppa-tdep.c (hppa_symbol_address): New function definition.
6065 * hppa-tdep.h (hppa_symbol_address): New function declaration.
6066
6067 2004-06-06 Randolph Chung <tausq@debian.org>
6068
6069 * hppa-tdep.h (struct value): Forward declaration.
6070 (gdbarch_tdep): Define tdep find_global_pointer method.
6071 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
6072 associated with the function we are trying to call, and write it
6073 to the gp register.
6074 (hppa32_convert_from_funct_ptr_addr): New function.
6075 (hppa_find_global_pointer): New function.
6076 (hppa_gdbarch_init): Set default find_global_pointer method; set
6077 convert_from_func_ptr_addr method.
6078 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
6079 (hppa_linux_init_abi): Set find_global_pointer method.
6080 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
6081
6082 2004-06-06 Randolph Chung <tausq@debian.org>
6083
6084 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
6085 to struct value *function.
6086 * gdbarch.c: Regenerate.
6087 * gdbarch.h: Likewise.
6088 * infcall.c (call_function_by_hand): Pass entire function value
6089 to push_dummy_call.
6090
6091 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
6092 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
6093 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
6094 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
6095 * arm-tdep.c (arm_push_dummy_call): Likewise.
6096 * avr-tdep.c (avr_push_dummy_call): Likewise.
6097 * cris-tdep.c (cris_push_dummy_call): Likewise.
6098 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
6099 * frv-tdep.c (frv_push_dummy_call): Likewise.
6100 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
6101 * hppa-tdep.c (hppa32_push_dummy_call)
6102 (hppa64_push_dummy_call): Likewise.
6103 * i386-tdep.c (i386_push_dummy_call): Likewise.
6104 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
6105 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
6106 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
6107 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
6108 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
6109 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
6110 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
6111 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
6112 (ppc64_sysv_abi_push_dummy_call): Likewise.
6113 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
6114 (ppc64_sysv_abi_push_dummy_call): Likewise.
6115 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
6116 * s390-tdep.c (s390_push_dummy_call): Likewise.
6117 * sh-tdep.c (sh_push_dummy_call_fpu)
6118 (sh_push_dummy_call_nofpu): Likewise.
6119 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
6120 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
6121 * vax-tdep.c (vax_push_dummy_call): Likewise.
6122
6123 2004-06-04 Jim Blandy <jimb@redhat.com>
6124
6125 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
6126 gdbarch argument to register_size.
6127
6128 * rs6000-tdep.c (rs6000_store_return_value): Use
6129 regcache_cooked_write_part instead of
6130 deprecated_write_register_bytes.
6131 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
6132 not gdbarch_deprecated_store_return_value.
6133
6134 * ppc-linux-nat.c (store_register, fetch_register): Remove
6135 incorrect assertions. Simplify and generalize handling of
6136 transfers whose sizes are not multiples of, or less than, sizeof
6137 (PTRACE_XFER_TYPE).
6138
6139 2004-06-04 Jeff Johnston <jjohnstn@redhat.com>
6140
6141 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
6142 as a new thread event.
6143 * thread-db.c (thread_get_info_callback): If the thread is a
6144 zombie, return TD_THR_ZOMBIE.
6145 (thread_from_lwp): If thread_get_info_callback returns
6146 TD_THR_ZOMBIE, check if the thread is still on the thread list
6147 and return a -1 ptid if not found.
6148 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
6149 change the status to TARGET_WAITKIND_SPURIOUS.
6150
6151 2004-06-03 Corinna Vinschen <vinschen@redhat.com>
6152
6153 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
6154 double values in little endian mode.
6155
6156 2004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
6157
6158 Committed by Andrew Cagney.
6159 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
6160 after last enum constant to avoid error from IBM C
6161 compiler.
6162
6163 2004-06-02 Jim Blandy <jimb@redhat.com>
6164
6165 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
6166 to 'message', and make it local to the lone block that uses it.
6167
6168 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
6169
6170 2004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
6171
6172 * ada-exp.y: Update copyright notice.
6173 Include block.h.
6174
6175 Replace REGNAME, LAST, INTERNAL_VARIABLE with
6176 SPECIAL_VARIABLE and unify the treatment of these cases.
6177
6178 (write_attribute_call0): Remove.
6179 (write_attribute_call1): Remove.
6180 (write_attribute_calln): Remove.
6181 (save_qualifier): Add missing semicolon.
6182
6183 (simple_exp,exp): Decomment (i.e., reactivate) code that was
6184 temporarily disabled to allow compilation with FSF head version.
6185
6186 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
6187 use individual operators (OP_*) for all attributes.
6188 (exp syntax): Use write_int.
6189 Handle STRING literals with OP_STRING.
6190 (variable syntax): Add limit parameter to calls to
6191 write_object_renaming.
6192
6193 (temp_parse_space): New definition to hold entities that need
6194 only live until the next call to ada_parse.
6195 (string_to_operator): Rename fields of ada_opname_table entries.
6196
6197 (write_var_from_sym): Record block.
6198 (write_var_from_name): Minor reformatting.
6199 Make sure saved name is properly encoded in the case of multiple
6200 matches, and set its language to Ada.
6201 Update comment.
6202 Modify to indicate unresolved name as symbol in the UNRESOLVED
6203 namespace, allocated in temp_parse_space.
6204 (write_int): New function.
6205
6206 (write_object_renaming): Add max_depth parameter to limit
6207 chains of object renamings.
6208 Handle case where root of renaming expression is itself a renaming.
6209 Use temp_parse_space for temporary name buffer.
6210 Handle renamings to dereferenced pointers (___XEXA suffices).
6211
6212 (ada_parse, yyerror, string_to_operator,
6213 write_var_from_sym, write_var_from_name, write_attribute_call0,
6214 write_attribute_call1, write_attribute_calln,
6215 write_object_renaming): Protoize.
6216
6217 (_initialize_ada_exp): New function.
6218
6219 * ada-lang.c: Update copyright notice.
6220 General terminology change to conform to GNAT compiler usage:
6221 mangle => encode, demangle => decode
6222 Include gdb_obstack.h.
6223 Include gdb_regex.h
6224 Include frame.h
6225 Include hashtab.h
6226 Include completer.h
6227 Include gdb_stat.h
6228 Include block.h
6229 Include infcall.h
6230
6231 (ADA_RETAIN_DOTS): Make sure this is defined.
6232 (TRUNCATION_TOWARDS_ZERO): Define.
6233 (struct string_vector): Define.
6234 (unresolved_names): Remove definition.
6235 (xnew_string_vector): New function.
6236 (string_vector_append): New function.
6237 (extract_string): Make static.
6238 (ada_unqualified_name): New function.
6239 (add_angle_brackets): New function.
6240 (function_name_from_pc): New function.
6241 (place_on_stack): Rename to ensure_lval.
6242
6243 (ensure_lval): Renamed from place_on_stack.
6244 Make identity on lvals.
6245 Update comment.
6246 (is_nonfunction): New interface.
6247 Only symbols in LOC_CONST class can be enumerals.
6248 (fill_in_ada_prototype): Remove; now independent of language.
6249 (add_defn_to_vec): Add obstack and symtab arguments.
6250 Use obstack to hold collected definitions.
6251 (num_defns_collected): New function.
6252 (defns_collected): New function.
6253 (ada_resolve_subexp): Rename to resolve_subexp.
6254 (resolve_subexp): Renamed from ada_resolve_subexp.
6255 (ada_op_name): Return non-const result.
6256 (ada_decoded_op_name): Renamed from ada_op_name, now used for
6257 other purposes.
6258
6259 (to_fixed_array_type): Add declaration.
6260 (coerce_unspec_val_to_type): Remove offset parameter.
6261 (find_sal_from_funcs_and_line): New interface.
6262 (find_line_in_linetable): Ditto.
6263
6264 (all_sals_for_line): Rename to ada_sals_for_line and make
6265 global.
6266 Add new parameter. When set, do not ask the user to choose the
6267 instance, but use the first one found instead.
6268 Use given line number in returned sals.
6269 Fix comment.
6270 Skip the prologue if funfirstline is set.
6271 Correct for memory leak when 0 lines found.
6272
6273 (value_pos_atr): Use pos_atr.
6274 (pos_atr): New function.
6275 (standard_lookup): Add block parameter.
6276
6277 (makeTimeStart): Remove declaration and uses.
6278 (makeTimeStop): Remove declaration and uses.
6279
6280 (ada_completer_word_break_characters): Allow for VMS.
6281 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
6282 (raise_sym_name): New constant.
6283 (raise_unhandled_sym_name): New constant.
6284 (raise_assert_sym_name): New constant.
6285 (process_raise_exception_name): New constant.
6286 (longest_exception_template): New constant.
6287 (warning_limit): New variable to limit warnings during expression
6288 evaluation.
6289 (warnings_issued): New variable to keep track of warnings issued.
6290 (known_runtime_file_name_patterns): New constant.
6291 (known_auxiliary_function_name_patterns): New constant.
6292 (symbol_list_obstack): New variable.
6293
6294 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
6295 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
6296 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
6297 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
6298 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
6299 ada_variant_discrim_name, field_alignment, dynamic_template_type,
6300 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
6301 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
6302 and strcmp.
6303
6304 (ada_get_field_index): New function.
6305 (lim_warning): New function.
6306 (ada_translate_error_message): New function.
6307 (MAX_OF_SIZE): New function.
6308 (MIN_OF_SIZE): New function.
6309 (UMAX_OF_SIZE): New function.
6310 (UMIN_OF_SIZE): New function.
6311 (discrete_type_high_bound): New function.
6312 (discrete_type_low_bound): New function.
6313 (base_type): New function.
6314 (do_command): Remove.
6315
6316 (ada_update_initial_language): Use language_ada, not language_unknown.
6317 (ada_encode): Renamed from ada_mangle.
6318 Obey ADA_RETAIN_DOTS.
6319 (ada_decode): Renamed from ada_demangle.
6320 Update coding conventions.
6321 (decoded_names_store): New hash table.
6322 (ada_decode_symbol): New function.
6323 (ada_la_decode): New function.
6324
6325 (modify_general_field): Correct computations of offset and bit
6326 position.
6327 (desc_base_type): Handle ref types, too.
6328 (ada_is_direct_array_type): New function.
6329
6330 (ada_is_simple_array): Rename to ada_is_simple_array_type.
6331 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
6332 (ada_is_bogus_array_descriptor,ada_type_of_array,
6333 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
6334 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
6335 ada_is_array_descriptor_type.
6336
6337 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
6338 (ada_is_packed_array_type): Handle pointers or
6339 references to packed arrays as well.
6340 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
6341 (decode_packed_array_type): Search for the packed array type
6342 symbol in the currently selected block and associated
6343 superblocks too.
6344 Use lookup_symbol again.
6345
6346 (decode_packed_array): Handle pointers and references.
6347 Update call to coerce_unspec_val_to_type.
6348 (decode_packed_array_type,value_subscript_packed): Limit warnings.
6349 (ada_value_primitive_packed_val): Improve comment.
6350
6351 (ada_index_type): Substitute int type for "undefined".
6352 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
6353 ada_array_langth, ada_is_string_type): Use renamed
6354 ada_is_simple_array_type.
6355 (empty_array): New function.
6356
6357 (ada_resolve): Rename to resolve.
6358 (resolve): Make static.
6359 Call renamed resolve_subexp.
6360 Update comment.
6361 (ada_resolve_subexp): Rename to resolve_subexp.
6362 (resolve_subexp): Update comment.
6363 Decomment disabled code.
6364 Add LOC_COMPUTED* cases.
6365 Modify to use temporary struct symbols (marked as being in
6366 UNDEF_NAMESPACE) to indicate unresolved names, instead of
6367 OP_UNRESOLVED_VALUE.
6368 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
6369 Add OP_STRING case.
6370 Remove OP_ARRAY.
6371 Use SYMBOL_PRINT_NAME instead of ada_demangle.
6372 Use new ada_lookup_symbol_list interface.
6373 Use new ada_resolve_function interface.
6374 Remove OP_TYPE case.
6375
6376 (ada_args_match): Idiot proof against null actuals.
6377 Use intermediate variables to clarify.
6378 (ada_resolve_function): Update comment and interface.
6379 (mangled_ordered_before): Rename to encoded_ordered_before and
6380 update comment.
6381 (sort_choices): Update comment and interface.
6382 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
6383 (user_select_syms): New interface.
6384 Use new sort_choices interface.
6385 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
6386 (possible_user_operator_p): Idiot-proof against null values.
6387 (ada_simple_renamed_entity): Don't make cleanup; rely on
6388 caller to free result string.
6389 Remove const from return type.
6390 (make_array_descriptor): Rename uses of place_on_stack to
6391 ensure_lval.
6392 Make sure that arrays are on stack.
6393
6394 (HASH_SIZE): Define.
6395 (struct cache_entry): Define.
6396 (cache_space): Define.
6397 (cache): Define.
6398 (clear_ada_sym_cache): New function.
6399 (find_entry): New function.
6400 (lookup_cached_symbol): New function.
6401 (defn_vector_size): Define.
6402 (cache_symbol): New function.
6403 (defn_symbols): Remove.
6404
6405 (standard_lookup): Use lookup_symbol_in_language to get effect of
6406 C lookup.
6407 Cache results.
6408
6409 (symbol_completion_match): New function.
6410 (symbol_completion_add): New function.
6411 (ada_make_symbol_completion_list): New function.
6412
6413 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
6414 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
6415 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
6416 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
6417
6418 (ada_lookup_simple_minsym): New function.
6419 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
6420
6421 (add_symbols_from_enclosing_procs): New interface.
6422 Conditionalize more helpfully.
6423 Don't bother if program isn't running.
6424 Use new interface to get_frame_block.
6425 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
6426
6427 (remove_extra_symbols): New interface.
6428 (xget_renaming_scope): New function.
6429 (is_package_name): New function.
6430 (renaming_is_visible): New function.
6431 (remove_out_of_scope_renamings): New function.
6432
6433 (ada_lookup_symbol_list): New interface.
6434 Properly reinitialize the symbol list obstack.
6435 Don't call add_symbols_from_enclosing_procs if we start from a
6436 static or global block.
6437 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
6438 add_symbols_from_enclosing_procs.
6439 Add symtab data to cached entries.
6440 Handle symbols prefixed with
6441 "standard__" specially; strip prefix and don't look in local symbols.
6442 Do not include out of scope renaming symbols in list of
6443 symbols returned.
6444 Add const to block parameter.
6445 Move check for non-local, non-global symbols earlier.
6446 Remove timing stuff.
6447 (ada_lookup_symbol): New interface.
6448 Find symtab as well.
6449 (ada_lookup_symbol_nonlocal): New function.
6450
6451 (is_name_suffix): Enhance suffix detection to recognize
6452 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
6453 (is_dot_digits_suffix): New function.
6454 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
6455
6456 (ada_add_block_symbols): New interface. Use obstack to return results
6457 in a vector of struct ada_symbol_infos. Add symtab argument.
6458 Use new interface to add_defn_to_vec.
6459 Remove calls to fill_in_ada_prototype.
6460 Use BLOCK_BUCKETS, BLOCK_BUCKET.
6461
6462 (ada_finish_decode_line_1): Add const qualification to local to fix
6463 warning.
6464 Start looking in static block for functions to avoid attempts
6465 to search frame chain for up-level variables.
6466 Adapt to new ada_sals_for_line interface.
6467 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
6468 Handle quoting of the function name inside the spec string.
6469 Skip prologue when funfirstline is set and update the
6470 function documentation to that effect.
6471
6472 (debug_print_lines, debug_print_block, debug_print_blocks,
6473 debug_print_symtab): Remove.
6474
6475 (ada_main_name): New function.
6476 (ada_exception_breakpoint_type): New function.
6477 (is_known_support_routine): New function.
6478 (ada_find_printable_frame): Renamed from find_printable_frame and made
6479 global.
6480 Remove level parameter.
6481 Use new interface to select_frame.
6482
6483 (begin_command): Remove.
6484 (ada_adjust_exception_stop): New function.
6485 (ada_print_exception_stop): New function.
6486 (exception_name_from_cond): New function.
6487 (ada_report_exception_break): Replace disabled code with
6488 conditionalization on GNAT_GDB.
6489 Get the exception name from the condition string.
6490 Remove and move functionality into new functions
6491 ada_print_exception_breakpoint_task and
6492 ada_print_exception_breakpoint_nontask.
6493 (error_breakpoint_runtime_sym_not_found): New function.
6494 (is_runtime_sym_defined): New function.
6495 (ada_breakpoint_rewrite): Uncomment suppressed code.
6496 Use symbolic error-message and runtime-symbol names.
6497 Surround runtime symbol names in quotes.
6498 Allow non-specific breakpoints on exceptions and assertions before
6499 program starts.
6500
6501 (ada_is_tagged_type): Add parameter.
6502 (ada_is_tag_type): New function.
6503 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
6504 (ada_variant_discrim_type): Ditto.
6505 (value_tag_from_contents_and_address): New function.
6506 (type_from_tag): New function.
6507 (struct tag_args): New structure used to communicate with
6508 ada_tag_name_1.
6509 (ada_tag_name_1): New function.
6510 (ada_tag_name): New function.
6511
6512 (ada_scan_number): Update comment.
6513 (find_struct_field): New function.
6514 (ada_search_struct_field): Make static.
6515 (ada_value_struct_elt): New version that returns references when
6516 given pointers or references to structs.
6517 (ada_lookup_struct_elt_type): Add 'refok' parameter.
6518 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
6519 interface.
6520 (ada_value_ind): Use new ada_to_fixed_value interface.
6521 (ada_coerce_ref): Ditto.
6522 (field_offset): Remove.
6523
6524 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
6525 (ada_find_renaming_symbol): New function.
6526 (ada_prefer_type): Prefer named types over unnamed ones.
6527 (variant_field_index): New function.
6528 (contains_variant_part): Removed: subsumed by variant_field_index.
6529 (ada_template_to_fixed_record_type): New function, mostly from
6530 template_to_fixed_record_type.
6531 (template_to_fixed_record_type):
6532 Do not scan the type fields beyond the last one; prevents a
6533 potential SEGV.
6534 Handle case where variant field is listed BEFORE discriminant it
6535 depends on.
6536 Fix calculation of record length when bit length is
6537 not evenly divisible by char length.
6538 Move code to ada_template_to_fixed_record_type and call it.
6539
6540 (template_to_static_fixed_type): Revise comment.
6541 Modify to work on ordinary record types as well as templates,
6542 so as to handle fields that use ___XVE or ___XVU encodings.
6543 (to_record_with_fixed_variant_part): Fill out comment.
6544 Initialize C++ stuff in right type.
6545 Allow case where DVAL is null.
6546 Handle case where variant field is not last.
6547 Fix typo concerning record length.
6548 (to_fixed_record_type): Decomment disabled code.
6549 (to_fixed_record_type): Use variant_field_index instead of
6550 contains_variant_part.
6551 (to_fixed_variant_branch_type): Ditto.
6552 (to_fixed_array_type): Decomment disabled code.
6553 (ada_to_fixed_type): Convert tagged types to the specific type.
6554 Deactivate the size-check for array types in order to avoid
6555 some false size alarms.
6556 (to_static_fixed_type): Decomment disabled code.
6557 Modify to call template_to_static_fixed_type
6558 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
6559 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
6560 Remove valaddr argument, as it is never really used.
6561 (ada_to_fixed_value): Change interface to act on single struct value*
6562 operand.
6563 (adjust_pc_past_prologue): New function.
6564 (ada_attribute_name): Modify to take enum exp_opcode argument.
6565
6566 (ada_enum_name): Recognize new homonym-distinguishing convention.
6567 Adjust local variable's type to remove compiler warning.
6568 Fix a small problem in the part that unqualifies the enumeration name.
6569 (ada_value_binop): New function.
6570 (ada_value_equal): New function.
6571
6572 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
6573 Don't give error message when not doing normal evaluation
6574 and a tagged type doesn't seem to contain a structure member.
6575 Give error message for packed arrays.
6576 For indexing arrays, handle pointers to packed arrays correctly.
6577 Handle case of 'first and 'last attributes of bare integral type
6578 without encoded subtype info.
6579 Remove some unnecessary casts.
6580 Fix uninitialized value of type in computing 'first, 'last, or 'length
6581 of array object.
6582 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
6583 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
6584 calls.
6585 Attributes are now exp_opcode values.
6586 Correct treatment of 'modulus.
6587 Better error message for taking 'length of wrong kind of type;
6588 improve comment.
6589 Change EVAL_NORMAL to noside for consistency.
6590 Use ada_value_binop for DIV, MOD, REM.
6591 Make special case out of array of length 0, since an argument
6592 of 0 upsets some platforms' malloc.
6593 Use OP_STRING instead of OP_ARRAY.
6594 For slice, add check that we have an array type before extracting
6595 a slice out of it. Avoids a SEGV.
6596 When evaluating an array slice, if the array type is a reference to
6597 an aligner type, then replace the aligner type by the actual type.
6598 Decomment disabled code.
6599 Remove some dead code.
6600 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
6601 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
6602 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
6603 and UNOP_MBR to UNOP_IN_RANGE.
6604 If an array type has a parallel ___XVE type, then use it.
6605 Turn arrays into pointers for lvalue arrays.
6606 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
6607 bounds error and handle 0-length slices.
6608 Use lim_warning.
6609 When selecting fields, apply ada_to_fixed_value (because the fields
6610 might have ___XVU or ___XVE encodings even if not dynamic.)
6611 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
6612 (ada_is_system_address_type): New function.
6613
6614 (get_var_value): Use new interface to ada_lookup_symbol_list.
6615 (get_int_var_value): New interface.
6616 (to_fixed_range_type): Allow unknown bound, with warning.
6617 (ada_is_modular_type): Decomment disabled code.
6618 (ADA_OPERATORS): New definition.
6619 (ada_operator_length): New function.
6620 (ada_expr_op_name): New function.
6621 (ada_forward_operator_length): New function.
6622 (ada_dump_subexp_body): New function.
6623 (ada_print_subexp): New function.
6624 (ada_exp_descriptor): New constant.
6625 (ada_op_print_tab): Add 'size. Remove FIXMEs.
6626 (ada_language_defn): Add ada_exp_descriptor entry.
6627 Change ada_parse => parse.
6628 Add post-parser entry.
6629 Use ada-specific non-local symbol lookup.
6630 Don't use C-style arrays.
6631 String lower-bound is 1.
6632 Decomment disabled code.
6633 (parse): New function.
6634 New fields ada_translate_error_message, ada_lookup_symbol,
6635 ada_lookup_minimal_symbol.
6636
6637 * ada-lang.h: Update copyright dates.
6638 Replace the mangle/demangle terminology throughout by the
6639 more appropriate encode/decode one.
6640 Include breakpoint.h.
6641 Forward declare struct partial_symbol, struct block.
6642 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
6643 (EXTRACT_ADDRESS): Remove.
6644 (EXTRACT_INT): Remove.
6645 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
6646 (MAX_ENCLOSING_FRAME_LEVELS): Define.
6647 (MAX_RENAMING_CHAIN_LENGTH): Define.
6648 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
6649
6650 (enum task_states): Remove.
6651 ada_task_states: Remove.
6652 (fat_string): Remove.
6653 (struct entry_call): Remove.
6654 (struct task_fields): Remove.
6655 (struct task_entry): Remove.
6656
6657 (struct ada_symbol_info): Define.
6658 (enum ada_attribute): Remove.
6659 (enum ada_operator): Define.
6660
6661 (ada_get_field_index): Declare.
6662 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
6663 (ada_is_simple_array): Rename to ada_is_simple_array_type.
6664 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
6665 (ada_lookup_symbol_list): New interface.
6666 (ada_decode_symbol): Declare.
6667 (ada_decode): Declare.
6668 (ada_lookup_symbol): New interface.
6669 (ada_update_initial_language): Declare.
6670 (ada_lookup_simple_minsym): Declare.
6671 (user_select_syms): New interface.
6672 (ada_sals_for_line): Declare.
6673 (ada_is_tagged_type): New interface.
6674 (ada_tag_name): Declare.
6675 (ada_lookup_struct_elt_type): Remove declaration.
6676 (ada_search_struct_field): Remove declaration.
6677 (ada_attribute_name): New interface.
6678 (ada_is_system_address_type): Declare.
6679 (ada_to_fixed_value): Remove declaration.
6680 (ada_template_to_fixed_record_type_1): Declare.
6681 (get_int_var_value): New interface.
6682 (ada_find_any_symbol): Declare.
6683 (ada_find_renaming_symbol): Declare.
6684 (ada_mangle): Rename to ada_encode.
6685 (ada_simple_renamed_entity): Remove const.
6686 (ada_main_name): Declare.
6687 (get_current_task): Rename to ada_get_current_task.
6688 (get_entry_number): Remove declaration.
6689 (ada_report_exception_break): Remove declaration.
6690 (ada_print_exception_breakpoint_nontask): Declare.
6691 (ada_print_exception_breakpoint_task): Declare.
6692 (ada_find_printable_frame): Declare.
6693
6694 * ada-lex.l: Update copyright notices.
6695 Use xmalloc and xfree instead of malloc and free.
6696 Use new interface to name_lookup.
6697 Use new interface to
6698 ada_mangle=>ada_encode.
6699 Redo handling of '$...' variable to parallel current treatment
6700 in c-exp.y.
6701 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
6702 digit_to_int, strtoulst, processInt, processReal, processId,
6703 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
6704 yywrap): Protoize.
6705
6706 (processInt): Use cast to remove harmless warning.
6707 (processReal): Modify to get rid of compiler warning on scan formats.
6708
6709 (processId): Replace xmalloc with obstack_alloc for name and remove
6710 call to ada_name_string_cleanup.
6711 Remove obsolete disabled code.
6712 (name_lookup): Ditto.
6713 New interface.
6714 Use obsavestring on temp_parse_space instead of savestring
6715 on name, and remove call to ada_name_string_cleanup.
6716 Free string returned from ada_simple_renamed_entity.
6717 Use new interface to ada_lookup_symbol_list.
6718 Decomment disabled code.
6719 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
6720 not types.
6721 When a type name lookup succeeds as a result of
6722 lookup_primitive_typename, check for regular type entry that has not
6723 yet been read in.
6724 Limit length of chain of renamed symbols we are willing to follow.
6725 Do not break names beginning with "standard__" into segments.
6726 (block_lookup): Use new interface to ada_lookup_symbol_list.
6727
6728 * ada-typeprint.c: Update copyright notice.
6729 (demangled_type_name): Rename to decoded_type_name.
6730 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
6731 (print_range_bound): Correct handling of negative
6732 bounds that make the index type looked unsigned under STABS.
6733 (print_dynamic_range_bound): Use new interface to get_int_var_value.
6734 (print_range_type_named): Use the builtin int type if no type
6735 corresponding to the given type name could be found.
6736 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
6737 Add some bullet-proofing.
6738 (print_variant_clauses): Allow for variant branches with ___XVU
6739 encodings that are not dynamic fields.
6740 Use new interface to ada_is_tagged_type.
6741 (print_record_type): Allow for fields with ___XVE encodings that
6742 are not dynamic fields.
6743 Use new interface to ada_is_tagged_type.
6744 (ada_print_type): ada_is_array_descriptor =>
6745 ada_is_array_descriptor_type.
6746
6747 * ada-valprint.c: Update copyright notice.
6748 Include gdb_string.h
6749 Include infcall.h
6750 (ui_memcpy): New function.
6751 (ada_print_floating): New function.
6752 (ada_print_str): Order arguments correctly.
6753 Correct handling of empty arrays and arrays of 0-length items.
6754 ada_is_array_descriptor => ada_is_array_descriptor_type
6755 Print values of type System.Address in hexadecimal format.
6756 Use ada_print_floating to print floating-point numbers in Ada format.
6757 Print class tag values with type names.
6758 No longer print the address of reference values. Avoids
6759 a potential confusion.
6760 (ada_value_print): Stop printing the object type for reference
6761 values, but preserve that behavior for access types. Avoids
6762 a potential confusion.
6763 Simplify one conditional expression, as the first part is now
6764 necessarily true.
6765 ada_is_array_descriptor => ada_is_array_descriptor_type
6766 Add check for arrays for null records, and print them by hand.
6767
6768 2004-06-01 Jim Blandy <jimb@redhat.com>
6769
6770 * ppc-tdep.h: Delete unused 'regoff' member.
6771 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
6772
6773 2004-06-01 Michael Chastain <mec.gnu@mindspring.com>
6774
6775 Fix PR symtab/1661.
6776 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
6777 (hpread_read_struct_type): Likewise.
6778
6779 2004-06-01 Andrew Cagney <cagney@gnu.org>
6780
6781 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
6782 instead of xasprintf.
6783 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
6784 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
6785 (mi_cmd_data_list_register_names)
6786 (mi_cmd_data_list_changed_registers)
6787 (mi_cmd_data_list_register_values)
6788 (get_register, mi_cmd_data_write_register_values)
6789 (mi_cmd_data_write_register_values)
6790 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
6791 (mi_cmd_target_download, mi_cmd_target_select)
6792 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
6793 (mi_execute_cli_command, mi_execute_async_cli_command)
6794 (mi_execute_async_cli_command): Ditto.
6795 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
6796 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
6797
6798 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
6799 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
6800 error_last_message instead of mi_error_last_message.
6801 * mi/mi-main.c (mi_error_last_message): Delete function.
6802
6803 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
6804 "invalid number of columns" error. Delete redundant "out of
6805 memory" check.
6806
6807 2004-05-31 Mark Kettenis <kettenis@gnu.org>
6808
6809 * i386bsd-nat.c: Don't include <sys/procfs.h>.
6810 (gregset_t, fpregset_t): Remove typedefs.
6811 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
6812 (REG_OFFSET): Rename argument.
6813 (i386bsd_r_reg_offset): Rename from reg_offset.
6814 (REG_ADDR): Remove macro.
6815 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
6816 functions.
6817 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
6818 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
6819 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
6820 instead of supply_gregset.
6821 (store_inferior_registers): Use `struct reg' and `struct fpreg'
6822 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
6823 instead of fill_gregset.
6824 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
6825
6826 * i386bsd-nat.c: Don't include "gregset.h".
6827 (supply_gregset, fill_gregset): Make static.
6828 (supply_fpregset, fill_fpregset): Remove.
6829 * Makefile.in (i386bsd-nat.o): Update dependencies.
6830
6831 2004-05-30 Mark Kettenis <kettenis@gnu.org>
6832
6833 * fbsd-proc.c: Include "regcache.h", "regset.h" and
6834 "gdb_assert.h". Con't include "gregset.h".
6835 (fbsd_make_corefile_notes): Use regset-based core file support
6836 instead off fill_gregset and fill_fpregset.
6837 * Makefile.in (fbsd-proc.o): Update dependencies.
6838
6839 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
6840 instructions.
6841 (m88k_frame_prev_register): Simplify code a bit.
6842
6843 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
6844 (amd64_collect_fpregset): New function.
6845 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
6846
6847 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
6848
6849 * i386-tdep.c (i386_supply_gregset): Adjust comment.
6850 (i386_collect_gregset): New function.
6851 (i386_supply_fpregset): Adjust comment.
6852 (i386_collect_fpregset): New function.
6853 (i386_regset_from_core_section): Use i386_collect_gregset and
6854 i386_collect_fpregset.
6855
6856 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
6857 handle VALUEP being null.
6858
6859 * regset.h (collect_regset_ftype): Unconstify fourth argument.
6860
6861 2004-05-29 Mark Kettenis <kettenis@gnu.org>
6862
6863 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
6864
6865 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
6866 assembler in OpenBSD 3.5-current.
6867 (amd64obsd_sigcontext_addr): Likewise.
6868
6869 2004-05-28 Jim Blandy <jimb@redhat.com>
6870
6871 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
6872 register set, so our regcache isn't declared "legacy" and our E500
6873 pseudoregister read and write functions aren't ignored.
6874 (rs6000_register_byte, rs6000_register_raw_size,
6875 rs6000_register_virtual_type, rs6000_register_convertible,
6876 rs6000_register_convert_to_virtual,
6877 rs6000_register_convert_to_raw): Deleted.
6878 (rs6000_register_type, rs6000_convert_register_p,
6879 rs6000_register_to_value, rs6000_value_to_register): New
6880 functions.
6881 (rs6000_gdbarch_init): Don't register
6882 gdbarch_deprecated_register_size,
6883 gdbarch_deprecated_register_bytes,
6884 gdbarch_deprecated_register_byte,
6885 gdbarch_deprecated_register_raw_size,
6886 gdbarch_deprecated_register_virtual_type,
6887 gdbarch_deprecated_register_convertible,
6888 gdbarch_deprecated_register_convert_to_virtual, or
6889 gdbarch_deprecated_register_convert_to_raw methods. Instead,
6890 register gdbarch_register_type, gdbarch_convert_register_p,
6891 gdbarch_register_to_value, and gdbarch_value_to_register methods.
6892
6893 2004-05-26 Jim Blandy <jimb@redhat.com>
6894
6895 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
6896 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
6897 functions, updated to match the register numberings used in GCC.
6898 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
6899 rs6000_dwarf2_reg_to_regnum as register number conversions
6900 functions for STABS and Dwarf2.
6901
6902 2004-05-26 Randolph Chung <tausq@debian.org>
6903
6904 * infttrace.h (target_waitkind): Forward declare type instead of pulling
6905 in header file.
6906
6907 2004-05-25 Joel Brobecker <brobecker@gnat.com>
6908
6909 * NEWS: Document new "start" command.
6910
6911 2004-05-25 Randolph Chung <tausq@debian.org>
6912
6913 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
6914 hppa-linux.
6915
6916 2004-05-25 Randolph Chung <tausq@debian.org>
6917
6918 * hppa-hpux-tdep.c (offsetof): Define.
6919 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
6920 (hppa32_hpux_frame_base_before_sigtramp)
6921 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
6922 (hppa64_hpux_frame_saved_pc_in_sigtramp)
6923 (hppa64_hpux_frame_base_before_sigtramp)
6924 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
6925 functions.
6926 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
6927 (hppa_hpux_sigtramp_frame_unwind_cache)
6928 (hppa_hpux_sigtramp_frame_this_id)
6929 (hppa_hpux_sigtramp_frame_prev_register)
6930 (hppa_hpux_sigtramp_frame_unwind)
6931 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
6932 (hppa_hpux_init_abi): Register sigtramp unwinder.
6933 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
6934
6935 2004-05-25 Randolph Chung <tausq@debian.org>
6936
6937 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
6938 and multiple stack unwinds.
6939 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
6940
6941 2004-05-25 Andrew Cagney <cagney@gnu.org>
6942
6943 * symfile.h (symbol_file_add_from_memory): Delete declaration.
6944 * symfile-mem.h: Delete file.
6945 * symfile-mem.c: Do not include "symfile-mem.h".
6946 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
6947 "struct bfd_section". When an error do not bother returning NULL.
6948 (add_symbol_file_from_memory_command): Use "struct bfd" and
6949 "struct bfd_section".
6950 * Makefile.in (symfile_mem_h): Delete.
6951 (symfile-mem.o): Update dependencies.
6952
6953 2004-05-25 Nick Roberts <nickrob@gnu.org>
6954
6955 * gdb-mi.el: New file.
6956
6957 2004-05-25 Andrew Cagney <cagney@gnu.org>
6958
6959 * inftarg.c: Include "observer.h".
6960 (child_attach, child_create_inferior): Notify inferior_created.
6961 * corelow.c: Include "observer.h".
6962 (core_open): Notify inferior_created.
6963 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
6964
6965 2004-05-25 Andrew Cagney <cagney@gnu.org>
6966
6967 * target.h (struct target_ops): Add from_tty to
6968 to_create_inferior.
6969 (target_create_inferior, find_default_create_inferior): Update.
6970 * infcmd.c (run_command): Update.
6971 * wince.c (child_create_inferior): Update.
6972 * win32-nat.c (child_create_inferior): Update.
6973 * uw-thread.c (uw_thread_create_inferior): Update.
6974 * thread-db.c (thread_db_create_inferior): Update.
6975 * target.c (debug_to_create_inferior)
6976 (find_default_create_inferior): Update.
6977 (maybe_kill_then_create_inferior): Update.
6978 * sol-thread.c (sol_thread_create_inferior): Update.
6979 * remote.c (extended_remote_async_create_inferior)
6980 (extended_remote_create_inferior): Update.
6981 * remote-vx.c (vx_create_inferior): Update.
6982 * remote-st.c (st2000_create_inferior): Update.
6983 * remote-sim.c (gdbsim_create_inferior): Update.
6984 * remote-sds.c (sds_create_inferior): Update.
6985 * remote-rdp.c (remote_rdp_create_inferior): Update.
6986 * remote-rdi.c (arm_rdi_create_inferior): Update.
6987 * remote-m32r-sdi.c (m32r_create_inferior): Update.
6988 * remote-e7000.c (e7000_create_inferior): Update.
6989 * procfs.c (procfs_create_inferior): Update.
6990 * ocd.c (ocd_create_inferior): Update.
6991 * ocd.h (ocd_create_inferior): Update.
6992 * nto-procfs.c (procfs_create_inferior): Update.
6993 * monitor.c (monitor_create_inferior): Update.
6994 * lin-lwp.c (lin_lwp_create_inferior): Update.
6995 * inftarg.c (child_create_inferior): Update.
6996 * hpux-thread.c (hpux_thread_create_inferior): Update.
6997 * gnu-nat.c (gnu_create_inferior): Update.
6998
6999 2004-05-25 Andrew Cagney <cagney@gnu.com>
7000
7001 * MAINTAINERS: Update e-mail address.
7002
7003 2004-05-24 Randolph Chung <tausq@debian.org>
7004
7005 * thread.c (info_threads_command, thread_apply_all_command)
7006 (thread_apply_command, thread_command, do_captured_thread_select):
7007 Remove HPUXHPPA-specific code.
7008
7009 2004-05-24 Randolph Chung <tausq@debian.org>
7010
7011 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
7012 unused symbols.
7013 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
7014 references.
7015
7016 2004-05-24 Joel Brobecker <brobecker@gnat.com>
7017
7018 * infcmd.c (kill_if_already_running): New function, extracted
7019 from run_command().
7020 (run_command): Replace extracted code by call to
7021 kill_if_already_running().
7022 (start_command): New function.
7023 (_initialize_infcmd): Add "start" command.
7024
7025 2004-05-24 Mark Kettenis <kettenis@gnu.org>
7026
7027 Add OpenBSD/m88k support.
7028 * NEWS (New native configurations): Mention OpenBSD/m88k.
7029 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
7030 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
7031 * Makefile.in (m88k_tdep_h): New variable.
7032 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
7033 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
7034 * configure.host: Add m88*-*-openbsd*.
7035 * configure.tgt: Add m88*-*-openbsd*.
7036
7037 2004-05-24 Jim Blandy <jimb@redhat.com>
7038
7039 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
7040 to approve changes.
7041
7042 2004-05-24 Kevin Buettner <kevinb@redhat.com>
7043
7044 * symtab.c (fixup_section): Search section table when lookup by
7045 name fails.
7046
7047 2004-05-24 Randolph Chung <tausq@debian.org>
7048
7049 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
7050 be "small_struct".
7051
7052 2004-05-24 Mark Kettenis <kettenis@gnu.org>
7053
7054 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
7055 register number in regcache_raw_collect call.
7056 (m68kbsd_collect_fpregset): Likewise.
7057 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
7058
7059 * regset.h (struct regset): Add back `regset' member.
7060
7061 2004-05-23 Mark Kettenis <kettenis@gnu.org>
7062
7063 * configure.in: Check for td_pcb in `struct thread'.
7064 * configure, config.in: Regenerated.
7065
7066 * dpx2-nat.c: Remove file.
7067 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
7068 (dpx2-nat.o): Remove dependencies.
7069
7070 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
7071 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
7072 (amd64obsd_supply_pcb): New function.
7073 (_initialize_amd64obsd_nat): Enable libkvm interface.
7074 * Makefile.in (amd64obsd-nat.o): Update dependencies.
7075 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
7076 (LOADLIBES): New variable.
7077
7078 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
7079 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
7080 (sparc32nbsd_supply_pcb): New function.
7081 (_initialize_sparcnbsd_nat): Enable libkvm interface.
7082 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
7083 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
7084 (LOADLIBES): New variable.
7085
7086 2004-05-22 Mark Kettenis <kettenis@gnu.org>
7087
7088 * bsd-kvm.c, bsd-kvm.h: New files.
7089 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
7090 "bsd-kvm.h".
7091 (i386fbsd_supply_pcb): New function.
7092 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
7093 (i386fbsd-nat.o): Update dependencies.
7094 (bsd_kvm_h): New variable.
7095 (bsd-kvm.o): New dependency.
7096 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
7097 (LOADLIBES): New variable.
7098
7099 * regset.c: Tweak comment.
7100 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
7101 macro.
7102 * regset.h: Update copyright year.
7103 (struct regset): Remove `descr' member, add `gdbarch' member.
7104 (regset_alloc): Adjust prototype and comment.
7105 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
7106 (i386_supply_fpregset): Likewise.
7107 (i386_regset_from_core_section): Update call to regset_alloc.
7108 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
7109 REGSET->arch.
7110 (i386obsd_aout_regset_from_core_section): Update call to
7111 regset_alloc.
7112 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
7113 REGSET->arch.
7114 (i386nbsd_aout_regset_from_core_section): Update call to
7115 regset_alloc.
7116 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
7117 REGSET->arch.
7118 (amd64_regset_from_core_section): Update call to regset_alloc.
7119 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
7120 REGSET->arch.
7121 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
7122 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
7123 &sparc32nbsd_gregset in sparc32_supply_gregset call.
7124 (sparc32nbsd_init_abi): Update call to regset_alloc.
7125 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
7126 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
7127 (sparc64obsd_init_abi): Update call to regset_alloc.
7128 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
7129 &sparc64nbsd_gregset in sparc64_supply_gregset call.
7130 (sparc64nbsd_init_abi): Update call to regset_alloc.
7131 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
7132 &sparc64fbsd_gregset in sparc64_supply_gregset call.
7133 (sparc64fbsd_init_abi): Update call to regset_alloc.
7134
7135 2004-05-22 Jim Blandy <jimb@redhat.com>
7136
7137 * ppc-tdep.h (spe_register_p): New declaration.
7138 (struct gdbarch_tdep): New members: ppc_acc_regnum and
7139 ppc_spefscr_regnum.
7140 * rs6000-tdep.c (spe_register_p): New function.
7141 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
7142 spefscr.
7143 (rs6000_gdbarch_init): Initialize the new members of the tdep
7144 structure.
7145
7146 2004-05-21 Jim Blandy <jimb@redhat.com>
7147
7148 * ppc-linux-nat.c (fetch_register): Move code back to be next
7149 to the comment that describes it. (Moved code, instead of
7150 comment, for symmetry with store_register.)
7151
7152 Allocate regset structures in the gdbarch's obstack, not using
7153 xmalloc.
7154 * regset.c (regset_alloc): Renamed from regset_xmalloc.
7155 Add 'arch' argument. Allocate the regset on arch's obstack, not
7156 using xmalloc.
7157 * regset.h (regset_alloc): Update declaration.
7158 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
7159 gdbarch argument.
7160 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7161 * i386-tdep.c (i386_regset_from_core_section): Same.
7162 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7163 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7164 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7165 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7166 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7167 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7168
7169 2004-05-21 Joel Brobecker <brobecker@gnat.com>
7170
7171 * config/djgpp/fnchange.lst: Undo previous change, was useless.
7172
7173 2004-05-21 Jim Blandy <jimb@redhat.com>
7174
7175 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
7176 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
7177
7178 2004-05-20 Jim Blandy <jimb@redhat.com>
7179
7180 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
7181
7182 2004-05-20 Mark Kettenis <kettenis@gnu.org>
7183
7184 * regset.h: Make prototype const-correct.
7185 * regset.c (regset_xmalloc): Make const-correct.
7186
7187 2004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
7188
7189 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
7190 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
7191 (symbol_search_name): Declare.
7192
7193 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
7194 (iter_name_next_hashed): Ditto.
7195 (iter_name_next_linear): Ditto.
7196 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
7197
7198 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
7199 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
7200 (symbol_search_name): New function.
7201
7202 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
7203
7204 * minsyms.c (build_minimal_symbol_hash_tables): Change
7205 test for adding to demangled hash table to check for difference
7206 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
7207
7208 2004-05-19 Jim Blandy <jimb@redhat.com>
7209
7210 Use a constructor function to create regset structures.
7211 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
7212 (struct regset): Use supply_regset_ftype. Add new
7213 'collect_regset' member.
7214 (regset_xmalloc): New declaration.
7215 * regset.c: New file.
7216 * am64-tdep.c (amd64_regset_from_core_section): Use
7217 regset_xmalloc to construct regset structures.
7218 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7219 * i386-tdep.c (i386_regset_from_core_section): Same.
7220 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7221 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7222 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7223 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7224 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7225 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7226 * Makefile.in (COMMON_OBS): Add regset.o.
7227 (regset.o): New rule.
7228
7229 2004-05-19 Joel Brobecker <brobecker@gnat.com>
7230
7231 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
7232 and pthread_cond_wait.c.
7233
7234 2004-05-18 Jim Blandy <jimb@redhat.com>
7235
7236 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
7237 before the mach-specific switch, and then let the individual cases
7238 override the defaults, rather than leaving them uninitialized
7239 until the switch and then setting them in each case.
7240
7241 2004-05-18 Randolph Chung <tausq@debian.org>
7242
7243 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
7244 millicode functions.
7245
7246 2004-05-18 Randolph Chung <tausq@debian.org>
7247
7248 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
7249 references to dld_flags_buffer consistent.
7250
7251 2004-05-18 Randolph Chung <tausq@debian.org>
7252
7253 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
7254 it for unwinding the stack.
7255
7256 2004-05-18 Randolph Chung <tausq@debian.org>
7257
7258 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
7259 Undefine these so we can overide them using gdbarch.
7260
7261 2004-05-18 Randolph Chung <tausq@debian.org>
7262
7263 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
7264 handling for 64-bit HPUX (elf).
7265
7266 2004-05-18 Daniel Jacobowitz <dan@debian.org>
7267
7268 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
7269 constants.
7270 * amd64-tdep.c (amd64_skip_prologue): Likewise.
7271 * ia64-tdep.c (examine_prologue): Likewise.
7272 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
7273 * v850-tdep.c (v850_fix_call_dummy): Likewise.
7274
7275 2004-05-18 Mark Kettenis <kettenis@gnu.org>
7276
7277 * vax-tdep.c (vax_return_value): Implement
7278 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7279
7280 2004-05-17 Mark Kettenis <kettenis@gnu.org>
7281
7282 * vax-tdep.c (vax_return_value): Fix typo.
7283
7284 2004-05-17 Andrew Cagney <cagney@redhat.com>
7285
7286 * MAINTAINERS: Mark Salter was also responsible for
7287 testsuite/config/
7288
7289 * NEWS: Mention signal fixes.
7290
7291 2004-05-17 Randolph Chung <tausq@debian.org>
7292
7293 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
7294 check to see if we are unwinding an export stub. Export stubs clobber
7295 the %rp in the call path and stores the original rp in a stack slot.
7296
7297 2004-05-17 Jim Blandy <jimb@redhat.com>
7298
7299 * MAINTAINERS: Update address for J.T. Conklin.
7300
7301 2004-05-17 Randolph Chung <tausq@debian.org>
7302
7303 * hppa-tdep.c: Remove superfluous #include's.
7304 * Makefile.in (hppa-tdep.o): Update dependencies.
7305
7306 2004-05-17 Randolph Chung <tausq@debian.org>
7307
7308 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
7309 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
7310 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
7311 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
7312 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
7313 Remove static function declarations.
7314
7315 2004-05-17 Mark Kettenis <kettenis@gnu.org>
7316
7317 * alphabsd-nat.c: Update copyright year.
7318 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
7319
7320 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
7321 and M68K_A2_REGNUM.
7322
7323 * m68k-tdep.c (m68k_svr4_return_value): Implement
7324 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7325
7326 2004-05-16 Mark Kettenis <kettenis@gnu.org>
7327
7328 * sol-thread.c Update copyright year. Fix various coding
7329 standards violations. Tweak a few comments.
7330 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
7331 Delete prototypes.
7332
7333 2004-05-15 Randolph Chung <tausq@debian.org>
7334
7335 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
7336 as pointer instead of array reference since HPUX compiler does
7337 not accept unsized array arguments.
7338 * somsolib.c (dld_flags_buffer): Use constant array size.
7339
7340 2004-05-15 Mark Kettenis <kettenis@gnu.org>
7341
7342 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
7343 offset with decimal offset.
7344 (amd64obsd_sigcontext_addr): Return correct address for entire
7345 signal trampoline.
7346
7347 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
7348 instead of get_frame_base.
7349
7350 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
7351 (fill_gregset): Use regcache_raw_collect.
7352
7353 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
7354 ppcobsd-tdep.c.
7355
7356 * config/sparc/tm-nbsd64.h: Remove file.
7357 * config/tm-sunos.h: Remove file.
7358
7359 2004-05-15 Joel Brobecker <brobecker@gnat.com>
7360
7361 * rs6000-tdep.c (store_param_on_stack_p): New function,
7362 an improved version of some code extracted from skip_prologue().
7363 (skip_prologue): Use store_param_on_stack_p() to detect
7364 instructions saving a parameter on the stack. Detect when r0
7365 is used to save a parameter.
7366 Do not mark "li rx, SIMM" instructions as part of the prologue,
7367 unless the following instruction is also part of the prologue.
7368
7369 2004-05-14 Andrew Cagney <cagney@redhat.com>
7370
7371 * infrun.c (handle_inferior_event): Simplify
7372 STEP_OVER_UNDEBUGGABLE.
7373
7374 * infrun.c (handle_step_into_function): Delete function.
7375 (handle_inferior_event): Inline calls to
7376 handle_step_into_function.
7377
7378 2004-05-14 Jerome Guitton <guitton@gnat.com>
7379
7380 * rs6000-nat.c: Fix a comment.
7381
7382 2004-05-12 David Anderson <davea@sgi.com>
7383
7384 Committed by Jim Blandy <jimb@redhat.com>:
7385 * regcache.c (struct regcache_descr): fix comment spelling.
7386
7387 2004-05-13 J. Brobecker <brobecker@gnat.com>
7388
7389 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
7390 Fixes a link link failure.
7391
7392 2004-05-13 J. Brobecker <brobecker@gnat.com>
7393
7394 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
7395 error that was causing the build to fail.
7396
7397 2004-05-13 J. Brobecker <brobecker@gnat.com>
7398
7399 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
7400 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
7401
7402 2004-05-13 Andrew Cagney <cagney@redhat.com>
7403
7404 * infrun.c (handle_inferior_event): Check for
7405 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
7406 calls. Update comments.
7407
7408 2004-05-13 Jim Blandy <jimb@redhat.com>
7409
7410 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
7411 (fetch_regs_user_thread, fetch_regs_kernel_thread)
7412 (store_regs_user_thread, store_regs_kernel_thread): Use
7413 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
7414 * ppc-linux-nat.c (fill_gregset): Same.
7415 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
7416 (ppc_linux_sigtramp_cache): Same.
7417 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
7418 (ppcnbsd_sigtramp_cache_init): Same.
7419 * rs6000-nat.c (fetch_core_registers): Same.
7420 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
7421 (rs6000_frame_cache): Same.
7422
7423 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
7424 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
7425 of assuming that the gprs are numbered starting with zero.
7426 * ppc-linux-nat.c (fill_gregset): Same.
7427 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
7428 * ppcnbsd-nat.c (getregs_supplies): Same.
7429 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
7430 * rs6000-nat.c (fetch_core_registers): Same.
7431 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
7432
7433 2004-05-07 Michael Snyder <msnyder@redhat.com>
7434
7435 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
7436 LOC_COMPUTED_ARG, and LOC_INDIRECT.
7437
7438 2004-05-13 Andrew Cagney <cagney@redhat.com>
7439
7440 * infrun.c (handle_inferior_event): Use frame_unwind_id.
7441
7442 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
7443
7444 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
7445 base_address for shared libraries.
7446
7447 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
7448
7449 * MAINTAINERS (write after approval): Add myself.
7450
7451 2004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
7452
7453 * breakpoint.c (bpstat_stop_status): Add new argument
7454 STOPPED_BY_WATCHPOINT. Use it instead of testing
7455 target_stopped_data_address agaist 0 to check whether
7456 or not we stopped due to a hardware watchpoint.
7457 * breakpoint.h (bpstat_stop_status): Adapt prototype.
7458 * infrun.c (handle_inferior_event): Call bpstat_stop_status
7459 with new argument.
7460
7461 2004-05-12 Jim Blandy <jimb@redhat.com>
7462
7463 * configure.in: When checking whether we should use the -bbigtoc
7464 option, don't forget to restore the original value of LDFLAGS.
7465 * configure: Regenerated.
7466
7467 2004-05-12 Andrew Cagney <cagney@redhat.com>
7468
7469 * thread.c (load_infrun_state): Delete step_sp.
7470 * infrun.c (context_switch): Ditto.
7471 * inferior.h (step_sp): Ditto.
7472 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
7473 * gdbthread.h (struct thread_info, save_infrun_state)
7474 (restore_infrun_state): Ditto.
7475
7476 2004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
7477
7478 * MAINTAINERS (write after approval): Add myself.
7479
7480 2004-05-12 Andrew Cagney <cagney@redhat.com>
7481
7482 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
7483 eliminate reference to step_sp.
7484 (struct execution_control_state, init_execution_control_state)
7485 (handle_inferior_event, keep_going): Delete update_step_sp and
7486 step_sp.
7487 * infcmd.c (step_sp): Note that variable is unused.
7488
7489 2004-05-11 Andrew Cagney <cagney@redhat.com>
7490
7491 * infrun.c (step_over_function): Delete function.
7492 (handle_step_into_function): Use insert_step_resume_breakpoint.
7493 (insert_step_resume_breakpoint): Fix assertion.
7494
7495 2004-05-11 Nick Roberts <nickrob@gnu.org>
7496
7497 * utils.c (defaulted_query): Just use the normal query input type
7498 when printing the annotations.
7499
7500 2004-05-11 Andrew Cagney <cagney@redhat.com>
7501
7502 * infrun.c (handle_inferior_event): Simplify code handling
7503 step-into or return-from a signal trampoline.
7504
7505 2004-05-11 Andrew Cagney <cagney@redhat.com>
7506
7507 * ppcnbsd-tdep.c: Include "gdb_assert.h".
7508 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
7509
7510 2004-05-10 Jim Blandy <jimb@redhat.com>
7511
7512 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
7513 with a call to internal_error.
7514
7515 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
7516 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
7517 processor variant lacks those registers.
7518 (ppc_floating_point_unit_p): Change description to make it clear
7519 that this returns info about the ISA, not the ABI.
7520 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
7521 return true or false by checking tdep->ppc_fp0_regnum and
7522 tdep->ppc_fpscr_regnum. The original code replicated the BFD
7523 arch/mach switching done in rs6000_gdbarch_init; it's better to
7524 keep that logic there, and just check the results here.
7525 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
7526 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
7527 floating-point registers.
7528 (ppc_supply_fpregset, ppc_collect_fpregset)
7529 (rs6000_push_dummy_call, rs6000_extract_return_value)
7530 (rs6000_store_return_value): Assert that we have floating-point
7531 registers.
7532 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
7533 (rs6000_frame_cache): Don't note the locations at which
7534 floating-point registers were saved if we have no fprs.
7535 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
7536 registers.
7537 (fetch_regs_user_thread, fetch_regs_kernel_thread)
7538 (store_regs_user_thread, store_regs_kernel_thread): Only call
7539 supply_fprs / fill_fprs if we actually have floating-point
7540 registers.
7541 (special_register_p): Check ppc_fpscr_regnum before matching
7542 against it.
7543 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
7544 supply / collect fpscr if we don't have it.
7545 * ppc-bdm.c: #include "gdb_assert.h".
7546 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
7547 have floating-point registers, since I can't test this code on
7548 FP-free systems to adapt it.
7549 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
7550 fpscr and floating point register numbers if they don't exist.
7551 (fetch_register): Assert that we have floating-point registers
7552 before we reach the code that handles them.
7553 (store_register): Same. And use tdep instead of calling
7554 gdbarch_tdep again.
7555 (fill_fpregset): Don't try to collect FP registers and fpscr if we
7556 don't have them.
7557 (ppc_linux_sigtramp_cache): Don't record the saved locations of
7558 fprs and fpscr if we don't have them.
7559 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
7560 don't have them.
7561 * ppcnbsd-nat.c: #include "gdb_assert.h".
7562 (getfpregs_supplies): Assert that we have floating-point registers.
7563 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
7564 * ppcobsd-tdep.c: #include "gdb_assert.h".
7565 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
7566 have floating-point registers.
7567 * rs6000-nat.c (regmap): Don't match against the fpscr and
7568 floating point register numbers if they don't exist.
7569 (fetch_inferior_registers, store_inferior_registers,
7570 fetch_core_registers): Only fetch / store / supply the
7571 floating-point registers and the fpscr if we have them.
7572 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
7573 (ppcobsd-tdep.o): Update dependencies.
7574
7575 2004-05-10 Andrew Cagney <cagney@redhat.com>
7576
7577 * infrun.c (through_sigtramp_breakpoint): Delete variable.
7578 (context_switch): Do not switch through_sigtramp_breakpoint.
7579 * gdbthread.h (save_infrun_state, load_infrun_state)
7580 (struct thread_info): Delete through_sigtramp_breakpoint parameter
7581 and structure member.
7582 * thread.c (load_infrun_state, save_infrun_state): Update.
7583
7584 2004-05-10 Mark Kettenis <kettenis@gnu.org>
7585
7586 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
7587
7588 2004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
7589
7590 * acinclude.m4: Quote macro names being defined by AC_DEFUN
7591 throughout.
7592 * aclocal.m4: Regenerate.
7593
7594 2004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
7595
7596 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
7597
7598 2004-05-10 Andrew Cagney <cagney@redhat.com>
7599
7600 * infrun.c (check_sigtramp2): Delete function.
7601 (handle_inferior_event): When single stepping, and taking a
7602 signal, set a breakpoint at the signal return address. Delete
7603 redundant calls to check_sigtramp2.
7604 (insert_step_resume_breakpoint): New function.
7605 (through_sigtramp_breakpoint, handle_inferior_event)
7606 (follow_exec, wait_for_inferior, fetch_inferior_event)
7607 (currently_stepping, keep_going): Delete most uses of
7608 through_sigtramp_breakpoint, not that it should be deleted.
7609 (delete_breakpoint_current_contents): Delete function.
7610
7611 2004-05-10 Randolph Chung <tausq@debian.org>
7612
7613 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
7614 target.
7615 * config/pa/tm-linux.h: New file.
7616
7617 2004-05-10 Daniel Jacobowitz <drow@mvista.com>
7618
7619 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
7620 of prefixes. Don't print the prefix twice in the CLI.
7621
7622 2004-05-10 Jim Blandy <jimb@redhat.com>
7623
7624 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
7625 collect all the gprs.
7626
7627 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
7628 loop collecting gprs.
7629
7630 2004-05-09 Andrew Cagney <cagney@redhat.com>
7631
7632 * remote-vx.c (net_step): Delete step-range code.
7633 * remote.c (remote_resume, init_all_packet_configs)
7634 (set_remote_protocol_E_packet_cmd)
7635 (show_remote_protocol_E_packet_cmd)
7636 (remote_protocol_E, show_remote_cmd, _initialize_remote)
7637 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
7638 (show_remote_protocol_e_packet_cmd): Ditto.
7639
7640 2004-05-09 Mark Kettenis <kettenis@gnu.org>
7641
7642 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
7643
7644 * hppa-tdep.h: Update copyright year.
7645 (struct trad_frame_saved_reg): Add opaque declaration.
7646
7647 * amd64-tdep.c (amd64_return_value): Implement
7648 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7649
7650 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
7651 (m68k_value_to_register): New functions.
7652 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
7653 value_to_register.
7654
7655 * defs.h (enum return_value_convention): Add
7656 RETURN_VALUE_ABI_RETURNS_ADDRESS and
7657 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
7658 * infcmd.c (legacy_return_value): New function.
7659 (print_return_value): Rwerite to implement
7660 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7661 * values.c (using_struct_return): Check for inequality to
7662 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
7663 RETURN_VALUE_STRUCT_CONVENTION.
7664 * i386-tdep.c (i386_return_value): Implement
7665 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7666
7667 * vax-tdep.c: Tweak comments. Reorder include files. Don't
7668 include "symtab.h", "opcode/vax.h" and "inferior.h".
7669 (vax_skip_prologue): Replace calls to read_memory_integer by calls
7670 to read_memory_unsigned_integer.
7671 (vax_gdbarch_init): Reorder.
7672 (_initialize_vax_tdep): Spell out prototype.
7673 * Makefile.in (vax-tdep.o): Update dependencies.
7674
7675 2004-05-08 Andrew Cagney <cagney@redhat.com>
7676
7677 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
7678 * target.c (target_detach, target_disconnect): Ditto.
7679
7680 * infcall.c (call_function_by_hand): When no
7681 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
7682 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
7683 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
7684 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7685 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7686
7687 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
7688 * gdbarch.h, gdbarch.c: Re-generate.
7689 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7690 deprecated_fix_call_dummy.
7691 * v850-tdep.c (v850_gdbarch_init): Ditto.
7692 * infcall.c (call_function_by_hand): Do not call
7693 DEPRECATED_FIX_CALL_DUMMY.
7694
7695 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
7696 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
7697 * gdbarch.h, gdbarch.c: Re-generate.
7698 * arm-linux-tdep.c (arm_linux_call_dummy_words)
7699 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
7700 deprecated_sizeof_call_dummy_words.
7701 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
7702 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7703 * v850-tdep.c (v850_gdbarch_init): Ditto.
7704 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
7705 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
7706 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7707 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7708 * arch-utils.h (legacy_call_dummy_words)
7709 (legacy_sizeof_call_dummy_words): Delete declarations.
7710 * arch-utils.c (legacy_call_dummy_words)
7711 (legacy_sizeof_call_dummy_words): Delete variables.
7712
7713 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
7714 * gdbarch.h, gdbarch.c: Re-generate.
7715 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
7716 * infcall.c (call_function_by_hand): Eliminate call to
7717 DEPRECATED_PUSH_DUMMY_FRAME.
7718 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
7719 push_dummy_frame.
7720 (ns32k_push_dummy_frame): Delete function.
7721
7722 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7723 deprecated_call_dummy_breakpoint_offset or
7724 deprecated_call_dummy_start_offset.
7725 * dummy-frame.c, arm-tdep.c: Update comments.
7726 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
7727 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
7728 * gdbarch.h, gdbarch.c: Re-generate.
7729
7730 * infcall.c (legacy_push_dummy_code): Delete function.
7731 (push_dummy_code): Delete call.
7732
7733 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
7734 * gdbarch.h, gdbarch.c: Re-generate.
7735 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
7736 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
7737 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
7738 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
7739
7740 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
7741 (struct frame_info): Delete opaque declaration.
7742 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
7743 * frame.c (get_frame_type): Delete call.
7744
7745 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
7746 pc_in_call_dummy.
7747 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
7748 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
7749
7750 2004-05-08 Mark Kettenis <kettenis@gnu.org>
7751
7752 * alphanbsd-tdep.c: Include "gdb_string.h".
7753 * armnbsd-tdep.c: Update copyright year.
7754 Include "gdb_string.h".
7755 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
7756 dependencies.
7757
7758 * delta68-nat.c: Remove file.
7759 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
7760 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
7761 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
7762 (delta68-nat.o): Remove dependency.
7763
7764 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
7765 function.
7766 (m68k_gdbarch_init): Don't set
7767 deprecated_frameless_function_invocation.
7768
7769 2004-05-07 Randolph Chung <tausq@debian.org>
7770
7771 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
7772 read_memory_nobpt for code reading when doing frame unwinding.
7773 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
7774
7775 2004-05-07 Randolph Chung <tausq@debian.org>
7776
7777 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
7778 instead of sp, handle sigaltstack case.
7779 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
7780 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
7781 signal handler and not that of the caller.
7782 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
7783 hppa_linux_sigtramp_find_sigcontext.
7784
7785 2004-05-07 Randolph Chung <tausq@debian.org>
7786
7787 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
7788 hppa-linux-nat.c.
7789 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
7790 * hppa-linux-nat.c (fetch_register, store_register): Define.
7791 (fetch_inferior_registers, store_inferior_registers): Define.
7792 (supply_gregset): Add comment and clean up some unneeded code.
7793 (fill_gregset): Add comment and fix so that it saves registers in
7794 the right place in the gregset.
7795 (fill_fpregset): Fix buffer overrun problem.
7796 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
7797
7798 2004-05-07 Randolph Chung <tausq@debian.org>
7799
7800 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
7801 do common handling of the pcoqt register.
7802 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
7803 to use helper function.
7804 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
7805 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
7806 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
7807 generic fallback unwinder when all else fails.
7808 (hppa_gdbarch_init): Add fallback sniffer.
7809 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
7810 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
7811 to use helper function.
7812
7813 2004-05-08 Joel Brobecker <brobecker@gnat.com>
7814
7815 * config/djgpp/fnchange.lst: Add translation rules for
7816 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
7817
7818 2004-05-08 Mark Kettenis <kettenis@gnu.org>
7819
7820 * frame.c (get_prev_frame_1): Work around GCC bug.
7821 * frame.h: Add comment about GCC bug.
7822
7823 2004-05-07 Andrew Cagney <cagney@redhat.com>
7824
7825 * observer.c: Include "commands.h" and "gdbcmd.h".
7826 (observer_debug, _initialize_observer): Add the
7827 command "set/show debug observer".
7828 * observer.sh: When observer debugging, log notify calls.
7829 * Makefile.in (observer.o): Update dependencies.
7830
7831 2004-05-07 Jason Molenda (jmolenda@apple.com)
7832
7833 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
7834
7835 2004-05-07 Jim Blandy <jimb@redhat.com>
7836
7837 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
7838 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
7839 to recognize gpr regnums, instead of assuming that
7840 tdep->ppc_fp0_regnum marks the end of the general-purpose
7841 registers.
7842
7843 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
7844 the given architecture has floating-point registers.
7845
7846 2004-05-07 Andrew Cagney <cagney@redhat.com>
7847
7848 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
7849 macro defined to 1.
7850 * gdbarch.h, gdbarch.c: Re-generate.
7851 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7852 deprecated_use_generic_dummy_frames.
7853
7854 2004-05-07 Brian Ford <ford@vss.fsi.com>
7855
7856 * NEWS: Mention Cygwin DWARF 2 support.
7857
7858 2004-05-07 Andrew Cagney <cagney@redhat.com>
7859
7860 * objfiles.h (struct entry_info): Delete unused fields
7861 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
7862 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
7863 * mipsread.c (mipscoff_symfile_read): Update.
7864 * mdebugread.c (parse_partial_symbols): Update.
7865 * dwarfread.c (read_file_scope): Update.
7866 * dwarf2read.c (read_file_scope): Update.
7867 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
7868 * coffread.c (complete_symtab): Update.
7869
7870 2004-05-07 Mark Kettenis <kettenis@gnu.org>
7871
7872 * infcall.c (_initialize_infcall): Fix typo.
7873
7874 2004-05-07 Andrew Cagney <cagney@redhat.com>
7875
7876 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
7877 * command.h (add_setshow_zinteger_cmd): Declare.
7878
7879 2004-05-06 Randolph Chung <tausq@debian.org>
7880
7881 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
7882 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
7883 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
7884 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
7885 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
7886 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
7887 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
7888 definitions ...
7889 * hppa-tdep.h: ... to here, with HPPA_ prefix.
7890 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
7891 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
7892 (hppa64_hpux_frame_find_saved_regs_in_sig)
7893 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
7894 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
7895 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
7896 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
7897 (hppa_linux_sigtramp_frame_prev_register): Likewise.
7898 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
7899 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
7900 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
7901 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
7902 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
7903 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
7904 (hppa32_register_type, hppa_cannot_store_register)
7905 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
7906 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
7907 * hpread.c (hpread_process_one_debug_symbol): Likewise.
7908 * pa64solib.c (pa64_solib_have_load_event)
7909 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
7910 (pa64_solib_unloaded_library_pathname): Likewise.
7911 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
7912 (som_solib_library_pathname): Likewise.
7913
7914 2004-05-05 Jim Ingham <jingham@apple.com>
7915
7916 * breakpoint.c (create_breakpoints): Copy the ignore count and
7917 thread id over from the pended breakpoint to the actual
7918 breakpoint.
7919
7920 2004-05-05 Andrew Cagney <cagney@redhat.com>
7921
7922 * gdbarch.sh (PARM_BOUNDARY): Delete.
7923 gdbarch.h, gdbarch.c: Re-generate.
7924 * valops.c (PARM_BOUNDARY): Delete macro.
7925 (value_push): Delete PARM_BOUNDARY code.
7926 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
7927
7928 2004-05-04 Jim Blandy <jimb@redhat.com>
7929
7930 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
7931 Don't assume that the gprs, fprs, and UISA sprs are
7932 contiguous, start at register number zero, and end with fpscr.
7933 Instead, use the numbers from the tdep structure.
7934
7935 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
7936 should no longer be used in code specific to the RS6000 and its
7937 derivatives.
7938 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
7939 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
7940 tdep->ppc_fp0_regnum.
7941 (ppc_supply_fpregset, ppc_collect_fpregset)
7942 (rs6000_push_dummy_call, rs6000_extract_return_value)
7943 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
7944 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
7945 FP0_REGNUM.
7946 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
7947 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
7948 Same.
7949 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
7950 bdm_ppc_store_registers): Same.
7951 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
7952 (store_register, fill_fpregset): Same.
7953 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
7954 (ppc_linux_supply_fpregset): Same.
7955 * ppcnbsd-nat.c (getfpregs_supplies): Same.
7956 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
7957 Same.
7958 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
7959 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
7960 ppc64_sysv_abi_return_value): Same.
7961 * rs6000-nat.c (regmap, fetch_inferior_registers)
7962 (store_inferior_registers, fetch_core_registers): Same.
7963
7964 2004-05-01 Mark Kettenis <kettenis@gnu.org>
7965
7966 * m68knbsd-nat.c: Remove file.
7967 * m68knbsd-tdep.c: Remove file.
7968 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
7969 dependencies.
7970 * configure.host: Add m68k-*-netbsdelf*.
7971 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
7972 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
7973 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
7974 (XM_FILE): Remove.
7975 * config/m68k/nbsdelf.mh: New file.
7976 * config/m68k/nbsd.mt: New file.
7977 * config/m68k/nbsdaout.mt: Remove file.
7978 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
7979 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
7980 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
7981 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
7982 (use_struct_convention): Remove prototype.
7983 (USE_STRUCT_CONVENTION): Remove define.
7984 * config/m68k/xm-nbsd.h: Remove file.
7985
7986 2004-05-04 Michael Snyder <msnyder@redhat.com>
7987
7988 * m68k-tdep.c (m68k_gdbarch_init): Default to using
7989 reg_struct_return method (as gcc usually does for cross targets).
7990
7991 2004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7992
7993 Committed by Andrew Cagney.
7994 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
7995 alignment padding when accessing ucontext struct members.
7996
7997 2004-05-04 Jim Blandy <jimb@redhat.com>
7998
7999 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
8000 'ppc_gplast_regnum' member.
8001 (ppc_num_gprs): New enum constant.
8002 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
8003 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
8004 * rs6000-nat.c (regmap, fetch_inferior_registers,
8005 store_inferior_registers): Same.
8006 * rs6000-tdep.c (e500_pseudo_register_read)
8007 (e500_pseudo_register_write): Same.
8008 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
8009
8010 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
8011 * ppc-tdep.h (ppc_num_fprs): New enum constant.
8012 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
8013 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
8014 FPLAST_REGNUM.
8015 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8016 Same.
8017 * ppc-linux-nat.c (ppc_register_u_addr): Same.
8018 * rs6000-nat.c (regmap, fetch_inferior_registers)
8019 (store_inferior_registers): Same.
8020
8021 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
8022 with FPLAST_REGNUM.
8023
8024 2004-05-03 Joel Brobecker <brobecker@gnat.com>
8025
8026 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
8027 failure detected by recent versions of GCC.
8028 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
8029 to be consistent with the usage in dwarf2_create_include_psymtab.
8030
8031 2004-05-03 Michael Snyder <msnyder@redhat.com>
8032
8033 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
8034 (heuristic_proc_start): Whitespace cleanup.
8035
8036 2004-05-04 Mark Kettenis <kettenis@gnu.org>
8037
8038 * sun3-nat.c: Remove file.
8039 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
8040 dependencies.
8041 (ALLDEPFILES): Remove sun3-nat.c.
8042 (sun3-nat.o): Remove dependencies.
8043
8044 * i386-interix-nat.c, i386-interix-tdep.c,
8045 config/i386/nm-interix.h, config/i386/interix.mh,
8046 config/i386/interix.mt: Remove files.
8047 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
8048 dependencies.
8049
8050 2004-05-03 Mark Kettenis <kettenis@gnu.org>
8051
8052 * m68k-tdep.h (struct gdbarch_tdep): Add member
8053 struct_value_regnum.
8054 (m68k_svr4_init_abi): New prototype.
8055 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
8056 different calling conventions.
8057 (m68k_extract_return_value): Remove code dealing with single-field
8058 structs.
8059 (m68k_store_return_value): Remove code dealing with single-field
8060 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
8061 (m68k_extract_struct_value_address): Remove function.
8062 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
8063 (m68k_reg_struct_return_p, m68k_return_value)
8064 (m68k_svr4_return_value): New functions.
8065 (m68k_use_struct_convention): Remove function.
8066 (m68k_push_dummy_call): Use new struct_value_regnum member of
8067 `struct gdbarch_tdep' instead of hardcoded register number to
8068 store STRUCT_ADDR.
8069 (m68k_svr4_init_abi): New function.
8070 (m68k_gdbarch_init): Don't set extract_return_value,
8071 store_return_values, deprecated_extract_struct_value_address and
8072 use_struct_convention. Set return_value instead. Initialize new
8073 struct_value_regnum member of `struct gdbarch_tdep'.
8074 * m68klinux-tdep.c: Update copyright year.
8075 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
8076 (m68k_linux_extract_struct_value_address): Remove function.
8077 (m68k_linux_init_abi): Don't set extract_return_value,
8078 store_return_values, deprecated_extract_struct_value_address and
8079 use_struct_convention. Call m68k_svr4_init_abi but override the
8080 new struct_value_regnum member of `struct gdbarch_tdep'.
8081 * Makefile.in (m68k-tdep.o): Update dependencies.
8082
8083 2004-05-03 J. Brobecker <brobecker@gnat.com>
8084
8085 * dwarf2read.c (line_header): Add new included_p field in
8086 field file_names.
8087 (partial_die_info): New field has_stmt_list. New field line_offset.
8088 (dwarf2_create_include_psymtab): New function.
8089 (dwarf2_build_include_psymtabs): New function.
8090 (add_file_name): Add forward declaration. Initialize new field.
8091 (dwarf_decode_lines): Add new parameter. Enhance this procedure
8092 to be able to determine the list of files included by the
8093 given unit, and build their associated psymtabs.
8094 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
8095 files as well.
8096 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
8097 (read_file_scope): Update call to dwarf_decode_lines.
8098 (read_partial_die): Handle DW_AT_stmt_list attributes.
8099
8100 2004-05-02 Michael Chastain <mec.gnu@mindspring.com>
8101
8102 Unfix PR gdb/1626.
8103 * configure.in: Revert special case for osf5.*.
8104 * configure: Regenerate.
8105
8106 2004-05-02 Jim Blandy <jimb@redhat.com>
8107
8108 Move the symbol-file-from-memory functions into their own file.
8109 * symfile-mem.c, symfile-mem.h: New files.
8110 * symfile.c (symbol_file_add_from_bfd): New function.
8111 (symbol_file_add): Call symbol_file_add_from_bfd.
8112 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
8113 Moved to symfile-mem.c.
8114 (_initialize_symfile): Move definition of
8115 add-symbol-file-from-memory command to symfile-mem.c.
8116 * symfile.h (symbol_file_add_from_bfd): New declaration.
8117 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
8118 * config/powerpc/linux.mt (TDEPFILES): Same.
8119 * Makefile.in (SFILES): Add symfile-mem.c.
8120 (symfile_mem_h): New variable.
8121 (HFILES_NO_SRCDIR): Add symfile-mem.h.
8122 (symfile-mem.o): New rule.
8123
8124 2004-05-01 Andrew Cagney <cagney@redhat.com>
8125
8126 * breakpoint.c (insert_bp_location): Use get_frame_id, and
8127 frame_find_by_id instead of frame_relative_level.
8128 (do_enable_breakpoint): Ditto.
8129 * thread.c: Update copyright.
8130 (info_threads_command): Ditto, simplify.
8131
8132 * frame.c (deprecated_generic_get_saved_register): Delete
8133 function, moved to "xstormy16-tdep.c".
8134 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
8135 deprecated_generic_get_saved_register from "frame.c".
8136 (xstormy16_frame_saved_register): Call
8137 xstormy16_get_saved_register.
8138 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
8139 static.
8140 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
8141 * frame.h (deprecated_generic_get_saved_register): Delete.
8142
8143 2004-05-01 Michael Chastain <mec.gnu@mindspring.com>
8144
8145 * dwarfread.c: Update documentation on the state of dwarf-1.
8146
8147 2004-05-01 Andrew Cagney <cagney@redhat.com>
8148
8149 * stack.c (select_frame_command): Delete call to
8150 frame_relative_level.
8151 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
8152 Delete #if0 code.
8153 (frame_info): Do not print FRAMELESS.
8154 (print_block_frame_labels): Replace DEPRECATED_STREQ.
8155 (catch_info): Delete #if0 code.
8156
8157 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
8158 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
8159 of frame_relative_level.
8160 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
8161 to SENTINEL_FRAME.
8162 * frame.h (enum frame_type): Add SENTINEL_FRAME.
8163 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
8164 frame_relative_level.
8165
8166 * frame.h (deprecated_set_frame_type): Delete declaration.
8167 * frame.c (deprecated_set_frame_type): Delete function, update
8168 comments.
8169
8170 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
8171 * gdbarch.h, gdbarch.c: Re-generate.
8172 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
8173 (shnbsd_pc_in_sigtramp): Delete.
8174 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
8175 pc_in_sigtramp.
8176 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
8177 pc_in_sigtramp.
8178 * frame.h: Update comments.
8179 * ppc-linux-tdep.c: Update comments.
8180 * breakpoint.c (bpstat_what): Update comments.
8181
8182 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
8183 m68klinux-tdep.o's dependencies, were previously added to
8184 m68klinux-nat.o.
8185
8186 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
8187 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
8188 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
8189 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
8190 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
8191
8192 * Makefile.in (m68klinux-nat.o): Update dependencies.
8193 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8194 (m68k_linux_sigtramp_frame_cache)
8195 (m68k_linux_sigtramp_frame_this_id)
8196 (m68k_linux_sigtramp_frame_prev_register)
8197 (m68k_linux_sigtramp_frame_unwind)
8198 (m68k_linux_sigtramp_frame_sniffer)
8199 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
8200 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
8201 names, use trad-frame.h.
8202 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
8203 (struct m68k_sigtramp_info): Delete.
8204 * m68k-tdep.c (m68k_sigtramp_frame_cache)
8205 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
8206 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
8207 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
8208 "m68klinux-tdep.c".
8209
8210 * infrun.c (check_sigtramp2): Delete check for
8211 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
8212
8213 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8214
8215 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
8216
8217 2004-05-01 Andrew Cagney <cagney@redhat.com>
8218
8219 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8220 (frv_linux_sigtramp_frame_cache)
8221 (frv_linux_sigtramp_frame_this_id)
8222 (frv_linux_sigtramp_frame_prev_register)
8223 (frv_linux_sigtramp_frame_unwind)
8224 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
8225 include "linux" in function and variable names, directly call
8226 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
8227 the latest trad-frame code.
8228 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
8229 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
8230 * Makefile.in (frv-linux-tdep.o): Update dependencies.
8231 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
8232 * frv-tdep.c (frv_sigtramp_frame_cache)
8233 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
8234 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
8235 frv-linux-tdep.c.
8236 (frv_gdbarch_init): Do not append a sigtramp sniffer.
8237 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
8238 (frv_set_sigcontext_reg_addr): Delete function.
8239
8240 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
8241 (DEPRECATED_SIGTRAMP_END): Delete.
8242 * gdbarch.h, gdbarch.c: Re-generate.
8243 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
8244 * config/vax/tm-vaxbsd.h: Update copyright.
8245 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8246 (DEPRECATED_IN_SIGTRAMP): Define.
8247 * config/m68k/tm-nbsd.h: Update copyright.
8248 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8249 (DEPRECATED_IN_SIGTRAMP): Define.
8250
8251 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8252
8253 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
8254 encondings. Fixes PR gdb/1628.
8255
8256 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
8257 DW_CFA_restore state without a matching DW_CFA_remember_state
8258 instead of aborting. Fixes PR backtrace/1589.
8259
8260 2004-04-30 Joel Brobecker <brobecker@gnat.com>
8261
8262 * MAINTAINERS: Add self as AIX maintainer.
8263 Update my e-mail address in write-after-approval section.
8264
8265 2004-04-30 Andrew Cagney <cagney@redhat.com>
8266
8267 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
8268 (legacy_get_prev_frame): Ditto.
8269
8270 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
8271 (mips_gdbarch_init): Do not set pc_in_sigtramp.
8272 * mipsread.c (sigtramp_address): Delete extern variable.
8273 (mipscoff_new_init): Delete reference.
8274 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
8275 (fixup_sigtramp): Delete function.
8276 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
8277 (fixup_sigtramp): Delete declarations.
8278
8279 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
8280 deprecated_pc_in_sigtramp.
8281 (ppcnbsd_pc_in_sigtramp): Delete function.
8282
8283 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8284
8285 * config/m68k/nm-nbsd.h: Tweak comments.
8286 * config/m68k/nm-nbsdaout.h: Likewise.
8287
8288 2004-04-30 Andrew Cagney <cagney@redhat.com>
8289
8290 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
8291 legacy_pc_in_sigtramp.
8292 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
8293
8294 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8295
8296 Add OpenBSD/m68k support.
8297 * NEWS (New native configurations): Mention OpenBSD/m68k.
8298 * m68kbsd-tdep.c: New file.
8299 * m68kbsd-nat.c: New file.
8300 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
8301 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
8302 * configure.host: Add m68k-*-openbsd.
8303 * configure.tgt: Add m68k-*-openbsd.
8304 * config/m68k/tm-obsd.h: New file.
8305 * config/m68k/obsd.mt: New file.
8306 * config/m68k/obsd.mh: New file.
8307 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
8308 m68kbsd-tdep.c.
8309
8310 2004-04-30 Andrew Cagney <cagney@redhat.com>
8311
8312 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
8313 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
8314
8315 2004-04-30 Mark Kettenis <kettenis@gnu.org>
8316
8317 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
8318 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
8319
8320 2004-04-30 Brian Ford <ford@vss.fsi.com>
8321
8322 Revert 2004-04-16 change.
8323 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
8324 (i386_coff_init_abi): Remove.
8325 * i386-tdep.h (i386_coff_init_abi): Remove.
8326 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
8327
8328 2004-04-30 Andrew Cagney <cagney@redhat.com>
8329
8330 * blockframe.c (find_pc_partial_function): Delete use of
8331 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
8332 DEPRECATED_SIGTRAMP_END.
8333
8334 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
8335 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
8336 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
8337 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
8338 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
8339
8340 * defs.h (deprecated_inside_entry_file): Delete declaration.
8341 * blockframe.c (deprecated_inside_entry_file): Delete function.
8342 (legacy_frame_chain_valid): Delete call.
8343 * sh64-tdep.c (sh64_frame_chain): Delete call.
8344 * objfiles.h: Update comments.
8345 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
8346 call.
8347 * frame.c (get_prev_frame): Delete call, update comments.
8348
8349 2004-04-30 Brian Ford <ford@vss.fsi.com>
8350
8351 * MAINTAINERS (Write After Approval): Add myself.
8352
8353 2004-04-30 Andrew Cagney <cagney@redhat.com>
8354
8355 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
8356 * gdbarch.h, gdbarch.c: Re-generate.
8357 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
8358 code.
8359
8360 2004-04-30 Andrew Cagney <cagney@redhat.com>
8361
8362 * gdb-events.sh (selected_thread_changed)
8363 (selected_frame_level_changed, target_changed): Delete.
8364 * gdb-events.h, gdb-events.c: Re-generate.
8365 * valops.c (value_assign): Update.
8366 * stack.c (select_frame_command, up_silently_base)
8367 (down_silently_base): Update.
8368
8369 2004-04-29 Andrew Cagney <cagney@redhat.com>
8370
8371 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
8372 registers correctly.
8373 (print_gp_register_row, mips32_heuristic_proc_desc)
8374 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
8375 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
8376 references to mips_isa_regsize.
8377
8378 2004-04-29 Andrew Cagney <cagney@redhat.com>
8379
8380 * mips-tdep.c (struct gdbarch_tdep): Delete
8381 mips_fp_register_double.
8382 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
8383 mips_abi_regsize.
8384 (mips_gdbarch_init): Do not set mips_fp_register_double.
8385 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
8386
8387 2004-04-29 Joel Brobecker <brobecker@gnat.com>
8388
8389 Committed by Andrew Cagney.
8390 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
8391 function calls.
8392
8393 2004-04-29 Andrew Cagney <cagney@redhat.com>
8394
8395 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
8396 gdbarch, use mips_abi, update callers.
8397 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
8398 mips_abi_regsize, update callers.
8399 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
8400 mips_default_abi_regsize.
8401 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
8402 mips_default_abi_regsize.
8403
8404 2004-04-29 Andrew Cagney <cagney@redhat.com>
8405
8406 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
8407 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
8408 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
8409 mips_default_abi_regsize.
8410 (mips_isa_regsize): Rename mips_regisze.
8411 * mipsnbsd-tdep.c: Update.
8412 * mips-linux-tdep.c: Update.
8413 * irix5-nat.c: Update.
8414 * mips-tdep.h (mips_isa_regsize): Update.
8415
8416 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
8417 Delete all disabled code.
8418 * gdb-events.h, gdb-events.c: Re-generate.
8419
8420 2004-04-19 Jerome Guitton <guitton@gnat.com>
8421 Mark Kettenis <kettenis@gnu.org>
8422
8423 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
8424 the function begins with a branch instruction.
8425
8426 2004-04-29 Mark Kettenis <kettenis@gnu.org>
8427
8428 * i386-tdep.c: Fix spelling mistakes.
8429
8430 2004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8431 Andrew Cagney <cagney@redhat.com>
8432
8433 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
8434 <sys/proc.h>.
8435 * acconfig.h: Provide default _KMEMUSER value.
8436 * config.in, configure: Re-generate.
8437 * NEWS: Mention fix.
8438
8439 2004-04-24 Randolph Chung <tausq@debian.org>
8440
8441 * configure.host (hppa*-*-linux*): New target.
8442 * configure.tgt (hppa*-*-linux*): Likewise.
8443 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
8444 gdbarch_init_osabi() call earlier so that osabi-specific frame
8445 unwinders can be registered first.
8446 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
8447 hppa-linux-nat.c.
8448 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
8449 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
8450 * config/pa/linux.mh: New file.
8451 * config/pa/linux.mt: New file.
8452 * config/pa/nm-linux.h: New file.
8453 * config/pa/xm-linux.h: New file.
8454 * hppa-linux-nat.c: New file.
8455 * hppa-linux-tdep.c: New file.
8456
8457 2004-04-28 Randolph Chung <tausq@debian.org>
8458
8459 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
8460 return values.
8461 (hppa32_push_dummy_call): Fix small struct and floating point argument
8462 passing, and make sure the stack frame is properly aligned.
8463
8464 2004-04-28 Andrew Cagney <cagney@redhat.com>
8465
8466 * stack.c (print_stack_frame): Fix description.
8467
8468 * NEWS: Mention gdb/gdbserver/configure execute permission
8469 changed. PR server/519.
8470
8471 2004-04-28 Andrew Cagney <cagney@redhat.com>
8472
8473 * stack.c (print_stack_frame_stub): Delete declaration.
8474 (struct print_stack_frame_args, print_stack_frame)
8475 (print_frame_info, print_frame): Replace "source" with print what.
8476 Replace "print" with "print_level". Replace "args" with
8477 "print_args".
8478 * frame.h (show_and_print_stack_frame, print_stack_frame)
8479 (print_frame_info): Update declarations.
8480 * stack.c (select_and_print_frame, frame_command)
8481 (current_frame_command, up_command, down_command): Update calls -
8482 use get_selected_frame, pass "enum print_what" for source, do not
8483 call frame_relative_level.
8484 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
8485 * remote-rdp.c (remote_rdp_open): Ditto.
8486 * remote-mips.c (common_open): Ditto.
8487 * remote-e7000.c (e7000_start_remote): Ditto.
8488 * ocd.c (ocd_start_remote): Ditto.
8489 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
8490 * infrun.c (normal_stop): Ditto.
8491 * inflow.c (kill_command): Ditto.
8492 * infcmd.c (finish_command): Ditto.
8493 * corelow.c (core_open): Ditto.
8494 * tracepoint.c (finish_tfind_command): Ditto.
8495 * thread.c (info_threads_command, info_threads_command)
8496 (restore_current_thread, do_captured_thread_select): Ditto.
8497 * ada-tasks.c (task_command): Ditto.
8498
8499 2004-04-26 Orjan Friberg <orjanf@axis.com>
8500
8501 * frame.c: Include "observer.h".
8502 (frame_observer_target_changed): New function.
8503 (_initialize_frame): Attach target_changed observer.
8504 * regcache.c: Include "observer.h".
8505 (regcache_observer_target_changed): New function.
8506 (_initialize_regcache): Attach target_changed observer.
8507 * valops.c: Include "observer.h".
8508 (value_assign): Notify target_changed event when modifying register.
8509 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
8510
8511 2004-04-26 Orjan Friberg <orjanf@axis.com>
8512
8513 From Paul Koning <pkoning@equallogic.com>:
8514 * breakpoint.c (free_valchain): New function.
8515 (insert_bp_location, delete_breakpoint): Use free_valchain.
8516 (remove_breakpoint): Do not remove the valchain.
8517 (bpstat_stop_status): If not stopped by watchpoint, skip
8518 watchpoints when generating stop status list.
8519 * infrun.c (handle_inferior_event): Make
8520 stepped_after_stopped_by_watchpoint a global variable.
8521 * remote.c (remote_stopped_data_address): Return watch data
8522 address rather than zero if stepped_after_stopped_by_watchpoint is
8523 set.
8524
8525 2004-04-25 Michael Chastain <mec.gnu@mindspring.com>
8526
8527 Fix PR gdb/1626.
8528 * configure.in: Check for curses after termcap.
8529 On osf5.*, do not check for ncurses.
8530 * configure: Regenerate.
8531
8532 2004-04-25 Mark Kettenis <kettenis@gnu.org>
8533
8534 * ppcobsd-nat.c: Include "ppc-tdep.h".
8535 * Makefile.in (ppcobsd-nat.o): Update dependencies.
8536
8537 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
8538 Fixes PR tdep/1623 and PR tdep/1624.
8539
8540 2004-04-24 Michael Chastain <mec.gnu@mindspring.com>
8541
8542 * xmodem.h, xmodem.c: Remove files.
8543 * Makefile.in: Remove references to xmodem.h, xmodem.c.
8544
8545 2004-04-23 Randolph Chung <tausq@debian.org>
8546
8547 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
8548 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
8549 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
8550 for handling stackless frames.
8551 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
8552
8553 2004-04-23 Randolph Chung <tausq@debian.org>
8554
8555 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
8556 starts at a pc before the frame is created.
8557
8558 2004-04-23 Joel Brobecker <brobecker@gnat.com>
8559
8560 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
8561
8562 2004-04-23 Jerome Guitton <guitton@gnat.com>
8563
8564 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
8565 use convert_typed_floating to get the appropriate format.
8566
8567 2004-04-22 Randolph Chung <tausq@debian.org>
8568
8569 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
8570 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
8571 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
8572 (hppa_sign_extend): Add prototype.
8573 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
8574 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
8575 (sign_extend): Rename with hppa_ prefix and make non-static. Other
8576 hppa targets will also use these functions.
8577 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
8578 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
8579 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
8580 (hppa_gdbarch_init): Remove gdbarch setting of
8581 skip_trampoline_code, in_solib_call_trampoline and
8582 in_solib_return_trampoline.
8583 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
8584 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
8585 hppa_in_solib_call_trampoline.
8586 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
8587 Moved from hppa-tdep.c.
8588 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
8589 in_solib_call_trampoline and in_solib_return_trampoline.
8590
8591 2004-04-22 Randolph Chung <tausq@debian.org>
8592
8593 * hppa-tdep.c (hppa_debug): New variable.
8594 (find_unwind_entry, hppa_frame_cache): Add debug output.
8595 (_initialize_hppa_tdep): Add command to set debug flag.
8596
8597 2004-04-22 Andrew Cagney <cagney@redhat.com>
8598
8599 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
8600 "trad-frame.h".
8601 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
8602 signal trampoline unwinder.
8603 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
8604
8605 2004-04-22 Mark Kettenis <kettenis@gnu.org>
8606
8607 Add OpenBSD/powerpc support.
8608 * NEWS (New native configurations): Mention OpenBSD/powerpc.
8609 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
8610 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
8611 (ppc_collect_fpregset): New prototypes.
8612 * ppcobsd-nat.c: New file.
8613 * ppcobsd-tdep.c: New file.
8614 * ppcobsd-tdep.h: New file.
8615 * rs6000-tdep.c: Include "regset.h".
8616 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
8617 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
8618 New functions.
8619 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
8620 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
8621 (rs6000-tdep.o): Update dependencies.
8622 * configure.host: Add powerpc-*-openbsd.
8623 * configure.tgt: Add powerpc-*-openbsd.
8624 * config/powerpc/obsd.mh: New file.
8625 * config/powerpc/nm-obsd.h: New file.
8626 * config/powerpc/obsd.mt: New file.
8627
8628 2004-04-22 Andrew Cagney <cagney@redhat.com>
8629
8630 * frame.h (show_frame_info): Delete declaration.
8631
8632 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
8633 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
8634 * m32r-tdep.c (m32r_frame_this_id): Ditto.
8635 * frv-tdep.c (frv_frame_this_id): Ditto.
8636 * avr-tdep.c (avr_frame_this_id): Ditto.
8637
8638 2004-04-22 Elena Zannoni <ezannoni@redhat.com>
8639
8640 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
8641
8642 2004-04-22 Jim Blandy <jimb@redhat.com>
8643
8644 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
8645 register number zero.
8646
8647 2004-04-21 Michael Snyder <msnyder@redhat.com>
8648
8649 * mips-tdep.c (heuristic_proc_start):
8650 Warning() already prefixes "Warning: ".
8651
8652 2004-04-21 Andrew Cagney <cagney@redhat.com>
8653
8654 * annotate.h (deprecated_annotate_starting_hook)
8655 (deprecated_annotate_stopped_hook)
8656 (deprecated_annotate_exited_hook)
8657 (deprecated_annotate_signal_hook)
8658 (deprecated_annotate_signalled_hook): Deprecate.
8659 * tracepoint.h (deprecated_create_tracepoint_hook)
8660 (deprecated_delete_tracepoint_hook)
8661 (deprecated_modify_tracepoint_hook)
8662 (deprecated_trace_find_hook)
8663 (deprecated_trace_start_stop_hook): Deprecate.
8664 * target.h (deprecated_target_new_objfile_hook): Deprecate.
8665 * remote.h (deprecated_target_resume_hook)
8666 (deprecated_target_wait_loop_hook): Deprecate.
8667 * gdbcore.h (deprecated_exec_file_display_hook)
8668 (deprecated_file_changed_hook): Deprecate.
8669 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
8670 * defs.h (deprecated_modify_breakpoint_hook)
8671 (deprecated_command_loop_hook, deprecated_show_load_progress)
8672 (deprecated_print_frame_info_listing_hook)
8673 (deprecated_query_hook, deprecated_warning_hook)
8674 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
8675 (deprecated_delete_breakpoint_hook)
8676 (deprecated_interactive_hook, deprecated_registers_changed_hook)
8677 (deprecated_readline_begin_hook, deprecated_readline_hook)
8678 (deprecated_readline_end_hook, deprecated_register_changed_hook)
8679 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
8680 (deprecated_context_hook, deprecated_target_wait_hook)
8681 (deprecated_attach_hook, deprecated_detach_hook)
8682 (deprecated_call_command_hook, deprecated_set_hook)
8683 (deprecated_error_hook, deprecated_error_begin_hook)
8684 (deprecated_ui_load_progress_hook): Deprecate.
8685 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
8686 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
8687 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
8688 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
8689 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
8690 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
8691 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
8692 * annotate.c, aix-thread.c: Update.
8693
8694 2004-04-21 Andrew Cagney <cagney@redhat.com>
8695
8696 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
8697 * vaxnbsd-tdep.c: Include "gdb_string.h".
8698
8699 * symfile.c (symbol_file_add_from_memory): #if 0 function.
8700 (add_symbol_file_from_memory_command): #if 0 function body, call
8701 error instead.
8702
8703 2004-04-21 Andrew Cagney <cagney@redhat.com>
8704
8705 * gdbcore.h: Update copyright.
8706 (deprecated_add_core_fns): Rename add_core_fns.
8707 * win32-nat.c (_initialize_core_win32): Update.
8708 * sun3-nat.c (_initialize_core_sun3): Update.
8709 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
8710 * rs6000-nat.c (_initialize_core_rs6000): Update.
8711 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
8712 * nto-tdep.c (_initialize_nto_tdep): Update.
8713 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
8714 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
8715 * mips-nat.c (_initialize_core_mips): Update.
8716 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
8717 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
8718 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
8719 * lynx-nat.c (_initialize_core_lynx): Update.
8720 * irix5-nat.c (_initialize_core_irix5): Update.
8721 * i386-interix-nat.c (_initialize_core_interix): Update.
8722 * cris-tdep.c (_initialize_cris_tdep): Update.
8723 * corelow.c (deprecated_add_core_fns): Update.
8724 * core-regset.c (_initialize_core_regset): Update.
8725 * core-aout.c (_initialize_core_aout): Update.
8726 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
8727 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
8728 * alpha-nat.c (_initialize_core_alpha): Update.
8729
8730 2004-04-21 Jim Blandy <jimb@redhat.com>
8731
8732 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
8733
8734 2004-04-19 Daniel Jacobowitz <drow@mvista.com>
8735
8736 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
8737 Delete.
8738 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
8739 (read_attribute_value): Update calls to dwarf_alloc_block.
8740 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
8741 dwarf2_tmp_obstack.
8742 (psymtab_to_symtab_1): Likewise. Clean up using
8743 free_stack_comp_unit.
8744 (add_to_cu_func_list): Use the comp_unit_obstack.
8745
8746 2004-04-19 Joel Brobecker <brobecker@gnat.com>
8747
8748 * dwarf2read.c (dwarf2_flag_true_p): New function.
8749 (die_is_declaration): Use the function above. Add some comments.
8750
8751 2004-04-19 Mark Kettenis <kettenis@gnu.org>
8752
8753 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
8754 architecture when registering sparcnbsd_core_osabi_sniffer.
8755 Adjust comment.
8756
8757 2004-04-18 Mark Kettenis <kettenis@gnu.org>
8758
8759 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
8760 return value.
8761
8762 Based on a patch from Brian Ford <ford@vss.fsi.com>:
8763 * i386-tdep.c: Correct register numbering scheme comments
8764 throughout.
8765 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
8766 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
8767 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
8768 (i386_gdb_arch_init): Likewise.
8769
8770 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
8771 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
8772 ppcnbsd-tdep.o.
8773
8774 * m68k-tdep.h: Tweak comments.
8775 * m68k-tdep.c: Tweak comment.
8776
8777 2004-04-17 Randolph Chung <tausq@debian.org>
8778
8779 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
8780 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
8781 (hppa_hpux_som_init_abi): Set is_elf to 0.
8782 (hppa_hpux_elf_init_abi): Set is_elf to 1.
8783 * hppa-tdep.c (low_text_segment_address): Remove global.
8784 (record_text_segment_lowaddr): Pass in low address as parameter. Use
8785 section offset to calculate segment address.
8786 (internalize_unwinds): Define low_text_segment_address as local and
8787 pass to record_text_segment_lowaddr for ELF targets.
8788 (hppa_gdbarch_init): Zero fill tdep structure.
8789 (hppa_dump_tdep): Print tdep structure.
8790 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
8791
8792 2004-04-17 Randolph Chung <tausq@debian.org>
8793
8794 * hppa-tdep.c (hppa_pseudo_register_read): Define.
8795 (hppa_gdbarch_init): Set pseudo_register_read.
8796 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
8797 * regcache.c (supply_register): Remove check for
8798 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
8799
8800 2004-04-17 Randolph Chung <tausq@debian.org>
8801
8802 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
8803 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
8804 (hpread_adjust_stack_address): Move to hpread.c.
8805 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
8806 obj_private_struct): Move from tm-hppa.h.
8807 * hpread.c (hppa-tdep.h): Include.
8808 (hpread_adjust_stack_address): Move from hppa-tdep.c.
8809 (hpread_read_function_type, hpread_read_doc_function_type)
8810 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
8811 directly.
8812 * pa64solib.c (hppa-tdep.h): Include.
8813 * somsolib.c (hppa-tdep.h): Include.
8814 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
8815 inferior_status): Remove unused forward declarations.
8816 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
8817 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
8818 obj_private_struct): Move to hppa-tdep.h.
8819 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
8820
8821 2004-04-17 Randolph Chung <tausq@debian.org>
8822
8823 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
8824 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
8825 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
8826 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
8827 Remove forward declaration and make static.
8828 (hppa_reg_struct_has_addr): Remove.
8829
8830 2004-04-16 Joel Brobecker <brobecker@gnat.com>
8831
8832 * observer.sh: Move comments in sed command to first column.
8833
8834 2004-04-16 Jason Molenda (jmolenda@apple.com)
8835
8836 * frame.c: Minor typeo corrections in comments.
8837
8838 2004-04-16 Joel Brobecker <brobecker@gnat.com>
8839
8840 * observer.c (observer_test_first_notification_function): Update
8841 function profile.
8842 (observer_test_second_notification_function): Likewise.
8843 (observer_test_third_notification_function): Likewise.
8844
8845 2004-04-16 Mark Kettenis <kettenis@gnu.org>
8846
8847 From Brian Ford <ford@vss.fsi.com>:
8848 * i386-tdep.c (i386_coff_init_abi): New function.
8849 * i386-tdep.h (i386_coff_init_abi): New prototype.
8850 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
8851 register number translation functions for DWARF and DWARF 2.
8852
8853 2004-04-16 Joel Brobecker <brobecker@gnat.com>
8854
8855 * dwarf2read.c: Back out my previous change, it was incorrect.
8856
8857 2004-04-16 Daniel Jacobowitz <drow@mvista.com>
8858
8859 * dwarf2read.c: Include "hashtab.h".
8860 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
8861 has_namespace_info.
8862 (struct partial_die_info): Add comments. Use bitfields to reduce
8863 memory footprint. Add scope, scope_set, has_specification,
8864 spec_offset, die_parent, die_child, and die_sibling.
8865 (peek_die_abbrev): Add prototype.
8866 (partial_read_comp_unit_head): New function, broken out from
8867 dwarf2_build_psymtabs_hard.
8868 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
8869 Use partial_read_comp_unit_head. Initialize the CU and
8870 comp_unit_obstack. Update calls to read_partial_die and
8871 scan_partial_symbols. Use free_stack_comp_unit and
8872 load_partial_dies.
8873 (scan_partial_symbols): Change PDI to a pointer. Use the child and
8874 sibling pointers to walk partial DIEs. Call fixup_partial_die.
8875 Update calls to helper functions. Remove NAMESPACE argument.
8876 Update comments.
8877 (partial_die_parent_scope, partial_die_full_name): New functions.
8878 (add_partial_symbol): Remove namespace argument. Update call to
8879 pdi_needs_namespace. Use partial_die_full_name. Handle
8880 DW_TAG_namespace. Check has_namespace_info flag.
8881 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
8882 tag. Handle namespaces.
8883 (add_partial_namespace, add_partial_enumeration): Simplify.
8884 (guess_structure_name): New function, derived from
8885 add_partial_structure.
8886 (add_partial_structure): Remove.
8887 (determine_class_name): Update comment.
8888 (dwarf2_read_abbrevs): Set has_namespace_info flag.
8889 (is_type_tag_for_partial, load_partial_dies): New functions.
8890 (read_partial_die): Pass abbrev and abbrev_len as arguments.
8891 Record specifications instead of following them immediately.
8892 (find_partial_die_in_comp_unit, find_partial_die)
8893 (fixup_partial_die, free_stack_comp_unit)
8894 (hashtab_obstack_allocate, dummy_obstack_deallocate)
8895 (partial_die_hash, partial_die_eq): New functions.
8896 * Makefile.in (hashtab_h): Define.
8897 (dwarf2read.o): Update dependencies.
8898 (observer_inc, observer_h): Move to the correct section.
8899
8900 2004-04-15 Joel Brobecker <brobecker@gnat.com>
8901
8902 * dwarf2read.c (dwarf2_attribute_true_p): New function.
8903 (die_is_declaration): Use the function above. Add comment.
8904
8905 2004-04-15 Joel Brobecker <brobecker@gnat.com>
8906
8907 * dwarf2read.c (read_structure_scope): Identify stub types
8908 using die_is_declaration() only.
8909
8910 2004-04-15 Roland McGrath <roland@redhat.com>
8911
8912 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
8913 argument instead of NAME.
8914 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
8915 in call to symbol_file_add_with_addrs_or_offsets.
8916 (build_addr_info): New function, helper for ...
8917 (symbol_file_add_from_memory): New function.
8918 (add_symbol_file_from_memory_command): New function using that.
8919 (_initialize_symfile): Register it for add-symbol-file-from-memory.
8920 (pre_add_symbol_hook): Add const to argument type.
8921 * symfile.h (symbol_file_add_from_memory): Declare it.
8922
8923 2004-04-15 Mark Kettenis <kettenis@gnu.org>
8924
8925 * NEWS (New native configurations): Mention OpenBSD/vax.
8926 * configure.host: Add vax-*-openbsd*.
8927 * config/vax/obsd.mh: New file.
8928 * config/vax/nm-obsd.h: New file.
8929
8930 * vax-tdep.c: Include "regset.h".
8931 (vax_supply_gregset): New function.
8932 (vax_gregset): New variable.
8933 (vax_regset_from_core_section): New function.
8934 (vax_gdbarch_init): Set regset_from_core_section.
8935 * Makefile.in (vax-tdep.o): Update dependencies.
8936
8937 2004-04-15 Andrew Cagney <cagney@redhat.com>
8938
8939 * observer.c (normal_stop_subject, observer_notify_normal_stop)
8940 (observer_normal_stop_notification_stub)
8941 (observer_attach_normal_stop, observer_detach_normal_stop):
8942 Delete, replaced by #include "observer.inc".
8943 * infrun.c (normal_stop): Pass "stop_bpstat" to
8944 observer_notify_normal_stop.
8945 * Makefile.in (observer_inc): Define.
8946 (observer.o): Update dependencies.
8947 (observer.h, observer.inc): New rules.
8948 * observer.h: Delete file.
8949 * observer.sh: New file.
8950
8951 2004-04-15 Mark Kettenis <kettenis@gnu.org>
8952
8953 * vax-tdep.c (vax_frame_cache): Fix typo.
8954
8955 2004-04-14 Mark Kettenis <kettenis@gnu.org>
8956
8957 * NEWS (New native configurations): Mention NetBSD/vax.
8958 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
8959 * config/vax/nbsdelf.mh: New file.
8960 * config/vax/nbsdaout.mh: New file.
8961 * config/vax/nm-nbsd.h: New file.
8962 * config/vax/nm-nbsdaout.h: New file.
8963
8964 * vaxnbsd-tdep.c: New file.
8965 * Makefile.in (vaxnbsd-tdep.o): New dependency.
8966 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
8967 * config/vax/nbsd.mt: New file.
8968 * config/vax/tm-nbsd.h: New file.
8969
8970 * Makefile.in (vaxbsd-nat.o): New dependency.
8971
8972 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
8973 * vax-tdep.c (vax_store_arguments): Remove struct_return and
8974 struct_addr arguments. Don't push return value address.
8975 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
8976 arguments to vax_store_arguments. Store return value address in
8977 R1.
8978 (vax_store_struct_return, vax_extract_return_value)
8979 (vax_store_return_value): Remove functions.
8980 (vax_return_value): New function.
8981 (vax_gdbarch_init): Set return value. Don't set
8982 deprecated_store_struct_return, deprecated_extract_struct_return
8983 and deprecated_store_return_value.
8984
8985 2004-04-14 Andreas Schwab <schwab@suse.de>
8986
8987 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
8988 value buffer.
8989 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
8990
8991 2004-04-14 Mark Kettenis <kettenis@gnu.org>
8992
8993 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
8994 (vax_unwind_dummy_id): New functions.
8995 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
8996 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
8997 variables.
8998 (vax_fix_call_dummy): Remove function.
8999 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
9000 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
9001 call_dummy_location, deprecated_call_dummy_words,
9002 deprecated_sizeof_call_dummy_words,
9003 deprecated_call_dummy_breakpoint_offset,
9004 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
9005 and deprecated_dummy_write_sp.
9006
9007 2004-04-13 David Carlton <carlton@kealia.com>
9008
9009 * MAINTAINERS: Move myself to "paper trail" section.
9010
9011 2004-04-12 Mark Kettenis <kettenis@gnu.org>
9012
9013 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
9014 "trad-frame.h".
9015 (vax_frame_init_saved_regs): Remove function.
9016 (vax_sigtramp_saved_pc): Remove function.
9017 (vax_frame_saved_pc): Remove function.
9018 (vax_frame_args_address): Remove function.
9019 (vax_frame_num_args): Rewrite.
9020 (vax_frame_chain): Remove function.
9021 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
9022 VAX_FP_REGNUM.
9023 (vax_pop_frame): Likewise.
9024 (vax_saved_pc_after_call): Remove function.
9025 (struct vax_frame_cache): New structure.
9026 (vax_frame_cache): New function.
9027 (vax_frame_this_id): New function.
9028 (vax_frame_prev_register): New function.
9029 (vax_frame_unwind): New variable.
9030 (vax_frame_sniffer): New function.
9031 (vax_frame_base_address): New function.
9032 (vax_frame_args_address): New function.
9033 (vax_frame_base): New variable.
9034 (vax_unwind_pc): New function.
9035 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
9036 deprecated_fp_regnum, deprecated_saved_pc_after_call,
9037 deprecated_frame_chain, deprecated_frame_saved_pc,
9038 deprecated_frame_args_address and
9039 deprecated_frame_init_saved_regs.
9040 * Makefile.in (vax-tdep.o): Update dependencies.
9041
9042 * vaxbsd-nat.c: New file.
9043
9044 * vax-tdep.h: Update copyright year. Adjust comments.
9045 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
9046 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
9047 (vax_regnum): New enum. Replacing...
9048 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
9049 (VAX_PS_REGNUM): ... these removed macros.
9050 * vax-tdep.c (vax_register_name): Remove prototype.
9051 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
9052 (vax_register_byte, vax_register_raw_size,
9053 vax_register_virtual_size, vax_register_virtual_type): Remove
9054 functions.
9055 (vax_register_type): New function.
9056 (vax_breakpoint_from_pc): Reorganize.
9057 (vax_gdbarch_init): Set register_type. Don't set
9058 deprecated_register_size, deprecated_register_bytes,
9059 deprecated_register_byte, deprecated_register_raw_size,
9060 deprecated_max_register_raw_size,
9061 deprecated_register_virtual_size,
9062 deprecated_max_register_virtual_size and
9063 deprecated_register_virtual_type. Add comment on stack direction.
9064
9065 2004-04-11 Mark Kettenis <kettenis@gnu.org>
9066
9067 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
9068 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
9069 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
9070
9071 2004-04-10 Randolph Chung <tausq@debian.org>
9072
9073 * MAINTAINERS (write after approval): Add myself.
9074
9075 2004-04-07 Randolph Chung <tausq@debian.org>
9076
9077 * hppa-tdep.c (hppa_inner_than): Remove.
9078 (is_pa_2): Remove unused static variable.
9079 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
9080
9081 2004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
9082
9083 * language.h (language_defn): Add new la_post_parser field.
9084 * parser-defs.h (null_post_parser): New declaration (default for
9085 la_post_parser).
9086
9087 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
9088 insert call to that function.
9089 (parse_exp_in_context): New function, including code formerly in
9090 parse_exp_1. Calls language-dependent post-parser after
9091 prefixification.
9092 (parse_expression_in_context): New exported function.
9093 (null_post_parser): New definition.
9094 * expression.h (parse_expression_in_context): Add declaration.
9095
9096 * p-lang.c (pascal_language_defn): Add trivial post-parser.
9097 * c-lang.c (c_language_defn): Ditto.
9098 (cplus_language_defn): Ditto.
9099 (asm_language_defn): Ditto.
9100 (minimal_language_defn): Ditto.
9101 * f-lang.c (f_language_defn): Ditto.
9102 * jv-lang.c (java_language_defn): Ditto.
9103 * language.c (unknown_language_defn): Ditto.
9104 (auto_language_defn): Ditto.
9105 (local_language_defn): Ditto.
9106 * m2-lang.c (m2_language_defn): Ditto.
9107 * scm-lang.c (scm_language_defn): Ditto.
9108 * obj-lang.c (objc_language_defn): Ditto.
9109
9110 2004-04-10 Mark Kettenis <kettenis@gnu.org>
9111
9112 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
9113 (amd64nbsd_mcontext_addr): New function.
9114 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
9115 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
9116 with amd64nbsd_r_reg_offset, instead of building it on the fly.
9117
9118 * corelow.c (core_xfer_partial): Fix coding standards violation.
9119 Add support for TARGET_OBJECT_WCOOKIE.
9120
9121 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
9122 deprecated_pc_in_sigtramp.
9123 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
9124 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
9125 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
9126 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
9127 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
9128 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
9129 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
9130
9131 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
9132 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
9133 Fix typo.
9134
9135 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
9136 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
9137 (amd64_collect_fxsave): Likewise.
9138
9139 * i386-sol2-tdep.c: Include "gdb_string.h".
9140 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
9141 name.
9142 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
9143
9144 2004-04-10 Mark Kettenis <kettenis@gnu.org>
9145
9146 * i386-sol2-tdep.c: Include "solib-svr4.h".
9147 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9148 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
9149 * config/i386/tm-i386sol2.h: Include :solib.h".
9150 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
9151 solib-svr4.o and solib-legacy.o.
9152 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
9153 solib-svr4.o.
9154
9155 2004-04-09 Mark Kettenis <kettenis@gnu.org>
9156
9157 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
9158 whether a register is supplied by PTRACE_GETFPREGS.
9159 (store_inferior_registers): Likewise.
9160 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
9161 whether a register is supplied by PT_GETFPREGS.
9162 (store_inferior_registers): Likewise.
9163
9164 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
9165 * config/i386/linux64.mt (TDEPFILES): Likewise.
9166
9167 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
9168
9169 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
9170 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
9171 the program counter is in the range specified by `struct
9172 gdbarch_tdep'.
9173 * amd64-linux-tdep.c: Include "symtab.h".
9174 (amd64_linux_pc_in_sigtramp): Remove function.
9175 (amd64_linux_sigtramp_p): New function.
9176 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
9177 deprecated_pc_in_sigtramp.
9178 * amd64nbsd-tdep.c: Include "symtab.h".
9179 (amd64nbsd_sigtramp_p): New function.
9180 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
9181 deprecated_pc_in_sigtramp.
9182 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
9183 few comments.
9184 (amd64obsd_pc_in_sigtramp): Remove function.
9185 (amd64obsd_sigtramp_p): New function.
9186 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
9187 deprecated_pc_in_sigtramp.
9188 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
9189 (i386bsd_pc_ins_sigtramp): Remove prototype.
9190 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
9191 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
9192 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
9193 the program counter is in the range specified by `struct
9194 gdbarch_tdep'.
9195 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
9196 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
9197 (i386_go32_pc_in_sigtramp): Remove function.
9198 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
9199 Initialize TDEP->sigtramp_p.
9200 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
9201 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
9202 deprecated_pc_in_sigtramp.
9203 * i386-linux-tdep.c: Adjust comments.
9204 (i386_linux_pc_in_sigtramp): Remove function.
9205 (i386_linux_sigtramp_p): New function.
9206 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
9207 deprecated_pc_in_sigtramp.
9208 * i386-nto-tdep.c: Update copyright year.
9209 (i386nto_pc_in_sigtramp): Remove function.
9210 (i386nto_sigtramp_p): New function.
9211 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
9212 SP_REGNUM.
9213 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
9214 deprecated_pc_in_sigtramp.
9215 * i386-sol2-tdep.c: Update copyright year.
9216 (i386_sol2_pc_in_sigtramp): Remove function.
9217 (i386_sol2_sigtramp_p): New function.
9218 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
9219 deprecated_pc_in_sigtramp.
9220 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
9221 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
9222 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9223 deprecated_sigtramp_start and deprecated_sigtramp_end.
9224 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
9225 (i386nbsd_pc_in_sigtramp): Remove function.
9226 (i386nbsd_sigtramp_p): New function.
9227 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9228 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
9229 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
9230 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
9231 (i386obsd_pc_in_sigtramp): Remove function.
9232 (i386obsd_sigtramp_p): New function.
9233 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
9234 functions.
9235 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9236 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
9237 TDEP->sigtramp_p.
9238 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
9239 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
9240 dependencies.
9241
9242 * config/i386/i386aout.mt: Remove file.
9243
9244 * configure.tgt: Remove i[34567]86-*-go32*,
9245 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
9246 and i[34567]86-*-isc*. Set gdb_target to i386 for
9247 i[34567]86-*-netware* and i[34567]86-*-*.
9248 * config/i386/i386.mt: New file.
9249 * config/i386/embed.mt: Remove file.
9250 * config/i386/go32.mt: Remove file.
9251 * config/i386/i386nw.mt: Remove file.
9252 * config/i386/i386v.mt: Remove file.
9253 * config/i386/tm-go32.h: Remove file.
9254
9255 * tui/tui-hooks.c: Include "readline/readline.h" after
9256 "gdb_curses.h" instead of before.
9257 * tui/tui-io.c: Likewise.
9258
9259 * tui/tui.c: Fix typo in comment.
9260
9261 * sparc64-tdep.c (sparc_address_from_register): Remove function.
9262
9263 2004-04-08 Andrew Cagney <cagney@redhat.com>
9264
9265 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
9266 (deprecated_exception_support_initialized): Declare.
9267 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
9268 (initialize_hp_cxx_exception_support)
9269 (child_enable_exception_callback): Update.
9270 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
9271 (deprecated_exception_support_initialized): Rename
9272 deprecated_exception_catchpoints_are_fragile and
9273 deprecated_exception_support_initialized.
9274 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
9275
9276 * symtab.c (deprecated_hp_som_som_object_present): Rename
9277 hp_som_som_object_present.
9278 * symtab.h (deprecated_hp_som_som_object_present): Declare.
9279 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
9280 Update. Delete extern declaration.
9281 * valops.c (hp_som_som_object_present): Ditto.
9282 * parse.c (deprecated_hp_som_som_object_present)
9283 (parse_nested_classes_for_hpacc): Ditto.
9284 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
9285 * hppa-hpux-tdep.c (hp_som_som_object_present)
9286 (initialize_hp_cxx_exception_support): Ditto.
9287 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
9288 * cp-valprint.c (hp_som_som_object_present)
9289 (cp_print_class_method): Ditto.
9290 * c-typeprint.c (hp_som_som_object_present):
9291 (c_type_print_base): Ditto.
9292 * c-exp.y (hp_som_som_object_present): Ditto.
9293
9294 2004-04-08 Andrew Cagney <cagney@redhat.com>
9295
9296 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
9297 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
9298 (frame_unwind_find_by_frame): Re-implement the unwind code so
9299 that it can both prepend and append sniffers. Replace
9300 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
9301 * tramp-frame.c (tramp_frame_append): Use
9302 frame_unwind_prepend_unwinder.
9303 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
9304 frame_unwind_register_unwinder.
9305 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
9306 tramp_frame_append.
9307 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
9308 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
9309 (mips_linux_init_abi): Update.
9310
9311 2004-04-08 Kevin Buettner <kevinb@redhat.com>
9312
9313 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
9314 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
9315 file support.
9316
9317 2004-04-07 Kevin Buettner <kevinb@redhat.com>
9318
9319 * ia64-tdep.c (elf.h): Don't include.
9320 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
9321
9322 2004-04-07 Jason Molenda (jmolenda@apple.com)
9323
9324 * frame.h: Typeo corrections in comments.
9325
9326 2004-04-07 Jim Blandy <jimb@redhat.com>
9327
9328 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
9329 %esp and %ebp
9330
9331 2004-04-07 Mark Kettenis <kettenis@gnu.org>
9332
9333 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
9334 * config/sparc/linux64.mt (TDEPFILES): Likewise.
9335 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
9336 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
9337 and solib-legacy.o.
9338 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
9339 solib-svr4.o.
9340 * config/sparc/tm-sol2.h: Update copyright year. Include
9341 "solib.h".
9342
9343 * sparc-sol2-tdep.c: Update copyright year. Include
9344 "solib-svr4.h".
9345 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9346 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
9347 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9348 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
9349 dependencies.
9350
9351 2004-04-06 Andrew Cagney <cagney@redhat.com>
9352
9353 * infttrace.c: Include "infttrace.h".
9354 * infttrace.h: Include "target.h".
9355 * Makefile.in (infttrace_h): Update.
9356 (infttrace.o): Update.
9357
9358 2004-04-06 Andrew Cagney <cagney@redhat.com>
9359
9360 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
9361 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
9362 move extern declarations from here ...
9363 * infttrace.h: ... to here.
9364 * Makefile.in (hppah-nat.o): Update dependencies.
9365
9366 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
9367 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
9368 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
9369 (hppa_breakpoint_from_pc): Delete.
9370
9371 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
9372
9373 2004-04-05 Andrew Cagney <cagney@redhat.com>
9374
9375 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
9376 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
9377 <sys/file.h>.
9378
9379 2004-04-06 Randolph Chung <tausq@debian.org>
9380
9381 Committed by Andrew Cagney (mechanical change).
9382 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
9383 exception_catchpoints_are_fragile, find_stub_with_shl_get,
9384 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
9385 child_enable_exception_callback, current_ex_event,
9386 null_symtab_and_line, child_get_current_exception_event,
9387 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
9388 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
9389 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
9390 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
9391 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
9392 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
9393 Move hpux-specific definitions ...
9394 * hppa-hpux-tdep.c: ... to here.
9395
9396 2004-04-05 Andrew Cagney <cagney@redhat.com>
9397
9398 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
9399 skip_prologue_using_sal.
9400
9401 2004-04-05 Andrew Cagney <cagney@redhat.com>
9402
9403 * config/i386/tm-i386.h: Delete file.
9404 * config/i386/tm-vxworks.h: Update copyright, do not include
9405 "tm-i386.h".
9406 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
9407 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
9408 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
9409 * config/i386/ncr3000.mt (TM_FILE): Delete.
9410 * config/i386/interix.mt (TM_FILE): Delete.
9411 * config/i386/i386v.mt (TM_FILE): Delete.
9412 * config/i386/i386nw.mt (TM_FILE): Delete.
9413 * config/i386/i386gnu.mt (TM_FILE): Delete.
9414 * config/i386/i386aout.mt (TM_FILE): Delete.
9415 * config/i386/embed.mt (TM_FILE): Delete.
9416
9417 2004-04-05 Kevin Buettner <kevinb@redhat.com>
9418
9419 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
9420 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
9421 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
9422 (accg7_regnum): New constants.
9423 (last_spr_regnum, last_pseudo_regnum): Update.
9424 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
9425 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
9426 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
9427 for accg registers.
9428 (frv_register_sim_regno): Update spr_map[].
9429
9430 2004-04-04 Andrew Cagney <cagney@redhat.com>
9431
9432 * config/mips/xm-riscos.h: Delete.
9433 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
9434 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
9435 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
9436 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
9437 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
9438 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
9439 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
9440 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
9441 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
9442 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
9443 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
9444 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
9445 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
9446 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
9447 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
9448 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
9449 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
9450 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
9451 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
9452 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
9453 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
9454 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
9455 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
9456 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
9457 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
9458 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
9459
9460 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
9461 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
9462 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
9463 * configure.host: Remove m680[01]0-sun-sunos3*,
9464 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
9465 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
9466 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
9467 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
9468 mips-*-riscos*.
9469 * NEWS: Mention removed systems.
9470
9471 2004-04-04 Andrew Cagney <cagney@redhat.com>
9472
9473 GDB 6.1 release created from 6.1 branch.
9474
9475 2004-04-04 Andrew Cagney <cagney@redhat.com>
9476
9477 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
9478 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
9479 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
9480
9481 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
9482 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
9483 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
9484
9485 2004-04-03 Jim Blandy <jimb@redhat.com>
9486
9487 * MAINTAINERS: Chris Faylor has changed employers; add him to
9488 "paper trail" section, and update his E-mail address.
9489
9490 2004-04-03 Andrew Cagney <cagney@redhat.com>
9491
9492 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
9493 generic dummy frames.
9494 * dummy-frame.c: Update copyright.
9495 (dummy_frame_sniffer): Delete check for generic dummy frames.
9496
9497 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
9498 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
9499 (REG_PARM_STACK_SPACE): Delete.
9500 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
9501 Inline reference to REG_PARM_STACK_SPACE.
9502
9503 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
9504 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
9505 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
9506 (FRAME_BASE_BEFORE_SIGTRAMP)
9507 (hppa32_hpux_frame_base_before_sigtramp)
9508 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
9509 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
9510 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
9511 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
9512 (FRAME_BASE_BEFORE_SIGTRAMP)
9513 (hppa64_hpux_frame_base_before_sigtramp)
9514 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
9515
9516 2004-04-03 Andrew Cagney <cagney@redhat.com>
9517
9518 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
9519
9520 2004-04-02 Andrew Cagney <cagney@redhat.com>
9521
9522 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
9523 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
9524 * dummy-frame.h: Delete out-of-date comments.
9525 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
9526 * gdbarch.h, gdbarch.c: Re-generate.
9527
9528 2004-04-02 Joel Brobecker <brobecker@gnat.com>
9529
9530 Committed by Andrew Cagney <cagney@redhat.com>.
9531 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
9532 into account an instruction saving a register if we have already
9533 seen an earlier instruction saving that same register.
9534
9535 2004-04-02 Andrew Cagney <cagney@redhat.com>
9536
9537 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
9538 * gdbarch.h, gdbarch.c: Re-generate.
9539 * frame.c (legacy_get_prev_frame): Delete references to
9540 DEPRECATED_INIT_FRAME_PC_FIRST.
9541
9542 * infrun.c (pc_in_sigtramp): Delete function.
9543 (check_sigtramp2): Inline call to pc_in_sigtramp, use
9544 get_frame_type.
9545
9546 2004-04-02 Andrew Cagney <cagney@redhat.com>
9547
9548 * infrun.c (handle_step_into_function): Delete code conditional on
9549 legacy_frame_p.
9550 (handle_inferior_event, step_over_function): Ditto.
9551
9552 2004-04-02 Andrew Cagney <cagney@redhat.com>
9553
9554 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
9555 "previous frame inner to this frame" test.
9556
9557 2004-04-02 Andrew Cagney <cagney@redhat.com>
9558
9559 * frame.c (safe_frame_unwind_memory): New function.
9560 * frame.h (safe_frame_unwind_memory): Declare. Update description
9561 of /safe_/ methods.
9562 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
9563 "next_frame". Use safe_frame_unwind_memory.
9564 (tramp_frame_sniffer): Update call to tramp_frame_start.
9565
9566 2004-04-01 Daniel Jacobowitz <drow@mvista.com>
9567
9568 * dwarf2read.c (dwarf2_objfile_data_key): New.
9569 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
9570 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
9571 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
9572 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
9573 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
9574 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
9575 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
9576 Remove variables.
9577 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
9578 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
9579 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
9580 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
9581 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
9582 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
9583 Remove macros.
9584 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
9585 data.
9586 (dwarf2_locate_sections, dwarf2_build_psymtabs)
9587 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
9588 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
9589 (read_partial_die, read_full_die, read_indirect_string)
9590 (dwarf_decode_line_header, dwarf_decode_macros)
9591 (dwarf2_symbol_mark_computed): Remove use of removed macros.
9592 Update uses of removed variables.
9593 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
9594 of removed macros.
9595 (_initialize_dwarf2_read): New function.
9596 * symfile.h (dwarf2_has_info): Update prototype.
9597 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
9598 * elfread.c (elf_symfile_read): Likewise.
9599
9600 2004-04-01 Jim Blandy <jimb@redhat.com>
9601
9602 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
9603 function for register numbers on all the rs6000-derived targets.
9604 (rs6000_gdbarch_init): Don't register a separate
9605 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
9606 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
9607 variants.
9608
9609 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
9610 numbering.
9611
9612 2004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
9613
9614 * valarith.c: Update copyright notice.
9615 (value_add): Handle range types.
9616 (value_sub): Ditto.
9617 (value_equal): Ditto.
9618 (value_less): Ditto.
9619 (value_neg): Ditto.
9620 (value_complement): Ditto.
9621 (value_binop): Simplify slightly by using is_integral_type and
9622 eliminiating unnecessary COERCE_ENUMs.
9623
9624 2004-03-31 Andrew Cagney <cagney@redhat.com>
9625
9626 * frame.h (frame_unwind_id): Declare.
9627 * frame.c (frame_unwind_id): New function.
9628 (get_prev_frame_1): New function.
9629 (frame_debug_got_null_frame): New function.
9630 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
9631 code proper to prev_frame, update description.
9632 * infrun.c (step_over_function): Use frame_unwind_id.
9633
9634 2004-04-31 J. Brobecker <brobecker@gnat.com>
9635
9636 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
9637 (hppa64_push_dummy_call): Likewise.
9638
9639 2004-03-30 Jim Blandy <jimb@redhat.com>
9640
9641 From Ulrich Weigand:
9642 * utils.c (query): Do not use a va_list variable multiple times.
9643
9644 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
9645
9646 * Makefile.in (linux_nat_h): Update dependencies.
9647 * configure.in: Check for <gnu/libc-version.h>.
9648 * configure: Regenerate.
9649 * config.in: Regenerate.
9650 * linux-nat.h: Include "target.h". Add waitstatus field to
9651 struct lwp_info.
9652 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
9653 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
9654 to.
9655 (lin_lwp_handle_extended): New function. Handle clone events.
9656 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
9657 thread exit events.
9658 (child_wait): Handle clone events.
9659 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
9660 * linux-nat.c (linux_enable_event_reporting): Turn on
9661 PTRACE_O_TRACECLONE.
9662 (linux_handle_extended_wait): Handle clone events.
9663 * thread-db.c: Include <gnu/libc-version.h>.
9664 (struct private_thread_info): Add dying flag.
9665 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
9666 higher.
9667 (attach_thread): Update comments. Handle dying threads.
9668 (detach_thread): Set the dying flag.
9669 (check_event): Always call attach_thread.
9670
9671 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
9672
9673 * mips-tdep.c (mips_pdr_data): New.
9674 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
9675 (_initialize_mips_tdep): Initialize mips_pdr_data.
9676
9677 2004-03-29 Corinna Vinschen <vinschen@redhat.com>
9678
9679 * minsyms.c (install_minimal_symbols): Move dropping leading
9680 char from linkage name from here...
9681 (prim_record_minimal_symbol_and_info): ...to here. Simplify
9682 test for "__gnu_compiled*" symbols.
9683
9684 2004-03-28 Jim Blandy <jimb@redhat.com>
9685
9686 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
9687 registers to temp register r0 and byte stores as prologue
9688 instructions.
9689
9690 2004-03-28 Andrew Cagney <cagney@redhat.com>
9691
9692 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
9693 arm*-*-*.
9694
9695 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
9696
9697 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
9698 and switch the layout to force a display of register window.
9699
9700 2004-02-26 J. Brobecker <brobecker@gnat.com>
9701
9702 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
9703 of the INTEGER class.
9704
9705 2004-03-26 Jim Blandy <jimb@redhat.com>
9706
9707 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
9708 bytes long on PPC GNU/Linux.
9709
9710 2004-03-26 David Carlton <carlton@kealia.com>
9711
9712 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
9713
9714 2004-03-25 Andrew Cagney <cagney@redhat.com>
9715
9716 * PROBLEMS: Add general section titles, remove references to
9717 specific releases.
9718
9719 2004-03-25 Daniel Jacobowitz <drow@mvista.com>
9720
9721 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
9722 INT_REGISTER_SIZE.
9723 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
9724 FP_REGISTER_VIRTUAL_SIZE.
9725 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
9726 of DEPRECATED_REGISTER_RAW_SIZE.
9727 (arm_register_type): Add gdbarch argument.
9728 (arm_register_raw_size, arm_register_virtual_size): Delete.
9729 (arm_register_byte, arm_extract_return_value)
9730 (arm_store_return_value, arm_get_longjmp_target): Update references
9731 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
9732 (arm_gdbarch_init): Likewise. Don't set
9733 deprecated_register_raw_size, deprecated_register_virtual_size,
9734 deprecated_max_register_raw_size,
9735 deprecated_max_register_virtual_size, or
9736 deprecated_max_register_virtual_type. Do set register_type.
9737 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
9738 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
9739 (FP_REGISTER_VIRTUAL_SIZE): Delete.
9740 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
9741 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
9742 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
9743 INT_REGISTER_SIZE.
9744 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
9745 (remote_rdp_store_register): Likewise.
9746
9747 2004-03-24 Daniel Jacobowitz <drow@mvista.com>
9748
9749 * Makefile.in (mips-linux-tdep.o): Update dependencies.
9750 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
9751 to after osabi initialization.
9752 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
9753 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
9754 functions.
9755 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
9756 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
9757 variables.
9758 (mips_linux_init_abi): Append signal trampoline unwinders.
9759
9760 2004-03-24 Andrew Cagney <cagney@redhat.com>
9761
9762 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
9763 * tramp-frame.c: Include "gdb_assert.h".
9764 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
9765 correct sizeof.
9766 (tramp_frame_append): Validate the tramp frame's instructions.
9767 * Makefile.in (tramp-frame.o): Update dependencies.
9768
9769 2004-03-23 Andrew Cagney <cagney@redhat.com>
9770
9771 * trad-frame.h (trad_frame_set_reg_addr): Declare.
9772
9773 2004-03-23 Andrew Cagney <cagney@redhat.com>
9774
9775 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
9776 Nasser as past testsuite/lib/ (and other) maintainers.
9777
9778 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
9779
9780 * infcmd.c (attach_command): Reread symbols if we already have
9781 an exec file.
9782
9783 2004-03-23 Andrew Cagney <cagney@redhat.com>
9784
9785 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
9786
9787 2004-03-23 Andrew Cagney <cagney@redhat.com>
9788
9789 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
9790 * gdbarch.h, gdbarch.c: Re-generate.
9791 * i386obsd-tdep.c (i386obsd_init_abi): Update.
9792 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
9793 * i386bsd-tdep.c (i386bsd_init_abi): Update.
9794 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
9795 (DEPRECATED_SIGTRAMP_START): Update.
9796 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
9797 (DEPRECATED_SIGTRAMP_START): Update.
9798 * blockframe.c (find_pc_sect_partial_function): Update.
9799 * arch-utils.c (legacy_pc_in_sigtramp): Update.
9800
9801 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
9802
9803 * remote.c (remote_open_1): Reopen the exec file and reread symbols
9804 if necessary.
9805
9806 2004-03-23 Andrew Cagney <cagney@redhat.com>
9807
9808 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
9809 predicate, deprecate.
9810 * gdbarch.h, gdbarch.c: Re-generate.
9811 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
9812 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
9813 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
9814 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
9815 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
9816 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
9817 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
9818 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
9819 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
9820 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
9821 * blockframe.c (find_pc_partial_function): Update.
9822 * breakpoint.c (bpstat_what): Update.
9823 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
9824 * frv-linux-tdep.c (frv_linux_init_abi): Update.
9825 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
9826 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
9827 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9828 * i386-linux-tdep.c (i386_linux_init_abi): Update.
9829 * i386-nto-tdep.c (i386nto_init_abi): Update.
9830 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
9831 * i386-tdep.c (i386_sigtramp_frame_sniffer)
9832 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
9833 * i386bsd-tdep.c (i386bsd_init_abi): Update.
9834 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
9835 * i386obsd-tdep.c (i386obsd_init_abi): Update.
9836 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
9837 * infrun.c (pc_in_sigtramp): Update.
9838 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
9839 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
9840 * mips-tdep.c (mips_gdbarch_init): Update.
9841 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
9842 * ppc-linux-tdep.c: Update comment.
9843 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
9844 * shnbsd-tdep.c (shnbsd_init_abi): Update.
9845 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
9846 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
9847 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
9848 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
9849 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
9850 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
9851 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
9852 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
9853
9854 2004-03-23 Andrew Cagney <cagney@redhat.com>
9855
9856 * tramp-frame.h, tramp-frame.h: New files.
9857 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
9858 Update rules to include "tramp-frame.h" and "tramp-frame.c".
9859
9860 * Makefile.in: Update all dependencies.
9861
9862 2004-03-23 Andrew Cagney <cagney@redhat.com>
9863
9864 * Makefile.in (trad_frame_h): Add $(frame_h).
9865 * trad-frame.h: Update copyright. Include "frame.h".
9866 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
9867 (trad_frame_set_id, trad_frame_get_id): Declare.
9868 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
9869 * trad-frame.c: Update copyright.
9870 (struct trad_frame_cache): Define.
9871 (trad_frame_cache_zalloc): New function.
9872 (trad_frame_set_id, trad_frame_get_id): New functions.
9873 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
9874
9875 2004-03-22 Andrew Cagney <cagney@redhat.com>
9876
9877 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
9878 s390_pltstub_unwind_cache.
9879 (s390_stub_frame_unwind_cache): Rename
9880 s390_pltstub_frame_unwind_cache.
9881 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
9882 (s390_stub_frame_prev_register): Rename
9883 s390_pltstub_frame_prev_register.
9884 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
9885 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
9886
9887 From Ulrich Weigand:
9888 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
9889 pointer calls like PLT calls.
9890
9891 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
9892
9893 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
9894 PC rather than the partial function start address. Use the start
9895 address to sanity check the found PDR.
9896
9897 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
9898
9899 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
9900 linux_handle_extended_wait.
9901
9902 2004-03-22 Andrew Cagney <cagney@redhat.com>
9903
9904 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
9905 function.
9906
9907 * frame.h (generic_pop_current_frame): Delete declaration.
9908 (deprecate_pop_dummy_frame): Deprecate
9909 generic_pop_dummy_frame.
9910 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
9911 (generic_pop_current_frame): Delete function.
9912 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
9913 generic_pop_current_frame.
9914 * v850-tdep.c (v850_pop_frame): Update.
9915 * mcore-tdep.c (mcore_pop_frame): Update.
9916 * sh64-tdep.c (sh64_pop_frame): Update.
9917 * h8300-tdep.c (h8300_pop_frame): Update.
9918
9919 2004-03-22 Andrew Cagney <cagney@redhat.com>
9920
9921 * frame.h (deprecated_pc_in_call_dummy): Rename
9922 generic_pc_in_call_dummy.
9923 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
9924 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
9925 generic_pc_in_call_dummy.
9926 (pc_in_dummy_frame): Make static.
9927 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
9928 * gdbarch.h, gdbarch.c: Re-generate.
9929 * dummy-frame.c (dummy_frame_sniffer): Simplify.
9930 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
9931 (legacy_get_prev_frame): Ditto.
9932 * inferior.h: Delete reference to generic_pc_in_call_dummy in
9933 comment.
9934
9935 2004-03-21 Andrew Cagney <cagney@redhat.com>
9936
9937 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
9938 declaration and out-of-date comment.
9939 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
9940 Delete function.
9941 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
9942 deprecated_pc_in_call_dummy.
9943
9944 * infrun.c (handle_inferior_event): For non legacy frames, use the
9945 frame ID and frame type to identify a signal trampoline. Update
9946 comments.
9947
9948 2004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
9949
9950 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
9951 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
9952
9953 2004-03-21 Andrew Cagney <cagney@redhat.com>
9954
9955 * frame-unwind.h: Update copyright.
9956 (struct frame_data): Add opaque declaration.
9957 (frame_sniffer_ftype): Declare.
9958 (struct frame_unwind): Add "unwind_data" and "sniffer".
9959 (frame_unwind_register_unwinder): Declare.
9960 (frame_unwind_find_by_frame): Add parameter "this_cache".
9961 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
9962 (legacy_get_prev_frame, legacy_get_prev_frame)
9963 (get_frame_type): Pass the prologue_cache to
9964 frame_unwind_find_by_frame.
9965 * frame-unwind.c (struct frame_unwind_table_entry): Add field
9966 "unwinder".
9967 (frame_unwind_register_unwinder): New function.
9968 (frame_unwind_find_by_frame): Handle an unwind sniffer.
9969
9970 2004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
9971
9972 * bcache.c (print_percentage): Use floating point to avoid
9973 incorrect results when portion*100 overflows.
9974
9975 2004-03-19 Kevin Buettner <kevinb@redhat.com>
9976
9977 * ppc_tdep.h (ppc_linux_frame_saved_pc)
9978 (ppc_linux_init_extra_frame_info)
9979 (ppc_linux_frameless_function_invocation)
9980 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
9981 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
9982 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
9983 (rs6000_frame_chain): Delete declarations.
9984 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
9985 (ppc_linux_init_extra_frame_info)
9986 (ppc_linux_frameless_function_invocation)
9987 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
9988 (ppc_linux_init_abi): Remove registration of above deleted functions.
9989 * rs6000-tdep.c (rs6000_init_extra_frame_info)
9990 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
9991 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
9992 (rs6000_pop_frame, rs6000_frameless_function_invocation)
9993 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
9994 (rs6000_gdbarch_init): Remove registration of above deleted functions.
9995 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
9996 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
9997 frame management for all OSABIs.
9998
9999 2004-03-19 Andrew Cagney <cagney@redhat.com>
10000
10001 Committed by Kevin Buettner <kevinb@redhat.com>.
10002
10003 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
10004 Update copyright.
10005 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
10006 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
10007 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
10008 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
10009 unwinders. #ifdef legacy frame code.
10010 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
10011 "frame-base.h".
10012 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
10013 (struct rs6000_frame_cache, rs6000_frame_cache)
10014 (rs6000_frame_this_id, rs6000_frame_prev_register)
10015 (rs6000_frame_sniffer, rs6000_frame_unwind)
10016 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
10017 (rs6000_frame_base): Implement a traditional frame unwinder.
10018 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
10019 frame unwinder.
10020
10021 2004-03-19 Kevin Buettner <kevinb@redhat.com>
10022
10023 * breakpoint.c (adjust_breakpoint_address): Don't adjust
10024 breakpoint address for watchpoints or the catch eventpoints.
10025 Add new paramter ``bptype''. Adjust all callers.
10026
10027 2004-03-19 Andrew Cagney <cagney@redhat.com>
10028
10029 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
10030
10031 * PROBLEMS: Delete note that ARM does not use frame code, problem
10032 fixed.
10033
10034 2004-03-18 Andrew Cagney <cagney@redhat.com>
10035
10036 * stack.c (return_command): Delete code wrapped in #ifdef
10037 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
10038
10039 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
10040
10041 2004-03-18 Andrew Cagney <cagney@redhat.com>
10042
10043 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
10044 DEPRECATED_IN_SIGTRAMP.
10045 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10046 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
10047 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10048 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10049 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10050 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10051 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10052 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10053 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
10054 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
10055
10056 2004-03-18 Andrew Cagney <cagney@redhat.com>
10057
10058 * frame-base.c: Update copyright. Include "gdb_obstack.h".
10059 (struct frame_base_table_entry): Define.
10060 (struct frame_base_table): Re-implement as a linked list.
10061 (frame_base_init): Re-implement.
10062 (frame_base_table): Delete function.
10063 (append_predicate): Delete function.
10064 (frame_base_append_sniffer): Update.
10065 (frame_base_set_default): Update.
10066 (frame_base_find_by_frame): Update.
10067 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
10068 * Makefile.in (frame-base.o): Update dependencies.
10069
10070 2004-03-17 Andrew Cagney <cagney@redhat.com>
10071
10072 * frame.c (legacy_get_prev_frame): Pass correct frame to
10073 frame_unwind_find_by_frame.
10074
10075 2004-03-17 David Carlton <carlton@kealia.com>
10076
10077 * NEWS: Mention C++ nested types and namespaces
10078
10079 2004-03-16 Michael Chastain <mec.gnu@mindspring.com>
10080
10081 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
10082 and "Regressions since gdb 5.3.". Add known regressions since
10083 gdb 6.0.
10084
10085 2004-03-16 David Carlton <carlton@kealia.com>
10086
10087 * dwarf2read.c (process_structure_scope): Process children even
10088 when we're a declaration.
10089
10090 2004-03-16 Andrew Cagney <cagney@redhat.com>
10091
10092 * symtab.h (find_pc_sect_partial_function): Delete declaration.
10093 * blockframe.c (find_pc_partial_function)
10094 (find_pc_sect_partial_function): Merge into a single
10095 find_pc_partial_function.
10096
10097 2004-03-16 Mark Kettenis <kettenis@gnu.org>
10098
10099 * i386bsd-nat.c: s/regno/regnum/g.
10100 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
10101 FP0_REGNUM.
10102 (store_inferior_registers): Likewise.
10103
10104 2004-03-16 Mark Kettenis <kettenis@gnu.org>
10105
10106 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
10107 of i387_fill_fsave.
10108 (store_inferior_registers): Call i387_collect_fsave and
10109 i387_collect_fxsave instead of i387_fill_fsave and
10110 i387_fill_fxsave.
10111
10112 2004-03-15 Andrew Cagney <cagney@redhat.com>
10113
10114 * Makefile.in (frame-unwind.o): Update dependencies.
10115 * frame-unwind.c: Include "gdb_obstack.h".
10116 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
10117 parameter.
10118 (append_predicate): Delete function.
10119 (struct frame_unwind_table_entry): New structure.
10120 (struct frame_unwind_table): Replace "sniffer" with "head" and
10121 "tail".
10122 (frame_unwind_append_sniffer): Update.
10123 (frame_unwind_find_by_frame): Update.
10124 (_initialize_frame_unwind): Registe frame_unwind_init using
10125 gdbarch_data_register_pre_init.
10126
10127 2004-03-15 Mark Kettenis <kettenis@gnu.org>
10128
10129 * i386bsd-nat.c: Update copyright year.
10130 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
10131 define unconditionally.
10132
10133 2004-03-15 Mark Kettenis <kettenis@gnu.org>
10134
10135 * i387-tdep.h (i387_collect_fsave): New prototype.
10136 * i387-tdep.c (i387_collect_fsave): New function containing most
10137 of the code from i387_fill_fsave.
10138 (i387_fill_fsave): Call i387_collect_fsave.
10139
10140 2004-03-15 Mark Kettenis <kettenis@gnu.org>
10141
10142 * i386-linux-tdep.c: Update copyright year.
10143 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
10144 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
10145 svr4_ilp32_link_map_offsets instead of
10146 i386_linux_svr4_fetch_link_map_offsets.
10147
10148 2004-03-15 David Carlton <carlton@kealia.com>
10149
10150 Fix for PR c++/1553:
10151 * dwarf2read.c (read_structure_type): Determine type name by
10152 calling determine_class_name.
10153 (determine_class_name): New.
10154 (determine_prefix): Look at TYPE_TAG_NAME and call
10155 determine_class_name when appropriate.
10156 (determine_prefix_aux, class_name): Delete.
10157 (read_namespace): Set die->type.
10158
10159 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10160
10161 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
10162 unused macro definition. The definition in target.h (or perhaps
10163 elsewhere) takes precedence.
10164
10165 2004-03-15 Andrew Cagney <cagney@redhat.com>
10166
10167 * ppc-tdep.h: Update copyright.
10168 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
10169 function signatures to match "regsets.h".
10170 * ppc-linux-tdep.c: Include "regset.h".
10171 (ELF_GREGSET_SIZE): Delete.
10172 (right_supply_register): New function.
10173 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
10174 using right_supply_register.
10175 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
10176 functions.
10177 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
10178 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
10179 (_initialize_ppc_linux_tdep): Do not register
10180 ppc_linux_regset_core_fns.
10181 (ppc_linux_regset_from_core_section): Replace
10182 fetch_core_registers.
10183 (ppc_linux_regset_core_fns): Delete.
10184 * ppc-linux-nat.c: (right_fill_reg): New function.
10185 (supply_gregset): Update call to ppc_linux_supply_gregset.
10186 (fill_gregset): Clear the register set, use right_fill_reg.
10187 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
10188 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
10189
10190 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
10191 unsigned.
10192
10193 2004-03-15 Andrew Cagney <cagney@redhat.com>
10194
10195 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
10196 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
10197 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
10198 and register_gdbarch_data.
10199 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
10200 (struct gdbarch_data): Replace "init" by "pre_init" and
10201 "post_init".
10202 * gdbarch.h, gdbarch.c: Re-generate.
10203 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
10204 with"obstack", use OBSTACK_ZALLOC.
10205 (dwarf2_frame_ops): Delete.
10206 (dwarf2_frame_set_init_reg): Use gdbarch_data.
10207 (dwarf2_frame_init_reg): Use gdbarch_data.
10208 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
10209 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
10210 (_initialize_svr4_solib): Update.
10211 * user-regs.c (_initialize_user_regs): Update.
10212 * reggroups.c (_initialize_reggroup): Update.
10213 * regcache.c (_initialize_regcache): Update.
10214 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
10215 * libunwind-frame.c (_initialize_libunwind_frame): Update.
10216 * gnu-v3-abi.c (init_gnuv3_ops): Update.
10217 * frame-unwind.c (_initialize_frame_unwind): Update.
10218 * frame-base.c (_initialize_frame_base): Update.
10219 * user-regs.c (user_reg_add): Update.
10220 * reggroups.c (reggroup_add): Update.
10221 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
10222 * libunwind-frame.c (libunwind_frame_set_descr): Update.
10223 * frame-unwind.c (frame_unwind_append_sniffer): Update.
10224 * frame-base.c (frame_base_table): Update.
10225 * remote.c (_initialize_remote): Update.
10226 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
10227
10228 2004-03-15 Andrew Cagney <cagney@redhat.com>
10229
10230 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
10231
10232 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10233
10234 * Makefile.in (frv-linux-tdep.o): Add dependencies.
10235 * frv-linux-tdep.c: New file.
10236 * frv-tdep.c (struct gdbarch_tdep): Add new field
10237 ``sigcontext_reg_addr''.
10238 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
10239 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
10240 (frv_sigramp_frame_sniffer): New functions.
10241 (frv_sigtramp_frame_unwind): New static global.
10242 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
10243 sniffers.
10244 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
10245 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
10246
10247 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10248
10249 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
10250 but not via a call to error(), when unable to read memory.
10251
10252 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10253
10254 * frv-tdep.c (frv_call_dummy_words): Delete.
10255 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
10256
10257 2004-03-15 Andrew Cagney <cagney@redhat.com>
10258
10259 * infrun.c (handle_step_into_function, step_over_function): Only
10260 update and use STEP_FRAME_ID when the system is using legacy
10261 frames. Update comments.
10262
10263 2004-03-14 Mark Kettenis <kettenis@gnu.org>
10264
10265 * amd64-linux-tdep.h: Remove file.
10266 * amd64-linux-tdep.c: Don't include "inferior.h" and
10267 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
10268 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
10269 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
10270 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
10271 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
10272 macros.
10273 (user_to_gdb_regmap): Remove variable.
10274 (amd64_linux_gregset_reg_offset): New variable.
10275 (amd64_core_fns): Remove variable.
10276 (fetch_core_registers): Remove function.
10277 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
10278 functions.
10279 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
10280 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
10281 * Makefile.in (amd64_linux_tdep_h): Remove.
10282 (amd64-linux-nat.o): Update dependencies.
10283 (amd64-linux-tdep.o): Update dependencies.
10284
10285 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
10286 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
10287 functions.
10288 (fetch_inferior_registers, store_inferior_registers): Rewrite.
10289
10290 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
10291 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
10292
10293 2004-03-14 Daniel Jacobowitz <drow@mvista.com>
10294
10295 * dwarf2read.c (read_structure_type): Rename from
10296 read_structure_scope. Don't create a symbol or call process_die.
10297 Return immediately if die->type is set. Call read_type_die before
10298 dwarf2_add_member_fn.
10299 (process_structure_scope): New function.
10300 (read_enumeration_type, process_enumeration_scope): New functions,
10301 broken out from read_enumeration. Don't create the enumeration
10302 type if it has already been created.
10303 (read_enumeration): Removed.
10304 (process_die): Call read_structure_type, process_structure_scope,
10305 read_enumeration_type, and process_enumeration_scope. Just call
10306 new_symbol for base and subrange types. Add a comment about other
10307 type dies.
10308 (read_type_die): Call read_enumeration_type.
10309 (add_partial_structure, new_symbol): Update comments.
10310
10311 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
10312
10313 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
10314
10315 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
10316
10317 * tui/tui-win.h (tui_get_cmd_list): Declare.
10318 * tui/tui-win.c (tui_command): New function.
10319 (tui_get_cmd_list): New function.
10320 (_initialize_tui_win): Moved initialization of tui command in
10321 tui_get_cmd_list.
10322
10323 * tui/tui-data.c (init_content_element): Setup new data members.
10324 (init_win_info): Likewise.
10325 (free_content_elements): Free it.
10326 * tui/tui-data.h (struct tui_data_element): Store the register
10327 content to print.
10328 (struct tui_data_info): Keep the current register group.
10329
10330 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
10331
10332 * tui/tui-regs.h (tui_show_registers): Update prototype.
10333 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
10334 (tui_resize_all): No need to calculate anything for register window.
10335 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
10336 (tui_set_register_element, tui_set_general_regs_content): Remove.
10337 (tui_set_special_regs_content): Remove.
10338 (tui_set_general_and_special_regs_content): Remove.
10339 (tui_set_float_regs_content): Remove.
10340 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
10341 (tui_set_regs_content): Remove.
10342 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
10343 (tui_v_show_registers_command_support): Remove.
10344 (tui_show_registers): Use a reggroup to specify the registers to show.
10345 (tui_show_register_group): New function.
10346 (tui_display_registers_from): Compute the layout of register window
10347 and refresh with new API; be sure to delete old register windows.
10348 (tui_check_register_values): Update to use tui_get_register and
10349 tui_display_data.
10350 (tui_display_register): Just refresh the register window part.
10351 (tui_register_format): Format registers and save in tui_data_element.
10352 (tui_get_register): New to combine tui_reg_value_has_changed and
10353 tui_get_register_raw_value; fix to use the new gdb API.
10354 (tui_show_float_command): Renamed tui_reg_float_command.
10355 (tui_show_general_command): Renamed tui_reg_general_command.
10356 (tui_show_special_command): Renamed tui_reg_system_command.
10357 (_initialize_tui_regs): Remove unused commands.
10358
10359 2004-03-13 Mark Kettenis <kettenis@gnu.org>
10360
10361 * NEWS (New native configurations): Mention OpenBSD/amd64.
10362
10363 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
10364 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
10365 Remove defines.
10366 * config/i386/nm-fbsd64.h: Likewise.
10367 * config/i386/nm-obsd.h: Likewise.
10368 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
10369 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
10370
10371 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10372
10373 * frv-tdep.c (set_variant_scratch_registers): New function.
10374 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
10375 New constants.
10376
10377 From Richard Sandiford <rsandifo@redhat.com>:
10378 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
10379
10380 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10381
10382 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
10383 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
10384 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
10385 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
10386 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
10387 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
10388 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
10389 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
10390 definitions from frv-tdep.c to frv-tdep.h.
10391
10392 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10393
10394 Add shared library support for FR-V FDPIC ABI:
10395 * Makefile.in (solib-frv.o): Add dependencies.
10396 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
10397 New functions.
10398 (frv_push_dummy_call): Add support for FDPIC ABI.
10399 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
10400 for FDPIC ABI.
10401 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
10402 (frv_fdpic_find_canonical_descriptor): Declare.
10403 * solib-frv.c: New file.
10404 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
10405 * config/frv/tm-frv.h (solib.h): Include.
10406
10407 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10408
10409 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
10410 (frv-tdep.o): Update dependencies.
10411 * frv-tdep.h: New file.
10412 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
10413 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
10414 constants.
10415 (struct gdbarch_tdep): Add new member ``frv_abi''.
10416 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
10417 functions.
10418 (new_variant): Set ``frv_abi'' field.
10419 (gdb_arch_init): Detect FDPIC executables.
10420
10421 2004-03-12 Mark Kettenis <kettenis@gnu.org>
10422
10423 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
10424 wrapper.
10425
10426 2004-03-11 Andrew Cagney <cagney@redhat.com>
10427
10428 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
10429
10430 2004-03-11 Kevin Buettner <kevinb@redhat.com>
10431
10432 * solist.h (master_so_list): New function.
10433 * solib.c (master_so_list): Likewise.
10434 * solib-svr4.c (enable_break): Iterate over so_list entries
10435 obtained from master list instead of entries obtained directly
10436 via svr4_current_sos().
10437
10438 2004-03-10 Ben Elliston <bje@gnu.org>
10439
10440 * MAINTAINERS: Update my mail address.
10441
10442 2004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
10443
10444 * remote-m32r-sdi.c: Support hardware watchpoint.
10445
10446 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10447
10448 * user-regs.c: Update copyright years.
10449 (struct user_regs): Rename to gdb_user_regs.
10450 (append_user_reg, builtin_user_regs, user_regs_init)
10451 (user_reg_add, user_reg_map_name_to_regnum)
10452 (usernum_to_user_reg): Update.
10453
10454 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10455
10456 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
10457 (skip_children): New functions.
10458 (locate_pdi_sibling): Call skip_children.
10459
10460 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10461
10462 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
10463 * gdbtypes.c (check_typedef): Update comments.
10464
10465 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10466
10467 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
10468 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
10469 pointer. Update comment about comp_unit_head.
10470 (struct abbrev_info): Shorten two int flags.
10471 (dwarf_alloc_abbrev): Take a CU argument.
10472 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
10473 each time through the loop. Update cleanup argument.
10474 (psymtab_to_symtab_1): Update cleanup call.
10475 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
10476 abbrev_obstack.
10477 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
10478 Just call obstack_free and clear the pointer.
10479
10480 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10481
10482 * infrun.c (handle_inferior_event): Remove short-circuit code for
10483 events in a different thread.
10484
10485 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10486
10487 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
10488 print the whole transfer.
10489 (initialize_targets): Update description of "set debug target".
10490
10491 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10492
10493 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
10494
10495 2004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
10496
10497 * MAINTAINERS (write after approval): Add myself.
10498
10499 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
10500
10501 * sh-tdep.c (sh_print_registers_info): Use for loop.
10502 Don't skip multiple registers when a float register is encountered.
10503
10504 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
10505
10506 Fix PR tdep/1291.
10507 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
10508 to official SH documentation.
10509
10510 2004-03-07 Andrew Cagney <cagney@redhat.com>
10511
10512 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
10513 unused function.
10514
10515 2004-03-07 Daniel Jacobowitz <drow@mvista.com>
10516
10517 * arm-tdep.c (thumb_get_next_pc): Handle BX.
10518 (arm_get_next_pc): Handle BX and BLX.
10519
10520 2004-03-07 Andrew Cagney <cagney@redhat.com>
10521
10522 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
10523 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
10524 HPPA_SP_REGNUM.
10525 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
10526 (hppa_target_read_fp): Delete.
10527 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
10528 register_virtual_size, max_register_raw_size,
10529 max_register_virtual_size, register_byte, register_size,
10530 target_read_fp, fp_regnum, and register_bytes. Set register_type
10531 instead of register_virtual_type.
10532 (hppa32_register_type, hppa64_register_type): Replace
10533 hppa32_register_virtual_type and hppa64_register_virtual_type.
10534 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
10535 (HPPA_FP_REGNUM): Define.
10536
10537 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
10538
10539 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
10540 (pa_do_registers_info): Delete.
10541 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
10542 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
10543 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
10544
10545 * infcall.c (legacy_push_dummy_code): Delete #ifdef
10546 GDB_TARGET_IS_HPPA code.
10547 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
10548 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
10549 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
10550 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
10551 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
10552 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
10553 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
10554 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
10555 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
10556 (hppa_frameless_function_invocation, hppa64_store_return_value)
10557 (hppa_store_struct_return, hppa64_extract_return_value)
10558 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
10559 (hppa32_call_dummy_length, hppa64_call_dummy_length)
10560 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
10561 (find_proc_framesize, deposit_21, restore_pc_queue)
10562 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
10563 (rp_saved, pc_in_linker_stub): Delete.
10564
10565 Unconditionally enable 64-bit frame and ABI code.
10566 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
10567 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
10568 push_dummy_frame, fix_call_dummy, push_arguments,
10569 call_dummy_location, extract_return_value, use_struct_convention,
10570 store_return_value, store_struct_return, saved_pc_after_call,
10571 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
10572 frame_chain, frame_chain_valid, frameless_function_invocation,
10573 frame_saved_pc, and pop_frame.
10574
10575 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
10576 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
10577 (hppa_gdbarch_init): Do not set PC_REGNUM.
10578
10579 2004-03-06 Mark Kettenis <kettenis@gnu.org>
10580
10581 * config/alpha/tm-fbsd.h: Remove file.
10582 * config/alpha/fbsd.mt: Tweak comment.
10583 (TM_FILE): Set to tm-alpha.h.
10584
10585 2004-03-05 Andrew Cagney <cagney@redhat.com>
10586
10587 * infrun.c (step_over_function): When non-legacy code, and no
10588 step_frame_id, use the unwinder to get the caller's frame ID.
10589
10590 2004-03-05 Mark Kettenis <kettenis@gnu.org>
10591
10592 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
10593 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
10594 bfd_arch_unknown. Adjust comment.
10595
10596 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
10597 * i386obsd-tdep.c: Correct spelling in comment.
10598 * i386nbsd-tdep.c: Correct spelling in comment.
10599 * sparc-tdep.c: Correct spelling in comments.
10600
10601 2004-03-05 David Carlton <carlton@kealia.com>
10602
10603 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
10604 bug.
10605
10606 2004-03-05 Mark Kettenis <kettenis@gnu.org>
10607
10608 * sparc-tdep.c: Fix typo in comment.
10609
10610 2004-03-04 J. Brobecker <brobecker@gnat.com>
10611
10612 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
10613
10614 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
10615
10616 * dwarf2read.c: Add comment describing memory lifetimes.
10617 (struct dwarf2_pinfo): Update comment.
10618 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
10619 (read_enumeration, new_symbol): Don't use obsavestring.
10620
10621 2004-03-04 Mark Kettenis <kettenis@gnu.org>
10622
10623 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
10624 instead of amd64_fill_fxsave.
10625 * amd64bsd-nat.c (store_inferior_registers): Likewise.
10626 * amd64fbsd-nat.c (fill_fpregset): Likewise.
10627
10628 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
10629 Reorganize code a bit.
10630
10631 2004-03-04 Orjan Friberg <orjanf@axis.com>
10632
10633 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
10634 when the frame pointer is pushed. Don't set the frame pointer's
10635 address on the stack unless it's actually located there.
10636 Set the SRP's address on the stack correctly when the PC is still in
10637 the prologue.
10638 (cris_return_value): New function.
10639 (cris_gdbarch_init): Clear deprecated store_return_value,
10640 extract_return_value.
10641
10642 2004-03-02 Jim Blandy <jimb@redhat.com>
10643
10644 * stabsread.c (reg_value_complaint): The maximum register number
10645 is one less than the number of registers.
10646
10647 2004-03-02 Andrew Cagney <cagney@redhat.com>
10648
10649 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
10650 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
10651 trailing comma and redundant assignment of I386_ST0_REGNUM.
10652 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
10653 32-bit segment registers.
10654
10655 2004-03-01 Andrew Cagney <cagney@redhat.com>
10656
10657 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
10658 use frame_relative_level and get_next_frame.
10659
10660 2004-02-29 Andrew Cagney <cagney@redhat.com>
10661
10662 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
10663 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
10664 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
10665 Delete macro.
10666
10667 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
10668
10669 * inflow.c (terminal_inferior): Don't give up the terminal if we
10670 previously couldn't get the inferior's terminal state.
10671
10672 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
10673
10674 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
10675 PC_REGNUM.
10676
10677 2004-02-28 Andrew Cagney <cagney@redhat.com>
10678
10679 * NEWS: Refer to GDB 6.1.
10680 * README: Refer to GDB 6.1.
10681 * PROBLEMS: Refer to GDB 6.1.
10682
10683 2004-02-28 Daniel Jacobowitz <drow@mvista.com>
10684
10685 * thread-db.c (disable_thread_signals): Remove unused function.
10686
10687 2004-02-28 Mark Kettenis <kettenis@gnu.org>
10688
10689 * amd64-nat.c: Include "gdb_string.h".
10690 (amd64_collect_native_gregset): Zero-extend the 32-bit
10691 general-purpose registers and %eip.
10692
10693 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
10694 * amd64-tdep.c (amd64_collect_fxsave): New function.
10695 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
10696
10697 * i387-tdep.h: Update copyright year.
10698 (i387_collect_fxsave): New prototype.
10699 * i387-tdep.c: Update copyright year.
10700 (i387_collect_fxsave): New function containing most of the code
10701 from i387_fill_fxsave.
10702 (i387_fill_fxsave): Call i387_collect_fxsave.
10703
10704 2004-02-28 Andrew Cagney <cagney@redhat.com>
10705
10706 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
10707 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
10708
10709 2004-02-28 Mark Kettenis <kettenis@gnu.org>
10710
10711 * amd64-tdep.c (amd64_frame_cache): Fix comment.
10712
10713 2004-02-28 Andrew Cagney <cagney@redhat.com>
10714
10715 * utils.c: Use "", instead of <>, to include readline.
10716 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
10717 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
10718 * source.c, solib.c, exec.c, event-top.c: Ditto.
10719 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
10720 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
10721 * Makefile.in: Update all dependencies.
10722 (readline_tilde_h, readline_history_h): Define.
10723 (readline_headers): Delete.
10724
10725 2004-02-28 Mark Kettenis <kettenis@gnu.org>
10726
10727 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
10728 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
10729 "config/i386/tm-lx64.h".
10730
10731 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
10732 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
10733 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
10734
10735 2004-02-28 Andrew Cagney <cagney@redhat.com>
10736
10737 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
10738
10739 * breakpoint.c (_initialize_breakpoint): Use
10740 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
10741 Add help to show command.
10742
10743 2004-02-28 Mark Kettenis <kettenis@gnu.org>
10744
10745 * i386-nat.c: Reformat to be closer to coding standards.
10746 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
10747 `retval'. Make variables `align' and `size' local to while-loop.
10748 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
10749 (_initialize_i386_nat): New prototype.
10750
10751 * tui/tui.c: Include <readline/readline.h> instead of
10752 "readline/readline.h". Include it after <term.h> and
10753 "gdb_curses.h".
10754
10755 2004-02-27 Andrew Cagney <cagney@redhat.com>
10756
10757 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
10758 the new frame unwind code.
10759 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
10760 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
10761 PCOQ_HEAD_REGNUM.
10762
10763 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
10764 "return_value" and "push_dummy_call".
10765 (hppa32_use_struct_convention): Delete unused function.
10766 (hppa32_store_return_value): Delete unused function.
10767 (hppa32_extract_return_value): Delete unused function.
10768 (hppa32_stack_align): Delete function.
10769
10770 2004-02-27 Eli Zaretskii <eliz@elta.co.il>
10771
10772 * coffread.c (enter_linenos): Don't let rawptr reference memory
10773 outside linetab[]'s limits.
10774
10775 2004-02-27 Andrew Cagney <cagney@redhat.com>
10776
10777 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
10778 inferior stack space - the stack needs to grow upwards.
10779 (hppa32_frame_align): New function.
10780 (hppa64_frame_align): Replace hppa_frame_align.
10781 (hppa_gdbarch_init): Update.
10782
10783 2004-02-26 Orjan Friberg <orjanf@axis.com>
10784
10785 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
10786 (dwarf2-frame.h): Include.
10787 (enum cris_regnums): New enum CRIS_FP_REGNUM.
10788 Remove static variables related to ABI setting.
10789 (struct gdbarch_tdep): Remove cris_abi member.
10790 (struct frame_extra_info): Remove.
10791 (cris_unwind_cache, stack_item): New structs.
10792 (cris_frame_unwind, cris_frame_base): New variables.
10793 (push_stack_item, pop_stack_item)
10794 (cris_frame_unwind_cache, cris_frame_this_id)
10795 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
10796 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
10797 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
10798 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
10799 (cris_reg_struct_has_addr): New functions.
10800 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
10801 (cris_frame_saved_pc, cris_saved_pc_after_call,
10802 (cris_store_struct_return, cris_frameless_function_invocation)
10803 (cris_pop_frame, cris_skip_prologue_main)
10804 (cris_abi_original_store_return_value)
10805 (cris_abi_v2_store_return_value)
10806 (cris_abi_original_extract_return_value)
10807 (cris_abi_v2_extract_return_value)
10808 (cris_abi_original_reg_struct_has_addr)
10809 (cris_abi_v2_reg_struct_has_addr)
10810 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
10811 (cris_push_return_address, cris_abi_update): Remove.
10812 (_initialize_cris_tdep): Remove ABI command.
10813 (cris_dump_tdep): Ditto.
10814 (cris_gdbarch_init): Remove ABI command.
10815 Set store_return_value, extract_return_value, push_dummy_code,
10816 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
10817 frame_unwind_append_sniffer, frame_base_set_default.
10818 Clear deprecated init_frame_pc, push_arguments, store_return_value,
10819 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
10820 sizeof_call_dummy_words, get_saved_register, push_return_address,
10821 pop_frame, store_struct_return, frame_init_saved_regs,
10822 init_extra_frame_info, frameless_function_invocation, frame_chain,
10823 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
10824 dummy_write_sp.
10825
10826 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
10827
10828 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
10829 * valprint.c (print_hex_chars): Change from static to external.
10830 (print_char_chars): New function.
10831 * printcmd.c (print_scalar_formatted): For integer and enum types
10832 that are longer than LONGEST, perform processing via appropriate
10833 print_*_chars routines.
10834
10835 2004-02-26 Andrew Cagney <cagney@redhat.com>
10836
10837 * Makefile.in: Update dependencies.
10838 Changes from Ulrich Weigand,
10839 * s390-tdep.c: Include "dwarf2-frame.h".
10840 (s390_dwarf2_frame_init_reg): New function.
10841 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
10842 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
10843
10844 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
10845
10846 * breakpoint.c (pending_break_support): New setting variable.
10847 (break_command_1): Account for pending_break_support setting
10848 when creating pending breakpoints.
10849 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
10850 (_initialize_breakpoint): Add "set breakpoint pending" and
10851 "show breakpoint pending" commands.
10852
10853 2004-02-26 Andrew Cagney <cagney@redhat.com>
10854
10855 Fix PR i18n/1570.
10856 * charset.c (backslashable, backslashed, represented): Remove 'e'
10857 from list of escaped characters, not part of ISO-C.
10858
10859 2004-02-25 J. Brobecker <brobecker@gnat.com>
10860
10861 From Peter Schauer <schauer@pdf.de>:
10862 * tui/tui.c: Move system header includes after local includes.
10863 Fixes a build failure on solaris systems.
10864
10865 2004-02-25 J. Brobecker <brobecker@gnat.com>
10866
10867 * configure.in: Refine the previous change.
10868 * configure: Regenerate.
10869
10870 2004-02-25 Mark Kettenis <kettenis@gnu.org>
10871
10872 * amd64-tdep.h: Renamed from x86-64-tdep.h.
10873 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
10874 "amd64-tdep.h" instead of "x86-64-tdep.h".
10875 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
10876 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
10877 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
10878 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
10879 and "x86-64-tdep.c".
10880 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
10881 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
10882 and "x86-64-tdep.c".
10883 * amd64bsd-nat.c: Update copyright year.
10884 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
10885 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
10886 "x86-64-tdep.h".
10887 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
10888 "x86-64-tdep.h".
10889 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
10890 "x86-64-tdep.h".
10891 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
10892 "x86-64-tdep.h".
10893 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
10894 "x86-64-tdep.h".
10895 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
10896 "x86-64-tdep.h".
10897 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
10898 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
10899 * Makefile.in (amd64_linux_tdep_h): Renamed from
10900 x86_64_linux_tdep_h.
10901 (amd64_tdep_h): Renamed from x86_64_tdep_h.
10902 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
10903 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
10904 (amd64obsd-tdep.o): Update dependencies.
10905 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
10906 dependencies.
10907 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
10908 dependencies.
10909 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
10910 amd64-linux-nat.c amd64-linux-tdep.c.
10911 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
10912 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
10913 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
10914 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
10915 amd64-tdep.o and amd64-linux-tdep.o.
10916 (TM_FILE): Set to tm-linux64.h.
10917 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
10918 (NAT_FILE): Set to nm-linux64.h.
10919 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
10920 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10921 amd64-tdep.o.
10922 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10923 amd64-tdep.o.
10924 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10925 amd64-tdep.o.
10926
10927 2004-02-25 Roland McGrath <roland@redhat.com>
10928
10929 * remote.c (remote_protocol_qPart_auxv): New variable.
10930 (init_all_packet_configs): Initialize it.
10931 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
10932 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
10933 (show_remote_cmd): Call it.
10934 (_initialize_remote): Initialize commands.
10935 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
10936 service TARGET_OBJECT_AUXV requests.
10937
10938 2004-02-25 J. Brobecker <brobecker@gnat.com>
10939
10940 * configure.in: Make sure that the wborder function is available.
10941 Otherwise, search for it in the cur_colr library.
10942 * configure: Regenerate.
10943
10944 2004-02-25 Andrew Cagney <cagney@redhat.com>
10945
10946 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
10947
10948 2004-02-25 Mark Kettenis <kettenis@gnu.org>
10949
10950 * config/i386/tm-x86-64linux.h: Tweak comments.
10951
10952 2004-02-25 Richard Sandiford <rsandifo@redhat.com>
10953
10954 * MAINTAINERS: Add self to write-after-approval list.
10955
10956 2004-02-25 Andrew Cagney <cagney@redhat.com>
10957
10958 PR cli/1566. Problem found, and fix suggested by David Allan.
10959 * cli/cli-script.c (execute_control_command): Unconditionally
10960 install a cleanup. Default "ret" to "invalid_control". Use
10961 "break" instead of "return" to escape from the switch.
10962
10963 2004-02-24 J. Brobecker <brobecker@gnat.com>
10964
10965 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
10966 with the lines macro defined in term.h on AiX.
10967 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
10968 a collision with the label_width macro defined in term.h on AiX.
10969
10970 2004-02-23 David Mosberger <davidm@hpl.hp.com>
10971
10972 Committed by Kevin Buettner <kevinb@redhat.com>.
10973
10974 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
10975 * ia64-tdep.c (ia64_write_pc): Make it a global function.
10976 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
10977 instead of ia64_write_pc().
10978 * ia64-linux-tdep.c (regcache.h): Include.
10979 (ia64_linux_write_pc): New function.
10980
10981 2004-02-23 Roland McGrath <roland@redhat.com>
10982
10983 * auxv.c (info_auxv_command): Fix typos in error messages.
10984
10985 2004-02-23 Mark Kettenis <kettenis@gnu.org>
10986
10987 * x86-64-tdep.h: Tweak comment.
10988 (enum amd64_regnum): New.
10989 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
10990 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
10991 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
10992 (X86_64_XMM1_REGNUM): Removed.
10993 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
10994 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
10995 prototypes for renamed functions.
10996 * x86-64-tdep.c: Fix typo.
10997 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
10998 register numbers.
10999 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
11000 Use constants from `enum amd64_regnum' for register numbers.
11001 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
11002 (amd64_analyze_prologue, amd64_frame_cache,
11003 amd64_sigtramp_frame_cache): Use constants from `enum
11004 amd64_regnum' for register numbers.
11005 (amd64_supply_fpregset): Adjust for renamed functions.
11006 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
11007 `enum amd64_regnum' for register numbers.
11008 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
11009 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
11010 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
11011 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
11012 (amd64_linux_fill_gregset): Adjust for renamed macros.
11013 (fetch_core_registers): Adjust for renamed functions.
11014 (amd64_linux_init_abi): Adjust for renamed functions.
11015 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
11016 renamed functions.
11017 * amd64-nat.c: Adjust for renamed macros.
11018 * amd64bsd-nat.c (fetch_inferior_registers)
11019 (store_inferior_registers): Use constants from `enum amd64_regnum'
11020 for register numbers. Adjust for renamed variables.
11021 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
11022 renamed variables.
11023 (_initialize_amd64fbsd_nat): Use constants from `enum
11024 amd64_regnum' for register numbers.
11025 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
11026 `enum amd64_regnum' for register numbers.
11027 (amd64fbsd_init_abi): Adjust for renamed functions.
11028 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
11029 `enum amd64_regnum' for register numbers.
11030 (amd64nbsd_init_abi): Adjust for renamed functions.
11031 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
11032 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
11033 `enum amd64_regnum' for register numbers.
11034 (amd64obsd_init_abi): Adjust for renamed functions.
11035 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
11036
11037 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11038
11039 * breakpoint.c (print_one_breakpoint): Do not output spaces
11040 after printing <PENDING> for a pending breakpoint.
11041
11042 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11043
11044 * printcmd.c (print_scalar_formatted): Initialize val_long
11045 to remove compiler warning message.
11046
11047 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11048
11049 * defs.h (nquery, yquery): New prototypes.
11050 * breakpoint.c (break_command_1): Use new nquery interface.
11051 * utils.c (defaulted_query, nquery, yquery): New functions.
11052
11053 2004-02-23 Andrew Cagney <cagney@redhat.com>
11054
11055 * hppa-tdep.c (hppa_frame_align): New function.
11056 (hppa32_push_dummy_call): New function.
11057 (hppa64_push_dummy_call): New function.
11058 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
11059 disabled.
11060
11061 * infcall.c (legacy_push_dummy_code): Don't call deprecated
11062 FIX_CALL_DUMMY when push_dummy_call is available.
11063 (call_function_by_hand, push_dummy_code): Ditto.
11064
11065 2004-02-22 Andrew Cagney <cagney@redhat.com>
11066
11067 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
11068 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
11069 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
11070 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
11071 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
11072 call_dummy_location to ON_STACK.
11073
11074 2004-02-22 Mark Kettenis <kettenis@gnu.org>
11075
11076 * x86-64-linux-tdep.c: Tweak comment.
11077 (amd64_linux_supply_gregset): Renamed from
11078 x86_64_linux_supply_gresget.
11079 (amd64_linux_fill_gregset): Renamed from
11080 x86_64_linux_fill_gregset.
11081 (fetch_core_registers): Adjust for renamed functions.
11082 (amd64_core_fns): Renamed from x86_64_core_fns.
11083 (amd64_linux_sigtramp_start): Renamed from
11084 x86_64_linux_sigtramp_start.
11085 (amd64_linux_pc_in_sigtramp): Renamed from
11086 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
11087 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
11088 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
11089 (amd64_linux_sigcontext_addr): Renamed from
11090 x86_64_linux_sigcontext_addr.
11091 (amd64_linux_sc_reg_offset): Renamed from
11092 x86_64_linux_sc_reg_offset.
11093 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
11094 Adjust for renamed functions and variables.
11095 (_initialize_amd64_linux_tdep): Renamed from
11096 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
11097 variables.
11098 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
11099 Adjust for renamed functions.
11100
11101 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
11102 from x86_64_linux_gregset64_reg_offset.
11103 (amd64_linux_gregset32_reg_offset): Rename from
11104 x86_64_linux_gregset64_reg_offset.
11105 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
11106 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
11107 (amd64_linux_dr_set_control): Renamed from
11108 x86_64_linux_dr_set_control. Adjust for renamed functions.
11109 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
11110 Adjust for renamed functions.
11111 (amd64_linux_dr_reset_addr): Renamed from
11112 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
11113 (amd64_linux_dr_get_status): Renamed from
11114 x86_64_linux_dr_get_status. Adjust for renamed functions.
11115 (_initialize_amd64_linux_nat): Renamed from
11116 _initialize_x86_64_linux_nat. Adjust for renamed variables and
11117 functions.
11118 * config/i386/nm-x86-64linux.h: Update copyright year.
11119 Adjust for renamed functions.
11120
11121 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
11122 amd64fbsd_sigtramp_start.
11123 (amd64fbsd_sigtramp_end_addr): Renamed from
11124 amd64fbsd_sigtramp_end.
11125 (amd64fbsd_init_abi): Adjust for renamed variables.
11126 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
11127 variables.
11128 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
11129 amd64fbsd_sigtramp_start.
11130 (amd64fbsd_sigtramp_end_addr): Renamed from
11131 amd64fbsd_sigtramp_end.
11132
11133 2004-02-22 Andrew Cagney <cagney@redhat.com>
11134
11135 * hppa-tdep.c (hppa32_return_value): New function.
11136 (hppa64_return_value): New function.
11137 (hppa_gdbarch_init): Set return_value; keep disabled.
11138
11139 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
11140 struct-return and inferior function call methods.
11141
11142 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
11143 "frame-base.h".
11144 (struct hppa_frame_cache): Define.
11145 (hppa_frame_cache, hppa_frame_this_id): New functions.
11146 (hppa_frame_prev_register): New function.
11147 (hppa_frame_unwind, hppa_frame_base): New variables.
11148 (hppa_frame_unwind_sniffer): New function.
11149 (hppa_frame_base_address, hppa_unwind_pc): New function.
11150 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
11151 sniffer, and frame base sniffer; keep disabled.
11152 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
11153 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
11154
11155 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
11156 to predicates for "seriously old code".
11157
11158 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
11159 runtime if(0).
11160
11161 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
11162 unsigned.
11163 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
11164
11165 * config/pa/tm-hppa.h: Update copyright.
11166 (DEPRECATED_INIT_FRAME_PC): Delete macro.
11167 (deprecated_init_frame_pc_default): Delete declaration.
11168 (hppa_frame_init_saved_regs): Delete declaration.
11169 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
11170 * hppa-tdep.c: Include "arch-utils.h".
11171 (hppa_gdbarch_init): Set deprecated init_frame_pc
11172 and deprecated frame_init_saved_regs.
11173 (hppa_frame_init_saved_regs): Make static.
11174
11175 2004-02-22 Mark Kettenis <kettenis@gnu.org>
11176
11177 Remove old 386BSD support.
11178 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
11179 * configure.host: Remove i[34567]86-*-bsd*.
11180 * configure.tgt: Remove i[34567]86-*-bsd*.
11181 * i386b-nat.c: Removed.
11182 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
11183 (i386b-nat.o): Remove dependencies.
11184
11185 * config/i386/i386bsd.mh: Removed.
11186 * config/i386/i386bsd.mt: Removed.
11187 * config/i386/nm-i386bsd.h: Removed.
11188 * config/i386/tm-i386bsd.h: Removed.
11189 * config/i386/xm-i386bsd.h: Removed.
11190
11191 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
11192
11193 * amd64fbsd-tdep.c: Include "solib-svr4.h".
11194 (amd64fbsd_init_abi): Set link map offsets.
11195 * amd64nbsd-tdep.c: Include "slib-svr4.h".
11196 (amd64nbsd_init_abi): Set link map offsets.
11197 * amd64obsd-tdep.c: Include "solib-svr4.h".
11198 (amd64obsd_init_abi): Set link map offsets.
11199 * i386fbsd-tdep.c: Include "solib-svr4.h".
11200 (i386fbsd_init_abi): Set link map offsets.
11201 * i386nbsd-tdep.c: Include "solib-svr4.h".
11202 (i386nbsdelf_init_abi): Set link map offsets.
11203 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
11204 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
11205 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
11206 solib-legacy.o and core-aout.o. Reformat.
11207 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
11208 solib-svr4.o, solib-legacy.o. Reformat.
11209 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
11210 * config/i386/nbsdelf.mh: Reformat.
11211 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
11212 solib-svr4.o, solib-legacy.o and corelow.o.
11213 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
11214 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
11215 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
11216 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11217 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11218 (TM_FILE): Set to tm-fbsd.h.
11219 * config/i386/nbsd.mt (TDEPFILES): Reformat.
11220 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
11221 solib-svr4.o.
11222 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
11223 solib-svr4.o.
11224 (TM_FILE): Set to nm-nbsd.h.
11225 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
11226 Simplify shared library support. Don't include "elf/common.h".
11227 (SVR4_SHARED_LIBS): Don't define.
11228 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
11229 "solib.h".
11230 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
11231 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
11232 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
11233 Don't include "i386/tm-i386.h". Include "solib.h".
11234 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
11235 Don't include "i386/tm-i386.h".
11236 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
11237 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
11238 Include "i386/xm-i386.h".
11239 (HOST_LONG_DOUBLE_FORMAT): Remove.
11240
11241 Fix OpenBSD/i386 sigtramp recognition.
11242 * i386-tdep.h: Update copyright year.
11243 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
11244 (i386bsd_sigtramp_end): New prototypes.
11245 (i386fbsd_sigtramp_start_addr): Renamed from
11246 i386fbsd_sigtramp_start.
11247 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11248 (i386obsd_sigtramp_start_addr): Renamed from
11249 i386obsd_sigtramp_start.
11250 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11251 * i386bsd-tdep.c: Update copyright year.
11252 (i386bsd_pc_in_sigtramp): Make public.
11253 * i386fbsd-nat.c: Update copyright year.
11254 (_initialize_i386fbsd_nat): Adjust for renamed variables.
11255 * i386fbsd-tdep.c: Update copyright year.
11256 (i386fbsd_sigtramp_start_addr): Renamed from
11257 i386fbsd_sigtramp_start.
11258 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11259 (i386fbsdaout_init_abi): Adjust for renamed variables.
11260 * i386obsd-nat.c: Update copyright year.
11261 (_initialize_i386obsd_nat): Adjust for renamed variables.
11262 * i386obsd-tdep.c: Include "target.h".
11263 (i386obsd_page_size): New variable.
11264 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
11265 (i386obsd_sigtramp_end): New functions.
11266 (i386obsd_sigtramp_start_addr): Renamed from
11267 i386obsd_sigtramp_start.
11268 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11269 (i386obsd_init_abi): Adjust for renamed variables. Set
11270 pc_in_sigtramp, sigtramp_start and sigtramp_end.
11271 * Makefile.in (i386obsd-tdep.o): Update dependencies.
11272
11273 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
11274 trampoline change in OpenBSD kernel.
11275
11276 * amd64-nat.c: Update copyright year.
11277 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
11278 architecture from REGCACHE.
11279
11280 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
11281 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
11282
11283 2004-02-21 Mark Kettenis <kettenis@gnu.org>
11284
11285 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
11286 i[34567]86-*-openbsd3.[0-3].
11287 * config/i386/obsdaout.mh: New file.
11288
11289 * config/i386/obsd.mh (MH_FLAGS): Remove.
11290
11291 Fix PR build/1549.
11292 * i386obsd-tdep.c: Update copyright years. Include
11293 "solib-svr4.h".
11294 (i386obsd_init_abi): Don't set regset_from_core_section here.
11295 (i386obsd_aout_init_abi): New function. Set
11296 regset_from_core_section here.
11297 (i386obsd_elf_init_abi): New function.
11298 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
11299 * Makefile.in (i386obsd-tdep.o): Update dependecies.
11300 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
11301 (TM_FILE): Set to tm-nbsd.h.
11302
11303 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
11304 solib-sunos.o.
11305
11306 * solib-svr4.h: Update copyright year.
11307 (svr4_ilp32_fetch_link_map_offsets)
11308 (svr4_lp64_fetch_link_map_offsets): New prototype.
11309 * solib-svr4.c: Update copyright year.
11310 (svr4_ilp32_fetch_link_map_offsets)
11311 (svr4_lp64_fetch_link_map_offsets): New function.
11312
11313 2004-02-20 Daniel Jacobowitz <drow@mvista.com>
11314
11315 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
11316 to the partial symbol table.
11317
11318 2004-02-20 J. brobecker <brobecker@gnat.com>
11319
11320 * PROBLEMS: Add description of problem documented under gdb/1560.
11321
11322 2004-02-20 Mark Kettenis <kettenis@gnu.org>
11323
11324 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
11325 comments.
11326 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
11327 functions.
11328 (amd64obsd_init_abi): Reorder initializations. Use
11329 amd64obsd_r_reg_offset to initialize the general-purpose register
11330 set details. Set regset_from_core_section.
11331 (_initialize_amd64obsd_tdep): Rename from
11332 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
11333 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
11334 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
11335
11336 * NEWS (New native configurations): Mention OpenBSD/alpha.
11337 * configure.tgt: Add alpha*-*-openbsd*.
11338 * configure.host: Add alpha*-*-openbsd*.
11339 * alphanbsd-tdep.c: Update copyright year.
11340 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
11341
11342 2004-02-20 Andrew Cagney <cagney@redhat.com>
11343
11344 Fix PR tdep/1372.
11345 * configure.tgt: Delete target "none-*-*".
11346 * configure.host: Delete host "none-*-*".
11347 * config/none/none.mh: Delete file.
11348 * config/none/none.mt: Delete file.
11349 * config/none/xm-none.h: Delete file.
11350 * config/none/tm-none.h: Delete file.
11351 * config/none/nm-none.h: Delete file.
11352
11353 2004-02-19 Fred Fish <fnf@redhat.com>
11354
11355 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
11356 cache->uses_fp prior to setting it.
11357
11358 2004-02-19 Fred Fish <fnf@redhat.com>
11359
11360 Fix for PR breakpoint/1558.
11361 * sh-tdep.c (IS_JSR): New macro.
11362 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
11363
11364 2004-02-19 Jim Blandy <jimb@redhat.com>
11365
11366 * findvar.c (value_from_register): Doc fix.
11367
11368 2004-02-19 Jeff Johnston <jjohnstn@redhat.com>
11369
11370 * printcmd.c (print_scalar_formatted): Do not check for sizeof
11371 type being greater than sizeof of host's LONGEST. Always use
11372 unpack_long() unless format 'f' chosen.
11373
11374 2004-02-19 Joel Brobecker <brobecker@gnat.com>
11375
11376 Committed by Elena Zannoni <ezannoni@redhat.com>
11377
11378 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
11379 contains a symbol wich is the best, non-exact match for the given
11380 pc. Update comments.
11381
11382 2004-02-19 Elena Zannoni <ezannoni@redhat.com>
11383
11384 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
11385 macro, which was part of the now removed Mach 3 port.
11386 * utils.c (request_quit): Ditto.
11387
11388 2004-02-18 Mark Kettenis <kettenis@gnu.org>
11389
11390 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
11391 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
11392
11393 2004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11394
11395 Committed by Mark Kettenis <kettenis@gnu.org>.
11396
11397 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
11398 Define.
11399
11400 2004-02-18 Andrew Cagney <cagney@redhat.com>
11401
11402 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
11403 CONFIG_INSTALL and CONFIG_UNINSTALL.
11404 * configure: Re-generate.
11405 * interps.h (INTERP_TUI): Define.
11406 * Makefile.in: Update dependencies.
11407 (TUI): New macro.
11408 (tui-main.o): Specify dependencies.
11409 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
11410 * tui/tui-main.c: New file.
11411
11412 2004-02-18 Mark Kettenis <kettenis@gnu.org>
11413
11414 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
11415 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
11416 dependencies.
11417 * configure.host: Add x86_64-*-openbsd*.
11418 * configure.tgt: Add x86_64-*-openbsd*.
11419 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
11420
11421 * tui/tui.c: Don't include <malloc.h>.
11422
11423 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
11424 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
11425 amd64nbsd-tdep.c.
11426
11427 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
11428 static. Remove extraneous whitespace.
11429 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
11430 static.
11431
11432 2004-02-17 Jim Blandy <jimb@redhat.com>
11433
11434 * findvar.c (value_from_register): Doc fix.
11435
11436 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11437
11438 Committed by Jim Blandy <jimb@redhat.com>.
11439
11440 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
11441 CORE_ADDR as type for selectors. Correct types for GNU run time
11442 message lookup function to use double indirection.
11443 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
11444 * objc-lang.h (lookup_child_selector): Adapt prototype.
11445
11446 * s390-nat.c (SUBOFF): New macro.
11447 (supply_gregset, fill_gregset): Use it to handle debugging
11448 of 32-bit exectuables running under a 64-bit kernel.
11449 * s390-tdep.c: Include "solib-svr4.h".
11450 (s390_svr4_fetch_link_map_offset): New function.
11451 (s390x_svr_fetch_link_map_offset): Likewise.
11452 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
11453 * Makefile.in (s390-tdep.o): Update dependencies.
11454
11455 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
11456 "frame-unwind.h".
11457 (s390_readinstruction): Reformat. Use read_memory_nobpt.
11458 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
11459 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
11460 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
11461 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
11462 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
11463 S390_SIGNAL_FRAMESIZE,
11464 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
11465 (struct frame_extra_info): Remove.
11466 (s390_memset_extra_info): Remove.
11467 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
11468 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
11469 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
11470 (is_rse): Renamed to ...
11471 (is_rsy): ... this. Support long displacements.
11472 (is_rxe): Renamed to ...
11473 (is_rxy): ... this. Support long displacements.
11474 (compute_x_addr): Support long displacements.
11475 (struct s390_prologue_data): New data type.
11476 (s390_on_stack): Change API to use struct s390_prologue_data.
11477 (s390_store): Reimplement.
11478 (s390_load): New function.
11479 (s390_get_signal_frame_info): Remove.
11480 (s390_get_frame_info): Remove, replace by ...
11481 (s390_analyze_prolog): ... this new function.
11482 (s390_check_function_end): Remove.
11483 (s390_function_start): Remove.
11484 (s390_frameless_function_invokation): Remove.
11485 (s390_is_sigreturn): Remove.
11486 (s390_init_frame_pc_first): Remove.
11487 (s390_init_frame_extra_info): Remove.
11488 (s390_frame_init_saved_regs): Remove.
11489 (s390_frame_saved_pc_nofix): Remove.
11490 (s390_frame_saved_pc): Remove.
11491 (s390_frame_chain): Remove.
11492 (s390_fp_regnum, s390_read_fp): Remove.
11493 (s390_pop_frame_regular, s390_pop_frame): Remove.
11494 (s390_saved_pc_after_call): Remove.
11495 (s390_skip_prologue): Reimplement.
11496 (s390_in_function_epilogue_p): Support long displacements.
11497 (struct s390_unwind_cache): New data structure.
11498 (s390_frame_unwind_cache): New function.
11499 (s390_prologue_frame_unwind_cache): Likewise.
11500 (s390_backchain_frame_unwind_cache): Likewise.
11501 (s390_frame_this_id, s390_frame_prev_register): Likewise.
11502 (s390_frame_unwind): Define.
11503 (s390_frame_sniffer): New function.
11504 (struct s390_pltstub_unwind_cache): New data structure.
11505 (s390_pltstub_frame_unwind_cache): New function.
11506 (s390_pltstub_frame_this_id): Likewise.
11507 (s390_pltstub_frame_prev_register): Likewise.
11508 (s390_pltstub_frame_unwind): Define.
11509 (s390_pltstub_frame_sniffer): New function.
11510 (struct s390_sigtramp_unwind_cache): New data structure.
11511 (s390_sigtramp_frame_unwind_cache): New function.
11512 (s390_sigtramp_frame_this_id): Likewise.
11513 (s390_sigtramp_frame_prev_register): Likewise.
11514 (s390_sigtramp_frame_unwind): Define.
11515 (s390_sigtramp_frame_sniffer): New function.
11516 (s390_frame_base_address, s390_local_base_address): New functions.
11517 (s390_frame_base): Define.
11518 (s390_unwind_pc, s390_unwind_sp): New function.
11519 (s390_push_dummy_call): Use new frame base location.
11520 (s390_unwind_dummy_id): Likewise.
11521 (s390_gdbarch_init): Remove calls to:
11522 set_gdbarch_frameless_function_invocation,
11523 set_gdbarch_deprecated_init_frame_pc,
11524 set_gdbarch_deprecated_frame_chain,
11525 set_gdbarch_deprecated_frame_init_saved_regs,
11526 set_gdbarch_deprecated_pop_frame,
11527 set_gdbarch_deprecated_init_extra_frame_info,
11528 set_gdbarch_deprecated_init_frame_pc_first,
11529 set_gdbarch_deprecated_target_read_fp,
11530 set_gdbarch_deprecated_frame_saved_pc,
11531 set_gdbarch_deprecated_saved_pc_after_call,
11532 set_gdbarch_deprecated_fp_regnum.
11533 Add calls to:
11534 set_gdbarch_in_solib_call_trampoline,
11535 frame_unwind_append_sniffer,
11536 frame_base_set_default,
11537 set_gdbarch_unwind_pc,
11538 set_gdbarch_unwind_sp.
11539 * Makefile.in (s390-tdep.o): Update dependencies.
11540
11541 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
11542 (S390_STACK_FRAME_OVERHEAD): Remove.
11543 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
11544 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
11545 (s390_promote_integer_argument): Remove.
11546 (s390_cannot_extract_struct_value_address): Remove.
11547 (s390_use_struct_convention, s390_store_struct_return): Remove.
11548 (s390_extract_return_value, s390_store_return_value): Remove.
11549 (s390_return_value_convention, s390_return_value): New functions.
11550 (is_float_singleton): Handle typedefs.
11551 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
11552 Remove, replace by ...
11553 (s390_function_arg_pass_by_reference, s390_function_arg_float,
11554 s390_function_arg_integer): ... these new functions.
11555 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
11556 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
11557 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
11558 Fill in tdep->abi.
11559 Remove calls to:
11560 set_gdbarch_deprecated_store_struct_return,
11561 set_gdbarch_deprecated_extract_return_value,
11562 set_gdbarch_deprecated_store_return_value,
11563 set_gdbarch_use_struct_convention,
11564 set_gdbarch_extract_struct_value_address,
11565 set_gdbarch_deprecated_pc_in_call_dummy,
11566 set_gdbarch_deprecated_push_arguments,
11567 set_gdbarch_deprecated_save_dummy_frame_tos,
11568 set_gdbarch_deprecated_push_return_address,
11569 set_gdbarch_deprecated_sizeof_call_dummy_words,
11570 set_gdbarch_deprecated_call_dummy_words,
11571 set_gdbarch_deprecated_dummy_write_sp.
11572 Add calls to:
11573 set_gdbarch_push_dummy_call,
11574 set_gdbarch_unwind_dummy_id,
11575 set_gdbarch_return_value.
11576
11577 * config/s390/nm-linux.h: Update comments.
11578 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
11579 (STOPPED_BY_WATCHPOINT): Redefine.
11580 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
11581 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
11582 (s390_stopped_by_watchpoint): Likewise.
11583 (watch_area_cnt): Remove.
11584 * s390-nat.c: Update comments.
11585 (watch_area): Remove typedef.
11586 Global replace watch_area by struct watch_area.
11587 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
11588 (s390_stopped_by_watchpoint): Remove pid argument,
11589 use s390_inferior_tid. Add short-cut for the no watchpoint case.
11590 (s390_fix_watch_points): Remove pid argument,
11591 use s390_inferior_tid. Recompute area spanned by watchpoints.
11592 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
11593 argument. Reimplement.
11594
11595 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
11596 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
11597 (FETCH_INFERIOR_REGISTERS): Define.
11598 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
11599 core-regset.o.
11600 * config/s390/s390x.mt: Remove.
11601 * config/s390/tm-s390.h: Remove.
11602 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
11603 (TARGET_ELF64): Remove.
11604 (SKIP_TRAMPOLINE_CODE): Do not undefine.
11605 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
11606 s390*-*-* case; always set gdb_target to s390.
11607 * regformats/reg-s390.dat: Remove control registers.
11608 * regformats/reg-s390x.dat: Likewise.
11609 * s390-tdep.h: New file.
11610 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
11611 Include "inferior.h" and "s390-tdep.h".
11612 Remove private definition of offsetof.
11613 (s390_register_u_addr): Remove.
11614 (regmap_gregset, regmap_fpregset): Define.
11615 (supply_gregset, fill_gregset): Reimplement.
11616 (supply_fpregset, fill_fpregset): Likewise.
11617 (s390_inferior_tid): New function.
11618 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
11619 (fetch_inferior_registers, store_inferior_registers): Likewise.
11620 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
11621 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
11622 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
11623 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
11624 (struct gdbarch_tdep): Define.
11625 (struct s390_register_info): Define.
11626 (s390_register_info): New variable.
11627 (s390_register_name): Reimplement.
11628 (s390_register_type): New function.
11629 (s390_register_raw_size, s390x_register_raw_size): Remove.
11630 (s390_cannot_fetch_register): Remove.
11631 (s390_register_byte): Remove.
11632 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
11633 (s390_dwarf_regmap): New variable.
11634 (s390_dwarf_reg_to_regnum): New function.
11635 (s390_stab_reg_to_regnum): Remove.
11636 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
11637 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
11638 (s390_convert_register_p): Likewise.
11639 (s390_register_to_value, s390_value_to_register): Likewise.
11640 (s390_register_reggroup_p): Likewise.
11641 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
11642 s390_gregset, s390x_gregset, s390_fpregset): New variables.
11643 (s390_supply_regset, s390_regset_from_core_section): New functions.
11644 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
11645 (S390_FPR_SIZE): Likewise.
11646 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
11647 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
11648 (S390_NUM_GPRS): Move here from tm-s390.h.
11649 (S390_NUM_FPRS): Likewise.
11650 (s390_in_function_epilogue_p): New function.
11651 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
11652 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
11653 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
11654 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
11655 Replace S390_FP_REGNUM by S390_SP_REGNUM.
11656 Remove calls to:
11657 set_gdbarch_deprecated_max_register_raw_size,
11658 set_gdbarch_deprecated_max_register_virtual_size,
11659 set_gdbarch_deprecated_register_byte,
11660 set_gdbarch_cannot_fetch_register,
11661 set_gdbarch_cannot_store_register,
11662 set_gdbarch_deprecated_register_size,
11663 set_gdbarch_deprecated_register_raw_size,
11664 set_gdbarch_deprecated_register_virtual_size,
11665 set_gdbarch_deprecated_register_virtual_type,
11666 set_gdbarch_deprecated_register_bytes.
11667 Add calls to:
11668 set_gdbarch_num_pseudo_regs,
11669 set_gdbarch_register_type,
11670 set_gdbarch_convert_register_p,
11671 set_gdbarch_register_to_value,
11672 set_gdbarch_value_to_register,
11673 set_gdbarch_register_reggroup_p,
11674 set_gdbarch_regset_from_core_section,
11675 set_gdbarch_pseudo_register_read,
11676 set_gdbarch_pseudo_register_write,
11677 set_gdbarch_in_function_epilogue_p.
11678 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
11679 (s390_tdep_h): New variable.
11680
11681 2004-02-17 Jim Blandy <jimb@redhat.com>
11682
11683 * findvar.c (value_from_register): If the type has no length, just
11684 return an acceptable value --- don't report an internal error.
11685
11686 * stabsread.c (read_type): If we find any type numbers that are
11687 forward references, complain if the references aren't resolved by
11688 the time we're finished reading.
11689 (cleanup_undefined_types): Make error message more appropriate for
11690 a complaint.
11691
11692 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
11693
11694 * Makefile.in (defs_h): Remove dependency on progress_h.
11695 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
11696 progress.h.
11697 * main.c (captured_main): Delete use of START_PROGRESS and
11698 END_PROGRESS.
11699
11700 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
11701
11702 * objfiles.c (terminate_minimal_symbol_table): Add back
11703 initialization of MSYMBOL_TYPE.
11704
11705 2004-02-17 David Mosberger <davidm@hpl.hp.com>
11706
11707 Committed by Andrew Cagney.
11708 * Makefile.in (ia64_tdep_h): New macro.
11709 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
11710 (ia64-tdep.o): Likewise.
11711 * ia64-tdep.h: New file.
11712 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
11713 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
11714 (ia64_aix_sigcontext_register_address): Likewise.
11715 (ia64_linux_getunwind_table): Delete declaration.
11716 * ia64-linux-tdep.c: Likewise.
11717
11718 2004-02-17 Corinna Vinschen <vinschen@redhat.com>
11719
11720 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
11721 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
11722 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
11723
11724 2004-02-17 Andrew Cagney <cagney@redhat.com>
11725
11726 * symtab.c (skip_prologue_using_sal): New function.
11727 * symtab.h (skip_prologue_using_sal): Declare.
11728 * frv-tdep.c: Include "symtab.h".
11729 (skip_prologue_using_sal): Delete function.
11730 * mips-tdep.c (skip_prologue_using_sal): Delete function.
11731 * rs6000-tdep.c (refine_prologue_limit): Mention
11732 skip_prologue_using_sal.
11733 * ia64-tdep.c (refine_prologue_limit): Ditto.
11734 * Makefile.in: Update dependencies.
11735
11736 2004-02-16 Andrew Cagney <cagney@redhat.com>
11737
11738 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
11739 START_INFERIOR_TRAPS_EXPECTED.
11740 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
11741 START_INFERIOR_TRAPS_EXPECTED.
11742 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
11743 Delete macro.
11744 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
11745 macro, moved to "nm-osf.h". Update copyright.
11746 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
11747 update copyright.
11748
11749 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
11750 and function replacing FRAMELESS_FUNCTION_INVOCATION.
11751 * blockframe.c (legacy_frameless_look_for_prologue): Rename
11752 frameless_look_for_prologue.
11753 * frame.h (legacy_frameless_look_for_prologue): Rename
11754 frameless_look_for_prologue.
11755 * gdbarch.h, gdbarch.c: Re-generate.
11756 * sh64-tdep.c (sh64_gdbarch_init): Update.
11757 * sh-tdep.c (sh_gdbarch_init): Update.
11758 * s390-tdep.c (s390_gdbarch_init): Update.
11759 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11760 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11761 * m68k-tdep.c (m68k_gdbarch_init): Update.
11762 (delta68_frame_args_address): Update.
11763 * m32r-tdep.c (m32r_gdbarch_init): Update.
11764 * hppa-tdep.c (hppa_gdbarch_init): Update.
11765 * h8300-tdep.c (h8300_gdbarch_init): Update.
11766 * frv-tdep.c (frv_gdbarch_init): Update.
11767 (frv_frameless_function_invocation): Update.
11768 * cris-tdep.c (cris_gdbarch_init): Update.
11769 (cris_frameless_function_invocation): Update.
11770 * avr-tdep.c (avr_gdbarch_init): Update.
11771 * arm-tdep.c (arm_gdbarch_init): Update.
11772 * stack.c (frame_info): Update, call predicate.
11773 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
11774 * frame.c (legacy_get_prev_frame): Update, call predicate..
11775 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
11776 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
11777 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
11778 invocation.
11779 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11780 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11781 * vax-tdep.c (vax_gdbarch_init): Ditto.
11782
11783 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
11784 function.
11785
11786 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
11787
11788 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
11789 initializations.
11790
11791 2004-02-16 Andrew Cagney <cagney@redhat.com>
11792
11793 * tui/tui-windata.c: Include "gdb_string.h".
11794 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
11795 * tui/tui-layout.c, tui/tui-command.c: Ditto.
11796 * Makefile.in: Update dependencies.
11797
11798 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
11799
11800 * Makefile.in (infrun.o): Add $(gdb_assert_h).
11801 * infrun.c: Include "gdb_assert.h".
11802 (singlestep_ptid, saved_singlestep_ptid)
11803 (stepping_past_singlestep_breakpoint): New variables.
11804 (resume): Set singlestep_ptid. Check for singlestep thread
11805 hop.
11806 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
11807 (handle_inferior_event): Handle singlestep thread hop.
11808
11809 2004-02-16 Andrew Cagney <cagney@redhat.com>
11810
11811 * dwarf2-frame.c (dwarf2_frame_ops): New function.
11812 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
11813 (dwarf2_frame_init_reg): Ditto.
11814
11815 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
11816 suggested by Joshua Neuheisel
11817
11818 * configure.in: Always check for curses, including pdcurses.
11819 Warn, instead of error, when no curses are found. Enable TUI when
11820 curses is available.
11821 * configure: Re-generate.
11822
11823 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
11824
11825 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
11826 sh_sh4_register_convert_to_virtual.
11827 (sh_register_convert_to_raw): Rename from
11828 sh_sh4_register_convert_to_raw.
11829 (sh_pseudo_register_read): Accomodate above name change.
11830 (sh_pseudo_register_write): Ditto.
11831
11832 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
11833
11834 * sh-tdep.c (sh_generic_register_name): Remove.
11835 (sh_gdbarch_init): Use sh_sh_register_name in default case.
11836
11837 2004-02-15 Andrew Cagney <cagney@redhat.com>
11838
11839 * configure.in (build_warnings): Add -Wunused-function.
11840 * configure: Re-generate.
11841
11842 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
11843 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
11844
11845 * procfs.c (procfs_init_inferior): Assume that
11846 START_INFERIOR_TRAPS_EXPECTED is defined.
11847 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
11848 * config/ns32k/tm-nbsd.h: Delete file,
11849 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
11850
11851 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
11852 * config/vax/tm-vax.h: Delete file.
11853
11854 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11855 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11856 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11857 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11858 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
11859 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11860 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
11861
11862 2004-02-15 Mark Kettenis <kettenis@gnu.org>
11863
11864 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
11865 * dwarf2-frame.c (dwarf2_frame_data): New variable.
11866 (struct dwarf2_frame_ops): New.
11867 (dwarf2_frame_default_init_reg): New function, based on
11868 dwarf2_frame_init_reg.
11869 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
11870 (dwarf2_frame_init_reg): Call architecture-specific function.
11871 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
11872 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
11873 instead of dwarf2_frame_data.
11874 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
11875 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
11876
11877 2004-02-15 Andrew Cagney <cagney@redhat.com>
11878
11879 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
11880 register_gdbarch_swap.
11881 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
11882 * f-lang.c (_initialize_f_language): Update, use
11883 DEPRECATED_REGISTER_GDBARCH_SWAP.
11884 * remote.c (_initialize_remote): Ditto.
11885 * regcache.c (_initialize_regcache): Ditto.
11886 * parse.c (_initialize_parse): Ditto.
11887 * infrun.c (_initialize_infrun): Ditto.
11888 * mi/mi-main.c (_initialize_mi_main): Ditto.
11889 * gdbtypes.c (_initialize_gdbtypes): Ditto.
11890
11891 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
11892 poking .cacheable directly.
11893 * symfile.c (symfile_bfd_open): Ditto.
11894
11895 * Makefile.in: Update all dependencies.
11896
11897 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
11898 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
11899 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
11900 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
11901 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
11902
11903 2004-02-14 Andrew Cagney <cagney@redhat.com>
11904
11905 * arch-utils.c (legacy_convert_register_p): Check
11906 DEPRECATED_REGISTER_CONVERTIBLE_P.
11907 * findvar.c (value_of_register): Ditto.
11908
11909 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
11910 * gdbarch.h, gdbarch.c: Re-generate.
11911 * arch-utils.c (deprecated_register_convertible_not): Delete.
11912 * arch-utils.h (deprecated_register_convertible_not): Delete.
11913 * mi/mi-main.c (get_register): Update. Update copyright.
11914 * infcmd.c (default_print_registers_info): Update.
11915
11916 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
11917 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
11918 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
11919 * gdbarch.h, gdbarch.c: Re-generate.
11920 * frame.c (deprecated_get_next_frame_hack): Delete function.
11921 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
11922 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
11923 Update.
11924 * infcall.c (call_function_by_hand): Update.
11925
11926 2004-02-14 Elena Zannoni <ezannoni@redhat.com>
11927
11928 * symfile.c (init_entry_point_info, entry_point_address): Move
11929 from here...
11930 * objfiles.c (init_entry_point_info, entry_point_address):..to
11931 here.
11932 * symfile.h (init_entry_point_info, entry_point_address): Remove
11933 prototypes.
11934 * objfiles.h (init_entry_point_info, entry_point_address):Add
11935 prototypes.
11936 * cris-tdep.c: Remove include of symfile.h. Add include of
11937 objfiles.h.
11938 * infcall.c: Ditto.
11939 * mcore-tdep.c: Ditto.
11940 * mn10300-tdep.c: Ditto.
11941 * sh64-tdep.c: Ditto.
11942 * v850-tdep.c: Ditto.
11943 * arm-tdep.c: Remove include of symfile.h.
11944 * blockframe.c: Ditto.
11945 * coffread.c: Ditto.
11946 * dbxread.c: Ditto.
11947 * dwarf2read.c: Ditto.
11948 * dwarfread.c: Ditto.
11949 * frv-tdep.c: Ditto.
11950 * ia64-tdep.c: Ditto.
11951 * mdebugread.c: Ditto.
11952 * mipsread.c: Ditto.
11953 * rs6000-tdep.c: Ditto.
11954 * s390-tdep.c: Ditto.
11955 * sh-tdep.c: Ditto.
11956 * xstormy16-tdep.c: Ditto.
11957 * gdbarch.sh: Remove include of symfile.h.
11958 * gdbarch.c: Regenerate.
11959 * solib-irix.c (enable_break): Use entry_point_address().
11960 Add comment about include file.
11961 * xcoffread.c: Add comment about include file.
11962 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
11963 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
11964 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
11965 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
11966 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
11967
11968 2004-02-13 Andrew Cagney <cagney@redhat.com>
11969
11970 * corelow.c (core_xfer_partial): Use "struct bfd_section".
11971 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
11972 copyright.
11973 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
11974
11975 2004-02-12 Fred Fish <fnf@redhat.com>
11976
11977 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
11978 set_gdbarch_store_return_value.
11979
11980 2004-02-12 Andrew Cagney <cagney@redhat.com>
11981
11982 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
11983 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
11984 (interrupt_query): Ditto.
11985 (ofunc): Delete unused variable.
11986 * cris-tdep.c (cris_abi): Delete unused function.
11987 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
11988 (cris_get_wide_opcode, cris_get_short_size): Ditto.
11989 (cris_get_asr_quick_shift_steps): Ditto.
11990 (cris_skip_prologue_frameless_p): Ditto.
11991 * arm-tdep.c (arm_push_return_address): Delete unused function.
11992 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
11993 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
11994 * s390-tdep.c (s390_function_start): Delete unused function.
11995
11996 2004-02-12 Andrew Cagney <cagney@redhat.com>
11997
11998 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
11999 gdbarch.h, gdbarch.c: Re-generate.
12000 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
12001 to generic_prologue_frameless_p.
12002 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
12003 * arch-utils.c (generic_prologue_frameless_p): Delete function.
12004
12005 2004-02-11 Daniel Jacobowitz <drow@mvista.com>
12006
12007 * mips-linux-tdep.c: Include "frame.h".
12008 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
12009 (mips_linux_skip_resolver): New functions.
12010 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
12011 and set_gdbarch_in_solib_call_trampoline.
12012 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
12013 to after set_gdbarch_in_solib_return_trampoline. Only set the
12014 solib hooks to mips16 functions if the OS ABI is unknown.
12015 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
12016 including "config/tm-linux.h".
12017 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
12018 * Makefile.in (mips-linux-tdep.o): Update.
12019
12020 2004-02-11 David Carlton <carlton@kealia.com>
12021
12022 * linespec.c (decode_compound): Only look for a class symbol when
12023 considering all but the rightmost component.
12024
12025 2004-02-11 Andrew Cagney <cagney@redhat.com>
12026
12027 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
12028 abi code are are separatly grouped.
12029
12030 2004-02-11 Andrew Cagney <cagney@redhat.com>
12031
12032 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
12033 * gdbarch.h, gdbarch.c: Re-generate.
12034 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12035 * v850-tdep.c (v850_gdbarch_init): Update.
12036 * sh64-tdep.c (sh64_gdbarch_init): Update.
12037 * sh-tdep.c (sh_gdbarch_init): Update.
12038 * s390-tdep.c (s390_gdbarch_init): Update.
12039 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12040 * mips-tdep.c (mips_gdbarch_init): Update.
12041 * mcore-tdep.c (mcore_gdbarch_init): Update.
12042 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12043 * m32r-tdep.c (m32r_gdbarch_init): Update.
12044 * ia64-tdep.c (ia64_gdbarch_init): Update.
12045 * hppa-tdep.c (hppa_gdbarch_init): Update.
12046 * h8300-tdep.c (h8300_gdbarch_init): Update.
12047 * frv-tdep.c (frv_gdbarch_init): Update.
12048 * d10v-tdep.c (d10v_gdbarch_init): Update.
12049 * cris-tdep.c (cris_gdbarch_init): Update.
12050 * avr-tdep.c (avr_gdbarch_init): Update.
12051 * arm-tdep.c (arm_gdbarch_init): Update.
12052 * alpha-tdep.c (alpha_gdbarch_init): Update.
12053
12054 2004-02-11 Corinna Vinschen <vinschen@redhat.com>
12055
12056 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
12057 comma.
12058 (sh_sh4al_dsp_register_name): Ditto.
12059
12060 2004-02-10 Andrew Cagney <cagney@redhat.com>
12061
12062 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
12063 (mips_init_frame_pc_first): Delete function.
12064 (mips_frame_saved_pc): Delete function.
12065 (mips_frame_chain): Delete function.
12066 (mips_init_extra_frame_info): Delete function.
12067 (mips_xfer_register): Delete unused variable "reg".
12068 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
12069 (mips_n32n64_return_value): Delete unused variable "reg".
12070 (mips_n32n64_return_value): Delete unused variable "pos".
12071 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
12072 (mips_o32_return_value): Delete unused variable "pos".
12073 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
12074 (mips_print_fp_register): Delete unused variable "namelen"
12075 (mips_print_fp_register): Delete unused variable "flt2"
12076 (get_frame_pointer): Delete function.
12077 (cached_proc_desc): Delete static variable.
12078 (mips_pop_frame): Delete function.
12079 (mips_find_saved_regs): Delete function.
12080 (mips_get_saved_register): Delete function.
12081 (mips_saved_pc_after_call): Delete function.
12082 (SIGFRAME_BASE): Delete macro.
12083 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
12084 (SIGFRAME_PC_OFF): Delete macro.
12085 (SIGFRAME_REGSAVE_OFF): Delete macro.
12086 (mips_dump_tdep): Do not print deleted macro definitions.
12087
12088 2004-02-10 Andrew Cagney <cagney@redhat.com>
12089
12090 * Makefile.in (SFILES): Remove explictly listed tui files.
12091 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
12092
12093 2004-02-10 Jeff Johnston <jjohnstn@redhat.com>
12094
12095 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
12096 to use paddr functions to format ia64 addresses and long values.
12097 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
12098 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
12099 (get_kernel_table, ia64_find_proc_info_x): Ditto.
12100 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
12101 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
12102
12103 2004-02-10 Andrew Cagney <cagney@redhat.com>
12104
12105 * defs.h: Do not include "tui.h".
12106 * gdb_curses.h: New file.
12107 * tui/tui-hooks.h: New file.
12108 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
12109 (tui_install_hooks, tui_remove_hooks): Delete declarations.
12110 (tui_initialize_io): Delete declaration.
12111 (tui_initialize_readline: Delete redundant declaration.
12112 (struct tui_point): Delete definition.
12113 * tui/tui-data.h (struct tui_point): Define.
12114 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
12115 * utils.c: Include "tui/tui.h".
12116 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
12117 * printcmd.c [TUI]: Include "tui/tui.h".
12118 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
12119 * tui/tui-command.c: Include "gdb_curses.h".
12120 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
12121 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
12122 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
12123 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
12124 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
12125 * Makefile.in: Update all dependencies.
12126 (tui_hooks_h, gdb_curses_h): Define.
12127 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
12128
12129 2004-02-10 Elena Zannoni <ezannoni@redhat.com>
12130
12131 * objfiles.h (struct objfile): Remove unused fields auxf1 and
12132 auxf2. Add comments about some other rarely used fields.
12133
12134 2004-02-10 Andrew Cagney <cagney@redhat.com>
12135
12136 * Makefile.in (init.c): Fix script removing duplicates. Problem
12137 reported by Peter Schauer.
12138
12139 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
12140
12141 * bcache.c (bcache_xmalloc): Use obstack_init instead of
12142 obstack_specify_allocation.
12143 * objfiles.c (allocate_objfile): Ditto.
12144 * solib-sunos.c (solib_add_common_symbols)
12145 (allocate_rt_common_objfile): Ditto.
12146 * symfile.c (reread_symbols): Ditto.
12147 * gdb_obstack.h: Add comment.
12148
12149 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
12150
12151 * linespec.c (decode_line_1, locate_first_half)
12152 (decode_compound, lookup_prefix_sym): Update comments. Delete old
12153 commented out code.
12154
12155 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
12156
12157 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
12158 obstack_free.
12159
12160 2004-02-09 Andrew Cagney <cagney@redhat.com>
12161
12162 * blockframe.c (find_pc_partial_function): If find_pc_overlay
12163 fails, try find_pc_section. Fix PR c++/1267.
12164 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
12165 instead of find_pc_mapped_section.
12166 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
12167 not default to the section containing PC. Fix PR symtab/1519.
12168
12169 2004-02-09 Andrew Cagney <cagney@redhat.com>
12170
12171 * Makefile.in (mips-tdep.o): Update dependencies.
12172 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
12173 "trad-frame.h".
12174 (mips_unwind_pc): Return the pseudo PC register.
12175 (mips_unwind_dummy_id): New function.
12176 (mips16_fetch_instruction): New function.
12177 (mips32_fetch_instruction): New function.
12178 (struct mips_frame_cache): Define.
12179 (mips_mdebug_frame_cache): New function.
12180 (mips_mdebug_frame_this_id): New function.
12181 (mips_mdebug_frame_prev_register): New function.
12182 (mips_mdebug_frame_unwind): Define.
12183 (mips_mdebug_frame_sniffer): New function.
12184 (mips_mdebug_frame_base_address): New function.
12185 (mips_mdebug_frame_base): Define.
12186 (mips_mdebug_frame_base_sniffer): New function.
12187 (mips_gdbarch_init): Append unwind and base sniffers. Set
12188 unwind_dummy_id.
12189
12190 2004-02-08 Andrew Cagney <cagney@redhat.com>
12191
12192 * frame.c: Print both the register number and name.
12193
12194 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
12195 and a sed into a single sed. Make .c and .o patterns more robust.
12196 (OBS): Delete.
12197 (INIT_FILES): Replace OBS with COMMON_OBS.
12198 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
12199
12200 2004-02-08 Mark Kettenis <kettenis@gnu.org>
12201
12202 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
12203 the PT_WCOOKIE request.
12204
12205 2004-02-08 Andrew Cagney <cagney@redhat.com>
12206
12207 * mips-tdep.c (mips_unwind_pc): New function.
12208 (mips_gdbarch_init): Set mips_unwind_pc.
12209
12210 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
12211 (get_frame_id): Allow the UNKNOWN_FRAME.
12212 (frame_register_unwind, get_frame_type): Ditto.
12213
12214 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
12215 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
12216 unwind_dummy_id indicates a legacy frame.
12217
12218 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
12219 * configure: Re-generate.
12220
12221 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
12222 methods.
12223
12224 2004-02-08 Andrew Cagney <cagney@redhat.com>
12225
12226 * configure.in (CONFIG_ALL): Set to Makefile target, and not
12227 makefile macro.
12228 * configure: Re-generate.
12229 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
12230 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
12231 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
12232 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
12233 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
12234 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
12235 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
12236 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
12237 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
12238 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
12239
12240 2004-02-07 Andrew Cagney <cagney@redhat.com>
12241
12242 * Makefile.in: Update all dependencies.
12243
12244 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
12245 * configure: Re-generate.
12246 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
12247 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
12248 (COMMON_OBS): Add "main.o" and "annotate.o".
12249 (ANNOTATE_OBS): Delete.
12250 (OBS): Remove ANNOTATE_OBS.
12251 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
12252 CONFIG_INITS.
12253 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
12254 against CONFIG_OBS and "main.o".
12255 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
12256 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
12257
12258 * tui/tui-command.c: Include "gdb_string.h", delete register
12259 attribute, use ISO-C function signatures.
12260 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
12261 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
12262 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
12263 * tui/tui.c: Ditto.
12264
12265 * tui/tui-command.c: Change variable and function names to lower
12266 case.
12267 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
12268 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
12269 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
12270 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12271 * tui/tui-winsource.c, tui/tui.c: Ditto.
12272
12273 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
12274
12275 * buildsym.c (free_pending_blocks, finish_block)
12276 (record_pending_block, make_blockvector, end_symtab): Replace
12277 symbol_obstack with objfile_obstack.
12278 * coffread.c (process_coff_symbol, coff_read_struct_type)
12279 (coff_read_enum_type): Ditto.
12280 * cp-namespace.c (initialize_namespace_symtab)
12281 (check_one_possible_namespace_symbol): Ditto.
12282 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
12283 (dwarf2_symbol_mark_computed): Ditto.
12284 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
12285 * elfread.c (elf_symtab_read): Ditto.
12286 * hpread.c (hpread_symfile_init, hpread_symfile_init)
12287 (hpread_read_enum_type, hpread_read_function_type)
12288 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
12289 Ditto.
12290 * jv-lang.c (get_java_class_symtab, add_class_symbol)
12291 (java_link_class_type): Ditto.
12292 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
12293 (new_symbol): Ditto.
12294 * minsyms.c (install_minimal_symbols): Ditto.
12295 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
12296 (terminate_minimal_symbol_table): Replace symbol_obstack with
12297 objfile_obstack.
12298 (free_objfile): Remove freeing of symbol_obstack.
12299 * objfiles.h: Remove symbol_obstack field.
12300 * pa64solib.c (add_to_solist): Replace symbol_obstack with
12301 objfile_obstack.
12302 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
12303 symbol_obstack.
12304 (solib_add_common_symbols): Replace symbol_obstack with
12305 objfile_obstack.
12306 * somsolib.c (som_solib_add): Ditto.
12307 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
12308 (common_block_start, common_block_end): Ditto.
12309 * symfile.c (reread_symbols): Remove freeing and init of
12310 symbol_obstack.
12311 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
12312 * symfile.h: Update comment.
12313 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
12314 stats printing.
12315 * symtab.c (symbol_set_names): Replace symbol_obstack with
12316 objfile_obstack.
12317 * symtab.h (struct general_symbol_info, struct minimal_symbol):
12318 Update comments.
12319 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
12320 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
12321 objfile_obstack.
12322
12323 2004-02-07 Andrew Cagney <cagney@redhat.com>
12324
12325 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
12326 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
12327 fields and variables.
12328 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
12329 (m_beInvisible): Delete macro.
12330 * tui/tui-data.h: Fix case case fields and variables.
12331 (m_genWinPtrIsNull): Delete macro.
12332 (tui_win_list): Rename winList.
12333 (TUI_SRC_WIN): Rename srcWin.
12334 (TUI_DISASM_WIN): Rename disassemWin.
12335 (TUI_DATA_WIN): Rename dataWin.
12336 (TUI_CMD_WIN): Rename cmdWin.
12337 (m_genWinPtrNotNull): Delete macro.
12338 (m_winPtrIsNull): Delete macro.
12339 (m_winPtrNotNull): Delete macro.
12340 (tui_win_is_source_type): Replace m_winIsSourceType
12341 (tui_win_is_auxillary): Replace m_winIsAuzillary.
12342 (tui_win_has_locator): Replace m_hasLocator.
12343 (tui_set_win_highlight): Replace m_setWinHighlightOn and
12344 m_setWinHighlightOff.
12345 * tui/tui-data.c: Update references.
12346 (tui_win_is_source_type, tui_set_win_highlight): New functions.
12347 (tui_win_has_locator, tui_win_is_auxillary): New functions.
12348 * tui/tui-command.c, tui/tui-disasm.c: Update references.
12349 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
12350 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
12351 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12352 * tui/tui-winsource.c, tui/tui.c: Ditto.
12353
12354 2004-02-07 Mark Kettenis <kettenis@gnu.org>
12355
12356 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
12357 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
12358 StackGhost.
12359
12360 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
12361 variable `i6' to `i7'.
12362 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
12363
12364 2004-02-07 Andrew Cagney <cagney@redhat.com>
12365
12366 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
12367 (TuiPoint, TuiPointPtr): Ditto.
12368 (TuiStatus, TuiStatusPtr): Ditto.
12369 (TuiWinType, TuiWinTypePtr): Ditto.
12370 (struct tui_point): Rename _TuiPoint.
12371 (tui_get_low_disassembly_address): Rename
12372 tuiGetLowDisassemblyAddress.
12373 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
12374 (tuiFree): Delete declaration.
12375 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
12376 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
12377 * tui/tui.c (tuiFree): Delete function.
12378 * cli/cli-cmds.c (disassemble_command): Update references.
12379 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
12380 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
12381 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
12382 * tui/tui-winsource.c: Ditto.
12383
12384 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
12385
12386 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
12387 coffstab_build_psymtabs, elfstab_build_psymtabs)
12388 (stabsect_build_psymtabs): Replace psymbol_obstack with
12389 objfile_obstack.
12390 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
12391 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
12392 Ditto.
12393 * dwarfread.c (scan_compilation_units): Ditto.
12394 * elfread.c (elfstab_offset_sections): Ditto.
12395 * hppa-tdep.c (read_unwind_info): Ditto.
12396 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
12397 (hpread_end_psymtab): Ditto.
12398 * mdebugread.c (mdebug_build_psymtabs, add_pending)
12399 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
12400 Ditto.
12401 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
12402 * objfiles.c (add_to_objfile_sections)
12403 (build_objfile_section_table): Ditto.
12404 (allocate_objfile): Remove init of psymbol_obstack.
12405 (free_objfile): Remove freeing of psymbol_obstack.
12406 * objfiles.h (struct objfile): Remove field
12407 psymbol_obstack. Update comments.
12408 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
12409 psymbol_obstack with objfile_obstack.
12410 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
12411 psymbol_obstack.
12412 * somread.c (som_symfile_offsets, init_import_symbols)
12413 (init_export_symbols): Replace psymbol_obstack with
12414 objfile_obstack.
12415 * somsolib.c (som_solib_add_solib_objfile): Ditto.
12416 * symfile.c (default_symfile_offsets, syms_from_objfile)
12417 (reread_symbols): Remove freeing and init of psymbol_obstack.
12418 (cashier_psymtab): Update comment.
12419 * symmisc.c (print_objfile_statistics): Don't report stats for
12420 psymbol obstack.
12421 * symtab.h (struct general_symbol_info, struct partial_symtab):
12422 Update comments.
12423 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
12424 (xcoff_symfile_offsets): Replace psymbol_obstack with
12425 objfile_obstack.
12426
12427 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
12428
12429 * objfiles.h (struct objfile): Add objfile_obstack field.
12430 Remove type_obstack field.
12431
12432 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
12433 read_structure_scope read_enumeration, new_symbol): Replace
12434 type_obstack with objfile_obstack.
12435 * dwarfread.c (struct_type, enum_type): Ditto.
12436 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
12437 (lookup_fundamental_type): Ditto.
12438 * gdbtypes.h (TYPE_ALLOC): Ditto.
12439 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
12440 (hpread_read_doc_function_type, hpread_read_struct_type)
12441 (fix_static_member_physnames, hpread_read_array_type)
12442 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
12443 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
12444 (java_link_class_type): Ditto.
12445 * mdebugread.c (parse_type): Ditto.
12446 * objfiles.c (allocate_objfile, free_objfile): Ditto.
12447 * solib-sunos.c (solib_add_common_symbols): Ditto.
12448 * stabsread.c (define_symbol, read_type, read_member_functions,
12449 read_cpp_abbrev, read_one_struct_field): Ditto.
12450 * symfile.c (reread_symbols): Ditto.
12451 * symmisc.c (print_objfile_statistics): Ditto.
12452
12453 2004-02-07 Andrew Cagney <cagney@redhat.com>
12454
12455 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
12456 (tui_exec_info_content): Rename TuiExecInfoContent.
12457 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
12458 (TuiWinInfo, TuiWinInfoPtr): Ditto.
12459 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
12460 (TuiList, TuiListPtr): Ditto.
12461 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
12462 (TuiDataType, TuiDataTypePtr): Ditto.
12463 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
12464 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
12465 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
12466 (TuiSourceElement, TuiSourceElementPtr): Ditto.
12467 (TuiDataElement, TuiDataElementPtr): Ditto.
12468 (TuiWinElement, TuiWinElementPtr): Ditto.
12469 (TuiDataInfo, TuiDataInfoPtr): Ditto.
12470 (TuiCommandElement, TuiCommandElementPtr): Ditto.
12471 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
12472 (TuiWhichElement, TuiWhichElementPtr): Ditto.
12473 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
12474 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
12475 * tui/tui-command.c, tui/tui-data.c: Update references.
12476 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
12477 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
12478 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12479 * tui/tui-winsource.c, tui/tui.c: Ditto.
12480
12481 2004-02-07 Mark Kettenis <kettenis@gnu.org>
12482
12483 * dwarf2-frame.h: Update copyright.
12484 (enum dwarf2_frame_reg_rule): New.
12485 (struct dwarf2_frame_state_reg): New.
12486 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
12487 * dwarf2-frame.c: Update copyright.
12488 (enum dwarf2_reg_rule): Remove.
12489 (struct dwarf2_frame_state): Remove defenition of `struct
12490 dwarf2_frame_state_reg'.
12491 (read_reg): Call get_frame_arch to get the architecture instead of
12492 using CURRENT_GDBARCH.
12493 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
12494 DWARF2_FRAME_.
12495 (dwarf2_frame_init_reg): New function.
12496 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
12497 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
12498 initialize the register state. Prefix old `enum dwarf2_reg_rule'
12499 tags with DWARF2_FRAME_.
12500 (dwarf2_frame_prev_register): Call get_frame_arch to get the
12501 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
12502 dwarf2_reg_rule' tags with DWARF2_FRAME_.
12503
12504 2004-02-06 Andrew Cagney <cagney@redhat.com>
12505
12506 * tui/tui-data.h (struct tui_list): Rename _TuiList.
12507 (enum tui_data_type): Rename _TuiDataType.
12508 (struct tui_layout_def): Rename _TuiLayoutDef.
12509 (struct tui_source_element): Rename _TuiSourceElement.
12510 (struct tui_data_element): Rename _TuiDataElement.
12511 (struct tui_command_element): Rename _TuiCommandElement.
12512 (struct tui_locator_element): Rename _TuiLocatorElement.
12513 (union tui_which_element): Define.
12514 (struct tui_win_element): Rename _TuiWinElement.
12515 (struct tui_data_info): Rename _TuiDataInfo.
12516 (struct tui_source_info): Rename _TuiSourceInfo.
12517 (struct tui_command_info): Rename _TuiCommandInfo.
12518 (tui_initialize_static_data): Rename initializeStaticData.
12519 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
12520 (tui_alloc_win_info): Rename allocWinInfo.
12521 (tui_init_generic_part): Rename initGenericPart.
12522 (tui_init_win_info): Rename initWinInfo.
12523 (tui_alloc_content): Rename allocContent.
12524 (tui_add_content_elements): Rename addContentElements.
12525 (tui_init_content_element): Rename initContentElement.
12526 (tui_free_window): Rename freeWindow.
12527 (tui_free_win_content): Rename freeWinContent.
12528 (tui_free_data_content): Rename freeDataContent.
12529 (tui_free_all_source_wins_content): Rename
12530 freeAllSourceWinsContent.
12531 (tui_del_window): Rename tuiDelWindow.
12532 (tui_del_data_windows): Rename tuiDelDataWindows.
12533 (tui_partial_win_by_name): Rename partialWinByName.
12534 (tui_win_name): Rename winName.
12535 (tui_current_layout): Rename currentLayout.
12536 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
12537 (tui_term_height): Rename termHeight.
12538 (tui_set_term_height_to): Rename setTermHeightTo.
12539 (tui_term_width): Rename termWidth.
12540 (tui_set_term_width_to): Rename setTermWidthTo.
12541 (tui_set_gen_win_origin): Rename setGenWinOrigin.
12542 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
12543 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
12544 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
12545 (tui_source_windows): Rename sourceWindows.
12546 (tui_clear_source_windows): Rename clearSourceWindows.
12547 (tui_clear_source_windows_detail): Rename
12548 clearSourceWindowsDetail.
12549 (tui_clear_win_detail): Rename clearWinDetail.
12550 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
12551 (tui_default_tab_len): Rename tuiDefaultTabLen.
12552 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
12553 (tui_win_with_focus): Rename tuiWinWithFocus.
12554 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
12555 (tui_layout_def): Rename tuiLayoutDef.
12556 (tui_win_resized): Rename tuiWinResized.
12557 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
12558 (tui_next_win): Rename tuiNextWin.
12559 (tui_prev_win): Rename tuiPrevWin.
12560 (tui_add_to_source_windows): Rename addToSourceWindows.
12561 * tui/tui-winsource.c, tui/tui-win.c: Update references.
12562 * tui/tui-layout.c, tui/tui-source.c: Ditto.
12563 * tui/tui-stack.c, tui/tui-io.c: Ditto.
12564 * tui/tui.c, tui/tui-data.c: Ditto.
12565 * tui/tui-interp.c, tui/tui-data.c: Ditto.
12566 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
12567
12568 * tui/tui-source.h: Update copyright. Include "tui-data.h".
12569 (struct symtab): Declare.
12570 (tui_set_source_content): Rename tuiSetSourceContent.
12571 (tui_show_symtab_source): Rename tuiShowSource.
12572 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
12573 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
12574 * tui/tui-source.c: Update copyright. Update references.
12575 * tui/tui-win.c, tui/tui-winsource.c: Update references.
12576 * tui/tui-stack.c: Update references.
12577
12578 * tui/tui-win.h: Update copyright. Include "tui-data.h".
12579 (struct tui_win_info): Declare.
12580 (tui_scroll_forward): Rename tuiScrollForward.
12581 (tui_scroll_backward): Rename tuiScrollBackward.
12582 (tui_scroll_left): Rename tuiScrollLeft.
12583 (tui_scroll_right): Rename tuiScrollRight.
12584 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
12585 (tui_resize_all): Rename tuiResizeAll.
12586 (tui_refresh_all_win): Rename tuiRefreshAll.
12587 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
12588 * tui/tui-layout.c, * tui/tui-io.c: Update references.
12589 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
12590 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
12591
12592 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
12593 (tui_erase_data_content): Rename tuiEraseDataContent.
12594 (tui_display_all_data): Rename tuiDisplayAllData.
12595 (tui_check_data_values): Rename tuiCheckDataValues.
12596 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
12597 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
12598 (tui_first_data_element_no_in_line): Rename
12599 tuiFirstDataElementNoInLine.
12600 (tui_delete_data_content_windows): Rename
12601 tuiDeleteDataContentWindows.
12602 (tui_refresh_data_win): Rename tuiRefreshDataWin.
12603 (tui_display_data_from): Rename tuiDisplayDataFrom.
12604 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
12605 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
12606 * tui/tui-win.c, tui/tui-regs.c: Update references.
12607 * tui/tui-layout.c, tui/tui.c: Update references.
12608
12609 * tui/tui-wingeneral.h: Update copyright.
12610 (m_allBeVisible): Delete macro.
12611 (m_allBeInvisible): Delete macro.
12612 (struct tui_gen_win_info): Declare.
12613 (struct tui_win_info): Declare.
12614 (tui_unhighlight_win): Rename unhighlightWin.
12615 (tui_make_visible, tui_make_invisible): Replace makeVisible.
12616 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
12617 (tui_make_window): Rename makeWindow.
12618 (tui_copy_win): Rename copyWin.
12619 (tui_box_win): Rename boxWin.
12620 (tui_highlight_win): Rename highlightWin.
12621 (tui_check_and_display_highlight_if_needed): Rename
12622 checkAndDisplayHighlightIfNeeded.
12623 (tui_refresh_all): Rename refreshAll.
12624 (tui_delete_win): Rename tuiDelwin.
12625 (tui_refresh_win): Rename tuiRefreshWin.
12626 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
12627 (tui_make_visible, tui_make_invisible): New functions.
12628 (tui_make_all_visible, tui_make_all_invisible): New functions.
12629 (make_all_visible): Rename makeAllVisible.
12630 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
12631 * tui/tui-data.c, tui/tui-winsource.c: Update references.
12632 * tui/tui-windata.c, tui/tui-win.c: Update references.
12633 * tui/tui-regs.c, tui/tui-layout.c: Update references.
12634 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
12635
12636 2004-02-06 Mark Kettenis <kettenis@gnu.org>
12637
12638 * proc-api.c (write_with_trace): Initialize local variable to
12639 silence compiler warning.
12640
12641 2004-02-06 Andrew Cagney <cagney@redhat.com>
12642
12643 * tui/tui-source.h: Do not include "defs.h".
12644 (struct tui_win_info): Declare.
12645 (tui_set_source_content_nil): Declare.
12646 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
12647 (union tui_line_or_address): Rename _TuiLineOrAddress.
12648 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
12649 (tui_update_source_window): Rename tuiUpdateSourceWindow.
12650 (tui_update_source_window_as_is): Rename
12651 tuiUpdateSourceWindowAsIs.
12652 (tui_update_source_windows_with_addr): Rename
12653 tuiUpdateSourceWindowsWithAddr.
12654 (tui_update_source_windows_with_line): Rename
12655 tuiUpdateSourceWindowsWithLine.
12656 (tui_clear_source_content): Rename tuiClearSourceContent.
12657 (tui_erase_source_content): Rename tuiEraseSourceContent.
12658 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
12659 (tui_show_source_content): Rename tuiShowSourceContent.
12660 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
12661 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
12662 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
12663 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
12664 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
12665 (tui_update_exec_info): Rename tuiUpdateExecInfo.
12666 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
12667 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
12668 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
12669 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
12670 (struct tui_win_info): Declare.
12671 * tui/tui-stack.c: Update references.
12672 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
12673 * tui/tui-win.c, tui/tui-source.c: Ditto.
12674 * tui/tui.c, tui/tui-disasm.c: Ditto.
12675
12676 2004-02-06 Mark Kettenis <kettenis@gnu.org>
12677
12678 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
12679 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
12680
12681 2004-02-05 Mark Kettenis <kettenis@gnu.org>
12682
12683 * infrun.c (handle_inferior_event): Allow for breakpoint
12684 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
12685 and SIGEMT. Update comments.
12686 * NEWS (Revised SPARC target): Mention support for non-executable
12687 stack.
12688
12689 2004-02-04 Mark Kettenis <kettenis@gnu.org>
12690
12691 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
12692 * inftarg.c: Update copyright year.
12693 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
12694 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
12695 (sparc_xfer_wcookie): New function.
12696 * sparc-tdep.c (sparc_fetch_wcookie): New function.
12697 * Makefile.in (sparc-nat.o): Update dependencies.
12698 * config/sparc/nm-nbsd.h: Include "target.h".
12699 (NATIVE_XFER_WCOOKIE): New define.
12700 (sparc_xfer_wcookie): New prototype.
12701
12702 2004-02-04 Andrew Cagney <cagney@redhat.com>
12703
12704 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
12705 SYSCALL_TRAP function.
12706 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
12707
12708 2004-02-04 Andrew Cagney <cagney@redhat.com>
12709 Daniel Jacobowitz <drow@mvista.com>
12710
12711 * objfiles.h: Delete comments refering to inside_entry_func and
12712 DEPRECATED_FRAME_CHAIN_VALID.
12713 * defs.h (inside_entry_func): Update prototype..
12714 * blockframe.c (inside_entry_func): Rename to
12715 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
12716 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
12717
12718 2004-02-03 Jeff Johnston <jjohnstn@redhat.com>
12719
12720 * breakpoint.c (struct captured_parse_breakpoint_args): Move
12721 outside of #ifdef SOLIB_ADD region.
12722 (do_restore_lang_radix_cleanup): Ditto.
12723 (resolve_pending_breakpoint): Ditto.
12724
12725 2004-02-03 Andrew Cagney <cagney@redhat.com>
12726
12727 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
12728 (process_note_abi_tag_sections): Delete unused function.
12729 (ia64_read_fp): Delete unused function.
12730 (gdbarch_extract_struct_value_address): Delete declaration.
12731
12732 2004-02-02 Andrew Cagney <cagney@redhat.com>
12733
12734 * vax-tdep.c (vax_frame_chain): Delete call to
12735 deprecated_inside_entry_file.
12736 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
12737
12738 2004-02-02 Mark Kettenis <kettenis@gnu.org>
12739
12740 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
12741 column that's "empty" or "same value" when eliminating REG_RA
12742 rules.
12743
12744 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
12745
12746 * NEWS: Add information about new pending breakpoint support.
12747
12748 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
12749
12750 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
12751 and pending fields for pending breakpoint support.
12752 * breakpoint.c (breakpoint_enabled): Add check for not pending.
12753 (condition_command): Only parse condition if not a pending
12754 breakpoint.
12755 (print_one_breakpoint): Add support for pending breakpoints.
12756 (describe_other_breakpoints): Add checks to verify we are not
12757 dealing with pending breakpoints.
12758 (check_duplicates): Don't check pending breakpoints.
12759 (set_raw_breakpoint): Initialize pending flag.
12760 (do_restore_lang_radix_cleanup): New cleanup routine.
12761 (resolve_pending_breakpoint): New function.
12762 (re_enable_breakpoints_in_shlibs): Try and resolve any
12763 pending breakpoints via resolve_pending_breakpoint.
12764 (mention): Add pending breakpoint support.
12765 (parse_breakpoint_sals): Add new parameter to pass to
12766 decode_line_1 to indicate silent errors when files or functions
12767 are not found. Change all callers.
12768 (do_captured_parse_breakpoint): New function.
12769 (break_command_1): Change prototype to return an rc value and to
12770 take an optional pending breakpoint pointer. Support creating
12771 a pending breakpoint if a "not found" form of error occurs when
12772 parsing the breakpoint. Also support resolving an existing pending
12773 breakpoint and be silent if the resolution fails.
12774 (create_breakpoints): Change prototype to take pending breakpoint
12775 pointer. When resolving a pending breakpoint, use the new pointer
12776 to provide a conditional or commands added by the end-user.
12777 (delete_breakpoint): Add appropriate check for pending.
12778 (breakpoint_re_set_one): Ditto.
12779 (do_enable_breakpoint): Ditto.
12780
12781 2004-02-02 David Carlton <carlton@kealia.com>
12782
12783 * valops.c (enum oload_classification): New.
12784 (find_overload_match): Break implementation into separate
12785 functions; delete #if 0'd code; look for symbols within
12786 namespaces.
12787 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
12788 (find_oload_champ,oload_method_static,classify_oload_match): New.
12789 * cp-support.h: Add declaration for cp_func_name; update
12790 declaration for make_symbol_overload_list.
12791 * cp-support.c (cp_func_name): New.
12792 (overload_list_add_symbol): Fix comment, use
12793 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
12794 (make_symbol_overload_list): Take a function name and a namespace
12795 instead of a symbol; change implementation.
12796 (make_symbol_overload_list_using): New.
12797 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
12798
12799 2004-02-02 Fred Fish <fnf@redhat.com>
12800
12801 * main.c (gdb_stdtarg): Move definition to group with other
12802 gdb_stdtarg definitions and update copyright years.
12803 * remote-sim.c (gdb_os_write_stderr): Write output to
12804 gdb_stdtargerr stream instead of gdb_stdtarg stream.
12805 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
12806 gdb_stderr stream and update copyright years.
12807
12808 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
12809
12810 * Makefile.in (mips-linux-nat.o): Update dependencies.
12811 * mips-linux-nat.c: Include mips-tdep.h.
12812
12813 2004-02-01 Roland McGrath <roland@redhat.com>
12814
12815 * sol-thread.c (sol_thread_xfer_partial): New function.
12816 (init_sol_thread_ops): Use that for to_xfer_partial hook.
12817 (init_sol_core_ops): Likewise.
12818
12819 * procfs.c (procfs_xfer_partial): New function.
12820 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
12821 * Makefile.in (procfs.o): Add $(auxv_h) dep.
12822
12823 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
12824 procfs_xfer_auxv function.
12825
12826 * procfs.c (procfs_make_note_section): If we can read
12827 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
12828 * linux-proc.c (linux_make_note_section): Likewise.
12829
12830 * auxv.h: New file.
12831 * auxv.c: New file.
12832 * Makefile.in (auxv_h): New variable.
12833 (COMMON_OBS): Add auxv.o here.
12834 (auxv.o): New target.
12835
12836 * corelow.c (core_xfer_partial): New function.
12837 (init_core_ops): Use it for core_ops.to_xfer_partial.
12838
12839 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
12840 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
12841 macro if that is defined.
12842
12843 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
12844
12845 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
12846 and check the specified thread for each breakpoint.
12847 * breakpoint.h (bpstat_stop_status): Update prototype.
12848 * infrun.c (handle_inferior_event): Update calls to
12849 bpstat_stop_status.
12850
12851 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
12852
12853 * Makefile.in (cli-cmds.o): Add $(readline_h).
12854
12855 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
12856
12857 * cli/cli-cmds.c: Include readline.h.
12858 (complete_command): Pass the start of the last word to
12859 complete_line.
12860
12861 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
12862
12863 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
12864 argument, and change first argument to a CORE_ADDR.
12865 * breakpoint.h (bpstat_stop_status): Update prototype.
12866 * infrun.c (adjust_pc_after_break): Add a new comment.
12867 (handle_inferior_event): Update calls to bpstat_stop_status.
12868
12869 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
12870
12871 * breakpoint.h: Update copyright years.
12872
12873 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
12874
12875 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
12876 (bpstat_stop_status): Don't decrement PC.
12877 * breakpoint.h (software_breakpoint_inserted_here_p): Add
12878 prototype.
12879 * infrun.c (adjust_pc_after_break): New function.
12880 (handle_inferior_event): Call it, early. Remove later references
12881 to DECR_PC_AFTER_BREAK.
12882 (normal_stop): Add commentary.
12883
12884 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
12885
12886 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
12887 2004-01-27 double-free fix.
12888
12889 2004-01-31 Mark Kettenis <kettenis@gnu.org>
12890
12891 * sparc-tdep.c (sparc_fetch_wcookie): New function.
12892 (sparc32_frame_prev_register): Handle StackGhost.
12893 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
12894
12895 2004-01-29 Roland McGrath <roland@redhat.com>
12896
12897 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
12898 * configure: Regenerated.
12899
12900 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
12901 * Makefile.in (procfs.o): Add dep.
12902
12903 2004-01-28 Andrew Cagney <cagney@redhat.com>
12904
12905 * tui/tui-stack.h: Update copyright.
12906 (struct frame_info): Add opaque declaration.
12907 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
12908 (tui_show_locator_content): Rename tuiShowLocatorContent.
12909 (tui_show_frame_info): Rename tuiShowFrameInfo.
12910 * tui/tui-stack.c: Update copyright. Update references.
12911 * tui/tui-winsource.c: Update references.
12912 * tui/tui-win.c: Update references.
12913 * tui/tui-layout.c: Update references.
12914 * tui/tui-hooks.c: Update copyright, update references.
12915 * tui/tui.c: Update copyright, update references.
12916 * tui/tui-disasm.c: Update references.
12917
12918 2004-01-28 David Carlton <carlton@kealia.com>
12919
12920 * dwarf2read.c (add_partial_structure): Use demangled name if
12921 namespace equals "".
12922
12923 2004-01-27 Jim Blandy <jimb@redhat.com>
12924
12925 Clean up misapplied patch:
12926 * dwarf2read.c (determine_prefix): Change one of the two forward
12927 declarations for 'determine_prefix_aux' to a declaration for this.
12928 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
12929 argument to 'die_specification'.
12930
12931 * dwarf2read.c (read_func_scope): Re-indent comment.
12932
12933 2004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
12934
12935 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
12936 b->exp to NULL after freeing so that error during re-parsing or
12937 evaluation of expressions associated with breakpoint don't
12938 eventually lead to re-freeing of storage.
12939 Committed by Andrew Cagney.
12940
12941 2004-01-27 Andrew Cagney <cagney@redhat.com>
12942
12943 * source.c (ambiguous_line_spec): Delete undefined declaration.
12944 * m32r-rom.c (m32r_set_board_address): Delete unused function.
12945 (m32r_set_server_address, m32r_set_download_path): Ditto.
12946 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
12947
12948 2004-01-27 Daniel Jacobowitz <drow@mvista.com>
12949
12950 * dwarf2read.c: Update calls to changed and renamed functions, and
12951 references to moved variables.
12952
12953 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
12954 language, language_defn, list_in_scope, and ftypes members.
12955 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
12956 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
12957 (baseaddr): Remove globals.
12958
12959 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
12960 (set_cu_language, die_is_declaration, die_specification)
12961 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
12962 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
12963 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
12964 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
12965
12966 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
12967 cu.list_in_scope. Don't initialize cu_header_offset.
12968 (add_partial_symbol): Add local baseaddr.
12969 (psymtab_to_symtab_1): Add local baseaddr. Use
12970 objfile->section_offsets for consistency. Don't initialize
12971 cu_header_offset; do initialize cu.header.offset and
12972 cu.list_in_scope.
12973 (read_file_scope, read_func_scope, read_lexical_block_scope)
12974 (dwarf_decode_lines, new_symbol): Add local baseaddr.
12975
12976 2004-01-27 Michael Chastain <mec.gnu@mindspring.com>
12977
12978 * PROBLEMS: Add gdb/1516.
12979
12980 2003-12-29 Robert Millan <robertmh@gnu.org>
12981
12982 Patch committed by Andrw Cagney.
12983 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
12984 * configure.tgt: Match knetbsd*-gnu.
12985
12986 2004-01-26 Andrew Cagney <cagney@redhat.com>
12987
12988 * breakpoint.c (catch_command_1): Delete #ifdef code.
12989 (catch_fork_command_1): Delete #ifdef wrapper.
12990 (catch_exec_command_1): Ditto.
12991 (catch_load_command_1): Ditto.
12992 (catch_unload_command_1): Ditto.
12993
12994 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
12995 (catch_breakpoint): Delete #if0ed function.
12996 (disable_catch_breakpoint): Ditto.
12997 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
12998 (disable_catch, enable_catch, delete_catch): Ditto.
12999
13000 2004-01-26 Andrew Cagney <cagney@redhat.com>
13001
13002 * remote.c (echo_check, quit_flag): Delete variables.
13003 (cisco_kernel_mode): Delete variable.
13004 (minitelnet_return, tty_input, escape_count): Delete variables.
13005 (remote_cisco_mode): Delete variable.
13006 (remote_cisco_open, remote_cisco_close): Delete function.
13007 (remote_cisco_mourn, remote_cisco_wait): Delete function.
13008 (init_remote_cisco_ops): Delete function.
13009 (_initialize_remote): Do not install "remote cisco" code.
13010 (read_frame): Delete cisco specific code.
13011 (remote_info_process): Delete function.
13012 (remote_wait): Delete cisco specific code.
13013 (remote_cisco_section_offsets): Delete function.
13014 (remote_cisco_objfile_relocate): Delete function.
13015 (remote_async_wait): Delete cisco specific code.
13016 (minitelnet, readtty, readsocket): Delete function.
13017
13018 2004-01-26 Andrew Cagney <cagney@redhat.com>
13019
13020 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
13021 comments mentioning extract_returned_value_address.
13022 * infcmd.c (print_return_value): Update. Add comments on
13023 extract_returned_value_address.
13024 * stack.c (return_command): Add comments on
13025 extract_returned_value_address.
13026 * values.c: Update comment.
13027 * m32r-tdep.c: Update comment.
13028 * sparc-tdep.c: Update comment.
13029 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
13030 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
13031 * sh64-tdep.c (sh64_gdbarch_init): Update.
13032 * sh-tdep.c (sh_gdbarch_init): Update.
13033 * s390-tdep.c (s390_gdbarch_init): Update.
13034 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
13035 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
13036 * m68k-tdep.c (m68k_gdbarch_init): Update.
13037 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
13038 * m32r-tdep.c (m32r_gdbarch_init): Update.
13039 * ia64-tdep.c (ia64_gdbarch_init): Update.
13040 * h8300-tdep.c (h8300_gdbarch_init): Update.
13041 * frv-tdep.c (frv_gdbarch_init): Update.
13042 * arm-tdep.c (arm_gdbarch_init): Update.
13043 * alpha-tdep.c (alpha_gdbarch_init): Update.
13044
13045 2004-01-26 Andrew Cagney <cagney@redhat.com>
13046
13047 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
13048 SYMBOL_LOCATION_FUNCS
13049 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
13050 "struct symbol_ops".
13051 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
13052 type to "struct symbol_ops".
13053 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
13054 (struct symbol): Replace ".aux_value.loc.funcs" and
13055 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
13056 (SYMBOL_OBJFILE): Delete macro.
13057 (SYMBOL_LOCATION_FUNCS): Delete macro.
13058 (SYMBOL_LOCATION_BATON): Update.
13059 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
13060 intead of SYMBOL_LOCATION_FUNCS.
13061 * ax-gdb.c (gen_var_ref): Ditto.
13062 * printcmd.c (address_info): Ditto.
13063 * findvar.c (read_var_value): Ditto.
13064 (symbol_read_needs_frame): Ditto.
13065
13066 2004-01-26 Andrew Cagney <cagney@redhat.com>
13067
13068 * dwarf2read.c (read_func_scope): Document frame-base hack.
13069
13070 2004-01-25 Mark Kettenis <kettenis@gnu.org>
13071
13072 * infcmd.c (print_return_value): Plug memory leak; delete
13073 ui_stream object. Rename argument `structure_return' to
13074 `struct_return'.
13075
13076 2004-01-25 Mark Kettenis <kettenis@gnu.org>
13077
13078 * infcmd.c (print_return_value): Wrap long lines.
13079 (finish_command_continuation, finish_command): Remove unused
13080 variable `funcaddr'. Fix some coding-standards problems.
13081
13082 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
13083 SECT_SIZE is large enough, not whether it's exactly the right size.
13084 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
13085 TDEP->fpregset to zero.
13086
13087 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
13088 floating-point registers for traditional NetBSD core files.
13089 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
13090 TDEP->sizeof_fpregset here.
13091
13092 2004-01-25 Mark Kettenis <kettenis@gnu.org>
13093
13094 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
13095 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
13096 function with code split out from
13097 sparc32nbsd_sigcontext_frame_cache.
13098 (sparc32nbsd_sigcontext_frame_cache): Use
13099 sparc32nbsd_sigcontext_saved_regs.
13100 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
13101 OpenBSD.
13102 * sparcobsd-tdep.c: New file.
13103 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
13104 (sparcobsd-tdep.o): New dependency.
13105 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
13106 * config/sparc/obsd.mt: New file.
13107
13108 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
13109 TDEP->fpregset to be initialized to enable core file register
13110 sets.
13111
13112 2004-01-24 Mark Kettenis <kettenis@gnu.org>
13113
13114 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
13115 Add opaque declarations.
13116 (sparc64nbsd_sigcontext_saved_regs): New prototype.
13117 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
13118 function with code split out from
13119 sparc64nbsd_sigcontext_frame_cache.
13120 (sparc64nbsd_sigcontext_frame_cache): Use
13121 sparc64nbsd_sigcontext_saved_regs.
13122 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
13123 OpenBSD.
13124 * sparc64obsd-tdep.c: New file.
13125 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
13126 (sparc64obsd-tdep.o): New dependency.
13127 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
13128 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
13129 * config/sparc/obsd64.mt: New file.
13130
13131 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
13132 read the instruction at PC.
13133
13134 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
13135 value of GDB_OSABI_DEFAULT.
13136 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
13137 instead of GDB_OSABI_NETBSD_AOUT.
13138
13139 2004-01-24 Nick Roberts <nick@nick.uklinux.net>
13140
13141 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
13142 copyright.
13143
13144 2004-01-23 Andrew Cagney <cagney@redhat.com>
13145
13146 * printcmd.c (display_command): Replace tui_set_display call with
13147 tui_set_layout_for_display_command.
13148 * tui/tui.h (enum tui_win_type): Define.
13149 (tui_set_layout): Delete declaration.
13150 (tui_set_layout_for_display_command): Rename set_tui_layout.
13151 * tui/tui-data.h (enum tui_layout_type): Define.
13152 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
13153 "tui.h".
13154 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
13155 (tui_default_win_height): Rename tuiDefaultWinHeight.
13156 (tui_default_win_viewport_height): Rename
13157 tuiDefaultWinViewportHeight.
13158 (tui_set_layout): RenametuiSetLayout.
13159 * tui/tui-layout.c: Update references.
13160 * tui/tui.c: Update references.
13161 * tui/tui-disasm.c: Update references.
13162
13163 2004-01-23 David Carlton <carlton@kealia.com>
13164
13165 Partial workaround for PR c++/1511:
13166 * cp-namespace.c: Include frame.h.
13167 (cp_lookup_transparent_type): New
13168 (cp_lookup_transparent_type_loop): New.
13169 * cp-support.h: Declare cp_lookup_transparent_type.
13170 * symtab.c (basic_lookup_transparent_type): Renamed from
13171 lookup_transparent_type.
13172 (lookup_transparent_type): Replace old body by a call to
13173 current_language->la_lookup_transparent_type.
13174 * symtab.h: Update copyright. Declare
13175 basic_lookup_transparent_type.
13176 * language.h: Update copyright.
13177 (struct language_defn): Add la_lookup_transparent_type.
13178 * language.c: Update copyright.
13179 (unknown_language_defn): Add basic_lookup_transparent_type.
13180 (auto_language_defn): Add basic_lookup_transparent_type.
13181 (local_language_defn): Add basic_lookup_transparent_type.
13182 * ada-lang.c: Update copyright.
13183 (ada_language_defn): Add basic_lookup_transparent_type.
13184 * c-lang.c: Update copyright.
13185 (c_language_defn): Add basic_lookup_transparent_type.
13186 (cplus_language_defn): Add basic_lookup_transparent_type.
13187 (asm_language_defn): Add basic_lookup_transparent_type.
13188 (minimal_language_defn): Add basic_lookup_transparent_type.
13189 * f-lang.c: Update copyright.
13190 (f_language_defn): Add basic_lookup_transparent_type.
13191 * jv-lang.c: Update copyright.
13192 (java_language_defn): Add basic_lookup_transparent_type.
13193 * m2-lang.c: Update copyright.
13194 (m2_language_defn): Add basic_lookup_transparent_type.
13195 * objc-lang.c: Update copyright.
13196 (objc_language_defn): Add basic_lookup_transparent_type.
13197 * p-lang.c: Update copyright.
13198 (p_language_defn): Add basic_lookup_transparent_type.
13199 * scm-lang.c: Update copyright.
13200 (scm_language_defn): Add basic_lookup_transparent_type.
13201 * Makefile.in (cp-namespace.o): Depend on frame.h.
13202
13203 2004-01-23 David Carlton <carlton@kealia.com>
13204
13205 Patch for PR c++/1520:
13206 * dwarf2read.c (read_func_scope): Set processing_current_prefix
13207 properly if we have a specification die.
13208 (determine_prefix_aux): Rename from determine_prefix.
13209 (determine_prefix): Like the old determine_prefix, but never
13210 returns NULL.
13211
13212 2004-01-23 Theodore A. Roth <troth@openavr.org>
13213
13214 * avr-tdep.c: Update copyright.
13215 (avr_iaddr_p): Delete unused function.
13216 (avr_saddr_p): Delete unused function.
13217
13218 2004-01-23 David Carlton <carlton@kealia.com>
13219
13220 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
13221 Fix for PR symtab/1534.
13222
13223 2004-01-23 Mark Kettenis <kettenis@gnu.org>
13224
13225 * NEWS (New native configurations): Mention OpenBSD/sparc and
13226 OpenBSD/sparc64.
13227 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
13228 * configure.host: Likewise.
13229 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
13230 handler for OpenBSD.
13231 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
13232
13233 2004-01-22 Mark Kettenis <kettenis@gnu.org>
13234
13235 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
13236 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
13237
13238 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
13239 * cli/cli-cmds.c (shell_escape): Likewise.
13240
13241 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
13242 OpenBSD .note.openbsd.ident sections.
13243
13244 2004-01-22 David Carlton <carlton@kealia.com>
13245
13246 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
13247 get_scope_pc_bounds.
13248 (read_file_scope): Ditto.
13249 (get_scope_pc_bounds): New function, produced by extracting code
13250 from the above two functions, consolidating it, and adding support
13251 for DW_TAG_namespace.
13252
13253 2004-01-22 Mark Kettenis <kettenis@gnu.org>
13254
13255 * osabi.c (MAX_NOTESZ): New define.
13256 (check_note): New function.
13257 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
13258 check_note.
13259
13260 2004-01-21 Roland McGrath <roland@redhat.com>
13261
13262 * MAINTAINERS (write after approval): Add myself.
13263
13264 2004-01-21 Eli Zaretskii <eliz@gnu.org>
13265
13266 * utils.c (init_page_info): Move declarations of `rows' and
13267 `cols' before the __GO32__-specific code. Move the closing brace
13268 outside the #ifdef __GO32__..#endif block.
13269 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
13270
13271 2004-01-21 Paul Brook <paul@codesourcery.com>
13272
13273 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
13274 BPSTAT_WHAT_CHECK_SHLIBS.
13275
13276 2004-01-21 Paul Brook <paul@codesourcery.com>
13277
13278 * MAINTAINERS: Add myself to write-after-approval.
13279
13280 2004-01-20 Andrew Cagney <cagney@redhat.com>
13281
13282 * ax-gdb.c (print_axs_value): Delete unused function.
13283 * jv-lang.c (java_lookup_type): Delete unused function.
13284 * cli/cli-dump.c (dump_filetype): Delete unused function.
13285 * remote-mips.c (remote_mips_insert_hw_breakpoint)
13286 (remote_mips_remove_hw_breakpoint): Delete unused functions.
13287 (mips_getstring): Delete unused function.
13288 (pmon_insert_breakpoint): Delete #if0ed function.
13289 (PMON_MAX_BP): Delete #if0ed MACRO.
13290 (mips_pmon_bp_info): Delete #if0ed variable.
13291 (pmon_remove_breakpoint): Delete #if0ed function.
13292 * monitor.c (monitor_write_even_block): Delete unused function.
13293 (monitor_write_memory_block): Delete #if0ed code.
13294 * dink32-rom.c (dink32_load): Delete unused function.
13295 (_initialize_dink32_rom): Delete #if0ed code.
13296 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
13297
13298 * tui/tui-command.c: Update references.
13299 * tui/tui-io.c: Update references.
13300 * tui/tui-command.h: Update copyright.
13301 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
13302
13303 * source.c (ambiguous_line_spec): Delete never-defined function.
13304 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
13305 * gdbtypes.c (add_name, add_mangled_type): Ditto.
13306 * cli/cli-cmds.c (validate_comname): Ditto.
13307
13308 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
13309 "tui-data.h".
13310 (tui_set_disassem_content): Rename tuiSetDisassemContent.
13311 (tui_show_disassem): Rename tuiShowDisassem.
13312 (tui_show_disassem_and_update_source): Rename
13313 tuiVerticalDisassemScroll.
13314 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
13315 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
13316 * tui/tui.h: Update copyright.
13317 (enum tui_status): Define.
13318 * tui/tui-data.h (enum tui_scroll_direction): Define.
13319 * tui/tui-disasm.c: Update copyright. Update references.
13320 * tui/tui-winsource.c: Update copyright. Update references.
13321 * tui/tui-win.c: Update references.
13322 * tui/tui-layout.c: Update references.
13323
13324 2004-01-20 Andrew Cagney <cagney@redhat.com>
13325
13326 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
13327 sym2 to start of block.
13328
13329 2004-01-19 Michael Chastain <mec.gnu@mindspring.com>
13330
13331 * MAINTAINERS: Delete mmalloc.
13332 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
13333 * NEWS: Mention removal of --with-malloc.
13334 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
13335 * config.in: Regenerate.
13336 * configure: Regenerate.
13337 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
13338 USE_MMALLOC, MMCHECK_FORCE.
13339 * gdbinit.in: Remove mmalloc.
13340 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
13341 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
13342 * config/i386/go32.mh: Likewise.
13343 * config/i386/interix.mh: Likewise.
13344 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
13345
13346 2004-01-19 Jeff Johnston <jjohnstn@redhat.com>
13347
13348 * linespec.c (decode_variable, symtab_from_filename): Call
13349 error_silent with error message instead of throwing an exception
13350 directly.
13351 * defs.h (error_silent, error_output_message): Add prototypes.
13352 (catch_exceptions_with_msg): Ditto.
13353 * utils.c (error_silent, error_output_message): New functions.
13354 * top.c (catch_exceptions_with_msg): New function.
13355
13356 2004-01-20 Nick Roberts <nick@nick.uklinux.net>
13357
13358 * mi/mi-cmds.h (enum print_values): Add definition.
13359
13360 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
13361 type and value for simple data types and just the name and type
13362 for complex ones, if required.
13363
13364 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
13365 children, if required.
13366
13367 2004-01-19 Kevin Buettner <kevinb@redhat.com>
13368
13369 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
13370 unused declarations.
13371
13372 2004-01-19 Andrew Cagney <cagney@redhat.com>
13373
13374 * top.h (mapped_symbol_files): Delete declaration.
13375 * main.c (captured_main): Delete option "m" and "mapped".
13376 * objfiles.c (mapped_symbol_files): Delete variable.
13377 * symfile.c (symbol_file_command): Delete mmap code.
13378 (symbol_file_add_with_addrs_or_offsets): Ditto.
13379 (add_symbol_file_command, reread_separate_symbols): Ditto.
13380 * objfiles.h (OBJF_MAPPED): Delete.
13381 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
13382 (free_objfile) [USE_MMALLOC]: Ditto.
13383 (open_existing_mapped_file): Delete function.
13384 (open_mapped_file): Delete function.
13385 (map_to_file): Delete function.
13386
13387 2004-01-19 Kevin Buettner <kevinb@redhat.com>
13388
13389 * infrun.c (step_into_function): Account for possible breakpoint
13390 adjustment when computing ``stop_func_start''.
13391
13392 2004-01-19 Kevin Buettner <kevinb@redhat.com>
13393
13394 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
13395 the region size against the size of a pointer, not the size of
13396 a register as given by DEPRECATED_REGISTER_SIZE.
13397
13398 2004-01-19 Andrew Cagney <cagney@redhat.com>
13399
13400 * tui/tui-regs.h: Include "tui-data.h".
13401 (tuiFirstRegElementNoInLine): Delete declaration.
13402 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
13403 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
13404 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
13405 (tui_calculate_regs_column_count): Rename
13406 tuiCalculateRegsColumnCount.
13407 (tui_check_register_values): Rename tuiCheckRegisterValues.
13408 (tui_show_registers): Rename tuiShowRegisters.
13409 (tui_display_registers_from_line): Rename
13410 tuiDisplayRegistersFromLine.
13411 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
13412 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
13413 (tui_first_reg_element_no_inline): Rename
13414 tuiFirstRegElementNoInLine.
13415 * tui/tui-data.h: Update copyright.
13416 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
13417 * tui/tui-windata.c: Update copyright, update references.
13418 * tui/tui-regs.c: Update copyright, update references.
13419 * tui/tui-win.c: Update copyright, update references.
13420 * tui/tui-layout.c: Update copyright, update references.
13421
13422 2004-01-18 Andrew Cagney <cagney@redhat.com>
13423
13424 * tui/tui-io.c: Update copyright.
13425 (key_is_end_sequence, key_is_backspace): New functions.
13426 (key_is_command_char, key_is_start_sequence): New function.
13427 (tui_getc): Update references.
13428 * tui/tui-io.h: Update copyright.
13429 (m_tuiStartNewLine): Delete macro.
13430 (m_isBackspace, m_isDeleteChar): Delete macros.
13431 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
13432 (m_isNextPage, m_isPrevPage): Delete macros.
13433 (m_isLeftArrow, m_isRightArrow): Delete macros.
13434 (m_isXdbStyleCommandChar): Delete macro.
13435 (key_is_start_sequence): Declare, replace m_isStartSequence.
13436 (key_is_end_sequence): Declare, replace m_isEndSequence.
13437 (key_is_backspace): Declare ,replace m_isBackspace.
13438 (key_is_command_char): Declare, replace m_isCommandChar.
13439 * tui/tui-command.c: Update copyright.
13440 (tuiDispatchCtrlChar): Update references.
13441
13442 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
13443 tuiSourceWin.h.
13444
13445 * tui/tui-command.c: Rename tui/tuiCommand.c.
13446 * tui/tui-command.h: Rename tui/tuiCommand.h.
13447 * tui/tui-data.c: Rename tui/tuiData.c.
13448 * tui/tui-data.h: Rename tui/tuiData.h.
13449 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
13450 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
13451 * tui/tui-io.c: Rename tui/tuiIO.c.
13452 * tui/tui-io.h: Rename tui/tuiIO.h.
13453 * tui/tui-layout.c: Rename tui/tuiLayout.c.
13454 * tui/tui-layout.h: Rename tui/tuiLayout.h.
13455 * tui/tui-regs.c: Rename tui/tuiRegs.c.
13456 * tui/tui-regs.h: Rename tui/tuiRegs.h.
13457 * tui/tui-source.c: Rename tui/tuiSource.c.
13458 * tui/tui-source.h: Rename tui/tuiSource.h.
13459 * tui/tui-stack.c: Rename tui/tuiStack.c.
13460 * tui/tui-stack.h: Rename tui/tuiStack.h.
13461 * tui/tui-win.c: Rename tui/tuiWin.c.
13462 * tui/tui-win.h: Rename tui/tuiWin.h.
13463 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
13464 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
13465 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
13466 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
13467 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
13468 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
13469 * tui/tui-file.c: Update includes.
13470 * tui/tui-hooks.c: Update includes.
13471 * tui/tui-interp.c: Update includes.
13472 * tui/tui.c: Update includes.
13473 * Makefile.in: Update all tui/ dependencies.
13474 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
13475
13476 * Makefile.in: Update copyright. Update dependencies.
13477
13478 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
13479 problem.
13480
13481 2004-01-18 Andrew Cagney <cagney@redhat.com>
13482
13483 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
13484 instead of register_gdbarch_init.
13485
13486 * remote-sds.c (tohex): Delete unused function. Update copyright.
13487 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
13488 * v850-tdep.c (v850_register_virtual_size): Ditto.
13489 * target.c (normal_target_post_startup_inferior): Ditto.
13490 * source.c (ambiguous_line_spec): Ditto.
13491 * remote.c (adapt_remote_get_threadinfo): Ditto.
13492 * mi/mi-out.c (out_field_fmt): Ditto.
13493 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
13494 (output_control_change_notification): Ditto.
13495 * m68k-tdep.c (m68k_register_byte): Ditto.
13496 (m68k_remote_breakpoint_from_pc): Ditto.
13497 * ui-out.c (init_ui_out_state): Delete unused declaration.
13498 * stabsread.c (search_value): Ditto.
13499 * mi/mi-cmd-env.c (env_cli_command): Ditto.
13500 * maint.c (print_section_table): Ditto.
13501 * infrun.c (set_follow_fork_mode_command): Ditto.
13502
13503 2004-01-18 Mark Kettenis <kettenis@gnu.org>
13504
13505 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
13506 DW_CFA_def_cfa_exporession. Add support for
13507 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
13508 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
13509
13510 2004-01-18 Andrew Cagney <cagney@redhat.com>
13511
13512 * ocd.c: Update copyright.
13513 (bdm_read_register_command): Delete unused function.
13514 (_initialize_remote_ocd): Delete commented out reference.
13515 (get_quoted_char, reset_packet): Delete #if0ed function.
13516 (output_packet, put_quoted_char): Delete #if0ed function.
13517 (stu_put_packet, stu_get_packet): Delete #if0ed function.
13518 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
13519 (BDM_BREAKPOINT): Delete #if0ed macro.
13520 (remote_timeout): Delete #if0ed variable.
13521
13522 2004-01-18 Mark Kettenis <kettenis@gnu.org>
13523
13524 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
13525 (core-sol2.o): Remove dependency.
13526 * core-sol2.c: Remove file.
13527
13528 2004-01-17 Andrew Cagney <cagney@redhat.com>
13529
13530 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
13531 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
13532 enums.
13533
13534 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13535
13536 * remote.c: Update copyright years.
13537
13538 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13539
13540 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
13541
13542 2004-01-17 Andrew Cagney <cagney@redhat.com>
13543
13544 * mdebugread.c: Update copyright.
13545 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
13546 (parse_type, parse_procedure): Ditto.
13547 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
13548
13549 * cris-tdep.c (cris_store_struct_return): Put back accidently
13550 deleted function.
13551
13552 * gdbarch.sh: Update copyright year.
13553 * gdbarch.h, gdbarch.c: Re-generate.
13554
13555 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13556
13557 Suggested by George Anzinger.
13558 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
13559 correct stack offset. Include unknown opcode numbers in the error
13560 message.
13561
13562 2004-01-17 Andrew Cagney <cagney@redhat.com>
13563
13564 * x86-64-tdep.c (x86_64_init_abi): No need to clear
13565 extract_struct_value_address, i386 does not set it.
13566 * sparc64-tdep.c (sparc64_init_abi): Do not set
13567 extract_struct_value_address, never called.
13568 (sparc64_extract_struct_value_address): Delete function.
13569 * m68hc11-tdep.c: Update copyright.
13570 (m68hc11_gdbarch_init): Delete redundant assignment of
13571 extract_struct_value_address.
13572 * i386-tdep.c: Update copyright.
13573 (i386_gdbarch_init): Do not set extract_struct_value_address,
13574 never called.
13575 (i386_extract_struct_value_address): Delete function.
13576 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
13577 extract_struct_value_address, never called.
13578 (sparc32_extract_struct_value_address): #if 0 function. Add
13579 comments explaining its future.
13580
13581 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13582
13583 * arm-tdep.c (arm_write_pc): New function.
13584 (arm_gdbarch_init): Call set_gdbarch_write_pc.
13585
13586 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13587
13588 * breakpoint.c (must_shift_inst_regs): Delete.
13589 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
13590 and SHIFT_INST_REGS.
13591 * infcmd.c (step_1, step_1_continuation): Delete references to
13592 SHIFT_INST_REGS.
13593 * infrun.c (keep_going): Likewise.
13594 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
13595 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
13596
13597 2004-01-17 Andrew Cagney <cagney@redhat.com>
13598
13599 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13600 * gdbarch.h, gdbarch.c: Re-generate.
13601 * infcmd.c (print_return_value): Delete reference to
13602 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
13603
13604 * cris-tdep.c (cris_gdbarch_init): Do not set
13605 deprecated_extract_struct_value_address.
13606
13607 * xstormy16-tdep.c: Update copyright.
13608 (xstormy16_extract_struct_value_address): Update to current
13609 extract struct value address interface.
13610 (xstormy16_gdbarch_init): Set extract_struct_value_address.
13611 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
13612 current extract struct value address interface.
13613 (sh64_gdbarch_init): Set extract_struct_value_address.
13614
13615 * cris-tdep.c: Update copyright.
13616 (cris_extract_struct_value_address): Delete function.
13617 (struct_return_address): Delete variable.
13618 (cris_store_struct_return): Do not set struct_return_address.
13619
13620 * mcore-tdep.c: Update copyright.
13621 (mcore_extract_struct_value_address): Delete function. Update
13622 comments.
13623 (mcore_gdbarch_init): Update.
13624 * mn10300-tdep.c: Update copyright.
13625 (mn10300_extract_struct_value_address): Delete function.
13626 (mn10300_gdbarch_init): Update.
13627 * v850-tdep.c: Update copyright.
13628 (v850_extract_struct_value_address): Delete.
13629 (v850_gdbarch_init): Update.
13630 * ns32k-tdep.c: Update copyright.
13631 (ns32k_extract_struct_value_address): Delete.
13632 (ns32k_gdbarch_init): Update.
13633 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
13634 (hppa_gdbarch_init): Update.
13635 * vax-tdep.c: Update copyright.
13636 (vax_extract_struct_value_address): Delete.
13637 (vax_gdbarch_init): Update.
13638
13639 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
13640 * gdbarch.h, gdbarch.c: Re-generate.
13641 * procfs.c (procfs_fetch_registers): Delete reference to
13642 DEPRECATED_NPC_REGNUM.
13643 (procfs_store_registers): Ditto.
13644 * regcache.c (generic_target_write_pc): Simplify.
13645 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
13646
13647 * core-sol2.c (fetch_core_registers): Replace
13648 DEPRECATED_NPC_REGNUM with equivalent tdep value.
13649
13650 * hppa-tdep.c: Update copyright year.
13651 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
13652 NPC_REGNUM.
13653 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
13654
13655 * mips-tdep.c (mips_write_pc): New function.
13656 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
13657 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
13658 (mips_find_saved_regs, mips_software_single_step: Ditto.
13659 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
13660 mips_init_extra_frame_info, mips_pop_frame): Ditto.
13661
13662 2004-01-17 Andrew Cagney <cagney@redhat.com>
13663
13664 * mips-tdep.c: Re-indent. Group functions by ABI.
13665
13666 2004-01-17 Andrew Cagney <cagney@redhat.com>
13667
13668 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
13669 * gdbarch.c: Re-generate.
13670 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
13671 DECR_PC_AFTER_BREAK to zero.
13672 * vax-tdep.c (vax_gdbarch_init): Ditto.
13673 * v850-tdep.c (v850_gdbarch_init): Ditto.
13674 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
13675 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
13676 * sh-tdep.c (sh_gdbarch_init): Ditto.
13677 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
13678 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
13679 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
13680 * mips-tdep.c (mips_gdbarch_init): Ditto.
13681 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
13682 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13683 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
13684 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
13685 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
13686 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
13687 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
13688 * frv-tdep.c (frv_gdbarch_init): Ditto.
13689 * cris-tdep.c (cris_gdbarch_init): Ditto.
13690 * avr-tdep.c (avr_gdbarch_init): Ditto.
13691 * arm-tdep.c (arm_gdbarch_init): Ditto.
13692 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
13693
13694 2004-01-17 J. Brobecker <brobecker@gnat.com>
13695
13696 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
13697 Delete, no longer used.
13698 (read_subrange_type): New function, mostly extracted from
13699 read_array_type().
13700 (read_array_type): Replace extracted code by call to
13701 read_subrange_type().
13702 (dwarf2_get_attr_constant_value): New function.
13703 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
13704 (add_partial_symbol): Likewise.
13705 (process_die): Likewise.
13706 (new_symbol): Likewise.
13707 (read_type_die): Likewise.
13708
13709 2004-01-16 Andrew Cagney <cagney@redhat.com>
13710
13711 * symfile.c: Update copyright year.
13712 (compare_symbols): Delete unused function.
13713 * stabsread.c: Update copyright year.
13714 (lrs_general_complaint): Delete unused function.
13715 (ref_search_value): Ditto.
13716 (get_substring): Delete declaration.
13717 * sh64-tdep.c: Update copyright year.
13718 (sh64_get_gdb_regnum): Delete unused function.
13719 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
13720 Delete unused function.
13721
13722 2004-01-17 Mark Kettenis <kettenis@gnu.org>
13723
13724 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
13725 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
13726
13727 2004-01-16 Andrew Cagney <cagney@redhat.com>
13728
13729 Changes from Peter Schauer.
13730 * rs6000-tdep.c: Update copyright year.
13731 (rs6000_push_dummy_call): Update the stack pointer before
13732 accessing the corresponding stack region.
13733 * rs6000-nat.c: Update copyright year.
13734 (set_host_arch): Set "info.abfd" to "exec_bfd".
13735
13736 2004-01-15 Mark Kettenis <kettenis@gnu.org>
13737
13738 * blockframe.c: Update copyright year.
13739 (inside_entry_func): Don't treat a zero PC specially.
13740
13741 2004-01-14 Elena Zannoni <ezannoni@redhat.com>
13742
13743 * gcore.c (gcore_copy_callback): Use paddr_d to print size
13744 variable.
13745 (gcore_create_callback): Ditto. Skip any memory segment that has
13746 no permissions set.
13747
13748 2004-01-14 David Carlton <carlton@kealia.com>
13749
13750 Change symbols for C++ nested types to contain the fully qualified
13751 name, if possible. (At least in the DWARF-2 case.) Partial fix
13752 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
13753 c++/895.
13754 * c-exp.y (qualified_type): Handle types nested within classes.
13755 * cp-namespace.c: Update comments.
13756 (cp_set_block_scope): Delete #if 0.
13757 (cp_lookup_nested_type): Handle types nested within classes.
13758 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
13759 when appropriate.
13760 (add_partial_symbol): Add the name of the enclosing namespace to
13761 types.
13762 (pdi_needs_namespace): New.
13763 (add_partial_namespace): Tweak comment.
13764 (add_partial_structure): New.
13765 (psymtab_to_symtab_1): Initialize processing_current_prefix
13766 here...
13767 (process_die): instead of here.
13768 (read_structure_scope): Try to figure out the name of the class or
13769 namespace that the structure might be defined within.
13770 (read_enumeration): Generate fully-qualified names, if possible.
13771 (read_namespace): Don't set name to NULL.
13772 (die_specification): New.
13773 (new_symbol): Generate fully-qualified names for types.
13774 (read_type_die): Determine appropriate prefix.
13775 (determine_prefix): New.
13776 (typename_concat): New.
13777 (class_name): New.
13778 * valops.c (value_aggregate_elt): Pass NOSIDE to
13779 value_struct_elt_for_reference.
13780 (value_struct_elt_for_reference): Make static, add NOSIDE
13781 parameter, call value_maybe_namespace_elt as a last resort.
13782 (value_namespace_elt): Break out code into
13783 value_maybe_namespace_elt.
13784 (value_maybe_namespace_elt): New.
13785
13786 2004-01-12 Andrew Cagney <cagney@redhat.com>
13787
13788 * mips-tdep.c (mips_convert_register_p): Handle both raw and
13789 cooked floating-point registers.
13790 (mips_gdbarch_init): Set convert_register_p, register_to_value,
13791 and value_to_register.
13792
13793 2004-01-13 Andrew Cagney <cagney@redhat.com>
13794
13795 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
13796 * gdbarch.c: Re-generate.
13797 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
13798 FUNCTION_START_OFFSET.
13799 * v850-tdep.c (v850_gdbarch_init): Ditto.
13800 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
13801 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
13802 * sh-tdep.c (sh_gdbarch_init): Ditto.
13803 * s390-tdep.c (s390_gdbarch_init): Ditto.
13804 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
13805 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
13806 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
13807 * mips-tdep.c (mips_gdbarch_init): Ditto.
13808 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
13809 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
13810 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13811 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
13812 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
13813 * i386-tdep.c (i386_gdbarch_init): Ditto.
13814 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
13815 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
13816 * frv-tdep.c (frv_gdbarch_init): Ditto.
13817 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
13818 * cris-tdep.c (cris_gdbarch_init): Ditto.
13819 * avr-tdep.c (avr_gdbarch_init): Ditto.
13820 * arm-tdep.c (arm_gdbarch_init): Ditto.
13821 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
13822
13823 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
13824
13825 * infrun.c (follow_fork_mode_ask): Remove.
13826 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
13827 (follow_fork): Simplify and remove internal error for
13828 follow_fork_mode_ask.
13829 (_initialize_infrun): Update "set follow-fork-mode" help text.
13830
13831 2004-01-13 Andrew Cagney <cagney@redhat.com>
13832
13833 * configure.in: Update copyright year.
13834 (build_warnings): Add -Wunused-label.
13835 * configure: Re-generate.
13836
13837 2004-01-12 Andrew Cagney <cagney@redhat.com>
13838
13839 * exec.h (exec_ops): Make "extern".
13840
13841 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
13842 the function is void.
13843 (mips_pseudo_register_write): Ditto.
13844
13845 2004-01-12 Andrew Cagney <cagney@redhat.com>
13846
13847 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
13848 call. Never defined.
13849 * sparc-tdep.h (struct frame_info): Add opaque declaration.
13850 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
13851 (struct sparc_gregset, struct regcache): Ditto.
13852 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
13853
13854 2004-01-12 Andrew Cagney <cagney@redhat.com>
13855
13856 * mi/ChangeLog: Delete file. Renamed to ...
13857 * mi/ChangeLog-1999-2003: New file.
13858 * tui/ChangeLog: Delete file. Renamed to ...
13859 * tui/ChangeLog-1998-2003: New file.
13860
13861 2004-01-11 Mark Kettenis <kettenis@gnu.org>
13862
13863 * sparc64nbsd-tdep.c: Include "regset.h".
13864 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
13865 Remove variables.
13866 (fetch_core_registers): Remove function.
13867 (sparc64nbsd_core_fns): Remove variable.
13868 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
13869 functions.
13870 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
13871 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
13872 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
13873
13874 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
13875 sparc_extract_struct_value_address.
13876 (sparc32_gdbarch_init): Set extract_struct_value_address.
13877 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
13878 function.
13879 (sparc64_init_abi): Set extract_struct_value_address. Don't set
13880 return_value_on_stack.
13881
13882 * NEWS: Mention that %cs and %ss have been added to the AMD64
13883 configurations
13884
13885 * frame.c: Update copyright year.
13886 (get_prev_frame): Improve comment.
13887
13888 * sparc64fbsd-tdep.c: Include "regset.h".
13889 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
13890 Remove variables.
13891 (fetch_core_registers): Remove function.
13892 (sparc64fbsd_core_fns): Remove variable.
13893 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
13894 functions.
13895 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
13896 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
13897 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
13898
13899 * sparcnbsd-tdep.c: Include "regset.h".
13900 (fetch_core_registers): Remove function.
13901 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
13902 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
13903 functions.
13904 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
13905 TDEP->fpregset.
13906 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
13907
13908 * sparc-tdep.h (struct regset): Provide opaque declaration.
13909 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
13910 fpregset and sizeof_fpregset members.
13911 * sparc-tdep.c (struct regset): Provide opaque declaration.
13912 (sparc_regset_from_core_section): New function.
13913 (sparc32_gdbarch_init): Initialize TDEP->gregset,
13914 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
13915 Set regset_from_core_section when appropriate.
13916
13917 2004-01-10 Mark Kettenis <kettenis@gnu.org>
13918
13919 * x86-64-tdep.c (amd64_non_pod_p): New function.
13920 (amd64_classify_aggregate): Return class memory for non-POD
13921 C++ structure types.
13922
13923 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
13924 argument. Use it to reserve a register if necessary.
13925 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
13926 amd64_push_arguments.
13927
13928 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
13929
13930 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
13931 register numbers in comments.
13932 * x86-64-tdep.h: Update copyright year.
13933 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
13934 Adjust for addition of %cs and %ss.
13935 * amd64fbsd-nat.c: Update copyright year.
13936 (reg_offset): Add register offsets for %cs and %ss.
13937 * amd64fbsd-tdep.c: Update copyright year.
13938 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
13939 (amd64fbsd_sc_reg_offset): Likewise.
13940 * x86-64-linux-nat.c: Update copyright year.
13941 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
13942 and %ss.
13943 * amd64nbsd-nat.c: Update copyright year.
13944 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
13945 * amd64nbsd-tdep.c: Update copyright year.
13946 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
13947 * x86-64-linux-tdep.c: Update copyright year.
13948 (user_to_gdb_regmap): Add mapping for %cs and %ss.
13949 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
13950 * regformats/reg-x86-64.dat: Add %cs and %ss.
13951
13952 * blockframe.c (inside_entry_func): Reformat. Introduce new local
13953 variables to prevent long lines. Update comments to reflect
13954 reality.
13955
13956 2004-01-09 David Carlton <carlton@kealia.com>
13957
13958 Checked in by Elena Zannoni <ezannoni@redhat.com>.
13959 * dwarf2read.c (read_namespace): Pull out name-generating code
13960 into namespace_name. Rename previous_namespace to previous_prefix
13961 and processing_current_namespace to processing_current_prefix..
13962 (namespace_name): New function.
13963 (add_partial_symbol): Substitute uses of pdi->name with
13964 actual_name.
13965 * cp-support.h: Rename processing_current_namespace to
13966 processing_current_prefix.
13967 Update copyright year.
13968 * cp-namespace.c: Rename processing_current_namespace to
13969 processing_current_prefix.
13970 Update copyright year.
13971
13972 2004-01-09 Andrew Cagney <cagney@redhat.com>
13973
13974 * jv-valprint.c, ser-unix.c: Add missing copyright years.
13975
13976 2004-01-09 Mark Kettenis <kettenis@gnu.org>
13977
13978 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
13979 complaining.
13980 (process_one_symbol): Deal with N_PATCH stabs.
13981
13982 2004-01-09 Elena Zannoni <ezannoni@redhat.com>
13983
13984 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
13985 ifdeffed code.
13986 Update copyright year.
13987
13988 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
13989
13990 * config/pa/tm-hppa.h: Update extern declarations for
13991 hppa32_hpux_frame_saved_pc_in_sigtramp,
13992 hppa32_hpux_frame_base_before_sigtramp, and
13993 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
13994
13995 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
13996
13997 * config/pa/tm-hppah.h: Update copyright years.
13998
13999 2004-01-08 Andrew Cagney <cagney@redhat.com>
14000
14001 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
14002 (mips_o32_reg_struct_has_addr): Delete function.
14003 (mips_gdbarch_init): Update.
14004 (mips_extract_struct_value_address): Delete function.
14005
14006 2004-01-08 David Mosberger <davidm@hpl.hp.com>
14007
14008 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
14009 reality.
14010
14011 2004-01-07 Andrew Cagney <cagney@redhat.com>
14012
14013 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
14014 architecture's elf flags (when available).
14015
14016 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
14017 FPU to the start, check the MIPS FPU when looking for an old
14018 architecture.
14019 (set_mipsfpu_single_command): Update the architecture.
14020 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
14021
14022 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
14023 (mips_mask_address_p): Add "tdep" parameter.
14024 (show_mask_address, mips_addr_bits_remove): Update.
14025 (mips_dump_tdep): Update.
14026 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
14027 (MIPS_STACK_ARGSIZE): Delete macro.
14028 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
14029 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
14030 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
14031 (mips_dump_tdep): Update.
14032 (MIPS_SAVED_REGSIZE): Delete macro.
14033 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
14034 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
14035 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
14036 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
14037 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
14038 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
14039 (mips_pop_frame, return_value_location): Update.
14040 (mips_n32n64_return_value, mips_dump_tdep): Update.
14041
14042 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
14043 MIPS ABI.
14044
14045 * mips-tdep.c: Update copyright.
14046 (mips_gdbarch_init): Merge two code blocks handling the register
14047 name and number layout.
14048
14049 2004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
14050
14051 * tracepoint.c (validate_actionline): Fix segv at EOF
14052
14053 2004-01-07 Michael Chastain <mec.gnu@mindspring.com>
14054
14055 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
14056 properly for static fields.
14057
14058 2004-01-06 Jeff Johnston <jjohnstn@redhat.com>
14059 Jason Molenda <jmolenda@apple.com>
14060
14061 * disasm.c: Update copyright to include 2004.
14062 (do_mixed_source_and_assembly): For uiout asm list
14063 and tuple cleanups, initialize to null_cleanup instead of
14064 NULL and do so prior to loop. Only reset when we close off
14065 the tuple/list. Move check for whether to close off the
14066 asm tuple/list to after dump_insns call where it will be run
14067 on each loop iteration.
14068
14069 2004-01-05 Andrew Cagney <cagney@redhat.com>
14070
14071 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
14072 should be a switch case and not a label.
14073 * mips-tdep.c (mips32_next_pc): Delete unused labels
14074 "greater_equal_branch" and "less_zero_branch".
14075 * jv-valprint.c (java_print_value_fields): Delete unused label
14076 "flush_it".
14077
14078 * target.c (unpush_target): Only close a target that is in the
14079 target stack.
14080
14081 2004-01-05 Mark Kettenis <kettenis@gnu.org>
14082
14083 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
14084 address from [sp + 64] instead of %o2.
14085
14086 * frame.c (get_prev_frame): Don't try to unwind the PC. This
14087 fixes PR backtrace/1476.
14088
14089 2004-01-05 Andrew Cagney <cagney@redhat.com>
14090
14091 * libunwind-frame.h (struct frame_id): Add opaque declaration,
14092 move to start of file.
14093 * i386-tdep.h (struct regcache): Add opaque declaration.
14094 * config/ia64/nm-linux.h (struct target_ops): Add opaque
14095 declaration.
14096 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
14097 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
14098 * win32-nat.c (fake_create_process): Use ISO C style definition.
14099 * stabsread.c (define_symbol): Delete #ifndef
14100 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
14101 stabs_argument_has_addr call, macro never defined.
14102
14103 2004-01-04 Michael Chastain <mec.gnu@mindspring.com>
14104
14105 * op50-rom.c: Delete.
14106 * w89k-rom.c: Delete.
14107 * Makefile.in: Remove references.
14108
14109 2004-01-04 Mark Kettenis <kettenis@gnu.org>
14110
14111 * x86-64-tdep.c: Update copyright year.
14112 (struct amd64_register_info): Rename from x86_64_register_info.
14113 (amd64_register_info): Rename from x86_64_register_info.
14114 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
14115 (amd64_register_name): Rename from x86_64_register_name.
14116 (amd64_register_type): Rename from x86_64_register_type.
14117 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
14118 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
14119 (amd64_dwarf_reg_to_regnum): Rename from
14120 x86_64_dwarf_reg_to_regnum.
14121 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
14122 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
14123 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
14124 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
14125 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
14126 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
14127 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
14128 (amd64_frame_cache): Rename from x86_64_frame_cache.
14129 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
14130 (amd64_frame_prev_register): Rename from
14131 x86_64_frame_prev_register.
14132 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
14133 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
14134 (amd64_sigtramp_frame_cache): Rename from
14135 x86_64_sigtramp_frame_cache.
14136 (amd64_sigtramp_frame_prev_register): Rename from
14137 x86_64_sigtramp_frame_prev_register.
14138 (amd64_sigtramp_frame_unwind): Rename from
14139 x86_64_sigtramp_frame_unwind.
14140 (amd64_sigtramp_frame_sniffer): Rename from
14141 x86_64_sigtramp_frame_sniffer.
14142 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
14143 (amd64_frame_base): Rename from x86_64_frame_base.
14144 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
14145 (amd64_frame_align): Rename from x86_64_frame_align.
14146 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
14147 (amd64_regset_from_core_section): Rename from
14148 x86_64_regset_from_core_section.
14149 (x86_64_init_abi): Update comments.
14150
14151 2004-01-04 Nick Roberts <nick@nick.uklinux.net>
14152
14153 * MAINTAINERS (write after approval): Add myself.
14154
14155 2004-01-04 Mark Kettenis <kettenis@gnu.org>
14156
14157 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
14158 `float' arguments.
14159
14160 2004-01-04 Mark Kettenis <kettenis@gnu.org>
14161
14162 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
14163 such that it mentions a specific version of GCC that exhibits this
14164 bug.
14165
14166 2004-01-03 Mark Kettenis <kettenis@gnu.org>
14167
14168 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
14169 structure that has a single `float' member, store it in %f1 in
14170 addition to %f0.
14171
14172 * sparc-sol2-nat.c: Add missing '\'.
14173
14174 * sparc-tdep.c (sparc32_return_value): New function.
14175 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
14176 Remove functions.
14177 (sparc32_gdbarch_init): Set return_value, don't set
14178 extract_return_value, store_return_value, use_struct_convention
14179 and return_value_on_stack.
14180
14181 * sparc-sol2-nat.c: Add missing ')'.
14182
14183 2004-01-03 J. Brobecker <brobecker@gnat.com>
14184
14185 * infrun.c (handle_step_into_function): New function.
14186 (handle_inferior_event): Extract out some code into the new
14187 function above.
14188
14189 2004-01-03 J. Brobecker <brobecker@gnat.com>
14190
14191 * infrun.c (handle_inferior_event): Move the declaration of
14192 real_stop_pc inside the if blocks where it is used.
14193
14194 2004-01-03 Mark Kettenis <kettenis@gnu.org>
14195
14196 * sparc64-tdep.c (sparc64_16_byte_align_p)
14197 (sparc64_store_floating_fields, sparc64_store_floating_fields):
14198 Use check_typedef to get subtypes of structures and unions.
14199 (sparc64_store_return_value): Fix calculation of the appropriate
14200 offset into VALBUF when storing a structure or union.
14201 (sparc64_return_value): New function.
14202 (sparc64_use_struct_convention): Remove function.
14203 (sparc64_init_abi): Set return_value, don't set
14204 extract_return_value, store_return_value and
14205 use_struct_convention.
14206
14207 2004-01-03 Eli Zaretskii <eliz@elta.co.il>
14208
14209 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
14210 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
14211 gdb/config/alpha/xm-alphaosf.h,
14212 gdb/config/powerpc/tm-ppcle-eabi.h,
14213 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
14214 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
14215 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
14216 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
14217 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
14218 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
14219 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
14220 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
14221 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
14222 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
14223 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
14224 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
14225 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
14226 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
14227 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
14228 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
14229 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
14230 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
14231 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
14232 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
14233 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
14234 Remove lines for .cvsignore files.
14235
14236 2004-01-03 J. Brobecker <brobecker@gnat.com>
14237
14238 * infrun.c: Back out the previous change.
14239
14240 2004-01-03 Mark Kettenis <kettenis@gnu.org>
14241
14242 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
14243 sparc-*-sunos4* to the list of REMOVED configurations.
14244
14245 * configure.tgt: Add back sparc-*-vxworks*.
14246 * remote-vxsparc.c: Remove all includes except for "defs.h",
14247 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
14248 Include "sparc-tdep.h".
14249 (SPARC_R_G1): New define.
14250 (vxsparc_gregset): New variable.
14251 (ext_format_sparc): Remove extern declaration.
14252 (vx_read_register): Rewrite to use sparc32_supply_gregset and
14253 sparc32_supply_fpregset.
14254 (vx_write_register): Rewrite to use sparc32_collect_gregset,
14255 sparc_collect_rwindow and sparc32_collect_fpregset.
14256 * config/sparc/tm-vxworks.h: New file, based on recently removed
14257 tm-vxsparc.h.
14258 * config/sparc/vxworks.mt: New file, based on recently removed
14259 vxworks.mt.
14260
14261 2004-01-03 J. Brobecker <brobecker@gnat.com>
14262
14263 * infrun.c (handle_step_into_function): New function.
14264 (handle_inferior_event): Extract out some code into the new
14265 function above.
14266
14267 2004-01-02 Mark Kettenis <kettenis@gnu.org>
14268
14269 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
14270 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
14271 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
14272 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
14273 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
14274 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
14275 (sparc_nat_h): New variable.
14276 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
14277 (tm-sun4os4.h): Remove dependency.
14278 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
14279 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
14280 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
14281 sparc-tdep.o): Update dependencies.
14282 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
14283 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
14284 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
14285 dependencies.
14286 * configure.host: Remove existing sparc-*-lynxos*,
14287 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
14288 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
14289 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
14290 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
14291 triplets.
14292 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
14293 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
14294 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
14295 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
14296 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
14297 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
14298 sparc64-*-solaris2* and sparc64-*-* triplets.
14299 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
14300 "symtab.h" and "objfiles.h".
14301 (BIAS): Remove define.
14302 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
14303 (X_DISP19): Remove macros.
14304 (sparc_fetch_instruction): Remove function.
14305 (struct gdbarch_tdep): Remove definition.
14306 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
14307 (sparc_breakpoint_from_pc): Remove function.
14308 (struct sparc64_frame_cache): Remove definition.
14309 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
14310 sparc64_unwind_pc): Remove functions.
14311 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
14312 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
14313 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
14314 (sparc64_frame_cache): Change return type to `struct
14315 sparc_frame_cache *'. Simply call sparc_frame_cache.
14316 (sparc64_frame_this_id, sparc64_frame_prev_register,
14317 sparc64_frame_base_address): Use `struct sparc_frame_cache'
14318 instead of `struct sparc64_frame_cache.
14319 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
14320 sparc_analyze_control_transfer, sparc_software_single_step,
14321 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
14322 _initialize_sparc64_tdep): Remove functions.
14323 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
14324 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
14325 macros.
14326 (sparc64_supply_gregset, sparc64_collect_gregset,
14327 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
14328 (sparc64_init_abi): New function.
14329 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
14330 inclusion guard. Include "sparc-tdep.h".
14331 (BIAS): Define.
14332 (r_tstate_offset, r_fprs_offset): New defines.
14333 (enum sparc_regnum): Remove defenition.
14334 (enum sparc64_regnum): Reformat.
14335 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
14336 (sparc64_init_abi, sparc64_supply_gregset,
14337 sparc64_collect_gregset, sparc64_supply_fpregset,
14338 sparc64_collect_fpregset): New prototypes.
14339 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
14340 Add extern declarations.
14341 (sparc64_sol2_init_abi): New prototype.
14342 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
14343 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
14344 prototypes.
14345 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
14346 "sparnbsd-nat.h".
14347 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
14348 functions.
14349 (_initialize_sparc64fbsd_nat): Remove initialization of
14350 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
14351 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
14352 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
14353 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
14354 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
14355 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
14356 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
14357 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
14358 (sparc64fbsd_r_y_offset): Remove variables.
14359 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
14360 Make static and const.
14361 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
14362 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
14363 functions.
14364 (sparc64fbsd_gregset): New variable.
14365 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
14366 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
14367 and sparc64_supply_fpregset.
14368 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
14369 (sparc64fbsd_sigtramp_frame_this_id)
14370 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
14371 (sparc64fbsd_sigtramp_frame_unwind): New variable.
14372 (sparc64fbsd_sigtramp_frame_sniffer): New function.
14373 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
14374 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
14375 * sparcnbsd-tdep.c: Update copyright year. Include
14376 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
14377 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
14378 "value.h" and "sparcnbsd-tdep.h".
14379 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
14380 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
14381 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
14382 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
14383 defines.
14384 (sparcnbsd_gregset): New variable.
14385 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
14386 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
14387 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
14388 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
14389 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
14390 variables.
14391 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
14392 (sparc32nbsd_sigcontext_frame_this_id)
14393 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
14394 (sparc32nbsd_sigcontext_frame_unwind): New variable.
14395 (sparc32nbsd_sigtramp_frame_sniffer): New function.
14396 (sparcnbsd_get_longjmp_target_32,
14397 sparcnbsd_get_longjmp_target_64): Remove functions.
14398 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
14399 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
14400 sparcnbsd_init_elf): Remove.
14401 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
14402 (sparcnbsd_elf_init_abi): New functions.
14403 (_initialize_sparcnbsd_tdep): New prototype.
14404 (_initialize_sparnbsd_tdep): Update.
14405 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
14406 corelow.o. Add sparc64-nat.o and sparc-nat.o.
14407 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
14408 * config/sparc/linux.mh: Update comment.
14409 (XM_FILE, HOST_IPC): Remove variables.
14410 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
14411 sparc-linux-nat.o.
14412 * config/sparc/linux.mt: Update comment.
14413 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
14414 * config/sparc/nbsd.mt: Reformat.
14415 * config/sparc/nbsd64.mh: Update comment.
14416 (NATDEPFILES): Add sparc-nat.o.
14417 * config/sparc/nbsd64.mt: Update comment.
14418 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
14419 (TM_FILE): Set to tm-nbsd.h.
14420 * config/sparc/nbsdelf.mh: Update comment.
14421 (NATDEPFILES): Add sparc-nat.o.
14422 (XM_FILE): Delete.
14423 * config/sparc/nbsdaout.mh: Update comment.
14424 (NATDEPFILES): Add sparc-nat.o
14425 (XM_FILE): Delete.
14426 * config/sparc/nm-linux.h: Update copyright year. Don't include
14427 "config/nm-svr4.h" and "solib.h". Add protection against multiple
14428 inclusion.
14429 (KERNEL_U_SIZE): Remove define.
14430 (kernel_u_size): Remove prototype.
14431 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
14432 * config/sparc/nm-nbsd.h: Update copyright. Don't include
14433 "regcache.h".
14434 (CHILD_PREPARE_TO_STORE): Remove define.
14435 * config/sparc/nm-nbsdaout.h: Tweak some comments.
14436 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
14437 sparcnbsd-nat.c: Rewrite files.
14438 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
14439 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
14440 sparcnbsd-tdep.h: Remove files.
14441 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
14442 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
14443 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
14444 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
14445 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
14446 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
14447 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
14448 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
14449 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
14450 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
14451 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
14452 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
14453 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
14454 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
14455 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
14456 * config/sparc/linux64.mh, config/sparc/linux64.mt,
14457 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
14458 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
14459 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
14460
14461 2004-01-02 Andrew Cagney <cagney@redhat.com>
14462
14463 From 2003-12-18 Kazuhiro Inaoka:
14464 * configure.host: Add m32r-linux target.
14465
14466 2004-01-02 Michael Chastain <mec.gnu@mindspring.com>
14467
14468 * top.c (print_gdb_version): Update year to 2004.
14469
14470 2004-01-02 Mark Mitchell <mark@codesourcery.com>
14471
14472 * MAINTAINERS: Add myself to the write-after-approval category.
14473
14474 2004-01-02 Daniel Jacobowitz <drow@mvista.com>
14475
14476 From Bernardo Innocenti <bernie@develer.com>:
14477 * configure.tgt: Add uClinux target.
14478
14479 2004-01-02 Andrew Cagney <cagney@redhat.com>
14480
14481 * utils.c (do_my_cleanups): Make static, add forward declaration.
14482 * defs.h (do_my_cleanups): Delete declaration.
14483
14484 2004-01-02 Eli Zaretskii <eliz@elta.co.il>
14485
14486 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
14487 bfd/ChangeLog-0203.
14488
14489 2004-01-02 Mark Kettenis <kettenis@gnu.org>
14490
14491 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
14492 in <machine/reg.h>.
14493 * configure, config.in: Regenerate.
14494
14495 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
14496 tui/ChangeLog-1998-2003.
14497 \f
14498 Local Variables:
14499 mode: change-log
14500 left-margin: 8
14501 fill-column: 74
14502 version-control: never
14503 End:
This page took 0.343567 seconds and 4 git commands to generate.