2004-11-13 Andrew Cagney <cagney@gnu.org>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
9445aa30
AC
12004-11-13 Andrew Cagney <cagney@gnu.org>
2
3 * NEWS: List h8300*-*-*, mcore-*-*, mn10300-*-*, ns32k-*-*, and
4 v850-*-* under removed.
5 * configure.host: Delete ns32k-*-netbsd*.
6 * configure.tgt: Delete h8300-*-*, mcore*-*-*, mn10300-*-*,
7 ns32k-*-netbsd*, and v850*-*-*.
8 * MAINTAINERS: Mark h8300, mcore, mn10300, ns32k, v850 as
9 "Deleted"
10 * config/h8300/tm-h8300.h, config/h8300/h8300.mt: Delete.
11 * h8300-tdep.c, config/mcore/mcore.mt, mcore-rom.c: Delete.
12 * mcore-tdep.c, config/mn10300/mn10300.mt: Delete.
13 * mn10300-tdep.c, config/ns32k/nbsdaout.mh: Delete.
14 * config/ns32k/nbsdaout.mt, config/ns32k/nm-nbsd.h: Delete.
15 * config/ns32k/nm-nbsdaout.h, config/ns32k/tm-ns32k.h: Delete.
16 * ns32knbsd-nat.c, ns32knbsd-tdep.c, ns32k-tdep.c: Delete.
17 * ns32k-tdep.h, config/v850/v850.mt, v850ice.c: Delete.
18 * v850-tdep.c: Delete.
19
f6e1bffc
JB
202004-11-13 Joel Brobecker <brobecker@gnat.com>
21
22 * irix5-nat.c (fetch_core_registers): Replace use of
23 deprecated_registers by equivalent code.
24
44ed547b
JB
252004-11-13 Joel Brobecker <brobecker@gnat.com>
26
27 * irix5-nat.c (fill_gregset): Replace use of deprecated_registers
28 with equivalent code.
29 (fill_fpregset): Likewise.
30
e84ecc99
AC
312004-11-13 Andrew Cagney <cagney@gnu.org>
32
ca1a823a
AC
33 * MAINTAINERS: Do not list "Deleted" architectures.
34
e84ecc99
AC
35 * configure.tgt: Delete i[34567]86-*-vxworks*, m68*-netx-*,
36 m68*-*-vxworks*, mips*-*-vxworks*, powerpc-*-vxworks*, and
37 sparc-*-vxworks*.
38 * NEWS: Mention that vxworks was deleted.
39 * config/m68k/tm-vx68.h, config/mips/tm-vxmips.h: Delete.
40 * config/powerpc/tm-vxworks.h, config/tm-vxworks.h: Delete.
41 * config/i386/vxworks.mt, config/m68k/vxworks68.mt: Delete.
42 * config/mips/vxmips.mt, config/powerpc/vxworks.mt: Delete.
43 * config/sparc/vxworks.mt, vx-share/dbgRpcLib.h: Delete.
44 * vx-share/ptrace.h, vx-share/regPacket.h: Delete.
45 * vx-share/vxTypes.h, vx-share/vxWorks.h: Delete.
46 * vx-share/wait.h, vx-share/xdr_ld.c: Delete.
47 * vx-share/xdr_ld.h, vx-share/xdr_ptrace.c: Delete.
48 * vx-share/xdr_ptrace.h, vx-share/xdr_rdb.c: Delete.
49 * vx-share/xdr_rdb.h, remote-vxsparc.c: Delete.
50 * remote-vxmips.c, remote-vx.c: Delete.
51 * remote-vx68.c: Delete.
52 * config/m68k/tm-os68k.h: Remove reference to VxWorks.
53 * config/m68k/os68k.mt, ada-lang.h: Ditto.
54 * Makefile.in (HFILES_NO_SRCDIR, ALLDEPFILES, remote-vx68.o)
55 (remote-vx.o, remote-vxmips.o, remote-vxsparc.o): Delete vx files.
56
01e937bc
EZ
572004-11-13 Eli Zaretskii <eliz@gnu.org>
58
29247324
EZ
59 * config/i386/xm-go32.h: Don't include fopen-bin.h.
60 Don't define CRLF_SOURCE_FILES and DIRNAME_SEPARATOR.
61
62 * source.c (OPEN_MODE, FDOPEN_MODE): Remove the definitions in the
63 branch that doesn't define CRLF_SOURCE_FILES; always use
64 binary-mode open.
65 (print_source_lines_base, forward_search_command)
66 (reverse_search_command): Enable the code that accepts DOS-style
67 CRLF line endings on all platforms (this removes the need for
68 CRLF_SOURCE_FILES).
69
f8f0d88a 70 * defs.h: Fix wording of the comment before FOPEN_RB.
29247324 71 (DIRNAME_SEPARATOR) [__MSDOS__]: Define to ';'.
f8f0d88a 72
01e937bc
EZ
73 * config/djgpp/fnchange.lst: Group renames for opcode directory
74 together.
75
76 * config/djgpp/djconfig.sh: Replace file names that don't exist
77 anymore with existing files, for checking the unpacked
78 distribution.
79
80 * config/djgpp/config.sed (am_cv_exeext, lt_cv_sys_max_cmd_len):
81 Export pre-cooked values in configure-* targets that begin with
82 "@test -f stage_last".
83
25ae5d16
AC
842004-11-12 Andrew Cagney <cagney@gnu.org>
85
86 * defs.h (enum lval_type): Delete lval_reg_frame_relative.
87 * value.h (struct value): Update comment.
88 * valops.c (value_assign): Fold lval_reg_fame_relative into
89 lval_register.
90 * findvar.c (value_from_register, locate_var_value): Ditto.
91
d7318818
RC
922004-11-12 Randolph Chung <tausq@debian.org>
93
94 * config/tm/tm-hppa.h (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
95 * parse.c (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
96 (write_exp_msymbol): Remove conditional check for symbols starting
97 with $. Update comments.
98
89676665
RC
992004-11-12 Randolph Chung <tausq@debian.org>
100
101 * pa64solib.c (pa64_solib_thread_start_addr): Rename from
102 so_lib_thread_start_addr.
103 * pa64solib.h (so_list): Forward declare.
104 (pa64_solib_thread_start_addr): Prototype.
105 * somsolib.c (SHL_LOAD, SHL_UNLOAD): Define if not already defined.
106 (no_shared_libraries): Remove.
107 (som_solib_thread_start_addr): Rename from so_lib_thread_start_addr.
108 * somsolib.h (som_solib_thread_start_addr): Likewise; prototype.
109 * hpread.c (hpread_process_one_debug_symbol): Use either the som or
110 the elf solib handler to find the start address.
111
112 * config/pa/hppahpux.mh (NATDEPFILES): Move target-specific support
113 files to the target makefile.
114 * config/pa/hpux1020.mh (NATDEPFILES): Likewise.
115 * config/pa/hpux11.mh (NATDEPFILES): Likewise.
116 * config/pa/hpux11w.mh (NATDEPFILES): Likewise.
117
118 * config/pa/hppa64.mt (TDEPFILES): Put target-specific support
b82f24bf 119 files for symbol reading and shared library handling here.
89676665 120 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
b82f24bf
RC
121 (PA_SOM_ONLY): Define so we can build a 32-bit SOM only target
122 without bringing in 64-bit support.
89676665 123
df407dfe
AC
1242004-11-12 Andrew Cagney <cagney@gnu.org>
125
4991999e
AC
126 * sparc-tdep.c: Replace VALUE_TYPE with value_type.
127 * v850-tdep.c, sparc64-tdep.c, sh-tdep.c: Ditto.
128 * sh64-tdep.c, s390-tdep.c, mcore-tdep.c: Ditto.
129 * h8300-tdep.c, arm-linux-tdep.c, amd64-tdep.c: Ditto.
130 * hppa-tdep.c, mips-tdep.c, m88k-tdep.c: Ditto.
131 * m68hc11-tdep.c, m32r-tdep.c, ia64-tdep.c: Ditto.
132 * frv-tdep.c, cris-tdep.c, avr-tdep.c, alpha-tdep.c: Ditto.
133
9ee8fc9d
AC
134 Merge VALUE_REGNO and VALUE_FRAME_REGNUM into VALUE_REGNUM.
135 * value.h (VALUE_REGNO, VALUE_FRAME_REGNUM): Delete.
136 (VALUE_REGNUM): Define.
137 (struct value): Delete location.regnum, rename "regno" to
138 "regnum".
139 * value.c, valops.c, valarith.c, findvar.c: Update.
140
df407dfe
AC
141 * value.h (VALUE_TYPE, VALUE_NEXT, VALUE_OFFSET, VALUE_BITSIZE)
142 (VALUE_BITPOS): Delete.
143 (value_type, value_offset, value_bitsize, value_bitpos): Declare.
144 * value.c (value_type, value_offset, value_bitpos)
145 (value_bitsize): New functions. Update references.
146 * arm-tdep.c, gnu-v3-abi.c, hpacc-abi.c, gnu-v2-abi.c: Update.
147 * f-valprint.c, cp-valprint.c, c-valprint.c: Update.
148 * ada-valprint.c, typeprint.c, scm-valprint.c, scm-exp.c: Update.
149 * p-valprint.c, jv-valprint.c, jv-lang.c, varobj.c: Update.
150 * objc-lang.c, ada-lang.c, std-regs.c, stack.c: Update.
151 * infcall.c, linespec.c, printcmd.c, valarith.c: Update.
152 * valops.c, eval.c, findvar.c, breakpoint.c: Update.
153 * tracepoint.c, ax-gdb.c, mi/mi-main.c, cli/cli-dump.c:
154 * rs6000-tdep.c, ppc-sysv-tdep.c: Update.
155
61c82a3b
AC
1562004-11-12 Andrew Cagney <cagney@gnu.org>
157
158 * cris-tdep.c (cris_register_offset): Delete, never called.
159 (cris_spec_reg_applicable): Delete cris_ver_sim.
160 * MAINTAINERS: List d10v as OBSOLETE.
161 * rdi-share/host.h (FOPEN_WB): #ifdef 0 out definitions of
162 FOPEN_WB et.al., defined by "fopen-bin.h".
163
5aac166f
RC
1642004-11-12 Randolph Chung <tausq@debian.org>
165
166 * hppa-tdep.c (hppa_skip_permanent_breakpoint): Move definition ...
167 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): ... to here.
168 * config/pa/tm-hppa.h (SKIP_PERMANENT_BREAKPOINT): Move definition ...
169 * config/pa/tm-hppah.h (SKIP_PERMANENT_BREAKPOINT): ... to here.
170
4fab48b9
MK
1712004-11-12 Mark Kettenis <kettenis@jive.nl>
172
173 * tui/tui-io.c: Don't include "terminal.h".
174 * Makefile.in (tui-io.o): Update dependencies.
175
9b098f24
KI
1762004-11-12 Kei Sakamoto <sakamoto.kei@renesas.com>
177
178 * Makefile.in (m32r-linux-tdep.o): Update dependencies.
179 * m32r-linux-tdep.c (m32r_linux_init_abi): Call
180 set_gdbarch_regset_from_core_section for core file support.
181 (m32r_linux_supply_gregset, m32r_linux_regset_from_core_section):
182 New functions.
183
a71f8c30
RC
1842004-11-11 Randolph Chung <tausq@debian.org>
185
186 * hppa-tdep.c (skip_prologue_hard_way): Make static, add
187 stop_after_branch parameter and use it to determine if we should look
188 at the delay slot of the first branch insn to find prologue insns.
189 (hppa_skip_prologue): Update comment and call to skip_prologue_hard_way.
190 (hppa_frame_cache): Likewise.
191
50b2f48a
RC
1922004-11-11 Randolph Chung <tausq@debian.org>
193
194 * hppa-tdep.c (hppa_frame_cache): Properly handle the frame pointer
195 register so that it can be unwound from anywhere in the prologue.
196
be723e22
MS
1972004-11-10 msnyder <msnyder@redhat.com>
198
199 * rs6000-tdep.c (skip_prologue): After saving lr_offset,
200 must invalidate lr_reg (so we don't try to save it again).
201 Ditto for cr_offset and cr_reg.
202
d6f7abdf
AC
2032004-11-05 Jon Beniston <jon@beniston.com>
204
216c5547 205 Committed by Andrew Cagney.
d6f7abdf
AC
206 * remote.c (putpkt_binary) Fix PR gdb/1806. Send an ACK
207 when an unexpected packet is received, as the target stubs
208 continually retransmit the same packet until ACKed.
209
1d225535
RC
2102004-11-10 Randolph Chung <tausq@debian.org>
211
212 * frame.c (get_prev_frame): Use get_frame_type to retrieve the
d6f7abdf 213 frame's type.
1d225535 214
2315ffec
RC
2152004-11-10 Randolph Chung <tausq@debian.org>
216
217 * blockframe.c (inside_entry_func): Move to .....
218 * frame.c (inside_entry_func): ... here, and make static.
219 (backtrace_past_entry): New flag.
220 (get_prev_frame): Stop backtrace at the entry function if enabled
221 by flag. Update comments.
222 (_initialize_frame): Add command to set backtrace_past_entry flag.
223 * defs.h (inside_entry_func): Remove prototype.
224
917c78fc
MK
2252004-11-10 Mark Kettenis <kettenis@gnu.org>
226
227 * dwarf2read.c: Fix formatting.
228
994b9211
AC
2292004-11-10 Andrew Cagney <cagney@gnu.org>
230
231 * value.h (COERCE_REF, COERCE_ARRAY, COERCE_NUMBER, COERCE_ENUM)
232 (coerce_ref, coerce_array, coerce_number, coerce_enum): Replace
233 macros with function declarations.
234 * value.c (coerce_ref, coerce_array, coerce_number)
235 (coerce_enum): New functions.
236 (value_as_long, value_as_address): Update.
237 * ada-lang.c (ada_coerce_ref, ada_value_binop)
238 (ada_evaluate_subexp, ada_value_assign, ada_value_struct_elt): Update.
239 * jv-lang.c (evaluate_subexp_java): Update.
240 * valarith.c (value_less, value_neg, value_complement)
241 (value_binop, value_add, value_subscript, value_x_binop)
242 (value_logical_not, value_sub): Update.
243 * valops.c (check_field, value_struct_elt, value_ind)
244 (value_find_oload_method_list, value_cast, value_assign): Update.
245 * eval.c (evaluate_subexp_standard): Update.
246
06987e64
MK
2472004-11-10 Mark Kettenis <kettenis@gnu.org>
248
249 * mips-tdep.c (mips32_relative_offset): Change return type to
250 LONGEST, change argument type to ULONGEST. Fix sign-extension.
251
4a302917
RC
2522004-11-10 Randolph Chung <tausq@debian.org>
253
254 * hppa-tdep.c (hppa32_register_name, hppa64_register_name): Make static.
255 (hppa32_push_dummy_call, hppa64_push_dummy_call): Likewise.
256 (hppa_fetch_pointer_argument): Likewise.
257 (hppa_frame_cache): Use safe_frame_unwind_memory instead of
258 deprecated_read_memory_nobpt.
259 (_initialize_hppa_tdep): Replace deprecated_add_show_from_set/
260 add_set_cmd sequence with add_setshow_boolean_cmd.
261
390e974f
AC
2622004-11-09 Andrew Cagney <cagney@gnu.org>
263
264 GDB 6.3 released from GDB 6.3 branch.
265
92e023d6
AC
2662004-11-09 Andrew Cagney <cagney@gnu.org>
267
268 * values.c: Rename to ...
269 * value.c: ..., new file.
270 * Makefile.in: Update.
271
d10891d4
DJ
2722004-11-09 Daniel Jacobowitz <dan@debian.org>
273
274 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Correct allocated
275 size.
276
00a4c844
AC
2772004-11-09 Andrew Cagney <cagney@gnu.org>
278
c44523e7
AC
279 * TODO: Delete.
280
00a4c844
AC
281 * value.h (struct value): Delete field bfd_section.
282 (VALUE_BFD_SECTION): Delete macro.
283 (COERCE_REF): Update.
284 (value_at, value_at_lazy): Delete asection parameter.
285 * printcmd.c (print_formatted, x_command): Update.
286 (do_examine): Delete asection parameter.
287 (next_section): Delete variable.
288 * valops.c (value_cast, value_at, value_at_lazy)
289 (value_coerce_function, value_addr, value_ind, value_string)
290 (find_rt_vbase_offset, value_full_object): Update.
291 * hpacc-abi.c (hpacc_virtual_fn_field)
292 (hpacc_value_rtti_type): Update.
293 * gnu-v3-abi.c (gnuv3_rtti_type, gnuv3_virtual_fn_field)
294 (gnuv3_baseclass_offset): Update.
295 * f-valprint.c (f_val_print): Update.
296 * c-valprint.c (c_val_print): Update.
297 * p-valprint.c (pascal_val_print): Update.
298 * jv-valprint.c (java_value_print): Update.
299 * jv-lang.c (java_class_from_object, evaluate_subexp_java): Update.
300 * ada-lang.c (ada_value_primitive_packed_val)
301 (ada_evaluate_subexp): Update.
302 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Update.
303 * expprint.c (print_subexp_standard): Update.
304 * infcall.c (call_function_by_hand): Update.
305 * valarith.c (value_add): Update.
306 * eval.c (evaluate_subexp_standard): Update.
307 * values.c (allocate_value, value_copy, value_static_field): Update.
308 * findvar.c (read_var_value, locate_var_value): Update.
309
5cb2fe25
AC
3102004-11-09 Andrew Cagney <cagney@gnu.org>
311
312 * i386-linux-tdep.c: Include "dwarf2-frame.h".
313 * Makefile.in: Update all dependencies.
314
cbafadeb
AC
3152004-11-08 Andrew Cagney <cagney@gnu.org>
316
317 * sentinel-frame.c (sentinel_frame_prev_pc): New function.
318 (sentinel_frame_unwinder): Add the prev_pc method.
319 * frame.c (frame_pc_unwind): Use the per-frame pc unwinder when
320 available. Do not handle the sentinel-frame case.
321 * frame-unwind.h (frame_prev_register_ftype): Define.
322 (struct frame_unwind): Add prev_pc;
323
3b78cdbb
DA
3242004-11-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
325
326 * configure.in: Check for ncurses/term.h.
327 * gdb_curses.h: Include term.h here, prefering ncurses/term.h.
328 * utils.c: Include gdb_curses.h instead of curses.h and term.h.
329 * tui/tui.c: Don't include term.h.
330 * configure, config.in: Rebuilt.
331
bcfca652
MK
3322004-11-08 Mark Kettenis <kettenis@gnu.org>
333
334 * m68kbsd-nat.c: Include "inf-ptrace.h".
335 (_initialize_m68kbsd_nat): Fix pasto.
336 * Makefile.in (m68kbsd-nat.o): Update dependencies.
337
527159b7
RC
3382004-11-08 Randolph Chung <tausq@debian.org>
339
340 * infrun.c (debug_infrun): New variable.
341 (resume, proceed, wait_for_inferior): Annotate with debug messages.
342 (handle_inferior_event, keep_going): Likewise.
343 (_initialize_infrun): Register "set debug infrun" command.
344
c874c7fc
AS
3452004-11-08 Andreas Schwab <schwab@suse.de>
346
347 * linux-nat.c (PTRACE_EVENT_VFORK_DONE): Renamed from
348 PTRACE_EVENT_VFORKDONE.
349 (child_follow_fork): Adjust.
350
3c8fa307
AC
3512004-11-08 Andrew Cagney <cagney@gnu.org>
352
5c26072a
AC
353 * README: Refer to 6.3, not 6.2, update directory listing droppng
354 references to intl/ and mmalloc/.
355 * PROBLEMS: Refer to 6.3 not 6.2.
356
3c8fa307
AC
357 * PROBLEMS: Delete no-longer applicable problems.
358
12b8a2cb
DJ
3592004-11-07 Andrew Cagney <cagney@redhat.com>
360 Daniel Jacobowitz <dan@debian.org>
361 Roland McGrath <roland@redhat.com>
362
363 * Makefile.in (symfile-mem.o): Update dependencies.
364 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): New.
365 (i386_linux_init_abi): Call dwarf2_frame_set_signal_frame_p.
366 * inf-ptrace.c (inf_ptrace_attach): Call
367 observer_notify_inferior_created.
368 * inftarg.c (child_attach): Likewise.
369 * symfile-mem.c: Include "observer.h", "auxv.h", and "elf/common.h".
370 (symbol_file_add_from_memory): Take NAME argument. Use it for
371 the new BFD's filename.
372 (add_symbol_file_from_memory_command): Update call to
373 symbol_file_add_from_memory.
374 (struct symbol_file_add_from_memory_args, add_vsyscall_page)
375 (symbol_file_add_from_memory_wrapper): New.
376 (_initialize_symfile_mem): Register add_vsyscall_page as an
377 inferior_created observer.
378
abbc6945
MK
3792004-11-07 Mark Kettenis <kettenis@gnu.org>
380
381 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Rename from
382 fetch_inferior_registers. Make static.
383 (m68kbsd_store_inferior_registers): Rename from
384 store_inferior_registers. Make static.
385 (_initialize_m68kbsd_nat): Construct and add target vector.
386 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
387 inftarg.o. Add inf-ptrace.o.
388 (NAT_FILE): Set to tm-solib.h.
389 (LOADLIBES): New variable.
390 * config/m68k/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
391 inftarg.o. Add inf-ptrace.o.
392 (NAT_FILE): Delete variable.
393 * config/m68k/obsd.mh (NATDEPFILES): Remove infptrace.o and
394 inftarg.o. Add inf-ptrace.o.
395 (NAT_FILE): Set to tm-solib.h.
396 * config/m68k/nm-nbsdaout.h: Remove file.
397
3ed09a32
DJ
3982004-11-07 Daniel Jacobowitz <dan@debian.org>
399
400 * dwarf2-frame.c (struct dwarf2_frame_ops): Add signal_frame_p.
401 (dwarf2_frame_set_signal_frame_p, dwarf2_frame_signal_frame_p)
402 (dwarf2_signal_frame_unwind): New.
403 (dwarf2_frame_sniffer): Use dwarf2_frame_signal_frame_p.
404 * dwarf2-frame.h (dwarf2_frame_set_signal_frame_p): New prototype.
405
8e763687
MK
4062004-11-07 Mark Kettenis <kettenis@gnu.org>
407
4fb31ed0
MK
408 * Makefile.in (mips64obsd-tdep.o): Fix typo.
409
fabe86c8
MK
410 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Renamed
411 from mipsnbsd_ilp32_solib_svr4_fetch_link_map_offsets. Trim sizes
412 to only include the structure members we actually need.
413 (mipsnbsd_lp64_fetch_link_map_offsets): Renamed from
414 mipsnbsd_lp64_solib_svr4_fetch_link_map_offsets. Trim sizes to
415 only include the structure members we actually need.
416 (mipsnbsd_init_abi): Update.
417
366e93e8
MK
418 * mips64obsd-nat.c: Include "mips-tdep.h".
419 (MIPS64OBSD_NUM_REGS): Remove define.
420 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM): New defines.
421 (mips64obsd_supply_gregset, mips64obsd_collect_gregset): Handle
422 floating-point registers correctly.
423 * Makefile.in (mips64obsd-nat.o): Update dependencies.
424
8e763687
MK
425 * mips64obsd-tdep.c: Include "trad-frame.h", "tramp-frame.h" and
426 "gdb_assert.h".
427 (mips64obsd_sigframe_init): New function.
428 (mips64obsd_sigframe): New variable.
429 (mips64obsd_init_abi): Add comments. Prepend mips64obsd_sigrame
430 unwinder.
431 * Makefile.in (mips64obsd-tdep.o): Update dependencies.
432
5f6a2351
JB
4332004-11-06 Joel Brobecker <brobecker@gnat.com>
434
435 * alpha-mdebug-tdep.c: #include mdebugread.h.
436 Replace alpha_extra_func_info_t by struct mdebug_extra_func_info *.
437 * Makefile.in (alpha-mdebug-tdep.o): Add dependency on mdebugread.h.
438
f059bf6f
AC
4392004-11-05 Andrew Cagney <cagney@gnu.org>
440
441 * dwarf2-frame.c (dwarf2_frame_cache): Only complain when both the
442 CFI and the init_reg method leave the register unspecified.
443 Include the register name in the "Incomplete CFI data" complaint.
444 Supress leading zeros in the address.
445
1234d960
MK
4462004-11-05 Mark Kettenis <kettenis@gnu.org>
447
448 * dwarf2-frame.c (decode_frame_entry_1): Avoid indirection when
449 skipping a personality routine in a CIE augmentation.
450
d75e3c94
JJ
4512004-11-05 Jeff Johnston <jjohnstn@redhat.com>
452
453 * defs.h (fatal, vfatal): New function prototypes.
454 * stack.c (backtrace_command_stub): Stub to call backtrace_command_1
455 via catch_errors.
456 (backtrace_command): Change to call backtrace_command_stub via
457 catch_errors instead of calling backtrace_command_1 directly.
458 (backtrace_full_command): Ditto.
459 * utils.c (error_stream_1): New static function.
460 (verror): Change to call error_stream_1 instead of error_stream.
461 (error_stream): Call error_stream_1 with RETURN_ERROR argument.
462 (vfatal, fatal): New functions.
463
98f276a0
AC
4642004-11-05 Andrew Cagney <cagney@gnu.org>
465
466 * stack.c (parse_frame_specification_1): Clear selected_frame_p
467 when not using selected frame.
468
f724bf08
MK
4692004-11-05 Mark Kettenis <kettenis@jive.nl>
470
471 * dwarf2-frame.c (decode_frame_entry_1): Correctly skip
472 personality routine in a CIE augmentation.
473
c789492a
FL
4742004-11-05 Felix Lee <felix+log1@specifixinc.com>
475
476 * stack.c (set_current_sal_from_frame): New function.
477 (print_args_stub): Use it.
478 (print_frame_info): Don't set sal here.
479
a81b10ae
MK
4802004-11-04 Mark Kettenis <kettenis@gnu.org>
481
482 * dwarf2-frame.c (read_encoded_value): Change type of third
483 argument to `unsigned char *'. Add support for LEB128 encodings.
484
ad766c0a
JB
4852004-11-04 Jim Blandy <jimb@redhat.com>
486
487 * gdbtypes.c (make_qualified_type): Doc fix. Add assertion to
488 prevent cross-objfile references.
489 (make_cv_type): Doc fix. Don't create cross-objfile references,
490 even for stub types.
491 (replace_type): Add assertion to prevent cross-objfile references.
492 (check_typedef): Never resolve a stub type by copying over a type
493 from another file.
494
c46b0409 4952004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
f16d97c9 496
c46b0409
KI
497 * Makefile.in (m32r-tdep.o): Update dependencies.
498 * m32r-tdep.c (m32r_gdbarch_init): Call gdbarch_init_osabi for
499 ABI-specific overrides.
500
9f0b0322 5012004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
f16d97c9 502
9f0b0322
KI
503 * m32r-tdep.c (m32r_memory_insert_breakpoint): Remove
504 unnecessary parallel execution bit.
505 (m32r_memory_remove_breakpoint): Ditto.
506 (m32r_breakpoint_from_pc): Update.
507
d5c27f81
RC
5082004-11-03 Randolph Chung <tausq@debian.org>
509
510 * hppa-tdep.c (hppa_frame_cache): Use frame_pc_unwind instead of
9f0b0322 511 frame_func_unwind to locate the unwind entry.
d5c27f81
RC
512 (hppa_frame_this_id): Likewise.
513
4577593c
AC
5142004-11-03 Andrew Cagney <cagney@gnu.org>
515
516 * gdb/NEWS: Mention internationalization, m32r-*-linux-gnu, 'p'
517 packet, obsolete configurations, end-of-life deprecated_registers.
518
b04de778
MK
5192004-11-02 Mark Kettenis <kettenis@gnu.org>
520
521 * dwarf2-frame.c (read_encoded_value): Set proper size for signed
522 encodings as well as unsigned encodings.
523
9f2feefc
AC
5242004-11-02 Andrew Cagney <cagney@gnu.org>
525
526 * value.h (COERCE_VARYING_ARRAY): Delete.
527 * valops.c (value_cast, value_slice): Delete use.
528 * valarith.c (value_subscript, value_concat): Delete use.
529
117ea3cf
PH
5302004-11-02 Paul Hilfinger <hilfingr@nile.gnat.com>
531
532 * NEWS: GDB understands GNAT Ada.
533
0bbc026e
JM
5342004-11-01 Joseph S. Myers <joseph@codesourcery.com>
535
536 * Makefile.in (ALLDEPFILES): Add amd64-sol2-tdep.c.
537 (amd64-sol2-tdep.o): Add dependencies.
538 * amd64-sol2-tdep.c, config/i386/sol2-64.mh,
539 config/i386/sol2-64.mt: New files.
540 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offset,
541 amd64_sol2_gregset32_reg_offset, _initialize_amd64_sol2_nat): New.
542 (supply_gregset): Correct order of arguments to
543 amd64_supply_native_gregset.
544 (fill_gregset): Correct order of arguments to
545 amd64_collect_native_gregset.
546 * configure.host (i[34567]86-*-solaris2.1[0-9]*): Add new case.
547 * configure.tgt (i[34567]86-*-solaris2.1[0-9]*): Likewise.
548 * configure.in (*-*-solaris2.[[6789]]): Add *-*-solaris2.1[[0-9]]
549 for definition of NEW_PROC_API.
550 * configure: Regenerate.
551
3d38a0a5
JM
5522004-11-01 Joseph S. Myers <joseph@codesourcery.com>
553
554 * MAINTAINERS (Write After Approval): Add myself.
555
f81cd1cf
AC
5562004-11-01 Andrew Cagney <cagney@gnu.org>
557
558 * configure.tgt: Mark d10v-*-* as obsolete.
559 * config/d10v/d10v.mt, d10v-tdep.c: Obsolete files.
560
f4e88c8e
PH
5612004-11-01 Paul N. Hilfinger <Hilfinger@gnat.com>
562
563 * values.c (modify_field): Correct handling of bit-fields that
564 don't fit in 32 bits. Use unsigned operations throughout and
565 simplify the code a bit. Document preconditions.
566
84674fe1
AC
5672004-10-31 Andrew Cagney <cagney@gnu.org>
568
96693b3a
AC
569 * config/pa/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
570 * config/tm-sysv4.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
571 (in_plt_section): Delete.
572
6f296f8f
AC
573 * mips-tdep.c (mips_in_solib_return_trampoline): Delete.
574 (mips_gdbarch_init): Do not set same.
575
618501c0
AC
576 * arch-utils.c (generic_in_solib_call_trampoline): Delete.
577 * arch-utils.h (generic_in_solib_call_trampoline): Delete.
578
b22e8f02
AC
579 * gdbarch.sh (in_solib_call_trampoline): Delete.
580 * gdbarch.h, gdbarch.c: Re-generate.
581
84674fe1
AC
582 * hppa-tdep.c (hppa_stub_unwind_sniffer): Replace
583 IN_SOLIB_CALL_TRAMPOLINE with tdep.in_solib_call_trampoline.
584 * hppa-tdep.h (struct gdbarch_tdep): Add in_solib_call_trampoline.
585 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Set same.
586 * hppa-linux-tdep.c (hppa_linux_init_abi): Ditto.
587
c6d1029f
MK
5882004-10-31 Mark Kettenis <kettenis@gnu.org>
589
590 * mipsnbsd-nat.c: Include "target.h" and "inf-ptrace.h".
591 (mipsnbsd_fetch_inferior_registers): Rename from
592 fetch_inferior_registers. Make static.
593 (mipsnbsd_store_inferior_registers): Rename from
594 store_inferior_registers. Make static.
595 (_initialize_mipsnbsd_nat): New function and prototype.
596 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
597 * config/mips/nbsd.mh (NAT_CLIBS, NAT_FILE): Remove variables.
598 (NATDEPFILES): Remove infptrace.o and inftarg.o. Add
599 inf-ptrace.o.
600
bd9ca83f
AC
6012004-10-31 Andrew Cagney <cagney@gnu.org>
602
19d718a3
AC
603 * xstormy16-tdep.c (xstormy16_in_solib_call_trampoline)
604 (xstormy16_gdbarch_init): Do not set in_solib_call_trampoline,
605 delete corresponding unused function.
606 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Really do not set
607 in_solib_call_trampoline.
608 * config/arm/tm-embed.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
609 * config/powerpc/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
610 * config/mips/tm-nbsd.h: Ditto.
611 * config/arm/tm-linux.h: Ditto.
612 * config/mips/tm-linux.h: Ditto.
613
e8ce19c0
AC
614 * armnbsd-tdep.c (arm_netbsd_aout_init_abi)
615 (arm_netbsd_aout_in_solib_call_trampoline): Do not set
616 in_solib_call_trampoline, delete corresponding unused function.
617 * vaxnbsd-tdep.c (vaxnbsd_aout_in_solib_call_trampoline)
618 (vaxnbsd_aout_init_abi): Ditto.
619 * sparcnbsd-tdep.c (sparcnbsd_aout_in_solib_call_trampoline)
620 (sparc32nbsd_aout_init_abi): Ditto.
621 * ppc-linux-tdep.c (ppc64_in_solib_call_trampoline)
622 (ppc_linux_init_abi): Ditto.
623 * ns32knbsd-tdep.c (ns32knbsd_aout_in_solib_call_trampoline)
624 (ns32knbsd_init_abi_aout): Ditto.
625 * mips-tdep.c (mips_in_call_stub, mips_gdbarch_init): Ditto.
626 * mips-linux-tdep.c (mips_linux_init_abi): Ditto.
627 * m68kbsd-tdep.c (m68kbsd_aout_in_solib_call_trampoline)
628 (m68kbsd_aout_init_abi): Ditto.
629 * i386-cygwin-tdep.c (i386_cygwin_in_solib_call_trampoline)
630 (i386_cygwin_init_abi): Ditto.
631 * i386bsd-tdep.c (i386bsd_aout_in_solib_call_trampoline)
632 (i386bsd_init_abi): Ditto.
633
af380d61
AC
634 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Do not set
635 in_solib_call_trampoline to in_plt_entry, IN_SOLIB_CALL_TRAMPOLINE
636 isn't used by this architecture.
637 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
638 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Ditto.
639 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Ditto.
640 * s390-tdep.c (s390_gdbarch_init): Ditto.
641 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
642 * m68klinux-tdep.c (m68k_linux_init_abi): Ditto.
643 * i386-tdep.c (i386_svr4_init_abi): Ditto.
644 * i386-nto-tdep.c (i386nto_init_abi): Ditto.
645 * arm-linux-tdep.c (arm_linux_init_abi): Ditto.
646 * amd64-tdep.c (amd64_init_abi): Ditto.
647
0528d9f7
AC
648 * vaxnbsd-tdep.c (vaxnbsd_elf_init_abi): Do not set
649 in_solib_call_trampoline to its default value of
650 generic_in_solib_call_trampoline.
651 * ppcobsd-tdep.c (ppcobsd_init_abi): Ditto.
652 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Ditto.
653 * i386obsd-tdep.c (i386obsd_elf_init_abi): Ditto.
654 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Ditto.
655 * i386fbsd-tdep.c (i386fbsd_init_abi): Ditto.
656 * hppabsd-tdep.c (hppabsd_init_abi): Ditto.
657
f9f9eacb
AC
658 * mips-tdep.c (mips_dump_tdep): Don't print any of the macros.
659
a4ffd1e7
AC
660 * config/mips/obsd64.mt (DEPRECATED_TM_FILE): Delete.
661
82e34d2f
AC
662 * config/mips/tm-mips.h: Delete file.
663 * remote-mips.c: Delete tm-mips.h from comment.
664 * config/mips/embed.mt (DEPRECATED_TM_FILE): Delete.
665 * config/mips/tm-nbsd.h: Don't include tm-mips.h.
666 * config/mips/irix6.mt (DEPRECATED_TM_FILE): Delete.
667 * config/mips/tm-linux.h: Don't include tm-mips.h.
668 * config/mips/tm-vxmips.h: Don't include tm-mips.h.
669 * config/mips/irix5.mt (DEPRECATED_TM_FILE):
670 * config/mips/tm-wince.h: Don't include.
671
75dec9cf
AC
672 * mdebugread.h (MDEBUG_EFI_SYMBOL_NAME): Define.
673 * mdebugread.c (MDEBUG_EFI_SYMBOL_NAME): Delete.
674 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
675 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
676
bd9ca83f
AC
677 * mdebugread.h (ecoff_relocate_efi): Delete declaration.
678 * mdebugread.c (ecoff_relocate_efi): Delete function.
679 * objfiles.c (objfile_relocate): Delete #ifdef
680 MDEBUG_EFI_SYMBOL_NAME code.
681
3352ef37
AC
6822004-10-31 Orjan Friberg <organ.friberg@axis.com>
683 Andrew Cagney <cagney@gnu.org>
684
685 * gdbarch.sh (single_step_through_delay): Add.
686 * gdbarch.h, gdbarch.c: Re-generate.
687 * config/mips/tm-mips.h (STEP_SKIPS_DELAY_P, STEP_SKIPS_DELAY)
688 (mips_step_skips_delay): Delete.
689 * mips-tdep.c (mips_single_step_through_delay): Replace
690 mips_step_skips_delay.
691 (mips_gdbarch_init): Set single_step_through_delay.
692 (mips_dump_tdep): Do not print STEP_SKIPS_DELAY.
693
2440b685
MK
6942004-10-31 Mark Kettenis <kettenis@gnu.org>
695
696 * tramp-frame.c (tramp_frame_prepend_unwinder): Set unwinder type
697 from TRAMP_FRAME frame type.
698
56a2fed5
AC
6992004-10-31 Andrew Cagney <cagney@gnu.org>
700
9b792b1d
AC
701 * mdebugread.c (parse_procedure): Wrap use of RA_REGNUM in #ifdef.
702
0a5e8d98
AC
703 * mips-tdep.c (mips_ignore_helper): Delete.
704 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Delete.
705 * infrun.c (handle_inferior_event): Delete #ifdef
706 DEPRECATED_IGNORE_HELPER_CALL code.
707
56a2fed5
AC
708 * config/mips/tm-mips.h (RA_REGNUM): Delete.
709
f69c55b2
MK
7102004-10-31 Mark Kettenis <kettenis@gnu.org>
711
712 * i386v4-nat.c (supply_gregset, supply_fpregset, fill_gregset)
713 (fill_fpregset): Do not compile for 64-bit systems.
714 * i386-sol2-nat.c: Don't include "i386v4-nat.c".
715 * Makefile.in (i386-sol2-nat.o): Update dependencies.
716 * config/i386/i386sol2.mh (NATDEPFILES): Add back i386v4-nat.c.
717
d37cca3d
AC
7182004-10-30 Andrew Cagney <cagney@gnu.org>
719
36b8628e
AC
720 * mdebugread.h: Include "coff/sym.h" and "coff/symconst.h".
721 (struct mdebug_extra_func_info): Define.
722 * config/alpha/tm-alpha.h: Delete same.
723 * config/mips/tm-mips.h: Delete same.
724 * mdebugread.c: Delete same.
725 * Makefile.in: Update dependencies.
726 * mips-mdebug-tdep.c: Include "mdebugread.h".
727
5b123146
AC
728 * objfiles.c: Include "mdebugread.h".
729 * mdebugread.c: Include "mdebugread.h".
730 (ecoff_relocate_cfi): Delete.
731 * config/alpha/tm-alpha.h (ecoff_relcate_cfi): Delete.
732 * config/mips/tm-mips.h (ecoff_relcate_cfi): Delete.
733 * mdebugread.h (ecoff_relocate_efi): New file.
734 * Makefile.in: Update dependencies.
735
b9c3a7de
AC
736 * mips-tdep.c (struct frame_extra_info): Delete.
737 (temp_proc_desc): Delete.
738
f92761ec
AC
739 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Rename
740 MIPS_EFI_SYMBOL_NAME.
741 (mips_extra_func_info_t, mips_extra_func_info): Delete.
742 (struct mdebug_extra_func_info): Replace struct
743 alpha_extra_func_info and alpha_extra_func_info_t.
744 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Rename
745 MIPS_EFI_SYMBOL_NAME.
746 (struct mdebug_extra_func_info): Replace struct
747 alpha_extra_func_info and alpha_extra_func_info_t.
748 * objfiles.c, mips-tdep.c, mips-mdebug-tdep.c: Update.
749 * mdebugread.c, alpha-mdebug-tdep.c:
750
0bb57b31
AC
751 Suggested by Mark Kettenis.
752 * config/mips/tm-mips.h (struct mips_extra_func_info): Delete
753 fields frame_adjust and high_addr.
754 * mips-mdebug-tdep.c (PROC_HIGH_ADDR, PROC_FRAME_ADJUST): Delete.
755 (non_heuristic_proc_desc): Delete references.
756
a5c9623c
AC
757 * mips-tdep.h (MIPS_PRID_REGNUM): Add.
758 * config/mips/tm-mips.h (PRID_REGNUM): Delete.
759 * mips-tdep.c: Update.
760
607fc93c
AC
761 * mips-tdep.h (MIPS_FIRST_EMBED_REGNUM)
762 (MIPS_LAST_EMBED_REGNUM): Add.
763 * config/mips/tm-mips.h (FIRST_EMBED_REGNUM)
764 (LAST_EMBED_REGNUM): Delete.
765 * mipsv4-nat.c, mips-tdep.c, mips-linux-tdep.c: Update.
766
24e05951
AC
767 * config/mips/tm-mips.h (PS_REGNUM): Delete.
768 * mips-tdep.h (MIPS_PS_REGNUM): Add.
769 * remote-vxmips.c, mipsv4-nat.c, mips-tdep.c: Update.
770 * mips-linux-nat.c: Update.
771
613e114f
AC
772 * mips-tdep.h: Add comments on registers.
773 (MIPS_UNUSED_REGNUM): Define.
774 * config/mips/tm-mips.h (ZERO_REGNUM, UNUSED_REGNUM)
775 (T9_REGNUM, V0_REGNUM, A0_REGNUM): Delete.
776 * irix5-nat.c, mipsv4-nat.c, mips-linux-tdep.c: Update.
777 * mips-linux-nat.c, remote-mips.c: Update.
778
d37cca3d
AC
779 * config/mips/tm-mips.h (t_insn): Delete.
780 * mips-tdep.c (mips_fetch_instruction, mips_skip_trampoline_code):
781 Replace t_insn with ULONGEST.
782
ceb41096
MK
7832004-10-30 Mark Kettenis <kettenis@gnu.org>
784
d1180b0f
MK
785 * mipsnbsd-tdep.c: Include "regset.h" and "gdb_assert.h".
786 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM)
787 (MIPSNBSD_NUM_GREGS, MIPSNBSD_NUM_FPREGS): New defines.
788 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
789 (mipsnbsd_core_fns, mipsnbsd_elfcore_fns): Remove variables.
790 (mipsnbsd_core_osabi_sniffer): New function.
791 (mipsnbsd_init_abi): Set regset_from_core_section.
792 (_initialize_mipsnbsd_tdep): Remove calls to
793 deprecated_add_core_fns.
794 (mipsnbsd_supply_fpregset, mipsnbsd_supply_gregset)
795 (mipsnbsd_regset_from_core_section): New functions.
796 (mipsnbsd_gregset, mipsnbsd_fpregset): New variables.
797 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
798
ceb41096
MK
799 * procfs.c (procfs_fetch_registers, procfs_store_registers): Like
800 Remove optimization for DEPRECATED_FP_REGNUM.
801
ec4045ea
AC
8022004-10-30 Andrew Cagney <cagney@gnu.org>
803
cd65c8f6
AC
804 * alpha-tdep.c (alpha_setup_arbitrary_frame): Delete.
805 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Delete.
806 (alpha_setup_arbitrary_frame): Delete.
807 * mips-tdep.c (setup_arbitrary_frame): Delete.
808 * config/mips/tm-mips.h (SETUP_ARBITRARY_FRAME): Delete.
809 (setup_arbitrary_frame): Delete.
810 * stack.c (parse_frame_specification_1): When specified, call
811 create_new_frame with two parameters. Delete #ifdef
812 SETUP_ARBITRARY_FRAME.
813
95ac2dcf
AC
814 * config/mips/tm-mips.h (MIPS16_INSTLEN, MIPS_NUMREGS)
815 (MIPS_INSTLEN): Delete.
816 * mips-tdep.h (enum mips_insn_size): Rename MIPS32_INSN_SIZE and
817 MIPS16_INSN_SIZE to MIPS_INSN32_SIZE and MIPS_INSN16_SIZE.
818 * remote-mips.c, mips-tdep.c: Update.
819
1a8da44d
AC
820 * config/mips/embed.mt (TDEPFILES): Add mips-mdebug-tdep.o.
821 * mips-mdebug-tdep.h, mips-mdebug-tdep.c: New files.
822 * mips-tdep.c (mips_mdebug_frame_cache)
823 (mips_mdebug_frame_this_id, mips_mdebug_frame_prev_register)
824 (mips_mdebug_frame_unwind, mips_mdebug_frame_sniffer)
825 (mips_mdebug_frame_base_address, mips_mdebug_frame_sniffer)
826 (mips_mdebug_frame_base_sniffer, non_heuristic_proc_desc)
827 (compare_pdr_entries, the_bfd, mips16_fetch_instruction): Delete.
828 (mips_gdbarch_init): Do not append mdebug sniffers.
829 (PROC_LOW_ADDR, PROC_HIGH_ADDR, PROC_FRAME_OFFSET)
830 (PROC_FRAME_REG, PROC_FRAME_ADJUST, PROC_REG_MASK)
831 (PROC_FREG_MASK, PROC_REG_OFFSET, PROC_FREG_OFFSET, PROC_PC_REG)
832 (PROC_SYMBOL, _PROC_MAGIC_): Delete.
833 * Makefile.in: Update dependencies.
834
e6bc2e8a
AC
835 * mips-tdep.h (mips_abi_regsize): Declare.
836 * mips-tdep.c (mips_abi_regsize): Make non-static.
837
ec4045ea
AC
838 * mips-tdep.c (gdb_print_insn_mips): Simplify.
839 (make_mips16_addr): Delete.
e6bc2e8a 840
6b16acab
MK
8412004-10-30 Mark Kettenis <kettenis@gnu.org>
842
843 * i386-sol2-nat.c: New file.
844 * Makefile.in (ALLDEPFILES): Add i386-sol2-nat.c and
845 i386-sol2-tdep.c.
846 (i386-sol2-nat.o): Update dependencies.
847 * config/i386/i386sol2.mh (NATDEPFILES): Remove i386v4.o, add
848 i386-sol2-nat.o.
849
8b622e6a
AC
8502004-10-30 Andrew Cagney <cagney@gnu.org>
851
852 Total breakage identified by Joel Brobecker.
853 * mips-tdep.c (after_prologue): Delete.
854 (mips_skip_prologue): Use skip_prologue_using_sal.
855 (heuristic_proc_desc): Delete, unused.
856
772cf8be
MK
8572004-10-30 Mark Kettenis <kettenis@gnu.org>
858
859 * procfs.c (proc_get_gregs, proc_get_fpregs, proc_set_gregs)
860 (proc_set_fpregs, procfs_fetch_registers, procfs_store_registers):
861 Cleanup coding style.
862
9c8fdbfa
AC
8632004-10-30 Andrew Cagney <cagney@gnu.org>
864
0fe7e7c8
AC
865 * mips-tdep.h (mips_pc_is_mips16): Declare.
866 * mips-tdep.c (mips_pc_is_mips16): Rename pc_is_mips16, make
867 non-static. Update calls.
868
1b295c3d
AC
869 * cli/cli-decode.c (add_setshow_enum_cmd): New function.
870 * command.h (add_setshow_enum_cmd): Declare.
871 * mips-tdep.c (_initialize_mips_tdep): Use add_setshow_enum_cmd.
872
6bcadd06
AC
873 * mips-tdep.c (_initialize_mips_tdep): Use
874 add_setshow_zinteger_cmd.
875
9c8fdbfa
AC
876 * mips-tdep.c (mips_eabi_extract_return_value)
877 (mips_o64_extract_return_value, mips_o64_store_return_value)
878 (return_value_location, mips_eabi_reg_struct_has_addr)
879 (mips_eabi_use_struct_convention)
880 (mips_eabi_store_return_value): Delete.
881 (mips_eabi_store_return_value): New function.
882 (mips_eabi_return_value): New function.
883 (mips_gdbarch_init): For O64 and EABI, delete
884 extract_return_value, store_return_value, use_struct_convention
885 and reg_struct_has_addr, add return_value.
886
1d93fe1a
AC
887 * mips-tdep.c (read_signed_register): Use
888 regcache_cooked_read_signed.
889
303d2914
MK
8902004-10-30 Mark Kettenis <kettenis@gnu.org>
891
892 * mipsread.c: Cleanup coding style.
893 (mipscoff_new_init, mipscoff_symfile_init, mipscoff_symfile_read)
894 (mipscoff_symfile_finish): Remove prototypes.
895
8962004-10-29 Mark Kettenis <kettenis@gnu.org>
897
898 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
899 (mips_mdebug_frame_cache, mips16_scan_prologue)
900 (mips32_scan_prologue, mips_stub_frame_cache)
901 (heuristic_proc_start, heuristic_proc_desc)
902 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
903 (mips_n32n64_return_value, mips_o32_push_dummy_call)
904 (mips_o32_return_value, mips_o64_push_dummy_call)
905 (mips_step_skips_delay, mips_skip_trampoline_code)
906 (mips_gdbarch_init): Use MIPS_A0_REGNUM instead of A0_REGNUM,
907 MIPS_RA_REGNUM instead of RA_REGNUM, MIPS_T9_REGNUM instead of
908 T9_REGNUM, MIPS_V0_REGNUM instead of V0_REGNUM, MIPS_ZERO_REGNUM
909 instead of ZERO_REGNUM, MIPS32_SIZE_INSN instead of MIPS_INSTLEN
910 and MIPS16_INSN_SIZE instead of MIPS16_INSTLEN.
911 (mips_dump_tdep): Don't print A0_REGNUM, RA_REGNUM,
912 T9_REGNUM, V0_REGNUM, ZERO_REGNUM, MIPS_INSTLEN and
913 MIPS16_INSTLEN. Use MIPS_A0_REGNUM instead of A0_REGNUM.
914 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
915 (mips_linux_n32n64_sigframe_init): Use MIPS_ZERO_REGNUM instead of
916 ZERO_REGNUM.
917 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
918 (mipsnbsd_cannot_store_register): Use MIPS_ZERO_REGNUM instead of
919 ZERO_REGNUM.
920 (mipsnbsd_get_longjmp_target): Use MIPS_A0_REGNUM instead of
921 A0_REGNUM.
922 * mipsnbsd-nat.c: Include "mips-tdep.h".
923 (getregs_supplies): Use MIPS_ZERO_REGNUM instead of ZERO_REGNUM.
924 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
925
1c8831c5
AC
9262004-10-29 Andrew Cagney <cagney@gnu.org>
927
928 * stack.c (parse_frame_specification_1): New function based on
929 parse_frame_specification. Add message and selected_frame_p
930 paramters. Truely always return non-NULL.
931 (parse_frame_specification): Call parse_frame_specification_1.
932 (frame_info): Update. Eliminate target_has_stack check.
933 (select_frame_command): Update.
934
b04f3ab4
AC
9352004-10-29 Andrew Cagney <cagney@gnu.org>
936
937 * frame.h (get_selected_frame): Add message parameter.
938 * frame.c (get_selected_frame): Add and use message parameter.
939 * stack.c (current_frame_command, return_command, locals_info)
940 (catch_info, args_info, up_silently_base, down_silently_base): Use
941 get_selected_frame with an explicit message.
942 * thread.c, stack.c, sh-tdep.c, sh64-tdep.c: Update.
943 * remote-rdp.c, remote-mips.c, remote-e7000.c: Update.
944 * ocd.c, mi/mi-main.c, mi/mi-cmd-stack.c: Update.
945 * infrun.c, inflow.c, infcmd.c, frame.c: Update.
946 * findvar.c, eval.c, corelow.c, bsd-kvm.c: Update.
947 * breakpoint.c: Update.
948
9492004-10-29 Andrew Cagney <cagney@gnu.org>
00b25ff3
AC
950
951 * trad-frame.c (trad_frame_get_prev_register): Use
952 frame_unwind_register instead of frame_register_unwind, do not
953 recurse the register's location.
954 * xstormy16-tdep.c (xstormy16_frame_prev_register):
955 * sparc-tdep.c (sparc32_frame_prev_register): Ditto.
956 * sparc64-tdep.c (sparc64_frame_prev_register): Ditto.
957 * sh-tdep.c (sh_frame_prev_register): Ditto.
958 * m68k-tdep.c (m68k_frame_prev_register): Ditto.
959 * i386-tdep.c (i386_frame_prev_register): Ditto.
960 * dwarf2-frame.c (dwarf2_frame_prev_register): Ditto.
961 * amd64-tdep.c (amd64_frame_prev_register): Ditto.
962
7a952542
MK
9632004-10-28 Mark Kettenis <kettenis@jive.nl>
964
c18c06be
MK
965 * proc-events.c: Fix several coding-style issues. Consistently
966 use #ifdef instead of #if defined().
967 (proc_prettyfprint_fault, proc_prettyfprint_faultset): Use
968 ARRAY_SIZE.
969 (_initialize_proc_events): New prototype.
970
7a952542
MK
971 * proc-why.c: Fix several coding-style issues.
972 (proc_prettyfprint_why): Use ARRAY_SIZE.
973
fcad0fa4
JB
9742004-10-27 Jim Blandy <jimb@redhat.com>
975
976 * remote.c (fetch_register_using_p): Construct 'p' packet in a
977 manner independent of the host byte order.
978
c163184f
MK
9792004-10-27 Mark Kettenis <kettenis@gnu.org>
980
981 * mips-tdep.c (id_delayed): Remove prototype.
982
9c46b6f0
MK
9832004-10-26 Mark Kettenis <kettenis@gnu.org>
984
985 * mips-tdep.h: Add MIPS_ZERO_REGNUM, MIPS_AT_REGNUM,
986 MIPS_V0_REGNUM. MIPS_A0_REGNUM, MIPS_T9_REGNUM and MIPS_RA_REGNUM
987 to enum with register numbers.
988 (enum mips_insn_size): New enum.
989
0d0266c6
AC
9902004-10-26 Andrew Cagney <cagney@gnu.org>
991
e7d6a6d2
AC
992 * config/mips/tm-linux.h: Delete #undef SKIP_TRAMPOLINE_CODE.
993 * mips-tdep.c (mips_skip_trampoline_code): Rename mips_skip_stub.
994 (mips_gdbarch_init): Update.
995 (mips_dump_tdep): Do not print SKIP_TRAMPOLINE_CODE.
996
c5115f39
AC
997 * config/arm/tm-linux.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
998 * config/mips/tm-nbsd.h, config/mips/tm-linux.h: Delete #undef
999 IN_SOLIB_RETURN_TRAMPOLINE.
1000 * mips-tdep.c (mips_dump_tdep): Do not print
1001 IN_SOLIB_RETURN_TRAMPOLINE.
1002 (mips_in_solib_return_trampoline): Rename mips_in_return_stub.
1003 (mips_gdbarch_init): Update.
1004
0d0266c6
AC
1005 * mips-tdep.h (mips_software_single_step): Move to here ...
1006 * config/mips/tm-mips.h: ... from here.
1007 * config/mips/tm-linux.h (SOFTWARE_SINGLE_STEP_P)
1008 (SOFTWARE_SINGLE_STEP): Delete.
1009 * mips-linux-tdep.c (mips_linux_init_abi): Set software_single_step.
1010
156a53ca
AC
10112004-10-25 Andrew Cagney <cagney@gnu.org>
1012
1013 * NEWS: Add Changes since GDB 6.3 section.
1014
f27cf670
AS
10152004-10-23 Andreas Schwab <schwab@suse.de>
1016
156a53ca
AC
1017 * ada-lang.c (grow_vect): Return the new array instead of
1018 expecting pointer to pointer to avoid violation of aliasing rules.
f27cf670
AS
1019 * ada-lang.h (GROW_VECT): Adapt call to grow_vect.
1020
121d8485
UW
10212004-10-23 Ulrich Weigand <uweigand@de.ibm.com>
1022
1023 * s390-tdep.c (enum pv_boolean): Remove.
1024 (pv_is_array_ref): Remove.
1025 (s390_on_stack): Remove.
1026 (S390_NUM_SPILL_SLOTS): Remove.
1027 (struct s390_prologue_data): Remove members 'spill' and 'back_chain',
1028 add members 'gpr_slot', 'fpr_slot', and 'back_chain_saved_p'.
1029 (s390_store): Track all stores of orginal incoming registers to the
1030 stack constant offsets relative to the CFA, instead of only tracking
1031 stores into specific spill slots.
1032 (s390_load): Likewise.
1033 (s390_analyze_prologue): Adapt to struct s390_prologue_data changes.
1034 (s390_prologue_frame_unwind_cache): Likewise. Only track registers
1035 defined as call-saved by the ABI.
1036 (s390_push_dummy_call): Use bottom of dummy call argument save area
1037 as return value, not the top. Do not store to the called function's
1038 register save area.
1039 (s390_unwind_dummy_id): Adapt accordingly.
1040
0a6ddd08
AC
10412004-10-23 Andrew Cagney <cagney@gnu.org>
1042
1043 * objfiles.h (struct objfile): Rename obj_private to
1044 deprecated_obj_private, sym_private to deprecated_sym_private, and
1045 sym_stab_info to deprecated_sym_stab_info.
1046 * gdb-stabs.h: Update.
1047 * elfread.c: Update.
1048 * dbxread.c: Update.
1049 * coffread.c: Update.
1050 * xcoffread.c: Update.
1051 * symfile.c: Update.
1052 * somread.c: Update.
1053 * nlmread.c: Update.
1054 * mdebugread.c: Update.
1055 * hpread.c: Update.
1056 * coffread.c: Update.
1057
abc08782
MK
10582004-10-23 Mark Kettenis <kettenis@gnu.org>
1059
1060 * mips64obsd-nat.c, mips64obsd-tdep.c: New files.
1061 * configure.host: Add mips64*-*-openbsd*.
1062 * configure.tgt: Add mips64*-*-openbsd*.
1063 * Makefile.in (ALLDEPFILES): Add mips64obsd-nat.o,
1064 mips64obsd-tdep.c.
1065 (mips64obsd-nat.o, mips64obsd-tdep.o): New dependecies.
1066 * config/mips/obsd64.mh, config/mips/obsd64.mt: New files.
1067
fc062ac6
JB
10682004-10-21 Joel Brobecker <brobecker@gnat.com>
1069
1070 * symtab.c (symbol_search_name): Minor reformatting.
1071
5bccb4d1
JB
10722004-10-20 Joel Brobecker <brobecker@gnat.com>
1073
1074 * symtab.h: Fix typo in comment.
1075
a738430d
MK
10762004-10-19 Mark Kettenis <kettenis@gnu.org>
1077
1078 * dwarf2read.c (struct comp_unit_head): Fix coding style.
1079 (dwarf_decode_line_header): Likewise.
1080
f2cb65ca
MC
10812004-10-19 Michael Chastain <mec.gnu@mindspring.com>
1082
1083 * NEWS: GDB works with GCC -feliminate-dwarf2-dups.
1084
09e55376
AC
10852004-10-19 Andrew Cagney <cagney@gnu.org>
1086
1087 GDB 6.3 branch created.
1088 * version.in: Bump to version 6.3.50_2004-10-19-cvs.
1089
bc5f45f8
JB
10902004-10-15 Joel Brobecker <brobecker@gnat.com>
1091
1092 * dwarf2read.c (set_cu_language): Set language to Ada for
1093 DW_LANG_Ada83 and DW_LANG_Ada95.
1094
2941da8c
MC
10952004-10-15 Michael Chastain <mec.gnu@mindspring.com>
1096
1097 From Andreas Schwab <schwab@suse.de>:
1098 * Makefile.in (.y.c, .l.c.): Fix the substitutions for
1099 for xmalloc and xrealloc.
1100
34a17005
AC
11012004-10-15 Andrew Cagney <cagney@gnu.org>
1102
1103 * ada-exp.y, ada-lex.l: Use xmalloc and xrealloc through out.
1104 * inf-ptrace.c: Include "gdb_wait.h" instead of <wait.h>.
1105 * Makefile.in (.y.c, .l.c): Don't replace xmalloc with xxmalloc.
1106 Update dependencies.
1107
714e53ab
PH
11082004-10-15 Paul Hilfinger <Hilfinger@gnat.com>
1109
1110 * ada-lang.c (ada_lookup_symbol): Correct comment.
1111 (ada_evaluate_subexp): Change error message for
1112 OP_FUNCALL case so as not to indicate an internal error.
1113
11142004-10-15 Joel Brobecker <brobecker@gnat.com>
1115
1116 Committed by Paul Hilfinger.
1117 * ada-lang.c (ada_template_to_fixed_record_type_1): Detect bogus
1118 type sizes in XVE/XVU types, and emit a warning when that happens,
1119 instead of rounding up the size of the resulting type.
1120 Some minor reformatting.
1121 (ada_is_aligner_type): Do not consider a type as an aligner type
1122 if there is a corresponding XVS type as well.
1123 (ada_evaluate_subexp): For TERNOP_SLICE, handle cases where we
1124 have several levels of pointer indirection to the array.
1125
11262004-10-15 Jerome Guitton <guitton@gnat.com>
1127
1128 Committed by Paul Hilfinger.
1129 * ada-lang.c (check_size): New function.
1130 (coerce_unspec_val_to_type): call check_size to make sure
1131 that the object size is reasonable.
1132 (ada_evaluate_subexp): in UNOP_IND: Ditto. In TERNOP_SLICE:
1133 Implements the case when we get a reference when we evaluate
1134 the expression of one of the bounds of the slice.
1135 (ada_value_struct_elt): when a packed array field is
1136 a reference, use ada_coerce_ref to dereference it; use
1137 ada_value_ind only if it is a pointer.
1138
29639122
JB
11392004-10-15 Joel Brobecker <brobecker@gnat.com>
1140
1141 * mips-tdep.c (mips32_scan_prologue): Move the implementation up
1142 a bit to avoid the necessity of an advance declaration. Remove
1143 declaration.
1144 (set_reg_offset): Move implemenation up.
1145 (mips16_get_imm): Likewise.
1146 (mips16_scan_prologue): Likewise.
1147 (reset_saved_regs): Likewise.
1148 (mips32_scan_prologue): Likewise.
1149
a65bbe44
JB
11502004-10-14 Joel Brobecker <brobecker@gnat.com>
1151
1152 * mips-tdep.c (mips32_scan_prologue): Add advance declaration.
1153 Remove sp as a parameter, compute it internally instead. Move
1154 prologue scanning limit from heuristic_proc_desc to here.
1155 (mips16_scan_prologue): Likewise.
1156 (mips_insn16_frame_cache): Replace call to heuristic_proc_desc
1157 by call to mips16_scan_prologue.
1158 (mips_insn32_frame_cache): Replace call to heuristic_proc_desc
1159 by call to mips32_scan_prologue.
1160 (heuristic_proc_desc): Remove code that's no longer necessary.
1161 Update calls to mips16_scan_prologue and mips32_scan_prologue.
1162 (mips_skip_prologue): Update calls to mips16_scan_prologue
1163 and mips32_scan_prologue.
1164
1c645fec
JB
11652004-10-14 Joel Brobecker <brobecker@gnat.com>
1166
1167 * mips-tdep.c (mips16_scan_prologue): Merge code from
1168 mips16_skip_prologue. Now return the address of the first
1169 instruction past the function prologue.
1170 (mips16_skip_prologue): Remove, no longer necessary.
1171 (mips_skip_prologue): Replace call to mips16_skip_prologue
1172 by call to mips16_scan_prologue.
1173
98b4dd94
JB
11742004-10-14 Joel Brobecker <brobecker@gnat.com>
1175
1176 * mips-tdep.c (mips32_scan_prologue): Merge code from
1177 mips32_skip_prologue. Now return the address of the first
1178 instruction past the function prologue.
1179 (mips32_skip_prologue): Remove. No longer necessary.
1180 (mips16_skip_prologue): Add parameter end_pc instead of
1181 computing it.
1182 (mips_skip_prologue): Compute the upper limit for the
1183 prologue scanning. Update call to mips16_skip_prologue.
1184 Replace call to mips32_skip_prologue by call to
1185 mips32_scan_prologue.
1186
ad4c72d2
MK
11872004-10-14 Mark Kettenis <kettenis@gnu.org>
1188
dfaf8edb
MK
1189 * hppa-tdep.c (hppa_frame_cache): Add support for OpenBSD and
1190 NetBSD system call stubs that store %rp in the ERP slot of the
1191 stack frame.
1192
3e3a28f1
MK
1193 * source.c: Always define O_BINARY to 0 if not defined already.
1194 (openp): Unconditionally use O_BINARY.
1195
ad4c72d2
MK
1196 * top.c (gdb_readline): Always accept "\r\n" as a line-ending.
1197 * event-top.c (gdb_readline2): Likewise.
1198
52bd1401
OF
11992004-10-14 Orjan Friberg <orjanf@axis.com>
1200
1201 * cris-tdep.c (_initialize_cris_tdep): Re-add call to
1202 deprecated_add_core_fns which was removed by mistake.
1203
e0e25c6c
KB
12042004-10-13 Kevin Buettner <kevinb@redhat.com>
1205
1206 * ia64-linux-nat.c (fill_gregset, fill_fpregset): Replace
1207 references to deprecated_registers[] with equivalent code.
1208
9f335945
KB
12092004-10-13 Kevin Buettner <kevinb@redhat.com>
1210
1211 * rs6000-tdep.c (rs6000_push_dummy_call): Replace references to
1212 ``deprecated_registers'' with equivalent code. Use gdb_assert()
1213 instead of explicit test and print statement.
1214
06c2338d
MK
12152004-10-12 Mark Kettenis <kettenis@gnu.org>
1216
1b9445c2
MK
1217 * sparc-nat.c: Include "inf-ptrace.h".
1218 (sparc_target): New function.
1219 * sparc-nat.h: Update copyright year.
1220 (sparc_target): New prototype.
1221 * sparcnbsd-nat.c: Don't include "gdbcore.h", include "target.h".
1222 (_initialize_sparcnbsd_nat): Construct and add target vector.
1223 * sparc64nbsd-nat.c: Include "target.h".
1224 (_initialize_sparc64nbsd_nat): Construct and add target vector.
1225 * Makefile.in (sparc-nat.o, sparcnbsd-nat.o, sparc64nbsd-nat.o):
1226 Update dependencies.
1227 * config/sparc/nbsd64.mh (NATDEPFILES): Remove infptrace.o and
1228 inftarg.o, add inf-ptrace.o.
1229 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1230 inftarg.o, add inf-ptrace.o and bsd-kvm.o.
1231 (NAT_FILE): Set to nm-bsd.h.
1232 (LOADLIBES): New variable.
1233 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
1234 infarg.o, add inf-ptrace.o.
1235 * config/sparc/nm-nbsdaout.h: Remove file.
1236 * config/sparc/fbsd.mh (NATDEPFILES): Add inf-ptrace.o.
1237 * config/sparc/linux.mh (NATDEPFILES): Add inf-ptrace.o.
1238 * config/sparc/linux64.mh (NATDEPFILES): Add inf-ptrace.o.
1239
06c2338d
MK
1240 * defs.h [!FOPEN_RB]: Include "fopen-bin.h" instead of
1241 "fopen-same.h". Update comment.
1242
3303a276
MK
12432004-10-11 Mark Kettenis <kettenis@gnu.org>
1244
1245 * i386gnu-nat.c: Include "gdb_string.h".
1246 (fetch_fpregs): Use i387_supply_fxsave to fill the floating-point
1247 registers when the floating-point state isn't initialized.
1248 * Makefile.in (i386gnu-nat.o): Update dependencies.
1249
04c663e3
DA
12502004-10-11 David Anderson <davea@sgi.com>
1251
1252 * regcache.c (regcache_raw_read): Comment was missing "to".
1253 Extraneous ' removed.
1254 * gdb_thread_db.h (struct td_thrinfo): ti_lid field
1255 comment now describes use.
1256
a5f6c8f5
OF
12572004-10-11 Orjan Friberg <orjanf@axis.com>
1258
1259 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start)
1260 (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
1261 (cris_sigtramp_frame_this_id, cris_sigtramp_frame_prev_register)
1262 (cris_sigtramp_frame_sniffer): New functions.
1263 (cris_gdbarch_init): Hook in signal trampoline unwinder.
1264 (cris_dwarf2_reg_to_regnum, cris_dwarf2_frame_init_reg): New functions.
1265 (cris_gdbarch_init): Hook in Dwarf-2 unwinder.
1266 (struct gdbarch_tdep, set_cris_dwarf2_cfi, cris_dump_tdep)
1267 (cris_gdbarch_init, _initialize_cris_tdep): Add CRIS Dwarf-2 CFI usage
1268 command.
1269 (cris_version_update): Remove, replace with ...
1270 (set_cris_version): New function.
1271 (struct gdbarch_tdep, cris_mode, cris_mode_update)
1272 (cris_cannot_store_register, cris_dump_tdep, cris_gdbarch_init)
1273 (_initialize_cris_tdep): Remove CRIS mode command.
1274 (cris_fpless_backtrace, _initialize_cris_tdep): Remove
1275 cris-fpless-backtrace command.
1276 (cris_scan_prologue): Fix prologue scanning limit.
1277 (cris_register_type): Update to reflect actual registers.
1278 (cris_register_bytes_ok) Remove.
1279 (cris_gdbarch_init): Remove support for CRIS v8 and v9.
1280 Remove set_gdbarch_deprecated_register_size,
1281 set_gdbarch_deprecated_register_byte, set_gdbarch_register_bytes_ok.
1282
77109804
AC
12832004-10-10 Andrew Cagney <cagney@gnu.org>
1284
1285 * ada-lang.c (lim_warning): Add ATTR_FORMAT prototype and FIXME
1286 comment.
1287
25652d4f
JB
12882004-10-10 Joel Brobecker <brobecker@gnat.com>
1289
1290 * mips-tdep.c (mips16_scan_prologue): Remove redundant code.
1291
1e05a7bf
JB
12922004-10-10 Joel Brobecker <brobecker@gnat.com>
1293
1294 * mips-tdep.c (mips16_scan_prologue): Renames
1295 mips16_heuristic_proc_desc. Update comment.
1296 (mips32_scan_prologue): Renames mips32_heuristic_proc_desc.
1297 (heuristic_proc_desc): Update calls to the 2 functions above.
1298
c68a4142
JB
12992004-10-10 Joel Brobecker <brobecker@gnat.com>
1300
1301 * mips-tdep.c (mips_insn16_frame_cache): Remove unused variables.
1302 Update comments. Also immediately return empty cache when the start
1303 address of our function could not be found.
1304 (mips_insn32_frame_cache): Likewise.
1305
0fce0821
JB
13062004-10-10 Joel Brobecker <brobecker@gnat.com>
1307
1308 * mips-tdep.c (mips16_decode_reg_save): Delete, no longer used.
1309 (mips_insn16_frame_cache): Pass frame cache in call to
1310 heuristic_proc_desc. Move some code to mips16_heuristic_proc_desc.
1311 Remove code that became redundant as a consequence.
1312 (mips32_heuristic_proc_desc): No longer compute a fake
1313 procedure descriptor. Compute the full frame cache instead.
1314 Some minor comment reformatting.
1315
b672553e
JB
13162004-10-10 Jim Blandy <jimb@redhat.com>
1317
1318 * MAINTAINERS (generic symtabs, dwarf readers, elf reader, stabs
1319 reader, tracing bytecode stuff): Remove self.
1320
9cc52bde
MK
13212004-10-10 Mark Kettenis <kettenis@gnu.org>
1322
cc9784b6
MK
1323 * sparc64-linux-tdep.c: Update copyright year. Don't include
1324 "solib-svr4.h".
1325 (sparc64_linux_svr4_fetch_link_map_offsets): Remove function.
1326 (sparc64_linux_init_abi): Don't set solib_svr4_link_map_offsets.
1327 * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
1328
ee8aef23
MK
1329 * sparc-linux-tdep.c: Update copyright year.
1330 (sparc_linux_sigtramp_start): Change first argument from CORE_ADDR
1331 to struct frame_info *. Use safe_frame_unwind_memory instead of
1332 deprecated_read_memory_nobpt.
1333 (sparc32_linux_sigtramp_start, sparc32_linux_rt_sigtramp_start):
1334 Change argumen from CORE_ADDR to struct frame_info *. Adjust for
1335 changed signature of sparc_linux_sigtramp_start.
1336 (sparc32_linux_pc_in_sigtramp): Remove function.
1337 (sparc32_linux_sigtramp_p): New function.
1338 (sparc32_linux_sigtramp_frame_sniffer): Use
1339 sparc32_linux_sigtramp_p instead of sparc32_linux_pc_in_sigtramp.
1340
bc73f8cc
MK
1341 * sparc-linux-tdep.c (sparc32_linux_svr4_fetch_link_map_offsets):
1342 Remove function.
1343 (sparc32_linux_init_abi): Don't set solib_svr4_link_map_offsets.
1344
a2249542
MK
1345 * ada-lang.c (lim_warning): Re-implement as a varargs function.
1346 (decode_packed_array_type, value_subscript_packed)
1347 (ada_evaluate_subexp, to_fixed_range_type): Remove redundant
1348 argument in call to lim_warning.
1349
9cc52bde
MK
1350 * configure.in: Really disable the TUI if an enhanced curses
1351 library isn't found.
1352 * configure: Regenerate.
1353
151fc45b
MK
13542004-10-09 Mark Kettenis <kettenis@gnu.org>
1355
1356 * config/i386/nbsdaout.mh (NAT_FILE): Set to solib.h.
1357 * config/i386/nbsdelf.mh (NAT_FILE): Set to solib.h.
1358 * config/i386/nm-nbsdaout.h: Remove file.
1359 * config/i386/nm-fbsd.h (link_object, lo_name, lo_library)
1360 (lo_unused, lo_major, lo_minor, lo_next, link_map, lm_addr)
1361 (lm_name, lm_next, lm_lop, lm_lob, lm_rwt, lm_ld, lm_lpd)
1362 (link_dynamic_2, ld_loaded, ld_need, ld_rules, ld_got, ld_plt)
1363 (ld_rel, ld_hash, ld_stab, ld_stab_hash, ld_buckets, ld_symbols)
1364 (ld_symb_size, ld_text, ld_plt_sz, rtc_symb, rtc_sp, rtc_next)
1365 (ld_debug, ldd_version, ldd_in_debugger, ldd_sym_loaded)
1366 (ldd_bp_addr, ldd_bp_inst, ldd_cp, link_dynamic, ld_version)
1367 (ldd, ld_un, ld_2): Remove defines.
1368 * config/i386/nm-obsd.h: Likewise.
1369
375c0479
PH
13702004-10-09 Paul Hilfinger <hilfingr@nile.gnat.com>
1371
1372 * ada-lex.l: Remove useless rule whose right-context clause
1373 causes unreferenced static function warning for yyrealloc.
1374 (ada_flex_use): Remove the artificial reference to yyrealloc.
1375
c8e73a31
AC
13762004-10-08 Andrew Cagney <cagney@gnu.org>
1377
1378 * target.h (struct target_ops): Rename to_xfer_memory to
1379 deprecated_xfer_memory.
1380 * target.c: Update.
1381 (deprecated_debug_xfer_memory): Rename debug_to_xfer_memory.
1382 * wince.c: Update.
1383 * win32-nat.c: Update.
1384 * v850ice.c: Update.
1385 * uw-thread.c: Update.
1386 * thread-db.c: Update.
1387 * sol-thread.c: Update.
1388 * remote.c: Update.
1389 * remote-vx.c: Update.
1390 * remote-st.c: Update.
1391 * remote-sim.c: Update.
1392 * remote-sds.c: Update.
1393 * remote-rdp.c: Update.
1394 * remote-rdi.c: Update.
1395 * remote-mips.c: Update.
1396 * remote-m32r-sdi.c: Update.
1397 * remote-e7000.c: Update.
1398 * procfs.c: Update.
1399 * ppc-bdm.c: Update.
1400 * nto-procfs.c: Update.
1401 * monitor.c: Update.
1402 * linux-nat.c: Update.
1403 * inftarg.c: Update.
1404 * hpux-thread.c: Update.
1405 * go32-nat.c: Update.
1406 * gnu-nat.c: Update.
1407 * exec.c: Update.
1408 * corelow.c: Update.
1409 * bsd-kvm.c: Update.
1410 * aix-thread.c: Update.
1411
aa869812
AC
14122004-10-08 Andrew Cagney <cagney@gnu.org>
1413
1414 * target.c (debug_target): Move to near start of file.
1415 (target_stopped_data_address_p): Re-org logic, add casts.
1416
8dcef9cf
MK
14172004-10-02 Mark Kettenis <kettenis@gnu.org>
1418
1419 * solib-sunos.c [HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS] (link_map)
1420 (lm_addr, lm_name, lm_next, link_dynamic_2, ld_loaded, rtc_symb)
1421 (rtc_sp, rtc_next, ld_debug, ldd_in_debugger, ldd_bp_addr)
1422 (ldd_bp_inst, ldd_cp, link_dynamic, ld_version, ldd, ld_un, ld_2):
1423 New defines.
1424
4aa7a7f5
JJ
14252004-10-08 Jeff Johnston <jjohnstn@redhat.com>
1426
1427 * target.h (to_stopped_data_address): Change prototype to
1428 take a CORE_ADDR pointer and return an int.
1429 * target.c (update_current_target): Change to_stopped_data_address
1430 to match new prototype.
1431 (debug_to_stopped_data_address): Change appropriately.
1432 * breakpoint.c (bpstat_stop_status): Change call to
1433 target_stopped_data_address to use new prototype.
1434 * frv-tdep.c (frv_have_stopped_data_address): New function.
1435 (frv_stopped_data_address): Change to new prototype and
1436 functionality.
1437 * ia64-linux-nat.c (ia64_stopped_data_address): Change to new
1438 prototype and functionality.
1439 (ia64_stopped_by_watchpoint): New function.
1440 * i386-nat.c (i386_stopped_data_address): Change to new
1441 prototype and functionality.
1442 (i386_stopped_by_watchpoint): New function.
1443 * remote.c (remote_stopped_data_address): Change to new prototype
1444 and functionality.
1445 * remote-m32r-sdi.c (m32r_stopped_data_address): Ditto.
1446 * config/frv/tm-frv.h (frv_stopped_data_address): Change prototype.
1447 (STOPPED_BY_WATCHPOINT): Change to use frv_have_stopped_data_address.
1448 * config/i386/nm-i386.h (STOPPED_BY_WATCHPOINT): Change to use
1449 new i386_stopped_by_watchpoint function.
1450 (i386_stopped_by_watchpoint): New prototype.
1451 (i386_stoppped_data_address): Change to new prototype.
1452 * config/ia64/nm-linux.h (STOPPED_BY_WATCHPOINT): Change to use
1453 new ia64_stopped_by_watchpoint function.
1454 (ia64_stopped_by_watchpoint): New prototype.
1455 (ia64_stopped_data_address): Ditto.
1456
61ee279c
PH
14572004-10-08 Paul Hilfinger <Hilfinger@gnat.com>
1458
1459 * ada-typeprint.c (ada_print_type): Use int_string for printing
1460 modulus of modular type.
1461 * ada-lang.h (ada_modulus): Change return type to unsigned.
1462 * ada-lang.c (ada_language_arch_info): Correct type of
1463 string_char_type.
1464 (ada_modulus): Return unsigned result.
1465 (ada_lookup_symbol): Remove user disambiguation and modify comment
1466 accordingly.
1467
14682004-10-08 Eric Botcazou <ebotcazou@act-europe.fr>
1469
1470 Committed by Paul Hilfinger.
1471 * ada-lang.c (decode_packed_array): On big-endian targets,
1472 left-justify the value if it comes with a modular type.
1473
14742004-10-08 Joel Brobecker <brobecker@gnat.com>
1475
1476 Committed by Paul Hilfinger.
1477 * ada-lang.c (template_to_static_fixed_type): Fix a small typo.
1478 (is_name_suffix): Add support for "___JM" suffixes.
1479 (ada_check_typedef): Renames ada_completed_type.
1480 Update all users of CHECK_TYPEDEF, check_typedef, and
1481 ada_complete_type to call ada_check_typedef.
1482 * ada-typeprint.c: Likewise.
1483 * ada-valprint.c: Likewise.
1484
b6c25a56
CV
14852004-10-08 Corinna Vinschen <vinschen@redhat.com>
1486
1487 * infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
1488
83ca6a46
NR
14892004-10-08 Nick Roberts <nickrob@snap.net.nz>
1490
1491 * MAINTAINERS: Update e-mail address.
1492
1fd8cd20
DJ
14932004-10-07 Daniel Jacobowitz <dan@debian.org>
1494
1495 From Maciej W. Rozycki <macro@mips.com>:
1496 * mips-tdep.c (mips32_next_pc): Check the register's contents,
1497 not its number for BLEZ/BLEZL and BGTZ/BGTZL.
1498
cea15572
KI
14992004-10-07 Kei Sakamoto <sakamoto.kei@renesas.com>
1500
1501 * m32r-tdep.c (decode_prologue): Support functions written
1502 in assembler language. Recognize trap instructions as the
1503 end of prologue.
1504 (m32r_frame_unwind_cache): Ditto.
1505 (m32r_skip_prologue): Extend search limit. Quit analyzing
1506 prologue if pc's location is not readable.
1507
23485554
PH
15082004-10-06 Paul N. Hilfinger <Hilfinger@gnat.com>
1509
1510 * Makefile.in (.l.c): Do conversions of names of alloc and free
1511 functions that are done for .y.c files, plus special one
1512 for yy_flex_realloc. Also, correct missing-file tests here.
1513 * ada-lex.l (malloc, free): Remove macros.
1514 (resize_tempbuf): Use "realloc"; rely on sed changes to convert to
1515 xrealloc.
1516 (ada_flex_use): Dummy definition to remove warnings about unused
1517 functions.
1518 * ada-exp.y (dummy_string_to_ada_operator): Temporary definition
1519 to suppress warning.
1520
c0409442
CV
15212004-10-06 Corinna Vinschen <vinschen@redhat.com>
1522
1523 * sh-tdep.c (sh_return_value_nofpu): New function, implementing
1524 RETURN_VALUE.
1525 (sh_return_value_fpu): Ditto for CPUs with FPU.
1526 (sh_gdbarch_init): Remove STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
1527 RETURN_VALUE_ON_STACK and USE_STRUCT_CONVENTION throughout.
1528 Install sh_return_value_nofpu resp. sh_return_value_fpu as
1529 RETURN_VALUE functions.
1530
9bed62d7
CV
15312004-10-06 Corinna Vinschen <vinschen@redhat.com>
1532
1533 * sh-tdep.c (sh_pseudo_register_read): Add PSEUDO_BANK_REGNUM handling.
1534 (sh_pseudo_register_write): Ditto.
1535
03131d99
CV
15362004-10-06 Corinna Vinschen <vinschen@redhat.com>
1537
1538 * sh-tdep.c (IS_MACL_STS): New define.
1539 (IS_MOVI20): Ditto.
1540 (IS_MACL_LDS): Ditto.
1541 (sh_analyze_prologue): Recognize STS.L MACL,@-r15 and MOVI20
1542 instructions in prologue.
1543 (sh_in_function_epilogue_p): Recognize LDS.L @r15+,MACL and MOVI20
1544 instructions in epilogue.
1545
da962468
CV
15462004-10-06 Corinna Vinschen <vinschen@redhat.com>
1547
1548 * sh-tdep.c (SH_NUM_REGS): Define as 67.
1549 (sh_sh_register_name): Add eight empty register names.
1550 (sh_sh3_register_name): Ditto.
1551 (sh_sh3e_register_name): Ditto.
1552 (sh_sh2e_register_name): Ditto.
1553 (sh_sh2a_register_name): New function, defining SH2A register set.
1554 (sh_sh2a_nofpu_register_name): New function, defining SH2A register set
1555 in nofpu case.
1556 (sh_sh_dsp_register_name): Add eight empty register names.
1557 (sh_sh3_dsp_register_name): Ditto.
1558 (sh_sh4_register_name): Ditto.
1559 (sh_sh4_nofpu_register_name): Ditto.
1560 (sh_sh4al_dsp_register_name): Ditto.
1561 (sh2a_show_regs): New function.
1562 (sh2a_nofpu_show_regs): New function.
1563 (sh_sh2a_register_type): New function.
1564 (do_bank_register_info): New function.
1565 (sh_print_pseudo_register): Call do_bank_register_info.
1566 Call sh_print_pseudo_register for valid "bank" register.
1567 (sh_sh2a_register_sim_regno): New function.
1568 (sh_gdbarch_init): Add bfd_mach_sh2a and bfd_mach_sh2a_nofpu handling.
1569 Increment pseudo register count by one for all sh variants with
1570 pseudo registers to accomodate pseudo bank register.
1571 * sh-tdep.h: Add register numbers for R0_BANK0_REGNUM, MACHB_REGNUM,
1572 IVNB_REGNUM, PRB_REGNUM, GBRB_REGNUM, MACLB_REGNUM, BANK_REGNUM,
1573 IBCR_REGNUM, IBNR_REGNUM, TBR_REGNUM and PSEUDO_BANK_REGNUM.
1574 Increment pseudo register numbers.
1575
1326e61b
CV
15762004-10-06 Corinna Vinschen <vinschen@redhat.com>
1577
1578 * dwarf2read.c (read_subroutine_type): Call make_function_type
1579 instead of lookup_function_type.
1580
146c42e3
JB
15812004-10-05 Jim Blandy <jimb@redhat.com>
1582
1583 * linux-nat.c (_initialize_linux_nat): Rename child_ops.
1584 (Previous change missed some uses.)
1585
1df84f13
AC
15862004-10-05 Andrew Cagney <cagney@gnu.org>
1587
1588 * target.h (deprecated_child_ops): Rename child_ops.
1589 * wince.c: Update copyright. Rename child_ops.
1590 * win32-nat.c: Rename child_ops.
1591 * target.c: Rename child_ops.
1592 * rs6000-nat.c: Rename child_ops.
1593 * linux-nat.c: Rename child_ops.
1594 * infttrace.c: Rename child_ops.
1595 * inftarg.c: Rename child_ops.
1596 * infptrace.c: Rename child_ops.
1597 * hppah-nat.c: Update copyright. Rename child_ops.
1598 * hpux-thread.c: Update copyright. Rename child_ops.
1599
21e3b9b9
DJ
16002004-10-05 Daniel Jacobowitz <dan@debian.org>
1601
1602 * remote.c (remote_xfer_partial): Handle TARGET_OBJECT_MEMORY.
1603
de83afe7
AC
16042004-10-05 Andrew Cagney <cagney@gnu.org>
1605
1606 * version.in: Bump to version 6.2.50_YYYY-MM-DD-cvs.
1607
10b3939b
DJ
16082004-10-05 Daniel Jacobowitz <dan@debian.org>
1609
1610 * dwarf2read.c (REF_HASH_SIZE): Move earlier.
1611 (die_ref_table): Remove.
1612 (struct dwarf2_cu): Add DIES, DEPENDENCIES, and DIE_REF_TABLE.
1613 (struct dwarf2_per_cu_data): Add PSYMTAB. Add a comment describing
1614 the usage of this type.
1615 (struct dwarf2_per_objfile): Update comment for ALL_COMP_UNITS.
1616 (struct dwarf2_pinfo, PST_PRIVATE, DWARF_INFO_OFFSET): Remove.
1617 (struct dwarf2_queue_item, dwarf2_queue, dwarf2_queue_tail): New.
1618 (dwarf2_create_include_psymtab): Update comment.
1619 (find_partial_die): Remove third argument. Remove unreachable call
1620 to error ().
1621 (dwarf2_find_containing_comp_unit): Update comments. Change one
1622 assertion to an error. Remove an unreachable error.
1623 (dwarf2_find_comp_unit): Update comments.
1624 (type_at_offset): Remove dead code.
1625 (make_cleanup_free_die_list, dwarf2_empty_hash_tables): Remove.
1626 (store_in_ref_table): Add CU argument.
1627 (follow_die_ref): Take DIE, attribute, and CU arguments. Handle
1628 inter-compilation-unit references.
1629 (load_full_comp_unit, process_full_comp_unit): New functions, based
1630 on psymtab_to_symtab_1.
1631 (psymtab_to_symtab_1): Use them.
1632 (dwarf2_add_dependence): New function.
1633 (dwarf2_build_psymtabs_hard): Set the psymtab in per_cu. Always create
1634 a per_cu structure, and save it in READ_PSYMTAB_PRIVATE.
1635 (partial_die_parent_scope, guess_structure_name): Update for changes
1636 to find_partial_die.
1637 (dwarf2_psymtab_to_symtab): Initialize dwarf2_per_objfile here.
1638 (queue_comp_unit, process_queue, dwarf2_release_queue): New.
1639 (read_comp_unit): Don't call dwarf2_empty_hash_tables.
1640 (read_die_and_children): Update call to store_in_ref_table.
1641 (do_free_die_list_cleanup): Remove.
1642 (fixup_partial_die): Update for changes to find_partial_die.
1643 (read_full_die): Handle queueing absolute references.
1644 (read_attribute_value): Use DW_ADDR for all DW_FORM_ref* forms.
1645 (dwarf2_attr, die_specification, die_type)
1646 (die_containing_type, dwarf2_extension): Update calls to
1647 follow_die_ref.
1648 (dump_die): Update DW_FORM_ref* handling.
1649 (dwarf2_get_ref_die_offset): Likewise.
1650 (free_one_comp_unit): Release the dies list.
1651 (dwarf2_mark_helper): New function.
1652 (dwarf2_mark): Use it.
1653
998bdd68
MK
16542004-10-05 Mark Kettenis <kettenis@jive.nl>
1655
1656 * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
1657 when writing to memory.
1658
14588880
KI
16592004-10-05 Kei Sakamoto <sakamoto.kei@renesas.com>
1660
1661 * m32r-tdep.c (m32r_use_struct_convention): Delete function.
1662 (m32r_extract_struct_value_address): Delete function.
1663 (m32r_return_value): New function.
1664 (m32r_gdbarch_init): Instead of store_return_value,
1665 extract_return_value, deprecated_extract_struct_value_address
1666 and deprecated_use_struct_convention, set return_value.
1667
dd5e6932
DJ
16682004-10-03 Daniel Jacobowitz <dan@debian.org>
1669
1670 * dwarf2read.c (read_subrange_type): Add comment for variable
1671 sized arrays.
1672
7dc1ef8d
PH
16732004-10-03 Paul Hilfinger <hilfingr@nile.gnat.com>
1674
1675 * Makefile.in (.l.c): Modify rule for compatibility with recent
1676 versions of flex, and remove most command-line options.
1677 * ada-lex.l: Add %options line in place of -I -i and -s command-line
1678 options.
1679
1f8173e6
PH
16802004-10-02 Paul N. Hilfinger <Hilfinger@gnat.com>
1681
1682 Turn on initial Ada support (mainly expression evaluation).
1683
1684 * Makefile.in (SFILES): Remove ada-tasks.c.
1685 (HFILES_NO_SRCDIR): Add ada-lang.h.
1686 (COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
1687 (YYOBJ): Add ada-exp.o.
1688 (rule .l.c): Generalize to not mention ada.
1689 * symtab.c: Include ada-lang.h.
1690 (symbol_natural_name, symbol_demangled_name)
1691 (symbol_search_name): Add Ada case.
1692
cb85a953
AC
16932004-10-01 Andrew Cagney <cagney@gnu.org>
1694
3f3db248
AC
1695 * Makefile.in (COMMON_OBS): Add inf-child.o.
1696 * config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
1697 * config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
1698 * config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
1699 * config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
1700 * config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
1701 * config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
1702 * config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
1703 * config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
1704 * config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
1705 * config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
1706 * config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
1707 * config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
1708 * config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
1709
cb85a953
AC
1710 * target.c (xfer_using_stratum): Change return type to LONGEST.
1711 On each iteration offset, readbuf and writebuf.
1712 * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
1713 partial_length, and read/modify/write predicate, update comments.
1714 Pass buffer.word to ptrace write.
1715
963a6417
PH
17162004-10-01 Paul N. Hilfinger <Hilfinger@gnat.com>
1717
1718 * symfile.c (init_filename_language_table): Add extensions for
1719 Ada.
1720 * defs.h (enum language): Add language_ada.
1721 * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
1722 * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
1723 (add_symbols_from_enclosing_procs): Make a no-op for now.
1724 (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
1725 (extended_canonical_line_spec, find_sal_from_funcs_and_line)
1726 (find_line_in_linetable, find_next_line_in_linetable)
1727 (read_all_symtabs, is_plausible_func_for_line)
1728 (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
1729 (is_runtime_sym_defined, check_size): Remove declaration.
1730 (function_name_from_pc, ada_translate_error_message)
1731 (ada_lookup_minimal_symbol): Remove definition.
1732 (ada_add_block_symbols): Remove useless label.
1733 * ada-lang.h (ada_maybe_exception_partial_symbol): Remove
1734 useless declaration.
1735 (ada_is_exception_sym): Likewise.
1736
9b32d526
KI
17372004-09-30 Kei Sakamoto <sakamoto.kei@renesas.com>
1738
1739 Add m32r-linux support.
1740 * configure.tgt: Add m32r*-*-linux*.
1741 * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
1742 and m32r-linux-tdep.c.
1743 (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
1744 * m32r-tdep.c: Move some definitions to m32r-tdep.h.
1745 * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
1746 m32r-linux-tdep.c.
1747 * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
1748 config/m32r/linux.mh, config/m32r/linux.mt,
1749 config/m32r/nm-linux.h: New files.
1750
2de118d3
JB
17512004-09-30 Joel Brobecker <brobecker@gnat.com>
1752
1753 * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
1754 (mips32_fetch_instruction): Remove, unused.
1755
a9fe69d1
JB
17562004-09-30 Joel Brobecker <brobecker@gnat.com>
1757
1758 * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
1759 conditions that will always be true.
1760
bc8ffc12
MK
17612004-09-30 Mark Kettenis <kettenis@gnu.org>
1762
ba0cd111
MK
1763 * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
1764 (vaxbsd_fetch_inferior_registers): Rename from
1765 fetch_inferior_registers. Make static.
1766 (vaxbsd_store_inferior_registers): Rename from
1767 store_inferior_registers. Make static.
1768 (_initialize_vaxbsd_nat): Construct and add target vector.
1769 * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1770 inftarg.o. Add inf-child.o and inf-ptrace.o.
1771 * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
1772 inftarg.o. Add inf-child.o and inf-ptrace.o.
1773 (NAT_FILE): Remove.
1774 * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
1775 inftarg.o. Add inf-child.o and inf-ptrace.o.
1776 (NAT_FILE): Remove.
1777 * Makefile.in (vaxbsd-nat.o): Update dependencies.
1778
bc8ffc12
MK
1779 * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
1780 (m88kbsd_fetch_inferior_registers): Rename from
1781 fetch_inferior_registers. Make static.
1782 (m88kbsd_store_inferior_registers): Rename from
1783 store_inferior_registers. Make static.
1784 (_initialize_m88kbsd_nat): New prototype and function.
1785 * config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
1786 inftarg.o. Add inf-child.o and inf-ptrace.o.
1787 (NAT_FILE): Remove.
1788 * Makefile.in (m88kbsd-nat.o): Update dependencies.
1789
27394598
AC
17902004-09-30 Andrew Cagney <cagney@gnu.org>
1791
1792 * target.c (target_xfer_partial): New function.
1793 (target_read_memory_partial, target_write_memory_partial)
1794 (default_xfer_partial, target_read_partial, target_write_partial)
1795 (xfer_using_stratum): Use.
1796 (debug_to_xfer_partial): Delete function.
1797 (setup_target_debug): Do not override to_xfer_partial.
1798
74a4fe32
MK
17992004-09-30 Mark Kettenis <kettenis@chello.nl>
1800
1801 * fork-child.c: Update copyright year. Fix coding style.
1802
982526a1
MK
18032004-09-29 Mark Kettenis <kettenis@gnu.org>
1804
1805 * defs.h (msavestring, mstrsave): Remove prototypes.
1806 * utils.c (msavestring, mstrsave): Remove functions.
1807 * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
1808 * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
1809 of mstrsave.
1810 * source.c (find_and_open_source): Use xstrdup instead of
1811 mstrsave.
1812
b8eb5af0
AC
18132004-09-30 Andrew Cagney <cagney@gnu.org>
1814
0779438d
AC
1815 * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
1816 (inf_ptrace_xfer_memory): Delete.
1817 * target.c (target_xfer_partial_p, xfer_using_stratum): New.
1818 (target_read_memory, target_write_memory): Use xfer_using_stratum
1819 when target_xfer_partial_p.
1820 (debug_target): Move to start of file.
1821 (target_read_memory_partial, target_write_memory_partial): Use
1822 to_xfer_partial when target_xfer_partial_p.
1823
f929a579
AC
1824 * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
1825 inf_ptrace_xfer_memory with equivalent code.
1826 * inftarg.c (child_xfer_partial): When performing a write, pass
1827 writebuf to child_xfer_memory.
1828
b8eb5af0
AC
1829 * target.c (target_read_string): Use target_read_memory instead of
1830 target_xfer_memory.
1831
ee21b650
AC
18322004-09-29 Andrew Cagney <cagney@gnu.org>
1833
d3e05d0d
AC
1834 * infptrace.c (kill_inferior): Fix typo, in previous inline. Pass
1835 the address of status.
1836
ee21b650
AC
1837 * infptrace.c (ptrace_wait): Mention problem with HPUX.
1838 (kill_inferior): Inline ptrace_wait call.
1839 * linux-nat.c (kill_inferior): Inline ptrace_wait call.
1840 * inftarg.c (child_wait): Inline ptrace_wait call.
1841
a182eed6
AC
1842 * target.h (struct target_ops): Delete field to_post_wait.
1843 (target_post_wait): Delete macro.
1844 (child_post_wait): Delete declaration.
1845 * target.c (update_current_target, update_current_target)
1846 (debug_to_post_wait, setup_target_debug): Delete functions and
1847 references.
1848 * infttrace.c (ptrace_wait): Delete call to target_post_wait.
1849 * inftarg.c (child_post_wait): Delete.
1850 (init_child_ops): Do not set to_post_wait.
1851 * infptrace.c (ptrace_wait): Delete call to target_post_wait.
1852 * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
1853 * inf-child.c (inf_child_post_wait): Delete.
1854 (inf_child_target): Do not set to_post_wait.
1855 * inf-ptrace.c (inf_ptrace_post_wait): Delete.
1856 (inf_ptrace_target): Do not set to_post_wait.
1857
ba0c540b
AC
1858 * wince.c (child_ops): Delete.
1859 * win32-nat.c (child_ops): Delete.
1860
81977402
AC
1861 * inftarg.c (inftarg_set_find_memory_regions)
1862 (inftarg_set_make_corefile_notes): Delete functions.
1863 (_initialize_linux_nat): Inline calls.
1864
5ac10fd1
AC
1865 * target.h (child_ops): Declare.
1866 * inftarg.c (child_ops): Move from here ...
1867 * target.c (child_ops): ... to here.
1868 * wince.c (child_ops): Delete extern declaration.
1869 * win32-nat.c (child_ops): Delete extern declaration.
1870 * linux-nat.c (child_ops): Delete extern declaration.
1871 * hpux-thread.c (child_ops): Delete extern declaration.
1872
663408c2 18732004-09-28 Mark Kettenis <kettenis@gnu.org>
890c8f4d
MK
1874
1875 * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
1876
0dad8a66
MK
18772004-09-28 Mark Kettenis <kettenis@gnu.org>
1878
1879 * configure.in: Only set host_makefile_frag when building a native
1880 debugger.
1881 * configure: Regenerate.
e8d74ed3
MK
1882
1883 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
1884 for OpenBSD ELF.
1885
dba24537
AC
18862004-09-28 Andrew Cagney <cagney@gnu.org>
1887
e979516b
AC
1888 Problem identified by Paul Hilfinger.
1889 * Makefile.in (ada_lex_c): Define.
1890 (ada-lex.o): Delete rule.
1891
dba24537
AC
1892 * linux-proc.c: Delete file.
1893 * Makefile.in: Update.
1894 * config/sparc/linux64.mh (NATDEPFILES):
1895 * config/sparc/linux.mh (NATDEPFILES): Update.
1896 * config/s390/s390.mh (NATDEPFILES): Update.
1897 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
1898 * config/powerpc/linux.mh (NATDEPFILES): Update.
1899 * config/pa/linux.mh (NATDEPFILES): Update.
1900 * config/mips/linux.mh (NATDEPFILES): Update.
1901 * config/m68k/linux.mh (NATDEPFILES): Update.
1902 * config/ia64/linux.mh (NATDEPFILES): Update.
1903 * config/i386/linux64.mh (NATDEPFILES): Update.
1904 * config/i386/linux.mh (NATDEPFILES): Update.
1905 * config/arm/linux.mh (NATDEPFILES): Update.
1906 * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
1907 * linux-nat.c: Update copyright. Include <sys/param.h>,
1908 <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
1909 "gdbthread.h", "gdb_stat.h", <fcntl.h>.
1910 (O_LARGEFILE): Possibly define.
1911 (_initialize_linux_nat, linux_proc_pending_signals)
1912 (add_line_to_sigset, linux_proc_xfer_memory)
1913 (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
1914 (linux_nat_do_registers, linux_nat_corefile_thread_callback)
1915 (struct linux_corefile_thread_data)
1916 (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
1917 (child_pid_to_exec_file): Insert code previously in linux-proc.c.
1918
d6b0e80f
AC
19192004-09-16 Andrew Cagney <cagney@gnu.org>
1920
1921 * lin-lwp.c: Delete file.
1922 * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
1923 <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
1924 (status_to_str, init_lwp_list, add_lwp, delete_lwp)
1925 (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
1926 (linux_nat_attach, detach_callback, linux_nat_detach)
1927 (resume_callback, resume_clear_callback, linux_nat_resume)
1928 (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
1929 (stop_wait_callback, linux_nat_has_pending, flush_callback)
1930 (status_callback, running_callback, count_events_callback)
1931 (select_singlestep_lwp_callback, select_event_lwp_callback)
1932 (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
1933 (child_wait, stop_and_resume_callback, linux_nat_wait)
1934 (kill_callback, kill_wait_callback, linux_nat_kill)
1935 (linux_nat_create_inferior, linux_nat_mourn_inferior)
1936 (linux_nat_xfer_memory, linux_nat_thread_alive)
1937 (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
1938 (_initialize_linux_nat): New functions.
1939 * Makefile.in: Update all dependencies.
1940 * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
1941 * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1942 * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
1943 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
1944 * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1945 * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1946 * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1947 * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1948 * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1949 * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
1950 * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1951 * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1952 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
1953
5a174d79
MK
19542004-09-27 Mark Kettenis <kettenis@gnu.org>
1955
2f604c28
MK
1956 * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
1957 config/i386/obsd64.mh (NAT_FILE): Remove variable.
1958
5a174d79
MK
1959 * configure.in: Don't comment out NATDEPFILES in the generated
1960 Makefile if NAT_FILE is unset.
1961 * configure: Regenerate.
1962
b2ed1746
AC
19632004-09-27 Andrew Cagney <cagney@gnu.org>
1964
44cbf7b5
AC
1965 * infrun.c (check_for_old_step_resume_breakpoint): Delete.
1966 (insert_step_resume_breakpoint): Delete.
1967 (insert_step_resume_breakpoint_at_frame): New function.
1968 (insert_step_resume_breakpoint_at_sal): New function.
1969 (handle_inferior_event, step_into_function)
1970 (insert_step_resume_breakpoint): Simplify by using same.
1971
b2ed1746
AC
1972 * gdb_indent.sh (types): Add caddr_t to list of predefined types.
1973
3691b3be
MK
19742004-09-26 Mark Kettenis <kettenis@gnu.org>
1975
36f391e8
MK
1976 * fbsd-proc.c: Remove file.
1977 * Makefile.in (fbsd-proc.o): Remove dependency.
1978
771e236c
MK
1979 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
1980 code together.
1981
3691b3be
MK
1982 * config/i386/nm-fbsd64.h: Remove file.
1983 * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
1984
6a5c78a3
MK
19852004-09-26 Mark Kettenis <kettenis@gnu.org>
1986
1987 * amd64-nat.h: Update copyright year.
1988 (amd64bsd_target): New prototype.
1989 * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
1990 (amd64bsd_target): New function.
1991 (amd64bsd_fetch_inferior_registers): Rename from
1992 fetch_inferior_registers. Make static.
1993 (amd64bsd_store_inferior_registers): Rename from
1994 store_inferior_registers. Make static.
1995 * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
1996 (_initialize_amd64fbsd_nat): Construct and add target vector.
1997 * amd64nbsd-nat.o: Include "target.h".
1998 (_initialize_amd64nbsd_nat): Construct and add target vector.
1999 * amd64obsd-nat.c: Include "target.h".
2000 (_initialize_amd64obsd_nat): Construct and add target vector.
2001 * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
2002 * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
2003 inftarg.o and fbsd-proc.o. Add inf-child.o, inf-ptrace.o and
2004 fbsd-nat.o.
2005 * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
2006 Remove infptrace.o and inftarg.o. Add inf-child.o and
2007 inf-ptrace.o.
2008 * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
2009 (amd64obsd-nat.o): Update dependencies.
2010
27acbe61
MK
20112004-09-25 Mark Kettenis <kettenis@gnu.org>
2012
509a5e7d
MK
2013 * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
2014 * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
2015 * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
2016 * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
2017 * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
2018
6e1e94ea
MK
2019 * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
2020 Inline attach call.
2021 (inf_ptrace_detach): Inline detach call.
2022
8b9cf735
MK
2023 * configure.in: Check for waddstr instead of mvwaddstr when
2024 searching for curses library. Check for wborder.
2025 * configure, config.in: Regenerate.
2026 * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
2027 available.
2028
27acbe61
MK
2029 * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
2030
b96ec7ac
AC
20312004-09-24 Robert Picco <Robert.Picco@hp.com>
2032
2033 Committed by Andrew Cagney.
2034 * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
2035 (show_remote_protocol_p_packet_cmd): New. Implement 'p' packet.
2036 configuration.
2037 (fetch_register_using_p): Implement 'p' packet. Based on code by
2038 Fernando Nasser.
2039 (remote_fetch_registers): Call fetch_register_using_p.
2040 (init_all_packet_configs, show_remote_cmd)
2041 (_initialize_remote): Add p-packet.
2042
62ece330
MK
20432004-09-24 Mark Kettenis <kettenis@gnu.org>
2044
2045 * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
2046 instead of call_ptrace. Call wait directly instead of
2047 ptrace_wait.
2048 (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
2049 (inf_ptrace_wait): Inline ptrace_wait call.
2050
00937274
PH
20512004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
2052
2053 * Makefile.in (.y.c): Revert previous change. ../ylwrap was
2054 rolled back instead.
2055
3f2c7a45
PH
20562004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
2057
2058 * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
2059 the new argument order.
2060
b6fcb393
CV
20612004-09-23 Corinna Vinschen <vinschen@redhat.com>
2062
2063 * MAINTAINERS: Remove "broken" from XStormy16 entry.
2064 * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
2065 (struct gdbarch_tdep): Remove.
2066 (struct xstormy16_frame_cache): New frame cache structure.
2067 (xstormy16_register_byte, xstormy16_register_raw_size)
2068 (xstormy16_reg_virtual_type, xstormy16_register_type)
2069 (xstormy16_push_arguments, xstormy16_push_return_address)
2070 (xstormy16_pop_frame, xstormy16_store_struct_return)
2071 (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
2072 (xstormy16_frame_saved_register, xstormy16_get_saved_register)
2073 (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
2074 (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
2075 (xstormy16_frame_chain, xstormy16_frame_chain_valid,
2076 (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
2077 (xstormy16_use_struct_convention): Drop gcc_p parameter.
2078 (xstormy16_extract_return_value, xstormy16_store_return_value):
2079 Regcachify. Drop useless struct convention handling.
2080 (xstormy16_register_type, xstormy16_return_value)
2081 (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
2082 (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
2083 (xstormy16_frame_prev_register, xstormy16_frame_this_id)
2084 (xstormy16_frame_base_address, xstormy16_frame_sniffer)
2085 (xstormy16_unwind_sp, xstormy16_unwind_pc)
2086 (xstormy16_unwind_dummy_id) : New functions.
2087 (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
2088 of xstormy16_scan_prologue.
2089 (xstormy16_frame_unwind): New frame_unwind structure.
2090 (xstormy16_frame_base): New frame_base structure.
2091 (xstormy16_gdbarch_init): Accomodate all of the above changes.
2092 Reshuffle for better readability. Also add dwarf2_frame_sniffer.
2093
1285b746
MK
20942004-09-22 Mark Kettenis <kettenis@gnu.org>
2095
2096 * language.c (language_gdbarch_post_init): Fix off-by one error.
2097
1c379e20
DJ
20982004-09-21 Daniel Jacobowitz <dan@debian.org>
2099
2100 * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
2101 (struct dwarf2_offset_and_type): New.
2102 (set_die_type, reset_die_and_siblings_types, get_die_type)
2103 (offset_and_type_hash, offset_and_type_eq): New functions.
2104 (read_structure_type, read_enumeration_type, read_array_type)
2105 (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
2106 (read_tag_reference_type, read_tag_const_type)
2107 (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
2108 (read_typedef, read_base_type, read_subrange_type): Use
2109 set_die_type.
2110
ae038cb0
DJ
21112004-09-20 Daniel Jacobowitz <dan@debian.org>
2112
2113 * Makefile.in (dwarf2read.o): Update dependencies.
2114 * dwarf2read.c: Include "command.h" and "gdbcmd.h".
2115 (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
2116 and read_in_chain.
2117 (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
2118 mark, and has_form_ref_addr.
2119 (struct dwarf2_per_cu_data): New.
2120 (dwarf2_max_cache_age): New.
2121 (dwarf2_build_psymtabs_hard): Free cached compilation units
2122 after loading. Create and manage the list of compilation units.
2123 Remove unnecessary NULL initialization. Fix indentation.
2124 (psymtab_to_symtab_1): Initialize all of CU.
2125 (dwarf2_read_abbrevs): Set has_form_ref_addr.
2126 (find_partial_die): Use dwarf2_find_containing_comp_unit
2127 and load_comp_unit.
2128 (free_stack_comp_unit): Update comments. Clear the per-cu
2129 pointer. Handle aging.
2130 (dwarf2_find_containing_comp_unit, free_cached_comp_units)
2131 (age_cached_comp_units, free_one_cached_comp_unit)
2132 (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
2133 (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
2134 (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
2135 (show_dwarf2_cmd): New.
2136 (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
2137 and "maint show dwarf2 max-cache-age".
2138 * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
2139 externs.
2140 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
2141 global.
2142
987504bb
JJ
21432004-09-20 Jeff Johnston <jjohnstn@redhat.com>
2144
2145 * dwarf2read.c (typename_concat): Change prototype to accept obstack
2146 and dwarf2_cu struct pointer as arguments. Change function to use
2147 obstack if provided and use dwarf2_cu to determine language-specific
2148 separator.
2149 (partial_die_parent_scope): Change comment to include java. Use
2150 new version of typename_concat instead of obconcat.
2151 (partial_die_full_name): Use typename_concat.
2152 (read_namespace): Ditto.
2153 (read_enumeration_type): Use typename_concat instead of obconcat.
2154 (new_symbol): Ditto.
2155 (add_partial_symbol): Enhance tests for C++ to also test for Java.
2156 (guess_structure_name): Ditto.
2157 (read_subroutine_type): Ditto.
2158 (read_structure_type): Ditto.
2159 (is_vtable_name): Add Java support.
2160 (determine_class_name): Switch to new typename_concat call.
2161 (determine_prefix): Switch to new typename_concat call.
2162 * jv-exp.y (FuncStart): New pattern.
2163 (MethodInvocation): Add support for simple function calls. Change
2164 warning message for other forms of inferior call currently not
2165 supported.
2166 * valarith.c (value_subscript): Treat an array with upper-bound
2167 of -1 as unknown size.
2168
d9c8471e
DJ
21692004-09-20 Daniel Jacobowitz <dan@debian.org>
2170
2171 * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
2172 (lookup_partial_symtab): Use symtab_to_fullname.
2173
d73f140a
JB
21742004-09-19 Jim Blandy <jimb@redhat.com>
2175
2176 * minsyms.c (lookup_minimal_symbol): Doc fix.
2177
adbef1f0
AC
21782004-09-20 Andrew Cagney <cagney@gnu.org>
2179
2180 * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
2181 CHILD_RESUME.
2182 * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
2183 * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
2184 KILL_INFERIOR.
2185 * infptrace.c: Update.
2186
d092d1a2
DJ
21872004-09-19 Daniel Jacobowitz <dan@debian.org>
2188
2189 * symtab.c (output_source_filename): Mark first argument as const.
2190 (sources_info): Use symtab_to_fullname and psymtab_to_fullname
2191 for "info sources" output.
2192
86d9e1d7
MK
21932004-09-20 Mark Kettenis <kettenis@gnu.org>
2194
2195 * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
2196 <machine/vmparam.h>.
2197 (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
2198 (register_u_addr): Remove prototype.
2199
9a6c8ef4
MK
22002004-09-19 Mark Kettenis <kettenis@gnu.org>
2201
9692934b
MK
2202 * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
2203 (i386bsd_fetch_inferior_registers): Rename from
2204 fetch_inferior_registers. Make static.
2205 (i386bsd_store_inferior_registers): Rename from
2206 store_inferior_registers. Make static.
2207 (i386bsd_target): New function.
2208 * i386bsd-nat.h: New file.
2209 * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
2210 "i386bsd-nat.h".
2211 (i386fbsd_resume): Rename from child_resume. Make static.
2212 (_initialize_i386fbsd_nat): Construct and add target vector.
2213 * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
2214 (_initialize_i386nbsd_nat): Construct and add target vector.
2215 * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
2216 Remove defines.
2217 * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
2218 and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
2219 * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
2220 inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
2221 (LOADLIBES): New variable.
2222 * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
2223 inf-ptrace.o. Remove inftarg.o.
2224 * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
2225 inf-ptrace.o. Remove inftarg.o.
2226 * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
2227 inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
2228 (LOADLIBES): New variable.
2229 * Makefile.in (i386bsd_nat_h): New variable.
2230 (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
2231 dependencies.
2232
3510d1f2
MK
2233 * sparc64nbsd-tdep.c: Include "objfiles.h".
2234 (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
2235 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
2236 svr4_lp64_fetch_link_map_offsets.
2237 * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
2238 "nbsd-tdep.h".
2239 (sparc64obsd_init_abi): Set in_solib_call_trampoline and
2240 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
2241 svr4_lp64_fetch_link_map_offsets.
2242 * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
2243 dependencies.
2244
578c1c03
MK
2245 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
2246 * fbsd-nat.h: New file.
2247 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
2248 (fbsd_nat_h): New variable.
2249 (fbsd-nat.o): New dependency.
2250
7a7b73b7
MK
2251 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
2252 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
2253
9a6c8ef4
MK
2254 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
2255 comment.
2256
72d5681a
PH
22572004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
2258
2259 * ada-exp.y (type_int): New function to add layer of abstraction
2260 around references to expression types.
2261 (type_long): Ditto.
2262 (type_long_long): Ditto.
2263 (type_float): Ditto.
2264 (type_double): Ditto.
2265 (type_long_double): Ditto.
2266 (type_char): Ditto.
2267 (type_system_address): Ditto.
2268 (simple_exp): Use type_* functions in place of builtin_*
2269 variables.
2270 (exp): Ditto.
2271 (write_var_from_name): Ditto.
2272 (write_object_renaming): Ditto.
2273 * ada-lang.c (ada_create_fundamental_type): Remove redundant
2274 declaration.
2275 (build_ada_types): Remove, replacing with...
2276 (ada_language_arch_info): New function to initialize primitive
2277 type vector in language_arch_info.
2278 (ada_array_length): Remove use of builtin_type_ada_int.
2279 (value_pos_atr): Ditto.
2280 (ada_evaluate_subexp): Ditto.
2281 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
2282 builtin_type_ada_long_long, builtin_type_ada_char,
2283 builtin_type_ada_float, builtin_type_ada_double,
2284 builtin_type_ada_long_double, builtin_type_ada_natural,
2285 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
2286 (ada_builtin_types): Remove.
2287 (ada_language_defn): Remove entries for la_builtin_type_vector and
2288 string_char_type and use ada_language_arch_info.
2289 (_initialize_ada_language): Do type-vector initialization along
2290 the lines of c-lang.c.
2291 (ada_create_fundamental_type): Break up line.
2292 (ada_dump_symtab): Remove unused function.
2293 (enum ada_primitive_types): Define.
2294 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
2295 builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
2296 builtin_type_ada_float, builtin_type_ada_double,
2297 builtin_type_ada_long_double, builtin_type_ada_natural,
2298 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
2299 * ada-lex.l: Use type_* functions in place of builtin_* variables.
2300 (processInt): Ditto.
2301 (processReal): Ditto.
2302 (name_lookup): Ditto.
2303 * ada-typeprint.c (print_range): Use builtin_type_int, not
2304 builtin_type_ada_int.
2305
4f0be353
MK
23062004-09-18 Mark Kettenis <kettenis@gnu.org>
2307
30b0e2d8
MK
2308 * i386-tdep.c (i386_register_name): Rename regno to regnum.
2309
4f0be353
MK
2310 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
2311 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
2312 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
2313 * configure.in: Improve checks for curses library by checking for
2314 mvwaddstr instead of initscr. Drop HP curses in favour of
2315 standard curses on HP-UX.
2316 * configure: Regenerated.
2317
72d5681a 23182004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
6c038f32
PH
2319
2320 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
2321 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
2322 Minor formatting changes.
2323 (empty_array): Slight rewrite for formatting.
2324 (emit_char,parse,ada_language_defn,build_ada_types,
2325 ada_is_exception_sym, _initialize_ada_language): Move
2326 definitions around.
2327 (ada_dump_symtab): Remove unused definition.
2328 (ada_maybe_exception_partial_symbol): Remove unused definition.
2329
1c8c7407
AC
23302004-09-16 Andrew Cagney <cagney@gnu.org>
2331
7681f339
AC
2332 * inf-child.c: Include "gdb_string.h".
2333 (inf_child_core_file_to_sym_file): Delete.
2334 (inf_child_target): Set to_fetch_registers and to_store_registers.
2335 * inf-ptrace.c: Include "gdb_string.h".
2336 * Makefile.in: Update all dependencies.
2337
1c8c7407
AC
2338 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
2339 problem.
2340
65596487
JB
23412004-09-14 Joel Brobecker <brobecker@gnat.com>
2342
2343 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
2344 call to heuristic_proc_desc. Remove code that became redundant
2345 as a consequence.
2346 (read_next_frame_reg): Remove special case for SP_REGNUM.
2347 (set_reg_offset): Fix small typo.
2348 (reset_saved_regs): New procedure.
2349 (mips32_heuristic_proc_desc): No longer compute a fake
2350 procedure descriptor. Compute the full frame cache instead.
2351 Some minor comment reformatting.
2352
95575b2e
AC
23532004-09-14 Andrew Cagney <cagney@gnu.org>
2354
f200c492
AC
2355 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
2356 maintainer.
2357
95575b2e
AC
2358 * thread-db.c (thread_db_new_objfile): Assume that there is a
2359 child process.
2360
69657671
JB
23612004-09-13 Jim Blandy <jimb@redhat.com>
2362
2363 * valops.c (value_assign): Move 'buffer' to the enclosing block,
2364 so that its storage isn't referenced after its lifetime ends.
2365
6c4182dd
JB
2366 * valops.c (value_assign): 'use_buffer' is initialized to zero,
2367 and never assigned to. Delete it, and the 'if (use_buffer)'
2368 clauses. Delete 'raw_buffer', since it is now unused.
2369
ee31a58d
AC
23702004-09-13 Andrew Cagney <cagney@gnu.org>
2371
2c0fc042
AC
2372 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
2373 * configure: Re-generate.
2374 * nlm/Makefile.in (TAGS): Update.
2375 * Makefile.in (TAGS): Update.
2376 * config/vax/nbsd.mt (TM_FILE): Update.
2377 * config/sparc/vxworks.mt (TM_FILE): Update.
2378 * config/sparc/sol2.mt (TM_FILE): Update.
2379 * config/sparc/sol2-64.mt (TM_FILE): Update.
2380 * config/sparc/obsd64.mt (TM_FILE): Update.
2381 * config/sparc/obsd.mt (TM_FILE): Update.
2382 * config/sparc/nbsd64.mt (TM_FILE): Update.
2383 * config/sparc/nbsd.mt (TM_FILE): Update.
2384 * config/sparc/linux64.mt (TM_FILE): Update.
2385 * config/sparc/linux.mt (TM_FILE): Update.
2386 * config/sparc/fbsd.mt (TM_FILE): Update.
2387 * config/sh/wince.mt (TM_FILE): Update.
2388 * config/sh/nbsd.mt (TM_FILE): Update.
2389 * config/sh/linux.mt (TM_FILE): Update.
2390 * config/sh/embed.mt (TM_FILE): Update.
2391 * config/s390/s390.mt (TM_FILE): Update.
2392 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
2393 * config/rs6000/rs6000.mt (TM_FILE): Update.
2394 * config/rs6000/aix4.mt (TM_FILE): Update.
2395 * config/powerpc/vxworks.mt (TM_FILE): Update.
2396 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
2397 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
2398 * config/powerpc/obsd.mt (TM_FILE): Update.
2399 * config/powerpc/nbsd.mt (TM_FILE): Update.
2400 * config/powerpc/linux.mt (TM_FILE): Update.
2401 * config/powerpc/aix.mt (TM_FILE): Update.
2402 * config/pa/obsd.mt (TM_FILE): Update.
2403 * config/pa/linux.mt (TM_FILE): Update.
2404 * config/pa/hppahpux.mt (TM_FILE): Update.
2405 * config/pa/hppa64.mt (TM_FILE): Update.
2406 * config/pa/hppa.mt (TM_FILE): Update.
2407 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
2408 * config/mips/wince.mt (TM_FILE): Update.
2409 * config/mips/vxmips.mt (TM_FILE): Update.
2410 * config/mips/nbsd.mt (TM_FILE): Update.
2411 * config/mips/linux.mt (TM_FILE): Update.
2412 * config/mips/irix6.mt (TM_FILE): Update.
2413 * config/mips/irix5.mt (TM_FILE): Update.
2414 * config/mips/embed.mt (TM_FILE): Update.
2415 * config/m68k/vxworks68.mt (TM_FILE): Update.
2416 * config/m68k/st2000.mt (TM_FILE): Update.
2417 * config/m68k/os68k.mt (TM_FILE): Update.
2418 * config/m68k/obsd.mt (TM_FILE): Update.
2419 * config/m68k/nbsd.mt (TM_FILE): Update.
2420 * config/m68k/monitor.mt (TM_FILE): Update.
2421 * config/m68k/linux.mt (TM_FILE): Update.
2422 * config/m68k/cisco.mt (TM_FILE): Update.
2423 * config/ia64/linux.mt (TM_FILE): Update.
2424 * config/ia64/aix.mt (TM_FILE): Update.
2425 * config/ia64/ia64.mt (TM_FILE): Update.
2426 * config/i386/vxworks.mt (TM_FILE): Update.
2427 * config/i386/obsd64.mt (TM_FILE): Update.
2428 * config/i386/obsd.mt (TM_FILE): Update.
2429 * config/i386/nto.mt (TM_FILE): Update.
2430 * config/i386/nbsd64.mt (TM_FILE): Update.
2431 * config/i386/nbsd.mt (TM_FILE): Update.
2432 * config/i386/linux64.mt (TM_FILE): Update.
2433 * config/i386/linux.mt (TM_FILE): Update.
2434 * config/i386/i386sol2.mt (TM_FILE): Update.
2435 * config/i386/i386lynx.mt (TM_FILE): Update.
2436 * config/i386/fbsd64.mt (TM_FILE): Update.
2437 * config/i386/fbsd.mt (TM_FILE): Update.
2438 * config/i386/cygwin.mt (TM_FILE): Update.
2439 * config/h8300/h8300.mt (TM_FILE): Update.
2440 * config/frv/frv.mt (TM_FILE): Update.
2441 * config/cris/cris.mt (TM_FILE): Update.
2442 * config/arm/wince.mt (TM_FILE): Update.
2443 * config/arm/nbsd.mt (TM_FILE): Update.
2444 * config/arm/linux.mt (TM_FILE): Update.
2445 * config/arm/embed.mt (TM_FILE): Update.
2446 * config/alpha/nbsd.mt (TM_FILE): Update.
2447 * config/alpha/fbsd.mt (TM_FILE): Update.
2448 * config/alpha/alpha.mt (TM_FILE): Update.
2449 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
2450 * config/alpha/alpha-linux.mt (TM_FILE): Update.
2451
362646f5
AC
2452 Eliminate event_loop_p, always has the value 1.
2453 * defs.h (event_loop_p): Delete macro.
2454 * breakpoint.c (until_break_command): Simplify.
2455 * utils.c (prompt_for_continue): Simplify.
2456 * tracepoint.c (read_actions): Simplify.
2457 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
2458 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
2459 (set_prompt, init_main): Simplify.
2460 (init_signals, disconnect): Delete, unused.
2461 * remote.c (remote_async_resume)
2462 (extended_remote_async_create_inferior): Simplify.
2463 * mi/mi-interp.c (mi_input): Delete, unused.
2464 (mi_interpreter_resume, mi_command_loop): Simplify.
2465 * interps.c (current_interp_command_loop): Simplify.
2466 * infrun.c (proceed): Simplify.
2467 * infcmd.c (run_command, continue_command, step_1, jump_command)
2468 (until_command, advance_command, finish_command)
2469 (interrupt_target_command): Simplify.
2470 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
2471
ee31a58d
AC
2472 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2473 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2474 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2475 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2476 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2477 * mips-tdep.c (mips_dump_tdep): Do not print same.
2478
b7ffc4a8
AC
24792004-09-12 Andrew Cagney <cagney@gnu.org>
2480
2bfb72ee
AC
2481 * valprint.c (print_longest): Use fputs_filtered. Make "val"
2482 const.
2483 * Makefile.in (valprint.o): Delete explict rule.
2484
4f17c3c1
AC
2485 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
2486 reported by Dave Anderson.
2487
f810308b
AC
2488 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
2489
b7ffc4a8
AC
2490 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
2491
28b41c52
AC
24922004-09-12 Salvador E. Tropea <set@users.sf.net>
2493 Andrew Cagney <cagney@gnu.org>
2494
2495 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
2496 (mi_cmd_data_list_register_values)
2497 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
2498 the register number computation.
2499
5bf970f9
AC
25002004-09-12 Andrew Cagney <cagney@gnu.org>
2501
2502 * ppcnbsd-nat.c: Include "inf-ptrace.h".
2503 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
2504 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
2505 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
2506 target.
2507 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
2508 inf-ptrace.o and inf-child.o.
2509 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
2510 * Makefile.in: Update dependencies.
2511
0759e0bf
AC
25122004-09-11 Andrew Cagney <cagney@gnu.org>
2513
2514 * language.c (hex_string, hex_string_custom): Move from here ...
2515 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
2516 (CELLSIZE): Increase to 50.
2517 * language.h (hex_string, hex_string_custom): Move from here ...
2518 * defs.h: ... to here.
2519 * Makefile.in: Update all dependencies.
2520
bb599908
PH
25212004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
2522
2523 * language.c (local_hex_format_custom): Remove.
2524 (local_hex_string): Rename to hex_string, use C format, and move to
2525 utils.c
2526 (local_hex_string_custom): Rename to hex_string_custom and change
2527 interface. Now uses C format. Move to utils.c
2528 (local_octal_format_custom): Remove.
2529 (local_decimal_format_custom): Remove.
2530 (unknown_language_defn): Remove language-specific number
2531 formatting entries.
2532 (auto_language_defn): Ditto.
2533 (local_language_defn): Ditto.
2534 * language.h (struct language_format_info): Delete declaration.
2535 (struct language_defn): Remove language_format_info fields
2536 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
2537 (local_binary_format): Remove macro.
2538 (local_binary_format_prefix): Remove macro.
2539 (local_binary_format_specifier): Remove macro.
2540 (local_binary_format_suffix): Remove macro.
2541 (local_octal_format): Remove macro.
2542 (local_octal_format_prefix): Remove macro.
2543 (local_octal_format_specifier): Remove macro.
2544 (local_octal_format_suffix): Remove macro.
2545 (local_decimal_format): Remove macro.
2546 (local_decimal_format_prefix): Remove macro.
2547 (local_decimal_format_specifier): Remove macro.
2548 (local_decimal_format_suffix): Remove macro.
2549 (local_hex_format): Remove macro.
2550 (local_hex_format_prefix): Remove macro.
2551 (local_hex_format_specifier): Remove macro.
2552 (local_hex_format_suffix): Remove macro.
2553 (local_decimal_format_custom): Remove.
2554 (local_octal_format_custom): Remove.
2555 (local_hex_format_custom): Remove.
2556 (local_hex_string): Rename to hex_string and move to defs.h.
2557 (local_hex_string_custom): Rename to hex_string_custom, change
2558 interface, and move to defs.h.
2559 * utils.c: (int_string): New function.
2560 (hex_string): New function (from language.c).
2561 (hex_string_custom): New function (from language.c).
2562 (octal2str): New function.
2563 (decimal2str): Add width parameter.
2564 (paddr_u): Use new decimal2str interface.
2565 (paddr_d): Ditto.
2566 * defs.h (hex_string): Declare.
2567 (hex_string_custom): Declare.
2568 (int_string): Declare.
2569 * printcmd.c (print_scalar_formatted): Remove localized binary
2570 formatting.
2571 * valprint.c (print_longest): Use int_string.
2572 (print_floating): Use C hex format.
2573 (print_hex_chars): Ditto.
2574 (print_binary_chars): Remove language-specific formatting.
2575 (print_octal_chars): Use C octal format.
2576 (print_decimal_chars): Delocalize format.
2577 (print_decimal): Remove.
2578 * ada-lang.c (ada_language_defn): Remove language-specific number
2579 formatting entries.
2580 * p-lang.c (pascal_language_defn): Ditto.
2581 * c-lang.c (c_language_defn): Ditto.
2582 (cplus_language_defn): Ditto.
2583 (asm_language_defn): Ditto.
2584 (minimal_language_defn): Ditto.
2585 * f-lang.c (f_language_defn): Ditto.
2586 * jv-lang.c (java_language_defn): Ditto.
2587 * m2-lang.c (m2_language_defn): Ditto.
2588 * scm-lang.c (scm_language_defn): Ditto.
2589 * objc-lang.c (objc_language_defn): Ditto.
2590 * memattr.c (mem_info_command): Use renamed hex_string_custom with
2591 new interface.
2592 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
2593 * ui-out.c (ui_out_field_core_addr): Ditto.
2594 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
2595 * exec.c (print_section_info): Ditto.
2596 * i387-tdep.c (print_i387_status_word): Ditto.
2597 (print_i387_control_word): Ditto.
2598 (i387_print_float_info): Ditto.
2599 * maint.c (maint_print_section_info): Ditto.
2600 * solib.c (info_sharedlibrary_command): Ditto.
2601 * somsolib.c (som_sharedlibrary_info_command): Ditto.
2602 * symtab.c (print_msymbol_info): Ditto.
2603 * tracepoint.c (tracepoints_info): Ditto.
2604 * solib-frv.c (lm_base): Ditto.
2605 (frv_current_sos): Ditto.
2606 (enable_break2): Ditto.
2607 (enable_break): Ditto.
2608 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
2609 (process_one_symbol): Ditto.
2610 * infcmd.c (program_info): Ditto.
2611 * mdebugread.c (parse_partial_symbols): Ditto.
2612 * symfile.c (add_symbol_file_command): Ditto.
2613 * cli/cli-cmds.c (edit_command): Ditto.
2614 (list_command): Ditto.
2615 * infcall.c (call_function_by_hand): Ditto.
2616 * remote-vx.c (vx_run_files_info): Ditto.
2617 (vx_wait): Ditto.
2618 (vx_attach): Ditto.
2619 (vx_detach): Ditto.
2620 (vx_kill): Ditto.
2621 * aix-thread.c (pdc_symbol_addrs): Ditto.
2622 (pdc_read_regs): Ditto.
2623 (pdc_write_regs): Ditto.
2624 (pdc_read_data): Ditto.
2625 (pdc_write_data): Ditto.
2626 * d10v-tdep.c (display_trace): Ditto.
2627 * rs6000-nat.c (find_toc_address): Ditto.
2628 * aix-thread.c: Don't include language.h.
2629 * buildsym.c: Ditto.
2630 * dbxread.c: Ditto.
2631 * mdebugread.c: Ditto.
2632 * rs6000-nat.c: Ditto.
2633 * buildsym.c (make_blockvector): Use renamed hex_string.
2634
33f2d567
JM
26352004-09-10 Jason Molenda (jmolenda@apple.com)
2636
2637 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
2638 chars after 'if' or 'while' commands in user-defined commands.
2639
7b90c3f9
JB
26402004-09-08 Jim Blandy <jimb@redhat.com>
2641
2642 Fix bug reported and analyzed by Olivier Crete:
2643 * symfile.c (copy_section_addr_info): New function.
2644 (symbol_file_add_with_addrs_or_offsets): Use it to save the
2645 original set of address arguments, instead of handwritten code
2646 that uses one length to allocate and a different length to
2647 initialize. Use make_cleanup_free_section_addr_info.
2648 * symfile.h (copy_section_addr_info): New declaration.
2649 * utils.c: #include "symfile.h".
2650 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
2651 New functions.
2652 * defs.h (make_cleanup_free_section_addr_info): New declaration.
2653 * Makefile.in (utils.o): Update dependencies.
2654
b26a6851
AC
26552004-09-08 Andrew Cagney <cagney@gnu.org>
2656
2657 * thread-db.c (keep_thread_db): Delete.
2658 (thread_db_new_objfile, thread_db_create_inferior)
2659 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
2660
be24b061
MK
26612004-09-08 Mark Kettenis <kettenis@gnu.org>
2662
f6792ef4
MK
2663 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
2664 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
2665 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
2666 (i386_frameless_signal_p): Remove prototype.
2667 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
2668 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
2669 I386_SSE_NUM_REGS.
2670 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
2671 instead of FP0_REGNUM.
2672 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
2673 of FP0_REGNUM and FPC_REGNUM.
2674
eeefdaa7
MK
2675 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
2676 (sunos_solib_create_inferior_hook): Don't call
2677 sunos_relocate_main_executable.
2678
be24b061
MK
2679 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
2680 solib_svr4_fetch_link_map_offsets to
2681 svr4_ilp32_fetch_link_map_offsets.
2682 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
2683 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
2684 svr4_ilp32_fetch_link_map_offsets.
2685 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
2686
7c679d16
JB
26872004-09-07 Jim Blandy <jimb@redhat.com>
2688
2689 * frame.h (frame_register): Doc fix.
2690
1f04aa62
AC
26912004-09-07 Andrew Cagney <cagney@gnu.org>
2692
2693 * vx-share/wait.h: Delete #ifdef USG.
2694 * utils.c (request_quit): Ditto.
2695 * tui/tui.c (tui_reset): Ditto.
2696 * remote.c: Ditto.
2697 * remote-sds.c: Ditto.
2698 * remote-rdi.c: Ditto.
2699 * mdebugread.c: Ditto.
2700 * m68klinux-nat.c: Ditto.
2701 * infttrace.c: Ditto.
2702 * infptrace.c: Ditto.
2703 * i386v-nat.c: Ditto.
2704 * exec.c: Ditto.
2705 * dbxread.c: Ditto.
2706 * core-aout.c: Ditto.
2707
90edbfbc
JB
27082004-09-05 Joel Brobecker <brobecker@gnat.com>
2709
2710 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
2711 heuristic_proc_desc.
2712 (mips_insn32_frame_cache): Likewise.
2713
01f4bf2b
JB
27142004-09-04 Joel Brobecker <brobecker@gnat.com>
2715
2716 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
2717 left behind by error.
2718
8511a048
JB
27192004-09-04 Joel Brobecker <brobecker@gnat.com>
2720
2721 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
2722 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
2723
649dfe9f
JB
27242004-09-04 Joel Brobecker <brobecker@gnat.com>
2725
2726 * config/rs6000/xm-aix4.h: Remove this file.
2727 * config/rs6000/aix4.mh (XM_FILE): Delete.
2728
6e50f889
JB
27292004-09-04 Joel Brobecker <brobecker@gnat.com>
2730
2731 * config/rs6000/xm-rs6000.h: Remove this file.
2732 * config/rs6000/rs6000.mh (XM_FILE): Remove.
2733
b8c4aece
AC
27342004-09-03 Andrew Cagney <cagney@gnu.org>
2735
fb603883
AC
2736 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
2737 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
2738 only use.
2739
c9343fd1
AC
2740 * mips-tdep.c (temp_saved_regs): Delete.
2741 (set_reg_offset): Replace saved_regs parameter with this_cache.
2742 (heuristic_proc_desc, mips16_heuristic_proc_desc)
2743 (mips32_heuristic_proc_desc): Add this_cache parameter.
2744 (mips_insn32_frame_cache, mips_insn16_frame_cache)
2745 (after_prologue): Pass a NULL this_cache.
2746
9733cfe1
AC
2747 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
2748 non-kernel trap prologues.
2749
0d5febcc
AC
2750 * mips-tdep.c (find_proc_desc): Delete function.
2751 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
2752 simplify.
2753 (mips_insn16_frame_cache): Replace find_proc_desc with code from
2754 mips_insn32_frame_cache.
2755
9733cfe1 2756 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
283be873
AC
2757 Simplify as NEXT_FRAME is NULL.
2758 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
2759
177f84a3
AC
2760 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
2761 local variable.
2762 (mips_skip_prologue): Update.
2763
465f7520
AC
2764 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
2765 "cur_frame" parameter.
177f84a3
AC
2766 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
2767 (mips_insn32_frame_cache, find_proc_desc): Update
465f7520 2768
e38b8658
AC
2769 * config/vax/nm-obsd.h: Delete file.
2770 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2771 * config/vax/nm-nbsd.h: Delete file.
2772 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
2773 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2774 * config/sh/nm-nbsd.h: Delete file.
2775 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
2776 * config/rs6000/nm-rs6000ly.h: Delete file.
2777 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
2778 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
2779 * config/powerpc/nm-obsd.h: Delete file.
2780 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2781 * config/powerpc/nm-nbsd.h: Delete file.
2782 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
2783 * config/pa/nm-obsd.h: Delete file.
2784 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2785 * config/mips/nm-nbsd.h: Delete file.
2786 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
2787 * config/m88k/nm-obsd.h: Delete file.
2788 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2789 * config/m68k/nm-nbsd.h: Delete file.
2790 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
2791 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2792 * config/i386/nm-nbsd.h: Delete file.
2793 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
2794 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2795 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2796 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2797 * config/i386/nm-i386lynx.h: Delete file.
2798 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
2799 * config/arm/nm-nbsd.h: Delete file.
2800 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
2801 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2802
be1ed680
AC
2803 * config/i386/tm-fbsd.h: Delete file.
2804 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
2805 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
2806
4b392b26
AC
2807 * config/rs6000/tm-rs6000-aix4.h: Delete file.
2808 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
2809 * config/rs6000/aix4.mt (TM_FILE): Set to
2810 config/rs6000/tm-rs6000.h.
2811 * config/powerpc/tm-ppc-aix.h: Delete file.
2812 * config/powerpc/aix.mt (TM_FILE): Set to
2813 config/rs6000/tm-rs6000.h.
2814 * config/m68k/tm-linux.h: Delete file.
2815 * config/m68k/linux.mt (TM_FILE): Set to solib.h
2816 * config/i386/tm-linux64.h: Delete file.
2817 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
2818 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
2819
f3219c75
AC
2820 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
2821 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
2822 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
2823 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
2824 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
2825 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
2826 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
2827 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
2828 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
2829
b8c4aece
AC
2830 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
2831 gdb_host_cpu.
2832
8ac2e020
JB
28332004-09-02 Joel Brobecker <brobecker@gnat.com>
2834
2835 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
2836 Minor reformatting. Some code factoring.
2837
c185a355
AC
28382004-09-02 Andrew Cagney <cagney@gnu.org>
2839
63f22f0d
AC
2840 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
2841 * config/vax/tm-nbsd.h: Delete file.
2842 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
2843 * config/sparc/tm-vxworks.h: Delete file.
2844 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
2845 * config/sparc/tm-nbsd.h: Delete file.
2846 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
2847 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
2848 * config/sparc/tm-linux.h: Delete file.
2849 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
2850 * config/s390/tm-linux.h: Delete file.
2851 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
2852 * config/pa/tm-bsd.h: Delete file.
2853 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
2854 * config/m68k/tm-obsd.h: Delete file.
2855 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
2856 * config/m68k/tm-nbsd.h: Delete file.
2857 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
2858 * config/i386/tm-vxworks.h: Delete file.
2859 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
2860 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
2861 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
2862 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
2863 * config/i386/tm-nbsd.h: Delete file.
2864 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
2865 * config/i386/tm-i386lynx.h: Delete file.
2866 * config/cris/cris.mt (TM_FILE): Set to solib.h.
2867 * config/cris/tm-cris.h: Delete file.
2868
0f475e27
AC
2869 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
2870 * configure: Re-generate.
2871 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
2872 * config/arm/tm-nbsd.h: Delete file.
2873
458ed000
AC
2874 * config/powerpc/tm-ppcle-sim.h: Delete.
2875 * config/powerpc/tm-ppcle-eabi.h: Delete.
2876 * config/powerpc/tm-nbsd.h: Delete.
2877 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
2878 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
2879 tm-ppcle-eabi.h.
2880
f14375f3
AC
2881 * config/i386/nto.mh (NAT_FILE): Delete.
2882 * config/i386/nm-nto.h: Delete.
2883
c34d127c
AC
2884 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
2885 * config/m68k/tm-os68k.h: Ditto.
2886 * config/m68k/tm-monitor.h: Ditto.
2887 * config/m68k/tm-cisco.h: Ditto.
2888 * config/m68k/st2000.mt (TM_FILE): Delete.
2889 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
2890 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
2891 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
2892 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
2893
f7f0fe03
AC
2894 * config/m68k/tm-st2000.h: Delete.
2895 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
2896 * config/sparc/fbsd.mt (TM_FILE): Delete.
2897 * config/sparc/tm-fbsd.h: Delete.
2898
a2558533
AC
2899 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
2900 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
2901 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
2902
b78960be
AC
2903 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
2904 GDB_TM_FILE and GDB_XM_FILE.
2905 * gdbarch.c: Re-generate.
2906 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
2907 quotes in macro definition.
2908 * configure.in: Re-generate.
2909
4d60522e
AC
2910 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
2911 validating architecture methods.
2912 * gdbarch.c: Re-generate.
2913
5010d38b
AC
2914 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
2915 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
2916 GDB_MULTI_ARCH_PARTIAL.
2917 * gdbarch.h: Re-generate.
2918
c185a355
AC
2919 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
2920 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
2921 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
2922 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
2923 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
2924 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
2925 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
2926 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
2927 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
2928 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
2929 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
2930 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
2931
14aaa6ab
AC
29322004-09-01 Andrew Cagney <cagney@gnu.org>
2933
2934 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
2935 and main_func_highpc.
2936 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
2937 * objfiles.c (init_entry_point_info, objfile_relocate): Update
2938 * nlmread.c (nlm_symfile_read): Update.
2939
a343eb3c
JB
29402004-09-01 Joel Brobecker <brobecker@gnat.com>
2941
2942 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
2943 (mips_insn32_frame_cache): Inline call to find_proc_desc.
2944 (find_proc_desc): Remove dead code.
2945
4fbbbd07
JB
29462004-09-01 Joel Brobecker <brobecker@gnat.com>
2947
2948 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
2949
84acb35a
JJ
29502004-09-01 Jeff Johnston <jjohnstn@redhat.com>
2951
2952 * observer.sh: Add struct so_list declaration.
2953 * Makefile.in: Add dependencies on observer.h for solib.c and
2954 breakpoint.c.
2955 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
2956 function.
2957 (_initialize_breakpoint): Register
2958 disable_breakpoints_in_unloaded_shlib as an observer of the
2959 "solib unloaded" observation event.
2960 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
2961 call decode_line_1 so unfound breakpoint errors are silent.
2962 * solib.c (update_solib_list): When a solib is discovered to have
2963 been unloaded by the program, notify all observers of the
2964 "solib unloaded" observation event.
2965
c8cd9f6c
AC
29662004-09-01 Andrew Cagney <cagney@gnu.org>
2967
2968 * frame.c: Include "objfiles.h".
2969 (inside_main_func): New function.
2970 (get_prev_frame): Use new inside_main_func.
2971 * Makefile.in (frame.o): Update dependencies.
2972 * defs.h (inside_main_func): Delete declaration.
2973 * blockframe.c (inside_main_func): Delete function.
2974
1168df01
JB
29752004-08-31 Jim Blandy <jimb@redhat.com>
2976
2977 * dwarf2read.c (is_vtable_name): New function, based on logic from
2978 read_structure_type, but passing the correct length to strncmp,
2979 and using 'sizeof' instead of 'strlen'.
2980 (read_structure_type): Call it.
2981
f14f9744
JB
29822004-08-31 Joel Brobecker <brobecker@gnat.com>
2983
2984 * config/powerpc/aix.mh: Add comment.
2985
386d4518
PG
29862004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
2987
2988 * MAINTAINERS: Add self to Write-After-Approval.
2989
7d97d5e2
MI
29902004-08-30 Manoj Iyer <manjo@austin.ibm.com>
2991
2992 * MAINTAINERS: Add self to Write-After-Approval.
2993
68f53502
AC
29942004-08-30 Andrew Cagney <cagney@gnu.org>
2995
2996 Fix PR breakpoints/1757.
2997 * infrun.c (struct execution_control_state): Replace
2998 remove_breakpoints_on_following_step with
2999 step_after_step_resume_breakpoint.
3000 (init_execution_control_state): Update.
3001 (handle_inferior_event): For signals, when stepping off a
3002 breakpoint, set step_after_step_resume_breakpoint. When
3003 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
3004 (keep_going): Delete code handling
3005 remove_breakpoints_on_following_step.
3006
7ca2d3a3
DL
30072004-08-29 David Lecomber <david@streamline-computing.com>
3008
3009 Fix PR gdb/648
3010 * language.h (enum array_ordering): New enum.
3011 * language.h (struct language_defn): New la_array_ordering
3012 attribute.
3013 * language.c (unknown_language_defn, auto_language_defn)
3014 (local_language_defn): Ditto.
3015 * ada-lang.c (ada_language_defn): Ditto.
3016 * c-lang.c (c_language_defn, cplus_language_defn)
3017 (asm_language_defn, minimal_language_defn): Ditto.
3018 * f-lang.c (f_language_defn): Ditto.
3019 * jv-lang.c (java_language_defn): Ditto.
3020 * m2-lang.c (f_language_defn): Ditto.
3021 * objc-lang.c (objc_language_defn): Ditto.
3022 * p-lang.c (pascal_language_defn): Ditto.
3023 * scm-lang.c (scm_language_defn): Ditto.
3024 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
3025 oriented large to small in type structure.
3026 * dwarf2read.c (read_array_order): New function.
3027 (read_array_type): Use read_array_order to check row/column
3028 major ordering.
3029
e354df01
NW
30302004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
3031
3032 * target.c (target_resize_to_sections): Check
3033 current_target.to_sections for an old value when updating.
3034
9185ddce
JB
30352004-08-27 Joel Brobecker <brobecker@gnat.com>
3036
3037 * procfs.c (dbx_link_bpt_addr): New static global variable.
3038 (dbx_link_shadow_contents): New static global variable.
3039 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
3040 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
3041 if we just hit it.
3042 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
3043 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
3044 from run to run.
3045 (procfs_create_inferior): Remove syssgi syscall-exit notifications
3046 after the inferior has been forked.
3047 (remove_dbx_link_breakpoint): New function.
3048 (dbx_link_addr): New function.
3049 (insert_dbx_link_bpt_in_file): New function.
3050 (insert_dbx_link_bpt_in_region): New function.
3051 (insert_dbx_link_breakpoint): New function.
3052 (proc_trace_syscalls_1): New function, extracted from
3053 proc_trace_syscalls.
3054 (proc_trace_syscalls): Replace extract code by call to
3055 proc_trace_syscalls_1.
3056 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
3057 is no longer valid.
3058
e6742ace
JB
30592004-08-25 Jim Blandy <jimb@redhat.com>
3060
3061 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
3062
8fb3e588
AC
30632004-08-25 Andrew Cagney <cagney@gnu.org>
3064
629a41ee
AC
3065 * infrun.c (struct execution_control_state): Delete field
3066 "stepping_through_sigtramp".
3067 (init_execution_control_state): Do not set same.
3068 (context_switch): Do not pass same to save_infrun_state and
3069 load_infrun_state.
3070 * gdbthread.h (struct thread_info): Delete field
3071 stepping_through_sigtramp.
3072 (save_infrun_state, load_infrun_state): Delete parameter
3073 stepping_through_sigtramp.
3074 * thread.c (load_infrun_state, save_infrun_state): Update.
3075
8fb3e588
AC
3076 * infrun.c: Re-indent. Move expression operators to the beginning
3077 of the line. Remove long disabled #if 0 code.
3078
49c54768
AC
30792004-08-24 Andrew Cagney <cagney@gnu.org>
3080
3081 * doublest.h (floatformat_ieee_quad): Rename
3082 floatformat_ia64_quad.
3083 * doublest.c (floatformat_ieee_quad): Rename
3084 floatformat_ia64_quad.
3085 (_initialize_doublest): Update.
3086
5ca2e327
JB
30872004-08-24 Jim Blandy <jimb@redhat.com>
3088
87808bd6
JB
3089 * dwarf2expr.h (struct dwarf_expr_context): New members
3090 'num_pieces' and 'pieces', for returning the result of an
3091 expression that uses DW_OP_piece.
3092 (struct dwarf_expr_piece): New struct type.
3093 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
3094 pieces.
3095 (free_dwarf_expr_context): Free pieces, if any.
3096 (add_piece): New function.
3097 (execute_stack_op): Implement DW_OP_piece.
3098 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
3099 expression is a list of pieces, print an error message.
3100 (dwarf2_loc_desc_needs_frame): If the expression yields
3101 pieces, and any piece is in a register, then we need a frame.
3102
5ca2e327
JB
3103 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
3104 the stack until we've decided what sort of result the evaluation
3105 has produced. Use separate variables, with more specific names.
3106
2afeb6b8
RE
31072004-08-23 Richard Earnshaw <rearnsha@arm.com>
3108
3109 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
3110 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
3111 (arm_netbsd_init_abi_common): Register them.
3112
5885ab49
MK
31132004-08-22 Mark Kettenis <kettenis@gnu.org>
3114
fda820a6
MK
3115 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
3116
1c5bf419
MK
3117 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
3118 safe_frame_unwind_memory instead of target_read_memory.
3119
8cbba7c8
MK
3120 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
3121 Reorder includes.
3122 (fetch_register, store_register): Remove prototypes.
3123 (child_resume): Reorganize code and comments such that it is
3124 grouped a bit more logically.
3125 (attach): Explicitly compare errno against 0.
3126 (detach): Likewise. Use perror_with_name instead of
3127 print_sys_errmsg.
3128 * Makefile.in (infptrace.o): Update dependencies.
3129
c5fa4245
MK
3130 * ia64-linux-nat.c: Update copyright year.
3131 (fetch_debug_register, store_debug_register)
3132 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
3133 PTRACE_TYPE_ARG3.
3134 * config/ia64/nm-linux.h: Update copyright year.
3135 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
3136
387c058c
MK
3137 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
3138 from CORE_ADDR to struct frame_info *. Use
3139 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
3140 (amd64_linux_sigtramp_p): Adjust for changed signature of
3141 and64_linux_sigtramp_start
3142
277215a6
MK
3143 * gdb_ptrace.h: GNU/Linux.
3144
25f6178e
MK
3145 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
3146 Remove defines.
3147
652fc137
MK
3148 * infptrace.c: Include "gdb_assert.h".
3149 (PTRACE_XFER_TYPE): Remove define.
3150 (offsetof): Only define if U_REGS_OFFSET isn't defined.
3151 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
3152 Tweak comment.
3153 (fetch_inferior_registers, store_inferior_registers): Remove
3154 redundant culry braces. Tweak comment. s/regno/regnum.
3155 * Makefile.in (infptrace.o): Update dependencies.
3156
5885ab49
MK
3157 * configure.in: Change test for return type of ptrace to default
3158 to `long' instead of `int'.
3159 * configure: Regenerate.
3160
11003ae3
MK
31612004-08-21 Mark Kettenis <kettenis@gnu.org>
3162
6b95110c
MK
3163 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
3164
bcb3dc3d
MK
3165 * configure.in: Check for ttrace function.
3166 * configure, config.in: Regenerate.
3167
11003ae3
MK
3168 * gdb_ptrace.h: New file.
3169 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
3170 <sys/ptrace.h>.
3171 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
3172 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
3173 (attach): Don't define PT_ATTACH.
3174 (detach): Don't define PT_DETACH.
3175 * Makefile.in (gdb_ptrace_h): New variable.
3176 (infptrace.o): Update dependencies.
3177
f8707cac
MK
31782004-08-16 Mark Kettenis <kettenis@gnu.org>
3179
3180 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
3181 instead of `int' if not already defined.
3182 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
3183 PTRACE_TYPE_ARG3.
3184 * infptrace.c (call_ptrace): Revert change that replaced
3185 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3186
655c5466
MK
31872004-08-15 Mark Kettenis <kettenis@gnu.org>
3188
156e5ba7
MK
3189 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
3190 Remove defines.
3191
de9a9e51
MK
3192 * linux-nat.c (kill_inferior): Add missing third and fourth
3193 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
3194
88800403
MK
3195 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
3196 PTRACE_TYPE_RET.
3197
849a1d7c
MK
3198 * proc-why.c (proc_prettyfprint_why): Fix format string.
3199
61ad16d1
MK
3200 * solib-osf.c (osf_current_sos): Remove unsused label.
3201
a6ed5501
MK
3202 * configure.in: Add <ncurses/ncurses.h> to the list of possible
3203 curses headers.
3204 * configure, config.in: Regenerate.
3205 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
3206 <ncurses/ncurses.h>.
3207
016ddeca
MK
3208 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
3209 * config/nm-nbsd.h: Update copyright year.
3210 (PTRACE_ARG3_TYPE): Remove define.
3211
49ec097f
MK
3212 * sparc-nat.c (fetch_inferior_registers)
3213 (store_inferior_registers, sparc_xfer_wcookie):
3214 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3215
9f8e0089
MK
3216 * alphabsd-nat.c (fetch_inferior_registers):
3217 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3218 PTRACE_TYPE_ARG3.
3219 * amd64bsd-nat.c (fetch_inferior_registers)
3220 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3221 PTRACE_TYPE_ARG3.
3222 * armnbsd-nat.c: Update copyright year.
3223 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
3224 (store_register, store_regs, store_fp_register, store_fp_regs):
3225 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3226 * hppabsd-nat.c (fetch_inferior_registers)
3227 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3228 PTRACE_TYPE_ARG3.
3229 * i386bsd-nat.c (fetch_inferior_registers)
3230 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
3231 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3232 * m68kbsd-nat.c (fetch_inferior_registers)
3233 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3234 PTRACE_TYPE_ARG3.
3235 * m88kbsd-nat.c (fetch_inferior_registers)
3236 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3237 PTRACE_TYPE_ARG3.
3238 * mipsnbsd-nat.c: Update copyright year.
3239 (fetch_inferior_registers, store_inferior_registers):
3240 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3241 * ns32knbsd-nat.c: Update copyright year.
3242 (fetch_inferior_registers, store_inferior_registers):
3243 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3244 * ppcnbsd-nat.c (fetch_inferior_registers):
3245 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3246 PTRACE_TYPE_ARG3.
3247 * ppcobsd-nat.c (fetch_inferior_registers):
3248 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3249 PTRACE_TYPE_ARG3.
3250 * shnbsd-nat.c: Update copyright year.
3251 (fetch_inferior_registers, store_inferior_registers):
3252 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3253 * vaxbsd-nat.c (fetch_inferior_registers)
3254 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3255 PTRACE_TYPE_ARG3.
3256
655c5466
MK
3257 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
3258 PTRACE_TYPE_ARG3.
3259 * infptrace.c (call_ptrace, child_resume, attach, detach)
3260 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
3261 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3262 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
3263 PTRACE_TYPE_ARG3.
3264
c40d0d10
MK
32652004-08-14 Mark Kettenis <kettenis@gnu.org>
3266
5cb0ff31
MK
3267 * defs.h: Remove out-of-date comment.
3268 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
3269 [!GETENV_PROVIDED] (getenv): Remove prototype.
3270
5f0f34cb
MK
3271 * standalone.c: Remove file.
3272 * Makefile.in (standalone.o): Remove dependency.
3273
7532965f
MK
3274 * i386-linux-nat.c (dummy_sse_values): Remove function and
3275 prototype.
3276 (i386_linux_dr_get): Fix typo in comment.
3277 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
3278
1bdc6c53
MK
3279 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
3280
c40d0d10
MK
3281 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
3282 from declaration.
3283 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
3284 from definition.
3285
64218d3e
MK
32862004-08-13 Mark Kettenis <kettenis@gnu.org>
3287
3288 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
3289 parenthesis in definition.
3290 * configure: Regenerated.
3291
926c94e7
MC
32922004-08-12 Michael Chastain <mec.gnu@mindspring.com>
3293
3294 * PROBLEMS: Mention build/1411.
3295
69489883
NN
32962004-08-09 Robert Millan <robertmh@gnu.org>
3297
3298 Committed by Nathanael Nerode.
3299 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
3300 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
3301
ebb7c577
AC
33022004-08-12 Andrew Cagney <cagney@gnu.org>
3303
3304 * NEWS: Mention fixes in GDB 6.2.1.
3305 * PROBLEMS: Remove mention of mips-irix.
3306
232d697c
JB
33072004-08-11 Joel Brobecker <brobecker@gnat.com>
3308
3309 * config/powerpc/xm-aix.h: Delete.
3310 * config/powerpc/aix.mh (MH_FILE): Remove.
3311 * config/powerpc/aix432.mh (MH_FILE): Remove.
3312
72f4e82b
JB
33132004-08-11 Joel Brobecker <brobecker@gnat.com>
3314
3315 * config/powerpc/aix.mh: Remove obsolete comment.
3316 * config/powerpc/aix432.mh: Likewise.
3317
0687ccb2
JB
33182004-08-11 Joel Brobecker <brobecker@gnat.com>
3319
3320 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
3321
dbf3ada7
JB
33222004-08-11 Joel Brobecker <brobecker@gnat.com>
3323
e08e1886
JB
3324 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
3325 this file is now empty.
3326 * config/xm-aix4.h: Remove, this file is no longer included
3327 anywhere.
3328
33292004-08-11 Joel Brobecker <brobecker@gnat.com>
3330
3331 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
3332 that file is now empty.
dbf3ada7
JB
3333 (termdef): Remove prototype, function no longer used.
3334
4c525ef6
JB
33352004-08-11 Joel Brobecker <brobecker@gnat.com>
3336
3337 * doc/gdbint.texinfo (Host Definition): Remove documentation
3338 for USE_O_NOCTTY, no longer used.
3339 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
3340 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
3341
82e0b968
JB
33422004-08-11 Joel Brobecker <brobecker@gnat.com>
3343
3344 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
3345 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
3346 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
3347
f2acbe1c
MK
33482004-08-11 Mark Kettenis <kettenis@gnu.org>
3349
daa98270
MK
3350 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
3351 instead of FIVE_ARG_PTRACE.
3352
f2acbe1c
MK
3353 * inflow.c (O_NOCTTY): Define to zero if not already defined.
3354 (new_tty): Use O_NOCTTY unconditionally.
3355
cc377e6b
MK
33562004-08-10 Mark Kettenis <kettenis@gnu.org>
3357
3358 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
3359 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
3360 fflush on stdout.
3361
3bcc18fa
JB
33622004-08-10 Joel Brobecker <brobecker@gnat.com>
3363
3364 * xcoff_symfile_finish: Replace last call to xmfree by call
3365 to xfree.
3366
7936743b
AC
33672004-08-10 Andrew Cagney <cagney@gnu.org>
3368
cc503c8a
AC
3369 * main.c (captured_main): Delete call to init_malloc.
3370 * defs.h (init_malloc): Delete declaration.
3371 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
3372 (init_malloc): Delete functions.
3373
2dc74dc1
AC
3374 * defs.h (xmfree): Delete.
3375 * utils.c (xmfree): Delete function.
3376 (xfree): Inline calls to xmfree and mfree.
3377 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
3378 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
3379 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
3380 * somread.c (som_symfile_finish): Ditto.
3381 * objfiles.c (allocate_objfile, free_objfile):
3382 * nlmread.c (nlm_symfile_finish): Ditto.
3383 * hpread.c (hpread_symfile_finish): Ditto.
3384 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
3385 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
3386 * coffread.c (coff_symfile_finish): Ditto.
3387
aa2ee5f6
AC
3388 * defs.h (xmcalloc): Delete declaration.
3389 * utils.c (xmcalloc): Delete.
3390 (xcalloc): Inline calls to xmcalloc and mcalloc.
3391 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
3392 xcalloc and xfree.
3393 * symtab.c (create_demangled_names_hash): Ditto.
3394
0efffb96
AC
3395 * defs.h (xmrealloc): Delete.
3396 * utils.c (xmrealloc): Delete.
3397 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
3398 * symmisc.c (extend_psymbol_list): Use xrealloc.
3399 * source.c (find_source_lines): Ditto.
3400 * hpread.c (hpread_lookup_type): Ditto.
3401 * dbxread.c (add_bincl_to_list): Ditto.
3402
7936743b
AC
3403 * utils.c (xmmalloc): Delete.
3404 (xmalloc): Inline xmmalloc and mmalloc calls.
3405 (msavestring): Use xmalloc.
3406 * defs.h (xmmalloc): Delete declaration.
3407 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
3408 xmmalloc.
3409 * symmisc.c (extend_psymbol_list): Ditto.
3410 * symfile.c (init_psymbol_list): Ditto.
3411 * source.c (find_source_lines): Ditto.
3412 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
3413 * elfread.c (elf_symtab_read): Ditto.
3414 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
3415 * coffread.c (coff_symfile_init): Ditto.
3416
252ab814
DC
34172004-08-10 David Carlton <carlton@bactrian.org>
3418
3419 * MAINTAINERS: Remove David Carlton from c++ testsuite
3420 maintainers.
3421
8f5ba92b
JG
34222004-08-10 Jerome Guitton <guitton@gnat.com>
3423
3424 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
3425 print a line feed before the prompt.
3426
21749010
MK
34272004-08-10 Mark Kettenis <kettenis@gnu.org>
3428
3429 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
3430
1f011ce2
JB
34312004-08-09 Joel Brobecker <brobecker@gnat.com>
3432
3433 General cleanup of the AIX xm include file:
3434 * config/xm-aix4.h (fd_set): Remove undefine.
3435 Remove include of <sys/select.h>.
3436 (HAVE_TERMIO): Remove define.
3437 (USG): Likewise.
3438 (NULL): Remove redefine.
3439 (alloca): Remove #pragma.
3440 (vfork): Remove define.
3441 (termdef): Remove.
3442 (SIGWINCH_HANDLER): Remove.
3443 (SIGWINCH_HANDLER_BODY): Remove.
3444
cf4e7692
MK
34452004-08-09 Mark Kettenis <kettenis@gnu.org>
3446
3447 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
3448 GDB_OSABI_OPENBSD_ELF.
3449
ac5754fa
MK
34502004-08-07 Robert Millan <robertmh@gnu.org>
3451
3452 * bsd-kvm.c: Check for nlist.h before including it.
3453
086ec9eb
MK
34542004-08-09 Mark Kettenis <kettenis@gnu.org>
3455
bbe06c74
MK
3456 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
3457 sigcontext' offset consistency checks for ancient BSD.
3458
3aa7b3b3
MK
3459 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
3460
086ec9eb
MK
3461 * configure.in: Check for <sys/types.h>. Check return and
3462 argument types of ptrace.
3463 * configure, config.in: Regenerate.
3464
09991fa0
JB
34652004-08-09 Jim Blandy <jimb@redhat.com>
3466
3467 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
3468 rs6000_register_sim_regno): Doc fixes.
3469
fed7ba43
JB
34702004-08-08 Joel Brobecker <brobecker@gnat.com>
3471
3472 * mips-tdep.c: Include "floatformat.h".
3473 (n32n64_floatformat_always_valid): New function.
3474 (floatformat_n32n64_long_double_big): New constant.
3475 (mips_gdbarch_init): Set size and format of long double
3476 for N32 and N64 ABIs.
3477 * Makefile.in (mips-tdep.o): Update dependencies.
3478
456fcf94
AC
34792004-08-08 Andrew Cagney <cagney@gnu.org>
3480
2f9b146e
AC
3481 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
3482 print. Improve script's error messages.
3483 * gdbarch.h: Re-generate.
3484
456fcf94
AC
3485 * gdbarch.sh (pformat): New function.
3486 (float_format, double_format, long_double_format): List with bit
3487 members. Use pformat when printing.
3488 * gdbarch.c, gdbarch.h: Re-generate.
3489
69e9e646
NW
34902004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
3491
3492 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
3493 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
3494 (ppcnbsd_supply_pcb): New function.
3495 (_initialize_ppcnbsd_nat): New prototype and function.
3496 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
3497 (LOADLIBES): New variable.
3498 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
3499
5ef2d0aa
AC
35002004-08-08 Andrew Cagney <cagney@gnu.org>
3501
3502 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
3503 (builtin_type_ieee_double, builtin_type_ia64_quad)
3504 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
3505 BE/LE floating-point types.
3506 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
3507 (builtin_type_ieee_double, builtin_type_ia64_quad)
3508 (builtin_type_ia64_spill): Declare.
3509 * doublest.c (_initialize_doublest, floatformat_ieee_single)
3510 (floatformat_ieee_double, floatformat_arm_ext)
3511 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
3512 of LE/BE floatformats.
3513 * doublest.h: (struct floatformat, floatformat_ieee_single)
3514 (floatformat_ieee_double, floatformat_arm_ext)
3515 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
3516
5c7f2947
MK
35172004-08-08 Mark Kettenis <kettenis@gnu.org>
3518
ecac404d
MK
3519 * i386gnu-nat.c (gnu_store_registers): Fix typo.
3520
9b8607ce
MK
3521 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
3522 instead of regcache_raw_supply when storing the registers.
3523
f6052080
MK
3524 * i386gnu-nat.c: Update copyright year.
3525 (gnu_store_registers): Don't use deprecated_registers and
3526 deprecated_registers_valid. Use regcache_valid_p and
3527 regcache_raw_supply instead.
3528
17777823
MK
3529 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
3530 frame_pc_unwind.
3531
5240ceac
MK
3532 * procfs.c (procfs_pid_to_str): Remove redundant and unused
3533 variables. Incapitalized "process".
3534
5c7f2947
MK
3535 * configure.in: Add cursesX to the list of possible curses libs.
3536 Add cursesX.h to the list of possible curses headers.
3537 * configure, config.in: Regenerate.
3538
da7d81e3
NW
35392004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
3540
3541 * configure.in: Test for struct lwp in <sys/lwp.h>.
3542 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
3543 the offset of l_addr in struct lwp.
3544
7f245d65
NW
35452004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
3546
3547 * bsd-kvm.c: Include "gdbcore.h"
3548 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
3549
47b3f456
AC
35502004-08-07 Andrew Cagney <cagney@gnu.org>
3551
70bd8e24
AC
3552 * gdbtypes.c (build_flt, build_complex): New functions.
3553 (gdbtypes_post_init): Use.
3554
9b0dea39
AC
3555 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
3556
5cf7abac
AC
3557 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
3558 through to builtin_type_uint128.
3559
64d2b26d
AC
3560 * c-exp.y: Use builtin_type function to obtain builtin types.
3561
7ad6570d
AC
3562 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
3563 builtin_uint128.
3564 * gdbtypes.c (gdbtypes_post_init): Update.
3565 (build_gdbtypes): Move initialization of builtin_type_int0
3566 through to builtin_type_uint128 from here ...
3567 (_initialize_gdbtypes): ... to here.
3568 * d10v-tdep.c (d10v_register_type): Update.
3569
47b3f456
AC
3570 * doublest.c: Update copyright.
3571 (floatformat_from_length): Call error when floatformat is NULL.
3572 (extract_floating_by_length): Remove NULL fmt check.
3573 (store_floating_by_length): Ditto.
3574
0a8146bf
AC
35752004-08-07 Andrew Cagney <cagney@gnu.org>
3576
3577 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
3578 that the register is valid.
3579
c0ccb908
MK
35802004-08-05 Mark Kettenis <kettenis@chello.nl>
3581
8e6bed05
MK
3582 * i386-linux-tdep.c (i386_linux_sigtramp_start)
3583 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
3584 struct frame_info *. Use safe_frame_unwind_memory instead of
3585 deprecated_read_memory_nobpt.
3586 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
3587 changed signature of i386_linux_sigtramp_start and
3588 i386_linux_rt_sigtramp_start.
3589
24f9f5e3
MK
3590 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
3591 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
3592 instead of deprecated_read_memory_nobpt.
3593 (i386nbsd_sigtramp_p): Adjust for changed signature of
3594 i386nbsd_sigtramp_offset.
3595
c822af0c
MK
3596 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
3597 safe_frame_unwind_memory instead of target_read_memory.
3598
c0ccb908
MK
3599 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
3600 !NO_SYS_FILE.
3601 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
3602 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
3603 (_initialize_kernel_u_addr): Remove prototype and function.
3604 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
3605 !NO_SYS_FILE.
3606 * xcoffread.c: Likewise.
3607
b9e1c0d6
MK
36082004-08-06 Mark Kettenis <kettenis@gnu.org>
3609
3610 * vax-nat.c: New file.
3611 * vaxbsd-nat.c: Tweak comment.
3612 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
3613 vaxnbsd-tdep.c.
3614 (vax-nat.o): New dependency.
3615 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
3616 (vax-*-ultrix2*): Remove.
3617 * config/vax/vax.mh: New file.
3618 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
3619 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
3620 (vax_register_u_addr): New prototype.
3621 (REGISTER_U_ADDR): Define using vax_register_u_addr.
3622 * config/vax/vaxult2.mh: Remove file.
3623 * config/vax/vaxult.mh: Remove file.
3624 * config/vax/vaxbsd.mh: Remove file.
3625 * config/vax/vax.mt (TM_FILE): Remove.
3626 * config/vax/tm-vaxbsd.h: Remove file.
3627
9ad7bec7
JB
36282004-08-06 Joel Brobecker <brobecker@gnat.com>
3629
3630 * aix-thread.c (get_signaled_thread): New function.
3631 (iter_trap): Delete, no longer used.
3632 (iter_tid): New function.
3633 (pd_update): Find the thread that received the SIGTRAP signal
3634 by first locating the kernel thread, and then finding its
3635 associated thread.
3636
bf0d233d
UW
36372004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
3638
3639 * lin-lwp.c (child_wait): Continue inferior after processing
3640 PTRACE_EVENT_CLONE event.
3641
d0f853e1
NN
36422004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
3643
3644 * MAINTAINERS: Add self to Write-After-Approval.
3645
ab14aeb0
JJ
36462004-08-05 Jeff Johnston <jjohnstn@redhat.com>
3647
3648 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
3649 libunwind-xxxx.so" where xxxx is UNW_TARGET.
3650
9c8dbfa9
AC
36512004-08-05 Andrew Cagney <cagney@gnu.org>
3652
c8f3ca46
AC
3653 * config/xm-sysv4.h: Delete file.
3654 * config/mips/xm-irix5.h: Delete file.
3655 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
3656 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
3657 * config/ia64/xm-aix.h: Delete file.
3658 * config/ia64/aix.mh (XM_FILE): Delete.
3659 * config/pa/xm-hppah.h: Delete file.
3660 * config/pa/hpux11w.mh (XM_FILE): Delete.
3661 * config/pa/hpux11.mh (XM_FILE): Delete.
3662 * config/pa/hpux1020.mh (XM_FILE): Delete.
3663 * config/pa/hppahpux.mh (XM_FILE): Delete.
3664
5f7daaff
AC
3665 * config/alpha/xm-alphalinux.h: Delete file.
3666 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
3667 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
3668 * config/alpha/xm-alphaosf.h: Delete file.
3669 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
3670 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
3671 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
3672 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
3673
69babf95
AC
3674 * config/i386/xm-i386v.h: Delete file.
3675 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
3676 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
3677 * config/i386/xm-i386sco.h: Delete file.
3678 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
3679 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
3680 * config/i386/xm-i386v4.h: Delete file.
3681 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
3682 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
3683 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
3684 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
3685
6f009c8a
AC
3686 * config/vax/xm-vax.h: Delete file.
3687 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
3688 * config/vax/xm-vaxult2.h: Delete file.
3689 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
3690 * config/vax/vaxult2.mh (XM_FILE): Delete.
3691 * config/vax/xm-vaxult.h: Delete file.
3692 * config/vax/vaxult.mh (XM_FILE): Delete.
3693 * config/vax/xm-vaxbsd.h: Delete file.
3694 * config/vax/vaxbsd.mh (XM_FILE): Delete.
3695
9c8dbfa9
AC
3696 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
3697 * gdbarch.h, gdbarch.c: Re-generate.
3698 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
3699 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
3700 * frame.h: Delete deprecated_read_fp from comments.
3701 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
3702 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
3703
84367a3e
MK
37042004-08-04 Mark Kettenis <kettenis@gnu.org>
3705
9c8e3411
MK
3706 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
3707 trampoline in OpenBSD 3.5-current.
3708
b87bc0d8
MK
3709 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
3710 SSE registers.
3711
84367a3e
MK
3712 * Makefile.in: Remove embedded page breaks.
3713
a44bddec
JB
37142004-08-04 Jim Blandy <jimb@redhat.com>
3715
7ab3286f
JB
3716 * regcache.c (regcache_raw_read): Assert that, after calling
3717 target_fetch_registers, the register we're reading is cached.
3718
a44bddec
JB
3719 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
3720 a call to 'internal_error', with a more helpful error message.
3721 * rs6000-tdep.c (e500_pseudo_register_read,
870d65d5 3722 e500_pseudo_register_write, rs6000_store_return_value): Same.
a44bddec 3723
35124113
AC
37242004-08-04 Andrew Cagney <cagney@gnu.org>
3725
3726 * Makefile.in: Update dependencies.
3727
9f643768
JB
37282004-08-04 Jim Blandy <jimb@redhat.com>
3729
6ced10dd
JB
3730 Change the layout of the PowerPC E500 raw register cache to allow
3731 the lower 32-bit halves of the GPRS to be their own raw registers,
3732 not pseudoregisters.
3733 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
3734 add ppc_ev0_upper_regnum flag.
3735 * rs6000-tdep.c: #include "reggroups.h".
3736 (spe_register_p): Recognize the ev upper half registers as SPE
3737 registers.
3738 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
3739 registers.
3740 (e500_move_ev_register): New function.
3741 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
3742 vector registers are the pseudo-registers now, formed by splicing
3743 together the gprs and the upper-half registers.
3744 (e500_register_reggroup_p): New function.
3745 (P): Macro deleted.
3746 (P8, A4): New macro.
3747 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
3748 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
3749 macros.
3750 (registers_e500): Rearrange register set so that the raw register
3751 set contains 32-bit GPRs and upper-half registers, and the SPE
3752 vector registers become pseudo-registers.
3753 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
3754 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
3755 register numbers are now the same for the E500 as they are for
3756 other PowerPC variants. Register e500_register_reggroup_p as the
3757 register group function for the E500.
3758 * Makefile.in (rs6000-tdep.o): Update dependencies.
3759
3760 Adapt PPC E500 native support to the new raw regcache layout.
3761 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
3762 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
3763 (fetch_spe_register, store_spe_register): Handle fetching/storing
3764 all the SPE registers at once, if regno == -1. These now take
3765 over the job of fetch_spe_registers and store_spe_registers.
3766 (fetch_spe_registers, store_spe_registers): Deleted.
3767 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
3768 unconditionally; they're always raw. Fetch/store SPE upper half
3769 registers, if present, instead of ev registers.
3770 (fetch_register, store_register): Remove sanity checks: gprs are
3771 never pseudo-registers now, so we never need to even mention any
3772 registers that are ever pseudoregisters.
3773
9f643768
JB
3774 Use a fixed register numbering when communicating with the PowerPC
3775 simulator.
3776 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
3777 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
3778 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
3779 New functions.
3780 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
3781 init_sim_regno_table.
3782 * Makefile.in (gdb_sim_ppc_h): New variable.
3783 (rs6000-tdep.o): Update dependencies.
3784
1e2279c8
AC
37852004-08-02 Andrew Cagney <cagney@gnu.org>
3786
1d94326f
AC
3787 * cris-tdep.c (cris_register_size): Restore function, still used
3788 locally.
3789
331ae7ed
AC
3790 * gdbarch.sh (deprecated_target_read_fp)
3791 (deprecated_frame_locals_address, deprecated_frame_args_address)
3792 (deprecated_frame_chain_valid, deprecated_frame_chain)
3793 (deprecated_init_extra_frame_info, deprecated_pop_frame)
3794 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
3795 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
3796 * gdbarch.h, gdbarch.c: Re-generate.
3797 * regcache.c (deprecated_read_fp): Do not call
3798 DEPRECATED_TARGET_READ_FP_P.
3799 * infcmd.c (default_print_registers_info): Do not call
3800 DEPRECATED_DO_REGISTERS_INFO.
3801 * frame-base.c (default_frame_locals_address): Do not call
3802 DEPRECATED_FRAME_LOCALS_ADDRESS.
3803 (default_frame_args_address): Do not call
3804 DEPRECATED_FRAME_ARGS_ADDRESS.
3805
1e2279c8
AC
3806 * gdbarch.sh (deprecated_register_raw_size)
3807 (deprecated_register_virtual_size:int): Delete.
3808 * gdbarch.h, gdbarch.c: Re-generate.
3809 * cris-tdep.c (cris_register_size): Delete.
3810 (cris_gdbarch_init): Update.
3811 * alpha-tdep.c (alpha_register_raw_size)
3812 (alpha_register_virtual_size): Delete.
3813 (alpha_gdbarch_init): Update.
3814
a90c06b4
AC
3815 * gdbarch.sh (deprecated_register_virtual_type)
3816 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
3817 (deprecated_dummy_write_sp): Delete.
3818 * gdbarch.h, gdbarch.c: Re-generate.
3819
f42accbe
AC
3820 * gdbarch.sh (deprecated_register_bytes): Delete.
3821 * gdbarch.h, gdbarch.c: Re-generate.
3822 * regcache.c (deprecated_register_bytes): New function.
3823 * regcache.h (deprecated_register_bytes): Declare.
3824 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3825 * v850-tdep.c (v850_gdbarch_init): Update.
3826 * sh64-tdep.c (sh64_gdbarch_init): Update.
3827 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
3828 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3829 * mcore-tdep.c (mcore_gdbarch_init): Update.
3830 * cris-tdep.c (cris_gdbarch_init): Update.
3831 * arm-tdep.c (arm_gdbarch_init): Update.
3832 * remote.c (init_remote_state): Update.
3833 * remote-vx.c (vx_prepare_to_store): Update.
3834 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
3835 * irix5-nat.c (fetch_core_registers): Update.
3836 * cris-tdep.c (cris_register_bytes_ok): Update.
3837 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
3838
45c9dd44
AC
3839 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
3840 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
3841 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
3842 (mips_insn16_frame_base_address, mips_insn16_frame_base)
3843 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
3844 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
3845 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
3846 (mips_insn32_frame_base_address, mips_insn32_frame_base)
3847 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
3848 with mips_insn16 and mips_insn32.
3849
3acba339
AC
3850 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
3851 * rs6000-tdep.c (rs6000_push_dummy_call)
3852 (rs6000_extract_return_value): Use register_size.
3853 * xstormy16-tdep.c (xstormy16_get_saved_register)
3854 (xstormy16_extract_return_value): Ditto.
3855 * valops.c (value_assign): Ditto.
3856 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
3857 * v850-tdep.c (v850_extract_return_value): Ditto.
3858 * tracepoint.c (collect_symbol): Ditto.
3859 * target.c (debug_print_register): Ditto.
3860 * stack.c (frame_info): Ditto.
3861 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
3862 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
3863 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
3864 (store_register_using_P): Ditto.
3865 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
3866 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
3867 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
3868 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
3869 * regcache.c (deprecated_read_register_bytes)
3870 (deprecated_write_register_bytes, read_register)
3871 (write_register): Ditto.
3872 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
3873 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
3874 * monitor.c (monitor_supply_register, monitor_fetch_register)
3875 (monitor_store_register): Ditto.
3876 * mn10300-tdep.c (mn10300_pop_frame_regular)
3877 (mn10300_print_register): Ditto.
3878 * mipsv4-nat.c (fill_fpregset): Ditto.
3879 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
3880 (mips64_fill_fpregset): Ditto.
3881 * mi/mi-main.c (register_changed_p, get_register)
3882 (mi_cmd_data_write_register_values): Ditto.
3883 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
3884 * irix5-nat.c (fill_gregset, fetch_core_registers):
3885 * infrun.c (write_inferior_status_register): Ditto.
3886 * infptrace.c (fetch_register, store_register): Ditto.
3887 * infcmd.c (default_print_registers_info): Ditto.
3888 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
3889 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
3890 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
3891 * hpux-thread.c (hpux_thread_fetch_registers)
3892 (hpux_thread_store_registers): Ditto.
3893 * hppah-nat.c (store_inferior_registers, fetch_register):
3894 * findvar.c (value_from_register): Ditto.
3895 * dve3900-rom.c (fetch_bitmapped_register):
3896 * cris-tdep.c (cris_gdbarch_init): Ditto.
3897 * alpha-tdep.h: Ditto.
3898 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
3899
01e1877c
AC
3900 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
3901 DEPRECATED_REGISTER_RAW_SIZE from comments.
3902 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
3903 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
3904 DEPRECATED_REGISTER_RAW_SIZE.
3905 * findvar.c (value_of_register): Simplify by assuming that the
3906 registers raw and virtual sizes are identical.
3907 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
3908 comment.
3909 * arch-utils.c (generic_register_size): Simplify by assuming
3910 register_type.
3911
73f458fb
AC
3912 * regcache.c (legacy_read_register_gen, real_register)
3913 (legacy_write_register_gen): Delete, not used.
3914
336a3131
AC
3915 * regcache.c (struct regcache_descr): Delete legacy_p.
3916 (init_legacy_regcache_descr): Delete function.
3917 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
3918 Do not use deprecated register functions.
3919 (regcache_raw_read, deprecated_write_register_gen):
3920 (deprecated_read_register_gen, regcache_raw_write): Delete code
3921 predicated on legacy_p.
3922 (register_size): Delete check against register raw size.
3923
c1d546cd
AC
3924 * cris-tdep.c (cris_register_type): Replace
3925 cris_register_virtual_type.
3926 (cris_gdbarch_init): Update, set register_type.
3927
48c2c0a6
AC
3928 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
3929 * gdbarch.h, gdbarch.c: Re-generate.
3930 * arm-tdep.c (arm_frameless_function_invocation): Delete.
3931 (arm_gdbarch_init) Do not set frameless function invocation.
3932 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
3933 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
3934 * frv-tdep.c (frv_frameless_function_invocation): Delete.
3935 (frv_gdbarch_init): Do not set frameless function invocation.
3936 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
3937 * sh-tdep.c (sh_gdbarch_init): Ditto.
3938 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
3939 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3940 * avr-tdep.c (avr_gdbarch_init): Ditto.
3941
474093a6
AC
3942 * blockframe.c (legacy_frame_chain_valid): Delete function.
3943
3c109c8b
AC
3944 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
3945 and pc. Update comments.
3946 (pc_in_dummy_frame): Delete function.
3947 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
3948 use the "id".
3949 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
3950 call_hi, top and pc, use the id.
3951 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
3952
96860204
AC
3953 * dummy-frame.c: Include "gdb_string.h".
3954 (generic_save_call_dummy_addr, generic_push_dummy_frame)
3955 (generic_save_dummy_frame_tos): Delete.
3956 (dummy_frame_push): New function, replaces above.
3957 * dummy-frame.h: Update copyright.
3958 (dummy_frame_push): Declare.
3959 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
3960 (generic_save_call_dummy_addr): Delete declarations.
3961 * infcall.c: Include "dummy-frame.h".
3962 (call_function_by_hand): Add locals caller_regcache,
3963 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
3964 with call to frame_save_as_regcache plus cleanup. Delete calls to
3965 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
3966 Move clear_proceed_status to just before the resume, add call to
3967 dummy_frame_push (discard cleanup).
3968 * Makefile.in (infcall.o): Add $(dummy_frame_h).
3969 (dummy-frame.o): Add $(gdb_string_h).
3970
d67ec5db
AC
39712004-08-01 Andrew Cagney <cagney@gnu.org>
3972
3973 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
3974 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
3975 * dummy-frame.c (find_dummy_frame): Delete.
3976 (struct dummy_frame_cache, dummy_frame_sniffer)
3977 (dummy_frame_prev_register, dummy_frame_this_id)
3978 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
3979 frame unwinder using a dummy_frame_cache.
3980
a81dcb05
AC
39812004-08-01 Andrew Cagney <cagney@gnu.org>
3982
3983 * frame.h (frame_save_as_regcache): Declare.
3984 * frame.c (frame_save_as_regcache): New function.
3985 (do_frame_read_register): Replace do_frame_unwind_register.
3986 (frame_pop): Use frame_save_as_regcache.
3987 * dummy-frame.c (generic_push_dummy_frame): Use
3988 frame_save_as_regcache.
3989
aa495d11
JB
39902004-08-01 Joel Brobecker <brobecker@gnat.com>
3991
3992 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
3993 file as included until we record the first line in the linetable.
3994
ff65ac78
AC
39952004-08-01 Andrew Cagney <cagney@gnu.org>
3996
3997 * frame.h (deprecated_pop_dummy_frame)
3998 (deprecated_read_register_dummy)
3999 (deprecated_generic_find_dummy_frame): Delete.
4000 * dummy-frame.c (deprecated_generic_find_dummy_frame)
4001 (deprecated_read_register_dummy)
4002 (deprecated_find_dummy_frame_regcache)
4003 (discard_innermost_dummy)
4004 (deprecated_pop_dummy_frame): Delete.
4005 (dummy_frame_this_id): Simplify.
4006 (struct dummy_frame): Delete "fp" and "sp".
4007 (find_dummy_frame): Simplify.
4008 (generic_push_dummy_frame): Do not set "fp" or "sp".
4009 (fprint_dummy_frames): Do not print "fp" and "sp"
4010
37bdc87e
MK
40112004-08-01 Mark Kettenis <kettenis@gnu.org>
4012
4013 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
4014 (struct i386_insn): New structure.
4015 (i386_match_insn): New function.
4016 (i386_frame_setup_skip_insns): New variable.
4017 (i386_analyze_frame_setup): Change to use i386_match_insn and the
4018 array i386_frame_setup_insns of instructions that should be
4019 skipped inside the frame setup sequence.
4020
8241eaa6
AC
40212004-08-01 Andrew Cagney <cagney@gnu.org>
4022
5bc602c7
AC
4023 * frame.h (deprecated_frame_xmalloc_with_cleanup)
4024 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
4025 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
4026 * stack.c (frame_info): Delete references to
4027 DEPRECATED_FRAME_INIT_SAVED_REGS and
4028 deprecated_get_frame_saved_regs.
4029 * frame.c (struct frame_info): Delete saved_regs and extra_info.
4030 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
4031 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
4032 (frame_unwind_register_signed)
4033 (frame_unwind_register_unsigned)
4034 (frame_unwind_unsigned_register): Use register_size.
4035 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
4036 (deprecated_frame_xmalloc_with_cleanup)
4037 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
4038 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
4039
03d363a1
AC
4040 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
4041 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
4042 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
4043 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
4044
8241eaa6
AC
4045 * infcall.c (call_function_by_hand): Do not use
4046 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
4047 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
4048 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
4049 DEPRECATED_STACK_ALIGN.
4050
f00df8b7
AC
40512004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
4052
4053 Committed by Andrew Cagney.
4054 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
4055
eec63939
AC
40562004-08-01 Andrew Cagney <cagney@gnu.org>
4057
4058 * mips-tdep.c (mips16_frame_cache)
4059 (mips16_frame_this_id, mips16_frame_prev_register)
4060 (mips16_frame_unwind, mips16_frame_sniffer)
4061 (mips16_frame_base_address, mips16_frame_base)
4062 (mips16_frame_base_sniffer, mips32_frame_cache)
4063 (mips32_frame_this_id, mips32_frame_prev_register)
4064 (mips32_frame_unwind, mips32_frame_sniffer)
4065 (mips32_frame_base_address, mips32_frame_base)
4066 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
4067 separate heuristic mips16 and mips32 unwinders.
4068 (mips_stub_frame_cache, mips_stub_frame_this_id)
4069 (mips_stub_frame_prev_register)
4070 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
4071 (mips_stub_frame_base_address, mips_stub_frame_base)
4072 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
4073 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
4074 match true mdebug frames.
4075 (non_heuristic_proc_desc): Add forward declaration.
4076
e66299b3
AC
40772004-08-01 Andrew Cagney <cagney@gnu.org>
4078
83cbbf3e
AC
4079 * config/mips/tm-irix6.h: Delete file.
4080 * config/mips/tm-irix5.h: Delete file.
4081 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
4082 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
4083
22d41b37
AC
4084 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
4085 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
4086 * config/nm-gnu.h (NO_CORE_OPS): Delete.
4087 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
4088 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
4089 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
4090 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
4091 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
4092 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
4093 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
4094 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
4095 (TARGET_SIGNAL_RAW_VALUES): Delete.
4096 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
4097 Delete.
4098 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
4099 (TARGET_HW_WATCH_LIMIT): Delete.
4100 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
4101 * minimon.h: Delete file.
4102
e66299b3
AC
4103 * trad-frame.c (trad_frame_get_this_base)
4104 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
4105 functions.
4106 * trad-frame.h (trad_frame_set_this_base)
4107 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
4108
1f67027d
AC
41092004-07-31 Andrew Cagney <cagney@gnu.org>
4110
4111 * trad-frame.c (trad_frame_get_prev_register): Rename
4112 trad_frame_get_prev_register.
4113 * vax-tdep.c (vax_frame_prev_register): Update.
4114 * trad-frame.h: Update.
4115 * trad-frame.c (trad_frame_get_register): Update.
4116 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
4117 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
4118 Update.
4119 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
4120 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
4121 Update.
4122 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
4123 Update.
4124 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
4125 Update.
4126 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
4127 Update.
4128 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
4129 Update.
4130 * s390-tdep.c (s390_frame_prev_register)
4131 (s390_stub_frame_prev_register)
4132 (s390_sigtramp_frame_prev_register): Update.
4133 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
4134 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
4135 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
4136 * m88k-tdep.c (m88k_frame_prev_register)
4137 * m68hc11-tdep.c (m68hc11_frame_prev_register)
4138 * m32r-tdep.c (m32r_frame_prev_register): Update.
4139 * hppa-tdep.c (hppa_frame_prev_register_helper)
4140 * frv-tdep.c (frv_frame_prev_register): Update.
4141 * d10v-tdep.c (d10v_frame_prev_register): Update.
4142 * cris-tdep.c (cris_frame_prev_register): Update.
4143 * avr-tdep.c (avr_frame_prev_register): Update.
4144 * arm-tdep.c (arm_prologue_prev_register)
4145 (arm_sigtramp_prev_register): Update.
4146
c1bf6f65
AC
41472004-07-31 Andrew Cagney <cagney@gnu.org>
4148
4149 * frame.h (legacy_saved_regs_unwind)
4150 (legacy_frame_chain_valid, legacy_frame_p)
4151 (enum frame_type): Delete UNKNOWN_FRAME.
01fbbd97
AC
4152 * dummy-frame.c (dummy_frame_this_id): Simplify.
4153 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
c1bf6f65
AC
4154 * frame.c (struct frame_info): Delete the field "type".
4155 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
4156 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
4157 (legacy_saved_regs_unwind, legacy_frame_p)
4158 (frame_type_from_pc): Delete.
4159 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
4160 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
4161
dc856692
MK
41622004-07-31 Mark Kettenis <kettenis@gnu.org>
4163
5a5effe1
MK
4164 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
4165 indentation.
4166
d4fd50a6
MK
4167 * mips-nat.c: Remove file.
4168 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
4169 (mips-nat.o): Remove dependency.
4170
2689df5a
MK
4171 * infptrace.c: Update copyright year.
4172 (fetch_register): Pass NULL in regcache_raw_supply call instead of
4173 explicitly setting the buffer to all zeroes.
4174
dc856692
MK
4175 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
4176 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
4177
763910e0
AC
41782004-07-30 Andrew Cagney <cagney@gnu.org>
4179
4180 * GDB 6.2 released from gdb_6_2-branch.
4181
0b66e38c
EZ
41822004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
4183
4184 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
4185
4186 * exec.c (exec_file_attach):
4187 * nto-tdep.c (nto_find_and_open_solib):
4188 * pa64solib.c (pa64_solib_sizeof_symbol_table):
4189 * solib.c (solib_open):
4190 * somsolib.c (som_solib_sizeof_symbol_table):
4191 * source.c (is_regular_file, openp, open_source_file):
4192 * symfile.c (symfile_bfd_open):
4193 * wince.c (upload_to_device): Differentiate between the search for
4194 binary and source files.
4195
be7d7357
AC
41962004-07-30 Andrew Cagney <cagney@gnu.org>
4197
4198 * complaints.c (_initialize_complaints): Pass NULL to
4199 add_setshow_zinteger_cmd for help_doc.
4200 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
4201
ddc9cd0f
AC
42022004-07-30 Andrew Cagney <cagney@gnu.org>
4203
4204 Fix PR i18n/761.
4205 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
4206 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
4207 $(PACKAGE).pot and update-po.
4208 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
4209 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
4210 (update-po): New rules.
4211 (localedir): Define using autoconf.
4212 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
4213 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
4214 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
4215 * configure.in: Generate CATALOGS and LINGUAS from contents of
4216 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
4217 * configure: Re-generate.
4218 * po/gdbtext: New file
4219
e92f3704
JG
42202004-07-30 Jerome Guitton <guitton@gnat.com>
4221
4222 * MAINTAINERS: Reorder Write After Approval list in alphabetical
4223 order.
4224
b0f35d58
DL
42252004-07-30 David Lecomber <dsl@sources.redhat.com>
4226
4227 * dwarf2read.c (read_file_scope): Set producer if attribute
4228 present.
4229 (struct dwarf2_cu): Added new member producer.
4230
ce7d4522
JG
42312004-07-30 Jerome Guitton <guitton@gnat.com>
4232
4233 * inflow.c (kill_command): release file handles in BFD.
4234 * exec.c (exec_file_attach): Ditto.
4235 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
4236
05ee07c7
AC
42372004-07-29 Andrew Cagney <cagney@gnu.org>
4238
4239 * PROBLEMS (mips-irix): Note that it is broken.
4240
62eceb47
AC
42412004-07-29 Andrew Cagney <cagney@gnu.org>
4242
e57b8d41
AC
4243 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
4244 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
4245
d334389b
AC
4246 * config/xm-nbsd.h: Delete file.
4247 * config/arm/xm-nbsd.h: Delete file.
4248 * config/i386/xm-nbsd.h: Delete file.
4249 * config/ns32k/xm-nbsd.h: Delete file.
4250 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
4251 * config/i386/nbsdelf.mh (XM_FILE): Delete.
4252 * config/i386/nbsdaout.mh (XM_FILE): Delete.
4253 * config/arm/nbsdelf.mh (XM_FILE): Delete.
4254 * config/arm/nbsdaout.mh (XM_FILE): Delete.
4255
e910f676
AC
4256 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
4257 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
4258 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
4259 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
4260 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
4261 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
4262
6fa856b9
AC
4263 * config/powerpc/xm-linux.h: Delete empty file.
4264 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
4265 * config/powerpc/linux.mh (XM_FILE): Delete.
4266 * config/m68k/xm-linux.h: Delete empty file.
4267 * config/m68k/linux.mh (XM_FILE): Delete.
4268 * config/ia64/xm-linux.h: Delete empty file.
4269 * config/ia64/linux.mh (XM_FILE): Delete.
4270 * config/arm/xm-linux.h: Delete empty file.
4271 * config/arm/linux.mh (XM_FILE): Delete.
4272
471ae5ae
AC
4273 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4274 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
4275 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4276 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
4277 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4278 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
4279 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4280 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
4281
62eceb47
AC
4282 * config/m68k/xm-m68k.h: Delete file.
4283 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
4284 copyright.
4285 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
4286 * config/pa/xm-linux.h: Delete empty file.
4287 * config/pa/linux.mh (XM_FILE): Delete.
4288 * config/i386/xm-i386.h: Delete empty file.
4289 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
4290 "i386/xm-i386.h".
4291 * config/i386/obsdaout.mh (XM_FILE): Delete.
4292 * config/i386/obsd64.mh (XM_FILE): Delete.
4293 * config/i386/fbsd64.mh (XM_FILE): Delete.
4294 * config/i386/nto.mh (XM_FILE): Delete.
4295 * config/i386/obsd.mh (XM_FILE): Delete.
4296 * config/i386/linux64.mh (XM_FILE): Delete.
4297 * config/i386/linux.mh (XM_FILE): Delete.
4298 * config/i386/i386sol2.mh (XM_FILE): Delete.
4299 * config/i386/i386gnu.mh (XM_FILE): Delete.
4300 * config/i386/fbsd.mh (XM_FILE): Delete.
4301 * config/i386/nbsd64.mh (XM_FILE): Delete.
4302
c35f4ffc
AC
43032004-07-29 Andrew Cagney <cagney@gnu.org>
4304
4305 * config/pa/xm-linux.h: Do not include "floatformat.h".
4306 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4307 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
4308 * config/i386/xm-i386.h: Do not include "floatformat.h".
4309 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4310 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
4311 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4312 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
4313 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
4314 GDB_HOST_LONG_DOUBLE_FORMAT instead.
4315 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
4316 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
4317 * configure, config.in: Regenerate.
4318 * configure.host (gdb_host_float_format, gdb_host_double_format)
4319 (gdb_host_long_double_format): Set according to the host.
4320
624a44a3
AC
43212004-07-29 Andrew Cagney <cagney@gnu.org>
4322
4323 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
4324
0dea2468
AC
43252004-07-28 Andrew Cagney <cagney@gnu.org>
4326
4327 * PROBLEMS: Mention threads/1650.
4328 * NEWS: Mention the NPTL fix.
4329
b3f42336
AC
43302004-07-28 Andrew Cagney <cagney@gnu.org>
4331
4332 * cli/cli-decode.c (add_setshow_cmd): Delete function.
4333 (add_setshow_cmd_full): Make static.
4334 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
4335 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
4336 * cli/cli-decode.c (add_setshow_filename_cmd)
4337 (add_setshow_string_cmd): New functions.
4338 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
4339 * mips-tdep.c (_initialize_mips_tdep): Update.
4340 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
4341 * cli/cli-logging.c (_initialize_cli_logging): Update.
4342 * complaints.c (_initialize_complaints): Update.
4343 * remote.c (_initialize_remote): Update.
4344
3b64bf98
AC
43452004-07-28 Andrew Cagney <cagney@gnu.org>
4346
4347 * cli/cli-decode.c (add_setshow_zinteger_cmd)
4348 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
4349 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
4350 print parameters. Make string parameters constant.
4351 * command.h: Update. Update copyright.
4352 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
4353 * observer.c (_initialize_observer): Ditto.
4354 * frame.c (_initialize_frame): Ditto.
4355 * complaints.c (_initialize_complaints): Ditto.
4356 * maint.c (_initialize_maint_cmds): Ditto.
4357 * target.c (initialize_targets): Ditto.
4358 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
4359 * infcall.c (_initialize_infcall): Ditto.
4360 * arm-tdep.c (_initialize_arm_tdep): Ditto.
4361 * m32r-rom.c (_initialize_m32r_rom): Ditto.
4362 * remote-rdi.c (_initialize_remote_rdi): Ditto.
4363 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
4364 * mips-tdep.c (_initialize_mips_tdep): Ditto.
4365
e9667a65
AC
43662004-07-28 Andrew Cagney <cagney@gnu.org>
4367
54a5b07d
AC
4368 * gdbtypes.c (lookup_primitive_typename): Delete function.
4369 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
4370 * ada-lex.l: Use language_lookup_primitive_type_by_name.
4371 * gdbtypes.c (lookup_typename): Ditto.
4372 * f-exp.y (yylex): Ditto.
4373 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
4374
e9667a65
AC
4375 * scm-lang.c (c_builtin_types): Delete extern declaration.
4376 (scm_language_defn): Replace
4377 string_char_type and primitive_type_vector with
4378 la_language_arch_info.
4379 * jv-lang.c (java_language_defn): Replace
4380 string_char_type and primitive_type_vector with
4381 la_language_arch_info.
4382 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
4383 c_builtin_types in comment.
4384 * c-lang.h (struct language_arch_info): Declare opaque.
4385 (c_language_arch_info): Declare.
4386 (c_builtin_types): Delete declaration.
4387 * c-lang.c (c_language_arch_info): Set string_char_type to
4388 builtin_char, not builtin_true_char. Make global.
4389 (c_builtin_types): Delete array.
4390 (asm_language_defn, minimal_language_defn): Replace
4391 string_char_type and primitive_type_vector with
4392 la_language_arch_info.
4393
685419e2
AC
43942004-07-28 Andrew Cagney <cagney@gnu.org>
4395
4396 * gdbtypes.h (struct builtin_type): Rename true_char to
4397 builtin_true_char.
4398 * gdbtypes.c (gdbtypes_post_init): Update.
4399 * c-lang.c (arch_info): New function.
4400 (enum c_primitive_types): New enum.
4401 (c_language_defn): Instead of string_char_type and
4402 primitive_type_vector set la_language_arch_info.
4403
5a44ea29
AC
44042004-07-28 Andrew Cagney <cagney@gnu.org>
4405
4406 * language.h (struct language_arch_info): Fix typo
4407 s/primative/primitive/.
4408 * gdbtypes.c (lookup_primitive_typename): Ditto.
4409 * language.c (language_lookup_primitive_type_by_name)
4410 (unknown_language_arch_info): Ditto.
4411
f290d38e
AC
44122004-07-27 Andrew Cagney <cagney@gnu.org>
4413
4414 * defs.h (enum language): Add nr_languages.
4415 * language.h (struct language_arch_info): Define.
4416 (struct language_defn): Add la_language_arch_info.
4417 (language_lookup_primative_type_by_name): Declare.
4418 (language_string_char_type): Declare.
4419 * language.c (_initialize_language, language_gdbarch_post_init)
4420 (struct language_gdbarch, language_gdbarch_data): Implement
4421 per-architecture language information.
4422 (unknown_language_arch_info, language_string_char_type)
4423 (language_lookup_primative_type_by_name): New functions.
4424 (unknown_language_defn, auto_language_defn)
4425 (local_language_defn): Set la_language_arch_info to
4426 unknown_language_arch_info.
4427 (unknown_builtin_types): Delete.
4428 * gdbtypes.c (lookup_primitive_typename): Use
4429 language_lookup_primative_type_by_name.
4430 (create_string_type): Use language_string_char_type.
4431 * values.c (value_from_string): Use language_string_char_type.
4432 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
4433 * p-lang.c (pascal_language_defn): Ditto.
4434 * m2-lang.c (m2_language_defn): Ditto.
4435 * jv-lang.c (java_language_defn): Ditto.
4436 * objc-lang.c (objc_language_defn): Ditto.
4437 * f-lang.c (f_language_defn): Ditto.
4438 * c-lang.c (c_language_defn, cplus_language_defn)
4439 (asm_language_defn, minimal_language_defn): Ditto.
4440
000177f0
AC
44412004-07-27 Andrew Cagney <cagney@gnu.org>
4442
4443 * gdbtypes.h (struct builtin_type): Declare.
4444 (builtin_type): Declare.
4445 * d10v-tdep.c (d10v_register_type): Use builtin_type.
4446 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
4447 (gdbtypes_post_init): New function.
4448 (builtin_type): New function.
4449
e22f895c
KI
44502004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
4451
4452 * remote-m32r-sdi.c: Fix breakpoint bug.
4453 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
4454 recv_char_data, recv_long_data): New functions to replace communication
4455 sequences.
4456
536517dd
MC
44572004-07-26 Michael Chastain <mec.gnu@mindspring.com>
4458
4459 Document PR threads/1650.
4460 * PROBLEMS (Threads): Document problem with many threads
4461
a0a44d18
AC
44622004-07-26 Andrew Cagney <cagney@gnu.org>
4463
4464 * gdb-mi.el: Move from here ...
4465 * mi/gdb-mi.el: ... to here.
4466
7ac4ac06
AC
44672004-07-26 Andrew Cagney <cagney@gnu.org>
4468
4469 Problem reported by Ashley Pittman <ashley@quadrics.com>.
4470 * main.c (captured_main): When in batch mode always detach.
4471
a1b461bf
AC
44722004-07-26 Andrew Cagney <cagney@gnu.org>
4473
4474 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
4475 and h8300 as broken.
4476 * NEWS: END-OF-LIFE frame compatibility module.
4477 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
4478 specific comments.
4479
cb1a6d5f
AC
44802004-07-26 Andrew Cagney <cagney@gnu.org>
4481
4482 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
4483 * xcoffsolib.c (_initialize_xcoffsolib): Update.
4484 * wince.c (_initialize_wince): Update.
4485 * win32-nat.c (_initialize_win32_nat): Update.
4486 * varobj.c (_initialize_varobj): Update.
4487 * valops.c (_initialize_valops): Update.
4488 * utils.c (initialize_utils, initialize_utils): Update.
4489 * tui/tui-win.c (_initialize_tui_win): Update.
4490 * top.c (init_main): Update.
4491 * symfile.c (_initialize_symfile): Update.
4492 * source.c (_initialize_source): Update.
4493 * somsolib.c (_initialize_som_solib): Update.
4494 * solib.c (_initialize_solib): Update.
4495 * solib-frv.c (_initialize_frv_solib): Update.
4496 * serial.c (_initialize_serial): Update.
4497 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
4498 * remote.c (_initialize_remote, _initialize_remote): Update.
4499 * remote-vx.c (_initialize_vx): Update.
4500 * remote-utils.c (_initialize_sr_support): Update.
4501 * remote-sds.c (_initialize_remote_sds): Update.
4502 * remote-mips.c (_initialize_remote_mips): Update.
4503 * remote-e7000.c (_initialize_remote_e7000): Update.
4504 * proc-api.c (_initialize_proc_api): Update.
4505 * printcmd.c: Update.
4506 * parse.c (_initialize_parse): Update.
4507 * pa64solib.c (_initialize_pa64_solib): Update.
4508 * p-valprint.c (_initialize_pascal_valprint): Update.
4509 * monitor.c (_initialize_remote_monitors): Update.
4510 * mips-tdep.c (_initialize_mips_tdep): Update.
4511 * mcore-tdep.c (_initialize_mcore_tdep): Update.
4512 * maint.c (_initialize_maint_cmds): Update.
4513 * lin-lwp.c (_initialize_lin_lwp): Update.
4514 * language.c (_initialize_language): Update.
4515 * kod.c (_initialize_kod): Update.
4516 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
4517 * i386-tdep.c (_initialize_i386_tdep): Update.
4518 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
4519 * gdbarch.sh: Update.
4520 * gdbarch.c: Re-generate.
4521 * gdb-events.sh: Update.
4522 * gdb-events.c: Re-generate.
4523 * frame.c (_initialize_frame): Update.
4524 * exec.c: Update.
4525 * demangle.c (_initialize_demangler): Update.
4526 * dcache.c (_initialize_dcache): Update.
4527 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
4528 * cp-valprint.c (_initialize_cp_valprint): Update.
4529 * corefile.c (_initialize_core): Update.
4530 * command.h: Update.
4531 * cli/cli-decode.h: Update.
4532 * cli/cli-cmds.c (init_cli_cmds): Update.
4533 * charset.c (_initialize_charset): Update.
4534 * breakpoint.c (_initialize_breakpoint): Update.
4535 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
4536 * alpha-tdep.c (_initialize_alpha_tdep): Update.
4537 * aix-thread.c (_initialize_aix_thread): Update.
4538
b4632131
MK
45392004-07-24 Mark Kettenis <kettenis@gnu.org>
4540
4541 Partial fix for PR backtrace/1718.
4542 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
4543 that GCC migrates into the prolugue. Don't handle any
4544 instructions that clobber %ebx.
4545
822c9732
AC
45462004-07-23 Andrew Cagney <cagney@gnu.org>
4547
4548 Use regcache_raw_collect instead of regcache_collect.
4549 * regcache.h (regcache_collect): Delete declaration.
4550 * regcache.c (regcache_colect): Delete function.
4551 * win32-nat.c (do_child_store_inferior_registers): Update.
4552 * sol-thread.c (sol_thread_store_registers): Update.
4553 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
4554 * rs6000-nat.c (store_register): Update.
4555 * remote.c (store_register_using_P, remote_store_registers): Update.
4556 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
4557 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
4558 (fill_vrregset, store_spe_registers, fill_gregset)
4559 (fill_gregset): Update.
4560 * nto-procfs.c (procfs_store_registers): Update.
4561 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
4562 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
4563 * m68klinux-nat.c (store_register, fill_gregset): Update.
4564 * m68k-tdep.c (fill_gregset): Update.
4565 * infptrace.c (store_register): Update.
4566 * i386-nto-tdep.c (i386nto_regset_fill): Update.
4567 * i386-linux-nat.c (store_register, fill_gregset): Update.
4568 * hppa-linux-nat.c (fill_gregset): Update.
4569 * go32-nat.c (store_register): Update.
4570 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
4571 (store_fp_regs): Update.
4572 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
4573 (store_nwfpe_extended, store_fpregister, store_fpregs)
4574 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
4575 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
4576 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
4577 (store_regs_user_thread, store_regs_kernel_thread): Update.
4578
32b05c07
MK
45792004-07-24 Mark Kettenis <kettenis@gnu.org>
4580
4581 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
4582 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
4583 encoding.
4584 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
4585 member of `struct comp_unit'.
4586
8567c30f
AC
45872004-07-23 Andrew Cagney <cagney@gnu.org>
4588
4589 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
4590 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
4591
f6da8dd8
MH
45922004-07-23 Martin Hunt <hunt@redhat.com>
4593 Kevin Buettner <kevinb@redhat.com>
4594
4595 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
4596 alignment was being added to the offset instead of multiplied.
4597
bd921882
MK
45982004-07-23 Mark Kettenis <kettenis@gnu.org>
4599
24f033e8
MK
4600 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
4601 changed signal trampoline in OpenBSD 3.5-current.
4602
90f3cecd
MK
4603 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
4604 <machine/pcb.h> and "bsd-kvm.h".
4605 (sparc64nbsd_supply_pcb): New function.
4606 (_initialize_sparc64nbsd_nat): Renamed from
4607 _initialize_sparcnbsd_nat. Enable libkvm interface.
4608 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
4609 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
4610 (LOADLIBES): New variable.
4611
a4954a62
MK
4612 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
4613
bd921882
MK
4614 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
4615
23a6d369
AC
46162004-07-21 Andrew Cagney <cagney@gnu.org>
4617
4618 Use regcache_raw_supply instead of supply_register.
4619 * regcache.h (supply_register): Delete declaration.
4620 * regcache.c (supply_register): Delete function.
4621 * wince.c (do_child_fetch_inferior_registers): Update.
4622 * win32-nat.c (do_child_fetch_inferior_registers)
4623 (fetch_elf_core_registers): Update.
4624 * v850ice.c (v850ice_fetch_registers): Update.
4625 * thread-db.c (thread_db_store_registers): Update.
4626 * sol-thread.c (sol_thread_store_registers): Update.
4627 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
4628 * rs6000-nat.c (fetch_register): Update.
4629 * rom68k-rom.c (rom68k_supply_one_register): Update.
4630 * remote.c (remote_wait, remote_async_wait): Update.
4631 * remote-st.c (get_hex_regs): Update.
4632 * remote-sim.c (gdbsim_fetch_register): Update.
4633 * remote-sds.c (sds_fetch_registers): Update.
4634 * remote-rdp.c (remote_rdp_fetch_register): Update.
4635 * remote-rdi.c (arm_rdi_fetch_registers): Update.
4636 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
4637 * remote-m32r-sdi.c (m32r_fetch_register): Update.
4638 * remote-hms.c (init_hms_cmds): Update.
4639 * remote-est.c (init_est_cmds): Update.
4640 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
4641 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
4642 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
4643 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
4644 (fetch_register, supply_vrregset, supply_vrregset)
4645 (fetch_spe_registers): Update.
4646 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
4647 * monitor.c (monitor_supply_register): Update.
4648 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
4649 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
4650 (mipsnbsd_supply_fpreg): Update.
4651 * mips-nat.c (fetch_inferior_registers)
4652 (fetch_core_registers): Update.
4653 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
4654 (supply_fpregset, mips64_supply_gregset)
4655 (mips64_supply_fpregset): Update.
4656 * m68klinux-nat.c (fetch_register, supply_gregset)
4657 (supply_fpregset): Update.
4658 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
4659 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
4660 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
4661 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
4662 * infptrace.c (fetch_register): Update.
4663 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
4664 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
4665 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
4666 (gnu_fetch_registers, gnu_store_registers): Update.
4667 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
4668 * i386-linux-nat.c (fetch_register, supply_gregset)
4669 (dummy_sse_values): Update.
4670 * hpux-thread.c (hpux_thread_fetch_registers): Update.
4671 * hppah-nat.c (fetch_register): Update.
4672 * hppa-linux-nat.c (fetch_register, supply_gregset)
4673 (supply_fpregset): Update.
4674 * go32-nat.c (fetch_register): Update.
4675 * dve3900-rom.c (fetch_bitmapped_register)
4676 (_initialize_r3900_rom): Update.
4677 * cris-tdep.c (supply_gregset): Update.
4678 * abug-rom.c (init_abug_cmds): Update.
4679 * core-aout.c (fetch_core_registers): Update.
4680 * armnbsd-nat.c (supply_gregset, supply_fparegset)
4681 (fetch_register, fetch_fp_register): Update.
4682 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
4683 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
4684 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
4685 * alphanbsd-tdep.c (fetch_core_registers): Update.
4686 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
4687 * alpha-nat.c (fetch_osf_core_registers)
4688 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
4689 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
4690 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
4691
73cc75f3
AC
46922004-07-21 Andrew Cagney <cagney@gnu.org>
4693
4694 * PROBLEMS: Mention breakpoints/1702.
4695 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
4696 that is known to work.
4697
a53c66de
AC
46982004-07-21 Andrew Cagney <cagney@gnu.org>
4699
4700 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
4701 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
4702 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
4703 (handle_inferior_event): Wrap call to deprecated
4704 IGNORE_HELPER_CALL in #ifdef.
4705 * config/mips/tm-nbsd.h: Update.
4706
708ff411
JB
47072004-07-20 Jim Blandy <jimb@redhat.com>
4708
412b3060
JB
4709 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
4710 bfd_mach_ppc has no segment registers.
4711
13ac140c
JB
4712 Include PowerPC SPR numbers for special-purpose registers.
4713 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
4714 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
4715 new member in initializer.
4716 (S, S4, SN4, S64): New macros for defining special-purpose
4717 registers.
4718 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
4719 registers_403, registers_403GC, registers_505, registers_860,
4720 registers_601, registers_602, registers_603, registers_604,
4721 registers_750, registers_e500): Use them.
4722
708ff411
JB
4723 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
4724 replace references with expression used to initialize variable.
4725
1f602b35
AC
47262004-07-20 Andrew Cagney <cagney@gnu.org>
4727
4728 * breakpoint.c (deprecated_read_memory_nobpt): Rename
4729 read_memory_nobpt.
4730 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
4731 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
4732 (s390_sigtramp_frame_sniffer): Update.
4733 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
4734 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
4735 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
4736 (mips32_fetch_instruction): Update.
4737 * mcore-tdep.c (get_insn): Update.
4738 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
4739 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
4740 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
4741 * i386-linux-tdep.c (i386_linux_sigtramp_start)
4742 (i386_linux_rt_sigtramp_start): Update.
4743 * i386-linux-nat.c (child_resume): Update.
4744 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
4745 * hppa-linux-tdep.c (insns_match_pattern): Update.
4746 * gdbcore.h: Update.
4747 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
4748 * frame.c (safe_frame_unwind_memory): Update.
4749 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
4750 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
4751 * alpha-tdep.c (alpha_read_insn): Update.
4752
2cd8546d
AC
47532004-07-20 Andrew Cagney <cagney@gnu.org>
4754
4755 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
4756 containing both bytes and mask. Add "frame_type".
4757 * tramp-frame.c (tramp_frame_start): Update.
4758 (tramp_frame_prepend_unwinder): Update.
4759 * mips-linux-tdep.c (mips_linux_o32_sigframe)
4760 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
4761 (mips_linux_n64_rt_sigframe): Update. Make "static const".
4762 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
4763
f928dd62
EZ
47642004-07-19 Eli Zaretskii <eliz@gnu.org>
4765
4766 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
4767 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
4768 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
4769 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
4770
d5c560f7
AC
47712004-07-17 Andrew Cagney <cagney@gnu.org>
4772
860660cb
AC
4773 * NEWS, PROBLEMS: Update for 6.2.
4774
8c266f54
AC
4775 * README: Update to 6.2.
4776
a552edd9
AC
4777 * utils.c (xvasprintf): Call xstrvprintf.
4778
c4a172b5
AC
4779 * parse.c: Update copyright.
4780 (null_post_parser): Eliminate ARGSUSED.
4781
da745b36
AC
4782 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
4783 * tui/tui-win.c (tui_get_cmd_list): Ditto.
4784 * symfile-mem.c (_initialize_symfile_mem): Ditto.
4785
9cbc6ef0
AC
4786 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
4787 * ppc-linux-nat.c: Use "Linux kernel".
4788 * hppa-linux-tdep.c: Use GNU/Linux.
4789 * hppa-linux-nat.c: Use GNU/Linux.
4790 * dwarfread.c: Add [sic] to use of Linux.
4791
1b89295f
AC
4792 * hppa-linux-nat.c: Do not include <string.h>.
4793 (supply_fpregset): Remove "register" attribute.
4794
d5c560f7
AC
4795 * solib-frv.c (fetch_loadmap): Use xfree, not free.
4796
7ddd7709
MK
47972004-07-17 Mark Kettenis <kettenis@gnu.org>
4798
b1d19a62
MK
4799 * configure.in: Define _MSE_INT_H on Solaris 9 too.
4800 * configure, config.in: Regenerated.
4801
7ddd7709
MK
4802 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
4803 "bsd-kvm.h".
4804 (vaxbsd_supply_pcb): New function.
4805 (_initialize_vaxbsd_nat): New prototype and function.
4806 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
4807 solib-sunos.o.
4808 (LOADLIBES): New variable.
4809 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
4810 (LOADLIBES): New variable.
4811 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
4812 (LOADLIBES): New variable.
4813 * Makefile.in (vaxbsd-nat.o): Update dependencies.
4814
2c07db7a
AC
48152004-07-16 Andrew Cagney <cagney@gnu.org>
4816
4817 * defs.h (event_loop_p): Replace variable declaration with macro,
4818 always 1.
4819 * main.c (captured_main): Delete options "-async" and "-noasync".
4820 (event_loop_p): Delete variable.
4821 * NEWS: Mention that "-async" and "-noasync" were removed.
4822
717eb1cf
AC
48232004-07-16 Andrew Cagney <cagney@gnu.org>
4824
4825 * remote-m32r-sdi.c: Re-indent.
4826
c101bc14
JB
48272004-07-16 Jim Blandy <jimb@redhat.com>
4828
5109a438
JB
4829 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
4830 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
4831 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
4832 missing MPC823 SPRs.
4833 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
4834 incorrect. (This was corrected in GDB's register name tables on
4835 2004-07-14.)
4836
c101bc14
JB
4837 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
4838 should be "esasrr" ("ESA Save and Restore Register").
4839
7ce450bd
AC
48402004-07-16 Andrew Cagney <cagney@gnu.org>
4841
4842 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
4843 calls, no longer applicable. Update comments and rename parameter
4844 "step_frame" to "return_frame".
4845
ca73dd9d
AC
48462004-07-16 Andrew Cagney <cagney@gnu.org>
4847
4848 * frame.c (fprint_field): New function.
4849 (fprint_frame_id): Use fprint_field.
4850
31941f6d
JB
48512004-07-15 Joel Brobecker <brobecker@gnat.com>
4852
4853 * ada-lang.c (ada_language_defn): Remove commented out code.
4854
f86a7158
JB
48552004-07-15 Jim Blandy <jimb@redhat.com>
4856
4857 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
4858 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
4859
c24791ec
JB
48602004-07-14 Jim Blandy <jimb@redhat.com>
4861
29bb1356
JB
4862 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
4863
cc98b5cc
JB
4864 * ppc-tdep.h (ppc_num_vrs): New enum constant.
4865
8f088af7
JB
4866 * ppc-tdep.h (ppc_num_srs): New enum constant.
4867
0ea0ec5f
JB
4868 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
4869 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
4870 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
4871 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
4872 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
4873 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
4874 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
4875 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
4876 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
4877 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
4878 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
4879 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
4880 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
4881 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
4882 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
4883 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
4884 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
4885 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
4886 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
4887 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
4888 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
4889 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
4890 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
4891 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
4892 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
4893 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
4894 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
4895 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
4896 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
4897 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
4898 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
4899 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
4900 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
4901 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
4902 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
4903 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
4904 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
4905 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
4906 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
4907 special-purpose register numbers.
4908
c24791ec
JB
4909 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
4910 manual mentions 'md_twb', but many mention 'm_twb', and at that
4911 point in the register list.)
4912
d833db3b
AC
49132004-07-14 Andrew Cagney <cagney@gnu.org>
4914
4915 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
4916 instead of "internal-error".
4917
080228b2
JB
49182004-07-10 Joel Brobecker <brobecker@gnat.com>
4919
4920 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
4921 that was inserted inside a comment.
4922
c268433a
RC
49232004-07-10 Randolph Chung <tausq@debian.org>
4924
4925 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
4926 function.
4927 (hppa_hpux_push_dummy_code): New function.
4928 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
4929 Set find_global_pointer method.
4930
71009278
MK
49312004-07-10 Mark Kettenis <kettenis@gnu.org>
4932
4933 * NEWS: Mention BSD libkvm interface.
4934
b2fa5097
MS
49352004-07-10 Michael Snyder <msnyder@redhat.com>
4936
4937 * symfile.c (generic_load): Comment typo.
4938 * stack.c (get_selected_block): Ditto.
4939 * regcache.c (regcache_cooked_read): Ditto.
4940 * monitor.c (monitor_debug): Ditto.
4941 * mips-tdep.c (mips_read_pc): Ditto.
4942 * i386-linux-nat.c (ps_get_thread_area): Ditto.
4943 * gdb_mbuild.sh: Ditto.
4944 * gdbarch.sh: Ditto.
4945 * gdbarch.h: Ditto.
4946
c3e5cd34
PH
49472004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
4948
8a2225b2
PH
4949 * ada-tasks.c: Remove file.
4950
c3e5cd34
PH
4951 Remove ARI problems:
4952
4953 * ada-exp.y (write_var_from_sym): Reformat to put operator at
4954 beginning of line.
4955
4956 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
4957 Add comment.
4958 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
4959 (MIN_OF_SIZE): Rename min_of_size. Add comment.
4960 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
4961 (UMIN_OF_SIZE): Remove.
4962 (max_of_type): New function to replace orphan macro in gdbtypes.h
4963 (min_of_type): Ditto.
4964 (discrete_type_high_bound): Use max_of_type.
4965 (discrete_type_low_bound): Use min_of_type.
4966 (possible_user_operator_p): Move operator to beginning of line.
4967 (ada_is_variant_part): Ditto.
4968 (ensure_lval): Rewrite to avoid deprecated operations.
4969 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
4970 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
4971 (ada_enum_name): Remove assignments in 'if' statements.
4972 (build_ada_types): Add gdbarch parameter.
4973 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
4974 with gdbarch_data_register_post_init.
4975 Use add_setshow_uinteger_cmd rather than add_set_cmd and
4976 add_show_from_set.
4977
4978 * ada-valprint.c (inspect_it): Remove declaration.
4979 (repeat_count_threshold): Remove declaration.
4980 (ada_print_floating): Remove assignments in 'if' statements.
4981 (print_str): Move operator to beginning of line.
4982
61ce229a
JB
49832004-07-08 Jim Blandy <jimb@redhat.com>
4984
4985 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
4986
09bcec80
BR
49872004-07-08 Bob Rossi <bob@brasko.net>
4988
4989 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
4990
31c27f77
JJ
49912004-07-06 Jeff Johnston <jjohnstn@redhat.com>
4992
4993 * language.h (struct_language_defn): Add new function pointer:
4994 la_class_name_from_physname. Also add new prototype for
4995 language_class_name_from_physname.
4996 * language.c (language_class_name_from_physname): New function.
4997 (unk_lang_class_name): Ditto.
4998 (unknown_language_defn, auto_language_defn): Change
4999 to add unk_lang_class_name function pointer for
5000 la_class_name_from_physname.
5001 (local_language_defn): Ditto.
5002 * dwarf2read.c (guess_structure_name): Change to call
5003 language_class_name_from_physname.
5004 (determine_class_name): Ditto.
5005 * cp-support.c (class_name_from_physname): Renamed.
5006 (cp_class_name_from_physname): New name of function.
5007 * cp-support.h: Ditto.
5008 * c-lang.c (c_language_defn): Change to add NULL
5009 for class_name_from_physname function pointer.
5010 (cplus_language_defn): Change to add cp_class_name_from_physname.
5011 * jv-lang.c (java_class_name_physname): New function.
5012 (java_find_last_component): New static routine.
5013 (java_language_defn): Add java_class_name_from_physname pointer.
5014 * ada-lang.c (ada_language_defn): Change to add NULL
5015 for class_name_from_physname function pointer.
5016 * f-lang.c (f_language_defn): Ditto.
5017 * m2-lang.c (m2_language_defn): Ditto.
5018 * objc-lang.c (objc_language_defn): Ditto.
5019 * p-lang.c (pascal_language_defn): Ditto.
5020 * scm-lang.c (scm_language_defn): Ditto.
5021
ee28ca0f
AC
50222004-07-06 Andrew Cagney <cagney@gnu.org>
5023
5024 Patch from Bart Robinson.
5025 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
5026 (O_LARGEFILE): Define to 0, if not defined.
5027
fdb1bf9d
MK
50282004-07-03 Mark Kettenis <kettenis@gnu.org>
5029
cb162ff6
MK
5030 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
5031 <machine/pcb.h> and "bsd-kvm.h".
5032 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
5033 (m68kbsd_supply_pcb): New function.
5034 (_initialize_m68kbsd_nat): New prototype and function.
5035 * Makefile.in (m68kbsd-nat.o): Update dependencies.
5036 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5037 (LOADLIBES): New variable.
5038 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
5039 (LOADLIBES): New variable.
5040
fdb1bf9d
MK
5041 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
5042
963c4174
MK
50432004-07-03 Mark Kettenis <kettenis@gnu.org>
5044
5045 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
5046 <sys/proc.h>.
5047 (bsd_kvm_cmdlist): New variable.
5048 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
5049 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
5050 command and "kvm proc" command.
5051 * Makefile.in (bsd-kvm.o): Update dependencies.
5052
533f1d8f
MK
50532004-07-02 Mark Kettenis <kettenis@gnu.org>
5054
5055 * osabi.c: Update copyright year.
5056 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
5057 notes if EI_OSABI is set to ELFOSABI_HPUX.
5058
6780dcde
MS
50592004-07-01 Michael Snyder <msnyder@redhat.com>
5060
5061 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
5062 that seems to have gotten whacked out of line.
5063
67bebe79
MK
50642004-07-01 Mark Kettenis <kettenis@gnu.org>
5065
5066 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
5067 code.
5068
0b5d8877
PH
50692004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
5070
5071 * ada-lang.c (decode_packed_array): Minor change to comment.
5072 (ada_value_slice_ptr): New function.
5073 (ada_value_slice): New function.
5074 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
5075 test. Don't know why it is there.
5076 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
5077 to avoid dereferencing huge arrays from which one is slicing.
5078 (empty_array): Correct to return an array rather than
5079 a subrange value.
5080 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
5081 on empty arrays (let'em use 'FIRST instead).
5082
19c1ef65
PH
50832004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
5084
5085 Address complaints from gdb_ari.sh:
5086
5087 * ada-exp.y: Include gdb_string.h rather than string.h.
5088 (convert_char_literal): Reformat declaration.
5089 * ada-lang.h: Include opaque struct declaration for struct frame_info.
5090 * ada-lex.l: Change use of free to xfree (the macro would do so
5091 anyway, but this is harmless).
5092 Include gdb_string.h rather than string.h.
5093 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
5094
5095 * ada-lang.c (parse): Remove K&Rism in parameter list.
5096 (is_name_suffix): Correct Linux => GNU/Linux in comment.
5097
d81cbc94
MK
50982004-06-30 Mark Kettenis <kettenis@gnu.org>
5099
5100 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
5101 dead code.
5102
07681759
MK
51032004-06-30 Mark Kettenis <kettenis@gnu.org>
5104
5105 * alphabsd-nat.c: Update copyright year.
5106 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
5107
f7948b5f
JB
51082004-06-29 Joel Brobecker <brobecker@gnat.com>
5109
6e0cdd28 5110 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
f7948b5f
JB
5111 (i386_cygwin_in_solib_call_trampoline): New function.
5112 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
5113 and skip_trampoline_code gdbarch methods.
5114
8f113c9a
JB
51152004-06-29 Jim Blandy <jimb@redhat.com>
5116
5117 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
5118 name actually used in the dependency lists.
5119
97dc871c
RC
51202004-06-29 Randolph Chung <tausq@debian.org>
5121
5122 * NEWS (New native configurations): Mention GNU/Linux/hppa.
5123
47216e51
CV
51242004-06-29 Corinna Vinschen <vinschen@redhat.com>
5125
5126 * win32-nat.c (child_pid_to_exec_file): New function.
6780dcde 5127 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
47216e51
CV
5128 functionality.
5129
e623b504
AC
51302004-06-28 Andrew Cagney <cagney@gnu.org>
5131
5132 * defs.h (xstrvprintf): Declare.
5133 * utils.c (xstrvprintf): New function.
5134 (internal_vproblem, xstrprintf, xasprintf)
5135 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
5136 * serial.c (serial_printf): Ditto.
5137 * complaints.c (vcomplaint): Ditto.
5138
79acc9b3
CV
51392004-06-29 Corinna Vinschen <vinschen@redhat.com>
5140
5141 * infcmd.c (attach_command): Move call to target_terminal_inferior
5142 behind loading symbol table.
5143
1daf35d9
AC
51442004-06-28 Andrew Cagney <cagney@gnu.org>
5145
5146 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
5147 change - add back extern deprecated_ui_loop_hook declaration.
5148
b435e160
AC
51492004-06-28 Andrew Cagney <cagney@gnu.org>
5150
5151 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
5152 xstrprintf.
5153 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
5154 (c_value_of_variable): Ditto.
5155 * utils.c (internal_vproblem): Ditto.
5156 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
5157 * remote.c (add_packet_config_cmd): Ditto.
5158 * remote-rdp.c (rdp_set_command_line): Ditto.
5159 * regcache.c (regcache_dump): Ditto.
5160 * frv-tdep.c (new_variant, new_variant): Ditto.
5161 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
5162 (fbsd_find_memory_regions): Ditto.
5163 * breakpoint.c (create_thread_event_breakpoint)
5164 (create_breakpoints): Ditto.
5165 * aix-thread.c (aix_thread_pid_to_str): Ditto.
5166 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
5167
06d5cf63
JB
51682004-06-28 Joel Brobecker <brobecker@gnat.com>
5169
5170 * ada-lang.c: Re-indent file, with some massaging to help indent
5171 a bit when the result is otherwise really too ugly.
5172
35809fad
UW
51732004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
5174
5175 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
5176 code_addr_p and special_addr_p to 'unsigned int'.
5177
40e20472
MK
51782004-06-27 Mark Kettenis <kettenis@gnu.org>
5179
5180 * i386v4-nat.c: Update copyright year and tweak comment.
5181 (regmap): Remove trailing comma.
5182 (supply_gregset): Rename local variable i to regnum. Call
5183 regcache_raw_supply instead of supply_register.
5184 (fill_gregset): Rename argument regno to regnum. Call
5185 regcache_raw_collect instead of regcache_collect.
5186
12b0b6de
UW
51872004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
5188
5189 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
5190 and special_addr_p.
5191 (frame_id_build, frame_id_build_special): Update comments.
5192 (frame_id_build_wild): New prototype.
5193 * frame.c (frame_id_build, frame_id_build_special): Fill in new
5194 struct frame_id fields.
5195 (frame_id_build_wild): New function.
5196 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
5197
47b42a3e
MK
51982004-06-27 Mark Kettenis <kettenis@gnu.org>
5199
5200 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
5201 hppabsd-tdep.c.
5202
1265e4aa
JB
52032004-06-27 Joel Brobecker <brobecker@gnat.com>
5204
5205 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
5206
76a01679
JB
52072004-06-27 Joel Brobecker <brobecker@gnat.com>
5208
5209 * ada-lang.c: Re-indent file.
5210
7aca490a
JB
52112004-06-27 Joel Brobecker <brobecker@gnat.com>
5212
5213 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
5214 (no_symtab_msg): Likewise.
5215
5e987968
AS
52162004-06-27 Andreas Schwab <schwab@suse.de>
5217
5218 * source.c: Fix whitespace.
5219
315c4276
MK
52202004-06-27 Mark Kettenis <kettenis@gnu.org>
5221
d15be926
MK
5222 * configure.in: Include <sys/param.h> for td_pcb test.
5223 * configure: Regenerated.
5224
9062529b
MK
5225 * i386nbsd-nat.c: New file.
5226 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
5227 i386obsd-nat.c and i386obsd-tdep.c.
5228 (i386nbsd-nat.o): New dependency.
5229 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
5230 bsd-kvm.o.
5231 (LOADLIBES): New variable.
5232 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
5233 bsd-kvm.o.
5234 (LOADLIBES): New variable.
5235
8010310e
MK
5236 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
5237 (LOADLIBES): New variable.
5238
efe1d7b9
MK
5239 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
5240 fetching from BSD_KVM_PADDR. Correctly lookup address for
5241 "_thread0".
5242
315c4276
MK
5243 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
5244 "bsd-kvm.h".
5245 (amd64fbsd_supply_pcb): New funcion.
5246 (_initialize_amd64fbsd_nat): Enable libkvm interface.
5247
399cfac6
DL
52482004-06-27 <david@streamline-computing.com>
5249
5250 Partial fix for PR cli/1056.
5251 * valarith.c: Check for zero in division and remainder
5252 evaluation.
5253
6235f9c8
MK
52542004-06-27 Mark Kettenis <kettenis@gnu.org>
5255
5256 * i387-tdep.c: Remove excessive whitespace.
5257
2726dafc
AC
52582004-06-26 Andrew Cagney <cagney@gnu.org>
5259
5260 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
5261 * gdb-events.h, gdb-events.c: Re-generate.
5262 * tui/tui-hooks.c (tui_install_hooks): Update.
5263 (tui_remove_hooks): Update.
5264 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
5265
0e56aeaf
MK
52662004-06-26 Mark Kettenis <kettenis@gnu.org>
5267
cb461069
MK
5268 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
5269 (gregset_t, fpregset_t): Remove typedefs.
5270 (REG_OFFSET): Rename argument.
5271 (amd64bsd_r_reg_offset): Rename from reg_offset.
5272 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
5273 Remove functions.
5274 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
5275 of reg_offset.
5276 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
5277
ecba89de
MK
5278 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
5279
4cd80476
MK
5280 * vax-tdep.c: Tweak comment.
5281
0e56aeaf
MK
5282 Add OpenBSD/hppa support.
5283 * NEWS (New native configurations): Mention OpenBSD/hppa.
5284 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
5285 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
5286 files.
5287 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
5288 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
5289 * configure.host: Add hppa*-*-openbsd*.
5290 * configure.tgt: Add hppa*-*-openbsd*.
5291
98bbd631
AC
52922004-06-25 Andrew Cagney <cagney@gnu.org>
5293
5294 * defs.h (deprecated_ui_loop_hook): Deprecated.
5295 * wince.c (child_wait): Update.
5296 * win32-nat.c (child_wait): Update.
5297 * v850ice.c (v850ice_wait): Update.
5298 * top.c (deprecated_ui_loop_hook): Update.
5299 * serial.h: Update.
5300 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
5301 (do_unix_readchar): Update.
5302 * ser-tcp.c (net_open): Update.
5303 * remote-sim.c (gdb_os_poll_quit): Update.
5304 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
5305
769d7dc4
AC
53062004-06-24 Andrew Cagney <cagney@gnu.org>
5307
5308 * defs.h (deprecated_pre_add_symbol_hook)
5309 (deprecated_post_add_symbol_hook): Deprecated.
5310 * symfile.c (symbol_file_add_with_addrs_or_offsets)
5311 (symbol_file_add_with_addrs_or_offsets): Update references.
5312
11c949aa
AC
53132004-06-24 Andrew Cagney <cagney@gnu.org>
5314
5315 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
5316 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
5317 * wince.c (ui_loop_hook): Delete extern declaration.
5318 * win32-nat.c (ui_loop_hook): Delete extern declaration..
5319 * v850ice.c (ui_loop_hook): Delete extern declaration..
5320 * ser-unix.c (ui_loop_hook): Delete extern declaration..
5321 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
5322 * remote-sim.c (ui_loop_hook): Delete extern declaration..
5323 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
5324 ui_loop_hook declaration.
5325
eedc19af
AC
53262004-06-24 Andrew Cagney <cagney@gnu.org>
5327
5328 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
5329 entry_func_highpc fields.
5330 * objfiles.c (init_entry_point_info): Do not clear
5331 entry_func_lowpc and entry_func_highpc.
5332 (objfile_relocate): Do not relocate entry_func_lowpc and
5333 entry_func_highpc.
5334 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
5335 entry_func_highpc.
5336 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
5337 entry_func_highpc.
5338 * blockframe.c (legacy_frame_chain_valid): Replace tests against
5339 entry_func_lowpc and entry_func_highpc with call to
5340 inside_entry_func.
5341
d47079be
MK
53422004-06-24 Mark Kettenis <kettenis@gnu.org>
5343
5344 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
5345 quad-precision floating point arguments in registers.
5346
2107e348
MK
53472004-06-24 Mark Kettenis <kettenis@gnu.org>
5348
5349 From Michael Mueller <m.mueller99@kay-mueller.de>:
5350 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
5351 account.
5352
46587c42
JJ
53532004-06-22 Jeff Johnston <jjohnstn@redhat.com>
5354
5355 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
5356 to -1.
5357 * breakpoint.c (bpstat_stop_status): Move check for ignoring
5358 untriggered watchpoints to a separate if clause. Update function
5359 comment regarding STOPPED_BY_WATCHPOINT argument.
5360
226f5cf4
JB
53612004-06-22 Jim Blandy <jimb@redhat.com>
5362
5363 * gdbarch.sh: Doc fix.
5364
f10683bb
MH
53652004-06-21 Martin Hunt <hunt@redhat.com>
5366 Kevin Buettner <kevinb@redhat.com>
5367
5368 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
5369 * mips-tdep.h (MIPS_SP_REGNUM): Define.
5370 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
5371 to set_gdbarch_sp_regnum(). Use cooked register number.
5372 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
5373
412d5987
AC
53742004-06-21 Andrew Cagney <cagney@gnu.org>
5375
5376 * gdbarch.sh: When the macro field is empty, do not generate a
5377 macro definition. When the macro field is "=", generate the macro
5378 name from the upper-case function name.
5379 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
5380 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
5381 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
5382 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
5383 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
5384 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
5385 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
5386 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
5387 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
5388 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
5389 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
5390 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
5391 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
5392 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
5393 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
5394 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
5395 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
5396 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
5397 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
5398 (DEPRECATED_USE_STRUCT_CONVENTION)
5399 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5400 (DEPRECATED_FRAME_INIT_SAVED_REGS)
5401 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
5402 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
5403 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
5404 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
5405 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
5406 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
5407 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
5408 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
5409 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
5410 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
5411 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
5412 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
5413 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
5414 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
5415 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
5416 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
5417
68908a3e
AC
54182004-06-21 Andrew Cagney <cagney@gnu.org>
5419
48f7351b
AC
5420 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
5421 macro name, and the function rather than macro value. Only wrap
5422 macro print statements in #ifdef. Move format logic to where it
5423 is needed.
5424 * gdbarch.c: Re-generate.
5425
283354d8
AC
5426 * gdbarch.sh (read): Delete "print_p" and "description", add
5427 "garbage_at_eol". Check for non-empty garbage at end-of-line.
5428 Delete references to print_p.
5429 (TARGET_ARCHITECTURE): Delete print predicate.
5430 * gdbarch.c: Re-generate.
5431
68908a3e
AC
5432 * gdbarch.sh: Check that multi-arch methods do not provide a
5433 macro.
5434 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
5435 (print_registers_info, print_float_info, print_vector_info)
5436 (adjust_breakpoint_address, remote_translate_xfer_address)
5437 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
5438 (address_class_type_flags_to_name, unwind_sp): Remove the macro
5439 name from the multi-arch definition.
5440
a2428dbe
AC
54412004-06-20 Andrew Cagney <cagney@gnu.org>
5442
5443 * gdbarch.sh: Sort by the function, instead of macro name.
5444 * gdbarch.c: Re-generate.
5445
750eb019
AC
54462004-06-20 Andrew Cagney <cagney@gnu.org>
5447
66d659b1
AC
5448 * gdbarch.sh: Use the function, instead of macro name in
5449 errors and the log file.
5450 (return_value): Remove stray ":" in spec.
5451
750eb019
AC
5452 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
5453 * gdbarch.h, gdbarch.c: Re-generate.
5454 * Makefile.in (arch-utils.o): Update dependencies.
5455 * values.c (using_struct_return): Move code calling
5456 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
5457 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
5458 to legacy_return_value, simplify.
5459 * infcmd.c (print_return_value): Move code calling
5460 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
5461 to legacy_return_value, simplify.
5462 * infcall.c (call_function_by_hand): Move code calling
5463 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
5464 * arch-utils.c: Update copyright. Include "gdbcore.h".
5465 (legacy_return_value): New function.
5466 * arch-utils.h: Update copyright.
5467 (legacy_return_value): Declare.
5468
b5622e8d
AC
54692004-06-20 Andrew Cagney <cagney@gnu.org>
5470
5471 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
5472 * gdbarch.h, gdbarch.c: Re-generate.
5473 * values.c (using_struct_return): Update call.
5474 * mcore-tdep.c: Update comment.
5475 * infcall.c (call_function_by_hand): Update comment.
5476 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5477 * arch-utils.h (always_use_struct_convention): Update.
5478 * v850-tdep.c (v850_gdbarch_init): Update.
5479 * sh64-tdep.c (sh64_gdbarch_init): Update.
5480 * sh-tdep.c (sh_gdbarch_init): Update.
5481 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5482 * mips-tdep.c (mips_gdbarch_init): Update.
5483 * mcore-tdep.c (mcore_gdbarch_init): Update.
5484 * m32r-tdep.c (m32r_gdbarch_init): Update.
5485 * ia64-tdep.c (ia64_gdbarch_init): Update.
5486 * h8300-tdep.c (h8300_gdbarch_init): Update.
5487 * frv-tdep.c (frv_gdbarch_init): Update.
5488 * cris-tdep.c (cris_gdbarch_init): Update.
5489 * arm-tdep.c (arm_gdbarch_init): Update.
5490 * alpha-tdep.c (alpha_gdbarch_init): Update.
5491
5191de37
MC
54922004-06-18 Michael Chastain <mec.gnu@mindspring.com>
5493
5494 * PROBLEMS: Add more specific information, and a work-around,
5495 for PR gdb/1458.
5496
782263ab
AC
54972004-06-18 Andrew Cagney <cagney@gnu.org>
5498
5499 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
5500 * gdbarch.h, gdbarch.c: Re-generate.
5501 * ada-lang.c (ada_finish_decode_line_1): Update.
5502 * infrun.c (handle_inferior_event): Update.
5503 * infcall.c (find_function_addr): Update.
5504 * linespec.c (minsym_found): Update.
5505 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
5506 Update.
5507 * blockframe.c (legacy_frameless_look_for_prologue): Update.
5508 * cli/cli-cmds.c (disassemble_command): Update.
5509 * vax-tdep.c (vax_gdbarch_init): Update.
5510
2f305df1
MK
55112004-06-18 Mark Kettenis <kettenis@gnu.org>
5512
5513 * i386-tdep.c (i386_collect_fpregset): Fix comment.
5514
e5fe55f7
AC
55152004-06-17 Andrew Cagney <cagney@gnu.org>
5516
5517 GDB 6.1.1 released from the GDB 6.1 branch.
5518 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
5519 * PROBLEMS: Ditto.
5520
473b7be6
DJ
55212004-06-16 Daniel Jacobowitz <dan@debian.org>
5522
5523 PR gdb/1658
5524 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
5525 operation as a uleb128. Found by Michael Coulter.
5526
96d887e8
PH
55272004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
5528
5529 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
5530 make it non-static.
5531 * ada-lang.h (task_control_block): declaration moved from ada-task.c
5532 to ada-lang.h; this is needed to be able to implement the kill command
5533 in multi-task mode.
5534 (task_ptid): Ditto.
5535 (task_entry): Ditto.
5536 (task_list): Ditto.
5537 (ada_build_task_list): Ditto.
5538
5539 * ada-lang.c: Conditionalize routines and data structures related
5540 to breakpoints, exceptions, completion, and symbol caching on
5541 GNAT_GDB, since these are not yet used in the submitted public sources.
5542 (ada_main_name): Editorial: Move definition out of exception-related
5543 code.
5544
31eef181
AC
55452004-06-15 Andrew Cagney <cagney@gnu.org>
5546
5547 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
5548 deprecated_pc_in_call_dummy.
5549
2c500098
AM
55502004-06-15 Alan Modra <amodra@bigpond.net.au>
5551
5552 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
5553 bfd_get_section_size_before_reloc or _raw_size.
5554 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
5555 * dwarf2read.c (dwarf2_locate_sections): Likewise.
5556 (dwarf2_read_section): Likewise.
5557 * elfread.c (elf_locate_sections): Likewise.
5558 * gcore.c (derive_heap_segment): Likewise.
5559 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
5560 * remote-e7000.c (e7000_load): Likewise.
5561 * remote-m32r-sdi.c (m32r_load): Likewise.
5562 * remote-mips.c (mips_load_srec): Likewise.
5563 (pmon_load_fast): Likewise.
5564 * remote.c (compare_sections_command): Likewise.
5565 * symfile.c (add_section_size_callback): Likewise.
5566 (load_section_callback): Likewise.
5567 (pc_in_unmapped_range): Likewise.
5568 (pc_in_mapped_range): Likewise.
5569 (sections_overlap): Likewise.
5570 (list_overlays_command): Likewise.
5571 (simple_overlay_update_1): Likewise.
5572 (simple_overlay_update): Likewise.
5573 * tracepoint.c (remote_set_transparent_ranges): Likewise.
5574 * win32-nat.c (core_section_load_dll_symbols): Likewise.
5575
90f943f1
RC
55762004-06-14 Randolph Chung <tausq@debian.org>
5577
5578 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
5579 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
5580 static.
5581 (hppa_hpux_inferior_created): New function.
5582 (hppa_hpux_init_abi): Register observer.
5583 * symfile.c (hp_cxx_exception_support_initialized)
5584 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
5585 (symbol_file_add_main_1, symbol_file_clear): Likewise.
5586
700c15aa
RC
55872004-06-14 Randolph Chung <tausq@debian.org>
5588
3973a7d3
AC
5589 * MAINTAINERS (Write After Approval): Alphabetize my entry
5590 correctly.
700c15aa 5591
cea4838c
AC
55922004-06-14 Andrew Cagney <cagney@gnu.org>
5593
5594 * MAINTAINERS (testsuite): List Michael Chastain as the lead
5595 testsuite maintainer.
5596
97092415
AC
55972004-06-13 Andrew Cagney <cagney@gnu.org>
5598
e8c3165b
AC
5599 * infcmd.c (print_return_value): Fix logic, allow
5600 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
5601
bceabdd8
AC
5602 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
5603 defining any macros.
5604 * gdbarch.h: Re-generate.
5605
57010b1c
AC
5606 * gdbarch.sh: Delete "level" attribute. Only check for a macro
5607 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
5608 * gdbarch.h: Re-generate.
5609
bc87dfa0
AC
5610 * values.c (generic_use_struct_convention): Don't check gcc_p.
5611
15ac804d
AC
5612 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
5613 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
5614 * gdbarch.h, gdbarch.c: Regenerate.
5615 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
5616 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
5617 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5618 deprecated_max_register_raw_size and
5619 deprecated_max_register_virtual_size.
5620 * v850-tdep.c (v850_gdbarch_init): Ditto.
5621 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
5622 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5623 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5624 * cris-tdep.c (cris_gdbarch_init): Ditto.
5625
97092415
AC
5626 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
5627 * gdbarch.h, gdbarch.c: Re-generate.
5628 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
5629 (m68hc11_use_struct_convention): Delete function.
5630 (m68hc11_extract_struct_value_address): Delete function.
5631 (m68hc11_return_value): New function.
5632 (m68hc11_gdbarch_init): Instead of store_return_value,
5633 extract_return_value, return_value_on_stack,
5634 deprecated_extract_struct_value_address and use_struct_convention,
5635 set return_value.
5636 * values.c (using_struct_return): Do not call
5637 RETURN_VALUE_ON_STACK.
5638 * arch-utils.h (generic_return_value_on_stack_not): Delete
5639 declaration.
5640 * arch-utils.c (generic_return_value_on_stack_not): Delete
5641 function.
5642
44e5158b
AC
56432004-06-12 Andrew Cagney <cagney@gnu.org>
5644
5645 * values.c (register_value_being_returned): Delete function.
5646 * infcmd.c (legacy_return_value): Delete function.
5647 * infcall.c (call_function_by_hand): Inline
5648 "register_value_being_returned", simplify.
5649 * values.c (using_struct_return): Update comment, refer to
5650 print_return_value instead of register_value_being_returned.
5651 * infcmd.c (print_return_value): Inline calls to
5652 register_value_being_returned and legacy_return_value. Simplify.
5653
b887c273
RC
56542004-06-11 Randolph Chung <tausq@debian.org>
5655
5656 * somread.c (som_symtab_read): Exclude gcc local symbols.
5657
1b2bfbb9
RC
56582004-06-11 Randolph Chung <tausq@debian.org>
5659
3973a7d3
AC
5660 * infrun.c (handle_inferior_event): Handle the case when a
5661 trampoline ends up in the runtime resolver, and if the trampoline
5662 has no name. Rearrange the code so that all the trampoline
5663 processing happens before other step-out-of-range handling.
1b2bfbb9 5664
a9d61c86
MH
56652004-06-11 Martin Hunt <hunt@redhat.com>
5666
5667 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
5668 has no fpu.
5669
2c87cf5a
AC
56702004-06-10 Andrew Cagney <cagney@gnu.org>
5671
5672 * blockframe.c (legacy_inside_entry_func): Delete.
5673 (legacy_frame_chain_valid): Inline call to
5674 legacy_inside_entry_func, simplify.
5675
0b67b468 56762004-06-10 Bob Rossi <bob@brasko.net>
57c22c6c
BR
5677
5678 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
3973a7d3
AC
5679 * dwarf2read.c (partial_die_info): Add dirname field.
5680 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
5681 (read_partial_die): Save away DW_AT_comp_dir.
5682 * defs.h (symtab_to_filename): Removed.
5683 * source.c (find_and_open_source): Added.
57c22c6c 5684 (open_source_file): Just calls find_and_open_source.
3973a7d3
AC
5685 (symtab_to_filename): Removed.
5686 (symtab_to_fullname, psymtab_to_fullname): Added.
57c22c6c
BR
5687 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
5688 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
5689 symtab_to_filename.
5690 * symtab.h (partial_symtab): Add dirname field.
5691 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
3973a7d3
AC
5692 (mi_cmd_file_list_exec_source_file): Call new function
5693 symtab_to_fullname to find fullname.
57c22c6c 5694 (mi_cmd_file_list_exec_source_files): Added.
3973a7d3 5695 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
57c22c6c
BR
5696 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
5697
9a1dd1ad
AC
56982004-06-10 Andrew Cagney <cagney@gnu.org>
5699
239ae8c7
AC
5700 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
5701 to generic_use_struct_convention, the default value.
5702
fc720350
AC
5703 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
5704 of abort.
5705
9a1dd1ad
AC
5706 * ns32k-tdep.c (ns32k_push_arguments): New function.
5707 (ns32k_gdbarch_init): Set deprecated_push_arguments.
5708 * infcall.c (call_function_by_hand): Call error instead of
5709 legacy_push_arguments.
5710 * value.h (legacy_push_arguments): Delete declaration.
5711 * valops.c (legacy_push_arguments): Delete function.
5712 (value_push): Delete function.
5713
fea25152
BF
57142004-06-10 Brian Ford <ford@vss.fsi.com>
5715
5716 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
5717 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
5718 info.
5719 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
5720
30a4a8e0
AC
57212004-06-10 Andrew Cagney <cagney@gnu.org>
5722
5723 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
5724 * gdbarch.h, gdbarch.c: Re-generate.
5725 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
5726 parameters.
5727 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
5728 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
5729 deprecated_pc_in_call_dummy instead of
5730 DEPRECATED_PC_IN_CALL_DUMMY.
5731 (arm_skip_prologue): Ditto.
5732 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
5733 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
5734 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
5735 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
5736 Ditto.
5737 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
5738 (sh64_init_extra_frame_info, sh64_get_saved_register)
5739 (sh64_pop_frame): Ditto.
5740 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
5741 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
5742 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
5743 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
5744 (h8300_pop_frame): Ditto.
5745 * blockframe.c (legacy_inside_entry_func)
5746 (legacy_frame_chain_valid): Ditto.
5747 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
5748 to deprecated_pc_in_call_dummy.
5749
81cfbe54
AC
57502004-06-09 Andrew Cagney <cagney@gnu.org>
5751
a1f4a1b6
AC
5752 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
5753 provide a default value.
5754 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
5755 * gdbarch.h, gdbarch.c: Re-generate.
5756 * arch-utils.c (generic_convert_register_p): Rename
5757 legacy_convert_register_p
5758 (legacy_register_to_value, legacy_value_to_register): Delete
5759 functions.
5760 * arch-utils.h (generic_convert_register_p): Rename
5761 legacy_convert_register_p.
5762 (legacy_register_to_value, legacy_value_to_register): Delete
5763 declarations.
5764
9730f241
AC
5765 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
5766 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
5767 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
5768 * gdbarch.h, gdbarch.c: Re-generate.
5769 * infcmd.c (default_print_registers_info): Simplify.
5770 * findvar.c (value_of_register): Simplify.
5771 * mi/mi-main.c (get_register): Simplify.
5772 * arch-utils.c (legacy_convert_register_p): Always return 0.
5773 (legacy_register_to_value, legacy_value_to_register): Always call
5774 internal_error.
5775
8a1bf479
AC
5776 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
5777 #ifdef CLEAR_INSN_CACHE code.
5778 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
5779 Delete #ifdef CLEAR_DEFERRED_STORES code.
5780
4b38d6f1
AC
5781 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
5782
2d62ecc7
AC
5783 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
5784 copyright.
5785 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
5786
be4f7469
AC
5787 * config/mips/mipsv4.mh: Delete file.
5788
81cfbe54
AC
5789 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
5790 unreferenced macro.
5791 (hpread_adjust_stack_address): Delete declaration.
5792
d966f0cb
AC
57932004-06-08 Andrew Cagney <cagney@gnu.org>
5794
5795 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
5796 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
5797 PTRACE_ATTACH / PTRACE_DETACH available call error.
5798 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
5799 * infttrace.c (update_thread_state_after_attach, attach, detach):
5800 Remove #ifdef wrappers.
5801 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
5802 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
5803 * config/nm-bsd.h (ATTACH_DETACH): Delete.
5804 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
5805 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
5806 * config/nm-linux.h (ATTACH_DETACH): Delete.
5807 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
5808 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
5809 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
5810 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
5811 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
5812
d91670b9
CV
58132004-06-08 Corinna Vinschen <vinschen@redhat.com>
5814
5815 * configure.in: Set $configdir to the right OS specific value.
5816 Use value when setting $tcldir and $tkdir.
5817 * configure: Regenerate.
5818
28ba0b33
PB
58192004-06-06 Paul Brook <paul@codesourcery.com>
5820
5821 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
5822 records.
5823
f26caa11
PH
58242004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
5825
5826 * ada-lang.c (lookup_symbol_in_language): New function to allow
5827 re-use of another language's symbol lookup code. (Placed here
5828 temporarily while Ada support is being integrated into the public
5829 tree).
5830 (restore_language): New auxiliary function for
5831 lookup_symbol_in_language.
5832 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
5833 temporarily while Ada support is being integrated into the public
5834 tree).
5835
d560a54b
AO
58362004-06-08 Alexandre Oliva <aoliva@redhat.com>
5837
e75d110c
AO
5838 * Makefile.in (check//%): New.
5839
d560a54b
AO
5840 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
5841 (mn10300_store_return_value): Rewrite.
5842 (mn10300_type_align): New.
5843 (mn10300_use_struct_convention): Rewrite.
5844 (mn10300_return_value): New, using all of the above.
5845 (mn10300_pop_frame_regular): Add saved_regs_size.
5846 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
5847
a72fbdb7
AO
5848 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
5849 regs if PC is on movm.
5850
01904826
JB
58512004-06-07 Jim Blandy <jimb@redhat.com>
5852
5853 Add native Linux support for the PowerPC E500.
5854 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
5855 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
5856 all architectures except the E500.
5857 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
5858 #definitions.
5859 (struct gdb_evrregset_t): New type.
5860 (have_ptrace_getsetevrregs): New variable.
5861 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
5862 fetch_spe_registers): New functions.
5863 (fetch_register): Call fetch_spe_register as appropriate.
5864 Assert that we're only passed raw register numbers.
5865 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
5866 Don't fetch gprs if they're pseudoregisters.
5867 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
5868 store_spe_registers): New functions.
5869 (store_register): Call store_spe_register as appropriate.
5870 Assert that we're only passed raw register numbers.
5871 (store_ppc_registers): Call store_spe_registers as appropriate.
5872 Don't store gprs if they're pseudoregisters.
5873
f90ef764
JJ
58742004-06-07 Jeff Johnston <jjohnstn@redhat.com>
5875
5876 * thread-db.c (thread_get_info_callback): Fill in the thread_info
5877 struct if one exists, even if we are dealing with a zombie thread.
5878
45b75230
AC
58792004-06-07 Andrew Cagney <cagney@gnu.org>
5880
5881 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
5882 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
5883 Rename PC_REQUIRES_RUN_BEFORE_USE.
5884 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
5885 #ifdef.
5886
1658da49
RC
58872004-06-07 Randolph Chung <tausq@debian.org>
5888
5889 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
5890 unwinding after sp has been saved to the stack but before the end
5891 of the prologue, and after the fp has been modified but before it has
5892 been saved to the stack.
5893 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
5894 Remove superfluous definitions.
5895 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
5896
9a727a3c
RC
58972004-06-07 Guy Martin <gmsoft@gentoo.org>
5898
5899 Committed by Randolph Chung.
5900 * hppa-linux-nat.c: Include the correct version of the header file
5901 depending on the kernel version.
5902
9e500012
RC
59032004-06-06 Randolph Chung <tausq@debian.org>
5904
5905 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
5906 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
5907
3388d7ff
RC
59082004-06-06 Randolph Chung <tausq@debian.org>
5909
5910 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
5911 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
5912 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
5913 * hppa-tdep.c (hppa_symbol_address): New function definition.
5914 * hppa-tdep.h (hppa_symbol_address): New function declaration.
5915
d49771ef
RC
59162004-06-06 Randolph Chung <tausq@debian.org>
5917
5918 * hppa-tdep.h (struct value): Forward declaration.
5919 (gdbarch_tdep): Define tdep find_global_pointer method.
5920 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
5921 associated with the function we are trying to call, and write it
5922 to the gp register.
5923 (hppa32_convert_from_funct_ptr_addr): New function.
5924 (hppa_find_global_pointer): New function.
5925 (hppa_gdbarch_init): Set default find_global_pointer method; set
5926 convert_from_func_ptr_addr method.
5927 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
5928 (hppa_linux_init_abi): Set find_global_pointer method.
5929 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
5930
7d9b040b
RC
59312004-06-06 Randolph Chung <tausq@debian.org>
5932
5933 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
5934 to struct value *function.
5935 * gdbarch.c: Regenerate.
5936 * gdbarch.h: Likewise.
5937 * infcall.c (call_function_by_hand): Pass entire function value
5938 to push_dummy_call.
5939
5940 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
5941 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
5942 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
5943 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
5944 * arm-tdep.c (arm_push_dummy_call): Likewise.
5945 * avr-tdep.c (avr_push_dummy_call): Likewise.
5946 * cris-tdep.c (cris_push_dummy_call): Likewise.
5947 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
5948 * frv-tdep.c (frv_push_dummy_call): Likewise.
5949 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
5950 * hppa-tdep.c (hppa32_push_dummy_call)
5951 (hppa64_push_dummy_call): Likewise.
5952 * i386-tdep.c (i386_push_dummy_call): Likewise.
5953 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
5954 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
5955 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
5956 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
5957 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
5958 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
5959 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
5960 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
5961 (ppc64_sysv_abi_push_dummy_call): Likewise.
5962 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
5963 (ppc64_sysv_abi_push_dummy_call): Likewise.
5964 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
5965 * s390-tdep.c (s390_push_dummy_call): Likewise.
5966 * sh-tdep.c (sh_push_dummy_call_fpu)
5967 (sh_push_dummy_call_nofpu): Likewise.
5968 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
5969 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
5970 * vax-tdep.c (vax_push_dummy_call): Likewise.
5971
4a19ea35
JB
59722004-06-04 Jim Blandy <jimb@redhat.com>
5973
8327ccee
JB
5974 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
5975 gdbarch argument to register_size.
5976
a3c001ce
JB
5977 * rs6000-tdep.c (rs6000_store_return_value): Use
5978 regcache_cooked_write_part instead of
5979 deprecated_write_register_bytes.
5980 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
5981 not gdbarch_deprecated_store_return_value.
5982
4a19ea35
JB
5983 * ppc-linux-nat.c (store_register, fetch_register): Remove
5984 incorrect assertions. Simplify and generalize handling of
5985 transfers whose sizes are not multiples of, or less than, sizeof
5986 (PTRACE_XFER_TYPE).
5987
b9b5d7ea
JJ
59882004-06-04 Jeff Johnston <jjohnstn@redhat.com>
5989
5990 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
5991 as a new thread event.
720c7d64 5992 * thread-db.c (thread_get_info_callback): If the thread is a
b9b5d7ea 5993 zombie, return TD_THR_ZOMBIE.
720c7d64 5994 (thread_from_lwp): If thread_get_info_callback returns
b9b5d7ea
JJ
5995 TD_THR_ZOMBIE, check if the thread is still on the thread list
5996 and return a -1 ptid if not found.
5997 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
5998 change the status to TARGET_WAITKIND_SPURIOUS.
5999
c8a3b559
CV
60002004-06-03 Corinna Vinschen <vinschen@redhat.com>
6001
6002 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
6003 double values in little endian mode.
6004
20605361
AC
60052004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
6006
6007 Committed by Andrew Cagney.
6008 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
6009 after last enum constant to avoid error from IBM C
6010 compiler.
6011
bc97b3ba
JB
60122004-06-02 Jim Blandy <jimb@redhat.com>
6013
6014 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
6015 to 'message', and make it local to the lone block that uses it.
6016
1da28ab0
JB
6017 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
6018
4c4b4cd2
PH
60192004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
6020
8a2225b2
PH
6021 * ada-exp.y: Update copyright notice.
6022 Include block.h.
6023
6024 Replace REGNAME, LAST, INTERNAL_VARIABLE with
6025 SPECIAL_VARIABLE and unify the treatment of these cases.
6026
6027 (write_attribute_call0): Remove.
6028 (write_attribute_call1): Remove.
6029 (write_attribute_calln): Remove.
6030 (save_qualifier): Add missing semicolon.
6031
6032 (simple_exp,exp): Decomment (i.e., reactivate) code that was
6033 temporarily disabled to allow compilation with FSF head version.
6034
6035 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
6036 use individual operators (OP_*) for all attributes.
6037 (exp syntax): Use write_int.
6038 Handle STRING literals with OP_STRING.
6039 (variable syntax): Add limit parameter to calls to
6040 write_object_renaming.
6041
6042 (temp_parse_space): New definition to hold entities that need
6043 only live until the next call to ada_parse.
6044 (string_to_operator): Rename fields of ada_opname_table entries.
6045
6046 (write_var_from_sym): Record block.
6047 (write_var_from_name): Minor reformatting.
6048 Make sure saved name is properly encoded in the case of multiple
6049 matches, and set its language to Ada.
6050 Update comment.
6051 Modify to indicate unresolved name as symbol in the UNRESOLVED
6052 namespace, allocated in temp_parse_space.
6053 (write_int): New function.
6054
6055 (write_object_renaming): Add max_depth parameter to limit
6056 chains of object renamings.
6057 Handle case where root of renaming expression is itself a renaming.
6058 Use temp_parse_space for temporary name buffer.
6059 Handle renamings to dereferenced pointers (___XEXA suffices).
6060
6061 (ada_parse, yyerror, string_to_operator,
6062 write_var_from_sym, write_var_from_name, write_attribute_call0,
6063 write_attribute_call1, write_attribute_calln,
6064 write_object_renaming): Protoize.
6065
6066 (_initialize_ada_exp): New function.
6067
6068 * ada-lang.c: Update copyright notice.
6069 General terminology change to conform to GNAT compiler usage:
6070 mangle => encode, demangle => decode
6071 Include gdb_obstack.h.
6072 Include gdb_regex.h
6073 Include frame.h
6074 Include hashtab.h
6075 Include completer.h
6076 Include gdb_stat.h
6077 Include block.h
6078 Include infcall.h
6079
6080 (ADA_RETAIN_DOTS): Make sure this is defined.
6081 (TRUNCATION_TOWARDS_ZERO): Define.
6082 (struct string_vector): Define.
6083 (unresolved_names): Remove definition.
6084 (xnew_string_vector): New function.
6085 (string_vector_append): New function.
6086 (extract_string): Make static.
6087 (ada_unqualified_name): New function.
6088 (add_angle_brackets): New function.
6089 (function_name_from_pc): New function.
6090 (place_on_stack): Rename to ensure_lval.
6091
6092 (ensure_lval): Renamed from place_on_stack.
6093 Make identity on lvals.
6094 Update comment.
6095 (is_nonfunction): New interface.
6096 Only symbols in LOC_CONST class can be enumerals.
6097 (fill_in_ada_prototype): Remove; now independent of language.
6098 (add_defn_to_vec): Add obstack and symtab arguments.
6099 Use obstack to hold collected definitions.
6100 (num_defns_collected): New function.
6101 (defns_collected): New function.
6102 (ada_resolve_subexp): Rename to resolve_subexp.
6103 (resolve_subexp): Renamed from ada_resolve_subexp.
6104 (ada_op_name): Return non-const result.
6105 (ada_decoded_op_name): Renamed from ada_op_name, now used for
6106 other purposes.
6107
6108 (to_fixed_array_type): Add declaration.
6109 (coerce_unspec_val_to_type): Remove offset parameter.
6110 (find_sal_from_funcs_and_line): New interface.
6111 (find_line_in_linetable): Ditto.
6112
6113 (all_sals_for_line): Rename to ada_sals_for_line and make
6114 global.
6115 Add new parameter. When set, do not ask the user to choose the
6116 instance, but use the first one found instead.
6117 Use given line number in returned sals.
6118 Fix comment.
6119 Skip the prologue if funfirstline is set.
6120 Correct for memory leak when 0 lines found.
6121
6122 (value_pos_atr): Use pos_atr.
6123 (pos_atr): New function.
6124 (standard_lookup): Add block parameter.
6125
6126 (makeTimeStart): Remove declaration and uses.
6127 (makeTimeStop): Remove declaration and uses.
6128
6129 (ada_completer_word_break_characters): Allow for VMS.
6130 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
6131 (raise_sym_name): New constant.
6132 (raise_unhandled_sym_name): New constant.
6133 (raise_assert_sym_name): New constant.
6134 (process_raise_exception_name): New constant.
6135 (longest_exception_template): New constant.
6136 (warning_limit): New variable to limit warnings during expression
6137 evaluation.
6138 (warnings_issued): New variable to keep track of warnings issued.
6139 (known_runtime_file_name_patterns): New constant.
6140 (known_auxiliary_function_name_patterns): New constant.
6141 (symbol_list_obstack): New variable.
6142
6143 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
6144 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
6145 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
6146 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
6147 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
6148 ada_variant_discrim_name, field_alignment, dynamic_template_type,
6149 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
6150 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
6151 and strcmp.
6152
6153 (ada_get_field_index): New function.
6154 (lim_warning): New function.
6155 (ada_translate_error_message): New function.
6156 (MAX_OF_SIZE): New function.
6157 (MIN_OF_SIZE): New function.
6158 (UMAX_OF_SIZE): New function.
6159 (UMIN_OF_SIZE): New function.
6160 (discrete_type_high_bound): New function.
6161 (discrete_type_low_bound): New function.
6162 (base_type): New function.
6163 (do_command): Remove.
6164
6165 (ada_update_initial_language): Use language_ada, not language_unknown.
6166 (ada_encode): Renamed from ada_mangle.
6167 Obey ADA_RETAIN_DOTS.
6168 (ada_decode): Renamed from ada_demangle.
6169 Update coding conventions.
6170 (decoded_names_store): New hash table.
6171 (ada_decode_symbol): New function.
6172 (ada_la_decode): New function.
6173
6174 (modify_general_field): Correct computations of offset and bit
6175 position.
6176 (desc_base_type): Handle ref types, too.
6177 (ada_is_direct_array_type): New function.
6178
6179 (ada_is_simple_array): Rename to ada_is_simple_array_type.
6180 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
6181 (ada_is_bogus_array_descriptor,ada_type_of_array,
6182 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
6183 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
6184 ada_is_array_descriptor_type.
6185
6186 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
6187 (ada_is_packed_array_type): Handle pointers or
6188 references to packed arrays as well.
6189 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
6190 (decode_packed_array_type): Search for the packed array type
6191 symbol in the currently selected block and associated
6192 superblocks too.
6193 Use lookup_symbol again.
6194
6195 (decode_packed_array): Handle pointers and references.
6196 Update call to coerce_unspec_val_to_type.
6197 (decode_packed_array_type,value_subscript_packed): Limit warnings.
6198 (ada_value_primitive_packed_val): Improve comment.
6199
6200 (ada_index_type): Substitute int type for "undefined".
6201 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
6202 ada_array_langth, ada_is_string_type): Use renamed
6203 ada_is_simple_array_type.
6204 (empty_array): New function.
6205
6206 (ada_resolve): Rename to resolve.
6207 (resolve): Make static.
6208 Call renamed resolve_subexp.
6209 Update comment.
6210 (ada_resolve_subexp): Rename to resolve_subexp.
6211 (resolve_subexp): Update comment.
6212 Decomment disabled code.
6213 Add LOC_COMPUTED* cases.
6214 Modify to use temporary struct symbols (marked as being in
6215 UNDEF_NAMESPACE) to indicate unresolved names, instead of
6216 OP_UNRESOLVED_VALUE.
6217 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
6218 Add OP_STRING case.
6219 Remove OP_ARRAY.
6220 Use SYMBOL_PRINT_NAME instead of ada_demangle.
6221 Use new ada_lookup_symbol_list interface.
6222 Use new ada_resolve_function interface.
6223 Remove OP_TYPE case.
6224
6225 (ada_args_match): Idiot proof against null actuals.
6226 Use intermediate variables to clarify.
6227 (ada_resolve_function): Update comment and interface.
6228 (mangled_ordered_before): Rename to encoded_ordered_before and
6229 update comment.
6230 (sort_choices): Update comment and interface.
6231 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
6232 (user_select_syms): New interface.
6233 Use new sort_choices interface.
6234 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
6235 (possible_user_operator_p): Idiot-proof against null values.
6236 (ada_simple_renamed_entity): Don't make cleanup; rely on
6237 caller to free result string.
6238 Remove const from return type.
6239 (make_array_descriptor): Rename uses of place_on_stack to
6240 ensure_lval.
6241 Make sure that arrays are on stack.
6242
6243 (HASH_SIZE): Define.
6244 (struct cache_entry): Define.
6245 (cache_space): Define.
6246 (cache): Define.
6247 (clear_ada_sym_cache): New function.
6248 (find_entry): New function.
6249 (lookup_cached_symbol): New function.
6250 (defn_vector_size): Define.
6251 (cache_symbol): New function.
6252 (defn_symbols): Remove.
6253
6254 (standard_lookup): Use lookup_symbol_in_language to get effect of
6255 C lookup.
6256 Cache results.
6257
6258 (symbol_completion_match): New function.
6259 (symbol_completion_add): New function.
6260 (ada_make_symbol_completion_list): New function.
6261
6262 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
6263 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
6264 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
6265 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
6266
6267 (ada_lookup_simple_minsym): New function.
6268 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
6269
6270 (add_symbols_from_enclosing_procs): New interface.
6271 Conditionalize more helpfully.
6272 Don't bother if program isn't running.
6273 Use new interface to get_frame_block.
6274 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
6275
6276 (remove_extra_symbols): New interface.
6277 (xget_renaming_scope): New function.
6278 (is_package_name): New function.
6279 (renaming_is_visible): New function.
6280 (remove_out_of_scope_renamings): New function.
6281
6282 (ada_lookup_symbol_list): New interface.
6283 Properly reinitialize the symbol list obstack.
6284 Don't call add_symbols_from_enclosing_procs if we start from a
6285 static or global block.
6286 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
6287 add_symbols_from_enclosing_procs.
6288 Add symtab data to cached entries.
6289 Handle symbols prefixed with
6290 "standard__" specially; strip prefix and don't look in local symbols.
6291 Do not include out of scope renaming symbols in list of
6292 symbols returned.
6293 Add const to block parameter.
6294 Move check for non-local, non-global symbols earlier.
6295 Remove timing stuff.
6296 (ada_lookup_symbol): New interface.
6297 Find symtab as well.
6298 (ada_lookup_symbol_nonlocal): New function.
6299
6300 (is_name_suffix): Enhance suffix detection to recognize
6301 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
6302 (is_dot_digits_suffix): New function.
6303 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
6304
6305 (ada_add_block_symbols): New interface. Use obstack to return results
6306 in a vector of struct ada_symbol_infos. Add symtab argument.
6307 Use new interface to add_defn_to_vec.
6308 Remove calls to fill_in_ada_prototype.
6309 Use BLOCK_BUCKETS, BLOCK_BUCKET.
6310
6311 (ada_finish_decode_line_1): Add const qualification to local to fix
6312 warning.
6313 Start looking in static block for functions to avoid attempts
6314 to search frame chain for up-level variables.
6315 Adapt to new ada_sals_for_line interface.
6316 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
6317 Handle quoting of the function name inside the spec string.
6318 Skip prologue when funfirstline is set and update the
6319 function documentation to that effect.
6320
6321 (debug_print_lines, debug_print_block, debug_print_blocks,
6322 debug_print_symtab): Remove.
6323
6324 (ada_main_name): New function.
6325 (ada_exception_breakpoint_type): New function.
6326 (is_known_support_routine): New function.
6327 (ada_find_printable_frame): Renamed from find_printable_frame and made
6328 global.
6329 Remove level parameter.
6330 Use new interface to select_frame.
6331
6332 (begin_command): Remove.
6333 (ada_adjust_exception_stop): New function.
6334 (ada_print_exception_stop): New function.
6335 (exception_name_from_cond): New function.
6336 (ada_report_exception_break): Replace disabled code with
6337 conditionalization on GNAT_GDB.
6338 Get the exception name from the condition string.
6339 Remove and move functionality into new functions
6340 ada_print_exception_breakpoint_task and
6341 ada_print_exception_breakpoint_nontask.
6342 (error_breakpoint_runtime_sym_not_found): New function.
6343 (is_runtime_sym_defined): New function.
6344 (ada_breakpoint_rewrite): Uncomment suppressed code.
6345 Use symbolic error-message and runtime-symbol names.
6346 Surround runtime symbol names in quotes.
6347 Allow non-specific breakpoints on exceptions and assertions before
6348 program starts.
6349
6350 (ada_is_tagged_type): Add parameter.
6351 (ada_is_tag_type): New function.
6352 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
6353 (ada_variant_discrim_type): Ditto.
6354 (value_tag_from_contents_and_address): New function.
6355 (type_from_tag): New function.
6356 (struct tag_args): New structure used to communicate with
6357 ada_tag_name_1.
6358 (ada_tag_name_1): New function.
6359 (ada_tag_name): New function.
6360
6361 (ada_scan_number): Update comment.
6362 (find_struct_field): New function.
6363 (ada_search_struct_field): Make static.
6364 (ada_value_struct_elt): New version that returns references when
6365 given pointers or references to structs.
6366 (ada_lookup_struct_elt_type): Add 'refok' parameter.
6367 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
6368 interface.
6369 (ada_value_ind): Use new ada_to_fixed_value interface.
6370 (ada_coerce_ref): Ditto.
6371 (field_offset): Remove.
6372
6373 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
6374 (ada_find_renaming_symbol): New function.
6375 (ada_prefer_type): Prefer named types over unnamed ones.
6376 (variant_field_index): New function.
6377 (contains_variant_part): Removed: subsumed by variant_field_index.
6378 (ada_template_to_fixed_record_type): New function, mostly from
6379 template_to_fixed_record_type.
6380 (template_to_fixed_record_type):
6381 Do not scan the type fields beyond the last one; prevents a
6382 potential SEGV.
6383 Handle case where variant field is listed BEFORE discriminant it
6384 depends on.
6385 Fix calculation of record length when bit length is
6386 not evenly divisible by char length.
6387 Move code to ada_template_to_fixed_record_type and call it.
6388
6389 (template_to_static_fixed_type): Revise comment.
6390 Modify to work on ordinary record types as well as templates,
6391 so as to handle fields that use ___XVE or ___XVU encodings.
6392 (to_record_with_fixed_variant_part): Fill out comment.
6393 Initialize C++ stuff in right type.
6394 Allow case where DVAL is null.
6395 Handle case where variant field is not last.
6396 Fix typo concerning record length.
6397 (to_fixed_record_type): Decomment disabled code.
6398 (to_fixed_record_type): Use variant_field_index instead of
6399 contains_variant_part.
6400 (to_fixed_variant_branch_type): Ditto.
6401 (to_fixed_array_type): Decomment disabled code.
6402 (ada_to_fixed_type): Convert tagged types to the specific type.
6403 Deactivate the size-check for array types in order to avoid
6404 some false size alarms.
6405 (to_static_fixed_type): Decomment disabled code.
6406 Modify to call template_to_static_fixed_type
6407 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
6408 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
6409 Remove valaddr argument, as it is never really used.
6410 (ada_to_fixed_value): Change interface to act on single struct value*
6411 operand.
6412 (adjust_pc_past_prologue): New function.
6413 (ada_attribute_name): Modify to take enum exp_opcode argument.
6414
6415 (ada_enum_name): Recognize new homonym-distinguishing convention.
6416 Adjust local variable's type to remove compiler warning.
6417 Fix a small problem in the part that unqualifies the enumeration name.
6418 (ada_value_binop): New function.
6419 (ada_value_equal): New function.
6420
6421 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
6422 Don't give error message when not doing normal evaluation
6423 and a tagged type doesn't seem to contain a structure member.
6424 Give error message for packed arrays.
6425 For indexing arrays, handle pointers to packed arrays correctly.
6426 Handle case of 'first and 'last attributes of bare integral type
6427 without encoded subtype info.
6428 Remove some unnecessary casts.
6429 Fix uninitialized value of type in computing 'first, 'last, or 'length
6430 of array object.
6431 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
6432 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
6433 calls.
6434 Attributes are now exp_opcode values.
6435 Correct treatment of 'modulus.
6436 Better error message for taking 'length of wrong kind of type;
6437 improve comment.
6438 Change EVAL_NORMAL to noside for consistency.
6439 Use ada_value_binop for DIV, MOD, REM.
6440 Make special case out of array of length 0, since an argument
6441 of 0 upsets some platforms' malloc.
6442 Use OP_STRING instead of OP_ARRAY.
6443 For slice, add check that we have an array type before extracting
6444 a slice out of it. Avoids a SEGV.
6445 When evaluating an array slice, if the array type is a reference to
6446 an aligner type, then replace the aligner type by the actual type.
6447 Decomment disabled code.
6448 Remove some dead code.
6449 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
6450 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
6451 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
6452 and UNOP_MBR to UNOP_IN_RANGE.
6453 If an array type has a parallel ___XVE type, then use it.
6454 Turn arrays into pointers for lvalue arrays.
6455 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
6456 bounds error and handle 0-length slices.
6457 Use lim_warning.
6458 When selecting fields, apply ada_to_fixed_value (because the fields
6459 might have ___XVU or ___XVE encodings even if not dynamic.)
6460 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
6461 (ada_is_system_address_type): New function.
6462
6463 (get_var_value): Use new interface to ada_lookup_symbol_list.
6464 (get_int_var_value): New interface.
6465 (to_fixed_range_type): Allow unknown bound, with warning.
6466 (ada_is_modular_type): Decomment disabled code.
6467 (ADA_OPERATORS): New definition.
6468 (ada_operator_length): New function.
6469 (ada_expr_op_name): New function.
6470 (ada_forward_operator_length): New function.
6471 (ada_dump_subexp_body): New function.
6472 (ada_print_subexp): New function.
6473 (ada_exp_descriptor): New constant.
6474 (ada_op_print_tab): Add 'size. Remove FIXMEs.
6475 (ada_language_defn): Add ada_exp_descriptor entry.
6476 Change ada_parse => parse.
6477 Add post-parser entry.
6478 Use ada-specific non-local symbol lookup.
6479 Don't use C-style arrays.
6480 String lower-bound is 1.
6481 Decomment disabled code.
6482 (parse): New function.
6483 New fields ada_translate_error_message, ada_lookup_symbol,
6484 ada_lookup_minimal_symbol.
6485
6486 * ada-lang.h: Update copyright dates.
6487 Replace the mangle/demangle terminology throughout by the
6488 more appropriate encode/decode one.
6489 Include breakpoint.h.
6490 Forward declare struct partial_symbol, struct block.
6491 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
6492 (EXTRACT_ADDRESS): Remove.
6493 (EXTRACT_INT): Remove.
6494 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
6495 (MAX_ENCLOSING_FRAME_LEVELS): Define.
6496 (MAX_RENAMING_CHAIN_LENGTH): Define.
6497 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
6498
6499 (enum task_states): Remove.
6500 ada_task_states: Remove.
6501 (fat_string): Remove.
6502 (struct entry_call): Remove.
6503 (struct task_fields): Remove.
6504 (struct task_entry): Remove.
6505
6506 (struct ada_symbol_info): Define.
6507 (enum ada_attribute): Remove.
6508 (enum ada_operator): Define.
6509
6510 (ada_get_field_index): Declare.
6511 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
6512 (ada_is_simple_array): Rename to ada_is_simple_array_type.
6513 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
6514 (ada_lookup_symbol_list): New interface.
6515 (ada_decode_symbol): Declare.
6516 (ada_decode): Declare.
6517 (ada_lookup_symbol): New interface.
6518 (ada_update_initial_language): Declare.
6519 (ada_lookup_simple_minsym): Declare.
6520 (user_select_syms): New interface.
6521 (ada_sals_for_line): Declare.
6522 (ada_is_tagged_type): New interface.
6523 (ada_tag_name): Declare.
6524 (ada_lookup_struct_elt_type): Remove declaration.
6525 (ada_search_struct_field): Remove declaration.
6526 (ada_attribute_name): New interface.
6527 (ada_is_system_address_type): Declare.
6528 (ada_to_fixed_value): Remove declaration.
6529 (ada_template_to_fixed_record_type_1): Declare.
6530 (get_int_var_value): New interface.
6531 (ada_find_any_symbol): Declare.
6532 (ada_find_renaming_symbol): Declare.
6533 (ada_mangle): Rename to ada_encode.
6534 (ada_simple_renamed_entity): Remove const.
6535 (ada_main_name): Declare.
6536 (get_current_task): Rename to ada_get_current_task.
6537 (get_entry_number): Remove declaration.
6538 (ada_report_exception_break): Remove declaration.
6539 (ada_print_exception_breakpoint_nontask): Declare.
6540 (ada_print_exception_breakpoint_task): Declare.
6541 (ada_find_printable_frame): Declare.
6542
6543 * ada-lex.l: Update copyright notices.
6544 Use xmalloc and xfree instead of malloc and free.
6545 Use new interface to name_lookup.
6546 Use new interface to
6547 ada_mangle=>ada_encode.
6548 Redo handling of '$...' variable to parallel current treatment
6549 in c-exp.y.
6550 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
6551 digit_to_int, strtoulst, processInt, processReal, processId,
6552 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
6553 yywrap): Protoize.
6554
6555 (processInt): Use cast to remove harmless warning.
6556 (processReal): Modify to get rid of compiler warning on scan formats.
6557
6558 (processId): Replace xmalloc with obstack_alloc for name and remove
6559 call to ada_name_string_cleanup.
6560 Remove obsolete disabled code.
6561 (name_lookup): Ditto.
6562 New interface.
6563 Use obsavestring on temp_parse_space instead of savestring
6564 on name, and remove call to ada_name_string_cleanup.
6565 Free string returned from ada_simple_renamed_entity.
6566 Use new interface to ada_lookup_symbol_list.
6567 Decomment disabled code.
6568 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
6569 not types.
6570 When a type name lookup succeeds as a result of
6571 lookup_primitive_typename, check for regular type entry that has not
6572 yet been read in.
6573 Limit length of chain of renamed symbols we are willing to follow.
6574 Do not break names beginning with "standard__" into segments.
6575 (block_lookup): Use new interface to ada_lookup_symbol_list.
6576
6577 * ada-typeprint.c: Update copyright notice.
6578 (demangled_type_name): Rename to decoded_type_name.
6579 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
6580 (print_range_bound): Correct handling of negative
6581 bounds that make the index type looked unsigned under STABS.
6582 (print_dynamic_range_bound): Use new interface to get_int_var_value.
6583 (print_range_type_named): Use the builtin int type if no type
6584 corresponding to the given type name could be found.
6585 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
6586 Add some bullet-proofing.
6587 (print_variant_clauses): Allow for variant branches with ___XVU
6588 encodings that are not dynamic fields.
6589 Use new interface to ada_is_tagged_type.
6590 (print_record_type): Allow for fields with ___XVE encodings that
6591 are not dynamic fields.
6592 Use new interface to ada_is_tagged_type.
6593 (ada_print_type): ada_is_array_descriptor =>
6594 ada_is_array_descriptor_type.
6595
6596 * ada-valprint.c: Update copyright notice.
6597 Include gdb_string.h
6598 Include infcall.h
6599 (ui_memcpy): New function.
6600 (ada_print_floating): New function.
6601 (ada_print_str): Order arguments correctly.
6602 Correct handling of empty arrays and arrays of 0-length items.
6603 ada_is_array_descriptor => ada_is_array_descriptor_type
6604 Print values of type System.Address in hexadecimal format.
6605 Use ada_print_floating to print floating-point numbers in Ada format.
6606 Print class tag values with type names.
6607 No longer print the address of reference values. Avoids
6608 a potential confusion.
6609 (ada_value_print): Stop printing the object type for reference
6610 values, but preserve that behavior for access types. Avoids
6611 a potential confusion.
6612 Simplify one conditional expression, as the first part is now
6613 necessarily true.
6614 ada_is_array_descriptor => ada_is_array_descriptor_type
6615 Add check for arrays for null records, and print them by hand.
4c4b4cd2 6616
f65f91b5
JB
66172004-06-01 Jim Blandy <jimb@redhat.com>
6618
6619 * ppc-tdep.h: Delete unused 'regoff' member.
6620 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
6621
d4687fa0
MC
66222004-06-01 Michael Chastain <mec.gnu@mindspring.com>
6623
6624 Fix PR symtab/1661.
6625 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
6626 (hpread_read_struct_type): Likewise.
6627
de169ec9
AC
66282004-06-01 Andrew Cagney <cagney@gnu.org>
6629
c6902d46
AC
6630 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
6631 instead of xasprintf.
6632 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
6633 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
6634 (mi_cmd_data_list_register_names)
6635 (mi_cmd_data_list_changed_registers)
6636 (mi_cmd_data_list_register_values)
6637 (get_register, mi_cmd_data_write_register_values)
6638 (mi_cmd_data_write_register_values)
6639 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
6640 (mi_cmd_target_download, mi_cmd_target_select)
6641 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
6642 (mi_execute_cli_command, mi_execute_async_cli_command)
6643 (mi_execute_async_cli_command): Ditto.
6644 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
6645 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
6646
6085fc2d
AC
6647 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
6648 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
6649 error_last_message instead of mi_error_last_message.
6650 * mi/mi-main.c (mi_error_last_message): Delete function.
6651
de169ec9
AC
6652 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
6653 "invalid number of columns" error. Delete redundant "out of
6654 memory" check.
6655
1fc7d519
MK
66562004-05-31 Mark Kettenis <kettenis@gnu.org>
6657
6cfb2041
MK
6658 * i386bsd-nat.c: Don't include <sys/procfs.h>.
6659 (gregset_t, fpregset_t): Remove typedefs.
6660 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
6661 (REG_OFFSET): Rename argument.
6662 (i386bsd_r_reg_offset): Rename from reg_offset.
6663 (REG_ADDR): Remove macro.
6664 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
6665 functions.
6666 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
6667 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
6668 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
6669 instead of supply_gregset.
6670 (store_inferior_registers): Use `struct reg' and `struct fpreg'
6671 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
6672 instead of fill_gregset.
6673 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
6674
1fc7d519
MK
6675 * i386bsd-nat.c: Don't include "gregset.h".
6676 (supply_gregset, fill_gregset): Make static.
6677 (supply_fpregset, fill_fpregset): Remove.
6678 * Makefile.in (i386bsd-nat.o): Update dependencies.
6679
2c34abbe
MK
66802004-05-30 Mark Kettenis <kettenis@gnu.org>
6681
448724fb
MK
6682 * fbsd-proc.c: Include "regcache.h", "regset.h" and
6683 "gdb_assert.h". Con't include "gregset.h".
6684 (fbsd_make_corefile_notes): Use regset-based core file support
6685 instead off fill_gregset and fill_fpregset.
6686 * Makefile.in (fbsd-proc.o): Update dependencies.
6687
5ca8ca7c
MK
6688 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
6689 instructions.
6690 (m88k_frame_prev_register): Simplify code a bit.
6691
593adc23
MK
6692 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
6693 (amd64_collect_fpregset): New function.
6694 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
6695
8d1b517b
MK
6696 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
6697
7fdafb5a
MK
6698 * i386-tdep.c (i386_supply_gregset): Adjust comment.
6699 (i386_collect_gregset): New function.
6700 (i386_supply_fpregset): Adjust comment.
6701 (i386_collect_fpregset): New function.
6702 (i386_regset_from_core_section): Use i386_collect_gregset and
6703 i386_collect_fpregset.
6704
8693c419
MK
6705 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
6706 handle VALUEP being null.
6707
2c34abbe
MK
6708 * regset.h (collect_regset_ftype): Unconstify fourth argument.
6709
45d134d8
MK
67102004-05-29 Mark Kettenis <kettenis@gnu.org>
6711
1698f4e7
MK
6712 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
6713
45d134d8
MK
6714 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
6715 assembler in OpenBSD 3.5-current.
6716 (amd64obsd_sigcontext_addr): Likewise.
6717
691d145a
JB
67182004-05-28 Jim Blandy <jimb@redhat.com>
6719
6720 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
6721 register set, so our regcache isn't declared "legacy" and our E500
6722 pseudoregister read and write functions aren't ignored.
6723 (rs6000_register_byte, rs6000_register_raw_size,
6724 rs6000_register_virtual_type, rs6000_register_convertible,
6725 rs6000_register_convert_to_virtual,
6726 rs6000_register_convert_to_raw): Deleted.
6727 (rs6000_register_type, rs6000_convert_register_p,
6728 rs6000_register_to_value, rs6000_value_to_register): New
6729 functions.
6730 (rs6000_gdbarch_init): Don't register
6731 gdbarch_deprecated_register_size,
6732 gdbarch_deprecated_register_bytes,
6733 gdbarch_deprecated_register_byte,
6734 gdbarch_deprecated_register_raw_size,
6735 gdbarch_deprecated_register_virtual_type,
6736 gdbarch_deprecated_register_convertible,
6737 gdbarch_deprecated_register_convert_to_virtual, or
6738 gdbarch_deprecated_register_convert_to_raw methods. Instead,
6739 register gdbarch_register_type, gdbarch_convert_register_p,
6740 gdbarch_register_to_value, and gdbarch_value_to_register methods.
6741
18ed0c4e
JB
67422004-05-26 Jim Blandy <jimb@redhat.com>
6743
6744 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
6745 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
6746 functions, updated to match the register numberings used in GCC.
6747 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
6748 rs6000_dwarf2_reg_to_regnum as register number conversions
6749 functions for STABS and Dwarf2.
6750
779af9e3
RC
67512004-05-26 Randolph Chung <tausq@debian.org>
6752
6753 * infttrace.h (target_waitkind): Forward declare type instead of pulling
6754 in header file.
6755
c23968a2
JB
67562004-05-25 Joel Brobecker <brobecker@gnat.com>
6757
6758 * NEWS: Document new "start" command.
6759
3a7d1c27
RC
67602004-05-25 Randolph Chung <tausq@debian.org>
6761
6762 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
6763 hppa-linux.
6764
43613416
RC
67652004-05-25 Randolph Chung <tausq@debian.org>
6766
6767 * hppa-hpux-tdep.c (offsetof): Define.
6768 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
6769 (hppa32_hpux_frame_base_before_sigtramp)
6770 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
6771 (hppa64_hpux_frame_saved_pc_in_sigtramp)
6772 (hppa64_hpux_frame_base_before_sigtramp)
6773 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
6774 functions.
6775 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
6776 (hppa_hpux_sigtramp_frame_unwind_cache)
6777 (hppa_hpux_sigtramp_frame_this_id)
6778 (hppa_hpux_sigtramp_frame_prev_register)
6779 (hppa_hpux_sigtramp_frame_unwind)
6780 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
6781 (hppa_hpux_init_abi): Register sigtramp unwinder.
6782 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
6783
6d1be3f1
RC
67842004-05-25 Randolph Chung <tausq@debian.org>
6785
6786 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
6787 and multiple stack unwinds.
6788 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
6789
97c34f65
AC
67902004-05-25 Andrew Cagney <cagney@gnu.org>
6791
6792 * symfile.h (symbol_file_add_from_memory): Delete declaration.
6793 * symfile-mem.h: Delete file.
6794 * symfile-mem.c: Do not include "symfile-mem.h".
6795 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
6796 "struct bfd_section". When an error do not bother returning NULL.
6797 (add_symbol_file_from_memory_command): Use "struct bfd" and
6798 "struct bfd_section".
6799 * Makefile.in (symfile_mem_h): Delete.
6800 (symfile-mem.o): Update dependencies.
6801
e23cbd82
NR
68022004-05-25 Nick Roberts <nickrob@gnu.org>
6803
6804 * gdb-mi.el: New file.
6805
20d2ca3e
AC
68062004-05-25 Andrew Cagney <cagney@gnu.org>
6807
6808 * inftarg.c: Include "observer.h".
6809 (child_attach, child_create_inferior): Notify inferior_created.
6810 * corelow.c: Include "observer.h".
6811 (core_open): Notify inferior_created.
6812 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
6813
c27cda74
AC
68142004-05-25 Andrew Cagney <cagney@gnu.org>
6815
6816 * target.h (struct target_ops): Add from_tty to
6817 to_create_inferior.
6818 (target_create_inferior, find_default_create_inferior): Update.
6819 * infcmd.c (run_command): Update.
6820 * wince.c (child_create_inferior): Update.
6821 * win32-nat.c (child_create_inferior): Update.
6822 * uw-thread.c (uw_thread_create_inferior): Update.
6823 * thread-db.c (thread_db_create_inferior): Update.
6824 * target.c (debug_to_create_inferior)
6825 (find_default_create_inferior): Update.
6826 (maybe_kill_then_create_inferior): Update.
6827 * sol-thread.c (sol_thread_create_inferior): Update.
6828 * remote.c (extended_remote_async_create_inferior)
6829 (extended_remote_create_inferior): Update.
6830 * remote-vx.c (vx_create_inferior): Update.
6831 * remote-st.c (st2000_create_inferior): Update.
6832 * remote-sim.c (gdbsim_create_inferior): Update.
6833 * remote-sds.c (sds_create_inferior): Update.
6834 * remote-rdp.c (remote_rdp_create_inferior): Update.
6835 * remote-rdi.c (arm_rdi_create_inferior): Update.
6836 * remote-m32r-sdi.c (m32r_create_inferior): Update.
6837 * remote-e7000.c (e7000_create_inferior): Update.
6838 * procfs.c (procfs_create_inferior): Update.
6839 * ocd.c (ocd_create_inferior): Update.
6840 * ocd.h (ocd_create_inferior): Update.
6841 * nto-procfs.c (procfs_create_inferior): Update.
6842 * monitor.c (monitor_create_inferior): Update.
6843 * lin-lwp.c (lin_lwp_create_inferior): Update.
6844 * inftarg.c (child_create_inferior): Update.
6845 * hpux-thread.c (hpux_thread_create_inferior): Update.
6846 * gnu-nat.c (gnu_create_inferior): Update.
6847
1db2a798
AC
68482004-05-25 Andrew Cagney <cagney@gnu.com>
6849
6850 * MAINTAINERS: Update e-mail address.
6851
007d08bb
RC
68522004-05-24 Randolph Chung <tausq@debian.org>
6853
6854 * thread.c (info_threads_command, thread_apply_all_command)
6855 (thread_apply_command, thread_command, do_captured_thread_select):
6856 Remove HPUXHPPA-specific code.
6857
69e7b95e
RC
68582004-05-24 Randolph Chung <tausq@debian.org>
6859
6860 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
6861 unused symbols.
6862 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
6863 references.
6864
a4d5f2e0
JB
68652004-05-24 Joel Brobecker <brobecker@gnat.com>
6866
6867 * infcmd.c (kill_if_already_running): New function, extracted
6868 from run_command().
6869 (run_command): Replace extracted code by call to
6870 kill_if_already_running().
6871 (start_command): New function.
6872 (_initialize_infcmd): Add "start" command.
6873
bf2ca189
MK
68742004-05-24 Mark Kettenis <kettenis@gnu.org>
6875
6876 Add OpenBSD/m88k support.
6877 * NEWS (New native configurations): Mention OpenBSD/m88k.
6878 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
6879 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
6880 * Makefile.in (m88k_tdep_h): New variable.
6881 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
6882 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
6883 * configure.host: Add m88*-*-openbsd*.
6884 * configure.tgt: Add m88*-*-openbsd*.
6885
80fadb11
JB
68862004-05-24 Jim Blandy <jimb@redhat.com>
6887
6888 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
6889 to approve changes.
6890
19e2d14b
KB
68912004-05-24 Kevin Buettner <kevinb@redhat.com>
6892
6893 * symtab.c (fixup_section): Search section table when lookup by
6894 name fails.
6895
1b07b470
RC
68962004-05-24 Randolph Chung <tausq@debian.org>
6897
6898 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
6899 be "small_struct".
6900
368702b1
MK
69012004-05-24 Mark Kettenis <kettenis@gnu.org>
6902
5df97fde
MK
6903 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
6904 register number in regcache_raw_collect call.
6905 (m68kbsd_collect_fpregset): Likewise.
6906 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
6907
368702b1
MK
6908 * regset.h (struct regset): Add back `regset' member.
6909
a770d4ec
MK
69102004-05-23 Mark Kettenis <kettenis@gnu.org>
6911
70f9f479
MK
6912 * configure.in: Check for td_pcb in `struct thread'.
6913 * configure, config.in: Regenerated.
6914
2e16d79e
MK
6915 * dpx2-nat.c: Remove file.
6916 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
6917 (dpx2-nat.o): Remove dependencies.
6918
492cf391
MK
6919 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
6920 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
6921 (amd64obsd_supply_pcb): New function.
6922 (_initialize_amd64obsd_nat): Enable libkvm interface.
6923 * Makefile.in (amd64obsd-nat.o): Update dependencies.
6924 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
6925 (LOADLIBES): New variable.
6926
a770d4ec
MK
6927 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
6928 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
6929 (sparc32nbsd_supply_pcb): New function.
6930 (_initialize_sparcnbsd_nat): Enable libkvm interface.
6931 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
6932 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
6933 (LOADLIBES): New variable.
6934
9ea75c57
MK
69352004-05-22 Mark Kettenis <kettenis@gnu.org>
6936
2e0c3539
MK
6937 * bsd-kvm.c, bsd-kvm.h: New files.
6938 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
6939 "bsd-kvm.h".
6940 (i386fbsd_supply_pcb): New function.
6941 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
6942 (i386fbsd-nat.o): Update dependencies.
6943 (bsd_kvm_h): New variable.
6944 (bsd-kvm.o): New dependency.
6945 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
6946 (LOADLIBES): New variable.
6947
9ea75c57
MK
6948 * regset.c: Tweak comment.
6949 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
6950 macro.
6951 * regset.h: Update copyright year.
6952 (struct regset): Remove `descr' member, add `gdbarch' member.
6953 (regset_alloc): Adjust prototype and comment.
6954 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
6955 (i386_supply_fpregset): Likewise.
6956 (i386_regset_from_core_section): Update call to regset_alloc.
6957 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
6958 REGSET->arch.
6959 (i386obsd_aout_regset_from_core_section): Update call to
6960 regset_alloc.
6961 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
6962 REGSET->arch.
6963 (i386nbsd_aout_regset_from_core_section): Update call to
6964 regset_alloc.
6965 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
6966 REGSET->arch.
6967 (amd64_regset_from_core_section): Update call to regset_alloc.
6968 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
6969 REGSET->arch.
6970 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
6971 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
6972 &sparc32nbsd_gregset in sparc32_supply_gregset call.
6973 (sparc32nbsd_init_abi): Update call to regset_alloc.
6974 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
6975 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
6976 (sparc64obsd_init_abi): Update call to regset_alloc.
6977 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
6978 &sparc64nbsd_gregset in sparc64_supply_gregset call.
6979 (sparc64nbsd_init_abi): Update call to regset_alloc.
6980 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
6981 &sparc64fbsd_gregset in sparc64_supply_gregset call.
6982 (sparc64fbsd_init_abi): Update call to regset_alloc.
6983
867e2dc5
JB
69842004-05-22 Jim Blandy <jimb@redhat.com>
6985
6986 * ppc-tdep.h (spe_register_p): New declaration.
6987 (struct gdbarch_tdep): New members: ppc_acc_regnum and
6988 ppc_spefscr_regnum.
6989 * rs6000-tdep.c (spe_register_p): New function.
6990 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
6991 spefscr.
6992 (rs6000_gdbarch_init): Initialize the new members of the tdep
6993 structure.
6994
617a4cba
JB
69952004-05-21 Jim Blandy <jimb@redhat.com>
6996
0397dee1
JB
6997 * ppc-linux-nat.c (fetch_register): Move code back to be next
6998 to the comment that describes it. (Moved code, instead of
6999 comment, for symmetry with store_register.)
7000
617a4cba
JB
7001 Allocate regset structures in the gdbarch's obstack, not using
7002 xmalloc.
7003 * regset.c (regset_alloc): Renamed from regset_xmalloc.
7004 Add 'arch' argument. Allocate the regset on arch's obstack, not
7005 using xmalloc.
7006 * regset.h (regset_alloc): Update declaration.
7007 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
7008 gdbarch argument.
7009 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7010 * i386-tdep.c (i386_regset_from_core_section): Same.
7011 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7012 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7013 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7014 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7015 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7016 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7017
9aa3914d
JB
70182004-05-21 Joel Brobecker <brobecker@gnat.com>
7019
7020 * config/djgpp/fnchange.lst: Undo previous change, was useless.
7021
99c87dab
JB
70222004-05-21 Jim Blandy <jimb@redhat.com>
7023
7024 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
7025 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
7026
c2b6b4aa
JB
70272004-05-20 Jim Blandy <jimb@redhat.com>
7028
7029 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
7030
144529d0
MK
70312004-05-20 Mark Kettenis <kettenis@gnu.org>
7032
7033 * regset.h: Make prototype const-correct.
7034 * regset.c (regset_xmalloc): Make const-correct.
7035
4725b721
PH
70362004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
7037
7038 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
7039 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
7040 (symbol_search_name): Declare.
7041
7042 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
7043 (iter_name_next_hashed): Ditto.
7044 (iter_name_next_linear): Ditto.
7045 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
7046
7047 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
7048 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
7049 (symbol_search_name): New function.
7050
7051 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
7052
7053 * minsyms.c (build_minimal_symbol_hash_tables): Change
7054 test for adding to demangled hash table to check for difference
7055 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
7056
be07a590
JB
70572004-05-19 Jim Blandy <jimb@redhat.com>
7058
7059 Use a constructor function to create regset structures.
7060 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
7061 (struct regset): Use supply_regset_ftype. Add new
7062 'collect_regset' member.
7063 (regset_xmalloc): New declaration.
7064 * regset.c: New file.
7065 * am64-tdep.c (amd64_regset_from_core_section): Use
7066 regset_xmalloc to construct regset structures.
7067 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7068 * i386-tdep.c (i386_regset_from_core_section): Same.
7069 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7070 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7071 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7072 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7073 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7074 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7075 * Makefile.in (COMMON_OBS): Add regset.o.
7076 (regset.o): New rule.
7077
604368f5
JB
70782004-05-19 Joel Brobecker <brobecker@gnat.com>
7079
7080 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
7081 and pthread_cond_wait.c.
7082
82d69f8b
JB
70832004-05-18 Jim Blandy <jimb@redhat.com>
7084
7085 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
7086 before the mach-specific switch, and then let the individual cases
7087 override the defaults, rather than leaving them uninitialized
7088 until the switch and then setting them in each case.
7089
5859efe5
RC
70902004-05-18 Randolph Chung <tausq@debian.org>
7091
7092 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
7093 millicode functions.
7094
9ca80cf8
RC
70952004-05-18 Randolph Chung <tausq@debian.org>
7096
7097 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
7098 references to dld_flags_buffer consistent.
7099
ed70ba00
RC
71002004-05-18 Randolph Chung <tausq@debian.org>
7101
7102 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
7103 it for unwinding the stack.
7104
63100632
RC
71052004-05-18 Randolph Chung <tausq@debian.org>
7106
7107 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
7108 Undefine these so we can overide them using gdbarch.
7109
090ccbb7
RC
71102004-05-18 Randolph Chung <tausq@debian.org>
7111
7112 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
7113 handling for 64-bit HPUX (elf).
7114
594706e6
DJ
71152004-05-18 Daniel Jacobowitz <dan@debian.org>
7116
7117 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
7118 constants.
7119 * amd64-tdep.c (amd64_skip_prologue): Likewise.
7120 * ia64-tdep.c (examine_prologue): Likewise.
7121 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
7122 * v850-tdep.c (v850_fix_call_dummy): Likewise.
7123
e5483145
MK
71242004-05-18 Mark Kettenis <kettenis@gnu.org>
7125
7126 * vax-tdep.c (vax_return_value): Implement
7127 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7128
caed1a45
MK
71292004-05-17 Mark Kettenis <kettenis@gnu.org>
7130
7131 * vax-tdep.c (vax_return_value): Fix typo.
7132
3c0b7db2
AC
71332004-05-17 Andrew Cagney <cagney@redhat.com>
7134
5aae53e5
AC
7135 * MAINTAINERS: Mark Salter was also responsible for
7136 testsuite/config/
7137
3c0b7db2
AC
7138 * NEWS: Mention signal fixes.
7139
22b0923d
RC
71402004-05-17 Randolph Chung <tausq@debian.org>
7141
7142 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
7143 check to see if we are unwinding an export stub. Export stubs clobber
7144 the %rp in the call path and stores the original rp in a stack slot.
7145
22f2b2f3
JB
71462004-05-17 Jim Blandy <jimb@redhat.com>
7147
7148 * MAINTAINERS: Update address for J.T. Conklin.
7149
cea96d64
RC
71502004-05-17 Randolph Chung <tausq@debian.org>
7151
7152 * hppa-tdep.c: Remove superfluous #include's.
7153 * Makefile.in (hppa-tdep.o): Update dependencies.
7154
f08f6a4a
RC
71552004-05-17 Randolph Chung <tausq@debian.org>
7156
7157 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
7158 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
7159 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
7160 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
7161 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
7162 Remove static function declarations.
7163
51da707a
MK
71642004-05-17 Mark Kettenis <kettenis@gnu.org>
7165
caed1a45
MK
7166 * alphabsd-nat.c: Update copyright year.
7167 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
7168
c0c2b0db
MK
7169 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
7170 and M68K_A2_REGNUM.
7171
51da707a
MK
7172 * m68k-tdep.c (m68k_svr4_return_value): Implement
7173 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7174
8d027a04
MK
71752004-05-16 Mark Kettenis <kettenis@gnu.org>
7176
7177 * sol-thread.c Update copyright year. Fix various coding
7178 standards violations. Tweak a few comments.
7179 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
7180 Delete prototypes.
7181
0d99fdb9
RC
71822004-05-15 Randolph Chung <tausq@debian.org>
7183
7184 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
7185 as pointer instead of array reference since HPUX compiler does
7186 not accept unsized array arguments.
7187 * somsolib.c (dld_flags_buffer): Use constant array size.
7188
f7e3843a
MK
71892004-05-15 Mark Kettenis <kettenis@gnu.org>
7190
0fe85704
MK
7191 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
7192 offset with decimal offset.
7193 (amd64obsd_sigcontext_addr): Return correct address for entire
7194 signal trampoline.
7195
a54f9a00
MK
7196 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
7197 instead of get_frame_base.
7198
feae6502
MK
7199 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
7200 (fill_gregset): Use regcache_raw_collect.
7201
0382d099
MK
7202 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
7203 ppcobsd-tdep.c.
7204
f7e3843a
MK
7205 * config/sparc/tm-nbsd64.h: Remove file.
7206 * config/tm-sunos.h: Remove file.
7207
773df3e5
JB
72082004-05-15 Joel Brobecker <brobecker@gnat.com>
7209
7210 * rs6000-tdep.c (store_param_on_stack_p): New function,
7211 an improved version of some code extracted from skip_prologue().
7212 (skip_prologue): Use store_param_on_stack_p() to detect
7213 instructions saving a parameter on the stack. Detect when r0
7214 is used to save a parameter.
7215 Do not mark "li rx, SIMM" instructions as part of the prologue,
7216 unless the following instruction is also part of the prologue.
7217
95918acb
AC
72182004-05-14 Andrew Cagney <cagney@redhat.com>
7219
06f32659
AC
7220 * infrun.c (handle_inferior_event): Simplify
7221 STEP_OVER_UNDEBUGGABLE.
7222
95918acb
AC
7223 * infrun.c (handle_step_into_function): Delete function.
7224 (handle_inferior_event): Inline calls to
7225 handle_step_into_function.
7226
40711ff1 72272004-05-14 Jerome Guitton <guitton@gnat.com>
42203e46
JG
7228
7229 * rs6000-nat.c: Fix a comment.
7230
02f60eae
JB
72312004-05-12 David Anderson <davea@sgi.com>
7232
7233 Committed by Jim Blandy <jimb@redhat.com>:
7234 * regcache.c (struct regcache_descr): fix comment spelling.
7235
552e377b
JB
72362004-05-13 J. Brobecker <brobecker@gnat.com>
7237
7238 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
7239 Fixes a link link failure.
7240
349766b2
JB
72412004-05-13 J. Brobecker <brobecker@gnat.com>
7242
7243 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
7244 error that was causing the build to fail.
7245
0d4d5484
JB
72462004-05-13 J. Brobecker <brobecker@gnat.com>
7247
7248 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
7249 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
7250
0b30808c
AC
72512004-05-13 Andrew Cagney <cagney@redhat.com>
7252
7253 * infrun.c (handle_inferior_event): Check for
7254 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
7255 calls. Update comments.
7256
cdf2c5f5
JB
72572004-05-13 Jim Blandy <jimb@redhat.com>
7258
063715bf
JB
7259 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
7260 (fetch_regs_user_thread, fetch_regs_kernel_thread)
7261 (store_regs_user_thread, store_regs_kernel_thread): Use
7262 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
7263 * ppc-linux-nat.c (fill_gregset): Same.
7264 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
7265 (ppc_linux_sigtramp_cache): Same.
7266 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
7267 (ppcnbsd_sigtramp_cache_init): Same.
7268 * rs6000-nat.c (fetch_core_registers): Same.
7269 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
7270 (rs6000_frame_cache): Same.
7271
cdf2c5f5
JB
7272 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
7273 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
7274 of assuming that the gprs are numbered starting with zero.
7275 * ppc-linux-nat.c (fill_gregset): Same.
7276 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
7277 * ppcnbsd-nat.c (getregs_supplies): Same.
7278 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
7279 * rs6000-nat.c (fetch_core_registers): Same.
7280 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
7281
450bd37b
MS
72822004-05-07 Michael Snyder <msnyder@redhat.com>
7283
7284 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
7285 LOC_COMPUTED_ARG, and LOC_INDIRECT.
7286
4a72a2a6
AC
72872004-05-13 Andrew Cagney <cagney@redhat.com>
7288
7289 * infrun.c (handle_inferior_event): Use frame_unwind_id.
7290
8edfa926
BM
72912004-05-13 Bryce McKinlay <mckinlay@redhat.com>
7292
7293 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
7294 base_address for shared libraries.
7295
723e0e3d
BM
72962004-05-13 Bryce McKinlay <mckinlay@redhat.com>
7297
7298 * MAINTAINERS (write after approval): Add myself.
7299
00d4360e
UW
73002004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
7301
7302 * breakpoint.c (bpstat_stop_status): Add new argument
7303 STOPPED_BY_WATCHPOINT. Use it instead of testing
7304 target_stopped_data_address agaist 0 to check whether
7305 or not we stopped due to a hardware watchpoint.
7306 * breakpoint.h (bpstat_stop_status): Adapt prototype.
7307 * infrun.c (handle_inferior_event): Call bpstat_stop_status
7308 with new argument.
7309
ec76baa5
JB
73102004-05-12 Jim Blandy <jimb@redhat.com>
7311
7312 * configure.in: When checking whether we should use the -bbigtoc
7313 option, don't forget to restore the original value of LDFLAGS.
7314 * configure: Regenerated.
7315
f2c9ca08
AC
73162004-05-12 Andrew Cagney <cagney@redhat.com>
7317
7318 * thread.c (load_infrun_state): Delete step_sp.
7319 * infrun.c (context_switch): Ditto.
7320 * inferior.h (step_sp): Ditto.
7321 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
7322 * gdbthread.h (struct thread_info, save_infrun_state)
7323 (restore_infrun_state): Ditto.
7324
090ddb2a
UW
73252004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
7326
7327 * MAINTAINERS (write after approval): Add myself.
7328
8aad930b
AC
73292004-05-12 Andrew Cagney <cagney@redhat.com>
7330
7331 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
7332 eliminate reference to step_sp.
7333 (struct execution_control_state, init_execution_control_state)
7334 (handle_inferior_event, keep_going): Delete update_step_sp and
7335 step_sp.
7336 * infcmd.c (step_sp): Note that variable is unused.
7337
922d5ae0
AC
73382004-05-11 Andrew Cagney <cagney@redhat.com>
7339
7340 * infrun.c (step_over_function): Delete function.
7341 (handle_step_into_function): Use insert_step_resume_breakpoint.
7342 (insert_step_resume_breakpoint): Fix assertion.
7343
017c5ca5
NR
73442004-05-11 Nick Roberts <nickrob@gnu.org>
7345
7346 * utils.c (defaulted_query): Just use the normal query input type
7347 when printing the annotations.
7348
42edda50
AC
73492004-05-11 Andrew Cagney <cagney@redhat.com>
7350
7351 * infrun.c (handle_inferior_event): Simplify code handling
7352 step-into or return-from a signal trampoline.
7353
d28b44a7
AC
73542004-05-11 Andrew Cagney <cagney@redhat.com>
7355
7356 * ppcnbsd-tdep.c: Include "gdb_assert.h".
7357 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
7358
383f0f5b
JB
73592004-05-10 Jim Blandy <jimb@redhat.com>
7360
d0b57c3a
JB
7361 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
7362 with a call to internal_error.
7363
383f0f5b
JB
7364 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
7365 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
7366 processor variant lacks those registers.
7367 (ppc_floating_point_unit_p): Change description to make it clear
7368 that this returns info about the ISA, not the ABI.
7369 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
7370 return true or false by checking tdep->ppc_fp0_regnum and
7371 tdep->ppc_fpscr_regnum. The original code replicated the BFD
7372 arch/mach switching done in rs6000_gdbarch_init; it's better to
7373 keep that logic there, and just check the results here.
7374 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
7375 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
7376 floating-point registers.
7377 (ppc_supply_fpregset, ppc_collect_fpregset)
7378 (rs6000_push_dummy_call, rs6000_extract_return_value)
7379 (rs6000_store_return_value): Assert that we have floating-point
7380 registers.
7381 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
7382 (rs6000_frame_cache): Don't note the locations at which
7383 floating-point registers were saved if we have no fprs.
7384 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
7385 registers.
7386 (fetch_regs_user_thread, fetch_regs_kernel_thread)
7387 (store_regs_user_thread, store_regs_kernel_thread): Only call
7388 supply_fprs / fill_fprs if we actually have floating-point
7389 registers.
7390 (special_register_p): Check ppc_fpscr_regnum before matching
7391 against it.
7392 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
7393 supply / collect fpscr if we don't have it.
7394 * ppc-bdm.c: #include "gdb_assert.h".
7395 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
7396 have floating-point registers, since I can't test this code on
7397 FP-free systems to adapt it.
7398 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
7399 fpscr and floating point register numbers if they don't exist.
7400 (fetch_register): Assert that we have floating-point registers
7401 before we reach the code that handles them.
7402 (store_register): Same. And use tdep instead of calling
7403 gdbarch_tdep again.
7404 (fill_fpregset): Don't try to collect FP registers and fpscr if we
7405 don't have them.
7406 (ppc_linux_sigtramp_cache): Don't record the saved locations of
7407 fprs and fpscr if we don't have them.
7408 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
7409 don't have them.
7410 * ppcnbsd-nat.c: #include "gdb_assert.h".
7411 (getfpregs_supplies): Assert that we have floating-point registers.
7412 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
7413 * ppcobsd-tdep.c: #include "gdb_assert.h".
7414 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
7415 have floating-point registers.
7416 * rs6000-nat.c (regmap): Don't match against the fpscr and
7417 floating point register numbers if they don't exist.
7418 (fetch_inferior_registers, store_inferior_registers,
7419 fetch_core_registers): Only fetch / store / supply the
7420 floating-point registers and the fpscr if we have them.
7421 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
7422 (ppcobsd-tdep.o): Update dependencies.
7423
15960608
AC
74242004-05-10 Andrew Cagney <cagney@redhat.com>
7425
7426 * infrun.c (through_sigtramp_breakpoint): Delete variable.
7427 (context_switch): Do not switch through_sigtramp_breakpoint.
7428 * gdbthread.h (save_infrun_state, load_infrun_state)
7429 (struct thread_info): Delete through_sigtramp_breakpoint parameter
7430 and structure member.
7431 * thread.c (load_infrun_state, save_infrun_state): Update.
7432
5ab5aa0f
MK
74332004-05-10 Mark Kettenis <kettenis@gnu.org>
7434
7435 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
7436
da78b0e7
DJ
74372004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
7438
7439 * acinclude.m4: Quote macro names being defined by AC_DEFUN
7440 throughout.
7441 * aclocal.m4: Regenerate.
7442
cca0d3b0
NW
74432004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
7444
7445 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
7446
d303a6c7
AC
74472004-05-10 Andrew Cagney <cagney@redhat.com>
7448
7449 * infrun.c (check_sigtramp2): Delete function.
7450 (handle_inferior_event): When single stepping, and taking a
7451 signal, set a breakpoint at the signal return address. Delete
7452 redundant calls to check_sigtramp2.
7453 (insert_step_resume_breakpoint): New function.
7454 (through_sigtramp_breakpoint, handle_inferior_event)
7455 (follow_exec, wait_for_inferior, fetch_inferior_event)
7456 (currently_stepping, keep_going): Delete most uses of
7457 through_sigtramp_breakpoint, not that it should be deleted.
7458 (delete_breakpoint_current_contents): Delete function.
7459
03f4cc20
RC
74602004-05-10 Randolph Chung <tausq@debian.org>
7461
7462 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
7463 target.
7464 * config/pa/tm-linux.h: New file.
7465
37fc812e
DJ
74662004-05-10 Daniel Jacobowitz <drow@mvista.com>
7467
7468 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
7469 of prefixes. Don't print the prefix twice in the CLI.
7470
26c0b942
JB
74712004-05-10 Jim Blandy <jimb@redhat.com>
7472
2e56e9c1
JB
7473 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
7474 collect all the gprs.
7475
26c0b942
JB
7476 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
7477 loop collecting gprs.
7478
dc497459
AC
74792004-05-09 Andrew Cagney <cagney@redhat.com>
7480
7481 * remote-vx.c (net_step): Delete step-range code.
7482 * remote.c (remote_resume, init_all_packet_configs)
7483 (set_remote_protocol_E_packet_cmd)
7484 (show_remote_protocol_E_packet_cmd)
7485 (remote_protocol_E, show_remote_cmd, _initialize_remote)
7486 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
7487 (show_remote_protocol_e_packet_cmd): Ditto.
7488
0543f387
MK
74892004-05-09 Mark Kettenis <kettenis@gnu.org>
7490
c481d1ca
MK
7491 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
7492
f626a069
MK
7493 * hppa-tdep.h: Update copyright year.
7494 (struct trad_frame_saved_reg): Add opaque declaration.
7495
6fa57a7d
MK
7496 * amd64-tdep.c (amd64_return_value): Implement
7497 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7498
e47577ab
MK
7499 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
7500 (m68k_value_to_register): New functions.
7501 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
7502 value_to_register.
7503
31db7b6c
MK
7504 * defs.h (enum return_value_convention): Add
7505 RETURN_VALUE_ABI_RETURNS_ADDRESS and
7506 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
7507 * infcmd.c (legacy_return_value): New function.
7508 (print_return_value): Rwerite to implement
7509 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7510 * values.c (using_struct_return): Check for inequality to
7511 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
7512 RETURN_VALUE_STRUCT_CONVENTION.
7513 * i386-tdep.c (i386_return_value): Implement
7514 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7515
0543f387
MK
7516 * vax-tdep.c: Tweak comments. Reorder include files. Don't
7517 include "symtab.h", "opcode/vax.h" and "inferior.h".
7518 (vax_skip_prologue): Replace calls to read_memory_integer by calls
7519 to read_memory_unsigned_integer.
7520 (vax_gdbarch_init): Reorder.
7521 (_initialize_vax_tdep): Spell out prototype.
7522 * Makefile.in (vax-tdep.o): Update dependencies.
7523
0c93b7b6
AC
75242004-05-08 Andrew Cagney <cagney@redhat.com>
7525
e6b55ae2
AC
7526 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
7527 * target.c (target_detach, target_disconnect): Ditto.
7528
1ac839b8
AC
7529 * infcall.c (call_function_by_hand): When no
7530 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
7531 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
7532 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
7533 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7534 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7535
28954179
AC
7536 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
7537 * gdbarch.h, gdbarch.c: Re-generate.
7538 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7539 deprecated_fix_call_dummy.
7540 * v850-tdep.c (v850_gdbarch_init): Ditto.
7541 * infcall.c (call_function_by_hand): Do not call
7542 DEPRECATED_FIX_CALL_DUMMY.
7543
434b87dd
AC
7544 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
7545 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
7546 * gdbarch.h, gdbarch.c: Re-generate.
7547 * arm-linux-tdep.c (arm_linux_call_dummy_words)
7548 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
7549 deprecated_sizeof_call_dummy_words.
7550 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
7551 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7552 * v850-tdep.c (v850_gdbarch_init): Ditto.
7553 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
7554 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
7555 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7556 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7557 * arch-utils.h (legacy_call_dummy_words)
7558 (legacy_sizeof_call_dummy_words): Delete declarations.
7559 * arch-utils.c (legacy_call_dummy_words)
7560 (legacy_sizeof_call_dummy_words): Delete variables.
7561
58d28df8
AC
7562 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
7563 * gdbarch.h, gdbarch.c: Re-generate.
7564 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
7565 * infcall.c (call_function_by_hand): Eliminate call to
7566 DEPRECATED_PUSH_DUMMY_FRAME.
7567 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
7568 push_dummy_frame.
7569 (ns32k_push_dummy_frame): Delete function.
7570
e4a2df64
AC
7571 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7572 deprecated_call_dummy_breakpoint_offset or
7573 deprecated_call_dummy_start_offset.
7574 * dummy-frame.c, arm-tdep.c: Update comments.
7575 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
7576 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
7577 * gdbarch.h, gdbarch.c: Re-generate.
7578
d3712828
AC
7579 * infcall.c (legacy_push_dummy_code): Delete function.
7580 (push_dummy_code): Delete call.
7581
7a882905
AC
7582 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
7583 * gdbarch.h, gdbarch.c: Re-generate.
7584 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
7585 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
7586 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
7587 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
7588
0ec5872b
AC
7589 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
7590 (struct frame_info): Delete opaque declaration.
7591 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
7592 * frame.c (get_frame_type): Delete call.
7593
0c93b7b6
AC
7594 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
7595 pc_in_call_dummy.
7596 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
7597 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
7598
75536971
MK
75992004-05-08 Mark Kettenis <kettenis@gnu.org>
7600
527ca6bb
MK
7601 * alphanbsd-tdep.c: Include "gdb_string.h".
7602 * armnbsd-tdep.c: Update copyright year.
7603 Include "gdb_string.h".
7604 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
7605 dependencies.
7606
d39fdc61
MK
7607 * delta68-nat.c: Remove file.
7608 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
7609 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
7610 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
7611 (delta68-nat.o): Remove dependency.
7612
75536971
MK
7613 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
7614 function.
7615 (m68k_gdbarch_init): Don't set
7616 deprecated_frameless_function_invocation.
7617
f4ca1d1f
RC
76182004-05-07 Randolph Chung <tausq@debian.org>
7619
7620 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
7621 read_memory_nobpt for code reading when doing frame unwinding.
7622 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
7623
2f0e8c7a
RC
76242004-05-07 Randolph Chung <tausq@debian.org>
7625
7626 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
7627 instead of sp, handle sigaltstack case.
7628 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
7629 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
7630 signal handler and not that of the caller.
7631 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
7632 hppa_linux_sigtramp_find_sigcontext.
7633
959464ff
RC
76342004-05-07 Randolph Chung <tausq@debian.org>
7635
7636 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
7637 hppa-linux-nat.c.
7638 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
7639 * hppa-linux-nat.c (fetch_register, store_register): Define.
7640 (fetch_inferior_registers, store_inferior_registers): Define.
7641 (supply_gregset): Add comment and clean up some unneeded code.
7642 (fill_gregset): Add comment and fix so that it saves registers in
7643 the right place in the gregset.
7644 (fill_fpregset): Fix buffer overrun problem.
7645 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
7646
0da28f8a
RC
76472004-05-07 Randolph Chung <tausq@debian.org>
7648
7649 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
7650 do common handling of the pcoqt register.
7651 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
7652 to use helper function.
7653 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
7654 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
7655 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
7656 generic fallback unwinder when all else fails.
7657 (hppa_gdbarch_init): Add fallback sniffer.
7658 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
7659 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
7660 to use helper function.
7661
b9ec757a
JB
76622004-05-08 Joel Brobecker <brobecker@gnat.com>
7663
7664 * config/djgpp/fnchange.lst: Add translation rules for
7665 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
7666
756e95f1
MK
76672004-05-08 Mark Kettenis <kettenis@gnu.org>
7668
7669 * frame.c (get_prev_frame_1): Work around GCC bug.
7670 * frame.h: Add comment about GCC bug.
7671
2b4855ab
AC
76722004-05-07 Andrew Cagney <cagney@redhat.com>
7673
7674 * observer.c: Include "commands.h" and "gdbcmd.h".
7675 (observer_debug, _initialize_observer): Add the
7676 command "set/show debug observer".
7677 * observer.sh: When observer debugging, log notify calls.
7678 * Makefile.in (observer.o): Update dependencies.
7679
ba3e8e46
JM
76802004-05-07 Jason Molenda (jmolenda@apple.com)
7681
7682 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
7683
16796152
JB
76842004-05-07 Jim Blandy <jimb@redhat.com>
7685
daf6dc85
JB
7686 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
7687 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
7688 to recognize gpr regnums, instead of assuming that
7689 tdep->ppc_fp0_regnum marks the end of the general-purpose
7690 registers.
7691
16796152
JB
7692 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
7693 the given architecture has floating-point registers.
7694
c69b8bfc
AC
76952004-05-07 Andrew Cagney <cagney@redhat.com>
7696
7697 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
7698 macro defined to 1.
7699 * gdbarch.h, gdbarch.c: Re-generate.
7700 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7701 deprecated_use_generic_dummy_frames.
7702
7243600a
BF
77032004-05-07 Brian Ford <ford@vss.fsi.com>
7704
7705 * NEWS: Mention Cygwin DWARF 2 support.
7706
73c1e0a1
AC
77072004-05-07 Andrew Cagney <cagney@redhat.com>
7708
7709 * objfiles.h (struct entry_info): Delete unused fields
7710 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
7711 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
7712 * mipsread.c (mipscoff_symfile_read): Update.
7713 * mdebugread.c (parse_partial_symbols): Update.
7714 * dwarfread.c (read_file_scope): Update.
7715 * dwarf2read.c (read_file_scope): Update.
7716 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
7717 * coffread.c (complete_symtab): Update.
7718
1d3056ac
MK
77192004-05-07 Mark Kettenis <kettenis@gnu.org>
7720
7721 * infcall.c (_initialize_infcall): Fix typo.
7722
15170568
AC
77232004-05-07 Andrew Cagney <cagney@redhat.com>
7724
7725 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
7726 * command.h (add_setshow_zinteger_cmd): Declare.
7727
34f75cc1
RC
77282004-05-06 Randolph Chung <tausq@debian.org>
7729
7730 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
7731 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
7732 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
7733 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
7734 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
7735 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
7736 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
7737 definitions ...
7738 * hppa-tdep.h: ... to here, with HPPA_ prefix.
7739 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
7740 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
7741 (hppa64_hpux_frame_find_saved_regs_in_sig)
7742 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
7743 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
7744 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
7745 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
7746 (hppa_linux_sigtramp_frame_prev_register): Likewise.
7747 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
7748 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
7749 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
7750 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
7751 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
7752 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
7753 (hppa32_register_type, hppa_cannot_store_register)
7754 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
7755 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
7756 * hpread.c (hpread_process_one_debug_symbol): Likewise.
7757 * pa64solib.c (pa64_solib_have_load_event)
7758 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
7759 (pa64_solib_unloaded_library_pathname): Likewise.
7760 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
7761 (som_solib_library_pathname): Likewise.
7762
0a5e7efe
JI
77632004-05-05 Jim Ingham <jingham@apple.com>
7764
7765 * breakpoint.c (create_breakpoints): Copy the ignore count and
7766 thread id over from the pended breakpoint to the actual
7767 breakpoint.
7768
10a4b113
AC
77692004-05-05 Andrew Cagney <cagney@redhat.com>
7770
7771 * gdbarch.sh (PARM_BOUNDARY): Delete.
7772 gdbarch.h, gdbarch.c: Re-generate.
7773 * valops.c (PARM_BOUNDARY): Delete macro.
7774 (value_push): Delete PARM_BOUNDARY code.
7775 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
7776
366f009f
JB
77772004-05-04 Jim Blandy <jimb@redhat.com>
7778
32b99774
JB
7779 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
7780 Don't assume that the gprs, fprs, and UISA sprs are
7781 contiguous, start at register number zero, and end with fpscr.
7782 Instead, use the numbers from the tdep structure.
7783
366f009f
JB
7784 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
7785 should no longer be used in code specific to the RS6000 and its
7786 derivatives.
7787 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
7788 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
7789 tdep->ppc_fp0_regnum.
7790 (ppc_supply_fpregset, ppc_collect_fpregset)
7791 (rs6000_push_dummy_call, rs6000_extract_return_value)
7792 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
7793 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
7794 FP0_REGNUM.
7795 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
7796 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
7797 Same.
7798 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
7799 bdm_ppc_store_registers): Same.
7800 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
7801 (store_register, fill_fpregset): Same.
7802 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
7803 (ppc_linux_supply_fpregset): Same.
7804 * ppcnbsd-nat.c (getfpregs_supplies): Same.
7805 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
7806 Same.
7807 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
7808 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
7809 ppc64_sysv_abi_return_value): Same.
7810 * rs6000-nat.c (regmap, fetch_inferior_registers)
7811 (store_inferior_registers, fetch_core_registers): Same.
7812
827f338d
MK
78132004-05-01 Mark Kettenis <kettenis@gnu.org>
7814
7815 * m68knbsd-nat.c: Remove file.
7816 * m68knbsd-tdep.c: Remove file.
7817 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
7818 dependencies.
7819 * configure.host: Add m68k-*-netbsdelf*.
7820 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
7821 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
7822 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
7823 (XM_FILE): Remove.
7824 * config/m68k/nbsdelf.mh: New file.
7825 * config/m68k/nbsd.mt: New file.
7826 * config/m68k/nbsdaout.mt: Remove file.
7827 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
7828 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
7829 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
7830 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
7831 (use_struct_convention): Remove prototype.
7832 (USE_STRUCT_CONVENTION): Remove define.
7833 * config/m68k/xm-nbsd.h: Remove file.
7834
66894781
MS
78352004-05-04 Michael Snyder <msnyder@redhat.com>
7836
7837 * m68k-tdep.c (m68k_gdbarch_init): Default to using
7838 reg_struct_return method (as gcc usually does for cross targets).
7839
f0f63663
AC
78402004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7841
7842 Committed by Andrew Cagney.
7843 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
7844 alignment padding when accessing ucontext struct members.
7845
edf61169
JB
78462004-05-04 Jim Blandy <jimb@redhat.com>
7847
8bf659e8
JB
7848 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
7849 'ppc_gplast_regnum' member.
7850 (ppc_num_gprs): New enum constant.
7851 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
7852 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
7853 * rs6000-nat.c (regmap, fetch_inferior_registers,
7854 store_inferior_registers): Same.
7855 * rs6000-tdep.c (e500_pseudo_register_read)
7856 (e500_pseudo_register_write): Same.
7857 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
7858
b967e06f
JB
7859 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
7860 * ppc-tdep.h (ppc_num_fprs): New enum constant.
7861 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
7862 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
7863 FPLAST_REGNUM.
7864 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
7865 Same.
7866 * ppc-linux-nat.c (ppc_register_u_addr): Same.
7867 * rs6000-nat.c (regmap, fetch_inferior_registers)
7868 (store_inferior_registers): Same.
7869
edf61169
JB
7870 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
7871 with FPLAST_REGNUM.
7872
58a9656e
JB
78732004-05-03 Joel Brobecker <brobecker@gnat.com>
7874
7875 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
7876 failure detected by recent versions of GCC.
7877 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
7878 to be consistent with the usage in dwarf2_create_include_psymtab.
7879
dc305454
MS
78802004-05-03 Michael Snyder <msnyder@redhat.com>
7881
7882 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
7883 (heuristic_proc_start): Whitespace cleanup.
7884
29972665
MK
78852004-05-04 Mark Kettenis <kettenis@gnu.org>
7886
6b57680d
MK
7887 * sun3-nat.c: Remove file.
7888 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
7889 dependencies.
7890 (ALLDEPFILES): Remove sun3-nat.c.
7891 (sun3-nat.o): Remove dependencies.
7892
29972665
MK
7893 * i386-interix-nat.c, i386-interix-tdep.c,
7894 config/i386/nm-interix.h, config/i386/interix.mh,
7895 config/i386/interix.mt: Remove files.
7896 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
7897 dependencies.
7898
f595cb19
MK
78992004-05-03 Mark Kettenis <kettenis@gnu.org>
7900
7901 * m68k-tdep.h (struct gdbarch_tdep): Add member
7902 struct_value_regnum.
7903 (m68k_svr4_init_abi): New prototype.
7904 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
7905 different calling conventions.
7906 (m68k_extract_return_value): Remove code dealing with single-field
7907 structs.
7908 (m68k_store_return_value): Remove code dealing with single-field
7909 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
7910 (m68k_extract_struct_value_address): Remove function.
7911 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
7912 (m68k_reg_struct_return_p, m68k_return_value)
7913 (m68k_svr4_return_value): New functions.
7914 (m68k_use_struct_convention): Remove function.
7915 (m68k_push_dummy_call): Use new struct_value_regnum member of
7916 `struct gdbarch_tdep' instead of hardcoded register number to
7917 store STRUCT_ADDR.
7918 (m68k_svr4_init_abi): New function.
7919 (m68k_gdbarch_init): Don't set extract_return_value,
7920 store_return_values, deprecated_extract_struct_value_address and
7921 use_struct_convention. Set return_value instead. Initialize new
7922 struct_value_regnum member of `struct gdbarch_tdep'.
7923 * m68klinux-tdep.c: Update copyright year.
7924 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
7925 (m68k_linux_extract_struct_value_address): Remove function.
7926 (m68k_linux_init_abi): Don't set extract_return_value,
7927 store_return_values, deprecated_extract_struct_value_address and
7928 use_struct_convention. Call m68k_svr4_init_abi but override the
7929 new struct_value_regnum member of `struct gdbarch_tdep'.
7930 * Makefile.in (m68k-tdep.o): Update dependencies.
7931
aaa75496
JB
79322004-05-03 J. Brobecker <brobecker@gnat.com>
7933
7934 * dwarf2read.c (line_header): Add new included_p field in
7935 field file_names.
7936 (partial_die_info): New field has_stmt_list. New field line_offset.
7937 (dwarf2_create_include_psymtab): New function.
7938 (dwarf2_build_include_psymtabs): New function.
7939 (add_file_name): Add forward declaration. Initialize new field.
7940 (dwarf_decode_lines): Add new parameter. Enhance this procedure
7941 to be able to determine the list of files included by the
7942 given unit, and build their associated psymtabs.
7943 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
7944 files as well.
7945 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
7946 (read_file_scope): Update call to dwarf_decode_lines.
7947 (read_partial_die): Handle DW_AT_stmt_list attributes.
7948
c848556f
MC
79492004-05-02 Michael Chastain <mec.gnu@mindspring.com>
7950
7951 Unfix PR gdb/1626.
7952 * configure.in: Revert special case for osf5.*.
7953 * configure: Regenerate.
7954
eb4556d7
JB
79552004-05-02 Jim Blandy <jimb@redhat.com>
7956
7957 Move the symbol-file-from-memory functions into their own file.
7958 * symfile-mem.c, symfile-mem.h: New files.
7959 * symfile.c (symbol_file_add_from_bfd): New function.
7960 (symbol_file_add): Call symbol_file_add_from_bfd.
7961 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
7962 Moved to symfile-mem.c.
7963 (_initialize_symfile): Move definition of
7964 add-symbol-file-from-memory command to symfile-mem.c.
7965 * symfile.h (symbol_file_add_from_bfd): New declaration.
7966 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
7967 * config/powerpc/linux.mt (TDEPFILES): Same.
7968 * Makefile.in (SFILES): Add symfile-mem.c.
7969 (symfile_mem_h): New variable.
7970 (HFILES_NO_SRCDIR): Add symfile-mem.h.
7971 (symfile-mem.o): New rule.
7972
80bb239e
AC
79732004-05-01 Andrew Cagney <cagney@redhat.com>
7974
7789d0fa
AC
7975 * breakpoint.c (insert_bp_location): Use get_frame_id, and
7976 frame_find_by_id instead of frame_relative_level.
7977 (do_enable_breakpoint): Ditto.
7978 * thread.c: Update copyright.
7979 (info_threads_command): Ditto, simplify.
7980
80bb239e
AC
7981 * frame.c (deprecated_generic_get_saved_register): Delete
7982 function, moved to "xstormy16-tdep.c".
7983 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
7984 deprecated_generic_get_saved_register from "frame.c".
7985 (xstormy16_frame_saved_register): Call
7986 xstormy16_get_saved_register.
7987 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
7988 static.
7989 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
7990 * frame.h (deprecated_generic_get_saved_register): Delete.
7991
b2a871dd
MC
79922004-05-01 Michael Chastain <mec.gnu@mindspring.com>
7993
7994 * dwarfread.c: Update documentation on the state of dwarf-1.
7995
0e100dab
AC
79962004-05-01 Andrew Cagney <cagney@redhat.com>
7997
acd8056e
AC
7998 * stack.c (select_frame_command): Delete call to
7999 frame_relative_level.
8000 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
8001 Delete #if0 code.
8002 (frame_info): Do not print FRAMELESS.
8003 (print_block_frame_labels): Replace DEPRECATED_STREQ.
8004 (catch_info): Delete #if0 code.
8005
0e100dab
AC
8006 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
8007 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
8008 of frame_relative_level.
8009 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
8010 to SENTINEL_FRAME.
8011 * frame.h (enum frame_type): Add SENTINEL_FRAME.
8012 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
8013 frame_relative_level.
8014
55699d59
AC
8015 * frame.h (deprecated_set_frame_type): Delete declaration.
8016 * frame.c (deprecated_set_frame_type): Delete function, update
8017 comments.
8018
fcf70625
AC
8019 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
8020 * gdbarch.h, gdbarch.c: Re-generate.
8021 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
8022 (shnbsd_pc_in_sigtramp): Delete.
8023 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
8024 pc_in_sigtramp.
8025 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
8026 pc_in_sigtramp.
8027 * frame.h: Update comments.
8028 * ppc-linux-tdep.c: Update comments.
8029 * breakpoint.c (bpstat_what): Update comments.
8030
ac5eccb7
AC
8031 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
8032 m68klinux-tdep.o's dependencies, were previously added to
8033 m68klinux-nat.o.
8034
f2524b93
AC
8035 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
8036 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
8037 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
8038 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
8039 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
8040
17e20bce
AC
8041 * Makefile.in (m68klinux-nat.o): Update dependencies.
8042 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8043 (m68k_linux_sigtramp_frame_cache)
8044 (m68k_linux_sigtramp_frame_this_id)
8045 (m68k_linux_sigtramp_frame_prev_register)
8046 (m68k_linux_sigtramp_frame_unwind)
8047 (m68k_linux_sigtramp_frame_sniffer)
8048 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
8049 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
8050 names, use trad-frame.h.
8051 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
8052 (struct m68k_sigtramp_info): Delete.
8053 * m68k-tdep.c (m68k_sigtramp_frame_cache)
8054 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
8055 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
8056 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
8057 "m68klinux-tdep.c".
8058
c8864fa2
AC
8059 * infrun.c (check_sigtramp2): Delete check for
8060 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
8061
511dd2cd
MK
80622004-05-01 Mark Kettenis <kettenis@gnu.org>
8063
8064 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
8065
8c6b0e06
AC
80662004-05-01 Andrew Cagney <cagney@redhat.com>
8067
9df0bb3f
AC
8068 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8069 (frv_linux_sigtramp_frame_cache)
8070 (frv_linux_sigtramp_frame_this_id)
8071 (frv_linux_sigtramp_frame_prev_register)
8072 (frv_linux_sigtramp_frame_unwind)
8073 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
8074 include "linux" in function and variable names, directly call
8075 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
8076 the latest trad-frame code.
8077 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
8078 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
8079 * Makefile.in (frv-linux-tdep.o): Update dependencies.
8080 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
8081 * frv-tdep.c (frv_sigtramp_frame_cache)
8082 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
8083 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
8084 frv-linux-tdep.c.
8085 (frv_gdbarch_init): Do not append a sigtramp sniffer.
8086 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
8087 (frv_set_sigcontext_reg_addr): Delete function.
8088
8c6b0e06
AC
8089 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
8090 (DEPRECATED_SIGTRAMP_END): Delete.
8091 * gdbarch.h, gdbarch.c: Re-generate.
8092 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
8093 * config/vax/tm-vaxbsd.h: Update copyright.
8094 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8095 (DEPRECATED_IN_SIGTRAMP): Define.
8096 * config/m68k/tm-nbsd.h: Update copyright.
8097 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8098 (DEPRECATED_IN_SIGTRAMP): Define.
8099
50ea7769
MK
81002004-05-01 Mark Kettenis <kettenis@gnu.org>
8101
03ac2a74
MK
8102 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
8103 encondings. Fixes PR gdb/1628.
8104
50ea7769
MK
8105 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
8106 DW_CFA_restore state without a matching DW_CFA_remember_state
8107 instead of aborting. Fixes PR backtrace/1589.
8108
9a5d7be1
JB
81092004-04-30 Joel Brobecker <brobecker@gnat.com>
8110
8111 * MAINTAINERS: Add self as AIX maintainer.
8112 Update my e-mail address in write-after-approval section.
8113
2593d1cd
AC
81142004-04-30 Andrew Cagney <cagney@redhat.com>
8115
ce12bbf9
AC
8116 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
8117 (legacy_get_prev_frame): Ditto.
8118
36710c63
AC
8119 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
8120 (mips_gdbarch_init): Do not set pc_in_sigtramp.
8121 * mipsread.c (sigtramp_address): Delete extern variable.
8122 (mipscoff_new_init): Delete reference.
8123 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
8124 (fixup_sigtramp): Delete function.
8125 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
8126 (fixup_sigtramp): Delete declarations.
8127
2593d1cd
AC
8128 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
8129 deprecated_pc_in_sigtramp.
8130 (ppcnbsd_pc_in_sigtramp): Delete function.
8131
2a25f91c
MK
81322004-05-01 Mark Kettenis <kettenis@gnu.org>
8133
8134 * config/m68k/nm-nbsd.h: Tweak comments.
8135 * config/m68k/nm-nbsdaout.h: Likewise.
8136
0b281939
AC
81372004-04-30 Andrew Cagney <cagney@redhat.com>
8138
8139 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
8140 legacy_pc_in_sigtramp.
8141 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
8142
8f2d3ea0
MK
81432004-05-01 Mark Kettenis <kettenis@gnu.org>
8144
8145 Add OpenBSD/m68k support.
8146 * NEWS (New native configurations): Mention OpenBSD/m68k.
8147 * m68kbsd-tdep.c: New file.
8148 * m68kbsd-nat.c: New file.
8149 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
8150 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
8151 * configure.host: Add m68k-*-openbsd.
8152 * configure.tgt: Add m68k-*-openbsd.
8153 * config/m68k/tm-obsd.h: New file.
8154 * config/m68k/obsd.mt: New file.
8155 * config/m68k/obsd.mh: New file.
8156 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
8157 m68kbsd-tdep.c.
8158
c40f49a4
AC
81592004-04-30 Andrew Cagney <cagney@redhat.com>
8160
8161 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
8162 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
8163
e81554cd
MK
81642004-04-30 Mark Kettenis <kettenis@gnu.org>
8165
8166 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
8167 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
8168
d4dc1a91
BF
81692004-04-30 Brian Ford <ford@vss.fsi.com>
8170
8171 Revert 2004-04-16 change.
8172 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
8173 (i386_coff_init_abi): Remove.
8174 * i386-tdep.h (i386_coff_init_abi): Remove.
8175 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
8176
2f72f850
AC
81772004-04-30 Andrew Cagney <cagney@redhat.com>
8178
e492f9d6
AC
8179 * blockframe.c (find_pc_partial_function): Delete use of
8180 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
8181 DEPRECATED_SIGTRAMP_END.
8182
7b7adad0
AC
8183 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
8184 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
8185 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
8186 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
8187 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
8188
2f72f850
AC
8189 * defs.h (deprecated_inside_entry_file): Delete declaration.
8190 * blockframe.c (deprecated_inside_entry_file): Delete function.
8191 (legacy_frame_chain_valid): Delete call.
8192 * sh64-tdep.c (sh64_frame_chain): Delete call.
8193 * objfiles.h: Update comments.
8194 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
8195 call.
8196 * frame.c (get_prev_frame): Delete call, update comments.
8197
283f90a7
BF
81982004-04-30 Brian Ford <ford@vss.fsi.com>
8199
8200 * MAINTAINERS (Write After Approval): Add myself.
8201
8ee56bcf
AC
82022004-04-30 Andrew Cagney <cagney@redhat.com>
8203
8204 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
8205 * gdbarch.h, gdbarch.c: Re-generate.
8206 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
8207 code.
8208
ee27e1b6
AC
82092004-04-30 Andrew Cagney <cagney@redhat.com>
8210
8211 * gdb-events.sh (selected_thread_changed)
8212 (selected_frame_level_changed, target_changed): Delete.
8213 * gdb-events.h, gdb-events.c: Re-generate.
8214 * valops.c (value_assign): Update.
8215 * stack.c (select_frame_command, up_silently_base)
8216 (down_silently_base): Update.
8217
d5ac5a39
AC
82182004-04-29 Andrew Cagney <cagney@redhat.com>
8219
8220 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
8221 registers correctly.
8222 (print_gp_register_row, mips32_heuristic_proc_desc)
8223 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
8224 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
8225 references to mips_isa_regsize.
8226
ceae6e75
AC
82272004-04-29 Andrew Cagney <cagney@redhat.com>
8228
8229 * mips-tdep.c (struct gdbarch_tdep): Delete
8230 mips_fp_register_double.
8231 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
8232 mips_abi_regsize.
8233 (mips_gdbarch_init): Do not set mips_fp_register_double.
8234 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
8235
a587af0b
AC
82362004-04-29 Joel Brobecker <brobecker@gnat.com>
8237
8238 Committed by Andrew Cagney.
8239 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
8240 function calls.
8241
13326b4e
AC
82422004-04-29 Andrew Cagney <cagney@redhat.com>
8243
8244 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
8245 gdbarch, use mips_abi, update callers.
8246 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
8247 mips_abi_regsize, update callers.
8248 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
8249 mips_default_abi_regsize.
8250 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
8251 mips_default_abi_regsize.
8252
711cc5cd
AC
82532004-04-29 Andrew Cagney <cagney@redhat.com>
8254
1b13c4f6
AC
8255 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
8256 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
8257 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
8258 mips_default_abi_regsize.
8259 (mips_isa_regsize): Rename mips_regisze.
8260 * mipsnbsd-tdep.c: Update.
8261 * mips-linux-tdep.c: Update.
8262 * irix5-nat.c: Update.
8263 * mips-tdep.h (mips_isa_regsize): Update.
8264
711cc5cd
AC
8265 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
8266 Delete all disabled code.
8267 * gdb-events.h, gdb-events.c: Re-generate.
8268
e63bbc88
MK
82692004-04-19 Jerome Guitton <guitton@gnat.com>
8270 Mark Kettenis <kettenis@gnu.org>
8271
8272 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
8273 the function begins with a branch instruction.
8274
fd35795f
MK
82752004-04-29 Mark Kettenis <kettenis@gnu.org>
8276
8277 * i386-tdep.c: Fix spelling mistakes.
8278
c960c18f
AC
82792004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8280 Andrew Cagney <cagney@redhat.com>
8281
8282 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
8283 <sys/proc.h>.
8284 * acconfig.h: Provide default _KMEMUSER value.
8285 * config.in, configure: Re-generate.
8286 * NEWS: Mention fix.
8287
50306a9d
RC
82882004-04-24 Randolph Chung <tausq@debian.org>
8289
8290 * configure.host (hppa*-*-linux*): New target.
8291 * configure.tgt (hppa*-*-linux*): Likewise.
8292 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
8293 gdbarch_init_osabi() call earlier so that osabi-specific frame
8294 unwinders can be registered first.
8295 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
8296 hppa-linux-nat.c.
8297 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
8298 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
8299 * config/pa/linux.mh: New file.
8300 * config/pa/linux.mt: New file.
8301 * config/pa/nm-linux.h: New file.
8302 * config/pa/xm-linux.h: New file.
8303 * hppa-linux-nat.c: New file.
8304 * hppa-linux-tdep.c: New file.
8305
2a6228ef
RC
83062004-04-28 Randolph Chung <tausq@debian.org>
8307
8308 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
8309 return values.
8310 (hppa32_push_dummy_call): Fix small struct and floating point argument
8311 passing, and make sure the stack frame is properly aligned.
8312
82c10df6
AC
83132004-04-28 Andrew Cagney <cagney@redhat.com>
8314
d762c46a
AC
8315 * stack.c (print_stack_frame): Fix description.
8316
82c10df6
AC
8317 * NEWS: Mention gdb/gdbserver/configure execute permission
8318 changed. PR server/519.
8319
0faf0076
AC
83202004-04-28 Andrew Cagney <cagney@redhat.com>
8321
8322 * stack.c (print_stack_frame_stub): Delete declaration.
8323 (struct print_stack_frame_args, print_stack_frame)
8324 (print_frame_info, print_frame): Replace "source" with print what.
8325 Replace "print" with "print_level". Replace "args" with
8326 "print_args".
8327 * frame.h (show_and_print_stack_frame, print_stack_frame)
8328 (print_frame_info): Update declarations.
8329 * stack.c (select_and_print_frame, frame_command)
8330 (current_frame_command, up_command, down_command): Update calls -
8331 use get_selected_frame, pass "enum print_what" for source, do not
8332 call frame_relative_level.
8333 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
8334 * remote-rdp.c (remote_rdp_open): Ditto.
8335 * remote-mips.c (common_open): Ditto.
8336 * remote-e7000.c (e7000_start_remote): Ditto.
8337 * ocd.c (ocd_start_remote): Ditto.
8338 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
8339 * infrun.c (normal_stop): Ditto.
8340 * inflow.c (kill_command): Ditto.
8341 * infcmd.c (finish_command): Ditto.
8342 * corelow.c (core_open): Ditto.
8343 * tracepoint.c (finish_tfind_command): Ditto.
8344 * thread.c (info_threads_command, info_threads_command)
8345 (restore_current_thread, do_captured_thread_select): Ditto.
8346 * ada-tasks.c (task_command): Ditto.
8347
f4c5303c
OF
83482004-04-26 Orjan Friberg <orjanf@axis.com>
8349
8350 * frame.c: Include "observer.h".
8351 (frame_observer_target_changed): New function.
8352 (_initialize_frame): Attach target_changed observer.
8353 * regcache.c: Include "observer.h".
8354 (regcache_observer_target_changed): New function.
8355 (_initialize_regcache): Attach target_changed observer.
8356 * valops.c: Include "observer.h".
8357 (value_assign): Notify target_changed event when modifying register.
8358 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
8359
7270d8f2
OF
83602004-04-26 Orjan Friberg <orjanf@axis.com>
8361
8362 From Paul Koning <pkoning@equallogic.com>:
8363 * breakpoint.c (free_valchain): New function.
8364 (insert_bp_location, delete_breakpoint): Use free_valchain.
8365 (remove_breakpoint): Do not remove the valchain.
8366 (bpstat_stop_status): If not stopped by watchpoint, skip
8367 watchpoints when generating stop status list.
8368 * infrun.c (handle_inferior_event): Make
8369 stepped_after_stopped_by_watchpoint a global variable.
8370 * remote.c (remote_stopped_data_address): Return watch data
8371 address rather than zero if stepped_after_stopped_by_watchpoint is
8372 set.
8373
02d62932
MC
83742004-04-25 Michael Chastain <mec.gnu@mindspring.com>
8375
8376 Fix PR gdb/1626.
8377 * configure.in: Check for curses after termcap.
8378 On osf5.*, do not check for ncurses.
8379 * configure: Regenerate.
8380
3e9a183c
MK
83812004-04-25 Mark Kettenis <kettenis@gnu.org>
8382
c79ac407
MK
8383 * ppcobsd-nat.c: Include "ppc-tdep.h".
8384 * Makefile.in (ppcobsd-nat.o): Update dependencies.
8385
3e9a183c
MK
8386 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
8387 Fixes PR tdep/1623 and PR tdep/1624.
8388
38cc9c28
MC
83892004-04-24 Michael Chastain <mec.gnu@mindspring.com>
8390
8391 * xmodem.h, xmodem.c: Remove files.
8392 * Makefile.in: Remove references to xmodem.h, xmodem.c.
8393
7f07c5b6
RC
83942004-04-23 Randolph Chung <tausq@debian.org>
8395
8396 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
8397 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
8398 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
8399 for handling stackless frames.
8400 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
8401
9f7194c3
RC
84022004-04-23 Randolph Chung <tausq@debian.org>
8403
8404 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
8405 starts at a pc before the frame is created.
8406
dcff6009
JB
84072004-04-23 Joel Brobecker <brobecker@gnat.com>
8408
8409 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
8410
40711ff1 84112004-04-23 Jerome Guitton <guitton@gnat.com>
65951cd9
JG
8412
8413 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
8414 use convert_typed_floating to get the appropriate format.
8415
abc485a1
RC
84162004-04-22 Randolph Chung <tausq@debian.org>
8417
8418 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
8419 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
8420 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
8421 (hppa_sign_extend): Add prototype.
8422 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
8423 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
8424 (sign_extend): Rename with hppa_ prefix and make non-static. Other
8425 hppa targets will also use these functions.
8426 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
8427 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
8428 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
8429 (hppa_gdbarch_init): Remove gdbarch setting of
8430 skip_trampoline_code, in_solib_call_trampoline and
8431 in_solib_return_trampoline.
8432 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
8433 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
8434 hppa_in_solib_call_trampoline.
8435 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
8436 Moved from hppa-tdep.c.
8437 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
8438 in_solib_call_trampoline and in_solib_return_trampoline.
8439
369aa520
RC
84402004-04-22 Randolph Chung <tausq@debian.org>
8441
8442 * hppa-tdep.c (hppa_debug): New variable.
8443 (find_unwind_entry, hppa_frame_cache): Add debug output.
8444 (_initialize_hppa_tdep): Add command to set debug flag.
8445
476be15e
AC
84462004-04-22 Andrew Cagney <cagney@redhat.com>
8447
8448 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
8449 "trad-frame.h".
8450 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
8451 signal trampoline unwinder.
8452 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
8453
d195bc9f
MK
84542004-04-22 Mark Kettenis <kettenis@gnu.org>
8455
8456 Add OpenBSD/powerpc support.
8457 * NEWS (New native configurations): Mention OpenBSD/powerpc.
8458 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
8459 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
8460 (ppc_collect_fpregset): New prototypes.
8461 * ppcobsd-nat.c: New file.
8462 * ppcobsd-tdep.c: New file.
8463 * ppcobsd-tdep.h: New file.
8464 * rs6000-tdep.c: Include "regset.h".
8465 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
8466 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
8467 New functions.
8468 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
8469 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
8470 (rs6000-tdep.o): Update dependencies.
8471 * configure.host: Add powerpc-*-openbsd.
8472 * configure.tgt: Add powerpc-*-openbsd.
8473 * config/powerpc/obsd.mh: New file.
8474 * config/powerpc/nm-obsd.h: New file.
8475 * config/powerpc/obsd.mt: New file.
8476
6f14cc33
AC
84772004-04-22 Andrew Cagney <cagney@redhat.com>
8478
fcf29e5f
AC
8479 * frame.h (show_frame_info): Delete declaration.
8480
6f14cc33
AC
8481 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
8482 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
8483 * m32r-tdep.c (m32r_frame_this_id): Ditto.
8484 * frv-tdep.c (frv_frame_this_id): Ditto.
8485 * avr-tdep.c (avr_frame_this_id): Ditto.
8486
e5786a5c
EZ
84872004-04-22 Elena Zannoni <ezannoni@redhat.com>
8488
8489 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
8490
26e75e5c
JB
84912004-04-22 Jim Blandy <jimb@redhat.com>
8492
8493 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
8494 register number zero.
8495
d8d65dd3
MS
84962004-04-21 Michael Snyder <msnyder@redhat.com>
8497
8498 * mips-tdep.c (heuristic_proc_start):
8499 Warning() already prefixes "Warning: ".
8500
9a4105ab
AC
85012004-04-21 Andrew Cagney <cagney@redhat.com>
8502
8503 * annotate.h (deprecated_annotate_starting_hook)
8504 (deprecated_annotate_stopped_hook)
8505 (deprecated_annotate_exited_hook)
8506 (deprecated_annotate_signal_hook)
8507 (deprecated_annotate_signalled_hook): Deprecate.
8508 * tracepoint.h (deprecated_create_tracepoint_hook)
8509 (deprecated_delete_tracepoint_hook)
8510 (deprecated_modify_tracepoint_hook)
8511 (deprecated_trace_find_hook)
8512 (deprecated_trace_start_stop_hook): Deprecate.
8513 * target.h (deprecated_target_new_objfile_hook): Deprecate.
8514 * remote.h (deprecated_target_resume_hook)
8515 (deprecated_target_wait_loop_hook): Deprecate.
8516 * gdbcore.h (deprecated_exec_file_display_hook)
8517 (deprecated_file_changed_hook): Deprecate.
8518 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
8519 * defs.h (deprecated_modify_breakpoint_hook)
8520 (deprecated_command_loop_hook, deprecated_show_load_progress)
8521 (deprecated_print_frame_info_listing_hook)
8522 (deprecated_query_hook, deprecated_warning_hook)
8523 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
8524 (deprecated_delete_breakpoint_hook)
8525 (deprecated_interactive_hook, deprecated_registers_changed_hook)
8526 (deprecated_readline_begin_hook, deprecated_readline_hook)
8527 (deprecated_readline_end_hook, deprecated_register_changed_hook)
8528 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
8529 (deprecated_context_hook, deprecated_target_wait_hook)
8530 (deprecated_attach_hook, deprecated_detach_hook)
8531 (deprecated_call_command_hook, deprecated_set_hook)
8532 (deprecated_error_hook, deprecated_error_begin_hook)
8533 (deprecated_ui_load_progress_hook): Deprecate.
8534 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
8535 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
8536 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
8537 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
8538 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
8539 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
8540 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
8541 * annotate.c, aix-thread.c: Update.
8542
62cf13cc
AC
85432004-04-21 Andrew Cagney <cagney@redhat.com>
8544
b2e31a62
AC
8545 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
8546 * vaxnbsd-tdep.c: Include "gdb_string.h".
8547
62cf13cc
AC
8548 * symfile.c (symbol_file_add_from_memory): #if 0 function.
8549 (add_symbol_file_from_memory_command): #if 0 function body, call
8550 error instead.
8551
00e32a35
AC
85522004-04-21 Andrew Cagney <cagney@redhat.com>
8553
8554 * gdbcore.h: Update copyright.
8555 (deprecated_add_core_fns): Rename add_core_fns.
8556 * win32-nat.c (_initialize_core_win32): Update.
8557 * sun3-nat.c (_initialize_core_sun3): Update.
8558 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
8559 * rs6000-nat.c (_initialize_core_rs6000): Update.
8560 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
8561 * nto-tdep.c (_initialize_nto_tdep): Update.
8562 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
8563 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
8564 * mips-nat.c (_initialize_core_mips): Update.
8565 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
8566 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
8567 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
8568 * lynx-nat.c (_initialize_core_lynx): Update.
8569 * irix5-nat.c (_initialize_core_irix5): Update.
8570 * i386-interix-nat.c (_initialize_core_interix): Update.
8571 * cris-tdep.c (_initialize_cris_tdep): Update.
8572 * corelow.c (deprecated_add_core_fns): Update.
8573 * core-regset.c (_initialize_core_regset): Update.
8574 * core-aout.c (_initialize_core_aout): Update.
8575 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
8576 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
8577 * alpha-nat.c (_initialize_core_alpha): Update.
8578
13c7b1ca
JB
85792004-04-21 Jim Blandy <jimb@redhat.com>
8580
8581 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
8582
7b5a2f43
DJ
85832004-04-19 Daniel Jacobowitz <drow@mvista.com>
8584
8585 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
8586 Delete.
8587 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
8588 (read_attribute_value): Update calls to dwarf_alloc_block.
8589 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
8590 dwarf2_tmp_obstack.
8591 (psymtab_to_symtab_1): Likewise. Clean up using
8592 free_stack_comp_unit.
8593 (add_to_cu_func_list): Use the comp_unit_obstack.
8594
05cf31d1
JB
85952004-04-19 Joel Brobecker <brobecker@gnat.com>
8596
8597 * dwarf2read.c (dwarf2_flag_true_p): New function.
8598 (die_is_declaration): Use the function above. Add some comments.
8599
adf93a2f
MK
86002004-04-19 Mark Kettenis <kettenis@gnu.org>
8601
8602 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
8603 architecture when registering sparcnbsd_core_osabi_sniffer.
8604 Adjust comment.
8605
748894bf
MK
86062004-04-18 Mark Kettenis <kettenis@gnu.org>
8607
f622ad42
MK
8608 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
8609 return value.
8610
c4fc7f1b
MK
8611 Based on a patch from Brian Ford <ford@vss.fsi.com>:
8612 * i386-tdep.c: Correct register numbering scheme comments
8613 throughout.
8614 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
8615 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
8616 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
8617 (i386_gdb_arch_init): Likewise.
8618
b4ead1bd
MK
8619 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
8620 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
8621 ppcnbsd-tdep.o.
8622
748894bf
MK
8623 * m68k-tdep.h: Tweak comments.
8624 * m68k-tdep.c: Tweak comment.
8625
fdd72f95
RC
86262004-04-17 Randolph Chung <tausq@debian.org>
8627
8628 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
8629 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
8630 (hppa_hpux_som_init_abi): Set is_elf to 0.
8631 (hppa_hpux_elf_init_abi): Set is_elf to 1.
8632 * hppa-tdep.c (low_text_segment_address): Remove global.
8633 (record_text_segment_lowaddr): Pass in low address as parameter. Use
8634 section offset to calculate segment address.
8635 (internalize_unwinds): Define low_text_segment_address as local and
8636 pass to record_text_segment_lowaddr for ELF targets.
8637 (hppa_gdbarch_init): Zero fill tdep structure.
8638 (hppa_dump_tdep): Print tdep structure.
8639 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
8640
0f8d9d59
RC
86412004-04-17 Randolph Chung <tausq@debian.org>
8642
8643 * hppa-tdep.c (hppa_pseudo_register_read): Define.
8644 (hppa_gdbarch_init): Set pseudo_register_read.
8645 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
8646 * regcache.c (supply_register): Remove check for
8647 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
8648
7c46b9fb
RC
86492004-04-17 Randolph Chung <tausq@debian.org>
8650
8651 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
8652 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
8653 (hpread_adjust_stack_address): Move to hpread.c.
8654 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
8655 obj_private_struct): Move from tm-hppa.h.
8656 * hpread.c (hppa-tdep.h): Include.
8657 (hpread_adjust_stack_address): Move from hppa-tdep.c.
8658 (hpread_read_function_type, hpread_read_doc_function_type)
8659 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
8660 directly.
8661 * pa64solib.c (hppa-tdep.h): Include.
8662 * somsolib.c (hppa-tdep.h): Include.
8663 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
8664 inferior_status): Remove unused forward declarations.
8665 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
8666 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
8667 obj_private_struct): Move to hppa-tdep.h.
8668 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
8669
8d153463
RC
86702004-04-17 Randolph Chung <tausq@debian.org>
8671
8672 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
8673 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
8674 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
8675 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
8676 Remove forward declaration and make static.
8677 (hppa_reg_struct_has_addr): Remove.
8678
350c2e5b
JB
86792004-04-16 Joel Brobecker <brobecker@gnat.com>
8680
8681 * observer.sh: Move comments in sed command to first column.
8682
bbde78fa
JM
86832004-04-16 Jason Molenda (jmolenda@apple.com)
8684
8685 * frame.c: Minor typeo corrections in comments.
8686
e0270fd9
JB
86872004-04-16 Joel Brobecker <brobecker@gnat.com>
8688
8689 * observer.c (observer_test_first_notification_function): Update
8690 function profile.
8691 (observer_test_second_notification_function): Likewise.
8692 (observer_test_third_notification_function): Likewise.
8693
3d049254
MK
86942004-04-16 Mark Kettenis <kettenis@gnu.org>
8695
8696 From Brian Ford <ford@vss.fsi.com>:
8697 * i386-tdep.c (i386_coff_init_abi): New function.
8698 * i386-tdep.h (i386_coff_init_abi): New prototype.
8699 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
8700 register number translation functions for DWARF and DWARF 2.
8701
7867684d
JB
87022004-04-16 Joel Brobecker <brobecker@gnat.com>
8703
8704 * dwarf2read.c: Back out my previous change, it was incorrect.
8705
72bf9492
DJ
87062004-04-16 Daniel Jacobowitz <drow@mvista.com>
8707
8708 * dwarf2read.c: Include "hashtab.h".
8709 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
8710 has_namespace_info.
8711 (struct partial_die_info): Add comments. Use bitfields to reduce
8712 memory footprint. Add scope, scope_set, has_specification,
8713 spec_offset, die_parent, die_child, and die_sibling.
8714 (peek_die_abbrev): Add prototype.
8715 (partial_read_comp_unit_head): New function, broken out from
8716 dwarf2_build_psymtabs_hard.
8717 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
8718 Use partial_read_comp_unit_head. Initialize the CU and
8719 comp_unit_obstack. Update calls to read_partial_die and
8720 scan_partial_symbols. Use free_stack_comp_unit and
8721 load_partial_dies.
8722 (scan_partial_symbols): Change PDI to a pointer. Use the child and
8723 sibling pointers to walk partial DIEs. Call fixup_partial_die.
8724 Update calls to helper functions. Remove NAMESPACE argument.
8725 Update comments.
8726 (partial_die_parent_scope, partial_die_full_name): New functions.
8727 (add_partial_symbol): Remove namespace argument. Update call to
8728 pdi_needs_namespace. Use partial_die_full_name. Handle
8729 DW_TAG_namespace. Check has_namespace_info flag.
8730 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
8731 tag. Handle namespaces.
8732 (add_partial_namespace, add_partial_enumeration): Simplify.
8733 (guess_structure_name): New function, derived from
8734 add_partial_structure.
8735 (add_partial_structure): Remove.
8736 (determine_class_name): Update comment.
8737 (dwarf2_read_abbrevs): Set has_namespace_info flag.
8738 (is_type_tag_for_partial, load_partial_dies): New functions.
8739 (read_partial_die): Pass abbrev and abbrev_len as arguments.
8740 Record specifications instead of following them immediately.
8741 (find_partial_die_in_comp_unit, find_partial_die)
8742 (fixup_partial_die, free_stack_comp_unit)
8743 (hashtab_obstack_allocate, dummy_obstack_deallocate)
8744 (partial_die_hash, partial_die_eq): New functions.
8745 * Makefile.in (hashtab_h): Define.
8746 (dwarf2read.o): Update dependencies.
8747 (observer_inc, observer_h): Move to the correct section.
8748
fdc860a3
JB
87492004-04-15 Joel Brobecker <brobecker@gnat.com>
8750
8751 * dwarf2read.c (dwarf2_attribute_true_p): New function.
8752 (die_is_declaration): Use the function above. Add comment.
8753
dc718098
JB
87542004-04-15 Joel Brobecker <brobecker@gnat.com>
8755
8756 * dwarf2read.c (read_structure_scope): Identify stub types
8757 using die_is_declaration() only.
8758
8718a420
RM
87592004-04-15 Roland McGrath <roland@redhat.com>
8760
8761 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
8762 argument instead of NAME.
8763 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
8764 in call to symbol_file_add_with_addrs_or_offsets.
8765 (build_addr_info): New function, helper for ...
8766 (symbol_file_add_from_memory): New function.
8767 (add_symbol_file_from_memory_command): New function using that.
8768 (_initialize_symfile): Register it for add-symbol-file-from-memory.
8769 (pre_add_symbol_hook): Add const to argument type.
8770 * symfile.h (symbol_file_add_from_memory): Declare it.
8771
8b910bab
MK
87722004-04-15 Mark Kettenis <kettenis@gnu.org>
8773
9f076e7a
MK
8774 * NEWS (New native configurations): Mention OpenBSD/vax.
8775 * configure.host: Add vax-*-openbsd*.
8776 * config/vax/obsd.mh: New file.
8777 * config/vax/nm-obsd.h: New file.
8778
8b910bab
MK
8779 * vax-tdep.c: Include "regset.h".
8780 (vax_supply_gregset): New function.
8781 (vax_gregset): New variable.
8782 (vax_regset_from_core_section): New function.
8783 (vax_gdbarch_init): Set regset_from_core_section.
8784 * Makefile.in (vax-tdep.o): Update dependencies.
8785
7a464420
AC
87862004-04-15 Andrew Cagney <cagney@redhat.com>
8787
8788 * observer.c (normal_stop_subject, observer_notify_normal_stop)
8789 (observer_normal_stop_notification_stub)
8790 (observer_attach_normal_stop, observer_detach_normal_stop):
8791 Delete, replaced by #include "observer.inc".
8792 * infrun.c (normal_stop): Pass "stop_bpstat" to
8793 observer_notify_normal_stop.
8794 * Makefile.in (observer_inc): Define.
8795 (observer.o): Update dependencies.
8796 (observer.h, observer.inc): New rules.
8797 * observer.h: Delete file.
8798 * observer.sh: New file.
8799
e36ad527
MK
88002004-04-15 Mark Kettenis <kettenis@gnu.org>
8801
8802 * vax-tdep.c (vax_frame_cache): Fix typo.
8803
67b441e1
MK
88042004-04-14 Mark Kettenis <kettenis@gnu.org>
8805
6f606e1c
MK
8806 * NEWS (New native configurations): Mention NetBSD/vax.
8807 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
8808 * config/vax/nbsdelf.mh: New file.
8809 * config/vax/nbsdaout.mh: New file.
8810 * config/vax/nm-nbsd.h: New file.
8811 * config/vax/nm-nbsdaout.h: New file.
8812
9c5519a5
MK
8813 * vaxnbsd-tdep.c: New file.
8814 * Makefile.in (vaxnbsd-tdep.o): New dependency.
8815 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
8816 * config/vax/nbsd.mt: New file.
8817 * config/vax/tm-nbsd.h: New file.
8818
4844a614
MK
8819 * Makefile.in (vaxbsd-nat.o): New dependency.
8820
67b441e1
MK
8821 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
8822 * vax-tdep.c (vax_store_arguments): Remove struct_return and
8823 struct_addr arguments. Don't push return value address.
8824 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
8825 arguments to vax_store_arguments. Store return value address in
8826 R1.
8827 (vax_store_struct_return, vax_extract_return_value)
8828 (vax_store_return_value): Remove functions.
8829 (vax_return_value): New function.
8830 (vax_gdbarch_init): Set return value. Don't set
8831 deprecated_store_struct_return, deprecated_extract_struct_return
8832 and deprecated_store_return_value.
8833
6672f2ae
AS
88342004-04-14 Andreas Schwab <schwab@suse.de>
8835
8836 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
8837 value buffer.
8838 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
8839
7346c184
MK
88402004-04-14 Mark Kettenis <kettenis@gnu.org>
8841
8842 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
8843 (vax_unwind_dummy_id): New functions.
8844 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
8845 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
8846 variables.
8847 (vax_fix_call_dummy): Remove function.
8848 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
8849 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
8850 call_dummy_location, deprecated_call_dummy_words,
8851 deprecated_sizeof_call_dummy_words,
8852 deprecated_call_dummy_breakpoint_offset,
8853 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
8854 and deprecated_dummy_write_sp.
8855
58e23df4
DC
88562004-04-13 David Carlton <carlton@kealia.com>
8857
8858 * MAINTAINERS: Move myself to "paper trail" section.
8859
5e6b39ff
MK
88602004-04-12 Mark Kettenis <kettenis@gnu.org>
8861
7def7fef
MK
8862 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
8863 "trad-frame.h".
8864 (vax_frame_init_saved_regs): Remove function.
8865 (vax_sigtramp_saved_pc): Remove function.
8866 (vax_frame_saved_pc): Remove function.
8867 (vax_frame_args_address): Remove function.
8868 (vax_frame_num_args): Rewrite.
8869 (vax_frame_chain): Remove function.
8870 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
8871 VAX_FP_REGNUM.
8872 (vax_pop_frame): Likewise.
8873 (vax_saved_pc_after_call): Remove function.
8874 (struct vax_frame_cache): New structure.
8875 (vax_frame_cache): New function.
8876 (vax_frame_this_id): New function.
8877 (vax_frame_prev_register): New function.
8878 (vax_frame_unwind): New variable.
8879 (vax_frame_sniffer): New function.
8880 (vax_frame_base_address): New function.
8881 (vax_frame_args_address): New function.
8882 (vax_frame_base): New variable.
8883 (vax_unwind_pc): New function.
8884 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
8885 deprecated_fp_regnum, deprecated_saved_pc_after_call,
8886 deprecated_frame_chain, deprecated_frame_saved_pc,
8887 deprecated_frame_args_address and
8888 deprecated_frame_init_saved_regs.
8889 * Makefile.in (vax-tdep.o): Update dependencies.
8890
53284fc1
MK
8891 * vaxbsd-nat.c: New file.
8892
5e6b39ff
MK
8893 * vax-tdep.h: Update copyright year. Adjust comments.
8894 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
8895 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
8896 (vax_regnum): New enum. Replacing...
8897 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
8898 (VAX_PS_REGNUM): ... these removed macros.
8899 * vax-tdep.c (vax_register_name): Remove prototype.
8900 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
8901 (vax_register_byte, vax_register_raw_size,
8902 vax_register_virtual_size, vax_register_virtual_type): Remove
8903 functions.
8904 (vax_register_type): New function.
8905 (vax_breakpoint_from_pc): Reorganize.
8906 (vax_gdbarch_init): Set register_type. Don't set
8907 deprecated_register_size, deprecated_register_bytes,
8908 deprecated_register_byte, deprecated_register_raw_size,
8909 deprecated_max_register_raw_size,
8910 deprecated_register_virtual_size,
8911 deprecated_max_register_virtual_size and
8912 deprecated_register_virtual_type. Add comment on stack direction.
8913
e9c71e9f
MK
89142004-04-11 Mark Kettenis <kettenis@gnu.org>
8915
8916 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
8917 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
296bc76f 8918 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
e9c71e9f 8919
d46f1176 89202004-04-10 Randolph Chung <tausq@debian.org>
8718a420 8921
d46f1176
RC
8922 * MAINTAINERS (write after approval): Add myself.
8923
a2a84a72
RC
89242004-04-07 Randolph Chung <tausq@debian.org>
8925
8926 * hppa-tdep.c (hppa_inner_than): Remove.
8927 (is_pa_2): Remove unused static variable.
8718a420 8928 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
a2a84a72 8929
e85c3284
PH
89302004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
8931
8932 * language.h (language_defn): Add new la_post_parser field.
8933 * parser-defs.h (null_post_parser): New declaration (default for
8934 la_post_parser).
8718a420 8935
e85c3284
PH
8936 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
8937 insert call to that function.
8938 (parse_exp_in_context): New function, including code formerly in
8718a420 8939 parse_exp_1. Calls language-dependent post-parser after
e85c3284
PH
8940 prefixification.
8941 (parse_expression_in_context): New exported function.
8942 (null_post_parser): New definition.
8943 * expression.h (parse_expression_in_context): Add declaration.
8718a420 8944
e85c3284
PH
8945 * p-lang.c (pascal_language_defn): Add trivial post-parser.
8946 * c-lang.c (c_language_defn): Ditto.
8947 (cplus_language_defn): Ditto.
8948 (asm_language_defn): Ditto.
8949 (minimal_language_defn): Ditto.
8950 * f-lang.c (f_language_defn): Ditto.
8951 * jv-lang.c (java_language_defn): Ditto.
8952 * language.c (unknown_language_defn): Ditto.
8953 (auto_language_defn): Ditto.
8954 (local_language_defn): Ditto.
8955 * m2-lang.c (m2_language_defn): Ditto.
8956 * scm-lang.c (scm_language_defn): Ditto.
8957 * obj-lang.c (objc_language_defn): Ditto.
8718a420 8958
d9f8c85b
MK
89592004-04-10 Mark Kettenis <kettenis@gnu.org>
8960
fa34704a
MK
8961 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
8962 (amd64nbsd_mcontext_addr): New function.
8963 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
8964 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
8965 with amd64nbsd_r_reg_offset, instead of building it on the fly.
8966
403e1656
MK
8967 * corelow.c (core_xfer_partial): Fix coding standards violation.
8968 Add support for TARGET_OBJECT_WCOOKIE.
8969
a57e5a95
MK
8970 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
8971 deprecated_pc_in_sigtramp.
8972 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
8973 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
8974 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
8975 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
8976 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
8977 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
8978 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
8979
377d9ebd
MK
8980 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
8981 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
8982 Fix typo.
8983
f0ef85a5
MK
8984 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
8985 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
8986 (amd64_collect_fxsave): Likewise.
8987
d9f8c85b
MK
8988 * i386-sol2-tdep.c: Include "gdb_string.h".
8989 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
8990 name.
8991 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
8992
75f501b5
MK
89932004-04-10 Mark Kettenis <kettenis@gnu.org>
8994
8995 * i386-sol2-tdep.c: Include "solib-svr4.h".
8996 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
8997 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
8998 * config/i386/tm-i386sol2.h: Include :solib.h".
8999 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
9000 solib-svr4.o and solib-legacy.o.
9001 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
9002 solib-svr4.o.
9003
b31bc724
MK
90042004-04-09 Mark Kettenis <kettenis@gnu.org>
9005
18bbbd9e
MK
9006 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
9007 whether a register is supplied by PTRACE_GETFPREGS.
9008 (store_inferior_registers): Likewise.
9009 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
9010 whether a register is supplied by PT_GETFPREGS.
9011 (store_inferior_registers): Likewise.
9012
3c30bf1b
MK
9013 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
9014 * config/i386/linux64.mt (TDEPFILES): Likewise.
9015
a4194092
MK
9016 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
9017
911bc6ee
MK
9018 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
9019 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
9020 the program counter is in the range specified by `struct
9021 gdbarch_tdep'.
9022 * amd64-linux-tdep.c: Include "symtab.h".
9023 (amd64_linux_pc_in_sigtramp): Remove function.
9024 (amd64_linux_sigtramp_p): New function.
9025 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
9026 deprecated_pc_in_sigtramp.
9027 * amd64nbsd-tdep.c: Include "symtab.h".
9028 (amd64nbsd_sigtramp_p): New function.
9029 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
9030 deprecated_pc_in_sigtramp.
9031 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
9032 few comments.
9033 (amd64obsd_pc_in_sigtramp): Remove function.
9034 (amd64obsd_sigtramp_p): New function.
9035 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
9036 deprecated_pc_in_sigtramp.
9037 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
9038 (i386bsd_pc_ins_sigtramp): Remove prototype.
9039 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
9040 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
9041 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
9042 the program counter is in the range specified by `struct
9043 gdbarch_tdep'.
9044 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
9045 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
9046 (i386_go32_pc_in_sigtramp): Remove function.
9047 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
9048 Initialize TDEP->sigtramp_p.
9049 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
9050 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
9051 deprecated_pc_in_sigtramp.
9052 * i386-linux-tdep.c: Adjust comments.
9053 (i386_linux_pc_in_sigtramp): Remove function.
9054 (i386_linux_sigtramp_p): New function.
9055 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
9056 deprecated_pc_in_sigtramp.
9057 * i386-nto-tdep.c: Update copyright year.
9058 (i386nto_pc_in_sigtramp): Remove function.
9059 (i386nto_sigtramp_p): New function.
9060 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
9061 SP_REGNUM.
9062 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
9063 deprecated_pc_in_sigtramp.
9064 * i386-sol2-tdep.c: Update copyright year.
9065 (i386_sol2_pc_in_sigtramp): Remove function.
9066 (i386_sol2_sigtramp_p): New function.
9067 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
9068 deprecated_pc_in_sigtramp.
9069 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
9070 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
9071 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9072 deprecated_sigtramp_start and deprecated_sigtramp_end.
9073 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
9074 (i386nbsd_pc_in_sigtramp): Remove function.
9075 (i386nbsd_sigtramp_p): New function.
9076 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9077 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
9078 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
9079 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
9080 (i386obsd_pc_in_sigtramp): Remove function.
9081 (i386obsd_sigtramp_p): New function.
9082 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
9083 functions.
9084 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9085 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
9086 TDEP->sigtramp_p.
9087 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
9088 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
9089 dependencies.
9090
e083e6ec
MK
9091 * config/i386/i386aout.mt: Remove file.
9092
bd153b94
MK
9093 * configure.tgt: Remove i[34567]86-*-go32*,
9094 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
9095 and i[34567]86-*-isc*. Set gdb_target to i386 for
9096 i[34567]86-*-netware* and i[34567]86-*-*.
9097 * config/i386/i386.mt: New file.
9098 * config/i386/embed.mt: Remove file.
9099 * config/i386/go32.mt: Remove file.
9100 * config/i386/i386nw.mt: Remove file.
9101 * config/i386/i386v.mt: Remove file.
9102 * config/i386/tm-go32.h: Remove file.
9103
4a1bcc8c
MK
9104 * tui/tui-hooks.c: Include "readline/readline.h" after
9105 "gdb_curses.h" instead of before.
9106 * tui/tui-io.c: Likewise.
9107
f9a79064
MK
9108 * tui/tui.c: Fix typo in comment.
9109
b31bc724
MK
9110 * sparc64-tdep.c (sparc_address_from_register): Remove function.
9111
f83f82bc
AC
91122004-04-08 Andrew Cagney <cagney@redhat.com>
9113
9114 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
9115 (deprecated_exception_support_initialized): Declare.
8718a420 9116 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
f83f82bc
AC
9117 (initialize_hp_cxx_exception_support)
9118 (child_enable_exception_callback): Update.
9119 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
9120 (deprecated_exception_support_initialized): Rename
9121 deprecated_exception_catchpoints_are_fragile and
9122 deprecated_exception_support_initialized.
9123 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
9124
9125 * symtab.c (deprecated_hp_som_som_object_present): Rename
9126 hp_som_som_object_present.
9127 * symtab.h (deprecated_hp_som_som_object_present): Declare.
9128 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
9129 Update. Delete extern declaration.
9130 * valops.c (hp_som_som_object_present): Ditto.
8718a420 9131 * parse.c (deprecated_hp_som_som_object_present)
f83f82bc
AC
9132 (parse_nested_classes_for_hpacc): Ditto.
9133 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
8718a420 9134 * hppa-hpux-tdep.c (hp_som_som_object_present)
f83f82bc
AC
9135 (initialize_hp_cxx_exception_support): Ditto.
9136 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
8718a420 9137 * cp-valprint.c (hp_som_som_object_present)
f83f82bc 9138 (cp_print_class_method): Ditto.
8718a420 9139 * c-typeprint.c (hp_som_som_object_present):
f83f82bc
AC
9140 (c_type_print_base): Ditto.
9141 * c-exp.y (hp_som_som_object_present): Ditto.
9142
fb2be677
AC
91432004-04-08 Andrew Cagney <cagney@redhat.com>
9144
9145 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
9146 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
9147 (frame_unwind_find_by_frame): Re-implement the unwind code so
9148 that it can both prepend and append sniffers. Replace
9149 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
9150 * tramp-frame.c (tramp_frame_append): Use
9151 frame_unwind_prepend_unwinder.
9152 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
9153 frame_unwind_register_unwinder.
9154 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
9155 tramp_frame_append.
9156 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
8718a420 9157 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
fb2be677
AC
9158 (mips_linux_init_abi): Update.
9159
67faf007
KB
91602004-04-08 Kevin Buettner <kevinb@redhat.com>
9161
9162 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
9163 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
9164 file support.
9165
8973ff21
KB
91662004-04-07 Kevin Buettner <kevinb@redhat.com>
9167
9168 * ia64-tdep.c (elf.h): Don't include.
9169 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
9170
4a0e2f88
JM
91712004-04-07 Jason Molenda (jmolenda@apple.com)
9172
9173 * frame.h: Typeo corrections in comments.
9174
9872ad24
JB
91752004-04-07 Jim Blandy <jimb@redhat.com>
9176
9177 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
9178 %esp and %ebp
9179
70b216c8
MK
91802004-04-07 Mark Kettenis <kettenis@gnu.org>
9181
11d5789c
MK
9182 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
9183 * config/sparc/linux64.mt (TDEPFILES): Likewise.
9184 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
9185 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
9186 and solib-legacy.o.
9187 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
9188 solib-svr4.o.
9189 * config/sparc/tm-sol2.h: Update copyright year. Include
9190 "solib.h".
9191
70b216c8
MK
9192 * sparc-sol2-tdep.c: Update copyright year. Include
9193 "solib-svr4.h".
9194 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9195 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
9196 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
096f864c 9197 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
70b216c8
MK
9198 dependencies.
9199
6339dc9e
AC
92002004-04-06 Andrew Cagney <cagney@redhat.com>
9201
9202 * infttrace.c: Include "infttrace.h".
9203 * infttrace.h: Include "target.h".
9204 * Makefile.in (infttrace_h): Update.
9205 (infttrace.o): Update.
8718a420 9206
93449403
AC
92072004-04-06 Andrew Cagney <cagney@redhat.com>
9208
6d518969
AC
9209 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
9210 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
9211 move extern declarations from here ...
9212 * infttrace.h: ... to here.
9213 * Makefile.in (hppah-nat.o): Update dependencies.
9214
85f4f2d8
AC
9215 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
9216 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
8718a420 9217 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
85f4f2d8
AC
9218 (hppa_breakpoint_from_pc): Delete.
9219
93449403
AC
9220 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
9221
71456ec6
AC
92222004-04-05 Andrew Cagney <cagney@redhat.com>
9223
9224 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
9225 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
9226 <sys/file.h>.
8718a420 9227
4c02c60c
AC
92282004-04-06 Randolph Chung <tausq@debian.org>
9229
9230 Committed by Andrew Cagney (mechanical change).
9231 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
9232 exception_catchpoints_are_fragile, find_stub_with_shl_get,
9233 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
9234 child_enable_exception_callback, current_ex_event,
9235 null_symtab_and_line, child_get_current_exception_event,
9236 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
9237 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
9238 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
9239 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
9240 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
9241 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
9242 Move hpux-specific definitions ...
9243 * hppa-hpux-tdep.c: ... to here.
9244
3a515653
AC
92452004-04-05 Andrew Cagney <cagney@redhat.com>
9246
9247 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
9248 skip_prologue_using_sal.
9249
c1730d02
AC
92502004-04-05 Andrew Cagney <cagney@redhat.com>
9251
9252 * config/i386/tm-i386.h: Delete file.
9253 * config/i386/tm-vxworks.h: Update copyright, do not include
9254 "tm-i386.h".
9255 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
9256 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
9257 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
9258 * config/i386/ncr3000.mt (TM_FILE): Delete.
9259 * config/i386/interix.mt (TM_FILE): Delete.
9260 * config/i386/i386v.mt (TM_FILE): Delete.
9261 * config/i386/i386nw.mt (TM_FILE): Delete.
9262 * config/i386/i386gnu.mt (TM_FILE): Delete.
9263 * config/i386/i386aout.mt (TM_FILE): Delete.
9264 * config/i386/embed.mt (TM_FILE): Delete.
9265
8b67aa36
KB
92662004-04-05 Kevin Buettner <kevinb@redhat.com>
9267
9268 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
9269 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
9270 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
9271 (accg7_regnum): New constants.
9272 (last_spr_regnum, last_pseudo_regnum): Update.
c2f59a1a
KB
9273 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
9274 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
8b67aa36
KB
9275 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
9276 for accg registers.
9277 (frv_register_sim_regno): Update spr_map[].
9278
3c7012f5
AC
92792004-04-04 Andrew Cagney <cagney@redhat.com>
9280
9281 * config/mips/xm-riscos.h: Delete.
9282 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
9283 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
9284 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
9285 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
9286 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
9287 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
9288 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
9289 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
9290 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
9291 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
9292 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
9293 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
9294 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
9295 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
9296 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
9297 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
9298 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
9299 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
9300 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
9301 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
9302 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
9303 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
9304 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
9305 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
9306 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
9307 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
8718a420 9308
3c7012f5
AC
9309 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
9310 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
9311 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
9312 * configure.host: Remove m680[01]0-sun-sunos3*,
9313 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
9314 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
9315 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
9316 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
9317 mips-*-riscos*.
9318 * NEWS: Mention removed systems.
9319
99d16a21
AC
93202004-04-04 Andrew Cagney <cagney@redhat.com>
9321
9322 GDB 6.1 release created from 6.1 branch.
9323
6cdf9d98
AC
93242004-04-04 Andrew Cagney <cagney@redhat.com>
9325
98d346c3
AC
9326 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
9327 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
9328 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
9329
6cdf9d98
AC
9330 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
9331 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
9332 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
9333
859a326d
JB
93342004-04-03 Jim Blandy <jimb@redhat.com>
9335
9336 * MAINTAINERS: Chris Faylor has changed employers; add him to
9337 "paper trail" section, and update his E-mail address.
9338
b87178c3
AC
93392004-04-03 Andrew Cagney <cagney@redhat.com>
9340
4ea2acf0
AC
9341 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
9342 generic dummy frames.
9343 * dummy-frame.c: Update copyright.
9344 (dummy_frame_sniffer): Delete check for generic dummy frames.
9345
d0bd2d18 9346 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
8718a420 9347 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
d0bd2d18
AC
9348 (REG_PARM_STACK_SPACE): Delete.
9349 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
9350 Inline reference to REG_PARM_STACK_SPACE.
9351
b87178c3
AC
9352 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
9353 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
9354 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
9355 (FRAME_BASE_BEFORE_SIGTRAMP)
9356 (hppa32_hpux_frame_base_before_sigtramp)
9357 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
9358 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
9359 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
9360 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
9361 (FRAME_BASE_BEFORE_SIGTRAMP)
9362 (hppa64_hpux_frame_base_before_sigtramp)
9363 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
9364
43e2e1a0
AC
93652004-04-03 Andrew Cagney <cagney@redhat.com>
9366
9367 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
9368
ddc135a4
AC
93692004-04-02 Andrew Cagney <cagney@redhat.com>
9370
9371 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
9372 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
9373 * dummy-frame.h: Delete out-of-date comments.
9374 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
9375 * gdbarch.h, gdbarch.c: Re-generate.
9376
d15bfd3a 93772004-04-02 Joel Brobecker <brobecker@gnat.com>
8718a420 9378
d15bfd3a
AC
9379 Committed by Andrew Cagney <cagney@redhat.com>.
9380 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
9381 into account an instruction saving a register if we have already
9382 seen an earlier instruction saving that same register.
9383
f04ceafa
AC
93842004-04-02 Andrew Cagney <cagney@redhat.com>
9385
08be3abd
AC
9386 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
9387 * gdbarch.h, gdbarch.c: Re-generate.
9388 * frame.c (legacy_get_prev_frame): Delete references to
9389 DEPRECATED_INIT_FRAME_PC_FIRST.
9390
f04ceafa
AC
9391 * infrun.c (pc_in_sigtramp): Delete function.
9392 (check_sigtramp2): Inline call to pc_in_sigtramp, use
9393 get_frame_type.
9394
08e69816
AC
93952004-04-02 Andrew Cagney <cagney@redhat.com>
9396
9397 * infrun.c (handle_step_into_function): Delete code conditional on
9398 legacy_frame_p.
9399 (handle_inferior_event, step_over_function): Ditto.
9400
adb54772
AC
94012004-04-02 Andrew Cagney <cagney@redhat.com>
9402
9403 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
9404 "previous frame inner to this frame" test.
9405
304396fb
AC
94062004-04-02 Andrew Cagney <cagney@redhat.com>
9407
9408 * frame.c (safe_frame_unwind_memory): New function.
9409 * frame.h (safe_frame_unwind_memory): Declare. Update description
9410 of /safe_/ methods.
9411 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
9412 "next_frame". Use safe_frame_unwind_memory.
9413 (tramp_frame_sniffer): Update call to tramp_frame_start.
9414
6502dd73
DJ
94152004-04-01 Daniel Jacobowitz <drow@mvista.com>
9416
9417 * dwarf2read.c (dwarf2_objfile_data_key): New.
9418 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
9419 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
9420 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
9421 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
9422 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
9423 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
9424 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
9425 Remove variables.
9426 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
9427 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
9428 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
9429 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
9430 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
9431 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
9432 Remove macros.
9433 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
9434 data.
9435 (dwarf2_locate_sections, dwarf2_build_psymtabs)
9436 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
9437 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
9438 (read_partial_die, read_full_die, read_indirect_string)
9439 (dwarf_decode_line_header, dwarf_decode_macros)
9440 (dwarf2_symbol_mark_computed): Remove use of removed macros.
9441 Update uses of removed variables.
9442 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
9443 of removed macros.
9444 (_initialize_dwarf2_read): New function.
9445 * symfile.h (dwarf2_has_info): Update prototype.
9446 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
9447 * elfread.c (elf_symfile_read): Likewise.
9448
408752b0
JB
94492004-04-01 Jim Blandy <jimb@redhat.com>
9450
9f744501
JB
9451 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
9452 function for register numbers on all the rs6000-derived targets.
9453 (rs6000_gdbarch_init): Don't register a separate
9454 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
9455 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
9456 variants.
9457
408752b0
JB
9458 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
9459 numbering.
9460
2de41bce
PH
94612004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
9462
9463 * valarith.c: Update copyright notice.
9464 (value_add): Handle range types.
9465 (value_sub): Ditto.
9466 (value_equal): Ditto.
9467 (value_less): Ditto.
9468 (value_neg): Ditto.
9469 (value_complement): Ditto.
8718a420 9470 (value_binop): Simplify slightly by using is_integral_type and
2de41bce 9471 eliminiating unnecessary COERCE_ENUMs.
8718a420 9472
5613d8d3
AC
94732004-03-31 Andrew Cagney <cagney@redhat.com>
9474
9475 * frame.h (frame_unwind_id): Declare.
9476 * frame.c (frame_unwind_id): New function.
9477 (get_prev_frame_1): New function.
9478 (frame_debug_got_null_frame): New function.
9479 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
9480 code proper to prev_frame, update description.
9481 * infrun.c (step_over_function): Use frame_unwind_id.
9482
c4557624
JB
94832004-04-31 J. Brobecker <brobecker@gnat.com>
9484
9485 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
9486 (hppa64_push_dummy_call): Likewise.
9487
3e6bb910
JB
94882004-03-30 Jim Blandy <jimb@redhat.com>
9489
9490 From Ulrich Weigand:
9491 * utils.c (query): Do not use a va_list variable multiple times.
9492
a2f23071
DJ
94932004-03-29 Daniel Jacobowitz <drow@mvista.com>
9494
9495 * Makefile.in (linux_nat_h): Update dependencies.
9496 * configure.in: Check for <gnu/libc-version.h>.
9497 * configure: Regenerate.
9498 * config.in: Regenerate.
9499 * linux-nat.h: Include "target.h". Add waitstatus field to
9500 struct lwp_info.
9501 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
9502 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
9503 to.
9504 (lin_lwp_handle_extended): New function. Handle clone events.
9505 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
9506 thread exit events.
9507 (child_wait): Handle clone events.
9508 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
9509 * linux-nat.c (linux_enable_event_reporting): Turn on
9510 PTRACE_O_TRACECLONE.
9511 (linux_handle_extended_wait): Handle clone events.
9512 * thread-db.c: Include <gnu/libc-version.h>.
9513 (struct private_thread_info): Add dying flag.
9514 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
9515 higher.
9516 (attach_thread): Update comments. Handle dying threads.
9517 (detach_thread): Set the dying flag.
9518 (check_event): Always call attach_thread.
9519
8d5f9dcb
DJ
95202004-03-29 Daniel Jacobowitz <drow@mvista.com>
9521
9522 * mips-tdep.c (mips_pdr_data): New.
9523 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
9524 (_initialize_mips_tdep): Initialize mips_pdr_data.
9525
66337bb1
CV
95262004-03-29 Corinna Vinschen <vinschen@redhat.com>
9527
9528 * minsyms.c (install_minimal_symbols): Move dropping leading
9529 char from linkage name from here...
9530 (prim_record_minimal_symbol_and_info): ...to here. Simplify
9531 test for "__gnu_compiled*" symbols.
9532
e802b915
JB
95332004-03-28 Jim Blandy <jimb@redhat.com>
9534
9535 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
9536 registers to temp register r0 and byte stores as prologue
9537 instructions.
9538
72b56458
AC
95392004-03-28 Andrew Cagney <cagney@redhat.com>
9540
9541 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
9542 arm*-*-*.
9543
0bfbda3b
SC
95442004-03-28 Stephane Carrez <stcarrez@nerim.fr>
9545
9546 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
9547 and switch the layout to force a display of register window.
9548
5a7225ed
JB
95492004-02-26 J. Brobecker <brobecker@gnat.com>
9550
9551 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
9552 of the INTEGER class.
9553
81a07a45
JB
95542004-03-26 Jim Blandy <jimb@redhat.com>
9555
9556 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
9557 bytes long on PPC GNU/Linux.
9558
8c691c7a
DC
95592004-03-26 David Carlton <carlton@kealia.com>
9560
9561 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
9562
103a0089
AC
95632004-03-25 Andrew Cagney <cagney@redhat.com>
9564
9565 * PROBLEMS: Add general section titles, remove references to
9566 specific releases.
9567
7a5ea0d4
DJ
95682004-03-25 Daniel Jacobowitz <drow@mvista.com>
9569
9570 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
9571 INT_REGISTER_SIZE.
9572 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
9573 FP_REGISTER_VIRTUAL_SIZE.
9574 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
9575 of DEPRECATED_REGISTER_RAW_SIZE.
9576 (arm_register_type): Add gdbarch argument.
9577 (arm_register_raw_size, arm_register_virtual_size): Delete.
9578 (arm_register_byte, arm_extract_return_value)
9579 (arm_store_return_value, arm_get_longjmp_target): Update references
9580 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
9581 (arm_gdbarch_init): Likewise. Don't set
9582 deprecated_register_raw_size, deprecated_register_virtual_size,
9583 deprecated_max_register_raw_size,
9584 deprecated_max_register_virtual_size, or
9585 deprecated_max_register_virtual_type. Do set register_type.
9586 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
9587 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
9588 (FP_REGISTER_VIRTUAL_SIZE): Delete.
9589 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
9590 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
9591 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
9592 INT_REGISTER_SIZE.
9593 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
9594 (remote_rdp_store_register): Likewise.
9595
5792a79b
DJ
95962004-03-24 Daniel Jacobowitz <drow@mvista.com>
9597
9598 * Makefile.in (mips-linux-tdep.o): Update dependencies.
9599 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
9600 to after osabi initialization.
9601 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
9602 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
9603 functions.
9604 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
9605 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
9606 variables.
9607 (mips_linux_init_abi): Append signal trampoline unwinders.
9608
1196bfda
AC
96092004-03-24 Andrew Cagney <cagney@redhat.com>
9610
9611 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
9612 * tramp-frame.c: Include "gdb_assert.h".
9613 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
9614 correct sizeof.
9615 (tramp_frame_append): Validate the tramp frame's instructions.
9616 * Makefile.in (tramp-frame.o): Update dependencies.
9617
4be282b4
AC
96182004-03-23 Andrew Cagney <cagney@redhat.com>
9619
9620 * trad-frame.h (trad_frame_set_reg_addr): Declare.
9621
69aec09b
AC
96222004-03-23 Andrew Cagney <cagney@redhat.com>
9623
9624 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
9625 Nasser as past testsuite/lib/ (and other) maintainers.
9626
63ed89b4
DJ
96272004-03-23 Daniel Jacobowitz <drow@mvista.com>
9628
9629 * infcmd.c (attach_command): Reread symbols if we already have
9630 an exec file.
9631
f3b36427
AC
96322004-03-23 Andrew Cagney <cagney@redhat.com>
9633
9634 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
9635
aa2a3f87
AC
96362004-03-23 Andrew Cagney <cagney@redhat.com>
9637
9638 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
9639 * gdbarch.h, gdbarch.c: Re-generate.
9640 * i386obsd-tdep.c (i386obsd_init_abi): Update.
9641 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
9642 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8718a420 9643 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87 9644 (DEPRECATED_SIGTRAMP_START): Update.
8718a420 9645 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87
AC
9646 (DEPRECATED_SIGTRAMP_START): Update.
9647 * blockframe.c (find_pc_sect_partial_function): Update.
9648 * arch-utils.c (legacy_pc_in_sigtramp): Update.
9649
00cac895
DJ
96502004-03-23 Daniel Jacobowitz <drow@mvista.com>
9651
9652 * remote.c (remote_open_1): Reopen the exec file and reread symbols
9653 if necessary.
9654
f561f026
AC
96552004-03-23 Andrew Cagney <cagney@redhat.com>
9656
9657 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
9658 predicate, deprecate.
9659 * gdbarch.h, gdbarch.c: Re-generate.
9660 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
9661 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
9662 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
9663 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
9664 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
9665 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
9666 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
9667 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
9668 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
9669 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
9670 * blockframe.c (find_pc_partial_function): Update.
9671 * breakpoint.c (bpstat_what): Update.
9672 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
9673 * frv-linux-tdep.c (frv_linux_init_abi): Update.
9674 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
9675 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
9676 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9677 * i386-linux-tdep.c (i386_linux_init_abi): Update.
9678 * i386-nto-tdep.c (i386nto_init_abi): Update.
9679 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
9680 * i386-tdep.c (i386_sigtramp_frame_sniffer)
9681 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
9682 * i386bsd-tdep.c (i386bsd_init_abi): Update.
9683 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
9684 * i386obsd-tdep.c (i386obsd_init_abi): Update.
9685 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
9686 * infrun.c (pc_in_sigtramp): Update.
9687 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
9688 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
9689 * mips-tdep.c (mips_gdbarch_init): Update.
9690 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
9691 * ppc-linux-tdep.c: Update comment.
9692 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
9693 * shnbsd-tdep.c (shnbsd_init_abi): Update.
9694 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
9695 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
9696 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
9697 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
9698 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
9699 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
9700 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
9701 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
8718a420 9702
8050c72f
AC
97032004-03-23 Andrew Cagney <cagney@redhat.com>
9704
d2259dd3
AC
9705 * tramp-frame.h, tramp-frame.h: New files.
9706 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
9707 Update rules to include "tramp-frame.h" and "tramp-frame.c".
9708
8050c72f
AC
9709 * Makefile.in: Update all dependencies.
9710
0db9b4b7
AC
97112004-03-23 Andrew Cagney <cagney@redhat.com>
9712
9713 * Makefile.in (trad_frame_h): Add $(frame_h).
9714 * trad-frame.h: Update copyright. Include "frame.h".
9715 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
9716 (trad_frame_set_id, trad_frame_get_id): Declare.
9717 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
9718 * trad-frame.c: Update copyright.
9719 (struct trad_frame_cache): Define.
9720 (trad_frame_cache_zalloc): New function.
9721 (trad_frame_set_id, trad_frame_get_id): New functions.
9722 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
8718a420 9723
8e645ae7
AC
97242004-03-22 Andrew Cagney <cagney@redhat.com>
9725
9726 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
9727 s390_pltstub_unwind_cache.
9728 (s390_stub_frame_unwind_cache): Rename
9729 s390_pltstub_frame_unwind_cache.
9730 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
9731 (s390_stub_frame_prev_register): Rename
9732 s390_pltstub_frame_prev_register.
9733 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
9734 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
9735
9736 From Ulrich Weigand:
9737 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
9738 pointer calls like PLT calls.
9739
34fcf120
DJ
97402004-03-22 Daniel Jacobowitz <drow@mvista.com>
9741
9742 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
9743 PC rather than the partial function start address. Use the start
9744 address to sanity check the found PDR.
9745
5b917078
DJ
97462004-03-22 Daniel Jacobowitz <drow@mvista.com>
9747
9748 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
9749 linux_handle_extended_wait.
9750
8adf9e78
AC
97512004-03-22 Andrew Cagney <cagney@redhat.com>
9752
c3122434
AC
9753 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
9754 function.
9755
8adf9e78
AC
9756 * frame.h (generic_pop_current_frame): Delete declaration.
9757 (deprecate_pop_dummy_frame): Deprecate
9758 generic_pop_dummy_frame.
9759 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
9760 (generic_pop_current_frame): Delete function.
9761 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
9762 generic_pop_current_frame.
9763 * v850-tdep.c (v850_pop_frame): Update.
9764 * mcore-tdep.c (mcore_pop_frame): Update.
9765 * sh64-tdep.c (sh64_pop_frame): Update.
9766 * h8300-tdep.c (h8300_pop_frame): Update.
9767
90ba813f
AC
97682004-03-22 Andrew Cagney <cagney@redhat.com>
9769
9770 * frame.h (deprecated_pc_in_call_dummy): Rename
9771 generic_pc_in_call_dummy.
9772 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
9773 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
9774 generic_pc_in_call_dummy.
9775 (pc_in_dummy_frame): Make static.
9776 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
9777 * gdbarch.h, gdbarch.c: Re-generate.
9778 * dummy-frame.c (dummy_frame_sniffer): Simplify.
9779 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
9780 (legacy_get_prev_frame): Ditto.
9781 * inferior.h: Delete reference to generic_pc_in_call_dummy in
9782 comment.
8718a420 9783
ca4bb888
AC
97842004-03-21 Andrew Cagney <cagney@redhat.com>
9785
244675f9
AC
9786 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
9787 declaration and out-of-date comment.
9788 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
9789 Delete function.
9790 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
9791 deprecated_pc_in_call_dummy.
9792
ca4bb888
AC
9793 * infrun.c (handle_inferior_event): For non legacy frames, use the
9794 frame ID and frame type to identify a signal trampoline. Update
9795 comments.
9796
1777c7b4
NW
97972004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
9798
9799 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
9800 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
9801
82417da5
AC
98022004-03-21 Andrew Cagney <cagney@redhat.com>
9803
9804 * frame-unwind.h: Update copyright.
9805 (struct frame_data): Add opaque declaration.
9806 (frame_sniffer_ftype): Declare.
9807 (struct frame_unwind): Add "unwind_data" and "sniffer".
9808 (frame_unwind_register_unwinder): Declare.
9809 (frame_unwind_find_by_frame): Add parameter "this_cache".
9810 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
9811 (legacy_get_prev_frame, legacy_get_prev_frame)
9812 (get_frame_type): Pass the prologue_cache to
9813 frame_unwind_find_by_frame.
9814 * frame-unwind.c (struct frame_unwind_table_entry): Add field
9815 "unwinder".
9816 (frame_unwind_register_unwinder): New function.
9817 (frame_unwind_find_by_frame): Handle an unwind sniffer.
9818
b2ba182e
PH
98192004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
9820
9821 * bcache.c (print_percentage): Use floating point to avoid
9822 incorrect results when portion*100 overflows.
9823
81332287
KB
98242004-03-19 Kevin Buettner <kevinb@redhat.com>
9825
9826 * ppc_tdep.h (ppc_linux_frame_saved_pc)
9827 (ppc_linux_init_extra_frame_info)
9828 (ppc_linux_frameless_function_invocation)
9829 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
9830 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
9831 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
9832 (rs6000_frame_chain): Delete declarations.
9833 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
9834 (ppc_linux_init_extra_frame_info)
9835 (ppc_linux_frameless_function_invocation)
9836 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
9837 (ppc_linux_init_abi): Remove registration of above deleted functions.
9838 * rs6000-tdep.c (rs6000_init_extra_frame_info)
9839 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
9840 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
9841 (rs6000_pop_frame, rs6000_frameless_function_invocation)
9842 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
9843 (rs6000_gdbarch_init): Remove registration of above deleted functions.
9844 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
9845 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
9846 frame management for all OSABIs.
9847
61a65099
KB
98482004-03-19 Andrew Cagney <cagney@redhat.com>
9849
9850 Committed by Kevin Buettner <kevinb@redhat.com>.
9851
9852 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
9853 Update copyright.
9854 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
9855 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
9856 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
9857 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
9858 unwinders. #ifdef legacy frame code.
9859 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
9860 "frame-base.h".
9861 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
9862 (struct rs6000_frame_cache, rs6000_frame_cache)
9863 (rs6000_frame_this_id, rs6000_frame_prev_register)
9864 (rs6000_frame_sniffer, rs6000_frame_unwind)
9865 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
9866 (rs6000_frame_base): Implement a traditional frame unwinder.
9867 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
9868 frame unwinder.
9869
88f7da05
KB
98702004-03-19 Kevin Buettner <kevinb@redhat.com>
9871
9872 * breakpoint.c (adjust_breakpoint_address): Don't adjust
9873 breakpoint address for watchpoints or the catch eventpoints.
9874 Add new paramter ``bptype''. Adjust all callers.
9875
f826dce1
AC
98762004-03-19 Andrew Cagney <cagney@redhat.com>
9877
33cb8b0f
AC
9878 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
9879
f826dce1
AC
9880 * PROBLEMS: Delete note that ARM does not use frame code, problem
9881 fixed.
9882
43b1ab88
AC
98832004-03-18 Andrew Cagney <cagney@redhat.com>
9884
292ab034
AC
9885 * stack.c (return_command): Delete code wrapped in #ifdef
9886 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
9887
43b1ab88
AC
9888 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
9889
dbfe4626
AC
98902004-03-18 Andrew Cagney <cagney@redhat.com>
9891
9892 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
9893 DEPRECATED_IN_SIGTRAMP.
9894 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9895 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
9896 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9897 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9898 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9899 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9900 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9901 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9902 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
9903 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
9904
0cad6aec
AC
99052004-03-18 Andrew Cagney <cagney@redhat.com>
9906
9907 * frame-base.c: Update copyright. Include "gdb_obstack.h".
9908 (struct frame_base_table_entry): Define.
9909 (struct frame_base_table): Re-implement as a linked list.
9910 (frame_base_init): Re-implement.
9911 (frame_base_table): Delete function.
9912 (append_predicate): Delete function.
9913 (frame_base_append_sniffer): Update.
9914 (frame_base_set_default): Update.
9915 (frame_base_find_by_frame): Update.
9916 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
9917 * Makefile.in (frame-base.o): Update dependencies.
9918
9982c2e7
AC
99192004-03-17 Andrew Cagney <cagney@redhat.com>
9920
9921 * frame.c (legacy_get_prev_frame): Pass correct frame to
9922 frame_unwind_find_by_frame.
9923
8dfe8985
DC
99242004-03-17 David Carlton <carlton@kealia.com>
9925
9926 * NEWS: Mention C++ nested types and namespaces
9927
ed47347a
MC
99282004-03-16 Michael Chastain <mec.gnu@mindspring.com>
9929
9930 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
9931 and "Regressions since gdb 5.3.". Add known regressions since
9932 gdb 6.0.
9933
90aeadfc
DC
99342004-03-16 David Carlton <carlton@kealia.com>
9935
9936 * dwarf2read.c (process_structure_scope): Process children even
9937 when we're a declaration.
9938
73912b9b
AC
99392004-03-16 Andrew Cagney <cagney@redhat.com>
9940
9941 * symtab.h (find_pc_sect_partial_function): Delete declaration.
9942 * blockframe.c (find_pc_partial_function)
9943 (find_pc_sect_partial_function): Merge into a single
9944 find_pc_partial_function.
9945
283accbc
MK
99462004-03-16 Mark Kettenis <kettenis@gnu.org>
9947
9948 * i386bsd-nat.c: s/regno/regnum/g.
9949 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
9950 FP0_REGNUM.
9951 (store_inferior_registers): Likewise.
9952
f5b1afdf
MK
99532004-03-16 Mark Kettenis <kettenis@gnu.org>
9954
9955 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
9956 of i387_fill_fsave.
9957 (store_inferior_registers): Call i387_collect_fsave and
9958 i387_collect_fxsave instead of i387_fill_fsave and
9959 i387_fill_fxsave.
9960
41fe5eb3
AC
99612004-03-15 Andrew Cagney <cagney@redhat.com>
9962
9963 * Makefile.in (frame-unwind.o): Update dependencies.
9964 * frame-unwind.c: Include "gdb_obstack.h".
9965 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
9966 parameter.
9967 (append_predicate): Delete function.
9968 (struct frame_unwind_table_entry): New structure.
9969 (struct frame_unwind_table): Replace "sniffer" with "head" and
9970 "tail".
9971 (frame_unwind_append_sniffer): Update.
9972 (frame_unwind_find_by_frame): Update.
9973 (_initialize_frame_unwind): Registe frame_unwind_init using
9974 gdbarch_data_register_pre_init.
9975
3f63813d
MK
99762004-03-15 Mark Kettenis <kettenis@gnu.org>
9977
9978 * i386bsd-nat.c: Update copyright year.
9979 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
9980 define unconditionally.
9981
3248c325 99822004-03-15 Mark Kettenis <kettenis@gnu.org>
63b6c53f
MK
9983
9984 * i387-tdep.h (i387_collect_fsave): New prototype.
9985 * i387-tdep.c (i387_collect_fsave): New function containing most
9986 of the code from i387_fill_fsave.
3248c325 9987 (i387_fill_fsave): Call i387_collect_fsave.
63b6c53f 9988
871fbe6a
MK
99892004-03-15 Mark Kettenis <kettenis@gnu.org>
9990
9991 * i386-linux-tdep.c: Update copyright year.
9992 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
9993 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
9994 svr4_ilp32_link_map_offsets instead of
9995 i386_linux_svr4_fetch_link_map_offsets.
9996
8176b9b8
DC
99972004-03-15 David Carlton <carlton@kealia.com>
9998
9999 Fix for PR c++/1553:
10000 * dwarf2read.c (read_structure_type): Determine type name by
10001 calling determine_class_name.
10002 (determine_class_name): New.
10003 (determine_prefix): Look at TYPE_TAG_NAME and call
10004 determine_class_name when appropriate.
10005 (determine_prefix_aux, class_name): Delete.
9d58e29d 10006 (read_namespace): Set die->type.
8176b9b8 10007
fe8bf7d7
KB
100082004-03-15 Kevin Buettner <kevinb@redhat.com>
10009
10010 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
10011 unused macro definition. The definition in target.h (or perhaps
10012 elsewhere) takes precedence.
10013
ed6edd9b
AC
100142004-03-15 Andrew Cagney <cagney@redhat.com>
10015
f9be684a
AC
10016 * ppc-tdep.h: Update copyright.
10017 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
10018 function signatures to match "regsets.h".
10019 * ppc-linux-tdep.c: Include "regset.h".
10020 (ELF_GREGSET_SIZE): Delete.
10021 (right_supply_register): New function.
10022 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
10023 using right_supply_register.
10024 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
10025 functions.
10026 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
10027 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
10028 (_initialize_ppc_linux_tdep): Do not register
10029 ppc_linux_regset_core_fns.
10030 (ppc_linux_regset_from_core_section): Replace
10031 fetch_core_registers.
10032 (ppc_linux_regset_core_fns): Delete.
10033 * ppc-linux-nat.c: (right_fill_reg): New function.
10034 (supply_gregset): Update call to ppc_linux_supply_gregset.
10035 (fill_gregset): Clear the register set, use right_fill_reg.
10036 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
10037 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
10038
ed6edd9b
AC
10039 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
10040 unsigned.
10041
030f20e1
AC
100422004-03-15 Andrew Cagney <cagney@redhat.com>
10043
10044 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
10045 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
10046 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
10047 and register_gdbarch_data.
10048 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
10049 (struct gdbarch_data): Replace "init" by "pre_init" and
10050 "post_init".
10051 * gdbarch.h, gdbarch.c: Re-generate.
10052 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
10053 with"obstack", use OBSTACK_ZALLOC.
10054 (dwarf2_frame_ops): Delete.
10055 (dwarf2_frame_set_init_reg): Use gdbarch_data.
10056 (dwarf2_frame_init_reg): Use gdbarch_data.
10057 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
8718a420 10058 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
030f20e1
AC
10059 (_initialize_svr4_solib): Update.
10060 * user-regs.c (_initialize_user_regs): Update.
10061 * reggroups.c (_initialize_reggroup): Update.
10062 * regcache.c (_initialize_regcache): Update.
10063 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
10064 * libunwind-frame.c (_initialize_libunwind_frame): Update.
10065 * gnu-v3-abi.c (init_gnuv3_ops): Update.
10066 * frame-unwind.c (_initialize_frame_unwind): Update.
10067 * frame-base.c (_initialize_frame_base): Update.
10068 * user-regs.c (user_reg_add): Update.
10069 * reggroups.c (reggroup_add): Update.
10070 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
10071 * libunwind-frame.c (libunwind_frame_set_descr): Update.
10072 * frame-unwind.c (frame_unwind_append_sniffer): Update.
10073 * frame-base.c (frame_base_table): Update.
10074 * remote.c (_initialize_remote): Update.
10075 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
8718a420 10076
3111a3fc
AC
100772004-03-15 Andrew Cagney <cagney@redhat.com>
10078
10079 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
10080
5ecb7103
KB
100812004-03-15 Kevin Buettner <kevinb@redhat.com>
10082
10083 * Makefile.in (frv-linux-tdep.o): Add dependencies.
10084 * frv-linux-tdep.c: New file.
10085 * frv-tdep.c (struct gdbarch_tdep): Add new field
10086 ``sigcontext_reg_addr''.
10087 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
10088 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
10089 (frv_sigramp_frame_sniffer): New functions.
10090 (frv_sigtramp_frame_unwind): New static global.
10091 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
10092 sniffers.
10093 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
10094 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
10095
1ccda5e9
KB
100962004-03-15 Kevin Buettner <kevinb@redhat.com>
10097
10098 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
10099 but not via a call to error(), when unable to read memory.
10100
b375a0a5
KB
101012004-03-15 Kevin Buettner <kevinb@redhat.com>
10102
10103 * frv-tdep.c (frv_call_dummy_words): Delete.
10104 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
10105
4fdf6121
AC
101062004-03-15 Andrew Cagney <cagney@redhat.com>
10107
10108 * infrun.c (handle_step_into_function, step_over_function): Only
10109 update and use STEP_FRAME_ID when the system is using legacy
10110 frames. Update comments.
10111
34021503
MK
101122004-03-14 Mark Kettenis <kettenis@gnu.org>
10113
187e21d1
MK
10114 * amd64-linux-tdep.h: Remove file.
10115 * amd64-linux-tdep.c: Don't include "inferior.h" and
10116 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
10117 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
10118 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
10119 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
10120 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
10121 macros.
10122 (user_to_gdb_regmap): Remove variable.
10123 (amd64_linux_gregset_reg_offset): New variable.
10124 (amd64_core_fns): Remove variable.
10125 (fetch_core_registers): Remove function.
10126 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
10127 functions.
10128 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
10129 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
10130 * Makefile.in (amd64_linux_tdep_h): Remove.
10131 (amd64-linux-nat.o): Update dependencies.
10132 (amd64-linux-tdep.o): Update dependencies.
10133
99679982
MK
10134 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
10135 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
10136 functions.
10137 (fetch_inferior_registers, store_inferior_registers): Rewrite.
10138
34021503
MK
10139 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
10140 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
10141
134d01f1
DJ
101422004-03-14 Daniel Jacobowitz <drow@mvista.com>
10143
10144 * dwarf2read.c (read_structure_type): Rename from
8718a420 10145 read_structure_scope. Don't create a symbol or call process_die.
134d01f1
DJ
10146 Return immediately if die->type is set. Call read_type_die before
10147 dwarf2_add_member_fn.
10148 (process_structure_scope): New function.
10149 (read_enumeration_type, process_enumeration_scope): New functions,
10150 broken out from read_enumeration. Don't create the enumeration
10151 type if it has already been created.
10152 (read_enumeration): Removed.
10153 (process_die): Call read_structure_type, process_structure_scope,
10154 read_enumeration_type, and process_enumeration_scope. Just call
10155 new_symbol for base and subrange types. Add a comment about other
10156 type dies.
10157 (read_type_die): Call read_enumeration_type.
10158 (add_partial_structure, new_symbol): Update comments.
10159
65760afb
SC
101602004-03-13 Stephane Carrez <stcarrez@nerim.fr>
10161
10162 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
10163
10f59415
SC
101642004-03-13 Stephane Carrez <stcarrez@nerim.fr>
10165
10166 * tui/tui-win.h (tui_get_cmd_list): Declare.
10167 * tui/tui-win.c (tui_command): New function.
10168 (tui_get_cmd_list): New function.
10169 (_initialize_tui_win): Moved initialization of tui command in
10170 tui_get_cmd_list.
10171
10172 * tui/tui-data.c (init_content_element): Setup new data members.
10173 (init_win_info): Likewise.
10174 (free_content_elements): Free it.
10175 * tui/tui-data.h (struct tui_data_element): Store the register
10176 content to print.
10177 (struct tui_data_info): Keep the current register group.
10178
10179 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
10180
10181 * tui/tui-regs.h (tui_show_registers): Update prototype.
10182 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
10183 (tui_resize_all): No need to calculate anything for register window.
10184 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
10185 (tui_set_register_element, tui_set_general_regs_content): Remove.
10186 (tui_set_special_regs_content): Remove.
10187 (tui_set_general_and_special_regs_content): Remove.
10188 (tui_set_float_regs_content): Remove.
10189 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
10190 (tui_set_regs_content): Remove.
10191 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
10192 (tui_v_show_registers_command_support): Remove.
10193 (tui_show_registers): Use a reggroup to specify the registers to show.
10194 (tui_show_register_group): New function.
10195 (tui_display_registers_from): Compute the layout of register window
10196 and refresh with new API; be sure to delete old register windows.
10197 (tui_check_register_values): Update to use tui_get_register and
10198 tui_display_data.
10199 (tui_display_register): Just refresh the register window part.
10200 (tui_register_format): Format registers and save in tui_data_element.
10201 (tui_get_register): New to combine tui_reg_value_has_changed and
10202 tui_get_register_raw_value; fix to use the new gdb API.
10203 (tui_show_float_command): Renamed tui_reg_float_command.
10204 (tui_show_general_command): Renamed tui_reg_general_command.
10205 (tui_show_special_command): Renamed tui_reg_system_command.
10206 (_initialize_tui_regs): Remove unused commands.
10207
c3364ea4
MK
102082004-03-13 Mark Kettenis <kettenis@gnu.org>
10209
27d1e716
MK
10210 * NEWS (New native configurations): Mention OpenBSD/amd64.
10211
c3364ea4
MK
10212 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
10213 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
10214 Remove defines.
10215 * config/i386/nm-fbsd64.h: Likewise.
10216 * config/i386/nm-obsd.h: Likewise.
10217 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
10218 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
10219
b2d6d697
KB
102202004-03-12 Kevin Buettner <kevinb@redhat.com>
10221
10222 * frv-tdep.c (set_variant_scratch_registers): New function.
b2d6d697
KB
10223 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
10224 New constants.
10225
76e43199
KB
10226 From Richard Sandiford <rsandifo@redhat.com>:
10227 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
10228
34ce532e
KB
102292004-03-12 Kevin Buettner <kevinb@redhat.com>
10230
10231 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
10232 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
10233 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
10234 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
10235 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
10236 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
10237 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
10238 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
10239 definitions from frv-tdep.c to frv-tdep.h.
10240
c4d10515
KB
102412004-03-12 Kevin Buettner <kevinb@redhat.com>
10242
10243 Add shared library support for FR-V FDPIC ABI:
10244 * Makefile.in (solib-frv.o): Add dependencies.
10245 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
10246 New functions.
10247 (frv_push_dummy_call): Add support for FDPIC ABI.
10248 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
10249 for FDPIC ABI.
10250 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
10251 (frv_fdpic_find_canonical_descriptor): Declare.
10252 * solib-frv.c: New file.
10253 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
10254 * config/frv/tm-frv.h (solib.h): Include.
10255
ed1bd989
KB
102562004-03-12 Kevin Buettner <kevinb@redhat.com>
10257
10258 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
10259 (frv-tdep.o): Update dependencies.
10260 * frv-tdep.h: New file.
10261 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
10262 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
10263 constants.
10264 (struct gdbarch_tdep): Add new member ``frv_abi''.
10265 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
10266 functions.
10267 (new_variant): Set ``frv_abi'' field.
10268 (gdb_arch_init): Detect FDPIC executables.
10269
82b38f72
MK
102702004-03-12 Mark Kettenis <kettenis@gnu.org>
10271
10272 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
10273 wrapper.
10274
db1ea9ba
AC
102752004-03-11 Andrew Cagney <cagney@redhat.com>
10276
10277 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
10278
f8766ec1
KB
102792004-03-11 Kevin Buettner <kevinb@redhat.com>
10280
10281 * solist.h (master_so_list): New function.
10282 * solib.c (master_so_list): Likewise.
10283 * solib-svr4.c (enable_break): Iterate over so_list entries
10284 obtained from master list instead of entries obtained directly
10285 via svr4_current_sos().
10286
523f6a27
BE
102872004-03-10 Ben Elliston <bje@gnu.org>
10288
10289 * MAINTAINERS: Update my mail address.
10290
37814c18
KI
102912004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
10292
10293 * remote-m32r-sdi.c: Support hardware watchpoint.
10294
8b9740d8
DJ
102952004-03-09 Daniel Jacobowitz <drow@mvista.com>
10296
10297 * user-regs.c: Update copyright years.
10298 (struct user_regs): Rename to gdb_user_regs.
10299 (append_user_reg, builtin_user_regs, user_regs_init)
10300 (user_reg_add, user_reg_map_name_to_regnum)
10301 (usernum_to_user_reg): Update.
10302
4bb7a0a7
DJ
103032004-03-09 Daniel Jacobowitz <drow@mvista.com>
10304
10305 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
10306 (skip_children): New functions.
10307 (locate_pdi_sibling): Call skip_children.
10308
44e1a9eb
DJ
103092004-03-09 Daniel Jacobowitz <drow@mvista.com>
10310
10311 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
10312 * gdbtypes.c (check_typedef): Update comments.
10313
f3dd6933
DJ
103142004-03-09 Daniel Jacobowitz <drow@mvista.com>
10315
10316 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
10317 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
10318 pointer. Update comment about comp_unit_head.
10319 (struct abbrev_info): Shorten two int flags.
10320 (dwarf_alloc_abbrev): Take a CU argument.
10321 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
10322 each time through the loop. Update cleanup argument.
10323 (psymtab_to_symtab_1): Update cleanup call.
10324 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
10325 abbrev_obstack.
10326 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
10327 Just call obstack_free and clear the pointer.
10328
b40c7d58
DJ
103292004-03-09 Daniel Jacobowitz <drow@mvista.com>
10330
10331 * infrun.c (handle_inferior_event): Remove short-circuit code for
10332 events in a different thread.
10333
333dabeb
DJ
103342004-03-09 Daniel Jacobowitz <drow@mvista.com>
10335
10336 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
10337 print the whole transfer.
10338 (initialize_targets): Update description of "set debug target".
10339
aa17d93e
DJ
103402004-03-09 Daniel Jacobowitz <drow@mvista.com>
10341
10342 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
10343
0b71f08f
NW
103442004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
10345
10346 * MAINTAINERS (write after approval): Add myself.
10347
3930f270
CV
103482004-03-08 Corinna Vinschen <vinschen@redhat.com>
10349
10350 * sh-tdep.c (sh_print_registers_info): Use for loop.
10351 Don't skip multiple registers when a float register is encountered.
10352
a2b4a96c
CV
103532004-03-08 Corinna Vinschen <vinschen@redhat.com>
10354
10355 Fix PR tdep/1291.
10356 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
10357 to official SH documentation.
10358
f15a4bc0
AC
103592004-03-07 Andrew Cagney <cagney@redhat.com>
10360
10361 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
10362 unused function.
10363
9498281f
DJ
103642004-03-07 Daniel Jacobowitz <drow@mvista.com>
10365
10366 * arm-tdep.c (thumb_get_next_pc): Handle BX.
10367 (arm_get_next_pc): Handle BX and BLX.
10368
449e1137
AC
103692004-03-07 Andrew Cagney <cagney@redhat.com>
10370
eded0a31
AC
10371 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
10372 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
10373 HPPA_SP_REGNUM.
10374 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
10375 (hppa_target_read_fp): Delete.
10376 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
10377 register_virtual_size, max_register_raw_size,
10378 max_register_virtual_size, register_byte, register_size,
10379 target_read_fp, fp_regnum, and register_bytes. Set register_type
10380 instead of register_virtual_type.
10381 (hppa32_register_type, hppa64_register_type): Replace
10382 hppa32_register_virtual_type and hppa64_register_virtual_type.
10383 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
10384 (HPPA_FP_REGNUM): Define.
10385
f5f907e2
AC
10386 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
10387
69b4bbe4
AC
10388 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
10389 (pa_do_registers_info): Delete.
10390 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
8718a420 10391 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
69b4bbe4 10392 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
f5f907e2 10393
78161e48
AC
10394 * infcall.c (legacy_push_dummy_code): Delete #ifdef
10395 GDB_TARGET_IS_HPPA code.
10396 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
8718a420 10397 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
78161e48
AC
10398 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
10399 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
8718a420
RM
10400 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
10401 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
10402 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
78161e48 10403 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
8718a420
RM
10404 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
10405 (hppa_frameless_function_invocation, hppa64_store_return_value)
10406 (hppa_store_struct_return, hppa64_extract_return_value)
78161e48 10407 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
8718a420 10408 (hppa32_call_dummy_length, hppa64_call_dummy_length)
78161e48 10409 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
8718a420
RM
10410 (find_proc_framesize, deposit_21, restore_pc_queue)
10411 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
210197d2 10412 (rp_saved, pc_in_linker_stub): Delete.
78161e48 10413
782eae8b
AC
10414 Unconditionally enable 64-bit frame and ABI code.
10415 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
10416 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
10417 push_dummy_frame, fix_call_dummy, push_arguments,
10418 call_dummy_location, extract_return_value, use_struct_convention,
10419 store_return_value, store_struct_return, saved_pc_after_call,
10420 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
10421 frame_chain, frame_chain_valid, frameless_function_invocation,
10422 frame_saved_pc, and pop_frame.
78161e48 10423
449e1137
AC
10424 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
10425 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
10426 (hppa_gdbarch_init): Do not set PC_REGNUM.
10427
12507572
MK
104282004-03-06 Mark Kettenis <kettenis@gnu.org>
10429
10430 * config/alpha/tm-fbsd.h: Remove file.
10431 * config/alpha/fbsd.mt: Tweak comment.
10432 (TM_FILE): Set to tm-alpha.h.
10433
c107cc1b
AC
104342004-03-05 Andrew Cagney <cagney@redhat.com>
10435
10436 * infrun.c (step_over_function): When non-legacy code, and no
10437 step_frame_id, use the unwinder to get the caller's frame ID.
10438
f2e7c15d
MK
104392004-03-05 Mark Kettenis <kettenis@gnu.org>
10440
8b0c3633
MK
10441 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
10442 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
10443 bfd_arch_unknown. Adjust comment.
10444
f2e7c15d
MK
10445 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
10446 * i386obsd-tdep.c: Correct spelling in comment.
10447 * i386nbsd-tdep.c: Correct spelling in comment.
10448 * sparc-tdep.c: Correct spelling in comments.
10449
1198ecbe
DC
104502004-03-05 David Carlton <carlton@kealia.com>
10451
10452 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
10453 bug.
10454
9eb42ed1
MK
104552004-03-05 Mark Kettenis <kettenis@gnu.org>
10456
10457 * sparc-tdep.c: Fix typo in comment.
10458
52b5e991
JB
104592004-03-04 J. Brobecker <brobecker@gnat.com>
10460
10461 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
10462
d8151005
DJ
104632004-03-04 Daniel Jacobowitz <drow@mvista.com>
10464
10465 * dwarf2read.c: Add comment describing memory lifetimes.
10466 (struct dwarf2_pinfo): Update comment.
10467 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
10468 (read_enumeration, new_symbol): Don't use obsavestring.
10469
cbeae229
MK
104702004-03-04 Mark Kettenis <kettenis@gnu.org>
10471
722d18c2
MK
10472 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
10473 instead of amd64_fill_fxsave.
10474 * amd64bsd-nat.c (store_inferior_registers): Likewise.
10475 * amd64fbsd-nat.c (fill_fpregset): Likewise.
10476
cbeae229
MK
10477 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
10478 Reorganize code a bit.
10479
b4206d25
OF
104802004-03-04 Orjan Friberg <orjanf@axis.com>
10481
10482 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
8718a420
RM
10483 when the frame pointer is pushed. Don't set the frame pointer's
10484 address on the stack unless it's actually located there.
b4206d25
OF
10485 Set the SRP's address on the stack correctly when the PC is still in
10486 the prologue.
10487 (cris_return_value): New function.
10488 (cris_gdbarch_init): Clear deprecated store_return_value,
10489 extract_return_value.
10490
49b0b195
JB
104912004-03-02 Jim Blandy <jimb@redhat.com>
10492
10493 * stabsread.c (reg_value_complaint): The maximum register number
10494 is one less than the number of registers.
10495
e9ff708b
AC
104962004-03-02 Andrew Cagney <cagney@redhat.com>
10497
10498 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
10499 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
10500 trailing comma and redundant assignment of I386_ST0_REGNUM.
10501 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
10502 32-bit segment registers.
10503
d4715e41
AC
105042004-03-01 Andrew Cagney <cagney@redhat.com>
10505
10506 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
10507 use frame_relative_level and get_next_frame.
10508
3ce2bf18
AC
105092004-02-29 Andrew Cagney <cagney@redhat.com>
10510
10511 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
10512 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
10513 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
10514 Delete macro.
10515
2da6aac3
DJ
105162004-02-29 Daniel Jacobowitz <drow@mvista.com>
10517
10518 * inflow.c (terminal_inferior): Don't give up the terminal if we
10519 previously couldn't get the inferior's terminal state.
10520
6ba34a8d
DJ
105212004-02-29 Daniel Jacobowitz <drow@mvista.com>
10522
10523 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
10524 PC_REGNUM.
10525
faae5abe
AC
105262004-02-28 Andrew Cagney <cagney@redhat.com>
10527
10528 * NEWS: Refer to GDB 6.1.
10529 * README: Refer to GDB 6.1.
10530 * PROBLEMS: Refer to GDB 6.1.
10531
2227a3c5
DJ
105322004-02-28 Daniel Jacobowitz <drow@mvista.com>
10533
10534 * thread-db.c (disable_thread_signals): Remove unused function.
10535
80571bff
MK
105362004-02-28 Mark Kettenis <kettenis@gnu.org>
10537
041bd74b
MK
10538 * amd64-nat.c: Include "gdb_string.h".
10539 (amd64_collect_native_gregset): Zero-extend the 32-bit
10540 general-purpose registers and %eip.
10541
3c017e40
MK
10542 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
10543 * amd64-tdep.c (amd64_collect_fxsave): New function.
10544 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
10545
80571bff
MK
10546 * i387-tdep.h: Update copyright year.
10547 (i387_collect_fxsave): New prototype.
10548 * i387-tdep.c: Update copyright year.
10549 (i387_collect_fxsave): New function containing most of the code
10550 from i387_fill_fxsave.
10551 (i387_fill_fxsave): Call i387_collect_fxsave.
10552
50d71875
AC
105532004-02-28 Andrew Cagney <cagney@redhat.com>
10554
10555 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
10556 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
10557
4a28816e
MK
105582004-02-28 Mark Kettenis <kettenis@gnu.org>
10559
10560 * amd64-tdep.c (amd64_frame_cache): Fix comment.
10561
dbda9972
AC
105622004-02-28 Andrew Cagney <cagney@redhat.com>
10563
10564 * utils.c: Use "", instead of <>, to include readline.
10565 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
10566 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
10567 * source.c, solib.c, exec.c, event-top.c: Ditto.
10568 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
10569 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
10570 * Makefile.in: Update all dependencies.
10571 (readline_tilde_h, readline_history_h): Define.
10572 (readline_headers): Delete.
10573
83277a99
MK
105742004-02-28 Mark Kettenis <kettenis@gnu.org>
10575
91ae4303
MK
10576 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
10577 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
10578 "config/i386/tm-lx64.h".
10579
83277a99
MK
10580 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
10581 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
10582 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
10583
6e1d7d6c
AC
105842004-02-28 Andrew Cagney <cagney@redhat.com>
10585
ecc9ac84
AC
10586 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
10587
6e1d7d6c
AC
10588 * breakpoint.c (_initialize_breakpoint): Use
10589 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
10590 Add help to show command.
10591
9671aeef
MK
105922004-02-28 Mark Kettenis <kettenis@gnu.org>
10593
7fa2737c
MK
10594 * i386-nat.c: Reformat to be closer to coding standards.
10595 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
10596 `retval'. Make variables `align' and `size' local to while-loop.
10597 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
10598 (_initialize_i386_nat): New prototype.
10599
9671aeef
MK
10600 * tui/tui.c: Include <readline/readline.h> instead of
10601 "readline/readline.h". Include it after <term.h> and
10602 "gdb_curses.h".
10603
fca7aa43
AC
106042004-02-27 Andrew Cagney <cagney@redhat.com>
10605
412275d5
AC
10606 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
10607 the new frame unwind code.
10608 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
10609 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
10610 PCOQ_HEAD_REGNUM.
10611
fca7aa43
AC
10612 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
10613 "return_value" and "push_dummy_call".
10614 (hppa32_use_struct_convention): Delete unused function.
10615 (hppa32_store_return_value): Delete unused function.
10616 (hppa32_extract_return_value): Delete unused function.
10617 (hppa32_stack_align): Delete function.
10618
e6a8a7d2
EZ
106192004-02-27 Eli Zaretskii <eliz@elta.co.il>
10620
10621 * coffread.c (enter_linenos): Don't let rawptr reference memory
10622 outside linetab[]'s limits.
10623
1797a8f6
AC
106242004-02-27 Andrew Cagney <cagney@redhat.com>
10625
10626 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
10627 inferior stack space - the stack needs to grow upwards.
10628 (hppa32_frame_align): New function.
10629 (hppa64_frame_align): Replace hppa_frame_align.
10630 (hppa_gdbarch_init): Update.
10631
2e4b5889
OF
106322004-02-26 Orjan Friberg <orjanf@axis.com>
10633
10634 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
10635 (dwarf2-frame.h): Include.
10636 (enum cris_regnums): New enum CRIS_FP_REGNUM.
10637 Remove static variables related to ABI setting.
10638 (struct gdbarch_tdep): Remove cris_abi member.
10639 (struct frame_extra_info): Remove.
10640 (cris_unwind_cache, stack_item): New structs.
10641 (cris_frame_unwind, cris_frame_base): New variables.
10642 (push_stack_item, pop_stack_item)
10643 (cris_frame_unwind_cache, cris_frame_this_id)
10644 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
10645 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
10646 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
10647 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
10648 (cris_reg_struct_has_addr): New functions.
10649 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
8718a420 10650 (cris_frame_saved_pc, cris_saved_pc_after_call,
2e4b5889
OF
10651 (cris_store_struct_return, cris_frameless_function_invocation)
10652 (cris_pop_frame, cris_skip_prologue_main)
10653 (cris_abi_original_store_return_value)
10654 (cris_abi_v2_store_return_value)
10655 (cris_abi_original_extract_return_value)
10656 (cris_abi_v2_extract_return_value)
10657 (cris_abi_original_reg_struct_has_addr)
10658 (cris_abi_v2_reg_struct_has_addr)
10659 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
10660 (cris_push_return_address, cris_abi_update): Remove.
10661 (_initialize_cris_tdep): Remove ABI command.
10662 (cris_dump_tdep): Ditto.
8718a420 10663 (cris_gdbarch_init): Remove ABI command.
2e4b5889
OF
10664 Set store_return_value, extract_return_value, push_dummy_code,
10665 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
10666 frame_unwind_append_sniffer, frame_base_set_default.
10667 Clear deprecated init_frame_pc, push_arguments, store_return_value,
10668 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
10669 sizeof_call_dummy_words, get_saved_register, push_return_address,
8718a420 10670 pop_frame, store_struct_return, frame_init_saved_regs,
2e4b5889
OF
10671 init_extra_frame_info, frameless_function_invocation, frame_chain,
10672 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
10673 dummy_write_sp.
8718a420 10674
6b9acc27
JJ
106752004-02-26 Jeff Johnston <jjohnstn@redhat.com>
10676
10677 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
10678 * valprint.c (print_hex_chars): Change from static to external.
10679 (print_char_chars): New function.
10680 * printcmd.c (print_scalar_formatted): For integer and enum types
10681 that are longer than LONGEST, perform processing via appropriate
10682 print_*_chars routines.
10683
a431654a
AC
106842004-02-26 Andrew Cagney <cagney@redhat.com>
10685
10686 * Makefile.in: Update dependencies.
10687 Changes from Ulrich Weigand,
10688 * s390-tdep.c: Include "dwarf2-frame.h".
10689 (s390_dwarf2_frame_init_reg): New function.
10690 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
10691 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
10692
fa8d40ab
JJ
106932004-02-26 Jeff Johnston <jjohnstn@redhat.com>
10694
10695 * breakpoint.c (pending_break_support): New setting variable.
10696 (break_command_1): Account for pending_break_support setting
10697 when creating pending breakpoints.
10698 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
10699 (_initialize_breakpoint): Add "set breakpoint pending" and
10700 "show breakpoint pending" commands.
10701
0dcd613f
AC
107022004-02-26 Andrew Cagney <cagney@redhat.com>
10703
10704 Fix PR i18n/1570.
10705 * charset.c (backslashable, backslashed, represented): Remove 'e'
10706 from list of escaped characters, not part of ISO-C.
10707
479272a3
JB
107082004-02-25 J. Brobecker <brobecker@gnat.com>
10709
10710 From Peter Schauer <schauer@pdf.de>:
10711 * tui/tui.c: Move system header includes after local includes.
10712 Fixes a build failure on solaris systems.
10713
7613d933
JB
107142004-02-25 J. Brobecker <brobecker@gnat.com>
10715
10716 * configure.in: Refine the previous change.
10717 * configure: Regenerate.
10718
9c1488cb
MK
107192004-02-25 Mark Kettenis <kettenis@gnu.org>
10720
10721 * amd64-tdep.h: Renamed from x86-64-tdep.h.
10722 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
10723 "amd64-tdep.h" instead of "x86-64-tdep.h".
10724 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
10725 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
10726 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
10727 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
10728 and "x86-64-tdep.c".
10729 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
10730 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
10731 and "x86-64-tdep.c".
10732 * amd64bsd-nat.c: Update copyright year.
10733 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
10734 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
10735 "x86-64-tdep.h".
10736 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
10737 "x86-64-tdep.h".
10738 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
10739 "x86-64-tdep.h".
10740 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
10741 "x86-64-tdep.h".
10742 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
10743 "x86-64-tdep.h".
10744 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
10745 "x86-64-tdep.h".
8718a420 10746 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
9c1488cb
MK
10747 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
10748 * Makefile.in (amd64_linux_tdep_h): Renamed from
10749 x86_64_linux_tdep_h.
10750 (amd64_tdep_h): Renamed from x86_64_tdep_h.
10751 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
10752 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
10753 (amd64obsd-tdep.o): Update dependencies.
10754 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
10755 dependencies.
10756 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
10757 dependencies.
10758 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
10759 amd64-linux-nat.c amd64-linux-tdep.c.
10760 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
10761 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
10762 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
10763 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
10764 amd64-tdep.o and amd64-linux-tdep.o.
10765 (TM_FILE): Set to tm-linux64.h.
10766 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
10767 (NAT_FILE): Set to nm-linux64.h.
10768 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
10769 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10770 amd64-tdep.o.
10771 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10772 amd64-tdep.o.
10773 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10774 amd64-tdep.o.
10775
4b8dad4a
RM
107762004-02-25 Roland McGrath <roland@redhat.com>
10777
10778 * remote.c (remote_protocol_qPart_auxv): New variable.
10779 (init_all_packet_configs): Initialize it.
10780 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
10781 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
10782 (show_remote_cmd): Call it.
10783 (_initialize_remote): Initialize commands.
10784 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
10785 service TARGET_OBJECT_AUXV requests.
10786
66745969
JB
107872004-02-25 J. Brobecker <brobecker@gnat.com>
10788
10789 * configure.in: Make sure that the wborder function is available.
10790 Otherwise, search for it in the cur_colr library.
10791 * configure: Regenerate.
10792
79508e1e
AC
107932004-02-25 Andrew Cagney <cagney@redhat.com>
10794
10795 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
10796
571ee600
MK
107972004-02-25 Mark Kettenis <kettenis@gnu.org>
10798
10799 * config/i386/tm-x86-64linux.h: Tweak comments.
10800
2b1b322f 108012004-02-25 Richard Sandiford <rsandifo@redhat.com>
ad74788f
RS
10802
10803 * MAINTAINERS: Add self to write-after-approval list.
10804
4d2acc65
AC
108052004-02-25 Andrew Cagney <cagney@redhat.com>
10806
4b8dad4a 10807 PR cli/1566. Problem found, and fix suggested by David Allan.
4d2acc65
AC
10808 * cli/cli-script.c (execute_control_command): Unconditionally
10809 install a cleanup. Default "ret" to "invalid_control". Use
10810 "break" instead of "return" to escape from the switch.
10811
4cfcaf21
JB
108122004-02-24 J. Brobecker <brobecker@gnat.com>
10813
10814 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
10815 with the lines macro defined in term.h on AiX.
10816 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
10817 a collision with the label_width macro defined in term.h on AiX.
10818
54a5c8d8
KB
108192004-02-23 David Mosberger <davidm@hpl.hp.com>
10820
10821 Committed by Kevin Buettner <kevinb@redhat.com>.
10822
10823 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
10824 * ia64-tdep.c (ia64_write_pc): Make it a global function.
10825 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
10826 instead of ia64_write_pc().
10827 * ia64-linux-tdep.c (regcache.h): Include.
10828 (ia64_linux_write_pc): New function.
4b8dad4a 10829
8a1dac83
RM
108302004-02-23 Roland McGrath <roland@redhat.com>
10831
10832 * auxv.c (info_auxv_command): Fix typos in error messages.
10833
90f90721
MK
108342004-02-23 Mark Kettenis <kettenis@gnu.org>
10835
8a1dac83 10836 * x86-64-tdep.h: Tweak comment.
90f90721
MK
10837 (enum amd64_regnum): New.
10838 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
10839 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
10840 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
10841 (X86_64_XMM1_REGNUM): Removed.
10842 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
10843 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
10844 prototypes for renamed functions.
10845 * x86-64-tdep.c: Fix typo.
10846 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
10847 register numbers.
10848 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
10849 Use constants from `enum amd64_regnum' for register numbers.
10850 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
10851 (amd64_analyze_prologue, amd64_frame_cache,
10852 amd64_sigtramp_frame_cache): Use constants from `enum
10853 amd64_regnum' for register numbers.
10854 (amd64_supply_fpregset): Adjust for renamed functions.
10855 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
10856 `enum amd64_regnum' for register numbers.
10857 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
10858 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
10859 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
10860 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
10861 (amd64_linux_fill_gregset): Adjust for renamed macros.
10862 (fetch_core_registers): Adjust for renamed functions.
10863 (amd64_linux_init_abi): Adjust for renamed functions.
10864 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
10865 renamed functions.
10866 * amd64-nat.c: Adjust for renamed macros.
10867 * amd64bsd-nat.c (fetch_inferior_registers)
10868 (store_inferior_registers): Use constants from `enum amd64_regnum'
10869 for register numbers. Adjust for renamed variables.
10870 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
10871 renamed variables.
10872 (_initialize_amd64fbsd_nat): Use constants from `enum
10873 amd64_regnum' for register numbers.
10874 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
10875 `enum amd64_regnum' for register numbers.
10876 (amd64fbsd_init_abi): Adjust for renamed functions.
10877 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
10878 `enum amd64_regnum' for register numbers.
10879 (amd64nbsd_init_abi): Adjust for renamed functions.
10880 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
10881 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
10882 `enum amd64_regnum' for register numbers.
10883 (amd64obsd_init_abi): Adjust for renamed functions.
10884 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
10885
d5479188
JJ
108862004-02-23 Jeff Johnston <jjohnstn@redhat.com>
10887
10888 * breakpoint.c (print_one_breakpoint): Do not output spaces
10889 after printing <PENDING> for a pending breakpoint.
10890
81cb7cc9
JJ
108912004-02-23 Jeff Johnston <jjohnstn@redhat.com>
10892
10893 * printcmd.c (print_scalar_formatted): Initialize val_long
10894 to remove compiler warning message.
10895
cbdeadca
JJ
108962004-02-23 Jeff Johnston <jjohnstn@redhat.com>
10897
10898 * defs.h (nquery, yquery): New prototypes.
10899 * breakpoint.c (break_command_1): Use new nquery interface.
10900 * utils.c (defaulted_query, nquery, yquery): New functions.
10901
da6bab63
AC
109022004-02-23 Andrew Cagney <cagney@redhat.com>
10903
2f690297
AC
10904 * hppa-tdep.c (hppa_frame_align): New function.
10905 (hppa32_push_dummy_call): New function.
10906 (hppa64_push_dummy_call): New function.
10907 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
10908 disabled.
8a1dac83 10909
da6bab63
AC
10910 * infcall.c (legacy_push_dummy_code): Don't call deprecated
10911 FIX_CALL_DUMMY when push_dummy_call is available.
10912 (call_function_by_hand, push_dummy_code): Ditto.
10913
abf9b42d
AC
109142004-02-22 Andrew Cagney <cagney@redhat.com>
10915
10916 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
10917 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
10918 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
10919 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
10920 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
10921 call_dummy_location to ON_STACK.
10922
10fc94a4
MK
109232004-02-22 Mark Kettenis <kettenis@gnu.org>
10924
51433e4b
MK
10925 * x86-64-linux-tdep.c: Tweak comment.
10926 (amd64_linux_supply_gregset): Renamed from
10927 x86_64_linux_supply_gresget.
10928 (amd64_linux_fill_gregset): Renamed from
10929 x86_64_linux_fill_gregset.
10930 (fetch_core_registers): Adjust for renamed functions.
10931 (amd64_core_fns): Renamed from x86_64_core_fns.
10932 (amd64_linux_sigtramp_start): Renamed from
10933 x86_64_linux_sigtramp_start.
10934 (amd64_linux_pc_in_sigtramp): Renamed from
10935 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
10936 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
10937 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
10938 (amd64_linux_sigcontext_addr): Renamed from
10939 x86_64_linux_sigcontext_addr.
10940 (amd64_linux_sc_reg_offset): Renamed from
10941 x86_64_linux_sc_reg_offset.
10942 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
10943 Adjust for renamed functions and variables.
10944 (_initialize_amd64_linux_tdep): Renamed from
10945 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
10946 variables.
10947 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
10948 Adjust for renamed functions.
10949
430eaf2e
MK
10950 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
10951 from x86_64_linux_gregset64_reg_offset.
10952 (amd64_linux_gregset32_reg_offset): Rename from
10953 x86_64_linux_gregset64_reg_offset.
10954 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
10955 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
10956 (amd64_linux_dr_set_control): Renamed from
10957 x86_64_linux_dr_set_control. Adjust for renamed functions.
10958 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
10959 Adjust for renamed functions.
10960 (amd64_linux_dr_reset_addr): Renamed from
10961 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
10962 (amd64_linux_dr_get_status): Renamed from
10963 x86_64_linux_dr_get_status. Adjust for renamed functions.
10964 (_initialize_amd64_linux_nat): Renamed from
10965 _initialize_x86_64_linux_nat. Adjust for renamed variables and
10966 functions.
10967 * config/i386/nm-x86-64linux.h: Update copyright year.
10968 Adjust for renamed functions.
10969
10fc94a4
MK
10970 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
10971 amd64fbsd_sigtramp_start.
10972 (amd64fbsd_sigtramp_end_addr): Renamed from
10973 amd64fbsd_sigtramp_end.
10974 (amd64fbsd_init_abi): Adjust for renamed variables.
10975 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
10976 variables.
10977 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
10978 amd64fbsd_sigtramp_start.
10979 (amd64fbsd_sigtramp_end_addr): Renamed from
10980 amd64fbsd_sigtramp_end.
10981
343af405
AC
109822004-02-22 Andrew Cagney <cagney@redhat.com>
10983
537987fc
AC
10984 * hppa-tdep.c (hppa32_return_value): New function.
10985 (hppa64_return_value): New function.
10986 (hppa_gdbarch_init): Set return_value; keep disabled.
10987
fad850b2
AC
10988 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
10989 struct-return and inferior function call methods.
10990
26d08f08
AC
10991 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
10992 "frame-base.h".
10993 (struct hppa_frame_cache): Define.
10994 (hppa_frame_cache, hppa_frame_this_id): New functions.
10995 (hppa_frame_prev_register): New function.
10996 (hppa_frame_unwind, hppa_frame_base): New variables.
10997 (hppa_frame_unwind_sniffer): New function.
10998 (hppa_frame_base_address, hppa_unwind_pc): New function.
10999 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
11000 sniffer, and frame base sniffer; keep disabled.
11001 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
11002 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
11003
e7d7bd65
AC
11004 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
11005 to predicates for "seriously old code".
11006
e963316f
AC
11007 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
11008 runtime if(0).
11009
56132691
AC
11010 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
11011 unsigned.
11012 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
e963316f 11013
343af405
AC
11014 * config/pa/tm-hppa.h: Update copyright.
11015 (DEPRECATED_INIT_FRAME_PC): Delete macro.
11016 (deprecated_init_frame_pc_default): Delete declaration.
11017 (hppa_frame_init_saved_regs): Delete declaration.
11018 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
11019 * hppa-tdep.c: Include "arch-utils.h".
11020 (hppa_gdbarch_init): Set deprecated init_frame_pc
11021 and deprecated frame_init_saved_regs.
11022 (hppa_frame_init_saved_regs): Make static.
11023
f5859b4d
MK
110242004-02-22 Mark Kettenis <kettenis@gnu.org>
11025
86f6f8e7 11026 Remove old 386BSD support.
cf7c5c23 11027 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
86f6f8e7
MK
11028 * configure.host: Remove i[34567]86-*-bsd*.
11029 * configure.tgt: Remove i[34567]86-*-bsd*.
11030 * i386b-nat.c: Removed.
11031 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
cf7c5c23
MK
11032 (i386b-nat.o): Remove dependencies.
11033
86f6f8e7
MK
11034 * config/i386/i386bsd.mh: Removed.
11035 * config/i386/i386bsd.mt: Removed.
11036 * config/i386/nm-i386bsd.h: Removed.
11037 * config/i386/tm-i386bsd.h: Removed.
11038 * config/i386/xm-i386bsd.h: Removed.
11039
971218cd
MK
11040 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
11041
7e654c37
MK
11042 * amd64fbsd-tdep.c: Include "solib-svr4.h".
11043 (amd64fbsd_init_abi): Set link map offsets.
11044 * amd64nbsd-tdep.c: Include "slib-svr4.h".
11045 (amd64nbsd_init_abi): Set link map offsets.
11046 * amd64obsd-tdep.c: Include "solib-svr4.h".
11047 (amd64obsd_init_abi): Set link map offsets.
11048 * i386fbsd-tdep.c: Include "solib-svr4.h".
11049 (i386fbsd_init_abi): Set link map offsets.
11050 * i386nbsd-tdep.c: Include "solib-svr4.h".
11051 (i386nbsdelf_init_abi): Set link map offsets.
11052 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
11053 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
11054 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
11055 solib-legacy.o and core-aout.o. Reformat.
11056 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
11057 solib-svr4.o, solib-legacy.o. Reformat.
11058 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
11059 * config/i386/nbsdelf.mh: Reformat.
11060 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
11061 solib-svr4.o, solib-legacy.o and corelow.o.
11062 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
11063 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
11064 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
11065 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11066 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11067 (TM_FILE): Set to tm-fbsd.h.
11068 * config/i386/nbsd.mt (TDEPFILES): Reformat.
11069 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
11070 solib-svr4.o.
11071 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
11072 solib-svr4.o.
11073 (TM_FILE): Set to nm-nbsd.h.
11074 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
11075 Simplify shared library support. Don't include "elf/common.h".
11076 (SVR4_SHARED_LIBS): Don't define.
11077 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
11078 "solib.h".
11079 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
11080 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
11081 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
11082 Don't include "i386/tm-i386.h". Include "solib.h".
11083 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
11084 Don't include "i386/tm-i386.h".
11085 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
11086 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
11087 Include "i386/xm-i386.h".
11088 (HOST_LONG_DOUBLE_FORMAT): Remove.
11089
5d93ae8c
MK
11090 Fix OpenBSD/i386 sigtramp recognition.
11091 * i386-tdep.h: Update copyright year.
11092 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
11093 (i386bsd_sigtramp_end): New prototypes.
11094 (i386fbsd_sigtramp_start_addr): Renamed from
11095 i386fbsd_sigtramp_start.
11096 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11097 (i386obsd_sigtramp_start_addr): Renamed from
11098 i386obsd_sigtramp_start.
11099 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11100 * i386bsd-tdep.c: Update copyright year.
11101 (i386bsd_pc_in_sigtramp): Make public.
11102 * i386fbsd-nat.c: Update copyright year.
11103 (_initialize_i386fbsd_nat): Adjust for renamed variables.
11104 * i386fbsd-tdep.c: Update copyright year.
11105 (i386fbsd_sigtramp_start_addr): Renamed from
11106 i386fbsd_sigtramp_start.
11107 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11108 (i386fbsdaout_init_abi): Adjust for renamed variables.
11109 * i386obsd-nat.c: Update copyright year.
11110 (_initialize_i386obsd_nat): Adjust for renamed variables.
11111 * i386obsd-tdep.c: Include "target.h".
11112 (i386obsd_page_size): New variable.
11113 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
11114 (i386obsd_sigtramp_end): New functions.
11115 (i386obsd_sigtramp_start_addr): Renamed from
11116 i386obsd_sigtramp_start.
11117 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11118 (i386obsd_init_abi): Adjust for renamed variables. Set
11119 pc_in_sigtramp, sigtramp_start and sigtramp_end.
11120 * Makefile.in (i386obsd-tdep.o): Update dependencies.
11121
84d04465
MK
11122 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
11123 trampoline change in OpenBSD kernel.
11124
b053aceb
MK
11125 * amd64-nat.c: Update copyright year.
11126 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
11127 architecture from REGCACHE.
11128
f5859b4d
MK
11129 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
11130 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
11131
e4bbbda8
MK
111322004-02-21 Mark Kettenis <kettenis@gnu.org>
11133
ba361932
MK
11134 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
11135 i[34567]86-*-openbsd3.[0-3].
11136 * config/i386/obsdaout.mh: New file.
11137
d3e48264
MK
11138 * config/i386/obsd.mh (MH_FLAGS): Remove.
11139
60a6eeb6
MK
11140 Fix PR build/1549.
11141 * i386obsd-tdep.c: Update copyright years. Include
11142 "solib-svr4.h".
11143 (i386obsd_init_abi): Don't set regset_from_core_section here.
11144 (i386obsd_aout_init_abi): New function. Set
11145 regset_from_core_section here.
11146 (i386obsd_elf_init_abi): New function.
11147 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
11148 * Makefile.in (i386obsd-tdep.o): Update dependecies.
11149 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
11150 (TM_FILE): Set to tm-nbsd.h.
11151
11152 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
11153 solib-sunos.o.
11154
e4bbbda8
MK
11155 * solib-svr4.h: Update copyright year.
11156 (svr4_ilp32_fetch_link_map_offsets)
11157 (svr4_lp64_fetch_link_map_offsets): New prototype.
11158 * solib-svr4.c: Update copyright year.
11159 (svr4_ilp32_fetch_link_map_offsets)
11160 (svr4_lp64_fetch_link_map_offsets): New function.
11161
f6fe98ef
DJ
111622004-02-20 Daniel Jacobowitz <drow@mvista.com>
11163
11164 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
11165 to the partial symbol table.
11166
589ca796
JB
111672004-02-20 J. brobecker <brobecker@gnat.com>
11168
11169 * PROBLEMS: Add description of problem documented under gdb/1560.
11170
2031c21a
MK
111712004-02-20 Mark Kettenis <kettenis@gnu.org>
11172
30b344b1
MK
11173 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
11174 comments.
11175 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
11176 functions.
11177 (amd64obsd_init_abi): Reorder initializations. Use
11178 amd64obsd_r_reg_offset to initialize the general-purpose register
11179 set details. Set regset_from_core_section.
11180 (_initialize_amd64obsd_tdep): Rename from
11181 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
11182 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
11183 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
11184
2031c21a
MK
11185 * NEWS (New native configurations): Mention OpenBSD/alpha.
11186 * configure.tgt: Add alpha*-*-openbsd*.
11187 * configure.host: Add alpha*-*-openbsd*.
11188 * alphanbsd-tdep.c: Update copyright year.
11189 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
11190
42471775
AC
111912004-02-20 Andrew Cagney <cagney@redhat.com>
11192
11193 Fix PR tdep/1372.
11194 * configure.tgt: Delete target "none-*-*".
11195 * configure.host: Delete host "none-*-*".
11196 * config/none/none.mh: Delete file.
11197 * config/none/none.mt: Delete file.
11198 * config/none/xm-none.h: Delete file.
11199 * config/none/tm-none.h: Delete file.
11200 * config/none/nm-none.h: Delete file.
11201
960ccd7d
FF
112022004-02-19 Fred Fish <fnf@redhat.com>
11203
11204 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
11205 cache->uses_fp prior to setting it.
11206
5f883edd
FF
112072004-02-19 Fred Fish <fnf@redhat.com>
11208
11209 Fix for PR breakpoint/1558.
11210 * sh-tdep.c (IS_JSR): New macro.
11211 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
11212
f98c22d5
JB
112132004-02-19 Jim Blandy <jimb@redhat.com>
11214
11215 * findvar.c (value_from_register): Doc fix.
11216
95051d27
JJ
112172004-02-19 Jeff Johnston <jjohnstn@redhat.com>
11218
11219 * printcmd.c (print_scalar_formatted): Do not check for sizeof
11220 type being greater than sizeof of host's LONGEST. Always use
11221 unpack_long() unless format 'f' chosen.
11222
ccefbec3
EZ
112232004-02-19 Joel Brobecker <brobecker@gnat.com>
11224
11225 Committed by Elena Zannoni <ezannoni@redhat.com>
2ede629f 11226
ccefbec3
EZ
11227 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
11228 contains a symbol wich is the best, non-exact match for the given
11229 pc. Update comments.
11230
112312004-02-19 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 11232
2ede629f
EZ
11233 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
11234 macro, which was part of the now removed Mach 3 port.
11235 * utils.c (request_quit): Ditto.
11236
567ee972
MK
112372004-02-18 Mark Kettenis <kettenis@gnu.org>
11238
11239 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
11240 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
11241
50cca7bb
MK
112422004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11243
11244 Committed by Mark Kettenis <kettenis@gnu.org>.
11245
11246 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
11247 Define.
11248
226361c4
AC
112492004-02-18 Andrew Cagney <cagney@redhat.com>
11250
11251 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
11252 CONFIG_INSTALL and CONFIG_UNINSTALL.
11253 * configure: Re-generate.
11254 * interps.h (INTERP_TUI): Define.
11255 * Makefile.in: Update dependencies.
11256 (TUI): New macro.
11257 (tui-main.o): Specify dependencies.
11258 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
11259 * tui/tui-main.c: New file.
11260
49cfa46f
MK
112612004-02-18 Mark Kettenis <kettenis@gnu.org>
11262
e2879ccb
MK
11263 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
11264 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
11265 dependencies.
11266 * configure.host: Add x86_64-*-openbsd*.
11267 * configure.tgt: Add x86_64-*-openbsd*.
11268 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
11269
c43f4bec
MK
11270 * tui/tui.c: Don't include <malloc.h>.
11271
09ae75b6
MK
11272 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
11273 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
11274 amd64nbsd-tdep.c.
11275
49cfa46f 11276 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
8a1dac83 11277 static. Remove extraneous whitespace.
49cfa46f
MK
11278 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
11279 static.
11280
05957fdb
JB
112812004-02-17 Jim Blandy <jimb@redhat.com>
11282
11283 * findvar.c (value_from_register): Doc fix.
11284
d0f54f9d
JB
112852004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11286
11287 Committed by Jim Blandy <jimb@redhat.com>.
e1457d83 11288
8a1dac83 11289 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
c253954e
JB
11290 CORE_ADDR as type for selectors. Correct types for GNU run time
11291 message lookup function to use double indirection.
11292 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
11293 * objc-lang.h (lookup_child_selector): Adapt prototype.
11294
9cbd5950
JB
11295 * s390-nat.c (SUBOFF): New macro.
11296 (supply_gregset, fill_gregset): Use it to handle debugging
11297 of 32-bit exectuables running under a 64-bit kernel.
11298 * s390-tdep.c: Include "solib-svr4.h".
11299 (s390_svr4_fetch_link_map_offset): New function.
11300 (s390x_svr_fetch_link_map_offset): Likewise.
11301 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
11302 * Makefile.in (s390-tdep.o): Update dependencies.
11303
a8c99f38
JB
11304 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
11305 "frame-unwind.h".
11306 (s390_readinstruction): Reformat. Use read_memory_nobpt.
11307 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
11308 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
11309 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
11310 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
11311 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
8a1dac83 11312 S390_SIGNAL_FRAMESIZE,
a8c99f38
JB
11313 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
11314 (struct frame_extra_info): Remove.
11315 (s390_memset_extra_info): Remove.
f73b1eff
JB
11316 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
11317 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
11318 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
a8c99f38
JB
11319 (is_rse): Renamed to ...
11320 (is_rsy): ... this. Support long displacements.
11321 (is_rxe): Renamed to ...
11322 (is_rxy): ... this. Support long displacements.
11323 (compute_x_addr): Support long displacements.
11324 (struct s390_prologue_data): New data type.
11325 (s390_on_stack): Change API to use struct s390_prologue_data.
11326 (s390_store): Reimplement.
11327 (s390_load): New function.
11328 (s390_get_signal_frame_info): Remove.
11329 (s390_get_frame_info): Remove, replace by ...
11330 (s390_analyze_prolog): ... this new function.
11331 (s390_check_function_end): Remove.
11332 (s390_function_start): Remove.
11333 (s390_frameless_function_invokation): Remove.
11334 (s390_is_sigreturn): Remove.
11335 (s390_init_frame_pc_first): Remove.
11336 (s390_init_frame_extra_info): Remove.
11337 (s390_frame_init_saved_regs): Remove.
11338 (s390_frame_saved_pc_nofix): Remove.
11339 (s390_frame_saved_pc): Remove.
11340 (s390_frame_chain): Remove.
11341 (s390_fp_regnum, s390_read_fp): Remove.
11342 (s390_pop_frame_regular, s390_pop_frame): Remove.
11343 (s390_saved_pc_after_call): Remove.
11344 (s390_skip_prologue): Reimplement.
11345 (s390_in_function_epilogue_p): Support long displacements.
11346 (struct s390_unwind_cache): New data structure.
11347 (s390_frame_unwind_cache): New function.
11348 (s390_prologue_frame_unwind_cache): Likewise.
11349 (s390_backchain_frame_unwind_cache): Likewise.
11350 (s390_frame_this_id, s390_frame_prev_register): Likewise.
11351 (s390_frame_unwind): Define.
11352 (s390_frame_sniffer): New function.
11353 (struct s390_pltstub_unwind_cache): New data structure.
11354 (s390_pltstub_frame_unwind_cache): New function.
11355 (s390_pltstub_frame_this_id): Likewise.
11356 (s390_pltstub_frame_prev_register): Likewise.
11357 (s390_pltstub_frame_unwind): Define.
11358 (s390_pltstub_frame_sniffer): New function.
11359 (struct s390_sigtramp_unwind_cache): New data structure.
11360 (s390_sigtramp_frame_unwind_cache): New function.
11361 (s390_sigtramp_frame_this_id): Likewise.
11362 (s390_sigtramp_frame_prev_register): Likewise.
11363 (s390_sigtramp_frame_unwind): Define.
11364 (s390_sigtramp_frame_sniffer): New function.
11365 (s390_frame_base_address, s390_local_base_address): New functions.
11366 (s390_frame_base): Define.
11367 (s390_unwind_pc, s390_unwind_sp): New function.
11368 (s390_push_dummy_call): Use new frame base location.
11369 (s390_unwind_dummy_id): Likewise.
11370 (s390_gdbarch_init): Remove calls to:
11371 set_gdbarch_frameless_function_invocation,
11372 set_gdbarch_deprecated_init_frame_pc,
11373 set_gdbarch_deprecated_frame_chain,
11374 set_gdbarch_deprecated_frame_init_saved_regs,
11375 set_gdbarch_deprecated_pop_frame,
11376 set_gdbarch_deprecated_init_extra_frame_info,
11377 set_gdbarch_deprecated_init_frame_pc_first,
11378 set_gdbarch_deprecated_target_read_fp,
11379 set_gdbarch_deprecated_frame_saved_pc,
11380 set_gdbarch_deprecated_saved_pc_after_call,
11381 set_gdbarch_deprecated_fp_regnum.
11382 Add calls to:
11383 set_gdbarch_in_solib_call_trampoline,
11384 frame_unwind_append_sniffer,
11385 frame_base_set_default,
11386 set_gdbarch_unwind_pc,
11387 set_gdbarch_unwind_sp.
11388 * Makefile.in (s390-tdep.o): Update dependencies.
11389
b0cf273e
JB
11390 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
11391 (S390_STACK_FRAME_OVERHEAD): Remove.
11392 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
11393 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
11394 (s390_promote_integer_argument): Remove.
11395 (s390_cannot_extract_struct_value_address): Remove.
11396 (s390_use_struct_convention, s390_store_struct_return): Remove.
11397 (s390_extract_return_value, s390_store_return_value): Remove.
11398 (s390_return_value_convention, s390_return_value): New functions.
11399 (is_float_singleton): Handle typedefs.
8a1dac83 11400 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
b0cf273e
JB
11401 Remove, replace by ...
11402 (s390_function_arg_pass_by_reference, s390_function_arg_float,
11403 s390_function_arg_integer): ... these new functions.
11404 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
11405 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
11406 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
11407 Fill in tdep->abi.
11408 Remove calls to:
11409 set_gdbarch_deprecated_store_struct_return,
11410 set_gdbarch_deprecated_extract_return_value,
11411 set_gdbarch_deprecated_store_return_value,
11412 set_gdbarch_use_struct_convention,
11413 set_gdbarch_extract_struct_value_address,
11414 set_gdbarch_deprecated_pc_in_call_dummy,
11415 set_gdbarch_deprecated_push_arguments,
11416 set_gdbarch_deprecated_save_dummy_frame_tos,
11417 set_gdbarch_deprecated_push_return_address,
11418 set_gdbarch_deprecated_sizeof_call_dummy_words,
11419 set_gdbarch_deprecated_call_dummy_words,
11420 set_gdbarch_deprecated_dummy_write_sp.
11421 Add calls to:
11422 set_gdbarch_push_dummy_call,
11423 set_gdbarch_unwind_dummy_id,
11424 set_gdbarch_return_value.
8a1dac83 11425
e1457d83
JB
11426 * config/s390/nm-linux.h: Update comments.
11427 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
11428 (STOPPED_BY_WATCHPOINT): Redefine.
11429 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
11430 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
11431 (s390_stopped_by_watchpoint): Likewise.
11432 (watch_area_cnt): Remove.
11433 * s390-nat.c: Update comments.
11434 (watch_area): Remove typedef.
11435 Global replace watch_area by struct watch_area.
11436 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
8a1dac83 11437 (s390_stopped_by_watchpoint): Remove pid argument,
e1457d83
JB
11438 use s390_inferior_tid. Add short-cut for the no watchpoint case.
11439 (s390_fix_watch_points): Remove pid argument,
11440 use s390_inferior_tid. Recompute area spanned by watchpoints.
11441 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
11442 argument. Reimplement.
11443
d0f54f9d
JB
11444 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
11445 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
11446 (FETCH_INFERIOR_REGISTERS): Define.
8a1dac83 11447 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
d0f54f9d
JB
11448 core-regset.o.
11449 * config/s390/s390x.mt: Remove.
11450 * config/s390/tm-s390.h: Remove.
11451 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
11452 (TARGET_ELF64): Remove.
11453 (SKIP_TRAMPOLINE_CODE): Do not undefine.
11454 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
11455 s390*-*-* case; always set gdb_target to s390.
11456 * regformats/reg-s390.dat: Remove control registers.
11457 * regformats/reg-s390x.dat: Likewise.
11458 * s390-tdep.h: New file.
8a1dac83 11459 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
d0f54f9d
JB
11460 Include "inferior.h" and "s390-tdep.h".
11461 Remove private definition of offsetof.
11462 (s390_register_u_addr): Remove.
11463 (regmap_gregset, regmap_fpregset): Define.
11464 (supply_gregset, fill_gregset): Reimplement.
11465 (supply_fpregset, fill_fpregset): Likewise.
11466 (s390_inferior_tid): New function.
11467 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
11468 (fetch_inferior_registers, store_inferior_registers): Likewise.
11469 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
11470 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
11471 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
11472 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
11473 (struct gdbarch_tdep): Define.
11474 (struct s390_register_info): Define.
11475 (s390_register_info): New variable.
11476 (s390_register_name): Reimplement.
11477 (s390_register_type): New function.
11478 (s390_register_raw_size, s390x_register_raw_size): Remove.
11479 (s390_cannot_fetch_register): Remove.
11480 (s390_register_byte): Remove.
11481 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
11482 (s390_dwarf_regmap): New variable.
11483 (s390_dwarf_reg_to_regnum): New function.
11484 (s390_stab_reg_to_regnum): Remove.
11485 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
11486 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
11487 (s390_convert_register_p): Likewise.
11488 (s390_register_to_value, s390_value_to_register): Likewise.
11489 (s390_register_reggroup_p): Likewise.
11490 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
11491 s390_gregset, s390x_gregset, s390_fpregset): New variables.
11492 (s390_supply_regset, s390_regset_from_core_section): New functions.
11493 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
11494 (S390_FPR_SIZE): Likewise.
11495 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
11496 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
11497 (S390_NUM_GPRS): Move here from tm-s390.h.
11498 (S390_NUM_FPRS): Likewise.
11499 (s390_in_function_epilogue_p): New function.
11500 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
11501 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
11502 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
11503 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
11504 Replace S390_FP_REGNUM by S390_SP_REGNUM.
11505 Remove calls to:
11506 set_gdbarch_deprecated_max_register_raw_size,
8a1dac83
RM
11507 set_gdbarch_deprecated_max_register_virtual_size,
11508 set_gdbarch_deprecated_register_byte,
d0f54f9d 11509 set_gdbarch_cannot_fetch_register,
8a1dac83 11510 set_gdbarch_cannot_store_register,
d0f54f9d
JB
11511 set_gdbarch_deprecated_register_size,
11512 set_gdbarch_deprecated_register_raw_size,
11513 set_gdbarch_deprecated_register_virtual_size,
11514 set_gdbarch_deprecated_register_virtual_type,
11515 set_gdbarch_deprecated_register_bytes.
11516 Add calls to:
11517 set_gdbarch_num_pseudo_regs,
11518 set_gdbarch_register_type,
11519 set_gdbarch_convert_register_p,
11520 set_gdbarch_register_to_value,
11521 set_gdbarch_value_to_register,
11522 set_gdbarch_register_reggroup_p,
11523 set_gdbarch_regset_from_core_section,
11524 set_gdbarch_pseudo_register_read,
11525 set_gdbarch_pseudo_register_write,
11526 set_gdbarch_in_function_epilogue_p.
11527 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
11528 (s390_tdep_h): New variable.
11529
8cfe231d
JB
115302004-02-17 Jim Blandy <jimb@redhat.com>
11531
4589a601
JB
11532 * findvar.c (value_from_register): If the type has no length, just
11533 return an acceptable value --- don't report an internal error.
11534
8cfe231d
JB
11535 * stabsread.c (read_type): If we find any type numbers that are
11536 forward references, complain if the references aren't resolved by
11537 the time we're finished reading.
11538 (cleanup_undefined_types): Make error message more appropriate for
11539 a complaint.
11540
5bf0017e
EZ
115412004-02-17 Elena Zannoni <ezannoni@redhat.com>
11542
9d62932d
EZ
11543 * Makefile.in (defs_h): Remove dependency on progress_h.
11544 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
11545 progress.h.
11546 * main.c (captured_main): Delete use of START_PROGRESS and
11547 END_PROGRESS.
11548
115492004-02-17 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 11550
5bf0017e
EZ
11551 * objfiles.c (terminate_minimal_symbol_table): Add back
11552 initialization of MSYMBOL_TYPE.
11553
9fc9f5e2
AC
115542004-02-17 David Mosberger <davidm@hpl.hp.com>
11555
11556 Committed by Andrew Cagney.
11557 * Makefile.in (ia64_tdep_h): New macro.
11558 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
11559 (ia64-tdep.o): Likewise.
11560 * ia64-tdep.h: New file.
11561 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
11562 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
11563 (ia64_aix_sigcontext_register_address): Likewise.
11564 (ia64_linux_getunwind_table): Delete declaration.
11565 * ia64-linux-tdep.c: Likewise.
11566
76cd2bd9
CV
115672004-02-17 Corinna Vinschen <vinschen@redhat.com>
11568
11569 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
11570 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
11571 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
11572
634aa483
AC
115732004-02-17 Andrew Cagney <cagney@redhat.com>
11574
11575 * symtab.c (skip_prologue_using_sal): New function.
11576 * symtab.h (skip_prologue_using_sal): Declare.
11577 * frv-tdep.c: Include "symtab.h".
11578 (skip_prologue_using_sal): Delete function.
11579 * mips-tdep.c (skip_prologue_using_sal): Delete function.
11580 * rs6000-tdep.c (refine_prologue_limit): Mention
11581 skip_prologue_using_sal.
11582 * ia64-tdep.c (refine_prologue_limit): Ditto.
11583 * Makefile.in: Update dependencies.
11584
115852004-02-16 Andrew Cagney <cagney@redhat.com>
19772a2c 11586
39ce7b3f
AC
11587 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
11588 START_INFERIOR_TRAPS_EXPECTED.
11589 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
11590 START_INFERIOR_TRAPS_EXPECTED.
11591 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
11592 Delete macro.
11593 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
11594 macro, moved to "nm-osf.h". Update copyright.
11595 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
11596 update copyright.
11597
19772a2c
AC
11598 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
11599 and function replacing FRAMELESS_FUNCTION_INVOCATION.
11600 * blockframe.c (legacy_frameless_look_for_prologue): Rename
11601 frameless_look_for_prologue.
11602 * frame.h (legacy_frameless_look_for_prologue): Rename
11603 frameless_look_for_prologue.
11604 * gdbarch.h, gdbarch.c: Re-generate.
11605 * sh64-tdep.c (sh64_gdbarch_init): Update.
11606 * sh-tdep.c (sh_gdbarch_init): Update.
11607 * s390-tdep.c (s390_gdbarch_init): Update.
11608 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11609 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11610 * m68k-tdep.c (m68k_gdbarch_init): Update.
11611 (delta68_frame_args_address): Update.
11612 * m32r-tdep.c (m32r_gdbarch_init): Update.
11613 * hppa-tdep.c (hppa_gdbarch_init): Update.
11614 * h8300-tdep.c (h8300_gdbarch_init): Update.
11615 * frv-tdep.c (frv_gdbarch_init): Update.
11616 (frv_frameless_function_invocation): Update.
11617 * cris-tdep.c (cris_gdbarch_init): Update.
11618 (cris_frameless_function_invocation): Update.
11619 * avr-tdep.c (avr_gdbarch_init): Update.
11620 * arm-tdep.c (arm_gdbarch_init): Update.
11621 * stack.c (frame_info): Update, call predicate.
11622 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
11623 * frame.c (legacy_get_prev_frame): Update, call predicate..
11624 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
11625 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
11626 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
11627 invocation.
11628 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11629 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11630 * vax-tdep.c (vax_gdbarch_init): Ditto.
2be8b3c1
AC
11631
11632 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
11633 function.
11634
7dcaac91
DJ
116352004-02-16 Daniel Jacobowitz <drow@mvista.com>
11636
11637 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
11638 initializations.
11639
88289b6e
AC
116402004-02-16 Andrew Cagney <cagney@redhat.com>
11641
11642 * tui/tui-windata.c: Include "gdb_string.h".
11643 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
11644 * tui/tui-layout.c, tui/tui-command.c: Ditto.
11645 * Makefile.in: Update dependencies.
11646
9f976b41
DJ
116472004-02-16 Daniel Jacobowitz <drow@mvista.com>
11648
11649 * Makefile.in (infrun.o): Add $(gdb_assert_h).
11650 * infrun.c: Include "gdb_assert.h".
11651 (singlestep_ptid, saved_singlestep_ptid)
11652 (stepping_past_singlestep_breakpoint): New variables.
11653 (resume): Set singlestep_ptid. Check for singlestep thread
11654 hop.
11655 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
11656 (handle_inferior_event): Handle singlestep thread hop.
11657
c324d747
AC
116582004-02-16 Andrew Cagney <cagney@redhat.com>
11659
f090b9b1
AC
11660 * dwarf2-frame.c (dwarf2_frame_ops): New function.
11661 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
11662 (dwarf2_frame_init_reg): Ditto.
11663
fd33e6cb
AC
11664 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
11665 suggested by Joshua Neuheisel
11666
c324d747
AC
11667 * configure.in: Always check for curses, including pdcurses.
11668 Warn, instead of error, when no curses are found. Enable TUI when
11669 curses is available.
11670 * configure: Re-generate.
11671
b66ba949
CV
116722004-02-16 Corinna Vinschen <vinschen@redhat.com>
11673
11674 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
11675 sh_sh4_register_convert_to_virtual.
11676 (sh_register_convert_to_raw): Rename from
11677 sh_sh4_register_convert_to_raw.
11678 (sh_pseudo_register_read): Accomodate above name change.
11679 (sh_pseudo_register_write): Ditto.
11680
b58cbbf2
CV
116812004-02-16 Corinna Vinschen <vinschen@redhat.com>
11682
11683 * sh-tdep.c (sh_generic_register_name): Remove.
11684 (sh_gdbarch_init): Use sh_sh_register_name in default case.
11685
5929a910
AC
116862004-02-15 Andrew Cagney <cagney@redhat.com>
11687
4566dfcf
AC
11688 * configure.in (build_warnings): Add -Wunused-function.
11689 * configure: Re-generate.
11690
db11ed55
AC
11691 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
11692 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
11693
46ac7a5d
AC
11694 * procfs.c (procfs_init_inferior): Assume that
11695 START_INFERIOR_TRAPS_EXPECTED is defined.
11696 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
11697 * config/ns32k/tm-nbsd.h: Delete file,
11698 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
11699
ba801595
AC
11700 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
11701 * config/vax/tm-vax.h: Delete file.
11702
5929a910
AC
11703 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11704 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11705 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11706 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11707 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
11708 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11709 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
11710
8f22cb90
MK
117112004-02-15 Mark Kettenis <kettenis@gnu.org>
11712
11713 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
11714 * dwarf2-frame.c (dwarf2_frame_data): New variable.
11715 (struct dwarf2_frame_ops): New.
11716 (dwarf2_frame_default_init_reg): New function, based on
11717 dwarf2_frame_init_reg.
11718 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
11719 (dwarf2_frame_init_reg): Call architecture-specific function.
11720 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
11721 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
11722 instead of dwarf2_frame_data.
11723 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
11724 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
11725
8132723e
AC
117262004-02-15 Andrew Cagney <cagney@redhat.com>
11727
046a4708
AC
11728 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
11729 register_gdbarch_swap.
11730 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
11731 * f-lang.c (_initialize_f_language): Update, use
11732 DEPRECATED_REGISTER_GDBARCH_SWAP.
11733 * remote.c (_initialize_remote): Ditto.
11734 * regcache.c (_initialize_regcache): Ditto.
11735 * parse.c (_initialize_parse): Ditto.
11736 * infrun.c (_initialize_infrun): Ditto.
11737 * mi/mi-main.c (_initialize_mi_main): Ditto.
11738 * gdbtypes.c (_initialize_gdbtypes): Ditto.
8a1dac83 11739
549c1eea
AC
11740 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
11741 poking .cacheable directly.
11742 * symfile.c (symfile_bfd_open): Ditto.
11743
0c0b39de
AC
11744 * Makefile.in: Update all dependencies.
11745
8132723e
AC
11746 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
11747 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
11748 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
11749 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
11750 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
0c0b39de 11751
b9d26eb9
AC
117522004-02-14 Andrew Cagney <cagney@redhat.com>
11753
8e1f669a
AC
11754 * arch-utils.c (legacy_convert_register_p): Check
11755 DEPRECATED_REGISTER_CONVERTIBLE_P.
11756 * findvar.c (value_of_register): Ditto.
11757
cd0bfa36
AC
11758 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
11759 * gdbarch.h, gdbarch.c: Re-generate.
11760 * arch-utils.c (deprecated_register_convertible_not): Delete.
11761 * arch-utils.h (deprecated_register_convertible_not): Delete.
11762 * mi/mi-main.c (get_register): Update. Update copyright.
11763 * infcmd.c (default_print_registers_info): Update.
11764
b9d26eb9
AC
11765 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
11766 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
11767 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
8a1dac83 11768 * gdbarch.h, gdbarch.c: Re-generate.
b9d26eb9
AC
11769 * frame.c (deprecated_get_next_frame_hack): Delete function.
11770 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
11771 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
11772 Update.
11773 * infcall.c (call_function_by_hand): Update.
11774
9ab9195f
EZ
117752004-02-14 Elena Zannoni <ezannoni@redhat.com>
11776
11777 * symfile.c (init_entry_point_info, entry_point_address): Move
8a1dac83 11778 from here...
9ab9195f
EZ
11779 * objfiles.c (init_entry_point_info, entry_point_address):..to
11780 here.
11781 * symfile.h (init_entry_point_info, entry_point_address): Remove
11782 prototypes.
11783 * objfiles.h (init_entry_point_info, entry_point_address):Add
8a1dac83 11784 prototypes.
9ab9195f
EZ
11785 * cris-tdep.c: Remove include of symfile.h. Add include of
11786 objfiles.h.
11787 * infcall.c: Ditto.
11788 * mcore-tdep.c: Ditto.
11789 * mn10300-tdep.c: Ditto.
11790 * sh64-tdep.c: Ditto.
11791 * v850-tdep.c: Ditto.
11792 * arm-tdep.c: Remove include of symfile.h.
11793 * blockframe.c: Ditto.
11794 * coffread.c: Ditto.
11795 * dbxread.c: Ditto.
11796 * dwarf2read.c: Ditto.
11797 * dwarfread.c: Ditto.
8a1dac83 11798 * frv-tdep.c: Ditto.
9ab9195f
EZ
11799 * ia64-tdep.c: Ditto.
11800 * mdebugread.c: Ditto.
11801 * mipsread.c: Ditto.
8a1dac83 11802 * rs6000-tdep.c: Ditto.
9ab9195f
EZ
11803 * s390-tdep.c: Ditto.
11804 * sh-tdep.c: Ditto.
8a1dac83 11805 * xstormy16-tdep.c: Ditto.
9ab9195f
EZ
11806 * gdbarch.sh: Remove include of symfile.h.
11807 * gdbarch.c: Regenerate.
11808 * solib-irix.c (enable_break): Use entry_point_address().
11809 Add comment about include file.
11810 * xcoffread.c: Add comment about include file.
8a1dac83
RM
11811 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
11812 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
11813 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
11814 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
9ab9195f
EZ
11815 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
11816
c4c5b7ba
AC
118172004-02-13 Andrew Cagney <cagney@redhat.com>
11818
11819 * corelow.c (core_xfer_partial): Use "struct bfd_section".
11820 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
11821 copyright.
11822 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
11823
3e7879de
FF
118242004-02-12 Fred Fish <fnf@redhat.com>
11825
11826 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
11827 set_gdbarch_store_return_value.
11828
6a7760b6
AC
118292004-02-12 Andrew Cagney <cagney@redhat.com>
11830
11831 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
11832 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
11833 (interrupt_query): Ditto.
11834 (ofunc): Delete unused variable.
11835 * cris-tdep.c (cris_abi): Delete unused function.
11836 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
11837 (cris_get_wide_opcode, cris_get_short_size): Ditto.
11838 (cris_get_asr_quick_shift_steps): Ditto.
11839 (cris_skip_prologue_frameless_p): Ditto.
11840 * arm-tdep.c (arm_push_return_address): Delete unused function.
11841 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
11842 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
11843 * s390-tdep.c (s390_function_start): Delete unused function.
11844
31687c3c
AC
118452004-02-12 Andrew Cagney <cagney@redhat.com>
11846
11847 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
11848 gdbarch.h, gdbarch.c: Re-generate.
11849 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
11850 to generic_prologue_frameless_p.
11851 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
11852 * arch-utils.c (generic_prologue_frameless_p): Delete function.
11853
6de918a6
DJ
118542004-02-11 Daniel Jacobowitz <drow@mvista.com>
11855
11856 * mips-linux-tdep.c: Include "frame.h".
11857 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
11858 (mips_linux_skip_resolver): New functions.
11859 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
11860 and set_gdbarch_in_solib_call_trampoline.
11861 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
11862 to after set_gdbarch_in_solib_return_trampoline. Only set the
11863 solib hooks to mips16 functions if the OS ABI is unknown.
11864 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
11865 including "config/tm-linux.h".
11866 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
11867 * Makefile.in (mips-linux-tdep.o): Update.
11868
87b3ede8
DC
118692004-02-11 David Carlton <carlton@kealia.com>
11870
11871 * linespec.c (decode_compound): Only look for a class symbol when
11872 considering all but the rightmost component.
11873
5979bc46
AC
118742004-02-11 Andrew Cagney <cagney@redhat.com>
11875
11876 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
11877 abi code are are separatly grouped.
11878
5867a2fb
AC
118792004-02-11 Andrew Cagney <cagney@redhat.com>
11880
11881 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
11882 * gdbarch.h, gdbarch.c: Re-generate.
11883 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11884 * v850-tdep.c (v850_gdbarch_init): Update.
11885 * sh64-tdep.c (sh64_gdbarch_init): Update.
11886 * sh-tdep.c (sh_gdbarch_init): Update.
11887 * s390-tdep.c (s390_gdbarch_init): Update.
11888 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11889 * mips-tdep.c (mips_gdbarch_init): Update.
11890 * mcore-tdep.c (mcore_gdbarch_init): Update.
11891 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11892 * m32r-tdep.c (m32r_gdbarch_init): Update.
11893 * ia64-tdep.c (ia64_gdbarch_init): Update.
11894 * hppa-tdep.c (hppa_gdbarch_init): Update.
11895 * h8300-tdep.c (h8300_gdbarch_init): Update.
11896 * frv-tdep.c (frv_gdbarch_init): Update.
11897 * d10v-tdep.c (d10v_gdbarch_init): Update.
11898 * cris-tdep.c (cris_gdbarch_init): Update.
11899 * avr-tdep.c (avr_gdbarch_init): Update.
11900 * arm-tdep.c (arm_gdbarch_init): Update.
11901 * alpha-tdep.c (alpha_gdbarch_init): Update.
11902
026a72f8
CV
119032004-02-11 Corinna Vinschen <vinschen@redhat.com>
11904
11905 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
11906 comma.
11907 (sh_sh4al_dsp_register_name): Ditto.
11908
3903d437
AC
119092004-02-10 Andrew Cagney <cagney@redhat.com>
11910
11911 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
11912 (mips_init_frame_pc_first): Delete function.
11913 (mips_frame_saved_pc): Delete function.
11914 (mips_frame_chain): Delete function.
11915 (mips_init_extra_frame_info): Delete function.
11916 (mips_xfer_register): Delete unused variable "reg".
11917 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
11918 (mips_n32n64_return_value): Delete unused variable "reg".
11919 (mips_n32n64_return_value): Delete unused variable "pos".
11920 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
11921 (mips_o32_return_value): Delete unused variable "pos".
11922 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
11923 (mips_print_fp_register): Delete unused variable "namelen"
11924 (mips_print_fp_register): Delete unused variable "flt2"
11925 (get_frame_pointer): Delete function.
11926 (cached_proc_desc): Delete static variable.
11927 (mips_pop_frame): Delete function.
11928 (mips_find_saved_regs): Delete function.
11929 (mips_get_saved_register): Delete function.
11930 (mips_saved_pc_after_call): Delete function.
11931 (SIGFRAME_BASE): Delete macro.
11932 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
11933 (SIGFRAME_PC_OFF): Delete macro.
11934 (SIGFRAME_REGSAVE_OFF): Delete macro.
11935 (mips_dump_tdep): Do not print deleted macro definitions.
11936
b9fb98bd
AC
119372004-02-10 Andrew Cagney <cagney@redhat.com>
11938
11939 * Makefile.in (SFILES): Remove explictly listed tui files.
11940 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
11941
78ced177 119422004-02-10 Jeff Johnston <jjohnstn@redhat.com>
8a1dac83 11943
78ced177
JJ
11944 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
11945 to use paddr functions to format ia64 addresses and long values.
11946 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
11947 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
11948 (get_kernel_table, ia64_find_proc_info_x): Ditto.
11949 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
11950 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
11951
6a83354a
AC
119522004-02-10 Andrew Cagney <cagney@redhat.com>
11953
11954 * defs.h: Do not include "tui.h".
11955 * gdb_curses.h: New file.
11956 * tui/tui-hooks.h: New file.
11957 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
11958 (tui_install_hooks, tui_remove_hooks): Delete declarations.
11959 (tui_initialize_io): Delete declaration.
11960 (tui_initialize_readline: Delete redundant declaration.
11961 (struct tui_point): Delete definition.
11962 * tui/tui-data.h (struct tui_point): Define.
11963 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
11964 * utils.c: Include "tui/tui.h".
11965 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
11966 * printcmd.c [TUI]: Include "tui/tui.h".
11967 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
11968 * tui/tui-command.c: Include "gdb_curses.h".
11969 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
11970 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
11971 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
11972 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
11973 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
11974 * Makefile.in: Update all dependencies.
11975 (tui_hooks_h, gdb_curses_h): Define.
11976 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
11977
997470ef
EZ
119782004-02-10 Elena Zannoni <ezannoni@redhat.com>
11979
11980 * objfiles.h (struct objfile): Remove unused fields auxf1 and
11981 auxf2. Add comments about some other rarely used fields.
11982
4ff2cc4d
AC
119832004-02-10 Andrew Cagney <cagney@redhat.com>
11984
11985 * Makefile.in (init.c): Fix script removing duplicates. Problem
11986 reported by Peter Schauer.
11987
1ab21617
EZ
119882004-02-09 Elena Zannoni <ezannoni@redhat.com>
11989
11990 * bcache.c (bcache_xmalloc): Use obstack_init instead of
11991 obstack_specify_allocation.
11992 * objfiles.c (allocate_objfile): Ditto.
8a1dac83 11993 * solib-sunos.c (solib_add_common_symbols)
1ab21617
EZ
11994 (allocate_rt_common_objfile): Ditto.
11995 * symfile.c (reread_symbols): Ditto.
11996 * gdb_obstack.h: Add comment.
11997
17763fd9
EZ
119982004-02-09 Elena Zannoni <ezannoni@redhat.com>
11999
12000 * linespec.c (decode_line_1, locate_first_half)
12001 (decode_compound, lookup_prefix_sym): Update comments. Delete old
12002 commented out code.
12003
ec5cdd75
DJ
120042004-02-09 Daniel Jacobowitz <drow@mvista.com>
12005
12006 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
12007 obstack_free.
12008
43b54b88
AC
120092004-02-09 Andrew Cagney <cagney@redhat.com>
12010
12011 * blockframe.c (find_pc_partial_function): If find_pc_overlay
12012 fails, try find_pc_section. Fix PR c++/1267.
12013 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
12014 instead of find_pc_mapped_section.
12015 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
12016 not default to the section containing PC. Fix PR symtab/1519.
12017
edfae063
AC
120182004-02-09 Andrew Cagney <cagney@redhat.com>
12019
12020 * Makefile.in (mips-tdep.o): Update dependencies.
12021 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
12022 "trad-frame.h".
12023 (mips_unwind_pc): Return the pseudo PC register.
12024 (mips_unwind_dummy_id): New function.
12025 (mips16_fetch_instruction): New function.
12026 (mips32_fetch_instruction): New function.
12027 (struct mips_frame_cache): Define.
12028 (mips_mdebug_frame_cache): New function.
12029 (mips_mdebug_frame_this_id): New function.
12030 (mips_mdebug_frame_prev_register): New function.
12031 (mips_mdebug_frame_unwind): Define.
12032 (mips_mdebug_frame_sniffer): New function.
12033 (mips_mdebug_frame_base_address): New function.
12034 (mips_mdebug_frame_base): Define.
12035 (mips_mdebug_frame_base_sniffer): New function.
12036 (mips_gdbarch_init): Append unwind and base sniffers. Set
12037 unwind_dummy_id.
12038
defc864c
AC
120392004-02-08 Andrew Cagney <cagney@redhat.com>
12040
6764ddad
AC
12041 * frame.c: Print both the register number and name.
12042
defc864c
AC
12043 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
12044 and a sed into a single sed. Make .c and .o patterns more robust.
12045 (OBS): Delete.
12046 (INIT_FILES): Replace OBS with COMMON_OBS.
12047 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
12048
645d6d10
MK
120492004-02-08 Mark Kettenis <kettenis@gnu.org>
12050
12051 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
12052 the PT_WCOOKIE request.
12053
23e3c3fc
AC
120542004-02-08 Andrew Cagney <cagney@redhat.com>
12055
58dfe9ff
AC
12056 * mips-tdep.c (mips_unwind_pc): New function.
12057 (mips_gdbarch_init): Set mips_unwind_pc.
12058
1152e35e
AC
12059 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
12060 (get_frame_id): Allow the UNKNOWN_FRAME.
12061 (frame_register_unwind, get_frame_type): Ditto.
12062
31b75dbf
AC
12063 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
12064 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
12065 unwind_dummy_id indicates a legacy frame.
12066
3483b318
AC
12067 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
12068 * configure: Re-generate.
12069
23e3c3fc
AC
12070 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
12071 methods.
12072
33f8ca73
AC
120732004-02-08 Andrew Cagney <cagney@redhat.com>
12074
12075 * configure.in (CONFIG_ALL): Set to Makefile target, and not
12076 makefile macro.
12077 * configure: Re-generate.
12078 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
12079 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
12080 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
12081 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
12082 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
12083 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
12084 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
12085 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
12086 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
12087 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
12088
6ba8e26f 120892004-02-07 Andrew Cagney <cagney@redhat.com>
d836ee13 12090
20d286a5
AC
12091 * Makefile.in: Update all dependencies.
12092
d836ee13
AC
12093 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
12094 * configure: Re-generate.
12095 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
12096 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
12097 (COMMON_OBS): Add "main.o" and "annotate.o".
12098 (ANNOTATE_OBS): Delete.
12099 (OBS): Remove ANNOTATE_OBS.
12100 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
12101 CONFIG_INITS.
12102 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
12103 against CONFIG_OBS and "main.o".
12104 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
12105 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
12106
d02c80cd
AC
12107 * tui/tui-command.c: Include "gdb_string.h", delete register
12108 attribute, use ISO-C function signatures.
12109 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
12110 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
12111 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
12112 * tui/tui.c: Ditto.
6ba8e26f
AC
12113
12114 * tui/tui-command.c: Change variable and function names to lower
12115 case.
12116 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
12117 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
12118 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
12119 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12120 * tui/tui-winsource.c, tui/tui.c: Ditto.
12121
4a146b47
EZ
121222004-02-07 Elena Zannoni <ezannoni@redhat.com>
12123
12124 * buildsym.c (free_pending_blocks, finish_block)
12125 (record_pending_block, make_blockvector, end_symtab): Replace
12126 symbol_obstack with objfile_obstack.
8a1dac83 12127 * coffread.c (process_coff_symbol, coff_read_struct_type)
4a146b47 12128 (coff_read_enum_type): Ditto.
8a1dac83 12129 * cp-namespace.c (initialize_namespace_symtab)
4a146b47 12130 (check_one_possible_namespace_symbol): Ditto.
8a1dac83 12131 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
4a146b47
EZ
12132 (dwarf2_symbol_mark_computed): Ditto.
12133 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
12134 * elfread.c (elf_symtab_read): Ditto.
12135 * hpread.c (hpread_symfile_init, hpread_symfile_init)
12136 (hpread_read_enum_type, hpread_read_function_type)
12137 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
12138 Ditto.
8a1dac83 12139 * jv-lang.c (get_java_class_symtab, add_class_symbol)
4a146b47 12140 (java_link_class_type): Ditto.
8a1dac83 12141 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
4a146b47
EZ
12142 (new_symbol): Ditto.
12143 * minsyms.c (install_minimal_symbols): Ditto.
12144 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
12145 (terminate_minimal_symbol_table): Replace symbol_obstack with
12146 objfile_obstack.
12147 (free_objfile): Remove freeing of symbol_obstack.
12148 * objfiles.h: Remove symbol_obstack field.
12149 * pa64solib.c (add_to_solist): Replace symbol_obstack with
12150 objfile_obstack.
12151 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
12152 symbol_obstack.
12153 (solib_add_common_symbols): Replace symbol_obstack with
12154 objfile_obstack.
12155 * somsolib.c (som_solib_add): Ditto.
12156 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
12157 (common_block_start, common_block_end): Ditto.
12158 * symfile.c (reread_symbols): Remove freeing and init of
12159 symbol_obstack.
12160 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
12161 * symfile.h: Update comment.
12162 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
12163 stats printing.
12164 * symtab.c (symbol_set_names): Replace symbol_obstack with
12165 objfile_obstack.
12166 * symtab.h (struct general_symbol_info, struct minimal_symbol):
12167 Update comments.
12168 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
12169 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
12170 objfile_obstack.
12171
6d012f14
AC
121722004-02-07 Andrew Cagney <cagney@redhat.com>
12173
12174 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
12175 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
12176 fields and variables.
12177 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
12178 (m_beInvisible): Delete macro.
12179 * tui/tui-data.h: Fix case case fields and variables.
12180 (m_genWinPtrIsNull): Delete macro.
12181 (tui_win_list): Rename winList.
12182 (TUI_SRC_WIN): Rename srcWin.
12183 (TUI_DISASM_WIN): Rename disassemWin.
12184 (TUI_DATA_WIN): Rename dataWin.
12185 (TUI_CMD_WIN): Rename cmdWin.
12186 (m_genWinPtrNotNull): Delete macro.
12187 (m_winPtrIsNull): Delete macro.
12188 (m_winPtrNotNull): Delete macro.
12189 (tui_win_is_source_type): Replace m_winIsSourceType
12190 (tui_win_is_auxillary): Replace m_winIsAuzillary.
12191 (tui_win_has_locator): Replace m_hasLocator.
12192 (tui_set_win_highlight): Replace m_setWinHighlightOn and
12193 m_setWinHighlightOff.
12194 * tui/tui-data.c: Update references.
12195 (tui_win_is_source_type, tui_set_win_highlight): New functions.
12196 (tui_win_has_locator, tui_win_is_auxillary): New functions.
12197 * tui/tui-command.c, tui/tui-disasm.c: Update references.
12198 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
12199 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
12200 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12201 * tui/tui-winsource.c, tui/tui.c: Ditto.
12202
7d34766b
MK
122032004-02-07 Mark Kettenis <kettenis@gnu.org>
12204
1c800673
MK
12205 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
12206 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
12207 StackGhost.
12208
7d34766b
MK
12209 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
12210 variable `i6' to `i7'.
12211 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
12212
22940a24
AC
122132004-02-07 Andrew Cagney <cagney@redhat.com>
12214
12215 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
12216 (TuiPoint, TuiPointPtr): Ditto.
12217 (TuiStatus, TuiStatusPtr): Ditto.
12218 (TuiWinType, TuiWinTypePtr): Ditto.
12219 (struct tui_point): Rename _TuiPoint.
12220 (tui_get_low_disassembly_address): Rename
12221 tuiGetLowDisassemblyAddress.
12222 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
12223 (tuiFree): Delete declaration.
12224 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
12225 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
12226 * tui/tui.c (tuiFree): Delete function.
12227 * cli/cli-cmds.c (disassemble_command): Update references.
12228 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
12229 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
12230 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
12231 * tui/tui-winsource.c: Ditto.
12232
8b92e4d5
EZ
122332004-02-07 Elena Zannoni <ezannoni@redhat.com>
12234
12235 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
12236 coffstab_build_psymtabs, elfstab_build_psymtabs)
12237 (stabsect_build_psymtabs): Replace psymbol_obstack with
12238 objfile_obstack.
12239 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
12240 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
12241 Ditto.
12242 * dwarfread.c (scan_compilation_units): Ditto.
12243 * elfread.c (elfstab_offset_sections): Ditto.
12244 * hppa-tdep.c (read_unwind_info): Ditto.
12245 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
12246 (hpread_end_psymtab): Ditto.
12247 * mdebugread.c (mdebug_build_psymtabs, add_pending)
12248 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
12249 Ditto.
12250 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
8a1dac83 12251 * objfiles.c (add_to_objfile_sections)
8b92e4d5
EZ
12252 (build_objfile_section_table): Ditto.
12253 (allocate_objfile): Remove init of psymbol_obstack.
12254 (free_objfile): Remove freeing of psymbol_obstack.
12255 * objfiles.h (struct objfile): Remove field
12256 psymbol_obstack. Update comments.
12257 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
12258 psymbol_obstack with objfile_obstack.
12259 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
12260 psymbol_obstack.
12261 * somread.c (som_symfile_offsets, init_import_symbols)
12262 (init_export_symbols): Replace psymbol_obstack with
12263 objfile_obstack.
12264 * somsolib.c (som_solib_add_solib_objfile): Ditto.
12265 * symfile.c (default_symfile_offsets, syms_from_objfile)
12266 (reread_symbols): Remove freeing and init of psymbol_obstack.
12267 (cashier_psymtab): Update comment.
12268 * symmisc.c (print_objfile_statistics): Don't report stats for
12269 psymbol obstack.
12270 * symtab.h (struct general_symbol_info, struct partial_symtab):
12271 Update comments.
12272 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
12273 (xcoff_symfile_offsets): Replace psymbol_obstack with
12274 objfile_obstack.
12275
b99607ea
EZ
122762004-02-07 Elena Zannoni <ezannoni@redhat.com>
12277
12278 * objfiles.h (struct objfile): Add objfile_obstack field.
12279 Remove type_obstack field.
12280
12281 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
12282 read_structure_scope read_enumeration, new_symbol): Replace
12283 type_obstack with objfile_obstack.
12284 * dwarfread.c (struct_type, enum_type): Ditto.
8a1dac83 12285 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
b99607ea
EZ
12286 (lookup_fundamental_type): Ditto.
12287 * gdbtypes.h (TYPE_ALLOC): Ditto.
8a1dac83
RM
12288 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
12289 (hpread_read_doc_function_type, hpread_read_struct_type)
12290 (fix_static_member_physnames, hpread_read_array_type)
b99607ea 12291 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
8a1dac83 12292 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
b99607ea
EZ
12293 (java_link_class_type): Ditto.
12294 * mdebugread.c (parse_type): Ditto.
12295 * objfiles.c (allocate_objfile, free_objfile): Ditto.
12296 * solib-sunos.c (solib_add_common_symbols): Ditto.
12297 * stabsread.c (define_symbol, read_type, read_member_functions,
12298 read_cpp_abbrev, read_one_struct_field): Ditto.
12299 * symfile.c (reread_symbols): Ditto.
12300 * symmisc.c (print_objfile_statistics): Ditto.
8a1dac83 12301
2a8854a7
AC
123022004-02-07 Andrew Cagney <cagney@redhat.com>
12303
12304 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
12305 (tui_exec_info_content): Rename TuiExecInfoContent.
12306 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
12307 (TuiWinInfo, TuiWinInfoPtr): Ditto.
12308 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
12309 (TuiList, TuiListPtr): Ditto.
12310 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
12311 (TuiDataType, TuiDataTypePtr): Ditto.
12312 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
12313 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
12314 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
12315 (TuiSourceElement, TuiSourceElementPtr): Ditto.
12316 (TuiDataElement, TuiDataElementPtr): Ditto.
12317 (TuiWinElement, TuiWinElementPtr): Ditto.
12318 (TuiDataInfo, TuiDataInfoPtr): Ditto.
12319 (TuiCommandElement, TuiCommandElementPtr): Ditto.
12320 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
12321 (TuiWhichElement, TuiWhichElementPtr): Ditto.
12322 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
12323 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
12324 * tui/tui-command.c, tui/tui-data.c: Update references.
12325 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
12326 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
12327 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12328 * tui/tui-winsource.c, tui/tui.c: Ditto.
8a1dac83 12329
05cbe71a
MK
123302004-02-07 Mark Kettenis <kettenis@gnu.org>
12331
12332 * dwarf2-frame.h: Update copyright.
12333 (enum dwarf2_frame_reg_rule): New.
12334 (struct dwarf2_frame_state_reg): New.
12335 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
12336 * dwarf2-frame.c: Update copyright.
12337 (enum dwarf2_reg_rule): Remove.
12338 (struct dwarf2_frame_state): Remove defenition of `struct
12339 dwarf2_frame_state_reg'.
12340 (read_reg): Call get_frame_arch to get the architecture instead of
12341 using CURRENT_GDBARCH.
12342 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
12343 DWARF2_FRAME_.
12344 (dwarf2_frame_init_reg): New function.
12345 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
12346 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
12347 initialize the register state. Prefix old `enum dwarf2_reg_rule'
12348 tags with DWARF2_FRAME_.
12349 (dwarf2_frame_prev_register): Call get_frame_arch to get the
12350 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
12351 dwarf2_reg_rule' tags with DWARF2_FRAME_.
12352
ec7d9e56
AC
123532004-02-06 Andrew Cagney <cagney@redhat.com>
12354
dd1abb8c
AC
12355 * tui/tui-data.h (struct tui_list): Rename _TuiList.
12356 (enum tui_data_type): Rename _TuiDataType.
12357 (struct tui_layout_def): Rename _TuiLayoutDef.
12358 (struct tui_source_element): Rename _TuiSourceElement.
12359 (struct tui_data_element): Rename _TuiDataElement.
12360 (struct tui_command_element): Rename _TuiCommandElement.
12361 (struct tui_locator_element): Rename _TuiLocatorElement.
12362 (union tui_which_element): Define.
12363 (struct tui_win_element): Rename _TuiWinElement.
12364 (struct tui_data_info): Rename _TuiDataInfo.
12365 (struct tui_source_info): Rename _TuiSourceInfo.
12366 (struct tui_command_info): Rename _TuiCommandInfo.
12367 (tui_initialize_static_data): Rename initializeStaticData.
12368 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
12369 (tui_alloc_win_info): Rename allocWinInfo.
12370 (tui_init_generic_part): Rename initGenericPart.
12371 (tui_init_win_info): Rename initWinInfo.
12372 (tui_alloc_content): Rename allocContent.
12373 (tui_add_content_elements): Rename addContentElements.
12374 (tui_init_content_element): Rename initContentElement.
12375 (tui_free_window): Rename freeWindow.
12376 (tui_free_win_content): Rename freeWinContent.
12377 (tui_free_data_content): Rename freeDataContent.
12378 (tui_free_all_source_wins_content): Rename
12379 freeAllSourceWinsContent.
12380 (tui_del_window): Rename tuiDelWindow.
12381 (tui_del_data_windows): Rename tuiDelDataWindows.
12382 (tui_partial_win_by_name): Rename partialWinByName.
12383 (tui_win_name): Rename winName.
12384 (tui_current_layout): Rename currentLayout.
12385 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
12386 (tui_term_height): Rename termHeight.
12387 (tui_set_term_height_to): Rename setTermHeightTo.
12388 (tui_term_width): Rename termWidth.
12389 (tui_set_term_width_to): Rename setTermWidthTo.
12390 (tui_set_gen_win_origin): Rename setGenWinOrigin.
12391 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
12392 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
12393 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
12394 (tui_source_windows): Rename sourceWindows.
12395 (tui_clear_source_windows): Rename clearSourceWindows.
12396 (tui_clear_source_windows_detail): Rename
12397 clearSourceWindowsDetail.
12398 (tui_clear_win_detail): Rename clearWinDetail.
12399 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
12400 (tui_default_tab_len): Rename tuiDefaultTabLen.
12401 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
12402 (tui_win_with_focus): Rename tuiWinWithFocus.
12403 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
12404 (tui_layout_def): Rename tuiLayoutDef.
12405 (tui_win_resized): Rename tuiWinResized.
12406 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
12407 (tui_next_win): Rename tuiNextWin.
12408 (tui_prev_win): Rename tuiPrevWin.
12409 (tui_add_to_source_windows): Rename addToSourceWindows.
12410 * tui/tui-winsource.c, tui/tui-win.c: Update references.
12411 * tui/tui-layout.c, tui/tui-source.c: Ditto.
12412 * tui/tui-stack.c, tui/tui-io.c: Ditto.
12413 * tui/tui.c, tui/tui-data.c: Ditto.
12414 * tui/tui-interp.c, tui/tui-data.c: Ditto.
12415 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
12416
a358af15
AC
12417 * tui/tui-source.h: Update copyright. Include "tui-data.h".
12418 (struct symtab): Declare.
12419 (tui_set_source_content): Rename tuiSetSourceContent.
12420 (tui_show_symtab_source): Rename tuiShowSource.
12421 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
12422 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
12423 * tui/tui-source.c: Update copyright. Update references.
12424 * tui/tui-win.c, tui/tui-winsource.c: Update references.
12425 * tui/tui-stack.c: Update references.
12426
a21fcd8f
AC
12427 * tui/tui-win.h: Update copyright. Include "tui-data.h".
12428 (struct tui_win_info): Declare.
12429 (tui_scroll_forward): Rename tuiScrollForward.
12430 (tui_scroll_backward): Rename tuiScrollBackward.
12431 (tui_scroll_left): Rename tuiScrollLeft.
12432 (tui_scroll_right): Rename tuiScrollRight.
12433 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
12434 (tui_resize_all): Rename tuiResizeAll.
12435 (tui_refresh_all_win): Rename tuiRefreshAll.
12436 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
12437 * tui/tui-layout.c, * tui/tui-io.c: Update references.
12438 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
12439 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
12440
edae1ccf
AC
12441 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
12442 (tui_erase_data_content): Rename tuiEraseDataContent.
12443 (tui_display_all_data): Rename tuiDisplayAllData.
12444 (tui_check_data_values): Rename tuiCheckDataValues.
12445 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
12446 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
12447 (tui_first_data_element_no_in_line): Rename
12448 tuiFirstDataElementNoInLine.
12449 (tui_delete_data_content_windows): Rename
12450 tuiDeleteDataContentWindows.
12451 (tui_refresh_data_win): Rename tuiRefreshDataWin.
12452 (tui_display_data_from): Rename tuiDisplayDataFrom.
12453 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
12454 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
12455 * tui/tui-win.c, tui/tui-regs.c: Update references.
12456 * tui/tui-layout.c, tui/tui.c: Update references.
12457
ec7d9e56
AC
12458 * tui/tui-wingeneral.h: Update copyright.
12459 (m_allBeVisible): Delete macro.
8a1dac83 12460 (m_allBeInvisible): Delete macro.
ec7d9e56
AC
12461 (struct tui_gen_win_info): Declare.
12462 (struct tui_win_info): Declare.
12463 (tui_unhighlight_win): Rename unhighlightWin.
12464 (tui_make_visible, tui_make_invisible): Replace makeVisible.
12465 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
12466 (tui_make_window): Rename makeWindow.
12467 (tui_copy_win): Rename copyWin.
12468 (tui_box_win): Rename boxWin.
12469 (tui_highlight_win): Rename highlightWin.
12470 (tui_check_and_display_highlight_if_needed): Rename
12471 checkAndDisplayHighlightIfNeeded.
12472 (tui_refresh_all): Rename refreshAll.
12473 (tui_delete_win): Rename tuiDelwin.
12474 (tui_refresh_win): Rename tuiRefreshWin.
12475 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
12476 (tui_make_visible, tui_make_invisible): New functions.
12477 (tui_make_all_visible, tui_make_all_invisible): New functions.
12478 (make_all_visible): Rename makeAllVisible.
12479 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
12480 * tui/tui-data.c, tui/tui-winsource.c: Update references.
12481 * tui/tui-windata.c, tui/tui-win.c: Update references.
12482 * tui/tui-regs.c, tui/tui-layout.c: Update references.
12483 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
12484
1e52e2eb
MK
124852004-02-06 Mark Kettenis <kettenis@gnu.org>
12486
12487 * proc-api.c (write_with_trace): Initialize local variable to
12488 silence compiler warning.
12489
f80bda8e
AC
124902004-02-06 Andrew Cagney <cagney@redhat.com>
12491
12492 * tui/tui-source.h: Do not include "defs.h".
12493 (struct tui_win_info): Declare.
12494 (tui_set_source_content_nil): Declare.
12495 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
12496 (union tui_line_or_address): Rename _TuiLineOrAddress.
12497 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
12498 (tui_update_source_window): Rename tuiUpdateSourceWindow.
12499 (tui_update_source_window_as_is): Rename
12500 tuiUpdateSourceWindowAsIs.
12501 (tui_update_source_windows_with_addr): Rename
12502 tuiUpdateSourceWindowsWithAddr.
12503 (tui_update_source_windows_with_line): Rename
12504 tuiUpdateSourceWindowsWithLine.
12505 (tui_clear_source_content): Rename tuiClearSourceContent.
12506 (tui_erase_source_content): Rename tuiEraseSourceContent.
12507 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
12508 (tui_show_source_content): Rename tuiShowSourceContent.
12509 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
12510 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
12511 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
12512 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
12513 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
12514 (tui_update_exec_info): Rename tuiUpdateExecInfo.
12515 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
12516 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
12517 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
12518 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
12519 (struct tui_win_info): Declare.
12520 * tui/tui-stack.c: Update references.
12521 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
12522 * tui/tui-win.c, tui/tui-source.c: Ditto.
12523 * tui/tui.c, tui/tui-disasm.c: Ditto.
12524
9fbfb822
MK
125252004-02-06 Mark Kettenis <kettenis@gnu.org>
12526
12527 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
12528 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
12529
03cebad2
MK
125302004-02-05 Mark Kettenis <kettenis@gnu.org>
12531
12532 * infrun.c (handle_inferior_event): Allow for breakpoint
12533 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
12534 and SIGEMT. Update comments.
12535 * NEWS (Revised SPARC target): Mention support for non-executable
12536 stack.
12537
290281b1
MK
125382004-02-04 Mark Kettenis <kettenis@gnu.org>
12539
12540 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
12541 * inftarg.c: Update copyright year.
12542 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
12543 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
12544 (sparc_xfer_wcookie): New function.
12545 * sparc-tdep.c (sparc_fetch_wcookie): New function.
12546 * Makefile.in (sparc-nat.o): Update dependencies.
12547 * config/sparc/nm-nbsd.h: Include "target.h".
12548 (NATIVE_XFER_WCOOKIE): New define.
12549 (sparc_xfer_wcookie): New prototype.
12550
212161df
AC
125512004-02-04 Andrew Cagney <cagney@redhat.com>
12552
12553 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
12554 SYSCALL_TRAP function.
12555 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
12556
6e4c6c91
DJ
125572004-02-04 Andrew Cagney <cagney@redhat.com>
12558 Daniel Jacobowitz <drow@mvista.com>
12559
12560 * objfiles.h: Delete comments refering to inside_entry_func and
12561 DEPRECATED_FRAME_CHAIN_VALID.
12562 * defs.h (inside_entry_func): Update prototype..
12563 * blockframe.c (inside_entry_func): Rename to
12564 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
12565 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
12566
cae688ec
JJ
125672004-02-03 Jeff Johnston <jjohnstn@redhat.com>
12568
12569 * breakpoint.c (struct captured_parse_breakpoint_args): Move
12570 outside of #ifdef SOLIB_ADD region.
12571 (do_restore_lang_radix_cleanup): Ditto.
12572 (resolve_pending_breakpoint): Ditto.
12573
19217676
AC
125742004-02-03 Andrew Cagney <cagney@redhat.com>
12575
12576 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
12577 (process_note_abi_tag_sections): Delete unused function.
12578 (ia64_read_fp): Delete unused function.
12579 (gdbarch_extract_struct_value_address): Delete declaration.
12580
876753be
AC
125812004-02-02 Andrew Cagney <cagney@redhat.com>
12582
12583 * vax-tdep.c (vax_frame_chain): Delete call to
12584 deprecated_inside_entry_file.
12585 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
12586
d4f10bf2
MK
125872004-02-02 Mark Kettenis <kettenis@gnu.org>
12588
12589 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
12590 column that's "empty" or "same value" when eliminating REG_RA
12591 rules.
12592
cae688ec
JJ
125932004-02-02 Jeff Johnston <jjohnstn@redhat.com>
12594
12595 * NEWS: Add information about new pending breakpoint support.
12596
0101ce28
JJ
125972004-02-02 Jeff Johnston <jjohnstn@redhat.com>
12598
12599 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
12600 and pending fields for pending breakpoint support.
12601 * breakpoint.c (breakpoint_enabled): Add check for not pending.
12602 (condition_command): Only parse condition if not a pending
12603 breakpoint.
12604 (print_one_breakpoint): Add support for pending breakpoints.
12605 (describe_other_breakpoints): Add checks to verify we are not
12606 dealing with pending breakpoints.
12607 (check_duplicates): Don't check pending breakpoints.
12608 (set_raw_breakpoint): Initialize pending flag.
12609 (do_restore_lang_radix_cleanup): New cleanup routine.
12610 (resolve_pending_breakpoint): New function.
12611 (re_enable_breakpoints_in_shlibs): Try and resolve any
12612 pending breakpoints via resolve_pending_breakpoint.
12613 (mention): Add pending breakpoint support.
12614 (parse_breakpoint_sals): Add new parameter to pass to
12615 decode_line_1 to indicate silent errors when files or functions
12616 are not found. Change all callers.
12617 (do_captured_parse_breakpoint): New function.
12618 (break_command_1): Change prototype to return an rc value and to
12619 take an optional pending breakpoint pointer. Support creating
12620 a pending breakpoint if a "not found" form of error occurs when
12621 parsing the breakpoint. Also support resolving an existing pending
12622 breakpoint and be silent if the resolution fails.
12623 (create_breakpoints): Change prototype to take pending breakpoint
12624 pointer. When resolving a pending breakpoint, use the new pointer
12625 to provide a conditional or commands added by the end-user.
12626 (delete_breakpoint): Add appropriate check for pending.
12627 (breakpoint_re_set_one): Ditto.
12628 (do_enable_breakpoint): Ditto.
12629
8d577d32
DC
126302004-02-02 David Carlton <carlton@kealia.com>
12631
12632 * valops.c (enum oload_classification): New.
12633 (find_overload_match): Break implementation into separate
12634 functions; delete #if 0'd code; look for symbols within
12635 namespaces.
12636 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
12637 (find_oload_champ,oload_method_static,classify_oload_match): New.
12638 * cp-support.h: Add declaration for cp_func_name; update
12639 declaration for make_symbol_overload_list.
12640 * cp-support.c (cp_func_name): New.
12641 (overload_list_add_symbol): Fix comment, use
12642 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
12643 (make_symbol_overload_list): Take a function name and a namespace
12644 instead of a symbol; change implementation.
12645 (make_symbol_overload_list_using): New.
12646 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
12647
22e8e3c7
FF
126482004-02-02 Fred Fish <fnf@redhat.com>
12649
12650 * main.c (gdb_stdtarg): Move definition to group with other
15390fef 12651 gdb_stdtarg definitions and update copyright years.
22e8e3c7
FF
12652 * remote-sim.c (gdb_os_write_stderr): Write output to
12653 gdb_stdtargerr stream instead of gdb_stdtarg stream.
12654 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
15390fef 12655 gdb_stderr stream and update copyright years.
22e8e3c7 12656
6b753f60
DJ
126572004-02-01 Daniel Jacobowitz <drow@mvista.com>
12658
12659 * Makefile.in (mips-linux-nat.o): Update dependencies.
12660 * mips-linux-nat.c: Include mips-tdep.h.
12661
126622004-02-01 Roland McGrath <roland@redhat.com>
2cb6b099
RM
12663
12664 * sol-thread.c (sol_thread_xfer_partial): New function.
12665 (init_sol_thread_ops): Use that for to_xfer_partial hook.
12666 (init_sol_core_ops): Likewise.
12667
12668 * procfs.c (procfs_xfer_partial): New function.
12669 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
12670 * Makefile.in (procfs.o): Add $(auxv_h) dep.
12671
12672 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
12673 procfs_xfer_auxv function.
12674
12675 * procfs.c (procfs_make_note_section): If we can read
12676 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
12677 * linux-proc.c (linux_make_note_section): Likewise.
12678
12679 * auxv.h: New file.
12680 * auxv.c: New file.
12681 * Makefile.in (auxv_h): New variable.
12682 (COMMON_OBS): Add auxv.o here.
12683 (auxv.o): New target.
12684
12685 * corelow.c (core_xfer_partial): New function.
12686 (init_core_ops): Use it for core_ops.to_xfer_partial.
12687
12688 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
12689 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
12690 macro if that is defined.
12691
fa5281d0
DJ
126922004-02-01 Daniel Jacobowitz <drow@mvista.com>
12693
12694 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
12695 and check the specified thread for each breakpoint.
12696 * breakpoint.h (bpstat_stop_status): Update prototype.
12697 * infrun.c (handle_inferior_event): Update calls to
12698 bpstat_stop_status.
12699
26ee262d
DJ
127002004-02-01 Daniel Jacobowitz <drow@mvista.com>
12701
12702 * Makefile.in (cli-cmds.o): Add $(readline_h).
12703
d9b52655
DJ
127042004-02-01 Daniel Jacobowitz <drow@mvista.com>
12705
12706 * cli/cli-cmds.c: Include readline.h.
12707 (complete_command): Pass the start of the last word to
12708 complete_line.
12709
9709f61c
DJ
127102004-01-31 Daniel Jacobowitz <drow@mvista.com>
12711
12712 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
12713 argument, and change first argument to a CORE_ADDR.
12714 * breakpoint.h (bpstat_stop_status): Update prototype.
12715 * infrun.c (adjust_pc_after_break): Add a new comment.
12716 (handle_inferior_event): Update calls to bpstat_stop_status.
12717
4f1280bb
DJ
127182004-01-31 Daniel Jacobowitz <drow@mvista.com>
12719
12720 * breakpoint.h: Update copyright years.
12721
4fa8626c
DJ
127222004-01-31 Daniel Jacobowitz <drow@mvista.com>
12723
12724 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
12725 (bpstat_stop_status): Don't decrement PC.
12726 * breakpoint.h (software_breakpoint_inserted_here_p): Add
12727 prototype.
12728 * infrun.c (adjust_pc_after_break): New function.
12729 (handle_inferior_event): Call it, early. Remove later references
12730 to DECR_PC_AFTER_BREAK.
12731 (normal_stop): Add commentary.
12732
fad0733a
DJ
127332004-01-31 Daniel Jacobowitz <drow@mvista.com>
12734
12735 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
12736 2004-01-27 double-free fix.
12737
42cdca6c
MK
127382004-01-31 Mark Kettenis <kettenis@gnu.org>
12739
12740 * sparc-tdep.c (sparc_fetch_wcookie): New function.
12741 (sparc32_frame_prev_register): Handle StackGhost.
12742 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
12743
932d5416
RM
127442004-01-29 Roland McGrath <roland@redhat.com>
12745
12746 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
12747 * configure: Regenerated.
12748
12749 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
12750 * Makefile.in (procfs.o): Add dep.
12751
47d3492a
AC
127522004-01-28 Andrew Cagney <cagney@redhat.com>
12753
12754 * tui/tui-stack.h: Update copyright.
12755 (struct frame_info): Add opaque declaration.
12756 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
12757 (tui_show_locator_content): Rename tuiShowLocatorContent.
12758 (tui_show_frame_info): Rename tuiShowFrameInfo.
12759 * tui/tui-stack.c: Update copyright. Update references.
12760 * tui/tui-winsource.c: Update references.
12761 * tui/tui-win.c: Update references.
12762 * tui/tui-layout.c: Update references.
12763 * tui/tui-hooks.c: Update copyright, update references.
12764 * tui/tui.c: Update copyright, update references.
12765 * tui/tui-disasm.c: Update references.
12766
5d51ca54
DC
127672004-01-28 David Carlton <carlton@kealia.com>
12768
12769 * dwarf2read.c (add_partial_structure): Use demangled name if
12770 namespace equals "".
12771
086ed43d
JB
127722004-01-27 Jim Blandy <jimb@redhat.com>
12773
12774 Clean up misapplied patch:
12775 * dwarf2read.c (determine_prefix): Change one of the two forward
12776 declarations for 'determine_prefix_aux' to a declaration for this.
12777 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
12778 argument to 'die_specification'.
12779
2a35147e
JB
12780 * dwarf2read.c (read_func_scope): Re-indent comment.
12781
a355c7de 127822004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
932d5416 12783
a355c7de
AC
12784 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
12785 b->exp to NULL after freeing so that error during re-parsing or
12786 evaluation of expressions associated with breakpoint don't
12787 eventually lead to re-freeing of storage.
12788 Committed by Andrew Cagney.
12789
63ff5125
AC
127902004-01-27 Andrew Cagney <cagney@redhat.com>
12791
12792 * source.c (ambiguous_line_spec): Delete undefined declaration.
12793 * m32r-rom.c (m32r_set_board_address): Delete unused function.
12794 (m32r_set_server_address, m32r_set_download_path): Ditto.
12795 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
12796
e142c38c
DJ
127972004-01-27 Daniel Jacobowitz <drow@mvista.com>
12798
12799 * dwarf2read.c: Update calls to changed and renamed functions, and
12800 references to moved variables.
12801
12802 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
12803 language, language_defn, list_in_scope, and ftypes members.
12804 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
12805 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
12806 (baseaddr): Remove globals.
12807
12808 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
12809 (set_cu_language, die_is_declaration, die_specification)
12810 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
12811 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
12812 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
12813 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
12814
12815 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
12816 cu.list_in_scope. Don't initialize cu_header_offset.
12817 (add_partial_symbol): Add local baseaddr.
12818 (psymtab_to_symtab_1): Add local baseaddr. Use
12819 objfile->section_offsets for consistency. Don't initialize
12820 cu_header_offset; do initialize cu.header.offset and
12821 cu.list_in_scope.
12822 (read_file_scope, read_func_scope, read_lexical_block_scope)
12823 (dwarf_decode_lines, new_symbol): Add local baseaddr.
12824
c6e06ede
MC
128252004-01-27 Michael Chastain <mec.gnu@mindspring.com>
12826
fb328ecc 12827 * PROBLEMS: Add gdb/1516.
c6e06ede 12828
48184fd4
AC
128292003-12-29 Robert Millan <robertmh@gnu.org>
12830
12831 Patch committed by Andrw Cagney.
12832 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
12833 * configure.tgt: Match knetbsd*-gnu.
12834
c1321b30
AC
128352004-01-26 Andrew Cagney <cagney@redhat.com>
12836
f3699be3
AC
12837 * breakpoint.c (catch_command_1): Delete #ifdef code.
12838 (catch_fork_command_1): Delete #ifdef wrapper.
12839 (catch_exec_command_1): Ditto.
12840 (catch_load_command_1): Ditto.
12841 (catch_unload_command_1): Ditto.
12842
c1321b30
AC
12843 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
12844 (catch_breakpoint): Delete #if0ed function.
12845 (disable_catch_breakpoint): Ditto.
12846 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
12847 (disable_catch, enable_catch, delete_catch): Ditto.
12848
b4501125
AC
128492004-01-26 Andrew Cagney <cagney@redhat.com>
12850
12851 * remote.c (echo_check, quit_flag): Delete variables.
12852 (cisco_kernel_mode): Delete variable.
12853 (minitelnet_return, tty_input, escape_count): Delete variables.
12854 (remote_cisco_mode): Delete variable.
12855 (remote_cisco_open, remote_cisco_close): Delete function.
12856 (remote_cisco_mourn, remote_cisco_wait): Delete function.
12857 (init_remote_cisco_ops): Delete function.
12858 (_initialize_remote): Do not install "remote cisco" code.
12859 (read_frame): Delete cisco specific code.
12860 (remote_info_process): Delete function.
12861 (remote_wait): Delete cisco specific code.
12862 (remote_cisco_section_offsets): Delete function.
12863 (remote_cisco_objfile_relocate): Delete function.
12864 (remote_async_wait): Delete cisco specific code.
12865 (minitelnet, readtty, readsocket): Delete function.
12866
74055713
AC
128672004-01-26 Andrew Cagney <cagney@redhat.com>
12868
12869 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
12870 comments mentioning extract_returned_value_address.
12871 * infcmd.c (print_return_value): Update. Add comments on
12872 extract_returned_value_address.
12873 * stack.c (return_command): Add comments on
12874 extract_returned_value_address.
12875 * values.c: Update comment.
12876 * m32r-tdep.c: Update comment.
12877 * sparc-tdep.c: Update comment.
12878 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
12879 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12880 * sh64-tdep.c (sh64_gdbarch_init): Update.
12881 * sh-tdep.c (sh_gdbarch_init): Update.
12882 * s390-tdep.c (s390_gdbarch_init): Update.
12883 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12884 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
12885 * m68k-tdep.c (m68k_gdbarch_init): Update.
12886 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12887 * m32r-tdep.c (m32r_gdbarch_init): Update.
12888 * ia64-tdep.c (ia64_gdbarch_init): Update.
12889 * h8300-tdep.c (h8300_gdbarch_init): Update.
12890 * frv-tdep.c (frv_gdbarch_init): Update.
12891 * arm-tdep.c (arm_gdbarch_init): Update.
12892 * alpha-tdep.c (alpha_gdbarch_init): Update.
12893
a67af2b9
AC
128942004-01-26 Andrew Cagney <cagney@redhat.com>
12895
12896 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
12897 SYMBOL_LOCATION_FUNCS
12898 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
12899 "struct symbol_ops".
12900 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
12901 type to "struct symbol_ops".
12902 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
12903 (struct symbol): Replace ".aux_value.loc.funcs" and
12904 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
12905 (SYMBOL_OBJFILE): Delete macro.
12906 (SYMBOL_LOCATION_FUNCS): Delete macro.
12907 (SYMBOL_LOCATION_BATON): Update.
12908 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
12909 intead of SYMBOL_LOCATION_FUNCS.
12910 * ax-gdb.c (gen_var_ref): Ditto.
12911 * printcmd.c (address_info): Ditto.
12912 * findvar.c (read_var_value): Ditto.
12913 (symbol_read_needs_frame): Ditto.
12914
c034e007
AC
129152004-01-26 Andrew Cagney <cagney@redhat.com>
12916
12917 * dwarf2read.c (read_func_scope): Document frame-base hack.
12918
bb472c1e
MK
129192004-01-25 Mark Kettenis <kettenis@gnu.org>
12920
12921 * infcmd.c (print_return_value): Plug memory leak; delete
12922 ui_stream object. Rename argument `structure_return' to
12923 `struct_return'.
12924
c8e737d5
MK
129252004-01-25 Mark Kettenis <kettenis@gnu.org>
12926
f941662f
MK
12927 * infcmd.c (print_return_value): Wrap long lines.
12928 (finish_command_continuation, finish_command): Remove unused
12929 variable `funcaddr'. Fix some coding-standards problems.
12930
c558d81a 12931 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
d8d65dd3 12932 SECT_SIZE is large enough, not whether it's exactly the right size.
c558d81a
MK
12933 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
12934 TDEP->fpregset to zero.
12935
bf1e5861 12936 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
c8e737d5
MK
12937 floating-point registers for traditional NetBSD core files.
12938 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
12939 TDEP->sizeof_fpregset here.
12940
4c72d57a
MK
129412004-01-25 Mark Kettenis <kettenis@gnu.org>
12942
566626fa
MK
12943 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
12944 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
12945 function with code split out from
12946 sparc32nbsd_sigcontext_frame_cache.
12947 (sparc32nbsd_sigcontext_frame_cache): Use
12948 sparc32nbsd_sigcontext_saved_regs.
12949 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
12950 OpenBSD.
12951 * sparcobsd-tdep.c: New file.
12952 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
12953 (sparcobsd-tdep.o): New dependency.
12954 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
12955 * config/sparc/obsd.mt: New file.
12956
4c72d57a
MK
12957 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
12958 TDEP->fpregset to be initialized to enable core file register
12959 sets.
12960
7e5e9f88
MK
129612004-01-24 Mark Kettenis <kettenis@gnu.org>
12962
f0f207fd 12963 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
1e067c66
MK
12964 Add opaque declarations.
12965 (sparc64nbsd_sigcontext_saved_regs): New prototype.
12966 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
12967 function with code split out from
12968 sparc64nbsd_sigcontext_frame_cache.
12969 (sparc64nbsd_sigcontext_frame_cache): Use
12970 sparc64nbsd_sigcontext_saved_regs.
12971 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
12972 OpenBSD.
12973 * sparc64obsd-tdep.c: New file.
12974 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
12975 (sparc64obsd-tdep.o): New dependency.
12976 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
12977 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
12978 * config/sparc/obsd64.mt: New file.
12979
690668cc
MK
12980 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
12981 read the instruction at PC.
12982
7e5e9f88
MK
12983 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
12984 value of GDB_OSABI_DEFAULT.
12985 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
12986 instead of GDB_OSABI_NETBSD_AOUT.
12987
68b6dce9
NR
129882004-01-24 Nick Roberts <nick@nick.uklinux.net>
12989
12990 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
12991 copyright.
12992
080ce8c0
AC
129932004-01-23 Andrew Cagney <cagney@redhat.com>
12994
12995 * printcmd.c (display_command): Replace tui_set_display call with
12996 tui_set_layout_for_display_command.
12997 * tui/tui.h (enum tui_win_type): Define.
12998 (tui_set_layout): Delete declaration.
12999 (tui_set_layout_for_display_command): Rename set_tui_layout.
13000 * tui/tui-data.h (enum tui_layout_type): Define.
13001 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
13002 "tui.h".
13003 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
13004 (tui_default_win_height): Rename tuiDefaultWinHeight.
13005 (tui_default_win_viewport_height): Rename
13006 tuiDefaultWinViewportHeight.
13007 (tui_set_layout): RenametuiSetLayout.
13008 * tui/tui-layout.c: Update references.
13009 * tui/tui.c: Update references.
13010 * tui/tui-disasm.c: Update references.
13011
b368761e
DC
130122004-01-23 David Carlton <carlton@kealia.com>
13013
13014 Partial workaround for PR c++/1511:
13015 * cp-namespace.c: Include frame.h.
13016 (cp_lookup_transparent_type): New
13017 (cp_lookup_transparent_type_loop): New.
13018 * cp-support.h: Declare cp_lookup_transparent_type.
13019 * symtab.c (basic_lookup_transparent_type): Renamed from
13020 lookup_transparent_type.
13021 (lookup_transparent_type): Replace old body by a call to
13022 current_language->la_lookup_transparent_type.
13023 * symtab.h: Update copyright. Declare
13024 basic_lookup_transparent_type.
13025 * language.h: Update copyright.
13026 (struct language_defn): Add la_lookup_transparent_type.
13027 * language.c: Update copyright.
13028 (unknown_language_defn): Add basic_lookup_transparent_type.
13029 (auto_language_defn): Add basic_lookup_transparent_type.
13030 (local_language_defn): Add basic_lookup_transparent_type.
13031 * ada-lang.c: Update copyright.
13032 (ada_language_defn): Add basic_lookup_transparent_type.
13033 * c-lang.c: Update copyright.
13034 (c_language_defn): Add basic_lookup_transparent_type.
13035 (cplus_language_defn): Add basic_lookup_transparent_type.
13036 (asm_language_defn): Add basic_lookup_transparent_type.
13037 (minimal_language_defn): Add basic_lookup_transparent_type.
13038 * f-lang.c: Update copyright.
13039 (f_language_defn): Add basic_lookup_transparent_type.
13040 * jv-lang.c: Update copyright.
13041 (java_language_defn): Add basic_lookup_transparent_type.
13042 * m2-lang.c: Update copyright.
13043 (m2_language_defn): Add basic_lookup_transparent_type.
13044 * objc-lang.c: Update copyright.
13045 (objc_language_defn): Add basic_lookup_transparent_type.
13046 * p-lang.c: Update copyright.
13047 (p_language_defn): Add basic_lookup_transparent_type.
13048 * scm-lang.c: Update copyright.
13049 (scm_language_defn): Add basic_lookup_transparent_type.
13050 * Makefile.in (cp-namespace.o): Depend on frame.h.
13051
fdde2d81
DC
130522004-01-23 David Carlton <carlton@kealia.com>
13053
13054 Patch for PR c++/1520:
13055 * dwarf2read.c (read_func_scope): Set processing_current_prefix
13056 properly if we have a specification die.
13057 (determine_prefix_aux): Rename from determine_prefix.
13058 (determine_prefix): Like the old determine_prefix, but never
13059 returns NULL.
13060
5b828b6b
TR
130612004-01-23 Theodore A. Roth <troth@openavr.org>
13062
13063 * avr-tdep.c: Update copyright.
13064 (avr_iaddr_p): Delete unused function.
13065 (avr_saddr_p): Delete unused function.
13066
a1b8c067
DC
130672004-01-23 David Carlton <carlton@kealia.com>
13068
13069 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
13070 Fix for PR symtab/1534.
13071
f2cab569
MK
130722004-01-23 Mark Kettenis <kettenis@gnu.org>
13073
13074 * NEWS (New native configurations): Mention OpenBSD/sparc and
13075 OpenBSD/sparc64.
13076 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
13077 * configure.host: Likewise.
13078 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
13079 handler for OpenBSD.
13080 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
13081
642d8300
MK
130822004-01-22 Mark Kettenis <kettenis@gnu.org>
13083
89aac506
MK
13084 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
13085 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
13086
36662fde
MK
13087 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
13088 * cli/cli-cmds.c (shell_escape): Likewise.
13089
642d8300
MK
13090 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
13091 OpenBSD .note.openbsd.ident sections.
13092
fae299cd
DC
130932004-01-22 David Carlton <carlton@kealia.com>
13094
13095 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
13096 get_scope_pc_bounds.
13097 (read_file_scope): Ditto.
13098 (get_scope_pc_bounds): New function, produced by extracting code
13099 from the above two functions, consolidating it, and adding support
13100 for DW_TAG_namespace.
13101
a49d618c
MK
131022004-01-22 Mark Kettenis <kettenis@gnu.org>
13103
13104 * osabi.c (MAX_NOTESZ): New define.
13105 (check_note): New function.
13106 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
13107 check_note.
13108
fe61caab
RM
131092004-01-21 Roland McGrath <roland@redhat.com>
13110
13111 * MAINTAINERS (write after approval): Add myself.
13112
ec145965
EZ
131132004-01-21 Eli Zaretskii <eliz@gnu.org>
13114
13115 * utils.c (init_page_info): Move declarations of `rows' and
13116 `cols' before the __GO32__-specific code. Move the closing brace
13117 outside the #ifdef __GO32__..#endif block.
13118 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
13119
877522db
PB
131202004-01-21 Paul Brook <paul@codesourcery.com>
13121
13122 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
13123 BPSTAT_WHAT_CHECK_SHLIBS.
13124
dbf5be1c
PB
131252004-01-21 Paul Brook <paul@codesourcery.com>
13126
13127 * MAINTAINERS: Add myself to write-after-approval.
13128
81f08b92
AC
131292004-01-20 Andrew Cagney <cagney@redhat.com>
13130
5a1efed7
AC
13131 * ax-gdb.c (print_axs_value): Delete unused function.
13132 * jv-lang.c (java_lookup_type): Delete unused function.
13133 * cli/cli-dump.c (dump_filetype): Delete unused function.
13134 * remote-mips.c (remote_mips_insert_hw_breakpoint)
13135 (remote_mips_remove_hw_breakpoint): Delete unused functions.
13136 (mips_getstring): Delete unused function.
13137 (pmon_insert_breakpoint): Delete #if0ed function.
13138 (PMON_MAX_BP): Delete #if0ed MACRO.
13139 (mips_pmon_bp_info): Delete #if0ed variable.
13140 (pmon_remove_breakpoint): Delete #if0ed function.
13141 * monitor.c (monitor_write_even_block): Delete unused function.
13142 (monitor_write_memory_block): Delete #if0ed code.
13143 * dink32-rom.c (dink32_load): Delete unused function.
13144 (_initialize_dink32_rom): Delete #if0ed code.
13145 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
13146
b0a30fce
AC
13147 * tui/tui-command.c: Update references.
13148 * tui/tui-io.c: Update references.
13149 * tui/tui-command.h: Update copyright.
13150 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
13151
81f08b92
AC
13152 * source.c (ambiguous_line_spec): Delete never-defined function.
13153 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
13154 * gdbtypes.c (add_name, add_mangled_type): Ditto.
13155 * cli/cli-cmds.c (validate_comname): Ditto.
13156
65f05602
AC
13157 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
13158 "tui-data.h".
13159 (tui_set_disassem_content): Rename tuiSetDisassemContent.
13160 (tui_show_disassem): Rename tuiShowDisassem.
13161 (tui_show_disassem_and_update_source): Rename
13162 tuiVerticalDisassemScroll.
13163 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
13164 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
13165 * tui/tui.h: Update copyright.
13166 (enum tui_status): Define.
13167 * tui/tui-data.h (enum tui_scroll_direction): Define.
13168 * tui/tui-disasm.c: Update copyright. Update references.
13169 * tui/tui-winsource.c: Update copyright. Update references.
13170 * tui/tui-win.c: Update references.
13171 * tui/tui-layout.c: Update references.
13172
6bb0384f
AC
131732004-01-20 Andrew Cagney <cagney@redhat.com>
13174
13175 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
13176 sym2 to start of block.
13177
9175c9a3
MC
131782004-01-19 Michael Chastain <mec.gnu@mindspring.com>
13179
13180 * MAINTAINERS: Delete mmalloc.
13181 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
13182 * NEWS: Mention removal of --with-malloc.
13183 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
13184 * config.in: Regenerate.
13185 * configure: Regenerate.
6bb0384f
AC
13186 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
13187 USE_MMALLOC, MMCHECK_FORCE.
9175c9a3
MC
13188 * gdbinit.in: Remove mmalloc.
13189 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
13190 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
13191 * config/i386/go32.mh: Likewise.
13192 * config/i386/interix.mh: Likewise.
13193 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
13194
4fcef00a
JJ
131952004-01-19 Jeff Johnston <jjohnstn@redhat.com>
13196
13197 * linespec.c (decode_variable, symtab_from_filename): Call
13198 error_silent with error message instead of throwing an exception
13199 directly.
13200 * defs.h (error_silent, error_output_message): Add prototypes.
13201 (catch_exceptions_with_msg): Ditto.
13202 * utils.c (error_silent, error_output_message): New functions.
13203 * top.c (catch_exceptions_with_msg): New function.
13204
8e94b928
NR
132052004-01-20 Nick Roberts <nick@nick.uklinux.net>
13206
13207 * mi/mi-cmds.h (enum print_values): Add definition.
13208
13209 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
13210 type and value for simple data types and just the name and type
13211 for complex ones, if required.
13212
13213 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
13214 children, if required.
13215
a02d6af8
KB
132162004-01-19 Kevin Buettner <kevinb@redhat.com>
13217
13218 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
13219 unused declarations.
13220
78a4a9b9
AC
132212004-01-19 Andrew Cagney <cagney@redhat.com>
13222
13223 * top.h (mapped_symbol_files): Delete declaration.
13224 * main.c (captured_main): Delete option "m" and "mapped".
13225 * objfiles.c (mapped_symbol_files): Delete variable.
13226 * symfile.c (symbol_file_command): Delete mmap code.
13227 (symbol_file_add_with_addrs_or_offsets): Ditto.
13228 (add_symbol_file_command, reread_separate_symbols): Ditto.
13229 * objfiles.h (OBJF_MAPPED): Delete.
13230 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
13231 (free_objfile) [USE_MMALLOC]: Ditto.
13232 (open_existing_mapped_file): Delete function.
13233 (open_mapped_file): Delete function.
13234 (map_to_file): Delete function.
13235
2dbd5e30
KB
132362004-01-19 Kevin Buettner <kevinb@redhat.com>
13237
13238 * infrun.c (step_into_function): Account for possible breakpoint
13239 adjustment when computing ``stop_func_start''.
13240
437b434f
KB
132412004-01-19 Kevin Buettner <kevinb@redhat.com>
13242
13243 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
13244 the region size against the size of a pointer, not the size of
13245 a register as given by DEPRECATED_REGISTER_SIZE.
13246
55fb0713
AC
132472004-01-19 Andrew Cagney <cagney@redhat.com>
13248
13249 * tui/tui-regs.h: Include "tui-data.h".
13250 (tuiFirstRegElementNoInLine): Delete declaration.
13251 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
13252 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
13253 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
13254 (tui_calculate_regs_column_count): Rename
13255 tuiCalculateRegsColumnCount.
13256 (tui_check_register_values): Rename tuiCheckRegisterValues.
13257 (tui_show_registers): Rename tuiShowRegisters.
13258 (tui_display_registers_from_line): Rename
13259 tuiDisplayRegistersFromLine.
13260 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
13261 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
13262 (tui_first_reg_element_no_inline): Rename
13263 tuiFirstRegElementNoInLine.
13264 * tui/tui-data.h: Update copyright.
13265 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
13266 * tui/tui-windata.c: Update copyright, update references.
13267 * tui/tui-regs.c: Update copyright, update references.
13268 * tui/tui-win.c: Update copyright, update references.
13269 * tui/tui-layout.c: Update copyright, update references.
fe61caab 13270
cebe9500
AC
132712004-01-18 Andrew Cagney <cagney@redhat.com>
13272
bcdf1568
AC
13273 * tui/tui-io.c: Update copyright.
13274 (key_is_end_sequence, key_is_backspace): New functions.
13275 (key_is_command_char, key_is_start_sequence): New function.
13276 (tui_getc): Update references.
13277 * tui/tui-io.h: Update copyright.
13278 (m_tuiStartNewLine): Delete macro.
13279 (m_isBackspace, m_isDeleteChar): Delete macros.
13280 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
13281 (m_isNextPage, m_isPrevPage): Delete macros.
13282 (m_isLeftArrow, m_isRightArrow): Delete macros.
13283 (m_isXdbStyleCommandChar): Delete macro.
13284 (key_is_start_sequence): Declare, replace m_isStartSequence.
13285 (key_is_end_sequence): Declare, replace m_isEndSequence.
13286 (key_is_backspace): Declare ,replace m_isBackspace.
13287 (key_is_command_char): Declare, replace m_isCommandChar.
13288 * tui/tui-command.c: Update copyright.
13289 (tuiDispatchCtrlChar): Update references.
13290
130d87e6
AC
13291 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
13292 tuiSourceWin.h.
13293
d7b2e967
AC
13294 * tui/tui-command.c: Rename tui/tuiCommand.c.
13295 * tui/tui-command.h: Rename tui/tuiCommand.h.
13296 * tui/tui-data.c: Rename tui/tuiData.c.
13297 * tui/tui-data.h: Rename tui/tuiData.h.
13298 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
13299 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
13300 * tui/tui-io.c: Rename tui/tuiIO.c.
13301 * tui/tui-io.h: Rename tui/tuiIO.h.
13302 * tui/tui-layout.c: Rename tui/tuiLayout.c.
13303 * tui/tui-layout.h: Rename tui/tuiLayout.h.
13304 * tui/tui-regs.c: Rename tui/tuiRegs.c.
13305 * tui/tui-regs.h: Rename tui/tuiRegs.h.
13306 * tui/tui-source.c: Rename tui/tuiSource.c.
13307 * tui/tui-source.h: Rename tui/tuiSource.h.
13308 * tui/tui-stack.c: Rename tui/tuiStack.c.
13309 * tui/tui-stack.h: Rename tui/tuiStack.h.
13310 * tui/tui-win.c: Rename tui/tuiWin.c.
13311 * tui/tui-win.h: Rename tui/tuiWin.h.
13312 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
13313 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
13314 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
13315 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
13316 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
13317 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
13318 * tui/tui-file.c: Update includes.
13319 * tui/tui-hooks.c: Update includes.
13320 * tui/tui-interp.c: Update includes.
13321 * tui/tui.c: Update includes.
13322 * Makefile.in: Update all tui/ dependencies.
13323 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
13324
b2100910
AC
13325 * Makefile.in: Update copyright. Update dependencies.
13326
cebe9500
AC
13327 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
13328 problem.
13329
c6f0559b
AC
133302004-01-18 Andrew Cagney <cagney@redhat.com>
13331
43e9390b
AC
13332 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
13333 instead of register_gdbarch_init.
13334
c6f0559b
AC
13335 * remote-sds.c (tohex): Delete unused function. Update copyright.
13336 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
13337 * v850-tdep.c (v850_register_virtual_size): Ditto.
13338 * target.c (normal_target_post_startup_inferior): Ditto.
13339 * source.c (ambiguous_line_spec): Ditto.
13340 * remote.c (adapt_remote_get_threadinfo): Ditto.
13341 * mi/mi-out.c (out_field_fmt): Ditto.
13342 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
13343 (output_control_change_notification): Ditto.
13344 * m68k-tdep.c (m68k_register_byte): Ditto.
13345 (m68k_remote_breakpoint_from_pc): Ditto.
13346 * ui-out.c (init_ui_out_state): Delete unused declaration.
13347 * stabsread.c (search_value): Ditto.
13348 * mi/mi-cmd-env.c (env_cli_command): Ditto.
13349 * maint.c (print_section_table): Ditto.
13350 * infrun.c (set_follow_fork_mode_command): Ditto.
13351
a8504492
MK
133522004-01-18 Mark Kettenis <kettenis@gnu.org>
13353
13354 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
13355 DW_CFA_def_cfa_exporession. Add support for
13356 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
13357 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
13358
0bd8997e
AC
133592004-01-18 Andrew Cagney <cagney@redhat.com>
13360
13361 * ocd.c: Update copyright.
13362 (bdm_read_register_command): Delete unused function.
13363 (_initialize_remote_ocd): Delete commented out reference.
13364 (get_quoted_char, reset_packet): Delete #if0ed function.
13365 (output_packet, put_quoted_char): Delete #if0ed function.
13366 (stu_put_packet, stu_get_packet): Delete #if0ed function.
13367 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
13368 (BDM_BREAKPOINT): Delete #if0ed macro.
13369 (remote_timeout): Delete #if0ed variable.
13370
31bb40e4
MK
133712004-01-18 Mark Kettenis <kettenis@gnu.org>
13372
13373 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
13374 (core-sol2.o): Remove dependency.
13375 * core-sol2.c: Remove file.
13376
887432a5
AC
133772004-01-17 Andrew Cagney <cagney@redhat.com>
13378
13379 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
13380 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
13381 enums.
13382
29182b13
DJ
133832004-01-17 Daniel Jacobowitz <drow@mvista.com>
13384
13385 * remote.c: Update copyright years.
13386
2963ee1d
DJ
133872004-01-17 Daniel Jacobowitz <drow@mvista.com>
13388
13389 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
13390
79d45cd4
AC
133912004-01-17 Andrew Cagney <cagney@redhat.com>
13392
ee300cd4
AC
13393 * mdebugread.c: Update copyright.
13394 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
13395 (parse_type, parse_procedure): Ditto.
13396 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
13397
fcacc9c2
AC
13398 * cris-tdep.c (cris_store_struct_return): Put back accidently
13399 deleted function.
13400
79d45cd4
AC
13401 * gdbarch.sh: Update copyright year.
13402 * gdbarch.h, gdbarch.c: Re-generate.
13403
b263358a
DJ
134042004-01-17 Daniel Jacobowitz <drow@mvista.com>
13405
13406 Suggested by George Anzinger.
13407 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
13408 correct stack offset. Include unknown opcode numbers in the error
13409 message.
13410
931aecf5
AC
134112004-01-17 Andrew Cagney <cagney@redhat.com>
13412
13413 * x86-64-tdep.c (x86_64_init_abi): No need to clear
13414 extract_struct_value_address, i386 does not set it.
13415 * sparc64-tdep.c (sparc64_init_abi): Do not set
13416 extract_struct_value_address, never called.
13417 (sparc64_extract_struct_value_address): Delete function.
13418 * m68hc11-tdep.c: Update copyright.
13419 (m68hc11_gdbarch_init): Delete redundant assignment of
13420 extract_struct_value_address.
13421 * i386-tdep.c: Update copyright.
13422 (i386_gdbarch_init): Do not set extract_struct_value_address,
13423 never called.
13424 (i386_extract_struct_value_address): Delete function.
13425 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
13426 extract_struct_value_address, never called.
13427 (sparc32_extract_struct_value_address): #if 0 function. Add
13428 comments explaining its future.
13429
756fe439
DJ
134302004-01-17 Daniel Jacobowitz <drow@mvista.com>
13431
13432 * arm-tdep.c (arm_write_pc): New function.
13433 (arm_gdbarch_init): Call set_gdbarch_write_pc.
13434
e74f0f02
DJ
134352004-01-17 Daniel Jacobowitz <drow@mvista.com>
13436
13437 * breakpoint.c (must_shift_inst_regs): Delete.
13438 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
13439 and SHIFT_INST_REGS.
13440 * infcmd.c (step_1, step_1_continuation): Delete references to
13441 SHIFT_INST_REGS.
13442 * infrun.c (keep_going): Likewise.
13443 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
13444 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
13445
b6cb9035
AC
134462004-01-17 Andrew Cagney <cagney@redhat.com>
13447
444a1e2e
AC
13448 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13449 * gdbarch.h, gdbarch.c: Re-generate.
13450 * infcmd.c (print_return_value): Delete reference to
13451 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
13452
def7e6ed
AC
13453 * cris-tdep.c (cris_gdbarch_init): Do not set
13454 deprecated_extract_struct_value_address.
13455
07be497a
AC
13456 * xstormy16-tdep.c: Update copyright.
13457 (xstormy16_extract_struct_value_address): Update to current
13458 extract struct value address interface.
13459 (xstormy16_gdbarch_init): Set extract_struct_value_address.
13460 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
13461 current extract struct value address interface.
13462 (sh64_gdbarch_init): Set extract_struct_value_address.
13463
6b4d5c91
AC
13464 * cris-tdep.c: Update copyright.
13465 (cris_extract_struct_value_address): Delete function.
13466 (struct_return_address): Delete variable.
13467 (cris_store_struct_return): Do not set struct_return_address.
13468
464e0365
AC
13469 * mcore-tdep.c: Update copyright.
13470 (mcore_extract_struct_value_address): Delete function. Update
13471 comments.
13472 (mcore_gdbarch_init): Update.
13473 * mn10300-tdep.c: Update copyright.
13474 (mn10300_extract_struct_value_address): Delete function.
13475 (mn10300_gdbarch_init): Update.
13476 * v850-tdep.c: Update copyright.
13477 (v850_extract_struct_value_address): Delete.
13478 (v850_gdbarch_init): Update.
13479 * ns32k-tdep.c: Update copyright.
13480 (ns32k_extract_struct_value_address): Delete.
13481 (ns32k_gdbarch_init): Update.
13482 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
13483 (hppa_gdbarch_init): Update.
13484 * vax-tdep.c: Update copyright.
13485 (vax_extract_struct_value_address): Delete.
13486 (vax_gdbarch_init): Update.
13487
afb18d0f
AC
13488 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
13489 * gdbarch.h, gdbarch.c: Re-generate.
13490 * procfs.c (procfs_fetch_registers): Delete reference to
13491 DEPRECATED_NPC_REGNUM.
13492 (procfs_store_registers): Ditto.
13493 * regcache.c (generic_target_write_pc): Simplify.
13494 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
13495
a698f53e
AC
13496 * core-sol2.c (fetch_core_registers): Replace
13497 DEPRECATED_NPC_REGNUM with equivalent tdep value.
13498
adc11376
AC
13499 * hppa-tdep.c: Update copyright year.
13500 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
13501 NPC_REGNUM.
13502 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
13503
b6cb9035
AC
13504 * mips-tdep.c (mips_write_pc): New function.
13505 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
13506 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
13507 (mips_find_saved_regs, mips_software_single_step: Ditto.
13508 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
13509 mips_init_extra_frame_info, mips_pop_frame): Ditto.
13510
6d82d43b
AC
135112004-01-17 Andrew Cagney <cagney@redhat.com>
13512
13513 * mips-tdep.c: Re-indent. Group functions by ABI.
13514
71bd6bd4
AC
135152004-01-17 Andrew Cagney <cagney@redhat.com>
13516
13517 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
13518 * gdbarch.c: Re-generate.
13519 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
13520 DECR_PC_AFTER_BREAK to zero.
13521 * vax-tdep.c (vax_gdbarch_init): Ditto.
13522 * v850-tdep.c (v850_gdbarch_init): Ditto.
13523 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
13524 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
13525 * sh-tdep.c (sh_gdbarch_init): Ditto.
13526 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
13527 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
13528 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
13529 * mips-tdep.c (mips_gdbarch_init): Ditto.
13530 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
13531 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13532 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
13533 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
13534 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
13535 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
13536 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
13537 * frv-tdep.c (frv_gdbarch_init): Ditto.
13538 * cris-tdep.c (cris_gdbarch_init): Ditto.
13539 * avr-tdep.c (avr_gdbarch_init): Ditto.
13540 * arm-tdep.c (arm_gdbarch_init): Ditto.
13541 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
13542
a02abb62
JB
135432004-01-17 J. Brobecker <brobecker@gnat.com>
13544
13545 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
13546 Delete, no longer used.
13547 (read_subrange_type): New function, mostly extracted from
13548 read_array_type().
13549 (read_array_type): Replace extracted code by call to
13550 read_subrange_type().
13551 (dwarf2_get_attr_constant_value): New function.
13552 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
13553 (add_partial_symbol): Likewise.
13554 (process_die): Likewise.
13555 (new_symbol): Likewise.
13556 (read_type_die): Likewise.
13557
cf5b2f1b
AC
135582004-01-16 Andrew Cagney <cagney@redhat.com>
13559
13560 * symfile.c: Update copyright year.
13561 (compare_symbols): Delete unused function.
13562 * stabsread.c: Update copyright year.
13563 (lrs_general_complaint): Delete unused function.
13564 (ref_search_value): Ditto.
13565 (get_substring): Delete declaration.
13566 * sh64-tdep.c: Update copyright year.
13567 (sh64_get_gdb_regnum): Delete unused function.
13568 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
13569 Delete unused function.
13570
d33b9831
MK
135712004-01-17 Mark Kettenis <kettenis@gnu.org>
13572
13573 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
13574 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
13575
7aea86e6
AC
135762004-01-16 Andrew Cagney <cagney@redhat.com>
13577
13578 Changes from Peter Schauer.
13579 * rs6000-tdep.c: Update copyright year.
13580 (rs6000_push_dummy_call): Update the stack pointer before
13581 accessing the corresponding stack region.
13582 * rs6000-nat.c: Update copyright year.
13583 (set_host_arch): Set "info.abfd" to "exec_bfd".
13584
26b0da32
MK
135852004-01-15 Mark Kettenis <kettenis@gnu.org>
13586
13587 * blockframe.c: Update copyright year.
13588 (inside_entry_func): Don't treat a zero PC specially.
13589
86fbe6cc
EZ
135902004-01-14 Elena Zannoni <ezannoni@redhat.com>
13591
13592 * gcore.c (gcore_copy_callback): Use paddr_d to print size
13593 variable.
13594 (gcore_create_callback): Ditto. Skip any memory segment that has
13595 no permissions set.
13596
63d06c5c
DC
135972004-01-14 David Carlton <carlton@kealia.com>
13598
13599 Change symbols for C++ nested types to contain the fully qualified
13600 name, if possible. (At least in the DWARF-2 case.) Partial fix
13601 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
13602 c++/895.
13603 * c-exp.y (qualified_type): Handle types nested within classes.
13604 * cp-namespace.c: Update comments.
13605 (cp_set_block_scope): Delete #if 0.
13606 (cp_lookup_nested_type): Handle types nested within classes.
13607 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
13608 when appropriate.
13609 (add_partial_symbol): Add the name of the enclosing namespace to
13610 types.
13611 (pdi_needs_namespace): New.
13612 (add_partial_namespace): Tweak comment.
13613 (add_partial_structure): New.
13614 (psymtab_to_symtab_1): Initialize processing_current_prefix
13615 here...
13616 (process_die): instead of here.
13617 (read_structure_scope): Try to figure out the name of the class or
13618 namespace that the structure might be defined within.
13619 (read_enumeration): Generate fully-qualified names, if possible.
13620 (read_namespace): Don't set name to NULL.
13621 (die_specification): New.
13622 (new_symbol): Generate fully-qualified names for types.
13623 (read_type_die): Determine appropriate prefix.
13624 (determine_prefix): New.
13625 (typename_concat): New.
13626 (class_name): New.
13627 * valops.c (value_aggregate_elt): Pass NOSIDE to
13628 value_struct_elt_for_reference.
13629 (value_struct_elt_for_reference): Make static, add NOSIDE
13630 parameter, call value_maybe_namespace_elt as a last resort.
13631 (value_namespace_elt): Break out code into
13632 value_maybe_namespace_elt.
13633 (value_maybe_namespace_elt): New.
13634
87783b8b
AC
136352004-01-12 Andrew Cagney <cagney@redhat.com>
13636
13637 * mips-tdep.c (mips_convert_register_p): Handle both raw and
13638 cooked floating-point registers.
13639 (mips_gdbarch_init): Set convert_register_p, register_to_value,
13640 and value_to_register.
13641
6503b91e
AC
136422004-01-13 Andrew Cagney <cagney@redhat.com>
13643
13644 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
13645 * gdbarch.c: Re-generate.
13646 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
13647 FUNCTION_START_OFFSET.
13648 * v850-tdep.c (v850_gdbarch_init): Ditto.
13649 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
13650 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
13651 * sh-tdep.c (sh_gdbarch_init): Ditto.
13652 * s390-tdep.c (s390_gdbarch_init): Ditto.
13653 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
13654 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
13655 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
13656 * mips-tdep.c (mips_gdbarch_init): Ditto.
13657 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
13658 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
13659 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13660 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
13661 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
13662 * i386-tdep.c (i386_gdbarch_init): Ditto.
13663 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
13664 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
13665 * frv-tdep.c (frv_gdbarch_init): Ditto.
13666 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
13667 * cris-tdep.c (cris_gdbarch_init): Ditto.
13668 * avr-tdep.c (avr_gdbarch_init): Ditto.
13669 * arm-tdep.c (arm_gdbarch_init): Ditto.
13670 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
13671
ea1dd7bc
DJ
136722004-01-13 Daniel Jacobowitz <drow@mvista.com>
13673
13674 * infrun.c (follow_fork_mode_ask): Remove.
13675 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
13676 (follow_fork): Simplify and remove internal error for
13677 follow_fork_mode_ask.
13678 (_initialize_infrun): Update "set follow-fork-mode" help text.
13679
0f0cffd2
AC
136802004-01-13 Andrew Cagney <cagney@redhat.com>
13681
13682 * configure.in: Update copyright year.
13683 (build_warnings): Add -Wunused-label.
13684 * configure: Re-generate.
13685
de38af99
AC
136862004-01-12 Andrew Cagney <cagney@redhat.com>
13687
954a7fba
AC
13688 * exec.h (exec_ops): Make "extern".
13689
de38af99
AC
13690 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
13691 the function is void.
13692 (mips_pseudo_register_write): Ditto.
13693
1a111ce3
AC
136942004-01-12 Andrew Cagney <cagney@redhat.com>
13695
13696 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
13697 call. Never defined.
13698 * sparc-tdep.h (struct frame_info): Add opaque declaration.
13699 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
13700 (struct sparc_gregset, struct regcache): Ditto.
13701 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
13702
48efe704
AC
137032004-01-12 Andrew Cagney <cagney@redhat.com>
13704
13705 * mi/ChangeLog: Delete file. Renamed to ...
13706 * mi/ChangeLog-1999-2003: New file.
13707 * tui/ChangeLog: Delete file. Renamed to ...
13708 * tui/ChangeLog-1998-2003: New file.
fe61caab 13709
a54124c5
MK
137102004-01-11 Mark Kettenis <kettenis@gnu.org>
13711
2ca62865
MK
13712 * sparc64nbsd-tdep.c: Include "regset.h".
13713 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
13714 Remove variables.
13715 (fetch_core_registers): Remove function.
13716 (sparc64nbsd_core_fns): Remove variable.
13717 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
13718 functions.
13719 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
13720 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
13721 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
13722
ca9d58e9
MK
13723 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
13724 sparc_extract_struct_value_address.
13725 (sparc32_gdbarch_init): Set extract_struct_value_address.
13726 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
13727 function.
13728 (sparc64_init_abi): Set extract_struct_value_address. Don't set
13729 return_value_on_stack.
13730
3cc87ec0
MK
13731 * NEWS: Mention that %cs and %ss have been added to the AMD64
13732 configurations
13733
5bf00f29
MK
13734 * frame.c: Update copyright year.
13735 (get_prev_frame): Improve comment.
13736
4f7ec84e
MK
13737 * sparc64fbsd-tdep.c: Include "regset.h".
13738 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
13739 Remove variables.
13740 (fetch_core_registers): Remove function.
13741 (sparc64fbsd_core_fns): Remove variable.
13742 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
13743 functions.
13744 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
13745 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
46b58ce9 13746 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
4f7ec84e 13747
4e7b0cd3
MK
13748 * sparcnbsd-tdep.c: Include "regset.h".
13749 (fetch_core_registers): Remove function.
13750 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
13751 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
13752 functions.
13753 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
13754 TDEP->fpregset.
46b58ce9 13755 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
4e7b0cd3 13756
a54124c5
MK
13757 * sparc-tdep.h (struct regset): Provide opaque declaration.
13758 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
13759 fpregset and sizeof_fpregset members.
13760 * sparc-tdep.c (struct regset): Provide opaque declaration.
13761 (sparc_regset_from_core_section): New function.
13762 (sparc32_gdbarch_init): Initialize TDEP->gregset,
13763 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
13764 Set regset_from_core_section when appropriate.
13765
29ff87c5
MK
137662004-01-10 Mark Kettenis <kettenis@gnu.org>
13767
79b1ab3d
MK
13768 * x86-64-tdep.c (amd64_non_pod_p): New function.
13769 (amd64_classify_aggregate): Return class memory for non-POD
13770 C++ structure types.
13771
6470d250
MK
13772 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
13773 argument. Use it to reserve a register if necessary.
13774 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
13775 amd64_push_arguments.
13776
562c50c2
MK
13777 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
13778
af233647
MK
13779 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
13780 register numbers in comments.
13781 * x86-64-tdep.h: Update copyright year.
13782 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
13783 Adjust for addition of %cs and %ss.
13784 * amd64fbsd-nat.c: Update copyright year.
13785 (reg_offset): Add register offsets for %cs and %ss.
13786 * amd64fbsd-tdep.c: Update copyright year.
13787 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
13788 (amd64fbsd_sc_reg_offset): Likewise.
13789 * x86-64-linux-nat.c: Update copyright year.
13790 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
13791 and %ss.
13792 * amd64nbsd-nat.c: Update copyright year.
13793 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
13794 * amd64nbsd-tdep.c: Update copyright year.
13795 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
13796 * x86-64-linux-tdep.c: Update copyright year.
13797 (user_to_gdb_regmap): Add mapping for %cs and %ss.
13798 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
13799 * regformats/reg-x86-64.dat: Add %cs and %ss.
13800
29ff87c5
MK
13801 * blockframe.c (inside_entry_func): Reformat. Introduce new local
13802 variables to prevent long lines. Update comments to reflect
13803 reality.
13804
38d518c9
EZ
138052004-01-09 David Carlton <carlton@kealia.com>
13806
13807 Checked in by Elena Zannoni <ezannoni@redhat.com>.
13808 * dwarf2read.c (read_namespace): Pull out name-generating code
13809 into namespace_name. Rename previous_namespace to previous_prefix
13810 and processing_current_namespace to processing_current_prefix..
13811 (namespace_name): New function.
13812 (add_partial_symbol): Substitute uses of pdi->name with
13813 actual_name.
13814 * cp-support.h: Rename processing_current_namespace to
13815 processing_current_prefix.
13816 Update copyright year.
13817 * cp-namespace.c: Rename processing_current_namespace to
13818 processing_current_prefix.
13819 Update copyright year.
fe61caab 13820
1e4728e7
AC
138212004-01-09 Andrew Cagney <cagney@redhat.com>
13822
13823 * jv-valprint.c, ser-unix.c: Add missing copyright years.
13824
c77c642a
MK
138252004-01-09 Mark Kettenis <kettenis@gnu.org>
13826
13827 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
13828 complaining.
13829 (process_one_symbol): Deal with N_PATCH stabs.
13830
b44e9041
EZ
138312004-01-09 Elena Zannoni <ezannoni@redhat.com>
13832
13833 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
13834 ifdeffed code.
13835 Update copyright year.
38d518c9 13836
eccfb640
MC
138372004-01-08 Michael Chastain <mec.gnu@mindspring.com>
13838
13839 * config/pa/tm-hppa.h: Update extern declarations for
13840 hppa32_hpux_frame_saved_pc_in_sigtramp,
13841 hppa32_hpux_frame_base_before_sigtramp, and
13842 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
13843
848c5feb
MC
138442004-01-08 Michael Chastain <mec.gnu@mindspring.com>
13845
13846 * config/pa/tm-hppah.h: Update copyright years.
13847
3cc5d663
AC
138482004-01-08 Andrew Cagney <cagney@redhat.com>
13849
13850 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
13851 (mips_o32_reg_struct_has_addr): Delete function.
13852 (mips_gdbarch_init): Update.
13853 (mips_extract_struct_value_address): Delete function.
13854
bfec0b41
JJ
138552004-01-08 David Mosberger <davidm@hpl.hp.com>
13856
13857 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
13858 reality.
13859
16e109ca
AC
138602004-01-07 Andrew Cagney <cagney@redhat.com>
13861
6214a8a1
AC
13862 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
13863 architecture's elf flags (when available).
13864
8d5838b5
AC
13865 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
13866 FPU to the start, check the MIPS FPU when looking for an old
13867 architecture.
13868 (set_mipsfpu_single_command): Update the architecture.
13869 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
13870
480d3dd2
AC
13871 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
13872 (mips_mask_address_p): Add "tdep" parameter.
13873 (show_mask_address, mips_addr_bits_remove): Update.
13874 (mips_dump_tdep): Update.
13875 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
13876 (MIPS_STACK_ARGSIZE): Delete macro.
13877 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
13878 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
13879 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
13880 (mips_dump_tdep): Update.
13881 (MIPS_SAVED_REGSIZE): Delete macro.
13882 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
13883 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
13884 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
13885 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
13886 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
13887 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
13888 (mips_pop_frame, return_value_location): Update.
13889 (mips_n32n64_return_value, mips_dump_tdep): Update.
13890
ec03c1ac
AC
13891 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
13892 MIPS ABI.
13893
16e109ca
AC
13894 * mips-tdep.c: Update copyright.
13895 (mips_gdbarch_init): Merge two code blocks handling the register
13896 name and number layout.
13897
15255275
MS
138982004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
13899
13900 * tracepoint.c (validate_actionline): Fix segv at EOF
13901
9f9057da
MC
139022004-01-07 Michael Chastain <mec.gnu@mindspring.com>
13903
13904 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
13905 properly for static fields.
13906
0127c0d3 139072004-01-06 Jeff Johnston <jjohnstn@redhat.com>
91562f53 13908 Jason Molenda <jmolenda@apple.com>
0127c0d3
JJ
13909
13910 * disasm.c: Update copyright to include 2004.
13911 (do_mixed_source_and_assembly): For uiout asm list
13912 and tuple cleanups, initialize to null_cleanup instead of
fe61caab 13913 NULL and do so prior to loop. Only reset when we close off
0127c0d3 13914 the tuple/list. Move check for whether to close off the
fe61caab 13915 asm tuple/list to after dump_insns call where it will be run
0127c0d3
JJ
13916 on each loop iteration.
13917
5269965e
AC
139182004-01-05 Andrew Cagney <cagney@redhat.com>
13919
54f1137d
AC
13920 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
13921 should be a switch case and not a label.
13922 * mips-tdep.c (mips32_next_pc): Delete unused labels
13923 "greater_equal_branch" and "less_zero_branch".
13924 * jv-valprint.c (java_print_value_fields): Delete unused label
13925 "flush_it".
13926
5269965e
AC
13927 * target.c (unpush_target): Only close a target that is in the
13928 target stack.
13929
dbc22fa1
MK
139302004-01-05 Mark Kettenis <kettenis@gnu.org>
13931
9515395e
MK
13932 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
13933 address from [sp + 64] instead of %o2.
13934
dbc22fa1
MK
13935 * frame.c (get_prev_frame): Don't try to unwind the PC. This
13936 fixes PR backtrace/1476.
13937
5439edaa
AC
139382004-01-05 Andrew Cagney <cagney@redhat.com>
13939
13940 * libunwind-frame.h (struct frame_id): Add opaque declaration,
13941 move to start of file.
13942 * i386-tdep.h (struct regcache): Add opaque declaration.
13943 * config/ia64/nm-linux.h (struct target_ops): Add opaque
13944 declaration.
13945 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
13946 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
13947 * win32-nat.c (fake_create_process): Use ISO C style definition.
13948 * stabsread.c (define_symbol): Delete #ifndef
13949 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
13950 stabs_argument_has_addr call, macro never defined.
13951
19061abe
MC
139522004-01-04 Michael Chastain <mec.gnu@mindspring.com>
13953
13954 * op50-rom.c: Delete.
13955 * w89k-rom.c: Delete.
13956 * Makefile.in: Remove references.
13957
e53bef9f
MK
139582004-01-04 Mark Kettenis <kettenis@gnu.org>
13959
13960 * x86-64-tdep.c: Update copyright year.
13961 (struct amd64_register_info): Rename from x86_64_register_info.
13962 (amd64_register_info): Rename from x86_64_register_info.
13963 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
13964 (amd64_register_name): Rename from x86_64_register_name.
13965 (amd64_register_type): Rename from x86_64_register_type.
13966 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
13967 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
13968 (amd64_dwarf_reg_to_regnum): Rename from
13969 x86_64_dwarf_reg_to_regnum.
13970 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
13971 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
13972 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
13973 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
13974 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
13975 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
13976 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
13977 (amd64_frame_cache): Rename from x86_64_frame_cache.
13978 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
13979 (amd64_frame_prev_register): Rename from
13980 x86_64_frame_prev_register.
13981 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
13982 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
13983 (amd64_sigtramp_frame_cache): Rename from
13984 x86_64_sigtramp_frame_cache.
13985 (amd64_sigtramp_frame_prev_register): Rename from
13986 x86_64_sigtramp_frame_prev_register.
13987 (amd64_sigtramp_frame_unwind): Rename from
13988 x86_64_sigtramp_frame_unwind.
13989 (amd64_sigtramp_frame_sniffer): Rename from
13990 x86_64_sigtramp_frame_sniffer.
13991 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
13992 (amd64_frame_base): Rename from x86_64_frame_base.
13993 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
13994 (amd64_frame_align): Rename from x86_64_frame_align.
13995 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
13996 (amd64_regset_from_core_section): Rename from
13997 x86_64_regset_from_core_section.
13998 (x86_64_init_abi): Update comments.
13999
fca6aa58
NR
140002004-01-04 Nick Roberts <nick@nick.uklinux.net>
14001
14002 * MAINTAINERS (write after approval): Add myself.
14003
8ada74e3
MK
140042004-01-04 Mark Kettenis <kettenis@gnu.org>
14005
14006 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
14007 `float' arguments.
14008
5154b0cd
MK
140092004-01-04 Mark Kettenis <kettenis@gnu.org>
14010
14011 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
14012 such that it mentions a specific version of GCC that exhibits this
14013 bug.
14014
fb316966
MK
140152004-01-03 Mark Kettenis <kettenis@gnu.org>
14016
200cc553
MK
14017 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
14018 structure that has a single `float' member, store it in %f1 in
14019 addition to %f0.
14020
e226a4a0
MK
14021 * sparc-sol2-nat.c: Add missing '\'.
14022
b9d4c5ed
MK
14023 * sparc-tdep.c (sparc32_return_value): New function.
14024 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
14025 Remove functions.
14026 (sparc32_gdbarch_init): Set return_value, don't set
14027 extract_return_value, store_return_value, use_struct_convention
14028 and return_value_on_stack.
14029
fb316966
MK
14030 * sparc-sol2-nat.c: Add missing ')'.
14031
1af510a8
JB
140322004-01-03 J. Brobecker <brobecker@gnat.com>
14033
14034 * infrun.c (handle_step_into_function): New function.
14035 (handle_inferior_event): Extract out some code into the new
14036 function above.
14037
5cf4d23a
JB
140382004-01-03 J. Brobecker <brobecker@gnat.com>
14039
14040 * infrun.c (handle_inferior_event): Move the declaration of
14041 real_stop_pc inside the if blocks where it is used.
14042
60af1db2
MK
140432004-01-03 Mark Kettenis <kettenis@gnu.org>
14044
14045 * sparc64-tdep.c (sparc64_16_byte_align_p)
14046 (sparc64_store_floating_fields, sparc64_store_floating_fields):
14047 Use check_typedef to get subtypes of structures and unions.
14048 (sparc64_store_return_value): Fix calculation of the appropriate
14049 offset into VALBUF when storing a structure or union.
14050 (sparc64_return_value): New function.
14051 (sparc64_use_struct_convention): Remove function.
14052 (sparc64_init_abi): Set return_value, don't set
14053 extract_return_value, store_return_value and
14054 use_struct_convention.
14055
1a901d3f
EZ
140562004-01-03 Eli Zaretskii <eliz@elta.co.il>
14057
14058 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
14059 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
14060 gdb/config/alpha/xm-alphaosf.h,
14061 gdb/config/powerpc/tm-ppcle-eabi.h,
14062 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
14063 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
14064 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
14065 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
14066 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
14067 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
14068 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
14069 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
14070 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
14071 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
14072 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
14073 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
14074 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
14075 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
14076 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
14077 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
14078 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
14079 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
14080 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
14081 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
14082 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
14083 Remove lines for .cvsignore files.
14084
ef52e463
JB
140852004-01-03 J. Brobecker <brobecker@gnat.com>
14086
14087 * infrun.c: Back out the previous change.
14088
cb1bf9dc
MK
140892004-01-03 Mark Kettenis <kettenis@gnu.org>
14090
f0424ef6
MK
14091 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
14092 sparc-*-sunos4* to the list of REMOVED configurations.
14093
cb1bf9dc
MK
14094 * configure.tgt: Add back sparc-*-vxworks*.
14095 * remote-vxsparc.c: Remove all includes except for "defs.h",
14096 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
14097 Include "sparc-tdep.h".
14098 (SPARC_R_G1): New define.
14099 (vxsparc_gregset): New variable.
14100 (ext_format_sparc): Remove extern declaration.
14101 (vx_read_register): Rewrite to use sparc32_supply_gregset and
14102 sparc32_supply_fpregset.
14103 (vx_write_register): Rewrite to use sparc32_collect_gregset,
14104 sparc_collect_rwindow and sparc32_collect_fpregset.
14105 * config/sparc/tm-vxworks.h: New file, based on recently removed
14106 tm-vxsparc.h.
14107 * config/sparc/vxworks.mt: New file, based on recently removed
14108 vxworks.mt.
fe61caab 14109
5e938f9f
JB
141102004-01-03 J. Brobecker <brobecker@gnat.com>
14111
14112 * infrun.c (handle_step_into_function): New function.
14113 (handle_inferior_event): Extract out some code into the new
14114 function above.
14115
386c036b
MK
141162004-01-02 Mark Kettenis <kettenis@gnu.org>
14117
14118 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
14119 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
14120 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
14121 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
14122 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
14123 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
14124 (sparc_nat_h): New variable.
14125 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
14126 (tm-sun4os4.h): Remove dependency.
14127 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
14128 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
14129 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
14130 sparc-tdep.o): Update dependencies.
14131 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
14132 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
14133 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
14134 dependencies.
14135 * configure.host: Remove existing sparc-*-lynxos*,
14136 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
14137 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
14138 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
14139 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
14140 triplets.
14141 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
14142 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
14143 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
14144 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
14145 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
14146 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
14147 sparc64-*-solaris2* and sparc64-*-* triplets.
14148 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
14149 "symtab.h" and "objfiles.h".
14150 (BIAS): Remove define.
14151 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
14152 (X_DISP19): Remove macros.
14153 (sparc_fetch_instruction): Remove function.
14154 (struct gdbarch_tdep): Remove definition.
14155 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
14156 (sparc_breakpoint_from_pc): Remove function.
14157 (struct sparc64_frame_cache): Remove definition.
14158 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
14159 sparc64_unwind_pc): Remove functions.
14160 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
14161 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
14162 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
14163 (sparc64_frame_cache): Change return type to `struct
14164 sparc_frame_cache *'. Simply call sparc_frame_cache.
14165 (sparc64_frame_this_id, sparc64_frame_prev_register,
14166 sparc64_frame_base_address): Use `struct sparc_frame_cache'
14167 instead of `struct sparc64_frame_cache.
14168 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
14169 sparc_analyze_control_transfer, sparc_software_single_step,
14170 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
14171 _initialize_sparc64_tdep): Remove functions.
14172 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
14173 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
14174 macros.
14175 (sparc64_supply_gregset, sparc64_collect_gregset,
14176 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
14177 (sparc64_init_abi): New function.
14178 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
14179 inclusion guard. Include "sparc-tdep.h".
14180 (BIAS): Define.
14181 (r_tstate_offset, r_fprs_offset): New defines.
14182 (enum sparc_regnum): Remove defenition.
14183 (enum sparc64_regnum): Reformat.
14184 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
14185 (sparc64_init_abi, sparc64_supply_gregset,
14186 sparc64_collect_gregset, sparc64_supply_fpregset,
14187 sparc64_collect_fpregset): New prototypes.
14188 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
14189 Add extern declarations.
14190 (sparc64_sol2_init_abi): New prototype.
14191 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
14192 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
14193 prototypes.
14194 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
14195 "sparnbsd-nat.h".
14196 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
14197 functions.
14198 (_initialize_sparc64fbsd_nat): Remove initialization of
14199 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
14200 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
fe61caab 14201 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
386c036b
MK
14202 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
14203 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
14204 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
14205 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
14206 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
14207 (sparc64fbsd_r_y_offset): Remove variables.
14208 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
14209 Make static and const.
14210 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
14211 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
14212 functions.
14213 (sparc64fbsd_gregset): New variable.
14214 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
14215 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
14216 and sparc64_supply_fpregset.
14217 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
14218 (sparc64fbsd_sigtramp_frame_this_id)
14219 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
14220 (sparc64fbsd_sigtramp_frame_unwind): New variable.
14221 (sparc64fbsd_sigtramp_frame_sniffer): New function.
14222 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
14223 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
14224 * sparcnbsd-tdep.c: Update copyright year. Include
14225 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
14226 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
14227 "value.h" and "sparcnbsd-tdep.h".
14228 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
14229 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
14230 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
14231 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
14232 defines.
14233 (sparcnbsd_gregset): New variable.
14234 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
14235 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
14236 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
14237 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
14238 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
14239 variables.
14240 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
14241 (sparc32nbsd_sigcontext_frame_this_id)
14242 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
14243 (sparc32nbsd_sigcontext_frame_unwind): New variable.
14244 (sparc32nbsd_sigtramp_frame_sniffer): New function.
14245 (sparcnbsd_get_longjmp_target_32,
14246 sparcnbsd_get_longjmp_target_64): Remove functions.
14247 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
14248 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
14249 sparcnbsd_init_elf): Remove.
14250 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
14251 (sparcnbsd_elf_init_abi): New functions.
14252 (_initialize_sparcnbsd_tdep): New prototype.
14253 (_initialize_sparnbsd_tdep): Update.
14254 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
14255 corelow.o. Add sparc64-nat.o and sparc-nat.o.
14256 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
14257 * config/sparc/linux.mh: Update comment.
14258 (XM_FILE, HOST_IPC): Remove variables.
14259 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
14260 sparc-linux-nat.o.
14261 * config/sparc/linux.mt: Update comment.
14262 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
14263 * config/sparc/nbsd.mt: Reformat.
14264 * config/sparc/nbsd64.mh: Update comment.
14265 (NATDEPFILES): Add sparc-nat.o.
14266 * config/sparc/nbsd64.mt: Update comment.
14267 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
14268 (TM_FILE): Set to tm-nbsd.h.
14269 * config/sparc/nbsdelf.mh: Update comment.
14270 (NATDEPFILES): Add sparc-nat.o.
14271 (XM_FILE): Delete.
14272 * config/sparc/nbsdaout.mh: Update comment.
14273 (NATDEPFILES): Add sparc-nat.o
14274 (XM_FILE): Delete.
14275 * config/sparc/nm-linux.h: Update copyright year. Don't include
14276 "config/nm-svr4.h" and "solib.h". Add protection against multiple
14277 inclusion.
14278 (KERNEL_U_SIZE): Remove define.
14279 (kernel_u_size): Remove prototype.
14280 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
14281 * config/sparc/nm-nbsd.h: Update copyright. Don't include
14282 "regcache.h".
14283 (CHILD_PREPARE_TO_STORE): Remove define.
14284 * config/sparc/nm-nbsdaout.h: Tweak some comments.
14285 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
14286 sparcnbsd-nat.c: Rewrite files.
14287 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
14288 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
14289 sparcnbsd-tdep.h: Remove files.
14290 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
14291 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
14292 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
14293 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
14294 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
14295 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
14296 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
14297 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
14298 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
14299 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
14300 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
14301 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
14302 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
14303 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
14304 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
14305 * config/sparc/linux64.mh, config/sparc/linux64.mt,
14306 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
14307 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
14308 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
14309
ee84457a
AC
143102004-01-02 Andrew Cagney <cagney@redhat.com>
14311
14312 From 2003-12-18 Kazuhiro Inaoka:
14313 * configure.host: Add m32r-linux target.
14314
0bc2134e
MC
143152004-01-02 Michael Chastain <mec.gnu@mindspring.com>
14316
14317 * top.c (print_gdb_version): Update year to 2004.
14318
89a72f9c
MM
143192004-01-02 Mark Mitchell <mark@codesourcery.com>
14320
14321 * MAINTAINERS: Add myself to the write-after-approval category.
14322
86b013ed
DJ
143232004-01-02 Daniel Jacobowitz <drow@mvista.com>
14324
14325 From Bernardo Innocenti <bernie@develer.com>:
14326 * configure.tgt: Add uClinux target.
14327
e42c9534
AC
143282004-01-02 Andrew Cagney <cagney@redhat.com>
14329
14330 * utils.c (do_my_cleanups): Make static, add forward declaration.
14331 * defs.h (do_my_cleanups): Delete declaration.
14332
162467d3
EZ
143332004-01-02 Eli Zaretskii <eliz@elta.co.il>
14334
14335 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
14336 bfd/ChangeLog-0203.
14337
78434e59
MK
143382004-01-02 Mark Kettenis <kettenis@gnu.org>
14339
14340 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
14341 in <machine/reg.h>.
14342 * configure, config.in: Regenerate.
14343
48efe704
AC
14344For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
14345tui/ChangeLog-1998-2003.
c906108c
SS
14346\f
14347Local Variables:
14348mode: change-log
14349left-margin: 8
14350fill-column: 74
14351version-control: never
14352End:
This page took 1.300447 seconds and 4 git commands to generate.