* hppa-hpux-nat.c: New file.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
a7289609
MK
12004-11-20 Mark Kettenis <kettenis@gnu.org>
2
eeb8076c
MK
3 * hppa-hpux-nat.c: New file.
4 * config/pa/hpux.mh (NATDEPFILES): New file.
5 * Makefile.in (ALLDEPFILES): Add hppa-hpux-nat.c.
6 (hppa-hpux-nat.o): New dependency.
7 * configure.host: Remove hppa*-*-hpux10.20.
8 (hppa*-*-hpux*, hppa*-*-hiux*): Set gdb_host to hpux.mh.
9
f6ffd89b
MK
10 * inf-ptrace.c: Fix coding style.
11
f1bc22da
MK
12 * gdb_ptrace.h [PTRACE_TYPE_ARG5] (ptrace): New macro.
13 * infptrace.c (call_ptrace): Simply call ptrace with four
14 arguments.
15
e31272c3
MK
16 * dbxread.c (process_one_symbol): Fix a few coding standard
17 issues. Improve code formatting.
18
91f54576
MK
19 * dbxread.c: Include "gdb_string.h".
20 (record_minimal_symbol, read_ofile_symtab): Replace
21 DEPRECATED_STREQ and DEPRECATED_STREQN with strcmp and strncmp.
22 * Makefile.in (dbxread.o): Update dependencies.
23
a7289609
MK
24 * dwarf2-frame.c (read_encoded_value): Correctly calculate number
25 of bytes read for aligned LEB128 encodings.
26
57ac95b8
MK
272004-11-19 Mark Kettenis <kettenis@gnu.org>
28
29 * bsd-kvm.c (bsd_kvm_pcb_cmd): Cast return value from
30 parse_and_eval_address to u_long before converting it to a pointer
31 type.
32 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Change type of
33 ps_strings from int to u_long.
34 * i386obsd-nat.c (_initialize_i386obsd_nat): Cast _ps.val to
35 u_long instead of CORE_ADDR.
36
ceddaf06
MK
372004-11-18 Mark Kettenis <kettenis@gnu.org>
38
39 * dbxread.c (process_one_symbol): Do not adjust address of first
40 N_SLINE stab for a function for code generated by non-GCC
41 compilers.
42
915a2d21
KB
432004-11-18 Kevin Buettner <kevinb@redhat.com>
44
45 * solib-null.c: New file.
46
92790ee7
AC
472004-11-17 Andrew Cagney <cagney@gnu.org>
48
49 * MAINTAINERS: Drop MIPS and remote.
50
0c16dd26
AC
512004-11-15 Andrew Cagney <cagney@gnu.org>
52
53 * findvar.c (value_of_register): Set the frame ID.
54 * value.c (value_primitive_field): Copy the frame ID.
55 * valops.c (value_assign): Simplify lval_register case, there's
56 always a frame.
57
2fdf551c
DJ
582004-11-14 Daniel Jacobowitz <dan@debian.org>
59
60 * Makefile.in (mips-linux-tdep.o): Update dependencies.
61 * mips-linux-tdep.c: Include "regcache.h".
62 (fill_fpregset, mips64_fill_fpregset): Use regcache_raw_collect.
63
98754800
DJ
642004-11-14 Daniel Jacobowitz <dan@debian.org>
65
66 * Makefile.in (linux-thread-db.o): Fix typo in last change.
67
ed89d175
DJ
682004-11-14 Daniel Jacobowitz <dan@debian.org>
69
70 * linux-thread-db.c: New file, renamed from thread-db.c.
71 * thread-db.c: Remove.
72 * Makefile.in (linux-thread-db.o): Rename from thread-db.o rule.
73 * config/alpha/alpha-linux.mh (NATDEPFILES): Rename thread-db.o
74 to linux-thread-db.o.
75 * config/arm/linux.mh (NATDEPFILES): Likewise.
76 * config/i386/linux.mh (NATDEPFILES): Likewise.
77 * config/i386/linux64.mh (NATDEPFILES): Likewise.
78 * config/ia64/linux.mh (NATDEPFILES): Likewise.
79 * config/m32r/linux.mh (NATDEPFILES): Likewise.
80 * config/m68k/linux.mh (NATDEPFILES): Likewise.
81 * config/mips/linux.mh (NATDEPFILES): Likewise.
82 * config/pa/linux.mh (NATDEPFILES): Likewise.
83 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
84 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
85 * config/s390/s390.mh (NATDEPFILES): Likewise.
86 * config/sparc/linux.mh (NATDEPFILES): Likewise.
87 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
88
8851ec7a
AC
892004-11-13 Andrew Cagney <cagney@gnu.org>
90
f97fe8ff
AC
91 * config/i386/i386lynx.mh: Delete file.
92 * config/i386/i386lynx.mt: Delete file.
93 * Makefile.in (ALLDEPFILES, i386ly-tdep.o): Remove i386ly-tdep.c.
94 * i386ly-tdep.c: Delete.
95
5873946b
AC
96 * config/tm-lynx.h: Delete, inline contents ...
97 * config/rs6000/tm-rs6000ly.h: ... here.
98
a69637bd
AC
99 * config/tm-sysv4.h: Delete file, inlining contents.
100 * config/ia64/tm-aix.h (SKIP_TRAMPOLINE_CODE): Define.
101 * config/tm-linux.h (SKIP_TRAMPOLINE_CODE): Define.
102 * config/tm-nto.h (SKIP_TRAMPOLINE_CODE): Define.
103
8851ec7a
AC
104 * regcache.h (deprecated_register_valid): Delete.
105 (deprecated_registers): Delete.
106 * regcache.c (deprecated_register_valid): Delete.
107 (deprecated_registers): Delete.
108 (deprecated_read_register_byte, _initialize_regcache)
109 (deprecated_write_register_bytes, build_regcache): Update.
110 * config/powerpc/ppc-sim.mt (TDEPFILES): Remove ppc-bdm.o and
111 remote-sds.o.
112 * config/powerpc/ppc-eabi.mt (TDEPFILES): Ditto.
113 * config/mips/embed.mt (TDEPFILES): Remove remote-mips.o.
114
9445aa30
AC
115 * NEWS: List h8300*-*-*, mcore-*-*, mn10300-*-*, ns32k-*-*, and
116 v850-*-* under removed.
117 * configure.host: Delete ns32k-*-netbsd*.
118 * configure.tgt: Delete h8300-*-*, mcore*-*-*, mn10300-*-*,
119 ns32k-*-netbsd*, and v850*-*-*.
120 * MAINTAINERS: Mark h8300, mcore, mn10300, ns32k, v850 as
121 "Deleted"
122 * config/h8300/tm-h8300.h, config/h8300/h8300.mt: Delete.
123 * h8300-tdep.c, config/mcore/mcore.mt, mcore-rom.c: Delete.
124 * mcore-tdep.c, config/mn10300/mn10300.mt: Delete.
125 * mn10300-tdep.c, config/ns32k/nbsdaout.mh: Delete.
126 * config/ns32k/nbsdaout.mt, config/ns32k/nm-nbsd.h: Delete.
127 * config/ns32k/nm-nbsdaout.h, config/ns32k/tm-ns32k.h: Delete.
128 * ns32knbsd-nat.c, ns32knbsd-tdep.c, ns32k-tdep.c: Delete.
129 * ns32k-tdep.h, config/v850/v850.mt, v850ice.c: Delete.
130 * v850-tdep.c: Delete.
131
f6e1bffc
JB
1322004-11-13 Joel Brobecker <brobecker@gnat.com>
133
134 * irix5-nat.c (fetch_core_registers): Replace use of
135 deprecated_registers by equivalent code.
136
44ed547b
JB
1372004-11-13 Joel Brobecker <brobecker@gnat.com>
138
139 * irix5-nat.c (fill_gregset): Replace use of deprecated_registers
140 with equivalent code.
141 (fill_fpregset): Likewise.
142
e84ecc99
AC
1432004-11-13 Andrew Cagney <cagney@gnu.org>
144
ca1a823a
AC
145 * MAINTAINERS: Do not list "Deleted" architectures.
146
e84ecc99
AC
147 * configure.tgt: Delete i[34567]86-*-vxworks*, m68*-netx-*,
148 m68*-*-vxworks*, mips*-*-vxworks*, powerpc-*-vxworks*, and
149 sparc-*-vxworks*.
150 * NEWS: Mention that vxworks was deleted.
151 * config/m68k/tm-vx68.h, config/mips/tm-vxmips.h: Delete.
152 * config/powerpc/tm-vxworks.h, config/tm-vxworks.h: Delete.
153 * config/i386/vxworks.mt, config/m68k/vxworks68.mt: Delete.
154 * config/mips/vxmips.mt, config/powerpc/vxworks.mt: Delete.
155 * config/sparc/vxworks.mt, vx-share/dbgRpcLib.h: Delete.
156 * vx-share/ptrace.h, vx-share/regPacket.h: Delete.
157 * vx-share/vxTypes.h, vx-share/vxWorks.h: Delete.
158 * vx-share/wait.h, vx-share/xdr_ld.c: Delete.
159 * vx-share/xdr_ld.h, vx-share/xdr_ptrace.c: Delete.
160 * vx-share/xdr_ptrace.h, vx-share/xdr_rdb.c: Delete.
161 * vx-share/xdr_rdb.h, remote-vxsparc.c: Delete.
162 * remote-vxmips.c, remote-vx.c: Delete.
163 * remote-vx68.c: Delete.
164 * config/m68k/tm-os68k.h: Remove reference to VxWorks.
165 * config/m68k/os68k.mt, ada-lang.h: Ditto.
166 * Makefile.in (HFILES_NO_SRCDIR, ALLDEPFILES, remote-vx68.o)
167 (remote-vx.o, remote-vxmips.o, remote-vxsparc.o): Delete vx files.
168
01e937bc
EZ
1692004-11-13 Eli Zaretskii <eliz@gnu.org>
170
29247324
EZ
171 * config/i386/xm-go32.h: Don't include fopen-bin.h.
172 Don't define CRLF_SOURCE_FILES and DIRNAME_SEPARATOR.
173
174 * source.c (OPEN_MODE, FDOPEN_MODE): Remove the definitions in the
175 branch that doesn't define CRLF_SOURCE_FILES; always use
176 binary-mode open.
177 (print_source_lines_base, forward_search_command)
178 (reverse_search_command): Enable the code that accepts DOS-style
179 CRLF line endings on all platforms (this removes the need for
180 CRLF_SOURCE_FILES).
181
f8f0d88a 182 * defs.h: Fix wording of the comment before FOPEN_RB.
29247324 183 (DIRNAME_SEPARATOR) [__MSDOS__]: Define to ';'.
f8f0d88a 184
01e937bc
EZ
185 * config/djgpp/fnchange.lst: Group renames for opcode directory
186 together.
187
188 * config/djgpp/djconfig.sh: Replace file names that don't exist
189 anymore with existing files, for checking the unpacked
190 distribution.
191
192 * config/djgpp/config.sed (am_cv_exeext, lt_cv_sys_max_cmd_len):
193 Export pre-cooked values in configure-* targets that begin with
194 "@test -f stage_last".
195
25ae5d16
AC
1962004-11-12 Andrew Cagney <cagney@gnu.org>
197
198 * defs.h (enum lval_type): Delete lval_reg_frame_relative.
199 * value.h (struct value): Update comment.
200 * valops.c (value_assign): Fold lval_reg_fame_relative into
201 lval_register.
202 * findvar.c (value_from_register, locate_var_value): Ditto.
203
d7318818
RC
2042004-11-12 Randolph Chung <tausq@debian.org>
205
206 * config/tm/tm-hppa.h (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
207 * parse.c (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
208 (write_exp_msymbol): Remove conditional check for symbols starting
209 with $. Update comments.
210
89676665
RC
2112004-11-12 Randolph Chung <tausq@debian.org>
212
213 * pa64solib.c (pa64_solib_thread_start_addr): Rename from
214 so_lib_thread_start_addr.
215 * pa64solib.h (so_list): Forward declare.
216 (pa64_solib_thread_start_addr): Prototype.
217 * somsolib.c (SHL_LOAD, SHL_UNLOAD): Define if not already defined.
218 (no_shared_libraries): Remove.
219 (som_solib_thread_start_addr): Rename from so_lib_thread_start_addr.
220 * somsolib.h (som_solib_thread_start_addr): Likewise; prototype.
221 * hpread.c (hpread_process_one_debug_symbol): Use either the som or
222 the elf solib handler to find the start address.
223
224 * config/pa/hppahpux.mh (NATDEPFILES): Move target-specific support
225 files to the target makefile.
226 * config/pa/hpux1020.mh (NATDEPFILES): Likewise.
227 * config/pa/hpux11.mh (NATDEPFILES): Likewise.
228 * config/pa/hpux11w.mh (NATDEPFILES): Likewise.
229
230 * config/pa/hppa64.mt (TDEPFILES): Put target-specific support
b82f24bf 231 files for symbol reading and shared library handling here.
89676665 232 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
b82f24bf
RC
233 (PA_SOM_ONLY): Define so we can build a 32-bit SOM only target
234 without bringing in 64-bit support.
89676665 235
df407dfe
AC
2362004-11-12 Andrew Cagney <cagney@gnu.org>
237
4991999e
AC
238 * sparc-tdep.c: Replace VALUE_TYPE with value_type.
239 * v850-tdep.c, sparc64-tdep.c, sh-tdep.c: Ditto.
240 * sh64-tdep.c, s390-tdep.c, mcore-tdep.c: Ditto.
241 * h8300-tdep.c, arm-linux-tdep.c, amd64-tdep.c: Ditto.
242 * hppa-tdep.c, mips-tdep.c, m88k-tdep.c: Ditto.
243 * m68hc11-tdep.c, m32r-tdep.c, ia64-tdep.c: Ditto.
244 * frv-tdep.c, cris-tdep.c, avr-tdep.c, alpha-tdep.c: Ditto.
245
9ee8fc9d
AC
246 Merge VALUE_REGNO and VALUE_FRAME_REGNUM into VALUE_REGNUM.
247 * value.h (VALUE_REGNO, VALUE_FRAME_REGNUM): Delete.
248 (VALUE_REGNUM): Define.
249 (struct value): Delete location.regnum, rename "regno" to
250 "regnum".
251 * value.c, valops.c, valarith.c, findvar.c: Update.
252
df407dfe
AC
253 * value.h (VALUE_TYPE, VALUE_NEXT, VALUE_OFFSET, VALUE_BITSIZE)
254 (VALUE_BITPOS): Delete.
255 (value_type, value_offset, value_bitsize, value_bitpos): Declare.
256 * value.c (value_type, value_offset, value_bitpos)
257 (value_bitsize): New functions. Update references.
258 * arm-tdep.c, gnu-v3-abi.c, hpacc-abi.c, gnu-v2-abi.c: Update.
259 * f-valprint.c, cp-valprint.c, c-valprint.c: Update.
260 * ada-valprint.c, typeprint.c, scm-valprint.c, scm-exp.c: Update.
261 * p-valprint.c, jv-valprint.c, jv-lang.c, varobj.c: Update.
262 * objc-lang.c, ada-lang.c, std-regs.c, stack.c: Update.
263 * infcall.c, linespec.c, printcmd.c, valarith.c: Update.
264 * valops.c, eval.c, findvar.c, breakpoint.c: Update.
265 * tracepoint.c, ax-gdb.c, mi/mi-main.c, cli/cli-dump.c:
266 * rs6000-tdep.c, ppc-sysv-tdep.c: Update.
267
61c82a3b
AC
2682004-11-12 Andrew Cagney <cagney@gnu.org>
269
270 * cris-tdep.c (cris_register_offset): Delete, never called.
271 (cris_spec_reg_applicable): Delete cris_ver_sim.
272 * MAINTAINERS: List d10v as OBSOLETE.
273 * rdi-share/host.h (FOPEN_WB): #ifdef 0 out definitions of
274 FOPEN_WB et.al., defined by "fopen-bin.h".
275
5aac166f
RC
2762004-11-12 Randolph Chung <tausq@debian.org>
277
278 * hppa-tdep.c (hppa_skip_permanent_breakpoint): Move definition ...
279 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): ... to here.
280 * config/pa/tm-hppa.h (SKIP_PERMANENT_BREAKPOINT): Move definition ...
281 * config/pa/tm-hppah.h (SKIP_PERMANENT_BREAKPOINT): ... to here.
282
4fab48b9
MK
2832004-11-12 Mark Kettenis <kettenis@jive.nl>
284
285 * tui/tui-io.c: Don't include "terminal.h".
286 * Makefile.in (tui-io.o): Update dependencies.
287
9b098f24
KI
2882004-11-12 Kei Sakamoto <sakamoto.kei@renesas.com>
289
290 * Makefile.in (m32r-linux-tdep.o): Update dependencies.
291 * m32r-linux-tdep.c (m32r_linux_init_abi): Call
292 set_gdbarch_regset_from_core_section for core file support.
293 (m32r_linux_supply_gregset, m32r_linux_regset_from_core_section):
294 New functions.
295
a71f8c30
RC
2962004-11-11 Randolph Chung <tausq@debian.org>
297
298 * hppa-tdep.c (skip_prologue_hard_way): Make static, add
299 stop_after_branch parameter and use it to determine if we should look
300 at the delay slot of the first branch insn to find prologue insns.
301 (hppa_skip_prologue): Update comment and call to skip_prologue_hard_way.
302 (hppa_frame_cache): Likewise.
303
50b2f48a
RC
3042004-11-11 Randolph Chung <tausq@debian.org>
305
306 * hppa-tdep.c (hppa_frame_cache): Properly handle the frame pointer
307 register so that it can be unwound from anywhere in the prologue.
308
be723e22
MS
3092004-11-10 msnyder <msnyder@redhat.com>
310
311 * rs6000-tdep.c (skip_prologue): After saving lr_offset,
312 must invalidate lr_reg (so we don't try to save it again).
313 Ditto for cr_offset and cr_reg.
314
d6f7abdf
AC
3152004-11-05 Jon Beniston <jon@beniston.com>
316
216c5547 317 Committed by Andrew Cagney.
d6f7abdf
AC
318 * remote.c (putpkt_binary) Fix PR gdb/1806. Send an ACK
319 when an unexpected packet is received, as the target stubs
320 continually retransmit the same packet until ACKed.
321
1d225535
RC
3222004-11-10 Randolph Chung <tausq@debian.org>
323
324 * frame.c (get_prev_frame): Use get_frame_type to retrieve the
d6f7abdf 325 frame's type.
1d225535 326
2315ffec
RC
3272004-11-10 Randolph Chung <tausq@debian.org>
328
329 * blockframe.c (inside_entry_func): Move to .....
330 * frame.c (inside_entry_func): ... here, and make static.
331 (backtrace_past_entry): New flag.
332 (get_prev_frame): Stop backtrace at the entry function if enabled
333 by flag. Update comments.
334 (_initialize_frame): Add command to set backtrace_past_entry flag.
335 * defs.h (inside_entry_func): Remove prototype.
336
917c78fc
MK
3372004-11-10 Mark Kettenis <kettenis@gnu.org>
338
339 * dwarf2read.c: Fix formatting.
340
994b9211
AC
3412004-11-10 Andrew Cagney <cagney@gnu.org>
342
343 * value.h (COERCE_REF, COERCE_ARRAY, COERCE_NUMBER, COERCE_ENUM)
344 (coerce_ref, coerce_array, coerce_number, coerce_enum): Replace
345 macros with function declarations.
346 * value.c (coerce_ref, coerce_array, coerce_number)
347 (coerce_enum): New functions.
348 (value_as_long, value_as_address): Update.
349 * ada-lang.c (ada_coerce_ref, ada_value_binop)
350 (ada_evaluate_subexp, ada_value_assign, ada_value_struct_elt): Update.
351 * jv-lang.c (evaluate_subexp_java): Update.
352 * valarith.c (value_less, value_neg, value_complement)
353 (value_binop, value_add, value_subscript, value_x_binop)
354 (value_logical_not, value_sub): Update.
355 * valops.c (check_field, value_struct_elt, value_ind)
356 (value_find_oload_method_list, value_cast, value_assign): Update.
357 * eval.c (evaluate_subexp_standard): Update.
358
06987e64
MK
3592004-11-10 Mark Kettenis <kettenis@gnu.org>
360
361 * mips-tdep.c (mips32_relative_offset): Change return type to
362 LONGEST, change argument type to ULONGEST. Fix sign-extension.
363
4a302917
RC
3642004-11-10 Randolph Chung <tausq@debian.org>
365
366 * hppa-tdep.c (hppa32_register_name, hppa64_register_name): Make static.
367 (hppa32_push_dummy_call, hppa64_push_dummy_call): Likewise.
368 (hppa_fetch_pointer_argument): Likewise.
369 (hppa_frame_cache): Use safe_frame_unwind_memory instead of
370 deprecated_read_memory_nobpt.
371 (_initialize_hppa_tdep): Replace deprecated_add_show_from_set/
372 add_set_cmd sequence with add_setshow_boolean_cmd.
373
390e974f
AC
3742004-11-09 Andrew Cagney <cagney@gnu.org>
375
376 GDB 6.3 released from GDB 6.3 branch.
377
92e023d6
AC
3782004-11-09 Andrew Cagney <cagney@gnu.org>
379
380 * values.c: Rename to ...
381 * value.c: ..., new file.
382 * Makefile.in: Update.
383
d10891d4
DJ
3842004-11-09 Daniel Jacobowitz <dan@debian.org>
385
386 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Correct allocated
387 size.
388
00a4c844
AC
3892004-11-09 Andrew Cagney <cagney@gnu.org>
390
c44523e7
AC
391 * TODO: Delete.
392
00a4c844
AC
393 * value.h (struct value): Delete field bfd_section.
394 (VALUE_BFD_SECTION): Delete macro.
395 (COERCE_REF): Update.
396 (value_at, value_at_lazy): Delete asection parameter.
397 * printcmd.c (print_formatted, x_command): Update.
398 (do_examine): Delete asection parameter.
399 (next_section): Delete variable.
400 * valops.c (value_cast, value_at, value_at_lazy)
401 (value_coerce_function, value_addr, value_ind, value_string)
402 (find_rt_vbase_offset, value_full_object): Update.
403 * hpacc-abi.c (hpacc_virtual_fn_field)
404 (hpacc_value_rtti_type): Update.
405 * gnu-v3-abi.c (gnuv3_rtti_type, gnuv3_virtual_fn_field)
406 (gnuv3_baseclass_offset): Update.
407 * f-valprint.c (f_val_print): Update.
408 * c-valprint.c (c_val_print): Update.
409 * p-valprint.c (pascal_val_print): Update.
410 * jv-valprint.c (java_value_print): Update.
411 * jv-lang.c (java_class_from_object, evaluate_subexp_java): Update.
412 * ada-lang.c (ada_value_primitive_packed_val)
413 (ada_evaluate_subexp): Update.
414 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Update.
415 * expprint.c (print_subexp_standard): Update.
416 * infcall.c (call_function_by_hand): Update.
417 * valarith.c (value_add): Update.
418 * eval.c (evaluate_subexp_standard): Update.
419 * values.c (allocate_value, value_copy, value_static_field): Update.
420 * findvar.c (read_var_value, locate_var_value): Update.
421
5cb2fe25
AC
4222004-11-09 Andrew Cagney <cagney@gnu.org>
423
424 * i386-linux-tdep.c: Include "dwarf2-frame.h".
425 * Makefile.in: Update all dependencies.
426
cbafadeb
AC
4272004-11-08 Andrew Cagney <cagney@gnu.org>
428
429 * sentinel-frame.c (sentinel_frame_prev_pc): New function.
430 (sentinel_frame_unwinder): Add the prev_pc method.
431 * frame.c (frame_pc_unwind): Use the per-frame pc unwinder when
432 available. Do not handle the sentinel-frame case.
433 * frame-unwind.h (frame_prev_register_ftype): Define.
434 (struct frame_unwind): Add prev_pc;
435
3b78cdbb
DA
4362004-11-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
437
438 * configure.in: Check for ncurses/term.h.
439 * gdb_curses.h: Include term.h here, prefering ncurses/term.h.
440 * utils.c: Include gdb_curses.h instead of curses.h and term.h.
441 * tui/tui.c: Don't include term.h.
442 * configure, config.in: Rebuilt.
443
bcfca652
MK
4442004-11-08 Mark Kettenis <kettenis@gnu.org>
445
446 * m68kbsd-nat.c: Include "inf-ptrace.h".
447 (_initialize_m68kbsd_nat): Fix pasto.
448 * Makefile.in (m68kbsd-nat.o): Update dependencies.
449
527159b7
RC
4502004-11-08 Randolph Chung <tausq@debian.org>
451
452 * infrun.c (debug_infrun): New variable.
453 (resume, proceed, wait_for_inferior): Annotate with debug messages.
454 (handle_inferior_event, keep_going): Likewise.
455 (_initialize_infrun): Register "set debug infrun" command.
456
c874c7fc
AS
4572004-11-08 Andreas Schwab <schwab@suse.de>
458
459 * linux-nat.c (PTRACE_EVENT_VFORK_DONE): Renamed from
460 PTRACE_EVENT_VFORKDONE.
461 (child_follow_fork): Adjust.
462
3c8fa307
AC
4632004-11-08 Andrew Cagney <cagney@gnu.org>
464
5c26072a
AC
465 * README: Refer to 6.3, not 6.2, update directory listing droppng
466 references to intl/ and mmalloc/.
467 * PROBLEMS: Refer to 6.3 not 6.2.
468
3c8fa307
AC
469 * PROBLEMS: Delete no-longer applicable problems.
470
12b8a2cb
DJ
4712004-11-07 Andrew Cagney <cagney@redhat.com>
472 Daniel Jacobowitz <dan@debian.org>
473 Roland McGrath <roland@redhat.com>
474
475 * Makefile.in (symfile-mem.o): Update dependencies.
476 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): New.
477 (i386_linux_init_abi): Call dwarf2_frame_set_signal_frame_p.
478 * inf-ptrace.c (inf_ptrace_attach): Call
479 observer_notify_inferior_created.
480 * inftarg.c (child_attach): Likewise.
481 * symfile-mem.c: Include "observer.h", "auxv.h", and "elf/common.h".
482 (symbol_file_add_from_memory): Take NAME argument. Use it for
483 the new BFD's filename.
484 (add_symbol_file_from_memory_command): Update call to
485 symbol_file_add_from_memory.
486 (struct symbol_file_add_from_memory_args, add_vsyscall_page)
487 (symbol_file_add_from_memory_wrapper): New.
488 (_initialize_symfile_mem): Register add_vsyscall_page as an
489 inferior_created observer.
490
abbc6945
MK
4912004-11-07 Mark Kettenis <kettenis@gnu.org>
492
493 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Rename from
494 fetch_inferior_registers. Make static.
495 (m68kbsd_store_inferior_registers): Rename from
496 store_inferior_registers. Make static.
497 (_initialize_m68kbsd_nat): Construct and add target vector.
498 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
499 inftarg.o. Add inf-ptrace.o.
500 (NAT_FILE): Set to tm-solib.h.
501 (LOADLIBES): New variable.
502 * config/m68k/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
503 inftarg.o. Add inf-ptrace.o.
504 (NAT_FILE): Delete variable.
505 * config/m68k/obsd.mh (NATDEPFILES): Remove infptrace.o and
506 inftarg.o. Add inf-ptrace.o.
507 (NAT_FILE): Set to tm-solib.h.
508 * config/m68k/nm-nbsdaout.h: Remove file.
509
3ed09a32
DJ
5102004-11-07 Daniel Jacobowitz <dan@debian.org>
511
512 * dwarf2-frame.c (struct dwarf2_frame_ops): Add signal_frame_p.
513 (dwarf2_frame_set_signal_frame_p, dwarf2_frame_signal_frame_p)
514 (dwarf2_signal_frame_unwind): New.
515 (dwarf2_frame_sniffer): Use dwarf2_frame_signal_frame_p.
516 * dwarf2-frame.h (dwarf2_frame_set_signal_frame_p): New prototype.
517
8e763687
MK
5182004-11-07 Mark Kettenis <kettenis@gnu.org>
519
4fb31ed0
MK
520 * Makefile.in (mips64obsd-tdep.o): Fix typo.
521
fabe86c8
MK
522 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Renamed
523 from mipsnbsd_ilp32_solib_svr4_fetch_link_map_offsets. Trim sizes
524 to only include the structure members we actually need.
525 (mipsnbsd_lp64_fetch_link_map_offsets): Renamed from
526 mipsnbsd_lp64_solib_svr4_fetch_link_map_offsets. Trim sizes to
527 only include the structure members we actually need.
528 (mipsnbsd_init_abi): Update.
529
366e93e8
MK
530 * mips64obsd-nat.c: Include "mips-tdep.h".
531 (MIPS64OBSD_NUM_REGS): Remove define.
532 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM): New defines.
533 (mips64obsd_supply_gregset, mips64obsd_collect_gregset): Handle
534 floating-point registers correctly.
535 * Makefile.in (mips64obsd-nat.o): Update dependencies.
536
8e763687
MK
537 * mips64obsd-tdep.c: Include "trad-frame.h", "tramp-frame.h" and
538 "gdb_assert.h".
539 (mips64obsd_sigframe_init): New function.
540 (mips64obsd_sigframe): New variable.
541 (mips64obsd_init_abi): Add comments. Prepend mips64obsd_sigrame
542 unwinder.
543 * Makefile.in (mips64obsd-tdep.o): Update dependencies.
544
5f6a2351
JB
5452004-11-06 Joel Brobecker <brobecker@gnat.com>
546
547 * alpha-mdebug-tdep.c: #include mdebugread.h.
548 Replace alpha_extra_func_info_t by struct mdebug_extra_func_info *.
549 * Makefile.in (alpha-mdebug-tdep.o): Add dependency on mdebugread.h.
550
f059bf6f
AC
5512004-11-05 Andrew Cagney <cagney@gnu.org>
552
553 * dwarf2-frame.c (dwarf2_frame_cache): Only complain when both the
554 CFI and the init_reg method leave the register unspecified.
555 Include the register name in the "Incomplete CFI data" complaint.
556 Supress leading zeros in the address.
557
1234d960
MK
5582004-11-05 Mark Kettenis <kettenis@gnu.org>
559
560 * dwarf2-frame.c (decode_frame_entry_1): Avoid indirection when
561 skipping a personality routine in a CIE augmentation.
562
d75e3c94
JJ
5632004-11-05 Jeff Johnston <jjohnstn@redhat.com>
564
565 * defs.h (fatal, vfatal): New function prototypes.
566 * stack.c (backtrace_command_stub): Stub to call backtrace_command_1
567 via catch_errors.
568 (backtrace_command): Change to call backtrace_command_stub via
569 catch_errors instead of calling backtrace_command_1 directly.
570 (backtrace_full_command): Ditto.
571 * utils.c (error_stream_1): New static function.
572 (verror): Change to call error_stream_1 instead of error_stream.
573 (error_stream): Call error_stream_1 with RETURN_ERROR argument.
574 (vfatal, fatal): New functions.
575
98f276a0
AC
5762004-11-05 Andrew Cagney <cagney@gnu.org>
577
578 * stack.c (parse_frame_specification_1): Clear selected_frame_p
579 when not using selected frame.
580
f724bf08
MK
5812004-11-05 Mark Kettenis <kettenis@jive.nl>
582
583 * dwarf2-frame.c (decode_frame_entry_1): Correctly skip
584 personality routine in a CIE augmentation.
585
c789492a
FL
5862004-11-05 Felix Lee <felix+log1@specifixinc.com>
587
588 * stack.c (set_current_sal_from_frame): New function.
589 (print_args_stub): Use it.
590 (print_frame_info): Don't set sal here.
591
a81b10ae
MK
5922004-11-04 Mark Kettenis <kettenis@gnu.org>
593
594 * dwarf2-frame.c (read_encoded_value): Change type of third
595 argument to `unsigned char *'. Add support for LEB128 encodings.
596
ad766c0a
JB
5972004-11-04 Jim Blandy <jimb@redhat.com>
598
599 * gdbtypes.c (make_qualified_type): Doc fix. Add assertion to
600 prevent cross-objfile references.
601 (make_cv_type): Doc fix. Don't create cross-objfile references,
602 even for stub types.
603 (replace_type): Add assertion to prevent cross-objfile references.
604 (check_typedef): Never resolve a stub type by copying over a type
605 from another file.
606
c46b0409 6072004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
f16d97c9 608
c46b0409
KI
609 * Makefile.in (m32r-tdep.o): Update dependencies.
610 * m32r-tdep.c (m32r_gdbarch_init): Call gdbarch_init_osabi for
611 ABI-specific overrides.
612
9f0b0322 6132004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
f16d97c9 614
9f0b0322
KI
615 * m32r-tdep.c (m32r_memory_insert_breakpoint): Remove
616 unnecessary parallel execution bit.
617 (m32r_memory_remove_breakpoint): Ditto.
618 (m32r_breakpoint_from_pc): Update.
619
d5c27f81
RC
6202004-11-03 Randolph Chung <tausq@debian.org>
621
622 * hppa-tdep.c (hppa_frame_cache): Use frame_pc_unwind instead of
9f0b0322 623 frame_func_unwind to locate the unwind entry.
d5c27f81
RC
624 (hppa_frame_this_id): Likewise.
625
4577593c
AC
6262004-11-03 Andrew Cagney <cagney@gnu.org>
627
628 * gdb/NEWS: Mention internationalization, m32r-*-linux-gnu, 'p'
629 packet, obsolete configurations, end-of-life deprecated_registers.
630
b04de778
MK
6312004-11-02 Mark Kettenis <kettenis@gnu.org>
632
633 * dwarf2-frame.c (read_encoded_value): Set proper size for signed
634 encodings as well as unsigned encodings.
635
9f2feefc
AC
6362004-11-02 Andrew Cagney <cagney@gnu.org>
637
638 * value.h (COERCE_VARYING_ARRAY): Delete.
639 * valops.c (value_cast, value_slice): Delete use.
640 * valarith.c (value_subscript, value_concat): Delete use.
641
117ea3cf
PH
6422004-11-02 Paul Hilfinger <hilfingr@nile.gnat.com>
643
644 * NEWS: GDB understands GNAT Ada.
645
0bbc026e
JM
6462004-11-01 Joseph S. Myers <joseph@codesourcery.com>
647
648 * Makefile.in (ALLDEPFILES): Add amd64-sol2-tdep.c.
649 (amd64-sol2-tdep.o): Add dependencies.
650 * amd64-sol2-tdep.c, config/i386/sol2-64.mh,
651 config/i386/sol2-64.mt: New files.
652 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offset,
653 amd64_sol2_gregset32_reg_offset, _initialize_amd64_sol2_nat): New.
654 (supply_gregset): Correct order of arguments to
655 amd64_supply_native_gregset.
656 (fill_gregset): Correct order of arguments to
657 amd64_collect_native_gregset.
658 * configure.host (i[34567]86-*-solaris2.1[0-9]*): Add new case.
659 * configure.tgt (i[34567]86-*-solaris2.1[0-9]*): Likewise.
660 * configure.in (*-*-solaris2.[[6789]]): Add *-*-solaris2.1[[0-9]]
661 for definition of NEW_PROC_API.
662 * configure: Regenerate.
663
3d38a0a5
JM
6642004-11-01 Joseph S. Myers <joseph@codesourcery.com>
665
666 * MAINTAINERS (Write After Approval): Add myself.
667
f81cd1cf
AC
6682004-11-01 Andrew Cagney <cagney@gnu.org>
669
670 * configure.tgt: Mark d10v-*-* as obsolete.
671 * config/d10v/d10v.mt, d10v-tdep.c: Obsolete files.
672
f4e88c8e
PH
6732004-11-01 Paul N. Hilfinger <Hilfinger@gnat.com>
674
675 * values.c (modify_field): Correct handling of bit-fields that
676 don't fit in 32 bits. Use unsigned operations throughout and
677 simplify the code a bit. Document preconditions.
678
84674fe1
AC
6792004-10-31 Andrew Cagney <cagney@gnu.org>
680
96693b3a
AC
681 * config/pa/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
682 * config/tm-sysv4.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
683 (in_plt_section): Delete.
684
6f296f8f
AC
685 * mips-tdep.c (mips_in_solib_return_trampoline): Delete.
686 (mips_gdbarch_init): Do not set same.
687
618501c0
AC
688 * arch-utils.c (generic_in_solib_call_trampoline): Delete.
689 * arch-utils.h (generic_in_solib_call_trampoline): Delete.
690
b22e8f02
AC
691 * gdbarch.sh (in_solib_call_trampoline): Delete.
692 * gdbarch.h, gdbarch.c: Re-generate.
693
84674fe1
AC
694 * hppa-tdep.c (hppa_stub_unwind_sniffer): Replace
695 IN_SOLIB_CALL_TRAMPOLINE with tdep.in_solib_call_trampoline.
696 * hppa-tdep.h (struct gdbarch_tdep): Add in_solib_call_trampoline.
697 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Set same.
698 * hppa-linux-tdep.c (hppa_linux_init_abi): Ditto.
699
c6d1029f
MK
7002004-10-31 Mark Kettenis <kettenis@gnu.org>
701
702 * mipsnbsd-nat.c: Include "target.h" and "inf-ptrace.h".
703 (mipsnbsd_fetch_inferior_registers): Rename from
704 fetch_inferior_registers. Make static.
705 (mipsnbsd_store_inferior_registers): Rename from
706 store_inferior_registers. Make static.
707 (_initialize_mipsnbsd_nat): New function and prototype.
708 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
709 * config/mips/nbsd.mh (NAT_CLIBS, NAT_FILE): Remove variables.
710 (NATDEPFILES): Remove infptrace.o and inftarg.o. Add
711 inf-ptrace.o.
712
bd9ca83f
AC
7132004-10-31 Andrew Cagney <cagney@gnu.org>
714
19d718a3
AC
715 * xstormy16-tdep.c (xstormy16_in_solib_call_trampoline)
716 (xstormy16_gdbarch_init): Do not set in_solib_call_trampoline,
717 delete corresponding unused function.
718 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Really do not set
719 in_solib_call_trampoline.
720 * config/arm/tm-embed.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
721 * config/powerpc/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
722 * config/mips/tm-nbsd.h: Ditto.
723 * config/arm/tm-linux.h: Ditto.
724 * config/mips/tm-linux.h: Ditto.
725
e8ce19c0
AC
726 * armnbsd-tdep.c (arm_netbsd_aout_init_abi)
727 (arm_netbsd_aout_in_solib_call_trampoline): Do not set
728 in_solib_call_trampoline, delete corresponding unused function.
729 * vaxnbsd-tdep.c (vaxnbsd_aout_in_solib_call_trampoline)
730 (vaxnbsd_aout_init_abi): Ditto.
731 * sparcnbsd-tdep.c (sparcnbsd_aout_in_solib_call_trampoline)
732 (sparc32nbsd_aout_init_abi): Ditto.
733 * ppc-linux-tdep.c (ppc64_in_solib_call_trampoline)
734 (ppc_linux_init_abi): Ditto.
735 * ns32knbsd-tdep.c (ns32knbsd_aout_in_solib_call_trampoline)
736 (ns32knbsd_init_abi_aout): Ditto.
737 * mips-tdep.c (mips_in_call_stub, mips_gdbarch_init): Ditto.
738 * mips-linux-tdep.c (mips_linux_init_abi): Ditto.
739 * m68kbsd-tdep.c (m68kbsd_aout_in_solib_call_trampoline)
740 (m68kbsd_aout_init_abi): Ditto.
741 * i386-cygwin-tdep.c (i386_cygwin_in_solib_call_trampoline)
742 (i386_cygwin_init_abi): Ditto.
743 * i386bsd-tdep.c (i386bsd_aout_in_solib_call_trampoline)
744 (i386bsd_init_abi): Ditto.
745
af380d61
AC
746 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Do not set
747 in_solib_call_trampoline to in_plt_entry, IN_SOLIB_CALL_TRAMPOLINE
748 isn't used by this architecture.
749 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
750 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Ditto.
751 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Ditto.
752 * s390-tdep.c (s390_gdbarch_init): Ditto.
753 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
754 * m68klinux-tdep.c (m68k_linux_init_abi): Ditto.
755 * i386-tdep.c (i386_svr4_init_abi): Ditto.
756 * i386-nto-tdep.c (i386nto_init_abi): Ditto.
757 * arm-linux-tdep.c (arm_linux_init_abi): Ditto.
758 * amd64-tdep.c (amd64_init_abi): Ditto.
759
0528d9f7
AC
760 * vaxnbsd-tdep.c (vaxnbsd_elf_init_abi): Do not set
761 in_solib_call_trampoline to its default value of
762 generic_in_solib_call_trampoline.
763 * ppcobsd-tdep.c (ppcobsd_init_abi): Ditto.
764 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Ditto.
765 * i386obsd-tdep.c (i386obsd_elf_init_abi): Ditto.
766 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Ditto.
767 * i386fbsd-tdep.c (i386fbsd_init_abi): Ditto.
768 * hppabsd-tdep.c (hppabsd_init_abi): Ditto.
769
f9f9eacb
AC
770 * mips-tdep.c (mips_dump_tdep): Don't print any of the macros.
771
a4ffd1e7
AC
772 * config/mips/obsd64.mt (DEPRECATED_TM_FILE): Delete.
773
82e34d2f
AC
774 * config/mips/tm-mips.h: Delete file.
775 * remote-mips.c: Delete tm-mips.h from comment.
776 * config/mips/embed.mt (DEPRECATED_TM_FILE): Delete.
777 * config/mips/tm-nbsd.h: Don't include tm-mips.h.
778 * config/mips/irix6.mt (DEPRECATED_TM_FILE): Delete.
779 * config/mips/tm-linux.h: Don't include tm-mips.h.
780 * config/mips/tm-vxmips.h: Don't include tm-mips.h.
781 * config/mips/irix5.mt (DEPRECATED_TM_FILE):
782 * config/mips/tm-wince.h: Don't include.
783
75dec9cf
AC
784 * mdebugread.h (MDEBUG_EFI_SYMBOL_NAME): Define.
785 * mdebugread.c (MDEBUG_EFI_SYMBOL_NAME): Delete.
786 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
787 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
788
bd9ca83f
AC
789 * mdebugread.h (ecoff_relocate_efi): Delete declaration.
790 * mdebugread.c (ecoff_relocate_efi): Delete function.
791 * objfiles.c (objfile_relocate): Delete #ifdef
792 MDEBUG_EFI_SYMBOL_NAME code.
793
3352ef37
AC
7942004-10-31 Orjan Friberg <organ.friberg@axis.com>
795 Andrew Cagney <cagney@gnu.org>
796
797 * gdbarch.sh (single_step_through_delay): Add.
798 * gdbarch.h, gdbarch.c: Re-generate.
799 * config/mips/tm-mips.h (STEP_SKIPS_DELAY_P, STEP_SKIPS_DELAY)
800 (mips_step_skips_delay): Delete.
801 * mips-tdep.c (mips_single_step_through_delay): Replace
802 mips_step_skips_delay.
803 (mips_gdbarch_init): Set single_step_through_delay.
804 (mips_dump_tdep): Do not print STEP_SKIPS_DELAY.
805
2440b685
MK
8062004-10-31 Mark Kettenis <kettenis@gnu.org>
807
808 * tramp-frame.c (tramp_frame_prepend_unwinder): Set unwinder type
809 from TRAMP_FRAME frame type.
810
56a2fed5
AC
8112004-10-31 Andrew Cagney <cagney@gnu.org>
812
9b792b1d
AC
813 * mdebugread.c (parse_procedure): Wrap use of RA_REGNUM in #ifdef.
814
0a5e8d98
AC
815 * mips-tdep.c (mips_ignore_helper): Delete.
816 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Delete.
817 * infrun.c (handle_inferior_event): Delete #ifdef
818 DEPRECATED_IGNORE_HELPER_CALL code.
819
56a2fed5
AC
820 * config/mips/tm-mips.h (RA_REGNUM): Delete.
821
f69c55b2
MK
8222004-10-31 Mark Kettenis <kettenis@gnu.org>
823
824 * i386v4-nat.c (supply_gregset, supply_fpregset, fill_gregset)
825 (fill_fpregset): Do not compile for 64-bit systems.
826 * i386-sol2-nat.c: Don't include "i386v4-nat.c".
827 * Makefile.in (i386-sol2-nat.o): Update dependencies.
828 * config/i386/i386sol2.mh (NATDEPFILES): Add back i386v4-nat.c.
829
d37cca3d
AC
8302004-10-30 Andrew Cagney <cagney@gnu.org>
831
36b8628e
AC
832 * mdebugread.h: Include "coff/sym.h" and "coff/symconst.h".
833 (struct mdebug_extra_func_info): Define.
834 * config/alpha/tm-alpha.h: Delete same.
835 * config/mips/tm-mips.h: Delete same.
836 * mdebugread.c: Delete same.
837 * Makefile.in: Update dependencies.
838 * mips-mdebug-tdep.c: Include "mdebugread.h".
839
5b123146
AC
840 * objfiles.c: Include "mdebugread.h".
841 * mdebugread.c: Include "mdebugread.h".
842 (ecoff_relocate_cfi): Delete.
843 * config/alpha/tm-alpha.h (ecoff_relcate_cfi): Delete.
844 * config/mips/tm-mips.h (ecoff_relcate_cfi): Delete.
845 * mdebugread.h (ecoff_relocate_efi): New file.
846 * Makefile.in: Update dependencies.
847
b9c3a7de
AC
848 * mips-tdep.c (struct frame_extra_info): Delete.
849 (temp_proc_desc): Delete.
850
f92761ec
AC
851 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Rename
852 MIPS_EFI_SYMBOL_NAME.
853 (mips_extra_func_info_t, mips_extra_func_info): Delete.
854 (struct mdebug_extra_func_info): Replace struct
855 alpha_extra_func_info and alpha_extra_func_info_t.
856 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Rename
857 MIPS_EFI_SYMBOL_NAME.
858 (struct mdebug_extra_func_info): Replace struct
859 alpha_extra_func_info and alpha_extra_func_info_t.
860 * objfiles.c, mips-tdep.c, mips-mdebug-tdep.c: Update.
861 * mdebugread.c, alpha-mdebug-tdep.c:
862
0bb57b31
AC
863 Suggested by Mark Kettenis.
864 * config/mips/tm-mips.h (struct mips_extra_func_info): Delete
865 fields frame_adjust and high_addr.
866 * mips-mdebug-tdep.c (PROC_HIGH_ADDR, PROC_FRAME_ADJUST): Delete.
867 (non_heuristic_proc_desc): Delete references.
868
a5c9623c
AC
869 * mips-tdep.h (MIPS_PRID_REGNUM): Add.
870 * config/mips/tm-mips.h (PRID_REGNUM): Delete.
871 * mips-tdep.c: Update.
872
607fc93c
AC
873 * mips-tdep.h (MIPS_FIRST_EMBED_REGNUM)
874 (MIPS_LAST_EMBED_REGNUM): Add.
875 * config/mips/tm-mips.h (FIRST_EMBED_REGNUM)
876 (LAST_EMBED_REGNUM): Delete.
877 * mipsv4-nat.c, mips-tdep.c, mips-linux-tdep.c: Update.
878
24e05951
AC
879 * config/mips/tm-mips.h (PS_REGNUM): Delete.
880 * mips-tdep.h (MIPS_PS_REGNUM): Add.
881 * remote-vxmips.c, mipsv4-nat.c, mips-tdep.c: Update.
882 * mips-linux-nat.c: Update.
883
613e114f
AC
884 * mips-tdep.h: Add comments on registers.
885 (MIPS_UNUSED_REGNUM): Define.
886 * config/mips/tm-mips.h (ZERO_REGNUM, UNUSED_REGNUM)
887 (T9_REGNUM, V0_REGNUM, A0_REGNUM): Delete.
888 * irix5-nat.c, mipsv4-nat.c, mips-linux-tdep.c: Update.
889 * mips-linux-nat.c, remote-mips.c: Update.
890
d37cca3d
AC
891 * config/mips/tm-mips.h (t_insn): Delete.
892 * mips-tdep.c (mips_fetch_instruction, mips_skip_trampoline_code):
893 Replace t_insn with ULONGEST.
894
ceb41096
MK
8952004-10-30 Mark Kettenis <kettenis@gnu.org>
896
d1180b0f
MK
897 * mipsnbsd-tdep.c: Include "regset.h" and "gdb_assert.h".
898 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM)
899 (MIPSNBSD_NUM_GREGS, MIPSNBSD_NUM_FPREGS): New defines.
900 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
901 (mipsnbsd_core_fns, mipsnbsd_elfcore_fns): Remove variables.
902 (mipsnbsd_core_osabi_sniffer): New function.
903 (mipsnbsd_init_abi): Set regset_from_core_section.
904 (_initialize_mipsnbsd_tdep): Remove calls to
905 deprecated_add_core_fns.
906 (mipsnbsd_supply_fpregset, mipsnbsd_supply_gregset)
907 (mipsnbsd_regset_from_core_section): New functions.
908 (mipsnbsd_gregset, mipsnbsd_fpregset): New variables.
909 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
910
ceb41096
MK
911 * procfs.c (procfs_fetch_registers, procfs_store_registers): Like
912 Remove optimization for DEPRECATED_FP_REGNUM.
913
ec4045ea
AC
9142004-10-30 Andrew Cagney <cagney@gnu.org>
915
cd65c8f6
AC
916 * alpha-tdep.c (alpha_setup_arbitrary_frame): Delete.
917 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Delete.
918 (alpha_setup_arbitrary_frame): Delete.
919 * mips-tdep.c (setup_arbitrary_frame): Delete.
920 * config/mips/tm-mips.h (SETUP_ARBITRARY_FRAME): Delete.
921 (setup_arbitrary_frame): Delete.
922 * stack.c (parse_frame_specification_1): When specified, call
923 create_new_frame with two parameters. Delete #ifdef
924 SETUP_ARBITRARY_FRAME.
925
95ac2dcf
AC
926 * config/mips/tm-mips.h (MIPS16_INSTLEN, MIPS_NUMREGS)
927 (MIPS_INSTLEN): Delete.
928 * mips-tdep.h (enum mips_insn_size): Rename MIPS32_INSN_SIZE and
929 MIPS16_INSN_SIZE to MIPS_INSN32_SIZE and MIPS_INSN16_SIZE.
930 * remote-mips.c, mips-tdep.c: Update.
931
1a8da44d
AC
932 * config/mips/embed.mt (TDEPFILES): Add mips-mdebug-tdep.o.
933 * mips-mdebug-tdep.h, mips-mdebug-tdep.c: New files.
934 * mips-tdep.c (mips_mdebug_frame_cache)
935 (mips_mdebug_frame_this_id, mips_mdebug_frame_prev_register)
936 (mips_mdebug_frame_unwind, mips_mdebug_frame_sniffer)
937 (mips_mdebug_frame_base_address, mips_mdebug_frame_sniffer)
938 (mips_mdebug_frame_base_sniffer, non_heuristic_proc_desc)
939 (compare_pdr_entries, the_bfd, mips16_fetch_instruction): Delete.
940 (mips_gdbarch_init): Do not append mdebug sniffers.
941 (PROC_LOW_ADDR, PROC_HIGH_ADDR, PROC_FRAME_OFFSET)
942 (PROC_FRAME_REG, PROC_FRAME_ADJUST, PROC_REG_MASK)
943 (PROC_FREG_MASK, PROC_REG_OFFSET, PROC_FREG_OFFSET, PROC_PC_REG)
944 (PROC_SYMBOL, _PROC_MAGIC_): Delete.
945 * Makefile.in: Update dependencies.
946
e6bc2e8a
AC
947 * mips-tdep.h (mips_abi_regsize): Declare.
948 * mips-tdep.c (mips_abi_regsize): Make non-static.
949
ec4045ea
AC
950 * mips-tdep.c (gdb_print_insn_mips): Simplify.
951 (make_mips16_addr): Delete.
e6bc2e8a 952
6b16acab
MK
9532004-10-30 Mark Kettenis <kettenis@gnu.org>
954
955 * i386-sol2-nat.c: New file.
956 * Makefile.in (ALLDEPFILES): Add i386-sol2-nat.c and
957 i386-sol2-tdep.c.
958 (i386-sol2-nat.o): Update dependencies.
959 * config/i386/i386sol2.mh (NATDEPFILES): Remove i386v4.o, add
960 i386-sol2-nat.o.
961
8b622e6a
AC
9622004-10-30 Andrew Cagney <cagney@gnu.org>
963
964 Total breakage identified by Joel Brobecker.
965 * mips-tdep.c (after_prologue): Delete.
966 (mips_skip_prologue): Use skip_prologue_using_sal.
967 (heuristic_proc_desc): Delete, unused.
968
772cf8be
MK
9692004-10-30 Mark Kettenis <kettenis@gnu.org>
970
971 * procfs.c (proc_get_gregs, proc_get_fpregs, proc_set_gregs)
972 (proc_set_fpregs, procfs_fetch_registers, procfs_store_registers):
973 Cleanup coding style.
974
9c8fdbfa
AC
9752004-10-30 Andrew Cagney <cagney@gnu.org>
976
0fe7e7c8
AC
977 * mips-tdep.h (mips_pc_is_mips16): Declare.
978 * mips-tdep.c (mips_pc_is_mips16): Rename pc_is_mips16, make
979 non-static. Update calls.
980
1b295c3d
AC
981 * cli/cli-decode.c (add_setshow_enum_cmd): New function.
982 * command.h (add_setshow_enum_cmd): Declare.
983 * mips-tdep.c (_initialize_mips_tdep): Use add_setshow_enum_cmd.
984
6bcadd06
AC
985 * mips-tdep.c (_initialize_mips_tdep): Use
986 add_setshow_zinteger_cmd.
987
9c8fdbfa
AC
988 * mips-tdep.c (mips_eabi_extract_return_value)
989 (mips_o64_extract_return_value, mips_o64_store_return_value)
990 (return_value_location, mips_eabi_reg_struct_has_addr)
991 (mips_eabi_use_struct_convention)
992 (mips_eabi_store_return_value): Delete.
993 (mips_eabi_store_return_value): New function.
994 (mips_eabi_return_value): New function.
995 (mips_gdbarch_init): For O64 and EABI, delete
996 extract_return_value, store_return_value, use_struct_convention
997 and reg_struct_has_addr, add return_value.
998
1d93fe1a
AC
999 * mips-tdep.c (read_signed_register): Use
1000 regcache_cooked_read_signed.
1001
303d2914
MK
10022004-10-30 Mark Kettenis <kettenis@gnu.org>
1003
1004 * mipsread.c: Cleanup coding style.
1005 (mipscoff_new_init, mipscoff_symfile_init, mipscoff_symfile_read)
1006 (mipscoff_symfile_finish): Remove prototypes.
1007
10082004-10-29 Mark Kettenis <kettenis@gnu.org>
1009
1010 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
1011 (mips_mdebug_frame_cache, mips16_scan_prologue)
1012 (mips32_scan_prologue, mips_stub_frame_cache)
1013 (heuristic_proc_start, heuristic_proc_desc)
1014 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
1015 (mips_n32n64_return_value, mips_o32_push_dummy_call)
1016 (mips_o32_return_value, mips_o64_push_dummy_call)
1017 (mips_step_skips_delay, mips_skip_trampoline_code)
1018 (mips_gdbarch_init): Use MIPS_A0_REGNUM instead of A0_REGNUM,
1019 MIPS_RA_REGNUM instead of RA_REGNUM, MIPS_T9_REGNUM instead of
1020 T9_REGNUM, MIPS_V0_REGNUM instead of V0_REGNUM, MIPS_ZERO_REGNUM
1021 instead of ZERO_REGNUM, MIPS32_SIZE_INSN instead of MIPS_INSTLEN
1022 and MIPS16_INSN_SIZE instead of MIPS16_INSTLEN.
1023 (mips_dump_tdep): Don't print A0_REGNUM, RA_REGNUM,
1024 T9_REGNUM, V0_REGNUM, ZERO_REGNUM, MIPS_INSTLEN and
1025 MIPS16_INSTLEN. Use MIPS_A0_REGNUM instead of A0_REGNUM.
1026 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
1027 (mips_linux_n32n64_sigframe_init): Use MIPS_ZERO_REGNUM instead of
1028 ZERO_REGNUM.
1029 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
1030 (mipsnbsd_cannot_store_register): Use MIPS_ZERO_REGNUM instead of
1031 ZERO_REGNUM.
1032 (mipsnbsd_get_longjmp_target): Use MIPS_A0_REGNUM instead of
1033 A0_REGNUM.
1034 * mipsnbsd-nat.c: Include "mips-tdep.h".
1035 (getregs_supplies): Use MIPS_ZERO_REGNUM instead of ZERO_REGNUM.
1036 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
1037
1c8831c5
AC
10382004-10-29 Andrew Cagney <cagney@gnu.org>
1039
1040 * stack.c (parse_frame_specification_1): New function based on
1041 parse_frame_specification. Add message and selected_frame_p
1042 paramters. Truely always return non-NULL.
1043 (parse_frame_specification): Call parse_frame_specification_1.
1044 (frame_info): Update. Eliminate target_has_stack check.
1045 (select_frame_command): Update.
1046
b04f3ab4
AC
10472004-10-29 Andrew Cagney <cagney@gnu.org>
1048
1049 * frame.h (get_selected_frame): Add message parameter.
1050 * frame.c (get_selected_frame): Add and use message parameter.
1051 * stack.c (current_frame_command, return_command, locals_info)
1052 (catch_info, args_info, up_silently_base, down_silently_base): Use
1053 get_selected_frame with an explicit message.
1054 * thread.c, stack.c, sh-tdep.c, sh64-tdep.c: Update.
1055 * remote-rdp.c, remote-mips.c, remote-e7000.c: Update.
1056 * ocd.c, mi/mi-main.c, mi/mi-cmd-stack.c: Update.
1057 * infrun.c, inflow.c, infcmd.c, frame.c: Update.
1058 * findvar.c, eval.c, corelow.c, bsd-kvm.c: Update.
1059 * breakpoint.c: Update.
1060
10612004-10-29 Andrew Cagney <cagney@gnu.org>
00b25ff3
AC
1062
1063 * trad-frame.c (trad_frame_get_prev_register): Use
1064 frame_unwind_register instead of frame_register_unwind, do not
1065 recurse the register's location.
1066 * xstormy16-tdep.c (xstormy16_frame_prev_register):
1067 * sparc-tdep.c (sparc32_frame_prev_register): Ditto.
1068 * sparc64-tdep.c (sparc64_frame_prev_register): Ditto.
1069 * sh-tdep.c (sh_frame_prev_register): Ditto.
1070 * m68k-tdep.c (m68k_frame_prev_register): Ditto.
1071 * i386-tdep.c (i386_frame_prev_register): Ditto.
1072 * dwarf2-frame.c (dwarf2_frame_prev_register): Ditto.
1073 * amd64-tdep.c (amd64_frame_prev_register): Ditto.
1074
7a952542
MK
10752004-10-28 Mark Kettenis <kettenis@jive.nl>
1076
c18c06be
MK
1077 * proc-events.c: Fix several coding-style issues. Consistently
1078 use #ifdef instead of #if defined().
1079 (proc_prettyfprint_fault, proc_prettyfprint_faultset): Use
1080 ARRAY_SIZE.
1081 (_initialize_proc_events): New prototype.
1082
7a952542
MK
1083 * proc-why.c: Fix several coding-style issues.
1084 (proc_prettyfprint_why): Use ARRAY_SIZE.
1085
fcad0fa4
JB
10862004-10-27 Jim Blandy <jimb@redhat.com>
1087
1088 * remote.c (fetch_register_using_p): Construct 'p' packet in a
1089 manner independent of the host byte order.
1090
c163184f
MK
10912004-10-27 Mark Kettenis <kettenis@gnu.org>
1092
1093 * mips-tdep.c (id_delayed): Remove prototype.
1094
9c46b6f0
MK
10952004-10-26 Mark Kettenis <kettenis@gnu.org>
1096
1097 * mips-tdep.h: Add MIPS_ZERO_REGNUM, MIPS_AT_REGNUM,
1098 MIPS_V0_REGNUM. MIPS_A0_REGNUM, MIPS_T9_REGNUM and MIPS_RA_REGNUM
1099 to enum with register numbers.
1100 (enum mips_insn_size): New enum.
1101
0d0266c6
AC
11022004-10-26 Andrew Cagney <cagney@gnu.org>
1103
e7d6a6d2
AC
1104 * config/mips/tm-linux.h: Delete #undef SKIP_TRAMPOLINE_CODE.
1105 * mips-tdep.c (mips_skip_trampoline_code): Rename mips_skip_stub.
1106 (mips_gdbarch_init): Update.
1107 (mips_dump_tdep): Do not print SKIP_TRAMPOLINE_CODE.
1108
c5115f39
AC
1109 * config/arm/tm-linux.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1110 * config/mips/tm-nbsd.h, config/mips/tm-linux.h: Delete #undef
1111 IN_SOLIB_RETURN_TRAMPOLINE.
1112 * mips-tdep.c (mips_dump_tdep): Do not print
1113 IN_SOLIB_RETURN_TRAMPOLINE.
1114 (mips_in_solib_return_trampoline): Rename mips_in_return_stub.
1115 (mips_gdbarch_init): Update.
1116
0d0266c6
AC
1117 * mips-tdep.h (mips_software_single_step): Move to here ...
1118 * config/mips/tm-mips.h: ... from here.
1119 * config/mips/tm-linux.h (SOFTWARE_SINGLE_STEP_P)
1120 (SOFTWARE_SINGLE_STEP): Delete.
1121 * mips-linux-tdep.c (mips_linux_init_abi): Set software_single_step.
1122
156a53ca
AC
11232004-10-25 Andrew Cagney <cagney@gnu.org>
1124
1125 * NEWS: Add Changes since GDB 6.3 section.
1126
f27cf670
AS
11272004-10-23 Andreas Schwab <schwab@suse.de>
1128
156a53ca
AC
1129 * ada-lang.c (grow_vect): Return the new array instead of
1130 expecting pointer to pointer to avoid violation of aliasing rules.
f27cf670
AS
1131 * ada-lang.h (GROW_VECT): Adapt call to grow_vect.
1132
121d8485
UW
11332004-10-23 Ulrich Weigand <uweigand@de.ibm.com>
1134
1135 * s390-tdep.c (enum pv_boolean): Remove.
1136 (pv_is_array_ref): Remove.
1137 (s390_on_stack): Remove.
1138 (S390_NUM_SPILL_SLOTS): Remove.
1139 (struct s390_prologue_data): Remove members 'spill' and 'back_chain',
1140 add members 'gpr_slot', 'fpr_slot', and 'back_chain_saved_p'.
1141 (s390_store): Track all stores of orginal incoming registers to the
1142 stack constant offsets relative to the CFA, instead of only tracking
1143 stores into specific spill slots.
1144 (s390_load): Likewise.
1145 (s390_analyze_prologue): Adapt to struct s390_prologue_data changes.
1146 (s390_prologue_frame_unwind_cache): Likewise. Only track registers
1147 defined as call-saved by the ABI.
1148 (s390_push_dummy_call): Use bottom of dummy call argument save area
1149 as return value, not the top. Do not store to the called function's
1150 register save area.
1151 (s390_unwind_dummy_id): Adapt accordingly.
1152
0a6ddd08
AC
11532004-10-23 Andrew Cagney <cagney@gnu.org>
1154
1155 * objfiles.h (struct objfile): Rename obj_private to
1156 deprecated_obj_private, sym_private to deprecated_sym_private, and
1157 sym_stab_info to deprecated_sym_stab_info.
1158 * gdb-stabs.h: Update.
1159 * elfread.c: Update.
1160 * dbxread.c: Update.
1161 * coffread.c: Update.
1162 * xcoffread.c: Update.
1163 * symfile.c: Update.
1164 * somread.c: Update.
1165 * nlmread.c: Update.
1166 * mdebugread.c: Update.
1167 * hpread.c: Update.
1168 * coffread.c: Update.
1169
abc08782
MK
11702004-10-23 Mark Kettenis <kettenis@gnu.org>
1171
1172 * mips64obsd-nat.c, mips64obsd-tdep.c: New files.
1173 * configure.host: Add mips64*-*-openbsd*.
1174 * configure.tgt: Add mips64*-*-openbsd*.
1175 * Makefile.in (ALLDEPFILES): Add mips64obsd-nat.o,
1176 mips64obsd-tdep.c.
1177 (mips64obsd-nat.o, mips64obsd-tdep.o): New dependecies.
1178 * config/mips/obsd64.mh, config/mips/obsd64.mt: New files.
1179
fc062ac6
JB
11802004-10-21 Joel Brobecker <brobecker@gnat.com>
1181
1182 * symtab.c (symbol_search_name): Minor reformatting.
1183
5bccb4d1
JB
11842004-10-20 Joel Brobecker <brobecker@gnat.com>
1185
1186 * symtab.h: Fix typo in comment.
1187
a738430d
MK
11882004-10-19 Mark Kettenis <kettenis@gnu.org>
1189
1190 * dwarf2read.c (struct comp_unit_head): Fix coding style.
1191 (dwarf_decode_line_header): Likewise.
1192
f2cb65ca
MC
11932004-10-19 Michael Chastain <mec.gnu@mindspring.com>
1194
1195 * NEWS: GDB works with GCC -feliminate-dwarf2-dups.
1196
09e55376
AC
11972004-10-19 Andrew Cagney <cagney@gnu.org>
1198
1199 GDB 6.3 branch created.
1200 * version.in: Bump to version 6.3.50_2004-10-19-cvs.
1201
bc5f45f8
JB
12022004-10-15 Joel Brobecker <brobecker@gnat.com>
1203
1204 * dwarf2read.c (set_cu_language): Set language to Ada for
1205 DW_LANG_Ada83 and DW_LANG_Ada95.
1206
2941da8c
MC
12072004-10-15 Michael Chastain <mec.gnu@mindspring.com>
1208
1209 From Andreas Schwab <schwab@suse.de>:
1210 * Makefile.in (.y.c, .l.c.): Fix the substitutions for
1211 for xmalloc and xrealloc.
1212
34a17005
AC
12132004-10-15 Andrew Cagney <cagney@gnu.org>
1214
1215 * ada-exp.y, ada-lex.l: Use xmalloc and xrealloc through out.
1216 * inf-ptrace.c: Include "gdb_wait.h" instead of <wait.h>.
1217 * Makefile.in (.y.c, .l.c): Don't replace xmalloc with xxmalloc.
1218 Update dependencies.
1219
714e53ab
PH
12202004-10-15 Paul Hilfinger <Hilfinger@gnat.com>
1221
1222 * ada-lang.c (ada_lookup_symbol): Correct comment.
1223 (ada_evaluate_subexp): Change error message for
1224 OP_FUNCALL case so as not to indicate an internal error.
1225
12262004-10-15 Joel Brobecker <brobecker@gnat.com>
1227
1228 Committed by Paul Hilfinger.
1229 * ada-lang.c (ada_template_to_fixed_record_type_1): Detect bogus
1230 type sizes in XVE/XVU types, and emit a warning when that happens,
1231 instead of rounding up the size of the resulting type.
1232 Some minor reformatting.
1233 (ada_is_aligner_type): Do not consider a type as an aligner type
1234 if there is a corresponding XVS type as well.
1235 (ada_evaluate_subexp): For TERNOP_SLICE, handle cases where we
1236 have several levels of pointer indirection to the array.
1237
12382004-10-15 Jerome Guitton <guitton@gnat.com>
1239
1240 Committed by Paul Hilfinger.
1241 * ada-lang.c (check_size): New function.
1242 (coerce_unspec_val_to_type): call check_size to make sure
1243 that the object size is reasonable.
1244 (ada_evaluate_subexp): in UNOP_IND: Ditto. In TERNOP_SLICE:
1245 Implements the case when we get a reference when we evaluate
1246 the expression of one of the bounds of the slice.
1247 (ada_value_struct_elt): when a packed array field is
1248 a reference, use ada_coerce_ref to dereference it; use
1249 ada_value_ind only if it is a pointer.
1250
29639122
JB
12512004-10-15 Joel Brobecker <brobecker@gnat.com>
1252
1253 * mips-tdep.c (mips32_scan_prologue): Move the implementation up
1254 a bit to avoid the necessity of an advance declaration. Remove
1255 declaration.
1256 (set_reg_offset): Move implemenation up.
1257 (mips16_get_imm): Likewise.
1258 (mips16_scan_prologue): Likewise.
1259 (reset_saved_regs): Likewise.
1260 (mips32_scan_prologue): Likewise.
1261
a65bbe44
JB
12622004-10-14 Joel Brobecker <brobecker@gnat.com>
1263
1264 * mips-tdep.c (mips32_scan_prologue): Add advance declaration.
1265 Remove sp as a parameter, compute it internally instead. Move
1266 prologue scanning limit from heuristic_proc_desc to here.
1267 (mips16_scan_prologue): Likewise.
1268 (mips_insn16_frame_cache): Replace call to heuristic_proc_desc
1269 by call to mips16_scan_prologue.
1270 (mips_insn32_frame_cache): Replace call to heuristic_proc_desc
1271 by call to mips32_scan_prologue.
1272 (heuristic_proc_desc): Remove code that's no longer necessary.
1273 Update calls to mips16_scan_prologue and mips32_scan_prologue.
1274 (mips_skip_prologue): Update calls to mips16_scan_prologue
1275 and mips32_scan_prologue.
1276
1c645fec
JB
12772004-10-14 Joel Brobecker <brobecker@gnat.com>
1278
1279 * mips-tdep.c (mips16_scan_prologue): Merge code from
1280 mips16_skip_prologue. Now return the address of the first
1281 instruction past the function prologue.
1282 (mips16_skip_prologue): Remove, no longer necessary.
1283 (mips_skip_prologue): Replace call to mips16_skip_prologue
1284 by call to mips16_scan_prologue.
1285
98b4dd94
JB
12862004-10-14 Joel Brobecker <brobecker@gnat.com>
1287
1288 * mips-tdep.c (mips32_scan_prologue): Merge code from
1289 mips32_skip_prologue. Now return the address of the first
1290 instruction past the function prologue.
1291 (mips32_skip_prologue): Remove. No longer necessary.
1292 (mips16_skip_prologue): Add parameter end_pc instead of
1293 computing it.
1294 (mips_skip_prologue): Compute the upper limit for the
1295 prologue scanning. Update call to mips16_skip_prologue.
1296 Replace call to mips32_skip_prologue by call to
1297 mips32_scan_prologue.
1298
ad4c72d2
MK
12992004-10-14 Mark Kettenis <kettenis@gnu.org>
1300
dfaf8edb
MK
1301 * hppa-tdep.c (hppa_frame_cache): Add support for OpenBSD and
1302 NetBSD system call stubs that store %rp in the ERP slot of the
1303 stack frame.
1304
3e3a28f1
MK
1305 * source.c: Always define O_BINARY to 0 if not defined already.
1306 (openp): Unconditionally use O_BINARY.
1307
ad4c72d2
MK
1308 * top.c (gdb_readline): Always accept "\r\n" as a line-ending.
1309 * event-top.c (gdb_readline2): Likewise.
1310
52bd1401
OF
13112004-10-14 Orjan Friberg <orjanf@axis.com>
1312
1313 * cris-tdep.c (_initialize_cris_tdep): Re-add call to
1314 deprecated_add_core_fns which was removed by mistake.
1315
e0e25c6c
KB
13162004-10-13 Kevin Buettner <kevinb@redhat.com>
1317
1318 * ia64-linux-nat.c (fill_gregset, fill_fpregset): Replace
1319 references to deprecated_registers[] with equivalent code.
1320
9f335945
KB
13212004-10-13 Kevin Buettner <kevinb@redhat.com>
1322
1323 * rs6000-tdep.c (rs6000_push_dummy_call): Replace references to
1324 ``deprecated_registers'' with equivalent code. Use gdb_assert()
1325 instead of explicit test and print statement.
1326
06c2338d
MK
13272004-10-12 Mark Kettenis <kettenis@gnu.org>
1328
1b9445c2
MK
1329 * sparc-nat.c: Include "inf-ptrace.h".
1330 (sparc_target): New function.
1331 * sparc-nat.h: Update copyright year.
1332 (sparc_target): New prototype.
1333 * sparcnbsd-nat.c: Don't include "gdbcore.h", include "target.h".
1334 (_initialize_sparcnbsd_nat): Construct and add target vector.
1335 * sparc64nbsd-nat.c: Include "target.h".
1336 (_initialize_sparc64nbsd_nat): Construct and add target vector.
1337 * Makefile.in (sparc-nat.o, sparcnbsd-nat.o, sparc64nbsd-nat.o):
1338 Update dependencies.
1339 * config/sparc/nbsd64.mh (NATDEPFILES): Remove infptrace.o and
1340 inftarg.o, add inf-ptrace.o.
1341 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1342 inftarg.o, add inf-ptrace.o and bsd-kvm.o.
1343 (NAT_FILE): Set to nm-bsd.h.
1344 (LOADLIBES): New variable.
1345 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
1346 infarg.o, add inf-ptrace.o.
1347 * config/sparc/nm-nbsdaout.h: Remove file.
1348 * config/sparc/fbsd.mh (NATDEPFILES): Add inf-ptrace.o.
1349 * config/sparc/linux.mh (NATDEPFILES): Add inf-ptrace.o.
1350 * config/sparc/linux64.mh (NATDEPFILES): Add inf-ptrace.o.
1351
06c2338d
MK
1352 * defs.h [!FOPEN_RB]: Include "fopen-bin.h" instead of
1353 "fopen-same.h". Update comment.
1354
3303a276
MK
13552004-10-11 Mark Kettenis <kettenis@gnu.org>
1356
1357 * i386gnu-nat.c: Include "gdb_string.h".
1358 (fetch_fpregs): Use i387_supply_fxsave to fill the floating-point
1359 registers when the floating-point state isn't initialized.
1360 * Makefile.in (i386gnu-nat.o): Update dependencies.
1361
04c663e3
DA
13622004-10-11 David Anderson <davea@sgi.com>
1363
1364 * regcache.c (regcache_raw_read): Comment was missing "to".
1365 Extraneous ' removed.
1366 * gdb_thread_db.h (struct td_thrinfo): ti_lid field
1367 comment now describes use.
1368
a5f6c8f5
OF
13692004-10-11 Orjan Friberg <orjanf@axis.com>
1370
1371 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start)
1372 (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
1373 (cris_sigtramp_frame_this_id, cris_sigtramp_frame_prev_register)
1374 (cris_sigtramp_frame_sniffer): New functions.
1375 (cris_gdbarch_init): Hook in signal trampoline unwinder.
1376 (cris_dwarf2_reg_to_regnum, cris_dwarf2_frame_init_reg): New functions.
1377 (cris_gdbarch_init): Hook in Dwarf-2 unwinder.
1378 (struct gdbarch_tdep, set_cris_dwarf2_cfi, cris_dump_tdep)
1379 (cris_gdbarch_init, _initialize_cris_tdep): Add CRIS Dwarf-2 CFI usage
1380 command.
1381 (cris_version_update): Remove, replace with ...
1382 (set_cris_version): New function.
1383 (struct gdbarch_tdep, cris_mode, cris_mode_update)
1384 (cris_cannot_store_register, cris_dump_tdep, cris_gdbarch_init)
1385 (_initialize_cris_tdep): Remove CRIS mode command.
1386 (cris_fpless_backtrace, _initialize_cris_tdep): Remove
1387 cris-fpless-backtrace command.
1388 (cris_scan_prologue): Fix prologue scanning limit.
1389 (cris_register_type): Update to reflect actual registers.
1390 (cris_register_bytes_ok) Remove.
1391 (cris_gdbarch_init): Remove support for CRIS v8 and v9.
1392 Remove set_gdbarch_deprecated_register_size,
1393 set_gdbarch_deprecated_register_byte, set_gdbarch_register_bytes_ok.
1394
77109804
AC
13952004-10-10 Andrew Cagney <cagney@gnu.org>
1396
1397 * ada-lang.c (lim_warning): Add ATTR_FORMAT prototype and FIXME
1398 comment.
1399
25652d4f
JB
14002004-10-10 Joel Brobecker <brobecker@gnat.com>
1401
1402 * mips-tdep.c (mips16_scan_prologue): Remove redundant code.
1403
1e05a7bf
JB
14042004-10-10 Joel Brobecker <brobecker@gnat.com>
1405
1406 * mips-tdep.c (mips16_scan_prologue): Renames
1407 mips16_heuristic_proc_desc. Update comment.
1408 (mips32_scan_prologue): Renames mips32_heuristic_proc_desc.
1409 (heuristic_proc_desc): Update calls to the 2 functions above.
1410
c68a4142
JB
14112004-10-10 Joel Brobecker <brobecker@gnat.com>
1412
1413 * mips-tdep.c (mips_insn16_frame_cache): Remove unused variables.
1414 Update comments. Also immediately return empty cache when the start
1415 address of our function could not be found.
1416 (mips_insn32_frame_cache): Likewise.
1417
0fce0821
JB
14182004-10-10 Joel Brobecker <brobecker@gnat.com>
1419
1420 * mips-tdep.c (mips16_decode_reg_save): Delete, no longer used.
1421 (mips_insn16_frame_cache): Pass frame cache in call to
1422 heuristic_proc_desc. Move some code to mips16_heuristic_proc_desc.
1423 Remove code that became redundant as a consequence.
1424 (mips32_heuristic_proc_desc): No longer compute a fake
1425 procedure descriptor. Compute the full frame cache instead.
1426 Some minor comment reformatting.
1427
b672553e
JB
14282004-10-10 Jim Blandy <jimb@redhat.com>
1429
1430 * MAINTAINERS (generic symtabs, dwarf readers, elf reader, stabs
1431 reader, tracing bytecode stuff): Remove self.
1432
9cc52bde
MK
14332004-10-10 Mark Kettenis <kettenis@gnu.org>
1434
cc9784b6
MK
1435 * sparc64-linux-tdep.c: Update copyright year. Don't include
1436 "solib-svr4.h".
1437 (sparc64_linux_svr4_fetch_link_map_offsets): Remove function.
1438 (sparc64_linux_init_abi): Don't set solib_svr4_link_map_offsets.
1439 * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
1440
ee8aef23
MK
1441 * sparc-linux-tdep.c: Update copyright year.
1442 (sparc_linux_sigtramp_start): Change first argument from CORE_ADDR
1443 to struct frame_info *. Use safe_frame_unwind_memory instead of
1444 deprecated_read_memory_nobpt.
1445 (sparc32_linux_sigtramp_start, sparc32_linux_rt_sigtramp_start):
1446 Change argumen from CORE_ADDR to struct frame_info *. Adjust for
1447 changed signature of sparc_linux_sigtramp_start.
1448 (sparc32_linux_pc_in_sigtramp): Remove function.
1449 (sparc32_linux_sigtramp_p): New function.
1450 (sparc32_linux_sigtramp_frame_sniffer): Use
1451 sparc32_linux_sigtramp_p instead of sparc32_linux_pc_in_sigtramp.
1452
bc73f8cc
MK
1453 * sparc-linux-tdep.c (sparc32_linux_svr4_fetch_link_map_offsets):
1454 Remove function.
1455 (sparc32_linux_init_abi): Don't set solib_svr4_link_map_offsets.
1456
a2249542
MK
1457 * ada-lang.c (lim_warning): Re-implement as a varargs function.
1458 (decode_packed_array_type, value_subscript_packed)
1459 (ada_evaluate_subexp, to_fixed_range_type): Remove redundant
1460 argument in call to lim_warning.
1461
9cc52bde
MK
1462 * configure.in: Really disable the TUI if an enhanced curses
1463 library isn't found.
1464 * configure: Regenerate.
1465
151fc45b
MK
14662004-10-09 Mark Kettenis <kettenis@gnu.org>
1467
1468 * config/i386/nbsdaout.mh (NAT_FILE): Set to solib.h.
1469 * config/i386/nbsdelf.mh (NAT_FILE): Set to solib.h.
1470 * config/i386/nm-nbsdaout.h: Remove file.
1471 * config/i386/nm-fbsd.h (link_object, lo_name, lo_library)
1472 (lo_unused, lo_major, lo_minor, lo_next, link_map, lm_addr)
1473 (lm_name, lm_next, lm_lop, lm_lob, lm_rwt, lm_ld, lm_lpd)
1474 (link_dynamic_2, ld_loaded, ld_need, ld_rules, ld_got, ld_plt)
1475 (ld_rel, ld_hash, ld_stab, ld_stab_hash, ld_buckets, ld_symbols)
1476 (ld_symb_size, ld_text, ld_plt_sz, rtc_symb, rtc_sp, rtc_next)
1477 (ld_debug, ldd_version, ldd_in_debugger, ldd_sym_loaded)
1478 (ldd_bp_addr, ldd_bp_inst, ldd_cp, link_dynamic, ld_version)
1479 (ldd, ld_un, ld_2): Remove defines.
1480 * config/i386/nm-obsd.h: Likewise.
1481
375c0479
PH
14822004-10-09 Paul Hilfinger <hilfingr@nile.gnat.com>
1483
1484 * ada-lex.l: Remove useless rule whose right-context clause
1485 causes unreferenced static function warning for yyrealloc.
1486 (ada_flex_use): Remove the artificial reference to yyrealloc.
1487
c8e73a31
AC
14882004-10-08 Andrew Cagney <cagney@gnu.org>
1489
1490 * target.h (struct target_ops): Rename to_xfer_memory to
1491 deprecated_xfer_memory.
1492 * target.c: Update.
1493 (deprecated_debug_xfer_memory): Rename debug_to_xfer_memory.
1494 * wince.c: Update.
1495 * win32-nat.c: Update.
1496 * v850ice.c: Update.
1497 * uw-thread.c: Update.
1498 * thread-db.c: Update.
1499 * sol-thread.c: Update.
1500 * remote.c: Update.
1501 * remote-vx.c: Update.
1502 * remote-st.c: Update.
1503 * remote-sim.c: Update.
1504 * remote-sds.c: Update.
1505 * remote-rdp.c: Update.
1506 * remote-rdi.c: Update.
1507 * remote-mips.c: Update.
1508 * remote-m32r-sdi.c: Update.
1509 * remote-e7000.c: Update.
1510 * procfs.c: Update.
1511 * ppc-bdm.c: Update.
1512 * nto-procfs.c: Update.
1513 * monitor.c: Update.
1514 * linux-nat.c: Update.
1515 * inftarg.c: Update.
1516 * hpux-thread.c: Update.
1517 * go32-nat.c: Update.
1518 * gnu-nat.c: Update.
1519 * exec.c: Update.
1520 * corelow.c: Update.
1521 * bsd-kvm.c: Update.
1522 * aix-thread.c: Update.
1523
aa869812
AC
15242004-10-08 Andrew Cagney <cagney@gnu.org>
1525
1526 * target.c (debug_target): Move to near start of file.
1527 (target_stopped_data_address_p): Re-org logic, add casts.
1528
8dcef9cf
MK
15292004-10-02 Mark Kettenis <kettenis@gnu.org>
1530
1531 * solib-sunos.c [HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS] (link_map)
1532 (lm_addr, lm_name, lm_next, link_dynamic_2, ld_loaded, rtc_symb)
1533 (rtc_sp, rtc_next, ld_debug, ldd_in_debugger, ldd_bp_addr)
1534 (ldd_bp_inst, ldd_cp, link_dynamic, ld_version, ldd, ld_un, ld_2):
1535 New defines.
1536
4aa7a7f5
JJ
15372004-10-08 Jeff Johnston <jjohnstn@redhat.com>
1538
1539 * target.h (to_stopped_data_address): Change prototype to
1540 take a CORE_ADDR pointer and return an int.
1541 * target.c (update_current_target): Change to_stopped_data_address
1542 to match new prototype.
1543 (debug_to_stopped_data_address): Change appropriately.
1544 * breakpoint.c (bpstat_stop_status): Change call to
1545 target_stopped_data_address to use new prototype.
1546 * frv-tdep.c (frv_have_stopped_data_address): New function.
1547 (frv_stopped_data_address): Change to new prototype and
1548 functionality.
1549 * ia64-linux-nat.c (ia64_stopped_data_address): Change to new
1550 prototype and functionality.
1551 (ia64_stopped_by_watchpoint): New function.
1552 * i386-nat.c (i386_stopped_data_address): Change to new
1553 prototype and functionality.
1554 (i386_stopped_by_watchpoint): New function.
1555 * remote.c (remote_stopped_data_address): Change to new prototype
1556 and functionality.
1557 * remote-m32r-sdi.c (m32r_stopped_data_address): Ditto.
1558 * config/frv/tm-frv.h (frv_stopped_data_address): Change prototype.
1559 (STOPPED_BY_WATCHPOINT): Change to use frv_have_stopped_data_address.
1560 * config/i386/nm-i386.h (STOPPED_BY_WATCHPOINT): Change to use
1561 new i386_stopped_by_watchpoint function.
1562 (i386_stopped_by_watchpoint): New prototype.
1563 (i386_stoppped_data_address): Change to new prototype.
1564 * config/ia64/nm-linux.h (STOPPED_BY_WATCHPOINT): Change to use
1565 new ia64_stopped_by_watchpoint function.
1566 (ia64_stopped_by_watchpoint): New prototype.
1567 (ia64_stopped_data_address): Ditto.
1568
61ee279c
PH
15692004-10-08 Paul Hilfinger <Hilfinger@gnat.com>
1570
1571 * ada-typeprint.c (ada_print_type): Use int_string for printing
1572 modulus of modular type.
1573 * ada-lang.h (ada_modulus): Change return type to unsigned.
1574 * ada-lang.c (ada_language_arch_info): Correct type of
1575 string_char_type.
1576 (ada_modulus): Return unsigned result.
1577 (ada_lookup_symbol): Remove user disambiguation and modify comment
1578 accordingly.
1579
15802004-10-08 Eric Botcazou <ebotcazou@act-europe.fr>
1581
1582 Committed by Paul Hilfinger.
1583 * ada-lang.c (decode_packed_array): On big-endian targets,
1584 left-justify the value if it comes with a modular type.
1585
15862004-10-08 Joel Brobecker <brobecker@gnat.com>
1587
1588 Committed by Paul Hilfinger.
1589 * ada-lang.c (template_to_static_fixed_type): Fix a small typo.
1590 (is_name_suffix): Add support for "___JM" suffixes.
1591 (ada_check_typedef): Renames ada_completed_type.
1592 Update all users of CHECK_TYPEDEF, check_typedef, and
1593 ada_complete_type to call ada_check_typedef.
1594 * ada-typeprint.c: Likewise.
1595 * ada-valprint.c: Likewise.
1596
b6c25a56
CV
15972004-10-08 Corinna Vinschen <vinschen@redhat.com>
1598
1599 * infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
1600
83ca6a46
NR
16012004-10-08 Nick Roberts <nickrob@snap.net.nz>
1602
1603 * MAINTAINERS: Update e-mail address.
1604
1fd8cd20
DJ
16052004-10-07 Daniel Jacobowitz <dan@debian.org>
1606
1607 From Maciej W. Rozycki <macro@mips.com>:
1608 * mips-tdep.c (mips32_next_pc): Check the register's contents,
1609 not its number for BLEZ/BLEZL and BGTZ/BGTZL.
1610
cea15572
KI
16112004-10-07 Kei Sakamoto <sakamoto.kei@renesas.com>
1612
1613 * m32r-tdep.c (decode_prologue): Support functions written
1614 in assembler language. Recognize trap instructions as the
1615 end of prologue.
1616 (m32r_frame_unwind_cache): Ditto.
1617 (m32r_skip_prologue): Extend search limit. Quit analyzing
1618 prologue if pc's location is not readable.
1619
23485554
PH
16202004-10-06 Paul N. Hilfinger <Hilfinger@gnat.com>
1621
1622 * Makefile.in (.l.c): Do conversions of names of alloc and free
1623 functions that are done for .y.c files, plus special one
1624 for yy_flex_realloc. Also, correct missing-file tests here.
1625 * ada-lex.l (malloc, free): Remove macros.
1626 (resize_tempbuf): Use "realloc"; rely on sed changes to convert to
1627 xrealloc.
1628 (ada_flex_use): Dummy definition to remove warnings about unused
1629 functions.
1630 * ada-exp.y (dummy_string_to_ada_operator): Temporary definition
1631 to suppress warning.
1632
c0409442
CV
16332004-10-06 Corinna Vinschen <vinschen@redhat.com>
1634
1635 * sh-tdep.c (sh_return_value_nofpu): New function, implementing
1636 RETURN_VALUE.
1637 (sh_return_value_fpu): Ditto for CPUs with FPU.
1638 (sh_gdbarch_init): Remove STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
1639 RETURN_VALUE_ON_STACK and USE_STRUCT_CONVENTION throughout.
1640 Install sh_return_value_nofpu resp. sh_return_value_fpu as
1641 RETURN_VALUE functions.
1642
9bed62d7
CV
16432004-10-06 Corinna Vinschen <vinschen@redhat.com>
1644
1645 * sh-tdep.c (sh_pseudo_register_read): Add PSEUDO_BANK_REGNUM handling.
1646 (sh_pseudo_register_write): Ditto.
1647
03131d99
CV
16482004-10-06 Corinna Vinschen <vinschen@redhat.com>
1649
1650 * sh-tdep.c (IS_MACL_STS): New define.
1651 (IS_MOVI20): Ditto.
1652 (IS_MACL_LDS): Ditto.
1653 (sh_analyze_prologue): Recognize STS.L MACL,@-r15 and MOVI20
1654 instructions in prologue.
1655 (sh_in_function_epilogue_p): Recognize LDS.L @r15+,MACL and MOVI20
1656 instructions in epilogue.
1657
da962468
CV
16582004-10-06 Corinna Vinschen <vinschen@redhat.com>
1659
1660 * sh-tdep.c (SH_NUM_REGS): Define as 67.
1661 (sh_sh_register_name): Add eight empty register names.
1662 (sh_sh3_register_name): Ditto.
1663 (sh_sh3e_register_name): Ditto.
1664 (sh_sh2e_register_name): Ditto.
1665 (sh_sh2a_register_name): New function, defining SH2A register set.
1666 (sh_sh2a_nofpu_register_name): New function, defining SH2A register set
1667 in nofpu case.
1668 (sh_sh_dsp_register_name): Add eight empty register names.
1669 (sh_sh3_dsp_register_name): Ditto.
1670 (sh_sh4_register_name): Ditto.
1671 (sh_sh4_nofpu_register_name): Ditto.
1672 (sh_sh4al_dsp_register_name): Ditto.
1673 (sh2a_show_regs): New function.
1674 (sh2a_nofpu_show_regs): New function.
1675 (sh_sh2a_register_type): New function.
1676 (do_bank_register_info): New function.
1677 (sh_print_pseudo_register): Call do_bank_register_info.
1678 Call sh_print_pseudo_register for valid "bank" register.
1679 (sh_sh2a_register_sim_regno): New function.
1680 (sh_gdbarch_init): Add bfd_mach_sh2a and bfd_mach_sh2a_nofpu handling.
1681 Increment pseudo register count by one for all sh variants with
1682 pseudo registers to accomodate pseudo bank register.
1683 * sh-tdep.h: Add register numbers for R0_BANK0_REGNUM, MACHB_REGNUM,
1684 IVNB_REGNUM, PRB_REGNUM, GBRB_REGNUM, MACLB_REGNUM, BANK_REGNUM,
1685 IBCR_REGNUM, IBNR_REGNUM, TBR_REGNUM and PSEUDO_BANK_REGNUM.
1686 Increment pseudo register numbers.
1687
1326e61b
CV
16882004-10-06 Corinna Vinschen <vinschen@redhat.com>
1689
1690 * dwarf2read.c (read_subroutine_type): Call make_function_type
1691 instead of lookup_function_type.
1692
146c42e3
JB
16932004-10-05 Jim Blandy <jimb@redhat.com>
1694
1695 * linux-nat.c (_initialize_linux_nat): Rename child_ops.
1696 (Previous change missed some uses.)
1697
1df84f13
AC
16982004-10-05 Andrew Cagney <cagney@gnu.org>
1699
1700 * target.h (deprecated_child_ops): Rename child_ops.
1701 * wince.c: Update copyright. Rename child_ops.
1702 * win32-nat.c: Rename child_ops.
1703 * target.c: Rename child_ops.
1704 * rs6000-nat.c: Rename child_ops.
1705 * linux-nat.c: Rename child_ops.
1706 * infttrace.c: Rename child_ops.
1707 * inftarg.c: Rename child_ops.
1708 * infptrace.c: Rename child_ops.
1709 * hppah-nat.c: Update copyright. Rename child_ops.
1710 * hpux-thread.c: Update copyright. Rename child_ops.
1711
21e3b9b9
DJ
17122004-10-05 Daniel Jacobowitz <dan@debian.org>
1713
1714 * remote.c (remote_xfer_partial): Handle TARGET_OBJECT_MEMORY.
1715
de83afe7
AC
17162004-10-05 Andrew Cagney <cagney@gnu.org>
1717
1718 * version.in: Bump to version 6.2.50_YYYY-MM-DD-cvs.
1719
10b3939b
DJ
17202004-10-05 Daniel Jacobowitz <dan@debian.org>
1721
1722 * dwarf2read.c (REF_HASH_SIZE): Move earlier.
1723 (die_ref_table): Remove.
1724 (struct dwarf2_cu): Add DIES, DEPENDENCIES, and DIE_REF_TABLE.
1725 (struct dwarf2_per_cu_data): Add PSYMTAB. Add a comment describing
1726 the usage of this type.
1727 (struct dwarf2_per_objfile): Update comment for ALL_COMP_UNITS.
1728 (struct dwarf2_pinfo, PST_PRIVATE, DWARF_INFO_OFFSET): Remove.
1729 (struct dwarf2_queue_item, dwarf2_queue, dwarf2_queue_tail): New.
1730 (dwarf2_create_include_psymtab): Update comment.
1731 (find_partial_die): Remove third argument. Remove unreachable call
1732 to error ().
1733 (dwarf2_find_containing_comp_unit): Update comments. Change one
1734 assertion to an error. Remove an unreachable error.
1735 (dwarf2_find_comp_unit): Update comments.
1736 (type_at_offset): Remove dead code.
1737 (make_cleanup_free_die_list, dwarf2_empty_hash_tables): Remove.
1738 (store_in_ref_table): Add CU argument.
1739 (follow_die_ref): Take DIE, attribute, and CU arguments. Handle
1740 inter-compilation-unit references.
1741 (load_full_comp_unit, process_full_comp_unit): New functions, based
1742 on psymtab_to_symtab_1.
1743 (psymtab_to_symtab_1): Use them.
1744 (dwarf2_add_dependence): New function.
1745 (dwarf2_build_psymtabs_hard): Set the psymtab in per_cu. Always create
1746 a per_cu structure, and save it in READ_PSYMTAB_PRIVATE.
1747 (partial_die_parent_scope, guess_structure_name): Update for changes
1748 to find_partial_die.
1749 (dwarf2_psymtab_to_symtab): Initialize dwarf2_per_objfile here.
1750 (queue_comp_unit, process_queue, dwarf2_release_queue): New.
1751 (read_comp_unit): Don't call dwarf2_empty_hash_tables.
1752 (read_die_and_children): Update call to store_in_ref_table.
1753 (do_free_die_list_cleanup): Remove.
1754 (fixup_partial_die): Update for changes to find_partial_die.
1755 (read_full_die): Handle queueing absolute references.
1756 (read_attribute_value): Use DW_ADDR for all DW_FORM_ref* forms.
1757 (dwarf2_attr, die_specification, die_type)
1758 (die_containing_type, dwarf2_extension): Update calls to
1759 follow_die_ref.
1760 (dump_die): Update DW_FORM_ref* handling.
1761 (dwarf2_get_ref_die_offset): Likewise.
1762 (free_one_comp_unit): Release the dies list.
1763 (dwarf2_mark_helper): New function.
1764 (dwarf2_mark): Use it.
1765
998bdd68
MK
17662004-10-05 Mark Kettenis <kettenis@jive.nl>
1767
1768 * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
1769 when writing to memory.
1770
14588880
KI
17712004-10-05 Kei Sakamoto <sakamoto.kei@renesas.com>
1772
1773 * m32r-tdep.c (m32r_use_struct_convention): Delete function.
1774 (m32r_extract_struct_value_address): Delete function.
1775 (m32r_return_value): New function.
1776 (m32r_gdbarch_init): Instead of store_return_value,
1777 extract_return_value, deprecated_extract_struct_value_address
1778 and deprecated_use_struct_convention, set return_value.
1779
dd5e6932
DJ
17802004-10-03 Daniel Jacobowitz <dan@debian.org>
1781
1782 * dwarf2read.c (read_subrange_type): Add comment for variable
1783 sized arrays.
1784
7dc1ef8d
PH
17852004-10-03 Paul Hilfinger <hilfingr@nile.gnat.com>
1786
1787 * Makefile.in (.l.c): Modify rule for compatibility with recent
1788 versions of flex, and remove most command-line options.
1789 * ada-lex.l: Add %options line in place of -I -i and -s command-line
1790 options.
1791
1f8173e6
PH
17922004-10-02 Paul N. Hilfinger <Hilfinger@gnat.com>
1793
1794 Turn on initial Ada support (mainly expression evaluation).
1795
1796 * Makefile.in (SFILES): Remove ada-tasks.c.
1797 (HFILES_NO_SRCDIR): Add ada-lang.h.
1798 (COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
1799 (YYOBJ): Add ada-exp.o.
1800 (rule .l.c): Generalize to not mention ada.
1801 * symtab.c: Include ada-lang.h.
1802 (symbol_natural_name, symbol_demangled_name)
1803 (symbol_search_name): Add Ada case.
1804
cb85a953
AC
18052004-10-01 Andrew Cagney <cagney@gnu.org>
1806
3f3db248
AC
1807 * Makefile.in (COMMON_OBS): Add inf-child.o.
1808 * config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
1809 * config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
1810 * config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
1811 * config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
1812 * config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
1813 * config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
1814 * config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
1815 * config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
1816 * config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
1817 * config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
1818 * config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
1819 * config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
1820 * config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
1821
cb85a953
AC
1822 * target.c (xfer_using_stratum): Change return type to LONGEST.
1823 On each iteration offset, readbuf and writebuf.
1824 * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
1825 partial_length, and read/modify/write predicate, update comments.
1826 Pass buffer.word to ptrace write.
1827
963a6417
PH
18282004-10-01 Paul N. Hilfinger <Hilfinger@gnat.com>
1829
1830 * symfile.c (init_filename_language_table): Add extensions for
1831 Ada.
1832 * defs.h (enum language): Add language_ada.
1833 * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
1834 * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
1835 (add_symbols_from_enclosing_procs): Make a no-op for now.
1836 (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
1837 (extended_canonical_line_spec, find_sal_from_funcs_and_line)
1838 (find_line_in_linetable, find_next_line_in_linetable)
1839 (read_all_symtabs, is_plausible_func_for_line)
1840 (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
1841 (is_runtime_sym_defined, check_size): Remove declaration.
1842 (function_name_from_pc, ada_translate_error_message)
1843 (ada_lookup_minimal_symbol): Remove definition.
1844 (ada_add_block_symbols): Remove useless label.
1845 * ada-lang.h (ada_maybe_exception_partial_symbol): Remove
1846 useless declaration.
1847 (ada_is_exception_sym): Likewise.
1848
9b32d526
KI
18492004-09-30 Kei Sakamoto <sakamoto.kei@renesas.com>
1850
1851 Add m32r-linux support.
1852 * configure.tgt: Add m32r*-*-linux*.
1853 * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
1854 and m32r-linux-tdep.c.
1855 (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
1856 * m32r-tdep.c: Move some definitions to m32r-tdep.h.
1857 * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
1858 m32r-linux-tdep.c.
1859 * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
1860 config/m32r/linux.mh, config/m32r/linux.mt,
1861 config/m32r/nm-linux.h: New files.
1862
2de118d3
JB
18632004-09-30 Joel Brobecker <brobecker@gnat.com>
1864
1865 * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
1866 (mips32_fetch_instruction): Remove, unused.
1867
a9fe69d1
JB
18682004-09-30 Joel Brobecker <brobecker@gnat.com>
1869
1870 * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
1871 conditions that will always be true.
1872
bc8ffc12
MK
18732004-09-30 Mark Kettenis <kettenis@gnu.org>
1874
ba0cd111
MK
1875 * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
1876 (vaxbsd_fetch_inferior_registers): Rename from
1877 fetch_inferior_registers. Make static.
1878 (vaxbsd_store_inferior_registers): Rename from
1879 store_inferior_registers. Make static.
1880 (_initialize_vaxbsd_nat): Construct and add target vector.
1881 * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1882 inftarg.o. Add inf-child.o and inf-ptrace.o.
1883 * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
1884 inftarg.o. Add inf-child.o and inf-ptrace.o.
1885 (NAT_FILE): Remove.
1886 * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
1887 inftarg.o. Add inf-child.o and inf-ptrace.o.
1888 (NAT_FILE): Remove.
1889 * Makefile.in (vaxbsd-nat.o): Update dependencies.
1890
bc8ffc12
MK
1891 * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
1892 (m88kbsd_fetch_inferior_registers): Rename from
1893 fetch_inferior_registers. Make static.
1894 (m88kbsd_store_inferior_registers): Rename from
1895 store_inferior_registers. Make static.
1896 (_initialize_m88kbsd_nat): New prototype and function.
1897 * config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
1898 inftarg.o. Add inf-child.o and inf-ptrace.o.
1899 (NAT_FILE): Remove.
1900 * Makefile.in (m88kbsd-nat.o): Update dependencies.
1901
27394598
AC
19022004-09-30 Andrew Cagney <cagney@gnu.org>
1903
1904 * target.c (target_xfer_partial): New function.
1905 (target_read_memory_partial, target_write_memory_partial)
1906 (default_xfer_partial, target_read_partial, target_write_partial)
1907 (xfer_using_stratum): Use.
1908 (debug_to_xfer_partial): Delete function.
1909 (setup_target_debug): Do not override to_xfer_partial.
1910
74a4fe32
MK
19112004-09-30 Mark Kettenis <kettenis@chello.nl>
1912
1913 * fork-child.c: Update copyright year. Fix coding style.
1914
982526a1
MK
19152004-09-29 Mark Kettenis <kettenis@gnu.org>
1916
1917 * defs.h (msavestring, mstrsave): Remove prototypes.
1918 * utils.c (msavestring, mstrsave): Remove functions.
1919 * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
1920 * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
1921 of mstrsave.
1922 * source.c (find_and_open_source): Use xstrdup instead of
1923 mstrsave.
1924
b8eb5af0
AC
19252004-09-30 Andrew Cagney <cagney@gnu.org>
1926
0779438d
AC
1927 * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
1928 (inf_ptrace_xfer_memory): Delete.
1929 * target.c (target_xfer_partial_p, xfer_using_stratum): New.
1930 (target_read_memory, target_write_memory): Use xfer_using_stratum
1931 when target_xfer_partial_p.
1932 (debug_target): Move to start of file.
1933 (target_read_memory_partial, target_write_memory_partial): Use
1934 to_xfer_partial when target_xfer_partial_p.
1935
f929a579
AC
1936 * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
1937 inf_ptrace_xfer_memory with equivalent code.
1938 * inftarg.c (child_xfer_partial): When performing a write, pass
1939 writebuf to child_xfer_memory.
1940
b8eb5af0
AC
1941 * target.c (target_read_string): Use target_read_memory instead of
1942 target_xfer_memory.
1943
ee21b650
AC
19442004-09-29 Andrew Cagney <cagney@gnu.org>
1945
d3e05d0d
AC
1946 * infptrace.c (kill_inferior): Fix typo, in previous inline. Pass
1947 the address of status.
1948
ee21b650
AC
1949 * infptrace.c (ptrace_wait): Mention problem with HPUX.
1950 (kill_inferior): Inline ptrace_wait call.
1951 * linux-nat.c (kill_inferior): Inline ptrace_wait call.
1952 * inftarg.c (child_wait): Inline ptrace_wait call.
1953
a182eed6
AC
1954 * target.h (struct target_ops): Delete field to_post_wait.
1955 (target_post_wait): Delete macro.
1956 (child_post_wait): Delete declaration.
1957 * target.c (update_current_target, update_current_target)
1958 (debug_to_post_wait, setup_target_debug): Delete functions and
1959 references.
1960 * infttrace.c (ptrace_wait): Delete call to target_post_wait.
1961 * inftarg.c (child_post_wait): Delete.
1962 (init_child_ops): Do not set to_post_wait.
1963 * infptrace.c (ptrace_wait): Delete call to target_post_wait.
1964 * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
1965 * inf-child.c (inf_child_post_wait): Delete.
1966 (inf_child_target): Do not set to_post_wait.
1967 * inf-ptrace.c (inf_ptrace_post_wait): Delete.
1968 (inf_ptrace_target): Do not set to_post_wait.
1969
ba0c540b
AC
1970 * wince.c (child_ops): Delete.
1971 * win32-nat.c (child_ops): Delete.
1972
81977402
AC
1973 * inftarg.c (inftarg_set_find_memory_regions)
1974 (inftarg_set_make_corefile_notes): Delete functions.
1975 (_initialize_linux_nat): Inline calls.
1976
5ac10fd1
AC
1977 * target.h (child_ops): Declare.
1978 * inftarg.c (child_ops): Move from here ...
1979 * target.c (child_ops): ... to here.
1980 * wince.c (child_ops): Delete extern declaration.
1981 * win32-nat.c (child_ops): Delete extern declaration.
1982 * linux-nat.c (child_ops): Delete extern declaration.
1983 * hpux-thread.c (child_ops): Delete extern declaration.
1984
663408c2 19852004-09-28 Mark Kettenis <kettenis@gnu.org>
890c8f4d
MK
1986
1987 * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
1988
0dad8a66
MK
19892004-09-28 Mark Kettenis <kettenis@gnu.org>
1990
1991 * configure.in: Only set host_makefile_frag when building a native
1992 debugger.
1993 * configure: Regenerate.
e8d74ed3
MK
1994
1995 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
1996 for OpenBSD ELF.
1997
dba24537
AC
19982004-09-28 Andrew Cagney <cagney@gnu.org>
1999
e979516b
AC
2000 Problem identified by Paul Hilfinger.
2001 * Makefile.in (ada_lex_c): Define.
2002 (ada-lex.o): Delete rule.
2003
dba24537
AC
2004 * linux-proc.c: Delete file.
2005 * Makefile.in: Update.
2006 * config/sparc/linux64.mh (NATDEPFILES):
2007 * config/sparc/linux.mh (NATDEPFILES): Update.
2008 * config/s390/s390.mh (NATDEPFILES): Update.
2009 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
2010 * config/powerpc/linux.mh (NATDEPFILES): Update.
2011 * config/pa/linux.mh (NATDEPFILES): Update.
2012 * config/mips/linux.mh (NATDEPFILES): Update.
2013 * config/m68k/linux.mh (NATDEPFILES): Update.
2014 * config/ia64/linux.mh (NATDEPFILES): Update.
2015 * config/i386/linux64.mh (NATDEPFILES): Update.
2016 * config/i386/linux.mh (NATDEPFILES): Update.
2017 * config/arm/linux.mh (NATDEPFILES): Update.
2018 * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
2019 * linux-nat.c: Update copyright. Include <sys/param.h>,
2020 <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
2021 "gdbthread.h", "gdb_stat.h", <fcntl.h>.
2022 (O_LARGEFILE): Possibly define.
2023 (_initialize_linux_nat, linux_proc_pending_signals)
2024 (add_line_to_sigset, linux_proc_xfer_memory)
2025 (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
2026 (linux_nat_do_registers, linux_nat_corefile_thread_callback)
2027 (struct linux_corefile_thread_data)
2028 (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
2029 (child_pid_to_exec_file): Insert code previously in linux-proc.c.
2030
d6b0e80f
AC
20312004-09-16 Andrew Cagney <cagney@gnu.org>
2032
2033 * lin-lwp.c: Delete file.
2034 * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
2035 <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
2036 (status_to_str, init_lwp_list, add_lwp, delete_lwp)
2037 (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
2038 (linux_nat_attach, detach_callback, linux_nat_detach)
2039 (resume_callback, resume_clear_callback, linux_nat_resume)
2040 (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
2041 (stop_wait_callback, linux_nat_has_pending, flush_callback)
2042 (status_callback, running_callback, count_events_callback)
2043 (select_singlestep_lwp_callback, select_event_lwp_callback)
2044 (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
2045 (child_wait, stop_and_resume_callback, linux_nat_wait)
2046 (kill_callback, kill_wait_callback, linux_nat_kill)
2047 (linux_nat_create_inferior, linux_nat_mourn_inferior)
2048 (linux_nat_xfer_memory, linux_nat_thread_alive)
2049 (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
2050 (_initialize_linux_nat): New functions.
2051 * Makefile.in: Update all dependencies.
2052 * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
2053 * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2054 * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
2055 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
2056 * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2057 * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2058 * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2059 * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2060 * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2061 * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
2062 * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2063 * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2064 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
2065
5a174d79
MK
20662004-09-27 Mark Kettenis <kettenis@gnu.org>
2067
2f604c28
MK
2068 * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
2069 config/i386/obsd64.mh (NAT_FILE): Remove variable.
2070
5a174d79
MK
2071 * configure.in: Don't comment out NATDEPFILES in the generated
2072 Makefile if NAT_FILE is unset.
2073 * configure: Regenerate.
2074
b2ed1746
AC
20752004-09-27 Andrew Cagney <cagney@gnu.org>
2076
44cbf7b5
AC
2077 * infrun.c (check_for_old_step_resume_breakpoint): Delete.
2078 (insert_step_resume_breakpoint): Delete.
2079 (insert_step_resume_breakpoint_at_frame): New function.
2080 (insert_step_resume_breakpoint_at_sal): New function.
2081 (handle_inferior_event, step_into_function)
2082 (insert_step_resume_breakpoint): Simplify by using same.
2083
b2ed1746
AC
2084 * gdb_indent.sh (types): Add caddr_t to list of predefined types.
2085
3691b3be
MK
20862004-09-26 Mark Kettenis <kettenis@gnu.org>
2087
36f391e8
MK
2088 * fbsd-proc.c: Remove file.
2089 * Makefile.in (fbsd-proc.o): Remove dependency.
2090
771e236c
MK
2091 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
2092 code together.
2093
3691b3be
MK
2094 * config/i386/nm-fbsd64.h: Remove file.
2095 * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2096
6a5c78a3
MK
20972004-09-26 Mark Kettenis <kettenis@gnu.org>
2098
2099 * amd64-nat.h: Update copyright year.
2100 (amd64bsd_target): New prototype.
2101 * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
2102 (amd64bsd_target): New function.
2103 (amd64bsd_fetch_inferior_registers): Rename from
2104 fetch_inferior_registers. Make static.
2105 (amd64bsd_store_inferior_registers): Rename from
2106 store_inferior_registers. Make static.
2107 * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
2108 (_initialize_amd64fbsd_nat): Construct and add target vector.
2109 * amd64nbsd-nat.o: Include "target.h".
2110 (_initialize_amd64nbsd_nat): Construct and add target vector.
2111 * amd64obsd-nat.c: Include "target.h".
2112 (_initialize_amd64obsd_nat): Construct and add target vector.
2113 * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
2114 * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
2115 inftarg.o and fbsd-proc.o. Add inf-child.o, inf-ptrace.o and
2116 fbsd-nat.o.
2117 * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
2118 Remove infptrace.o and inftarg.o. Add inf-child.o and
2119 inf-ptrace.o.
2120 * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
2121 (amd64obsd-nat.o): Update dependencies.
2122
27acbe61
MK
21232004-09-25 Mark Kettenis <kettenis@gnu.org>
2124
509a5e7d
MK
2125 * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
2126 * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
2127 * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
2128 * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
2129 * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
2130
6e1e94ea
MK
2131 * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
2132 Inline attach call.
2133 (inf_ptrace_detach): Inline detach call.
2134
8b9cf735
MK
2135 * configure.in: Check for waddstr instead of mvwaddstr when
2136 searching for curses library. Check for wborder.
2137 * configure, config.in: Regenerate.
2138 * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
2139 available.
2140
27acbe61
MK
2141 * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
2142
b96ec7ac
AC
21432004-09-24 Robert Picco <Robert.Picco@hp.com>
2144
2145 Committed by Andrew Cagney.
2146 * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
2147 (show_remote_protocol_p_packet_cmd): New. Implement 'p' packet.
2148 configuration.
2149 (fetch_register_using_p): Implement 'p' packet. Based on code by
2150 Fernando Nasser.
2151 (remote_fetch_registers): Call fetch_register_using_p.
2152 (init_all_packet_configs, show_remote_cmd)
2153 (_initialize_remote): Add p-packet.
2154
62ece330
MK
21552004-09-24 Mark Kettenis <kettenis@gnu.org>
2156
2157 * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
2158 instead of call_ptrace. Call wait directly instead of
2159 ptrace_wait.
2160 (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
2161 (inf_ptrace_wait): Inline ptrace_wait call.
2162
00937274
PH
21632004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
2164
2165 * Makefile.in (.y.c): Revert previous change. ../ylwrap was
2166 rolled back instead.
2167
3f2c7a45
PH
21682004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
2169
2170 * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
2171 the new argument order.
2172
b6fcb393
CV
21732004-09-23 Corinna Vinschen <vinschen@redhat.com>
2174
2175 * MAINTAINERS: Remove "broken" from XStormy16 entry.
2176 * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
2177 (struct gdbarch_tdep): Remove.
2178 (struct xstormy16_frame_cache): New frame cache structure.
2179 (xstormy16_register_byte, xstormy16_register_raw_size)
2180 (xstormy16_reg_virtual_type, xstormy16_register_type)
2181 (xstormy16_push_arguments, xstormy16_push_return_address)
2182 (xstormy16_pop_frame, xstormy16_store_struct_return)
2183 (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
2184 (xstormy16_frame_saved_register, xstormy16_get_saved_register)
2185 (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
2186 (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
2187 (xstormy16_frame_chain, xstormy16_frame_chain_valid,
2188 (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
2189 (xstormy16_use_struct_convention): Drop gcc_p parameter.
2190 (xstormy16_extract_return_value, xstormy16_store_return_value):
2191 Regcachify. Drop useless struct convention handling.
2192 (xstormy16_register_type, xstormy16_return_value)
2193 (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
2194 (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
2195 (xstormy16_frame_prev_register, xstormy16_frame_this_id)
2196 (xstormy16_frame_base_address, xstormy16_frame_sniffer)
2197 (xstormy16_unwind_sp, xstormy16_unwind_pc)
2198 (xstormy16_unwind_dummy_id) : New functions.
2199 (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
2200 of xstormy16_scan_prologue.
2201 (xstormy16_frame_unwind): New frame_unwind structure.
2202 (xstormy16_frame_base): New frame_base structure.
2203 (xstormy16_gdbarch_init): Accomodate all of the above changes.
2204 Reshuffle for better readability. Also add dwarf2_frame_sniffer.
2205
1285b746
MK
22062004-09-22 Mark Kettenis <kettenis@gnu.org>
2207
2208 * language.c (language_gdbarch_post_init): Fix off-by one error.
2209
1c379e20
DJ
22102004-09-21 Daniel Jacobowitz <dan@debian.org>
2211
2212 * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
2213 (struct dwarf2_offset_and_type): New.
2214 (set_die_type, reset_die_and_siblings_types, get_die_type)
2215 (offset_and_type_hash, offset_and_type_eq): New functions.
2216 (read_structure_type, read_enumeration_type, read_array_type)
2217 (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
2218 (read_tag_reference_type, read_tag_const_type)
2219 (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
2220 (read_typedef, read_base_type, read_subrange_type): Use
2221 set_die_type.
2222
ae038cb0
DJ
22232004-09-20 Daniel Jacobowitz <dan@debian.org>
2224
2225 * Makefile.in (dwarf2read.o): Update dependencies.
2226 * dwarf2read.c: Include "command.h" and "gdbcmd.h".
2227 (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
2228 and read_in_chain.
2229 (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
2230 mark, and has_form_ref_addr.
2231 (struct dwarf2_per_cu_data): New.
2232 (dwarf2_max_cache_age): New.
2233 (dwarf2_build_psymtabs_hard): Free cached compilation units
2234 after loading. Create and manage the list of compilation units.
2235 Remove unnecessary NULL initialization. Fix indentation.
2236 (psymtab_to_symtab_1): Initialize all of CU.
2237 (dwarf2_read_abbrevs): Set has_form_ref_addr.
2238 (find_partial_die): Use dwarf2_find_containing_comp_unit
2239 and load_comp_unit.
2240 (free_stack_comp_unit): Update comments. Clear the per-cu
2241 pointer. Handle aging.
2242 (dwarf2_find_containing_comp_unit, free_cached_comp_units)
2243 (age_cached_comp_units, free_one_cached_comp_unit)
2244 (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
2245 (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
2246 (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
2247 (show_dwarf2_cmd): New.
2248 (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
2249 and "maint show dwarf2 max-cache-age".
2250 * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
2251 externs.
2252 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
2253 global.
2254
987504bb
JJ
22552004-09-20 Jeff Johnston <jjohnstn@redhat.com>
2256
2257 * dwarf2read.c (typename_concat): Change prototype to accept obstack
2258 and dwarf2_cu struct pointer as arguments. Change function to use
2259 obstack if provided and use dwarf2_cu to determine language-specific
2260 separator.
2261 (partial_die_parent_scope): Change comment to include java. Use
2262 new version of typename_concat instead of obconcat.
2263 (partial_die_full_name): Use typename_concat.
2264 (read_namespace): Ditto.
2265 (read_enumeration_type): Use typename_concat instead of obconcat.
2266 (new_symbol): Ditto.
2267 (add_partial_symbol): Enhance tests for C++ to also test for Java.
2268 (guess_structure_name): Ditto.
2269 (read_subroutine_type): Ditto.
2270 (read_structure_type): Ditto.
2271 (is_vtable_name): Add Java support.
2272 (determine_class_name): Switch to new typename_concat call.
2273 (determine_prefix): Switch to new typename_concat call.
2274 * jv-exp.y (FuncStart): New pattern.
2275 (MethodInvocation): Add support for simple function calls. Change
2276 warning message for other forms of inferior call currently not
2277 supported.
2278 * valarith.c (value_subscript): Treat an array with upper-bound
2279 of -1 as unknown size.
2280
d9c8471e
DJ
22812004-09-20 Daniel Jacobowitz <dan@debian.org>
2282
2283 * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
2284 (lookup_partial_symtab): Use symtab_to_fullname.
2285
d73f140a
JB
22862004-09-19 Jim Blandy <jimb@redhat.com>
2287
2288 * minsyms.c (lookup_minimal_symbol): Doc fix.
2289
adbef1f0
AC
22902004-09-20 Andrew Cagney <cagney@gnu.org>
2291
2292 * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
2293 CHILD_RESUME.
2294 * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
2295 * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
2296 KILL_INFERIOR.
2297 * infptrace.c: Update.
2298
d092d1a2
DJ
22992004-09-19 Daniel Jacobowitz <dan@debian.org>
2300
2301 * symtab.c (output_source_filename): Mark first argument as const.
2302 (sources_info): Use symtab_to_fullname and psymtab_to_fullname
2303 for "info sources" output.
2304
86d9e1d7
MK
23052004-09-20 Mark Kettenis <kettenis@gnu.org>
2306
2307 * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
2308 <machine/vmparam.h>.
2309 (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
2310 (register_u_addr): Remove prototype.
2311
9a6c8ef4
MK
23122004-09-19 Mark Kettenis <kettenis@gnu.org>
2313
9692934b
MK
2314 * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
2315 (i386bsd_fetch_inferior_registers): Rename from
2316 fetch_inferior_registers. Make static.
2317 (i386bsd_store_inferior_registers): Rename from
2318 store_inferior_registers. Make static.
2319 (i386bsd_target): New function.
2320 * i386bsd-nat.h: New file.
2321 * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
2322 "i386bsd-nat.h".
2323 (i386fbsd_resume): Rename from child_resume. Make static.
2324 (_initialize_i386fbsd_nat): Construct and add target vector.
2325 * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
2326 (_initialize_i386nbsd_nat): Construct and add target vector.
2327 * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
2328 Remove defines.
2329 * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
2330 and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
2331 * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
2332 inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
2333 (LOADLIBES): New variable.
2334 * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
2335 inf-ptrace.o. Remove inftarg.o.
2336 * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
2337 inf-ptrace.o. Remove inftarg.o.
2338 * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
2339 inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
2340 (LOADLIBES): New variable.
2341 * Makefile.in (i386bsd_nat_h): New variable.
2342 (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
2343 dependencies.
2344
3510d1f2
MK
2345 * sparc64nbsd-tdep.c: Include "objfiles.h".
2346 (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
2347 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
2348 svr4_lp64_fetch_link_map_offsets.
2349 * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
2350 "nbsd-tdep.h".
2351 (sparc64obsd_init_abi): Set in_solib_call_trampoline and
2352 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
2353 svr4_lp64_fetch_link_map_offsets.
2354 * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
2355 dependencies.
2356
578c1c03
MK
2357 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
2358 * fbsd-nat.h: New file.
2359 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
2360 (fbsd_nat_h): New variable.
2361 (fbsd-nat.o): New dependency.
2362
7a7b73b7
MK
2363 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
2364 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
2365
9a6c8ef4
MK
2366 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
2367 comment.
2368
72d5681a
PH
23692004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
2370
2371 * ada-exp.y (type_int): New function to add layer of abstraction
2372 around references to expression types.
2373 (type_long): Ditto.
2374 (type_long_long): Ditto.
2375 (type_float): Ditto.
2376 (type_double): Ditto.
2377 (type_long_double): Ditto.
2378 (type_char): Ditto.
2379 (type_system_address): Ditto.
2380 (simple_exp): Use type_* functions in place of builtin_*
2381 variables.
2382 (exp): Ditto.
2383 (write_var_from_name): Ditto.
2384 (write_object_renaming): Ditto.
2385 * ada-lang.c (ada_create_fundamental_type): Remove redundant
2386 declaration.
2387 (build_ada_types): Remove, replacing with...
2388 (ada_language_arch_info): New function to initialize primitive
2389 type vector in language_arch_info.
2390 (ada_array_length): Remove use of builtin_type_ada_int.
2391 (value_pos_atr): Ditto.
2392 (ada_evaluate_subexp): Ditto.
2393 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
2394 builtin_type_ada_long_long, builtin_type_ada_char,
2395 builtin_type_ada_float, builtin_type_ada_double,
2396 builtin_type_ada_long_double, builtin_type_ada_natural,
2397 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
2398 (ada_builtin_types): Remove.
2399 (ada_language_defn): Remove entries for la_builtin_type_vector and
2400 string_char_type and use ada_language_arch_info.
2401 (_initialize_ada_language): Do type-vector initialization along
2402 the lines of c-lang.c.
2403 (ada_create_fundamental_type): Break up line.
2404 (ada_dump_symtab): Remove unused function.
2405 (enum ada_primitive_types): Define.
2406 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
2407 builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
2408 builtin_type_ada_float, builtin_type_ada_double,
2409 builtin_type_ada_long_double, builtin_type_ada_natural,
2410 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
2411 * ada-lex.l: Use type_* functions in place of builtin_* variables.
2412 (processInt): Ditto.
2413 (processReal): Ditto.
2414 (name_lookup): Ditto.
2415 * ada-typeprint.c (print_range): Use builtin_type_int, not
2416 builtin_type_ada_int.
2417
4f0be353
MK
24182004-09-18 Mark Kettenis <kettenis@gnu.org>
2419
30b0e2d8
MK
2420 * i386-tdep.c (i386_register_name): Rename regno to regnum.
2421
4f0be353
MK
2422 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
2423 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
2424 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
2425 * configure.in: Improve checks for curses library by checking for
2426 mvwaddstr instead of initscr. Drop HP curses in favour of
2427 standard curses on HP-UX.
2428 * configure: Regenerated.
2429
72d5681a 24302004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
6c038f32
PH
2431
2432 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
2433 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
2434 Minor formatting changes.
2435 (empty_array): Slight rewrite for formatting.
2436 (emit_char,parse,ada_language_defn,build_ada_types,
2437 ada_is_exception_sym, _initialize_ada_language): Move
2438 definitions around.
2439 (ada_dump_symtab): Remove unused definition.
2440 (ada_maybe_exception_partial_symbol): Remove unused definition.
2441
1c8c7407
AC
24422004-09-16 Andrew Cagney <cagney@gnu.org>
2443
7681f339
AC
2444 * inf-child.c: Include "gdb_string.h".
2445 (inf_child_core_file_to_sym_file): Delete.
2446 (inf_child_target): Set to_fetch_registers and to_store_registers.
2447 * inf-ptrace.c: Include "gdb_string.h".
2448 * Makefile.in: Update all dependencies.
2449
1c8c7407
AC
2450 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
2451 problem.
2452
65596487
JB
24532004-09-14 Joel Brobecker <brobecker@gnat.com>
2454
2455 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
2456 call to heuristic_proc_desc. Remove code that became redundant
2457 as a consequence.
2458 (read_next_frame_reg): Remove special case for SP_REGNUM.
2459 (set_reg_offset): Fix small typo.
2460 (reset_saved_regs): New procedure.
2461 (mips32_heuristic_proc_desc): No longer compute a fake
2462 procedure descriptor. Compute the full frame cache instead.
2463 Some minor comment reformatting.
2464
95575b2e
AC
24652004-09-14 Andrew Cagney <cagney@gnu.org>
2466
f200c492
AC
2467 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
2468 maintainer.
2469
95575b2e
AC
2470 * thread-db.c (thread_db_new_objfile): Assume that there is a
2471 child process.
2472
69657671
JB
24732004-09-13 Jim Blandy <jimb@redhat.com>
2474
2475 * valops.c (value_assign): Move 'buffer' to the enclosing block,
2476 so that its storage isn't referenced after its lifetime ends.
2477
6c4182dd
JB
2478 * valops.c (value_assign): 'use_buffer' is initialized to zero,
2479 and never assigned to. Delete it, and the 'if (use_buffer)'
2480 clauses. Delete 'raw_buffer', since it is now unused.
2481
ee31a58d
AC
24822004-09-13 Andrew Cagney <cagney@gnu.org>
2483
2c0fc042
AC
2484 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
2485 * configure: Re-generate.
2486 * nlm/Makefile.in (TAGS): Update.
2487 * Makefile.in (TAGS): Update.
2488 * config/vax/nbsd.mt (TM_FILE): Update.
2489 * config/sparc/vxworks.mt (TM_FILE): Update.
2490 * config/sparc/sol2.mt (TM_FILE): Update.
2491 * config/sparc/sol2-64.mt (TM_FILE): Update.
2492 * config/sparc/obsd64.mt (TM_FILE): Update.
2493 * config/sparc/obsd.mt (TM_FILE): Update.
2494 * config/sparc/nbsd64.mt (TM_FILE): Update.
2495 * config/sparc/nbsd.mt (TM_FILE): Update.
2496 * config/sparc/linux64.mt (TM_FILE): Update.
2497 * config/sparc/linux.mt (TM_FILE): Update.
2498 * config/sparc/fbsd.mt (TM_FILE): Update.
2499 * config/sh/wince.mt (TM_FILE): Update.
2500 * config/sh/nbsd.mt (TM_FILE): Update.
2501 * config/sh/linux.mt (TM_FILE): Update.
2502 * config/sh/embed.mt (TM_FILE): Update.
2503 * config/s390/s390.mt (TM_FILE): Update.
2504 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
2505 * config/rs6000/rs6000.mt (TM_FILE): Update.
2506 * config/rs6000/aix4.mt (TM_FILE): Update.
2507 * config/powerpc/vxworks.mt (TM_FILE): Update.
2508 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
2509 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
2510 * config/powerpc/obsd.mt (TM_FILE): Update.
2511 * config/powerpc/nbsd.mt (TM_FILE): Update.
2512 * config/powerpc/linux.mt (TM_FILE): Update.
2513 * config/powerpc/aix.mt (TM_FILE): Update.
2514 * config/pa/obsd.mt (TM_FILE): Update.
2515 * config/pa/linux.mt (TM_FILE): Update.
2516 * config/pa/hppahpux.mt (TM_FILE): Update.
2517 * config/pa/hppa64.mt (TM_FILE): Update.
2518 * config/pa/hppa.mt (TM_FILE): Update.
2519 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
2520 * config/mips/wince.mt (TM_FILE): Update.
2521 * config/mips/vxmips.mt (TM_FILE): Update.
2522 * config/mips/nbsd.mt (TM_FILE): Update.
2523 * config/mips/linux.mt (TM_FILE): Update.
2524 * config/mips/irix6.mt (TM_FILE): Update.
2525 * config/mips/irix5.mt (TM_FILE): Update.
2526 * config/mips/embed.mt (TM_FILE): Update.
2527 * config/m68k/vxworks68.mt (TM_FILE): Update.
2528 * config/m68k/st2000.mt (TM_FILE): Update.
2529 * config/m68k/os68k.mt (TM_FILE): Update.
2530 * config/m68k/obsd.mt (TM_FILE): Update.
2531 * config/m68k/nbsd.mt (TM_FILE): Update.
2532 * config/m68k/monitor.mt (TM_FILE): Update.
2533 * config/m68k/linux.mt (TM_FILE): Update.
2534 * config/m68k/cisco.mt (TM_FILE): Update.
2535 * config/ia64/linux.mt (TM_FILE): Update.
2536 * config/ia64/aix.mt (TM_FILE): Update.
2537 * config/ia64/ia64.mt (TM_FILE): Update.
2538 * config/i386/vxworks.mt (TM_FILE): Update.
2539 * config/i386/obsd64.mt (TM_FILE): Update.
2540 * config/i386/obsd.mt (TM_FILE): Update.
2541 * config/i386/nto.mt (TM_FILE): Update.
2542 * config/i386/nbsd64.mt (TM_FILE): Update.
2543 * config/i386/nbsd.mt (TM_FILE): Update.
2544 * config/i386/linux64.mt (TM_FILE): Update.
2545 * config/i386/linux.mt (TM_FILE): Update.
2546 * config/i386/i386sol2.mt (TM_FILE): Update.
2547 * config/i386/i386lynx.mt (TM_FILE): Update.
2548 * config/i386/fbsd64.mt (TM_FILE): Update.
2549 * config/i386/fbsd.mt (TM_FILE): Update.
2550 * config/i386/cygwin.mt (TM_FILE): Update.
2551 * config/h8300/h8300.mt (TM_FILE): Update.
2552 * config/frv/frv.mt (TM_FILE): Update.
2553 * config/cris/cris.mt (TM_FILE): Update.
2554 * config/arm/wince.mt (TM_FILE): Update.
2555 * config/arm/nbsd.mt (TM_FILE): Update.
2556 * config/arm/linux.mt (TM_FILE): Update.
2557 * config/arm/embed.mt (TM_FILE): Update.
2558 * config/alpha/nbsd.mt (TM_FILE): Update.
2559 * config/alpha/fbsd.mt (TM_FILE): Update.
2560 * config/alpha/alpha.mt (TM_FILE): Update.
2561 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
2562 * config/alpha/alpha-linux.mt (TM_FILE): Update.
2563
362646f5
AC
2564 Eliminate event_loop_p, always has the value 1.
2565 * defs.h (event_loop_p): Delete macro.
2566 * breakpoint.c (until_break_command): Simplify.
2567 * utils.c (prompt_for_continue): Simplify.
2568 * tracepoint.c (read_actions): Simplify.
2569 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
2570 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
2571 (set_prompt, init_main): Simplify.
2572 (init_signals, disconnect): Delete, unused.
2573 * remote.c (remote_async_resume)
2574 (extended_remote_async_create_inferior): Simplify.
2575 * mi/mi-interp.c (mi_input): Delete, unused.
2576 (mi_interpreter_resume, mi_command_loop): Simplify.
2577 * interps.c (current_interp_command_loop): Simplify.
2578 * infrun.c (proceed): Simplify.
2579 * infcmd.c (run_command, continue_command, step_1, jump_command)
2580 (until_command, advance_command, finish_command)
2581 (interrupt_target_command): Simplify.
2582 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
2583
ee31a58d
AC
2584 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2585 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2586 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2587 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2588 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2589 * mips-tdep.c (mips_dump_tdep): Do not print same.
2590
b7ffc4a8
AC
25912004-09-12 Andrew Cagney <cagney@gnu.org>
2592
2bfb72ee
AC
2593 * valprint.c (print_longest): Use fputs_filtered. Make "val"
2594 const.
2595 * Makefile.in (valprint.o): Delete explict rule.
2596
4f17c3c1
AC
2597 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
2598 reported by Dave Anderson.
2599
f810308b
AC
2600 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
2601
b7ffc4a8
AC
2602 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
2603
28b41c52
AC
26042004-09-12 Salvador E. Tropea <set@users.sf.net>
2605 Andrew Cagney <cagney@gnu.org>
2606
2607 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
2608 (mi_cmd_data_list_register_values)
2609 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
2610 the register number computation.
2611
5bf970f9
AC
26122004-09-12 Andrew Cagney <cagney@gnu.org>
2613
2614 * ppcnbsd-nat.c: Include "inf-ptrace.h".
2615 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
2616 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
2617 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
2618 target.
2619 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
2620 inf-ptrace.o and inf-child.o.
2621 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
2622 * Makefile.in: Update dependencies.
2623
0759e0bf
AC
26242004-09-11 Andrew Cagney <cagney@gnu.org>
2625
2626 * language.c (hex_string, hex_string_custom): Move from here ...
2627 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
2628 (CELLSIZE): Increase to 50.
2629 * language.h (hex_string, hex_string_custom): Move from here ...
2630 * defs.h: ... to here.
2631 * Makefile.in: Update all dependencies.
2632
bb599908
PH
26332004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
2634
2635 * language.c (local_hex_format_custom): Remove.
2636 (local_hex_string): Rename to hex_string, use C format, and move to
2637 utils.c
2638 (local_hex_string_custom): Rename to hex_string_custom and change
2639 interface. Now uses C format. Move to utils.c
2640 (local_octal_format_custom): Remove.
2641 (local_decimal_format_custom): Remove.
2642 (unknown_language_defn): Remove language-specific number
2643 formatting entries.
2644 (auto_language_defn): Ditto.
2645 (local_language_defn): Ditto.
2646 * language.h (struct language_format_info): Delete declaration.
2647 (struct language_defn): Remove language_format_info fields
2648 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
2649 (local_binary_format): Remove macro.
2650 (local_binary_format_prefix): Remove macro.
2651 (local_binary_format_specifier): Remove macro.
2652 (local_binary_format_suffix): Remove macro.
2653 (local_octal_format): Remove macro.
2654 (local_octal_format_prefix): Remove macro.
2655 (local_octal_format_specifier): Remove macro.
2656 (local_octal_format_suffix): Remove macro.
2657 (local_decimal_format): Remove macro.
2658 (local_decimal_format_prefix): Remove macro.
2659 (local_decimal_format_specifier): Remove macro.
2660 (local_decimal_format_suffix): Remove macro.
2661 (local_hex_format): Remove macro.
2662 (local_hex_format_prefix): Remove macro.
2663 (local_hex_format_specifier): Remove macro.
2664 (local_hex_format_suffix): Remove macro.
2665 (local_decimal_format_custom): Remove.
2666 (local_octal_format_custom): Remove.
2667 (local_hex_format_custom): Remove.
2668 (local_hex_string): Rename to hex_string and move to defs.h.
2669 (local_hex_string_custom): Rename to hex_string_custom, change
2670 interface, and move to defs.h.
2671 * utils.c: (int_string): New function.
2672 (hex_string): New function (from language.c).
2673 (hex_string_custom): New function (from language.c).
2674 (octal2str): New function.
2675 (decimal2str): Add width parameter.
2676 (paddr_u): Use new decimal2str interface.
2677 (paddr_d): Ditto.
2678 * defs.h (hex_string): Declare.
2679 (hex_string_custom): Declare.
2680 (int_string): Declare.
2681 * printcmd.c (print_scalar_formatted): Remove localized binary
2682 formatting.
2683 * valprint.c (print_longest): Use int_string.
2684 (print_floating): Use C hex format.
2685 (print_hex_chars): Ditto.
2686 (print_binary_chars): Remove language-specific formatting.
2687 (print_octal_chars): Use C octal format.
2688 (print_decimal_chars): Delocalize format.
2689 (print_decimal): Remove.
2690 * ada-lang.c (ada_language_defn): Remove language-specific number
2691 formatting entries.
2692 * p-lang.c (pascal_language_defn): Ditto.
2693 * c-lang.c (c_language_defn): Ditto.
2694 (cplus_language_defn): Ditto.
2695 (asm_language_defn): Ditto.
2696 (minimal_language_defn): Ditto.
2697 * f-lang.c (f_language_defn): Ditto.
2698 * jv-lang.c (java_language_defn): Ditto.
2699 * m2-lang.c (m2_language_defn): Ditto.
2700 * scm-lang.c (scm_language_defn): Ditto.
2701 * objc-lang.c (objc_language_defn): Ditto.
2702 * memattr.c (mem_info_command): Use renamed hex_string_custom with
2703 new interface.
2704 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
2705 * ui-out.c (ui_out_field_core_addr): Ditto.
2706 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
2707 * exec.c (print_section_info): Ditto.
2708 * i387-tdep.c (print_i387_status_word): Ditto.
2709 (print_i387_control_word): Ditto.
2710 (i387_print_float_info): Ditto.
2711 * maint.c (maint_print_section_info): Ditto.
2712 * solib.c (info_sharedlibrary_command): Ditto.
2713 * somsolib.c (som_sharedlibrary_info_command): Ditto.
2714 * symtab.c (print_msymbol_info): Ditto.
2715 * tracepoint.c (tracepoints_info): Ditto.
2716 * solib-frv.c (lm_base): Ditto.
2717 (frv_current_sos): Ditto.
2718 (enable_break2): Ditto.
2719 (enable_break): Ditto.
2720 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
2721 (process_one_symbol): Ditto.
2722 * infcmd.c (program_info): Ditto.
2723 * mdebugread.c (parse_partial_symbols): Ditto.
2724 * symfile.c (add_symbol_file_command): Ditto.
2725 * cli/cli-cmds.c (edit_command): Ditto.
2726 (list_command): Ditto.
2727 * infcall.c (call_function_by_hand): Ditto.
2728 * remote-vx.c (vx_run_files_info): Ditto.
2729 (vx_wait): Ditto.
2730 (vx_attach): Ditto.
2731 (vx_detach): Ditto.
2732 (vx_kill): Ditto.
2733 * aix-thread.c (pdc_symbol_addrs): Ditto.
2734 (pdc_read_regs): Ditto.
2735 (pdc_write_regs): Ditto.
2736 (pdc_read_data): Ditto.
2737 (pdc_write_data): Ditto.
2738 * d10v-tdep.c (display_trace): Ditto.
2739 * rs6000-nat.c (find_toc_address): Ditto.
2740 * aix-thread.c: Don't include language.h.
2741 * buildsym.c: Ditto.
2742 * dbxread.c: Ditto.
2743 * mdebugread.c: Ditto.
2744 * rs6000-nat.c: Ditto.
2745 * buildsym.c (make_blockvector): Use renamed hex_string.
2746
33f2d567
JM
27472004-09-10 Jason Molenda (jmolenda@apple.com)
2748
2749 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
2750 chars after 'if' or 'while' commands in user-defined commands.
2751
7b90c3f9
JB
27522004-09-08 Jim Blandy <jimb@redhat.com>
2753
2754 Fix bug reported and analyzed by Olivier Crete:
2755 * symfile.c (copy_section_addr_info): New function.
2756 (symbol_file_add_with_addrs_or_offsets): Use it to save the
2757 original set of address arguments, instead of handwritten code
2758 that uses one length to allocate and a different length to
2759 initialize. Use make_cleanup_free_section_addr_info.
2760 * symfile.h (copy_section_addr_info): New declaration.
2761 * utils.c: #include "symfile.h".
2762 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
2763 New functions.
2764 * defs.h (make_cleanup_free_section_addr_info): New declaration.
2765 * Makefile.in (utils.o): Update dependencies.
2766
b26a6851
AC
27672004-09-08 Andrew Cagney <cagney@gnu.org>
2768
2769 * thread-db.c (keep_thread_db): Delete.
2770 (thread_db_new_objfile, thread_db_create_inferior)
2771 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
2772
be24b061
MK
27732004-09-08 Mark Kettenis <kettenis@gnu.org>
2774
f6792ef4
MK
2775 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
2776 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
2777 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
2778 (i386_frameless_signal_p): Remove prototype.
2779 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
2780 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
2781 I386_SSE_NUM_REGS.
2782 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
2783 instead of FP0_REGNUM.
2784 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
2785 of FP0_REGNUM and FPC_REGNUM.
2786
eeefdaa7
MK
2787 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
2788 (sunos_solib_create_inferior_hook): Don't call
2789 sunos_relocate_main_executable.
2790
be24b061
MK
2791 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
2792 solib_svr4_fetch_link_map_offsets to
2793 svr4_ilp32_fetch_link_map_offsets.
2794 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
2795 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
2796 svr4_ilp32_fetch_link_map_offsets.
2797 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
2798
7c679d16
JB
27992004-09-07 Jim Blandy <jimb@redhat.com>
2800
2801 * frame.h (frame_register): Doc fix.
2802
1f04aa62
AC
28032004-09-07 Andrew Cagney <cagney@gnu.org>
2804
2805 * vx-share/wait.h: Delete #ifdef USG.
2806 * utils.c (request_quit): Ditto.
2807 * tui/tui.c (tui_reset): Ditto.
2808 * remote.c: Ditto.
2809 * remote-sds.c: Ditto.
2810 * remote-rdi.c: Ditto.
2811 * mdebugread.c: Ditto.
2812 * m68klinux-nat.c: Ditto.
2813 * infttrace.c: Ditto.
2814 * infptrace.c: Ditto.
2815 * i386v-nat.c: Ditto.
2816 * exec.c: Ditto.
2817 * dbxread.c: Ditto.
2818 * core-aout.c: Ditto.
2819
90edbfbc
JB
28202004-09-05 Joel Brobecker <brobecker@gnat.com>
2821
2822 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
2823 heuristic_proc_desc.
2824 (mips_insn32_frame_cache): Likewise.
2825
01f4bf2b
JB
28262004-09-04 Joel Brobecker <brobecker@gnat.com>
2827
2828 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
2829 left behind by error.
2830
8511a048
JB
28312004-09-04 Joel Brobecker <brobecker@gnat.com>
2832
2833 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
2834 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
2835
649dfe9f
JB
28362004-09-04 Joel Brobecker <brobecker@gnat.com>
2837
2838 * config/rs6000/xm-aix4.h: Remove this file.
2839 * config/rs6000/aix4.mh (XM_FILE): Delete.
2840
6e50f889
JB
28412004-09-04 Joel Brobecker <brobecker@gnat.com>
2842
2843 * config/rs6000/xm-rs6000.h: Remove this file.
2844 * config/rs6000/rs6000.mh (XM_FILE): Remove.
2845
b8c4aece
AC
28462004-09-03 Andrew Cagney <cagney@gnu.org>
2847
fb603883
AC
2848 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
2849 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
2850 only use.
2851
c9343fd1
AC
2852 * mips-tdep.c (temp_saved_regs): Delete.
2853 (set_reg_offset): Replace saved_regs parameter with this_cache.
2854 (heuristic_proc_desc, mips16_heuristic_proc_desc)
2855 (mips32_heuristic_proc_desc): Add this_cache parameter.
2856 (mips_insn32_frame_cache, mips_insn16_frame_cache)
2857 (after_prologue): Pass a NULL this_cache.
2858
9733cfe1
AC
2859 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
2860 non-kernel trap prologues.
2861
0d5febcc
AC
2862 * mips-tdep.c (find_proc_desc): Delete function.
2863 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
2864 simplify.
2865 (mips_insn16_frame_cache): Replace find_proc_desc with code from
2866 mips_insn32_frame_cache.
2867
9733cfe1 2868 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
283be873
AC
2869 Simplify as NEXT_FRAME is NULL.
2870 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
2871
177f84a3
AC
2872 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
2873 local variable.
2874 (mips_skip_prologue): Update.
2875
465f7520
AC
2876 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
2877 "cur_frame" parameter.
177f84a3
AC
2878 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
2879 (mips_insn32_frame_cache, find_proc_desc): Update
465f7520 2880
e38b8658
AC
2881 * config/vax/nm-obsd.h: Delete file.
2882 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2883 * config/vax/nm-nbsd.h: Delete file.
2884 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
2885 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2886 * config/sh/nm-nbsd.h: Delete file.
2887 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
2888 * config/rs6000/nm-rs6000ly.h: Delete file.
2889 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
2890 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
2891 * config/powerpc/nm-obsd.h: Delete file.
2892 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2893 * config/powerpc/nm-nbsd.h: Delete file.
2894 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
2895 * config/pa/nm-obsd.h: Delete file.
2896 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2897 * config/mips/nm-nbsd.h: Delete file.
2898 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
2899 * config/m88k/nm-obsd.h: Delete file.
2900 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2901 * config/m68k/nm-nbsd.h: Delete file.
2902 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
2903 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2904 * config/i386/nm-nbsd.h: Delete file.
2905 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
2906 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2907 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2908 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2909 * config/i386/nm-i386lynx.h: Delete file.
2910 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
2911 * config/arm/nm-nbsd.h: Delete file.
2912 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
2913 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2914
be1ed680
AC
2915 * config/i386/tm-fbsd.h: Delete file.
2916 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
2917 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
2918
4b392b26
AC
2919 * config/rs6000/tm-rs6000-aix4.h: Delete file.
2920 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
2921 * config/rs6000/aix4.mt (TM_FILE): Set to
2922 config/rs6000/tm-rs6000.h.
2923 * config/powerpc/tm-ppc-aix.h: Delete file.
2924 * config/powerpc/aix.mt (TM_FILE): Set to
2925 config/rs6000/tm-rs6000.h.
2926 * config/m68k/tm-linux.h: Delete file.
2927 * config/m68k/linux.mt (TM_FILE): Set to solib.h
2928 * config/i386/tm-linux64.h: Delete file.
2929 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
2930 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
2931
f3219c75
AC
2932 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
2933 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
2934 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
2935 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
2936 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
2937 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
2938 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
2939 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
2940 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
2941
b8c4aece
AC
2942 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
2943 gdb_host_cpu.
2944
8ac2e020
JB
29452004-09-02 Joel Brobecker <brobecker@gnat.com>
2946
2947 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
2948 Minor reformatting. Some code factoring.
2949
c185a355
AC
29502004-09-02 Andrew Cagney <cagney@gnu.org>
2951
63f22f0d
AC
2952 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
2953 * config/vax/tm-nbsd.h: Delete file.
2954 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
2955 * config/sparc/tm-vxworks.h: Delete file.
2956 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
2957 * config/sparc/tm-nbsd.h: Delete file.
2958 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
2959 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
2960 * config/sparc/tm-linux.h: Delete file.
2961 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
2962 * config/s390/tm-linux.h: Delete file.
2963 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
2964 * config/pa/tm-bsd.h: Delete file.
2965 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
2966 * config/m68k/tm-obsd.h: Delete file.
2967 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
2968 * config/m68k/tm-nbsd.h: Delete file.
2969 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
2970 * config/i386/tm-vxworks.h: Delete file.
2971 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
2972 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
2973 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
2974 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
2975 * config/i386/tm-nbsd.h: Delete file.
2976 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
2977 * config/i386/tm-i386lynx.h: Delete file.
2978 * config/cris/cris.mt (TM_FILE): Set to solib.h.
2979 * config/cris/tm-cris.h: Delete file.
2980
0f475e27
AC
2981 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
2982 * configure: Re-generate.
2983 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
2984 * config/arm/tm-nbsd.h: Delete file.
2985
458ed000
AC
2986 * config/powerpc/tm-ppcle-sim.h: Delete.
2987 * config/powerpc/tm-ppcle-eabi.h: Delete.
2988 * config/powerpc/tm-nbsd.h: Delete.
2989 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
2990 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
2991 tm-ppcle-eabi.h.
2992
f14375f3
AC
2993 * config/i386/nto.mh (NAT_FILE): Delete.
2994 * config/i386/nm-nto.h: Delete.
2995
c34d127c
AC
2996 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
2997 * config/m68k/tm-os68k.h: Ditto.
2998 * config/m68k/tm-monitor.h: Ditto.
2999 * config/m68k/tm-cisco.h: Ditto.
3000 * config/m68k/st2000.mt (TM_FILE): Delete.
3001 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
3002 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
3003 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
3004 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
3005
f7f0fe03
AC
3006 * config/m68k/tm-st2000.h: Delete.
3007 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
3008 * config/sparc/fbsd.mt (TM_FILE): Delete.
3009 * config/sparc/tm-fbsd.h: Delete.
3010
a2558533
AC
3011 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
3012 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
3013 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
3014
b78960be
AC
3015 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
3016 GDB_TM_FILE and GDB_XM_FILE.
3017 * gdbarch.c: Re-generate.
3018 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
3019 quotes in macro definition.
3020 * configure.in: Re-generate.
3021
4d60522e
AC
3022 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
3023 validating architecture methods.
3024 * gdbarch.c: Re-generate.
3025
5010d38b
AC
3026 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
3027 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
3028 GDB_MULTI_ARCH_PARTIAL.
3029 * gdbarch.h: Re-generate.
3030
c185a355
AC
3031 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
3032 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
3033 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
3034 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
3035 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
3036 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
3037 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
3038 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
3039 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
3040 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
3041 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
3042 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
3043
14aaa6ab
AC
30442004-09-01 Andrew Cagney <cagney@gnu.org>
3045
3046 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
3047 and main_func_highpc.
3048 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
3049 * objfiles.c (init_entry_point_info, objfile_relocate): Update
3050 * nlmread.c (nlm_symfile_read): Update.
3051
a343eb3c
JB
30522004-09-01 Joel Brobecker <brobecker@gnat.com>
3053
3054 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
3055 (mips_insn32_frame_cache): Inline call to find_proc_desc.
3056 (find_proc_desc): Remove dead code.
3057
4fbbbd07
JB
30582004-09-01 Joel Brobecker <brobecker@gnat.com>
3059
3060 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
3061
84acb35a
JJ
30622004-09-01 Jeff Johnston <jjohnstn@redhat.com>
3063
3064 * observer.sh: Add struct so_list declaration.
3065 * Makefile.in: Add dependencies on observer.h for solib.c and
3066 breakpoint.c.
3067 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
3068 function.
3069 (_initialize_breakpoint): Register
3070 disable_breakpoints_in_unloaded_shlib as an observer of the
3071 "solib unloaded" observation event.
3072 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
3073 call decode_line_1 so unfound breakpoint errors are silent.
3074 * solib.c (update_solib_list): When a solib is discovered to have
3075 been unloaded by the program, notify all observers of the
3076 "solib unloaded" observation event.
3077
c8cd9f6c
AC
30782004-09-01 Andrew Cagney <cagney@gnu.org>
3079
3080 * frame.c: Include "objfiles.h".
3081 (inside_main_func): New function.
3082 (get_prev_frame): Use new inside_main_func.
3083 * Makefile.in (frame.o): Update dependencies.
3084 * defs.h (inside_main_func): Delete declaration.
3085 * blockframe.c (inside_main_func): Delete function.
3086
1168df01
JB
30872004-08-31 Jim Blandy <jimb@redhat.com>
3088
3089 * dwarf2read.c (is_vtable_name): New function, based on logic from
3090 read_structure_type, but passing the correct length to strncmp,
3091 and using 'sizeof' instead of 'strlen'.
3092 (read_structure_type): Call it.
3093
f14f9744
JB
30942004-08-31 Joel Brobecker <brobecker@gnat.com>
3095
3096 * config/powerpc/aix.mh: Add comment.
3097
386d4518
PG
30982004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
3099
3100 * MAINTAINERS: Add self to Write-After-Approval.
3101
7d97d5e2
MI
31022004-08-30 Manoj Iyer <manjo@austin.ibm.com>
3103
3104 * MAINTAINERS: Add self to Write-After-Approval.
3105
68f53502
AC
31062004-08-30 Andrew Cagney <cagney@gnu.org>
3107
3108 Fix PR breakpoints/1757.
3109 * infrun.c (struct execution_control_state): Replace
3110 remove_breakpoints_on_following_step with
3111 step_after_step_resume_breakpoint.
3112 (init_execution_control_state): Update.
3113 (handle_inferior_event): For signals, when stepping off a
3114 breakpoint, set step_after_step_resume_breakpoint. When
3115 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
3116 (keep_going): Delete code handling
3117 remove_breakpoints_on_following_step.
3118
7ca2d3a3
DL
31192004-08-29 David Lecomber <david@streamline-computing.com>
3120
3121 Fix PR gdb/648
3122 * language.h (enum array_ordering): New enum.
3123 * language.h (struct language_defn): New la_array_ordering
3124 attribute.
3125 * language.c (unknown_language_defn, auto_language_defn)
3126 (local_language_defn): Ditto.
3127 * ada-lang.c (ada_language_defn): Ditto.
3128 * c-lang.c (c_language_defn, cplus_language_defn)
3129 (asm_language_defn, minimal_language_defn): Ditto.
3130 * f-lang.c (f_language_defn): Ditto.
3131 * jv-lang.c (java_language_defn): Ditto.
3132 * m2-lang.c (f_language_defn): Ditto.
3133 * objc-lang.c (objc_language_defn): Ditto.
3134 * p-lang.c (pascal_language_defn): Ditto.
3135 * scm-lang.c (scm_language_defn): Ditto.
3136 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
3137 oriented large to small in type structure.
3138 * dwarf2read.c (read_array_order): New function.
3139 (read_array_type): Use read_array_order to check row/column
3140 major ordering.
3141
e354df01
NW
31422004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
3143
3144 * target.c (target_resize_to_sections): Check
3145 current_target.to_sections for an old value when updating.
3146
9185ddce
JB
31472004-08-27 Joel Brobecker <brobecker@gnat.com>
3148
3149 * procfs.c (dbx_link_bpt_addr): New static global variable.
3150 (dbx_link_shadow_contents): New static global variable.
3151 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
3152 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
3153 if we just hit it.
3154 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
3155 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
3156 from run to run.
3157 (procfs_create_inferior): Remove syssgi syscall-exit notifications
3158 after the inferior has been forked.
3159 (remove_dbx_link_breakpoint): New function.
3160 (dbx_link_addr): New function.
3161 (insert_dbx_link_bpt_in_file): New function.
3162 (insert_dbx_link_bpt_in_region): New function.
3163 (insert_dbx_link_breakpoint): New function.
3164 (proc_trace_syscalls_1): New function, extracted from
3165 proc_trace_syscalls.
3166 (proc_trace_syscalls): Replace extract code by call to
3167 proc_trace_syscalls_1.
3168 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
3169 is no longer valid.
3170
e6742ace
JB
31712004-08-25 Jim Blandy <jimb@redhat.com>
3172
3173 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
3174
8fb3e588
AC
31752004-08-25 Andrew Cagney <cagney@gnu.org>
3176
629a41ee
AC
3177 * infrun.c (struct execution_control_state): Delete field
3178 "stepping_through_sigtramp".
3179 (init_execution_control_state): Do not set same.
3180 (context_switch): Do not pass same to save_infrun_state and
3181 load_infrun_state.
3182 * gdbthread.h (struct thread_info): Delete field
3183 stepping_through_sigtramp.
3184 (save_infrun_state, load_infrun_state): Delete parameter
3185 stepping_through_sigtramp.
3186 * thread.c (load_infrun_state, save_infrun_state): Update.
3187
8fb3e588
AC
3188 * infrun.c: Re-indent. Move expression operators to the beginning
3189 of the line. Remove long disabled #if 0 code.
3190
49c54768
AC
31912004-08-24 Andrew Cagney <cagney@gnu.org>
3192
3193 * doublest.h (floatformat_ieee_quad): Rename
3194 floatformat_ia64_quad.
3195 * doublest.c (floatformat_ieee_quad): Rename
3196 floatformat_ia64_quad.
3197 (_initialize_doublest): Update.
3198
5ca2e327
JB
31992004-08-24 Jim Blandy <jimb@redhat.com>
3200
87808bd6
JB
3201 * dwarf2expr.h (struct dwarf_expr_context): New members
3202 'num_pieces' and 'pieces', for returning the result of an
3203 expression that uses DW_OP_piece.
3204 (struct dwarf_expr_piece): New struct type.
3205 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
3206 pieces.
3207 (free_dwarf_expr_context): Free pieces, if any.
3208 (add_piece): New function.
3209 (execute_stack_op): Implement DW_OP_piece.
3210 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
3211 expression is a list of pieces, print an error message.
3212 (dwarf2_loc_desc_needs_frame): If the expression yields
3213 pieces, and any piece is in a register, then we need a frame.
3214
5ca2e327
JB
3215 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
3216 the stack until we've decided what sort of result the evaluation
3217 has produced. Use separate variables, with more specific names.
3218
2afeb6b8
RE
32192004-08-23 Richard Earnshaw <rearnsha@arm.com>
3220
3221 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
3222 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
3223 (arm_netbsd_init_abi_common): Register them.
3224
5885ab49
MK
32252004-08-22 Mark Kettenis <kettenis@gnu.org>
3226
fda820a6
MK
3227 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
3228
1c5bf419
MK
3229 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
3230 safe_frame_unwind_memory instead of target_read_memory.
3231
8cbba7c8
MK
3232 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
3233 Reorder includes.
3234 (fetch_register, store_register): Remove prototypes.
3235 (child_resume): Reorganize code and comments such that it is
3236 grouped a bit more logically.
3237 (attach): Explicitly compare errno against 0.
3238 (detach): Likewise. Use perror_with_name instead of
3239 print_sys_errmsg.
3240 * Makefile.in (infptrace.o): Update dependencies.
3241
c5fa4245
MK
3242 * ia64-linux-nat.c: Update copyright year.
3243 (fetch_debug_register, store_debug_register)
3244 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
3245 PTRACE_TYPE_ARG3.
3246 * config/ia64/nm-linux.h: Update copyright year.
3247 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
3248
387c058c
MK
3249 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
3250 from CORE_ADDR to struct frame_info *. Use
3251 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
3252 (amd64_linux_sigtramp_p): Adjust for changed signature of
3253 and64_linux_sigtramp_start
3254
277215a6
MK
3255 * gdb_ptrace.h: GNU/Linux.
3256
25f6178e
MK
3257 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
3258 Remove defines.
3259
652fc137
MK
3260 * infptrace.c: Include "gdb_assert.h".
3261 (PTRACE_XFER_TYPE): Remove define.
3262 (offsetof): Only define if U_REGS_OFFSET isn't defined.
3263 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
3264 Tweak comment.
3265 (fetch_inferior_registers, store_inferior_registers): Remove
3266 redundant culry braces. Tweak comment. s/regno/regnum.
3267 * Makefile.in (infptrace.o): Update dependencies.
3268
5885ab49
MK
3269 * configure.in: Change test for return type of ptrace to default
3270 to `long' instead of `int'.
3271 * configure: Regenerate.
3272
11003ae3
MK
32732004-08-21 Mark Kettenis <kettenis@gnu.org>
3274
6b95110c
MK
3275 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
3276
bcb3dc3d
MK
3277 * configure.in: Check for ttrace function.
3278 * configure, config.in: Regenerate.
3279
11003ae3
MK
3280 * gdb_ptrace.h: New file.
3281 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
3282 <sys/ptrace.h>.
3283 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
3284 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
3285 (attach): Don't define PT_ATTACH.
3286 (detach): Don't define PT_DETACH.
3287 * Makefile.in (gdb_ptrace_h): New variable.
3288 (infptrace.o): Update dependencies.
3289
f8707cac
MK
32902004-08-16 Mark Kettenis <kettenis@gnu.org>
3291
3292 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
3293 instead of `int' if not already defined.
3294 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
3295 PTRACE_TYPE_ARG3.
3296 * infptrace.c (call_ptrace): Revert change that replaced
3297 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3298
655c5466
MK
32992004-08-15 Mark Kettenis <kettenis@gnu.org>
3300
156e5ba7
MK
3301 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
3302 Remove defines.
3303
de9a9e51
MK
3304 * linux-nat.c (kill_inferior): Add missing third and fourth
3305 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
3306
88800403
MK
3307 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
3308 PTRACE_TYPE_RET.
3309
849a1d7c
MK
3310 * proc-why.c (proc_prettyfprint_why): Fix format string.
3311
61ad16d1
MK
3312 * solib-osf.c (osf_current_sos): Remove unsused label.
3313
a6ed5501
MK
3314 * configure.in: Add <ncurses/ncurses.h> to the list of possible
3315 curses headers.
3316 * configure, config.in: Regenerate.
3317 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
3318 <ncurses/ncurses.h>.
3319
016ddeca
MK
3320 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
3321 * config/nm-nbsd.h: Update copyright year.
3322 (PTRACE_ARG3_TYPE): Remove define.
3323
49ec097f
MK
3324 * sparc-nat.c (fetch_inferior_registers)
3325 (store_inferior_registers, sparc_xfer_wcookie):
3326 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3327
9f8e0089
MK
3328 * alphabsd-nat.c (fetch_inferior_registers):
3329 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3330 PTRACE_TYPE_ARG3.
3331 * amd64bsd-nat.c (fetch_inferior_registers)
3332 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3333 PTRACE_TYPE_ARG3.
3334 * armnbsd-nat.c: Update copyright year.
3335 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
3336 (store_register, store_regs, store_fp_register, store_fp_regs):
3337 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3338 * hppabsd-nat.c (fetch_inferior_registers)
3339 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3340 PTRACE_TYPE_ARG3.
3341 * i386bsd-nat.c (fetch_inferior_registers)
3342 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
3343 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3344 * m68kbsd-nat.c (fetch_inferior_registers)
3345 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3346 PTRACE_TYPE_ARG3.
3347 * m88kbsd-nat.c (fetch_inferior_registers)
3348 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3349 PTRACE_TYPE_ARG3.
3350 * mipsnbsd-nat.c: Update copyright year.
3351 (fetch_inferior_registers, store_inferior_registers):
3352 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3353 * ns32knbsd-nat.c: Update copyright year.
3354 (fetch_inferior_registers, store_inferior_registers):
3355 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3356 * ppcnbsd-nat.c (fetch_inferior_registers):
3357 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3358 PTRACE_TYPE_ARG3.
3359 * ppcobsd-nat.c (fetch_inferior_registers):
3360 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3361 PTRACE_TYPE_ARG3.
3362 * shnbsd-nat.c: Update copyright year.
3363 (fetch_inferior_registers, store_inferior_registers):
3364 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3365 * vaxbsd-nat.c (fetch_inferior_registers)
3366 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3367 PTRACE_TYPE_ARG3.
3368
655c5466
MK
3369 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
3370 PTRACE_TYPE_ARG3.
3371 * infptrace.c (call_ptrace, child_resume, attach, detach)
3372 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
3373 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3374 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
3375 PTRACE_TYPE_ARG3.
3376
c40d0d10
MK
33772004-08-14 Mark Kettenis <kettenis@gnu.org>
3378
5cb0ff31
MK
3379 * defs.h: Remove out-of-date comment.
3380 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
3381 [!GETENV_PROVIDED] (getenv): Remove prototype.
3382
5f0f34cb
MK
3383 * standalone.c: Remove file.
3384 * Makefile.in (standalone.o): Remove dependency.
3385
7532965f
MK
3386 * i386-linux-nat.c (dummy_sse_values): Remove function and
3387 prototype.
3388 (i386_linux_dr_get): Fix typo in comment.
3389 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
3390
1bdc6c53
MK
3391 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
3392
c40d0d10
MK
3393 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
3394 from declaration.
3395 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
3396 from definition.
3397
64218d3e
MK
33982004-08-13 Mark Kettenis <kettenis@gnu.org>
3399
3400 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
3401 parenthesis in definition.
3402 * configure: Regenerated.
3403
926c94e7
MC
34042004-08-12 Michael Chastain <mec.gnu@mindspring.com>
3405
3406 * PROBLEMS: Mention build/1411.
3407
69489883
NN
34082004-08-09 Robert Millan <robertmh@gnu.org>
3409
3410 Committed by Nathanael Nerode.
3411 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
3412 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
3413
ebb7c577
AC
34142004-08-12 Andrew Cagney <cagney@gnu.org>
3415
3416 * NEWS: Mention fixes in GDB 6.2.1.
3417 * PROBLEMS: Remove mention of mips-irix.
3418
232d697c
JB
34192004-08-11 Joel Brobecker <brobecker@gnat.com>
3420
3421 * config/powerpc/xm-aix.h: Delete.
3422 * config/powerpc/aix.mh (MH_FILE): Remove.
3423 * config/powerpc/aix432.mh (MH_FILE): Remove.
3424
72f4e82b
JB
34252004-08-11 Joel Brobecker <brobecker@gnat.com>
3426
3427 * config/powerpc/aix.mh: Remove obsolete comment.
3428 * config/powerpc/aix432.mh: Likewise.
3429
0687ccb2
JB
34302004-08-11 Joel Brobecker <brobecker@gnat.com>
3431
3432 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
3433
dbf3ada7
JB
34342004-08-11 Joel Brobecker <brobecker@gnat.com>
3435
e08e1886
JB
3436 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
3437 this file is now empty.
3438 * config/xm-aix4.h: Remove, this file is no longer included
3439 anywhere.
3440
34412004-08-11 Joel Brobecker <brobecker@gnat.com>
3442
3443 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
3444 that file is now empty.
dbf3ada7
JB
3445 (termdef): Remove prototype, function no longer used.
3446
4c525ef6
JB
34472004-08-11 Joel Brobecker <brobecker@gnat.com>
3448
3449 * doc/gdbint.texinfo (Host Definition): Remove documentation
3450 for USE_O_NOCTTY, no longer used.
3451 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
3452 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
3453
82e0b968
JB
34542004-08-11 Joel Brobecker <brobecker@gnat.com>
3455
3456 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
3457 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
3458 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
3459
f2acbe1c
MK
34602004-08-11 Mark Kettenis <kettenis@gnu.org>
3461
daa98270
MK
3462 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
3463 instead of FIVE_ARG_PTRACE.
3464
f2acbe1c
MK
3465 * inflow.c (O_NOCTTY): Define to zero if not already defined.
3466 (new_tty): Use O_NOCTTY unconditionally.
3467
cc377e6b
MK
34682004-08-10 Mark Kettenis <kettenis@gnu.org>
3469
3470 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
3471 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
3472 fflush on stdout.
3473
3bcc18fa
JB
34742004-08-10 Joel Brobecker <brobecker@gnat.com>
3475
3476 * xcoff_symfile_finish: Replace last call to xmfree by call
3477 to xfree.
3478
7936743b
AC
34792004-08-10 Andrew Cagney <cagney@gnu.org>
3480
cc503c8a
AC
3481 * main.c (captured_main): Delete call to init_malloc.
3482 * defs.h (init_malloc): Delete declaration.
3483 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
3484 (init_malloc): Delete functions.
3485
2dc74dc1
AC
3486 * defs.h (xmfree): Delete.
3487 * utils.c (xmfree): Delete function.
3488 (xfree): Inline calls to xmfree and mfree.
3489 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
3490 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
3491 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
3492 * somread.c (som_symfile_finish): Ditto.
3493 * objfiles.c (allocate_objfile, free_objfile):
3494 * nlmread.c (nlm_symfile_finish): Ditto.
3495 * hpread.c (hpread_symfile_finish): Ditto.
3496 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
3497 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
3498 * coffread.c (coff_symfile_finish): Ditto.
3499
aa2ee5f6
AC
3500 * defs.h (xmcalloc): Delete declaration.
3501 * utils.c (xmcalloc): Delete.
3502 (xcalloc): Inline calls to xmcalloc and mcalloc.
3503 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
3504 xcalloc and xfree.
3505 * symtab.c (create_demangled_names_hash): Ditto.
3506
0efffb96
AC
3507 * defs.h (xmrealloc): Delete.
3508 * utils.c (xmrealloc): Delete.
3509 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
3510 * symmisc.c (extend_psymbol_list): Use xrealloc.
3511 * source.c (find_source_lines): Ditto.
3512 * hpread.c (hpread_lookup_type): Ditto.
3513 * dbxread.c (add_bincl_to_list): Ditto.
3514
7936743b
AC
3515 * utils.c (xmmalloc): Delete.
3516 (xmalloc): Inline xmmalloc and mmalloc calls.
3517 (msavestring): Use xmalloc.
3518 * defs.h (xmmalloc): Delete declaration.
3519 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
3520 xmmalloc.
3521 * symmisc.c (extend_psymbol_list): Ditto.
3522 * symfile.c (init_psymbol_list): Ditto.
3523 * source.c (find_source_lines): Ditto.
3524 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
3525 * elfread.c (elf_symtab_read): Ditto.
3526 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
3527 * coffread.c (coff_symfile_init): Ditto.
3528
252ab814
DC
35292004-08-10 David Carlton <carlton@bactrian.org>
3530
3531 * MAINTAINERS: Remove David Carlton from c++ testsuite
3532 maintainers.
3533
8f5ba92b
JG
35342004-08-10 Jerome Guitton <guitton@gnat.com>
3535
3536 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
3537 print a line feed before the prompt.
3538
21749010
MK
35392004-08-10 Mark Kettenis <kettenis@gnu.org>
3540
3541 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
3542
1f011ce2
JB
35432004-08-09 Joel Brobecker <brobecker@gnat.com>
3544
3545 General cleanup of the AIX xm include file:
3546 * config/xm-aix4.h (fd_set): Remove undefine.
3547 Remove include of <sys/select.h>.
3548 (HAVE_TERMIO): Remove define.
3549 (USG): Likewise.
3550 (NULL): Remove redefine.
3551 (alloca): Remove #pragma.
3552 (vfork): Remove define.
3553 (termdef): Remove.
3554 (SIGWINCH_HANDLER): Remove.
3555 (SIGWINCH_HANDLER_BODY): Remove.
3556
cf4e7692
MK
35572004-08-09 Mark Kettenis <kettenis@gnu.org>
3558
3559 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
3560 GDB_OSABI_OPENBSD_ELF.
3561
ac5754fa
MK
35622004-08-07 Robert Millan <robertmh@gnu.org>
3563
3564 * bsd-kvm.c: Check for nlist.h before including it.
3565
086ec9eb
MK
35662004-08-09 Mark Kettenis <kettenis@gnu.org>
3567
bbe06c74
MK
3568 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
3569 sigcontext' offset consistency checks for ancient BSD.
3570
3aa7b3b3
MK
3571 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
3572
086ec9eb
MK
3573 * configure.in: Check for <sys/types.h>. Check return and
3574 argument types of ptrace.
3575 * configure, config.in: Regenerate.
3576
09991fa0
JB
35772004-08-09 Jim Blandy <jimb@redhat.com>
3578
3579 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
3580 rs6000_register_sim_regno): Doc fixes.
3581
fed7ba43
JB
35822004-08-08 Joel Brobecker <brobecker@gnat.com>
3583
3584 * mips-tdep.c: Include "floatformat.h".
3585 (n32n64_floatformat_always_valid): New function.
3586 (floatformat_n32n64_long_double_big): New constant.
3587 (mips_gdbarch_init): Set size and format of long double
3588 for N32 and N64 ABIs.
3589 * Makefile.in (mips-tdep.o): Update dependencies.
3590
456fcf94
AC
35912004-08-08 Andrew Cagney <cagney@gnu.org>
3592
2f9b146e
AC
3593 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
3594 print. Improve script's error messages.
3595 * gdbarch.h: Re-generate.
3596
456fcf94
AC
3597 * gdbarch.sh (pformat): New function.
3598 (float_format, double_format, long_double_format): List with bit
3599 members. Use pformat when printing.
3600 * gdbarch.c, gdbarch.h: Re-generate.
3601
69e9e646
NW
36022004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
3603
3604 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
3605 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
3606 (ppcnbsd_supply_pcb): New function.
3607 (_initialize_ppcnbsd_nat): New prototype and function.
3608 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
3609 (LOADLIBES): New variable.
3610 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
3611
5ef2d0aa
AC
36122004-08-08 Andrew Cagney <cagney@gnu.org>
3613
3614 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
3615 (builtin_type_ieee_double, builtin_type_ia64_quad)
3616 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
3617 BE/LE floating-point types.
3618 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
3619 (builtin_type_ieee_double, builtin_type_ia64_quad)
3620 (builtin_type_ia64_spill): Declare.
3621 * doublest.c (_initialize_doublest, floatformat_ieee_single)
3622 (floatformat_ieee_double, floatformat_arm_ext)
3623 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
3624 of LE/BE floatformats.
3625 * doublest.h: (struct floatformat, floatformat_ieee_single)
3626 (floatformat_ieee_double, floatformat_arm_ext)
3627 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
3628
5c7f2947
MK
36292004-08-08 Mark Kettenis <kettenis@gnu.org>
3630
ecac404d
MK
3631 * i386gnu-nat.c (gnu_store_registers): Fix typo.
3632
9b8607ce
MK
3633 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
3634 instead of regcache_raw_supply when storing the registers.
3635
f6052080
MK
3636 * i386gnu-nat.c: Update copyright year.
3637 (gnu_store_registers): Don't use deprecated_registers and
3638 deprecated_registers_valid. Use regcache_valid_p and
3639 regcache_raw_supply instead.
3640
17777823
MK
3641 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
3642 frame_pc_unwind.
3643
5240ceac
MK
3644 * procfs.c (procfs_pid_to_str): Remove redundant and unused
3645 variables. Incapitalized "process".
3646
5c7f2947
MK
3647 * configure.in: Add cursesX to the list of possible curses libs.
3648 Add cursesX.h to the list of possible curses headers.
3649 * configure, config.in: Regenerate.
3650
da7d81e3
NW
36512004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
3652
3653 * configure.in: Test for struct lwp in <sys/lwp.h>.
3654 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
3655 the offset of l_addr in struct lwp.
3656
7f245d65
NW
36572004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
3658
3659 * bsd-kvm.c: Include "gdbcore.h"
3660 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
3661
47b3f456
AC
36622004-08-07 Andrew Cagney <cagney@gnu.org>
3663
70bd8e24
AC
3664 * gdbtypes.c (build_flt, build_complex): New functions.
3665 (gdbtypes_post_init): Use.
3666
9b0dea39
AC
3667 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
3668
5cf7abac
AC
3669 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
3670 through to builtin_type_uint128.
3671
64d2b26d
AC
3672 * c-exp.y: Use builtin_type function to obtain builtin types.
3673
7ad6570d
AC
3674 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
3675 builtin_uint128.
3676 * gdbtypes.c (gdbtypes_post_init): Update.
3677 (build_gdbtypes): Move initialization of builtin_type_int0
3678 through to builtin_type_uint128 from here ...
3679 (_initialize_gdbtypes): ... to here.
3680 * d10v-tdep.c (d10v_register_type): Update.
3681
47b3f456
AC
3682 * doublest.c: Update copyright.
3683 (floatformat_from_length): Call error when floatformat is NULL.
3684 (extract_floating_by_length): Remove NULL fmt check.
3685 (store_floating_by_length): Ditto.
3686
0a8146bf
AC
36872004-08-07 Andrew Cagney <cagney@gnu.org>
3688
3689 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
3690 that the register is valid.
3691
c0ccb908
MK
36922004-08-05 Mark Kettenis <kettenis@chello.nl>
3693
8e6bed05
MK
3694 * i386-linux-tdep.c (i386_linux_sigtramp_start)
3695 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
3696 struct frame_info *. Use safe_frame_unwind_memory instead of
3697 deprecated_read_memory_nobpt.
3698 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
3699 changed signature of i386_linux_sigtramp_start and
3700 i386_linux_rt_sigtramp_start.
3701
24f9f5e3
MK
3702 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
3703 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
3704 instead of deprecated_read_memory_nobpt.
3705 (i386nbsd_sigtramp_p): Adjust for changed signature of
3706 i386nbsd_sigtramp_offset.
3707
c822af0c
MK
3708 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
3709 safe_frame_unwind_memory instead of target_read_memory.
3710
c0ccb908
MK
3711 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
3712 !NO_SYS_FILE.
3713 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
3714 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
3715 (_initialize_kernel_u_addr): Remove prototype and function.
3716 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
3717 !NO_SYS_FILE.
3718 * xcoffread.c: Likewise.
3719
b9e1c0d6
MK
37202004-08-06 Mark Kettenis <kettenis@gnu.org>
3721
3722 * vax-nat.c: New file.
3723 * vaxbsd-nat.c: Tweak comment.
3724 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
3725 vaxnbsd-tdep.c.
3726 (vax-nat.o): New dependency.
3727 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
3728 (vax-*-ultrix2*): Remove.
3729 * config/vax/vax.mh: New file.
3730 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
3731 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
3732 (vax_register_u_addr): New prototype.
3733 (REGISTER_U_ADDR): Define using vax_register_u_addr.
3734 * config/vax/vaxult2.mh: Remove file.
3735 * config/vax/vaxult.mh: Remove file.
3736 * config/vax/vaxbsd.mh: Remove file.
3737 * config/vax/vax.mt (TM_FILE): Remove.
3738 * config/vax/tm-vaxbsd.h: Remove file.
3739
9ad7bec7
JB
37402004-08-06 Joel Brobecker <brobecker@gnat.com>
3741
3742 * aix-thread.c (get_signaled_thread): New function.
3743 (iter_trap): Delete, no longer used.
3744 (iter_tid): New function.
3745 (pd_update): Find the thread that received the SIGTRAP signal
3746 by first locating the kernel thread, and then finding its
3747 associated thread.
3748
bf0d233d
UW
37492004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
3750
3751 * lin-lwp.c (child_wait): Continue inferior after processing
3752 PTRACE_EVENT_CLONE event.
3753
d0f853e1
NN
37542004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
3755
3756 * MAINTAINERS: Add self to Write-After-Approval.
3757
ab14aeb0
JJ
37582004-08-05 Jeff Johnston <jjohnstn@redhat.com>
3759
3760 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
3761 libunwind-xxxx.so" where xxxx is UNW_TARGET.
3762
9c8dbfa9
AC
37632004-08-05 Andrew Cagney <cagney@gnu.org>
3764
c8f3ca46
AC
3765 * config/xm-sysv4.h: Delete file.
3766 * config/mips/xm-irix5.h: Delete file.
3767 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
3768 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
3769 * config/ia64/xm-aix.h: Delete file.
3770 * config/ia64/aix.mh (XM_FILE): Delete.
3771 * config/pa/xm-hppah.h: Delete file.
3772 * config/pa/hpux11w.mh (XM_FILE): Delete.
3773 * config/pa/hpux11.mh (XM_FILE): Delete.
3774 * config/pa/hpux1020.mh (XM_FILE): Delete.
3775 * config/pa/hppahpux.mh (XM_FILE): Delete.
3776
5f7daaff
AC
3777 * config/alpha/xm-alphalinux.h: Delete file.
3778 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
3779 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
3780 * config/alpha/xm-alphaosf.h: Delete file.
3781 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
3782 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
3783 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
3784 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
3785
69babf95
AC
3786 * config/i386/xm-i386v.h: Delete file.
3787 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
3788 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
3789 * config/i386/xm-i386sco.h: Delete file.
3790 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
3791 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
3792 * config/i386/xm-i386v4.h: Delete file.
3793 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
3794 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
3795 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
3796 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
3797
6f009c8a
AC
3798 * config/vax/xm-vax.h: Delete file.
3799 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
3800 * config/vax/xm-vaxult2.h: Delete file.
3801 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
3802 * config/vax/vaxult2.mh (XM_FILE): Delete.
3803 * config/vax/xm-vaxult.h: Delete file.
3804 * config/vax/vaxult.mh (XM_FILE): Delete.
3805 * config/vax/xm-vaxbsd.h: Delete file.
3806 * config/vax/vaxbsd.mh (XM_FILE): Delete.
3807
9c8dbfa9
AC
3808 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
3809 * gdbarch.h, gdbarch.c: Re-generate.
3810 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
3811 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
3812 * frame.h: Delete deprecated_read_fp from comments.
3813 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
3814 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
3815
84367a3e
MK
38162004-08-04 Mark Kettenis <kettenis@gnu.org>
3817
9c8e3411
MK
3818 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
3819 trampoline in OpenBSD 3.5-current.
3820
b87bc0d8
MK
3821 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
3822 SSE registers.
3823
84367a3e
MK
3824 * Makefile.in: Remove embedded page breaks.
3825
a44bddec
JB
38262004-08-04 Jim Blandy <jimb@redhat.com>
3827
7ab3286f
JB
3828 * regcache.c (regcache_raw_read): Assert that, after calling
3829 target_fetch_registers, the register we're reading is cached.
3830
a44bddec
JB
3831 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
3832 a call to 'internal_error', with a more helpful error message.
3833 * rs6000-tdep.c (e500_pseudo_register_read,
870d65d5 3834 e500_pseudo_register_write, rs6000_store_return_value): Same.
a44bddec 3835
35124113
AC
38362004-08-04 Andrew Cagney <cagney@gnu.org>
3837
3838 * Makefile.in: Update dependencies.
3839
9f643768
JB
38402004-08-04 Jim Blandy <jimb@redhat.com>
3841
6ced10dd
JB
3842 Change the layout of the PowerPC E500 raw register cache to allow
3843 the lower 32-bit halves of the GPRS to be their own raw registers,
3844 not pseudoregisters.
3845 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
3846 add ppc_ev0_upper_regnum flag.
3847 * rs6000-tdep.c: #include "reggroups.h".
3848 (spe_register_p): Recognize the ev upper half registers as SPE
3849 registers.
3850 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
3851 registers.
3852 (e500_move_ev_register): New function.
3853 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
3854 vector registers are the pseudo-registers now, formed by splicing
3855 together the gprs and the upper-half registers.
3856 (e500_register_reggroup_p): New function.
3857 (P): Macro deleted.
3858 (P8, A4): New macro.
3859 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
3860 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
3861 macros.
3862 (registers_e500): Rearrange register set so that the raw register
3863 set contains 32-bit GPRs and upper-half registers, and the SPE
3864 vector registers become pseudo-registers.
3865 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
3866 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
3867 register numbers are now the same for the E500 as they are for
3868 other PowerPC variants. Register e500_register_reggroup_p as the
3869 register group function for the E500.
3870 * Makefile.in (rs6000-tdep.o): Update dependencies.
3871
3872 Adapt PPC E500 native support to the new raw regcache layout.
3873 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
3874 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
3875 (fetch_spe_register, store_spe_register): Handle fetching/storing
3876 all the SPE registers at once, if regno == -1. These now take
3877 over the job of fetch_spe_registers and store_spe_registers.
3878 (fetch_spe_registers, store_spe_registers): Deleted.
3879 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
3880 unconditionally; they're always raw. Fetch/store SPE upper half
3881 registers, if present, instead of ev registers.
3882 (fetch_register, store_register): Remove sanity checks: gprs are
3883 never pseudo-registers now, so we never need to even mention any
3884 registers that are ever pseudoregisters.
3885
9f643768
JB
3886 Use a fixed register numbering when communicating with the PowerPC
3887 simulator.
3888 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
3889 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
3890 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
3891 New functions.
3892 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
3893 init_sim_regno_table.
3894 * Makefile.in (gdb_sim_ppc_h): New variable.
3895 (rs6000-tdep.o): Update dependencies.
3896
1e2279c8
AC
38972004-08-02 Andrew Cagney <cagney@gnu.org>
3898
1d94326f
AC
3899 * cris-tdep.c (cris_register_size): Restore function, still used
3900 locally.
3901
331ae7ed
AC
3902 * gdbarch.sh (deprecated_target_read_fp)
3903 (deprecated_frame_locals_address, deprecated_frame_args_address)
3904 (deprecated_frame_chain_valid, deprecated_frame_chain)
3905 (deprecated_init_extra_frame_info, deprecated_pop_frame)
3906 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
3907 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
3908 * gdbarch.h, gdbarch.c: Re-generate.
3909 * regcache.c (deprecated_read_fp): Do not call
3910 DEPRECATED_TARGET_READ_FP_P.
3911 * infcmd.c (default_print_registers_info): Do not call
3912 DEPRECATED_DO_REGISTERS_INFO.
3913 * frame-base.c (default_frame_locals_address): Do not call
3914 DEPRECATED_FRAME_LOCALS_ADDRESS.
3915 (default_frame_args_address): Do not call
3916 DEPRECATED_FRAME_ARGS_ADDRESS.
3917
1e2279c8
AC
3918 * gdbarch.sh (deprecated_register_raw_size)
3919 (deprecated_register_virtual_size:int): Delete.
3920 * gdbarch.h, gdbarch.c: Re-generate.
3921 * cris-tdep.c (cris_register_size): Delete.
3922 (cris_gdbarch_init): Update.
3923 * alpha-tdep.c (alpha_register_raw_size)
3924 (alpha_register_virtual_size): Delete.
3925 (alpha_gdbarch_init): Update.
3926
a90c06b4
AC
3927 * gdbarch.sh (deprecated_register_virtual_type)
3928 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
3929 (deprecated_dummy_write_sp): Delete.
3930 * gdbarch.h, gdbarch.c: Re-generate.
3931
f42accbe
AC
3932 * gdbarch.sh (deprecated_register_bytes): Delete.
3933 * gdbarch.h, gdbarch.c: Re-generate.
3934 * regcache.c (deprecated_register_bytes): New function.
3935 * regcache.h (deprecated_register_bytes): Declare.
3936 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3937 * v850-tdep.c (v850_gdbarch_init): Update.
3938 * sh64-tdep.c (sh64_gdbarch_init): Update.
3939 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
3940 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3941 * mcore-tdep.c (mcore_gdbarch_init): Update.
3942 * cris-tdep.c (cris_gdbarch_init): Update.
3943 * arm-tdep.c (arm_gdbarch_init): Update.
3944 * remote.c (init_remote_state): Update.
3945 * remote-vx.c (vx_prepare_to_store): Update.
3946 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
3947 * irix5-nat.c (fetch_core_registers): Update.
3948 * cris-tdep.c (cris_register_bytes_ok): Update.
3949 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
3950
45c9dd44
AC
3951 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
3952 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
3953 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
3954 (mips_insn16_frame_base_address, mips_insn16_frame_base)
3955 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
3956 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
3957 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
3958 (mips_insn32_frame_base_address, mips_insn32_frame_base)
3959 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
3960 with mips_insn16 and mips_insn32.
3961
3acba339
AC
3962 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
3963 * rs6000-tdep.c (rs6000_push_dummy_call)
3964 (rs6000_extract_return_value): Use register_size.
3965 * xstormy16-tdep.c (xstormy16_get_saved_register)
3966 (xstormy16_extract_return_value): Ditto.
3967 * valops.c (value_assign): Ditto.
3968 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
3969 * v850-tdep.c (v850_extract_return_value): Ditto.
3970 * tracepoint.c (collect_symbol): Ditto.
3971 * target.c (debug_print_register): Ditto.
3972 * stack.c (frame_info): Ditto.
3973 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
3974 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
3975 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
3976 (store_register_using_P): Ditto.
3977 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
3978 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
3979 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
3980 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
3981 * regcache.c (deprecated_read_register_bytes)
3982 (deprecated_write_register_bytes, read_register)
3983 (write_register): Ditto.
3984 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
3985 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
3986 * monitor.c (monitor_supply_register, monitor_fetch_register)
3987 (monitor_store_register): Ditto.
3988 * mn10300-tdep.c (mn10300_pop_frame_regular)
3989 (mn10300_print_register): Ditto.
3990 * mipsv4-nat.c (fill_fpregset): Ditto.
3991 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
3992 (mips64_fill_fpregset): Ditto.
3993 * mi/mi-main.c (register_changed_p, get_register)
3994 (mi_cmd_data_write_register_values): Ditto.
3995 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
3996 * irix5-nat.c (fill_gregset, fetch_core_registers):
3997 * infrun.c (write_inferior_status_register): Ditto.
3998 * infptrace.c (fetch_register, store_register): Ditto.
3999 * infcmd.c (default_print_registers_info): Ditto.
4000 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
4001 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
4002 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
4003 * hpux-thread.c (hpux_thread_fetch_registers)
4004 (hpux_thread_store_registers): Ditto.
4005 * hppah-nat.c (store_inferior_registers, fetch_register):
4006 * findvar.c (value_from_register): Ditto.
4007 * dve3900-rom.c (fetch_bitmapped_register):
4008 * cris-tdep.c (cris_gdbarch_init): Ditto.
4009 * alpha-tdep.h: Ditto.
4010 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
4011
01e1877c
AC
4012 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
4013 DEPRECATED_REGISTER_RAW_SIZE from comments.
4014 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
4015 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
4016 DEPRECATED_REGISTER_RAW_SIZE.
4017 * findvar.c (value_of_register): Simplify by assuming that the
4018 registers raw and virtual sizes are identical.
4019 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
4020 comment.
4021 * arch-utils.c (generic_register_size): Simplify by assuming
4022 register_type.
4023
73f458fb
AC
4024 * regcache.c (legacy_read_register_gen, real_register)
4025 (legacy_write_register_gen): Delete, not used.
4026
336a3131
AC
4027 * regcache.c (struct regcache_descr): Delete legacy_p.
4028 (init_legacy_regcache_descr): Delete function.
4029 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
4030 Do not use deprecated register functions.
4031 (regcache_raw_read, deprecated_write_register_gen):
4032 (deprecated_read_register_gen, regcache_raw_write): Delete code
4033 predicated on legacy_p.
4034 (register_size): Delete check against register raw size.
4035
c1d546cd
AC
4036 * cris-tdep.c (cris_register_type): Replace
4037 cris_register_virtual_type.
4038 (cris_gdbarch_init): Update, set register_type.
4039
48c2c0a6
AC
4040 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
4041 * gdbarch.h, gdbarch.c: Re-generate.
4042 * arm-tdep.c (arm_frameless_function_invocation): Delete.
4043 (arm_gdbarch_init) Do not set frameless function invocation.
4044 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
4045 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
4046 * frv-tdep.c (frv_frameless_function_invocation): Delete.
4047 (frv_gdbarch_init): Do not set frameless function invocation.
4048 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
4049 * sh-tdep.c (sh_gdbarch_init): Ditto.
4050 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
4051 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4052 * avr-tdep.c (avr_gdbarch_init): Ditto.
4053
474093a6
AC
4054 * blockframe.c (legacy_frame_chain_valid): Delete function.
4055
3c109c8b
AC
4056 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
4057 and pc. Update comments.
4058 (pc_in_dummy_frame): Delete function.
4059 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
4060 use the "id".
4061 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
4062 call_hi, top and pc, use the id.
4063 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
4064
96860204
AC
4065 * dummy-frame.c: Include "gdb_string.h".
4066 (generic_save_call_dummy_addr, generic_push_dummy_frame)
4067 (generic_save_dummy_frame_tos): Delete.
4068 (dummy_frame_push): New function, replaces above.
4069 * dummy-frame.h: Update copyright.
4070 (dummy_frame_push): Declare.
4071 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
4072 (generic_save_call_dummy_addr): Delete declarations.
4073 * infcall.c: Include "dummy-frame.h".
4074 (call_function_by_hand): Add locals caller_regcache,
4075 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
4076 with call to frame_save_as_regcache plus cleanup. Delete calls to
4077 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
4078 Move clear_proceed_status to just before the resume, add call to
4079 dummy_frame_push (discard cleanup).
4080 * Makefile.in (infcall.o): Add $(dummy_frame_h).
4081 (dummy-frame.o): Add $(gdb_string_h).
4082
d67ec5db
AC
40832004-08-01 Andrew Cagney <cagney@gnu.org>
4084
4085 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
4086 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
4087 * dummy-frame.c (find_dummy_frame): Delete.
4088 (struct dummy_frame_cache, dummy_frame_sniffer)
4089 (dummy_frame_prev_register, dummy_frame_this_id)
4090 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
4091 frame unwinder using a dummy_frame_cache.
4092
a81dcb05
AC
40932004-08-01 Andrew Cagney <cagney@gnu.org>
4094
4095 * frame.h (frame_save_as_regcache): Declare.
4096 * frame.c (frame_save_as_regcache): New function.
4097 (do_frame_read_register): Replace do_frame_unwind_register.
4098 (frame_pop): Use frame_save_as_regcache.
4099 * dummy-frame.c (generic_push_dummy_frame): Use
4100 frame_save_as_regcache.
4101
aa495d11
JB
41022004-08-01 Joel Brobecker <brobecker@gnat.com>
4103
4104 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
4105 file as included until we record the first line in the linetable.
4106
ff65ac78
AC
41072004-08-01 Andrew Cagney <cagney@gnu.org>
4108
4109 * frame.h (deprecated_pop_dummy_frame)
4110 (deprecated_read_register_dummy)
4111 (deprecated_generic_find_dummy_frame): Delete.
4112 * dummy-frame.c (deprecated_generic_find_dummy_frame)
4113 (deprecated_read_register_dummy)
4114 (deprecated_find_dummy_frame_regcache)
4115 (discard_innermost_dummy)
4116 (deprecated_pop_dummy_frame): Delete.
4117 (dummy_frame_this_id): Simplify.
4118 (struct dummy_frame): Delete "fp" and "sp".
4119 (find_dummy_frame): Simplify.
4120 (generic_push_dummy_frame): Do not set "fp" or "sp".
4121 (fprint_dummy_frames): Do not print "fp" and "sp"
4122
37bdc87e
MK
41232004-08-01 Mark Kettenis <kettenis@gnu.org>
4124
4125 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
4126 (struct i386_insn): New structure.
4127 (i386_match_insn): New function.
4128 (i386_frame_setup_skip_insns): New variable.
4129 (i386_analyze_frame_setup): Change to use i386_match_insn and the
4130 array i386_frame_setup_insns of instructions that should be
4131 skipped inside the frame setup sequence.
4132
8241eaa6
AC
41332004-08-01 Andrew Cagney <cagney@gnu.org>
4134
5bc602c7
AC
4135 * frame.h (deprecated_frame_xmalloc_with_cleanup)
4136 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
4137 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
4138 * stack.c (frame_info): Delete references to
4139 DEPRECATED_FRAME_INIT_SAVED_REGS and
4140 deprecated_get_frame_saved_regs.
4141 * frame.c (struct frame_info): Delete saved_regs and extra_info.
4142 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
4143 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
4144 (frame_unwind_register_signed)
4145 (frame_unwind_register_unsigned)
4146 (frame_unwind_unsigned_register): Use register_size.
4147 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
4148 (deprecated_frame_xmalloc_with_cleanup)
4149 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
4150 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
4151
03d363a1
AC
4152 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
4153 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
4154 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
4155 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
4156
8241eaa6
AC
4157 * infcall.c (call_function_by_hand): Do not use
4158 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
4159 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
4160 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
4161 DEPRECATED_STACK_ALIGN.
4162
f00df8b7
AC
41632004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
4164
4165 Committed by Andrew Cagney.
4166 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
4167
eec63939
AC
41682004-08-01 Andrew Cagney <cagney@gnu.org>
4169
4170 * mips-tdep.c (mips16_frame_cache)
4171 (mips16_frame_this_id, mips16_frame_prev_register)
4172 (mips16_frame_unwind, mips16_frame_sniffer)
4173 (mips16_frame_base_address, mips16_frame_base)
4174 (mips16_frame_base_sniffer, mips32_frame_cache)
4175 (mips32_frame_this_id, mips32_frame_prev_register)
4176 (mips32_frame_unwind, mips32_frame_sniffer)
4177 (mips32_frame_base_address, mips32_frame_base)
4178 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
4179 separate heuristic mips16 and mips32 unwinders.
4180 (mips_stub_frame_cache, mips_stub_frame_this_id)
4181 (mips_stub_frame_prev_register)
4182 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
4183 (mips_stub_frame_base_address, mips_stub_frame_base)
4184 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
4185 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
4186 match true mdebug frames.
4187 (non_heuristic_proc_desc): Add forward declaration.
4188
e66299b3
AC
41892004-08-01 Andrew Cagney <cagney@gnu.org>
4190
83cbbf3e
AC
4191 * config/mips/tm-irix6.h: Delete file.
4192 * config/mips/tm-irix5.h: Delete file.
4193 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
4194 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
4195
22d41b37
AC
4196 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
4197 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
4198 * config/nm-gnu.h (NO_CORE_OPS): Delete.
4199 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
4200 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
4201 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
4202 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
4203 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
4204 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
4205 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
4206 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
4207 (TARGET_SIGNAL_RAW_VALUES): Delete.
4208 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
4209 Delete.
4210 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
4211 (TARGET_HW_WATCH_LIMIT): Delete.
4212 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
4213 * minimon.h: Delete file.
4214
e66299b3
AC
4215 * trad-frame.c (trad_frame_get_this_base)
4216 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
4217 functions.
4218 * trad-frame.h (trad_frame_set_this_base)
4219 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
4220
1f67027d
AC
42212004-07-31 Andrew Cagney <cagney@gnu.org>
4222
4223 * trad-frame.c (trad_frame_get_prev_register): Rename
4224 trad_frame_get_prev_register.
4225 * vax-tdep.c (vax_frame_prev_register): Update.
4226 * trad-frame.h: Update.
4227 * trad-frame.c (trad_frame_get_register): Update.
4228 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
4229 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
4230 Update.
4231 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
4232 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
4233 Update.
4234 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
4235 Update.
4236 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
4237 Update.
4238 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
4239 Update.
4240 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
4241 Update.
4242 * s390-tdep.c (s390_frame_prev_register)
4243 (s390_stub_frame_prev_register)
4244 (s390_sigtramp_frame_prev_register): Update.
4245 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
4246 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
4247 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
4248 * m88k-tdep.c (m88k_frame_prev_register)
4249 * m68hc11-tdep.c (m68hc11_frame_prev_register)
4250 * m32r-tdep.c (m32r_frame_prev_register): Update.
4251 * hppa-tdep.c (hppa_frame_prev_register_helper)
4252 * frv-tdep.c (frv_frame_prev_register): Update.
4253 * d10v-tdep.c (d10v_frame_prev_register): Update.
4254 * cris-tdep.c (cris_frame_prev_register): Update.
4255 * avr-tdep.c (avr_frame_prev_register): Update.
4256 * arm-tdep.c (arm_prologue_prev_register)
4257 (arm_sigtramp_prev_register): Update.
4258
c1bf6f65
AC
42592004-07-31 Andrew Cagney <cagney@gnu.org>
4260
4261 * frame.h (legacy_saved_regs_unwind)
4262 (legacy_frame_chain_valid, legacy_frame_p)
4263 (enum frame_type): Delete UNKNOWN_FRAME.
01fbbd97
AC
4264 * dummy-frame.c (dummy_frame_this_id): Simplify.
4265 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
c1bf6f65
AC
4266 * frame.c (struct frame_info): Delete the field "type".
4267 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
4268 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
4269 (legacy_saved_regs_unwind, legacy_frame_p)
4270 (frame_type_from_pc): Delete.
4271 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
4272 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
4273
dc856692
MK
42742004-07-31 Mark Kettenis <kettenis@gnu.org>
4275
5a5effe1
MK
4276 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
4277 indentation.
4278
d4fd50a6
MK
4279 * mips-nat.c: Remove file.
4280 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
4281 (mips-nat.o): Remove dependency.
4282
2689df5a
MK
4283 * infptrace.c: Update copyright year.
4284 (fetch_register): Pass NULL in regcache_raw_supply call instead of
4285 explicitly setting the buffer to all zeroes.
4286
dc856692
MK
4287 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
4288 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
4289
763910e0
AC
42902004-07-30 Andrew Cagney <cagney@gnu.org>
4291
4292 * GDB 6.2 released from gdb_6_2-branch.
4293
0b66e38c
EZ
42942004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
4295
4296 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
4297
4298 * exec.c (exec_file_attach):
4299 * nto-tdep.c (nto_find_and_open_solib):
4300 * pa64solib.c (pa64_solib_sizeof_symbol_table):
4301 * solib.c (solib_open):
4302 * somsolib.c (som_solib_sizeof_symbol_table):
4303 * source.c (is_regular_file, openp, open_source_file):
4304 * symfile.c (symfile_bfd_open):
4305 * wince.c (upload_to_device): Differentiate between the search for
4306 binary and source files.
4307
be7d7357
AC
43082004-07-30 Andrew Cagney <cagney@gnu.org>
4309
4310 * complaints.c (_initialize_complaints): Pass NULL to
4311 add_setshow_zinteger_cmd for help_doc.
4312 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
4313
ddc9cd0f
AC
43142004-07-30 Andrew Cagney <cagney@gnu.org>
4315
4316 Fix PR i18n/761.
4317 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
4318 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
4319 $(PACKAGE).pot and update-po.
4320 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
4321 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
4322 (update-po): New rules.
4323 (localedir): Define using autoconf.
4324 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
4325 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
4326 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
4327 * configure.in: Generate CATALOGS and LINGUAS from contents of
4328 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
4329 * configure: Re-generate.
4330 * po/gdbtext: New file
4331
e92f3704
JG
43322004-07-30 Jerome Guitton <guitton@gnat.com>
4333
4334 * MAINTAINERS: Reorder Write After Approval list in alphabetical
4335 order.
4336
b0f35d58
DL
43372004-07-30 David Lecomber <dsl@sources.redhat.com>
4338
4339 * dwarf2read.c (read_file_scope): Set producer if attribute
4340 present.
4341 (struct dwarf2_cu): Added new member producer.
4342
ce7d4522
JG
43432004-07-30 Jerome Guitton <guitton@gnat.com>
4344
4345 * inflow.c (kill_command): release file handles in BFD.
4346 * exec.c (exec_file_attach): Ditto.
4347 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
4348
05ee07c7
AC
43492004-07-29 Andrew Cagney <cagney@gnu.org>
4350
4351 * PROBLEMS (mips-irix): Note that it is broken.
4352
62eceb47
AC
43532004-07-29 Andrew Cagney <cagney@gnu.org>
4354
e57b8d41
AC
4355 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
4356 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
4357
d334389b
AC
4358 * config/xm-nbsd.h: Delete file.
4359 * config/arm/xm-nbsd.h: Delete file.
4360 * config/i386/xm-nbsd.h: Delete file.
4361 * config/ns32k/xm-nbsd.h: Delete file.
4362 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
4363 * config/i386/nbsdelf.mh (XM_FILE): Delete.
4364 * config/i386/nbsdaout.mh (XM_FILE): Delete.
4365 * config/arm/nbsdelf.mh (XM_FILE): Delete.
4366 * config/arm/nbsdaout.mh (XM_FILE): Delete.
4367
e910f676
AC
4368 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
4369 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
4370 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
4371 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
4372 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
4373 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
4374
6fa856b9
AC
4375 * config/powerpc/xm-linux.h: Delete empty file.
4376 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
4377 * config/powerpc/linux.mh (XM_FILE): Delete.
4378 * config/m68k/xm-linux.h: Delete empty file.
4379 * config/m68k/linux.mh (XM_FILE): Delete.
4380 * config/ia64/xm-linux.h: Delete empty file.
4381 * config/ia64/linux.mh (XM_FILE): Delete.
4382 * config/arm/xm-linux.h: Delete empty file.
4383 * config/arm/linux.mh (XM_FILE): Delete.
4384
471ae5ae
AC
4385 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4386 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
4387 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4388 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
4389 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4390 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
4391 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4392 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
4393
62eceb47
AC
4394 * config/m68k/xm-m68k.h: Delete file.
4395 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
4396 copyright.
4397 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
4398 * config/pa/xm-linux.h: Delete empty file.
4399 * config/pa/linux.mh (XM_FILE): Delete.
4400 * config/i386/xm-i386.h: Delete empty file.
4401 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
4402 "i386/xm-i386.h".
4403 * config/i386/obsdaout.mh (XM_FILE): Delete.
4404 * config/i386/obsd64.mh (XM_FILE): Delete.
4405 * config/i386/fbsd64.mh (XM_FILE): Delete.
4406 * config/i386/nto.mh (XM_FILE): Delete.
4407 * config/i386/obsd.mh (XM_FILE): Delete.
4408 * config/i386/linux64.mh (XM_FILE): Delete.
4409 * config/i386/linux.mh (XM_FILE): Delete.
4410 * config/i386/i386sol2.mh (XM_FILE): Delete.
4411 * config/i386/i386gnu.mh (XM_FILE): Delete.
4412 * config/i386/fbsd.mh (XM_FILE): Delete.
4413 * config/i386/nbsd64.mh (XM_FILE): Delete.
4414
c35f4ffc
AC
44152004-07-29 Andrew Cagney <cagney@gnu.org>
4416
4417 * config/pa/xm-linux.h: Do not include "floatformat.h".
4418 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4419 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
4420 * config/i386/xm-i386.h: Do not include "floatformat.h".
4421 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4422 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
4423 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4424 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
4425 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
4426 GDB_HOST_LONG_DOUBLE_FORMAT instead.
4427 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
4428 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
4429 * configure, config.in: Regenerate.
4430 * configure.host (gdb_host_float_format, gdb_host_double_format)
4431 (gdb_host_long_double_format): Set according to the host.
4432
624a44a3
AC
44332004-07-29 Andrew Cagney <cagney@gnu.org>
4434
4435 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
4436
0dea2468
AC
44372004-07-28 Andrew Cagney <cagney@gnu.org>
4438
4439 * PROBLEMS: Mention threads/1650.
4440 * NEWS: Mention the NPTL fix.
4441
b3f42336
AC
44422004-07-28 Andrew Cagney <cagney@gnu.org>
4443
4444 * cli/cli-decode.c (add_setshow_cmd): Delete function.
4445 (add_setshow_cmd_full): Make static.
4446 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
4447 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
4448 * cli/cli-decode.c (add_setshow_filename_cmd)
4449 (add_setshow_string_cmd): New functions.
4450 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
4451 * mips-tdep.c (_initialize_mips_tdep): Update.
4452 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
4453 * cli/cli-logging.c (_initialize_cli_logging): Update.
4454 * complaints.c (_initialize_complaints): Update.
4455 * remote.c (_initialize_remote): Update.
4456
3b64bf98
AC
44572004-07-28 Andrew Cagney <cagney@gnu.org>
4458
4459 * cli/cli-decode.c (add_setshow_zinteger_cmd)
4460 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
4461 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
4462 print parameters. Make string parameters constant.
4463 * command.h: Update. Update copyright.
4464 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
4465 * observer.c (_initialize_observer): Ditto.
4466 * frame.c (_initialize_frame): Ditto.
4467 * complaints.c (_initialize_complaints): Ditto.
4468 * maint.c (_initialize_maint_cmds): Ditto.
4469 * target.c (initialize_targets): Ditto.
4470 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
4471 * infcall.c (_initialize_infcall): Ditto.
4472 * arm-tdep.c (_initialize_arm_tdep): Ditto.
4473 * m32r-rom.c (_initialize_m32r_rom): Ditto.
4474 * remote-rdi.c (_initialize_remote_rdi): Ditto.
4475 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
4476 * mips-tdep.c (_initialize_mips_tdep): Ditto.
4477
e9667a65
AC
44782004-07-28 Andrew Cagney <cagney@gnu.org>
4479
54a5b07d
AC
4480 * gdbtypes.c (lookup_primitive_typename): Delete function.
4481 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
4482 * ada-lex.l: Use language_lookup_primitive_type_by_name.
4483 * gdbtypes.c (lookup_typename): Ditto.
4484 * f-exp.y (yylex): Ditto.
4485 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
4486
e9667a65
AC
4487 * scm-lang.c (c_builtin_types): Delete extern declaration.
4488 (scm_language_defn): Replace
4489 string_char_type and primitive_type_vector with
4490 la_language_arch_info.
4491 * jv-lang.c (java_language_defn): Replace
4492 string_char_type and primitive_type_vector with
4493 la_language_arch_info.
4494 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
4495 c_builtin_types in comment.
4496 * c-lang.h (struct language_arch_info): Declare opaque.
4497 (c_language_arch_info): Declare.
4498 (c_builtin_types): Delete declaration.
4499 * c-lang.c (c_language_arch_info): Set string_char_type to
4500 builtin_char, not builtin_true_char. Make global.
4501 (c_builtin_types): Delete array.
4502 (asm_language_defn, minimal_language_defn): Replace
4503 string_char_type and primitive_type_vector with
4504 la_language_arch_info.
4505
685419e2
AC
45062004-07-28 Andrew Cagney <cagney@gnu.org>
4507
4508 * gdbtypes.h (struct builtin_type): Rename true_char to
4509 builtin_true_char.
4510 * gdbtypes.c (gdbtypes_post_init): Update.
4511 * c-lang.c (arch_info): New function.
4512 (enum c_primitive_types): New enum.
4513 (c_language_defn): Instead of string_char_type and
4514 primitive_type_vector set la_language_arch_info.
4515
5a44ea29
AC
45162004-07-28 Andrew Cagney <cagney@gnu.org>
4517
4518 * language.h (struct language_arch_info): Fix typo
4519 s/primative/primitive/.
4520 * gdbtypes.c (lookup_primitive_typename): Ditto.
4521 * language.c (language_lookup_primitive_type_by_name)
4522 (unknown_language_arch_info): Ditto.
4523
f290d38e
AC
45242004-07-27 Andrew Cagney <cagney@gnu.org>
4525
4526 * defs.h (enum language): Add nr_languages.
4527 * language.h (struct language_arch_info): Define.
4528 (struct language_defn): Add la_language_arch_info.
4529 (language_lookup_primative_type_by_name): Declare.
4530 (language_string_char_type): Declare.
4531 * language.c (_initialize_language, language_gdbarch_post_init)
4532 (struct language_gdbarch, language_gdbarch_data): Implement
4533 per-architecture language information.
4534 (unknown_language_arch_info, language_string_char_type)
4535 (language_lookup_primative_type_by_name): New functions.
4536 (unknown_language_defn, auto_language_defn)
4537 (local_language_defn): Set la_language_arch_info to
4538 unknown_language_arch_info.
4539 (unknown_builtin_types): Delete.
4540 * gdbtypes.c (lookup_primitive_typename): Use
4541 language_lookup_primative_type_by_name.
4542 (create_string_type): Use language_string_char_type.
4543 * values.c (value_from_string): Use language_string_char_type.
4544 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
4545 * p-lang.c (pascal_language_defn): Ditto.
4546 * m2-lang.c (m2_language_defn): Ditto.
4547 * jv-lang.c (java_language_defn): Ditto.
4548 * objc-lang.c (objc_language_defn): Ditto.
4549 * f-lang.c (f_language_defn): Ditto.
4550 * c-lang.c (c_language_defn, cplus_language_defn)
4551 (asm_language_defn, minimal_language_defn): Ditto.
4552
000177f0
AC
45532004-07-27 Andrew Cagney <cagney@gnu.org>
4554
4555 * gdbtypes.h (struct builtin_type): Declare.
4556 (builtin_type): Declare.
4557 * d10v-tdep.c (d10v_register_type): Use builtin_type.
4558 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
4559 (gdbtypes_post_init): New function.
4560 (builtin_type): New function.
4561
e22f895c
KI
45622004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
4563
4564 * remote-m32r-sdi.c: Fix breakpoint bug.
4565 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
4566 recv_char_data, recv_long_data): New functions to replace communication
4567 sequences.
4568
536517dd
MC
45692004-07-26 Michael Chastain <mec.gnu@mindspring.com>
4570
4571 Document PR threads/1650.
4572 * PROBLEMS (Threads): Document problem with many threads
4573
a0a44d18
AC
45742004-07-26 Andrew Cagney <cagney@gnu.org>
4575
4576 * gdb-mi.el: Move from here ...
4577 * mi/gdb-mi.el: ... to here.
4578
7ac4ac06
AC
45792004-07-26 Andrew Cagney <cagney@gnu.org>
4580
4581 Problem reported by Ashley Pittman <ashley@quadrics.com>.
4582 * main.c (captured_main): When in batch mode always detach.
4583
a1b461bf
AC
45842004-07-26 Andrew Cagney <cagney@gnu.org>
4585
4586 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
4587 and h8300 as broken.
4588 * NEWS: END-OF-LIFE frame compatibility module.
4589 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
4590 specific comments.
4591
cb1a6d5f
AC
45922004-07-26 Andrew Cagney <cagney@gnu.org>
4593
4594 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
4595 * xcoffsolib.c (_initialize_xcoffsolib): Update.
4596 * wince.c (_initialize_wince): Update.
4597 * win32-nat.c (_initialize_win32_nat): Update.
4598 * varobj.c (_initialize_varobj): Update.
4599 * valops.c (_initialize_valops): Update.
4600 * utils.c (initialize_utils, initialize_utils): Update.
4601 * tui/tui-win.c (_initialize_tui_win): Update.
4602 * top.c (init_main): Update.
4603 * symfile.c (_initialize_symfile): Update.
4604 * source.c (_initialize_source): Update.
4605 * somsolib.c (_initialize_som_solib): Update.
4606 * solib.c (_initialize_solib): Update.
4607 * solib-frv.c (_initialize_frv_solib): Update.
4608 * serial.c (_initialize_serial): Update.
4609 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
4610 * remote.c (_initialize_remote, _initialize_remote): Update.
4611 * remote-vx.c (_initialize_vx): Update.
4612 * remote-utils.c (_initialize_sr_support): Update.
4613 * remote-sds.c (_initialize_remote_sds): Update.
4614 * remote-mips.c (_initialize_remote_mips): Update.
4615 * remote-e7000.c (_initialize_remote_e7000): Update.
4616 * proc-api.c (_initialize_proc_api): Update.
4617 * printcmd.c: Update.
4618 * parse.c (_initialize_parse): Update.
4619 * pa64solib.c (_initialize_pa64_solib): Update.
4620 * p-valprint.c (_initialize_pascal_valprint): Update.
4621 * monitor.c (_initialize_remote_monitors): Update.
4622 * mips-tdep.c (_initialize_mips_tdep): Update.
4623 * mcore-tdep.c (_initialize_mcore_tdep): Update.
4624 * maint.c (_initialize_maint_cmds): Update.
4625 * lin-lwp.c (_initialize_lin_lwp): Update.
4626 * language.c (_initialize_language): Update.
4627 * kod.c (_initialize_kod): Update.
4628 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
4629 * i386-tdep.c (_initialize_i386_tdep): Update.
4630 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
4631 * gdbarch.sh: Update.
4632 * gdbarch.c: Re-generate.
4633 * gdb-events.sh: Update.
4634 * gdb-events.c: Re-generate.
4635 * frame.c (_initialize_frame): Update.
4636 * exec.c: Update.
4637 * demangle.c (_initialize_demangler): Update.
4638 * dcache.c (_initialize_dcache): Update.
4639 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
4640 * cp-valprint.c (_initialize_cp_valprint): Update.
4641 * corefile.c (_initialize_core): Update.
4642 * command.h: Update.
4643 * cli/cli-decode.h: Update.
4644 * cli/cli-cmds.c (init_cli_cmds): Update.
4645 * charset.c (_initialize_charset): Update.
4646 * breakpoint.c (_initialize_breakpoint): Update.
4647 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
4648 * alpha-tdep.c (_initialize_alpha_tdep): Update.
4649 * aix-thread.c (_initialize_aix_thread): Update.
4650
b4632131
MK
46512004-07-24 Mark Kettenis <kettenis@gnu.org>
4652
4653 Partial fix for PR backtrace/1718.
4654 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
4655 that GCC migrates into the prolugue. Don't handle any
4656 instructions that clobber %ebx.
4657
822c9732
AC
46582004-07-23 Andrew Cagney <cagney@gnu.org>
4659
4660 Use regcache_raw_collect instead of regcache_collect.
4661 * regcache.h (regcache_collect): Delete declaration.
4662 * regcache.c (regcache_colect): Delete function.
4663 * win32-nat.c (do_child_store_inferior_registers): Update.
4664 * sol-thread.c (sol_thread_store_registers): Update.
4665 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
4666 * rs6000-nat.c (store_register): Update.
4667 * remote.c (store_register_using_P, remote_store_registers): Update.
4668 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
4669 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
4670 (fill_vrregset, store_spe_registers, fill_gregset)
4671 (fill_gregset): Update.
4672 * nto-procfs.c (procfs_store_registers): Update.
4673 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
4674 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
4675 * m68klinux-nat.c (store_register, fill_gregset): Update.
4676 * m68k-tdep.c (fill_gregset): Update.
4677 * infptrace.c (store_register): Update.
4678 * i386-nto-tdep.c (i386nto_regset_fill): Update.
4679 * i386-linux-nat.c (store_register, fill_gregset): Update.
4680 * hppa-linux-nat.c (fill_gregset): Update.
4681 * go32-nat.c (store_register): Update.
4682 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
4683 (store_fp_regs): Update.
4684 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
4685 (store_nwfpe_extended, store_fpregister, store_fpregs)
4686 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
4687 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
4688 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
4689 (store_regs_user_thread, store_regs_kernel_thread): Update.
4690
32b05c07
MK
46912004-07-24 Mark Kettenis <kettenis@gnu.org>
4692
4693 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
4694 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
4695 encoding.
4696 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
4697 member of `struct comp_unit'.
4698
8567c30f
AC
46992004-07-23 Andrew Cagney <cagney@gnu.org>
4700
4701 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
4702 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
4703
f6da8dd8
MH
47042004-07-23 Martin Hunt <hunt@redhat.com>
4705 Kevin Buettner <kevinb@redhat.com>
4706
4707 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
4708 alignment was being added to the offset instead of multiplied.
4709
bd921882
MK
47102004-07-23 Mark Kettenis <kettenis@gnu.org>
4711
24f033e8
MK
4712 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
4713 changed signal trampoline in OpenBSD 3.5-current.
4714
90f3cecd
MK
4715 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
4716 <machine/pcb.h> and "bsd-kvm.h".
4717 (sparc64nbsd_supply_pcb): New function.
4718 (_initialize_sparc64nbsd_nat): Renamed from
4719 _initialize_sparcnbsd_nat. Enable libkvm interface.
4720 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
4721 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
4722 (LOADLIBES): New variable.
4723
a4954a62
MK
4724 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
4725
bd921882
MK
4726 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
4727
23a6d369
AC
47282004-07-21 Andrew Cagney <cagney@gnu.org>
4729
4730 Use regcache_raw_supply instead of supply_register.
4731 * regcache.h (supply_register): Delete declaration.
4732 * regcache.c (supply_register): Delete function.
4733 * wince.c (do_child_fetch_inferior_registers): Update.
4734 * win32-nat.c (do_child_fetch_inferior_registers)
4735 (fetch_elf_core_registers): Update.
4736 * v850ice.c (v850ice_fetch_registers): Update.
4737 * thread-db.c (thread_db_store_registers): Update.
4738 * sol-thread.c (sol_thread_store_registers): Update.
4739 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
4740 * rs6000-nat.c (fetch_register): Update.
4741 * rom68k-rom.c (rom68k_supply_one_register): Update.
4742 * remote.c (remote_wait, remote_async_wait): Update.
4743 * remote-st.c (get_hex_regs): Update.
4744 * remote-sim.c (gdbsim_fetch_register): Update.
4745 * remote-sds.c (sds_fetch_registers): Update.
4746 * remote-rdp.c (remote_rdp_fetch_register): Update.
4747 * remote-rdi.c (arm_rdi_fetch_registers): Update.
4748 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
4749 * remote-m32r-sdi.c (m32r_fetch_register): Update.
4750 * remote-hms.c (init_hms_cmds): Update.
4751 * remote-est.c (init_est_cmds): Update.
4752 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
4753 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
4754 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
4755 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
4756 (fetch_register, supply_vrregset, supply_vrregset)
4757 (fetch_spe_registers): Update.
4758 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
4759 * monitor.c (monitor_supply_register): Update.
4760 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
4761 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
4762 (mipsnbsd_supply_fpreg): Update.
4763 * mips-nat.c (fetch_inferior_registers)
4764 (fetch_core_registers): Update.
4765 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
4766 (supply_fpregset, mips64_supply_gregset)
4767 (mips64_supply_fpregset): Update.
4768 * m68klinux-nat.c (fetch_register, supply_gregset)
4769 (supply_fpregset): Update.
4770 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
4771 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
4772 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
4773 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
4774 * infptrace.c (fetch_register): Update.
4775 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
4776 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
4777 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
4778 (gnu_fetch_registers, gnu_store_registers): Update.
4779 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
4780 * i386-linux-nat.c (fetch_register, supply_gregset)
4781 (dummy_sse_values): Update.
4782 * hpux-thread.c (hpux_thread_fetch_registers): Update.
4783 * hppah-nat.c (fetch_register): Update.
4784 * hppa-linux-nat.c (fetch_register, supply_gregset)
4785 (supply_fpregset): Update.
4786 * go32-nat.c (fetch_register): Update.
4787 * dve3900-rom.c (fetch_bitmapped_register)
4788 (_initialize_r3900_rom): Update.
4789 * cris-tdep.c (supply_gregset): Update.
4790 * abug-rom.c (init_abug_cmds): Update.
4791 * core-aout.c (fetch_core_registers): Update.
4792 * armnbsd-nat.c (supply_gregset, supply_fparegset)
4793 (fetch_register, fetch_fp_register): Update.
4794 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
4795 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
4796 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
4797 * alphanbsd-tdep.c (fetch_core_registers): Update.
4798 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
4799 * alpha-nat.c (fetch_osf_core_registers)
4800 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
4801 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
4802 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
4803
73cc75f3
AC
48042004-07-21 Andrew Cagney <cagney@gnu.org>
4805
4806 * PROBLEMS: Mention breakpoints/1702.
4807 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
4808 that is known to work.
4809
a53c66de
AC
48102004-07-21 Andrew Cagney <cagney@gnu.org>
4811
4812 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
4813 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
4814 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
4815 (handle_inferior_event): Wrap call to deprecated
4816 IGNORE_HELPER_CALL in #ifdef.
4817 * config/mips/tm-nbsd.h: Update.
4818
708ff411
JB
48192004-07-20 Jim Blandy <jimb@redhat.com>
4820
412b3060
JB
4821 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
4822 bfd_mach_ppc has no segment registers.
4823
13ac140c
JB
4824 Include PowerPC SPR numbers for special-purpose registers.
4825 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
4826 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
4827 new member in initializer.
4828 (S, S4, SN4, S64): New macros for defining special-purpose
4829 registers.
4830 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
4831 registers_403, registers_403GC, registers_505, registers_860,
4832 registers_601, registers_602, registers_603, registers_604,
4833 registers_750, registers_e500): Use them.
4834
708ff411
JB
4835 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
4836 replace references with expression used to initialize variable.
4837
1f602b35
AC
48382004-07-20 Andrew Cagney <cagney@gnu.org>
4839
4840 * breakpoint.c (deprecated_read_memory_nobpt): Rename
4841 read_memory_nobpt.
4842 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
4843 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
4844 (s390_sigtramp_frame_sniffer): Update.
4845 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
4846 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
4847 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
4848 (mips32_fetch_instruction): Update.
4849 * mcore-tdep.c (get_insn): Update.
4850 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
4851 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
4852 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
4853 * i386-linux-tdep.c (i386_linux_sigtramp_start)
4854 (i386_linux_rt_sigtramp_start): Update.
4855 * i386-linux-nat.c (child_resume): Update.
4856 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
4857 * hppa-linux-tdep.c (insns_match_pattern): Update.
4858 * gdbcore.h: Update.
4859 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
4860 * frame.c (safe_frame_unwind_memory): Update.
4861 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
4862 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
4863 * alpha-tdep.c (alpha_read_insn): Update.
4864
2cd8546d
AC
48652004-07-20 Andrew Cagney <cagney@gnu.org>
4866
4867 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
4868 containing both bytes and mask. Add "frame_type".
4869 * tramp-frame.c (tramp_frame_start): Update.
4870 (tramp_frame_prepend_unwinder): Update.
4871 * mips-linux-tdep.c (mips_linux_o32_sigframe)
4872 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
4873 (mips_linux_n64_rt_sigframe): Update. Make "static const".
4874 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
4875
f928dd62
EZ
48762004-07-19 Eli Zaretskii <eliz@gnu.org>
4877
4878 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
4879 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
4880 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
4881 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
4882
d5c560f7
AC
48832004-07-17 Andrew Cagney <cagney@gnu.org>
4884
860660cb
AC
4885 * NEWS, PROBLEMS: Update for 6.2.
4886
8c266f54
AC
4887 * README: Update to 6.2.
4888
a552edd9
AC
4889 * utils.c (xvasprintf): Call xstrvprintf.
4890
c4a172b5
AC
4891 * parse.c: Update copyright.
4892 (null_post_parser): Eliminate ARGSUSED.
4893
da745b36
AC
4894 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
4895 * tui/tui-win.c (tui_get_cmd_list): Ditto.
4896 * symfile-mem.c (_initialize_symfile_mem): Ditto.
4897
9cbc6ef0
AC
4898 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
4899 * ppc-linux-nat.c: Use "Linux kernel".
4900 * hppa-linux-tdep.c: Use GNU/Linux.
4901 * hppa-linux-nat.c: Use GNU/Linux.
4902 * dwarfread.c: Add [sic] to use of Linux.
4903
1b89295f
AC
4904 * hppa-linux-nat.c: Do not include <string.h>.
4905 (supply_fpregset): Remove "register" attribute.
4906
d5c560f7
AC
4907 * solib-frv.c (fetch_loadmap): Use xfree, not free.
4908
7ddd7709
MK
49092004-07-17 Mark Kettenis <kettenis@gnu.org>
4910
b1d19a62
MK
4911 * configure.in: Define _MSE_INT_H on Solaris 9 too.
4912 * configure, config.in: Regenerated.
4913
7ddd7709
MK
4914 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
4915 "bsd-kvm.h".
4916 (vaxbsd_supply_pcb): New function.
4917 (_initialize_vaxbsd_nat): New prototype and function.
4918 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
4919 solib-sunos.o.
4920 (LOADLIBES): New variable.
4921 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
4922 (LOADLIBES): New variable.
4923 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
4924 (LOADLIBES): New variable.
4925 * Makefile.in (vaxbsd-nat.o): Update dependencies.
4926
2c07db7a
AC
49272004-07-16 Andrew Cagney <cagney@gnu.org>
4928
4929 * defs.h (event_loop_p): Replace variable declaration with macro,
4930 always 1.
4931 * main.c (captured_main): Delete options "-async" and "-noasync".
4932 (event_loop_p): Delete variable.
4933 * NEWS: Mention that "-async" and "-noasync" were removed.
4934
717eb1cf
AC
49352004-07-16 Andrew Cagney <cagney@gnu.org>
4936
4937 * remote-m32r-sdi.c: Re-indent.
4938
c101bc14
JB
49392004-07-16 Jim Blandy <jimb@redhat.com>
4940
5109a438
JB
4941 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
4942 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
4943 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
4944 missing MPC823 SPRs.
4945 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
4946 incorrect. (This was corrected in GDB's register name tables on
4947 2004-07-14.)
4948
c101bc14
JB
4949 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
4950 should be "esasrr" ("ESA Save and Restore Register").
4951
7ce450bd
AC
49522004-07-16 Andrew Cagney <cagney@gnu.org>
4953
4954 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
4955 calls, no longer applicable. Update comments and rename parameter
4956 "step_frame" to "return_frame".
4957
ca73dd9d
AC
49582004-07-16 Andrew Cagney <cagney@gnu.org>
4959
4960 * frame.c (fprint_field): New function.
4961 (fprint_frame_id): Use fprint_field.
4962
31941f6d
JB
49632004-07-15 Joel Brobecker <brobecker@gnat.com>
4964
4965 * ada-lang.c (ada_language_defn): Remove commented out code.
4966
f86a7158
JB
49672004-07-15 Jim Blandy <jimb@redhat.com>
4968
4969 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
4970 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
4971
c24791ec
JB
49722004-07-14 Jim Blandy <jimb@redhat.com>
4973
29bb1356
JB
4974 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
4975
cc98b5cc
JB
4976 * ppc-tdep.h (ppc_num_vrs): New enum constant.
4977
8f088af7
JB
4978 * ppc-tdep.h (ppc_num_srs): New enum constant.
4979
0ea0ec5f
JB
4980 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
4981 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
4982 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
4983 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
4984 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
4985 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
4986 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
4987 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
4988 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
4989 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
4990 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
4991 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
4992 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
4993 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
4994 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
4995 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
4996 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
4997 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
4998 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
4999 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
5000 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
5001 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
5002 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
5003 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
5004 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
5005 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
5006 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
5007 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
5008 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
5009 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
5010 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
5011 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
5012 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
5013 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
5014 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
5015 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
5016 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
5017 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
5018 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
5019 special-purpose register numbers.
5020
c24791ec
JB
5021 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
5022 manual mentions 'md_twb', but many mention 'm_twb', and at that
5023 point in the register list.)
5024
d833db3b
AC
50252004-07-14 Andrew Cagney <cagney@gnu.org>
5026
5027 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
5028 instead of "internal-error".
5029
080228b2
JB
50302004-07-10 Joel Brobecker <brobecker@gnat.com>
5031
5032 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
5033 that was inserted inside a comment.
5034
c268433a
RC
50352004-07-10 Randolph Chung <tausq@debian.org>
5036
5037 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
5038 function.
5039 (hppa_hpux_push_dummy_code): New function.
5040 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
5041 Set find_global_pointer method.
5042
71009278
MK
50432004-07-10 Mark Kettenis <kettenis@gnu.org>
5044
5045 * NEWS: Mention BSD libkvm interface.
5046
b2fa5097
MS
50472004-07-10 Michael Snyder <msnyder@redhat.com>
5048
5049 * symfile.c (generic_load): Comment typo.
5050 * stack.c (get_selected_block): Ditto.
5051 * regcache.c (regcache_cooked_read): Ditto.
5052 * monitor.c (monitor_debug): Ditto.
5053 * mips-tdep.c (mips_read_pc): Ditto.
5054 * i386-linux-nat.c (ps_get_thread_area): Ditto.
5055 * gdb_mbuild.sh: Ditto.
5056 * gdbarch.sh: Ditto.
5057 * gdbarch.h: Ditto.
5058
c3e5cd34
PH
50592004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
5060
8a2225b2
PH
5061 * ada-tasks.c: Remove file.
5062
c3e5cd34
PH
5063 Remove ARI problems:
5064
5065 * ada-exp.y (write_var_from_sym): Reformat to put operator at
5066 beginning of line.
5067
5068 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
5069 Add comment.
5070 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
5071 (MIN_OF_SIZE): Rename min_of_size. Add comment.
5072 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
5073 (UMIN_OF_SIZE): Remove.
5074 (max_of_type): New function to replace orphan macro in gdbtypes.h
5075 (min_of_type): Ditto.
5076 (discrete_type_high_bound): Use max_of_type.
5077 (discrete_type_low_bound): Use min_of_type.
5078 (possible_user_operator_p): Move operator to beginning of line.
5079 (ada_is_variant_part): Ditto.
5080 (ensure_lval): Rewrite to avoid deprecated operations.
5081 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
5082 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
5083 (ada_enum_name): Remove assignments in 'if' statements.
5084 (build_ada_types): Add gdbarch parameter.
5085 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
5086 with gdbarch_data_register_post_init.
5087 Use add_setshow_uinteger_cmd rather than add_set_cmd and
5088 add_show_from_set.
5089
5090 * ada-valprint.c (inspect_it): Remove declaration.
5091 (repeat_count_threshold): Remove declaration.
5092 (ada_print_floating): Remove assignments in 'if' statements.
5093 (print_str): Move operator to beginning of line.
5094
61ce229a
JB
50952004-07-08 Jim Blandy <jimb@redhat.com>
5096
5097 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
5098
09bcec80
BR
50992004-07-08 Bob Rossi <bob@brasko.net>
5100
5101 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
5102
31c27f77
JJ
51032004-07-06 Jeff Johnston <jjohnstn@redhat.com>
5104
5105 * language.h (struct_language_defn): Add new function pointer:
5106 la_class_name_from_physname. Also add new prototype for
5107 language_class_name_from_physname.
5108 * language.c (language_class_name_from_physname): New function.
5109 (unk_lang_class_name): Ditto.
5110 (unknown_language_defn, auto_language_defn): Change
5111 to add unk_lang_class_name function pointer for
5112 la_class_name_from_physname.
5113 (local_language_defn): Ditto.
5114 * dwarf2read.c (guess_structure_name): Change to call
5115 language_class_name_from_physname.
5116 (determine_class_name): Ditto.
5117 * cp-support.c (class_name_from_physname): Renamed.
5118 (cp_class_name_from_physname): New name of function.
5119 * cp-support.h: Ditto.
5120 * c-lang.c (c_language_defn): Change to add NULL
5121 for class_name_from_physname function pointer.
5122 (cplus_language_defn): Change to add cp_class_name_from_physname.
5123 * jv-lang.c (java_class_name_physname): New function.
5124 (java_find_last_component): New static routine.
5125 (java_language_defn): Add java_class_name_from_physname pointer.
5126 * ada-lang.c (ada_language_defn): Change to add NULL
5127 for class_name_from_physname function pointer.
5128 * f-lang.c (f_language_defn): Ditto.
5129 * m2-lang.c (m2_language_defn): Ditto.
5130 * objc-lang.c (objc_language_defn): Ditto.
5131 * p-lang.c (pascal_language_defn): Ditto.
5132 * scm-lang.c (scm_language_defn): Ditto.
5133
ee28ca0f
AC
51342004-07-06 Andrew Cagney <cagney@gnu.org>
5135
5136 Patch from Bart Robinson.
5137 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
5138 (O_LARGEFILE): Define to 0, if not defined.
5139
fdb1bf9d
MK
51402004-07-03 Mark Kettenis <kettenis@gnu.org>
5141
cb162ff6
MK
5142 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
5143 <machine/pcb.h> and "bsd-kvm.h".
5144 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
5145 (m68kbsd_supply_pcb): New function.
5146 (_initialize_m68kbsd_nat): New prototype and function.
5147 * Makefile.in (m68kbsd-nat.o): Update dependencies.
5148 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5149 (LOADLIBES): New variable.
5150 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
5151 (LOADLIBES): New variable.
5152
fdb1bf9d
MK
5153 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
5154
963c4174
MK
51552004-07-03 Mark Kettenis <kettenis@gnu.org>
5156
5157 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
5158 <sys/proc.h>.
5159 (bsd_kvm_cmdlist): New variable.
5160 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
5161 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
5162 command and "kvm proc" command.
5163 * Makefile.in (bsd-kvm.o): Update dependencies.
5164
533f1d8f
MK
51652004-07-02 Mark Kettenis <kettenis@gnu.org>
5166
5167 * osabi.c: Update copyright year.
5168 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
5169 notes if EI_OSABI is set to ELFOSABI_HPUX.
5170
6780dcde
MS
51712004-07-01 Michael Snyder <msnyder@redhat.com>
5172
5173 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
5174 that seems to have gotten whacked out of line.
5175
67bebe79
MK
51762004-07-01 Mark Kettenis <kettenis@gnu.org>
5177
5178 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
5179 code.
5180
0b5d8877
PH
51812004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
5182
5183 * ada-lang.c (decode_packed_array): Minor change to comment.
5184 (ada_value_slice_ptr): New function.
5185 (ada_value_slice): New function.
5186 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
5187 test. Don't know why it is there.
5188 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
5189 to avoid dereferencing huge arrays from which one is slicing.
5190 (empty_array): Correct to return an array rather than
5191 a subrange value.
5192 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
5193 on empty arrays (let'em use 'FIRST instead).
5194
19c1ef65
PH
51952004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
5196
5197 Address complaints from gdb_ari.sh:
5198
5199 * ada-exp.y: Include gdb_string.h rather than string.h.
5200 (convert_char_literal): Reformat declaration.
5201 * ada-lang.h: Include opaque struct declaration for struct frame_info.
5202 * ada-lex.l: Change use of free to xfree (the macro would do so
5203 anyway, but this is harmless).
5204 Include gdb_string.h rather than string.h.
5205 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
5206
5207 * ada-lang.c (parse): Remove K&Rism in parameter list.
5208 (is_name_suffix): Correct Linux => GNU/Linux in comment.
5209
d81cbc94
MK
52102004-06-30 Mark Kettenis <kettenis@gnu.org>
5211
5212 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
5213 dead code.
5214
07681759
MK
52152004-06-30 Mark Kettenis <kettenis@gnu.org>
5216
5217 * alphabsd-nat.c: Update copyright year.
5218 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
5219
f7948b5f
JB
52202004-06-29 Joel Brobecker <brobecker@gnat.com>
5221
6e0cdd28 5222 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
f7948b5f
JB
5223 (i386_cygwin_in_solib_call_trampoline): New function.
5224 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
5225 and skip_trampoline_code gdbarch methods.
5226
8f113c9a
JB
52272004-06-29 Jim Blandy <jimb@redhat.com>
5228
5229 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
5230 name actually used in the dependency lists.
5231
97dc871c
RC
52322004-06-29 Randolph Chung <tausq@debian.org>
5233
5234 * NEWS (New native configurations): Mention GNU/Linux/hppa.
5235
47216e51
CV
52362004-06-29 Corinna Vinschen <vinschen@redhat.com>
5237
5238 * win32-nat.c (child_pid_to_exec_file): New function.
6780dcde 5239 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
47216e51
CV
5240 functionality.
5241
e623b504
AC
52422004-06-28 Andrew Cagney <cagney@gnu.org>
5243
5244 * defs.h (xstrvprintf): Declare.
5245 * utils.c (xstrvprintf): New function.
5246 (internal_vproblem, xstrprintf, xasprintf)
5247 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
5248 * serial.c (serial_printf): Ditto.
5249 * complaints.c (vcomplaint): Ditto.
5250
79acc9b3
CV
52512004-06-29 Corinna Vinschen <vinschen@redhat.com>
5252
5253 * infcmd.c (attach_command): Move call to target_terminal_inferior
5254 behind loading symbol table.
5255
1daf35d9
AC
52562004-06-28 Andrew Cagney <cagney@gnu.org>
5257
5258 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
5259 change - add back extern deprecated_ui_loop_hook declaration.
5260
b435e160
AC
52612004-06-28 Andrew Cagney <cagney@gnu.org>
5262
5263 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
5264 xstrprintf.
5265 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
5266 (c_value_of_variable): Ditto.
5267 * utils.c (internal_vproblem): Ditto.
5268 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
5269 * remote.c (add_packet_config_cmd): Ditto.
5270 * remote-rdp.c (rdp_set_command_line): Ditto.
5271 * regcache.c (regcache_dump): Ditto.
5272 * frv-tdep.c (new_variant, new_variant): Ditto.
5273 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
5274 (fbsd_find_memory_regions): Ditto.
5275 * breakpoint.c (create_thread_event_breakpoint)
5276 (create_breakpoints): Ditto.
5277 * aix-thread.c (aix_thread_pid_to_str): Ditto.
5278 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
5279
06d5cf63
JB
52802004-06-28 Joel Brobecker <brobecker@gnat.com>
5281
5282 * ada-lang.c: Re-indent file, with some massaging to help indent
5283 a bit when the result is otherwise really too ugly.
5284
35809fad
UW
52852004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
5286
5287 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
5288 code_addr_p and special_addr_p to 'unsigned int'.
5289
40e20472
MK
52902004-06-27 Mark Kettenis <kettenis@gnu.org>
5291
5292 * i386v4-nat.c: Update copyright year and tweak comment.
5293 (regmap): Remove trailing comma.
5294 (supply_gregset): Rename local variable i to regnum. Call
5295 regcache_raw_supply instead of supply_register.
5296 (fill_gregset): Rename argument regno to regnum. Call
5297 regcache_raw_collect instead of regcache_collect.
5298
12b0b6de
UW
52992004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
5300
5301 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
5302 and special_addr_p.
5303 (frame_id_build, frame_id_build_special): Update comments.
5304 (frame_id_build_wild): New prototype.
5305 * frame.c (frame_id_build, frame_id_build_special): Fill in new
5306 struct frame_id fields.
5307 (frame_id_build_wild): New function.
5308 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
5309
47b42a3e
MK
53102004-06-27 Mark Kettenis <kettenis@gnu.org>
5311
5312 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
5313 hppabsd-tdep.c.
5314
1265e4aa
JB
53152004-06-27 Joel Brobecker <brobecker@gnat.com>
5316
5317 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
5318
76a01679
JB
53192004-06-27 Joel Brobecker <brobecker@gnat.com>
5320
5321 * ada-lang.c: Re-indent file.
5322
7aca490a
JB
53232004-06-27 Joel Brobecker <brobecker@gnat.com>
5324
5325 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
5326 (no_symtab_msg): Likewise.
5327
5e987968
AS
53282004-06-27 Andreas Schwab <schwab@suse.de>
5329
5330 * source.c: Fix whitespace.
5331
315c4276
MK
53322004-06-27 Mark Kettenis <kettenis@gnu.org>
5333
d15be926
MK
5334 * configure.in: Include <sys/param.h> for td_pcb test.
5335 * configure: Regenerated.
5336
9062529b
MK
5337 * i386nbsd-nat.c: New file.
5338 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
5339 i386obsd-nat.c and i386obsd-tdep.c.
5340 (i386nbsd-nat.o): New dependency.
5341 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
5342 bsd-kvm.o.
5343 (LOADLIBES): New variable.
5344 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
5345 bsd-kvm.o.
5346 (LOADLIBES): New variable.
5347
8010310e
MK
5348 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
5349 (LOADLIBES): New variable.
5350
efe1d7b9
MK
5351 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
5352 fetching from BSD_KVM_PADDR. Correctly lookup address for
5353 "_thread0".
5354
315c4276
MK
5355 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
5356 "bsd-kvm.h".
5357 (amd64fbsd_supply_pcb): New funcion.
5358 (_initialize_amd64fbsd_nat): Enable libkvm interface.
5359
399cfac6
DL
53602004-06-27 <david@streamline-computing.com>
5361
5362 Partial fix for PR cli/1056.
5363 * valarith.c: Check for zero in division and remainder
5364 evaluation.
5365
6235f9c8
MK
53662004-06-27 Mark Kettenis <kettenis@gnu.org>
5367
5368 * i387-tdep.c: Remove excessive whitespace.
5369
2726dafc
AC
53702004-06-26 Andrew Cagney <cagney@gnu.org>
5371
5372 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
5373 * gdb-events.h, gdb-events.c: Re-generate.
5374 * tui/tui-hooks.c (tui_install_hooks): Update.
5375 (tui_remove_hooks): Update.
5376 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
5377
0e56aeaf
MK
53782004-06-26 Mark Kettenis <kettenis@gnu.org>
5379
cb461069
MK
5380 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
5381 (gregset_t, fpregset_t): Remove typedefs.
5382 (REG_OFFSET): Rename argument.
5383 (amd64bsd_r_reg_offset): Rename from reg_offset.
5384 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
5385 Remove functions.
5386 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
5387 of reg_offset.
5388 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
5389
ecba89de
MK
5390 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
5391
4cd80476
MK
5392 * vax-tdep.c: Tweak comment.
5393
0e56aeaf
MK
5394 Add OpenBSD/hppa support.
5395 * NEWS (New native configurations): Mention OpenBSD/hppa.
5396 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
5397 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
5398 files.
5399 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
5400 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
5401 * configure.host: Add hppa*-*-openbsd*.
5402 * configure.tgt: Add hppa*-*-openbsd*.
5403
98bbd631
AC
54042004-06-25 Andrew Cagney <cagney@gnu.org>
5405
5406 * defs.h (deprecated_ui_loop_hook): Deprecated.
5407 * wince.c (child_wait): Update.
5408 * win32-nat.c (child_wait): Update.
5409 * v850ice.c (v850ice_wait): Update.
5410 * top.c (deprecated_ui_loop_hook): Update.
5411 * serial.h: Update.
5412 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
5413 (do_unix_readchar): Update.
5414 * ser-tcp.c (net_open): Update.
5415 * remote-sim.c (gdb_os_poll_quit): Update.
5416 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
5417
769d7dc4
AC
54182004-06-24 Andrew Cagney <cagney@gnu.org>
5419
5420 * defs.h (deprecated_pre_add_symbol_hook)
5421 (deprecated_post_add_symbol_hook): Deprecated.
5422 * symfile.c (symbol_file_add_with_addrs_or_offsets)
5423 (symbol_file_add_with_addrs_or_offsets): Update references.
5424
11c949aa
AC
54252004-06-24 Andrew Cagney <cagney@gnu.org>
5426
5427 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
5428 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
5429 * wince.c (ui_loop_hook): Delete extern declaration.
5430 * win32-nat.c (ui_loop_hook): Delete extern declaration..
5431 * v850ice.c (ui_loop_hook): Delete extern declaration..
5432 * ser-unix.c (ui_loop_hook): Delete extern declaration..
5433 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
5434 * remote-sim.c (ui_loop_hook): Delete extern declaration..
5435 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
5436 ui_loop_hook declaration.
5437
eedc19af
AC
54382004-06-24 Andrew Cagney <cagney@gnu.org>
5439
5440 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
5441 entry_func_highpc fields.
5442 * objfiles.c (init_entry_point_info): Do not clear
5443 entry_func_lowpc and entry_func_highpc.
5444 (objfile_relocate): Do not relocate entry_func_lowpc and
5445 entry_func_highpc.
5446 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
5447 entry_func_highpc.
5448 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
5449 entry_func_highpc.
5450 * blockframe.c (legacy_frame_chain_valid): Replace tests against
5451 entry_func_lowpc and entry_func_highpc with call to
5452 inside_entry_func.
5453
d47079be
MK
54542004-06-24 Mark Kettenis <kettenis@gnu.org>
5455
5456 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
5457 quad-precision floating point arguments in registers.
5458
2107e348
MK
54592004-06-24 Mark Kettenis <kettenis@gnu.org>
5460
5461 From Michael Mueller <m.mueller99@kay-mueller.de>:
5462 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
5463 account.
5464
46587c42
JJ
54652004-06-22 Jeff Johnston <jjohnstn@redhat.com>
5466
5467 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
5468 to -1.
5469 * breakpoint.c (bpstat_stop_status): Move check for ignoring
5470 untriggered watchpoints to a separate if clause. Update function
5471 comment regarding STOPPED_BY_WATCHPOINT argument.
5472
226f5cf4
JB
54732004-06-22 Jim Blandy <jimb@redhat.com>
5474
5475 * gdbarch.sh: Doc fix.
5476
f10683bb
MH
54772004-06-21 Martin Hunt <hunt@redhat.com>
5478 Kevin Buettner <kevinb@redhat.com>
5479
5480 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
5481 * mips-tdep.h (MIPS_SP_REGNUM): Define.
5482 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
5483 to set_gdbarch_sp_regnum(). Use cooked register number.
5484 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
5485
412d5987
AC
54862004-06-21 Andrew Cagney <cagney@gnu.org>
5487
5488 * gdbarch.sh: When the macro field is empty, do not generate a
5489 macro definition. When the macro field is "=", generate the macro
5490 name from the upper-case function name.
5491 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
5492 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
5493 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
5494 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
5495 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
5496 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
5497 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
5498 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
5499 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
5500 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
5501 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
5502 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
5503 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
5504 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
5505 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
5506 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
5507 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
5508 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
5509 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
5510 (DEPRECATED_USE_STRUCT_CONVENTION)
5511 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5512 (DEPRECATED_FRAME_INIT_SAVED_REGS)
5513 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
5514 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
5515 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
5516 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
5517 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
5518 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
5519 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
5520 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
5521 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
5522 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
5523 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
5524 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
5525 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
5526 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
5527 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
5528 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
5529
68908a3e
AC
55302004-06-21 Andrew Cagney <cagney@gnu.org>
5531
48f7351b
AC
5532 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
5533 macro name, and the function rather than macro value. Only wrap
5534 macro print statements in #ifdef. Move format logic to where it
5535 is needed.
5536 * gdbarch.c: Re-generate.
5537
283354d8
AC
5538 * gdbarch.sh (read): Delete "print_p" and "description", add
5539 "garbage_at_eol". Check for non-empty garbage at end-of-line.
5540 Delete references to print_p.
5541 (TARGET_ARCHITECTURE): Delete print predicate.
5542 * gdbarch.c: Re-generate.
5543
68908a3e
AC
5544 * gdbarch.sh: Check that multi-arch methods do not provide a
5545 macro.
5546 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
5547 (print_registers_info, print_float_info, print_vector_info)
5548 (adjust_breakpoint_address, remote_translate_xfer_address)
5549 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
5550 (address_class_type_flags_to_name, unwind_sp): Remove the macro
5551 name from the multi-arch definition.
5552
a2428dbe
AC
55532004-06-20 Andrew Cagney <cagney@gnu.org>
5554
5555 * gdbarch.sh: Sort by the function, instead of macro name.
5556 * gdbarch.c: Re-generate.
5557
750eb019
AC
55582004-06-20 Andrew Cagney <cagney@gnu.org>
5559
66d659b1
AC
5560 * gdbarch.sh: Use the function, instead of macro name in
5561 errors and the log file.
5562 (return_value): Remove stray ":" in spec.
5563
750eb019
AC
5564 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
5565 * gdbarch.h, gdbarch.c: Re-generate.
5566 * Makefile.in (arch-utils.o): Update dependencies.
5567 * values.c (using_struct_return): Move code calling
5568 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
5569 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
5570 to legacy_return_value, simplify.
5571 * infcmd.c (print_return_value): Move code calling
5572 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
5573 to legacy_return_value, simplify.
5574 * infcall.c (call_function_by_hand): Move code calling
5575 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
5576 * arch-utils.c: Update copyright. Include "gdbcore.h".
5577 (legacy_return_value): New function.
5578 * arch-utils.h: Update copyright.
5579 (legacy_return_value): Declare.
5580
b5622e8d
AC
55812004-06-20 Andrew Cagney <cagney@gnu.org>
5582
5583 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
5584 * gdbarch.h, gdbarch.c: Re-generate.
5585 * values.c (using_struct_return): Update call.
5586 * mcore-tdep.c: Update comment.
5587 * infcall.c (call_function_by_hand): Update comment.
5588 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5589 * arch-utils.h (always_use_struct_convention): Update.
5590 * v850-tdep.c (v850_gdbarch_init): Update.
5591 * sh64-tdep.c (sh64_gdbarch_init): Update.
5592 * sh-tdep.c (sh_gdbarch_init): Update.
5593 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5594 * mips-tdep.c (mips_gdbarch_init): Update.
5595 * mcore-tdep.c (mcore_gdbarch_init): Update.
5596 * m32r-tdep.c (m32r_gdbarch_init): Update.
5597 * ia64-tdep.c (ia64_gdbarch_init): Update.
5598 * h8300-tdep.c (h8300_gdbarch_init): Update.
5599 * frv-tdep.c (frv_gdbarch_init): Update.
5600 * cris-tdep.c (cris_gdbarch_init): Update.
5601 * arm-tdep.c (arm_gdbarch_init): Update.
5602 * alpha-tdep.c (alpha_gdbarch_init): Update.
5603
5191de37
MC
56042004-06-18 Michael Chastain <mec.gnu@mindspring.com>
5605
5606 * PROBLEMS: Add more specific information, and a work-around,
5607 for PR gdb/1458.
5608
782263ab
AC
56092004-06-18 Andrew Cagney <cagney@gnu.org>
5610
5611 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
5612 * gdbarch.h, gdbarch.c: Re-generate.
5613 * ada-lang.c (ada_finish_decode_line_1): Update.
5614 * infrun.c (handle_inferior_event): Update.
5615 * infcall.c (find_function_addr): Update.
5616 * linespec.c (minsym_found): Update.
5617 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
5618 Update.
5619 * blockframe.c (legacy_frameless_look_for_prologue): Update.
5620 * cli/cli-cmds.c (disassemble_command): Update.
5621 * vax-tdep.c (vax_gdbarch_init): Update.
5622
2f305df1
MK
56232004-06-18 Mark Kettenis <kettenis@gnu.org>
5624
5625 * i386-tdep.c (i386_collect_fpregset): Fix comment.
5626
e5fe55f7
AC
56272004-06-17 Andrew Cagney <cagney@gnu.org>
5628
5629 GDB 6.1.1 released from the GDB 6.1 branch.
5630 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
5631 * PROBLEMS: Ditto.
5632
473b7be6
DJ
56332004-06-16 Daniel Jacobowitz <dan@debian.org>
5634
5635 PR gdb/1658
5636 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
5637 operation as a uleb128. Found by Michael Coulter.
5638
96d887e8
PH
56392004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
5640
5641 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
5642 make it non-static.
5643 * ada-lang.h (task_control_block): declaration moved from ada-task.c
5644 to ada-lang.h; this is needed to be able to implement the kill command
5645 in multi-task mode.
5646 (task_ptid): Ditto.
5647 (task_entry): Ditto.
5648 (task_list): Ditto.
5649 (ada_build_task_list): Ditto.
5650
5651 * ada-lang.c: Conditionalize routines and data structures related
5652 to breakpoints, exceptions, completion, and symbol caching on
5653 GNAT_GDB, since these are not yet used in the submitted public sources.
5654 (ada_main_name): Editorial: Move definition out of exception-related
5655 code.
5656
31eef181
AC
56572004-06-15 Andrew Cagney <cagney@gnu.org>
5658
5659 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
5660 deprecated_pc_in_call_dummy.
5661
2c500098
AM
56622004-06-15 Alan Modra <amodra@bigpond.net.au>
5663
5664 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
5665 bfd_get_section_size_before_reloc or _raw_size.
5666 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
5667 * dwarf2read.c (dwarf2_locate_sections): Likewise.
5668 (dwarf2_read_section): Likewise.
5669 * elfread.c (elf_locate_sections): Likewise.
5670 * gcore.c (derive_heap_segment): Likewise.
5671 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
5672 * remote-e7000.c (e7000_load): Likewise.
5673 * remote-m32r-sdi.c (m32r_load): Likewise.
5674 * remote-mips.c (mips_load_srec): Likewise.
5675 (pmon_load_fast): Likewise.
5676 * remote.c (compare_sections_command): Likewise.
5677 * symfile.c (add_section_size_callback): Likewise.
5678 (load_section_callback): Likewise.
5679 (pc_in_unmapped_range): Likewise.
5680 (pc_in_mapped_range): Likewise.
5681 (sections_overlap): Likewise.
5682 (list_overlays_command): Likewise.
5683 (simple_overlay_update_1): Likewise.
5684 (simple_overlay_update): Likewise.
5685 * tracepoint.c (remote_set_transparent_ranges): Likewise.
5686 * win32-nat.c (core_section_load_dll_symbols): Likewise.
5687
90f943f1
RC
56882004-06-14 Randolph Chung <tausq@debian.org>
5689
5690 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
5691 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
5692 static.
5693 (hppa_hpux_inferior_created): New function.
5694 (hppa_hpux_init_abi): Register observer.
5695 * symfile.c (hp_cxx_exception_support_initialized)
5696 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
5697 (symbol_file_add_main_1, symbol_file_clear): Likewise.
5698
700c15aa
RC
56992004-06-14 Randolph Chung <tausq@debian.org>
5700
3973a7d3
AC
5701 * MAINTAINERS (Write After Approval): Alphabetize my entry
5702 correctly.
700c15aa 5703
cea4838c
AC
57042004-06-14 Andrew Cagney <cagney@gnu.org>
5705
5706 * MAINTAINERS (testsuite): List Michael Chastain as the lead
5707 testsuite maintainer.
5708
97092415
AC
57092004-06-13 Andrew Cagney <cagney@gnu.org>
5710
e8c3165b
AC
5711 * infcmd.c (print_return_value): Fix logic, allow
5712 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
5713
bceabdd8
AC
5714 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
5715 defining any macros.
5716 * gdbarch.h: Re-generate.
5717
57010b1c
AC
5718 * gdbarch.sh: Delete "level" attribute. Only check for a macro
5719 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
5720 * gdbarch.h: Re-generate.
5721
bc87dfa0
AC
5722 * values.c (generic_use_struct_convention): Don't check gcc_p.
5723
15ac804d
AC
5724 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
5725 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
5726 * gdbarch.h, gdbarch.c: Regenerate.
5727 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
5728 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
5729 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5730 deprecated_max_register_raw_size and
5731 deprecated_max_register_virtual_size.
5732 * v850-tdep.c (v850_gdbarch_init): Ditto.
5733 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
5734 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5735 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5736 * cris-tdep.c (cris_gdbarch_init): Ditto.
5737
97092415
AC
5738 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
5739 * gdbarch.h, gdbarch.c: Re-generate.
5740 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
5741 (m68hc11_use_struct_convention): Delete function.
5742 (m68hc11_extract_struct_value_address): Delete function.
5743 (m68hc11_return_value): New function.
5744 (m68hc11_gdbarch_init): Instead of store_return_value,
5745 extract_return_value, return_value_on_stack,
5746 deprecated_extract_struct_value_address and use_struct_convention,
5747 set return_value.
5748 * values.c (using_struct_return): Do not call
5749 RETURN_VALUE_ON_STACK.
5750 * arch-utils.h (generic_return_value_on_stack_not): Delete
5751 declaration.
5752 * arch-utils.c (generic_return_value_on_stack_not): Delete
5753 function.
5754
44e5158b
AC
57552004-06-12 Andrew Cagney <cagney@gnu.org>
5756
5757 * values.c (register_value_being_returned): Delete function.
5758 * infcmd.c (legacy_return_value): Delete function.
5759 * infcall.c (call_function_by_hand): Inline
5760 "register_value_being_returned", simplify.
5761 * values.c (using_struct_return): Update comment, refer to
5762 print_return_value instead of register_value_being_returned.
5763 * infcmd.c (print_return_value): Inline calls to
5764 register_value_being_returned and legacy_return_value. Simplify.
5765
b887c273
RC
57662004-06-11 Randolph Chung <tausq@debian.org>
5767
5768 * somread.c (som_symtab_read): Exclude gcc local symbols.
5769
1b2bfbb9
RC
57702004-06-11 Randolph Chung <tausq@debian.org>
5771
3973a7d3
AC
5772 * infrun.c (handle_inferior_event): Handle the case when a
5773 trampoline ends up in the runtime resolver, and if the trampoline
5774 has no name. Rearrange the code so that all the trampoline
5775 processing happens before other step-out-of-range handling.
1b2bfbb9 5776
a9d61c86
MH
57772004-06-11 Martin Hunt <hunt@redhat.com>
5778
5779 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
5780 has no fpu.
5781
2c87cf5a
AC
57822004-06-10 Andrew Cagney <cagney@gnu.org>
5783
5784 * blockframe.c (legacy_inside_entry_func): Delete.
5785 (legacy_frame_chain_valid): Inline call to
5786 legacy_inside_entry_func, simplify.
5787
0b67b468 57882004-06-10 Bob Rossi <bob@brasko.net>
57c22c6c
BR
5789
5790 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
3973a7d3
AC
5791 * dwarf2read.c (partial_die_info): Add dirname field.
5792 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
5793 (read_partial_die): Save away DW_AT_comp_dir.
5794 * defs.h (symtab_to_filename): Removed.
5795 * source.c (find_and_open_source): Added.
57c22c6c 5796 (open_source_file): Just calls find_and_open_source.
3973a7d3
AC
5797 (symtab_to_filename): Removed.
5798 (symtab_to_fullname, psymtab_to_fullname): Added.
57c22c6c
BR
5799 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
5800 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
5801 symtab_to_filename.
5802 * symtab.h (partial_symtab): Add dirname field.
5803 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
3973a7d3
AC
5804 (mi_cmd_file_list_exec_source_file): Call new function
5805 symtab_to_fullname to find fullname.
57c22c6c 5806 (mi_cmd_file_list_exec_source_files): Added.
3973a7d3 5807 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
57c22c6c
BR
5808 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
5809
9a1dd1ad
AC
58102004-06-10 Andrew Cagney <cagney@gnu.org>
5811
239ae8c7
AC
5812 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
5813 to generic_use_struct_convention, the default value.
5814
fc720350
AC
5815 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
5816 of abort.
5817
9a1dd1ad
AC
5818 * ns32k-tdep.c (ns32k_push_arguments): New function.
5819 (ns32k_gdbarch_init): Set deprecated_push_arguments.
5820 * infcall.c (call_function_by_hand): Call error instead of
5821 legacy_push_arguments.
5822 * value.h (legacy_push_arguments): Delete declaration.
5823 * valops.c (legacy_push_arguments): Delete function.
5824 (value_push): Delete function.
5825
fea25152
BF
58262004-06-10 Brian Ford <ford@vss.fsi.com>
5827
5828 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
5829 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
5830 info.
5831 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
5832
30a4a8e0
AC
58332004-06-10 Andrew Cagney <cagney@gnu.org>
5834
5835 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
5836 * gdbarch.h, gdbarch.c: Re-generate.
5837 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
5838 parameters.
5839 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
5840 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
5841 deprecated_pc_in_call_dummy instead of
5842 DEPRECATED_PC_IN_CALL_DUMMY.
5843 (arm_skip_prologue): Ditto.
5844 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
5845 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
5846 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
5847 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
5848 Ditto.
5849 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
5850 (sh64_init_extra_frame_info, sh64_get_saved_register)
5851 (sh64_pop_frame): Ditto.
5852 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
5853 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
5854 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
5855 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
5856 (h8300_pop_frame): Ditto.
5857 * blockframe.c (legacy_inside_entry_func)
5858 (legacy_frame_chain_valid): Ditto.
5859 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
5860 to deprecated_pc_in_call_dummy.
5861
81cfbe54
AC
58622004-06-09 Andrew Cagney <cagney@gnu.org>
5863
a1f4a1b6
AC
5864 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
5865 provide a default value.
5866 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
5867 * gdbarch.h, gdbarch.c: Re-generate.
5868 * arch-utils.c (generic_convert_register_p): Rename
5869 legacy_convert_register_p
5870 (legacy_register_to_value, legacy_value_to_register): Delete
5871 functions.
5872 * arch-utils.h (generic_convert_register_p): Rename
5873 legacy_convert_register_p.
5874 (legacy_register_to_value, legacy_value_to_register): Delete
5875 declarations.
5876
9730f241
AC
5877 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
5878 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
5879 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
5880 * gdbarch.h, gdbarch.c: Re-generate.
5881 * infcmd.c (default_print_registers_info): Simplify.
5882 * findvar.c (value_of_register): Simplify.
5883 * mi/mi-main.c (get_register): Simplify.
5884 * arch-utils.c (legacy_convert_register_p): Always return 0.
5885 (legacy_register_to_value, legacy_value_to_register): Always call
5886 internal_error.
5887
8a1bf479
AC
5888 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
5889 #ifdef CLEAR_INSN_CACHE code.
5890 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
5891 Delete #ifdef CLEAR_DEFERRED_STORES code.
5892
4b38d6f1
AC
5893 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
5894
2d62ecc7
AC
5895 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
5896 copyright.
5897 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
5898
be4f7469
AC
5899 * config/mips/mipsv4.mh: Delete file.
5900
81cfbe54
AC
5901 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
5902 unreferenced macro.
5903 (hpread_adjust_stack_address): Delete declaration.
5904
d966f0cb
AC
59052004-06-08 Andrew Cagney <cagney@gnu.org>
5906
5907 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
5908 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
5909 PTRACE_ATTACH / PTRACE_DETACH available call error.
5910 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
5911 * infttrace.c (update_thread_state_after_attach, attach, detach):
5912 Remove #ifdef wrappers.
5913 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
5914 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
5915 * config/nm-bsd.h (ATTACH_DETACH): Delete.
5916 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
5917 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
5918 * config/nm-linux.h (ATTACH_DETACH): Delete.
5919 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
5920 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
5921 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
5922 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
5923 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
5924
d91670b9
CV
59252004-06-08 Corinna Vinschen <vinschen@redhat.com>
5926
5927 * configure.in: Set $configdir to the right OS specific value.
5928 Use value when setting $tcldir and $tkdir.
5929 * configure: Regenerate.
5930
28ba0b33
PB
59312004-06-06 Paul Brook <paul@codesourcery.com>
5932
5933 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
5934 records.
5935
f26caa11
PH
59362004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
5937
5938 * ada-lang.c (lookup_symbol_in_language): New function to allow
5939 re-use of another language's symbol lookup code. (Placed here
5940 temporarily while Ada support is being integrated into the public
5941 tree).
5942 (restore_language): New auxiliary function for
5943 lookup_symbol_in_language.
5944 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
5945 temporarily while Ada support is being integrated into the public
5946 tree).
5947
d560a54b
AO
59482004-06-08 Alexandre Oliva <aoliva@redhat.com>
5949
e75d110c
AO
5950 * Makefile.in (check//%): New.
5951
d560a54b
AO
5952 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
5953 (mn10300_store_return_value): Rewrite.
5954 (mn10300_type_align): New.
5955 (mn10300_use_struct_convention): Rewrite.
5956 (mn10300_return_value): New, using all of the above.
5957 (mn10300_pop_frame_regular): Add saved_regs_size.
5958 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
5959
a72fbdb7
AO
5960 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
5961 regs if PC is on movm.
5962
01904826
JB
59632004-06-07 Jim Blandy <jimb@redhat.com>
5964
5965 Add native Linux support for the PowerPC E500.
5966 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
5967 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
5968 all architectures except the E500.
5969 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
5970 #definitions.
5971 (struct gdb_evrregset_t): New type.
5972 (have_ptrace_getsetevrregs): New variable.
5973 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
5974 fetch_spe_registers): New functions.
5975 (fetch_register): Call fetch_spe_register as appropriate.
5976 Assert that we're only passed raw register numbers.
5977 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
5978 Don't fetch gprs if they're pseudoregisters.
5979 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
5980 store_spe_registers): New functions.
5981 (store_register): Call store_spe_register as appropriate.
5982 Assert that we're only passed raw register numbers.
5983 (store_ppc_registers): Call store_spe_registers as appropriate.
5984 Don't store gprs if they're pseudoregisters.
5985
f90ef764
JJ
59862004-06-07 Jeff Johnston <jjohnstn@redhat.com>
5987
5988 * thread-db.c (thread_get_info_callback): Fill in the thread_info
5989 struct if one exists, even if we are dealing with a zombie thread.
5990
45b75230
AC
59912004-06-07 Andrew Cagney <cagney@gnu.org>
5992
5993 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
5994 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
5995 Rename PC_REQUIRES_RUN_BEFORE_USE.
5996 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
5997 #ifdef.
5998
1658da49
RC
59992004-06-07 Randolph Chung <tausq@debian.org>
6000
6001 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
6002 unwinding after sp has been saved to the stack but before the end
6003 of the prologue, and after the fp has been modified but before it has
6004 been saved to the stack.
6005 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
6006 Remove superfluous definitions.
6007 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
6008
9a727a3c
RC
60092004-06-07 Guy Martin <gmsoft@gentoo.org>
6010
6011 Committed by Randolph Chung.
6012 * hppa-linux-nat.c: Include the correct version of the header file
6013 depending on the kernel version.
6014
9e500012
RC
60152004-06-06 Randolph Chung <tausq@debian.org>
6016
6017 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
6018 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
6019
3388d7ff
RC
60202004-06-06 Randolph Chung <tausq@debian.org>
6021
6022 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
6023 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
6024 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
6025 * hppa-tdep.c (hppa_symbol_address): New function definition.
6026 * hppa-tdep.h (hppa_symbol_address): New function declaration.
6027
d49771ef
RC
60282004-06-06 Randolph Chung <tausq@debian.org>
6029
6030 * hppa-tdep.h (struct value): Forward declaration.
6031 (gdbarch_tdep): Define tdep find_global_pointer method.
6032 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
6033 associated with the function we are trying to call, and write it
6034 to the gp register.
6035 (hppa32_convert_from_funct_ptr_addr): New function.
6036 (hppa_find_global_pointer): New function.
6037 (hppa_gdbarch_init): Set default find_global_pointer method; set
6038 convert_from_func_ptr_addr method.
6039 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
6040 (hppa_linux_init_abi): Set find_global_pointer method.
6041 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
6042
7d9b040b
RC
60432004-06-06 Randolph Chung <tausq@debian.org>
6044
6045 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
6046 to struct value *function.
6047 * gdbarch.c: Regenerate.
6048 * gdbarch.h: Likewise.
6049 * infcall.c (call_function_by_hand): Pass entire function value
6050 to push_dummy_call.
6051
6052 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
6053 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
6054 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
6055 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
6056 * arm-tdep.c (arm_push_dummy_call): Likewise.
6057 * avr-tdep.c (avr_push_dummy_call): Likewise.
6058 * cris-tdep.c (cris_push_dummy_call): Likewise.
6059 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
6060 * frv-tdep.c (frv_push_dummy_call): Likewise.
6061 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
6062 * hppa-tdep.c (hppa32_push_dummy_call)
6063 (hppa64_push_dummy_call): Likewise.
6064 * i386-tdep.c (i386_push_dummy_call): Likewise.
6065 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
6066 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
6067 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
6068 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
6069 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
6070 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
6071 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
6072 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
6073 (ppc64_sysv_abi_push_dummy_call): Likewise.
6074 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
6075 (ppc64_sysv_abi_push_dummy_call): Likewise.
6076 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
6077 * s390-tdep.c (s390_push_dummy_call): Likewise.
6078 * sh-tdep.c (sh_push_dummy_call_fpu)
6079 (sh_push_dummy_call_nofpu): Likewise.
6080 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
6081 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
6082 * vax-tdep.c (vax_push_dummy_call): Likewise.
6083
4a19ea35
JB
60842004-06-04 Jim Blandy <jimb@redhat.com>
6085
8327ccee
JB
6086 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
6087 gdbarch argument to register_size.
6088
a3c001ce
JB
6089 * rs6000-tdep.c (rs6000_store_return_value): Use
6090 regcache_cooked_write_part instead of
6091 deprecated_write_register_bytes.
6092 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
6093 not gdbarch_deprecated_store_return_value.
6094
4a19ea35
JB
6095 * ppc-linux-nat.c (store_register, fetch_register): Remove
6096 incorrect assertions. Simplify and generalize handling of
6097 transfers whose sizes are not multiples of, or less than, sizeof
6098 (PTRACE_XFER_TYPE).
6099
b9b5d7ea
JJ
61002004-06-04 Jeff Johnston <jjohnstn@redhat.com>
6101
6102 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
6103 as a new thread event.
720c7d64 6104 * thread-db.c (thread_get_info_callback): If the thread is a
b9b5d7ea 6105 zombie, return TD_THR_ZOMBIE.
720c7d64 6106 (thread_from_lwp): If thread_get_info_callback returns
b9b5d7ea
JJ
6107 TD_THR_ZOMBIE, check if the thread is still on the thread list
6108 and return a -1 ptid if not found.
6109 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
6110 change the status to TARGET_WAITKIND_SPURIOUS.
6111
c8a3b559
CV
61122004-06-03 Corinna Vinschen <vinschen@redhat.com>
6113
6114 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
6115 double values in little endian mode.
6116
20605361
AC
61172004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
6118
6119 Committed by Andrew Cagney.
6120 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
6121 after last enum constant to avoid error from IBM C
6122 compiler.
6123
bc97b3ba
JB
61242004-06-02 Jim Blandy <jimb@redhat.com>
6125
6126 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
6127 to 'message', and make it local to the lone block that uses it.
6128
1da28ab0
JB
6129 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
6130
4c4b4cd2
PH
61312004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
6132
8a2225b2
PH
6133 * ada-exp.y: Update copyright notice.
6134 Include block.h.
6135
6136 Replace REGNAME, LAST, INTERNAL_VARIABLE with
6137 SPECIAL_VARIABLE and unify the treatment of these cases.
6138
6139 (write_attribute_call0): Remove.
6140 (write_attribute_call1): Remove.
6141 (write_attribute_calln): Remove.
6142 (save_qualifier): Add missing semicolon.
6143
6144 (simple_exp,exp): Decomment (i.e., reactivate) code that was
6145 temporarily disabled to allow compilation with FSF head version.
6146
6147 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
6148 use individual operators (OP_*) for all attributes.
6149 (exp syntax): Use write_int.
6150 Handle STRING literals with OP_STRING.
6151 (variable syntax): Add limit parameter to calls to
6152 write_object_renaming.
6153
6154 (temp_parse_space): New definition to hold entities that need
6155 only live until the next call to ada_parse.
6156 (string_to_operator): Rename fields of ada_opname_table entries.
6157
6158 (write_var_from_sym): Record block.
6159 (write_var_from_name): Minor reformatting.
6160 Make sure saved name is properly encoded in the case of multiple
6161 matches, and set its language to Ada.
6162 Update comment.
6163 Modify to indicate unresolved name as symbol in the UNRESOLVED
6164 namespace, allocated in temp_parse_space.
6165 (write_int): New function.
6166
6167 (write_object_renaming): Add max_depth parameter to limit
6168 chains of object renamings.
6169 Handle case where root of renaming expression is itself a renaming.
6170 Use temp_parse_space for temporary name buffer.
6171 Handle renamings to dereferenced pointers (___XEXA suffices).
6172
6173 (ada_parse, yyerror, string_to_operator,
6174 write_var_from_sym, write_var_from_name, write_attribute_call0,
6175 write_attribute_call1, write_attribute_calln,
6176 write_object_renaming): Protoize.
6177
6178 (_initialize_ada_exp): New function.
6179
6180 * ada-lang.c: Update copyright notice.
6181 General terminology change to conform to GNAT compiler usage:
6182 mangle => encode, demangle => decode
6183 Include gdb_obstack.h.
6184 Include gdb_regex.h
6185 Include frame.h
6186 Include hashtab.h
6187 Include completer.h
6188 Include gdb_stat.h
6189 Include block.h
6190 Include infcall.h
6191
6192 (ADA_RETAIN_DOTS): Make sure this is defined.
6193 (TRUNCATION_TOWARDS_ZERO): Define.
6194 (struct string_vector): Define.
6195 (unresolved_names): Remove definition.
6196 (xnew_string_vector): New function.
6197 (string_vector_append): New function.
6198 (extract_string): Make static.
6199 (ada_unqualified_name): New function.
6200 (add_angle_brackets): New function.
6201 (function_name_from_pc): New function.
6202 (place_on_stack): Rename to ensure_lval.
6203
6204 (ensure_lval): Renamed from place_on_stack.
6205 Make identity on lvals.
6206 Update comment.
6207 (is_nonfunction): New interface.
6208 Only symbols in LOC_CONST class can be enumerals.
6209 (fill_in_ada_prototype): Remove; now independent of language.
6210 (add_defn_to_vec): Add obstack and symtab arguments.
6211 Use obstack to hold collected definitions.
6212 (num_defns_collected): New function.
6213 (defns_collected): New function.
6214 (ada_resolve_subexp): Rename to resolve_subexp.
6215 (resolve_subexp): Renamed from ada_resolve_subexp.
6216 (ada_op_name): Return non-const result.
6217 (ada_decoded_op_name): Renamed from ada_op_name, now used for
6218 other purposes.
6219
6220 (to_fixed_array_type): Add declaration.
6221 (coerce_unspec_val_to_type): Remove offset parameter.
6222 (find_sal_from_funcs_and_line): New interface.
6223 (find_line_in_linetable): Ditto.
6224
6225 (all_sals_for_line): Rename to ada_sals_for_line and make
6226 global.
6227 Add new parameter. When set, do not ask the user to choose the
6228 instance, but use the first one found instead.
6229 Use given line number in returned sals.
6230 Fix comment.
6231 Skip the prologue if funfirstline is set.
6232 Correct for memory leak when 0 lines found.
6233
6234 (value_pos_atr): Use pos_atr.
6235 (pos_atr): New function.
6236 (standard_lookup): Add block parameter.
6237
6238 (makeTimeStart): Remove declaration and uses.
6239 (makeTimeStop): Remove declaration and uses.
6240
6241 (ada_completer_word_break_characters): Allow for VMS.
6242 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
6243 (raise_sym_name): New constant.
6244 (raise_unhandled_sym_name): New constant.
6245 (raise_assert_sym_name): New constant.
6246 (process_raise_exception_name): New constant.
6247 (longest_exception_template): New constant.
6248 (warning_limit): New variable to limit warnings during expression
6249 evaluation.
6250 (warnings_issued): New variable to keep track of warnings issued.
6251 (known_runtime_file_name_patterns): New constant.
6252 (known_auxiliary_function_name_patterns): New constant.
6253 (symbol_list_obstack): New variable.
6254
6255 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
6256 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
6257 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
6258 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
6259 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
6260 ada_variant_discrim_name, field_alignment, dynamic_template_type,
6261 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
6262 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
6263 and strcmp.
6264
6265 (ada_get_field_index): New function.
6266 (lim_warning): New function.
6267 (ada_translate_error_message): New function.
6268 (MAX_OF_SIZE): New function.
6269 (MIN_OF_SIZE): New function.
6270 (UMAX_OF_SIZE): New function.
6271 (UMIN_OF_SIZE): New function.
6272 (discrete_type_high_bound): New function.
6273 (discrete_type_low_bound): New function.
6274 (base_type): New function.
6275 (do_command): Remove.
6276
6277 (ada_update_initial_language): Use language_ada, not language_unknown.
6278 (ada_encode): Renamed from ada_mangle.
6279 Obey ADA_RETAIN_DOTS.
6280 (ada_decode): Renamed from ada_demangle.
6281 Update coding conventions.
6282 (decoded_names_store): New hash table.
6283 (ada_decode_symbol): New function.
6284 (ada_la_decode): New function.
6285
6286 (modify_general_field): Correct computations of offset and bit
6287 position.
6288 (desc_base_type): Handle ref types, too.
6289 (ada_is_direct_array_type): New function.
6290
6291 (ada_is_simple_array): Rename to ada_is_simple_array_type.
6292 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
6293 (ada_is_bogus_array_descriptor,ada_type_of_array,
6294 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
6295 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
6296 ada_is_array_descriptor_type.
6297
6298 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
6299 (ada_is_packed_array_type): Handle pointers or
6300 references to packed arrays as well.
6301 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
6302 (decode_packed_array_type): Search for the packed array type
6303 symbol in the currently selected block and associated
6304 superblocks too.
6305 Use lookup_symbol again.
6306
6307 (decode_packed_array): Handle pointers and references.
6308 Update call to coerce_unspec_val_to_type.
6309 (decode_packed_array_type,value_subscript_packed): Limit warnings.
6310 (ada_value_primitive_packed_val): Improve comment.
6311
6312 (ada_index_type): Substitute int type for "undefined".
6313 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
6314 ada_array_langth, ada_is_string_type): Use renamed
6315 ada_is_simple_array_type.
6316 (empty_array): New function.
6317
6318 (ada_resolve): Rename to resolve.
6319 (resolve): Make static.
6320 Call renamed resolve_subexp.
6321 Update comment.
6322 (ada_resolve_subexp): Rename to resolve_subexp.
6323 (resolve_subexp): Update comment.
6324 Decomment disabled code.
6325 Add LOC_COMPUTED* cases.
6326 Modify to use temporary struct symbols (marked as being in
6327 UNDEF_NAMESPACE) to indicate unresolved names, instead of
6328 OP_UNRESOLVED_VALUE.
6329 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
6330 Add OP_STRING case.
6331 Remove OP_ARRAY.
6332 Use SYMBOL_PRINT_NAME instead of ada_demangle.
6333 Use new ada_lookup_symbol_list interface.
6334 Use new ada_resolve_function interface.
6335 Remove OP_TYPE case.
6336
6337 (ada_args_match): Idiot proof against null actuals.
6338 Use intermediate variables to clarify.
6339 (ada_resolve_function): Update comment and interface.
6340 (mangled_ordered_before): Rename to encoded_ordered_before and
6341 update comment.
6342 (sort_choices): Update comment and interface.
6343 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
6344 (user_select_syms): New interface.
6345 Use new sort_choices interface.
6346 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
6347 (possible_user_operator_p): Idiot-proof against null values.
6348 (ada_simple_renamed_entity): Don't make cleanup; rely on
6349 caller to free result string.
6350 Remove const from return type.
6351 (make_array_descriptor): Rename uses of place_on_stack to
6352 ensure_lval.
6353 Make sure that arrays are on stack.
6354
6355 (HASH_SIZE): Define.
6356 (struct cache_entry): Define.
6357 (cache_space): Define.
6358 (cache): Define.
6359 (clear_ada_sym_cache): New function.
6360 (find_entry): New function.
6361 (lookup_cached_symbol): New function.
6362 (defn_vector_size): Define.
6363 (cache_symbol): New function.
6364 (defn_symbols): Remove.
6365
6366 (standard_lookup): Use lookup_symbol_in_language to get effect of
6367 C lookup.
6368 Cache results.
6369
6370 (symbol_completion_match): New function.
6371 (symbol_completion_add): New function.
6372 (ada_make_symbol_completion_list): New function.
6373
6374 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
6375 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
6376 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
6377 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
6378
6379 (ada_lookup_simple_minsym): New function.
6380 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
6381
6382 (add_symbols_from_enclosing_procs): New interface.
6383 Conditionalize more helpfully.
6384 Don't bother if program isn't running.
6385 Use new interface to get_frame_block.
6386 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
6387
6388 (remove_extra_symbols): New interface.
6389 (xget_renaming_scope): New function.
6390 (is_package_name): New function.
6391 (renaming_is_visible): New function.
6392 (remove_out_of_scope_renamings): New function.
6393
6394 (ada_lookup_symbol_list): New interface.
6395 Properly reinitialize the symbol list obstack.
6396 Don't call add_symbols_from_enclosing_procs if we start from a
6397 static or global block.
6398 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
6399 add_symbols_from_enclosing_procs.
6400 Add symtab data to cached entries.
6401 Handle symbols prefixed with
6402 "standard__" specially; strip prefix and don't look in local symbols.
6403 Do not include out of scope renaming symbols in list of
6404 symbols returned.
6405 Add const to block parameter.
6406 Move check for non-local, non-global symbols earlier.
6407 Remove timing stuff.
6408 (ada_lookup_symbol): New interface.
6409 Find symtab as well.
6410 (ada_lookup_symbol_nonlocal): New function.
6411
6412 (is_name_suffix): Enhance suffix detection to recognize
6413 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
6414 (is_dot_digits_suffix): New function.
6415 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
6416
6417 (ada_add_block_symbols): New interface. Use obstack to return results
6418 in a vector of struct ada_symbol_infos. Add symtab argument.
6419 Use new interface to add_defn_to_vec.
6420 Remove calls to fill_in_ada_prototype.
6421 Use BLOCK_BUCKETS, BLOCK_BUCKET.
6422
6423 (ada_finish_decode_line_1): Add const qualification to local to fix
6424 warning.
6425 Start looking in static block for functions to avoid attempts
6426 to search frame chain for up-level variables.
6427 Adapt to new ada_sals_for_line interface.
6428 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
6429 Handle quoting of the function name inside the spec string.
6430 Skip prologue when funfirstline is set and update the
6431 function documentation to that effect.
6432
6433 (debug_print_lines, debug_print_block, debug_print_blocks,
6434 debug_print_symtab): Remove.
6435
6436 (ada_main_name): New function.
6437 (ada_exception_breakpoint_type): New function.
6438 (is_known_support_routine): New function.
6439 (ada_find_printable_frame): Renamed from find_printable_frame and made
6440 global.
6441 Remove level parameter.
6442 Use new interface to select_frame.
6443
6444 (begin_command): Remove.
6445 (ada_adjust_exception_stop): New function.
6446 (ada_print_exception_stop): New function.
6447 (exception_name_from_cond): New function.
6448 (ada_report_exception_break): Replace disabled code with
6449 conditionalization on GNAT_GDB.
6450 Get the exception name from the condition string.
6451 Remove and move functionality into new functions
6452 ada_print_exception_breakpoint_task and
6453 ada_print_exception_breakpoint_nontask.
6454 (error_breakpoint_runtime_sym_not_found): New function.
6455 (is_runtime_sym_defined): New function.
6456 (ada_breakpoint_rewrite): Uncomment suppressed code.
6457 Use symbolic error-message and runtime-symbol names.
6458 Surround runtime symbol names in quotes.
6459 Allow non-specific breakpoints on exceptions and assertions before
6460 program starts.
6461
6462 (ada_is_tagged_type): Add parameter.
6463 (ada_is_tag_type): New function.
6464 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
6465 (ada_variant_discrim_type): Ditto.
6466 (value_tag_from_contents_and_address): New function.
6467 (type_from_tag): New function.
6468 (struct tag_args): New structure used to communicate with
6469 ada_tag_name_1.
6470 (ada_tag_name_1): New function.
6471 (ada_tag_name): New function.
6472
6473 (ada_scan_number): Update comment.
6474 (find_struct_field): New function.
6475 (ada_search_struct_field): Make static.
6476 (ada_value_struct_elt): New version that returns references when
6477 given pointers or references to structs.
6478 (ada_lookup_struct_elt_type): Add 'refok' parameter.
6479 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
6480 interface.
6481 (ada_value_ind): Use new ada_to_fixed_value interface.
6482 (ada_coerce_ref): Ditto.
6483 (field_offset): Remove.
6484
6485 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
6486 (ada_find_renaming_symbol): New function.
6487 (ada_prefer_type): Prefer named types over unnamed ones.
6488 (variant_field_index): New function.
6489 (contains_variant_part): Removed: subsumed by variant_field_index.
6490 (ada_template_to_fixed_record_type): New function, mostly from
6491 template_to_fixed_record_type.
6492 (template_to_fixed_record_type):
6493 Do not scan the type fields beyond the last one; prevents a
6494 potential SEGV.
6495 Handle case where variant field is listed BEFORE discriminant it
6496 depends on.
6497 Fix calculation of record length when bit length is
6498 not evenly divisible by char length.
6499 Move code to ada_template_to_fixed_record_type and call it.
6500
6501 (template_to_static_fixed_type): Revise comment.
6502 Modify to work on ordinary record types as well as templates,
6503 so as to handle fields that use ___XVE or ___XVU encodings.
6504 (to_record_with_fixed_variant_part): Fill out comment.
6505 Initialize C++ stuff in right type.
6506 Allow case where DVAL is null.
6507 Handle case where variant field is not last.
6508 Fix typo concerning record length.
6509 (to_fixed_record_type): Decomment disabled code.
6510 (to_fixed_record_type): Use variant_field_index instead of
6511 contains_variant_part.
6512 (to_fixed_variant_branch_type): Ditto.
6513 (to_fixed_array_type): Decomment disabled code.
6514 (ada_to_fixed_type): Convert tagged types to the specific type.
6515 Deactivate the size-check for array types in order to avoid
6516 some false size alarms.
6517 (to_static_fixed_type): Decomment disabled code.
6518 Modify to call template_to_static_fixed_type
6519 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
6520 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
6521 Remove valaddr argument, as it is never really used.
6522 (ada_to_fixed_value): Change interface to act on single struct value*
6523 operand.
6524 (adjust_pc_past_prologue): New function.
6525 (ada_attribute_name): Modify to take enum exp_opcode argument.
6526
6527 (ada_enum_name): Recognize new homonym-distinguishing convention.
6528 Adjust local variable's type to remove compiler warning.
6529 Fix a small problem in the part that unqualifies the enumeration name.
6530 (ada_value_binop): New function.
6531 (ada_value_equal): New function.
6532
6533 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
6534 Don't give error message when not doing normal evaluation
6535 and a tagged type doesn't seem to contain a structure member.
6536 Give error message for packed arrays.
6537 For indexing arrays, handle pointers to packed arrays correctly.
6538 Handle case of 'first and 'last attributes of bare integral type
6539 without encoded subtype info.
6540 Remove some unnecessary casts.
6541 Fix uninitialized value of type in computing 'first, 'last, or 'length
6542 of array object.
6543 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
6544 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
6545 calls.
6546 Attributes are now exp_opcode values.
6547 Correct treatment of 'modulus.
6548 Better error message for taking 'length of wrong kind of type;
6549 improve comment.
6550 Change EVAL_NORMAL to noside for consistency.
6551 Use ada_value_binop for DIV, MOD, REM.
6552 Make special case out of array of length 0, since an argument
6553 of 0 upsets some platforms' malloc.
6554 Use OP_STRING instead of OP_ARRAY.
6555 For slice, add check that we have an array type before extracting
6556 a slice out of it. Avoids a SEGV.
6557 When evaluating an array slice, if the array type is a reference to
6558 an aligner type, then replace the aligner type by the actual type.
6559 Decomment disabled code.
6560 Remove some dead code.
6561 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
6562 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
6563 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
6564 and UNOP_MBR to UNOP_IN_RANGE.
6565 If an array type has a parallel ___XVE type, then use it.
6566 Turn arrays into pointers for lvalue arrays.
6567 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
6568 bounds error and handle 0-length slices.
6569 Use lim_warning.
6570 When selecting fields, apply ada_to_fixed_value (because the fields
6571 might have ___XVU or ___XVE encodings even if not dynamic.)
6572 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
6573 (ada_is_system_address_type): New function.
6574
6575 (get_var_value): Use new interface to ada_lookup_symbol_list.
6576 (get_int_var_value): New interface.
6577 (to_fixed_range_type): Allow unknown bound, with warning.
6578 (ada_is_modular_type): Decomment disabled code.
6579 (ADA_OPERATORS): New definition.
6580 (ada_operator_length): New function.
6581 (ada_expr_op_name): New function.
6582 (ada_forward_operator_length): New function.
6583 (ada_dump_subexp_body): New function.
6584 (ada_print_subexp): New function.
6585 (ada_exp_descriptor): New constant.
6586 (ada_op_print_tab): Add 'size. Remove FIXMEs.
6587 (ada_language_defn): Add ada_exp_descriptor entry.
6588 Change ada_parse => parse.
6589 Add post-parser entry.
6590 Use ada-specific non-local symbol lookup.
6591 Don't use C-style arrays.
6592 String lower-bound is 1.
6593 Decomment disabled code.
6594 (parse): New function.
6595 New fields ada_translate_error_message, ada_lookup_symbol,
6596 ada_lookup_minimal_symbol.
6597
6598 * ada-lang.h: Update copyright dates.
6599 Replace the mangle/demangle terminology throughout by the
6600 more appropriate encode/decode one.
6601 Include breakpoint.h.
6602 Forward declare struct partial_symbol, struct block.
6603 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
6604 (EXTRACT_ADDRESS): Remove.
6605 (EXTRACT_INT): Remove.
6606 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
6607 (MAX_ENCLOSING_FRAME_LEVELS): Define.
6608 (MAX_RENAMING_CHAIN_LENGTH): Define.
6609 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
6610
6611 (enum task_states): Remove.
6612 ada_task_states: Remove.
6613 (fat_string): Remove.
6614 (struct entry_call): Remove.
6615 (struct task_fields): Remove.
6616 (struct task_entry): Remove.
6617
6618 (struct ada_symbol_info): Define.
6619 (enum ada_attribute): Remove.
6620 (enum ada_operator): Define.
6621
6622 (ada_get_field_index): Declare.
6623 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
6624 (ada_is_simple_array): Rename to ada_is_simple_array_type.
6625 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
6626 (ada_lookup_symbol_list): New interface.
6627 (ada_decode_symbol): Declare.
6628 (ada_decode): Declare.
6629 (ada_lookup_symbol): New interface.
6630 (ada_update_initial_language): Declare.
6631 (ada_lookup_simple_minsym): Declare.
6632 (user_select_syms): New interface.
6633 (ada_sals_for_line): Declare.
6634 (ada_is_tagged_type): New interface.
6635 (ada_tag_name): Declare.
6636 (ada_lookup_struct_elt_type): Remove declaration.
6637 (ada_search_struct_field): Remove declaration.
6638 (ada_attribute_name): New interface.
6639 (ada_is_system_address_type): Declare.
6640 (ada_to_fixed_value): Remove declaration.
6641 (ada_template_to_fixed_record_type_1): Declare.
6642 (get_int_var_value): New interface.
6643 (ada_find_any_symbol): Declare.
6644 (ada_find_renaming_symbol): Declare.
6645 (ada_mangle): Rename to ada_encode.
6646 (ada_simple_renamed_entity): Remove const.
6647 (ada_main_name): Declare.
6648 (get_current_task): Rename to ada_get_current_task.
6649 (get_entry_number): Remove declaration.
6650 (ada_report_exception_break): Remove declaration.
6651 (ada_print_exception_breakpoint_nontask): Declare.
6652 (ada_print_exception_breakpoint_task): Declare.
6653 (ada_find_printable_frame): Declare.
6654
6655 * ada-lex.l: Update copyright notices.
6656 Use xmalloc and xfree instead of malloc and free.
6657 Use new interface to name_lookup.
6658 Use new interface to
6659 ada_mangle=>ada_encode.
6660 Redo handling of '$...' variable to parallel current treatment
6661 in c-exp.y.
6662 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
6663 digit_to_int, strtoulst, processInt, processReal, processId,
6664 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
6665 yywrap): Protoize.
6666
6667 (processInt): Use cast to remove harmless warning.
6668 (processReal): Modify to get rid of compiler warning on scan formats.
6669
6670 (processId): Replace xmalloc with obstack_alloc for name and remove
6671 call to ada_name_string_cleanup.
6672 Remove obsolete disabled code.
6673 (name_lookup): Ditto.
6674 New interface.
6675 Use obsavestring on temp_parse_space instead of savestring
6676 on name, and remove call to ada_name_string_cleanup.
6677 Free string returned from ada_simple_renamed_entity.
6678 Use new interface to ada_lookup_symbol_list.
6679 Decomment disabled code.
6680 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
6681 not types.
6682 When a type name lookup succeeds as a result of
6683 lookup_primitive_typename, check for regular type entry that has not
6684 yet been read in.
6685 Limit length of chain of renamed symbols we are willing to follow.
6686 Do not break names beginning with "standard__" into segments.
6687 (block_lookup): Use new interface to ada_lookup_symbol_list.
6688
6689 * ada-typeprint.c: Update copyright notice.
6690 (demangled_type_name): Rename to decoded_type_name.
6691 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
6692 (print_range_bound): Correct handling of negative
6693 bounds that make the index type looked unsigned under STABS.
6694 (print_dynamic_range_bound): Use new interface to get_int_var_value.
6695 (print_range_type_named): Use the builtin int type if no type
6696 corresponding to the given type name could be found.
6697 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
6698 Add some bullet-proofing.
6699 (print_variant_clauses): Allow for variant branches with ___XVU
6700 encodings that are not dynamic fields.
6701 Use new interface to ada_is_tagged_type.
6702 (print_record_type): Allow for fields with ___XVE encodings that
6703 are not dynamic fields.
6704 Use new interface to ada_is_tagged_type.
6705 (ada_print_type): ada_is_array_descriptor =>
6706 ada_is_array_descriptor_type.
6707
6708 * ada-valprint.c: Update copyright notice.
6709 Include gdb_string.h
6710 Include infcall.h
6711 (ui_memcpy): New function.
6712 (ada_print_floating): New function.
6713 (ada_print_str): Order arguments correctly.
6714 Correct handling of empty arrays and arrays of 0-length items.
6715 ada_is_array_descriptor => ada_is_array_descriptor_type
6716 Print values of type System.Address in hexadecimal format.
6717 Use ada_print_floating to print floating-point numbers in Ada format.
6718 Print class tag values with type names.
6719 No longer print the address of reference values. Avoids
6720 a potential confusion.
6721 (ada_value_print): Stop printing the object type for reference
6722 values, but preserve that behavior for access types. Avoids
6723 a potential confusion.
6724 Simplify one conditional expression, as the first part is now
6725 necessarily true.
6726 ada_is_array_descriptor => ada_is_array_descriptor_type
6727 Add check for arrays for null records, and print them by hand.
4c4b4cd2 6728
f65f91b5
JB
67292004-06-01 Jim Blandy <jimb@redhat.com>
6730
6731 * ppc-tdep.h: Delete unused 'regoff' member.
6732 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
6733
d4687fa0
MC
67342004-06-01 Michael Chastain <mec.gnu@mindspring.com>
6735
6736 Fix PR symtab/1661.
6737 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
6738 (hpread_read_struct_type): Likewise.
6739
de169ec9
AC
67402004-06-01 Andrew Cagney <cagney@gnu.org>
6741
c6902d46
AC
6742 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
6743 instead of xasprintf.
6744 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
6745 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
6746 (mi_cmd_data_list_register_names)
6747 (mi_cmd_data_list_changed_registers)
6748 (mi_cmd_data_list_register_values)
6749 (get_register, mi_cmd_data_write_register_values)
6750 (mi_cmd_data_write_register_values)
6751 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
6752 (mi_cmd_target_download, mi_cmd_target_select)
6753 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
6754 (mi_execute_cli_command, mi_execute_async_cli_command)
6755 (mi_execute_async_cli_command): Ditto.
6756 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
6757 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
6758
6085fc2d
AC
6759 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
6760 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
6761 error_last_message instead of mi_error_last_message.
6762 * mi/mi-main.c (mi_error_last_message): Delete function.
6763
de169ec9
AC
6764 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
6765 "invalid number of columns" error. Delete redundant "out of
6766 memory" check.
6767
1fc7d519
MK
67682004-05-31 Mark Kettenis <kettenis@gnu.org>
6769
6cfb2041
MK
6770 * i386bsd-nat.c: Don't include <sys/procfs.h>.
6771 (gregset_t, fpregset_t): Remove typedefs.
6772 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
6773 (REG_OFFSET): Rename argument.
6774 (i386bsd_r_reg_offset): Rename from reg_offset.
6775 (REG_ADDR): Remove macro.
6776 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
6777 functions.
6778 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
6779 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
6780 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
6781 instead of supply_gregset.
6782 (store_inferior_registers): Use `struct reg' and `struct fpreg'
6783 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
6784 instead of fill_gregset.
6785 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
6786
1fc7d519
MK
6787 * i386bsd-nat.c: Don't include "gregset.h".
6788 (supply_gregset, fill_gregset): Make static.
6789 (supply_fpregset, fill_fpregset): Remove.
6790 * Makefile.in (i386bsd-nat.o): Update dependencies.
6791
2c34abbe
MK
67922004-05-30 Mark Kettenis <kettenis@gnu.org>
6793
448724fb
MK
6794 * fbsd-proc.c: Include "regcache.h", "regset.h" and
6795 "gdb_assert.h". Con't include "gregset.h".
6796 (fbsd_make_corefile_notes): Use regset-based core file support
6797 instead off fill_gregset and fill_fpregset.
6798 * Makefile.in (fbsd-proc.o): Update dependencies.
6799
5ca8ca7c
MK
6800 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
6801 instructions.
6802 (m88k_frame_prev_register): Simplify code a bit.
6803
593adc23
MK
6804 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
6805 (amd64_collect_fpregset): New function.
6806 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
6807
8d1b517b
MK
6808 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
6809
7fdafb5a
MK
6810 * i386-tdep.c (i386_supply_gregset): Adjust comment.
6811 (i386_collect_gregset): New function.
6812 (i386_supply_fpregset): Adjust comment.
6813 (i386_collect_fpregset): New function.
6814 (i386_regset_from_core_section): Use i386_collect_gregset and
6815 i386_collect_fpregset.
6816
8693c419
MK
6817 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
6818 handle VALUEP being null.
6819
2c34abbe
MK
6820 * regset.h (collect_regset_ftype): Unconstify fourth argument.
6821
45d134d8
MK
68222004-05-29 Mark Kettenis <kettenis@gnu.org>
6823
1698f4e7
MK
6824 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
6825
45d134d8
MK
6826 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
6827 assembler in OpenBSD 3.5-current.
6828 (amd64obsd_sigcontext_addr): Likewise.
6829
691d145a
JB
68302004-05-28 Jim Blandy <jimb@redhat.com>
6831
6832 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
6833 register set, so our regcache isn't declared "legacy" and our E500
6834 pseudoregister read and write functions aren't ignored.
6835 (rs6000_register_byte, rs6000_register_raw_size,
6836 rs6000_register_virtual_type, rs6000_register_convertible,
6837 rs6000_register_convert_to_virtual,
6838 rs6000_register_convert_to_raw): Deleted.
6839 (rs6000_register_type, rs6000_convert_register_p,
6840 rs6000_register_to_value, rs6000_value_to_register): New
6841 functions.
6842 (rs6000_gdbarch_init): Don't register
6843 gdbarch_deprecated_register_size,
6844 gdbarch_deprecated_register_bytes,
6845 gdbarch_deprecated_register_byte,
6846 gdbarch_deprecated_register_raw_size,
6847 gdbarch_deprecated_register_virtual_type,
6848 gdbarch_deprecated_register_convertible,
6849 gdbarch_deprecated_register_convert_to_virtual, or
6850 gdbarch_deprecated_register_convert_to_raw methods. Instead,
6851 register gdbarch_register_type, gdbarch_convert_register_p,
6852 gdbarch_register_to_value, and gdbarch_value_to_register methods.
6853
18ed0c4e
JB
68542004-05-26 Jim Blandy <jimb@redhat.com>
6855
6856 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
6857 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
6858 functions, updated to match the register numberings used in GCC.
6859 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
6860 rs6000_dwarf2_reg_to_regnum as register number conversions
6861 functions for STABS and Dwarf2.
6862
779af9e3
RC
68632004-05-26 Randolph Chung <tausq@debian.org>
6864
6865 * infttrace.h (target_waitkind): Forward declare type instead of pulling
6866 in header file.
6867
c23968a2
JB
68682004-05-25 Joel Brobecker <brobecker@gnat.com>
6869
6870 * NEWS: Document new "start" command.
6871
3a7d1c27
RC
68722004-05-25 Randolph Chung <tausq@debian.org>
6873
6874 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
6875 hppa-linux.
6876
43613416
RC
68772004-05-25 Randolph Chung <tausq@debian.org>
6878
6879 * hppa-hpux-tdep.c (offsetof): Define.
6880 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
6881 (hppa32_hpux_frame_base_before_sigtramp)
6882 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
6883 (hppa64_hpux_frame_saved_pc_in_sigtramp)
6884 (hppa64_hpux_frame_base_before_sigtramp)
6885 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
6886 functions.
6887 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
6888 (hppa_hpux_sigtramp_frame_unwind_cache)
6889 (hppa_hpux_sigtramp_frame_this_id)
6890 (hppa_hpux_sigtramp_frame_prev_register)
6891 (hppa_hpux_sigtramp_frame_unwind)
6892 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
6893 (hppa_hpux_init_abi): Register sigtramp unwinder.
6894 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
6895
6d1be3f1
RC
68962004-05-25 Randolph Chung <tausq@debian.org>
6897
6898 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
6899 and multiple stack unwinds.
6900 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
6901
97c34f65
AC
69022004-05-25 Andrew Cagney <cagney@gnu.org>
6903
6904 * symfile.h (symbol_file_add_from_memory): Delete declaration.
6905 * symfile-mem.h: Delete file.
6906 * symfile-mem.c: Do not include "symfile-mem.h".
6907 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
6908 "struct bfd_section". When an error do not bother returning NULL.
6909 (add_symbol_file_from_memory_command): Use "struct bfd" and
6910 "struct bfd_section".
6911 * Makefile.in (symfile_mem_h): Delete.
6912 (symfile-mem.o): Update dependencies.
6913
e23cbd82
NR
69142004-05-25 Nick Roberts <nickrob@gnu.org>
6915
6916 * gdb-mi.el: New file.
6917
20d2ca3e
AC
69182004-05-25 Andrew Cagney <cagney@gnu.org>
6919
6920 * inftarg.c: Include "observer.h".
6921 (child_attach, child_create_inferior): Notify inferior_created.
6922 * corelow.c: Include "observer.h".
6923 (core_open): Notify inferior_created.
6924 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
6925
c27cda74
AC
69262004-05-25 Andrew Cagney <cagney@gnu.org>
6927
6928 * target.h (struct target_ops): Add from_tty to
6929 to_create_inferior.
6930 (target_create_inferior, find_default_create_inferior): Update.
6931 * infcmd.c (run_command): Update.
6932 * wince.c (child_create_inferior): Update.
6933 * win32-nat.c (child_create_inferior): Update.
6934 * uw-thread.c (uw_thread_create_inferior): Update.
6935 * thread-db.c (thread_db_create_inferior): Update.
6936 * target.c (debug_to_create_inferior)
6937 (find_default_create_inferior): Update.
6938 (maybe_kill_then_create_inferior): Update.
6939 * sol-thread.c (sol_thread_create_inferior): Update.
6940 * remote.c (extended_remote_async_create_inferior)
6941 (extended_remote_create_inferior): Update.
6942 * remote-vx.c (vx_create_inferior): Update.
6943 * remote-st.c (st2000_create_inferior): Update.
6944 * remote-sim.c (gdbsim_create_inferior): Update.
6945 * remote-sds.c (sds_create_inferior): Update.
6946 * remote-rdp.c (remote_rdp_create_inferior): Update.
6947 * remote-rdi.c (arm_rdi_create_inferior): Update.
6948 * remote-m32r-sdi.c (m32r_create_inferior): Update.
6949 * remote-e7000.c (e7000_create_inferior): Update.
6950 * procfs.c (procfs_create_inferior): Update.
6951 * ocd.c (ocd_create_inferior): Update.
6952 * ocd.h (ocd_create_inferior): Update.
6953 * nto-procfs.c (procfs_create_inferior): Update.
6954 * monitor.c (monitor_create_inferior): Update.
6955 * lin-lwp.c (lin_lwp_create_inferior): Update.
6956 * inftarg.c (child_create_inferior): Update.
6957 * hpux-thread.c (hpux_thread_create_inferior): Update.
6958 * gnu-nat.c (gnu_create_inferior): Update.
6959
1db2a798
AC
69602004-05-25 Andrew Cagney <cagney@gnu.com>
6961
6962 * MAINTAINERS: Update e-mail address.
6963
007d08bb
RC
69642004-05-24 Randolph Chung <tausq@debian.org>
6965
6966 * thread.c (info_threads_command, thread_apply_all_command)
6967 (thread_apply_command, thread_command, do_captured_thread_select):
6968 Remove HPUXHPPA-specific code.
6969
69e7b95e
RC
69702004-05-24 Randolph Chung <tausq@debian.org>
6971
6972 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
6973 unused symbols.
6974 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
6975 references.
6976
a4d5f2e0
JB
69772004-05-24 Joel Brobecker <brobecker@gnat.com>
6978
6979 * infcmd.c (kill_if_already_running): New function, extracted
6980 from run_command().
6981 (run_command): Replace extracted code by call to
6982 kill_if_already_running().
6983 (start_command): New function.
6984 (_initialize_infcmd): Add "start" command.
6985
bf2ca189
MK
69862004-05-24 Mark Kettenis <kettenis@gnu.org>
6987
6988 Add OpenBSD/m88k support.
6989 * NEWS (New native configurations): Mention OpenBSD/m88k.
6990 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
6991 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
6992 * Makefile.in (m88k_tdep_h): New variable.
6993 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
6994 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
6995 * configure.host: Add m88*-*-openbsd*.
6996 * configure.tgt: Add m88*-*-openbsd*.
6997
80fadb11
JB
69982004-05-24 Jim Blandy <jimb@redhat.com>
6999
7000 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
7001 to approve changes.
7002
19e2d14b
KB
70032004-05-24 Kevin Buettner <kevinb@redhat.com>
7004
7005 * symtab.c (fixup_section): Search section table when lookup by
7006 name fails.
7007
1b07b470
RC
70082004-05-24 Randolph Chung <tausq@debian.org>
7009
7010 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
7011 be "small_struct".
7012
368702b1
MK
70132004-05-24 Mark Kettenis <kettenis@gnu.org>
7014
5df97fde
MK
7015 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
7016 register number in regcache_raw_collect call.
7017 (m68kbsd_collect_fpregset): Likewise.
7018 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
7019
368702b1
MK
7020 * regset.h (struct regset): Add back `regset' member.
7021
a770d4ec
MK
70222004-05-23 Mark Kettenis <kettenis@gnu.org>
7023
70f9f479
MK
7024 * configure.in: Check for td_pcb in `struct thread'.
7025 * configure, config.in: Regenerated.
7026
2e16d79e
MK
7027 * dpx2-nat.c: Remove file.
7028 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
7029 (dpx2-nat.o): Remove dependencies.
7030
492cf391
MK
7031 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
7032 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
7033 (amd64obsd_supply_pcb): New function.
7034 (_initialize_amd64obsd_nat): Enable libkvm interface.
7035 * Makefile.in (amd64obsd-nat.o): Update dependencies.
7036 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
7037 (LOADLIBES): New variable.
7038
a770d4ec
MK
7039 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
7040 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
7041 (sparc32nbsd_supply_pcb): New function.
7042 (_initialize_sparcnbsd_nat): Enable libkvm interface.
7043 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
7044 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
7045 (LOADLIBES): New variable.
7046
9ea75c57
MK
70472004-05-22 Mark Kettenis <kettenis@gnu.org>
7048
2e0c3539
MK
7049 * bsd-kvm.c, bsd-kvm.h: New files.
7050 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
7051 "bsd-kvm.h".
7052 (i386fbsd_supply_pcb): New function.
7053 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
7054 (i386fbsd-nat.o): Update dependencies.
7055 (bsd_kvm_h): New variable.
7056 (bsd-kvm.o): New dependency.
7057 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
7058 (LOADLIBES): New variable.
7059
9ea75c57
MK
7060 * regset.c: Tweak comment.
7061 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
7062 macro.
7063 * regset.h: Update copyright year.
7064 (struct regset): Remove `descr' member, add `gdbarch' member.
7065 (regset_alloc): Adjust prototype and comment.
7066 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
7067 (i386_supply_fpregset): Likewise.
7068 (i386_regset_from_core_section): Update call to regset_alloc.
7069 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
7070 REGSET->arch.
7071 (i386obsd_aout_regset_from_core_section): Update call to
7072 regset_alloc.
7073 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
7074 REGSET->arch.
7075 (i386nbsd_aout_regset_from_core_section): Update call to
7076 regset_alloc.
7077 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
7078 REGSET->arch.
7079 (amd64_regset_from_core_section): Update call to regset_alloc.
7080 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
7081 REGSET->arch.
7082 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
7083 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
7084 &sparc32nbsd_gregset in sparc32_supply_gregset call.
7085 (sparc32nbsd_init_abi): Update call to regset_alloc.
7086 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
7087 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
7088 (sparc64obsd_init_abi): Update call to regset_alloc.
7089 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
7090 &sparc64nbsd_gregset in sparc64_supply_gregset call.
7091 (sparc64nbsd_init_abi): Update call to regset_alloc.
7092 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
7093 &sparc64fbsd_gregset in sparc64_supply_gregset call.
7094 (sparc64fbsd_init_abi): Update call to regset_alloc.
7095
867e2dc5
JB
70962004-05-22 Jim Blandy <jimb@redhat.com>
7097
7098 * ppc-tdep.h (spe_register_p): New declaration.
7099 (struct gdbarch_tdep): New members: ppc_acc_regnum and
7100 ppc_spefscr_regnum.
7101 * rs6000-tdep.c (spe_register_p): New function.
7102 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
7103 spefscr.
7104 (rs6000_gdbarch_init): Initialize the new members of the tdep
7105 structure.
7106
617a4cba
JB
71072004-05-21 Jim Blandy <jimb@redhat.com>
7108
0397dee1
JB
7109 * ppc-linux-nat.c (fetch_register): Move code back to be next
7110 to the comment that describes it. (Moved code, instead of
7111 comment, for symmetry with store_register.)
7112
617a4cba
JB
7113 Allocate regset structures in the gdbarch's obstack, not using
7114 xmalloc.
7115 * regset.c (regset_alloc): Renamed from regset_xmalloc.
7116 Add 'arch' argument. Allocate the regset on arch's obstack, not
7117 using xmalloc.
7118 * regset.h (regset_alloc): Update declaration.
7119 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
7120 gdbarch argument.
7121 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7122 * i386-tdep.c (i386_regset_from_core_section): Same.
7123 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7124 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7125 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7126 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7127 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7128 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7129
9aa3914d
JB
71302004-05-21 Joel Brobecker <brobecker@gnat.com>
7131
7132 * config/djgpp/fnchange.lst: Undo previous change, was useless.
7133
99c87dab
JB
71342004-05-21 Jim Blandy <jimb@redhat.com>
7135
7136 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
7137 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
7138
c2b6b4aa
JB
71392004-05-20 Jim Blandy <jimb@redhat.com>
7140
7141 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
7142
144529d0
MK
71432004-05-20 Mark Kettenis <kettenis@gnu.org>
7144
7145 * regset.h: Make prototype const-correct.
7146 * regset.c (regset_xmalloc): Make const-correct.
7147
4725b721
PH
71482004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
7149
7150 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
7151 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
7152 (symbol_search_name): Declare.
7153
7154 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
7155 (iter_name_next_hashed): Ditto.
7156 (iter_name_next_linear): Ditto.
7157 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
7158
7159 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
7160 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
7161 (symbol_search_name): New function.
7162
7163 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
7164
7165 * minsyms.c (build_minimal_symbol_hash_tables): Change
7166 test for adding to demangled hash table to check for difference
7167 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
7168
be07a590
JB
71692004-05-19 Jim Blandy <jimb@redhat.com>
7170
7171 Use a constructor function to create regset structures.
7172 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
7173 (struct regset): Use supply_regset_ftype. Add new
7174 'collect_regset' member.
7175 (regset_xmalloc): New declaration.
7176 * regset.c: New file.
7177 * am64-tdep.c (amd64_regset_from_core_section): Use
7178 regset_xmalloc to construct regset structures.
7179 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7180 * i386-tdep.c (i386_regset_from_core_section): Same.
7181 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7182 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7183 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7184 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7185 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7186 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7187 * Makefile.in (COMMON_OBS): Add regset.o.
7188 (regset.o): New rule.
7189
604368f5
JB
71902004-05-19 Joel Brobecker <brobecker@gnat.com>
7191
7192 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
7193 and pthread_cond_wait.c.
7194
82d69f8b
JB
71952004-05-18 Jim Blandy <jimb@redhat.com>
7196
7197 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
7198 before the mach-specific switch, and then let the individual cases
7199 override the defaults, rather than leaving them uninitialized
7200 until the switch and then setting them in each case.
7201
5859efe5
RC
72022004-05-18 Randolph Chung <tausq@debian.org>
7203
7204 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
7205 millicode functions.
7206
9ca80cf8
RC
72072004-05-18 Randolph Chung <tausq@debian.org>
7208
7209 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
7210 references to dld_flags_buffer consistent.
7211
ed70ba00
RC
72122004-05-18 Randolph Chung <tausq@debian.org>
7213
7214 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
7215 it for unwinding the stack.
7216
63100632
RC
72172004-05-18 Randolph Chung <tausq@debian.org>
7218
7219 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
7220 Undefine these so we can overide them using gdbarch.
7221
090ccbb7
RC
72222004-05-18 Randolph Chung <tausq@debian.org>
7223
7224 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
7225 handling for 64-bit HPUX (elf).
7226
594706e6
DJ
72272004-05-18 Daniel Jacobowitz <dan@debian.org>
7228
7229 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
7230 constants.
7231 * amd64-tdep.c (amd64_skip_prologue): Likewise.
7232 * ia64-tdep.c (examine_prologue): Likewise.
7233 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
7234 * v850-tdep.c (v850_fix_call_dummy): Likewise.
7235
e5483145
MK
72362004-05-18 Mark Kettenis <kettenis@gnu.org>
7237
7238 * vax-tdep.c (vax_return_value): Implement
7239 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7240
caed1a45
MK
72412004-05-17 Mark Kettenis <kettenis@gnu.org>
7242
7243 * vax-tdep.c (vax_return_value): Fix typo.
7244
3c0b7db2
AC
72452004-05-17 Andrew Cagney <cagney@redhat.com>
7246
5aae53e5
AC
7247 * MAINTAINERS: Mark Salter was also responsible for
7248 testsuite/config/
7249
3c0b7db2
AC
7250 * NEWS: Mention signal fixes.
7251
22b0923d
RC
72522004-05-17 Randolph Chung <tausq@debian.org>
7253
7254 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
7255 check to see if we are unwinding an export stub. Export stubs clobber
7256 the %rp in the call path and stores the original rp in a stack slot.
7257
22f2b2f3
JB
72582004-05-17 Jim Blandy <jimb@redhat.com>
7259
7260 * MAINTAINERS: Update address for J.T. Conklin.
7261
cea96d64
RC
72622004-05-17 Randolph Chung <tausq@debian.org>
7263
7264 * hppa-tdep.c: Remove superfluous #include's.
7265 * Makefile.in (hppa-tdep.o): Update dependencies.
7266
f08f6a4a
RC
72672004-05-17 Randolph Chung <tausq@debian.org>
7268
7269 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
7270 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
7271 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
7272 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
7273 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
7274 Remove static function declarations.
7275
51da707a
MK
72762004-05-17 Mark Kettenis <kettenis@gnu.org>
7277
caed1a45
MK
7278 * alphabsd-nat.c: Update copyright year.
7279 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
7280
c0c2b0db
MK
7281 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
7282 and M68K_A2_REGNUM.
7283
51da707a
MK
7284 * m68k-tdep.c (m68k_svr4_return_value): Implement
7285 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7286
8d027a04
MK
72872004-05-16 Mark Kettenis <kettenis@gnu.org>
7288
7289 * sol-thread.c Update copyright year. Fix various coding
7290 standards violations. Tweak a few comments.
7291 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
7292 Delete prototypes.
7293
0d99fdb9
RC
72942004-05-15 Randolph Chung <tausq@debian.org>
7295
7296 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
7297 as pointer instead of array reference since HPUX compiler does
7298 not accept unsized array arguments.
7299 * somsolib.c (dld_flags_buffer): Use constant array size.
7300
f7e3843a
MK
73012004-05-15 Mark Kettenis <kettenis@gnu.org>
7302
0fe85704
MK
7303 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
7304 offset with decimal offset.
7305 (amd64obsd_sigcontext_addr): Return correct address for entire
7306 signal trampoline.
7307
a54f9a00
MK
7308 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
7309 instead of get_frame_base.
7310
feae6502
MK
7311 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
7312 (fill_gregset): Use regcache_raw_collect.
7313
0382d099
MK
7314 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
7315 ppcobsd-tdep.c.
7316
f7e3843a
MK
7317 * config/sparc/tm-nbsd64.h: Remove file.
7318 * config/tm-sunos.h: Remove file.
7319
773df3e5
JB
73202004-05-15 Joel Brobecker <brobecker@gnat.com>
7321
7322 * rs6000-tdep.c (store_param_on_stack_p): New function,
7323 an improved version of some code extracted from skip_prologue().
7324 (skip_prologue): Use store_param_on_stack_p() to detect
7325 instructions saving a parameter on the stack. Detect when r0
7326 is used to save a parameter.
7327 Do not mark "li rx, SIMM" instructions as part of the prologue,
7328 unless the following instruction is also part of the prologue.
7329
95918acb
AC
73302004-05-14 Andrew Cagney <cagney@redhat.com>
7331
06f32659
AC
7332 * infrun.c (handle_inferior_event): Simplify
7333 STEP_OVER_UNDEBUGGABLE.
7334
95918acb
AC
7335 * infrun.c (handle_step_into_function): Delete function.
7336 (handle_inferior_event): Inline calls to
7337 handle_step_into_function.
7338
40711ff1 73392004-05-14 Jerome Guitton <guitton@gnat.com>
42203e46
JG
7340
7341 * rs6000-nat.c: Fix a comment.
7342
02f60eae
JB
73432004-05-12 David Anderson <davea@sgi.com>
7344
7345 Committed by Jim Blandy <jimb@redhat.com>:
7346 * regcache.c (struct regcache_descr): fix comment spelling.
7347
552e377b
JB
73482004-05-13 J. Brobecker <brobecker@gnat.com>
7349
7350 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
7351 Fixes a link link failure.
7352
349766b2
JB
73532004-05-13 J. Brobecker <brobecker@gnat.com>
7354
7355 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
7356 error that was causing the build to fail.
7357
0d4d5484
JB
73582004-05-13 J. Brobecker <brobecker@gnat.com>
7359
7360 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
7361 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
7362
0b30808c
AC
73632004-05-13 Andrew Cagney <cagney@redhat.com>
7364
7365 * infrun.c (handle_inferior_event): Check for
7366 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
7367 calls. Update comments.
7368
cdf2c5f5
JB
73692004-05-13 Jim Blandy <jimb@redhat.com>
7370
063715bf
JB
7371 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
7372 (fetch_regs_user_thread, fetch_regs_kernel_thread)
7373 (store_regs_user_thread, store_regs_kernel_thread): Use
7374 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
7375 * ppc-linux-nat.c (fill_gregset): Same.
7376 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
7377 (ppc_linux_sigtramp_cache): Same.
7378 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
7379 (ppcnbsd_sigtramp_cache_init): Same.
7380 * rs6000-nat.c (fetch_core_registers): Same.
7381 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
7382 (rs6000_frame_cache): Same.
7383
cdf2c5f5
JB
7384 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
7385 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
7386 of assuming that the gprs are numbered starting with zero.
7387 * ppc-linux-nat.c (fill_gregset): Same.
7388 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
7389 * ppcnbsd-nat.c (getregs_supplies): Same.
7390 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
7391 * rs6000-nat.c (fetch_core_registers): Same.
7392 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
7393
450bd37b
MS
73942004-05-07 Michael Snyder <msnyder@redhat.com>
7395
7396 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
7397 LOC_COMPUTED_ARG, and LOC_INDIRECT.
7398
4a72a2a6
AC
73992004-05-13 Andrew Cagney <cagney@redhat.com>
7400
7401 * infrun.c (handle_inferior_event): Use frame_unwind_id.
7402
8edfa926
BM
74032004-05-13 Bryce McKinlay <mckinlay@redhat.com>
7404
7405 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
7406 base_address for shared libraries.
7407
723e0e3d
BM
74082004-05-13 Bryce McKinlay <mckinlay@redhat.com>
7409
7410 * MAINTAINERS (write after approval): Add myself.
7411
00d4360e
UW
74122004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
7413
7414 * breakpoint.c (bpstat_stop_status): Add new argument
7415 STOPPED_BY_WATCHPOINT. Use it instead of testing
7416 target_stopped_data_address agaist 0 to check whether
7417 or not we stopped due to a hardware watchpoint.
7418 * breakpoint.h (bpstat_stop_status): Adapt prototype.
7419 * infrun.c (handle_inferior_event): Call bpstat_stop_status
7420 with new argument.
7421
ec76baa5
JB
74222004-05-12 Jim Blandy <jimb@redhat.com>
7423
7424 * configure.in: When checking whether we should use the -bbigtoc
7425 option, don't forget to restore the original value of LDFLAGS.
7426 * configure: Regenerated.
7427
f2c9ca08
AC
74282004-05-12 Andrew Cagney <cagney@redhat.com>
7429
7430 * thread.c (load_infrun_state): Delete step_sp.
7431 * infrun.c (context_switch): Ditto.
7432 * inferior.h (step_sp): Ditto.
7433 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
7434 * gdbthread.h (struct thread_info, save_infrun_state)
7435 (restore_infrun_state): Ditto.
7436
090ddb2a
UW
74372004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
7438
7439 * MAINTAINERS (write after approval): Add myself.
7440
8aad930b
AC
74412004-05-12 Andrew Cagney <cagney@redhat.com>
7442
7443 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
7444 eliminate reference to step_sp.
7445 (struct execution_control_state, init_execution_control_state)
7446 (handle_inferior_event, keep_going): Delete update_step_sp and
7447 step_sp.
7448 * infcmd.c (step_sp): Note that variable is unused.
7449
922d5ae0
AC
74502004-05-11 Andrew Cagney <cagney@redhat.com>
7451
7452 * infrun.c (step_over_function): Delete function.
7453 (handle_step_into_function): Use insert_step_resume_breakpoint.
7454 (insert_step_resume_breakpoint): Fix assertion.
7455
017c5ca5
NR
74562004-05-11 Nick Roberts <nickrob@gnu.org>
7457
7458 * utils.c (defaulted_query): Just use the normal query input type
7459 when printing the annotations.
7460
42edda50
AC
74612004-05-11 Andrew Cagney <cagney@redhat.com>
7462
7463 * infrun.c (handle_inferior_event): Simplify code handling
7464 step-into or return-from a signal trampoline.
7465
d28b44a7
AC
74662004-05-11 Andrew Cagney <cagney@redhat.com>
7467
7468 * ppcnbsd-tdep.c: Include "gdb_assert.h".
7469 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
7470
383f0f5b
JB
74712004-05-10 Jim Blandy <jimb@redhat.com>
7472
d0b57c3a
JB
7473 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
7474 with a call to internal_error.
7475
383f0f5b
JB
7476 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
7477 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
7478 processor variant lacks those registers.
7479 (ppc_floating_point_unit_p): Change description to make it clear
7480 that this returns info about the ISA, not the ABI.
7481 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
7482 return true or false by checking tdep->ppc_fp0_regnum and
7483 tdep->ppc_fpscr_regnum. The original code replicated the BFD
7484 arch/mach switching done in rs6000_gdbarch_init; it's better to
7485 keep that logic there, and just check the results here.
7486 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
7487 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
7488 floating-point registers.
7489 (ppc_supply_fpregset, ppc_collect_fpregset)
7490 (rs6000_push_dummy_call, rs6000_extract_return_value)
7491 (rs6000_store_return_value): Assert that we have floating-point
7492 registers.
7493 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
7494 (rs6000_frame_cache): Don't note the locations at which
7495 floating-point registers were saved if we have no fprs.
7496 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
7497 registers.
7498 (fetch_regs_user_thread, fetch_regs_kernel_thread)
7499 (store_regs_user_thread, store_regs_kernel_thread): Only call
7500 supply_fprs / fill_fprs if we actually have floating-point
7501 registers.
7502 (special_register_p): Check ppc_fpscr_regnum before matching
7503 against it.
7504 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
7505 supply / collect fpscr if we don't have it.
7506 * ppc-bdm.c: #include "gdb_assert.h".
7507 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
7508 have floating-point registers, since I can't test this code on
7509 FP-free systems to adapt it.
7510 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
7511 fpscr and floating point register numbers if they don't exist.
7512 (fetch_register): Assert that we have floating-point registers
7513 before we reach the code that handles them.
7514 (store_register): Same. And use tdep instead of calling
7515 gdbarch_tdep again.
7516 (fill_fpregset): Don't try to collect FP registers and fpscr if we
7517 don't have them.
7518 (ppc_linux_sigtramp_cache): Don't record the saved locations of
7519 fprs and fpscr if we don't have them.
7520 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
7521 don't have them.
7522 * ppcnbsd-nat.c: #include "gdb_assert.h".
7523 (getfpregs_supplies): Assert that we have floating-point registers.
7524 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
7525 * ppcobsd-tdep.c: #include "gdb_assert.h".
7526 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
7527 have floating-point registers.
7528 * rs6000-nat.c (regmap): Don't match against the fpscr and
7529 floating point register numbers if they don't exist.
7530 (fetch_inferior_registers, store_inferior_registers,
7531 fetch_core_registers): Only fetch / store / supply the
7532 floating-point registers and the fpscr if we have them.
7533 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
7534 (ppcobsd-tdep.o): Update dependencies.
7535
15960608
AC
75362004-05-10 Andrew Cagney <cagney@redhat.com>
7537
7538 * infrun.c (through_sigtramp_breakpoint): Delete variable.
7539 (context_switch): Do not switch through_sigtramp_breakpoint.
7540 * gdbthread.h (save_infrun_state, load_infrun_state)
7541 (struct thread_info): Delete through_sigtramp_breakpoint parameter
7542 and structure member.
7543 * thread.c (load_infrun_state, save_infrun_state): Update.
7544
5ab5aa0f
MK
75452004-05-10 Mark Kettenis <kettenis@gnu.org>
7546
7547 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
7548
da78b0e7
DJ
75492004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
7550
7551 * acinclude.m4: Quote macro names being defined by AC_DEFUN
7552 throughout.
7553 * aclocal.m4: Regenerate.
7554
cca0d3b0
NW
75552004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
7556
7557 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
7558
d303a6c7
AC
75592004-05-10 Andrew Cagney <cagney@redhat.com>
7560
7561 * infrun.c (check_sigtramp2): Delete function.
7562 (handle_inferior_event): When single stepping, and taking a
7563 signal, set a breakpoint at the signal return address. Delete
7564 redundant calls to check_sigtramp2.
7565 (insert_step_resume_breakpoint): New function.
7566 (through_sigtramp_breakpoint, handle_inferior_event)
7567 (follow_exec, wait_for_inferior, fetch_inferior_event)
7568 (currently_stepping, keep_going): Delete most uses of
7569 through_sigtramp_breakpoint, not that it should be deleted.
7570 (delete_breakpoint_current_contents): Delete function.
7571
03f4cc20
RC
75722004-05-10 Randolph Chung <tausq@debian.org>
7573
7574 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
7575 target.
7576 * config/pa/tm-linux.h: New file.
7577
37fc812e
DJ
75782004-05-10 Daniel Jacobowitz <drow@mvista.com>
7579
7580 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
7581 of prefixes. Don't print the prefix twice in the CLI.
7582
26c0b942
JB
75832004-05-10 Jim Blandy <jimb@redhat.com>
7584
2e56e9c1
JB
7585 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
7586 collect all the gprs.
7587
26c0b942
JB
7588 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
7589 loop collecting gprs.
7590
dc497459
AC
75912004-05-09 Andrew Cagney <cagney@redhat.com>
7592
7593 * remote-vx.c (net_step): Delete step-range code.
7594 * remote.c (remote_resume, init_all_packet_configs)
7595 (set_remote_protocol_E_packet_cmd)
7596 (show_remote_protocol_E_packet_cmd)
7597 (remote_protocol_E, show_remote_cmd, _initialize_remote)
7598 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
7599 (show_remote_protocol_e_packet_cmd): Ditto.
7600
0543f387
MK
76012004-05-09 Mark Kettenis <kettenis@gnu.org>
7602
c481d1ca
MK
7603 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
7604
f626a069
MK
7605 * hppa-tdep.h: Update copyright year.
7606 (struct trad_frame_saved_reg): Add opaque declaration.
7607
6fa57a7d
MK
7608 * amd64-tdep.c (amd64_return_value): Implement
7609 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7610
e47577ab
MK
7611 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
7612 (m68k_value_to_register): New functions.
7613 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
7614 value_to_register.
7615
31db7b6c
MK
7616 * defs.h (enum return_value_convention): Add
7617 RETURN_VALUE_ABI_RETURNS_ADDRESS and
7618 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
7619 * infcmd.c (legacy_return_value): New function.
7620 (print_return_value): Rwerite to implement
7621 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7622 * values.c (using_struct_return): Check for inequality to
7623 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
7624 RETURN_VALUE_STRUCT_CONVENTION.
7625 * i386-tdep.c (i386_return_value): Implement
7626 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7627
0543f387
MK
7628 * vax-tdep.c: Tweak comments. Reorder include files. Don't
7629 include "symtab.h", "opcode/vax.h" and "inferior.h".
7630 (vax_skip_prologue): Replace calls to read_memory_integer by calls
7631 to read_memory_unsigned_integer.
7632 (vax_gdbarch_init): Reorder.
7633 (_initialize_vax_tdep): Spell out prototype.
7634 * Makefile.in (vax-tdep.o): Update dependencies.
7635
0c93b7b6
AC
76362004-05-08 Andrew Cagney <cagney@redhat.com>
7637
e6b55ae2
AC
7638 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
7639 * target.c (target_detach, target_disconnect): Ditto.
7640
1ac839b8
AC
7641 * infcall.c (call_function_by_hand): When no
7642 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
7643 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
7644 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
7645 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7646 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7647
28954179
AC
7648 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
7649 * gdbarch.h, gdbarch.c: Re-generate.
7650 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7651 deprecated_fix_call_dummy.
7652 * v850-tdep.c (v850_gdbarch_init): Ditto.
7653 * infcall.c (call_function_by_hand): Do not call
7654 DEPRECATED_FIX_CALL_DUMMY.
7655
434b87dd
AC
7656 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
7657 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
7658 * gdbarch.h, gdbarch.c: Re-generate.
7659 * arm-linux-tdep.c (arm_linux_call_dummy_words)
7660 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
7661 deprecated_sizeof_call_dummy_words.
7662 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
7663 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7664 * v850-tdep.c (v850_gdbarch_init): Ditto.
7665 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
7666 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
7667 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7668 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7669 * arch-utils.h (legacy_call_dummy_words)
7670 (legacy_sizeof_call_dummy_words): Delete declarations.
7671 * arch-utils.c (legacy_call_dummy_words)
7672 (legacy_sizeof_call_dummy_words): Delete variables.
7673
58d28df8
AC
7674 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
7675 * gdbarch.h, gdbarch.c: Re-generate.
7676 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
7677 * infcall.c (call_function_by_hand): Eliminate call to
7678 DEPRECATED_PUSH_DUMMY_FRAME.
7679 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
7680 push_dummy_frame.
7681 (ns32k_push_dummy_frame): Delete function.
7682
e4a2df64
AC
7683 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7684 deprecated_call_dummy_breakpoint_offset or
7685 deprecated_call_dummy_start_offset.
7686 * dummy-frame.c, arm-tdep.c: Update comments.
7687 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
7688 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
7689 * gdbarch.h, gdbarch.c: Re-generate.
7690
d3712828
AC
7691 * infcall.c (legacy_push_dummy_code): Delete function.
7692 (push_dummy_code): Delete call.
7693
7a882905
AC
7694 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
7695 * gdbarch.h, gdbarch.c: Re-generate.
7696 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
7697 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
7698 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
7699 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
7700
0ec5872b
AC
7701 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
7702 (struct frame_info): Delete opaque declaration.
7703 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
7704 * frame.c (get_frame_type): Delete call.
7705
0c93b7b6
AC
7706 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
7707 pc_in_call_dummy.
7708 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
7709 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
7710
75536971
MK
77112004-05-08 Mark Kettenis <kettenis@gnu.org>
7712
527ca6bb
MK
7713 * alphanbsd-tdep.c: Include "gdb_string.h".
7714 * armnbsd-tdep.c: Update copyright year.
7715 Include "gdb_string.h".
7716 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
7717 dependencies.
7718
d39fdc61
MK
7719 * delta68-nat.c: Remove file.
7720 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
7721 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
7722 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
7723 (delta68-nat.o): Remove dependency.
7724
75536971
MK
7725 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
7726 function.
7727 (m68k_gdbarch_init): Don't set
7728 deprecated_frameless_function_invocation.
7729
f4ca1d1f
RC
77302004-05-07 Randolph Chung <tausq@debian.org>
7731
7732 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
7733 read_memory_nobpt for code reading when doing frame unwinding.
7734 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
7735
2f0e8c7a
RC
77362004-05-07 Randolph Chung <tausq@debian.org>
7737
7738 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
7739 instead of sp, handle sigaltstack case.
7740 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
7741 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
7742 signal handler and not that of the caller.
7743 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
7744 hppa_linux_sigtramp_find_sigcontext.
7745
959464ff
RC
77462004-05-07 Randolph Chung <tausq@debian.org>
7747
7748 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
7749 hppa-linux-nat.c.
7750 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
7751 * hppa-linux-nat.c (fetch_register, store_register): Define.
7752 (fetch_inferior_registers, store_inferior_registers): Define.
7753 (supply_gregset): Add comment and clean up some unneeded code.
7754 (fill_gregset): Add comment and fix so that it saves registers in
7755 the right place in the gregset.
7756 (fill_fpregset): Fix buffer overrun problem.
7757 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
7758
0da28f8a
RC
77592004-05-07 Randolph Chung <tausq@debian.org>
7760
7761 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
7762 do common handling of the pcoqt register.
7763 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
7764 to use helper function.
7765 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
7766 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
7767 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
7768 generic fallback unwinder when all else fails.
7769 (hppa_gdbarch_init): Add fallback sniffer.
7770 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
7771 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
7772 to use helper function.
7773
b9ec757a
JB
77742004-05-08 Joel Brobecker <brobecker@gnat.com>
7775
7776 * config/djgpp/fnchange.lst: Add translation rules for
7777 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
7778
756e95f1
MK
77792004-05-08 Mark Kettenis <kettenis@gnu.org>
7780
7781 * frame.c (get_prev_frame_1): Work around GCC bug.
7782 * frame.h: Add comment about GCC bug.
7783
2b4855ab
AC
77842004-05-07 Andrew Cagney <cagney@redhat.com>
7785
7786 * observer.c: Include "commands.h" and "gdbcmd.h".
7787 (observer_debug, _initialize_observer): Add the
7788 command "set/show debug observer".
7789 * observer.sh: When observer debugging, log notify calls.
7790 * Makefile.in (observer.o): Update dependencies.
7791
ba3e8e46
JM
77922004-05-07 Jason Molenda (jmolenda@apple.com)
7793
7794 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
7795
16796152
JB
77962004-05-07 Jim Blandy <jimb@redhat.com>
7797
daf6dc85
JB
7798 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
7799 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
7800 to recognize gpr regnums, instead of assuming that
7801 tdep->ppc_fp0_regnum marks the end of the general-purpose
7802 registers.
7803
16796152
JB
7804 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
7805 the given architecture has floating-point registers.
7806
c69b8bfc
AC
78072004-05-07 Andrew Cagney <cagney@redhat.com>
7808
7809 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
7810 macro defined to 1.
7811 * gdbarch.h, gdbarch.c: Re-generate.
7812 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7813 deprecated_use_generic_dummy_frames.
7814
7243600a
BF
78152004-05-07 Brian Ford <ford@vss.fsi.com>
7816
7817 * NEWS: Mention Cygwin DWARF 2 support.
7818
73c1e0a1
AC
78192004-05-07 Andrew Cagney <cagney@redhat.com>
7820
7821 * objfiles.h (struct entry_info): Delete unused fields
7822 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
7823 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
7824 * mipsread.c (mipscoff_symfile_read): Update.
7825 * mdebugread.c (parse_partial_symbols): Update.
7826 * dwarfread.c (read_file_scope): Update.
7827 * dwarf2read.c (read_file_scope): Update.
7828 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
7829 * coffread.c (complete_symtab): Update.
7830
1d3056ac
MK
78312004-05-07 Mark Kettenis <kettenis@gnu.org>
7832
7833 * infcall.c (_initialize_infcall): Fix typo.
7834
15170568
AC
78352004-05-07 Andrew Cagney <cagney@redhat.com>
7836
7837 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
7838 * command.h (add_setshow_zinteger_cmd): Declare.
7839
34f75cc1
RC
78402004-05-06 Randolph Chung <tausq@debian.org>
7841
7842 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
7843 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
7844 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
7845 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
7846 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
7847 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
7848 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
7849 definitions ...
7850 * hppa-tdep.h: ... to here, with HPPA_ prefix.
7851 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
7852 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
7853 (hppa64_hpux_frame_find_saved_regs_in_sig)
7854 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
7855 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
7856 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
7857 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
7858 (hppa_linux_sigtramp_frame_prev_register): Likewise.
7859 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
7860 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
7861 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
7862 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
7863 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
7864 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
7865 (hppa32_register_type, hppa_cannot_store_register)
7866 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
7867 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
7868 * hpread.c (hpread_process_one_debug_symbol): Likewise.
7869 * pa64solib.c (pa64_solib_have_load_event)
7870 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
7871 (pa64_solib_unloaded_library_pathname): Likewise.
7872 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
7873 (som_solib_library_pathname): Likewise.
7874
0a5e7efe
JI
78752004-05-05 Jim Ingham <jingham@apple.com>
7876
7877 * breakpoint.c (create_breakpoints): Copy the ignore count and
7878 thread id over from the pended breakpoint to the actual
7879 breakpoint.
7880
10a4b113
AC
78812004-05-05 Andrew Cagney <cagney@redhat.com>
7882
7883 * gdbarch.sh (PARM_BOUNDARY): Delete.
7884 gdbarch.h, gdbarch.c: Re-generate.
7885 * valops.c (PARM_BOUNDARY): Delete macro.
7886 (value_push): Delete PARM_BOUNDARY code.
7887 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
7888
366f009f
JB
78892004-05-04 Jim Blandy <jimb@redhat.com>
7890
32b99774
JB
7891 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
7892 Don't assume that the gprs, fprs, and UISA sprs are
7893 contiguous, start at register number zero, and end with fpscr.
7894 Instead, use the numbers from the tdep structure.
7895
366f009f
JB
7896 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
7897 should no longer be used in code specific to the RS6000 and its
7898 derivatives.
7899 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
7900 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
7901 tdep->ppc_fp0_regnum.
7902 (ppc_supply_fpregset, ppc_collect_fpregset)
7903 (rs6000_push_dummy_call, rs6000_extract_return_value)
7904 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
7905 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
7906 FP0_REGNUM.
7907 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
7908 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
7909 Same.
7910 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
7911 bdm_ppc_store_registers): Same.
7912 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
7913 (store_register, fill_fpregset): Same.
7914 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
7915 (ppc_linux_supply_fpregset): Same.
7916 * ppcnbsd-nat.c (getfpregs_supplies): Same.
7917 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
7918 Same.
7919 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
7920 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
7921 ppc64_sysv_abi_return_value): Same.
7922 * rs6000-nat.c (regmap, fetch_inferior_registers)
7923 (store_inferior_registers, fetch_core_registers): Same.
7924
827f338d
MK
79252004-05-01 Mark Kettenis <kettenis@gnu.org>
7926
7927 * m68knbsd-nat.c: Remove file.
7928 * m68knbsd-tdep.c: Remove file.
7929 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
7930 dependencies.
7931 * configure.host: Add m68k-*-netbsdelf*.
7932 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
7933 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
7934 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
7935 (XM_FILE): Remove.
7936 * config/m68k/nbsdelf.mh: New file.
7937 * config/m68k/nbsd.mt: New file.
7938 * config/m68k/nbsdaout.mt: Remove file.
7939 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
7940 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
7941 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
7942 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
7943 (use_struct_convention): Remove prototype.
7944 (USE_STRUCT_CONVENTION): Remove define.
7945 * config/m68k/xm-nbsd.h: Remove file.
7946
66894781
MS
79472004-05-04 Michael Snyder <msnyder@redhat.com>
7948
7949 * m68k-tdep.c (m68k_gdbarch_init): Default to using
7950 reg_struct_return method (as gcc usually does for cross targets).
7951
f0f63663
AC
79522004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7953
7954 Committed by Andrew Cagney.
7955 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
7956 alignment padding when accessing ucontext struct members.
7957
edf61169
JB
79582004-05-04 Jim Blandy <jimb@redhat.com>
7959
8bf659e8
JB
7960 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
7961 'ppc_gplast_regnum' member.
7962 (ppc_num_gprs): New enum constant.
7963 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
7964 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
7965 * rs6000-nat.c (regmap, fetch_inferior_registers,
7966 store_inferior_registers): Same.
7967 * rs6000-tdep.c (e500_pseudo_register_read)
7968 (e500_pseudo_register_write): Same.
7969 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
7970
b967e06f
JB
7971 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
7972 * ppc-tdep.h (ppc_num_fprs): New enum constant.
7973 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
7974 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
7975 FPLAST_REGNUM.
7976 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
7977 Same.
7978 * ppc-linux-nat.c (ppc_register_u_addr): Same.
7979 * rs6000-nat.c (regmap, fetch_inferior_registers)
7980 (store_inferior_registers): Same.
7981
edf61169
JB
7982 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
7983 with FPLAST_REGNUM.
7984
58a9656e
JB
79852004-05-03 Joel Brobecker <brobecker@gnat.com>
7986
7987 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
7988 failure detected by recent versions of GCC.
7989 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
7990 to be consistent with the usage in dwarf2_create_include_psymtab.
7991
dc305454
MS
79922004-05-03 Michael Snyder <msnyder@redhat.com>
7993
7994 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
7995 (heuristic_proc_start): Whitespace cleanup.
7996
29972665
MK
79972004-05-04 Mark Kettenis <kettenis@gnu.org>
7998
6b57680d
MK
7999 * sun3-nat.c: Remove file.
8000 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
8001 dependencies.
8002 (ALLDEPFILES): Remove sun3-nat.c.
8003 (sun3-nat.o): Remove dependencies.
8004
29972665
MK
8005 * i386-interix-nat.c, i386-interix-tdep.c,
8006 config/i386/nm-interix.h, config/i386/interix.mh,
8007 config/i386/interix.mt: Remove files.
8008 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
8009 dependencies.
8010
f595cb19
MK
80112004-05-03 Mark Kettenis <kettenis@gnu.org>
8012
8013 * m68k-tdep.h (struct gdbarch_tdep): Add member
8014 struct_value_regnum.
8015 (m68k_svr4_init_abi): New prototype.
8016 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
8017 different calling conventions.
8018 (m68k_extract_return_value): Remove code dealing with single-field
8019 structs.
8020 (m68k_store_return_value): Remove code dealing with single-field
8021 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
8022 (m68k_extract_struct_value_address): Remove function.
8023 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
8024 (m68k_reg_struct_return_p, m68k_return_value)
8025 (m68k_svr4_return_value): New functions.
8026 (m68k_use_struct_convention): Remove function.
8027 (m68k_push_dummy_call): Use new struct_value_regnum member of
8028 `struct gdbarch_tdep' instead of hardcoded register number to
8029 store STRUCT_ADDR.
8030 (m68k_svr4_init_abi): New function.
8031 (m68k_gdbarch_init): Don't set extract_return_value,
8032 store_return_values, deprecated_extract_struct_value_address and
8033 use_struct_convention. Set return_value instead. Initialize new
8034 struct_value_regnum member of `struct gdbarch_tdep'.
8035 * m68klinux-tdep.c: Update copyright year.
8036 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
8037 (m68k_linux_extract_struct_value_address): Remove function.
8038 (m68k_linux_init_abi): Don't set extract_return_value,
8039 store_return_values, deprecated_extract_struct_value_address and
8040 use_struct_convention. Call m68k_svr4_init_abi but override the
8041 new struct_value_regnum member of `struct gdbarch_tdep'.
8042 * Makefile.in (m68k-tdep.o): Update dependencies.
8043
aaa75496
JB
80442004-05-03 J. Brobecker <brobecker@gnat.com>
8045
8046 * dwarf2read.c (line_header): Add new included_p field in
8047 field file_names.
8048 (partial_die_info): New field has_stmt_list. New field line_offset.
8049 (dwarf2_create_include_psymtab): New function.
8050 (dwarf2_build_include_psymtabs): New function.
8051 (add_file_name): Add forward declaration. Initialize new field.
8052 (dwarf_decode_lines): Add new parameter. Enhance this procedure
8053 to be able to determine the list of files included by the
8054 given unit, and build their associated psymtabs.
8055 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
8056 files as well.
8057 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
8058 (read_file_scope): Update call to dwarf_decode_lines.
8059 (read_partial_die): Handle DW_AT_stmt_list attributes.
8060
c848556f
MC
80612004-05-02 Michael Chastain <mec.gnu@mindspring.com>
8062
8063 Unfix PR gdb/1626.
8064 * configure.in: Revert special case for osf5.*.
8065 * configure: Regenerate.
8066
eb4556d7
JB
80672004-05-02 Jim Blandy <jimb@redhat.com>
8068
8069 Move the symbol-file-from-memory functions into their own file.
8070 * symfile-mem.c, symfile-mem.h: New files.
8071 * symfile.c (symbol_file_add_from_bfd): New function.
8072 (symbol_file_add): Call symbol_file_add_from_bfd.
8073 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
8074 Moved to symfile-mem.c.
8075 (_initialize_symfile): Move definition of
8076 add-symbol-file-from-memory command to symfile-mem.c.
8077 * symfile.h (symbol_file_add_from_bfd): New declaration.
8078 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
8079 * config/powerpc/linux.mt (TDEPFILES): Same.
8080 * Makefile.in (SFILES): Add symfile-mem.c.
8081 (symfile_mem_h): New variable.
8082 (HFILES_NO_SRCDIR): Add symfile-mem.h.
8083 (symfile-mem.o): New rule.
8084
80bb239e
AC
80852004-05-01 Andrew Cagney <cagney@redhat.com>
8086
7789d0fa
AC
8087 * breakpoint.c (insert_bp_location): Use get_frame_id, and
8088 frame_find_by_id instead of frame_relative_level.
8089 (do_enable_breakpoint): Ditto.
8090 * thread.c: Update copyright.
8091 (info_threads_command): Ditto, simplify.
8092
80bb239e
AC
8093 * frame.c (deprecated_generic_get_saved_register): Delete
8094 function, moved to "xstormy16-tdep.c".
8095 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
8096 deprecated_generic_get_saved_register from "frame.c".
8097 (xstormy16_frame_saved_register): Call
8098 xstormy16_get_saved_register.
8099 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
8100 static.
8101 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
8102 * frame.h (deprecated_generic_get_saved_register): Delete.
8103
b2a871dd
MC
81042004-05-01 Michael Chastain <mec.gnu@mindspring.com>
8105
8106 * dwarfread.c: Update documentation on the state of dwarf-1.
8107
0e100dab
AC
81082004-05-01 Andrew Cagney <cagney@redhat.com>
8109
acd8056e
AC
8110 * stack.c (select_frame_command): Delete call to
8111 frame_relative_level.
8112 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
8113 Delete #if0 code.
8114 (frame_info): Do not print FRAMELESS.
8115 (print_block_frame_labels): Replace DEPRECATED_STREQ.
8116 (catch_info): Delete #if0 code.
8117
0e100dab
AC
8118 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
8119 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
8120 of frame_relative_level.
8121 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
8122 to SENTINEL_FRAME.
8123 * frame.h (enum frame_type): Add SENTINEL_FRAME.
8124 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
8125 frame_relative_level.
8126
55699d59
AC
8127 * frame.h (deprecated_set_frame_type): Delete declaration.
8128 * frame.c (deprecated_set_frame_type): Delete function, update
8129 comments.
8130
fcf70625
AC
8131 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
8132 * gdbarch.h, gdbarch.c: Re-generate.
8133 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
8134 (shnbsd_pc_in_sigtramp): Delete.
8135 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
8136 pc_in_sigtramp.
8137 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
8138 pc_in_sigtramp.
8139 * frame.h: Update comments.
8140 * ppc-linux-tdep.c: Update comments.
8141 * breakpoint.c (bpstat_what): Update comments.
8142
ac5eccb7
AC
8143 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
8144 m68klinux-tdep.o's dependencies, were previously added to
8145 m68klinux-nat.o.
8146
f2524b93
AC
8147 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
8148 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
8149 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
8150 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
8151 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
8152
17e20bce
AC
8153 * Makefile.in (m68klinux-nat.o): Update dependencies.
8154 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8155 (m68k_linux_sigtramp_frame_cache)
8156 (m68k_linux_sigtramp_frame_this_id)
8157 (m68k_linux_sigtramp_frame_prev_register)
8158 (m68k_linux_sigtramp_frame_unwind)
8159 (m68k_linux_sigtramp_frame_sniffer)
8160 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
8161 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
8162 names, use trad-frame.h.
8163 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
8164 (struct m68k_sigtramp_info): Delete.
8165 * m68k-tdep.c (m68k_sigtramp_frame_cache)
8166 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
8167 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
8168 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
8169 "m68klinux-tdep.c".
8170
c8864fa2
AC
8171 * infrun.c (check_sigtramp2): Delete check for
8172 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
8173
511dd2cd
MK
81742004-05-01 Mark Kettenis <kettenis@gnu.org>
8175
8176 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
8177
8c6b0e06
AC
81782004-05-01 Andrew Cagney <cagney@redhat.com>
8179
9df0bb3f
AC
8180 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8181 (frv_linux_sigtramp_frame_cache)
8182 (frv_linux_sigtramp_frame_this_id)
8183 (frv_linux_sigtramp_frame_prev_register)
8184 (frv_linux_sigtramp_frame_unwind)
8185 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
8186 include "linux" in function and variable names, directly call
8187 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
8188 the latest trad-frame code.
8189 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
8190 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
8191 * Makefile.in (frv-linux-tdep.o): Update dependencies.
8192 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
8193 * frv-tdep.c (frv_sigtramp_frame_cache)
8194 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
8195 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
8196 frv-linux-tdep.c.
8197 (frv_gdbarch_init): Do not append a sigtramp sniffer.
8198 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
8199 (frv_set_sigcontext_reg_addr): Delete function.
8200
8c6b0e06
AC
8201 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
8202 (DEPRECATED_SIGTRAMP_END): Delete.
8203 * gdbarch.h, gdbarch.c: Re-generate.
8204 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
8205 * config/vax/tm-vaxbsd.h: Update copyright.
8206 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8207 (DEPRECATED_IN_SIGTRAMP): Define.
8208 * config/m68k/tm-nbsd.h: Update copyright.
8209 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8210 (DEPRECATED_IN_SIGTRAMP): Define.
8211
50ea7769
MK
82122004-05-01 Mark Kettenis <kettenis@gnu.org>
8213
03ac2a74
MK
8214 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
8215 encondings. Fixes PR gdb/1628.
8216
50ea7769
MK
8217 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
8218 DW_CFA_restore state without a matching DW_CFA_remember_state
8219 instead of aborting. Fixes PR backtrace/1589.
8220
9a5d7be1
JB
82212004-04-30 Joel Brobecker <brobecker@gnat.com>
8222
8223 * MAINTAINERS: Add self as AIX maintainer.
8224 Update my e-mail address in write-after-approval section.
8225
2593d1cd
AC
82262004-04-30 Andrew Cagney <cagney@redhat.com>
8227
ce12bbf9
AC
8228 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
8229 (legacy_get_prev_frame): Ditto.
8230
36710c63
AC
8231 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
8232 (mips_gdbarch_init): Do not set pc_in_sigtramp.
8233 * mipsread.c (sigtramp_address): Delete extern variable.
8234 (mipscoff_new_init): Delete reference.
8235 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
8236 (fixup_sigtramp): Delete function.
8237 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
8238 (fixup_sigtramp): Delete declarations.
8239
2593d1cd
AC
8240 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
8241 deprecated_pc_in_sigtramp.
8242 (ppcnbsd_pc_in_sigtramp): Delete function.
8243
2a25f91c
MK
82442004-05-01 Mark Kettenis <kettenis@gnu.org>
8245
8246 * config/m68k/nm-nbsd.h: Tweak comments.
8247 * config/m68k/nm-nbsdaout.h: Likewise.
8248
0b281939
AC
82492004-04-30 Andrew Cagney <cagney@redhat.com>
8250
8251 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
8252 legacy_pc_in_sigtramp.
8253 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
8254
8f2d3ea0
MK
82552004-05-01 Mark Kettenis <kettenis@gnu.org>
8256
8257 Add OpenBSD/m68k support.
8258 * NEWS (New native configurations): Mention OpenBSD/m68k.
8259 * m68kbsd-tdep.c: New file.
8260 * m68kbsd-nat.c: New file.
8261 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
8262 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
8263 * configure.host: Add m68k-*-openbsd.
8264 * configure.tgt: Add m68k-*-openbsd.
8265 * config/m68k/tm-obsd.h: New file.
8266 * config/m68k/obsd.mt: New file.
8267 * config/m68k/obsd.mh: New file.
8268 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
8269 m68kbsd-tdep.c.
8270
c40f49a4
AC
82712004-04-30 Andrew Cagney <cagney@redhat.com>
8272
8273 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
8274 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
8275
e81554cd
MK
82762004-04-30 Mark Kettenis <kettenis@gnu.org>
8277
8278 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
8279 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
8280
d4dc1a91
BF
82812004-04-30 Brian Ford <ford@vss.fsi.com>
8282
8283 Revert 2004-04-16 change.
8284 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
8285 (i386_coff_init_abi): Remove.
8286 * i386-tdep.h (i386_coff_init_abi): Remove.
8287 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
8288
2f72f850
AC
82892004-04-30 Andrew Cagney <cagney@redhat.com>
8290
e492f9d6
AC
8291 * blockframe.c (find_pc_partial_function): Delete use of
8292 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
8293 DEPRECATED_SIGTRAMP_END.
8294
7b7adad0
AC
8295 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
8296 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
8297 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
8298 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
8299 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
8300
2f72f850
AC
8301 * defs.h (deprecated_inside_entry_file): Delete declaration.
8302 * blockframe.c (deprecated_inside_entry_file): Delete function.
8303 (legacy_frame_chain_valid): Delete call.
8304 * sh64-tdep.c (sh64_frame_chain): Delete call.
8305 * objfiles.h: Update comments.
8306 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
8307 call.
8308 * frame.c (get_prev_frame): Delete call, update comments.
8309
283f90a7
BF
83102004-04-30 Brian Ford <ford@vss.fsi.com>
8311
8312 * MAINTAINERS (Write After Approval): Add myself.
8313
8ee56bcf
AC
83142004-04-30 Andrew Cagney <cagney@redhat.com>
8315
8316 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
8317 * gdbarch.h, gdbarch.c: Re-generate.
8318 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
8319 code.
8320
ee27e1b6
AC
83212004-04-30 Andrew Cagney <cagney@redhat.com>
8322
8323 * gdb-events.sh (selected_thread_changed)
8324 (selected_frame_level_changed, target_changed): Delete.
8325 * gdb-events.h, gdb-events.c: Re-generate.
8326 * valops.c (value_assign): Update.
8327 * stack.c (select_frame_command, up_silently_base)
8328 (down_silently_base): Update.
8329
d5ac5a39
AC
83302004-04-29 Andrew Cagney <cagney@redhat.com>
8331
8332 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
8333 registers correctly.
8334 (print_gp_register_row, mips32_heuristic_proc_desc)
8335 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
8336 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
8337 references to mips_isa_regsize.
8338
ceae6e75
AC
83392004-04-29 Andrew Cagney <cagney@redhat.com>
8340
8341 * mips-tdep.c (struct gdbarch_tdep): Delete
8342 mips_fp_register_double.
8343 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
8344 mips_abi_regsize.
8345 (mips_gdbarch_init): Do not set mips_fp_register_double.
8346 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
8347
a587af0b
AC
83482004-04-29 Joel Brobecker <brobecker@gnat.com>
8349
8350 Committed by Andrew Cagney.
8351 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
8352 function calls.
8353
13326b4e
AC
83542004-04-29 Andrew Cagney <cagney@redhat.com>
8355
8356 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
8357 gdbarch, use mips_abi, update callers.
8358 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
8359 mips_abi_regsize, update callers.
8360 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
8361 mips_default_abi_regsize.
8362 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
8363 mips_default_abi_regsize.
8364
711cc5cd
AC
83652004-04-29 Andrew Cagney <cagney@redhat.com>
8366
1b13c4f6
AC
8367 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
8368 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
8369 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
8370 mips_default_abi_regsize.
8371 (mips_isa_regsize): Rename mips_regisze.
8372 * mipsnbsd-tdep.c: Update.
8373 * mips-linux-tdep.c: Update.
8374 * irix5-nat.c: Update.
8375 * mips-tdep.h (mips_isa_regsize): Update.
8376
711cc5cd
AC
8377 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
8378 Delete all disabled code.
8379 * gdb-events.h, gdb-events.c: Re-generate.
8380
e63bbc88
MK
83812004-04-19 Jerome Guitton <guitton@gnat.com>
8382 Mark Kettenis <kettenis@gnu.org>
8383
8384 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
8385 the function begins with a branch instruction.
8386
fd35795f
MK
83872004-04-29 Mark Kettenis <kettenis@gnu.org>
8388
8389 * i386-tdep.c: Fix spelling mistakes.
8390
c960c18f
AC
83912004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8392 Andrew Cagney <cagney@redhat.com>
8393
8394 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
8395 <sys/proc.h>.
8396 * acconfig.h: Provide default _KMEMUSER value.
8397 * config.in, configure: Re-generate.
8398 * NEWS: Mention fix.
8399
50306a9d
RC
84002004-04-24 Randolph Chung <tausq@debian.org>
8401
8402 * configure.host (hppa*-*-linux*): New target.
8403 * configure.tgt (hppa*-*-linux*): Likewise.
8404 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
8405 gdbarch_init_osabi() call earlier so that osabi-specific frame
8406 unwinders can be registered first.
8407 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
8408 hppa-linux-nat.c.
8409 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
8410 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
8411 * config/pa/linux.mh: New file.
8412 * config/pa/linux.mt: New file.
8413 * config/pa/nm-linux.h: New file.
8414 * config/pa/xm-linux.h: New file.
8415 * hppa-linux-nat.c: New file.
8416 * hppa-linux-tdep.c: New file.
8417
2a6228ef
RC
84182004-04-28 Randolph Chung <tausq@debian.org>
8419
8420 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
8421 return values.
8422 (hppa32_push_dummy_call): Fix small struct and floating point argument
8423 passing, and make sure the stack frame is properly aligned.
8424
82c10df6
AC
84252004-04-28 Andrew Cagney <cagney@redhat.com>
8426
d762c46a
AC
8427 * stack.c (print_stack_frame): Fix description.
8428
82c10df6
AC
8429 * NEWS: Mention gdb/gdbserver/configure execute permission
8430 changed. PR server/519.
8431
0faf0076
AC
84322004-04-28 Andrew Cagney <cagney@redhat.com>
8433
8434 * stack.c (print_stack_frame_stub): Delete declaration.
8435 (struct print_stack_frame_args, print_stack_frame)
8436 (print_frame_info, print_frame): Replace "source" with print what.
8437 Replace "print" with "print_level". Replace "args" with
8438 "print_args".
8439 * frame.h (show_and_print_stack_frame, print_stack_frame)
8440 (print_frame_info): Update declarations.
8441 * stack.c (select_and_print_frame, frame_command)
8442 (current_frame_command, up_command, down_command): Update calls -
8443 use get_selected_frame, pass "enum print_what" for source, do not
8444 call frame_relative_level.
8445 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
8446 * remote-rdp.c (remote_rdp_open): Ditto.
8447 * remote-mips.c (common_open): Ditto.
8448 * remote-e7000.c (e7000_start_remote): Ditto.
8449 * ocd.c (ocd_start_remote): Ditto.
8450 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
8451 * infrun.c (normal_stop): Ditto.
8452 * inflow.c (kill_command): Ditto.
8453 * infcmd.c (finish_command): Ditto.
8454 * corelow.c (core_open): Ditto.
8455 * tracepoint.c (finish_tfind_command): Ditto.
8456 * thread.c (info_threads_command, info_threads_command)
8457 (restore_current_thread, do_captured_thread_select): Ditto.
8458 * ada-tasks.c (task_command): Ditto.
8459
f4c5303c
OF
84602004-04-26 Orjan Friberg <orjanf@axis.com>
8461
8462 * frame.c: Include "observer.h".
8463 (frame_observer_target_changed): New function.
8464 (_initialize_frame): Attach target_changed observer.
8465 * regcache.c: Include "observer.h".
8466 (regcache_observer_target_changed): New function.
8467 (_initialize_regcache): Attach target_changed observer.
8468 * valops.c: Include "observer.h".
8469 (value_assign): Notify target_changed event when modifying register.
8470 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
8471
7270d8f2
OF
84722004-04-26 Orjan Friberg <orjanf@axis.com>
8473
8474 From Paul Koning <pkoning@equallogic.com>:
8475 * breakpoint.c (free_valchain): New function.
8476 (insert_bp_location, delete_breakpoint): Use free_valchain.
8477 (remove_breakpoint): Do not remove the valchain.
8478 (bpstat_stop_status): If not stopped by watchpoint, skip
8479 watchpoints when generating stop status list.
8480 * infrun.c (handle_inferior_event): Make
8481 stepped_after_stopped_by_watchpoint a global variable.
8482 * remote.c (remote_stopped_data_address): Return watch data
8483 address rather than zero if stepped_after_stopped_by_watchpoint is
8484 set.
8485
02d62932
MC
84862004-04-25 Michael Chastain <mec.gnu@mindspring.com>
8487
8488 Fix PR gdb/1626.
8489 * configure.in: Check for curses after termcap.
8490 On osf5.*, do not check for ncurses.
8491 * configure: Regenerate.
8492
3e9a183c
MK
84932004-04-25 Mark Kettenis <kettenis@gnu.org>
8494
c79ac407
MK
8495 * ppcobsd-nat.c: Include "ppc-tdep.h".
8496 * Makefile.in (ppcobsd-nat.o): Update dependencies.
8497
3e9a183c
MK
8498 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
8499 Fixes PR tdep/1623 and PR tdep/1624.
8500
38cc9c28
MC
85012004-04-24 Michael Chastain <mec.gnu@mindspring.com>
8502
8503 * xmodem.h, xmodem.c: Remove files.
8504 * Makefile.in: Remove references to xmodem.h, xmodem.c.
8505
7f07c5b6
RC
85062004-04-23 Randolph Chung <tausq@debian.org>
8507
8508 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
8509 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
8510 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
8511 for handling stackless frames.
8512 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
8513
9f7194c3
RC
85142004-04-23 Randolph Chung <tausq@debian.org>
8515
8516 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
8517 starts at a pc before the frame is created.
8518
dcff6009
JB
85192004-04-23 Joel Brobecker <brobecker@gnat.com>
8520
8521 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
8522
40711ff1 85232004-04-23 Jerome Guitton <guitton@gnat.com>
65951cd9
JG
8524
8525 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
8526 use convert_typed_floating to get the appropriate format.
8527
abc485a1
RC
85282004-04-22 Randolph Chung <tausq@debian.org>
8529
8530 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
8531 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
8532 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
8533 (hppa_sign_extend): Add prototype.
8534 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
8535 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
8536 (sign_extend): Rename with hppa_ prefix and make non-static. Other
8537 hppa targets will also use these functions.
8538 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
8539 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
8540 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
8541 (hppa_gdbarch_init): Remove gdbarch setting of
8542 skip_trampoline_code, in_solib_call_trampoline and
8543 in_solib_return_trampoline.
8544 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
8545 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
8546 hppa_in_solib_call_trampoline.
8547 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
8548 Moved from hppa-tdep.c.
8549 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
8550 in_solib_call_trampoline and in_solib_return_trampoline.
8551
369aa520
RC
85522004-04-22 Randolph Chung <tausq@debian.org>
8553
8554 * hppa-tdep.c (hppa_debug): New variable.
8555 (find_unwind_entry, hppa_frame_cache): Add debug output.
8556 (_initialize_hppa_tdep): Add command to set debug flag.
8557
476be15e
AC
85582004-04-22 Andrew Cagney <cagney@redhat.com>
8559
8560 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
8561 "trad-frame.h".
8562 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
8563 signal trampoline unwinder.
8564 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
8565
d195bc9f
MK
85662004-04-22 Mark Kettenis <kettenis@gnu.org>
8567
8568 Add OpenBSD/powerpc support.
8569 * NEWS (New native configurations): Mention OpenBSD/powerpc.
8570 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
8571 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
8572 (ppc_collect_fpregset): New prototypes.
8573 * ppcobsd-nat.c: New file.
8574 * ppcobsd-tdep.c: New file.
8575 * ppcobsd-tdep.h: New file.
8576 * rs6000-tdep.c: Include "regset.h".
8577 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
8578 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
8579 New functions.
8580 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
8581 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
8582 (rs6000-tdep.o): Update dependencies.
8583 * configure.host: Add powerpc-*-openbsd.
8584 * configure.tgt: Add powerpc-*-openbsd.
8585 * config/powerpc/obsd.mh: New file.
8586 * config/powerpc/nm-obsd.h: New file.
8587 * config/powerpc/obsd.mt: New file.
8588
6f14cc33
AC
85892004-04-22 Andrew Cagney <cagney@redhat.com>
8590
fcf29e5f
AC
8591 * frame.h (show_frame_info): Delete declaration.
8592
6f14cc33
AC
8593 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
8594 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
8595 * m32r-tdep.c (m32r_frame_this_id): Ditto.
8596 * frv-tdep.c (frv_frame_this_id): Ditto.
8597 * avr-tdep.c (avr_frame_this_id): Ditto.
8598
e5786a5c
EZ
85992004-04-22 Elena Zannoni <ezannoni@redhat.com>
8600
8601 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
8602
26e75e5c
JB
86032004-04-22 Jim Blandy <jimb@redhat.com>
8604
8605 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
8606 register number zero.
8607
d8d65dd3
MS
86082004-04-21 Michael Snyder <msnyder@redhat.com>
8609
8610 * mips-tdep.c (heuristic_proc_start):
8611 Warning() already prefixes "Warning: ".
8612
9a4105ab
AC
86132004-04-21 Andrew Cagney <cagney@redhat.com>
8614
8615 * annotate.h (deprecated_annotate_starting_hook)
8616 (deprecated_annotate_stopped_hook)
8617 (deprecated_annotate_exited_hook)
8618 (deprecated_annotate_signal_hook)
8619 (deprecated_annotate_signalled_hook): Deprecate.
8620 * tracepoint.h (deprecated_create_tracepoint_hook)
8621 (deprecated_delete_tracepoint_hook)
8622 (deprecated_modify_tracepoint_hook)
8623 (deprecated_trace_find_hook)
8624 (deprecated_trace_start_stop_hook): Deprecate.
8625 * target.h (deprecated_target_new_objfile_hook): Deprecate.
8626 * remote.h (deprecated_target_resume_hook)
8627 (deprecated_target_wait_loop_hook): Deprecate.
8628 * gdbcore.h (deprecated_exec_file_display_hook)
8629 (deprecated_file_changed_hook): Deprecate.
8630 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
8631 * defs.h (deprecated_modify_breakpoint_hook)
8632 (deprecated_command_loop_hook, deprecated_show_load_progress)
8633 (deprecated_print_frame_info_listing_hook)
8634 (deprecated_query_hook, deprecated_warning_hook)
8635 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
8636 (deprecated_delete_breakpoint_hook)
8637 (deprecated_interactive_hook, deprecated_registers_changed_hook)
8638 (deprecated_readline_begin_hook, deprecated_readline_hook)
8639 (deprecated_readline_end_hook, deprecated_register_changed_hook)
8640 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
8641 (deprecated_context_hook, deprecated_target_wait_hook)
8642 (deprecated_attach_hook, deprecated_detach_hook)
8643 (deprecated_call_command_hook, deprecated_set_hook)
8644 (deprecated_error_hook, deprecated_error_begin_hook)
8645 (deprecated_ui_load_progress_hook): Deprecate.
8646 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
8647 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
8648 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
8649 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
8650 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
8651 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
8652 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
8653 * annotate.c, aix-thread.c: Update.
8654
62cf13cc
AC
86552004-04-21 Andrew Cagney <cagney@redhat.com>
8656
b2e31a62
AC
8657 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
8658 * vaxnbsd-tdep.c: Include "gdb_string.h".
8659
62cf13cc
AC
8660 * symfile.c (symbol_file_add_from_memory): #if 0 function.
8661 (add_symbol_file_from_memory_command): #if 0 function body, call
8662 error instead.
8663
00e32a35
AC
86642004-04-21 Andrew Cagney <cagney@redhat.com>
8665
8666 * gdbcore.h: Update copyright.
8667 (deprecated_add_core_fns): Rename add_core_fns.
8668 * win32-nat.c (_initialize_core_win32): Update.
8669 * sun3-nat.c (_initialize_core_sun3): Update.
8670 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
8671 * rs6000-nat.c (_initialize_core_rs6000): Update.
8672 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
8673 * nto-tdep.c (_initialize_nto_tdep): Update.
8674 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
8675 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
8676 * mips-nat.c (_initialize_core_mips): Update.
8677 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
8678 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
8679 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
8680 * lynx-nat.c (_initialize_core_lynx): Update.
8681 * irix5-nat.c (_initialize_core_irix5): Update.
8682 * i386-interix-nat.c (_initialize_core_interix): Update.
8683 * cris-tdep.c (_initialize_cris_tdep): Update.
8684 * corelow.c (deprecated_add_core_fns): Update.
8685 * core-regset.c (_initialize_core_regset): Update.
8686 * core-aout.c (_initialize_core_aout): Update.
8687 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
8688 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
8689 * alpha-nat.c (_initialize_core_alpha): Update.
8690
13c7b1ca
JB
86912004-04-21 Jim Blandy <jimb@redhat.com>
8692
8693 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
8694
7b5a2f43
DJ
86952004-04-19 Daniel Jacobowitz <drow@mvista.com>
8696
8697 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
8698 Delete.
8699 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
8700 (read_attribute_value): Update calls to dwarf_alloc_block.
8701 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
8702 dwarf2_tmp_obstack.
8703 (psymtab_to_symtab_1): Likewise. Clean up using
8704 free_stack_comp_unit.
8705 (add_to_cu_func_list): Use the comp_unit_obstack.
8706
05cf31d1
JB
87072004-04-19 Joel Brobecker <brobecker@gnat.com>
8708
8709 * dwarf2read.c (dwarf2_flag_true_p): New function.
8710 (die_is_declaration): Use the function above. Add some comments.
8711
adf93a2f
MK
87122004-04-19 Mark Kettenis <kettenis@gnu.org>
8713
8714 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
8715 architecture when registering sparcnbsd_core_osabi_sniffer.
8716 Adjust comment.
8717
748894bf
MK
87182004-04-18 Mark Kettenis <kettenis@gnu.org>
8719
f622ad42
MK
8720 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
8721 return value.
8722
c4fc7f1b
MK
8723 Based on a patch from Brian Ford <ford@vss.fsi.com>:
8724 * i386-tdep.c: Correct register numbering scheme comments
8725 throughout.
8726 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
8727 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
8728 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
8729 (i386_gdb_arch_init): Likewise.
8730
b4ead1bd
MK
8731 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
8732 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
8733 ppcnbsd-tdep.o.
8734
748894bf
MK
8735 * m68k-tdep.h: Tweak comments.
8736 * m68k-tdep.c: Tweak comment.
8737
fdd72f95
RC
87382004-04-17 Randolph Chung <tausq@debian.org>
8739
8740 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
8741 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
8742 (hppa_hpux_som_init_abi): Set is_elf to 0.
8743 (hppa_hpux_elf_init_abi): Set is_elf to 1.
8744 * hppa-tdep.c (low_text_segment_address): Remove global.
8745 (record_text_segment_lowaddr): Pass in low address as parameter. Use
8746 section offset to calculate segment address.
8747 (internalize_unwinds): Define low_text_segment_address as local and
8748 pass to record_text_segment_lowaddr for ELF targets.
8749 (hppa_gdbarch_init): Zero fill tdep structure.
8750 (hppa_dump_tdep): Print tdep structure.
8751 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
8752
0f8d9d59
RC
87532004-04-17 Randolph Chung <tausq@debian.org>
8754
8755 * hppa-tdep.c (hppa_pseudo_register_read): Define.
8756 (hppa_gdbarch_init): Set pseudo_register_read.
8757 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
8758 * regcache.c (supply_register): Remove check for
8759 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
8760
7c46b9fb
RC
87612004-04-17 Randolph Chung <tausq@debian.org>
8762
8763 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
8764 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
8765 (hpread_adjust_stack_address): Move to hpread.c.
8766 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
8767 obj_private_struct): Move from tm-hppa.h.
8768 * hpread.c (hppa-tdep.h): Include.
8769 (hpread_adjust_stack_address): Move from hppa-tdep.c.
8770 (hpread_read_function_type, hpread_read_doc_function_type)
8771 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
8772 directly.
8773 * pa64solib.c (hppa-tdep.h): Include.
8774 * somsolib.c (hppa-tdep.h): Include.
8775 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
8776 inferior_status): Remove unused forward declarations.
8777 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
8778 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
8779 obj_private_struct): Move to hppa-tdep.h.
8780 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
8781
8d153463
RC
87822004-04-17 Randolph Chung <tausq@debian.org>
8783
8784 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
8785 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
8786 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
8787 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
8788 Remove forward declaration and make static.
8789 (hppa_reg_struct_has_addr): Remove.
8790
350c2e5b
JB
87912004-04-16 Joel Brobecker <brobecker@gnat.com>
8792
8793 * observer.sh: Move comments in sed command to first column.
8794
bbde78fa
JM
87952004-04-16 Jason Molenda (jmolenda@apple.com)
8796
8797 * frame.c: Minor typeo corrections in comments.
8798
e0270fd9
JB
87992004-04-16 Joel Brobecker <brobecker@gnat.com>
8800
8801 * observer.c (observer_test_first_notification_function): Update
8802 function profile.
8803 (observer_test_second_notification_function): Likewise.
8804 (observer_test_third_notification_function): Likewise.
8805
3d049254
MK
88062004-04-16 Mark Kettenis <kettenis@gnu.org>
8807
8808 From Brian Ford <ford@vss.fsi.com>:
8809 * i386-tdep.c (i386_coff_init_abi): New function.
8810 * i386-tdep.h (i386_coff_init_abi): New prototype.
8811 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
8812 register number translation functions for DWARF and DWARF 2.
8813
7867684d
JB
88142004-04-16 Joel Brobecker <brobecker@gnat.com>
8815
8816 * dwarf2read.c: Back out my previous change, it was incorrect.
8817
72bf9492
DJ
88182004-04-16 Daniel Jacobowitz <drow@mvista.com>
8819
8820 * dwarf2read.c: Include "hashtab.h".
8821 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
8822 has_namespace_info.
8823 (struct partial_die_info): Add comments. Use bitfields to reduce
8824 memory footprint. Add scope, scope_set, has_specification,
8825 spec_offset, die_parent, die_child, and die_sibling.
8826 (peek_die_abbrev): Add prototype.
8827 (partial_read_comp_unit_head): New function, broken out from
8828 dwarf2_build_psymtabs_hard.
8829 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
8830 Use partial_read_comp_unit_head. Initialize the CU and
8831 comp_unit_obstack. Update calls to read_partial_die and
8832 scan_partial_symbols. Use free_stack_comp_unit and
8833 load_partial_dies.
8834 (scan_partial_symbols): Change PDI to a pointer. Use the child and
8835 sibling pointers to walk partial DIEs. Call fixup_partial_die.
8836 Update calls to helper functions. Remove NAMESPACE argument.
8837 Update comments.
8838 (partial_die_parent_scope, partial_die_full_name): New functions.
8839 (add_partial_symbol): Remove namespace argument. Update call to
8840 pdi_needs_namespace. Use partial_die_full_name. Handle
8841 DW_TAG_namespace. Check has_namespace_info flag.
8842 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
8843 tag. Handle namespaces.
8844 (add_partial_namespace, add_partial_enumeration): Simplify.
8845 (guess_structure_name): New function, derived from
8846 add_partial_structure.
8847 (add_partial_structure): Remove.
8848 (determine_class_name): Update comment.
8849 (dwarf2_read_abbrevs): Set has_namespace_info flag.
8850 (is_type_tag_for_partial, load_partial_dies): New functions.
8851 (read_partial_die): Pass abbrev and abbrev_len as arguments.
8852 Record specifications instead of following them immediately.
8853 (find_partial_die_in_comp_unit, find_partial_die)
8854 (fixup_partial_die, free_stack_comp_unit)
8855 (hashtab_obstack_allocate, dummy_obstack_deallocate)
8856 (partial_die_hash, partial_die_eq): New functions.
8857 * Makefile.in (hashtab_h): Define.
8858 (dwarf2read.o): Update dependencies.
8859 (observer_inc, observer_h): Move to the correct section.
8860
fdc860a3
JB
88612004-04-15 Joel Brobecker <brobecker@gnat.com>
8862
8863 * dwarf2read.c (dwarf2_attribute_true_p): New function.
8864 (die_is_declaration): Use the function above. Add comment.
8865
dc718098
JB
88662004-04-15 Joel Brobecker <brobecker@gnat.com>
8867
8868 * dwarf2read.c (read_structure_scope): Identify stub types
8869 using die_is_declaration() only.
8870
8718a420
RM
88712004-04-15 Roland McGrath <roland@redhat.com>
8872
8873 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
8874 argument instead of NAME.
8875 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
8876 in call to symbol_file_add_with_addrs_or_offsets.
8877 (build_addr_info): New function, helper for ...
8878 (symbol_file_add_from_memory): New function.
8879 (add_symbol_file_from_memory_command): New function using that.
8880 (_initialize_symfile): Register it for add-symbol-file-from-memory.
8881 (pre_add_symbol_hook): Add const to argument type.
8882 * symfile.h (symbol_file_add_from_memory): Declare it.
8883
8b910bab
MK
88842004-04-15 Mark Kettenis <kettenis@gnu.org>
8885
9f076e7a
MK
8886 * NEWS (New native configurations): Mention OpenBSD/vax.
8887 * configure.host: Add vax-*-openbsd*.
8888 * config/vax/obsd.mh: New file.
8889 * config/vax/nm-obsd.h: New file.
8890
8b910bab
MK
8891 * vax-tdep.c: Include "regset.h".
8892 (vax_supply_gregset): New function.
8893 (vax_gregset): New variable.
8894 (vax_regset_from_core_section): New function.
8895 (vax_gdbarch_init): Set regset_from_core_section.
8896 * Makefile.in (vax-tdep.o): Update dependencies.
8897
7a464420
AC
88982004-04-15 Andrew Cagney <cagney@redhat.com>
8899
8900 * observer.c (normal_stop_subject, observer_notify_normal_stop)
8901 (observer_normal_stop_notification_stub)
8902 (observer_attach_normal_stop, observer_detach_normal_stop):
8903 Delete, replaced by #include "observer.inc".
8904 * infrun.c (normal_stop): Pass "stop_bpstat" to
8905 observer_notify_normal_stop.
8906 * Makefile.in (observer_inc): Define.
8907 (observer.o): Update dependencies.
8908 (observer.h, observer.inc): New rules.
8909 * observer.h: Delete file.
8910 * observer.sh: New file.
8911
e36ad527
MK
89122004-04-15 Mark Kettenis <kettenis@gnu.org>
8913
8914 * vax-tdep.c (vax_frame_cache): Fix typo.
8915
67b441e1
MK
89162004-04-14 Mark Kettenis <kettenis@gnu.org>
8917
6f606e1c
MK
8918 * NEWS (New native configurations): Mention NetBSD/vax.
8919 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
8920 * config/vax/nbsdelf.mh: New file.
8921 * config/vax/nbsdaout.mh: New file.
8922 * config/vax/nm-nbsd.h: New file.
8923 * config/vax/nm-nbsdaout.h: New file.
8924
9c5519a5
MK
8925 * vaxnbsd-tdep.c: New file.
8926 * Makefile.in (vaxnbsd-tdep.o): New dependency.
8927 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
8928 * config/vax/nbsd.mt: New file.
8929 * config/vax/tm-nbsd.h: New file.
8930
4844a614
MK
8931 * Makefile.in (vaxbsd-nat.o): New dependency.
8932
67b441e1
MK
8933 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
8934 * vax-tdep.c (vax_store_arguments): Remove struct_return and
8935 struct_addr arguments. Don't push return value address.
8936 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
8937 arguments to vax_store_arguments. Store return value address in
8938 R1.
8939 (vax_store_struct_return, vax_extract_return_value)
8940 (vax_store_return_value): Remove functions.
8941 (vax_return_value): New function.
8942 (vax_gdbarch_init): Set return value. Don't set
8943 deprecated_store_struct_return, deprecated_extract_struct_return
8944 and deprecated_store_return_value.
8945
6672f2ae
AS
89462004-04-14 Andreas Schwab <schwab@suse.de>
8947
8948 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
8949 value buffer.
8950 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
8951
7346c184
MK
89522004-04-14 Mark Kettenis <kettenis@gnu.org>
8953
8954 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
8955 (vax_unwind_dummy_id): New functions.
8956 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
8957 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
8958 variables.
8959 (vax_fix_call_dummy): Remove function.
8960 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
8961 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
8962 call_dummy_location, deprecated_call_dummy_words,
8963 deprecated_sizeof_call_dummy_words,
8964 deprecated_call_dummy_breakpoint_offset,
8965 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
8966 and deprecated_dummy_write_sp.
8967
58e23df4
DC
89682004-04-13 David Carlton <carlton@kealia.com>
8969
8970 * MAINTAINERS: Move myself to "paper trail" section.
8971
5e6b39ff
MK
89722004-04-12 Mark Kettenis <kettenis@gnu.org>
8973
7def7fef
MK
8974 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
8975 "trad-frame.h".
8976 (vax_frame_init_saved_regs): Remove function.
8977 (vax_sigtramp_saved_pc): Remove function.
8978 (vax_frame_saved_pc): Remove function.
8979 (vax_frame_args_address): Remove function.
8980 (vax_frame_num_args): Rewrite.
8981 (vax_frame_chain): Remove function.
8982 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
8983 VAX_FP_REGNUM.
8984 (vax_pop_frame): Likewise.
8985 (vax_saved_pc_after_call): Remove function.
8986 (struct vax_frame_cache): New structure.
8987 (vax_frame_cache): New function.
8988 (vax_frame_this_id): New function.
8989 (vax_frame_prev_register): New function.
8990 (vax_frame_unwind): New variable.
8991 (vax_frame_sniffer): New function.
8992 (vax_frame_base_address): New function.
8993 (vax_frame_args_address): New function.
8994 (vax_frame_base): New variable.
8995 (vax_unwind_pc): New function.
8996 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
8997 deprecated_fp_regnum, deprecated_saved_pc_after_call,
8998 deprecated_frame_chain, deprecated_frame_saved_pc,
8999 deprecated_frame_args_address and
9000 deprecated_frame_init_saved_regs.
9001 * Makefile.in (vax-tdep.o): Update dependencies.
9002
53284fc1
MK
9003 * vaxbsd-nat.c: New file.
9004
5e6b39ff
MK
9005 * vax-tdep.h: Update copyright year. Adjust comments.
9006 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
9007 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
9008 (vax_regnum): New enum. Replacing...
9009 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
9010 (VAX_PS_REGNUM): ... these removed macros.
9011 * vax-tdep.c (vax_register_name): Remove prototype.
9012 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
9013 (vax_register_byte, vax_register_raw_size,
9014 vax_register_virtual_size, vax_register_virtual_type): Remove
9015 functions.
9016 (vax_register_type): New function.
9017 (vax_breakpoint_from_pc): Reorganize.
9018 (vax_gdbarch_init): Set register_type. Don't set
9019 deprecated_register_size, deprecated_register_bytes,
9020 deprecated_register_byte, deprecated_register_raw_size,
9021 deprecated_max_register_raw_size,
9022 deprecated_register_virtual_size,
9023 deprecated_max_register_virtual_size and
9024 deprecated_register_virtual_type. Add comment on stack direction.
9025
e9c71e9f
MK
90262004-04-11 Mark Kettenis <kettenis@gnu.org>
9027
9028 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
9029 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
296bc76f 9030 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
e9c71e9f 9031
d46f1176 90322004-04-10 Randolph Chung <tausq@debian.org>
8718a420 9033
d46f1176
RC
9034 * MAINTAINERS (write after approval): Add myself.
9035
a2a84a72
RC
90362004-04-07 Randolph Chung <tausq@debian.org>
9037
9038 * hppa-tdep.c (hppa_inner_than): Remove.
9039 (is_pa_2): Remove unused static variable.
8718a420 9040 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
a2a84a72 9041
e85c3284
PH
90422004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
9043
9044 * language.h (language_defn): Add new la_post_parser field.
9045 * parser-defs.h (null_post_parser): New declaration (default for
9046 la_post_parser).
8718a420 9047
e85c3284
PH
9048 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
9049 insert call to that function.
9050 (parse_exp_in_context): New function, including code formerly in
8718a420 9051 parse_exp_1. Calls language-dependent post-parser after
e85c3284
PH
9052 prefixification.
9053 (parse_expression_in_context): New exported function.
9054 (null_post_parser): New definition.
9055 * expression.h (parse_expression_in_context): Add declaration.
8718a420 9056
e85c3284
PH
9057 * p-lang.c (pascal_language_defn): Add trivial post-parser.
9058 * c-lang.c (c_language_defn): Ditto.
9059 (cplus_language_defn): Ditto.
9060 (asm_language_defn): Ditto.
9061 (minimal_language_defn): Ditto.
9062 * f-lang.c (f_language_defn): Ditto.
9063 * jv-lang.c (java_language_defn): Ditto.
9064 * language.c (unknown_language_defn): Ditto.
9065 (auto_language_defn): Ditto.
9066 (local_language_defn): Ditto.
9067 * m2-lang.c (m2_language_defn): Ditto.
9068 * scm-lang.c (scm_language_defn): Ditto.
9069 * obj-lang.c (objc_language_defn): Ditto.
8718a420 9070
d9f8c85b
MK
90712004-04-10 Mark Kettenis <kettenis@gnu.org>
9072
fa34704a
MK
9073 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
9074 (amd64nbsd_mcontext_addr): New function.
9075 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
9076 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
9077 with amd64nbsd_r_reg_offset, instead of building it on the fly.
9078
403e1656
MK
9079 * corelow.c (core_xfer_partial): Fix coding standards violation.
9080 Add support for TARGET_OBJECT_WCOOKIE.
9081
a57e5a95
MK
9082 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
9083 deprecated_pc_in_sigtramp.
9084 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
9085 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
9086 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
9087 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
9088 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
9089 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
9090 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
9091
377d9ebd
MK
9092 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
9093 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
9094 Fix typo.
9095
f0ef85a5
MK
9096 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
9097 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
9098 (amd64_collect_fxsave): Likewise.
9099
d9f8c85b
MK
9100 * i386-sol2-tdep.c: Include "gdb_string.h".
9101 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
9102 name.
9103 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
9104
75f501b5
MK
91052004-04-10 Mark Kettenis <kettenis@gnu.org>
9106
9107 * i386-sol2-tdep.c: Include "solib-svr4.h".
9108 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9109 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
9110 * config/i386/tm-i386sol2.h: Include :solib.h".
9111 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
9112 solib-svr4.o and solib-legacy.o.
9113 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
9114 solib-svr4.o.
9115
b31bc724
MK
91162004-04-09 Mark Kettenis <kettenis@gnu.org>
9117
18bbbd9e
MK
9118 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
9119 whether a register is supplied by PTRACE_GETFPREGS.
9120 (store_inferior_registers): Likewise.
9121 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
9122 whether a register is supplied by PT_GETFPREGS.
9123 (store_inferior_registers): Likewise.
9124
3c30bf1b
MK
9125 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
9126 * config/i386/linux64.mt (TDEPFILES): Likewise.
9127
a4194092
MK
9128 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
9129
911bc6ee
MK
9130 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
9131 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
9132 the program counter is in the range specified by `struct
9133 gdbarch_tdep'.
9134 * amd64-linux-tdep.c: Include "symtab.h".
9135 (amd64_linux_pc_in_sigtramp): Remove function.
9136 (amd64_linux_sigtramp_p): New function.
9137 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
9138 deprecated_pc_in_sigtramp.
9139 * amd64nbsd-tdep.c: Include "symtab.h".
9140 (amd64nbsd_sigtramp_p): New function.
9141 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
9142 deprecated_pc_in_sigtramp.
9143 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
9144 few comments.
9145 (amd64obsd_pc_in_sigtramp): Remove function.
9146 (amd64obsd_sigtramp_p): New function.
9147 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
9148 deprecated_pc_in_sigtramp.
9149 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
9150 (i386bsd_pc_ins_sigtramp): Remove prototype.
9151 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
9152 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
9153 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
9154 the program counter is in the range specified by `struct
9155 gdbarch_tdep'.
9156 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
9157 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
9158 (i386_go32_pc_in_sigtramp): Remove function.
9159 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
9160 Initialize TDEP->sigtramp_p.
9161 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
9162 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
9163 deprecated_pc_in_sigtramp.
9164 * i386-linux-tdep.c: Adjust comments.
9165 (i386_linux_pc_in_sigtramp): Remove function.
9166 (i386_linux_sigtramp_p): New function.
9167 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
9168 deprecated_pc_in_sigtramp.
9169 * i386-nto-tdep.c: Update copyright year.
9170 (i386nto_pc_in_sigtramp): Remove function.
9171 (i386nto_sigtramp_p): New function.
9172 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
9173 SP_REGNUM.
9174 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
9175 deprecated_pc_in_sigtramp.
9176 * i386-sol2-tdep.c: Update copyright year.
9177 (i386_sol2_pc_in_sigtramp): Remove function.
9178 (i386_sol2_sigtramp_p): New function.
9179 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
9180 deprecated_pc_in_sigtramp.
9181 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
9182 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
9183 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9184 deprecated_sigtramp_start and deprecated_sigtramp_end.
9185 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
9186 (i386nbsd_pc_in_sigtramp): Remove function.
9187 (i386nbsd_sigtramp_p): New function.
9188 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9189 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
9190 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
9191 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
9192 (i386obsd_pc_in_sigtramp): Remove function.
9193 (i386obsd_sigtramp_p): New function.
9194 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
9195 functions.
9196 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9197 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
9198 TDEP->sigtramp_p.
9199 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
9200 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
9201 dependencies.
9202
e083e6ec
MK
9203 * config/i386/i386aout.mt: Remove file.
9204
bd153b94
MK
9205 * configure.tgt: Remove i[34567]86-*-go32*,
9206 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
9207 and i[34567]86-*-isc*. Set gdb_target to i386 for
9208 i[34567]86-*-netware* and i[34567]86-*-*.
9209 * config/i386/i386.mt: New file.
9210 * config/i386/embed.mt: Remove file.
9211 * config/i386/go32.mt: Remove file.
9212 * config/i386/i386nw.mt: Remove file.
9213 * config/i386/i386v.mt: Remove file.
9214 * config/i386/tm-go32.h: Remove file.
9215
4a1bcc8c
MK
9216 * tui/tui-hooks.c: Include "readline/readline.h" after
9217 "gdb_curses.h" instead of before.
9218 * tui/tui-io.c: Likewise.
9219
f9a79064
MK
9220 * tui/tui.c: Fix typo in comment.
9221
b31bc724
MK
9222 * sparc64-tdep.c (sparc_address_from_register): Remove function.
9223
f83f82bc
AC
92242004-04-08 Andrew Cagney <cagney@redhat.com>
9225
9226 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
9227 (deprecated_exception_support_initialized): Declare.
8718a420 9228 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
f83f82bc
AC
9229 (initialize_hp_cxx_exception_support)
9230 (child_enable_exception_callback): Update.
9231 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
9232 (deprecated_exception_support_initialized): Rename
9233 deprecated_exception_catchpoints_are_fragile and
9234 deprecated_exception_support_initialized.
9235 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
9236
9237 * symtab.c (deprecated_hp_som_som_object_present): Rename
9238 hp_som_som_object_present.
9239 * symtab.h (deprecated_hp_som_som_object_present): Declare.
9240 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
9241 Update. Delete extern declaration.
9242 * valops.c (hp_som_som_object_present): Ditto.
8718a420 9243 * parse.c (deprecated_hp_som_som_object_present)
f83f82bc
AC
9244 (parse_nested_classes_for_hpacc): Ditto.
9245 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
8718a420 9246 * hppa-hpux-tdep.c (hp_som_som_object_present)
f83f82bc
AC
9247 (initialize_hp_cxx_exception_support): Ditto.
9248 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
8718a420 9249 * cp-valprint.c (hp_som_som_object_present)
f83f82bc 9250 (cp_print_class_method): Ditto.
8718a420 9251 * c-typeprint.c (hp_som_som_object_present):
f83f82bc
AC
9252 (c_type_print_base): Ditto.
9253 * c-exp.y (hp_som_som_object_present): Ditto.
9254
fb2be677
AC
92552004-04-08 Andrew Cagney <cagney@redhat.com>
9256
9257 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
9258 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
9259 (frame_unwind_find_by_frame): Re-implement the unwind code so
9260 that it can both prepend and append sniffers. Replace
9261 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
9262 * tramp-frame.c (tramp_frame_append): Use
9263 frame_unwind_prepend_unwinder.
9264 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
9265 frame_unwind_register_unwinder.
9266 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
9267 tramp_frame_append.
9268 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
8718a420 9269 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
fb2be677
AC
9270 (mips_linux_init_abi): Update.
9271
67faf007
KB
92722004-04-08 Kevin Buettner <kevinb@redhat.com>
9273
9274 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
9275 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
9276 file support.
9277
8973ff21
KB
92782004-04-07 Kevin Buettner <kevinb@redhat.com>
9279
9280 * ia64-tdep.c (elf.h): Don't include.
9281 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
9282
4a0e2f88
JM
92832004-04-07 Jason Molenda (jmolenda@apple.com)
9284
9285 * frame.h: Typeo corrections in comments.
9286
9872ad24
JB
92872004-04-07 Jim Blandy <jimb@redhat.com>
9288
9289 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
9290 %esp and %ebp
9291
70b216c8
MK
92922004-04-07 Mark Kettenis <kettenis@gnu.org>
9293
11d5789c
MK
9294 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
9295 * config/sparc/linux64.mt (TDEPFILES): Likewise.
9296 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
9297 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
9298 and solib-legacy.o.
9299 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
9300 solib-svr4.o.
9301 * config/sparc/tm-sol2.h: Update copyright year. Include
9302 "solib.h".
9303
70b216c8
MK
9304 * sparc-sol2-tdep.c: Update copyright year. Include
9305 "solib-svr4.h".
9306 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9307 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
9308 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
096f864c 9309 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
70b216c8
MK
9310 dependencies.
9311
6339dc9e
AC
93122004-04-06 Andrew Cagney <cagney@redhat.com>
9313
9314 * infttrace.c: Include "infttrace.h".
9315 * infttrace.h: Include "target.h".
9316 * Makefile.in (infttrace_h): Update.
9317 (infttrace.o): Update.
8718a420 9318
93449403
AC
93192004-04-06 Andrew Cagney <cagney@redhat.com>
9320
6d518969
AC
9321 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
9322 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
9323 move extern declarations from here ...
9324 * infttrace.h: ... to here.
9325 * Makefile.in (hppah-nat.o): Update dependencies.
9326
85f4f2d8
AC
9327 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
9328 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
8718a420 9329 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
85f4f2d8
AC
9330 (hppa_breakpoint_from_pc): Delete.
9331
93449403
AC
9332 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
9333
71456ec6
AC
93342004-04-05 Andrew Cagney <cagney@redhat.com>
9335
9336 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
9337 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
9338 <sys/file.h>.
8718a420 9339
4c02c60c
AC
93402004-04-06 Randolph Chung <tausq@debian.org>
9341
9342 Committed by Andrew Cagney (mechanical change).
9343 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
9344 exception_catchpoints_are_fragile, find_stub_with_shl_get,
9345 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
9346 child_enable_exception_callback, current_ex_event,
9347 null_symtab_and_line, child_get_current_exception_event,
9348 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
9349 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
9350 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
9351 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
9352 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
9353 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
9354 Move hpux-specific definitions ...
9355 * hppa-hpux-tdep.c: ... to here.
9356
3a515653
AC
93572004-04-05 Andrew Cagney <cagney@redhat.com>
9358
9359 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
9360 skip_prologue_using_sal.
9361
c1730d02
AC
93622004-04-05 Andrew Cagney <cagney@redhat.com>
9363
9364 * config/i386/tm-i386.h: Delete file.
9365 * config/i386/tm-vxworks.h: Update copyright, do not include
9366 "tm-i386.h".
9367 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
9368 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
9369 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
9370 * config/i386/ncr3000.mt (TM_FILE): Delete.
9371 * config/i386/interix.mt (TM_FILE): Delete.
9372 * config/i386/i386v.mt (TM_FILE): Delete.
9373 * config/i386/i386nw.mt (TM_FILE): Delete.
9374 * config/i386/i386gnu.mt (TM_FILE): Delete.
9375 * config/i386/i386aout.mt (TM_FILE): Delete.
9376 * config/i386/embed.mt (TM_FILE): Delete.
9377
8b67aa36
KB
93782004-04-05 Kevin Buettner <kevinb@redhat.com>
9379
9380 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
9381 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
9382 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
9383 (accg7_regnum): New constants.
9384 (last_spr_regnum, last_pseudo_regnum): Update.
c2f59a1a
KB
9385 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
9386 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
8b67aa36
KB
9387 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
9388 for accg registers.
9389 (frv_register_sim_regno): Update spr_map[].
9390
3c7012f5
AC
93912004-04-04 Andrew Cagney <cagney@redhat.com>
9392
9393 * config/mips/xm-riscos.h: Delete.
9394 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
9395 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
9396 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
9397 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
9398 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
9399 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
9400 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
9401 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
9402 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
9403 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
9404 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
9405 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
9406 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
9407 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
9408 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
9409 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
9410 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
9411 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
9412 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
9413 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
9414 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
9415 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
9416 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
9417 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
9418 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
9419 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
8718a420 9420
3c7012f5
AC
9421 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
9422 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
9423 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
9424 * configure.host: Remove m680[01]0-sun-sunos3*,
9425 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
9426 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
9427 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
9428 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
9429 mips-*-riscos*.
9430 * NEWS: Mention removed systems.
9431
99d16a21
AC
94322004-04-04 Andrew Cagney <cagney@redhat.com>
9433
9434 GDB 6.1 release created from 6.1 branch.
9435
6cdf9d98
AC
94362004-04-04 Andrew Cagney <cagney@redhat.com>
9437
98d346c3
AC
9438 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
9439 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
9440 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
9441
6cdf9d98
AC
9442 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
9443 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
9444 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
9445
859a326d
JB
94462004-04-03 Jim Blandy <jimb@redhat.com>
9447
9448 * MAINTAINERS: Chris Faylor has changed employers; add him to
9449 "paper trail" section, and update his E-mail address.
9450
b87178c3
AC
94512004-04-03 Andrew Cagney <cagney@redhat.com>
9452
4ea2acf0
AC
9453 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
9454 generic dummy frames.
9455 * dummy-frame.c: Update copyright.
9456 (dummy_frame_sniffer): Delete check for generic dummy frames.
9457
d0bd2d18 9458 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
8718a420 9459 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
d0bd2d18
AC
9460 (REG_PARM_STACK_SPACE): Delete.
9461 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
9462 Inline reference to REG_PARM_STACK_SPACE.
9463
b87178c3
AC
9464 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
9465 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
9466 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
9467 (FRAME_BASE_BEFORE_SIGTRAMP)
9468 (hppa32_hpux_frame_base_before_sigtramp)
9469 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
9470 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
9471 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
9472 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
9473 (FRAME_BASE_BEFORE_SIGTRAMP)
9474 (hppa64_hpux_frame_base_before_sigtramp)
9475 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
9476
43e2e1a0
AC
94772004-04-03 Andrew Cagney <cagney@redhat.com>
9478
9479 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
9480
ddc135a4
AC
94812004-04-02 Andrew Cagney <cagney@redhat.com>
9482
9483 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
9484 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
9485 * dummy-frame.h: Delete out-of-date comments.
9486 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
9487 * gdbarch.h, gdbarch.c: Re-generate.
9488
d15bfd3a 94892004-04-02 Joel Brobecker <brobecker@gnat.com>
8718a420 9490
d15bfd3a
AC
9491 Committed by Andrew Cagney <cagney@redhat.com>.
9492 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
9493 into account an instruction saving a register if we have already
9494 seen an earlier instruction saving that same register.
9495
f04ceafa
AC
94962004-04-02 Andrew Cagney <cagney@redhat.com>
9497
08be3abd
AC
9498 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
9499 * gdbarch.h, gdbarch.c: Re-generate.
9500 * frame.c (legacy_get_prev_frame): Delete references to
9501 DEPRECATED_INIT_FRAME_PC_FIRST.
9502
f04ceafa
AC
9503 * infrun.c (pc_in_sigtramp): Delete function.
9504 (check_sigtramp2): Inline call to pc_in_sigtramp, use
9505 get_frame_type.
9506
08e69816
AC
95072004-04-02 Andrew Cagney <cagney@redhat.com>
9508
9509 * infrun.c (handle_step_into_function): Delete code conditional on
9510 legacy_frame_p.
9511 (handle_inferior_event, step_over_function): Ditto.
9512
adb54772
AC
95132004-04-02 Andrew Cagney <cagney@redhat.com>
9514
9515 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
9516 "previous frame inner to this frame" test.
9517
304396fb
AC
95182004-04-02 Andrew Cagney <cagney@redhat.com>
9519
9520 * frame.c (safe_frame_unwind_memory): New function.
9521 * frame.h (safe_frame_unwind_memory): Declare. Update description
9522 of /safe_/ methods.
9523 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
9524 "next_frame". Use safe_frame_unwind_memory.
9525 (tramp_frame_sniffer): Update call to tramp_frame_start.
9526
6502dd73
DJ
95272004-04-01 Daniel Jacobowitz <drow@mvista.com>
9528
9529 * dwarf2read.c (dwarf2_objfile_data_key): New.
9530 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
9531 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
9532 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
9533 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
9534 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
9535 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
9536 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
9537 Remove variables.
9538 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
9539 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
9540 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
9541 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
9542 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
9543 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
9544 Remove macros.
9545 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
9546 data.
9547 (dwarf2_locate_sections, dwarf2_build_psymtabs)
9548 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
9549 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
9550 (read_partial_die, read_full_die, read_indirect_string)
9551 (dwarf_decode_line_header, dwarf_decode_macros)
9552 (dwarf2_symbol_mark_computed): Remove use of removed macros.
9553 Update uses of removed variables.
9554 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
9555 of removed macros.
9556 (_initialize_dwarf2_read): New function.
9557 * symfile.h (dwarf2_has_info): Update prototype.
9558 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
9559 * elfread.c (elf_symfile_read): Likewise.
9560
408752b0
JB
95612004-04-01 Jim Blandy <jimb@redhat.com>
9562
9f744501
JB
9563 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
9564 function for register numbers on all the rs6000-derived targets.
9565 (rs6000_gdbarch_init): Don't register a separate
9566 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
9567 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
9568 variants.
9569
408752b0
JB
9570 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
9571 numbering.
9572
2de41bce
PH
95732004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
9574
9575 * valarith.c: Update copyright notice.
9576 (value_add): Handle range types.
9577 (value_sub): Ditto.
9578 (value_equal): Ditto.
9579 (value_less): Ditto.
9580 (value_neg): Ditto.
9581 (value_complement): Ditto.
8718a420 9582 (value_binop): Simplify slightly by using is_integral_type and
2de41bce 9583 eliminiating unnecessary COERCE_ENUMs.
8718a420 9584
5613d8d3
AC
95852004-03-31 Andrew Cagney <cagney@redhat.com>
9586
9587 * frame.h (frame_unwind_id): Declare.
9588 * frame.c (frame_unwind_id): New function.
9589 (get_prev_frame_1): New function.
9590 (frame_debug_got_null_frame): New function.
9591 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
9592 code proper to prev_frame, update description.
9593 * infrun.c (step_over_function): Use frame_unwind_id.
9594
c4557624
JB
95952004-04-31 J. Brobecker <brobecker@gnat.com>
9596
9597 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
9598 (hppa64_push_dummy_call): Likewise.
9599
3e6bb910
JB
96002004-03-30 Jim Blandy <jimb@redhat.com>
9601
9602 From Ulrich Weigand:
9603 * utils.c (query): Do not use a va_list variable multiple times.
9604
a2f23071
DJ
96052004-03-29 Daniel Jacobowitz <drow@mvista.com>
9606
9607 * Makefile.in (linux_nat_h): Update dependencies.
9608 * configure.in: Check for <gnu/libc-version.h>.
9609 * configure: Regenerate.
9610 * config.in: Regenerate.
9611 * linux-nat.h: Include "target.h". Add waitstatus field to
9612 struct lwp_info.
9613 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
9614 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
9615 to.
9616 (lin_lwp_handle_extended): New function. Handle clone events.
9617 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
9618 thread exit events.
9619 (child_wait): Handle clone events.
9620 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
9621 * linux-nat.c (linux_enable_event_reporting): Turn on
9622 PTRACE_O_TRACECLONE.
9623 (linux_handle_extended_wait): Handle clone events.
9624 * thread-db.c: Include <gnu/libc-version.h>.
9625 (struct private_thread_info): Add dying flag.
9626 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
9627 higher.
9628 (attach_thread): Update comments. Handle dying threads.
9629 (detach_thread): Set the dying flag.
9630 (check_event): Always call attach_thread.
9631
8d5f9dcb
DJ
96322004-03-29 Daniel Jacobowitz <drow@mvista.com>
9633
9634 * mips-tdep.c (mips_pdr_data): New.
9635 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
9636 (_initialize_mips_tdep): Initialize mips_pdr_data.
9637
66337bb1
CV
96382004-03-29 Corinna Vinschen <vinschen@redhat.com>
9639
9640 * minsyms.c (install_minimal_symbols): Move dropping leading
9641 char from linkage name from here...
9642 (prim_record_minimal_symbol_and_info): ...to here. Simplify
9643 test for "__gnu_compiled*" symbols.
9644
e802b915
JB
96452004-03-28 Jim Blandy <jimb@redhat.com>
9646
9647 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
9648 registers to temp register r0 and byte stores as prologue
9649 instructions.
9650
72b56458
AC
96512004-03-28 Andrew Cagney <cagney@redhat.com>
9652
9653 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
9654 arm*-*-*.
9655
0bfbda3b
SC
96562004-03-28 Stephane Carrez <stcarrez@nerim.fr>
9657
9658 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
9659 and switch the layout to force a display of register window.
9660
5a7225ed
JB
96612004-02-26 J. Brobecker <brobecker@gnat.com>
9662
9663 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
9664 of the INTEGER class.
9665
81a07a45
JB
96662004-03-26 Jim Blandy <jimb@redhat.com>
9667
9668 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
9669 bytes long on PPC GNU/Linux.
9670
8c691c7a
DC
96712004-03-26 David Carlton <carlton@kealia.com>
9672
9673 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
9674
103a0089
AC
96752004-03-25 Andrew Cagney <cagney@redhat.com>
9676
9677 * PROBLEMS: Add general section titles, remove references to
9678 specific releases.
9679
7a5ea0d4
DJ
96802004-03-25 Daniel Jacobowitz <drow@mvista.com>
9681
9682 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
9683 INT_REGISTER_SIZE.
9684 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
9685 FP_REGISTER_VIRTUAL_SIZE.
9686 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
9687 of DEPRECATED_REGISTER_RAW_SIZE.
9688 (arm_register_type): Add gdbarch argument.
9689 (arm_register_raw_size, arm_register_virtual_size): Delete.
9690 (arm_register_byte, arm_extract_return_value)
9691 (arm_store_return_value, arm_get_longjmp_target): Update references
9692 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
9693 (arm_gdbarch_init): Likewise. Don't set
9694 deprecated_register_raw_size, deprecated_register_virtual_size,
9695 deprecated_max_register_raw_size,
9696 deprecated_max_register_virtual_size, or
9697 deprecated_max_register_virtual_type. Do set register_type.
9698 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
9699 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
9700 (FP_REGISTER_VIRTUAL_SIZE): Delete.
9701 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
9702 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
9703 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
9704 INT_REGISTER_SIZE.
9705 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
9706 (remote_rdp_store_register): Likewise.
9707
5792a79b
DJ
97082004-03-24 Daniel Jacobowitz <drow@mvista.com>
9709
9710 * Makefile.in (mips-linux-tdep.o): Update dependencies.
9711 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
9712 to after osabi initialization.
9713 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
9714 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
9715 functions.
9716 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
9717 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
9718 variables.
9719 (mips_linux_init_abi): Append signal trampoline unwinders.
9720
1196bfda
AC
97212004-03-24 Andrew Cagney <cagney@redhat.com>
9722
9723 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
9724 * tramp-frame.c: Include "gdb_assert.h".
9725 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
9726 correct sizeof.
9727 (tramp_frame_append): Validate the tramp frame's instructions.
9728 * Makefile.in (tramp-frame.o): Update dependencies.
9729
4be282b4
AC
97302004-03-23 Andrew Cagney <cagney@redhat.com>
9731
9732 * trad-frame.h (trad_frame_set_reg_addr): Declare.
9733
69aec09b
AC
97342004-03-23 Andrew Cagney <cagney@redhat.com>
9735
9736 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
9737 Nasser as past testsuite/lib/ (and other) maintainers.
9738
63ed89b4
DJ
97392004-03-23 Daniel Jacobowitz <drow@mvista.com>
9740
9741 * infcmd.c (attach_command): Reread symbols if we already have
9742 an exec file.
9743
f3b36427
AC
97442004-03-23 Andrew Cagney <cagney@redhat.com>
9745
9746 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
9747
aa2a3f87
AC
97482004-03-23 Andrew Cagney <cagney@redhat.com>
9749
9750 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
9751 * gdbarch.h, gdbarch.c: Re-generate.
9752 * i386obsd-tdep.c (i386obsd_init_abi): Update.
9753 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
9754 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8718a420 9755 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87 9756 (DEPRECATED_SIGTRAMP_START): Update.
8718a420 9757 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87
AC
9758 (DEPRECATED_SIGTRAMP_START): Update.
9759 * blockframe.c (find_pc_sect_partial_function): Update.
9760 * arch-utils.c (legacy_pc_in_sigtramp): Update.
9761
00cac895
DJ
97622004-03-23 Daniel Jacobowitz <drow@mvista.com>
9763
9764 * remote.c (remote_open_1): Reopen the exec file and reread symbols
9765 if necessary.
9766
f561f026
AC
97672004-03-23 Andrew Cagney <cagney@redhat.com>
9768
9769 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
9770 predicate, deprecate.
9771 * gdbarch.h, gdbarch.c: Re-generate.
9772 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
9773 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
9774 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
9775 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
9776 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
9777 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
9778 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
9779 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
9780 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
9781 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
9782 * blockframe.c (find_pc_partial_function): Update.
9783 * breakpoint.c (bpstat_what): Update.
9784 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
9785 * frv-linux-tdep.c (frv_linux_init_abi): Update.
9786 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
9787 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
9788 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9789 * i386-linux-tdep.c (i386_linux_init_abi): Update.
9790 * i386-nto-tdep.c (i386nto_init_abi): Update.
9791 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
9792 * i386-tdep.c (i386_sigtramp_frame_sniffer)
9793 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
9794 * i386bsd-tdep.c (i386bsd_init_abi): Update.
9795 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
9796 * i386obsd-tdep.c (i386obsd_init_abi): Update.
9797 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
9798 * infrun.c (pc_in_sigtramp): Update.
9799 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
9800 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
9801 * mips-tdep.c (mips_gdbarch_init): Update.
9802 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
9803 * ppc-linux-tdep.c: Update comment.
9804 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
9805 * shnbsd-tdep.c (shnbsd_init_abi): Update.
9806 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
9807 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
9808 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
9809 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
9810 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
9811 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
9812 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
9813 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
8718a420 9814
8050c72f
AC
98152004-03-23 Andrew Cagney <cagney@redhat.com>
9816
d2259dd3
AC
9817 * tramp-frame.h, tramp-frame.h: New files.
9818 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
9819 Update rules to include "tramp-frame.h" and "tramp-frame.c".
9820
8050c72f
AC
9821 * Makefile.in: Update all dependencies.
9822
0db9b4b7
AC
98232004-03-23 Andrew Cagney <cagney@redhat.com>
9824
9825 * Makefile.in (trad_frame_h): Add $(frame_h).
9826 * trad-frame.h: Update copyright. Include "frame.h".
9827 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
9828 (trad_frame_set_id, trad_frame_get_id): Declare.
9829 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
9830 * trad-frame.c: Update copyright.
9831 (struct trad_frame_cache): Define.
9832 (trad_frame_cache_zalloc): New function.
9833 (trad_frame_set_id, trad_frame_get_id): New functions.
9834 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
8718a420 9835
8e645ae7
AC
98362004-03-22 Andrew Cagney <cagney@redhat.com>
9837
9838 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
9839 s390_pltstub_unwind_cache.
9840 (s390_stub_frame_unwind_cache): Rename
9841 s390_pltstub_frame_unwind_cache.
9842 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
9843 (s390_stub_frame_prev_register): Rename
9844 s390_pltstub_frame_prev_register.
9845 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
9846 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
9847
9848 From Ulrich Weigand:
9849 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
9850 pointer calls like PLT calls.
9851
34fcf120
DJ
98522004-03-22 Daniel Jacobowitz <drow@mvista.com>
9853
9854 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
9855 PC rather than the partial function start address. Use the start
9856 address to sanity check the found PDR.
9857
5b917078
DJ
98582004-03-22 Daniel Jacobowitz <drow@mvista.com>
9859
9860 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
9861 linux_handle_extended_wait.
9862
8adf9e78
AC
98632004-03-22 Andrew Cagney <cagney@redhat.com>
9864
c3122434
AC
9865 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
9866 function.
9867
8adf9e78
AC
9868 * frame.h (generic_pop_current_frame): Delete declaration.
9869 (deprecate_pop_dummy_frame): Deprecate
9870 generic_pop_dummy_frame.
9871 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
9872 (generic_pop_current_frame): Delete function.
9873 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
9874 generic_pop_current_frame.
9875 * v850-tdep.c (v850_pop_frame): Update.
9876 * mcore-tdep.c (mcore_pop_frame): Update.
9877 * sh64-tdep.c (sh64_pop_frame): Update.
9878 * h8300-tdep.c (h8300_pop_frame): Update.
9879
90ba813f
AC
98802004-03-22 Andrew Cagney <cagney@redhat.com>
9881
9882 * frame.h (deprecated_pc_in_call_dummy): Rename
9883 generic_pc_in_call_dummy.
9884 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
9885 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
9886 generic_pc_in_call_dummy.
9887 (pc_in_dummy_frame): Make static.
9888 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
9889 * gdbarch.h, gdbarch.c: Re-generate.
9890 * dummy-frame.c (dummy_frame_sniffer): Simplify.
9891 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
9892 (legacy_get_prev_frame): Ditto.
9893 * inferior.h: Delete reference to generic_pc_in_call_dummy in
9894 comment.
8718a420 9895
ca4bb888
AC
98962004-03-21 Andrew Cagney <cagney@redhat.com>
9897
244675f9
AC
9898 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
9899 declaration and out-of-date comment.
9900 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
9901 Delete function.
9902 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
9903 deprecated_pc_in_call_dummy.
9904
ca4bb888
AC
9905 * infrun.c (handle_inferior_event): For non legacy frames, use the
9906 frame ID and frame type to identify a signal trampoline. Update
9907 comments.
9908
1777c7b4
NW
99092004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
9910
9911 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
9912 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
9913
82417da5
AC
99142004-03-21 Andrew Cagney <cagney@redhat.com>
9915
9916 * frame-unwind.h: Update copyright.
9917 (struct frame_data): Add opaque declaration.
9918 (frame_sniffer_ftype): Declare.
9919 (struct frame_unwind): Add "unwind_data" and "sniffer".
9920 (frame_unwind_register_unwinder): Declare.
9921 (frame_unwind_find_by_frame): Add parameter "this_cache".
9922 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
9923 (legacy_get_prev_frame, legacy_get_prev_frame)
9924 (get_frame_type): Pass the prologue_cache to
9925 frame_unwind_find_by_frame.
9926 * frame-unwind.c (struct frame_unwind_table_entry): Add field
9927 "unwinder".
9928 (frame_unwind_register_unwinder): New function.
9929 (frame_unwind_find_by_frame): Handle an unwind sniffer.
9930
b2ba182e
PH
99312004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
9932
9933 * bcache.c (print_percentage): Use floating point to avoid
9934 incorrect results when portion*100 overflows.
9935
81332287
KB
99362004-03-19 Kevin Buettner <kevinb@redhat.com>
9937
9938 * ppc_tdep.h (ppc_linux_frame_saved_pc)
9939 (ppc_linux_init_extra_frame_info)
9940 (ppc_linux_frameless_function_invocation)
9941 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
9942 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
9943 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
9944 (rs6000_frame_chain): Delete declarations.
9945 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
9946 (ppc_linux_init_extra_frame_info)
9947 (ppc_linux_frameless_function_invocation)
9948 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
9949 (ppc_linux_init_abi): Remove registration of above deleted functions.
9950 * rs6000-tdep.c (rs6000_init_extra_frame_info)
9951 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
9952 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
9953 (rs6000_pop_frame, rs6000_frameless_function_invocation)
9954 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
9955 (rs6000_gdbarch_init): Remove registration of above deleted functions.
9956 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
9957 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
9958 frame management for all OSABIs.
9959
61a65099
KB
99602004-03-19 Andrew Cagney <cagney@redhat.com>
9961
9962 Committed by Kevin Buettner <kevinb@redhat.com>.
9963
9964 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
9965 Update copyright.
9966 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
9967 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
9968 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
9969 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
9970 unwinders. #ifdef legacy frame code.
9971 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
9972 "frame-base.h".
9973 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
9974 (struct rs6000_frame_cache, rs6000_frame_cache)
9975 (rs6000_frame_this_id, rs6000_frame_prev_register)
9976 (rs6000_frame_sniffer, rs6000_frame_unwind)
9977 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
9978 (rs6000_frame_base): Implement a traditional frame unwinder.
9979 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
9980 frame unwinder.
9981
88f7da05
KB
99822004-03-19 Kevin Buettner <kevinb@redhat.com>
9983
9984 * breakpoint.c (adjust_breakpoint_address): Don't adjust
9985 breakpoint address for watchpoints or the catch eventpoints.
9986 Add new paramter ``bptype''. Adjust all callers.
9987
f826dce1
AC
99882004-03-19 Andrew Cagney <cagney@redhat.com>
9989
33cb8b0f
AC
9990 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
9991
f826dce1
AC
9992 * PROBLEMS: Delete note that ARM does not use frame code, problem
9993 fixed.
9994
43b1ab88
AC
99952004-03-18 Andrew Cagney <cagney@redhat.com>
9996
292ab034
AC
9997 * stack.c (return_command): Delete code wrapped in #ifdef
9998 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
9999
43b1ab88
AC
10000 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
10001
dbfe4626
AC
100022004-03-18 Andrew Cagney <cagney@redhat.com>
10003
10004 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
10005 DEPRECATED_IN_SIGTRAMP.
10006 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10007 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
10008 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10009 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10010 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10011 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10012 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10013 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10014 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
10015 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
10016
0cad6aec
AC
100172004-03-18 Andrew Cagney <cagney@redhat.com>
10018
10019 * frame-base.c: Update copyright. Include "gdb_obstack.h".
10020 (struct frame_base_table_entry): Define.
10021 (struct frame_base_table): Re-implement as a linked list.
10022 (frame_base_init): Re-implement.
10023 (frame_base_table): Delete function.
10024 (append_predicate): Delete function.
10025 (frame_base_append_sniffer): Update.
10026 (frame_base_set_default): Update.
10027 (frame_base_find_by_frame): Update.
10028 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
10029 * Makefile.in (frame-base.o): Update dependencies.
10030
9982c2e7
AC
100312004-03-17 Andrew Cagney <cagney@redhat.com>
10032
10033 * frame.c (legacy_get_prev_frame): Pass correct frame to
10034 frame_unwind_find_by_frame.
10035
8dfe8985
DC
100362004-03-17 David Carlton <carlton@kealia.com>
10037
10038 * NEWS: Mention C++ nested types and namespaces
10039
ed47347a
MC
100402004-03-16 Michael Chastain <mec.gnu@mindspring.com>
10041
10042 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
10043 and "Regressions since gdb 5.3.". Add known regressions since
10044 gdb 6.0.
10045
90aeadfc
DC
100462004-03-16 David Carlton <carlton@kealia.com>
10047
10048 * dwarf2read.c (process_structure_scope): Process children even
10049 when we're a declaration.
10050
73912b9b
AC
100512004-03-16 Andrew Cagney <cagney@redhat.com>
10052
10053 * symtab.h (find_pc_sect_partial_function): Delete declaration.
10054 * blockframe.c (find_pc_partial_function)
10055 (find_pc_sect_partial_function): Merge into a single
10056 find_pc_partial_function.
10057
283accbc
MK
100582004-03-16 Mark Kettenis <kettenis@gnu.org>
10059
10060 * i386bsd-nat.c: s/regno/regnum/g.
10061 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
10062 FP0_REGNUM.
10063 (store_inferior_registers): Likewise.
10064
f5b1afdf
MK
100652004-03-16 Mark Kettenis <kettenis@gnu.org>
10066
10067 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
10068 of i387_fill_fsave.
10069 (store_inferior_registers): Call i387_collect_fsave and
10070 i387_collect_fxsave instead of i387_fill_fsave and
10071 i387_fill_fxsave.
10072
41fe5eb3
AC
100732004-03-15 Andrew Cagney <cagney@redhat.com>
10074
10075 * Makefile.in (frame-unwind.o): Update dependencies.
10076 * frame-unwind.c: Include "gdb_obstack.h".
10077 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
10078 parameter.
10079 (append_predicate): Delete function.
10080 (struct frame_unwind_table_entry): New structure.
10081 (struct frame_unwind_table): Replace "sniffer" with "head" and
10082 "tail".
10083 (frame_unwind_append_sniffer): Update.
10084 (frame_unwind_find_by_frame): Update.
10085 (_initialize_frame_unwind): Registe frame_unwind_init using
10086 gdbarch_data_register_pre_init.
10087
3f63813d
MK
100882004-03-15 Mark Kettenis <kettenis@gnu.org>
10089
10090 * i386bsd-nat.c: Update copyright year.
10091 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
10092 define unconditionally.
10093
3248c325 100942004-03-15 Mark Kettenis <kettenis@gnu.org>
63b6c53f
MK
10095
10096 * i387-tdep.h (i387_collect_fsave): New prototype.
10097 * i387-tdep.c (i387_collect_fsave): New function containing most
10098 of the code from i387_fill_fsave.
3248c325 10099 (i387_fill_fsave): Call i387_collect_fsave.
63b6c53f 10100
871fbe6a
MK
101012004-03-15 Mark Kettenis <kettenis@gnu.org>
10102
10103 * i386-linux-tdep.c: Update copyright year.
10104 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
10105 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
10106 svr4_ilp32_link_map_offsets instead of
10107 i386_linux_svr4_fetch_link_map_offsets.
10108
8176b9b8
DC
101092004-03-15 David Carlton <carlton@kealia.com>
10110
10111 Fix for PR c++/1553:
10112 * dwarf2read.c (read_structure_type): Determine type name by
10113 calling determine_class_name.
10114 (determine_class_name): New.
10115 (determine_prefix): Look at TYPE_TAG_NAME and call
10116 determine_class_name when appropriate.
10117 (determine_prefix_aux, class_name): Delete.
9d58e29d 10118 (read_namespace): Set die->type.
8176b9b8 10119
fe8bf7d7
KB
101202004-03-15 Kevin Buettner <kevinb@redhat.com>
10121
10122 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
10123 unused macro definition. The definition in target.h (or perhaps
10124 elsewhere) takes precedence.
10125
ed6edd9b
AC
101262004-03-15 Andrew Cagney <cagney@redhat.com>
10127
f9be684a
AC
10128 * ppc-tdep.h: Update copyright.
10129 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
10130 function signatures to match "regsets.h".
10131 * ppc-linux-tdep.c: Include "regset.h".
10132 (ELF_GREGSET_SIZE): Delete.
10133 (right_supply_register): New function.
10134 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
10135 using right_supply_register.
10136 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
10137 functions.
10138 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
10139 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
10140 (_initialize_ppc_linux_tdep): Do not register
10141 ppc_linux_regset_core_fns.
10142 (ppc_linux_regset_from_core_section): Replace
10143 fetch_core_registers.
10144 (ppc_linux_regset_core_fns): Delete.
10145 * ppc-linux-nat.c: (right_fill_reg): New function.
10146 (supply_gregset): Update call to ppc_linux_supply_gregset.
10147 (fill_gregset): Clear the register set, use right_fill_reg.
10148 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
10149 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
10150
ed6edd9b
AC
10151 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
10152 unsigned.
10153
030f20e1
AC
101542004-03-15 Andrew Cagney <cagney@redhat.com>
10155
10156 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
10157 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
10158 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
10159 and register_gdbarch_data.
10160 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
10161 (struct gdbarch_data): Replace "init" by "pre_init" and
10162 "post_init".
10163 * gdbarch.h, gdbarch.c: Re-generate.
10164 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
10165 with"obstack", use OBSTACK_ZALLOC.
10166 (dwarf2_frame_ops): Delete.
10167 (dwarf2_frame_set_init_reg): Use gdbarch_data.
10168 (dwarf2_frame_init_reg): Use gdbarch_data.
10169 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
8718a420 10170 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
030f20e1
AC
10171 (_initialize_svr4_solib): Update.
10172 * user-regs.c (_initialize_user_regs): Update.
10173 * reggroups.c (_initialize_reggroup): Update.
10174 * regcache.c (_initialize_regcache): Update.
10175 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
10176 * libunwind-frame.c (_initialize_libunwind_frame): Update.
10177 * gnu-v3-abi.c (init_gnuv3_ops): Update.
10178 * frame-unwind.c (_initialize_frame_unwind): Update.
10179 * frame-base.c (_initialize_frame_base): Update.
10180 * user-regs.c (user_reg_add): Update.
10181 * reggroups.c (reggroup_add): Update.
10182 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
10183 * libunwind-frame.c (libunwind_frame_set_descr): Update.
10184 * frame-unwind.c (frame_unwind_append_sniffer): Update.
10185 * frame-base.c (frame_base_table): Update.
10186 * remote.c (_initialize_remote): Update.
10187 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
8718a420 10188
3111a3fc
AC
101892004-03-15 Andrew Cagney <cagney@redhat.com>
10190
10191 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
10192
5ecb7103
KB
101932004-03-15 Kevin Buettner <kevinb@redhat.com>
10194
10195 * Makefile.in (frv-linux-tdep.o): Add dependencies.
10196 * frv-linux-tdep.c: New file.
10197 * frv-tdep.c (struct gdbarch_tdep): Add new field
10198 ``sigcontext_reg_addr''.
10199 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
10200 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
10201 (frv_sigramp_frame_sniffer): New functions.
10202 (frv_sigtramp_frame_unwind): New static global.
10203 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
10204 sniffers.
10205 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
10206 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
10207
1ccda5e9
KB
102082004-03-15 Kevin Buettner <kevinb@redhat.com>
10209
10210 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
10211 but not via a call to error(), when unable to read memory.
10212
b375a0a5
KB
102132004-03-15 Kevin Buettner <kevinb@redhat.com>
10214
10215 * frv-tdep.c (frv_call_dummy_words): Delete.
10216 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
10217
4fdf6121
AC
102182004-03-15 Andrew Cagney <cagney@redhat.com>
10219
10220 * infrun.c (handle_step_into_function, step_over_function): Only
10221 update and use STEP_FRAME_ID when the system is using legacy
10222 frames. Update comments.
10223
34021503
MK
102242004-03-14 Mark Kettenis <kettenis@gnu.org>
10225
187e21d1
MK
10226 * amd64-linux-tdep.h: Remove file.
10227 * amd64-linux-tdep.c: Don't include "inferior.h" and
10228 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
10229 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
10230 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
10231 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
10232 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
10233 macros.
10234 (user_to_gdb_regmap): Remove variable.
10235 (amd64_linux_gregset_reg_offset): New variable.
10236 (amd64_core_fns): Remove variable.
10237 (fetch_core_registers): Remove function.
10238 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
10239 functions.
10240 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
10241 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
10242 * Makefile.in (amd64_linux_tdep_h): Remove.
10243 (amd64-linux-nat.o): Update dependencies.
10244 (amd64-linux-tdep.o): Update dependencies.
10245
99679982
MK
10246 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
10247 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
10248 functions.
10249 (fetch_inferior_registers, store_inferior_registers): Rewrite.
10250
34021503
MK
10251 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
10252 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
10253
134d01f1
DJ
102542004-03-14 Daniel Jacobowitz <drow@mvista.com>
10255
10256 * dwarf2read.c (read_structure_type): Rename from
8718a420 10257 read_structure_scope. Don't create a symbol or call process_die.
134d01f1
DJ
10258 Return immediately if die->type is set. Call read_type_die before
10259 dwarf2_add_member_fn.
10260 (process_structure_scope): New function.
10261 (read_enumeration_type, process_enumeration_scope): New functions,
10262 broken out from read_enumeration. Don't create the enumeration
10263 type if it has already been created.
10264 (read_enumeration): Removed.
10265 (process_die): Call read_structure_type, process_structure_scope,
10266 read_enumeration_type, and process_enumeration_scope. Just call
10267 new_symbol for base and subrange types. Add a comment about other
10268 type dies.
10269 (read_type_die): Call read_enumeration_type.
10270 (add_partial_structure, new_symbol): Update comments.
10271
65760afb
SC
102722004-03-13 Stephane Carrez <stcarrez@nerim.fr>
10273
10274 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
10275
10f59415
SC
102762004-03-13 Stephane Carrez <stcarrez@nerim.fr>
10277
10278 * tui/tui-win.h (tui_get_cmd_list): Declare.
10279 * tui/tui-win.c (tui_command): New function.
10280 (tui_get_cmd_list): New function.
10281 (_initialize_tui_win): Moved initialization of tui command in
10282 tui_get_cmd_list.
10283
10284 * tui/tui-data.c (init_content_element): Setup new data members.
10285 (init_win_info): Likewise.
10286 (free_content_elements): Free it.
10287 * tui/tui-data.h (struct tui_data_element): Store the register
10288 content to print.
10289 (struct tui_data_info): Keep the current register group.
10290
10291 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
10292
10293 * tui/tui-regs.h (tui_show_registers): Update prototype.
10294 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
10295 (tui_resize_all): No need to calculate anything for register window.
10296 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
10297 (tui_set_register_element, tui_set_general_regs_content): Remove.
10298 (tui_set_special_regs_content): Remove.
10299 (tui_set_general_and_special_regs_content): Remove.
10300 (tui_set_float_regs_content): Remove.
10301 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
10302 (tui_set_regs_content): Remove.
10303 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
10304 (tui_v_show_registers_command_support): Remove.
10305 (tui_show_registers): Use a reggroup to specify the registers to show.
10306 (tui_show_register_group): New function.
10307 (tui_display_registers_from): Compute the layout of register window
10308 and refresh with new API; be sure to delete old register windows.
10309 (tui_check_register_values): Update to use tui_get_register and
10310 tui_display_data.
10311 (tui_display_register): Just refresh the register window part.
10312 (tui_register_format): Format registers and save in tui_data_element.
10313 (tui_get_register): New to combine tui_reg_value_has_changed and
10314 tui_get_register_raw_value; fix to use the new gdb API.
10315 (tui_show_float_command): Renamed tui_reg_float_command.
10316 (tui_show_general_command): Renamed tui_reg_general_command.
10317 (tui_show_special_command): Renamed tui_reg_system_command.
10318 (_initialize_tui_regs): Remove unused commands.
10319
c3364ea4
MK
103202004-03-13 Mark Kettenis <kettenis@gnu.org>
10321
27d1e716
MK
10322 * NEWS (New native configurations): Mention OpenBSD/amd64.
10323
c3364ea4
MK
10324 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
10325 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
10326 Remove defines.
10327 * config/i386/nm-fbsd64.h: Likewise.
10328 * config/i386/nm-obsd.h: Likewise.
10329 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
10330 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
10331
b2d6d697
KB
103322004-03-12 Kevin Buettner <kevinb@redhat.com>
10333
10334 * frv-tdep.c (set_variant_scratch_registers): New function.
b2d6d697
KB
10335 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
10336 New constants.
10337
76e43199
KB
10338 From Richard Sandiford <rsandifo@redhat.com>:
10339 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
10340
34ce532e
KB
103412004-03-12 Kevin Buettner <kevinb@redhat.com>
10342
10343 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
10344 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
10345 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
10346 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
10347 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
10348 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
10349 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
10350 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
10351 definitions from frv-tdep.c to frv-tdep.h.
10352
c4d10515
KB
103532004-03-12 Kevin Buettner <kevinb@redhat.com>
10354
10355 Add shared library support for FR-V FDPIC ABI:
10356 * Makefile.in (solib-frv.o): Add dependencies.
10357 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
10358 New functions.
10359 (frv_push_dummy_call): Add support for FDPIC ABI.
10360 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
10361 for FDPIC ABI.
10362 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
10363 (frv_fdpic_find_canonical_descriptor): Declare.
10364 * solib-frv.c: New file.
10365 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
10366 * config/frv/tm-frv.h (solib.h): Include.
10367
ed1bd989
KB
103682004-03-12 Kevin Buettner <kevinb@redhat.com>
10369
10370 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
10371 (frv-tdep.o): Update dependencies.
10372 * frv-tdep.h: New file.
10373 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
10374 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
10375 constants.
10376 (struct gdbarch_tdep): Add new member ``frv_abi''.
10377 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
10378 functions.
10379 (new_variant): Set ``frv_abi'' field.
10380 (gdb_arch_init): Detect FDPIC executables.
10381
82b38f72
MK
103822004-03-12 Mark Kettenis <kettenis@gnu.org>
10383
10384 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
10385 wrapper.
10386
db1ea9ba
AC
103872004-03-11 Andrew Cagney <cagney@redhat.com>
10388
10389 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
10390
f8766ec1
KB
103912004-03-11 Kevin Buettner <kevinb@redhat.com>
10392
10393 * solist.h (master_so_list): New function.
10394 * solib.c (master_so_list): Likewise.
10395 * solib-svr4.c (enable_break): Iterate over so_list entries
10396 obtained from master list instead of entries obtained directly
10397 via svr4_current_sos().
10398
523f6a27
BE
103992004-03-10 Ben Elliston <bje@gnu.org>
10400
10401 * MAINTAINERS: Update my mail address.
10402
37814c18
KI
104032004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
10404
10405 * remote-m32r-sdi.c: Support hardware watchpoint.
10406
8b9740d8
DJ
104072004-03-09 Daniel Jacobowitz <drow@mvista.com>
10408
10409 * user-regs.c: Update copyright years.
10410 (struct user_regs): Rename to gdb_user_regs.
10411 (append_user_reg, builtin_user_regs, user_regs_init)
10412 (user_reg_add, user_reg_map_name_to_regnum)
10413 (usernum_to_user_reg): Update.
10414
4bb7a0a7
DJ
104152004-03-09 Daniel Jacobowitz <drow@mvista.com>
10416
10417 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
10418 (skip_children): New functions.
10419 (locate_pdi_sibling): Call skip_children.
10420
44e1a9eb
DJ
104212004-03-09 Daniel Jacobowitz <drow@mvista.com>
10422
10423 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
10424 * gdbtypes.c (check_typedef): Update comments.
10425
f3dd6933
DJ
104262004-03-09 Daniel Jacobowitz <drow@mvista.com>
10427
10428 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
10429 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
10430 pointer. Update comment about comp_unit_head.
10431 (struct abbrev_info): Shorten two int flags.
10432 (dwarf_alloc_abbrev): Take a CU argument.
10433 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
10434 each time through the loop. Update cleanup argument.
10435 (psymtab_to_symtab_1): Update cleanup call.
10436 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
10437 abbrev_obstack.
10438 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
10439 Just call obstack_free and clear the pointer.
10440
b40c7d58
DJ
104412004-03-09 Daniel Jacobowitz <drow@mvista.com>
10442
10443 * infrun.c (handle_inferior_event): Remove short-circuit code for
10444 events in a different thread.
10445
333dabeb
DJ
104462004-03-09 Daniel Jacobowitz <drow@mvista.com>
10447
10448 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
10449 print the whole transfer.
10450 (initialize_targets): Update description of "set debug target".
10451
aa17d93e
DJ
104522004-03-09 Daniel Jacobowitz <drow@mvista.com>
10453
10454 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
10455
0b71f08f
NW
104562004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
10457
10458 * MAINTAINERS (write after approval): Add myself.
10459
3930f270
CV
104602004-03-08 Corinna Vinschen <vinschen@redhat.com>
10461
10462 * sh-tdep.c (sh_print_registers_info): Use for loop.
10463 Don't skip multiple registers when a float register is encountered.
10464
a2b4a96c
CV
104652004-03-08 Corinna Vinschen <vinschen@redhat.com>
10466
10467 Fix PR tdep/1291.
10468 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
10469 to official SH documentation.
10470
f15a4bc0
AC
104712004-03-07 Andrew Cagney <cagney@redhat.com>
10472
10473 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
10474 unused function.
10475
9498281f
DJ
104762004-03-07 Daniel Jacobowitz <drow@mvista.com>
10477
10478 * arm-tdep.c (thumb_get_next_pc): Handle BX.
10479 (arm_get_next_pc): Handle BX and BLX.
10480
449e1137
AC
104812004-03-07 Andrew Cagney <cagney@redhat.com>
10482
eded0a31
AC
10483 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
10484 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
10485 HPPA_SP_REGNUM.
10486 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
10487 (hppa_target_read_fp): Delete.
10488 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
10489 register_virtual_size, max_register_raw_size,
10490 max_register_virtual_size, register_byte, register_size,
10491 target_read_fp, fp_regnum, and register_bytes. Set register_type
10492 instead of register_virtual_type.
10493 (hppa32_register_type, hppa64_register_type): Replace
10494 hppa32_register_virtual_type and hppa64_register_virtual_type.
10495 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
10496 (HPPA_FP_REGNUM): Define.
10497
f5f907e2
AC
10498 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
10499
69b4bbe4
AC
10500 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
10501 (pa_do_registers_info): Delete.
10502 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
8718a420 10503 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
69b4bbe4 10504 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
f5f907e2 10505
78161e48
AC
10506 * infcall.c (legacy_push_dummy_code): Delete #ifdef
10507 GDB_TARGET_IS_HPPA code.
10508 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
8718a420 10509 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
78161e48
AC
10510 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
10511 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
8718a420
RM
10512 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
10513 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
10514 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
78161e48 10515 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
8718a420
RM
10516 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
10517 (hppa_frameless_function_invocation, hppa64_store_return_value)
10518 (hppa_store_struct_return, hppa64_extract_return_value)
78161e48 10519 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
8718a420 10520 (hppa32_call_dummy_length, hppa64_call_dummy_length)
78161e48 10521 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
8718a420
RM
10522 (find_proc_framesize, deposit_21, restore_pc_queue)
10523 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
210197d2 10524 (rp_saved, pc_in_linker_stub): Delete.
78161e48 10525
782eae8b
AC
10526 Unconditionally enable 64-bit frame and ABI code.
10527 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
10528 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
10529 push_dummy_frame, fix_call_dummy, push_arguments,
10530 call_dummy_location, extract_return_value, use_struct_convention,
10531 store_return_value, store_struct_return, saved_pc_after_call,
10532 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
10533 frame_chain, frame_chain_valid, frameless_function_invocation,
10534 frame_saved_pc, and pop_frame.
78161e48 10535
449e1137
AC
10536 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
10537 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
10538 (hppa_gdbarch_init): Do not set PC_REGNUM.
10539
12507572
MK
105402004-03-06 Mark Kettenis <kettenis@gnu.org>
10541
10542 * config/alpha/tm-fbsd.h: Remove file.
10543 * config/alpha/fbsd.mt: Tweak comment.
10544 (TM_FILE): Set to tm-alpha.h.
10545
c107cc1b
AC
105462004-03-05 Andrew Cagney <cagney@redhat.com>
10547
10548 * infrun.c (step_over_function): When non-legacy code, and no
10549 step_frame_id, use the unwinder to get the caller's frame ID.
10550
f2e7c15d
MK
105512004-03-05 Mark Kettenis <kettenis@gnu.org>
10552
8b0c3633
MK
10553 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
10554 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
10555 bfd_arch_unknown. Adjust comment.
10556
f2e7c15d
MK
10557 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
10558 * i386obsd-tdep.c: Correct spelling in comment.
10559 * i386nbsd-tdep.c: Correct spelling in comment.
10560 * sparc-tdep.c: Correct spelling in comments.
10561
1198ecbe
DC
105622004-03-05 David Carlton <carlton@kealia.com>
10563
10564 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
10565 bug.
10566
9eb42ed1
MK
105672004-03-05 Mark Kettenis <kettenis@gnu.org>
10568
10569 * sparc-tdep.c: Fix typo in comment.
10570
52b5e991
JB
105712004-03-04 J. Brobecker <brobecker@gnat.com>
10572
10573 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
10574
d8151005
DJ
105752004-03-04 Daniel Jacobowitz <drow@mvista.com>
10576
10577 * dwarf2read.c: Add comment describing memory lifetimes.
10578 (struct dwarf2_pinfo): Update comment.
10579 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
10580 (read_enumeration, new_symbol): Don't use obsavestring.
10581
cbeae229
MK
105822004-03-04 Mark Kettenis <kettenis@gnu.org>
10583
722d18c2
MK
10584 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
10585 instead of amd64_fill_fxsave.
10586 * amd64bsd-nat.c (store_inferior_registers): Likewise.
10587 * amd64fbsd-nat.c (fill_fpregset): Likewise.
10588
cbeae229
MK
10589 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
10590 Reorganize code a bit.
10591
b4206d25
OF
105922004-03-04 Orjan Friberg <orjanf@axis.com>
10593
10594 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
8718a420
RM
10595 when the frame pointer is pushed. Don't set the frame pointer's
10596 address on the stack unless it's actually located there.
b4206d25
OF
10597 Set the SRP's address on the stack correctly when the PC is still in
10598 the prologue.
10599 (cris_return_value): New function.
10600 (cris_gdbarch_init): Clear deprecated store_return_value,
10601 extract_return_value.
10602
49b0b195
JB
106032004-03-02 Jim Blandy <jimb@redhat.com>
10604
10605 * stabsread.c (reg_value_complaint): The maximum register number
10606 is one less than the number of registers.
10607
e9ff708b
AC
106082004-03-02 Andrew Cagney <cagney@redhat.com>
10609
10610 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
10611 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
10612 trailing comma and redundant assignment of I386_ST0_REGNUM.
10613 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
10614 32-bit segment registers.
10615
d4715e41
AC
106162004-03-01 Andrew Cagney <cagney@redhat.com>
10617
10618 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
10619 use frame_relative_level and get_next_frame.
10620
3ce2bf18
AC
106212004-02-29 Andrew Cagney <cagney@redhat.com>
10622
10623 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
10624 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
10625 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
10626 Delete macro.
10627
2da6aac3
DJ
106282004-02-29 Daniel Jacobowitz <drow@mvista.com>
10629
10630 * inflow.c (terminal_inferior): Don't give up the terminal if we
10631 previously couldn't get the inferior's terminal state.
10632
6ba34a8d
DJ
106332004-02-29 Daniel Jacobowitz <drow@mvista.com>
10634
10635 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
10636 PC_REGNUM.
10637
faae5abe
AC
106382004-02-28 Andrew Cagney <cagney@redhat.com>
10639
10640 * NEWS: Refer to GDB 6.1.
10641 * README: Refer to GDB 6.1.
10642 * PROBLEMS: Refer to GDB 6.1.
10643
2227a3c5
DJ
106442004-02-28 Daniel Jacobowitz <drow@mvista.com>
10645
10646 * thread-db.c (disable_thread_signals): Remove unused function.
10647
80571bff
MK
106482004-02-28 Mark Kettenis <kettenis@gnu.org>
10649
041bd74b
MK
10650 * amd64-nat.c: Include "gdb_string.h".
10651 (amd64_collect_native_gregset): Zero-extend the 32-bit
10652 general-purpose registers and %eip.
10653
3c017e40
MK
10654 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
10655 * amd64-tdep.c (amd64_collect_fxsave): New function.
10656 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
10657
80571bff
MK
10658 * i387-tdep.h: Update copyright year.
10659 (i387_collect_fxsave): New prototype.
10660 * i387-tdep.c: Update copyright year.
10661 (i387_collect_fxsave): New function containing most of the code
10662 from i387_fill_fxsave.
10663 (i387_fill_fxsave): Call i387_collect_fxsave.
10664
50d71875
AC
106652004-02-28 Andrew Cagney <cagney@redhat.com>
10666
10667 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
10668 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
10669
4a28816e
MK
106702004-02-28 Mark Kettenis <kettenis@gnu.org>
10671
10672 * amd64-tdep.c (amd64_frame_cache): Fix comment.
10673
dbda9972
AC
106742004-02-28 Andrew Cagney <cagney@redhat.com>
10675
10676 * utils.c: Use "", instead of <>, to include readline.
10677 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
10678 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
10679 * source.c, solib.c, exec.c, event-top.c: Ditto.
10680 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
10681 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
10682 * Makefile.in: Update all dependencies.
10683 (readline_tilde_h, readline_history_h): Define.
10684 (readline_headers): Delete.
10685
83277a99
MK
106862004-02-28 Mark Kettenis <kettenis@gnu.org>
10687
91ae4303
MK
10688 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
10689 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
10690 "config/i386/tm-lx64.h".
10691
83277a99
MK
10692 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
10693 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
10694 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
10695
6e1d7d6c
AC
106962004-02-28 Andrew Cagney <cagney@redhat.com>
10697
ecc9ac84
AC
10698 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
10699
6e1d7d6c
AC
10700 * breakpoint.c (_initialize_breakpoint): Use
10701 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
10702 Add help to show command.
10703
9671aeef
MK
107042004-02-28 Mark Kettenis <kettenis@gnu.org>
10705
7fa2737c
MK
10706 * i386-nat.c: Reformat to be closer to coding standards.
10707 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
10708 `retval'. Make variables `align' and `size' local to while-loop.
10709 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
10710 (_initialize_i386_nat): New prototype.
10711
9671aeef
MK
10712 * tui/tui.c: Include <readline/readline.h> instead of
10713 "readline/readline.h". Include it after <term.h> and
10714 "gdb_curses.h".
10715
fca7aa43
AC
107162004-02-27 Andrew Cagney <cagney@redhat.com>
10717
412275d5
AC
10718 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
10719 the new frame unwind code.
10720 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
10721 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
10722 PCOQ_HEAD_REGNUM.
10723
fca7aa43
AC
10724 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
10725 "return_value" and "push_dummy_call".
10726 (hppa32_use_struct_convention): Delete unused function.
10727 (hppa32_store_return_value): Delete unused function.
10728 (hppa32_extract_return_value): Delete unused function.
10729 (hppa32_stack_align): Delete function.
10730
e6a8a7d2
EZ
107312004-02-27 Eli Zaretskii <eliz@elta.co.il>
10732
10733 * coffread.c (enter_linenos): Don't let rawptr reference memory
10734 outside linetab[]'s limits.
10735
1797a8f6
AC
107362004-02-27 Andrew Cagney <cagney@redhat.com>
10737
10738 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
10739 inferior stack space - the stack needs to grow upwards.
10740 (hppa32_frame_align): New function.
10741 (hppa64_frame_align): Replace hppa_frame_align.
10742 (hppa_gdbarch_init): Update.
10743
2e4b5889
OF
107442004-02-26 Orjan Friberg <orjanf@axis.com>
10745
10746 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
10747 (dwarf2-frame.h): Include.
10748 (enum cris_regnums): New enum CRIS_FP_REGNUM.
10749 Remove static variables related to ABI setting.
10750 (struct gdbarch_tdep): Remove cris_abi member.
10751 (struct frame_extra_info): Remove.
10752 (cris_unwind_cache, stack_item): New structs.
10753 (cris_frame_unwind, cris_frame_base): New variables.
10754 (push_stack_item, pop_stack_item)
10755 (cris_frame_unwind_cache, cris_frame_this_id)
10756 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
10757 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
10758 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
10759 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
10760 (cris_reg_struct_has_addr): New functions.
10761 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
8718a420 10762 (cris_frame_saved_pc, cris_saved_pc_after_call,
2e4b5889
OF
10763 (cris_store_struct_return, cris_frameless_function_invocation)
10764 (cris_pop_frame, cris_skip_prologue_main)
10765 (cris_abi_original_store_return_value)
10766 (cris_abi_v2_store_return_value)
10767 (cris_abi_original_extract_return_value)
10768 (cris_abi_v2_extract_return_value)
10769 (cris_abi_original_reg_struct_has_addr)
10770 (cris_abi_v2_reg_struct_has_addr)
10771 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
10772 (cris_push_return_address, cris_abi_update): Remove.
10773 (_initialize_cris_tdep): Remove ABI command.
10774 (cris_dump_tdep): Ditto.
8718a420 10775 (cris_gdbarch_init): Remove ABI command.
2e4b5889
OF
10776 Set store_return_value, extract_return_value, push_dummy_code,
10777 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
10778 frame_unwind_append_sniffer, frame_base_set_default.
10779 Clear deprecated init_frame_pc, push_arguments, store_return_value,
10780 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
10781 sizeof_call_dummy_words, get_saved_register, push_return_address,
8718a420 10782 pop_frame, store_struct_return, frame_init_saved_regs,
2e4b5889
OF
10783 init_extra_frame_info, frameless_function_invocation, frame_chain,
10784 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
10785 dummy_write_sp.
8718a420 10786
6b9acc27
JJ
107872004-02-26 Jeff Johnston <jjohnstn@redhat.com>
10788
10789 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
10790 * valprint.c (print_hex_chars): Change from static to external.
10791 (print_char_chars): New function.
10792 * printcmd.c (print_scalar_formatted): For integer and enum types
10793 that are longer than LONGEST, perform processing via appropriate
10794 print_*_chars routines.
10795
a431654a
AC
107962004-02-26 Andrew Cagney <cagney@redhat.com>
10797
10798 * Makefile.in: Update dependencies.
10799 Changes from Ulrich Weigand,
10800 * s390-tdep.c: Include "dwarf2-frame.h".
10801 (s390_dwarf2_frame_init_reg): New function.
10802 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
10803 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
10804
fa8d40ab
JJ
108052004-02-26 Jeff Johnston <jjohnstn@redhat.com>
10806
10807 * breakpoint.c (pending_break_support): New setting variable.
10808 (break_command_1): Account for pending_break_support setting
10809 when creating pending breakpoints.
10810 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
10811 (_initialize_breakpoint): Add "set breakpoint pending" and
10812 "show breakpoint pending" commands.
10813
0dcd613f
AC
108142004-02-26 Andrew Cagney <cagney@redhat.com>
10815
10816 Fix PR i18n/1570.
10817 * charset.c (backslashable, backslashed, represented): Remove 'e'
10818 from list of escaped characters, not part of ISO-C.
10819
479272a3
JB
108202004-02-25 J. Brobecker <brobecker@gnat.com>
10821
10822 From Peter Schauer <schauer@pdf.de>:
10823 * tui/tui.c: Move system header includes after local includes.
10824 Fixes a build failure on solaris systems.
10825
7613d933
JB
108262004-02-25 J. Brobecker <brobecker@gnat.com>
10827
10828 * configure.in: Refine the previous change.
10829 * configure: Regenerate.
10830
9c1488cb
MK
108312004-02-25 Mark Kettenis <kettenis@gnu.org>
10832
10833 * amd64-tdep.h: Renamed from x86-64-tdep.h.
10834 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
10835 "amd64-tdep.h" instead of "x86-64-tdep.h".
10836 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
10837 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
10838 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
10839 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
10840 and "x86-64-tdep.c".
10841 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
10842 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
10843 and "x86-64-tdep.c".
10844 * amd64bsd-nat.c: Update copyright year.
10845 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
10846 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
10847 "x86-64-tdep.h".
10848 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
10849 "x86-64-tdep.h".
10850 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
10851 "x86-64-tdep.h".
10852 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
10853 "x86-64-tdep.h".
10854 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
10855 "x86-64-tdep.h".
10856 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
10857 "x86-64-tdep.h".
8718a420 10858 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
9c1488cb
MK
10859 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
10860 * Makefile.in (amd64_linux_tdep_h): Renamed from
10861 x86_64_linux_tdep_h.
10862 (amd64_tdep_h): Renamed from x86_64_tdep_h.
10863 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
10864 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
10865 (amd64obsd-tdep.o): Update dependencies.
10866 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
10867 dependencies.
10868 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
10869 dependencies.
10870 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
10871 amd64-linux-nat.c amd64-linux-tdep.c.
10872 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
10873 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
10874 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
10875 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
10876 amd64-tdep.o and amd64-linux-tdep.o.
10877 (TM_FILE): Set to tm-linux64.h.
10878 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
10879 (NAT_FILE): Set to nm-linux64.h.
10880 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
10881 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10882 amd64-tdep.o.
10883 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10884 amd64-tdep.o.
10885 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10886 amd64-tdep.o.
10887
4b8dad4a
RM
108882004-02-25 Roland McGrath <roland@redhat.com>
10889
10890 * remote.c (remote_protocol_qPart_auxv): New variable.
10891 (init_all_packet_configs): Initialize it.
10892 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
10893 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
10894 (show_remote_cmd): Call it.
10895 (_initialize_remote): Initialize commands.
10896 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
10897 service TARGET_OBJECT_AUXV requests.
10898
66745969
JB
108992004-02-25 J. Brobecker <brobecker@gnat.com>
10900
10901 * configure.in: Make sure that the wborder function is available.
10902 Otherwise, search for it in the cur_colr library.
10903 * configure: Regenerate.
10904
79508e1e
AC
109052004-02-25 Andrew Cagney <cagney@redhat.com>
10906
10907 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
10908
571ee600
MK
109092004-02-25 Mark Kettenis <kettenis@gnu.org>
10910
10911 * config/i386/tm-x86-64linux.h: Tweak comments.
10912
2b1b322f 109132004-02-25 Richard Sandiford <rsandifo@redhat.com>
ad74788f
RS
10914
10915 * MAINTAINERS: Add self to write-after-approval list.
10916
4d2acc65
AC
109172004-02-25 Andrew Cagney <cagney@redhat.com>
10918
4b8dad4a 10919 PR cli/1566. Problem found, and fix suggested by David Allan.
4d2acc65
AC
10920 * cli/cli-script.c (execute_control_command): Unconditionally
10921 install a cleanup. Default "ret" to "invalid_control". Use
10922 "break" instead of "return" to escape from the switch.
10923
4cfcaf21
JB
109242004-02-24 J. Brobecker <brobecker@gnat.com>
10925
10926 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
10927 with the lines macro defined in term.h on AiX.
10928 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
10929 a collision with the label_width macro defined in term.h on AiX.
10930
54a5c8d8
KB
109312004-02-23 David Mosberger <davidm@hpl.hp.com>
10932
10933 Committed by Kevin Buettner <kevinb@redhat.com>.
10934
10935 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
10936 * ia64-tdep.c (ia64_write_pc): Make it a global function.
10937 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
10938 instead of ia64_write_pc().
10939 * ia64-linux-tdep.c (regcache.h): Include.
10940 (ia64_linux_write_pc): New function.
4b8dad4a 10941
8a1dac83
RM
109422004-02-23 Roland McGrath <roland@redhat.com>
10943
10944 * auxv.c (info_auxv_command): Fix typos in error messages.
10945
90f90721
MK
109462004-02-23 Mark Kettenis <kettenis@gnu.org>
10947
8a1dac83 10948 * x86-64-tdep.h: Tweak comment.
90f90721
MK
10949 (enum amd64_regnum): New.
10950 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
10951 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
10952 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
10953 (X86_64_XMM1_REGNUM): Removed.
10954 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
10955 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
10956 prototypes for renamed functions.
10957 * x86-64-tdep.c: Fix typo.
10958 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
10959 register numbers.
10960 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
10961 Use constants from `enum amd64_regnum' for register numbers.
10962 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
10963 (amd64_analyze_prologue, amd64_frame_cache,
10964 amd64_sigtramp_frame_cache): Use constants from `enum
10965 amd64_regnum' for register numbers.
10966 (amd64_supply_fpregset): Adjust for renamed functions.
10967 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
10968 `enum amd64_regnum' for register numbers.
10969 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
10970 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
10971 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
10972 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
10973 (amd64_linux_fill_gregset): Adjust for renamed macros.
10974 (fetch_core_registers): Adjust for renamed functions.
10975 (amd64_linux_init_abi): Adjust for renamed functions.
10976 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
10977 renamed functions.
10978 * amd64-nat.c: Adjust for renamed macros.
10979 * amd64bsd-nat.c (fetch_inferior_registers)
10980 (store_inferior_registers): Use constants from `enum amd64_regnum'
10981 for register numbers. Adjust for renamed variables.
10982 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
10983 renamed variables.
10984 (_initialize_amd64fbsd_nat): Use constants from `enum
10985 amd64_regnum' for register numbers.
10986 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
10987 `enum amd64_regnum' for register numbers.
10988 (amd64fbsd_init_abi): Adjust for renamed functions.
10989 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
10990 `enum amd64_regnum' for register numbers.
10991 (amd64nbsd_init_abi): Adjust for renamed functions.
10992 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
10993 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
10994 `enum amd64_regnum' for register numbers.
10995 (amd64obsd_init_abi): Adjust for renamed functions.
10996 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
10997
d5479188
JJ
109982004-02-23 Jeff Johnston <jjohnstn@redhat.com>
10999
11000 * breakpoint.c (print_one_breakpoint): Do not output spaces
11001 after printing <PENDING> for a pending breakpoint.
11002
81cb7cc9
JJ
110032004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11004
11005 * printcmd.c (print_scalar_formatted): Initialize val_long
11006 to remove compiler warning message.
11007
cbdeadca
JJ
110082004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11009
11010 * defs.h (nquery, yquery): New prototypes.
11011 * breakpoint.c (break_command_1): Use new nquery interface.
11012 * utils.c (defaulted_query, nquery, yquery): New functions.
11013
da6bab63
AC
110142004-02-23 Andrew Cagney <cagney@redhat.com>
11015
2f690297
AC
11016 * hppa-tdep.c (hppa_frame_align): New function.
11017 (hppa32_push_dummy_call): New function.
11018 (hppa64_push_dummy_call): New function.
11019 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
11020 disabled.
8a1dac83 11021
da6bab63
AC
11022 * infcall.c (legacy_push_dummy_code): Don't call deprecated
11023 FIX_CALL_DUMMY when push_dummy_call is available.
11024 (call_function_by_hand, push_dummy_code): Ditto.
11025
abf9b42d
AC
110262004-02-22 Andrew Cagney <cagney@redhat.com>
11027
11028 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
11029 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
11030 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
11031 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
11032 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
11033 call_dummy_location to ON_STACK.
11034
10fc94a4
MK
110352004-02-22 Mark Kettenis <kettenis@gnu.org>
11036
51433e4b
MK
11037 * x86-64-linux-tdep.c: Tweak comment.
11038 (amd64_linux_supply_gregset): Renamed from
11039 x86_64_linux_supply_gresget.
11040 (amd64_linux_fill_gregset): Renamed from
11041 x86_64_linux_fill_gregset.
11042 (fetch_core_registers): Adjust for renamed functions.
11043 (amd64_core_fns): Renamed from x86_64_core_fns.
11044 (amd64_linux_sigtramp_start): Renamed from
11045 x86_64_linux_sigtramp_start.
11046 (amd64_linux_pc_in_sigtramp): Renamed from
11047 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
11048 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
11049 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
11050 (amd64_linux_sigcontext_addr): Renamed from
11051 x86_64_linux_sigcontext_addr.
11052 (amd64_linux_sc_reg_offset): Renamed from
11053 x86_64_linux_sc_reg_offset.
11054 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
11055 Adjust for renamed functions and variables.
11056 (_initialize_amd64_linux_tdep): Renamed from
11057 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
11058 variables.
11059 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
11060 Adjust for renamed functions.
11061
430eaf2e
MK
11062 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
11063 from x86_64_linux_gregset64_reg_offset.
11064 (amd64_linux_gregset32_reg_offset): Rename from
11065 x86_64_linux_gregset64_reg_offset.
11066 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
11067 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
11068 (amd64_linux_dr_set_control): Renamed from
11069 x86_64_linux_dr_set_control. Adjust for renamed functions.
11070 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
11071 Adjust for renamed functions.
11072 (amd64_linux_dr_reset_addr): Renamed from
11073 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
11074 (amd64_linux_dr_get_status): Renamed from
11075 x86_64_linux_dr_get_status. Adjust for renamed functions.
11076 (_initialize_amd64_linux_nat): Renamed from
11077 _initialize_x86_64_linux_nat. Adjust for renamed variables and
11078 functions.
11079 * config/i386/nm-x86-64linux.h: Update copyright year.
11080 Adjust for renamed functions.
11081
10fc94a4
MK
11082 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
11083 amd64fbsd_sigtramp_start.
11084 (amd64fbsd_sigtramp_end_addr): Renamed from
11085 amd64fbsd_sigtramp_end.
11086 (amd64fbsd_init_abi): Adjust for renamed variables.
11087 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
11088 variables.
11089 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
11090 amd64fbsd_sigtramp_start.
11091 (amd64fbsd_sigtramp_end_addr): Renamed from
11092 amd64fbsd_sigtramp_end.
11093
343af405
AC
110942004-02-22 Andrew Cagney <cagney@redhat.com>
11095
537987fc
AC
11096 * hppa-tdep.c (hppa32_return_value): New function.
11097 (hppa64_return_value): New function.
11098 (hppa_gdbarch_init): Set return_value; keep disabled.
11099
fad850b2
AC
11100 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
11101 struct-return and inferior function call methods.
11102
26d08f08
AC
11103 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
11104 "frame-base.h".
11105 (struct hppa_frame_cache): Define.
11106 (hppa_frame_cache, hppa_frame_this_id): New functions.
11107 (hppa_frame_prev_register): New function.
11108 (hppa_frame_unwind, hppa_frame_base): New variables.
11109 (hppa_frame_unwind_sniffer): New function.
11110 (hppa_frame_base_address, hppa_unwind_pc): New function.
11111 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
11112 sniffer, and frame base sniffer; keep disabled.
11113 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
11114 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
11115
e7d7bd65
AC
11116 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
11117 to predicates for "seriously old code".
11118
e963316f
AC
11119 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
11120 runtime if(0).
11121
56132691
AC
11122 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
11123 unsigned.
11124 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
e963316f 11125
343af405
AC
11126 * config/pa/tm-hppa.h: Update copyright.
11127 (DEPRECATED_INIT_FRAME_PC): Delete macro.
11128 (deprecated_init_frame_pc_default): Delete declaration.
11129 (hppa_frame_init_saved_regs): Delete declaration.
11130 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
11131 * hppa-tdep.c: Include "arch-utils.h".
11132 (hppa_gdbarch_init): Set deprecated init_frame_pc
11133 and deprecated frame_init_saved_regs.
11134 (hppa_frame_init_saved_regs): Make static.
11135
f5859b4d
MK
111362004-02-22 Mark Kettenis <kettenis@gnu.org>
11137
86f6f8e7 11138 Remove old 386BSD support.
cf7c5c23 11139 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
86f6f8e7
MK
11140 * configure.host: Remove i[34567]86-*-bsd*.
11141 * configure.tgt: Remove i[34567]86-*-bsd*.
11142 * i386b-nat.c: Removed.
11143 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
cf7c5c23
MK
11144 (i386b-nat.o): Remove dependencies.
11145
86f6f8e7
MK
11146 * config/i386/i386bsd.mh: Removed.
11147 * config/i386/i386bsd.mt: Removed.
11148 * config/i386/nm-i386bsd.h: Removed.
11149 * config/i386/tm-i386bsd.h: Removed.
11150 * config/i386/xm-i386bsd.h: Removed.
11151
971218cd
MK
11152 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
11153
7e654c37
MK
11154 * amd64fbsd-tdep.c: Include "solib-svr4.h".
11155 (amd64fbsd_init_abi): Set link map offsets.
11156 * amd64nbsd-tdep.c: Include "slib-svr4.h".
11157 (amd64nbsd_init_abi): Set link map offsets.
11158 * amd64obsd-tdep.c: Include "solib-svr4.h".
11159 (amd64obsd_init_abi): Set link map offsets.
11160 * i386fbsd-tdep.c: Include "solib-svr4.h".
11161 (i386fbsd_init_abi): Set link map offsets.
11162 * i386nbsd-tdep.c: Include "solib-svr4.h".
11163 (i386nbsdelf_init_abi): Set link map offsets.
11164 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
11165 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
11166 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
11167 solib-legacy.o and core-aout.o. Reformat.
11168 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
11169 solib-svr4.o, solib-legacy.o. Reformat.
11170 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
11171 * config/i386/nbsdelf.mh: Reformat.
11172 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
11173 solib-svr4.o, solib-legacy.o and corelow.o.
11174 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
11175 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
11176 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
11177 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11178 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11179 (TM_FILE): Set to tm-fbsd.h.
11180 * config/i386/nbsd.mt (TDEPFILES): Reformat.
11181 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
11182 solib-svr4.o.
11183 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
11184 solib-svr4.o.
11185 (TM_FILE): Set to nm-nbsd.h.
11186 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
11187 Simplify shared library support. Don't include "elf/common.h".
11188 (SVR4_SHARED_LIBS): Don't define.
11189 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
11190 "solib.h".
11191 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
11192 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
11193 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
11194 Don't include "i386/tm-i386.h". Include "solib.h".
11195 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
11196 Don't include "i386/tm-i386.h".
11197 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
11198 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
11199 Include "i386/xm-i386.h".
11200 (HOST_LONG_DOUBLE_FORMAT): Remove.
11201
5d93ae8c
MK
11202 Fix OpenBSD/i386 sigtramp recognition.
11203 * i386-tdep.h: Update copyright year.
11204 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
11205 (i386bsd_sigtramp_end): New prototypes.
11206 (i386fbsd_sigtramp_start_addr): Renamed from
11207 i386fbsd_sigtramp_start.
11208 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11209 (i386obsd_sigtramp_start_addr): Renamed from
11210 i386obsd_sigtramp_start.
11211 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11212 * i386bsd-tdep.c: Update copyright year.
11213 (i386bsd_pc_in_sigtramp): Make public.
11214 * i386fbsd-nat.c: Update copyright year.
11215 (_initialize_i386fbsd_nat): Adjust for renamed variables.
11216 * i386fbsd-tdep.c: Update copyright year.
11217 (i386fbsd_sigtramp_start_addr): Renamed from
11218 i386fbsd_sigtramp_start.
11219 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11220 (i386fbsdaout_init_abi): Adjust for renamed variables.
11221 * i386obsd-nat.c: Update copyright year.
11222 (_initialize_i386obsd_nat): Adjust for renamed variables.
11223 * i386obsd-tdep.c: Include "target.h".
11224 (i386obsd_page_size): New variable.
11225 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
11226 (i386obsd_sigtramp_end): New functions.
11227 (i386obsd_sigtramp_start_addr): Renamed from
11228 i386obsd_sigtramp_start.
11229 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11230 (i386obsd_init_abi): Adjust for renamed variables. Set
11231 pc_in_sigtramp, sigtramp_start and sigtramp_end.
11232 * Makefile.in (i386obsd-tdep.o): Update dependencies.
11233
84d04465
MK
11234 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
11235 trampoline change in OpenBSD kernel.
11236
b053aceb
MK
11237 * amd64-nat.c: Update copyright year.
11238 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
11239 architecture from REGCACHE.
11240
f5859b4d
MK
11241 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
11242 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
11243
e4bbbda8
MK
112442004-02-21 Mark Kettenis <kettenis@gnu.org>
11245
ba361932
MK
11246 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
11247 i[34567]86-*-openbsd3.[0-3].
11248 * config/i386/obsdaout.mh: New file.
11249
d3e48264
MK
11250 * config/i386/obsd.mh (MH_FLAGS): Remove.
11251
60a6eeb6
MK
11252 Fix PR build/1549.
11253 * i386obsd-tdep.c: Update copyright years. Include
11254 "solib-svr4.h".
11255 (i386obsd_init_abi): Don't set regset_from_core_section here.
11256 (i386obsd_aout_init_abi): New function. Set
11257 regset_from_core_section here.
11258 (i386obsd_elf_init_abi): New function.
11259 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
11260 * Makefile.in (i386obsd-tdep.o): Update dependecies.
11261 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
11262 (TM_FILE): Set to tm-nbsd.h.
11263
11264 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
11265 solib-sunos.o.
11266
e4bbbda8
MK
11267 * solib-svr4.h: Update copyright year.
11268 (svr4_ilp32_fetch_link_map_offsets)
11269 (svr4_lp64_fetch_link_map_offsets): New prototype.
11270 * solib-svr4.c: Update copyright year.
11271 (svr4_ilp32_fetch_link_map_offsets)
11272 (svr4_lp64_fetch_link_map_offsets): New function.
11273
f6fe98ef
DJ
112742004-02-20 Daniel Jacobowitz <drow@mvista.com>
11275
11276 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
11277 to the partial symbol table.
11278
589ca796
JB
112792004-02-20 J. brobecker <brobecker@gnat.com>
11280
11281 * PROBLEMS: Add description of problem documented under gdb/1560.
11282
2031c21a
MK
112832004-02-20 Mark Kettenis <kettenis@gnu.org>
11284
30b344b1
MK
11285 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
11286 comments.
11287 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
11288 functions.
11289 (amd64obsd_init_abi): Reorder initializations. Use
11290 amd64obsd_r_reg_offset to initialize the general-purpose register
11291 set details. Set regset_from_core_section.
11292 (_initialize_amd64obsd_tdep): Rename from
11293 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
11294 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
11295 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
11296
2031c21a
MK
11297 * NEWS (New native configurations): Mention OpenBSD/alpha.
11298 * configure.tgt: Add alpha*-*-openbsd*.
11299 * configure.host: Add alpha*-*-openbsd*.
11300 * alphanbsd-tdep.c: Update copyright year.
11301 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
11302
42471775
AC
113032004-02-20 Andrew Cagney <cagney@redhat.com>
11304
11305 Fix PR tdep/1372.
11306 * configure.tgt: Delete target "none-*-*".
11307 * configure.host: Delete host "none-*-*".
11308 * config/none/none.mh: Delete file.
11309 * config/none/none.mt: Delete file.
11310 * config/none/xm-none.h: Delete file.
11311 * config/none/tm-none.h: Delete file.
11312 * config/none/nm-none.h: Delete file.
11313
960ccd7d
FF
113142004-02-19 Fred Fish <fnf@redhat.com>
11315
11316 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
11317 cache->uses_fp prior to setting it.
11318
5f883edd
FF
113192004-02-19 Fred Fish <fnf@redhat.com>
11320
11321 Fix for PR breakpoint/1558.
11322 * sh-tdep.c (IS_JSR): New macro.
11323 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
11324
f98c22d5
JB
113252004-02-19 Jim Blandy <jimb@redhat.com>
11326
11327 * findvar.c (value_from_register): Doc fix.
11328
95051d27
JJ
113292004-02-19 Jeff Johnston <jjohnstn@redhat.com>
11330
11331 * printcmd.c (print_scalar_formatted): Do not check for sizeof
11332 type being greater than sizeof of host's LONGEST. Always use
11333 unpack_long() unless format 'f' chosen.
11334
ccefbec3
EZ
113352004-02-19 Joel Brobecker <brobecker@gnat.com>
11336
11337 Committed by Elena Zannoni <ezannoni@redhat.com>
2ede629f 11338
ccefbec3
EZ
11339 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
11340 contains a symbol wich is the best, non-exact match for the given
11341 pc. Update comments.
11342
113432004-02-19 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 11344
2ede629f
EZ
11345 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
11346 macro, which was part of the now removed Mach 3 port.
11347 * utils.c (request_quit): Ditto.
11348
567ee972
MK
113492004-02-18 Mark Kettenis <kettenis@gnu.org>
11350
11351 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
11352 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
11353
50cca7bb
MK
113542004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11355
11356 Committed by Mark Kettenis <kettenis@gnu.org>.
11357
11358 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
11359 Define.
11360
226361c4
AC
113612004-02-18 Andrew Cagney <cagney@redhat.com>
11362
11363 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
11364 CONFIG_INSTALL and CONFIG_UNINSTALL.
11365 * configure: Re-generate.
11366 * interps.h (INTERP_TUI): Define.
11367 * Makefile.in: Update dependencies.
11368 (TUI): New macro.
11369 (tui-main.o): Specify dependencies.
11370 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
11371 * tui/tui-main.c: New file.
11372
49cfa46f
MK
113732004-02-18 Mark Kettenis <kettenis@gnu.org>
11374
e2879ccb
MK
11375 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
11376 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
11377 dependencies.
11378 * configure.host: Add x86_64-*-openbsd*.
11379 * configure.tgt: Add x86_64-*-openbsd*.
11380 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
11381
c43f4bec
MK
11382 * tui/tui.c: Don't include <malloc.h>.
11383
09ae75b6
MK
11384 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
11385 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
11386 amd64nbsd-tdep.c.
11387
49cfa46f 11388 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
8a1dac83 11389 static. Remove extraneous whitespace.
49cfa46f
MK
11390 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
11391 static.
11392
05957fdb
JB
113932004-02-17 Jim Blandy <jimb@redhat.com>
11394
11395 * findvar.c (value_from_register): Doc fix.
11396
d0f54f9d
JB
113972004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11398
11399 Committed by Jim Blandy <jimb@redhat.com>.
e1457d83 11400
8a1dac83 11401 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
c253954e
JB
11402 CORE_ADDR as type for selectors. Correct types for GNU run time
11403 message lookup function to use double indirection.
11404 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
11405 * objc-lang.h (lookup_child_selector): Adapt prototype.
11406
9cbd5950
JB
11407 * s390-nat.c (SUBOFF): New macro.
11408 (supply_gregset, fill_gregset): Use it to handle debugging
11409 of 32-bit exectuables running under a 64-bit kernel.
11410 * s390-tdep.c: Include "solib-svr4.h".
11411 (s390_svr4_fetch_link_map_offset): New function.
11412 (s390x_svr_fetch_link_map_offset): Likewise.
11413 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
11414 * Makefile.in (s390-tdep.o): Update dependencies.
11415
a8c99f38
JB
11416 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
11417 "frame-unwind.h".
11418 (s390_readinstruction): Reformat. Use read_memory_nobpt.
11419 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
11420 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
11421 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
11422 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
11423 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
8a1dac83 11424 S390_SIGNAL_FRAMESIZE,
a8c99f38
JB
11425 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
11426 (struct frame_extra_info): Remove.
11427 (s390_memset_extra_info): Remove.
f73b1eff
JB
11428 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
11429 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
11430 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
a8c99f38
JB
11431 (is_rse): Renamed to ...
11432 (is_rsy): ... this. Support long displacements.
11433 (is_rxe): Renamed to ...
11434 (is_rxy): ... this. Support long displacements.
11435 (compute_x_addr): Support long displacements.
11436 (struct s390_prologue_data): New data type.
11437 (s390_on_stack): Change API to use struct s390_prologue_data.
11438 (s390_store): Reimplement.
11439 (s390_load): New function.
11440 (s390_get_signal_frame_info): Remove.
11441 (s390_get_frame_info): Remove, replace by ...
11442 (s390_analyze_prolog): ... this new function.
11443 (s390_check_function_end): Remove.
11444 (s390_function_start): Remove.
11445 (s390_frameless_function_invokation): Remove.
11446 (s390_is_sigreturn): Remove.
11447 (s390_init_frame_pc_first): Remove.
11448 (s390_init_frame_extra_info): Remove.
11449 (s390_frame_init_saved_regs): Remove.
11450 (s390_frame_saved_pc_nofix): Remove.
11451 (s390_frame_saved_pc): Remove.
11452 (s390_frame_chain): Remove.
11453 (s390_fp_regnum, s390_read_fp): Remove.
11454 (s390_pop_frame_regular, s390_pop_frame): Remove.
11455 (s390_saved_pc_after_call): Remove.
11456 (s390_skip_prologue): Reimplement.
11457 (s390_in_function_epilogue_p): Support long displacements.
11458 (struct s390_unwind_cache): New data structure.
11459 (s390_frame_unwind_cache): New function.
11460 (s390_prologue_frame_unwind_cache): Likewise.
11461 (s390_backchain_frame_unwind_cache): Likewise.
11462 (s390_frame_this_id, s390_frame_prev_register): Likewise.
11463 (s390_frame_unwind): Define.
11464 (s390_frame_sniffer): New function.
11465 (struct s390_pltstub_unwind_cache): New data structure.
11466 (s390_pltstub_frame_unwind_cache): New function.
11467 (s390_pltstub_frame_this_id): Likewise.
11468 (s390_pltstub_frame_prev_register): Likewise.
11469 (s390_pltstub_frame_unwind): Define.
11470 (s390_pltstub_frame_sniffer): New function.
11471 (struct s390_sigtramp_unwind_cache): New data structure.
11472 (s390_sigtramp_frame_unwind_cache): New function.
11473 (s390_sigtramp_frame_this_id): Likewise.
11474 (s390_sigtramp_frame_prev_register): Likewise.
11475 (s390_sigtramp_frame_unwind): Define.
11476 (s390_sigtramp_frame_sniffer): New function.
11477 (s390_frame_base_address, s390_local_base_address): New functions.
11478 (s390_frame_base): Define.
11479 (s390_unwind_pc, s390_unwind_sp): New function.
11480 (s390_push_dummy_call): Use new frame base location.
11481 (s390_unwind_dummy_id): Likewise.
11482 (s390_gdbarch_init): Remove calls to:
11483 set_gdbarch_frameless_function_invocation,
11484 set_gdbarch_deprecated_init_frame_pc,
11485 set_gdbarch_deprecated_frame_chain,
11486 set_gdbarch_deprecated_frame_init_saved_regs,
11487 set_gdbarch_deprecated_pop_frame,
11488 set_gdbarch_deprecated_init_extra_frame_info,
11489 set_gdbarch_deprecated_init_frame_pc_first,
11490 set_gdbarch_deprecated_target_read_fp,
11491 set_gdbarch_deprecated_frame_saved_pc,
11492 set_gdbarch_deprecated_saved_pc_after_call,
11493 set_gdbarch_deprecated_fp_regnum.
11494 Add calls to:
11495 set_gdbarch_in_solib_call_trampoline,
11496 frame_unwind_append_sniffer,
11497 frame_base_set_default,
11498 set_gdbarch_unwind_pc,
11499 set_gdbarch_unwind_sp.
11500 * Makefile.in (s390-tdep.o): Update dependencies.
11501
b0cf273e
JB
11502 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
11503 (S390_STACK_FRAME_OVERHEAD): Remove.
11504 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
11505 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
11506 (s390_promote_integer_argument): Remove.
11507 (s390_cannot_extract_struct_value_address): Remove.
11508 (s390_use_struct_convention, s390_store_struct_return): Remove.
11509 (s390_extract_return_value, s390_store_return_value): Remove.
11510 (s390_return_value_convention, s390_return_value): New functions.
11511 (is_float_singleton): Handle typedefs.
8a1dac83 11512 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
b0cf273e
JB
11513 Remove, replace by ...
11514 (s390_function_arg_pass_by_reference, s390_function_arg_float,
11515 s390_function_arg_integer): ... these new functions.
11516 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
11517 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
11518 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
11519 Fill in tdep->abi.
11520 Remove calls to:
11521 set_gdbarch_deprecated_store_struct_return,
11522 set_gdbarch_deprecated_extract_return_value,
11523 set_gdbarch_deprecated_store_return_value,
11524 set_gdbarch_use_struct_convention,
11525 set_gdbarch_extract_struct_value_address,
11526 set_gdbarch_deprecated_pc_in_call_dummy,
11527 set_gdbarch_deprecated_push_arguments,
11528 set_gdbarch_deprecated_save_dummy_frame_tos,
11529 set_gdbarch_deprecated_push_return_address,
11530 set_gdbarch_deprecated_sizeof_call_dummy_words,
11531 set_gdbarch_deprecated_call_dummy_words,
11532 set_gdbarch_deprecated_dummy_write_sp.
11533 Add calls to:
11534 set_gdbarch_push_dummy_call,
11535 set_gdbarch_unwind_dummy_id,
11536 set_gdbarch_return_value.
8a1dac83 11537
e1457d83
JB
11538 * config/s390/nm-linux.h: Update comments.
11539 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
11540 (STOPPED_BY_WATCHPOINT): Redefine.
11541 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
11542 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
11543 (s390_stopped_by_watchpoint): Likewise.
11544 (watch_area_cnt): Remove.
11545 * s390-nat.c: Update comments.
11546 (watch_area): Remove typedef.
11547 Global replace watch_area by struct watch_area.
11548 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
8a1dac83 11549 (s390_stopped_by_watchpoint): Remove pid argument,
e1457d83
JB
11550 use s390_inferior_tid. Add short-cut for the no watchpoint case.
11551 (s390_fix_watch_points): Remove pid argument,
11552 use s390_inferior_tid. Recompute area spanned by watchpoints.
11553 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
11554 argument. Reimplement.
11555
d0f54f9d
JB
11556 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
11557 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
11558 (FETCH_INFERIOR_REGISTERS): Define.
8a1dac83 11559 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
d0f54f9d
JB
11560 core-regset.o.
11561 * config/s390/s390x.mt: Remove.
11562 * config/s390/tm-s390.h: Remove.
11563 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
11564 (TARGET_ELF64): Remove.
11565 (SKIP_TRAMPOLINE_CODE): Do not undefine.
11566 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
11567 s390*-*-* case; always set gdb_target to s390.
11568 * regformats/reg-s390.dat: Remove control registers.
11569 * regformats/reg-s390x.dat: Likewise.
11570 * s390-tdep.h: New file.
8a1dac83 11571 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
d0f54f9d
JB
11572 Include "inferior.h" and "s390-tdep.h".
11573 Remove private definition of offsetof.
11574 (s390_register_u_addr): Remove.
11575 (regmap_gregset, regmap_fpregset): Define.
11576 (supply_gregset, fill_gregset): Reimplement.
11577 (supply_fpregset, fill_fpregset): Likewise.
11578 (s390_inferior_tid): New function.
11579 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
11580 (fetch_inferior_registers, store_inferior_registers): Likewise.
11581 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
11582 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
11583 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
11584 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
11585 (struct gdbarch_tdep): Define.
11586 (struct s390_register_info): Define.
11587 (s390_register_info): New variable.
11588 (s390_register_name): Reimplement.
11589 (s390_register_type): New function.
11590 (s390_register_raw_size, s390x_register_raw_size): Remove.
11591 (s390_cannot_fetch_register): Remove.
11592 (s390_register_byte): Remove.
11593 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
11594 (s390_dwarf_regmap): New variable.
11595 (s390_dwarf_reg_to_regnum): New function.
11596 (s390_stab_reg_to_regnum): Remove.
11597 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
11598 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
11599 (s390_convert_register_p): Likewise.
11600 (s390_register_to_value, s390_value_to_register): Likewise.
11601 (s390_register_reggroup_p): Likewise.
11602 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
11603 s390_gregset, s390x_gregset, s390_fpregset): New variables.
11604 (s390_supply_regset, s390_regset_from_core_section): New functions.
11605 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
11606 (S390_FPR_SIZE): Likewise.
11607 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
11608 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
11609 (S390_NUM_GPRS): Move here from tm-s390.h.
11610 (S390_NUM_FPRS): Likewise.
11611 (s390_in_function_epilogue_p): New function.
11612 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
11613 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
11614 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
11615 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
11616 Replace S390_FP_REGNUM by S390_SP_REGNUM.
11617 Remove calls to:
11618 set_gdbarch_deprecated_max_register_raw_size,
8a1dac83
RM
11619 set_gdbarch_deprecated_max_register_virtual_size,
11620 set_gdbarch_deprecated_register_byte,
d0f54f9d 11621 set_gdbarch_cannot_fetch_register,
8a1dac83 11622 set_gdbarch_cannot_store_register,
d0f54f9d
JB
11623 set_gdbarch_deprecated_register_size,
11624 set_gdbarch_deprecated_register_raw_size,
11625 set_gdbarch_deprecated_register_virtual_size,
11626 set_gdbarch_deprecated_register_virtual_type,
11627 set_gdbarch_deprecated_register_bytes.
11628 Add calls to:
11629 set_gdbarch_num_pseudo_regs,
11630 set_gdbarch_register_type,
11631 set_gdbarch_convert_register_p,
11632 set_gdbarch_register_to_value,
11633 set_gdbarch_value_to_register,
11634 set_gdbarch_register_reggroup_p,
11635 set_gdbarch_regset_from_core_section,
11636 set_gdbarch_pseudo_register_read,
11637 set_gdbarch_pseudo_register_write,
11638 set_gdbarch_in_function_epilogue_p.
11639 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
11640 (s390_tdep_h): New variable.
11641
8cfe231d
JB
116422004-02-17 Jim Blandy <jimb@redhat.com>
11643
4589a601
JB
11644 * findvar.c (value_from_register): If the type has no length, just
11645 return an acceptable value --- don't report an internal error.
11646
8cfe231d
JB
11647 * stabsread.c (read_type): If we find any type numbers that are
11648 forward references, complain if the references aren't resolved by
11649 the time we're finished reading.
11650 (cleanup_undefined_types): Make error message more appropriate for
11651 a complaint.
11652
5bf0017e
EZ
116532004-02-17 Elena Zannoni <ezannoni@redhat.com>
11654
9d62932d
EZ
11655 * Makefile.in (defs_h): Remove dependency on progress_h.
11656 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
11657 progress.h.
11658 * main.c (captured_main): Delete use of START_PROGRESS and
11659 END_PROGRESS.
11660
116612004-02-17 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 11662
5bf0017e
EZ
11663 * objfiles.c (terminate_minimal_symbol_table): Add back
11664 initialization of MSYMBOL_TYPE.
11665
9fc9f5e2
AC
116662004-02-17 David Mosberger <davidm@hpl.hp.com>
11667
11668 Committed by Andrew Cagney.
11669 * Makefile.in (ia64_tdep_h): New macro.
11670 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
11671 (ia64-tdep.o): Likewise.
11672 * ia64-tdep.h: New file.
11673 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
11674 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
11675 (ia64_aix_sigcontext_register_address): Likewise.
11676 (ia64_linux_getunwind_table): Delete declaration.
11677 * ia64-linux-tdep.c: Likewise.
11678
76cd2bd9
CV
116792004-02-17 Corinna Vinschen <vinschen@redhat.com>
11680
11681 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
11682 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
11683 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
11684
634aa483
AC
116852004-02-17 Andrew Cagney <cagney@redhat.com>
11686
11687 * symtab.c (skip_prologue_using_sal): New function.
11688 * symtab.h (skip_prologue_using_sal): Declare.
11689 * frv-tdep.c: Include "symtab.h".
11690 (skip_prologue_using_sal): Delete function.
11691 * mips-tdep.c (skip_prologue_using_sal): Delete function.
11692 * rs6000-tdep.c (refine_prologue_limit): Mention
11693 skip_prologue_using_sal.
11694 * ia64-tdep.c (refine_prologue_limit): Ditto.
11695 * Makefile.in: Update dependencies.
11696
116972004-02-16 Andrew Cagney <cagney@redhat.com>
19772a2c 11698
39ce7b3f
AC
11699 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
11700 START_INFERIOR_TRAPS_EXPECTED.
11701 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
11702 START_INFERIOR_TRAPS_EXPECTED.
11703 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
11704 Delete macro.
11705 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
11706 macro, moved to "nm-osf.h". Update copyright.
11707 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
11708 update copyright.
11709
19772a2c
AC
11710 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
11711 and function replacing FRAMELESS_FUNCTION_INVOCATION.
11712 * blockframe.c (legacy_frameless_look_for_prologue): Rename
11713 frameless_look_for_prologue.
11714 * frame.h (legacy_frameless_look_for_prologue): Rename
11715 frameless_look_for_prologue.
11716 * gdbarch.h, gdbarch.c: Re-generate.
11717 * sh64-tdep.c (sh64_gdbarch_init): Update.
11718 * sh-tdep.c (sh_gdbarch_init): Update.
11719 * s390-tdep.c (s390_gdbarch_init): Update.
11720 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11721 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11722 * m68k-tdep.c (m68k_gdbarch_init): Update.
11723 (delta68_frame_args_address): Update.
11724 * m32r-tdep.c (m32r_gdbarch_init): Update.
11725 * hppa-tdep.c (hppa_gdbarch_init): Update.
11726 * h8300-tdep.c (h8300_gdbarch_init): Update.
11727 * frv-tdep.c (frv_gdbarch_init): Update.
11728 (frv_frameless_function_invocation): Update.
11729 * cris-tdep.c (cris_gdbarch_init): Update.
11730 (cris_frameless_function_invocation): Update.
11731 * avr-tdep.c (avr_gdbarch_init): Update.
11732 * arm-tdep.c (arm_gdbarch_init): Update.
11733 * stack.c (frame_info): Update, call predicate.
11734 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
11735 * frame.c (legacy_get_prev_frame): Update, call predicate..
11736 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
11737 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
11738 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
11739 invocation.
11740 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11741 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11742 * vax-tdep.c (vax_gdbarch_init): Ditto.
2be8b3c1
AC
11743
11744 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
11745 function.
11746
7dcaac91
DJ
117472004-02-16 Daniel Jacobowitz <drow@mvista.com>
11748
11749 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
11750 initializations.
11751
88289b6e
AC
117522004-02-16 Andrew Cagney <cagney@redhat.com>
11753
11754 * tui/tui-windata.c: Include "gdb_string.h".
11755 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
11756 * tui/tui-layout.c, tui/tui-command.c: Ditto.
11757 * Makefile.in: Update dependencies.
11758
9f976b41
DJ
117592004-02-16 Daniel Jacobowitz <drow@mvista.com>
11760
11761 * Makefile.in (infrun.o): Add $(gdb_assert_h).
11762 * infrun.c: Include "gdb_assert.h".
11763 (singlestep_ptid, saved_singlestep_ptid)
11764 (stepping_past_singlestep_breakpoint): New variables.
11765 (resume): Set singlestep_ptid. Check for singlestep thread
11766 hop.
11767 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
11768 (handle_inferior_event): Handle singlestep thread hop.
11769
c324d747
AC
117702004-02-16 Andrew Cagney <cagney@redhat.com>
11771
f090b9b1
AC
11772 * dwarf2-frame.c (dwarf2_frame_ops): New function.
11773 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
11774 (dwarf2_frame_init_reg): Ditto.
11775
fd33e6cb
AC
11776 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
11777 suggested by Joshua Neuheisel
11778
c324d747
AC
11779 * configure.in: Always check for curses, including pdcurses.
11780 Warn, instead of error, when no curses are found. Enable TUI when
11781 curses is available.
11782 * configure: Re-generate.
11783
b66ba949
CV
117842004-02-16 Corinna Vinschen <vinschen@redhat.com>
11785
11786 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
11787 sh_sh4_register_convert_to_virtual.
11788 (sh_register_convert_to_raw): Rename from
11789 sh_sh4_register_convert_to_raw.
11790 (sh_pseudo_register_read): Accomodate above name change.
11791 (sh_pseudo_register_write): Ditto.
11792
b58cbbf2
CV
117932004-02-16 Corinna Vinschen <vinschen@redhat.com>
11794
11795 * sh-tdep.c (sh_generic_register_name): Remove.
11796 (sh_gdbarch_init): Use sh_sh_register_name in default case.
11797
5929a910
AC
117982004-02-15 Andrew Cagney <cagney@redhat.com>
11799
4566dfcf
AC
11800 * configure.in (build_warnings): Add -Wunused-function.
11801 * configure: Re-generate.
11802
db11ed55
AC
11803 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
11804 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
11805
46ac7a5d
AC
11806 * procfs.c (procfs_init_inferior): Assume that
11807 START_INFERIOR_TRAPS_EXPECTED is defined.
11808 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
11809 * config/ns32k/tm-nbsd.h: Delete file,
11810 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
11811
ba801595
AC
11812 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
11813 * config/vax/tm-vax.h: Delete file.
11814
5929a910
AC
11815 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11816 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11817 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11818 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11819 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
11820 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11821 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
11822
8f22cb90
MK
118232004-02-15 Mark Kettenis <kettenis@gnu.org>
11824
11825 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
11826 * dwarf2-frame.c (dwarf2_frame_data): New variable.
11827 (struct dwarf2_frame_ops): New.
11828 (dwarf2_frame_default_init_reg): New function, based on
11829 dwarf2_frame_init_reg.
11830 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
11831 (dwarf2_frame_init_reg): Call architecture-specific function.
11832 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
11833 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
11834 instead of dwarf2_frame_data.
11835 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
11836 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
11837
8132723e
AC
118382004-02-15 Andrew Cagney <cagney@redhat.com>
11839
046a4708
AC
11840 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
11841 register_gdbarch_swap.
11842 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
11843 * f-lang.c (_initialize_f_language): Update, use
11844 DEPRECATED_REGISTER_GDBARCH_SWAP.
11845 * remote.c (_initialize_remote): Ditto.
11846 * regcache.c (_initialize_regcache): Ditto.
11847 * parse.c (_initialize_parse): Ditto.
11848 * infrun.c (_initialize_infrun): Ditto.
11849 * mi/mi-main.c (_initialize_mi_main): Ditto.
11850 * gdbtypes.c (_initialize_gdbtypes): Ditto.
8a1dac83 11851
549c1eea
AC
11852 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
11853 poking .cacheable directly.
11854 * symfile.c (symfile_bfd_open): Ditto.
11855
0c0b39de
AC
11856 * Makefile.in: Update all dependencies.
11857
8132723e
AC
11858 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
11859 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
11860 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
11861 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
11862 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
0c0b39de 11863
b9d26eb9
AC
118642004-02-14 Andrew Cagney <cagney@redhat.com>
11865
8e1f669a
AC
11866 * arch-utils.c (legacy_convert_register_p): Check
11867 DEPRECATED_REGISTER_CONVERTIBLE_P.
11868 * findvar.c (value_of_register): Ditto.
11869
cd0bfa36
AC
11870 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
11871 * gdbarch.h, gdbarch.c: Re-generate.
11872 * arch-utils.c (deprecated_register_convertible_not): Delete.
11873 * arch-utils.h (deprecated_register_convertible_not): Delete.
11874 * mi/mi-main.c (get_register): Update. Update copyright.
11875 * infcmd.c (default_print_registers_info): Update.
11876
b9d26eb9
AC
11877 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
11878 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
11879 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
8a1dac83 11880 * gdbarch.h, gdbarch.c: Re-generate.
b9d26eb9
AC
11881 * frame.c (deprecated_get_next_frame_hack): Delete function.
11882 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
11883 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
11884 Update.
11885 * infcall.c (call_function_by_hand): Update.
11886
9ab9195f
EZ
118872004-02-14 Elena Zannoni <ezannoni@redhat.com>
11888
11889 * symfile.c (init_entry_point_info, entry_point_address): Move
8a1dac83 11890 from here...
9ab9195f
EZ
11891 * objfiles.c (init_entry_point_info, entry_point_address):..to
11892 here.
11893 * symfile.h (init_entry_point_info, entry_point_address): Remove
11894 prototypes.
11895 * objfiles.h (init_entry_point_info, entry_point_address):Add
8a1dac83 11896 prototypes.
9ab9195f
EZ
11897 * cris-tdep.c: Remove include of symfile.h. Add include of
11898 objfiles.h.
11899 * infcall.c: Ditto.
11900 * mcore-tdep.c: Ditto.
11901 * mn10300-tdep.c: Ditto.
11902 * sh64-tdep.c: Ditto.
11903 * v850-tdep.c: Ditto.
11904 * arm-tdep.c: Remove include of symfile.h.
11905 * blockframe.c: Ditto.
11906 * coffread.c: Ditto.
11907 * dbxread.c: Ditto.
11908 * dwarf2read.c: Ditto.
11909 * dwarfread.c: Ditto.
8a1dac83 11910 * frv-tdep.c: Ditto.
9ab9195f
EZ
11911 * ia64-tdep.c: Ditto.
11912 * mdebugread.c: Ditto.
11913 * mipsread.c: Ditto.
8a1dac83 11914 * rs6000-tdep.c: Ditto.
9ab9195f
EZ
11915 * s390-tdep.c: Ditto.
11916 * sh-tdep.c: Ditto.
8a1dac83 11917 * xstormy16-tdep.c: Ditto.
9ab9195f
EZ
11918 * gdbarch.sh: Remove include of symfile.h.
11919 * gdbarch.c: Regenerate.
11920 * solib-irix.c (enable_break): Use entry_point_address().
11921 Add comment about include file.
11922 * xcoffread.c: Add comment about include file.
8a1dac83
RM
11923 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
11924 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
11925 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
11926 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
9ab9195f
EZ
11927 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
11928
c4c5b7ba
AC
119292004-02-13 Andrew Cagney <cagney@redhat.com>
11930
11931 * corelow.c (core_xfer_partial): Use "struct bfd_section".
11932 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
11933 copyright.
11934 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
11935
3e7879de
FF
119362004-02-12 Fred Fish <fnf@redhat.com>
11937
11938 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
11939 set_gdbarch_store_return_value.
11940
6a7760b6
AC
119412004-02-12 Andrew Cagney <cagney@redhat.com>
11942
11943 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
11944 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
11945 (interrupt_query): Ditto.
11946 (ofunc): Delete unused variable.
11947 * cris-tdep.c (cris_abi): Delete unused function.
11948 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
11949 (cris_get_wide_opcode, cris_get_short_size): Ditto.
11950 (cris_get_asr_quick_shift_steps): Ditto.
11951 (cris_skip_prologue_frameless_p): Ditto.
11952 * arm-tdep.c (arm_push_return_address): Delete unused function.
11953 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
11954 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
11955 * s390-tdep.c (s390_function_start): Delete unused function.
11956
31687c3c
AC
119572004-02-12 Andrew Cagney <cagney@redhat.com>
11958
11959 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
11960 gdbarch.h, gdbarch.c: Re-generate.
11961 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
11962 to generic_prologue_frameless_p.
11963 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
11964 * arch-utils.c (generic_prologue_frameless_p): Delete function.
11965
6de918a6
DJ
119662004-02-11 Daniel Jacobowitz <drow@mvista.com>
11967
11968 * mips-linux-tdep.c: Include "frame.h".
11969 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
11970 (mips_linux_skip_resolver): New functions.
11971 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
11972 and set_gdbarch_in_solib_call_trampoline.
11973 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
11974 to after set_gdbarch_in_solib_return_trampoline. Only set the
11975 solib hooks to mips16 functions if the OS ABI is unknown.
11976 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
11977 including "config/tm-linux.h".
11978 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
11979 * Makefile.in (mips-linux-tdep.o): Update.
11980
87b3ede8
DC
119812004-02-11 David Carlton <carlton@kealia.com>
11982
11983 * linespec.c (decode_compound): Only look for a class symbol when
11984 considering all but the rightmost component.
11985
5979bc46
AC
119862004-02-11 Andrew Cagney <cagney@redhat.com>
11987
11988 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
11989 abi code are are separatly grouped.
11990
5867a2fb
AC
119912004-02-11 Andrew Cagney <cagney@redhat.com>
11992
11993 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
11994 * gdbarch.h, gdbarch.c: Re-generate.
11995 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11996 * v850-tdep.c (v850_gdbarch_init): Update.
11997 * sh64-tdep.c (sh64_gdbarch_init): Update.
11998 * sh-tdep.c (sh_gdbarch_init): Update.
11999 * s390-tdep.c (s390_gdbarch_init): Update.
12000 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12001 * mips-tdep.c (mips_gdbarch_init): Update.
12002 * mcore-tdep.c (mcore_gdbarch_init): Update.
12003 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12004 * m32r-tdep.c (m32r_gdbarch_init): Update.
12005 * ia64-tdep.c (ia64_gdbarch_init): Update.
12006 * hppa-tdep.c (hppa_gdbarch_init): Update.
12007 * h8300-tdep.c (h8300_gdbarch_init): Update.
12008 * frv-tdep.c (frv_gdbarch_init): Update.
12009 * d10v-tdep.c (d10v_gdbarch_init): Update.
12010 * cris-tdep.c (cris_gdbarch_init): Update.
12011 * avr-tdep.c (avr_gdbarch_init): Update.
12012 * arm-tdep.c (arm_gdbarch_init): Update.
12013 * alpha-tdep.c (alpha_gdbarch_init): Update.
12014
026a72f8
CV
120152004-02-11 Corinna Vinschen <vinschen@redhat.com>
12016
12017 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
12018 comma.
12019 (sh_sh4al_dsp_register_name): Ditto.
12020
3903d437
AC
120212004-02-10 Andrew Cagney <cagney@redhat.com>
12022
12023 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
12024 (mips_init_frame_pc_first): Delete function.
12025 (mips_frame_saved_pc): Delete function.
12026 (mips_frame_chain): Delete function.
12027 (mips_init_extra_frame_info): Delete function.
12028 (mips_xfer_register): Delete unused variable "reg".
12029 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
12030 (mips_n32n64_return_value): Delete unused variable "reg".
12031 (mips_n32n64_return_value): Delete unused variable "pos".
12032 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
12033 (mips_o32_return_value): Delete unused variable "pos".
12034 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
12035 (mips_print_fp_register): Delete unused variable "namelen"
12036 (mips_print_fp_register): Delete unused variable "flt2"
12037 (get_frame_pointer): Delete function.
12038 (cached_proc_desc): Delete static variable.
12039 (mips_pop_frame): Delete function.
12040 (mips_find_saved_regs): Delete function.
12041 (mips_get_saved_register): Delete function.
12042 (mips_saved_pc_after_call): Delete function.
12043 (SIGFRAME_BASE): Delete macro.
12044 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
12045 (SIGFRAME_PC_OFF): Delete macro.
12046 (SIGFRAME_REGSAVE_OFF): Delete macro.
12047 (mips_dump_tdep): Do not print deleted macro definitions.
12048
b9fb98bd
AC
120492004-02-10 Andrew Cagney <cagney@redhat.com>
12050
12051 * Makefile.in (SFILES): Remove explictly listed tui files.
12052 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
12053
78ced177 120542004-02-10 Jeff Johnston <jjohnstn@redhat.com>
8a1dac83 12055
78ced177
JJ
12056 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
12057 to use paddr functions to format ia64 addresses and long values.
12058 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
12059 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
12060 (get_kernel_table, ia64_find_proc_info_x): Ditto.
12061 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
12062 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
12063
6a83354a
AC
120642004-02-10 Andrew Cagney <cagney@redhat.com>
12065
12066 * defs.h: Do not include "tui.h".
12067 * gdb_curses.h: New file.
12068 * tui/tui-hooks.h: New file.
12069 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
12070 (tui_install_hooks, tui_remove_hooks): Delete declarations.
12071 (tui_initialize_io): Delete declaration.
12072 (tui_initialize_readline: Delete redundant declaration.
12073 (struct tui_point): Delete definition.
12074 * tui/tui-data.h (struct tui_point): Define.
12075 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
12076 * utils.c: Include "tui/tui.h".
12077 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
12078 * printcmd.c [TUI]: Include "tui/tui.h".
12079 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
12080 * tui/tui-command.c: Include "gdb_curses.h".
12081 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
12082 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
12083 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
12084 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
12085 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
12086 * Makefile.in: Update all dependencies.
12087 (tui_hooks_h, gdb_curses_h): Define.
12088 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
12089
997470ef
EZ
120902004-02-10 Elena Zannoni <ezannoni@redhat.com>
12091
12092 * objfiles.h (struct objfile): Remove unused fields auxf1 and
12093 auxf2. Add comments about some other rarely used fields.
12094
4ff2cc4d
AC
120952004-02-10 Andrew Cagney <cagney@redhat.com>
12096
12097 * Makefile.in (init.c): Fix script removing duplicates. Problem
12098 reported by Peter Schauer.
12099
1ab21617
EZ
121002004-02-09 Elena Zannoni <ezannoni@redhat.com>
12101
12102 * bcache.c (bcache_xmalloc): Use obstack_init instead of
12103 obstack_specify_allocation.
12104 * objfiles.c (allocate_objfile): Ditto.
8a1dac83 12105 * solib-sunos.c (solib_add_common_symbols)
1ab21617
EZ
12106 (allocate_rt_common_objfile): Ditto.
12107 * symfile.c (reread_symbols): Ditto.
12108 * gdb_obstack.h: Add comment.
12109
17763fd9
EZ
121102004-02-09 Elena Zannoni <ezannoni@redhat.com>
12111
12112 * linespec.c (decode_line_1, locate_first_half)
12113 (decode_compound, lookup_prefix_sym): Update comments. Delete old
12114 commented out code.
12115
ec5cdd75
DJ
121162004-02-09 Daniel Jacobowitz <drow@mvista.com>
12117
12118 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
12119 obstack_free.
12120
43b54b88
AC
121212004-02-09 Andrew Cagney <cagney@redhat.com>
12122
12123 * blockframe.c (find_pc_partial_function): If find_pc_overlay
12124 fails, try find_pc_section. Fix PR c++/1267.
12125 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
12126 instead of find_pc_mapped_section.
12127 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
12128 not default to the section containing PC. Fix PR symtab/1519.
12129
edfae063
AC
121302004-02-09 Andrew Cagney <cagney@redhat.com>
12131
12132 * Makefile.in (mips-tdep.o): Update dependencies.
12133 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
12134 "trad-frame.h".
12135 (mips_unwind_pc): Return the pseudo PC register.
12136 (mips_unwind_dummy_id): New function.
12137 (mips16_fetch_instruction): New function.
12138 (mips32_fetch_instruction): New function.
12139 (struct mips_frame_cache): Define.
12140 (mips_mdebug_frame_cache): New function.
12141 (mips_mdebug_frame_this_id): New function.
12142 (mips_mdebug_frame_prev_register): New function.
12143 (mips_mdebug_frame_unwind): Define.
12144 (mips_mdebug_frame_sniffer): New function.
12145 (mips_mdebug_frame_base_address): New function.
12146 (mips_mdebug_frame_base): Define.
12147 (mips_mdebug_frame_base_sniffer): New function.
12148 (mips_gdbarch_init): Append unwind and base sniffers. Set
12149 unwind_dummy_id.
12150
defc864c
AC
121512004-02-08 Andrew Cagney <cagney@redhat.com>
12152
6764ddad
AC
12153 * frame.c: Print both the register number and name.
12154
defc864c
AC
12155 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
12156 and a sed into a single sed. Make .c and .o patterns more robust.
12157 (OBS): Delete.
12158 (INIT_FILES): Replace OBS with COMMON_OBS.
12159 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
12160
645d6d10
MK
121612004-02-08 Mark Kettenis <kettenis@gnu.org>
12162
12163 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
12164 the PT_WCOOKIE request.
12165
23e3c3fc
AC
121662004-02-08 Andrew Cagney <cagney@redhat.com>
12167
58dfe9ff
AC
12168 * mips-tdep.c (mips_unwind_pc): New function.
12169 (mips_gdbarch_init): Set mips_unwind_pc.
12170
1152e35e
AC
12171 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
12172 (get_frame_id): Allow the UNKNOWN_FRAME.
12173 (frame_register_unwind, get_frame_type): Ditto.
12174
31b75dbf
AC
12175 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
12176 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
12177 unwind_dummy_id indicates a legacy frame.
12178
3483b318
AC
12179 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
12180 * configure: Re-generate.
12181
23e3c3fc
AC
12182 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
12183 methods.
12184
33f8ca73
AC
121852004-02-08 Andrew Cagney <cagney@redhat.com>
12186
12187 * configure.in (CONFIG_ALL): Set to Makefile target, and not
12188 makefile macro.
12189 * configure: Re-generate.
12190 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
12191 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
12192 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
12193 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
12194 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
12195 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
12196 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
12197 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
12198 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
12199 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
12200
6ba8e26f 122012004-02-07 Andrew Cagney <cagney@redhat.com>
d836ee13 12202
20d286a5
AC
12203 * Makefile.in: Update all dependencies.
12204
d836ee13
AC
12205 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
12206 * configure: Re-generate.
12207 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
12208 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
12209 (COMMON_OBS): Add "main.o" and "annotate.o".
12210 (ANNOTATE_OBS): Delete.
12211 (OBS): Remove ANNOTATE_OBS.
12212 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
12213 CONFIG_INITS.
12214 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
12215 against CONFIG_OBS and "main.o".
12216 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
12217 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
12218
d02c80cd
AC
12219 * tui/tui-command.c: Include "gdb_string.h", delete register
12220 attribute, use ISO-C function signatures.
12221 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
12222 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
12223 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
12224 * tui/tui.c: Ditto.
6ba8e26f
AC
12225
12226 * tui/tui-command.c: Change variable and function names to lower
12227 case.
12228 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
12229 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
12230 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
12231 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12232 * tui/tui-winsource.c, tui/tui.c: Ditto.
12233
4a146b47
EZ
122342004-02-07 Elena Zannoni <ezannoni@redhat.com>
12235
12236 * buildsym.c (free_pending_blocks, finish_block)
12237 (record_pending_block, make_blockvector, end_symtab): Replace
12238 symbol_obstack with objfile_obstack.
8a1dac83 12239 * coffread.c (process_coff_symbol, coff_read_struct_type)
4a146b47 12240 (coff_read_enum_type): Ditto.
8a1dac83 12241 * cp-namespace.c (initialize_namespace_symtab)
4a146b47 12242 (check_one_possible_namespace_symbol): Ditto.
8a1dac83 12243 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
4a146b47
EZ
12244 (dwarf2_symbol_mark_computed): Ditto.
12245 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
12246 * elfread.c (elf_symtab_read): Ditto.
12247 * hpread.c (hpread_symfile_init, hpread_symfile_init)
12248 (hpread_read_enum_type, hpread_read_function_type)
12249 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
12250 Ditto.
8a1dac83 12251 * jv-lang.c (get_java_class_symtab, add_class_symbol)
4a146b47 12252 (java_link_class_type): Ditto.
8a1dac83 12253 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
4a146b47
EZ
12254 (new_symbol): Ditto.
12255 * minsyms.c (install_minimal_symbols): Ditto.
12256 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
12257 (terminate_minimal_symbol_table): Replace symbol_obstack with
12258 objfile_obstack.
12259 (free_objfile): Remove freeing of symbol_obstack.
12260 * objfiles.h: Remove symbol_obstack field.
12261 * pa64solib.c (add_to_solist): Replace symbol_obstack with
12262 objfile_obstack.
12263 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
12264 symbol_obstack.
12265 (solib_add_common_symbols): Replace symbol_obstack with
12266 objfile_obstack.
12267 * somsolib.c (som_solib_add): Ditto.
12268 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
12269 (common_block_start, common_block_end): Ditto.
12270 * symfile.c (reread_symbols): Remove freeing and init of
12271 symbol_obstack.
12272 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
12273 * symfile.h: Update comment.
12274 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
12275 stats printing.
12276 * symtab.c (symbol_set_names): Replace symbol_obstack with
12277 objfile_obstack.
12278 * symtab.h (struct general_symbol_info, struct minimal_symbol):
12279 Update comments.
12280 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
12281 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
12282 objfile_obstack.
12283
6d012f14
AC
122842004-02-07 Andrew Cagney <cagney@redhat.com>
12285
12286 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
12287 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
12288 fields and variables.
12289 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
12290 (m_beInvisible): Delete macro.
12291 * tui/tui-data.h: Fix case case fields and variables.
12292 (m_genWinPtrIsNull): Delete macro.
12293 (tui_win_list): Rename winList.
12294 (TUI_SRC_WIN): Rename srcWin.
12295 (TUI_DISASM_WIN): Rename disassemWin.
12296 (TUI_DATA_WIN): Rename dataWin.
12297 (TUI_CMD_WIN): Rename cmdWin.
12298 (m_genWinPtrNotNull): Delete macro.
12299 (m_winPtrIsNull): Delete macro.
12300 (m_winPtrNotNull): Delete macro.
12301 (tui_win_is_source_type): Replace m_winIsSourceType
12302 (tui_win_is_auxillary): Replace m_winIsAuzillary.
12303 (tui_win_has_locator): Replace m_hasLocator.
12304 (tui_set_win_highlight): Replace m_setWinHighlightOn and
12305 m_setWinHighlightOff.
12306 * tui/tui-data.c: Update references.
12307 (tui_win_is_source_type, tui_set_win_highlight): New functions.
12308 (tui_win_has_locator, tui_win_is_auxillary): New functions.
12309 * tui/tui-command.c, tui/tui-disasm.c: Update references.
12310 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
12311 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
12312 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12313 * tui/tui-winsource.c, tui/tui.c: Ditto.
12314
7d34766b
MK
123152004-02-07 Mark Kettenis <kettenis@gnu.org>
12316
1c800673
MK
12317 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
12318 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
12319 StackGhost.
12320
7d34766b
MK
12321 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
12322 variable `i6' to `i7'.
12323 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
12324
22940a24
AC
123252004-02-07 Andrew Cagney <cagney@redhat.com>
12326
12327 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
12328 (TuiPoint, TuiPointPtr): Ditto.
12329 (TuiStatus, TuiStatusPtr): Ditto.
12330 (TuiWinType, TuiWinTypePtr): Ditto.
12331 (struct tui_point): Rename _TuiPoint.
12332 (tui_get_low_disassembly_address): Rename
12333 tuiGetLowDisassemblyAddress.
12334 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
12335 (tuiFree): Delete declaration.
12336 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
12337 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
12338 * tui/tui.c (tuiFree): Delete function.
12339 * cli/cli-cmds.c (disassemble_command): Update references.
12340 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
12341 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
12342 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
12343 * tui/tui-winsource.c: Ditto.
12344
8b92e4d5
EZ
123452004-02-07 Elena Zannoni <ezannoni@redhat.com>
12346
12347 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
12348 coffstab_build_psymtabs, elfstab_build_psymtabs)
12349 (stabsect_build_psymtabs): Replace psymbol_obstack with
12350 objfile_obstack.
12351 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
12352 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
12353 Ditto.
12354 * dwarfread.c (scan_compilation_units): Ditto.
12355 * elfread.c (elfstab_offset_sections): Ditto.
12356 * hppa-tdep.c (read_unwind_info): Ditto.
12357 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
12358 (hpread_end_psymtab): Ditto.
12359 * mdebugread.c (mdebug_build_psymtabs, add_pending)
12360 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
12361 Ditto.
12362 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
8a1dac83 12363 * objfiles.c (add_to_objfile_sections)
8b92e4d5
EZ
12364 (build_objfile_section_table): Ditto.
12365 (allocate_objfile): Remove init of psymbol_obstack.
12366 (free_objfile): Remove freeing of psymbol_obstack.
12367 * objfiles.h (struct objfile): Remove field
12368 psymbol_obstack. Update comments.
12369 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
12370 psymbol_obstack with objfile_obstack.
12371 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
12372 psymbol_obstack.
12373 * somread.c (som_symfile_offsets, init_import_symbols)
12374 (init_export_symbols): Replace psymbol_obstack with
12375 objfile_obstack.
12376 * somsolib.c (som_solib_add_solib_objfile): Ditto.
12377 * symfile.c (default_symfile_offsets, syms_from_objfile)
12378 (reread_symbols): Remove freeing and init of psymbol_obstack.
12379 (cashier_psymtab): Update comment.
12380 * symmisc.c (print_objfile_statistics): Don't report stats for
12381 psymbol obstack.
12382 * symtab.h (struct general_symbol_info, struct partial_symtab):
12383 Update comments.
12384 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
12385 (xcoff_symfile_offsets): Replace psymbol_obstack with
12386 objfile_obstack.
12387
b99607ea
EZ
123882004-02-07 Elena Zannoni <ezannoni@redhat.com>
12389
12390 * objfiles.h (struct objfile): Add objfile_obstack field.
12391 Remove type_obstack field.
12392
12393 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
12394 read_structure_scope read_enumeration, new_symbol): Replace
12395 type_obstack with objfile_obstack.
12396 * dwarfread.c (struct_type, enum_type): Ditto.
8a1dac83 12397 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
b99607ea
EZ
12398 (lookup_fundamental_type): Ditto.
12399 * gdbtypes.h (TYPE_ALLOC): Ditto.
8a1dac83
RM
12400 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
12401 (hpread_read_doc_function_type, hpread_read_struct_type)
12402 (fix_static_member_physnames, hpread_read_array_type)
b99607ea 12403 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
8a1dac83 12404 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
b99607ea
EZ
12405 (java_link_class_type): Ditto.
12406 * mdebugread.c (parse_type): Ditto.
12407 * objfiles.c (allocate_objfile, free_objfile): Ditto.
12408 * solib-sunos.c (solib_add_common_symbols): Ditto.
12409 * stabsread.c (define_symbol, read_type, read_member_functions,
12410 read_cpp_abbrev, read_one_struct_field): Ditto.
12411 * symfile.c (reread_symbols): Ditto.
12412 * symmisc.c (print_objfile_statistics): Ditto.
8a1dac83 12413
2a8854a7
AC
124142004-02-07 Andrew Cagney <cagney@redhat.com>
12415
12416 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
12417 (tui_exec_info_content): Rename TuiExecInfoContent.
12418 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
12419 (TuiWinInfo, TuiWinInfoPtr): Ditto.
12420 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
12421 (TuiList, TuiListPtr): Ditto.
12422 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
12423 (TuiDataType, TuiDataTypePtr): Ditto.
12424 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
12425 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
12426 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
12427 (TuiSourceElement, TuiSourceElementPtr): Ditto.
12428 (TuiDataElement, TuiDataElementPtr): Ditto.
12429 (TuiWinElement, TuiWinElementPtr): Ditto.
12430 (TuiDataInfo, TuiDataInfoPtr): Ditto.
12431 (TuiCommandElement, TuiCommandElementPtr): Ditto.
12432 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
12433 (TuiWhichElement, TuiWhichElementPtr): Ditto.
12434 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
12435 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
12436 * tui/tui-command.c, tui/tui-data.c: Update references.
12437 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
12438 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
12439 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12440 * tui/tui-winsource.c, tui/tui.c: Ditto.
8a1dac83 12441
05cbe71a
MK
124422004-02-07 Mark Kettenis <kettenis@gnu.org>
12443
12444 * dwarf2-frame.h: Update copyright.
12445 (enum dwarf2_frame_reg_rule): New.
12446 (struct dwarf2_frame_state_reg): New.
12447 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
12448 * dwarf2-frame.c: Update copyright.
12449 (enum dwarf2_reg_rule): Remove.
12450 (struct dwarf2_frame_state): Remove defenition of `struct
12451 dwarf2_frame_state_reg'.
12452 (read_reg): Call get_frame_arch to get the architecture instead of
12453 using CURRENT_GDBARCH.
12454 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
12455 DWARF2_FRAME_.
12456 (dwarf2_frame_init_reg): New function.
12457 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
12458 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
12459 initialize the register state. Prefix old `enum dwarf2_reg_rule'
12460 tags with DWARF2_FRAME_.
12461 (dwarf2_frame_prev_register): Call get_frame_arch to get the
12462 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
12463 dwarf2_reg_rule' tags with DWARF2_FRAME_.
12464
ec7d9e56
AC
124652004-02-06 Andrew Cagney <cagney@redhat.com>
12466
dd1abb8c
AC
12467 * tui/tui-data.h (struct tui_list): Rename _TuiList.
12468 (enum tui_data_type): Rename _TuiDataType.
12469 (struct tui_layout_def): Rename _TuiLayoutDef.
12470 (struct tui_source_element): Rename _TuiSourceElement.
12471 (struct tui_data_element): Rename _TuiDataElement.
12472 (struct tui_command_element): Rename _TuiCommandElement.
12473 (struct tui_locator_element): Rename _TuiLocatorElement.
12474 (union tui_which_element): Define.
12475 (struct tui_win_element): Rename _TuiWinElement.
12476 (struct tui_data_info): Rename _TuiDataInfo.
12477 (struct tui_source_info): Rename _TuiSourceInfo.
12478 (struct tui_command_info): Rename _TuiCommandInfo.
12479 (tui_initialize_static_data): Rename initializeStaticData.
12480 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
12481 (tui_alloc_win_info): Rename allocWinInfo.
12482 (tui_init_generic_part): Rename initGenericPart.
12483 (tui_init_win_info): Rename initWinInfo.
12484 (tui_alloc_content): Rename allocContent.
12485 (tui_add_content_elements): Rename addContentElements.
12486 (tui_init_content_element): Rename initContentElement.
12487 (tui_free_window): Rename freeWindow.
12488 (tui_free_win_content): Rename freeWinContent.
12489 (tui_free_data_content): Rename freeDataContent.
12490 (tui_free_all_source_wins_content): Rename
12491 freeAllSourceWinsContent.
12492 (tui_del_window): Rename tuiDelWindow.
12493 (tui_del_data_windows): Rename tuiDelDataWindows.
12494 (tui_partial_win_by_name): Rename partialWinByName.
12495 (tui_win_name): Rename winName.
12496 (tui_current_layout): Rename currentLayout.
12497 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
12498 (tui_term_height): Rename termHeight.
12499 (tui_set_term_height_to): Rename setTermHeightTo.
12500 (tui_term_width): Rename termWidth.
12501 (tui_set_term_width_to): Rename setTermWidthTo.
12502 (tui_set_gen_win_origin): Rename setGenWinOrigin.
12503 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
12504 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
12505 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
12506 (tui_source_windows): Rename sourceWindows.
12507 (tui_clear_source_windows): Rename clearSourceWindows.
12508 (tui_clear_source_windows_detail): Rename
12509 clearSourceWindowsDetail.
12510 (tui_clear_win_detail): Rename clearWinDetail.
12511 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
12512 (tui_default_tab_len): Rename tuiDefaultTabLen.
12513 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
12514 (tui_win_with_focus): Rename tuiWinWithFocus.
12515 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
12516 (tui_layout_def): Rename tuiLayoutDef.
12517 (tui_win_resized): Rename tuiWinResized.
12518 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
12519 (tui_next_win): Rename tuiNextWin.
12520 (tui_prev_win): Rename tuiPrevWin.
12521 (tui_add_to_source_windows): Rename addToSourceWindows.
12522 * tui/tui-winsource.c, tui/tui-win.c: Update references.
12523 * tui/tui-layout.c, tui/tui-source.c: Ditto.
12524 * tui/tui-stack.c, tui/tui-io.c: Ditto.
12525 * tui/tui.c, tui/tui-data.c: Ditto.
12526 * tui/tui-interp.c, tui/tui-data.c: Ditto.
12527 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
12528
a358af15
AC
12529 * tui/tui-source.h: Update copyright. Include "tui-data.h".
12530 (struct symtab): Declare.
12531 (tui_set_source_content): Rename tuiSetSourceContent.
12532 (tui_show_symtab_source): Rename tuiShowSource.
12533 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
12534 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
12535 * tui/tui-source.c: Update copyright. Update references.
12536 * tui/tui-win.c, tui/tui-winsource.c: Update references.
12537 * tui/tui-stack.c: Update references.
12538
a21fcd8f
AC
12539 * tui/tui-win.h: Update copyright. Include "tui-data.h".
12540 (struct tui_win_info): Declare.
12541 (tui_scroll_forward): Rename tuiScrollForward.
12542 (tui_scroll_backward): Rename tuiScrollBackward.
12543 (tui_scroll_left): Rename tuiScrollLeft.
12544 (tui_scroll_right): Rename tuiScrollRight.
12545 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
12546 (tui_resize_all): Rename tuiResizeAll.
12547 (tui_refresh_all_win): Rename tuiRefreshAll.
12548 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
12549 * tui/tui-layout.c, * tui/tui-io.c: Update references.
12550 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
12551 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
12552
edae1ccf
AC
12553 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
12554 (tui_erase_data_content): Rename tuiEraseDataContent.
12555 (tui_display_all_data): Rename tuiDisplayAllData.
12556 (tui_check_data_values): Rename tuiCheckDataValues.
12557 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
12558 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
12559 (tui_first_data_element_no_in_line): Rename
12560 tuiFirstDataElementNoInLine.
12561 (tui_delete_data_content_windows): Rename
12562 tuiDeleteDataContentWindows.
12563 (tui_refresh_data_win): Rename tuiRefreshDataWin.
12564 (tui_display_data_from): Rename tuiDisplayDataFrom.
12565 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
12566 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
12567 * tui/tui-win.c, tui/tui-regs.c: Update references.
12568 * tui/tui-layout.c, tui/tui.c: Update references.
12569
ec7d9e56
AC
12570 * tui/tui-wingeneral.h: Update copyright.
12571 (m_allBeVisible): Delete macro.
8a1dac83 12572 (m_allBeInvisible): Delete macro.
ec7d9e56
AC
12573 (struct tui_gen_win_info): Declare.
12574 (struct tui_win_info): Declare.
12575 (tui_unhighlight_win): Rename unhighlightWin.
12576 (tui_make_visible, tui_make_invisible): Replace makeVisible.
12577 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
12578 (tui_make_window): Rename makeWindow.
12579 (tui_copy_win): Rename copyWin.
12580 (tui_box_win): Rename boxWin.
12581 (tui_highlight_win): Rename highlightWin.
12582 (tui_check_and_display_highlight_if_needed): Rename
12583 checkAndDisplayHighlightIfNeeded.
12584 (tui_refresh_all): Rename refreshAll.
12585 (tui_delete_win): Rename tuiDelwin.
12586 (tui_refresh_win): Rename tuiRefreshWin.
12587 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
12588 (tui_make_visible, tui_make_invisible): New functions.
12589 (tui_make_all_visible, tui_make_all_invisible): New functions.
12590 (make_all_visible): Rename makeAllVisible.
12591 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
12592 * tui/tui-data.c, tui/tui-winsource.c: Update references.
12593 * tui/tui-windata.c, tui/tui-win.c: Update references.
12594 * tui/tui-regs.c, tui/tui-layout.c: Update references.
12595 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
12596
1e52e2eb
MK
125972004-02-06 Mark Kettenis <kettenis@gnu.org>
12598
12599 * proc-api.c (write_with_trace): Initialize local variable to
12600 silence compiler warning.
12601
f80bda8e
AC
126022004-02-06 Andrew Cagney <cagney@redhat.com>
12603
12604 * tui/tui-source.h: Do not include "defs.h".
12605 (struct tui_win_info): Declare.
12606 (tui_set_source_content_nil): Declare.
12607 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
12608 (union tui_line_or_address): Rename _TuiLineOrAddress.
12609 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
12610 (tui_update_source_window): Rename tuiUpdateSourceWindow.
12611 (tui_update_source_window_as_is): Rename
12612 tuiUpdateSourceWindowAsIs.
12613 (tui_update_source_windows_with_addr): Rename
12614 tuiUpdateSourceWindowsWithAddr.
12615 (tui_update_source_windows_with_line): Rename
12616 tuiUpdateSourceWindowsWithLine.
12617 (tui_clear_source_content): Rename tuiClearSourceContent.
12618 (tui_erase_source_content): Rename tuiEraseSourceContent.
12619 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
12620 (tui_show_source_content): Rename tuiShowSourceContent.
12621 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
12622 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
12623 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
12624 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
12625 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
12626 (tui_update_exec_info): Rename tuiUpdateExecInfo.
12627 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
12628 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
12629 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
12630 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
12631 (struct tui_win_info): Declare.
12632 * tui/tui-stack.c: Update references.
12633 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
12634 * tui/tui-win.c, tui/tui-source.c: Ditto.
12635 * tui/tui.c, tui/tui-disasm.c: Ditto.
12636
9fbfb822
MK
126372004-02-06 Mark Kettenis <kettenis@gnu.org>
12638
12639 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
12640 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
12641
03cebad2
MK
126422004-02-05 Mark Kettenis <kettenis@gnu.org>
12643
12644 * infrun.c (handle_inferior_event): Allow for breakpoint
12645 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
12646 and SIGEMT. Update comments.
12647 * NEWS (Revised SPARC target): Mention support for non-executable
12648 stack.
12649
290281b1
MK
126502004-02-04 Mark Kettenis <kettenis@gnu.org>
12651
12652 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
12653 * inftarg.c: Update copyright year.
12654 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
12655 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
12656 (sparc_xfer_wcookie): New function.
12657 * sparc-tdep.c (sparc_fetch_wcookie): New function.
12658 * Makefile.in (sparc-nat.o): Update dependencies.
12659 * config/sparc/nm-nbsd.h: Include "target.h".
12660 (NATIVE_XFER_WCOOKIE): New define.
12661 (sparc_xfer_wcookie): New prototype.
12662
212161df
AC
126632004-02-04 Andrew Cagney <cagney@redhat.com>
12664
12665 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
12666 SYSCALL_TRAP function.
12667 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
12668
6e4c6c91
DJ
126692004-02-04 Andrew Cagney <cagney@redhat.com>
12670 Daniel Jacobowitz <drow@mvista.com>
12671
12672 * objfiles.h: Delete comments refering to inside_entry_func and
12673 DEPRECATED_FRAME_CHAIN_VALID.
12674 * defs.h (inside_entry_func): Update prototype..
12675 * blockframe.c (inside_entry_func): Rename to
12676 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
12677 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
12678
cae688ec
JJ
126792004-02-03 Jeff Johnston <jjohnstn@redhat.com>
12680
12681 * breakpoint.c (struct captured_parse_breakpoint_args): Move
12682 outside of #ifdef SOLIB_ADD region.
12683 (do_restore_lang_radix_cleanup): Ditto.
12684 (resolve_pending_breakpoint): Ditto.
12685
19217676
AC
126862004-02-03 Andrew Cagney <cagney@redhat.com>
12687
12688 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
12689 (process_note_abi_tag_sections): Delete unused function.
12690 (ia64_read_fp): Delete unused function.
12691 (gdbarch_extract_struct_value_address): Delete declaration.
12692
876753be
AC
126932004-02-02 Andrew Cagney <cagney@redhat.com>
12694
12695 * vax-tdep.c (vax_frame_chain): Delete call to
12696 deprecated_inside_entry_file.
12697 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
12698
d4f10bf2
MK
126992004-02-02 Mark Kettenis <kettenis@gnu.org>
12700
12701 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
12702 column that's "empty" or "same value" when eliminating REG_RA
12703 rules.
12704
cae688ec
JJ
127052004-02-02 Jeff Johnston <jjohnstn@redhat.com>
12706
12707 * NEWS: Add information about new pending breakpoint support.
12708
0101ce28
JJ
127092004-02-02 Jeff Johnston <jjohnstn@redhat.com>
12710
12711 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
12712 and pending fields for pending breakpoint support.
12713 * breakpoint.c (breakpoint_enabled): Add check for not pending.
12714 (condition_command): Only parse condition if not a pending
12715 breakpoint.
12716 (print_one_breakpoint): Add support for pending breakpoints.
12717 (describe_other_breakpoints): Add checks to verify we are not
12718 dealing with pending breakpoints.
12719 (check_duplicates): Don't check pending breakpoints.
12720 (set_raw_breakpoint): Initialize pending flag.
12721 (do_restore_lang_radix_cleanup): New cleanup routine.
12722 (resolve_pending_breakpoint): New function.
12723 (re_enable_breakpoints_in_shlibs): Try and resolve any
12724 pending breakpoints via resolve_pending_breakpoint.
12725 (mention): Add pending breakpoint support.
12726 (parse_breakpoint_sals): Add new parameter to pass to
12727 decode_line_1 to indicate silent errors when files or functions
12728 are not found. Change all callers.
12729 (do_captured_parse_breakpoint): New function.
12730 (break_command_1): Change prototype to return an rc value and to
12731 take an optional pending breakpoint pointer. Support creating
12732 a pending breakpoint if a "not found" form of error occurs when
12733 parsing the breakpoint. Also support resolving an existing pending
12734 breakpoint and be silent if the resolution fails.
12735 (create_breakpoints): Change prototype to take pending breakpoint
12736 pointer. When resolving a pending breakpoint, use the new pointer
12737 to provide a conditional or commands added by the end-user.
12738 (delete_breakpoint): Add appropriate check for pending.
12739 (breakpoint_re_set_one): Ditto.
12740 (do_enable_breakpoint): Ditto.
12741
8d577d32
DC
127422004-02-02 David Carlton <carlton@kealia.com>
12743
12744 * valops.c (enum oload_classification): New.
12745 (find_overload_match): Break implementation into separate
12746 functions; delete #if 0'd code; look for symbols within
12747 namespaces.
12748 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
12749 (find_oload_champ,oload_method_static,classify_oload_match): New.
12750 * cp-support.h: Add declaration for cp_func_name; update
12751 declaration for make_symbol_overload_list.
12752 * cp-support.c (cp_func_name): New.
12753 (overload_list_add_symbol): Fix comment, use
12754 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
12755 (make_symbol_overload_list): Take a function name and a namespace
12756 instead of a symbol; change implementation.
12757 (make_symbol_overload_list_using): New.
12758 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
12759
22e8e3c7
FF
127602004-02-02 Fred Fish <fnf@redhat.com>
12761
12762 * main.c (gdb_stdtarg): Move definition to group with other
15390fef 12763 gdb_stdtarg definitions and update copyright years.
22e8e3c7
FF
12764 * remote-sim.c (gdb_os_write_stderr): Write output to
12765 gdb_stdtargerr stream instead of gdb_stdtarg stream.
12766 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
15390fef 12767 gdb_stderr stream and update copyright years.
22e8e3c7 12768
6b753f60
DJ
127692004-02-01 Daniel Jacobowitz <drow@mvista.com>
12770
12771 * Makefile.in (mips-linux-nat.o): Update dependencies.
12772 * mips-linux-nat.c: Include mips-tdep.h.
12773
127742004-02-01 Roland McGrath <roland@redhat.com>
2cb6b099
RM
12775
12776 * sol-thread.c (sol_thread_xfer_partial): New function.
12777 (init_sol_thread_ops): Use that for to_xfer_partial hook.
12778 (init_sol_core_ops): Likewise.
12779
12780 * procfs.c (procfs_xfer_partial): New function.
12781 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
12782 * Makefile.in (procfs.o): Add $(auxv_h) dep.
12783
12784 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
12785 procfs_xfer_auxv function.
12786
12787 * procfs.c (procfs_make_note_section): If we can read
12788 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
12789 * linux-proc.c (linux_make_note_section): Likewise.
12790
12791 * auxv.h: New file.
12792 * auxv.c: New file.
12793 * Makefile.in (auxv_h): New variable.
12794 (COMMON_OBS): Add auxv.o here.
12795 (auxv.o): New target.
12796
12797 * corelow.c (core_xfer_partial): New function.
12798 (init_core_ops): Use it for core_ops.to_xfer_partial.
12799
12800 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
12801 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
12802 macro if that is defined.
12803
fa5281d0
DJ
128042004-02-01 Daniel Jacobowitz <drow@mvista.com>
12805
12806 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
12807 and check the specified thread for each breakpoint.
12808 * breakpoint.h (bpstat_stop_status): Update prototype.
12809 * infrun.c (handle_inferior_event): Update calls to
12810 bpstat_stop_status.
12811
26ee262d
DJ
128122004-02-01 Daniel Jacobowitz <drow@mvista.com>
12813
12814 * Makefile.in (cli-cmds.o): Add $(readline_h).
12815
d9b52655
DJ
128162004-02-01 Daniel Jacobowitz <drow@mvista.com>
12817
12818 * cli/cli-cmds.c: Include readline.h.
12819 (complete_command): Pass the start of the last word to
12820 complete_line.
12821
9709f61c
DJ
128222004-01-31 Daniel Jacobowitz <drow@mvista.com>
12823
12824 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
12825 argument, and change first argument to a CORE_ADDR.
12826 * breakpoint.h (bpstat_stop_status): Update prototype.
12827 * infrun.c (adjust_pc_after_break): Add a new comment.
12828 (handle_inferior_event): Update calls to bpstat_stop_status.
12829
4f1280bb
DJ
128302004-01-31 Daniel Jacobowitz <drow@mvista.com>
12831
12832 * breakpoint.h: Update copyright years.
12833
4fa8626c
DJ
128342004-01-31 Daniel Jacobowitz <drow@mvista.com>
12835
12836 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
12837 (bpstat_stop_status): Don't decrement PC.
12838 * breakpoint.h (software_breakpoint_inserted_here_p): Add
12839 prototype.
12840 * infrun.c (adjust_pc_after_break): New function.
12841 (handle_inferior_event): Call it, early. Remove later references
12842 to DECR_PC_AFTER_BREAK.
12843 (normal_stop): Add commentary.
12844
fad0733a
DJ
128452004-01-31 Daniel Jacobowitz <drow@mvista.com>
12846
12847 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
12848 2004-01-27 double-free fix.
12849
42cdca6c
MK
128502004-01-31 Mark Kettenis <kettenis@gnu.org>
12851
12852 * sparc-tdep.c (sparc_fetch_wcookie): New function.
12853 (sparc32_frame_prev_register): Handle StackGhost.
12854 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
12855
932d5416
RM
128562004-01-29 Roland McGrath <roland@redhat.com>
12857
12858 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
12859 * configure: Regenerated.
12860
12861 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
12862 * Makefile.in (procfs.o): Add dep.
12863
47d3492a
AC
128642004-01-28 Andrew Cagney <cagney@redhat.com>
12865
12866 * tui/tui-stack.h: Update copyright.
12867 (struct frame_info): Add opaque declaration.
12868 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
12869 (tui_show_locator_content): Rename tuiShowLocatorContent.
12870 (tui_show_frame_info): Rename tuiShowFrameInfo.
12871 * tui/tui-stack.c: Update copyright. Update references.
12872 * tui/tui-winsource.c: Update references.
12873 * tui/tui-win.c: Update references.
12874 * tui/tui-layout.c: Update references.
12875 * tui/tui-hooks.c: Update copyright, update references.
12876 * tui/tui.c: Update copyright, update references.
12877 * tui/tui-disasm.c: Update references.
12878
5d51ca54
DC
128792004-01-28 David Carlton <carlton@kealia.com>
12880
12881 * dwarf2read.c (add_partial_structure): Use demangled name if
12882 namespace equals "".
12883
086ed43d
JB
128842004-01-27 Jim Blandy <jimb@redhat.com>
12885
12886 Clean up misapplied patch:
12887 * dwarf2read.c (determine_prefix): Change one of the two forward
12888 declarations for 'determine_prefix_aux' to a declaration for this.
12889 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
12890 argument to 'die_specification'.
12891
2a35147e
JB
12892 * dwarf2read.c (read_func_scope): Re-indent comment.
12893
a355c7de 128942004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
932d5416 12895
a355c7de
AC
12896 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
12897 b->exp to NULL after freeing so that error during re-parsing or
12898 evaluation of expressions associated with breakpoint don't
12899 eventually lead to re-freeing of storage.
12900 Committed by Andrew Cagney.
12901
63ff5125
AC
129022004-01-27 Andrew Cagney <cagney@redhat.com>
12903
12904 * source.c (ambiguous_line_spec): Delete undefined declaration.
12905 * m32r-rom.c (m32r_set_board_address): Delete unused function.
12906 (m32r_set_server_address, m32r_set_download_path): Ditto.
12907 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
12908
e142c38c
DJ
129092004-01-27 Daniel Jacobowitz <drow@mvista.com>
12910
12911 * dwarf2read.c: Update calls to changed and renamed functions, and
12912 references to moved variables.
12913
12914 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
12915 language, language_defn, list_in_scope, and ftypes members.
12916 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
12917 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
12918 (baseaddr): Remove globals.
12919
12920 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
12921 (set_cu_language, die_is_declaration, die_specification)
12922 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
12923 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
12924 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
12925 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
12926
12927 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
12928 cu.list_in_scope. Don't initialize cu_header_offset.
12929 (add_partial_symbol): Add local baseaddr.
12930 (psymtab_to_symtab_1): Add local baseaddr. Use
12931 objfile->section_offsets for consistency. Don't initialize
12932 cu_header_offset; do initialize cu.header.offset and
12933 cu.list_in_scope.
12934 (read_file_scope, read_func_scope, read_lexical_block_scope)
12935 (dwarf_decode_lines, new_symbol): Add local baseaddr.
12936
c6e06ede
MC
129372004-01-27 Michael Chastain <mec.gnu@mindspring.com>
12938
fb328ecc 12939 * PROBLEMS: Add gdb/1516.
c6e06ede 12940
48184fd4
AC
129412003-12-29 Robert Millan <robertmh@gnu.org>
12942
12943 Patch committed by Andrw Cagney.
12944 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
12945 * configure.tgt: Match knetbsd*-gnu.
12946
c1321b30
AC
129472004-01-26 Andrew Cagney <cagney@redhat.com>
12948
f3699be3
AC
12949 * breakpoint.c (catch_command_1): Delete #ifdef code.
12950 (catch_fork_command_1): Delete #ifdef wrapper.
12951 (catch_exec_command_1): Ditto.
12952 (catch_load_command_1): Ditto.
12953 (catch_unload_command_1): Ditto.
12954
c1321b30
AC
12955 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
12956 (catch_breakpoint): Delete #if0ed function.
12957 (disable_catch_breakpoint): Ditto.
12958 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
12959 (disable_catch, enable_catch, delete_catch): Ditto.
12960
b4501125
AC
129612004-01-26 Andrew Cagney <cagney@redhat.com>
12962
12963 * remote.c (echo_check, quit_flag): Delete variables.
12964 (cisco_kernel_mode): Delete variable.
12965 (minitelnet_return, tty_input, escape_count): Delete variables.
12966 (remote_cisco_mode): Delete variable.
12967 (remote_cisco_open, remote_cisco_close): Delete function.
12968 (remote_cisco_mourn, remote_cisco_wait): Delete function.
12969 (init_remote_cisco_ops): Delete function.
12970 (_initialize_remote): Do not install "remote cisco" code.
12971 (read_frame): Delete cisco specific code.
12972 (remote_info_process): Delete function.
12973 (remote_wait): Delete cisco specific code.
12974 (remote_cisco_section_offsets): Delete function.
12975 (remote_cisco_objfile_relocate): Delete function.
12976 (remote_async_wait): Delete cisco specific code.
12977 (minitelnet, readtty, readsocket): Delete function.
12978
74055713
AC
129792004-01-26 Andrew Cagney <cagney@redhat.com>
12980
12981 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
12982 comments mentioning extract_returned_value_address.
12983 * infcmd.c (print_return_value): Update. Add comments on
12984 extract_returned_value_address.
12985 * stack.c (return_command): Add comments on
12986 extract_returned_value_address.
12987 * values.c: Update comment.
12988 * m32r-tdep.c: Update comment.
12989 * sparc-tdep.c: Update comment.
12990 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
12991 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12992 * sh64-tdep.c (sh64_gdbarch_init): Update.
12993 * sh-tdep.c (sh_gdbarch_init): Update.
12994 * s390-tdep.c (s390_gdbarch_init): Update.
12995 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12996 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
12997 * m68k-tdep.c (m68k_gdbarch_init): Update.
12998 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12999 * m32r-tdep.c (m32r_gdbarch_init): Update.
13000 * ia64-tdep.c (ia64_gdbarch_init): Update.
13001 * h8300-tdep.c (h8300_gdbarch_init): Update.
13002 * frv-tdep.c (frv_gdbarch_init): Update.
13003 * arm-tdep.c (arm_gdbarch_init): Update.
13004 * alpha-tdep.c (alpha_gdbarch_init): Update.
13005
a67af2b9
AC
130062004-01-26 Andrew Cagney <cagney@redhat.com>
13007
13008 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
13009 SYMBOL_LOCATION_FUNCS
13010 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
13011 "struct symbol_ops".
13012 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
13013 type to "struct symbol_ops".
13014 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
13015 (struct symbol): Replace ".aux_value.loc.funcs" and
13016 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
13017 (SYMBOL_OBJFILE): Delete macro.
13018 (SYMBOL_LOCATION_FUNCS): Delete macro.
13019 (SYMBOL_LOCATION_BATON): Update.
13020 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
13021 intead of SYMBOL_LOCATION_FUNCS.
13022 * ax-gdb.c (gen_var_ref): Ditto.
13023 * printcmd.c (address_info): Ditto.
13024 * findvar.c (read_var_value): Ditto.
13025 (symbol_read_needs_frame): Ditto.
13026
c034e007
AC
130272004-01-26 Andrew Cagney <cagney@redhat.com>
13028
13029 * dwarf2read.c (read_func_scope): Document frame-base hack.
13030
bb472c1e
MK
130312004-01-25 Mark Kettenis <kettenis@gnu.org>
13032
13033 * infcmd.c (print_return_value): Plug memory leak; delete
13034 ui_stream object. Rename argument `structure_return' to
13035 `struct_return'.
13036
c8e737d5
MK
130372004-01-25 Mark Kettenis <kettenis@gnu.org>
13038
f941662f
MK
13039 * infcmd.c (print_return_value): Wrap long lines.
13040 (finish_command_continuation, finish_command): Remove unused
13041 variable `funcaddr'. Fix some coding-standards problems.
13042
c558d81a 13043 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
d8d65dd3 13044 SECT_SIZE is large enough, not whether it's exactly the right size.
c558d81a
MK
13045 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
13046 TDEP->fpregset to zero.
13047
bf1e5861 13048 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
c8e737d5
MK
13049 floating-point registers for traditional NetBSD core files.
13050 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
13051 TDEP->sizeof_fpregset here.
13052
4c72d57a
MK
130532004-01-25 Mark Kettenis <kettenis@gnu.org>
13054
566626fa
MK
13055 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
13056 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
13057 function with code split out from
13058 sparc32nbsd_sigcontext_frame_cache.
13059 (sparc32nbsd_sigcontext_frame_cache): Use
13060 sparc32nbsd_sigcontext_saved_regs.
13061 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
13062 OpenBSD.
13063 * sparcobsd-tdep.c: New file.
13064 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
13065 (sparcobsd-tdep.o): New dependency.
13066 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
13067 * config/sparc/obsd.mt: New file.
13068
4c72d57a
MK
13069 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
13070 TDEP->fpregset to be initialized to enable core file register
13071 sets.
13072
7e5e9f88
MK
130732004-01-24 Mark Kettenis <kettenis@gnu.org>
13074
f0f207fd 13075 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
1e067c66
MK
13076 Add opaque declarations.
13077 (sparc64nbsd_sigcontext_saved_regs): New prototype.
13078 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
13079 function with code split out from
13080 sparc64nbsd_sigcontext_frame_cache.
13081 (sparc64nbsd_sigcontext_frame_cache): Use
13082 sparc64nbsd_sigcontext_saved_regs.
13083 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
13084 OpenBSD.
13085 * sparc64obsd-tdep.c: New file.
13086 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
13087 (sparc64obsd-tdep.o): New dependency.
13088 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
13089 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
13090 * config/sparc/obsd64.mt: New file.
13091
690668cc
MK
13092 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
13093 read the instruction at PC.
13094
7e5e9f88
MK
13095 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
13096 value of GDB_OSABI_DEFAULT.
13097 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
13098 instead of GDB_OSABI_NETBSD_AOUT.
13099
68b6dce9
NR
131002004-01-24 Nick Roberts <nick@nick.uklinux.net>
13101
13102 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
13103 copyright.
13104
080ce8c0
AC
131052004-01-23 Andrew Cagney <cagney@redhat.com>
13106
13107 * printcmd.c (display_command): Replace tui_set_display call with
13108 tui_set_layout_for_display_command.
13109 * tui/tui.h (enum tui_win_type): Define.
13110 (tui_set_layout): Delete declaration.
13111 (tui_set_layout_for_display_command): Rename set_tui_layout.
13112 * tui/tui-data.h (enum tui_layout_type): Define.
13113 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
13114 "tui.h".
13115 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
13116 (tui_default_win_height): Rename tuiDefaultWinHeight.
13117 (tui_default_win_viewport_height): Rename
13118 tuiDefaultWinViewportHeight.
13119 (tui_set_layout): RenametuiSetLayout.
13120 * tui/tui-layout.c: Update references.
13121 * tui/tui.c: Update references.
13122 * tui/tui-disasm.c: Update references.
13123
b368761e
DC
131242004-01-23 David Carlton <carlton@kealia.com>
13125
13126 Partial workaround for PR c++/1511:
13127 * cp-namespace.c: Include frame.h.
13128 (cp_lookup_transparent_type): New
13129 (cp_lookup_transparent_type_loop): New.
13130 * cp-support.h: Declare cp_lookup_transparent_type.
13131 * symtab.c (basic_lookup_transparent_type): Renamed from
13132 lookup_transparent_type.
13133 (lookup_transparent_type): Replace old body by a call to
13134 current_language->la_lookup_transparent_type.
13135 * symtab.h: Update copyright. Declare
13136 basic_lookup_transparent_type.
13137 * language.h: Update copyright.
13138 (struct language_defn): Add la_lookup_transparent_type.
13139 * language.c: Update copyright.
13140 (unknown_language_defn): Add basic_lookup_transparent_type.
13141 (auto_language_defn): Add basic_lookup_transparent_type.
13142 (local_language_defn): Add basic_lookup_transparent_type.
13143 * ada-lang.c: Update copyright.
13144 (ada_language_defn): Add basic_lookup_transparent_type.
13145 * c-lang.c: Update copyright.
13146 (c_language_defn): Add basic_lookup_transparent_type.
13147 (cplus_language_defn): Add basic_lookup_transparent_type.
13148 (asm_language_defn): Add basic_lookup_transparent_type.
13149 (minimal_language_defn): Add basic_lookup_transparent_type.
13150 * f-lang.c: Update copyright.
13151 (f_language_defn): Add basic_lookup_transparent_type.
13152 * jv-lang.c: Update copyright.
13153 (java_language_defn): Add basic_lookup_transparent_type.
13154 * m2-lang.c: Update copyright.
13155 (m2_language_defn): Add basic_lookup_transparent_type.
13156 * objc-lang.c: Update copyright.
13157 (objc_language_defn): Add basic_lookup_transparent_type.
13158 * p-lang.c: Update copyright.
13159 (p_language_defn): Add basic_lookup_transparent_type.
13160 * scm-lang.c: Update copyright.
13161 (scm_language_defn): Add basic_lookup_transparent_type.
13162 * Makefile.in (cp-namespace.o): Depend on frame.h.
13163
fdde2d81
DC
131642004-01-23 David Carlton <carlton@kealia.com>
13165
13166 Patch for PR c++/1520:
13167 * dwarf2read.c (read_func_scope): Set processing_current_prefix
13168 properly if we have a specification die.
13169 (determine_prefix_aux): Rename from determine_prefix.
13170 (determine_prefix): Like the old determine_prefix, but never
13171 returns NULL.
13172
5b828b6b
TR
131732004-01-23 Theodore A. Roth <troth@openavr.org>
13174
13175 * avr-tdep.c: Update copyright.
13176 (avr_iaddr_p): Delete unused function.
13177 (avr_saddr_p): Delete unused function.
13178
a1b8c067
DC
131792004-01-23 David Carlton <carlton@kealia.com>
13180
13181 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
13182 Fix for PR symtab/1534.
13183
f2cab569
MK
131842004-01-23 Mark Kettenis <kettenis@gnu.org>
13185
13186 * NEWS (New native configurations): Mention OpenBSD/sparc and
13187 OpenBSD/sparc64.
13188 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
13189 * configure.host: Likewise.
13190 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
13191 handler for OpenBSD.
13192 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
13193
642d8300
MK
131942004-01-22 Mark Kettenis <kettenis@gnu.org>
13195
89aac506
MK
13196 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
13197 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
13198
36662fde
MK
13199 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
13200 * cli/cli-cmds.c (shell_escape): Likewise.
13201
642d8300
MK
13202 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
13203 OpenBSD .note.openbsd.ident sections.
13204
fae299cd
DC
132052004-01-22 David Carlton <carlton@kealia.com>
13206
13207 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
13208 get_scope_pc_bounds.
13209 (read_file_scope): Ditto.
13210 (get_scope_pc_bounds): New function, produced by extracting code
13211 from the above two functions, consolidating it, and adding support
13212 for DW_TAG_namespace.
13213
a49d618c
MK
132142004-01-22 Mark Kettenis <kettenis@gnu.org>
13215
13216 * osabi.c (MAX_NOTESZ): New define.
13217 (check_note): New function.
13218 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
13219 check_note.
13220
fe61caab
RM
132212004-01-21 Roland McGrath <roland@redhat.com>
13222
13223 * MAINTAINERS (write after approval): Add myself.
13224
ec145965
EZ
132252004-01-21 Eli Zaretskii <eliz@gnu.org>
13226
13227 * utils.c (init_page_info): Move declarations of `rows' and
13228 `cols' before the __GO32__-specific code. Move the closing brace
13229 outside the #ifdef __GO32__..#endif block.
13230 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
13231
877522db
PB
132322004-01-21 Paul Brook <paul@codesourcery.com>
13233
13234 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
13235 BPSTAT_WHAT_CHECK_SHLIBS.
13236
dbf5be1c
PB
132372004-01-21 Paul Brook <paul@codesourcery.com>
13238
13239 * MAINTAINERS: Add myself to write-after-approval.
13240
81f08b92
AC
132412004-01-20 Andrew Cagney <cagney@redhat.com>
13242
5a1efed7
AC
13243 * ax-gdb.c (print_axs_value): Delete unused function.
13244 * jv-lang.c (java_lookup_type): Delete unused function.
13245 * cli/cli-dump.c (dump_filetype): Delete unused function.
13246 * remote-mips.c (remote_mips_insert_hw_breakpoint)
13247 (remote_mips_remove_hw_breakpoint): Delete unused functions.
13248 (mips_getstring): Delete unused function.
13249 (pmon_insert_breakpoint): Delete #if0ed function.
13250 (PMON_MAX_BP): Delete #if0ed MACRO.
13251 (mips_pmon_bp_info): Delete #if0ed variable.
13252 (pmon_remove_breakpoint): Delete #if0ed function.
13253 * monitor.c (monitor_write_even_block): Delete unused function.
13254 (monitor_write_memory_block): Delete #if0ed code.
13255 * dink32-rom.c (dink32_load): Delete unused function.
13256 (_initialize_dink32_rom): Delete #if0ed code.
13257 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
13258
b0a30fce
AC
13259 * tui/tui-command.c: Update references.
13260 * tui/tui-io.c: Update references.
13261 * tui/tui-command.h: Update copyright.
13262 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
13263
81f08b92
AC
13264 * source.c (ambiguous_line_spec): Delete never-defined function.
13265 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
13266 * gdbtypes.c (add_name, add_mangled_type): Ditto.
13267 * cli/cli-cmds.c (validate_comname): Ditto.
13268
65f05602
AC
13269 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
13270 "tui-data.h".
13271 (tui_set_disassem_content): Rename tuiSetDisassemContent.
13272 (tui_show_disassem): Rename tuiShowDisassem.
13273 (tui_show_disassem_and_update_source): Rename
13274 tuiVerticalDisassemScroll.
13275 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
13276 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
13277 * tui/tui.h: Update copyright.
13278 (enum tui_status): Define.
13279 * tui/tui-data.h (enum tui_scroll_direction): Define.
13280 * tui/tui-disasm.c: Update copyright. Update references.
13281 * tui/tui-winsource.c: Update copyright. Update references.
13282 * tui/tui-win.c: Update references.
13283 * tui/tui-layout.c: Update references.
13284
6bb0384f
AC
132852004-01-20 Andrew Cagney <cagney@redhat.com>
13286
13287 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
13288 sym2 to start of block.
13289
9175c9a3
MC
132902004-01-19 Michael Chastain <mec.gnu@mindspring.com>
13291
13292 * MAINTAINERS: Delete mmalloc.
13293 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
13294 * NEWS: Mention removal of --with-malloc.
13295 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
13296 * config.in: Regenerate.
13297 * configure: Regenerate.
6bb0384f
AC
13298 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
13299 USE_MMALLOC, MMCHECK_FORCE.
9175c9a3
MC
13300 * gdbinit.in: Remove mmalloc.
13301 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
13302 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
13303 * config/i386/go32.mh: Likewise.
13304 * config/i386/interix.mh: Likewise.
13305 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
13306
4fcef00a
JJ
133072004-01-19 Jeff Johnston <jjohnstn@redhat.com>
13308
13309 * linespec.c (decode_variable, symtab_from_filename): Call
13310 error_silent with error message instead of throwing an exception
13311 directly.
13312 * defs.h (error_silent, error_output_message): Add prototypes.
13313 (catch_exceptions_with_msg): Ditto.
13314 * utils.c (error_silent, error_output_message): New functions.
13315 * top.c (catch_exceptions_with_msg): New function.
13316
8e94b928
NR
133172004-01-20 Nick Roberts <nick@nick.uklinux.net>
13318
13319 * mi/mi-cmds.h (enum print_values): Add definition.
13320
13321 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
13322 type and value for simple data types and just the name and type
13323 for complex ones, if required.
13324
13325 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
13326 children, if required.
13327
a02d6af8
KB
133282004-01-19 Kevin Buettner <kevinb@redhat.com>
13329
13330 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
13331 unused declarations.
13332
78a4a9b9
AC
133332004-01-19 Andrew Cagney <cagney@redhat.com>
13334
13335 * top.h (mapped_symbol_files): Delete declaration.
13336 * main.c (captured_main): Delete option "m" and "mapped".
13337 * objfiles.c (mapped_symbol_files): Delete variable.
13338 * symfile.c (symbol_file_command): Delete mmap code.
13339 (symbol_file_add_with_addrs_or_offsets): Ditto.
13340 (add_symbol_file_command, reread_separate_symbols): Ditto.
13341 * objfiles.h (OBJF_MAPPED): Delete.
13342 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
13343 (free_objfile) [USE_MMALLOC]: Ditto.
13344 (open_existing_mapped_file): Delete function.
13345 (open_mapped_file): Delete function.
13346 (map_to_file): Delete function.
13347
2dbd5e30
KB
133482004-01-19 Kevin Buettner <kevinb@redhat.com>
13349
13350 * infrun.c (step_into_function): Account for possible breakpoint
13351 adjustment when computing ``stop_func_start''.
13352
437b434f
KB
133532004-01-19 Kevin Buettner <kevinb@redhat.com>
13354
13355 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
13356 the region size against the size of a pointer, not the size of
13357 a register as given by DEPRECATED_REGISTER_SIZE.
13358
55fb0713
AC
133592004-01-19 Andrew Cagney <cagney@redhat.com>
13360
13361 * tui/tui-regs.h: Include "tui-data.h".
13362 (tuiFirstRegElementNoInLine): Delete declaration.
13363 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
13364 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
13365 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
13366 (tui_calculate_regs_column_count): Rename
13367 tuiCalculateRegsColumnCount.
13368 (tui_check_register_values): Rename tuiCheckRegisterValues.
13369 (tui_show_registers): Rename tuiShowRegisters.
13370 (tui_display_registers_from_line): Rename
13371 tuiDisplayRegistersFromLine.
13372 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
13373 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
13374 (tui_first_reg_element_no_inline): Rename
13375 tuiFirstRegElementNoInLine.
13376 * tui/tui-data.h: Update copyright.
13377 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
13378 * tui/tui-windata.c: Update copyright, update references.
13379 * tui/tui-regs.c: Update copyright, update references.
13380 * tui/tui-win.c: Update copyright, update references.
13381 * tui/tui-layout.c: Update copyright, update references.
fe61caab 13382
cebe9500
AC
133832004-01-18 Andrew Cagney <cagney@redhat.com>
13384
bcdf1568
AC
13385 * tui/tui-io.c: Update copyright.
13386 (key_is_end_sequence, key_is_backspace): New functions.
13387 (key_is_command_char, key_is_start_sequence): New function.
13388 (tui_getc): Update references.
13389 * tui/tui-io.h: Update copyright.
13390 (m_tuiStartNewLine): Delete macro.
13391 (m_isBackspace, m_isDeleteChar): Delete macros.
13392 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
13393 (m_isNextPage, m_isPrevPage): Delete macros.
13394 (m_isLeftArrow, m_isRightArrow): Delete macros.
13395 (m_isXdbStyleCommandChar): Delete macro.
13396 (key_is_start_sequence): Declare, replace m_isStartSequence.
13397 (key_is_end_sequence): Declare, replace m_isEndSequence.
13398 (key_is_backspace): Declare ,replace m_isBackspace.
13399 (key_is_command_char): Declare, replace m_isCommandChar.
13400 * tui/tui-command.c: Update copyright.
13401 (tuiDispatchCtrlChar): Update references.
13402
130d87e6
AC
13403 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
13404 tuiSourceWin.h.
13405
d7b2e967
AC
13406 * tui/tui-command.c: Rename tui/tuiCommand.c.
13407 * tui/tui-command.h: Rename tui/tuiCommand.h.
13408 * tui/tui-data.c: Rename tui/tuiData.c.
13409 * tui/tui-data.h: Rename tui/tuiData.h.
13410 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
13411 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
13412 * tui/tui-io.c: Rename tui/tuiIO.c.
13413 * tui/tui-io.h: Rename tui/tuiIO.h.
13414 * tui/tui-layout.c: Rename tui/tuiLayout.c.
13415 * tui/tui-layout.h: Rename tui/tuiLayout.h.
13416 * tui/tui-regs.c: Rename tui/tuiRegs.c.
13417 * tui/tui-regs.h: Rename tui/tuiRegs.h.
13418 * tui/tui-source.c: Rename tui/tuiSource.c.
13419 * tui/tui-source.h: Rename tui/tuiSource.h.
13420 * tui/tui-stack.c: Rename tui/tuiStack.c.
13421 * tui/tui-stack.h: Rename tui/tuiStack.h.
13422 * tui/tui-win.c: Rename tui/tuiWin.c.
13423 * tui/tui-win.h: Rename tui/tuiWin.h.
13424 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
13425 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
13426 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
13427 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
13428 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
13429 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
13430 * tui/tui-file.c: Update includes.
13431 * tui/tui-hooks.c: Update includes.
13432 * tui/tui-interp.c: Update includes.
13433 * tui/tui.c: Update includes.
13434 * Makefile.in: Update all tui/ dependencies.
13435 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
13436
b2100910
AC
13437 * Makefile.in: Update copyright. Update dependencies.
13438
cebe9500
AC
13439 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
13440 problem.
13441
c6f0559b
AC
134422004-01-18 Andrew Cagney <cagney@redhat.com>
13443
43e9390b
AC
13444 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
13445 instead of register_gdbarch_init.
13446
c6f0559b
AC
13447 * remote-sds.c (tohex): Delete unused function. Update copyright.
13448 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
13449 * v850-tdep.c (v850_register_virtual_size): Ditto.
13450 * target.c (normal_target_post_startup_inferior): Ditto.
13451 * source.c (ambiguous_line_spec): Ditto.
13452 * remote.c (adapt_remote_get_threadinfo): Ditto.
13453 * mi/mi-out.c (out_field_fmt): Ditto.
13454 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
13455 (output_control_change_notification): Ditto.
13456 * m68k-tdep.c (m68k_register_byte): Ditto.
13457 (m68k_remote_breakpoint_from_pc): Ditto.
13458 * ui-out.c (init_ui_out_state): Delete unused declaration.
13459 * stabsread.c (search_value): Ditto.
13460 * mi/mi-cmd-env.c (env_cli_command): Ditto.
13461 * maint.c (print_section_table): Ditto.
13462 * infrun.c (set_follow_fork_mode_command): Ditto.
13463
a8504492
MK
134642004-01-18 Mark Kettenis <kettenis@gnu.org>
13465
13466 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
13467 DW_CFA_def_cfa_exporession. Add support for
13468 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
13469 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
13470
0bd8997e
AC
134712004-01-18 Andrew Cagney <cagney@redhat.com>
13472
13473 * ocd.c: Update copyright.
13474 (bdm_read_register_command): Delete unused function.
13475 (_initialize_remote_ocd): Delete commented out reference.
13476 (get_quoted_char, reset_packet): Delete #if0ed function.
13477 (output_packet, put_quoted_char): Delete #if0ed function.
13478 (stu_put_packet, stu_get_packet): Delete #if0ed function.
13479 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
13480 (BDM_BREAKPOINT): Delete #if0ed macro.
13481 (remote_timeout): Delete #if0ed variable.
13482
31bb40e4
MK
134832004-01-18 Mark Kettenis <kettenis@gnu.org>
13484
13485 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
13486 (core-sol2.o): Remove dependency.
13487 * core-sol2.c: Remove file.
13488
887432a5
AC
134892004-01-17 Andrew Cagney <cagney@redhat.com>
13490
13491 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
13492 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
13493 enums.
13494
29182b13
DJ
134952004-01-17 Daniel Jacobowitz <drow@mvista.com>
13496
13497 * remote.c: Update copyright years.
13498
2963ee1d
DJ
134992004-01-17 Daniel Jacobowitz <drow@mvista.com>
13500
13501 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
13502
79d45cd4
AC
135032004-01-17 Andrew Cagney <cagney@redhat.com>
13504
ee300cd4
AC
13505 * mdebugread.c: Update copyright.
13506 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
13507 (parse_type, parse_procedure): Ditto.
13508 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
13509
fcacc9c2
AC
13510 * cris-tdep.c (cris_store_struct_return): Put back accidently
13511 deleted function.
13512
79d45cd4
AC
13513 * gdbarch.sh: Update copyright year.
13514 * gdbarch.h, gdbarch.c: Re-generate.
13515
b263358a
DJ
135162004-01-17 Daniel Jacobowitz <drow@mvista.com>
13517
13518 Suggested by George Anzinger.
13519 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
13520 correct stack offset. Include unknown opcode numbers in the error
13521 message.
13522
931aecf5
AC
135232004-01-17 Andrew Cagney <cagney@redhat.com>
13524
13525 * x86-64-tdep.c (x86_64_init_abi): No need to clear
13526 extract_struct_value_address, i386 does not set it.
13527 * sparc64-tdep.c (sparc64_init_abi): Do not set
13528 extract_struct_value_address, never called.
13529 (sparc64_extract_struct_value_address): Delete function.
13530 * m68hc11-tdep.c: Update copyright.
13531 (m68hc11_gdbarch_init): Delete redundant assignment of
13532 extract_struct_value_address.
13533 * i386-tdep.c: Update copyright.
13534 (i386_gdbarch_init): Do not set extract_struct_value_address,
13535 never called.
13536 (i386_extract_struct_value_address): Delete function.
13537 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
13538 extract_struct_value_address, never called.
13539 (sparc32_extract_struct_value_address): #if 0 function. Add
13540 comments explaining its future.
13541
756fe439
DJ
135422004-01-17 Daniel Jacobowitz <drow@mvista.com>
13543
13544 * arm-tdep.c (arm_write_pc): New function.
13545 (arm_gdbarch_init): Call set_gdbarch_write_pc.
13546
e74f0f02
DJ
135472004-01-17 Daniel Jacobowitz <drow@mvista.com>
13548
13549 * breakpoint.c (must_shift_inst_regs): Delete.
13550 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
13551 and SHIFT_INST_REGS.
13552 * infcmd.c (step_1, step_1_continuation): Delete references to
13553 SHIFT_INST_REGS.
13554 * infrun.c (keep_going): Likewise.
13555 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
13556 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
13557
b6cb9035
AC
135582004-01-17 Andrew Cagney <cagney@redhat.com>
13559
444a1e2e
AC
13560 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13561 * gdbarch.h, gdbarch.c: Re-generate.
13562 * infcmd.c (print_return_value): Delete reference to
13563 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
13564
def7e6ed
AC
13565 * cris-tdep.c (cris_gdbarch_init): Do not set
13566 deprecated_extract_struct_value_address.
13567
07be497a
AC
13568 * xstormy16-tdep.c: Update copyright.
13569 (xstormy16_extract_struct_value_address): Update to current
13570 extract struct value address interface.
13571 (xstormy16_gdbarch_init): Set extract_struct_value_address.
13572 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
13573 current extract struct value address interface.
13574 (sh64_gdbarch_init): Set extract_struct_value_address.
13575
6b4d5c91
AC
13576 * cris-tdep.c: Update copyright.
13577 (cris_extract_struct_value_address): Delete function.
13578 (struct_return_address): Delete variable.
13579 (cris_store_struct_return): Do not set struct_return_address.
13580
464e0365
AC
13581 * mcore-tdep.c: Update copyright.
13582 (mcore_extract_struct_value_address): Delete function. Update
13583 comments.
13584 (mcore_gdbarch_init): Update.
13585 * mn10300-tdep.c: Update copyright.
13586 (mn10300_extract_struct_value_address): Delete function.
13587 (mn10300_gdbarch_init): Update.
13588 * v850-tdep.c: Update copyright.
13589 (v850_extract_struct_value_address): Delete.
13590 (v850_gdbarch_init): Update.
13591 * ns32k-tdep.c: Update copyright.
13592 (ns32k_extract_struct_value_address): Delete.
13593 (ns32k_gdbarch_init): Update.
13594 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
13595 (hppa_gdbarch_init): Update.
13596 * vax-tdep.c: Update copyright.
13597 (vax_extract_struct_value_address): Delete.
13598 (vax_gdbarch_init): Update.
13599
afb18d0f
AC
13600 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
13601 * gdbarch.h, gdbarch.c: Re-generate.
13602 * procfs.c (procfs_fetch_registers): Delete reference to
13603 DEPRECATED_NPC_REGNUM.
13604 (procfs_store_registers): Ditto.
13605 * regcache.c (generic_target_write_pc): Simplify.
13606 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
13607
a698f53e
AC
13608 * core-sol2.c (fetch_core_registers): Replace
13609 DEPRECATED_NPC_REGNUM with equivalent tdep value.
13610
adc11376
AC
13611 * hppa-tdep.c: Update copyright year.
13612 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
13613 NPC_REGNUM.
13614 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
13615
b6cb9035
AC
13616 * mips-tdep.c (mips_write_pc): New function.
13617 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
13618 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
13619 (mips_find_saved_regs, mips_software_single_step: Ditto.
13620 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
13621 mips_init_extra_frame_info, mips_pop_frame): Ditto.
13622
6d82d43b
AC
136232004-01-17 Andrew Cagney <cagney@redhat.com>
13624
13625 * mips-tdep.c: Re-indent. Group functions by ABI.
13626
71bd6bd4
AC
136272004-01-17 Andrew Cagney <cagney@redhat.com>
13628
13629 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
13630 * gdbarch.c: Re-generate.
13631 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
13632 DECR_PC_AFTER_BREAK to zero.
13633 * vax-tdep.c (vax_gdbarch_init): Ditto.
13634 * v850-tdep.c (v850_gdbarch_init): Ditto.
13635 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
13636 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
13637 * sh-tdep.c (sh_gdbarch_init): Ditto.
13638 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
13639 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
13640 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
13641 * mips-tdep.c (mips_gdbarch_init): Ditto.
13642 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
13643 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13644 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
13645 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
13646 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
13647 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
13648 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
13649 * frv-tdep.c (frv_gdbarch_init): Ditto.
13650 * cris-tdep.c (cris_gdbarch_init): Ditto.
13651 * avr-tdep.c (avr_gdbarch_init): Ditto.
13652 * arm-tdep.c (arm_gdbarch_init): Ditto.
13653 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
13654
a02abb62
JB
136552004-01-17 J. Brobecker <brobecker@gnat.com>
13656
13657 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
13658 Delete, no longer used.
13659 (read_subrange_type): New function, mostly extracted from
13660 read_array_type().
13661 (read_array_type): Replace extracted code by call to
13662 read_subrange_type().
13663 (dwarf2_get_attr_constant_value): New function.
13664 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
13665 (add_partial_symbol): Likewise.
13666 (process_die): Likewise.
13667 (new_symbol): Likewise.
13668 (read_type_die): Likewise.
13669
cf5b2f1b
AC
136702004-01-16 Andrew Cagney <cagney@redhat.com>
13671
13672 * symfile.c: Update copyright year.
13673 (compare_symbols): Delete unused function.
13674 * stabsread.c: Update copyright year.
13675 (lrs_general_complaint): Delete unused function.
13676 (ref_search_value): Ditto.
13677 (get_substring): Delete declaration.
13678 * sh64-tdep.c: Update copyright year.
13679 (sh64_get_gdb_regnum): Delete unused function.
13680 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
13681 Delete unused function.
13682
d33b9831
MK
136832004-01-17 Mark Kettenis <kettenis@gnu.org>
13684
13685 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
13686 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
13687
7aea86e6
AC
136882004-01-16 Andrew Cagney <cagney@redhat.com>
13689
13690 Changes from Peter Schauer.
13691 * rs6000-tdep.c: Update copyright year.
13692 (rs6000_push_dummy_call): Update the stack pointer before
13693 accessing the corresponding stack region.
13694 * rs6000-nat.c: Update copyright year.
13695 (set_host_arch): Set "info.abfd" to "exec_bfd".
13696
26b0da32
MK
136972004-01-15 Mark Kettenis <kettenis@gnu.org>
13698
13699 * blockframe.c: Update copyright year.
13700 (inside_entry_func): Don't treat a zero PC specially.
13701
86fbe6cc
EZ
137022004-01-14 Elena Zannoni <ezannoni@redhat.com>
13703
13704 * gcore.c (gcore_copy_callback): Use paddr_d to print size
13705 variable.
13706 (gcore_create_callback): Ditto. Skip any memory segment that has
13707 no permissions set.
13708
63d06c5c
DC
137092004-01-14 David Carlton <carlton@kealia.com>
13710
13711 Change symbols for C++ nested types to contain the fully qualified
13712 name, if possible. (At least in the DWARF-2 case.) Partial fix
13713 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
13714 c++/895.
13715 * c-exp.y (qualified_type): Handle types nested within classes.
13716 * cp-namespace.c: Update comments.
13717 (cp_set_block_scope): Delete #if 0.
13718 (cp_lookup_nested_type): Handle types nested within classes.
13719 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
13720 when appropriate.
13721 (add_partial_symbol): Add the name of the enclosing namespace to
13722 types.
13723 (pdi_needs_namespace): New.
13724 (add_partial_namespace): Tweak comment.
13725 (add_partial_structure): New.
13726 (psymtab_to_symtab_1): Initialize processing_current_prefix
13727 here...
13728 (process_die): instead of here.
13729 (read_structure_scope): Try to figure out the name of the class or
13730 namespace that the structure might be defined within.
13731 (read_enumeration): Generate fully-qualified names, if possible.
13732 (read_namespace): Don't set name to NULL.
13733 (die_specification): New.
13734 (new_symbol): Generate fully-qualified names for types.
13735 (read_type_die): Determine appropriate prefix.
13736 (determine_prefix): New.
13737 (typename_concat): New.
13738 (class_name): New.
13739 * valops.c (value_aggregate_elt): Pass NOSIDE to
13740 value_struct_elt_for_reference.
13741 (value_struct_elt_for_reference): Make static, add NOSIDE
13742 parameter, call value_maybe_namespace_elt as a last resort.
13743 (value_namespace_elt): Break out code into
13744 value_maybe_namespace_elt.
13745 (value_maybe_namespace_elt): New.
13746
87783b8b
AC
137472004-01-12 Andrew Cagney <cagney@redhat.com>
13748
13749 * mips-tdep.c (mips_convert_register_p): Handle both raw and
13750 cooked floating-point registers.
13751 (mips_gdbarch_init): Set convert_register_p, register_to_value,
13752 and value_to_register.
13753
6503b91e
AC
137542004-01-13 Andrew Cagney <cagney@redhat.com>
13755
13756 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
13757 * gdbarch.c: Re-generate.
13758 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
13759 FUNCTION_START_OFFSET.
13760 * v850-tdep.c (v850_gdbarch_init): Ditto.
13761 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
13762 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
13763 * sh-tdep.c (sh_gdbarch_init): Ditto.
13764 * s390-tdep.c (s390_gdbarch_init): Ditto.
13765 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
13766 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
13767 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
13768 * mips-tdep.c (mips_gdbarch_init): Ditto.
13769 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
13770 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
13771 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13772 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
13773 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
13774 * i386-tdep.c (i386_gdbarch_init): Ditto.
13775 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
13776 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
13777 * frv-tdep.c (frv_gdbarch_init): Ditto.
13778 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
13779 * cris-tdep.c (cris_gdbarch_init): Ditto.
13780 * avr-tdep.c (avr_gdbarch_init): Ditto.
13781 * arm-tdep.c (arm_gdbarch_init): Ditto.
13782 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
13783
ea1dd7bc
DJ
137842004-01-13 Daniel Jacobowitz <drow@mvista.com>
13785
13786 * infrun.c (follow_fork_mode_ask): Remove.
13787 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
13788 (follow_fork): Simplify and remove internal error for
13789 follow_fork_mode_ask.
13790 (_initialize_infrun): Update "set follow-fork-mode" help text.
13791
0f0cffd2
AC
137922004-01-13 Andrew Cagney <cagney@redhat.com>
13793
13794 * configure.in: Update copyright year.
13795 (build_warnings): Add -Wunused-label.
13796 * configure: Re-generate.
13797
de38af99
AC
137982004-01-12 Andrew Cagney <cagney@redhat.com>
13799
954a7fba
AC
13800 * exec.h (exec_ops): Make "extern".
13801
de38af99
AC
13802 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
13803 the function is void.
13804 (mips_pseudo_register_write): Ditto.
13805
1a111ce3
AC
138062004-01-12 Andrew Cagney <cagney@redhat.com>
13807
13808 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
13809 call. Never defined.
13810 * sparc-tdep.h (struct frame_info): Add opaque declaration.
13811 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
13812 (struct sparc_gregset, struct regcache): Ditto.
13813 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
13814
48efe704
AC
138152004-01-12 Andrew Cagney <cagney@redhat.com>
13816
13817 * mi/ChangeLog: Delete file. Renamed to ...
13818 * mi/ChangeLog-1999-2003: New file.
13819 * tui/ChangeLog: Delete file. Renamed to ...
13820 * tui/ChangeLog-1998-2003: New file.
fe61caab 13821
a54124c5
MK
138222004-01-11 Mark Kettenis <kettenis@gnu.org>
13823
2ca62865
MK
13824 * sparc64nbsd-tdep.c: Include "regset.h".
13825 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
13826 Remove variables.
13827 (fetch_core_registers): Remove function.
13828 (sparc64nbsd_core_fns): Remove variable.
13829 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
13830 functions.
13831 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
13832 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
13833 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
13834
ca9d58e9
MK
13835 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
13836 sparc_extract_struct_value_address.
13837 (sparc32_gdbarch_init): Set extract_struct_value_address.
13838 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
13839 function.
13840 (sparc64_init_abi): Set extract_struct_value_address. Don't set
13841 return_value_on_stack.
13842
3cc87ec0
MK
13843 * NEWS: Mention that %cs and %ss have been added to the AMD64
13844 configurations
13845
5bf00f29
MK
13846 * frame.c: Update copyright year.
13847 (get_prev_frame): Improve comment.
13848
4f7ec84e
MK
13849 * sparc64fbsd-tdep.c: Include "regset.h".
13850 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
13851 Remove variables.
13852 (fetch_core_registers): Remove function.
13853 (sparc64fbsd_core_fns): Remove variable.
13854 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
13855 functions.
13856 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
13857 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
46b58ce9 13858 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
4f7ec84e 13859
4e7b0cd3
MK
13860 * sparcnbsd-tdep.c: Include "regset.h".
13861 (fetch_core_registers): Remove function.
13862 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
13863 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
13864 functions.
13865 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
13866 TDEP->fpregset.
46b58ce9 13867 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
4e7b0cd3 13868
a54124c5
MK
13869 * sparc-tdep.h (struct regset): Provide opaque declaration.
13870 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
13871 fpregset and sizeof_fpregset members.
13872 * sparc-tdep.c (struct regset): Provide opaque declaration.
13873 (sparc_regset_from_core_section): New function.
13874 (sparc32_gdbarch_init): Initialize TDEP->gregset,
13875 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
13876 Set regset_from_core_section when appropriate.
13877
29ff87c5
MK
138782004-01-10 Mark Kettenis <kettenis@gnu.org>
13879
79b1ab3d
MK
13880 * x86-64-tdep.c (amd64_non_pod_p): New function.
13881 (amd64_classify_aggregate): Return class memory for non-POD
13882 C++ structure types.
13883
6470d250
MK
13884 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
13885 argument. Use it to reserve a register if necessary.
13886 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
13887 amd64_push_arguments.
13888
562c50c2
MK
13889 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
13890
af233647
MK
13891 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
13892 register numbers in comments.
13893 * x86-64-tdep.h: Update copyright year.
13894 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
13895 Adjust for addition of %cs and %ss.
13896 * amd64fbsd-nat.c: Update copyright year.
13897 (reg_offset): Add register offsets for %cs and %ss.
13898 * amd64fbsd-tdep.c: Update copyright year.
13899 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
13900 (amd64fbsd_sc_reg_offset): Likewise.
13901 * x86-64-linux-nat.c: Update copyright year.
13902 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
13903 and %ss.
13904 * amd64nbsd-nat.c: Update copyright year.
13905 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
13906 * amd64nbsd-tdep.c: Update copyright year.
13907 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
13908 * x86-64-linux-tdep.c: Update copyright year.
13909 (user_to_gdb_regmap): Add mapping for %cs and %ss.
13910 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
13911 * regformats/reg-x86-64.dat: Add %cs and %ss.
13912
29ff87c5
MK
13913 * blockframe.c (inside_entry_func): Reformat. Introduce new local
13914 variables to prevent long lines. Update comments to reflect
13915 reality.
13916
38d518c9
EZ
139172004-01-09 David Carlton <carlton@kealia.com>
13918
13919 Checked in by Elena Zannoni <ezannoni@redhat.com>.
13920 * dwarf2read.c (read_namespace): Pull out name-generating code
13921 into namespace_name. Rename previous_namespace to previous_prefix
13922 and processing_current_namespace to processing_current_prefix..
13923 (namespace_name): New function.
13924 (add_partial_symbol): Substitute uses of pdi->name with
13925 actual_name.
13926 * cp-support.h: Rename processing_current_namespace to
13927 processing_current_prefix.
13928 Update copyright year.
13929 * cp-namespace.c: Rename processing_current_namespace to
13930 processing_current_prefix.
13931 Update copyright year.
fe61caab 13932
1e4728e7
AC
139332004-01-09 Andrew Cagney <cagney@redhat.com>
13934
13935 * jv-valprint.c, ser-unix.c: Add missing copyright years.
13936
c77c642a
MK
139372004-01-09 Mark Kettenis <kettenis@gnu.org>
13938
13939 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
13940 complaining.
13941 (process_one_symbol): Deal with N_PATCH stabs.
13942
b44e9041
EZ
139432004-01-09 Elena Zannoni <ezannoni@redhat.com>
13944
13945 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
13946 ifdeffed code.
13947 Update copyright year.
38d518c9 13948
eccfb640
MC
139492004-01-08 Michael Chastain <mec.gnu@mindspring.com>
13950
13951 * config/pa/tm-hppa.h: Update extern declarations for
13952 hppa32_hpux_frame_saved_pc_in_sigtramp,
13953 hppa32_hpux_frame_base_before_sigtramp, and
13954 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
13955
848c5feb
MC
139562004-01-08 Michael Chastain <mec.gnu@mindspring.com>
13957
13958 * config/pa/tm-hppah.h: Update copyright years.
13959
3cc5d663
AC
139602004-01-08 Andrew Cagney <cagney@redhat.com>
13961
13962 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
13963 (mips_o32_reg_struct_has_addr): Delete function.
13964 (mips_gdbarch_init): Update.
13965 (mips_extract_struct_value_address): Delete function.
13966
bfec0b41
JJ
139672004-01-08 David Mosberger <davidm@hpl.hp.com>
13968
13969 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
13970 reality.
13971
16e109ca
AC
139722004-01-07 Andrew Cagney <cagney@redhat.com>
13973
6214a8a1
AC
13974 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
13975 architecture's elf flags (when available).
13976
8d5838b5
AC
13977 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
13978 FPU to the start, check the MIPS FPU when looking for an old
13979 architecture.
13980 (set_mipsfpu_single_command): Update the architecture.
13981 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
13982
480d3dd2
AC
13983 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
13984 (mips_mask_address_p): Add "tdep" parameter.
13985 (show_mask_address, mips_addr_bits_remove): Update.
13986 (mips_dump_tdep): Update.
13987 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
13988 (MIPS_STACK_ARGSIZE): Delete macro.
13989 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
13990 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
13991 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
13992 (mips_dump_tdep): Update.
13993 (MIPS_SAVED_REGSIZE): Delete macro.
13994 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
13995 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
13996 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
13997 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
13998 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
13999 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
14000 (mips_pop_frame, return_value_location): Update.
14001 (mips_n32n64_return_value, mips_dump_tdep): Update.
14002
ec03c1ac
AC
14003 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
14004 MIPS ABI.
14005
16e109ca
AC
14006 * mips-tdep.c: Update copyright.
14007 (mips_gdbarch_init): Merge two code blocks handling the register
14008 name and number layout.
14009
15255275
MS
140102004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
14011
14012 * tracepoint.c (validate_actionline): Fix segv at EOF
14013
9f9057da
MC
140142004-01-07 Michael Chastain <mec.gnu@mindspring.com>
14015
14016 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
14017 properly for static fields.
14018
0127c0d3 140192004-01-06 Jeff Johnston <jjohnstn@redhat.com>
91562f53 14020 Jason Molenda <jmolenda@apple.com>
0127c0d3
JJ
14021
14022 * disasm.c: Update copyright to include 2004.
14023 (do_mixed_source_and_assembly): For uiout asm list
14024 and tuple cleanups, initialize to null_cleanup instead of
fe61caab 14025 NULL and do so prior to loop. Only reset when we close off
0127c0d3 14026 the tuple/list. Move check for whether to close off the
fe61caab 14027 asm tuple/list to after dump_insns call where it will be run
0127c0d3
JJ
14028 on each loop iteration.
14029
5269965e
AC
140302004-01-05 Andrew Cagney <cagney@redhat.com>
14031
54f1137d
AC
14032 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
14033 should be a switch case and not a label.
14034 * mips-tdep.c (mips32_next_pc): Delete unused labels
14035 "greater_equal_branch" and "less_zero_branch".
14036 * jv-valprint.c (java_print_value_fields): Delete unused label
14037 "flush_it".
14038
5269965e
AC
14039 * target.c (unpush_target): Only close a target that is in the
14040 target stack.
14041
dbc22fa1
MK
140422004-01-05 Mark Kettenis <kettenis@gnu.org>
14043
9515395e
MK
14044 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
14045 address from [sp + 64] instead of %o2.
14046
dbc22fa1
MK
14047 * frame.c (get_prev_frame): Don't try to unwind the PC. This
14048 fixes PR backtrace/1476.
14049
5439edaa
AC
140502004-01-05 Andrew Cagney <cagney@redhat.com>
14051
14052 * libunwind-frame.h (struct frame_id): Add opaque declaration,
14053 move to start of file.
14054 * i386-tdep.h (struct regcache): Add opaque declaration.
14055 * config/ia64/nm-linux.h (struct target_ops): Add opaque
14056 declaration.
14057 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
14058 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
14059 * win32-nat.c (fake_create_process): Use ISO C style definition.
14060 * stabsread.c (define_symbol): Delete #ifndef
14061 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
14062 stabs_argument_has_addr call, macro never defined.
14063
19061abe
MC
140642004-01-04 Michael Chastain <mec.gnu@mindspring.com>
14065
14066 * op50-rom.c: Delete.
14067 * w89k-rom.c: Delete.
14068 * Makefile.in: Remove references.
14069
e53bef9f
MK
140702004-01-04 Mark Kettenis <kettenis@gnu.org>
14071
14072 * x86-64-tdep.c: Update copyright year.
14073 (struct amd64_register_info): Rename from x86_64_register_info.
14074 (amd64_register_info): Rename from x86_64_register_info.
14075 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
14076 (amd64_register_name): Rename from x86_64_register_name.
14077 (amd64_register_type): Rename from x86_64_register_type.
14078 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
14079 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
14080 (amd64_dwarf_reg_to_regnum): Rename from
14081 x86_64_dwarf_reg_to_regnum.
14082 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
14083 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
14084 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
14085 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
14086 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
14087 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
14088 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
14089 (amd64_frame_cache): Rename from x86_64_frame_cache.
14090 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
14091 (amd64_frame_prev_register): Rename from
14092 x86_64_frame_prev_register.
14093 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
14094 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
14095 (amd64_sigtramp_frame_cache): Rename from
14096 x86_64_sigtramp_frame_cache.
14097 (amd64_sigtramp_frame_prev_register): Rename from
14098 x86_64_sigtramp_frame_prev_register.
14099 (amd64_sigtramp_frame_unwind): Rename from
14100 x86_64_sigtramp_frame_unwind.
14101 (amd64_sigtramp_frame_sniffer): Rename from
14102 x86_64_sigtramp_frame_sniffer.
14103 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
14104 (amd64_frame_base): Rename from x86_64_frame_base.
14105 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
14106 (amd64_frame_align): Rename from x86_64_frame_align.
14107 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
14108 (amd64_regset_from_core_section): Rename from
14109 x86_64_regset_from_core_section.
14110 (x86_64_init_abi): Update comments.
14111
fca6aa58
NR
141122004-01-04 Nick Roberts <nick@nick.uklinux.net>
14113
14114 * MAINTAINERS (write after approval): Add myself.
14115
8ada74e3
MK
141162004-01-04 Mark Kettenis <kettenis@gnu.org>
14117
14118 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
14119 `float' arguments.
14120
5154b0cd
MK
141212004-01-04 Mark Kettenis <kettenis@gnu.org>
14122
14123 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
14124 such that it mentions a specific version of GCC that exhibits this
14125 bug.
14126
fb316966
MK
141272004-01-03 Mark Kettenis <kettenis@gnu.org>
14128
200cc553
MK
14129 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
14130 structure that has a single `float' member, store it in %f1 in
14131 addition to %f0.
14132
e226a4a0
MK
14133 * sparc-sol2-nat.c: Add missing '\'.
14134
b9d4c5ed
MK
14135 * sparc-tdep.c (sparc32_return_value): New function.
14136 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
14137 Remove functions.
14138 (sparc32_gdbarch_init): Set return_value, don't set
14139 extract_return_value, store_return_value, use_struct_convention
14140 and return_value_on_stack.
14141
fb316966
MK
14142 * sparc-sol2-nat.c: Add missing ')'.
14143
1af510a8
JB
141442004-01-03 J. Brobecker <brobecker@gnat.com>
14145
14146 * infrun.c (handle_step_into_function): New function.
14147 (handle_inferior_event): Extract out some code into the new
14148 function above.
14149
5cf4d23a
JB
141502004-01-03 J. Brobecker <brobecker@gnat.com>
14151
14152 * infrun.c (handle_inferior_event): Move the declaration of
14153 real_stop_pc inside the if blocks where it is used.
14154
60af1db2
MK
141552004-01-03 Mark Kettenis <kettenis@gnu.org>
14156
14157 * sparc64-tdep.c (sparc64_16_byte_align_p)
14158 (sparc64_store_floating_fields, sparc64_store_floating_fields):
14159 Use check_typedef to get subtypes of structures and unions.
14160 (sparc64_store_return_value): Fix calculation of the appropriate
14161 offset into VALBUF when storing a structure or union.
14162 (sparc64_return_value): New function.
14163 (sparc64_use_struct_convention): Remove function.
14164 (sparc64_init_abi): Set return_value, don't set
14165 extract_return_value, store_return_value and
14166 use_struct_convention.
14167
1a901d3f
EZ
141682004-01-03 Eli Zaretskii <eliz@elta.co.il>
14169
14170 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
14171 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
14172 gdb/config/alpha/xm-alphaosf.h,
14173 gdb/config/powerpc/tm-ppcle-eabi.h,
14174 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
14175 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
14176 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
14177 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
14178 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
14179 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
14180 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
14181 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
14182 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
14183 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
14184 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
14185 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
14186 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
14187 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
14188 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
14189 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
14190 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
14191 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
14192 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
14193 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
14194 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
14195 Remove lines for .cvsignore files.
14196
ef52e463
JB
141972004-01-03 J. Brobecker <brobecker@gnat.com>
14198
14199 * infrun.c: Back out the previous change.
14200
cb1bf9dc
MK
142012004-01-03 Mark Kettenis <kettenis@gnu.org>
14202
f0424ef6
MK
14203 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
14204 sparc-*-sunos4* to the list of REMOVED configurations.
14205
cb1bf9dc
MK
14206 * configure.tgt: Add back sparc-*-vxworks*.
14207 * remote-vxsparc.c: Remove all includes except for "defs.h",
14208 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
14209 Include "sparc-tdep.h".
14210 (SPARC_R_G1): New define.
14211 (vxsparc_gregset): New variable.
14212 (ext_format_sparc): Remove extern declaration.
14213 (vx_read_register): Rewrite to use sparc32_supply_gregset and
14214 sparc32_supply_fpregset.
14215 (vx_write_register): Rewrite to use sparc32_collect_gregset,
14216 sparc_collect_rwindow and sparc32_collect_fpregset.
14217 * config/sparc/tm-vxworks.h: New file, based on recently removed
14218 tm-vxsparc.h.
14219 * config/sparc/vxworks.mt: New file, based on recently removed
14220 vxworks.mt.
fe61caab 14221
5e938f9f
JB
142222004-01-03 J. Brobecker <brobecker@gnat.com>
14223
14224 * infrun.c (handle_step_into_function): New function.
14225 (handle_inferior_event): Extract out some code into the new
14226 function above.
14227
386c036b
MK
142282004-01-02 Mark Kettenis <kettenis@gnu.org>
14229
14230 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
14231 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
14232 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
14233 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
14234 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
14235 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
14236 (sparc_nat_h): New variable.
14237 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
14238 (tm-sun4os4.h): Remove dependency.
14239 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
14240 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
14241 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
14242 sparc-tdep.o): Update dependencies.
14243 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
14244 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
14245 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
14246 dependencies.
14247 * configure.host: Remove existing sparc-*-lynxos*,
14248 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
14249 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
14250 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
14251 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
14252 triplets.
14253 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
14254 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
14255 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
14256 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
14257 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
14258 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
14259 sparc64-*-solaris2* and sparc64-*-* triplets.
14260 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
14261 "symtab.h" and "objfiles.h".
14262 (BIAS): Remove define.
14263 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
14264 (X_DISP19): Remove macros.
14265 (sparc_fetch_instruction): Remove function.
14266 (struct gdbarch_tdep): Remove definition.
14267 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
14268 (sparc_breakpoint_from_pc): Remove function.
14269 (struct sparc64_frame_cache): Remove definition.
14270 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
14271 sparc64_unwind_pc): Remove functions.
14272 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
14273 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
14274 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
14275 (sparc64_frame_cache): Change return type to `struct
14276 sparc_frame_cache *'. Simply call sparc_frame_cache.
14277 (sparc64_frame_this_id, sparc64_frame_prev_register,
14278 sparc64_frame_base_address): Use `struct sparc_frame_cache'
14279 instead of `struct sparc64_frame_cache.
14280 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
14281 sparc_analyze_control_transfer, sparc_software_single_step,
14282 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
14283 _initialize_sparc64_tdep): Remove functions.
14284 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
14285 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
14286 macros.
14287 (sparc64_supply_gregset, sparc64_collect_gregset,
14288 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
14289 (sparc64_init_abi): New function.
14290 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
14291 inclusion guard. Include "sparc-tdep.h".
14292 (BIAS): Define.
14293 (r_tstate_offset, r_fprs_offset): New defines.
14294 (enum sparc_regnum): Remove defenition.
14295 (enum sparc64_regnum): Reformat.
14296 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
14297 (sparc64_init_abi, sparc64_supply_gregset,
14298 sparc64_collect_gregset, sparc64_supply_fpregset,
14299 sparc64_collect_fpregset): New prototypes.
14300 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
14301 Add extern declarations.
14302 (sparc64_sol2_init_abi): New prototype.
14303 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
14304 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
14305 prototypes.
14306 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
14307 "sparnbsd-nat.h".
14308 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
14309 functions.
14310 (_initialize_sparc64fbsd_nat): Remove initialization of
14311 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
14312 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
fe61caab 14313 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
386c036b
MK
14314 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
14315 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
14316 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
14317 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
14318 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
14319 (sparc64fbsd_r_y_offset): Remove variables.
14320 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
14321 Make static and const.
14322 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
14323 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
14324 functions.
14325 (sparc64fbsd_gregset): New variable.
14326 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
14327 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
14328 and sparc64_supply_fpregset.
14329 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
14330 (sparc64fbsd_sigtramp_frame_this_id)
14331 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
14332 (sparc64fbsd_sigtramp_frame_unwind): New variable.
14333 (sparc64fbsd_sigtramp_frame_sniffer): New function.
14334 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
14335 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
14336 * sparcnbsd-tdep.c: Update copyright year. Include
14337 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
14338 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
14339 "value.h" and "sparcnbsd-tdep.h".
14340 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
14341 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
14342 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
14343 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
14344 defines.
14345 (sparcnbsd_gregset): New variable.
14346 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
14347 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
14348 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
14349 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
14350 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
14351 variables.
14352 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
14353 (sparc32nbsd_sigcontext_frame_this_id)
14354 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
14355 (sparc32nbsd_sigcontext_frame_unwind): New variable.
14356 (sparc32nbsd_sigtramp_frame_sniffer): New function.
14357 (sparcnbsd_get_longjmp_target_32,
14358 sparcnbsd_get_longjmp_target_64): Remove functions.
14359 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
14360 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
14361 sparcnbsd_init_elf): Remove.
14362 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
14363 (sparcnbsd_elf_init_abi): New functions.
14364 (_initialize_sparcnbsd_tdep): New prototype.
14365 (_initialize_sparnbsd_tdep): Update.
14366 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
14367 corelow.o. Add sparc64-nat.o and sparc-nat.o.
14368 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
14369 * config/sparc/linux.mh: Update comment.
14370 (XM_FILE, HOST_IPC): Remove variables.
14371 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
14372 sparc-linux-nat.o.
14373 * config/sparc/linux.mt: Update comment.
14374 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
14375 * config/sparc/nbsd.mt: Reformat.
14376 * config/sparc/nbsd64.mh: Update comment.
14377 (NATDEPFILES): Add sparc-nat.o.
14378 * config/sparc/nbsd64.mt: Update comment.
14379 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
14380 (TM_FILE): Set to tm-nbsd.h.
14381 * config/sparc/nbsdelf.mh: Update comment.
14382 (NATDEPFILES): Add sparc-nat.o.
14383 (XM_FILE): Delete.
14384 * config/sparc/nbsdaout.mh: Update comment.
14385 (NATDEPFILES): Add sparc-nat.o
14386 (XM_FILE): Delete.
14387 * config/sparc/nm-linux.h: Update copyright year. Don't include
14388 "config/nm-svr4.h" and "solib.h". Add protection against multiple
14389 inclusion.
14390 (KERNEL_U_SIZE): Remove define.
14391 (kernel_u_size): Remove prototype.
14392 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
14393 * config/sparc/nm-nbsd.h: Update copyright. Don't include
14394 "regcache.h".
14395 (CHILD_PREPARE_TO_STORE): Remove define.
14396 * config/sparc/nm-nbsdaout.h: Tweak some comments.
14397 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
14398 sparcnbsd-nat.c: Rewrite files.
14399 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
14400 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
14401 sparcnbsd-tdep.h: Remove files.
14402 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
14403 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
14404 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
14405 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
14406 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
14407 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
14408 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
14409 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
14410 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
14411 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
14412 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
14413 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
14414 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
14415 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
14416 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
14417 * config/sparc/linux64.mh, config/sparc/linux64.mt,
14418 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
14419 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
14420 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
14421
ee84457a
AC
144222004-01-02 Andrew Cagney <cagney@redhat.com>
14423
14424 From 2003-12-18 Kazuhiro Inaoka:
14425 * configure.host: Add m32r-linux target.
14426
0bc2134e
MC
144272004-01-02 Michael Chastain <mec.gnu@mindspring.com>
14428
14429 * top.c (print_gdb_version): Update year to 2004.
14430
89a72f9c
MM
144312004-01-02 Mark Mitchell <mark@codesourcery.com>
14432
14433 * MAINTAINERS: Add myself to the write-after-approval category.
14434
86b013ed
DJ
144352004-01-02 Daniel Jacobowitz <drow@mvista.com>
14436
14437 From Bernardo Innocenti <bernie@develer.com>:
14438 * configure.tgt: Add uClinux target.
14439
e42c9534
AC
144402004-01-02 Andrew Cagney <cagney@redhat.com>
14441
14442 * utils.c (do_my_cleanups): Make static, add forward declaration.
14443 * defs.h (do_my_cleanups): Delete declaration.
14444
162467d3
EZ
144452004-01-02 Eli Zaretskii <eliz@elta.co.il>
14446
14447 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
14448 bfd/ChangeLog-0203.
14449
78434e59
MK
144502004-01-02 Mark Kettenis <kettenis@gnu.org>
14451
14452 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
14453 in <machine/reg.h>.
14454 * configure, config.in: Regenerate.
14455
48efe704
AC
14456For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
14457tui/ChangeLog-1998-2003.
c906108c
SS
14458\f
14459Local Variables:
14460mode: change-log
14461left-margin: 8
14462fill-column: 74
14463version-control: never
14464End:
This page took 1.835854 seconds and 4 git commands to generate.