4b241a883826583e10f412de9505028f9f5dbb03
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2004-11-13 Andrew Cagney <cagney@gnu.org>
2
3 * config/i386/i386lynx.mh: Delete file.
4 * config/i386/i386lynx.mt: Delete file.
5 * Makefile.in (ALLDEPFILES, i386ly-tdep.o): Remove i386ly-tdep.c.
6 * i386ly-tdep.c: Delete.
7
8 * config/tm-lynx.h: Delete, inline contents ...
9 * config/rs6000/tm-rs6000ly.h: ... here.
10
11 * config/tm-sysv4.h: Delete file, inlining contents.
12 * config/ia64/tm-aix.h (SKIP_TRAMPOLINE_CODE): Define.
13 * config/tm-linux.h (SKIP_TRAMPOLINE_CODE): Define.
14 * config/tm-nto.h (SKIP_TRAMPOLINE_CODE): Define.
15
16 * regcache.h (deprecated_register_valid): Delete.
17 (deprecated_registers): Delete.
18 * regcache.c (deprecated_register_valid): Delete.
19 (deprecated_registers): Delete.
20 (deprecated_read_register_byte, _initialize_regcache)
21 (deprecated_write_register_bytes, build_regcache): Update.
22 * config/powerpc/ppc-sim.mt (TDEPFILES): Remove ppc-bdm.o and
23 remote-sds.o.
24 * config/powerpc/ppc-eabi.mt (TDEPFILES): Ditto.
25 * config/mips/embed.mt (TDEPFILES): Remove remote-mips.o.
26
27 * NEWS: List h8300*-*-*, mcore-*-*, mn10300-*-*, ns32k-*-*, and
28 v850-*-* under removed.
29 * configure.host: Delete ns32k-*-netbsd*.
30 * configure.tgt: Delete h8300-*-*, mcore*-*-*, mn10300-*-*,
31 ns32k-*-netbsd*, and v850*-*-*.
32 * MAINTAINERS: Mark h8300, mcore, mn10300, ns32k, v850 as
33 "Deleted"
34 * config/h8300/tm-h8300.h, config/h8300/h8300.mt: Delete.
35 * h8300-tdep.c, config/mcore/mcore.mt, mcore-rom.c: Delete.
36 * mcore-tdep.c, config/mn10300/mn10300.mt: Delete.
37 * mn10300-tdep.c, config/ns32k/nbsdaout.mh: Delete.
38 * config/ns32k/nbsdaout.mt, config/ns32k/nm-nbsd.h: Delete.
39 * config/ns32k/nm-nbsdaout.h, config/ns32k/tm-ns32k.h: Delete.
40 * ns32knbsd-nat.c, ns32knbsd-tdep.c, ns32k-tdep.c: Delete.
41 * ns32k-tdep.h, config/v850/v850.mt, v850ice.c: Delete.
42 * v850-tdep.c: Delete.
43
44 2004-11-13 Joel Brobecker <brobecker@gnat.com>
45
46 * irix5-nat.c (fetch_core_registers): Replace use of
47 deprecated_registers by equivalent code.
48
49 2004-11-13 Joel Brobecker <brobecker@gnat.com>
50
51 * irix5-nat.c (fill_gregset): Replace use of deprecated_registers
52 with equivalent code.
53 (fill_fpregset): Likewise.
54
55 2004-11-13 Andrew Cagney <cagney@gnu.org>
56
57 * MAINTAINERS: Do not list "Deleted" architectures.
58
59 * configure.tgt: Delete i[34567]86-*-vxworks*, m68*-netx-*,
60 m68*-*-vxworks*, mips*-*-vxworks*, powerpc-*-vxworks*, and
61 sparc-*-vxworks*.
62 * NEWS: Mention that vxworks was deleted.
63 * config/m68k/tm-vx68.h, config/mips/tm-vxmips.h: Delete.
64 * config/powerpc/tm-vxworks.h, config/tm-vxworks.h: Delete.
65 * config/i386/vxworks.mt, config/m68k/vxworks68.mt: Delete.
66 * config/mips/vxmips.mt, config/powerpc/vxworks.mt: Delete.
67 * config/sparc/vxworks.mt, vx-share/dbgRpcLib.h: Delete.
68 * vx-share/ptrace.h, vx-share/regPacket.h: Delete.
69 * vx-share/vxTypes.h, vx-share/vxWorks.h: Delete.
70 * vx-share/wait.h, vx-share/xdr_ld.c: Delete.
71 * vx-share/xdr_ld.h, vx-share/xdr_ptrace.c: Delete.
72 * vx-share/xdr_ptrace.h, vx-share/xdr_rdb.c: Delete.
73 * vx-share/xdr_rdb.h, remote-vxsparc.c: Delete.
74 * remote-vxmips.c, remote-vx.c: Delete.
75 * remote-vx68.c: Delete.
76 * config/m68k/tm-os68k.h: Remove reference to VxWorks.
77 * config/m68k/os68k.mt, ada-lang.h: Ditto.
78 * Makefile.in (HFILES_NO_SRCDIR, ALLDEPFILES, remote-vx68.o)
79 (remote-vx.o, remote-vxmips.o, remote-vxsparc.o): Delete vx files.
80
81 2004-11-13 Eli Zaretskii <eliz@gnu.org>
82
83 * config/i386/xm-go32.h: Don't include fopen-bin.h.
84 Don't define CRLF_SOURCE_FILES and DIRNAME_SEPARATOR.
85
86 * source.c (OPEN_MODE, FDOPEN_MODE): Remove the definitions in the
87 branch that doesn't define CRLF_SOURCE_FILES; always use
88 binary-mode open.
89 (print_source_lines_base, forward_search_command)
90 (reverse_search_command): Enable the code that accepts DOS-style
91 CRLF line endings on all platforms (this removes the need for
92 CRLF_SOURCE_FILES).
93
94 * defs.h: Fix wording of the comment before FOPEN_RB.
95 (DIRNAME_SEPARATOR) [__MSDOS__]: Define to ';'.
96
97 * config/djgpp/fnchange.lst: Group renames for opcode directory
98 together.
99
100 * config/djgpp/djconfig.sh: Replace file names that don't exist
101 anymore with existing files, for checking the unpacked
102 distribution.
103
104 * config/djgpp/config.sed (am_cv_exeext, lt_cv_sys_max_cmd_len):
105 Export pre-cooked values in configure-* targets that begin with
106 "@test -f stage_last".
107
108 2004-11-12 Andrew Cagney <cagney@gnu.org>
109
110 * defs.h (enum lval_type): Delete lval_reg_frame_relative.
111 * value.h (struct value): Update comment.
112 * valops.c (value_assign): Fold lval_reg_fame_relative into
113 lval_register.
114 * findvar.c (value_from_register, locate_var_value): Ditto.
115
116 2004-11-12 Randolph Chung <tausq@debian.org>
117
118 * config/tm/tm-hppa.h (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
119 * parse.c (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
120 (write_exp_msymbol): Remove conditional check for symbols starting
121 with $. Update comments.
122
123 2004-11-12 Randolph Chung <tausq@debian.org>
124
125 * pa64solib.c (pa64_solib_thread_start_addr): Rename from
126 so_lib_thread_start_addr.
127 * pa64solib.h (so_list): Forward declare.
128 (pa64_solib_thread_start_addr): Prototype.
129 * somsolib.c (SHL_LOAD, SHL_UNLOAD): Define if not already defined.
130 (no_shared_libraries): Remove.
131 (som_solib_thread_start_addr): Rename from so_lib_thread_start_addr.
132 * somsolib.h (som_solib_thread_start_addr): Likewise; prototype.
133 * hpread.c (hpread_process_one_debug_symbol): Use either the som or
134 the elf solib handler to find the start address.
135
136 * config/pa/hppahpux.mh (NATDEPFILES): Move target-specific support
137 files to the target makefile.
138 * config/pa/hpux1020.mh (NATDEPFILES): Likewise.
139 * config/pa/hpux11.mh (NATDEPFILES): Likewise.
140 * config/pa/hpux11w.mh (NATDEPFILES): Likewise.
141
142 * config/pa/hppa64.mt (TDEPFILES): Put target-specific support
143 files for symbol reading and shared library handling here.
144 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
145 (PA_SOM_ONLY): Define so we can build a 32-bit SOM only target
146 without bringing in 64-bit support.
147
148 2004-11-12 Andrew Cagney <cagney@gnu.org>
149
150 * sparc-tdep.c: Replace VALUE_TYPE with value_type.
151 * v850-tdep.c, sparc64-tdep.c, sh-tdep.c: Ditto.
152 * sh64-tdep.c, s390-tdep.c, mcore-tdep.c: Ditto.
153 * h8300-tdep.c, arm-linux-tdep.c, amd64-tdep.c: Ditto.
154 * hppa-tdep.c, mips-tdep.c, m88k-tdep.c: Ditto.
155 * m68hc11-tdep.c, m32r-tdep.c, ia64-tdep.c: Ditto.
156 * frv-tdep.c, cris-tdep.c, avr-tdep.c, alpha-tdep.c: Ditto.
157
158 Merge VALUE_REGNO and VALUE_FRAME_REGNUM into VALUE_REGNUM.
159 * value.h (VALUE_REGNO, VALUE_FRAME_REGNUM): Delete.
160 (VALUE_REGNUM): Define.
161 (struct value): Delete location.regnum, rename "regno" to
162 "regnum".
163 * value.c, valops.c, valarith.c, findvar.c: Update.
164
165 * value.h (VALUE_TYPE, VALUE_NEXT, VALUE_OFFSET, VALUE_BITSIZE)
166 (VALUE_BITPOS): Delete.
167 (value_type, value_offset, value_bitsize, value_bitpos): Declare.
168 * value.c (value_type, value_offset, value_bitpos)
169 (value_bitsize): New functions. Update references.
170 * arm-tdep.c, gnu-v3-abi.c, hpacc-abi.c, gnu-v2-abi.c: Update.
171 * f-valprint.c, cp-valprint.c, c-valprint.c: Update.
172 * ada-valprint.c, typeprint.c, scm-valprint.c, scm-exp.c: Update.
173 * p-valprint.c, jv-valprint.c, jv-lang.c, varobj.c: Update.
174 * objc-lang.c, ada-lang.c, std-regs.c, stack.c: Update.
175 * infcall.c, linespec.c, printcmd.c, valarith.c: Update.
176 * valops.c, eval.c, findvar.c, breakpoint.c: Update.
177 * tracepoint.c, ax-gdb.c, mi/mi-main.c, cli/cli-dump.c:
178 * rs6000-tdep.c, ppc-sysv-tdep.c: Update.
179
180 2004-11-12 Andrew Cagney <cagney@gnu.org>
181
182 * cris-tdep.c (cris_register_offset): Delete, never called.
183 (cris_spec_reg_applicable): Delete cris_ver_sim.
184 * MAINTAINERS: List d10v as OBSOLETE.
185 * rdi-share/host.h (FOPEN_WB): #ifdef 0 out definitions of
186 FOPEN_WB et.al., defined by "fopen-bin.h".
187
188 2004-11-12 Randolph Chung <tausq@debian.org>
189
190 * hppa-tdep.c (hppa_skip_permanent_breakpoint): Move definition ...
191 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): ... to here.
192 * config/pa/tm-hppa.h (SKIP_PERMANENT_BREAKPOINT): Move definition ...
193 * config/pa/tm-hppah.h (SKIP_PERMANENT_BREAKPOINT): ... to here.
194
195 2004-11-12 Mark Kettenis <kettenis@jive.nl>
196
197 * tui/tui-io.c: Don't include "terminal.h".
198 * Makefile.in (tui-io.o): Update dependencies.
199
200 2004-11-12 Kei Sakamoto <sakamoto.kei@renesas.com>
201
202 * Makefile.in (m32r-linux-tdep.o): Update dependencies.
203 * m32r-linux-tdep.c (m32r_linux_init_abi): Call
204 set_gdbarch_regset_from_core_section for core file support.
205 (m32r_linux_supply_gregset, m32r_linux_regset_from_core_section):
206 New functions.
207
208 2004-11-11 Randolph Chung <tausq@debian.org>
209
210 * hppa-tdep.c (skip_prologue_hard_way): Make static, add
211 stop_after_branch parameter and use it to determine if we should look
212 at the delay slot of the first branch insn to find prologue insns.
213 (hppa_skip_prologue): Update comment and call to skip_prologue_hard_way.
214 (hppa_frame_cache): Likewise.
215
216 2004-11-11 Randolph Chung <tausq@debian.org>
217
218 * hppa-tdep.c (hppa_frame_cache): Properly handle the frame pointer
219 register so that it can be unwound from anywhere in the prologue.
220
221 2004-11-10 msnyder <msnyder@redhat.com>
222
223 * rs6000-tdep.c (skip_prologue): After saving lr_offset,
224 must invalidate lr_reg (so we don't try to save it again).
225 Ditto for cr_offset and cr_reg.
226
227 2004-11-05 Jon Beniston <jon@beniston.com>
228
229 Committed by Andrew Cagney.
230 * remote.c (putpkt_binary) Fix PR gdb/1806. Send an ACK
231 when an unexpected packet is received, as the target stubs
232 continually retransmit the same packet until ACKed.
233
234 2004-11-10 Randolph Chung <tausq@debian.org>
235
236 * frame.c (get_prev_frame): Use get_frame_type to retrieve the
237 frame's type.
238
239 2004-11-10 Randolph Chung <tausq@debian.org>
240
241 * blockframe.c (inside_entry_func): Move to .....
242 * frame.c (inside_entry_func): ... here, and make static.
243 (backtrace_past_entry): New flag.
244 (get_prev_frame): Stop backtrace at the entry function if enabled
245 by flag. Update comments.
246 (_initialize_frame): Add command to set backtrace_past_entry flag.
247 * defs.h (inside_entry_func): Remove prototype.
248
249 2004-11-10 Mark Kettenis <kettenis@gnu.org>
250
251 * dwarf2read.c: Fix formatting.
252
253 2004-11-10 Andrew Cagney <cagney@gnu.org>
254
255 * value.h (COERCE_REF, COERCE_ARRAY, COERCE_NUMBER, COERCE_ENUM)
256 (coerce_ref, coerce_array, coerce_number, coerce_enum): Replace
257 macros with function declarations.
258 * value.c (coerce_ref, coerce_array, coerce_number)
259 (coerce_enum): New functions.
260 (value_as_long, value_as_address): Update.
261 * ada-lang.c (ada_coerce_ref, ada_value_binop)
262 (ada_evaluate_subexp, ada_value_assign, ada_value_struct_elt): Update.
263 * jv-lang.c (evaluate_subexp_java): Update.
264 * valarith.c (value_less, value_neg, value_complement)
265 (value_binop, value_add, value_subscript, value_x_binop)
266 (value_logical_not, value_sub): Update.
267 * valops.c (check_field, value_struct_elt, value_ind)
268 (value_find_oload_method_list, value_cast, value_assign): Update.
269 * eval.c (evaluate_subexp_standard): Update.
270
271 2004-11-10 Mark Kettenis <kettenis@gnu.org>
272
273 * mips-tdep.c (mips32_relative_offset): Change return type to
274 LONGEST, change argument type to ULONGEST. Fix sign-extension.
275
276 2004-11-10 Randolph Chung <tausq@debian.org>
277
278 * hppa-tdep.c (hppa32_register_name, hppa64_register_name): Make static.
279 (hppa32_push_dummy_call, hppa64_push_dummy_call): Likewise.
280 (hppa_fetch_pointer_argument): Likewise.
281 (hppa_frame_cache): Use safe_frame_unwind_memory instead of
282 deprecated_read_memory_nobpt.
283 (_initialize_hppa_tdep): Replace deprecated_add_show_from_set/
284 add_set_cmd sequence with add_setshow_boolean_cmd.
285
286 2004-11-09 Andrew Cagney <cagney@gnu.org>
287
288 GDB 6.3 released from GDB 6.3 branch.
289
290 2004-11-09 Andrew Cagney <cagney@gnu.org>
291
292 * values.c: Rename to ...
293 * value.c: ..., new file.
294 * Makefile.in: Update.
295
296 2004-11-09 Daniel Jacobowitz <dan@debian.org>
297
298 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Correct allocated
299 size.
300
301 2004-11-09 Andrew Cagney <cagney@gnu.org>
302
303 * TODO: Delete.
304
305 * value.h (struct value): Delete field bfd_section.
306 (VALUE_BFD_SECTION): Delete macro.
307 (COERCE_REF): Update.
308 (value_at, value_at_lazy): Delete asection parameter.
309 * printcmd.c (print_formatted, x_command): Update.
310 (do_examine): Delete asection parameter.
311 (next_section): Delete variable.
312 * valops.c (value_cast, value_at, value_at_lazy)
313 (value_coerce_function, value_addr, value_ind, value_string)
314 (find_rt_vbase_offset, value_full_object): Update.
315 * hpacc-abi.c (hpacc_virtual_fn_field)
316 (hpacc_value_rtti_type): Update.
317 * gnu-v3-abi.c (gnuv3_rtti_type, gnuv3_virtual_fn_field)
318 (gnuv3_baseclass_offset): Update.
319 * f-valprint.c (f_val_print): Update.
320 * c-valprint.c (c_val_print): Update.
321 * p-valprint.c (pascal_val_print): Update.
322 * jv-valprint.c (java_value_print): Update.
323 * jv-lang.c (java_class_from_object, evaluate_subexp_java): Update.
324 * ada-lang.c (ada_value_primitive_packed_val)
325 (ada_evaluate_subexp): Update.
326 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Update.
327 * expprint.c (print_subexp_standard): Update.
328 * infcall.c (call_function_by_hand): Update.
329 * valarith.c (value_add): Update.
330 * eval.c (evaluate_subexp_standard): Update.
331 * values.c (allocate_value, value_copy, value_static_field): Update.
332 * findvar.c (read_var_value, locate_var_value): Update.
333
334 2004-11-09 Andrew Cagney <cagney@gnu.org>
335
336 * i386-linux-tdep.c: Include "dwarf2-frame.h".
337 * Makefile.in: Update all dependencies.
338
339 2004-11-08 Andrew Cagney <cagney@gnu.org>
340
341 * sentinel-frame.c (sentinel_frame_prev_pc): New function.
342 (sentinel_frame_unwinder): Add the prev_pc method.
343 * frame.c (frame_pc_unwind): Use the per-frame pc unwinder when
344 available. Do not handle the sentinel-frame case.
345 * frame-unwind.h (frame_prev_register_ftype): Define.
346 (struct frame_unwind): Add prev_pc;
347
348 2004-11-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
349
350 * configure.in: Check for ncurses/term.h.
351 * gdb_curses.h: Include term.h here, prefering ncurses/term.h.
352 * utils.c: Include gdb_curses.h instead of curses.h and term.h.
353 * tui/tui.c: Don't include term.h.
354 * configure, config.in: Rebuilt.
355
356 2004-11-08 Mark Kettenis <kettenis@gnu.org>
357
358 * m68kbsd-nat.c: Include "inf-ptrace.h".
359 (_initialize_m68kbsd_nat): Fix pasto.
360 * Makefile.in (m68kbsd-nat.o): Update dependencies.
361
362 2004-11-08 Randolph Chung <tausq@debian.org>
363
364 * infrun.c (debug_infrun): New variable.
365 (resume, proceed, wait_for_inferior): Annotate with debug messages.
366 (handle_inferior_event, keep_going): Likewise.
367 (_initialize_infrun): Register "set debug infrun" command.
368
369 2004-11-08 Andreas Schwab <schwab@suse.de>
370
371 * linux-nat.c (PTRACE_EVENT_VFORK_DONE): Renamed from
372 PTRACE_EVENT_VFORKDONE.
373 (child_follow_fork): Adjust.
374
375 2004-11-08 Andrew Cagney <cagney@gnu.org>
376
377 * README: Refer to 6.3, not 6.2, update directory listing droppng
378 references to intl/ and mmalloc/.
379 * PROBLEMS: Refer to 6.3 not 6.2.
380
381 * PROBLEMS: Delete no-longer applicable problems.
382
383 2004-11-07 Andrew Cagney <cagney@redhat.com>
384 Daniel Jacobowitz <dan@debian.org>
385 Roland McGrath <roland@redhat.com>
386
387 * Makefile.in (symfile-mem.o): Update dependencies.
388 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): New.
389 (i386_linux_init_abi): Call dwarf2_frame_set_signal_frame_p.
390 * inf-ptrace.c (inf_ptrace_attach): Call
391 observer_notify_inferior_created.
392 * inftarg.c (child_attach): Likewise.
393 * symfile-mem.c: Include "observer.h", "auxv.h", and "elf/common.h".
394 (symbol_file_add_from_memory): Take NAME argument. Use it for
395 the new BFD's filename.
396 (add_symbol_file_from_memory_command): Update call to
397 symbol_file_add_from_memory.
398 (struct symbol_file_add_from_memory_args, add_vsyscall_page)
399 (symbol_file_add_from_memory_wrapper): New.
400 (_initialize_symfile_mem): Register add_vsyscall_page as an
401 inferior_created observer.
402
403 2004-11-07 Mark Kettenis <kettenis@gnu.org>
404
405 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Rename from
406 fetch_inferior_registers. Make static.
407 (m68kbsd_store_inferior_registers): Rename from
408 store_inferior_registers. Make static.
409 (_initialize_m68kbsd_nat): Construct and add target vector.
410 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
411 inftarg.o. Add inf-ptrace.o.
412 (NAT_FILE): Set to tm-solib.h.
413 (LOADLIBES): New variable.
414 * config/m68k/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
415 inftarg.o. Add inf-ptrace.o.
416 (NAT_FILE): Delete variable.
417 * config/m68k/obsd.mh (NATDEPFILES): Remove infptrace.o and
418 inftarg.o. Add inf-ptrace.o.
419 (NAT_FILE): Set to tm-solib.h.
420 * config/m68k/nm-nbsdaout.h: Remove file.
421
422 2004-11-07 Daniel Jacobowitz <dan@debian.org>
423
424 * dwarf2-frame.c (struct dwarf2_frame_ops): Add signal_frame_p.
425 (dwarf2_frame_set_signal_frame_p, dwarf2_frame_signal_frame_p)
426 (dwarf2_signal_frame_unwind): New.
427 (dwarf2_frame_sniffer): Use dwarf2_frame_signal_frame_p.
428 * dwarf2-frame.h (dwarf2_frame_set_signal_frame_p): New prototype.
429
430 2004-11-07 Mark Kettenis <kettenis@gnu.org>
431
432 * Makefile.in (mips64obsd-tdep.o): Fix typo.
433
434 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Renamed
435 from mipsnbsd_ilp32_solib_svr4_fetch_link_map_offsets. Trim sizes
436 to only include the structure members we actually need.
437 (mipsnbsd_lp64_fetch_link_map_offsets): Renamed from
438 mipsnbsd_lp64_solib_svr4_fetch_link_map_offsets. Trim sizes to
439 only include the structure members we actually need.
440 (mipsnbsd_init_abi): Update.
441
442 * mips64obsd-nat.c: Include "mips-tdep.h".
443 (MIPS64OBSD_NUM_REGS): Remove define.
444 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM): New defines.
445 (mips64obsd_supply_gregset, mips64obsd_collect_gregset): Handle
446 floating-point registers correctly.
447 * Makefile.in (mips64obsd-nat.o): Update dependencies.
448
449 * mips64obsd-tdep.c: Include "trad-frame.h", "tramp-frame.h" and
450 "gdb_assert.h".
451 (mips64obsd_sigframe_init): New function.
452 (mips64obsd_sigframe): New variable.
453 (mips64obsd_init_abi): Add comments. Prepend mips64obsd_sigrame
454 unwinder.
455 * Makefile.in (mips64obsd-tdep.o): Update dependencies.
456
457 2004-11-06 Joel Brobecker <brobecker@gnat.com>
458
459 * alpha-mdebug-tdep.c: #include mdebugread.h.
460 Replace alpha_extra_func_info_t by struct mdebug_extra_func_info *.
461 * Makefile.in (alpha-mdebug-tdep.o): Add dependency on mdebugread.h.
462
463 2004-11-05 Andrew Cagney <cagney@gnu.org>
464
465 * dwarf2-frame.c (dwarf2_frame_cache): Only complain when both the
466 CFI and the init_reg method leave the register unspecified.
467 Include the register name in the "Incomplete CFI data" complaint.
468 Supress leading zeros in the address.
469
470 2004-11-05 Mark Kettenis <kettenis@gnu.org>
471
472 * dwarf2-frame.c (decode_frame_entry_1): Avoid indirection when
473 skipping a personality routine in a CIE augmentation.
474
475 2004-11-05 Jeff Johnston <jjohnstn@redhat.com>
476
477 * defs.h (fatal, vfatal): New function prototypes.
478 * stack.c (backtrace_command_stub): Stub to call backtrace_command_1
479 via catch_errors.
480 (backtrace_command): Change to call backtrace_command_stub via
481 catch_errors instead of calling backtrace_command_1 directly.
482 (backtrace_full_command): Ditto.
483 * utils.c (error_stream_1): New static function.
484 (verror): Change to call error_stream_1 instead of error_stream.
485 (error_stream): Call error_stream_1 with RETURN_ERROR argument.
486 (vfatal, fatal): New functions.
487
488 2004-11-05 Andrew Cagney <cagney@gnu.org>
489
490 * stack.c (parse_frame_specification_1): Clear selected_frame_p
491 when not using selected frame.
492
493 2004-11-05 Mark Kettenis <kettenis@jive.nl>
494
495 * dwarf2-frame.c (decode_frame_entry_1): Correctly skip
496 personality routine in a CIE augmentation.
497
498 2004-11-05 Felix Lee <felix+log1@specifixinc.com>
499
500 * stack.c (set_current_sal_from_frame): New function.
501 (print_args_stub): Use it.
502 (print_frame_info): Don't set sal here.
503
504 2004-11-04 Mark Kettenis <kettenis@gnu.org>
505
506 * dwarf2-frame.c (read_encoded_value): Change type of third
507 argument to `unsigned char *'. Add support for LEB128 encodings.
508
509 2004-11-04 Jim Blandy <jimb@redhat.com>
510
511 * gdbtypes.c (make_qualified_type): Doc fix. Add assertion to
512 prevent cross-objfile references.
513 (make_cv_type): Doc fix. Don't create cross-objfile references,
514 even for stub types.
515 (replace_type): Add assertion to prevent cross-objfile references.
516 (check_typedef): Never resolve a stub type by copying over a type
517 from another file.
518
519 2004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
520
521 * Makefile.in (m32r-tdep.o): Update dependencies.
522 * m32r-tdep.c (m32r_gdbarch_init): Call gdbarch_init_osabi for
523 ABI-specific overrides.
524
525 2004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
526
527 * m32r-tdep.c (m32r_memory_insert_breakpoint): Remove
528 unnecessary parallel execution bit.
529 (m32r_memory_remove_breakpoint): Ditto.
530 (m32r_breakpoint_from_pc): Update.
531
532 2004-11-03 Randolph Chung <tausq@debian.org>
533
534 * hppa-tdep.c (hppa_frame_cache): Use frame_pc_unwind instead of
535 frame_func_unwind to locate the unwind entry.
536 (hppa_frame_this_id): Likewise.
537
538 2004-11-03 Andrew Cagney <cagney@gnu.org>
539
540 * gdb/NEWS: Mention internationalization, m32r-*-linux-gnu, 'p'
541 packet, obsolete configurations, end-of-life deprecated_registers.
542
543 2004-11-02 Mark Kettenis <kettenis@gnu.org>
544
545 * dwarf2-frame.c (read_encoded_value): Set proper size for signed
546 encodings as well as unsigned encodings.
547
548 2004-11-02 Andrew Cagney <cagney@gnu.org>
549
550 * value.h (COERCE_VARYING_ARRAY): Delete.
551 * valops.c (value_cast, value_slice): Delete use.
552 * valarith.c (value_subscript, value_concat): Delete use.
553
554 2004-11-02 Paul Hilfinger <hilfingr@nile.gnat.com>
555
556 * NEWS: GDB understands GNAT Ada.
557
558 2004-11-01 Joseph S. Myers <joseph@codesourcery.com>
559
560 * Makefile.in (ALLDEPFILES): Add amd64-sol2-tdep.c.
561 (amd64-sol2-tdep.o): Add dependencies.
562 * amd64-sol2-tdep.c, config/i386/sol2-64.mh,
563 config/i386/sol2-64.mt: New files.
564 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offset,
565 amd64_sol2_gregset32_reg_offset, _initialize_amd64_sol2_nat): New.
566 (supply_gregset): Correct order of arguments to
567 amd64_supply_native_gregset.
568 (fill_gregset): Correct order of arguments to
569 amd64_collect_native_gregset.
570 * configure.host (i[34567]86-*-solaris2.1[0-9]*): Add new case.
571 * configure.tgt (i[34567]86-*-solaris2.1[0-9]*): Likewise.
572 * configure.in (*-*-solaris2.[[6789]]): Add *-*-solaris2.1[[0-9]]
573 for definition of NEW_PROC_API.
574 * configure: Regenerate.
575
576 2004-11-01 Joseph S. Myers <joseph@codesourcery.com>
577
578 * MAINTAINERS (Write After Approval): Add myself.
579
580 2004-11-01 Andrew Cagney <cagney@gnu.org>
581
582 * configure.tgt: Mark d10v-*-* as obsolete.
583 * config/d10v/d10v.mt, d10v-tdep.c: Obsolete files.
584
585 2004-11-01 Paul N. Hilfinger <Hilfinger@gnat.com>
586
587 * values.c (modify_field): Correct handling of bit-fields that
588 don't fit in 32 bits. Use unsigned operations throughout and
589 simplify the code a bit. Document preconditions.
590
591 2004-10-31 Andrew Cagney <cagney@gnu.org>
592
593 * config/pa/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
594 * config/tm-sysv4.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
595 (in_plt_section): Delete.
596
597 * mips-tdep.c (mips_in_solib_return_trampoline): Delete.
598 (mips_gdbarch_init): Do not set same.
599
600 * arch-utils.c (generic_in_solib_call_trampoline): Delete.
601 * arch-utils.h (generic_in_solib_call_trampoline): Delete.
602
603 * gdbarch.sh (in_solib_call_trampoline): Delete.
604 * gdbarch.h, gdbarch.c: Re-generate.
605
606 * hppa-tdep.c (hppa_stub_unwind_sniffer): Replace
607 IN_SOLIB_CALL_TRAMPOLINE with tdep.in_solib_call_trampoline.
608 * hppa-tdep.h (struct gdbarch_tdep): Add in_solib_call_trampoline.
609 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Set same.
610 * hppa-linux-tdep.c (hppa_linux_init_abi): Ditto.
611
612 2004-10-31 Mark Kettenis <kettenis@gnu.org>
613
614 * mipsnbsd-nat.c: Include "target.h" and "inf-ptrace.h".
615 (mipsnbsd_fetch_inferior_registers): Rename from
616 fetch_inferior_registers. Make static.
617 (mipsnbsd_store_inferior_registers): Rename from
618 store_inferior_registers. Make static.
619 (_initialize_mipsnbsd_nat): New function and prototype.
620 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
621 * config/mips/nbsd.mh (NAT_CLIBS, NAT_FILE): Remove variables.
622 (NATDEPFILES): Remove infptrace.o and inftarg.o. Add
623 inf-ptrace.o.
624
625 2004-10-31 Andrew Cagney <cagney@gnu.org>
626
627 * xstormy16-tdep.c (xstormy16_in_solib_call_trampoline)
628 (xstormy16_gdbarch_init): Do not set in_solib_call_trampoline,
629 delete corresponding unused function.
630 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Really do not set
631 in_solib_call_trampoline.
632 * config/arm/tm-embed.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
633 * config/powerpc/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
634 * config/mips/tm-nbsd.h: Ditto.
635 * config/arm/tm-linux.h: Ditto.
636 * config/mips/tm-linux.h: Ditto.
637
638 * armnbsd-tdep.c (arm_netbsd_aout_init_abi)
639 (arm_netbsd_aout_in_solib_call_trampoline): Do not set
640 in_solib_call_trampoline, delete corresponding unused function.
641 * vaxnbsd-tdep.c (vaxnbsd_aout_in_solib_call_trampoline)
642 (vaxnbsd_aout_init_abi): Ditto.
643 * sparcnbsd-tdep.c (sparcnbsd_aout_in_solib_call_trampoline)
644 (sparc32nbsd_aout_init_abi): Ditto.
645 * ppc-linux-tdep.c (ppc64_in_solib_call_trampoline)
646 (ppc_linux_init_abi): Ditto.
647 * ns32knbsd-tdep.c (ns32knbsd_aout_in_solib_call_trampoline)
648 (ns32knbsd_init_abi_aout): Ditto.
649 * mips-tdep.c (mips_in_call_stub, mips_gdbarch_init): Ditto.
650 * mips-linux-tdep.c (mips_linux_init_abi): Ditto.
651 * m68kbsd-tdep.c (m68kbsd_aout_in_solib_call_trampoline)
652 (m68kbsd_aout_init_abi): Ditto.
653 * i386-cygwin-tdep.c (i386_cygwin_in_solib_call_trampoline)
654 (i386_cygwin_init_abi): Ditto.
655 * i386bsd-tdep.c (i386bsd_aout_in_solib_call_trampoline)
656 (i386bsd_init_abi): Ditto.
657
658 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Do not set
659 in_solib_call_trampoline to in_plt_entry, IN_SOLIB_CALL_TRAMPOLINE
660 isn't used by this architecture.
661 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
662 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Ditto.
663 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Ditto.
664 * s390-tdep.c (s390_gdbarch_init): Ditto.
665 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
666 * m68klinux-tdep.c (m68k_linux_init_abi): Ditto.
667 * i386-tdep.c (i386_svr4_init_abi): Ditto.
668 * i386-nto-tdep.c (i386nto_init_abi): Ditto.
669 * arm-linux-tdep.c (arm_linux_init_abi): Ditto.
670 * amd64-tdep.c (amd64_init_abi): Ditto.
671
672 * vaxnbsd-tdep.c (vaxnbsd_elf_init_abi): Do not set
673 in_solib_call_trampoline to its default value of
674 generic_in_solib_call_trampoline.
675 * ppcobsd-tdep.c (ppcobsd_init_abi): Ditto.
676 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Ditto.
677 * i386obsd-tdep.c (i386obsd_elf_init_abi): Ditto.
678 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Ditto.
679 * i386fbsd-tdep.c (i386fbsd_init_abi): Ditto.
680 * hppabsd-tdep.c (hppabsd_init_abi): Ditto.
681
682 * mips-tdep.c (mips_dump_tdep): Don't print any of the macros.
683
684 * config/mips/obsd64.mt (DEPRECATED_TM_FILE): Delete.
685
686 * config/mips/tm-mips.h: Delete file.
687 * remote-mips.c: Delete tm-mips.h from comment.
688 * config/mips/embed.mt (DEPRECATED_TM_FILE): Delete.
689 * config/mips/tm-nbsd.h: Don't include tm-mips.h.
690 * config/mips/irix6.mt (DEPRECATED_TM_FILE): Delete.
691 * config/mips/tm-linux.h: Don't include tm-mips.h.
692 * config/mips/tm-vxmips.h: Don't include tm-mips.h.
693 * config/mips/irix5.mt (DEPRECATED_TM_FILE):
694 * config/mips/tm-wince.h: Don't include.
695
696 * mdebugread.h (MDEBUG_EFI_SYMBOL_NAME): Define.
697 * mdebugread.c (MDEBUG_EFI_SYMBOL_NAME): Delete.
698 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
699 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
700
701 * mdebugread.h (ecoff_relocate_efi): Delete declaration.
702 * mdebugread.c (ecoff_relocate_efi): Delete function.
703 * objfiles.c (objfile_relocate): Delete #ifdef
704 MDEBUG_EFI_SYMBOL_NAME code.
705
706 2004-10-31 Orjan Friberg <organ.friberg@axis.com>
707 Andrew Cagney <cagney@gnu.org>
708
709 * gdbarch.sh (single_step_through_delay): Add.
710 * gdbarch.h, gdbarch.c: Re-generate.
711 * config/mips/tm-mips.h (STEP_SKIPS_DELAY_P, STEP_SKIPS_DELAY)
712 (mips_step_skips_delay): Delete.
713 * mips-tdep.c (mips_single_step_through_delay): Replace
714 mips_step_skips_delay.
715 (mips_gdbarch_init): Set single_step_through_delay.
716 (mips_dump_tdep): Do not print STEP_SKIPS_DELAY.
717
718 2004-10-31 Mark Kettenis <kettenis@gnu.org>
719
720 * tramp-frame.c (tramp_frame_prepend_unwinder): Set unwinder type
721 from TRAMP_FRAME frame type.
722
723 2004-10-31 Andrew Cagney <cagney@gnu.org>
724
725 * mdebugread.c (parse_procedure): Wrap use of RA_REGNUM in #ifdef.
726
727 * mips-tdep.c (mips_ignore_helper): Delete.
728 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Delete.
729 * infrun.c (handle_inferior_event): Delete #ifdef
730 DEPRECATED_IGNORE_HELPER_CALL code.
731
732 * config/mips/tm-mips.h (RA_REGNUM): Delete.
733
734 2004-10-31 Mark Kettenis <kettenis@gnu.org>
735
736 * i386v4-nat.c (supply_gregset, supply_fpregset, fill_gregset)
737 (fill_fpregset): Do not compile for 64-bit systems.
738 * i386-sol2-nat.c: Don't include "i386v4-nat.c".
739 * Makefile.in (i386-sol2-nat.o): Update dependencies.
740 * config/i386/i386sol2.mh (NATDEPFILES): Add back i386v4-nat.c.
741
742 2004-10-30 Andrew Cagney <cagney@gnu.org>
743
744 * mdebugread.h: Include "coff/sym.h" and "coff/symconst.h".
745 (struct mdebug_extra_func_info): Define.
746 * config/alpha/tm-alpha.h: Delete same.
747 * config/mips/tm-mips.h: Delete same.
748 * mdebugread.c: Delete same.
749 * Makefile.in: Update dependencies.
750 * mips-mdebug-tdep.c: Include "mdebugread.h".
751
752 * objfiles.c: Include "mdebugread.h".
753 * mdebugread.c: Include "mdebugread.h".
754 (ecoff_relocate_cfi): Delete.
755 * config/alpha/tm-alpha.h (ecoff_relcate_cfi): Delete.
756 * config/mips/tm-mips.h (ecoff_relcate_cfi): Delete.
757 * mdebugread.h (ecoff_relocate_efi): New file.
758 * Makefile.in: Update dependencies.
759
760 * mips-tdep.c (struct frame_extra_info): Delete.
761 (temp_proc_desc): Delete.
762
763 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Rename
764 MIPS_EFI_SYMBOL_NAME.
765 (mips_extra_func_info_t, mips_extra_func_info): Delete.
766 (struct mdebug_extra_func_info): Replace struct
767 alpha_extra_func_info and alpha_extra_func_info_t.
768 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Rename
769 MIPS_EFI_SYMBOL_NAME.
770 (struct mdebug_extra_func_info): Replace struct
771 alpha_extra_func_info and alpha_extra_func_info_t.
772 * objfiles.c, mips-tdep.c, mips-mdebug-tdep.c: Update.
773 * mdebugread.c, alpha-mdebug-tdep.c:
774
775 Suggested by Mark Kettenis.
776 * config/mips/tm-mips.h (struct mips_extra_func_info): Delete
777 fields frame_adjust and high_addr.
778 * mips-mdebug-tdep.c (PROC_HIGH_ADDR, PROC_FRAME_ADJUST): Delete.
779 (non_heuristic_proc_desc): Delete references.
780
781 * mips-tdep.h (MIPS_PRID_REGNUM): Add.
782 * config/mips/tm-mips.h (PRID_REGNUM): Delete.
783 * mips-tdep.c: Update.
784
785 * mips-tdep.h (MIPS_FIRST_EMBED_REGNUM)
786 (MIPS_LAST_EMBED_REGNUM): Add.
787 * config/mips/tm-mips.h (FIRST_EMBED_REGNUM)
788 (LAST_EMBED_REGNUM): Delete.
789 * mipsv4-nat.c, mips-tdep.c, mips-linux-tdep.c: Update.
790
791 * config/mips/tm-mips.h (PS_REGNUM): Delete.
792 * mips-tdep.h (MIPS_PS_REGNUM): Add.
793 * remote-vxmips.c, mipsv4-nat.c, mips-tdep.c: Update.
794 * mips-linux-nat.c: Update.
795
796 * mips-tdep.h: Add comments on registers.
797 (MIPS_UNUSED_REGNUM): Define.
798 * config/mips/tm-mips.h (ZERO_REGNUM, UNUSED_REGNUM)
799 (T9_REGNUM, V0_REGNUM, A0_REGNUM): Delete.
800 * irix5-nat.c, mipsv4-nat.c, mips-linux-tdep.c: Update.
801 * mips-linux-nat.c, remote-mips.c: Update.
802
803 * config/mips/tm-mips.h (t_insn): Delete.
804 * mips-tdep.c (mips_fetch_instruction, mips_skip_trampoline_code):
805 Replace t_insn with ULONGEST.
806
807 2004-10-30 Mark Kettenis <kettenis@gnu.org>
808
809 * mipsnbsd-tdep.c: Include "regset.h" and "gdb_assert.h".
810 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM)
811 (MIPSNBSD_NUM_GREGS, MIPSNBSD_NUM_FPREGS): New defines.
812 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
813 (mipsnbsd_core_fns, mipsnbsd_elfcore_fns): Remove variables.
814 (mipsnbsd_core_osabi_sniffer): New function.
815 (mipsnbsd_init_abi): Set regset_from_core_section.
816 (_initialize_mipsnbsd_tdep): Remove calls to
817 deprecated_add_core_fns.
818 (mipsnbsd_supply_fpregset, mipsnbsd_supply_gregset)
819 (mipsnbsd_regset_from_core_section): New functions.
820 (mipsnbsd_gregset, mipsnbsd_fpregset): New variables.
821 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
822
823 * procfs.c (procfs_fetch_registers, procfs_store_registers): Like
824 Remove optimization for DEPRECATED_FP_REGNUM.
825
826 2004-10-30 Andrew Cagney <cagney@gnu.org>
827
828 * alpha-tdep.c (alpha_setup_arbitrary_frame): Delete.
829 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Delete.
830 (alpha_setup_arbitrary_frame): Delete.
831 * mips-tdep.c (setup_arbitrary_frame): Delete.
832 * config/mips/tm-mips.h (SETUP_ARBITRARY_FRAME): Delete.
833 (setup_arbitrary_frame): Delete.
834 * stack.c (parse_frame_specification_1): When specified, call
835 create_new_frame with two parameters. Delete #ifdef
836 SETUP_ARBITRARY_FRAME.
837
838 * config/mips/tm-mips.h (MIPS16_INSTLEN, MIPS_NUMREGS)
839 (MIPS_INSTLEN): Delete.
840 * mips-tdep.h (enum mips_insn_size): Rename MIPS32_INSN_SIZE and
841 MIPS16_INSN_SIZE to MIPS_INSN32_SIZE and MIPS_INSN16_SIZE.
842 * remote-mips.c, mips-tdep.c: Update.
843
844 * config/mips/embed.mt (TDEPFILES): Add mips-mdebug-tdep.o.
845 * mips-mdebug-tdep.h, mips-mdebug-tdep.c: New files.
846 * mips-tdep.c (mips_mdebug_frame_cache)
847 (mips_mdebug_frame_this_id, mips_mdebug_frame_prev_register)
848 (mips_mdebug_frame_unwind, mips_mdebug_frame_sniffer)
849 (mips_mdebug_frame_base_address, mips_mdebug_frame_sniffer)
850 (mips_mdebug_frame_base_sniffer, non_heuristic_proc_desc)
851 (compare_pdr_entries, the_bfd, mips16_fetch_instruction): Delete.
852 (mips_gdbarch_init): Do not append mdebug sniffers.
853 (PROC_LOW_ADDR, PROC_HIGH_ADDR, PROC_FRAME_OFFSET)
854 (PROC_FRAME_REG, PROC_FRAME_ADJUST, PROC_REG_MASK)
855 (PROC_FREG_MASK, PROC_REG_OFFSET, PROC_FREG_OFFSET, PROC_PC_REG)
856 (PROC_SYMBOL, _PROC_MAGIC_): Delete.
857 * Makefile.in: Update dependencies.
858
859 * mips-tdep.h (mips_abi_regsize): Declare.
860 * mips-tdep.c (mips_abi_regsize): Make non-static.
861
862 * mips-tdep.c (gdb_print_insn_mips): Simplify.
863 (make_mips16_addr): Delete.
864
865 2004-10-30 Mark Kettenis <kettenis@gnu.org>
866
867 * i386-sol2-nat.c: New file.
868 * Makefile.in (ALLDEPFILES): Add i386-sol2-nat.c and
869 i386-sol2-tdep.c.
870 (i386-sol2-nat.o): Update dependencies.
871 * config/i386/i386sol2.mh (NATDEPFILES): Remove i386v4.o, add
872 i386-sol2-nat.o.
873
874 2004-10-30 Andrew Cagney <cagney@gnu.org>
875
876 Total breakage identified by Joel Brobecker.
877 * mips-tdep.c (after_prologue): Delete.
878 (mips_skip_prologue): Use skip_prologue_using_sal.
879 (heuristic_proc_desc): Delete, unused.
880
881 2004-10-30 Mark Kettenis <kettenis@gnu.org>
882
883 * procfs.c (proc_get_gregs, proc_get_fpregs, proc_set_gregs)
884 (proc_set_fpregs, procfs_fetch_registers, procfs_store_registers):
885 Cleanup coding style.
886
887 2004-10-30 Andrew Cagney <cagney@gnu.org>
888
889 * mips-tdep.h (mips_pc_is_mips16): Declare.
890 * mips-tdep.c (mips_pc_is_mips16): Rename pc_is_mips16, make
891 non-static. Update calls.
892
893 * cli/cli-decode.c (add_setshow_enum_cmd): New function.
894 * command.h (add_setshow_enum_cmd): Declare.
895 * mips-tdep.c (_initialize_mips_tdep): Use add_setshow_enum_cmd.
896
897 * mips-tdep.c (_initialize_mips_tdep): Use
898 add_setshow_zinteger_cmd.
899
900 * mips-tdep.c (mips_eabi_extract_return_value)
901 (mips_o64_extract_return_value, mips_o64_store_return_value)
902 (return_value_location, mips_eabi_reg_struct_has_addr)
903 (mips_eabi_use_struct_convention)
904 (mips_eabi_store_return_value): Delete.
905 (mips_eabi_store_return_value): New function.
906 (mips_eabi_return_value): New function.
907 (mips_gdbarch_init): For O64 and EABI, delete
908 extract_return_value, store_return_value, use_struct_convention
909 and reg_struct_has_addr, add return_value.
910
911 * mips-tdep.c (read_signed_register): Use
912 regcache_cooked_read_signed.
913
914 2004-10-30 Mark Kettenis <kettenis@gnu.org>
915
916 * mipsread.c: Cleanup coding style.
917 (mipscoff_new_init, mipscoff_symfile_init, mipscoff_symfile_read)
918 (mipscoff_symfile_finish): Remove prototypes.
919
920 2004-10-29 Mark Kettenis <kettenis@gnu.org>
921
922 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
923 (mips_mdebug_frame_cache, mips16_scan_prologue)
924 (mips32_scan_prologue, mips_stub_frame_cache)
925 (heuristic_proc_start, heuristic_proc_desc)
926 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
927 (mips_n32n64_return_value, mips_o32_push_dummy_call)
928 (mips_o32_return_value, mips_o64_push_dummy_call)
929 (mips_step_skips_delay, mips_skip_trampoline_code)
930 (mips_gdbarch_init): Use MIPS_A0_REGNUM instead of A0_REGNUM,
931 MIPS_RA_REGNUM instead of RA_REGNUM, MIPS_T9_REGNUM instead of
932 T9_REGNUM, MIPS_V0_REGNUM instead of V0_REGNUM, MIPS_ZERO_REGNUM
933 instead of ZERO_REGNUM, MIPS32_SIZE_INSN instead of MIPS_INSTLEN
934 and MIPS16_INSN_SIZE instead of MIPS16_INSTLEN.
935 (mips_dump_tdep): Don't print A0_REGNUM, RA_REGNUM,
936 T9_REGNUM, V0_REGNUM, ZERO_REGNUM, MIPS_INSTLEN and
937 MIPS16_INSTLEN. Use MIPS_A0_REGNUM instead of A0_REGNUM.
938 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
939 (mips_linux_n32n64_sigframe_init): Use MIPS_ZERO_REGNUM instead of
940 ZERO_REGNUM.
941 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
942 (mipsnbsd_cannot_store_register): Use MIPS_ZERO_REGNUM instead of
943 ZERO_REGNUM.
944 (mipsnbsd_get_longjmp_target): Use MIPS_A0_REGNUM instead of
945 A0_REGNUM.
946 * mipsnbsd-nat.c: Include "mips-tdep.h".
947 (getregs_supplies): Use MIPS_ZERO_REGNUM instead of ZERO_REGNUM.
948 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
949
950 2004-10-29 Andrew Cagney <cagney@gnu.org>
951
952 * stack.c (parse_frame_specification_1): New function based on
953 parse_frame_specification. Add message and selected_frame_p
954 paramters. Truely always return non-NULL.
955 (parse_frame_specification): Call parse_frame_specification_1.
956 (frame_info): Update. Eliminate target_has_stack check.
957 (select_frame_command): Update.
958
959 2004-10-29 Andrew Cagney <cagney@gnu.org>
960
961 * frame.h (get_selected_frame): Add message parameter.
962 * frame.c (get_selected_frame): Add and use message parameter.
963 * stack.c (current_frame_command, return_command, locals_info)
964 (catch_info, args_info, up_silently_base, down_silently_base): Use
965 get_selected_frame with an explicit message.
966 * thread.c, stack.c, sh-tdep.c, sh64-tdep.c: Update.
967 * remote-rdp.c, remote-mips.c, remote-e7000.c: Update.
968 * ocd.c, mi/mi-main.c, mi/mi-cmd-stack.c: Update.
969 * infrun.c, inflow.c, infcmd.c, frame.c: Update.
970 * findvar.c, eval.c, corelow.c, bsd-kvm.c: Update.
971 * breakpoint.c: Update.
972
973 2004-10-29 Andrew Cagney <cagney@gnu.org>
974
975 * trad-frame.c (trad_frame_get_prev_register): Use
976 frame_unwind_register instead of frame_register_unwind, do not
977 recurse the register's location.
978 * xstormy16-tdep.c (xstormy16_frame_prev_register):
979 * sparc-tdep.c (sparc32_frame_prev_register): Ditto.
980 * sparc64-tdep.c (sparc64_frame_prev_register): Ditto.
981 * sh-tdep.c (sh_frame_prev_register): Ditto.
982 * m68k-tdep.c (m68k_frame_prev_register): Ditto.
983 * i386-tdep.c (i386_frame_prev_register): Ditto.
984 * dwarf2-frame.c (dwarf2_frame_prev_register): Ditto.
985 * amd64-tdep.c (amd64_frame_prev_register): Ditto.
986
987 2004-10-28 Mark Kettenis <kettenis@jive.nl>
988
989 * proc-events.c: Fix several coding-style issues. Consistently
990 use #ifdef instead of #if defined().
991 (proc_prettyfprint_fault, proc_prettyfprint_faultset): Use
992 ARRAY_SIZE.
993 (_initialize_proc_events): New prototype.
994
995 * proc-why.c: Fix several coding-style issues.
996 (proc_prettyfprint_why): Use ARRAY_SIZE.
997
998 2004-10-27 Jim Blandy <jimb@redhat.com>
999
1000 * remote.c (fetch_register_using_p): Construct 'p' packet in a
1001 manner independent of the host byte order.
1002
1003 2004-10-27 Mark Kettenis <kettenis@gnu.org>
1004
1005 * mips-tdep.c (id_delayed): Remove prototype.
1006
1007 2004-10-26 Mark Kettenis <kettenis@gnu.org>
1008
1009 * mips-tdep.h: Add MIPS_ZERO_REGNUM, MIPS_AT_REGNUM,
1010 MIPS_V0_REGNUM. MIPS_A0_REGNUM, MIPS_T9_REGNUM and MIPS_RA_REGNUM
1011 to enum with register numbers.
1012 (enum mips_insn_size): New enum.
1013
1014 2004-10-26 Andrew Cagney <cagney@gnu.org>
1015
1016 * config/mips/tm-linux.h: Delete #undef SKIP_TRAMPOLINE_CODE.
1017 * mips-tdep.c (mips_skip_trampoline_code): Rename mips_skip_stub.
1018 (mips_gdbarch_init): Update.
1019 (mips_dump_tdep): Do not print SKIP_TRAMPOLINE_CODE.
1020
1021 * config/arm/tm-linux.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1022 * config/mips/tm-nbsd.h, config/mips/tm-linux.h: Delete #undef
1023 IN_SOLIB_RETURN_TRAMPOLINE.
1024 * mips-tdep.c (mips_dump_tdep): Do not print
1025 IN_SOLIB_RETURN_TRAMPOLINE.
1026 (mips_in_solib_return_trampoline): Rename mips_in_return_stub.
1027 (mips_gdbarch_init): Update.
1028
1029 * mips-tdep.h (mips_software_single_step): Move to here ...
1030 * config/mips/tm-mips.h: ... from here.
1031 * config/mips/tm-linux.h (SOFTWARE_SINGLE_STEP_P)
1032 (SOFTWARE_SINGLE_STEP): Delete.
1033 * mips-linux-tdep.c (mips_linux_init_abi): Set software_single_step.
1034
1035 2004-10-25 Andrew Cagney <cagney@gnu.org>
1036
1037 * NEWS: Add Changes since GDB 6.3 section.
1038
1039 2004-10-23 Andreas Schwab <schwab@suse.de>
1040
1041 * ada-lang.c (grow_vect): Return the new array instead of
1042 expecting pointer to pointer to avoid violation of aliasing rules.
1043 * ada-lang.h (GROW_VECT): Adapt call to grow_vect.
1044
1045 2004-10-23 Ulrich Weigand <uweigand@de.ibm.com>
1046
1047 * s390-tdep.c (enum pv_boolean): Remove.
1048 (pv_is_array_ref): Remove.
1049 (s390_on_stack): Remove.
1050 (S390_NUM_SPILL_SLOTS): Remove.
1051 (struct s390_prologue_data): Remove members 'spill' and 'back_chain',
1052 add members 'gpr_slot', 'fpr_slot', and 'back_chain_saved_p'.
1053 (s390_store): Track all stores of orginal incoming registers to the
1054 stack constant offsets relative to the CFA, instead of only tracking
1055 stores into specific spill slots.
1056 (s390_load): Likewise.
1057 (s390_analyze_prologue): Adapt to struct s390_prologue_data changes.
1058 (s390_prologue_frame_unwind_cache): Likewise. Only track registers
1059 defined as call-saved by the ABI.
1060 (s390_push_dummy_call): Use bottom of dummy call argument save area
1061 as return value, not the top. Do not store to the called function's
1062 register save area.
1063 (s390_unwind_dummy_id): Adapt accordingly.
1064
1065 2004-10-23 Andrew Cagney <cagney@gnu.org>
1066
1067 * objfiles.h (struct objfile): Rename obj_private to
1068 deprecated_obj_private, sym_private to deprecated_sym_private, and
1069 sym_stab_info to deprecated_sym_stab_info.
1070 * gdb-stabs.h: Update.
1071 * elfread.c: Update.
1072 * dbxread.c: Update.
1073 * coffread.c: Update.
1074 * xcoffread.c: Update.
1075 * symfile.c: Update.
1076 * somread.c: Update.
1077 * nlmread.c: Update.
1078 * mdebugread.c: Update.
1079 * hpread.c: Update.
1080 * coffread.c: Update.
1081
1082 2004-10-23 Mark Kettenis <kettenis@gnu.org>
1083
1084 * mips64obsd-nat.c, mips64obsd-tdep.c: New files.
1085 * configure.host: Add mips64*-*-openbsd*.
1086 * configure.tgt: Add mips64*-*-openbsd*.
1087 * Makefile.in (ALLDEPFILES): Add mips64obsd-nat.o,
1088 mips64obsd-tdep.c.
1089 (mips64obsd-nat.o, mips64obsd-tdep.o): New dependecies.
1090 * config/mips/obsd64.mh, config/mips/obsd64.mt: New files.
1091
1092 2004-10-21 Joel Brobecker <brobecker@gnat.com>
1093
1094 * symtab.c (symbol_search_name): Minor reformatting.
1095
1096 2004-10-20 Joel Brobecker <brobecker@gnat.com>
1097
1098 * symtab.h: Fix typo in comment.
1099
1100 2004-10-19 Mark Kettenis <kettenis@gnu.org>
1101
1102 * dwarf2read.c (struct comp_unit_head): Fix coding style.
1103 (dwarf_decode_line_header): Likewise.
1104
1105 2004-10-19 Michael Chastain <mec.gnu@mindspring.com>
1106
1107 * NEWS: GDB works with GCC -feliminate-dwarf2-dups.
1108
1109 2004-10-19 Andrew Cagney <cagney@gnu.org>
1110
1111 GDB 6.3 branch created.
1112 * version.in: Bump to version 6.3.50_2004-10-19-cvs.
1113
1114 2004-10-15 Joel Brobecker <brobecker@gnat.com>
1115
1116 * dwarf2read.c (set_cu_language): Set language to Ada for
1117 DW_LANG_Ada83 and DW_LANG_Ada95.
1118
1119 2004-10-15 Michael Chastain <mec.gnu@mindspring.com>
1120
1121 From Andreas Schwab <schwab@suse.de>:
1122 * Makefile.in (.y.c, .l.c.): Fix the substitutions for
1123 for xmalloc and xrealloc.
1124
1125 2004-10-15 Andrew Cagney <cagney@gnu.org>
1126
1127 * ada-exp.y, ada-lex.l: Use xmalloc and xrealloc through out.
1128 * inf-ptrace.c: Include "gdb_wait.h" instead of <wait.h>.
1129 * Makefile.in (.y.c, .l.c): Don't replace xmalloc with xxmalloc.
1130 Update dependencies.
1131
1132 2004-10-15 Paul Hilfinger <Hilfinger@gnat.com>
1133
1134 * ada-lang.c (ada_lookup_symbol): Correct comment.
1135 (ada_evaluate_subexp): Change error message for
1136 OP_FUNCALL case so as not to indicate an internal error.
1137
1138 2004-10-15 Joel Brobecker <brobecker@gnat.com>
1139
1140 Committed by Paul Hilfinger.
1141 * ada-lang.c (ada_template_to_fixed_record_type_1): Detect bogus
1142 type sizes in XVE/XVU types, and emit a warning when that happens,
1143 instead of rounding up the size of the resulting type.
1144 Some minor reformatting.
1145 (ada_is_aligner_type): Do not consider a type as an aligner type
1146 if there is a corresponding XVS type as well.
1147 (ada_evaluate_subexp): For TERNOP_SLICE, handle cases where we
1148 have several levels of pointer indirection to the array.
1149
1150 2004-10-15 Jerome Guitton <guitton@gnat.com>
1151
1152 Committed by Paul Hilfinger.
1153 * ada-lang.c (check_size): New function.
1154 (coerce_unspec_val_to_type): call check_size to make sure
1155 that the object size is reasonable.
1156 (ada_evaluate_subexp): in UNOP_IND: Ditto. In TERNOP_SLICE:
1157 Implements the case when we get a reference when we evaluate
1158 the expression of one of the bounds of the slice.
1159 (ada_value_struct_elt): when a packed array field is
1160 a reference, use ada_coerce_ref to dereference it; use
1161 ada_value_ind only if it is a pointer.
1162
1163 2004-10-15 Joel Brobecker <brobecker@gnat.com>
1164
1165 * mips-tdep.c (mips32_scan_prologue): Move the implementation up
1166 a bit to avoid the necessity of an advance declaration. Remove
1167 declaration.
1168 (set_reg_offset): Move implemenation up.
1169 (mips16_get_imm): Likewise.
1170 (mips16_scan_prologue): Likewise.
1171 (reset_saved_regs): Likewise.
1172 (mips32_scan_prologue): Likewise.
1173
1174 2004-10-14 Joel Brobecker <brobecker@gnat.com>
1175
1176 * mips-tdep.c (mips32_scan_prologue): Add advance declaration.
1177 Remove sp as a parameter, compute it internally instead. Move
1178 prologue scanning limit from heuristic_proc_desc to here.
1179 (mips16_scan_prologue): Likewise.
1180 (mips_insn16_frame_cache): Replace call to heuristic_proc_desc
1181 by call to mips16_scan_prologue.
1182 (mips_insn32_frame_cache): Replace call to heuristic_proc_desc
1183 by call to mips32_scan_prologue.
1184 (heuristic_proc_desc): Remove code that's no longer necessary.
1185 Update calls to mips16_scan_prologue and mips32_scan_prologue.
1186 (mips_skip_prologue): Update calls to mips16_scan_prologue
1187 and mips32_scan_prologue.
1188
1189 2004-10-14 Joel Brobecker <brobecker@gnat.com>
1190
1191 * mips-tdep.c (mips16_scan_prologue): Merge code from
1192 mips16_skip_prologue. Now return the address of the first
1193 instruction past the function prologue.
1194 (mips16_skip_prologue): Remove, no longer necessary.
1195 (mips_skip_prologue): Replace call to mips16_skip_prologue
1196 by call to mips16_scan_prologue.
1197
1198 2004-10-14 Joel Brobecker <brobecker@gnat.com>
1199
1200 * mips-tdep.c (mips32_scan_prologue): Merge code from
1201 mips32_skip_prologue. Now return the address of the first
1202 instruction past the function prologue.
1203 (mips32_skip_prologue): Remove. No longer necessary.
1204 (mips16_skip_prologue): Add parameter end_pc instead of
1205 computing it.
1206 (mips_skip_prologue): Compute the upper limit for the
1207 prologue scanning. Update call to mips16_skip_prologue.
1208 Replace call to mips32_skip_prologue by call to
1209 mips32_scan_prologue.
1210
1211 2004-10-14 Mark Kettenis <kettenis@gnu.org>
1212
1213 * hppa-tdep.c (hppa_frame_cache): Add support for OpenBSD and
1214 NetBSD system call stubs that store %rp in the ERP slot of the
1215 stack frame.
1216
1217 * source.c: Always define O_BINARY to 0 if not defined already.
1218 (openp): Unconditionally use O_BINARY.
1219
1220 * top.c (gdb_readline): Always accept "\r\n" as a line-ending.
1221 * event-top.c (gdb_readline2): Likewise.
1222
1223 2004-10-14 Orjan Friberg <orjanf@axis.com>
1224
1225 * cris-tdep.c (_initialize_cris_tdep): Re-add call to
1226 deprecated_add_core_fns which was removed by mistake.
1227
1228 2004-10-13 Kevin Buettner <kevinb@redhat.com>
1229
1230 * ia64-linux-nat.c (fill_gregset, fill_fpregset): Replace
1231 references to deprecated_registers[] with equivalent code.
1232
1233 2004-10-13 Kevin Buettner <kevinb@redhat.com>
1234
1235 * rs6000-tdep.c (rs6000_push_dummy_call): Replace references to
1236 ``deprecated_registers'' with equivalent code. Use gdb_assert()
1237 instead of explicit test and print statement.
1238
1239 2004-10-12 Mark Kettenis <kettenis@gnu.org>
1240
1241 * sparc-nat.c: Include "inf-ptrace.h".
1242 (sparc_target): New function.
1243 * sparc-nat.h: Update copyright year.
1244 (sparc_target): New prototype.
1245 * sparcnbsd-nat.c: Don't include "gdbcore.h", include "target.h".
1246 (_initialize_sparcnbsd_nat): Construct and add target vector.
1247 * sparc64nbsd-nat.c: Include "target.h".
1248 (_initialize_sparc64nbsd_nat): Construct and add target vector.
1249 * Makefile.in (sparc-nat.o, sparcnbsd-nat.o, sparc64nbsd-nat.o):
1250 Update dependencies.
1251 * config/sparc/nbsd64.mh (NATDEPFILES): Remove infptrace.o and
1252 inftarg.o, add inf-ptrace.o.
1253 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1254 inftarg.o, add inf-ptrace.o and bsd-kvm.o.
1255 (NAT_FILE): Set to nm-bsd.h.
1256 (LOADLIBES): New variable.
1257 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
1258 infarg.o, add inf-ptrace.o.
1259 * config/sparc/nm-nbsdaout.h: Remove file.
1260 * config/sparc/fbsd.mh (NATDEPFILES): Add inf-ptrace.o.
1261 * config/sparc/linux.mh (NATDEPFILES): Add inf-ptrace.o.
1262 * config/sparc/linux64.mh (NATDEPFILES): Add inf-ptrace.o.
1263
1264 * defs.h [!FOPEN_RB]: Include "fopen-bin.h" instead of
1265 "fopen-same.h". Update comment.
1266
1267 2004-10-11 Mark Kettenis <kettenis@gnu.org>
1268
1269 * i386gnu-nat.c: Include "gdb_string.h".
1270 (fetch_fpregs): Use i387_supply_fxsave to fill the floating-point
1271 registers when the floating-point state isn't initialized.
1272 * Makefile.in (i386gnu-nat.o): Update dependencies.
1273
1274 2004-10-11 David Anderson <davea@sgi.com>
1275
1276 * regcache.c (regcache_raw_read): Comment was missing "to".
1277 Extraneous ' removed.
1278 * gdb_thread_db.h (struct td_thrinfo): ti_lid field
1279 comment now describes use.
1280
1281 2004-10-11 Orjan Friberg <orjanf@axis.com>
1282
1283 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start)
1284 (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
1285 (cris_sigtramp_frame_this_id, cris_sigtramp_frame_prev_register)
1286 (cris_sigtramp_frame_sniffer): New functions.
1287 (cris_gdbarch_init): Hook in signal trampoline unwinder.
1288 (cris_dwarf2_reg_to_regnum, cris_dwarf2_frame_init_reg): New functions.
1289 (cris_gdbarch_init): Hook in Dwarf-2 unwinder.
1290 (struct gdbarch_tdep, set_cris_dwarf2_cfi, cris_dump_tdep)
1291 (cris_gdbarch_init, _initialize_cris_tdep): Add CRIS Dwarf-2 CFI usage
1292 command.
1293 (cris_version_update): Remove, replace with ...
1294 (set_cris_version): New function.
1295 (struct gdbarch_tdep, cris_mode, cris_mode_update)
1296 (cris_cannot_store_register, cris_dump_tdep, cris_gdbarch_init)
1297 (_initialize_cris_tdep): Remove CRIS mode command.
1298 (cris_fpless_backtrace, _initialize_cris_tdep): Remove
1299 cris-fpless-backtrace command.
1300 (cris_scan_prologue): Fix prologue scanning limit.
1301 (cris_register_type): Update to reflect actual registers.
1302 (cris_register_bytes_ok) Remove.
1303 (cris_gdbarch_init): Remove support for CRIS v8 and v9.
1304 Remove set_gdbarch_deprecated_register_size,
1305 set_gdbarch_deprecated_register_byte, set_gdbarch_register_bytes_ok.
1306
1307 2004-10-10 Andrew Cagney <cagney@gnu.org>
1308
1309 * ada-lang.c (lim_warning): Add ATTR_FORMAT prototype and FIXME
1310 comment.
1311
1312 2004-10-10 Joel Brobecker <brobecker@gnat.com>
1313
1314 * mips-tdep.c (mips16_scan_prologue): Remove redundant code.
1315
1316 2004-10-10 Joel Brobecker <brobecker@gnat.com>
1317
1318 * mips-tdep.c (mips16_scan_prologue): Renames
1319 mips16_heuristic_proc_desc. Update comment.
1320 (mips32_scan_prologue): Renames mips32_heuristic_proc_desc.
1321 (heuristic_proc_desc): Update calls to the 2 functions above.
1322
1323 2004-10-10 Joel Brobecker <brobecker@gnat.com>
1324
1325 * mips-tdep.c (mips_insn16_frame_cache): Remove unused variables.
1326 Update comments. Also immediately return empty cache when the start
1327 address of our function could not be found.
1328 (mips_insn32_frame_cache): Likewise.
1329
1330 2004-10-10 Joel Brobecker <brobecker@gnat.com>
1331
1332 * mips-tdep.c (mips16_decode_reg_save): Delete, no longer used.
1333 (mips_insn16_frame_cache): Pass frame cache in call to
1334 heuristic_proc_desc. Move some code to mips16_heuristic_proc_desc.
1335 Remove code that became redundant as a consequence.
1336 (mips32_heuristic_proc_desc): No longer compute a fake
1337 procedure descriptor. Compute the full frame cache instead.
1338 Some minor comment reformatting.
1339
1340 2004-10-10 Jim Blandy <jimb@redhat.com>
1341
1342 * MAINTAINERS (generic symtabs, dwarf readers, elf reader, stabs
1343 reader, tracing bytecode stuff): Remove self.
1344
1345 2004-10-10 Mark Kettenis <kettenis@gnu.org>
1346
1347 * sparc64-linux-tdep.c: Update copyright year. Don't include
1348 "solib-svr4.h".
1349 (sparc64_linux_svr4_fetch_link_map_offsets): Remove function.
1350 (sparc64_linux_init_abi): Don't set solib_svr4_link_map_offsets.
1351 * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
1352
1353 * sparc-linux-tdep.c: Update copyright year.
1354 (sparc_linux_sigtramp_start): Change first argument from CORE_ADDR
1355 to struct frame_info *. Use safe_frame_unwind_memory instead of
1356 deprecated_read_memory_nobpt.
1357 (sparc32_linux_sigtramp_start, sparc32_linux_rt_sigtramp_start):
1358 Change argumen from CORE_ADDR to struct frame_info *. Adjust for
1359 changed signature of sparc_linux_sigtramp_start.
1360 (sparc32_linux_pc_in_sigtramp): Remove function.
1361 (sparc32_linux_sigtramp_p): New function.
1362 (sparc32_linux_sigtramp_frame_sniffer): Use
1363 sparc32_linux_sigtramp_p instead of sparc32_linux_pc_in_sigtramp.
1364
1365 * sparc-linux-tdep.c (sparc32_linux_svr4_fetch_link_map_offsets):
1366 Remove function.
1367 (sparc32_linux_init_abi): Don't set solib_svr4_link_map_offsets.
1368
1369 * ada-lang.c (lim_warning): Re-implement as a varargs function.
1370 (decode_packed_array_type, value_subscript_packed)
1371 (ada_evaluate_subexp, to_fixed_range_type): Remove redundant
1372 argument in call to lim_warning.
1373
1374 * configure.in: Really disable the TUI if an enhanced curses
1375 library isn't found.
1376 * configure: Regenerate.
1377
1378 2004-10-09 Mark Kettenis <kettenis@gnu.org>
1379
1380 * config/i386/nbsdaout.mh (NAT_FILE): Set to solib.h.
1381 * config/i386/nbsdelf.mh (NAT_FILE): Set to solib.h.
1382 * config/i386/nm-nbsdaout.h: Remove file.
1383 * config/i386/nm-fbsd.h (link_object, lo_name, lo_library)
1384 (lo_unused, lo_major, lo_minor, lo_next, link_map, lm_addr)
1385 (lm_name, lm_next, lm_lop, lm_lob, lm_rwt, lm_ld, lm_lpd)
1386 (link_dynamic_2, ld_loaded, ld_need, ld_rules, ld_got, ld_plt)
1387 (ld_rel, ld_hash, ld_stab, ld_stab_hash, ld_buckets, ld_symbols)
1388 (ld_symb_size, ld_text, ld_plt_sz, rtc_symb, rtc_sp, rtc_next)
1389 (ld_debug, ldd_version, ldd_in_debugger, ldd_sym_loaded)
1390 (ldd_bp_addr, ldd_bp_inst, ldd_cp, link_dynamic, ld_version)
1391 (ldd, ld_un, ld_2): Remove defines.
1392 * config/i386/nm-obsd.h: Likewise.
1393
1394 2004-10-09 Paul Hilfinger <hilfingr@nile.gnat.com>
1395
1396 * ada-lex.l: Remove useless rule whose right-context clause
1397 causes unreferenced static function warning for yyrealloc.
1398 (ada_flex_use): Remove the artificial reference to yyrealloc.
1399
1400 2004-10-08 Andrew Cagney <cagney@gnu.org>
1401
1402 * target.h (struct target_ops): Rename to_xfer_memory to
1403 deprecated_xfer_memory.
1404 * target.c: Update.
1405 (deprecated_debug_xfer_memory): Rename debug_to_xfer_memory.
1406 * wince.c: Update.
1407 * win32-nat.c: Update.
1408 * v850ice.c: Update.
1409 * uw-thread.c: Update.
1410 * thread-db.c: Update.
1411 * sol-thread.c: Update.
1412 * remote.c: Update.
1413 * remote-vx.c: Update.
1414 * remote-st.c: Update.
1415 * remote-sim.c: Update.
1416 * remote-sds.c: Update.
1417 * remote-rdp.c: Update.
1418 * remote-rdi.c: Update.
1419 * remote-mips.c: Update.
1420 * remote-m32r-sdi.c: Update.
1421 * remote-e7000.c: Update.
1422 * procfs.c: Update.
1423 * ppc-bdm.c: Update.
1424 * nto-procfs.c: Update.
1425 * monitor.c: Update.
1426 * linux-nat.c: Update.
1427 * inftarg.c: Update.
1428 * hpux-thread.c: Update.
1429 * go32-nat.c: Update.
1430 * gnu-nat.c: Update.
1431 * exec.c: Update.
1432 * corelow.c: Update.
1433 * bsd-kvm.c: Update.
1434 * aix-thread.c: Update.
1435
1436 2004-10-08 Andrew Cagney <cagney@gnu.org>
1437
1438 * target.c (debug_target): Move to near start of file.
1439 (target_stopped_data_address_p): Re-org logic, add casts.
1440
1441 2004-10-02 Mark Kettenis <kettenis@gnu.org>
1442
1443 * solib-sunos.c [HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS] (link_map)
1444 (lm_addr, lm_name, lm_next, link_dynamic_2, ld_loaded, rtc_symb)
1445 (rtc_sp, rtc_next, ld_debug, ldd_in_debugger, ldd_bp_addr)
1446 (ldd_bp_inst, ldd_cp, link_dynamic, ld_version, ldd, ld_un, ld_2):
1447 New defines.
1448
1449 2004-10-08 Jeff Johnston <jjohnstn@redhat.com>
1450
1451 * target.h (to_stopped_data_address): Change prototype to
1452 take a CORE_ADDR pointer and return an int.
1453 * target.c (update_current_target): Change to_stopped_data_address
1454 to match new prototype.
1455 (debug_to_stopped_data_address): Change appropriately.
1456 * breakpoint.c (bpstat_stop_status): Change call to
1457 target_stopped_data_address to use new prototype.
1458 * frv-tdep.c (frv_have_stopped_data_address): New function.
1459 (frv_stopped_data_address): Change to new prototype and
1460 functionality.
1461 * ia64-linux-nat.c (ia64_stopped_data_address): Change to new
1462 prototype and functionality.
1463 (ia64_stopped_by_watchpoint): New function.
1464 * i386-nat.c (i386_stopped_data_address): Change to new
1465 prototype and functionality.
1466 (i386_stopped_by_watchpoint): New function.
1467 * remote.c (remote_stopped_data_address): Change to new prototype
1468 and functionality.
1469 * remote-m32r-sdi.c (m32r_stopped_data_address): Ditto.
1470 * config/frv/tm-frv.h (frv_stopped_data_address): Change prototype.
1471 (STOPPED_BY_WATCHPOINT): Change to use frv_have_stopped_data_address.
1472 * config/i386/nm-i386.h (STOPPED_BY_WATCHPOINT): Change to use
1473 new i386_stopped_by_watchpoint function.
1474 (i386_stopped_by_watchpoint): New prototype.
1475 (i386_stoppped_data_address): Change to new prototype.
1476 * config/ia64/nm-linux.h (STOPPED_BY_WATCHPOINT): Change to use
1477 new ia64_stopped_by_watchpoint function.
1478 (ia64_stopped_by_watchpoint): New prototype.
1479 (ia64_stopped_data_address): Ditto.
1480
1481 2004-10-08 Paul Hilfinger <Hilfinger@gnat.com>
1482
1483 * ada-typeprint.c (ada_print_type): Use int_string for printing
1484 modulus of modular type.
1485 * ada-lang.h (ada_modulus): Change return type to unsigned.
1486 * ada-lang.c (ada_language_arch_info): Correct type of
1487 string_char_type.
1488 (ada_modulus): Return unsigned result.
1489 (ada_lookup_symbol): Remove user disambiguation and modify comment
1490 accordingly.
1491
1492 2004-10-08 Eric Botcazou <ebotcazou@act-europe.fr>
1493
1494 Committed by Paul Hilfinger.
1495 * ada-lang.c (decode_packed_array): On big-endian targets,
1496 left-justify the value if it comes with a modular type.
1497
1498 2004-10-08 Joel Brobecker <brobecker@gnat.com>
1499
1500 Committed by Paul Hilfinger.
1501 * ada-lang.c (template_to_static_fixed_type): Fix a small typo.
1502 (is_name_suffix): Add support for "___JM" suffixes.
1503 (ada_check_typedef): Renames ada_completed_type.
1504 Update all users of CHECK_TYPEDEF, check_typedef, and
1505 ada_complete_type to call ada_check_typedef.
1506 * ada-typeprint.c: Likewise.
1507 * ada-valprint.c: Likewise.
1508
1509 2004-10-08 Corinna Vinschen <vinschen@redhat.com>
1510
1511 * infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
1512
1513 2004-10-08 Nick Roberts <nickrob@snap.net.nz>
1514
1515 * MAINTAINERS: Update e-mail address.
1516
1517 2004-10-07 Daniel Jacobowitz <dan@debian.org>
1518
1519 From Maciej W. Rozycki <macro@mips.com>:
1520 * mips-tdep.c (mips32_next_pc): Check the register's contents,
1521 not its number for BLEZ/BLEZL and BGTZ/BGTZL.
1522
1523 2004-10-07 Kei Sakamoto <sakamoto.kei@renesas.com>
1524
1525 * m32r-tdep.c (decode_prologue): Support functions written
1526 in assembler language. Recognize trap instructions as the
1527 end of prologue.
1528 (m32r_frame_unwind_cache): Ditto.
1529 (m32r_skip_prologue): Extend search limit. Quit analyzing
1530 prologue if pc's location is not readable.
1531
1532 2004-10-06 Paul N. Hilfinger <Hilfinger@gnat.com>
1533
1534 * Makefile.in (.l.c): Do conversions of names of alloc and free
1535 functions that are done for .y.c files, plus special one
1536 for yy_flex_realloc. Also, correct missing-file tests here.
1537 * ada-lex.l (malloc, free): Remove macros.
1538 (resize_tempbuf): Use "realloc"; rely on sed changes to convert to
1539 xrealloc.
1540 (ada_flex_use): Dummy definition to remove warnings about unused
1541 functions.
1542 * ada-exp.y (dummy_string_to_ada_operator): Temporary definition
1543 to suppress warning.
1544
1545 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1546
1547 * sh-tdep.c (sh_return_value_nofpu): New function, implementing
1548 RETURN_VALUE.
1549 (sh_return_value_fpu): Ditto for CPUs with FPU.
1550 (sh_gdbarch_init): Remove STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
1551 RETURN_VALUE_ON_STACK and USE_STRUCT_CONVENTION throughout.
1552 Install sh_return_value_nofpu resp. sh_return_value_fpu as
1553 RETURN_VALUE functions.
1554
1555 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1556
1557 * sh-tdep.c (sh_pseudo_register_read): Add PSEUDO_BANK_REGNUM handling.
1558 (sh_pseudo_register_write): Ditto.
1559
1560 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1561
1562 * sh-tdep.c (IS_MACL_STS): New define.
1563 (IS_MOVI20): Ditto.
1564 (IS_MACL_LDS): Ditto.
1565 (sh_analyze_prologue): Recognize STS.L MACL,@-r15 and MOVI20
1566 instructions in prologue.
1567 (sh_in_function_epilogue_p): Recognize LDS.L @r15+,MACL and MOVI20
1568 instructions in epilogue.
1569
1570 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1571
1572 * sh-tdep.c (SH_NUM_REGS): Define as 67.
1573 (sh_sh_register_name): Add eight empty register names.
1574 (sh_sh3_register_name): Ditto.
1575 (sh_sh3e_register_name): Ditto.
1576 (sh_sh2e_register_name): Ditto.
1577 (sh_sh2a_register_name): New function, defining SH2A register set.
1578 (sh_sh2a_nofpu_register_name): New function, defining SH2A register set
1579 in nofpu case.
1580 (sh_sh_dsp_register_name): Add eight empty register names.
1581 (sh_sh3_dsp_register_name): Ditto.
1582 (sh_sh4_register_name): Ditto.
1583 (sh_sh4_nofpu_register_name): Ditto.
1584 (sh_sh4al_dsp_register_name): Ditto.
1585 (sh2a_show_regs): New function.
1586 (sh2a_nofpu_show_regs): New function.
1587 (sh_sh2a_register_type): New function.
1588 (do_bank_register_info): New function.
1589 (sh_print_pseudo_register): Call do_bank_register_info.
1590 Call sh_print_pseudo_register for valid "bank" register.
1591 (sh_sh2a_register_sim_regno): New function.
1592 (sh_gdbarch_init): Add bfd_mach_sh2a and bfd_mach_sh2a_nofpu handling.
1593 Increment pseudo register count by one for all sh variants with
1594 pseudo registers to accomodate pseudo bank register.
1595 * sh-tdep.h: Add register numbers for R0_BANK0_REGNUM, MACHB_REGNUM,
1596 IVNB_REGNUM, PRB_REGNUM, GBRB_REGNUM, MACLB_REGNUM, BANK_REGNUM,
1597 IBCR_REGNUM, IBNR_REGNUM, TBR_REGNUM and PSEUDO_BANK_REGNUM.
1598 Increment pseudo register numbers.
1599
1600 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1601
1602 * dwarf2read.c (read_subroutine_type): Call make_function_type
1603 instead of lookup_function_type.
1604
1605 2004-10-05 Jim Blandy <jimb@redhat.com>
1606
1607 * linux-nat.c (_initialize_linux_nat): Rename child_ops.
1608 (Previous change missed some uses.)
1609
1610 2004-10-05 Andrew Cagney <cagney@gnu.org>
1611
1612 * target.h (deprecated_child_ops): Rename child_ops.
1613 * wince.c: Update copyright. Rename child_ops.
1614 * win32-nat.c: Rename child_ops.
1615 * target.c: Rename child_ops.
1616 * rs6000-nat.c: Rename child_ops.
1617 * linux-nat.c: Rename child_ops.
1618 * infttrace.c: Rename child_ops.
1619 * inftarg.c: Rename child_ops.
1620 * infptrace.c: Rename child_ops.
1621 * hppah-nat.c: Update copyright. Rename child_ops.
1622 * hpux-thread.c: Update copyright. Rename child_ops.
1623
1624 2004-10-05 Daniel Jacobowitz <dan@debian.org>
1625
1626 * remote.c (remote_xfer_partial): Handle TARGET_OBJECT_MEMORY.
1627
1628 2004-10-05 Andrew Cagney <cagney@gnu.org>
1629
1630 * version.in: Bump to version 6.2.50_YYYY-MM-DD-cvs.
1631
1632 2004-10-05 Daniel Jacobowitz <dan@debian.org>
1633
1634 * dwarf2read.c (REF_HASH_SIZE): Move earlier.
1635 (die_ref_table): Remove.
1636 (struct dwarf2_cu): Add DIES, DEPENDENCIES, and DIE_REF_TABLE.
1637 (struct dwarf2_per_cu_data): Add PSYMTAB. Add a comment describing
1638 the usage of this type.
1639 (struct dwarf2_per_objfile): Update comment for ALL_COMP_UNITS.
1640 (struct dwarf2_pinfo, PST_PRIVATE, DWARF_INFO_OFFSET): Remove.
1641 (struct dwarf2_queue_item, dwarf2_queue, dwarf2_queue_tail): New.
1642 (dwarf2_create_include_psymtab): Update comment.
1643 (find_partial_die): Remove third argument. Remove unreachable call
1644 to error ().
1645 (dwarf2_find_containing_comp_unit): Update comments. Change one
1646 assertion to an error. Remove an unreachable error.
1647 (dwarf2_find_comp_unit): Update comments.
1648 (type_at_offset): Remove dead code.
1649 (make_cleanup_free_die_list, dwarf2_empty_hash_tables): Remove.
1650 (store_in_ref_table): Add CU argument.
1651 (follow_die_ref): Take DIE, attribute, and CU arguments. Handle
1652 inter-compilation-unit references.
1653 (load_full_comp_unit, process_full_comp_unit): New functions, based
1654 on psymtab_to_symtab_1.
1655 (psymtab_to_symtab_1): Use them.
1656 (dwarf2_add_dependence): New function.
1657 (dwarf2_build_psymtabs_hard): Set the psymtab in per_cu. Always create
1658 a per_cu structure, and save it in READ_PSYMTAB_PRIVATE.
1659 (partial_die_parent_scope, guess_structure_name): Update for changes
1660 to find_partial_die.
1661 (dwarf2_psymtab_to_symtab): Initialize dwarf2_per_objfile here.
1662 (queue_comp_unit, process_queue, dwarf2_release_queue): New.
1663 (read_comp_unit): Don't call dwarf2_empty_hash_tables.
1664 (read_die_and_children): Update call to store_in_ref_table.
1665 (do_free_die_list_cleanup): Remove.
1666 (fixup_partial_die): Update for changes to find_partial_die.
1667 (read_full_die): Handle queueing absolute references.
1668 (read_attribute_value): Use DW_ADDR for all DW_FORM_ref* forms.
1669 (dwarf2_attr, die_specification, die_type)
1670 (die_containing_type, dwarf2_extension): Update calls to
1671 follow_die_ref.
1672 (dump_die): Update DW_FORM_ref* handling.
1673 (dwarf2_get_ref_die_offset): Likewise.
1674 (free_one_comp_unit): Release the dies list.
1675 (dwarf2_mark_helper): New function.
1676 (dwarf2_mark): Use it.
1677
1678 2004-10-05 Mark Kettenis <kettenis@jive.nl>
1679
1680 * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
1681 when writing to memory.
1682
1683 2004-10-05 Kei Sakamoto <sakamoto.kei@renesas.com>
1684
1685 * m32r-tdep.c (m32r_use_struct_convention): Delete function.
1686 (m32r_extract_struct_value_address): Delete function.
1687 (m32r_return_value): New function.
1688 (m32r_gdbarch_init): Instead of store_return_value,
1689 extract_return_value, deprecated_extract_struct_value_address
1690 and deprecated_use_struct_convention, set return_value.
1691
1692 2004-10-03 Daniel Jacobowitz <dan@debian.org>
1693
1694 * dwarf2read.c (read_subrange_type): Add comment for variable
1695 sized arrays.
1696
1697 2004-10-03 Paul Hilfinger <hilfingr@nile.gnat.com>
1698
1699 * Makefile.in (.l.c): Modify rule for compatibility with recent
1700 versions of flex, and remove most command-line options.
1701 * ada-lex.l: Add %options line in place of -I -i and -s command-line
1702 options.
1703
1704 2004-10-02 Paul N. Hilfinger <Hilfinger@gnat.com>
1705
1706 Turn on initial Ada support (mainly expression evaluation).
1707
1708 * Makefile.in (SFILES): Remove ada-tasks.c.
1709 (HFILES_NO_SRCDIR): Add ada-lang.h.
1710 (COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
1711 (YYOBJ): Add ada-exp.o.
1712 (rule .l.c): Generalize to not mention ada.
1713 * symtab.c: Include ada-lang.h.
1714 (symbol_natural_name, symbol_demangled_name)
1715 (symbol_search_name): Add Ada case.
1716
1717 2004-10-01 Andrew Cagney <cagney@gnu.org>
1718
1719 * Makefile.in (COMMON_OBS): Add inf-child.o.
1720 * config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
1721 * config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
1722 * config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
1723 * config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
1724 * config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
1725 * config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
1726 * config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
1727 * config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
1728 * config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
1729 * config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
1730 * config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
1731 * config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
1732 * config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
1733
1734 * target.c (xfer_using_stratum): Change return type to LONGEST.
1735 On each iteration offset, readbuf and writebuf.
1736 * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
1737 partial_length, and read/modify/write predicate, update comments.
1738 Pass buffer.word to ptrace write.
1739
1740 2004-10-01 Paul N. Hilfinger <Hilfinger@gnat.com>
1741
1742 * symfile.c (init_filename_language_table): Add extensions for
1743 Ada.
1744 * defs.h (enum language): Add language_ada.
1745 * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
1746 * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
1747 (add_symbols_from_enclosing_procs): Make a no-op for now.
1748 (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
1749 (extended_canonical_line_spec, find_sal_from_funcs_and_line)
1750 (find_line_in_linetable, find_next_line_in_linetable)
1751 (read_all_symtabs, is_plausible_func_for_line)
1752 (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
1753 (is_runtime_sym_defined, check_size): Remove declaration.
1754 (function_name_from_pc, ada_translate_error_message)
1755 (ada_lookup_minimal_symbol): Remove definition.
1756 (ada_add_block_symbols): Remove useless label.
1757 * ada-lang.h (ada_maybe_exception_partial_symbol): Remove
1758 useless declaration.
1759 (ada_is_exception_sym): Likewise.
1760
1761 2004-09-30 Kei Sakamoto <sakamoto.kei@renesas.com>
1762
1763 Add m32r-linux support.
1764 * configure.tgt: Add m32r*-*-linux*.
1765 * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
1766 and m32r-linux-tdep.c.
1767 (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
1768 * m32r-tdep.c: Move some definitions to m32r-tdep.h.
1769 * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
1770 m32r-linux-tdep.c.
1771 * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
1772 config/m32r/linux.mh, config/m32r/linux.mt,
1773 config/m32r/nm-linux.h: New files.
1774
1775 2004-09-30 Joel Brobecker <brobecker@gnat.com>
1776
1777 * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
1778 (mips32_fetch_instruction): Remove, unused.
1779
1780 2004-09-30 Joel Brobecker <brobecker@gnat.com>
1781
1782 * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
1783 conditions that will always be true.
1784
1785 2004-09-30 Mark Kettenis <kettenis@gnu.org>
1786
1787 * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
1788 (vaxbsd_fetch_inferior_registers): Rename from
1789 fetch_inferior_registers. Make static.
1790 (vaxbsd_store_inferior_registers): Rename from
1791 store_inferior_registers. Make static.
1792 (_initialize_vaxbsd_nat): Construct and add target vector.
1793 * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1794 inftarg.o. Add inf-child.o and inf-ptrace.o.
1795 * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
1796 inftarg.o. Add inf-child.o and inf-ptrace.o.
1797 (NAT_FILE): Remove.
1798 * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
1799 inftarg.o. Add inf-child.o and inf-ptrace.o.
1800 (NAT_FILE): Remove.
1801 * Makefile.in (vaxbsd-nat.o): Update dependencies.
1802
1803 * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
1804 (m88kbsd_fetch_inferior_registers): Rename from
1805 fetch_inferior_registers. Make static.
1806 (m88kbsd_store_inferior_registers): Rename from
1807 store_inferior_registers. Make static.
1808 (_initialize_m88kbsd_nat): New prototype and function.
1809 * config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
1810 inftarg.o. Add inf-child.o and inf-ptrace.o.
1811 (NAT_FILE): Remove.
1812 * Makefile.in (m88kbsd-nat.o): Update dependencies.
1813
1814 2004-09-30 Andrew Cagney <cagney@gnu.org>
1815
1816 * target.c (target_xfer_partial): New function.
1817 (target_read_memory_partial, target_write_memory_partial)
1818 (default_xfer_partial, target_read_partial, target_write_partial)
1819 (xfer_using_stratum): Use.
1820 (debug_to_xfer_partial): Delete function.
1821 (setup_target_debug): Do not override to_xfer_partial.
1822
1823 2004-09-30 Mark Kettenis <kettenis@chello.nl>
1824
1825 * fork-child.c: Update copyright year. Fix coding style.
1826
1827 2004-09-29 Mark Kettenis <kettenis@gnu.org>
1828
1829 * defs.h (msavestring, mstrsave): Remove prototypes.
1830 * utils.c (msavestring, mstrsave): Remove functions.
1831 * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
1832 * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
1833 of mstrsave.
1834 * source.c (find_and_open_source): Use xstrdup instead of
1835 mstrsave.
1836
1837 2004-09-30 Andrew Cagney <cagney@gnu.org>
1838
1839 * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
1840 (inf_ptrace_xfer_memory): Delete.
1841 * target.c (target_xfer_partial_p, xfer_using_stratum): New.
1842 (target_read_memory, target_write_memory): Use xfer_using_stratum
1843 when target_xfer_partial_p.
1844 (debug_target): Move to start of file.
1845 (target_read_memory_partial, target_write_memory_partial): Use
1846 to_xfer_partial when target_xfer_partial_p.
1847
1848 * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
1849 inf_ptrace_xfer_memory with equivalent code.
1850 * inftarg.c (child_xfer_partial): When performing a write, pass
1851 writebuf to child_xfer_memory.
1852
1853 * target.c (target_read_string): Use target_read_memory instead of
1854 target_xfer_memory.
1855
1856 2004-09-29 Andrew Cagney <cagney@gnu.org>
1857
1858 * infptrace.c (kill_inferior): Fix typo, in previous inline. Pass
1859 the address of status.
1860
1861 * infptrace.c (ptrace_wait): Mention problem with HPUX.
1862 (kill_inferior): Inline ptrace_wait call.
1863 * linux-nat.c (kill_inferior): Inline ptrace_wait call.
1864 * inftarg.c (child_wait): Inline ptrace_wait call.
1865
1866 * target.h (struct target_ops): Delete field to_post_wait.
1867 (target_post_wait): Delete macro.
1868 (child_post_wait): Delete declaration.
1869 * target.c (update_current_target, update_current_target)
1870 (debug_to_post_wait, setup_target_debug): Delete functions and
1871 references.
1872 * infttrace.c (ptrace_wait): Delete call to target_post_wait.
1873 * inftarg.c (child_post_wait): Delete.
1874 (init_child_ops): Do not set to_post_wait.
1875 * infptrace.c (ptrace_wait): Delete call to target_post_wait.
1876 * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
1877 * inf-child.c (inf_child_post_wait): Delete.
1878 (inf_child_target): Do not set to_post_wait.
1879 * inf-ptrace.c (inf_ptrace_post_wait): Delete.
1880 (inf_ptrace_target): Do not set to_post_wait.
1881
1882 * wince.c (child_ops): Delete.
1883 * win32-nat.c (child_ops): Delete.
1884
1885 * inftarg.c (inftarg_set_find_memory_regions)
1886 (inftarg_set_make_corefile_notes): Delete functions.
1887 (_initialize_linux_nat): Inline calls.
1888
1889 * target.h (child_ops): Declare.
1890 * inftarg.c (child_ops): Move from here ...
1891 * target.c (child_ops): ... to here.
1892 * wince.c (child_ops): Delete extern declaration.
1893 * win32-nat.c (child_ops): Delete extern declaration.
1894 * linux-nat.c (child_ops): Delete extern declaration.
1895 * hpux-thread.c (child_ops): Delete extern declaration.
1896
1897 2004-09-28 Mark Kettenis <kettenis@gnu.org>
1898
1899 * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
1900
1901 2004-09-28 Mark Kettenis <kettenis@gnu.org>
1902
1903 * configure.in: Only set host_makefile_frag when building a native
1904 debugger.
1905 * configure: Regenerate.
1906
1907 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
1908 for OpenBSD ELF.
1909
1910 2004-09-28 Andrew Cagney <cagney@gnu.org>
1911
1912 Problem identified by Paul Hilfinger.
1913 * Makefile.in (ada_lex_c): Define.
1914 (ada-lex.o): Delete rule.
1915
1916 * linux-proc.c: Delete file.
1917 * Makefile.in: Update.
1918 * config/sparc/linux64.mh (NATDEPFILES):
1919 * config/sparc/linux.mh (NATDEPFILES): Update.
1920 * config/s390/s390.mh (NATDEPFILES): Update.
1921 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
1922 * config/powerpc/linux.mh (NATDEPFILES): Update.
1923 * config/pa/linux.mh (NATDEPFILES): Update.
1924 * config/mips/linux.mh (NATDEPFILES): Update.
1925 * config/m68k/linux.mh (NATDEPFILES): Update.
1926 * config/ia64/linux.mh (NATDEPFILES): Update.
1927 * config/i386/linux64.mh (NATDEPFILES): Update.
1928 * config/i386/linux.mh (NATDEPFILES): Update.
1929 * config/arm/linux.mh (NATDEPFILES): Update.
1930 * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
1931 * linux-nat.c: Update copyright. Include <sys/param.h>,
1932 <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
1933 "gdbthread.h", "gdb_stat.h", <fcntl.h>.
1934 (O_LARGEFILE): Possibly define.
1935 (_initialize_linux_nat, linux_proc_pending_signals)
1936 (add_line_to_sigset, linux_proc_xfer_memory)
1937 (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
1938 (linux_nat_do_registers, linux_nat_corefile_thread_callback)
1939 (struct linux_corefile_thread_data)
1940 (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
1941 (child_pid_to_exec_file): Insert code previously in linux-proc.c.
1942
1943 2004-09-16 Andrew Cagney <cagney@gnu.org>
1944
1945 * lin-lwp.c: Delete file.
1946 * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
1947 <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
1948 (status_to_str, init_lwp_list, add_lwp, delete_lwp)
1949 (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
1950 (linux_nat_attach, detach_callback, linux_nat_detach)
1951 (resume_callback, resume_clear_callback, linux_nat_resume)
1952 (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
1953 (stop_wait_callback, linux_nat_has_pending, flush_callback)
1954 (status_callback, running_callback, count_events_callback)
1955 (select_singlestep_lwp_callback, select_event_lwp_callback)
1956 (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
1957 (child_wait, stop_and_resume_callback, linux_nat_wait)
1958 (kill_callback, kill_wait_callback, linux_nat_kill)
1959 (linux_nat_create_inferior, linux_nat_mourn_inferior)
1960 (linux_nat_xfer_memory, linux_nat_thread_alive)
1961 (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
1962 (_initialize_linux_nat): New functions.
1963 * Makefile.in: Update all dependencies.
1964 * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
1965 * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1966 * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
1967 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
1968 * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1969 * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1970 * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1971 * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1972 * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1973 * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
1974 * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1975 * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1976 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
1977
1978 2004-09-27 Mark Kettenis <kettenis@gnu.org>
1979
1980 * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
1981 config/i386/obsd64.mh (NAT_FILE): Remove variable.
1982
1983 * configure.in: Don't comment out NATDEPFILES in the generated
1984 Makefile if NAT_FILE is unset.
1985 * configure: Regenerate.
1986
1987 2004-09-27 Andrew Cagney <cagney@gnu.org>
1988
1989 * infrun.c (check_for_old_step_resume_breakpoint): Delete.
1990 (insert_step_resume_breakpoint): Delete.
1991 (insert_step_resume_breakpoint_at_frame): New function.
1992 (insert_step_resume_breakpoint_at_sal): New function.
1993 (handle_inferior_event, step_into_function)
1994 (insert_step_resume_breakpoint): Simplify by using same.
1995
1996 * gdb_indent.sh (types): Add caddr_t to list of predefined types.
1997
1998 2004-09-26 Mark Kettenis <kettenis@gnu.org>
1999
2000 * fbsd-proc.c: Remove file.
2001 * Makefile.in (fbsd-proc.o): Remove dependency.
2002
2003 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
2004 code together.
2005
2006 * config/i386/nm-fbsd64.h: Remove file.
2007 * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2008
2009 2004-09-26 Mark Kettenis <kettenis@gnu.org>
2010
2011 * amd64-nat.h: Update copyright year.
2012 (amd64bsd_target): New prototype.
2013 * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
2014 (amd64bsd_target): New function.
2015 (amd64bsd_fetch_inferior_registers): Rename from
2016 fetch_inferior_registers. Make static.
2017 (amd64bsd_store_inferior_registers): Rename from
2018 store_inferior_registers. Make static.
2019 * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
2020 (_initialize_amd64fbsd_nat): Construct and add target vector.
2021 * amd64nbsd-nat.o: Include "target.h".
2022 (_initialize_amd64nbsd_nat): Construct and add target vector.
2023 * amd64obsd-nat.c: Include "target.h".
2024 (_initialize_amd64obsd_nat): Construct and add target vector.
2025 * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
2026 * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
2027 inftarg.o and fbsd-proc.o. Add inf-child.o, inf-ptrace.o and
2028 fbsd-nat.o.
2029 * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
2030 Remove infptrace.o and inftarg.o. Add inf-child.o and
2031 inf-ptrace.o.
2032 * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
2033 (amd64obsd-nat.o): Update dependencies.
2034
2035 2004-09-25 Mark Kettenis <kettenis@gnu.org>
2036
2037 * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
2038 * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
2039 * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
2040 * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
2041 * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
2042
2043 * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
2044 Inline attach call.
2045 (inf_ptrace_detach): Inline detach call.
2046
2047 * configure.in: Check for waddstr instead of mvwaddstr when
2048 searching for curses library. Check for wborder.
2049 * configure, config.in: Regenerate.
2050 * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
2051 available.
2052
2053 * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
2054
2055 2004-09-24 Robert Picco <Robert.Picco@hp.com>
2056
2057 Committed by Andrew Cagney.
2058 * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
2059 (show_remote_protocol_p_packet_cmd): New. Implement 'p' packet.
2060 configuration.
2061 (fetch_register_using_p): Implement 'p' packet. Based on code by
2062 Fernando Nasser.
2063 (remote_fetch_registers): Call fetch_register_using_p.
2064 (init_all_packet_configs, show_remote_cmd)
2065 (_initialize_remote): Add p-packet.
2066
2067 2004-09-24 Mark Kettenis <kettenis@gnu.org>
2068
2069 * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
2070 instead of call_ptrace. Call wait directly instead of
2071 ptrace_wait.
2072 (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
2073 (inf_ptrace_wait): Inline ptrace_wait call.
2074
2075 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
2076
2077 * Makefile.in (.y.c): Revert previous change. ../ylwrap was
2078 rolled back instead.
2079
2080 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
2081
2082 * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
2083 the new argument order.
2084
2085 2004-09-23 Corinna Vinschen <vinschen@redhat.com>
2086
2087 * MAINTAINERS: Remove "broken" from XStormy16 entry.
2088 * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
2089 (struct gdbarch_tdep): Remove.
2090 (struct xstormy16_frame_cache): New frame cache structure.
2091 (xstormy16_register_byte, xstormy16_register_raw_size)
2092 (xstormy16_reg_virtual_type, xstormy16_register_type)
2093 (xstormy16_push_arguments, xstormy16_push_return_address)
2094 (xstormy16_pop_frame, xstormy16_store_struct_return)
2095 (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
2096 (xstormy16_frame_saved_register, xstormy16_get_saved_register)
2097 (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
2098 (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
2099 (xstormy16_frame_chain, xstormy16_frame_chain_valid,
2100 (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
2101 (xstormy16_use_struct_convention): Drop gcc_p parameter.
2102 (xstormy16_extract_return_value, xstormy16_store_return_value):
2103 Regcachify. Drop useless struct convention handling.
2104 (xstormy16_register_type, xstormy16_return_value)
2105 (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
2106 (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
2107 (xstormy16_frame_prev_register, xstormy16_frame_this_id)
2108 (xstormy16_frame_base_address, xstormy16_frame_sniffer)
2109 (xstormy16_unwind_sp, xstormy16_unwind_pc)
2110 (xstormy16_unwind_dummy_id) : New functions.
2111 (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
2112 of xstormy16_scan_prologue.
2113 (xstormy16_frame_unwind): New frame_unwind structure.
2114 (xstormy16_frame_base): New frame_base structure.
2115 (xstormy16_gdbarch_init): Accomodate all of the above changes.
2116 Reshuffle for better readability. Also add dwarf2_frame_sniffer.
2117
2118 2004-09-22 Mark Kettenis <kettenis@gnu.org>
2119
2120 * language.c (language_gdbarch_post_init): Fix off-by one error.
2121
2122 2004-09-21 Daniel Jacobowitz <dan@debian.org>
2123
2124 * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
2125 (struct dwarf2_offset_and_type): New.
2126 (set_die_type, reset_die_and_siblings_types, get_die_type)
2127 (offset_and_type_hash, offset_and_type_eq): New functions.
2128 (read_structure_type, read_enumeration_type, read_array_type)
2129 (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
2130 (read_tag_reference_type, read_tag_const_type)
2131 (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
2132 (read_typedef, read_base_type, read_subrange_type): Use
2133 set_die_type.
2134
2135 2004-09-20 Daniel Jacobowitz <dan@debian.org>
2136
2137 * Makefile.in (dwarf2read.o): Update dependencies.
2138 * dwarf2read.c: Include "command.h" and "gdbcmd.h".
2139 (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
2140 and read_in_chain.
2141 (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
2142 mark, and has_form_ref_addr.
2143 (struct dwarf2_per_cu_data): New.
2144 (dwarf2_max_cache_age): New.
2145 (dwarf2_build_psymtabs_hard): Free cached compilation units
2146 after loading. Create and manage the list of compilation units.
2147 Remove unnecessary NULL initialization. Fix indentation.
2148 (psymtab_to_symtab_1): Initialize all of CU.
2149 (dwarf2_read_abbrevs): Set has_form_ref_addr.
2150 (find_partial_die): Use dwarf2_find_containing_comp_unit
2151 and load_comp_unit.
2152 (free_stack_comp_unit): Update comments. Clear the per-cu
2153 pointer. Handle aging.
2154 (dwarf2_find_containing_comp_unit, free_cached_comp_units)
2155 (age_cached_comp_units, free_one_cached_comp_unit)
2156 (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
2157 (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
2158 (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
2159 (show_dwarf2_cmd): New.
2160 (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
2161 and "maint show dwarf2 max-cache-age".
2162 * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
2163 externs.
2164 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
2165 global.
2166
2167 2004-09-20 Jeff Johnston <jjohnstn@redhat.com>
2168
2169 * dwarf2read.c (typename_concat): Change prototype to accept obstack
2170 and dwarf2_cu struct pointer as arguments. Change function to use
2171 obstack if provided and use dwarf2_cu to determine language-specific
2172 separator.
2173 (partial_die_parent_scope): Change comment to include java. Use
2174 new version of typename_concat instead of obconcat.
2175 (partial_die_full_name): Use typename_concat.
2176 (read_namespace): Ditto.
2177 (read_enumeration_type): Use typename_concat instead of obconcat.
2178 (new_symbol): Ditto.
2179 (add_partial_symbol): Enhance tests for C++ to also test for Java.
2180 (guess_structure_name): Ditto.
2181 (read_subroutine_type): Ditto.
2182 (read_structure_type): Ditto.
2183 (is_vtable_name): Add Java support.
2184 (determine_class_name): Switch to new typename_concat call.
2185 (determine_prefix): Switch to new typename_concat call.
2186 * jv-exp.y (FuncStart): New pattern.
2187 (MethodInvocation): Add support for simple function calls. Change
2188 warning message for other forms of inferior call currently not
2189 supported.
2190 * valarith.c (value_subscript): Treat an array with upper-bound
2191 of -1 as unknown size.
2192
2193 2004-09-20 Daniel Jacobowitz <dan@debian.org>
2194
2195 * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
2196 (lookup_partial_symtab): Use symtab_to_fullname.
2197
2198 2004-09-19 Jim Blandy <jimb@redhat.com>
2199
2200 * minsyms.c (lookup_minimal_symbol): Doc fix.
2201
2202 2004-09-20 Andrew Cagney <cagney@gnu.org>
2203
2204 * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
2205 CHILD_RESUME.
2206 * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
2207 * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
2208 KILL_INFERIOR.
2209 * infptrace.c: Update.
2210
2211 2004-09-19 Daniel Jacobowitz <dan@debian.org>
2212
2213 * symtab.c (output_source_filename): Mark first argument as const.
2214 (sources_info): Use symtab_to_fullname and psymtab_to_fullname
2215 for "info sources" output.
2216
2217 2004-09-20 Mark Kettenis <kettenis@gnu.org>
2218
2219 * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
2220 <machine/vmparam.h>.
2221 (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
2222 (register_u_addr): Remove prototype.
2223
2224 2004-09-19 Mark Kettenis <kettenis@gnu.org>
2225
2226 * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
2227 (i386bsd_fetch_inferior_registers): Rename from
2228 fetch_inferior_registers. Make static.
2229 (i386bsd_store_inferior_registers): Rename from
2230 store_inferior_registers. Make static.
2231 (i386bsd_target): New function.
2232 * i386bsd-nat.h: New file.
2233 * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
2234 "i386bsd-nat.h".
2235 (i386fbsd_resume): Rename from child_resume. Make static.
2236 (_initialize_i386fbsd_nat): Construct and add target vector.
2237 * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
2238 (_initialize_i386nbsd_nat): Construct and add target vector.
2239 * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
2240 Remove defines.
2241 * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
2242 and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
2243 * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
2244 inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
2245 (LOADLIBES): New variable.
2246 * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
2247 inf-ptrace.o. Remove inftarg.o.
2248 * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
2249 inf-ptrace.o. Remove inftarg.o.
2250 * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
2251 inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
2252 (LOADLIBES): New variable.
2253 * Makefile.in (i386bsd_nat_h): New variable.
2254 (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
2255 dependencies.
2256
2257 * sparc64nbsd-tdep.c: Include "objfiles.h".
2258 (sparc64nbsd_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 * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
2262 "nbsd-tdep.h".
2263 (sparc64obsd_init_abi): Set in_solib_call_trampoline and
2264 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
2265 svr4_lp64_fetch_link_map_offsets.
2266 * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
2267 dependencies.
2268
2269 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
2270 * fbsd-nat.h: New file.
2271 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
2272 (fbsd_nat_h): New variable.
2273 (fbsd-nat.o): New dependency.
2274
2275 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
2276 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
2277
2278 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
2279 comment.
2280
2281 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
2282
2283 * ada-exp.y (type_int): New function to add layer of abstraction
2284 around references to expression types.
2285 (type_long): Ditto.
2286 (type_long_long): Ditto.
2287 (type_float): Ditto.
2288 (type_double): Ditto.
2289 (type_long_double): Ditto.
2290 (type_char): Ditto.
2291 (type_system_address): Ditto.
2292 (simple_exp): Use type_* functions in place of builtin_*
2293 variables.
2294 (exp): Ditto.
2295 (write_var_from_name): Ditto.
2296 (write_object_renaming): Ditto.
2297 * ada-lang.c (ada_create_fundamental_type): Remove redundant
2298 declaration.
2299 (build_ada_types): Remove, replacing with...
2300 (ada_language_arch_info): New function to initialize primitive
2301 type vector in language_arch_info.
2302 (ada_array_length): Remove use of builtin_type_ada_int.
2303 (value_pos_atr): Ditto.
2304 (ada_evaluate_subexp): Ditto.
2305 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
2306 builtin_type_ada_long_long, builtin_type_ada_char,
2307 builtin_type_ada_float, builtin_type_ada_double,
2308 builtin_type_ada_long_double, builtin_type_ada_natural,
2309 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
2310 (ada_builtin_types): Remove.
2311 (ada_language_defn): Remove entries for la_builtin_type_vector and
2312 string_char_type and use ada_language_arch_info.
2313 (_initialize_ada_language): Do type-vector initialization along
2314 the lines of c-lang.c.
2315 (ada_create_fundamental_type): Break up line.
2316 (ada_dump_symtab): Remove unused function.
2317 (enum ada_primitive_types): Define.
2318 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
2319 builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
2320 builtin_type_ada_float, builtin_type_ada_double,
2321 builtin_type_ada_long_double, builtin_type_ada_natural,
2322 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
2323 * ada-lex.l: Use type_* functions in place of builtin_* variables.
2324 (processInt): Ditto.
2325 (processReal): Ditto.
2326 (name_lookup): Ditto.
2327 * ada-typeprint.c (print_range): Use builtin_type_int, not
2328 builtin_type_ada_int.
2329
2330 2004-09-18 Mark Kettenis <kettenis@gnu.org>
2331
2332 * i386-tdep.c (i386_register_name): Rename regno to regnum.
2333
2334 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
2335 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
2336 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
2337 * configure.in: Improve checks for curses library by checking for
2338 mvwaddstr instead of initscr. Drop HP curses in favour of
2339 standard curses on HP-UX.
2340 * configure: Regenerated.
2341
2342 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
2343
2344 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
2345 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
2346 Minor formatting changes.
2347 (empty_array): Slight rewrite for formatting.
2348 (emit_char,parse,ada_language_defn,build_ada_types,
2349 ada_is_exception_sym, _initialize_ada_language): Move
2350 definitions around.
2351 (ada_dump_symtab): Remove unused definition.
2352 (ada_maybe_exception_partial_symbol): Remove unused definition.
2353
2354 2004-09-16 Andrew Cagney <cagney@gnu.org>
2355
2356 * inf-child.c: Include "gdb_string.h".
2357 (inf_child_core_file_to_sym_file): Delete.
2358 (inf_child_target): Set to_fetch_registers and to_store_registers.
2359 * inf-ptrace.c: Include "gdb_string.h".
2360 * Makefile.in: Update all dependencies.
2361
2362 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
2363 problem.
2364
2365 2004-09-14 Joel Brobecker <brobecker@gnat.com>
2366
2367 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
2368 call to heuristic_proc_desc. Remove code that became redundant
2369 as a consequence.
2370 (read_next_frame_reg): Remove special case for SP_REGNUM.
2371 (set_reg_offset): Fix small typo.
2372 (reset_saved_regs): New procedure.
2373 (mips32_heuristic_proc_desc): No longer compute a fake
2374 procedure descriptor. Compute the full frame cache instead.
2375 Some minor comment reformatting.
2376
2377 2004-09-14 Andrew Cagney <cagney@gnu.org>
2378
2379 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
2380 maintainer.
2381
2382 * thread-db.c (thread_db_new_objfile): Assume that there is a
2383 child process.
2384
2385 2004-09-13 Jim Blandy <jimb@redhat.com>
2386
2387 * valops.c (value_assign): Move 'buffer' to the enclosing block,
2388 so that its storage isn't referenced after its lifetime ends.
2389
2390 * valops.c (value_assign): 'use_buffer' is initialized to zero,
2391 and never assigned to. Delete it, and the 'if (use_buffer)'
2392 clauses. Delete 'raw_buffer', since it is now unused.
2393
2394 2004-09-13 Andrew Cagney <cagney@gnu.org>
2395
2396 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
2397 * configure: Re-generate.
2398 * nlm/Makefile.in (TAGS): Update.
2399 * Makefile.in (TAGS): Update.
2400 * config/vax/nbsd.mt (TM_FILE): Update.
2401 * config/sparc/vxworks.mt (TM_FILE): Update.
2402 * config/sparc/sol2.mt (TM_FILE): Update.
2403 * config/sparc/sol2-64.mt (TM_FILE): Update.
2404 * config/sparc/obsd64.mt (TM_FILE): Update.
2405 * config/sparc/obsd.mt (TM_FILE): Update.
2406 * config/sparc/nbsd64.mt (TM_FILE): Update.
2407 * config/sparc/nbsd.mt (TM_FILE): Update.
2408 * config/sparc/linux64.mt (TM_FILE): Update.
2409 * config/sparc/linux.mt (TM_FILE): Update.
2410 * config/sparc/fbsd.mt (TM_FILE): Update.
2411 * config/sh/wince.mt (TM_FILE): Update.
2412 * config/sh/nbsd.mt (TM_FILE): Update.
2413 * config/sh/linux.mt (TM_FILE): Update.
2414 * config/sh/embed.mt (TM_FILE): Update.
2415 * config/s390/s390.mt (TM_FILE): Update.
2416 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
2417 * config/rs6000/rs6000.mt (TM_FILE): Update.
2418 * config/rs6000/aix4.mt (TM_FILE): Update.
2419 * config/powerpc/vxworks.mt (TM_FILE): Update.
2420 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
2421 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
2422 * config/powerpc/obsd.mt (TM_FILE): Update.
2423 * config/powerpc/nbsd.mt (TM_FILE): Update.
2424 * config/powerpc/linux.mt (TM_FILE): Update.
2425 * config/powerpc/aix.mt (TM_FILE): Update.
2426 * config/pa/obsd.mt (TM_FILE): Update.
2427 * config/pa/linux.mt (TM_FILE): Update.
2428 * config/pa/hppahpux.mt (TM_FILE): Update.
2429 * config/pa/hppa64.mt (TM_FILE): Update.
2430 * config/pa/hppa.mt (TM_FILE): Update.
2431 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
2432 * config/mips/wince.mt (TM_FILE): Update.
2433 * config/mips/vxmips.mt (TM_FILE): Update.
2434 * config/mips/nbsd.mt (TM_FILE): Update.
2435 * config/mips/linux.mt (TM_FILE): Update.
2436 * config/mips/irix6.mt (TM_FILE): Update.
2437 * config/mips/irix5.mt (TM_FILE): Update.
2438 * config/mips/embed.mt (TM_FILE): Update.
2439 * config/m68k/vxworks68.mt (TM_FILE): Update.
2440 * config/m68k/st2000.mt (TM_FILE): Update.
2441 * config/m68k/os68k.mt (TM_FILE): Update.
2442 * config/m68k/obsd.mt (TM_FILE): Update.
2443 * config/m68k/nbsd.mt (TM_FILE): Update.
2444 * config/m68k/monitor.mt (TM_FILE): Update.
2445 * config/m68k/linux.mt (TM_FILE): Update.
2446 * config/m68k/cisco.mt (TM_FILE): Update.
2447 * config/ia64/linux.mt (TM_FILE): Update.
2448 * config/ia64/aix.mt (TM_FILE): Update.
2449 * config/ia64/ia64.mt (TM_FILE): Update.
2450 * config/i386/vxworks.mt (TM_FILE): Update.
2451 * config/i386/obsd64.mt (TM_FILE): Update.
2452 * config/i386/obsd.mt (TM_FILE): Update.
2453 * config/i386/nto.mt (TM_FILE): Update.
2454 * config/i386/nbsd64.mt (TM_FILE): Update.
2455 * config/i386/nbsd.mt (TM_FILE): Update.
2456 * config/i386/linux64.mt (TM_FILE): Update.
2457 * config/i386/linux.mt (TM_FILE): Update.
2458 * config/i386/i386sol2.mt (TM_FILE): Update.
2459 * config/i386/i386lynx.mt (TM_FILE): Update.
2460 * config/i386/fbsd64.mt (TM_FILE): Update.
2461 * config/i386/fbsd.mt (TM_FILE): Update.
2462 * config/i386/cygwin.mt (TM_FILE): Update.
2463 * config/h8300/h8300.mt (TM_FILE): Update.
2464 * config/frv/frv.mt (TM_FILE): Update.
2465 * config/cris/cris.mt (TM_FILE): Update.
2466 * config/arm/wince.mt (TM_FILE): Update.
2467 * config/arm/nbsd.mt (TM_FILE): Update.
2468 * config/arm/linux.mt (TM_FILE): Update.
2469 * config/arm/embed.mt (TM_FILE): Update.
2470 * config/alpha/nbsd.mt (TM_FILE): Update.
2471 * config/alpha/fbsd.mt (TM_FILE): Update.
2472 * config/alpha/alpha.mt (TM_FILE): Update.
2473 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
2474 * config/alpha/alpha-linux.mt (TM_FILE): Update.
2475
2476 Eliminate event_loop_p, always has the value 1.
2477 * defs.h (event_loop_p): Delete macro.
2478 * breakpoint.c (until_break_command): Simplify.
2479 * utils.c (prompt_for_continue): Simplify.
2480 * tracepoint.c (read_actions): Simplify.
2481 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
2482 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
2483 (set_prompt, init_main): Simplify.
2484 (init_signals, disconnect): Delete, unused.
2485 * remote.c (remote_async_resume)
2486 (extended_remote_async_create_inferior): Simplify.
2487 * mi/mi-interp.c (mi_input): Delete, unused.
2488 (mi_interpreter_resume, mi_command_loop): Simplify.
2489 * interps.c (current_interp_command_loop): Simplify.
2490 * infrun.c (proceed): Simplify.
2491 * infcmd.c (run_command, continue_command, step_1, jump_command)
2492 (until_command, advance_command, finish_command)
2493 (interrupt_target_command): Simplify.
2494 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
2495
2496 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2497 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2498 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2499 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2500 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2501 * mips-tdep.c (mips_dump_tdep): Do not print same.
2502
2503 2004-09-12 Andrew Cagney <cagney@gnu.org>
2504
2505 * valprint.c (print_longest): Use fputs_filtered. Make "val"
2506 const.
2507 * Makefile.in (valprint.o): Delete explict rule.
2508
2509 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
2510 reported by Dave Anderson.
2511
2512 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
2513
2514 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
2515
2516 2004-09-12 Salvador E. Tropea <set@users.sf.net>
2517 Andrew Cagney <cagney@gnu.org>
2518
2519 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
2520 (mi_cmd_data_list_register_values)
2521 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
2522 the register number computation.
2523
2524 2004-09-12 Andrew Cagney <cagney@gnu.org>
2525
2526 * ppcnbsd-nat.c: Include "inf-ptrace.h".
2527 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
2528 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
2529 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
2530 target.
2531 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
2532 inf-ptrace.o and inf-child.o.
2533 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
2534 * Makefile.in: Update dependencies.
2535
2536 2004-09-11 Andrew Cagney <cagney@gnu.org>
2537
2538 * language.c (hex_string, hex_string_custom): Move from here ...
2539 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
2540 (CELLSIZE): Increase to 50.
2541 * language.h (hex_string, hex_string_custom): Move from here ...
2542 * defs.h: ... to here.
2543 * Makefile.in: Update all dependencies.
2544
2545 2004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
2546
2547 * language.c (local_hex_format_custom): Remove.
2548 (local_hex_string): Rename to hex_string, use C format, and move to
2549 utils.c
2550 (local_hex_string_custom): Rename to hex_string_custom and change
2551 interface. Now uses C format. Move to utils.c
2552 (local_octal_format_custom): Remove.
2553 (local_decimal_format_custom): Remove.
2554 (unknown_language_defn): Remove language-specific number
2555 formatting entries.
2556 (auto_language_defn): Ditto.
2557 (local_language_defn): Ditto.
2558 * language.h (struct language_format_info): Delete declaration.
2559 (struct language_defn): Remove language_format_info fields
2560 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
2561 (local_binary_format): Remove macro.
2562 (local_binary_format_prefix): Remove macro.
2563 (local_binary_format_specifier): Remove macro.
2564 (local_binary_format_suffix): Remove macro.
2565 (local_octal_format): Remove macro.
2566 (local_octal_format_prefix): Remove macro.
2567 (local_octal_format_specifier): Remove macro.
2568 (local_octal_format_suffix): Remove macro.
2569 (local_decimal_format): Remove macro.
2570 (local_decimal_format_prefix): Remove macro.
2571 (local_decimal_format_specifier): Remove macro.
2572 (local_decimal_format_suffix): Remove macro.
2573 (local_hex_format): Remove macro.
2574 (local_hex_format_prefix): Remove macro.
2575 (local_hex_format_specifier): Remove macro.
2576 (local_hex_format_suffix): Remove macro.
2577 (local_decimal_format_custom): Remove.
2578 (local_octal_format_custom): Remove.
2579 (local_hex_format_custom): Remove.
2580 (local_hex_string): Rename to hex_string and move to defs.h.
2581 (local_hex_string_custom): Rename to hex_string_custom, change
2582 interface, and move to defs.h.
2583 * utils.c: (int_string): New function.
2584 (hex_string): New function (from language.c).
2585 (hex_string_custom): New function (from language.c).
2586 (octal2str): New function.
2587 (decimal2str): Add width parameter.
2588 (paddr_u): Use new decimal2str interface.
2589 (paddr_d): Ditto.
2590 * defs.h (hex_string): Declare.
2591 (hex_string_custom): Declare.
2592 (int_string): Declare.
2593 * printcmd.c (print_scalar_formatted): Remove localized binary
2594 formatting.
2595 * valprint.c (print_longest): Use int_string.
2596 (print_floating): Use C hex format.
2597 (print_hex_chars): Ditto.
2598 (print_binary_chars): Remove language-specific formatting.
2599 (print_octal_chars): Use C octal format.
2600 (print_decimal_chars): Delocalize format.
2601 (print_decimal): Remove.
2602 * ada-lang.c (ada_language_defn): Remove language-specific number
2603 formatting entries.
2604 * p-lang.c (pascal_language_defn): Ditto.
2605 * c-lang.c (c_language_defn): Ditto.
2606 (cplus_language_defn): Ditto.
2607 (asm_language_defn): Ditto.
2608 (minimal_language_defn): Ditto.
2609 * f-lang.c (f_language_defn): Ditto.
2610 * jv-lang.c (java_language_defn): Ditto.
2611 * m2-lang.c (m2_language_defn): Ditto.
2612 * scm-lang.c (scm_language_defn): Ditto.
2613 * objc-lang.c (objc_language_defn): Ditto.
2614 * memattr.c (mem_info_command): Use renamed hex_string_custom with
2615 new interface.
2616 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
2617 * ui-out.c (ui_out_field_core_addr): Ditto.
2618 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
2619 * exec.c (print_section_info): Ditto.
2620 * i387-tdep.c (print_i387_status_word): Ditto.
2621 (print_i387_control_word): Ditto.
2622 (i387_print_float_info): Ditto.
2623 * maint.c (maint_print_section_info): Ditto.
2624 * solib.c (info_sharedlibrary_command): Ditto.
2625 * somsolib.c (som_sharedlibrary_info_command): Ditto.
2626 * symtab.c (print_msymbol_info): Ditto.
2627 * tracepoint.c (tracepoints_info): Ditto.
2628 * solib-frv.c (lm_base): Ditto.
2629 (frv_current_sos): Ditto.
2630 (enable_break2): Ditto.
2631 (enable_break): Ditto.
2632 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
2633 (process_one_symbol): Ditto.
2634 * infcmd.c (program_info): Ditto.
2635 * mdebugread.c (parse_partial_symbols): Ditto.
2636 * symfile.c (add_symbol_file_command): Ditto.
2637 * cli/cli-cmds.c (edit_command): Ditto.
2638 (list_command): Ditto.
2639 * infcall.c (call_function_by_hand): Ditto.
2640 * remote-vx.c (vx_run_files_info): Ditto.
2641 (vx_wait): Ditto.
2642 (vx_attach): Ditto.
2643 (vx_detach): Ditto.
2644 (vx_kill): Ditto.
2645 * aix-thread.c (pdc_symbol_addrs): Ditto.
2646 (pdc_read_regs): Ditto.
2647 (pdc_write_regs): Ditto.
2648 (pdc_read_data): Ditto.
2649 (pdc_write_data): Ditto.
2650 * d10v-tdep.c (display_trace): Ditto.
2651 * rs6000-nat.c (find_toc_address): Ditto.
2652 * aix-thread.c: Don't include language.h.
2653 * buildsym.c: Ditto.
2654 * dbxread.c: Ditto.
2655 * mdebugread.c: Ditto.
2656 * rs6000-nat.c: Ditto.
2657 * buildsym.c (make_blockvector): Use renamed hex_string.
2658
2659 2004-09-10 Jason Molenda (jmolenda@apple.com)
2660
2661 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
2662 chars after 'if' or 'while' commands in user-defined commands.
2663
2664 2004-09-08 Jim Blandy <jimb@redhat.com>
2665
2666 Fix bug reported and analyzed by Olivier Crete:
2667 * symfile.c (copy_section_addr_info): New function.
2668 (symbol_file_add_with_addrs_or_offsets): Use it to save the
2669 original set of address arguments, instead of handwritten code
2670 that uses one length to allocate and a different length to
2671 initialize. Use make_cleanup_free_section_addr_info.
2672 * symfile.h (copy_section_addr_info): New declaration.
2673 * utils.c: #include "symfile.h".
2674 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
2675 New functions.
2676 * defs.h (make_cleanup_free_section_addr_info): New declaration.
2677 * Makefile.in (utils.o): Update dependencies.
2678
2679 2004-09-08 Andrew Cagney <cagney@gnu.org>
2680
2681 * thread-db.c (keep_thread_db): Delete.
2682 (thread_db_new_objfile, thread_db_create_inferior)
2683 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
2684
2685 2004-09-08 Mark Kettenis <kettenis@gnu.org>
2686
2687 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
2688 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
2689 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
2690 (i386_frameless_signal_p): Remove prototype.
2691 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
2692 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
2693 I386_SSE_NUM_REGS.
2694 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
2695 instead of FP0_REGNUM.
2696 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
2697 of FP0_REGNUM and FPC_REGNUM.
2698
2699 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
2700 (sunos_solib_create_inferior_hook): Don't call
2701 sunos_relocate_main_executable.
2702
2703 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
2704 solib_svr4_fetch_link_map_offsets to
2705 svr4_ilp32_fetch_link_map_offsets.
2706 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
2707 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
2708 svr4_ilp32_fetch_link_map_offsets.
2709 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
2710
2711 2004-09-07 Jim Blandy <jimb@redhat.com>
2712
2713 * frame.h (frame_register): Doc fix.
2714
2715 2004-09-07 Andrew Cagney <cagney@gnu.org>
2716
2717 * vx-share/wait.h: Delete #ifdef USG.
2718 * utils.c (request_quit): Ditto.
2719 * tui/tui.c (tui_reset): Ditto.
2720 * remote.c: Ditto.
2721 * remote-sds.c: Ditto.
2722 * remote-rdi.c: Ditto.
2723 * mdebugread.c: Ditto.
2724 * m68klinux-nat.c: Ditto.
2725 * infttrace.c: Ditto.
2726 * infptrace.c: Ditto.
2727 * i386v-nat.c: Ditto.
2728 * exec.c: Ditto.
2729 * dbxread.c: Ditto.
2730 * core-aout.c: Ditto.
2731
2732 2004-09-05 Joel Brobecker <brobecker@gnat.com>
2733
2734 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
2735 heuristic_proc_desc.
2736 (mips_insn32_frame_cache): Likewise.
2737
2738 2004-09-04 Joel Brobecker <brobecker@gnat.com>
2739
2740 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
2741 left behind by error.
2742
2743 2004-09-04 Joel Brobecker <brobecker@gnat.com>
2744
2745 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
2746 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
2747
2748 2004-09-04 Joel Brobecker <brobecker@gnat.com>
2749
2750 * config/rs6000/xm-aix4.h: Remove this file.
2751 * config/rs6000/aix4.mh (XM_FILE): Delete.
2752
2753 2004-09-04 Joel Brobecker <brobecker@gnat.com>
2754
2755 * config/rs6000/xm-rs6000.h: Remove this file.
2756 * config/rs6000/rs6000.mh (XM_FILE): Remove.
2757
2758 2004-09-03 Andrew Cagney <cagney@gnu.org>
2759
2760 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
2761 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
2762 only use.
2763
2764 * mips-tdep.c (temp_saved_regs): Delete.
2765 (set_reg_offset): Replace saved_regs parameter with this_cache.
2766 (heuristic_proc_desc, mips16_heuristic_proc_desc)
2767 (mips32_heuristic_proc_desc): Add this_cache parameter.
2768 (mips_insn32_frame_cache, mips_insn16_frame_cache)
2769 (after_prologue): Pass a NULL this_cache.
2770
2771 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
2772 non-kernel trap prologues.
2773
2774 * mips-tdep.c (find_proc_desc): Delete function.
2775 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
2776 simplify.
2777 (mips_insn16_frame_cache): Replace find_proc_desc with code from
2778 mips_insn32_frame_cache.
2779
2780 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
2781 Simplify as NEXT_FRAME is NULL.
2782 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
2783
2784 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
2785 local variable.
2786 (mips_skip_prologue): Update.
2787
2788 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
2789 "cur_frame" parameter.
2790 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
2791 (mips_insn32_frame_cache, find_proc_desc): Update
2792
2793 * config/vax/nm-obsd.h: Delete file.
2794 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2795 * config/vax/nm-nbsd.h: Delete file.
2796 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
2797 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2798 * config/sh/nm-nbsd.h: Delete file.
2799 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
2800 * config/rs6000/nm-rs6000ly.h: Delete file.
2801 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
2802 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
2803 * config/powerpc/nm-obsd.h: Delete file.
2804 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2805 * config/powerpc/nm-nbsd.h: Delete file.
2806 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
2807 * config/pa/nm-obsd.h: Delete file.
2808 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2809 * config/mips/nm-nbsd.h: Delete file.
2810 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
2811 * config/m88k/nm-obsd.h: Delete file.
2812 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2813 * config/m68k/nm-nbsd.h: Delete file.
2814 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
2815 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2816 * config/i386/nm-nbsd.h: Delete file.
2817 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
2818 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2819 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2820 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2821 * config/i386/nm-i386lynx.h: Delete file.
2822 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
2823 * config/arm/nm-nbsd.h: Delete file.
2824 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
2825 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2826
2827 * config/i386/tm-fbsd.h: Delete file.
2828 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
2829 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
2830
2831 * config/rs6000/tm-rs6000-aix4.h: Delete file.
2832 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
2833 * config/rs6000/aix4.mt (TM_FILE): Set to
2834 config/rs6000/tm-rs6000.h.
2835 * config/powerpc/tm-ppc-aix.h: Delete file.
2836 * config/powerpc/aix.mt (TM_FILE): Set to
2837 config/rs6000/tm-rs6000.h.
2838 * config/m68k/tm-linux.h: Delete file.
2839 * config/m68k/linux.mt (TM_FILE): Set to solib.h
2840 * config/i386/tm-linux64.h: Delete file.
2841 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
2842 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
2843
2844 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
2845 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
2846 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
2847 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
2848 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
2849 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
2850 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
2851 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
2852 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
2853
2854 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
2855 gdb_host_cpu.
2856
2857 2004-09-02 Joel Brobecker <brobecker@gnat.com>
2858
2859 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
2860 Minor reformatting. Some code factoring.
2861
2862 2004-09-02 Andrew Cagney <cagney@gnu.org>
2863
2864 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
2865 * config/vax/tm-nbsd.h: Delete file.
2866 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
2867 * config/sparc/tm-vxworks.h: Delete file.
2868 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
2869 * config/sparc/tm-nbsd.h: Delete file.
2870 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
2871 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
2872 * config/sparc/tm-linux.h: Delete file.
2873 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
2874 * config/s390/tm-linux.h: Delete file.
2875 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
2876 * config/pa/tm-bsd.h: Delete file.
2877 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
2878 * config/m68k/tm-obsd.h: Delete file.
2879 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
2880 * config/m68k/tm-nbsd.h: Delete file.
2881 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
2882 * config/i386/tm-vxworks.h: Delete file.
2883 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
2884 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
2885 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
2886 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
2887 * config/i386/tm-nbsd.h: Delete file.
2888 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
2889 * config/i386/tm-i386lynx.h: Delete file.
2890 * config/cris/cris.mt (TM_FILE): Set to solib.h.
2891 * config/cris/tm-cris.h: Delete file.
2892
2893 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
2894 * configure: Re-generate.
2895 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
2896 * config/arm/tm-nbsd.h: Delete file.
2897
2898 * config/powerpc/tm-ppcle-sim.h: Delete.
2899 * config/powerpc/tm-ppcle-eabi.h: Delete.
2900 * config/powerpc/tm-nbsd.h: Delete.
2901 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
2902 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
2903 tm-ppcle-eabi.h.
2904
2905 * config/i386/nto.mh (NAT_FILE): Delete.
2906 * config/i386/nm-nto.h: Delete.
2907
2908 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
2909 * config/m68k/tm-os68k.h: Ditto.
2910 * config/m68k/tm-monitor.h: Ditto.
2911 * config/m68k/tm-cisco.h: Ditto.
2912 * config/m68k/st2000.mt (TM_FILE): Delete.
2913 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
2914 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
2915 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
2916 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
2917
2918 * config/m68k/tm-st2000.h: Delete.
2919 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
2920 * config/sparc/fbsd.mt (TM_FILE): Delete.
2921 * config/sparc/tm-fbsd.h: Delete.
2922
2923 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
2924 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
2925 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
2926
2927 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
2928 GDB_TM_FILE and GDB_XM_FILE.
2929 * gdbarch.c: Re-generate.
2930 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
2931 quotes in macro definition.
2932 * configure.in: Re-generate.
2933
2934 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
2935 validating architecture methods.
2936 * gdbarch.c: Re-generate.
2937
2938 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
2939 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
2940 GDB_MULTI_ARCH_PARTIAL.
2941 * gdbarch.h: Re-generate.
2942
2943 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
2944 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
2945 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
2946 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
2947 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
2948 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
2949 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
2950 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
2951 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
2952 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
2953 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
2954 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
2955
2956 2004-09-01 Andrew Cagney <cagney@gnu.org>
2957
2958 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
2959 and main_func_highpc.
2960 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
2961 * objfiles.c (init_entry_point_info, objfile_relocate): Update
2962 * nlmread.c (nlm_symfile_read): Update.
2963
2964 2004-09-01 Joel Brobecker <brobecker@gnat.com>
2965
2966 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
2967 (mips_insn32_frame_cache): Inline call to find_proc_desc.
2968 (find_proc_desc): Remove dead code.
2969
2970 2004-09-01 Joel Brobecker <brobecker@gnat.com>
2971
2972 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
2973
2974 2004-09-01 Jeff Johnston <jjohnstn@redhat.com>
2975
2976 * observer.sh: Add struct so_list declaration.
2977 * Makefile.in: Add dependencies on observer.h for solib.c and
2978 breakpoint.c.
2979 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
2980 function.
2981 (_initialize_breakpoint): Register
2982 disable_breakpoints_in_unloaded_shlib as an observer of the
2983 "solib unloaded" observation event.
2984 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
2985 call decode_line_1 so unfound breakpoint errors are silent.
2986 * solib.c (update_solib_list): When a solib is discovered to have
2987 been unloaded by the program, notify all observers of the
2988 "solib unloaded" observation event.
2989
2990 2004-09-01 Andrew Cagney <cagney@gnu.org>
2991
2992 * frame.c: Include "objfiles.h".
2993 (inside_main_func): New function.
2994 (get_prev_frame): Use new inside_main_func.
2995 * Makefile.in (frame.o): Update dependencies.
2996 * defs.h (inside_main_func): Delete declaration.
2997 * blockframe.c (inside_main_func): Delete function.
2998
2999 2004-08-31 Jim Blandy <jimb@redhat.com>
3000
3001 * dwarf2read.c (is_vtable_name): New function, based on logic from
3002 read_structure_type, but passing the correct length to strncmp,
3003 and using 'sizeof' instead of 'strlen'.
3004 (read_structure_type): Call it.
3005
3006 2004-08-31 Joel Brobecker <brobecker@gnat.com>
3007
3008 * config/powerpc/aix.mh: Add comment.
3009
3010 2004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
3011
3012 * MAINTAINERS: Add self to Write-After-Approval.
3013
3014 2004-08-30 Manoj Iyer <manjo@austin.ibm.com>
3015
3016 * MAINTAINERS: Add self to Write-After-Approval.
3017
3018 2004-08-30 Andrew Cagney <cagney@gnu.org>
3019
3020 Fix PR breakpoints/1757.
3021 * infrun.c (struct execution_control_state): Replace
3022 remove_breakpoints_on_following_step with
3023 step_after_step_resume_breakpoint.
3024 (init_execution_control_state): Update.
3025 (handle_inferior_event): For signals, when stepping off a
3026 breakpoint, set step_after_step_resume_breakpoint. When
3027 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
3028 (keep_going): Delete code handling
3029 remove_breakpoints_on_following_step.
3030
3031 2004-08-29 David Lecomber <david@streamline-computing.com>
3032
3033 Fix PR gdb/648
3034 * language.h (enum array_ordering): New enum.
3035 * language.h (struct language_defn): New la_array_ordering
3036 attribute.
3037 * language.c (unknown_language_defn, auto_language_defn)
3038 (local_language_defn): Ditto.
3039 * ada-lang.c (ada_language_defn): Ditto.
3040 * c-lang.c (c_language_defn, cplus_language_defn)
3041 (asm_language_defn, minimal_language_defn): Ditto.
3042 * f-lang.c (f_language_defn): Ditto.
3043 * jv-lang.c (java_language_defn): Ditto.
3044 * m2-lang.c (f_language_defn): Ditto.
3045 * objc-lang.c (objc_language_defn): Ditto.
3046 * p-lang.c (pascal_language_defn): Ditto.
3047 * scm-lang.c (scm_language_defn): Ditto.
3048 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
3049 oriented large to small in type structure.
3050 * dwarf2read.c (read_array_order): New function.
3051 (read_array_type): Use read_array_order to check row/column
3052 major ordering.
3053
3054 2004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
3055
3056 * target.c (target_resize_to_sections): Check
3057 current_target.to_sections for an old value when updating.
3058
3059 2004-08-27 Joel Brobecker <brobecker@gnat.com>
3060
3061 * procfs.c (dbx_link_bpt_addr): New static global variable.
3062 (dbx_link_shadow_contents): New static global variable.
3063 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
3064 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
3065 if we just hit it.
3066 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
3067 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
3068 from run to run.
3069 (procfs_create_inferior): Remove syssgi syscall-exit notifications
3070 after the inferior has been forked.
3071 (remove_dbx_link_breakpoint): New function.
3072 (dbx_link_addr): New function.
3073 (insert_dbx_link_bpt_in_file): New function.
3074 (insert_dbx_link_bpt_in_region): New function.
3075 (insert_dbx_link_breakpoint): New function.
3076 (proc_trace_syscalls_1): New function, extracted from
3077 proc_trace_syscalls.
3078 (proc_trace_syscalls): Replace extract code by call to
3079 proc_trace_syscalls_1.
3080 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
3081 is no longer valid.
3082
3083 2004-08-25 Jim Blandy <jimb@redhat.com>
3084
3085 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
3086
3087 2004-08-25 Andrew Cagney <cagney@gnu.org>
3088
3089 * infrun.c (struct execution_control_state): Delete field
3090 "stepping_through_sigtramp".
3091 (init_execution_control_state): Do not set same.
3092 (context_switch): Do not pass same to save_infrun_state and
3093 load_infrun_state.
3094 * gdbthread.h (struct thread_info): Delete field
3095 stepping_through_sigtramp.
3096 (save_infrun_state, load_infrun_state): Delete parameter
3097 stepping_through_sigtramp.
3098 * thread.c (load_infrun_state, save_infrun_state): Update.
3099
3100 * infrun.c: Re-indent. Move expression operators to the beginning
3101 of the line. Remove long disabled #if 0 code.
3102
3103 2004-08-24 Andrew Cagney <cagney@gnu.org>
3104
3105 * doublest.h (floatformat_ieee_quad): Rename
3106 floatformat_ia64_quad.
3107 * doublest.c (floatformat_ieee_quad): Rename
3108 floatformat_ia64_quad.
3109 (_initialize_doublest): Update.
3110
3111 2004-08-24 Jim Blandy <jimb@redhat.com>
3112
3113 * dwarf2expr.h (struct dwarf_expr_context): New members
3114 'num_pieces' and 'pieces', for returning the result of an
3115 expression that uses DW_OP_piece.
3116 (struct dwarf_expr_piece): New struct type.
3117 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
3118 pieces.
3119 (free_dwarf_expr_context): Free pieces, if any.
3120 (add_piece): New function.
3121 (execute_stack_op): Implement DW_OP_piece.
3122 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
3123 expression is a list of pieces, print an error message.
3124 (dwarf2_loc_desc_needs_frame): If the expression yields
3125 pieces, and any piece is in a register, then we need a frame.
3126
3127 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
3128 the stack until we've decided what sort of result the evaluation
3129 has produced. Use separate variables, with more specific names.
3130
3131 2004-08-23 Richard Earnshaw <rearnsha@arm.com>
3132
3133 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
3134 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
3135 (arm_netbsd_init_abi_common): Register them.
3136
3137 2004-08-22 Mark Kettenis <kettenis@gnu.org>
3138
3139 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
3140
3141 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
3142 safe_frame_unwind_memory instead of target_read_memory.
3143
3144 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
3145 Reorder includes.
3146 (fetch_register, store_register): Remove prototypes.
3147 (child_resume): Reorganize code and comments such that it is
3148 grouped a bit more logically.
3149 (attach): Explicitly compare errno against 0.
3150 (detach): Likewise. Use perror_with_name instead of
3151 print_sys_errmsg.
3152 * Makefile.in (infptrace.o): Update dependencies.
3153
3154 * ia64-linux-nat.c: Update copyright year.
3155 (fetch_debug_register, store_debug_register)
3156 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
3157 PTRACE_TYPE_ARG3.
3158 * config/ia64/nm-linux.h: Update copyright year.
3159 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
3160
3161 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
3162 from CORE_ADDR to struct frame_info *. Use
3163 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
3164 (amd64_linux_sigtramp_p): Adjust for changed signature of
3165 and64_linux_sigtramp_start
3166
3167 * gdb_ptrace.h: GNU/Linux.
3168
3169 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
3170 Remove defines.
3171
3172 * infptrace.c: Include "gdb_assert.h".
3173 (PTRACE_XFER_TYPE): Remove define.
3174 (offsetof): Only define if U_REGS_OFFSET isn't defined.
3175 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
3176 Tweak comment.
3177 (fetch_inferior_registers, store_inferior_registers): Remove
3178 redundant culry braces. Tweak comment. s/regno/regnum.
3179 * Makefile.in (infptrace.o): Update dependencies.
3180
3181 * configure.in: Change test for return type of ptrace to default
3182 to `long' instead of `int'.
3183 * configure: Regenerate.
3184
3185 2004-08-21 Mark Kettenis <kettenis@gnu.org>
3186
3187 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
3188
3189 * configure.in: Check for ttrace function.
3190 * configure, config.in: Regenerate.
3191
3192 * gdb_ptrace.h: New file.
3193 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
3194 <sys/ptrace.h>.
3195 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
3196 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
3197 (attach): Don't define PT_ATTACH.
3198 (detach): Don't define PT_DETACH.
3199 * Makefile.in (gdb_ptrace_h): New variable.
3200 (infptrace.o): Update dependencies.
3201
3202 2004-08-16 Mark Kettenis <kettenis@gnu.org>
3203
3204 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
3205 instead of `int' if not already defined.
3206 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
3207 PTRACE_TYPE_ARG3.
3208 * infptrace.c (call_ptrace): Revert change that replaced
3209 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3210
3211 2004-08-15 Mark Kettenis <kettenis@gnu.org>
3212
3213 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
3214 Remove defines.
3215
3216 * linux-nat.c (kill_inferior): Add missing third and fourth
3217 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
3218
3219 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
3220 PTRACE_TYPE_RET.
3221
3222 * proc-why.c (proc_prettyfprint_why): Fix format string.
3223
3224 * solib-osf.c (osf_current_sos): Remove unsused label.
3225
3226 * configure.in: Add <ncurses/ncurses.h> to the list of possible
3227 curses headers.
3228 * configure, config.in: Regenerate.
3229 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
3230 <ncurses/ncurses.h>.
3231
3232 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
3233 * config/nm-nbsd.h: Update copyright year.
3234 (PTRACE_ARG3_TYPE): Remove define.
3235
3236 * sparc-nat.c (fetch_inferior_registers)
3237 (store_inferior_registers, sparc_xfer_wcookie):
3238 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3239
3240 * alphabsd-nat.c (fetch_inferior_registers):
3241 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3242 PTRACE_TYPE_ARG3.
3243 * amd64bsd-nat.c (fetch_inferior_registers)
3244 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3245 PTRACE_TYPE_ARG3.
3246 * armnbsd-nat.c: Update copyright year.
3247 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
3248 (store_register, store_regs, store_fp_register, store_fp_regs):
3249 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3250 * hppabsd-nat.c (fetch_inferior_registers)
3251 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3252 PTRACE_TYPE_ARG3.
3253 * i386bsd-nat.c (fetch_inferior_registers)
3254 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
3255 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3256 * m68kbsd-nat.c (fetch_inferior_registers)
3257 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3258 PTRACE_TYPE_ARG3.
3259 * m88kbsd-nat.c (fetch_inferior_registers)
3260 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3261 PTRACE_TYPE_ARG3.
3262 * mipsnbsd-nat.c: Update copyright year.
3263 (fetch_inferior_registers, store_inferior_registers):
3264 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3265 * ns32knbsd-nat.c: Update copyright year.
3266 (fetch_inferior_registers, store_inferior_registers):
3267 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3268 * ppcnbsd-nat.c (fetch_inferior_registers):
3269 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3270 PTRACE_TYPE_ARG3.
3271 * ppcobsd-nat.c (fetch_inferior_registers):
3272 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3273 PTRACE_TYPE_ARG3.
3274 * shnbsd-nat.c: Update copyright year.
3275 (fetch_inferior_registers, store_inferior_registers):
3276 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3277 * vaxbsd-nat.c (fetch_inferior_registers)
3278 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3279 PTRACE_TYPE_ARG3.
3280
3281 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
3282 PTRACE_TYPE_ARG3.
3283 * infptrace.c (call_ptrace, child_resume, attach, detach)
3284 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
3285 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3286 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
3287 PTRACE_TYPE_ARG3.
3288
3289 2004-08-14 Mark Kettenis <kettenis@gnu.org>
3290
3291 * defs.h: Remove out-of-date comment.
3292 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
3293 [!GETENV_PROVIDED] (getenv): Remove prototype.
3294
3295 * standalone.c: Remove file.
3296 * Makefile.in (standalone.o): Remove dependency.
3297
3298 * i386-linux-nat.c (dummy_sse_values): Remove function and
3299 prototype.
3300 (i386_linux_dr_get): Fix typo in comment.
3301 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
3302
3303 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
3304
3305 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
3306 from declaration.
3307 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
3308 from definition.
3309
3310 2004-08-13 Mark Kettenis <kettenis@gnu.org>
3311
3312 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
3313 parenthesis in definition.
3314 * configure: Regenerated.
3315
3316 2004-08-12 Michael Chastain <mec.gnu@mindspring.com>
3317
3318 * PROBLEMS: Mention build/1411.
3319
3320 2004-08-09 Robert Millan <robertmh@gnu.org>
3321
3322 Committed by Nathanael Nerode.
3323 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
3324 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
3325
3326 2004-08-12 Andrew Cagney <cagney@gnu.org>
3327
3328 * NEWS: Mention fixes in GDB 6.2.1.
3329 * PROBLEMS: Remove mention of mips-irix.
3330
3331 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3332
3333 * config/powerpc/xm-aix.h: Delete.
3334 * config/powerpc/aix.mh (MH_FILE): Remove.
3335 * config/powerpc/aix432.mh (MH_FILE): Remove.
3336
3337 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3338
3339 * config/powerpc/aix.mh: Remove obsolete comment.
3340 * config/powerpc/aix432.mh: Likewise.
3341
3342 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3343
3344 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
3345
3346 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3347
3348 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
3349 this file is now empty.
3350 * config/xm-aix4.h: Remove, this file is no longer included
3351 anywhere.
3352
3353 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3354
3355 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
3356 that file is now empty.
3357 (termdef): Remove prototype, function no longer used.
3358
3359 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3360
3361 * doc/gdbint.texinfo (Host Definition): Remove documentation
3362 for USE_O_NOCTTY, no longer used.
3363 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
3364 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
3365
3366 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3367
3368 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
3369 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
3370 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
3371
3372 2004-08-11 Mark Kettenis <kettenis@gnu.org>
3373
3374 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
3375 instead of FIVE_ARG_PTRACE.
3376
3377 * inflow.c (O_NOCTTY): Define to zero if not already defined.
3378 (new_tty): Use O_NOCTTY unconditionally.
3379
3380 2004-08-10 Mark Kettenis <kettenis@gnu.org>
3381
3382 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
3383 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
3384 fflush on stdout.
3385
3386 2004-08-10 Joel Brobecker <brobecker@gnat.com>
3387
3388 * xcoff_symfile_finish: Replace last call to xmfree by call
3389 to xfree.
3390
3391 2004-08-10 Andrew Cagney <cagney@gnu.org>
3392
3393 * main.c (captured_main): Delete call to init_malloc.
3394 * defs.h (init_malloc): Delete declaration.
3395 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
3396 (init_malloc): Delete functions.
3397
3398 * defs.h (xmfree): Delete.
3399 * utils.c (xmfree): Delete function.
3400 (xfree): Inline calls to xmfree and mfree.
3401 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
3402 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
3403 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
3404 * somread.c (som_symfile_finish): Ditto.
3405 * objfiles.c (allocate_objfile, free_objfile):
3406 * nlmread.c (nlm_symfile_finish): Ditto.
3407 * hpread.c (hpread_symfile_finish): Ditto.
3408 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
3409 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
3410 * coffread.c (coff_symfile_finish): Ditto.
3411
3412 * defs.h (xmcalloc): Delete declaration.
3413 * utils.c (xmcalloc): Delete.
3414 (xcalloc): Inline calls to xmcalloc and mcalloc.
3415 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
3416 xcalloc and xfree.
3417 * symtab.c (create_demangled_names_hash): Ditto.
3418
3419 * defs.h (xmrealloc): Delete.
3420 * utils.c (xmrealloc): Delete.
3421 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
3422 * symmisc.c (extend_psymbol_list): Use xrealloc.
3423 * source.c (find_source_lines): Ditto.
3424 * hpread.c (hpread_lookup_type): Ditto.
3425 * dbxread.c (add_bincl_to_list): Ditto.
3426
3427 * utils.c (xmmalloc): Delete.
3428 (xmalloc): Inline xmmalloc and mmalloc calls.
3429 (msavestring): Use xmalloc.
3430 * defs.h (xmmalloc): Delete declaration.
3431 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
3432 xmmalloc.
3433 * symmisc.c (extend_psymbol_list): Ditto.
3434 * symfile.c (init_psymbol_list): Ditto.
3435 * source.c (find_source_lines): Ditto.
3436 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
3437 * elfread.c (elf_symtab_read): Ditto.
3438 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
3439 * coffread.c (coff_symfile_init): Ditto.
3440
3441 2004-08-10 David Carlton <carlton@bactrian.org>
3442
3443 * MAINTAINERS: Remove David Carlton from c++ testsuite
3444 maintainers.
3445
3446 2004-08-10 Jerome Guitton <guitton@gnat.com>
3447
3448 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
3449 print a line feed before the prompt.
3450
3451 2004-08-10 Mark Kettenis <kettenis@gnu.org>
3452
3453 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
3454
3455 2004-08-09 Joel Brobecker <brobecker@gnat.com>
3456
3457 General cleanup of the AIX xm include file:
3458 * config/xm-aix4.h (fd_set): Remove undefine.
3459 Remove include of <sys/select.h>.
3460 (HAVE_TERMIO): Remove define.
3461 (USG): Likewise.
3462 (NULL): Remove redefine.
3463 (alloca): Remove #pragma.
3464 (vfork): Remove define.
3465 (termdef): Remove.
3466 (SIGWINCH_HANDLER): Remove.
3467 (SIGWINCH_HANDLER_BODY): Remove.
3468
3469 2004-08-09 Mark Kettenis <kettenis@gnu.org>
3470
3471 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
3472 GDB_OSABI_OPENBSD_ELF.
3473
3474 2004-08-07 Robert Millan <robertmh@gnu.org>
3475
3476 * bsd-kvm.c: Check for nlist.h before including it.
3477
3478 2004-08-09 Mark Kettenis <kettenis@gnu.org>
3479
3480 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
3481 sigcontext' offset consistency checks for ancient BSD.
3482
3483 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
3484
3485 * configure.in: Check for <sys/types.h>. Check return and
3486 argument types of ptrace.
3487 * configure, config.in: Regenerate.
3488
3489 2004-08-09 Jim Blandy <jimb@redhat.com>
3490
3491 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
3492 rs6000_register_sim_regno): Doc fixes.
3493
3494 2004-08-08 Joel Brobecker <brobecker@gnat.com>
3495
3496 * mips-tdep.c: Include "floatformat.h".
3497 (n32n64_floatformat_always_valid): New function.
3498 (floatformat_n32n64_long_double_big): New constant.
3499 (mips_gdbarch_init): Set size and format of long double
3500 for N32 and N64 ABIs.
3501 * Makefile.in (mips-tdep.o): Update dependencies.
3502
3503 2004-08-08 Andrew Cagney <cagney@gnu.org>
3504
3505 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
3506 print. Improve script's error messages.
3507 * gdbarch.h: Re-generate.
3508
3509 * gdbarch.sh (pformat): New function.
3510 (float_format, double_format, long_double_format): List with bit
3511 members. Use pformat when printing.
3512 * gdbarch.c, gdbarch.h: Re-generate.
3513
3514 2004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
3515
3516 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
3517 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
3518 (ppcnbsd_supply_pcb): New function.
3519 (_initialize_ppcnbsd_nat): New prototype and function.
3520 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
3521 (LOADLIBES): New variable.
3522 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
3523
3524 2004-08-08 Andrew Cagney <cagney@gnu.org>
3525
3526 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
3527 (builtin_type_ieee_double, builtin_type_ia64_quad)
3528 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
3529 BE/LE floating-point types.
3530 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
3531 (builtin_type_ieee_double, builtin_type_ia64_quad)
3532 (builtin_type_ia64_spill): Declare.
3533 * doublest.c (_initialize_doublest, floatformat_ieee_single)
3534 (floatformat_ieee_double, floatformat_arm_ext)
3535 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
3536 of LE/BE floatformats.
3537 * doublest.h: (struct floatformat, floatformat_ieee_single)
3538 (floatformat_ieee_double, floatformat_arm_ext)
3539 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
3540
3541 2004-08-08 Mark Kettenis <kettenis@gnu.org>
3542
3543 * i386gnu-nat.c (gnu_store_registers): Fix typo.
3544
3545 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
3546 instead of regcache_raw_supply when storing the registers.
3547
3548 * i386gnu-nat.c: Update copyright year.
3549 (gnu_store_registers): Don't use deprecated_registers and
3550 deprecated_registers_valid. Use regcache_valid_p and
3551 regcache_raw_supply instead.
3552
3553 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
3554 frame_pc_unwind.
3555
3556 * procfs.c (procfs_pid_to_str): Remove redundant and unused
3557 variables. Incapitalized "process".
3558
3559 * configure.in: Add cursesX to the list of possible curses libs.
3560 Add cursesX.h to the list of possible curses headers.
3561 * configure, config.in: Regenerate.
3562
3563 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
3564
3565 * configure.in: Test for struct lwp in <sys/lwp.h>.
3566 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
3567 the offset of l_addr in struct lwp.
3568
3569 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
3570
3571 * bsd-kvm.c: Include "gdbcore.h"
3572 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
3573
3574 2004-08-07 Andrew Cagney <cagney@gnu.org>
3575
3576 * gdbtypes.c (build_flt, build_complex): New functions.
3577 (gdbtypes_post_init): Use.
3578
3579 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
3580
3581 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
3582 through to builtin_type_uint128.
3583
3584 * c-exp.y: Use builtin_type function to obtain builtin types.
3585
3586 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
3587 builtin_uint128.
3588 * gdbtypes.c (gdbtypes_post_init): Update.
3589 (build_gdbtypes): Move initialization of builtin_type_int0
3590 through to builtin_type_uint128 from here ...
3591 (_initialize_gdbtypes): ... to here.
3592 * d10v-tdep.c (d10v_register_type): Update.
3593
3594 * doublest.c: Update copyright.
3595 (floatformat_from_length): Call error when floatformat is NULL.
3596 (extract_floating_by_length): Remove NULL fmt check.
3597 (store_floating_by_length): Ditto.
3598
3599 2004-08-07 Andrew Cagney <cagney@gnu.org>
3600
3601 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
3602 that the register is valid.
3603
3604 2004-08-05 Mark Kettenis <kettenis@chello.nl>
3605
3606 * i386-linux-tdep.c (i386_linux_sigtramp_start)
3607 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
3608 struct frame_info *. Use safe_frame_unwind_memory instead of
3609 deprecated_read_memory_nobpt.
3610 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
3611 changed signature of i386_linux_sigtramp_start and
3612 i386_linux_rt_sigtramp_start.
3613
3614 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
3615 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
3616 instead of deprecated_read_memory_nobpt.
3617 (i386nbsd_sigtramp_p): Adjust for changed signature of
3618 i386nbsd_sigtramp_offset.
3619
3620 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
3621 safe_frame_unwind_memory instead of target_read_memory.
3622
3623 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
3624 !NO_SYS_FILE.
3625 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
3626 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
3627 (_initialize_kernel_u_addr): Remove prototype and function.
3628 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
3629 !NO_SYS_FILE.
3630 * xcoffread.c: Likewise.
3631
3632 2004-08-06 Mark Kettenis <kettenis@gnu.org>
3633
3634 * vax-nat.c: New file.
3635 * vaxbsd-nat.c: Tweak comment.
3636 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
3637 vaxnbsd-tdep.c.
3638 (vax-nat.o): New dependency.
3639 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
3640 (vax-*-ultrix2*): Remove.
3641 * config/vax/vax.mh: New file.
3642 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
3643 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
3644 (vax_register_u_addr): New prototype.
3645 (REGISTER_U_ADDR): Define using vax_register_u_addr.
3646 * config/vax/vaxult2.mh: Remove file.
3647 * config/vax/vaxult.mh: Remove file.
3648 * config/vax/vaxbsd.mh: Remove file.
3649 * config/vax/vax.mt (TM_FILE): Remove.
3650 * config/vax/tm-vaxbsd.h: Remove file.
3651
3652 2004-08-06 Joel Brobecker <brobecker@gnat.com>
3653
3654 * aix-thread.c (get_signaled_thread): New function.
3655 (iter_trap): Delete, no longer used.
3656 (iter_tid): New function.
3657 (pd_update): Find the thread that received the SIGTRAP signal
3658 by first locating the kernel thread, and then finding its
3659 associated thread.
3660
3661 2004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
3662
3663 * lin-lwp.c (child_wait): Continue inferior after processing
3664 PTRACE_EVENT_CLONE event.
3665
3666 2004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
3667
3668 * MAINTAINERS: Add self to Write-After-Approval.
3669
3670 2004-08-05 Jeff Johnston <jjohnstn@redhat.com>
3671
3672 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
3673 libunwind-xxxx.so" where xxxx is UNW_TARGET.
3674
3675 2004-08-05 Andrew Cagney <cagney@gnu.org>
3676
3677 * config/xm-sysv4.h: Delete file.
3678 * config/mips/xm-irix5.h: Delete file.
3679 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
3680 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
3681 * config/ia64/xm-aix.h: Delete file.
3682 * config/ia64/aix.mh (XM_FILE): Delete.
3683 * config/pa/xm-hppah.h: Delete file.
3684 * config/pa/hpux11w.mh (XM_FILE): Delete.
3685 * config/pa/hpux11.mh (XM_FILE): Delete.
3686 * config/pa/hpux1020.mh (XM_FILE): Delete.
3687 * config/pa/hppahpux.mh (XM_FILE): Delete.
3688
3689 * config/alpha/xm-alphalinux.h: Delete file.
3690 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
3691 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
3692 * config/alpha/xm-alphaosf.h: Delete file.
3693 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
3694 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
3695 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
3696 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
3697
3698 * config/i386/xm-i386v.h: Delete file.
3699 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
3700 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
3701 * config/i386/xm-i386sco.h: Delete file.
3702 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
3703 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
3704 * config/i386/xm-i386v4.h: Delete file.
3705 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
3706 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
3707 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
3708 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
3709
3710 * config/vax/xm-vax.h: Delete file.
3711 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
3712 * config/vax/xm-vaxult2.h: Delete file.
3713 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
3714 * config/vax/vaxult2.mh (XM_FILE): Delete.
3715 * config/vax/xm-vaxult.h: Delete file.
3716 * config/vax/vaxult.mh (XM_FILE): Delete.
3717 * config/vax/xm-vaxbsd.h: Delete file.
3718 * config/vax/vaxbsd.mh (XM_FILE): Delete.
3719
3720 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
3721 * gdbarch.h, gdbarch.c: Re-generate.
3722 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
3723 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
3724 * frame.h: Delete deprecated_read_fp from comments.
3725 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
3726 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
3727
3728 2004-08-04 Mark Kettenis <kettenis@gnu.org>
3729
3730 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
3731 trampoline in OpenBSD 3.5-current.
3732
3733 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
3734 SSE registers.
3735
3736 * Makefile.in: Remove embedded page breaks.
3737
3738 2004-08-04 Jim Blandy <jimb@redhat.com>
3739
3740 * regcache.c (regcache_raw_read): Assert that, after calling
3741 target_fetch_registers, the register we're reading is cached.
3742
3743 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
3744 a call to 'internal_error', with a more helpful error message.
3745 * rs6000-tdep.c (e500_pseudo_register_read,
3746 e500_pseudo_register_write, rs6000_store_return_value): Same.
3747
3748 2004-08-04 Andrew Cagney <cagney@gnu.org>
3749
3750 * Makefile.in: Update dependencies.
3751
3752 2004-08-04 Jim Blandy <jimb@redhat.com>
3753
3754 Change the layout of the PowerPC E500 raw register cache to allow
3755 the lower 32-bit halves of the GPRS to be their own raw registers,
3756 not pseudoregisters.
3757 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
3758 add ppc_ev0_upper_regnum flag.
3759 * rs6000-tdep.c: #include "reggroups.h".
3760 (spe_register_p): Recognize the ev upper half registers as SPE
3761 registers.
3762 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
3763 registers.
3764 (e500_move_ev_register): New function.
3765 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
3766 vector registers are the pseudo-registers now, formed by splicing
3767 together the gprs and the upper-half registers.
3768 (e500_register_reggroup_p): New function.
3769 (P): Macro deleted.
3770 (P8, A4): New macro.
3771 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
3772 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
3773 macros.
3774 (registers_e500): Rearrange register set so that the raw register
3775 set contains 32-bit GPRs and upper-half registers, and the SPE
3776 vector registers become pseudo-registers.
3777 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
3778 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
3779 register numbers are now the same for the E500 as they are for
3780 other PowerPC variants. Register e500_register_reggroup_p as the
3781 register group function for the E500.
3782 * Makefile.in (rs6000-tdep.o): Update dependencies.
3783
3784 Adapt PPC E500 native support to the new raw regcache layout.
3785 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
3786 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
3787 (fetch_spe_register, store_spe_register): Handle fetching/storing
3788 all the SPE registers at once, if regno == -1. These now take
3789 over the job of fetch_spe_registers and store_spe_registers.
3790 (fetch_spe_registers, store_spe_registers): Deleted.
3791 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
3792 unconditionally; they're always raw. Fetch/store SPE upper half
3793 registers, if present, instead of ev registers.
3794 (fetch_register, store_register): Remove sanity checks: gprs are
3795 never pseudo-registers now, so we never need to even mention any
3796 registers that are ever pseudoregisters.
3797
3798 Use a fixed register numbering when communicating with the PowerPC
3799 simulator.
3800 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
3801 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
3802 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
3803 New functions.
3804 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
3805 init_sim_regno_table.
3806 * Makefile.in (gdb_sim_ppc_h): New variable.
3807 (rs6000-tdep.o): Update dependencies.
3808
3809 2004-08-02 Andrew Cagney <cagney@gnu.org>
3810
3811 * cris-tdep.c (cris_register_size): Restore function, still used
3812 locally.
3813
3814 * gdbarch.sh (deprecated_target_read_fp)
3815 (deprecated_frame_locals_address, deprecated_frame_args_address)
3816 (deprecated_frame_chain_valid, deprecated_frame_chain)
3817 (deprecated_init_extra_frame_info, deprecated_pop_frame)
3818 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
3819 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
3820 * gdbarch.h, gdbarch.c: Re-generate.
3821 * regcache.c (deprecated_read_fp): Do not call
3822 DEPRECATED_TARGET_READ_FP_P.
3823 * infcmd.c (default_print_registers_info): Do not call
3824 DEPRECATED_DO_REGISTERS_INFO.
3825 * frame-base.c (default_frame_locals_address): Do not call
3826 DEPRECATED_FRAME_LOCALS_ADDRESS.
3827 (default_frame_args_address): Do not call
3828 DEPRECATED_FRAME_ARGS_ADDRESS.
3829
3830 * gdbarch.sh (deprecated_register_raw_size)
3831 (deprecated_register_virtual_size:int): Delete.
3832 * gdbarch.h, gdbarch.c: Re-generate.
3833 * cris-tdep.c (cris_register_size): Delete.
3834 (cris_gdbarch_init): Update.
3835 * alpha-tdep.c (alpha_register_raw_size)
3836 (alpha_register_virtual_size): Delete.
3837 (alpha_gdbarch_init): Update.
3838
3839 * gdbarch.sh (deprecated_register_virtual_type)
3840 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
3841 (deprecated_dummy_write_sp): Delete.
3842 * gdbarch.h, gdbarch.c: Re-generate.
3843
3844 * gdbarch.sh (deprecated_register_bytes): Delete.
3845 * gdbarch.h, gdbarch.c: Re-generate.
3846 * regcache.c (deprecated_register_bytes): New function.
3847 * regcache.h (deprecated_register_bytes): Declare.
3848 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3849 * v850-tdep.c (v850_gdbarch_init): Update.
3850 * sh64-tdep.c (sh64_gdbarch_init): Update.
3851 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
3852 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3853 * mcore-tdep.c (mcore_gdbarch_init): Update.
3854 * cris-tdep.c (cris_gdbarch_init): Update.
3855 * arm-tdep.c (arm_gdbarch_init): Update.
3856 * remote.c (init_remote_state): Update.
3857 * remote-vx.c (vx_prepare_to_store): Update.
3858 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
3859 * irix5-nat.c (fetch_core_registers): Update.
3860 * cris-tdep.c (cris_register_bytes_ok): Update.
3861 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
3862
3863 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
3864 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
3865 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
3866 (mips_insn16_frame_base_address, mips_insn16_frame_base)
3867 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
3868 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
3869 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
3870 (mips_insn32_frame_base_address, mips_insn32_frame_base)
3871 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
3872 with mips_insn16 and mips_insn32.
3873
3874 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
3875 * rs6000-tdep.c (rs6000_push_dummy_call)
3876 (rs6000_extract_return_value): Use register_size.
3877 * xstormy16-tdep.c (xstormy16_get_saved_register)
3878 (xstormy16_extract_return_value): Ditto.
3879 * valops.c (value_assign): Ditto.
3880 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
3881 * v850-tdep.c (v850_extract_return_value): Ditto.
3882 * tracepoint.c (collect_symbol): Ditto.
3883 * target.c (debug_print_register): Ditto.
3884 * stack.c (frame_info): Ditto.
3885 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
3886 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
3887 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
3888 (store_register_using_P): Ditto.
3889 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
3890 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
3891 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
3892 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
3893 * regcache.c (deprecated_read_register_bytes)
3894 (deprecated_write_register_bytes, read_register)
3895 (write_register): Ditto.
3896 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
3897 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
3898 * monitor.c (monitor_supply_register, monitor_fetch_register)
3899 (monitor_store_register): Ditto.
3900 * mn10300-tdep.c (mn10300_pop_frame_regular)
3901 (mn10300_print_register): Ditto.
3902 * mipsv4-nat.c (fill_fpregset): Ditto.
3903 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
3904 (mips64_fill_fpregset): Ditto.
3905 * mi/mi-main.c (register_changed_p, get_register)
3906 (mi_cmd_data_write_register_values): Ditto.
3907 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
3908 * irix5-nat.c (fill_gregset, fetch_core_registers):
3909 * infrun.c (write_inferior_status_register): Ditto.
3910 * infptrace.c (fetch_register, store_register): Ditto.
3911 * infcmd.c (default_print_registers_info): Ditto.
3912 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
3913 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
3914 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
3915 * hpux-thread.c (hpux_thread_fetch_registers)
3916 (hpux_thread_store_registers): Ditto.
3917 * hppah-nat.c (store_inferior_registers, fetch_register):
3918 * findvar.c (value_from_register): Ditto.
3919 * dve3900-rom.c (fetch_bitmapped_register):
3920 * cris-tdep.c (cris_gdbarch_init): Ditto.
3921 * alpha-tdep.h: Ditto.
3922 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
3923
3924 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
3925 DEPRECATED_REGISTER_RAW_SIZE from comments.
3926 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
3927 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
3928 DEPRECATED_REGISTER_RAW_SIZE.
3929 * findvar.c (value_of_register): Simplify by assuming that the
3930 registers raw and virtual sizes are identical.
3931 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
3932 comment.
3933 * arch-utils.c (generic_register_size): Simplify by assuming
3934 register_type.
3935
3936 * regcache.c (legacy_read_register_gen, real_register)
3937 (legacy_write_register_gen): Delete, not used.
3938
3939 * regcache.c (struct regcache_descr): Delete legacy_p.
3940 (init_legacy_regcache_descr): Delete function.
3941 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
3942 Do not use deprecated register functions.
3943 (regcache_raw_read, deprecated_write_register_gen):
3944 (deprecated_read_register_gen, regcache_raw_write): Delete code
3945 predicated on legacy_p.
3946 (register_size): Delete check against register raw size.
3947
3948 * cris-tdep.c (cris_register_type): Replace
3949 cris_register_virtual_type.
3950 (cris_gdbarch_init): Update, set register_type.
3951
3952 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
3953 * gdbarch.h, gdbarch.c: Re-generate.
3954 * arm-tdep.c (arm_frameless_function_invocation): Delete.
3955 (arm_gdbarch_init) Do not set frameless function invocation.
3956 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
3957 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
3958 * frv-tdep.c (frv_frameless_function_invocation): Delete.
3959 (frv_gdbarch_init): Do not set frameless function invocation.
3960 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
3961 * sh-tdep.c (sh_gdbarch_init): Ditto.
3962 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
3963 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3964 * avr-tdep.c (avr_gdbarch_init): Ditto.
3965
3966 * blockframe.c (legacy_frame_chain_valid): Delete function.
3967
3968 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
3969 and pc. Update comments.
3970 (pc_in_dummy_frame): Delete function.
3971 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
3972 use the "id".
3973 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
3974 call_hi, top and pc, use the id.
3975 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
3976
3977 * dummy-frame.c: Include "gdb_string.h".
3978 (generic_save_call_dummy_addr, generic_push_dummy_frame)
3979 (generic_save_dummy_frame_tos): Delete.
3980 (dummy_frame_push): New function, replaces above.
3981 * dummy-frame.h: Update copyright.
3982 (dummy_frame_push): Declare.
3983 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
3984 (generic_save_call_dummy_addr): Delete declarations.
3985 * infcall.c: Include "dummy-frame.h".
3986 (call_function_by_hand): Add locals caller_regcache,
3987 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
3988 with call to frame_save_as_regcache plus cleanup. Delete calls to
3989 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
3990 Move clear_proceed_status to just before the resume, add call to
3991 dummy_frame_push (discard cleanup).
3992 * Makefile.in (infcall.o): Add $(dummy_frame_h).
3993 (dummy-frame.o): Add $(gdb_string_h).
3994
3995 2004-08-01 Andrew Cagney <cagney@gnu.org>
3996
3997 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
3998 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
3999 * dummy-frame.c (find_dummy_frame): Delete.
4000 (struct dummy_frame_cache, dummy_frame_sniffer)
4001 (dummy_frame_prev_register, dummy_frame_this_id)
4002 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
4003 frame unwinder using a dummy_frame_cache.
4004
4005 2004-08-01 Andrew Cagney <cagney@gnu.org>
4006
4007 * frame.h (frame_save_as_regcache): Declare.
4008 * frame.c (frame_save_as_regcache): New function.
4009 (do_frame_read_register): Replace do_frame_unwind_register.
4010 (frame_pop): Use frame_save_as_regcache.
4011 * dummy-frame.c (generic_push_dummy_frame): Use
4012 frame_save_as_regcache.
4013
4014 2004-08-01 Joel Brobecker <brobecker@gnat.com>
4015
4016 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
4017 file as included until we record the first line in the linetable.
4018
4019 2004-08-01 Andrew Cagney <cagney@gnu.org>
4020
4021 * frame.h (deprecated_pop_dummy_frame)
4022 (deprecated_read_register_dummy)
4023 (deprecated_generic_find_dummy_frame): Delete.
4024 * dummy-frame.c (deprecated_generic_find_dummy_frame)
4025 (deprecated_read_register_dummy)
4026 (deprecated_find_dummy_frame_regcache)
4027 (discard_innermost_dummy)
4028 (deprecated_pop_dummy_frame): Delete.
4029 (dummy_frame_this_id): Simplify.
4030 (struct dummy_frame): Delete "fp" and "sp".
4031 (find_dummy_frame): Simplify.
4032 (generic_push_dummy_frame): Do not set "fp" or "sp".
4033 (fprint_dummy_frames): Do not print "fp" and "sp"
4034
4035 2004-08-01 Mark Kettenis <kettenis@gnu.org>
4036
4037 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
4038 (struct i386_insn): New structure.
4039 (i386_match_insn): New function.
4040 (i386_frame_setup_skip_insns): New variable.
4041 (i386_analyze_frame_setup): Change to use i386_match_insn and the
4042 array i386_frame_setup_insns of instructions that should be
4043 skipped inside the frame setup sequence.
4044
4045 2004-08-01 Andrew Cagney <cagney@gnu.org>
4046
4047 * frame.h (deprecated_frame_xmalloc_with_cleanup)
4048 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
4049 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
4050 * stack.c (frame_info): Delete references to
4051 DEPRECATED_FRAME_INIT_SAVED_REGS and
4052 deprecated_get_frame_saved_regs.
4053 * frame.c (struct frame_info): Delete saved_regs and extra_info.
4054 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
4055 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
4056 (frame_unwind_register_signed)
4057 (frame_unwind_register_unsigned)
4058 (frame_unwind_unsigned_register): Use register_size.
4059 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
4060 (deprecated_frame_xmalloc_with_cleanup)
4061 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
4062 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
4063
4064 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
4065 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
4066 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
4067 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
4068
4069 * infcall.c (call_function_by_hand): Do not use
4070 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
4071 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
4072 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
4073 DEPRECATED_STACK_ALIGN.
4074
4075 2004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
4076
4077 Committed by Andrew Cagney.
4078 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
4079
4080 2004-08-01 Andrew Cagney <cagney@gnu.org>
4081
4082 * mips-tdep.c (mips16_frame_cache)
4083 (mips16_frame_this_id, mips16_frame_prev_register)
4084 (mips16_frame_unwind, mips16_frame_sniffer)
4085 (mips16_frame_base_address, mips16_frame_base)
4086 (mips16_frame_base_sniffer, mips32_frame_cache)
4087 (mips32_frame_this_id, mips32_frame_prev_register)
4088 (mips32_frame_unwind, mips32_frame_sniffer)
4089 (mips32_frame_base_address, mips32_frame_base)
4090 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
4091 separate heuristic mips16 and mips32 unwinders.
4092 (mips_stub_frame_cache, mips_stub_frame_this_id)
4093 (mips_stub_frame_prev_register)
4094 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
4095 (mips_stub_frame_base_address, mips_stub_frame_base)
4096 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
4097 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
4098 match true mdebug frames.
4099 (non_heuristic_proc_desc): Add forward declaration.
4100
4101 2004-08-01 Andrew Cagney <cagney@gnu.org>
4102
4103 * config/mips/tm-irix6.h: Delete file.
4104 * config/mips/tm-irix5.h: Delete file.
4105 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
4106 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
4107
4108 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
4109 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
4110 * config/nm-gnu.h (NO_CORE_OPS): Delete.
4111 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
4112 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
4113 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
4114 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
4115 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
4116 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
4117 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
4118 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
4119 (TARGET_SIGNAL_RAW_VALUES): Delete.
4120 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
4121 Delete.
4122 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
4123 (TARGET_HW_WATCH_LIMIT): Delete.
4124 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
4125 * minimon.h: Delete file.
4126
4127 * trad-frame.c (trad_frame_get_this_base)
4128 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
4129 functions.
4130 * trad-frame.h (trad_frame_set_this_base)
4131 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
4132
4133 2004-07-31 Andrew Cagney <cagney@gnu.org>
4134
4135 * trad-frame.c (trad_frame_get_prev_register): Rename
4136 trad_frame_get_prev_register.
4137 * vax-tdep.c (vax_frame_prev_register): Update.
4138 * trad-frame.h: Update.
4139 * trad-frame.c (trad_frame_get_register): Update.
4140 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
4141 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
4142 Update.
4143 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
4144 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
4145 Update.
4146 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
4147 Update.
4148 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
4149 Update.
4150 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
4151 Update.
4152 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
4153 Update.
4154 * s390-tdep.c (s390_frame_prev_register)
4155 (s390_stub_frame_prev_register)
4156 (s390_sigtramp_frame_prev_register): Update.
4157 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
4158 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
4159 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
4160 * m88k-tdep.c (m88k_frame_prev_register)
4161 * m68hc11-tdep.c (m68hc11_frame_prev_register)
4162 * m32r-tdep.c (m32r_frame_prev_register): Update.
4163 * hppa-tdep.c (hppa_frame_prev_register_helper)
4164 * frv-tdep.c (frv_frame_prev_register): Update.
4165 * d10v-tdep.c (d10v_frame_prev_register): Update.
4166 * cris-tdep.c (cris_frame_prev_register): Update.
4167 * avr-tdep.c (avr_frame_prev_register): Update.
4168 * arm-tdep.c (arm_prologue_prev_register)
4169 (arm_sigtramp_prev_register): Update.
4170
4171 2004-07-31 Andrew Cagney <cagney@gnu.org>
4172
4173 * frame.h (legacy_saved_regs_unwind)
4174 (legacy_frame_chain_valid, legacy_frame_p)
4175 (enum frame_type): Delete UNKNOWN_FRAME.
4176 * dummy-frame.c (dummy_frame_this_id): Simplify.
4177 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
4178 * frame.c (struct frame_info): Delete the field "type".
4179 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
4180 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
4181 (legacy_saved_regs_unwind, legacy_frame_p)
4182 (frame_type_from_pc): Delete.
4183 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
4184 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
4185
4186 2004-07-31 Mark Kettenis <kettenis@gnu.org>
4187
4188 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
4189 indentation.
4190
4191 * mips-nat.c: Remove file.
4192 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
4193 (mips-nat.o): Remove dependency.
4194
4195 * infptrace.c: Update copyright year.
4196 (fetch_register): Pass NULL in regcache_raw_supply call instead of
4197 explicitly setting the buffer to all zeroes.
4198
4199 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
4200 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
4201
4202 2004-07-30 Andrew Cagney <cagney@gnu.org>
4203
4204 * GDB 6.2 released from gdb_6_2-branch.
4205
4206 2004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
4207
4208 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
4209
4210 * exec.c (exec_file_attach):
4211 * nto-tdep.c (nto_find_and_open_solib):
4212 * pa64solib.c (pa64_solib_sizeof_symbol_table):
4213 * solib.c (solib_open):
4214 * somsolib.c (som_solib_sizeof_symbol_table):
4215 * source.c (is_regular_file, openp, open_source_file):
4216 * symfile.c (symfile_bfd_open):
4217 * wince.c (upload_to_device): Differentiate between the search for
4218 binary and source files.
4219
4220 2004-07-30 Andrew Cagney <cagney@gnu.org>
4221
4222 * complaints.c (_initialize_complaints): Pass NULL to
4223 add_setshow_zinteger_cmd for help_doc.
4224 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
4225
4226 2004-07-30 Andrew Cagney <cagney@gnu.org>
4227
4228 Fix PR i18n/761.
4229 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
4230 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
4231 $(PACKAGE).pot and update-po.
4232 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
4233 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
4234 (update-po): New rules.
4235 (localedir): Define using autoconf.
4236 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
4237 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
4238 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
4239 * configure.in: Generate CATALOGS and LINGUAS from contents of
4240 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
4241 * configure: Re-generate.
4242 * po/gdbtext: New file
4243
4244 2004-07-30 Jerome Guitton <guitton@gnat.com>
4245
4246 * MAINTAINERS: Reorder Write After Approval list in alphabetical
4247 order.
4248
4249 2004-07-30 David Lecomber <dsl@sources.redhat.com>
4250
4251 * dwarf2read.c (read_file_scope): Set producer if attribute
4252 present.
4253 (struct dwarf2_cu): Added new member producer.
4254
4255 2004-07-30 Jerome Guitton <guitton@gnat.com>
4256
4257 * inflow.c (kill_command): release file handles in BFD.
4258 * exec.c (exec_file_attach): Ditto.
4259 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
4260
4261 2004-07-29 Andrew Cagney <cagney@gnu.org>
4262
4263 * PROBLEMS (mips-irix): Note that it is broken.
4264
4265 2004-07-29 Andrew Cagney <cagney@gnu.org>
4266
4267 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
4268 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
4269
4270 * config/xm-nbsd.h: Delete file.
4271 * config/arm/xm-nbsd.h: Delete file.
4272 * config/i386/xm-nbsd.h: Delete file.
4273 * config/ns32k/xm-nbsd.h: Delete file.
4274 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
4275 * config/i386/nbsdelf.mh (XM_FILE): Delete.
4276 * config/i386/nbsdaout.mh (XM_FILE): Delete.
4277 * config/arm/nbsdelf.mh (XM_FILE): Delete.
4278 * config/arm/nbsdaout.mh (XM_FILE): Delete.
4279
4280 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
4281 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
4282 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
4283 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
4284 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
4285 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
4286
4287 * config/powerpc/xm-linux.h: Delete empty file.
4288 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
4289 * config/powerpc/linux.mh (XM_FILE): Delete.
4290 * config/m68k/xm-linux.h: Delete empty file.
4291 * config/m68k/linux.mh (XM_FILE): Delete.
4292 * config/ia64/xm-linux.h: Delete empty file.
4293 * config/ia64/linux.mh (XM_FILE): Delete.
4294 * config/arm/xm-linux.h: Delete empty file.
4295 * config/arm/linux.mh (XM_FILE): Delete.
4296
4297 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4298 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
4299 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4300 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
4301 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4302 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
4303 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4304 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
4305
4306 * config/m68k/xm-m68k.h: Delete file.
4307 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
4308 copyright.
4309 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
4310 * config/pa/xm-linux.h: Delete empty file.
4311 * config/pa/linux.mh (XM_FILE): Delete.
4312 * config/i386/xm-i386.h: Delete empty file.
4313 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
4314 "i386/xm-i386.h".
4315 * config/i386/obsdaout.mh (XM_FILE): Delete.
4316 * config/i386/obsd64.mh (XM_FILE): Delete.
4317 * config/i386/fbsd64.mh (XM_FILE): Delete.
4318 * config/i386/nto.mh (XM_FILE): Delete.
4319 * config/i386/obsd.mh (XM_FILE): Delete.
4320 * config/i386/linux64.mh (XM_FILE): Delete.
4321 * config/i386/linux.mh (XM_FILE): Delete.
4322 * config/i386/i386sol2.mh (XM_FILE): Delete.
4323 * config/i386/i386gnu.mh (XM_FILE): Delete.
4324 * config/i386/fbsd.mh (XM_FILE): Delete.
4325 * config/i386/nbsd64.mh (XM_FILE): Delete.
4326
4327 2004-07-29 Andrew Cagney <cagney@gnu.org>
4328
4329 * config/pa/xm-linux.h: Do not include "floatformat.h".
4330 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4331 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
4332 * config/i386/xm-i386.h: Do not include "floatformat.h".
4333 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4334 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
4335 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4336 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
4337 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
4338 GDB_HOST_LONG_DOUBLE_FORMAT instead.
4339 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
4340 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
4341 * configure, config.in: Regenerate.
4342 * configure.host (gdb_host_float_format, gdb_host_double_format)
4343 (gdb_host_long_double_format): Set according to the host.
4344
4345 2004-07-29 Andrew Cagney <cagney@gnu.org>
4346
4347 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
4348
4349 2004-07-28 Andrew Cagney <cagney@gnu.org>
4350
4351 * PROBLEMS: Mention threads/1650.
4352 * NEWS: Mention the NPTL fix.
4353
4354 2004-07-28 Andrew Cagney <cagney@gnu.org>
4355
4356 * cli/cli-decode.c (add_setshow_cmd): Delete function.
4357 (add_setshow_cmd_full): Make static.
4358 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
4359 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
4360 * cli/cli-decode.c (add_setshow_filename_cmd)
4361 (add_setshow_string_cmd): New functions.
4362 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
4363 * mips-tdep.c (_initialize_mips_tdep): Update.
4364 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
4365 * cli/cli-logging.c (_initialize_cli_logging): Update.
4366 * complaints.c (_initialize_complaints): Update.
4367 * remote.c (_initialize_remote): Update.
4368
4369 2004-07-28 Andrew Cagney <cagney@gnu.org>
4370
4371 * cli/cli-decode.c (add_setshow_zinteger_cmd)
4372 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
4373 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
4374 print parameters. Make string parameters constant.
4375 * command.h: Update. Update copyright.
4376 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
4377 * observer.c (_initialize_observer): Ditto.
4378 * frame.c (_initialize_frame): Ditto.
4379 * complaints.c (_initialize_complaints): Ditto.
4380 * maint.c (_initialize_maint_cmds): Ditto.
4381 * target.c (initialize_targets): Ditto.
4382 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
4383 * infcall.c (_initialize_infcall): Ditto.
4384 * arm-tdep.c (_initialize_arm_tdep): Ditto.
4385 * m32r-rom.c (_initialize_m32r_rom): Ditto.
4386 * remote-rdi.c (_initialize_remote_rdi): Ditto.
4387 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
4388 * mips-tdep.c (_initialize_mips_tdep): Ditto.
4389
4390 2004-07-28 Andrew Cagney <cagney@gnu.org>
4391
4392 * gdbtypes.c (lookup_primitive_typename): Delete function.
4393 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
4394 * ada-lex.l: Use language_lookup_primitive_type_by_name.
4395 * gdbtypes.c (lookup_typename): Ditto.
4396 * f-exp.y (yylex): Ditto.
4397 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
4398
4399 * scm-lang.c (c_builtin_types): Delete extern declaration.
4400 (scm_language_defn): Replace
4401 string_char_type and primitive_type_vector with
4402 la_language_arch_info.
4403 * jv-lang.c (java_language_defn): Replace
4404 string_char_type and primitive_type_vector with
4405 la_language_arch_info.
4406 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
4407 c_builtin_types in comment.
4408 * c-lang.h (struct language_arch_info): Declare opaque.
4409 (c_language_arch_info): Declare.
4410 (c_builtin_types): Delete declaration.
4411 * c-lang.c (c_language_arch_info): Set string_char_type to
4412 builtin_char, not builtin_true_char. Make global.
4413 (c_builtin_types): Delete array.
4414 (asm_language_defn, minimal_language_defn): Replace
4415 string_char_type and primitive_type_vector with
4416 la_language_arch_info.
4417
4418 2004-07-28 Andrew Cagney <cagney@gnu.org>
4419
4420 * gdbtypes.h (struct builtin_type): Rename true_char to
4421 builtin_true_char.
4422 * gdbtypes.c (gdbtypes_post_init): Update.
4423 * c-lang.c (arch_info): New function.
4424 (enum c_primitive_types): New enum.
4425 (c_language_defn): Instead of string_char_type and
4426 primitive_type_vector set la_language_arch_info.
4427
4428 2004-07-28 Andrew Cagney <cagney@gnu.org>
4429
4430 * language.h (struct language_arch_info): Fix typo
4431 s/primative/primitive/.
4432 * gdbtypes.c (lookup_primitive_typename): Ditto.
4433 * language.c (language_lookup_primitive_type_by_name)
4434 (unknown_language_arch_info): Ditto.
4435
4436 2004-07-27 Andrew Cagney <cagney@gnu.org>
4437
4438 * defs.h (enum language): Add nr_languages.
4439 * language.h (struct language_arch_info): Define.
4440 (struct language_defn): Add la_language_arch_info.
4441 (language_lookup_primative_type_by_name): Declare.
4442 (language_string_char_type): Declare.
4443 * language.c (_initialize_language, language_gdbarch_post_init)
4444 (struct language_gdbarch, language_gdbarch_data): Implement
4445 per-architecture language information.
4446 (unknown_language_arch_info, language_string_char_type)
4447 (language_lookup_primative_type_by_name): New functions.
4448 (unknown_language_defn, auto_language_defn)
4449 (local_language_defn): Set la_language_arch_info to
4450 unknown_language_arch_info.
4451 (unknown_builtin_types): Delete.
4452 * gdbtypes.c (lookup_primitive_typename): Use
4453 language_lookup_primative_type_by_name.
4454 (create_string_type): Use language_string_char_type.
4455 * values.c (value_from_string): Use language_string_char_type.
4456 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
4457 * p-lang.c (pascal_language_defn): Ditto.
4458 * m2-lang.c (m2_language_defn): Ditto.
4459 * jv-lang.c (java_language_defn): Ditto.
4460 * objc-lang.c (objc_language_defn): Ditto.
4461 * f-lang.c (f_language_defn): Ditto.
4462 * c-lang.c (c_language_defn, cplus_language_defn)
4463 (asm_language_defn, minimal_language_defn): Ditto.
4464
4465 2004-07-27 Andrew Cagney <cagney@gnu.org>
4466
4467 * gdbtypes.h (struct builtin_type): Declare.
4468 (builtin_type): Declare.
4469 * d10v-tdep.c (d10v_register_type): Use builtin_type.
4470 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
4471 (gdbtypes_post_init): New function.
4472 (builtin_type): New function.
4473
4474 2004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
4475
4476 * remote-m32r-sdi.c: Fix breakpoint bug.
4477 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
4478 recv_char_data, recv_long_data): New functions to replace communication
4479 sequences.
4480
4481 2004-07-26 Michael Chastain <mec.gnu@mindspring.com>
4482
4483 Document PR threads/1650.
4484 * PROBLEMS (Threads): Document problem with many threads
4485
4486 2004-07-26 Andrew Cagney <cagney@gnu.org>
4487
4488 * gdb-mi.el: Move from here ...
4489 * mi/gdb-mi.el: ... to here.
4490
4491 2004-07-26 Andrew Cagney <cagney@gnu.org>
4492
4493 Problem reported by Ashley Pittman <ashley@quadrics.com>.
4494 * main.c (captured_main): When in batch mode always detach.
4495
4496 2004-07-26 Andrew Cagney <cagney@gnu.org>
4497
4498 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
4499 and h8300 as broken.
4500 * NEWS: END-OF-LIFE frame compatibility module.
4501 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
4502 specific comments.
4503
4504 2004-07-26 Andrew Cagney <cagney@gnu.org>
4505
4506 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
4507 * xcoffsolib.c (_initialize_xcoffsolib): Update.
4508 * wince.c (_initialize_wince): Update.
4509 * win32-nat.c (_initialize_win32_nat): Update.
4510 * varobj.c (_initialize_varobj): Update.
4511 * valops.c (_initialize_valops): Update.
4512 * utils.c (initialize_utils, initialize_utils): Update.
4513 * tui/tui-win.c (_initialize_tui_win): Update.
4514 * top.c (init_main): Update.
4515 * symfile.c (_initialize_symfile): Update.
4516 * source.c (_initialize_source): Update.
4517 * somsolib.c (_initialize_som_solib): Update.
4518 * solib.c (_initialize_solib): Update.
4519 * solib-frv.c (_initialize_frv_solib): Update.
4520 * serial.c (_initialize_serial): Update.
4521 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
4522 * remote.c (_initialize_remote, _initialize_remote): Update.
4523 * remote-vx.c (_initialize_vx): Update.
4524 * remote-utils.c (_initialize_sr_support): Update.
4525 * remote-sds.c (_initialize_remote_sds): Update.
4526 * remote-mips.c (_initialize_remote_mips): Update.
4527 * remote-e7000.c (_initialize_remote_e7000): Update.
4528 * proc-api.c (_initialize_proc_api): Update.
4529 * printcmd.c: Update.
4530 * parse.c (_initialize_parse): Update.
4531 * pa64solib.c (_initialize_pa64_solib): Update.
4532 * p-valprint.c (_initialize_pascal_valprint): Update.
4533 * monitor.c (_initialize_remote_monitors): Update.
4534 * mips-tdep.c (_initialize_mips_tdep): Update.
4535 * mcore-tdep.c (_initialize_mcore_tdep): Update.
4536 * maint.c (_initialize_maint_cmds): Update.
4537 * lin-lwp.c (_initialize_lin_lwp): Update.
4538 * language.c (_initialize_language): Update.
4539 * kod.c (_initialize_kod): Update.
4540 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
4541 * i386-tdep.c (_initialize_i386_tdep): Update.
4542 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
4543 * gdbarch.sh: Update.
4544 * gdbarch.c: Re-generate.
4545 * gdb-events.sh: Update.
4546 * gdb-events.c: Re-generate.
4547 * frame.c (_initialize_frame): Update.
4548 * exec.c: Update.
4549 * demangle.c (_initialize_demangler): Update.
4550 * dcache.c (_initialize_dcache): Update.
4551 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
4552 * cp-valprint.c (_initialize_cp_valprint): Update.
4553 * corefile.c (_initialize_core): Update.
4554 * command.h: Update.
4555 * cli/cli-decode.h: Update.
4556 * cli/cli-cmds.c (init_cli_cmds): Update.
4557 * charset.c (_initialize_charset): Update.
4558 * breakpoint.c (_initialize_breakpoint): Update.
4559 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
4560 * alpha-tdep.c (_initialize_alpha_tdep): Update.
4561 * aix-thread.c (_initialize_aix_thread): Update.
4562
4563 2004-07-24 Mark Kettenis <kettenis@gnu.org>
4564
4565 Partial fix for PR backtrace/1718.
4566 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
4567 that GCC migrates into the prolugue. Don't handle any
4568 instructions that clobber %ebx.
4569
4570 2004-07-23 Andrew Cagney <cagney@gnu.org>
4571
4572 Use regcache_raw_collect instead of regcache_collect.
4573 * regcache.h (regcache_collect): Delete declaration.
4574 * regcache.c (regcache_colect): Delete function.
4575 * win32-nat.c (do_child_store_inferior_registers): Update.
4576 * sol-thread.c (sol_thread_store_registers): Update.
4577 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
4578 * rs6000-nat.c (store_register): Update.
4579 * remote.c (store_register_using_P, remote_store_registers): Update.
4580 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
4581 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
4582 (fill_vrregset, store_spe_registers, fill_gregset)
4583 (fill_gregset): Update.
4584 * nto-procfs.c (procfs_store_registers): Update.
4585 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
4586 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
4587 * m68klinux-nat.c (store_register, fill_gregset): Update.
4588 * m68k-tdep.c (fill_gregset): Update.
4589 * infptrace.c (store_register): Update.
4590 * i386-nto-tdep.c (i386nto_regset_fill): Update.
4591 * i386-linux-nat.c (store_register, fill_gregset): Update.
4592 * hppa-linux-nat.c (fill_gregset): Update.
4593 * go32-nat.c (store_register): Update.
4594 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
4595 (store_fp_regs): Update.
4596 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
4597 (store_nwfpe_extended, store_fpregister, store_fpregs)
4598 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
4599 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
4600 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
4601 (store_regs_user_thread, store_regs_kernel_thread): Update.
4602
4603 2004-07-24 Mark Kettenis <kettenis@gnu.org>
4604
4605 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
4606 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
4607 encoding.
4608 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
4609 member of `struct comp_unit'.
4610
4611 2004-07-23 Andrew Cagney <cagney@gnu.org>
4612
4613 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
4614 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
4615
4616 2004-07-23 Martin Hunt <hunt@redhat.com>
4617 Kevin Buettner <kevinb@redhat.com>
4618
4619 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
4620 alignment was being added to the offset instead of multiplied.
4621
4622 2004-07-23 Mark Kettenis <kettenis@gnu.org>
4623
4624 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
4625 changed signal trampoline in OpenBSD 3.5-current.
4626
4627 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
4628 <machine/pcb.h> and "bsd-kvm.h".
4629 (sparc64nbsd_supply_pcb): New function.
4630 (_initialize_sparc64nbsd_nat): Renamed from
4631 _initialize_sparcnbsd_nat. Enable libkvm interface.
4632 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
4633 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
4634 (LOADLIBES): New variable.
4635
4636 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
4637
4638 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
4639
4640 2004-07-21 Andrew Cagney <cagney@gnu.org>
4641
4642 Use regcache_raw_supply instead of supply_register.
4643 * regcache.h (supply_register): Delete declaration.
4644 * regcache.c (supply_register): Delete function.
4645 * wince.c (do_child_fetch_inferior_registers): Update.
4646 * win32-nat.c (do_child_fetch_inferior_registers)
4647 (fetch_elf_core_registers): Update.
4648 * v850ice.c (v850ice_fetch_registers): Update.
4649 * thread-db.c (thread_db_store_registers): Update.
4650 * sol-thread.c (sol_thread_store_registers): Update.
4651 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
4652 * rs6000-nat.c (fetch_register): Update.
4653 * rom68k-rom.c (rom68k_supply_one_register): Update.
4654 * remote.c (remote_wait, remote_async_wait): Update.
4655 * remote-st.c (get_hex_regs): Update.
4656 * remote-sim.c (gdbsim_fetch_register): Update.
4657 * remote-sds.c (sds_fetch_registers): Update.
4658 * remote-rdp.c (remote_rdp_fetch_register): Update.
4659 * remote-rdi.c (arm_rdi_fetch_registers): Update.
4660 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
4661 * remote-m32r-sdi.c (m32r_fetch_register): Update.
4662 * remote-hms.c (init_hms_cmds): Update.
4663 * remote-est.c (init_est_cmds): Update.
4664 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
4665 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
4666 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
4667 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
4668 (fetch_register, supply_vrregset, supply_vrregset)
4669 (fetch_spe_registers): Update.
4670 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
4671 * monitor.c (monitor_supply_register): Update.
4672 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
4673 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
4674 (mipsnbsd_supply_fpreg): Update.
4675 * mips-nat.c (fetch_inferior_registers)
4676 (fetch_core_registers): Update.
4677 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
4678 (supply_fpregset, mips64_supply_gregset)
4679 (mips64_supply_fpregset): Update.
4680 * m68klinux-nat.c (fetch_register, supply_gregset)
4681 (supply_fpregset): Update.
4682 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
4683 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
4684 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
4685 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
4686 * infptrace.c (fetch_register): Update.
4687 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
4688 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
4689 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
4690 (gnu_fetch_registers, gnu_store_registers): Update.
4691 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
4692 * i386-linux-nat.c (fetch_register, supply_gregset)
4693 (dummy_sse_values): Update.
4694 * hpux-thread.c (hpux_thread_fetch_registers): Update.
4695 * hppah-nat.c (fetch_register): Update.
4696 * hppa-linux-nat.c (fetch_register, supply_gregset)
4697 (supply_fpregset): Update.
4698 * go32-nat.c (fetch_register): Update.
4699 * dve3900-rom.c (fetch_bitmapped_register)
4700 (_initialize_r3900_rom): Update.
4701 * cris-tdep.c (supply_gregset): Update.
4702 * abug-rom.c (init_abug_cmds): Update.
4703 * core-aout.c (fetch_core_registers): Update.
4704 * armnbsd-nat.c (supply_gregset, supply_fparegset)
4705 (fetch_register, fetch_fp_register): Update.
4706 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
4707 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
4708 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
4709 * alphanbsd-tdep.c (fetch_core_registers): Update.
4710 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
4711 * alpha-nat.c (fetch_osf_core_registers)
4712 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
4713 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
4714 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
4715
4716 2004-07-21 Andrew Cagney <cagney@gnu.org>
4717
4718 * PROBLEMS: Mention breakpoints/1702.
4719 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
4720 that is known to work.
4721
4722 2004-07-21 Andrew Cagney <cagney@gnu.org>
4723
4724 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
4725 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
4726 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
4727 (handle_inferior_event): Wrap call to deprecated
4728 IGNORE_HELPER_CALL in #ifdef.
4729 * config/mips/tm-nbsd.h: Update.
4730
4731 2004-07-20 Jim Blandy <jimb@redhat.com>
4732
4733 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
4734 bfd_mach_ppc has no segment registers.
4735
4736 Include PowerPC SPR numbers for special-purpose registers.
4737 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
4738 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
4739 new member in initializer.
4740 (S, S4, SN4, S64): New macros for defining special-purpose
4741 registers.
4742 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
4743 registers_403, registers_403GC, registers_505, registers_860,
4744 registers_601, registers_602, registers_603, registers_604,
4745 registers_750, registers_e500): Use them.
4746
4747 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
4748 replace references with expression used to initialize variable.
4749
4750 2004-07-20 Andrew Cagney <cagney@gnu.org>
4751
4752 * breakpoint.c (deprecated_read_memory_nobpt): Rename
4753 read_memory_nobpt.
4754 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
4755 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
4756 (s390_sigtramp_frame_sniffer): Update.
4757 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
4758 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
4759 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
4760 (mips32_fetch_instruction): Update.
4761 * mcore-tdep.c (get_insn): Update.
4762 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
4763 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
4764 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
4765 * i386-linux-tdep.c (i386_linux_sigtramp_start)
4766 (i386_linux_rt_sigtramp_start): Update.
4767 * i386-linux-nat.c (child_resume): Update.
4768 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
4769 * hppa-linux-tdep.c (insns_match_pattern): Update.
4770 * gdbcore.h: Update.
4771 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
4772 * frame.c (safe_frame_unwind_memory): Update.
4773 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
4774 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
4775 * alpha-tdep.c (alpha_read_insn): Update.
4776
4777 2004-07-20 Andrew Cagney <cagney@gnu.org>
4778
4779 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
4780 containing both bytes and mask. Add "frame_type".
4781 * tramp-frame.c (tramp_frame_start): Update.
4782 (tramp_frame_prepend_unwinder): Update.
4783 * mips-linux-tdep.c (mips_linux_o32_sigframe)
4784 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
4785 (mips_linux_n64_rt_sigframe): Update. Make "static const".
4786 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
4787
4788 2004-07-19 Eli Zaretskii <eliz@gnu.org>
4789
4790 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
4791 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
4792 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
4793 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
4794
4795 2004-07-17 Andrew Cagney <cagney@gnu.org>
4796
4797 * NEWS, PROBLEMS: Update for 6.2.
4798
4799 * README: Update to 6.2.
4800
4801 * utils.c (xvasprintf): Call xstrvprintf.
4802
4803 * parse.c: Update copyright.
4804 (null_post_parser): Eliminate ARGSUSED.
4805
4806 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
4807 * tui/tui-win.c (tui_get_cmd_list): Ditto.
4808 * symfile-mem.c (_initialize_symfile_mem): Ditto.
4809
4810 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
4811 * ppc-linux-nat.c: Use "Linux kernel".
4812 * hppa-linux-tdep.c: Use GNU/Linux.
4813 * hppa-linux-nat.c: Use GNU/Linux.
4814 * dwarfread.c: Add [sic] to use of Linux.
4815
4816 * hppa-linux-nat.c: Do not include <string.h>.
4817 (supply_fpregset): Remove "register" attribute.
4818
4819 * solib-frv.c (fetch_loadmap): Use xfree, not free.
4820
4821 2004-07-17 Mark Kettenis <kettenis@gnu.org>
4822
4823 * configure.in: Define _MSE_INT_H on Solaris 9 too.
4824 * configure, config.in: Regenerated.
4825
4826 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
4827 "bsd-kvm.h".
4828 (vaxbsd_supply_pcb): New function.
4829 (_initialize_vaxbsd_nat): New prototype and function.
4830 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
4831 solib-sunos.o.
4832 (LOADLIBES): New variable.
4833 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
4834 (LOADLIBES): New variable.
4835 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
4836 (LOADLIBES): New variable.
4837 * Makefile.in (vaxbsd-nat.o): Update dependencies.
4838
4839 2004-07-16 Andrew Cagney <cagney@gnu.org>
4840
4841 * defs.h (event_loop_p): Replace variable declaration with macro,
4842 always 1.
4843 * main.c (captured_main): Delete options "-async" and "-noasync".
4844 (event_loop_p): Delete variable.
4845 * NEWS: Mention that "-async" and "-noasync" were removed.
4846
4847 2004-07-16 Andrew Cagney <cagney@gnu.org>
4848
4849 * remote-m32r-sdi.c: Re-indent.
4850
4851 2004-07-16 Jim Blandy <jimb@redhat.com>
4852
4853 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
4854 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
4855 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
4856 missing MPC823 SPRs.
4857 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
4858 incorrect. (This was corrected in GDB's register name tables on
4859 2004-07-14.)
4860
4861 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
4862 should be "esasrr" ("ESA Save and Restore Register").
4863
4864 2004-07-16 Andrew Cagney <cagney@gnu.org>
4865
4866 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
4867 calls, no longer applicable. Update comments and rename parameter
4868 "step_frame" to "return_frame".
4869
4870 2004-07-16 Andrew Cagney <cagney@gnu.org>
4871
4872 * frame.c (fprint_field): New function.
4873 (fprint_frame_id): Use fprint_field.
4874
4875 2004-07-15 Joel Brobecker <brobecker@gnat.com>
4876
4877 * ada-lang.c (ada_language_defn): Remove commented out code.
4878
4879 2004-07-15 Jim Blandy <jimb@redhat.com>
4880
4881 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
4882 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
4883
4884 2004-07-14 Jim Blandy <jimb@redhat.com>
4885
4886 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
4887
4888 * ppc-tdep.h (ppc_num_vrs): New enum constant.
4889
4890 * ppc-tdep.h (ppc_num_srs): New enum constant.
4891
4892 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
4893 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
4894 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
4895 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
4896 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
4897 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
4898 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
4899 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
4900 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
4901 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
4902 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
4903 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
4904 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
4905 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
4906 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
4907 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
4908 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
4909 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
4910 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
4911 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
4912 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
4913 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
4914 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
4915 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
4916 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
4917 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
4918 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
4919 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
4920 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
4921 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
4922 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
4923 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
4924 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
4925 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
4926 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
4927 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
4928 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
4929 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
4930 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
4931 special-purpose register numbers.
4932
4933 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
4934 manual mentions 'md_twb', but many mention 'm_twb', and at that
4935 point in the register list.)
4936
4937 2004-07-14 Andrew Cagney <cagney@gnu.org>
4938
4939 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
4940 instead of "internal-error".
4941
4942 2004-07-10 Joel Brobecker <brobecker@gnat.com>
4943
4944 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
4945 that was inserted inside a comment.
4946
4947 2004-07-10 Randolph Chung <tausq@debian.org>
4948
4949 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
4950 function.
4951 (hppa_hpux_push_dummy_code): New function.
4952 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
4953 Set find_global_pointer method.
4954
4955 2004-07-10 Mark Kettenis <kettenis@gnu.org>
4956
4957 * NEWS: Mention BSD libkvm interface.
4958
4959 2004-07-10 Michael Snyder <msnyder@redhat.com>
4960
4961 * symfile.c (generic_load): Comment typo.
4962 * stack.c (get_selected_block): Ditto.
4963 * regcache.c (regcache_cooked_read): Ditto.
4964 * monitor.c (monitor_debug): Ditto.
4965 * mips-tdep.c (mips_read_pc): Ditto.
4966 * i386-linux-nat.c (ps_get_thread_area): Ditto.
4967 * gdb_mbuild.sh: Ditto.
4968 * gdbarch.sh: Ditto.
4969 * gdbarch.h: Ditto.
4970
4971 2004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
4972
4973 * ada-tasks.c: Remove file.
4974
4975 Remove ARI problems:
4976
4977 * ada-exp.y (write_var_from_sym): Reformat to put operator at
4978 beginning of line.
4979
4980 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
4981 Add comment.
4982 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
4983 (MIN_OF_SIZE): Rename min_of_size. Add comment.
4984 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
4985 (UMIN_OF_SIZE): Remove.
4986 (max_of_type): New function to replace orphan macro in gdbtypes.h
4987 (min_of_type): Ditto.
4988 (discrete_type_high_bound): Use max_of_type.
4989 (discrete_type_low_bound): Use min_of_type.
4990 (possible_user_operator_p): Move operator to beginning of line.
4991 (ada_is_variant_part): Ditto.
4992 (ensure_lval): Rewrite to avoid deprecated operations.
4993 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
4994 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
4995 (ada_enum_name): Remove assignments in 'if' statements.
4996 (build_ada_types): Add gdbarch parameter.
4997 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
4998 with gdbarch_data_register_post_init.
4999 Use add_setshow_uinteger_cmd rather than add_set_cmd and
5000 add_show_from_set.
5001
5002 * ada-valprint.c (inspect_it): Remove declaration.
5003 (repeat_count_threshold): Remove declaration.
5004 (ada_print_floating): Remove assignments in 'if' statements.
5005 (print_str): Move operator to beginning of line.
5006
5007 2004-07-08 Jim Blandy <jimb@redhat.com>
5008
5009 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
5010
5011 2004-07-08 Bob Rossi <bob@brasko.net>
5012
5013 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
5014
5015 2004-07-06 Jeff Johnston <jjohnstn@redhat.com>
5016
5017 * language.h (struct_language_defn): Add new function pointer:
5018 la_class_name_from_physname. Also add new prototype for
5019 language_class_name_from_physname.
5020 * language.c (language_class_name_from_physname): New function.
5021 (unk_lang_class_name): Ditto.
5022 (unknown_language_defn, auto_language_defn): Change
5023 to add unk_lang_class_name function pointer for
5024 la_class_name_from_physname.
5025 (local_language_defn): Ditto.
5026 * dwarf2read.c (guess_structure_name): Change to call
5027 language_class_name_from_physname.
5028 (determine_class_name): Ditto.
5029 * cp-support.c (class_name_from_physname): Renamed.
5030 (cp_class_name_from_physname): New name of function.
5031 * cp-support.h: Ditto.
5032 * c-lang.c (c_language_defn): Change to add NULL
5033 for class_name_from_physname function pointer.
5034 (cplus_language_defn): Change to add cp_class_name_from_physname.
5035 * jv-lang.c (java_class_name_physname): New function.
5036 (java_find_last_component): New static routine.
5037 (java_language_defn): Add java_class_name_from_physname pointer.
5038 * ada-lang.c (ada_language_defn): Change to add NULL
5039 for class_name_from_physname function pointer.
5040 * f-lang.c (f_language_defn): Ditto.
5041 * m2-lang.c (m2_language_defn): Ditto.
5042 * objc-lang.c (objc_language_defn): Ditto.
5043 * p-lang.c (pascal_language_defn): Ditto.
5044 * scm-lang.c (scm_language_defn): Ditto.
5045
5046 2004-07-06 Andrew Cagney <cagney@gnu.org>
5047
5048 Patch from Bart Robinson.
5049 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
5050 (O_LARGEFILE): Define to 0, if not defined.
5051
5052 2004-07-03 Mark Kettenis <kettenis@gnu.org>
5053
5054 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
5055 <machine/pcb.h> and "bsd-kvm.h".
5056 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
5057 (m68kbsd_supply_pcb): New function.
5058 (_initialize_m68kbsd_nat): New prototype and function.
5059 * Makefile.in (m68kbsd-nat.o): Update dependencies.
5060 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5061 (LOADLIBES): New variable.
5062 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
5063 (LOADLIBES): New variable.
5064
5065 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
5066
5067 2004-07-03 Mark Kettenis <kettenis@gnu.org>
5068
5069 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
5070 <sys/proc.h>.
5071 (bsd_kvm_cmdlist): New variable.
5072 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
5073 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
5074 command and "kvm proc" command.
5075 * Makefile.in (bsd-kvm.o): Update dependencies.
5076
5077 2004-07-02 Mark Kettenis <kettenis@gnu.org>
5078
5079 * osabi.c: Update copyright year.
5080 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
5081 notes if EI_OSABI is set to ELFOSABI_HPUX.
5082
5083 2004-07-01 Michael Snyder <msnyder@redhat.com>
5084
5085 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
5086 that seems to have gotten whacked out of line.
5087
5088 2004-07-01 Mark Kettenis <kettenis@gnu.org>
5089
5090 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
5091 code.
5092
5093 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
5094
5095 * ada-lang.c (decode_packed_array): Minor change to comment.
5096 (ada_value_slice_ptr): New function.
5097 (ada_value_slice): New function.
5098 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
5099 test. Don't know why it is there.
5100 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
5101 to avoid dereferencing huge arrays from which one is slicing.
5102 (empty_array): Correct to return an array rather than
5103 a subrange value.
5104 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
5105 on empty arrays (let'em use 'FIRST instead).
5106
5107 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
5108
5109 Address complaints from gdb_ari.sh:
5110
5111 * ada-exp.y: Include gdb_string.h rather than string.h.
5112 (convert_char_literal): Reformat declaration.
5113 * ada-lang.h: Include opaque struct declaration for struct frame_info.
5114 * ada-lex.l: Change use of free to xfree (the macro would do so
5115 anyway, but this is harmless).
5116 Include gdb_string.h rather than string.h.
5117 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
5118
5119 * ada-lang.c (parse): Remove K&Rism in parameter list.
5120 (is_name_suffix): Correct Linux => GNU/Linux in comment.
5121
5122 2004-06-30 Mark Kettenis <kettenis@gnu.org>
5123
5124 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
5125 dead code.
5126
5127 2004-06-30 Mark Kettenis <kettenis@gnu.org>
5128
5129 * alphabsd-nat.c: Update copyright year.
5130 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
5131
5132 2004-06-29 Joel Brobecker <brobecker@gnat.com>
5133
5134 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
5135 (i386_cygwin_in_solib_call_trampoline): New function.
5136 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
5137 and skip_trampoline_code gdbarch methods.
5138
5139 2004-06-29 Jim Blandy <jimb@redhat.com>
5140
5141 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
5142 name actually used in the dependency lists.
5143
5144 2004-06-29 Randolph Chung <tausq@debian.org>
5145
5146 * NEWS (New native configurations): Mention GNU/Linux/hppa.
5147
5148 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
5149
5150 * win32-nat.c (child_pid_to_exec_file): New function.
5151 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
5152 functionality.
5153
5154 2004-06-28 Andrew Cagney <cagney@gnu.org>
5155
5156 * defs.h (xstrvprintf): Declare.
5157 * utils.c (xstrvprintf): New function.
5158 (internal_vproblem, xstrprintf, xasprintf)
5159 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
5160 * serial.c (serial_printf): Ditto.
5161 * complaints.c (vcomplaint): Ditto.
5162
5163 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
5164
5165 * infcmd.c (attach_command): Move call to target_terminal_inferior
5166 behind loading symbol table.
5167
5168 2004-06-28 Andrew Cagney <cagney@gnu.org>
5169
5170 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
5171 change - add back extern deprecated_ui_loop_hook declaration.
5172
5173 2004-06-28 Andrew Cagney <cagney@gnu.org>
5174
5175 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
5176 xstrprintf.
5177 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
5178 (c_value_of_variable): Ditto.
5179 * utils.c (internal_vproblem): Ditto.
5180 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
5181 * remote.c (add_packet_config_cmd): Ditto.
5182 * remote-rdp.c (rdp_set_command_line): Ditto.
5183 * regcache.c (regcache_dump): Ditto.
5184 * frv-tdep.c (new_variant, new_variant): Ditto.
5185 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
5186 (fbsd_find_memory_regions): Ditto.
5187 * breakpoint.c (create_thread_event_breakpoint)
5188 (create_breakpoints): Ditto.
5189 * aix-thread.c (aix_thread_pid_to_str): Ditto.
5190 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
5191
5192 2004-06-28 Joel Brobecker <brobecker@gnat.com>
5193
5194 * ada-lang.c: Re-indent file, with some massaging to help indent
5195 a bit when the result is otherwise really too ugly.
5196
5197 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
5198
5199 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
5200 code_addr_p and special_addr_p to 'unsigned int'.
5201
5202 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5203
5204 * i386v4-nat.c: Update copyright year and tweak comment.
5205 (regmap): Remove trailing comma.
5206 (supply_gregset): Rename local variable i to regnum. Call
5207 regcache_raw_supply instead of supply_register.
5208 (fill_gregset): Rename argument regno to regnum. Call
5209 regcache_raw_collect instead of regcache_collect.
5210
5211 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
5212
5213 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
5214 and special_addr_p.
5215 (frame_id_build, frame_id_build_special): Update comments.
5216 (frame_id_build_wild): New prototype.
5217 * frame.c (frame_id_build, frame_id_build_special): Fill in new
5218 struct frame_id fields.
5219 (frame_id_build_wild): New function.
5220 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
5221
5222 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5223
5224 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
5225 hppabsd-tdep.c.
5226
5227 2004-06-27 Joel Brobecker <brobecker@gnat.com>
5228
5229 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
5230
5231 2004-06-27 Joel Brobecker <brobecker@gnat.com>
5232
5233 * ada-lang.c: Re-indent file.
5234
5235 2004-06-27 Joel Brobecker <brobecker@gnat.com>
5236
5237 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
5238 (no_symtab_msg): Likewise.
5239
5240 2004-06-27 Andreas Schwab <schwab@suse.de>
5241
5242 * source.c: Fix whitespace.
5243
5244 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5245
5246 * configure.in: Include <sys/param.h> for td_pcb test.
5247 * configure: Regenerated.
5248
5249 * i386nbsd-nat.c: New file.
5250 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
5251 i386obsd-nat.c and i386obsd-tdep.c.
5252 (i386nbsd-nat.o): New dependency.
5253 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
5254 bsd-kvm.o.
5255 (LOADLIBES): New variable.
5256 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
5257 bsd-kvm.o.
5258 (LOADLIBES): New variable.
5259
5260 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
5261 (LOADLIBES): New variable.
5262
5263 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
5264 fetching from BSD_KVM_PADDR. Correctly lookup address for
5265 "_thread0".
5266
5267 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
5268 "bsd-kvm.h".
5269 (amd64fbsd_supply_pcb): New funcion.
5270 (_initialize_amd64fbsd_nat): Enable libkvm interface.
5271
5272 2004-06-27 <david@streamline-computing.com>
5273
5274 Partial fix for PR cli/1056.
5275 * valarith.c: Check for zero in division and remainder
5276 evaluation.
5277
5278 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5279
5280 * i387-tdep.c: Remove excessive whitespace.
5281
5282 2004-06-26 Andrew Cagney <cagney@gnu.org>
5283
5284 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
5285 * gdb-events.h, gdb-events.c: Re-generate.
5286 * tui/tui-hooks.c (tui_install_hooks): Update.
5287 (tui_remove_hooks): Update.
5288 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
5289
5290 2004-06-26 Mark Kettenis <kettenis@gnu.org>
5291
5292 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
5293 (gregset_t, fpregset_t): Remove typedefs.
5294 (REG_OFFSET): Rename argument.
5295 (amd64bsd_r_reg_offset): Rename from reg_offset.
5296 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
5297 Remove functions.
5298 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
5299 of reg_offset.
5300 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
5301
5302 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
5303
5304 * vax-tdep.c: Tweak comment.
5305
5306 Add OpenBSD/hppa support.
5307 * NEWS (New native configurations): Mention OpenBSD/hppa.
5308 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
5309 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
5310 files.
5311 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
5312 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
5313 * configure.host: Add hppa*-*-openbsd*.
5314 * configure.tgt: Add hppa*-*-openbsd*.
5315
5316 2004-06-25 Andrew Cagney <cagney@gnu.org>
5317
5318 * defs.h (deprecated_ui_loop_hook): Deprecated.
5319 * wince.c (child_wait): Update.
5320 * win32-nat.c (child_wait): Update.
5321 * v850ice.c (v850ice_wait): Update.
5322 * top.c (deprecated_ui_loop_hook): Update.
5323 * serial.h: Update.
5324 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
5325 (do_unix_readchar): Update.
5326 * ser-tcp.c (net_open): Update.
5327 * remote-sim.c (gdb_os_poll_quit): Update.
5328 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
5329
5330 2004-06-24 Andrew Cagney <cagney@gnu.org>
5331
5332 * defs.h (deprecated_pre_add_symbol_hook)
5333 (deprecated_post_add_symbol_hook): Deprecated.
5334 * symfile.c (symbol_file_add_with_addrs_or_offsets)
5335 (symbol_file_add_with_addrs_or_offsets): Update references.
5336
5337 2004-06-24 Andrew Cagney <cagney@gnu.org>
5338
5339 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
5340 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
5341 * wince.c (ui_loop_hook): Delete extern declaration.
5342 * win32-nat.c (ui_loop_hook): Delete extern declaration..
5343 * v850ice.c (ui_loop_hook): Delete extern declaration..
5344 * ser-unix.c (ui_loop_hook): Delete extern declaration..
5345 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
5346 * remote-sim.c (ui_loop_hook): Delete extern declaration..
5347 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
5348 ui_loop_hook declaration.
5349
5350 2004-06-24 Andrew Cagney <cagney@gnu.org>
5351
5352 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
5353 entry_func_highpc fields.
5354 * objfiles.c (init_entry_point_info): Do not clear
5355 entry_func_lowpc and entry_func_highpc.
5356 (objfile_relocate): Do not relocate entry_func_lowpc and
5357 entry_func_highpc.
5358 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
5359 entry_func_highpc.
5360 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
5361 entry_func_highpc.
5362 * blockframe.c (legacy_frame_chain_valid): Replace tests against
5363 entry_func_lowpc and entry_func_highpc with call to
5364 inside_entry_func.
5365
5366 2004-06-24 Mark Kettenis <kettenis@gnu.org>
5367
5368 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
5369 quad-precision floating point arguments in registers.
5370
5371 2004-06-24 Mark Kettenis <kettenis@gnu.org>
5372
5373 From Michael Mueller <m.mueller99@kay-mueller.de>:
5374 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
5375 account.
5376
5377 2004-06-22 Jeff Johnston <jjohnstn@redhat.com>
5378
5379 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
5380 to -1.
5381 * breakpoint.c (bpstat_stop_status): Move check for ignoring
5382 untriggered watchpoints to a separate if clause. Update function
5383 comment regarding STOPPED_BY_WATCHPOINT argument.
5384
5385 2004-06-22 Jim Blandy <jimb@redhat.com>
5386
5387 * gdbarch.sh: Doc fix.
5388
5389 2004-06-21 Martin Hunt <hunt@redhat.com>
5390 Kevin Buettner <kevinb@redhat.com>
5391
5392 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
5393 * mips-tdep.h (MIPS_SP_REGNUM): Define.
5394 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
5395 to set_gdbarch_sp_regnum(). Use cooked register number.
5396 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
5397
5398 2004-06-21 Andrew Cagney <cagney@gnu.org>
5399
5400 * gdbarch.sh: When the macro field is empty, do not generate a
5401 macro definition. When the macro field is "=", generate the macro
5402 name from the upper-case function name.
5403 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
5404 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
5405 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
5406 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
5407 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
5408 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
5409 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
5410 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
5411 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
5412 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
5413 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
5414 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
5415 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
5416 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
5417 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
5418 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
5419 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
5420 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
5421 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
5422 (DEPRECATED_USE_STRUCT_CONVENTION)
5423 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5424 (DEPRECATED_FRAME_INIT_SAVED_REGS)
5425 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
5426 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
5427 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
5428 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
5429 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
5430 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
5431 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
5432 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
5433 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
5434 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
5435 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
5436 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
5437 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
5438 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
5439 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
5440 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
5441
5442 2004-06-21 Andrew Cagney <cagney@gnu.org>
5443
5444 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
5445 macro name, and the function rather than macro value. Only wrap
5446 macro print statements in #ifdef. Move format logic to where it
5447 is needed.
5448 * gdbarch.c: Re-generate.
5449
5450 * gdbarch.sh (read): Delete "print_p" and "description", add
5451 "garbage_at_eol". Check for non-empty garbage at end-of-line.
5452 Delete references to print_p.
5453 (TARGET_ARCHITECTURE): Delete print predicate.
5454 * gdbarch.c: Re-generate.
5455
5456 * gdbarch.sh: Check that multi-arch methods do not provide a
5457 macro.
5458 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
5459 (print_registers_info, print_float_info, print_vector_info)
5460 (adjust_breakpoint_address, remote_translate_xfer_address)
5461 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
5462 (address_class_type_flags_to_name, unwind_sp): Remove the macro
5463 name from the multi-arch definition.
5464
5465 2004-06-20 Andrew Cagney <cagney@gnu.org>
5466
5467 * gdbarch.sh: Sort by the function, instead of macro name.
5468 * gdbarch.c: Re-generate.
5469
5470 2004-06-20 Andrew Cagney <cagney@gnu.org>
5471
5472 * gdbarch.sh: Use the function, instead of macro name in
5473 errors and the log file.
5474 (return_value): Remove stray ":" in spec.
5475
5476 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
5477 * gdbarch.h, gdbarch.c: Re-generate.
5478 * Makefile.in (arch-utils.o): Update dependencies.
5479 * values.c (using_struct_return): Move code calling
5480 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
5481 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
5482 to legacy_return_value, simplify.
5483 * infcmd.c (print_return_value): Move code calling
5484 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
5485 to legacy_return_value, simplify.
5486 * infcall.c (call_function_by_hand): Move code calling
5487 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
5488 * arch-utils.c: Update copyright. Include "gdbcore.h".
5489 (legacy_return_value): New function.
5490 * arch-utils.h: Update copyright.
5491 (legacy_return_value): Declare.
5492
5493 2004-06-20 Andrew Cagney <cagney@gnu.org>
5494
5495 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
5496 * gdbarch.h, gdbarch.c: Re-generate.
5497 * values.c (using_struct_return): Update call.
5498 * mcore-tdep.c: Update comment.
5499 * infcall.c (call_function_by_hand): Update comment.
5500 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5501 * arch-utils.h (always_use_struct_convention): Update.
5502 * v850-tdep.c (v850_gdbarch_init): Update.
5503 * sh64-tdep.c (sh64_gdbarch_init): Update.
5504 * sh-tdep.c (sh_gdbarch_init): Update.
5505 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5506 * mips-tdep.c (mips_gdbarch_init): Update.
5507 * mcore-tdep.c (mcore_gdbarch_init): Update.
5508 * m32r-tdep.c (m32r_gdbarch_init): Update.
5509 * ia64-tdep.c (ia64_gdbarch_init): Update.
5510 * h8300-tdep.c (h8300_gdbarch_init): Update.
5511 * frv-tdep.c (frv_gdbarch_init): Update.
5512 * cris-tdep.c (cris_gdbarch_init): Update.
5513 * arm-tdep.c (arm_gdbarch_init): Update.
5514 * alpha-tdep.c (alpha_gdbarch_init): Update.
5515
5516 2004-06-18 Michael Chastain <mec.gnu@mindspring.com>
5517
5518 * PROBLEMS: Add more specific information, and a work-around,
5519 for PR gdb/1458.
5520
5521 2004-06-18 Andrew Cagney <cagney@gnu.org>
5522
5523 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
5524 * gdbarch.h, gdbarch.c: Re-generate.
5525 * ada-lang.c (ada_finish_decode_line_1): Update.
5526 * infrun.c (handle_inferior_event): Update.
5527 * infcall.c (find_function_addr): Update.
5528 * linespec.c (minsym_found): Update.
5529 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
5530 Update.
5531 * blockframe.c (legacy_frameless_look_for_prologue): Update.
5532 * cli/cli-cmds.c (disassemble_command): Update.
5533 * vax-tdep.c (vax_gdbarch_init): Update.
5534
5535 2004-06-18 Mark Kettenis <kettenis@gnu.org>
5536
5537 * i386-tdep.c (i386_collect_fpregset): Fix comment.
5538
5539 2004-06-17 Andrew Cagney <cagney@gnu.org>
5540
5541 GDB 6.1.1 released from the GDB 6.1 branch.
5542 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
5543 * PROBLEMS: Ditto.
5544
5545 2004-06-16 Daniel Jacobowitz <dan@debian.org>
5546
5547 PR gdb/1658
5548 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
5549 operation as a uleb128. Found by Michael Coulter.
5550
5551 2004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
5552
5553 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
5554 make it non-static.
5555 * ada-lang.h (task_control_block): declaration moved from ada-task.c
5556 to ada-lang.h; this is needed to be able to implement the kill command
5557 in multi-task mode.
5558 (task_ptid): Ditto.
5559 (task_entry): Ditto.
5560 (task_list): Ditto.
5561 (ada_build_task_list): Ditto.
5562
5563 * ada-lang.c: Conditionalize routines and data structures related
5564 to breakpoints, exceptions, completion, and symbol caching on
5565 GNAT_GDB, since these are not yet used in the submitted public sources.
5566 (ada_main_name): Editorial: Move definition out of exception-related
5567 code.
5568
5569 2004-06-15 Andrew Cagney <cagney@gnu.org>
5570
5571 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
5572 deprecated_pc_in_call_dummy.
5573
5574 2004-06-15 Alan Modra <amodra@bigpond.net.au>
5575
5576 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
5577 bfd_get_section_size_before_reloc or _raw_size.
5578 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
5579 * dwarf2read.c (dwarf2_locate_sections): Likewise.
5580 (dwarf2_read_section): Likewise.
5581 * elfread.c (elf_locate_sections): Likewise.
5582 * gcore.c (derive_heap_segment): Likewise.
5583 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
5584 * remote-e7000.c (e7000_load): Likewise.
5585 * remote-m32r-sdi.c (m32r_load): Likewise.
5586 * remote-mips.c (mips_load_srec): Likewise.
5587 (pmon_load_fast): Likewise.
5588 * remote.c (compare_sections_command): Likewise.
5589 * symfile.c (add_section_size_callback): Likewise.
5590 (load_section_callback): Likewise.
5591 (pc_in_unmapped_range): Likewise.
5592 (pc_in_mapped_range): Likewise.
5593 (sections_overlap): Likewise.
5594 (list_overlays_command): Likewise.
5595 (simple_overlay_update_1): Likewise.
5596 (simple_overlay_update): Likewise.
5597 * tracepoint.c (remote_set_transparent_ranges): Likewise.
5598 * win32-nat.c (core_section_load_dll_symbols): Likewise.
5599
5600 2004-06-14 Randolph Chung <tausq@debian.org>
5601
5602 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
5603 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
5604 static.
5605 (hppa_hpux_inferior_created): New function.
5606 (hppa_hpux_init_abi): Register observer.
5607 * symfile.c (hp_cxx_exception_support_initialized)
5608 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
5609 (symbol_file_add_main_1, symbol_file_clear): Likewise.
5610
5611 2004-06-14 Randolph Chung <tausq@debian.org>
5612
5613 * MAINTAINERS (Write After Approval): Alphabetize my entry
5614 correctly.
5615
5616 2004-06-14 Andrew Cagney <cagney@gnu.org>
5617
5618 * MAINTAINERS (testsuite): List Michael Chastain as the lead
5619 testsuite maintainer.
5620
5621 2004-06-13 Andrew Cagney <cagney@gnu.org>
5622
5623 * infcmd.c (print_return_value): Fix logic, allow
5624 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
5625
5626 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
5627 defining any macros.
5628 * gdbarch.h: Re-generate.
5629
5630 * gdbarch.sh: Delete "level" attribute. Only check for a macro
5631 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
5632 * gdbarch.h: Re-generate.
5633
5634 * values.c (generic_use_struct_convention): Don't check gcc_p.
5635
5636 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
5637 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
5638 * gdbarch.h, gdbarch.c: Regenerate.
5639 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
5640 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
5641 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5642 deprecated_max_register_raw_size and
5643 deprecated_max_register_virtual_size.
5644 * v850-tdep.c (v850_gdbarch_init): Ditto.
5645 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
5646 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5647 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5648 * cris-tdep.c (cris_gdbarch_init): Ditto.
5649
5650 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
5651 * gdbarch.h, gdbarch.c: Re-generate.
5652 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
5653 (m68hc11_use_struct_convention): Delete function.
5654 (m68hc11_extract_struct_value_address): Delete function.
5655 (m68hc11_return_value): New function.
5656 (m68hc11_gdbarch_init): Instead of store_return_value,
5657 extract_return_value, return_value_on_stack,
5658 deprecated_extract_struct_value_address and use_struct_convention,
5659 set return_value.
5660 * values.c (using_struct_return): Do not call
5661 RETURN_VALUE_ON_STACK.
5662 * arch-utils.h (generic_return_value_on_stack_not): Delete
5663 declaration.
5664 * arch-utils.c (generic_return_value_on_stack_not): Delete
5665 function.
5666
5667 2004-06-12 Andrew Cagney <cagney@gnu.org>
5668
5669 * values.c (register_value_being_returned): Delete function.
5670 * infcmd.c (legacy_return_value): Delete function.
5671 * infcall.c (call_function_by_hand): Inline
5672 "register_value_being_returned", simplify.
5673 * values.c (using_struct_return): Update comment, refer to
5674 print_return_value instead of register_value_being_returned.
5675 * infcmd.c (print_return_value): Inline calls to
5676 register_value_being_returned and legacy_return_value. Simplify.
5677
5678 2004-06-11 Randolph Chung <tausq@debian.org>
5679
5680 * somread.c (som_symtab_read): Exclude gcc local symbols.
5681
5682 2004-06-11 Randolph Chung <tausq@debian.org>
5683
5684 * infrun.c (handle_inferior_event): Handle the case when a
5685 trampoline ends up in the runtime resolver, and if the trampoline
5686 has no name. Rearrange the code so that all the trampoline
5687 processing happens before other step-out-of-range handling.
5688
5689 2004-06-11 Martin Hunt <hunt@redhat.com>
5690
5691 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
5692 has no fpu.
5693
5694 2004-06-10 Andrew Cagney <cagney@gnu.org>
5695
5696 * blockframe.c (legacy_inside_entry_func): Delete.
5697 (legacy_frame_chain_valid): Inline call to
5698 legacy_inside_entry_func, simplify.
5699
5700 2004-06-10 Bob Rossi <bob@brasko.net>
5701
5702 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
5703 * dwarf2read.c (partial_die_info): Add dirname field.
5704 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
5705 (read_partial_die): Save away DW_AT_comp_dir.
5706 * defs.h (symtab_to_filename): Removed.
5707 * source.c (find_and_open_source): Added.
5708 (open_source_file): Just calls find_and_open_source.
5709 (symtab_to_filename): Removed.
5710 (symtab_to_fullname, psymtab_to_fullname): Added.
5711 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
5712 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
5713 symtab_to_filename.
5714 * symtab.h (partial_symtab): Add dirname field.
5715 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
5716 (mi_cmd_file_list_exec_source_file): Call new function
5717 symtab_to_fullname to find fullname.
5718 (mi_cmd_file_list_exec_source_files): Added.
5719 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
5720 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
5721
5722 2004-06-10 Andrew Cagney <cagney@gnu.org>
5723
5724 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
5725 to generic_use_struct_convention, the default value.
5726
5727 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
5728 of abort.
5729
5730 * ns32k-tdep.c (ns32k_push_arguments): New function.
5731 (ns32k_gdbarch_init): Set deprecated_push_arguments.
5732 * infcall.c (call_function_by_hand): Call error instead of
5733 legacy_push_arguments.
5734 * value.h (legacy_push_arguments): Delete declaration.
5735 * valops.c (legacy_push_arguments): Delete function.
5736 (value_push): Delete function.
5737
5738 2004-06-10 Brian Ford <ford@vss.fsi.com>
5739
5740 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
5741 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
5742 info.
5743 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
5744
5745 2004-06-10 Andrew Cagney <cagney@gnu.org>
5746
5747 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
5748 * gdbarch.h, gdbarch.c: Re-generate.
5749 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
5750 parameters.
5751 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
5752 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
5753 deprecated_pc_in_call_dummy instead of
5754 DEPRECATED_PC_IN_CALL_DUMMY.
5755 (arm_skip_prologue): Ditto.
5756 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
5757 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
5758 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
5759 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
5760 Ditto.
5761 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
5762 (sh64_init_extra_frame_info, sh64_get_saved_register)
5763 (sh64_pop_frame): Ditto.
5764 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
5765 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
5766 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
5767 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
5768 (h8300_pop_frame): Ditto.
5769 * blockframe.c (legacy_inside_entry_func)
5770 (legacy_frame_chain_valid): Ditto.
5771 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
5772 to deprecated_pc_in_call_dummy.
5773
5774 2004-06-09 Andrew Cagney <cagney@gnu.org>
5775
5776 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
5777 provide a default value.
5778 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
5779 * gdbarch.h, gdbarch.c: Re-generate.
5780 * arch-utils.c (generic_convert_register_p): Rename
5781 legacy_convert_register_p
5782 (legacy_register_to_value, legacy_value_to_register): Delete
5783 functions.
5784 * arch-utils.h (generic_convert_register_p): Rename
5785 legacy_convert_register_p.
5786 (legacy_register_to_value, legacy_value_to_register): Delete
5787 declarations.
5788
5789 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
5790 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
5791 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
5792 * gdbarch.h, gdbarch.c: Re-generate.
5793 * infcmd.c (default_print_registers_info): Simplify.
5794 * findvar.c (value_of_register): Simplify.
5795 * mi/mi-main.c (get_register): Simplify.
5796 * arch-utils.c (legacy_convert_register_p): Always return 0.
5797 (legacy_register_to_value, legacy_value_to_register): Always call
5798 internal_error.
5799
5800 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
5801 #ifdef CLEAR_INSN_CACHE code.
5802 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
5803 Delete #ifdef CLEAR_DEFERRED_STORES code.
5804
5805 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
5806
5807 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
5808 copyright.
5809 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
5810
5811 * config/mips/mipsv4.mh: Delete file.
5812
5813 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
5814 unreferenced macro.
5815 (hpread_adjust_stack_address): Delete declaration.
5816
5817 2004-06-08 Andrew Cagney <cagney@gnu.org>
5818
5819 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
5820 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
5821 PTRACE_ATTACH / PTRACE_DETACH available call error.
5822 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
5823 * infttrace.c (update_thread_state_after_attach, attach, detach):
5824 Remove #ifdef wrappers.
5825 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
5826 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
5827 * config/nm-bsd.h (ATTACH_DETACH): Delete.
5828 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
5829 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
5830 * config/nm-linux.h (ATTACH_DETACH): Delete.
5831 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
5832 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
5833 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
5834 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
5835 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
5836
5837 2004-06-08 Corinna Vinschen <vinschen@redhat.com>
5838
5839 * configure.in: Set $configdir to the right OS specific value.
5840 Use value when setting $tcldir and $tkdir.
5841 * configure: Regenerate.
5842
5843 2004-06-06 Paul Brook <paul@codesourcery.com>
5844
5845 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
5846 records.
5847
5848 2004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
5849
5850 * ada-lang.c (lookup_symbol_in_language): New function to allow
5851 re-use of another language's symbol lookup code. (Placed here
5852 temporarily while Ada support is being integrated into the public
5853 tree).
5854 (restore_language): New auxiliary function for
5855 lookup_symbol_in_language.
5856 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
5857 temporarily while Ada support is being integrated into the public
5858 tree).
5859
5860 2004-06-08 Alexandre Oliva <aoliva@redhat.com>
5861
5862 * Makefile.in (check//%): New.
5863
5864 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
5865 (mn10300_store_return_value): Rewrite.
5866 (mn10300_type_align): New.
5867 (mn10300_use_struct_convention): Rewrite.
5868 (mn10300_return_value): New, using all of the above.
5869 (mn10300_pop_frame_regular): Add saved_regs_size.
5870 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
5871
5872 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
5873 regs if PC is on movm.
5874
5875 2004-06-07 Jim Blandy <jimb@redhat.com>
5876
5877 Add native Linux support for the PowerPC E500.
5878 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
5879 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
5880 all architectures except the E500.
5881 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
5882 #definitions.
5883 (struct gdb_evrregset_t): New type.
5884 (have_ptrace_getsetevrregs): New variable.
5885 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
5886 fetch_spe_registers): New functions.
5887 (fetch_register): Call fetch_spe_register as appropriate.
5888 Assert that we're only passed raw register numbers.
5889 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
5890 Don't fetch gprs if they're pseudoregisters.
5891 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
5892 store_spe_registers): New functions.
5893 (store_register): Call store_spe_register as appropriate.
5894 Assert that we're only passed raw register numbers.
5895 (store_ppc_registers): Call store_spe_registers as appropriate.
5896 Don't store gprs if they're pseudoregisters.
5897
5898 2004-06-07 Jeff Johnston <jjohnstn@redhat.com>
5899
5900 * thread-db.c (thread_get_info_callback): Fill in the thread_info
5901 struct if one exists, even if we are dealing with a zombie thread.
5902
5903 2004-06-07 Andrew Cagney <cagney@gnu.org>
5904
5905 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
5906 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
5907 Rename PC_REQUIRES_RUN_BEFORE_USE.
5908 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
5909 #ifdef.
5910
5911 2004-06-07 Randolph Chung <tausq@debian.org>
5912
5913 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
5914 unwinding after sp has been saved to the stack but before the end
5915 of the prologue, and after the fp has been modified but before it has
5916 been saved to the stack.
5917 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
5918 Remove superfluous definitions.
5919 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
5920
5921 2004-06-07 Guy Martin <gmsoft@gentoo.org>
5922
5923 Committed by Randolph Chung.
5924 * hppa-linux-nat.c: Include the correct version of the header file
5925 depending on the kernel version.
5926
5927 2004-06-06 Randolph Chung <tausq@debian.org>
5928
5929 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
5930 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
5931
5932 2004-06-06 Randolph Chung <tausq@debian.org>
5933
5934 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
5935 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
5936 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
5937 * hppa-tdep.c (hppa_symbol_address): New function definition.
5938 * hppa-tdep.h (hppa_symbol_address): New function declaration.
5939
5940 2004-06-06 Randolph Chung <tausq@debian.org>
5941
5942 * hppa-tdep.h (struct value): Forward declaration.
5943 (gdbarch_tdep): Define tdep find_global_pointer method.
5944 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
5945 associated with the function we are trying to call, and write it
5946 to the gp register.
5947 (hppa32_convert_from_funct_ptr_addr): New function.
5948 (hppa_find_global_pointer): New function.
5949 (hppa_gdbarch_init): Set default find_global_pointer method; set
5950 convert_from_func_ptr_addr method.
5951 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
5952 (hppa_linux_init_abi): Set find_global_pointer method.
5953 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
5954
5955 2004-06-06 Randolph Chung <tausq@debian.org>
5956
5957 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
5958 to struct value *function.
5959 * gdbarch.c: Regenerate.
5960 * gdbarch.h: Likewise.
5961 * infcall.c (call_function_by_hand): Pass entire function value
5962 to push_dummy_call.
5963
5964 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
5965 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
5966 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
5967 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
5968 * arm-tdep.c (arm_push_dummy_call): Likewise.
5969 * avr-tdep.c (avr_push_dummy_call): Likewise.
5970 * cris-tdep.c (cris_push_dummy_call): Likewise.
5971 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
5972 * frv-tdep.c (frv_push_dummy_call): Likewise.
5973 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
5974 * hppa-tdep.c (hppa32_push_dummy_call)
5975 (hppa64_push_dummy_call): Likewise.
5976 * i386-tdep.c (i386_push_dummy_call): Likewise.
5977 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
5978 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
5979 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
5980 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
5981 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
5982 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
5983 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
5984 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
5985 (ppc64_sysv_abi_push_dummy_call): Likewise.
5986 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
5987 (ppc64_sysv_abi_push_dummy_call): Likewise.
5988 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
5989 * s390-tdep.c (s390_push_dummy_call): Likewise.
5990 * sh-tdep.c (sh_push_dummy_call_fpu)
5991 (sh_push_dummy_call_nofpu): Likewise.
5992 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
5993 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
5994 * vax-tdep.c (vax_push_dummy_call): Likewise.
5995
5996 2004-06-04 Jim Blandy <jimb@redhat.com>
5997
5998 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
5999 gdbarch argument to register_size.
6000
6001 * rs6000-tdep.c (rs6000_store_return_value): Use
6002 regcache_cooked_write_part instead of
6003 deprecated_write_register_bytes.
6004 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
6005 not gdbarch_deprecated_store_return_value.
6006
6007 * ppc-linux-nat.c (store_register, fetch_register): Remove
6008 incorrect assertions. Simplify and generalize handling of
6009 transfers whose sizes are not multiples of, or less than, sizeof
6010 (PTRACE_XFER_TYPE).
6011
6012 2004-06-04 Jeff Johnston <jjohnstn@redhat.com>
6013
6014 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
6015 as a new thread event.
6016 * thread-db.c (thread_get_info_callback): If the thread is a
6017 zombie, return TD_THR_ZOMBIE.
6018 (thread_from_lwp): If thread_get_info_callback returns
6019 TD_THR_ZOMBIE, check if the thread is still on the thread list
6020 and return a -1 ptid if not found.
6021 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
6022 change the status to TARGET_WAITKIND_SPURIOUS.
6023
6024 2004-06-03 Corinna Vinschen <vinschen@redhat.com>
6025
6026 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
6027 double values in little endian mode.
6028
6029 2004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
6030
6031 Committed by Andrew Cagney.
6032 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
6033 after last enum constant to avoid error from IBM C
6034 compiler.
6035
6036 2004-06-02 Jim Blandy <jimb@redhat.com>
6037
6038 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
6039 to 'message', and make it local to the lone block that uses it.
6040
6041 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
6042
6043 2004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
6044
6045 * ada-exp.y: Update copyright notice.
6046 Include block.h.
6047
6048 Replace REGNAME, LAST, INTERNAL_VARIABLE with
6049 SPECIAL_VARIABLE and unify the treatment of these cases.
6050
6051 (write_attribute_call0): Remove.
6052 (write_attribute_call1): Remove.
6053 (write_attribute_calln): Remove.
6054 (save_qualifier): Add missing semicolon.
6055
6056 (simple_exp,exp): Decomment (i.e., reactivate) code that was
6057 temporarily disabled to allow compilation with FSF head version.
6058
6059 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
6060 use individual operators (OP_*) for all attributes.
6061 (exp syntax): Use write_int.
6062 Handle STRING literals with OP_STRING.
6063 (variable syntax): Add limit parameter to calls to
6064 write_object_renaming.
6065
6066 (temp_parse_space): New definition to hold entities that need
6067 only live until the next call to ada_parse.
6068 (string_to_operator): Rename fields of ada_opname_table entries.
6069
6070 (write_var_from_sym): Record block.
6071 (write_var_from_name): Minor reformatting.
6072 Make sure saved name is properly encoded in the case of multiple
6073 matches, and set its language to Ada.
6074 Update comment.
6075 Modify to indicate unresolved name as symbol in the UNRESOLVED
6076 namespace, allocated in temp_parse_space.
6077 (write_int): New function.
6078
6079 (write_object_renaming): Add max_depth parameter to limit
6080 chains of object renamings.
6081 Handle case where root of renaming expression is itself a renaming.
6082 Use temp_parse_space for temporary name buffer.
6083 Handle renamings to dereferenced pointers (___XEXA suffices).
6084
6085 (ada_parse, yyerror, string_to_operator,
6086 write_var_from_sym, write_var_from_name, write_attribute_call0,
6087 write_attribute_call1, write_attribute_calln,
6088 write_object_renaming): Protoize.
6089
6090 (_initialize_ada_exp): New function.
6091
6092 * ada-lang.c: Update copyright notice.
6093 General terminology change to conform to GNAT compiler usage:
6094 mangle => encode, demangle => decode
6095 Include gdb_obstack.h.
6096 Include gdb_regex.h
6097 Include frame.h
6098 Include hashtab.h
6099 Include completer.h
6100 Include gdb_stat.h
6101 Include block.h
6102 Include infcall.h
6103
6104 (ADA_RETAIN_DOTS): Make sure this is defined.
6105 (TRUNCATION_TOWARDS_ZERO): Define.
6106 (struct string_vector): Define.
6107 (unresolved_names): Remove definition.
6108 (xnew_string_vector): New function.
6109 (string_vector_append): New function.
6110 (extract_string): Make static.
6111 (ada_unqualified_name): New function.
6112 (add_angle_brackets): New function.
6113 (function_name_from_pc): New function.
6114 (place_on_stack): Rename to ensure_lval.
6115
6116 (ensure_lval): Renamed from place_on_stack.
6117 Make identity on lvals.
6118 Update comment.
6119 (is_nonfunction): New interface.
6120 Only symbols in LOC_CONST class can be enumerals.
6121 (fill_in_ada_prototype): Remove; now independent of language.
6122 (add_defn_to_vec): Add obstack and symtab arguments.
6123 Use obstack to hold collected definitions.
6124 (num_defns_collected): New function.
6125 (defns_collected): New function.
6126 (ada_resolve_subexp): Rename to resolve_subexp.
6127 (resolve_subexp): Renamed from ada_resolve_subexp.
6128 (ada_op_name): Return non-const result.
6129 (ada_decoded_op_name): Renamed from ada_op_name, now used for
6130 other purposes.
6131
6132 (to_fixed_array_type): Add declaration.
6133 (coerce_unspec_val_to_type): Remove offset parameter.
6134 (find_sal_from_funcs_and_line): New interface.
6135 (find_line_in_linetable): Ditto.
6136
6137 (all_sals_for_line): Rename to ada_sals_for_line and make
6138 global.
6139 Add new parameter. When set, do not ask the user to choose the
6140 instance, but use the first one found instead.
6141 Use given line number in returned sals.
6142 Fix comment.
6143 Skip the prologue if funfirstline is set.
6144 Correct for memory leak when 0 lines found.
6145
6146 (value_pos_atr): Use pos_atr.
6147 (pos_atr): New function.
6148 (standard_lookup): Add block parameter.
6149
6150 (makeTimeStart): Remove declaration and uses.
6151 (makeTimeStop): Remove declaration and uses.
6152
6153 (ada_completer_word_break_characters): Allow for VMS.
6154 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
6155 (raise_sym_name): New constant.
6156 (raise_unhandled_sym_name): New constant.
6157 (raise_assert_sym_name): New constant.
6158 (process_raise_exception_name): New constant.
6159 (longest_exception_template): New constant.
6160 (warning_limit): New variable to limit warnings during expression
6161 evaluation.
6162 (warnings_issued): New variable to keep track of warnings issued.
6163 (known_runtime_file_name_patterns): New constant.
6164 (known_auxiliary_function_name_patterns): New constant.
6165 (symbol_list_obstack): New variable.
6166
6167 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
6168 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
6169 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
6170 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
6171 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
6172 ada_variant_discrim_name, field_alignment, dynamic_template_type,
6173 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
6174 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
6175 and strcmp.
6176
6177 (ada_get_field_index): New function.
6178 (lim_warning): New function.
6179 (ada_translate_error_message): New function.
6180 (MAX_OF_SIZE): New function.
6181 (MIN_OF_SIZE): New function.
6182 (UMAX_OF_SIZE): New function.
6183 (UMIN_OF_SIZE): New function.
6184 (discrete_type_high_bound): New function.
6185 (discrete_type_low_bound): New function.
6186 (base_type): New function.
6187 (do_command): Remove.
6188
6189 (ada_update_initial_language): Use language_ada, not language_unknown.
6190 (ada_encode): Renamed from ada_mangle.
6191 Obey ADA_RETAIN_DOTS.
6192 (ada_decode): Renamed from ada_demangle.
6193 Update coding conventions.
6194 (decoded_names_store): New hash table.
6195 (ada_decode_symbol): New function.
6196 (ada_la_decode): New function.
6197
6198 (modify_general_field): Correct computations of offset and bit
6199 position.
6200 (desc_base_type): Handle ref types, too.
6201 (ada_is_direct_array_type): New function.
6202
6203 (ada_is_simple_array): Rename to ada_is_simple_array_type.
6204 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
6205 (ada_is_bogus_array_descriptor,ada_type_of_array,
6206 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
6207 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
6208 ada_is_array_descriptor_type.
6209
6210 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
6211 (ada_is_packed_array_type): Handle pointers or
6212 references to packed arrays as well.
6213 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
6214 (decode_packed_array_type): Search for the packed array type
6215 symbol in the currently selected block and associated
6216 superblocks too.
6217 Use lookup_symbol again.
6218
6219 (decode_packed_array): Handle pointers and references.
6220 Update call to coerce_unspec_val_to_type.
6221 (decode_packed_array_type,value_subscript_packed): Limit warnings.
6222 (ada_value_primitive_packed_val): Improve comment.
6223
6224 (ada_index_type): Substitute int type for "undefined".
6225 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
6226 ada_array_langth, ada_is_string_type): Use renamed
6227 ada_is_simple_array_type.
6228 (empty_array): New function.
6229
6230 (ada_resolve): Rename to resolve.
6231 (resolve): Make static.
6232 Call renamed resolve_subexp.
6233 Update comment.
6234 (ada_resolve_subexp): Rename to resolve_subexp.
6235 (resolve_subexp): Update comment.
6236 Decomment disabled code.
6237 Add LOC_COMPUTED* cases.
6238 Modify to use temporary struct symbols (marked as being in
6239 UNDEF_NAMESPACE) to indicate unresolved names, instead of
6240 OP_UNRESOLVED_VALUE.
6241 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
6242 Add OP_STRING case.
6243 Remove OP_ARRAY.
6244 Use SYMBOL_PRINT_NAME instead of ada_demangle.
6245 Use new ada_lookup_symbol_list interface.
6246 Use new ada_resolve_function interface.
6247 Remove OP_TYPE case.
6248
6249 (ada_args_match): Idiot proof against null actuals.
6250 Use intermediate variables to clarify.
6251 (ada_resolve_function): Update comment and interface.
6252 (mangled_ordered_before): Rename to encoded_ordered_before and
6253 update comment.
6254 (sort_choices): Update comment and interface.
6255 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
6256 (user_select_syms): New interface.
6257 Use new sort_choices interface.
6258 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
6259 (possible_user_operator_p): Idiot-proof against null values.
6260 (ada_simple_renamed_entity): Don't make cleanup; rely on
6261 caller to free result string.
6262 Remove const from return type.
6263 (make_array_descriptor): Rename uses of place_on_stack to
6264 ensure_lval.
6265 Make sure that arrays are on stack.
6266
6267 (HASH_SIZE): Define.
6268 (struct cache_entry): Define.
6269 (cache_space): Define.
6270 (cache): Define.
6271 (clear_ada_sym_cache): New function.
6272 (find_entry): New function.
6273 (lookup_cached_symbol): New function.
6274 (defn_vector_size): Define.
6275 (cache_symbol): New function.
6276 (defn_symbols): Remove.
6277
6278 (standard_lookup): Use lookup_symbol_in_language to get effect of
6279 C lookup.
6280 Cache results.
6281
6282 (symbol_completion_match): New function.
6283 (symbol_completion_add): New function.
6284 (ada_make_symbol_completion_list): New function.
6285
6286 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
6287 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
6288 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
6289 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
6290
6291 (ada_lookup_simple_minsym): New function.
6292 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
6293
6294 (add_symbols_from_enclosing_procs): New interface.
6295 Conditionalize more helpfully.
6296 Don't bother if program isn't running.
6297 Use new interface to get_frame_block.
6298 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
6299
6300 (remove_extra_symbols): New interface.
6301 (xget_renaming_scope): New function.
6302 (is_package_name): New function.
6303 (renaming_is_visible): New function.
6304 (remove_out_of_scope_renamings): New function.
6305
6306 (ada_lookup_symbol_list): New interface.
6307 Properly reinitialize the symbol list obstack.
6308 Don't call add_symbols_from_enclosing_procs if we start from a
6309 static or global block.
6310 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
6311 add_symbols_from_enclosing_procs.
6312 Add symtab data to cached entries.
6313 Handle symbols prefixed with
6314 "standard__" specially; strip prefix and don't look in local symbols.
6315 Do not include out of scope renaming symbols in list of
6316 symbols returned.
6317 Add const to block parameter.
6318 Move check for non-local, non-global symbols earlier.
6319 Remove timing stuff.
6320 (ada_lookup_symbol): New interface.
6321 Find symtab as well.
6322 (ada_lookup_symbol_nonlocal): New function.
6323
6324 (is_name_suffix): Enhance suffix detection to recognize
6325 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
6326 (is_dot_digits_suffix): New function.
6327 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
6328
6329 (ada_add_block_symbols): New interface. Use obstack to return results
6330 in a vector of struct ada_symbol_infos. Add symtab argument.
6331 Use new interface to add_defn_to_vec.
6332 Remove calls to fill_in_ada_prototype.
6333 Use BLOCK_BUCKETS, BLOCK_BUCKET.
6334
6335 (ada_finish_decode_line_1): Add const qualification to local to fix
6336 warning.
6337 Start looking in static block for functions to avoid attempts
6338 to search frame chain for up-level variables.
6339 Adapt to new ada_sals_for_line interface.
6340 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
6341 Handle quoting of the function name inside the spec string.
6342 Skip prologue when funfirstline is set and update the
6343 function documentation to that effect.
6344
6345 (debug_print_lines, debug_print_block, debug_print_blocks,
6346 debug_print_symtab): Remove.
6347
6348 (ada_main_name): New function.
6349 (ada_exception_breakpoint_type): New function.
6350 (is_known_support_routine): New function.
6351 (ada_find_printable_frame): Renamed from find_printable_frame and made
6352 global.
6353 Remove level parameter.
6354 Use new interface to select_frame.
6355
6356 (begin_command): Remove.
6357 (ada_adjust_exception_stop): New function.
6358 (ada_print_exception_stop): New function.
6359 (exception_name_from_cond): New function.
6360 (ada_report_exception_break): Replace disabled code with
6361 conditionalization on GNAT_GDB.
6362 Get the exception name from the condition string.
6363 Remove and move functionality into new functions
6364 ada_print_exception_breakpoint_task and
6365 ada_print_exception_breakpoint_nontask.
6366 (error_breakpoint_runtime_sym_not_found): New function.
6367 (is_runtime_sym_defined): New function.
6368 (ada_breakpoint_rewrite): Uncomment suppressed code.
6369 Use symbolic error-message and runtime-symbol names.
6370 Surround runtime symbol names in quotes.
6371 Allow non-specific breakpoints on exceptions and assertions before
6372 program starts.
6373
6374 (ada_is_tagged_type): Add parameter.
6375 (ada_is_tag_type): New function.
6376 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
6377 (ada_variant_discrim_type): Ditto.
6378 (value_tag_from_contents_and_address): New function.
6379 (type_from_tag): New function.
6380 (struct tag_args): New structure used to communicate with
6381 ada_tag_name_1.
6382 (ada_tag_name_1): New function.
6383 (ada_tag_name): New function.
6384
6385 (ada_scan_number): Update comment.
6386 (find_struct_field): New function.
6387 (ada_search_struct_field): Make static.
6388 (ada_value_struct_elt): New version that returns references when
6389 given pointers or references to structs.
6390 (ada_lookup_struct_elt_type): Add 'refok' parameter.
6391 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
6392 interface.
6393 (ada_value_ind): Use new ada_to_fixed_value interface.
6394 (ada_coerce_ref): Ditto.
6395 (field_offset): Remove.
6396
6397 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
6398 (ada_find_renaming_symbol): New function.
6399 (ada_prefer_type): Prefer named types over unnamed ones.
6400 (variant_field_index): New function.
6401 (contains_variant_part): Removed: subsumed by variant_field_index.
6402 (ada_template_to_fixed_record_type): New function, mostly from
6403 template_to_fixed_record_type.
6404 (template_to_fixed_record_type):
6405 Do not scan the type fields beyond the last one; prevents a
6406 potential SEGV.
6407 Handle case where variant field is listed BEFORE discriminant it
6408 depends on.
6409 Fix calculation of record length when bit length is
6410 not evenly divisible by char length.
6411 Move code to ada_template_to_fixed_record_type and call it.
6412
6413 (template_to_static_fixed_type): Revise comment.
6414 Modify to work on ordinary record types as well as templates,
6415 so as to handle fields that use ___XVE or ___XVU encodings.
6416 (to_record_with_fixed_variant_part): Fill out comment.
6417 Initialize C++ stuff in right type.
6418 Allow case where DVAL is null.
6419 Handle case where variant field is not last.
6420 Fix typo concerning record length.
6421 (to_fixed_record_type): Decomment disabled code.
6422 (to_fixed_record_type): Use variant_field_index instead of
6423 contains_variant_part.
6424 (to_fixed_variant_branch_type): Ditto.
6425 (to_fixed_array_type): Decomment disabled code.
6426 (ada_to_fixed_type): Convert tagged types to the specific type.
6427 Deactivate the size-check for array types in order to avoid
6428 some false size alarms.
6429 (to_static_fixed_type): Decomment disabled code.
6430 Modify to call template_to_static_fixed_type
6431 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
6432 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
6433 Remove valaddr argument, as it is never really used.
6434 (ada_to_fixed_value): Change interface to act on single struct value*
6435 operand.
6436 (adjust_pc_past_prologue): New function.
6437 (ada_attribute_name): Modify to take enum exp_opcode argument.
6438
6439 (ada_enum_name): Recognize new homonym-distinguishing convention.
6440 Adjust local variable's type to remove compiler warning.
6441 Fix a small problem in the part that unqualifies the enumeration name.
6442 (ada_value_binop): New function.
6443 (ada_value_equal): New function.
6444
6445 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
6446 Don't give error message when not doing normal evaluation
6447 and a tagged type doesn't seem to contain a structure member.
6448 Give error message for packed arrays.
6449 For indexing arrays, handle pointers to packed arrays correctly.
6450 Handle case of 'first and 'last attributes of bare integral type
6451 without encoded subtype info.
6452 Remove some unnecessary casts.
6453 Fix uninitialized value of type in computing 'first, 'last, or 'length
6454 of array object.
6455 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
6456 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
6457 calls.
6458 Attributes are now exp_opcode values.
6459 Correct treatment of 'modulus.
6460 Better error message for taking 'length of wrong kind of type;
6461 improve comment.
6462 Change EVAL_NORMAL to noside for consistency.
6463 Use ada_value_binop for DIV, MOD, REM.
6464 Make special case out of array of length 0, since an argument
6465 of 0 upsets some platforms' malloc.
6466 Use OP_STRING instead of OP_ARRAY.
6467 For slice, add check that we have an array type before extracting
6468 a slice out of it. Avoids a SEGV.
6469 When evaluating an array slice, if the array type is a reference to
6470 an aligner type, then replace the aligner type by the actual type.
6471 Decomment disabled code.
6472 Remove some dead code.
6473 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
6474 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
6475 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
6476 and UNOP_MBR to UNOP_IN_RANGE.
6477 If an array type has a parallel ___XVE type, then use it.
6478 Turn arrays into pointers for lvalue arrays.
6479 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
6480 bounds error and handle 0-length slices.
6481 Use lim_warning.
6482 When selecting fields, apply ada_to_fixed_value (because the fields
6483 might have ___XVU or ___XVE encodings even if not dynamic.)
6484 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
6485 (ada_is_system_address_type): New function.
6486
6487 (get_var_value): Use new interface to ada_lookup_symbol_list.
6488 (get_int_var_value): New interface.
6489 (to_fixed_range_type): Allow unknown bound, with warning.
6490 (ada_is_modular_type): Decomment disabled code.
6491 (ADA_OPERATORS): New definition.
6492 (ada_operator_length): New function.
6493 (ada_expr_op_name): New function.
6494 (ada_forward_operator_length): New function.
6495 (ada_dump_subexp_body): New function.
6496 (ada_print_subexp): New function.
6497 (ada_exp_descriptor): New constant.
6498 (ada_op_print_tab): Add 'size. Remove FIXMEs.
6499 (ada_language_defn): Add ada_exp_descriptor entry.
6500 Change ada_parse => parse.
6501 Add post-parser entry.
6502 Use ada-specific non-local symbol lookup.
6503 Don't use C-style arrays.
6504 String lower-bound is 1.
6505 Decomment disabled code.
6506 (parse): New function.
6507 New fields ada_translate_error_message, ada_lookup_symbol,
6508 ada_lookup_minimal_symbol.
6509
6510 * ada-lang.h: Update copyright dates.
6511 Replace the mangle/demangle terminology throughout by the
6512 more appropriate encode/decode one.
6513 Include breakpoint.h.
6514 Forward declare struct partial_symbol, struct block.
6515 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
6516 (EXTRACT_ADDRESS): Remove.
6517 (EXTRACT_INT): Remove.
6518 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
6519 (MAX_ENCLOSING_FRAME_LEVELS): Define.
6520 (MAX_RENAMING_CHAIN_LENGTH): Define.
6521 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
6522
6523 (enum task_states): Remove.
6524 ada_task_states: Remove.
6525 (fat_string): Remove.
6526 (struct entry_call): Remove.
6527 (struct task_fields): Remove.
6528 (struct task_entry): Remove.
6529
6530 (struct ada_symbol_info): Define.
6531 (enum ada_attribute): Remove.
6532 (enum ada_operator): Define.
6533
6534 (ada_get_field_index): Declare.
6535 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
6536 (ada_is_simple_array): Rename to ada_is_simple_array_type.
6537 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
6538 (ada_lookup_symbol_list): New interface.
6539 (ada_decode_symbol): Declare.
6540 (ada_decode): Declare.
6541 (ada_lookup_symbol): New interface.
6542 (ada_update_initial_language): Declare.
6543 (ada_lookup_simple_minsym): Declare.
6544 (user_select_syms): New interface.
6545 (ada_sals_for_line): Declare.
6546 (ada_is_tagged_type): New interface.
6547 (ada_tag_name): Declare.
6548 (ada_lookup_struct_elt_type): Remove declaration.
6549 (ada_search_struct_field): Remove declaration.
6550 (ada_attribute_name): New interface.
6551 (ada_is_system_address_type): Declare.
6552 (ada_to_fixed_value): Remove declaration.
6553 (ada_template_to_fixed_record_type_1): Declare.
6554 (get_int_var_value): New interface.
6555 (ada_find_any_symbol): Declare.
6556 (ada_find_renaming_symbol): Declare.
6557 (ada_mangle): Rename to ada_encode.
6558 (ada_simple_renamed_entity): Remove const.
6559 (ada_main_name): Declare.
6560 (get_current_task): Rename to ada_get_current_task.
6561 (get_entry_number): Remove declaration.
6562 (ada_report_exception_break): Remove declaration.
6563 (ada_print_exception_breakpoint_nontask): Declare.
6564 (ada_print_exception_breakpoint_task): Declare.
6565 (ada_find_printable_frame): Declare.
6566
6567 * ada-lex.l: Update copyright notices.
6568 Use xmalloc and xfree instead of malloc and free.
6569 Use new interface to name_lookup.
6570 Use new interface to
6571 ada_mangle=>ada_encode.
6572 Redo handling of '$...' variable to parallel current treatment
6573 in c-exp.y.
6574 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
6575 digit_to_int, strtoulst, processInt, processReal, processId,
6576 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
6577 yywrap): Protoize.
6578
6579 (processInt): Use cast to remove harmless warning.
6580 (processReal): Modify to get rid of compiler warning on scan formats.
6581
6582 (processId): Replace xmalloc with obstack_alloc for name and remove
6583 call to ada_name_string_cleanup.
6584 Remove obsolete disabled code.
6585 (name_lookup): Ditto.
6586 New interface.
6587 Use obsavestring on temp_parse_space instead of savestring
6588 on name, and remove call to ada_name_string_cleanup.
6589 Free string returned from ada_simple_renamed_entity.
6590 Use new interface to ada_lookup_symbol_list.
6591 Decomment disabled code.
6592 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
6593 not types.
6594 When a type name lookup succeeds as a result of
6595 lookup_primitive_typename, check for regular type entry that has not
6596 yet been read in.
6597 Limit length of chain of renamed symbols we are willing to follow.
6598 Do not break names beginning with "standard__" into segments.
6599 (block_lookup): Use new interface to ada_lookup_symbol_list.
6600
6601 * ada-typeprint.c: Update copyright notice.
6602 (demangled_type_name): Rename to decoded_type_name.
6603 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
6604 (print_range_bound): Correct handling of negative
6605 bounds that make the index type looked unsigned under STABS.
6606 (print_dynamic_range_bound): Use new interface to get_int_var_value.
6607 (print_range_type_named): Use the builtin int type if no type
6608 corresponding to the given type name could be found.
6609 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
6610 Add some bullet-proofing.
6611 (print_variant_clauses): Allow for variant branches with ___XVU
6612 encodings that are not dynamic fields.
6613 Use new interface to ada_is_tagged_type.
6614 (print_record_type): Allow for fields with ___XVE encodings that
6615 are not dynamic fields.
6616 Use new interface to ada_is_tagged_type.
6617 (ada_print_type): ada_is_array_descriptor =>
6618 ada_is_array_descriptor_type.
6619
6620 * ada-valprint.c: Update copyright notice.
6621 Include gdb_string.h
6622 Include infcall.h
6623 (ui_memcpy): New function.
6624 (ada_print_floating): New function.
6625 (ada_print_str): Order arguments correctly.
6626 Correct handling of empty arrays and arrays of 0-length items.
6627 ada_is_array_descriptor => ada_is_array_descriptor_type
6628 Print values of type System.Address in hexadecimal format.
6629 Use ada_print_floating to print floating-point numbers in Ada format.
6630 Print class tag values with type names.
6631 No longer print the address of reference values. Avoids
6632 a potential confusion.
6633 (ada_value_print): Stop printing the object type for reference
6634 values, but preserve that behavior for access types. Avoids
6635 a potential confusion.
6636 Simplify one conditional expression, as the first part is now
6637 necessarily true.
6638 ada_is_array_descriptor => ada_is_array_descriptor_type
6639 Add check for arrays for null records, and print them by hand.
6640
6641 2004-06-01 Jim Blandy <jimb@redhat.com>
6642
6643 * ppc-tdep.h: Delete unused 'regoff' member.
6644 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
6645
6646 2004-06-01 Michael Chastain <mec.gnu@mindspring.com>
6647
6648 Fix PR symtab/1661.
6649 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
6650 (hpread_read_struct_type): Likewise.
6651
6652 2004-06-01 Andrew Cagney <cagney@gnu.org>
6653
6654 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
6655 instead of xasprintf.
6656 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
6657 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
6658 (mi_cmd_data_list_register_names)
6659 (mi_cmd_data_list_changed_registers)
6660 (mi_cmd_data_list_register_values)
6661 (get_register, mi_cmd_data_write_register_values)
6662 (mi_cmd_data_write_register_values)
6663 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
6664 (mi_cmd_target_download, mi_cmd_target_select)
6665 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
6666 (mi_execute_cli_command, mi_execute_async_cli_command)
6667 (mi_execute_async_cli_command): Ditto.
6668 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
6669 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
6670
6671 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
6672 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
6673 error_last_message instead of mi_error_last_message.
6674 * mi/mi-main.c (mi_error_last_message): Delete function.
6675
6676 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
6677 "invalid number of columns" error. Delete redundant "out of
6678 memory" check.
6679
6680 2004-05-31 Mark Kettenis <kettenis@gnu.org>
6681
6682 * i386bsd-nat.c: Don't include <sys/procfs.h>.
6683 (gregset_t, fpregset_t): Remove typedefs.
6684 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
6685 (REG_OFFSET): Rename argument.
6686 (i386bsd_r_reg_offset): Rename from reg_offset.
6687 (REG_ADDR): Remove macro.
6688 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
6689 functions.
6690 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
6691 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
6692 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
6693 instead of supply_gregset.
6694 (store_inferior_registers): Use `struct reg' and `struct fpreg'
6695 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
6696 instead of fill_gregset.
6697 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
6698
6699 * i386bsd-nat.c: Don't include "gregset.h".
6700 (supply_gregset, fill_gregset): Make static.
6701 (supply_fpregset, fill_fpregset): Remove.
6702 * Makefile.in (i386bsd-nat.o): Update dependencies.
6703
6704 2004-05-30 Mark Kettenis <kettenis@gnu.org>
6705
6706 * fbsd-proc.c: Include "regcache.h", "regset.h" and
6707 "gdb_assert.h". Con't include "gregset.h".
6708 (fbsd_make_corefile_notes): Use regset-based core file support
6709 instead off fill_gregset and fill_fpregset.
6710 * Makefile.in (fbsd-proc.o): Update dependencies.
6711
6712 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
6713 instructions.
6714 (m88k_frame_prev_register): Simplify code a bit.
6715
6716 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
6717 (amd64_collect_fpregset): New function.
6718 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
6719
6720 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
6721
6722 * i386-tdep.c (i386_supply_gregset): Adjust comment.
6723 (i386_collect_gregset): New function.
6724 (i386_supply_fpregset): Adjust comment.
6725 (i386_collect_fpregset): New function.
6726 (i386_regset_from_core_section): Use i386_collect_gregset and
6727 i386_collect_fpregset.
6728
6729 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
6730 handle VALUEP being null.
6731
6732 * regset.h (collect_regset_ftype): Unconstify fourth argument.
6733
6734 2004-05-29 Mark Kettenis <kettenis@gnu.org>
6735
6736 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
6737
6738 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
6739 assembler in OpenBSD 3.5-current.
6740 (amd64obsd_sigcontext_addr): Likewise.
6741
6742 2004-05-28 Jim Blandy <jimb@redhat.com>
6743
6744 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
6745 register set, so our regcache isn't declared "legacy" and our E500
6746 pseudoregister read and write functions aren't ignored.
6747 (rs6000_register_byte, rs6000_register_raw_size,
6748 rs6000_register_virtual_type, rs6000_register_convertible,
6749 rs6000_register_convert_to_virtual,
6750 rs6000_register_convert_to_raw): Deleted.
6751 (rs6000_register_type, rs6000_convert_register_p,
6752 rs6000_register_to_value, rs6000_value_to_register): New
6753 functions.
6754 (rs6000_gdbarch_init): Don't register
6755 gdbarch_deprecated_register_size,
6756 gdbarch_deprecated_register_bytes,
6757 gdbarch_deprecated_register_byte,
6758 gdbarch_deprecated_register_raw_size,
6759 gdbarch_deprecated_register_virtual_type,
6760 gdbarch_deprecated_register_convertible,
6761 gdbarch_deprecated_register_convert_to_virtual, or
6762 gdbarch_deprecated_register_convert_to_raw methods. Instead,
6763 register gdbarch_register_type, gdbarch_convert_register_p,
6764 gdbarch_register_to_value, and gdbarch_value_to_register methods.
6765
6766 2004-05-26 Jim Blandy <jimb@redhat.com>
6767
6768 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
6769 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
6770 functions, updated to match the register numberings used in GCC.
6771 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
6772 rs6000_dwarf2_reg_to_regnum as register number conversions
6773 functions for STABS and Dwarf2.
6774
6775 2004-05-26 Randolph Chung <tausq@debian.org>
6776
6777 * infttrace.h (target_waitkind): Forward declare type instead of pulling
6778 in header file.
6779
6780 2004-05-25 Joel Brobecker <brobecker@gnat.com>
6781
6782 * NEWS: Document new "start" command.
6783
6784 2004-05-25 Randolph Chung <tausq@debian.org>
6785
6786 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
6787 hppa-linux.
6788
6789 2004-05-25 Randolph Chung <tausq@debian.org>
6790
6791 * hppa-hpux-tdep.c (offsetof): Define.
6792 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
6793 (hppa32_hpux_frame_base_before_sigtramp)
6794 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
6795 (hppa64_hpux_frame_saved_pc_in_sigtramp)
6796 (hppa64_hpux_frame_base_before_sigtramp)
6797 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
6798 functions.
6799 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
6800 (hppa_hpux_sigtramp_frame_unwind_cache)
6801 (hppa_hpux_sigtramp_frame_this_id)
6802 (hppa_hpux_sigtramp_frame_prev_register)
6803 (hppa_hpux_sigtramp_frame_unwind)
6804 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
6805 (hppa_hpux_init_abi): Register sigtramp unwinder.
6806 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
6807
6808 2004-05-25 Randolph Chung <tausq@debian.org>
6809
6810 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
6811 and multiple stack unwinds.
6812 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
6813
6814 2004-05-25 Andrew Cagney <cagney@gnu.org>
6815
6816 * symfile.h (symbol_file_add_from_memory): Delete declaration.
6817 * symfile-mem.h: Delete file.
6818 * symfile-mem.c: Do not include "symfile-mem.h".
6819 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
6820 "struct bfd_section". When an error do not bother returning NULL.
6821 (add_symbol_file_from_memory_command): Use "struct bfd" and
6822 "struct bfd_section".
6823 * Makefile.in (symfile_mem_h): Delete.
6824 (symfile-mem.o): Update dependencies.
6825
6826 2004-05-25 Nick Roberts <nickrob@gnu.org>
6827
6828 * gdb-mi.el: New file.
6829
6830 2004-05-25 Andrew Cagney <cagney@gnu.org>
6831
6832 * inftarg.c: Include "observer.h".
6833 (child_attach, child_create_inferior): Notify inferior_created.
6834 * corelow.c: Include "observer.h".
6835 (core_open): Notify inferior_created.
6836 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
6837
6838 2004-05-25 Andrew Cagney <cagney@gnu.org>
6839
6840 * target.h (struct target_ops): Add from_tty to
6841 to_create_inferior.
6842 (target_create_inferior, find_default_create_inferior): Update.
6843 * infcmd.c (run_command): Update.
6844 * wince.c (child_create_inferior): Update.
6845 * win32-nat.c (child_create_inferior): Update.
6846 * uw-thread.c (uw_thread_create_inferior): Update.
6847 * thread-db.c (thread_db_create_inferior): Update.
6848 * target.c (debug_to_create_inferior)
6849 (find_default_create_inferior): Update.
6850 (maybe_kill_then_create_inferior): Update.
6851 * sol-thread.c (sol_thread_create_inferior): Update.
6852 * remote.c (extended_remote_async_create_inferior)
6853 (extended_remote_create_inferior): Update.
6854 * remote-vx.c (vx_create_inferior): Update.
6855 * remote-st.c (st2000_create_inferior): Update.
6856 * remote-sim.c (gdbsim_create_inferior): Update.
6857 * remote-sds.c (sds_create_inferior): Update.
6858 * remote-rdp.c (remote_rdp_create_inferior): Update.
6859 * remote-rdi.c (arm_rdi_create_inferior): Update.
6860 * remote-m32r-sdi.c (m32r_create_inferior): Update.
6861 * remote-e7000.c (e7000_create_inferior): Update.
6862 * procfs.c (procfs_create_inferior): Update.
6863 * ocd.c (ocd_create_inferior): Update.
6864 * ocd.h (ocd_create_inferior): Update.
6865 * nto-procfs.c (procfs_create_inferior): Update.
6866 * monitor.c (monitor_create_inferior): Update.
6867 * lin-lwp.c (lin_lwp_create_inferior): Update.
6868 * inftarg.c (child_create_inferior): Update.
6869 * hpux-thread.c (hpux_thread_create_inferior): Update.
6870 * gnu-nat.c (gnu_create_inferior): Update.
6871
6872 2004-05-25 Andrew Cagney <cagney@gnu.com>
6873
6874 * MAINTAINERS: Update e-mail address.
6875
6876 2004-05-24 Randolph Chung <tausq@debian.org>
6877
6878 * thread.c (info_threads_command, thread_apply_all_command)
6879 (thread_apply_command, thread_command, do_captured_thread_select):
6880 Remove HPUXHPPA-specific code.
6881
6882 2004-05-24 Randolph Chung <tausq@debian.org>
6883
6884 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
6885 unused symbols.
6886 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
6887 references.
6888
6889 2004-05-24 Joel Brobecker <brobecker@gnat.com>
6890
6891 * infcmd.c (kill_if_already_running): New function, extracted
6892 from run_command().
6893 (run_command): Replace extracted code by call to
6894 kill_if_already_running().
6895 (start_command): New function.
6896 (_initialize_infcmd): Add "start" command.
6897
6898 2004-05-24 Mark Kettenis <kettenis@gnu.org>
6899
6900 Add OpenBSD/m88k support.
6901 * NEWS (New native configurations): Mention OpenBSD/m88k.
6902 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
6903 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
6904 * Makefile.in (m88k_tdep_h): New variable.
6905 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
6906 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
6907 * configure.host: Add m88*-*-openbsd*.
6908 * configure.tgt: Add m88*-*-openbsd*.
6909
6910 2004-05-24 Jim Blandy <jimb@redhat.com>
6911
6912 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
6913 to approve changes.
6914
6915 2004-05-24 Kevin Buettner <kevinb@redhat.com>
6916
6917 * symtab.c (fixup_section): Search section table when lookup by
6918 name fails.
6919
6920 2004-05-24 Randolph Chung <tausq@debian.org>
6921
6922 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
6923 be "small_struct".
6924
6925 2004-05-24 Mark Kettenis <kettenis@gnu.org>
6926
6927 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
6928 register number in regcache_raw_collect call.
6929 (m68kbsd_collect_fpregset): Likewise.
6930 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
6931
6932 * regset.h (struct regset): Add back `regset' member.
6933
6934 2004-05-23 Mark Kettenis <kettenis@gnu.org>
6935
6936 * configure.in: Check for td_pcb in `struct thread'.
6937 * configure, config.in: Regenerated.
6938
6939 * dpx2-nat.c: Remove file.
6940 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
6941 (dpx2-nat.o): Remove dependencies.
6942
6943 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
6944 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
6945 (amd64obsd_supply_pcb): New function.
6946 (_initialize_amd64obsd_nat): Enable libkvm interface.
6947 * Makefile.in (amd64obsd-nat.o): Update dependencies.
6948 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
6949 (LOADLIBES): New variable.
6950
6951 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
6952 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
6953 (sparc32nbsd_supply_pcb): New function.
6954 (_initialize_sparcnbsd_nat): Enable libkvm interface.
6955 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
6956 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
6957 (LOADLIBES): New variable.
6958
6959 2004-05-22 Mark Kettenis <kettenis@gnu.org>
6960
6961 * bsd-kvm.c, bsd-kvm.h: New files.
6962 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
6963 "bsd-kvm.h".
6964 (i386fbsd_supply_pcb): New function.
6965 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
6966 (i386fbsd-nat.o): Update dependencies.
6967 (bsd_kvm_h): New variable.
6968 (bsd-kvm.o): New dependency.
6969 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
6970 (LOADLIBES): New variable.
6971
6972 * regset.c: Tweak comment.
6973 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
6974 macro.
6975 * regset.h: Update copyright year.
6976 (struct regset): Remove `descr' member, add `gdbarch' member.
6977 (regset_alloc): Adjust prototype and comment.
6978 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
6979 (i386_supply_fpregset): Likewise.
6980 (i386_regset_from_core_section): Update call to regset_alloc.
6981 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
6982 REGSET->arch.
6983 (i386obsd_aout_regset_from_core_section): Update call to
6984 regset_alloc.
6985 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
6986 REGSET->arch.
6987 (i386nbsd_aout_regset_from_core_section): Update call to
6988 regset_alloc.
6989 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
6990 REGSET->arch.
6991 (amd64_regset_from_core_section): Update call to regset_alloc.
6992 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
6993 REGSET->arch.
6994 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
6995 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
6996 &sparc32nbsd_gregset in sparc32_supply_gregset call.
6997 (sparc32nbsd_init_abi): Update call to regset_alloc.
6998 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
6999 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
7000 (sparc64obsd_init_abi): Update call to regset_alloc.
7001 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
7002 &sparc64nbsd_gregset in sparc64_supply_gregset call.
7003 (sparc64nbsd_init_abi): Update call to regset_alloc.
7004 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
7005 &sparc64fbsd_gregset in sparc64_supply_gregset call.
7006 (sparc64fbsd_init_abi): Update call to regset_alloc.
7007
7008 2004-05-22 Jim Blandy <jimb@redhat.com>
7009
7010 * ppc-tdep.h (spe_register_p): New declaration.
7011 (struct gdbarch_tdep): New members: ppc_acc_regnum and
7012 ppc_spefscr_regnum.
7013 * rs6000-tdep.c (spe_register_p): New function.
7014 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
7015 spefscr.
7016 (rs6000_gdbarch_init): Initialize the new members of the tdep
7017 structure.
7018
7019 2004-05-21 Jim Blandy <jimb@redhat.com>
7020
7021 * ppc-linux-nat.c (fetch_register): Move code back to be next
7022 to the comment that describes it. (Moved code, instead of
7023 comment, for symmetry with store_register.)
7024
7025 Allocate regset structures in the gdbarch's obstack, not using
7026 xmalloc.
7027 * regset.c (regset_alloc): Renamed from regset_xmalloc.
7028 Add 'arch' argument. Allocate the regset on arch's obstack, not
7029 using xmalloc.
7030 * regset.h (regset_alloc): Update declaration.
7031 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
7032 gdbarch argument.
7033 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7034 * i386-tdep.c (i386_regset_from_core_section): Same.
7035 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7036 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7037 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7038 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7039 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7040 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7041
7042 2004-05-21 Joel Brobecker <brobecker@gnat.com>
7043
7044 * config/djgpp/fnchange.lst: Undo previous change, was useless.
7045
7046 2004-05-21 Jim Blandy <jimb@redhat.com>
7047
7048 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
7049 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
7050
7051 2004-05-20 Jim Blandy <jimb@redhat.com>
7052
7053 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
7054
7055 2004-05-20 Mark Kettenis <kettenis@gnu.org>
7056
7057 * regset.h: Make prototype const-correct.
7058 * regset.c (regset_xmalloc): Make const-correct.
7059
7060 2004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
7061
7062 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
7063 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
7064 (symbol_search_name): Declare.
7065
7066 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
7067 (iter_name_next_hashed): Ditto.
7068 (iter_name_next_linear): Ditto.
7069 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
7070
7071 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
7072 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
7073 (symbol_search_name): New function.
7074
7075 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
7076
7077 * minsyms.c (build_minimal_symbol_hash_tables): Change
7078 test for adding to demangled hash table to check for difference
7079 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
7080
7081 2004-05-19 Jim Blandy <jimb@redhat.com>
7082
7083 Use a constructor function to create regset structures.
7084 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
7085 (struct regset): Use supply_regset_ftype. Add new
7086 'collect_regset' member.
7087 (regset_xmalloc): New declaration.
7088 * regset.c: New file.
7089 * am64-tdep.c (amd64_regset_from_core_section): Use
7090 regset_xmalloc to construct regset structures.
7091 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7092 * i386-tdep.c (i386_regset_from_core_section): Same.
7093 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7094 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7095 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7096 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7097 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7098 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7099 * Makefile.in (COMMON_OBS): Add regset.o.
7100 (regset.o): New rule.
7101
7102 2004-05-19 Joel Brobecker <brobecker@gnat.com>
7103
7104 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
7105 and pthread_cond_wait.c.
7106
7107 2004-05-18 Jim Blandy <jimb@redhat.com>
7108
7109 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
7110 before the mach-specific switch, and then let the individual cases
7111 override the defaults, rather than leaving them uninitialized
7112 until the switch and then setting them in each case.
7113
7114 2004-05-18 Randolph Chung <tausq@debian.org>
7115
7116 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
7117 millicode functions.
7118
7119 2004-05-18 Randolph Chung <tausq@debian.org>
7120
7121 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
7122 references to dld_flags_buffer consistent.
7123
7124 2004-05-18 Randolph Chung <tausq@debian.org>
7125
7126 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
7127 it for unwinding the stack.
7128
7129 2004-05-18 Randolph Chung <tausq@debian.org>
7130
7131 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
7132 Undefine these so we can overide them using gdbarch.
7133
7134 2004-05-18 Randolph Chung <tausq@debian.org>
7135
7136 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
7137 handling for 64-bit HPUX (elf).
7138
7139 2004-05-18 Daniel Jacobowitz <dan@debian.org>
7140
7141 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
7142 constants.
7143 * amd64-tdep.c (amd64_skip_prologue): Likewise.
7144 * ia64-tdep.c (examine_prologue): Likewise.
7145 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
7146 * v850-tdep.c (v850_fix_call_dummy): Likewise.
7147
7148 2004-05-18 Mark Kettenis <kettenis@gnu.org>
7149
7150 * vax-tdep.c (vax_return_value): Implement
7151 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7152
7153 2004-05-17 Mark Kettenis <kettenis@gnu.org>
7154
7155 * vax-tdep.c (vax_return_value): Fix typo.
7156
7157 2004-05-17 Andrew Cagney <cagney@redhat.com>
7158
7159 * MAINTAINERS: Mark Salter was also responsible for
7160 testsuite/config/
7161
7162 * NEWS: Mention signal fixes.
7163
7164 2004-05-17 Randolph Chung <tausq@debian.org>
7165
7166 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
7167 check to see if we are unwinding an export stub. Export stubs clobber
7168 the %rp in the call path and stores the original rp in a stack slot.
7169
7170 2004-05-17 Jim Blandy <jimb@redhat.com>
7171
7172 * MAINTAINERS: Update address for J.T. Conklin.
7173
7174 2004-05-17 Randolph Chung <tausq@debian.org>
7175
7176 * hppa-tdep.c: Remove superfluous #include's.
7177 * Makefile.in (hppa-tdep.o): Update dependencies.
7178
7179 2004-05-17 Randolph Chung <tausq@debian.org>
7180
7181 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
7182 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
7183 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
7184 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
7185 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
7186 Remove static function declarations.
7187
7188 2004-05-17 Mark Kettenis <kettenis@gnu.org>
7189
7190 * alphabsd-nat.c: Update copyright year.
7191 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
7192
7193 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
7194 and M68K_A2_REGNUM.
7195
7196 * m68k-tdep.c (m68k_svr4_return_value): Implement
7197 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7198
7199 2004-05-16 Mark Kettenis <kettenis@gnu.org>
7200
7201 * sol-thread.c Update copyright year. Fix various coding
7202 standards violations. Tweak a few comments.
7203 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
7204 Delete prototypes.
7205
7206 2004-05-15 Randolph Chung <tausq@debian.org>
7207
7208 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
7209 as pointer instead of array reference since HPUX compiler does
7210 not accept unsized array arguments.
7211 * somsolib.c (dld_flags_buffer): Use constant array size.
7212
7213 2004-05-15 Mark Kettenis <kettenis@gnu.org>
7214
7215 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
7216 offset with decimal offset.
7217 (amd64obsd_sigcontext_addr): Return correct address for entire
7218 signal trampoline.
7219
7220 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
7221 instead of get_frame_base.
7222
7223 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
7224 (fill_gregset): Use regcache_raw_collect.
7225
7226 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
7227 ppcobsd-tdep.c.
7228
7229 * config/sparc/tm-nbsd64.h: Remove file.
7230 * config/tm-sunos.h: Remove file.
7231
7232 2004-05-15 Joel Brobecker <brobecker@gnat.com>
7233
7234 * rs6000-tdep.c (store_param_on_stack_p): New function,
7235 an improved version of some code extracted from skip_prologue().
7236 (skip_prologue): Use store_param_on_stack_p() to detect
7237 instructions saving a parameter on the stack. Detect when r0
7238 is used to save a parameter.
7239 Do not mark "li rx, SIMM" instructions as part of the prologue,
7240 unless the following instruction is also part of the prologue.
7241
7242 2004-05-14 Andrew Cagney <cagney@redhat.com>
7243
7244 * infrun.c (handle_inferior_event): Simplify
7245 STEP_OVER_UNDEBUGGABLE.
7246
7247 * infrun.c (handle_step_into_function): Delete function.
7248 (handle_inferior_event): Inline calls to
7249 handle_step_into_function.
7250
7251 2004-05-14 Jerome Guitton <guitton@gnat.com>
7252
7253 * rs6000-nat.c: Fix a comment.
7254
7255 2004-05-12 David Anderson <davea@sgi.com>
7256
7257 Committed by Jim Blandy <jimb@redhat.com>:
7258 * regcache.c (struct regcache_descr): fix comment spelling.
7259
7260 2004-05-13 J. Brobecker <brobecker@gnat.com>
7261
7262 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
7263 Fixes a link link failure.
7264
7265 2004-05-13 J. Brobecker <brobecker@gnat.com>
7266
7267 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
7268 error that was causing the build to fail.
7269
7270 2004-05-13 J. Brobecker <brobecker@gnat.com>
7271
7272 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
7273 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
7274
7275 2004-05-13 Andrew Cagney <cagney@redhat.com>
7276
7277 * infrun.c (handle_inferior_event): Check for
7278 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
7279 calls. Update comments.
7280
7281 2004-05-13 Jim Blandy <jimb@redhat.com>
7282
7283 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
7284 (fetch_regs_user_thread, fetch_regs_kernel_thread)
7285 (store_regs_user_thread, store_regs_kernel_thread): Use
7286 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
7287 * ppc-linux-nat.c (fill_gregset): Same.
7288 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
7289 (ppc_linux_sigtramp_cache): Same.
7290 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
7291 (ppcnbsd_sigtramp_cache_init): Same.
7292 * rs6000-nat.c (fetch_core_registers): Same.
7293 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
7294 (rs6000_frame_cache): Same.
7295
7296 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
7297 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
7298 of assuming that the gprs are numbered starting with zero.
7299 * ppc-linux-nat.c (fill_gregset): Same.
7300 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
7301 * ppcnbsd-nat.c (getregs_supplies): Same.
7302 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
7303 * rs6000-nat.c (fetch_core_registers): Same.
7304 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
7305
7306 2004-05-07 Michael Snyder <msnyder@redhat.com>
7307
7308 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
7309 LOC_COMPUTED_ARG, and LOC_INDIRECT.
7310
7311 2004-05-13 Andrew Cagney <cagney@redhat.com>
7312
7313 * infrun.c (handle_inferior_event): Use frame_unwind_id.
7314
7315 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
7316
7317 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
7318 base_address for shared libraries.
7319
7320 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
7321
7322 * MAINTAINERS (write after approval): Add myself.
7323
7324 2004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
7325
7326 * breakpoint.c (bpstat_stop_status): Add new argument
7327 STOPPED_BY_WATCHPOINT. Use it instead of testing
7328 target_stopped_data_address agaist 0 to check whether
7329 or not we stopped due to a hardware watchpoint.
7330 * breakpoint.h (bpstat_stop_status): Adapt prototype.
7331 * infrun.c (handle_inferior_event): Call bpstat_stop_status
7332 with new argument.
7333
7334 2004-05-12 Jim Blandy <jimb@redhat.com>
7335
7336 * configure.in: When checking whether we should use the -bbigtoc
7337 option, don't forget to restore the original value of LDFLAGS.
7338 * configure: Regenerated.
7339
7340 2004-05-12 Andrew Cagney <cagney@redhat.com>
7341
7342 * thread.c (load_infrun_state): Delete step_sp.
7343 * infrun.c (context_switch): Ditto.
7344 * inferior.h (step_sp): Ditto.
7345 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
7346 * gdbthread.h (struct thread_info, save_infrun_state)
7347 (restore_infrun_state): Ditto.
7348
7349 2004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
7350
7351 * MAINTAINERS (write after approval): Add myself.
7352
7353 2004-05-12 Andrew Cagney <cagney@redhat.com>
7354
7355 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
7356 eliminate reference to step_sp.
7357 (struct execution_control_state, init_execution_control_state)
7358 (handle_inferior_event, keep_going): Delete update_step_sp and
7359 step_sp.
7360 * infcmd.c (step_sp): Note that variable is unused.
7361
7362 2004-05-11 Andrew Cagney <cagney@redhat.com>
7363
7364 * infrun.c (step_over_function): Delete function.
7365 (handle_step_into_function): Use insert_step_resume_breakpoint.
7366 (insert_step_resume_breakpoint): Fix assertion.
7367
7368 2004-05-11 Nick Roberts <nickrob@gnu.org>
7369
7370 * utils.c (defaulted_query): Just use the normal query input type
7371 when printing the annotations.
7372
7373 2004-05-11 Andrew Cagney <cagney@redhat.com>
7374
7375 * infrun.c (handle_inferior_event): Simplify code handling
7376 step-into or return-from a signal trampoline.
7377
7378 2004-05-11 Andrew Cagney <cagney@redhat.com>
7379
7380 * ppcnbsd-tdep.c: Include "gdb_assert.h".
7381 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
7382
7383 2004-05-10 Jim Blandy <jimb@redhat.com>
7384
7385 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
7386 with a call to internal_error.
7387
7388 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
7389 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
7390 processor variant lacks those registers.
7391 (ppc_floating_point_unit_p): Change description to make it clear
7392 that this returns info about the ISA, not the ABI.
7393 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
7394 return true or false by checking tdep->ppc_fp0_regnum and
7395 tdep->ppc_fpscr_regnum. The original code replicated the BFD
7396 arch/mach switching done in rs6000_gdbarch_init; it's better to
7397 keep that logic there, and just check the results here.
7398 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
7399 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
7400 floating-point registers.
7401 (ppc_supply_fpregset, ppc_collect_fpregset)
7402 (rs6000_push_dummy_call, rs6000_extract_return_value)
7403 (rs6000_store_return_value): Assert that we have floating-point
7404 registers.
7405 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
7406 (rs6000_frame_cache): Don't note the locations at which
7407 floating-point registers were saved if we have no fprs.
7408 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
7409 registers.
7410 (fetch_regs_user_thread, fetch_regs_kernel_thread)
7411 (store_regs_user_thread, store_regs_kernel_thread): Only call
7412 supply_fprs / fill_fprs if we actually have floating-point
7413 registers.
7414 (special_register_p): Check ppc_fpscr_regnum before matching
7415 against it.
7416 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
7417 supply / collect fpscr if we don't have it.
7418 * ppc-bdm.c: #include "gdb_assert.h".
7419 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
7420 have floating-point registers, since I can't test this code on
7421 FP-free systems to adapt it.
7422 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
7423 fpscr and floating point register numbers if they don't exist.
7424 (fetch_register): Assert that we have floating-point registers
7425 before we reach the code that handles them.
7426 (store_register): Same. And use tdep instead of calling
7427 gdbarch_tdep again.
7428 (fill_fpregset): Don't try to collect FP registers and fpscr if we
7429 don't have them.
7430 (ppc_linux_sigtramp_cache): Don't record the saved locations of
7431 fprs and fpscr if we don't have them.
7432 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
7433 don't have them.
7434 * ppcnbsd-nat.c: #include "gdb_assert.h".
7435 (getfpregs_supplies): Assert that we have floating-point registers.
7436 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
7437 * ppcobsd-tdep.c: #include "gdb_assert.h".
7438 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
7439 have floating-point registers.
7440 * rs6000-nat.c (regmap): Don't match against the fpscr and
7441 floating point register numbers if they don't exist.
7442 (fetch_inferior_registers, store_inferior_registers,
7443 fetch_core_registers): Only fetch / store / supply the
7444 floating-point registers and the fpscr if we have them.
7445 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
7446 (ppcobsd-tdep.o): Update dependencies.
7447
7448 2004-05-10 Andrew Cagney <cagney@redhat.com>
7449
7450 * infrun.c (through_sigtramp_breakpoint): Delete variable.
7451 (context_switch): Do not switch through_sigtramp_breakpoint.
7452 * gdbthread.h (save_infrun_state, load_infrun_state)
7453 (struct thread_info): Delete through_sigtramp_breakpoint parameter
7454 and structure member.
7455 * thread.c (load_infrun_state, save_infrun_state): Update.
7456
7457 2004-05-10 Mark Kettenis <kettenis@gnu.org>
7458
7459 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
7460
7461 2004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
7462
7463 * acinclude.m4: Quote macro names being defined by AC_DEFUN
7464 throughout.
7465 * aclocal.m4: Regenerate.
7466
7467 2004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
7468
7469 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
7470
7471 2004-05-10 Andrew Cagney <cagney@redhat.com>
7472
7473 * infrun.c (check_sigtramp2): Delete function.
7474 (handle_inferior_event): When single stepping, and taking a
7475 signal, set a breakpoint at the signal return address. Delete
7476 redundant calls to check_sigtramp2.
7477 (insert_step_resume_breakpoint): New function.
7478 (through_sigtramp_breakpoint, handle_inferior_event)
7479 (follow_exec, wait_for_inferior, fetch_inferior_event)
7480 (currently_stepping, keep_going): Delete most uses of
7481 through_sigtramp_breakpoint, not that it should be deleted.
7482 (delete_breakpoint_current_contents): Delete function.
7483
7484 2004-05-10 Randolph Chung <tausq@debian.org>
7485
7486 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
7487 target.
7488 * config/pa/tm-linux.h: New file.
7489
7490 2004-05-10 Daniel Jacobowitz <drow@mvista.com>
7491
7492 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
7493 of prefixes. Don't print the prefix twice in the CLI.
7494
7495 2004-05-10 Jim Blandy <jimb@redhat.com>
7496
7497 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
7498 collect all the gprs.
7499
7500 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
7501 loop collecting gprs.
7502
7503 2004-05-09 Andrew Cagney <cagney@redhat.com>
7504
7505 * remote-vx.c (net_step): Delete step-range code.
7506 * remote.c (remote_resume, init_all_packet_configs)
7507 (set_remote_protocol_E_packet_cmd)
7508 (show_remote_protocol_E_packet_cmd)
7509 (remote_protocol_E, show_remote_cmd, _initialize_remote)
7510 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
7511 (show_remote_protocol_e_packet_cmd): Ditto.
7512
7513 2004-05-09 Mark Kettenis <kettenis@gnu.org>
7514
7515 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
7516
7517 * hppa-tdep.h: Update copyright year.
7518 (struct trad_frame_saved_reg): Add opaque declaration.
7519
7520 * amd64-tdep.c (amd64_return_value): Implement
7521 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7522
7523 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
7524 (m68k_value_to_register): New functions.
7525 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
7526 value_to_register.
7527
7528 * defs.h (enum return_value_convention): Add
7529 RETURN_VALUE_ABI_RETURNS_ADDRESS and
7530 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
7531 * infcmd.c (legacy_return_value): New function.
7532 (print_return_value): Rwerite to implement
7533 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7534 * values.c (using_struct_return): Check for inequality to
7535 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
7536 RETURN_VALUE_STRUCT_CONVENTION.
7537 * i386-tdep.c (i386_return_value): Implement
7538 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7539
7540 * vax-tdep.c: Tweak comments. Reorder include files. Don't
7541 include "symtab.h", "opcode/vax.h" and "inferior.h".
7542 (vax_skip_prologue): Replace calls to read_memory_integer by calls
7543 to read_memory_unsigned_integer.
7544 (vax_gdbarch_init): Reorder.
7545 (_initialize_vax_tdep): Spell out prototype.
7546 * Makefile.in (vax-tdep.o): Update dependencies.
7547
7548 2004-05-08 Andrew Cagney <cagney@redhat.com>
7549
7550 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
7551 * target.c (target_detach, target_disconnect): Ditto.
7552
7553 * infcall.c (call_function_by_hand): When no
7554 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
7555 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
7556 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
7557 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7558 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7559
7560 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
7561 * gdbarch.h, gdbarch.c: Re-generate.
7562 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7563 deprecated_fix_call_dummy.
7564 * v850-tdep.c (v850_gdbarch_init): Ditto.
7565 * infcall.c (call_function_by_hand): Do not call
7566 DEPRECATED_FIX_CALL_DUMMY.
7567
7568 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
7569 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
7570 * gdbarch.h, gdbarch.c: Re-generate.
7571 * arm-linux-tdep.c (arm_linux_call_dummy_words)
7572 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
7573 deprecated_sizeof_call_dummy_words.
7574 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
7575 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7576 * v850-tdep.c (v850_gdbarch_init): Ditto.
7577 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
7578 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
7579 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7580 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7581 * arch-utils.h (legacy_call_dummy_words)
7582 (legacy_sizeof_call_dummy_words): Delete declarations.
7583 * arch-utils.c (legacy_call_dummy_words)
7584 (legacy_sizeof_call_dummy_words): Delete variables.
7585
7586 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
7587 * gdbarch.h, gdbarch.c: Re-generate.
7588 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
7589 * infcall.c (call_function_by_hand): Eliminate call to
7590 DEPRECATED_PUSH_DUMMY_FRAME.
7591 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
7592 push_dummy_frame.
7593 (ns32k_push_dummy_frame): Delete function.
7594
7595 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7596 deprecated_call_dummy_breakpoint_offset or
7597 deprecated_call_dummy_start_offset.
7598 * dummy-frame.c, arm-tdep.c: Update comments.
7599 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
7600 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
7601 * gdbarch.h, gdbarch.c: Re-generate.
7602
7603 * infcall.c (legacy_push_dummy_code): Delete function.
7604 (push_dummy_code): Delete call.
7605
7606 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
7607 * gdbarch.h, gdbarch.c: Re-generate.
7608 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
7609 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
7610 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
7611 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
7612
7613 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
7614 (struct frame_info): Delete opaque declaration.
7615 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
7616 * frame.c (get_frame_type): Delete call.
7617
7618 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
7619 pc_in_call_dummy.
7620 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
7621 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
7622
7623 2004-05-08 Mark Kettenis <kettenis@gnu.org>
7624
7625 * alphanbsd-tdep.c: Include "gdb_string.h".
7626 * armnbsd-tdep.c: Update copyright year.
7627 Include "gdb_string.h".
7628 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
7629 dependencies.
7630
7631 * delta68-nat.c: Remove file.
7632 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
7633 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
7634 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
7635 (delta68-nat.o): Remove dependency.
7636
7637 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
7638 function.
7639 (m68k_gdbarch_init): Don't set
7640 deprecated_frameless_function_invocation.
7641
7642 2004-05-07 Randolph Chung <tausq@debian.org>
7643
7644 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
7645 read_memory_nobpt for code reading when doing frame unwinding.
7646 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
7647
7648 2004-05-07 Randolph Chung <tausq@debian.org>
7649
7650 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
7651 instead of sp, handle sigaltstack case.
7652 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
7653 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
7654 signal handler and not that of the caller.
7655 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
7656 hppa_linux_sigtramp_find_sigcontext.
7657
7658 2004-05-07 Randolph Chung <tausq@debian.org>
7659
7660 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
7661 hppa-linux-nat.c.
7662 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
7663 * hppa-linux-nat.c (fetch_register, store_register): Define.
7664 (fetch_inferior_registers, store_inferior_registers): Define.
7665 (supply_gregset): Add comment and clean up some unneeded code.
7666 (fill_gregset): Add comment and fix so that it saves registers in
7667 the right place in the gregset.
7668 (fill_fpregset): Fix buffer overrun problem.
7669 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
7670
7671 2004-05-07 Randolph Chung <tausq@debian.org>
7672
7673 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
7674 do common handling of the pcoqt register.
7675 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
7676 to use helper function.
7677 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
7678 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
7679 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
7680 generic fallback unwinder when all else fails.
7681 (hppa_gdbarch_init): Add fallback sniffer.
7682 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
7683 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
7684 to use helper function.
7685
7686 2004-05-08 Joel Brobecker <brobecker@gnat.com>
7687
7688 * config/djgpp/fnchange.lst: Add translation rules for
7689 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
7690
7691 2004-05-08 Mark Kettenis <kettenis@gnu.org>
7692
7693 * frame.c (get_prev_frame_1): Work around GCC bug.
7694 * frame.h: Add comment about GCC bug.
7695
7696 2004-05-07 Andrew Cagney <cagney@redhat.com>
7697
7698 * observer.c: Include "commands.h" and "gdbcmd.h".
7699 (observer_debug, _initialize_observer): Add the
7700 command "set/show debug observer".
7701 * observer.sh: When observer debugging, log notify calls.
7702 * Makefile.in (observer.o): Update dependencies.
7703
7704 2004-05-07 Jason Molenda (jmolenda@apple.com)
7705
7706 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
7707
7708 2004-05-07 Jim Blandy <jimb@redhat.com>
7709
7710 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
7711 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
7712 to recognize gpr regnums, instead of assuming that
7713 tdep->ppc_fp0_regnum marks the end of the general-purpose
7714 registers.
7715
7716 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
7717 the given architecture has floating-point registers.
7718
7719 2004-05-07 Andrew Cagney <cagney@redhat.com>
7720
7721 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
7722 macro defined to 1.
7723 * gdbarch.h, gdbarch.c: Re-generate.
7724 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7725 deprecated_use_generic_dummy_frames.
7726
7727 2004-05-07 Brian Ford <ford@vss.fsi.com>
7728
7729 * NEWS: Mention Cygwin DWARF 2 support.
7730
7731 2004-05-07 Andrew Cagney <cagney@redhat.com>
7732
7733 * objfiles.h (struct entry_info): Delete unused fields
7734 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
7735 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
7736 * mipsread.c (mipscoff_symfile_read): Update.
7737 * mdebugread.c (parse_partial_symbols): Update.
7738 * dwarfread.c (read_file_scope): Update.
7739 * dwarf2read.c (read_file_scope): Update.
7740 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
7741 * coffread.c (complete_symtab): Update.
7742
7743 2004-05-07 Mark Kettenis <kettenis@gnu.org>
7744
7745 * infcall.c (_initialize_infcall): Fix typo.
7746
7747 2004-05-07 Andrew Cagney <cagney@redhat.com>
7748
7749 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
7750 * command.h (add_setshow_zinteger_cmd): Declare.
7751
7752 2004-05-06 Randolph Chung <tausq@debian.org>
7753
7754 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
7755 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
7756 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
7757 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
7758 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
7759 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
7760 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
7761 definitions ...
7762 * hppa-tdep.h: ... to here, with HPPA_ prefix.
7763 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
7764 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
7765 (hppa64_hpux_frame_find_saved_regs_in_sig)
7766 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
7767 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
7768 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
7769 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
7770 (hppa_linux_sigtramp_frame_prev_register): Likewise.
7771 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
7772 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
7773 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
7774 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
7775 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
7776 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
7777 (hppa32_register_type, hppa_cannot_store_register)
7778 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
7779 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
7780 * hpread.c (hpread_process_one_debug_symbol): Likewise.
7781 * pa64solib.c (pa64_solib_have_load_event)
7782 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
7783 (pa64_solib_unloaded_library_pathname): Likewise.
7784 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
7785 (som_solib_library_pathname): Likewise.
7786
7787 2004-05-05 Jim Ingham <jingham@apple.com>
7788
7789 * breakpoint.c (create_breakpoints): Copy the ignore count and
7790 thread id over from the pended breakpoint to the actual
7791 breakpoint.
7792
7793 2004-05-05 Andrew Cagney <cagney@redhat.com>
7794
7795 * gdbarch.sh (PARM_BOUNDARY): Delete.
7796 gdbarch.h, gdbarch.c: Re-generate.
7797 * valops.c (PARM_BOUNDARY): Delete macro.
7798 (value_push): Delete PARM_BOUNDARY code.
7799 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
7800
7801 2004-05-04 Jim Blandy <jimb@redhat.com>
7802
7803 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
7804 Don't assume that the gprs, fprs, and UISA sprs are
7805 contiguous, start at register number zero, and end with fpscr.
7806 Instead, use the numbers from the tdep structure.
7807
7808 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
7809 should no longer be used in code specific to the RS6000 and its
7810 derivatives.
7811 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
7812 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
7813 tdep->ppc_fp0_regnum.
7814 (ppc_supply_fpregset, ppc_collect_fpregset)
7815 (rs6000_push_dummy_call, rs6000_extract_return_value)
7816 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
7817 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
7818 FP0_REGNUM.
7819 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
7820 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
7821 Same.
7822 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
7823 bdm_ppc_store_registers): Same.
7824 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
7825 (store_register, fill_fpregset): Same.
7826 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
7827 (ppc_linux_supply_fpregset): Same.
7828 * ppcnbsd-nat.c (getfpregs_supplies): Same.
7829 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
7830 Same.
7831 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
7832 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
7833 ppc64_sysv_abi_return_value): Same.
7834 * rs6000-nat.c (regmap, fetch_inferior_registers)
7835 (store_inferior_registers, fetch_core_registers): Same.
7836
7837 2004-05-01 Mark Kettenis <kettenis@gnu.org>
7838
7839 * m68knbsd-nat.c: Remove file.
7840 * m68knbsd-tdep.c: Remove file.
7841 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
7842 dependencies.
7843 * configure.host: Add m68k-*-netbsdelf*.
7844 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
7845 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
7846 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
7847 (XM_FILE): Remove.
7848 * config/m68k/nbsdelf.mh: New file.
7849 * config/m68k/nbsd.mt: New file.
7850 * config/m68k/nbsdaout.mt: Remove file.
7851 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
7852 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
7853 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
7854 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
7855 (use_struct_convention): Remove prototype.
7856 (USE_STRUCT_CONVENTION): Remove define.
7857 * config/m68k/xm-nbsd.h: Remove file.
7858
7859 2004-05-04 Michael Snyder <msnyder@redhat.com>
7860
7861 * m68k-tdep.c (m68k_gdbarch_init): Default to using
7862 reg_struct_return method (as gcc usually does for cross targets).
7863
7864 2004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7865
7866 Committed by Andrew Cagney.
7867 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
7868 alignment padding when accessing ucontext struct members.
7869
7870 2004-05-04 Jim Blandy <jimb@redhat.com>
7871
7872 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
7873 'ppc_gplast_regnum' member.
7874 (ppc_num_gprs): New enum constant.
7875 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
7876 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
7877 * rs6000-nat.c (regmap, fetch_inferior_registers,
7878 store_inferior_registers): Same.
7879 * rs6000-tdep.c (e500_pseudo_register_read)
7880 (e500_pseudo_register_write): Same.
7881 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
7882
7883 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
7884 * ppc-tdep.h (ppc_num_fprs): New enum constant.
7885 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
7886 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
7887 FPLAST_REGNUM.
7888 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
7889 Same.
7890 * ppc-linux-nat.c (ppc_register_u_addr): Same.
7891 * rs6000-nat.c (regmap, fetch_inferior_registers)
7892 (store_inferior_registers): Same.
7893
7894 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
7895 with FPLAST_REGNUM.
7896
7897 2004-05-03 Joel Brobecker <brobecker@gnat.com>
7898
7899 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
7900 failure detected by recent versions of GCC.
7901 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
7902 to be consistent with the usage in dwarf2_create_include_psymtab.
7903
7904 2004-05-03 Michael Snyder <msnyder@redhat.com>
7905
7906 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
7907 (heuristic_proc_start): Whitespace cleanup.
7908
7909 2004-05-04 Mark Kettenis <kettenis@gnu.org>
7910
7911 * sun3-nat.c: Remove file.
7912 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
7913 dependencies.
7914 (ALLDEPFILES): Remove sun3-nat.c.
7915 (sun3-nat.o): Remove dependencies.
7916
7917 * i386-interix-nat.c, i386-interix-tdep.c,
7918 config/i386/nm-interix.h, config/i386/interix.mh,
7919 config/i386/interix.mt: Remove files.
7920 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
7921 dependencies.
7922
7923 2004-05-03 Mark Kettenis <kettenis@gnu.org>
7924
7925 * m68k-tdep.h (struct gdbarch_tdep): Add member
7926 struct_value_regnum.
7927 (m68k_svr4_init_abi): New prototype.
7928 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
7929 different calling conventions.
7930 (m68k_extract_return_value): Remove code dealing with single-field
7931 structs.
7932 (m68k_store_return_value): Remove code dealing with single-field
7933 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
7934 (m68k_extract_struct_value_address): Remove function.
7935 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
7936 (m68k_reg_struct_return_p, m68k_return_value)
7937 (m68k_svr4_return_value): New functions.
7938 (m68k_use_struct_convention): Remove function.
7939 (m68k_push_dummy_call): Use new struct_value_regnum member of
7940 `struct gdbarch_tdep' instead of hardcoded register number to
7941 store STRUCT_ADDR.
7942 (m68k_svr4_init_abi): New function.
7943 (m68k_gdbarch_init): Don't set extract_return_value,
7944 store_return_values, deprecated_extract_struct_value_address and
7945 use_struct_convention. Set return_value instead. Initialize new
7946 struct_value_regnum member of `struct gdbarch_tdep'.
7947 * m68klinux-tdep.c: Update copyright year.
7948 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
7949 (m68k_linux_extract_struct_value_address): Remove function.
7950 (m68k_linux_init_abi): Don't set extract_return_value,
7951 store_return_values, deprecated_extract_struct_value_address and
7952 use_struct_convention. Call m68k_svr4_init_abi but override the
7953 new struct_value_regnum member of `struct gdbarch_tdep'.
7954 * Makefile.in (m68k-tdep.o): Update dependencies.
7955
7956 2004-05-03 J. Brobecker <brobecker@gnat.com>
7957
7958 * dwarf2read.c (line_header): Add new included_p field in
7959 field file_names.
7960 (partial_die_info): New field has_stmt_list. New field line_offset.
7961 (dwarf2_create_include_psymtab): New function.
7962 (dwarf2_build_include_psymtabs): New function.
7963 (add_file_name): Add forward declaration. Initialize new field.
7964 (dwarf_decode_lines): Add new parameter. Enhance this procedure
7965 to be able to determine the list of files included by the
7966 given unit, and build their associated psymtabs.
7967 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
7968 files as well.
7969 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
7970 (read_file_scope): Update call to dwarf_decode_lines.
7971 (read_partial_die): Handle DW_AT_stmt_list attributes.
7972
7973 2004-05-02 Michael Chastain <mec.gnu@mindspring.com>
7974
7975 Unfix PR gdb/1626.
7976 * configure.in: Revert special case for osf5.*.
7977 * configure: Regenerate.
7978
7979 2004-05-02 Jim Blandy <jimb@redhat.com>
7980
7981 Move the symbol-file-from-memory functions into their own file.
7982 * symfile-mem.c, symfile-mem.h: New files.
7983 * symfile.c (symbol_file_add_from_bfd): New function.
7984 (symbol_file_add): Call symbol_file_add_from_bfd.
7985 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
7986 Moved to symfile-mem.c.
7987 (_initialize_symfile): Move definition of
7988 add-symbol-file-from-memory command to symfile-mem.c.
7989 * symfile.h (symbol_file_add_from_bfd): New declaration.
7990 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
7991 * config/powerpc/linux.mt (TDEPFILES): Same.
7992 * Makefile.in (SFILES): Add symfile-mem.c.
7993 (symfile_mem_h): New variable.
7994 (HFILES_NO_SRCDIR): Add symfile-mem.h.
7995 (symfile-mem.o): New rule.
7996
7997 2004-05-01 Andrew Cagney <cagney@redhat.com>
7998
7999 * breakpoint.c (insert_bp_location): Use get_frame_id, and
8000 frame_find_by_id instead of frame_relative_level.
8001 (do_enable_breakpoint): Ditto.
8002 * thread.c: Update copyright.
8003 (info_threads_command): Ditto, simplify.
8004
8005 * frame.c (deprecated_generic_get_saved_register): Delete
8006 function, moved to "xstormy16-tdep.c".
8007 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
8008 deprecated_generic_get_saved_register from "frame.c".
8009 (xstormy16_frame_saved_register): Call
8010 xstormy16_get_saved_register.
8011 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
8012 static.
8013 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
8014 * frame.h (deprecated_generic_get_saved_register): Delete.
8015
8016 2004-05-01 Michael Chastain <mec.gnu@mindspring.com>
8017
8018 * dwarfread.c: Update documentation on the state of dwarf-1.
8019
8020 2004-05-01 Andrew Cagney <cagney@redhat.com>
8021
8022 * stack.c (select_frame_command): Delete call to
8023 frame_relative_level.
8024 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
8025 Delete #if0 code.
8026 (frame_info): Do not print FRAMELESS.
8027 (print_block_frame_labels): Replace DEPRECATED_STREQ.
8028 (catch_info): Delete #if0 code.
8029
8030 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
8031 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
8032 of frame_relative_level.
8033 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
8034 to SENTINEL_FRAME.
8035 * frame.h (enum frame_type): Add SENTINEL_FRAME.
8036 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
8037 frame_relative_level.
8038
8039 * frame.h (deprecated_set_frame_type): Delete declaration.
8040 * frame.c (deprecated_set_frame_type): Delete function, update
8041 comments.
8042
8043 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
8044 * gdbarch.h, gdbarch.c: Re-generate.
8045 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
8046 (shnbsd_pc_in_sigtramp): Delete.
8047 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
8048 pc_in_sigtramp.
8049 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
8050 pc_in_sigtramp.
8051 * frame.h: Update comments.
8052 * ppc-linux-tdep.c: Update comments.
8053 * breakpoint.c (bpstat_what): Update comments.
8054
8055 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
8056 m68klinux-tdep.o's dependencies, were previously added to
8057 m68klinux-nat.o.
8058
8059 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
8060 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
8061 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
8062 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
8063 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
8064
8065 * Makefile.in (m68klinux-nat.o): Update dependencies.
8066 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8067 (m68k_linux_sigtramp_frame_cache)
8068 (m68k_linux_sigtramp_frame_this_id)
8069 (m68k_linux_sigtramp_frame_prev_register)
8070 (m68k_linux_sigtramp_frame_unwind)
8071 (m68k_linux_sigtramp_frame_sniffer)
8072 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
8073 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
8074 names, use trad-frame.h.
8075 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
8076 (struct m68k_sigtramp_info): Delete.
8077 * m68k-tdep.c (m68k_sigtramp_frame_cache)
8078 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
8079 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
8080 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
8081 "m68klinux-tdep.c".
8082
8083 * infrun.c (check_sigtramp2): Delete check for
8084 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
8085
8086 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8087
8088 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
8089
8090 2004-05-01 Andrew Cagney <cagney@redhat.com>
8091
8092 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8093 (frv_linux_sigtramp_frame_cache)
8094 (frv_linux_sigtramp_frame_this_id)
8095 (frv_linux_sigtramp_frame_prev_register)
8096 (frv_linux_sigtramp_frame_unwind)
8097 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
8098 include "linux" in function and variable names, directly call
8099 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
8100 the latest trad-frame code.
8101 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
8102 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
8103 * Makefile.in (frv-linux-tdep.o): Update dependencies.
8104 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
8105 * frv-tdep.c (frv_sigtramp_frame_cache)
8106 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
8107 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
8108 frv-linux-tdep.c.
8109 (frv_gdbarch_init): Do not append a sigtramp sniffer.
8110 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
8111 (frv_set_sigcontext_reg_addr): Delete function.
8112
8113 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
8114 (DEPRECATED_SIGTRAMP_END): Delete.
8115 * gdbarch.h, gdbarch.c: Re-generate.
8116 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
8117 * config/vax/tm-vaxbsd.h: Update copyright.
8118 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8119 (DEPRECATED_IN_SIGTRAMP): Define.
8120 * config/m68k/tm-nbsd.h: Update copyright.
8121 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8122 (DEPRECATED_IN_SIGTRAMP): Define.
8123
8124 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8125
8126 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
8127 encondings. Fixes PR gdb/1628.
8128
8129 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
8130 DW_CFA_restore state without a matching DW_CFA_remember_state
8131 instead of aborting. Fixes PR backtrace/1589.
8132
8133 2004-04-30 Joel Brobecker <brobecker@gnat.com>
8134
8135 * MAINTAINERS: Add self as AIX maintainer.
8136 Update my e-mail address in write-after-approval section.
8137
8138 2004-04-30 Andrew Cagney <cagney@redhat.com>
8139
8140 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
8141 (legacy_get_prev_frame): Ditto.
8142
8143 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
8144 (mips_gdbarch_init): Do not set pc_in_sigtramp.
8145 * mipsread.c (sigtramp_address): Delete extern variable.
8146 (mipscoff_new_init): Delete reference.
8147 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
8148 (fixup_sigtramp): Delete function.
8149 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
8150 (fixup_sigtramp): Delete declarations.
8151
8152 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
8153 deprecated_pc_in_sigtramp.
8154 (ppcnbsd_pc_in_sigtramp): Delete function.
8155
8156 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8157
8158 * config/m68k/nm-nbsd.h: Tweak comments.
8159 * config/m68k/nm-nbsdaout.h: Likewise.
8160
8161 2004-04-30 Andrew Cagney <cagney@redhat.com>
8162
8163 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
8164 legacy_pc_in_sigtramp.
8165 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
8166
8167 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8168
8169 Add OpenBSD/m68k support.
8170 * NEWS (New native configurations): Mention OpenBSD/m68k.
8171 * m68kbsd-tdep.c: New file.
8172 * m68kbsd-nat.c: New file.
8173 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
8174 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
8175 * configure.host: Add m68k-*-openbsd.
8176 * configure.tgt: Add m68k-*-openbsd.
8177 * config/m68k/tm-obsd.h: New file.
8178 * config/m68k/obsd.mt: New file.
8179 * config/m68k/obsd.mh: New file.
8180 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
8181 m68kbsd-tdep.c.
8182
8183 2004-04-30 Andrew Cagney <cagney@redhat.com>
8184
8185 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
8186 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
8187
8188 2004-04-30 Mark Kettenis <kettenis@gnu.org>
8189
8190 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
8191 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
8192
8193 2004-04-30 Brian Ford <ford@vss.fsi.com>
8194
8195 Revert 2004-04-16 change.
8196 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
8197 (i386_coff_init_abi): Remove.
8198 * i386-tdep.h (i386_coff_init_abi): Remove.
8199 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
8200
8201 2004-04-30 Andrew Cagney <cagney@redhat.com>
8202
8203 * blockframe.c (find_pc_partial_function): Delete use of
8204 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
8205 DEPRECATED_SIGTRAMP_END.
8206
8207 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
8208 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
8209 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
8210 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
8211 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
8212
8213 * defs.h (deprecated_inside_entry_file): Delete declaration.
8214 * blockframe.c (deprecated_inside_entry_file): Delete function.
8215 (legacy_frame_chain_valid): Delete call.
8216 * sh64-tdep.c (sh64_frame_chain): Delete call.
8217 * objfiles.h: Update comments.
8218 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
8219 call.
8220 * frame.c (get_prev_frame): Delete call, update comments.
8221
8222 2004-04-30 Brian Ford <ford@vss.fsi.com>
8223
8224 * MAINTAINERS (Write After Approval): Add myself.
8225
8226 2004-04-30 Andrew Cagney <cagney@redhat.com>
8227
8228 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
8229 * gdbarch.h, gdbarch.c: Re-generate.
8230 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
8231 code.
8232
8233 2004-04-30 Andrew Cagney <cagney@redhat.com>
8234
8235 * gdb-events.sh (selected_thread_changed)
8236 (selected_frame_level_changed, target_changed): Delete.
8237 * gdb-events.h, gdb-events.c: Re-generate.
8238 * valops.c (value_assign): Update.
8239 * stack.c (select_frame_command, up_silently_base)
8240 (down_silently_base): Update.
8241
8242 2004-04-29 Andrew Cagney <cagney@redhat.com>
8243
8244 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
8245 registers correctly.
8246 (print_gp_register_row, mips32_heuristic_proc_desc)
8247 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
8248 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
8249 references to mips_isa_regsize.
8250
8251 2004-04-29 Andrew Cagney <cagney@redhat.com>
8252
8253 * mips-tdep.c (struct gdbarch_tdep): Delete
8254 mips_fp_register_double.
8255 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
8256 mips_abi_regsize.
8257 (mips_gdbarch_init): Do not set mips_fp_register_double.
8258 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
8259
8260 2004-04-29 Joel Brobecker <brobecker@gnat.com>
8261
8262 Committed by Andrew Cagney.
8263 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
8264 function calls.
8265
8266 2004-04-29 Andrew Cagney <cagney@redhat.com>
8267
8268 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
8269 gdbarch, use mips_abi, update callers.
8270 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
8271 mips_abi_regsize, update callers.
8272 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
8273 mips_default_abi_regsize.
8274 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
8275 mips_default_abi_regsize.
8276
8277 2004-04-29 Andrew Cagney <cagney@redhat.com>
8278
8279 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
8280 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
8281 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
8282 mips_default_abi_regsize.
8283 (mips_isa_regsize): Rename mips_regisze.
8284 * mipsnbsd-tdep.c: Update.
8285 * mips-linux-tdep.c: Update.
8286 * irix5-nat.c: Update.
8287 * mips-tdep.h (mips_isa_regsize): Update.
8288
8289 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
8290 Delete all disabled code.
8291 * gdb-events.h, gdb-events.c: Re-generate.
8292
8293 2004-04-19 Jerome Guitton <guitton@gnat.com>
8294 Mark Kettenis <kettenis@gnu.org>
8295
8296 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
8297 the function begins with a branch instruction.
8298
8299 2004-04-29 Mark Kettenis <kettenis@gnu.org>
8300
8301 * i386-tdep.c: Fix spelling mistakes.
8302
8303 2004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8304 Andrew Cagney <cagney@redhat.com>
8305
8306 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
8307 <sys/proc.h>.
8308 * acconfig.h: Provide default _KMEMUSER value.
8309 * config.in, configure: Re-generate.
8310 * NEWS: Mention fix.
8311
8312 2004-04-24 Randolph Chung <tausq@debian.org>
8313
8314 * configure.host (hppa*-*-linux*): New target.
8315 * configure.tgt (hppa*-*-linux*): Likewise.
8316 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
8317 gdbarch_init_osabi() call earlier so that osabi-specific frame
8318 unwinders can be registered first.
8319 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
8320 hppa-linux-nat.c.
8321 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
8322 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
8323 * config/pa/linux.mh: New file.
8324 * config/pa/linux.mt: New file.
8325 * config/pa/nm-linux.h: New file.
8326 * config/pa/xm-linux.h: New file.
8327 * hppa-linux-nat.c: New file.
8328 * hppa-linux-tdep.c: New file.
8329
8330 2004-04-28 Randolph Chung <tausq@debian.org>
8331
8332 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
8333 return values.
8334 (hppa32_push_dummy_call): Fix small struct and floating point argument
8335 passing, and make sure the stack frame is properly aligned.
8336
8337 2004-04-28 Andrew Cagney <cagney@redhat.com>
8338
8339 * stack.c (print_stack_frame): Fix description.
8340
8341 * NEWS: Mention gdb/gdbserver/configure execute permission
8342 changed. PR server/519.
8343
8344 2004-04-28 Andrew Cagney <cagney@redhat.com>
8345
8346 * stack.c (print_stack_frame_stub): Delete declaration.
8347 (struct print_stack_frame_args, print_stack_frame)
8348 (print_frame_info, print_frame): Replace "source" with print what.
8349 Replace "print" with "print_level". Replace "args" with
8350 "print_args".
8351 * frame.h (show_and_print_stack_frame, print_stack_frame)
8352 (print_frame_info): Update declarations.
8353 * stack.c (select_and_print_frame, frame_command)
8354 (current_frame_command, up_command, down_command): Update calls -
8355 use get_selected_frame, pass "enum print_what" for source, do not
8356 call frame_relative_level.
8357 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
8358 * remote-rdp.c (remote_rdp_open): Ditto.
8359 * remote-mips.c (common_open): Ditto.
8360 * remote-e7000.c (e7000_start_remote): Ditto.
8361 * ocd.c (ocd_start_remote): Ditto.
8362 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
8363 * infrun.c (normal_stop): Ditto.
8364 * inflow.c (kill_command): Ditto.
8365 * infcmd.c (finish_command): Ditto.
8366 * corelow.c (core_open): Ditto.
8367 * tracepoint.c (finish_tfind_command): Ditto.
8368 * thread.c (info_threads_command, info_threads_command)
8369 (restore_current_thread, do_captured_thread_select): Ditto.
8370 * ada-tasks.c (task_command): Ditto.
8371
8372 2004-04-26 Orjan Friberg <orjanf@axis.com>
8373
8374 * frame.c: Include "observer.h".
8375 (frame_observer_target_changed): New function.
8376 (_initialize_frame): Attach target_changed observer.
8377 * regcache.c: Include "observer.h".
8378 (regcache_observer_target_changed): New function.
8379 (_initialize_regcache): Attach target_changed observer.
8380 * valops.c: Include "observer.h".
8381 (value_assign): Notify target_changed event when modifying register.
8382 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
8383
8384 2004-04-26 Orjan Friberg <orjanf@axis.com>
8385
8386 From Paul Koning <pkoning@equallogic.com>:
8387 * breakpoint.c (free_valchain): New function.
8388 (insert_bp_location, delete_breakpoint): Use free_valchain.
8389 (remove_breakpoint): Do not remove the valchain.
8390 (bpstat_stop_status): If not stopped by watchpoint, skip
8391 watchpoints when generating stop status list.
8392 * infrun.c (handle_inferior_event): Make
8393 stepped_after_stopped_by_watchpoint a global variable.
8394 * remote.c (remote_stopped_data_address): Return watch data
8395 address rather than zero if stepped_after_stopped_by_watchpoint is
8396 set.
8397
8398 2004-04-25 Michael Chastain <mec.gnu@mindspring.com>
8399
8400 Fix PR gdb/1626.
8401 * configure.in: Check for curses after termcap.
8402 On osf5.*, do not check for ncurses.
8403 * configure: Regenerate.
8404
8405 2004-04-25 Mark Kettenis <kettenis@gnu.org>
8406
8407 * ppcobsd-nat.c: Include "ppc-tdep.h".
8408 * Makefile.in (ppcobsd-nat.o): Update dependencies.
8409
8410 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
8411 Fixes PR tdep/1623 and PR tdep/1624.
8412
8413 2004-04-24 Michael Chastain <mec.gnu@mindspring.com>
8414
8415 * xmodem.h, xmodem.c: Remove files.
8416 * Makefile.in: Remove references to xmodem.h, xmodem.c.
8417
8418 2004-04-23 Randolph Chung <tausq@debian.org>
8419
8420 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
8421 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
8422 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
8423 for handling stackless frames.
8424 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
8425
8426 2004-04-23 Randolph Chung <tausq@debian.org>
8427
8428 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
8429 starts at a pc before the frame is created.
8430
8431 2004-04-23 Joel Brobecker <brobecker@gnat.com>
8432
8433 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
8434
8435 2004-04-23 Jerome Guitton <guitton@gnat.com>
8436
8437 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
8438 use convert_typed_floating to get the appropriate format.
8439
8440 2004-04-22 Randolph Chung <tausq@debian.org>
8441
8442 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
8443 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
8444 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
8445 (hppa_sign_extend): Add prototype.
8446 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
8447 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
8448 (sign_extend): Rename with hppa_ prefix and make non-static. Other
8449 hppa targets will also use these functions.
8450 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
8451 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
8452 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
8453 (hppa_gdbarch_init): Remove gdbarch setting of
8454 skip_trampoline_code, in_solib_call_trampoline and
8455 in_solib_return_trampoline.
8456 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
8457 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
8458 hppa_in_solib_call_trampoline.
8459 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
8460 Moved from hppa-tdep.c.
8461 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
8462 in_solib_call_trampoline and in_solib_return_trampoline.
8463
8464 2004-04-22 Randolph Chung <tausq@debian.org>
8465
8466 * hppa-tdep.c (hppa_debug): New variable.
8467 (find_unwind_entry, hppa_frame_cache): Add debug output.
8468 (_initialize_hppa_tdep): Add command to set debug flag.
8469
8470 2004-04-22 Andrew Cagney <cagney@redhat.com>
8471
8472 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
8473 "trad-frame.h".
8474 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
8475 signal trampoline unwinder.
8476 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
8477
8478 2004-04-22 Mark Kettenis <kettenis@gnu.org>
8479
8480 Add OpenBSD/powerpc support.
8481 * NEWS (New native configurations): Mention OpenBSD/powerpc.
8482 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
8483 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
8484 (ppc_collect_fpregset): New prototypes.
8485 * ppcobsd-nat.c: New file.
8486 * ppcobsd-tdep.c: New file.
8487 * ppcobsd-tdep.h: New file.
8488 * rs6000-tdep.c: Include "regset.h".
8489 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
8490 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
8491 New functions.
8492 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
8493 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
8494 (rs6000-tdep.o): Update dependencies.
8495 * configure.host: Add powerpc-*-openbsd.
8496 * configure.tgt: Add powerpc-*-openbsd.
8497 * config/powerpc/obsd.mh: New file.
8498 * config/powerpc/nm-obsd.h: New file.
8499 * config/powerpc/obsd.mt: New file.
8500
8501 2004-04-22 Andrew Cagney <cagney@redhat.com>
8502
8503 * frame.h (show_frame_info): Delete declaration.
8504
8505 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
8506 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
8507 * m32r-tdep.c (m32r_frame_this_id): Ditto.
8508 * frv-tdep.c (frv_frame_this_id): Ditto.
8509 * avr-tdep.c (avr_frame_this_id): Ditto.
8510
8511 2004-04-22 Elena Zannoni <ezannoni@redhat.com>
8512
8513 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
8514
8515 2004-04-22 Jim Blandy <jimb@redhat.com>
8516
8517 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
8518 register number zero.
8519
8520 2004-04-21 Michael Snyder <msnyder@redhat.com>
8521
8522 * mips-tdep.c (heuristic_proc_start):
8523 Warning() already prefixes "Warning: ".
8524
8525 2004-04-21 Andrew Cagney <cagney@redhat.com>
8526
8527 * annotate.h (deprecated_annotate_starting_hook)
8528 (deprecated_annotate_stopped_hook)
8529 (deprecated_annotate_exited_hook)
8530 (deprecated_annotate_signal_hook)
8531 (deprecated_annotate_signalled_hook): Deprecate.
8532 * tracepoint.h (deprecated_create_tracepoint_hook)
8533 (deprecated_delete_tracepoint_hook)
8534 (deprecated_modify_tracepoint_hook)
8535 (deprecated_trace_find_hook)
8536 (deprecated_trace_start_stop_hook): Deprecate.
8537 * target.h (deprecated_target_new_objfile_hook): Deprecate.
8538 * remote.h (deprecated_target_resume_hook)
8539 (deprecated_target_wait_loop_hook): Deprecate.
8540 * gdbcore.h (deprecated_exec_file_display_hook)
8541 (deprecated_file_changed_hook): Deprecate.
8542 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
8543 * defs.h (deprecated_modify_breakpoint_hook)
8544 (deprecated_command_loop_hook, deprecated_show_load_progress)
8545 (deprecated_print_frame_info_listing_hook)
8546 (deprecated_query_hook, deprecated_warning_hook)
8547 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
8548 (deprecated_delete_breakpoint_hook)
8549 (deprecated_interactive_hook, deprecated_registers_changed_hook)
8550 (deprecated_readline_begin_hook, deprecated_readline_hook)
8551 (deprecated_readline_end_hook, deprecated_register_changed_hook)
8552 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
8553 (deprecated_context_hook, deprecated_target_wait_hook)
8554 (deprecated_attach_hook, deprecated_detach_hook)
8555 (deprecated_call_command_hook, deprecated_set_hook)
8556 (deprecated_error_hook, deprecated_error_begin_hook)
8557 (deprecated_ui_load_progress_hook): Deprecate.
8558 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
8559 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
8560 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
8561 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
8562 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
8563 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
8564 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
8565 * annotate.c, aix-thread.c: Update.
8566
8567 2004-04-21 Andrew Cagney <cagney@redhat.com>
8568
8569 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
8570 * vaxnbsd-tdep.c: Include "gdb_string.h".
8571
8572 * symfile.c (symbol_file_add_from_memory): #if 0 function.
8573 (add_symbol_file_from_memory_command): #if 0 function body, call
8574 error instead.
8575
8576 2004-04-21 Andrew Cagney <cagney@redhat.com>
8577
8578 * gdbcore.h: Update copyright.
8579 (deprecated_add_core_fns): Rename add_core_fns.
8580 * win32-nat.c (_initialize_core_win32): Update.
8581 * sun3-nat.c (_initialize_core_sun3): Update.
8582 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
8583 * rs6000-nat.c (_initialize_core_rs6000): Update.
8584 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
8585 * nto-tdep.c (_initialize_nto_tdep): Update.
8586 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
8587 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
8588 * mips-nat.c (_initialize_core_mips): Update.
8589 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
8590 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
8591 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
8592 * lynx-nat.c (_initialize_core_lynx): Update.
8593 * irix5-nat.c (_initialize_core_irix5): Update.
8594 * i386-interix-nat.c (_initialize_core_interix): Update.
8595 * cris-tdep.c (_initialize_cris_tdep): Update.
8596 * corelow.c (deprecated_add_core_fns): Update.
8597 * core-regset.c (_initialize_core_regset): Update.
8598 * core-aout.c (_initialize_core_aout): Update.
8599 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
8600 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
8601 * alpha-nat.c (_initialize_core_alpha): Update.
8602
8603 2004-04-21 Jim Blandy <jimb@redhat.com>
8604
8605 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
8606
8607 2004-04-19 Daniel Jacobowitz <drow@mvista.com>
8608
8609 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
8610 Delete.
8611 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
8612 (read_attribute_value): Update calls to dwarf_alloc_block.
8613 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
8614 dwarf2_tmp_obstack.
8615 (psymtab_to_symtab_1): Likewise. Clean up using
8616 free_stack_comp_unit.
8617 (add_to_cu_func_list): Use the comp_unit_obstack.
8618
8619 2004-04-19 Joel Brobecker <brobecker@gnat.com>
8620
8621 * dwarf2read.c (dwarf2_flag_true_p): New function.
8622 (die_is_declaration): Use the function above. Add some comments.
8623
8624 2004-04-19 Mark Kettenis <kettenis@gnu.org>
8625
8626 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
8627 architecture when registering sparcnbsd_core_osabi_sniffer.
8628 Adjust comment.
8629
8630 2004-04-18 Mark Kettenis <kettenis@gnu.org>
8631
8632 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
8633 return value.
8634
8635 Based on a patch from Brian Ford <ford@vss.fsi.com>:
8636 * i386-tdep.c: Correct register numbering scheme comments
8637 throughout.
8638 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
8639 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
8640 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
8641 (i386_gdb_arch_init): Likewise.
8642
8643 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
8644 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
8645 ppcnbsd-tdep.o.
8646
8647 * m68k-tdep.h: Tweak comments.
8648 * m68k-tdep.c: Tweak comment.
8649
8650 2004-04-17 Randolph Chung <tausq@debian.org>
8651
8652 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
8653 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
8654 (hppa_hpux_som_init_abi): Set is_elf to 0.
8655 (hppa_hpux_elf_init_abi): Set is_elf to 1.
8656 * hppa-tdep.c (low_text_segment_address): Remove global.
8657 (record_text_segment_lowaddr): Pass in low address as parameter. Use
8658 section offset to calculate segment address.
8659 (internalize_unwinds): Define low_text_segment_address as local and
8660 pass to record_text_segment_lowaddr for ELF targets.
8661 (hppa_gdbarch_init): Zero fill tdep structure.
8662 (hppa_dump_tdep): Print tdep structure.
8663 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
8664
8665 2004-04-17 Randolph Chung <tausq@debian.org>
8666
8667 * hppa-tdep.c (hppa_pseudo_register_read): Define.
8668 (hppa_gdbarch_init): Set pseudo_register_read.
8669 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
8670 * regcache.c (supply_register): Remove check for
8671 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
8672
8673 2004-04-17 Randolph Chung <tausq@debian.org>
8674
8675 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
8676 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
8677 (hpread_adjust_stack_address): Move to hpread.c.
8678 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
8679 obj_private_struct): Move from tm-hppa.h.
8680 * hpread.c (hppa-tdep.h): Include.
8681 (hpread_adjust_stack_address): Move from hppa-tdep.c.
8682 (hpread_read_function_type, hpread_read_doc_function_type)
8683 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
8684 directly.
8685 * pa64solib.c (hppa-tdep.h): Include.
8686 * somsolib.c (hppa-tdep.h): Include.
8687 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
8688 inferior_status): Remove unused forward declarations.
8689 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
8690 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
8691 obj_private_struct): Move to hppa-tdep.h.
8692 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
8693
8694 2004-04-17 Randolph Chung <tausq@debian.org>
8695
8696 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
8697 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
8698 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
8699 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
8700 Remove forward declaration and make static.
8701 (hppa_reg_struct_has_addr): Remove.
8702
8703 2004-04-16 Joel Brobecker <brobecker@gnat.com>
8704
8705 * observer.sh: Move comments in sed command to first column.
8706
8707 2004-04-16 Jason Molenda (jmolenda@apple.com)
8708
8709 * frame.c: Minor typeo corrections in comments.
8710
8711 2004-04-16 Joel Brobecker <brobecker@gnat.com>
8712
8713 * observer.c (observer_test_first_notification_function): Update
8714 function profile.
8715 (observer_test_second_notification_function): Likewise.
8716 (observer_test_third_notification_function): Likewise.
8717
8718 2004-04-16 Mark Kettenis <kettenis@gnu.org>
8719
8720 From Brian Ford <ford@vss.fsi.com>:
8721 * i386-tdep.c (i386_coff_init_abi): New function.
8722 * i386-tdep.h (i386_coff_init_abi): New prototype.
8723 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
8724 register number translation functions for DWARF and DWARF 2.
8725
8726 2004-04-16 Joel Brobecker <brobecker@gnat.com>
8727
8728 * dwarf2read.c: Back out my previous change, it was incorrect.
8729
8730 2004-04-16 Daniel Jacobowitz <drow@mvista.com>
8731
8732 * dwarf2read.c: Include "hashtab.h".
8733 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
8734 has_namespace_info.
8735 (struct partial_die_info): Add comments. Use bitfields to reduce
8736 memory footprint. Add scope, scope_set, has_specification,
8737 spec_offset, die_parent, die_child, and die_sibling.
8738 (peek_die_abbrev): Add prototype.
8739 (partial_read_comp_unit_head): New function, broken out from
8740 dwarf2_build_psymtabs_hard.
8741 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
8742 Use partial_read_comp_unit_head. Initialize the CU and
8743 comp_unit_obstack. Update calls to read_partial_die and
8744 scan_partial_symbols. Use free_stack_comp_unit and
8745 load_partial_dies.
8746 (scan_partial_symbols): Change PDI to a pointer. Use the child and
8747 sibling pointers to walk partial DIEs. Call fixup_partial_die.
8748 Update calls to helper functions. Remove NAMESPACE argument.
8749 Update comments.
8750 (partial_die_parent_scope, partial_die_full_name): New functions.
8751 (add_partial_symbol): Remove namespace argument. Update call to
8752 pdi_needs_namespace. Use partial_die_full_name. Handle
8753 DW_TAG_namespace. Check has_namespace_info flag.
8754 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
8755 tag. Handle namespaces.
8756 (add_partial_namespace, add_partial_enumeration): Simplify.
8757 (guess_structure_name): New function, derived from
8758 add_partial_structure.
8759 (add_partial_structure): Remove.
8760 (determine_class_name): Update comment.
8761 (dwarf2_read_abbrevs): Set has_namespace_info flag.
8762 (is_type_tag_for_partial, load_partial_dies): New functions.
8763 (read_partial_die): Pass abbrev and abbrev_len as arguments.
8764 Record specifications instead of following them immediately.
8765 (find_partial_die_in_comp_unit, find_partial_die)
8766 (fixup_partial_die, free_stack_comp_unit)
8767 (hashtab_obstack_allocate, dummy_obstack_deallocate)
8768 (partial_die_hash, partial_die_eq): New functions.
8769 * Makefile.in (hashtab_h): Define.
8770 (dwarf2read.o): Update dependencies.
8771 (observer_inc, observer_h): Move to the correct section.
8772
8773 2004-04-15 Joel Brobecker <brobecker@gnat.com>
8774
8775 * dwarf2read.c (dwarf2_attribute_true_p): New function.
8776 (die_is_declaration): Use the function above. Add comment.
8777
8778 2004-04-15 Joel Brobecker <brobecker@gnat.com>
8779
8780 * dwarf2read.c (read_structure_scope): Identify stub types
8781 using die_is_declaration() only.
8782
8783 2004-04-15 Roland McGrath <roland@redhat.com>
8784
8785 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
8786 argument instead of NAME.
8787 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
8788 in call to symbol_file_add_with_addrs_or_offsets.
8789 (build_addr_info): New function, helper for ...
8790 (symbol_file_add_from_memory): New function.
8791 (add_symbol_file_from_memory_command): New function using that.
8792 (_initialize_symfile): Register it for add-symbol-file-from-memory.
8793 (pre_add_symbol_hook): Add const to argument type.
8794 * symfile.h (symbol_file_add_from_memory): Declare it.
8795
8796 2004-04-15 Mark Kettenis <kettenis@gnu.org>
8797
8798 * NEWS (New native configurations): Mention OpenBSD/vax.
8799 * configure.host: Add vax-*-openbsd*.
8800 * config/vax/obsd.mh: New file.
8801 * config/vax/nm-obsd.h: New file.
8802
8803 * vax-tdep.c: Include "regset.h".
8804 (vax_supply_gregset): New function.
8805 (vax_gregset): New variable.
8806 (vax_regset_from_core_section): New function.
8807 (vax_gdbarch_init): Set regset_from_core_section.
8808 * Makefile.in (vax-tdep.o): Update dependencies.
8809
8810 2004-04-15 Andrew Cagney <cagney@redhat.com>
8811
8812 * observer.c (normal_stop_subject, observer_notify_normal_stop)
8813 (observer_normal_stop_notification_stub)
8814 (observer_attach_normal_stop, observer_detach_normal_stop):
8815 Delete, replaced by #include "observer.inc".
8816 * infrun.c (normal_stop): Pass "stop_bpstat" to
8817 observer_notify_normal_stop.
8818 * Makefile.in (observer_inc): Define.
8819 (observer.o): Update dependencies.
8820 (observer.h, observer.inc): New rules.
8821 * observer.h: Delete file.
8822 * observer.sh: New file.
8823
8824 2004-04-15 Mark Kettenis <kettenis@gnu.org>
8825
8826 * vax-tdep.c (vax_frame_cache): Fix typo.
8827
8828 2004-04-14 Mark Kettenis <kettenis@gnu.org>
8829
8830 * NEWS (New native configurations): Mention NetBSD/vax.
8831 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
8832 * config/vax/nbsdelf.mh: New file.
8833 * config/vax/nbsdaout.mh: New file.
8834 * config/vax/nm-nbsd.h: New file.
8835 * config/vax/nm-nbsdaout.h: New file.
8836
8837 * vaxnbsd-tdep.c: New file.
8838 * Makefile.in (vaxnbsd-tdep.o): New dependency.
8839 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
8840 * config/vax/nbsd.mt: New file.
8841 * config/vax/tm-nbsd.h: New file.
8842
8843 * Makefile.in (vaxbsd-nat.o): New dependency.
8844
8845 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
8846 * vax-tdep.c (vax_store_arguments): Remove struct_return and
8847 struct_addr arguments. Don't push return value address.
8848 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
8849 arguments to vax_store_arguments. Store return value address in
8850 R1.
8851 (vax_store_struct_return, vax_extract_return_value)
8852 (vax_store_return_value): Remove functions.
8853 (vax_return_value): New function.
8854 (vax_gdbarch_init): Set return value. Don't set
8855 deprecated_store_struct_return, deprecated_extract_struct_return
8856 and deprecated_store_return_value.
8857
8858 2004-04-14 Andreas Schwab <schwab@suse.de>
8859
8860 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
8861 value buffer.
8862 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
8863
8864 2004-04-14 Mark Kettenis <kettenis@gnu.org>
8865
8866 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
8867 (vax_unwind_dummy_id): New functions.
8868 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
8869 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
8870 variables.
8871 (vax_fix_call_dummy): Remove function.
8872 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
8873 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
8874 call_dummy_location, deprecated_call_dummy_words,
8875 deprecated_sizeof_call_dummy_words,
8876 deprecated_call_dummy_breakpoint_offset,
8877 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
8878 and deprecated_dummy_write_sp.
8879
8880 2004-04-13 David Carlton <carlton@kealia.com>
8881
8882 * MAINTAINERS: Move myself to "paper trail" section.
8883
8884 2004-04-12 Mark Kettenis <kettenis@gnu.org>
8885
8886 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
8887 "trad-frame.h".
8888 (vax_frame_init_saved_regs): Remove function.
8889 (vax_sigtramp_saved_pc): Remove function.
8890 (vax_frame_saved_pc): Remove function.
8891 (vax_frame_args_address): Remove function.
8892 (vax_frame_num_args): Rewrite.
8893 (vax_frame_chain): Remove function.
8894 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
8895 VAX_FP_REGNUM.
8896 (vax_pop_frame): Likewise.
8897 (vax_saved_pc_after_call): Remove function.
8898 (struct vax_frame_cache): New structure.
8899 (vax_frame_cache): New function.
8900 (vax_frame_this_id): New function.
8901 (vax_frame_prev_register): New function.
8902 (vax_frame_unwind): New variable.
8903 (vax_frame_sniffer): New function.
8904 (vax_frame_base_address): New function.
8905 (vax_frame_args_address): New function.
8906 (vax_frame_base): New variable.
8907 (vax_unwind_pc): New function.
8908 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
8909 deprecated_fp_regnum, deprecated_saved_pc_after_call,
8910 deprecated_frame_chain, deprecated_frame_saved_pc,
8911 deprecated_frame_args_address and
8912 deprecated_frame_init_saved_regs.
8913 * Makefile.in (vax-tdep.o): Update dependencies.
8914
8915 * vaxbsd-nat.c: New file.
8916
8917 * vax-tdep.h: Update copyright year. Adjust comments.
8918 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
8919 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
8920 (vax_regnum): New enum. Replacing...
8921 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
8922 (VAX_PS_REGNUM): ... these removed macros.
8923 * vax-tdep.c (vax_register_name): Remove prototype.
8924 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
8925 (vax_register_byte, vax_register_raw_size,
8926 vax_register_virtual_size, vax_register_virtual_type): Remove
8927 functions.
8928 (vax_register_type): New function.
8929 (vax_breakpoint_from_pc): Reorganize.
8930 (vax_gdbarch_init): Set register_type. Don't set
8931 deprecated_register_size, deprecated_register_bytes,
8932 deprecated_register_byte, deprecated_register_raw_size,
8933 deprecated_max_register_raw_size,
8934 deprecated_register_virtual_size,
8935 deprecated_max_register_virtual_size and
8936 deprecated_register_virtual_type. Add comment on stack direction.
8937
8938 2004-04-11 Mark Kettenis <kettenis@gnu.org>
8939
8940 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
8941 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
8942 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
8943
8944 2004-04-10 Randolph Chung <tausq@debian.org>
8945
8946 * MAINTAINERS (write after approval): Add myself.
8947
8948 2004-04-07 Randolph Chung <tausq@debian.org>
8949
8950 * hppa-tdep.c (hppa_inner_than): Remove.
8951 (is_pa_2): Remove unused static variable.
8952 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
8953
8954 2004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
8955
8956 * language.h (language_defn): Add new la_post_parser field.
8957 * parser-defs.h (null_post_parser): New declaration (default for
8958 la_post_parser).
8959
8960 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
8961 insert call to that function.
8962 (parse_exp_in_context): New function, including code formerly in
8963 parse_exp_1. Calls language-dependent post-parser after
8964 prefixification.
8965 (parse_expression_in_context): New exported function.
8966 (null_post_parser): New definition.
8967 * expression.h (parse_expression_in_context): Add declaration.
8968
8969 * p-lang.c (pascal_language_defn): Add trivial post-parser.
8970 * c-lang.c (c_language_defn): Ditto.
8971 (cplus_language_defn): Ditto.
8972 (asm_language_defn): Ditto.
8973 (minimal_language_defn): Ditto.
8974 * f-lang.c (f_language_defn): Ditto.
8975 * jv-lang.c (java_language_defn): Ditto.
8976 * language.c (unknown_language_defn): Ditto.
8977 (auto_language_defn): Ditto.
8978 (local_language_defn): Ditto.
8979 * m2-lang.c (m2_language_defn): Ditto.
8980 * scm-lang.c (scm_language_defn): Ditto.
8981 * obj-lang.c (objc_language_defn): Ditto.
8982
8983 2004-04-10 Mark Kettenis <kettenis@gnu.org>
8984
8985 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
8986 (amd64nbsd_mcontext_addr): New function.
8987 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
8988 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
8989 with amd64nbsd_r_reg_offset, instead of building it on the fly.
8990
8991 * corelow.c (core_xfer_partial): Fix coding standards violation.
8992 Add support for TARGET_OBJECT_WCOOKIE.
8993
8994 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
8995 deprecated_pc_in_sigtramp.
8996 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
8997 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
8998 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
8999 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
9000 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
9001 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
9002 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
9003
9004 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
9005 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
9006 Fix typo.
9007
9008 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
9009 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
9010 (amd64_collect_fxsave): Likewise.
9011
9012 * i386-sol2-tdep.c: Include "gdb_string.h".
9013 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
9014 name.
9015 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
9016
9017 2004-04-10 Mark Kettenis <kettenis@gnu.org>
9018
9019 * i386-sol2-tdep.c: Include "solib-svr4.h".
9020 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9021 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
9022 * config/i386/tm-i386sol2.h: Include :solib.h".
9023 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
9024 solib-svr4.o and solib-legacy.o.
9025 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
9026 solib-svr4.o.
9027
9028 2004-04-09 Mark Kettenis <kettenis@gnu.org>
9029
9030 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
9031 whether a register is supplied by PTRACE_GETFPREGS.
9032 (store_inferior_registers): Likewise.
9033 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
9034 whether a register is supplied by PT_GETFPREGS.
9035 (store_inferior_registers): Likewise.
9036
9037 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
9038 * config/i386/linux64.mt (TDEPFILES): Likewise.
9039
9040 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
9041
9042 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
9043 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
9044 the program counter is in the range specified by `struct
9045 gdbarch_tdep'.
9046 * amd64-linux-tdep.c: Include "symtab.h".
9047 (amd64_linux_pc_in_sigtramp): Remove function.
9048 (amd64_linux_sigtramp_p): New function.
9049 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
9050 deprecated_pc_in_sigtramp.
9051 * amd64nbsd-tdep.c: Include "symtab.h".
9052 (amd64nbsd_sigtramp_p): New function.
9053 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
9054 deprecated_pc_in_sigtramp.
9055 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
9056 few comments.
9057 (amd64obsd_pc_in_sigtramp): Remove function.
9058 (amd64obsd_sigtramp_p): New function.
9059 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
9060 deprecated_pc_in_sigtramp.
9061 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
9062 (i386bsd_pc_ins_sigtramp): Remove prototype.
9063 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
9064 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
9065 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
9066 the program counter is in the range specified by `struct
9067 gdbarch_tdep'.
9068 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
9069 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
9070 (i386_go32_pc_in_sigtramp): Remove function.
9071 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
9072 Initialize TDEP->sigtramp_p.
9073 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
9074 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
9075 deprecated_pc_in_sigtramp.
9076 * i386-linux-tdep.c: Adjust comments.
9077 (i386_linux_pc_in_sigtramp): Remove function.
9078 (i386_linux_sigtramp_p): New function.
9079 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
9080 deprecated_pc_in_sigtramp.
9081 * i386-nto-tdep.c: Update copyright year.
9082 (i386nto_pc_in_sigtramp): Remove function.
9083 (i386nto_sigtramp_p): New function.
9084 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
9085 SP_REGNUM.
9086 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
9087 deprecated_pc_in_sigtramp.
9088 * i386-sol2-tdep.c: Update copyright year.
9089 (i386_sol2_pc_in_sigtramp): Remove function.
9090 (i386_sol2_sigtramp_p): New function.
9091 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
9092 deprecated_pc_in_sigtramp.
9093 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
9094 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
9095 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9096 deprecated_sigtramp_start and deprecated_sigtramp_end.
9097 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
9098 (i386nbsd_pc_in_sigtramp): Remove function.
9099 (i386nbsd_sigtramp_p): New function.
9100 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9101 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
9102 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
9103 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
9104 (i386obsd_pc_in_sigtramp): Remove function.
9105 (i386obsd_sigtramp_p): New function.
9106 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
9107 functions.
9108 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9109 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
9110 TDEP->sigtramp_p.
9111 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
9112 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
9113 dependencies.
9114
9115 * config/i386/i386aout.mt: Remove file.
9116
9117 * configure.tgt: Remove i[34567]86-*-go32*,
9118 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
9119 and i[34567]86-*-isc*. Set gdb_target to i386 for
9120 i[34567]86-*-netware* and i[34567]86-*-*.
9121 * config/i386/i386.mt: New file.
9122 * config/i386/embed.mt: Remove file.
9123 * config/i386/go32.mt: Remove file.
9124 * config/i386/i386nw.mt: Remove file.
9125 * config/i386/i386v.mt: Remove file.
9126 * config/i386/tm-go32.h: Remove file.
9127
9128 * tui/tui-hooks.c: Include "readline/readline.h" after
9129 "gdb_curses.h" instead of before.
9130 * tui/tui-io.c: Likewise.
9131
9132 * tui/tui.c: Fix typo in comment.
9133
9134 * sparc64-tdep.c (sparc_address_from_register): Remove function.
9135
9136 2004-04-08 Andrew Cagney <cagney@redhat.com>
9137
9138 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
9139 (deprecated_exception_support_initialized): Declare.
9140 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
9141 (initialize_hp_cxx_exception_support)
9142 (child_enable_exception_callback): Update.
9143 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
9144 (deprecated_exception_support_initialized): Rename
9145 deprecated_exception_catchpoints_are_fragile and
9146 deprecated_exception_support_initialized.
9147 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
9148
9149 * symtab.c (deprecated_hp_som_som_object_present): Rename
9150 hp_som_som_object_present.
9151 * symtab.h (deprecated_hp_som_som_object_present): Declare.
9152 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
9153 Update. Delete extern declaration.
9154 * valops.c (hp_som_som_object_present): Ditto.
9155 * parse.c (deprecated_hp_som_som_object_present)
9156 (parse_nested_classes_for_hpacc): Ditto.
9157 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
9158 * hppa-hpux-tdep.c (hp_som_som_object_present)
9159 (initialize_hp_cxx_exception_support): Ditto.
9160 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
9161 * cp-valprint.c (hp_som_som_object_present)
9162 (cp_print_class_method): Ditto.
9163 * c-typeprint.c (hp_som_som_object_present):
9164 (c_type_print_base): Ditto.
9165 * c-exp.y (hp_som_som_object_present): Ditto.
9166
9167 2004-04-08 Andrew Cagney <cagney@redhat.com>
9168
9169 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
9170 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
9171 (frame_unwind_find_by_frame): Re-implement the unwind code so
9172 that it can both prepend and append sniffers. Replace
9173 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
9174 * tramp-frame.c (tramp_frame_append): Use
9175 frame_unwind_prepend_unwinder.
9176 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
9177 frame_unwind_register_unwinder.
9178 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
9179 tramp_frame_append.
9180 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
9181 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
9182 (mips_linux_init_abi): Update.
9183
9184 2004-04-08 Kevin Buettner <kevinb@redhat.com>
9185
9186 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
9187 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
9188 file support.
9189
9190 2004-04-07 Kevin Buettner <kevinb@redhat.com>
9191
9192 * ia64-tdep.c (elf.h): Don't include.
9193 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
9194
9195 2004-04-07 Jason Molenda (jmolenda@apple.com)
9196
9197 * frame.h: Typeo corrections in comments.
9198
9199 2004-04-07 Jim Blandy <jimb@redhat.com>
9200
9201 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
9202 %esp and %ebp
9203
9204 2004-04-07 Mark Kettenis <kettenis@gnu.org>
9205
9206 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
9207 * config/sparc/linux64.mt (TDEPFILES): Likewise.
9208 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
9209 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
9210 and solib-legacy.o.
9211 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
9212 solib-svr4.o.
9213 * config/sparc/tm-sol2.h: Update copyright year. Include
9214 "solib.h".
9215
9216 * sparc-sol2-tdep.c: Update copyright year. Include
9217 "solib-svr4.h".
9218 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9219 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
9220 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9221 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
9222 dependencies.
9223
9224 2004-04-06 Andrew Cagney <cagney@redhat.com>
9225
9226 * infttrace.c: Include "infttrace.h".
9227 * infttrace.h: Include "target.h".
9228 * Makefile.in (infttrace_h): Update.
9229 (infttrace.o): Update.
9230
9231 2004-04-06 Andrew Cagney <cagney@redhat.com>
9232
9233 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
9234 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
9235 move extern declarations from here ...
9236 * infttrace.h: ... to here.
9237 * Makefile.in (hppah-nat.o): Update dependencies.
9238
9239 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
9240 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
9241 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
9242 (hppa_breakpoint_from_pc): Delete.
9243
9244 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
9245
9246 2004-04-05 Andrew Cagney <cagney@redhat.com>
9247
9248 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
9249 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
9250 <sys/file.h>.
9251
9252 2004-04-06 Randolph Chung <tausq@debian.org>
9253
9254 Committed by Andrew Cagney (mechanical change).
9255 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
9256 exception_catchpoints_are_fragile, find_stub_with_shl_get,
9257 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
9258 child_enable_exception_callback, current_ex_event,
9259 null_symtab_and_line, child_get_current_exception_event,
9260 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
9261 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
9262 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
9263 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
9264 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
9265 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
9266 Move hpux-specific definitions ...
9267 * hppa-hpux-tdep.c: ... to here.
9268
9269 2004-04-05 Andrew Cagney <cagney@redhat.com>
9270
9271 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
9272 skip_prologue_using_sal.
9273
9274 2004-04-05 Andrew Cagney <cagney@redhat.com>
9275
9276 * config/i386/tm-i386.h: Delete file.
9277 * config/i386/tm-vxworks.h: Update copyright, do not include
9278 "tm-i386.h".
9279 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
9280 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
9281 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
9282 * config/i386/ncr3000.mt (TM_FILE): Delete.
9283 * config/i386/interix.mt (TM_FILE): Delete.
9284 * config/i386/i386v.mt (TM_FILE): Delete.
9285 * config/i386/i386nw.mt (TM_FILE): Delete.
9286 * config/i386/i386gnu.mt (TM_FILE): Delete.
9287 * config/i386/i386aout.mt (TM_FILE): Delete.
9288 * config/i386/embed.mt (TM_FILE): Delete.
9289
9290 2004-04-05 Kevin Buettner <kevinb@redhat.com>
9291
9292 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
9293 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
9294 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
9295 (accg7_regnum): New constants.
9296 (last_spr_regnum, last_pseudo_regnum): Update.
9297 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
9298 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
9299 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
9300 for accg registers.
9301 (frv_register_sim_regno): Update spr_map[].
9302
9303 2004-04-04 Andrew Cagney <cagney@redhat.com>
9304
9305 * config/mips/xm-riscos.h: Delete.
9306 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
9307 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
9308 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
9309 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
9310 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
9311 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
9312 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
9313 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
9314 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
9315 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
9316 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
9317 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
9318 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
9319 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
9320 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
9321 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
9322 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
9323 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
9324 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
9325 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
9326 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
9327 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
9328 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
9329 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
9330 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
9331 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
9332
9333 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
9334 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
9335 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
9336 * configure.host: Remove m680[01]0-sun-sunos3*,
9337 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
9338 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
9339 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
9340 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
9341 mips-*-riscos*.
9342 * NEWS: Mention removed systems.
9343
9344 2004-04-04 Andrew Cagney <cagney@redhat.com>
9345
9346 GDB 6.1 release created from 6.1 branch.
9347
9348 2004-04-04 Andrew Cagney <cagney@redhat.com>
9349
9350 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
9351 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
9352 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
9353
9354 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
9355 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
9356 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
9357
9358 2004-04-03 Jim Blandy <jimb@redhat.com>
9359
9360 * MAINTAINERS: Chris Faylor has changed employers; add him to
9361 "paper trail" section, and update his E-mail address.
9362
9363 2004-04-03 Andrew Cagney <cagney@redhat.com>
9364
9365 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
9366 generic dummy frames.
9367 * dummy-frame.c: Update copyright.
9368 (dummy_frame_sniffer): Delete check for generic dummy frames.
9369
9370 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
9371 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
9372 (REG_PARM_STACK_SPACE): Delete.
9373 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
9374 Inline reference to REG_PARM_STACK_SPACE.
9375
9376 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
9377 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
9378 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
9379 (FRAME_BASE_BEFORE_SIGTRAMP)
9380 (hppa32_hpux_frame_base_before_sigtramp)
9381 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
9382 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
9383 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
9384 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
9385 (FRAME_BASE_BEFORE_SIGTRAMP)
9386 (hppa64_hpux_frame_base_before_sigtramp)
9387 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
9388
9389 2004-04-03 Andrew Cagney <cagney@redhat.com>
9390
9391 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
9392
9393 2004-04-02 Andrew Cagney <cagney@redhat.com>
9394
9395 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
9396 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
9397 * dummy-frame.h: Delete out-of-date comments.
9398 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
9399 * gdbarch.h, gdbarch.c: Re-generate.
9400
9401 2004-04-02 Joel Brobecker <brobecker@gnat.com>
9402
9403 Committed by Andrew Cagney <cagney@redhat.com>.
9404 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
9405 into account an instruction saving a register if we have already
9406 seen an earlier instruction saving that same register.
9407
9408 2004-04-02 Andrew Cagney <cagney@redhat.com>
9409
9410 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
9411 * gdbarch.h, gdbarch.c: Re-generate.
9412 * frame.c (legacy_get_prev_frame): Delete references to
9413 DEPRECATED_INIT_FRAME_PC_FIRST.
9414
9415 * infrun.c (pc_in_sigtramp): Delete function.
9416 (check_sigtramp2): Inline call to pc_in_sigtramp, use
9417 get_frame_type.
9418
9419 2004-04-02 Andrew Cagney <cagney@redhat.com>
9420
9421 * infrun.c (handle_step_into_function): Delete code conditional on
9422 legacy_frame_p.
9423 (handle_inferior_event, step_over_function): Ditto.
9424
9425 2004-04-02 Andrew Cagney <cagney@redhat.com>
9426
9427 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
9428 "previous frame inner to this frame" test.
9429
9430 2004-04-02 Andrew Cagney <cagney@redhat.com>
9431
9432 * frame.c (safe_frame_unwind_memory): New function.
9433 * frame.h (safe_frame_unwind_memory): Declare. Update description
9434 of /safe_/ methods.
9435 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
9436 "next_frame". Use safe_frame_unwind_memory.
9437 (tramp_frame_sniffer): Update call to tramp_frame_start.
9438
9439 2004-04-01 Daniel Jacobowitz <drow@mvista.com>
9440
9441 * dwarf2read.c (dwarf2_objfile_data_key): New.
9442 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
9443 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
9444 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
9445 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
9446 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
9447 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
9448 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
9449 Remove variables.
9450 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
9451 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
9452 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
9453 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
9454 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
9455 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
9456 Remove macros.
9457 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
9458 data.
9459 (dwarf2_locate_sections, dwarf2_build_psymtabs)
9460 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
9461 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
9462 (read_partial_die, read_full_die, read_indirect_string)
9463 (dwarf_decode_line_header, dwarf_decode_macros)
9464 (dwarf2_symbol_mark_computed): Remove use of removed macros.
9465 Update uses of removed variables.
9466 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
9467 of removed macros.
9468 (_initialize_dwarf2_read): New function.
9469 * symfile.h (dwarf2_has_info): Update prototype.
9470 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
9471 * elfread.c (elf_symfile_read): Likewise.
9472
9473 2004-04-01 Jim Blandy <jimb@redhat.com>
9474
9475 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
9476 function for register numbers on all the rs6000-derived targets.
9477 (rs6000_gdbarch_init): Don't register a separate
9478 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
9479 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
9480 variants.
9481
9482 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
9483 numbering.
9484
9485 2004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
9486
9487 * valarith.c: Update copyright notice.
9488 (value_add): Handle range types.
9489 (value_sub): Ditto.
9490 (value_equal): Ditto.
9491 (value_less): Ditto.
9492 (value_neg): Ditto.
9493 (value_complement): Ditto.
9494 (value_binop): Simplify slightly by using is_integral_type and
9495 eliminiating unnecessary COERCE_ENUMs.
9496
9497 2004-03-31 Andrew Cagney <cagney@redhat.com>
9498
9499 * frame.h (frame_unwind_id): Declare.
9500 * frame.c (frame_unwind_id): New function.
9501 (get_prev_frame_1): New function.
9502 (frame_debug_got_null_frame): New function.
9503 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
9504 code proper to prev_frame, update description.
9505 * infrun.c (step_over_function): Use frame_unwind_id.
9506
9507 2004-04-31 J. Brobecker <brobecker@gnat.com>
9508
9509 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
9510 (hppa64_push_dummy_call): Likewise.
9511
9512 2004-03-30 Jim Blandy <jimb@redhat.com>
9513
9514 From Ulrich Weigand:
9515 * utils.c (query): Do not use a va_list variable multiple times.
9516
9517 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
9518
9519 * Makefile.in (linux_nat_h): Update dependencies.
9520 * configure.in: Check for <gnu/libc-version.h>.
9521 * configure: Regenerate.
9522 * config.in: Regenerate.
9523 * linux-nat.h: Include "target.h". Add waitstatus field to
9524 struct lwp_info.
9525 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
9526 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
9527 to.
9528 (lin_lwp_handle_extended): New function. Handle clone events.
9529 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
9530 thread exit events.
9531 (child_wait): Handle clone events.
9532 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
9533 * linux-nat.c (linux_enable_event_reporting): Turn on
9534 PTRACE_O_TRACECLONE.
9535 (linux_handle_extended_wait): Handle clone events.
9536 * thread-db.c: Include <gnu/libc-version.h>.
9537 (struct private_thread_info): Add dying flag.
9538 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
9539 higher.
9540 (attach_thread): Update comments. Handle dying threads.
9541 (detach_thread): Set the dying flag.
9542 (check_event): Always call attach_thread.
9543
9544 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
9545
9546 * mips-tdep.c (mips_pdr_data): New.
9547 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
9548 (_initialize_mips_tdep): Initialize mips_pdr_data.
9549
9550 2004-03-29 Corinna Vinschen <vinschen@redhat.com>
9551
9552 * minsyms.c (install_minimal_symbols): Move dropping leading
9553 char from linkage name from here...
9554 (prim_record_minimal_symbol_and_info): ...to here. Simplify
9555 test for "__gnu_compiled*" symbols.
9556
9557 2004-03-28 Jim Blandy <jimb@redhat.com>
9558
9559 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
9560 registers to temp register r0 and byte stores as prologue
9561 instructions.
9562
9563 2004-03-28 Andrew Cagney <cagney@redhat.com>
9564
9565 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
9566 arm*-*-*.
9567
9568 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
9569
9570 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
9571 and switch the layout to force a display of register window.
9572
9573 2004-02-26 J. Brobecker <brobecker@gnat.com>
9574
9575 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
9576 of the INTEGER class.
9577
9578 2004-03-26 Jim Blandy <jimb@redhat.com>
9579
9580 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
9581 bytes long on PPC GNU/Linux.
9582
9583 2004-03-26 David Carlton <carlton@kealia.com>
9584
9585 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
9586
9587 2004-03-25 Andrew Cagney <cagney@redhat.com>
9588
9589 * PROBLEMS: Add general section titles, remove references to
9590 specific releases.
9591
9592 2004-03-25 Daniel Jacobowitz <drow@mvista.com>
9593
9594 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
9595 INT_REGISTER_SIZE.
9596 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
9597 FP_REGISTER_VIRTUAL_SIZE.
9598 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
9599 of DEPRECATED_REGISTER_RAW_SIZE.
9600 (arm_register_type): Add gdbarch argument.
9601 (arm_register_raw_size, arm_register_virtual_size): Delete.
9602 (arm_register_byte, arm_extract_return_value)
9603 (arm_store_return_value, arm_get_longjmp_target): Update references
9604 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
9605 (arm_gdbarch_init): Likewise. Don't set
9606 deprecated_register_raw_size, deprecated_register_virtual_size,
9607 deprecated_max_register_raw_size,
9608 deprecated_max_register_virtual_size, or
9609 deprecated_max_register_virtual_type. Do set register_type.
9610 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
9611 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
9612 (FP_REGISTER_VIRTUAL_SIZE): Delete.
9613 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
9614 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
9615 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
9616 INT_REGISTER_SIZE.
9617 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
9618 (remote_rdp_store_register): Likewise.
9619
9620 2004-03-24 Daniel Jacobowitz <drow@mvista.com>
9621
9622 * Makefile.in (mips-linux-tdep.o): Update dependencies.
9623 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
9624 to after osabi initialization.
9625 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
9626 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
9627 functions.
9628 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
9629 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
9630 variables.
9631 (mips_linux_init_abi): Append signal trampoline unwinders.
9632
9633 2004-03-24 Andrew Cagney <cagney@redhat.com>
9634
9635 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
9636 * tramp-frame.c: Include "gdb_assert.h".
9637 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
9638 correct sizeof.
9639 (tramp_frame_append): Validate the tramp frame's instructions.
9640 * Makefile.in (tramp-frame.o): Update dependencies.
9641
9642 2004-03-23 Andrew Cagney <cagney@redhat.com>
9643
9644 * trad-frame.h (trad_frame_set_reg_addr): Declare.
9645
9646 2004-03-23 Andrew Cagney <cagney@redhat.com>
9647
9648 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
9649 Nasser as past testsuite/lib/ (and other) maintainers.
9650
9651 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
9652
9653 * infcmd.c (attach_command): Reread symbols if we already have
9654 an exec file.
9655
9656 2004-03-23 Andrew Cagney <cagney@redhat.com>
9657
9658 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
9659
9660 2004-03-23 Andrew Cagney <cagney@redhat.com>
9661
9662 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
9663 * gdbarch.h, gdbarch.c: Re-generate.
9664 * i386obsd-tdep.c (i386obsd_init_abi): Update.
9665 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
9666 * i386bsd-tdep.c (i386bsd_init_abi): Update.
9667 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
9668 (DEPRECATED_SIGTRAMP_START): Update.
9669 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
9670 (DEPRECATED_SIGTRAMP_START): Update.
9671 * blockframe.c (find_pc_sect_partial_function): Update.
9672 * arch-utils.c (legacy_pc_in_sigtramp): Update.
9673
9674 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
9675
9676 * remote.c (remote_open_1): Reopen the exec file and reread symbols
9677 if necessary.
9678
9679 2004-03-23 Andrew Cagney <cagney@redhat.com>
9680
9681 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
9682 predicate, deprecate.
9683 * gdbarch.h, gdbarch.c: Re-generate.
9684 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
9685 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
9686 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
9687 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
9688 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
9689 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
9690 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
9691 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
9692 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
9693 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
9694 * blockframe.c (find_pc_partial_function): Update.
9695 * breakpoint.c (bpstat_what): Update.
9696 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
9697 * frv-linux-tdep.c (frv_linux_init_abi): Update.
9698 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
9699 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
9700 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9701 * i386-linux-tdep.c (i386_linux_init_abi): Update.
9702 * i386-nto-tdep.c (i386nto_init_abi): Update.
9703 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
9704 * i386-tdep.c (i386_sigtramp_frame_sniffer)
9705 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
9706 * i386bsd-tdep.c (i386bsd_init_abi): Update.
9707 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
9708 * i386obsd-tdep.c (i386obsd_init_abi): Update.
9709 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
9710 * infrun.c (pc_in_sigtramp): Update.
9711 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
9712 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
9713 * mips-tdep.c (mips_gdbarch_init): Update.
9714 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
9715 * ppc-linux-tdep.c: Update comment.
9716 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
9717 * shnbsd-tdep.c (shnbsd_init_abi): Update.
9718 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
9719 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
9720 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
9721 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
9722 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
9723 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
9724 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
9725 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
9726
9727 2004-03-23 Andrew Cagney <cagney@redhat.com>
9728
9729 * tramp-frame.h, tramp-frame.h: New files.
9730 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
9731 Update rules to include "tramp-frame.h" and "tramp-frame.c".
9732
9733 * Makefile.in: Update all dependencies.
9734
9735 2004-03-23 Andrew Cagney <cagney@redhat.com>
9736
9737 * Makefile.in (trad_frame_h): Add $(frame_h).
9738 * trad-frame.h: Update copyright. Include "frame.h".
9739 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
9740 (trad_frame_set_id, trad_frame_get_id): Declare.
9741 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
9742 * trad-frame.c: Update copyright.
9743 (struct trad_frame_cache): Define.
9744 (trad_frame_cache_zalloc): New function.
9745 (trad_frame_set_id, trad_frame_get_id): New functions.
9746 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
9747
9748 2004-03-22 Andrew Cagney <cagney@redhat.com>
9749
9750 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
9751 s390_pltstub_unwind_cache.
9752 (s390_stub_frame_unwind_cache): Rename
9753 s390_pltstub_frame_unwind_cache.
9754 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
9755 (s390_stub_frame_prev_register): Rename
9756 s390_pltstub_frame_prev_register.
9757 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
9758 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
9759
9760 From Ulrich Weigand:
9761 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
9762 pointer calls like PLT calls.
9763
9764 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
9765
9766 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
9767 PC rather than the partial function start address. Use the start
9768 address to sanity check the found PDR.
9769
9770 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
9771
9772 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
9773 linux_handle_extended_wait.
9774
9775 2004-03-22 Andrew Cagney <cagney@redhat.com>
9776
9777 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
9778 function.
9779
9780 * frame.h (generic_pop_current_frame): Delete declaration.
9781 (deprecate_pop_dummy_frame): Deprecate
9782 generic_pop_dummy_frame.
9783 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
9784 (generic_pop_current_frame): Delete function.
9785 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
9786 generic_pop_current_frame.
9787 * v850-tdep.c (v850_pop_frame): Update.
9788 * mcore-tdep.c (mcore_pop_frame): Update.
9789 * sh64-tdep.c (sh64_pop_frame): Update.
9790 * h8300-tdep.c (h8300_pop_frame): Update.
9791
9792 2004-03-22 Andrew Cagney <cagney@redhat.com>
9793
9794 * frame.h (deprecated_pc_in_call_dummy): Rename
9795 generic_pc_in_call_dummy.
9796 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
9797 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
9798 generic_pc_in_call_dummy.
9799 (pc_in_dummy_frame): Make static.
9800 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
9801 * gdbarch.h, gdbarch.c: Re-generate.
9802 * dummy-frame.c (dummy_frame_sniffer): Simplify.
9803 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
9804 (legacy_get_prev_frame): Ditto.
9805 * inferior.h: Delete reference to generic_pc_in_call_dummy in
9806 comment.
9807
9808 2004-03-21 Andrew Cagney <cagney@redhat.com>
9809
9810 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
9811 declaration and out-of-date comment.
9812 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
9813 Delete function.
9814 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
9815 deprecated_pc_in_call_dummy.
9816
9817 * infrun.c (handle_inferior_event): For non legacy frames, use the
9818 frame ID and frame type to identify a signal trampoline. Update
9819 comments.
9820
9821 2004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
9822
9823 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
9824 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
9825
9826 2004-03-21 Andrew Cagney <cagney@redhat.com>
9827
9828 * frame-unwind.h: Update copyright.
9829 (struct frame_data): Add opaque declaration.
9830 (frame_sniffer_ftype): Declare.
9831 (struct frame_unwind): Add "unwind_data" and "sniffer".
9832 (frame_unwind_register_unwinder): Declare.
9833 (frame_unwind_find_by_frame): Add parameter "this_cache".
9834 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
9835 (legacy_get_prev_frame, legacy_get_prev_frame)
9836 (get_frame_type): Pass the prologue_cache to
9837 frame_unwind_find_by_frame.
9838 * frame-unwind.c (struct frame_unwind_table_entry): Add field
9839 "unwinder".
9840 (frame_unwind_register_unwinder): New function.
9841 (frame_unwind_find_by_frame): Handle an unwind sniffer.
9842
9843 2004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
9844
9845 * bcache.c (print_percentage): Use floating point to avoid
9846 incorrect results when portion*100 overflows.
9847
9848 2004-03-19 Kevin Buettner <kevinb@redhat.com>
9849
9850 * ppc_tdep.h (ppc_linux_frame_saved_pc)
9851 (ppc_linux_init_extra_frame_info)
9852 (ppc_linux_frameless_function_invocation)
9853 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
9854 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
9855 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
9856 (rs6000_frame_chain): Delete declarations.
9857 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
9858 (ppc_linux_init_extra_frame_info)
9859 (ppc_linux_frameless_function_invocation)
9860 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
9861 (ppc_linux_init_abi): Remove registration of above deleted functions.
9862 * rs6000-tdep.c (rs6000_init_extra_frame_info)
9863 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
9864 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
9865 (rs6000_pop_frame, rs6000_frameless_function_invocation)
9866 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
9867 (rs6000_gdbarch_init): Remove registration of above deleted functions.
9868 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
9869 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
9870 frame management for all OSABIs.
9871
9872 2004-03-19 Andrew Cagney <cagney@redhat.com>
9873
9874 Committed by Kevin Buettner <kevinb@redhat.com>.
9875
9876 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
9877 Update copyright.
9878 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
9879 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
9880 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
9881 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
9882 unwinders. #ifdef legacy frame code.
9883 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
9884 "frame-base.h".
9885 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
9886 (struct rs6000_frame_cache, rs6000_frame_cache)
9887 (rs6000_frame_this_id, rs6000_frame_prev_register)
9888 (rs6000_frame_sniffer, rs6000_frame_unwind)
9889 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
9890 (rs6000_frame_base): Implement a traditional frame unwinder.
9891 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
9892 frame unwinder.
9893
9894 2004-03-19 Kevin Buettner <kevinb@redhat.com>
9895
9896 * breakpoint.c (adjust_breakpoint_address): Don't adjust
9897 breakpoint address for watchpoints or the catch eventpoints.
9898 Add new paramter ``bptype''. Adjust all callers.
9899
9900 2004-03-19 Andrew Cagney <cagney@redhat.com>
9901
9902 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
9903
9904 * PROBLEMS: Delete note that ARM does not use frame code, problem
9905 fixed.
9906
9907 2004-03-18 Andrew Cagney <cagney@redhat.com>
9908
9909 * stack.c (return_command): Delete code wrapped in #ifdef
9910 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
9911
9912 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
9913
9914 2004-03-18 Andrew Cagney <cagney@redhat.com>
9915
9916 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
9917 DEPRECATED_IN_SIGTRAMP.
9918 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9919 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
9920 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9921 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9922 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9923 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9924 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9925 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9926 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
9927 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
9928
9929 2004-03-18 Andrew Cagney <cagney@redhat.com>
9930
9931 * frame-base.c: Update copyright. Include "gdb_obstack.h".
9932 (struct frame_base_table_entry): Define.
9933 (struct frame_base_table): Re-implement as a linked list.
9934 (frame_base_init): Re-implement.
9935 (frame_base_table): Delete function.
9936 (append_predicate): Delete function.
9937 (frame_base_append_sniffer): Update.
9938 (frame_base_set_default): Update.
9939 (frame_base_find_by_frame): Update.
9940 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
9941 * Makefile.in (frame-base.o): Update dependencies.
9942
9943 2004-03-17 Andrew Cagney <cagney@redhat.com>
9944
9945 * frame.c (legacy_get_prev_frame): Pass correct frame to
9946 frame_unwind_find_by_frame.
9947
9948 2004-03-17 David Carlton <carlton@kealia.com>
9949
9950 * NEWS: Mention C++ nested types and namespaces
9951
9952 2004-03-16 Michael Chastain <mec.gnu@mindspring.com>
9953
9954 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
9955 and "Regressions since gdb 5.3.". Add known regressions since
9956 gdb 6.0.
9957
9958 2004-03-16 David Carlton <carlton@kealia.com>
9959
9960 * dwarf2read.c (process_structure_scope): Process children even
9961 when we're a declaration.
9962
9963 2004-03-16 Andrew Cagney <cagney@redhat.com>
9964
9965 * symtab.h (find_pc_sect_partial_function): Delete declaration.
9966 * blockframe.c (find_pc_partial_function)
9967 (find_pc_sect_partial_function): Merge into a single
9968 find_pc_partial_function.
9969
9970 2004-03-16 Mark Kettenis <kettenis@gnu.org>
9971
9972 * i386bsd-nat.c: s/regno/regnum/g.
9973 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
9974 FP0_REGNUM.
9975 (store_inferior_registers): Likewise.
9976
9977 2004-03-16 Mark Kettenis <kettenis@gnu.org>
9978
9979 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
9980 of i387_fill_fsave.
9981 (store_inferior_registers): Call i387_collect_fsave and
9982 i387_collect_fxsave instead of i387_fill_fsave and
9983 i387_fill_fxsave.
9984
9985 2004-03-15 Andrew Cagney <cagney@redhat.com>
9986
9987 * Makefile.in (frame-unwind.o): Update dependencies.
9988 * frame-unwind.c: Include "gdb_obstack.h".
9989 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
9990 parameter.
9991 (append_predicate): Delete function.
9992 (struct frame_unwind_table_entry): New structure.
9993 (struct frame_unwind_table): Replace "sniffer" with "head" and
9994 "tail".
9995 (frame_unwind_append_sniffer): Update.
9996 (frame_unwind_find_by_frame): Update.
9997 (_initialize_frame_unwind): Registe frame_unwind_init using
9998 gdbarch_data_register_pre_init.
9999
10000 2004-03-15 Mark Kettenis <kettenis@gnu.org>
10001
10002 * i386bsd-nat.c: Update copyright year.
10003 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
10004 define unconditionally.
10005
10006 2004-03-15 Mark Kettenis <kettenis@gnu.org>
10007
10008 * i387-tdep.h (i387_collect_fsave): New prototype.
10009 * i387-tdep.c (i387_collect_fsave): New function containing most
10010 of the code from i387_fill_fsave.
10011 (i387_fill_fsave): Call i387_collect_fsave.
10012
10013 2004-03-15 Mark Kettenis <kettenis@gnu.org>
10014
10015 * i386-linux-tdep.c: Update copyright year.
10016 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
10017 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
10018 svr4_ilp32_link_map_offsets instead of
10019 i386_linux_svr4_fetch_link_map_offsets.
10020
10021 2004-03-15 David Carlton <carlton@kealia.com>
10022
10023 Fix for PR c++/1553:
10024 * dwarf2read.c (read_structure_type): Determine type name by
10025 calling determine_class_name.
10026 (determine_class_name): New.
10027 (determine_prefix): Look at TYPE_TAG_NAME and call
10028 determine_class_name when appropriate.
10029 (determine_prefix_aux, class_name): Delete.
10030 (read_namespace): Set die->type.
10031
10032 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10033
10034 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
10035 unused macro definition. The definition in target.h (or perhaps
10036 elsewhere) takes precedence.
10037
10038 2004-03-15 Andrew Cagney <cagney@redhat.com>
10039
10040 * ppc-tdep.h: Update copyright.
10041 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
10042 function signatures to match "regsets.h".
10043 * ppc-linux-tdep.c: Include "regset.h".
10044 (ELF_GREGSET_SIZE): Delete.
10045 (right_supply_register): New function.
10046 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
10047 using right_supply_register.
10048 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
10049 functions.
10050 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
10051 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
10052 (_initialize_ppc_linux_tdep): Do not register
10053 ppc_linux_regset_core_fns.
10054 (ppc_linux_regset_from_core_section): Replace
10055 fetch_core_registers.
10056 (ppc_linux_regset_core_fns): Delete.
10057 * ppc-linux-nat.c: (right_fill_reg): New function.
10058 (supply_gregset): Update call to ppc_linux_supply_gregset.
10059 (fill_gregset): Clear the register set, use right_fill_reg.
10060 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
10061 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
10062
10063 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
10064 unsigned.
10065
10066 2004-03-15 Andrew Cagney <cagney@redhat.com>
10067
10068 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
10069 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
10070 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
10071 and register_gdbarch_data.
10072 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
10073 (struct gdbarch_data): Replace "init" by "pre_init" and
10074 "post_init".
10075 * gdbarch.h, gdbarch.c: Re-generate.
10076 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
10077 with"obstack", use OBSTACK_ZALLOC.
10078 (dwarf2_frame_ops): Delete.
10079 (dwarf2_frame_set_init_reg): Use gdbarch_data.
10080 (dwarf2_frame_init_reg): Use gdbarch_data.
10081 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
10082 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
10083 (_initialize_svr4_solib): Update.
10084 * user-regs.c (_initialize_user_regs): Update.
10085 * reggroups.c (_initialize_reggroup): Update.
10086 * regcache.c (_initialize_regcache): Update.
10087 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
10088 * libunwind-frame.c (_initialize_libunwind_frame): Update.
10089 * gnu-v3-abi.c (init_gnuv3_ops): Update.
10090 * frame-unwind.c (_initialize_frame_unwind): Update.
10091 * frame-base.c (_initialize_frame_base): Update.
10092 * user-regs.c (user_reg_add): Update.
10093 * reggroups.c (reggroup_add): Update.
10094 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
10095 * libunwind-frame.c (libunwind_frame_set_descr): Update.
10096 * frame-unwind.c (frame_unwind_append_sniffer): Update.
10097 * frame-base.c (frame_base_table): Update.
10098 * remote.c (_initialize_remote): Update.
10099 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
10100
10101 2004-03-15 Andrew Cagney <cagney@redhat.com>
10102
10103 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
10104
10105 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10106
10107 * Makefile.in (frv-linux-tdep.o): Add dependencies.
10108 * frv-linux-tdep.c: New file.
10109 * frv-tdep.c (struct gdbarch_tdep): Add new field
10110 ``sigcontext_reg_addr''.
10111 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
10112 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
10113 (frv_sigramp_frame_sniffer): New functions.
10114 (frv_sigtramp_frame_unwind): New static global.
10115 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
10116 sniffers.
10117 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
10118 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
10119
10120 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10121
10122 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
10123 but not via a call to error(), when unable to read memory.
10124
10125 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10126
10127 * frv-tdep.c (frv_call_dummy_words): Delete.
10128 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
10129
10130 2004-03-15 Andrew Cagney <cagney@redhat.com>
10131
10132 * infrun.c (handle_step_into_function, step_over_function): Only
10133 update and use STEP_FRAME_ID when the system is using legacy
10134 frames. Update comments.
10135
10136 2004-03-14 Mark Kettenis <kettenis@gnu.org>
10137
10138 * amd64-linux-tdep.h: Remove file.
10139 * amd64-linux-tdep.c: Don't include "inferior.h" and
10140 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
10141 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
10142 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
10143 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
10144 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
10145 macros.
10146 (user_to_gdb_regmap): Remove variable.
10147 (amd64_linux_gregset_reg_offset): New variable.
10148 (amd64_core_fns): Remove variable.
10149 (fetch_core_registers): Remove function.
10150 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
10151 functions.
10152 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
10153 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
10154 * Makefile.in (amd64_linux_tdep_h): Remove.
10155 (amd64-linux-nat.o): Update dependencies.
10156 (amd64-linux-tdep.o): Update dependencies.
10157
10158 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
10159 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
10160 functions.
10161 (fetch_inferior_registers, store_inferior_registers): Rewrite.
10162
10163 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
10164 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
10165
10166 2004-03-14 Daniel Jacobowitz <drow@mvista.com>
10167
10168 * dwarf2read.c (read_structure_type): Rename from
10169 read_structure_scope. Don't create a symbol or call process_die.
10170 Return immediately if die->type is set. Call read_type_die before
10171 dwarf2_add_member_fn.
10172 (process_structure_scope): New function.
10173 (read_enumeration_type, process_enumeration_scope): New functions,
10174 broken out from read_enumeration. Don't create the enumeration
10175 type if it has already been created.
10176 (read_enumeration): Removed.
10177 (process_die): Call read_structure_type, process_structure_scope,
10178 read_enumeration_type, and process_enumeration_scope. Just call
10179 new_symbol for base and subrange types. Add a comment about other
10180 type dies.
10181 (read_type_die): Call read_enumeration_type.
10182 (add_partial_structure, new_symbol): Update comments.
10183
10184 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
10185
10186 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
10187
10188 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
10189
10190 * tui/tui-win.h (tui_get_cmd_list): Declare.
10191 * tui/tui-win.c (tui_command): New function.
10192 (tui_get_cmd_list): New function.
10193 (_initialize_tui_win): Moved initialization of tui command in
10194 tui_get_cmd_list.
10195
10196 * tui/tui-data.c (init_content_element): Setup new data members.
10197 (init_win_info): Likewise.
10198 (free_content_elements): Free it.
10199 * tui/tui-data.h (struct tui_data_element): Store the register
10200 content to print.
10201 (struct tui_data_info): Keep the current register group.
10202
10203 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
10204
10205 * tui/tui-regs.h (tui_show_registers): Update prototype.
10206 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
10207 (tui_resize_all): No need to calculate anything for register window.
10208 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
10209 (tui_set_register_element, tui_set_general_regs_content): Remove.
10210 (tui_set_special_regs_content): Remove.
10211 (tui_set_general_and_special_regs_content): Remove.
10212 (tui_set_float_regs_content): Remove.
10213 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
10214 (tui_set_regs_content): Remove.
10215 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
10216 (tui_v_show_registers_command_support): Remove.
10217 (tui_show_registers): Use a reggroup to specify the registers to show.
10218 (tui_show_register_group): New function.
10219 (tui_display_registers_from): Compute the layout of register window
10220 and refresh with new API; be sure to delete old register windows.
10221 (tui_check_register_values): Update to use tui_get_register and
10222 tui_display_data.
10223 (tui_display_register): Just refresh the register window part.
10224 (tui_register_format): Format registers and save in tui_data_element.
10225 (tui_get_register): New to combine tui_reg_value_has_changed and
10226 tui_get_register_raw_value; fix to use the new gdb API.
10227 (tui_show_float_command): Renamed tui_reg_float_command.
10228 (tui_show_general_command): Renamed tui_reg_general_command.
10229 (tui_show_special_command): Renamed tui_reg_system_command.
10230 (_initialize_tui_regs): Remove unused commands.
10231
10232 2004-03-13 Mark Kettenis <kettenis@gnu.org>
10233
10234 * NEWS (New native configurations): Mention OpenBSD/amd64.
10235
10236 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
10237 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
10238 Remove defines.
10239 * config/i386/nm-fbsd64.h: Likewise.
10240 * config/i386/nm-obsd.h: Likewise.
10241 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
10242 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
10243
10244 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10245
10246 * frv-tdep.c (set_variant_scratch_registers): New function.
10247 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
10248 New constants.
10249
10250 From Richard Sandiford <rsandifo@redhat.com>:
10251 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
10252
10253 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10254
10255 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
10256 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
10257 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
10258 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
10259 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
10260 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
10261 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
10262 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
10263 definitions from frv-tdep.c to frv-tdep.h.
10264
10265 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10266
10267 Add shared library support for FR-V FDPIC ABI:
10268 * Makefile.in (solib-frv.o): Add dependencies.
10269 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
10270 New functions.
10271 (frv_push_dummy_call): Add support for FDPIC ABI.
10272 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
10273 for FDPIC ABI.
10274 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
10275 (frv_fdpic_find_canonical_descriptor): Declare.
10276 * solib-frv.c: New file.
10277 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
10278 * config/frv/tm-frv.h (solib.h): Include.
10279
10280 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10281
10282 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
10283 (frv-tdep.o): Update dependencies.
10284 * frv-tdep.h: New file.
10285 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
10286 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
10287 constants.
10288 (struct gdbarch_tdep): Add new member ``frv_abi''.
10289 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
10290 functions.
10291 (new_variant): Set ``frv_abi'' field.
10292 (gdb_arch_init): Detect FDPIC executables.
10293
10294 2004-03-12 Mark Kettenis <kettenis@gnu.org>
10295
10296 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
10297 wrapper.
10298
10299 2004-03-11 Andrew Cagney <cagney@redhat.com>
10300
10301 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
10302
10303 2004-03-11 Kevin Buettner <kevinb@redhat.com>
10304
10305 * solist.h (master_so_list): New function.
10306 * solib.c (master_so_list): Likewise.
10307 * solib-svr4.c (enable_break): Iterate over so_list entries
10308 obtained from master list instead of entries obtained directly
10309 via svr4_current_sos().
10310
10311 2004-03-10 Ben Elliston <bje@gnu.org>
10312
10313 * MAINTAINERS: Update my mail address.
10314
10315 2004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
10316
10317 * remote-m32r-sdi.c: Support hardware watchpoint.
10318
10319 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10320
10321 * user-regs.c: Update copyright years.
10322 (struct user_regs): Rename to gdb_user_regs.
10323 (append_user_reg, builtin_user_regs, user_regs_init)
10324 (user_reg_add, user_reg_map_name_to_regnum)
10325 (usernum_to_user_reg): Update.
10326
10327 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10328
10329 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
10330 (skip_children): New functions.
10331 (locate_pdi_sibling): Call skip_children.
10332
10333 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10334
10335 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
10336 * gdbtypes.c (check_typedef): Update comments.
10337
10338 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10339
10340 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
10341 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
10342 pointer. Update comment about comp_unit_head.
10343 (struct abbrev_info): Shorten two int flags.
10344 (dwarf_alloc_abbrev): Take a CU argument.
10345 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
10346 each time through the loop. Update cleanup argument.
10347 (psymtab_to_symtab_1): Update cleanup call.
10348 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
10349 abbrev_obstack.
10350 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
10351 Just call obstack_free and clear the pointer.
10352
10353 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10354
10355 * infrun.c (handle_inferior_event): Remove short-circuit code for
10356 events in a different thread.
10357
10358 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10359
10360 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
10361 print the whole transfer.
10362 (initialize_targets): Update description of "set debug target".
10363
10364 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10365
10366 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
10367
10368 2004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
10369
10370 * MAINTAINERS (write after approval): Add myself.
10371
10372 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
10373
10374 * sh-tdep.c (sh_print_registers_info): Use for loop.
10375 Don't skip multiple registers when a float register is encountered.
10376
10377 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
10378
10379 Fix PR tdep/1291.
10380 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
10381 to official SH documentation.
10382
10383 2004-03-07 Andrew Cagney <cagney@redhat.com>
10384
10385 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
10386 unused function.
10387
10388 2004-03-07 Daniel Jacobowitz <drow@mvista.com>
10389
10390 * arm-tdep.c (thumb_get_next_pc): Handle BX.
10391 (arm_get_next_pc): Handle BX and BLX.
10392
10393 2004-03-07 Andrew Cagney <cagney@redhat.com>
10394
10395 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
10396 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
10397 HPPA_SP_REGNUM.
10398 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
10399 (hppa_target_read_fp): Delete.
10400 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
10401 register_virtual_size, max_register_raw_size,
10402 max_register_virtual_size, register_byte, register_size,
10403 target_read_fp, fp_regnum, and register_bytes. Set register_type
10404 instead of register_virtual_type.
10405 (hppa32_register_type, hppa64_register_type): Replace
10406 hppa32_register_virtual_type and hppa64_register_virtual_type.
10407 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
10408 (HPPA_FP_REGNUM): Define.
10409
10410 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
10411
10412 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
10413 (pa_do_registers_info): Delete.
10414 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
10415 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
10416 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
10417
10418 * infcall.c (legacy_push_dummy_code): Delete #ifdef
10419 GDB_TARGET_IS_HPPA code.
10420 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
10421 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
10422 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
10423 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
10424 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
10425 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
10426 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
10427 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
10428 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
10429 (hppa_frameless_function_invocation, hppa64_store_return_value)
10430 (hppa_store_struct_return, hppa64_extract_return_value)
10431 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
10432 (hppa32_call_dummy_length, hppa64_call_dummy_length)
10433 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
10434 (find_proc_framesize, deposit_21, restore_pc_queue)
10435 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
10436 (rp_saved, pc_in_linker_stub): Delete.
10437
10438 Unconditionally enable 64-bit frame and ABI code.
10439 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
10440 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
10441 push_dummy_frame, fix_call_dummy, push_arguments,
10442 call_dummy_location, extract_return_value, use_struct_convention,
10443 store_return_value, store_struct_return, saved_pc_after_call,
10444 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
10445 frame_chain, frame_chain_valid, frameless_function_invocation,
10446 frame_saved_pc, and pop_frame.
10447
10448 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
10449 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
10450 (hppa_gdbarch_init): Do not set PC_REGNUM.
10451
10452 2004-03-06 Mark Kettenis <kettenis@gnu.org>
10453
10454 * config/alpha/tm-fbsd.h: Remove file.
10455 * config/alpha/fbsd.mt: Tweak comment.
10456 (TM_FILE): Set to tm-alpha.h.
10457
10458 2004-03-05 Andrew Cagney <cagney@redhat.com>
10459
10460 * infrun.c (step_over_function): When non-legacy code, and no
10461 step_frame_id, use the unwinder to get the caller's frame ID.
10462
10463 2004-03-05 Mark Kettenis <kettenis@gnu.org>
10464
10465 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
10466 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
10467 bfd_arch_unknown. Adjust comment.
10468
10469 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
10470 * i386obsd-tdep.c: Correct spelling in comment.
10471 * i386nbsd-tdep.c: Correct spelling in comment.
10472 * sparc-tdep.c: Correct spelling in comments.
10473
10474 2004-03-05 David Carlton <carlton@kealia.com>
10475
10476 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
10477 bug.
10478
10479 2004-03-05 Mark Kettenis <kettenis@gnu.org>
10480
10481 * sparc-tdep.c: Fix typo in comment.
10482
10483 2004-03-04 J. Brobecker <brobecker@gnat.com>
10484
10485 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
10486
10487 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
10488
10489 * dwarf2read.c: Add comment describing memory lifetimes.
10490 (struct dwarf2_pinfo): Update comment.
10491 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
10492 (read_enumeration, new_symbol): Don't use obsavestring.
10493
10494 2004-03-04 Mark Kettenis <kettenis@gnu.org>
10495
10496 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
10497 instead of amd64_fill_fxsave.
10498 * amd64bsd-nat.c (store_inferior_registers): Likewise.
10499 * amd64fbsd-nat.c (fill_fpregset): Likewise.
10500
10501 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
10502 Reorganize code a bit.
10503
10504 2004-03-04 Orjan Friberg <orjanf@axis.com>
10505
10506 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
10507 when the frame pointer is pushed. Don't set the frame pointer's
10508 address on the stack unless it's actually located there.
10509 Set the SRP's address on the stack correctly when the PC is still in
10510 the prologue.
10511 (cris_return_value): New function.
10512 (cris_gdbarch_init): Clear deprecated store_return_value,
10513 extract_return_value.
10514
10515 2004-03-02 Jim Blandy <jimb@redhat.com>
10516
10517 * stabsread.c (reg_value_complaint): The maximum register number
10518 is one less than the number of registers.
10519
10520 2004-03-02 Andrew Cagney <cagney@redhat.com>
10521
10522 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
10523 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
10524 trailing comma and redundant assignment of I386_ST0_REGNUM.
10525 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
10526 32-bit segment registers.
10527
10528 2004-03-01 Andrew Cagney <cagney@redhat.com>
10529
10530 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
10531 use frame_relative_level and get_next_frame.
10532
10533 2004-02-29 Andrew Cagney <cagney@redhat.com>
10534
10535 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
10536 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
10537 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
10538 Delete macro.
10539
10540 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
10541
10542 * inflow.c (terminal_inferior): Don't give up the terminal if we
10543 previously couldn't get the inferior's terminal state.
10544
10545 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
10546
10547 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
10548 PC_REGNUM.
10549
10550 2004-02-28 Andrew Cagney <cagney@redhat.com>
10551
10552 * NEWS: Refer to GDB 6.1.
10553 * README: Refer to GDB 6.1.
10554 * PROBLEMS: Refer to GDB 6.1.
10555
10556 2004-02-28 Daniel Jacobowitz <drow@mvista.com>
10557
10558 * thread-db.c (disable_thread_signals): Remove unused function.
10559
10560 2004-02-28 Mark Kettenis <kettenis@gnu.org>
10561
10562 * amd64-nat.c: Include "gdb_string.h".
10563 (amd64_collect_native_gregset): Zero-extend the 32-bit
10564 general-purpose registers and %eip.
10565
10566 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
10567 * amd64-tdep.c (amd64_collect_fxsave): New function.
10568 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
10569
10570 * i387-tdep.h: Update copyright year.
10571 (i387_collect_fxsave): New prototype.
10572 * i387-tdep.c: Update copyright year.
10573 (i387_collect_fxsave): New function containing most of the code
10574 from i387_fill_fxsave.
10575 (i387_fill_fxsave): Call i387_collect_fxsave.
10576
10577 2004-02-28 Andrew Cagney <cagney@redhat.com>
10578
10579 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
10580 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
10581
10582 2004-02-28 Mark Kettenis <kettenis@gnu.org>
10583
10584 * amd64-tdep.c (amd64_frame_cache): Fix comment.
10585
10586 2004-02-28 Andrew Cagney <cagney@redhat.com>
10587
10588 * utils.c: Use "", instead of <>, to include readline.
10589 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
10590 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
10591 * source.c, solib.c, exec.c, event-top.c: Ditto.
10592 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
10593 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
10594 * Makefile.in: Update all dependencies.
10595 (readline_tilde_h, readline_history_h): Define.
10596 (readline_headers): Delete.
10597
10598 2004-02-28 Mark Kettenis <kettenis@gnu.org>
10599
10600 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
10601 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
10602 "config/i386/tm-lx64.h".
10603
10604 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
10605 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
10606 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
10607
10608 2004-02-28 Andrew Cagney <cagney@redhat.com>
10609
10610 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
10611
10612 * breakpoint.c (_initialize_breakpoint): Use
10613 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
10614 Add help to show command.
10615
10616 2004-02-28 Mark Kettenis <kettenis@gnu.org>
10617
10618 * i386-nat.c: Reformat to be closer to coding standards.
10619 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
10620 `retval'. Make variables `align' and `size' local to while-loop.
10621 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
10622 (_initialize_i386_nat): New prototype.
10623
10624 * tui/tui.c: Include <readline/readline.h> instead of
10625 "readline/readline.h". Include it after <term.h> and
10626 "gdb_curses.h".
10627
10628 2004-02-27 Andrew Cagney <cagney@redhat.com>
10629
10630 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
10631 the new frame unwind code.
10632 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
10633 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
10634 PCOQ_HEAD_REGNUM.
10635
10636 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
10637 "return_value" and "push_dummy_call".
10638 (hppa32_use_struct_convention): Delete unused function.
10639 (hppa32_store_return_value): Delete unused function.
10640 (hppa32_extract_return_value): Delete unused function.
10641 (hppa32_stack_align): Delete function.
10642
10643 2004-02-27 Eli Zaretskii <eliz@elta.co.il>
10644
10645 * coffread.c (enter_linenos): Don't let rawptr reference memory
10646 outside linetab[]'s limits.
10647
10648 2004-02-27 Andrew Cagney <cagney@redhat.com>
10649
10650 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
10651 inferior stack space - the stack needs to grow upwards.
10652 (hppa32_frame_align): New function.
10653 (hppa64_frame_align): Replace hppa_frame_align.
10654 (hppa_gdbarch_init): Update.
10655
10656 2004-02-26 Orjan Friberg <orjanf@axis.com>
10657
10658 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
10659 (dwarf2-frame.h): Include.
10660 (enum cris_regnums): New enum CRIS_FP_REGNUM.
10661 Remove static variables related to ABI setting.
10662 (struct gdbarch_tdep): Remove cris_abi member.
10663 (struct frame_extra_info): Remove.
10664 (cris_unwind_cache, stack_item): New structs.
10665 (cris_frame_unwind, cris_frame_base): New variables.
10666 (push_stack_item, pop_stack_item)
10667 (cris_frame_unwind_cache, cris_frame_this_id)
10668 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
10669 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
10670 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
10671 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
10672 (cris_reg_struct_has_addr): New functions.
10673 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
10674 (cris_frame_saved_pc, cris_saved_pc_after_call,
10675 (cris_store_struct_return, cris_frameless_function_invocation)
10676 (cris_pop_frame, cris_skip_prologue_main)
10677 (cris_abi_original_store_return_value)
10678 (cris_abi_v2_store_return_value)
10679 (cris_abi_original_extract_return_value)
10680 (cris_abi_v2_extract_return_value)
10681 (cris_abi_original_reg_struct_has_addr)
10682 (cris_abi_v2_reg_struct_has_addr)
10683 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
10684 (cris_push_return_address, cris_abi_update): Remove.
10685 (_initialize_cris_tdep): Remove ABI command.
10686 (cris_dump_tdep): Ditto.
10687 (cris_gdbarch_init): Remove ABI command.
10688 Set store_return_value, extract_return_value, push_dummy_code,
10689 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
10690 frame_unwind_append_sniffer, frame_base_set_default.
10691 Clear deprecated init_frame_pc, push_arguments, store_return_value,
10692 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
10693 sizeof_call_dummy_words, get_saved_register, push_return_address,
10694 pop_frame, store_struct_return, frame_init_saved_regs,
10695 init_extra_frame_info, frameless_function_invocation, frame_chain,
10696 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
10697 dummy_write_sp.
10698
10699 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
10700
10701 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
10702 * valprint.c (print_hex_chars): Change from static to external.
10703 (print_char_chars): New function.
10704 * printcmd.c (print_scalar_formatted): For integer and enum types
10705 that are longer than LONGEST, perform processing via appropriate
10706 print_*_chars routines.
10707
10708 2004-02-26 Andrew Cagney <cagney@redhat.com>
10709
10710 * Makefile.in: Update dependencies.
10711 Changes from Ulrich Weigand,
10712 * s390-tdep.c: Include "dwarf2-frame.h".
10713 (s390_dwarf2_frame_init_reg): New function.
10714 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
10715 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
10716
10717 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
10718
10719 * breakpoint.c (pending_break_support): New setting variable.
10720 (break_command_1): Account for pending_break_support setting
10721 when creating pending breakpoints.
10722 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
10723 (_initialize_breakpoint): Add "set breakpoint pending" and
10724 "show breakpoint pending" commands.
10725
10726 2004-02-26 Andrew Cagney <cagney@redhat.com>
10727
10728 Fix PR i18n/1570.
10729 * charset.c (backslashable, backslashed, represented): Remove 'e'
10730 from list of escaped characters, not part of ISO-C.
10731
10732 2004-02-25 J. Brobecker <brobecker@gnat.com>
10733
10734 From Peter Schauer <schauer@pdf.de>:
10735 * tui/tui.c: Move system header includes after local includes.
10736 Fixes a build failure on solaris systems.
10737
10738 2004-02-25 J. Brobecker <brobecker@gnat.com>
10739
10740 * configure.in: Refine the previous change.
10741 * configure: Regenerate.
10742
10743 2004-02-25 Mark Kettenis <kettenis@gnu.org>
10744
10745 * amd64-tdep.h: Renamed from x86-64-tdep.h.
10746 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
10747 "amd64-tdep.h" instead of "x86-64-tdep.h".
10748 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
10749 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
10750 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
10751 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
10752 and "x86-64-tdep.c".
10753 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
10754 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
10755 and "x86-64-tdep.c".
10756 * amd64bsd-nat.c: Update copyright year.
10757 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
10758 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
10759 "x86-64-tdep.h".
10760 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
10761 "x86-64-tdep.h".
10762 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
10763 "x86-64-tdep.h".
10764 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
10765 "x86-64-tdep.h".
10766 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
10767 "x86-64-tdep.h".
10768 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
10769 "x86-64-tdep.h".
10770 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
10771 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
10772 * Makefile.in (amd64_linux_tdep_h): Renamed from
10773 x86_64_linux_tdep_h.
10774 (amd64_tdep_h): Renamed from x86_64_tdep_h.
10775 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
10776 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
10777 (amd64obsd-tdep.o): Update dependencies.
10778 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
10779 dependencies.
10780 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
10781 dependencies.
10782 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
10783 amd64-linux-nat.c amd64-linux-tdep.c.
10784 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
10785 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
10786 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
10787 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
10788 amd64-tdep.o and amd64-linux-tdep.o.
10789 (TM_FILE): Set to tm-linux64.h.
10790 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
10791 (NAT_FILE): Set to nm-linux64.h.
10792 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
10793 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10794 amd64-tdep.o.
10795 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10796 amd64-tdep.o.
10797 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10798 amd64-tdep.o.
10799
10800 2004-02-25 Roland McGrath <roland@redhat.com>
10801
10802 * remote.c (remote_protocol_qPart_auxv): New variable.
10803 (init_all_packet_configs): Initialize it.
10804 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
10805 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
10806 (show_remote_cmd): Call it.
10807 (_initialize_remote): Initialize commands.
10808 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
10809 service TARGET_OBJECT_AUXV requests.
10810
10811 2004-02-25 J. Brobecker <brobecker@gnat.com>
10812
10813 * configure.in: Make sure that the wborder function is available.
10814 Otherwise, search for it in the cur_colr library.
10815 * configure: Regenerate.
10816
10817 2004-02-25 Andrew Cagney <cagney@redhat.com>
10818
10819 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
10820
10821 2004-02-25 Mark Kettenis <kettenis@gnu.org>
10822
10823 * config/i386/tm-x86-64linux.h: Tweak comments.
10824
10825 2004-02-25 Richard Sandiford <rsandifo@redhat.com>
10826
10827 * MAINTAINERS: Add self to write-after-approval list.
10828
10829 2004-02-25 Andrew Cagney <cagney@redhat.com>
10830
10831 PR cli/1566. Problem found, and fix suggested by David Allan.
10832 * cli/cli-script.c (execute_control_command): Unconditionally
10833 install a cleanup. Default "ret" to "invalid_control". Use
10834 "break" instead of "return" to escape from the switch.
10835
10836 2004-02-24 J. Brobecker <brobecker@gnat.com>
10837
10838 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
10839 with the lines macro defined in term.h on AiX.
10840 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
10841 a collision with the label_width macro defined in term.h on AiX.
10842
10843 2004-02-23 David Mosberger <davidm@hpl.hp.com>
10844
10845 Committed by Kevin Buettner <kevinb@redhat.com>.
10846
10847 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
10848 * ia64-tdep.c (ia64_write_pc): Make it a global function.
10849 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
10850 instead of ia64_write_pc().
10851 * ia64-linux-tdep.c (regcache.h): Include.
10852 (ia64_linux_write_pc): New function.
10853
10854 2004-02-23 Roland McGrath <roland@redhat.com>
10855
10856 * auxv.c (info_auxv_command): Fix typos in error messages.
10857
10858 2004-02-23 Mark Kettenis <kettenis@gnu.org>
10859
10860 * x86-64-tdep.h: Tweak comment.
10861 (enum amd64_regnum): New.
10862 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
10863 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
10864 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
10865 (X86_64_XMM1_REGNUM): Removed.
10866 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
10867 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
10868 prototypes for renamed functions.
10869 * x86-64-tdep.c: Fix typo.
10870 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
10871 register numbers.
10872 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
10873 Use constants from `enum amd64_regnum' for register numbers.
10874 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
10875 (amd64_analyze_prologue, amd64_frame_cache,
10876 amd64_sigtramp_frame_cache): Use constants from `enum
10877 amd64_regnum' for register numbers.
10878 (amd64_supply_fpregset): Adjust for renamed functions.
10879 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
10880 `enum amd64_regnum' for register numbers.
10881 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
10882 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
10883 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
10884 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
10885 (amd64_linux_fill_gregset): Adjust for renamed macros.
10886 (fetch_core_registers): Adjust for renamed functions.
10887 (amd64_linux_init_abi): Adjust for renamed functions.
10888 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
10889 renamed functions.
10890 * amd64-nat.c: Adjust for renamed macros.
10891 * amd64bsd-nat.c (fetch_inferior_registers)
10892 (store_inferior_registers): Use constants from `enum amd64_regnum'
10893 for register numbers. Adjust for renamed variables.
10894 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
10895 renamed variables.
10896 (_initialize_amd64fbsd_nat): Use constants from `enum
10897 amd64_regnum' for register numbers.
10898 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
10899 `enum amd64_regnum' for register numbers.
10900 (amd64fbsd_init_abi): Adjust for renamed functions.
10901 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
10902 `enum amd64_regnum' for register numbers.
10903 (amd64nbsd_init_abi): Adjust for renamed functions.
10904 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
10905 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
10906 `enum amd64_regnum' for register numbers.
10907 (amd64obsd_init_abi): Adjust for renamed functions.
10908 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
10909
10910 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
10911
10912 * breakpoint.c (print_one_breakpoint): Do not output spaces
10913 after printing <PENDING> for a pending breakpoint.
10914
10915 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
10916
10917 * printcmd.c (print_scalar_formatted): Initialize val_long
10918 to remove compiler warning message.
10919
10920 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
10921
10922 * defs.h (nquery, yquery): New prototypes.
10923 * breakpoint.c (break_command_1): Use new nquery interface.
10924 * utils.c (defaulted_query, nquery, yquery): New functions.
10925
10926 2004-02-23 Andrew Cagney <cagney@redhat.com>
10927
10928 * hppa-tdep.c (hppa_frame_align): New function.
10929 (hppa32_push_dummy_call): New function.
10930 (hppa64_push_dummy_call): New function.
10931 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
10932 disabled.
10933
10934 * infcall.c (legacy_push_dummy_code): Don't call deprecated
10935 FIX_CALL_DUMMY when push_dummy_call is available.
10936 (call_function_by_hand, push_dummy_code): Ditto.
10937
10938 2004-02-22 Andrew Cagney <cagney@redhat.com>
10939
10940 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
10941 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
10942 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
10943 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
10944 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
10945 call_dummy_location to ON_STACK.
10946
10947 2004-02-22 Mark Kettenis <kettenis@gnu.org>
10948
10949 * x86-64-linux-tdep.c: Tweak comment.
10950 (amd64_linux_supply_gregset): Renamed from
10951 x86_64_linux_supply_gresget.
10952 (amd64_linux_fill_gregset): Renamed from
10953 x86_64_linux_fill_gregset.
10954 (fetch_core_registers): Adjust for renamed functions.
10955 (amd64_core_fns): Renamed from x86_64_core_fns.
10956 (amd64_linux_sigtramp_start): Renamed from
10957 x86_64_linux_sigtramp_start.
10958 (amd64_linux_pc_in_sigtramp): Renamed from
10959 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
10960 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
10961 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
10962 (amd64_linux_sigcontext_addr): Renamed from
10963 x86_64_linux_sigcontext_addr.
10964 (amd64_linux_sc_reg_offset): Renamed from
10965 x86_64_linux_sc_reg_offset.
10966 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
10967 Adjust for renamed functions and variables.
10968 (_initialize_amd64_linux_tdep): Renamed from
10969 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
10970 variables.
10971 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
10972 Adjust for renamed functions.
10973
10974 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
10975 from x86_64_linux_gregset64_reg_offset.
10976 (amd64_linux_gregset32_reg_offset): Rename from
10977 x86_64_linux_gregset64_reg_offset.
10978 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
10979 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
10980 (amd64_linux_dr_set_control): Renamed from
10981 x86_64_linux_dr_set_control. Adjust for renamed functions.
10982 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
10983 Adjust for renamed functions.
10984 (amd64_linux_dr_reset_addr): Renamed from
10985 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
10986 (amd64_linux_dr_get_status): Renamed from
10987 x86_64_linux_dr_get_status. Adjust for renamed functions.
10988 (_initialize_amd64_linux_nat): Renamed from
10989 _initialize_x86_64_linux_nat. Adjust for renamed variables and
10990 functions.
10991 * config/i386/nm-x86-64linux.h: Update copyright year.
10992 Adjust for renamed functions.
10993
10994 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
10995 amd64fbsd_sigtramp_start.
10996 (amd64fbsd_sigtramp_end_addr): Renamed from
10997 amd64fbsd_sigtramp_end.
10998 (amd64fbsd_init_abi): Adjust for renamed variables.
10999 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
11000 variables.
11001 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
11002 amd64fbsd_sigtramp_start.
11003 (amd64fbsd_sigtramp_end_addr): Renamed from
11004 amd64fbsd_sigtramp_end.
11005
11006 2004-02-22 Andrew Cagney <cagney@redhat.com>
11007
11008 * hppa-tdep.c (hppa32_return_value): New function.
11009 (hppa64_return_value): New function.
11010 (hppa_gdbarch_init): Set return_value; keep disabled.
11011
11012 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
11013 struct-return and inferior function call methods.
11014
11015 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
11016 "frame-base.h".
11017 (struct hppa_frame_cache): Define.
11018 (hppa_frame_cache, hppa_frame_this_id): New functions.
11019 (hppa_frame_prev_register): New function.
11020 (hppa_frame_unwind, hppa_frame_base): New variables.
11021 (hppa_frame_unwind_sniffer): New function.
11022 (hppa_frame_base_address, hppa_unwind_pc): New function.
11023 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
11024 sniffer, and frame base sniffer; keep disabled.
11025 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
11026 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
11027
11028 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
11029 to predicates for "seriously old code".
11030
11031 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
11032 runtime if(0).
11033
11034 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
11035 unsigned.
11036 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
11037
11038 * config/pa/tm-hppa.h: Update copyright.
11039 (DEPRECATED_INIT_FRAME_PC): Delete macro.
11040 (deprecated_init_frame_pc_default): Delete declaration.
11041 (hppa_frame_init_saved_regs): Delete declaration.
11042 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
11043 * hppa-tdep.c: Include "arch-utils.h".
11044 (hppa_gdbarch_init): Set deprecated init_frame_pc
11045 and deprecated frame_init_saved_regs.
11046 (hppa_frame_init_saved_regs): Make static.
11047
11048 2004-02-22 Mark Kettenis <kettenis@gnu.org>
11049
11050 Remove old 386BSD support.
11051 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
11052 * configure.host: Remove i[34567]86-*-bsd*.
11053 * configure.tgt: Remove i[34567]86-*-bsd*.
11054 * i386b-nat.c: Removed.
11055 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
11056 (i386b-nat.o): Remove dependencies.
11057
11058 * config/i386/i386bsd.mh: Removed.
11059 * config/i386/i386bsd.mt: Removed.
11060 * config/i386/nm-i386bsd.h: Removed.
11061 * config/i386/tm-i386bsd.h: Removed.
11062 * config/i386/xm-i386bsd.h: Removed.
11063
11064 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
11065
11066 * amd64fbsd-tdep.c: Include "solib-svr4.h".
11067 (amd64fbsd_init_abi): Set link map offsets.
11068 * amd64nbsd-tdep.c: Include "slib-svr4.h".
11069 (amd64nbsd_init_abi): Set link map offsets.
11070 * amd64obsd-tdep.c: Include "solib-svr4.h".
11071 (amd64obsd_init_abi): Set link map offsets.
11072 * i386fbsd-tdep.c: Include "solib-svr4.h".
11073 (i386fbsd_init_abi): Set link map offsets.
11074 * i386nbsd-tdep.c: Include "solib-svr4.h".
11075 (i386nbsdelf_init_abi): Set link map offsets.
11076 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
11077 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
11078 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
11079 solib-legacy.o and core-aout.o. Reformat.
11080 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
11081 solib-svr4.o, solib-legacy.o. Reformat.
11082 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
11083 * config/i386/nbsdelf.mh: Reformat.
11084 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
11085 solib-svr4.o, solib-legacy.o and corelow.o.
11086 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
11087 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
11088 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
11089 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11090 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11091 (TM_FILE): Set to tm-fbsd.h.
11092 * config/i386/nbsd.mt (TDEPFILES): Reformat.
11093 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
11094 solib-svr4.o.
11095 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
11096 solib-svr4.o.
11097 (TM_FILE): Set to nm-nbsd.h.
11098 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
11099 Simplify shared library support. Don't include "elf/common.h".
11100 (SVR4_SHARED_LIBS): Don't define.
11101 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
11102 "solib.h".
11103 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
11104 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
11105 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
11106 Don't include "i386/tm-i386.h". Include "solib.h".
11107 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
11108 Don't include "i386/tm-i386.h".
11109 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
11110 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
11111 Include "i386/xm-i386.h".
11112 (HOST_LONG_DOUBLE_FORMAT): Remove.
11113
11114 Fix OpenBSD/i386 sigtramp recognition.
11115 * i386-tdep.h: Update copyright year.
11116 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
11117 (i386bsd_sigtramp_end): New prototypes.
11118 (i386fbsd_sigtramp_start_addr): Renamed from
11119 i386fbsd_sigtramp_start.
11120 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11121 (i386obsd_sigtramp_start_addr): Renamed from
11122 i386obsd_sigtramp_start.
11123 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11124 * i386bsd-tdep.c: Update copyright year.
11125 (i386bsd_pc_in_sigtramp): Make public.
11126 * i386fbsd-nat.c: Update copyright year.
11127 (_initialize_i386fbsd_nat): Adjust for renamed variables.
11128 * i386fbsd-tdep.c: Update copyright year.
11129 (i386fbsd_sigtramp_start_addr): Renamed from
11130 i386fbsd_sigtramp_start.
11131 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11132 (i386fbsdaout_init_abi): Adjust for renamed variables.
11133 * i386obsd-nat.c: Update copyright year.
11134 (_initialize_i386obsd_nat): Adjust for renamed variables.
11135 * i386obsd-tdep.c: Include "target.h".
11136 (i386obsd_page_size): New variable.
11137 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
11138 (i386obsd_sigtramp_end): New functions.
11139 (i386obsd_sigtramp_start_addr): Renamed from
11140 i386obsd_sigtramp_start.
11141 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11142 (i386obsd_init_abi): Adjust for renamed variables. Set
11143 pc_in_sigtramp, sigtramp_start and sigtramp_end.
11144 * Makefile.in (i386obsd-tdep.o): Update dependencies.
11145
11146 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
11147 trampoline change in OpenBSD kernel.
11148
11149 * amd64-nat.c: Update copyright year.
11150 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
11151 architecture from REGCACHE.
11152
11153 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
11154 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
11155
11156 2004-02-21 Mark Kettenis <kettenis@gnu.org>
11157
11158 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
11159 i[34567]86-*-openbsd3.[0-3].
11160 * config/i386/obsdaout.mh: New file.
11161
11162 * config/i386/obsd.mh (MH_FLAGS): Remove.
11163
11164 Fix PR build/1549.
11165 * i386obsd-tdep.c: Update copyright years. Include
11166 "solib-svr4.h".
11167 (i386obsd_init_abi): Don't set regset_from_core_section here.
11168 (i386obsd_aout_init_abi): New function. Set
11169 regset_from_core_section here.
11170 (i386obsd_elf_init_abi): New function.
11171 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
11172 * Makefile.in (i386obsd-tdep.o): Update dependecies.
11173 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
11174 (TM_FILE): Set to tm-nbsd.h.
11175
11176 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
11177 solib-sunos.o.
11178
11179 * solib-svr4.h: Update copyright year.
11180 (svr4_ilp32_fetch_link_map_offsets)
11181 (svr4_lp64_fetch_link_map_offsets): New prototype.
11182 * solib-svr4.c: Update copyright year.
11183 (svr4_ilp32_fetch_link_map_offsets)
11184 (svr4_lp64_fetch_link_map_offsets): New function.
11185
11186 2004-02-20 Daniel Jacobowitz <drow@mvista.com>
11187
11188 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
11189 to the partial symbol table.
11190
11191 2004-02-20 J. brobecker <brobecker@gnat.com>
11192
11193 * PROBLEMS: Add description of problem documented under gdb/1560.
11194
11195 2004-02-20 Mark Kettenis <kettenis@gnu.org>
11196
11197 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
11198 comments.
11199 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
11200 functions.
11201 (amd64obsd_init_abi): Reorder initializations. Use
11202 amd64obsd_r_reg_offset to initialize the general-purpose register
11203 set details. Set regset_from_core_section.
11204 (_initialize_amd64obsd_tdep): Rename from
11205 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
11206 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
11207 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
11208
11209 * NEWS (New native configurations): Mention OpenBSD/alpha.
11210 * configure.tgt: Add alpha*-*-openbsd*.
11211 * configure.host: Add alpha*-*-openbsd*.
11212 * alphanbsd-tdep.c: Update copyright year.
11213 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
11214
11215 2004-02-20 Andrew Cagney <cagney@redhat.com>
11216
11217 Fix PR tdep/1372.
11218 * configure.tgt: Delete target "none-*-*".
11219 * configure.host: Delete host "none-*-*".
11220 * config/none/none.mh: Delete file.
11221 * config/none/none.mt: Delete file.
11222 * config/none/xm-none.h: Delete file.
11223 * config/none/tm-none.h: Delete file.
11224 * config/none/nm-none.h: Delete file.
11225
11226 2004-02-19 Fred Fish <fnf@redhat.com>
11227
11228 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
11229 cache->uses_fp prior to setting it.
11230
11231 2004-02-19 Fred Fish <fnf@redhat.com>
11232
11233 Fix for PR breakpoint/1558.
11234 * sh-tdep.c (IS_JSR): New macro.
11235 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
11236
11237 2004-02-19 Jim Blandy <jimb@redhat.com>
11238
11239 * findvar.c (value_from_register): Doc fix.
11240
11241 2004-02-19 Jeff Johnston <jjohnstn@redhat.com>
11242
11243 * printcmd.c (print_scalar_formatted): Do not check for sizeof
11244 type being greater than sizeof of host's LONGEST. Always use
11245 unpack_long() unless format 'f' chosen.
11246
11247 2004-02-19 Joel Brobecker <brobecker@gnat.com>
11248
11249 Committed by Elena Zannoni <ezannoni@redhat.com>
11250
11251 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
11252 contains a symbol wich is the best, non-exact match for the given
11253 pc. Update comments.
11254
11255 2004-02-19 Elena Zannoni <ezannoni@redhat.com>
11256
11257 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
11258 macro, which was part of the now removed Mach 3 port.
11259 * utils.c (request_quit): Ditto.
11260
11261 2004-02-18 Mark Kettenis <kettenis@gnu.org>
11262
11263 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
11264 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
11265
11266 2004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11267
11268 Committed by Mark Kettenis <kettenis@gnu.org>.
11269
11270 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
11271 Define.
11272
11273 2004-02-18 Andrew Cagney <cagney@redhat.com>
11274
11275 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
11276 CONFIG_INSTALL and CONFIG_UNINSTALL.
11277 * configure: Re-generate.
11278 * interps.h (INTERP_TUI): Define.
11279 * Makefile.in: Update dependencies.
11280 (TUI): New macro.
11281 (tui-main.o): Specify dependencies.
11282 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
11283 * tui/tui-main.c: New file.
11284
11285 2004-02-18 Mark Kettenis <kettenis@gnu.org>
11286
11287 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
11288 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
11289 dependencies.
11290 * configure.host: Add x86_64-*-openbsd*.
11291 * configure.tgt: Add x86_64-*-openbsd*.
11292 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
11293
11294 * tui/tui.c: Don't include <malloc.h>.
11295
11296 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
11297 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
11298 amd64nbsd-tdep.c.
11299
11300 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
11301 static. Remove extraneous whitespace.
11302 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
11303 static.
11304
11305 2004-02-17 Jim Blandy <jimb@redhat.com>
11306
11307 * findvar.c (value_from_register): Doc fix.
11308
11309 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11310
11311 Committed by Jim Blandy <jimb@redhat.com>.
11312
11313 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
11314 CORE_ADDR as type for selectors. Correct types for GNU run time
11315 message lookup function to use double indirection.
11316 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
11317 * objc-lang.h (lookup_child_selector): Adapt prototype.
11318
11319 * s390-nat.c (SUBOFF): New macro.
11320 (supply_gregset, fill_gregset): Use it to handle debugging
11321 of 32-bit exectuables running under a 64-bit kernel.
11322 * s390-tdep.c: Include "solib-svr4.h".
11323 (s390_svr4_fetch_link_map_offset): New function.
11324 (s390x_svr_fetch_link_map_offset): Likewise.
11325 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
11326 * Makefile.in (s390-tdep.o): Update dependencies.
11327
11328 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
11329 "frame-unwind.h".
11330 (s390_readinstruction): Reformat. Use read_memory_nobpt.
11331 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
11332 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
11333 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
11334 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
11335 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
11336 S390_SIGNAL_FRAMESIZE,
11337 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
11338 (struct frame_extra_info): Remove.
11339 (s390_memset_extra_info): Remove.
11340 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
11341 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
11342 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
11343 (is_rse): Renamed to ...
11344 (is_rsy): ... this. Support long displacements.
11345 (is_rxe): Renamed to ...
11346 (is_rxy): ... this. Support long displacements.
11347 (compute_x_addr): Support long displacements.
11348 (struct s390_prologue_data): New data type.
11349 (s390_on_stack): Change API to use struct s390_prologue_data.
11350 (s390_store): Reimplement.
11351 (s390_load): New function.
11352 (s390_get_signal_frame_info): Remove.
11353 (s390_get_frame_info): Remove, replace by ...
11354 (s390_analyze_prolog): ... this new function.
11355 (s390_check_function_end): Remove.
11356 (s390_function_start): Remove.
11357 (s390_frameless_function_invokation): Remove.
11358 (s390_is_sigreturn): Remove.
11359 (s390_init_frame_pc_first): Remove.
11360 (s390_init_frame_extra_info): Remove.
11361 (s390_frame_init_saved_regs): Remove.
11362 (s390_frame_saved_pc_nofix): Remove.
11363 (s390_frame_saved_pc): Remove.
11364 (s390_frame_chain): Remove.
11365 (s390_fp_regnum, s390_read_fp): Remove.
11366 (s390_pop_frame_regular, s390_pop_frame): Remove.
11367 (s390_saved_pc_after_call): Remove.
11368 (s390_skip_prologue): Reimplement.
11369 (s390_in_function_epilogue_p): Support long displacements.
11370 (struct s390_unwind_cache): New data structure.
11371 (s390_frame_unwind_cache): New function.
11372 (s390_prologue_frame_unwind_cache): Likewise.
11373 (s390_backchain_frame_unwind_cache): Likewise.
11374 (s390_frame_this_id, s390_frame_prev_register): Likewise.
11375 (s390_frame_unwind): Define.
11376 (s390_frame_sniffer): New function.
11377 (struct s390_pltstub_unwind_cache): New data structure.
11378 (s390_pltstub_frame_unwind_cache): New function.
11379 (s390_pltstub_frame_this_id): Likewise.
11380 (s390_pltstub_frame_prev_register): Likewise.
11381 (s390_pltstub_frame_unwind): Define.
11382 (s390_pltstub_frame_sniffer): New function.
11383 (struct s390_sigtramp_unwind_cache): New data structure.
11384 (s390_sigtramp_frame_unwind_cache): New function.
11385 (s390_sigtramp_frame_this_id): Likewise.
11386 (s390_sigtramp_frame_prev_register): Likewise.
11387 (s390_sigtramp_frame_unwind): Define.
11388 (s390_sigtramp_frame_sniffer): New function.
11389 (s390_frame_base_address, s390_local_base_address): New functions.
11390 (s390_frame_base): Define.
11391 (s390_unwind_pc, s390_unwind_sp): New function.
11392 (s390_push_dummy_call): Use new frame base location.
11393 (s390_unwind_dummy_id): Likewise.
11394 (s390_gdbarch_init): Remove calls to:
11395 set_gdbarch_frameless_function_invocation,
11396 set_gdbarch_deprecated_init_frame_pc,
11397 set_gdbarch_deprecated_frame_chain,
11398 set_gdbarch_deprecated_frame_init_saved_regs,
11399 set_gdbarch_deprecated_pop_frame,
11400 set_gdbarch_deprecated_init_extra_frame_info,
11401 set_gdbarch_deprecated_init_frame_pc_first,
11402 set_gdbarch_deprecated_target_read_fp,
11403 set_gdbarch_deprecated_frame_saved_pc,
11404 set_gdbarch_deprecated_saved_pc_after_call,
11405 set_gdbarch_deprecated_fp_regnum.
11406 Add calls to:
11407 set_gdbarch_in_solib_call_trampoline,
11408 frame_unwind_append_sniffer,
11409 frame_base_set_default,
11410 set_gdbarch_unwind_pc,
11411 set_gdbarch_unwind_sp.
11412 * Makefile.in (s390-tdep.o): Update dependencies.
11413
11414 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
11415 (S390_STACK_FRAME_OVERHEAD): Remove.
11416 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
11417 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
11418 (s390_promote_integer_argument): Remove.
11419 (s390_cannot_extract_struct_value_address): Remove.
11420 (s390_use_struct_convention, s390_store_struct_return): Remove.
11421 (s390_extract_return_value, s390_store_return_value): Remove.
11422 (s390_return_value_convention, s390_return_value): New functions.
11423 (is_float_singleton): Handle typedefs.
11424 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
11425 Remove, replace by ...
11426 (s390_function_arg_pass_by_reference, s390_function_arg_float,
11427 s390_function_arg_integer): ... these new functions.
11428 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
11429 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
11430 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
11431 Fill in tdep->abi.
11432 Remove calls to:
11433 set_gdbarch_deprecated_store_struct_return,
11434 set_gdbarch_deprecated_extract_return_value,
11435 set_gdbarch_deprecated_store_return_value,
11436 set_gdbarch_use_struct_convention,
11437 set_gdbarch_extract_struct_value_address,
11438 set_gdbarch_deprecated_pc_in_call_dummy,
11439 set_gdbarch_deprecated_push_arguments,
11440 set_gdbarch_deprecated_save_dummy_frame_tos,
11441 set_gdbarch_deprecated_push_return_address,
11442 set_gdbarch_deprecated_sizeof_call_dummy_words,
11443 set_gdbarch_deprecated_call_dummy_words,
11444 set_gdbarch_deprecated_dummy_write_sp.
11445 Add calls to:
11446 set_gdbarch_push_dummy_call,
11447 set_gdbarch_unwind_dummy_id,
11448 set_gdbarch_return_value.
11449
11450 * config/s390/nm-linux.h: Update comments.
11451 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
11452 (STOPPED_BY_WATCHPOINT): Redefine.
11453 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
11454 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
11455 (s390_stopped_by_watchpoint): Likewise.
11456 (watch_area_cnt): Remove.
11457 * s390-nat.c: Update comments.
11458 (watch_area): Remove typedef.
11459 Global replace watch_area by struct watch_area.
11460 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
11461 (s390_stopped_by_watchpoint): Remove pid argument,
11462 use s390_inferior_tid. Add short-cut for the no watchpoint case.
11463 (s390_fix_watch_points): Remove pid argument,
11464 use s390_inferior_tid. Recompute area spanned by watchpoints.
11465 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
11466 argument. Reimplement.
11467
11468 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
11469 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
11470 (FETCH_INFERIOR_REGISTERS): Define.
11471 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
11472 core-regset.o.
11473 * config/s390/s390x.mt: Remove.
11474 * config/s390/tm-s390.h: Remove.
11475 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
11476 (TARGET_ELF64): Remove.
11477 (SKIP_TRAMPOLINE_CODE): Do not undefine.
11478 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
11479 s390*-*-* case; always set gdb_target to s390.
11480 * regformats/reg-s390.dat: Remove control registers.
11481 * regformats/reg-s390x.dat: Likewise.
11482 * s390-tdep.h: New file.
11483 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
11484 Include "inferior.h" and "s390-tdep.h".
11485 Remove private definition of offsetof.
11486 (s390_register_u_addr): Remove.
11487 (regmap_gregset, regmap_fpregset): Define.
11488 (supply_gregset, fill_gregset): Reimplement.
11489 (supply_fpregset, fill_fpregset): Likewise.
11490 (s390_inferior_tid): New function.
11491 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
11492 (fetch_inferior_registers, store_inferior_registers): Likewise.
11493 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
11494 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
11495 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
11496 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
11497 (struct gdbarch_tdep): Define.
11498 (struct s390_register_info): Define.
11499 (s390_register_info): New variable.
11500 (s390_register_name): Reimplement.
11501 (s390_register_type): New function.
11502 (s390_register_raw_size, s390x_register_raw_size): Remove.
11503 (s390_cannot_fetch_register): Remove.
11504 (s390_register_byte): Remove.
11505 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
11506 (s390_dwarf_regmap): New variable.
11507 (s390_dwarf_reg_to_regnum): New function.
11508 (s390_stab_reg_to_regnum): Remove.
11509 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
11510 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
11511 (s390_convert_register_p): Likewise.
11512 (s390_register_to_value, s390_value_to_register): Likewise.
11513 (s390_register_reggroup_p): Likewise.
11514 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
11515 s390_gregset, s390x_gregset, s390_fpregset): New variables.
11516 (s390_supply_regset, s390_regset_from_core_section): New functions.
11517 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
11518 (S390_FPR_SIZE): Likewise.
11519 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
11520 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
11521 (S390_NUM_GPRS): Move here from tm-s390.h.
11522 (S390_NUM_FPRS): Likewise.
11523 (s390_in_function_epilogue_p): New function.
11524 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
11525 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
11526 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
11527 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
11528 Replace S390_FP_REGNUM by S390_SP_REGNUM.
11529 Remove calls to:
11530 set_gdbarch_deprecated_max_register_raw_size,
11531 set_gdbarch_deprecated_max_register_virtual_size,
11532 set_gdbarch_deprecated_register_byte,
11533 set_gdbarch_cannot_fetch_register,
11534 set_gdbarch_cannot_store_register,
11535 set_gdbarch_deprecated_register_size,
11536 set_gdbarch_deprecated_register_raw_size,
11537 set_gdbarch_deprecated_register_virtual_size,
11538 set_gdbarch_deprecated_register_virtual_type,
11539 set_gdbarch_deprecated_register_bytes.
11540 Add calls to:
11541 set_gdbarch_num_pseudo_regs,
11542 set_gdbarch_register_type,
11543 set_gdbarch_convert_register_p,
11544 set_gdbarch_register_to_value,
11545 set_gdbarch_value_to_register,
11546 set_gdbarch_register_reggroup_p,
11547 set_gdbarch_regset_from_core_section,
11548 set_gdbarch_pseudo_register_read,
11549 set_gdbarch_pseudo_register_write,
11550 set_gdbarch_in_function_epilogue_p.
11551 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
11552 (s390_tdep_h): New variable.
11553
11554 2004-02-17 Jim Blandy <jimb@redhat.com>
11555
11556 * findvar.c (value_from_register): If the type has no length, just
11557 return an acceptable value --- don't report an internal error.
11558
11559 * stabsread.c (read_type): If we find any type numbers that are
11560 forward references, complain if the references aren't resolved by
11561 the time we're finished reading.
11562 (cleanup_undefined_types): Make error message more appropriate for
11563 a complaint.
11564
11565 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
11566
11567 * Makefile.in (defs_h): Remove dependency on progress_h.
11568 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
11569 progress.h.
11570 * main.c (captured_main): Delete use of START_PROGRESS and
11571 END_PROGRESS.
11572
11573 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
11574
11575 * objfiles.c (terminate_minimal_symbol_table): Add back
11576 initialization of MSYMBOL_TYPE.
11577
11578 2004-02-17 David Mosberger <davidm@hpl.hp.com>
11579
11580 Committed by Andrew Cagney.
11581 * Makefile.in (ia64_tdep_h): New macro.
11582 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
11583 (ia64-tdep.o): Likewise.
11584 * ia64-tdep.h: New file.
11585 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
11586 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
11587 (ia64_aix_sigcontext_register_address): Likewise.
11588 (ia64_linux_getunwind_table): Delete declaration.
11589 * ia64-linux-tdep.c: Likewise.
11590
11591 2004-02-17 Corinna Vinschen <vinschen@redhat.com>
11592
11593 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
11594 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
11595 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
11596
11597 2004-02-17 Andrew Cagney <cagney@redhat.com>
11598
11599 * symtab.c (skip_prologue_using_sal): New function.
11600 * symtab.h (skip_prologue_using_sal): Declare.
11601 * frv-tdep.c: Include "symtab.h".
11602 (skip_prologue_using_sal): Delete function.
11603 * mips-tdep.c (skip_prologue_using_sal): Delete function.
11604 * rs6000-tdep.c (refine_prologue_limit): Mention
11605 skip_prologue_using_sal.
11606 * ia64-tdep.c (refine_prologue_limit): Ditto.
11607 * Makefile.in: Update dependencies.
11608
11609 2004-02-16 Andrew Cagney <cagney@redhat.com>
11610
11611 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
11612 START_INFERIOR_TRAPS_EXPECTED.
11613 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
11614 START_INFERIOR_TRAPS_EXPECTED.
11615 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
11616 Delete macro.
11617 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
11618 macro, moved to "nm-osf.h". Update copyright.
11619 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
11620 update copyright.
11621
11622 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
11623 and function replacing FRAMELESS_FUNCTION_INVOCATION.
11624 * blockframe.c (legacy_frameless_look_for_prologue): Rename
11625 frameless_look_for_prologue.
11626 * frame.h (legacy_frameless_look_for_prologue): Rename
11627 frameless_look_for_prologue.
11628 * gdbarch.h, gdbarch.c: Re-generate.
11629 * sh64-tdep.c (sh64_gdbarch_init): Update.
11630 * sh-tdep.c (sh_gdbarch_init): Update.
11631 * s390-tdep.c (s390_gdbarch_init): Update.
11632 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11633 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11634 * m68k-tdep.c (m68k_gdbarch_init): Update.
11635 (delta68_frame_args_address): Update.
11636 * m32r-tdep.c (m32r_gdbarch_init): Update.
11637 * hppa-tdep.c (hppa_gdbarch_init): Update.
11638 * h8300-tdep.c (h8300_gdbarch_init): Update.
11639 * frv-tdep.c (frv_gdbarch_init): Update.
11640 (frv_frameless_function_invocation): Update.
11641 * cris-tdep.c (cris_gdbarch_init): Update.
11642 (cris_frameless_function_invocation): Update.
11643 * avr-tdep.c (avr_gdbarch_init): Update.
11644 * arm-tdep.c (arm_gdbarch_init): Update.
11645 * stack.c (frame_info): Update, call predicate.
11646 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
11647 * frame.c (legacy_get_prev_frame): Update, call predicate..
11648 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
11649 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
11650 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
11651 invocation.
11652 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11653 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11654 * vax-tdep.c (vax_gdbarch_init): Ditto.
11655
11656 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
11657 function.
11658
11659 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
11660
11661 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
11662 initializations.
11663
11664 2004-02-16 Andrew Cagney <cagney@redhat.com>
11665
11666 * tui/tui-windata.c: Include "gdb_string.h".
11667 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
11668 * tui/tui-layout.c, tui/tui-command.c: Ditto.
11669 * Makefile.in: Update dependencies.
11670
11671 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
11672
11673 * Makefile.in (infrun.o): Add $(gdb_assert_h).
11674 * infrun.c: Include "gdb_assert.h".
11675 (singlestep_ptid, saved_singlestep_ptid)
11676 (stepping_past_singlestep_breakpoint): New variables.
11677 (resume): Set singlestep_ptid. Check for singlestep thread
11678 hop.
11679 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
11680 (handle_inferior_event): Handle singlestep thread hop.
11681
11682 2004-02-16 Andrew Cagney <cagney@redhat.com>
11683
11684 * dwarf2-frame.c (dwarf2_frame_ops): New function.
11685 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
11686 (dwarf2_frame_init_reg): Ditto.
11687
11688 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
11689 suggested by Joshua Neuheisel
11690
11691 * configure.in: Always check for curses, including pdcurses.
11692 Warn, instead of error, when no curses are found. Enable TUI when
11693 curses is available.
11694 * configure: Re-generate.
11695
11696 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
11697
11698 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
11699 sh_sh4_register_convert_to_virtual.
11700 (sh_register_convert_to_raw): Rename from
11701 sh_sh4_register_convert_to_raw.
11702 (sh_pseudo_register_read): Accomodate above name change.
11703 (sh_pseudo_register_write): Ditto.
11704
11705 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
11706
11707 * sh-tdep.c (sh_generic_register_name): Remove.
11708 (sh_gdbarch_init): Use sh_sh_register_name in default case.
11709
11710 2004-02-15 Andrew Cagney <cagney@redhat.com>
11711
11712 * configure.in (build_warnings): Add -Wunused-function.
11713 * configure: Re-generate.
11714
11715 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
11716 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
11717
11718 * procfs.c (procfs_init_inferior): Assume that
11719 START_INFERIOR_TRAPS_EXPECTED is defined.
11720 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
11721 * config/ns32k/tm-nbsd.h: Delete file,
11722 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
11723
11724 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
11725 * config/vax/tm-vax.h: Delete file.
11726
11727 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11728 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11729 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11730 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11731 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
11732 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11733 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
11734
11735 2004-02-15 Mark Kettenis <kettenis@gnu.org>
11736
11737 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
11738 * dwarf2-frame.c (dwarf2_frame_data): New variable.
11739 (struct dwarf2_frame_ops): New.
11740 (dwarf2_frame_default_init_reg): New function, based on
11741 dwarf2_frame_init_reg.
11742 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
11743 (dwarf2_frame_init_reg): Call architecture-specific function.
11744 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
11745 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
11746 instead of dwarf2_frame_data.
11747 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
11748 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
11749
11750 2004-02-15 Andrew Cagney <cagney@redhat.com>
11751
11752 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
11753 register_gdbarch_swap.
11754 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
11755 * f-lang.c (_initialize_f_language): Update, use
11756 DEPRECATED_REGISTER_GDBARCH_SWAP.
11757 * remote.c (_initialize_remote): Ditto.
11758 * regcache.c (_initialize_regcache): Ditto.
11759 * parse.c (_initialize_parse): Ditto.
11760 * infrun.c (_initialize_infrun): Ditto.
11761 * mi/mi-main.c (_initialize_mi_main): Ditto.
11762 * gdbtypes.c (_initialize_gdbtypes): Ditto.
11763
11764 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
11765 poking .cacheable directly.
11766 * symfile.c (symfile_bfd_open): Ditto.
11767
11768 * Makefile.in: Update all dependencies.
11769
11770 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
11771 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
11772 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
11773 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
11774 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
11775
11776 2004-02-14 Andrew Cagney <cagney@redhat.com>
11777
11778 * arch-utils.c (legacy_convert_register_p): Check
11779 DEPRECATED_REGISTER_CONVERTIBLE_P.
11780 * findvar.c (value_of_register): Ditto.
11781
11782 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
11783 * gdbarch.h, gdbarch.c: Re-generate.
11784 * arch-utils.c (deprecated_register_convertible_not): Delete.
11785 * arch-utils.h (deprecated_register_convertible_not): Delete.
11786 * mi/mi-main.c (get_register): Update. Update copyright.
11787 * infcmd.c (default_print_registers_info): Update.
11788
11789 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
11790 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
11791 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
11792 * gdbarch.h, gdbarch.c: Re-generate.
11793 * frame.c (deprecated_get_next_frame_hack): Delete function.
11794 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
11795 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
11796 Update.
11797 * infcall.c (call_function_by_hand): Update.
11798
11799 2004-02-14 Elena Zannoni <ezannoni@redhat.com>
11800
11801 * symfile.c (init_entry_point_info, entry_point_address): Move
11802 from here...
11803 * objfiles.c (init_entry_point_info, entry_point_address):..to
11804 here.
11805 * symfile.h (init_entry_point_info, entry_point_address): Remove
11806 prototypes.
11807 * objfiles.h (init_entry_point_info, entry_point_address):Add
11808 prototypes.
11809 * cris-tdep.c: Remove include of symfile.h. Add include of
11810 objfiles.h.
11811 * infcall.c: Ditto.
11812 * mcore-tdep.c: Ditto.
11813 * mn10300-tdep.c: Ditto.
11814 * sh64-tdep.c: Ditto.
11815 * v850-tdep.c: Ditto.
11816 * arm-tdep.c: Remove include of symfile.h.
11817 * blockframe.c: Ditto.
11818 * coffread.c: Ditto.
11819 * dbxread.c: Ditto.
11820 * dwarf2read.c: Ditto.
11821 * dwarfread.c: Ditto.
11822 * frv-tdep.c: Ditto.
11823 * ia64-tdep.c: Ditto.
11824 * mdebugread.c: Ditto.
11825 * mipsread.c: Ditto.
11826 * rs6000-tdep.c: Ditto.
11827 * s390-tdep.c: Ditto.
11828 * sh-tdep.c: Ditto.
11829 * xstormy16-tdep.c: Ditto.
11830 * gdbarch.sh: Remove include of symfile.h.
11831 * gdbarch.c: Regenerate.
11832 * solib-irix.c (enable_break): Use entry_point_address().
11833 Add comment about include file.
11834 * xcoffread.c: Add comment about include file.
11835 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
11836 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
11837 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
11838 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
11839 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
11840
11841 2004-02-13 Andrew Cagney <cagney@redhat.com>
11842
11843 * corelow.c (core_xfer_partial): Use "struct bfd_section".
11844 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
11845 copyright.
11846 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
11847
11848 2004-02-12 Fred Fish <fnf@redhat.com>
11849
11850 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
11851 set_gdbarch_store_return_value.
11852
11853 2004-02-12 Andrew Cagney <cagney@redhat.com>
11854
11855 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
11856 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
11857 (interrupt_query): Ditto.
11858 (ofunc): Delete unused variable.
11859 * cris-tdep.c (cris_abi): Delete unused function.
11860 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
11861 (cris_get_wide_opcode, cris_get_short_size): Ditto.
11862 (cris_get_asr_quick_shift_steps): Ditto.
11863 (cris_skip_prologue_frameless_p): Ditto.
11864 * arm-tdep.c (arm_push_return_address): Delete unused function.
11865 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
11866 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
11867 * s390-tdep.c (s390_function_start): Delete unused function.
11868
11869 2004-02-12 Andrew Cagney <cagney@redhat.com>
11870
11871 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
11872 gdbarch.h, gdbarch.c: Re-generate.
11873 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
11874 to generic_prologue_frameless_p.
11875 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
11876 * arch-utils.c (generic_prologue_frameless_p): Delete function.
11877
11878 2004-02-11 Daniel Jacobowitz <drow@mvista.com>
11879
11880 * mips-linux-tdep.c: Include "frame.h".
11881 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
11882 (mips_linux_skip_resolver): New functions.
11883 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
11884 and set_gdbarch_in_solib_call_trampoline.
11885 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
11886 to after set_gdbarch_in_solib_return_trampoline. Only set the
11887 solib hooks to mips16 functions if the OS ABI is unknown.
11888 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
11889 including "config/tm-linux.h".
11890 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
11891 * Makefile.in (mips-linux-tdep.o): Update.
11892
11893 2004-02-11 David Carlton <carlton@kealia.com>
11894
11895 * linespec.c (decode_compound): Only look for a class symbol when
11896 considering all but the rightmost component.
11897
11898 2004-02-11 Andrew Cagney <cagney@redhat.com>
11899
11900 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
11901 abi code are are separatly grouped.
11902
11903 2004-02-11 Andrew Cagney <cagney@redhat.com>
11904
11905 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
11906 * gdbarch.h, gdbarch.c: Re-generate.
11907 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11908 * v850-tdep.c (v850_gdbarch_init): Update.
11909 * sh64-tdep.c (sh64_gdbarch_init): Update.
11910 * sh-tdep.c (sh_gdbarch_init): Update.
11911 * s390-tdep.c (s390_gdbarch_init): Update.
11912 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11913 * mips-tdep.c (mips_gdbarch_init): Update.
11914 * mcore-tdep.c (mcore_gdbarch_init): Update.
11915 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11916 * m32r-tdep.c (m32r_gdbarch_init): Update.
11917 * ia64-tdep.c (ia64_gdbarch_init): Update.
11918 * hppa-tdep.c (hppa_gdbarch_init): Update.
11919 * h8300-tdep.c (h8300_gdbarch_init): Update.
11920 * frv-tdep.c (frv_gdbarch_init): Update.
11921 * d10v-tdep.c (d10v_gdbarch_init): Update.
11922 * cris-tdep.c (cris_gdbarch_init): Update.
11923 * avr-tdep.c (avr_gdbarch_init): Update.
11924 * arm-tdep.c (arm_gdbarch_init): Update.
11925 * alpha-tdep.c (alpha_gdbarch_init): Update.
11926
11927 2004-02-11 Corinna Vinschen <vinschen@redhat.com>
11928
11929 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
11930 comma.
11931 (sh_sh4al_dsp_register_name): Ditto.
11932
11933 2004-02-10 Andrew Cagney <cagney@redhat.com>
11934
11935 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
11936 (mips_init_frame_pc_first): Delete function.
11937 (mips_frame_saved_pc): Delete function.
11938 (mips_frame_chain): Delete function.
11939 (mips_init_extra_frame_info): Delete function.
11940 (mips_xfer_register): Delete unused variable "reg".
11941 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
11942 (mips_n32n64_return_value): Delete unused variable "reg".
11943 (mips_n32n64_return_value): Delete unused variable "pos".
11944 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
11945 (mips_o32_return_value): Delete unused variable "pos".
11946 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
11947 (mips_print_fp_register): Delete unused variable "namelen"
11948 (mips_print_fp_register): Delete unused variable "flt2"
11949 (get_frame_pointer): Delete function.
11950 (cached_proc_desc): Delete static variable.
11951 (mips_pop_frame): Delete function.
11952 (mips_find_saved_regs): Delete function.
11953 (mips_get_saved_register): Delete function.
11954 (mips_saved_pc_after_call): Delete function.
11955 (SIGFRAME_BASE): Delete macro.
11956 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
11957 (SIGFRAME_PC_OFF): Delete macro.
11958 (SIGFRAME_REGSAVE_OFF): Delete macro.
11959 (mips_dump_tdep): Do not print deleted macro definitions.
11960
11961 2004-02-10 Andrew Cagney <cagney@redhat.com>
11962
11963 * Makefile.in (SFILES): Remove explictly listed tui files.
11964 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
11965
11966 2004-02-10 Jeff Johnston <jjohnstn@redhat.com>
11967
11968 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
11969 to use paddr functions to format ia64 addresses and long values.
11970 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
11971 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
11972 (get_kernel_table, ia64_find_proc_info_x): Ditto.
11973 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
11974 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
11975
11976 2004-02-10 Andrew Cagney <cagney@redhat.com>
11977
11978 * defs.h: Do not include "tui.h".
11979 * gdb_curses.h: New file.
11980 * tui/tui-hooks.h: New file.
11981 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
11982 (tui_install_hooks, tui_remove_hooks): Delete declarations.
11983 (tui_initialize_io): Delete declaration.
11984 (tui_initialize_readline: Delete redundant declaration.
11985 (struct tui_point): Delete definition.
11986 * tui/tui-data.h (struct tui_point): Define.
11987 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
11988 * utils.c: Include "tui/tui.h".
11989 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
11990 * printcmd.c [TUI]: Include "tui/tui.h".
11991 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
11992 * tui/tui-command.c: Include "gdb_curses.h".
11993 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
11994 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
11995 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
11996 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
11997 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
11998 * Makefile.in: Update all dependencies.
11999 (tui_hooks_h, gdb_curses_h): Define.
12000 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
12001
12002 2004-02-10 Elena Zannoni <ezannoni@redhat.com>
12003
12004 * objfiles.h (struct objfile): Remove unused fields auxf1 and
12005 auxf2. Add comments about some other rarely used fields.
12006
12007 2004-02-10 Andrew Cagney <cagney@redhat.com>
12008
12009 * Makefile.in (init.c): Fix script removing duplicates. Problem
12010 reported by Peter Schauer.
12011
12012 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
12013
12014 * bcache.c (bcache_xmalloc): Use obstack_init instead of
12015 obstack_specify_allocation.
12016 * objfiles.c (allocate_objfile): Ditto.
12017 * solib-sunos.c (solib_add_common_symbols)
12018 (allocate_rt_common_objfile): Ditto.
12019 * symfile.c (reread_symbols): Ditto.
12020 * gdb_obstack.h: Add comment.
12021
12022 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
12023
12024 * linespec.c (decode_line_1, locate_first_half)
12025 (decode_compound, lookup_prefix_sym): Update comments. Delete old
12026 commented out code.
12027
12028 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
12029
12030 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
12031 obstack_free.
12032
12033 2004-02-09 Andrew Cagney <cagney@redhat.com>
12034
12035 * blockframe.c (find_pc_partial_function): If find_pc_overlay
12036 fails, try find_pc_section. Fix PR c++/1267.
12037 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
12038 instead of find_pc_mapped_section.
12039 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
12040 not default to the section containing PC. Fix PR symtab/1519.
12041
12042 2004-02-09 Andrew Cagney <cagney@redhat.com>
12043
12044 * Makefile.in (mips-tdep.o): Update dependencies.
12045 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
12046 "trad-frame.h".
12047 (mips_unwind_pc): Return the pseudo PC register.
12048 (mips_unwind_dummy_id): New function.
12049 (mips16_fetch_instruction): New function.
12050 (mips32_fetch_instruction): New function.
12051 (struct mips_frame_cache): Define.
12052 (mips_mdebug_frame_cache): New function.
12053 (mips_mdebug_frame_this_id): New function.
12054 (mips_mdebug_frame_prev_register): New function.
12055 (mips_mdebug_frame_unwind): Define.
12056 (mips_mdebug_frame_sniffer): New function.
12057 (mips_mdebug_frame_base_address): New function.
12058 (mips_mdebug_frame_base): Define.
12059 (mips_mdebug_frame_base_sniffer): New function.
12060 (mips_gdbarch_init): Append unwind and base sniffers. Set
12061 unwind_dummy_id.
12062
12063 2004-02-08 Andrew Cagney <cagney@redhat.com>
12064
12065 * frame.c: Print both the register number and name.
12066
12067 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
12068 and a sed into a single sed. Make .c and .o patterns more robust.
12069 (OBS): Delete.
12070 (INIT_FILES): Replace OBS with COMMON_OBS.
12071 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
12072
12073 2004-02-08 Mark Kettenis <kettenis@gnu.org>
12074
12075 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
12076 the PT_WCOOKIE request.
12077
12078 2004-02-08 Andrew Cagney <cagney@redhat.com>
12079
12080 * mips-tdep.c (mips_unwind_pc): New function.
12081 (mips_gdbarch_init): Set mips_unwind_pc.
12082
12083 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
12084 (get_frame_id): Allow the UNKNOWN_FRAME.
12085 (frame_register_unwind, get_frame_type): Ditto.
12086
12087 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
12088 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
12089 unwind_dummy_id indicates a legacy frame.
12090
12091 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
12092 * configure: Re-generate.
12093
12094 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
12095 methods.
12096
12097 2004-02-08 Andrew Cagney <cagney@redhat.com>
12098
12099 * configure.in (CONFIG_ALL): Set to Makefile target, and not
12100 makefile macro.
12101 * configure: Re-generate.
12102 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
12103 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
12104 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
12105 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
12106 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
12107 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
12108 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
12109 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
12110 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
12111 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
12112
12113 2004-02-07 Andrew Cagney <cagney@redhat.com>
12114
12115 * Makefile.in: Update all dependencies.
12116
12117 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
12118 * configure: Re-generate.
12119 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
12120 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
12121 (COMMON_OBS): Add "main.o" and "annotate.o".
12122 (ANNOTATE_OBS): Delete.
12123 (OBS): Remove ANNOTATE_OBS.
12124 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
12125 CONFIG_INITS.
12126 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
12127 against CONFIG_OBS and "main.o".
12128 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
12129 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
12130
12131 * tui/tui-command.c: Include "gdb_string.h", delete register
12132 attribute, use ISO-C function signatures.
12133 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
12134 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
12135 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
12136 * tui/tui.c: Ditto.
12137
12138 * tui/tui-command.c: Change variable and function names to lower
12139 case.
12140 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
12141 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
12142 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
12143 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12144 * tui/tui-winsource.c, tui/tui.c: Ditto.
12145
12146 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
12147
12148 * buildsym.c (free_pending_blocks, finish_block)
12149 (record_pending_block, make_blockvector, end_symtab): Replace
12150 symbol_obstack with objfile_obstack.
12151 * coffread.c (process_coff_symbol, coff_read_struct_type)
12152 (coff_read_enum_type): Ditto.
12153 * cp-namespace.c (initialize_namespace_symtab)
12154 (check_one_possible_namespace_symbol): Ditto.
12155 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
12156 (dwarf2_symbol_mark_computed): Ditto.
12157 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
12158 * elfread.c (elf_symtab_read): Ditto.
12159 * hpread.c (hpread_symfile_init, hpread_symfile_init)
12160 (hpread_read_enum_type, hpread_read_function_type)
12161 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
12162 Ditto.
12163 * jv-lang.c (get_java_class_symtab, add_class_symbol)
12164 (java_link_class_type): Ditto.
12165 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
12166 (new_symbol): Ditto.
12167 * minsyms.c (install_minimal_symbols): Ditto.
12168 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
12169 (terminate_minimal_symbol_table): Replace symbol_obstack with
12170 objfile_obstack.
12171 (free_objfile): Remove freeing of symbol_obstack.
12172 * objfiles.h: Remove symbol_obstack field.
12173 * pa64solib.c (add_to_solist): Replace symbol_obstack with
12174 objfile_obstack.
12175 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
12176 symbol_obstack.
12177 (solib_add_common_symbols): Replace symbol_obstack with
12178 objfile_obstack.
12179 * somsolib.c (som_solib_add): Ditto.
12180 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
12181 (common_block_start, common_block_end): Ditto.
12182 * symfile.c (reread_symbols): Remove freeing and init of
12183 symbol_obstack.
12184 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
12185 * symfile.h: Update comment.
12186 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
12187 stats printing.
12188 * symtab.c (symbol_set_names): Replace symbol_obstack with
12189 objfile_obstack.
12190 * symtab.h (struct general_symbol_info, struct minimal_symbol):
12191 Update comments.
12192 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
12193 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
12194 objfile_obstack.
12195
12196 2004-02-07 Andrew Cagney <cagney@redhat.com>
12197
12198 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
12199 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
12200 fields and variables.
12201 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
12202 (m_beInvisible): Delete macro.
12203 * tui/tui-data.h: Fix case case fields and variables.
12204 (m_genWinPtrIsNull): Delete macro.
12205 (tui_win_list): Rename winList.
12206 (TUI_SRC_WIN): Rename srcWin.
12207 (TUI_DISASM_WIN): Rename disassemWin.
12208 (TUI_DATA_WIN): Rename dataWin.
12209 (TUI_CMD_WIN): Rename cmdWin.
12210 (m_genWinPtrNotNull): Delete macro.
12211 (m_winPtrIsNull): Delete macro.
12212 (m_winPtrNotNull): Delete macro.
12213 (tui_win_is_source_type): Replace m_winIsSourceType
12214 (tui_win_is_auxillary): Replace m_winIsAuzillary.
12215 (tui_win_has_locator): Replace m_hasLocator.
12216 (tui_set_win_highlight): Replace m_setWinHighlightOn and
12217 m_setWinHighlightOff.
12218 * tui/tui-data.c: Update references.
12219 (tui_win_is_source_type, tui_set_win_highlight): New functions.
12220 (tui_win_has_locator, tui_win_is_auxillary): New functions.
12221 * tui/tui-command.c, tui/tui-disasm.c: Update references.
12222 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
12223 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
12224 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12225 * tui/tui-winsource.c, tui/tui.c: Ditto.
12226
12227 2004-02-07 Mark Kettenis <kettenis@gnu.org>
12228
12229 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
12230 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
12231 StackGhost.
12232
12233 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
12234 variable `i6' to `i7'.
12235 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
12236
12237 2004-02-07 Andrew Cagney <cagney@redhat.com>
12238
12239 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
12240 (TuiPoint, TuiPointPtr): Ditto.
12241 (TuiStatus, TuiStatusPtr): Ditto.
12242 (TuiWinType, TuiWinTypePtr): Ditto.
12243 (struct tui_point): Rename _TuiPoint.
12244 (tui_get_low_disassembly_address): Rename
12245 tuiGetLowDisassemblyAddress.
12246 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
12247 (tuiFree): Delete declaration.
12248 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
12249 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
12250 * tui/tui.c (tuiFree): Delete function.
12251 * cli/cli-cmds.c (disassemble_command): Update references.
12252 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
12253 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
12254 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
12255 * tui/tui-winsource.c: Ditto.
12256
12257 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
12258
12259 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
12260 coffstab_build_psymtabs, elfstab_build_psymtabs)
12261 (stabsect_build_psymtabs): Replace psymbol_obstack with
12262 objfile_obstack.
12263 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
12264 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
12265 Ditto.
12266 * dwarfread.c (scan_compilation_units): Ditto.
12267 * elfread.c (elfstab_offset_sections): Ditto.
12268 * hppa-tdep.c (read_unwind_info): Ditto.
12269 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
12270 (hpread_end_psymtab): Ditto.
12271 * mdebugread.c (mdebug_build_psymtabs, add_pending)
12272 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
12273 Ditto.
12274 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
12275 * objfiles.c (add_to_objfile_sections)
12276 (build_objfile_section_table): Ditto.
12277 (allocate_objfile): Remove init of psymbol_obstack.
12278 (free_objfile): Remove freeing of psymbol_obstack.
12279 * objfiles.h (struct objfile): Remove field
12280 psymbol_obstack. Update comments.
12281 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
12282 psymbol_obstack with objfile_obstack.
12283 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
12284 psymbol_obstack.
12285 * somread.c (som_symfile_offsets, init_import_symbols)
12286 (init_export_symbols): Replace psymbol_obstack with
12287 objfile_obstack.
12288 * somsolib.c (som_solib_add_solib_objfile): Ditto.
12289 * symfile.c (default_symfile_offsets, syms_from_objfile)
12290 (reread_symbols): Remove freeing and init of psymbol_obstack.
12291 (cashier_psymtab): Update comment.
12292 * symmisc.c (print_objfile_statistics): Don't report stats for
12293 psymbol obstack.
12294 * symtab.h (struct general_symbol_info, struct partial_symtab):
12295 Update comments.
12296 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
12297 (xcoff_symfile_offsets): Replace psymbol_obstack with
12298 objfile_obstack.
12299
12300 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
12301
12302 * objfiles.h (struct objfile): Add objfile_obstack field.
12303 Remove type_obstack field.
12304
12305 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
12306 read_structure_scope read_enumeration, new_symbol): Replace
12307 type_obstack with objfile_obstack.
12308 * dwarfread.c (struct_type, enum_type): Ditto.
12309 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
12310 (lookup_fundamental_type): Ditto.
12311 * gdbtypes.h (TYPE_ALLOC): Ditto.
12312 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
12313 (hpread_read_doc_function_type, hpread_read_struct_type)
12314 (fix_static_member_physnames, hpread_read_array_type)
12315 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
12316 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
12317 (java_link_class_type): Ditto.
12318 * mdebugread.c (parse_type): Ditto.
12319 * objfiles.c (allocate_objfile, free_objfile): Ditto.
12320 * solib-sunos.c (solib_add_common_symbols): Ditto.
12321 * stabsread.c (define_symbol, read_type, read_member_functions,
12322 read_cpp_abbrev, read_one_struct_field): Ditto.
12323 * symfile.c (reread_symbols): Ditto.
12324 * symmisc.c (print_objfile_statistics): Ditto.
12325
12326 2004-02-07 Andrew Cagney <cagney@redhat.com>
12327
12328 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
12329 (tui_exec_info_content): Rename TuiExecInfoContent.
12330 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
12331 (TuiWinInfo, TuiWinInfoPtr): Ditto.
12332 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
12333 (TuiList, TuiListPtr): Ditto.
12334 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
12335 (TuiDataType, TuiDataTypePtr): Ditto.
12336 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
12337 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
12338 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
12339 (TuiSourceElement, TuiSourceElementPtr): Ditto.
12340 (TuiDataElement, TuiDataElementPtr): Ditto.
12341 (TuiWinElement, TuiWinElementPtr): Ditto.
12342 (TuiDataInfo, TuiDataInfoPtr): Ditto.
12343 (TuiCommandElement, TuiCommandElementPtr): Ditto.
12344 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
12345 (TuiWhichElement, TuiWhichElementPtr): Ditto.
12346 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
12347 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
12348 * tui/tui-command.c, tui/tui-data.c: Update references.
12349 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
12350 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
12351 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12352 * tui/tui-winsource.c, tui/tui.c: Ditto.
12353
12354 2004-02-07 Mark Kettenis <kettenis@gnu.org>
12355
12356 * dwarf2-frame.h: Update copyright.
12357 (enum dwarf2_frame_reg_rule): New.
12358 (struct dwarf2_frame_state_reg): New.
12359 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
12360 * dwarf2-frame.c: Update copyright.
12361 (enum dwarf2_reg_rule): Remove.
12362 (struct dwarf2_frame_state): Remove defenition of `struct
12363 dwarf2_frame_state_reg'.
12364 (read_reg): Call get_frame_arch to get the architecture instead of
12365 using CURRENT_GDBARCH.
12366 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
12367 DWARF2_FRAME_.
12368 (dwarf2_frame_init_reg): New function.
12369 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
12370 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
12371 initialize the register state. Prefix old `enum dwarf2_reg_rule'
12372 tags with DWARF2_FRAME_.
12373 (dwarf2_frame_prev_register): Call get_frame_arch to get the
12374 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
12375 dwarf2_reg_rule' tags with DWARF2_FRAME_.
12376
12377 2004-02-06 Andrew Cagney <cagney@redhat.com>
12378
12379 * tui/tui-data.h (struct tui_list): Rename _TuiList.
12380 (enum tui_data_type): Rename _TuiDataType.
12381 (struct tui_layout_def): Rename _TuiLayoutDef.
12382 (struct tui_source_element): Rename _TuiSourceElement.
12383 (struct tui_data_element): Rename _TuiDataElement.
12384 (struct tui_command_element): Rename _TuiCommandElement.
12385 (struct tui_locator_element): Rename _TuiLocatorElement.
12386 (union tui_which_element): Define.
12387 (struct tui_win_element): Rename _TuiWinElement.
12388 (struct tui_data_info): Rename _TuiDataInfo.
12389 (struct tui_source_info): Rename _TuiSourceInfo.
12390 (struct tui_command_info): Rename _TuiCommandInfo.
12391 (tui_initialize_static_data): Rename initializeStaticData.
12392 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
12393 (tui_alloc_win_info): Rename allocWinInfo.
12394 (tui_init_generic_part): Rename initGenericPart.
12395 (tui_init_win_info): Rename initWinInfo.
12396 (tui_alloc_content): Rename allocContent.
12397 (tui_add_content_elements): Rename addContentElements.
12398 (tui_init_content_element): Rename initContentElement.
12399 (tui_free_window): Rename freeWindow.
12400 (tui_free_win_content): Rename freeWinContent.
12401 (tui_free_data_content): Rename freeDataContent.
12402 (tui_free_all_source_wins_content): Rename
12403 freeAllSourceWinsContent.
12404 (tui_del_window): Rename tuiDelWindow.
12405 (tui_del_data_windows): Rename tuiDelDataWindows.
12406 (tui_partial_win_by_name): Rename partialWinByName.
12407 (tui_win_name): Rename winName.
12408 (tui_current_layout): Rename currentLayout.
12409 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
12410 (tui_term_height): Rename termHeight.
12411 (tui_set_term_height_to): Rename setTermHeightTo.
12412 (tui_term_width): Rename termWidth.
12413 (tui_set_term_width_to): Rename setTermWidthTo.
12414 (tui_set_gen_win_origin): Rename setGenWinOrigin.
12415 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
12416 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
12417 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
12418 (tui_source_windows): Rename sourceWindows.
12419 (tui_clear_source_windows): Rename clearSourceWindows.
12420 (tui_clear_source_windows_detail): Rename
12421 clearSourceWindowsDetail.
12422 (tui_clear_win_detail): Rename clearWinDetail.
12423 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
12424 (tui_default_tab_len): Rename tuiDefaultTabLen.
12425 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
12426 (tui_win_with_focus): Rename tuiWinWithFocus.
12427 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
12428 (tui_layout_def): Rename tuiLayoutDef.
12429 (tui_win_resized): Rename tuiWinResized.
12430 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
12431 (tui_next_win): Rename tuiNextWin.
12432 (tui_prev_win): Rename tuiPrevWin.
12433 (tui_add_to_source_windows): Rename addToSourceWindows.
12434 * tui/tui-winsource.c, tui/tui-win.c: Update references.
12435 * tui/tui-layout.c, tui/tui-source.c: Ditto.
12436 * tui/tui-stack.c, tui/tui-io.c: Ditto.
12437 * tui/tui.c, tui/tui-data.c: Ditto.
12438 * tui/tui-interp.c, tui/tui-data.c: Ditto.
12439 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
12440
12441 * tui/tui-source.h: Update copyright. Include "tui-data.h".
12442 (struct symtab): Declare.
12443 (tui_set_source_content): Rename tuiSetSourceContent.
12444 (tui_show_symtab_source): Rename tuiShowSource.
12445 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
12446 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
12447 * tui/tui-source.c: Update copyright. Update references.
12448 * tui/tui-win.c, tui/tui-winsource.c: Update references.
12449 * tui/tui-stack.c: Update references.
12450
12451 * tui/tui-win.h: Update copyright. Include "tui-data.h".
12452 (struct tui_win_info): Declare.
12453 (tui_scroll_forward): Rename tuiScrollForward.
12454 (tui_scroll_backward): Rename tuiScrollBackward.
12455 (tui_scroll_left): Rename tuiScrollLeft.
12456 (tui_scroll_right): Rename tuiScrollRight.
12457 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
12458 (tui_resize_all): Rename tuiResizeAll.
12459 (tui_refresh_all_win): Rename tuiRefreshAll.
12460 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
12461 * tui/tui-layout.c, * tui/tui-io.c: Update references.
12462 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
12463 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
12464
12465 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
12466 (tui_erase_data_content): Rename tuiEraseDataContent.
12467 (tui_display_all_data): Rename tuiDisplayAllData.
12468 (tui_check_data_values): Rename tuiCheckDataValues.
12469 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
12470 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
12471 (tui_first_data_element_no_in_line): Rename
12472 tuiFirstDataElementNoInLine.
12473 (tui_delete_data_content_windows): Rename
12474 tuiDeleteDataContentWindows.
12475 (tui_refresh_data_win): Rename tuiRefreshDataWin.
12476 (tui_display_data_from): Rename tuiDisplayDataFrom.
12477 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
12478 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
12479 * tui/tui-win.c, tui/tui-regs.c: Update references.
12480 * tui/tui-layout.c, tui/tui.c: Update references.
12481
12482 * tui/tui-wingeneral.h: Update copyright.
12483 (m_allBeVisible): Delete macro.
12484 (m_allBeInvisible): Delete macro.
12485 (struct tui_gen_win_info): Declare.
12486 (struct tui_win_info): Declare.
12487 (tui_unhighlight_win): Rename unhighlightWin.
12488 (tui_make_visible, tui_make_invisible): Replace makeVisible.
12489 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
12490 (tui_make_window): Rename makeWindow.
12491 (tui_copy_win): Rename copyWin.
12492 (tui_box_win): Rename boxWin.
12493 (tui_highlight_win): Rename highlightWin.
12494 (tui_check_and_display_highlight_if_needed): Rename
12495 checkAndDisplayHighlightIfNeeded.
12496 (tui_refresh_all): Rename refreshAll.
12497 (tui_delete_win): Rename tuiDelwin.
12498 (tui_refresh_win): Rename tuiRefreshWin.
12499 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
12500 (tui_make_visible, tui_make_invisible): New functions.
12501 (tui_make_all_visible, tui_make_all_invisible): New functions.
12502 (make_all_visible): Rename makeAllVisible.
12503 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
12504 * tui/tui-data.c, tui/tui-winsource.c: Update references.
12505 * tui/tui-windata.c, tui/tui-win.c: Update references.
12506 * tui/tui-regs.c, tui/tui-layout.c: Update references.
12507 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
12508
12509 2004-02-06 Mark Kettenis <kettenis@gnu.org>
12510
12511 * proc-api.c (write_with_trace): Initialize local variable to
12512 silence compiler warning.
12513
12514 2004-02-06 Andrew Cagney <cagney@redhat.com>
12515
12516 * tui/tui-source.h: Do not include "defs.h".
12517 (struct tui_win_info): Declare.
12518 (tui_set_source_content_nil): Declare.
12519 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
12520 (union tui_line_or_address): Rename _TuiLineOrAddress.
12521 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
12522 (tui_update_source_window): Rename tuiUpdateSourceWindow.
12523 (tui_update_source_window_as_is): Rename
12524 tuiUpdateSourceWindowAsIs.
12525 (tui_update_source_windows_with_addr): Rename
12526 tuiUpdateSourceWindowsWithAddr.
12527 (tui_update_source_windows_with_line): Rename
12528 tuiUpdateSourceWindowsWithLine.
12529 (tui_clear_source_content): Rename tuiClearSourceContent.
12530 (tui_erase_source_content): Rename tuiEraseSourceContent.
12531 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
12532 (tui_show_source_content): Rename tuiShowSourceContent.
12533 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
12534 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
12535 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
12536 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
12537 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
12538 (tui_update_exec_info): Rename tuiUpdateExecInfo.
12539 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
12540 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
12541 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
12542 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
12543 (struct tui_win_info): Declare.
12544 * tui/tui-stack.c: Update references.
12545 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
12546 * tui/tui-win.c, tui/tui-source.c: Ditto.
12547 * tui/tui.c, tui/tui-disasm.c: Ditto.
12548
12549 2004-02-06 Mark Kettenis <kettenis@gnu.org>
12550
12551 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
12552 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
12553
12554 2004-02-05 Mark Kettenis <kettenis@gnu.org>
12555
12556 * infrun.c (handle_inferior_event): Allow for breakpoint
12557 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
12558 and SIGEMT. Update comments.
12559 * NEWS (Revised SPARC target): Mention support for non-executable
12560 stack.
12561
12562 2004-02-04 Mark Kettenis <kettenis@gnu.org>
12563
12564 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
12565 * inftarg.c: Update copyright year.
12566 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
12567 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
12568 (sparc_xfer_wcookie): New function.
12569 * sparc-tdep.c (sparc_fetch_wcookie): New function.
12570 * Makefile.in (sparc-nat.o): Update dependencies.
12571 * config/sparc/nm-nbsd.h: Include "target.h".
12572 (NATIVE_XFER_WCOOKIE): New define.
12573 (sparc_xfer_wcookie): New prototype.
12574
12575 2004-02-04 Andrew Cagney <cagney@redhat.com>
12576
12577 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
12578 SYSCALL_TRAP function.
12579 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
12580
12581 2004-02-04 Andrew Cagney <cagney@redhat.com>
12582 Daniel Jacobowitz <drow@mvista.com>
12583
12584 * objfiles.h: Delete comments refering to inside_entry_func and
12585 DEPRECATED_FRAME_CHAIN_VALID.
12586 * defs.h (inside_entry_func): Update prototype..
12587 * blockframe.c (inside_entry_func): Rename to
12588 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
12589 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
12590
12591 2004-02-03 Jeff Johnston <jjohnstn@redhat.com>
12592
12593 * breakpoint.c (struct captured_parse_breakpoint_args): Move
12594 outside of #ifdef SOLIB_ADD region.
12595 (do_restore_lang_radix_cleanup): Ditto.
12596 (resolve_pending_breakpoint): Ditto.
12597
12598 2004-02-03 Andrew Cagney <cagney@redhat.com>
12599
12600 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
12601 (process_note_abi_tag_sections): Delete unused function.
12602 (ia64_read_fp): Delete unused function.
12603 (gdbarch_extract_struct_value_address): Delete declaration.
12604
12605 2004-02-02 Andrew Cagney <cagney@redhat.com>
12606
12607 * vax-tdep.c (vax_frame_chain): Delete call to
12608 deprecated_inside_entry_file.
12609 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
12610
12611 2004-02-02 Mark Kettenis <kettenis@gnu.org>
12612
12613 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
12614 column that's "empty" or "same value" when eliminating REG_RA
12615 rules.
12616
12617 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
12618
12619 * NEWS: Add information about new pending breakpoint support.
12620
12621 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
12622
12623 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
12624 and pending fields for pending breakpoint support.
12625 * breakpoint.c (breakpoint_enabled): Add check for not pending.
12626 (condition_command): Only parse condition if not a pending
12627 breakpoint.
12628 (print_one_breakpoint): Add support for pending breakpoints.
12629 (describe_other_breakpoints): Add checks to verify we are not
12630 dealing with pending breakpoints.
12631 (check_duplicates): Don't check pending breakpoints.
12632 (set_raw_breakpoint): Initialize pending flag.
12633 (do_restore_lang_radix_cleanup): New cleanup routine.
12634 (resolve_pending_breakpoint): New function.
12635 (re_enable_breakpoints_in_shlibs): Try and resolve any
12636 pending breakpoints via resolve_pending_breakpoint.
12637 (mention): Add pending breakpoint support.
12638 (parse_breakpoint_sals): Add new parameter to pass to
12639 decode_line_1 to indicate silent errors when files or functions
12640 are not found. Change all callers.
12641 (do_captured_parse_breakpoint): New function.
12642 (break_command_1): Change prototype to return an rc value and to
12643 take an optional pending breakpoint pointer. Support creating
12644 a pending breakpoint if a "not found" form of error occurs when
12645 parsing the breakpoint. Also support resolving an existing pending
12646 breakpoint and be silent if the resolution fails.
12647 (create_breakpoints): Change prototype to take pending breakpoint
12648 pointer. When resolving a pending breakpoint, use the new pointer
12649 to provide a conditional or commands added by the end-user.
12650 (delete_breakpoint): Add appropriate check for pending.
12651 (breakpoint_re_set_one): Ditto.
12652 (do_enable_breakpoint): Ditto.
12653
12654 2004-02-02 David Carlton <carlton@kealia.com>
12655
12656 * valops.c (enum oload_classification): New.
12657 (find_overload_match): Break implementation into separate
12658 functions; delete #if 0'd code; look for symbols within
12659 namespaces.
12660 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
12661 (find_oload_champ,oload_method_static,classify_oload_match): New.
12662 * cp-support.h: Add declaration for cp_func_name; update
12663 declaration for make_symbol_overload_list.
12664 * cp-support.c (cp_func_name): New.
12665 (overload_list_add_symbol): Fix comment, use
12666 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
12667 (make_symbol_overload_list): Take a function name and a namespace
12668 instead of a symbol; change implementation.
12669 (make_symbol_overload_list_using): New.
12670 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
12671
12672 2004-02-02 Fred Fish <fnf@redhat.com>
12673
12674 * main.c (gdb_stdtarg): Move definition to group with other
12675 gdb_stdtarg definitions and update copyright years.
12676 * remote-sim.c (gdb_os_write_stderr): Write output to
12677 gdb_stdtargerr stream instead of gdb_stdtarg stream.
12678 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
12679 gdb_stderr stream and update copyright years.
12680
12681 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
12682
12683 * Makefile.in (mips-linux-nat.o): Update dependencies.
12684 * mips-linux-nat.c: Include mips-tdep.h.
12685
12686 2004-02-01 Roland McGrath <roland@redhat.com>
12687
12688 * sol-thread.c (sol_thread_xfer_partial): New function.
12689 (init_sol_thread_ops): Use that for to_xfer_partial hook.
12690 (init_sol_core_ops): Likewise.
12691
12692 * procfs.c (procfs_xfer_partial): New function.
12693 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
12694 * Makefile.in (procfs.o): Add $(auxv_h) dep.
12695
12696 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
12697 procfs_xfer_auxv function.
12698
12699 * procfs.c (procfs_make_note_section): If we can read
12700 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
12701 * linux-proc.c (linux_make_note_section): Likewise.
12702
12703 * auxv.h: New file.
12704 * auxv.c: New file.
12705 * Makefile.in (auxv_h): New variable.
12706 (COMMON_OBS): Add auxv.o here.
12707 (auxv.o): New target.
12708
12709 * corelow.c (core_xfer_partial): New function.
12710 (init_core_ops): Use it for core_ops.to_xfer_partial.
12711
12712 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
12713 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
12714 macro if that is defined.
12715
12716 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
12717
12718 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
12719 and check the specified thread for each breakpoint.
12720 * breakpoint.h (bpstat_stop_status): Update prototype.
12721 * infrun.c (handle_inferior_event): Update calls to
12722 bpstat_stop_status.
12723
12724 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
12725
12726 * Makefile.in (cli-cmds.o): Add $(readline_h).
12727
12728 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
12729
12730 * cli/cli-cmds.c: Include readline.h.
12731 (complete_command): Pass the start of the last word to
12732 complete_line.
12733
12734 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
12735
12736 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
12737 argument, and change first argument to a CORE_ADDR.
12738 * breakpoint.h (bpstat_stop_status): Update prototype.
12739 * infrun.c (adjust_pc_after_break): Add a new comment.
12740 (handle_inferior_event): Update calls to bpstat_stop_status.
12741
12742 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
12743
12744 * breakpoint.h: Update copyright years.
12745
12746 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
12747
12748 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
12749 (bpstat_stop_status): Don't decrement PC.
12750 * breakpoint.h (software_breakpoint_inserted_here_p): Add
12751 prototype.
12752 * infrun.c (adjust_pc_after_break): New function.
12753 (handle_inferior_event): Call it, early. Remove later references
12754 to DECR_PC_AFTER_BREAK.
12755 (normal_stop): Add commentary.
12756
12757 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
12758
12759 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
12760 2004-01-27 double-free fix.
12761
12762 2004-01-31 Mark Kettenis <kettenis@gnu.org>
12763
12764 * sparc-tdep.c (sparc_fetch_wcookie): New function.
12765 (sparc32_frame_prev_register): Handle StackGhost.
12766 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
12767
12768 2004-01-29 Roland McGrath <roland@redhat.com>
12769
12770 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
12771 * configure: Regenerated.
12772
12773 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
12774 * Makefile.in (procfs.o): Add dep.
12775
12776 2004-01-28 Andrew Cagney <cagney@redhat.com>
12777
12778 * tui/tui-stack.h: Update copyright.
12779 (struct frame_info): Add opaque declaration.
12780 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
12781 (tui_show_locator_content): Rename tuiShowLocatorContent.
12782 (tui_show_frame_info): Rename tuiShowFrameInfo.
12783 * tui/tui-stack.c: Update copyright. Update references.
12784 * tui/tui-winsource.c: Update references.
12785 * tui/tui-win.c: Update references.
12786 * tui/tui-layout.c: Update references.
12787 * tui/tui-hooks.c: Update copyright, update references.
12788 * tui/tui.c: Update copyright, update references.
12789 * tui/tui-disasm.c: Update references.
12790
12791 2004-01-28 David Carlton <carlton@kealia.com>
12792
12793 * dwarf2read.c (add_partial_structure): Use demangled name if
12794 namespace equals "".
12795
12796 2004-01-27 Jim Blandy <jimb@redhat.com>
12797
12798 Clean up misapplied patch:
12799 * dwarf2read.c (determine_prefix): Change one of the two forward
12800 declarations for 'determine_prefix_aux' to a declaration for this.
12801 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
12802 argument to 'die_specification'.
12803
12804 * dwarf2read.c (read_func_scope): Re-indent comment.
12805
12806 2004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
12807
12808 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
12809 b->exp to NULL after freeing so that error during re-parsing or
12810 evaluation of expressions associated with breakpoint don't
12811 eventually lead to re-freeing of storage.
12812 Committed by Andrew Cagney.
12813
12814 2004-01-27 Andrew Cagney <cagney@redhat.com>
12815
12816 * source.c (ambiguous_line_spec): Delete undefined declaration.
12817 * m32r-rom.c (m32r_set_board_address): Delete unused function.
12818 (m32r_set_server_address, m32r_set_download_path): Ditto.
12819 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
12820
12821 2004-01-27 Daniel Jacobowitz <drow@mvista.com>
12822
12823 * dwarf2read.c: Update calls to changed and renamed functions, and
12824 references to moved variables.
12825
12826 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
12827 language, language_defn, list_in_scope, and ftypes members.
12828 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
12829 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
12830 (baseaddr): Remove globals.
12831
12832 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
12833 (set_cu_language, die_is_declaration, die_specification)
12834 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
12835 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
12836 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
12837 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
12838
12839 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
12840 cu.list_in_scope. Don't initialize cu_header_offset.
12841 (add_partial_symbol): Add local baseaddr.
12842 (psymtab_to_symtab_1): Add local baseaddr. Use
12843 objfile->section_offsets for consistency. Don't initialize
12844 cu_header_offset; do initialize cu.header.offset and
12845 cu.list_in_scope.
12846 (read_file_scope, read_func_scope, read_lexical_block_scope)
12847 (dwarf_decode_lines, new_symbol): Add local baseaddr.
12848
12849 2004-01-27 Michael Chastain <mec.gnu@mindspring.com>
12850
12851 * PROBLEMS: Add gdb/1516.
12852
12853 2003-12-29 Robert Millan <robertmh@gnu.org>
12854
12855 Patch committed by Andrw Cagney.
12856 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
12857 * configure.tgt: Match knetbsd*-gnu.
12858
12859 2004-01-26 Andrew Cagney <cagney@redhat.com>
12860
12861 * breakpoint.c (catch_command_1): Delete #ifdef code.
12862 (catch_fork_command_1): Delete #ifdef wrapper.
12863 (catch_exec_command_1): Ditto.
12864 (catch_load_command_1): Ditto.
12865 (catch_unload_command_1): Ditto.
12866
12867 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
12868 (catch_breakpoint): Delete #if0ed function.
12869 (disable_catch_breakpoint): Ditto.
12870 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
12871 (disable_catch, enable_catch, delete_catch): Ditto.
12872
12873 2004-01-26 Andrew Cagney <cagney@redhat.com>
12874
12875 * remote.c (echo_check, quit_flag): Delete variables.
12876 (cisco_kernel_mode): Delete variable.
12877 (minitelnet_return, tty_input, escape_count): Delete variables.
12878 (remote_cisco_mode): Delete variable.
12879 (remote_cisco_open, remote_cisco_close): Delete function.
12880 (remote_cisco_mourn, remote_cisco_wait): Delete function.
12881 (init_remote_cisco_ops): Delete function.
12882 (_initialize_remote): Do not install "remote cisco" code.
12883 (read_frame): Delete cisco specific code.
12884 (remote_info_process): Delete function.
12885 (remote_wait): Delete cisco specific code.
12886 (remote_cisco_section_offsets): Delete function.
12887 (remote_cisco_objfile_relocate): Delete function.
12888 (remote_async_wait): Delete cisco specific code.
12889 (minitelnet, readtty, readsocket): Delete function.
12890
12891 2004-01-26 Andrew Cagney <cagney@redhat.com>
12892
12893 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
12894 comments mentioning extract_returned_value_address.
12895 * infcmd.c (print_return_value): Update. Add comments on
12896 extract_returned_value_address.
12897 * stack.c (return_command): Add comments on
12898 extract_returned_value_address.
12899 * values.c: Update comment.
12900 * m32r-tdep.c: Update comment.
12901 * sparc-tdep.c: Update comment.
12902 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
12903 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12904 * sh64-tdep.c (sh64_gdbarch_init): Update.
12905 * sh-tdep.c (sh_gdbarch_init): Update.
12906 * s390-tdep.c (s390_gdbarch_init): Update.
12907 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12908 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
12909 * m68k-tdep.c (m68k_gdbarch_init): Update.
12910 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12911 * m32r-tdep.c (m32r_gdbarch_init): Update.
12912 * ia64-tdep.c (ia64_gdbarch_init): Update.
12913 * h8300-tdep.c (h8300_gdbarch_init): Update.
12914 * frv-tdep.c (frv_gdbarch_init): Update.
12915 * arm-tdep.c (arm_gdbarch_init): Update.
12916 * alpha-tdep.c (alpha_gdbarch_init): Update.
12917
12918 2004-01-26 Andrew Cagney <cagney@redhat.com>
12919
12920 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
12921 SYMBOL_LOCATION_FUNCS
12922 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
12923 "struct symbol_ops".
12924 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
12925 type to "struct symbol_ops".
12926 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
12927 (struct symbol): Replace ".aux_value.loc.funcs" and
12928 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
12929 (SYMBOL_OBJFILE): Delete macro.
12930 (SYMBOL_LOCATION_FUNCS): Delete macro.
12931 (SYMBOL_LOCATION_BATON): Update.
12932 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
12933 intead of SYMBOL_LOCATION_FUNCS.
12934 * ax-gdb.c (gen_var_ref): Ditto.
12935 * printcmd.c (address_info): Ditto.
12936 * findvar.c (read_var_value): Ditto.
12937 (symbol_read_needs_frame): Ditto.
12938
12939 2004-01-26 Andrew Cagney <cagney@redhat.com>
12940
12941 * dwarf2read.c (read_func_scope): Document frame-base hack.
12942
12943 2004-01-25 Mark Kettenis <kettenis@gnu.org>
12944
12945 * infcmd.c (print_return_value): Plug memory leak; delete
12946 ui_stream object. Rename argument `structure_return' to
12947 `struct_return'.
12948
12949 2004-01-25 Mark Kettenis <kettenis@gnu.org>
12950
12951 * infcmd.c (print_return_value): Wrap long lines.
12952 (finish_command_continuation, finish_command): Remove unused
12953 variable `funcaddr'. Fix some coding-standards problems.
12954
12955 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
12956 SECT_SIZE is large enough, not whether it's exactly the right size.
12957 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
12958 TDEP->fpregset to zero.
12959
12960 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
12961 floating-point registers for traditional NetBSD core files.
12962 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
12963 TDEP->sizeof_fpregset here.
12964
12965 2004-01-25 Mark Kettenis <kettenis@gnu.org>
12966
12967 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
12968 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
12969 function with code split out from
12970 sparc32nbsd_sigcontext_frame_cache.
12971 (sparc32nbsd_sigcontext_frame_cache): Use
12972 sparc32nbsd_sigcontext_saved_regs.
12973 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
12974 OpenBSD.
12975 * sparcobsd-tdep.c: New file.
12976 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
12977 (sparcobsd-tdep.o): New dependency.
12978 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
12979 * config/sparc/obsd.mt: New file.
12980
12981 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
12982 TDEP->fpregset to be initialized to enable core file register
12983 sets.
12984
12985 2004-01-24 Mark Kettenis <kettenis@gnu.org>
12986
12987 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
12988 Add opaque declarations.
12989 (sparc64nbsd_sigcontext_saved_regs): New prototype.
12990 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
12991 function with code split out from
12992 sparc64nbsd_sigcontext_frame_cache.
12993 (sparc64nbsd_sigcontext_frame_cache): Use
12994 sparc64nbsd_sigcontext_saved_regs.
12995 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
12996 OpenBSD.
12997 * sparc64obsd-tdep.c: New file.
12998 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
12999 (sparc64obsd-tdep.o): New dependency.
13000 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
13001 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
13002 * config/sparc/obsd64.mt: New file.
13003
13004 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
13005 read the instruction at PC.
13006
13007 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
13008 value of GDB_OSABI_DEFAULT.
13009 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
13010 instead of GDB_OSABI_NETBSD_AOUT.
13011
13012 2004-01-24 Nick Roberts <nick@nick.uklinux.net>
13013
13014 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
13015 copyright.
13016
13017 2004-01-23 Andrew Cagney <cagney@redhat.com>
13018
13019 * printcmd.c (display_command): Replace tui_set_display call with
13020 tui_set_layout_for_display_command.
13021 * tui/tui.h (enum tui_win_type): Define.
13022 (tui_set_layout): Delete declaration.
13023 (tui_set_layout_for_display_command): Rename set_tui_layout.
13024 * tui/tui-data.h (enum tui_layout_type): Define.
13025 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
13026 "tui.h".
13027 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
13028 (tui_default_win_height): Rename tuiDefaultWinHeight.
13029 (tui_default_win_viewport_height): Rename
13030 tuiDefaultWinViewportHeight.
13031 (tui_set_layout): RenametuiSetLayout.
13032 * tui/tui-layout.c: Update references.
13033 * tui/tui.c: Update references.
13034 * tui/tui-disasm.c: Update references.
13035
13036 2004-01-23 David Carlton <carlton@kealia.com>
13037
13038 Partial workaround for PR c++/1511:
13039 * cp-namespace.c: Include frame.h.
13040 (cp_lookup_transparent_type): New
13041 (cp_lookup_transparent_type_loop): New.
13042 * cp-support.h: Declare cp_lookup_transparent_type.
13043 * symtab.c (basic_lookup_transparent_type): Renamed from
13044 lookup_transparent_type.
13045 (lookup_transparent_type): Replace old body by a call to
13046 current_language->la_lookup_transparent_type.
13047 * symtab.h: Update copyright. Declare
13048 basic_lookup_transparent_type.
13049 * language.h: Update copyright.
13050 (struct language_defn): Add la_lookup_transparent_type.
13051 * language.c: Update copyright.
13052 (unknown_language_defn): Add basic_lookup_transparent_type.
13053 (auto_language_defn): Add basic_lookup_transparent_type.
13054 (local_language_defn): Add basic_lookup_transparent_type.
13055 * ada-lang.c: Update copyright.
13056 (ada_language_defn): Add basic_lookup_transparent_type.
13057 * c-lang.c: Update copyright.
13058 (c_language_defn): Add basic_lookup_transparent_type.
13059 (cplus_language_defn): Add basic_lookup_transparent_type.
13060 (asm_language_defn): Add basic_lookup_transparent_type.
13061 (minimal_language_defn): Add basic_lookup_transparent_type.
13062 * f-lang.c: Update copyright.
13063 (f_language_defn): Add basic_lookup_transparent_type.
13064 * jv-lang.c: Update copyright.
13065 (java_language_defn): Add basic_lookup_transparent_type.
13066 * m2-lang.c: Update copyright.
13067 (m2_language_defn): Add basic_lookup_transparent_type.
13068 * objc-lang.c: Update copyright.
13069 (objc_language_defn): Add basic_lookup_transparent_type.
13070 * p-lang.c: Update copyright.
13071 (p_language_defn): Add basic_lookup_transparent_type.
13072 * scm-lang.c: Update copyright.
13073 (scm_language_defn): Add basic_lookup_transparent_type.
13074 * Makefile.in (cp-namespace.o): Depend on frame.h.
13075
13076 2004-01-23 David Carlton <carlton@kealia.com>
13077
13078 Patch for PR c++/1520:
13079 * dwarf2read.c (read_func_scope): Set processing_current_prefix
13080 properly if we have a specification die.
13081 (determine_prefix_aux): Rename from determine_prefix.
13082 (determine_prefix): Like the old determine_prefix, but never
13083 returns NULL.
13084
13085 2004-01-23 Theodore A. Roth <troth@openavr.org>
13086
13087 * avr-tdep.c: Update copyright.
13088 (avr_iaddr_p): Delete unused function.
13089 (avr_saddr_p): Delete unused function.
13090
13091 2004-01-23 David Carlton <carlton@kealia.com>
13092
13093 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
13094 Fix for PR symtab/1534.
13095
13096 2004-01-23 Mark Kettenis <kettenis@gnu.org>
13097
13098 * NEWS (New native configurations): Mention OpenBSD/sparc and
13099 OpenBSD/sparc64.
13100 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
13101 * configure.host: Likewise.
13102 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
13103 handler for OpenBSD.
13104 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
13105
13106 2004-01-22 Mark Kettenis <kettenis@gnu.org>
13107
13108 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
13109 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
13110
13111 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
13112 * cli/cli-cmds.c (shell_escape): Likewise.
13113
13114 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
13115 OpenBSD .note.openbsd.ident sections.
13116
13117 2004-01-22 David Carlton <carlton@kealia.com>
13118
13119 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
13120 get_scope_pc_bounds.
13121 (read_file_scope): Ditto.
13122 (get_scope_pc_bounds): New function, produced by extracting code
13123 from the above two functions, consolidating it, and adding support
13124 for DW_TAG_namespace.
13125
13126 2004-01-22 Mark Kettenis <kettenis@gnu.org>
13127
13128 * osabi.c (MAX_NOTESZ): New define.
13129 (check_note): New function.
13130 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
13131 check_note.
13132
13133 2004-01-21 Roland McGrath <roland@redhat.com>
13134
13135 * MAINTAINERS (write after approval): Add myself.
13136
13137 2004-01-21 Eli Zaretskii <eliz@gnu.org>
13138
13139 * utils.c (init_page_info): Move declarations of `rows' and
13140 `cols' before the __GO32__-specific code. Move the closing brace
13141 outside the #ifdef __GO32__..#endif block.
13142 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
13143
13144 2004-01-21 Paul Brook <paul@codesourcery.com>
13145
13146 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
13147 BPSTAT_WHAT_CHECK_SHLIBS.
13148
13149 2004-01-21 Paul Brook <paul@codesourcery.com>
13150
13151 * MAINTAINERS: Add myself to write-after-approval.
13152
13153 2004-01-20 Andrew Cagney <cagney@redhat.com>
13154
13155 * ax-gdb.c (print_axs_value): Delete unused function.
13156 * jv-lang.c (java_lookup_type): Delete unused function.
13157 * cli/cli-dump.c (dump_filetype): Delete unused function.
13158 * remote-mips.c (remote_mips_insert_hw_breakpoint)
13159 (remote_mips_remove_hw_breakpoint): Delete unused functions.
13160 (mips_getstring): Delete unused function.
13161 (pmon_insert_breakpoint): Delete #if0ed function.
13162 (PMON_MAX_BP): Delete #if0ed MACRO.
13163 (mips_pmon_bp_info): Delete #if0ed variable.
13164 (pmon_remove_breakpoint): Delete #if0ed function.
13165 * monitor.c (monitor_write_even_block): Delete unused function.
13166 (monitor_write_memory_block): Delete #if0ed code.
13167 * dink32-rom.c (dink32_load): Delete unused function.
13168 (_initialize_dink32_rom): Delete #if0ed code.
13169 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
13170
13171 * tui/tui-command.c: Update references.
13172 * tui/tui-io.c: Update references.
13173 * tui/tui-command.h: Update copyright.
13174 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
13175
13176 * source.c (ambiguous_line_spec): Delete never-defined function.
13177 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
13178 * gdbtypes.c (add_name, add_mangled_type): Ditto.
13179 * cli/cli-cmds.c (validate_comname): Ditto.
13180
13181 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
13182 "tui-data.h".
13183 (tui_set_disassem_content): Rename tuiSetDisassemContent.
13184 (tui_show_disassem): Rename tuiShowDisassem.
13185 (tui_show_disassem_and_update_source): Rename
13186 tuiVerticalDisassemScroll.
13187 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
13188 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
13189 * tui/tui.h: Update copyright.
13190 (enum tui_status): Define.
13191 * tui/tui-data.h (enum tui_scroll_direction): Define.
13192 * tui/tui-disasm.c: Update copyright. Update references.
13193 * tui/tui-winsource.c: Update copyright. Update references.
13194 * tui/tui-win.c: Update references.
13195 * tui/tui-layout.c: Update references.
13196
13197 2004-01-20 Andrew Cagney <cagney@redhat.com>
13198
13199 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
13200 sym2 to start of block.
13201
13202 2004-01-19 Michael Chastain <mec.gnu@mindspring.com>
13203
13204 * MAINTAINERS: Delete mmalloc.
13205 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
13206 * NEWS: Mention removal of --with-malloc.
13207 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
13208 * config.in: Regenerate.
13209 * configure: Regenerate.
13210 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
13211 USE_MMALLOC, MMCHECK_FORCE.
13212 * gdbinit.in: Remove mmalloc.
13213 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
13214 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
13215 * config/i386/go32.mh: Likewise.
13216 * config/i386/interix.mh: Likewise.
13217 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
13218
13219 2004-01-19 Jeff Johnston <jjohnstn@redhat.com>
13220
13221 * linespec.c (decode_variable, symtab_from_filename): Call
13222 error_silent with error message instead of throwing an exception
13223 directly.
13224 * defs.h (error_silent, error_output_message): Add prototypes.
13225 (catch_exceptions_with_msg): Ditto.
13226 * utils.c (error_silent, error_output_message): New functions.
13227 * top.c (catch_exceptions_with_msg): New function.
13228
13229 2004-01-20 Nick Roberts <nick@nick.uklinux.net>
13230
13231 * mi/mi-cmds.h (enum print_values): Add definition.
13232
13233 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
13234 type and value for simple data types and just the name and type
13235 for complex ones, if required.
13236
13237 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
13238 children, if required.
13239
13240 2004-01-19 Kevin Buettner <kevinb@redhat.com>
13241
13242 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
13243 unused declarations.
13244
13245 2004-01-19 Andrew Cagney <cagney@redhat.com>
13246
13247 * top.h (mapped_symbol_files): Delete declaration.
13248 * main.c (captured_main): Delete option "m" and "mapped".
13249 * objfiles.c (mapped_symbol_files): Delete variable.
13250 * symfile.c (symbol_file_command): Delete mmap code.
13251 (symbol_file_add_with_addrs_or_offsets): Ditto.
13252 (add_symbol_file_command, reread_separate_symbols): Ditto.
13253 * objfiles.h (OBJF_MAPPED): Delete.
13254 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
13255 (free_objfile) [USE_MMALLOC]: Ditto.
13256 (open_existing_mapped_file): Delete function.
13257 (open_mapped_file): Delete function.
13258 (map_to_file): Delete function.
13259
13260 2004-01-19 Kevin Buettner <kevinb@redhat.com>
13261
13262 * infrun.c (step_into_function): Account for possible breakpoint
13263 adjustment when computing ``stop_func_start''.
13264
13265 2004-01-19 Kevin Buettner <kevinb@redhat.com>
13266
13267 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
13268 the region size against the size of a pointer, not the size of
13269 a register as given by DEPRECATED_REGISTER_SIZE.
13270
13271 2004-01-19 Andrew Cagney <cagney@redhat.com>
13272
13273 * tui/tui-regs.h: Include "tui-data.h".
13274 (tuiFirstRegElementNoInLine): Delete declaration.
13275 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
13276 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
13277 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
13278 (tui_calculate_regs_column_count): Rename
13279 tuiCalculateRegsColumnCount.
13280 (tui_check_register_values): Rename tuiCheckRegisterValues.
13281 (tui_show_registers): Rename tuiShowRegisters.
13282 (tui_display_registers_from_line): Rename
13283 tuiDisplayRegistersFromLine.
13284 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
13285 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
13286 (tui_first_reg_element_no_inline): Rename
13287 tuiFirstRegElementNoInLine.
13288 * tui/tui-data.h: Update copyright.
13289 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
13290 * tui/tui-windata.c: Update copyright, update references.
13291 * tui/tui-regs.c: Update copyright, update references.
13292 * tui/tui-win.c: Update copyright, update references.
13293 * tui/tui-layout.c: Update copyright, update references.
13294
13295 2004-01-18 Andrew Cagney <cagney@redhat.com>
13296
13297 * tui/tui-io.c: Update copyright.
13298 (key_is_end_sequence, key_is_backspace): New functions.
13299 (key_is_command_char, key_is_start_sequence): New function.
13300 (tui_getc): Update references.
13301 * tui/tui-io.h: Update copyright.
13302 (m_tuiStartNewLine): Delete macro.
13303 (m_isBackspace, m_isDeleteChar): Delete macros.
13304 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
13305 (m_isNextPage, m_isPrevPage): Delete macros.
13306 (m_isLeftArrow, m_isRightArrow): Delete macros.
13307 (m_isXdbStyleCommandChar): Delete macro.
13308 (key_is_start_sequence): Declare, replace m_isStartSequence.
13309 (key_is_end_sequence): Declare, replace m_isEndSequence.
13310 (key_is_backspace): Declare ,replace m_isBackspace.
13311 (key_is_command_char): Declare, replace m_isCommandChar.
13312 * tui/tui-command.c: Update copyright.
13313 (tuiDispatchCtrlChar): Update references.
13314
13315 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
13316 tuiSourceWin.h.
13317
13318 * tui/tui-command.c: Rename tui/tuiCommand.c.
13319 * tui/tui-command.h: Rename tui/tuiCommand.h.
13320 * tui/tui-data.c: Rename tui/tuiData.c.
13321 * tui/tui-data.h: Rename tui/tuiData.h.
13322 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
13323 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
13324 * tui/tui-io.c: Rename tui/tuiIO.c.
13325 * tui/tui-io.h: Rename tui/tuiIO.h.
13326 * tui/tui-layout.c: Rename tui/tuiLayout.c.
13327 * tui/tui-layout.h: Rename tui/tuiLayout.h.
13328 * tui/tui-regs.c: Rename tui/tuiRegs.c.
13329 * tui/tui-regs.h: Rename tui/tuiRegs.h.
13330 * tui/tui-source.c: Rename tui/tuiSource.c.
13331 * tui/tui-source.h: Rename tui/tuiSource.h.
13332 * tui/tui-stack.c: Rename tui/tuiStack.c.
13333 * tui/tui-stack.h: Rename tui/tuiStack.h.
13334 * tui/tui-win.c: Rename tui/tuiWin.c.
13335 * tui/tui-win.h: Rename tui/tuiWin.h.
13336 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
13337 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
13338 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
13339 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
13340 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
13341 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
13342 * tui/tui-file.c: Update includes.
13343 * tui/tui-hooks.c: Update includes.
13344 * tui/tui-interp.c: Update includes.
13345 * tui/tui.c: Update includes.
13346 * Makefile.in: Update all tui/ dependencies.
13347 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
13348
13349 * Makefile.in: Update copyright. Update dependencies.
13350
13351 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
13352 problem.
13353
13354 2004-01-18 Andrew Cagney <cagney@redhat.com>
13355
13356 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
13357 instead of register_gdbarch_init.
13358
13359 * remote-sds.c (tohex): Delete unused function. Update copyright.
13360 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
13361 * v850-tdep.c (v850_register_virtual_size): Ditto.
13362 * target.c (normal_target_post_startup_inferior): Ditto.
13363 * source.c (ambiguous_line_spec): Ditto.
13364 * remote.c (adapt_remote_get_threadinfo): Ditto.
13365 * mi/mi-out.c (out_field_fmt): Ditto.
13366 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
13367 (output_control_change_notification): Ditto.
13368 * m68k-tdep.c (m68k_register_byte): Ditto.
13369 (m68k_remote_breakpoint_from_pc): Ditto.
13370 * ui-out.c (init_ui_out_state): Delete unused declaration.
13371 * stabsread.c (search_value): Ditto.
13372 * mi/mi-cmd-env.c (env_cli_command): Ditto.
13373 * maint.c (print_section_table): Ditto.
13374 * infrun.c (set_follow_fork_mode_command): Ditto.
13375
13376 2004-01-18 Mark Kettenis <kettenis@gnu.org>
13377
13378 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
13379 DW_CFA_def_cfa_exporession. Add support for
13380 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
13381 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
13382
13383 2004-01-18 Andrew Cagney <cagney@redhat.com>
13384
13385 * ocd.c: Update copyright.
13386 (bdm_read_register_command): Delete unused function.
13387 (_initialize_remote_ocd): Delete commented out reference.
13388 (get_quoted_char, reset_packet): Delete #if0ed function.
13389 (output_packet, put_quoted_char): Delete #if0ed function.
13390 (stu_put_packet, stu_get_packet): Delete #if0ed function.
13391 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
13392 (BDM_BREAKPOINT): Delete #if0ed macro.
13393 (remote_timeout): Delete #if0ed variable.
13394
13395 2004-01-18 Mark Kettenis <kettenis@gnu.org>
13396
13397 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
13398 (core-sol2.o): Remove dependency.
13399 * core-sol2.c: Remove file.
13400
13401 2004-01-17 Andrew Cagney <cagney@redhat.com>
13402
13403 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
13404 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
13405 enums.
13406
13407 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13408
13409 * remote.c: Update copyright years.
13410
13411 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13412
13413 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
13414
13415 2004-01-17 Andrew Cagney <cagney@redhat.com>
13416
13417 * mdebugread.c: Update copyright.
13418 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
13419 (parse_type, parse_procedure): Ditto.
13420 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
13421
13422 * cris-tdep.c (cris_store_struct_return): Put back accidently
13423 deleted function.
13424
13425 * gdbarch.sh: Update copyright year.
13426 * gdbarch.h, gdbarch.c: Re-generate.
13427
13428 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13429
13430 Suggested by George Anzinger.
13431 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
13432 correct stack offset. Include unknown opcode numbers in the error
13433 message.
13434
13435 2004-01-17 Andrew Cagney <cagney@redhat.com>
13436
13437 * x86-64-tdep.c (x86_64_init_abi): No need to clear
13438 extract_struct_value_address, i386 does not set it.
13439 * sparc64-tdep.c (sparc64_init_abi): Do not set
13440 extract_struct_value_address, never called.
13441 (sparc64_extract_struct_value_address): Delete function.
13442 * m68hc11-tdep.c: Update copyright.
13443 (m68hc11_gdbarch_init): Delete redundant assignment of
13444 extract_struct_value_address.
13445 * i386-tdep.c: Update copyright.
13446 (i386_gdbarch_init): Do not set extract_struct_value_address,
13447 never called.
13448 (i386_extract_struct_value_address): Delete function.
13449 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
13450 extract_struct_value_address, never called.
13451 (sparc32_extract_struct_value_address): #if 0 function. Add
13452 comments explaining its future.
13453
13454 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13455
13456 * arm-tdep.c (arm_write_pc): New function.
13457 (arm_gdbarch_init): Call set_gdbarch_write_pc.
13458
13459 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13460
13461 * breakpoint.c (must_shift_inst_regs): Delete.
13462 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
13463 and SHIFT_INST_REGS.
13464 * infcmd.c (step_1, step_1_continuation): Delete references to
13465 SHIFT_INST_REGS.
13466 * infrun.c (keep_going): Likewise.
13467 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
13468 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
13469
13470 2004-01-17 Andrew Cagney <cagney@redhat.com>
13471
13472 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13473 * gdbarch.h, gdbarch.c: Re-generate.
13474 * infcmd.c (print_return_value): Delete reference to
13475 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
13476
13477 * cris-tdep.c (cris_gdbarch_init): Do not set
13478 deprecated_extract_struct_value_address.
13479
13480 * xstormy16-tdep.c: Update copyright.
13481 (xstormy16_extract_struct_value_address): Update to current
13482 extract struct value address interface.
13483 (xstormy16_gdbarch_init): Set extract_struct_value_address.
13484 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
13485 current extract struct value address interface.
13486 (sh64_gdbarch_init): Set extract_struct_value_address.
13487
13488 * cris-tdep.c: Update copyright.
13489 (cris_extract_struct_value_address): Delete function.
13490 (struct_return_address): Delete variable.
13491 (cris_store_struct_return): Do not set struct_return_address.
13492
13493 * mcore-tdep.c: Update copyright.
13494 (mcore_extract_struct_value_address): Delete function. Update
13495 comments.
13496 (mcore_gdbarch_init): Update.
13497 * mn10300-tdep.c: Update copyright.
13498 (mn10300_extract_struct_value_address): Delete function.
13499 (mn10300_gdbarch_init): Update.
13500 * v850-tdep.c: Update copyright.
13501 (v850_extract_struct_value_address): Delete.
13502 (v850_gdbarch_init): Update.
13503 * ns32k-tdep.c: Update copyright.
13504 (ns32k_extract_struct_value_address): Delete.
13505 (ns32k_gdbarch_init): Update.
13506 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
13507 (hppa_gdbarch_init): Update.
13508 * vax-tdep.c: Update copyright.
13509 (vax_extract_struct_value_address): Delete.
13510 (vax_gdbarch_init): Update.
13511
13512 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
13513 * gdbarch.h, gdbarch.c: Re-generate.
13514 * procfs.c (procfs_fetch_registers): Delete reference to
13515 DEPRECATED_NPC_REGNUM.
13516 (procfs_store_registers): Ditto.
13517 * regcache.c (generic_target_write_pc): Simplify.
13518 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
13519
13520 * core-sol2.c (fetch_core_registers): Replace
13521 DEPRECATED_NPC_REGNUM with equivalent tdep value.
13522
13523 * hppa-tdep.c: Update copyright year.
13524 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
13525 NPC_REGNUM.
13526 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
13527
13528 * mips-tdep.c (mips_write_pc): New function.
13529 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
13530 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
13531 (mips_find_saved_regs, mips_software_single_step: Ditto.
13532 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
13533 mips_init_extra_frame_info, mips_pop_frame): Ditto.
13534
13535 2004-01-17 Andrew Cagney <cagney@redhat.com>
13536
13537 * mips-tdep.c: Re-indent. Group functions by ABI.
13538
13539 2004-01-17 Andrew Cagney <cagney@redhat.com>
13540
13541 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
13542 * gdbarch.c: Re-generate.
13543 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
13544 DECR_PC_AFTER_BREAK to zero.
13545 * vax-tdep.c (vax_gdbarch_init): Ditto.
13546 * v850-tdep.c (v850_gdbarch_init): Ditto.
13547 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
13548 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
13549 * sh-tdep.c (sh_gdbarch_init): Ditto.
13550 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
13551 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
13552 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
13553 * mips-tdep.c (mips_gdbarch_init): Ditto.
13554 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
13555 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13556 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
13557 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
13558 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
13559 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
13560 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
13561 * frv-tdep.c (frv_gdbarch_init): Ditto.
13562 * cris-tdep.c (cris_gdbarch_init): Ditto.
13563 * avr-tdep.c (avr_gdbarch_init): Ditto.
13564 * arm-tdep.c (arm_gdbarch_init): Ditto.
13565 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
13566
13567 2004-01-17 J. Brobecker <brobecker@gnat.com>
13568
13569 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
13570 Delete, no longer used.
13571 (read_subrange_type): New function, mostly extracted from
13572 read_array_type().
13573 (read_array_type): Replace extracted code by call to
13574 read_subrange_type().
13575 (dwarf2_get_attr_constant_value): New function.
13576 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
13577 (add_partial_symbol): Likewise.
13578 (process_die): Likewise.
13579 (new_symbol): Likewise.
13580 (read_type_die): Likewise.
13581
13582 2004-01-16 Andrew Cagney <cagney@redhat.com>
13583
13584 * symfile.c: Update copyright year.
13585 (compare_symbols): Delete unused function.
13586 * stabsread.c: Update copyright year.
13587 (lrs_general_complaint): Delete unused function.
13588 (ref_search_value): Ditto.
13589 (get_substring): Delete declaration.
13590 * sh64-tdep.c: Update copyright year.
13591 (sh64_get_gdb_regnum): Delete unused function.
13592 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
13593 Delete unused function.
13594
13595 2004-01-17 Mark Kettenis <kettenis@gnu.org>
13596
13597 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
13598 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
13599
13600 2004-01-16 Andrew Cagney <cagney@redhat.com>
13601
13602 Changes from Peter Schauer.
13603 * rs6000-tdep.c: Update copyright year.
13604 (rs6000_push_dummy_call): Update the stack pointer before
13605 accessing the corresponding stack region.
13606 * rs6000-nat.c: Update copyright year.
13607 (set_host_arch): Set "info.abfd" to "exec_bfd".
13608
13609 2004-01-15 Mark Kettenis <kettenis@gnu.org>
13610
13611 * blockframe.c: Update copyright year.
13612 (inside_entry_func): Don't treat a zero PC specially.
13613
13614 2004-01-14 Elena Zannoni <ezannoni@redhat.com>
13615
13616 * gcore.c (gcore_copy_callback): Use paddr_d to print size
13617 variable.
13618 (gcore_create_callback): Ditto. Skip any memory segment that has
13619 no permissions set.
13620
13621 2004-01-14 David Carlton <carlton@kealia.com>
13622
13623 Change symbols for C++ nested types to contain the fully qualified
13624 name, if possible. (At least in the DWARF-2 case.) Partial fix
13625 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
13626 c++/895.
13627 * c-exp.y (qualified_type): Handle types nested within classes.
13628 * cp-namespace.c: Update comments.
13629 (cp_set_block_scope): Delete #if 0.
13630 (cp_lookup_nested_type): Handle types nested within classes.
13631 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
13632 when appropriate.
13633 (add_partial_symbol): Add the name of the enclosing namespace to
13634 types.
13635 (pdi_needs_namespace): New.
13636 (add_partial_namespace): Tweak comment.
13637 (add_partial_structure): New.
13638 (psymtab_to_symtab_1): Initialize processing_current_prefix
13639 here...
13640 (process_die): instead of here.
13641 (read_structure_scope): Try to figure out the name of the class or
13642 namespace that the structure might be defined within.
13643 (read_enumeration): Generate fully-qualified names, if possible.
13644 (read_namespace): Don't set name to NULL.
13645 (die_specification): New.
13646 (new_symbol): Generate fully-qualified names for types.
13647 (read_type_die): Determine appropriate prefix.
13648 (determine_prefix): New.
13649 (typename_concat): New.
13650 (class_name): New.
13651 * valops.c (value_aggregate_elt): Pass NOSIDE to
13652 value_struct_elt_for_reference.
13653 (value_struct_elt_for_reference): Make static, add NOSIDE
13654 parameter, call value_maybe_namespace_elt as a last resort.
13655 (value_namespace_elt): Break out code into
13656 value_maybe_namespace_elt.
13657 (value_maybe_namespace_elt): New.
13658
13659 2004-01-12 Andrew Cagney <cagney@redhat.com>
13660
13661 * mips-tdep.c (mips_convert_register_p): Handle both raw and
13662 cooked floating-point registers.
13663 (mips_gdbarch_init): Set convert_register_p, register_to_value,
13664 and value_to_register.
13665
13666 2004-01-13 Andrew Cagney <cagney@redhat.com>
13667
13668 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
13669 * gdbarch.c: Re-generate.
13670 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
13671 FUNCTION_START_OFFSET.
13672 * v850-tdep.c (v850_gdbarch_init): Ditto.
13673 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
13674 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
13675 * sh-tdep.c (sh_gdbarch_init): Ditto.
13676 * s390-tdep.c (s390_gdbarch_init): Ditto.
13677 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
13678 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
13679 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
13680 * mips-tdep.c (mips_gdbarch_init): Ditto.
13681 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
13682 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
13683 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13684 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
13685 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
13686 * i386-tdep.c (i386_gdbarch_init): Ditto.
13687 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
13688 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
13689 * frv-tdep.c (frv_gdbarch_init): Ditto.
13690 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
13691 * cris-tdep.c (cris_gdbarch_init): Ditto.
13692 * avr-tdep.c (avr_gdbarch_init): Ditto.
13693 * arm-tdep.c (arm_gdbarch_init): Ditto.
13694 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
13695
13696 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
13697
13698 * infrun.c (follow_fork_mode_ask): Remove.
13699 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
13700 (follow_fork): Simplify and remove internal error for
13701 follow_fork_mode_ask.
13702 (_initialize_infrun): Update "set follow-fork-mode" help text.
13703
13704 2004-01-13 Andrew Cagney <cagney@redhat.com>
13705
13706 * configure.in: Update copyright year.
13707 (build_warnings): Add -Wunused-label.
13708 * configure: Re-generate.
13709
13710 2004-01-12 Andrew Cagney <cagney@redhat.com>
13711
13712 * exec.h (exec_ops): Make "extern".
13713
13714 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
13715 the function is void.
13716 (mips_pseudo_register_write): Ditto.
13717
13718 2004-01-12 Andrew Cagney <cagney@redhat.com>
13719
13720 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
13721 call. Never defined.
13722 * sparc-tdep.h (struct frame_info): Add opaque declaration.
13723 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
13724 (struct sparc_gregset, struct regcache): Ditto.
13725 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
13726
13727 2004-01-12 Andrew Cagney <cagney@redhat.com>
13728
13729 * mi/ChangeLog: Delete file. Renamed to ...
13730 * mi/ChangeLog-1999-2003: New file.
13731 * tui/ChangeLog: Delete file. Renamed to ...
13732 * tui/ChangeLog-1998-2003: New file.
13733
13734 2004-01-11 Mark Kettenis <kettenis@gnu.org>
13735
13736 * sparc64nbsd-tdep.c: Include "regset.h".
13737 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
13738 Remove variables.
13739 (fetch_core_registers): Remove function.
13740 (sparc64nbsd_core_fns): Remove variable.
13741 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
13742 functions.
13743 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
13744 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
13745 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
13746
13747 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
13748 sparc_extract_struct_value_address.
13749 (sparc32_gdbarch_init): Set extract_struct_value_address.
13750 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
13751 function.
13752 (sparc64_init_abi): Set extract_struct_value_address. Don't set
13753 return_value_on_stack.
13754
13755 * NEWS: Mention that %cs and %ss have been added to the AMD64
13756 configurations
13757
13758 * frame.c: Update copyright year.
13759 (get_prev_frame): Improve comment.
13760
13761 * sparc64fbsd-tdep.c: Include "regset.h".
13762 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
13763 Remove variables.
13764 (fetch_core_registers): Remove function.
13765 (sparc64fbsd_core_fns): Remove variable.
13766 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
13767 functions.
13768 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
13769 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
13770 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
13771
13772 * sparcnbsd-tdep.c: Include "regset.h".
13773 (fetch_core_registers): Remove function.
13774 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
13775 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
13776 functions.
13777 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
13778 TDEP->fpregset.
13779 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
13780
13781 * sparc-tdep.h (struct regset): Provide opaque declaration.
13782 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
13783 fpregset and sizeof_fpregset members.
13784 * sparc-tdep.c (struct regset): Provide opaque declaration.
13785 (sparc_regset_from_core_section): New function.
13786 (sparc32_gdbarch_init): Initialize TDEP->gregset,
13787 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
13788 Set regset_from_core_section when appropriate.
13789
13790 2004-01-10 Mark Kettenis <kettenis@gnu.org>
13791
13792 * x86-64-tdep.c (amd64_non_pod_p): New function.
13793 (amd64_classify_aggregate): Return class memory for non-POD
13794 C++ structure types.
13795
13796 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
13797 argument. Use it to reserve a register if necessary.
13798 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
13799 amd64_push_arguments.
13800
13801 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
13802
13803 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
13804 register numbers in comments.
13805 * x86-64-tdep.h: Update copyright year.
13806 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
13807 Adjust for addition of %cs and %ss.
13808 * amd64fbsd-nat.c: Update copyright year.
13809 (reg_offset): Add register offsets for %cs and %ss.
13810 * amd64fbsd-tdep.c: Update copyright year.
13811 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
13812 (amd64fbsd_sc_reg_offset): Likewise.
13813 * x86-64-linux-nat.c: Update copyright year.
13814 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
13815 and %ss.
13816 * amd64nbsd-nat.c: Update copyright year.
13817 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
13818 * amd64nbsd-tdep.c: Update copyright year.
13819 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
13820 * x86-64-linux-tdep.c: Update copyright year.
13821 (user_to_gdb_regmap): Add mapping for %cs and %ss.
13822 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
13823 * regformats/reg-x86-64.dat: Add %cs and %ss.
13824
13825 * blockframe.c (inside_entry_func): Reformat. Introduce new local
13826 variables to prevent long lines. Update comments to reflect
13827 reality.
13828
13829 2004-01-09 David Carlton <carlton@kealia.com>
13830
13831 Checked in by Elena Zannoni <ezannoni@redhat.com>.
13832 * dwarf2read.c (read_namespace): Pull out name-generating code
13833 into namespace_name. Rename previous_namespace to previous_prefix
13834 and processing_current_namespace to processing_current_prefix..
13835 (namespace_name): New function.
13836 (add_partial_symbol): Substitute uses of pdi->name with
13837 actual_name.
13838 * cp-support.h: Rename processing_current_namespace to
13839 processing_current_prefix.
13840 Update copyright year.
13841 * cp-namespace.c: Rename processing_current_namespace to
13842 processing_current_prefix.
13843 Update copyright year.
13844
13845 2004-01-09 Andrew Cagney <cagney@redhat.com>
13846
13847 * jv-valprint.c, ser-unix.c: Add missing copyright years.
13848
13849 2004-01-09 Mark Kettenis <kettenis@gnu.org>
13850
13851 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
13852 complaining.
13853 (process_one_symbol): Deal with N_PATCH stabs.
13854
13855 2004-01-09 Elena Zannoni <ezannoni@redhat.com>
13856
13857 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
13858 ifdeffed code.
13859 Update copyright year.
13860
13861 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
13862
13863 * config/pa/tm-hppa.h: Update extern declarations for
13864 hppa32_hpux_frame_saved_pc_in_sigtramp,
13865 hppa32_hpux_frame_base_before_sigtramp, and
13866 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
13867
13868 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
13869
13870 * config/pa/tm-hppah.h: Update copyright years.
13871
13872 2004-01-08 Andrew Cagney <cagney@redhat.com>
13873
13874 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
13875 (mips_o32_reg_struct_has_addr): Delete function.
13876 (mips_gdbarch_init): Update.
13877 (mips_extract_struct_value_address): Delete function.
13878
13879 2004-01-08 David Mosberger <davidm@hpl.hp.com>
13880
13881 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
13882 reality.
13883
13884 2004-01-07 Andrew Cagney <cagney@redhat.com>
13885
13886 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
13887 architecture's elf flags (when available).
13888
13889 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
13890 FPU to the start, check the MIPS FPU when looking for an old
13891 architecture.
13892 (set_mipsfpu_single_command): Update the architecture.
13893 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
13894
13895 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
13896 (mips_mask_address_p): Add "tdep" parameter.
13897 (show_mask_address, mips_addr_bits_remove): Update.
13898 (mips_dump_tdep): Update.
13899 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
13900 (MIPS_STACK_ARGSIZE): Delete macro.
13901 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
13902 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
13903 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
13904 (mips_dump_tdep): Update.
13905 (MIPS_SAVED_REGSIZE): Delete macro.
13906 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
13907 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
13908 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
13909 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
13910 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
13911 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
13912 (mips_pop_frame, return_value_location): Update.
13913 (mips_n32n64_return_value, mips_dump_tdep): Update.
13914
13915 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
13916 MIPS ABI.
13917
13918 * mips-tdep.c: Update copyright.
13919 (mips_gdbarch_init): Merge two code blocks handling the register
13920 name and number layout.
13921
13922 2004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
13923
13924 * tracepoint.c (validate_actionline): Fix segv at EOF
13925
13926 2004-01-07 Michael Chastain <mec.gnu@mindspring.com>
13927
13928 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
13929 properly for static fields.
13930
13931 2004-01-06 Jeff Johnston <jjohnstn@redhat.com>
13932 Jason Molenda <jmolenda@apple.com>
13933
13934 * disasm.c: Update copyright to include 2004.
13935 (do_mixed_source_and_assembly): For uiout asm list
13936 and tuple cleanups, initialize to null_cleanup instead of
13937 NULL and do so prior to loop. Only reset when we close off
13938 the tuple/list. Move check for whether to close off the
13939 asm tuple/list to after dump_insns call where it will be run
13940 on each loop iteration.
13941
13942 2004-01-05 Andrew Cagney <cagney@redhat.com>
13943
13944 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
13945 should be a switch case and not a label.
13946 * mips-tdep.c (mips32_next_pc): Delete unused labels
13947 "greater_equal_branch" and "less_zero_branch".
13948 * jv-valprint.c (java_print_value_fields): Delete unused label
13949 "flush_it".
13950
13951 * target.c (unpush_target): Only close a target that is in the
13952 target stack.
13953
13954 2004-01-05 Mark Kettenis <kettenis@gnu.org>
13955
13956 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
13957 address from [sp + 64] instead of %o2.
13958
13959 * frame.c (get_prev_frame): Don't try to unwind the PC. This
13960 fixes PR backtrace/1476.
13961
13962 2004-01-05 Andrew Cagney <cagney@redhat.com>
13963
13964 * libunwind-frame.h (struct frame_id): Add opaque declaration,
13965 move to start of file.
13966 * i386-tdep.h (struct regcache): Add opaque declaration.
13967 * config/ia64/nm-linux.h (struct target_ops): Add opaque
13968 declaration.
13969 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
13970 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
13971 * win32-nat.c (fake_create_process): Use ISO C style definition.
13972 * stabsread.c (define_symbol): Delete #ifndef
13973 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
13974 stabs_argument_has_addr call, macro never defined.
13975
13976 2004-01-04 Michael Chastain <mec.gnu@mindspring.com>
13977
13978 * op50-rom.c: Delete.
13979 * w89k-rom.c: Delete.
13980 * Makefile.in: Remove references.
13981
13982 2004-01-04 Mark Kettenis <kettenis@gnu.org>
13983
13984 * x86-64-tdep.c: Update copyright year.
13985 (struct amd64_register_info): Rename from x86_64_register_info.
13986 (amd64_register_info): Rename from x86_64_register_info.
13987 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
13988 (amd64_register_name): Rename from x86_64_register_name.
13989 (amd64_register_type): Rename from x86_64_register_type.
13990 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
13991 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
13992 (amd64_dwarf_reg_to_regnum): Rename from
13993 x86_64_dwarf_reg_to_regnum.
13994 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
13995 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
13996 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
13997 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
13998 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
13999 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
14000 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
14001 (amd64_frame_cache): Rename from x86_64_frame_cache.
14002 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
14003 (amd64_frame_prev_register): Rename from
14004 x86_64_frame_prev_register.
14005 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
14006 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
14007 (amd64_sigtramp_frame_cache): Rename from
14008 x86_64_sigtramp_frame_cache.
14009 (amd64_sigtramp_frame_prev_register): Rename from
14010 x86_64_sigtramp_frame_prev_register.
14011 (amd64_sigtramp_frame_unwind): Rename from
14012 x86_64_sigtramp_frame_unwind.
14013 (amd64_sigtramp_frame_sniffer): Rename from
14014 x86_64_sigtramp_frame_sniffer.
14015 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
14016 (amd64_frame_base): Rename from x86_64_frame_base.
14017 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
14018 (amd64_frame_align): Rename from x86_64_frame_align.
14019 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
14020 (amd64_regset_from_core_section): Rename from
14021 x86_64_regset_from_core_section.
14022 (x86_64_init_abi): Update comments.
14023
14024 2004-01-04 Nick Roberts <nick@nick.uklinux.net>
14025
14026 * MAINTAINERS (write after approval): Add myself.
14027
14028 2004-01-04 Mark Kettenis <kettenis@gnu.org>
14029
14030 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
14031 `float' arguments.
14032
14033 2004-01-04 Mark Kettenis <kettenis@gnu.org>
14034
14035 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
14036 such that it mentions a specific version of GCC that exhibits this
14037 bug.
14038
14039 2004-01-03 Mark Kettenis <kettenis@gnu.org>
14040
14041 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
14042 structure that has a single `float' member, store it in %f1 in
14043 addition to %f0.
14044
14045 * sparc-sol2-nat.c: Add missing '\'.
14046
14047 * sparc-tdep.c (sparc32_return_value): New function.
14048 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
14049 Remove functions.
14050 (sparc32_gdbarch_init): Set return_value, don't set
14051 extract_return_value, store_return_value, use_struct_convention
14052 and return_value_on_stack.
14053
14054 * sparc-sol2-nat.c: Add missing ')'.
14055
14056 2004-01-03 J. Brobecker <brobecker@gnat.com>
14057
14058 * infrun.c (handle_step_into_function): New function.
14059 (handle_inferior_event): Extract out some code into the new
14060 function above.
14061
14062 2004-01-03 J. Brobecker <brobecker@gnat.com>
14063
14064 * infrun.c (handle_inferior_event): Move the declaration of
14065 real_stop_pc inside the if blocks where it is used.
14066
14067 2004-01-03 Mark Kettenis <kettenis@gnu.org>
14068
14069 * sparc64-tdep.c (sparc64_16_byte_align_p)
14070 (sparc64_store_floating_fields, sparc64_store_floating_fields):
14071 Use check_typedef to get subtypes of structures and unions.
14072 (sparc64_store_return_value): Fix calculation of the appropriate
14073 offset into VALBUF when storing a structure or union.
14074 (sparc64_return_value): New function.
14075 (sparc64_use_struct_convention): Remove function.
14076 (sparc64_init_abi): Set return_value, don't set
14077 extract_return_value, store_return_value and
14078 use_struct_convention.
14079
14080 2004-01-03 Eli Zaretskii <eliz@elta.co.il>
14081
14082 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
14083 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
14084 gdb/config/alpha/xm-alphaosf.h,
14085 gdb/config/powerpc/tm-ppcle-eabi.h,
14086 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
14087 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
14088 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
14089 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
14090 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
14091 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
14092 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
14093 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
14094 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
14095 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
14096 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
14097 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
14098 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
14099 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
14100 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
14101 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
14102 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
14103 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
14104 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
14105 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
14106 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
14107 Remove lines for .cvsignore files.
14108
14109 2004-01-03 J. Brobecker <brobecker@gnat.com>
14110
14111 * infrun.c: Back out the previous change.
14112
14113 2004-01-03 Mark Kettenis <kettenis@gnu.org>
14114
14115 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
14116 sparc-*-sunos4* to the list of REMOVED configurations.
14117
14118 * configure.tgt: Add back sparc-*-vxworks*.
14119 * remote-vxsparc.c: Remove all includes except for "defs.h",
14120 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
14121 Include "sparc-tdep.h".
14122 (SPARC_R_G1): New define.
14123 (vxsparc_gregset): New variable.
14124 (ext_format_sparc): Remove extern declaration.
14125 (vx_read_register): Rewrite to use sparc32_supply_gregset and
14126 sparc32_supply_fpregset.
14127 (vx_write_register): Rewrite to use sparc32_collect_gregset,
14128 sparc_collect_rwindow and sparc32_collect_fpregset.
14129 * config/sparc/tm-vxworks.h: New file, based on recently removed
14130 tm-vxsparc.h.
14131 * config/sparc/vxworks.mt: New file, based on recently removed
14132 vxworks.mt.
14133
14134 2004-01-03 J. Brobecker <brobecker@gnat.com>
14135
14136 * infrun.c (handle_step_into_function): New function.
14137 (handle_inferior_event): Extract out some code into the new
14138 function above.
14139
14140 2004-01-02 Mark Kettenis <kettenis@gnu.org>
14141
14142 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
14143 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
14144 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
14145 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
14146 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
14147 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
14148 (sparc_nat_h): New variable.
14149 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
14150 (tm-sun4os4.h): Remove dependency.
14151 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
14152 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
14153 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
14154 sparc-tdep.o): Update dependencies.
14155 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
14156 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
14157 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
14158 dependencies.
14159 * configure.host: Remove existing sparc-*-lynxos*,
14160 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
14161 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
14162 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
14163 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
14164 triplets.
14165 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
14166 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
14167 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
14168 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
14169 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
14170 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
14171 sparc64-*-solaris2* and sparc64-*-* triplets.
14172 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
14173 "symtab.h" and "objfiles.h".
14174 (BIAS): Remove define.
14175 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
14176 (X_DISP19): Remove macros.
14177 (sparc_fetch_instruction): Remove function.
14178 (struct gdbarch_tdep): Remove definition.
14179 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
14180 (sparc_breakpoint_from_pc): Remove function.
14181 (struct sparc64_frame_cache): Remove definition.
14182 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
14183 sparc64_unwind_pc): Remove functions.
14184 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
14185 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
14186 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
14187 (sparc64_frame_cache): Change return type to `struct
14188 sparc_frame_cache *'. Simply call sparc_frame_cache.
14189 (sparc64_frame_this_id, sparc64_frame_prev_register,
14190 sparc64_frame_base_address): Use `struct sparc_frame_cache'
14191 instead of `struct sparc64_frame_cache.
14192 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
14193 sparc_analyze_control_transfer, sparc_software_single_step,
14194 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
14195 _initialize_sparc64_tdep): Remove functions.
14196 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
14197 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
14198 macros.
14199 (sparc64_supply_gregset, sparc64_collect_gregset,
14200 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
14201 (sparc64_init_abi): New function.
14202 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
14203 inclusion guard. Include "sparc-tdep.h".
14204 (BIAS): Define.
14205 (r_tstate_offset, r_fprs_offset): New defines.
14206 (enum sparc_regnum): Remove defenition.
14207 (enum sparc64_regnum): Reformat.
14208 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
14209 (sparc64_init_abi, sparc64_supply_gregset,
14210 sparc64_collect_gregset, sparc64_supply_fpregset,
14211 sparc64_collect_fpregset): New prototypes.
14212 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
14213 Add extern declarations.
14214 (sparc64_sol2_init_abi): New prototype.
14215 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
14216 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
14217 prototypes.
14218 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
14219 "sparnbsd-nat.h".
14220 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
14221 functions.
14222 (_initialize_sparc64fbsd_nat): Remove initialization of
14223 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
14224 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
14225 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
14226 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
14227 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
14228 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
14229 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
14230 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
14231 (sparc64fbsd_r_y_offset): Remove variables.
14232 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
14233 Make static and const.
14234 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
14235 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
14236 functions.
14237 (sparc64fbsd_gregset): New variable.
14238 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
14239 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
14240 and sparc64_supply_fpregset.
14241 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
14242 (sparc64fbsd_sigtramp_frame_this_id)
14243 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
14244 (sparc64fbsd_sigtramp_frame_unwind): New variable.
14245 (sparc64fbsd_sigtramp_frame_sniffer): New function.
14246 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
14247 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
14248 * sparcnbsd-tdep.c: Update copyright year. Include
14249 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
14250 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
14251 "value.h" and "sparcnbsd-tdep.h".
14252 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
14253 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
14254 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
14255 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
14256 defines.
14257 (sparcnbsd_gregset): New variable.
14258 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
14259 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
14260 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
14261 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
14262 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
14263 variables.
14264 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
14265 (sparc32nbsd_sigcontext_frame_this_id)
14266 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
14267 (sparc32nbsd_sigcontext_frame_unwind): New variable.
14268 (sparc32nbsd_sigtramp_frame_sniffer): New function.
14269 (sparcnbsd_get_longjmp_target_32,
14270 sparcnbsd_get_longjmp_target_64): Remove functions.
14271 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
14272 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
14273 sparcnbsd_init_elf): Remove.
14274 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
14275 (sparcnbsd_elf_init_abi): New functions.
14276 (_initialize_sparcnbsd_tdep): New prototype.
14277 (_initialize_sparnbsd_tdep): Update.
14278 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
14279 corelow.o. Add sparc64-nat.o and sparc-nat.o.
14280 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
14281 * config/sparc/linux.mh: Update comment.
14282 (XM_FILE, HOST_IPC): Remove variables.
14283 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
14284 sparc-linux-nat.o.
14285 * config/sparc/linux.mt: Update comment.
14286 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
14287 * config/sparc/nbsd.mt: Reformat.
14288 * config/sparc/nbsd64.mh: Update comment.
14289 (NATDEPFILES): Add sparc-nat.o.
14290 * config/sparc/nbsd64.mt: Update comment.
14291 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
14292 (TM_FILE): Set to tm-nbsd.h.
14293 * config/sparc/nbsdelf.mh: Update comment.
14294 (NATDEPFILES): Add sparc-nat.o.
14295 (XM_FILE): Delete.
14296 * config/sparc/nbsdaout.mh: Update comment.
14297 (NATDEPFILES): Add sparc-nat.o
14298 (XM_FILE): Delete.
14299 * config/sparc/nm-linux.h: Update copyright year. Don't include
14300 "config/nm-svr4.h" and "solib.h". Add protection against multiple
14301 inclusion.
14302 (KERNEL_U_SIZE): Remove define.
14303 (kernel_u_size): Remove prototype.
14304 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
14305 * config/sparc/nm-nbsd.h: Update copyright. Don't include
14306 "regcache.h".
14307 (CHILD_PREPARE_TO_STORE): Remove define.
14308 * config/sparc/nm-nbsdaout.h: Tweak some comments.
14309 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
14310 sparcnbsd-nat.c: Rewrite files.
14311 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
14312 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
14313 sparcnbsd-tdep.h: Remove files.
14314 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
14315 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
14316 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
14317 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
14318 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
14319 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
14320 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
14321 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
14322 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
14323 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
14324 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
14325 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
14326 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
14327 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
14328 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
14329 * config/sparc/linux64.mh, config/sparc/linux64.mt,
14330 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
14331 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
14332 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
14333
14334 2004-01-02 Andrew Cagney <cagney@redhat.com>
14335
14336 From 2003-12-18 Kazuhiro Inaoka:
14337 * configure.host: Add m32r-linux target.
14338
14339 2004-01-02 Michael Chastain <mec.gnu@mindspring.com>
14340
14341 * top.c (print_gdb_version): Update year to 2004.
14342
14343 2004-01-02 Mark Mitchell <mark@codesourcery.com>
14344
14345 * MAINTAINERS: Add myself to the write-after-approval category.
14346
14347 2004-01-02 Daniel Jacobowitz <drow@mvista.com>
14348
14349 From Bernardo Innocenti <bernie@develer.com>:
14350 * configure.tgt: Add uClinux target.
14351
14352 2004-01-02 Andrew Cagney <cagney@redhat.com>
14353
14354 * utils.c (do_my_cleanups): Make static, add forward declaration.
14355 * defs.h (do_my_cleanups): Delete declaration.
14356
14357 2004-01-02 Eli Zaretskii <eliz@elta.co.il>
14358
14359 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
14360 bfd/ChangeLog-0203.
14361
14362 2004-01-02 Mark Kettenis <kettenis@gnu.org>
14363
14364 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
14365 in <machine/reg.h>.
14366 * configure, config.in: Regenerate.
14367
14368 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
14369 tui/ChangeLog-1998-2003.
14370 \f
14371 Local Variables:
14372 mode: change-log
14373 left-margin: 8
14374 fill-column: 74
14375 version-control: never
14376 End:
This page took 0.338536 seconds and 4 git commands to generate.