4161b414498862a1ff7ac6fcedb1ed97630a094e
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2004-11-13 Andrew Cagney <cagney@gnu.org>
2
3 * config/tm-lynx.h: Delete, inline contents ...
4 * config/rs6000/tm-rs6000ly.h: ... here.
5
6 * config/tm-sysv4.h: Delete file, inlining contents.
7 * config/ia64/tm-aix.h (SKIP_TRAMPOLINE_CODE): Define.
8 * config/tm-linux.h (SKIP_TRAMPOLINE_CODE): Define.
9 * config/tm-nto.h (SKIP_TRAMPOLINE_CODE): Define.
10
11 * regcache.h (deprecated_register_valid): Delete.
12 (deprecated_registers): Delete.
13 * regcache.c (deprecated_register_valid): Delete.
14 (deprecated_registers): Delete.
15 (deprecated_read_register_byte, _initialize_regcache)
16 (deprecated_write_register_bytes, build_regcache): Update.
17 * config/powerpc/ppc-sim.mt (TDEPFILES): Remove ppc-bdm.o and
18 remote-sds.o.
19 * config/powerpc/ppc-eabi.mt (TDEPFILES): Ditto.
20 * config/mips/embed.mt (TDEPFILES): Remove remote-mips.o.
21
22 * NEWS: List h8300*-*-*, mcore-*-*, mn10300-*-*, ns32k-*-*, and
23 v850-*-* under removed.
24 * configure.host: Delete ns32k-*-netbsd*.
25 * configure.tgt: Delete h8300-*-*, mcore*-*-*, mn10300-*-*,
26 ns32k-*-netbsd*, and v850*-*-*.
27 * MAINTAINERS: Mark h8300, mcore, mn10300, ns32k, v850 as
28 "Deleted"
29 * config/h8300/tm-h8300.h, config/h8300/h8300.mt: Delete.
30 * h8300-tdep.c, config/mcore/mcore.mt, mcore-rom.c: Delete.
31 * mcore-tdep.c, config/mn10300/mn10300.mt: Delete.
32 * mn10300-tdep.c, config/ns32k/nbsdaout.mh: Delete.
33 * config/ns32k/nbsdaout.mt, config/ns32k/nm-nbsd.h: Delete.
34 * config/ns32k/nm-nbsdaout.h, config/ns32k/tm-ns32k.h: Delete.
35 * ns32knbsd-nat.c, ns32knbsd-tdep.c, ns32k-tdep.c: Delete.
36 * ns32k-tdep.h, config/v850/v850.mt, v850ice.c: Delete.
37 * v850-tdep.c: Delete.
38
39 2004-11-13 Joel Brobecker <brobecker@gnat.com>
40
41 * irix5-nat.c (fetch_core_registers): Replace use of
42 deprecated_registers by equivalent code.
43
44 2004-11-13 Joel Brobecker <brobecker@gnat.com>
45
46 * irix5-nat.c (fill_gregset): Replace use of deprecated_registers
47 with equivalent code.
48 (fill_fpregset): Likewise.
49
50 2004-11-13 Andrew Cagney <cagney@gnu.org>
51
52 * MAINTAINERS: Do not list "Deleted" architectures.
53
54 * configure.tgt: Delete i[34567]86-*-vxworks*, m68*-netx-*,
55 m68*-*-vxworks*, mips*-*-vxworks*, powerpc-*-vxworks*, and
56 sparc-*-vxworks*.
57 * NEWS: Mention that vxworks was deleted.
58 * config/m68k/tm-vx68.h, config/mips/tm-vxmips.h: Delete.
59 * config/powerpc/tm-vxworks.h, config/tm-vxworks.h: Delete.
60 * config/i386/vxworks.mt, config/m68k/vxworks68.mt: Delete.
61 * config/mips/vxmips.mt, config/powerpc/vxworks.mt: Delete.
62 * config/sparc/vxworks.mt, vx-share/dbgRpcLib.h: Delete.
63 * vx-share/ptrace.h, vx-share/regPacket.h: Delete.
64 * vx-share/vxTypes.h, vx-share/vxWorks.h: Delete.
65 * vx-share/wait.h, vx-share/xdr_ld.c: Delete.
66 * vx-share/xdr_ld.h, vx-share/xdr_ptrace.c: Delete.
67 * vx-share/xdr_ptrace.h, vx-share/xdr_rdb.c: Delete.
68 * vx-share/xdr_rdb.h, remote-vxsparc.c: Delete.
69 * remote-vxmips.c, remote-vx.c: Delete.
70 * remote-vx68.c: Delete.
71 * config/m68k/tm-os68k.h: Remove reference to VxWorks.
72 * config/m68k/os68k.mt, ada-lang.h: Ditto.
73 * Makefile.in (HFILES_NO_SRCDIR, ALLDEPFILES, remote-vx68.o)
74 (remote-vx.o, remote-vxmips.o, remote-vxsparc.o): Delete vx files.
75
76 2004-11-13 Eli Zaretskii <eliz@gnu.org>
77
78 * config/i386/xm-go32.h: Don't include fopen-bin.h.
79 Don't define CRLF_SOURCE_FILES and DIRNAME_SEPARATOR.
80
81 * source.c (OPEN_MODE, FDOPEN_MODE): Remove the definitions in the
82 branch that doesn't define CRLF_SOURCE_FILES; always use
83 binary-mode open.
84 (print_source_lines_base, forward_search_command)
85 (reverse_search_command): Enable the code that accepts DOS-style
86 CRLF line endings on all platforms (this removes the need for
87 CRLF_SOURCE_FILES).
88
89 * defs.h: Fix wording of the comment before FOPEN_RB.
90 (DIRNAME_SEPARATOR) [__MSDOS__]: Define to ';'.
91
92 * config/djgpp/fnchange.lst: Group renames for opcode directory
93 together.
94
95 * config/djgpp/djconfig.sh: Replace file names that don't exist
96 anymore with existing files, for checking the unpacked
97 distribution.
98
99 * config/djgpp/config.sed (am_cv_exeext, lt_cv_sys_max_cmd_len):
100 Export pre-cooked values in configure-* targets that begin with
101 "@test -f stage_last".
102
103 2004-11-12 Andrew Cagney <cagney@gnu.org>
104
105 * defs.h (enum lval_type): Delete lval_reg_frame_relative.
106 * value.h (struct value): Update comment.
107 * valops.c (value_assign): Fold lval_reg_fame_relative into
108 lval_register.
109 * findvar.c (value_from_register, locate_var_value): Ditto.
110
111 2004-11-12 Randolph Chung <tausq@debian.org>
112
113 * config/tm/tm-hppa.h (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
114 * parse.c (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
115 (write_exp_msymbol): Remove conditional check for symbols starting
116 with $. Update comments.
117
118 2004-11-12 Randolph Chung <tausq@debian.org>
119
120 * pa64solib.c (pa64_solib_thread_start_addr): Rename from
121 so_lib_thread_start_addr.
122 * pa64solib.h (so_list): Forward declare.
123 (pa64_solib_thread_start_addr): Prototype.
124 * somsolib.c (SHL_LOAD, SHL_UNLOAD): Define if not already defined.
125 (no_shared_libraries): Remove.
126 (som_solib_thread_start_addr): Rename from so_lib_thread_start_addr.
127 * somsolib.h (som_solib_thread_start_addr): Likewise; prototype.
128 * hpread.c (hpread_process_one_debug_symbol): Use either the som or
129 the elf solib handler to find the start address.
130
131 * config/pa/hppahpux.mh (NATDEPFILES): Move target-specific support
132 files to the target makefile.
133 * config/pa/hpux1020.mh (NATDEPFILES): Likewise.
134 * config/pa/hpux11.mh (NATDEPFILES): Likewise.
135 * config/pa/hpux11w.mh (NATDEPFILES): Likewise.
136
137 * config/pa/hppa64.mt (TDEPFILES): Put target-specific support
138 files for symbol reading and shared library handling here.
139 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
140 (PA_SOM_ONLY): Define so we can build a 32-bit SOM only target
141 without bringing in 64-bit support.
142
143 2004-11-12 Andrew Cagney <cagney@gnu.org>
144
145 * sparc-tdep.c: Replace VALUE_TYPE with value_type.
146 * v850-tdep.c, sparc64-tdep.c, sh-tdep.c: Ditto.
147 * sh64-tdep.c, s390-tdep.c, mcore-tdep.c: Ditto.
148 * h8300-tdep.c, arm-linux-tdep.c, amd64-tdep.c: Ditto.
149 * hppa-tdep.c, mips-tdep.c, m88k-tdep.c: Ditto.
150 * m68hc11-tdep.c, m32r-tdep.c, ia64-tdep.c: Ditto.
151 * frv-tdep.c, cris-tdep.c, avr-tdep.c, alpha-tdep.c: Ditto.
152
153 Merge VALUE_REGNO and VALUE_FRAME_REGNUM into VALUE_REGNUM.
154 * value.h (VALUE_REGNO, VALUE_FRAME_REGNUM): Delete.
155 (VALUE_REGNUM): Define.
156 (struct value): Delete location.regnum, rename "regno" to
157 "regnum".
158 * value.c, valops.c, valarith.c, findvar.c: Update.
159
160 * value.h (VALUE_TYPE, VALUE_NEXT, VALUE_OFFSET, VALUE_BITSIZE)
161 (VALUE_BITPOS): Delete.
162 (value_type, value_offset, value_bitsize, value_bitpos): Declare.
163 * value.c (value_type, value_offset, value_bitpos)
164 (value_bitsize): New functions. Update references.
165 * arm-tdep.c, gnu-v3-abi.c, hpacc-abi.c, gnu-v2-abi.c: Update.
166 * f-valprint.c, cp-valprint.c, c-valprint.c: Update.
167 * ada-valprint.c, typeprint.c, scm-valprint.c, scm-exp.c: Update.
168 * p-valprint.c, jv-valprint.c, jv-lang.c, varobj.c: Update.
169 * objc-lang.c, ada-lang.c, std-regs.c, stack.c: Update.
170 * infcall.c, linespec.c, printcmd.c, valarith.c: Update.
171 * valops.c, eval.c, findvar.c, breakpoint.c: Update.
172 * tracepoint.c, ax-gdb.c, mi/mi-main.c, cli/cli-dump.c:
173 * rs6000-tdep.c, ppc-sysv-tdep.c: Update.
174
175 2004-11-12 Andrew Cagney <cagney@gnu.org>
176
177 * cris-tdep.c (cris_register_offset): Delete, never called.
178 (cris_spec_reg_applicable): Delete cris_ver_sim.
179 * MAINTAINERS: List d10v as OBSOLETE.
180 * rdi-share/host.h (FOPEN_WB): #ifdef 0 out definitions of
181 FOPEN_WB et.al., defined by "fopen-bin.h".
182
183 2004-11-12 Randolph Chung <tausq@debian.org>
184
185 * hppa-tdep.c (hppa_skip_permanent_breakpoint): Move definition ...
186 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): ... to here.
187 * config/pa/tm-hppa.h (SKIP_PERMANENT_BREAKPOINT): Move definition ...
188 * config/pa/tm-hppah.h (SKIP_PERMANENT_BREAKPOINT): ... to here.
189
190 2004-11-12 Mark Kettenis <kettenis@jive.nl>
191
192 * tui/tui-io.c: Don't include "terminal.h".
193 * Makefile.in (tui-io.o): Update dependencies.
194
195 2004-11-12 Kei Sakamoto <sakamoto.kei@renesas.com>
196
197 * Makefile.in (m32r-linux-tdep.o): Update dependencies.
198 * m32r-linux-tdep.c (m32r_linux_init_abi): Call
199 set_gdbarch_regset_from_core_section for core file support.
200 (m32r_linux_supply_gregset, m32r_linux_regset_from_core_section):
201 New functions.
202
203 2004-11-11 Randolph Chung <tausq@debian.org>
204
205 * hppa-tdep.c (skip_prologue_hard_way): Make static, add
206 stop_after_branch parameter and use it to determine if we should look
207 at the delay slot of the first branch insn to find prologue insns.
208 (hppa_skip_prologue): Update comment and call to skip_prologue_hard_way.
209 (hppa_frame_cache): Likewise.
210
211 2004-11-11 Randolph Chung <tausq@debian.org>
212
213 * hppa-tdep.c (hppa_frame_cache): Properly handle the frame pointer
214 register so that it can be unwound from anywhere in the prologue.
215
216 2004-11-10 msnyder <msnyder@redhat.com>
217
218 * rs6000-tdep.c (skip_prologue): After saving lr_offset,
219 must invalidate lr_reg (so we don't try to save it again).
220 Ditto for cr_offset and cr_reg.
221
222 2004-11-05 Jon Beniston <jon@beniston.com>
223
224 Committed by Andrew Cagney.
225 * remote.c (putpkt_binary) Fix PR gdb/1806. Send an ACK
226 when an unexpected packet is received, as the target stubs
227 continually retransmit the same packet until ACKed.
228
229 2004-11-10 Randolph Chung <tausq@debian.org>
230
231 * frame.c (get_prev_frame): Use get_frame_type to retrieve the
232 frame's type.
233
234 2004-11-10 Randolph Chung <tausq@debian.org>
235
236 * blockframe.c (inside_entry_func): Move to .....
237 * frame.c (inside_entry_func): ... here, and make static.
238 (backtrace_past_entry): New flag.
239 (get_prev_frame): Stop backtrace at the entry function if enabled
240 by flag. Update comments.
241 (_initialize_frame): Add command to set backtrace_past_entry flag.
242 * defs.h (inside_entry_func): Remove prototype.
243
244 2004-11-10 Mark Kettenis <kettenis@gnu.org>
245
246 * dwarf2read.c: Fix formatting.
247
248 2004-11-10 Andrew Cagney <cagney@gnu.org>
249
250 * value.h (COERCE_REF, COERCE_ARRAY, COERCE_NUMBER, COERCE_ENUM)
251 (coerce_ref, coerce_array, coerce_number, coerce_enum): Replace
252 macros with function declarations.
253 * value.c (coerce_ref, coerce_array, coerce_number)
254 (coerce_enum): New functions.
255 (value_as_long, value_as_address): Update.
256 * ada-lang.c (ada_coerce_ref, ada_value_binop)
257 (ada_evaluate_subexp, ada_value_assign, ada_value_struct_elt): Update.
258 * jv-lang.c (evaluate_subexp_java): Update.
259 * valarith.c (value_less, value_neg, value_complement)
260 (value_binop, value_add, value_subscript, value_x_binop)
261 (value_logical_not, value_sub): Update.
262 * valops.c (check_field, value_struct_elt, value_ind)
263 (value_find_oload_method_list, value_cast, value_assign): Update.
264 * eval.c (evaluate_subexp_standard): Update.
265
266 2004-11-10 Mark Kettenis <kettenis@gnu.org>
267
268 * mips-tdep.c (mips32_relative_offset): Change return type to
269 LONGEST, change argument type to ULONGEST. Fix sign-extension.
270
271 2004-11-10 Randolph Chung <tausq@debian.org>
272
273 * hppa-tdep.c (hppa32_register_name, hppa64_register_name): Make static.
274 (hppa32_push_dummy_call, hppa64_push_dummy_call): Likewise.
275 (hppa_fetch_pointer_argument): Likewise.
276 (hppa_frame_cache): Use safe_frame_unwind_memory instead of
277 deprecated_read_memory_nobpt.
278 (_initialize_hppa_tdep): Replace deprecated_add_show_from_set/
279 add_set_cmd sequence with add_setshow_boolean_cmd.
280
281 2004-11-09 Andrew Cagney <cagney@gnu.org>
282
283 GDB 6.3 released from GDB 6.3 branch.
284
285 2004-11-09 Andrew Cagney <cagney@gnu.org>
286
287 * values.c: Rename to ...
288 * value.c: ..., new file.
289 * Makefile.in: Update.
290
291 2004-11-09 Daniel Jacobowitz <dan@debian.org>
292
293 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Correct allocated
294 size.
295
296 2004-11-09 Andrew Cagney <cagney@gnu.org>
297
298 * TODO: Delete.
299
300 * value.h (struct value): Delete field bfd_section.
301 (VALUE_BFD_SECTION): Delete macro.
302 (COERCE_REF): Update.
303 (value_at, value_at_lazy): Delete asection parameter.
304 * printcmd.c (print_formatted, x_command): Update.
305 (do_examine): Delete asection parameter.
306 (next_section): Delete variable.
307 * valops.c (value_cast, value_at, value_at_lazy)
308 (value_coerce_function, value_addr, value_ind, value_string)
309 (find_rt_vbase_offset, value_full_object): Update.
310 * hpacc-abi.c (hpacc_virtual_fn_field)
311 (hpacc_value_rtti_type): Update.
312 * gnu-v3-abi.c (gnuv3_rtti_type, gnuv3_virtual_fn_field)
313 (gnuv3_baseclass_offset): Update.
314 * f-valprint.c (f_val_print): Update.
315 * c-valprint.c (c_val_print): Update.
316 * p-valprint.c (pascal_val_print): Update.
317 * jv-valprint.c (java_value_print): Update.
318 * jv-lang.c (java_class_from_object, evaluate_subexp_java): Update.
319 * ada-lang.c (ada_value_primitive_packed_val)
320 (ada_evaluate_subexp): Update.
321 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Update.
322 * expprint.c (print_subexp_standard): Update.
323 * infcall.c (call_function_by_hand): Update.
324 * valarith.c (value_add): Update.
325 * eval.c (evaluate_subexp_standard): Update.
326 * values.c (allocate_value, value_copy, value_static_field): Update.
327 * findvar.c (read_var_value, locate_var_value): Update.
328
329 2004-11-09 Andrew Cagney <cagney@gnu.org>
330
331 * i386-linux-tdep.c: Include "dwarf2-frame.h".
332 * Makefile.in: Update all dependencies.
333
334 2004-11-08 Andrew Cagney <cagney@gnu.org>
335
336 * sentinel-frame.c (sentinel_frame_prev_pc): New function.
337 (sentinel_frame_unwinder): Add the prev_pc method.
338 * frame.c (frame_pc_unwind): Use the per-frame pc unwinder when
339 available. Do not handle the sentinel-frame case.
340 * frame-unwind.h (frame_prev_register_ftype): Define.
341 (struct frame_unwind): Add prev_pc;
342
343 2004-11-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
344
345 * configure.in: Check for ncurses/term.h.
346 * gdb_curses.h: Include term.h here, prefering ncurses/term.h.
347 * utils.c: Include gdb_curses.h instead of curses.h and term.h.
348 * tui/tui.c: Don't include term.h.
349 * configure, config.in: Rebuilt.
350
351 2004-11-08 Mark Kettenis <kettenis@gnu.org>
352
353 * m68kbsd-nat.c: Include "inf-ptrace.h".
354 (_initialize_m68kbsd_nat): Fix pasto.
355 * Makefile.in (m68kbsd-nat.o): Update dependencies.
356
357 2004-11-08 Randolph Chung <tausq@debian.org>
358
359 * infrun.c (debug_infrun): New variable.
360 (resume, proceed, wait_for_inferior): Annotate with debug messages.
361 (handle_inferior_event, keep_going): Likewise.
362 (_initialize_infrun): Register "set debug infrun" command.
363
364 2004-11-08 Andreas Schwab <schwab@suse.de>
365
366 * linux-nat.c (PTRACE_EVENT_VFORK_DONE): Renamed from
367 PTRACE_EVENT_VFORKDONE.
368 (child_follow_fork): Adjust.
369
370 2004-11-08 Andrew Cagney <cagney@gnu.org>
371
372 * README: Refer to 6.3, not 6.2, update directory listing droppng
373 references to intl/ and mmalloc/.
374 * PROBLEMS: Refer to 6.3 not 6.2.
375
376 * PROBLEMS: Delete no-longer applicable problems.
377
378 2004-11-07 Andrew Cagney <cagney@redhat.com>
379 Daniel Jacobowitz <dan@debian.org>
380 Roland McGrath <roland@redhat.com>
381
382 * Makefile.in (symfile-mem.o): Update dependencies.
383 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): New.
384 (i386_linux_init_abi): Call dwarf2_frame_set_signal_frame_p.
385 * inf-ptrace.c (inf_ptrace_attach): Call
386 observer_notify_inferior_created.
387 * inftarg.c (child_attach): Likewise.
388 * symfile-mem.c: Include "observer.h", "auxv.h", and "elf/common.h".
389 (symbol_file_add_from_memory): Take NAME argument. Use it for
390 the new BFD's filename.
391 (add_symbol_file_from_memory_command): Update call to
392 symbol_file_add_from_memory.
393 (struct symbol_file_add_from_memory_args, add_vsyscall_page)
394 (symbol_file_add_from_memory_wrapper): New.
395 (_initialize_symfile_mem): Register add_vsyscall_page as an
396 inferior_created observer.
397
398 2004-11-07 Mark Kettenis <kettenis@gnu.org>
399
400 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Rename from
401 fetch_inferior_registers. Make static.
402 (m68kbsd_store_inferior_registers): Rename from
403 store_inferior_registers. Make static.
404 (_initialize_m68kbsd_nat): Construct and add target vector.
405 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
406 inftarg.o. Add inf-ptrace.o.
407 (NAT_FILE): Set to tm-solib.h.
408 (LOADLIBES): New variable.
409 * config/m68k/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
410 inftarg.o. Add inf-ptrace.o.
411 (NAT_FILE): Delete variable.
412 * config/m68k/obsd.mh (NATDEPFILES): Remove infptrace.o and
413 inftarg.o. Add inf-ptrace.o.
414 (NAT_FILE): Set to tm-solib.h.
415 * config/m68k/nm-nbsdaout.h: Remove file.
416
417 2004-11-07 Daniel Jacobowitz <dan@debian.org>
418
419 * dwarf2-frame.c (struct dwarf2_frame_ops): Add signal_frame_p.
420 (dwarf2_frame_set_signal_frame_p, dwarf2_frame_signal_frame_p)
421 (dwarf2_signal_frame_unwind): New.
422 (dwarf2_frame_sniffer): Use dwarf2_frame_signal_frame_p.
423 * dwarf2-frame.h (dwarf2_frame_set_signal_frame_p): New prototype.
424
425 2004-11-07 Mark Kettenis <kettenis@gnu.org>
426
427 * Makefile.in (mips64obsd-tdep.o): Fix typo.
428
429 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Renamed
430 from mipsnbsd_ilp32_solib_svr4_fetch_link_map_offsets. Trim sizes
431 to only include the structure members we actually need.
432 (mipsnbsd_lp64_fetch_link_map_offsets): Renamed from
433 mipsnbsd_lp64_solib_svr4_fetch_link_map_offsets. Trim sizes to
434 only include the structure members we actually need.
435 (mipsnbsd_init_abi): Update.
436
437 * mips64obsd-nat.c: Include "mips-tdep.h".
438 (MIPS64OBSD_NUM_REGS): Remove define.
439 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM): New defines.
440 (mips64obsd_supply_gregset, mips64obsd_collect_gregset): Handle
441 floating-point registers correctly.
442 * Makefile.in (mips64obsd-nat.o): Update dependencies.
443
444 * mips64obsd-tdep.c: Include "trad-frame.h", "tramp-frame.h" and
445 "gdb_assert.h".
446 (mips64obsd_sigframe_init): New function.
447 (mips64obsd_sigframe): New variable.
448 (mips64obsd_init_abi): Add comments. Prepend mips64obsd_sigrame
449 unwinder.
450 * Makefile.in (mips64obsd-tdep.o): Update dependencies.
451
452 2004-11-06 Joel Brobecker <brobecker@gnat.com>
453
454 * alpha-mdebug-tdep.c: #include mdebugread.h.
455 Replace alpha_extra_func_info_t by struct mdebug_extra_func_info *.
456 * Makefile.in (alpha-mdebug-tdep.o): Add dependency on mdebugread.h.
457
458 2004-11-05 Andrew Cagney <cagney@gnu.org>
459
460 * dwarf2-frame.c (dwarf2_frame_cache): Only complain when both the
461 CFI and the init_reg method leave the register unspecified.
462 Include the register name in the "Incomplete CFI data" complaint.
463 Supress leading zeros in the address.
464
465 2004-11-05 Mark Kettenis <kettenis@gnu.org>
466
467 * dwarf2-frame.c (decode_frame_entry_1): Avoid indirection when
468 skipping a personality routine in a CIE augmentation.
469
470 2004-11-05 Jeff Johnston <jjohnstn@redhat.com>
471
472 * defs.h (fatal, vfatal): New function prototypes.
473 * stack.c (backtrace_command_stub): Stub to call backtrace_command_1
474 via catch_errors.
475 (backtrace_command): Change to call backtrace_command_stub via
476 catch_errors instead of calling backtrace_command_1 directly.
477 (backtrace_full_command): Ditto.
478 * utils.c (error_stream_1): New static function.
479 (verror): Change to call error_stream_1 instead of error_stream.
480 (error_stream): Call error_stream_1 with RETURN_ERROR argument.
481 (vfatal, fatal): New functions.
482
483 2004-11-05 Andrew Cagney <cagney@gnu.org>
484
485 * stack.c (parse_frame_specification_1): Clear selected_frame_p
486 when not using selected frame.
487
488 2004-11-05 Mark Kettenis <kettenis@jive.nl>
489
490 * dwarf2-frame.c (decode_frame_entry_1): Correctly skip
491 personality routine in a CIE augmentation.
492
493 2004-11-05 Felix Lee <felix+log1@specifixinc.com>
494
495 * stack.c (set_current_sal_from_frame): New function.
496 (print_args_stub): Use it.
497 (print_frame_info): Don't set sal here.
498
499 2004-11-04 Mark Kettenis <kettenis@gnu.org>
500
501 * dwarf2-frame.c (read_encoded_value): Change type of third
502 argument to `unsigned char *'. Add support for LEB128 encodings.
503
504 2004-11-04 Jim Blandy <jimb@redhat.com>
505
506 * gdbtypes.c (make_qualified_type): Doc fix. Add assertion to
507 prevent cross-objfile references.
508 (make_cv_type): Doc fix. Don't create cross-objfile references,
509 even for stub types.
510 (replace_type): Add assertion to prevent cross-objfile references.
511 (check_typedef): Never resolve a stub type by copying over a type
512 from another file.
513
514 2004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
515
516 * Makefile.in (m32r-tdep.o): Update dependencies.
517 * m32r-tdep.c (m32r_gdbarch_init): Call gdbarch_init_osabi for
518 ABI-specific overrides.
519
520 2004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
521
522 * m32r-tdep.c (m32r_memory_insert_breakpoint): Remove
523 unnecessary parallel execution bit.
524 (m32r_memory_remove_breakpoint): Ditto.
525 (m32r_breakpoint_from_pc): Update.
526
527 2004-11-03 Randolph Chung <tausq@debian.org>
528
529 * hppa-tdep.c (hppa_frame_cache): Use frame_pc_unwind instead of
530 frame_func_unwind to locate the unwind entry.
531 (hppa_frame_this_id): Likewise.
532
533 2004-11-03 Andrew Cagney <cagney@gnu.org>
534
535 * gdb/NEWS: Mention internationalization, m32r-*-linux-gnu, 'p'
536 packet, obsolete configurations, end-of-life deprecated_registers.
537
538 2004-11-02 Mark Kettenis <kettenis@gnu.org>
539
540 * dwarf2-frame.c (read_encoded_value): Set proper size for signed
541 encodings as well as unsigned encodings.
542
543 2004-11-02 Andrew Cagney <cagney@gnu.org>
544
545 * value.h (COERCE_VARYING_ARRAY): Delete.
546 * valops.c (value_cast, value_slice): Delete use.
547 * valarith.c (value_subscript, value_concat): Delete use.
548
549 2004-11-02 Paul Hilfinger <hilfingr@nile.gnat.com>
550
551 * NEWS: GDB understands GNAT Ada.
552
553 2004-11-01 Joseph S. Myers <joseph@codesourcery.com>
554
555 * Makefile.in (ALLDEPFILES): Add amd64-sol2-tdep.c.
556 (amd64-sol2-tdep.o): Add dependencies.
557 * amd64-sol2-tdep.c, config/i386/sol2-64.mh,
558 config/i386/sol2-64.mt: New files.
559 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offset,
560 amd64_sol2_gregset32_reg_offset, _initialize_amd64_sol2_nat): New.
561 (supply_gregset): Correct order of arguments to
562 amd64_supply_native_gregset.
563 (fill_gregset): Correct order of arguments to
564 amd64_collect_native_gregset.
565 * configure.host (i[34567]86-*-solaris2.1[0-9]*): Add new case.
566 * configure.tgt (i[34567]86-*-solaris2.1[0-9]*): Likewise.
567 * configure.in (*-*-solaris2.[[6789]]): Add *-*-solaris2.1[[0-9]]
568 for definition of NEW_PROC_API.
569 * configure: Regenerate.
570
571 2004-11-01 Joseph S. Myers <joseph@codesourcery.com>
572
573 * MAINTAINERS (Write After Approval): Add myself.
574
575 2004-11-01 Andrew Cagney <cagney@gnu.org>
576
577 * configure.tgt: Mark d10v-*-* as obsolete.
578 * config/d10v/d10v.mt, d10v-tdep.c: Obsolete files.
579
580 2004-11-01 Paul N. Hilfinger <Hilfinger@gnat.com>
581
582 * values.c (modify_field): Correct handling of bit-fields that
583 don't fit in 32 bits. Use unsigned operations throughout and
584 simplify the code a bit. Document preconditions.
585
586 2004-10-31 Andrew Cagney <cagney@gnu.org>
587
588 * config/pa/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
589 * config/tm-sysv4.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
590 (in_plt_section): Delete.
591
592 * mips-tdep.c (mips_in_solib_return_trampoline): Delete.
593 (mips_gdbarch_init): Do not set same.
594
595 * arch-utils.c (generic_in_solib_call_trampoline): Delete.
596 * arch-utils.h (generic_in_solib_call_trampoline): Delete.
597
598 * gdbarch.sh (in_solib_call_trampoline): Delete.
599 * gdbarch.h, gdbarch.c: Re-generate.
600
601 * hppa-tdep.c (hppa_stub_unwind_sniffer): Replace
602 IN_SOLIB_CALL_TRAMPOLINE with tdep.in_solib_call_trampoline.
603 * hppa-tdep.h (struct gdbarch_tdep): Add in_solib_call_trampoline.
604 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Set same.
605 * hppa-linux-tdep.c (hppa_linux_init_abi): Ditto.
606
607 2004-10-31 Mark Kettenis <kettenis@gnu.org>
608
609 * mipsnbsd-nat.c: Include "target.h" and "inf-ptrace.h".
610 (mipsnbsd_fetch_inferior_registers): Rename from
611 fetch_inferior_registers. Make static.
612 (mipsnbsd_store_inferior_registers): Rename from
613 store_inferior_registers. Make static.
614 (_initialize_mipsnbsd_nat): New function and prototype.
615 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
616 * config/mips/nbsd.mh (NAT_CLIBS, NAT_FILE): Remove variables.
617 (NATDEPFILES): Remove infptrace.o and inftarg.o. Add
618 inf-ptrace.o.
619
620 2004-10-31 Andrew Cagney <cagney@gnu.org>
621
622 * xstormy16-tdep.c (xstormy16_in_solib_call_trampoline)
623 (xstormy16_gdbarch_init): Do not set in_solib_call_trampoline,
624 delete corresponding unused function.
625 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Really do not set
626 in_solib_call_trampoline.
627 * config/arm/tm-embed.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
628 * config/powerpc/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
629 * config/mips/tm-nbsd.h: Ditto.
630 * config/arm/tm-linux.h: Ditto.
631 * config/mips/tm-linux.h: Ditto.
632
633 * armnbsd-tdep.c (arm_netbsd_aout_init_abi)
634 (arm_netbsd_aout_in_solib_call_trampoline): Do not set
635 in_solib_call_trampoline, delete corresponding unused function.
636 * vaxnbsd-tdep.c (vaxnbsd_aout_in_solib_call_trampoline)
637 (vaxnbsd_aout_init_abi): Ditto.
638 * sparcnbsd-tdep.c (sparcnbsd_aout_in_solib_call_trampoline)
639 (sparc32nbsd_aout_init_abi): Ditto.
640 * ppc-linux-tdep.c (ppc64_in_solib_call_trampoline)
641 (ppc_linux_init_abi): Ditto.
642 * ns32knbsd-tdep.c (ns32knbsd_aout_in_solib_call_trampoline)
643 (ns32knbsd_init_abi_aout): Ditto.
644 * mips-tdep.c (mips_in_call_stub, mips_gdbarch_init): Ditto.
645 * mips-linux-tdep.c (mips_linux_init_abi): Ditto.
646 * m68kbsd-tdep.c (m68kbsd_aout_in_solib_call_trampoline)
647 (m68kbsd_aout_init_abi): Ditto.
648 * i386-cygwin-tdep.c (i386_cygwin_in_solib_call_trampoline)
649 (i386_cygwin_init_abi): Ditto.
650 * i386bsd-tdep.c (i386bsd_aout_in_solib_call_trampoline)
651 (i386bsd_init_abi): Ditto.
652
653 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Do not set
654 in_solib_call_trampoline to in_plt_entry, IN_SOLIB_CALL_TRAMPOLINE
655 isn't used by this architecture.
656 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
657 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Ditto.
658 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Ditto.
659 * s390-tdep.c (s390_gdbarch_init): Ditto.
660 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
661 * m68klinux-tdep.c (m68k_linux_init_abi): Ditto.
662 * i386-tdep.c (i386_svr4_init_abi): Ditto.
663 * i386-nto-tdep.c (i386nto_init_abi): Ditto.
664 * arm-linux-tdep.c (arm_linux_init_abi): Ditto.
665 * amd64-tdep.c (amd64_init_abi): Ditto.
666
667 * vaxnbsd-tdep.c (vaxnbsd_elf_init_abi): Do not set
668 in_solib_call_trampoline to its default value of
669 generic_in_solib_call_trampoline.
670 * ppcobsd-tdep.c (ppcobsd_init_abi): Ditto.
671 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Ditto.
672 * i386obsd-tdep.c (i386obsd_elf_init_abi): Ditto.
673 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Ditto.
674 * i386fbsd-tdep.c (i386fbsd_init_abi): Ditto.
675 * hppabsd-tdep.c (hppabsd_init_abi): Ditto.
676
677 * mips-tdep.c (mips_dump_tdep): Don't print any of the macros.
678
679 * config/mips/obsd64.mt (DEPRECATED_TM_FILE): Delete.
680
681 * config/mips/tm-mips.h: Delete file.
682 * remote-mips.c: Delete tm-mips.h from comment.
683 * config/mips/embed.mt (DEPRECATED_TM_FILE): Delete.
684 * config/mips/tm-nbsd.h: Don't include tm-mips.h.
685 * config/mips/irix6.mt (DEPRECATED_TM_FILE): Delete.
686 * config/mips/tm-linux.h: Don't include tm-mips.h.
687 * config/mips/tm-vxmips.h: Don't include tm-mips.h.
688 * config/mips/irix5.mt (DEPRECATED_TM_FILE):
689 * config/mips/tm-wince.h: Don't include.
690
691 * mdebugread.h (MDEBUG_EFI_SYMBOL_NAME): Define.
692 * mdebugread.c (MDEBUG_EFI_SYMBOL_NAME): Delete.
693 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
694 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
695
696 * mdebugread.h (ecoff_relocate_efi): Delete declaration.
697 * mdebugread.c (ecoff_relocate_efi): Delete function.
698 * objfiles.c (objfile_relocate): Delete #ifdef
699 MDEBUG_EFI_SYMBOL_NAME code.
700
701 2004-10-31 Orjan Friberg <organ.friberg@axis.com>
702 Andrew Cagney <cagney@gnu.org>
703
704 * gdbarch.sh (single_step_through_delay): Add.
705 * gdbarch.h, gdbarch.c: Re-generate.
706 * config/mips/tm-mips.h (STEP_SKIPS_DELAY_P, STEP_SKIPS_DELAY)
707 (mips_step_skips_delay): Delete.
708 * mips-tdep.c (mips_single_step_through_delay): Replace
709 mips_step_skips_delay.
710 (mips_gdbarch_init): Set single_step_through_delay.
711 (mips_dump_tdep): Do not print STEP_SKIPS_DELAY.
712
713 2004-10-31 Mark Kettenis <kettenis@gnu.org>
714
715 * tramp-frame.c (tramp_frame_prepend_unwinder): Set unwinder type
716 from TRAMP_FRAME frame type.
717
718 2004-10-31 Andrew Cagney <cagney@gnu.org>
719
720 * mdebugread.c (parse_procedure): Wrap use of RA_REGNUM in #ifdef.
721
722 * mips-tdep.c (mips_ignore_helper): Delete.
723 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Delete.
724 * infrun.c (handle_inferior_event): Delete #ifdef
725 DEPRECATED_IGNORE_HELPER_CALL code.
726
727 * config/mips/tm-mips.h (RA_REGNUM): Delete.
728
729 2004-10-31 Mark Kettenis <kettenis@gnu.org>
730
731 * i386v4-nat.c (supply_gregset, supply_fpregset, fill_gregset)
732 (fill_fpregset): Do not compile for 64-bit systems.
733 * i386-sol2-nat.c: Don't include "i386v4-nat.c".
734 * Makefile.in (i386-sol2-nat.o): Update dependencies.
735 * config/i386/i386sol2.mh (NATDEPFILES): Add back i386v4-nat.c.
736
737 2004-10-30 Andrew Cagney <cagney@gnu.org>
738
739 * mdebugread.h: Include "coff/sym.h" and "coff/symconst.h".
740 (struct mdebug_extra_func_info): Define.
741 * config/alpha/tm-alpha.h: Delete same.
742 * config/mips/tm-mips.h: Delete same.
743 * mdebugread.c: Delete same.
744 * Makefile.in: Update dependencies.
745 * mips-mdebug-tdep.c: Include "mdebugread.h".
746
747 * objfiles.c: Include "mdebugread.h".
748 * mdebugread.c: Include "mdebugread.h".
749 (ecoff_relocate_cfi): Delete.
750 * config/alpha/tm-alpha.h (ecoff_relcate_cfi): Delete.
751 * config/mips/tm-mips.h (ecoff_relcate_cfi): Delete.
752 * mdebugread.h (ecoff_relocate_efi): New file.
753 * Makefile.in: Update dependencies.
754
755 * mips-tdep.c (struct frame_extra_info): Delete.
756 (temp_proc_desc): Delete.
757
758 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Rename
759 MIPS_EFI_SYMBOL_NAME.
760 (mips_extra_func_info_t, mips_extra_func_info): Delete.
761 (struct mdebug_extra_func_info): Replace struct
762 alpha_extra_func_info and alpha_extra_func_info_t.
763 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Rename
764 MIPS_EFI_SYMBOL_NAME.
765 (struct mdebug_extra_func_info): Replace struct
766 alpha_extra_func_info and alpha_extra_func_info_t.
767 * objfiles.c, mips-tdep.c, mips-mdebug-tdep.c: Update.
768 * mdebugread.c, alpha-mdebug-tdep.c:
769
770 Suggested by Mark Kettenis.
771 * config/mips/tm-mips.h (struct mips_extra_func_info): Delete
772 fields frame_adjust and high_addr.
773 * mips-mdebug-tdep.c (PROC_HIGH_ADDR, PROC_FRAME_ADJUST): Delete.
774 (non_heuristic_proc_desc): Delete references.
775
776 * mips-tdep.h (MIPS_PRID_REGNUM): Add.
777 * config/mips/tm-mips.h (PRID_REGNUM): Delete.
778 * mips-tdep.c: Update.
779
780 * mips-tdep.h (MIPS_FIRST_EMBED_REGNUM)
781 (MIPS_LAST_EMBED_REGNUM): Add.
782 * config/mips/tm-mips.h (FIRST_EMBED_REGNUM)
783 (LAST_EMBED_REGNUM): Delete.
784 * mipsv4-nat.c, mips-tdep.c, mips-linux-tdep.c: Update.
785
786 * config/mips/tm-mips.h (PS_REGNUM): Delete.
787 * mips-tdep.h (MIPS_PS_REGNUM): Add.
788 * remote-vxmips.c, mipsv4-nat.c, mips-tdep.c: Update.
789 * mips-linux-nat.c: Update.
790
791 * mips-tdep.h: Add comments on registers.
792 (MIPS_UNUSED_REGNUM): Define.
793 * config/mips/tm-mips.h (ZERO_REGNUM, UNUSED_REGNUM)
794 (T9_REGNUM, V0_REGNUM, A0_REGNUM): Delete.
795 * irix5-nat.c, mipsv4-nat.c, mips-linux-tdep.c: Update.
796 * mips-linux-nat.c, remote-mips.c: Update.
797
798 * config/mips/tm-mips.h (t_insn): Delete.
799 * mips-tdep.c (mips_fetch_instruction, mips_skip_trampoline_code):
800 Replace t_insn with ULONGEST.
801
802 2004-10-30 Mark Kettenis <kettenis@gnu.org>
803
804 * mipsnbsd-tdep.c: Include "regset.h" and "gdb_assert.h".
805 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM)
806 (MIPSNBSD_NUM_GREGS, MIPSNBSD_NUM_FPREGS): New defines.
807 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
808 (mipsnbsd_core_fns, mipsnbsd_elfcore_fns): Remove variables.
809 (mipsnbsd_core_osabi_sniffer): New function.
810 (mipsnbsd_init_abi): Set regset_from_core_section.
811 (_initialize_mipsnbsd_tdep): Remove calls to
812 deprecated_add_core_fns.
813 (mipsnbsd_supply_fpregset, mipsnbsd_supply_gregset)
814 (mipsnbsd_regset_from_core_section): New functions.
815 (mipsnbsd_gregset, mipsnbsd_fpregset): New variables.
816 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
817
818 * procfs.c (procfs_fetch_registers, procfs_store_registers): Like
819 Remove optimization for DEPRECATED_FP_REGNUM.
820
821 2004-10-30 Andrew Cagney <cagney@gnu.org>
822
823 * alpha-tdep.c (alpha_setup_arbitrary_frame): Delete.
824 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Delete.
825 (alpha_setup_arbitrary_frame): Delete.
826 * mips-tdep.c (setup_arbitrary_frame): Delete.
827 * config/mips/tm-mips.h (SETUP_ARBITRARY_FRAME): Delete.
828 (setup_arbitrary_frame): Delete.
829 * stack.c (parse_frame_specification_1): When specified, call
830 create_new_frame with two parameters. Delete #ifdef
831 SETUP_ARBITRARY_FRAME.
832
833 * config/mips/tm-mips.h (MIPS16_INSTLEN, MIPS_NUMREGS)
834 (MIPS_INSTLEN): Delete.
835 * mips-tdep.h (enum mips_insn_size): Rename MIPS32_INSN_SIZE and
836 MIPS16_INSN_SIZE to MIPS_INSN32_SIZE and MIPS_INSN16_SIZE.
837 * remote-mips.c, mips-tdep.c: Update.
838
839 * config/mips/embed.mt (TDEPFILES): Add mips-mdebug-tdep.o.
840 * mips-mdebug-tdep.h, mips-mdebug-tdep.c: New files.
841 * mips-tdep.c (mips_mdebug_frame_cache)
842 (mips_mdebug_frame_this_id, mips_mdebug_frame_prev_register)
843 (mips_mdebug_frame_unwind, mips_mdebug_frame_sniffer)
844 (mips_mdebug_frame_base_address, mips_mdebug_frame_sniffer)
845 (mips_mdebug_frame_base_sniffer, non_heuristic_proc_desc)
846 (compare_pdr_entries, the_bfd, mips16_fetch_instruction): Delete.
847 (mips_gdbarch_init): Do not append mdebug sniffers.
848 (PROC_LOW_ADDR, PROC_HIGH_ADDR, PROC_FRAME_OFFSET)
849 (PROC_FRAME_REG, PROC_FRAME_ADJUST, PROC_REG_MASK)
850 (PROC_FREG_MASK, PROC_REG_OFFSET, PROC_FREG_OFFSET, PROC_PC_REG)
851 (PROC_SYMBOL, _PROC_MAGIC_): Delete.
852 * Makefile.in: Update dependencies.
853
854 * mips-tdep.h (mips_abi_regsize): Declare.
855 * mips-tdep.c (mips_abi_regsize): Make non-static.
856
857 * mips-tdep.c (gdb_print_insn_mips): Simplify.
858 (make_mips16_addr): Delete.
859
860 2004-10-30 Mark Kettenis <kettenis@gnu.org>
861
862 * i386-sol2-nat.c: New file.
863 * Makefile.in (ALLDEPFILES): Add i386-sol2-nat.c and
864 i386-sol2-tdep.c.
865 (i386-sol2-nat.o): Update dependencies.
866 * config/i386/i386sol2.mh (NATDEPFILES): Remove i386v4.o, add
867 i386-sol2-nat.o.
868
869 2004-10-30 Andrew Cagney <cagney@gnu.org>
870
871 Total breakage identified by Joel Brobecker.
872 * mips-tdep.c (after_prologue): Delete.
873 (mips_skip_prologue): Use skip_prologue_using_sal.
874 (heuristic_proc_desc): Delete, unused.
875
876 2004-10-30 Mark Kettenis <kettenis@gnu.org>
877
878 * procfs.c (proc_get_gregs, proc_get_fpregs, proc_set_gregs)
879 (proc_set_fpregs, procfs_fetch_registers, procfs_store_registers):
880 Cleanup coding style.
881
882 2004-10-30 Andrew Cagney <cagney@gnu.org>
883
884 * mips-tdep.h (mips_pc_is_mips16): Declare.
885 * mips-tdep.c (mips_pc_is_mips16): Rename pc_is_mips16, make
886 non-static. Update calls.
887
888 * cli/cli-decode.c (add_setshow_enum_cmd): New function.
889 * command.h (add_setshow_enum_cmd): Declare.
890 * mips-tdep.c (_initialize_mips_tdep): Use add_setshow_enum_cmd.
891
892 * mips-tdep.c (_initialize_mips_tdep): Use
893 add_setshow_zinteger_cmd.
894
895 * mips-tdep.c (mips_eabi_extract_return_value)
896 (mips_o64_extract_return_value, mips_o64_store_return_value)
897 (return_value_location, mips_eabi_reg_struct_has_addr)
898 (mips_eabi_use_struct_convention)
899 (mips_eabi_store_return_value): Delete.
900 (mips_eabi_store_return_value): New function.
901 (mips_eabi_return_value): New function.
902 (mips_gdbarch_init): For O64 and EABI, delete
903 extract_return_value, store_return_value, use_struct_convention
904 and reg_struct_has_addr, add return_value.
905
906 * mips-tdep.c (read_signed_register): Use
907 regcache_cooked_read_signed.
908
909 2004-10-30 Mark Kettenis <kettenis@gnu.org>
910
911 * mipsread.c: Cleanup coding style.
912 (mipscoff_new_init, mipscoff_symfile_init, mipscoff_symfile_read)
913 (mipscoff_symfile_finish): Remove prototypes.
914
915 2004-10-29 Mark Kettenis <kettenis@gnu.org>
916
917 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
918 (mips_mdebug_frame_cache, mips16_scan_prologue)
919 (mips32_scan_prologue, mips_stub_frame_cache)
920 (heuristic_proc_start, heuristic_proc_desc)
921 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
922 (mips_n32n64_return_value, mips_o32_push_dummy_call)
923 (mips_o32_return_value, mips_o64_push_dummy_call)
924 (mips_step_skips_delay, mips_skip_trampoline_code)
925 (mips_gdbarch_init): Use MIPS_A0_REGNUM instead of A0_REGNUM,
926 MIPS_RA_REGNUM instead of RA_REGNUM, MIPS_T9_REGNUM instead of
927 T9_REGNUM, MIPS_V0_REGNUM instead of V0_REGNUM, MIPS_ZERO_REGNUM
928 instead of ZERO_REGNUM, MIPS32_SIZE_INSN instead of MIPS_INSTLEN
929 and MIPS16_INSN_SIZE instead of MIPS16_INSTLEN.
930 (mips_dump_tdep): Don't print A0_REGNUM, RA_REGNUM,
931 T9_REGNUM, V0_REGNUM, ZERO_REGNUM, MIPS_INSTLEN and
932 MIPS16_INSTLEN. Use MIPS_A0_REGNUM instead of A0_REGNUM.
933 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
934 (mips_linux_n32n64_sigframe_init): Use MIPS_ZERO_REGNUM instead of
935 ZERO_REGNUM.
936 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
937 (mipsnbsd_cannot_store_register): Use MIPS_ZERO_REGNUM instead of
938 ZERO_REGNUM.
939 (mipsnbsd_get_longjmp_target): Use MIPS_A0_REGNUM instead of
940 A0_REGNUM.
941 * mipsnbsd-nat.c: Include "mips-tdep.h".
942 (getregs_supplies): Use MIPS_ZERO_REGNUM instead of ZERO_REGNUM.
943 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
944
945 2004-10-29 Andrew Cagney <cagney@gnu.org>
946
947 * stack.c (parse_frame_specification_1): New function based on
948 parse_frame_specification. Add message and selected_frame_p
949 paramters. Truely always return non-NULL.
950 (parse_frame_specification): Call parse_frame_specification_1.
951 (frame_info): Update. Eliminate target_has_stack check.
952 (select_frame_command): Update.
953
954 2004-10-29 Andrew Cagney <cagney@gnu.org>
955
956 * frame.h (get_selected_frame): Add message parameter.
957 * frame.c (get_selected_frame): Add and use message parameter.
958 * stack.c (current_frame_command, return_command, locals_info)
959 (catch_info, args_info, up_silently_base, down_silently_base): Use
960 get_selected_frame with an explicit message.
961 * thread.c, stack.c, sh-tdep.c, sh64-tdep.c: Update.
962 * remote-rdp.c, remote-mips.c, remote-e7000.c: Update.
963 * ocd.c, mi/mi-main.c, mi/mi-cmd-stack.c: Update.
964 * infrun.c, inflow.c, infcmd.c, frame.c: Update.
965 * findvar.c, eval.c, corelow.c, bsd-kvm.c: Update.
966 * breakpoint.c: Update.
967
968 2004-10-29 Andrew Cagney <cagney@gnu.org>
969
970 * trad-frame.c (trad_frame_get_prev_register): Use
971 frame_unwind_register instead of frame_register_unwind, do not
972 recurse the register's location.
973 * xstormy16-tdep.c (xstormy16_frame_prev_register):
974 * sparc-tdep.c (sparc32_frame_prev_register): Ditto.
975 * sparc64-tdep.c (sparc64_frame_prev_register): Ditto.
976 * sh-tdep.c (sh_frame_prev_register): Ditto.
977 * m68k-tdep.c (m68k_frame_prev_register): Ditto.
978 * i386-tdep.c (i386_frame_prev_register): Ditto.
979 * dwarf2-frame.c (dwarf2_frame_prev_register): Ditto.
980 * amd64-tdep.c (amd64_frame_prev_register): Ditto.
981
982 2004-10-28 Mark Kettenis <kettenis@jive.nl>
983
984 * proc-events.c: Fix several coding-style issues. Consistently
985 use #ifdef instead of #if defined().
986 (proc_prettyfprint_fault, proc_prettyfprint_faultset): Use
987 ARRAY_SIZE.
988 (_initialize_proc_events): New prototype.
989
990 * proc-why.c: Fix several coding-style issues.
991 (proc_prettyfprint_why): Use ARRAY_SIZE.
992
993 2004-10-27 Jim Blandy <jimb@redhat.com>
994
995 * remote.c (fetch_register_using_p): Construct 'p' packet in a
996 manner independent of the host byte order.
997
998 2004-10-27 Mark Kettenis <kettenis@gnu.org>
999
1000 * mips-tdep.c (id_delayed): Remove prototype.
1001
1002 2004-10-26 Mark Kettenis <kettenis@gnu.org>
1003
1004 * mips-tdep.h: Add MIPS_ZERO_REGNUM, MIPS_AT_REGNUM,
1005 MIPS_V0_REGNUM. MIPS_A0_REGNUM, MIPS_T9_REGNUM and MIPS_RA_REGNUM
1006 to enum with register numbers.
1007 (enum mips_insn_size): New enum.
1008
1009 2004-10-26 Andrew Cagney <cagney@gnu.org>
1010
1011 * config/mips/tm-linux.h: Delete #undef SKIP_TRAMPOLINE_CODE.
1012 * mips-tdep.c (mips_skip_trampoline_code): Rename mips_skip_stub.
1013 (mips_gdbarch_init): Update.
1014 (mips_dump_tdep): Do not print SKIP_TRAMPOLINE_CODE.
1015
1016 * config/arm/tm-linux.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1017 * config/mips/tm-nbsd.h, config/mips/tm-linux.h: Delete #undef
1018 IN_SOLIB_RETURN_TRAMPOLINE.
1019 * mips-tdep.c (mips_dump_tdep): Do not print
1020 IN_SOLIB_RETURN_TRAMPOLINE.
1021 (mips_in_solib_return_trampoline): Rename mips_in_return_stub.
1022 (mips_gdbarch_init): Update.
1023
1024 * mips-tdep.h (mips_software_single_step): Move to here ...
1025 * config/mips/tm-mips.h: ... from here.
1026 * config/mips/tm-linux.h (SOFTWARE_SINGLE_STEP_P)
1027 (SOFTWARE_SINGLE_STEP): Delete.
1028 * mips-linux-tdep.c (mips_linux_init_abi): Set software_single_step.
1029
1030 2004-10-25 Andrew Cagney <cagney@gnu.org>
1031
1032 * NEWS: Add Changes since GDB 6.3 section.
1033
1034 2004-10-23 Andreas Schwab <schwab@suse.de>
1035
1036 * ada-lang.c (grow_vect): Return the new array instead of
1037 expecting pointer to pointer to avoid violation of aliasing rules.
1038 * ada-lang.h (GROW_VECT): Adapt call to grow_vect.
1039
1040 2004-10-23 Ulrich Weigand <uweigand@de.ibm.com>
1041
1042 * s390-tdep.c (enum pv_boolean): Remove.
1043 (pv_is_array_ref): Remove.
1044 (s390_on_stack): Remove.
1045 (S390_NUM_SPILL_SLOTS): Remove.
1046 (struct s390_prologue_data): Remove members 'spill' and 'back_chain',
1047 add members 'gpr_slot', 'fpr_slot', and 'back_chain_saved_p'.
1048 (s390_store): Track all stores of orginal incoming registers to the
1049 stack constant offsets relative to the CFA, instead of only tracking
1050 stores into specific spill slots.
1051 (s390_load): Likewise.
1052 (s390_analyze_prologue): Adapt to struct s390_prologue_data changes.
1053 (s390_prologue_frame_unwind_cache): Likewise. Only track registers
1054 defined as call-saved by the ABI.
1055 (s390_push_dummy_call): Use bottom of dummy call argument save area
1056 as return value, not the top. Do not store to the called function's
1057 register save area.
1058 (s390_unwind_dummy_id): Adapt accordingly.
1059
1060 2004-10-23 Andrew Cagney <cagney@gnu.org>
1061
1062 * objfiles.h (struct objfile): Rename obj_private to
1063 deprecated_obj_private, sym_private to deprecated_sym_private, and
1064 sym_stab_info to deprecated_sym_stab_info.
1065 * gdb-stabs.h: Update.
1066 * elfread.c: Update.
1067 * dbxread.c: Update.
1068 * coffread.c: Update.
1069 * xcoffread.c: Update.
1070 * symfile.c: Update.
1071 * somread.c: Update.
1072 * nlmread.c: Update.
1073 * mdebugread.c: Update.
1074 * hpread.c: Update.
1075 * coffread.c: Update.
1076
1077 2004-10-23 Mark Kettenis <kettenis@gnu.org>
1078
1079 * mips64obsd-nat.c, mips64obsd-tdep.c: New files.
1080 * configure.host: Add mips64*-*-openbsd*.
1081 * configure.tgt: Add mips64*-*-openbsd*.
1082 * Makefile.in (ALLDEPFILES): Add mips64obsd-nat.o,
1083 mips64obsd-tdep.c.
1084 (mips64obsd-nat.o, mips64obsd-tdep.o): New dependecies.
1085 * config/mips/obsd64.mh, config/mips/obsd64.mt: New files.
1086
1087 2004-10-21 Joel Brobecker <brobecker@gnat.com>
1088
1089 * symtab.c (symbol_search_name): Minor reformatting.
1090
1091 2004-10-20 Joel Brobecker <brobecker@gnat.com>
1092
1093 * symtab.h: Fix typo in comment.
1094
1095 2004-10-19 Mark Kettenis <kettenis@gnu.org>
1096
1097 * dwarf2read.c (struct comp_unit_head): Fix coding style.
1098 (dwarf_decode_line_header): Likewise.
1099
1100 2004-10-19 Michael Chastain <mec.gnu@mindspring.com>
1101
1102 * NEWS: GDB works with GCC -feliminate-dwarf2-dups.
1103
1104 2004-10-19 Andrew Cagney <cagney@gnu.org>
1105
1106 GDB 6.3 branch created.
1107 * version.in: Bump to version 6.3.50_2004-10-19-cvs.
1108
1109 2004-10-15 Joel Brobecker <brobecker@gnat.com>
1110
1111 * dwarf2read.c (set_cu_language): Set language to Ada for
1112 DW_LANG_Ada83 and DW_LANG_Ada95.
1113
1114 2004-10-15 Michael Chastain <mec.gnu@mindspring.com>
1115
1116 From Andreas Schwab <schwab@suse.de>:
1117 * Makefile.in (.y.c, .l.c.): Fix the substitutions for
1118 for xmalloc and xrealloc.
1119
1120 2004-10-15 Andrew Cagney <cagney@gnu.org>
1121
1122 * ada-exp.y, ada-lex.l: Use xmalloc and xrealloc through out.
1123 * inf-ptrace.c: Include "gdb_wait.h" instead of <wait.h>.
1124 * Makefile.in (.y.c, .l.c): Don't replace xmalloc with xxmalloc.
1125 Update dependencies.
1126
1127 2004-10-15 Paul Hilfinger <Hilfinger@gnat.com>
1128
1129 * ada-lang.c (ada_lookup_symbol): Correct comment.
1130 (ada_evaluate_subexp): Change error message for
1131 OP_FUNCALL case so as not to indicate an internal error.
1132
1133 2004-10-15 Joel Brobecker <brobecker@gnat.com>
1134
1135 Committed by Paul Hilfinger.
1136 * ada-lang.c (ada_template_to_fixed_record_type_1): Detect bogus
1137 type sizes in XVE/XVU types, and emit a warning when that happens,
1138 instead of rounding up the size of the resulting type.
1139 Some minor reformatting.
1140 (ada_is_aligner_type): Do not consider a type as an aligner type
1141 if there is a corresponding XVS type as well.
1142 (ada_evaluate_subexp): For TERNOP_SLICE, handle cases where we
1143 have several levels of pointer indirection to the array.
1144
1145 2004-10-15 Jerome Guitton <guitton@gnat.com>
1146
1147 Committed by Paul Hilfinger.
1148 * ada-lang.c (check_size): New function.
1149 (coerce_unspec_val_to_type): call check_size to make sure
1150 that the object size is reasonable.
1151 (ada_evaluate_subexp): in UNOP_IND: Ditto. In TERNOP_SLICE:
1152 Implements the case when we get a reference when we evaluate
1153 the expression of one of the bounds of the slice.
1154 (ada_value_struct_elt): when a packed array field is
1155 a reference, use ada_coerce_ref to dereference it; use
1156 ada_value_ind only if it is a pointer.
1157
1158 2004-10-15 Joel Brobecker <brobecker@gnat.com>
1159
1160 * mips-tdep.c (mips32_scan_prologue): Move the implementation up
1161 a bit to avoid the necessity of an advance declaration. Remove
1162 declaration.
1163 (set_reg_offset): Move implemenation up.
1164 (mips16_get_imm): Likewise.
1165 (mips16_scan_prologue): Likewise.
1166 (reset_saved_regs): Likewise.
1167 (mips32_scan_prologue): Likewise.
1168
1169 2004-10-14 Joel Brobecker <brobecker@gnat.com>
1170
1171 * mips-tdep.c (mips32_scan_prologue): Add advance declaration.
1172 Remove sp as a parameter, compute it internally instead. Move
1173 prologue scanning limit from heuristic_proc_desc to here.
1174 (mips16_scan_prologue): Likewise.
1175 (mips_insn16_frame_cache): Replace call to heuristic_proc_desc
1176 by call to mips16_scan_prologue.
1177 (mips_insn32_frame_cache): Replace call to heuristic_proc_desc
1178 by call to mips32_scan_prologue.
1179 (heuristic_proc_desc): Remove code that's no longer necessary.
1180 Update calls to mips16_scan_prologue and mips32_scan_prologue.
1181 (mips_skip_prologue): Update calls to mips16_scan_prologue
1182 and mips32_scan_prologue.
1183
1184 2004-10-14 Joel Brobecker <brobecker@gnat.com>
1185
1186 * mips-tdep.c (mips16_scan_prologue): Merge code from
1187 mips16_skip_prologue. Now return the address of the first
1188 instruction past the function prologue.
1189 (mips16_skip_prologue): Remove, no longer necessary.
1190 (mips_skip_prologue): Replace call to mips16_skip_prologue
1191 by call to mips16_scan_prologue.
1192
1193 2004-10-14 Joel Brobecker <brobecker@gnat.com>
1194
1195 * mips-tdep.c (mips32_scan_prologue): Merge code from
1196 mips32_skip_prologue. Now return the address of the first
1197 instruction past the function prologue.
1198 (mips32_skip_prologue): Remove. No longer necessary.
1199 (mips16_skip_prologue): Add parameter end_pc instead of
1200 computing it.
1201 (mips_skip_prologue): Compute the upper limit for the
1202 prologue scanning. Update call to mips16_skip_prologue.
1203 Replace call to mips32_skip_prologue by call to
1204 mips32_scan_prologue.
1205
1206 2004-10-14 Mark Kettenis <kettenis@gnu.org>
1207
1208 * hppa-tdep.c (hppa_frame_cache): Add support for OpenBSD and
1209 NetBSD system call stubs that store %rp in the ERP slot of the
1210 stack frame.
1211
1212 * source.c: Always define O_BINARY to 0 if not defined already.
1213 (openp): Unconditionally use O_BINARY.
1214
1215 * top.c (gdb_readline): Always accept "\r\n" as a line-ending.
1216 * event-top.c (gdb_readline2): Likewise.
1217
1218 2004-10-14 Orjan Friberg <orjanf@axis.com>
1219
1220 * cris-tdep.c (_initialize_cris_tdep): Re-add call to
1221 deprecated_add_core_fns which was removed by mistake.
1222
1223 2004-10-13 Kevin Buettner <kevinb@redhat.com>
1224
1225 * ia64-linux-nat.c (fill_gregset, fill_fpregset): Replace
1226 references to deprecated_registers[] with equivalent code.
1227
1228 2004-10-13 Kevin Buettner <kevinb@redhat.com>
1229
1230 * rs6000-tdep.c (rs6000_push_dummy_call): Replace references to
1231 ``deprecated_registers'' with equivalent code. Use gdb_assert()
1232 instead of explicit test and print statement.
1233
1234 2004-10-12 Mark Kettenis <kettenis@gnu.org>
1235
1236 * sparc-nat.c: Include "inf-ptrace.h".
1237 (sparc_target): New function.
1238 * sparc-nat.h: Update copyright year.
1239 (sparc_target): New prototype.
1240 * sparcnbsd-nat.c: Don't include "gdbcore.h", include "target.h".
1241 (_initialize_sparcnbsd_nat): Construct and add target vector.
1242 * sparc64nbsd-nat.c: Include "target.h".
1243 (_initialize_sparc64nbsd_nat): Construct and add target vector.
1244 * Makefile.in (sparc-nat.o, sparcnbsd-nat.o, sparc64nbsd-nat.o):
1245 Update dependencies.
1246 * config/sparc/nbsd64.mh (NATDEPFILES): Remove infptrace.o and
1247 inftarg.o, add inf-ptrace.o.
1248 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1249 inftarg.o, add inf-ptrace.o and bsd-kvm.o.
1250 (NAT_FILE): Set to nm-bsd.h.
1251 (LOADLIBES): New variable.
1252 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
1253 infarg.o, add inf-ptrace.o.
1254 * config/sparc/nm-nbsdaout.h: Remove file.
1255 * config/sparc/fbsd.mh (NATDEPFILES): Add inf-ptrace.o.
1256 * config/sparc/linux.mh (NATDEPFILES): Add inf-ptrace.o.
1257 * config/sparc/linux64.mh (NATDEPFILES): Add inf-ptrace.o.
1258
1259 * defs.h [!FOPEN_RB]: Include "fopen-bin.h" instead of
1260 "fopen-same.h". Update comment.
1261
1262 2004-10-11 Mark Kettenis <kettenis@gnu.org>
1263
1264 * i386gnu-nat.c: Include "gdb_string.h".
1265 (fetch_fpregs): Use i387_supply_fxsave to fill the floating-point
1266 registers when the floating-point state isn't initialized.
1267 * Makefile.in (i386gnu-nat.o): Update dependencies.
1268
1269 2004-10-11 David Anderson <davea@sgi.com>
1270
1271 * regcache.c (regcache_raw_read): Comment was missing "to".
1272 Extraneous ' removed.
1273 * gdb_thread_db.h (struct td_thrinfo): ti_lid field
1274 comment now describes use.
1275
1276 2004-10-11 Orjan Friberg <orjanf@axis.com>
1277
1278 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start)
1279 (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
1280 (cris_sigtramp_frame_this_id, cris_sigtramp_frame_prev_register)
1281 (cris_sigtramp_frame_sniffer): New functions.
1282 (cris_gdbarch_init): Hook in signal trampoline unwinder.
1283 (cris_dwarf2_reg_to_regnum, cris_dwarf2_frame_init_reg): New functions.
1284 (cris_gdbarch_init): Hook in Dwarf-2 unwinder.
1285 (struct gdbarch_tdep, set_cris_dwarf2_cfi, cris_dump_tdep)
1286 (cris_gdbarch_init, _initialize_cris_tdep): Add CRIS Dwarf-2 CFI usage
1287 command.
1288 (cris_version_update): Remove, replace with ...
1289 (set_cris_version): New function.
1290 (struct gdbarch_tdep, cris_mode, cris_mode_update)
1291 (cris_cannot_store_register, cris_dump_tdep, cris_gdbarch_init)
1292 (_initialize_cris_tdep): Remove CRIS mode command.
1293 (cris_fpless_backtrace, _initialize_cris_tdep): Remove
1294 cris-fpless-backtrace command.
1295 (cris_scan_prologue): Fix prologue scanning limit.
1296 (cris_register_type): Update to reflect actual registers.
1297 (cris_register_bytes_ok) Remove.
1298 (cris_gdbarch_init): Remove support for CRIS v8 and v9.
1299 Remove set_gdbarch_deprecated_register_size,
1300 set_gdbarch_deprecated_register_byte, set_gdbarch_register_bytes_ok.
1301
1302 2004-10-10 Andrew Cagney <cagney@gnu.org>
1303
1304 * ada-lang.c (lim_warning): Add ATTR_FORMAT prototype and FIXME
1305 comment.
1306
1307 2004-10-10 Joel Brobecker <brobecker@gnat.com>
1308
1309 * mips-tdep.c (mips16_scan_prologue): Remove redundant code.
1310
1311 2004-10-10 Joel Brobecker <brobecker@gnat.com>
1312
1313 * mips-tdep.c (mips16_scan_prologue): Renames
1314 mips16_heuristic_proc_desc. Update comment.
1315 (mips32_scan_prologue): Renames mips32_heuristic_proc_desc.
1316 (heuristic_proc_desc): Update calls to the 2 functions above.
1317
1318 2004-10-10 Joel Brobecker <brobecker@gnat.com>
1319
1320 * mips-tdep.c (mips_insn16_frame_cache): Remove unused variables.
1321 Update comments. Also immediately return empty cache when the start
1322 address of our function could not be found.
1323 (mips_insn32_frame_cache): Likewise.
1324
1325 2004-10-10 Joel Brobecker <brobecker@gnat.com>
1326
1327 * mips-tdep.c (mips16_decode_reg_save): Delete, no longer used.
1328 (mips_insn16_frame_cache): Pass frame cache in call to
1329 heuristic_proc_desc. Move some code to mips16_heuristic_proc_desc.
1330 Remove code that became redundant as a consequence.
1331 (mips32_heuristic_proc_desc): No longer compute a fake
1332 procedure descriptor. Compute the full frame cache instead.
1333 Some minor comment reformatting.
1334
1335 2004-10-10 Jim Blandy <jimb@redhat.com>
1336
1337 * MAINTAINERS (generic symtabs, dwarf readers, elf reader, stabs
1338 reader, tracing bytecode stuff): Remove self.
1339
1340 2004-10-10 Mark Kettenis <kettenis@gnu.org>
1341
1342 * sparc64-linux-tdep.c: Update copyright year. Don't include
1343 "solib-svr4.h".
1344 (sparc64_linux_svr4_fetch_link_map_offsets): Remove function.
1345 (sparc64_linux_init_abi): Don't set solib_svr4_link_map_offsets.
1346 * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
1347
1348 * sparc-linux-tdep.c: Update copyright year.
1349 (sparc_linux_sigtramp_start): Change first argument from CORE_ADDR
1350 to struct frame_info *. Use safe_frame_unwind_memory instead of
1351 deprecated_read_memory_nobpt.
1352 (sparc32_linux_sigtramp_start, sparc32_linux_rt_sigtramp_start):
1353 Change argumen from CORE_ADDR to struct frame_info *. Adjust for
1354 changed signature of sparc_linux_sigtramp_start.
1355 (sparc32_linux_pc_in_sigtramp): Remove function.
1356 (sparc32_linux_sigtramp_p): New function.
1357 (sparc32_linux_sigtramp_frame_sniffer): Use
1358 sparc32_linux_sigtramp_p instead of sparc32_linux_pc_in_sigtramp.
1359
1360 * sparc-linux-tdep.c (sparc32_linux_svr4_fetch_link_map_offsets):
1361 Remove function.
1362 (sparc32_linux_init_abi): Don't set solib_svr4_link_map_offsets.
1363
1364 * ada-lang.c (lim_warning): Re-implement as a varargs function.
1365 (decode_packed_array_type, value_subscript_packed)
1366 (ada_evaluate_subexp, to_fixed_range_type): Remove redundant
1367 argument in call to lim_warning.
1368
1369 * configure.in: Really disable the TUI if an enhanced curses
1370 library isn't found.
1371 * configure: Regenerate.
1372
1373 2004-10-09 Mark Kettenis <kettenis@gnu.org>
1374
1375 * config/i386/nbsdaout.mh (NAT_FILE): Set to solib.h.
1376 * config/i386/nbsdelf.mh (NAT_FILE): Set to solib.h.
1377 * config/i386/nm-nbsdaout.h: Remove file.
1378 * config/i386/nm-fbsd.h (link_object, lo_name, lo_library)
1379 (lo_unused, lo_major, lo_minor, lo_next, link_map, lm_addr)
1380 (lm_name, lm_next, lm_lop, lm_lob, lm_rwt, lm_ld, lm_lpd)
1381 (link_dynamic_2, ld_loaded, ld_need, ld_rules, ld_got, ld_plt)
1382 (ld_rel, ld_hash, ld_stab, ld_stab_hash, ld_buckets, ld_symbols)
1383 (ld_symb_size, ld_text, ld_plt_sz, rtc_symb, rtc_sp, rtc_next)
1384 (ld_debug, ldd_version, ldd_in_debugger, ldd_sym_loaded)
1385 (ldd_bp_addr, ldd_bp_inst, ldd_cp, link_dynamic, ld_version)
1386 (ldd, ld_un, ld_2): Remove defines.
1387 * config/i386/nm-obsd.h: Likewise.
1388
1389 2004-10-09 Paul Hilfinger <hilfingr@nile.gnat.com>
1390
1391 * ada-lex.l: Remove useless rule whose right-context clause
1392 causes unreferenced static function warning for yyrealloc.
1393 (ada_flex_use): Remove the artificial reference to yyrealloc.
1394
1395 2004-10-08 Andrew Cagney <cagney@gnu.org>
1396
1397 * target.h (struct target_ops): Rename to_xfer_memory to
1398 deprecated_xfer_memory.
1399 * target.c: Update.
1400 (deprecated_debug_xfer_memory): Rename debug_to_xfer_memory.
1401 * wince.c: Update.
1402 * win32-nat.c: Update.
1403 * v850ice.c: Update.
1404 * uw-thread.c: Update.
1405 * thread-db.c: Update.
1406 * sol-thread.c: Update.
1407 * remote.c: Update.
1408 * remote-vx.c: Update.
1409 * remote-st.c: Update.
1410 * remote-sim.c: Update.
1411 * remote-sds.c: Update.
1412 * remote-rdp.c: Update.
1413 * remote-rdi.c: Update.
1414 * remote-mips.c: Update.
1415 * remote-m32r-sdi.c: Update.
1416 * remote-e7000.c: Update.
1417 * procfs.c: Update.
1418 * ppc-bdm.c: Update.
1419 * nto-procfs.c: Update.
1420 * monitor.c: Update.
1421 * linux-nat.c: Update.
1422 * inftarg.c: Update.
1423 * hpux-thread.c: Update.
1424 * go32-nat.c: Update.
1425 * gnu-nat.c: Update.
1426 * exec.c: Update.
1427 * corelow.c: Update.
1428 * bsd-kvm.c: Update.
1429 * aix-thread.c: Update.
1430
1431 2004-10-08 Andrew Cagney <cagney@gnu.org>
1432
1433 * target.c (debug_target): Move to near start of file.
1434 (target_stopped_data_address_p): Re-org logic, add casts.
1435
1436 2004-10-02 Mark Kettenis <kettenis@gnu.org>
1437
1438 * solib-sunos.c [HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS] (link_map)
1439 (lm_addr, lm_name, lm_next, link_dynamic_2, ld_loaded, rtc_symb)
1440 (rtc_sp, rtc_next, ld_debug, ldd_in_debugger, ldd_bp_addr)
1441 (ldd_bp_inst, ldd_cp, link_dynamic, ld_version, ldd, ld_un, ld_2):
1442 New defines.
1443
1444 2004-10-08 Jeff Johnston <jjohnstn@redhat.com>
1445
1446 * target.h (to_stopped_data_address): Change prototype to
1447 take a CORE_ADDR pointer and return an int.
1448 * target.c (update_current_target): Change to_stopped_data_address
1449 to match new prototype.
1450 (debug_to_stopped_data_address): Change appropriately.
1451 * breakpoint.c (bpstat_stop_status): Change call to
1452 target_stopped_data_address to use new prototype.
1453 * frv-tdep.c (frv_have_stopped_data_address): New function.
1454 (frv_stopped_data_address): Change to new prototype and
1455 functionality.
1456 * ia64-linux-nat.c (ia64_stopped_data_address): Change to new
1457 prototype and functionality.
1458 (ia64_stopped_by_watchpoint): New function.
1459 * i386-nat.c (i386_stopped_data_address): Change to new
1460 prototype and functionality.
1461 (i386_stopped_by_watchpoint): New function.
1462 * remote.c (remote_stopped_data_address): Change to new prototype
1463 and functionality.
1464 * remote-m32r-sdi.c (m32r_stopped_data_address): Ditto.
1465 * config/frv/tm-frv.h (frv_stopped_data_address): Change prototype.
1466 (STOPPED_BY_WATCHPOINT): Change to use frv_have_stopped_data_address.
1467 * config/i386/nm-i386.h (STOPPED_BY_WATCHPOINT): Change to use
1468 new i386_stopped_by_watchpoint function.
1469 (i386_stopped_by_watchpoint): New prototype.
1470 (i386_stoppped_data_address): Change to new prototype.
1471 * config/ia64/nm-linux.h (STOPPED_BY_WATCHPOINT): Change to use
1472 new ia64_stopped_by_watchpoint function.
1473 (ia64_stopped_by_watchpoint): New prototype.
1474 (ia64_stopped_data_address): Ditto.
1475
1476 2004-10-08 Paul Hilfinger <Hilfinger@gnat.com>
1477
1478 * ada-typeprint.c (ada_print_type): Use int_string for printing
1479 modulus of modular type.
1480 * ada-lang.h (ada_modulus): Change return type to unsigned.
1481 * ada-lang.c (ada_language_arch_info): Correct type of
1482 string_char_type.
1483 (ada_modulus): Return unsigned result.
1484 (ada_lookup_symbol): Remove user disambiguation and modify comment
1485 accordingly.
1486
1487 2004-10-08 Eric Botcazou <ebotcazou@act-europe.fr>
1488
1489 Committed by Paul Hilfinger.
1490 * ada-lang.c (decode_packed_array): On big-endian targets,
1491 left-justify the value if it comes with a modular type.
1492
1493 2004-10-08 Joel Brobecker <brobecker@gnat.com>
1494
1495 Committed by Paul Hilfinger.
1496 * ada-lang.c (template_to_static_fixed_type): Fix a small typo.
1497 (is_name_suffix): Add support for "___JM" suffixes.
1498 (ada_check_typedef): Renames ada_completed_type.
1499 Update all users of CHECK_TYPEDEF, check_typedef, and
1500 ada_complete_type to call ada_check_typedef.
1501 * ada-typeprint.c: Likewise.
1502 * ada-valprint.c: Likewise.
1503
1504 2004-10-08 Corinna Vinschen <vinschen@redhat.com>
1505
1506 * infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
1507
1508 2004-10-08 Nick Roberts <nickrob@snap.net.nz>
1509
1510 * MAINTAINERS: Update e-mail address.
1511
1512 2004-10-07 Daniel Jacobowitz <dan@debian.org>
1513
1514 From Maciej W. Rozycki <macro@mips.com>:
1515 * mips-tdep.c (mips32_next_pc): Check the register's contents,
1516 not its number for BLEZ/BLEZL and BGTZ/BGTZL.
1517
1518 2004-10-07 Kei Sakamoto <sakamoto.kei@renesas.com>
1519
1520 * m32r-tdep.c (decode_prologue): Support functions written
1521 in assembler language. Recognize trap instructions as the
1522 end of prologue.
1523 (m32r_frame_unwind_cache): Ditto.
1524 (m32r_skip_prologue): Extend search limit. Quit analyzing
1525 prologue if pc's location is not readable.
1526
1527 2004-10-06 Paul N. Hilfinger <Hilfinger@gnat.com>
1528
1529 * Makefile.in (.l.c): Do conversions of names of alloc and free
1530 functions that are done for .y.c files, plus special one
1531 for yy_flex_realloc. Also, correct missing-file tests here.
1532 * ada-lex.l (malloc, free): Remove macros.
1533 (resize_tempbuf): Use "realloc"; rely on sed changes to convert to
1534 xrealloc.
1535 (ada_flex_use): Dummy definition to remove warnings about unused
1536 functions.
1537 * ada-exp.y (dummy_string_to_ada_operator): Temporary definition
1538 to suppress warning.
1539
1540 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1541
1542 * sh-tdep.c (sh_return_value_nofpu): New function, implementing
1543 RETURN_VALUE.
1544 (sh_return_value_fpu): Ditto for CPUs with FPU.
1545 (sh_gdbarch_init): Remove STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
1546 RETURN_VALUE_ON_STACK and USE_STRUCT_CONVENTION throughout.
1547 Install sh_return_value_nofpu resp. sh_return_value_fpu as
1548 RETURN_VALUE functions.
1549
1550 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1551
1552 * sh-tdep.c (sh_pseudo_register_read): Add PSEUDO_BANK_REGNUM handling.
1553 (sh_pseudo_register_write): Ditto.
1554
1555 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1556
1557 * sh-tdep.c (IS_MACL_STS): New define.
1558 (IS_MOVI20): Ditto.
1559 (IS_MACL_LDS): Ditto.
1560 (sh_analyze_prologue): Recognize STS.L MACL,@-r15 and MOVI20
1561 instructions in prologue.
1562 (sh_in_function_epilogue_p): Recognize LDS.L @r15+,MACL and MOVI20
1563 instructions in epilogue.
1564
1565 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1566
1567 * sh-tdep.c (SH_NUM_REGS): Define as 67.
1568 (sh_sh_register_name): Add eight empty register names.
1569 (sh_sh3_register_name): Ditto.
1570 (sh_sh3e_register_name): Ditto.
1571 (sh_sh2e_register_name): Ditto.
1572 (sh_sh2a_register_name): New function, defining SH2A register set.
1573 (sh_sh2a_nofpu_register_name): New function, defining SH2A register set
1574 in nofpu case.
1575 (sh_sh_dsp_register_name): Add eight empty register names.
1576 (sh_sh3_dsp_register_name): Ditto.
1577 (sh_sh4_register_name): Ditto.
1578 (sh_sh4_nofpu_register_name): Ditto.
1579 (sh_sh4al_dsp_register_name): Ditto.
1580 (sh2a_show_regs): New function.
1581 (sh2a_nofpu_show_regs): New function.
1582 (sh_sh2a_register_type): New function.
1583 (do_bank_register_info): New function.
1584 (sh_print_pseudo_register): Call do_bank_register_info.
1585 Call sh_print_pseudo_register for valid "bank" register.
1586 (sh_sh2a_register_sim_regno): New function.
1587 (sh_gdbarch_init): Add bfd_mach_sh2a and bfd_mach_sh2a_nofpu handling.
1588 Increment pseudo register count by one for all sh variants with
1589 pseudo registers to accomodate pseudo bank register.
1590 * sh-tdep.h: Add register numbers for R0_BANK0_REGNUM, MACHB_REGNUM,
1591 IVNB_REGNUM, PRB_REGNUM, GBRB_REGNUM, MACLB_REGNUM, BANK_REGNUM,
1592 IBCR_REGNUM, IBNR_REGNUM, TBR_REGNUM and PSEUDO_BANK_REGNUM.
1593 Increment pseudo register numbers.
1594
1595 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1596
1597 * dwarf2read.c (read_subroutine_type): Call make_function_type
1598 instead of lookup_function_type.
1599
1600 2004-10-05 Jim Blandy <jimb@redhat.com>
1601
1602 * linux-nat.c (_initialize_linux_nat): Rename child_ops.
1603 (Previous change missed some uses.)
1604
1605 2004-10-05 Andrew Cagney <cagney@gnu.org>
1606
1607 * target.h (deprecated_child_ops): Rename child_ops.
1608 * wince.c: Update copyright. Rename child_ops.
1609 * win32-nat.c: Rename child_ops.
1610 * target.c: Rename child_ops.
1611 * rs6000-nat.c: Rename child_ops.
1612 * linux-nat.c: Rename child_ops.
1613 * infttrace.c: Rename child_ops.
1614 * inftarg.c: Rename child_ops.
1615 * infptrace.c: Rename child_ops.
1616 * hppah-nat.c: Update copyright. Rename child_ops.
1617 * hpux-thread.c: Update copyright. Rename child_ops.
1618
1619 2004-10-05 Daniel Jacobowitz <dan@debian.org>
1620
1621 * remote.c (remote_xfer_partial): Handle TARGET_OBJECT_MEMORY.
1622
1623 2004-10-05 Andrew Cagney <cagney@gnu.org>
1624
1625 * version.in: Bump to version 6.2.50_YYYY-MM-DD-cvs.
1626
1627 2004-10-05 Daniel Jacobowitz <dan@debian.org>
1628
1629 * dwarf2read.c (REF_HASH_SIZE): Move earlier.
1630 (die_ref_table): Remove.
1631 (struct dwarf2_cu): Add DIES, DEPENDENCIES, and DIE_REF_TABLE.
1632 (struct dwarf2_per_cu_data): Add PSYMTAB. Add a comment describing
1633 the usage of this type.
1634 (struct dwarf2_per_objfile): Update comment for ALL_COMP_UNITS.
1635 (struct dwarf2_pinfo, PST_PRIVATE, DWARF_INFO_OFFSET): Remove.
1636 (struct dwarf2_queue_item, dwarf2_queue, dwarf2_queue_tail): New.
1637 (dwarf2_create_include_psymtab): Update comment.
1638 (find_partial_die): Remove third argument. Remove unreachable call
1639 to error ().
1640 (dwarf2_find_containing_comp_unit): Update comments. Change one
1641 assertion to an error. Remove an unreachable error.
1642 (dwarf2_find_comp_unit): Update comments.
1643 (type_at_offset): Remove dead code.
1644 (make_cleanup_free_die_list, dwarf2_empty_hash_tables): Remove.
1645 (store_in_ref_table): Add CU argument.
1646 (follow_die_ref): Take DIE, attribute, and CU arguments. Handle
1647 inter-compilation-unit references.
1648 (load_full_comp_unit, process_full_comp_unit): New functions, based
1649 on psymtab_to_symtab_1.
1650 (psymtab_to_symtab_1): Use them.
1651 (dwarf2_add_dependence): New function.
1652 (dwarf2_build_psymtabs_hard): Set the psymtab in per_cu. Always create
1653 a per_cu structure, and save it in READ_PSYMTAB_PRIVATE.
1654 (partial_die_parent_scope, guess_structure_name): Update for changes
1655 to find_partial_die.
1656 (dwarf2_psymtab_to_symtab): Initialize dwarf2_per_objfile here.
1657 (queue_comp_unit, process_queue, dwarf2_release_queue): New.
1658 (read_comp_unit): Don't call dwarf2_empty_hash_tables.
1659 (read_die_and_children): Update call to store_in_ref_table.
1660 (do_free_die_list_cleanup): Remove.
1661 (fixup_partial_die): Update for changes to find_partial_die.
1662 (read_full_die): Handle queueing absolute references.
1663 (read_attribute_value): Use DW_ADDR for all DW_FORM_ref* forms.
1664 (dwarf2_attr, die_specification, die_type)
1665 (die_containing_type, dwarf2_extension): Update calls to
1666 follow_die_ref.
1667 (dump_die): Update DW_FORM_ref* handling.
1668 (dwarf2_get_ref_die_offset): Likewise.
1669 (free_one_comp_unit): Release the dies list.
1670 (dwarf2_mark_helper): New function.
1671 (dwarf2_mark): Use it.
1672
1673 2004-10-05 Mark Kettenis <kettenis@jive.nl>
1674
1675 * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
1676 when writing to memory.
1677
1678 2004-10-05 Kei Sakamoto <sakamoto.kei@renesas.com>
1679
1680 * m32r-tdep.c (m32r_use_struct_convention): Delete function.
1681 (m32r_extract_struct_value_address): Delete function.
1682 (m32r_return_value): New function.
1683 (m32r_gdbarch_init): Instead of store_return_value,
1684 extract_return_value, deprecated_extract_struct_value_address
1685 and deprecated_use_struct_convention, set return_value.
1686
1687 2004-10-03 Daniel Jacobowitz <dan@debian.org>
1688
1689 * dwarf2read.c (read_subrange_type): Add comment for variable
1690 sized arrays.
1691
1692 2004-10-03 Paul Hilfinger <hilfingr@nile.gnat.com>
1693
1694 * Makefile.in (.l.c): Modify rule for compatibility with recent
1695 versions of flex, and remove most command-line options.
1696 * ada-lex.l: Add %options line in place of -I -i and -s command-line
1697 options.
1698
1699 2004-10-02 Paul N. Hilfinger <Hilfinger@gnat.com>
1700
1701 Turn on initial Ada support (mainly expression evaluation).
1702
1703 * Makefile.in (SFILES): Remove ada-tasks.c.
1704 (HFILES_NO_SRCDIR): Add ada-lang.h.
1705 (COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
1706 (YYOBJ): Add ada-exp.o.
1707 (rule .l.c): Generalize to not mention ada.
1708 * symtab.c: Include ada-lang.h.
1709 (symbol_natural_name, symbol_demangled_name)
1710 (symbol_search_name): Add Ada case.
1711
1712 2004-10-01 Andrew Cagney <cagney@gnu.org>
1713
1714 * Makefile.in (COMMON_OBS): Add inf-child.o.
1715 * config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
1716 * config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
1717 * config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
1718 * config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
1719 * config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
1720 * config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
1721 * config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
1722 * config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
1723 * config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
1724 * config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
1725 * config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
1726 * config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
1727 * config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
1728
1729 * target.c (xfer_using_stratum): Change return type to LONGEST.
1730 On each iteration offset, readbuf and writebuf.
1731 * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
1732 partial_length, and read/modify/write predicate, update comments.
1733 Pass buffer.word to ptrace write.
1734
1735 2004-10-01 Paul N. Hilfinger <Hilfinger@gnat.com>
1736
1737 * symfile.c (init_filename_language_table): Add extensions for
1738 Ada.
1739 * defs.h (enum language): Add language_ada.
1740 * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
1741 * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
1742 (add_symbols_from_enclosing_procs): Make a no-op for now.
1743 (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
1744 (extended_canonical_line_spec, find_sal_from_funcs_and_line)
1745 (find_line_in_linetable, find_next_line_in_linetable)
1746 (read_all_symtabs, is_plausible_func_for_line)
1747 (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
1748 (is_runtime_sym_defined, check_size): Remove declaration.
1749 (function_name_from_pc, ada_translate_error_message)
1750 (ada_lookup_minimal_symbol): Remove definition.
1751 (ada_add_block_symbols): Remove useless label.
1752 * ada-lang.h (ada_maybe_exception_partial_symbol): Remove
1753 useless declaration.
1754 (ada_is_exception_sym): Likewise.
1755
1756 2004-09-30 Kei Sakamoto <sakamoto.kei@renesas.com>
1757
1758 Add m32r-linux support.
1759 * configure.tgt: Add m32r*-*-linux*.
1760 * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
1761 and m32r-linux-tdep.c.
1762 (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
1763 * m32r-tdep.c: Move some definitions to m32r-tdep.h.
1764 * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
1765 m32r-linux-tdep.c.
1766 * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
1767 config/m32r/linux.mh, config/m32r/linux.mt,
1768 config/m32r/nm-linux.h: New files.
1769
1770 2004-09-30 Joel Brobecker <brobecker@gnat.com>
1771
1772 * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
1773 (mips32_fetch_instruction): Remove, unused.
1774
1775 2004-09-30 Joel Brobecker <brobecker@gnat.com>
1776
1777 * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
1778 conditions that will always be true.
1779
1780 2004-09-30 Mark Kettenis <kettenis@gnu.org>
1781
1782 * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
1783 (vaxbsd_fetch_inferior_registers): Rename from
1784 fetch_inferior_registers. Make static.
1785 (vaxbsd_store_inferior_registers): Rename from
1786 store_inferior_registers. Make static.
1787 (_initialize_vaxbsd_nat): Construct and add target vector.
1788 * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1789 inftarg.o. Add inf-child.o and inf-ptrace.o.
1790 * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
1791 inftarg.o. Add inf-child.o and inf-ptrace.o.
1792 (NAT_FILE): Remove.
1793 * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
1794 inftarg.o. Add inf-child.o and inf-ptrace.o.
1795 (NAT_FILE): Remove.
1796 * Makefile.in (vaxbsd-nat.o): Update dependencies.
1797
1798 * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
1799 (m88kbsd_fetch_inferior_registers): Rename from
1800 fetch_inferior_registers. Make static.
1801 (m88kbsd_store_inferior_registers): Rename from
1802 store_inferior_registers. Make static.
1803 (_initialize_m88kbsd_nat): New prototype and function.
1804 * config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
1805 inftarg.o. Add inf-child.o and inf-ptrace.o.
1806 (NAT_FILE): Remove.
1807 * Makefile.in (m88kbsd-nat.o): Update dependencies.
1808
1809 2004-09-30 Andrew Cagney <cagney@gnu.org>
1810
1811 * target.c (target_xfer_partial): New function.
1812 (target_read_memory_partial, target_write_memory_partial)
1813 (default_xfer_partial, target_read_partial, target_write_partial)
1814 (xfer_using_stratum): Use.
1815 (debug_to_xfer_partial): Delete function.
1816 (setup_target_debug): Do not override to_xfer_partial.
1817
1818 2004-09-30 Mark Kettenis <kettenis@chello.nl>
1819
1820 * fork-child.c: Update copyright year. Fix coding style.
1821
1822 2004-09-29 Mark Kettenis <kettenis@gnu.org>
1823
1824 * defs.h (msavestring, mstrsave): Remove prototypes.
1825 * utils.c (msavestring, mstrsave): Remove functions.
1826 * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
1827 * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
1828 of mstrsave.
1829 * source.c (find_and_open_source): Use xstrdup instead of
1830 mstrsave.
1831
1832 2004-09-30 Andrew Cagney <cagney@gnu.org>
1833
1834 * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
1835 (inf_ptrace_xfer_memory): Delete.
1836 * target.c (target_xfer_partial_p, xfer_using_stratum): New.
1837 (target_read_memory, target_write_memory): Use xfer_using_stratum
1838 when target_xfer_partial_p.
1839 (debug_target): Move to start of file.
1840 (target_read_memory_partial, target_write_memory_partial): Use
1841 to_xfer_partial when target_xfer_partial_p.
1842
1843 * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
1844 inf_ptrace_xfer_memory with equivalent code.
1845 * inftarg.c (child_xfer_partial): When performing a write, pass
1846 writebuf to child_xfer_memory.
1847
1848 * target.c (target_read_string): Use target_read_memory instead of
1849 target_xfer_memory.
1850
1851 2004-09-29 Andrew Cagney <cagney@gnu.org>
1852
1853 * infptrace.c (kill_inferior): Fix typo, in previous inline. Pass
1854 the address of status.
1855
1856 * infptrace.c (ptrace_wait): Mention problem with HPUX.
1857 (kill_inferior): Inline ptrace_wait call.
1858 * linux-nat.c (kill_inferior): Inline ptrace_wait call.
1859 * inftarg.c (child_wait): Inline ptrace_wait call.
1860
1861 * target.h (struct target_ops): Delete field to_post_wait.
1862 (target_post_wait): Delete macro.
1863 (child_post_wait): Delete declaration.
1864 * target.c (update_current_target, update_current_target)
1865 (debug_to_post_wait, setup_target_debug): Delete functions and
1866 references.
1867 * infttrace.c (ptrace_wait): Delete call to target_post_wait.
1868 * inftarg.c (child_post_wait): Delete.
1869 (init_child_ops): Do not set to_post_wait.
1870 * infptrace.c (ptrace_wait): Delete call to target_post_wait.
1871 * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
1872 * inf-child.c (inf_child_post_wait): Delete.
1873 (inf_child_target): Do not set to_post_wait.
1874 * inf-ptrace.c (inf_ptrace_post_wait): Delete.
1875 (inf_ptrace_target): Do not set to_post_wait.
1876
1877 * wince.c (child_ops): Delete.
1878 * win32-nat.c (child_ops): Delete.
1879
1880 * inftarg.c (inftarg_set_find_memory_regions)
1881 (inftarg_set_make_corefile_notes): Delete functions.
1882 (_initialize_linux_nat): Inline calls.
1883
1884 * target.h (child_ops): Declare.
1885 * inftarg.c (child_ops): Move from here ...
1886 * target.c (child_ops): ... to here.
1887 * wince.c (child_ops): Delete extern declaration.
1888 * win32-nat.c (child_ops): Delete extern declaration.
1889 * linux-nat.c (child_ops): Delete extern declaration.
1890 * hpux-thread.c (child_ops): Delete extern declaration.
1891
1892 2004-09-28 Mark Kettenis <kettenis@gnu.org>
1893
1894 * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
1895
1896 2004-09-28 Mark Kettenis <kettenis@gnu.org>
1897
1898 * configure.in: Only set host_makefile_frag when building a native
1899 debugger.
1900 * configure: Regenerate.
1901
1902 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
1903 for OpenBSD ELF.
1904
1905 2004-09-28 Andrew Cagney <cagney@gnu.org>
1906
1907 Problem identified by Paul Hilfinger.
1908 * Makefile.in (ada_lex_c): Define.
1909 (ada-lex.o): Delete rule.
1910
1911 * linux-proc.c: Delete file.
1912 * Makefile.in: Update.
1913 * config/sparc/linux64.mh (NATDEPFILES):
1914 * config/sparc/linux.mh (NATDEPFILES): Update.
1915 * config/s390/s390.mh (NATDEPFILES): Update.
1916 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
1917 * config/powerpc/linux.mh (NATDEPFILES): Update.
1918 * config/pa/linux.mh (NATDEPFILES): Update.
1919 * config/mips/linux.mh (NATDEPFILES): Update.
1920 * config/m68k/linux.mh (NATDEPFILES): Update.
1921 * config/ia64/linux.mh (NATDEPFILES): Update.
1922 * config/i386/linux64.mh (NATDEPFILES): Update.
1923 * config/i386/linux.mh (NATDEPFILES): Update.
1924 * config/arm/linux.mh (NATDEPFILES): Update.
1925 * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
1926 * linux-nat.c: Update copyright. Include <sys/param.h>,
1927 <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
1928 "gdbthread.h", "gdb_stat.h", <fcntl.h>.
1929 (O_LARGEFILE): Possibly define.
1930 (_initialize_linux_nat, linux_proc_pending_signals)
1931 (add_line_to_sigset, linux_proc_xfer_memory)
1932 (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
1933 (linux_nat_do_registers, linux_nat_corefile_thread_callback)
1934 (struct linux_corefile_thread_data)
1935 (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
1936 (child_pid_to_exec_file): Insert code previously in linux-proc.c.
1937
1938 2004-09-16 Andrew Cagney <cagney@gnu.org>
1939
1940 * lin-lwp.c: Delete file.
1941 * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
1942 <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
1943 (status_to_str, init_lwp_list, add_lwp, delete_lwp)
1944 (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
1945 (linux_nat_attach, detach_callback, linux_nat_detach)
1946 (resume_callback, resume_clear_callback, linux_nat_resume)
1947 (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
1948 (stop_wait_callback, linux_nat_has_pending, flush_callback)
1949 (status_callback, running_callback, count_events_callback)
1950 (select_singlestep_lwp_callback, select_event_lwp_callback)
1951 (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
1952 (child_wait, stop_and_resume_callback, linux_nat_wait)
1953 (kill_callback, kill_wait_callback, linux_nat_kill)
1954 (linux_nat_create_inferior, linux_nat_mourn_inferior)
1955 (linux_nat_xfer_memory, linux_nat_thread_alive)
1956 (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
1957 (_initialize_linux_nat): New functions.
1958 * Makefile.in: Update all dependencies.
1959 * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
1960 * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1961 * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
1962 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
1963 * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1964 * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1965 * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1966 * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1967 * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1968 * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
1969 * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1970 * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1971 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
1972
1973 2004-09-27 Mark Kettenis <kettenis@gnu.org>
1974
1975 * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
1976 config/i386/obsd64.mh (NAT_FILE): Remove variable.
1977
1978 * configure.in: Don't comment out NATDEPFILES in the generated
1979 Makefile if NAT_FILE is unset.
1980 * configure: Regenerate.
1981
1982 2004-09-27 Andrew Cagney <cagney@gnu.org>
1983
1984 * infrun.c (check_for_old_step_resume_breakpoint): Delete.
1985 (insert_step_resume_breakpoint): Delete.
1986 (insert_step_resume_breakpoint_at_frame): New function.
1987 (insert_step_resume_breakpoint_at_sal): New function.
1988 (handle_inferior_event, step_into_function)
1989 (insert_step_resume_breakpoint): Simplify by using same.
1990
1991 * gdb_indent.sh (types): Add caddr_t to list of predefined types.
1992
1993 2004-09-26 Mark Kettenis <kettenis@gnu.org>
1994
1995 * fbsd-proc.c: Remove file.
1996 * Makefile.in (fbsd-proc.o): Remove dependency.
1997
1998 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
1999 code together.
2000
2001 * config/i386/nm-fbsd64.h: Remove file.
2002 * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2003
2004 2004-09-26 Mark Kettenis <kettenis@gnu.org>
2005
2006 * amd64-nat.h: Update copyright year.
2007 (amd64bsd_target): New prototype.
2008 * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
2009 (amd64bsd_target): New function.
2010 (amd64bsd_fetch_inferior_registers): Rename from
2011 fetch_inferior_registers. Make static.
2012 (amd64bsd_store_inferior_registers): Rename from
2013 store_inferior_registers. Make static.
2014 * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
2015 (_initialize_amd64fbsd_nat): Construct and add target vector.
2016 * amd64nbsd-nat.o: Include "target.h".
2017 (_initialize_amd64nbsd_nat): Construct and add target vector.
2018 * amd64obsd-nat.c: Include "target.h".
2019 (_initialize_amd64obsd_nat): Construct and add target vector.
2020 * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
2021 * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
2022 inftarg.o and fbsd-proc.o. Add inf-child.o, inf-ptrace.o and
2023 fbsd-nat.o.
2024 * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
2025 Remove infptrace.o and inftarg.o. Add inf-child.o and
2026 inf-ptrace.o.
2027 * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
2028 (amd64obsd-nat.o): Update dependencies.
2029
2030 2004-09-25 Mark Kettenis <kettenis@gnu.org>
2031
2032 * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
2033 * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
2034 * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
2035 * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
2036 * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
2037
2038 * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
2039 Inline attach call.
2040 (inf_ptrace_detach): Inline detach call.
2041
2042 * configure.in: Check for waddstr instead of mvwaddstr when
2043 searching for curses library. Check for wborder.
2044 * configure, config.in: Regenerate.
2045 * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
2046 available.
2047
2048 * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
2049
2050 2004-09-24 Robert Picco <Robert.Picco@hp.com>
2051
2052 Committed by Andrew Cagney.
2053 * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
2054 (show_remote_protocol_p_packet_cmd): New. Implement 'p' packet.
2055 configuration.
2056 (fetch_register_using_p): Implement 'p' packet. Based on code by
2057 Fernando Nasser.
2058 (remote_fetch_registers): Call fetch_register_using_p.
2059 (init_all_packet_configs, show_remote_cmd)
2060 (_initialize_remote): Add p-packet.
2061
2062 2004-09-24 Mark Kettenis <kettenis@gnu.org>
2063
2064 * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
2065 instead of call_ptrace. Call wait directly instead of
2066 ptrace_wait.
2067 (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
2068 (inf_ptrace_wait): Inline ptrace_wait call.
2069
2070 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
2071
2072 * Makefile.in (.y.c): Revert previous change. ../ylwrap was
2073 rolled back instead.
2074
2075 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
2076
2077 * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
2078 the new argument order.
2079
2080 2004-09-23 Corinna Vinschen <vinschen@redhat.com>
2081
2082 * MAINTAINERS: Remove "broken" from XStormy16 entry.
2083 * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
2084 (struct gdbarch_tdep): Remove.
2085 (struct xstormy16_frame_cache): New frame cache structure.
2086 (xstormy16_register_byte, xstormy16_register_raw_size)
2087 (xstormy16_reg_virtual_type, xstormy16_register_type)
2088 (xstormy16_push_arguments, xstormy16_push_return_address)
2089 (xstormy16_pop_frame, xstormy16_store_struct_return)
2090 (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
2091 (xstormy16_frame_saved_register, xstormy16_get_saved_register)
2092 (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
2093 (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
2094 (xstormy16_frame_chain, xstormy16_frame_chain_valid,
2095 (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
2096 (xstormy16_use_struct_convention): Drop gcc_p parameter.
2097 (xstormy16_extract_return_value, xstormy16_store_return_value):
2098 Regcachify. Drop useless struct convention handling.
2099 (xstormy16_register_type, xstormy16_return_value)
2100 (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
2101 (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
2102 (xstormy16_frame_prev_register, xstormy16_frame_this_id)
2103 (xstormy16_frame_base_address, xstormy16_frame_sniffer)
2104 (xstormy16_unwind_sp, xstormy16_unwind_pc)
2105 (xstormy16_unwind_dummy_id) : New functions.
2106 (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
2107 of xstormy16_scan_prologue.
2108 (xstormy16_frame_unwind): New frame_unwind structure.
2109 (xstormy16_frame_base): New frame_base structure.
2110 (xstormy16_gdbarch_init): Accomodate all of the above changes.
2111 Reshuffle for better readability. Also add dwarf2_frame_sniffer.
2112
2113 2004-09-22 Mark Kettenis <kettenis@gnu.org>
2114
2115 * language.c (language_gdbarch_post_init): Fix off-by one error.
2116
2117 2004-09-21 Daniel Jacobowitz <dan@debian.org>
2118
2119 * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
2120 (struct dwarf2_offset_and_type): New.
2121 (set_die_type, reset_die_and_siblings_types, get_die_type)
2122 (offset_and_type_hash, offset_and_type_eq): New functions.
2123 (read_structure_type, read_enumeration_type, read_array_type)
2124 (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
2125 (read_tag_reference_type, read_tag_const_type)
2126 (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
2127 (read_typedef, read_base_type, read_subrange_type): Use
2128 set_die_type.
2129
2130 2004-09-20 Daniel Jacobowitz <dan@debian.org>
2131
2132 * Makefile.in (dwarf2read.o): Update dependencies.
2133 * dwarf2read.c: Include "command.h" and "gdbcmd.h".
2134 (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
2135 and read_in_chain.
2136 (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
2137 mark, and has_form_ref_addr.
2138 (struct dwarf2_per_cu_data): New.
2139 (dwarf2_max_cache_age): New.
2140 (dwarf2_build_psymtabs_hard): Free cached compilation units
2141 after loading. Create and manage the list of compilation units.
2142 Remove unnecessary NULL initialization. Fix indentation.
2143 (psymtab_to_symtab_1): Initialize all of CU.
2144 (dwarf2_read_abbrevs): Set has_form_ref_addr.
2145 (find_partial_die): Use dwarf2_find_containing_comp_unit
2146 and load_comp_unit.
2147 (free_stack_comp_unit): Update comments. Clear the per-cu
2148 pointer. Handle aging.
2149 (dwarf2_find_containing_comp_unit, free_cached_comp_units)
2150 (age_cached_comp_units, free_one_cached_comp_unit)
2151 (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
2152 (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
2153 (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
2154 (show_dwarf2_cmd): New.
2155 (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
2156 and "maint show dwarf2 max-cache-age".
2157 * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
2158 externs.
2159 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
2160 global.
2161
2162 2004-09-20 Jeff Johnston <jjohnstn@redhat.com>
2163
2164 * dwarf2read.c (typename_concat): Change prototype to accept obstack
2165 and dwarf2_cu struct pointer as arguments. Change function to use
2166 obstack if provided and use dwarf2_cu to determine language-specific
2167 separator.
2168 (partial_die_parent_scope): Change comment to include java. Use
2169 new version of typename_concat instead of obconcat.
2170 (partial_die_full_name): Use typename_concat.
2171 (read_namespace): Ditto.
2172 (read_enumeration_type): Use typename_concat instead of obconcat.
2173 (new_symbol): Ditto.
2174 (add_partial_symbol): Enhance tests for C++ to also test for Java.
2175 (guess_structure_name): Ditto.
2176 (read_subroutine_type): Ditto.
2177 (read_structure_type): Ditto.
2178 (is_vtable_name): Add Java support.
2179 (determine_class_name): Switch to new typename_concat call.
2180 (determine_prefix): Switch to new typename_concat call.
2181 * jv-exp.y (FuncStart): New pattern.
2182 (MethodInvocation): Add support for simple function calls. Change
2183 warning message for other forms of inferior call currently not
2184 supported.
2185 * valarith.c (value_subscript): Treat an array with upper-bound
2186 of -1 as unknown size.
2187
2188 2004-09-20 Daniel Jacobowitz <dan@debian.org>
2189
2190 * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
2191 (lookup_partial_symtab): Use symtab_to_fullname.
2192
2193 2004-09-19 Jim Blandy <jimb@redhat.com>
2194
2195 * minsyms.c (lookup_minimal_symbol): Doc fix.
2196
2197 2004-09-20 Andrew Cagney <cagney@gnu.org>
2198
2199 * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
2200 CHILD_RESUME.
2201 * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
2202 * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
2203 KILL_INFERIOR.
2204 * infptrace.c: Update.
2205
2206 2004-09-19 Daniel Jacobowitz <dan@debian.org>
2207
2208 * symtab.c (output_source_filename): Mark first argument as const.
2209 (sources_info): Use symtab_to_fullname and psymtab_to_fullname
2210 for "info sources" output.
2211
2212 2004-09-20 Mark Kettenis <kettenis@gnu.org>
2213
2214 * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
2215 <machine/vmparam.h>.
2216 (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
2217 (register_u_addr): Remove prototype.
2218
2219 2004-09-19 Mark Kettenis <kettenis@gnu.org>
2220
2221 * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
2222 (i386bsd_fetch_inferior_registers): Rename from
2223 fetch_inferior_registers. Make static.
2224 (i386bsd_store_inferior_registers): Rename from
2225 store_inferior_registers. Make static.
2226 (i386bsd_target): New function.
2227 * i386bsd-nat.h: New file.
2228 * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
2229 "i386bsd-nat.h".
2230 (i386fbsd_resume): Rename from child_resume. Make static.
2231 (_initialize_i386fbsd_nat): Construct and add target vector.
2232 * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
2233 (_initialize_i386nbsd_nat): Construct and add target vector.
2234 * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
2235 Remove defines.
2236 * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
2237 and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
2238 * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
2239 inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
2240 (LOADLIBES): New variable.
2241 * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
2242 inf-ptrace.o. Remove inftarg.o.
2243 * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
2244 inf-ptrace.o. Remove inftarg.o.
2245 * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
2246 inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
2247 (LOADLIBES): New variable.
2248 * Makefile.in (i386bsd_nat_h): New variable.
2249 (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
2250 dependencies.
2251
2252 * sparc64nbsd-tdep.c: Include "objfiles.h".
2253 (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
2254 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
2255 svr4_lp64_fetch_link_map_offsets.
2256 * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
2257 "nbsd-tdep.h".
2258 (sparc64obsd_init_abi): Set in_solib_call_trampoline and
2259 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
2260 svr4_lp64_fetch_link_map_offsets.
2261 * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
2262 dependencies.
2263
2264 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
2265 * fbsd-nat.h: New file.
2266 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
2267 (fbsd_nat_h): New variable.
2268 (fbsd-nat.o): New dependency.
2269
2270 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
2271 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
2272
2273 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
2274 comment.
2275
2276 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
2277
2278 * ada-exp.y (type_int): New function to add layer of abstraction
2279 around references to expression types.
2280 (type_long): Ditto.
2281 (type_long_long): Ditto.
2282 (type_float): Ditto.
2283 (type_double): Ditto.
2284 (type_long_double): Ditto.
2285 (type_char): Ditto.
2286 (type_system_address): Ditto.
2287 (simple_exp): Use type_* functions in place of builtin_*
2288 variables.
2289 (exp): Ditto.
2290 (write_var_from_name): Ditto.
2291 (write_object_renaming): Ditto.
2292 * ada-lang.c (ada_create_fundamental_type): Remove redundant
2293 declaration.
2294 (build_ada_types): Remove, replacing with...
2295 (ada_language_arch_info): New function to initialize primitive
2296 type vector in language_arch_info.
2297 (ada_array_length): Remove use of builtin_type_ada_int.
2298 (value_pos_atr): Ditto.
2299 (ada_evaluate_subexp): Ditto.
2300 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
2301 builtin_type_ada_long_long, builtin_type_ada_char,
2302 builtin_type_ada_float, builtin_type_ada_double,
2303 builtin_type_ada_long_double, builtin_type_ada_natural,
2304 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
2305 (ada_builtin_types): Remove.
2306 (ada_language_defn): Remove entries for la_builtin_type_vector and
2307 string_char_type and use ada_language_arch_info.
2308 (_initialize_ada_language): Do type-vector initialization along
2309 the lines of c-lang.c.
2310 (ada_create_fundamental_type): Break up line.
2311 (ada_dump_symtab): Remove unused function.
2312 (enum ada_primitive_types): Define.
2313 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
2314 builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
2315 builtin_type_ada_float, builtin_type_ada_double,
2316 builtin_type_ada_long_double, builtin_type_ada_natural,
2317 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
2318 * ada-lex.l: Use type_* functions in place of builtin_* variables.
2319 (processInt): Ditto.
2320 (processReal): Ditto.
2321 (name_lookup): Ditto.
2322 * ada-typeprint.c (print_range): Use builtin_type_int, not
2323 builtin_type_ada_int.
2324
2325 2004-09-18 Mark Kettenis <kettenis@gnu.org>
2326
2327 * i386-tdep.c (i386_register_name): Rename regno to regnum.
2328
2329 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
2330 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
2331 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
2332 * configure.in: Improve checks for curses library by checking for
2333 mvwaddstr instead of initscr. Drop HP curses in favour of
2334 standard curses on HP-UX.
2335 * configure: Regenerated.
2336
2337 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
2338
2339 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
2340 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
2341 Minor formatting changes.
2342 (empty_array): Slight rewrite for formatting.
2343 (emit_char,parse,ada_language_defn,build_ada_types,
2344 ada_is_exception_sym, _initialize_ada_language): Move
2345 definitions around.
2346 (ada_dump_symtab): Remove unused definition.
2347 (ada_maybe_exception_partial_symbol): Remove unused definition.
2348
2349 2004-09-16 Andrew Cagney <cagney@gnu.org>
2350
2351 * inf-child.c: Include "gdb_string.h".
2352 (inf_child_core_file_to_sym_file): Delete.
2353 (inf_child_target): Set to_fetch_registers and to_store_registers.
2354 * inf-ptrace.c: Include "gdb_string.h".
2355 * Makefile.in: Update all dependencies.
2356
2357 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
2358 problem.
2359
2360 2004-09-14 Joel Brobecker <brobecker@gnat.com>
2361
2362 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
2363 call to heuristic_proc_desc. Remove code that became redundant
2364 as a consequence.
2365 (read_next_frame_reg): Remove special case for SP_REGNUM.
2366 (set_reg_offset): Fix small typo.
2367 (reset_saved_regs): New procedure.
2368 (mips32_heuristic_proc_desc): No longer compute a fake
2369 procedure descriptor. Compute the full frame cache instead.
2370 Some minor comment reformatting.
2371
2372 2004-09-14 Andrew Cagney <cagney@gnu.org>
2373
2374 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
2375 maintainer.
2376
2377 * thread-db.c (thread_db_new_objfile): Assume that there is a
2378 child process.
2379
2380 2004-09-13 Jim Blandy <jimb@redhat.com>
2381
2382 * valops.c (value_assign): Move 'buffer' to the enclosing block,
2383 so that its storage isn't referenced after its lifetime ends.
2384
2385 * valops.c (value_assign): 'use_buffer' is initialized to zero,
2386 and never assigned to. Delete it, and the 'if (use_buffer)'
2387 clauses. Delete 'raw_buffer', since it is now unused.
2388
2389 2004-09-13 Andrew Cagney <cagney@gnu.org>
2390
2391 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
2392 * configure: Re-generate.
2393 * nlm/Makefile.in (TAGS): Update.
2394 * Makefile.in (TAGS): Update.
2395 * config/vax/nbsd.mt (TM_FILE): Update.
2396 * config/sparc/vxworks.mt (TM_FILE): Update.
2397 * config/sparc/sol2.mt (TM_FILE): Update.
2398 * config/sparc/sol2-64.mt (TM_FILE): Update.
2399 * config/sparc/obsd64.mt (TM_FILE): Update.
2400 * config/sparc/obsd.mt (TM_FILE): Update.
2401 * config/sparc/nbsd64.mt (TM_FILE): Update.
2402 * config/sparc/nbsd.mt (TM_FILE): Update.
2403 * config/sparc/linux64.mt (TM_FILE): Update.
2404 * config/sparc/linux.mt (TM_FILE): Update.
2405 * config/sparc/fbsd.mt (TM_FILE): Update.
2406 * config/sh/wince.mt (TM_FILE): Update.
2407 * config/sh/nbsd.mt (TM_FILE): Update.
2408 * config/sh/linux.mt (TM_FILE): Update.
2409 * config/sh/embed.mt (TM_FILE): Update.
2410 * config/s390/s390.mt (TM_FILE): Update.
2411 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
2412 * config/rs6000/rs6000.mt (TM_FILE): Update.
2413 * config/rs6000/aix4.mt (TM_FILE): Update.
2414 * config/powerpc/vxworks.mt (TM_FILE): Update.
2415 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
2416 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
2417 * config/powerpc/obsd.mt (TM_FILE): Update.
2418 * config/powerpc/nbsd.mt (TM_FILE): Update.
2419 * config/powerpc/linux.mt (TM_FILE): Update.
2420 * config/powerpc/aix.mt (TM_FILE): Update.
2421 * config/pa/obsd.mt (TM_FILE): Update.
2422 * config/pa/linux.mt (TM_FILE): Update.
2423 * config/pa/hppahpux.mt (TM_FILE): Update.
2424 * config/pa/hppa64.mt (TM_FILE): Update.
2425 * config/pa/hppa.mt (TM_FILE): Update.
2426 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
2427 * config/mips/wince.mt (TM_FILE): Update.
2428 * config/mips/vxmips.mt (TM_FILE): Update.
2429 * config/mips/nbsd.mt (TM_FILE): Update.
2430 * config/mips/linux.mt (TM_FILE): Update.
2431 * config/mips/irix6.mt (TM_FILE): Update.
2432 * config/mips/irix5.mt (TM_FILE): Update.
2433 * config/mips/embed.mt (TM_FILE): Update.
2434 * config/m68k/vxworks68.mt (TM_FILE): Update.
2435 * config/m68k/st2000.mt (TM_FILE): Update.
2436 * config/m68k/os68k.mt (TM_FILE): Update.
2437 * config/m68k/obsd.mt (TM_FILE): Update.
2438 * config/m68k/nbsd.mt (TM_FILE): Update.
2439 * config/m68k/monitor.mt (TM_FILE): Update.
2440 * config/m68k/linux.mt (TM_FILE): Update.
2441 * config/m68k/cisco.mt (TM_FILE): Update.
2442 * config/ia64/linux.mt (TM_FILE): Update.
2443 * config/ia64/aix.mt (TM_FILE): Update.
2444 * config/ia64/ia64.mt (TM_FILE): Update.
2445 * config/i386/vxworks.mt (TM_FILE): Update.
2446 * config/i386/obsd64.mt (TM_FILE): Update.
2447 * config/i386/obsd.mt (TM_FILE): Update.
2448 * config/i386/nto.mt (TM_FILE): Update.
2449 * config/i386/nbsd64.mt (TM_FILE): Update.
2450 * config/i386/nbsd.mt (TM_FILE): Update.
2451 * config/i386/linux64.mt (TM_FILE): Update.
2452 * config/i386/linux.mt (TM_FILE): Update.
2453 * config/i386/i386sol2.mt (TM_FILE): Update.
2454 * config/i386/i386lynx.mt (TM_FILE): Update.
2455 * config/i386/fbsd64.mt (TM_FILE): Update.
2456 * config/i386/fbsd.mt (TM_FILE): Update.
2457 * config/i386/cygwin.mt (TM_FILE): Update.
2458 * config/h8300/h8300.mt (TM_FILE): Update.
2459 * config/frv/frv.mt (TM_FILE): Update.
2460 * config/cris/cris.mt (TM_FILE): Update.
2461 * config/arm/wince.mt (TM_FILE): Update.
2462 * config/arm/nbsd.mt (TM_FILE): Update.
2463 * config/arm/linux.mt (TM_FILE): Update.
2464 * config/arm/embed.mt (TM_FILE): Update.
2465 * config/alpha/nbsd.mt (TM_FILE): Update.
2466 * config/alpha/fbsd.mt (TM_FILE): Update.
2467 * config/alpha/alpha.mt (TM_FILE): Update.
2468 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
2469 * config/alpha/alpha-linux.mt (TM_FILE): Update.
2470
2471 Eliminate event_loop_p, always has the value 1.
2472 * defs.h (event_loop_p): Delete macro.
2473 * breakpoint.c (until_break_command): Simplify.
2474 * utils.c (prompt_for_continue): Simplify.
2475 * tracepoint.c (read_actions): Simplify.
2476 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
2477 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
2478 (set_prompt, init_main): Simplify.
2479 (init_signals, disconnect): Delete, unused.
2480 * remote.c (remote_async_resume)
2481 (extended_remote_async_create_inferior): Simplify.
2482 * mi/mi-interp.c (mi_input): Delete, unused.
2483 (mi_interpreter_resume, mi_command_loop): Simplify.
2484 * interps.c (current_interp_command_loop): Simplify.
2485 * infrun.c (proceed): Simplify.
2486 * infcmd.c (run_command, continue_command, step_1, jump_command)
2487 (until_command, advance_command, finish_command)
2488 (interrupt_target_command): Simplify.
2489 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
2490
2491 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2492 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2493 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2494 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2495 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2496 * mips-tdep.c (mips_dump_tdep): Do not print same.
2497
2498 2004-09-12 Andrew Cagney <cagney@gnu.org>
2499
2500 * valprint.c (print_longest): Use fputs_filtered. Make "val"
2501 const.
2502 * Makefile.in (valprint.o): Delete explict rule.
2503
2504 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
2505 reported by Dave Anderson.
2506
2507 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
2508
2509 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
2510
2511 2004-09-12 Salvador E. Tropea <set@users.sf.net>
2512 Andrew Cagney <cagney@gnu.org>
2513
2514 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
2515 (mi_cmd_data_list_register_values)
2516 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
2517 the register number computation.
2518
2519 2004-09-12 Andrew Cagney <cagney@gnu.org>
2520
2521 * ppcnbsd-nat.c: Include "inf-ptrace.h".
2522 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
2523 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
2524 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
2525 target.
2526 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
2527 inf-ptrace.o and inf-child.o.
2528 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
2529 * Makefile.in: Update dependencies.
2530
2531 2004-09-11 Andrew Cagney <cagney@gnu.org>
2532
2533 * language.c (hex_string, hex_string_custom): Move from here ...
2534 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
2535 (CELLSIZE): Increase to 50.
2536 * language.h (hex_string, hex_string_custom): Move from here ...
2537 * defs.h: ... to here.
2538 * Makefile.in: Update all dependencies.
2539
2540 2004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
2541
2542 * language.c (local_hex_format_custom): Remove.
2543 (local_hex_string): Rename to hex_string, use C format, and move to
2544 utils.c
2545 (local_hex_string_custom): Rename to hex_string_custom and change
2546 interface. Now uses C format. Move to utils.c
2547 (local_octal_format_custom): Remove.
2548 (local_decimal_format_custom): Remove.
2549 (unknown_language_defn): Remove language-specific number
2550 formatting entries.
2551 (auto_language_defn): Ditto.
2552 (local_language_defn): Ditto.
2553 * language.h (struct language_format_info): Delete declaration.
2554 (struct language_defn): Remove language_format_info fields
2555 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
2556 (local_binary_format): Remove macro.
2557 (local_binary_format_prefix): Remove macro.
2558 (local_binary_format_specifier): Remove macro.
2559 (local_binary_format_suffix): Remove macro.
2560 (local_octal_format): Remove macro.
2561 (local_octal_format_prefix): Remove macro.
2562 (local_octal_format_specifier): Remove macro.
2563 (local_octal_format_suffix): Remove macro.
2564 (local_decimal_format): Remove macro.
2565 (local_decimal_format_prefix): Remove macro.
2566 (local_decimal_format_specifier): Remove macro.
2567 (local_decimal_format_suffix): Remove macro.
2568 (local_hex_format): Remove macro.
2569 (local_hex_format_prefix): Remove macro.
2570 (local_hex_format_specifier): Remove macro.
2571 (local_hex_format_suffix): Remove macro.
2572 (local_decimal_format_custom): Remove.
2573 (local_octal_format_custom): Remove.
2574 (local_hex_format_custom): Remove.
2575 (local_hex_string): Rename to hex_string and move to defs.h.
2576 (local_hex_string_custom): Rename to hex_string_custom, change
2577 interface, and move to defs.h.
2578 * utils.c: (int_string): New function.
2579 (hex_string): New function (from language.c).
2580 (hex_string_custom): New function (from language.c).
2581 (octal2str): New function.
2582 (decimal2str): Add width parameter.
2583 (paddr_u): Use new decimal2str interface.
2584 (paddr_d): Ditto.
2585 * defs.h (hex_string): Declare.
2586 (hex_string_custom): Declare.
2587 (int_string): Declare.
2588 * printcmd.c (print_scalar_formatted): Remove localized binary
2589 formatting.
2590 * valprint.c (print_longest): Use int_string.
2591 (print_floating): Use C hex format.
2592 (print_hex_chars): Ditto.
2593 (print_binary_chars): Remove language-specific formatting.
2594 (print_octal_chars): Use C octal format.
2595 (print_decimal_chars): Delocalize format.
2596 (print_decimal): Remove.
2597 * ada-lang.c (ada_language_defn): Remove language-specific number
2598 formatting entries.
2599 * p-lang.c (pascal_language_defn): Ditto.
2600 * c-lang.c (c_language_defn): Ditto.
2601 (cplus_language_defn): Ditto.
2602 (asm_language_defn): Ditto.
2603 (minimal_language_defn): Ditto.
2604 * f-lang.c (f_language_defn): Ditto.
2605 * jv-lang.c (java_language_defn): Ditto.
2606 * m2-lang.c (m2_language_defn): Ditto.
2607 * scm-lang.c (scm_language_defn): Ditto.
2608 * objc-lang.c (objc_language_defn): Ditto.
2609 * memattr.c (mem_info_command): Use renamed hex_string_custom with
2610 new interface.
2611 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
2612 * ui-out.c (ui_out_field_core_addr): Ditto.
2613 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
2614 * exec.c (print_section_info): Ditto.
2615 * i387-tdep.c (print_i387_status_word): Ditto.
2616 (print_i387_control_word): Ditto.
2617 (i387_print_float_info): Ditto.
2618 * maint.c (maint_print_section_info): Ditto.
2619 * solib.c (info_sharedlibrary_command): Ditto.
2620 * somsolib.c (som_sharedlibrary_info_command): Ditto.
2621 * symtab.c (print_msymbol_info): Ditto.
2622 * tracepoint.c (tracepoints_info): Ditto.
2623 * solib-frv.c (lm_base): Ditto.
2624 (frv_current_sos): Ditto.
2625 (enable_break2): Ditto.
2626 (enable_break): Ditto.
2627 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
2628 (process_one_symbol): Ditto.
2629 * infcmd.c (program_info): Ditto.
2630 * mdebugread.c (parse_partial_symbols): Ditto.
2631 * symfile.c (add_symbol_file_command): Ditto.
2632 * cli/cli-cmds.c (edit_command): Ditto.
2633 (list_command): Ditto.
2634 * infcall.c (call_function_by_hand): Ditto.
2635 * remote-vx.c (vx_run_files_info): Ditto.
2636 (vx_wait): Ditto.
2637 (vx_attach): Ditto.
2638 (vx_detach): Ditto.
2639 (vx_kill): Ditto.
2640 * aix-thread.c (pdc_symbol_addrs): Ditto.
2641 (pdc_read_regs): Ditto.
2642 (pdc_write_regs): Ditto.
2643 (pdc_read_data): Ditto.
2644 (pdc_write_data): Ditto.
2645 * d10v-tdep.c (display_trace): Ditto.
2646 * rs6000-nat.c (find_toc_address): Ditto.
2647 * aix-thread.c: Don't include language.h.
2648 * buildsym.c: Ditto.
2649 * dbxread.c: Ditto.
2650 * mdebugread.c: Ditto.
2651 * rs6000-nat.c: Ditto.
2652 * buildsym.c (make_blockvector): Use renamed hex_string.
2653
2654 2004-09-10 Jason Molenda (jmolenda@apple.com)
2655
2656 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
2657 chars after 'if' or 'while' commands in user-defined commands.
2658
2659 2004-09-08 Jim Blandy <jimb@redhat.com>
2660
2661 Fix bug reported and analyzed by Olivier Crete:
2662 * symfile.c (copy_section_addr_info): New function.
2663 (symbol_file_add_with_addrs_or_offsets): Use it to save the
2664 original set of address arguments, instead of handwritten code
2665 that uses one length to allocate and a different length to
2666 initialize. Use make_cleanup_free_section_addr_info.
2667 * symfile.h (copy_section_addr_info): New declaration.
2668 * utils.c: #include "symfile.h".
2669 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
2670 New functions.
2671 * defs.h (make_cleanup_free_section_addr_info): New declaration.
2672 * Makefile.in (utils.o): Update dependencies.
2673
2674 2004-09-08 Andrew Cagney <cagney@gnu.org>
2675
2676 * thread-db.c (keep_thread_db): Delete.
2677 (thread_db_new_objfile, thread_db_create_inferior)
2678 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
2679
2680 2004-09-08 Mark Kettenis <kettenis@gnu.org>
2681
2682 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
2683 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
2684 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
2685 (i386_frameless_signal_p): Remove prototype.
2686 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
2687 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
2688 I386_SSE_NUM_REGS.
2689 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
2690 instead of FP0_REGNUM.
2691 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
2692 of FP0_REGNUM and FPC_REGNUM.
2693
2694 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
2695 (sunos_solib_create_inferior_hook): Don't call
2696 sunos_relocate_main_executable.
2697
2698 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
2699 solib_svr4_fetch_link_map_offsets to
2700 svr4_ilp32_fetch_link_map_offsets.
2701 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
2702 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
2703 svr4_ilp32_fetch_link_map_offsets.
2704 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
2705
2706 2004-09-07 Jim Blandy <jimb@redhat.com>
2707
2708 * frame.h (frame_register): Doc fix.
2709
2710 2004-09-07 Andrew Cagney <cagney@gnu.org>
2711
2712 * vx-share/wait.h: Delete #ifdef USG.
2713 * utils.c (request_quit): Ditto.
2714 * tui/tui.c (tui_reset): Ditto.
2715 * remote.c: Ditto.
2716 * remote-sds.c: Ditto.
2717 * remote-rdi.c: Ditto.
2718 * mdebugread.c: Ditto.
2719 * m68klinux-nat.c: Ditto.
2720 * infttrace.c: Ditto.
2721 * infptrace.c: Ditto.
2722 * i386v-nat.c: Ditto.
2723 * exec.c: Ditto.
2724 * dbxread.c: Ditto.
2725 * core-aout.c: Ditto.
2726
2727 2004-09-05 Joel Brobecker <brobecker@gnat.com>
2728
2729 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
2730 heuristic_proc_desc.
2731 (mips_insn32_frame_cache): Likewise.
2732
2733 2004-09-04 Joel Brobecker <brobecker@gnat.com>
2734
2735 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
2736 left behind by error.
2737
2738 2004-09-04 Joel Brobecker <brobecker@gnat.com>
2739
2740 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
2741 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
2742
2743 2004-09-04 Joel Brobecker <brobecker@gnat.com>
2744
2745 * config/rs6000/xm-aix4.h: Remove this file.
2746 * config/rs6000/aix4.mh (XM_FILE): Delete.
2747
2748 2004-09-04 Joel Brobecker <brobecker@gnat.com>
2749
2750 * config/rs6000/xm-rs6000.h: Remove this file.
2751 * config/rs6000/rs6000.mh (XM_FILE): Remove.
2752
2753 2004-09-03 Andrew Cagney <cagney@gnu.org>
2754
2755 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
2756 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
2757 only use.
2758
2759 * mips-tdep.c (temp_saved_regs): Delete.
2760 (set_reg_offset): Replace saved_regs parameter with this_cache.
2761 (heuristic_proc_desc, mips16_heuristic_proc_desc)
2762 (mips32_heuristic_proc_desc): Add this_cache parameter.
2763 (mips_insn32_frame_cache, mips_insn16_frame_cache)
2764 (after_prologue): Pass a NULL this_cache.
2765
2766 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
2767 non-kernel trap prologues.
2768
2769 * mips-tdep.c (find_proc_desc): Delete function.
2770 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
2771 simplify.
2772 (mips_insn16_frame_cache): Replace find_proc_desc with code from
2773 mips_insn32_frame_cache.
2774
2775 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
2776 Simplify as NEXT_FRAME is NULL.
2777 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
2778
2779 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
2780 local variable.
2781 (mips_skip_prologue): Update.
2782
2783 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
2784 "cur_frame" parameter.
2785 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
2786 (mips_insn32_frame_cache, find_proc_desc): Update
2787
2788 * config/vax/nm-obsd.h: Delete file.
2789 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2790 * config/vax/nm-nbsd.h: Delete file.
2791 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
2792 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2793 * config/sh/nm-nbsd.h: Delete file.
2794 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
2795 * config/rs6000/nm-rs6000ly.h: Delete file.
2796 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
2797 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
2798 * config/powerpc/nm-obsd.h: Delete file.
2799 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2800 * config/powerpc/nm-nbsd.h: Delete file.
2801 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
2802 * config/pa/nm-obsd.h: Delete file.
2803 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2804 * config/mips/nm-nbsd.h: Delete file.
2805 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
2806 * config/m88k/nm-obsd.h: Delete file.
2807 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2808 * config/m68k/nm-nbsd.h: Delete file.
2809 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
2810 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2811 * config/i386/nm-nbsd.h: Delete file.
2812 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
2813 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2814 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2815 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2816 * config/i386/nm-i386lynx.h: Delete file.
2817 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
2818 * config/arm/nm-nbsd.h: Delete file.
2819 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
2820 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2821
2822 * config/i386/tm-fbsd.h: Delete file.
2823 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
2824 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
2825
2826 * config/rs6000/tm-rs6000-aix4.h: Delete file.
2827 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
2828 * config/rs6000/aix4.mt (TM_FILE): Set to
2829 config/rs6000/tm-rs6000.h.
2830 * config/powerpc/tm-ppc-aix.h: Delete file.
2831 * config/powerpc/aix.mt (TM_FILE): Set to
2832 config/rs6000/tm-rs6000.h.
2833 * config/m68k/tm-linux.h: Delete file.
2834 * config/m68k/linux.mt (TM_FILE): Set to solib.h
2835 * config/i386/tm-linux64.h: Delete file.
2836 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
2837 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
2838
2839 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
2840 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
2841 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
2842 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
2843 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
2844 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
2845 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
2846 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
2847 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
2848
2849 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
2850 gdb_host_cpu.
2851
2852 2004-09-02 Joel Brobecker <brobecker@gnat.com>
2853
2854 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
2855 Minor reformatting. Some code factoring.
2856
2857 2004-09-02 Andrew Cagney <cagney@gnu.org>
2858
2859 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
2860 * config/vax/tm-nbsd.h: Delete file.
2861 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
2862 * config/sparc/tm-vxworks.h: Delete file.
2863 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
2864 * config/sparc/tm-nbsd.h: Delete file.
2865 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
2866 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
2867 * config/sparc/tm-linux.h: Delete file.
2868 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
2869 * config/s390/tm-linux.h: Delete file.
2870 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
2871 * config/pa/tm-bsd.h: Delete file.
2872 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
2873 * config/m68k/tm-obsd.h: Delete file.
2874 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
2875 * config/m68k/tm-nbsd.h: Delete file.
2876 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
2877 * config/i386/tm-vxworks.h: Delete file.
2878 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
2879 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
2880 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
2881 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
2882 * config/i386/tm-nbsd.h: Delete file.
2883 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
2884 * config/i386/tm-i386lynx.h: Delete file.
2885 * config/cris/cris.mt (TM_FILE): Set to solib.h.
2886 * config/cris/tm-cris.h: Delete file.
2887
2888 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
2889 * configure: Re-generate.
2890 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
2891 * config/arm/tm-nbsd.h: Delete file.
2892
2893 * config/powerpc/tm-ppcle-sim.h: Delete.
2894 * config/powerpc/tm-ppcle-eabi.h: Delete.
2895 * config/powerpc/tm-nbsd.h: Delete.
2896 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
2897 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
2898 tm-ppcle-eabi.h.
2899
2900 * config/i386/nto.mh (NAT_FILE): Delete.
2901 * config/i386/nm-nto.h: Delete.
2902
2903 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
2904 * config/m68k/tm-os68k.h: Ditto.
2905 * config/m68k/tm-monitor.h: Ditto.
2906 * config/m68k/tm-cisco.h: Ditto.
2907 * config/m68k/st2000.mt (TM_FILE): Delete.
2908 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
2909 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
2910 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
2911 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
2912
2913 * config/m68k/tm-st2000.h: Delete.
2914 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
2915 * config/sparc/fbsd.mt (TM_FILE): Delete.
2916 * config/sparc/tm-fbsd.h: Delete.
2917
2918 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
2919 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
2920 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
2921
2922 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
2923 GDB_TM_FILE and GDB_XM_FILE.
2924 * gdbarch.c: Re-generate.
2925 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
2926 quotes in macro definition.
2927 * configure.in: Re-generate.
2928
2929 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
2930 validating architecture methods.
2931 * gdbarch.c: Re-generate.
2932
2933 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
2934 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
2935 GDB_MULTI_ARCH_PARTIAL.
2936 * gdbarch.h: Re-generate.
2937
2938 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
2939 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
2940 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
2941 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
2942 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
2943 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
2944 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
2945 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
2946 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
2947 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
2948 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
2949 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
2950
2951 2004-09-01 Andrew Cagney <cagney@gnu.org>
2952
2953 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
2954 and main_func_highpc.
2955 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
2956 * objfiles.c (init_entry_point_info, objfile_relocate): Update
2957 * nlmread.c (nlm_symfile_read): Update.
2958
2959 2004-09-01 Joel Brobecker <brobecker@gnat.com>
2960
2961 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
2962 (mips_insn32_frame_cache): Inline call to find_proc_desc.
2963 (find_proc_desc): Remove dead code.
2964
2965 2004-09-01 Joel Brobecker <brobecker@gnat.com>
2966
2967 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
2968
2969 2004-09-01 Jeff Johnston <jjohnstn@redhat.com>
2970
2971 * observer.sh: Add struct so_list declaration.
2972 * Makefile.in: Add dependencies on observer.h for solib.c and
2973 breakpoint.c.
2974 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
2975 function.
2976 (_initialize_breakpoint): Register
2977 disable_breakpoints_in_unloaded_shlib as an observer of the
2978 "solib unloaded" observation event.
2979 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
2980 call decode_line_1 so unfound breakpoint errors are silent.
2981 * solib.c (update_solib_list): When a solib is discovered to have
2982 been unloaded by the program, notify all observers of the
2983 "solib unloaded" observation event.
2984
2985 2004-09-01 Andrew Cagney <cagney@gnu.org>
2986
2987 * frame.c: Include "objfiles.h".
2988 (inside_main_func): New function.
2989 (get_prev_frame): Use new inside_main_func.
2990 * Makefile.in (frame.o): Update dependencies.
2991 * defs.h (inside_main_func): Delete declaration.
2992 * blockframe.c (inside_main_func): Delete function.
2993
2994 2004-08-31 Jim Blandy <jimb@redhat.com>
2995
2996 * dwarf2read.c (is_vtable_name): New function, based on logic from
2997 read_structure_type, but passing the correct length to strncmp,
2998 and using 'sizeof' instead of 'strlen'.
2999 (read_structure_type): Call it.
3000
3001 2004-08-31 Joel Brobecker <brobecker@gnat.com>
3002
3003 * config/powerpc/aix.mh: Add comment.
3004
3005 2004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
3006
3007 * MAINTAINERS: Add self to Write-After-Approval.
3008
3009 2004-08-30 Manoj Iyer <manjo@austin.ibm.com>
3010
3011 * MAINTAINERS: Add self to Write-After-Approval.
3012
3013 2004-08-30 Andrew Cagney <cagney@gnu.org>
3014
3015 Fix PR breakpoints/1757.
3016 * infrun.c (struct execution_control_state): Replace
3017 remove_breakpoints_on_following_step with
3018 step_after_step_resume_breakpoint.
3019 (init_execution_control_state): Update.
3020 (handle_inferior_event): For signals, when stepping off a
3021 breakpoint, set step_after_step_resume_breakpoint. When
3022 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
3023 (keep_going): Delete code handling
3024 remove_breakpoints_on_following_step.
3025
3026 2004-08-29 David Lecomber <david@streamline-computing.com>
3027
3028 Fix PR gdb/648
3029 * language.h (enum array_ordering): New enum.
3030 * language.h (struct language_defn): New la_array_ordering
3031 attribute.
3032 * language.c (unknown_language_defn, auto_language_defn)
3033 (local_language_defn): Ditto.
3034 * ada-lang.c (ada_language_defn): Ditto.
3035 * c-lang.c (c_language_defn, cplus_language_defn)
3036 (asm_language_defn, minimal_language_defn): Ditto.
3037 * f-lang.c (f_language_defn): Ditto.
3038 * jv-lang.c (java_language_defn): Ditto.
3039 * m2-lang.c (f_language_defn): Ditto.
3040 * objc-lang.c (objc_language_defn): Ditto.
3041 * p-lang.c (pascal_language_defn): Ditto.
3042 * scm-lang.c (scm_language_defn): Ditto.
3043 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
3044 oriented large to small in type structure.
3045 * dwarf2read.c (read_array_order): New function.
3046 (read_array_type): Use read_array_order to check row/column
3047 major ordering.
3048
3049 2004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
3050
3051 * target.c (target_resize_to_sections): Check
3052 current_target.to_sections for an old value when updating.
3053
3054 2004-08-27 Joel Brobecker <brobecker@gnat.com>
3055
3056 * procfs.c (dbx_link_bpt_addr): New static global variable.
3057 (dbx_link_shadow_contents): New static global variable.
3058 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
3059 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
3060 if we just hit it.
3061 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
3062 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
3063 from run to run.
3064 (procfs_create_inferior): Remove syssgi syscall-exit notifications
3065 after the inferior has been forked.
3066 (remove_dbx_link_breakpoint): New function.
3067 (dbx_link_addr): New function.
3068 (insert_dbx_link_bpt_in_file): New function.
3069 (insert_dbx_link_bpt_in_region): New function.
3070 (insert_dbx_link_breakpoint): New function.
3071 (proc_trace_syscalls_1): New function, extracted from
3072 proc_trace_syscalls.
3073 (proc_trace_syscalls): Replace extract code by call to
3074 proc_trace_syscalls_1.
3075 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
3076 is no longer valid.
3077
3078 2004-08-25 Jim Blandy <jimb@redhat.com>
3079
3080 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
3081
3082 2004-08-25 Andrew Cagney <cagney@gnu.org>
3083
3084 * infrun.c (struct execution_control_state): Delete field
3085 "stepping_through_sigtramp".
3086 (init_execution_control_state): Do not set same.
3087 (context_switch): Do not pass same to save_infrun_state and
3088 load_infrun_state.
3089 * gdbthread.h (struct thread_info): Delete field
3090 stepping_through_sigtramp.
3091 (save_infrun_state, load_infrun_state): Delete parameter
3092 stepping_through_sigtramp.
3093 * thread.c (load_infrun_state, save_infrun_state): Update.
3094
3095 * infrun.c: Re-indent. Move expression operators to the beginning
3096 of the line. Remove long disabled #if 0 code.
3097
3098 2004-08-24 Andrew Cagney <cagney@gnu.org>
3099
3100 * doublest.h (floatformat_ieee_quad): Rename
3101 floatformat_ia64_quad.
3102 * doublest.c (floatformat_ieee_quad): Rename
3103 floatformat_ia64_quad.
3104 (_initialize_doublest): Update.
3105
3106 2004-08-24 Jim Blandy <jimb@redhat.com>
3107
3108 * dwarf2expr.h (struct dwarf_expr_context): New members
3109 'num_pieces' and 'pieces', for returning the result of an
3110 expression that uses DW_OP_piece.
3111 (struct dwarf_expr_piece): New struct type.
3112 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
3113 pieces.
3114 (free_dwarf_expr_context): Free pieces, if any.
3115 (add_piece): New function.
3116 (execute_stack_op): Implement DW_OP_piece.
3117 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
3118 expression is a list of pieces, print an error message.
3119 (dwarf2_loc_desc_needs_frame): If the expression yields
3120 pieces, and any piece is in a register, then we need a frame.
3121
3122 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
3123 the stack until we've decided what sort of result the evaluation
3124 has produced. Use separate variables, with more specific names.
3125
3126 2004-08-23 Richard Earnshaw <rearnsha@arm.com>
3127
3128 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
3129 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
3130 (arm_netbsd_init_abi_common): Register them.
3131
3132 2004-08-22 Mark Kettenis <kettenis@gnu.org>
3133
3134 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
3135
3136 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
3137 safe_frame_unwind_memory instead of target_read_memory.
3138
3139 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
3140 Reorder includes.
3141 (fetch_register, store_register): Remove prototypes.
3142 (child_resume): Reorganize code and comments such that it is
3143 grouped a bit more logically.
3144 (attach): Explicitly compare errno against 0.
3145 (detach): Likewise. Use perror_with_name instead of
3146 print_sys_errmsg.
3147 * Makefile.in (infptrace.o): Update dependencies.
3148
3149 * ia64-linux-nat.c: Update copyright year.
3150 (fetch_debug_register, store_debug_register)
3151 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
3152 PTRACE_TYPE_ARG3.
3153 * config/ia64/nm-linux.h: Update copyright year.
3154 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
3155
3156 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
3157 from CORE_ADDR to struct frame_info *. Use
3158 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
3159 (amd64_linux_sigtramp_p): Adjust for changed signature of
3160 and64_linux_sigtramp_start
3161
3162 * gdb_ptrace.h: GNU/Linux.
3163
3164 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
3165 Remove defines.
3166
3167 * infptrace.c: Include "gdb_assert.h".
3168 (PTRACE_XFER_TYPE): Remove define.
3169 (offsetof): Only define if U_REGS_OFFSET isn't defined.
3170 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
3171 Tweak comment.
3172 (fetch_inferior_registers, store_inferior_registers): Remove
3173 redundant culry braces. Tweak comment. s/regno/regnum.
3174 * Makefile.in (infptrace.o): Update dependencies.
3175
3176 * configure.in: Change test for return type of ptrace to default
3177 to `long' instead of `int'.
3178 * configure: Regenerate.
3179
3180 2004-08-21 Mark Kettenis <kettenis@gnu.org>
3181
3182 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
3183
3184 * configure.in: Check for ttrace function.
3185 * configure, config.in: Regenerate.
3186
3187 * gdb_ptrace.h: New file.
3188 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
3189 <sys/ptrace.h>.
3190 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
3191 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
3192 (attach): Don't define PT_ATTACH.
3193 (detach): Don't define PT_DETACH.
3194 * Makefile.in (gdb_ptrace_h): New variable.
3195 (infptrace.o): Update dependencies.
3196
3197 2004-08-16 Mark Kettenis <kettenis@gnu.org>
3198
3199 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
3200 instead of `int' if not already defined.
3201 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
3202 PTRACE_TYPE_ARG3.
3203 * infptrace.c (call_ptrace): Revert change that replaced
3204 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3205
3206 2004-08-15 Mark Kettenis <kettenis@gnu.org>
3207
3208 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
3209 Remove defines.
3210
3211 * linux-nat.c (kill_inferior): Add missing third and fourth
3212 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
3213
3214 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
3215 PTRACE_TYPE_RET.
3216
3217 * proc-why.c (proc_prettyfprint_why): Fix format string.
3218
3219 * solib-osf.c (osf_current_sos): Remove unsused label.
3220
3221 * configure.in: Add <ncurses/ncurses.h> to the list of possible
3222 curses headers.
3223 * configure, config.in: Regenerate.
3224 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
3225 <ncurses/ncurses.h>.
3226
3227 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
3228 * config/nm-nbsd.h: Update copyright year.
3229 (PTRACE_ARG3_TYPE): Remove define.
3230
3231 * sparc-nat.c (fetch_inferior_registers)
3232 (store_inferior_registers, sparc_xfer_wcookie):
3233 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3234
3235 * alphabsd-nat.c (fetch_inferior_registers):
3236 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3237 PTRACE_TYPE_ARG3.
3238 * amd64bsd-nat.c (fetch_inferior_registers)
3239 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3240 PTRACE_TYPE_ARG3.
3241 * armnbsd-nat.c: Update copyright year.
3242 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
3243 (store_register, store_regs, store_fp_register, store_fp_regs):
3244 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3245 * hppabsd-nat.c (fetch_inferior_registers)
3246 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3247 PTRACE_TYPE_ARG3.
3248 * i386bsd-nat.c (fetch_inferior_registers)
3249 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
3250 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3251 * m68kbsd-nat.c (fetch_inferior_registers)
3252 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3253 PTRACE_TYPE_ARG3.
3254 * m88kbsd-nat.c (fetch_inferior_registers)
3255 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3256 PTRACE_TYPE_ARG3.
3257 * mipsnbsd-nat.c: Update copyright year.
3258 (fetch_inferior_registers, store_inferior_registers):
3259 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3260 * ns32knbsd-nat.c: Update copyright year.
3261 (fetch_inferior_registers, store_inferior_registers):
3262 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3263 * ppcnbsd-nat.c (fetch_inferior_registers):
3264 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3265 PTRACE_TYPE_ARG3.
3266 * ppcobsd-nat.c (fetch_inferior_registers):
3267 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3268 PTRACE_TYPE_ARG3.
3269 * shnbsd-nat.c: Update copyright year.
3270 (fetch_inferior_registers, store_inferior_registers):
3271 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3272 * vaxbsd-nat.c (fetch_inferior_registers)
3273 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3274 PTRACE_TYPE_ARG3.
3275
3276 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
3277 PTRACE_TYPE_ARG3.
3278 * infptrace.c (call_ptrace, child_resume, attach, detach)
3279 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
3280 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3281 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
3282 PTRACE_TYPE_ARG3.
3283
3284 2004-08-14 Mark Kettenis <kettenis@gnu.org>
3285
3286 * defs.h: Remove out-of-date comment.
3287 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
3288 [!GETENV_PROVIDED] (getenv): Remove prototype.
3289
3290 * standalone.c: Remove file.
3291 * Makefile.in (standalone.o): Remove dependency.
3292
3293 * i386-linux-nat.c (dummy_sse_values): Remove function and
3294 prototype.
3295 (i386_linux_dr_get): Fix typo in comment.
3296 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
3297
3298 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
3299
3300 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
3301 from declaration.
3302 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
3303 from definition.
3304
3305 2004-08-13 Mark Kettenis <kettenis@gnu.org>
3306
3307 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
3308 parenthesis in definition.
3309 * configure: Regenerated.
3310
3311 2004-08-12 Michael Chastain <mec.gnu@mindspring.com>
3312
3313 * PROBLEMS: Mention build/1411.
3314
3315 2004-08-09 Robert Millan <robertmh@gnu.org>
3316
3317 Committed by Nathanael Nerode.
3318 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
3319 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
3320
3321 2004-08-12 Andrew Cagney <cagney@gnu.org>
3322
3323 * NEWS: Mention fixes in GDB 6.2.1.
3324 * PROBLEMS: Remove mention of mips-irix.
3325
3326 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3327
3328 * config/powerpc/xm-aix.h: Delete.
3329 * config/powerpc/aix.mh (MH_FILE): Remove.
3330 * config/powerpc/aix432.mh (MH_FILE): Remove.
3331
3332 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3333
3334 * config/powerpc/aix.mh: Remove obsolete comment.
3335 * config/powerpc/aix432.mh: Likewise.
3336
3337 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3338
3339 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
3340
3341 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3342
3343 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
3344 this file is now empty.
3345 * config/xm-aix4.h: Remove, this file is no longer included
3346 anywhere.
3347
3348 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3349
3350 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
3351 that file is now empty.
3352 (termdef): Remove prototype, function no longer used.
3353
3354 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3355
3356 * doc/gdbint.texinfo (Host Definition): Remove documentation
3357 for USE_O_NOCTTY, no longer used.
3358 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
3359 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
3360
3361 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3362
3363 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
3364 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
3365 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
3366
3367 2004-08-11 Mark Kettenis <kettenis@gnu.org>
3368
3369 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
3370 instead of FIVE_ARG_PTRACE.
3371
3372 * inflow.c (O_NOCTTY): Define to zero if not already defined.
3373 (new_tty): Use O_NOCTTY unconditionally.
3374
3375 2004-08-10 Mark Kettenis <kettenis@gnu.org>
3376
3377 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
3378 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
3379 fflush on stdout.
3380
3381 2004-08-10 Joel Brobecker <brobecker@gnat.com>
3382
3383 * xcoff_symfile_finish: Replace last call to xmfree by call
3384 to xfree.
3385
3386 2004-08-10 Andrew Cagney <cagney@gnu.org>
3387
3388 * main.c (captured_main): Delete call to init_malloc.
3389 * defs.h (init_malloc): Delete declaration.
3390 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
3391 (init_malloc): Delete functions.
3392
3393 * defs.h (xmfree): Delete.
3394 * utils.c (xmfree): Delete function.
3395 (xfree): Inline calls to xmfree and mfree.
3396 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
3397 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
3398 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
3399 * somread.c (som_symfile_finish): Ditto.
3400 * objfiles.c (allocate_objfile, free_objfile):
3401 * nlmread.c (nlm_symfile_finish): Ditto.
3402 * hpread.c (hpread_symfile_finish): Ditto.
3403 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
3404 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
3405 * coffread.c (coff_symfile_finish): Ditto.
3406
3407 * defs.h (xmcalloc): Delete declaration.
3408 * utils.c (xmcalloc): Delete.
3409 (xcalloc): Inline calls to xmcalloc and mcalloc.
3410 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
3411 xcalloc and xfree.
3412 * symtab.c (create_demangled_names_hash): Ditto.
3413
3414 * defs.h (xmrealloc): Delete.
3415 * utils.c (xmrealloc): Delete.
3416 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
3417 * symmisc.c (extend_psymbol_list): Use xrealloc.
3418 * source.c (find_source_lines): Ditto.
3419 * hpread.c (hpread_lookup_type): Ditto.
3420 * dbxread.c (add_bincl_to_list): Ditto.
3421
3422 * utils.c (xmmalloc): Delete.
3423 (xmalloc): Inline xmmalloc and mmalloc calls.
3424 (msavestring): Use xmalloc.
3425 * defs.h (xmmalloc): Delete declaration.
3426 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
3427 xmmalloc.
3428 * symmisc.c (extend_psymbol_list): Ditto.
3429 * symfile.c (init_psymbol_list): Ditto.
3430 * source.c (find_source_lines): Ditto.
3431 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
3432 * elfread.c (elf_symtab_read): Ditto.
3433 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
3434 * coffread.c (coff_symfile_init): Ditto.
3435
3436 2004-08-10 David Carlton <carlton@bactrian.org>
3437
3438 * MAINTAINERS: Remove David Carlton from c++ testsuite
3439 maintainers.
3440
3441 2004-08-10 Jerome Guitton <guitton@gnat.com>
3442
3443 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
3444 print a line feed before the prompt.
3445
3446 2004-08-10 Mark Kettenis <kettenis@gnu.org>
3447
3448 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
3449
3450 2004-08-09 Joel Brobecker <brobecker@gnat.com>
3451
3452 General cleanup of the AIX xm include file:
3453 * config/xm-aix4.h (fd_set): Remove undefine.
3454 Remove include of <sys/select.h>.
3455 (HAVE_TERMIO): Remove define.
3456 (USG): Likewise.
3457 (NULL): Remove redefine.
3458 (alloca): Remove #pragma.
3459 (vfork): Remove define.
3460 (termdef): Remove.
3461 (SIGWINCH_HANDLER): Remove.
3462 (SIGWINCH_HANDLER_BODY): Remove.
3463
3464 2004-08-09 Mark Kettenis <kettenis@gnu.org>
3465
3466 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
3467 GDB_OSABI_OPENBSD_ELF.
3468
3469 2004-08-07 Robert Millan <robertmh@gnu.org>
3470
3471 * bsd-kvm.c: Check for nlist.h before including it.
3472
3473 2004-08-09 Mark Kettenis <kettenis@gnu.org>
3474
3475 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
3476 sigcontext' offset consistency checks for ancient BSD.
3477
3478 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
3479
3480 * configure.in: Check for <sys/types.h>. Check return and
3481 argument types of ptrace.
3482 * configure, config.in: Regenerate.
3483
3484 2004-08-09 Jim Blandy <jimb@redhat.com>
3485
3486 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
3487 rs6000_register_sim_regno): Doc fixes.
3488
3489 2004-08-08 Joel Brobecker <brobecker@gnat.com>
3490
3491 * mips-tdep.c: Include "floatformat.h".
3492 (n32n64_floatformat_always_valid): New function.
3493 (floatformat_n32n64_long_double_big): New constant.
3494 (mips_gdbarch_init): Set size and format of long double
3495 for N32 and N64 ABIs.
3496 * Makefile.in (mips-tdep.o): Update dependencies.
3497
3498 2004-08-08 Andrew Cagney <cagney@gnu.org>
3499
3500 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
3501 print. Improve script's error messages.
3502 * gdbarch.h: Re-generate.
3503
3504 * gdbarch.sh (pformat): New function.
3505 (float_format, double_format, long_double_format): List with bit
3506 members. Use pformat when printing.
3507 * gdbarch.c, gdbarch.h: Re-generate.
3508
3509 2004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
3510
3511 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
3512 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
3513 (ppcnbsd_supply_pcb): New function.
3514 (_initialize_ppcnbsd_nat): New prototype and function.
3515 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
3516 (LOADLIBES): New variable.
3517 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
3518
3519 2004-08-08 Andrew Cagney <cagney@gnu.org>
3520
3521 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
3522 (builtin_type_ieee_double, builtin_type_ia64_quad)
3523 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
3524 BE/LE floating-point types.
3525 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
3526 (builtin_type_ieee_double, builtin_type_ia64_quad)
3527 (builtin_type_ia64_spill): Declare.
3528 * doublest.c (_initialize_doublest, floatformat_ieee_single)
3529 (floatformat_ieee_double, floatformat_arm_ext)
3530 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
3531 of LE/BE floatformats.
3532 * doublest.h: (struct floatformat, floatformat_ieee_single)
3533 (floatformat_ieee_double, floatformat_arm_ext)
3534 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
3535
3536 2004-08-08 Mark Kettenis <kettenis@gnu.org>
3537
3538 * i386gnu-nat.c (gnu_store_registers): Fix typo.
3539
3540 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
3541 instead of regcache_raw_supply when storing the registers.
3542
3543 * i386gnu-nat.c: Update copyright year.
3544 (gnu_store_registers): Don't use deprecated_registers and
3545 deprecated_registers_valid. Use regcache_valid_p and
3546 regcache_raw_supply instead.
3547
3548 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
3549 frame_pc_unwind.
3550
3551 * procfs.c (procfs_pid_to_str): Remove redundant and unused
3552 variables. Incapitalized "process".
3553
3554 * configure.in: Add cursesX to the list of possible curses libs.
3555 Add cursesX.h to the list of possible curses headers.
3556 * configure, config.in: Regenerate.
3557
3558 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
3559
3560 * configure.in: Test for struct lwp in <sys/lwp.h>.
3561 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
3562 the offset of l_addr in struct lwp.
3563
3564 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
3565
3566 * bsd-kvm.c: Include "gdbcore.h"
3567 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
3568
3569 2004-08-07 Andrew Cagney <cagney@gnu.org>
3570
3571 * gdbtypes.c (build_flt, build_complex): New functions.
3572 (gdbtypes_post_init): Use.
3573
3574 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
3575
3576 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
3577 through to builtin_type_uint128.
3578
3579 * c-exp.y: Use builtin_type function to obtain builtin types.
3580
3581 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
3582 builtin_uint128.
3583 * gdbtypes.c (gdbtypes_post_init): Update.
3584 (build_gdbtypes): Move initialization of builtin_type_int0
3585 through to builtin_type_uint128 from here ...
3586 (_initialize_gdbtypes): ... to here.
3587 * d10v-tdep.c (d10v_register_type): Update.
3588
3589 * doublest.c: Update copyright.
3590 (floatformat_from_length): Call error when floatformat is NULL.
3591 (extract_floating_by_length): Remove NULL fmt check.
3592 (store_floating_by_length): Ditto.
3593
3594 2004-08-07 Andrew Cagney <cagney@gnu.org>
3595
3596 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
3597 that the register is valid.
3598
3599 2004-08-05 Mark Kettenis <kettenis@chello.nl>
3600
3601 * i386-linux-tdep.c (i386_linux_sigtramp_start)
3602 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
3603 struct frame_info *. Use safe_frame_unwind_memory instead of
3604 deprecated_read_memory_nobpt.
3605 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
3606 changed signature of i386_linux_sigtramp_start and
3607 i386_linux_rt_sigtramp_start.
3608
3609 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
3610 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
3611 instead of deprecated_read_memory_nobpt.
3612 (i386nbsd_sigtramp_p): Adjust for changed signature of
3613 i386nbsd_sigtramp_offset.
3614
3615 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
3616 safe_frame_unwind_memory instead of target_read_memory.
3617
3618 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
3619 !NO_SYS_FILE.
3620 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
3621 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
3622 (_initialize_kernel_u_addr): Remove prototype and function.
3623 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
3624 !NO_SYS_FILE.
3625 * xcoffread.c: Likewise.
3626
3627 2004-08-06 Mark Kettenis <kettenis@gnu.org>
3628
3629 * vax-nat.c: New file.
3630 * vaxbsd-nat.c: Tweak comment.
3631 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
3632 vaxnbsd-tdep.c.
3633 (vax-nat.o): New dependency.
3634 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
3635 (vax-*-ultrix2*): Remove.
3636 * config/vax/vax.mh: New file.
3637 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
3638 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
3639 (vax_register_u_addr): New prototype.
3640 (REGISTER_U_ADDR): Define using vax_register_u_addr.
3641 * config/vax/vaxult2.mh: Remove file.
3642 * config/vax/vaxult.mh: Remove file.
3643 * config/vax/vaxbsd.mh: Remove file.
3644 * config/vax/vax.mt (TM_FILE): Remove.
3645 * config/vax/tm-vaxbsd.h: Remove file.
3646
3647 2004-08-06 Joel Brobecker <brobecker@gnat.com>
3648
3649 * aix-thread.c (get_signaled_thread): New function.
3650 (iter_trap): Delete, no longer used.
3651 (iter_tid): New function.
3652 (pd_update): Find the thread that received the SIGTRAP signal
3653 by first locating the kernel thread, and then finding its
3654 associated thread.
3655
3656 2004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
3657
3658 * lin-lwp.c (child_wait): Continue inferior after processing
3659 PTRACE_EVENT_CLONE event.
3660
3661 2004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
3662
3663 * MAINTAINERS: Add self to Write-After-Approval.
3664
3665 2004-08-05 Jeff Johnston <jjohnstn@redhat.com>
3666
3667 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
3668 libunwind-xxxx.so" where xxxx is UNW_TARGET.
3669
3670 2004-08-05 Andrew Cagney <cagney@gnu.org>
3671
3672 * config/xm-sysv4.h: Delete file.
3673 * config/mips/xm-irix5.h: Delete file.
3674 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
3675 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
3676 * config/ia64/xm-aix.h: Delete file.
3677 * config/ia64/aix.mh (XM_FILE): Delete.
3678 * config/pa/xm-hppah.h: Delete file.
3679 * config/pa/hpux11w.mh (XM_FILE): Delete.
3680 * config/pa/hpux11.mh (XM_FILE): Delete.
3681 * config/pa/hpux1020.mh (XM_FILE): Delete.
3682 * config/pa/hppahpux.mh (XM_FILE): Delete.
3683
3684 * config/alpha/xm-alphalinux.h: Delete file.
3685 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
3686 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
3687 * config/alpha/xm-alphaosf.h: Delete file.
3688 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
3689 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
3690 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
3691 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
3692
3693 * config/i386/xm-i386v.h: Delete file.
3694 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
3695 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
3696 * config/i386/xm-i386sco.h: Delete file.
3697 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
3698 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
3699 * config/i386/xm-i386v4.h: Delete file.
3700 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
3701 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
3702 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
3703 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
3704
3705 * config/vax/xm-vax.h: Delete file.
3706 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
3707 * config/vax/xm-vaxult2.h: Delete file.
3708 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
3709 * config/vax/vaxult2.mh (XM_FILE): Delete.
3710 * config/vax/xm-vaxult.h: Delete file.
3711 * config/vax/vaxult.mh (XM_FILE): Delete.
3712 * config/vax/xm-vaxbsd.h: Delete file.
3713 * config/vax/vaxbsd.mh (XM_FILE): Delete.
3714
3715 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
3716 * gdbarch.h, gdbarch.c: Re-generate.
3717 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
3718 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
3719 * frame.h: Delete deprecated_read_fp from comments.
3720 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
3721 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
3722
3723 2004-08-04 Mark Kettenis <kettenis@gnu.org>
3724
3725 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
3726 trampoline in OpenBSD 3.5-current.
3727
3728 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
3729 SSE registers.
3730
3731 * Makefile.in: Remove embedded page breaks.
3732
3733 2004-08-04 Jim Blandy <jimb@redhat.com>
3734
3735 * regcache.c (regcache_raw_read): Assert that, after calling
3736 target_fetch_registers, the register we're reading is cached.
3737
3738 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
3739 a call to 'internal_error', with a more helpful error message.
3740 * rs6000-tdep.c (e500_pseudo_register_read,
3741 e500_pseudo_register_write, rs6000_store_return_value): Same.
3742
3743 2004-08-04 Andrew Cagney <cagney@gnu.org>
3744
3745 * Makefile.in: Update dependencies.
3746
3747 2004-08-04 Jim Blandy <jimb@redhat.com>
3748
3749 Change the layout of the PowerPC E500 raw register cache to allow
3750 the lower 32-bit halves of the GPRS to be their own raw registers,
3751 not pseudoregisters.
3752 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
3753 add ppc_ev0_upper_regnum flag.
3754 * rs6000-tdep.c: #include "reggroups.h".
3755 (spe_register_p): Recognize the ev upper half registers as SPE
3756 registers.
3757 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
3758 registers.
3759 (e500_move_ev_register): New function.
3760 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
3761 vector registers are the pseudo-registers now, formed by splicing
3762 together the gprs and the upper-half registers.
3763 (e500_register_reggroup_p): New function.
3764 (P): Macro deleted.
3765 (P8, A4): New macro.
3766 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
3767 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
3768 macros.
3769 (registers_e500): Rearrange register set so that the raw register
3770 set contains 32-bit GPRs and upper-half registers, and the SPE
3771 vector registers become pseudo-registers.
3772 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
3773 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
3774 register numbers are now the same for the E500 as they are for
3775 other PowerPC variants. Register e500_register_reggroup_p as the
3776 register group function for the E500.
3777 * Makefile.in (rs6000-tdep.o): Update dependencies.
3778
3779 Adapt PPC E500 native support to the new raw regcache layout.
3780 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
3781 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
3782 (fetch_spe_register, store_spe_register): Handle fetching/storing
3783 all the SPE registers at once, if regno == -1. These now take
3784 over the job of fetch_spe_registers and store_spe_registers.
3785 (fetch_spe_registers, store_spe_registers): Deleted.
3786 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
3787 unconditionally; they're always raw. Fetch/store SPE upper half
3788 registers, if present, instead of ev registers.
3789 (fetch_register, store_register): Remove sanity checks: gprs are
3790 never pseudo-registers now, so we never need to even mention any
3791 registers that are ever pseudoregisters.
3792
3793 Use a fixed register numbering when communicating with the PowerPC
3794 simulator.
3795 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
3796 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
3797 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
3798 New functions.
3799 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
3800 init_sim_regno_table.
3801 * Makefile.in (gdb_sim_ppc_h): New variable.
3802 (rs6000-tdep.o): Update dependencies.
3803
3804 2004-08-02 Andrew Cagney <cagney@gnu.org>
3805
3806 * cris-tdep.c (cris_register_size): Restore function, still used
3807 locally.
3808
3809 * gdbarch.sh (deprecated_target_read_fp)
3810 (deprecated_frame_locals_address, deprecated_frame_args_address)
3811 (deprecated_frame_chain_valid, deprecated_frame_chain)
3812 (deprecated_init_extra_frame_info, deprecated_pop_frame)
3813 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
3814 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
3815 * gdbarch.h, gdbarch.c: Re-generate.
3816 * regcache.c (deprecated_read_fp): Do not call
3817 DEPRECATED_TARGET_READ_FP_P.
3818 * infcmd.c (default_print_registers_info): Do not call
3819 DEPRECATED_DO_REGISTERS_INFO.
3820 * frame-base.c (default_frame_locals_address): Do not call
3821 DEPRECATED_FRAME_LOCALS_ADDRESS.
3822 (default_frame_args_address): Do not call
3823 DEPRECATED_FRAME_ARGS_ADDRESS.
3824
3825 * gdbarch.sh (deprecated_register_raw_size)
3826 (deprecated_register_virtual_size:int): Delete.
3827 * gdbarch.h, gdbarch.c: Re-generate.
3828 * cris-tdep.c (cris_register_size): Delete.
3829 (cris_gdbarch_init): Update.
3830 * alpha-tdep.c (alpha_register_raw_size)
3831 (alpha_register_virtual_size): Delete.
3832 (alpha_gdbarch_init): Update.
3833
3834 * gdbarch.sh (deprecated_register_virtual_type)
3835 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
3836 (deprecated_dummy_write_sp): Delete.
3837 * gdbarch.h, gdbarch.c: Re-generate.
3838
3839 * gdbarch.sh (deprecated_register_bytes): Delete.
3840 * gdbarch.h, gdbarch.c: Re-generate.
3841 * regcache.c (deprecated_register_bytes): New function.
3842 * regcache.h (deprecated_register_bytes): Declare.
3843 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3844 * v850-tdep.c (v850_gdbarch_init): Update.
3845 * sh64-tdep.c (sh64_gdbarch_init): Update.
3846 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
3847 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3848 * mcore-tdep.c (mcore_gdbarch_init): Update.
3849 * cris-tdep.c (cris_gdbarch_init): Update.
3850 * arm-tdep.c (arm_gdbarch_init): Update.
3851 * remote.c (init_remote_state): Update.
3852 * remote-vx.c (vx_prepare_to_store): Update.
3853 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
3854 * irix5-nat.c (fetch_core_registers): Update.
3855 * cris-tdep.c (cris_register_bytes_ok): Update.
3856 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
3857
3858 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
3859 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
3860 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
3861 (mips_insn16_frame_base_address, mips_insn16_frame_base)
3862 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
3863 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
3864 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
3865 (mips_insn32_frame_base_address, mips_insn32_frame_base)
3866 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
3867 with mips_insn16 and mips_insn32.
3868
3869 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
3870 * rs6000-tdep.c (rs6000_push_dummy_call)
3871 (rs6000_extract_return_value): Use register_size.
3872 * xstormy16-tdep.c (xstormy16_get_saved_register)
3873 (xstormy16_extract_return_value): Ditto.
3874 * valops.c (value_assign): Ditto.
3875 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
3876 * v850-tdep.c (v850_extract_return_value): Ditto.
3877 * tracepoint.c (collect_symbol): Ditto.
3878 * target.c (debug_print_register): Ditto.
3879 * stack.c (frame_info): Ditto.
3880 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
3881 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
3882 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
3883 (store_register_using_P): Ditto.
3884 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
3885 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
3886 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
3887 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
3888 * regcache.c (deprecated_read_register_bytes)
3889 (deprecated_write_register_bytes, read_register)
3890 (write_register): Ditto.
3891 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
3892 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
3893 * monitor.c (monitor_supply_register, monitor_fetch_register)
3894 (monitor_store_register): Ditto.
3895 * mn10300-tdep.c (mn10300_pop_frame_regular)
3896 (mn10300_print_register): Ditto.
3897 * mipsv4-nat.c (fill_fpregset): Ditto.
3898 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
3899 (mips64_fill_fpregset): Ditto.
3900 * mi/mi-main.c (register_changed_p, get_register)
3901 (mi_cmd_data_write_register_values): Ditto.
3902 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
3903 * irix5-nat.c (fill_gregset, fetch_core_registers):
3904 * infrun.c (write_inferior_status_register): Ditto.
3905 * infptrace.c (fetch_register, store_register): Ditto.
3906 * infcmd.c (default_print_registers_info): Ditto.
3907 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
3908 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
3909 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
3910 * hpux-thread.c (hpux_thread_fetch_registers)
3911 (hpux_thread_store_registers): Ditto.
3912 * hppah-nat.c (store_inferior_registers, fetch_register):
3913 * findvar.c (value_from_register): Ditto.
3914 * dve3900-rom.c (fetch_bitmapped_register):
3915 * cris-tdep.c (cris_gdbarch_init): Ditto.
3916 * alpha-tdep.h: Ditto.
3917 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
3918
3919 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
3920 DEPRECATED_REGISTER_RAW_SIZE from comments.
3921 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
3922 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
3923 DEPRECATED_REGISTER_RAW_SIZE.
3924 * findvar.c (value_of_register): Simplify by assuming that the
3925 registers raw and virtual sizes are identical.
3926 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
3927 comment.
3928 * arch-utils.c (generic_register_size): Simplify by assuming
3929 register_type.
3930
3931 * regcache.c (legacy_read_register_gen, real_register)
3932 (legacy_write_register_gen): Delete, not used.
3933
3934 * regcache.c (struct regcache_descr): Delete legacy_p.
3935 (init_legacy_regcache_descr): Delete function.
3936 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
3937 Do not use deprecated register functions.
3938 (regcache_raw_read, deprecated_write_register_gen):
3939 (deprecated_read_register_gen, regcache_raw_write): Delete code
3940 predicated on legacy_p.
3941 (register_size): Delete check against register raw size.
3942
3943 * cris-tdep.c (cris_register_type): Replace
3944 cris_register_virtual_type.
3945 (cris_gdbarch_init): Update, set register_type.
3946
3947 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
3948 * gdbarch.h, gdbarch.c: Re-generate.
3949 * arm-tdep.c (arm_frameless_function_invocation): Delete.
3950 (arm_gdbarch_init) Do not set frameless function invocation.
3951 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
3952 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
3953 * frv-tdep.c (frv_frameless_function_invocation): Delete.
3954 (frv_gdbarch_init): Do not set frameless function invocation.
3955 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
3956 * sh-tdep.c (sh_gdbarch_init): Ditto.
3957 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
3958 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3959 * avr-tdep.c (avr_gdbarch_init): Ditto.
3960
3961 * blockframe.c (legacy_frame_chain_valid): Delete function.
3962
3963 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
3964 and pc. Update comments.
3965 (pc_in_dummy_frame): Delete function.
3966 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
3967 use the "id".
3968 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
3969 call_hi, top and pc, use the id.
3970 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
3971
3972 * dummy-frame.c: Include "gdb_string.h".
3973 (generic_save_call_dummy_addr, generic_push_dummy_frame)
3974 (generic_save_dummy_frame_tos): Delete.
3975 (dummy_frame_push): New function, replaces above.
3976 * dummy-frame.h: Update copyright.
3977 (dummy_frame_push): Declare.
3978 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
3979 (generic_save_call_dummy_addr): Delete declarations.
3980 * infcall.c: Include "dummy-frame.h".
3981 (call_function_by_hand): Add locals caller_regcache,
3982 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
3983 with call to frame_save_as_regcache plus cleanup. Delete calls to
3984 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
3985 Move clear_proceed_status to just before the resume, add call to
3986 dummy_frame_push (discard cleanup).
3987 * Makefile.in (infcall.o): Add $(dummy_frame_h).
3988 (dummy-frame.o): Add $(gdb_string_h).
3989
3990 2004-08-01 Andrew Cagney <cagney@gnu.org>
3991
3992 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
3993 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
3994 * dummy-frame.c (find_dummy_frame): Delete.
3995 (struct dummy_frame_cache, dummy_frame_sniffer)
3996 (dummy_frame_prev_register, dummy_frame_this_id)
3997 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
3998 frame unwinder using a dummy_frame_cache.
3999
4000 2004-08-01 Andrew Cagney <cagney@gnu.org>
4001
4002 * frame.h (frame_save_as_regcache): Declare.
4003 * frame.c (frame_save_as_regcache): New function.
4004 (do_frame_read_register): Replace do_frame_unwind_register.
4005 (frame_pop): Use frame_save_as_regcache.
4006 * dummy-frame.c (generic_push_dummy_frame): Use
4007 frame_save_as_regcache.
4008
4009 2004-08-01 Joel Brobecker <brobecker@gnat.com>
4010
4011 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
4012 file as included until we record the first line in the linetable.
4013
4014 2004-08-01 Andrew Cagney <cagney@gnu.org>
4015
4016 * frame.h (deprecated_pop_dummy_frame)
4017 (deprecated_read_register_dummy)
4018 (deprecated_generic_find_dummy_frame): Delete.
4019 * dummy-frame.c (deprecated_generic_find_dummy_frame)
4020 (deprecated_read_register_dummy)
4021 (deprecated_find_dummy_frame_regcache)
4022 (discard_innermost_dummy)
4023 (deprecated_pop_dummy_frame): Delete.
4024 (dummy_frame_this_id): Simplify.
4025 (struct dummy_frame): Delete "fp" and "sp".
4026 (find_dummy_frame): Simplify.
4027 (generic_push_dummy_frame): Do not set "fp" or "sp".
4028 (fprint_dummy_frames): Do not print "fp" and "sp"
4029
4030 2004-08-01 Mark Kettenis <kettenis@gnu.org>
4031
4032 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
4033 (struct i386_insn): New structure.
4034 (i386_match_insn): New function.
4035 (i386_frame_setup_skip_insns): New variable.
4036 (i386_analyze_frame_setup): Change to use i386_match_insn and the
4037 array i386_frame_setup_insns of instructions that should be
4038 skipped inside the frame setup sequence.
4039
4040 2004-08-01 Andrew Cagney <cagney@gnu.org>
4041
4042 * frame.h (deprecated_frame_xmalloc_with_cleanup)
4043 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
4044 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
4045 * stack.c (frame_info): Delete references to
4046 DEPRECATED_FRAME_INIT_SAVED_REGS and
4047 deprecated_get_frame_saved_regs.
4048 * frame.c (struct frame_info): Delete saved_regs and extra_info.
4049 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
4050 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
4051 (frame_unwind_register_signed)
4052 (frame_unwind_register_unsigned)
4053 (frame_unwind_unsigned_register): Use register_size.
4054 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
4055 (deprecated_frame_xmalloc_with_cleanup)
4056 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
4057 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
4058
4059 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
4060 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
4061 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
4062 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
4063
4064 * infcall.c (call_function_by_hand): Do not use
4065 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
4066 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
4067 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
4068 DEPRECATED_STACK_ALIGN.
4069
4070 2004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
4071
4072 Committed by Andrew Cagney.
4073 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
4074
4075 2004-08-01 Andrew Cagney <cagney@gnu.org>
4076
4077 * mips-tdep.c (mips16_frame_cache)
4078 (mips16_frame_this_id, mips16_frame_prev_register)
4079 (mips16_frame_unwind, mips16_frame_sniffer)
4080 (mips16_frame_base_address, mips16_frame_base)
4081 (mips16_frame_base_sniffer, mips32_frame_cache)
4082 (mips32_frame_this_id, mips32_frame_prev_register)
4083 (mips32_frame_unwind, mips32_frame_sniffer)
4084 (mips32_frame_base_address, mips32_frame_base)
4085 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
4086 separate heuristic mips16 and mips32 unwinders.
4087 (mips_stub_frame_cache, mips_stub_frame_this_id)
4088 (mips_stub_frame_prev_register)
4089 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
4090 (mips_stub_frame_base_address, mips_stub_frame_base)
4091 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
4092 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
4093 match true mdebug frames.
4094 (non_heuristic_proc_desc): Add forward declaration.
4095
4096 2004-08-01 Andrew Cagney <cagney@gnu.org>
4097
4098 * config/mips/tm-irix6.h: Delete file.
4099 * config/mips/tm-irix5.h: Delete file.
4100 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
4101 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
4102
4103 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
4104 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
4105 * config/nm-gnu.h (NO_CORE_OPS): Delete.
4106 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
4107 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
4108 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
4109 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
4110 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
4111 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
4112 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
4113 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
4114 (TARGET_SIGNAL_RAW_VALUES): Delete.
4115 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
4116 Delete.
4117 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
4118 (TARGET_HW_WATCH_LIMIT): Delete.
4119 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
4120 * minimon.h: Delete file.
4121
4122 * trad-frame.c (trad_frame_get_this_base)
4123 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
4124 functions.
4125 * trad-frame.h (trad_frame_set_this_base)
4126 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
4127
4128 2004-07-31 Andrew Cagney <cagney@gnu.org>
4129
4130 * trad-frame.c (trad_frame_get_prev_register): Rename
4131 trad_frame_get_prev_register.
4132 * vax-tdep.c (vax_frame_prev_register): Update.
4133 * trad-frame.h: Update.
4134 * trad-frame.c (trad_frame_get_register): Update.
4135 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
4136 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
4137 Update.
4138 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
4139 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
4140 Update.
4141 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
4142 Update.
4143 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
4144 Update.
4145 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
4146 Update.
4147 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
4148 Update.
4149 * s390-tdep.c (s390_frame_prev_register)
4150 (s390_stub_frame_prev_register)
4151 (s390_sigtramp_frame_prev_register): Update.
4152 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
4153 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
4154 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
4155 * m88k-tdep.c (m88k_frame_prev_register)
4156 * m68hc11-tdep.c (m68hc11_frame_prev_register)
4157 * m32r-tdep.c (m32r_frame_prev_register): Update.
4158 * hppa-tdep.c (hppa_frame_prev_register_helper)
4159 * frv-tdep.c (frv_frame_prev_register): Update.
4160 * d10v-tdep.c (d10v_frame_prev_register): Update.
4161 * cris-tdep.c (cris_frame_prev_register): Update.
4162 * avr-tdep.c (avr_frame_prev_register): Update.
4163 * arm-tdep.c (arm_prologue_prev_register)
4164 (arm_sigtramp_prev_register): Update.
4165
4166 2004-07-31 Andrew Cagney <cagney@gnu.org>
4167
4168 * frame.h (legacy_saved_regs_unwind)
4169 (legacy_frame_chain_valid, legacy_frame_p)
4170 (enum frame_type): Delete UNKNOWN_FRAME.
4171 * dummy-frame.c (dummy_frame_this_id): Simplify.
4172 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
4173 * frame.c (struct frame_info): Delete the field "type".
4174 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
4175 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
4176 (legacy_saved_regs_unwind, legacy_frame_p)
4177 (frame_type_from_pc): Delete.
4178 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
4179 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
4180
4181 2004-07-31 Mark Kettenis <kettenis@gnu.org>
4182
4183 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
4184 indentation.
4185
4186 * mips-nat.c: Remove file.
4187 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
4188 (mips-nat.o): Remove dependency.
4189
4190 * infptrace.c: Update copyright year.
4191 (fetch_register): Pass NULL in regcache_raw_supply call instead of
4192 explicitly setting the buffer to all zeroes.
4193
4194 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
4195 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
4196
4197 2004-07-30 Andrew Cagney <cagney@gnu.org>
4198
4199 * GDB 6.2 released from gdb_6_2-branch.
4200
4201 2004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
4202
4203 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
4204
4205 * exec.c (exec_file_attach):
4206 * nto-tdep.c (nto_find_and_open_solib):
4207 * pa64solib.c (pa64_solib_sizeof_symbol_table):
4208 * solib.c (solib_open):
4209 * somsolib.c (som_solib_sizeof_symbol_table):
4210 * source.c (is_regular_file, openp, open_source_file):
4211 * symfile.c (symfile_bfd_open):
4212 * wince.c (upload_to_device): Differentiate between the search for
4213 binary and source files.
4214
4215 2004-07-30 Andrew Cagney <cagney@gnu.org>
4216
4217 * complaints.c (_initialize_complaints): Pass NULL to
4218 add_setshow_zinteger_cmd for help_doc.
4219 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
4220
4221 2004-07-30 Andrew Cagney <cagney@gnu.org>
4222
4223 Fix PR i18n/761.
4224 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
4225 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
4226 $(PACKAGE).pot and update-po.
4227 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
4228 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
4229 (update-po): New rules.
4230 (localedir): Define using autoconf.
4231 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
4232 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
4233 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
4234 * configure.in: Generate CATALOGS and LINGUAS from contents of
4235 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
4236 * configure: Re-generate.
4237 * po/gdbtext: New file
4238
4239 2004-07-30 Jerome Guitton <guitton@gnat.com>
4240
4241 * MAINTAINERS: Reorder Write After Approval list in alphabetical
4242 order.
4243
4244 2004-07-30 David Lecomber <dsl@sources.redhat.com>
4245
4246 * dwarf2read.c (read_file_scope): Set producer if attribute
4247 present.
4248 (struct dwarf2_cu): Added new member producer.
4249
4250 2004-07-30 Jerome Guitton <guitton@gnat.com>
4251
4252 * inflow.c (kill_command): release file handles in BFD.
4253 * exec.c (exec_file_attach): Ditto.
4254 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
4255
4256 2004-07-29 Andrew Cagney <cagney@gnu.org>
4257
4258 * PROBLEMS (mips-irix): Note that it is broken.
4259
4260 2004-07-29 Andrew Cagney <cagney@gnu.org>
4261
4262 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
4263 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
4264
4265 * config/xm-nbsd.h: Delete file.
4266 * config/arm/xm-nbsd.h: Delete file.
4267 * config/i386/xm-nbsd.h: Delete file.
4268 * config/ns32k/xm-nbsd.h: Delete file.
4269 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
4270 * config/i386/nbsdelf.mh (XM_FILE): Delete.
4271 * config/i386/nbsdaout.mh (XM_FILE): Delete.
4272 * config/arm/nbsdelf.mh (XM_FILE): Delete.
4273 * config/arm/nbsdaout.mh (XM_FILE): Delete.
4274
4275 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
4276 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
4277 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
4278 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
4279 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
4280 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
4281
4282 * config/powerpc/xm-linux.h: Delete empty file.
4283 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
4284 * config/powerpc/linux.mh (XM_FILE): Delete.
4285 * config/m68k/xm-linux.h: Delete empty file.
4286 * config/m68k/linux.mh (XM_FILE): Delete.
4287 * config/ia64/xm-linux.h: Delete empty file.
4288 * config/ia64/linux.mh (XM_FILE): Delete.
4289 * config/arm/xm-linux.h: Delete empty file.
4290 * config/arm/linux.mh (XM_FILE): Delete.
4291
4292 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4293 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
4294 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4295 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
4296 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4297 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
4298 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4299 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
4300
4301 * config/m68k/xm-m68k.h: Delete file.
4302 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
4303 copyright.
4304 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
4305 * config/pa/xm-linux.h: Delete empty file.
4306 * config/pa/linux.mh (XM_FILE): Delete.
4307 * config/i386/xm-i386.h: Delete empty file.
4308 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
4309 "i386/xm-i386.h".
4310 * config/i386/obsdaout.mh (XM_FILE): Delete.
4311 * config/i386/obsd64.mh (XM_FILE): Delete.
4312 * config/i386/fbsd64.mh (XM_FILE): Delete.
4313 * config/i386/nto.mh (XM_FILE): Delete.
4314 * config/i386/obsd.mh (XM_FILE): Delete.
4315 * config/i386/linux64.mh (XM_FILE): Delete.
4316 * config/i386/linux.mh (XM_FILE): Delete.
4317 * config/i386/i386sol2.mh (XM_FILE): Delete.
4318 * config/i386/i386gnu.mh (XM_FILE): Delete.
4319 * config/i386/fbsd.mh (XM_FILE): Delete.
4320 * config/i386/nbsd64.mh (XM_FILE): Delete.
4321
4322 2004-07-29 Andrew Cagney <cagney@gnu.org>
4323
4324 * config/pa/xm-linux.h: Do not include "floatformat.h".
4325 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4326 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
4327 * config/i386/xm-i386.h: Do not include "floatformat.h".
4328 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4329 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
4330 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4331 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
4332 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
4333 GDB_HOST_LONG_DOUBLE_FORMAT instead.
4334 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
4335 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
4336 * configure, config.in: Regenerate.
4337 * configure.host (gdb_host_float_format, gdb_host_double_format)
4338 (gdb_host_long_double_format): Set according to the host.
4339
4340 2004-07-29 Andrew Cagney <cagney@gnu.org>
4341
4342 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
4343
4344 2004-07-28 Andrew Cagney <cagney@gnu.org>
4345
4346 * PROBLEMS: Mention threads/1650.
4347 * NEWS: Mention the NPTL fix.
4348
4349 2004-07-28 Andrew Cagney <cagney@gnu.org>
4350
4351 * cli/cli-decode.c (add_setshow_cmd): Delete function.
4352 (add_setshow_cmd_full): Make static.
4353 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
4354 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
4355 * cli/cli-decode.c (add_setshow_filename_cmd)
4356 (add_setshow_string_cmd): New functions.
4357 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
4358 * mips-tdep.c (_initialize_mips_tdep): Update.
4359 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
4360 * cli/cli-logging.c (_initialize_cli_logging): Update.
4361 * complaints.c (_initialize_complaints): Update.
4362 * remote.c (_initialize_remote): Update.
4363
4364 2004-07-28 Andrew Cagney <cagney@gnu.org>
4365
4366 * cli/cli-decode.c (add_setshow_zinteger_cmd)
4367 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
4368 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
4369 print parameters. Make string parameters constant.
4370 * command.h: Update. Update copyright.
4371 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
4372 * observer.c (_initialize_observer): Ditto.
4373 * frame.c (_initialize_frame): Ditto.
4374 * complaints.c (_initialize_complaints): Ditto.
4375 * maint.c (_initialize_maint_cmds): Ditto.
4376 * target.c (initialize_targets): Ditto.
4377 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
4378 * infcall.c (_initialize_infcall): Ditto.
4379 * arm-tdep.c (_initialize_arm_tdep): Ditto.
4380 * m32r-rom.c (_initialize_m32r_rom): Ditto.
4381 * remote-rdi.c (_initialize_remote_rdi): Ditto.
4382 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
4383 * mips-tdep.c (_initialize_mips_tdep): Ditto.
4384
4385 2004-07-28 Andrew Cagney <cagney@gnu.org>
4386
4387 * gdbtypes.c (lookup_primitive_typename): Delete function.
4388 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
4389 * ada-lex.l: Use language_lookup_primitive_type_by_name.
4390 * gdbtypes.c (lookup_typename): Ditto.
4391 * f-exp.y (yylex): Ditto.
4392 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
4393
4394 * scm-lang.c (c_builtin_types): Delete extern declaration.
4395 (scm_language_defn): Replace
4396 string_char_type and primitive_type_vector with
4397 la_language_arch_info.
4398 * jv-lang.c (java_language_defn): Replace
4399 string_char_type and primitive_type_vector with
4400 la_language_arch_info.
4401 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
4402 c_builtin_types in comment.
4403 * c-lang.h (struct language_arch_info): Declare opaque.
4404 (c_language_arch_info): Declare.
4405 (c_builtin_types): Delete declaration.
4406 * c-lang.c (c_language_arch_info): Set string_char_type to
4407 builtin_char, not builtin_true_char. Make global.
4408 (c_builtin_types): Delete array.
4409 (asm_language_defn, minimal_language_defn): Replace
4410 string_char_type and primitive_type_vector with
4411 la_language_arch_info.
4412
4413 2004-07-28 Andrew Cagney <cagney@gnu.org>
4414
4415 * gdbtypes.h (struct builtin_type): Rename true_char to
4416 builtin_true_char.
4417 * gdbtypes.c (gdbtypes_post_init): Update.
4418 * c-lang.c (arch_info): New function.
4419 (enum c_primitive_types): New enum.
4420 (c_language_defn): Instead of string_char_type and
4421 primitive_type_vector set la_language_arch_info.
4422
4423 2004-07-28 Andrew Cagney <cagney@gnu.org>
4424
4425 * language.h (struct language_arch_info): Fix typo
4426 s/primative/primitive/.
4427 * gdbtypes.c (lookup_primitive_typename): Ditto.
4428 * language.c (language_lookup_primitive_type_by_name)
4429 (unknown_language_arch_info): Ditto.
4430
4431 2004-07-27 Andrew Cagney <cagney@gnu.org>
4432
4433 * defs.h (enum language): Add nr_languages.
4434 * language.h (struct language_arch_info): Define.
4435 (struct language_defn): Add la_language_arch_info.
4436 (language_lookup_primative_type_by_name): Declare.
4437 (language_string_char_type): Declare.
4438 * language.c (_initialize_language, language_gdbarch_post_init)
4439 (struct language_gdbarch, language_gdbarch_data): Implement
4440 per-architecture language information.
4441 (unknown_language_arch_info, language_string_char_type)
4442 (language_lookup_primative_type_by_name): New functions.
4443 (unknown_language_defn, auto_language_defn)
4444 (local_language_defn): Set la_language_arch_info to
4445 unknown_language_arch_info.
4446 (unknown_builtin_types): Delete.
4447 * gdbtypes.c (lookup_primitive_typename): Use
4448 language_lookup_primative_type_by_name.
4449 (create_string_type): Use language_string_char_type.
4450 * values.c (value_from_string): Use language_string_char_type.
4451 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
4452 * p-lang.c (pascal_language_defn): Ditto.
4453 * m2-lang.c (m2_language_defn): Ditto.
4454 * jv-lang.c (java_language_defn): Ditto.
4455 * objc-lang.c (objc_language_defn): Ditto.
4456 * f-lang.c (f_language_defn): Ditto.
4457 * c-lang.c (c_language_defn, cplus_language_defn)
4458 (asm_language_defn, minimal_language_defn): Ditto.
4459
4460 2004-07-27 Andrew Cagney <cagney@gnu.org>
4461
4462 * gdbtypes.h (struct builtin_type): Declare.
4463 (builtin_type): Declare.
4464 * d10v-tdep.c (d10v_register_type): Use builtin_type.
4465 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
4466 (gdbtypes_post_init): New function.
4467 (builtin_type): New function.
4468
4469 2004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
4470
4471 * remote-m32r-sdi.c: Fix breakpoint bug.
4472 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
4473 recv_char_data, recv_long_data): New functions to replace communication
4474 sequences.
4475
4476 2004-07-26 Michael Chastain <mec.gnu@mindspring.com>
4477
4478 Document PR threads/1650.
4479 * PROBLEMS (Threads): Document problem with many threads
4480
4481 2004-07-26 Andrew Cagney <cagney@gnu.org>
4482
4483 * gdb-mi.el: Move from here ...
4484 * mi/gdb-mi.el: ... to here.
4485
4486 2004-07-26 Andrew Cagney <cagney@gnu.org>
4487
4488 Problem reported by Ashley Pittman <ashley@quadrics.com>.
4489 * main.c (captured_main): When in batch mode always detach.
4490
4491 2004-07-26 Andrew Cagney <cagney@gnu.org>
4492
4493 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
4494 and h8300 as broken.
4495 * NEWS: END-OF-LIFE frame compatibility module.
4496 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
4497 specific comments.
4498
4499 2004-07-26 Andrew Cagney <cagney@gnu.org>
4500
4501 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
4502 * xcoffsolib.c (_initialize_xcoffsolib): Update.
4503 * wince.c (_initialize_wince): Update.
4504 * win32-nat.c (_initialize_win32_nat): Update.
4505 * varobj.c (_initialize_varobj): Update.
4506 * valops.c (_initialize_valops): Update.
4507 * utils.c (initialize_utils, initialize_utils): Update.
4508 * tui/tui-win.c (_initialize_tui_win): Update.
4509 * top.c (init_main): Update.
4510 * symfile.c (_initialize_symfile): Update.
4511 * source.c (_initialize_source): Update.
4512 * somsolib.c (_initialize_som_solib): Update.
4513 * solib.c (_initialize_solib): Update.
4514 * solib-frv.c (_initialize_frv_solib): Update.
4515 * serial.c (_initialize_serial): Update.
4516 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
4517 * remote.c (_initialize_remote, _initialize_remote): Update.
4518 * remote-vx.c (_initialize_vx): Update.
4519 * remote-utils.c (_initialize_sr_support): Update.
4520 * remote-sds.c (_initialize_remote_sds): Update.
4521 * remote-mips.c (_initialize_remote_mips): Update.
4522 * remote-e7000.c (_initialize_remote_e7000): Update.
4523 * proc-api.c (_initialize_proc_api): Update.
4524 * printcmd.c: Update.
4525 * parse.c (_initialize_parse): Update.
4526 * pa64solib.c (_initialize_pa64_solib): Update.
4527 * p-valprint.c (_initialize_pascal_valprint): Update.
4528 * monitor.c (_initialize_remote_monitors): Update.
4529 * mips-tdep.c (_initialize_mips_tdep): Update.
4530 * mcore-tdep.c (_initialize_mcore_tdep): Update.
4531 * maint.c (_initialize_maint_cmds): Update.
4532 * lin-lwp.c (_initialize_lin_lwp): Update.
4533 * language.c (_initialize_language): Update.
4534 * kod.c (_initialize_kod): Update.
4535 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
4536 * i386-tdep.c (_initialize_i386_tdep): Update.
4537 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
4538 * gdbarch.sh: Update.
4539 * gdbarch.c: Re-generate.
4540 * gdb-events.sh: Update.
4541 * gdb-events.c: Re-generate.
4542 * frame.c (_initialize_frame): Update.
4543 * exec.c: Update.
4544 * demangle.c (_initialize_demangler): Update.
4545 * dcache.c (_initialize_dcache): Update.
4546 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
4547 * cp-valprint.c (_initialize_cp_valprint): Update.
4548 * corefile.c (_initialize_core): Update.
4549 * command.h: Update.
4550 * cli/cli-decode.h: Update.
4551 * cli/cli-cmds.c (init_cli_cmds): Update.
4552 * charset.c (_initialize_charset): Update.
4553 * breakpoint.c (_initialize_breakpoint): Update.
4554 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
4555 * alpha-tdep.c (_initialize_alpha_tdep): Update.
4556 * aix-thread.c (_initialize_aix_thread): Update.
4557
4558 2004-07-24 Mark Kettenis <kettenis@gnu.org>
4559
4560 Partial fix for PR backtrace/1718.
4561 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
4562 that GCC migrates into the prolugue. Don't handle any
4563 instructions that clobber %ebx.
4564
4565 2004-07-23 Andrew Cagney <cagney@gnu.org>
4566
4567 Use regcache_raw_collect instead of regcache_collect.
4568 * regcache.h (regcache_collect): Delete declaration.
4569 * regcache.c (regcache_colect): Delete function.
4570 * win32-nat.c (do_child_store_inferior_registers): Update.
4571 * sol-thread.c (sol_thread_store_registers): Update.
4572 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
4573 * rs6000-nat.c (store_register): Update.
4574 * remote.c (store_register_using_P, remote_store_registers): Update.
4575 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
4576 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
4577 (fill_vrregset, store_spe_registers, fill_gregset)
4578 (fill_gregset): Update.
4579 * nto-procfs.c (procfs_store_registers): Update.
4580 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
4581 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
4582 * m68klinux-nat.c (store_register, fill_gregset): Update.
4583 * m68k-tdep.c (fill_gregset): Update.
4584 * infptrace.c (store_register): Update.
4585 * i386-nto-tdep.c (i386nto_regset_fill): Update.
4586 * i386-linux-nat.c (store_register, fill_gregset): Update.
4587 * hppa-linux-nat.c (fill_gregset): Update.
4588 * go32-nat.c (store_register): Update.
4589 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
4590 (store_fp_regs): Update.
4591 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
4592 (store_nwfpe_extended, store_fpregister, store_fpregs)
4593 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
4594 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
4595 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
4596 (store_regs_user_thread, store_regs_kernel_thread): Update.
4597
4598 2004-07-24 Mark Kettenis <kettenis@gnu.org>
4599
4600 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
4601 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
4602 encoding.
4603 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
4604 member of `struct comp_unit'.
4605
4606 2004-07-23 Andrew Cagney <cagney@gnu.org>
4607
4608 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
4609 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
4610
4611 2004-07-23 Martin Hunt <hunt@redhat.com>
4612 Kevin Buettner <kevinb@redhat.com>
4613
4614 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
4615 alignment was being added to the offset instead of multiplied.
4616
4617 2004-07-23 Mark Kettenis <kettenis@gnu.org>
4618
4619 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
4620 changed signal trampoline in OpenBSD 3.5-current.
4621
4622 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
4623 <machine/pcb.h> and "bsd-kvm.h".
4624 (sparc64nbsd_supply_pcb): New function.
4625 (_initialize_sparc64nbsd_nat): Renamed from
4626 _initialize_sparcnbsd_nat. Enable libkvm interface.
4627 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
4628 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
4629 (LOADLIBES): New variable.
4630
4631 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
4632
4633 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
4634
4635 2004-07-21 Andrew Cagney <cagney@gnu.org>
4636
4637 Use regcache_raw_supply instead of supply_register.
4638 * regcache.h (supply_register): Delete declaration.
4639 * regcache.c (supply_register): Delete function.
4640 * wince.c (do_child_fetch_inferior_registers): Update.
4641 * win32-nat.c (do_child_fetch_inferior_registers)
4642 (fetch_elf_core_registers): Update.
4643 * v850ice.c (v850ice_fetch_registers): Update.
4644 * thread-db.c (thread_db_store_registers): Update.
4645 * sol-thread.c (sol_thread_store_registers): Update.
4646 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
4647 * rs6000-nat.c (fetch_register): Update.
4648 * rom68k-rom.c (rom68k_supply_one_register): Update.
4649 * remote.c (remote_wait, remote_async_wait): Update.
4650 * remote-st.c (get_hex_regs): Update.
4651 * remote-sim.c (gdbsim_fetch_register): Update.
4652 * remote-sds.c (sds_fetch_registers): Update.
4653 * remote-rdp.c (remote_rdp_fetch_register): Update.
4654 * remote-rdi.c (arm_rdi_fetch_registers): Update.
4655 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
4656 * remote-m32r-sdi.c (m32r_fetch_register): Update.
4657 * remote-hms.c (init_hms_cmds): Update.
4658 * remote-est.c (init_est_cmds): Update.
4659 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
4660 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
4661 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
4662 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
4663 (fetch_register, supply_vrregset, supply_vrregset)
4664 (fetch_spe_registers): Update.
4665 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
4666 * monitor.c (monitor_supply_register): Update.
4667 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
4668 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
4669 (mipsnbsd_supply_fpreg): Update.
4670 * mips-nat.c (fetch_inferior_registers)
4671 (fetch_core_registers): Update.
4672 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
4673 (supply_fpregset, mips64_supply_gregset)
4674 (mips64_supply_fpregset): Update.
4675 * m68klinux-nat.c (fetch_register, supply_gregset)
4676 (supply_fpregset): Update.
4677 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
4678 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
4679 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
4680 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
4681 * infptrace.c (fetch_register): Update.
4682 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
4683 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
4684 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
4685 (gnu_fetch_registers, gnu_store_registers): Update.
4686 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
4687 * i386-linux-nat.c (fetch_register, supply_gregset)
4688 (dummy_sse_values): Update.
4689 * hpux-thread.c (hpux_thread_fetch_registers): Update.
4690 * hppah-nat.c (fetch_register): Update.
4691 * hppa-linux-nat.c (fetch_register, supply_gregset)
4692 (supply_fpregset): Update.
4693 * go32-nat.c (fetch_register): Update.
4694 * dve3900-rom.c (fetch_bitmapped_register)
4695 (_initialize_r3900_rom): Update.
4696 * cris-tdep.c (supply_gregset): Update.
4697 * abug-rom.c (init_abug_cmds): Update.
4698 * core-aout.c (fetch_core_registers): Update.
4699 * armnbsd-nat.c (supply_gregset, supply_fparegset)
4700 (fetch_register, fetch_fp_register): Update.
4701 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
4702 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
4703 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
4704 * alphanbsd-tdep.c (fetch_core_registers): Update.
4705 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
4706 * alpha-nat.c (fetch_osf_core_registers)
4707 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
4708 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
4709 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
4710
4711 2004-07-21 Andrew Cagney <cagney@gnu.org>
4712
4713 * PROBLEMS: Mention breakpoints/1702.
4714 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
4715 that is known to work.
4716
4717 2004-07-21 Andrew Cagney <cagney@gnu.org>
4718
4719 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
4720 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
4721 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
4722 (handle_inferior_event): Wrap call to deprecated
4723 IGNORE_HELPER_CALL in #ifdef.
4724 * config/mips/tm-nbsd.h: Update.
4725
4726 2004-07-20 Jim Blandy <jimb@redhat.com>
4727
4728 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
4729 bfd_mach_ppc has no segment registers.
4730
4731 Include PowerPC SPR numbers for special-purpose registers.
4732 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
4733 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
4734 new member in initializer.
4735 (S, S4, SN4, S64): New macros for defining special-purpose
4736 registers.
4737 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
4738 registers_403, registers_403GC, registers_505, registers_860,
4739 registers_601, registers_602, registers_603, registers_604,
4740 registers_750, registers_e500): Use them.
4741
4742 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
4743 replace references with expression used to initialize variable.
4744
4745 2004-07-20 Andrew Cagney <cagney@gnu.org>
4746
4747 * breakpoint.c (deprecated_read_memory_nobpt): Rename
4748 read_memory_nobpt.
4749 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
4750 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
4751 (s390_sigtramp_frame_sniffer): Update.
4752 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
4753 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
4754 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
4755 (mips32_fetch_instruction): Update.
4756 * mcore-tdep.c (get_insn): Update.
4757 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
4758 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
4759 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
4760 * i386-linux-tdep.c (i386_linux_sigtramp_start)
4761 (i386_linux_rt_sigtramp_start): Update.
4762 * i386-linux-nat.c (child_resume): Update.
4763 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
4764 * hppa-linux-tdep.c (insns_match_pattern): Update.
4765 * gdbcore.h: Update.
4766 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
4767 * frame.c (safe_frame_unwind_memory): Update.
4768 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
4769 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
4770 * alpha-tdep.c (alpha_read_insn): Update.
4771
4772 2004-07-20 Andrew Cagney <cagney@gnu.org>
4773
4774 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
4775 containing both bytes and mask. Add "frame_type".
4776 * tramp-frame.c (tramp_frame_start): Update.
4777 (tramp_frame_prepend_unwinder): Update.
4778 * mips-linux-tdep.c (mips_linux_o32_sigframe)
4779 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
4780 (mips_linux_n64_rt_sigframe): Update. Make "static const".
4781 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
4782
4783 2004-07-19 Eli Zaretskii <eliz@gnu.org>
4784
4785 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
4786 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
4787 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
4788 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
4789
4790 2004-07-17 Andrew Cagney <cagney@gnu.org>
4791
4792 * NEWS, PROBLEMS: Update for 6.2.
4793
4794 * README: Update to 6.2.
4795
4796 * utils.c (xvasprintf): Call xstrvprintf.
4797
4798 * parse.c: Update copyright.
4799 (null_post_parser): Eliminate ARGSUSED.
4800
4801 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
4802 * tui/tui-win.c (tui_get_cmd_list): Ditto.
4803 * symfile-mem.c (_initialize_symfile_mem): Ditto.
4804
4805 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
4806 * ppc-linux-nat.c: Use "Linux kernel".
4807 * hppa-linux-tdep.c: Use GNU/Linux.
4808 * hppa-linux-nat.c: Use GNU/Linux.
4809 * dwarfread.c: Add [sic] to use of Linux.
4810
4811 * hppa-linux-nat.c: Do not include <string.h>.
4812 (supply_fpregset): Remove "register" attribute.
4813
4814 * solib-frv.c (fetch_loadmap): Use xfree, not free.
4815
4816 2004-07-17 Mark Kettenis <kettenis@gnu.org>
4817
4818 * configure.in: Define _MSE_INT_H on Solaris 9 too.
4819 * configure, config.in: Regenerated.
4820
4821 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
4822 "bsd-kvm.h".
4823 (vaxbsd_supply_pcb): New function.
4824 (_initialize_vaxbsd_nat): New prototype and function.
4825 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
4826 solib-sunos.o.
4827 (LOADLIBES): New variable.
4828 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
4829 (LOADLIBES): New variable.
4830 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
4831 (LOADLIBES): New variable.
4832 * Makefile.in (vaxbsd-nat.o): Update dependencies.
4833
4834 2004-07-16 Andrew Cagney <cagney@gnu.org>
4835
4836 * defs.h (event_loop_p): Replace variable declaration with macro,
4837 always 1.
4838 * main.c (captured_main): Delete options "-async" and "-noasync".
4839 (event_loop_p): Delete variable.
4840 * NEWS: Mention that "-async" and "-noasync" were removed.
4841
4842 2004-07-16 Andrew Cagney <cagney@gnu.org>
4843
4844 * remote-m32r-sdi.c: Re-indent.
4845
4846 2004-07-16 Jim Blandy <jimb@redhat.com>
4847
4848 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
4849 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
4850 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
4851 missing MPC823 SPRs.
4852 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
4853 incorrect. (This was corrected in GDB's register name tables on
4854 2004-07-14.)
4855
4856 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
4857 should be "esasrr" ("ESA Save and Restore Register").
4858
4859 2004-07-16 Andrew Cagney <cagney@gnu.org>
4860
4861 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
4862 calls, no longer applicable. Update comments and rename parameter
4863 "step_frame" to "return_frame".
4864
4865 2004-07-16 Andrew Cagney <cagney@gnu.org>
4866
4867 * frame.c (fprint_field): New function.
4868 (fprint_frame_id): Use fprint_field.
4869
4870 2004-07-15 Joel Brobecker <brobecker@gnat.com>
4871
4872 * ada-lang.c (ada_language_defn): Remove commented out code.
4873
4874 2004-07-15 Jim Blandy <jimb@redhat.com>
4875
4876 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
4877 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
4878
4879 2004-07-14 Jim Blandy <jimb@redhat.com>
4880
4881 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
4882
4883 * ppc-tdep.h (ppc_num_vrs): New enum constant.
4884
4885 * ppc-tdep.h (ppc_num_srs): New enum constant.
4886
4887 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
4888 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
4889 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
4890 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
4891 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
4892 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
4893 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
4894 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
4895 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
4896 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
4897 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
4898 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
4899 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
4900 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
4901 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
4902 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
4903 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
4904 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
4905 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
4906 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
4907 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
4908 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
4909 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
4910 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
4911 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
4912 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
4913 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
4914 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
4915 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
4916 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
4917 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
4918 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
4919 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
4920 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
4921 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
4922 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
4923 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
4924 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
4925 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
4926 special-purpose register numbers.
4927
4928 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
4929 manual mentions 'md_twb', but many mention 'm_twb', and at that
4930 point in the register list.)
4931
4932 2004-07-14 Andrew Cagney <cagney@gnu.org>
4933
4934 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
4935 instead of "internal-error".
4936
4937 2004-07-10 Joel Brobecker <brobecker@gnat.com>
4938
4939 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
4940 that was inserted inside a comment.
4941
4942 2004-07-10 Randolph Chung <tausq@debian.org>
4943
4944 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
4945 function.
4946 (hppa_hpux_push_dummy_code): New function.
4947 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
4948 Set find_global_pointer method.
4949
4950 2004-07-10 Mark Kettenis <kettenis@gnu.org>
4951
4952 * NEWS: Mention BSD libkvm interface.
4953
4954 2004-07-10 Michael Snyder <msnyder@redhat.com>
4955
4956 * symfile.c (generic_load): Comment typo.
4957 * stack.c (get_selected_block): Ditto.
4958 * regcache.c (regcache_cooked_read): Ditto.
4959 * monitor.c (monitor_debug): Ditto.
4960 * mips-tdep.c (mips_read_pc): Ditto.
4961 * i386-linux-nat.c (ps_get_thread_area): Ditto.
4962 * gdb_mbuild.sh: Ditto.
4963 * gdbarch.sh: Ditto.
4964 * gdbarch.h: Ditto.
4965
4966 2004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
4967
4968 * ada-tasks.c: Remove file.
4969
4970 Remove ARI problems:
4971
4972 * ada-exp.y (write_var_from_sym): Reformat to put operator at
4973 beginning of line.
4974
4975 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
4976 Add comment.
4977 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
4978 (MIN_OF_SIZE): Rename min_of_size. Add comment.
4979 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
4980 (UMIN_OF_SIZE): Remove.
4981 (max_of_type): New function to replace orphan macro in gdbtypes.h
4982 (min_of_type): Ditto.
4983 (discrete_type_high_bound): Use max_of_type.
4984 (discrete_type_low_bound): Use min_of_type.
4985 (possible_user_operator_p): Move operator to beginning of line.
4986 (ada_is_variant_part): Ditto.
4987 (ensure_lval): Rewrite to avoid deprecated operations.
4988 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
4989 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
4990 (ada_enum_name): Remove assignments in 'if' statements.
4991 (build_ada_types): Add gdbarch parameter.
4992 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
4993 with gdbarch_data_register_post_init.
4994 Use add_setshow_uinteger_cmd rather than add_set_cmd and
4995 add_show_from_set.
4996
4997 * ada-valprint.c (inspect_it): Remove declaration.
4998 (repeat_count_threshold): Remove declaration.
4999 (ada_print_floating): Remove assignments in 'if' statements.
5000 (print_str): Move operator to beginning of line.
5001
5002 2004-07-08 Jim Blandy <jimb@redhat.com>
5003
5004 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
5005
5006 2004-07-08 Bob Rossi <bob@brasko.net>
5007
5008 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
5009
5010 2004-07-06 Jeff Johnston <jjohnstn@redhat.com>
5011
5012 * language.h (struct_language_defn): Add new function pointer:
5013 la_class_name_from_physname. Also add new prototype for
5014 language_class_name_from_physname.
5015 * language.c (language_class_name_from_physname): New function.
5016 (unk_lang_class_name): Ditto.
5017 (unknown_language_defn, auto_language_defn): Change
5018 to add unk_lang_class_name function pointer for
5019 la_class_name_from_physname.
5020 (local_language_defn): Ditto.
5021 * dwarf2read.c (guess_structure_name): Change to call
5022 language_class_name_from_physname.
5023 (determine_class_name): Ditto.
5024 * cp-support.c (class_name_from_physname): Renamed.
5025 (cp_class_name_from_physname): New name of function.
5026 * cp-support.h: Ditto.
5027 * c-lang.c (c_language_defn): Change to add NULL
5028 for class_name_from_physname function pointer.
5029 (cplus_language_defn): Change to add cp_class_name_from_physname.
5030 * jv-lang.c (java_class_name_physname): New function.
5031 (java_find_last_component): New static routine.
5032 (java_language_defn): Add java_class_name_from_physname pointer.
5033 * ada-lang.c (ada_language_defn): Change to add NULL
5034 for class_name_from_physname function pointer.
5035 * f-lang.c (f_language_defn): Ditto.
5036 * m2-lang.c (m2_language_defn): Ditto.
5037 * objc-lang.c (objc_language_defn): Ditto.
5038 * p-lang.c (pascal_language_defn): Ditto.
5039 * scm-lang.c (scm_language_defn): Ditto.
5040
5041 2004-07-06 Andrew Cagney <cagney@gnu.org>
5042
5043 Patch from Bart Robinson.
5044 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
5045 (O_LARGEFILE): Define to 0, if not defined.
5046
5047 2004-07-03 Mark Kettenis <kettenis@gnu.org>
5048
5049 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
5050 <machine/pcb.h> and "bsd-kvm.h".
5051 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
5052 (m68kbsd_supply_pcb): New function.
5053 (_initialize_m68kbsd_nat): New prototype and function.
5054 * Makefile.in (m68kbsd-nat.o): Update dependencies.
5055 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5056 (LOADLIBES): New variable.
5057 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
5058 (LOADLIBES): New variable.
5059
5060 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
5061
5062 2004-07-03 Mark Kettenis <kettenis@gnu.org>
5063
5064 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
5065 <sys/proc.h>.
5066 (bsd_kvm_cmdlist): New variable.
5067 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
5068 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
5069 command and "kvm proc" command.
5070 * Makefile.in (bsd-kvm.o): Update dependencies.
5071
5072 2004-07-02 Mark Kettenis <kettenis@gnu.org>
5073
5074 * osabi.c: Update copyright year.
5075 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
5076 notes if EI_OSABI is set to ELFOSABI_HPUX.
5077
5078 2004-07-01 Michael Snyder <msnyder@redhat.com>
5079
5080 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
5081 that seems to have gotten whacked out of line.
5082
5083 2004-07-01 Mark Kettenis <kettenis@gnu.org>
5084
5085 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
5086 code.
5087
5088 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
5089
5090 * ada-lang.c (decode_packed_array): Minor change to comment.
5091 (ada_value_slice_ptr): New function.
5092 (ada_value_slice): New function.
5093 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
5094 test. Don't know why it is there.
5095 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
5096 to avoid dereferencing huge arrays from which one is slicing.
5097 (empty_array): Correct to return an array rather than
5098 a subrange value.
5099 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
5100 on empty arrays (let'em use 'FIRST instead).
5101
5102 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
5103
5104 Address complaints from gdb_ari.sh:
5105
5106 * ada-exp.y: Include gdb_string.h rather than string.h.
5107 (convert_char_literal): Reformat declaration.
5108 * ada-lang.h: Include opaque struct declaration for struct frame_info.
5109 * ada-lex.l: Change use of free to xfree (the macro would do so
5110 anyway, but this is harmless).
5111 Include gdb_string.h rather than string.h.
5112 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
5113
5114 * ada-lang.c (parse): Remove K&Rism in parameter list.
5115 (is_name_suffix): Correct Linux => GNU/Linux in comment.
5116
5117 2004-06-30 Mark Kettenis <kettenis@gnu.org>
5118
5119 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
5120 dead code.
5121
5122 2004-06-30 Mark Kettenis <kettenis@gnu.org>
5123
5124 * alphabsd-nat.c: Update copyright year.
5125 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
5126
5127 2004-06-29 Joel Brobecker <brobecker@gnat.com>
5128
5129 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
5130 (i386_cygwin_in_solib_call_trampoline): New function.
5131 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
5132 and skip_trampoline_code gdbarch methods.
5133
5134 2004-06-29 Jim Blandy <jimb@redhat.com>
5135
5136 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
5137 name actually used in the dependency lists.
5138
5139 2004-06-29 Randolph Chung <tausq@debian.org>
5140
5141 * NEWS (New native configurations): Mention GNU/Linux/hppa.
5142
5143 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
5144
5145 * win32-nat.c (child_pid_to_exec_file): New function.
5146 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
5147 functionality.
5148
5149 2004-06-28 Andrew Cagney <cagney@gnu.org>
5150
5151 * defs.h (xstrvprintf): Declare.
5152 * utils.c (xstrvprintf): New function.
5153 (internal_vproblem, xstrprintf, xasprintf)
5154 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
5155 * serial.c (serial_printf): Ditto.
5156 * complaints.c (vcomplaint): Ditto.
5157
5158 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
5159
5160 * infcmd.c (attach_command): Move call to target_terminal_inferior
5161 behind loading symbol table.
5162
5163 2004-06-28 Andrew Cagney <cagney@gnu.org>
5164
5165 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
5166 change - add back extern deprecated_ui_loop_hook declaration.
5167
5168 2004-06-28 Andrew Cagney <cagney@gnu.org>
5169
5170 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
5171 xstrprintf.
5172 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
5173 (c_value_of_variable): Ditto.
5174 * utils.c (internal_vproblem): Ditto.
5175 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
5176 * remote.c (add_packet_config_cmd): Ditto.
5177 * remote-rdp.c (rdp_set_command_line): Ditto.
5178 * regcache.c (regcache_dump): Ditto.
5179 * frv-tdep.c (new_variant, new_variant): Ditto.
5180 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
5181 (fbsd_find_memory_regions): Ditto.
5182 * breakpoint.c (create_thread_event_breakpoint)
5183 (create_breakpoints): Ditto.
5184 * aix-thread.c (aix_thread_pid_to_str): Ditto.
5185 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
5186
5187 2004-06-28 Joel Brobecker <brobecker@gnat.com>
5188
5189 * ada-lang.c: Re-indent file, with some massaging to help indent
5190 a bit when the result is otherwise really too ugly.
5191
5192 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
5193
5194 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
5195 code_addr_p and special_addr_p to 'unsigned int'.
5196
5197 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5198
5199 * i386v4-nat.c: Update copyright year and tweak comment.
5200 (regmap): Remove trailing comma.
5201 (supply_gregset): Rename local variable i to regnum. Call
5202 regcache_raw_supply instead of supply_register.
5203 (fill_gregset): Rename argument regno to regnum. Call
5204 regcache_raw_collect instead of regcache_collect.
5205
5206 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
5207
5208 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
5209 and special_addr_p.
5210 (frame_id_build, frame_id_build_special): Update comments.
5211 (frame_id_build_wild): New prototype.
5212 * frame.c (frame_id_build, frame_id_build_special): Fill in new
5213 struct frame_id fields.
5214 (frame_id_build_wild): New function.
5215 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
5216
5217 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5218
5219 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
5220 hppabsd-tdep.c.
5221
5222 2004-06-27 Joel Brobecker <brobecker@gnat.com>
5223
5224 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
5225
5226 2004-06-27 Joel Brobecker <brobecker@gnat.com>
5227
5228 * ada-lang.c: Re-indent file.
5229
5230 2004-06-27 Joel Brobecker <brobecker@gnat.com>
5231
5232 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
5233 (no_symtab_msg): Likewise.
5234
5235 2004-06-27 Andreas Schwab <schwab@suse.de>
5236
5237 * source.c: Fix whitespace.
5238
5239 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5240
5241 * configure.in: Include <sys/param.h> for td_pcb test.
5242 * configure: Regenerated.
5243
5244 * i386nbsd-nat.c: New file.
5245 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
5246 i386obsd-nat.c and i386obsd-tdep.c.
5247 (i386nbsd-nat.o): New dependency.
5248 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
5249 bsd-kvm.o.
5250 (LOADLIBES): New variable.
5251 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
5252 bsd-kvm.o.
5253 (LOADLIBES): New variable.
5254
5255 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
5256 (LOADLIBES): New variable.
5257
5258 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
5259 fetching from BSD_KVM_PADDR. Correctly lookup address for
5260 "_thread0".
5261
5262 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
5263 "bsd-kvm.h".
5264 (amd64fbsd_supply_pcb): New funcion.
5265 (_initialize_amd64fbsd_nat): Enable libkvm interface.
5266
5267 2004-06-27 <david@streamline-computing.com>
5268
5269 Partial fix for PR cli/1056.
5270 * valarith.c: Check for zero in division and remainder
5271 evaluation.
5272
5273 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5274
5275 * i387-tdep.c: Remove excessive whitespace.
5276
5277 2004-06-26 Andrew Cagney <cagney@gnu.org>
5278
5279 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
5280 * gdb-events.h, gdb-events.c: Re-generate.
5281 * tui/tui-hooks.c (tui_install_hooks): Update.
5282 (tui_remove_hooks): Update.
5283 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
5284
5285 2004-06-26 Mark Kettenis <kettenis@gnu.org>
5286
5287 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
5288 (gregset_t, fpregset_t): Remove typedefs.
5289 (REG_OFFSET): Rename argument.
5290 (amd64bsd_r_reg_offset): Rename from reg_offset.
5291 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
5292 Remove functions.
5293 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
5294 of reg_offset.
5295 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
5296
5297 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
5298
5299 * vax-tdep.c: Tweak comment.
5300
5301 Add OpenBSD/hppa support.
5302 * NEWS (New native configurations): Mention OpenBSD/hppa.
5303 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
5304 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
5305 files.
5306 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
5307 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
5308 * configure.host: Add hppa*-*-openbsd*.
5309 * configure.tgt: Add hppa*-*-openbsd*.
5310
5311 2004-06-25 Andrew Cagney <cagney@gnu.org>
5312
5313 * defs.h (deprecated_ui_loop_hook): Deprecated.
5314 * wince.c (child_wait): Update.
5315 * win32-nat.c (child_wait): Update.
5316 * v850ice.c (v850ice_wait): Update.
5317 * top.c (deprecated_ui_loop_hook): Update.
5318 * serial.h: Update.
5319 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
5320 (do_unix_readchar): Update.
5321 * ser-tcp.c (net_open): Update.
5322 * remote-sim.c (gdb_os_poll_quit): Update.
5323 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
5324
5325 2004-06-24 Andrew Cagney <cagney@gnu.org>
5326
5327 * defs.h (deprecated_pre_add_symbol_hook)
5328 (deprecated_post_add_symbol_hook): Deprecated.
5329 * symfile.c (symbol_file_add_with_addrs_or_offsets)
5330 (symbol_file_add_with_addrs_or_offsets): Update references.
5331
5332 2004-06-24 Andrew Cagney <cagney@gnu.org>
5333
5334 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
5335 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
5336 * wince.c (ui_loop_hook): Delete extern declaration.
5337 * win32-nat.c (ui_loop_hook): Delete extern declaration..
5338 * v850ice.c (ui_loop_hook): Delete extern declaration..
5339 * ser-unix.c (ui_loop_hook): Delete extern declaration..
5340 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
5341 * remote-sim.c (ui_loop_hook): Delete extern declaration..
5342 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
5343 ui_loop_hook declaration.
5344
5345 2004-06-24 Andrew Cagney <cagney@gnu.org>
5346
5347 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
5348 entry_func_highpc fields.
5349 * objfiles.c (init_entry_point_info): Do not clear
5350 entry_func_lowpc and entry_func_highpc.
5351 (objfile_relocate): Do not relocate entry_func_lowpc and
5352 entry_func_highpc.
5353 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
5354 entry_func_highpc.
5355 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
5356 entry_func_highpc.
5357 * blockframe.c (legacy_frame_chain_valid): Replace tests against
5358 entry_func_lowpc and entry_func_highpc with call to
5359 inside_entry_func.
5360
5361 2004-06-24 Mark Kettenis <kettenis@gnu.org>
5362
5363 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
5364 quad-precision floating point arguments in registers.
5365
5366 2004-06-24 Mark Kettenis <kettenis@gnu.org>
5367
5368 From Michael Mueller <m.mueller99@kay-mueller.de>:
5369 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
5370 account.
5371
5372 2004-06-22 Jeff Johnston <jjohnstn@redhat.com>
5373
5374 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
5375 to -1.
5376 * breakpoint.c (bpstat_stop_status): Move check for ignoring
5377 untriggered watchpoints to a separate if clause. Update function
5378 comment regarding STOPPED_BY_WATCHPOINT argument.
5379
5380 2004-06-22 Jim Blandy <jimb@redhat.com>
5381
5382 * gdbarch.sh: Doc fix.
5383
5384 2004-06-21 Martin Hunt <hunt@redhat.com>
5385 Kevin Buettner <kevinb@redhat.com>
5386
5387 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
5388 * mips-tdep.h (MIPS_SP_REGNUM): Define.
5389 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
5390 to set_gdbarch_sp_regnum(). Use cooked register number.
5391 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
5392
5393 2004-06-21 Andrew Cagney <cagney@gnu.org>
5394
5395 * gdbarch.sh: When the macro field is empty, do not generate a
5396 macro definition. When the macro field is "=", generate the macro
5397 name from the upper-case function name.
5398 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
5399 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
5400 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
5401 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
5402 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
5403 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
5404 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
5405 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
5406 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
5407 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
5408 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
5409 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
5410 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
5411 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
5412 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
5413 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
5414 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
5415 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
5416 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
5417 (DEPRECATED_USE_STRUCT_CONVENTION)
5418 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5419 (DEPRECATED_FRAME_INIT_SAVED_REGS)
5420 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
5421 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
5422 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
5423 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
5424 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
5425 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
5426 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
5427 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
5428 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
5429 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
5430 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
5431 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
5432 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
5433 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
5434 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
5435 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
5436
5437 2004-06-21 Andrew Cagney <cagney@gnu.org>
5438
5439 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
5440 macro name, and the function rather than macro value. Only wrap
5441 macro print statements in #ifdef. Move format logic to where it
5442 is needed.
5443 * gdbarch.c: Re-generate.
5444
5445 * gdbarch.sh (read): Delete "print_p" and "description", add
5446 "garbage_at_eol". Check for non-empty garbage at end-of-line.
5447 Delete references to print_p.
5448 (TARGET_ARCHITECTURE): Delete print predicate.
5449 * gdbarch.c: Re-generate.
5450
5451 * gdbarch.sh: Check that multi-arch methods do not provide a
5452 macro.
5453 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
5454 (print_registers_info, print_float_info, print_vector_info)
5455 (adjust_breakpoint_address, remote_translate_xfer_address)
5456 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
5457 (address_class_type_flags_to_name, unwind_sp): Remove the macro
5458 name from the multi-arch definition.
5459
5460 2004-06-20 Andrew Cagney <cagney@gnu.org>
5461
5462 * gdbarch.sh: Sort by the function, instead of macro name.
5463 * gdbarch.c: Re-generate.
5464
5465 2004-06-20 Andrew Cagney <cagney@gnu.org>
5466
5467 * gdbarch.sh: Use the function, instead of macro name in
5468 errors and the log file.
5469 (return_value): Remove stray ":" in spec.
5470
5471 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
5472 * gdbarch.h, gdbarch.c: Re-generate.
5473 * Makefile.in (arch-utils.o): Update dependencies.
5474 * values.c (using_struct_return): Move code calling
5475 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
5476 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
5477 to legacy_return_value, simplify.
5478 * infcmd.c (print_return_value): Move code calling
5479 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
5480 to legacy_return_value, simplify.
5481 * infcall.c (call_function_by_hand): Move code calling
5482 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
5483 * arch-utils.c: Update copyright. Include "gdbcore.h".
5484 (legacy_return_value): New function.
5485 * arch-utils.h: Update copyright.
5486 (legacy_return_value): Declare.
5487
5488 2004-06-20 Andrew Cagney <cagney@gnu.org>
5489
5490 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
5491 * gdbarch.h, gdbarch.c: Re-generate.
5492 * values.c (using_struct_return): Update call.
5493 * mcore-tdep.c: Update comment.
5494 * infcall.c (call_function_by_hand): Update comment.
5495 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5496 * arch-utils.h (always_use_struct_convention): Update.
5497 * v850-tdep.c (v850_gdbarch_init): Update.
5498 * sh64-tdep.c (sh64_gdbarch_init): Update.
5499 * sh-tdep.c (sh_gdbarch_init): Update.
5500 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5501 * mips-tdep.c (mips_gdbarch_init): Update.
5502 * mcore-tdep.c (mcore_gdbarch_init): Update.
5503 * m32r-tdep.c (m32r_gdbarch_init): Update.
5504 * ia64-tdep.c (ia64_gdbarch_init): Update.
5505 * h8300-tdep.c (h8300_gdbarch_init): Update.
5506 * frv-tdep.c (frv_gdbarch_init): Update.
5507 * cris-tdep.c (cris_gdbarch_init): Update.
5508 * arm-tdep.c (arm_gdbarch_init): Update.
5509 * alpha-tdep.c (alpha_gdbarch_init): Update.
5510
5511 2004-06-18 Michael Chastain <mec.gnu@mindspring.com>
5512
5513 * PROBLEMS: Add more specific information, and a work-around,
5514 for PR gdb/1458.
5515
5516 2004-06-18 Andrew Cagney <cagney@gnu.org>
5517
5518 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
5519 * gdbarch.h, gdbarch.c: Re-generate.
5520 * ada-lang.c (ada_finish_decode_line_1): Update.
5521 * infrun.c (handle_inferior_event): Update.
5522 * infcall.c (find_function_addr): Update.
5523 * linespec.c (minsym_found): Update.
5524 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
5525 Update.
5526 * blockframe.c (legacy_frameless_look_for_prologue): Update.
5527 * cli/cli-cmds.c (disassemble_command): Update.
5528 * vax-tdep.c (vax_gdbarch_init): Update.
5529
5530 2004-06-18 Mark Kettenis <kettenis@gnu.org>
5531
5532 * i386-tdep.c (i386_collect_fpregset): Fix comment.
5533
5534 2004-06-17 Andrew Cagney <cagney@gnu.org>
5535
5536 GDB 6.1.1 released from the GDB 6.1 branch.
5537 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
5538 * PROBLEMS: Ditto.
5539
5540 2004-06-16 Daniel Jacobowitz <dan@debian.org>
5541
5542 PR gdb/1658
5543 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
5544 operation as a uleb128. Found by Michael Coulter.
5545
5546 2004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
5547
5548 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
5549 make it non-static.
5550 * ada-lang.h (task_control_block): declaration moved from ada-task.c
5551 to ada-lang.h; this is needed to be able to implement the kill command
5552 in multi-task mode.
5553 (task_ptid): Ditto.
5554 (task_entry): Ditto.
5555 (task_list): Ditto.
5556 (ada_build_task_list): Ditto.
5557
5558 * ada-lang.c: Conditionalize routines and data structures related
5559 to breakpoints, exceptions, completion, and symbol caching on
5560 GNAT_GDB, since these are not yet used in the submitted public sources.
5561 (ada_main_name): Editorial: Move definition out of exception-related
5562 code.
5563
5564 2004-06-15 Andrew Cagney <cagney@gnu.org>
5565
5566 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
5567 deprecated_pc_in_call_dummy.
5568
5569 2004-06-15 Alan Modra <amodra@bigpond.net.au>
5570
5571 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
5572 bfd_get_section_size_before_reloc or _raw_size.
5573 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
5574 * dwarf2read.c (dwarf2_locate_sections): Likewise.
5575 (dwarf2_read_section): Likewise.
5576 * elfread.c (elf_locate_sections): Likewise.
5577 * gcore.c (derive_heap_segment): Likewise.
5578 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
5579 * remote-e7000.c (e7000_load): Likewise.
5580 * remote-m32r-sdi.c (m32r_load): Likewise.
5581 * remote-mips.c (mips_load_srec): Likewise.
5582 (pmon_load_fast): Likewise.
5583 * remote.c (compare_sections_command): Likewise.
5584 * symfile.c (add_section_size_callback): Likewise.
5585 (load_section_callback): Likewise.
5586 (pc_in_unmapped_range): Likewise.
5587 (pc_in_mapped_range): Likewise.
5588 (sections_overlap): Likewise.
5589 (list_overlays_command): Likewise.
5590 (simple_overlay_update_1): Likewise.
5591 (simple_overlay_update): Likewise.
5592 * tracepoint.c (remote_set_transparent_ranges): Likewise.
5593 * win32-nat.c (core_section_load_dll_symbols): Likewise.
5594
5595 2004-06-14 Randolph Chung <tausq@debian.org>
5596
5597 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
5598 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
5599 static.
5600 (hppa_hpux_inferior_created): New function.
5601 (hppa_hpux_init_abi): Register observer.
5602 * symfile.c (hp_cxx_exception_support_initialized)
5603 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
5604 (symbol_file_add_main_1, symbol_file_clear): Likewise.
5605
5606 2004-06-14 Randolph Chung <tausq@debian.org>
5607
5608 * MAINTAINERS (Write After Approval): Alphabetize my entry
5609 correctly.
5610
5611 2004-06-14 Andrew Cagney <cagney@gnu.org>
5612
5613 * MAINTAINERS (testsuite): List Michael Chastain as the lead
5614 testsuite maintainer.
5615
5616 2004-06-13 Andrew Cagney <cagney@gnu.org>
5617
5618 * infcmd.c (print_return_value): Fix logic, allow
5619 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
5620
5621 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
5622 defining any macros.
5623 * gdbarch.h: Re-generate.
5624
5625 * gdbarch.sh: Delete "level" attribute. Only check for a macro
5626 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
5627 * gdbarch.h: Re-generate.
5628
5629 * values.c (generic_use_struct_convention): Don't check gcc_p.
5630
5631 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
5632 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
5633 * gdbarch.h, gdbarch.c: Regenerate.
5634 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
5635 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
5636 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5637 deprecated_max_register_raw_size and
5638 deprecated_max_register_virtual_size.
5639 * v850-tdep.c (v850_gdbarch_init): Ditto.
5640 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
5641 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5642 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5643 * cris-tdep.c (cris_gdbarch_init): Ditto.
5644
5645 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
5646 * gdbarch.h, gdbarch.c: Re-generate.
5647 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
5648 (m68hc11_use_struct_convention): Delete function.
5649 (m68hc11_extract_struct_value_address): Delete function.
5650 (m68hc11_return_value): New function.
5651 (m68hc11_gdbarch_init): Instead of store_return_value,
5652 extract_return_value, return_value_on_stack,
5653 deprecated_extract_struct_value_address and use_struct_convention,
5654 set return_value.
5655 * values.c (using_struct_return): Do not call
5656 RETURN_VALUE_ON_STACK.
5657 * arch-utils.h (generic_return_value_on_stack_not): Delete
5658 declaration.
5659 * arch-utils.c (generic_return_value_on_stack_not): Delete
5660 function.
5661
5662 2004-06-12 Andrew Cagney <cagney@gnu.org>
5663
5664 * values.c (register_value_being_returned): Delete function.
5665 * infcmd.c (legacy_return_value): Delete function.
5666 * infcall.c (call_function_by_hand): Inline
5667 "register_value_being_returned", simplify.
5668 * values.c (using_struct_return): Update comment, refer to
5669 print_return_value instead of register_value_being_returned.
5670 * infcmd.c (print_return_value): Inline calls to
5671 register_value_being_returned and legacy_return_value. Simplify.
5672
5673 2004-06-11 Randolph Chung <tausq@debian.org>
5674
5675 * somread.c (som_symtab_read): Exclude gcc local symbols.
5676
5677 2004-06-11 Randolph Chung <tausq@debian.org>
5678
5679 * infrun.c (handle_inferior_event): Handle the case when a
5680 trampoline ends up in the runtime resolver, and if the trampoline
5681 has no name. Rearrange the code so that all the trampoline
5682 processing happens before other step-out-of-range handling.
5683
5684 2004-06-11 Martin Hunt <hunt@redhat.com>
5685
5686 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
5687 has no fpu.
5688
5689 2004-06-10 Andrew Cagney <cagney@gnu.org>
5690
5691 * blockframe.c (legacy_inside_entry_func): Delete.
5692 (legacy_frame_chain_valid): Inline call to
5693 legacy_inside_entry_func, simplify.
5694
5695 2004-06-10 Bob Rossi <bob@brasko.net>
5696
5697 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
5698 * dwarf2read.c (partial_die_info): Add dirname field.
5699 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
5700 (read_partial_die): Save away DW_AT_comp_dir.
5701 * defs.h (symtab_to_filename): Removed.
5702 * source.c (find_and_open_source): Added.
5703 (open_source_file): Just calls find_and_open_source.
5704 (symtab_to_filename): Removed.
5705 (symtab_to_fullname, psymtab_to_fullname): Added.
5706 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
5707 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
5708 symtab_to_filename.
5709 * symtab.h (partial_symtab): Add dirname field.
5710 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
5711 (mi_cmd_file_list_exec_source_file): Call new function
5712 symtab_to_fullname to find fullname.
5713 (mi_cmd_file_list_exec_source_files): Added.
5714 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
5715 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
5716
5717 2004-06-10 Andrew Cagney <cagney@gnu.org>
5718
5719 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
5720 to generic_use_struct_convention, the default value.
5721
5722 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
5723 of abort.
5724
5725 * ns32k-tdep.c (ns32k_push_arguments): New function.
5726 (ns32k_gdbarch_init): Set deprecated_push_arguments.
5727 * infcall.c (call_function_by_hand): Call error instead of
5728 legacy_push_arguments.
5729 * value.h (legacy_push_arguments): Delete declaration.
5730 * valops.c (legacy_push_arguments): Delete function.
5731 (value_push): Delete function.
5732
5733 2004-06-10 Brian Ford <ford@vss.fsi.com>
5734
5735 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
5736 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
5737 info.
5738 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
5739
5740 2004-06-10 Andrew Cagney <cagney@gnu.org>
5741
5742 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
5743 * gdbarch.h, gdbarch.c: Re-generate.
5744 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
5745 parameters.
5746 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
5747 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
5748 deprecated_pc_in_call_dummy instead of
5749 DEPRECATED_PC_IN_CALL_DUMMY.
5750 (arm_skip_prologue): Ditto.
5751 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
5752 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
5753 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
5754 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
5755 Ditto.
5756 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
5757 (sh64_init_extra_frame_info, sh64_get_saved_register)
5758 (sh64_pop_frame): Ditto.
5759 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
5760 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
5761 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
5762 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
5763 (h8300_pop_frame): Ditto.
5764 * blockframe.c (legacy_inside_entry_func)
5765 (legacy_frame_chain_valid): Ditto.
5766 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
5767 to deprecated_pc_in_call_dummy.
5768
5769 2004-06-09 Andrew Cagney <cagney@gnu.org>
5770
5771 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
5772 provide a default value.
5773 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
5774 * gdbarch.h, gdbarch.c: Re-generate.
5775 * arch-utils.c (generic_convert_register_p): Rename
5776 legacy_convert_register_p
5777 (legacy_register_to_value, legacy_value_to_register): Delete
5778 functions.
5779 * arch-utils.h (generic_convert_register_p): Rename
5780 legacy_convert_register_p.
5781 (legacy_register_to_value, legacy_value_to_register): Delete
5782 declarations.
5783
5784 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
5785 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
5786 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
5787 * gdbarch.h, gdbarch.c: Re-generate.
5788 * infcmd.c (default_print_registers_info): Simplify.
5789 * findvar.c (value_of_register): Simplify.
5790 * mi/mi-main.c (get_register): Simplify.
5791 * arch-utils.c (legacy_convert_register_p): Always return 0.
5792 (legacy_register_to_value, legacy_value_to_register): Always call
5793 internal_error.
5794
5795 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
5796 #ifdef CLEAR_INSN_CACHE code.
5797 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
5798 Delete #ifdef CLEAR_DEFERRED_STORES code.
5799
5800 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
5801
5802 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
5803 copyright.
5804 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
5805
5806 * config/mips/mipsv4.mh: Delete file.
5807
5808 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
5809 unreferenced macro.
5810 (hpread_adjust_stack_address): Delete declaration.
5811
5812 2004-06-08 Andrew Cagney <cagney@gnu.org>
5813
5814 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
5815 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
5816 PTRACE_ATTACH / PTRACE_DETACH available call error.
5817 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
5818 * infttrace.c (update_thread_state_after_attach, attach, detach):
5819 Remove #ifdef wrappers.
5820 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
5821 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
5822 * config/nm-bsd.h (ATTACH_DETACH): Delete.
5823 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
5824 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
5825 * config/nm-linux.h (ATTACH_DETACH): Delete.
5826 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
5827 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
5828 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
5829 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
5830 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
5831
5832 2004-06-08 Corinna Vinschen <vinschen@redhat.com>
5833
5834 * configure.in: Set $configdir to the right OS specific value.
5835 Use value when setting $tcldir and $tkdir.
5836 * configure: Regenerate.
5837
5838 2004-06-06 Paul Brook <paul@codesourcery.com>
5839
5840 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
5841 records.
5842
5843 2004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
5844
5845 * ada-lang.c (lookup_symbol_in_language): New function to allow
5846 re-use of another language's symbol lookup code. (Placed here
5847 temporarily while Ada support is being integrated into the public
5848 tree).
5849 (restore_language): New auxiliary function for
5850 lookup_symbol_in_language.
5851 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
5852 temporarily while Ada support is being integrated into the public
5853 tree).
5854
5855 2004-06-08 Alexandre Oliva <aoliva@redhat.com>
5856
5857 * Makefile.in (check//%): New.
5858
5859 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
5860 (mn10300_store_return_value): Rewrite.
5861 (mn10300_type_align): New.
5862 (mn10300_use_struct_convention): Rewrite.
5863 (mn10300_return_value): New, using all of the above.
5864 (mn10300_pop_frame_regular): Add saved_regs_size.
5865 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
5866
5867 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
5868 regs if PC is on movm.
5869
5870 2004-06-07 Jim Blandy <jimb@redhat.com>
5871
5872 Add native Linux support for the PowerPC E500.
5873 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
5874 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
5875 all architectures except the E500.
5876 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
5877 #definitions.
5878 (struct gdb_evrregset_t): New type.
5879 (have_ptrace_getsetevrregs): New variable.
5880 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
5881 fetch_spe_registers): New functions.
5882 (fetch_register): Call fetch_spe_register as appropriate.
5883 Assert that we're only passed raw register numbers.
5884 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
5885 Don't fetch gprs if they're pseudoregisters.
5886 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
5887 store_spe_registers): New functions.
5888 (store_register): Call store_spe_register as appropriate.
5889 Assert that we're only passed raw register numbers.
5890 (store_ppc_registers): Call store_spe_registers as appropriate.
5891 Don't store gprs if they're pseudoregisters.
5892
5893 2004-06-07 Jeff Johnston <jjohnstn@redhat.com>
5894
5895 * thread-db.c (thread_get_info_callback): Fill in the thread_info
5896 struct if one exists, even if we are dealing with a zombie thread.
5897
5898 2004-06-07 Andrew Cagney <cagney@gnu.org>
5899
5900 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
5901 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
5902 Rename PC_REQUIRES_RUN_BEFORE_USE.
5903 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
5904 #ifdef.
5905
5906 2004-06-07 Randolph Chung <tausq@debian.org>
5907
5908 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
5909 unwinding after sp has been saved to the stack but before the end
5910 of the prologue, and after the fp has been modified but before it has
5911 been saved to the stack.
5912 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
5913 Remove superfluous definitions.
5914 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
5915
5916 2004-06-07 Guy Martin <gmsoft@gentoo.org>
5917
5918 Committed by Randolph Chung.
5919 * hppa-linux-nat.c: Include the correct version of the header file
5920 depending on the kernel version.
5921
5922 2004-06-06 Randolph Chung <tausq@debian.org>
5923
5924 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
5925 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
5926
5927 2004-06-06 Randolph Chung <tausq@debian.org>
5928
5929 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
5930 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
5931 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
5932 * hppa-tdep.c (hppa_symbol_address): New function definition.
5933 * hppa-tdep.h (hppa_symbol_address): New function declaration.
5934
5935 2004-06-06 Randolph Chung <tausq@debian.org>
5936
5937 * hppa-tdep.h (struct value): Forward declaration.
5938 (gdbarch_tdep): Define tdep find_global_pointer method.
5939 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
5940 associated with the function we are trying to call, and write it
5941 to the gp register.
5942 (hppa32_convert_from_funct_ptr_addr): New function.
5943 (hppa_find_global_pointer): New function.
5944 (hppa_gdbarch_init): Set default find_global_pointer method; set
5945 convert_from_func_ptr_addr method.
5946 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
5947 (hppa_linux_init_abi): Set find_global_pointer method.
5948 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
5949
5950 2004-06-06 Randolph Chung <tausq@debian.org>
5951
5952 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
5953 to struct value *function.
5954 * gdbarch.c: Regenerate.
5955 * gdbarch.h: Likewise.
5956 * infcall.c (call_function_by_hand): Pass entire function value
5957 to push_dummy_call.
5958
5959 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
5960 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
5961 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
5962 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
5963 * arm-tdep.c (arm_push_dummy_call): Likewise.
5964 * avr-tdep.c (avr_push_dummy_call): Likewise.
5965 * cris-tdep.c (cris_push_dummy_call): Likewise.
5966 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
5967 * frv-tdep.c (frv_push_dummy_call): Likewise.
5968 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
5969 * hppa-tdep.c (hppa32_push_dummy_call)
5970 (hppa64_push_dummy_call): Likewise.
5971 * i386-tdep.c (i386_push_dummy_call): Likewise.
5972 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
5973 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
5974 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
5975 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
5976 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
5977 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
5978 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
5979 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
5980 (ppc64_sysv_abi_push_dummy_call): Likewise.
5981 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
5982 (ppc64_sysv_abi_push_dummy_call): Likewise.
5983 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
5984 * s390-tdep.c (s390_push_dummy_call): Likewise.
5985 * sh-tdep.c (sh_push_dummy_call_fpu)
5986 (sh_push_dummy_call_nofpu): Likewise.
5987 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
5988 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
5989 * vax-tdep.c (vax_push_dummy_call): Likewise.
5990
5991 2004-06-04 Jim Blandy <jimb@redhat.com>
5992
5993 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
5994 gdbarch argument to register_size.
5995
5996 * rs6000-tdep.c (rs6000_store_return_value): Use
5997 regcache_cooked_write_part instead of
5998 deprecated_write_register_bytes.
5999 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
6000 not gdbarch_deprecated_store_return_value.
6001
6002 * ppc-linux-nat.c (store_register, fetch_register): Remove
6003 incorrect assertions. Simplify and generalize handling of
6004 transfers whose sizes are not multiples of, or less than, sizeof
6005 (PTRACE_XFER_TYPE).
6006
6007 2004-06-04 Jeff Johnston <jjohnstn@redhat.com>
6008
6009 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
6010 as a new thread event.
6011 * thread-db.c (thread_get_info_callback): If the thread is a
6012 zombie, return TD_THR_ZOMBIE.
6013 (thread_from_lwp): If thread_get_info_callback returns
6014 TD_THR_ZOMBIE, check if the thread is still on the thread list
6015 and return a -1 ptid if not found.
6016 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
6017 change the status to TARGET_WAITKIND_SPURIOUS.
6018
6019 2004-06-03 Corinna Vinschen <vinschen@redhat.com>
6020
6021 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
6022 double values in little endian mode.
6023
6024 2004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
6025
6026 Committed by Andrew Cagney.
6027 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
6028 after last enum constant to avoid error from IBM C
6029 compiler.
6030
6031 2004-06-02 Jim Blandy <jimb@redhat.com>
6032
6033 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
6034 to 'message', and make it local to the lone block that uses it.
6035
6036 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
6037
6038 2004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
6039
6040 * ada-exp.y: Update copyright notice.
6041 Include block.h.
6042
6043 Replace REGNAME, LAST, INTERNAL_VARIABLE with
6044 SPECIAL_VARIABLE and unify the treatment of these cases.
6045
6046 (write_attribute_call0): Remove.
6047 (write_attribute_call1): Remove.
6048 (write_attribute_calln): Remove.
6049 (save_qualifier): Add missing semicolon.
6050
6051 (simple_exp,exp): Decomment (i.e., reactivate) code that was
6052 temporarily disabled to allow compilation with FSF head version.
6053
6054 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
6055 use individual operators (OP_*) for all attributes.
6056 (exp syntax): Use write_int.
6057 Handle STRING literals with OP_STRING.
6058 (variable syntax): Add limit parameter to calls to
6059 write_object_renaming.
6060
6061 (temp_parse_space): New definition to hold entities that need
6062 only live until the next call to ada_parse.
6063 (string_to_operator): Rename fields of ada_opname_table entries.
6064
6065 (write_var_from_sym): Record block.
6066 (write_var_from_name): Minor reformatting.
6067 Make sure saved name is properly encoded in the case of multiple
6068 matches, and set its language to Ada.
6069 Update comment.
6070 Modify to indicate unresolved name as symbol in the UNRESOLVED
6071 namespace, allocated in temp_parse_space.
6072 (write_int): New function.
6073
6074 (write_object_renaming): Add max_depth parameter to limit
6075 chains of object renamings.
6076 Handle case where root of renaming expression is itself a renaming.
6077 Use temp_parse_space for temporary name buffer.
6078 Handle renamings to dereferenced pointers (___XEXA suffices).
6079
6080 (ada_parse, yyerror, string_to_operator,
6081 write_var_from_sym, write_var_from_name, write_attribute_call0,
6082 write_attribute_call1, write_attribute_calln,
6083 write_object_renaming): Protoize.
6084
6085 (_initialize_ada_exp): New function.
6086
6087 * ada-lang.c: Update copyright notice.
6088 General terminology change to conform to GNAT compiler usage:
6089 mangle => encode, demangle => decode
6090 Include gdb_obstack.h.
6091 Include gdb_regex.h
6092 Include frame.h
6093 Include hashtab.h
6094 Include completer.h
6095 Include gdb_stat.h
6096 Include block.h
6097 Include infcall.h
6098
6099 (ADA_RETAIN_DOTS): Make sure this is defined.
6100 (TRUNCATION_TOWARDS_ZERO): Define.
6101 (struct string_vector): Define.
6102 (unresolved_names): Remove definition.
6103 (xnew_string_vector): New function.
6104 (string_vector_append): New function.
6105 (extract_string): Make static.
6106 (ada_unqualified_name): New function.
6107 (add_angle_brackets): New function.
6108 (function_name_from_pc): New function.
6109 (place_on_stack): Rename to ensure_lval.
6110
6111 (ensure_lval): Renamed from place_on_stack.
6112 Make identity on lvals.
6113 Update comment.
6114 (is_nonfunction): New interface.
6115 Only symbols in LOC_CONST class can be enumerals.
6116 (fill_in_ada_prototype): Remove; now independent of language.
6117 (add_defn_to_vec): Add obstack and symtab arguments.
6118 Use obstack to hold collected definitions.
6119 (num_defns_collected): New function.
6120 (defns_collected): New function.
6121 (ada_resolve_subexp): Rename to resolve_subexp.
6122 (resolve_subexp): Renamed from ada_resolve_subexp.
6123 (ada_op_name): Return non-const result.
6124 (ada_decoded_op_name): Renamed from ada_op_name, now used for
6125 other purposes.
6126
6127 (to_fixed_array_type): Add declaration.
6128 (coerce_unspec_val_to_type): Remove offset parameter.
6129 (find_sal_from_funcs_and_line): New interface.
6130 (find_line_in_linetable): Ditto.
6131
6132 (all_sals_for_line): Rename to ada_sals_for_line and make
6133 global.
6134 Add new parameter. When set, do not ask the user to choose the
6135 instance, but use the first one found instead.
6136 Use given line number in returned sals.
6137 Fix comment.
6138 Skip the prologue if funfirstline is set.
6139 Correct for memory leak when 0 lines found.
6140
6141 (value_pos_atr): Use pos_atr.
6142 (pos_atr): New function.
6143 (standard_lookup): Add block parameter.
6144
6145 (makeTimeStart): Remove declaration and uses.
6146 (makeTimeStop): Remove declaration and uses.
6147
6148 (ada_completer_word_break_characters): Allow for VMS.
6149 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
6150 (raise_sym_name): New constant.
6151 (raise_unhandled_sym_name): New constant.
6152 (raise_assert_sym_name): New constant.
6153 (process_raise_exception_name): New constant.
6154 (longest_exception_template): New constant.
6155 (warning_limit): New variable to limit warnings during expression
6156 evaluation.
6157 (warnings_issued): New variable to keep track of warnings issued.
6158 (known_runtime_file_name_patterns): New constant.
6159 (known_auxiliary_function_name_patterns): New constant.
6160 (symbol_list_obstack): New variable.
6161
6162 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
6163 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
6164 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
6165 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
6166 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
6167 ada_variant_discrim_name, field_alignment, dynamic_template_type,
6168 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
6169 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
6170 and strcmp.
6171
6172 (ada_get_field_index): New function.
6173 (lim_warning): New function.
6174 (ada_translate_error_message): New function.
6175 (MAX_OF_SIZE): New function.
6176 (MIN_OF_SIZE): New function.
6177 (UMAX_OF_SIZE): New function.
6178 (UMIN_OF_SIZE): New function.
6179 (discrete_type_high_bound): New function.
6180 (discrete_type_low_bound): New function.
6181 (base_type): New function.
6182 (do_command): Remove.
6183
6184 (ada_update_initial_language): Use language_ada, not language_unknown.
6185 (ada_encode): Renamed from ada_mangle.
6186 Obey ADA_RETAIN_DOTS.
6187 (ada_decode): Renamed from ada_demangle.
6188 Update coding conventions.
6189 (decoded_names_store): New hash table.
6190 (ada_decode_symbol): New function.
6191 (ada_la_decode): New function.
6192
6193 (modify_general_field): Correct computations of offset and bit
6194 position.
6195 (desc_base_type): Handle ref types, too.
6196 (ada_is_direct_array_type): New function.
6197
6198 (ada_is_simple_array): Rename to ada_is_simple_array_type.
6199 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
6200 (ada_is_bogus_array_descriptor,ada_type_of_array,
6201 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
6202 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
6203 ada_is_array_descriptor_type.
6204
6205 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
6206 (ada_is_packed_array_type): Handle pointers or
6207 references to packed arrays as well.
6208 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
6209 (decode_packed_array_type): Search for the packed array type
6210 symbol in the currently selected block and associated
6211 superblocks too.
6212 Use lookup_symbol again.
6213
6214 (decode_packed_array): Handle pointers and references.
6215 Update call to coerce_unspec_val_to_type.
6216 (decode_packed_array_type,value_subscript_packed): Limit warnings.
6217 (ada_value_primitive_packed_val): Improve comment.
6218
6219 (ada_index_type): Substitute int type for "undefined".
6220 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
6221 ada_array_langth, ada_is_string_type): Use renamed
6222 ada_is_simple_array_type.
6223 (empty_array): New function.
6224
6225 (ada_resolve): Rename to resolve.
6226 (resolve): Make static.
6227 Call renamed resolve_subexp.
6228 Update comment.
6229 (ada_resolve_subexp): Rename to resolve_subexp.
6230 (resolve_subexp): Update comment.
6231 Decomment disabled code.
6232 Add LOC_COMPUTED* cases.
6233 Modify to use temporary struct symbols (marked as being in
6234 UNDEF_NAMESPACE) to indicate unresolved names, instead of
6235 OP_UNRESOLVED_VALUE.
6236 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
6237 Add OP_STRING case.
6238 Remove OP_ARRAY.
6239 Use SYMBOL_PRINT_NAME instead of ada_demangle.
6240 Use new ada_lookup_symbol_list interface.
6241 Use new ada_resolve_function interface.
6242 Remove OP_TYPE case.
6243
6244 (ada_args_match): Idiot proof against null actuals.
6245 Use intermediate variables to clarify.
6246 (ada_resolve_function): Update comment and interface.
6247 (mangled_ordered_before): Rename to encoded_ordered_before and
6248 update comment.
6249 (sort_choices): Update comment and interface.
6250 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
6251 (user_select_syms): New interface.
6252 Use new sort_choices interface.
6253 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
6254 (possible_user_operator_p): Idiot-proof against null values.
6255 (ada_simple_renamed_entity): Don't make cleanup; rely on
6256 caller to free result string.
6257 Remove const from return type.
6258 (make_array_descriptor): Rename uses of place_on_stack to
6259 ensure_lval.
6260 Make sure that arrays are on stack.
6261
6262 (HASH_SIZE): Define.
6263 (struct cache_entry): Define.
6264 (cache_space): Define.
6265 (cache): Define.
6266 (clear_ada_sym_cache): New function.
6267 (find_entry): New function.
6268 (lookup_cached_symbol): New function.
6269 (defn_vector_size): Define.
6270 (cache_symbol): New function.
6271 (defn_symbols): Remove.
6272
6273 (standard_lookup): Use lookup_symbol_in_language to get effect of
6274 C lookup.
6275 Cache results.
6276
6277 (symbol_completion_match): New function.
6278 (symbol_completion_add): New function.
6279 (ada_make_symbol_completion_list): New function.
6280
6281 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
6282 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
6283 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
6284 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
6285
6286 (ada_lookup_simple_minsym): New function.
6287 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
6288
6289 (add_symbols_from_enclosing_procs): New interface.
6290 Conditionalize more helpfully.
6291 Don't bother if program isn't running.
6292 Use new interface to get_frame_block.
6293 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
6294
6295 (remove_extra_symbols): New interface.
6296 (xget_renaming_scope): New function.
6297 (is_package_name): New function.
6298 (renaming_is_visible): New function.
6299 (remove_out_of_scope_renamings): New function.
6300
6301 (ada_lookup_symbol_list): New interface.
6302 Properly reinitialize the symbol list obstack.
6303 Don't call add_symbols_from_enclosing_procs if we start from a
6304 static or global block.
6305 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
6306 add_symbols_from_enclosing_procs.
6307 Add symtab data to cached entries.
6308 Handle symbols prefixed with
6309 "standard__" specially; strip prefix and don't look in local symbols.
6310 Do not include out of scope renaming symbols in list of
6311 symbols returned.
6312 Add const to block parameter.
6313 Move check for non-local, non-global symbols earlier.
6314 Remove timing stuff.
6315 (ada_lookup_symbol): New interface.
6316 Find symtab as well.
6317 (ada_lookup_symbol_nonlocal): New function.
6318
6319 (is_name_suffix): Enhance suffix detection to recognize
6320 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
6321 (is_dot_digits_suffix): New function.
6322 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
6323
6324 (ada_add_block_symbols): New interface. Use obstack to return results
6325 in a vector of struct ada_symbol_infos. Add symtab argument.
6326 Use new interface to add_defn_to_vec.
6327 Remove calls to fill_in_ada_prototype.
6328 Use BLOCK_BUCKETS, BLOCK_BUCKET.
6329
6330 (ada_finish_decode_line_1): Add const qualification to local to fix
6331 warning.
6332 Start looking in static block for functions to avoid attempts
6333 to search frame chain for up-level variables.
6334 Adapt to new ada_sals_for_line interface.
6335 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
6336 Handle quoting of the function name inside the spec string.
6337 Skip prologue when funfirstline is set and update the
6338 function documentation to that effect.
6339
6340 (debug_print_lines, debug_print_block, debug_print_blocks,
6341 debug_print_symtab): Remove.
6342
6343 (ada_main_name): New function.
6344 (ada_exception_breakpoint_type): New function.
6345 (is_known_support_routine): New function.
6346 (ada_find_printable_frame): Renamed from find_printable_frame and made
6347 global.
6348 Remove level parameter.
6349 Use new interface to select_frame.
6350
6351 (begin_command): Remove.
6352 (ada_adjust_exception_stop): New function.
6353 (ada_print_exception_stop): New function.
6354 (exception_name_from_cond): New function.
6355 (ada_report_exception_break): Replace disabled code with
6356 conditionalization on GNAT_GDB.
6357 Get the exception name from the condition string.
6358 Remove and move functionality into new functions
6359 ada_print_exception_breakpoint_task and
6360 ada_print_exception_breakpoint_nontask.
6361 (error_breakpoint_runtime_sym_not_found): New function.
6362 (is_runtime_sym_defined): New function.
6363 (ada_breakpoint_rewrite): Uncomment suppressed code.
6364 Use symbolic error-message and runtime-symbol names.
6365 Surround runtime symbol names in quotes.
6366 Allow non-specific breakpoints on exceptions and assertions before
6367 program starts.
6368
6369 (ada_is_tagged_type): Add parameter.
6370 (ada_is_tag_type): New function.
6371 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
6372 (ada_variant_discrim_type): Ditto.
6373 (value_tag_from_contents_and_address): New function.
6374 (type_from_tag): New function.
6375 (struct tag_args): New structure used to communicate with
6376 ada_tag_name_1.
6377 (ada_tag_name_1): New function.
6378 (ada_tag_name): New function.
6379
6380 (ada_scan_number): Update comment.
6381 (find_struct_field): New function.
6382 (ada_search_struct_field): Make static.
6383 (ada_value_struct_elt): New version that returns references when
6384 given pointers or references to structs.
6385 (ada_lookup_struct_elt_type): Add 'refok' parameter.
6386 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
6387 interface.
6388 (ada_value_ind): Use new ada_to_fixed_value interface.
6389 (ada_coerce_ref): Ditto.
6390 (field_offset): Remove.
6391
6392 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
6393 (ada_find_renaming_symbol): New function.
6394 (ada_prefer_type): Prefer named types over unnamed ones.
6395 (variant_field_index): New function.
6396 (contains_variant_part): Removed: subsumed by variant_field_index.
6397 (ada_template_to_fixed_record_type): New function, mostly from
6398 template_to_fixed_record_type.
6399 (template_to_fixed_record_type):
6400 Do not scan the type fields beyond the last one; prevents a
6401 potential SEGV.
6402 Handle case where variant field is listed BEFORE discriminant it
6403 depends on.
6404 Fix calculation of record length when bit length is
6405 not evenly divisible by char length.
6406 Move code to ada_template_to_fixed_record_type and call it.
6407
6408 (template_to_static_fixed_type): Revise comment.
6409 Modify to work on ordinary record types as well as templates,
6410 so as to handle fields that use ___XVE or ___XVU encodings.
6411 (to_record_with_fixed_variant_part): Fill out comment.
6412 Initialize C++ stuff in right type.
6413 Allow case where DVAL is null.
6414 Handle case where variant field is not last.
6415 Fix typo concerning record length.
6416 (to_fixed_record_type): Decomment disabled code.
6417 (to_fixed_record_type): Use variant_field_index instead of
6418 contains_variant_part.
6419 (to_fixed_variant_branch_type): Ditto.
6420 (to_fixed_array_type): Decomment disabled code.
6421 (ada_to_fixed_type): Convert tagged types to the specific type.
6422 Deactivate the size-check for array types in order to avoid
6423 some false size alarms.
6424 (to_static_fixed_type): Decomment disabled code.
6425 Modify to call template_to_static_fixed_type
6426 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
6427 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
6428 Remove valaddr argument, as it is never really used.
6429 (ada_to_fixed_value): Change interface to act on single struct value*
6430 operand.
6431 (adjust_pc_past_prologue): New function.
6432 (ada_attribute_name): Modify to take enum exp_opcode argument.
6433
6434 (ada_enum_name): Recognize new homonym-distinguishing convention.
6435 Adjust local variable's type to remove compiler warning.
6436 Fix a small problem in the part that unqualifies the enumeration name.
6437 (ada_value_binop): New function.
6438 (ada_value_equal): New function.
6439
6440 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
6441 Don't give error message when not doing normal evaluation
6442 and a tagged type doesn't seem to contain a structure member.
6443 Give error message for packed arrays.
6444 For indexing arrays, handle pointers to packed arrays correctly.
6445 Handle case of 'first and 'last attributes of bare integral type
6446 without encoded subtype info.
6447 Remove some unnecessary casts.
6448 Fix uninitialized value of type in computing 'first, 'last, or 'length
6449 of array object.
6450 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
6451 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
6452 calls.
6453 Attributes are now exp_opcode values.
6454 Correct treatment of 'modulus.
6455 Better error message for taking 'length of wrong kind of type;
6456 improve comment.
6457 Change EVAL_NORMAL to noside for consistency.
6458 Use ada_value_binop for DIV, MOD, REM.
6459 Make special case out of array of length 0, since an argument
6460 of 0 upsets some platforms' malloc.
6461 Use OP_STRING instead of OP_ARRAY.
6462 For slice, add check that we have an array type before extracting
6463 a slice out of it. Avoids a SEGV.
6464 When evaluating an array slice, if the array type is a reference to
6465 an aligner type, then replace the aligner type by the actual type.
6466 Decomment disabled code.
6467 Remove some dead code.
6468 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
6469 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
6470 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
6471 and UNOP_MBR to UNOP_IN_RANGE.
6472 If an array type has a parallel ___XVE type, then use it.
6473 Turn arrays into pointers for lvalue arrays.
6474 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
6475 bounds error and handle 0-length slices.
6476 Use lim_warning.
6477 When selecting fields, apply ada_to_fixed_value (because the fields
6478 might have ___XVU or ___XVE encodings even if not dynamic.)
6479 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
6480 (ada_is_system_address_type): New function.
6481
6482 (get_var_value): Use new interface to ada_lookup_symbol_list.
6483 (get_int_var_value): New interface.
6484 (to_fixed_range_type): Allow unknown bound, with warning.
6485 (ada_is_modular_type): Decomment disabled code.
6486 (ADA_OPERATORS): New definition.
6487 (ada_operator_length): New function.
6488 (ada_expr_op_name): New function.
6489 (ada_forward_operator_length): New function.
6490 (ada_dump_subexp_body): New function.
6491 (ada_print_subexp): New function.
6492 (ada_exp_descriptor): New constant.
6493 (ada_op_print_tab): Add 'size. Remove FIXMEs.
6494 (ada_language_defn): Add ada_exp_descriptor entry.
6495 Change ada_parse => parse.
6496 Add post-parser entry.
6497 Use ada-specific non-local symbol lookup.
6498 Don't use C-style arrays.
6499 String lower-bound is 1.
6500 Decomment disabled code.
6501 (parse): New function.
6502 New fields ada_translate_error_message, ada_lookup_symbol,
6503 ada_lookup_minimal_symbol.
6504
6505 * ada-lang.h: Update copyright dates.
6506 Replace the mangle/demangle terminology throughout by the
6507 more appropriate encode/decode one.
6508 Include breakpoint.h.
6509 Forward declare struct partial_symbol, struct block.
6510 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
6511 (EXTRACT_ADDRESS): Remove.
6512 (EXTRACT_INT): Remove.
6513 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
6514 (MAX_ENCLOSING_FRAME_LEVELS): Define.
6515 (MAX_RENAMING_CHAIN_LENGTH): Define.
6516 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
6517
6518 (enum task_states): Remove.
6519 ada_task_states: Remove.
6520 (fat_string): Remove.
6521 (struct entry_call): Remove.
6522 (struct task_fields): Remove.
6523 (struct task_entry): Remove.
6524
6525 (struct ada_symbol_info): Define.
6526 (enum ada_attribute): Remove.
6527 (enum ada_operator): Define.
6528
6529 (ada_get_field_index): Declare.
6530 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
6531 (ada_is_simple_array): Rename to ada_is_simple_array_type.
6532 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
6533 (ada_lookup_symbol_list): New interface.
6534 (ada_decode_symbol): Declare.
6535 (ada_decode): Declare.
6536 (ada_lookup_symbol): New interface.
6537 (ada_update_initial_language): Declare.
6538 (ada_lookup_simple_minsym): Declare.
6539 (user_select_syms): New interface.
6540 (ada_sals_for_line): Declare.
6541 (ada_is_tagged_type): New interface.
6542 (ada_tag_name): Declare.
6543 (ada_lookup_struct_elt_type): Remove declaration.
6544 (ada_search_struct_field): Remove declaration.
6545 (ada_attribute_name): New interface.
6546 (ada_is_system_address_type): Declare.
6547 (ada_to_fixed_value): Remove declaration.
6548 (ada_template_to_fixed_record_type_1): Declare.
6549 (get_int_var_value): New interface.
6550 (ada_find_any_symbol): Declare.
6551 (ada_find_renaming_symbol): Declare.
6552 (ada_mangle): Rename to ada_encode.
6553 (ada_simple_renamed_entity): Remove const.
6554 (ada_main_name): Declare.
6555 (get_current_task): Rename to ada_get_current_task.
6556 (get_entry_number): Remove declaration.
6557 (ada_report_exception_break): Remove declaration.
6558 (ada_print_exception_breakpoint_nontask): Declare.
6559 (ada_print_exception_breakpoint_task): Declare.
6560 (ada_find_printable_frame): Declare.
6561
6562 * ada-lex.l: Update copyright notices.
6563 Use xmalloc and xfree instead of malloc and free.
6564 Use new interface to name_lookup.
6565 Use new interface to
6566 ada_mangle=>ada_encode.
6567 Redo handling of '$...' variable to parallel current treatment
6568 in c-exp.y.
6569 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
6570 digit_to_int, strtoulst, processInt, processReal, processId,
6571 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
6572 yywrap): Protoize.
6573
6574 (processInt): Use cast to remove harmless warning.
6575 (processReal): Modify to get rid of compiler warning on scan formats.
6576
6577 (processId): Replace xmalloc with obstack_alloc for name and remove
6578 call to ada_name_string_cleanup.
6579 Remove obsolete disabled code.
6580 (name_lookup): Ditto.
6581 New interface.
6582 Use obsavestring on temp_parse_space instead of savestring
6583 on name, and remove call to ada_name_string_cleanup.
6584 Free string returned from ada_simple_renamed_entity.
6585 Use new interface to ada_lookup_symbol_list.
6586 Decomment disabled code.
6587 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
6588 not types.
6589 When a type name lookup succeeds as a result of
6590 lookup_primitive_typename, check for regular type entry that has not
6591 yet been read in.
6592 Limit length of chain of renamed symbols we are willing to follow.
6593 Do not break names beginning with "standard__" into segments.
6594 (block_lookup): Use new interface to ada_lookup_symbol_list.
6595
6596 * ada-typeprint.c: Update copyright notice.
6597 (demangled_type_name): Rename to decoded_type_name.
6598 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
6599 (print_range_bound): Correct handling of negative
6600 bounds that make the index type looked unsigned under STABS.
6601 (print_dynamic_range_bound): Use new interface to get_int_var_value.
6602 (print_range_type_named): Use the builtin int type if no type
6603 corresponding to the given type name could be found.
6604 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
6605 Add some bullet-proofing.
6606 (print_variant_clauses): Allow for variant branches with ___XVU
6607 encodings that are not dynamic fields.
6608 Use new interface to ada_is_tagged_type.
6609 (print_record_type): Allow for fields with ___XVE encodings that
6610 are not dynamic fields.
6611 Use new interface to ada_is_tagged_type.
6612 (ada_print_type): ada_is_array_descriptor =>
6613 ada_is_array_descriptor_type.
6614
6615 * ada-valprint.c: Update copyright notice.
6616 Include gdb_string.h
6617 Include infcall.h
6618 (ui_memcpy): New function.
6619 (ada_print_floating): New function.
6620 (ada_print_str): Order arguments correctly.
6621 Correct handling of empty arrays and arrays of 0-length items.
6622 ada_is_array_descriptor => ada_is_array_descriptor_type
6623 Print values of type System.Address in hexadecimal format.
6624 Use ada_print_floating to print floating-point numbers in Ada format.
6625 Print class tag values with type names.
6626 No longer print the address of reference values. Avoids
6627 a potential confusion.
6628 (ada_value_print): Stop printing the object type for reference
6629 values, but preserve that behavior for access types. Avoids
6630 a potential confusion.
6631 Simplify one conditional expression, as the first part is now
6632 necessarily true.
6633 ada_is_array_descriptor => ada_is_array_descriptor_type
6634 Add check for arrays for null records, and print them by hand.
6635
6636 2004-06-01 Jim Blandy <jimb@redhat.com>
6637
6638 * ppc-tdep.h: Delete unused 'regoff' member.
6639 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
6640
6641 2004-06-01 Michael Chastain <mec.gnu@mindspring.com>
6642
6643 Fix PR symtab/1661.
6644 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
6645 (hpread_read_struct_type): Likewise.
6646
6647 2004-06-01 Andrew Cagney <cagney@gnu.org>
6648
6649 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
6650 instead of xasprintf.
6651 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
6652 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
6653 (mi_cmd_data_list_register_names)
6654 (mi_cmd_data_list_changed_registers)
6655 (mi_cmd_data_list_register_values)
6656 (get_register, mi_cmd_data_write_register_values)
6657 (mi_cmd_data_write_register_values)
6658 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
6659 (mi_cmd_target_download, mi_cmd_target_select)
6660 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
6661 (mi_execute_cli_command, mi_execute_async_cli_command)
6662 (mi_execute_async_cli_command): Ditto.
6663 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
6664 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
6665
6666 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
6667 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
6668 error_last_message instead of mi_error_last_message.
6669 * mi/mi-main.c (mi_error_last_message): Delete function.
6670
6671 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
6672 "invalid number of columns" error. Delete redundant "out of
6673 memory" check.
6674
6675 2004-05-31 Mark Kettenis <kettenis@gnu.org>
6676
6677 * i386bsd-nat.c: Don't include <sys/procfs.h>.
6678 (gregset_t, fpregset_t): Remove typedefs.
6679 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
6680 (REG_OFFSET): Rename argument.
6681 (i386bsd_r_reg_offset): Rename from reg_offset.
6682 (REG_ADDR): Remove macro.
6683 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
6684 functions.
6685 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
6686 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
6687 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
6688 instead of supply_gregset.
6689 (store_inferior_registers): Use `struct reg' and `struct fpreg'
6690 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
6691 instead of fill_gregset.
6692 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
6693
6694 * i386bsd-nat.c: Don't include "gregset.h".
6695 (supply_gregset, fill_gregset): Make static.
6696 (supply_fpregset, fill_fpregset): Remove.
6697 * Makefile.in (i386bsd-nat.o): Update dependencies.
6698
6699 2004-05-30 Mark Kettenis <kettenis@gnu.org>
6700
6701 * fbsd-proc.c: Include "regcache.h", "regset.h" and
6702 "gdb_assert.h". Con't include "gregset.h".
6703 (fbsd_make_corefile_notes): Use regset-based core file support
6704 instead off fill_gregset and fill_fpregset.
6705 * Makefile.in (fbsd-proc.o): Update dependencies.
6706
6707 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
6708 instructions.
6709 (m88k_frame_prev_register): Simplify code a bit.
6710
6711 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
6712 (amd64_collect_fpregset): New function.
6713 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
6714
6715 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
6716
6717 * i386-tdep.c (i386_supply_gregset): Adjust comment.
6718 (i386_collect_gregset): New function.
6719 (i386_supply_fpregset): Adjust comment.
6720 (i386_collect_fpregset): New function.
6721 (i386_regset_from_core_section): Use i386_collect_gregset and
6722 i386_collect_fpregset.
6723
6724 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
6725 handle VALUEP being null.
6726
6727 * regset.h (collect_regset_ftype): Unconstify fourth argument.
6728
6729 2004-05-29 Mark Kettenis <kettenis@gnu.org>
6730
6731 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
6732
6733 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
6734 assembler in OpenBSD 3.5-current.
6735 (amd64obsd_sigcontext_addr): Likewise.
6736
6737 2004-05-28 Jim Blandy <jimb@redhat.com>
6738
6739 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
6740 register set, so our regcache isn't declared "legacy" and our E500
6741 pseudoregister read and write functions aren't ignored.
6742 (rs6000_register_byte, rs6000_register_raw_size,
6743 rs6000_register_virtual_type, rs6000_register_convertible,
6744 rs6000_register_convert_to_virtual,
6745 rs6000_register_convert_to_raw): Deleted.
6746 (rs6000_register_type, rs6000_convert_register_p,
6747 rs6000_register_to_value, rs6000_value_to_register): New
6748 functions.
6749 (rs6000_gdbarch_init): Don't register
6750 gdbarch_deprecated_register_size,
6751 gdbarch_deprecated_register_bytes,
6752 gdbarch_deprecated_register_byte,
6753 gdbarch_deprecated_register_raw_size,
6754 gdbarch_deprecated_register_virtual_type,
6755 gdbarch_deprecated_register_convertible,
6756 gdbarch_deprecated_register_convert_to_virtual, or
6757 gdbarch_deprecated_register_convert_to_raw methods. Instead,
6758 register gdbarch_register_type, gdbarch_convert_register_p,
6759 gdbarch_register_to_value, and gdbarch_value_to_register methods.
6760
6761 2004-05-26 Jim Blandy <jimb@redhat.com>
6762
6763 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
6764 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
6765 functions, updated to match the register numberings used in GCC.
6766 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
6767 rs6000_dwarf2_reg_to_regnum as register number conversions
6768 functions for STABS and Dwarf2.
6769
6770 2004-05-26 Randolph Chung <tausq@debian.org>
6771
6772 * infttrace.h (target_waitkind): Forward declare type instead of pulling
6773 in header file.
6774
6775 2004-05-25 Joel Brobecker <brobecker@gnat.com>
6776
6777 * NEWS: Document new "start" command.
6778
6779 2004-05-25 Randolph Chung <tausq@debian.org>
6780
6781 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
6782 hppa-linux.
6783
6784 2004-05-25 Randolph Chung <tausq@debian.org>
6785
6786 * hppa-hpux-tdep.c (offsetof): Define.
6787 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
6788 (hppa32_hpux_frame_base_before_sigtramp)
6789 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
6790 (hppa64_hpux_frame_saved_pc_in_sigtramp)
6791 (hppa64_hpux_frame_base_before_sigtramp)
6792 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
6793 functions.
6794 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
6795 (hppa_hpux_sigtramp_frame_unwind_cache)
6796 (hppa_hpux_sigtramp_frame_this_id)
6797 (hppa_hpux_sigtramp_frame_prev_register)
6798 (hppa_hpux_sigtramp_frame_unwind)
6799 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
6800 (hppa_hpux_init_abi): Register sigtramp unwinder.
6801 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
6802
6803 2004-05-25 Randolph Chung <tausq@debian.org>
6804
6805 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
6806 and multiple stack unwinds.
6807 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
6808
6809 2004-05-25 Andrew Cagney <cagney@gnu.org>
6810
6811 * symfile.h (symbol_file_add_from_memory): Delete declaration.
6812 * symfile-mem.h: Delete file.
6813 * symfile-mem.c: Do not include "symfile-mem.h".
6814 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
6815 "struct bfd_section". When an error do not bother returning NULL.
6816 (add_symbol_file_from_memory_command): Use "struct bfd" and
6817 "struct bfd_section".
6818 * Makefile.in (symfile_mem_h): Delete.
6819 (symfile-mem.o): Update dependencies.
6820
6821 2004-05-25 Nick Roberts <nickrob@gnu.org>
6822
6823 * gdb-mi.el: New file.
6824
6825 2004-05-25 Andrew Cagney <cagney@gnu.org>
6826
6827 * inftarg.c: Include "observer.h".
6828 (child_attach, child_create_inferior): Notify inferior_created.
6829 * corelow.c: Include "observer.h".
6830 (core_open): Notify inferior_created.
6831 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
6832
6833 2004-05-25 Andrew Cagney <cagney@gnu.org>
6834
6835 * target.h (struct target_ops): Add from_tty to
6836 to_create_inferior.
6837 (target_create_inferior, find_default_create_inferior): Update.
6838 * infcmd.c (run_command): Update.
6839 * wince.c (child_create_inferior): Update.
6840 * win32-nat.c (child_create_inferior): Update.
6841 * uw-thread.c (uw_thread_create_inferior): Update.
6842 * thread-db.c (thread_db_create_inferior): Update.
6843 * target.c (debug_to_create_inferior)
6844 (find_default_create_inferior): Update.
6845 (maybe_kill_then_create_inferior): Update.
6846 * sol-thread.c (sol_thread_create_inferior): Update.
6847 * remote.c (extended_remote_async_create_inferior)
6848 (extended_remote_create_inferior): Update.
6849 * remote-vx.c (vx_create_inferior): Update.
6850 * remote-st.c (st2000_create_inferior): Update.
6851 * remote-sim.c (gdbsim_create_inferior): Update.
6852 * remote-sds.c (sds_create_inferior): Update.
6853 * remote-rdp.c (remote_rdp_create_inferior): Update.
6854 * remote-rdi.c (arm_rdi_create_inferior): Update.
6855 * remote-m32r-sdi.c (m32r_create_inferior): Update.
6856 * remote-e7000.c (e7000_create_inferior): Update.
6857 * procfs.c (procfs_create_inferior): Update.
6858 * ocd.c (ocd_create_inferior): Update.
6859 * ocd.h (ocd_create_inferior): Update.
6860 * nto-procfs.c (procfs_create_inferior): Update.
6861 * monitor.c (monitor_create_inferior): Update.
6862 * lin-lwp.c (lin_lwp_create_inferior): Update.
6863 * inftarg.c (child_create_inferior): Update.
6864 * hpux-thread.c (hpux_thread_create_inferior): Update.
6865 * gnu-nat.c (gnu_create_inferior): Update.
6866
6867 2004-05-25 Andrew Cagney <cagney@gnu.com>
6868
6869 * MAINTAINERS: Update e-mail address.
6870
6871 2004-05-24 Randolph Chung <tausq@debian.org>
6872
6873 * thread.c (info_threads_command, thread_apply_all_command)
6874 (thread_apply_command, thread_command, do_captured_thread_select):
6875 Remove HPUXHPPA-specific code.
6876
6877 2004-05-24 Randolph Chung <tausq@debian.org>
6878
6879 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
6880 unused symbols.
6881 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
6882 references.
6883
6884 2004-05-24 Joel Brobecker <brobecker@gnat.com>
6885
6886 * infcmd.c (kill_if_already_running): New function, extracted
6887 from run_command().
6888 (run_command): Replace extracted code by call to
6889 kill_if_already_running().
6890 (start_command): New function.
6891 (_initialize_infcmd): Add "start" command.
6892
6893 2004-05-24 Mark Kettenis <kettenis@gnu.org>
6894
6895 Add OpenBSD/m88k support.
6896 * NEWS (New native configurations): Mention OpenBSD/m88k.
6897 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
6898 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
6899 * Makefile.in (m88k_tdep_h): New variable.
6900 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
6901 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
6902 * configure.host: Add m88*-*-openbsd*.
6903 * configure.tgt: Add m88*-*-openbsd*.
6904
6905 2004-05-24 Jim Blandy <jimb@redhat.com>
6906
6907 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
6908 to approve changes.
6909
6910 2004-05-24 Kevin Buettner <kevinb@redhat.com>
6911
6912 * symtab.c (fixup_section): Search section table when lookup by
6913 name fails.
6914
6915 2004-05-24 Randolph Chung <tausq@debian.org>
6916
6917 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
6918 be "small_struct".
6919
6920 2004-05-24 Mark Kettenis <kettenis@gnu.org>
6921
6922 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
6923 register number in regcache_raw_collect call.
6924 (m68kbsd_collect_fpregset): Likewise.
6925 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
6926
6927 * regset.h (struct regset): Add back `regset' member.
6928
6929 2004-05-23 Mark Kettenis <kettenis@gnu.org>
6930
6931 * configure.in: Check for td_pcb in `struct thread'.
6932 * configure, config.in: Regenerated.
6933
6934 * dpx2-nat.c: Remove file.
6935 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
6936 (dpx2-nat.o): Remove dependencies.
6937
6938 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
6939 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
6940 (amd64obsd_supply_pcb): New function.
6941 (_initialize_amd64obsd_nat): Enable libkvm interface.
6942 * Makefile.in (amd64obsd-nat.o): Update dependencies.
6943 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
6944 (LOADLIBES): New variable.
6945
6946 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
6947 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
6948 (sparc32nbsd_supply_pcb): New function.
6949 (_initialize_sparcnbsd_nat): Enable libkvm interface.
6950 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
6951 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
6952 (LOADLIBES): New variable.
6953
6954 2004-05-22 Mark Kettenis <kettenis@gnu.org>
6955
6956 * bsd-kvm.c, bsd-kvm.h: New files.
6957 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
6958 "bsd-kvm.h".
6959 (i386fbsd_supply_pcb): New function.
6960 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
6961 (i386fbsd-nat.o): Update dependencies.
6962 (bsd_kvm_h): New variable.
6963 (bsd-kvm.o): New dependency.
6964 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
6965 (LOADLIBES): New variable.
6966
6967 * regset.c: Tweak comment.
6968 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
6969 macro.
6970 * regset.h: Update copyright year.
6971 (struct regset): Remove `descr' member, add `gdbarch' member.
6972 (regset_alloc): Adjust prototype and comment.
6973 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
6974 (i386_supply_fpregset): Likewise.
6975 (i386_regset_from_core_section): Update call to regset_alloc.
6976 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
6977 REGSET->arch.
6978 (i386obsd_aout_regset_from_core_section): Update call to
6979 regset_alloc.
6980 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
6981 REGSET->arch.
6982 (i386nbsd_aout_regset_from_core_section): Update call to
6983 regset_alloc.
6984 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
6985 REGSET->arch.
6986 (amd64_regset_from_core_section): Update call to regset_alloc.
6987 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
6988 REGSET->arch.
6989 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
6990 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
6991 &sparc32nbsd_gregset in sparc32_supply_gregset call.
6992 (sparc32nbsd_init_abi): Update call to regset_alloc.
6993 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
6994 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
6995 (sparc64obsd_init_abi): Update call to regset_alloc.
6996 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
6997 &sparc64nbsd_gregset in sparc64_supply_gregset call.
6998 (sparc64nbsd_init_abi): Update call to regset_alloc.
6999 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
7000 &sparc64fbsd_gregset in sparc64_supply_gregset call.
7001 (sparc64fbsd_init_abi): Update call to regset_alloc.
7002
7003 2004-05-22 Jim Blandy <jimb@redhat.com>
7004
7005 * ppc-tdep.h (spe_register_p): New declaration.
7006 (struct gdbarch_tdep): New members: ppc_acc_regnum and
7007 ppc_spefscr_regnum.
7008 * rs6000-tdep.c (spe_register_p): New function.
7009 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
7010 spefscr.
7011 (rs6000_gdbarch_init): Initialize the new members of the tdep
7012 structure.
7013
7014 2004-05-21 Jim Blandy <jimb@redhat.com>
7015
7016 * ppc-linux-nat.c (fetch_register): Move code back to be next
7017 to the comment that describes it. (Moved code, instead of
7018 comment, for symmetry with store_register.)
7019
7020 Allocate regset structures in the gdbarch's obstack, not using
7021 xmalloc.
7022 * regset.c (regset_alloc): Renamed from regset_xmalloc.
7023 Add 'arch' argument. Allocate the regset on arch's obstack, not
7024 using xmalloc.
7025 * regset.h (regset_alloc): Update declaration.
7026 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
7027 gdbarch argument.
7028 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7029 * i386-tdep.c (i386_regset_from_core_section): Same.
7030 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7031 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7032 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7033 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7034 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7035 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7036
7037 2004-05-21 Joel Brobecker <brobecker@gnat.com>
7038
7039 * config/djgpp/fnchange.lst: Undo previous change, was useless.
7040
7041 2004-05-21 Jim Blandy <jimb@redhat.com>
7042
7043 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
7044 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
7045
7046 2004-05-20 Jim Blandy <jimb@redhat.com>
7047
7048 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
7049
7050 2004-05-20 Mark Kettenis <kettenis@gnu.org>
7051
7052 * regset.h: Make prototype const-correct.
7053 * regset.c (regset_xmalloc): Make const-correct.
7054
7055 2004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
7056
7057 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
7058 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
7059 (symbol_search_name): Declare.
7060
7061 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
7062 (iter_name_next_hashed): Ditto.
7063 (iter_name_next_linear): Ditto.
7064 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
7065
7066 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
7067 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
7068 (symbol_search_name): New function.
7069
7070 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
7071
7072 * minsyms.c (build_minimal_symbol_hash_tables): Change
7073 test for adding to demangled hash table to check for difference
7074 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
7075
7076 2004-05-19 Jim Blandy <jimb@redhat.com>
7077
7078 Use a constructor function to create regset structures.
7079 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
7080 (struct regset): Use supply_regset_ftype. Add new
7081 'collect_regset' member.
7082 (regset_xmalloc): New declaration.
7083 * regset.c: New file.
7084 * am64-tdep.c (amd64_regset_from_core_section): Use
7085 regset_xmalloc to construct regset structures.
7086 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7087 * i386-tdep.c (i386_regset_from_core_section): Same.
7088 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7089 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7090 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7091 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7092 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7093 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7094 * Makefile.in (COMMON_OBS): Add regset.o.
7095 (regset.o): New rule.
7096
7097 2004-05-19 Joel Brobecker <brobecker@gnat.com>
7098
7099 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
7100 and pthread_cond_wait.c.
7101
7102 2004-05-18 Jim Blandy <jimb@redhat.com>
7103
7104 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
7105 before the mach-specific switch, and then let the individual cases
7106 override the defaults, rather than leaving them uninitialized
7107 until the switch and then setting them in each case.
7108
7109 2004-05-18 Randolph Chung <tausq@debian.org>
7110
7111 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
7112 millicode functions.
7113
7114 2004-05-18 Randolph Chung <tausq@debian.org>
7115
7116 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
7117 references to dld_flags_buffer consistent.
7118
7119 2004-05-18 Randolph Chung <tausq@debian.org>
7120
7121 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
7122 it for unwinding the stack.
7123
7124 2004-05-18 Randolph Chung <tausq@debian.org>
7125
7126 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
7127 Undefine these so we can overide them using gdbarch.
7128
7129 2004-05-18 Randolph Chung <tausq@debian.org>
7130
7131 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
7132 handling for 64-bit HPUX (elf).
7133
7134 2004-05-18 Daniel Jacobowitz <dan@debian.org>
7135
7136 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
7137 constants.
7138 * amd64-tdep.c (amd64_skip_prologue): Likewise.
7139 * ia64-tdep.c (examine_prologue): Likewise.
7140 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
7141 * v850-tdep.c (v850_fix_call_dummy): Likewise.
7142
7143 2004-05-18 Mark Kettenis <kettenis@gnu.org>
7144
7145 * vax-tdep.c (vax_return_value): Implement
7146 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7147
7148 2004-05-17 Mark Kettenis <kettenis@gnu.org>
7149
7150 * vax-tdep.c (vax_return_value): Fix typo.
7151
7152 2004-05-17 Andrew Cagney <cagney@redhat.com>
7153
7154 * MAINTAINERS: Mark Salter was also responsible for
7155 testsuite/config/
7156
7157 * NEWS: Mention signal fixes.
7158
7159 2004-05-17 Randolph Chung <tausq@debian.org>
7160
7161 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
7162 check to see if we are unwinding an export stub. Export stubs clobber
7163 the %rp in the call path and stores the original rp in a stack slot.
7164
7165 2004-05-17 Jim Blandy <jimb@redhat.com>
7166
7167 * MAINTAINERS: Update address for J.T. Conklin.
7168
7169 2004-05-17 Randolph Chung <tausq@debian.org>
7170
7171 * hppa-tdep.c: Remove superfluous #include's.
7172 * Makefile.in (hppa-tdep.o): Update dependencies.
7173
7174 2004-05-17 Randolph Chung <tausq@debian.org>
7175
7176 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
7177 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
7178 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
7179 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
7180 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
7181 Remove static function declarations.
7182
7183 2004-05-17 Mark Kettenis <kettenis@gnu.org>
7184
7185 * alphabsd-nat.c: Update copyright year.
7186 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
7187
7188 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
7189 and M68K_A2_REGNUM.
7190
7191 * m68k-tdep.c (m68k_svr4_return_value): Implement
7192 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7193
7194 2004-05-16 Mark Kettenis <kettenis@gnu.org>
7195
7196 * sol-thread.c Update copyright year. Fix various coding
7197 standards violations. Tweak a few comments.
7198 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
7199 Delete prototypes.
7200
7201 2004-05-15 Randolph Chung <tausq@debian.org>
7202
7203 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
7204 as pointer instead of array reference since HPUX compiler does
7205 not accept unsized array arguments.
7206 * somsolib.c (dld_flags_buffer): Use constant array size.
7207
7208 2004-05-15 Mark Kettenis <kettenis@gnu.org>
7209
7210 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
7211 offset with decimal offset.
7212 (amd64obsd_sigcontext_addr): Return correct address for entire
7213 signal trampoline.
7214
7215 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
7216 instead of get_frame_base.
7217
7218 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
7219 (fill_gregset): Use regcache_raw_collect.
7220
7221 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
7222 ppcobsd-tdep.c.
7223
7224 * config/sparc/tm-nbsd64.h: Remove file.
7225 * config/tm-sunos.h: Remove file.
7226
7227 2004-05-15 Joel Brobecker <brobecker@gnat.com>
7228
7229 * rs6000-tdep.c (store_param_on_stack_p): New function,
7230 an improved version of some code extracted from skip_prologue().
7231 (skip_prologue): Use store_param_on_stack_p() to detect
7232 instructions saving a parameter on the stack. Detect when r0
7233 is used to save a parameter.
7234 Do not mark "li rx, SIMM" instructions as part of the prologue,
7235 unless the following instruction is also part of the prologue.
7236
7237 2004-05-14 Andrew Cagney <cagney@redhat.com>
7238
7239 * infrun.c (handle_inferior_event): Simplify
7240 STEP_OVER_UNDEBUGGABLE.
7241
7242 * infrun.c (handle_step_into_function): Delete function.
7243 (handle_inferior_event): Inline calls to
7244 handle_step_into_function.
7245
7246 2004-05-14 Jerome Guitton <guitton@gnat.com>
7247
7248 * rs6000-nat.c: Fix a comment.
7249
7250 2004-05-12 David Anderson <davea@sgi.com>
7251
7252 Committed by Jim Blandy <jimb@redhat.com>:
7253 * regcache.c (struct regcache_descr): fix comment spelling.
7254
7255 2004-05-13 J. Brobecker <brobecker@gnat.com>
7256
7257 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
7258 Fixes a link link failure.
7259
7260 2004-05-13 J. Brobecker <brobecker@gnat.com>
7261
7262 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
7263 error that was causing the build to fail.
7264
7265 2004-05-13 J. Brobecker <brobecker@gnat.com>
7266
7267 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
7268 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
7269
7270 2004-05-13 Andrew Cagney <cagney@redhat.com>
7271
7272 * infrun.c (handle_inferior_event): Check for
7273 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
7274 calls. Update comments.
7275
7276 2004-05-13 Jim Blandy <jimb@redhat.com>
7277
7278 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
7279 (fetch_regs_user_thread, fetch_regs_kernel_thread)
7280 (store_regs_user_thread, store_regs_kernel_thread): Use
7281 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
7282 * ppc-linux-nat.c (fill_gregset): Same.
7283 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
7284 (ppc_linux_sigtramp_cache): Same.
7285 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
7286 (ppcnbsd_sigtramp_cache_init): Same.
7287 * rs6000-nat.c (fetch_core_registers): Same.
7288 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
7289 (rs6000_frame_cache): Same.
7290
7291 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
7292 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
7293 of assuming that the gprs are numbered starting with zero.
7294 * ppc-linux-nat.c (fill_gregset): Same.
7295 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
7296 * ppcnbsd-nat.c (getregs_supplies): Same.
7297 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
7298 * rs6000-nat.c (fetch_core_registers): Same.
7299 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
7300
7301 2004-05-07 Michael Snyder <msnyder@redhat.com>
7302
7303 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
7304 LOC_COMPUTED_ARG, and LOC_INDIRECT.
7305
7306 2004-05-13 Andrew Cagney <cagney@redhat.com>
7307
7308 * infrun.c (handle_inferior_event): Use frame_unwind_id.
7309
7310 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
7311
7312 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
7313 base_address for shared libraries.
7314
7315 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
7316
7317 * MAINTAINERS (write after approval): Add myself.
7318
7319 2004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
7320
7321 * breakpoint.c (bpstat_stop_status): Add new argument
7322 STOPPED_BY_WATCHPOINT. Use it instead of testing
7323 target_stopped_data_address agaist 0 to check whether
7324 or not we stopped due to a hardware watchpoint.
7325 * breakpoint.h (bpstat_stop_status): Adapt prototype.
7326 * infrun.c (handle_inferior_event): Call bpstat_stop_status
7327 with new argument.
7328
7329 2004-05-12 Jim Blandy <jimb@redhat.com>
7330
7331 * configure.in: When checking whether we should use the -bbigtoc
7332 option, don't forget to restore the original value of LDFLAGS.
7333 * configure: Regenerated.
7334
7335 2004-05-12 Andrew Cagney <cagney@redhat.com>
7336
7337 * thread.c (load_infrun_state): Delete step_sp.
7338 * infrun.c (context_switch): Ditto.
7339 * inferior.h (step_sp): Ditto.
7340 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
7341 * gdbthread.h (struct thread_info, save_infrun_state)
7342 (restore_infrun_state): Ditto.
7343
7344 2004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
7345
7346 * MAINTAINERS (write after approval): Add myself.
7347
7348 2004-05-12 Andrew Cagney <cagney@redhat.com>
7349
7350 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
7351 eliminate reference to step_sp.
7352 (struct execution_control_state, init_execution_control_state)
7353 (handle_inferior_event, keep_going): Delete update_step_sp and
7354 step_sp.
7355 * infcmd.c (step_sp): Note that variable is unused.
7356
7357 2004-05-11 Andrew Cagney <cagney@redhat.com>
7358
7359 * infrun.c (step_over_function): Delete function.
7360 (handle_step_into_function): Use insert_step_resume_breakpoint.
7361 (insert_step_resume_breakpoint): Fix assertion.
7362
7363 2004-05-11 Nick Roberts <nickrob@gnu.org>
7364
7365 * utils.c (defaulted_query): Just use the normal query input type
7366 when printing the annotations.
7367
7368 2004-05-11 Andrew Cagney <cagney@redhat.com>
7369
7370 * infrun.c (handle_inferior_event): Simplify code handling
7371 step-into or return-from a signal trampoline.
7372
7373 2004-05-11 Andrew Cagney <cagney@redhat.com>
7374
7375 * ppcnbsd-tdep.c: Include "gdb_assert.h".
7376 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
7377
7378 2004-05-10 Jim Blandy <jimb@redhat.com>
7379
7380 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
7381 with a call to internal_error.
7382
7383 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
7384 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
7385 processor variant lacks those registers.
7386 (ppc_floating_point_unit_p): Change description to make it clear
7387 that this returns info about the ISA, not the ABI.
7388 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
7389 return true or false by checking tdep->ppc_fp0_regnum and
7390 tdep->ppc_fpscr_regnum. The original code replicated the BFD
7391 arch/mach switching done in rs6000_gdbarch_init; it's better to
7392 keep that logic there, and just check the results here.
7393 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
7394 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
7395 floating-point registers.
7396 (ppc_supply_fpregset, ppc_collect_fpregset)
7397 (rs6000_push_dummy_call, rs6000_extract_return_value)
7398 (rs6000_store_return_value): Assert that we have floating-point
7399 registers.
7400 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
7401 (rs6000_frame_cache): Don't note the locations at which
7402 floating-point registers were saved if we have no fprs.
7403 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
7404 registers.
7405 (fetch_regs_user_thread, fetch_regs_kernel_thread)
7406 (store_regs_user_thread, store_regs_kernel_thread): Only call
7407 supply_fprs / fill_fprs if we actually have floating-point
7408 registers.
7409 (special_register_p): Check ppc_fpscr_regnum before matching
7410 against it.
7411 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
7412 supply / collect fpscr if we don't have it.
7413 * ppc-bdm.c: #include "gdb_assert.h".
7414 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
7415 have floating-point registers, since I can't test this code on
7416 FP-free systems to adapt it.
7417 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
7418 fpscr and floating point register numbers if they don't exist.
7419 (fetch_register): Assert that we have floating-point registers
7420 before we reach the code that handles them.
7421 (store_register): Same. And use tdep instead of calling
7422 gdbarch_tdep again.
7423 (fill_fpregset): Don't try to collect FP registers and fpscr if we
7424 don't have them.
7425 (ppc_linux_sigtramp_cache): Don't record the saved locations of
7426 fprs and fpscr if we don't have them.
7427 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
7428 don't have them.
7429 * ppcnbsd-nat.c: #include "gdb_assert.h".
7430 (getfpregs_supplies): Assert that we have floating-point registers.
7431 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
7432 * ppcobsd-tdep.c: #include "gdb_assert.h".
7433 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
7434 have floating-point registers.
7435 * rs6000-nat.c (regmap): Don't match against the fpscr and
7436 floating point register numbers if they don't exist.
7437 (fetch_inferior_registers, store_inferior_registers,
7438 fetch_core_registers): Only fetch / store / supply the
7439 floating-point registers and the fpscr if we have them.
7440 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
7441 (ppcobsd-tdep.o): Update dependencies.
7442
7443 2004-05-10 Andrew Cagney <cagney@redhat.com>
7444
7445 * infrun.c (through_sigtramp_breakpoint): Delete variable.
7446 (context_switch): Do not switch through_sigtramp_breakpoint.
7447 * gdbthread.h (save_infrun_state, load_infrun_state)
7448 (struct thread_info): Delete through_sigtramp_breakpoint parameter
7449 and structure member.
7450 * thread.c (load_infrun_state, save_infrun_state): Update.
7451
7452 2004-05-10 Mark Kettenis <kettenis@gnu.org>
7453
7454 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
7455
7456 2004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
7457
7458 * acinclude.m4: Quote macro names being defined by AC_DEFUN
7459 throughout.
7460 * aclocal.m4: Regenerate.
7461
7462 2004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
7463
7464 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
7465
7466 2004-05-10 Andrew Cagney <cagney@redhat.com>
7467
7468 * infrun.c (check_sigtramp2): Delete function.
7469 (handle_inferior_event): When single stepping, and taking a
7470 signal, set a breakpoint at the signal return address. Delete
7471 redundant calls to check_sigtramp2.
7472 (insert_step_resume_breakpoint): New function.
7473 (through_sigtramp_breakpoint, handle_inferior_event)
7474 (follow_exec, wait_for_inferior, fetch_inferior_event)
7475 (currently_stepping, keep_going): Delete most uses of
7476 through_sigtramp_breakpoint, not that it should be deleted.
7477 (delete_breakpoint_current_contents): Delete function.
7478
7479 2004-05-10 Randolph Chung <tausq@debian.org>
7480
7481 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
7482 target.
7483 * config/pa/tm-linux.h: New file.
7484
7485 2004-05-10 Daniel Jacobowitz <drow@mvista.com>
7486
7487 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
7488 of prefixes. Don't print the prefix twice in the CLI.
7489
7490 2004-05-10 Jim Blandy <jimb@redhat.com>
7491
7492 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
7493 collect all the gprs.
7494
7495 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
7496 loop collecting gprs.
7497
7498 2004-05-09 Andrew Cagney <cagney@redhat.com>
7499
7500 * remote-vx.c (net_step): Delete step-range code.
7501 * remote.c (remote_resume, init_all_packet_configs)
7502 (set_remote_protocol_E_packet_cmd)
7503 (show_remote_protocol_E_packet_cmd)
7504 (remote_protocol_E, show_remote_cmd, _initialize_remote)
7505 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
7506 (show_remote_protocol_e_packet_cmd): Ditto.
7507
7508 2004-05-09 Mark Kettenis <kettenis@gnu.org>
7509
7510 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
7511
7512 * hppa-tdep.h: Update copyright year.
7513 (struct trad_frame_saved_reg): Add opaque declaration.
7514
7515 * amd64-tdep.c (amd64_return_value): Implement
7516 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7517
7518 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
7519 (m68k_value_to_register): New functions.
7520 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
7521 value_to_register.
7522
7523 * defs.h (enum return_value_convention): Add
7524 RETURN_VALUE_ABI_RETURNS_ADDRESS and
7525 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
7526 * infcmd.c (legacy_return_value): New function.
7527 (print_return_value): Rwerite to implement
7528 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7529 * values.c (using_struct_return): Check for inequality to
7530 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
7531 RETURN_VALUE_STRUCT_CONVENTION.
7532 * i386-tdep.c (i386_return_value): Implement
7533 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7534
7535 * vax-tdep.c: Tweak comments. Reorder include files. Don't
7536 include "symtab.h", "opcode/vax.h" and "inferior.h".
7537 (vax_skip_prologue): Replace calls to read_memory_integer by calls
7538 to read_memory_unsigned_integer.
7539 (vax_gdbarch_init): Reorder.
7540 (_initialize_vax_tdep): Spell out prototype.
7541 * Makefile.in (vax-tdep.o): Update dependencies.
7542
7543 2004-05-08 Andrew Cagney <cagney@redhat.com>
7544
7545 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
7546 * target.c (target_detach, target_disconnect): Ditto.
7547
7548 * infcall.c (call_function_by_hand): When no
7549 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
7550 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
7551 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
7552 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7553 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7554
7555 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
7556 * gdbarch.h, gdbarch.c: Re-generate.
7557 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7558 deprecated_fix_call_dummy.
7559 * v850-tdep.c (v850_gdbarch_init): Ditto.
7560 * infcall.c (call_function_by_hand): Do not call
7561 DEPRECATED_FIX_CALL_DUMMY.
7562
7563 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
7564 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
7565 * gdbarch.h, gdbarch.c: Re-generate.
7566 * arm-linux-tdep.c (arm_linux_call_dummy_words)
7567 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
7568 deprecated_sizeof_call_dummy_words.
7569 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
7570 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7571 * v850-tdep.c (v850_gdbarch_init): Ditto.
7572 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
7573 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
7574 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7575 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7576 * arch-utils.h (legacy_call_dummy_words)
7577 (legacy_sizeof_call_dummy_words): Delete declarations.
7578 * arch-utils.c (legacy_call_dummy_words)
7579 (legacy_sizeof_call_dummy_words): Delete variables.
7580
7581 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
7582 * gdbarch.h, gdbarch.c: Re-generate.
7583 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
7584 * infcall.c (call_function_by_hand): Eliminate call to
7585 DEPRECATED_PUSH_DUMMY_FRAME.
7586 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
7587 push_dummy_frame.
7588 (ns32k_push_dummy_frame): Delete function.
7589
7590 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7591 deprecated_call_dummy_breakpoint_offset or
7592 deprecated_call_dummy_start_offset.
7593 * dummy-frame.c, arm-tdep.c: Update comments.
7594 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
7595 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
7596 * gdbarch.h, gdbarch.c: Re-generate.
7597
7598 * infcall.c (legacy_push_dummy_code): Delete function.
7599 (push_dummy_code): Delete call.
7600
7601 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
7602 * gdbarch.h, gdbarch.c: Re-generate.
7603 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
7604 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
7605 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
7606 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
7607
7608 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
7609 (struct frame_info): Delete opaque declaration.
7610 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
7611 * frame.c (get_frame_type): Delete call.
7612
7613 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
7614 pc_in_call_dummy.
7615 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
7616 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
7617
7618 2004-05-08 Mark Kettenis <kettenis@gnu.org>
7619
7620 * alphanbsd-tdep.c: Include "gdb_string.h".
7621 * armnbsd-tdep.c: Update copyright year.
7622 Include "gdb_string.h".
7623 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
7624 dependencies.
7625
7626 * delta68-nat.c: Remove file.
7627 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
7628 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
7629 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
7630 (delta68-nat.o): Remove dependency.
7631
7632 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
7633 function.
7634 (m68k_gdbarch_init): Don't set
7635 deprecated_frameless_function_invocation.
7636
7637 2004-05-07 Randolph Chung <tausq@debian.org>
7638
7639 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
7640 read_memory_nobpt for code reading when doing frame unwinding.
7641 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
7642
7643 2004-05-07 Randolph Chung <tausq@debian.org>
7644
7645 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
7646 instead of sp, handle sigaltstack case.
7647 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
7648 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
7649 signal handler and not that of the caller.
7650 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
7651 hppa_linux_sigtramp_find_sigcontext.
7652
7653 2004-05-07 Randolph Chung <tausq@debian.org>
7654
7655 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
7656 hppa-linux-nat.c.
7657 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
7658 * hppa-linux-nat.c (fetch_register, store_register): Define.
7659 (fetch_inferior_registers, store_inferior_registers): Define.
7660 (supply_gregset): Add comment and clean up some unneeded code.
7661 (fill_gregset): Add comment and fix so that it saves registers in
7662 the right place in the gregset.
7663 (fill_fpregset): Fix buffer overrun problem.
7664 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
7665
7666 2004-05-07 Randolph Chung <tausq@debian.org>
7667
7668 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
7669 do common handling of the pcoqt register.
7670 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
7671 to use helper function.
7672 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
7673 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
7674 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
7675 generic fallback unwinder when all else fails.
7676 (hppa_gdbarch_init): Add fallback sniffer.
7677 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
7678 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
7679 to use helper function.
7680
7681 2004-05-08 Joel Brobecker <brobecker@gnat.com>
7682
7683 * config/djgpp/fnchange.lst: Add translation rules for
7684 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
7685
7686 2004-05-08 Mark Kettenis <kettenis@gnu.org>
7687
7688 * frame.c (get_prev_frame_1): Work around GCC bug.
7689 * frame.h: Add comment about GCC bug.
7690
7691 2004-05-07 Andrew Cagney <cagney@redhat.com>
7692
7693 * observer.c: Include "commands.h" and "gdbcmd.h".
7694 (observer_debug, _initialize_observer): Add the
7695 command "set/show debug observer".
7696 * observer.sh: When observer debugging, log notify calls.
7697 * Makefile.in (observer.o): Update dependencies.
7698
7699 2004-05-07 Jason Molenda (jmolenda@apple.com)
7700
7701 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
7702
7703 2004-05-07 Jim Blandy <jimb@redhat.com>
7704
7705 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
7706 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
7707 to recognize gpr regnums, instead of assuming that
7708 tdep->ppc_fp0_regnum marks the end of the general-purpose
7709 registers.
7710
7711 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
7712 the given architecture has floating-point registers.
7713
7714 2004-05-07 Andrew Cagney <cagney@redhat.com>
7715
7716 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
7717 macro defined to 1.
7718 * gdbarch.h, gdbarch.c: Re-generate.
7719 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7720 deprecated_use_generic_dummy_frames.
7721
7722 2004-05-07 Brian Ford <ford@vss.fsi.com>
7723
7724 * NEWS: Mention Cygwin DWARF 2 support.
7725
7726 2004-05-07 Andrew Cagney <cagney@redhat.com>
7727
7728 * objfiles.h (struct entry_info): Delete unused fields
7729 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
7730 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
7731 * mipsread.c (mipscoff_symfile_read): Update.
7732 * mdebugread.c (parse_partial_symbols): Update.
7733 * dwarfread.c (read_file_scope): Update.
7734 * dwarf2read.c (read_file_scope): Update.
7735 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
7736 * coffread.c (complete_symtab): Update.
7737
7738 2004-05-07 Mark Kettenis <kettenis@gnu.org>
7739
7740 * infcall.c (_initialize_infcall): Fix typo.
7741
7742 2004-05-07 Andrew Cagney <cagney@redhat.com>
7743
7744 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
7745 * command.h (add_setshow_zinteger_cmd): Declare.
7746
7747 2004-05-06 Randolph Chung <tausq@debian.org>
7748
7749 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
7750 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
7751 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
7752 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
7753 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
7754 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
7755 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
7756 definitions ...
7757 * hppa-tdep.h: ... to here, with HPPA_ prefix.
7758 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
7759 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
7760 (hppa64_hpux_frame_find_saved_regs_in_sig)
7761 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
7762 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
7763 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
7764 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
7765 (hppa_linux_sigtramp_frame_prev_register): Likewise.
7766 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
7767 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
7768 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
7769 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
7770 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
7771 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
7772 (hppa32_register_type, hppa_cannot_store_register)
7773 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
7774 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
7775 * hpread.c (hpread_process_one_debug_symbol): Likewise.
7776 * pa64solib.c (pa64_solib_have_load_event)
7777 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
7778 (pa64_solib_unloaded_library_pathname): Likewise.
7779 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
7780 (som_solib_library_pathname): Likewise.
7781
7782 2004-05-05 Jim Ingham <jingham@apple.com>
7783
7784 * breakpoint.c (create_breakpoints): Copy the ignore count and
7785 thread id over from the pended breakpoint to the actual
7786 breakpoint.
7787
7788 2004-05-05 Andrew Cagney <cagney@redhat.com>
7789
7790 * gdbarch.sh (PARM_BOUNDARY): Delete.
7791 gdbarch.h, gdbarch.c: Re-generate.
7792 * valops.c (PARM_BOUNDARY): Delete macro.
7793 (value_push): Delete PARM_BOUNDARY code.
7794 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
7795
7796 2004-05-04 Jim Blandy <jimb@redhat.com>
7797
7798 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
7799 Don't assume that the gprs, fprs, and UISA sprs are
7800 contiguous, start at register number zero, and end with fpscr.
7801 Instead, use the numbers from the tdep structure.
7802
7803 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
7804 should no longer be used in code specific to the RS6000 and its
7805 derivatives.
7806 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
7807 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
7808 tdep->ppc_fp0_regnum.
7809 (ppc_supply_fpregset, ppc_collect_fpregset)
7810 (rs6000_push_dummy_call, rs6000_extract_return_value)
7811 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
7812 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
7813 FP0_REGNUM.
7814 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
7815 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
7816 Same.
7817 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
7818 bdm_ppc_store_registers): Same.
7819 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
7820 (store_register, fill_fpregset): Same.
7821 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
7822 (ppc_linux_supply_fpregset): Same.
7823 * ppcnbsd-nat.c (getfpregs_supplies): Same.
7824 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
7825 Same.
7826 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
7827 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
7828 ppc64_sysv_abi_return_value): Same.
7829 * rs6000-nat.c (regmap, fetch_inferior_registers)
7830 (store_inferior_registers, fetch_core_registers): Same.
7831
7832 2004-05-01 Mark Kettenis <kettenis@gnu.org>
7833
7834 * m68knbsd-nat.c: Remove file.
7835 * m68knbsd-tdep.c: Remove file.
7836 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
7837 dependencies.
7838 * configure.host: Add m68k-*-netbsdelf*.
7839 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
7840 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
7841 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
7842 (XM_FILE): Remove.
7843 * config/m68k/nbsdelf.mh: New file.
7844 * config/m68k/nbsd.mt: New file.
7845 * config/m68k/nbsdaout.mt: Remove file.
7846 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
7847 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
7848 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
7849 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
7850 (use_struct_convention): Remove prototype.
7851 (USE_STRUCT_CONVENTION): Remove define.
7852 * config/m68k/xm-nbsd.h: Remove file.
7853
7854 2004-05-04 Michael Snyder <msnyder@redhat.com>
7855
7856 * m68k-tdep.c (m68k_gdbarch_init): Default to using
7857 reg_struct_return method (as gcc usually does for cross targets).
7858
7859 2004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7860
7861 Committed by Andrew Cagney.
7862 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
7863 alignment padding when accessing ucontext struct members.
7864
7865 2004-05-04 Jim Blandy <jimb@redhat.com>
7866
7867 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
7868 'ppc_gplast_regnum' member.
7869 (ppc_num_gprs): New enum constant.
7870 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
7871 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
7872 * rs6000-nat.c (regmap, fetch_inferior_registers,
7873 store_inferior_registers): Same.
7874 * rs6000-tdep.c (e500_pseudo_register_read)
7875 (e500_pseudo_register_write): Same.
7876 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
7877
7878 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
7879 * ppc-tdep.h (ppc_num_fprs): New enum constant.
7880 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
7881 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
7882 FPLAST_REGNUM.
7883 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
7884 Same.
7885 * ppc-linux-nat.c (ppc_register_u_addr): Same.
7886 * rs6000-nat.c (regmap, fetch_inferior_registers)
7887 (store_inferior_registers): Same.
7888
7889 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
7890 with FPLAST_REGNUM.
7891
7892 2004-05-03 Joel Brobecker <brobecker@gnat.com>
7893
7894 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
7895 failure detected by recent versions of GCC.
7896 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
7897 to be consistent with the usage in dwarf2_create_include_psymtab.
7898
7899 2004-05-03 Michael Snyder <msnyder@redhat.com>
7900
7901 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
7902 (heuristic_proc_start): Whitespace cleanup.
7903
7904 2004-05-04 Mark Kettenis <kettenis@gnu.org>
7905
7906 * sun3-nat.c: Remove file.
7907 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
7908 dependencies.
7909 (ALLDEPFILES): Remove sun3-nat.c.
7910 (sun3-nat.o): Remove dependencies.
7911
7912 * i386-interix-nat.c, i386-interix-tdep.c,
7913 config/i386/nm-interix.h, config/i386/interix.mh,
7914 config/i386/interix.mt: Remove files.
7915 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
7916 dependencies.
7917
7918 2004-05-03 Mark Kettenis <kettenis@gnu.org>
7919
7920 * m68k-tdep.h (struct gdbarch_tdep): Add member
7921 struct_value_regnum.
7922 (m68k_svr4_init_abi): New prototype.
7923 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
7924 different calling conventions.
7925 (m68k_extract_return_value): Remove code dealing with single-field
7926 structs.
7927 (m68k_store_return_value): Remove code dealing with single-field
7928 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
7929 (m68k_extract_struct_value_address): Remove function.
7930 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
7931 (m68k_reg_struct_return_p, m68k_return_value)
7932 (m68k_svr4_return_value): New functions.
7933 (m68k_use_struct_convention): Remove function.
7934 (m68k_push_dummy_call): Use new struct_value_regnum member of
7935 `struct gdbarch_tdep' instead of hardcoded register number to
7936 store STRUCT_ADDR.
7937 (m68k_svr4_init_abi): New function.
7938 (m68k_gdbarch_init): Don't set extract_return_value,
7939 store_return_values, deprecated_extract_struct_value_address and
7940 use_struct_convention. Set return_value instead. Initialize new
7941 struct_value_regnum member of `struct gdbarch_tdep'.
7942 * m68klinux-tdep.c: Update copyright year.
7943 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
7944 (m68k_linux_extract_struct_value_address): Remove function.
7945 (m68k_linux_init_abi): Don't set extract_return_value,
7946 store_return_values, deprecated_extract_struct_value_address and
7947 use_struct_convention. Call m68k_svr4_init_abi but override the
7948 new struct_value_regnum member of `struct gdbarch_tdep'.
7949 * Makefile.in (m68k-tdep.o): Update dependencies.
7950
7951 2004-05-03 J. Brobecker <brobecker@gnat.com>
7952
7953 * dwarf2read.c (line_header): Add new included_p field in
7954 field file_names.
7955 (partial_die_info): New field has_stmt_list. New field line_offset.
7956 (dwarf2_create_include_psymtab): New function.
7957 (dwarf2_build_include_psymtabs): New function.
7958 (add_file_name): Add forward declaration. Initialize new field.
7959 (dwarf_decode_lines): Add new parameter. Enhance this procedure
7960 to be able to determine the list of files included by the
7961 given unit, and build their associated psymtabs.
7962 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
7963 files as well.
7964 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
7965 (read_file_scope): Update call to dwarf_decode_lines.
7966 (read_partial_die): Handle DW_AT_stmt_list attributes.
7967
7968 2004-05-02 Michael Chastain <mec.gnu@mindspring.com>
7969
7970 Unfix PR gdb/1626.
7971 * configure.in: Revert special case for osf5.*.
7972 * configure: Regenerate.
7973
7974 2004-05-02 Jim Blandy <jimb@redhat.com>
7975
7976 Move the symbol-file-from-memory functions into their own file.
7977 * symfile-mem.c, symfile-mem.h: New files.
7978 * symfile.c (symbol_file_add_from_bfd): New function.
7979 (symbol_file_add): Call symbol_file_add_from_bfd.
7980 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
7981 Moved to symfile-mem.c.
7982 (_initialize_symfile): Move definition of
7983 add-symbol-file-from-memory command to symfile-mem.c.
7984 * symfile.h (symbol_file_add_from_bfd): New declaration.
7985 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
7986 * config/powerpc/linux.mt (TDEPFILES): Same.
7987 * Makefile.in (SFILES): Add symfile-mem.c.
7988 (symfile_mem_h): New variable.
7989 (HFILES_NO_SRCDIR): Add symfile-mem.h.
7990 (symfile-mem.o): New rule.
7991
7992 2004-05-01 Andrew Cagney <cagney@redhat.com>
7993
7994 * breakpoint.c (insert_bp_location): Use get_frame_id, and
7995 frame_find_by_id instead of frame_relative_level.
7996 (do_enable_breakpoint): Ditto.
7997 * thread.c: Update copyright.
7998 (info_threads_command): Ditto, simplify.
7999
8000 * frame.c (deprecated_generic_get_saved_register): Delete
8001 function, moved to "xstormy16-tdep.c".
8002 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
8003 deprecated_generic_get_saved_register from "frame.c".
8004 (xstormy16_frame_saved_register): Call
8005 xstormy16_get_saved_register.
8006 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
8007 static.
8008 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
8009 * frame.h (deprecated_generic_get_saved_register): Delete.
8010
8011 2004-05-01 Michael Chastain <mec.gnu@mindspring.com>
8012
8013 * dwarfread.c: Update documentation on the state of dwarf-1.
8014
8015 2004-05-01 Andrew Cagney <cagney@redhat.com>
8016
8017 * stack.c (select_frame_command): Delete call to
8018 frame_relative_level.
8019 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
8020 Delete #if0 code.
8021 (frame_info): Do not print FRAMELESS.
8022 (print_block_frame_labels): Replace DEPRECATED_STREQ.
8023 (catch_info): Delete #if0 code.
8024
8025 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
8026 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
8027 of frame_relative_level.
8028 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
8029 to SENTINEL_FRAME.
8030 * frame.h (enum frame_type): Add SENTINEL_FRAME.
8031 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
8032 frame_relative_level.
8033
8034 * frame.h (deprecated_set_frame_type): Delete declaration.
8035 * frame.c (deprecated_set_frame_type): Delete function, update
8036 comments.
8037
8038 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
8039 * gdbarch.h, gdbarch.c: Re-generate.
8040 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
8041 (shnbsd_pc_in_sigtramp): Delete.
8042 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
8043 pc_in_sigtramp.
8044 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
8045 pc_in_sigtramp.
8046 * frame.h: Update comments.
8047 * ppc-linux-tdep.c: Update comments.
8048 * breakpoint.c (bpstat_what): Update comments.
8049
8050 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
8051 m68klinux-tdep.o's dependencies, were previously added to
8052 m68klinux-nat.o.
8053
8054 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
8055 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
8056 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
8057 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
8058 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
8059
8060 * Makefile.in (m68klinux-nat.o): Update dependencies.
8061 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8062 (m68k_linux_sigtramp_frame_cache)
8063 (m68k_linux_sigtramp_frame_this_id)
8064 (m68k_linux_sigtramp_frame_prev_register)
8065 (m68k_linux_sigtramp_frame_unwind)
8066 (m68k_linux_sigtramp_frame_sniffer)
8067 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
8068 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
8069 names, use trad-frame.h.
8070 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
8071 (struct m68k_sigtramp_info): Delete.
8072 * m68k-tdep.c (m68k_sigtramp_frame_cache)
8073 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
8074 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
8075 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
8076 "m68klinux-tdep.c".
8077
8078 * infrun.c (check_sigtramp2): Delete check for
8079 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
8080
8081 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8082
8083 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
8084
8085 2004-05-01 Andrew Cagney <cagney@redhat.com>
8086
8087 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8088 (frv_linux_sigtramp_frame_cache)
8089 (frv_linux_sigtramp_frame_this_id)
8090 (frv_linux_sigtramp_frame_prev_register)
8091 (frv_linux_sigtramp_frame_unwind)
8092 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
8093 include "linux" in function and variable names, directly call
8094 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
8095 the latest trad-frame code.
8096 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
8097 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
8098 * Makefile.in (frv-linux-tdep.o): Update dependencies.
8099 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
8100 * frv-tdep.c (frv_sigtramp_frame_cache)
8101 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
8102 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
8103 frv-linux-tdep.c.
8104 (frv_gdbarch_init): Do not append a sigtramp sniffer.
8105 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
8106 (frv_set_sigcontext_reg_addr): Delete function.
8107
8108 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
8109 (DEPRECATED_SIGTRAMP_END): Delete.
8110 * gdbarch.h, gdbarch.c: Re-generate.
8111 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
8112 * config/vax/tm-vaxbsd.h: Update copyright.
8113 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8114 (DEPRECATED_IN_SIGTRAMP): Define.
8115 * config/m68k/tm-nbsd.h: Update copyright.
8116 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8117 (DEPRECATED_IN_SIGTRAMP): Define.
8118
8119 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8120
8121 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
8122 encondings. Fixes PR gdb/1628.
8123
8124 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
8125 DW_CFA_restore state without a matching DW_CFA_remember_state
8126 instead of aborting. Fixes PR backtrace/1589.
8127
8128 2004-04-30 Joel Brobecker <brobecker@gnat.com>
8129
8130 * MAINTAINERS: Add self as AIX maintainer.
8131 Update my e-mail address in write-after-approval section.
8132
8133 2004-04-30 Andrew Cagney <cagney@redhat.com>
8134
8135 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
8136 (legacy_get_prev_frame): Ditto.
8137
8138 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
8139 (mips_gdbarch_init): Do not set pc_in_sigtramp.
8140 * mipsread.c (sigtramp_address): Delete extern variable.
8141 (mipscoff_new_init): Delete reference.
8142 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
8143 (fixup_sigtramp): Delete function.
8144 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
8145 (fixup_sigtramp): Delete declarations.
8146
8147 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
8148 deprecated_pc_in_sigtramp.
8149 (ppcnbsd_pc_in_sigtramp): Delete function.
8150
8151 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8152
8153 * config/m68k/nm-nbsd.h: Tweak comments.
8154 * config/m68k/nm-nbsdaout.h: Likewise.
8155
8156 2004-04-30 Andrew Cagney <cagney@redhat.com>
8157
8158 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
8159 legacy_pc_in_sigtramp.
8160 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
8161
8162 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8163
8164 Add OpenBSD/m68k support.
8165 * NEWS (New native configurations): Mention OpenBSD/m68k.
8166 * m68kbsd-tdep.c: New file.
8167 * m68kbsd-nat.c: New file.
8168 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
8169 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
8170 * configure.host: Add m68k-*-openbsd.
8171 * configure.tgt: Add m68k-*-openbsd.
8172 * config/m68k/tm-obsd.h: New file.
8173 * config/m68k/obsd.mt: New file.
8174 * config/m68k/obsd.mh: New file.
8175 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
8176 m68kbsd-tdep.c.
8177
8178 2004-04-30 Andrew Cagney <cagney@redhat.com>
8179
8180 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
8181 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
8182
8183 2004-04-30 Mark Kettenis <kettenis@gnu.org>
8184
8185 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
8186 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
8187
8188 2004-04-30 Brian Ford <ford@vss.fsi.com>
8189
8190 Revert 2004-04-16 change.
8191 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
8192 (i386_coff_init_abi): Remove.
8193 * i386-tdep.h (i386_coff_init_abi): Remove.
8194 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
8195
8196 2004-04-30 Andrew Cagney <cagney@redhat.com>
8197
8198 * blockframe.c (find_pc_partial_function): Delete use of
8199 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
8200 DEPRECATED_SIGTRAMP_END.
8201
8202 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
8203 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
8204 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
8205 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
8206 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
8207
8208 * defs.h (deprecated_inside_entry_file): Delete declaration.
8209 * blockframe.c (deprecated_inside_entry_file): Delete function.
8210 (legacy_frame_chain_valid): Delete call.
8211 * sh64-tdep.c (sh64_frame_chain): Delete call.
8212 * objfiles.h: Update comments.
8213 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
8214 call.
8215 * frame.c (get_prev_frame): Delete call, update comments.
8216
8217 2004-04-30 Brian Ford <ford@vss.fsi.com>
8218
8219 * MAINTAINERS (Write After Approval): Add myself.
8220
8221 2004-04-30 Andrew Cagney <cagney@redhat.com>
8222
8223 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
8224 * gdbarch.h, gdbarch.c: Re-generate.
8225 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
8226 code.
8227
8228 2004-04-30 Andrew Cagney <cagney@redhat.com>
8229
8230 * gdb-events.sh (selected_thread_changed)
8231 (selected_frame_level_changed, target_changed): Delete.
8232 * gdb-events.h, gdb-events.c: Re-generate.
8233 * valops.c (value_assign): Update.
8234 * stack.c (select_frame_command, up_silently_base)
8235 (down_silently_base): Update.
8236
8237 2004-04-29 Andrew Cagney <cagney@redhat.com>
8238
8239 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
8240 registers correctly.
8241 (print_gp_register_row, mips32_heuristic_proc_desc)
8242 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
8243 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
8244 references to mips_isa_regsize.
8245
8246 2004-04-29 Andrew Cagney <cagney@redhat.com>
8247
8248 * mips-tdep.c (struct gdbarch_tdep): Delete
8249 mips_fp_register_double.
8250 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
8251 mips_abi_regsize.
8252 (mips_gdbarch_init): Do not set mips_fp_register_double.
8253 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
8254
8255 2004-04-29 Joel Brobecker <brobecker@gnat.com>
8256
8257 Committed by Andrew Cagney.
8258 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
8259 function calls.
8260
8261 2004-04-29 Andrew Cagney <cagney@redhat.com>
8262
8263 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
8264 gdbarch, use mips_abi, update callers.
8265 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
8266 mips_abi_regsize, update callers.
8267 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
8268 mips_default_abi_regsize.
8269 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
8270 mips_default_abi_regsize.
8271
8272 2004-04-29 Andrew Cagney <cagney@redhat.com>
8273
8274 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
8275 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
8276 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
8277 mips_default_abi_regsize.
8278 (mips_isa_regsize): Rename mips_regisze.
8279 * mipsnbsd-tdep.c: Update.
8280 * mips-linux-tdep.c: Update.
8281 * irix5-nat.c: Update.
8282 * mips-tdep.h (mips_isa_regsize): Update.
8283
8284 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
8285 Delete all disabled code.
8286 * gdb-events.h, gdb-events.c: Re-generate.
8287
8288 2004-04-19 Jerome Guitton <guitton@gnat.com>
8289 Mark Kettenis <kettenis@gnu.org>
8290
8291 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
8292 the function begins with a branch instruction.
8293
8294 2004-04-29 Mark Kettenis <kettenis@gnu.org>
8295
8296 * i386-tdep.c: Fix spelling mistakes.
8297
8298 2004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8299 Andrew Cagney <cagney@redhat.com>
8300
8301 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
8302 <sys/proc.h>.
8303 * acconfig.h: Provide default _KMEMUSER value.
8304 * config.in, configure: Re-generate.
8305 * NEWS: Mention fix.
8306
8307 2004-04-24 Randolph Chung <tausq@debian.org>
8308
8309 * configure.host (hppa*-*-linux*): New target.
8310 * configure.tgt (hppa*-*-linux*): Likewise.
8311 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
8312 gdbarch_init_osabi() call earlier so that osabi-specific frame
8313 unwinders can be registered first.
8314 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
8315 hppa-linux-nat.c.
8316 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
8317 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
8318 * config/pa/linux.mh: New file.
8319 * config/pa/linux.mt: New file.
8320 * config/pa/nm-linux.h: New file.
8321 * config/pa/xm-linux.h: New file.
8322 * hppa-linux-nat.c: New file.
8323 * hppa-linux-tdep.c: New file.
8324
8325 2004-04-28 Randolph Chung <tausq@debian.org>
8326
8327 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
8328 return values.
8329 (hppa32_push_dummy_call): Fix small struct and floating point argument
8330 passing, and make sure the stack frame is properly aligned.
8331
8332 2004-04-28 Andrew Cagney <cagney@redhat.com>
8333
8334 * stack.c (print_stack_frame): Fix description.
8335
8336 * NEWS: Mention gdb/gdbserver/configure execute permission
8337 changed. PR server/519.
8338
8339 2004-04-28 Andrew Cagney <cagney@redhat.com>
8340
8341 * stack.c (print_stack_frame_stub): Delete declaration.
8342 (struct print_stack_frame_args, print_stack_frame)
8343 (print_frame_info, print_frame): Replace "source" with print what.
8344 Replace "print" with "print_level". Replace "args" with
8345 "print_args".
8346 * frame.h (show_and_print_stack_frame, print_stack_frame)
8347 (print_frame_info): Update declarations.
8348 * stack.c (select_and_print_frame, frame_command)
8349 (current_frame_command, up_command, down_command): Update calls -
8350 use get_selected_frame, pass "enum print_what" for source, do not
8351 call frame_relative_level.
8352 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
8353 * remote-rdp.c (remote_rdp_open): Ditto.
8354 * remote-mips.c (common_open): Ditto.
8355 * remote-e7000.c (e7000_start_remote): Ditto.
8356 * ocd.c (ocd_start_remote): Ditto.
8357 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
8358 * infrun.c (normal_stop): Ditto.
8359 * inflow.c (kill_command): Ditto.
8360 * infcmd.c (finish_command): Ditto.
8361 * corelow.c (core_open): Ditto.
8362 * tracepoint.c (finish_tfind_command): Ditto.
8363 * thread.c (info_threads_command, info_threads_command)
8364 (restore_current_thread, do_captured_thread_select): Ditto.
8365 * ada-tasks.c (task_command): Ditto.
8366
8367 2004-04-26 Orjan Friberg <orjanf@axis.com>
8368
8369 * frame.c: Include "observer.h".
8370 (frame_observer_target_changed): New function.
8371 (_initialize_frame): Attach target_changed observer.
8372 * regcache.c: Include "observer.h".
8373 (regcache_observer_target_changed): New function.
8374 (_initialize_regcache): Attach target_changed observer.
8375 * valops.c: Include "observer.h".
8376 (value_assign): Notify target_changed event when modifying register.
8377 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
8378
8379 2004-04-26 Orjan Friberg <orjanf@axis.com>
8380
8381 From Paul Koning <pkoning@equallogic.com>:
8382 * breakpoint.c (free_valchain): New function.
8383 (insert_bp_location, delete_breakpoint): Use free_valchain.
8384 (remove_breakpoint): Do not remove the valchain.
8385 (bpstat_stop_status): If not stopped by watchpoint, skip
8386 watchpoints when generating stop status list.
8387 * infrun.c (handle_inferior_event): Make
8388 stepped_after_stopped_by_watchpoint a global variable.
8389 * remote.c (remote_stopped_data_address): Return watch data
8390 address rather than zero if stepped_after_stopped_by_watchpoint is
8391 set.
8392
8393 2004-04-25 Michael Chastain <mec.gnu@mindspring.com>
8394
8395 Fix PR gdb/1626.
8396 * configure.in: Check for curses after termcap.
8397 On osf5.*, do not check for ncurses.
8398 * configure: Regenerate.
8399
8400 2004-04-25 Mark Kettenis <kettenis@gnu.org>
8401
8402 * ppcobsd-nat.c: Include "ppc-tdep.h".
8403 * Makefile.in (ppcobsd-nat.o): Update dependencies.
8404
8405 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
8406 Fixes PR tdep/1623 and PR tdep/1624.
8407
8408 2004-04-24 Michael Chastain <mec.gnu@mindspring.com>
8409
8410 * xmodem.h, xmodem.c: Remove files.
8411 * Makefile.in: Remove references to xmodem.h, xmodem.c.
8412
8413 2004-04-23 Randolph Chung <tausq@debian.org>
8414
8415 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
8416 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
8417 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
8418 for handling stackless frames.
8419 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
8420
8421 2004-04-23 Randolph Chung <tausq@debian.org>
8422
8423 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
8424 starts at a pc before the frame is created.
8425
8426 2004-04-23 Joel Brobecker <brobecker@gnat.com>
8427
8428 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
8429
8430 2004-04-23 Jerome Guitton <guitton@gnat.com>
8431
8432 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
8433 use convert_typed_floating to get the appropriate format.
8434
8435 2004-04-22 Randolph Chung <tausq@debian.org>
8436
8437 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
8438 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
8439 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
8440 (hppa_sign_extend): Add prototype.
8441 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
8442 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
8443 (sign_extend): Rename with hppa_ prefix and make non-static. Other
8444 hppa targets will also use these functions.
8445 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
8446 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
8447 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
8448 (hppa_gdbarch_init): Remove gdbarch setting of
8449 skip_trampoline_code, in_solib_call_trampoline and
8450 in_solib_return_trampoline.
8451 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
8452 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
8453 hppa_in_solib_call_trampoline.
8454 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
8455 Moved from hppa-tdep.c.
8456 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
8457 in_solib_call_trampoline and in_solib_return_trampoline.
8458
8459 2004-04-22 Randolph Chung <tausq@debian.org>
8460
8461 * hppa-tdep.c (hppa_debug): New variable.
8462 (find_unwind_entry, hppa_frame_cache): Add debug output.
8463 (_initialize_hppa_tdep): Add command to set debug flag.
8464
8465 2004-04-22 Andrew Cagney <cagney@redhat.com>
8466
8467 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
8468 "trad-frame.h".
8469 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
8470 signal trampoline unwinder.
8471 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
8472
8473 2004-04-22 Mark Kettenis <kettenis@gnu.org>
8474
8475 Add OpenBSD/powerpc support.
8476 * NEWS (New native configurations): Mention OpenBSD/powerpc.
8477 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
8478 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
8479 (ppc_collect_fpregset): New prototypes.
8480 * ppcobsd-nat.c: New file.
8481 * ppcobsd-tdep.c: New file.
8482 * ppcobsd-tdep.h: New file.
8483 * rs6000-tdep.c: Include "regset.h".
8484 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
8485 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
8486 New functions.
8487 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
8488 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
8489 (rs6000-tdep.o): Update dependencies.
8490 * configure.host: Add powerpc-*-openbsd.
8491 * configure.tgt: Add powerpc-*-openbsd.
8492 * config/powerpc/obsd.mh: New file.
8493 * config/powerpc/nm-obsd.h: New file.
8494 * config/powerpc/obsd.mt: New file.
8495
8496 2004-04-22 Andrew Cagney <cagney@redhat.com>
8497
8498 * frame.h (show_frame_info): Delete declaration.
8499
8500 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
8501 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
8502 * m32r-tdep.c (m32r_frame_this_id): Ditto.
8503 * frv-tdep.c (frv_frame_this_id): Ditto.
8504 * avr-tdep.c (avr_frame_this_id): Ditto.
8505
8506 2004-04-22 Elena Zannoni <ezannoni@redhat.com>
8507
8508 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
8509
8510 2004-04-22 Jim Blandy <jimb@redhat.com>
8511
8512 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
8513 register number zero.
8514
8515 2004-04-21 Michael Snyder <msnyder@redhat.com>
8516
8517 * mips-tdep.c (heuristic_proc_start):
8518 Warning() already prefixes "Warning: ".
8519
8520 2004-04-21 Andrew Cagney <cagney@redhat.com>
8521
8522 * annotate.h (deprecated_annotate_starting_hook)
8523 (deprecated_annotate_stopped_hook)
8524 (deprecated_annotate_exited_hook)
8525 (deprecated_annotate_signal_hook)
8526 (deprecated_annotate_signalled_hook): Deprecate.
8527 * tracepoint.h (deprecated_create_tracepoint_hook)
8528 (deprecated_delete_tracepoint_hook)
8529 (deprecated_modify_tracepoint_hook)
8530 (deprecated_trace_find_hook)
8531 (deprecated_trace_start_stop_hook): Deprecate.
8532 * target.h (deprecated_target_new_objfile_hook): Deprecate.
8533 * remote.h (deprecated_target_resume_hook)
8534 (deprecated_target_wait_loop_hook): Deprecate.
8535 * gdbcore.h (deprecated_exec_file_display_hook)
8536 (deprecated_file_changed_hook): Deprecate.
8537 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
8538 * defs.h (deprecated_modify_breakpoint_hook)
8539 (deprecated_command_loop_hook, deprecated_show_load_progress)
8540 (deprecated_print_frame_info_listing_hook)
8541 (deprecated_query_hook, deprecated_warning_hook)
8542 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
8543 (deprecated_delete_breakpoint_hook)
8544 (deprecated_interactive_hook, deprecated_registers_changed_hook)
8545 (deprecated_readline_begin_hook, deprecated_readline_hook)
8546 (deprecated_readline_end_hook, deprecated_register_changed_hook)
8547 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
8548 (deprecated_context_hook, deprecated_target_wait_hook)
8549 (deprecated_attach_hook, deprecated_detach_hook)
8550 (deprecated_call_command_hook, deprecated_set_hook)
8551 (deprecated_error_hook, deprecated_error_begin_hook)
8552 (deprecated_ui_load_progress_hook): Deprecate.
8553 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
8554 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
8555 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
8556 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
8557 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
8558 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
8559 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
8560 * annotate.c, aix-thread.c: Update.
8561
8562 2004-04-21 Andrew Cagney <cagney@redhat.com>
8563
8564 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
8565 * vaxnbsd-tdep.c: Include "gdb_string.h".
8566
8567 * symfile.c (symbol_file_add_from_memory): #if 0 function.
8568 (add_symbol_file_from_memory_command): #if 0 function body, call
8569 error instead.
8570
8571 2004-04-21 Andrew Cagney <cagney@redhat.com>
8572
8573 * gdbcore.h: Update copyright.
8574 (deprecated_add_core_fns): Rename add_core_fns.
8575 * win32-nat.c (_initialize_core_win32): Update.
8576 * sun3-nat.c (_initialize_core_sun3): Update.
8577 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
8578 * rs6000-nat.c (_initialize_core_rs6000): Update.
8579 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
8580 * nto-tdep.c (_initialize_nto_tdep): Update.
8581 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
8582 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
8583 * mips-nat.c (_initialize_core_mips): Update.
8584 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
8585 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
8586 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
8587 * lynx-nat.c (_initialize_core_lynx): Update.
8588 * irix5-nat.c (_initialize_core_irix5): Update.
8589 * i386-interix-nat.c (_initialize_core_interix): Update.
8590 * cris-tdep.c (_initialize_cris_tdep): Update.
8591 * corelow.c (deprecated_add_core_fns): Update.
8592 * core-regset.c (_initialize_core_regset): Update.
8593 * core-aout.c (_initialize_core_aout): Update.
8594 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
8595 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
8596 * alpha-nat.c (_initialize_core_alpha): Update.
8597
8598 2004-04-21 Jim Blandy <jimb@redhat.com>
8599
8600 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
8601
8602 2004-04-19 Daniel Jacobowitz <drow@mvista.com>
8603
8604 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
8605 Delete.
8606 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
8607 (read_attribute_value): Update calls to dwarf_alloc_block.
8608 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
8609 dwarf2_tmp_obstack.
8610 (psymtab_to_symtab_1): Likewise. Clean up using
8611 free_stack_comp_unit.
8612 (add_to_cu_func_list): Use the comp_unit_obstack.
8613
8614 2004-04-19 Joel Brobecker <brobecker@gnat.com>
8615
8616 * dwarf2read.c (dwarf2_flag_true_p): New function.
8617 (die_is_declaration): Use the function above. Add some comments.
8618
8619 2004-04-19 Mark Kettenis <kettenis@gnu.org>
8620
8621 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
8622 architecture when registering sparcnbsd_core_osabi_sniffer.
8623 Adjust comment.
8624
8625 2004-04-18 Mark Kettenis <kettenis@gnu.org>
8626
8627 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
8628 return value.
8629
8630 Based on a patch from Brian Ford <ford@vss.fsi.com>:
8631 * i386-tdep.c: Correct register numbering scheme comments
8632 throughout.
8633 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
8634 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
8635 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
8636 (i386_gdb_arch_init): Likewise.
8637
8638 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
8639 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
8640 ppcnbsd-tdep.o.
8641
8642 * m68k-tdep.h: Tweak comments.
8643 * m68k-tdep.c: Tweak comment.
8644
8645 2004-04-17 Randolph Chung <tausq@debian.org>
8646
8647 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
8648 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
8649 (hppa_hpux_som_init_abi): Set is_elf to 0.
8650 (hppa_hpux_elf_init_abi): Set is_elf to 1.
8651 * hppa-tdep.c (low_text_segment_address): Remove global.
8652 (record_text_segment_lowaddr): Pass in low address as parameter. Use
8653 section offset to calculate segment address.
8654 (internalize_unwinds): Define low_text_segment_address as local and
8655 pass to record_text_segment_lowaddr for ELF targets.
8656 (hppa_gdbarch_init): Zero fill tdep structure.
8657 (hppa_dump_tdep): Print tdep structure.
8658 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
8659
8660 2004-04-17 Randolph Chung <tausq@debian.org>
8661
8662 * hppa-tdep.c (hppa_pseudo_register_read): Define.
8663 (hppa_gdbarch_init): Set pseudo_register_read.
8664 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
8665 * regcache.c (supply_register): Remove check for
8666 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
8667
8668 2004-04-17 Randolph Chung <tausq@debian.org>
8669
8670 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
8671 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
8672 (hpread_adjust_stack_address): Move to hpread.c.
8673 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
8674 obj_private_struct): Move from tm-hppa.h.
8675 * hpread.c (hppa-tdep.h): Include.
8676 (hpread_adjust_stack_address): Move from hppa-tdep.c.
8677 (hpread_read_function_type, hpread_read_doc_function_type)
8678 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
8679 directly.
8680 * pa64solib.c (hppa-tdep.h): Include.
8681 * somsolib.c (hppa-tdep.h): Include.
8682 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
8683 inferior_status): Remove unused forward declarations.
8684 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
8685 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
8686 obj_private_struct): Move to hppa-tdep.h.
8687 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
8688
8689 2004-04-17 Randolph Chung <tausq@debian.org>
8690
8691 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
8692 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
8693 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
8694 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
8695 Remove forward declaration and make static.
8696 (hppa_reg_struct_has_addr): Remove.
8697
8698 2004-04-16 Joel Brobecker <brobecker@gnat.com>
8699
8700 * observer.sh: Move comments in sed command to first column.
8701
8702 2004-04-16 Jason Molenda (jmolenda@apple.com)
8703
8704 * frame.c: Minor typeo corrections in comments.
8705
8706 2004-04-16 Joel Brobecker <brobecker@gnat.com>
8707
8708 * observer.c (observer_test_first_notification_function): Update
8709 function profile.
8710 (observer_test_second_notification_function): Likewise.
8711 (observer_test_third_notification_function): Likewise.
8712
8713 2004-04-16 Mark Kettenis <kettenis@gnu.org>
8714
8715 From Brian Ford <ford@vss.fsi.com>:
8716 * i386-tdep.c (i386_coff_init_abi): New function.
8717 * i386-tdep.h (i386_coff_init_abi): New prototype.
8718 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
8719 register number translation functions for DWARF and DWARF 2.
8720
8721 2004-04-16 Joel Brobecker <brobecker@gnat.com>
8722
8723 * dwarf2read.c: Back out my previous change, it was incorrect.
8724
8725 2004-04-16 Daniel Jacobowitz <drow@mvista.com>
8726
8727 * dwarf2read.c: Include "hashtab.h".
8728 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
8729 has_namespace_info.
8730 (struct partial_die_info): Add comments. Use bitfields to reduce
8731 memory footprint. Add scope, scope_set, has_specification,
8732 spec_offset, die_parent, die_child, and die_sibling.
8733 (peek_die_abbrev): Add prototype.
8734 (partial_read_comp_unit_head): New function, broken out from
8735 dwarf2_build_psymtabs_hard.
8736 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
8737 Use partial_read_comp_unit_head. Initialize the CU and
8738 comp_unit_obstack. Update calls to read_partial_die and
8739 scan_partial_symbols. Use free_stack_comp_unit and
8740 load_partial_dies.
8741 (scan_partial_symbols): Change PDI to a pointer. Use the child and
8742 sibling pointers to walk partial DIEs. Call fixup_partial_die.
8743 Update calls to helper functions. Remove NAMESPACE argument.
8744 Update comments.
8745 (partial_die_parent_scope, partial_die_full_name): New functions.
8746 (add_partial_symbol): Remove namespace argument. Update call to
8747 pdi_needs_namespace. Use partial_die_full_name. Handle
8748 DW_TAG_namespace. Check has_namespace_info flag.
8749 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
8750 tag. Handle namespaces.
8751 (add_partial_namespace, add_partial_enumeration): Simplify.
8752 (guess_structure_name): New function, derived from
8753 add_partial_structure.
8754 (add_partial_structure): Remove.
8755 (determine_class_name): Update comment.
8756 (dwarf2_read_abbrevs): Set has_namespace_info flag.
8757 (is_type_tag_for_partial, load_partial_dies): New functions.
8758 (read_partial_die): Pass abbrev and abbrev_len as arguments.
8759 Record specifications instead of following them immediately.
8760 (find_partial_die_in_comp_unit, find_partial_die)
8761 (fixup_partial_die, free_stack_comp_unit)
8762 (hashtab_obstack_allocate, dummy_obstack_deallocate)
8763 (partial_die_hash, partial_die_eq): New functions.
8764 * Makefile.in (hashtab_h): Define.
8765 (dwarf2read.o): Update dependencies.
8766 (observer_inc, observer_h): Move to the correct section.
8767
8768 2004-04-15 Joel Brobecker <brobecker@gnat.com>
8769
8770 * dwarf2read.c (dwarf2_attribute_true_p): New function.
8771 (die_is_declaration): Use the function above. Add comment.
8772
8773 2004-04-15 Joel Brobecker <brobecker@gnat.com>
8774
8775 * dwarf2read.c (read_structure_scope): Identify stub types
8776 using die_is_declaration() only.
8777
8778 2004-04-15 Roland McGrath <roland@redhat.com>
8779
8780 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
8781 argument instead of NAME.
8782 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
8783 in call to symbol_file_add_with_addrs_or_offsets.
8784 (build_addr_info): New function, helper for ...
8785 (symbol_file_add_from_memory): New function.
8786 (add_symbol_file_from_memory_command): New function using that.
8787 (_initialize_symfile): Register it for add-symbol-file-from-memory.
8788 (pre_add_symbol_hook): Add const to argument type.
8789 * symfile.h (symbol_file_add_from_memory): Declare it.
8790
8791 2004-04-15 Mark Kettenis <kettenis@gnu.org>
8792
8793 * NEWS (New native configurations): Mention OpenBSD/vax.
8794 * configure.host: Add vax-*-openbsd*.
8795 * config/vax/obsd.mh: New file.
8796 * config/vax/nm-obsd.h: New file.
8797
8798 * vax-tdep.c: Include "regset.h".
8799 (vax_supply_gregset): New function.
8800 (vax_gregset): New variable.
8801 (vax_regset_from_core_section): New function.
8802 (vax_gdbarch_init): Set regset_from_core_section.
8803 * Makefile.in (vax-tdep.o): Update dependencies.
8804
8805 2004-04-15 Andrew Cagney <cagney@redhat.com>
8806
8807 * observer.c (normal_stop_subject, observer_notify_normal_stop)
8808 (observer_normal_stop_notification_stub)
8809 (observer_attach_normal_stop, observer_detach_normal_stop):
8810 Delete, replaced by #include "observer.inc".
8811 * infrun.c (normal_stop): Pass "stop_bpstat" to
8812 observer_notify_normal_stop.
8813 * Makefile.in (observer_inc): Define.
8814 (observer.o): Update dependencies.
8815 (observer.h, observer.inc): New rules.
8816 * observer.h: Delete file.
8817 * observer.sh: New file.
8818
8819 2004-04-15 Mark Kettenis <kettenis@gnu.org>
8820
8821 * vax-tdep.c (vax_frame_cache): Fix typo.
8822
8823 2004-04-14 Mark Kettenis <kettenis@gnu.org>
8824
8825 * NEWS (New native configurations): Mention NetBSD/vax.
8826 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
8827 * config/vax/nbsdelf.mh: New file.
8828 * config/vax/nbsdaout.mh: New file.
8829 * config/vax/nm-nbsd.h: New file.
8830 * config/vax/nm-nbsdaout.h: New file.
8831
8832 * vaxnbsd-tdep.c: New file.
8833 * Makefile.in (vaxnbsd-tdep.o): New dependency.
8834 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
8835 * config/vax/nbsd.mt: New file.
8836 * config/vax/tm-nbsd.h: New file.
8837
8838 * Makefile.in (vaxbsd-nat.o): New dependency.
8839
8840 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
8841 * vax-tdep.c (vax_store_arguments): Remove struct_return and
8842 struct_addr arguments. Don't push return value address.
8843 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
8844 arguments to vax_store_arguments. Store return value address in
8845 R1.
8846 (vax_store_struct_return, vax_extract_return_value)
8847 (vax_store_return_value): Remove functions.
8848 (vax_return_value): New function.
8849 (vax_gdbarch_init): Set return value. Don't set
8850 deprecated_store_struct_return, deprecated_extract_struct_return
8851 and deprecated_store_return_value.
8852
8853 2004-04-14 Andreas Schwab <schwab@suse.de>
8854
8855 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
8856 value buffer.
8857 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
8858
8859 2004-04-14 Mark Kettenis <kettenis@gnu.org>
8860
8861 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
8862 (vax_unwind_dummy_id): New functions.
8863 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
8864 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
8865 variables.
8866 (vax_fix_call_dummy): Remove function.
8867 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
8868 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
8869 call_dummy_location, deprecated_call_dummy_words,
8870 deprecated_sizeof_call_dummy_words,
8871 deprecated_call_dummy_breakpoint_offset,
8872 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
8873 and deprecated_dummy_write_sp.
8874
8875 2004-04-13 David Carlton <carlton@kealia.com>
8876
8877 * MAINTAINERS: Move myself to "paper trail" section.
8878
8879 2004-04-12 Mark Kettenis <kettenis@gnu.org>
8880
8881 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
8882 "trad-frame.h".
8883 (vax_frame_init_saved_regs): Remove function.
8884 (vax_sigtramp_saved_pc): Remove function.
8885 (vax_frame_saved_pc): Remove function.
8886 (vax_frame_args_address): Remove function.
8887 (vax_frame_num_args): Rewrite.
8888 (vax_frame_chain): Remove function.
8889 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
8890 VAX_FP_REGNUM.
8891 (vax_pop_frame): Likewise.
8892 (vax_saved_pc_after_call): Remove function.
8893 (struct vax_frame_cache): New structure.
8894 (vax_frame_cache): New function.
8895 (vax_frame_this_id): New function.
8896 (vax_frame_prev_register): New function.
8897 (vax_frame_unwind): New variable.
8898 (vax_frame_sniffer): New function.
8899 (vax_frame_base_address): New function.
8900 (vax_frame_args_address): New function.
8901 (vax_frame_base): New variable.
8902 (vax_unwind_pc): New function.
8903 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
8904 deprecated_fp_regnum, deprecated_saved_pc_after_call,
8905 deprecated_frame_chain, deprecated_frame_saved_pc,
8906 deprecated_frame_args_address and
8907 deprecated_frame_init_saved_regs.
8908 * Makefile.in (vax-tdep.o): Update dependencies.
8909
8910 * vaxbsd-nat.c: New file.
8911
8912 * vax-tdep.h: Update copyright year. Adjust comments.
8913 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
8914 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
8915 (vax_regnum): New enum. Replacing...
8916 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
8917 (VAX_PS_REGNUM): ... these removed macros.
8918 * vax-tdep.c (vax_register_name): Remove prototype.
8919 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
8920 (vax_register_byte, vax_register_raw_size,
8921 vax_register_virtual_size, vax_register_virtual_type): Remove
8922 functions.
8923 (vax_register_type): New function.
8924 (vax_breakpoint_from_pc): Reorganize.
8925 (vax_gdbarch_init): Set register_type. Don't set
8926 deprecated_register_size, deprecated_register_bytes,
8927 deprecated_register_byte, deprecated_register_raw_size,
8928 deprecated_max_register_raw_size,
8929 deprecated_register_virtual_size,
8930 deprecated_max_register_virtual_size and
8931 deprecated_register_virtual_type. Add comment on stack direction.
8932
8933 2004-04-11 Mark Kettenis <kettenis@gnu.org>
8934
8935 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
8936 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
8937 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
8938
8939 2004-04-10 Randolph Chung <tausq@debian.org>
8940
8941 * MAINTAINERS (write after approval): Add myself.
8942
8943 2004-04-07 Randolph Chung <tausq@debian.org>
8944
8945 * hppa-tdep.c (hppa_inner_than): Remove.
8946 (is_pa_2): Remove unused static variable.
8947 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
8948
8949 2004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
8950
8951 * language.h (language_defn): Add new la_post_parser field.
8952 * parser-defs.h (null_post_parser): New declaration (default for
8953 la_post_parser).
8954
8955 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
8956 insert call to that function.
8957 (parse_exp_in_context): New function, including code formerly in
8958 parse_exp_1. Calls language-dependent post-parser after
8959 prefixification.
8960 (parse_expression_in_context): New exported function.
8961 (null_post_parser): New definition.
8962 * expression.h (parse_expression_in_context): Add declaration.
8963
8964 * p-lang.c (pascal_language_defn): Add trivial post-parser.
8965 * c-lang.c (c_language_defn): Ditto.
8966 (cplus_language_defn): Ditto.
8967 (asm_language_defn): Ditto.
8968 (minimal_language_defn): Ditto.
8969 * f-lang.c (f_language_defn): Ditto.
8970 * jv-lang.c (java_language_defn): Ditto.
8971 * language.c (unknown_language_defn): Ditto.
8972 (auto_language_defn): Ditto.
8973 (local_language_defn): Ditto.
8974 * m2-lang.c (m2_language_defn): Ditto.
8975 * scm-lang.c (scm_language_defn): Ditto.
8976 * obj-lang.c (objc_language_defn): Ditto.
8977
8978 2004-04-10 Mark Kettenis <kettenis@gnu.org>
8979
8980 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
8981 (amd64nbsd_mcontext_addr): New function.
8982 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
8983 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
8984 with amd64nbsd_r_reg_offset, instead of building it on the fly.
8985
8986 * corelow.c (core_xfer_partial): Fix coding standards violation.
8987 Add support for TARGET_OBJECT_WCOOKIE.
8988
8989 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
8990 deprecated_pc_in_sigtramp.
8991 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
8992 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
8993 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
8994 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
8995 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
8996 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
8997 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
8998
8999 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
9000 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
9001 Fix typo.
9002
9003 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
9004 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
9005 (amd64_collect_fxsave): Likewise.
9006
9007 * i386-sol2-tdep.c: Include "gdb_string.h".
9008 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
9009 name.
9010 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
9011
9012 2004-04-10 Mark Kettenis <kettenis@gnu.org>
9013
9014 * i386-sol2-tdep.c: Include "solib-svr4.h".
9015 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9016 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
9017 * config/i386/tm-i386sol2.h: Include :solib.h".
9018 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
9019 solib-svr4.o and solib-legacy.o.
9020 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
9021 solib-svr4.o.
9022
9023 2004-04-09 Mark Kettenis <kettenis@gnu.org>
9024
9025 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
9026 whether a register is supplied by PTRACE_GETFPREGS.
9027 (store_inferior_registers): Likewise.
9028 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
9029 whether a register is supplied by PT_GETFPREGS.
9030 (store_inferior_registers): Likewise.
9031
9032 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
9033 * config/i386/linux64.mt (TDEPFILES): Likewise.
9034
9035 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
9036
9037 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
9038 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
9039 the program counter is in the range specified by `struct
9040 gdbarch_tdep'.
9041 * amd64-linux-tdep.c: Include "symtab.h".
9042 (amd64_linux_pc_in_sigtramp): Remove function.
9043 (amd64_linux_sigtramp_p): New function.
9044 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
9045 deprecated_pc_in_sigtramp.
9046 * amd64nbsd-tdep.c: Include "symtab.h".
9047 (amd64nbsd_sigtramp_p): New function.
9048 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
9049 deprecated_pc_in_sigtramp.
9050 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
9051 few comments.
9052 (amd64obsd_pc_in_sigtramp): Remove function.
9053 (amd64obsd_sigtramp_p): New function.
9054 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
9055 deprecated_pc_in_sigtramp.
9056 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
9057 (i386bsd_pc_ins_sigtramp): Remove prototype.
9058 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
9059 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
9060 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
9061 the program counter is in the range specified by `struct
9062 gdbarch_tdep'.
9063 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
9064 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
9065 (i386_go32_pc_in_sigtramp): Remove function.
9066 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
9067 Initialize TDEP->sigtramp_p.
9068 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
9069 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
9070 deprecated_pc_in_sigtramp.
9071 * i386-linux-tdep.c: Adjust comments.
9072 (i386_linux_pc_in_sigtramp): Remove function.
9073 (i386_linux_sigtramp_p): New function.
9074 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
9075 deprecated_pc_in_sigtramp.
9076 * i386-nto-tdep.c: Update copyright year.
9077 (i386nto_pc_in_sigtramp): Remove function.
9078 (i386nto_sigtramp_p): New function.
9079 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
9080 SP_REGNUM.
9081 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
9082 deprecated_pc_in_sigtramp.
9083 * i386-sol2-tdep.c: Update copyright year.
9084 (i386_sol2_pc_in_sigtramp): Remove function.
9085 (i386_sol2_sigtramp_p): New function.
9086 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
9087 deprecated_pc_in_sigtramp.
9088 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
9089 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
9090 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9091 deprecated_sigtramp_start and deprecated_sigtramp_end.
9092 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
9093 (i386nbsd_pc_in_sigtramp): Remove function.
9094 (i386nbsd_sigtramp_p): New function.
9095 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9096 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
9097 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
9098 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
9099 (i386obsd_pc_in_sigtramp): Remove function.
9100 (i386obsd_sigtramp_p): New function.
9101 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
9102 functions.
9103 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9104 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
9105 TDEP->sigtramp_p.
9106 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
9107 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
9108 dependencies.
9109
9110 * config/i386/i386aout.mt: Remove file.
9111
9112 * configure.tgt: Remove i[34567]86-*-go32*,
9113 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
9114 and i[34567]86-*-isc*. Set gdb_target to i386 for
9115 i[34567]86-*-netware* and i[34567]86-*-*.
9116 * config/i386/i386.mt: New file.
9117 * config/i386/embed.mt: Remove file.
9118 * config/i386/go32.mt: Remove file.
9119 * config/i386/i386nw.mt: Remove file.
9120 * config/i386/i386v.mt: Remove file.
9121 * config/i386/tm-go32.h: Remove file.
9122
9123 * tui/tui-hooks.c: Include "readline/readline.h" after
9124 "gdb_curses.h" instead of before.
9125 * tui/tui-io.c: Likewise.
9126
9127 * tui/tui.c: Fix typo in comment.
9128
9129 * sparc64-tdep.c (sparc_address_from_register): Remove function.
9130
9131 2004-04-08 Andrew Cagney <cagney@redhat.com>
9132
9133 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
9134 (deprecated_exception_support_initialized): Declare.
9135 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
9136 (initialize_hp_cxx_exception_support)
9137 (child_enable_exception_callback): Update.
9138 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
9139 (deprecated_exception_support_initialized): Rename
9140 deprecated_exception_catchpoints_are_fragile and
9141 deprecated_exception_support_initialized.
9142 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
9143
9144 * symtab.c (deprecated_hp_som_som_object_present): Rename
9145 hp_som_som_object_present.
9146 * symtab.h (deprecated_hp_som_som_object_present): Declare.
9147 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
9148 Update. Delete extern declaration.
9149 * valops.c (hp_som_som_object_present): Ditto.
9150 * parse.c (deprecated_hp_som_som_object_present)
9151 (parse_nested_classes_for_hpacc): Ditto.
9152 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
9153 * hppa-hpux-tdep.c (hp_som_som_object_present)
9154 (initialize_hp_cxx_exception_support): Ditto.
9155 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
9156 * cp-valprint.c (hp_som_som_object_present)
9157 (cp_print_class_method): Ditto.
9158 * c-typeprint.c (hp_som_som_object_present):
9159 (c_type_print_base): Ditto.
9160 * c-exp.y (hp_som_som_object_present): Ditto.
9161
9162 2004-04-08 Andrew Cagney <cagney@redhat.com>
9163
9164 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
9165 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
9166 (frame_unwind_find_by_frame): Re-implement the unwind code so
9167 that it can both prepend and append sniffers. Replace
9168 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
9169 * tramp-frame.c (tramp_frame_append): Use
9170 frame_unwind_prepend_unwinder.
9171 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
9172 frame_unwind_register_unwinder.
9173 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
9174 tramp_frame_append.
9175 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
9176 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
9177 (mips_linux_init_abi): Update.
9178
9179 2004-04-08 Kevin Buettner <kevinb@redhat.com>
9180
9181 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
9182 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
9183 file support.
9184
9185 2004-04-07 Kevin Buettner <kevinb@redhat.com>
9186
9187 * ia64-tdep.c (elf.h): Don't include.
9188 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
9189
9190 2004-04-07 Jason Molenda (jmolenda@apple.com)
9191
9192 * frame.h: Typeo corrections in comments.
9193
9194 2004-04-07 Jim Blandy <jimb@redhat.com>
9195
9196 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
9197 %esp and %ebp
9198
9199 2004-04-07 Mark Kettenis <kettenis@gnu.org>
9200
9201 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
9202 * config/sparc/linux64.mt (TDEPFILES): Likewise.
9203 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
9204 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
9205 and solib-legacy.o.
9206 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
9207 solib-svr4.o.
9208 * config/sparc/tm-sol2.h: Update copyright year. Include
9209 "solib.h".
9210
9211 * sparc-sol2-tdep.c: Update copyright year. Include
9212 "solib-svr4.h".
9213 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9214 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
9215 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9216 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
9217 dependencies.
9218
9219 2004-04-06 Andrew Cagney <cagney@redhat.com>
9220
9221 * infttrace.c: Include "infttrace.h".
9222 * infttrace.h: Include "target.h".
9223 * Makefile.in (infttrace_h): Update.
9224 (infttrace.o): Update.
9225
9226 2004-04-06 Andrew Cagney <cagney@redhat.com>
9227
9228 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
9229 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
9230 move extern declarations from here ...
9231 * infttrace.h: ... to here.
9232 * Makefile.in (hppah-nat.o): Update dependencies.
9233
9234 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
9235 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
9236 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
9237 (hppa_breakpoint_from_pc): Delete.
9238
9239 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
9240
9241 2004-04-05 Andrew Cagney <cagney@redhat.com>
9242
9243 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
9244 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
9245 <sys/file.h>.
9246
9247 2004-04-06 Randolph Chung <tausq@debian.org>
9248
9249 Committed by Andrew Cagney (mechanical change).
9250 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
9251 exception_catchpoints_are_fragile, find_stub_with_shl_get,
9252 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
9253 child_enable_exception_callback, current_ex_event,
9254 null_symtab_and_line, child_get_current_exception_event,
9255 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
9256 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
9257 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
9258 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
9259 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
9260 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
9261 Move hpux-specific definitions ...
9262 * hppa-hpux-tdep.c: ... to here.
9263
9264 2004-04-05 Andrew Cagney <cagney@redhat.com>
9265
9266 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
9267 skip_prologue_using_sal.
9268
9269 2004-04-05 Andrew Cagney <cagney@redhat.com>
9270
9271 * config/i386/tm-i386.h: Delete file.
9272 * config/i386/tm-vxworks.h: Update copyright, do not include
9273 "tm-i386.h".
9274 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
9275 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
9276 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
9277 * config/i386/ncr3000.mt (TM_FILE): Delete.
9278 * config/i386/interix.mt (TM_FILE): Delete.
9279 * config/i386/i386v.mt (TM_FILE): Delete.
9280 * config/i386/i386nw.mt (TM_FILE): Delete.
9281 * config/i386/i386gnu.mt (TM_FILE): Delete.
9282 * config/i386/i386aout.mt (TM_FILE): Delete.
9283 * config/i386/embed.mt (TM_FILE): Delete.
9284
9285 2004-04-05 Kevin Buettner <kevinb@redhat.com>
9286
9287 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
9288 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
9289 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
9290 (accg7_regnum): New constants.
9291 (last_spr_regnum, last_pseudo_regnum): Update.
9292 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
9293 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
9294 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
9295 for accg registers.
9296 (frv_register_sim_regno): Update spr_map[].
9297
9298 2004-04-04 Andrew Cagney <cagney@redhat.com>
9299
9300 * config/mips/xm-riscos.h: Delete.
9301 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
9302 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
9303 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
9304 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
9305 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
9306 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
9307 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
9308 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
9309 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
9310 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
9311 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
9312 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
9313 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
9314 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
9315 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
9316 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
9317 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
9318 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
9319 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
9320 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
9321 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
9322 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
9323 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
9324 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
9325 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
9326 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
9327
9328 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
9329 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
9330 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
9331 * configure.host: Remove m680[01]0-sun-sunos3*,
9332 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
9333 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
9334 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
9335 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
9336 mips-*-riscos*.
9337 * NEWS: Mention removed systems.
9338
9339 2004-04-04 Andrew Cagney <cagney@redhat.com>
9340
9341 GDB 6.1 release created from 6.1 branch.
9342
9343 2004-04-04 Andrew Cagney <cagney@redhat.com>
9344
9345 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
9346 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
9347 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
9348
9349 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
9350 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
9351 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
9352
9353 2004-04-03 Jim Blandy <jimb@redhat.com>
9354
9355 * MAINTAINERS: Chris Faylor has changed employers; add him to
9356 "paper trail" section, and update his E-mail address.
9357
9358 2004-04-03 Andrew Cagney <cagney@redhat.com>
9359
9360 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
9361 generic dummy frames.
9362 * dummy-frame.c: Update copyright.
9363 (dummy_frame_sniffer): Delete check for generic dummy frames.
9364
9365 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
9366 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
9367 (REG_PARM_STACK_SPACE): Delete.
9368 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
9369 Inline reference to REG_PARM_STACK_SPACE.
9370
9371 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
9372 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
9373 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
9374 (FRAME_BASE_BEFORE_SIGTRAMP)
9375 (hppa32_hpux_frame_base_before_sigtramp)
9376 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
9377 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
9378 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
9379 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
9380 (FRAME_BASE_BEFORE_SIGTRAMP)
9381 (hppa64_hpux_frame_base_before_sigtramp)
9382 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
9383
9384 2004-04-03 Andrew Cagney <cagney@redhat.com>
9385
9386 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
9387
9388 2004-04-02 Andrew Cagney <cagney@redhat.com>
9389
9390 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
9391 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
9392 * dummy-frame.h: Delete out-of-date comments.
9393 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
9394 * gdbarch.h, gdbarch.c: Re-generate.
9395
9396 2004-04-02 Joel Brobecker <brobecker@gnat.com>
9397
9398 Committed by Andrew Cagney <cagney@redhat.com>.
9399 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
9400 into account an instruction saving a register if we have already
9401 seen an earlier instruction saving that same register.
9402
9403 2004-04-02 Andrew Cagney <cagney@redhat.com>
9404
9405 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
9406 * gdbarch.h, gdbarch.c: Re-generate.
9407 * frame.c (legacy_get_prev_frame): Delete references to
9408 DEPRECATED_INIT_FRAME_PC_FIRST.
9409
9410 * infrun.c (pc_in_sigtramp): Delete function.
9411 (check_sigtramp2): Inline call to pc_in_sigtramp, use
9412 get_frame_type.
9413
9414 2004-04-02 Andrew Cagney <cagney@redhat.com>
9415
9416 * infrun.c (handle_step_into_function): Delete code conditional on
9417 legacy_frame_p.
9418 (handle_inferior_event, step_over_function): Ditto.
9419
9420 2004-04-02 Andrew Cagney <cagney@redhat.com>
9421
9422 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
9423 "previous frame inner to this frame" test.
9424
9425 2004-04-02 Andrew Cagney <cagney@redhat.com>
9426
9427 * frame.c (safe_frame_unwind_memory): New function.
9428 * frame.h (safe_frame_unwind_memory): Declare. Update description
9429 of /safe_/ methods.
9430 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
9431 "next_frame". Use safe_frame_unwind_memory.
9432 (tramp_frame_sniffer): Update call to tramp_frame_start.
9433
9434 2004-04-01 Daniel Jacobowitz <drow@mvista.com>
9435
9436 * dwarf2read.c (dwarf2_objfile_data_key): New.
9437 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
9438 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
9439 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
9440 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
9441 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
9442 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
9443 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
9444 Remove variables.
9445 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
9446 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
9447 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
9448 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
9449 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
9450 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
9451 Remove macros.
9452 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
9453 data.
9454 (dwarf2_locate_sections, dwarf2_build_psymtabs)
9455 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
9456 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
9457 (read_partial_die, read_full_die, read_indirect_string)
9458 (dwarf_decode_line_header, dwarf_decode_macros)
9459 (dwarf2_symbol_mark_computed): Remove use of removed macros.
9460 Update uses of removed variables.
9461 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
9462 of removed macros.
9463 (_initialize_dwarf2_read): New function.
9464 * symfile.h (dwarf2_has_info): Update prototype.
9465 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
9466 * elfread.c (elf_symfile_read): Likewise.
9467
9468 2004-04-01 Jim Blandy <jimb@redhat.com>
9469
9470 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
9471 function for register numbers on all the rs6000-derived targets.
9472 (rs6000_gdbarch_init): Don't register a separate
9473 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
9474 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
9475 variants.
9476
9477 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
9478 numbering.
9479
9480 2004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
9481
9482 * valarith.c: Update copyright notice.
9483 (value_add): Handle range types.
9484 (value_sub): Ditto.
9485 (value_equal): Ditto.
9486 (value_less): Ditto.
9487 (value_neg): Ditto.
9488 (value_complement): Ditto.
9489 (value_binop): Simplify slightly by using is_integral_type and
9490 eliminiating unnecessary COERCE_ENUMs.
9491
9492 2004-03-31 Andrew Cagney <cagney@redhat.com>
9493
9494 * frame.h (frame_unwind_id): Declare.
9495 * frame.c (frame_unwind_id): New function.
9496 (get_prev_frame_1): New function.
9497 (frame_debug_got_null_frame): New function.
9498 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
9499 code proper to prev_frame, update description.
9500 * infrun.c (step_over_function): Use frame_unwind_id.
9501
9502 2004-04-31 J. Brobecker <brobecker@gnat.com>
9503
9504 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
9505 (hppa64_push_dummy_call): Likewise.
9506
9507 2004-03-30 Jim Blandy <jimb@redhat.com>
9508
9509 From Ulrich Weigand:
9510 * utils.c (query): Do not use a va_list variable multiple times.
9511
9512 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
9513
9514 * Makefile.in (linux_nat_h): Update dependencies.
9515 * configure.in: Check for <gnu/libc-version.h>.
9516 * configure: Regenerate.
9517 * config.in: Regenerate.
9518 * linux-nat.h: Include "target.h". Add waitstatus field to
9519 struct lwp_info.
9520 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
9521 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
9522 to.
9523 (lin_lwp_handle_extended): New function. Handle clone events.
9524 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
9525 thread exit events.
9526 (child_wait): Handle clone events.
9527 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
9528 * linux-nat.c (linux_enable_event_reporting): Turn on
9529 PTRACE_O_TRACECLONE.
9530 (linux_handle_extended_wait): Handle clone events.
9531 * thread-db.c: Include <gnu/libc-version.h>.
9532 (struct private_thread_info): Add dying flag.
9533 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
9534 higher.
9535 (attach_thread): Update comments. Handle dying threads.
9536 (detach_thread): Set the dying flag.
9537 (check_event): Always call attach_thread.
9538
9539 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
9540
9541 * mips-tdep.c (mips_pdr_data): New.
9542 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
9543 (_initialize_mips_tdep): Initialize mips_pdr_data.
9544
9545 2004-03-29 Corinna Vinschen <vinschen@redhat.com>
9546
9547 * minsyms.c (install_minimal_symbols): Move dropping leading
9548 char from linkage name from here...
9549 (prim_record_minimal_symbol_and_info): ...to here. Simplify
9550 test for "__gnu_compiled*" symbols.
9551
9552 2004-03-28 Jim Blandy <jimb@redhat.com>
9553
9554 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
9555 registers to temp register r0 and byte stores as prologue
9556 instructions.
9557
9558 2004-03-28 Andrew Cagney <cagney@redhat.com>
9559
9560 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
9561 arm*-*-*.
9562
9563 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
9564
9565 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
9566 and switch the layout to force a display of register window.
9567
9568 2004-02-26 J. Brobecker <brobecker@gnat.com>
9569
9570 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
9571 of the INTEGER class.
9572
9573 2004-03-26 Jim Blandy <jimb@redhat.com>
9574
9575 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
9576 bytes long on PPC GNU/Linux.
9577
9578 2004-03-26 David Carlton <carlton@kealia.com>
9579
9580 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
9581
9582 2004-03-25 Andrew Cagney <cagney@redhat.com>
9583
9584 * PROBLEMS: Add general section titles, remove references to
9585 specific releases.
9586
9587 2004-03-25 Daniel Jacobowitz <drow@mvista.com>
9588
9589 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
9590 INT_REGISTER_SIZE.
9591 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
9592 FP_REGISTER_VIRTUAL_SIZE.
9593 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
9594 of DEPRECATED_REGISTER_RAW_SIZE.
9595 (arm_register_type): Add gdbarch argument.
9596 (arm_register_raw_size, arm_register_virtual_size): Delete.
9597 (arm_register_byte, arm_extract_return_value)
9598 (arm_store_return_value, arm_get_longjmp_target): Update references
9599 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
9600 (arm_gdbarch_init): Likewise. Don't set
9601 deprecated_register_raw_size, deprecated_register_virtual_size,
9602 deprecated_max_register_raw_size,
9603 deprecated_max_register_virtual_size, or
9604 deprecated_max_register_virtual_type. Do set register_type.
9605 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
9606 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
9607 (FP_REGISTER_VIRTUAL_SIZE): Delete.
9608 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
9609 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
9610 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
9611 INT_REGISTER_SIZE.
9612 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
9613 (remote_rdp_store_register): Likewise.
9614
9615 2004-03-24 Daniel Jacobowitz <drow@mvista.com>
9616
9617 * Makefile.in (mips-linux-tdep.o): Update dependencies.
9618 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
9619 to after osabi initialization.
9620 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
9621 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
9622 functions.
9623 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
9624 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
9625 variables.
9626 (mips_linux_init_abi): Append signal trampoline unwinders.
9627
9628 2004-03-24 Andrew Cagney <cagney@redhat.com>
9629
9630 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
9631 * tramp-frame.c: Include "gdb_assert.h".
9632 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
9633 correct sizeof.
9634 (tramp_frame_append): Validate the tramp frame's instructions.
9635 * Makefile.in (tramp-frame.o): Update dependencies.
9636
9637 2004-03-23 Andrew Cagney <cagney@redhat.com>
9638
9639 * trad-frame.h (trad_frame_set_reg_addr): Declare.
9640
9641 2004-03-23 Andrew Cagney <cagney@redhat.com>
9642
9643 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
9644 Nasser as past testsuite/lib/ (and other) maintainers.
9645
9646 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
9647
9648 * infcmd.c (attach_command): Reread symbols if we already have
9649 an exec file.
9650
9651 2004-03-23 Andrew Cagney <cagney@redhat.com>
9652
9653 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
9654
9655 2004-03-23 Andrew Cagney <cagney@redhat.com>
9656
9657 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
9658 * gdbarch.h, gdbarch.c: Re-generate.
9659 * i386obsd-tdep.c (i386obsd_init_abi): Update.
9660 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
9661 * i386bsd-tdep.c (i386bsd_init_abi): Update.
9662 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
9663 (DEPRECATED_SIGTRAMP_START): Update.
9664 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
9665 (DEPRECATED_SIGTRAMP_START): Update.
9666 * blockframe.c (find_pc_sect_partial_function): Update.
9667 * arch-utils.c (legacy_pc_in_sigtramp): Update.
9668
9669 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
9670
9671 * remote.c (remote_open_1): Reopen the exec file and reread symbols
9672 if necessary.
9673
9674 2004-03-23 Andrew Cagney <cagney@redhat.com>
9675
9676 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
9677 predicate, deprecate.
9678 * gdbarch.h, gdbarch.c: Re-generate.
9679 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
9680 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
9681 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
9682 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
9683 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
9684 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
9685 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
9686 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
9687 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
9688 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
9689 * blockframe.c (find_pc_partial_function): Update.
9690 * breakpoint.c (bpstat_what): Update.
9691 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
9692 * frv-linux-tdep.c (frv_linux_init_abi): Update.
9693 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
9694 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
9695 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9696 * i386-linux-tdep.c (i386_linux_init_abi): Update.
9697 * i386-nto-tdep.c (i386nto_init_abi): Update.
9698 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
9699 * i386-tdep.c (i386_sigtramp_frame_sniffer)
9700 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
9701 * i386bsd-tdep.c (i386bsd_init_abi): Update.
9702 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
9703 * i386obsd-tdep.c (i386obsd_init_abi): Update.
9704 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
9705 * infrun.c (pc_in_sigtramp): Update.
9706 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
9707 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
9708 * mips-tdep.c (mips_gdbarch_init): Update.
9709 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
9710 * ppc-linux-tdep.c: Update comment.
9711 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
9712 * shnbsd-tdep.c (shnbsd_init_abi): Update.
9713 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
9714 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
9715 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
9716 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
9717 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
9718 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
9719 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
9720 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
9721
9722 2004-03-23 Andrew Cagney <cagney@redhat.com>
9723
9724 * tramp-frame.h, tramp-frame.h: New files.
9725 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
9726 Update rules to include "tramp-frame.h" and "tramp-frame.c".
9727
9728 * Makefile.in: Update all dependencies.
9729
9730 2004-03-23 Andrew Cagney <cagney@redhat.com>
9731
9732 * Makefile.in (trad_frame_h): Add $(frame_h).
9733 * trad-frame.h: Update copyright. Include "frame.h".
9734 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
9735 (trad_frame_set_id, trad_frame_get_id): Declare.
9736 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
9737 * trad-frame.c: Update copyright.
9738 (struct trad_frame_cache): Define.
9739 (trad_frame_cache_zalloc): New function.
9740 (trad_frame_set_id, trad_frame_get_id): New functions.
9741 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
9742
9743 2004-03-22 Andrew Cagney <cagney@redhat.com>
9744
9745 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
9746 s390_pltstub_unwind_cache.
9747 (s390_stub_frame_unwind_cache): Rename
9748 s390_pltstub_frame_unwind_cache.
9749 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
9750 (s390_stub_frame_prev_register): Rename
9751 s390_pltstub_frame_prev_register.
9752 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
9753 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
9754
9755 From Ulrich Weigand:
9756 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
9757 pointer calls like PLT calls.
9758
9759 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
9760
9761 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
9762 PC rather than the partial function start address. Use the start
9763 address to sanity check the found PDR.
9764
9765 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
9766
9767 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
9768 linux_handle_extended_wait.
9769
9770 2004-03-22 Andrew Cagney <cagney@redhat.com>
9771
9772 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
9773 function.
9774
9775 * frame.h (generic_pop_current_frame): Delete declaration.
9776 (deprecate_pop_dummy_frame): Deprecate
9777 generic_pop_dummy_frame.
9778 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
9779 (generic_pop_current_frame): Delete function.
9780 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
9781 generic_pop_current_frame.
9782 * v850-tdep.c (v850_pop_frame): Update.
9783 * mcore-tdep.c (mcore_pop_frame): Update.
9784 * sh64-tdep.c (sh64_pop_frame): Update.
9785 * h8300-tdep.c (h8300_pop_frame): Update.
9786
9787 2004-03-22 Andrew Cagney <cagney@redhat.com>
9788
9789 * frame.h (deprecated_pc_in_call_dummy): Rename
9790 generic_pc_in_call_dummy.
9791 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
9792 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
9793 generic_pc_in_call_dummy.
9794 (pc_in_dummy_frame): Make static.
9795 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
9796 * gdbarch.h, gdbarch.c: Re-generate.
9797 * dummy-frame.c (dummy_frame_sniffer): Simplify.
9798 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
9799 (legacy_get_prev_frame): Ditto.
9800 * inferior.h: Delete reference to generic_pc_in_call_dummy in
9801 comment.
9802
9803 2004-03-21 Andrew Cagney <cagney@redhat.com>
9804
9805 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
9806 declaration and out-of-date comment.
9807 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
9808 Delete function.
9809 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
9810 deprecated_pc_in_call_dummy.
9811
9812 * infrun.c (handle_inferior_event): For non legacy frames, use the
9813 frame ID and frame type to identify a signal trampoline. Update
9814 comments.
9815
9816 2004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
9817
9818 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
9819 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
9820
9821 2004-03-21 Andrew Cagney <cagney@redhat.com>
9822
9823 * frame-unwind.h: Update copyright.
9824 (struct frame_data): Add opaque declaration.
9825 (frame_sniffer_ftype): Declare.
9826 (struct frame_unwind): Add "unwind_data" and "sniffer".
9827 (frame_unwind_register_unwinder): Declare.
9828 (frame_unwind_find_by_frame): Add parameter "this_cache".
9829 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
9830 (legacy_get_prev_frame, legacy_get_prev_frame)
9831 (get_frame_type): Pass the prologue_cache to
9832 frame_unwind_find_by_frame.
9833 * frame-unwind.c (struct frame_unwind_table_entry): Add field
9834 "unwinder".
9835 (frame_unwind_register_unwinder): New function.
9836 (frame_unwind_find_by_frame): Handle an unwind sniffer.
9837
9838 2004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
9839
9840 * bcache.c (print_percentage): Use floating point to avoid
9841 incorrect results when portion*100 overflows.
9842
9843 2004-03-19 Kevin Buettner <kevinb@redhat.com>
9844
9845 * ppc_tdep.h (ppc_linux_frame_saved_pc)
9846 (ppc_linux_init_extra_frame_info)
9847 (ppc_linux_frameless_function_invocation)
9848 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
9849 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
9850 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
9851 (rs6000_frame_chain): Delete declarations.
9852 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
9853 (ppc_linux_init_extra_frame_info)
9854 (ppc_linux_frameless_function_invocation)
9855 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
9856 (ppc_linux_init_abi): Remove registration of above deleted functions.
9857 * rs6000-tdep.c (rs6000_init_extra_frame_info)
9858 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
9859 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
9860 (rs6000_pop_frame, rs6000_frameless_function_invocation)
9861 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
9862 (rs6000_gdbarch_init): Remove registration of above deleted functions.
9863 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
9864 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
9865 frame management for all OSABIs.
9866
9867 2004-03-19 Andrew Cagney <cagney@redhat.com>
9868
9869 Committed by Kevin Buettner <kevinb@redhat.com>.
9870
9871 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
9872 Update copyright.
9873 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
9874 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
9875 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
9876 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
9877 unwinders. #ifdef legacy frame code.
9878 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
9879 "frame-base.h".
9880 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
9881 (struct rs6000_frame_cache, rs6000_frame_cache)
9882 (rs6000_frame_this_id, rs6000_frame_prev_register)
9883 (rs6000_frame_sniffer, rs6000_frame_unwind)
9884 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
9885 (rs6000_frame_base): Implement a traditional frame unwinder.
9886 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
9887 frame unwinder.
9888
9889 2004-03-19 Kevin Buettner <kevinb@redhat.com>
9890
9891 * breakpoint.c (adjust_breakpoint_address): Don't adjust
9892 breakpoint address for watchpoints or the catch eventpoints.
9893 Add new paramter ``bptype''. Adjust all callers.
9894
9895 2004-03-19 Andrew Cagney <cagney@redhat.com>
9896
9897 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
9898
9899 * PROBLEMS: Delete note that ARM does not use frame code, problem
9900 fixed.
9901
9902 2004-03-18 Andrew Cagney <cagney@redhat.com>
9903
9904 * stack.c (return_command): Delete code wrapped in #ifdef
9905 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
9906
9907 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
9908
9909 2004-03-18 Andrew Cagney <cagney@redhat.com>
9910
9911 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
9912 DEPRECATED_IN_SIGTRAMP.
9913 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9914 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
9915 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9916 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9917 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9918 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9919 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9920 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9921 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
9922 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
9923
9924 2004-03-18 Andrew Cagney <cagney@redhat.com>
9925
9926 * frame-base.c: Update copyright. Include "gdb_obstack.h".
9927 (struct frame_base_table_entry): Define.
9928 (struct frame_base_table): Re-implement as a linked list.
9929 (frame_base_init): Re-implement.
9930 (frame_base_table): Delete function.
9931 (append_predicate): Delete function.
9932 (frame_base_append_sniffer): Update.
9933 (frame_base_set_default): Update.
9934 (frame_base_find_by_frame): Update.
9935 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
9936 * Makefile.in (frame-base.o): Update dependencies.
9937
9938 2004-03-17 Andrew Cagney <cagney@redhat.com>
9939
9940 * frame.c (legacy_get_prev_frame): Pass correct frame to
9941 frame_unwind_find_by_frame.
9942
9943 2004-03-17 David Carlton <carlton@kealia.com>
9944
9945 * NEWS: Mention C++ nested types and namespaces
9946
9947 2004-03-16 Michael Chastain <mec.gnu@mindspring.com>
9948
9949 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
9950 and "Regressions since gdb 5.3.". Add known regressions since
9951 gdb 6.0.
9952
9953 2004-03-16 David Carlton <carlton@kealia.com>
9954
9955 * dwarf2read.c (process_structure_scope): Process children even
9956 when we're a declaration.
9957
9958 2004-03-16 Andrew Cagney <cagney@redhat.com>
9959
9960 * symtab.h (find_pc_sect_partial_function): Delete declaration.
9961 * blockframe.c (find_pc_partial_function)
9962 (find_pc_sect_partial_function): Merge into a single
9963 find_pc_partial_function.
9964
9965 2004-03-16 Mark Kettenis <kettenis@gnu.org>
9966
9967 * i386bsd-nat.c: s/regno/regnum/g.
9968 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
9969 FP0_REGNUM.
9970 (store_inferior_registers): Likewise.
9971
9972 2004-03-16 Mark Kettenis <kettenis@gnu.org>
9973
9974 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
9975 of i387_fill_fsave.
9976 (store_inferior_registers): Call i387_collect_fsave and
9977 i387_collect_fxsave instead of i387_fill_fsave and
9978 i387_fill_fxsave.
9979
9980 2004-03-15 Andrew Cagney <cagney@redhat.com>
9981
9982 * Makefile.in (frame-unwind.o): Update dependencies.
9983 * frame-unwind.c: Include "gdb_obstack.h".
9984 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
9985 parameter.
9986 (append_predicate): Delete function.
9987 (struct frame_unwind_table_entry): New structure.
9988 (struct frame_unwind_table): Replace "sniffer" with "head" and
9989 "tail".
9990 (frame_unwind_append_sniffer): Update.
9991 (frame_unwind_find_by_frame): Update.
9992 (_initialize_frame_unwind): Registe frame_unwind_init using
9993 gdbarch_data_register_pre_init.
9994
9995 2004-03-15 Mark Kettenis <kettenis@gnu.org>
9996
9997 * i386bsd-nat.c: Update copyright year.
9998 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
9999 define unconditionally.
10000
10001 2004-03-15 Mark Kettenis <kettenis@gnu.org>
10002
10003 * i387-tdep.h (i387_collect_fsave): New prototype.
10004 * i387-tdep.c (i387_collect_fsave): New function containing most
10005 of the code from i387_fill_fsave.
10006 (i387_fill_fsave): Call i387_collect_fsave.
10007
10008 2004-03-15 Mark Kettenis <kettenis@gnu.org>
10009
10010 * i386-linux-tdep.c: Update copyright year.
10011 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
10012 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
10013 svr4_ilp32_link_map_offsets instead of
10014 i386_linux_svr4_fetch_link_map_offsets.
10015
10016 2004-03-15 David Carlton <carlton@kealia.com>
10017
10018 Fix for PR c++/1553:
10019 * dwarf2read.c (read_structure_type): Determine type name by
10020 calling determine_class_name.
10021 (determine_class_name): New.
10022 (determine_prefix): Look at TYPE_TAG_NAME and call
10023 determine_class_name when appropriate.
10024 (determine_prefix_aux, class_name): Delete.
10025 (read_namespace): Set die->type.
10026
10027 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10028
10029 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
10030 unused macro definition. The definition in target.h (or perhaps
10031 elsewhere) takes precedence.
10032
10033 2004-03-15 Andrew Cagney <cagney@redhat.com>
10034
10035 * ppc-tdep.h: Update copyright.
10036 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
10037 function signatures to match "regsets.h".
10038 * ppc-linux-tdep.c: Include "regset.h".
10039 (ELF_GREGSET_SIZE): Delete.
10040 (right_supply_register): New function.
10041 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
10042 using right_supply_register.
10043 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
10044 functions.
10045 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
10046 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
10047 (_initialize_ppc_linux_tdep): Do not register
10048 ppc_linux_regset_core_fns.
10049 (ppc_linux_regset_from_core_section): Replace
10050 fetch_core_registers.
10051 (ppc_linux_regset_core_fns): Delete.
10052 * ppc-linux-nat.c: (right_fill_reg): New function.
10053 (supply_gregset): Update call to ppc_linux_supply_gregset.
10054 (fill_gregset): Clear the register set, use right_fill_reg.
10055 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
10056 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
10057
10058 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
10059 unsigned.
10060
10061 2004-03-15 Andrew Cagney <cagney@redhat.com>
10062
10063 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
10064 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
10065 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
10066 and register_gdbarch_data.
10067 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
10068 (struct gdbarch_data): Replace "init" by "pre_init" and
10069 "post_init".
10070 * gdbarch.h, gdbarch.c: Re-generate.
10071 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
10072 with"obstack", use OBSTACK_ZALLOC.
10073 (dwarf2_frame_ops): Delete.
10074 (dwarf2_frame_set_init_reg): Use gdbarch_data.
10075 (dwarf2_frame_init_reg): Use gdbarch_data.
10076 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
10077 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
10078 (_initialize_svr4_solib): Update.
10079 * user-regs.c (_initialize_user_regs): Update.
10080 * reggroups.c (_initialize_reggroup): Update.
10081 * regcache.c (_initialize_regcache): Update.
10082 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
10083 * libunwind-frame.c (_initialize_libunwind_frame): Update.
10084 * gnu-v3-abi.c (init_gnuv3_ops): Update.
10085 * frame-unwind.c (_initialize_frame_unwind): Update.
10086 * frame-base.c (_initialize_frame_base): Update.
10087 * user-regs.c (user_reg_add): Update.
10088 * reggroups.c (reggroup_add): Update.
10089 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
10090 * libunwind-frame.c (libunwind_frame_set_descr): Update.
10091 * frame-unwind.c (frame_unwind_append_sniffer): Update.
10092 * frame-base.c (frame_base_table): Update.
10093 * remote.c (_initialize_remote): Update.
10094 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
10095
10096 2004-03-15 Andrew Cagney <cagney@redhat.com>
10097
10098 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
10099
10100 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10101
10102 * Makefile.in (frv-linux-tdep.o): Add dependencies.
10103 * frv-linux-tdep.c: New file.
10104 * frv-tdep.c (struct gdbarch_tdep): Add new field
10105 ``sigcontext_reg_addr''.
10106 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
10107 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
10108 (frv_sigramp_frame_sniffer): New functions.
10109 (frv_sigtramp_frame_unwind): New static global.
10110 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
10111 sniffers.
10112 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
10113 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
10114
10115 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10116
10117 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
10118 but not via a call to error(), when unable to read memory.
10119
10120 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10121
10122 * frv-tdep.c (frv_call_dummy_words): Delete.
10123 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
10124
10125 2004-03-15 Andrew Cagney <cagney@redhat.com>
10126
10127 * infrun.c (handle_step_into_function, step_over_function): Only
10128 update and use STEP_FRAME_ID when the system is using legacy
10129 frames. Update comments.
10130
10131 2004-03-14 Mark Kettenis <kettenis@gnu.org>
10132
10133 * amd64-linux-tdep.h: Remove file.
10134 * amd64-linux-tdep.c: Don't include "inferior.h" and
10135 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
10136 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
10137 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
10138 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
10139 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
10140 macros.
10141 (user_to_gdb_regmap): Remove variable.
10142 (amd64_linux_gregset_reg_offset): New variable.
10143 (amd64_core_fns): Remove variable.
10144 (fetch_core_registers): Remove function.
10145 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
10146 functions.
10147 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
10148 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
10149 * Makefile.in (amd64_linux_tdep_h): Remove.
10150 (amd64-linux-nat.o): Update dependencies.
10151 (amd64-linux-tdep.o): Update dependencies.
10152
10153 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
10154 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
10155 functions.
10156 (fetch_inferior_registers, store_inferior_registers): Rewrite.
10157
10158 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
10159 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
10160
10161 2004-03-14 Daniel Jacobowitz <drow@mvista.com>
10162
10163 * dwarf2read.c (read_structure_type): Rename from
10164 read_structure_scope. Don't create a symbol or call process_die.
10165 Return immediately if die->type is set. Call read_type_die before
10166 dwarf2_add_member_fn.
10167 (process_structure_scope): New function.
10168 (read_enumeration_type, process_enumeration_scope): New functions,
10169 broken out from read_enumeration. Don't create the enumeration
10170 type if it has already been created.
10171 (read_enumeration): Removed.
10172 (process_die): Call read_structure_type, process_structure_scope,
10173 read_enumeration_type, and process_enumeration_scope. Just call
10174 new_symbol for base and subrange types. Add a comment about other
10175 type dies.
10176 (read_type_die): Call read_enumeration_type.
10177 (add_partial_structure, new_symbol): Update comments.
10178
10179 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
10180
10181 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
10182
10183 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
10184
10185 * tui/tui-win.h (tui_get_cmd_list): Declare.
10186 * tui/tui-win.c (tui_command): New function.
10187 (tui_get_cmd_list): New function.
10188 (_initialize_tui_win): Moved initialization of tui command in
10189 tui_get_cmd_list.
10190
10191 * tui/tui-data.c (init_content_element): Setup new data members.
10192 (init_win_info): Likewise.
10193 (free_content_elements): Free it.
10194 * tui/tui-data.h (struct tui_data_element): Store the register
10195 content to print.
10196 (struct tui_data_info): Keep the current register group.
10197
10198 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
10199
10200 * tui/tui-regs.h (tui_show_registers): Update prototype.
10201 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
10202 (tui_resize_all): No need to calculate anything for register window.
10203 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
10204 (tui_set_register_element, tui_set_general_regs_content): Remove.
10205 (tui_set_special_regs_content): Remove.
10206 (tui_set_general_and_special_regs_content): Remove.
10207 (tui_set_float_regs_content): Remove.
10208 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
10209 (tui_set_regs_content): Remove.
10210 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
10211 (tui_v_show_registers_command_support): Remove.
10212 (tui_show_registers): Use a reggroup to specify the registers to show.
10213 (tui_show_register_group): New function.
10214 (tui_display_registers_from): Compute the layout of register window
10215 and refresh with new API; be sure to delete old register windows.
10216 (tui_check_register_values): Update to use tui_get_register and
10217 tui_display_data.
10218 (tui_display_register): Just refresh the register window part.
10219 (tui_register_format): Format registers and save in tui_data_element.
10220 (tui_get_register): New to combine tui_reg_value_has_changed and
10221 tui_get_register_raw_value; fix to use the new gdb API.
10222 (tui_show_float_command): Renamed tui_reg_float_command.
10223 (tui_show_general_command): Renamed tui_reg_general_command.
10224 (tui_show_special_command): Renamed tui_reg_system_command.
10225 (_initialize_tui_regs): Remove unused commands.
10226
10227 2004-03-13 Mark Kettenis <kettenis@gnu.org>
10228
10229 * NEWS (New native configurations): Mention OpenBSD/amd64.
10230
10231 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
10232 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
10233 Remove defines.
10234 * config/i386/nm-fbsd64.h: Likewise.
10235 * config/i386/nm-obsd.h: Likewise.
10236 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
10237 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
10238
10239 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10240
10241 * frv-tdep.c (set_variant_scratch_registers): New function.
10242 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
10243 New constants.
10244
10245 From Richard Sandiford <rsandifo@redhat.com>:
10246 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
10247
10248 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10249
10250 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
10251 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
10252 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
10253 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
10254 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
10255 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
10256 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
10257 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
10258 definitions from frv-tdep.c to frv-tdep.h.
10259
10260 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10261
10262 Add shared library support for FR-V FDPIC ABI:
10263 * Makefile.in (solib-frv.o): Add dependencies.
10264 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
10265 New functions.
10266 (frv_push_dummy_call): Add support for FDPIC ABI.
10267 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
10268 for FDPIC ABI.
10269 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
10270 (frv_fdpic_find_canonical_descriptor): Declare.
10271 * solib-frv.c: New file.
10272 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
10273 * config/frv/tm-frv.h (solib.h): Include.
10274
10275 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10276
10277 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
10278 (frv-tdep.o): Update dependencies.
10279 * frv-tdep.h: New file.
10280 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
10281 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
10282 constants.
10283 (struct gdbarch_tdep): Add new member ``frv_abi''.
10284 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
10285 functions.
10286 (new_variant): Set ``frv_abi'' field.
10287 (gdb_arch_init): Detect FDPIC executables.
10288
10289 2004-03-12 Mark Kettenis <kettenis@gnu.org>
10290
10291 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
10292 wrapper.
10293
10294 2004-03-11 Andrew Cagney <cagney@redhat.com>
10295
10296 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
10297
10298 2004-03-11 Kevin Buettner <kevinb@redhat.com>
10299
10300 * solist.h (master_so_list): New function.
10301 * solib.c (master_so_list): Likewise.
10302 * solib-svr4.c (enable_break): Iterate over so_list entries
10303 obtained from master list instead of entries obtained directly
10304 via svr4_current_sos().
10305
10306 2004-03-10 Ben Elliston <bje@gnu.org>
10307
10308 * MAINTAINERS: Update my mail address.
10309
10310 2004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
10311
10312 * remote-m32r-sdi.c: Support hardware watchpoint.
10313
10314 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10315
10316 * user-regs.c: Update copyright years.
10317 (struct user_regs): Rename to gdb_user_regs.
10318 (append_user_reg, builtin_user_regs, user_regs_init)
10319 (user_reg_add, user_reg_map_name_to_regnum)
10320 (usernum_to_user_reg): Update.
10321
10322 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10323
10324 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
10325 (skip_children): New functions.
10326 (locate_pdi_sibling): Call skip_children.
10327
10328 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10329
10330 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
10331 * gdbtypes.c (check_typedef): Update comments.
10332
10333 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10334
10335 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
10336 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
10337 pointer. Update comment about comp_unit_head.
10338 (struct abbrev_info): Shorten two int flags.
10339 (dwarf_alloc_abbrev): Take a CU argument.
10340 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
10341 each time through the loop. Update cleanup argument.
10342 (psymtab_to_symtab_1): Update cleanup call.
10343 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
10344 abbrev_obstack.
10345 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
10346 Just call obstack_free and clear the pointer.
10347
10348 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10349
10350 * infrun.c (handle_inferior_event): Remove short-circuit code for
10351 events in a different thread.
10352
10353 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10354
10355 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
10356 print the whole transfer.
10357 (initialize_targets): Update description of "set debug target".
10358
10359 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10360
10361 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
10362
10363 2004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
10364
10365 * MAINTAINERS (write after approval): Add myself.
10366
10367 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
10368
10369 * sh-tdep.c (sh_print_registers_info): Use for loop.
10370 Don't skip multiple registers when a float register is encountered.
10371
10372 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
10373
10374 Fix PR tdep/1291.
10375 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
10376 to official SH documentation.
10377
10378 2004-03-07 Andrew Cagney <cagney@redhat.com>
10379
10380 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
10381 unused function.
10382
10383 2004-03-07 Daniel Jacobowitz <drow@mvista.com>
10384
10385 * arm-tdep.c (thumb_get_next_pc): Handle BX.
10386 (arm_get_next_pc): Handle BX and BLX.
10387
10388 2004-03-07 Andrew Cagney <cagney@redhat.com>
10389
10390 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
10391 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
10392 HPPA_SP_REGNUM.
10393 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
10394 (hppa_target_read_fp): Delete.
10395 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
10396 register_virtual_size, max_register_raw_size,
10397 max_register_virtual_size, register_byte, register_size,
10398 target_read_fp, fp_regnum, and register_bytes. Set register_type
10399 instead of register_virtual_type.
10400 (hppa32_register_type, hppa64_register_type): Replace
10401 hppa32_register_virtual_type and hppa64_register_virtual_type.
10402 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
10403 (HPPA_FP_REGNUM): Define.
10404
10405 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
10406
10407 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
10408 (pa_do_registers_info): Delete.
10409 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
10410 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
10411 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
10412
10413 * infcall.c (legacy_push_dummy_code): Delete #ifdef
10414 GDB_TARGET_IS_HPPA code.
10415 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
10416 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
10417 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
10418 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
10419 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
10420 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
10421 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
10422 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
10423 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
10424 (hppa_frameless_function_invocation, hppa64_store_return_value)
10425 (hppa_store_struct_return, hppa64_extract_return_value)
10426 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
10427 (hppa32_call_dummy_length, hppa64_call_dummy_length)
10428 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
10429 (find_proc_framesize, deposit_21, restore_pc_queue)
10430 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
10431 (rp_saved, pc_in_linker_stub): Delete.
10432
10433 Unconditionally enable 64-bit frame and ABI code.
10434 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
10435 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
10436 push_dummy_frame, fix_call_dummy, push_arguments,
10437 call_dummy_location, extract_return_value, use_struct_convention,
10438 store_return_value, store_struct_return, saved_pc_after_call,
10439 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
10440 frame_chain, frame_chain_valid, frameless_function_invocation,
10441 frame_saved_pc, and pop_frame.
10442
10443 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
10444 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
10445 (hppa_gdbarch_init): Do not set PC_REGNUM.
10446
10447 2004-03-06 Mark Kettenis <kettenis@gnu.org>
10448
10449 * config/alpha/tm-fbsd.h: Remove file.
10450 * config/alpha/fbsd.mt: Tweak comment.
10451 (TM_FILE): Set to tm-alpha.h.
10452
10453 2004-03-05 Andrew Cagney <cagney@redhat.com>
10454
10455 * infrun.c (step_over_function): When non-legacy code, and no
10456 step_frame_id, use the unwinder to get the caller's frame ID.
10457
10458 2004-03-05 Mark Kettenis <kettenis@gnu.org>
10459
10460 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
10461 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
10462 bfd_arch_unknown. Adjust comment.
10463
10464 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
10465 * i386obsd-tdep.c: Correct spelling in comment.
10466 * i386nbsd-tdep.c: Correct spelling in comment.
10467 * sparc-tdep.c: Correct spelling in comments.
10468
10469 2004-03-05 David Carlton <carlton@kealia.com>
10470
10471 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
10472 bug.
10473
10474 2004-03-05 Mark Kettenis <kettenis@gnu.org>
10475
10476 * sparc-tdep.c: Fix typo in comment.
10477
10478 2004-03-04 J. Brobecker <brobecker@gnat.com>
10479
10480 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
10481
10482 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
10483
10484 * dwarf2read.c: Add comment describing memory lifetimes.
10485 (struct dwarf2_pinfo): Update comment.
10486 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
10487 (read_enumeration, new_symbol): Don't use obsavestring.
10488
10489 2004-03-04 Mark Kettenis <kettenis@gnu.org>
10490
10491 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
10492 instead of amd64_fill_fxsave.
10493 * amd64bsd-nat.c (store_inferior_registers): Likewise.
10494 * amd64fbsd-nat.c (fill_fpregset): Likewise.
10495
10496 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
10497 Reorganize code a bit.
10498
10499 2004-03-04 Orjan Friberg <orjanf@axis.com>
10500
10501 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
10502 when the frame pointer is pushed. Don't set the frame pointer's
10503 address on the stack unless it's actually located there.
10504 Set the SRP's address on the stack correctly when the PC is still in
10505 the prologue.
10506 (cris_return_value): New function.
10507 (cris_gdbarch_init): Clear deprecated store_return_value,
10508 extract_return_value.
10509
10510 2004-03-02 Jim Blandy <jimb@redhat.com>
10511
10512 * stabsread.c (reg_value_complaint): The maximum register number
10513 is one less than the number of registers.
10514
10515 2004-03-02 Andrew Cagney <cagney@redhat.com>
10516
10517 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
10518 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
10519 trailing comma and redundant assignment of I386_ST0_REGNUM.
10520 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
10521 32-bit segment registers.
10522
10523 2004-03-01 Andrew Cagney <cagney@redhat.com>
10524
10525 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
10526 use frame_relative_level and get_next_frame.
10527
10528 2004-02-29 Andrew Cagney <cagney@redhat.com>
10529
10530 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
10531 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
10532 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
10533 Delete macro.
10534
10535 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
10536
10537 * inflow.c (terminal_inferior): Don't give up the terminal if we
10538 previously couldn't get the inferior's terminal state.
10539
10540 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
10541
10542 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
10543 PC_REGNUM.
10544
10545 2004-02-28 Andrew Cagney <cagney@redhat.com>
10546
10547 * NEWS: Refer to GDB 6.1.
10548 * README: Refer to GDB 6.1.
10549 * PROBLEMS: Refer to GDB 6.1.
10550
10551 2004-02-28 Daniel Jacobowitz <drow@mvista.com>
10552
10553 * thread-db.c (disable_thread_signals): Remove unused function.
10554
10555 2004-02-28 Mark Kettenis <kettenis@gnu.org>
10556
10557 * amd64-nat.c: Include "gdb_string.h".
10558 (amd64_collect_native_gregset): Zero-extend the 32-bit
10559 general-purpose registers and %eip.
10560
10561 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
10562 * amd64-tdep.c (amd64_collect_fxsave): New function.
10563 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
10564
10565 * i387-tdep.h: Update copyright year.
10566 (i387_collect_fxsave): New prototype.
10567 * i387-tdep.c: Update copyright year.
10568 (i387_collect_fxsave): New function containing most of the code
10569 from i387_fill_fxsave.
10570 (i387_fill_fxsave): Call i387_collect_fxsave.
10571
10572 2004-02-28 Andrew Cagney <cagney@redhat.com>
10573
10574 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
10575 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
10576
10577 2004-02-28 Mark Kettenis <kettenis@gnu.org>
10578
10579 * amd64-tdep.c (amd64_frame_cache): Fix comment.
10580
10581 2004-02-28 Andrew Cagney <cagney@redhat.com>
10582
10583 * utils.c: Use "", instead of <>, to include readline.
10584 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
10585 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
10586 * source.c, solib.c, exec.c, event-top.c: Ditto.
10587 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
10588 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
10589 * Makefile.in: Update all dependencies.
10590 (readline_tilde_h, readline_history_h): Define.
10591 (readline_headers): Delete.
10592
10593 2004-02-28 Mark Kettenis <kettenis@gnu.org>
10594
10595 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
10596 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
10597 "config/i386/tm-lx64.h".
10598
10599 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
10600 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
10601 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
10602
10603 2004-02-28 Andrew Cagney <cagney@redhat.com>
10604
10605 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
10606
10607 * breakpoint.c (_initialize_breakpoint): Use
10608 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
10609 Add help to show command.
10610
10611 2004-02-28 Mark Kettenis <kettenis@gnu.org>
10612
10613 * i386-nat.c: Reformat to be closer to coding standards.
10614 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
10615 `retval'. Make variables `align' and `size' local to while-loop.
10616 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
10617 (_initialize_i386_nat): New prototype.
10618
10619 * tui/tui.c: Include <readline/readline.h> instead of
10620 "readline/readline.h". Include it after <term.h> and
10621 "gdb_curses.h".
10622
10623 2004-02-27 Andrew Cagney <cagney@redhat.com>
10624
10625 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
10626 the new frame unwind code.
10627 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
10628 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
10629 PCOQ_HEAD_REGNUM.
10630
10631 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
10632 "return_value" and "push_dummy_call".
10633 (hppa32_use_struct_convention): Delete unused function.
10634 (hppa32_store_return_value): Delete unused function.
10635 (hppa32_extract_return_value): Delete unused function.
10636 (hppa32_stack_align): Delete function.
10637
10638 2004-02-27 Eli Zaretskii <eliz@elta.co.il>
10639
10640 * coffread.c (enter_linenos): Don't let rawptr reference memory
10641 outside linetab[]'s limits.
10642
10643 2004-02-27 Andrew Cagney <cagney@redhat.com>
10644
10645 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
10646 inferior stack space - the stack needs to grow upwards.
10647 (hppa32_frame_align): New function.
10648 (hppa64_frame_align): Replace hppa_frame_align.
10649 (hppa_gdbarch_init): Update.
10650
10651 2004-02-26 Orjan Friberg <orjanf@axis.com>
10652
10653 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
10654 (dwarf2-frame.h): Include.
10655 (enum cris_regnums): New enum CRIS_FP_REGNUM.
10656 Remove static variables related to ABI setting.
10657 (struct gdbarch_tdep): Remove cris_abi member.
10658 (struct frame_extra_info): Remove.
10659 (cris_unwind_cache, stack_item): New structs.
10660 (cris_frame_unwind, cris_frame_base): New variables.
10661 (push_stack_item, pop_stack_item)
10662 (cris_frame_unwind_cache, cris_frame_this_id)
10663 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
10664 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
10665 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
10666 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
10667 (cris_reg_struct_has_addr): New functions.
10668 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
10669 (cris_frame_saved_pc, cris_saved_pc_after_call,
10670 (cris_store_struct_return, cris_frameless_function_invocation)
10671 (cris_pop_frame, cris_skip_prologue_main)
10672 (cris_abi_original_store_return_value)
10673 (cris_abi_v2_store_return_value)
10674 (cris_abi_original_extract_return_value)
10675 (cris_abi_v2_extract_return_value)
10676 (cris_abi_original_reg_struct_has_addr)
10677 (cris_abi_v2_reg_struct_has_addr)
10678 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
10679 (cris_push_return_address, cris_abi_update): Remove.
10680 (_initialize_cris_tdep): Remove ABI command.
10681 (cris_dump_tdep): Ditto.
10682 (cris_gdbarch_init): Remove ABI command.
10683 Set store_return_value, extract_return_value, push_dummy_code,
10684 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
10685 frame_unwind_append_sniffer, frame_base_set_default.
10686 Clear deprecated init_frame_pc, push_arguments, store_return_value,
10687 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
10688 sizeof_call_dummy_words, get_saved_register, push_return_address,
10689 pop_frame, store_struct_return, frame_init_saved_regs,
10690 init_extra_frame_info, frameless_function_invocation, frame_chain,
10691 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
10692 dummy_write_sp.
10693
10694 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
10695
10696 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
10697 * valprint.c (print_hex_chars): Change from static to external.
10698 (print_char_chars): New function.
10699 * printcmd.c (print_scalar_formatted): For integer and enum types
10700 that are longer than LONGEST, perform processing via appropriate
10701 print_*_chars routines.
10702
10703 2004-02-26 Andrew Cagney <cagney@redhat.com>
10704
10705 * Makefile.in: Update dependencies.
10706 Changes from Ulrich Weigand,
10707 * s390-tdep.c: Include "dwarf2-frame.h".
10708 (s390_dwarf2_frame_init_reg): New function.
10709 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
10710 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
10711
10712 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
10713
10714 * breakpoint.c (pending_break_support): New setting variable.
10715 (break_command_1): Account for pending_break_support setting
10716 when creating pending breakpoints.
10717 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
10718 (_initialize_breakpoint): Add "set breakpoint pending" and
10719 "show breakpoint pending" commands.
10720
10721 2004-02-26 Andrew Cagney <cagney@redhat.com>
10722
10723 Fix PR i18n/1570.
10724 * charset.c (backslashable, backslashed, represented): Remove 'e'
10725 from list of escaped characters, not part of ISO-C.
10726
10727 2004-02-25 J. Brobecker <brobecker@gnat.com>
10728
10729 From Peter Schauer <schauer@pdf.de>:
10730 * tui/tui.c: Move system header includes after local includes.
10731 Fixes a build failure on solaris systems.
10732
10733 2004-02-25 J. Brobecker <brobecker@gnat.com>
10734
10735 * configure.in: Refine the previous change.
10736 * configure: Regenerate.
10737
10738 2004-02-25 Mark Kettenis <kettenis@gnu.org>
10739
10740 * amd64-tdep.h: Renamed from x86-64-tdep.h.
10741 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
10742 "amd64-tdep.h" instead of "x86-64-tdep.h".
10743 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
10744 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
10745 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
10746 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
10747 and "x86-64-tdep.c".
10748 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
10749 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
10750 and "x86-64-tdep.c".
10751 * amd64bsd-nat.c: Update copyright year.
10752 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
10753 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
10754 "x86-64-tdep.h".
10755 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
10756 "x86-64-tdep.h".
10757 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
10758 "x86-64-tdep.h".
10759 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
10760 "x86-64-tdep.h".
10761 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
10762 "x86-64-tdep.h".
10763 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
10764 "x86-64-tdep.h".
10765 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
10766 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
10767 * Makefile.in (amd64_linux_tdep_h): Renamed from
10768 x86_64_linux_tdep_h.
10769 (amd64_tdep_h): Renamed from x86_64_tdep_h.
10770 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
10771 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
10772 (amd64obsd-tdep.o): Update dependencies.
10773 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
10774 dependencies.
10775 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
10776 dependencies.
10777 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
10778 amd64-linux-nat.c amd64-linux-tdep.c.
10779 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
10780 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
10781 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
10782 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
10783 amd64-tdep.o and amd64-linux-tdep.o.
10784 (TM_FILE): Set to tm-linux64.h.
10785 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
10786 (NAT_FILE): Set to nm-linux64.h.
10787 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
10788 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10789 amd64-tdep.o.
10790 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10791 amd64-tdep.o.
10792 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10793 amd64-tdep.o.
10794
10795 2004-02-25 Roland McGrath <roland@redhat.com>
10796
10797 * remote.c (remote_protocol_qPart_auxv): New variable.
10798 (init_all_packet_configs): Initialize it.
10799 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
10800 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
10801 (show_remote_cmd): Call it.
10802 (_initialize_remote): Initialize commands.
10803 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
10804 service TARGET_OBJECT_AUXV requests.
10805
10806 2004-02-25 J. Brobecker <brobecker@gnat.com>
10807
10808 * configure.in: Make sure that the wborder function is available.
10809 Otherwise, search for it in the cur_colr library.
10810 * configure: Regenerate.
10811
10812 2004-02-25 Andrew Cagney <cagney@redhat.com>
10813
10814 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
10815
10816 2004-02-25 Mark Kettenis <kettenis@gnu.org>
10817
10818 * config/i386/tm-x86-64linux.h: Tweak comments.
10819
10820 2004-02-25 Richard Sandiford <rsandifo@redhat.com>
10821
10822 * MAINTAINERS: Add self to write-after-approval list.
10823
10824 2004-02-25 Andrew Cagney <cagney@redhat.com>
10825
10826 PR cli/1566. Problem found, and fix suggested by David Allan.
10827 * cli/cli-script.c (execute_control_command): Unconditionally
10828 install a cleanup. Default "ret" to "invalid_control". Use
10829 "break" instead of "return" to escape from the switch.
10830
10831 2004-02-24 J. Brobecker <brobecker@gnat.com>
10832
10833 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
10834 with the lines macro defined in term.h on AiX.
10835 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
10836 a collision with the label_width macro defined in term.h on AiX.
10837
10838 2004-02-23 David Mosberger <davidm@hpl.hp.com>
10839
10840 Committed by Kevin Buettner <kevinb@redhat.com>.
10841
10842 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
10843 * ia64-tdep.c (ia64_write_pc): Make it a global function.
10844 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
10845 instead of ia64_write_pc().
10846 * ia64-linux-tdep.c (regcache.h): Include.
10847 (ia64_linux_write_pc): New function.
10848
10849 2004-02-23 Roland McGrath <roland@redhat.com>
10850
10851 * auxv.c (info_auxv_command): Fix typos in error messages.
10852
10853 2004-02-23 Mark Kettenis <kettenis@gnu.org>
10854
10855 * x86-64-tdep.h: Tweak comment.
10856 (enum amd64_regnum): New.
10857 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
10858 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
10859 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
10860 (X86_64_XMM1_REGNUM): Removed.
10861 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
10862 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
10863 prototypes for renamed functions.
10864 * x86-64-tdep.c: Fix typo.
10865 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
10866 register numbers.
10867 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
10868 Use constants from `enum amd64_regnum' for register numbers.
10869 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
10870 (amd64_analyze_prologue, amd64_frame_cache,
10871 amd64_sigtramp_frame_cache): Use constants from `enum
10872 amd64_regnum' for register numbers.
10873 (amd64_supply_fpregset): Adjust for renamed functions.
10874 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
10875 `enum amd64_regnum' for register numbers.
10876 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
10877 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
10878 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
10879 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
10880 (amd64_linux_fill_gregset): Adjust for renamed macros.
10881 (fetch_core_registers): Adjust for renamed functions.
10882 (amd64_linux_init_abi): Adjust for renamed functions.
10883 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
10884 renamed functions.
10885 * amd64-nat.c: Adjust for renamed macros.
10886 * amd64bsd-nat.c (fetch_inferior_registers)
10887 (store_inferior_registers): Use constants from `enum amd64_regnum'
10888 for register numbers. Adjust for renamed variables.
10889 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
10890 renamed variables.
10891 (_initialize_amd64fbsd_nat): Use constants from `enum
10892 amd64_regnum' for register numbers.
10893 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
10894 `enum amd64_regnum' for register numbers.
10895 (amd64fbsd_init_abi): Adjust for renamed functions.
10896 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
10897 `enum amd64_regnum' for register numbers.
10898 (amd64nbsd_init_abi): Adjust for renamed functions.
10899 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
10900 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
10901 `enum amd64_regnum' for register numbers.
10902 (amd64obsd_init_abi): Adjust for renamed functions.
10903 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
10904
10905 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
10906
10907 * breakpoint.c (print_one_breakpoint): Do not output spaces
10908 after printing <PENDING> for a pending breakpoint.
10909
10910 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
10911
10912 * printcmd.c (print_scalar_formatted): Initialize val_long
10913 to remove compiler warning message.
10914
10915 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
10916
10917 * defs.h (nquery, yquery): New prototypes.
10918 * breakpoint.c (break_command_1): Use new nquery interface.
10919 * utils.c (defaulted_query, nquery, yquery): New functions.
10920
10921 2004-02-23 Andrew Cagney <cagney@redhat.com>
10922
10923 * hppa-tdep.c (hppa_frame_align): New function.
10924 (hppa32_push_dummy_call): New function.
10925 (hppa64_push_dummy_call): New function.
10926 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
10927 disabled.
10928
10929 * infcall.c (legacy_push_dummy_code): Don't call deprecated
10930 FIX_CALL_DUMMY when push_dummy_call is available.
10931 (call_function_by_hand, push_dummy_code): Ditto.
10932
10933 2004-02-22 Andrew Cagney <cagney@redhat.com>
10934
10935 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
10936 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
10937 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
10938 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
10939 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
10940 call_dummy_location to ON_STACK.
10941
10942 2004-02-22 Mark Kettenis <kettenis@gnu.org>
10943
10944 * x86-64-linux-tdep.c: Tweak comment.
10945 (amd64_linux_supply_gregset): Renamed from
10946 x86_64_linux_supply_gresget.
10947 (amd64_linux_fill_gregset): Renamed from
10948 x86_64_linux_fill_gregset.
10949 (fetch_core_registers): Adjust for renamed functions.
10950 (amd64_core_fns): Renamed from x86_64_core_fns.
10951 (amd64_linux_sigtramp_start): Renamed from
10952 x86_64_linux_sigtramp_start.
10953 (amd64_linux_pc_in_sigtramp): Renamed from
10954 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
10955 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
10956 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
10957 (amd64_linux_sigcontext_addr): Renamed from
10958 x86_64_linux_sigcontext_addr.
10959 (amd64_linux_sc_reg_offset): Renamed from
10960 x86_64_linux_sc_reg_offset.
10961 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
10962 Adjust for renamed functions and variables.
10963 (_initialize_amd64_linux_tdep): Renamed from
10964 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
10965 variables.
10966 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
10967 Adjust for renamed functions.
10968
10969 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
10970 from x86_64_linux_gregset64_reg_offset.
10971 (amd64_linux_gregset32_reg_offset): Rename from
10972 x86_64_linux_gregset64_reg_offset.
10973 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
10974 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
10975 (amd64_linux_dr_set_control): Renamed from
10976 x86_64_linux_dr_set_control. Adjust for renamed functions.
10977 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
10978 Adjust for renamed functions.
10979 (amd64_linux_dr_reset_addr): Renamed from
10980 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
10981 (amd64_linux_dr_get_status): Renamed from
10982 x86_64_linux_dr_get_status. Adjust for renamed functions.
10983 (_initialize_amd64_linux_nat): Renamed from
10984 _initialize_x86_64_linux_nat. Adjust for renamed variables and
10985 functions.
10986 * config/i386/nm-x86-64linux.h: Update copyright year.
10987 Adjust for renamed functions.
10988
10989 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
10990 amd64fbsd_sigtramp_start.
10991 (amd64fbsd_sigtramp_end_addr): Renamed from
10992 amd64fbsd_sigtramp_end.
10993 (amd64fbsd_init_abi): Adjust for renamed variables.
10994 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
10995 variables.
10996 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
10997 amd64fbsd_sigtramp_start.
10998 (amd64fbsd_sigtramp_end_addr): Renamed from
10999 amd64fbsd_sigtramp_end.
11000
11001 2004-02-22 Andrew Cagney <cagney@redhat.com>
11002
11003 * hppa-tdep.c (hppa32_return_value): New function.
11004 (hppa64_return_value): New function.
11005 (hppa_gdbarch_init): Set return_value; keep disabled.
11006
11007 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
11008 struct-return and inferior function call methods.
11009
11010 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
11011 "frame-base.h".
11012 (struct hppa_frame_cache): Define.
11013 (hppa_frame_cache, hppa_frame_this_id): New functions.
11014 (hppa_frame_prev_register): New function.
11015 (hppa_frame_unwind, hppa_frame_base): New variables.
11016 (hppa_frame_unwind_sniffer): New function.
11017 (hppa_frame_base_address, hppa_unwind_pc): New function.
11018 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
11019 sniffer, and frame base sniffer; keep disabled.
11020 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
11021 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
11022
11023 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
11024 to predicates for "seriously old code".
11025
11026 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
11027 runtime if(0).
11028
11029 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
11030 unsigned.
11031 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
11032
11033 * config/pa/tm-hppa.h: Update copyright.
11034 (DEPRECATED_INIT_FRAME_PC): Delete macro.
11035 (deprecated_init_frame_pc_default): Delete declaration.
11036 (hppa_frame_init_saved_regs): Delete declaration.
11037 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
11038 * hppa-tdep.c: Include "arch-utils.h".
11039 (hppa_gdbarch_init): Set deprecated init_frame_pc
11040 and deprecated frame_init_saved_regs.
11041 (hppa_frame_init_saved_regs): Make static.
11042
11043 2004-02-22 Mark Kettenis <kettenis@gnu.org>
11044
11045 Remove old 386BSD support.
11046 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
11047 * configure.host: Remove i[34567]86-*-bsd*.
11048 * configure.tgt: Remove i[34567]86-*-bsd*.
11049 * i386b-nat.c: Removed.
11050 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
11051 (i386b-nat.o): Remove dependencies.
11052
11053 * config/i386/i386bsd.mh: Removed.
11054 * config/i386/i386bsd.mt: Removed.
11055 * config/i386/nm-i386bsd.h: Removed.
11056 * config/i386/tm-i386bsd.h: Removed.
11057 * config/i386/xm-i386bsd.h: Removed.
11058
11059 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
11060
11061 * amd64fbsd-tdep.c: Include "solib-svr4.h".
11062 (amd64fbsd_init_abi): Set link map offsets.
11063 * amd64nbsd-tdep.c: Include "slib-svr4.h".
11064 (amd64nbsd_init_abi): Set link map offsets.
11065 * amd64obsd-tdep.c: Include "solib-svr4.h".
11066 (amd64obsd_init_abi): Set link map offsets.
11067 * i386fbsd-tdep.c: Include "solib-svr4.h".
11068 (i386fbsd_init_abi): Set link map offsets.
11069 * i386nbsd-tdep.c: Include "solib-svr4.h".
11070 (i386nbsdelf_init_abi): Set link map offsets.
11071 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
11072 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
11073 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
11074 solib-legacy.o and core-aout.o. Reformat.
11075 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
11076 solib-svr4.o, solib-legacy.o. Reformat.
11077 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
11078 * config/i386/nbsdelf.mh: Reformat.
11079 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
11080 solib-svr4.o, solib-legacy.o and corelow.o.
11081 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
11082 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
11083 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
11084 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11085 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11086 (TM_FILE): Set to tm-fbsd.h.
11087 * config/i386/nbsd.mt (TDEPFILES): Reformat.
11088 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
11089 solib-svr4.o.
11090 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
11091 solib-svr4.o.
11092 (TM_FILE): Set to nm-nbsd.h.
11093 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
11094 Simplify shared library support. Don't include "elf/common.h".
11095 (SVR4_SHARED_LIBS): Don't define.
11096 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
11097 "solib.h".
11098 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
11099 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
11100 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
11101 Don't include "i386/tm-i386.h". Include "solib.h".
11102 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
11103 Don't include "i386/tm-i386.h".
11104 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
11105 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
11106 Include "i386/xm-i386.h".
11107 (HOST_LONG_DOUBLE_FORMAT): Remove.
11108
11109 Fix OpenBSD/i386 sigtramp recognition.
11110 * i386-tdep.h: Update copyright year.
11111 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
11112 (i386bsd_sigtramp_end): New prototypes.
11113 (i386fbsd_sigtramp_start_addr): Renamed from
11114 i386fbsd_sigtramp_start.
11115 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11116 (i386obsd_sigtramp_start_addr): Renamed from
11117 i386obsd_sigtramp_start.
11118 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11119 * i386bsd-tdep.c: Update copyright year.
11120 (i386bsd_pc_in_sigtramp): Make public.
11121 * i386fbsd-nat.c: Update copyright year.
11122 (_initialize_i386fbsd_nat): Adjust for renamed variables.
11123 * i386fbsd-tdep.c: Update copyright year.
11124 (i386fbsd_sigtramp_start_addr): Renamed from
11125 i386fbsd_sigtramp_start.
11126 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11127 (i386fbsdaout_init_abi): Adjust for renamed variables.
11128 * i386obsd-nat.c: Update copyright year.
11129 (_initialize_i386obsd_nat): Adjust for renamed variables.
11130 * i386obsd-tdep.c: Include "target.h".
11131 (i386obsd_page_size): New variable.
11132 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
11133 (i386obsd_sigtramp_end): New functions.
11134 (i386obsd_sigtramp_start_addr): Renamed from
11135 i386obsd_sigtramp_start.
11136 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11137 (i386obsd_init_abi): Adjust for renamed variables. Set
11138 pc_in_sigtramp, sigtramp_start and sigtramp_end.
11139 * Makefile.in (i386obsd-tdep.o): Update dependencies.
11140
11141 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
11142 trampoline change in OpenBSD kernel.
11143
11144 * amd64-nat.c: Update copyright year.
11145 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
11146 architecture from REGCACHE.
11147
11148 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
11149 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
11150
11151 2004-02-21 Mark Kettenis <kettenis@gnu.org>
11152
11153 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
11154 i[34567]86-*-openbsd3.[0-3].
11155 * config/i386/obsdaout.mh: New file.
11156
11157 * config/i386/obsd.mh (MH_FLAGS): Remove.
11158
11159 Fix PR build/1549.
11160 * i386obsd-tdep.c: Update copyright years. Include
11161 "solib-svr4.h".
11162 (i386obsd_init_abi): Don't set regset_from_core_section here.
11163 (i386obsd_aout_init_abi): New function. Set
11164 regset_from_core_section here.
11165 (i386obsd_elf_init_abi): New function.
11166 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
11167 * Makefile.in (i386obsd-tdep.o): Update dependecies.
11168 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
11169 (TM_FILE): Set to tm-nbsd.h.
11170
11171 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
11172 solib-sunos.o.
11173
11174 * solib-svr4.h: Update copyright year.
11175 (svr4_ilp32_fetch_link_map_offsets)
11176 (svr4_lp64_fetch_link_map_offsets): New prototype.
11177 * solib-svr4.c: Update copyright year.
11178 (svr4_ilp32_fetch_link_map_offsets)
11179 (svr4_lp64_fetch_link_map_offsets): New function.
11180
11181 2004-02-20 Daniel Jacobowitz <drow@mvista.com>
11182
11183 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
11184 to the partial symbol table.
11185
11186 2004-02-20 J. brobecker <brobecker@gnat.com>
11187
11188 * PROBLEMS: Add description of problem documented under gdb/1560.
11189
11190 2004-02-20 Mark Kettenis <kettenis@gnu.org>
11191
11192 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
11193 comments.
11194 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
11195 functions.
11196 (amd64obsd_init_abi): Reorder initializations. Use
11197 amd64obsd_r_reg_offset to initialize the general-purpose register
11198 set details. Set regset_from_core_section.
11199 (_initialize_amd64obsd_tdep): Rename from
11200 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
11201 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
11202 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
11203
11204 * NEWS (New native configurations): Mention OpenBSD/alpha.
11205 * configure.tgt: Add alpha*-*-openbsd*.
11206 * configure.host: Add alpha*-*-openbsd*.
11207 * alphanbsd-tdep.c: Update copyright year.
11208 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
11209
11210 2004-02-20 Andrew Cagney <cagney@redhat.com>
11211
11212 Fix PR tdep/1372.
11213 * configure.tgt: Delete target "none-*-*".
11214 * configure.host: Delete host "none-*-*".
11215 * config/none/none.mh: Delete file.
11216 * config/none/none.mt: Delete file.
11217 * config/none/xm-none.h: Delete file.
11218 * config/none/tm-none.h: Delete file.
11219 * config/none/nm-none.h: Delete file.
11220
11221 2004-02-19 Fred Fish <fnf@redhat.com>
11222
11223 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
11224 cache->uses_fp prior to setting it.
11225
11226 2004-02-19 Fred Fish <fnf@redhat.com>
11227
11228 Fix for PR breakpoint/1558.
11229 * sh-tdep.c (IS_JSR): New macro.
11230 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
11231
11232 2004-02-19 Jim Blandy <jimb@redhat.com>
11233
11234 * findvar.c (value_from_register): Doc fix.
11235
11236 2004-02-19 Jeff Johnston <jjohnstn@redhat.com>
11237
11238 * printcmd.c (print_scalar_formatted): Do not check for sizeof
11239 type being greater than sizeof of host's LONGEST. Always use
11240 unpack_long() unless format 'f' chosen.
11241
11242 2004-02-19 Joel Brobecker <brobecker@gnat.com>
11243
11244 Committed by Elena Zannoni <ezannoni@redhat.com>
11245
11246 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
11247 contains a symbol wich is the best, non-exact match for the given
11248 pc. Update comments.
11249
11250 2004-02-19 Elena Zannoni <ezannoni@redhat.com>
11251
11252 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
11253 macro, which was part of the now removed Mach 3 port.
11254 * utils.c (request_quit): Ditto.
11255
11256 2004-02-18 Mark Kettenis <kettenis@gnu.org>
11257
11258 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
11259 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
11260
11261 2004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11262
11263 Committed by Mark Kettenis <kettenis@gnu.org>.
11264
11265 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
11266 Define.
11267
11268 2004-02-18 Andrew Cagney <cagney@redhat.com>
11269
11270 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
11271 CONFIG_INSTALL and CONFIG_UNINSTALL.
11272 * configure: Re-generate.
11273 * interps.h (INTERP_TUI): Define.
11274 * Makefile.in: Update dependencies.
11275 (TUI): New macro.
11276 (tui-main.o): Specify dependencies.
11277 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
11278 * tui/tui-main.c: New file.
11279
11280 2004-02-18 Mark Kettenis <kettenis@gnu.org>
11281
11282 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
11283 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
11284 dependencies.
11285 * configure.host: Add x86_64-*-openbsd*.
11286 * configure.tgt: Add x86_64-*-openbsd*.
11287 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
11288
11289 * tui/tui.c: Don't include <malloc.h>.
11290
11291 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
11292 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
11293 amd64nbsd-tdep.c.
11294
11295 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
11296 static. Remove extraneous whitespace.
11297 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
11298 static.
11299
11300 2004-02-17 Jim Blandy <jimb@redhat.com>
11301
11302 * findvar.c (value_from_register): Doc fix.
11303
11304 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11305
11306 Committed by Jim Blandy <jimb@redhat.com>.
11307
11308 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
11309 CORE_ADDR as type for selectors. Correct types for GNU run time
11310 message lookup function to use double indirection.
11311 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
11312 * objc-lang.h (lookup_child_selector): Adapt prototype.
11313
11314 * s390-nat.c (SUBOFF): New macro.
11315 (supply_gregset, fill_gregset): Use it to handle debugging
11316 of 32-bit exectuables running under a 64-bit kernel.
11317 * s390-tdep.c: Include "solib-svr4.h".
11318 (s390_svr4_fetch_link_map_offset): New function.
11319 (s390x_svr_fetch_link_map_offset): Likewise.
11320 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
11321 * Makefile.in (s390-tdep.o): Update dependencies.
11322
11323 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
11324 "frame-unwind.h".
11325 (s390_readinstruction): Reformat. Use read_memory_nobpt.
11326 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
11327 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
11328 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
11329 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
11330 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
11331 S390_SIGNAL_FRAMESIZE,
11332 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
11333 (struct frame_extra_info): Remove.
11334 (s390_memset_extra_info): Remove.
11335 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
11336 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
11337 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
11338 (is_rse): Renamed to ...
11339 (is_rsy): ... this. Support long displacements.
11340 (is_rxe): Renamed to ...
11341 (is_rxy): ... this. Support long displacements.
11342 (compute_x_addr): Support long displacements.
11343 (struct s390_prologue_data): New data type.
11344 (s390_on_stack): Change API to use struct s390_prologue_data.
11345 (s390_store): Reimplement.
11346 (s390_load): New function.
11347 (s390_get_signal_frame_info): Remove.
11348 (s390_get_frame_info): Remove, replace by ...
11349 (s390_analyze_prolog): ... this new function.
11350 (s390_check_function_end): Remove.
11351 (s390_function_start): Remove.
11352 (s390_frameless_function_invokation): Remove.
11353 (s390_is_sigreturn): Remove.
11354 (s390_init_frame_pc_first): Remove.
11355 (s390_init_frame_extra_info): Remove.
11356 (s390_frame_init_saved_regs): Remove.
11357 (s390_frame_saved_pc_nofix): Remove.
11358 (s390_frame_saved_pc): Remove.
11359 (s390_frame_chain): Remove.
11360 (s390_fp_regnum, s390_read_fp): Remove.
11361 (s390_pop_frame_regular, s390_pop_frame): Remove.
11362 (s390_saved_pc_after_call): Remove.
11363 (s390_skip_prologue): Reimplement.
11364 (s390_in_function_epilogue_p): Support long displacements.
11365 (struct s390_unwind_cache): New data structure.
11366 (s390_frame_unwind_cache): New function.
11367 (s390_prologue_frame_unwind_cache): Likewise.
11368 (s390_backchain_frame_unwind_cache): Likewise.
11369 (s390_frame_this_id, s390_frame_prev_register): Likewise.
11370 (s390_frame_unwind): Define.
11371 (s390_frame_sniffer): New function.
11372 (struct s390_pltstub_unwind_cache): New data structure.
11373 (s390_pltstub_frame_unwind_cache): New function.
11374 (s390_pltstub_frame_this_id): Likewise.
11375 (s390_pltstub_frame_prev_register): Likewise.
11376 (s390_pltstub_frame_unwind): Define.
11377 (s390_pltstub_frame_sniffer): New function.
11378 (struct s390_sigtramp_unwind_cache): New data structure.
11379 (s390_sigtramp_frame_unwind_cache): New function.
11380 (s390_sigtramp_frame_this_id): Likewise.
11381 (s390_sigtramp_frame_prev_register): Likewise.
11382 (s390_sigtramp_frame_unwind): Define.
11383 (s390_sigtramp_frame_sniffer): New function.
11384 (s390_frame_base_address, s390_local_base_address): New functions.
11385 (s390_frame_base): Define.
11386 (s390_unwind_pc, s390_unwind_sp): New function.
11387 (s390_push_dummy_call): Use new frame base location.
11388 (s390_unwind_dummy_id): Likewise.
11389 (s390_gdbarch_init): Remove calls to:
11390 set_gdbarch_frameless_function_invocation,
11391 set_gdbarch_deprecated_init_frame_pc,
11392 set_gdbarch_deprecated_frame_chain,
11393 set_gdbarch_deprecated_frame_init_saved_regs,
11394 set_gdbarch_deprecated_pop_frame,
11395 set_gdbarch_deprecated_init_extra_frame_info,
11396 set_gdbarch_deprecated_init_frame_pc_first,
11397 set_gdbarch_deprecated_target_read_fp,
11398 set_gdbarch_deprecated_frame_saved_pc,
11399 set_gdbarch_deprecated_saved_pc_after_call,
11400 set_gdbarch_deprecated_fp_regnum.
11401 Add calls to:
11402 set_gdbarch_in_solib_call_trampoline,
11403 frame_unwind_append_sniffer,
11404 frame_base_set_default,
11405 set_gdbarch_unwind_pc,
11406 set_gdbarch_unwind_sp.
11407 * Makefile.in (s390-tdep.o): Update dependencies.
11408
11409 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
11410 (S390_STACK_FRAME_OVERHEAD): Remove.
11411 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
11412 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
11413 (s390_promote_integer_argument): Remove.
11414 (s390_cannot_extract_struct_value_address): Remove.
11415 (s390_use_struct_convention, s390_store_struct_return): Remove.
11416 (s390_extract_return_value, s390_store_return_value): Remove.
11417 (s390_return_value_convention, s390_return_value): New functions.
11418 (is_float_singleton): Handle typedefs.
11419 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
11420 Remove, replace by ...
11421 (s390_function_arg_pass_by_reference, s390_function_arg_float,
11422 s390_function_arg_integer): ... these new functions.
11423 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
11424 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
11425 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
11426 Fill in tdep->abi.
11427 Remove calls to:
11428 set_gdbarch_deprecated_store_struct_return,
11429 set_gdbarch_deprecated_extract_return_value,
11430 set_gdbarch_deprecated_store_return_value,
11431 set_gdbarch_use_struct_convention,
11432 set_gdbarch_extract_struct_value_address,
11433 set_gdbarch_deprecated_pc_in_call_dummy,
11434 set_gdbarch_deprecated_push_arguments,
11435 set_gdbarch_deprecated_save_dummy_frame_tos,
11436 set_gdbarch_deprecated_push_return_address,
11437 set_gdbarch_deprecated_sizeof_call_dummy_words,
11438 set_gdbarch_deprecated_call_dummy_words,
11439 set_gdbarch_deprecated_dummy_write_sp.
11440 Add calls to:
11441 set_gdbarch_push_dummy_call,
11442 set_gdbarch_unwind_dummy_id,
11443 set_gdbarch_return_value.
11444
11445 * config/s390/nm-linux.h: Update comments.
11446 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
11447 (STOPPED_BY_WATCHPOINT): Redefine.
11448 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
11449 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
11450 (s390_stopped_by_watchpoint): Likewise.
11451 (watch_area_cnt): Remove.
11452 * s390-nat.c: Update comments.
11453 (watch_area): Remove typedef.
11454 Global replace watch_area by struct watch_area.
11455 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
11456 (s390_stopped_by_watchpoint): Remove pid argument,
11457 use s390_inferior_tid. Add short-cut for the no watchpoint case.
11458 (s390_fix_watch_points): Remove pid argument,
11459 use s390_inferior_tid. Recompute area spanned by watchpoints.
11460 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
11461 argument. Reimplement.
11462
11463 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
11464 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
11465 (FETCH_INFERIOR_REGISTERS): Define.
11466 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
11467 core-regset.o.
11468 * config/s390/s390x.mt: Remove.
11469 * config/s390/tm-s390.h: Remove.
11470 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
11471 (TARGET_ELF64): Remove.
11472 (SKIP_TRAMPOLINE_CODE): Do not undefine.
11473 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
11474 s390*-*-* case; always set gdb_target to s390.
11475 * regformats/reg-s390.dat: Remove control registers.
11476 * regformats/reg-s390x.dat: Likewise.
11477 * s390-tdep.h: New file.
11478 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
11479 Include "inferior.h" and "s390-tdep.h".
11480 Remove private definition of offsetof.
11481 (s390_register_u_addr): Remove.
11482 (regmap_gregset, regmap_fpregset): Define.
11483 (supply_gregset, fill_gregset): Reimplement.
11484 (supply_fpregset, fill_fpregset): Likewise.
11485 (s390_inferior_tid): New function.
11486 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
11487 (fetch_inferior_registers, store_inferior_registers): Likewise.
11488 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
11489 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
11490 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
11491 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
11492 (struct gdbarch_tdep): Define.
11493 (struct s390_register_info): Define.
11494 (s390_register_info): New variable.
11495 (s390_register_name): Reimplement.
11496 (s390_register_type): New function.
11497 (s390_register_raw_size, s390x_register_raw_size): Remove.
11498 (s390_cannot_fetch_register): Remove.
11499 (s390_register_byte): Remove.
11500 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
11501 (s390_dwarf_regmap): New variable.
11502 (s390_dwarf_reg_to_regnum): New function.
11503 (s390_stab_reg_to_regnum): Remove.
11504 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
11505 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
11506 (s390_convert_register_p): Likewise.
11507 (s390_register_to_value, s390_value_to_register): Likewise.
11508 (s390_register_reggroup_p): Likewise.
11509 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
11510 s390_gregset, s390x_gregset, s390_fpregset): New variables.
11511 (s390_supply_regset, s390_regset_from_core_section): New functions.
11512 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
11513 (S390_FPR_SIZE): Likewise.
11514 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
11515 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
11516 (S390_NUM_GPRS): Move here from tm-s390.h.
11517 (S390_NUM_FPRS): Likewise.
11518 (s390_in_function_epilogue_p): New function.
11519 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
11520 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
11521 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
11522 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
11523 Replace S390_FP_REGNUM by S390_SP_REGNUM.
11524 Remove calls to:
11525 set_gdbarch_deprecated_max_register_raw_size,
11526 set_gdbarch_deprecated_max_register_virtual_size,
11527 set_gdbarch_deprecated_register_byte,
11528 set_gdbarch_cannot_fetch_register,
11529 set_gdbarch_cannot_store_register,
11530 set_gdbarch_deprecated_register_size,
11531 set_gdbarch_deprecated_register_raw_size,
11532 set_gdbarch_deprecated_register_virtual_size,
11533 set_gdbarch_deprecated_register_virtual_type,
11534 set_gdbarch_deprecated_register_bytes.
11535 Add calls to:
11536 set_gdbarch_num_pseudo_regs,
11537 set_gdbarch_register_type,
11538 set_gdbarch_convert_register_p,
11539 set_gdbarch_register_to_value,
11540 set_gdbarch_value_to_register,
11541 set_gdbarch_register_reggroup_p,
11542 set_gdbarch_regset_from_core_section,
11543 set_gdbarch_pseudo_register_read,
11544 set_gdbarch_pseudo_register_write,
11545 set_gdbarch_in_function_epilogue_p.
11546 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
11547 (s390_tdep_h): New variable.
11548
11549 2004-02-17 Jim Blandy <jimb@redhat.com>
11550
11551 * findvar.c (value_from_register): If the type has no length, just
11552 return an acceptable value --- don't report an internal error.
11553
11554 * stabsread.c (read_type): If we find any type numbers that are
11555 forward references, complain if the references aren't resolved by
11556 the time we're finished reading.
11557 (cleanup_undefined_types): Make error message more appropriate for
11558 a complaint.
11559
11560 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
11561
11562 * Makefile.in (defs_h): Remove dependency on progress_h.
11563 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
11564 progress.h.
11565 * main.c (captured_main): Delete use of START_PROGRESS and
11566 END_PROGRESS.
11567
11568 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
11569
11570 * objfiles.c (terminate_minimal_symbol_table): Add back
11571 initialization of MSYMBOL_TYPE.
11572
11573 2004-02-17 David Mosberger <davidm@hpl.hp.com>
11574
11575 Committed by Andrew Cagney.
11576 * Makefile.in (ia64_tdep_h): New macro.
11577 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
11578 (ia64-tdep.o): Likewise.
11579 * ia64-tdep.h: New file.
11580 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
11581 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
11582 (ia64_aix_sigcontext_register_address): Likewise.
11583 (ia64_linux_getunwind_table): Delete declaration.
11584 * ia64-linux-tdep.c: Likewise.
11585
11586 2004-02-17 Corinna Vinschen <vinschen@redhat.com>
11587
11588 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
11589 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
11590 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
11591
11592 2004-02-17 Andrew Cagney <cagney@redhat.com>
11593
11594 * symtab.c (skip_prologue_using_sal): New function.
11595 * symtab.h (skip_prologue_using_sal): Declare.
11596 * frv-tdep.c: Include "symtab.h".
11597 (skip_prologue_using_sal): Delete function.
11598 * mips-tdep.c (skip_prologue_using_sal): Delete function.
11599 * rs6000-tdep.c (refine_prologue_limit): Mention
11600 skip_prologue_using_sal.
11601 * ia64-tdep.c (refine_prologue_limit): Ditto.
11602 * Makefile.in: Update dependencies.
11603
11604 2004-02-16 Andrew Cagney <cagney@redhat.com>
11605
11606 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
11607 START_INFERIOR_TRAPS_EXPECTED.
11608 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
11609 START_INFERIOR_TRAPS_EXPECTED.
11610 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
11611 Delete macro.
11612 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
11613 macro, moved to "nm-osf.h". Update copyright.
11614 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
11615 update copyright.
11616
11617 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
11618 and function replacing FRAMELESS_FUNCTION_INVOCATION.
11619 * blockframe.c (legacy_frameless_look_for_prologue): Rename
11620 frameless_look_for_prologue.
11621 * frame.h (legacy_frameless_look_for_prologue): Rename
11622 frameless_look_for_prologue.
11623 * gdbarch.h, gdbarch.c: Re-generate.
11624 * sh64-tdep.c (sh64_gdbarch_init): Update.
11625 * sh-tdep.c (sh_gdbarch_init): Update.
11626 * s390-tdep.c (s390_gdbarch_init): Update.
11627 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11628 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11629 * m68k-tdep.c (m68k_gdbarch_init): Update.
11630 (delta68_frame_args_address): Update.
11631 * m32r-tdep.c (m32r_gdbarch_init): Update.
11632 * hppa-tdep.c (hppa_gdbarch_init): Update.
11633 * h8300-tdep.c (h8300_gdbarch_init): Update.
11634 * frv-tdep.c (frv_gdbarch_init): Update.
11635 (frv_frameless_function_invocation): Update.
11636 * cris-tdep.c (cris_gdbarch_init): Update.
11637 (cris_frameless_function_invocation): Update.
11638 * avr-tdep.c (avr_gdbarch_init): Update.
11639 * arm-tdep.c (arm_gdbarch_init): Update.
11640 * stack.c (frame_info): Update, call predicate.
11641 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
11642 * frame.c (legacy_get_prev_frame): Update, call predicate..
11643 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
11644 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
11645 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
11646 invocation.
11647 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11648 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11649 * vax-tdep.c (vax_gdbarch_init): Ditto.
11650
11651 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
11652 function.
11653
11654 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
11655
11656 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
11657 initializations.
11658
11659 2004-02-16 Andrew Cagney <cagney@redhat.com>
11660
11661 * tui/tui-windata.c: Include "gdb_string.h".
11662 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
11663 * tui/tui-layout.c, tui/tui-command.c: Ditto.
11664 * Makefile.in: Update dependencies.
11665
11666 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
11667
11668 * Makefile.in (infrun.o): Add $(gdb_assert_h).
11669 * infrun.c: Include "gdb_assert.h".
11670 (singlestep_ptid, saved_singlestep_ptid)
11671 (stepping_past_singlestep_breakpoint): New variables.
11672 (resume): Set singlestep_ptid. Check for singlestep thread
11673 hop.
11674 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
11675 (handle_inferior_event): Handle singlestep thread hop.
11676
11677 2004-02-16 Andrew Cagney <cagney@redhat.com>
11678
11679 * dwarf2-frame.c (dwarf2_frame_ops): New function.
11680 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
11681 (dwarf2_frame_init_reg): Ditto.
11682
11683 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
11684 suggested by Joshua Neuheisel
11685
11686 * configure.in: Always check for curses, including pdcurses.
11687 Warn, instead of error, when no curses are found. Enable TUI when
11688 curses is available.
11689 * configure: Re-generate.
11690
11691 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
11692
11693 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
11694 sh_sh4_register_convert_to_virtual.
11695 (sh_register_convert_to_raw): Rename from
11696 sh_sh4_register_convert_to_raw.
11697 (sh_pseudo_register_read): Accomodate above name change.
11698 (sh_pseudo_register_write): Ditto.
11699
11700 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
11701
11702 * sh-tdep.c (sh_generic_register_name): Remove.
11703 (sh_gdbarch_init): Use sh_sh_register_name in default case.
11704
11705 2004-02-15 Andrew Cagney <cagney@redhat.com>
11706
11707 * configure.in (build_warnings): Add -Wunused-function.
11708 * configure: Re-generate.
11709
11710 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
11711 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
11712
11713 * procfs.c (procfs_init_inferior): Assume that
11714 START_INFERIOR_TRAPS_EXPECTED is defined.
11715 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
11716 * config/ns32k/tm-nbsd.h: Delete file,
11717 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
11718
11719 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
11720 * config/vax/tm-vax.h: Delete file.
11721
11722 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11723 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11724 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11725 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11726 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
11727 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11728 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
11729
11730 2004-02-15 Mark Kettenis <kettenis@gnu.org>
11731
11732 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
11733 * dwarf2-frame.c (dwarf2_frame_data): New variable.
11734 (struct dwarf2_frame_ops): New.
11735 (dwarf2_frame_default_init_reg): New function, based on
11736 dwarf2_frame_init_reg.
11737 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
11738 (dwarf2_frame_init_reg): Call architecture-specific function.
11739 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
11740 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
11741 instead of dwarf2_frame_data.
11742 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
11743 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
11744
11745 2004-02-15 Andrew Cagney <cagney@redhat.com>
11746
11747 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
11748 register_gdbarch_swap.
11749 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
11750 * f-lang.c (_initialize_f_language): Update, use
11751 DEPRECATED_REGISTER_GDBARCH_SWAP.
11752 * remote.c (_initialize_remote): Ditto.
11753 * regcache.c (_initialize_regcache): Ditto.
11754 * parse.c (_initialize_parse): Ditto.
11755 * infrun.c (_initialize_infrun): Ditto.
11756 * mi/mi-main.c (_initialize_mi_main): Ditto.
11757 * gdbtypes.c (_initialize_gdbtypes): Ditto.
11758
11759 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
11760 poking .cacheable directly.
11761 * symfile.c (symfile_bfd_open): Ditto.
11762
11763 * Makefile.in: Update all dependencies.
11764
11765 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
11766 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
11767 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
11768 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
11769 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
11770
11771 2004-02-14 Andrew Cagney <cagney@redhat.com>
11772
11773 * arch-utils.c (legacy_convert_register_p): Check
11774 DEPRECATED_REGISTER_CONVERTIBLE_P.
11775 * findvar.c (value_of_register): Ditto.
11776
11777 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
11778 * gdbarch.h, gdbarch.c: Re-generate.
11779 * arch-utils.c (deprecated_register_convertible_not): Delete.
11780 * arch-utils.h (deprecated_register_convertible_not): Delete.
11781 * mi/mi-main.c (get_register): Update. Update copyright.
11782 * infcmd.c (default_print_registers_info): Update.
11783
11784 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
11785 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
11786 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
11787 * gdbarch.h, gdbarch.c: Re-generate.
11788 * frame.c (deprecated_get_next_frame_hack): Delete function.
11789 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
11790 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
11791 Update.
11792 * infcall.c (call_function_by_hand): Update.
11793
11794 2004-02-14 Elena Zannoni <ezannoni@redhat.com>
11795
11796 * symfile.c (init_entry_point_info, entry_point_address): Move
11797 from here...
11798 * objfiles.c (init_entry_point_info, entry_point_address):..to
11799 here.
11800 * symfile.h (init_entry_point_info, entry_point_address): Remove
11801 prototypes.
11802 * objfiles.h (init_entry_point_info, entry_point_address):Add
11803 prototypes.
11804 * cris-tdep.c: Remove include of symfile.h. Add include of
11805 objfiles.h.
11806 * infcall.c: Ditto.
11807 * mcore-tdep.c: Ditto.
11808 * mn10300-tdep.c: Ditto.
11809 * sh64-tdep.c: Ditto.
11810 * v850-tdep.c: Ditto.
11811 * arm-tdep.c: Remove include of symfile.h.
11812 * blockframe.c: Ditto.
11813 * coffread.c: Ditto.
11814 * dbxread.c: Ditto.
11815 * dwarf2read.c: Ditto.
11816 * dwarfread.c: Ditto.
11817 * frv-tdep.c: Ditto.
11818 * ia64-tdep.c: Ditto.
11819 * mdebugread.c: Ditto.
11820 * mipsread.c: Ditto.
11821 * rs6000-tdep.c: Ditto.
11822 * s390-tdep.c: Ditto.
11823 * sh-tdep.c: Ditto.
11824 * xstormy16-tdep.c: Ditto.
11825 * gdbarch.sh: Remove include of symfile.h.
11826 * gdbarch.c: Regenerate.
11827 * solib-irix.c (enable_break): Use entry_point_address().
11828 Add comment about include file.
11829 * xcoffread.c: Add comment about include file.
11830 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
11831 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
11832 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
11833 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
11834 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
11835
11836 2004-02-13 Andrew Cagney <cagney@redhat.com>
11837
11838 * corelow.c (core_xfer_partial): Use "struct bfd_section".
11839 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
11840 copyright.
11841 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
11842
11843 2004-02-12 Fred Fish <fnf@redhat.com>
11844
11845 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
11846 set_gdbarch_store_return_value.
11847
11848 2004-02-12 Andrew Cagney <cagney@redhat.com>
11849
11850 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
11851 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
11852 (interrupt_query): Ditto.
11853 (ofunc): Delete unused variable.
11854 * cris-tdep.c (cris_abi): Delete unused function.
11855 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
11856 (cris_get_wide_opcode, cris_get_short_size): Ditto.
11857 (cris_get_asr_quick_shift_steps): Ditto.
11858 (cris_skip_prologue_frameless_p): Ditto.
11859 * arm-tdep.c (arm_push_return_address): Delete unused function.
11860 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
11861 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
11862 * s390-tdep.c (s390_function_start): Delete unused function.
11863
11864 2004-02-12 Andrew Cagney <cagney@redhat.com>
11865
11866 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
11867 gdbarch.h, gdbarch.c: Re-generate.
11868 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
11869 to generic_prologue_frameless_p.
11870 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
11871 * arch-utils.c (generic_prologue_frameless_p): Delete function.
11872
11873 2004-02-11 Daniel Jacobowitz <drow@mvista.com>
11874
11875 * mips-linux-tdep.c: Include "frame.h".
11876 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
11877 (mips_linux_skip_resolver): New functions.
11878 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
11879 and set_gdbarch_in_solib_call_trampoline.
11880 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
11881 to after set_gdbarch_in_solib_return_trampoline. Only set the
11882 solib hooks to mips16 functions if the OS ABI is unknown.
11883 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
11884 including "config/tm-linux.h".
11885 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
11886 * Makefile.in (mips-linux-tdep.o): Update.
11887
11888 2004-02-11 David Carlton <carlton@kealia.com>
11889
11890 * linespec.c (decode_compound): Only look for a class symbol when
11891 considering all but the rightmost component.
11892
11893 2004-02-11 Andrew Cagney <cagney@redhat.com>
11894
11895 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
11896 abi code are are separatly grouped.
11897
11898 2004-02-11 Andrew Cagney <cagney@redhat.com>
11899
11900 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
11901 * gdbarch.h, gdbarch.c: Re-generate.
11902 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11903 * v850-tdep.c (v850_gdbarch_init): Update.
11904 * sh64-tdep.c (sh64_gdbarch_init): Update.
11905 * sh-tdep.c (sh_gdbarch_init): Update.
11906 * s390-tdep.c (s390_gdbarch_init): Update.
11907 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11908 * mips-tdep.c (mips_gdbarch_init): Update.
11909 * mcore-tdep.c (mcore_gdbarch_init): Update.
11910 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11911 * m32r-tdep.c (m32r_gdbarch_init): Update.
11912 * ia64-tdep.c (ia64_gdbarch_init): Update.
11913 * hppa-tdep.c (hppa_gdbarch_init): Update.
11914 * h8300-tdep.c (h8300_gdbarch_init): Update.
11915 * frv-tdep.c (frv_gdbarch_init): Update.
11916 * d10v-tdep.c (d10v_gdbarch_init): Update.
11917 * cris-tdep.c (cris_gdbarch_init): Update.
11918 * avr-tdep.c (avr_gdbarch_init): Update.
11919 * arm-tdep.c (arm_gdbarch_init): Update.
11920 * alpha-tdep.c (alpha_gdbarch_init): Update.
11921
11922 2004-02-11 Corinna Vinschen <vinschen@redhat.com>
11923
11924 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
11925 comma.
11926 (sh_sh4al_dsp_register_name): Ditto.
11927
11928 2004-02-10 Andrew Cagney <cagney@redhat.com>
11929
11930 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
11931 (mips_init_frame_pc_first): Delete function.
11932 (mips_frame_saved_pc): Delete function.
11933 (mips_frame_chain): Delete function.
11934 (mips_init_extra_frame_info): Delete function.
11935 (mips_xfer_register): Delete unused variable "reg".
11936 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
11937 (mips_n32n64_return_value): Delete unused variable "reg".
11938 (mips_n32n64_return_value): Delete unused variable "pos".
11939 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
11940 (mips_o32_return_value): Delete unused variable "pos".
11941 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
11942 (mips_print_fp_register): Delete unused variable "namelen"
11943 (mips_print_fp_register): Delete unused variable "flt2"
11944 (get_frame_pointer): Delete function.
11945 (cached_proc_desc): Delete static variable.
11946 (mips_pop_frame): Delete function.
11947 (mips_find_saved_regs): Delete function.
11948 (mips_get_saved_register): Delete function.
11949 (mips_saved_pc_after_call): Delete function.
11950 (SIGFRAME_BASE): Delete macro.
11951 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
11952 (SIGFRAME_PC_OFF): Delete macro.
11953 (SIGFRAME_REGSAVE_OFF): Delete macro.
11954 (mips_dump_tdep): Do not print deleted macro definitions.
11955
11956 2004-02-10 Andrew Cagney <cagney@redhat.com>
11957
11958 * Makefile.in (SFILES): Remove explictly listed tui files.
11959 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
11960
11961 2004-02-10 Jeff Johnston <jjohnstn@redhat.com>
11962
11963 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
11964 to use paddr functions to format ia64 addresses and long values.
11965 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
11966 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
11967 (get_kernel_table, ia64_find_proc_info_x): Ditto.
11968 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
11969 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
11970
11971 2004-02-10 Andrew Cagney <cagney@redhat.com>
11972
11973 * defs.h: Do not include "tui.h".
11974 * gdb_curses.h: New file.
11975 * tui/tui-hooks.h: New file.
11976 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
11977 (tui_install_hooks, tui_remove_hooks): Delete declarations.
11978 (tui_initialize_io): Delete declaration.
11979 (tui_initialize_readline: Delete redundant declaration.
11980 (struct tui_point): Delete definition.
11981 * tui/tui-data.h (struct tui_point): Define.
11982 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
11983 * utils.c: Include "tui/tui.h".
11984 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
11985 * printcmd.c [TUI]: Include "tui/tui.h".
11986 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
11987 * tui/tui-command.c: Include "gdb_curses.h".
11988 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
11989 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
11990 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
11991 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
11992 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
11993 * Makefile.in: Update all dependencies.
11994 (tui_hooks_h, gdb_curses_h): Define.
11995 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
11996
11997 2004-02-10 Elena Zannoni <ezannoni@redhat.com>
11998
11999 * objfiles.h (struct objfile): Remove unused fields auxf1 and
12000 auxf2. Add comments about some other rarely used fields.
12001
12002 2004-02-10 Andrew Cagney <cagney@redhat.com>
12003
12004 * Makefile.in (init.c): Fix script removing duplicates. Problem
12005 reported by Peter Schauer.
12006
12007 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
12008
12009 * bcache.c (bcache_xmalloc): Use obstack_init instead of
12010 obstack_specify_allocation.
12011 * objfiles.c (allocate_objfile): Ditto.
12012 * solib-sunos.c (solib_add_common_symbols)
12013 (allocate_rt_common_objfile): Ditto.
12014 * symfile.c (reread_symbols): Ditto.
12015 * gdb_obstack.h: Add comment.
12016
12017 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
12018
12019 * linespec.c (decode_line_1, locate_first_half)
12020 (decode_compound, lookup_prefix_sym): Update comments. Delete old
12021 commented out code.
12022
12023 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
12024
12025 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
12026 obstack_free.
12027
12028 2004-02-09 Andrew Cagney <cagney@redhat.com>
12029
12030 * blockframe.c (find_pc_partial_function): If find_pc_overlay
12031 fails, try find_pc_section. Fix PR c++/1267.
12032 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
12033 instead of find_pc_mapped_section.
12034 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
12035 not default to the section containing PC. Fix PR symtab/1519.
12036
12037 2004-02-09 Andrew Cagney <cagney@redhat.com>
12038
12039 * Makefile.in (mips-tdep.o): Update dependencies.
12040 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
12041 "trad-frame.h".
12042 (mips_unwind_pc): Return the pseudo PC register.
12043 (mips_unwind_dummy_id): New function.
12044 (mips16_fetch_instruction): New function.
12045 (mips32_fetch_instruction): New function.
12046 (struct mips_frame_cache): Define.
12047 (mips_mdebug_frame_cache): New function.
12048 (mips_mdebug_frame_this_id): New function.
12049 (mips_mdebug_frame_prev_register): New function.
12050 (mips_mdebug_frame_unwind): Define.
12051 (mips_mdebug_frame_sniffer): New function.
12052 (mips_mdebug_frame_base_address): New function.
12053 (mips_mdebug_frame_base): Define.
12054 (mips_mdebug_frame_base_sniffer): New function.
12055 (mips_gdbarch_init): Append unwind and base sniffers. Set
12056 unwind_dummy_id.
12057
12058 2004-02-08 Andrew Cagney <cagney@redhat.com>
12059
12060 * frame.c: Print both the register number and name.
12061
12062 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
12063 and a sed into a single sed. Make .c and .o patterns more robust.
12064 (OBS): Delete.
12065 (INIT_FILES): Replace OBS with COMMON_OBS.
12066 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
12067
12068 2004-02-08 Mark Kettenis <kettenis@gnu.org>
12069
12070 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
12071 the PT_WCOOKIE request.
12072
12073 2004-02-08 Andrew Cagney <cagney@redhat.com>
12074
12075 * mips-tdep.c (mips_unwind_pc): New function.
12076 (mips_gdbarch_init): Set mips_unwind_pc.
12077
12078 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
12079 (get_frame_id): Allow the UNKNOWN_FRAME.
12080 (frame_register_unwind, get_frame_type): Ditto.
12081
12082 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
12083 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
12084 unwind_dummy_id indicates a legacy frame.
12085
12086 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
12087 * configure: Re-generate.
12088
12089 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
12090 methods.
12091
12092 2004-02-08 Andrew Cagney <cagney@redhat.com>
12093
12094 * configure.in (CONFIG_ALL): Set to Makefile target, and not
12095 makefile macro.
12096 * configure: Re-generate.
12097 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
12098 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
12099 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
12100 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
12101 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
12102 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
12103 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
12104 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
12105 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
12106 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
12107
12108 2004-02-07 Andrew Cagney <cagney@redhat.com>
12109
12110 * Makefile.in: Update all dependencies.
12111
12112 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
12113 * configure: Re-generate.
12114 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
12115 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
12116 (COMMON_OBS): Add "main.o" and "annotate.o".
12117 (ANNOTATE_OBS): Delete.
12118 (OBS): Remove ANNOTATE_OBS.
12119 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
12120 CONFIG_INITS.
12121 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
12122 against CONFIG_OBS and "main.o".
12123 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
12124 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
12125
12126 * tui/tui-command.c: Include "gdb_string.h", delete register
12127 attribute, use ISO-C function signatures.
12128 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
12129 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
12130 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
12131 * tui/tui.c: Ditto.
12132
12133 * tui/tui-command.c: Change variable and function names to lower
12134 case.
12135 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
12136 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
12137 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
12138 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12139 * tui/tui-winsource.c, tui/tui.c: Ditto.
12140
12141 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
12142
12143 * buildsym.c (free_pending_blocks, finish_block)
12144 (record_pending_block, make_blockvector, end_symtab): Replace
12145 symbol_obstack with objfile_obstack.
12146 * coffread.c (process_coff_symbol, coff_read_struct_type)
12147 (coff_read_enum_type): Ditto.
12148 * cp-namespace.c (initialize_namespace_symtab)
12149 (check_one_possible_namespace_symbol): Ditto.
12150 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
12151 (dwarf2_symbol_mark_computed): Ditto.
12152 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
12153 * elfread.c (elf_symtab_read): Ditto.
12154 * hpread.c (hpread_symfile_init, hpread_symfile_init)
12155 (hpread_read_enum_type, hpread_read_function_type)
12156 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
12157 Ditto.
12158 * jv-lang.c (get_java_class_symtab, add_class_symbol)
12159 (java_link_class_type): Ditto.
12160 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
12161 (new_symbol): Ditto.
12162 * minsyms.c (install_minimal_symbols): Ditto.
12163 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
12164 (terminate_minimal_symbol_table): Replace symbol_obstack with
12165 objfile_obstack.
12166 (free_objfile): Remove freeing of symbol_obstack.
12167 * objfiles.h: Remove symbol_obstack field.
12168 * pa64solib.c (add_to_solist): Replace symbol_obstack with
12169 objfile_obstack.
12170 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
12171 symbol_obstack.
12172 (solib_add_common_symbols): Replace symbol_obstack with
12173 objfile_obstack.
12174 * somsolib.c (som_solib_add): Ditto.
12175 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
12176 (common_block_start, common_block_end): Ditto.
12177 * symfile.c (reread_symbols): Remove freeing and init of
12178 symbol_obstack.
12179 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
12180 * symfile.h: Update comment.
12181 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
12182 stats printing.
12183 * symtab.c (symbol_set_names): Replace symbol_obstack with
12184 objfile_obstack.
12185 * symtab.h (struct general_symbol_info, struct minimal_symbol):
12186 Update comments.
12187 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
12188 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
12189 objfile_obstack.
12190
12191 2004-02-07 Andrew Cagney <cagney@redhat.com>
12192
12193 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
12194 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
12195 fields and variables.
12196 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
12197 (m_beInvisible): Delete macro.
12198 * tui/tui-data.h: Fix case case fields and variables.
12199 (m_genWinPtrIsNull): Delete macro.
12200 (tui_win_list): Rename winList.
12201 (TUI_SRC_WIN): Rename srcWin.
12202 (TUI_DISASM_WIN): Rename disassemWin.
12203 (TUI_DATA_WIN): Rename dataWin.
12204 (TUI_CMD_WIN): Rename cmdWin.
12205 (m_genWinPtrNotNull): Delete macro.
12206 (m_winPtrIsNull): Delete macro.
12207 (m_winPtrNotNull): Delete macro.
12208 (tui_win_is_source_type): Replace m_winIsSourceType
12209 (tui_win_is_auxillary): Replace m_winIsAuzillary.
12210 (tui_win_has_locator): Replace m_hasLocator.
12211 (tui_set_win_highlight): Replace m_setWinHighlightOn and
12212 m_setWinHighlightOff.
12213 * tui/tui-data.c: Update references.
12214 (tui_win_is_source_type, tui_set_win_highlight): New functions.
12215 (tui_win_has_locator, tui_win_is_auxillary): New functions.
12216 * tui/tui-command.c, tui/tui-disasm.c: Update references.
12217 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
12218 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
12219 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12220 * tui/tui-winsource.c, tui/tui.c: Ditto.
12221
12222 2004-02-07 Mark Kettenis <kettenis@gnu.org>
12223
12224 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
12225 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
12226 StackGhost.
12227
12228 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
12229 variable `i6' to `i7'.
12230 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
12231
12232 2004-02-07 Andrew Cagney <cagney@redhat.com>
12233
12234 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
12235 (TuiPoint, TuiPointPtr): Ditto.
12236 (TuiStatus, TuiStatusPtr): Ditto.
12237 (TuiWinType, TuiWinTypePtr): Ditto.
12238 (struct tui_point): Rename _TuiPoint.
12239 (tui_get_low_disassembly_address): Rename
12240 tuiGetLowDisassemblyAddress.
12241 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
12242 (tuiFree): Delete declaration.
12243 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
12244 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
12245 * tui/tui.c (tuiFree): Delete function.
12246 * cli/cli-cmds.c (disassemble_command): Update references.
12247 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
12248 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
12249 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
12250 * tui/tui-winsource.c: Ditto.
12251
12252 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
12253
12254 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
12255 coffstab_build_psymtabs, elfstab_build_psymtabs)
12256 (stabsect_build_psymtabs): Replace psymbol_obstack with
12257 objfile_obstack.
12258 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
12259 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
12260 Ditto.
12261 * dwarfread.c (scan_compilation_units): Ditto.
12262 * elfread.c (elfstab_offset_sections): Ditto.
12263 * hppa-tdep.c (read_unwind_info): Ditto.
12264 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
12265 (hpread_end_psymtab): Ditto.
12266 * mdebugread.c (mdebug_build_psymtabs, add_pending)
12267 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
12268 Ditto.
12269 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
12270 * objfiles.c (add_to_objfile_sections)
12271 (build_objfile_section_table): Ditto.
12272 (allocate_objfile): Remove init of psymbol_obstack.
12273 (free_objfile): Remove freeing of psymbol_obstack.
12274 * objfiles.h (struct objfile): Remove field
12275 psymbol_obstack. Update comments.
12276 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
12277 psymbol_obstack with objfile_obstack.
12278 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
12279 psymbol_obstack.
12280 * somread.c (som_symfile_offsets, init_import_symbols)
12281 (init_export_symbols): Replace psymbol_obstack with
12282 objfile_obstack.
12283 * somsolib.c (som_solib_add_solib_objfile): Ditto.
12284 * symfile.c (default_symfile_offsets, syms_from_objfile)
12285 (reread_symbols): Remove freeing and init of psymbol_obstack.
12286 (cashier_psymtab): Update comment.
12287 * symmisc.c (print_objfile_statistics): Don't report stats for
12288 psymbol obstack.
12289 * symtab.h (struct general_symbol_info, struct partial_symtab):
12290 Update comments.
12291 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
12292 (xcoff_symfile_offsets): Replace psymbol_obstack with
12293 objfile_obstack.
12294
12295 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
12296
12297 * objfiles.h (struct objfile): Add objfile_obstack field.
12298 Remove type_obstack field.
12299
12300 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
12301 read_structure_scope read_enumeration, new_symbol): Replace
12302 type_obstack with objfile_obstack.
12303 * dwarfread.c (struct_type, enum_type): Ditto.
12304 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
12305 (lookup_fundamental_type): Ditto.
12306 * gdbtypes.h (TYPE_ALLOC): Ditto.
12307 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
12308 (hpread_read_doc_function_type, hpread_read_struct_type)
12309 (fix_static_member_physnames, hpread_read_array_type)
12310 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
12311 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
12312 (java_link_class_type): Ditto.
12313 * mdebugread.c (parse_type): Ditto.
12314 * objfiles.c (allocate_objfile, free_objfile): Ditto.
12315 * solib-sunos.c (solib_add_common_symbols): Ditto.
12316 * stabsread.c (define_symbol, read_type, read_member_functions,
12317 read_cpp_abbrev, read_one_struct_field): Ditto.
12318 * symfile.c (reread_symbols): Ditto.
12319 * symmisc.c (print_objfile_statistics): Ditto.
12320
12321 2004-02-07 Andrew Cagney <cagney@redhat.com>
12322
12323 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
12324 (tui_exec_info_content): Rename TuiExecInfoContent.
12325 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
12326 (TuiWinInfo, TuiWinInfoPtr): Ditto.
12327 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
12328 (TuiList, TuiListPtr): Ditto.
12329 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
12330 (TuiDataType, TuiDataTypePtr): Ditto.
12331 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
12332 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
12333 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
12334 (TuiSourceElement, TuiSourceElementPtr): Ditto.
12335 (TuiDataElement, TuiDataElementPtr): Ditto.
12336 (TuiWinElement, TuiWinElementPtr): Ditto.
12337 (TuiDataInfo, TuiDataInfoPtr): Ditto.
12338 (TuiCommandElement, TuiCommandElementPtr): Ditto.
12339 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
12340 (TuiWhichElement, TuiWhichElementPtr): Ditto.
12341 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
12342 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
12343 * tui/tui-command.c, tui/tui-data.c: Update references.
12344 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
12345 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
12346 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12347 * tui/tui-winsource.c, tui/tui.c: Ditto.
12348
12349 2004-02-07 Mark Kettenis <kettenis@gnu.org>
12350
12351 * dwarf2-frame.h: Update copyright.
12352 (enum dwarf2_frame_reg_rule): New.
12353 (struct dwarf2_frame_state_reg): New.
12354 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
12355 * dwarf2-frame.c: Update copyright.
12356 (enum dwarf2_reg_rule): Remove.
12357 (struct dwarf2_frame_state): Remove defenition of `struct
12358 dwarf2_frame_state_reg'.
12359 (read_reg): Call get_frame_arch to get the architecture instead of
12360 using CURRENT_GDBARCH.
12361 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
12362 DWARF2_FRAME_.
12363 (dwarf2_frame_init_reg): New function.
12364 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
12365 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
12366 initialize the register state. Prefix old `enum dwarf2_reg_rule'
12367 tags with DWARF2_FRAME_.
12368 (dwarf2_frame_prev_register): Call get_frame_arch to get the
12369 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
12370 dwarf2_reg_rule' tags with DWARF2_FRAME_.
12371
12372 2004-02-06 Andrew Cagney <cagney@redhat.com>
12373
12374 * tui/tui-data.h (struct tui_list): Rename _TuiList.
12375 (enum tui_data_type): Rename _TuiDataType.
12376 (struct tui_layout_def): Rename _TuiLayoutDef.
12377 (struct tui_source_element): Rename _TuiSourceElement.
12378 (struct tui_data_element): Rename _TuiDataElement.
12379 (struct tui_command_element): Rename _TuiCommandElement.
12380 (struct tui_locator_element): Rename _TuiLocatorElement.
12381 (union tui_which_element): Define.
12382 (struct tui_win_element): Rename _TuiWinElement.
12383 (struct tui_data_info): Rename _TuiDataInfo.
12384 (struct tui_source_info): Rename _TuiSourceInfo.
12385 (struct tui_command_info): Rename _TuiCommandInfo.
12386 (tui_initialize_static_data): Rename initializeStaticData.
12387 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
12388 (tui_alloc_win_info): Rename allocWinInfo.
12389 (tui_init_generic_part): Rename initGenericPart.
12390 (tui_init_win_info): Rename initWinInfo.
12391 (tui_alloc_content): Rename allocContent.
12392 (tui_add_content_elements): Rename addContentElements.
12393 (tui_init_content_element): Rename initContentElement.
12394 (tui_free_window): Rename freeWindow.
12395 (tui_free_win_content): Rename freeWinContent.
12396 (tui_free_data_content): Rename freeDataContent.
12397 (tui_free_all_source_wins_content): Rename
12398 freeAllSourceWinsContent.
12399 (tui_del_window): Rename tuiDelWindow.
12400 (tui_del_data_windows): Rename tuiDelDataWindows.
12401 (tui_partial_win_by_name): Rename partialWinByName.
12402 (tui_win_name): Rename winName.
12403 (tui_current_layout): Rename currentLayout.
12404 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
12405 (tui_term_height): Rename termHeight.
12406 (tui_set_term_height_to): Rename setTermHeightTo.
12407 (tui_term_width): Rename termWidth.
12408 (tui_set_term_width_to): Rename setTermWidthTo.
12409 (tui_set_gen_win_origin): Rename setGenWinOrigin.
12410 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
12411 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
12412 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
12413 (tui_source_windows): Rename sourceWindows.
12414 (tui_clear_source_windows): Rename clearSourceWindows.
12415 (tui_clear_source_windows_detail): Rename
12416 clearSourceWindowsDetail.
12417 (tui_clear_win_detail): Rename clearWinDetail.
12418 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
12419 (tui_default_tab_len): Rename tuiDefaultTabLen.
12420 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
12421 (tui_win_with_focus): Rename tuiWinWithFocus.
12422 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
12423 (tui_layout_def): Rename tuiLayoutDef.
12424 (tui_win_resized): Rename tuiWinResized.
12425 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
12426 (tui_next_win): Rename tuiNextWin.
12427 (tui_prev_win): Rename tuiPrevWin.
12428 (tui_add_to_source_windows): Rename addToSourceWindows.
12429 * tui/tui-winsource.c, tui/tui-win.c: Update references.
12430 * tui/tui-layout.c, tui/tui-source.c: Ditto.
12431 * tui/tui-stack.c, tui/tui-io.c: Ditto.
12432 * tui/tui.c, tui/tui-data.c: Ditto.
12433 * tui/tui-interp.c, tui/tui-data.c: Ditto.
12434 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
12435
12436 * tui/tui-source.h: Update copyright. Include "tui-data.h".
12437 (struct symtab): Declare.
12438 (tui_set_source_content): Rename tuiSetSourceContent.
12439 (tui_show_symtab_source): Rename tuiShowSource.
12440 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
12441 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
12442 * tui/tui-source.c: Update copyright. Update references.
12443 * tui/tui-win.c, tui/tui-winsource.c: Update references.
12444 * tui/tui-stack.c: Update references.
12445
12446 * tui/tui-win.h: Update copyright. Include "tui-data.h".
12447 (struct tui_win_info): Declare.
12448 (tui_scroll_forward): Rename tuiScrollForward.
12449 (tui_scroll_backward): Rename tuiScrollBackward.
12450 (tui_scroll_left): Rename tuiScrollLeft.
12451 (tui_scroll_right): Rename tuiScrollRight.
12452 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
12453 (tui_resize_all): Rename tuiResizeAll.
12454 (tui_refresh_all_win): Rename tuiRefreshAll.
12455 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
12456 * tui/tui-layout.c, * tui/tui-io.c: Update references.
12457 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
12458 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
12459
12460 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
12461 (tui_erase_data_content): Rename tuiEraseDataContent.
12462 (tui_display_all_data): Rename tuiDisplayAllData.
12463 (tui_check_data_values): Rename tuiCheckDataValues.
12464 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
12465 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
12466 (tui_first_data_element_no_in_line): Rename
12467 tuiFirstDataElementNoInLine.
12468 (tui_delete_data_content_windows): Rename
12469 tuiDeleteDataContentWindows.
12470 (tui_refresh_data_win): Rename tuiRefreshDataWin.
12471 (tui_display_data_from): Rename tuiDisplayDataFrom.
12472 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
12473 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
12474 * tui/tui-win.c, tui/tui-regs.c: Update references.
12475 * tui/tui-layout.c, tui/tui.c: Update references.
12476
12477 * tui/tui-wingeneral.h: Update copyright.
12478 (m_allBeVisible): Delete macro.
12479 (m_allBeInvisible): Delete macro.
12480 (struct tui_gen_win_info): Declare.
12481 (struct tui_win_info): Declare.
12482 (tui_unhighlight_win): Rename unhighlightWin.
12483 (tui_make_visible, tui_make_invisible): Replace makeVisible.
12484 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
12485 (tui_make_window): Rename makeWindow.
12486 (tui_copy_win): Rename copyWin.
12487 (tui_box_win): Rename boxWin.
12488 (tui_highlight_win): Rename highlightWin.
12489 (tui_check_and_display_highlight_if_needed): Rename
12490 checkAndDisplayHighlightIfNeeded.
12491 (tui_refresh_all): Rename refreshAll.
12492 (tui_delete_win): Rename tuiDelwin.
12493 (tui_refresh_win): Rename tuiRefreshWin.
12494 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
12495 (tui_make_visible, tui_make_invisible): New functions.
12496 (tui_make_all_visible, tui_make_all_invisible): New functions.
12497 (make_all_visible): Rename makeAllVisible.
12498 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
12499 * tui/tui-data.c, tui/tui-winsource.c: Update references.
12500 * tui/tui-windata.c, tui/tui-win.c: Update references.
12501 * tui/tui-regs.c, tui/tui-layout.c: Update references.
12502 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
12503
12504 2004-02-06 Mark Kettenis <kettenis@gnu.org>
12505
12506 * proc-api.c (write_with_trace): Initialize local variable to
12507 silence compiler warning.
12508
12509 2004-02-06 Andrew Cagney <cagney@redhat.com>
12510
12511 * tui/tui-source.h: Do not include "defs.h".
12512 (struct tui_win_info): Declare.
12513 (tui_set_source_content_nil): Declare.
12514 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
12515 (union tui_line_or_address): Rename _TuiLineOrAddress.
12516 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
12517 (tui_update_source_window): Rename tuiUpdateSourceWindow.
12518 (tui_update_source_window_as_is): Rename
12519 tuiUpdateSourceWindowAsIs.
12520 (tui_update_source_windows_with_addr): Rename
12521 tuiUpdateSourceWindowsWithAddr.
12522 (tui_update_source_windows_with_line): Rename
12523 tuiUpdateSourceWindowsWithLine.
12524 (tui_clear_source_content): Rename tuiClearSourceContent.
12525 (tui_erase_source_content): Rename tuiEraseSourceContent.
12526 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
12527 (tui_show_source_content): Rename tuiShowSourceContent.
12528 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
12529 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
12530 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
12531 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
12532 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
12533 (tui_update_exec_info): Rename tuiUpdateExecInfo.
12534 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
12535 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
12536 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
12537 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
12538 (struct tui_win_info): Declare.
12539 * tui/tui-stack.c: Update references.
12540 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
12541 * tui/tui-win.c, tui/tui-source.c: Ditto.
12542 * tui/tui.c, tui/tui-disasm.c: Ditto.
12543
12544 2004-02-06 Mark Kettenis <kettenis@gnu.org>
12545
12546 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
12547 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
12548
12549 2004-02-05 Mark Kettenis <kettenis@gnu.org>
12550
12551 * infrun.c (handle_inferior_event): Allow for breakpoint
12552 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
12553 and SIGEMT. Update comments.
12554 * NEWS (Revised SPARC target): Mention support for non-executable
12555 stack.
12556
12557 2004-02-04 Mark Kettenis <kettenis@gnu.org>
12558
12559 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
12560 * inftarg.c: Update copyright year.
12561 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
12562 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
12563 (sparc_xfer_wcookie): New function.
12564 * sparc-tdep.c (sparc_fetch_wcookie): New function.
12565 * Makefile.in (sparc-nat.o): Update dependencies.
12566 * config/sparc/nm-nbsd.h: Include "target.h".
12567 (NATIVE_XFER_WCOOKIE): New define.
12568 (sparc_xfer_wcookie): New prototype.
12569
12570 2004-02-04 Andrew Cagney <cagney@redhat.com>
12571
12572 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
12573 SYSCALL_TRAP function.
12574 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
12575
12576 2004-02-04 Andrew Cagney <cagney@redhat.com>
12577 Daniel Jacobowitz <drow@mvista.com>
12578
12579 * objfiles.h: Delete comments refering to inside_entry_func and
12580 DEPRECATED_FRAME_CHAIN_VALID.
12581 * defs.h (inside_entry_func): Update prototype..
12582 * blockframe.c (inside_entry_func): Rename to
12583 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
12584 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
12585
12586 2004-02-03 Jeff Johnston <jjohnstn@redhat.com>
12587
12588 * breakpoint.c (struct captured_parse_breakpoint_args): Move
12589 outside of #ifdef SOLIB_ADD region.
12590 (do_restore_lang_radix_cleanup): Ditto.
12591 (resolve_pending_breakpoint): Ditto.
12592
12593 2004-02-03 Andrew Cagney <cagney@redhat.com>
12594
12595 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
12596 (process_note_abi_tag_sections): Delete unused function.
12597 (ia64_read_fp): Delete unused function.
12598 (gdbarch_extract_struct_value_address): Delete declaration.
12599
12600 2004-02-02 Andrew Cagney <cagney@redhat.com>
12601
12602 * vax-tdep.c (vax_frame_chain): Delete call to
12603 deprecated_inside_entry_file.
12604 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
12605
12606 2004-02-02 Mark Kettenis <kettenis@gnu.org>
12607
12608 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
12609 column that's "empty" or "same value" when eliminating REG_RA
12610 rules.
12611
12612 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
12613
12614 * NEWS: Add information about new pending breakpoint support.
12615
12616 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
12617
12618 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
12619 and pending fields for pending breakpoint support.
12620 * breakpoint.c (breakpoint_enabled): Add check for not pending.
12621 (condition_command): Only parse condition if not a pending
12622 breakpoint.
12623 (print_one_breakpoint): Add support for pending breakpoints.
12624 (describe_other_breakpoints): Add checks to verify we are not
12625 dealing with pending breakpoints.
12626 (check_duplicates): Don't check pending breakpoints.
12627 (set_raw_breakpoint): Initialize pending flag.
12628 (do_restore_lang_radix_cleanup): New cleanup routine.
12629 (resolve_pending_breakpoint): New function.
12630 (re_enable_breakpoints_in_shlibs): Try and resolve any
12631 pending breakpoints via resolve_pending_breakpoint.
12632 (mention): Add pending breakpoint support.
12633 (parse_breakpoint_sals): Add new parameter to pass to
12634 decode_line_1 to indicate silent errors when files or functions
12635 are not found. Change all callers.
12636 (do_captured_parse_breakpoint): New function.
12637 (break_command_1): Change prototype to return an rc value and to
12638 take an optional pending breakpoint pointer. Support creating
12639 a pending breakpoint if a "not found" form of error occurs when
12640 parsing the breakpoint. Also support resolving an existing pending
12641 breakpoint and be silent if the resolution fails.
12642 (create_breakpoints): Change prototype to take pending breakpoint
12643 pointer. When resolving a pending breakpoint, use the new pointer
12644 to provide a conditional or commands added by the end-user.
12645 (delete_breakpoint): Add appropriate check for pending.
12646 (breakpoint_re_set_one): Ditto.
12647 (do_enable_breakpoint): Ditto.
12648
12649 2004-02-02 David Carlton <carlton@kealia.com>
12650
12651 * valops.c (enum oload_classification): New.
12652 (find_overload_match): Break implementation into separate
12653 functions; delete #if 0'd code; look for symbols within
12654 namespaces.
12655 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
12656 (find_oload_champ,oload_method_static,classify_oload_match): New.
12657 * cp-support.h: Add declaration for cp_func_name; update
12658 declaration for make_symbol_overload_list.
12659 * cp-support.c (cp_func_name): New.
12660 (overload_list_add_symbol): Fix comment, use
12661 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
12662 (make_symbol_overload_list): Take a function name and a namespace
12663 instead of a symbol; change implementation.
12664 (make_symbol_overload_list_using): New.
12665 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
12666
12667 2004-02-02 Fred Fish <fnf@redhat.com>
12668
12669 * main.c (gdb_stdtarg): Move definition to group with other
12670 gdb_stdtarg definitions and update copyright years.
12671 * remote-sim.c (gdb_os_write_stderr): Write output to
12672 gdb_stdtargerr stream instead of gdb_stdtarg stream.
12673 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
12674 gdb_stderr stream and update copyright years.
12675
12676 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
12677
12678 * Makefile.in (mips-linux-nat.o): Update dependencies.
12679 * mips-linux-nat.c: Include mips-tdep.h.
12680
12681 2004-02-01 Roland McGrath <roland@redhat.com>
12682
12683 * sol-thread.c (sol_thread_xfer_partial): New function.
12684 (init_sol_thread_ops): Use that for to_xfer_partial hook.
12685 (init_sol_core_ops): Likewise.
12686
12687 * procfs.c (procfs_xfer_partial): New function.
12688 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
12689 * Makefile.in (procfs.o): Add $(auxv_h) dep.
12690
12691 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
12692 procfs_xfer_auxv function.
12693
12694 * procfs.c (procfs_make_note_section): If we can read
12695 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
12696 * linux-proc.c (linux_make_note_section): Likewise.
12697
12698 * auxv.h: New file.
12699 * auxv.c: New file.
12700 * Makefile.in (auxv_h): New variable.
12701 (COMMON_OBS): Add auxv.o here.
12702 (auxv.o): New target.
12703
12704 * corelow.c (core_xfer_partial): New function.
12705 (init_core_ops): Use it for core_ops.to_xfer_partial.
12706
12707 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
12708 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
12709 macro if that is defined.
12710
12711 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
12712
12713 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
12714 and check the specified thread for each breakpoint.
12715 * breakpoint.h (bpstat_stop_status): Update prototype.
12716 * infrun.c (handle_inferior_event): Update calls to
12717 bpstat_stop_status.
12718
12719 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
12720
12721 * Makefile.in (cli-cmds.o): Add $(readline_h).
12722
12723 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
12724
12725 * cli/cli-cmds.c: Include readline.h.
12726 (complete_command): Pass the start of the last word to
12727 complete_line.
12728
12729 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
12730
12731 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
12732 argument, and change first argument to a CORE_ADDR.
12733 * breakpoint.h (bpstat_stop_status): Update prototype.
12734 * infrun.c (adjust_pc_after_break): Add a new comment.
12735 (handle_inferior_event): Update calls to bpstat_stop_status.
12736
12737 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
12738
12739 * breakpoint.h: Update copyright years.
12740
12741 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
12742
12743 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
12744 (bpstat_stop_status): Don't decrement PC.
12745 * breakpoint.h (software_breakpoint_inserted_here_p): Add
12746 prototype.
12747 * infrun.c (adjust_pc_after_break): New function.
12748 (handle_inferior_event): Call it, early. Remove later references
12749 to DECR_PC_AFTER_BREAK.
12750 (normal_stop): Add commentary.
12751
12752 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
12753
12754 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
12755 2004-01-27 double-free fix.
12756
12757 2004-01-31 Mark Kettenis <kettenis@gnu.org>
12758
12759 * sparc-tdep.c (sparc_fetch_wcookie): New function.
12760 (sparc32_frame_prev_register): Handle StackGhost.
12761 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
12762
12763 2004-01-29 Roland McGrath <roland@redhat.com>
12764
12765 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
12766 * configure: Regenerated.
12767
12768 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
12769 * Makefile.in (procfs.o): Add dep.
12770
12771 2004-01-28 Andrew Cagney <cagney@redhat.com>
12772
12773 * tui/tui-stack.h: Update copyright.
12774 (struct frame_info): Add opaque declaration.
12775 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
12776 (tui_show_locator_content): Rename tuiShowLocatorContent.
12777 (tui_show_frame_info): Rename tuiShowFrameInfo.
12778 * tui/tui-stack.c: Update copyright. Update references.
12779 * tui/tui-winsource.c: Update references.
12780 * tui/tui-win.c: Update references.
12781 * tui/tui-layout.c: Update references.
12782 * tui/tui-hooks.c: Update copyright, update references.
12783 * tui/tui.c: Update copyright, update references.
12784 * tui/tui-disasm.c: Update references.
12785
12786 2004-01-28 David Carlton <carlton@kealia.com>
12787
12788 * dwarf2read.c (add_partial_structure): Use demangled name if
12789 namespace equals "".
12790
12791 2004-01-27 Jim Blandy <jimb@redhat.com>
12792
12793 Clean up misapplied patch:
12794 * dwarf2read.c (determine_prefix): Change one of the two forward
12795 declarations for 'determine_prefix_aux' to a declaration for this.
12796 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
12797 argument to 'die_specification'.
12798
12799 * dwarf2read.c (read_func_scope): Re-indent comment.
12800
12801 2004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
12802
12803 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
12804 b->exp to NULL after freeing so that error during re-parsing or
12805 evaluation of expressions associated with breakpoint don't
12806 eventually lead to re-freeing of storage.
12807 Committed by Andrew Cagney.
12808
12809 2004-01-27 Andrew Cagney <cagney@redhat.com>
12810
12811 * source.c (ambiguous_line_spec): Delete undefined declaration.
12812 * m32r-rom.c (m32r_set_board_address): Delete unused function.
12813 (m32r_set_server_address, m32r_set_download_path): Ditto.
12814 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
12815
12816 2004-01-27 Daniel Jacobowitz <drow@mvista.com>
12817
12818 * dwarf2read.c: Update calls to changed and renamed functions, and
12819 references to moved variables.
12820
12821 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
12822 language, language_defn, list_in_scope, and ftypes members.
12823 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
12824 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
12825 (baseaddr): Remove globals.
12826
12827 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
12828 (set_cu_language, die_is_declaration, die_specification)
12829 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
12830 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
12831 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
12832 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
12833
12834 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
12835 cu.list_in_scope. Don't initialize cu_header_offset.
12836 (add_partial_symbol): Add local baseaddr.
12837 (psymtab_to_symtab_1): Add local baseaddr. Use
12838 objfile->section_offsets for consistency. Don't initialize
12839 cu_header_offset; do initialize cu.header.offset and
12840 cu.list_in_scope.
12841 (read_file_scope, read_func_scope, read_lexical_block_scope)
12842 (dwarf_decode_lines, new_symbol): Add local baseaddr.
12843
12844 2004-01-27 Michael Chastain <mec.gnu@mindspring.com>
12845
12846 * PROBLEMS: Add gdb/1516.
12847
12848 2003-12-29 Robert Millan <robertmh@gnu.org>
12849
12850 Patch committed by Andrw Cagney.
12851 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
12852 * configure.tgt: Match knetbsd*-gnu.
12853
12854 2004-01-26 Andrew Cagney <cagney@redhat.com>
12855
12856 * breakpoint.c (catch_command_1): Delete #ifdef code.
12857 (catch_fork_command_1): Delete #ifdef wrapper.
12858 (catch_exec_command_1): Ditto.
12859 (catch_load_command_1): Ditto.
12860 (catch_unload_command_1): Ditto.
12861
12862 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
12863 (catch_breakpoint): Delete #if0ed function.
12864 (disable_catch_breakpoint): Ditto.
12865 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
12866 (disable_catch, enable_catch, delete_catch): Ditto.
12867
12868 2004-01-26 Andrew Cagney <cagney@redhat.com>
12869
12870 * remote.c (echo_check, quit_flag): Delete variables.
12871 (cisco_kernel_mode): Delete variable.
12872 (minitelnet_return, tty_input, escape_count): Delete variables.
12873 (remote_cisco_mode): Delete variable.
12874 (remote_cisco_open, remote_cisco_close): Delete function.
12875 (remote_cisco_mourn, remote_cisco_wait): Delete function.
12876 (init_remote_cisco_ops): Delete function.
12877 (_initialize_remote): Do not install "remote cisco" code.
12878 (read_frame): Delete cisco specific code.
12879 (remote_info_process): Delete function.
12880 (remote_wait): Delete cisco specific code.
12881 (remote_cisco_section_offsets): Delete function.
12882 (remote_cisco_objfile_relocate): Delete function.
12883 (remote_async_wait): Delete cisco specific code.
12884 (minitelnet, readtty, readsocket): Delete function.
12885
12886 2004-01-26 Andrew Cagney <cagney@redhat.com>
12887
12888 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
12889 comments mentioning extract_returned_value_address.
12890 * infcmd.c (print_return_value): Update. Add comments on
12891 extract_returned_value_address.
12892 * stack.c (return_command): Add comments on
12893 extract_returned_value_address.
12894 * values.c: Update comment.
12895 * m32r-tdep.c: Update comment.
12896 * sparc-tdep.c: Update comment.
12897 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
12898 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12899 * sh64-tdep.c (sh64_gdbarch_init): Update.
12900 * sh-tdep.c (sh_gdbarch_init): Update.
12901 * s390-tdep.c (s390_gdbarch_init): Update.
12902 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12903 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
12904 * m68k-tdep.c (m68k_gdbarch_init): Update.
12905 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12906 * m32r-tdep.c (m32r_gdbarch_init): Update.
12907 * ia64-tdep.c (ia64_gdbarch_init): Update.
12908 * h8300-tdep.c (h8300_gdbarch_init): Update.
12909 * frv-tdep.c (frv_gdbarch_init): Update.
12910 * arm-tdep.c (arm_gdbarch_init): Update.
12911 * alpha-tdep.c (alpha_gdbarch_init): Update.
12912
12913 2004-01-26 Andrew Cagney <cagney@redhat.com>
12914
12915 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
12916 SYMBOL_LOCATION_FUNCS
12917 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
12918 "struct symbol_ops".
12919 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
12920 type to "struct symbol_ops".
12921 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
12922 (struct symbol): Replace ".aux_value.loc.funcs" and
12923 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
12924 (SYMBOL_OBJFILE): Delete macro.
12925 (SYMBOL_LOCATION_FUNCS): Delete macro.
12926 (SYMBOL_LOCATION_BATON): Update.
12927 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
12928 intead of SYMBOL_LOCATION_FUNCS.
12929 * ax-gdb.c (gen_var_ref): Ditto.
12930 * printcmd.c (address_info): Ditto.
12931 * findvar.c (read_var_value): Ditto.
12932 (symbol_read_needs_frame): Ditto.
12933
12934 2004-01-26 Andrew Cagney <cagney@redhat.com>
12935
12936 * dwarf2read.c (read_func_scope): Document frame-base hack.
12937
12938 2004-01-25 Mark Kettenis <kettenis@gnu.org>
12939
12940 * infcmd.c (print_return_value): Plug memory leak; delete
12941 ui_stream object. Rename argument `structure_return' to
12942 `struct_return'.
12943
12944 2004-01-25 Mark Kettenis <kettenis@gnu.org>
12945
12946 * infcmd.c (print_return_value): Wrap long lines.
12947 (finish_command_continuation, finish_command): Remove unused
12948 variable `funcaddr'. Fix some coding-standards problems.
12949
12950 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
12951 SECT_SIZE is large enough, not whether it's exactly the right size.
12952 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
12953 TDEP->fpregset to zero.
12954
12955 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
12956 floating-point registers for traditional NetBSD core files.
12957 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
12958 TDEP->sizeof_fpregset here.
12959
12960 2004-01-25 Mark Kettenis <kettenis@gnu.org>
12961
12962 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
12963 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
12964 function with code split out from
12965 sparc32nbsd_sigcontext_frame_cache.
12966 (sparc32nbsd_sigcontext_frame_cache): Use
12967 sparc32nbsd_sigcontext_saved_regs.
12968 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
12969 OpenBSD.
12970 * sparcobsd-tdep.c: New file.
12971 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
12972 (sparcobsd-tdep.o): New dependency.
12973 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
12974 * config/sparc/obsd.mt: New file.
12975
12976 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
12977 TDEP->fpregset to be initialized to enable core file register
12978 sets.
12979
12980 2004-01-24 Mark Kettenis <kettenis@gnu.org>
12981
12982 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
12983 Add opaque declarations.
12984 (sparc64nbsd_sigcontext_saved_regs): New prototype.
12985 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
12986 function with code split out from
12987 sparc64nbsd_sigcontext_frame_cache.
12988 (sparc64nbsd_sigcontext_frame_cache): Use
12989 sparc64nbsd_sigcontext_saved_regs.
12990 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
12991 OpenBSD.
12992 * sparc64obsd-tdep.c: New file.
12993 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
12994 (sparc64obsd-tdep.o): New dependency.
12995 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
12996 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
12997 * config/sparc/obsd64.mt: New file.
12998
12999 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
13000 read the instruction at PC.
13001
13002 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
13003 value of GDB_OSABI_DEFAULT.
13004 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
13005 instead of GDB_OSABI_NETBSD_AOUT.
13006
13007 2004-01-24 Nick Roberts <nick@nick.uklinux.net>
13008
13009 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
13010 copyright.
13011
13012 2004-01-23 Andrew Cagney <cagney@redhat.com>
13013
13014 * printcmd.c (display_command): Replace tui_set_display call with
13015 tui_set_layout_for_display_command.
13016 * tui/tui.h (enum tui_win_type): Define.
13017 (tui_set_layout): Delete declaration.
13018 (tui_set_layout_for_display_command): Rename set_tui_layout.
13019 * tui/tui-data.h (enum tui_layout_type): Define.
13020 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
13021 "tui.h".
13022 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
13023 (tui_default_win_height): Rename tuiDefaultWinHeight.
13024 (tui_default_win_viewport_height): Rename
13025 tuiDefaultWinViewportHeight.
13026 (tui_set_layout): RenametuiSetLayout.
13027 * tui/tui-layout.c: Update references.
13028 * tui/tui.c: Update references.
13029 * tui/tui-disasm.c: Update references.
13030
13031 2004-01-23 David Carlton <carlton@kealia.com>
13032
13033 Partial workaround for PR c++/1511:
13034 * cp-namespace.c: Include frame.h.
13035 (cp_lookup_transparent_type): New
13036 (cp_lookup_transparent_type_loop): New.
13037 * cp-support.h: Declare cp_lookup_transparent_type.
13038 * symtab.c (basic_lookup_transparent_type): Renamed from
13039 lookup_transparent_type.
13040 (lookup_transparent_type): Replace old body by a call to
13041 current_language->la_lookup_transparent_type.
13042 * symtab.h: Update copyright. Declare
13043 basic_lookup_transparent_type.
13044 * language.h: Update copyright.
13045 (struct language_defn): Add la_lookup_transparent_type.
13046 * language.c: Update copyright.
13047 (unknown_language_defn): Add basic_lookup_transparent_type.
13048 (auto_language_defn): Add basic_lookup_transparent_type.
13049 (local_language_defn): Add basic_lookup_transparent_type.
13050 * ada-lang.c: Update copyright.
13051 (ada_language_defn): Add basic_lookup_transparent_type.
13052 * c-lang.c: Update copyright.
13053 (c_language_defn): Add basic_lookup_transparent_type.
13054 (cplus_language_defn): Add basic_lookup_transparent_type.
13055 (asm_language_defn): Add basic_lookup_transparent_type.
13056 (minimal_language_defn): Add basic_lookup_transparent_type.
13057 * f-lang.c: Update copyright.
13058 (f_language_defn): Add basic_lookup_transparent_type.
13059 * jv-lang.c: Update copyright.
13060 (java_language_defn): Add basic_lookup_transparent_type.
13061 * m2-lang.c: Update copyright.
13062 (m2_language_defn): Add basic_lookup_transparent_type.
13063 * objc-lang.c: Update copyright.
13064 (objc_language_defn): Add basic_lookup_transparent_type.
13065 * p-lang.c: Update copyright.
13066 (p_language_defn): Add basic_lookup_transparent_type.
13067 * scm-lang.c: Update copyright.
13068 (scm_language_defn): Add basic_lookup_transparent_type.
13069 * Makefile.in (cp-namespace.o): Depend on frame.h.
13070
13071 2004-01-23 David Carlton <carlton@kealia.com>
13072
13073 Patch for PR c++/1520:
13074 * dwarf2read.c (read_func_scope): Set processing_current_prefix
13075 properly if we have a specification die.
13076 (determine_prefix_aux): Rename from determine_prefix.
13077 (determine_prefix): Like the old determine_prefix, but never
13078 returns NULL.
13079
13080 2004-01-23 Theodore A. Roth <troth@openavr.org>
13081
13082 * avr-tdep.c: Update copyright.
13083 (avr_iaddr_p): Delete unused function.
13084 (avr_saddr_p): Delete unused function.
13085
13086 2004-01-23 David Carlton <carlton@kealia.com>
13087
13088 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
13089 Fix for PR symtab/1534.
13090
13091 2004-01-23 Mark Kettenis <kettenis@gnu.org>
13092
13093 * NEWS (New native configurations): Mention OpenBSD/sparc and
13094 OpenBSD/sparc64.
13095 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
13096 * configure.host: Likewise.
13097 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
13098 handler for OpenBSD.
13099 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
13100
13101 2004-01-22 Mark Kettenis <kettenis@gnu.org>
13102
13103 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
13104 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
13105
13106 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
13107 * cli/cli-cmds.c (shell_escape): Likewise.
13108
13109 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
13110 OpenBSD .note.openbsd.ident sections.
13111
13112 2004-01-22 David Carlton <carlton@kealia.com>
13113
13114 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
13115 get_scope_pc_bounds.
13116 (read_file_scope): Ditto.
13117 (get_scope_pc_bounds): New function, produced by extracting code
13118 from the above two functions, consolidating it, and adding support
13119 for DW_TAG_namespace.
13120
13121 2004-01-22 Mark Kettenis <kettenis@gnu.org>
13122
13123 * osabi.c (MAX_NOTESZ): New define.
13124 (check_note): New function.
13125 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
13126 check_note.
13127
13128 2004-01-21 Roland McGrath <roland@redhat.com>
13129
13130 * MAINTAINERS (write after approval): Add myself.
13131
13132 2004-01-21 Eli Zaretskii <eliz@gnu.org>
13133
13134 * utils.c (init_page_info): Move declarations of `rows' and
13135 `cols' before the __GO32__-specific code. Move the closing brace
13136 outside the #ifdef __GO32__..#endif block.
13137 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
13138
13139 2004-01-21 Paul Brook <paul@codesourcery.com>
13140
13141 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
13142 BPSTAT_WHAT_CHECK_SHLIBS.
13143
13144 2004-01-21 Paul Brook <paul@codesourcery.com>
13145
13146 * MAINTAINERS: Add myself to write-after-approval.
13147
13148 2004-01-20 Andrew Cagney <cagney@redhat.com>
13149
13150 * ax-gdb.c (print_axs_value): Delete unused function.
13151 * jv-lang.c (java_lookup_type): Delete unused function.
13152 * cli/cli-dump.c (dump_filetype): Delete unused function.
13153 * remote-mips.c (remote_mips_insert_hw_breakpoint)
13154 (remote_mips_remove_hw_breakpoint): Delete unused functions.
13155 (mips_getstring): Delete unused function.
13156 (pmon_insert_breakpoint): Delete #if0ed function.
13157 (PMON_MAX_BP): Delete #if0ed MACRO.
13158 (mips_pmon_bp_info): Delete #if0ed variable.
13159 (pmon_remove_breakpoint): Delete #if0ed function.
13160 * monitor.c (monitor_write_even_block): Delete unused function.
13161 (monitor_write_memory_block): Delete #if0ed code.
13162 * dink32-rom.c (dink32_load): Delete unused function.
13163 (_initialize_dink32_rom): Delete #if0ed code.
13164 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
13165
13166 * tui/tui-command.c: Update references.
13167 * tui/tui-io.c: Update references.
13168 * tui/tui-command.h: Update copyright.
13169 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
13170
13171 * source.c (ambiguous_line_spec): Delete never-defined function.
13172 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
13173 * gdbtypes.c (add_name, add_mangled_type): Ditto.
13174 * cli/cli-cmds.c (validate_comname): Ditto.
13175
13176 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
13177 "tui-data.h".
13178 (tui_set_disassem_content): Rename tuiSetDisassemContent.
13179 (tui_show_disassem): Rename tuiShowDisassem.
13180 (tui_show_disassem_and_update_source): Rename
13181 tuiVerticalDisassemScroll.
13182 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
13183 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
13184 * tui/tui.h: Update copyright.
13185 (enum tui_status): Define.
13186 * tui/tui-data.h (enum tui_scroll_direction): Define.
13187 * tui/tui-disasm.c: Update copyright. Update references.
13188 * tui/tui-winsource.c: Update copyright. Update references.
13189 * tui/tui-win.c: Update references.
13190 * tui/tui-layout.c: Update references.
13191
13192 2004-01-20 Andrew Cagney <cagney@redhat.com>
13193
13194 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
13195 sym2 to start of block.
13196
13197 2004-01-19 Michael Chastain <mec.gnu@mindspring.com>
13198
13199 * MAINTAINERS: Delete mmalloc.
13200 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
13201 * NEWS: Mention removal of --with-malloc.
13202 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
13203 * config.in: Regenerate.
13204 * configure: Regenerate.
13205 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
13206 USE_MMALLOC, MMCHECK_FORCE.
13207 * gdbinit.in: Remove mmalloc.
13208 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
13209 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
13210 * config/i386/go32.mh: Likewise.
13211 * config/i386/interix.mh: Likewise.
13212 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
13213
13214 2004-01-19 Jeff Johnston <jjohnstn@redhat.com>
13215
13216 * linespec.c (decode_variable, symtab_from_filename): Call
13217 error_silent with error message instead of throwing an exception
13218 directly.
13219 * defs.h (error_silent, error_output_message): Add prototypes.
13220 (catch_exceptions_with_msg): Ditto.
13221 * utils.c (error_silent, error_output_message): New functions.
13222 * top.c (catch_exceptions_with_msg): New function.
13223
13224 2004-01-20 Nick Roberts <nick@nick.uklinux.net>
13225
13226 * mi/mi-cmds.h (enum print_values): Add definition.
13227
13228 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
13229 type and value for simple data types and just the name and type
13230 for complex ones, if required.
13231
13232 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
13233 children, if required.
13234
13235 2004-01-19 Kevin Buettner <kevinb@redhat.com>
13236
13237 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
13238 unused declarations.
13239
13240 2004-01-19 Andrew Cagney <cagney@redhat.com>
13241
13242 * top.h (mapped_symbol_files): Delete declaration.
13243 * main.c (captured_main): Delete option "m" and "mapped".
13244 * objfiles.c (mapped_symbol_files): Delete variable.
13245 * symfile.c (symbol_file_command): Delete mmap code.
13246 (symbol_file_add_with_addrs_or_offsets): Ditto.
13247 (add_symbol_file_command, reread_separate_symbols): Ditto.
13248 * objfiles.h (OBJF_MAPPED): Delete.
13249 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
13250 (free_objfile) [USE_MMALLOC]: Ditto.
13251 (open_existing_mapped_file): Delete function.
13252 (open_mapped_file): Delete function.
13253 (map_to_file): Delete function.
13254
13255 2004-01-19 Kevin Buettner <kevinb@redhat.com>
13256
13257 * infrun.c (step_into_function): Account for possible breakpoint
13258 adjustment when computing ``stop_func_start''.
13259
13260 2004-01-19 Kevin Buettner <kevinb@redhat.com>
13261
13262 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
13263 the region size against the size of a pointer, not the size of
13264 a register as given by DEPRECATED_REGISTER_SIZE.
13265
13266 2004-01-19 Andrew Cagney <cagney@redhat.com>
13267
13268 * tui/tui-regs.h: Include "tui-data.h".
13269 (tuiFirstRegElementNoInLine): Delete declaration.
13270 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
13271 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
13272 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
13273 (tui_calculate_regs_column_count): Rename
13274 tuiCalculateRegsColumnCount.
13275 (tui_check_register_values): Rename tuiCheckRegisterValues.
13276 (tui_show_registers): Rename tuiShowRegisters.
13277 (tui_display_registers_from_line): Rename
13278 tuiDisplayRegistersFromLine.
13279 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
13280 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
13281 (tui_first_reg_element_no_inline): Rename
13282 tuiFirstRegElementNoInLine.
13283 * tui/tui-data.h: Update copyright.
13284 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
13285 * tui/tui-windata.c: Update copyright, update references.
13286 * tui/tui-regs.c: Update copyright, update references.
13287 * tui/tui-win.c: Update copyright, update references.
13288 * tui/tui-layout.c: Update copyright, update references.
13289
13290 2004-01-18 Andrew Cagney <cagney@redhat.com>
13291
13292 * tui/tui-io.c: Update copyright.
13293 (key_is_end_sequence, key_is_backspace): New functions.
13294 (key_is_command_char, key_is_start_sequence): New function.
13295 (tui_getc): Update references.
13296 * tui/tui-io.h: Update copyright.
13297 (m_tuiStartNewLine): Delete macro.
13298 (m_isBackspace, m_isDeleteChar): Delete macros.
13299 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
13300 (m_isNextPage, m_isPrevPage): Delete macros.
13301 (m_isLeftArrow, m_isRightArrow): Delete macros.
13302 (m_isXdbStyleCommandChar): Delete macro.
13303 (key_is_start_sequence): Declare, replace m_isStartSequence.
13304 (key_is_end_sequence): Declare, replace m_isEndSequence.
13305 (key_is_backspace): Declare ,replace m_isBackspace.
13306 (key_is_command_char): Declare, replace m_isCommandChar.
13307 * tui/tui-command.c: Update copyright.
13308 (tuiDispatchCtrlChar): Update references.
13309
13310 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
13311 tuiSourceWin.h.
13312
13313 * tui/tui-command.c: Rename tui/tuiCommand.c.
13314 * tui/tui-command.h: Rename tui/tuiCommand.h.
13315 * tui/tui-data.c: Rename tui/tuiData.c.
13316 * tui/tui-data.h: Rename tui/tuiData.h.
13317 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
13318 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
13319 * tui/tui-io.c: Rename tui/tuiIO.c.
13320 * tui/tui-io.h: Rename tui/tuiIO.h.
13321 * tui/tui-layout.c: Rename tui/tuiLayout.c.
13322 * tui/tui-layout.h: Rename tui/tuiLayout.h.
13323 * tui/tui-regs.c: Rename tui/tuiRegs.c.
13324 * tui/tui-regs.h: Rename tui/tuiRegs.h.
13325 * tui/tui-source.c: Rename tui/tuiSource.c.
13326 * tui/tui-source.h: Rename tui/tuiSource.h.
13327 * tui/tui-stack.c: Rename tui/tuiStack.c.
13328 * tui/tui-stack.h: Rename tui/tuiStack.h.
13329 * tui/tui-win.c: Rename tui/tuiWin.c.
13330 * tui/tui-win.h: Rename tui/tuiWin.h.
13331 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
13332 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
13333 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
13334 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
13335 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
13336 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
13337 * tui/tui-file.c: Update includes.
13338 * tui/tui-hooks.c: Update includes.
13339 * tui/tui-interp.c: Update includes.
13340 * tui/tui.c: Update includes.
13341 * Makefile.in: Update all tui/ dependencies.
13342 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
13343
13344 * Makefile.in: Update copyright. Update dependencies.
13345
13346 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
13347 problem.
13348
13349 2004-01-18 Andrew Cagney <cagney@redhat.com>
13350
13351 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
13352 instead of register_gdbarch_init.
13353
13354 * remote-sds.c (tohex): Delete unused function. Update copyright.
13355 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
13356 * v850-tdep.c (v850_register_virtual_size): Ditto.
13357 * target.c (normal_target_post_startup_inferior): Ditto.
13358 * source.c (ambiguous_line_spec): Ditto.
13359 * remote.c (adapt_remote_get_threadinfo): Ditto.
13360 * mi/mi-out.c (out_field_fmt): Ditto.
13361 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
13362 (output_control_change_notification): Ditto.
13363 * m68k-tdep.c (m68k_register_byte): Ditto.
13364 (m68k_remote_breakpoint_from_pc): Ditto.
13365 * ui-out.c (init_ui_out_state): Delete unused declaration.
13366 * stabsread.c (search_value): Ditto.
13367 * mi/mi-cmd-env.c (env_cli_command): Ditto.
13368 * maint.c (print_section_table): Ditto.
13369 * infrun.c (set_follow_fork_mode_command): Ditto.
13370
13371 2004-01-18 Mark Kettenis <kettenis@gnu.org>
13372
13373 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
13374 DW_CFA_def_cfa_exporession. Add support for
13375 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
13376 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
13377
13378 2004-01-18 Andrew Cagney <cagney@redhat.com>
13379
13380 * ocd.c: Update copyright.
13381 (bdm_read_register_command): Delete unused function.
13382 (_initialize_remote_ocd): Delete commented out reference.
13383 (get_quoted_char, reset_packet): Delete #if0ed function.
13384 (output_packet, put_quoted_char): Delete #if0ed function.
13385 (stu_put_packet, stu_get_packet): Delete #if0ed function.
13386 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
13387 (BDM_BREAKPOINT): Delete #if0ed macro.
13388 (remote_timeout): Delete #if0ed variable.
13389
13390 2004-01-18 Mark Kettenis <kettenis@gnu.org>
13391
13392 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
13393 (core-sol2.o): Remove dependency.
13394 * core-sol2.c: Remove file.
13395
13396 2004-01-17 Andrew Cagney <cagney@redhat.com>
13397
13398 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
13399 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
13400 enums.
13401
13402 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13403
13404 * remote.c: Update copyright years.
13405
13406 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13407
13408 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
13409
13410 2004-01-17 Andrew Cagney <cagney@redhat.com>
13411
13412 * mdebugread.c: Update copyright.
13413 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
13414 (parse_type, parse_procedure): Ditto.
13415 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
13416
13417 * cris-tdep.c (cris_store_struct_return): Put back accidently
13418 deleted function.
13419
13420 * gdbarch.sh: Update copyright year.
13421 * gdbarch.h, gdbarch.c: Re-generate.
13422
13423 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13424
13425 Suggested by George Anzinger.
13426 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
13427 correct stack offset. Include unknown opcode numbers in the error
13428 message.
13429
13430 2004-01-17 Andrew Cagney <cagney@redhat.com>
13431
13432 * x86-64-tdep.c (x86_64_init_abi): No need to clear
13433 extract_struct_value_address, i386 does not set it.
13434 * sparc64-tdep.c (sparc64_init_abi): Do not set
13435 extract_struct_value_address, never called.
13436 (sparc64_extract_struct_value_address): Delete function.
13437 * m68hc11-tdep.c: Update copyright.
13438 (m68hc11_gdbarch_init): Delete redundant assignment of
13439 extract_struct_value_address.
13440 * i386-tdep.c: Update copyright.
13441 (i386_gdbarch_init): Do not set extract_struct_value_address,
13442 never called.
13443 (i386_extract_struct_value_address): Delete function.
13444 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
13445 extract_struct_value_address, never called.
13446 (sparc32_extract_struct_value_address): #if 0 function. Add
13447 comments explaining its future.
13448
13449 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13450
13451 * arm-tdep.c (arm_write_pc): New function.
13452 (arm_gdbarch_init): Call set_gdbarch_write_pc.
13453
13454 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13455
13456 * breakpoint.c (must_shift_inst_regs): Delete.
13457 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
13458 and SHIFT_INST_REGS.
13459 * infcmd.c (step_1, step_1_continuation): Delete references to
13460 SHIFT_INST_REGS.
13461 * infrun.c (keep_going): Likewise.
13462 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
13463 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
13464
13465 2004-01-17 Andrew Cagney <cagney@redhat.com>
13466
13467 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13468 * gdbarch.h, gdbarch.c: Re-generate.
13469 * infcmd.c (print_return_value): Delete reference to
13470 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
13471
13472 * cris-tdep.c (cris_gdbarch_init): Do not set
13473 deprecated_extract_struct_value_address.
13474
13475 * xstormy16-tdep.c: Update copyright.
13476 (xstormy16_extract_struct_value_address): Update to current
13477 extract struct value address interface.
13478 (xstormy16_gdbarch_init): Set extract_struct_value_address.
13479 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
13480 current extract struct value address interface.
13481 (sh64_gdbarch_init): Set extract_struct_value_address.
13482
13483 * cris-tdep.c: Update copyright.
13484 (cris_extract_struct_value_address): Delete function.
13485 (struct_return_address): Delete variable.
13486 (cris_store_struct_return): Do not set struct_return_address.
13487
13488 * mcore-tdep.c: Update copyright.
13489 (mcore_extract_struct_value_address): Delete function. Update
13490 comments.
13491 (mcore_gdbarch_init): Update.
13492 * mn10300-tdep.c: Update copyright.
13493 (mn10300_extract_struct_value_address): Delete function.
13494 (mn10300_gdbarch_init): Update.
13495 * v850-tdep.c: Update copyright.
13496 (v850_extract_struct_value_address): Delete.
13497 (v850_gdbarch_init): Update.
13498 * ns32k-tdep.c: Update copyright.
13499 (ns32k_extract_struct_value_address): Delete.
13500 (ns32k_gdbarch_init): Update.
13501 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
13502 (hppa_gdbarch_init): Update.
13503 * vax-tdep.c: Update copyright.
13504 (vax_extract_struct_value_address): Delete.
13505 (vax_gdbarch_init): Update.
13506
13507 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
13508 * gdbarch.h, gdbarch.c: Re-generate.
13509 * procfs.c (procfs_fetch_registers): Delete reference to
13510 DEPRECATED_NPC_REGNUM.
13511 (procfs_store_registers): Ditto.
13512 * regcache.c (generic_target_write_pc): Simplify.
13513 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
13514
13515 * core-sol2.c (fetch_core_registers): Replace
13516 DEPRECATED_NPC_REGNUM with equivalent tdep value.
13517
13518 * hppa-tdep.c: Update copyright year.
13519 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
13520 NPC_REGNUM.
13521 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
13522
13523 * mips-tdep.c (mips_write_pc): New function.
13524 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
13525 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
13526 (mips_find_saved_regs, mips_software_single_step: Ditto.
13527 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
13528 mips_init_extra_frame_info, mips_pop_frame): Ditto.
13529
13530 2004-01-17 Andrew Cagney <cagney@redhat.com>
13531
13532 * mips-tdep.c: Re-indent. Group functions by ABI.
13533
13534 2004-01-17 Andrew Cagney <cagney@redhat.com>
13535
13536 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
13537 * gdbarch.c: Re-generate.
13538 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
13539 DECR_PC_AFTER_BREAK to zero.
13540 * vax-tdep.c (vax_gdbarch_init): Ditto.
13541 * v850-tdep.c (v850_gdbarch_init): Ditto.
13542 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
13543 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
13544 * sh-tdep.c (sh_gdbarch_init): Ditto.
13545 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
13546 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
13547 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
13548 * mips-tdep.c (mips_gdbarch_init): Ditto.
13549 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
13550 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13551 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
13552 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
13553 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
13554 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
13555 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
13556 * frv-tdep.c (frv_gdbarch_init): Ditto.
13557 * cris-tdep.c (cris_gdbarch_init): Ditto.
13558 * avr-tdep.c (avr_gdbarch_init): Ditto.
13559 * arm-tdep.c (arm_gdbarch_init): Ditto.
13560 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
13561
13562 2004-01-17 J. Brobecker <brobecker@gnat.com>
13563
13564 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
13565 Delete, no longer used.
13566 (read_subrange_type): New function, mostly extracted from
13567 read_array_type().
13568 (read_array_type): Replace extracted code by call to
13569 read_subrange_type().
13570 (dwarf2_get_attr_constant_value): New function.
13571 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
13572 (add_partial_symbol): Likewise.
13573 (process_die): Likewise.
13574 (new_symbol): Likewise.
13575 (read_type_die): Likewise.
13576
13577 2004-01-16 Andrew Cagney <cagney@redhat.com>
13578
13579 * symfile.c: Update copyright year.
13580 (compare_symbols): Delete unused function.
13581 * stabsread.c: Update copyright year.
13582 (lrs_general_complaint): Delete unused function.
13583 (ref_search_value): Ditto.
13584 (get_substring): Delete declaration.
13585 * sh64-tdep.c: Update copyright year.
13586 (sh64_get_gdb_regnum): Delete unused function.
13587 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
13588 Delete unused function.
13589
13590 2004-01-17 Mark Kettenis <kettenis@gnu.org>
13591
13592 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
13593 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
13594
13595 2004-01-16 Andrew Cagney <cagney@redhat.com>
13596
13597 Changes from Peter Schauer.
13598 * rs6000-tdep.c: Update copyright year.
13599 (rs6000_push_dummy_call): Update the stack pointer before
13600 accessing the corresponding stack region.
13601 * rs6000-nat.c: Update copyright year.
13602 (set_host_arch): Set "info.abfd" to "exec_bfd".
13603
13604 2004-01-15 Mark Kettenis <kettenis@gnu.org>
13605
13606 * blockframe.c: Update copyright year.
13607 (inside_entry_func): Don't treat a zero PC specially.
13608
13609 2004-01-14 Elena Zannoni <ezannoni@redhat.com>
13610
13611 * gcore.c (gcore_copy_callback): Use paddr_d to print size
13612 variable.
13613 (gcore_create_callback): Ditto. Skip any memory segment that has
13614 no permissions set.
13615
13616 2004-01-14 David Carlton <carlton@kealia.com>
13617
13618 Change symbols for C++ nested types to contain the fully qualified
13619 name, if possible. (At least in the DWARF-2 case.) Partial fix
13620 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
13621 c++/895.
13622 * c-exp.y (qualified_type): Handle types nested within classes.
13623 * cp-namespace.c: Update comments.
13624 (cp_set_block_scope): Delete #if 0.
13625 (cp_lookup_nested_type): Handle types nested within classes.
13626 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
13627 when appropriate.
13628 (add_partial_symbol): Add the name of the enclosing namespace to
13629 types.
13630 (pdi_needs_namespace): New.
13631 (add_partial_namespace): Tweak comment.
13632 (add_partial_structure): New.
13633 (psymtab_to_symtab_1): Initialize processing_current_prefix
13634 here...
13635 (process_die): instead of here.
13636 (read_structure_scope): Try to figure out the name of the class or
13637 namespace that the structure might be defined within.
13638 (read_enumeration): Generate fully-qualified names, if possible.
13639 (read_namespace): Don't set name to NULL.
13640 (die_specification): New.
13641 (new_symbol): Generate fully-qualified names for types.
13642 (read_type_die): Determine appropriate prefix.
13643 (determine_prefix): New.
13644 (typename_concat): New.
13645 (class_name): New.
13646 * valops.c (value_aggregate_elt): Pass NOSIDE to
13647 value_struct_elt_for_reference.
13648 (value_struct_elt_for_reference): Make static, add NOSIDE
13649 parameter, call value_maybe_namespace_elt as a last resort.
13650 (value_namespace_elt): Break out code into
13651 value_maybe_namespace_elt.
13652 (value_maybe_namespace_elt): New.
13653
13654 2004-01-12 Andrew Cagney <cagney@redhat.com>
13655
13656 * mips-tdep.c (mips_convert_register_p): Handle both raw and
13657 cooked floating-point registers.
13658 (mips_gdbarch_init): Set convert_register_p, register_to_value,
13659 and value_to_register.
13660
13661 2004-01-13 Andrew Cagney <cagney@redhat.com>
13662
13663 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
13664 * gdbarch.c: Re-generate.
13665 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
13666 FUNCTION_START_OFFSET.
13667 * v850-tdep.c (v850_gdbarch_init): Ditto.
13668 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
13669 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
13670 * sh-tdep.c (sh_gdbarch_init): Ditto.
13671 * s390-tdep.c (s390_gdbarch_init): Ditto.
13672 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
13673 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
13674 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
13675 * mips-tdep.c (mips_gdbarch_init): Ditto.
13676 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
13677 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
13678 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13679 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
13680 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
13681 * i386-tdep.c (i386_gdbarch_init): Ditto.
13682 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
13683 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
13684 * frv-tdep.c (frv_gdbarch_init): Ditto.
13685 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
13686 * cris-tdep.c (cris_gdbarch_init): Ditto.
13687 * avr-tdep.c (avr_gdbarch_init): Ditto.
13688 * arm-tdep.c (arm_gdbarch_init): Ditto.
13689 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
13690
13691 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
13692
13693 * infrun.c (follow_fork_mode_ask): Remove.
13694 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
13695 (follow_fork): Simplify and remove internal error for
13696 follow_fork_mode_ask.
13697 (_initialize_infrun): Update "set follow-fork-mode" help text.
13698
13699 2004-01-13 Andrew Cagney <cagney@redhat.com>
13700
13701 * configure.in: Update copyright year.
13702 (build_warnings): Add -Wunused-label.
13703 * configure: Re-generate.
13704
13705 2004-01-12 Andrew Cagney <cagney@redhat.com>
13706
13707 * exec.h (exec_ops): Make "extern".
13708
13709 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
13710 the function is void.
13711 (mips_pseudo_register_write): Ditto.
13712
13713 2004-01-12 Andrew Cagney <cagney@redhat.com>
13714
13715 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
13716 call. Never defined.
13717 * sparc-tdep.h (struct frame_info): Add opaque declaration.
13718 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
13719 (struct sparc_gregset, struct regcache): Ditto.
13720 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
13721
13722 2004-01-12 Andrew Cagney <cagney@redhat.com>
13723
13724 * mi/ChangeLog: Delete file. Renamed to ...
13725 * mi/ChangeLog-1999-2003: New file.
13726 * tui/ChangeLog: Delete file. Renamed to ...
13727 * tui/ChangeLog-1998-2003: New file.
13728
13729 2004-01-11 Mark Kettenis <kettenis@gnu.org>
13730
13731 * sparc64nbsd-tdep.c: Include "regset.h".
13732 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
13733 Remove variables.
13734 (fetch_core_registers): Remove function.
13735 (sparc64nbsd_core_fns): Remove variable.
13736 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
13737 functions.
13738 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
13739 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
13740 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
13741
13742 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
13743 sparc_extract_struct_value_address.
13744 (sparc32_gdbarch_init): Set extract_struct_value_address.
13745 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
13746 function.
13747 (sparc64_init_abi): Set extract_struct_value_address. Don't set
13748 return_value_on_stack.
13749
13750 * NEWS: Mention that %cs and %ss have been added to the AMD64
13751 configurations
13752
13753 * frame.c: Update copyright year.
13754 (get_prev_frame): Improve comment.
13755
13756 * sparc64fbsd-tdep.c: Include "regset.h".
13757 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
13758 Remove variables.
13759 (fetch_core_registers): Remove function.
13760 (sparc64fbsd_core_fns): Remove variable.
13761 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
13762 functions.
13763 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
13764 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
13765 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
13766
13767 * sparcnbsd-tdep.c: Include "regset.h".
13768 (fetch_core_registers): Remove function.
13769 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
13770 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
13771 functions.
13772 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
13773 TDEP->fpregset.
13774 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
13775
13776 * sparc-tdep.h (struct regset): Provide opaque declaration.
13777 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
13778 fpregset and sizeof_fpregset members.
13779 * sparc-tdep.c (struct regset): Provide opaque declaration.
13780 (sparc_regset_from_core_section): New function.
13781 (sparc32_gdbarch_init): Initialize TDEP->gregset,
13782 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
13783 Set regset_from_core_section when appropriate.
13784
13785 2004-01-10 Mark Kettenis <kettenis@gnu.org>
13786
13787 * x86-64-tdep.c (amd64_non_pod_p): New function.
13788 (amd64_classify_aggregate): Return class memory for non-POD
13789 C++ structure types.
13790
13791 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
13792 argument. Use it to reserve a register if necessary.
13793 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
13794 amd64_push_arguments.
13795
13796 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
13797
13798 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
13799 register numbers in comments.
13800 * x86-64-tdep.h: Update copyright year.
13801 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
13802 Adjust for addition of %cs and %ss.
13803 * amd64fbsd-nat.c: Update copyright year.
13804 (reg_offset): Add register offsets for %cs and %ss.
13805 * amd64fbsd-tdep.c: Update copyright year.
13806 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
13807 (amd64fbsd_sc_reg_offset): Likewise.
13808 * x86-64-linux-nat.c: Update copyright year.
13809 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
13810 and %ss.
13811 * amd64nbsd-nat.c: Update copyright year.
13812 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
13813 * amd64nbsd-tdep.c: Update copyright year.
13814 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
13815 * x86-64-linux-tdep.c: Update copyright year.
13816 (user_to_gdb_regmap): Add mapping for %cs and %ss.
13817 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
13818 * regformats/reg-x86-64.dat: Add %cs and %ss.
13819
13820 * blockframe.c (inside_entry_func): Reformat. Introduce new local
13821 variables to prevent long lines. Update comments to reflect
13822 reality.
13823
13824 2004-01-09 David Carlton <carlton@kealia.com>
13825
13826 Checked in by Elena Zannoni <ezannoni@redhat.com>.
13827 * dwarf2read.c (read_namespace): Pull out name-generating code
13828 into namespace_name. Rename previous_namespace to previous_prefix
13829 and processing_current_namespace to processing_current_prefix..
13830 (namespace_name): New function.
13831 (add_partial_symbol): Substitute uses of pdi->name with
13832 actual_name.
13833 * cp-support.h: Rename processing_current_namespace to
13834 processing_current_prefix.
13835 Update copyright year.
13836 * cp-namespace.c: Rename processing_current_namespace to
13837 processing_current_prefix.
13838 Update copyright year.
13839
13840 2004-01-09 Andrew Cagney <cagney@redhat.com>
13841
13842 * jv-valprint.c, ser-unix.c: Add missing copyright years.
13843
13844 2004-01-09 Mark Kettenis <kettenis@gnu.org>
13845
13846 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
13847 complaining.
13848 (process_one_symbol): Deal with N_PATCH stabs.
13849
13850 2004-01-09 Elena Zannoni <ezannoni@redhat.com>
13851
13852 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
13853 ifdeffed code.
13854 Update copyright year.
13855
13856 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
13857
13858 * config/pa/tm-hppa.h: Update extern declarations for
13859 hppa32_hpux_frame_saved_pc_in_sigtramp,
13860 hppa32_hpux_frame_base_before_sigtramp, and
13861 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
13862
13863 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
13864
13865 * config/pa/tm-hppah.h: Update copyright years.
13866
13867 2004-01-08 Andrew Cagney <cagney@redhat.com>
13868
13869 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
13870 (mips_o32_reg_struct_has_addr): Delete function.
13871 (mips_gdbarch_init): Update.
13872 (mips_extract_struct_value_address): Delete function.
13873
13874 2004-01-08 David Mosberger <davidm@hpl.hp.com>
13875
13876 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
13877 reality.
13878
13879 2004-01-07 Andrew Cagney <cagney@redhat.com>
13880
13881 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
13882 architecture's elf flags (when available).
13883
13884 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
13885 FPU to the start, check the MIPS FPU when looking for an old
13886 architecture.
13887 (set_mipsfpu_single_command): Update the architecture.
13888 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
13889
13890 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
13891 (mips_mask_address_p): Add "tdep" parameter.
13892 (show_mask_address, mips_addr_bits_remove): Update.
13893 (mips_dump_tdep): Update.
13894 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
13895 (MIPS_STACK_ARGSIZE): Delete macro.
13896 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
13897 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
13898 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
13899 (mips_dump_tdep): Update.
13900 (MIPS_SAVED_REGSIZE): Delete macro.
13901 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
13902 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
13903 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
13904 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
13905 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
13906 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
13907 (mips_pop_frame, return_value_location): Update.
13908 (mips_n32n64_return_value, mips_dump_tdep): Update.
13909
13910 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
13911 MIPS ABI.
13912
13913 * mips-tdep.c: Update copyright.
13914 (mips_gdbarch_init): Merge two code blocks handling the register
13915 name and number layout.
13916
13917 2004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
13918
13919 * tracepoint.c (validate_actionline): Fix segv at EOF
13920
13921 2004-01-07 Michael Chastain <mec.gnu@mindspring.com>
13922
13923 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
13924 properly for static fields.
13925
13926 2004-01-06 Jeff Johnston <jjohnstn@redhat.com>
13927 Jason Molenda <jmolenda@apple.com>
13928
13929 * disasm.c: Update copyright to include 2004.
13930 (do_mixed_source_and_assembly): For uiout asm list
13931 and tuple cleanups, initialize to null_cleanup instead of
13932 NULL and do so prior to loop. Only reset when we close off
13933 the tuple/list. Move check for whether to close off the
13934 asm tuple/list to after dump_insns call where it will be run
13935 on each loop iteration.
13936
13937 2004-01-05 Andrew Cagney <cagney@redhat.com>
13938
13939 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
13940 should be a switch case and not a label.
13941 * mips-tdep.c (mips32_next_pc): Delete unused labels
13942 "greater_equal_branch" and "less_zero_branch".
13943 * jv-valprint.c (java_print_value_fields): Delete unused label
13944 "flush_it".
13945
13946 * target.c (unpush_target): Only close a target that is in the
13947 target stack.
13948
13949 2004-01-05 Mark Kettenis <kettenis@gnu.org>
13950
13951 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
13952 address from [sp + 64] instead of %o2.
13953
13954 * frame.c (get_prev_frame): Don't try to unwind the PC. This
13955 fixes PR backtrace/1476.
13956
13957 2004-01-05 Andrew Cagney <cagney@redhat.com>
13958
13959 * libunwind-frame.h (struct frame_id): Add opaque declaration,
13960 move to start of file.
13961 * i386-tdep.h (struct regcache): Add opaque declaration.
13962 * config/ia64/nm-linux.h (struct target_ops): Add opaque
13963 declaration.
13964 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
13965 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
13966 * win32-nat.c (fake_create_process): Use ISO C style definition.
13967 * stabsread.c (define_symbol): Delete #ifndef
13968 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
13969 stabs_argument_has_addr call, macro never defined.
13970
13971 2004-01-04 Michael Chastain <mec.gnu@mindspring.com>
13972
13973 * op50-rom.c: Delete.
13974 * w89k-rom.c: Delete.
13975 * Makefile.in: Remove references.
13976
13977 2004-01-04 Mark Kettenis <kettenis@gnu.org>
13978
13979 * x86-64-tdep.c: Update copyright year.
13980 (struct amd64_register_info): Rename from x86_64_register_info.
13981 (amd64_register_info): Rename from x86_64_register_info.
13982 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
13983 (amd64_register_name): Rename from x86_64_register_name.
13984 (amd64_register_type): Rename from x86_64_register_type.
13985 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
13986 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
13987 (amd64_dwarf_reg_to_regnum): Rename from
13988 x86_64_dwarf_reg_to_regnum.
13989 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
13990 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
13991 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
13992 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
13993 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
13994 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
13995 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
13996 (amd64_frame_cache): Rename from x86_64_frame_cache.
13997 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
13998 (amd64_frame_prev_register): Rename from
13999 x86_64_frame_prev_register.
14000 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
14001 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
14002 (amd64_sigtramp_frame_cache): Rename from
14003 x86_64_sigtramp_frame_cache.
14004 (amd64_sigtramp_frame_prev_register): Rename from
14005 x86_64_sigtramp_frame_prev_register.
14006 (amd64_sigtramp_frame_unwind): Rename from
14007 x86_64_sigtramp_frame_unwind.
14008 (amd64_sigtramp_frame_sniffer): Rename from
14009 x86_64_sigtramp_frame_sniffer.
14010 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
14011 (amd64_frame_base): Rename from x86_64_frame_base.
14012 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
14013 (amd64_frame_align): Rename from x86_64_frame_align.
14014 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
14015 (amd64_regset_from_core_section): Rename from
14016 x86_64_regset_from_core_section.
14017 (x86_64_init_abi): Update comments.
14018
14019 2004-01-04 Nick Roberts <nick@nick.uklinux.net>
14020
14021 * MAINTAINERS (write after approval): Add myself.
14022
14023 2004-01-04 Mark Kettenis <kettenis@gnu.org>
14024
14025 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
14026 `float' arguments.
14027
14028 2004-01-04 Mark Kettenis <kettenis@gnu.org>
14029
14030 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
14031 such that it mentions a specific version of GCC that exhibits this
14032 bug.
14033
14034 2004-01-03 Mark Kettenis <kettenis@gnu.org>
14035
14036 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
14037 structure that has a single `float' member, store it in %f1 in
14038 addition to %f0.
14039
14040 * sparc-sol2-nat.c: Add missing '\'.
14041
14042 * sparc-tdep.c (sparc32_return_value): New function.
14043 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
14044 Remove functions.
14045 (sparc32_gdbarch_init): Set return_value, don't set
14046 extract_return_value, store_return_value, use_struct_convention
14047 and return_value_on_stack.
14048
14049 * sparc-sol2-nat.c: Add missing ')'.
14050
14051 2004-01-03 J. Brobecker <brobecker@gnat.com>
14052
14053 * infrun.c (handle_step_into_function): New function.
14054 (handle_inferior_event): Extract out some code into the new
14055 function above.
14056
14057 2004-01-03 J. Brobecker <brobecker@gnat.com>
14058
14059 * infrun.c (handle_inferior_event): Move the declaration of
14060 real_stop_pc inside the if blocks where it is used.
14061
14062 2004-01-03 Mark Kettenis <kettenis@gnu.org>
14063
14064 * sparc64-tdep.c (sparc64_16_byte_align_p)
14065 (sparc64_store_floating_fields, sparc64_store_floating_fields):
14066 Use check_typedef to get subtypes of structures and unions.
14067 (sparc64_store_return_value): Fix calculation of the appropriate
14068 offset into VALBUF when storing a structure or union.
14069 (sparc64_return_value): New function.
14070 (sparc64_use_struct_convention): Remove function.
14071 (sparc64_init_abi): Set return_value, don't set
14072 extract_return_value, store_return_value and
14073 use_struct_convention.
14074
14075 2004-01-03 Eli Zaretskii <eliz@elta.co.il>
14076
14077 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
14078 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
14079 gdb/config/alpha/xm-alphaosf.h,
14080 gdb/config/powerpc/tm-ppcle-eabi.h,
14081 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
14082 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
14083 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
14084 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
14085 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
14086 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
14087 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
14088 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
14089 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
14090 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
14091 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
14092 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
14093 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
14094 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
14095 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
14096 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
14097 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
14098 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
14099 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
14100 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
14101 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
14102 Remove lines for .cvsignore files.
14103
14104 2004-01-03 J. Brobecker <brobecker@gnat.com>
14105
14106 * infrun.c: Back out the previous change.
14107
14108 2004-01-03 Mark Kettenis <kettenis@gnu.org>
14109
14110 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
14111 sparc-*-sunos4* to the list of REMOVED configurations.
14112
14113 * configure.tgt: Add back sparc-*-vxworks*.
14114 * remote-vxsparc.c: Remove all includes except for "defs.h",
14115 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
14116 Include "sparc-tdep.h".
14117 (SPARC_R_G1): New define.
14118 (vxsparc_gregset): New variable.
14119 (ext_format_sparc): Remove extern declaration.
14120 (vx_read_register): Rewrite to use sparc32_supply_gregset and
14121 sparc32_supply_fpregset.
14122 (vx_write_register): Rewrite to use sparc32_collect_gregset,
14123 sparc_collect_rwindow and sparc32_collect_fpregset.
14124 * config/sparc/tm-vxworks.h: New file, based on recently removed
14125 tm-vxsparc.h.
14126 * config/sparc/vxworks.mt: New file, based on recently removed
14127 vxworks.mt.
14128
14129 2004-01-03 J. Brobecker <brobecker@gnat.com>
14130
14131 * infrun.c (handle_step_into_function): New function.
14132 (handle_inferior_event): Extract out some code into the new
14133 function above.
14134
14135 2004-01-02 Mark Kettenis <kettenis@gnu.org>
14136
14137 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
14138 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
14139 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
14140 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
14141 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
14142 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
14143 (sparc_nat_h): New variable.
14144 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
14145 (tm-sun4os4.h): Remove dependency.
14146 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
14147 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
14148 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
14149 sparc-tdep.o): Update dependencies.
14150 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
14151 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
14152 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
14153 dependencies.
14154 * configure.host: Remove existing sparc-*-lynxos*,
14155 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
14156 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
14157 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
14158 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
14159 triplets.
14160 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
14161 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
14162 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
14163 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
14164 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
14165 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
14166 sparc64-*-solaris2* and sparc64-*-* triplets.
14167 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
14168 "symtab.h" and "objfiles.h".
14169 (BIAS): Remove define.
14170 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
14171 (X_DISP19): Remove macros.
14172 (sparc_fetch_instruction): Remove function.
14173 (struct gdbarch_tdep): Remove definition.
14174 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
14175 (sparc_breakpoint_from_pc): Remove function.
14176 (struct sparc64_frame_cache): Remove definition.
14177 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
14178 sparc64_unwind_pc): Remove functions.
14179 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
14180 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
14181 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
14182 (sparc64_frame_cache): Change return type to `struct
14183 sparc_frame_cache *'. Simply call sparc_frame_cache.
14184 (sparc64_frame_this_id, sparc64_frame_prev_register,
14185 sparc64_frame_base_address): Use `struct sparc_frame_cache'
14186 instead of `struct sparc64_frame_cache.
14187 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
14188 sparc_analyze_control_transfer, sparc_software_single_step,
14189 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
14190 _initialize_sparc64_tdep): Remove functions.
14191 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
14192 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
14193 macros.
14194 (sparc64_supply_gregset, sparc64_collect_gregset,
14195 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
14196 (sparc64_init_abi): New function.
14197 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
14198 inclusion guard. Include "sparc-tdep.h".
14199 (BIAS): Define.
14200 (r_tstate_offset, r_fprs_offset): New defines.
14201 (enum sparc_regnum): Remove defenition.
14202 (enum sparc64_regnum): Reformat.
14203 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
14204 (sparc64_init_abi, sparc64_supply_gregset,
14205 sparc64_collect_gregset, sparc64_supply_fpregset,
14206 sparc64_collect_fpregset): New prototypes.
14207 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
14208 Add extern declarations.
14209 (sparc64_sol2_init_abi): New prototype.
14210 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
14211 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
14212 prototypes.
14213 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
14214 "sparnbsd-nat.h".
14215 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
14216 functions.
14217 (_initialize_sparc64fbsd_nat): Remove initialization of
14218 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
14219 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
14220 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
14221 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
14222 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
14223 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
14224 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
14225 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
14226 (sparc64fbsd_r_y_offset): Remove variables.
14227 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
14228 Make static and const.
14229 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
14230 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
14231 functions.
14232 (sparc64fbsd_gregset): New variable.
14233 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
14234 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
14235 and sparc64_supply_fpregset.
14236 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
14237 (sparc64fbsd_sigtramp_frame_this_id)
14238 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
14239 (sparc64fbsd_sigtramp_frame_unwind): New variable.
14240 (sparc64fbsd_sigtramp_frame_sniffer): New function.
14241 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
14242 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
14243 * sparcnbsd-tdep.c: Update copyright year. Include
14244 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
14245 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
14246 "value.h" and "sparcnbsd-tdep.h".
14247 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
14248 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
14249 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
14250 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
14251 defines.
14252 (sparcnbsd_gregset): New variable.
14253 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
14254 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
14255 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
14256 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
14257 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
14258 variables.
14259 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
14260 (sparc32nbsd_sigcontext_frame_this_id)
14261 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
14262 (sparc32nbsd_sigcontext_frame_unwind): New variable.
14263 (sparc32nbsd_sigtramp_frame_sniffer): New function.
14264 (sparcnbsd_get_longjmp_target_32,
14265 sparcnbsd_get_longjmp_target_64): Remove functions.
14266 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
14267 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
14268 sparcnbsd_init_elf): Remove.
14269 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
14270 (sparcnbsd_elf_init_abi): New functions.
14271 (_initialize_sparcnbsd_tdep): New prototype.
14272 (_initialize_sparnbsd_tdep): Update.
14273 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
14274 corelow.o. Add sparc64-nat.o and sparc-nat.o.
14275 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
14276 * config/sparc/linux.mh: Update comment.
14277 (XM_FILE, HOST_IPC): Remove variables.
14278 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
14279 sparc-linux-nat.o.
14280 * config/sparc/linux.mt: Update comment.
14281 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
14282 * config/sparc/nbsd.mt: Reformat.
14283 * config/sparc/nbsd64.mh: Update comment.
14284 (NATDEPFILES): Add sparc-nat.o.
14285 * config/sparc/nbsd64.mt: Update comment.
14286 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
14287 (TM_FILE): Set to tm-nbsd.h.
14288 * config/sparc/nbsdelf.mh: Update comment.
14289 (NATDEPFILES): Add sparc-nat.o.
14290 (XM_FILE): Delete.
14291 * config/sparc/nbsdaout.mh: Update comment.
14292 (NATDEPFILES): Add sparc-nat.o
14293 (XM_FILE): Delete.
14294 * config/sparc/nm-linux.h: Update copyright year. Don't include
14295 "config/nm-svr4.h" and "solib.h". Add protection against multiple
14296 inclusion.
14297 (KERNEL_U_SIZE): Remove define.
14298 (kernel_u_size): Remove prototype.
14299 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
14300 * config/sparc/nm-nbsd.h: Update copyright. Don't include
14301 "regcache.h".
14302 (CHILD_PREPARE_TO_STORE): Remove define.
14303 * config/sparc/nm-nbsdaout.h: Tweak some comments.
14304 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
14305 sparcnbsd-nat.c: Rewrite files.
14306 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
14307 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
14308 sparcnbsd-tdep.h: Remove files.
14309 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
14310 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
14311 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
14312 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
14313 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
14314 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
14315 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
14316 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
14317 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
14318 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
14319 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
14320 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
14321 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
14322 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
14323 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
14324 * config/sparc/linux64.mh, config/sparc/linux64.mt,
14325 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
14326 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
14327 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
14328
14329 2004-01-02 Andrew Cagney <cagney@redhat.com>
14330
14331 From 2003-12-18 Kazuhiro Inaoka:
14332 * configure.host: Add m32r-linux target.
14333
14334 2004-01-02 Michael Chastain <mec.gnu@mindspring.com>
14335
14336 * top.c (print_gdb_version): Update year to 2004.
14337
14338 2004-01-02 Mark Mitchell <mark@codesourcery.com>
14339
14340 * MAINTAINERS: Add myself to the write-after-approval category.
14341
14342 2004-01-02 Daniel Jacobowitz <drow@mvista.com>
14343
14344 From Bernardo Innocenti <bernie@develer.com>:
14345 * configure.tgt: Add uClinux target.
14346
14347 2004-01-02 Andrew Cagney <cagney@redhat.com>
14348
14349 * utils.c (do_my_cleanups): Make static, add forward declaration.
14350 * defs.h (do_my_cleanups): Delete declaration.
14351
14352 2004-01-02 Eli Zaretskii <eliz@elta.co.il>
14353
14354 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
14355 bfd/ChangeLog-0203.
14356
14357 2004-01-02 Mark Kettenis <kettenis@gnu.org>
14358
14359 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
14360 in <machine/reg.h>.
14361 * configure, config.in: Regenerate.
14362
14363 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
14364 tui/ChangeLog-1998-2003.
14365 \f
14366 Local Variables:
14367 mode: change-log
14368 left-margin: 8
14369 fill-column: 74
14370 version-control: never
14371 End:
This page took 0.306347 seconds and 3 git commands to generate.