* config/pa/hppahpux.mh: Remove file.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2004-11-21 Mark Kettenis <kettenis@gnu.org>
2
3 * config/pa/hppahpux.mh: Remove file.
4 * config/pa/hpux1020.mh: Remove file.
5
6 2004-11-20 Andreas Schwab <schwab@suse.de>
7
8 * configure.host: Set host floatformat for m68k.
9
10 2004-11-20 Eli Zaretskii <eliz@gnu.org>
11
12 * config/djgpp/fnchange.lst: Resolve file-name clash between
13 hppa-hpux-tdep.c and the new hppa-hpux-nat.c.
14
15 2004-11-20 Mark Kettenis <kettenis@gnu.org>
16
17 * hppa-hpux-nat.c: New file.
18 * config/pa/hpux.mh (NATDEPFILES): New file.
19 * Makefile.in (ALLDEPFILES): Add hppa-hpux-nat.c.
20 (hppa-hpux-nat.o): New dependency.
21 * configure.host: Remove hppa*-*-hpux10.20.
22 (hppa*-*-hpux*, hppa*-*-hiux*): Set gdb_host to hpux.mh.
23
24 * inf-ptrace.c: Fix coding style.
25
26 * gdb_ptrace.h [PTRACE_TYPE_ARG5] (ptrace): New macro.
27 * infptrace.c (call_ptrace): Simply call ptrace with four
28 arguments.
29
30 * dbxread.c (process_one_symbol): Fix a few coding standard
31 issues. Improve code formatting.
32
33 * dbxread.c: Include "gdb_string.h".
34 (record_minimal_symbol, read_ofile_symtab): Replace
35 DEPRECATED_STREQ and DEPRECATED_STREQN with strcmp and strncmp.
36 * Makefile.in (dbxread.o): Update dependencies.
37
38 * dwarf2-frame.c (read_encoded_value): Correctly calculate number
39 of bytes read for aligned LEB128 encodings.
40
41 2004-11-19 Mark Kettenis <kettenis@gnu.org>
42
43 * bsd-kvm.c (bsd_kvm_pcb_cmd): Cast return value from
44 parse_and_eval_address to u_long before converting it to a pointer
45 type.
46 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Change type of
47 ps_strings from int to u_long.
48 * i386obsd-nat.c (_initialize_i386obsd_nat): Cast _ps.val to
49 u_long instead of CORE_ADDR.
50
51 2004-11-18 Mark Kettenis <kettenis@gnu.org>
52
53 * dbxread.c (process_one_symbol): Do not adjust address of first
54 N_SLINE stab for a function for code generated by non-GCC
55 compilers.
56
57 2004-11-18 Kevin Buettner <kevinb@redhat.com>
58
59 * solib-null.c: New file.
60
61 2004-11-17 Andrew Cagney <cagney@gnu.org>
62
63 * MAINTAINERS: Drop MIPS and remote.
64
65 2004-11-15 Andrew Cagney <cagney@gnu.org>
66
67 * findvar.c (value_of_register): Set the frame ID.
68 * value.c (value_primitive_field): Copy the frame ID.
69 * valops.c (value_assign): Simplify lval_register case, there's
70 always a frame.
71
72 2004-11-14 Daniel Jacobowitz <dan@debian.org>
73
74 * Makefile.in (mips-linux-tdep.o): Update dependencies.
75 * mips-linux-tdep.c: Include "regcache.h".
76 (fill_fpregset, mips64_fill_fpregset): Use regcache_raw_collect.
77
78 2004-11-14 Daniel Jacobowitz <dan@debian.org>
79
80 * Makefile.in (linux-thread-db.o): Fix typo in last change.
81
82 2004-11-14 Daniel Jacobowitz <dan@debian.org>
83
84 * linux-thread-db.c: New file, renamed from thread-db.c.
85 * thread-db.c: Remove.
86 * Makefile.in (linux-thread-db.o): Rename from thread-db.o rule.
87 * config/alpha/alpha-linux.mh (NATDEPFILES): Rename thread-db.o
88 to linux-thread-db.o.
89 * config/arm/linux.mh (NATDEPFILES): Likewise.
90 * config/i386/linux.mh (NATDEPFILES): Likewise.
91 * config/i386/linux64.mh (NATDEPFILES): Likewise.
92 * config/ia64/linux.mh (NATDEPFILES): Likewise.
93 * config/m32r/linux.mh (NATDEPFILES): Likewise.
94 * config/m68k/linux.mh (NATDEPFILES): Likewise.
95 * config/mips/linux.mh (NATDEPFILES): Likewise.
96 * config/pa/linux.mh (NATDEPFILES): Likewise.
97 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
98 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
99 * config/s390/s390.mh (NATDEPFILES): Likewise.
100 * config/sparc/linux.mh (NATDEPFILES): Likewise.
101 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
102
103 2004-11-13 Andrew Cagney <cagney@gnu.org>
104
105 * config/i386/i386lynx.mh: Delete file.
106 * config/i386/i386lynx.mt: Delete file.
107 * Makefile.in (ALLDEPFILES, i386ly-tdep.o): Remove i386ly-tdep.c.
108 * i386ly-tdep.c: Delete.
109
110 * config/tm-lynx.h: Delete, inline contents ...
111 * config/rs6000/tm-rs6000ly.h: ... here.
112
113 * config/tm-sysv4.h: Delete file, inlining contents.
114 * config/ia64/tm-aix.h (SKIP_TRAMPOLINE_CODE): Define.
115 * config/tm-linux.h (SKIP_TRAMPOLINE_CODE): Define.
116 * config/tm-nto.h (SKIP_TRAMPOLINE_CODE): Define.
117
118 * regcache.h (deprecated_register_valid): Delete.
119 (deprecated_registers): Delete.
120 * regcache.c (deprecated_register_valid): Delete.
121 (deprecated_registers): Delete.
122 (deprecated_read_register_byte, _initialize_regcache)
123 (deprecated_write_register_bytes, build_regcache): Update.
124 * config/powerpc/ppc-sim.mt (TDEPFILES): Remove ppc-bdm.o and
125 remote-sds.o.
126 * config/powerpc/ppc-eabi.mt (TDEPFILES): Ditto.
127 * config/mips/embed.mt (TDEPFILES): Remove remote-mips.o.
128
129 * NEWS: List h8300*-*-*, mcore-*-*, mn10300-*-*, ns32k-*-*, and
130 v850-*-* under removed.
131 * configure.host: Delete ns32k-*-netbsd*.
132 * configure.tgt: Delete h8300-*-*, mcore*-*-*, mn10300-*-*,
133 ns32k-*-netbsd*, and v850*-*-*.
134 * MAINTAINERS: Mark h8300, mcore, mn10300, ns32k, v850 as
135 "Deleted"
136 * config/h8300/tm-h8300.h, config/h8300/h8300.mt: Delete.
137 * h8300-tdep.c, config/mcore/mcore.mt, mcore-rom.c: Delete.
138 * mcore-tdep.c, config/mn10300/mn10300.mt: Delete.
139 * mn10300-tdep.c, config/ns32k/nbsdaout.mh: Delete.
140 * config/ns32k/nbsdaout.mt, config/ns32k/nm-nbsd.h: Delete.
141 * config/ns32k/nm-nbsdaout.h, config/ns32k/tm-ns32k.h: Delete.
142 * ns32knbsd-nat.c, ns32knbsd-tdep.c, ns32k-tdep.c: Delete.
143 * ns32k-tdep.h, config/v850/v850.mt, v850ice.c: Delete.
144 * v850-tdep.c: Delete.
145
146 2004-11-13 Joel Brobecker <brobecker@gnat.com>
147
148 * irix5-nat.c (fetch_core_registers): Replace use of
149 deprecated_registers by equivalent code.
150
151 2004-11-13 Joel Brobecker <brobecker@gnat.com>
152
153 * irix5-nat.c (fill_gregset): Replace use of deprecated_registers
154 with equivalent code.
155 (fill_fpregset): Likewise.
156
157 2004-11-13 Andrew Cagney <cagney@gnu.org>
158
159 * MAINTAINERS: Do not list "Deleted" architectures.
160
161 * configure.tgt: Delete i[34567]86-*-vxworks*, m68*-netx-*,
162 m68*-*-vxworks*, mips*-*-vxworks*, powerpc-*-vxworks*, and
163 sparc-*-vxworks*.
164 * NEWS: Mention that vxworks was deleted.
165 * config/m68k/tm-vx68.h, config/mips/tm-vxmips.h: Delete.
166 * config/powerpc/tm-vxworks.h, config/tm-vxworks.h: Delete.
167 * config/i386/vxworks.mt, config/m68k/vxworks68.mt: Delete.
168 * config/mips/vxmips.mt, config/powerpc/vxworks.mt: Delete.
169 * config/sparc/vxworks.mt, vx-share/dbgRpcLib.h: Delete.
170 * vx-share/ptrace.h, vx-share/regPacket.h: Delete.
171 * vx-share/vxTypes.h, vx-share/vxWorks.h: Delete.
172 * vx-share/wait.h, vx-share/xdr_ld.c: Delete.
173 * vx-share/xdr_ld.h, vx-share/xdr_ptrace.c: Delete.
174 * vx-share/xdr_ptrace.h, vx-share/xdr_rdb.c: Delete.
175 * vx-share/xdr_rdb.h, remote-vxsparc.c: Delete.
176 * remote-vxmips.c, remote-vx.c: Delete.
177 * remote-vx68.c: Delete.
178 * config/m68k/tm-os68k.h: Remove reference to VxWorks.
179 * config/m68k/os68k.mt, ada-lang.h: Ditto.
180 * Makefile.in (HFILES_NO_SRCDIR, ALLDEPFILES, remote-vx68.o)
181 (remote-vx.o, remote-vxmips.o, remote-vxsparc.o): Delete vx files.
182
183 2004-11-13 Eli Zaretskii <eliz@gnu.org>
184
185 * config/i386/xm-go32.h: Don't include fopen-bin.h.
186 Don't define CRLF_SOURCE_FILES and DIRNAME_SEPARATOR.
187
188 * source.c (OPEN_MODE, FDOPEN_MODE): Remove the definitions in the
189 branch that doesn't define CRLF_SOURCE_FILES; always use
190 binary-mode open.
191 (print_source_lines_base, forward_search_command)
192 (reverse_search_command): Enable the code that accepts DOS-style
193 CRLF line endings on all platforms (this removes the need for
194 CRLF_SOURCE_FILES).
195
196 * defs.h: Fix wording of the comment before FOPEN_RB.
197 (DIRNAME_SEPARATOR) [__MSDOS__]: Define to ';'.
198
199 * config/djgpp/fnchange.lst: Group renames for opcode directory
200 together.
201
202 * config/djgpp/djconfig.sh: Replace file names that don't exist
203 anymore with existing files, for checking the unpacked
204 distribution.
205
206 * config/djgpp/config.sed (am_cv_exeext, lt_cv_sys_max_cmd_len):
207 Export pre-cooked values in configure-* targets that begin with
208 "@test -f stage_last".
209
210 2004-11-12 Andrew Cagney <cagney@gnu.org>
211
212 * defs.h (enum lval_type): Delete lval_reg_frame_relative.
213 * value.h (struct value): Update comment.
214 * valops.c (value_assign): Fold lval_reg_fame_relative into
215 lval_register.
216 * findvar.c (value_from_register, locate_var_value): Ditto.
217
218 2004-11-12 Randolph Chung <tausq@debian.org>
219
220 * config/tm/tm-hppa.h (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
221 * parse.c (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
222 (write_exp_msymbol): Remove conditional check for symbols starting
223 with $. Update comments.
224
225 2004-11-12 Randolph Chung <tausq@debian.org>
226
227 * pa64solib.c (pa64_solib_thread_start_addr): Rename from
228 so_lib_thread_start_addr.
229 * pa64solib.h (so_list): Forward declare.
230 (pa64_solib_thread_start_addr): Prototype.
231 * somsolib.c (SHL_LOAD, SHL_UNLOAD): Define if not already defined.
232 (no_shared_libraries): Remove.
233 (som_solib_thread_start_addr): Rename from so_lib_thread_start_addr.
234 * somsolib.h (som_solib_thread_start_addr): Likewise; prototype.
235 * hpread.c (hpread_process_one_debug_symbol): Use either the som or
236 the elf solib handler to find the start address.
237
238 * config/pa/hppahpux.mh (NATDEPFILES): Move target-specific support
239 files to the target makefile.
240 * config/pa/hpux1020.mh (NATDEPFILES): Likewise.
241 * config/pa/hpux11.mh (NATDEPFILES): Likewise.
242 * config/pa/hpux11w.mh (NATDEPFILES): Likewise.
243
244 * config/pa/hppa64.mt (TDEPFILES): Put target-specific support
245 files for symbol reading and shared library handling here.
246 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
247 (PA_SOM_ONLY): Define so we can build a 32-bit SOM only target
248 without bringing in 64-bit support.
249
250 2004-11-12 Andrew Cagney <cagney@gnu.org>
251
252 * sparc-tdep.c: Replace VALUE_TYPE with value_type.
253 * v850-tdep.c, sparc64-tdep.c, sh-tdep.c: Ditto.
254 * sh64-tdep.c, s390-tdep.c, mcore-tdep.c: Ditto.
255 * h8300-tdep.c, arm-linux-tdep.c, amd64-tdep.c: Ditto.
256 * hppa-tdep.c, mips-tdep.c, m88k-tdep.c: Ditto.
257 * m68hc11-tdep.c, m32r-tdep.c, ia64-tdep.c: Ditto.
258 * frv-tdep.c, cris-tdep.c, avr-tdep.c, alpha-tdep.c: Ditto.
259
260 Merge VALUE_REGNO and VALUE_FRAME_REGNUM into VALUE_REGNUM.
261 * value.h (VALUE_REGNO, VALUE_FRAME_REGNUM): Delete.
262 (VALUE_REGNUM): Define.
263 (struct value): Delete location.regnum, rename "regno" to
264 "regnum".
265 * value.c, valops.c, valarith.c, findvar.c: Update.
266
267 * value.h (VALUE_TYPE, VALUE_NEXT, VALUE_OFFSET, VALUE_BITSIZE)
268 (VALUE_BITPOS): Delete.
269 (value_type, value_offset, value_bitsize, value_bitpos): Declare.
270 * value.c (value_type, value_offset, value_bitpos)
271 (value_bitsize): New functions. Update references.
272 * arm-tdep.c, gnu-v3-abi.c, hpacc-abi.c, gnu-v2-abi.c: Update.
273 * f-valprint.c, cp-valprint.c, c-valprint.c: Update.
274 * ada-valprint.c, typeprint.c, scm-valprint.c, scm-exp.c: Update.
275 * p-valprint.c, jv-valprint.c, jv-lang.c, varobj.c: Update.
276 * objc-lang.c, ada-lang.c, std-regs.c, stack.c: Update.
277 * infcall.c, linespec.c, printcmd.c, valarith.c: Update.
278 * valops.c, eval.c, findvar.c, breakpoint.c: Update.
279 * tracepoint.c, ax-gdb.c, mi/mi-main.c, cli/cli-dump.c:
280 * rs6000-tdep.c, ppc-sysv-tdep.c: Update.
281
282 2004-11-12 Andrew Cagney <cagney@gnu.org>
283
284 * cris-tdep.c (cris_register_offset): Delete, never called.
285 (cris_spec_reg_applicable): Delete cris_ver_sim.
286 * MAINTAINERS: List d10v as OBSOLETE.
287 * rdi-share/host.h (FOPEN_WB): #ifdef 0 out definitions of
288 FOPEN_WB et.al., defined by "fopen-bin.h".
289
290 2004-11-12 Randolph Chung <tausq@debian.org>
291
292 * hppa-tdep.c (hppa_skip_permanent_breakpoint): Move definition ...
293 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): ... to here.
294 * config/pa/tm-hppa.h (SKIP_PERMANENT_BREAKPOINT): Move definition ...
295 * config/pa/tm-hppah.h (SKIP_PERMANENT_BREAKPOINT): ... to here.
296
297 2004-11-12 Mark Kettenis <kettenis@jive.nl>
298
299 * tui/tui-io.c: Don't include "terminal.h".
300 * Makefile.in (tui-io.o): Update dependencies.
301
302 2004-11-12 Kei Sakamoto <sakamoto.kei@renesas.com>
303
304 * Makefile.in (m32r-linux-tdep.o): Update dependencies.
305 * m32r-linux-tdep.c (m32r_linux_init_abi): Call
306 set_gdbarch_regset_from_core_section for core file support.
307 (m32r_linux_supply_gregset, m32r_linux_regset_from_core_section):
308 New functions.
309
310 2004-11-11 Randolph Chung <tausq@debian.org>
311
312 * hppa-tdep.c (skip_prologue_hard_way): Make static, add
313 stop_after_branch parameter and use it to determine if we should look
314 at the delay slot of the first branch insn to find prologue insns.
315 (hppa_skip_prologue): Update comment and call to skip_prologue_hard_way.
316 (hppa_frame_cache): Likewise.
317
318 2004-11-11 Randolph Chung <tausq@debian.org>
319
320 * hppa-tdep.c (hppa_frame_cache): Properly handle the frame pointer
321 register so that it can be unwound from anywhere in the prologue.
322
323 2004-11-10 msnyder <msnyder@redhat.com>
324
325 * rs6000-tdep.c (skip_prologue): After saving lr_offset,
326 must invalidate lr_reg (so we don't try to save it again).
327 Ditto for cr_offset and cr_reg.
328
329 2004-11-05 Jon Beniston <jon@beniston.com>
330
331 Committed by Andrew Cagney.
332 * remote.c (putpkt_binary) Fix PR gdb/1806. Send an ACK
333 when an unexpected packet is received, as the target stubs
334 continually retransmit the same packet until ACKed.
335
336 2004-11-10 Randolph Chung <tausq@debian.org>
337
338 * frame.c (get_prev_frame): Use get_frame_type to retrieve the
339 frame's type.
340
341 2004-11-10 Randolph Chung <tausq@debian.org>
342
343 * blockframe.c (inside_entry_func): Move to .....
344 * frame.c (inside_entry_func): ... here, and make static.
345 (backtrace_past_entry): New flag.
346 (get_prev_frame): Stop backtrace at the entry function if enabled
347 by flag. Update comments.
348 (_initialize_frame): Add command to set backtrace_past_entry flag.
349 * defs.h (inside_entry_func): Remove prototype.
350
351 2004-11-10 Mark Kettenis <kettenis@gnu.org>
352
353 * dwarf2read.c: Fix formatting.
354
355 2004-11-10 Andrew Cagney <cagney@gnu.org>
356
357 * value.h (COERCE_REF, COERCE_ARRAY, COERCE_NUMBER, COERCE_ENUM)
358 (coerce_ref, coerce_array, coerce_number, coerce_enum): Replace
359 macros with function declarations.
360 * value.c (coerce_ref, coerce_array, coerce_number)
361 (coerce_enum): New functions.
362 (value_as_long, value_as_address): Update.
363 * ada-lang.c (ada_coerce_ref, ada_value_binop)
364 (ada_evaluate_subexp, ada_value_assign, ada_value_struct_elt): Update.
365 * jv-lang.c (evaluate_subexp_java): Update.
366 * valarith.c (value_less, value_neg, value_complement)
367 (value_binop, value_add, value_subscript, value_x_binop)
368 (value_logical_not, value_sub): Update.
369 * valops.c (check_field, value_struct_elt, value_ind)
370 (value_find_oload_method_list, value_cast, value_assign): Update.
371 * eval.c (evaluate_subexp_standard): Update.
372
373 2004-11-10 Mark Kettenis <kettenis@gnu.org>
374
375 * mips-tdep.c (mips32_relative_offset): Change return type to
376 LONGEST, change argument type to ULONGEST. Fix sign-extension.
377
378 2004-11-10 Randolph Chung <tausq@debian.org>
379
380 * hppa-tdep.c (hppa32_register_name, hppa64_register_name): Make static.
381 (hppa32_push_dummy_call, hppa64_push_dummy_call): Likewise.
382 (hppa_fetch_pointer_argument): Likewise.
383 (hppa_frame_cache): Use safe_frame_unwind_memory instead of
384 deprecated_read_memory_nobpt.
385 (_initialize_hppa_tdep): Replace deprecated_add_show_from_set/
386 add_set_cmd sequence with add_setshow_boolean_cmd.
387
388 2004-11-09 Andrew Cagney <cagney@gnu.org>
389
390 GDB 6.3 released from GDB 6.3 branch.
391
392 2004-11-09 Andrew Cagney <cagney@gnu.org>
393
394 * values.c: Rename to ...
395 * value.c: ..., new file.
396 * Makefile.in: Update.
397
398 2004-11-09 Daniel Jacobowitz <dan@debian.org>
399
400 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Correct allocated
401 size.
402
403 2004-11-09 Andrew Cagney <cagney@gnu.org>
404
405 * TODO: Delete.
406
407 * value.h (struct value): Delete field bfd_section.
408 (VALUE_BFD_SECTION): Delete macro.
409 (COERCE_REF): Update.
410 (value_at, value_at_lazy): Delete asection parameter.
411 * printcmd.c (print_formatted, x_command): Update.
412 (do_examine): Delete asection parameter.
413 (next_section): Delete variable.
414 * valops.c (value_cast, value_at, value_at_lazy)
415 (value_coerce_function, value_addr, value_ind, value_string)
416 (find_rt_vbase_offset, value_full_object): Update.
417 * hpacc-abi.c (hpacc_virtual_fn_field)
418 (hpacc_value_rtti_type): Update.
419 * gnu-v3-abi.c (gnuv3_rtti_type, gnuv3_virtual_fn_field)
420 (gnuv3_baseclass_offset): Update.
421 * f-valprint.c (f_val_print): Update.
422 * c-valprint.c (c_val_print): Update.
423 * p-valprint.c (pascal_val_print): Update.
424 * jv-valprint.c (java_value_print): Update.
425 * jv-lang.c (java_class_from_object, evaluate_subexp_java): Update.
426 * ada-lang.c (ada_value_primitive_packed_val)
427 (ada_evaluate_subexp): Update.
428 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Update.
429 * expprint.c (print_subexp_standard): Update.
430 * infcall.c (call_function_by_hand): Update.
431 * valarith.c (value_add): Update.
432 * eval.c (evaluate_subexp_standard): Update.
433 * values.c (allocate_value, value_copy, value_static_field): Update.
434 * findvar.c (read_var_value, locate_var_value): Update.
435
436 2004-11-09 Andrew Cagney <cagney@gnu.org>
437
438 * i386-linux-tdep.c: Include "dwarf2-frame.h".
439 * Makefile.in: Update all dependencies.
440
441 2004-11-08 Andrew Cagney <cagney@gnu.org>
442
443 * sentinel-frame.c (sentinel_frame_prev_pc): New function.
444 (sentinel_frame_unwinder): Add the prev_pc method.
445 * frame.c (frame_pc_unwind): Use the per-frame pc unwinder when
446 available. Do not handle the sentinel-frame case.
447 * frame-unwind.h (frame_prev_register_ftype): Define.
448 (struct frame_unwind): Add prev_pc;
449
450 2004-11-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
451
452 * configure.in: Check for ncurses/term.h.
453 * gdb_curses.h: Include term.h here, prefering ncurses/term.h.
454 * utils.c: Include gdb_curses.h instead of curses.h and term.h.
455 * tui/tui.c: Don't include term.h.
456 * configure, config.in: Rebuilt.
457
458 2004-11-08 Mark Kettenis <kettenis@gnu.org>
459
460 * m68kbsd-nat.c: Include "inf-ptrace.h".
461 (_initialize_m68kbsd_nat): Fix pasto.
462 * Makefile.in (m68kbsd-nat.o): Update dependencies.
463
464 2004-11-08 Randolph Chung <tausq@debian.org>
465
466 * infrun.c (debug_infrun): New variable.
467 (resume, proceed, wait_for_inferior): Annotate with debug messages.
468 (handle_inferior_event, keep_going): Likewise.
469 (_initialize_infrun): Register "set debug infrun" command.
470
471 2004-11-08 Andreas Schwab <schwab@suse.de>
472
473 * linux-nat.c (PTRACE_EVENT_VFORK_DONE): Renamed from
474 PTRACE_EVENT_VFORKDONE.
475 (child_follow_fork): Adjust.
476
477 2004-11-08 Andrew Cagney <cagney@gnu.org>
478
479 * README: Refer to 6.3, not 6.2, update directory listing droppng
480 references to intl/ and mmalloc/.
481 * PROBLEMS: Refer to 6.3 not 6.2.
482
483 * PROBLEMS: Delete no-longer applicable problems.
484
485 2004-11-07 Andrew Cagney <cagney@redhat.com>
486 Daniel Jacobowitz <dan@debian.org>
487 Roland McGrath <roland@redhat.com>
488
489 * Makefile.in (symfile-mem.o): Update dependencies.
490 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): New.
491 (i386_linux_init_abi): Call dwarf2_frame_set_signal_frame_p.
492 * inf-ptrace.c (inf_ptrace_attach): Call
493 observer_notify_inferior_created.
494 * inftarg.c (child_attach): Likewise.
495 * symfile-mem.c: Include "observer.h", "auxv.h", and "elf/common.h".
496 (symbol_file_add_from_memory): Take NAME argument. Use it for
497 the new BFD's filename.
498 (add_symbol_file_from_memory_command): Update call to
499 symbol_file_add_from_memory.
500 (struct symbol_file_add_from_memory_args, add_vsyscall_page)
501 (symbol_file_add_from_memory_wrapper): New.
502 (_initialize_symfile_mem): Register add_vsyscall_page as an
503 inferior_created observer.
504
505 2004-11-07 Mark Kettenis <kettenis@gnu.org>
506
507 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Rename from
508 fetch_inferior_registers. Make static.
509 (m68kbsd_store_inferior_registers): Rename from
510 store_inferior_registers. Make static.
511 (_initialize_m68kbsd_nat): Construct and add target vector.
512 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
513 inftarg.o. Add inf-ptrace.o.
514 (NAT_FILE): Set to tm-solib.h.
515 (LOADLIBES): New variable.
516 * config/m68k/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
517 inftarg.o. Add inf-ptrace.o.
518 (NAT_FILE): Delete variable.
519 * config/m68k/obsd.mh (NATDEPFILES): Remove infptrace.o and
520 inftarg.o. Add inf-ptrace.o.
521 (NAT_FILE): Set to tm-solib.h.
522 * config/m68k/nm-nbsdaout.h: Remove file.
523
524 2004-11-07 Daniel Jacobowitz <dan@debian.org>
525
526 * dwarf2-frame.c (struct dwarf2_frame_ops): Add signal_frame_p.
527 (dwarf2_frame_set_signal_frame_p, dwarf2_frame_signal_frame_p)
528 (dwarf2_signal_frame_unwind): New.
529 (dwarf2_frame_sniffer): Use dwarf2_frame_signal_frame_p.
530 * dwarf2-frame.h (dwarf2_frame_set_signal_frame_p): New prototype.
531
532 2004-11-07 Mark Kettenis <kettenis@gnu.org>
533
534 * Makefile.in (mips64obsd-tdep.o): Fix typo.
535
536 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Renamed
537 from mipsnbsd_ilp32_solib_svr4_fetch_link_map_offsets. Trim sizes
538 to only include the structure members we actually need.
539 (mipsnbsd_lp64_fetch_link_map_offsets): Renamed from
540 mipsnbsd_lp64_solib_svr4_fetch_link_map_offsets. Trim sizes to
541 only include the structure members we actually need.
542 (mipsnbsd_init_abi): Update.
543
544 * mips64obsd-nat.c: Include "mips-tdep.h".
545 (MIPS64OBSD_NUM_REGS): Remove define.
546 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM): New defines.
547 (mips64obsd_supply_gregset, mips64obsd_collect_gregset): Handle
548 floating-point registers correctly.
549 * Makefile.in (mips64obsd-nat.o): Update dependencies.
550
551 * mips64obsd-tdep.c: Include "trad-frame.h", "tramp-frame.h" and
552 "gdb_assert.h".
553 (mips64obsd_sigframe_init): New function.
554 (mips64obsd_sigframe): New variable.
555 (mips64obsd_init_abi): Add comments. Prepend mips64obsd_sigrame
556 unwinder.
557 * Makefile.in (mips64obsd-tdep.o): Update dependencies.
558
559 2004-11-06 Joel Brobecker <brobecker@gnat.com>
560
561 * alpha-mdebug-tdep.c: #include mdebugread.h.
562 Replace alpha_extra_func_info_t by struct mdebug_extra_func_info *.
563 * Makefile.in (alpha-mdebug-tdep.o): Add dependency on mdebugread.h.
564
565 2004-11-05 Andrew Cagney <cagney@gnu.org>
566
567 * dwarf2-frame.c (dwarf2_frame_cache): Only complain when both the
568 CFI and the init_reg method leave the register unspecified.
569 Include the register name in the "Incomplete CFI data" complaint.
570 Supress leading zeros in the address.
571
572 2004-11-05 Mark Kettenis <kettenis@gnu.org>
573
574 * dwarf2-frame.c (decode_frame_entry_1): Avoid indirection when
575 skipping a personality routine in a CIE augmentation.
576
577 2004-11-05 Jeff Johnston <jjohnstn@redhat.com>
578
579 * defs.h (fatal, vfatal): New function prototypes.
580 * stack.c (backtrace_command_stub): Stub to call backtrace_command_1
581 via catch_errors.
582 (backtrace_command): Change to call backtrace_command_stub via
583 catch_errors instead of calling backtrace_command_1 directly.
584 (backtrace_full_command): Ditto.
585 * utils.c (error_stream_1): New static function.
586 (verror): Change to call error_stream_1 instead of error_stream.
587 (error_stream): Call error_stream_1 with RETURN_ERROR argument.
588 (vfatal, fatal): New functions.
589
590 2004-11-05 Andrew Cagney <cagney@gnu.org>
591
592 * stack.c (parse_frame_specification_1): Clear selected_frame_p
593 when not using selected frame.
594
595 2004-11-05 Mark Kettenis <kettenis@jive.nl>
596
597 * dwarf2-frame.c (decode_frame_entry_1): Correctly skip
598 personality routine in a CIE augmentation.
599
600 2004-11-05 Felix Lee <felix+log1@specifixinc.com>
601
602 * stack.c (set_current_sal_from_frame): New function.
603 (print_args_stub): Use it.
604 (print_frame_info): Don't set sal here.
605
606 2004-11-04 Mark Kettenis <kettenis@gnu.org>
607
608 * dwarf2-frame.c (read_encoded_value): Change type of third
609 argument to `unsigned char *'. Add support for LEB128 encodings.
610
611 2004-11-04 Jim Blandy <jimb@redhat.com>
612
613 * gdbtypes.c (make_qualified_type): Doc fix. Add assertion to
614 prevent cross-objfile references.
615 (make_cv_type): Doc fix. Don't create cross-objfile references,
616 even for stub types.
617 (replace_type): Add assertion to prevent cross-objfile references.
618 (check_typedef): Never resolve a stub type by copying over a type
619 from another file.
620
621 2004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
622
623 * Makefile.in (m32r-tdep.o): Update dependencies.
624 * m32r-tdep.c (m32r_gdbarch_init): Call gdbarch_init_osabi for
625 ABI-specific overrides.
626
627 2004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
628
629 * m32r-tdep.c (m32r_memory_insert_breakpoint): Remove
630 unnecessary parallel execution bit.
631 (m32r_memory_remove_breakpoint): Ditto.
632 (m32r_breakpoint_from_pc): Update.
633
634 2004-11-03 Randolph Chung <tausq@debian.org>
635
636 * hppa-tdep.c (hppa_frame_cache): Use frame_pc_unwind instead of
637 frame_func_unwind to locate the unwind entry.
638 (hppa_frame_this_id): Likewise.
639
640 2004-11-03 Andrew Cagney <cagney@gnu.org>
641
642 * gdb/NEWS: Mention internationalization, m32r-*-linux-gnu, 'p'
643 packet, obsolete configurations, end-of-life deprecated_registers.
644
645 2004-11-02 Mark Kettenis <kettenis@gnu.org>
646
647 * dwarf2-frame.c (read_encoded_value): Set proper size for signed
648 encodings as well as unsigned encodings.
649
650 2004-11-02 Andrew Cagney <cagney@gnu.org>
651
652 * value.h (COERCE_VARYING_ARRAY): Delete.
653 * valops.c (value_cast, value_slice): Delete use.
654 * valarith.c (value_subscript, value_concat): Delete use.
655
656 2004-11-02 Paul Hilfinger <hilfingr@nile.gnat.com>
657
658 * NEWS: GDB understands GNAT Ada.
659
660 2004-11-01 Joseph S. Myers <joseph@codesourcery.com>
661
662 * Makefile.in (ALLDEPFILES): Add amd64-sol2-tdep.c.
663 (amd64-sol2-tdep.o): Add dependencies.
664 * amd64-sol2-tdep.c, config/i386/sol2-64.mh,
665 config/i386/sol2-64.mt: New files.
666 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offset,
667 amd64_sol2_gregset32_reg_offset, _initialize_amd64_sol2_nat): New.
668 (supply_gregset): Correct order of arguments to
669 amd64_supply_native_gregset.
670 (fill_gregset): Correct order of arguments to
671 amd64_collect_native_gregset.
672 * configure.host (i[34567]86-*-solaris2.1[0-9]*): Add new case.
673 * configure.tgt (i[34567]86-*-solaris2.1[0-9]*): Likewise.
674 * configure.in (*-*-solaris2.[[6789]]): Add *-*-solaris2.1[[0-9]]
675 for definition of NEW_PROC_API.
676 * configure: Regenerate.
677
678 2004-11-01 Joseph S. Myers <joseph@codesourcery.com>
679
680 * MAINTAINERS (Write After Approval): Add myself.
681
682 2004-11-01 Andrew Cagney <cagney@gnu.org>
683
684 * configure.tgt: Mark d10v-*-* as obsolete.
685 * config/d10v/d10v.mt, d10v-tdep.c: Obsolete files.
686
687 2004-11-01 Paul N. Hilfinger <Hilfinger@gnat.com>
688
689 * values.c (modify_field): Correct handling of bit-fields that
690 don't fit in 32 bits. Use unsigned operations throughout and
691 simplify the code a bit. Document preconditions.
692
693 2004-10-31 Andrew Cagney <cagney@gnu.org>
694
695 * config/pa/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
696 * config/tm-sysv4.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
697 (in_plt_section): Delete.
698
699 * mips-tdep.c (mips_in_solib_return_trampoline): Delete.
700 (mips_gdbarch_init): Do not set same.
701
702 * arch-utils.c (generic_in_solib_call_trampoline): Delete.
703 * arch-utils.h (generic_in_solib_call_trampoline): Delete.
704
705 * gdbarch.sh (in_solib_call_trampoline): Delete.
706 * gdbarch.h, gdbarch.c: Re-generate.
707
708 * hppa-tdep.c (hppa_stub_unwind_sniffer): Replace
709 IN_SOLIB_CALL_TRAMPOLINE with tdep.in_solib_call_trampoline.
710 * hppa-tdep.h (struct gdbarch_tdep): Add in_solib_call_trampoline.
711 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Set same.
712 * hppa-linux-tdep.c (hppa_linux_init_abi): Ditto.
713
714 2004-10-31 Mark Kettenis <kettenis@gnu.org>
715
716 * mipsnbsd-nat.c: Include "target.h" and "inf-ptrace.h".
717 (mipsnbsd_fetch_inferior_registers): Rename from
718 fetch_inferior_registers. Make static.
719 (mipsnbsd_store_inferior_registers): Rename from
720 store_inferior_registers. Make static.
721 (_initialize_mipsnbsd_nat): New function and prototype.
722 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
723 * config/mips/nbsd.mh (NAT_CLIBS, NAT_FILE): Remove variables.
724 (NATDEPFILES): Remove infptrace.o and inftarg.o. Add
725 inf-ptrace.o.
726
727 2004-10-31 Andrew Cagney <cagney@gnu.org>
728
729 * xstormy16-tdep.c (xstormy16_in_solib_call_trampoline)
730 (xstormy16_gdbarch_init): Do not set in_solib_call_trampoline,
731 delete corresponding unused function.
732 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Really do not set
733 in_solib_call_trampoline.
734 * config/arm/tm-embed.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
735 * config/powerpc/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
736 * config/mips/tm-nbsd.h: Ditto.
737 * config/arm/tm-linux.h: Ditto.
738 * config/mips/tm-linux.h: Ditto.
739
740 * armnbsd-tdep.c (arm_netbsd_aout_init_abi)
741 (arm_netbsd_aout_in_solib_call_trampoline): Do not set
742 in_solib_call_trampoline, delete corresponding unused function.
743 * vaxnbsd-tdep.c (vaxnbsd_aout_in_solib_call_trampoline)
744 (vaxnbsd_aout_init_abi): Ditto.
745 * sparcnbsd-tdep.c (sparcnbsd_aout_in_solib_call_trampoline)
746 (sparc32nbsd_aout_init_abi): Ditto.
747 * ppc-linux-tdep.c (ppc64_in_solib_call_trampoline)
748 (ppc_linux_init_abi): Ditto.
749 * ns32knbsd-tdep.c (ns32knbsd_aout_in_solib_call_trampoline)
750 (ns32knbsd_init_abi_aout): Ditto.
751 * mips-tdep.c (mips_in_call_stub, mips_gdbarch_init): Ditto.
752 * mips-linux-tdep.c (mips_linux_init_abi): Ditto.
753 * m68kbsd-tdep.c (m68kbsd_aout_in_solib_call_trampoline)
754 (m68kbsd_aout_init_abi): Ditto.
755 * i386-cygwin-tdep.c (i386_cygwin_in_solib_call_trampoline)
756 (i386_cygwin_init_abi): Ditto.
757 * i386bsd-tdep.c (i386bsd_aout_in_solib_call_trampoline)
758 (i386bsd_init_abi): Ditto.
759
760 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Do not set
761 in_solib_call_trampoline to in_plt_entry, IN_SOLIB_CALL_TRAMPOLINE
762 isn't used by this architecture.
763 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
764 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Ditto.
765 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Ditto.
766 * s390-tdep.c (s390_gdbarch_init): Ditto.
767 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
768 * m68klinux-tdep.c (m68k_linux_init_abi): Ditto.
769 * i386-tdep.c (i386_svr4_init_abi): Ditto.
770 * i386-nto-tdep.c (i386nto_init_abi): Ditto.
771 * arm-linux-tdep.c (arm_linux_init_abi): Ditto.
772 * amd64-tdep.c (amd64_init_abi): Ditto.
773
774 * vaxnbsd-tdep.c (vaxnbsd_elf_init_abi): Do not set
775 in_solib_call_trampoline to its default value of
776 generic_in_solib_call_trampoline.
777 * ppcobsd-tdep.c (ppcobsd_init_abi): Ditto.
778 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Ditto.
779 * i386obsd-tdep.c (i386obsd_elf_init_abi): Ditto.
780 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Ditto.
781 * i386fbsd-tdep.c (i386fbsd_init_abi): Ditto.
782 * hppabsd-tdep.c (hppabsd_init_abi): Ditto.
783
784 * mips-tdep.c (mips_dump_tdep): Don't print any of the macros.
785
786 * config/mips/obsd64.mt (DEPRECATED_TM_FILE): Delete.
787
788 * config/mips/tm-mips.h: Delete file.
789 * remote-mips.c: Delete tm-mips.h from comment.
790 * config/mips/embed.mt (DEPRECATED_TM_FILE): Delete.
791 * config/mips/tm-nbsd.h: Don't include tm-mips.h.
792 * config/mips/irix6.mt (DEPRECATED_TM_FILE): Delete.
793 * config/mips/tm-linux.h: Don't include tm-mips.h.
794 * config/mips/tm-vxmips.h: Don't include tm-mips.h.
795 * config/mips/irix5.mt (DEPRECATED_TM_FILE):
796 * config/mips/tm-wince.h: Don't include.
797
798 * mdebugread.h (MDEBUG_EFI_SYMBOL_NAME): Define.
799 * mdebugread.c (MDEBUG_EFI_SYMBOL_NAME): Delete.
800 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
801 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
802
803 * mdebugread.h (ecoff_relocate_efi): Delete declaration.
804 * mdebugread.c (ecoff_relocate_efi): Delete function.
805 * objfiles.c (objfile_relocate): Delete #ifdef
806 MDEBUG_EFI_SYMBOL_NAME code.
807
808 2004-10-31 Orjan Friberg <organ.friberg@axis.com>
809 Andrew Cagney <cagney@gnu.org>
810
811 * gdbarch.sh (single_step_through_delay): Add.
812 * gdbarch.h, gdbarch.c: Re-generate.
813 * config/mips/tm-mips.h (STEP_SKIPS_DELAY_P, STEP_SKIPS_DELAY)
814 (mips_step_skips_delay): Delete.
815 * mips-tdep.c (mips_single_step_through_delay): Replace
816 mips_step_skips_delay.
817 (mips_gdbarch_init): Set single_step_through_delay.
818 (mips_dump_tdep): Do not print STEP_SKIPS_DELAY.
819
820 2004-10-31 Mark Kettenis <kettenis@gnu.org>
821
822 * tramp-frame.c (tramp_frame_prepend_unwinder): Set unwinder type
823 from TRAMP_FRAME frame type.
824
825 2004-10-31 Andrew Cagney <cagney@gnu.org>
826
827 * mdebugread.c (parse_procedure): Wrap use of RA_REGNUM in #ifdef.
828
829 * mips-tdep.c (mips_ignore_helper): Delete.
830 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Delete.
831 * infrun.c (handle_inferior_event): Delete #ifdef
832 DEPRECATED_IGNORE_HELPER_CALL code.
833
834 * config/mips/tm-mips.h (RA_REGNUM): Delete.
835
836 2004-10-31 Mark Kettenis <kettenis@gnu.org>
837
838 * i386v4-nat.c (supply_gregset, supply_fpregset, fill_gregset)
839 (fill_fpregset): Do not compile for 64-bit systems.
840 * i386-sol2-nat.c: Don't include "i386v4-nat.c".
841 * Makefile.in (i386-sol2-nat.o): Update dependencies.
842 * config/i386/i386sol2.mh (NATDEPFILES): Add back i386v4-nat.c.
843
844 2004-10-30 Andrew Cagney <cagney@gnu.org>
845
846 * mdebugread.h: Include "coff/sym.h" and "coff/symconst.h".
847 (struct mdebug_extra_func_info): Define.
848 * config/alpha/tm-alpha.h: Delete same.
849 * config/mips/tm-mips.h: Delete same.
850 * mdebugread.c: Delete same.
851 * Makefile.in: Update dependencies.
852 * mips-mdebug-tdep.c: Include "mdebugread.h".
853
854 * objfiles.c: Include "mdebugread.h".
855 * mdebugread.c: Include "mdebugread.h".
856 (ecoff_relocate_cfi): Delete.
857 * config/alpha/tm-alpha.h (ecoff_relcate_cfi): Delete.
858 * config/mips/tm-mips.h (ecoff_relcate_cfi): Delete.
859 * mdebugread.h (ecoff_relocate_efi): New file.
860 * Makefile.in: Update dependencies.
861
862 * mips-tdep.c (struct frame_extra_info): Delete.
863 (temp_proc_desc): Delete.
864
865 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Rename
866 MIPS_EFI_SYMBOL_NAME.
867 (mips_extra_func_info_t, mips_extra_func_info): Delete.
868 (struct mdebug_extra_func_info): Replace struct
869 alpha_extra_func_info and alpha_extra_func_info_t.
870 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Rename
871 MIPS_EFI_SYMBOL_NAME.
872 (struct mdebug_extra_func_info): Replace struct
873 alpha_extra_func_info and alpha_extra_func_info_t.
874 * objfiles.c, mips-tdep.c, mips-mdebug-tdep.c: Update.
875 * mdebugread.c, alpha-mdebug-tdep.c:
876
877 Suggested by Mark Kettenis.
878 * config/mips/tm-mips.h (struct mips_extra_func_info): Delete
879 fields frame_adjust and high_addr.
880 * mips-mdebug-tdep.c (PROC_HIGH_ADDR, PROC_FRAME_ADJUST): Delete.
881 (non_heuristic_proc_desc): Delete references.
882
883 * mips-tdep.h (MIPS_PRID_REGNUM): Add.
884 * config/mips/tm-mips.h (PRID_REGNUM): Delete.
885 * mips-tdep.c: Update.
886
887 * mips-tdep.h (MIPS_FIRST_EMBED_REGNUM)
888 (MIPS_LAST_EMBED_REGNUM): Add.
889 * config/mips/tm-mips.h (FIRST_EMBED_REGNUM)
890 (LAST_EMBED_REGNUM): Delete.
891 * mipsv4-nat.c, mips-tdep.c, mips-linux-tdep.c: Update.
892
893 * config/mips/tm-mips.h (PS_REGNUM): Delete.
894 * mips-tdep.h (MIPS_PS_REGNUM): Add.
895 * remote-vxmips.c, mipsv4-nat.c, mips-tdep.c: Update.
896 * mips-linux-nat.c: Update.
897
898 * mips-tdep.h: Add comments on registers.
899 (MIPS_UNUSED_REGNUM): Define.
900 * config/mips/tm-mips.h (ZERO_REGNUM, UNUSED_REGNUM)
901 (T9_REGNUM, V0_REGNUM, A0_REGNUM): Delete.
902 * irix5-nat.c, mipsv4-nat.c, mips-linux-tdep.c: Update.
903 * mips-linux-nat.c, remote-mips.c: Update.
904
905 * config/mips/tm-mips.h (t_insn): Delete.
906 * mips-tdep.c (mips_fetch_instruction, mips_skip_trampoline_code):
907 Replace t_insn with ULONGEST.
908
909 2004-10-30 Mark Kettenis <kettenis@gnu.org>
910
911 * mipsnbsd-tdep.c: Include "regset.h" and "gdb_assert.h".
912 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM)
913 (MIPSNBSD_NUM_GREGS, MIPSNBSD_NUM_FPREGS): New defines.
914 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
915 (mipsnbsd_core_fns, mipsnbsd_elfcore_fns): Remove variables.
916 (mipsnbsd_core_osabi_sniffer): New function.
917 (mipsnbsd_init_abi): Set regset_from_core_section.
918 (_initialize_mipsnbsd_tdep): Remove calls to
919 deprecated_add_core_fns.
920 (mipsnbsd_supply_fpregset, mipsnbsd_supply_gregset)
921 (mipsnbsd_regset_from_core_section): New functions.
922 (mipsnbsd_gregset, mipsnbsd_fpregset): New variables.
923 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
924
925 * procfs.c (procfs_fetch_registers, procfs_store_registers): Like
926 Remove optimization for DEPRECATED_FP_REGNUM.
927
928 2004-10-30 Andrew Cagney <cagney@gnu.org>
929
930 * alpha-tdep.c (alpha_setup_arbitrary_frame): Delete.
931 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Delete.
932 (alpha_setup_arbitrary_frame): Delete.
933 * mips-tdep.c (setup_arbitrary_frame): Delete.
934 * config/mips/tm-mips.h (SETUP_ARBITRARY_FRAME): Delete.
935 (setup_arbitrary_frame): Delete.
936 * stack.c (parse_frame_specification_1): When specified, call
937 create_new_frame with two parameters. Delete #ifdef
938 SETUP_ARBITRARY_FRAME.
939
940 * config/mips/tm-mips.h (MIPS16_INSTLEN, MIPS_NUMREGS)
941 (MIPS_INSTLEN): Delete.
942 * mips-tdep.h (enum mips_insn_size): Rename MIPS32_INSN_SIZE and
943 MIPS16_INSN_SIZE to MIPS_INSN32_SIZE and MIPS_INSN16_SIZE.
944 * remote-mips.c, mips-tdep.c: Update.
945
946 * config/mips/embed.mt (TDEPFILES): Add mips-mdebug-tdep.o.
947 * mips-mdebug-tdep.h, mips-mdebug-tdep.c: New files.
948 * mips-tdep.c (mips_mdebug_frame_cache)
949 (mips_mdebug_frame_this_id, mips_mdebug_frame_prev_register)
950 (mips_mdebug_frame_unwind, mips_mdebug_frame_sniffer)
951 (mips_mdebug_frame_base_address, mips_mdebug_frame_sniffer)
952 (mips_mdebug_frame_base_sniffer, non_heuristic_proc_desc)
953 (compare_pdr_entries, the_bfd, mips16_fetch_instruction): Delete.
954 (mips_gdbarch_init): Do not append mdebug sniffers.
955 (PROC_LOW_ADDR, PROC_HIGH_ADDR, PROC_FRAME_OFFSET)
956 (PROC_FRAME_REG, PROC_FRAME_ADJUST, PROC_REG_MASK)
957 (PROC_FREG_MASK, PROC_REG_OFFSET, PROC_FREG_OFFSET, PROC_PC_REG)
958 (PROC_SYMBOL, _PROC_MAGIC_): Delete.
959 * Makefile.in: Update dependencies.
960
961 * mips-tdep.h (mips_abi_regsize): Declare.
962 * mips-tdep.c (mips_abi_regsize): Make non-static.
963
964 * mips-tdep.c (gdb_print_insn_mips): Simplify.
965 (make_mips16_addr): Delete.
966
967 2004-10-30 Mark Kettenis <kettenis@gnu.org>
968
969 * i386-sol2-nat.c: New file.
970 * Makefile.in (ALLDEPFILES): Add i386-sol2-nat.c and
971 i386-sol2-tdep.c.
972 (i386-sol2-nat.o): Update dependencies.
973 * config/i386/i386sol2.mh (NATDEPFILES): Remove i386v4.o, add
974 i386-sol2-nat.o.
975
976 2004-10-30 Andrew Cagney <cagney@gnu.org>
977
978 Total breakage identified by Joel Brobecker.
979 * mips-tdep.c (after_prologue): Delete.
980 (mips_skip_prologue): Use skip_prologue_using_sal.
981 (heuristic_proc_desc): Delete, unused.
982
983 2004-10-30 Mark Kettenis <kettenis@gnu.org>
984
985 * procfs.c (proc_get_gregs, proc_get_fpregs, proc_set_gregs)
986 (proc_set_fpregs, procfs_fetch_registers, procfs_store_registers):
987 Cleanup coding style.
988
989 2004-10-30 Andrew Cagney <cagney@gnu.org>
990
991 * mips-tdep.h (mips_pc_is_mips16): Declare.
992 * mips-tdep.c (mips_pc_is_mips16): Rename pc_is_mips16, make
993 non-static. Update calls.
994
995 * cli/cli-decode.c (add_setshow_enum_cmd): New function.
996 * command.h (add_setshow_enum_cmd): Declare.
997 * mips-tdep.c (_initialize_mips_tdep): Use add_setshow_enum_cmd.
998
999 * mips-tdep.c (_initialize_mips_tdep): Use
1000 add_setshow_zinteger_cmd.
1001
1002 * mips-tdep.c (mips_eabi_extract_return_value)
1003 (mips_o64_extract_return_value, mips_o64_store_return_value)
1004 (return_value_location, mips_eabi_reg_struct_has_addr)
1005 (mips_eabi_use_struct_convention)
1006 (mips_eabi_store_return_value): Delete.
1007 (mips_eabi_store_return_value): New function.
1008 (mips_eabi_return_value): New function.
1009 (mips_gdbarch_init): For O64 and EABI, delete
1010 extract_return_value, store_return_value, use_struct_convention
1011 and reg_struct_has_addr, add return_value.
1012
1013 * mips-tdep.c (read_signed_register): Use
1014 regcache_cooked_read_signed.
1015
1016 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1017
1018 * mipsread.c: Cleanup coding style.
1019 (mipscoff_new_init, mipscoff_symfile_init, mipscoff_symfile_read)
1020 (mipscoff_symfile_finish): Remove prototypes.
1021
1022 2004-10-29 Mark Kettenis <kettenis@gnu.org>
1023
1024 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
1025 (mips_mdebug_frame_cache, mips16_scan_prologue)
1026 (mips32_scan_prologue, mips_stub_frame_cache)
1027 (heuristic_proc_start, heuristic_proc_desc)
1028 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
1029 (mips_n32n64_return_value, mips_o32_push_dummy_call)
1030 (mips_o32_return_value, mips_o64_push_dummy_call)
1031 (mips_step_skips_delay, mips_skip_trampoline_code)
1032 (mips_gdbarch_init): Use MIPS_A0_REGNUM instead of A0_REGNUM,
1033 MIPS_RA_REGNUM instead of RA_REGNUM, MIPS_T9_REGNUM instead of
1034 T9_REGNUM, MIPS_V0_REGNUM instead of V0_REGNUM, MIPS_ZERO_REGNUM
1035 instead of ZERO_REGNUM, MIPS32_SIZE_INSN instead of MIPS_INSTLEN
1036 and MIPS16_INSN_SIZE instead of MIPS16_INSTLEN.
1037 (mips_dump_tdep): Don't print A0_REGNUM, RA_REGNUM,
1038 T9_REGNUM, V0_REGNUM, ZERO_REGNUM, MIPS_INSTLEN and
1039 MIPS16_INSTLEN. Use MIPS_A0_REGNUM instead of A0_REGNUM.
1040 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
1041 (mips_linux_n32n64_sigframe_init): Use MIPS_ZERO_REGNUM instead of
1042 ZERO_REGNUM.
1043 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
1044 (mipsnbsd_cannot_store_register): Use MIPS_ZERO_REGNUM instead of
1045 ZERO_REGNUM.
1046 (mipsnbsd_get_longjmp_target): Use MIPS_A0_REGNUM instead of
1047 A0_REGNUM.
1048 * mipsnbsd-nat.c: Include "mips-tdep.h".
1049 (getregs_supplies): Use MIPS_ZERO_REGNUM instead of ZERO_REGNUM.
1050 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
1051
1052 2004-10-29 Andrew Cagney <cagney@gnu.org>
1053
1054 * stack.c (parse_frame_specification_1): New function based on
1055 parse_frame_specification. Add message and selected_frame_p
1056 paramters. Truely always return non-NULL.
1057 (parse_frame_specification): Call parse_frame_specification_1.
1058 (frame_info): Update. Eliminate target_has_stack check.
1059 (select_frame_command): Update.
1060
1061 2004-10-29 Andrew Cagney <cagney@gnu.org>
1062
1063 * frame.h (get_selected_frame): Add message parameter.
1064 * frame.c (get_selected_frame): Add and use message parameter.
1065 * stack.c (current_frame_command, return_command, locals_info)
1066 (catch_info, args_info, up_silently_base, down_silently_base): Use
1067 get_selected_frame with an explicit message.
1068 * thread.c, stack.c, sh-tdep.c, sh64-tdep.c: Update.
1069 * remote-rdp.c, remote-mips.c, remote-e7000.c: Update.
1070 * ocd.c, mi/mi-main.c, mi/mi-cmd-stack.c: Update.
1071 * infrun.c, inflow.c, infcmd.c, frame.c: Update.
1072 * findvar.c, eval.c, corelow.c, bsd-kvm.c: Update.
1073 * breakpoint.c: Update.
1074
1075 2004-10-29 Andrew Cagney <cagney@gnu.org>
1076
1077 * trad-frame.c (trad_frame_get_prev_register): Use
1078 frame_unwind_register instead of frame_register_unwind, do not
1079 recurse the register's location.
1080 * xstormy16-tdep.c (xstormy16_frame_prev_register):
1081 * sparc-tdep.c (sparc32_frame_prev_register): Ditto.
1082 * sparc64-tdep.c (sparc64_frame_prev_register): Ditto.
1083 * sh-tdep.c (sh_frame_prev_register): Ditto.
1084 * m68k-tdep.c (m68k_frame_prev_register): Ditto.
1085 * i386-tdep.c (i386_frame_prev_register): Ditto.
1086 * dwarf2-frame.c (dwarf2_frame_prev_register): Ditto.
1087 * amd64-tdep.c (amd64_frame_prev_register): Ditto.
1088
1089 2004-10-28 Mark Kettenis <kettenis@jive.nl>
1090
1091 * proc-events.c: Fix several coding-style issues. Consistently
1092 use #ifdef instead of #if defined().
1093 (proc_prettyfprint_fault, proc_prettyfprint_faultset): Use
1094 ARRAY_SIZE.
1095 (_initialize_proc_events): New prototype.
1096
1097 * proc-why.c: Fix several coding-style issues.
1098 (proc_prettyfprint_why): Use ARRAY_SIZE.
1099
1100 2004-10-27 Jim Blandy <jimb@redhat.com>
1101
1102 * remote.c (fetch_register_using_p): Construct 'p' packet in a
1103 manner independent of the host byte order.
1104
1105 2004-10-27 Mark Kettenis <kettenis@gnu.org>
1106
1107 * mips-tdep.c (id_delayed): Remove prototype.
1108
1109 2004-10-26 Mark Kettenis <kettenis@gnu.org>
1110
1111 * mips-tdep.h: Add MIPS_ZERO_REGNUM, MIPS_AT_REGNUM,
1112 MIPS_V0_REGNUM. MIPS_A0_REGNUM, MIPS_T9_REGNUM and MIPS_RA_REGNUM
1113 to enum with register numbers.
1114 (enum mips_insn_size): New enum.
1115
1116 2004-10-26 Andrew Cagney <cagney@gnu.org>
1117
1118 * config/mips/tm-linux.h: Delete #undef SKIP_TRAMPOLINE_CODE.
1119 * mips-tdep.c (mips_skip_trampoline_code): Rename mips_skip_stub.
1120 (mips_gdbarch_init): Update.
1121 (mips_dump_tdep): Do not print SKIP_TRAMPOLINE_CODE.
1122
1123 * config/arm/tm-linux.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1124 * config/mips/tm-nbsd.h, config/mips/tm-linux.h: Delete #undef
1125 IN_SOLIB_RETURN_TRAMPOLINE.
1126 * mips-tdep.c (mips_dump_tdep): Do not print
1127 IN_SOLIB_RETURN_TRAMPOLINE.
1128 (mips_in_solib_return_trampoline): Rename mips_in_return_stub.
1129 (mips_gdbarch_init): Update.
1130
1131 * mips-tdep.h (mips_software_single_step): Move to here ...
1132 * config/mips/tm-mips.h: ... from here.
1133 * config/mips/tm-linux.h (SOFTWARE_SINGLE_STEP_P)
1134 (SOFTWARE_SINGLE_STEP): Delete.
1135 * mips-linux-tdep.c (mips_linux_init_abi): Set software_single_step.
1136
1137 2004-10-25 Andrew Cagney <cagney@gnu.org>
1138
1139 * NEWS: Add Changes since GDB 6.3 section.
1140
1141 2004-10-23 Andreas Schwab <schwab@suse.de>
1142
1143 * ada-lang.c (grow_vect): Return the new array instead of
1144 expecting pointer to pointer to avoid violation of aliasing rules.
1145 * ada-lang.h (GROW_VECT): Adapt call to grow_vect.
1146
1147 2004-10-23 Ulrich Weigand <uweigand@de.ibm.com>
1148
1149 * s390-tdep.c (enum pv_boolean): Remove.
1150 (pv_is_array_ref): Remove.
1151 (s390_on_stack): Remove.
1152 (S390_NUM_SPILL_SLOTS): Remove.
1153 (struct s390_prologue_data): Remove members 'spill' and 'back_chain',
1154 add members 'gpr_slot', 'fpr_slot', and 'back_chain_saved_p'.
1155 (s390_store): Track all stores of orginal incoming registers to the
1156 stack constant offsets relative to the CFA, instead of only tracking
1157 stores into specific spill slots.
1158 (s390_load): Likewise.
1159 (s390_analyze_prologue): Adapt to struct s390_prologue_data changes.
1160 (s390_prologue_frame_unwind_cache): Likewise. Only track registers
1161 defined as call-saved by the ABI.
1162 (s390_push_dummy_call): Use bottom of dummy call argument save area
1163 as return value, not the top. Do not store to the called function's
1164 register save area.
1165 (s390_unwind_dummy_id): Adapt accordingly.
1166
1167 2004-10-23 Andrew Cagney <cagney@gnu.org>
1168
1169 * objfiles.h (struct objfile): Rename obj_private to
1170 deprecated_obj_private, sym_private to deprecated_sym_private, and
1171 sym_stab_info to deprecated_sym_stab_info.
1172 * gdb-stabs.h: Update.
1173 * elfread.c: Update.
1174 * dbxread.c: Update.
1175 * coffread.c: Update.
1176 * xcoffread.c: Update.
1177 * symfile.c: Update.
1178 * somread.c: Update.
1179 * nlmread.c: Update.
1180 * mdebugread.c: Update.
1181 * hpread.c: Update.
1182 * coffread.c: Update.
1183
1184 2004-10-23 Mark Kettenis <kettenis@gnu.org>
1185
1186 * mips64obsd-nat.c, mips64obsd-tdep.c: New files.
1187 * configure.host: Add mips64*-*-openbsd*.
1188 * configure.tgt: Add mips64*-*-openbsd*.
1189 * Makefile.in (ALLDEPFILES): Add mips64obsd-nat.o,
1190 mips64obsd-tdep.c.
1191 (mips64obsd-nat.o, mips64obsd-tdep.o): New dependecies.
1192 * config/mips/obsd64.mh, config/mips/obsd64.mt: New files.
1193
1194 2004-10-21 Joel Brobecker <brobecker@gnat.com>
1195
1196 * symtab.c (symbol_search_name): Minor reformatting.
1197
1198 2004-10-20 Joel Brobecker <brobecker@gnat.com>
1199
1200 * symtab.h: Fix typo in comment.
1201
1202 2004-10-19 Mark Kettenis <kettenis@gnu.org>
1203
1204 * dwarf2read.c (struct comp_unit_head): Fix coding style.
1205 (dwarf_decode_line_header): Likewise.
1206
1207 2004-10-19 Michael Chastain <mec.gnu@mindspring.com>
1208
1209 * NEWS: GDB works with GCC -feliminate-dwarf2-dups.
1210
1211 2004-10-19 Andrew Cagney <cagney@gnu.org>
1212
1213 GDB 6.3 branch created.
1214 * version.in: Bump to version 6.3.50_2004-10-19-cvs.
1215
1216 2004-10-15 Joel Brobecker <brobecker@gnat.com>
1217
1218 * dwarf2read.c (set_cu_language): Set language to Ada for
1219 DW_LANG_Ada83 and DW_LANG_Ada95.
1220
1221 2004-10-15 Michael Chastain <mec.gnu@mindspring.com>
1222
1223 From Andreas Schwab <schwab@suse.de>:
1224 * Makefile.in (.y.c, .l.c.): Fix the substitutions for
1225 for xmalloc and xrealloc.
1226
1227 2004-10-15 Andrew Cagney <cagney@gnu.org>
1228
1229 * ada-exp.y, ada-lex.l: Use xmalloc and xrealloc through out.
1230 * inf-ptrace.c: Include "gdb_wait.h" instead of <wait.h>.
1231 * Makefile.in (.y.c, .l.c): Don't replace xmalloc with xxmalloc.
1232 Update dependencies.
1233
1234 2004-10-15 Paul Hilfinger <Hilfinger@gnat.com>
1235
1236 * ada-lang.c (ada_lookup_symbol): Correct comment.
1237 (ada_evaluate_subexp): Change error message for
1238 OP_FUNCALL case so as not to indicate an internal error.
1239
1240 2004-10-15 Joel Brobecker <brobecker@gnat.com>
1241
1242 Committed by Paul Hilfinger.
1243 * ada-lang.c (ada_template_to_fixed_record_type_1): Detect bogus
1244 type sizes in XVE/XVU types, and emit a warning when that happens,
1245 instead of rounding up the size of the resulting type.
1246 Some minor reformatting.
1247 (ada_is_aligner_type): Do not consider a type as an aligner type
1248 if there is a corresponding XVS type as well.
1249 (ada_evaluate_subexp): For TERNOP_SLICE, handle cases where we
1250 have several levels of pointer indirection to the array.
1251
1252 2004-10-15 Jerome Guitton <guitton@gnat.com>
1253
1254 Committed by Paul Hilfinger.
1255 * ada-lang.c (check_size): New function.
1256 (coerce_unspec_val_to_type): call check_size to make sure
1257 that the object size is reasonable.
1258 (ada_evaluate_subexp): in UNOP_IND: Ditto. In TERNOP_SLICE:
1259 Implements the case when we get a reference when we evaluate
1260 the expression of one of the bounds of the slice.
1261 (ada_value_struct_elt): when a packed array field is
1262 a reference, use ada_coerce_ref to dereference it; use
1263 ada_value_ind only if it is a pointer.
1264
1265 2004-10-15 Joel Brobecker <brobecker@gnat.com>
1266
1267 * mips-tdep.c (mips32_scan_prologue): Move the implementation up
1268 a bit to avoid the necessity of an advance declaration. Remove
1269 declaration.
1270 (set_reg_offset): Move implemenation up.
1271 (mips16_get_imm): Likewise.
1272 (mips16_scan_prologue): Likewise.
1273 (reset_saved_regs): Likewise.
1274 (mips32_scan_prologue): Likewise.
1275
1276 2004-10-14 Joel Brobecker <brobecker@gnat.com>
1277
1278 * mips-tdep.c (mips32_scan_prologue): Add advance declaration.
1279 Remove sp as a parameter, compute it internally instead. Move
1280 prologue scanning limit from heuristic_proc_desc to here.
1281 (mips16_scan_prologue): Likewise.
1282 (mips_insn16_frame_cache): Replace call to heuristic_proc_desc
1283 by call to mips16_scan_prologue.
1284 (mips_insn32_frame_cache): Replace call to heuristic_proc_desc
1285 by call to mips32_scan_prologue.
1286 (heuristic_proc_desc): Remove code that's no longer necessary.
1287 Update calls to mips16_scan_prologue and mips32_scan_prologue.
1288 (mips_skip_prologue): Update calls to mips16_scan_prologue
1289 and mips32_scan_prologue.
1290
1291 2004-10-14 Joel Brobecker <brobecker@gnat.com>
1292
1293 * mips-tdep.c (mips16_scan_prologue): Merge code from
1294 mips16_skip_prologue. Now return the address of the first
1295 instruction past the function prologue.
1296 (mips16_skip_prologue): Remove, no longer necessary.
1297 (mips_skip_prologue): Replace call to mips16_skip_prologue
1298 by call to mips16_scan_prologue.
1299
1300 2004-10-14 Joel Brobecker <brobecker@gnat.com>
1301
1302 * mips-tdep.c (mips32_scan_prologue): Merge code from
1303 mips32_skip_prologue. Now return the address of the first
1304 instruction past the function prologue.
1305 (mips32_skip_prologue): Remove. No longer necessary.
1306 (mips16_skip_prologue): Add parameter end_pc instead of
1307 computing it.
1308 (mips_skip_prologue): Compute the upper limit for the
1309 prologue scanning. Update call to mips16_skip_prologue.
1310 Replace call to mips32_skip_prologue by call to
1311 mips32_scan_prologue.
1312
1313 2004-10-14 Mark Kettenis <kettenis@gnu.org>
1314
1315 * hppa-tdep.c (hppa_frame_cache): Add support for OpenBSD and
1316 NetBSD system call stubs that store %rp in the ERP slot of the
1317 stack frame.
1318
1319 * source.c: Always define O_BINARY to 0 if not defined already.
1320 (openp): Unconditionally use O_BINARY.
1321
1322 * top.c (gdb_readline): Always accept "\r\n" as a line-ending.
1323 * event-top.c (gdb_readline2): Likewise.
1324
1325 2004-10-14 Orjan Friberg <orjanf@axis.com>
1326
1327 * cris-tdep.c (_initialize_cris_tdep): Re-add call to
1328 deprecated_add_core_fns which was removed by mistake.
1329
1330 2004-10-13 Kevin Buettner <kevinb@redhat.com>
1331
1332 * ia64-linux-nat.c (fill_gregset, fill_fpregset): Replace
1333 references to deprecated_registers[] with equivalent code.
1334
1335 2004-10-13 Kevin Buettner <kevinb@redhat.com>
1336
1337 * rs6000-tdep.c (rs6000_push_dummy_call): Replace references to
1338 ``deprecated_registers'' with equivalent code. Use gdb_assert()
1339 instead of explicit test and print statement.
1340
1341 2004-10-12 Mark Kettenis <kettenis@gnu.org>
1342
1343 * sparc-nat.c: Include "inf-ptrace.h".
1344 (sparc_target): New function.
1345 * sparc-nat.h: Update copyright year.
1346 (sparc_target): New prototype.
1347 * sparcnbsd-nat.c: Don't include "gdbcore.h", include "target.h".
1348 (_initialize_sparcnbsd_nat): Construct and add target vector.
1349 * sparc64nbsd-nat.c: Include "target.h".
1350 (_initialize_sparc64nbsd_nat): Construct and add target vector.
1351 * Makefile.in (sparc-nat.o, sparcnbsd-nat.o, sparc64nbsd-nat.o):
1352 Update dependencies.
1353 * config/sparc/nbsd64.mh (NATDEPFILES): Remove infptrace.o and
1354 inftarg.o, add inf-ptrace.o.
1355 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1356 inftarg.o, add inf-ptrace.o and bsd-kvm.o.
1357 (NAT_FILE): Set to nm-bsd.h.
1358 (LOADLIBES): New variable.
1359 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
1360 infarg.o, add inf-ptrace.o.
1361 * config/sparc/nm-nbsdaout.h: Remove file.
1362 * config/sparc/fbsd.mh (NATDEPFILES): Add inf-ptrace.o.
1363 * config/sparc/linux.mh (NATDEPFILES): Add inf-ptrace.o.
1364 * config/sparc/linux64.mh (NATDEPFILES): Add inf-ptrace.o.
1365
1366 * defs.h [!FOPEN_RB]: Include "fopen-bin.h" instead of
1367 "fopen-same.h". Update comment.
1368
1369 2004-10-11 Mark Kettenis <kettenis@gnu.org>
1370
1371 * i386gnu-nat.c: Include "gdb_string.h".
1372 (fetch_fpregs): Use i387_supply_fxsave to fill the floating-point
1373 registers when the floating-point state isn't initialized.
1374 * Makefile.in (i386gnu-nat.o): Update dependencies.
1375
1376 2004-10-11 David Anderson <davea@sgi.com>
1377
1378 * regcache.c (regcache_raw_read): Comment was missing "to".
1379 Extraneous ' removed.
1380 * gdb_thread_db.h (struct td_thrinfo): ti_lid field
1381 comment now describes use.
1382
1383 2004-10-11 Orjan Friberg <orjanf@axis.com>
1384
1385 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start)
1386 (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
1387 (cris_sigtramp_frame_this_id, cris_sigtramp_frame_prev_register)
1388 (cris_sigtramp_frame_sniffer): New functions.
1389 (cris_gdbarch_init): Hook in signal trampoline unwinder.
1390 (cris_dwarf2_reg_to_regnum, cris_dwarf2_frame_init_reg): New functions.
1391 (cris_gdbarch_init): Hook in Dwarf-2 unwinder.
1392 (struct gdbarch_tdep, set_cris_dwarf2_cfi, cris_dump_tdep)
1393 (cris_gdbarch_init, _initialize_cris_tdep): Add CRIS Dwarf-2 CFI usage
1394 command.
1395 (cris_version_update): Remove, replace with ...
1396 (set_cris_version): New function.
1397 (struct gdbarch_tdep, cris_mode, cris_mode_update)
1398 (cris_cannot_store_register, cris_dump_tdep, cris_gdbarch_init)
1399 (_initialize_cris_tdep): Remove CRIS mode command.
1400 (cris_fpless_backtrace, _initialize_cris_tdep): Remove
1401 cris-fpless-backtrace command.
1402 (cris_scan_prologue): Fix prologue scanning limit.
1403 (cris_register_type): Update to reflect actual registers.
1404 (cris_register_bytes_ok) Remove.
1405 (cris_gdbarch_init): Remove support for CRIS v8 and v9.
1406 Remove set_gdbarch_deprecated_register_size,
1407 set_gdbarch_deprecated_register_byte, set_gdbarch_register_bytes_ok.
1408
1409 2004-10-10 Andrew Cagney <cagney@gnu.org>
1410
1411 * ada-lang.c (lim_warning): Add ATTR_FORMAT prototype and FIXME
1412 comment.
1413
1414 2004-10-10 Joel Brobecker <brobecker@gnat.com>
1415
1416 * mips-tdep.c (mips16_scan_prologue): Remove redundant code.
1417
1418 2004-10-10 Joel Brobecker <brobecker@gnat.com>
1419
1420 * mips-tdep.c (mips16_scan_prologue): Renames
1421 mips16_heuristic_proc_desc. Update comment.
1422 (mips32_scan_prologue): Renames mips32_heuristic_proc_desc.
1423 (heuristic_proc_desc): Update calls to the 2 functions above.
1424
1425 2004-10-10 Joel Brobecker <brobecker@gnat.com>
1426
1427 * mips-tdep.c (mips_insn16_frame_cache): Remove unused variables.
1428 Update comments. Also immediately return empty cache when the start
1429 address of our function could not be found.
1430 (mips_insn32_frame_cache): Likewise.
1431
1432 2004-10-10 Joel Brobecker <brobecker@gnat.com>
1433
1434 * mips-tdep.c (mips16_decode_reg_save): Delete, no longer used.
1435 (mips_insn16_frame_cache): Pass frame cache in call to
1436 heuristic_proc_desc. Move some code to mips16_heuristic_proc_desc.
1437 Remove code that became redundant as a consequence.
1438 (mips32_heuristic_proc_desc): No longer compute a fake
1439 procedure descriptor. Compute the full frame cache instead.
1440 Some minor comment reformatting.
1441
1442 2004-10-10 Jim Blandy <jimb@redhat.com>
1443
1444 * MAINTAINERS (generic symtabs, dwarf readers, elf reader, stabs
1445 reader, tracing bytecode stuff): Remove self.
1446
1447 2004-10-10 Mark Kettenis <kettenis@gnu.org>
1448
1449 * sparc64-linux-tdep.c: Update copyright year. Don't include
1450 "solib-svr4.h".
1451 (sparc64_linux_svr4_fetch_link_map_offsets): Remove function.
1452 (sparc64_linux_init_abi): Don't set solib_svr4_link_map_offsets.
1453 * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
1454
1455 * sparc-linux-tdep.c: Update copyright year.
1456 (sparc_linux_sigtramp_start): Change first argument from CORE_ADDR
1457 to struct frame_info *. Use safe_frame_unwind_memory instead of
1458 deprecated_read_memory_nobpt.
1459 (sparc32_linux_sigtramp_start, sparc32_linux_rt_sigtramp_start):
1460 Change argumen from CORE_ADDR to struct frame_info *. Adjust for
1461 changed signature of sparc_linux_sigtramp_start.
1462 (sparc32_linux_pc_in_sigtramp): Remove function.
1463 (sparc32_linux_sigtramp_p): New function.
1464 (sparc32_linux_sigtramp_frame_sniffer): Use
1465 sparc32_linux_sigtramp_p instead of sparc32_linux_pc_in_sigtramp.
1466
1467 * sparc-linux-tdep.c (sparc32_linux_svr4_fetch_link_map_offsets):
1468 Remove function.
1469 (sparc32_linux_init_abi): Don't set solib_svr4_link_map_offsets.
1470
1471 * ada-lang.c (lim_warning): Re-implement as a varargs function.
1472 (decode_packed_array_type, value_subscript_packed)
1473 (ada_evaluate_subexp, to_fixed_range_type): Remove redundant
1474 argument in call to lim_warning.
1475
1476 * configure.in: Really disable the TUI if an enhanced curses
1477 library isn't found.
1478 * configure: Regenerate.
1479
1480 2004-10-09 Mark Kettenis <kettenis@gnu.org>
1481
1482 * config/i386/nbsdaout.mh (NAT_FILE): Set to solib.h.
1483 * config/i386/nbsdelf.mh (NAT_FILE): Set to solib.h.
1484 * config/i386/nm-nbsdaout.h: Remove file.
1485 * config/i386/nm-fbsd.h (link_object, lo_name, lo_library)
1486 (lo_unused, lo_major, lo_minor, lo_next, link_map, lm_addr)
1487 (lm_name, lm_next, lm_lop, lm_lob, lm_rwt, lm_ld, lm_lpd)
1488 (link_dynamic_2, ld_loaded, ld_need, ld_rules, ld_got, ld_plt)
1489 (ld_rel, ld_hash, ld_stab, ld_stab_hash, ld_buckets, ld_symbols)
1490 (ld_symb_size, ld_text, ld_plt_sz, rtc_symb, rtc_sp, rtc_next)
1491 (ld_debug, ldd_version, ldd_in_debugger, ldd_sym_loaded)
1492 (ldd_bp_addr, ldd_bp_inst, ldd_cp, link_dynamic, ld_version)
1493 (ldd, ld_un, ld_2): Remove defines.
1494 * config/i386/nm-obsd.h: Likewise.
1495
1496 2004-10-09 Paul Hilfinger <hilfingr@nile.gnat.com>
1497
1498 * ada-lex.l: Remove useless rule whose right-context clause
1499 causes unreferenced static function warning for yyrealloc.
1500 (ada_flex_use): Remove the artificial reference to yyrealloc.
1501
1502 2004-10-08 Andrew Cagney <cagney@gnu.org>
1503
1504 * target.h (struct target_ops): Rename to_xfer_memory to
1505 deprecated_xfer_memory.
1506 * target.c: Update.
1507 (deprecated_debug_xfer_memory): Rename debug_to_xfer_memory.
1508 * wince.c: Update.
1509 * win32-nat.c: Update.
1510 * v850ice.c: Update.
1511 * uw-thread.c: Update.
1512 * thread-db.c: Update.
1513 * sol-thread.c: Update.
1514 * remote.c: Update.
1515 * remote-vx.c: Update.
1516 * remote-st.c: Update.
1517 * remote-sim.c: Update.
1518 * remote-sds.c: Update.
1519 * remote-rdp.c: Update.
1520 * remote-rdi.c: Update.
1521 * remote-mips.c: Update.
1522 * remote-m32r-sdi.c: Update.
1523 * remote-e7000.c: Update.
1524 * procfs.c: Update.
1525 * ppc-bdm.c: Update.
1526 * nto-procfs.c: Update.
1527 * monitor.c: Update.
1528 * linux-nat.c: Update.
1529 * inftarg.c: Update.
1530 * hpux-thread.c: Update.
1531 * go32-nat.c: Update.
1532 * gnu-nat.c: Update.
1533 * exec.c: Update.
1534 * corelow.c: Update.
1535 * bsd-kvm.c: Update.
1536 * aix-thread.c: Update.
1537
1538 2004-10-08 Andrew Cagney <cagney@gnu.org>
1539
1540 * target.c (debug_target): Move to near start of file.
1541 (target_stopped_data_address_p): Re-org logic, add casts.
1542
1543 2004-10-02 Mark Kettenis <kettenis@gnu.org>
1544
1545 * solib-sunos.c [HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS] (link_map)
1546 (lm_addr, lm_name, lm_next, link_dynamic_2, ld_loaded, rtc_symb)
1547 (rtc_sp, rtc_next, ld_debug, ldd_in_debugger, ldd_bp_addr)
1548 (ldd_bp_inst, ldd_cp, link_dynamic, ld_version, ldd, ld_un, ld_2):
1549 New defines.
1550
1551 2004-10-08 Jeff Johnston <jjohnstn@redhat.com>
1552
1553 * target.h (to_stopped_data_address): Change prototype to
1554 take a CORE_ADDR pointer and return an int.
1555 * target.c (update_current_target): Change to_stopped_data_address
1556 to match new prototype.
1557 (debug_to_stopped_data_address): Change appropriately.
1558 * breakpoint.c (bpstat_stop_status): Change call to
1559 target_stopped_data_address to use new prototype.
1560 * frv-tdep.c (frv_have_stopped_data_address): New function.
1561 (frv_stopped_data_address): Change to new prototype and
1562 functionality.
1563 * ia64-linux-nat.c (ia64_stopped_data_address): Change to new
1564 prototype and functionality.
1565 (ia64_stopped_by_watchpoint): New function.
1566 * i386-nat.c (i386_stopped_data_address): Change to new
1567 prototype and functionality.
1568 (i386_stopped_by_watchpoint): New function.
1569 * remote.c (remote_stopped_data_address): Change to new prototype
1570 and functionality.
1571 * remote-m32r-sdi.c (m32r_stopped_data_address): Ditto.
1572 * config/frv/tm-frv.h (frv_stopped_data_address): Change prototype.
1573 (STOPPED_BY_WATCHPOINT): Change to use frv_have_stopped_data_address.
1574 * config/i386/nm-i386.h (STOPPED_BY_WATCHPOINT): Change to use
1575 new i386_stopped_by_watchpoint function.
1576 (i386_stopped_by_watchpoint): New prototype.
1577 (i386_stoppped_data_address): Change to new prototype.
1578 * config/ia64/nm-linux.h (STOPPED_BY_WATCHPOINT): Change to use
1579 new ia64_stopped_by_watchpoint function.
1580 (ia64_stopped_by_watchpoint): New prototype.
1581 (ia64_stopped_data_address): Ditto.
1582
1583 2004-10-08 Paul Hilfinger <Hilfinger@gnat.com>
1584
1585 * ada-typeprint.c (ada_print_type): Use int_string for printing
1586 modulus of modular type.
1587 * ada-lang.h (ada_modulus): Change return type to unsigned.
1588 * ada-lang.c (ada_language_arch_info): Correct type of
1589 string_char_type.
1590 (ada_modulus): Return unsigned result.
1591 (ada_lookup_symbol): Remove user disambiguation and modify comment
1592 accordingly.
1593
1594 2004-10-08 Eric Botcazou <ebotcazou@act-europe.fr>
1595
1596 Committed by Paul Hilfinger.
1597 * ada-lang.c (decode_packed_array): On big-endian targets,
1598 left-justify the value if it comes with a modular type.
1599
1600 2004-10-08 Joel Brobecker <brobecker@gnat.com>
1601
1602 Committed by Paul Hilfinger.
1603 * ada-lang.c (template_to_static_fixed_type): Fix a small typo.
1604 (is_name_suffix): Add support for "___JM" suffixes.
1605 (ada_check_typedef): Renames ada_completed_type.
1606 Update all users of CHECK_TYPEDEF, check_typedef, and
1607 ada_complete_type to call ada_check_typedef.
1608 * ada-typeprint.c: Likewise.
1609 * ada-valprint.c: Likewise.
1610
1611 2004-10-08 Corinna Vinschen <vinschen@redhat.com>
1612
1613 * infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
1614
1615 2004-10-08 Nick Roberts <nickrob@snap.net.nz>
1616
1617 * MAINTAINERS: Update e-mail address.
1618
1619 2004-10-07 Daniel Jacobowitz <dan@debian.org>
1620
1621 From Maciej W. Rozycki <macro@mips.com>:
1622 * mips-tdep.c (mips32_next_pc): Check the register's contents,
1623 not its number for BLEZ/BLEZL and BGTZ/BGTZL.
1624
1625 2004-10-07 Kei Sakamoto <sakamoto.kei@renesas.com>
1626
1627 * m32r-tdep.c (decode_prologue): Support functions written
1628 in assembler language. Recognize trap instructions as the
1629 end of prologue.
1630 (m32r_frame_unwind_cache): Ditto.
1631 (m32r_skip_prologue): Extend search limit. Quit analyzing
1632 prologue if pc's location is not readable.
1633
1634 2004-10-06 Paul N. Hilfinger <Hilfinger@gnat.com>
1635
1636 * Makefile.in (.l.c): Do conversions of names of alloc and free
1637 functions that are done for .y.c files, plus special one
1638 for yy_flex_realloc. Also, correct missing-file tests here.
1639 * ada-lex.l (malloc, free): Remove macros.
1640 (resize_tempbuf): Use "realloc"; rely on sed changes to convert to
1641 xrealloc.
1642 (ada_flex_use): Dummy definition to remove warnings about unused
1643 functions.
1644 * ada-exp.y (dummy_string_to_ada_operator): Temporary definition
1645 to suppress warning.
1646
1647 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1648
1649 * sh-tdep.c (sh_return_value_nofpu): New function, implementing
1650 RETURN_VALUE.
1651 (sh_return_value_fpu): Ditto for CPUs with FPU.
1652 (sh_gdbarch_init): Remove STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
1653 RETURN_VALUE_ON_STACK and USE_STRUCT_CONVENTION throughout.
1654 Install sh_return_value_nofpu resp. sh_return_value_fpu as
1655 RETURN_VALUE functions.
1656
1657 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1658
1659 * sh-tdep.c (sh_pseudo_register_read): Add PSEUDO_BANK_REGNUM handling.
1660 (sh_pseudo_register_write): Ditto.
1661
1662 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1663
1664 * sh-tdep.c (IS_MACL_STS): New define.
1665 (IS_MOVI20): Ditto.
1666 (IS_MACL_LDS): Ditto.
1667 (sh_analyze_prologue): Recognize STS.L MACL,@-r15 and MOVI20
1668 instructions in prologue.
1669 (sh_in_function_epilogue_p): Recognize LDS.L @r15+,MACL and MOVI20
1670 instructions in epilogue.
1671
1672 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1673
1674 * sh-tdep.c (SH_NUM_REGS): Define as 67.
1675 (sh_sh_register_name): Add eight empty register names.
1676 (sh_sh3_register_name): Ditto.
1677 (sh_sh3e_register_name): Ditto.
1678 (sh_sh2e_register_name): Ditto.
1679 (sh_sh2a_register_name): New function, defining SH2A register set.
1680 (sh_sh2a_nofpu_register_name): New function, defining SH2A register set
1681 in nofpu case.
1682 (sh_sh_dsp_register_name): Add eight empty register names.
1683 (sh_sh3_dsp_register_name): Ditto.
1684 (sh_sh4_register_name): Ditto.
1685 (sh_sh4_nofpu_register_name): Ditto.
1686 (sh_sh4al_dsp_register_name): Ditto.
1687 (sh2a_show_regs): New function.
1688 (sh2a_nofpu_show_regs): New function.
1689 (sh_sh2a_register_type): New function.
1690 (do_bank_register_info): New function.
1691 (sh_print_pseudo_register): Call do_bank_register_info.
1692 Call sh_print_pseudo_register for valid "bank" register.
1693 (sh_sh2a_register_sim_regno): New function.
1694 (sh_gdbarch_init): Add bfd_mach_sh2a and bfd_mach_sh2a_nofpu handling.
1695 Increment pseudo register count by one for all sh variants with
1696 pseudo registers to accomodate pseudo bank register.
1697 * sh-tdep.h: Add register numbers for R0_BANK0_REGNUM, MACHB_REGNUM,
1698 IVNB_REGNUM, PRB_REGNUM, GBRB_REGNUM, MACLB_REGNUM, BANK_REGNUM,
1699 IBCR_REGNUM, IBNR_REGNUM, TBR_REGNUM and PSEUDO_BANK_REGNUM.
1700 Increment pseudo register numbers.
1701
1702 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1703
1704 * dwarf2read.c (read_subroutine_type): Call make_function_type
1705 instead of lookup_function_type.
1706
1707 2004-10-05 Jim Blandy <jimb@redhat.com>
1708
1709 * linux-nat.c (_initialize_linux_nat): Rename child_ops.
1710 (Previous change missed some uses.)
1711
1712 2004-10-05 Andrew Cagney <cagney@gnu.org>
1713
1714 * target.h (deprecated_child_ops): Rename child_ops.
1715 * wince.c: Update copyright. Rename child_ops.
1716 * win32-nat.c: Rename child_ops.
1717 * target.c: Rename child_ops.
1718 * rs6000-nat.c: Rename child_ops.
1719 * linux-nat.c: Rename child_ops.
1720 * infttrace.c: Rename child_ops.
1721 * inftarg.c: Rename child_ops.
1722 * infptrace.c: Rename child_ops.
1723 * hppah-nat.c: Update copyright. Rename child_ops.
1724 * hpux-thread.c: Update copyright. Rename child_ops.
1725
1726 2004-10-05 Daniel Jacobowitz <dan@debian.org>
1727
1728 * remote.c (remote_xfer_partial): Handle TARGET_OBJECT_MEMORY.
1729
1730 2004-10-05 Andrew Cagney <cagney@gnu.org>
1731
1732 * version.in: Bump to version 6.2.50_YYYY-MM-DD-cvs.
1733
1734 2004-10-05 Daniel Jacobowitz <dan@debian.org>
1735
1736 * dwarf2read.c (REF_HASH_SIZE): Move earlier.
1737 (die_ref_table): Remove.
1738 (struct dwarf2_cu): Add DIES, DEPENDENCIES, and DIE_REF_TABLE.
1739 (struct dwarf2_per_cu_data): Add PSYMTAB. Add a comment describing
1740 the usage of this type.
1741 (struct dwarf2_per_objfile): Update comment for ALL_COMP_UNITS.
1742 (struct dwarf2_pinfo, PST_PRIVATE, DWARF_INFO_OFFSET): Remove.
1743 (struct dwarf2_queue_item, dwarf2_queue, dwarf2_queue_tail): New.
1744 (dwarf2_create_include_psymtab): Update comment.
1745 (find_partial_die): Remove third argument. Remove unreachable call
1746 to error ().
1747 (dwarf2_find_containing_comp_unit): Update comments. Change one
1748 assertion to an error. Remove an unreachable error.
1749 (dwarf2_find_comp_unit): Update comments.
1750 (type_at_offset): Remove dead code.
1751 (make_cleanup_free_die_list, dwarf2_empty_hash_tables): Remove.
1752 (store_in_ref_table): Add CU argument.
1753 (follow_die_ref): Take DIE, attribute, and CU arguments. Handle
1754 inter-compilation-unit references.
1755 (load_full_comp_unit, process_full_comp_unit): New functions, based
1756 on psymtab_to_symtab_1.
1757 (psymtab_to_symtab_1): Use them.
1758 (dwarf2_add_dependence): New function.
1759 (dwarf2_build_psymtabs_hard): Set the psymtab in per_cu. Always create
1760 a per_cu structure, and save it in READ_PSYMTAB_PRIVATE.
1761 (partial_die_parent_scope, guess_structure_name): Update for changes
1762 to find_partial_die.
1763 (dwarf2_psymtab_to_symtab): Initialize dwarf2_per_objfile here.
1764 (queue_comp_unit, process_queue, dwarf2_release_queue): New.
1765 (read_comp_unit): Don't call dwarf2_empty_hash_tables.
1766 (read_die_and_children): Update call to store_in_ref_table.
1767 (do_free_die_list_cleanup): Remove.
1768 (fixup_partial_die): Update for changes to find_partial_die.
1769 (read_full_die): Handle queueing absolute references.
1770 (read_attribute_value): Use DW_ADDR for all DW_FORM_ref* forms.
1771 (dwarf2_attr, die_specification, die_type)
1772 (die_containing_type, dwarf2_extension): Update calls to
1773 follow_die_ref.
1774 (dump_die): Update DW_FORM_ref* handling.
1775 (dwarf2_get_ref_die_offset): Likewise.
1776 (free_one_comp_unit): Release the dies list.
1777 (dwarf2_mark_helper): New function.
1778 (dwarf2_mark): Use it.
1779
1780 2004-10-05 Mark Kettenis <kettenis@jive.nl>
1781
1782 * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
1783 when writing to memory.
1784
1785 2004-10-05 Kei Sakamoto <sakamoto.kei@renesas.com>
1786
1787 * m32r-tdep.c (m32r_use_struct_convention): Delete function.
1788 (m32r_extract_struct_value_address): Delete function.
1789 (m32r_return_value): New function.
1790 (m32r_gdbarch_init): Instead of store_return_value,
1791 extract_return_value, deprecated_extract_struct_value_address
1792 and deprecated_use_struct_convention, set return_value.
1793
1794 2004-10-03 Daniel Jacobowitz <dan@debian.org>
1795
1796 * dwarf2read.c (read_subrange_type): Add comment for variable
1797 sized arrays.
1798
1799 2004-10-03 Paul Hilfinger <hilfingr@nile.gnat.com>
1800
1801 * Makefile.in (.l.c): Modify rule for compatibility with recent
1802 versions of flex, and remove most command-line options.
1803 * ada-lex.l: Add %options line in place of -I -i and -s command-line
1804 options.
1805
1806 2004-10-02 Paul N. Hilfinger <Hilfinger@gnat.com>
1807
1808 Turn on initial Ada support (mainly expression evaluation).
1809
1810 * Makefile.in (SFILES): Remove ada-tasks.c.
1811 (HFILES_NO_SRCDIR): Add ada-lang.h.
1812 (COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
1813 (YYOBJ): Add ada-exp.o.
1814 (rule .l.c): Generalize to not mention ada.
1815 * symtab.c: Include ada-lang.h.
1816 (symbol_natural_name, symbol_demangled_name)
1817 (symbol_search_name): Add Ada case.
1818
1819 2004-10-01 Andrew Cagney <cagney@gnu.org>
1820
1821 * Makefile.in (COMMON_OBS): Add inf-child.o.
1822 * config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
1823 * config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
1824 * config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
1825 * config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
1826 * config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
1827 * config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
1828 * config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
1829 * config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
1830 * config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
1831 * config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
1832 * config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
1833 * config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
1834 * config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
1835
1836 * target.c (xfer_using_stratum): Change return type to LONGEST.
1837 On each iteration offset, readbuf and writebuf.
1838 * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
1839 partial_length, and read/modify/write predicate, update comments.
1840 Pass buffer.word to ptrace write.
1841
1842 2004-10-01 Paul N. Hilfinger <Hilfinger@gnat.com>
1843
1844 * symfile.c (init_filename_language_table): Add extensions for
1845 Ada.
1846 * defs.h (enum language): Add language_ada.
1847 * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
1848 * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
1849 (add_symbols_from_enclosing_procs): Make a no-op for now.
1850 (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
1851 (extended_canonical_line_spec, find_sal_from_funcs_and_line)
1852 (find_line_in_linetable, find_next_line_in_linetable)
1853 (read_all_symtabs, is_plausible_func_for_line)
1854 (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
1855 (is_runtime_sym_defined, check_size): Remove declaration.
1856 (function_name_from_pc, ada_translate_error_message)
1857 (ada_lookup_minimal_symbol): Remove definition.
1858 (ada_add_block_symbols): Remove useless label.
1859 * ada-lang.h (ada_maybe_exception_partial_symbol): Remove
1860 useless declaration.
1861 (ada_is_exception_sym): Likewise.
1862
1863 2004-09-30 Kei Sakamoto <sakamoto.kei@renesas.com>
1864
1865 Add m32r-linux support.
1866 * configure.tgt: Add m32r*-*-linux*.
1867 * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
1868 and m32r-linux-tdep.c.
1869 (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
1870 * m32r-tdep.c: Move some definitions to m32r-tdep.h.
1871 * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
1872 m32r-linux-tdep.c.
1873 * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
1874 config/m32r/linux.mh, config/m32r/linux.mt,
1875 config/m32r/nm-linux.h: New files.
1876
1877 2004-09-30 Joel Brobecker <brobecker@gnat.com>
1878
1879 * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
1880 (mips32_fetch_instruction): Remove, unused.
1881
1882 2004-09-30 Joel Brobecker <brobecker@gnat.com>
1883
1884 * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
1885 conditions that will always be true.
1886
1887 2004-09-30 Mark Kettenis <kettenis@gnu.org>
1888
1889 * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
1890 (vaxbsd_fetch_inferior_registers): Rename from
1891 fetch_inferior_registers. Make static.
1892 (vaxbsd_store_inferior_registers): Rename from
1893 store_inferior_registers. Make static.
1894 (_initialize_vaxbsd_nat): Construct and add target vector.
1895 * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1896 inftarg.o. Add inf-child.o and inf-ptrace.o.
1897 * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
1898 inftarg.o. Add inf-child.o and inf-ptrace.o.
1899 (NAT_FILE): Remove.
1900 * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
1901 inftarg.o. Add inf-child.o and inf-ptrace.o.
1902 (NAT_FILE): Remove.
1903 * Makefile.in (vaxbsd-nat.o): Update dependencies.
1904
1905 * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
1906 (m88kbsd_fetch_inferior_registers): Rename from
1907 fetch_inferior_registers. Make static.
1908 (m88kbsd_store_inferior_registers): Rename from
1909 store_inferior_registers. Make static.
1910 (_initialize_m88kbsd_nat): New prototype and function.
1911 * config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
1912 inftarg.o. Add inf-child.o and inf-ptrace.o.
1913 (NAT_FILE): Remove.
1914 * Makefile.in (m88kbsd-nat.o): Update dependencies.
1915
1916 2004-09-30 Andrew Cagney <cagney@gnu.org>
1917
1918 * target.c (target_xfer_partial): New function.
1919 (target_read_memory_partial, target_write_memory_partial)
1920 (default_xfer_partial, target_read_partial, target_write_partial)
1921 (xfer_using_stratum): Use.
1922 (debug_to_xfer_partial): Delete function.
1923 (setup_target_debug): Do not override to_xfer_partial.
1924
1925 2004-09-30 Mark Kettenis <kettenis@chello.nl>
1926
1927 * fork-child.c: Update copyright year. Fix coding style.
1928
1929 2004-09-29 Mark Kettenis <kettenis@gnu.org>
1930
1931 * defs.h (msavestring, mstrsave): Remove prototypes.
1932 * utils.c (msavestring, mstrsave): Remove functions.
1933 * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
1934 * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
1935 of mstrsave.
1936 * source.c (find_and_open_source): Use xstrdup instead of
1937 mstrsave.
1938
1939 2004-09-30 Andrew Cagney <cagney@gnu.org>
1940
1941 * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
1942 (inf_ptrace_xfer_memory): Delete.
1943 * target.c (target_xfer_partial_p, xfer_using_stratum): New.
1944 (target_read_memory, target_write_memory): Use xfer_using_stratum
1945 when target_xfer_partial_p.
1946 (debug_target): Move to start of file.
1947 (target_read_memory_partial, target_write_memory_partial): Use
1948 to_xfer_partial when target_xfer_partial_p.
1949
1950 * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
1951 inf_ptrace_xfer_memory with equivalent code.
1952 * inftarg.c (child_xfer_partial): When performing a write, pass
1953 writebuf to child_xfer_memory.
1954
1955 * target.c (target_read_string): Use target_read_memory instead of
1956 target_xfer_memory.
1957
1958 2004-09-29 Andrew Cagney <cagney@gnu.org>
1959
1960 * infptrace.c (kill_inferior): Fix typo, in previous inline. Pass
1961 the address of status.
1962
1963 * infptrace.c (ptrace_wait): Mention problem with HPUX.
1964 (kill_inferior): Inline ptrace_wait call.
1965 * linux-nat.c (kill_inferior): Inline ptrace_wait call.
1966 * inftarg.c (child_wait): Inline ptrace_wait call.
1967
1968 * target.h (struct target_ops): Delete field to_post_wait.
1969 (target_post_wait): Delete macro.
1970 (child_post_wait): Delete declaration.
1971 * target.c (update_current_target, update_current_target)
1972 (debug_to_post_wait, setup_target_debug): Delete functions and
1973 references.
1974 * infttrace.c (ptrace_wait): Delete call to target_post_wait.
1975 * inftarg.c (child_post_wait): Delete.
1976 (init_child_ops): Do not set to_post_wait.
1977 * infptrace.c (ptrace_wait): Delete call to target_post_wait.
1978 * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
1979 * inf-child.c (inf_child_post_wait): Delete.
1980 (inf_child_target): Do not set to_post_wait.
1981 * inf-ptrace.c (inf_ptrace_post_wait): Delete.
1982 (inf_ptrace_target): Do not set to_post_wait.
1983
1984 * wince.c (child_ops): Delete.
1985 * win32-nat.c (child_ops): Delete.
1986
1987 * inftarg.c (inftarg_set_find_memory_regions)
1988 (inftarg_set_make_corefile_notes): Delete functions.
1989 (_initialize_linux_nat): Inline calls.
1990
1991 * target.h (child_ops): Declare.
1992 * inftarg.c (child_ops): Move from here ...
1993 * target.c (child_ops): ... to here.
1994 * wince.c (child_ops): Delete extern declaration.
1995 * win32-nat.c (child_ops): Delete extern declaration.
1996 * linux-nat.c (child_ops): Delete extern declaration.
1997 * hpux-thread.c (child_ops): Delete extern declaration.
1998
1999 2004-09-28 Mark Kettenis <kettenis@gnu.org>
2000
2001 * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
2002
2003 2004-09-28 Mark Kettenis <kettenis@gnu.org>
2004
2005 * configure.in: Only set host_makefile_frag when building a native
2006 debugger.
2007 * configure: Regenerate.
2008
2009 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
2010 for OpenBSD ELF.
2011
2012 2004-09-28 Andrew Cagney <cagney@gnu.org>
2013
2014 Problem identified by Paul Hilfinger.
2015 * Makefile.in (ada_lex_c): Define.
2016 (ada-lex.o): Delete rule.
2017
2018 * linux-proc.c: Delete file.
2019 * Makefile.in: Update.
2020 * config/sparc/linux64.mh (NATDEPFILES):
2021 * config/sparc/linux.mh (NATDEPFILES): Update.
2022 * config/s390/s390.mh (NATDEPFILES): Update.
2023 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
2024 * config/powerpc/linux.mh (NATDEPFILES): Update.
2025 * config/pa/linux.mh (NATDEPFILES): Update.
2026 * config/mips/linux.mh (NATDEPFILES): Update.
2027 * config/m68k/linux.mh (NATDEPFILES): Update.
2028 * config/ia64/linux.mh (NATDEPFILES): Update.
2029 * config/i386/linux64.mh (NATDEPFILES): Update.
2030 * config/i386/linux.mh (NATDEPFILES): Update.
2031 * config/arm/linux.mh (NATDEPFILES): Update.
2032 * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
2033 * linux-nat.c: Update copyright. Include <sys/param.h>,
2034 <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
2035 "gdbthread.h", "gdb_stat.h", <fcntl.h>.
2036 (O_LARGEFILE): Possibly define.
2037 (_initialize_linux_nat, linux_proc_pending_signals)
2038 (add_line_to_sigset, linux_proc_xfer_memory)
2039 (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
2040 (linux_nat_do_registers, linux_nat_corefile_thread_callback)
2041 (struct linux_corefile_thread_data)
2042 (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
2043 (child_pid_to_exec_file): Insert code previously in linux-proc.c.
2044
2045 2004-09-16 Andrew Cagney <cagney@gnu.org>
2046
2047 * lin-lwp.c: Delete file.
2048 * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
2049 <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
2050 (status_to_str, init_lwp_list, add_lwp, delete_lwp)
2051 (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
2052 (linux_nat_attach, detach_callback, linux_nat_detach)
2053 (resume_callback, resume_clear_callback, linux_nat_resume)
2054 (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
2055 (stop_wait_callback, linux_nat_has_pending, flush_callback)
2056 (status_callback, running_callback, count_events_callback)
2057 (select_singlestep_lwp_callback, select_event_lwp_callback)
2058 (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
2059 (child_wait, stop_and_resume_callback, linux_nat_wait)
2060 (kill_callback, kill_wait_callback, linux_nat_kill)
2061 (linux_nat_create_inferior, linux_nat_mourn_inferior)
2062 (linux_nat_xfer_memory, linux_nat_thread_alive)
2063 (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
2064 (_initialize_linux_nat): New functions.
2065 * Makefile.in: Update all dependencies.
2066 * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
2067 * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2068 * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
2069 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
2070 * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2071 * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2072 * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2073 * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2074 * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2075 * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
2076 * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2077 * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2078 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
2079
2080 2004-09-27 Mark Kettenis <kettenis@gnu.org>
2081
2082 * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
2083 config/i386/obsd64.mh (NAT_FILE): Remove variable.
2084
2085 * configure.in: Don't comment out NATDEPFILES in the generated
2086 Makefile if NAT_FILE is unset.
2087 * configure: Regenerate.
2088
2089 2004-09-27 Andrew Cagney <cagney@gnu.org>
2090
2091 * infrun.c (check_for_old_step_resume_breakpoint): Delete.
2092 (insert_step_resume_breakpoint): Delete.
2093 (insert_step_resume_breakpoint_at_frame): New function.
2094 (insert_step_resume_breakpoint_at_sal): New function.
2095 (handle_inferior_event, step_into_function)
2096 (insert_step_resume_breakpoint): Simplify by using same.
2097
2098 * gdb_indent.sh (types): Add caddr_t to list of predefined types.
2099
2100 2004-09-26 Mark Kettenis <kettenis@gnu.org>
2101
2102 * fbsd-proc.c: Remove file.
2103 * Makefile.in (fbsd-proc.o): Remove dependency.
2104
2105 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
2106 code together.
2107
2108 * config/i386/nm-fbsd64.h: Remove file.
2109 * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2110
2111 2004-09-26 Mark Kettenis <kettenis@gnu.org>
2112
2113 * amd64-nat.h: Update copyright year.
2114 (amd64bsd_target): New prototype.
2115 * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
2116 (amd64bsd_target): New function.
2117 (amd64bsd_fetch_inferior_registers): Rename from
2118 fetch_inferior_registers. Make static.
2119 (amd64bsd_store_inferior_registers): Rename from
2120 store_inferior_registers. Make static.
2121 * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
2122 (_initialize_amd64fbsd_nat): Construct and add target vector.
2123 * amd64nbsd-nat.o: Include "target.h".
2124 (_initialize_amd64nbsd_nat): Construct and add target vector.
2125 * amd64obsd-nat.c: Include "target.h".
2126 (_initialize_amd64obsd_nat): Construct and add target vector.
2127 * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
2128 * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
2129 inftarg.o and fbsd-proc.o. Add inf-child.o, inf-ptrace.o and
2130 fbsd-nat.o.
2131 * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
2132 Remove infptrace.o and inftarg.o. Add inf-child.o and
2133 inf-ptrace.o.
2134 * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
2135 (amd64obsd-nat.o): Update dependencies.
2136
2137 2004-09-25 Mark Kettenis <kettenis@gnu.org>
2138
2139 * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
2140 * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
2141 * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
2142 * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
2143 * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
2144
2145 * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
2146 Inline attach call.
2147 (inf_ptrace_detach): Inline detach call.
2148
2149 * configure.in: Check for waddstr instead of mvwaddstr when
2150 searching for curses library. Check for wborder.
2151 * configure, config.in: Regenerate.
2152 * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
2153 available.
2154
2155 * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
2156
2157 2004-09-24 Robert Picco <Robert.Picco@hp.com>
2158
2159 Committed by Andrew Cagney.
2160 * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
2161 (show_remote_protocol_p_packet_cmd): New. Implement 'p' packet.
2162 configuration.
2163 (fetch_register_using_p): Implement 'p' packet. Based on code by
2164 Fernando Nasser.
2165 (remote_fetch_registers): Call fetch_register_using_p.
2166 (init_all_packet_configs, show_remote_cmd)
2167 (_initialize_remote): Add p-packet.
2168
2169 2004-09-24 Mark Kettenis <kettenis@gnu.org>
2170
2171 * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
2172 instead of call_ptrace. Call wait directly instead of
2173 ptrace_wait.
2174 (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
2175 (inf_ptrace_wait): Inline ptrace_wait call.
2176
2177 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
2178
2179 * Makefile.in (.y.c): Revert previous change. ../ylwrap was
2180 rolled back instead.
2181
2182 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
2183
2184 * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
2185 the new argument order.
2186
2187 2004-09-23 Corinna Vinschen <vinschen@redhat.com>
2188
2189 * MAINTAINERS: Remove "broken" from XStormy16 entry.
2190 * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
2191 (struct gdbarch_tdep): Remove.
2192 (struct xstormy16_frame_cache): New frame cache structure.
2193 (xstormy16_register_byte, xstormy16_register_raw_size)
2194 (xstormy16_reg_virtual_type, xstormy16_register_type)
2195 (xstormy16_push_arguments, xstormy16_push_return_address)
2196 (xstormy16_pop_frame, xstormy16_store_struct_return)
2197 (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
2198 (xstormy16_frame_saved_register, xstormy16_get_saved_register)
2199 (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
2200 (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
2201 (xstormy16_frame_chain, xstormy16_frame_chain_valid,
2202 (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
2203 (xstormy16_use_struct_convention): Drop gcc_p parameter.
2204 (xstormy16_extract_return_value, xstormy16_store_return_value):
2205 Regcachify. Drop useless struct convention handling.
2206 (xstormy16_register_type, xstormy16_return_value)
2207 (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
2208 (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
2209 (xstormy16_frame_prev_register, xstormy16_frame_this_id)
2210 (xstormy16_frame_base_address, xstormy16_frame_sniffer)
2211 (xstormy16_unwind_sp, xstormy16_unwind_pc)
2212 (xstormy16_unwind_dummy_id) : New functions.
2213 (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
2214 of xstormy16_scan_prologue.
2215 (xstormy16_frame_unwind): New frame_unwind structure.
2216 (xstormy16_frame_base): New frame_base structure.
2217 (xstormy16_gdbarch_init): Accomodate all of the above changes.
2218 Reshuffle for better readability. Also add dwarf2_frame_sniffer.
2219
2220 2004-09-22 Mark Kettenis <kettenis@gnu.org>
2221
2222 * language.c (language_gdbarch_post_init): Fix off-by one error.
2223
2224 2004-09-21 Daniel Jacobowitz <dan@debian.org>
2225
2226 * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
2227 (struct dwarf2_offset_and_type): New.
2228 (set_die_type, reset_die_and_siblings_types, get_die_type)
2229 (offset_and_type_hash, offset_and_type_eq): New functions.
2230 (read_structure_type, read_enumeration_type, read_array_type)
2231 (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
2232 (read_tag_reference_type, read_tag_const_type)
2233 (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
2234 (read_typedef, read_base_type, read_subrange_type): Use
2235 set_die_type.
2236
2237 2004-09-20 Daniel Jacobowitz <dan@debian.org>
2238
2239 * Makefile.in (dwarf2read.o): Update dependencies.
2240 * dwarf2read.c: Include "command.h" and "gdbcmd.h".
2241 (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
2242 and read_in_chain.
2243 (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
2244 mark, and has_form_ref_addr.
2245 (struct dwarf2_per_cu_data): New.
2246 (dwarf2_max_cache_age): New.
2247 (dwarf2_build_psymtabs_hard): Free cached compilation units
2248 after loading. Create and manage the list of compilation units.
2249 Remove unnecessary NULL initialization. Fix indentation.
2250 (psymtab_to_symtab_1): Initialize all of CU.
2251 (dwarf2_read_abbrevs): Set has_form_ref_addr.
2252 (find_partial_die): Use dwarf2_find_containing_comp_unit
2253 and load_comp_unit.
2254 (free_stack_comp_unit): Update comments. Clear the per-cu
2255 pointer. Handle aging.
2256 (dwarf2_find_containing_comp_unit, free_cached_comp_units)
2257 (age_cached_comp_units, free_one_cached_comp_unit)
2258 (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
2259 (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
2260 (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
2261 (show_dwarf2_cmd): New.
2262 (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
2263 and "maint show dwarf2 max-cache-age".
2264 * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
2265 externs.
2266 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
2267 global.
2268
2269 2004-09-20 Jeff Johnston <jjohnstn@redhat.com>
2270
2271 * dwarf2read.c (typename_concat): Change prototype to accept obstack
2272 and dwarf2_cu struct pointer as arguments. Change function to use
2273 obstack if provided and use dwarf2_cu to determine language-specific
2274 separator.
2275 (partial_die_parent_scope): Change comment to include java. Use
2276 new version of typename_concat instead of obconcat.
2277 (partial_die_full_name): Use typename_concat.
2278 (read_namespace): Ditto.
2279 (read_enumeration_type): Use typename_concat instead of obconcat.
2280 (new_symbol): Ditto.
2281 (add_partial_symbol): Enhance tests for C++ to also test for Java.
2282 (guess_structure_name): Ditto.
2283 (read_subroutine_type): Ditto.
2284 (read_structure_type): Ditto.
2285 (is_vtable_name): Add Java support.
2286 (determine_class_name): Switch to new typename_concat call.
2287 (determine_prefix): Switch to new typename_concat call.
2288 * jv-exp.y (FuncStart): New pattern.
2289 (MethodInvocation): Add support for simple function calls. Change
2290 warning message for other forms of inferior call currently not
2291 supported.
2292 * valarith.c (value_subscript): Treat an array with upper-bound
2293 of -1 as unknown size.
2294
2295 2004-09-20 Daniel Jacobowitz <dan@debian.org>
2296
2297 * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
2298 (lookup_partial_symtab): Use symtab_to_fullname.
2299
2300 2004-09-19 Jim Blandy <jimb@redhat.com>
2301
2302 * minsyms.c (lookup_minimal_symbol): Doc fix.
2303
2304 2004-09-20 Andrew Cagney <cagney@gnu.org>
2305
2306 * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
2307 CHILD_RESUME.
2308 * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
2309 * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
2310 KILL_INFERIOR.
2311 * infptrace.c: Update.
2312
2313 2004-09-19 Daniel Jacobowitz <dan@debian.org>
2314
2315 * symtab.c (output_source_filename): Mark first argument as const.
2316 (sources_info): Use symtab_to_fullname and psymtab_to_fullname
2317 for "info sources" output.
2318
2319 2004-09-20 Mark Kettenis <kettenis@gnu.org>
2320
2321 * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
2322 <machine/vmparam.h>.
2323 (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
2324 (register_u_addr): Remove prototype.
2325
2326 2004-09-19 Mark Kettenis <kettenis@gnu.org>
2327
2328 * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
2329 (i386bsd_fetch_inferior_registers): Rename from
2330 fetch_inferior_registers. Make static.
2331 (i386bsd_store_inferior_registers): Rename from
2332 store_inferior_registers. Make static.
2333 (i386bsd_target): New function.
2334 * i386bsd-nat.h: New file.
2335 * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
2336 "i386bsd-nat.h".
2337 (i386fbsd_resume): Rename from child_resume. Make static.
2338 (_initialize_i386fbsd_nat): Construct and add target vector.
2339 * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
2340 (_initialize_i386nbsd_nat): Construct and add target vector.
2341 * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
2342 Remove defines.
2343 * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
2344 and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
2345 * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
2346 inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
2347 (LOADLIBES): New variable.
2348 * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
2349 inf-ptrace.o. Remove inftarg.o.
2350 * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
2351 inf-ptrace.o. Remove inftarg.o.
2352 * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
2353 inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
2354 (LOADLIBES): New variable.
2355 * Makefile.in (i386bsd_nat_h): New variable.
2356 (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
2357 dependencies.
2358
2359 * sparc64nbsd-tdep.c: Include "objfiles.h".
2360 (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
2361 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
2362 svr4_lp64_fetch_link_map_offsets.
2363 * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
2364 "nbsd-tdep.h".
2365 (sparc64obsd_init_abi): Set in_solib_call_trampoline and
2366 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
2367 svr4_lp64_fetch_link_map_offsets.
2368 * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
2369 dependencies.
2370
2371 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
2372 * fbsd-nat.h: New file.
2373 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
2374 (fbsd_nat_h): New variable.
2375 (fbsd-nat.o): New dependency.
2376
2377 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
2378 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
2379
2380 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
2381 comment.
2382
2383 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
2384
2385 * ada-exp.y (type_int): New function to add layer of abstraction
2386 around references to expression types.
2387 (type_long): Ditto.
2388 (type_long_long): Ditto.
2389 (type_float): Ditto.
2390 (type_double): Ditto.
2391 (type_long_double): Ditto.
2392 (type_char): Ditto.
2393 (type_system_address): Ditto.
2394 (simple_exp): Use type_* functions in place of builtin_*
2395 variables.
2396 (exp): Ditto.
2397 (write_var_from_name): Ditto.
2398 (write_object_renaming): Ditto.
2399 * ada-lang.c (ada_create_fundamental_type): Remove redundant
2400 declaration.
2401 (build_ada_types): Remove, replacing with...
2402 (ada_language_arch_info): New function to initialize primitive
2403 type vector in language_arch_info.
2404 (ada_array_length): Remove use of builtin_type_ada_int.
2405 (value_pos_atr): Ditto.
2406 (ada_evaluate_subexp): Ditto.
2407 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
2408 builtin_type_ada_long_long, builtin_type_ada_char,
2409 builtin_type_ada_float, builtin_type_ada_double,
2410 builtin_type_ada_long_double, builtin_type_ada_natural,
2411 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
2412 (ada_builtin_types): Remove.
2413 (ada_language_defn): Remove entries for la_builtin_type_vector and
2414 string_char_type and use ada_language_arch_info.
2415 (_initialize_ada_language): Do type-vector initialization along
2416 the lines of c-lang.c.
2417 (ada_create_fundamental_type): Break up line.
2418 (ada_dump_symtab): Remove unused function.
2419 (enum ada_primitive_types): Define.
2420 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
2421 builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
2422 builtin_type_ada_float, builtin_type_ada_double,
2423 builtin_type_ada_long_double, builtin_type_ada_natural,
2424 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
2425 * ada-lex.l: Use type_* functions in place of builtin_* variables.
2426 (processInt): Ditto.
2427 (processReal): Ditto.
2428 (name_lookup): Ditto.
2429 * ada-typeprint.c (print_range): Use builtin_type_int, not
2430 builtin_type_ada_int.
2431
2432 2004-09-18 Mark Kettenis <kettenis@gnu.org>
2433
2434 * i386-tdep.c (i386_register_name): Rename regno to regnum.
2435
2436 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
2437 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
2438 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
2439 * configure.in: Improve checks for curses library by checking for
2440 mvwaddstr instead of initscr. Drop HP curses in favour of
2441 standard curses on HP-UX.
2442 * configure: Regenerated.
2443
2444 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
2445
2446 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
2447 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
2448 Minor formatting changes.
2449 (empty_array): Slight rewrite for formatting.
2450 (emit_char,parse,ada_language_defn,build_ada_types,
2451 ada_is_exception_sym, _initialize_ada_language): Move
2452 definitions around.
2453 (ada_dump_symtab): Remove unused definition.
2454 (ada_maybe_exception_partial_symbol): Remove unused definition.
2455
2456 2004-09-16 Andrew Cagney <cagney@gnu.org>
2457
2458 * inf-child.c: Include "gdb_string.h".
2459 (inf_child_core_file_to_sym_file): Delete.
2460 (inf_child_target): Set to_fetch_registers and to_store_registers.
2461 * inf-ptrace.c: Include "gdb_string.h".
2462 * Makefile.in: Update all dependencies.
2463
2464 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
2465 problem.
2466
2467 2004-09-14 Joel Brobecker <brobecker@gnat.com>
2468
2469 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
2470 call to heuristic_proc_desc. Remove code that became redundant
2471 as a consequence.
2472 (read_next_frame_reg): Remove special case for SP_REGNUM.
2473 (set_reg_offset): Fix small typo.
2474 (reset_saved_regs): New procedure.
2475 (mips32_heuristic_proc_desc): No longer compute a fake
2476 procedure descriptor. Compute the full frame cache instead.
2477 Some minor comment reformatting.
2478
2479 2004-09-14 Andrew Cagney <cagney@gnu.org>
2480
2481 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
2482 maintainer.
2483
2484 * thread-db.c (thread_db_new_objfile): Assume that there is a
2485 child process.
2486
2487 2004-09-13 Jim Blandy <jimb@redhat.com>
2488
2489 * valops.c (value_assign): Move 'buffer' to the enclosing block,
2490 so that its storage isn't referenced after its lifetime ends.
2491
2492 * valops.c (value_assign): 'use_buffer' is initialized to zero,
2493 and never assigned to. Delete it, and the 'if (use_buffer)'
2494 clauses. Delete 'raw_buffer', since it is now unused.
2495
2496 2004-09-13 Andrew Cagney <cagney@gnu.org>
2497
2498 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
2499 * configure: Re-generate.
2500 * nlm/Makefile.in (TAGS): Update.
2501 * Makefile.in (TAGS): Update.
2502 * config/vax/nbsd.mt (TM_FILE): Update.
2503 * config/sparc/vxworks.mt (TM_FILE): Update.
2504 * config/sparc/sol2.mt (TM_FILE): Update.
2505 * config/sparc/sol2-64.mt (TM_FILE): Update.
2506 * config/sparc/obsd64.mt (TM_FILE): Update.
2507 * config/sparc/obsd.mt (TM_FILE): Update.
2508 * config/sparc/nbsd64.mt (TM_FILE): Update.
2509 * config/sparc/nbsd.mt (TM_FILE): Update.
2510 * config/sparc/linux64.mt (TM_FILE): Update.
2511 * config/sparc/linux.mt (TM_FILE): Update.
2512 * config/sparc/fbsd.mt (TM_FILE): Update.
2513 * config/sh/wince.mt (TM_FILE): Update.
2514 * config/sh/nbsd.mt (TM_FILE): Update.
2515 * config/sh/linux.mt (TM_FILE): Update.
2516 * config/sh/embed.mt (TM_FILE): Update.
2517 * config/s390/s390.mt (TM_FILE): Update.
2518 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
2519 * config/rs6000/rs6000.mt (TM_FILE): Update.
2520 * config/rs6000/aix4.mt (TM_FILE): Update.
2521 * config/powerpc/vxworks.mt (TM_FILE): Update.
2522 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
2523 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
2524 * config/powerpc/obsd.mt (TM_FILE): Update.
2525 * config/powerpc/nbsd.mt (TM_FILE): Update.
2526 * config/powerpc/linux.mt (TM_FILE): Update.
2527 * config/powerpc/aix.mt (TM_FILE): Update.
2528 * config/pa/obsd.mt (TM_FILE): Update.
2529 * config/pa/linux.mt (TM_FILE): Update.
2530 * config/pa/hppahpux.mt (TM_FILE): Update.
2531 * config/pa/hppa64.mt (TM_FILE): Update.
2532 * config/pa/hppa.mt (TM_FILE): Update.
2533 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
2534 * config/mips/wince.mt (TM_FILE): Update.
2535 * config/mips/vxmips.mt (TM_FILE): Update.
2536 * config/mips/nbsd.mt (TM_FILE): Update.
2537 * config/mips/linux.mt (TM_FILE): Update.
2538 * config/mips/irix6.mt (TM_FILE): Update.
2539 * config/mips/irix5.mt (TM_FILE): Update.
2540 * config/mips/embed.mt (TM_FILE): Update.
2541 * config/m68k/vxworks68.mt (TM_FILE): Update.
2542 * config/m68k/st2000.mt (TM_FILE): Update.
2543 * config/m68k/os68k.mt (TM_FILE): Update.
2544 * config/m68k/obsd.mt (TM_FILE): Update.
2545 * config/m68k/nbsd.mt (TM_FILE): Update.
2546 * config/m68k/monitor.mt (TM_FILE): Update.
2547 * config/m68k/linux.mt (TM_FILE): Update.
2548 * config/m68k/cisco.mt (TM_FILE): Update.
2549 * config/ia64/linux.mt (TM_FILE): Update.
2550 * config/ia64/aix.mt (TM_FILE): Update.
2551 * config/ia64/ia64.mt (TM_FILE): Update.
2552 * config/i386/vxworks.mt (TM_FILE): Update.
2553 * config/i386/obsd64.mt (TM_FILE): Update.
2554 * config/i386/obsd.mt (TM_FILE): Update.
2555 * config/i386/nto.mt (TM_FILE): Update.
2556 * config/i386/nbsd64.mt (TM_FILE): Update.
2557 * config/i386/nbsd.mt (TM_FILE): Update.
2558 * config/i386/linux64.mt (TM_FILE): Update.
2559 * config/i386/linux.mt (TM_FILE): Update.
2560 * config/i386/i386sol2.mt (TM_FILE): Update.
2561 * config/i386/i386lynx.mt (TM_FILE): Update.
2562 * config/i386/fbsd64.mt (TM_FILE): Update.
2563 * config/i386/fbsd.mt (TM_FILE): Update.
2564 * config/i386/cygwin.mt (TM_FILE): Update.
2565 * config/h8300/h8300.mt (TM_FILE): Update.
2566 * config/frv/frv.mt (TM_FILE): Update.
2567 * config/cris/cris.mt (TM_FILE): Update.
2568 * config/arm/wince.mt (TM_FILE): Update.
2569 * config/arm/nbsd.mt (TM_FILE): Update.
2570 * config/arm/linux.mt (TM_FILE): Update.
2571 * config/arm/embed.mt (TM_FILE): Update.
2572 * config/alpha/nbsd.mt (TM_FILE): Update.
2573 * config/alpha/fbsd.mt (TM_FILE): Update.
2574 * config/alpha/alpha.mt (TM_FILE): Update.
2575 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
2576 * config/alpha/alpha-linux.mt (TM_FILE): Update.
2577
2578 Eliminate event_loop_p, always has the value 1.
2579 * defs.h (event_loop_p): Delete macro.
2580 * breakpoint.c (until_break_command): Simplify.
2581 * utils.c (prompt_for_continue): Simplify.
2582 * tracepoint.c (read_actions): Simplify.
2583 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
2584 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
2585 (set_prompt, init_main): Simplify.
2586 (init_signals, disconnect): Delete, unused.
2587 * remote.c (remote_async_resume)
2588 (extended_remote_async_create_inferior): Simplify.
2589 * mi/mi-interp.c (mi_input): Delete, unused.
2590 (mi_interpreter_resume, mi_command_loop): Simplify.
2591 * interps.c (current_interp_command_loop): Simplify.
2592 * infrun.c (proceed): Simplify.
2593 * infcmd.c (run_command, continue_command, step_1, jump_command)
2594 (until_command, advance_command, finish_command)
2595 (interrupt_target_command): Simplify.
2596 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
2597
2598 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2599 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2600 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2601 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2602 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2603 * mips-tdep.c (mips_dump_tdep): Do not print same.
2604
2605 2004-09-12 Andrew Cagney <cagney@gnu.org>
2606
2607 * valprint.c (print_longest): Use fputs_filtered. Make "val"
2608 const.
2609 * Makefile.in (valprint.o): Delete explict rule.
2610
2611 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
2612 reported by Dave Anderson.
2613
2614 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
2615
2616 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
2617
2618 2004-09-12 Salvador E. Tropea <set@users.sf.net>
2619 Andrew Cagney <cagney@gnu.org>
2620
2621 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
2622 (mi_cmd_data_list_register_values)
2623 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
2624 the register number computation.
2625
2626 2004-09-12 Andrew Cagney <cagney@gnu.org>
2627
2628 * ppcnbsd-nat.c: Include "inf-ptrace.h".
2629 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
2630 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
2631 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
2632 target.
2633 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
2634 inf-ptrace.o and inf-child.o.
2635 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
2636 * Makefile.in: Update dependencies.
2637
2638 2004-09-11 Andrew Cagney <cagney@gnu.org>
2639
2640 * language.c (hex_string, hex_string_custom): Move from here ...
2641 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
2642 (CELLSIZE): Increase to 50.
2643 * language.h (hex_string, hex_string_custom): Move from here ...
2644 * defs.h: ... to here.
2645 * Makefile.in: Update all dependencies.
2646
2647 2004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
2648
2649 * language.c (local_hex_format_custom): Remove.
2650 (local_hex_string): Rename to hex_string, use C format, and move to
2651 utils.c
2652 (local_hex_string_custom): Rename to hex_string_custom and change
2653 interface. Now uses C format. Move to utils.c
2654 (local_octal_format_custom): Remove.
2655 (local_decimal_format_custom): Remove.
2656 (unknown_language_defn): Remove language-specific number
2657 formatting entries.
2658 (auto_language_defn): Ditto.
2659 (local_language_defn): Ditto.
2660 * language.h (struct language_format_info): Delete declaration.
2661 (struct language_defn): Remove language_format_info fields
2662 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
2663 (local_binary_format): Remove macro.
2664 (local_binary_format_prefix): Remove macro.
2665 (local_binary_format_specifier): Remove macro.
2666 (local_binary_format_suffix): Remove macro.
2667 (local_octal_format): Remove macro.
2668 (local_octal_format_prefix): Remove macro.
2669 (local_octal_format_specifier): Remove macro.
2670 (local_octal_format_suffix): Remove macro.
2671 (local_decimal_format): Remove macro.
2672 (local_decimal_format_prefix): Remove macro.
2673 (local_decimal_format_specifier): Remove macro.
2674 (local_decimal_format_suffix): Remove macro.
2675 (local_hex_format): Remove macro.
2676 (local_hex_format_prefix): Remove macro.
2677 (local_hex_format_specifier): Remove macro.
2678 (local_hex_format_suffix): Remove macro.
2679 (local_decimal_format_custom): Remove.
2680 (local_octal_format_custom): Remove.
2681 (local_hex_format_custom): Remove.
2682 (local_hex_string): Rename to hex_string and move to defs.h.
2683 (local_hex_string_custom): Rename to hex_string_custom, change
2684 interface, and move to defs.h.
2685 * utils.c: (int_string): New function.
2686 (hex_string): New function (from language.c).
2687 (hex_string_custom): New function (from language.c).
2688 (octal2str): New function.
2689 (decimal2str): Add width parameter.
2690 (paddr_u): Use new decimal2str interface.
2691 (paddr_d): Ditto.
2692 * defs.h (hex_string): Declare.
2693 (hex_string_custom): Declare.
2694 (int_string): Declare.
2695 * printcmd.c (print_scalar_formatted): Remove localized binary
2696 formatting.
2697 * valprint.c (print_longest): Use int_string.
2698 (print_floating): Use C hex format.
2699 (print_hex_chars): Ditto.
2700 (print_binary_chars): Remove language-specific formatting.
2701 (print_octal_chars): Use C octal format.
2702 (print_decimal_chars): Delocalize format.
2703 (print_decimal): Remove.
2704 * ada-lang.c (ada_language_defn): Remove language-specific number
2705 formatting entries.
2706 * p-lang.c (pascal_language_defn): Ditto.
2707 * c-lang.c (c_language_defn): Ditto.
2708 (cplus_language_defn): Ditto.
2709 (asm_language_defn): Ditto.
2710 (minimal_language_defn): Ditto.
2711 * f-lang.c (f_language_defn): Ditto.
2712 * jv-lang.c (java_language_defn): Ditto.
2713 * m2-lang.c (m2_language_defn): Ditto.
2714 * scm-lang.c (scm_language_defn): Ditto.
2715 * objc-lang.c (objc_language_defn): Ditto.
2716 * memattr.c (mem_info_command): Use renamed hex_string_custom with
2717 new interface.
2718 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
2719 * ui-out.c (ui_out_field_core_addr): Ditto.
2720 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
2721 * exec.c (print_section_info): Ditto.
2722 * i387-tdep.c (print_i387_status_word): Ditto.
2723 (print_i387_control_word): Ditto.
2724 (i387_print_float_info): Ditto.
2725 * maint.c (maint_print_section_info): Ditto.
2726 * solib.c (info_sharedlibrary_command): Ditto.
2727 * somsolib.c (som_sharedlibrary_info_command): Ditto.
2728 * symtab.c (print_msymbol_info): Ditto.
2729 * tracepoint.c (tracepoints_info): Ditto.
2730 * solib-frv.c (lm_base): Ditto.
2731 (frv_current_sos): Ditto.
2732 (enable_break2): Ditto.
2733 (enable_break): Ditto.
2734 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
2735 (process_one_symbol): Ditto.
2736 * infcmd.c (program_info): Ditto.
2737 * mdebugread.c (parse_partial_symbols): Ditto.
2738 * symfile.c (add_symbol_file_command): Ditto.
2739 * cli/cli-cmds.c (edit_command): Ditto.
2740 (list_command): Ditto.
2741 * infcall.c (call_function_by_hand): Ditto.
2742 * remote-vx.c (vx_run_files_info): Ditto.
2743 (vx_wait): Ditto.
2744 (vx_attach): Ditto.
2745 (vx_detach): Ditto.
2746 (vx_kill): Ditto.
2747 * aix-thread.c (pdc_symbol_addrs): Ditto.
2748 (pdc_read_regs): Ditto.
2749 (pdc_write_regs): Ditto.
2750 (pdc_read_data): Ditto.
2751 (pdc_write_data): Ditto.
2752 * d10v-tdep.c (display_trace): Ditto.
2753 * rs6000-nat.c (find_toc_address): Ditto.
2754 * aix-thread.c: Don't include language.h.
2755 * buildsym.c: Ditto.
2756 * dbxread.c: Ditto.
2757 * mdebugread.c: Ditto.
2758 * rs6000-nat.c: Ditto.
2759 * buildsym.c (make_blockvector): Use renamed hex_string.
2760
2761 2004-09-10 Jason Molenda (jmolenda@apple.com)
2762
2763 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
2764 chars after 'if' or 'while' commands in user-defined commands.
2765
2766 2004-09-08 Jim Blandy <jimb@redhat.com>
2767
2768 Fix bug reported and analyzed by Olivier Crete:
2769 * symfile.c (copy_section_addr_info): New function.
2770 (symbol_file_add_with_addrs_or_offsets): Use it to save the
2771 original set of address arguments, instead of handwritten code
2772 that uses one length to allocate and a different length to
2773 initialize. Use make_cleanup_free_section_addr_info.
2774 * symfile.h (copy_section_addr_info): New declaration.
2775 * utils.c: #include "symfile.h".
2776 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
2777 New functions.
2778 * defs.h (make_cleanup_free_section_addr_info): New declaration.
2779 * Makefile.in (utils.o): Update dependencies.
2780
2781 2004-09-08 Andrew Cagney <cagney@gnu.org>
2782
2783 * thread-db.c (keep_thread_db): Delete.
2784 (thread_db_new_objfile, thread_db_create_inferior)
2785 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
2786
2787 2004-09-08 Mark Kettenis <kettenis@gnu.org>
2788
2789 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
2790 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
2791 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
2792 (i386_frameless_signal_p): Remove prototype.
2793 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
2794 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
2795 I386_SSE_NUM_REGS.
2796 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
2797 instead of FP0_REGNUM.
2798 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
2799 of FP0_REGNUM and FPC_REGNUM.
2800
2801 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
2802 (sunos_solib_create_inferior_hook): Don't call
2803 sunos_relocate_main_executable.
2804
2805 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
2806 solib_svr4_fetch_link_map_offsets to
2807 svr4_ilp32_fetch_link_map_offsets.
2808 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
2809 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
2810 svr4_ilp32_fetch_link_map_offsets.
2811 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
2812
2813 2004-09-07 Jim Blandy <jimb@redhat.com>
2814
2815 * frame.h (frame_register): Doc fix.
2816
2817 2004-09-07 Andrew Cagney <cagney@gnu.org>
2818
2819 * vx-share/wait.h: Delete #ifdef USG.
2820 * utils.c (request_quit): Ditto.
2821 * tui/tui.c (tui_reset): Ditto.
2822 * remote.c: Ditto.
2823 * remote-sds.c: Ditto.
2824 * remote-rdi.c: Ditto.
2825 * mdebugread.c: Ditto.
2826 * m68klinux-nat.c: Ditto.
2827 * infttrace.c: Ditto.
2828 * infptrace.c: Ditto.
2829 * i386v-nat.c: Ditto.
2830 * exec.c: Ditto.
2831 * dbxread.c: Ditto.
2832 * core-aout.c: Ditto.
2833
2834 2004-09-05 Joel Brobecker <brobecker@gnat.com>
2835
2836 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
2837 heuristic_proc_desc.
2838 (mips_insn32_frame_cache): Likewise.
2839
2840 2004-09-04 Joel Brobecker <brobecker@gnat.com>
2841
2842 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
2843 left behind by error.
2844
2845 2004-09-04 Joel Brobecker <brobecker@gnat.com>
2846
2847 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
2848 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
2849
2850 2004-09-04 Joel Brobecker <brobecker@gnat.com>
2851
2852 * config/rs6000/xm-aix4.h: Remove this file.
2853 * config/rs6000/aix4.mh (XM_FILE): Delete.
2854
2855 2004-09-04 Joel Brobecker <brobecker@gnat.com>
2856
2857 * config/rs6000/xm-rs6000.h: Remove this file.
2858 * config/rs6000/rs6000.mh (XM_FILE): Remove.
2859
2860 2004-09-03 Andrew Cagney <cagney@gnu.org>
2861
2862 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
2863 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
2864 only use.
2865
2866 * mips-tdep.c (temp_saved_regs): Delete.
2867 (set_reg_offset): Replace saved_regs parameter with this_cache.
2868 (heuristic_proc_desc, mips16_heuristic_proc_desc)
2869 (mips32_heuristic_proc_desc): Add this_cache parameter.
2870 (mips_insn32_frame_cache, mips_insn16_frame_cache)
2871 (after_prologue): Pass a NULL this_cache.
2872
2873 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
2874 non-kernel trap prologues.
2875
2876 * mips-tdep.c (find_proc_desc): Delete function.
2877 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
2878 simplify.
2879 (mips_insn16_frame_cache): Replace find_proc_desc with code from
2880 mips_insn32_frame_cache.
2881
2882 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
2883 Simplify as NEXT_FRAME is NULL.
2884 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
2885
2886 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
2887 local variable.
2888 (mips_skip_prologue): Update.
2889
2890 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
2891 "cur_frame" parameter.
2892 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
2893 (mips_insn32_frame_cache, find_proc_desc): Update
2894
2895 * config/vax/nm-obsd.h: Delete file.
2896 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2897 * config/vax/nm-nbsd.h: Delete file.
2898 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
2899 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2900 * config/sh/nm-nbsd.h: Delete file.
2901 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
2902 * config/rs6000/nm-rs6000ly.h: Delete file.
2903 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
2904 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
2905 * config/powerpc/nm-obsd.h: Delete file.
2906 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2907 * config/powerpc/nm-nbsd.h: Delete file.
2908 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
2909 * config/pa/nm-obsd.h: Delete file.
2910 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2911 * config/mips/nm-nbsd.h: Delete file.
2912 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
2913 * config/m88k/nm-obsd.h: Delete file.
2914 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2915 * config/m68k/nm-nbsd.h: Delete file.
2916 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
2917 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2918 * config/i386/nm-nbsd.h: Delete file.
2919 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
2920 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2921 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2922 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2923 * config/i386/nm-i386lynx.h: Delete file.
2924 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
2925 * config/arm/nm-nbsd.h: Delete file.
2926 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
2927 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2928
2929 * config/i386/tm-fbsd.h: Delete file.
2930 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
2931 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
2932
2933 * config/rs6000/tm-rs6000-aix4.h: Delete file.
2934 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
2935 * config/rs6000/aix4.mt (TM_FILE): Set to
2936 config/rs6000/tm-rs6000.h.
2937 * config/powerpc/tm-ppc-aix.h: Delete file.
2938 * config/powerpc/aix.mt (TM_FILE): Set to
2939 config/rs6000/tm-rs6000.h.
2940 * config/m68k/tm-linux.h: Delete file.
2941 * config/m68k/linux.mt (TM_FILE): Set to solib.h
2942 * config/i386/tm-linux64.h: Delete file.
2943 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
2944 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
2945
2946 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
2947 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
2948 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
2949 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
2950 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
2951 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
2952 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
2953 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
2954 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
2955
2956 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
2957 gdb_host_cpu.
2958
2959 2004-09-02 Joel Brobecker <brobecker@gnat.com>
2960
2961 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
2962 Minor reformatting. Some code factoring.
2963
2964 2004-09-02 Andrew Cagney <cagney@gnu.org>
2965
2966 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
2967 * config/vax/tm-nbsd.h: Delete file.
2968 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
2969 * config/sparc/tm-vxworks.h: Delete file.
2970 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
2971 * config/sparc/tm-nbsd.h: Delete file.
2972 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
2973 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
2974 * config/sparc/tm-linux.h: Delete file.
2975 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
2976 * config/s390/tm-linux.h: Delete file.
2977 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
2978 * config/pa/tm-bsd.h: Delete file.
2979 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
2980 * config/m68k/tm-obsd.h: Delete file.
2981 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
2982 * config/m68k/tm-nbsd.h: Delete file.
2983 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
2984 * config/i386/tm-vxworks.h: Delete file.
2985 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
2986 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
2987 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
2988 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
2989 * config/i386/tm-nbsd.h: Delete file.
2990 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
2991 * config/i386/tm-i386lynx.h: Delete file.
2992 * config/cris/cris.mt (TM_FILE): Set to solib.h.
2993 * config/cris/tm-cris.h: Delete file.
2994
2995 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
2996 * configure: Re-generate.
2997 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
2998 * config/arm/tm-nbsd.h: Delete file.
2999
3000 * config/powerpc/tm-ppcle-sim.h: Delete.
3001 * config/powerpc/tm-ppcle-eabi.h: Delete.
3002 * config/powerpc/tm-nbsd.h: Delete.
3003 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
3004 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
3005 tm-ppcle-eabi.h.
3006
3007 * config/i386/nto.mh (NAT_FILE): Delete.
3008 * config/i386/nm-nto.h: Delete.
3009
3010 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
3011 * config/m68k/tm-os68k.h: Ditto.
3012 * config/m68k/tm-monitor.h: Ditto.
3013 * config/m68k/tm-cisco.h: Ditto.
3014 * config/m68k/st2000.mt (TM_FILE): Delete.
3015 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
3016 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
3017 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
3018 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
3019
3020 * config/m68k/tm-st2000.h: Delete.
3021 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
3022 * config/sparc/fbsd.mt (TM_FILE): Delete.
3023 * config/sparc/tm-fbsd.h: Delete.
3024
3025 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
3026 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
3027 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
3028
3029 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
3030 GDB_TM_FILE and GDB_XM_FILE.
3031 * gdbarch.c: Re-generate.
3032 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
3033 quotes in macro definition.
3034 * configure.in: Re-generate.
3035
3036 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
3037 validating architecture methods.
3038 * gdbarch.c: Re-generate.
3039
3040 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
3041 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
3042 GDB_MULTI_ARCH_PARTIAL.
3043 * gdbarch.h: Re-generate.
3044
3045 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
3046 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
3047 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
3048 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
3049 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
3050 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
3051 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
3052 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
3053 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
3054 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
3055 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
3056 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
3057
3058 2004-09-01 Andrew Cagney <cagney@gnu.org>
3059
3060 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
3061 and main_func_highpc.
3062 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
3063 * objfiles.c (init_entry_point_info, objfile_relocate): Update
3064 * nlmread.c (nlm_symfile_read): Update.
3065
3066 2004-09-01 Joel Brobecker <brobecker@gnat.com>
3067
3068 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
3069 (mips_insn32_frame_cache): Inline call to find_proc_desc.
3070 (find_proc_desc): Remove dead code.
3071
3072 2004-09-01 Joel Brobecker <brobecker@gnat.com>
3073
3074 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
3075
3076 2004-09-01 Jeff Johnston <jjohnstn@redhat.com>
3077
3078 * observer.sh: Add struct so_list declaration.
3079 * Makefile.in: Add dependencies on observer.h for solib.c and
3080 breakpoint.c.
3081 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
3082 function.
3083 (_initialize_breakpoint): Register
3084 disable_breakpoints_in_unloaded_shlib as an observer of the
3085 "solib unloaded" observation event.
3086 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
3087 call decode_line_1 so unfound breakpoint errors are silent.
3088 * solib.c (update_solib_list): When a solib is discovered to have
3089 been unloaded by the program, notify all observers of the
3090 "solib unloaded" observation event.
3091
3092 2004-09-01 Andrew Cagney <cagney@gnu.org>
3093
3094 * frame.c: Include "objfiles.h".
3095 (inside_main_func): New function.
3096 (get_prev_frame): Use new inside_main_func.
3097 * Makefile.in (frame.o): Update dependencies.
3098 * defs.h (inside_main_func): Delete declaration.
3099 * blockframe.c (inside_main_func): Delete function.
3100
3101 2004-08-31 Jim Blandy <jimb@redhat.com>
3102
3103 * dwarf2read.c (is_vtable_name): New function, based on logic from
3104 read_structure_type, but passing the correct length to strncmp,
3105 and using 'sizeof' instead of 'strlen'.
3106 (read_structure_type): Call it.
3107
3108 2004-08-31 Joel Brobecker <brobecker@gnat.com>
3109
3110 * config/powerpc/aix.mh: Add comment.
3111
3112 2004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
3113
3114 * MAINTAINERS: Add self to Write-After-Approval.
3115
3116 2004-08-30 Manoj Iyer <manjo@austin.ibm.com>
3117
3118 * MAINTAINERS: Add self to Write-After-Approval.
3119
3120 2004-08-30 Andrew Cagney <cagney@gnu.org>
3121
3122 Fix PR breakpoints/1757.
3123 * infrun.c (struct execution_control_state): Replace
3124 remove_breakpoints_on_following_step with
3125 step_after_step_resume_breakpoint.
3126 (init_execution_control_state): Update.
3127 (handle_inferior_event): For signals, when stepping off a
3128 breakpoint, set step_after_step_resume_breakpoint. When
3129 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
3130 (keep_going): Delete code handling
3131 remove_breakpoints_on_following_step.
3132
3133 2004-08-29 David Lecomber <david@streamline-computing.com>
3134
3135 Fix PR gdb/648
3136 * language.h (enum array_ordering): New enum.
3137 * language.h (struct language_defn): New la_array_ordering
3138 attribute.
3139 * language.c (unknown_language_defn, auto_language_defn)
3140 (local_language_defn): Ditto.
3141 * ada-lang.c (ada_language_defn): Ditto.
3142 * c-lang.c (c_language_defn, cplus_language_defn)
3143 (asm_language_defn, minimal_language_defn): Ditto.
3144 * f-lang.c (f_language_defn): Ditto.
3145 * jv-lang.c (java_language_defn): Ditto.
3146 * m2-lang.c (f_language_defn): Ditto.
3147 * objc-lang.c (objc_language_defn): Ditto.
3148 * p-lang.c (pascal_language_defn): Ditto.
3149 * scm-lang.c (scm_language_defn): Ditto.
3150 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
3151 oriented large to small in type structure.
3152 * dwarf2read.c (read_array_order): New function.
3153 (read_array_type): Use read_array_order to check row/column
3154 major ordering.
3155
3156 2004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
3157
3158 * target.c (target_resize_to_sections): Check
3159 current_target.to_sections for an old value when updating.
3160
3161 2004-08-27 Joel Brobecker <brobecker@gnat.com>
3162
3163 * procfs.c (dbx_link_bpt_addr): New static global variable.
3164 (dbx_link_shadow_contents): New static global variable.
3165 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
3166 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
3167 if we just hit it.
3168 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
3169 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
3170 from run to run.
3171 (procfs_create_inferior): Remove syssgi syscall-exit notifications
3172 after the inferior has been forked.
3173 (remove_dbx_link_breakpoint): New function.
3174 (dbx_link_addr): New function.
3175 (insert_dbx_link_bpt_in_file): New function.
3176 (insert_dbx_link_bpt_in_region): New function.
3177 (insert_dbx_link_breakpoint): New function.
3178 (proc_trace_syscalls_1): New function, extracted from
3179 proc_trace_syscalls.
3180 (proc_trace_syscalls): Replace extract code by call to
3181 proc_trace_syscalls_1.
3182 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
3183 is no longer valid.
3184
3185 2004-08-25 Jim Blandy <jimb@redhat.com>
3186
3187 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
3188
3189 2004-08-25 Andrew Cagney <cagney@gnu.org>
3190
3191 * infrun.c (struct execution_control_state): Delete field
3192 "stepping_through_sigtramp".
3193 (init_execution_control_state): Do not set same.
3194 (context_switch): Do not pass same to save_infrun_state and
3195 load_infrun_state.
3196 * gdbthread.h (struct thread_info): Delete field
3197 stepping_through_sigtramp.
3198 (save_infrun_state, load_infrun_state): Delete parameter
3199 stepping_through_sigtramp.
3200 * thread.c (load_infrun_state, save_infrun_state): Update.
3201
3202 * infrun.c: Re-indent. Move expression operators to the beginning
3203 of the line. Remove long disabled #if 0 code.
3204
3205 2004-08-24 Andrew Cagney <cagney@gnu.org>
3206
3207 * doublest.h (floatformat_ieee_quad): Rename
3208 floatformat_ia64_quad.
3209 * doublest.c (floatformat_ieee_quad): Rename
3210 floatformat_ia64_quad.
3211 (_initialize_doublest): Update.
3212
3213 2004-08-24 Jim Blandy <jimb@redhat.com>
3214
3215 * dwarf2expr.h (struct dwarf_expr_context): New members
3216 'num_pieces' and 'pieces', for returning the result of an
3217 expression that uses DW_OP_piece.
3218 (struct dwarf_expr_piece): New struct type.
3219 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
3220 pieces.
3221 (free_dwarf_expr_context): Free pieces, if any.
3222 (add_piece): New function.
3223 (execute_stack_op): Implement DW_OP_piece.
3224 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
3225 expression is a list of pieces, print an error message.
3226 (dwarf2_loc_desc_needs_frame): If the expression yields
3227 pieces, and any piece is in a register, then we need a frame.
3228
3229 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
3230 the stack until we've decided what sort of result the evaluation
3231 has produced. Use separate variables, with more specific names.
3232
3233 2004-08-23 Richard Earnshaw <rearnsha@arm.com>
3234
3235 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
3236 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
3237 (arm_netbsd_init_abi_common): Register them.
3238
3239 2004-08-22 Mark Kettenis <kettenis@gnu.org>
3240
3241 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
3242
3243 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
3244 safe_frame_unwind_memory instead of target_read_memory.
3245
3246 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
3247 Reorder includes.
3248 (fetch_register, store_register): Remove prototypes.
3249 (child_resume): Reorganize code and comments such that it is
3250 grouped a bit more logically.
3251 (attach): Explicitly compare errno against 0.
3252 (detach): Likewise. Use perror_with_name instead of
3253 print_sys_errmsg.
3254 * Makefile.in (infptrace.o): Update dependencies.
3255
3256 * ia64-linux-nat.c: Update copyright year.
3257 (fetch_debug_register, store_debug_register)
3258 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
3259 PTRACE_TYPE_ARG3.
3260 * config/ia64/nm-linux.h: Update copyright year.
3261 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
3262
3263 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
3264 from CORE_ADDR to struct frame_info *. Use
3265 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
3266 (amd64_linux_sigtramp_p): Adjust for changed signature of
3267 and64_linux_sigtramp_start
3268
3269 * gdb_ptrace.h: GNU/Linux.
3270
3271 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
3272 Remove defines.
3273
3274 * infptrace.c: Include "gdb_assert.h".
3275 (PTRACE_XFER_TYPE): Remove define.
3276 (offsetof): Only define if U_REGS_OFFSET isn't defined.
3277 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
3278 Tweak comment.
3279 (fetch_inferior_registers, store_inferior_registers): Remove
3280 redundant culry braces. Tweak comment. s/regno/regnum.
3281 * Makefile.in (infptrace.o): Update dependencies.
3282
3283 * configure.in: Change test for return type of ptrace to default
3284 to `long' instead of `int'.
3285 * configure: Regenerate.
3286
3287 2004-08-21 Mark Kettenis <kettenis@gnu.org>
3288
3289 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
3290
3291 * configure.in: Check for ttrace function.
3292 * configure, config.in: Regenerate.
3293
3294 * gdb_ptrace.h: New file.
3295 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
3296 <sys/ptrace.h>.
3297 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
3298 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
3299 (attach): Don't define PT_ATTACH.
3300 (detach): Don't define PT_DETACH.
3301 * Makefile.in (gdb_ptrace_h): New variable.
3302 (infptrace.o): Update dependencies.
3303
3304 2004-08-16 Mark Kettenis <kettenis@gnu.org>
3305
3306 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
3307 instead of `int' if not already defined.
3308 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
3309 PTRACE_TYPE_ARG3.
3310 * infptrace.c (call_ptrace): Revert change that replaced
3311 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3312
3313 2004-08-15 Mark Kettenis <kettenis@gnu.org>
3314
3315 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
3316 Remove defines.
3317
3318 * linux-nat.c (kill_inferior): Add missing third and fourth
3319 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
3320
3321 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
3322 PTRACE_TYPE_RET.
3323
3324 * proc-why.c (proc_prettyfprint_why): Fix format string.
3325
3326 * solib-osf.c (osf_current_sos): Remove unsused label.
3327
3328 * configure.in: Add <ncurses/ncurses.h> to the list of possible
3329 curses headers.
3330 * configure, config.in: Regenerate.
3331 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
3332 <ncurses/ncurses.h>.
3333
3334 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
3335 * config/nm-nbsd.h: Update copyright year.
3336 (PTRACE_ARG3_TYPE): Remove define.
3337
3338 * sparc-nat.c (fetch_inferior_registers)
3339 (store_inferior_registers, sparc_xfer_wcookie):
3340 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3341
3342 * alphabsd-nat.c (fetch_inferior_registers):
3343 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3344 PTRACE_TYPE_ARG3.
3345 * amd64bsd-nat.c (fetch_inferior_registers)
3346 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3347 PTRACE_TYPE_ARG3.
3348 * armnbsd-nat.c: Update copyright year.
3349 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
3350 (store_register, store_regs, store_fp_register, store_fp_regs):
3351 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3352 * hppabsd-nat.c (fetch_inferior_registers)
3353 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3354 PTRACE_TYPE_ARG3.
3355 * i386bsd-nat.c (fetch_inferior_registers)
3356 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
3357 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3358 * m68kbsd-nat.c (fetch_inferior_registers)
3359 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3360 PTRACE_TYPE_ARG3.
3361 * m88kbsd-nat.c (fetch_inferior_registers)
3362 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3363 PTRACE_TYPE_ARG3.
3364 * mipsnbsd-nat.c: Update copyright year.
3365 (fetch_inferior_registers, store_inferior_registers):
3366 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3367 * ns32knbsd-nat.c: Update copyright year.
3368 (fetch_inferior_registers, store_inferior_registers):
3369 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3370 * ppcnbsd-nat.c (fetch_inferior_registers):
3371 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3372 PTRACE_TYPE_ARG3.
3373 * ppcobsd-nat.c (fetch_inferior_registers):
3374 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3375 PTRACE_TYPE_ARG3.
3376 * shnbsd-nat.c: Update copyright year.
3377 (fetch_inferior_registers, store_inferior_registers):
3378 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3379 * vaxbsd-nat.c (fetch_inferior_registers)
3380 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3381 PTRACE_TYPE_ARG3.
3382
3383 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
3384 PTRACE_TYPE_ARG3.
3385 * infptrace.c (call_ptrace, child_resume, attach, detach)
3386 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
3387 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3388 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
3389 PTRACE_TYPE_ARG3.
3390
3391 2004-08-14 Mark Kettenis <kettenis@gnu.org>
3392
3393 * defs.h: Remove out-of-date comment.
3394 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
3395 [!GETENV_PROVIDED] (getenv): Remove prototype.
3396
3397 * standalone.c: Remove file.
3398 * Makefile.in (standalone.o): Remove dependency.
3399
3400 * i386-linux-nat.c (dummy_sse_values): Remove function and
3401 prototype.
3402 (i386_linux_dr_get): Fix typo in comment.
3403 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
3404
3405 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
3406
3407 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
3408 from declaration.
3409 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
3410 from definition.
3411
3412 2004-08-13 Mark Kettenis <kettenis@gnu.org>
3413
3414 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
3415 parenthesis in definition.
3416 * configure: Regenerated.
3417
3418 2004-08-12 Michael Chastain <mec.gnu@mindspring.com>
3419
3420 * PROBLEMS: Mention build/1411.
3421
3422 2004-08-09 Robert Millan <robertmh@gnu.org>
3423
3424 Committed by Nathanael Nerode.
3425 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
3426 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
3427
3428 2004-08-12 Andrew Cagney <cagney@gnu.org>
3429
3430 * NEWS: Mention fixes in GDB 6.2.1.
3431 * PROBLEMS: Remove mention of mips-irix.
3432
3433 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3434
3435 * config/powerpc/xm-aix.h: Delete.
3436 * config/powerpc/aix.mh (MH_FILE): Remove.
3437 * config/powerpc/aix432.mh (MH_FILE): Remove.
3438
3439 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3440
3441 * config/powerpc/aix.mh: Remove obsolete comment.
3442 * config/powerpc/aix432.mh: Likewise.
3443
3444 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3445
3446 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
3447
3448 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3449
3450 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
3451 this file is now empty.
3452 * config/xm-aix4.h: Remove, this file is no longer included
3453 anywhere.
3454
3455 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3456
3457 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
3458 that file is now empty.
3459 (termdef): Remove prototype, function no longer used.
3460
3461 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3462
3463 * doc/gdbint.texinfo (Host Definition): Remove documentation
3464 for USE_O_NOCTTY, no longer used.
3465 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
3466 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
3467
3468 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3469
3470 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
3471 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
3472 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
3473
3474 2004-08-11 Mark Kettenis <kettenis@gnu.org>
3475
3476 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
3477 instead of FIVE_ARG_PTRACE.
3478
3479 * inflow.c (O_NOCTTY): Define to zero if not already defined.
3480 (new_tty): Use O_NOCTTY unconditionally.
3481
3482 2004-08-10 Mark Kettenis <kettenis@gnu.org>
3483
3484 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
3485 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
3486 fflush on stdout.
3487
3488 2004-08-10 Joel Brobecker <brobecker@gnat.com>
3489
3490 * xcoff_symfile_finish: Replace last call to xmfree by call
3491 to xfree.
3492
3493 2004-08-10 Andrew Cagney <cagney@gnu.org>
3494
3495 * main.c (captured_main): Delete call to init_malloc.
3496 * defs.h (init_malloc): Delete declaration.
3497 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
3498 (init_malloc): Delete functions.
3499
3500 * defs.h (xmfree): Delete.
3501 * utils.c (xmfree): Delete function.
3502 (xfree): Inline calls to xmfree and mfree.
3503 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
3504 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
3505 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
3506 * somread.c (som_symfile_finish): Ditto.
3507 * objfiles.c (allocate_objfile, free_objfile):
3508 * nlmread.c (nlm_symfile_finish): Ditto.
3509 * hpread.c (hpread_symfile_finish): Ditto.
3510 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
3511 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
3512 * coffread.c (coff_symfile_finish): Ditto.
3513
3514 * defs.h (xmcalloc): Delete declaration.
3515 * utils.c (xmcalloc): Delete.
3516 (xcalloc): Inline calls to xmcalloc and mcalloc.
3517 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
3518 xcalloc and xfree.
3519 * symtab.c (create_demangled_names_hash): Ditto.
3520
3521 * defs.h (xmrealloc): Delete.
3522 * utils.c (xmrealloc): Delete.
3523 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
3524 * symmisc.c (extend_psymbol_list): Use xrealloc.
3525 * source.c (find_source_lines): Ditto.
3526 * hpread.c (hpread_lookup_type): Ditto.
3527 * dbxread.c (add_bincl_to_list): Ditto.
3528
3529 * utils.c (xmmalloc): Delete.
3530 (xmalloc): Inline xmmalloc and mmalloc calls.
3531 (msavestring): Use xmalloc.
3532 * defs.h (xmmalloc): Delete declaration.
3533 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
3534 xmmalloc.
3535 * symmisc.c (extend_psymbol_list): Ditto.
3536 * symfile.c (init_psymbol_list): Ditto.
3537 * source.c (find_source_lines): Ditto.
3538 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
3539 * elfread.c (elf_symtab_read): Ditto.
3540 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
3541 * coffread.c (coff_symfile_init): Ditto.
3542
3543 2004-08-10 David Carlton <carlton@bactrian.org>
3544
3545 * MAINTAINERS: Remove David Carlton from c++ testsuite
3546 maintainers.
3547
3548 2004-08-10 Jerome Guitton <guitton@gnat.com>
3549
3550 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
3551 print a line feed before the prompt.
3552
3553 2004-08-10 Mark Kettenis <kettenis@gnu.org>
3554
3555 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
3556
3557 2004-08-09 Joel Brobecker <brobecker@gnat.com>
3558
3559 General cleanup of the AIX xm include file:
3560 * config/xm-aix4.h (fd_set): Remove undefine.
3561 Remove include of <sys/select.h>.
3562 (HAVE_TERMIO): Remove define.
3563 (USG): Likewise.
3564 (NULL): Remove redefine.
3565 (alloca): Remove #pragma.
3566 (vfork): Remove define.
3567 (termdef): Remove.
3568 (SIGWINCH_HANDLER): Remove.
3569 (SIGWINCH_HANDLER_BODY): Remove.
3570
3571 2004-08-09 Mark Kettenis <kettenis@gnu.org>
3572
3573 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
3574 GDB_OSABI_OPENBSD_ELF.
3575
3576 2004-08-07 Robert Millan <robertmh@gnu.org>
3577
3578 * bsd-kvm.c: Check for nlist.h before including it.
3579
3580 2004-08-09 Mark Kettenis <kettenis@gnu.org>
3581
3582 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
3583 sigcontext' offset consistency checks for ancient BSD.
3584
3585 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
3586
3587 * configure.in: Check for <sys/types.h>. Check return and
3588 argument types of ptrace.
3589 * configure, config.in: Regenerate.
3590
3591 2004-08-09 Jim Blandy <jimb@redhat.com>
3592
3593 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
3594 rs6000_register_sim_regno): Doc fixes.
3595
3596 2004-08-08 Joel Brobecker <brobecker@gnat.com>
3597
3598 * mips-tdep.c: Include "floatformat.h".
3599 (n32n64_floatformat_always_valid): New function.
3600 (floatformat_n32n64_long_double_big): New constant.
3601 (mips_gdbarch_init): Set size and format of long double
3602 for N32 and N64 ABIs.
3603 * Makefile.in (mips-tdep.o): Update dependencies.
3604
3605 2004-08-08 Andrew Cagney <cagney@gnu.org>
3606
3607 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
3608 print. Improve script's error messages.
3609 * gdbarch.h: Re-generate.
3610
3611 * gdbarch.sh (pformat): New function.
3612 (float_format, double_format, long_double_format): List with bit
3613 members. Use pformat when printing.
3614 * gdbarch.c, gdbarch.h: Re-generate.
3615
3616 2004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
3617
3618 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
3619 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
3620 (ppcnbsd_supply_pcb): New function.
3621 (_initialize_ppcnbsd_nat): New prototype and function.
3622 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
3623 (LOADLIBES): New variable.
3624 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
3625
3626 2004-08-08 Andrew Cagney <cagney@gnu.org>
3627
3628 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
3629 (builtin_type_ieee_double, builtin_type_ia64_quad)
3630 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
3631 BE/LE floating-point types.
3632 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
3633 (builtin_type_ieee_double, builtin_type_ia64_quad)
3634 (builtin_type_ia64_spill): Declare.
3635 * doublest.c (_initialize_doublest, floatformat_ieee_single)
3636 (floatformat_ieee_double, floatformat_arm_ext)
3637 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
3638 of LE/BE floatformats.
3639 * doublest.h: (struct floatformat, floatformat_ieee_single)
3640 (floatformat_ieee_double, floatformat_arm_ext)
3641 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
3642
3643 2004-08-08 Mark Kettenis <kettenis@gnu.org>
3644
3645 * i386gnu-nat.c (gnu_store_registers): Fix typo.
3646
3647 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
3648 instead of regcache_raw_supply when storing the registers.
3649
3650 * i386gnu-nat.c: Update copyright year.
3651 (gnu_store_registers): Don't use deprecated_registers and
3652 deprecated_registers_valid. Use regcache_valid_p and
3653 regcache_raw_supply instead.
3654
3655 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
3656 frame_pc_unwind.
3657
3658 * procfs.c (procfs_pid_to_str): Remove redundant and unused
3659 variables. Incapitalized "process".
3660
3661 * configure.in: Add cursesX to the list of possible curses libs.
3662 Add cursesX.h to the list of possible curses headers.
3663 * configure, config.in: Regenerate.
3664
3665 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
3666
3667 * configure.in: Test for struct lwp in <sys/lwp.h>.
3668 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
3669 the offset of l_addr in struct lwp.
3670
3671 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
3672
3673 * bsd-kvm.c: Include "gdbcore.h"
3674 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
3675
3676 2004-08-07 Andrew Cagney <cagney@gnu.org>
3677
3678 * gdbtypes.c (build_flt, build_complex): New functions.
3679 (gdbtypes_post_init): Use.
3680
3681 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
3682
3683 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
3684 through to builtin_type_uint128.
3685
3686 * c-exp.y: Use builtin_type function to obtain builtin types.
3687
3688 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
3689 builtin_uint128.
3690 * gdbtypes.c (gdbtypes_post_init): Update.
3691 (build_gdbtypes): Move initialization of builtin_type_int0
3692 through to builtin_type_uint128 from here ...
3693 (_initialize_gdbtypes): ... to here.
3694 * d10v-tdep.c (d10v_register_type): Update.
3695
3696 * doublest.c: Update copyright.
3697 (floatformat_from_length): Call error when floatformat is NULL.
3698 (extract_floating_by_length): Remove NULL fmt check.
3699 (store_floating_by_length): Ditto.
3700
3701 2004-08-07 Andrew Cagney <cagney@gnu.org>
3702
3703 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
3704 that the register is valid.
3705
3706 2004-08-05 Mark Kettenis <kettenis@chello.nl>
3707
3708 * i386-linux-tdep.c (i386_linux_sigtramp_start)
3709 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
3710 struct frame_info *. Use safe_frame_unwind_memory instead of
3711 deprecated_read_memory_nobpt.
3712 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
3713 changed signature of i386_linux_sigtramp_start and
3714 i386_linux_rt_sigtramp_start.
3715
3716 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
3717 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
3718 instead of deprecated_read_memory_nobpt.
3719 (i386nbsd_sigtramp_p): Adjust for changed signature of
3720 i386nbsd_sigtramp_offset.
3721
3722 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
3723 safe_frame_unwind_memory instead of target_read_memory.
3724
3725 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
3726 !NO_SYS_FILE.
3727 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
3728 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
3729 (_initialize_kernel_u_addr): Remove prototype and function.
3730 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
3731 !NO_SYS_FILE.
3732 * xcoffread.c: Likewise.
3733
3734 2004-08-06 Mark Kettenis <kettenis@gnu.org>
3735
3736 * vax-nat.c: New file.
3737 * vaxbsd-nat.c: Tweak comment.
3738 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
3739 vaxnbsd-tdep.c.
3740 (vax-nat.o): New dependency.
3741 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
3742 (vax-*-ultrix2*): Remove.
3743 * config/vax/vax.mh: New file.
3744 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
3745 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
3746 (vax_register_u_addr): New prototype.
3747 (REGISTER_U_ADDR): Define using vax_register_u_addr.
3748 * config/vax/vaxult2.mh: Remove file.
3749 * config/vax/vaxult.mh: Remove file.
3750 * config/vax/vaxbsd.mh: Remove file.
3751 * config/vax/vax.mt (TM_FILE): Remove.
3752 * config/vax/tm-vaxbsd.h: Remove file.
3753
3754 2004-08-06 Joel Brobecker <brobecker@gnat.com>
3755
3756 * aix-thread.c (get_signaled_thread): New function.
3757 (iter_trap): Delete, no longer used.
3758 (iter_tid): New function.
3759 (pd_update): Find the thread that received the SIGTRAP signal
3760 by first locating the kernel thread, and then finding its
3761 associated thread.
3762
3763 2004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
3764
3765 * lin-lwp.c (child_wait): Continue inferior after processing
3766 PTRACE_EVENT_CLONE event.
3767
3768 2004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
3769
3770 * MAINTAINERS: Add self to Write-After-Approval.
3771
3772 2004-08-05 Jeff Johnston <jjohnstn@redhat.com>
3773
3774 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
3775 libunwind-xxxx.so" where xxxx is UNW_TARGET.
3776
3777 2004-08-05 Andrew Cagney <cagney@gnu.org>
3778
3779 * config/xm-sysv4.h: Delete file.
3780 * config/mips/xm-irix5.h: Delete file.
3781 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
3782 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
3783 * config/ia64/xm-aix.h: Delete file.
3784 * config/ia64/aix.mh (XM_FILE): Delete.
3785 * config/pa/xm-hppah.h: Delete file.
3786 * config/pa/hpux11w.mh (XM_FILE): Delete.
3787 * config/pa/hpux11.mh (XM_FILE): Delete.
3788 * config/pa/hpux1020.mh (XM_FILE): Delete.
3789 * config/pa/hppahpux.mh (XM_FILE): Delete.
3790
3791 * config/alpha/xm-alphalinux.h: Delete file.
3792 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
3793 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
3794 * config/alpha/xm-alphaosf.h: Delete file.
3795 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
3796 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
3797 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
3798 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
3799
3800 * config/i386/xm-i386v.h: Delete file.
3801 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
3802 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
3803 * config/i386/xm-i386sco.h: Delete file.
3804 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
3805 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
3806 * config/i386/xm-i386v4.h: Delete file.
3807 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
3808 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
3809 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
3810 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
3811
3812 * config/vax/xm-vax.h: Delete file.
3813 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
3814 * config/vax/xm-vaxult2.h: Delete file.
3815 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
3816 * config/vax/vaxult2.mh (XM_FILE): Delete.
3817 * config/vax/xm-vaxult.h: Delete file.
3818 * config/vax/vaxult.mh (XM_FILE): Delete.
3819 * config/vax/xm-vaxbsd.h: Delete file.
3820 * config/vax/vaxbsd.mh (XM_FILE): Delete.
3821
3822 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
3823 * gdbarch.h, gdbarch.c: Re-generate.
3824 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
3825 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
3826 * frame.h: Delete deprecated_read_fp from comments.
3827 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
3828 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
3829
3830 2004-08-04 Mark Kettenis <kettenis@gnu.org>
3831
3832 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
3833 trampoline in OpenBSD 3.5-current.
3834
3835 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
3836 SSE registers.
3837
3838 * Makefile.in: Remove embedded page breaks.
3839
3840 2004-08-04 Jim Blandy <jimb@redhat.com>
3841
3842 * regcache.c (regcache_raw_read): Assert that, after calling
3843 target_fetch_registers, the register we're reading is cached.
3844
3845 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
3846 a call to 'internal_error', with a more helpful error message.
3847 * rs6000-tdep.c (e500_pseudo_register_read,
3848 e500_pseudo_register_write, rs6000_store_return_value): Same.
3849
3850 2004-08-04 Andrew Cagney <cagney@gnu.org>
3851
3852 * Makefile.in: Update dependencies.
3853
3854 2004-08-04 Jim Blandy <jimb@redhat.com>
3855
3856 Change the layout of the PowerPC E500 raw register cache to allow
3857 the lower 32-bit halves of the GPRS to be their own raw registers,
3858 not pseudoregisters.
3859 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
3860 add ppc_ev0_upper_regnum flag.
3861 * rs6000-tdep.c: #include "reggroups.h".
3862 (spe_register_p): Recognize the ev upper half registers as SPE
3863 registers.
3864 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
3865 registers.
3866 (e500_move_ev_register): New function.
3867 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
3868 vector registers are the pseudo-registers now, formed by splicing
3869 together the gprs and the upper-half registers.
3870 (e500_register_reggroup_p): New function.
3871 (P): Macro deleted.
3872 (P8, A4): New macro.
3873 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
3874 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
3875 macros.
3876 (registers_e500): Rearrange register set so that the raw register
3877 set contains 32-bit GPRs and upper-half registers, and the SPE
3878 vector registers become pseudo-registers.
3879 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
3880 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
3881 register numbers are now the same for the E500 as they are for
3882 other PowerPC variants. Register e500_register_reggroup_p as the
3883 register group function for the E500.
3884 * Makefile.in (rs6000-tdep.o): Update dependencies.
3885
3886 Adapt PPC E500 native support to the new raw regcache layout.
3887 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
3888 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
3889 (fetch_spe_register, store_spe_register): Handle fetching/storing
3890 all the SPE registers at once, if regno == -1. These now take
3891 over the job of fetch_spe_registers and store_spe_registers.
3892 (fetch_spe_registers, store_spe_registers): Deleted.
3893 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
3894 unconditionally; they're always raw. Fetch/store SPE upper half
3895 registers, if present, instead of ev registers.
3896 (fetch_register, store_register): Remove sanity checks: gprs are
3897 never pseudo-registers now, so we never need to even mention any
3898 registers that are ever pseudoregisters.
3899
3900 Use a fixed register numbering when communicating with the PowerPC
3901 simulator.
3902 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
3903 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
3904 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
3905 New functions.
3906 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
3907 init_sim_regno_table.
3908 * Makefile.in (gdb_sim_ppc_h): New variable.
3909 (rs6000-tdep.o): Update dependencies.
3910
3911 2004-08-02 Andrew Cagney <cagney@gnu.org>
3912
3913 * cris-tdep.c (cris_register_size): Restore function, still used
3914 locally.
3915
3916 * gdbarch.sh (deprecated_target_read_fp)
3917 (deprecated_frame_locals_address, deprecated_frame_args_address)
3918 (deprecated_frame_chain_valid, deprecated_frame_chain)
3919 (deprecated_init_extra_frame_info, deprecated_pop_frame)
3920 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
3921 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
3922 * gdbarch.h, gdbarch.c: Re-generate.
3923 * regcache.c (deprecated_read_fp): Do not call
3924 DEPRECATED_TARGET_READ_FP_P.
3925 * infcmd.c (default_print_registers_info): Do not call
3926 DEPRECATED_DO_REGISTERS_INFO.
3927 * frame-base.c (default_frame_locals_address): Do not call
3928 DEPRECATED_FRAME_LOCALS_ADDRESS.
3929 (default_frame_args_address): Do not call
3930 DEPRECATED_FRAME_ARGS_ADDRESS.
3931
3932 * gdbarch.sh (deprecated_register_raw_size)
3933 (deprecated_register_virtual_size:int): Delete.
3934 * gdbarch.h, gdbarch.c: Re-generate.
3935 * cris-tdep.c (cris_register_size): Delete.
3936 (cris_gdbarch_init): Update.
3937 * alpha-tdep.c (alpha_register_raw_size)
3938 (alpha_register_virtual_size): Delete.
3939 (alpha_gdbarch_init): Update.
3940
3941 * gdbarch.sh (deprecated_register_virtual_type)
3942 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
3943 (deprecated_dummy_write_sp): Delete.
3944 * gdbarch.h, gdbarch.c: Re-generate.
3945
3946 * gdbarch.sh (deprecated_register_bytes): Delete.
3947 * gdbarch.h, gdbarch.c: Re-generate.
3948 * regcache.c (deprecated_register_bytes): New function.
3949 * regcache.h (deprecated_register_bytes): Declare.
3950 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3951 * v850-tdep.c (v850_gdbarch_init): Update.
3952 * sh64-tdep.c (sh64_gdbarch_init): Update.
3953 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
3954 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3955 * mcore-tdep.c (mcore_gdbarch_init): Update.
3956 * cris-tdep.c (cris_gdbarch_init): Update.
3957 * arm-tdep.c (arm_gdbarch_init): Update.
3958 * remote.c (init_remote_state): Update.
3959 * remote-vx.c (vx_prepare_to_store): Update.
3960 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
3961 * irix5-nat.c (fetch_core_registers): Update.
3962 * cris-tdep.c (cris_register_bytes_ok): Update.
3963 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
3964
3965 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
3966 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
3967 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
3968 (mips_insn16_frame_base_address, mips_insn16_frame_base)
3969 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
3970 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
3971 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
3972 (mips_insn32_frame_base_address, mips_insn32_frame_base)
3973 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
3974 with mips_insn16 and mips_insn32.
3975
3976 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
3977 * rs6000-tdep.c (rs6000_push_dummy_call)
3978 (rs6000_extract_return_value): Use register_size.
3979 * xstormy16-tdep.c (xstormy16_get_saved_register)
3980 (xstormy16_extract_return_value): Ditto.
3981 * valops.c (value_assign): Ditto.
3982 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
3983 * v850-tdep.c (v850_extract_return_value): Ditto.
3984 * tracepoint.c (collect_symbol): Ditto.
3985 * target.c (debug_print_register): Ditto.
3986 * stack.c (frame_info): Ditto.
3987 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
3988 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
3989 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
3990 (store_register_using_P): Ditto.
3991 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
3992 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
3993 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
3994 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
3995 * regcache.c (deprecated_read_register_bytes)
3996 (deprecated_write_register_bytes, read_register)
3997 (write_register): Ditto.
3998 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
3999 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
4000 * monitor.c (monitor_supply_register, monitor_fetch_register)
4001 (monitor_store_register): Ditto.
4002 * mn10300-tdep.c (mn10300_pop_frame_regular)
4003 (mn10300_print_register): Ditto.
4004 * mipsv4-nat.c (fill_fpregset): Ditto.
4005 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
4006 (mips64_fill_fpregset): Ditto.
4007 * mi/mi-main.c (register_changed_p, get_register)
4008 (mi_cmd_data_write_register_values): Ditto.
4009 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
4010 * irix5-nat.c (fill_gregset, fetch_core_registers):
4011 * infrun.c (write_inferior_status_register): Ditto.
4012 * infptrace.c (fetch_register, store_register): Ditto.
4013 * infcmd.c (default_print_registers_info): Ditto.
4014 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
4015 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
4016 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
4017 * hpux-thread.c (hpux_thread_fetch_registers)
4018 (hpux_thread_store_registers): Ditto.
4019 * hppah-nat.c (store_inferior_registers, fetch_register):
4020 * findvar.c (value_from_register): Ditto.
4021 * dve3900-rom.c (fetch_bitmapped_register):
4022 * cris-tdep.c (cris_gdbarch_init): Ditto.
4023 * alpha-tdep.h: Ditto.
4024 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
4025
4026 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
4027 DEPRECATED_REGISTER_RAW_SIZE from comments.
4028 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
4029 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
4030 DEPRECATED_REGISTER_RAW_SIZE.
4031 * findvar.c (value_of_register): Simplify by assuming that the
4032 registers raw and virtual sizes are identical.
4033 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
4034 comment.
4035 * arch-utils.c (generic_register_size): Simplify by assuming
4036 register_type.
4037
4038 * regcache.c (legacy_read_register_gen, real_register)
4039 (legacy_write_register_gen): Delete, not used.
4040
4041 * regcache.c (struct regcache_descr): Delete legacy_p.
4042 (init_legacy_regcache_descr): Delete function.
4043 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
4044 Do not use deprecated register functions.
4045 (regcache_raw_read, deprecated_write_register_gen):
4046 (deprecated_read_register_gen, regcache_raw_write): Delete code
4047 predicated on legacy_p.
4048 (register_size): Delete check against register raw size.
4049
4050 * cris-tdep.c (cris_register_type): Replace
4051 cris_register_virtual_type.
4052 (cris_gdbarch_init): Update, set register_type.
4053
4054 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
4055 * gdbarch.h, gdbarch.c: Re-generate.
4056 * arm-tdep.c (arm_frameless_function_invocation): Delete.
4057 (arm_gdbarch_init) Do not set frameless function invocation.
4058 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
4059 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
4060 * frv-tdep.c (frv_frameless_function_invocation): Delete.
4061 (frv_gdbarch_init): Do not set frameless function invocation.
4062 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
4063 * sh-tdep.c (sh_gdbarch_init): Ditto.
4064 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
4065 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4066 * avr-tdep.c (avr_gdbarch_init): Ditto.
4067
4068 * blockframe.c (legacy_frame_chain_valid): Delete function.
4069
4070 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
4071 and pc. Update comments.
4072 (pc_in_dummy_frame): Delete function.
4073 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
4074 use the "id".
4075 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
4076 call_hi, top and pc, use the id.
4077 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
4078
4079 * dummy-frame.c: Include "gdb_string.h".
4080 (generic_save_call_dummy_addr, generic_push_dummy_frame)
4081 (generic_save_dummy_frame_tos): Delete.
4082 (dummy_frame_push): New function, replaces above.
4083 * dummy-frame.h: Update copyright.
4084 (dummy_frame_push): Declare.
4085 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
4086 (generic_save_call_dummy_addr): Delete declarations.
4087 * infcall.c: Include "dummy-frame.h".
4088 (call_function_by_hand): Add locals caller_regcache,
4089 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
4090 with call to frame_save_as_regcache plus cleanup. Delete calls to
4091 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
4092 Move clear_proceed_status to just before the resume, add call to
4093 dummy_frame_push (discard cleanup).
4094 * Makefile.in (infcall.o): Add $(dummy_frame_h).
4095 (dummy-frame.o): Add $(gdb_string_h).
4096
4097 2004-08-01 Andrew Cagney <cagney@gnu.org>
4098
4099 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
4100 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
4101 * dummy-frame.c (find_dummy_frame): Delete.
4102 (struct dummy_frame_cache, dummy_frame_sniffer)
4103 (dummy_frame_prev_register, dummy_frame_this_id)
4104 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
4105 frame unwinder using a dummy_frame_cache.
4106
4107 2004-08-01 Andrew Cagney <cagney@gnu.org>
4108
4109 * frame.h (frame_save_as_regcache): Declare.
4110 * frame.c (frame_save_as_regcache): New function.
4111 (do_frame_read_register): Replace do_frame_unwind_register.
4112 (frame_pop): Use frame_save_as_regcache.
4113 * dummy-frame.c (generic_push_dummy_frame): Use
4114 frame_save_as_regcache.
4115
4116 2004-08-01 Joel Brobecker <brobecker@gnat.com>
4117
4118 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
4119 file as included until we record the first line in the linetable.
4120
4121 2004-08-01 Andrew Cagney <cagney@gnu.org>
4122
4123 * frame.h (deprecated_pop_dummy_frame)
4124 (deprecated_read_register_dummy)
4125 (deprecated_generic_find_dummy_frame): Delete.
4126 * dummy-frame.c (deprecated_generic_find_dummy_frame)
4127 (deprecated_read_register_dummy)
4128 (deprecated_find_dummy_frame_regcache)
4129 (discard_innermost_dummy)
4130 (deprecated_pop_dummy_frame): Delete.
4131 (dummy_frame_this_id): Simplify.
4132 (struct dummy_frame): Delete "fp" and "sp".
4133 (find_dummy_frame): Simplify.
4134 (generic_push_dummy_frame): Do not set "fp" or "sp".
4135 (fprint_dummy_frames): Do not print "fp" and "sp"
4136
4137 2004-08-01 Mark Kettenis <kettenis@gnu.org>
4138
4139 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
4140 (struct i386_insn): New structure.
4141 (i386_match_insn): New function.
4142 (i386_frame_setup_skip_insns): New variable.
4143 (i386_analyze_frame_setup): Change to use i386_match_insn and the
4144 array i386_frame_setup_insns of instructions that should be
4145 skipped inside the frame setup sequence.
4146
4147 2004-08-01 Andrew Cagney <cagney@gnu.org>
4148
4149 * frame.h (deprecated_frame_xmalloc_with_cleanup)
4150 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
4151 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
4152 * stack.c (frame_info): Delete references to
4153 DEPRECATED_FRAME_INIT_SAVED_REGS and
4154 deprecated_get_frame_saved_regs.
4155 * frame.c (struct frame_info): Delete saved_regs and extra_info.
4156 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
4157 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
4158 (frame_unwind_register_signed)
4159 (frame_unwind_register_unsigned)
4160 (frame_unwind_unsigned_register): Use register_size.
4161 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
4162 (deprecated_frame_xmalloc_with_cleanup)
4163 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
4164 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
4165
4166 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
4167 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
4168 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
4169 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
4170
4171 * infcall.c (call_function_by_hand): Do not use
4172 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
4173 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
4174 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
4175 DEPRECATED_STACK_ALIGN.
4176
4177 2004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
4178
4179 Committed by Andrew Cagney.
4180 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
4181
4182 2004-08-01 Andrew Cagney <cagney@gnu.org>
4183
4184 * mips-tdep.c (mips16_frame_cache)
4185 (mips16_frame_this_id, mips16_frame_prev_register)
4186 (mips16_frame_unwind, mips16_frame_sniffer)
4187 (mips16_frame_base_address, mips16_frame_base)
4188 (mips16_frame_base_sniffer, mips32_frame_cache)
4189 (mips32_frame_this_id, mips32_frame_prev_register)
4190 (mips32_frame_unwind, mips32_frame_sniffer)
4191 (mips32_frame_base_address, mips32_frame_base)
4192 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
4193 separate heuristic mips16 and mips32 unwinders.
4194 (mips_stub_frame_cache, mips_stub_frame_this_id)
4195 (mips_stub_frame_prev_register)
4196 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
4197 (mips_stub_frame_base_address, mips_stub_frame_base)
4198 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
4199 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
4200 match true mdebug frames.
4201 (non_heuristic_proc_desc): Add forward declaration.
4202
4203 2004-08-01 Andrew Cagney <cagney@gnu.org>
4204
4205 * config/mips/tm-irix6.h: Delete file.
4206 * config/mips/tm-irix5.h: Delete file.
4207 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
4208 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
4209
4210 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
4211 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
4212 * config/nm-gnu.h (NO_CORE_OPS): Delete.
4213 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
4214 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
4215 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
4216 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
4217 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
4218 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
4219 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
4220 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
4221 (TARGET_SIGNAL_RAW_VALUES): Delete.
4222 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
4223 Delete.
4224 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
4225 (TARGET_HW_WATCH_LIMIT): Delete.
4226 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
4227 * minimon.h: Delete file.
4228
4229 * trad-frame.c (trad_frame_get_this_base)
4230 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
4231 functions.
4232 * trad-frame.h (trad_frame_set_this_base)
4233 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
4234
4235 2004-07-31 Andrew Cagney <cagney@gnu.org>
4236
4237 * trad-frame.c (trad_frame_get_prev_register): Rename
4238 trad_frame_get_prev_register.
4239 * vax-tdep.c (vax_frame_prev_register): Update.
4240 * trad-frame.h: Update.
4241 * trad-frame.c (trad_frame_get_register): Update.
4242 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
4243 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
4244 Update.
4245 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
4246 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
4247 Update.
4248 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
4249 Update.
4250 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
4251 Update.
4252 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
4253 Update.
4254 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
4255 Update.
4256 * s390-tdep.c (s390_frame_prev_register)
4257 (s390_stub_frame_prev_register)
4258 (s390_sigtramp_frame_prev_register): Update.
4259 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
4260 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
4261 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
4262 * m88k-tdep.c (m88k_frame_prev_register)
4263 * m68hc11-tdep.c (m68hc11_frame_prev_register)
4264 * m32r-tdep.c (m32r_frame_prev_register): Update.
4265 * hppa-tdep.c (hppa_frame_prev_register_helper)
4266 * frv-tdep.c (frv_frame_prev_register): Update.
4267 * d10v-tdep.c (d10v_frame_prev_register): Update.
4268 * cris-tdep.c (cris_frame_prev_register): Update.
4269 * avr-tdep.c (avr_frame_prev_register): Update.
4270 * arm-tdep.c (arm_prologue_prev_register)
4271 (arm_sigtramp_prev_register): Update.
4272
4273 2004-07-31 Andrew Cagney <cagney@gnu.org>
4274
4275 * frame.h (legacy_saved_regs_unwind)
4276 (legacy_frame_chain_valid, legacy_frame_p)
4277 (enum frame_type): Delete UNKNOWN_FRAME.
4278 * dummy-frame.c (dummy_frame_this_id): Simplify.
4279 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
4280 * frame.c (struct frame_info): Delete the field "type".
4281 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
4282 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
4283 (legacy_saved_regs_unwind, legacy_frame_p)
4284 (frame_type_from_pc): Delete.
4285 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
4286 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
4287
4288 2004-07-31 Mark Kettenis <kettenis@gnu.org>
4289
4290 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
4291 indentation.
4292
4293 * mips-nat.c: Remove file.
4294 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
4295 (mips-nat.o): Remove dependency.
4296
4297 * infptrace.c: Update copyright year.
4298 (fetch_register): Pass NULL in regcache_raw_supply call instead of
4299 explicitly setting the buffer to all zeroes.
4300
4301 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
4302 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
4303
4304 2004-07-30 Andrew Cagney <cagney@gnu.org>
4305
4306 * GDB 6.2 released from gdb_6_2-branch.
4307
4308 2004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
4309
4310 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
4311
4312 * exec.c (exec_file_attach):
4313 * nto-tdep.c (nto_find_and_open_solib):
4314 * pa64solib.c (pa64_solib_sizeof_symbol_table):
4315 * solib.c (solib_open):
4316 * somsolib.c (som_solib_sizeof_symbol_table):
4317 * source.c (is_regular_file, openp, open_source_file):
4318 * symfile.c (symfile_bfd_open):
4319 * wince.c (upload_to_device): Differentiate between the search for
4320 binary and source files.
4321
4322 2004-07-30 Andrew Cagney <cagney@gnu.org>
4323
4324 * complaints.c (_initialize_complaints): Pass NULL to
4325 add_setshow_zinteger_cmd for help_doc.
4326 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
4327
4328 2004-07-30 Andrew Cagney <cagney@gnu.org>
4329
4330 Fix PR i18n/761.
4331 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
4332 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
4333 $(PACKAGE).pot and update-po.
4334 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
4335 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
4336 (update-po): New rules.
4337 (localedir): Define using autoconf.
4338 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
4339 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
4340 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
4341 * configure.in: Generate CATALOGS and LINGUAS from contents of
4342 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
4343 * configure: Re-generate.
4344 * po/gdbtext: New file
4345
4346 2004-07-30 Jerome Guitton <guitton@gnat.com>
4347
4348 * MAINTAINERS: Reorder Write After Approval list in alphabetical
4349 order.
4350
4351 2004-07-30 David Lecomber <dsl@sources.redhat.com>
4352
4353 * dwarf2read.c (read_file_scope): Set producer if attribute
4354 present.
4355 (struct dwarf2_cu): Added new member producer.
4356
4357 2004-07-30 Jerome Guitton <guitton@gnat.com>
4358
4359 * inflow.c (kill_command): release file handles in BFD.
4360 * exec.c (exec_file_attach): Ditto.
4361 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
4362
4363 2004-07-29 Andrew Cagney <cagney@gnu.org>
4364
4365 * PROBLEMS (mips-irix): Note that it is broken.
4366
4367 2004-07-29 Andrew Cagney <cagney@gnu.org>
4368
4369 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
4370 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
4371
4372 * config/xm-nbsd.h: Delete file.
4373 * config/arm/xm-nbsd.h: Delete file.
4374 * config/i386/xm-nbsd.h: Delete file.
4375 * config/ns32k/xm-nbsd.h: Delete file.
4376 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
4377 * config/i386/nbsdelf.mh (XM_FILE): Delete.
4378 * config/i386/nbsdaout.mh (XM_FILE): Delete.
4379 * config/arm/nbsdelf.mh (XM_FILE): Delete.
4380 * config/arm/nbsdaout.mh (XM_FILE): Delete.
4381
4382 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
4383 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
4384 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
4385 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
4386 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
4387 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
4388
4389 * config/powerpc/xm-linux.h: Delete empty file.
4390 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
4391 * config/powerpc/linux.mh (XM_FILE): Delete.
4392 * config/m68k/xm-linux.h: Delete empty file.
4393 * config/m68k/linux.mh (XM_FILE): Delete.
4394 * config/ia64/xm-linux.h: Delete empty file.
4395 * config/ia64/linux.mh (XM_FILE): Delete.
4396 * config/arm/xm-linux.h: Delete empty file.
4397 * config/arm/linux.mh (XM_FILE): Delete.
4398
4399 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4400 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
4401 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4402 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
4403 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4404 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
4405 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4406 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
4407
4408 * config/m68k/xm-m68k.h: Delete file.
4409 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
4410 copyright.
4411 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
4412 * config/pa/xm-linux.h: Delete empty file.
4413 * config/pa/linux.mh (XM_FILE): Delete.
4414 * config/i386/xm-i386.h: Delete empty file.
4415 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
4416 "i386/xm-i386.h".
4417 * config/i386/obsdaout.mh (XM_FILE): Delete.
4418 * config/i386/obsd64.mh (XM_FILE): Delete.
4419 * config/i386/fbsd64.mh (XM_FILE): Delete.
4420 * config/i386/nto.mh (XM_FILE): Delete.
4421 * config/i386/obsd.mh (XM_FILE): Delete.
4422 * config/i386/linux64.mh (XM_FILE): Delete.
4423 * config/i386/linux.mh (XM_FILE): Delete.
4424 * config/i386/i386sol2.mh (XM_FILE): Delete.
4425 * config/i386/i386gnu.mh (XM_FILE): Delete.
4426 * config/i386/fbsd.mh (XM_FILE): Delete.
4427 * config/i386/nbsd64.mh (XM_FILE): Delete.
4428
4429 2004-07-29 Andrew Cagney <cagney@gnu.org>
4430
4431 * config/pa/xm-linux.h: Do not include "floatformat.h".
4432 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4433 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
4434 * config/i386/xm-i386.h: Do not include "floatformat.h".
4435 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4436 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
4437 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4438 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
4439 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
4440 GDB_HOST_LONG_DOUBLE_FORMAT instead.
4441 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
4442 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
4443 * configure, config.in: Regenerate.
4444 * configure.host (gdb_host_float_format, gdb_host_double_format)
4445 (gdb_host_long_double_format): Set according to the host.
4446
4447 2004-07-29 Andrew Cagney <cagney@gnu.org>
4448
4449 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
4450
4451 2004-07-28 Andrew Cagney <cagney@gnu.org>
4452
4453 * PROBLEMS: Mention threads/1650.
4454 * NEWS: Mention the NPTL fix.
4455
4456 2004-07-28 Andrew Cagney <cagney@gnu.org>
4457
4458 * cli/cli-decode.c (add_setshow_cmd): Delete function.
4459 (add_setshow_cmd_full): Make static.
4460 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
4461 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
4462 * cli/cli-decode.c (add_setshow_filename_cmd)
4463 (add_setshow_string_cmd): New functions.
4464 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
4465 * mips-tdep.c (_initialize_mips_tdep): Update.
4466 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
4467 * cli/cli-logging.c (_initialize_cli_logging): Update.
4468 * complaints.c (_initialize_complaints): Update.
4469 * remote.c (_initialize_remote): Update.
4470
4471 2004-07-28 Andrew Cagney <cagney@gnu.org>
4472
4473 * cli/cli-decode.c (add_setshow_zinteger_cmd)
4474 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
4475 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
4476 print parameters. Make string parameters constant.
4477 * command.h: Update. Update copyright.
4478 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
4479 * observer.c (_initialize_observer): Ditto.
4480 * frame.c (_initialize_frame): Ditto.
4481 * complaints.c (_initialize_complaints): Ditto.
4482 * maint.c (_initialize_maint_cmds): Ditto.
4483 * target.c (initialize_targets): Ditto.
4484 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
4485 * infcall.c (_initialize_infcall): Ditto.
4486 * arm-tdep.c (_initialize_arm_tdep): Ditto.
4487 * m32r-rom.c (_initialize_m32r_rom): Ditto.
4488 * remote-rdi.c (_initialize_remote_rdi): Ditto.
4489 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
4490 * mips-tdep.c (_initialize_mips_tdep): Ditto.
4491
4492 2004-07-28 Andrew Cagney <cagney@gnu.org>
4493
4494 * gdbtypes.c (lookup_primitive_typename): Delete function.
4495 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
4496 * ada-lex.l: Use language_lookup_primitive_type_by_name.
4497 * gdbtypes.c (lookup_typename): Ditto.
4498 * f-exp.y (yylex): Ditto.
4499 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
4500
4501 * scm-lang.c (c_builtin_types): Delete extern declaration.
4502 (scm_language_defn): Replace
4503 string_char_type and primitive_type_vector with
4504 la_language_arch_info.
4505 * jv-lang.c (java_language_defn): Replace
4506 string_char_type and primitive_type_vector with
4507 la_language_arch_info.
4508 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
4509 c_builtin_types in comment.
4510 * c-lang.h (struct language_arch_info): Declare opaque.
4511 (c_language_arch_info): Declare.
4512 (c_builtin_types): Delete declaration.
4513 * c-lang.c (c_language_arch_info): Set string_char_type to
4514 builtin_char, not builtin_true_char. Make global.
4515 (c_builtin_types): Delete array.
4516 (asm_language_defn, minimal_language_defn): Replace
4517 string_char_type and primitive_type_vector with
4518 la_language_arch_info.
4519
4520 2004-07-28 Andrew Cagney <cagney@gnu.org>
4521
4522 * gdbtypes.h (struct builtin_type): Rename true_char to
4523 builtin_true_char.
4524 * gdbtypes.c (gdbtypes_post_init): Update.
4525 * c-lang.c (arch_info): New function.
4526 (enum c_primitive_types): New enum.
4527 (c_language_defn): Instead of string_char_type and
4528 primitive_type_vector set la_language_arch_info.
4529
4530 2004-07-28 Andrew Cagney <cagney@gnu.org>
4531
4532 * language.h (struct language_arch_info): Fix typo
4533 s/primative/primitive/.
4534 * gdbtypes.c (lookup_primitive_typename): Ditto.
4535 * language.c (language_lookup_primitive_type_by_name)
4536 (unknown_language_arch_info): Ditto.
4537
4538 2004-07-27 Andrew Cagney <cagney@gnu.org>
4539
4540 * defs.h (enum language): Add nr_languages.
4541 * language.h (struct language_arch_info): Define.
4542 (struct language_defn): Add la_language_arch_info.
4543 (language_lookup_primative_type_by_name): Declare.
4544 (language_string_char_type): Declare.
4545 * language.c (_initialize_language, language_gdbarch_post_init)
4546 (struct language_gdbarch, language_gdbarch_data): Implement
4547 per-architecture language information.
4548 (unknown_language_arch_info, language_string_char_type)
4549 (language_lookup_primative_type_by_name): New functions.
4550 (unknown_language_defn, auto_language_defn)
4551 (local_language_defn): Set la_language_arch_info to
4552 unknown_language_arch_info.
4553 (unknown_builtin_types): Delete.
4554 * gdbtypes.c (lookup_primitive_typename): Use
4555 language_lookup_primative_type_by_name.
4556 (create_string_type): Use language_string_char_type.
4557 * values.c (value_from_string): Use language_string_char_type.
4558 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
4559 * p-lang.c (pascal_language_defn): Ditto.
4560 * m2-lang.c (m2_language_defn): Ditto.
4561 * jv-lang.c (java_language_defn): Ditto.
4562 * objc-lang.c (objc_language_defn): Ditto.
4563 * f-lang.c (f_language_defn): Ditto.
4564 * c-lang.c (c_language_defn, cplus_language_defn)
4565 (asm_language_defn, minimal_language_defn): Ditto.
4566
4567 2004-07-27 Andrew Cagney <cagney@gnu.org>
4568
4569 * gdbtypes.h (struct builtin_type): Declare.
4570 (builtin_type): Declare.
4571 * d10v-tdep.c (d10v_register_type): Use builtin_type.
4572 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
4573 (gdbtypes_post_init): New function.
4574 (builtin_type): New function.
4575
4576 2004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
4577
4578 * remote-m32r-sdi.c: Fix breakpoint bug.
4579 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
4580 recv_char_data, recv_long_data): New functions to replace communication
4581 sequences.
4582
4583 2004-07-26 Michael Chastain <mec.gnu@mindspring.com>
4584
4585 Document PR threads/1650.
4586 * PROBLEMS (Threads): Document problem with many threads
4587
4588 2004-07-26 Andrew Cagney <cagney@gnu.org>
4589
4590 * gdb-mi.el: Move from here ...
4591 * mi/gdb-mi.el: ... to here.
4592
4593 2004-07-26 Andrew Cagney <cagney@gnu.org>
4594
4595 Problem reported by Ashley Pittman <ashley@quadrics.com>.
4596 * main.c (captured_main): When in batch mode always detach.
4597
4598 2004-07-26 Andrew Cagney <cagney@gnu.org>
4599
4600 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
4601 and h8300 as broken.
4602 * NEWS: END-OF-LIFE frame compatibility module.
4603 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
4604 specific comments.
4605
4606 2004-07-26 Andrew Cagney <cagney@gnu.org>
4607
4608 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
4609 * xcoffsolib.c (_initialize_xcoffsolib): Update.
4610 * wince.c (_initialize_wince): Update.
4611 * win32-nat.c (_initialize_win32_nat): Update.
4612 * varobj.c (_initialize_varobj): Update.
4613 * valops.c (_initialize_valops): Update.
4614 * utils.c (initialize_utils, initialize_utils): Update.
4615 * tui/tui-win.c (_initialize_tui_win): Update.
4616 * top.c (init_main): Update.
4617 * symfile.c (_initialize_symfile): Update.
4618 * source.c (_initialize_source): Update.
4619 * somsolib.c (_initialize_som_solib): Update.
4620 * solib.c (_initialize_solib): Update.
4621 * solib-frv.c (_initialize_frv_solib): Update.
4622 * serial.c (_initialize_serial): Update.
4623 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
4624 * remote.c (_initialize_remote, _initialize_remote): Update.
4625 * remote-vx.c (_initialize_vx): Update.
4626 * remote-utils.c (_initialize_sr_support): Update.
4627 * remote-sds.c (_initialize_remote_sds): Update.
4628 * remote-mips.c (_initialize_remote_mips): Update.
4629 * remote-e7000.c (_initialize_remote_e7000): Update.
4630 * proc-api.c (_initialize_proc_api): Update.
4631 * printcmd.c: Update.
4632 * parse.c (_initialize_parse): Update.
4633 * pa64solib.c (_initialize_pa64_solib): Update.
4634 * p-valprint.c (_initialize_pascal_valprint): Update.
4635 * monitor.c (_initialize_remote_monitors): Update.
4636 * mips-tdep.c (_initialize_mips_tdep): Update.
4637 * mcore-tdep.c (_initialize_mcore_tdep): Update.
4638 * maint.c (_initialize_maint_cmds): Update.
4639 * lin-lwp.c (_initialize_lin_lwp): Update.
4640 * language.c (_initialize_language): Update.
4641 * kod.c (_initialize_kod): Update.
4642 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
4643 * i386-tdep.c (_initialize_i386_tdep): Update.
4644 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
4645 * gdbarch.sh: Update.
4646 * gdbarch.c: Re-generate.
4647 * gdb-events.sh: Update.
4648 * gdb-events.c: Re-generate.
4649 * frame.c (_initialize_frame): Update.
4650 * exec.c: Update.
4651 * demangle.c (_initialize_demangler): Update.
4652 * dcache.c (_initialize_dcache): Update.
4653 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
4654 * cp-valprint.c (_initialize_cp_valprint): Update.
4655 * corefile.c (_initialize_core): Update.
4656 * command.h: Update.
4657 * cli/cli-decode.h: Update.
4658 * cli/cli-cmds.c (init_cli_cmds): Update.
4659 * charset.c (_initialize_charset): Update.
4660 * breakpoint.c (_initialize_breakpoint): Update.
4661 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
4662 * alpha-tdep.c (_initialize_alpha_tdep): Update.
4663 * aix-thread.c (_initialize_aix_thread): Update.
4664
4665 2004-07-24 Mark Kettenis <kettenis@gnu.org>
4666
4667 Partial fix for PR backtrace/1718.
4668 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
4669 that GCC migrates into the prolugue. Don't handle any
4670 instructions that clobber %ebx.
4671
4672 2004-07-23 Andrew Cagney <cagney@gnu.org>
4673
4674 Use regcache_raw_collect instead of regcache_collect.
4675 * regcache.h (regcache_collect): Delete declaration.
4676 * regcache.c (regcache_colect): Delete function.
4677 * win32-nat.c (do_child_store_inferior_registers): Update.
4678 * sol-thread.c (sol_thread_store_registers): Update.
4679 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
4680 * rs6000-nat.c (store_register): Update.
4681 * remote.c (store_register_using_P, remote_store_registers): Update.
4682 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
4683 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
4684 (fill_vrregset, store_spe_registers, fill_gregset)
4685 (fill_gregset): Update.
4686 * nto-procfs.c (procfs_store_registers): Update.
4687 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
4688 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
4689 * m68klinux-nat.c (store_register, fill_gregset): Update.
4690 * m68k-tdep.c (fill_gregset): Update.
4691 * infptrace.c (store_register): Update.
4692 * i386-nto-tdep.c (i386nto_regset_fill): Update.
4693 * i386-linux-nat.c (store_register, fill_gregset): Update.
4694 * hppa-linux-nat.c (fill_gregset): Update.
4695 * go32-nat.c (store_register): Update.
4696 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
4697 (store_fp_regs): Update.
4698 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
4699 (store_nwfpe_extended, store_fpregister, store_fpregs)
4700 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
4701 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
4702 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
4703 (store_regs_user_thread, store_regs_kernel_thread): Update.
4704
4705 2004-07-24 Mark Kettenis <kettenis@gnu.org>
4706
4707 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
4708 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
4709 encoding.
4710 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
4711 member of `struct comp_unit'.
4712
4713 2004-07-23 Andrew Cagney <cagney@gnu.org>
4714
4715 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
4716 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
4717
4718 2004-07-23 Martin Hunt <hunt@redhat.com>
4719 Kevin Buettner <kevinb@redhat.com>
4720
4721 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
4722 alignment was being added to the offset instead of multiplied.
4723
4724 2004-07-23 Mark Kettenis <kettenis@gnu.org>
4725
4726 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
4727 changed signal trampoline in OpenBSD 3.5-current.
4728
4729 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
4730 <machine/pcb.h> and "bsd-kvm.h".
4731 (sparc64nbsd_supply_pcb): New function.
4732 (_initialize_sparc64nbsd_nat): Renamed from
4733 _initialize_sparcnbsd_nat. Enable libkvm interface.
4734 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
4735 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
4736 (LOADLIBES): New variable.
4737
4738 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
4739
4740 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
4741
4742 2004-07-21 Andrew Cagney <cagney@gnu.org>
4743
4744 Use regcache_raw_supply instead of supply_register.
4745 * regcache.h (supply_register): Delete declaration.
4746 * regcache.c (supply_register): Delete function.
4747 * wince.c (do_child_fetch_inferior_registers): Update.
4748 * win32-nat.c (do_child_fetch_inferior_registers)
4749 (fetch_elf_core_registers): Update.
4750 * v850ice.c (v850ice_fetch_registers): Update.
4751 * thread-db.c (thread_db_store_registers): Update.
4752 * sol-thread.c (sol_thread_store_registers): Update.
4753 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
4754 * rs6000-nat.c (fetch_register): Update.
4755 * rom68k-rom.c (rom68k_supply_one_register): Update.
4756 * remote.c (remote_wait, remote_async_wait): Update.
4757 * remote-st.c (get_hex_regs): Update.
4758 * remote-sim.c (gdbsim_fetch_register): Update.
4759 * remote-sds.c (sds_fetch_registers): Update.
4760 * remote-rdp.c (remote_rdp_fetch_register): Update.
4761 * remote-rdi.c (arm_rdi_fetch_registers): Update.
4762 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
4763 * remote-m32r-sdi.c (m32r_fetch_register): Update.
4764 * remote-hms.c (init_hms_cmds): Update.
4765 * remote-est.c (init_est_cmds): Update.
4766 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
4767 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
4768 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
4769 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
4770 (fetch_register, supply_vrregset, supply_vrregset)
4771 (fetch_spe_registers): Update.
4772 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
4773 * monitor.c (monitor_supply_register): Update.
4774 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
4775 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
4776 (mipsnbsd_supply_fpreg): Update.
4777 * mips-nat.c (fetch_inferior_registers)
4778 (fetch_core_registers): Update.
4779 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
4780 (supply_fpregset, mips64_supply_gregset)
4781 (mips64_supply_fpregset): Update.
4782 * m68klinux-nat.c (fetch_register, supply_gregset)
4783 (supply_fpregset): Update.
4784 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
4785 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
4786 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
4787 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
4788 * infptrace.c (fetch_register): Update.
4789 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
4790 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
4791 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
4792 (gnu_fetch_registers, gnu_store_registers): Update.
4793 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
4794 * i386-linux-nat.c (fetch_register, supply_gregset)
4795 (dummy_sse_values): Update.
4796 * hpux-thread.c (hpux_thread_fetch_registers): Update.
4797 * hppah-nat.c (fetch_register): Update.
4798 * hppa-linux-nat.c (fetch_register, supply_gregset)
4799 (supply_fpregset): Update.
4800 * go32-nat.c (fetch_register): Update.
4801 * dve3900-rom.c (fetch_bitmapped_register)
4802 (_initialize_r3900_rom): Update.
4803 * cris-tdep.c (supply_gregset): Update.
4804 * abug-rom.c (init_abug_cmds): Update.
4805 * core-aout.c (fetch_core_registers): Update.
4806 * armnbsd-nat.c (supply_gregset, supply_fparegset)
4807 (fetch_register, fetch_fp_register): Update.
4808 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
4809 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
4810 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
4811 * alphanbsd-tdep.c (fetch_core_registers): Update.
4812 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
4813 * alpha-nat.c (fetch_osf_core_registers)
4814 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
4815 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
4816 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
4817
4818 2004-07-21 Andrew Cagney <cagney@gnu.org>
4819
4820 * PROBLEMS: Mention breakpoints/1702.
4821 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
4822 that is known to work.
4823
4824 2004-07-21 Andrew Cagney <cagney@gnu.org>
4825
4826 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
4827 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
4828 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
4829 (handle_inferior_event): Wrap call to deprecated
4830 IGNORE_HELPER_CALL in #ifdef.
4831 * config/mips/tm-nbsd.h: Update.
4832
4833 2004-07-20 Jim Blandy <jimb@redhat.com>
4834
4835 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
4836 bfd_mach_ppc has no segment registers.
4837
4838 Include PowerPC SPR numbers for special-purpose registers.
4839 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
4840 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
4841 new member in initializer.
4842 (S, S4, SN4, S64): New macros for defining special-purpose
4843 registers.
4844 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
4845 registers_403, registers_403GC, registers_505, registers_860,
4846 registers_601, registers_602, registers_603, registers_604,
4847 registers_750, registers_e500): Use them.
4848
4849 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
4850 replace references with expression used to initialize variable.
4851
4852 2004-07-20 Andrew Cagney <cagney@gnu.org>
4853
4854 * breakpoint.c (deprecated_read_memory_nobpt): Rename
4855 read_memory_nobpt.
4856 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
4857 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
4858 (s390_sigtramp_frame_sniffer): Update.
4859 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
4860 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
4861 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
4862 (mips32_fetch_instruction): Update.
4863 * mcore-tdep.c (get_insn): Update.
4864 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
4865 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
4866 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
4867 * i386-linux-tdep.c (i386_linux_sigtramp_start)
4868 (i386_linux_rt_sigtramp_start): Update.
4869 * i386-linux-nat.c (child_resume): Update.
4870 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
4871 * hppa-linux-tdep.c (insns_match_pattern): Update.
4872 * gdbcore.h: Update.
4873 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
4874 * frame.c (safe_frame_unwind_memory): Update.
4875 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
4876 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
4877 * alpha-tdep.c (alpha_read_insn): Update.
4878
4879 2004-07-20 Andrew Cagney <cagney@gnu.org>
4880
4881 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
4882 containing both bytes and mask. Add "frame_type".
4883 * tramp-frame.c (tramp_frame_start): Update.
4884 (tramp_frame_prepend_unwinder): Update.
4885 * mips-linux-tdep.c (mips_linux_o32_sigframe)
4886 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
4887 (mips_linux_n64_rt_sigframe): Update. Make "static const".
4888 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
4889
4890 2004-07-19 Eli Zaretskii <eliz@gnu.org>
4891
4892 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
4893 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
4894 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
4895 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
4896
4897 2004-07-17 Andrew Cagney <cagney@gnu.org>
4898
4899 * NEWS, PROBLEMS: Update for 6.2.
4900
4901 * README: Update to 6.2.
4902
4903 * utils.c (xvasprintf): Call xstrvprintf.
4904
4905 * parse.c: Update copyright.
4906 (null_post_parser): Eliminate ARGSUSED.
4907
4908 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
4909 * tui/tui-win.c (tui_get_cmd_list): Ditto.
4910 * symfile-mem.c (_initialize_symfile_mem): Ditto.
4911
4912 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
4913 * ppc-linux-nat.c: Use "Linux kernel".
4914 * hppa-linux-tdep.c: Use GNU/Linux.
4915 * hppa-linux-nat.c: Use GNU/Linux.
4916 * dwarfread.c: Add [sic] to use of Linux.
4917
4918 * hppa-linux-nat.c: Do not include <string.h>.
4919 (supply_fpregset): Remove "register" attribute.
4920
4921 * solib-frv.c (fetch_loadmap): Use xfree, not free.
4922
4923 2004-07-17 Mark Kettenis <kettenis@gnu.org>
4924
4925 * configure.in: Define _MSE_INT_H on Solaris 9 too.
4926 * configure, config.in: Regenerated.
4927
4928 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
4929 "bsd-kvm.h".
4930 (vaxbsd_supply_pcb): New function.
4931 (_initialize_vaxbsd_nat): New prototype and function.
4932 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
4933 solib-sunos.o.
4934 (LOADLIBES): New variable.
4935 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
4936 (LOADLIBES): New variable.
4937 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
4938 (LOADLIBES): New variable.
4939 * Makefile.in (vaxbsd-nat.o): Update dependencies.
4940
4941 2004-07-16 Andrew Cagney <cagney@gnu.org>
4942
4943 * defs.h (event_loop_p): Replace variable declaration with macro,
4944 always 1.
4945 * main.c (captured_main): Delete options "-async" and "-noasync".
4946 (event_loop_p): Delete variable.
4947 * NEWS: Mention that "-async" and "-noasync" were removed.
4948
4949 2004-07-16 Andrew Cagney <cagney@gnu.org>
4950
4951 * remote-m32r-sdi.c: Re-indent.
4952
4953 2004-07-16 Jim Blandy <jimb@redhat.com>
4954
4955 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
4956 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
4957 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
4958 missing MPC823 SPRs.
4959 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
4960 incorrect. (This was corrected in GDB's register name tables on
4961 2004-07-14.)
4962
4963 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
4964 should be "esasrr" ("ESA Save and Restore Register").
4965
4966 2004-07-16 Andrew Cagney <cagney@gnu.org>
4967
4968 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
4969 calls, no longer applicable. Update comments and rename parameter
4970 "step_frame" to "return_frame".
4971
4972 2004-07-16 Andrew Cagney <cagney@gnu.org>
4973
4974 * frame.c (fprint_field): New function.
4975 (fprint_frame_id): Use fprint_field.
4976
4977 2004-07-15 Joel Brobecker <brobecker@gnat.com>
4978
4979 * ada-lang.c (ada_language_defn): Remove commented out code.
4980
4981 2004-07-15 Jim Blandy <jimb@redhat.com>
4982
4983 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
4984 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
4985
4986 2004-07-14 Jim Blandy <jimb@redhat.com>
4987
4988 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
4989
4990 * ppc-tdep.h (ppc_num_vrs): New enum constant.
4991
4992 * ppc-tdep.h (ppc_num_srs): New enum constant.
4993
4994 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
4995 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
4996 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
4997 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
4998 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
4999 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
5000 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
5001 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
5002 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
5003 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
5004 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
5005 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
5006 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
5007 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
5008 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
5009 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
5010 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
5011 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
5012 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
5013 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
5014 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
5015 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
5016 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
5017 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
5018 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
5019 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
5020 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
5021 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
5022 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
5023 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
5024 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
5025 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
5026 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
5027 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
5028 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
5029 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
5030 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
5031 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
5032 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
5033 special-purpose register numbers.
5034
5035 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
5036 manual mentions 'md_twb', but many mention 'm_twb', and at that
5037 point in the register list.)
5038
5039 2004-07-14 Andrew Cagney <cagney@gnu.org>
5040
5041 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
5042 instead of "internal-error".
5043
5044 2004-07-10 Joel Brobecker <brobecker@gnat.com>
5045
5046 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
5047 that was inserted inside a comment.
5048
5049 2004-07-10 Randolph Chung <tausq@debian.org>
5050
5051 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
5052 function.
5053 (hppa_hpux_push_dummy_code): New function.
5054 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
5055 Set find_global_pointer method.
5056
5057 2004-07-10 Mark Kettenis <kettenis@gnu.org>
5058
5059 * NEWS: Mention BSD libkvm interface.
5060
5061 2004-07-10 Michael Snyder <msnyder@redhat.com>
5062
5063 * symfile.c (generic_load): Comment typo.
5064 * stack.c (get_selected_block): Ditto.
5065 * regcache.c (regcache_cooked_read): Ditto.
5066 * monitor.c (monitor_debug): Ditto.
5067 * mips-tdep.c (mips_read_pc): Ditto.
5068 * i386-linux-nat.c (ps_get_thread_area): Ditto.
5069 * gdb_mbuild.sh: Ditto.
5070 * gdbarch.sh: Ditto.
5071 * gdbarch.h: Ditto.
5072
5073 2004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
5074
5075 * ada-tasks.c: Remove file.
5076
5077 Remove ARI problems:
5078
5079 * ada-exp.y (write_var_from_sym): Reformat to put operator at
5080 beginning of line.
5081
5082 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
5083 Add comment.
5084 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
5085 (MIN_OF_SIZE): Rename min_of_size. Add comment.
5086 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
5087 (UMIN_OF_SIZE): Remove.
5088 (max_of_type): New function to replace orphan macro in gdbtypes.h
5089 (min_of_type): Ditto.
5090 (discrete_type_high_bound): Use max_of_type.
5091 (discrete_type_low_bound): Use min_of_type.
5092 (possible_user_operator_p): Move operator to beginning of line.
5093 (ada_is_variant_part): Ditto.
5094 (ensure_lval): Rewrite to avoid deprecated operations.
5095 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
5096 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
5097 (ada_enum_name): Remove assignments in 'if' statements.
5098 (build_ada_types): Add gdbarch parameter.
5099 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
5100 with gdbarch_data_register_post_init.
5101 Use add_setshow_uinteger_cmd rather than add_set_cmd and
5102 add_show_from_set.
5103
5104 * ada-valprint.c (inspect_it): Remove declaration.
5105 (repeat_count_threshold): Remove declaration.
5106 (ada_print_floating): Remove assignments in 'if' statements.
5107 (print_str): Move operator to beginning of line.
5108
5109 2004-07-08 Jim Blandy <jimb@redhat.com>
5110
5111 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
5112
5113 2004-07-08 Bob Rossi <bob@brasko.net>
5114
5115 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
5116
5117 2004-07-06 Jeff Johnston <jjohnstn@redhat.com>
5118
5119 * language.h (struct_language_defn): Add new function pointer:
5120 la_class_name_from_physname. Also add new prototype for
5121 language_class_name_from_physname.
5122 * language.c (language_class_name_from_physname): New function.
5123 (unk_lang_class_name): Ditto.
5124 (unknown_language_defn, auto_language_defn): Change
5125 to add unk_lang_class_name function pointer for
5126 la_class_name_from_physname.
5127 (local_language_defn): Ditto.
5128 * dwarf2read.c (guess_structure_name): Change to call
5129 language_class_name_from_physname.
5130 (determine_class_name): Ditto.
5131 * cp-support.c (class_name_from_physname): Renamed.
5132 (cp_class_name_from_physname): New name of function.
5133 * cp-support.h: Ditto.
5134 * c-lang.c (c_language_defn): Change to add NULL
5135 for class_name_from_physname function pointer.
5136 (cplus_language_defn): Change to add cp_class_name_from_physname.
5137 * jv-lang.c (java_class_name_physname): New function.
5138 (java_find_last_component): New static routine.
5139 (java_language_defn): Add java_class_name_from_physname pointer.
5140 * ada-lang.c (ada_language_defn): Change to add NULL
5141 for class_name_from_physname function pointer.
5142 * f-lang.c (f_language_defn): Ditto.
5143 * m2-lang.c (m2_language_defn): Ditto.
5144 * objc-lang.c (objc_language_defn): Ditto.
5145 * p-lang.c (pascal_language_defn): Ditto.
5146 * scm-lang.c (scm_language_defn): Ditto.
5147
5148 2004-07-06 Andrew Cagney <cagney@gnu.org>
5149
5150 Patch from Bart Robinson.
5151 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
5152 (O_LARGEFILE): Define to 0, if not defined.
5153
5154 2004-07-03 Mark Kettenis <kettenis@gnu.org>
5155
5156 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
5157 <machine/pcb.h> and "bsd-kvm.h".
5158 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
5159 (m68kbsd_supply_pcb): New function.
5160 (_initialize_m68kbsd_nat): New prototype and function.
5161 * Makefile.in (m68kbsd-nat.o): Update dependencies.
5162 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5163 (LOADLIBES): New variable.
5164 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
5165 (LOADLIBES): New variable.
5166
5167 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
5168
5169 2004-07-03 Mark Kettenis <kettenis@gnu.org>
5170
5171 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
5172 <sys/proc.h>.
5173 (bsd_kvm_cmdlist): New variable.
5174 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
5175 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
5176 command and "kvm proc" command.
5177 * Makefile.in (bsd-kvm.o): Update dependencies.
5178
5179 2004-07-02 Mark Kettenis <kettenis@gnu.org>
5180
5181 * osabi.c: Update copyright year.
5182 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
5183 notes if EI_OSABI is set to ELFOSABI_HPUX.
5184
5185 2004-07-01 Michael Snyder <msnyder@redhat.com>
5186
5187 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
5188 that seems to have gotten whacked out of line.
5189
5190 2004-07-01 Mark Kettenis <kettenis@gnu.org>
5191
5192 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
5193 code.
5194
5195 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
5196
5197 * ada-lang.c (decode_packed_array): Minor change to comment.
5198 (ada_value_slice_ptr): New function.
5199 (ada_value_slice): New function.
5200 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
5201 test. Don't know why it is there.
5202 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
5203 to avoid dereferencing huge arrays from which one is slicing.
5204 (empty_array): Correct to return an array rather than
5205 a subrange value.
5206 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
5207 on empty arrays (let'em use 'FIRST instead).
5208
5209 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
5210
5211 Address complaints from gdb_ari.sh:
5212
5213 * ada-exp.y: Include gdb_string.h rather than string.h.
5214 (convert_char_literal): Reformat declaration.
5215 * ada-lang.h: Include opaque struct declaration for struct frame_info.
5216 * ada-lex.l: Change use of free to xfree (the macro would do so
5217 anyway, but this is harmless).
5218 Include gdb_string.h rather than string.h.
5219 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
5220
5221 * ada-lang.c (parse): Remove K&Rism in parameter list.
5222 (is_name_suffix): Correct Linux => GNU/Linux in comment.
5223
5224 2004-06-30 Mark Kettenis <kettenis@gnu.org>
5225
5226 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
5227 dead code.
5228
5229 2004-06-30 Mark Kettenis <kettenis@gnu.org>
5230
5231 * alphabsd-nat.c: Update copyright year.
5232 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
5233
5234 2004-06-29 Joel Brobecker <brobecker@gnat.com>
5235
5236 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
5237 (i386_cygwin_in_solib_call_trampoline): New function.
5238 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
5239 and skip_trampoline_code gdbarch methods.
5240
5241 2004-06-29 Jim Blandy <jimb@redhat.com>
5242
5243 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
5244 name actually used in the dependency lists.
5245
5246 2004-06-29 Randolph Chung <tausq@debian.org>
5247
5248 * NEWS (New native configurations): Mention GNU/Linux/hppa.
5249
5250 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
5251
5252 * win32-nat.c (child_pid_to_exec_file): New function.
5253 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
5254 functionality.
5255
5256 2004-06-28 Andrew Cagney <cagney@gnu.org>
5257
5258 * defs.h (xstrvprintf): Declare.
5259 * utils.c (xstrvprintf): New function.
5260 (internal_vproblem, xstrprintf, xasprintf)
5261 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
5262 * serial.c (serial_printf): Ditto.
5263 * complaints.c (vcomplaint): Ditto.
5264
5265 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
5266
5267 * infcmd.c (attach_command): Move call to target_terminal_inferior
5268 behind loading symbol table.
5269
5270 2004-06-28 Andrew Cagney <cagney@gnu.org>
5271
5272 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
5273 change - add back extern deprecated_ui_loop_hook declaration.
5274
5275 2004-06-28 Andrew Cagney <cagney@gnu.org>
5276
5277 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
5278 xstrprintf.
5279 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
5280 (c_value_of_variable): Ditto.
5281 * utils.c (internal_vproblem): Ditto.
5282 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
5283 * remote.c (add_packet_config_cmd): Ditto.
5284 * remote-rdp.c (rdp_set_command_line): Ditto.
5285 * regcache.c (regcache_dump): Ditto.
5286 * frv-tdep.c (new_variant, new_variant): Ditto.
5287 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
5288 (fbsd_find_memory_regions): Ditto.
5289 * breakpoint.c (create_thread_event_breakpoint)
5290 (create_breakpoints): Ditto.
5291 * aix-thread.c (aix_thread_pid_to_str): Ditto.
5292 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
5293
5294 2004-06-28 Joel Brobecker <brobecker@gnat.com>
5295
5296 * ada-lang.c: Re-indent file, with some massaging to help indent
5297 a bit when the result is otherwise really too ugly.
5298
5299 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
5300
5301 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
5302 code_addr_p and special_addr_p to 'unsigned int'.
5303
5304 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5305
5306 * i386v4-nat.c: Update copyright year and tweak comment.
5307 (regmap): Remove trailing comma.
5308 (supply_gregset): Rename local variable i to regnum. Call
5309 regcache_raw_supply instead of supply_register.
5310 (fill_gregset): Rename argument regno to regnum. Call
5311 regcache_raw_collect instead of regcache_collect.
5312
5313 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
5314
5315 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
5316 and special_addr_p.
5317 (frame_id_build, frame_id_build_special): Update comments.
5318 (frame_id_build_wild): New prototype.
5319 * frame.c (frame_id_build, frame_id_build_special): Fill in new
5320 struct frame_id fields.
5321 (frame_id_build_wild): New function.
5322 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
5323
5324 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5325
5326 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
5327 hppabsd-tdep.c.
5328
5329 2004-06-27 Joel Brobecker <brobecker@gnat.com>
5330
5331 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
5332
5333 2004-06-27 Joel Brobecker <brobecker@gnat.com>
5334
5335 * ada-lang.c: Re-indent file.
5336
5337 2004-06-27 Joel Brobecker <brobecker@gnat.com>
5338
5339 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
5340 (no_symtab_msg): Likewise.
5341
5342 2004-06-27 Andreas Schwab <schwab@suse.de>
5343
5344 * source.c: Fix whitespace.
5345
5346 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5347
5348 * configure.in: Include <sys/param.h> for td_pcb test.
5349 * configure: Regenerated.
5350
5351 * i386nbsd-nat.c: New file.
5352 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
5353 i386obsd-nat.c and i386obsd-tdep.c.
5354 (i386nbsd-nat.o): New dependency.
5355 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
5356 bsd-kvm.o.
5357 (LOADLIBES): New variable.
5358 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
5359 bsd-kvm.o.
5360 (LOADLIBES): New variable.
5361
5362 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
5363 (LOADLIBES): New variable.
5364
5365 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
5366 fetching from BSD_KVM_PADDR. Correctly lookup address for
5367 "_thread0".
5368
5369 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
5370 "bsd-kvm.h".
5371 (amd64fbsd_supply_pcb): New funcion.
5372 (_initialize_amd64fbsd_nat): Enable libkvm interface.
5373
5374 2004-06-27 <david@streamline-computing.com>
5375
5376 Partial fix for PR cli/1056.
5377 * valarith.c: Check for zero in division and remainder
5378 evaluation.
5379
5380 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5381
5382 * i387-tdep.c: Remove excessive whitespace.
5383
5384 2004-06-26 Andrew Cagney <cagney@gnu.org>
5385
5386 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
5387 * gdb-events.h, gdb-events.c: Re-generate.
5388 * tui/tui-hooks.c (tui_install_hooks): Update.
5389 (tui_remove_hooks): Update.
5390 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
5391
5392 2004-06-26 Mark Kettenis <kettenis@gnu.org>
5393
5394 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
5395 (gregset_t, fpregset_t): Remove typedefs.
5396 (REG_OFFSET): Rename argument.
5397 (amd64bsd_r_reg_offset): Rename from reg_offset.
5398 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
5399 Remove functions.
5400 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
5401 of reg_offset.
5402 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
5403
5404 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
5405
5406 * vax-tdep.c: Tweak comment.
5407
5408 Add OpenBSD/hppa support.
5409 * NEWS (New native configurations): Mention OpenBSD/hppa.
5410 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
5411 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
5412 files.
5413 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
5414 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
5415 * configure.host: Add hppa*-*-openbsd*.
5416 * configure.tgt: Add hppa*-*-openbsd*.
5417
5418 2004-06-25 Andrew Cagney <cagney@gnu.org>
5419
5420 * defs.h (deprecated_ui_loop_hook): Deprecated.
5421 * wince.c (child_wait): Update.
5422 * win32-nat.c (child_wait): Update.
5423 * v850ice.c (v850ice_wait): Update.
5424 * top.c (deprecated_ui_loop_hook): Update.
5425 * serial.h: Update.
5426 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
5427 (do_unix_readchar): Update.
5428 * ser-tcp.c (net_open): Update.
5429 * remote-sim.c (gdb_os_poll_quit): Update.
5430 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
5431
5432 2004-06-24 Andrew Cagney <cagney@gnu.org>
5433
5434 * defs.h (deprecated_pre_add_symbol_hook)
5435 (deprecated_post_add_symbol_hook): Deprecated.
5436 * symfile.c (symbol_file_add_with_addrs_or_offsets)
5437 (symbol_file_add_with_addrs_or_offsets): Update references.
5438
5439 2004-06-24 Andrew Cagney <cagney@gnu.org>
5440
5441 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
5442 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
5443 * wince.c (ui_loop_hook): Delete extern declaration.
5444 * win32-nat.c (ui_loop_hook): Delete extern declaration..
5445 * v850ice.c (ui_loop_hook): Delete extern declaration..
5446 * ser-unix.c (ui_loop_hook): Delete extern declaration..
5447 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
5448 * remote-sim.c (ui_loop_hook): Delete extern declaration..
5449 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
5450 ui_loop_hook declaration.
5451
5452 2004-06-24 Andrew Cagney <cagney@gnu.org>
5453
5454 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
5455 entry_func_highpc fields.
5456 * objfiles.c (init_entry_point_info): Do not clear
5457 entry_func_lowpc and entry_func_highpc.
5458 (objfile_relocate): Do not relocate entry_func_lowpc and
5459 entry_func_highpc.
5460 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
5461 entry_func_highpc.
5462 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
5463 entry_func_highpc.
5464 * blockframe.c (legacy_frame_chain_valid): Replace tests against
5465 entry_func_lowpc and entry_func_highpc with call to
5466 inside_entry_func.
5467
5468 2004-06-24 Mark Kettenis <kettenis@gnu.org>
5469
5470 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
5471 quad-precision floating point arguments in registers.
5472
5473 2004-06-24 Mark Kettenis <kettenis@gnu.org>
5474
5475 From Michael Mueller <m.mueller99@kay-mueller.de>:
5476 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
5477 account.
5478
5479 2004-06-22 Jeff Johnston <jjohnstn@redhat.com>
5480
5481 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
5482 to -1.
5483 * breakpoint.c (bpstat_stop_status): Move check for ignoring
5484 untriggered watchpoints to a separate if clause. Update function
5485 comment regarding STOPPED_BY_WATCHPOINT argument.
5486
5487 2004-06-22 Jim Blandy <jimb@redhat.com>
5488
5489 * gdbarch.sh: Doc fix.
5490
5491 2004-06-21 Martin Hunt <hunt@redhat.com>
5492 Kevin Buettner <kevinb@redhat.com>
5493
5494 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
5495 * mips-tdep.h (MIPS_SP_REGNUM): Define.
5496 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
5497 to set_gdbarch_sp_regnum(). Use cooked register number.
5498 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
5499
5500 2004-06-21 Andrew Cagney <cagney@gnu.org>
5501
5502 * gdbarch.sh: When the macro field is empty, do not generate a
5503 macro definition. When the macro field is "=", generate the macro
5504 name from the upper-case function name.
5505 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
5506 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
5507 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
5508 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
5509 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
5510 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
5511 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
5512 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
5513 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
5514 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
5515 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
5516 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
5517 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
5518 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
5519 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
5520 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
5521 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
5522 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
5523 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
5524 (DEPRECATED_USE_STRUCT_CONVENTION)
5525 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5526 (DEPRECATED_FRAME_INIT_SAVED_REGS)
5527 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
5528 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
5529 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
5530 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
5531 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
5532 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
5533 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
5534 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
5535 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
5536 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
5537 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
5538 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
5539 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
5540 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
5541 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
5542 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
5543
5544 2004-06-21 Andrew Cagney <cagney@gnu.org>
5545
5546 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
5547 macro name, and the function rather than macro value. Only wrap
5548 macro print statements in #ifdef. Move format logic to where it
5549 is needed.
5550 * gdbarch.c: Re-generate.
5551
5552 * gdbarch.sh (read): Delete "print_p" and "description", add
5553 "garbage_at_eol". Check for non-empty garbage at end-of-line.
5554 Delete references to print_p.
5555 (TARGET_ARCHITECTURE): Delete print predicate.
5556 * gdbarch.c: Re-generate.
5557
5558 * gdbarch.sh: Check that multi-arch methods do not provide a
5559 macro.
5560 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
5561 (print_registers_info, print_float_info, print_vector_info)
5562 (adjust_breakpoint_address, remote_translate_xfer_address)
5563 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
5564 (address_class_type_flags_to_name, unwind_sp): Remove the macro
5565 name from the multi-arch definition.
5566
5567 2004-06-20 Andrew Cagney <cagney@gnu.org>
5568
5569 * gdbarch.sh: Sort by the function, instead of macro name.
5570 * gdbarch.c: Re-generate.
5571
5572 2004-06-20 Andrew Cagney <cagney@gnu.org>
5573
5574 * gdbarch.sh: Use the function, instead of macro name in
5575 errors and the log file.
5576 (return_value): Remove stray ":" in spec.
5577
5578 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
5579 * gdbarch.h, gdbarch.c: Re-generate.
5580 * Makefile.in (arch-utils.o): Update dependencies.
5581 * values.c (using_struct_return): Move code calling
5582 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
5583 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
5584 to legacy_return_value, simplify.
5585 * infcmd.c (print_return_value): Move code calling
5586 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
5587 to legacy_return_value, simplify.
5588 * infcall.c (call_function_by_hand): Move code calling
5589 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
5590 * arch-utils.c: Update copyright. Include "gdbcore.h".
5591 (legacy_return_value): New function.
5592 * arch-utils.h: Update copyright.
5593 (legacy_return_value): Declare.
5594
5595 2004-06-20 Andrew Cagney <cagney@gnu.org>
5596
5597 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
5598 * gdbarch.h, gdbarch.c: Re-generate.
5599 * values.c (using_struct_return): Update call.
5600 * mcore-tdep.c: Update comment.
5601 * infcall.c (call_function_by_hand): Update comment.
5602 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5603 * arch-utils.h (always_use_struct_convention): Update.
5604 * v850-tdep.c (v850_gdbarch_init): Update.
5605 * sh64-tdep.c (sh64_gdbarch_init): Update.
5606 * sh-tdep.c (sh_gdbarch_init): Update.
5607 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5608 * mips-tdep.c (mips_gdbarch_init): Update.
5609 * mcore-tdep.c (mcore_gdbarch_init): Update.
5610 * m32r-tdep.c (m32r_gdbarch_init): Update.
5611 * ia64-tdep.c (ia64_gdbarch_init): Update.
5612 * h8300-tdep.c (h8300_gdbarch_init): Update.
5613 * frv-tdep.c (frv_gdbarch_init): Update.
5614 * cris-tdep.c (cris_gdbarch_init): Update.
5615 * arm-tdep.c (arm_gdbarch_init): Update.
5616 * alpha-tdep.c (alpha_gdbarch_init): Update.
5617
5618 2004-06-18 Michael Chastain <mec.gnu@mindspring.com>
5619
5620 * PROBLEMS: Add more specific information, and a work-around,
5621 for PR gdb/1458.
5622
5623 2004-06-18 Andrew Cagney <cagney@gnu.org>
5624
5625 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
5626 * gdbarch.h, gdbarch.c: Re-generate.
5627 * ada-lang.c (ada_finish_decode_line_1): Update.
5628 * infrun.c (handle_inferior_event): Update.
5629 * infcall.c (find_function_addr): Update.
5630 * linespec.c (minsym_found): Update.
5631 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
5632 Update.
5633 * blockframe.c (legacy_frameless_look_for_prologue): Update.
5634 * cli/cli-cmds.c (disassemble_command): Update.
5635 * vax-tdep.c (vax_gdbarch_init): Update.
5636
5637 2004-06-18 Mark Kettenis <kettenis@gnu.org>
5638
5639 * i386-tdep.c (i386_collect_fpregset): Fix comment.
5640
5641 2004-06-17 Andrew Cagney <cagney@gnu.org>
5642
5643 GDB 6.1.1 released from the GDB 6.1 branch.
5644 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
5645 * PROBLEMS: Ditto.
5646
5647 2004-06-16 Daniel Jacobowitz <dan@debian.org>
5648
5649 PR gdb/1658
5650 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
5651 operation as a uleb128. Found by Michael Coulter.
5652
5653 2004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
5654
5655 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
5656 make it non-static.
5657 * ada-lang.h (task_control_block): declaration moved from ada-task.c
5658 to ada-lang.h; this is needed to be able to implement the kill command
5659 in multi-task mode.
5660 (task_ptid): Ditto.
5661 (task_entry): Ditto.
5662 (task_list): Ditto.
5663 (ada_build_task_list): Ditto.
5664
5665 * ada-lang.c: Conditionalize routines and data structures related
5666 to breakpoints, exceptions, completion, and symbol caching on
5667 GNAT_GDB, since these are not yet used in the submitted public sources.
5668 (ada_main_name): Editorial: Move definition out of exception-related
5669 code.
5670
5671 2004-06-15 Andrew Cagney <cagney@gnu.org>
5672
5673 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
5674 deprecated_pc_in_call_dummy.
5675
5676 2004-06-15 Alan Modra <amodra@bigpond.net.au>
5677
5678 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
5679 bfd_get_section_size_before_reloc or _raw_size.
5680 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
5681 * dwarf2read.c (dwarf2_locate_sections): Likewise.
5682 (dwarf2_read_section): Likewise.
5683 * elfread.c (elf_locate_sections): Likewise.
5684 * gcore.c (derive_heap_segment): Likewise.
5685 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
5686 * remote-e7000.c (e7000_load): Likewise.
5687 * remote-m32r-sdi.c (m32r_load): Likewise.
5688 * remote-mips.c (mips_load_srec): Likewise.
5689 (pmon_load_fast): Likewise.
5690 * remote.c (compare_sections_command): Likewise.
5691 * symfile.c (add_section_size_callback): Likewise.
5692 (load_section_callback): Likewise.
5693 (pc_in_unmapped_range): Likewise.
5694 (pc_in_mapped_range): Likewise.
5695 (sections_overlap): Likewise.
5696 (list_overlays_command): Likewise.
5697 (simple_overlay_update_1): Likewise.
5698 (simple_overlay_update): Likewise.
5699 * tracepoint.c (remote_set_transparent_ranges): Likewise.
5700 * win32-nat.c (core_section_load_dll_symbols): Likewise.
5701
5702 2004-06-14 Randolph Chung <tausq@debian.org>
5703
5704 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
5705 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
5706 static.
5707 (hppa_hpux_inferior_created): New function.
5708 (hppa_hpux_init_abi): Register observer.
5709 * symfile.c (hp_cxx_exception_support_initialized)
5710 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
5711 (symbol_file_add_main_1, symbol_file_clear): Likewise.
5712
5713 2004-06-14 Randolph Chung <tausq@debian.org>
5714
5715 * MAINTAINERS (Write After Approval): Alphabetize my entry
5716 correctly.
5717
5718 2004-06-14 Andrew Cagney <cagney@gnu.org>
5719
5720 * MAINTAINERS (testsuite): List Michael Chastain as the lead
5721 testsuite maintainer.
5722
5723 2004-06-13 Andrew Cagney <cagney@gnu.org>
5724
5725 * infcmd.c (print_return_value): Fix logic, allow
5726 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
5727
5728 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
5729 defining any macros.
5730 * gdbarch.h: Re-generate.
5731
5732 * gdbarch.sh: Delete "level" attribute. Only check for a macro
5733 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
5734 * gdbarch.h: Re-generate.
5735
5736 * values.c (generic_use_struct_convention): Don't check gcc_p.
5737
5738 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
5739 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
5740 * gdbarch.h, gdbarch.c: Regenerate.
5741 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
5742 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
5743 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5744 deprecated_max_register_raw_size and
5745 deprecated_max_register_virtual_size.
5746 * v850-tdep.c (v850_gdbarch_init): Ditto.
5747 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
5748 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5749 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5750 * cris-tdep.c (cris_gdbarch_init): Ditto.
5751
5752 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
5753 * gdbarch.h, gdbarch.c: Re-generate.
5754 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
5755 (m68hc11_use_struct_convention): Delete function.
5756 (m68hc11_extract_struct_value_address): Delete function.
5757 (m68hc11_return_value): New function.
5758 (m68hc11_gdbarch_init): Instead of store_return_value,
5759 extract_return_value, return_value_on_stack,
5760 deprecated_extract_struct_value_address and use_struct_convention,
5761 set return_value.
5762 * values.c (using_struct_return): Do not call
5763 RETURN_VALUE_ON_STACK.
5764 * arch-utils.h (generic_return_value_on_stack_not): Delete
5765 declaration.
5766 * arch-utils.c (generic_return_value_on_stack_not): Delete
5767 function.
5768
5769 2004-06-12 Andrew Cagney <cagney@gnu.org>
5770
5771 * values.c (register_value_being_returned): Delete function.
5772 * infcmd.c (legacy_return_value): Delete function.
5773 * infcall.c (call_function_by_hand): Inline
5774 "register_value_being_returned", simplify.
5775 * values.c (using_struct_return): Update comment, refer to
5776 print_return_value instead of register_value_being_returned.
5777 * infcmd.c (print_return_value): Inline calls to
5778 register_value_being_returned and legacy_return_value. Simplify.
5779
5780 2004-06-11 Randolph Chung <tausq@debian.org>
5781
5782 * somread.c (som_symtab_read): Exclude gcc local symbols.
5783
5784 2004-06-11 Randolph Chung <tausq@debian.org>
5785
5786 * infrun.c (handle_inferior_event): Handle the case when a
5787 trampoline ends up in the runtime resolver, and if the trampoline
5788 has no name. Rearrange the code so that all the trampoline
5789 processing happens before other step-out-of-range handling.
5790
5791 2004-06-11 Martin Hunt <hunt@redhat.com>
5792
5793 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
5794 has no fpu.
5795
5796 2004-06-10 Andrew Cagney <cagney@gnu.org>
5797
5798 * blockframe.c (legacy_inside_entry_func): Delete.
5799 (legacy_frame_chain_valid): Inline call to
5800 legacy_inside_entry_func, simplify.
5801
5802 2004-06-10 Bob Rossi <bob@brasko.net>
5803
5804 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
5805 * dwarf2read.c (partial_die_info): Add dirname field.
5806 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
5807 (read_partial_die): Save away DW_AT_comp_dir.
5808 * defs.h (symtab_to_filename): Removed.
5809 * source.c (find_and_open_source): Added.
5810 (open_source_file): Just calls find_and_open_source.
5811 (symtab_to_filename): Removed.
5812 (symtab_to_fullname, psymtab_to_fullname): Added.
5813 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
5814 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
5815 symtab_to_filename.
5816 * symtab.h (partial_symtab): Add dirname field.
5817 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
5818 (mi_cmd_file_list_exec_source_file): Call new function
5819 symtab_to_fullname to find fullname.
5820 (mi_cmd_file_list_exec_source_files): Added.
5821 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
5822 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
5823
5824 2004-06-10 Andrew Cagney <cagney@gnu.org>
5825
5826 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
5827 to generic_use_struct_convention, the default value.
5828
5829 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
5830 of abort.
5831
5832 * ns32k-tdep.c (ns32k_push_arguments): New function.
5833 (ns32k_gdbarch_init): Set deprecated_push_arguments.
5834 * infcall.c (call_function_by_hand): Call error instead of
5835 legacy_push_arguments.
5836 * value.h (legacy_push_arguments): Delete declaration.
5837 * valops.c (legacy_push_arguments): Delete function.
5838 (value_push): Delete function.
5839
5840 2004-06-10 Brian Ford <ford@vss.fsi.com>
5841
5842 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
5843 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
5844 info.
5845 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
5846
5847 2004-06-10 Andrew Cagney <cagney@gnu.org>
5848
5849 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
5850 * gdbarch.h, gdbarch.c: Re-generate.
5851 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
5852 parameters.
5853 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
5854 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
5855 deprecated_pc_in_call_dummy instead of
5856 DEPRECATED_PC_IN_CALL_DUMMY.
5857 (arm_skip_prologue): Ditto.
5858 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
5859 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
5860 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
5861 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
5862 Ditto.
5863 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
5864 (sh64_init_extra_frame_info, sh64_get_saved_register)
5865 (sh64_pop_frame): Ditto.
5866 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
5867 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
5868 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
5869 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
5870 (h8300_pop_frame): Ditto.
5871 * blockframe.c (legacy_inside_entry_func)
5872 (legacy_frame_chain_valid): Ditto.
5873 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
5874 to deprecated_pc_in_call_dummy.
5875
5876 2004-06-09 Andrew Cagney <cagney@gnu.org>
5877
5878 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
5879 provide a default value.
5880 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
5881 * gdbarch.h, gdbarch.c: Re-generate.
5882 * arch-utils.c (generic_convert_register_p): Rename
5883 legacy_convert_register_p
5884 (legacy_register_to_value, legacy_value_to_register): Delete
5885 functions.
5886 * arch-utils.h (generic_convert_register_p): Rename
5887 legacy_convert_register_p.
5888 (legacy_register_to_value, legacy_value_to_register): Delete
5889 declarations.
5890
5891 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
5892 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
5893 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
5894 * gdbarch.h, gdbarch.c: Re-generate.
5895 * infcmd.c (default_print_registers_info): Simplify.
5896 * findvar.c (value_of_register): Simplify.
5897 * mi/mi-main.c (get_register): Simplify.
5898 * arch-utils.c (legacy_convert_register_p): Always return 0.
5899 (legacy_register_to_value, legacy_value_to_register): Always call
5900 internal_error.
5901
5902 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
5903 #ifdef CLEAR_INSN_CACHE code.
5904 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
5905 Delete #ifdef CLEAR_DEFERRED_STORES code.
5906
5907 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
5908
5909 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
5910 copyright.
5911 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
5912
5913 * config/mips/mipsv4.mh: Delete file.
5914
5915 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
5916 unreferenced macro.
5917 (hpread_adjust_stack_address): Delete declaration.
5918
5919 2004-06-08 Andrew Cagney <cagney@gnu.org>
5920
5921 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
5922 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
5923 PTRACE_ATTACH / PTRACE_DETACH available call error.
5924 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
5925 * infttrace.c (update_thread_state_after_attach, attach, detach):
5926 Remove #ifdef wrappers.
5927 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
5928 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
5929 * config/nm-bsd.h (ATTACH_DETACH): Delete.
5930 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
5931 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
5932 * config/nm-linux.h (ATTACH_DETACH): Delete.
5933 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
5934 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
5935 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
5936 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
5937 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
5938
5939 2004-06-08 Corinna Vinschen <vinschen@redhat.com>
5940
5941 * configure.in: Set $configdir to the right OS specific value.
5942 Use value when setting $tcldir and $tkdir.
5943 * configure: Regenerate.
5944
5945 2004-06-06 Paul Brook <paul@codesourcery.com>
5946
5947 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
5948 records.
5949
5950 2004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
5951
5952 * ada-lang.c (lookup_symbol_in_language): New function to allow
5953 re-use of another language's symbol lookup code. (Placed here
5954 temporarily while Ada support is being integrated into the public
5955 tree).
5956 (restore_language): New auxiliary function for
5957 lookup_symbol_in_language.
5958 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
5959 temporarily while Ada support is being integrated into the public
5960 tree).
5961
5962 2004-06-08 Alexandre Oliva <aoliva@redhat.com>
5963
5964 * Makefile.in (check//%): New.
5965
5966 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
5967 (mn10300_store_return_value): Rewrite.
5968 (mn10300_type_align): New.
5969 (mn10300_use_struct_convention): Rewrite.
5970 (mn10300_return_value): New, using all of the above.
5971 (mn10300_pop_frame_regular): Add saved_regs_size.
5972 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
5973
5974 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
5975 regs if PC is on movm.
5976
5977 2004-06-07 Jim Blandy <jimb@redhat.com>
5978
5979 Add native Linux support for the PowerPC E500.
5980 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
5981 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
5982 all architectures except the E500.
5983 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
5984 #definitions.
5985 (struct gdb_evrregset_t): New type.
5986 (have_ptrace_getsetevrregs): New variable.
5987 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
5988 fetch_spe_registers): New functions.
5989 (fetch_register): Call fetch_spe_register as appropriate.
5990 Assert that we're only passed raw register numbers.
5991 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
5992 Don't fetch gprs if they're pseudoregisters.
5993 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
5994 store_spe_registers): New functions.
5995 (store_register): Call store_spe_register as appropriate.
5996 Assert that we're only passed raw register numbers.
5997 (store_ppc_registers): Call store_spe_registers as appropriate.
5998 Don't store gprs if they're pseudoregisters.
5999
6000 2004-06-07 Jeff Johnston <jjohnstn@redhat.com>
6001
6002 * thread-db.c (thread_get_info_callback): Fill in the thread_info
6003 struct if one exists, even if we are dealing with a zombie thread.
6004
6005 2004-06-07 Andrew Cagney <cagney@gnu.org>
6006
6007 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
6008 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
6009 Rename PC_REQUIRES_RUN_BEFORE_USE.
6010 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
6011 #ifdef.
6012
6013 2004-06-07 Randolph Chung <tausq@debian.org>
6014
6015 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
6016 unwinding after sp has been saved to the stack but before the end
6017 of the prologue, and after the fp has been modified but before it has
6018 been saved to the stack.
6019 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
6020 Remove superfluous definitions.
6021 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
6022
6023 2004-06-07 Guy Martin <gmsoft@gentoo.org>
6024
6025 Committed by Randolph Chung.
6026 * hppa-linux-nat.c: Include the correct version of the header file
6027 depending on the kernel version.
6028
6029 2004-06-06 Randolph Chung <tausq@debian.org>
6030
6031 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
6032 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
6033
6034 2004-06-06 Randolph Chung <tausq@debian.org>
6035
6036 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
6037 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
6038 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
6039 * hppa-tdep.c (hppa_symbol_address): New function definition.
6040 * hppa-tdep.h (hppa_symbol_address): New function declaration.
6041
6042 2004-06-06 Randolph Chung <tausq@debian.org>
6043
6044 * hppa-tdep.h (struct value): Forward declaration.
6045 (gdbarch_tdep): Define tdep find_global_pointer method.
6046 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
6047 associated with the function we are trying to call, and write it
6048 to the gp register.
6049 (hppa32_convert_from_funct_ptr_addr): New function.
6050 (hppa_find_global_pointer): New function.
6051 (hppa_gdbarch_init): Set default find_global_pointer method; set
6052 convert_from_func_ptr_addr method.
6053 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
6054 (hppa_linux_init_abi): Set find_global_pointer method.
6055 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
6056
6057 2004-06-06 Randolph Chung <tausq@debian.org>
6058
6059 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
6060 to struct value *function.
6061 * gdbarch.c: Regenerate.
6062 * gdbarch.h: Likewise.
6063 * infcall.c (call_function_by_hand): Pass entire function value
6064 to push_dummy_call.
6065
6066 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
6067 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
6068 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
6069 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
6070 * arm-tdep.c (arm_push_dummy_call): Likewise.
6071 * avr-tdep.c (avr_push_dummy_call): Likewise.
6072 * cris-tdep.c (cris_push_dummy_call): Likewise.
6073 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
6074 * frv-tdep.c (frv_push_dummy_call): Likewise.
6075 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
6076 * hppa-tdep.c (hppa32_push_dummy_call)
6077 (hppa64_push_dummy_call): Likewise.
6078 * i386-tdep.c (i386_push_dummy_call): Likewise.
6079 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
6080 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
6081 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
6082 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
6083 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
6084 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
6085 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
6086 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
6087 (ppc64_sysv_abi_push_dummy_call): Likewise.
6088 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
6089 (ppc64_sysv_abi_push_dummy_call): Likewise.
6090 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
6091 * s390-tdep.c (s390_push_dummy_call): Likewise.
6092 * sh-tdep.c (sh_push_dummy_call_fpu)
6093 (sh_push_dummy_call_nofpu): Likewise.
6094 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
6095 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
6096 * vax-tdep.c (vax_push_dummy_call): Likewise.
6097
6098 2004-06-04 Jim Blandy <jimb@redhat.com>
6099
6100 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
6101 gdbarch argument to register_size.
6102
6103 * rs6000-tdep.c (rs6000_store_return_value): Use
6104 regcache_cooked_write_part instead of
6105 deprecated_write_register_bytes.
6106 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
6107 not gdbarch_deprecated_store_return_value.
6108
6109 * ppc-linux-nat.c (store_register, fetch_register): Remove
6110 incorrect assertions. Simplify and generalize handling of
6111 transfers whose sizes are not multiples of, or less than, sizeof
6112 (PTRACE_XFER_TYPE).
6113
6114 2004-06-04 Jeff Johnston <jjohnstn@redhat.com>
6115
6116 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
6117 as a new thread event.
6118 * thread-db.c (thread_get_info_callback): If the thread is a
6119 zombie, return TD_THR_ZOMBIE.
6120 (thread_from_lwp): If thread_get_info_callback returns
6121 TD_THR_ZOMBIE, check if the thread is still on the thread list
6122 and return a -1 ptid if not found.
6123 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
6124 change the status to TARGET_WAITKIND_SPURIOUS.
6125
6126 2004-06-03 Corinna Vinschen <vinschen@redhat.com>
6127
6128 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
6129 double values in little endian mode.
6130
6131 2004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
6132
6133 Committed by Andrew Cagney.
6134 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
6135 after last enum constant to avoid error from IBM C
6136 compiler.
6137
6138 2004-06-02 Jim Blandy <jimb@redhat.com>
6139
6140 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
6141 to 'message', and make it local to the lone block that uses it.
6142
6143 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
6144
6145 2004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
6146
6147 * ada-exp.y: Update copyright notice.
6148 Include block.h.
6149
6150 Replace REGNAME, LAST, INTERNAL_VARIABLE with
6151 SPECIAL_VARIABLE and unify the treatment of these cases.
6152
6153 (write_attribute_call0): Remove.
6154 (write_attribute_call1): Remove.
6155 (write_attribute_calln): Remove.
6156 (save_qualifier): Add missing semicolon.
6157
6158 (simple_exp,exp): Decomment (i.e., reactivate) code that was
6159 temporarily disabled to allow compilation with FSF head version.
6160
6161 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
6162 use individual operators (OP_*) for all attributes.
6163 (exp syntax): Use write_int.
6164 Handle STRING literals with OP_STRING.
6165 (variable syntax): Add limit parameter to calls to
6166 write_object_renaming.
6167
6168 (temp_parse_space): New definition to hold entities that need
6169 only live until the next call to ada_parse.
6170 (string_to_operator): Rename fields of ada_opname_table entries.
6171
6172 (write_var_from_sym): Record block.
6173 (write_var_from_name): Minor reformatting.
6174 Make sure saved name is properly encoded in the case of multiple
6175 matches, and set its language to Ada.
6176 Update comment.
6177 Modify to indicate unresolved name as symbol in the UNRESOLVED
6178 namespace, allocated in temp_parse_space.
6179 (write_int): New function.
6180
6181 (write_object_renaming): Add max_depth parameter to limit
6182 chains of object renamings.
6183 Handle case where root of renaming expression is itself a renaming.
6184 Use temp_parse_space for temporary name buffer.
6185 Handle renamings to dereferenced pointers (___XEXA suffices).
6186
6187 (ada_parse, yyerror, string_to_operator,
6188 write_var_from_sym, write_var_from_name, write_attribute_call0,
6189 write_attribute_call1, write_attribute_calln,
6190 write_object_renaming): Protoize.
6191
6192 (_initialize_ada_exp): New function.
6193
6194 * ada-lang.c: Update copyright notice.
6195 General terminology change to conform to GNAT compiler usage:
6196 mangle => encode, demangle => decode
6197 Include gdb_obstack.h.
6198 Include gdb_regex.h
6199 Include frame.h
6200 Include hashtab.h
6201 Include completer.h
6202 Include gdb_stat.h
6203 Include block.h
6204 Include infcall.h
6205
6206 (ADA_RETAIN_DOTS): Make sure this is defined.
6207 (TRUNCATION_TOWARDS_ZERO): Define.
6208 (struct string_vector): Define.
6209 (unresolved_names): Remove definition.
6210 (xnew_string_vector): New function.
6211 (string_vector_append): New function.
6212 (extract_string): Make static.
6213 (ada_unqualified_name): New function.
6214 (add_angle_brackets): New function.
6215 (function_name_from_pc): New function.
6216 (place_on_stack): Rename to ensure_lval.
6217
6218 (ensure_lval): Renamed from place_on_stack.
6219 Make identity on lvals.
6220 Update comment.
6221 (is_nonfunction): New interface.
6222 Only symbols in LOC_CONST class can be enumerals.
6223 (fill_in_ada_prototype): Remove; now independent of language.
6224 (add_defn_to_vec): Add obstack and symtab arguments.
6225 Use obstack to hold collected definitions.
6226 (num_defns_collected): New function.
6227 (defns_collected): New function.
6228 (ada_resolve_subexp): Rename to resolve_subexp.
6229 (resolve_subexp): Renamed from ada_resolve_subexp.
6230 (ada_op_name): Return non-const result.
6231 (ada_decoded_op_name): Renamed from ada_op_name, now used for
6232 other purposes.
6233
6234 (to_fixed_array_type): Add declaration.
6235 (coerce_unspec_val_to_type): Remove offset parameter.
6236 (find_sal_from_funcs_and_line): New interface.
6237 (find_line_in_linetable): Ditto.
6238
6239 (all_sals_for_line): Rename to ada_sals_for_line and make
6240 global.
6241 Add new parameter. When set, do not ask the user to choose the
6242 instance, but use the first one found instead.
6243 Use given line number in returned sals.
6244 Fix comment.
6245 Skip the prologue if funfirstline is set.
6246 Correct for memory leak when 0 lines found.
6247
6248 (value_pos_atr): Use pos_atr.
6249 (pos_atr): New function.
6250 (standard_lookup): Add block parameter.
6251
6252 (makeTimeStart): Remove declaration and uses.
6253 (makeTimeStop): Remove declaration and uses.
6254
6255 (ada_completer_word_break_characters): Allow for VMS.
6256 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
6257 (raise_sym_name): New constant.
6258 (raise_unhandled_sym_name): New constant.
6259 (raise_assert_sym_name): New constant.
6260 (process_raise_exception_name): New constant.
6261 (longest_exception_template): New constant.
6262 (warning_limit): New variable to limit warnings during expression
6263 evaluation.
6264 (warnings_issued): New variable to keep track of warnings issued.
6265 (known_runtime_file_name_patterns): New constant.
6266 (known_auxiliary_function_name_patterns): New constant.
6267 (symbol_list_obstack): New variable.
6268
6269 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
6270 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
6271 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
6272 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
6273 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
6274 ada_variant_discrim_name, field_alignment, dynamic_template_type,
6275 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
6276 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
6277 and strcmp.
6278
6279 (ada_get_field_index): New function.
6280 (lim_warning): New function.
6281 (ada_translate_error_message): New function.
6282 (MAX_OF_SIZE): New function.
6283 (MIN_OF_SIZE): New function.
6284 (UMAX_OF_SIZE): New function.
6285 (UMIN_OF_SIZE): New function.
6286 (discrete_type_high_bound): New function.
6287 (discrete_type_low_bound): New function.
6288 (base_type): New function.
6289 (do_command): Remove.
6290
6291 (ada_update_initial_language): Use language_ada, not language_unknown.
6292 (ada_encode): Renamed from ada_mangle.
6293 Obey ADA_RETAIN_DOTS.
6294 (ada_decode): Renamed from ada_demangle.
6295 Update coding conventions.
6296 (decoded_names_store): New hash table.
6297 (ada_decode_symbol): New function.
6298 (ada_la_decode): New function.
6299
6300 (modify_general_field): Correct computations of offset and bit
6301 position.
6302 (desc_base_type): Handle ref types, too.
6303 (ada_is_direct_array_type): New function.
6304
6305 (ada_is_simple_array): Rename to ada_is_simple_array_type.
6306 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
6307 (ada_is_bogus_array_descriptor,ada_type_of_array,
6308 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
6309 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
6310 ada_is_array_descriptor_type.
6311
6312 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
6313 (ada_is_packed_array_type): Handle pointers or
6314 references to packed arrays as well.
6315 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
6316 (decode_packed_array_type): Search for the packed array type
6317 symbol in the currently selected block and associated
6318 superblocks too.
6319 Use lookup_symbol again.
6320
6321 (decode_packed_array): Handle pointers and references.
6322 Update call to coerce_unspec_val_to_type.
6323 (decode_packed_array_type,value_subscript_packed): Limit warnings.
6324 (ada_value_primitive_packed_val): Improve comment.
6325
6326 (ada_index_type): Substitute int type for "undefined".
6327 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
6328 ada_array_langth, ada_is_string_type): Use renamed
6329 ada_is_simple_array_type.
6330 (empty_array): New function.
6331
6332 (ada_resolve): Rename to resolve.
6333 (resolve): Make static.
6334 Call renamed resolve_subexp.
6335 Update comment.
6336 (ada_resolve_subexp): Rename to resolve_subexp.
6337 (resolve_subexp): Update comment.
6338 Decomment disabled code.
6339 Add LOC_COMPUTED* cases.
6340 Modify to use temporary struct symbols (marked as being in
6341 UNDEF_NAMESPACE) to indicate unresolved names, instead of
6342 OP_UNRESOLVED_VALUE.
6343 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
6344 Add OP_STRING case.
6345 Remove OP_ARRAY.
6346 Use SYMBOL_PRINT_NAME instead of ada_demangle.
6347 Use new ada_lookup_symbol_list interface.
6348 Use new ada_resolve_function interface.
6349 Remove OP_TYPE case.
6350
6351 (ada_args_match): Idiot proof against null actuals.
6352 Use intermediate variables to clarify.
6353 (ada_resolve_function): Update comment and interface.
6354 (mangled_ordered_before): Rename to encoded_ordered_before and
6355 update comment.
6356 (sort_choices): Update comment and interface.
6357 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
6358 (user_select_syms): New interface.
6359 Use new sort_choices interface.
6360 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
6361 (possible_user_operator_p): Idiot-proof against null values.
6362 (ada_simple_renamed_entity): Don't make cleanup; rely on
6363 caller to free result string.
6364 Remove const from return type.
6365 (make_array_descriptor): Rename uses of place_on_stack to
6366 ensure_lval.
6367 Make sure that arrays are on stack.
6368
6369 (HASH_SIZE): Define.
6370 (struct cache_entry): Define.
6371 (cache_space): Define.
6372 (cache): Define.
6373 (clear_ada_sym_cache): New function.
6374 (find_entry): New function.
6375 (lookup_cached_symbol): New function.
6376 (defn_vector_size): Define.
6377 (cache_symbol): New function.
6378 (defn_symbols): Remove.
6379
6380 (standard_lookup): Use lookup_symbol_in_language to get effect of
6381 C lookup.
6382 Cache results.
6383
6384 (symbol_completion_match): New function.
6385 (symbol_completion_add): New function.
6386 (ada_make_symbol_completion_list): New function.
6387
6388 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
6389 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
6390 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
6391 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
6392
6393 (ada_lookup_simple_minsym): New function.
6394 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
6395
6396 (add_symbols_from_enclosing_procs): New interface.
6397 Conditionalize more helpfully.
6398 Don't bother if program isn't running.
6399 Use new interface to get_frame_block.
6400 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
6401
6402 (remove_extra_symbols): New interface.
6403 (xget_renaming_scope): New function.
6404 (is_package_name): New function.
6405 (renaming_is_visible): New function.
6406 (remove_out_of_scope_renamings): New function.
6407
6408 (ada_lookup_symbol_list): New interface.
6409 Properly reinitialize the symbol list obstack.
6410 Don't call add_symbols_from_enclosing_procs if we start from a
6411 static or global block.
6412 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
6413 add_symbols_from_enclosing_procs.
6414 Add symtab data to cached entries.
6415 Handle symbols prefixed with
6416 "standard__" specially; strip prefix and don't look in local symbols.
6417 Do not include out of scope renaming symbols in list of
6418 symbols returned.
6419 Add const to block parameter.
6420 Move check for non-local, non-global symbols earlier.
6421 Remove timing stuff.
6422 (ada_lookup_symbol): New interface.
6423 Find symtab as well.
6424 (ada_lookup_symbol_nonlocal): New function.
6425
6426 (is_name_suffix): Enhance suffix detection to recognize
6427 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
6428 (is_dot_digits_suffix): New function.
6429 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
6430
6431 (ada_add_block_symbols): New interface. Use obstack to return results
6432 in a vector of struct ada_symbol_infos. Add symtab argument.
6433 Use new interface to add_defn_to_vec.
6434 Remove calls to fill_in_ada_prototype.
6435 Use BLOCK_BUCKETS, BLOCK_BUCKET.
6436
6437 (ada_finish_decode_line_1): Add const qualification to local to fix
6438 warning.
6439 Start looking in static block for functions to avoid attempts
6440 to search frame chain for up-level variables.
6441 Adapt to new ada_sals_for_line interface.
6442 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
6443 Handle quoting of the function name inside the spec string.
6444 Skip prologue when funfirstline is set and update the
6445 function documentation to that effect.
6446
6447 (debug_print_lines, debug_print_block, debug_print_blocks,
6448 debug_print_symtab): Remove.
6449
6450 (ada_main_name): New function.
6451 (ada_exception_breakpoint_type): New function.
6452 (is_known_support_routine): New function.
6453 (ada_find_printable_frame): Renamed from find_printable_frame and made
6454 global.
6455 Remove level parameter.
6456 Use new interface to select_frame.
6457
6458 (begin_command): Remove.
6459 (ada_adjust_exception_stop): New function.
6460 (ada_print_exception_stop): New function.
6461 (exception_name_from_cond): New function.
6462 (ada_report_exception_break): Replace disabled code with
6463 conditionalization on GNAT_GDB.
6464 Get the exception name from the condition string.
6465 Remove and move functionality into new functions
6466 ada_print_exception_breakpoint_task and
6467 ada_print_exception_breakpoint_nontask.
6468 (error_breakpoint_runtime_sym_not_found): New function.
6469 (is_runtime_sym_defined): New function.
6470 (ada_breakpoint_rewrite): Uncomment suppressed code.
6471 Use symbolic error-message and runtime-symbol names.
6472 Surround runtime symbol names in quotes.
6473 Allow non-specific breakpoints on exceptions and assertions before
6474 program starts.
6475
6476 (ada_is_tagged_type): Add parameter.
6477 (ada_is_tag_type): New function.
6478 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
6479 (ada_variant_discrim_type): Ditto.
6480 (value_tag_from_contents_and_address): New function.
6481 (type_from_tag): New function.
6482 (struct tag_args): New structure used to communicate with
6483 ada_tag_name_1.
6484 (ada_tag_name_1): New function.
6485 (ada_tag_name): New function.
6486
6487 (ada_scan_number): Update comment.
6488 (find_struct_field): New function.
6489 (ada_search_struct_field): Make static.
6490 (ada_value_struct_elt): New version that returns references when
6491 given pointers or references to structs.
6492 (ada_lookup_struct_elt_type): Add 'refok' parameter.
6493 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
6494 interface.
6495 (ada_value_ind): Use new ada_to_fixed_value interface.
6496 (ada_coerce_ref): Ditto.
6497 (field_offset): Remove.
6498
6499 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
6500 (ada_find_renaming_symbol): New function.
6501 (ada_prefer_type): Prefer named types over unnamed ones.
6502 (variant_field_index): New function.
6503 (contains_variant_part): Removed: subsumed by variant_field_index.
6504 (ada_template_to_fixed_record_type): New function, mostly from
6505 template_to_fixed_record_type.
6506 (template_to_fixed_record_type):
6507 Do not scan the type fields beyond the last one; prevents a
6508 potential SEGV.
6509 Handle case where variant field is listed BEFORE discriminant it
6510 depends on.
6511 Fix calculation of record length when bit length is
6512 not evenly divisible by char length.
6513 Move code to ada_template_to_fixed_record_type and call it.
6514
6515 (template_to_static_fixed_type): Revise comment.
6516 Modify to work on ordinary record types as well as templates,
6517 so as to handle fields that use ___XVE or ___XVU encodings.
6518 (to_record_with_fixed_variant_part): Fill out comment.
6519 Initialize C++ stuff in right type.
6520 Allow case where DVAL is null.
6521 Handle case where variant field is not last.
6522 Fix typo concerning record length.
6523 (to_fixed_record_type): Decomment disabled code.
6524 (to_fixed_record_type): Use variant_field_index instead of
6525 contains_variant_part.
6526 (to_fixed_variant_branch_type): Ditto.
6527 (to_fixed_array_type): Decomment disabled code.
6528 (ada_to_fixed_type): Convert tagged types to the specific type.
6529 Deactivate the size-check for array types in order to avoid
6530 some false size alarms.
6531 (to_static_fixed_type): Decomment disabled code.
6532 Modify to call template_to_static_fixed_type
6533 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
6534 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
6535 Remove valaddr argument, as it is never really used.
6536 (ada_to_fixed_value): Change interface to act on single struct value*
6537 operand.
6538 (adjust_pc_past_prologue): New function.
6539 (ada_attribute_name): Modify to take enum exp_opcode argument.
6540
6541 (ada_enum_name): Recognize new homonym-distinguishing convention.
6542 Adjust local variable's type to remove compiler warning.
6543 Fix a small problem in the part that unqualifies the enumeration name.
6544 (ada_value_binop): New function.
6545 (ada_value_equal): New function.
6546
6547 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
6548 Don't give error message when not doing normal evaluation
6549 and a tagged type doesn't seem to contain a structure member.
6550 Give error message for packed arrays.
6551 For indexing arrays, handle pointers to packed arrays correctly.
6552 Handle case of 'first and 'last attributes of bare integral type
6553 without encoded subtype info.
6554 Remove some unnecessary casts.
6555 Fix uninitialized value of type in computing 'first, 'last, or 'length
6556 of array object.
6557 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
6558 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
6559 calls.
6560 Attributes are now exp_opcode values.
6561 Correct treatment of 'modulus.
6562 Better error message for taking 'length of wrong kind of type;
6563 improve comment.
6564 Change EVAL_NORMAL to noside for consistency.
6565 Use ada_value_binop for DIV, MOD, REM.
6566 Make special case out of array of length 0, since an argument
6567 of 0 upsets some platforms' malloc.
6568 Use OP_STRING instead of OP_ARRAY.
6569 For slice, add check that we have an array type before extracting
6570 a slice out of it. Avoids a SEGV.
6571 When evaluating an array slice, if the array type is a reference to
6572 an aligner type, then replace the aligner type by the actual type.
6573 Decomment disabled code.
6574 Remove some dead code.
6575 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
6576 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
6577 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
6578 and UNOP_MBR to UNOP_IN_RANGE.
6579 If an array type has a parallel ___XVE type, then use it.
6580 Turn arrays into pointers for lvalue arrays.
6581 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
6582 bounds error and handle 0-length slices.
6583 Use lim_warning.
6584 When selecting fields, apply ada_to_fixed_value (because the fields
6585 might have ___XVU or ___XVE encodings even if not dynamic.)
6586 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
6587 (ada_is_system_address_type): New function.
6588
6589 (get_var_value): Use new interface to ada_lookup_symbol_list.
6590 (get_int_var_value): New interface.
6591 (to_fixed_range_type): Allow unknown bound, with warning.
6592 (ada_is_modular_type): Decomment disabled code.
6593 (ADA_OPERATORS): New definition.
6594 (ada_operator_length): New function.
6595 (ada_expr_op_name): New function.
6596 (ada_forward_operator_length): New function.
6597 (ada_dump_subexp_body): New function.
6598 (ada_print_subexp): New function.
6599 (ada_exp_descriptor): New constant.
6600 (ada_op_print_tab): Add 'size. Remove FIXMEs.
6601 (ada_language_defn): Add ada_exp_descriptor entry.
6602 Change ada_parse => parse.
6603 Add post-parser entry.
6604 Use ada-specific non-local symbol lookup.
6605 Don't use C-style arrays.
6606 String lower-bound is 1.
6607 Decomment disabled code.
6608 (parse): New function.
6609 New fields ada_translate_error_message, ada_lookup_symbol,
6610 ada_lookup_minimal_symbol.
6611
6612 * ada-lang.h: Update copyright dates.
6613 Replace the mangle/demangle terminology throughout by the
6614 more appropriate encode/decode one.
6615 Include breakpoint.h.
6616 Forward declare struct partial_symbol, struct block.
6617 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
6618 (EXTRACT_ADDRESS): Remove.
6619 (EXTRACT_INT): Remove.
6620 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
6621 (MAX_ENCLOSING_FRAME_LEVELS): Define.
6622 (MAX_RENAMING_CHAIN_LENGTH): Define.
6623 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
6624
6625 (enum task_states): Remove.
6626 ada_task_states: Remove.
6627 (fat_string): Remove.
6628 (struct entry_call): Remove.
6629 (struct task_fields): Remove.
6630 (struct task_entry): Remove.
6631
6632 (struct ada_symbol_info): Define.
6633 (enum ada_attribute): Remove.
6634 (enum ada_operator): Define.
6635
6636 (ada_get_field_index): Declare.
6637 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
6638 (ada_is_simple_array): Rename to ada_is_simple_array_type.
6639 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
6640 (ada_lookup_symbol_list): New interface.
6641 (ada_decode_symbol): Declare.
6642 (ada_decode): Declare.
6643 (ada_lookup_symbol): New interface.
6644 (ada_update_initial_language): Declare.
6645 (ada_lookup_simple_minsym): Declare.
6646 (user_select_syms): New interface.
6647 (ada_sals_for_line): Declare.
6648 (ada_is_tagged_type): New interface.
6649 (ada_tag_name): Declare.
6650 (ada_lookup_struct_elt_type): Remove declaration.
6651 (ada_search_struct_field): Remove declaration.
6652 (ada_attribute_name): New interface.
6653 (ada_is_system_address_type): Declare.
6654 (ada_to_fixed_value): Remove declaration.
6655 (ada_template_to_fixed_record_type_1): Declare.
6656 (get_int_var_value): New interface.
6657 (ada_find_any_symbol): Declare.
6658 (ada_find_renaming_symbol): Declare.
6659 (ada_mangle): Rename to ada_encode.
6660 (ada_simple_renamed_entity): Remove const.
6661 (ada_main_name): Declare.
6662 (get_current_task): Rename to ada_get_current_task.
6663 (get_entry_number): Remove declaration.
6664 (ada_report_exception_break): Remove declaration.
6665 (ada_print_exception_breakpoint_nontask): Declare.
6666 (ada_print_exception_breakpoint_task): Declare.
6667 (ada_find_printable_frame): Declare.
6668
6669 * ada-lex.l: Update copyright notices.
6670 Use xmalloc and xfree instead of malloc and free.
6671 Use new interface to name_lookup.
6672 Use new interface to
6673 ada_mangle=>ada_encode.
6674 Redo handling of '$...' variable to parallel current treatment
6675 in c-exp.y.
6676 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
6677 digit_to_int, strtoulst, processInt, processReal, processId,
6678 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
6679 yywrap): Protoize.
6680
6681 (processInt): Use cast to remove harmless warning.
6682 (processReal): Modify to get rid of compiler warning on scan formats.
6683
6684 (processId): Replace xmalloc with obstack_alloc for name and remove
6685 call to ada_name_string_cleanup.
6686 Remove obsolete disabled code.
6687 (name_lookup): Ditto.
6688 New interface.
6689 Use obsavestring on temp_parse_space instead of savestring
6690 on name, and remove call to ada_name_string_cleanup.
6691 Free string returned from ada_simple_renamed_entity.
6692 Use new interface to ada_lookup_symbol_list.
6693 Decomment disabled code.
6694 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
6695 not types.
6696 When a type name lookup succeeds as a result of
6697 lookup_primitive_typename, check for regular type entry that has not
6698 yet been read in.
6699 Limit length of chain of renamed symbols we are willing to follow.
6700 Do not break names beginning with "standard__" into segments.
6701 (block_lookup): Use new interface to ada_lookup_symbol_list.
6702
6703 * ada-typeprint.c: Update copyright notice.
6704 (demangled_type_name): Rename to decoded_type_name.
6705 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
6706 (print_range_bound): Correct handling of negative
6707 bounds that make the index type looked unsigned under STABS.
6708 (print_dynamic_range_bound): Use new interface to get_int_var_value.
6709 (print_range_type_named): Use the builtin int type if no type
6710 corresponding to the given type name could be found.
6711 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
6712 Add some bullet-proofing.
6713 (print_variant_clauses): Allow for variant branches with ___XVU
6714 encodings that are not dynamic fields.
6715 Use new interface to ada_is_tagged_type.
6716 (print_record_type): Allow for fields with ___XVE encodings that
6717 are not dynamic fields.
6718 Use new interface to ada_is_tagged_type.
6719 (ada_print_type): ada_is_array_descriptor =>
6720 ada_is_array_descriptor_type.
6721
6722 * ada-valprint.c: Update copyright notice.
6723 Include gdb_string.h
6724 Include infcall.h
6725 (ui_memcpy): New function.
6726 (ada_print_floating): New function.
6727 (ada_print_str): Order arguments correctly.
6728 Correct handling of empty arrays and arrays of 0-length items.
6729 ada_is_array_descriptor => ada_is_array_descriptor_type
6730 Print values of type System.Address in hexadecimal format.
6731 Use ada_print_floating to print floating-point numbers in Ada format.
6732 Print class tag values with type names.
6733 No longer print the address of reference values. Avoids
6734 a potential confusion.
6735 (ada_value_print): Stop printing the object type for reference
6736 values, but preserve that behavior for access types. Avoids
6737 a potential confusion.
6738 Simplify one conditional expression, as the first part is now
6739 necessarily true.
6740 ada_is_array_descriptor => ada_is_array_descriptor_type
6741 Add check for arrays for null records, and print them by hand.
6742
6743 2004-06-01 Jim Blandy <jimb@redhat.com>
6744
6745 * ppc-tdep.h: Delete unused 'regoff' member.
6746 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
6747
6748 2004-06-01 Michael Chastain <mec.gnu@mindspring.com>
6749
6750 Fix PR symtab/1661.
6751 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
6752 (hpread_read_struct_type): Likewise.
6753
6754 2004-06-01 Andrew Cagney <cagney@gnu.org>
6755
6756 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
6757 instead of xasprintf.
6758 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
6759 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
6760 (mi_cmd_data_list_register_names)
6761 (mi_cmd_data_list_changed_registers)
6762 (mi_cmd_data_list_register_values)
6763 (get_register, mi_cmd_data_write_register_values)
6764 (mi_cmd_data_write_register_values)
6765 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
6766 (mi_cmd_target_download, mi_cmd_target_select)
6767 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
6768 (mi_execute_cli_command, mi_execute_async_cli_command)
6769 (mi_execute_async_cli_command): Ditto.
6770 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
6771 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
6772
6773 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
6774 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
6775 error_last_message instead of mi_error_last_message.
6776 * mi/mi-main.c (mi_error_last_message): Delete function.
6777
6778 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
6779 "invalid number of columns" error. Delete redundant "out of
6780 memory" check.
6781
6782 2004-05-31 Mark Kettenis <kettenis@gnu.org>
6783
6784 * i386bsd-nat.c: Don't include <sys/procfs.h>.
6785 (gregset_t, fpregset_t): Remove typedefs.
6786 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
6787 (REG_OFFSET): Rename argument.
6788 (i386bsd_r_reg_offset): Rename from reg_offset.
6789 (REG_ADDR): Remove macro.
6790 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
6791 functions.
6792 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
6793 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
6794 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
6795 instead of supply_gregset.
6796 (store_inferior_registers): Use `struct reg' and `struct fpreg'
6797 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
6798 instead of fill_gregset.
6799 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
6800
6801 * i386bsd-nat.c: Don't include "gregset.h".
6802 (supply_gregset, fill_gregset): Make static.
6803 (supply_fpregset, fill_fpregset): Remove.
6804 * Makefile.in (i386bsd-nat.o): Update dependencies.
6805
6806 2004-05-30 Mark Kettenis <kettenis@gnu.org>
6807
6808 * fbsd-proc.c: Include "regcache.h", "regset.h" and
6809 "gdb_assert.h". Con't include "gregset.h".
6810 (fbsd_make_corefile_notes): Use regset-based core file support
6811 instead off fill_gregset and fill_fpregset.
6812 * Makefile.in (fbsd-proc.o): Update dependencies.
6813
6814 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
6815 instructions.
6816 (m88k_frame_prev_register): Simplify code a bit.
6817
6818 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
6819 (amd64_collect_fpregset): New function.
6820 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
6821
6822 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
6823
6824 * i386-tdep.c (i386_supply_gregset): Adjust comment.
6825 (i386_collect_gregset): New function.
6826 (i386_supply_fpregset): Adjust comment.
6827 (i386_collect_fpregset): New function.
6828 (i386_regset_from_core_section): Use i386_collect_gregset and
6829 i386_collect_fpregset.
6830
6831 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
6832 handle VALUEP being null.
6833
6834 * regset.h (collect_regset_ftype): Unconstify fourth argument.
6835
6836 2004-05-29 Mark Kettenis <kettenis@gnu.org>
6837
6838 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
6839
6840 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
6841 assembler in OpenBSD 3.5-current.
6842 (amd64obsd_sigcontext_addr): Likewise.
6843
6844 2004-05-28 Jim Blandy <jimb@redhat.com>
6845
6846 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
6847 register set, so our regcache isn't declared "legacy" and our E500
6848 pseudoregister read and write functions aren't ignored.
6849 (rs6000_register_byte, rs6000_register_raw_size,
6850 rs6000_register_virtual_type, rs6000_register_convertible,
6851 rs6000_register_convert_to_virtual,
6852 rs6000_register_convert_to_raw): Deleted.
6853 (rs6000_register_type, rs6000_convert_register_p,
6854 rs6000_register_to_value, rs6000_value_to_register): New
6855 functions.
6856 (rs6000_gdbarch_init): Don't register
6857 gdbarch_deprecated_register_size,
6858 gdbarch_deprecated_register_bytes,
6859 gdbarch_deprecated_register_byte,
6860 gdbarch_deprecated_register_raw_size,
6861 gdbarch_deprecated_register_virtual_type,
6862 gdbarch_deprecated_register_convertible,
6863 gdbarch_deprecated_register_convert_to_virtual, or
6864 gdbarch_deprecated_register_convert_to_raw methods. Instead,
6865 register gdbarch_register_type, gdbarch_convert_register_p,
6866 gdbarch_register_to_value, and gdbarch_value_to_register methods.
6867
6868 2004-05-26 Jim Blandy <jimb@redhat.com>
6869
6870 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
6871 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
6872 functions, updated to match the register numberings used in GCC.
6873 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
6874 rs6000_dwarf2_reg_to_regnum as register number conversions
6875 functions for STABS and Dwarf2.
6876
6877 2004-05-26 Randolph Chung <tausq@debian.org>
6878
6879 * infttrace.h (target_waitkind): Forward declare type instead of pulling
6880 in header file.
6881
6882 2004-05-25 Joel Brobecker <brobecker@gnat.com>
6883
6884 * NEWS: Document new "start" command.
6885
6886 2004-05-25 Randolph Chung <tausq@debian.org>
6887
6888 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
6889 hppa-linux.
6890
6891 2004-05-25 Randolph Chung <tausq@debian.org>
6892
6893 * hppa-hpux-tdep.c (offsetof): Define.
6894 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
6895 (hppa32_hpux_frame_base_before_sigtramp)
6896 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
6897 (hppa64_hpux_frame_saved_pc_in_sigtramp)
6898 (hppa64_hpux_frame_base_before_sigtramp)
6899 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
6900 functions.
6901 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
6902 (hppa_hpux_sigtramp_frame_unwind_cache)
6903 (hppa_hpux_sigtramp_frame_this_id)
6904 (hppa_hpux_sigtramp_frame_prev_register)
6905 (hppa_hpux_sigtramp_frame_unwind)
6906 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
6907 (hppa_hpux_init_abi): Register sigtramp unwinder.
6908 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
6909
6910 2004-05-25 Randolph Chung <tausq@debian.org>
6911
6912 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
6913 and multiple stack unwinds.
6914 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
6915
6916 2004-05-25 Andrew Cagney <cagney@gnu.org>
6917
6918 * symfile.h (symbol_file_add_from_memory): Delete declaration.
6919 * symfile-mem.h: Delete file.
6920 * symfile-mem.c: Do not include "symfile-mem.h".
6921 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
6922 "struct bfd_section". When an error do not bother returning NULL.
6923 (add_symbol_file_from_memory_command): Use "struct bfd" and
6924 "struct bfd_section".
6925 * Makefile.in (symfile_mem_h): Delete.
6926 (symfile-mem.o): Update dependencies.
6927
6928 2004-05-25 Nick Roberts <nickrob@gnu.org>
6929
6930 * gdb-mi.el: New file.
6931
6932 2004-05-25 Andrew Cagney <cagney@gnu.org>
6933
6934 * inftarg.c: Include "observer.h".
6935 (child_attach, child_create_inferior): Notify inferior_created.
6936 * corelow.c: Include "observer.h".
6937 (core_open): Notify inferior_created.
6938 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
6939
6940 2004-05-25 Andrew Cagney <cagney@gnu.org>
6941
6942 * target.h (struct target_ops): Add from_tty to
6943 to_create_inferior.
6944 (target_create_inferior, find_default_create_inferior): Update.
6945 * infcmd.c (run_command): Update.
6946 * wince.c (child_create_inferior): Update.
6947 * win32-nat.c (child_create_inferior): Update.
6948 * uw-thread.c (uw_thread_create_inferior): Update.
6949 * thread-db.c (thread_db_create_inferior): Update.
6950 * target.c (debug_to_create_inferior)
6951 (find_default_create_inferior): Update.
6952 (maybe_kill_then_create_inferior): Update.
6953 * sol-thread.c (sol_thread_create_inferior): Update.
6954 * remote.c (extended_remote_async_create_inferior)
6955 (extended_remote_create_inferior): Update.
6956 * remote-vx.c (vx_create_inferior): Update.
6957 * remote-st.c (st2000_create_inferior): Update.
6958 * remote-sim.c (gdbsim_create_inferior): Update.
6959 * remote-sds.c (sds_create_inferior): Update.
6960 * remote-rdp.c (remote_rdp_create_inferior): Update.
6961 * remote-rdi.c (arm_rdi_create_inferior): Update.
6962 * remote-m32r-sdi.c (m32r_create_inferior): Update.
6963 * remote-e7000.c (e7000_create_inferior): Update.
6964 * procfs.c (procfs_create_inferior): Update.
6965 * ocd.c (ocd_create_inferior): Update.
6966 * ocd.h (ocd_create_inferior): Update.
6967 * nto-procfs.c (procfs_create_inferior): Update.
6968 * monitor.c (monitor_create_inferior): Update.
6969 * lin-lwp.c (lin_lwp_create_inferior): Update.
6970 * inftarg.c (child_create_inferior): Update.
6971 * hpux-thread.c (hpux_thread_create_inferior): Update.
6972 * gnu-nat.c (gnu_create_inferior): Update.
6973
6974 2004-05-25 Andrew Cagney <cagney@gnu.com>
6975
6976 * MAINTAINERS: Update e-mail address.
6977
6978 2004-05-24 Randolph Chung <tausq@debian.org>
6979
6980 * thread.c (info_threads_command, thread_apply_all_command)
6981 (thread_apply_command, thread_command, do_captured_thread_select):
6982 Remove HPUXHPPA-specific code.
6983
6984 2004-05-24 Randolph Chung <tausq@debian.org>
6985
6986 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
6987 unused symbols.
6988 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
6989 references.
6990
6991 2004-05-24 Joel Brobecker <brobecker@gnat.com>
6992
6993 * infcmd.c (kill_if_already_running): New function, extracted
6994 from run_command().
6995 (run_command): Replace extracted code by call to
6996 kill_if_already_running().
6997 (start_command): New function.
6998 (_initialize_infcmd): Add "start" command.
6999
7000 2004-05-24 Mark Kettenis <kettenis@gnu.org>
7001
7002 Add OpenBSD/m88k support.
7003 * NEWS (New native configurations): Mention OpenBSD/m88k.
7004 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
7005 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
7006 * Makefile.in (m88k_tdep_h): New variable.
7007 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
7008 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
7009 * configure.host: Add m88*-*-openbsd*.
7010 * configure.tgt: Add m88*-*-openbsd*.
7011
7012 2004-05-24 Jim Blandy <jimb@redhat.com>
7013
7014 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
7015 to approve changes.
7016
7017 2004-05-24 Kevin Buettner <kevinb@redhat.com>
7018
7019 * symtab.c (fixup_section): Search section table when lookup by
7020 name fails.
7021
7022 2004-05-24 Randolph Chung <tausq@debian.org>
7023
7024 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
7025 be "small_struct".
7026
7027 2004-05-24 Mark Kettenis <kettenis@gnu.org>
7028
7029 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
7030 register number in regcache_raw_collect call.
7031 (m68kbsd_collect_fpregset): Likewise.
7032 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
7033
7034 * regset.h (struct regset): Add back `regset' member.
7035
7036 2004-05-23 Mark Kettenis <kettenis@gnu.org>
7037
7038 * configure.in: Check for td_pcb in `struct thread'.
7039 * configure, config.in: Regenerated.
7040
7041 * dpx2-nat.c: Remove file.
7042 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
7043 (dpx2-nat.o): Remove dependencies.
7044
7045 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
7046 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
7047 (amd64obsd_supply_pcb): New function.
7048 (_initialize_amd64obsd_nat): Enable libkvm interface.
7049 * Makefile.in (amd64obsd-nat.o): Update dependencies.
7050 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
7051 (LOADLIBES): New variable.
7052
7053 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
7054 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
7055 (sparc32nbsd_supply_pcb): New function.
7056 (_initialize_sparcnbsd_nat): Enable libkvm interface.
7057 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
7058 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
7059 (LOADLIBES): New variable.
7060
7061 2004-05-22 Mark Kettenis <kettenis@gnu.org>
7062
7063 * bsd-kvm.c, bsd-kvm.h: New files.
7064 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
7065 "bsd-kvm.h".
7066 (i386fbsd_supply_pcb): New function.
7067 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
7068 (i386fbsd-nat.o): Update dependencies.
7069 (bsd_kvm_h): New variable.
7070 (bsd-kvm.o): New dependency.
7071 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
7072 (LOADLIBES): New variable.
7073
7074 * regset.c: Tweak comment.
7075 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
7076 macro.
7077 * regset.h: Update copyright year.
7078 (struct regset): Remove `descr' member, add `gdbarch' member.
7079 (regset_alloc): Adjust prototype and comment.
7080 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
7081 (i386_supply_fpregset): Likewise.
7082 (i386_regset_from_core_section): Update call to regset_alloc.
7083 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
7084 REGSET->arch.
7085 (i386obsd_aout_regset_from_core_section): Update call to
7086 regset_alloc.
7087 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
7088 REGSET->arch.
7089 (i386nbsd_aout_regset_from_core_section): Update call to
7090 regset_alloc.
7091 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
7092 REGSET->arch.
7093 (amd64_regset_from_core_section): Update call to regset_alloc.
7094 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
7095 REGSET->arch.
7096 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
7097 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
7098 &sparc32nbsd_gregset in sparc32_supply_gregset call.
7099 (sparc32nbsd_init_abi): Update call to regset_alloc.
7100 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
7101 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
7102 (sparc64obsd_init_abi): Update call to regset_alloc.
7103 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
7104 &sparc64nbsd_gregset in sparc64_supply_gregset call.
7105 (sparc64nbsd_init_abi): Update call to regset_alloc.
7106 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
7107 &sparc64fbsd_gregset in sparc64_supply_gregset call.
7108 (sparc64fbsd_init_abi): Update call to regset_alloc.
7109
7110 2004-05-22 Jim Blandy <jimb@redhat.com>
7111
7112 * ppc-tdep.h (spe_register_p): New declaration.
7113 (struct gdbarch_tdep): New members: ppc_acc_regnum and
7114 ppc_spefscr_regnum.
7115 * rs6000-tdep.c (spe_register_p): New function.
7116 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
7117 spefscr.
7118 (rs6000_gdbarch_init): Initialize the new members of the tdep
7119 structure.
7120
7121 2004-05-21 Jim Blandy <jimb@redhat.com>
7122
7123 * ppc-linux-nat.c (fetch_register): Move code back to be next
7124 to the comment that describes it. (Moved code, instead of
7125 comment, for symmetry with store_register.)
7126
7127 Allocate regset structures in the gdbarch's obstack, not using
7128 xmalloc.
7129 * regset.c (regset_alloc): Renamed from regset_xmalloc.
7130 Add 'arch' argument. Allocate the regset on arch's obstack, not
7131 using xmalloc.
7132 * regset.h (regset_alloc): Update declaration.
7133 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
7134 gdbarch argument.
7135 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7136 * i386-tdep.c (i386_regset_from_core_section): Same.
7137 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7138 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7139 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7140 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7141 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7142 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7143
7144 2004-05-21 Joel Brobecker <brobecker@gnat.com>
7145
7146 * config/djgpp/fnchange.lst: Undo previous change, was useless.
7147
7148 2004-05-21 Jim Blandy <jimb@redhat.com>
7149
7150 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
7151 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
7152
7153 2004-05-20 Jim Blandy <jimb@redhat.com>
7154
7155 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
7156
7157 2004-05-20 Mark Kettenis <kettenis@gnu.org>
7158
7159 * regset.h: Make prototype const-correct.
7160 * regset.c (regset_xmalloc): Make const-correct.
7161
7162 2004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
7163
7164 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
7165 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
7166 (symbol_search_name): Declare.
7167
7168 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
7169 (iter_name_next_hashed): Ditto.
7170 (iter_name_next_linear): Ditto.
7171 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
7172
7173 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
7174 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
7175 (symbol_search_name): New function.
7176
7177 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
7178
7179 * minsyms.c (build_minimal_symbol_hash_tables): Change
7180 test for adding to demangled hash table to check for difference
7181 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
7182
7183 2004-05-19 Jim Blandy <jimb@redhat.com>
7184
7185 Use a constructor function to create regset structures.
7186 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
7187 (struct regset): Use supply_regset_ftype. Add new
7188 'collect_regset' member.
7189 (regset_xmalloc): New declaration.
7190 * regset.c: New file.
7191 * am64-tdep.c (amd64_regset_from_core_section): Use
7192 regset_xmalloc to construct regset structures.
7193 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7194 * i386-tdep.c (i386_regset_from_core_section): Same.
7195 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7196 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7197 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7198 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7199 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7200 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7201 * Makefile.in (COMMON_OBS): Add regset.o.
7202 (regset.o): New rule.
7203
7204 2004-05-19 Joel Brobecker <brobecker@gnat.com>
7205
7206 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
7207 and pthread_cond_wait.c.
7208
7209 2004-05-18 Jim Blandy <jimb@redhat.com>
7210
7211 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
7212 before the mach-specific switch, and then let the individual cases
7213 override the defaults, rather than leaving them uninitialized
7214 until the switch and then setting them in each case.
7215
7216 2004-05-18 Randolph Chung <tausq@debian.org>
7217
7218 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
7219 millicode functions.
7220
7221 2004-05-18 Randolph Chung <tausq@debian.org>
7222
7223 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
7224 references to dld_flags_buffer consistent.
7225
7226 2004-05-18 Randolph Chung <tausq@debian.org>
7227
7228 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
7229 it for unwinding the stack.
7230
7231 2004-05-18 Randolph Chung <tausq@debian.org>
7232
7233 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
7234 Undefine these so we can overide them using gdbarch.
7235
7236 2004-05-18 Randolph Chung <tausq@debian.org>
7237
7238 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
7239 handling for 64-bit HPUX (elf).
7240
7241 2004-05-18 Daniel Jacobowitz <dan@debian.org>
7242
7243 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
7244 constants.
7245 * amd64-tdep.c (amd64_skip_prologue): Likewise.
7246 * ia64-tdep.c (examine_prologue): Likewise.
7247 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
7248 * v850-tdep.c (v850_fix_call_dummy): Likewise.
7249
7250 2004-05-18 Mark Kettenis <kettenis@gnu.org>
7251
7252 * vax-tdep.c (vax_return_value): Implement
7253 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7254
7255 2004-05-17 Mark Kettenis <kettenis@gnu.org>
7256
7257 * vax-tdep.c (vax_return_value): Fix typo.
7258
7259 2004-05-17 Andrew Cagney <cagney@redhat.com>
7260
7261 * MAINTAINERS: Mark Salter was also responsible for
7262 testsuite/config/
7263
7264 * NEWS: Mention signal fixes.
7265
7266 2004-05-17 Randolph Chung <tausq@debian.org>
7267
7268 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
7269 check to see if we are unwinding an export stub. Export stubs clobber
7270 the %rp in the call path and stores the original rp in a stack slot.
7271
7272 2004-05-17 Jim Blandy <jimb@redhat.com>
7273
7274 * MAINTAINERS: Update address for J.T. Conklin.
7275
7276 2004-05-17 Randolph Chung <tausq@debian.org>
7277
7278 * hppa-tdep.c: Remove superfluous #include's.
7279 * Makefile.in (hppa-tdep.o): Update dependencies.
7280
7281 2004-05-17 Randolph Chung <tausq@debian.org>
7282
7283 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
7284 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
7285 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
7286 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
7287 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
7288 Remove static function declarations.
7289
7290 2004-05-17 Mark Kettenis <kettenis@gnu.org>
7291
7292 * alphabsd-nat.c: Update copyright year.
7293 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
7294
7295 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
7296 and M68K_A2_REGNUM.
7297
7298 * m68k-tdep.c (m68k_svr4_return_value): Implement
7299 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7300
7301 2004-05-16 Mark Kettenis <kettenis@gnu.org>
7302
7303 * sol-thread.c Update copyright year. Fix various coding
7304 standards violations. Tweak a few comments.
7305 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
7306 Delete prototypes.
7307
7308 2004-05-15 Randolph Chung <tausq@debian.org>
7309
7310 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
7311 as pointer instead of array reference since HPUX compiler does
7312 not accept unsized array arguments.
7313 * somsolib.c (dld_flags_buffer): Use constant array size.
7314
7315 2004-05-15 Mark Kettenis <kettenis@gnu.org>
7316
7317 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
7318 offset with decimal offset.
7319 (amd64obsd_sigcontext_addr): Return correct address for entire
7320 signal trampoline.
7321
7322 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
7323 instead of get_frame_base.
7324
7325 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
7326 (fill_gregset): Use regcache_raw_collect.
7327
7328 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
7329 ppcobsd-tdep.c.
7330
7331 * config/sparc/tm-nbsd64.h: Remove file.
7332 * config/tm-sunos.h: Remove file.
7333
7334 2004-05-15 Joel Brobecker <brobecker@gnat.com>
7335
7336 * rs6000-tdep.c (store_param_on_stack_p): New function,
7337 an improved version of some code extracted from skip_prologue().
7338 (skip_prologue): Use store_param_on_stack_p() to detect
7339 instructions saving a parameter on the stack. Detect when r0
7340 is used to save a parameter.
7341 Do not mark "li rx, SIMM" instructions as part of the prologue,
7342 unless the following instruction is also part of the prologue.
7343
7344 2004-05-14 Andrew Cagney <cagney@redhat.com>
7345
7346 * infrun.c (handle_inferior_event): Simplify
7347 STEP_OVER_UNDEBUGGABLE.
7348
7349 * infrun.c (handle_step_into_function): Delete function.
7350 (handle_inferior_event): Inline calls to
7351 handle_step_into_function.
7352
7353 2004-05-14 Jerome Guitton <guitton@gnat.com>
7354
7355 * rs6000-nat.c: Fix a comment.
7356
7357 2004-05-12 David Anderson <davea@sgi.com>
7358
7359 Committed by Jim Blandy <jimb@redhat.com>:
7360 * regcache.c (struct regcache_descr): fix comment spelling.
7361
7362 2004-05-13 J. Brobecker <brobecker@gnat.com>
7363
7364 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
7365 Fixes a link link failure.
7366
7367 2004-05-13 J. Brobecker <brobecker@gnat.com>
7368
7369 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
7370 error that was causing the build to fail.
7371
7372 2004-05-13 J. Brobecker <brobecker@gnat.com>
7373
7374 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
7375 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
7376
7377 2004-05-13 Andrew Cagney <cagney@redhat.com>
7378
7379 * infrun.c (handle_inferior_event): Check for
7380 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
7381 calls. Update comments.
7382
7383 2004-05-13 Jim Blandy <jimb@redhat.com>
7384
7385 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
7386 (fetch_regs_user_thread, fetch_regs_kernel_thread)
7387 (store_regs_user_thread, store_regs_kernel_thread): Use
7388 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
7389 * ppc-linux-nat.c (fill_gregset): Same.
7390 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
7391 (ppc_linux_sigtramp_cache): Same.
7392 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
7393 (ppcnbsd_sigtramp_cache_init): Same.
7394 * rs6000-nat.c (fetch_core_registers): Same.
7395 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
7396 (rs6000_frame_cache): Same.
7397
7398 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
7399 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
7400 of assuming that the gprs are numbered starting with zero.
7401 * ppc-linux-nat.c (fill_gregset): Same.
7402 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
7403 * ppcnbsd-nat.c (getregs_supplies): Same.
7404 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
7405 * rs6000-nat.c (fetch_core_registers): Same.
7406 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
7407
7408 2004-05-07 Michael Snyder <msnyder@redhat.com>
7409
7410 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
7411 LOC_COMPUTED_ARG, and LOC_INDIRECT.
7412
7413 2004-05-13 Andrew Cagney <cagney@redhat.com>
7414
7415 * infrun.c (handle_inferior_event): Use frame_unwind_id.
7416
7417 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
7418
7419 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
7420 base_address for shared libraries.
7421
7422 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
7423
7424 * MAINTAINERS (write after approval): Add myself.
7425
7426 2004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
7427
7428 * breakpoint.c (bpstat_stop_status): Add new argument
7429 STOPPED_BY_WATCHPOINT. Use it instead of testing
7430 target_stopped_data_address agaist 0 to check whether
7431 or not we stopped due to a hardware watchpoint.
7432 * breakpoint.h (bpstat_stop_status): Adapt prototype.
7433 * infrun.c (handle_inferior_event): Call bpstat_stop_status
7434 with new argument.
7435
7436 2004-05-12 Jim Blandy <jimb@redhat.com>
7437
7438 * configure.in: When checking whether we should use the -bbigtoc
7439 option, don't forget to restore the original value of LDFLAGS.
7440 * configure: Regenerated.
7441
7442 2004-05-12 Andrew Cagney <cagney@redhat.com>
7443
7444 * thread.c (load_infrun_state): Delete step_sp.
7445 * infrun.c (context_switch): Ditto.
7446 * inferior.h (step_sp): Ditto.
7447 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
7448 * gdbthread.h (struct thread_info, save_infrun_state)
7449 (restore_infrun_state): Ditto.
7450
7451 2004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
7452
7453 * MAINTAINERS (write after approval): Add myself.
7454
7455 2004-05-12 Andrew Cagney <cagney@redhat.com>
7456
7457 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
7458 eliminate reference to step_sp.
7459 (struct execution_control_state, init_execution_control_state)
7460 (handle_inferior_event, keep_going): Delete update_step_sp and
7461 step_sp.
7462 * infcmd.c (step_sp): Note that variable is unused.
7463
7464 2004-05-11 Andrew Cagney <cagney@redhat.com>
7465
7466 * infrun.c (step_over_function): Delete function.
7467 (handle_step_into_function): Use insert_step_resume_breakpoint.
7468 (insert_step_resume_breakpoint): Fix assertion.
7469
7470 2004-05-11 Nick Roberts <nickrob@gnu.org>
7471
7472 * utils.c (defaulted_query): Just use the normal query input type
7473 when printing the annotations.
7474
7475 2004-05-11 Andrew Cagney <cagney@redhat.com>
7476
7477 * infrun.c (handle_inferior_event): Simplify code handling
7478 step-into or return-from a signal trampoline.
7479
7480 2004-05-11 Andrew Cagney <cagney@redhat.com>
7481
7482 * ppcnbsd-tdep.c: Include "gdb_assert.h".
7483 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
7484
7485 2004-05-10 Jim Blandy <jimb@redhat.com>
7486
7487 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
7488 with a call to internal_error.
7489
7490 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
7491 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
7492 processor variant lacks those registers.
7493 (ppc_floating_point_unit_p): Change description to make it clear
7494 that this returns info about the ISA, not the ABI.
7495 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
7496 return true or false by checking tdep->ppc_fp0_regnum and
7497 tdep->ppc_fpscr_regnum. The original code replicated the BFD
7498 arch/mach switching done in rs6000_gdbarch_init; it's better to
7499 keep that logic there, and just check the results here.
7500 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
7501 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
7502 floating-point registers.
7503 (ppc_supply_fpregset, ppc_collect_fpregset)
7504 (rs6000_push_dummy_call, rs6000_extract_return_value)
7505 (rs6000_store_return_value): Assert that we have floating-point
7506 registers.
7507 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
7508 (rs6000_frame_cache): Don't note the locations at which
7509 floating-point registers were saved if we have no fprs.
7510 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
7511 registers.
7512 (fetch_regs_user_thread, fetch_regs_kernel_thread)
7513 (store_regs_user_thread, store_regs_kernel_thread): Only call
7514 supply_fprs / fill_fprs if we actually have floating-point
7515 registers.
7516 (special_register_p): Check ppc_fpscr_regnum before matching
7517 against it.
7518 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
7519 supply / collect fpscr if we don't have it.
7520 * ppc-bdm.c: #include "gdb_assert.h".
7521 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
7522 have floating-point registers, since I can't test this code on
7523 FP-free systems to adapt it.
7524 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
7525 fpscr and floating point register numbers if they don't exist.
7526 (fetch_register): Assert that we have floating-point registers
7527 before we reach the code that handles them.
7528 (store_register): Same. And use tdep instead of calling
7529 gdbarch_tdep again.
7530 (fill_fpregset): Don't try to collect FP registers and fpscr if we
7531 don't have them.
7532 (ppc_linux_sigtramp_cache): Don't record the saved locations of
7533 fprs and fpscr if we don't have them.
7534 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
7535 don't have them.
7536 * ppcnbsd-nat.c: #include "gdb_assert.h".
7537 (getfpregs_supplies): Assert that we have floating-point registers.
7538 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
7539 * ppcobsd-tdep.c: #include "gdb_assert.h".
7540 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
7541 have floating-point registers.
7542 * rs6000-nat.c (regmap): Don't match against the fpscr and
7543 floating point register numbers if they don't exist.
7544 (fetch_inferior_registers, store_inferior_registers,
7545 fetch_core_registers): Only fetch / store / supply the
7546 floating-point registers and the fpscr if we have them.
7547 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
7548 (ppcobsd-tdep.o): Update dependencies.
7549
7550 2004-05-10 Andrew Cagney <cagney@redhat.com>
7551
7552 * infrun.c (through_sigtramp_breakpoint): Delete variable.
7553 (context_switch): Do not switch through_sigtramp_breakpoint.
7554 * gdbthread.h (save_infrun_state, load_infrun_state)
7555 (struct thread_info): Delete through_sigtramp_breakpoint parameter
7556 and structure member.
7557 * thread.c (load_infrun_state, save_infrun_state): Update.
7558
7559 2004-05-10 Mark Kettenis <kettenis@gnu.org>
7560
7561 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
7562
7563 2004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
7564
7565 * acinclude.m4: Quote macro names being defined by AC_DEFUN
7566 throughout.
7567 * aclocal.m4: Regenerate.
7568
7569 2004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
7570
7571 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
7572
7573 2004-05-10 Andrew Cagney <cagney@redhat.com>
7574
7575 * infrun.c (check_sigtramp2): Delete function.
7576 (handle_inferior_event): When single stepping, and taking a
7577 signal, set a breakpoint at the signal return address. Delete
7578 redundant calls to check_sigtramp2.
7579 (insert_step_resume_breakpoint): New function.
7580 (through_sigtramp_breakpoint, handle_inferior_event)
7581 (follow_exec, wait_for_inferior, fetch_inferior_event)
7582 (currently_stepping, keep_going): Delete most uses of
7583 through_sigtramp_breakpoint, not that it should be deleted.
7584 (delete_breakpoint_current_contents): Delete function.
7585
7586 2004-05-10 Randolph Chung <tausq@debian.org>
7587
7588 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
7589 target.
7590 * config/pa/tm-linux.h: New file.
7591
7592 2004-05-10 Daniel Jacobowitz <drow@mvista.com>
7593
7594 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
7595 of prefixes. Don't print the prefix twice in the CLI.
7596
7597 2004-05-10 Jim Blandy <jimb@redhat.com>
7598
7599 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
7600 collect all the gprs.
7601
7602 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
7603 loop collecting gprs.
7604
7605 2004-05-09 Andrew Cagney <cagney@redhat.com>
7606
7607 * remote-vx.c (net_step): Delete step-range code.
7608 * remote.c (remote_resume, init_all_packet_configs)
7609 (set_remote_protocol_E_packet_cmd)
7610 (show_remote_protocol_E_packet_cmd)
7611 (remote_protocol_E, show_remote_cmd, _initialize_remote)
7612 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
7613 (show_remote_protocol_e_packet_cmd): Ditto.
7614
7615 2004-05-09 Mark Kettenis <kettenis@gnu.org>
7616
7617 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
7618
7619 * hppa-tdep.h: Update copyright year.
7620 (struct trad_frame_saved_reg): Add opaque declaration.
7621
7622 * amd64-tdep.c (amd64_return_value): Implement
7623 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7624
7625 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
7626 (m68k_value_to_register): New functions.
7627 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
7628 value_to_register.
7629
7630 * defs.h (enum return_value_convention): Add
7631 RETURN_VALUE_ABI_RETURNS_ADDRESS and
7632 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
7633 * infcmd.c (legacy_return_value): New function.
7634 (print_return_value): Rwerite to implement
7635 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7636 * values.c (using_struct_return): Check for inequality to
7637 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
7638 RETURN_VALUE_STRUCT_CONVENTION.
7639 * i386-tdep.c (i386_return_value): Implement
7640 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7641
7642 * vax-tdep.c: Tweak comments. Reorder include files. Don't
7643 include "symtab.h", "opcode/vax.h" and "inferior.h".
7644 (vax_skip_prologue): Replace calls to read_memory_integer by calls
7645 to read_memory_unsigned_integer.
7646 (vax_gdbarch_init): Reorder.
7647 (_initialize_vax_tdep): Spell out prototype.
7648 * Makefile.in (vax-tdep.o): Update dependencies.
7649
7650 2004-05-08 Andrew Cagney <cagney@redhat.com>
7651
7652 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
7653 * target.c (target_detach, target_disconnect): Ditto.
7654
7655 * infcall.c (call_function_by_hand): When no
7656 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
7657 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
7658 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
7659 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7660 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7661
7662 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
7663 * gdbarch.h, gdbarch.c: Re-generate.
7664 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7665 deprecated_fix_call_dummy.
7666 * v850-tdep.c (v850_gdbarch_init): Ditto.
7667 * infcall.c (call_function_by_hand): Do not call
7668 DEPRECATED_FIX_CALL_DUMMY.
7669
7670 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
7671 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
7672 * gdbarch.h, gdbarch.c: Re-generate.
7673 * arm-linux-tdep.c (arm_linux_call_dummy_words)
7674 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
7675 deprecated_sizeof_call_dummy_words.
7676 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
7677 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7678 * v850-tdep.c (v850_gdbarch_init): Ditto.
7679 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
7680 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
7681 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7682 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7683 * arch-utils.h (legacy_call_dummy_words)
7684 (legacy_sizeof_call_dummy_words): Delete declarations.
7685 * arch-utils.c (legacy_call_dummy_words)
7686 (legacy_sizeof_call_dummy_words): Delete variables.
7687
7688 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
7689 * gdbarch.h, gdbarch.c: Re-generate.
7690 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
7691 * infcall.c (call_function_by_hand): Eliminate call to
7692 DEPRECATED_PUSH_DUMMY_FRAME.
7693 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
7694 push_dummy_frame.
7695 (ns32k_push_dummy_frame): Delete function.
7696
7697 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7698 deprecated_call_dummy_breakpoint_offset or
7699 deprecated_call_dummy_start_offset.
7700 * dummy-frame.c, arm-tdep.c: Update comments.
7701 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
7702 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
7703 * gdbarch.h, gdbarch.c: Re-generate.
7704
7705 * infcall.c (legacy_push_dummy_code): Delete function.
7706 (push_dummy_code): Delete call.
7707
7708 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
7709 * gdbarch.h, gdbarch.c: Re-generate.
7710 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
7711 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
7712 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
7713 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
7714
7715 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
7716 (struct frame_info): Delete opaque declaration.
7717 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
7718 * frame.c (get_frame_type): Delete call.
7719
7720 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
7721 pc_in_call_dummy.
7722 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
7723 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
7724
7725 2004-05-08 Mark Kettenis <kettenis@gnu.org>
7726
7727 * alphanbsd-tdep.c: Include "gdb_string.h".
7728 * armnbsd-tdep.c: Update copyright year.
7729 Include "gdb_string.h".
7730 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
7731 dependencies.
7732
7733 * delta68-nat.c: Remove file.
7734 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
7735 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
7736 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
7737 (delta68-nat.o): Remove dependency.
7738
7739 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
7740 function.
7741 (m68k_gdbarch_init): Don't set
7742 deprecated_frameless_function_invocation.
7743
7744 2004-05-07 Randolph Chung <tausq@debian.org>
7745
7746 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
7747 read_memory_nobpt for code reading when doing frame unwinding.
7748 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
7749
7750 2004-05-07 Randolph Chung <tausq@debian.org>
7751
7752 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
7753 instead of sp, handle sigaltstack case.
7754 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
7755 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
7756 signal handler and not that of the caller.
7757 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
7758 hppa_linux_sigtramp_find_sigcontext.
7759
7760 2004-05-07 Randolph Chung <tausq@debian.org>
7761
7762 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
7763 hppa-linux-nat.c.
7764 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
7765 * hppa-linux-nat.c (fetch_register, store_register): Define.
7766 (fetch_inferior_registers, store_inferior_registers): Define.
7767 (supply_gregset): Add comment and clean up some unneeded code.
7768 (fill_gregset): Add comment and fix so that it saves registers in
7769 the right place in the gregset.
7770 (fill_fpregset): Fix buffer overrun problem.
7771 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
7772
7773 2004-05-07 Randolph Chung <tausq@debian.org>
7774
7775 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
7776 do common handling of the pcoqt register.
7777 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
7778 to use helper function.
7779 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
7780 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
7781 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
7782 generic fallback unwinder when all else fails.
7783 (hppa_gdbarch_init): Add fallback sniffer.
7784 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
7785 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
7786 to use helper function.
7787
7788 2004-05-08 Joel Brobecker <brobecker@gnat.com>
7789
7790 * config/djgpp/fnchange.lst: Add translation rules for
7791 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
7792
7793 2004-05-08 Mark Kettenis <kettenis@gnu.org>
7794
7795 * frame.c (get_prev_frame_1): Work around GCC bug.
7796 * frame.h: Add comment about GCC bug.
7797
7798 2004-05-07 Andrew Cagney <cagney@redhat.com>
7799
7800 * observer.c: Include "commands.h" and "gdbcmd.h".
7801 (observer_debug, _initialize_observer): Add the
7802 command "set/show debug observer".
7803 * observer.sh: When observer debugging, log notify calls.
7804 * Makefile.in (observer.o): Update dependencies.
7805
7806 2004-05-07 Jason Molenda (jmolenda@apple.com)
7807
7808 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
7809
7810 2004-05-07 Jim Blandy <jimb@redhat.com>
7811
7812 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
7813 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
7814 to recognize gpr regnums, instead of assuming that
7815 tdep->ppc_fp0_regnum marks the end of the general-purpose
7816 registers.
7817
7818 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
7819 the given architecture has floating-point registers.
7820
7821 2004-05-07 Andrew Cagney <cagney@redhat.com>
7822
7823 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
7824 macro defined to 1.
7825 * gdbarch.h, gdbarch.c: Re-generate.
7826 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7827 deprecated_use_generic_dummy_frames.
7828
7829 2004-05-07 Brian Ford <ford@vss.fsi.com>
7830
7831 * NEWS: Mention Cygwin DWARF 2 support.
7832
7833 2004-05-07 Andrew Cagney <cagney@redhat.com>
7834
7835 * objfiles.h (struct entry_info): Delete unused fields
7836 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
7837 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
7838 * mipsread.c (mipscoff_symfile_read): Update.
7839 * mdebugread.c (parse_partial_symbols): Update.
7840 * dwarfread.c (read_file_scope): Update.
7841 * dwarf2read.c (read_file_scope): Update.
7842 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
7843 * coffread.c (complete_symtab): Update.
7844
7845 2004-05-07 Mark Kettenis <kettenis@gnu.org>
7846
7847 * infcall.c (_initialize_infcall): Fix typo.
7848
7849 2004-05-07 Andrew Cagney <cagney@redhat.com>
7850
7851 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
7852 * command.h (add_setshow_zinteger_cmd): Declare.
7853
7854 2004-05-06 Randolph Chung <tausq@debian.org>
7855
7856 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
7857 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
7858 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
7859 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
7860 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
7861 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
7862 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
7863 definitions ...
7864 * hppa-tdep.h: ... to here, with HPPA_ prefix.
7865 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
7866 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
7867 (hppa64_hpux_frame_find_saved_regs_in_sig)
7868 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
7869 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
7870 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
7871 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
7872 (hppa_linux_sigtramp_frame_prev_register): Likewise.
7873 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
7874 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
7875 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
7876 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
7877 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
7878 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
7879 (hppa32_register_type, hppa_cannot_store_register)
7880 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
7881 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
7882 * hpread.c (hpread_process_one_debug_symbol): Likewise.
7883 * pa64solib.c (pa64_solib_have_load_event)
7884 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
7885 (pa64_solib_unloaded_library_pathname): Likewise.
7886 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
7887 (som_solib_library_pathname): Likewise.
7888
7889 2004-05-05 Jim Ingham <jingham@apple.com>
7890
7891 * breakpoint.c (create_breakpoints): Copy the ignore count and
7892 thread id over from the pended breakpoint to the actual
7893 breakpoint.
7894
7895 2004-05-05 Andrew Cagney <cagney@redhat.com>
7896
7897 * gdbarch.sh (PARM_BOUNDARY): Delete.
7898 gdbarch.h, gdbarch.c: Re-generate.
7899 * valops.c (PARM_BOUNDARY): Delete macro.
7900 (value_push): Delete PARM_BOUNDARY code.
7901 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
7902
7903 2004-05-04 Jim Blandy <jimb@redhat.com>
7904
7905 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
7906 Don't assume that the gprs, fprs, and UISA sprs are
7907 contiguous, start at register number zero, and end with fpscr.
7908 Instead, use the numbers from the tdep structure.
7909
7910 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
7911 should no longer be used in code specific to the RS6000 and its
7912 derivatives.
7913 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
7914 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
7915 tdep->ppc_fp0_regnum.
7916 (ppc_supply_fpregset, ppc_collect_fpregset)
7917 (rs6000_push_dummy_call, rs6000_extract_return_value)
7918 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
7919 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
7920 FP0_REGNUM.
7921 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
7922 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
7923 Same.
7924 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
7925 bdm_ppc_store_registers): Same.
7926 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
7927 (store_register, fill_fpregset): Same.
7928 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
7929 (ppc_linux_supply_fpregset): Same.
7930 * ppcnbsd-nat.c (getfpregs_supplies): Same.
7931 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
7932 Same.
7933 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
7934 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
7935 ppc64_sysv_abi_return_value): Same.
7936 * rs6000-nat.c (regmap, fetch_inferior_registers)
7937 (store_inferior_registers, fetch_core_registers): Same.
7938
7939 2004-05-01 Mark Kettenis <kettenis@gnu.org>
7940
7941 * m68knbsd-nat.c: Remove file.
7942 * m68knbsd-tdep.c: Remove file.
7943 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
7944 dependencies.
7945 * configure.host: Add m68k-*-netbsdelf*.
7946 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
7947 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
7948 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
7949 (XM_FILE): Remove.
7950 * config/m68k/nbsdelf.mh: New file.
7951 * config/m68k/nbsd.mt: New file.
7952 * config/m68k/nbsdaout.mt: Remove file.
7953 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
7954 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
7955 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
7956 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
7957 (use_struct_convention): Remove prototype.
7958 (USE_STRUCT_CONVENTION): Remove define.
7959 * config/m68k/xm-nbsd.h: Remove file.
7960
7961 2004-05-04 Michael Snyder <msnyder@redhat.com>
7962
7963 * m68k-tdep.c (m68k_gdbarch_init): Default to using
7964 reg_struct_return method (as gcc usually does for cross targets).
7965
7966 2004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7967
7968 Committed by Andrew Cagney.
7969 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
7970 alignment padding when accessing ucontext struct members.
7971
7972 2004-05-04 Jim Blandy <jimb@redhat.com>
7973
7974 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
7975 'ppc_gplast_regnum' member.
7976 (ppc_num_gprs): New enum constant.
7977 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
7978 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
7979 * rs6000-nat.c (regmap, fetch_inferior_registers,
7980 store_inferior_registers): Same.
7981 * rs6000-tdep.c (e500_pseudo_register_read)
7982 (e500_pseudo_register_write): Same.
7983 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
7984
7985 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
7986 * ppc-tdep.h (ppc_num_fprs): New enum constant.
7987 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
7988 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
7989 FPLAST_REGNUM.
7990 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
7991 Same.
7992 * ppc-linux-nat.c (ppc_register_u_addr): Same.
7993 * rs6000-nat.c (regmap, fetch_inferior_registers)
7994 (store_inferior_registers): Same.
7995
7996 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
7997 with FPLAST_REGNUM.
7998
7999 2004-05-03 Joel Brobecker <brobecker@gnat.com>
8000
8001 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
8002 failure detected by recent versions of GCC.
8003 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
8004 to be consistent with the usage in dwarf2_create_include_psymtab.
8005
8006 2004-05-03 Michael Snyder <msnyder@redhat.com>
8007
8008 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
8009 (heuristic_proc_start): Whitespace cleanup.
8010
8011 2004-05-04 Mark Kettenis <kettenis@gnu.org>
8012
8013 * sun3-nat.c: Remove file.
8014 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
8015 dependencies.
8016 (ALLDEPFILES): Remove sun3-nat.c.
8017 (sun3-nat.o): Remove dependencies.
8018
8019 * i386-interix-nat.c, i386-interix-tdep.c,
8020 config/i386/nm-interix.h, config/i386/interix.mh,
8021 config/i386/interix.mt: Remove files.
8022 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
8023 dependencies.
8024
8025 2004-05-03 Mark Kettenis <kettenis@gnu.org>
8026
8027 * m68k-tdep.h (struct gdbarch_tdep): Add member
8028 struct_value_regnum.
8029 (m68k_svr4_init_abi): New prototype.
8030 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
8031 different calling conventions.
8032 (m68k_extract_return_value): Remove code dealing with single-field
8033 structs.
8034 (m68k_store_return_value): Remove code dealing with single-field
8035 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
8036 (m68k_extract_struct_value_address): Remove function.
8037 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
8038 (m68k_reg_struct_return_p, m68k_return_value)
8039 (m68k_svr4_return_value): New functions.
8040 (m68k_use_struct_convention): Remove function.
8041 (m68k_push_dummy_call): Use new struct_value_regnum member of
8042 `struct gdbarch_tdep' instead of hardcoded register number to
8043 store STRUCT_ADDR.
8044 (m68k_svr4_init_abi): New function.
8045 (m68k_gdbarch_init): Don't set extract_return_value,
8046 store_return_values, deprecated_extract_struct_value_address and
8047 use_struct_convention. Set return_value instead. Initialize new
8048 struct_value_regnum member of `struct gdbarch_tdep'.
8049 * m68klinux-tdep.c: Update copyright year.
8050 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
8051 (m68k_linux_extract_struct_value_address): Remove function.
8052 (m68k_linux_init_abi): Don't set extract_return_value,
8053 store_return_values, deprecated_extract_struct_value_address and
8054 use_struct_convention. Call m68k_svr4_init_abi but override the
8055 new struct_value_regnum member of `struct gdbarch_tdep'.
8056 * Makefile.in (m68k-tdep.o): Update dependencies.
8057
8058 2004-05-03 J. Brobecker <brobecker@gnat.com>
8059
8060 * dwarf2read.c (line_header): Add new included_p field in
8061 field file_names.
8062 (partial_die_info): New field has_stmt_list. New field line_offset.
8063 (dwarf2_create_include_psymtab): New function.
8064 (dwarf2_build_include_psymtabs): New function.
8065 (add_file_name): Add forward declaration. Initialize new field.
8066 (dwarf_decode_lines): Add new parameter. Enhance this procedure
8067 to be able to determine the list of files included by the
8068 given unit, and build their associated psymtabs.
8069 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
8070 files as well.
8071 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
8072 (read_file_scope): Update call to dwarf_decode_lines.
8073 (read_partial_die): Handle DW_AT_stmt_list attributes.
8074
8075 2004-05-02 Michael Chastain <mec.gnu@mindspring.com>
8076
8077 Unfix PR gdb/1626.
8078 * configure.in: Revert special case for osf5.*.
8079 * configure: Regenerate.
8080
8081 2004-05-02 Jim Blandy <jimb@redhat.com>
8082
8083 Move the symbol-file-from-memory functions into their own file.
8084 * symfile-mem.c, symfile-mem.h: New files.
8085 * symfile.c (symbol_file_add_from_bfd): New function.
8086 (symbol_file_add): Call symbol_file_add_from_bfd.
8087 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
8088 Moved to symfile-mem.c.
8089 (_initialize_symfile): Move definition of
8090 add-symbol-file-from-memory command to symfile-mem.c.
8091 * symfile.h (symbol_file_add_from_bfd): New declaration.
8092 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
8093 * config/powerpc/linux.mt (TDEPFILES): Same.
8094 * Makefile.in (SFILES): Add symfile-mem.c.
8095 (symfile_mem_h): New variable.
8096 (HFILES_NO_SRCDIR): Add symfile-mem.h.
8097 (symfile-mem.o): New rule.
8098
8099 2004-05-01 Andrew Cagney <cagney@redhat.com>
8100
8101 * breakpoint.c (insert_bp_location): Use get_frame_id, and
8102 frame_find_by_id instead of frame_relative_level.
8103 (do_enable_breakpoint): Ditto.
8104 * thread.c: Update copyright.
8105 (info_threads_command): Ditto, simplify.
8106
8107 * frame.c (deprecated_generic_get_saved_register): Delete
8108 function, moved to "xstormy16-tdep.c".
8109 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
8110 deprecated_generic_get_saved_register from "frame.c".
8111 (xstormy16_frame_saved_register): Call
8112 xstormy16_get_saved_register.
8113 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
8114 static.
8115 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
8116 * frame.h (deprecated_generic_get_saved_register): Delete.
8117
8118 2004-05-01 Michael Chastain <mec.gnu@mindspring.com>
8119
8120 * dwarfread.c: Update documentation on the state of dwarf-1.
8121
8122 2004-05-01 Andrew Cagney <cagney@redhat.com>
8123
8124 * stack.c (select_frame_command): Delete call to
8125 frame_relative_level.
8126 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
8127 Delete #if0 code.
8128 (frame_info): Do not print FRAMELESS.
8129 (print_block_frame_labels): Replace DEPRECATED_STREQ.
8130 (catch_info): Delete #if0 code.
8131
8132 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
8133 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
8134 of frame_relative_level.
8135 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
8136 to SENTINEL_FRAME.
8137 * frame.h (enum frame_type): Add SENTINEL_FRAME.
8138 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
8139 frame_relative_level.
8140
8141 * frame.h (deprecated_set_frame_type): Delete declaration.
8142 * frame.c (deprecated_set_frame_type): Delete function, update
8143 comments.
8144
8145 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
8146 * gdbarch.h, gdbarch.c: Re-generate.
8147 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
8148 (shnbsd_pc_in_sigtramp): Delete.
8149 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
8150 pc_in_sigtramp.
8151 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
8152 pc_in_sigtramp.
8153 * frame.h: Update comments.
8154 * ppc-linux-tdep.c: Update comments.
8155 * breakpoint.c (bpstat_what): Update comments.
8156
8157 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
8158 m68klinux-tdep.o's dependencies, were previously added to
8159 m68klinux-nat.o.
8160
8161 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
8162 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
8163 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
8164 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
8165 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
8166
8167 * Makefile.in (m68klinux-nat.o): Update dependencies.
8168 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8169 (m68k_linux_sigtramp_frame_cache)
8170 (m68k_linux_sigtramp_frame_this_id)
8171 (m68k_linux_sigtramp_frame_prev_register)
8172 (m68k_linux_sigtramp_frame_unwind)
8173 (m68k_linux_sigtramp_frame_sniffer)
8174 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
8175 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
8176 names, use trad-frame.h.
8177 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
8178 (struct m68k_sigtramp_info): Delete.
8179 * m68k-tdep.c (m68k_sigtramp_frame_cache)
8180 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
8181 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
8182 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
8183 "m68klinux-tdep.c".
8184
8185 * infrun.c (check_sigtramp2): Delete check for
8186 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
8187
8188 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8189
8190 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
8191
8192 2004-05-01 Andrew Cagney <cagney@redhat.com>
8193
8194 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8195 (frv_linux_sigtramp_frame_cache)
8196 (frv_linux_sigtramp_frame_this_id)
8197 (frv_linux_sigtramp_frame_prev_register)
8198 (frv_linux_sigtramp_frame_unwind)
8199 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
8200 include "linux" in function and variable names, directly call
8201 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
8202 the latest trad-frame code.
8203 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
8204 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
8205 * Makefile.in (frv-linux-tdep.o): Update dependencies.
8206 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
8207 * frv-tdep.c (frv_sigtramp_frame_cache)
8208 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
8209 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
8210 frv-linux-tdep.c.
8211 (frv_gdbarch_init): Do not append a sigtramp sniffer.
8212 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
8213 (frv_set_sigcontext_reg_addr): Delete function.
8214
8215 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
8216 (DEPRECATED_SIGTRAMP_END): Delete.
8217 * gdbarch.h, gdbarch.c: Re-generate.
8218 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
8219 * config/vax/tm-vaxbsd.h: Update copyright.
8220 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8221 (DEPRECATED_IN_SIGTRAMP): Define.
8222 * config/m68k/tm-nbsd.h: Update copyright.
8223 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8224 (DEPRECATED_IN_SIGTRAMP): Define.
8225
8226 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8227
8228 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
8229 encondings. Fixes PR gdb/1628.
8230
8231 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
8232 DW_CFA_restore state without a matching DW_CFA_remember_state
8233 instead of aborting. Fixes PR backtrace/1589.
8234
8235 2004-04-30 Joel Brobecker <brobecker@gnat.com>
8236
8237 * MAINTAINERS: Add self as AIX maintainer.
8238 Update my e-mail address in write-after-approval section.
8239
8240 2004-04-30 Andrew Cagney <cagney@redhat.com>
8241
8242 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
8243 (legacy_get_prev_frame): Ditto.
8244
8245 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
8246 (mips_gdbarch_init): Do not set pc_in_sigtramp.
8247 * mipsread.c (sigtramp_address): Delete extern variable.
8248 (mipscoff_new_init): Delete reference.
8249 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
8250 (fixup_sigtramp): Delete function.
8251 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
8252 (fixup_sigtramp): Delete declarations.
8253
8254 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
8255 deprecated_pc_in_sigtramp.
8256 (ppcnbsd_pc_in_sigtramp): Delete function.
8257
8258 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8259
8260 * config/m68k/nm-nbsd.h: Tweak comments.
8261 * config/m68k/nm-nbsdaout.h: Likewise.
8262
8263 2004-04-30 Andrew Cagney <cagney@redhat.com>
8264
8265 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
8266 legacy_pc_in_sigtramp.
8267 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
8268
8269 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8270
8271 Add OpenBSD/m68k support.
8272 * NEWS (New native configurations): Mention OpenBSD/m68k.
8273 * m68kbsd-tdep.c: New file.
8274 * m68kbsd-nat.c: New file.
8275 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
8276 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
8277 * configure.host: Add m68k-*-openbsd.
8278 * configure.tgt: Add m68k-*-openbsd.
8279 * config/m68k/tm-obsd.h: New file.
8280 * config/m68k/obsd.mt: New file.
8281 * config/m68k/obsd.mh: New file.
8282 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
8283 m68kbsd-tdep.c.
8284
8285 2004-04-30 Andrew Cagney <cagney@redhat.com>
8286
8287 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
8288 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
8289
8290 2004-04-30 Mark Kettenis <kettenis@gnu.org>
8291
8292 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
8293 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
8294
8295 2004-04-30 Brian Ford <ford@vss.fsi.com>
8296
8297 Revert 2004-04-16 change.
8298 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
8299 (i386_coff_init_abi): Remove.
8300 * i386-tdep.h (i386_coff_init_abi): Remove.
8301 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
8302
8303 2004-04-30 Andrew Cagney <cagney@redhat.com>
8304
8305 * blockframe.c (find_pc_partial_function): Delete use of
8306 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
8307 DEPRECATED_SIGTRAMP_END.
8308
8309 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
8310 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
8311 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
8312 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
8313 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
8314
8315 * defs.h (deprecated_inside_entry_file): Delete declaration.
8316 * blockframe.c (deprecated_inside_entry_file): Delete function.
8317 (legacy_frame_chain_valid): Delete call.
8318 * sh64-tdep.c (sh64_frame_chain): Delete call.
8319 * objfiles.h: Update comments.
8320 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
8321 call.
8322 * frame.c (get_prev_frame): Delete call, update comments.
8323
8324 2004-04-30 Brian Ford <ford@vss.fsi.com>
8325
8326 * MAINTAINERS (Write After Approval): Add myself.
8327
8328 2004-04-30 Andrew Cagney <cagney@redhat.com>
8329
8330 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
8331 * gdbarch.h, gdbarch.c: Re-generate.
8332 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
8333 code.
8334
8335 2004-04-30 Andrew Cagney <cagney@redhat.com>
8336
8337 * gdb-events.sh (selected_thread_changed)
8338 (selected_frame_level_changed, target_changed): Delete.
8339 * gdb-events.h, gdb-events.c: Re-generate.
8340 * valops.c (value_assign): Update.
8341 * stack.c (select_frame_command, up_silently_base)
8342 (down_silently_base): Update.
8343
8344 2004-04-29 Andrew Cagney <cagney@redhat.com>
8345
8346 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
8347 registers correctly.
8348 (print_gp_register_row, mips32_heuristic_proc_desc)
8349 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
8350 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
8351 references to mips_isa_regsize.
8352
8353 2004-04-29 Andrew Cagney <cagney@redhat.com>
8354
8355 * mips-tdep.c (struct gdbarch_tdep): Delete
8356 mips_fp_register_double.
8357 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
8358 mips_abi_regsize.
8359 (mips_gdbarch_init): Do not set mips_fp_register_double.
8360 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
8361
8362 2004-04-29 Joel Brobecker <brobecker@gnat.com>
8363
8364 Committed by Andrew Cagney.
8365 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
8366 function calls.
8367
8368 2004-04-29 Andrew Cagney <cagney@redhat.com>
8369
8370 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
8371 gdbarch, use mips_abi, update callers.
8372 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
8373 mips_abi_regsize, update callers.
8374 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
8375 mips_default_abi_regsize.
8376 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
8377 mips_default_abi_regsize.
8378
8379 2004-04-29 Andrew Cagney <cagney@redhat.com>
8380
8381 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
8382 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
8383 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
8384 mips_default_abi_regsize.
8385 (mips_isa_regsize): Rename mips_regisze.
8386 * mipsnbsd-tdep.c: Update.
8387 * mips-linux-tdep.c: Update.
8388 * irix5-nat.c: Update.
8389 * mips-tdep.h (mips_isa_regsize): Update.
8390
8391 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
8392 Delete all disabled code.
8393 * gdb-events.h, gdb-events.c: Re-generate.
8394
8395 2004-04-19 Jerome Guitton <guitton@gnat.com>
8396 Mark Kettenis <kettenis@gnu.org>
8397
8398 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
8399 the function begins with a branch instruction.
8400
8401 2004-04-29 Mark Kettenis <kettenis@gnu.org>
8402
8403 * i386-tdep.c: Fix spelling mistakes.
8404
8405 2004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8406 Andrew Cagney <cagney@redhat.com>
8407
8408 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
8409 <sys/proc.h>.
8410 * acconfig.h: Provide default _KMEMUSER value.
8411 * config.in, configure: Re-generate.
8412 * NEWS: Mention fix.
8413
8414 2004-04-24 Randolph Chung <tausq@debian.org>
8415
8416 * configure.host (hppa*-*-linux*): New target.
8417 * configure.tgt (hppa*-*-linux*): Likewise.
8418 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
8419 gdbarch_init_osabi() call earlier so that osabi-specific frame
8420 unwinders can be registered first.
8421 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
8422 hppa-linux-nat.c.
8423 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
8424 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
8425 * config/pa/linux.mh: New file.
8426 * config/pa/linux.mt: New file.
8427 * config/pa/nm-linux.h: New file.
8428 * config/pa/xm-linux.h: New file.
8429 * hppa-linux-nat.c: New file.
8430 * hppa-linux-tdep.c: New file.
8431
8432 2004-04-28 Randolph Chung <tausq@debian.org>
8433
8434 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
8435 return values.
8436 (hppa32_push_dummy_call): Fix small struct and floating point argument
8437 passing, and make sure the stack frame is properly aligned.
8438
8439 2004-04-28 Andrew Cagney <cagney@redhat.com>
8440
8441 * stack.c (print_stack_frame): Fix description.
8442
8443 * NEWS: Mention gdb/gdbserver/configure execute permission
8444 changed. PR server/519.
8445
8446 2004-04-28 Andrew Cagney <cagney@redhat.com>
8447
8448 * stack.c (print_stack_frame_stub): Delete declaration.
8449 (struct print_stack_frame_args, print_stack_frame)
8450 (print_frame_info, print_frame): Replace "source" with print what.
8451 Replace "print" with "print_level". Replace "args" with
8452 "print_args".
8453 * frame.h (show_and_print_stack_frame, print_stack_frame)
8454 (print_frame_info): Update declarations.
8455 * stack.c (select_and_print_frame, frame_command)
8456 (current_frame_command, up_command, down_command): Update calls -
8457 use get_selected_frame, pass "enum print_what" for source, do not
8458 call frame_relative_level.
8459 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
8460 * remote-rdp.c (remote_rdp_open): Ditto.
8461 * remote-mips.c (common_open): Ditto.
8462 * remote-e7000.c (e7000_start_remote): Ditto.
8463 * ocd.c (ocd_start_remote): Ditto.
8464 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
8465 * infrun.c (normal_stop): Ditto.
8466 * inflow.c (kill_command): Ditto.
8467 * infcmd.c (finish_command): Ditto.
8468 * corelow.c (core_open): Ditto.
8469 * tracepoint.c (finish_tfind_command): Ditto.
8470 * thread.c (info_threads_command, info_threads_command)
8471 (restore_current_thread, do_captured_thread_select): Ditto.
8472 * ada-tasks.c (task_command): Ditto.
8473
8474 2004-04-26 Orjan Friberg <orjanf@axis.com>
8475
8476 * frame.c: Include "observer.h".
8477 (frame_observer_target_changed): New function.
8478 (_initialize_frame): Attach target_changed observer.
8479 * regcache.c: Include "observer.h".
8480 (regcache_observer_target_changed): New function.
8481 (_initialize_regcache): Attach target_changed observer.
8482 * valops.c: Include "observer.h".
8483 (value_assign): Notify target_changed event when modifying register.
8484 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
8485
8486 2004-04-26 Orjan Friberg <orjanf@axis.com>
8487
8488 From Paul Koning <pkoning@equallogic.com>:
8489 * breakpoint.c (free_valchain): New function.
8490 (insert_bp_location, delete_breakpoint): Use free_valchain.
8491 (remove_breakpoint): Do not remove the valchain.
8492 (bpstat_stop_status): If not stopped by watchpoint, skip
8493 watchpoints when generating stop status list.
8494 * infrun.c (handle_inferior_event): Make
8495 stepped_after_stopped_by_watchpoint a global variable.
8496 * remote.c (remote_stopped_data_address): Return watch data
8497 address rather than zero if stepped_after_stopped_by_watchpoint is
8498 set.
8499
8500 2004-04-25 Michael Chastain <mec.gnu@mindspring.com>
8501
8502 Fix PR gdb/1626.
8503 * configure.in: Check for curses after termcap.
8504 On osf5.*, do not check for ncurses.
8505 * configure: Regenerate.
8506
8507 2004-04-25 Mark Kettenis <kettenis@gnu.org>
8508
8509 * ppcobsd-nat.c: Include "ppc-tdep.h".
8510 * Makefile.in (ppcobsd-nat.o): Update dependencies.
8511
8512 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
8513 Fixes PR tdep/1623 and PR tdep/1624.
8514
8515 2004-04-24 Michael Chastain <mec.gnu@mindspring.com>
8516
8517 * xmodem.h, xmodem.c: Remove files.
8518 * Makefile.in: Remove references to xmodem.h, xmodem.c.
8519
8520 2004-04-23 Randolph Chung <tausq@debian.org>
8521
8522 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
8523 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
8524 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
8525 for handling stackless frames.
8526 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
8527
8528 2004-04-23 Randolph Chung <tausq@debian.org>
8529
8530 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
8531 starts at a pc before the frame is created.
8532
8533 2004-04-23 Joel Brobecker <brobecker@gnat.com>
8534
8535 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
8536
8537 2004-04-23 Jerome Guitton <guitton@gnat.com>
8538
8539 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
8540 use convert_typed_floating to get the appropriate format.
8541
8542 2004-04-22 Randolph Chung <tausq@debian.org>
8543
8544 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
8545 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
8546 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
8547 (hppa_sign_extend): Add prototype.
8548 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
8549 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
8550 (sign_extend): Rename with hppa_ prefix and make non-static. Other
8551 hppa targets will also use these functions.
8552 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
8553 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
8554 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
8555 (hppa_gdbarch_init): Remove gdbarch setting of
8556 skip_trampoline_code, in_solib_call_trampoline and
8557 in_solib_return_trampoline.
8558 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
8559 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
8560 hppa_in_solib_call_trampoline.
8561 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
8562 Moved from hppa-tdep.c.
8563 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
8564 in_solib_call_trampoline and in_solib_return_trampoline.
8565
8566 2004-04-22 Randolph Chung <tausq@debian.org>
8567
8568 * hppa-tdep.c (hppa_debug): New variable.
8569 (find_unwind_entry, hppa_frame_cache): Add debug output.
8570 (_initialize_hppa_tdep): Add command to set debug flag.
8571
8572 2004-04-22 Andrew Cagney <cagney@redhat.com>
8573
8574 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
8575 "trad-frame.h".
8576 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
8577 signal trampoline unwinder.
8578 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
8579
8580 2004-04-22 Mark Kettenis <kettenis@gnu.org>
8581
8582 Add OpenBSD/powerpc support.
8583 * NEWS (New native configurations): Mention OpenBSD/powerpc.
8584 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
8585 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
8586 (ppc_collect_fpregset): New prototypes.
8587 * ppcobsd-nat.c: New file.
8588 * ppcobsd-tdep.c: New file.
8589 * ppcobsd-tdep.h: New file.
8590 * rs6000-tdep.c: Include "regset.h".
8591 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
8592 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
8593 New functions.
8594 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
8595 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
8596 (rs6000-tdep.o): Update dependencies.
8597 * configure.host: Add powerpc-*-openbsd.
8598 * configure.tgt: Add powerpc-*-openbsd.
8599 * config/powerpc/obsd.mh: New file.
8600 * config/powerpc/nm-obsd.h: New file.
8601 * config/powerpc/obsd.mt: New file.
8602
8603 2004-04-22 Andrew Cagney <cagney@redhat.com>
8604
8605 * frame.h (show_frame_info): Delete declaration.
8606
8607 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
8608 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
8609 * m32r-tdep.c (m32r_frame_this_id): Ditto.
8610 * frv-tdep.c (frv_frame_this_id): Ditto.
8611 * avr-tdep.c (avr_frame_this_id): Ditto.
8612
8613 2004-04-22 Elena Zannoni <ezannoni@redhat.com>
8614
8615 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
8616
8617 2004-04-22 Jim Blandy <jimb@redhat.com>
8618
8619 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
8620 register number zero.
8621
8622 2004-04-21 Michael Snyder <msnyder@redhat.com>
8623
8624 * mips-tdep.c (heuristic_proc_start):
8625 Warning() already prefixes "Warning: ".
8626
8627 2004-04-21 Andrew Cagney <cagney@redhat.com>
8628
8629 * annotate.h (deprecated_annotate_starting_hook)
8630 (deprecated_annotate_stopped_hook)
8631 (deprecated_annotate_exited_hook)
8632 (deprecated_annotate_signal_hook)
8633 (deprecated_annotate_signalled_hook): Deprecate.
8634 * tracepoint.h (deprecated_create_tracepoint_hook)
8635 (deprecated_delete_tracepoint_hook)
8636 (deprecated_modify_tracepoint_hook)
8637 (deprecated_trace_find_hook)
8638 (deprecated_trace_start_stop_hook): Deprecate.
8639 * target.h (deprecated_target_new_objfile_hook): Deprecate.
8640 * remote.h (deprecated_target_resume_hook)
8641 (deprecated_target_wait_loop_hook): Deprecate.
8642 * gdbcore.h (deprecated_exec_file_display_hook)
8643 (deprecated_file_changed_hook): Deprecate.
8644 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
8645 * defs.h (deprecated_modify_breakpoint_hook)
8646 (deprecated_command_loop_hook, deprecated_show_load_progress)
8647 (deprecated_print_frame_info_listing_hook)
8648 (deprecated_query_hook, deprecated_warning_hook)
8649 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
8650 (deprecated_delete_breakpoint_hook)
8651 (deprecated_interactive_hook, deprecated_registers_changed_hook)
8652 (deprecated_readline_begin_hook, deprecated_readline_hook)
8653 (deprecated_readline_end_hook, deprecated_register_changed_hook)
8654 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
8655 (deprecated_context_hook, deprecated_target_wait_hook)
8656 (deprecated_attach_hook, deprecated_detach_hook)
8657 (deprecated_call_command_hook, deprecated_set_hook)
8658 (deprecated_error_hook, deprecated_error_begin_hook)
8659 (deprecated_ui_load_progress_hook): Deprecate.
8660 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
8661 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
8662 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
8663 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
8664 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
8665 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
8666 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
8667 * annotate.c, aix-thread.c: Update.
8668
8669 2004-04-21 Andrew Cagney <cagney@redhat.com>
8670
8671 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
8672 * vaxnbsd-tdep.c: Include "gdb_string.h".
8673
8674 * symfile.c (symbol_file_add_from_memory): #if 0 function.
8675 (add_symbol_file_from_memory_command): #if 0 function body, call
8676 error instead.
8677
8678 2004-04-21 Andrew Cagney <cagney@redhat.com>
8679
8680 * gdbcore.h: Update copyright.
8681 (deprecated_add_core_fns): Rename add_core_fns.
8682 * win32-nat.c (_initialize_core_win32): Update.
8683 * sun3-nat.c (_initialize_core_sun3): Update.
8684 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
8685 * rs6000-nat.c (_initialize_core_rs6000): Update.
8686 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
8687 * nto-tdep.c (_initialize_nto_tdep): Update.
8688 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
8689 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
8690 * mips-nat.c (_initialize_core_mips): Update.
8691 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
8692 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
8693 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
8694 * lynx-nat.c (_initialize_core_lynx): Update.
8695 * irix5-nat.c (_initialize_core_irix5): Update.
8696 * i386-interix-nat.c (_initialize_core_interix): Update.
8697 * cris-tdep.c (_initialize_cris_tdep): Update.
8698 * corelow.c (deprecated_add_core_fns): Update.
8699 * core-regset.c (_initialize_core_regset): Update.
8700 * core-aout.c (_initialize_core_aout): Update.
8701 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
8702 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
8703 * alpha-nat.c (_initialize_core_alpha): Update.
8704
8705 2004-04-21 Jim Blandy <jimb@redhat.com>
8706
8707 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
8708
8709 2004-04-19 Daniel Jacobowitz <drow@mvista.com>
8710
8711 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
8712 Delete.
8713 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
8714 (read_attribute_value): Update calls to dwarf_alloc_block.
8715 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
8716 dwarf2_tmp_obstack.
8717 (psymtab_to_symtab_1): Likewise. Clean up using
8718 free_stack_comp_unit.
8719 (add_to_cu_func_list): Use the comp_unit_obstack.
8720
8721 2004-04-19 Joel Brobecker <brobecker@gnat.com>
8722
8723 * dwarf2read.c (dwarf2_flag_true_p): New function.
8724 (die_is_declaration): Use the function above. Add some comments.
8725
8726 2004-04-19 Mark Kettenis <kettenis@gnu.org>
8727
8728 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
8729 architecture when registering sparcnbsd_core_osabi_sniffer.
8730 Adjust comment.
8731
8732 2004-04-18 Mark Kettenis <kettenis@gnu.org>
8733
8734 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
8735 return value.
8736
8737 Based on a patch from Brian Ford <ford@vss.fsi.com>:
8738 * i386-tdep.c: Correct register numbering scheme comments
8739 throughout.
8740 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
8741 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
8742 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
8743 (i386_gdb_arch_init): Likewise.
8744
8745 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
8746 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
8747 ppcnbsd-tdep.o.
8748
8749 * m68k-tdep.h: Tweak comments.
8750 * m68k-tdep.c: Tweak comment.
8751
8752 2004-04-17 Randolph Chung <tausq@debian.org>
8753
8754 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
8755 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
8756 (hppa_hpux_som_init_abi): Set is_elf to 0.
8757 (hppa_hpux_elf_init_abi): Set is_elf to 1.
8758 * hppa-tdep.c (low_text_segment_address): Remove global.
8759 (record_text_segment_lowaddr): Pass in low address as parameter. Use
8760 section offset to calculate segment address.
8761 (internalize_unwinds): Define low_text_segment_address as local and
8762 pass to record_text_segment_lowaddr for ELF targets.
8763 (hppa_gdbarch_init): Zero fill tdep structure.
8764 (hppa_dump_tdep): Print tdep structure.
8765 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
8766
8767 2004-04-17 Randolph Chung <tausq@debian.org>
8768
8769 * hppa-tdep.c (hppa_pseudo_register_read): Define.
8770 (hppa_gdbarch_init): Set pseudo_register_read.
8771 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
8772 * regcache.c (supply_register): Remove check for
8773 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
8774
8775 2004-04-17 Randolph Chung <tausq@debian.org>
8776
8777 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
8778 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
8779 (hpread_adjust_stack_address): Move to hpread.c.
8780 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
8781 obj_private_struct): Move from tm-hppa.h.
8782 * hpread.c (hppa-tdep.h): Include.
8783 (hpread_adjust_stack_address): Move from hppa-tdep.c.
8784 (hpread_read_function_type, hpread_read_doc_function_type)
8785 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
8786 directly.
8787 * pa64solib.c (hppa-tdep.h): Include.
8788 * somsolib.c (hppa-tdep.h): Include.
8789 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
8790 inferior_status): Remove unused forward declarations.
8791 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
8792 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
8793 obj_private_struct): Move to hppa-tdep.h.
8794 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
8795
8796 2004-04-17 Randolph Chung <tausq@debian.org>
8797
8798 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
8799 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
8800 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
8801 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
8802 Remove forward declaration and make static.
8803 (hppa_reg_struct_has_addr): Remove.
8804
8805 2004-04-16 Joel Brobecker <brobecker@gnat.com>
8806
8807 * observer.sh: Move comments in sed command to first column.
8808
8809 2004-04-16 Jason Molenda (jmolenda@apple.com)
8810
8811 * frame.c: Minor typeo corrections in comments.
8812
8813 2004-04-16 Joel Brobecker <brobecker@gnat.com>
8814
8815 * observer.c (observer_test_first_notification_function): Update
8816 function profile.
8817 (observer_test_second_notification_function): Likewise.
8818 (observer_test_third_notification_function): Likewise.
8819
8820 2004-04-16 Mark Kettenis <kettenis@gnu.org>
8821
8822 From Brian Ford <ford@vss.fsi.com>:
8823 * i386-tdep.c (i386_coff_init_abi): New function.
8824 * i386-tdep.h (i386_coff_init_abi): New prototype.
8825 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
8826 register number translation functions for DWARF and DWARF 2.
8827
8828 2004-04-16 Joel Brobecker <brobecker@gnat.com>
8829
8830 * dwarf2read.c: Back out my previous change, it was incorrect.
8831
8832 2004-04-16 Daniel Jacobowitz <drow@mvista.com>
8833
8834 * dwarf2read.c: Include "hashtab.h".
8835 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
8836 has_namespace_info.
8837 (struct partial_die_info): Add comments. Use bitfields to reduce
8838 memory footprint. Add scope, scope_set, has_specification,
8839 spec_offset, die_parent, die_child, and die_sibling.
8840 (peek_die_abbrev): Add prototype.
8841 (partial_read_comp_unit_head): New function, broken out from
8842 dwarf2_build_psymtabs_hard.
8843 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
8844 Use partial_read_comp_unit_head. Initialize the CU and
8845 comp_unit_obstack. Update calls to read_partial_die and
8846 scan_partial_symbols. Use free_stack_comp_unit and
8847 load_partial_dies.
8848 (scan_partial_symbols): Change PDI to a pointer. Use the child and
8849 sibling pointers to walk partial DIEs. Call fixup_partial_die.
8850 Update calls to helper functions. Remove NAMESPACE argument.
8851 Update comments.
8852 (partial_die_parent_scope, partial_die_full_name): New functions.
8853 (add_partial_symbol): Remove namespace argument. Update call to
8854 pdi_needs_namespace. Use partial_die_full_name. Handle
8855 DW_TAG_namespace. Check has_namespace_info flag.
8856 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
8857 tag. Handle namespaces.
8858 (add_partial_namespace, add_partial_enumeration): Simplify.
8859 (guess_structure_name): New function, derived from
8860 add_partial_structure.
8861 (add_partial_structure): Remove.
8862 (determine_class_name): Update comment.
8863 (dwarf2_read_abbrevs): Set has_namespace_info flag.
8864 (is_type_tag_for_partial, load_partial_dies): New functions.
8865 (read_partial_die): Pass abbrev and abbrev_len as arguments.
8866 Record specifications instead of following them immediately.
8867 (find_partial_die_in_comp_unit, find_partial_die)
8868 (fixup_partial_die, free_stack_comp_unit)
8869 (hashtab_obstack_allocate, dummy_obstack_deallocate)
8870 (partial_die_hash, partial_die_eq): New functions.
8871 * Makefile.in (hashtab_h): Define.
8872 (dwarf2read.o): Update dependencies.
8873 (observer_inc, observer_h): Move to the correct section.
8874
8875 2004-04-15 Joel Brobecker <brobecker@gnat.com>
8876
8877 * dwarf2read.c (dwarf2_attribute_true_p): New function.
8878 (die_is_declaration): Use the function above. Add comment.
8879
8880 2004-04-15 Joel Brobecker <brobecker@gnat.com>
8881
8882 * dwarf2read.c (read_structure_scope): Identify stub types
8883 using die_is_declaration() only.
8884
8885 2004-04-15 Roland McGrath <roland@redhat.com>
8886
8887 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
8888 argument instead of NAME.
8889 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
8890 in call to symbol_file_add_with_addrs_or_offsets.
8891 (build_addr_info): New function, helper for ...
8892 (symbol_file_add_from_memory): New function.
8893 (add_symbol_file_from_memory_command): New function using that.
8894 (_initialize_symfile): Register it for add-symbol-file-from-memory.
8895 (pre_add_symbol_hook): Add const to argument type.
8896 * symfile.h (symbol_file_add_from_memory): Declare it.
8897
8898 2004-04-15 Mark Kettenis <kettenis@gnu.org>
8899
8900 * NEWS (New native configurations): Mention OpenBSD/vax.
8901 * configure.host: Add vax-*-openbsd*.
8902 * config/vax/obsd.mh: New file.
8903 * config/vax/nm-obsd.h: New file.
8904
8905 * vax-tdep.c: Include "regset.h".
8906 (vax_supply_gregset): New function.
8907 (vax_gregset): New variable.
8908 (vax_regset_from_core_section): New function.
8909 (vax_gdbarch_init): Set regset_from_core_section.
8910 * Makefile.in (vax-tdep.o): Update dependencies.
8911
8912 2004-04-15 Andrew Cagney <cagney@redhat.com>
8913
8914 * observer.c (normal_stop_subject, observer_notify_normal_stop)
8915 (observer_normal_stop_notification_stub)
8916 (observer_attach_normal_stop, observer_detach_normal_stop):
8917 Delete, replaced by #include "observer.inc".
8918 * infrun.c (normal_stop): Pass "stop_bpstat" to
8919 observer_notify_normal_stop.
8920 * Makefile.in (observer_inc): Define.
8921 (observer.o): Update dependencies.
8922 (observer.h, observer.inc): New rules.
8923 * observer.h: Delete file.
8924 * observer.sh: New file.
8925
8926 2004-04-15 Mark Kettenis <kettenis@gnu.org>
8927
8928 * vax-tdep.c (vax_frame_cache): Fix typo.
8929
8930 2004-04-14 Mark Kettenis <kettenis@gnu.org>
8931
8932 * NEWS (New native configurations): Mention NetBSD/vax.
8933 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
8934 * config/vax/nbsdelf.mh: New file.
8935 * config/vax/nbsdaout.mh: New file.
8936 * config/vax/nm-nbsd.h: New file.
8937 * config/vax/nm-nbsdaout.h: New file.
8938
8939 * vaxnbsd-tdep.c: New file.
8940 * Makefile.in (vaxnbsd-tdep.o): New dependency.
8941 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
8942 * config/vax/nbsd.mt: New file.
8943 * config/vax/tm-nbsd.h: New file.
8944
8945 * Makefile.in (vaxbsd-nat.o): New dependency.
8946
8947 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
8948 * vax-tdep.c (vax_store_arguments): Remove struct_return and
8949 struct_addr arguments. Don't push return value address.
8950 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
8951 arguments to vax_store_arguments. Store return value address in
8952 R1.
8953 (vax_store_struct_return, vax_extract_return_value)
8954 (vax_store_return_value): Remove functions.
8955 (vax_return_value): New function.
8956 (vax_gdbarch_init): Set return value. Don't set
8957 deprecated_store_struct_return, deprecated_extract_struct_return
8958 and deprecated_store_return_value.
8959
8960 2004-04-14 Andreas Schwab <schwab@suse.de>
8961
8962 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
8963 value buffer.
8964 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
8965
8966 2004-04-14 Mark Kettenis <kettenis@gnu.org>
8967
8968 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
8969 (vax_unwind_dummy_id): New functions.
8970 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
8971 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
8972 variables.
8973 (vax_fix_call_dummy): Remove function.
8974 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
8975 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
8976 call_dummy_location, deprecated_call_dummy_words,
8977 deprecated_sizeof_call_dummy_words,
8978 deprecated_call_dummy_breakpoint_offset,
8979 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
8980 and deprecated_dummy_write_sp.
8981
8982 2004-04-13 David Carlton <carlton@kealia.com>
8983
8984 * MAINTAINERS: Move myself to "paper trail" section.
8985
8986 2004-04-12 Mark Kettenis <kettenis@gnu.org>
8987
8988 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
8989 "trad-frame.h".
8990 (vax_frame_init_saved_regs): Remove function.
8991 (vax_sigtramp_saved_pc): Remove function.
8992 (vax_frame_saved_pc): Remove function.
8993 (vax_frame_args_address): Remove function.
8994 (vax_frame_num_args): Rewrite.
8995 (vax_frame_chain): Remove function.
8996 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
8997 VAX_FP_REGNUM.
8998 (vax_pop_frame): Likewise.
8999 (vax_saved_pc_after_call): Remove function.
9000 (struct vax_frame_cache): New structure.
9001 (vax_frame_cache): New function.
9002 (vax_frame_this_id): New function.
9003 (vax_frame_prev_register): New function.
9004 (vax_frame_unwind): New variable.
9005 (vax_frame_sniffer): New function.
9006 (vax_frame_base_address): New function.
9007 (vax_frame_args_address): New function.
9008 (vax_frame_base): New variable.
9009 (vax_unwind_pc): New function.
9010 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
9011 deprecated_fp_regnum, deprecated_saved_pc_after_call,
9012 deprecated_frame_chain, deprecated_frame_saved_pc,
9013 deprecated_frame_args_address and
9014 deprecated_frame_init_saved_regs.
9015 * Makefile.in (vax-tdep.o): Update dependencies.
9016
9017 * vaxbsd-nat.c: New file.
9018
9019 * vax-tdep.h: Update copyright year. Adjust comments.
9020 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
9021 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
9022 (vax_regnum): New enum. Replacing...
9023 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
9024 (VAX_PS_REGNUM): ... these removed macros.
9025 * vax-tdep.c (vax_register_name): Remove prototype.
9026 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
9027 (vax_register_byte, vax_register_raw_size,
9028 vax_register_virtual_size, vax_register_virtual_type): Remove
9029 functions.
9030 (vax_register_type): New function.
9031 (vax_breakpoint_from_pc): Reorganize.
9032 (vax_gdbarch_init): Set register_type. Don't set
9033 deprecated_register_size, deprecated_register_bytes,
9034 deprecated_register_byte, deprecated_register_raw_size,
9035 deprecated_max_register_raw_size,
9036 deprecated_register_virtual_size,
9037 deprecated_max_register_virtual_size and
9038 deprecated_register_virtual_type. Add comment on stack direction.
9039
9040 2004-04-11 Mark Kettenis <kettenis@gnu.org>
9041
9042 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
9043 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
9044 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
9045
9046 2004-04-10 Randolph Chung <tausq@debian.org>
9047
9048 * MAINTAINERS (write after approval): Add myself.
9049
9050 2004-04-07 Randolph Chung <tausq@debian.org>
9051
9052 * hppa-tdep.c (hppa_inner_than): Remove.
9053 (is_pa_2): Remove unused static variable.
9054 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
9055
9056 2004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
9057
9058 * language.h (language_defn): Add new la_post_parser field.
9059 * parser-defs.h (null_post_parser): New declaration (default for
9060 la_post_parser).
9061
9062 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
9063 insert call to that function.
9064 (parse_exp_in_context): New function, including code formerly in
9065 parse_exp_1. Calls language-dependent post-parser after
9066 prefixification.
9067 (parse_expression_in_context): New exported function.
9068 (null_post_parser): New definition.
9069 * expression.h (parse_expression_in_context): Add declaration.
9070
9071 * p-lang.c (pascal_language_defn): Add trivial post-parser.
9072 * c-lang.c (c_language_defn): Ditto.
9073 (cplus_language_defn): Ditto.
9074 (asm_language_defn): Ditto.
9075 (minimal_language_defn): Ditto.
9076 * f-lang.c (f_language_defn): Ditto.
9077 * jv-lang.c (java_language_defn): Ditto.
9078 * language.c (unknown_language_defn): Ditto.
9079 (auto_language_defn): Ditto.
9080 (local_language_defn): Ditto.
9081 * m2-lang.c (m2_language_defn): Ditto.
9082 * scm-lang.c (scm_language_defn): Ditto.
9083 * obj-lang.c (objc_language_defn): Ditto.
9084
9085 2004-04-10 Mark Kettenis <kettenis@gnu.org>
9086
9087 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
9088 (amd64nbsd_mcontext_addr): New function.
9089 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
9090 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
9091 with amd64nbsd_r_reg_offset, instead of building it on the fly.
9092
9093 * corelow.c (core_xfer_partial): Fix coding standards violation.
9094 Add support for TARGET_OBJECT_WCOOKIE.
9095
9096 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
9097 deprecated_pc_in_sigtramp.
9098 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
9099 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
9100 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
9101 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
9102 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
9103 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
9104 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
9105
9106 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
9107 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
9108 Fix typo.
9109
9110 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
9111 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
9112 (amd64_collect_fxsave): Likewise.
9113
9114 * i386-sol2-tdep.c: Include "gdb_string.h".
9115 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
9116 name.
9117 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
9118
9119 2004-04-10 Mark Kettenis <kettenis@gnu.org>
9120
9121 * i386-sol2-tdep.c: Include "solib-svr4.h".
9122 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9123 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
9124 * config/i386/tm-i386sol2.h: Include :solib.h".
9125 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
9126 solib-svr4.o and solib-legacy.o.
9127 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
9128 solib-svr4.o.
9129
9130 2004-04-09 Mark Kettenis <kettenis@gnu.org>
9131
9132 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
9133 whether a register is supplied by PTRACE_GETFPREGS.
9134 (store_inferior_registers): Likewise.
9135 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
9136 whether a register is supplied by PT_GETFPREGS.
9137 (store_inferior_registers): Likewise.
9138
9139 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
9140 * config/i386/linux64.mt (TDEPFILES): Likewise.
9141
9142 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
9143
9144 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
9145 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
9146 the program counter is in the range specified by `struct
9147 gdbarch_tdep'.
9148 * amd64-linux-tdep.c: Include "symtab.h".
9149 (amd64_linux_pc_in_sigtramp): Remove function.
9150 (amd64_linux_sigtramp_p): New function.
9151 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
9152 deprecated_pc_in_sigtramp.
9153 * amd64nbsd-tdep.c: Include "symtab.h".
9154 (amd64nbsd_sigtramp_p): New function.
9155 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
9156 deprecated_pc_in_sigtramp.
9157 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
9158 few comments.
9159 (amd64obsd_pc_in_sigtramp): Remove function.
9160 (amd64obsd_sigtramp_p): New function.
9161 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
9162 deprecated_pc_in_sigtramp.
9163 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
9164 (i386bsd_pc_ins_sigtramp): Remove prototype.
9165 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
9166 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
9167 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
9168 the program counter is in the range specified by `struct
9169 gdbarch_tdep'.
9170 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
9171 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
9172 (i386_go32_pc_in_sigtramp): Remove function.
9173 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
9174 Initialize TDEP->sigtramp_p.
9175 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
9176 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
9177 deprecated_pc_in_sigtramp.
9178 * i386-linux-tdep.c: Adjust comments.
9179 (i386_linux_pc_in_sigtramp): Remove function.
9180 (i386_linux_sigtramp_p): New function.
9181 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
9182 deprecated_pc_in_sigtramp.
9183 * i386-nto-tdep.c: Update copyright year.
9184 (i386nto_pc_in_sigtramp): Remove function.
9185 (i386nto_sigtramp_p): New function.
9186 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
9187 SP_REGNUM.
9188 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
9189 deprecated_pc_in_sigtramp.
9190 * i386-sol2-tdep.c: Update copyright year.
9191 (i386_sol2_pc_in_sigtramp): Remove function.
9192 (i386_sol2_sigtramp_p): New function.
9193 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
9194 deprecated_pc_in_sigtramp.
9195 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
9196 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
9197 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9198 deprecated_sigtramp_start and deprecated_sigtramp_end.
9199 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
9200 (i386nbsd_pc_in_sigtramp): Remove function.
9201 (i386nbsd_sigtramp_p): New function.
9202 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9203 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
9204 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
9205 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
9206 (i386obsd_pc_in_sigtramp): Remove function.
9207 (i386obsd_sigtramp_p): New function.
9208 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
9209 functions.
9210 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9211 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
9212 TDEP->sigtramp_p.
9213 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
9214 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
9215 dependencies.
9216
9217 * config/i386/i386aout.mt: Remove file.
9218
9219 * configure.tgt: Remove i[34567]86-*-go32*,
9220 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
9221 and i[34567]86-*-isc*. Set gdb_target to i386 for
9222 i[34567]86-*-netware* and i[34567]86-*-*.
9223 * config/i386/i386.mt: New file.
9224 * config/i386/embed.mt: Remove file.
9225 * config/i386/go32.mt: Remove file.
9226 * config/i386/i386nw.mt: Remove file.
9227 * config/i386/i386v.mt: Remove file.
9228 * config/i386/tm-go32.h: Remove file.
9229
9230 * tui/tui-hooks.c: Include "readline/readline.h" after
9231 "gdb_curses.h" instead of before.
9232 * tui/tui-io.c: Likewise.
9233
9234 * tui/tui.c: Fix typo in comment.
9235
9236 * sparc64-tdep.c (sparc_address_from_register): Remove function.
9237
9238 2004-04-08 Andrew Cagney <cagney@redhat.com>
9239
9240 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
9241 (deprecated_exception_support_initialized): Declare.
9242 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
9243 (initialize_hp_cxx_exception_support)
9244 (child_enable_exception_callback): Update.
9245 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
9246 (deprecated_exception_support_initialized): Rename
9247 deprecated_exception_catchpoints_are_fragile and
9248 deprecated_exception_support_initialized.
9249 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
9250
9251 * symtab.c (deprecated_hp_som_som_object_present): Rename
9252 hp_som_som_object_present.
9253 * symtab.h (deprecated_hp_som_som_object_present): Declare.
9254 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
9255 Update. Delete extern declaration.
9256 * valops.c (hp_som_som_object_present): Ditto.
9257 * parse.c (deprecated_hp_som_som_object_present)
9258 (parse_nested_classes_for_hpacc): Ditto.
9259 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
9260 * hppa-hpux-tdep.c (hp_som_som_object_present)
9261 (initialize_hp_cxx_exception_support): Ditto.
9262 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
9263 * cp-valprint.c (hp_som_som_object_present)
9264 (cp_print_class_method): Ditto.
9265 * c-typeprint.c (hp_som_som_object_present):
9266 (c_type_print_base): Ditto.
9267 * c-exp.y (hp_som_som_object_present): Ditto.
9268
9269 2004-04-08 Andrew Cagney <cagney@redhat.com>
9270
9271 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
9272 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
9273 (frame_unwind_find_by_frame): Re-implement the unwind code so
9274 that it can both prepend and append sniffers. Replace
9275 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
9276 * tramp-frame.c (tramp_frame_append): Use
9277 frame_unwind_prepend_unwinder.
9278 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
9279 frame_unwind_register_unwinder.
9280 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
9281 tramp_frame_append.
9282 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
9283 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
9284 (mips_linux_init_abi): Update.
9285
9286 2004-04-08 Kevin Buettner <kevinb@redhat.com>
9287
9288 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
9289 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
9290 file support.
9291
9292 2004-04-07 Kevin Buettner <kevinb@redhat.com>
9293
9294 * ia64-tdep.c (elf.h): Don't include.
9295 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
9296
9297 2004-04-07 Jason Molenda (jmolenda@apple.com)
9298
9299 * frame.h: Typeo corrections in comments.
9300
9301 2004-04-07 Jim Blandy <jimb@redhat.com>
9302
9303 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
9304 %esp and %ebp
9305
9306 2004-04-07 Mark Kettenis <kettenis@gnu.org>
9307
9308 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
9309 * config/sparc/linux64.mt (TDEPFILES): Likewise.
9310 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
9311 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
9312 and solib-legacy.o.
9313 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
9314 solib-svr4.o.
9315 * config/sparc/tm-sol2.h: Update copyright year. Include
9316 "solib.h".
9317
9318 * sparc-sol2-tdep.c: Update copyright year. Include
9319 "solib-svr4.h".
9320 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9321 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
9322 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9323 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
9324 dependencies.
9325
9326 2004-04-06 Andrew Cagney <cagney@redhat.com>
9327
9328 * infttrace.c: Include "infttrace.h".
9329 * infttrace.h: Include "target.h".
9330 * Makefile.in (infttrace_h): Update.
9331 (infttrace.o): Update.
9332
9333 2004-04-06 Andrew Cagney <cagney@redhat.com>
9334
9335 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
9336 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
9337 move extern declarations from here ...
9338 * infttrace.h: ... to here.
9339 * Makefile.in (hppah-nat.o): Update dependencies.
9340
9341 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
9342 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
9343 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
9344 (hppa_breakpoint_from_pc): Delete.
9345
9346 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
9347
9348 2004-04-05 Andrew Cagney <cagney@redhat.com>
9349
9350 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
9351 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
9352 <sys/file.h>.
9353
9354 2004-04-06 Randolph Chung <tausq@debian.org>
9355
9356 Committed by Andrew Cagney (mechanical change).
9357 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
9358 exception_catchpoints_are_fragile, find_stub_with_shl_get,
9359 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
9360 child_enable_exception_callback, current_ex_event,
9361 null_symtab_and_line, child_get_current_exception_event,
9362 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
9363 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
9364 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
9365 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
9366 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
9367 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
9368 Move hpux-specific definitions ...
9369 * hppa-hpux-tdep.c: ... to here.
9370
9371 2004-04-05 Andrew Cagney <cagney@redhat.com>
9372
9373 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
9374 skip_prologue_using_sal.
9375
9376 2004-04-05 Andrew Cagney <cagney@redhat.com>
9377
9378 * config/i386/tm-i386.h: Delete file.
9379 * config/i386/tm-vxworks.h: Update copyright, do not include
9380 "tm-i386.h".
9381 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
9382 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
9383 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
9384 * config/i386/ncr3000.mt (TM_FILE): Delete.
9385 * config/i386/interix.mt (TM_FILE): Delete.
9386 * config/i386/i386v.mt (TM_FILE): Delete.
9387 * config/i386/i386nw.mt (TM_FILE): Delete.
9388 * config/i386/i386gnu.mt (TM_FILE): Delete.
9389 * config/i386/i386aout.mt (TM_FILE): Delete.
9390 * config/i386/embed.mt (TM_FILE): Delete.
9391
9392 2004-04-05 Kevin Buettner <kevinb@redhat.com>
9393
9394 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
9395 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
9396 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
9397 (accg7_regnum): New constants.
9398 (last_spr_regnum, last_pseudo_regnum): Update.
9399 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
9400 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
9401 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
9402 for accg registers.
9403 (frv_register_sim_regno): Update spr_map[].
9404
9405 2004-04-04 Andrew Cagney <cagney@redhat.com>
9406
9407 * config/mips/xm-riscos.h: Delete.
9408 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
9409 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
9410 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
9411 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
9412 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
9413 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
9414 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
9415 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
9416 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
9417 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
9418 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
9419 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
9420 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
9421 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
9422 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
9423 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
9424 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
9425 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
9426 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
9427 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
9428 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
9429 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
9430 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
9431 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
9432 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
9433 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
9434
9435 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
9436 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
9437 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
9438 * configure.host: Remove m680[01]0-sun-sunos3*,
9439 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
9440 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
9441 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
9442 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
9443 mips-*-riscos*.
9444 * NEWS: Mention removed systems.
9445
9446 2004-04-04 Andrew Cagney <cagney@redhat.com>
9447
9448 GDB 6.1 release created from 6.1 branch.
9449
9450 2004-04-04 Andrew Cagney <cagney@redhat.com>
9451
9452 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
9453 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
9454 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
9455
9456 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
9457 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
9458 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
9459
9460 2004-04-03 Jim Blandy <jimb@redhat.com>
9461
9462 * MAINTAINERS: Chris Faylor has changed employers; add him to
9463 "paper trail" section, and update his E-mail address.
9464
9465 2004-04-03 Andrew Cagney <cagney@redhat.com>
9466
9467 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
9468 generic dummy frames.
9469 * dummy-frame.c: Update copyright.
9470 (dummy_frame_sniffer): Delete check for generic dummy frames.
9471
9472 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
9473 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
9474 (REG_PARM_STACK_SPACE): Delete.
9475 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
9476 Inline reference to REG_PARM_STACK_SPACE.
9477
9478 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
9479 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
9480 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
9481 (FRAME_BASE_BEFORE_SIGTRAMP)
9482 (hppa32_hpux_frame_base_before_sigtramp)
9483 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
9484 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
9485 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
9486 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
9487 (FRAME_BASE_BEFORE_SIGTRAMP)
9488 (hppa64_hpux_frame_base_before_sigtramp)
9489 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
9490
9491 2004-04-03 Andrew Cagney <cagney@redhat.com>
9492
9493 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
9494
9495 2004-04-02 Andrew Cagney <cagney@redhat.com>
9496
9497 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
9498 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
9499 * dummy-frame.h: Delete out-of-date comments.
9500 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
9501 * gdbarch.h, gdbarch.c: Re-generate.
9502
9503 2004-04-02 Joel Brobecker <brobecker@gnat.com>
9504
9505 Committed by Andrew Cagney <cagney@redhat.com>.
9506 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
9507 into account an instruction saving a register if we have already
9508 seen an earlier instruction saving that same register.
9509
9510 2004-04-02 Andrew Cagney <cagney@redhat.com>
9511
9512 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
9513 * gdbarch.h, gdbarch.c: Re-generate.
9514 * frame.c (legacy_get_prev_frame): Delete references to
9515 DEPRECATED_INIT_FRAME_PC_FIRST.
9516
9517 * infrun.c (pc_in_sigtramp): Delete function.
9518 (check_sigtramp2): Inline call to pc_in_sigtramp, use
9519 get_frame_type.
9520
9521 2004-04-02 Andrew Cagney <cagney@redhat.com>
9522
9523 * infrun.c (handle_step_into_function): Delete code conditional on
9524 legacy_frame_p.
9525 (handle_inferior_event, step_over_function): Ditto.
9526
9527 2004-04-02 Andrew Cagney <cagney@redhat.com>
9528
9529 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
9530 "previous frame inner to this frame" test.
9531
9532 2004-04-02 Andrew Cagney <cagney@redhat.com>
9533
9534 * frame.c (safe_frame_unwind_memory): New function.
9535 * frame.h (safe_frame_unwind_memory): Declare. Update description
9536 of /safe_/ methods.
9537 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
9538 "next_frame". Use safe_frame_unwind_memory.
9539 (tramp_frame_sniffer): Update call to tramp_frame_start.
9540
9541 2004-04-01 Daniel Jacobowitz <drow@mvista.com>
9542
9543 * dwarf2read.c (dwarf2_objfile_data_key): New.
9544 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
9545 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
9546 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
9547 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
9548 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
9549 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
9550 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
9551 Remove variables.
9552 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
9553 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
9554 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
9555 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
9556 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
9557 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
9558 Remove macros.
9559 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
9560 data.
9561 (dwarf2_locate_sections, dwarf2_build_psymtabs)
9562 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
9563 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
9564 (read_partial_die, read_full_die, read_indirect_string)
9565 (dwarf_decode_line_header, dwarf_decode_macros)
9566 (dwarf2_symbol_mark_computed): Remove use of removed macros.
9567 Update uses of removed variables.
9568 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
9569 of removed macros.
9570 (_initialize_dwarf2_read): New function.
9571 * symfile.h (dwarf2_has_info): Update prototype.
9572 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
9573 * elfread.c (elf_symfile_read): Likewise.
9574
9575 2004-04-01 Jim Blandy <jimb@redhat.com>
9576
9577 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
9578 function for register numbers on all the rs6000-derived targets.
9579 (rs6000_gdbarch_init): Don't register a separate
9580 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
9581 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
9582 variants.
9583
9584 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
9585 numbering.
9586
9587 2004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
9588
9589 * valarith.c: Update copyright notice.
9590 (value_add): Handle range types.
9591 (value_sub): Ditto.
9592 (value_equal): Ditto.
9593 (value_less): Ditto.
9594 (value_neg): Ditto.
9595 (value_complement): Ditto.
9596 (value_binop): Simplify slightly by using is_integral_type and
9597 eliminiating unnecessary COERCE_ENUMs.
9598
9599 2004-03-31 Andrew Cagney <cagney@redhat.com>
9600
9601 * frame.h (frame_unwind_id): Declare.
9602 * frame.c (frame_unwind_id): New function.
9603 (get_prev_frame_1): New function.
9604 (frame_debug_got_null_frame): New function.
9605 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
9606 code proper to prev_frame, update description.
9607 * infrun.c (step_over_function): Use frame_unwind_id.
9608
9609 2004-04-31 J. Brobecker <brobecker@gnat.com>
9610
9611 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
9612 (hppa64_push_dummy_call): Likewise.
9613
9614 2004-03-30 Jim Blandy <jimb@redhat.com>
9615
9616 From Ulrich Weigand:
9617 * utils.c (query): Do not use a va_list variable multiple times.
9618
9619 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
9620
9621 * Makefile.in (linux_nat_h): Update dependencies.
9622 * configure.in: Check for <gnu/libc-version.h>.
9623 * configure: Regenerate.
9624 * config.in: Regenerate.
9625 * linux-nat.h: Include "target.h". Add waitstatus field to
9626 struct lwp_info.
9627 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
9628 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
9629 to.
9630 (lin_lwp_handle_extended): New function. Handle clone events.
9631 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
9632 thread exit events.
9633 (child_wait): Handle clone events.
9634 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
9635 * linux-nat.c (linux_enable_event_reporting): Turn on
9636 PTRACE_O_TRACECLONE.
9637 (linux_handle_extended_wait): Handle clone events.
9638 * thread-db.c: Include <gnu/libc-version.h>.
9639 (struct private_thread_info): Add dying flag.
9640 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
9641 higher.
9642 (attach_thread): Update comments. Handle dying threads.
9643 (detach_thread): Set the dying flag.
9644 (check_event): Always call attach_thread.
9645
9646 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
9647
9648 * mips-tdep.c (mips_pdr_data): New.
9649 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
9650 (_initialize_mips_tdep): Initialize mips_pdr_data.
9651
9652 2004-03-29 Corinna Vinschen <vinschen@redhat.com>
9653
9654 * minsyms.c (install_minimal_symbols): Move dropping leading
9655 char from linkage name from here...
9656 (prim_record_minimal_symbol_and_info): ...to here. Simplify
9657 test for "__gnu_compiled*" symbols.
9658
9659 2004-03-28 Jim Blandy <jimb@redhat.com>
9660
9661 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
9662 registers to temp register r0 and byte stores as prologue
9663 instructions.
9664
9665 2004-03-28 Andrew Cagney <cagney@redhat.com>
9666
9667 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
9668 arm*-*-*.
9669
9670 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
9671
9672 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
9673 and switch the layout to force a display of register window.
9674
9675 2004-02-26 J. Brobecker <brobecker@gnat.com>
9676
9677 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
9678 of the INTEGER class.
9679
9680 2004-03-26 Jim Blandy <jimb@redhat.com>
9681
9682 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
9683 bytes long on PPC GNU/Linux.
9684
9685 2004-03-26 David Carlton <carlton@kealia.com>
9686
9687 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
9688
9689 2004-03-25 Andrew Cagney <cagney@redhat.com>
9690
9691 * PROBLEMS: Add general section titles, remove references to
9692 specific releases.
9693
9694 2004-03-25 Daniel Jacobowitz <drow@mvista.com>
9695
9696 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
9697 INT_REGISTER_SIZE.
9698 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
9699 FP_REGISTER_VIRTUAL_SIZE.
9700 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
9701 of DEPRECATED_REGISTER_RAW_SIZE.
9702 (arm_register_type): Add gdbarch argument.
9703 (arm_register_raw_size, arm_register_virtual_size): Delete.
9704 (arm_register_byte, arm_extract_return_value)
9705 (arm_store_return_value, arm_get_longjmp_target): Update references
9706 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
9707 (arm_gdbarch_init): Likewise. Don't set
9708 deprecated_register_raw_size, deprecated_register_virtual_size,
9709 deprecated_max_register_raw_size,
9710 deprecated_max_register_virtual_size, or
9711 deprecated_max_register_virtual_type. Do set register_type.
9712 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
9713 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
9714 (FP_REGISTER_VIRTUAL_SIZE): Delete.
9715 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
9716 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
9717 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
9718 INT_REGISTER_SIZE.
9719 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
9720 (remote_rdp_store_register): Likewise.
9721
9722 2004-03-24 Daniel Jacobowitz <drow@mvista.com>
9723
9724 * Makefile.in (mips-linux-tdep.o): Update dependencies.
9725 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
9726 to after osabi initialization.
9727 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
9728 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
9729 functions.
9730 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
9731 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
9732 variables.
9733 (mips_linux_init_abi): Append signal trampoline unwinders.
9734
9735 2004-03-24 Andrew Cagney <cagney@redhat.com>
9736
9737 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
9738 * tramp-frame.c: Include "gdb_assert.h".
9739 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
9740 correct sizeof.
9741 (tramp_frame_append): Validate the tramp frame's instructions.
9742 * Makefile.in (tramp-frame.o): Update dependencies.
9743
9744 2004-03-23 Andrew Cagney <cagney@redhat.com>
9745
9746 * trad-frame.h (trad_frame_set_reg_addr): Declare.
9747
9748 2004-03-23 Andrew Cagney <cagney@redhat.com>
9749
9750 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
9751 Nasser as past testsuite/lib/ (and other) maintainers.
9752
9753 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
9754
9755 * infcmd.c (attach_command): Reread symbols if we already have
9756 an exec file.
9757
9758 2004-03-23 Andrew Cagney <cagney@redhat.com>
9759
9760 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
9761
9762 2004-03-23 Andrew Cagney <cagney@redhat.com>
9763
9764 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
9765 * gdbarch.h, gdbarch.c: Re-generate.
9766 * i386obsd-tdep.c (i386obsd_init_abi): Update.
9767 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
9768 * i386bsd-tdep.c (i386bsd_init_abi): Update.
9769 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
9770 (DEPRECATED_SIGTRAMP_START): Update.
9771 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
9772 (DEPRECATED_SIGTRAMP_START): Update.
9773 * blockframe.c (find_pc_sect_partial_function): Update.
9774 * arch-utils.c (legacy_pc_in_sigtramp): Update.
9775
9776 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
9777
9778 * remote.c (remote_open_1): Reopen the exec file and reread symbols
9779 if necessary.
9780
9781 2004-03-23 Andrew Cagney <cagney@redhat.com>
9782
9783 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
9784 predicate, deprecate.
9785 * gdbarch.h, gdbarch.c: Re-generate.
9786 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
9787 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
9788 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
9789 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
9790 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
9791 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
9792 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
9793 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
9794 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
9795 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
9796 * blockframe.c (find_pc_partial_function): Update.
9797 * breakpoint.c (bpstat_what): Update.
9798 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
9799 * frv-linux-tdep.c (frv_linux_init_abi): Update.
9800 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
9801 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
9802 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9803 * i386-linux-tdep.c (i386_linux_init_abi): Update.
9804 * i386-nto-tdep.c (i386nto_init_abi): Update.
9805 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
9806 * i386-tdep.c (i386_sigtramp_frame_sniffer)
9807 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
9808 * i386bsd-tdep.c (i386bsd_init_abi): Update.
9809 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
9810 * i386obsd-tdep.c (i386obsd_init_abi): Update.
9811 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
9812 * infrun.c (pc_in_sigtramp): Update.
9813 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
9814 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
9815 * mips-tdep.c (mips_gdbarch_init): Update.
9816 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
9817 * ppc-linux-tdep.c: Update comment.
9818 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
9819 * shnbsd-tdep.c (shnbsd_init_abi): Update.
9820 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
9821 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
9822 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
9823 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
9824 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
9825 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
9826 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
9827 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
9828
9829 2004-03-23 Andrew Cagney <cagney@redhat.com>
9830
9831 * tramp-frame.h, tramp-frame.h: New files.
9832 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
9833 Update rules to include "tramp-frame.h" and "tramp-frame.c".
9834
9835 * Makefile.in: Update all dependencies.
9836
9837 2004-03-23 Andrew Cagney <cagney@redhat.com>
9838
9839 * Makefile.in (trad_frame_h): Add $(frame_h).
9840 * trad-frame.h: Update copyright. Include "frame.h".
9841 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
9842 (trad_frame_set_id, trad_frame_get_id): Declare.
9843 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
9844 * trad-frame.c: Update copyright.
9845 (struct trad_frame_cache): Define.
9846 (trad_frame_cache_zalloc): New function.
9847 (trad_frame_set_id, trad_frame_get_id): New functions.
9848 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
9849
9850 2004-03-22 Andrew Cagney <cagney@redhat.com>
9851
9852 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
9853 s390_pltstub_unwind_cache.
9854 (s390_stub_frame_unwind_cache): Rename
9855 s390_pltstub_frame_unwind_cache.
9856 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
9857 (s390_stub_frame_prev_register): Rename
9858 s390_pltstub_frame_prev_register.
9859 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
9860 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
9861
9862 From Ulrich Weigand:
9863 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
9864 pointer calls like PLT calls.
9865
9866 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
9867
9868 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
9869 PC rather than the partial function start address. Use the start
9870 address to sanity check the found PDR.
9871
9872 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
9873
9874 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
9875 linux_handle_extended_wait.
9876
9877 2004-03-22 Andrew Cagney <cagney@redhat.com>
9878
9879 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
9880 function.
9881
9882 * frame.h (generic_pop_current_frame): Delete declaration.
9883 (deprecate_pop_dummy_frame): Deprecate
9884 generic_pop_dummy_frame.
9885 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
9886 (generic_pop_current_frame): Delete function.
9887 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
9888 generic_pop_current_frame.
9889 * v850-tdep.c (v850_pop_frame): Update.
9890 * mcore-tdep.c (mcore_pop_frame): Update.
9891 * sh64-tdep.c (sh64_pop_frame): Update.
9892 * h8300-tdep.c (h8300_pop_frame): Update.
9893
9894 2004-03-22 Andrew Cagney <cagney@redhat.com>
9895
9896 * frame.h (deprecated_pc_in_call_dummy): Rename
9897 generic_pc_in_call_dummy.
9898 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
9899 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
9900 generic_pc_in_call_dummy.
9901 (pc_in_dummy_frame): Make static.
9902 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
9903 * gdbarch.h, gdbarch.c: Re-generate.
9904 * dummy-frame.c (dummy_frame_sniffer): Simplify.
9905 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
9906 (legacy_get_prev_frame): Ditto.
9907 * inferior.h: Delete reference to generic_pc_in_call_dummy in
9908 comment.
9909
9910 2004-03-21 Andrew Cagney <cagney@redhat.com>
9911
9912 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
9913 declaration and out-of-date comment.
9914 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
9915 Delete function.
9916 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
9917 deprecated_pc_in_call_dummy.
9918
9919 * infrun.c (handle_inferior_event): For non legacy frames, use the
9920 frame ID and frame type to identify a signal trampoline. Update
9921 comments.
9922
9923 2004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
9924
9925 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
9926 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
9927
9928 2004-03-21 Andrew Cagney <cagney@redhat.com>
9929
9930 * frame-unwind.h: Update copyright.
9931 (struct frame_data): Add opaque declaration.
9932 (frame_sniffer_ftype): Declare.
9933 (struct frame_unwind): Add "unwind_data" and "sniffer".
9934 (frame_unwind_register_unwinder): Declare.
9935 (frame_unwind_find_by_frame): Add parameter "this_cache".
9936 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
9937 (legacy_get_prev_frame, legacy_get_prev_frame)
9938 (get_frame_type): Pass the prologue_cache to
9939 frame_unwind_find_by_frame.
9940 * frame-unwind.c (struct frame_unwind_table_entry): Add field
9941 "unwinder".
9942 (frame_unwind_register_unwinder): New function.
9943 (frame_unwind_find_by_frame): Handle an unwind sniffer.
9944
9945 2004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
9946
9947 * bcache.c (print_percentage): Use floating point to avoid
9948 incorrect results when portion*100 overflows.
9949
9950 2004-03-19 Kevin Buettner <kevinb@redhat.com>
9951
9952 * ppc_tdep.h (ppc_linux_frame_saved_pc)
9953 (ppc_linux_init_extra_frame_info)
9954 (ppc_linux_frameless_function_invocation)
9955 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
9956 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
9957 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
9958 (rs6000_frame_chain): Delete declarations.
9959 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
9960 (ppc_linux_init_extra_frame_info)
9961 (ppc_linux_frameless_function_invocation)
9962 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
9963 (ppc_linux_init_abi): Remove registration of above deleted functions.
9964 * rs6000-tdep.c (rs6000_init_extra_frame_info)
9965 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
9966 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
9967 (rs6000_pop_frame, rs6000_frameless_function_invocation)
9968 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
9969 (rs6000_gdbarch_init): Remove registration of above deleted functions.
9970 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
9971 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
9972 frame management for all OSABIs.
9973
9974 2004-03-19 Andrew Cagney <cagney@redhat.com>
9975
9976 Committed by Kevin Buettner <kevinb@redhat.com>.
9977
9978 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
9979 Update copyright.
9980 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
9981 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
9982 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
9983 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
9984 unwinders. #ifdef legacy frame code.
9985 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
9986 "frame-base.h".
9987 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
9988 (struct rs6000_frame_cache, rs6000_frame_cache)
9989 (rs6000_frame_this_id, rs6000_frame_prev_register)
9990 (rs6000_frame_sniffer, rs6000_frame_unwind)
9991 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
9992 (rs6000_frame_base): Implement a traditional frame unwinder.
9993 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
9994 frame unwinder.
9995
9996 2004-03-19 Kevin Buettner <kevinb@redhat.com>
9997
9998 * breakpoint.c (adjust_breakpoint_address): Don't adjust
9999 breakpoint address for watchpoints or the catch eventpoints.
10000 Add new paramter ``bptype''. Adjust all callers.
10001
10002 2004-03-19 Andrew Cagney <cagney@redhat.com>
10003
10004 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
10005
10006 * PROBLEMS: Delete note that ARM does not use frame code, problem
10007 fixed.
10008
10009 2004-03-18 Andrew Cagney <cagney@redhat.com>
10010
10011 * stack.c (return_command): Delete code wrapped in #ifdef
10012 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
10013
10014 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
10015
10016 2004-03-18 Andrew Cagney <cagney@redhat.com>
10017
10018 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
10019 DEPRECATED_IN_SIGTRAMP.
10020 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10021 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
10022 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10023 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10024 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10025 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10026 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10027 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10028 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
10029 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
10030
10031 2004-03-18 Andrew Cagney <cagney@redhat.com>
10032
10033 * frame-base.c: Update copyright. Include "gdb_obstack.h".
10034 (struct frame_base_table_entry): Define.
10035 (struct frame_base_table): Re-implement as a linked list.
10036 (frame_base_init): Re-implement.
10037 (frame_base_table): Delete function.
10038 (append_predicate): Delete function.
10039 (frame_base_append_sniffer): Update.
10040 (frame_base_set_default): Update.
10041 (frame_base_find_by_frame): Update.
10042 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
10043 * Makefile.in (frame-base.o): Update dependencies.
10044
10045 2004-03-17 Andrew Cagney <cagney@redhat.com>
10046
10047 * frame.c (legacy_get_prev_frame): Pass correct frame to
10048 frame_unwind_find_by_frame.
10049
10050 2004-03-17 David Carlton <carlton@kealia.com>
10051
10052 * NEWS: Mention C++ nested types and namespaces
10053
10054 2004-03-16 Michael Chastain <mec.gnu@mindspring.com>
10055
10056 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
10057 and "Regressions since gdb 5.3.". Add known regressions since
10058 gdb 6.0.
10059
10060 2004-03-16 David Carlton <carlton@kealia.com>
10061
10062 * dwarf2read.c (process_structure_scope): Process children even
10063 when we're a declaration.
10064
10065 2004-03-16 Andrew Cagney <cagney@redhat.com>
10066
10067 * symtab.h (find_pc_sect_partial_function): Delete declaration.
10068 * blockframe.c (find_pc_partial_function)
10069 (find_pc_sect_partial_function): Merge into a single
10070 find_pc_partial_function.
10071
10072 2004-03-16 Mark Kettenis <kettenis@gnu.org>
10073
10074 * i386bsd-nat.c: s/regno/regnum/g.
10075 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
10076 FP0_REGNUM.
10077 (store_inferior_registers): Likewise.
10078
10079 2004-03-16 Mark Kettenis <kettenis@gnu.org>
10080
10081 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
10082 of i387_fill_fsave.
10083 (store_inferior_registers): Call i387_collect_fsave and
10084 i387_collect_fxsave instead of i387_fill_fsave and
10085 i387_fill_fxsave.
10086
10087 2004-03-15 Andrew Cagney <cagney@redhat.com>
10088
10089 * Makefile.in (frame-unwind.o): Update dependencies.
10090 * frame-unwind.c: Include "gdb_obstack.h".
10091 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
10092 parameter.
10093 (append_predicate): Delete function.
10094 (struct frame_unwind_table_entry): New structure.
10095 (struct frame_unwind_table): Replace "sniffer" with "head" and
10096 "tail".
10097 (frame_unwind_append_sniffer): Update.
10098 (frame_unwind_find_by_frame): Update.
10099 (_initialize_frame_unwind): Registe frame_unwind_init using
10100 gdbarch_data_register_pre_init.
10101
10102 2004-03-15 Mark Kettenis <kettenis@gnu.org>
10103
10104 * i386bsd-nat.c: Update copyright year.
10105 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
10106 define unconditionally.
10107
10108 2004-03-15 Mark Kettenis <kettenis@gnu.org>
10109
10110 * i387-tdep.h (i387_collect_fsave): New prototype.
10111 * i387-tdep.c (i387_collect_fsave): New function containing most
10112 of the code from i387_fill_fsave.
10113 (i387_fill_fsave): Call i387_collect_fsave.
10114
10115 2004-03-15 Mark Kettenis <kettenis@gnu.org>
10116
10117 * i386-linux-tdep.c: Update copyright year.
10118 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
10119 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
10120 svr4_ilp32_link_map_offsets instead of
10121 i386_linux_svr4_fetch_link_map_offsets.
10122
10123 2004-03-15 David Carlton <carlton@kealia.com>
10124
10125 Fix for PR c++/1553:
10126 * dwarf2read.c (read_structure_type): Determine type name by
10127 calling determine_class_name.
10128 (determine_class_name): New.
10129 (determine_prefix): Look at TYPE_TAG_NAME and call
10130 determine_class_name when appropriate.
10131 (determine_prefix_aux, class_name): Delete.
10132 (read_namespace): Set die->type.
10133
10134 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10135
10136 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
10137 unused macro definition. The definition in target.h (or perhaps
10138 elsewhere) takes precedence.
10139
10140 2004-03-15 Andrew Cagney <cagney@redhat.com>
10141
10142 * ppc-tdep.h: Update copyright.
10143 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
10144 function signatures to match "regsets.h".
10145 * ppc-linux-tdep.c: Include "regset.h".
10146 (ELF_GREGSET_SIZE): Delete.
10147 (right_supply_register): New function.
10148 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
10149 using right_supply_register.
10150 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
10151 functions.
10152 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
10153 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
10154 (_initialize_ppc_linux_tdep): Do not register
10155 ppc_linux_regset_core_fns.
10156 (ppc_linux_regset_from_core_section): Replace
10157 fetch_core_registers.
10158 (ppc_linux_regset_core_fns): Delete.
10159 * ppc-linux-nat.c: (right_fill_reg): New function.
10160 (supply_gregset): Update call to ppc_linux_supply_gregset.
10161 (fill_gregset): Clear the register set, use right_fill_reg.
10162 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
10163 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
10164
10165 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
10166 unsigned.
10167
10168 2004-03-15 Andrew Cagney <cagney@redhat.com>
10169
10170 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
10171 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
10172 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
10173 and register_gdbarch_data.
10174 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
10175 (struct gdbarch_data): Replace "init" by "pre_init" and
10176 "post_init".
10177 * gdbarch.h, gdbarch.c: Re-generate.
10178 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
10179 with"obstack", use OBSTACK_ZALLOC.
10180 (dwarf2_frame_ops): Delete.
10181 (dwarf2_frame_set_init_reg): Use gdbarch_data.
10182 (dwarf2_frame_init_reg): Use gdbarch_data.
10183 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
10184 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
10185 (_initialize_svr4_solib): Update.
10186 * user-regs.c (_initialize_user_regs): Update.
10187 * reggroups.c (_initialize_reggroup): Update.
10188 * regcache.c (_initialize_regcache): Update.
10189 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
10190 * libunwind-frame.c (_initialize_libunwind_frame): Update.
10191 * gnu-v3-abi.c (init_gnuv3_ops): Update.
10192 * frame-unwind.c (_initialize_frame_unwind): Update.
10193 * frame-base.c (_initialize_frame_base): Update.
10194 * user-regs.c (user_reg_add): Update.
10195 * reggroups.c (reggroup_add): Update.
10196 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
10197 * libunwind-frame.c (libunwind_frame_set_descr): Update.
10198 * frame-unwind.c (frame_unwind_append_sniffer): Update.
10199 * frame-base.c (frame_base_table): Update.
10200 * remote.c (_initialize_remote): Update.
10201 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
10202
10203 2004-03-15 Andrew Cagney <cagney@redhat.com>
10204
10205 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
10206
10207 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10208
10209 * Makefile.in (frv-linux-tdep.o): Add dependencies.
10210 * frv-linux-tdep.c: New file.
10211 * frv-tdep.c (struct gdbarch_tdep): Add new field
10212 ``sigcontext_reg_addr''.
10213 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
10214 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
10215 (frv_sigramp_frame_sniffer): New functions.
10216 (frv_sigtramp_frame_unwind): New static global.
10217 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
10218 sniffers.
10219 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
10220 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
10221
10222 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10223
10224 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
10225 but not via a call to error(), when unable to read memory.
10226
10227 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10228
10229 * frv-tdep.c (frv_call_dummy_words): Delete.
10230 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
10231
10232 2004-03-15 Andrew Cagney <cagney@redhat.com>
10233
10234 * infrun.c (handle_step_into_function, step_over_function): Only
10235 update and use STEP_FRAME_ID when the system is using legacy
10236 frames. Update comments.
10237
10238 2004-03-14 Mark Kettenis <kettenis@gnu.org>
10239
10240 * amd64-linux-tdep.h: Remove file.
10241 * amd64-linux-tdep.c: Don't include "inferior.h" and
10242 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
10243 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
10244 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
10245 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
10246 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
10247 macros.
10248 (user_to_gdb_regmap): Remove variable.
10249 (amd64_linux_gregset_reg_offset): New variable.
10250 (amd64_core_fns): Remove variable.
10251 (fetch_core_registers): Remove function.
10252 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
10253 functions.
10254 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
10255 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
10256 * Makefile.in (amd64_linux_tdep_h): Remove.
10257 (amd64-linux-nat.o): Update dependencies.
10258 (amd64-linux-tdep.o): Update dependencies.
10259
10260 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
10261 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
10262 functions.
10263 (fetch_inferior_registers, store_inferior_registers): Rewrite.
10264
10265 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
10266 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
10267
10268 2004-03-14 Daniel Jacobowitz <drow@mvista.com>
10269
10270 * dwarf2read.c (read_structure_type): Rename from
10271 read_structure_scope. Don't create a symbol or call process_die.
10272 Return immediately if die->type is set. Call read_type_die before
10273 dwarf2_add_member_fn.
10274 (process_structure_scope): New function.
10275 (read_enumeration_type, process_enumeration_scope): New functions,
10276 broken out from read_enumeration. Don't create the enumeration
10277 type if it has already been created.
10278 (read_enumeration): Removed.
10279 (process_die): Call read_structure_type, process_structure_scope,
10280 read_enumeration_type, and process_enumeration_scope. Just call
10281 new_symbol for base and subrange types. Add a comment about other
10282 type dies.
10283 (read_type_die): Call read_enumeration_type.
10284 (add_partial_structure, new_symbol): Update comments.
10285
10286 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
10287
10288 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
10289
10290 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
10291
10292 * tui/tui-win.h (tui_get_cmd_list): Declare.
10293 * tui/tui-win.c (tui_command): New function.
10294 (tui_get_cmd_list): New function.
10295 (_initialize_tui_win): Moved initialization of tui command in
10296 tui_get_cmd_list.
10297
10298 * tui/tui-data.c (init_content_element): Setup new data members.
10299 (init_win_info): Likewise.
10300 (free_content_elements): Free it.
10301 * tui/tui-data.h (struct tui_data_element): Store the register
10302 content to print.
10303 (struct tui_data_info): Keep the current register group.
10304
10305 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
10306
10307 * tui/tui-regs.h (tui_show_registers): Update prototype.
10308 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
10309 (tui_resize_all): No need to calculate anything for register window.
10310 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
10311 (tui_set_register_element, tui_set_general_regs_content): Remove.
10312 (tui_set_special_regs_content): Remove.
10313 (tui_set_general_and_special_regs_content): Remove.
10314 (tui_set_float_regs_content): Remove.
10315 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
10316 (tui_set_regs_content): Remove.
10317 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
10318 (tui_v_show_registers_command_support): Remove.
10319 (tui_show_registers): Use a reggroup to specify the registers to show.
10320 (tui_show_register_group): New function.
10321 (tui_display_registers_from): Compute the layout of register window
10322 and refresh with new API; be sure to delete old register windows.
10323 (tui_check_register_values): Update to use tui_get_register and
10324 tui_display_data.
10325 (tui_display_register): Just refresh the register window part.
10326 (tui_register_format): Format registers and save in tui_data_element.
10327 (tui_get_register): New to combine tui_reg_value_has_changed and
10328 tui_get_register_raw_value; fix to use the new gdb API.
10329 (tui_show_float_command): Renamed tui_reg_float_command.
10330 (tui_show_general_command): Renamed tui_reg_general_command.
10331 (tui_show_special_command): Renamed tui_reg_system_command.
10332 (_initialize_tui_regs): Remove unused commands.
10333
10334 2004-03-13 Mark Kettenis <kettenis@gnu.org>
10335
10336 * NEWS (New native configurations): Mention OpenBSD/amd64.
10337
10338 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
10339 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
10340 Remove defines.
10341 * config/i386/nm-fbsd64.h: Likewise.
10342 * config/i386/nm-obsd.h: Likewise.
10343 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
10344 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
10345
10346 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10347
10348 * frv-tdep.c (set_variant_scratch_registers): New function.
10349 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
10350 New constants.
10351
10352 From Richard Sandiford <rsandifo@redhat.com>:
10353 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
10354
10355 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10356
10357 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
10358 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
10359 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
10360 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
10361 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
10362 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
10363 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
10364 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
10365 definitions from frv-tdep.c to frv-tdep.h.
10366
10367 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10368
10369 Add shared library support for FR-V FDPIC ABI:
10370 * Makefile.in (solib-frv.o): Add dependencies.
10371 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
10372 New functions.
10373 (frv_push_dummy_call): Add support for FDPIC ABI.
10374 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
10375 for FDPIC ABI.
10376 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
10377 (frv_fdpic_find_canonical_descriptor): Declare.
10378 * solib-frv.c: New file.
10379 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
10380 * config/frv/tm-frv.h (solib.h): Include.
10381
10382 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10383
10384 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
10385 (frv-tdep.o): Update dependencies.
10386 * frv-tdep.h: New file.
10387 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
10388 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
10389 constants.
10390 (struct gdbarch_tdep): Add new member ``frv_abi''.
10391 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
10392 functions.
10393 (new_variant): Set ``frv_abi'' field.
10394 (gdb_arch_init): Detect FDPIC executables.
10395
10396 2004-03-12 Mark Kettenis <kettenis@gnu.org>
10397
10398 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
10399 wrapper.
10400
10401 2004-03-11 Andrew Cagney <cagney@redhat.com>
10402
10403 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
10404
10405 2004-03-11 Kevin Buettner <kevinb@redhat.com>
10406
10407 * solist.h (master_so_list): New function.
10408 * solib.c (master_so_list): Likewise.
10409 * solib-svr4.c (enable_break): Iterate over so_list entries
10410 obtained from master list instead of entries obtained directly
10411 via svr4_current_sos().
10412
10413 2004-03-10 Ben Elliston <bje@gnu.org>
10414
10415 * MAINTAINERS: Update my mail address.
10416
10417 2004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
10418
10419 * remote-m32r-sdi.c: Support hardware watchpoint.
10420
10421 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10422
10423 * user-regs.c: Update copyright years.
10424 (struct user_regs): Rename to gdb_user_regs.
10425 (append_user_reg, builtin_user_regs, user_regs_init)
10426 (user_reg_add, user_reg_map_name_to_regnum)
10427 (usernum_to_user_reg): Update.
10428
10429 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10430
10431 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
10432 (skip_children): New functions.
10433 (locate_pdi_sibling): Call skip_children.
10434
10435 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10436
10437 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
10438 * gdbtypes.c (check_typedef): Update comments.
10439
10440 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10441
10442 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
10443 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
10444 pointer. Update comment about comp_unit_head.
10445 (struct abbrev_info): Shorten two int flags.
10446 (dwarf_alloc_abbrev): Take a CU argument.
10447 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
10448 each time through the loop. Update cleanup argument.
10449 (psymtab_to_symtab_1): Update cleanup call.
10450 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
10451 abbrev_obstack.
10452 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
10453 Just call obstack_free and clear the pointer.
10454
10455 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10456
10457 * infrun.c (handle_inferior_event): Remove short-circuit code for
10458 events in a different thread.
10459
10460 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10461
10462 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
10463 print the whole transfer.
10464 (initialize_targets): Update description of "set debug target".
10465
10466 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10467
10468 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
10469
10470 2004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
10471
10472 * MAINTAINERS (write after approval): Add myself.
10473
10474 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
10475
10476 * sh-tdep.c (sh_print_registers_info): Use for loop.
10477 Don't skip multiple registers when a float register is encountered.
10478
10479 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
10480
10481 Fix PR tdep/1291.
10482 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
10483 to official SH documentation.
10484
10485 2004-03-07 Andrew Cagney <cagney@redhat.com>
10486
10487 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
10488 unused function.
10489
10490 2004-03-07 Daniel Jacobowitz <drow@mvista.com>
10491
10492 * arm-tdep.c (thumb_get_next_pc): Handle BX.
10493 (arm_get_next_pc): Handle BX and BLX.
10494
10495 2004-03-07 Andrew Cagney <cagney@redhat.com>
10496
10497 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
10498 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
10499 HPPA_SP_REGNUM.
10500 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
10501 (hppa_target_read_fp): Delete.
10502 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
10503 register_virtual_size, max_register_raw_size,
10504 max_register_virtual_size, register_byte, register_size,
10505 target_read_fp, fp_regnum, and register_bytes. Set register_type
10506 instead of register_virtual_type.
10507 (hppa32_register_type, hppa64_register_type): Replace
10508 hppa32_register_virtual_type and hppa64_register_virtual_type.
10509 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
10510 (HPPA_FP_REGNUM): Define.
10511
10512 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
10513
10514 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
10515 (pa_do_registers_info): Delete.
10516 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
10517 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
10518 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
10519
10520 * infcall.c (legacy_push_dummy_code): Delete #ifdef
10521 GDB_TARGET_IS_HPPA code.
10522 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
10523 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
10524 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
10525 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
10526 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
10527 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
10528 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
10529 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
10530 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
10531 (hppa_frameless_function_invocation, hppa64_store_return_value)
10532 (hppa_store_struct_return, hppa64_extract_return_value)
10533 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
10534 (hppa32_call_dummy_length, hppa64_call_dummy_length)
10535 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
10536 (find_proc_framesize, deposit_21, restore_pc_queue)
10537 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
10538 (rp_saved, pc_in_linker_stub): Delete.
10539
10540 Unconditionally enable 64-bit frame and ABI code.
10541 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
10542 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
10543 push_dummy_frame, fix_call_dummy, push_arguments,
10544 call_dummy_location, extract_return_value, use_struct_convention,
10545 store_return_value, store_struct_return, saved_pc_after_call,
10546 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
10547 frame_chain, frame_chain_valid, frameless_function_invocation,
10548 frame_saved_pc, and pop_frame.
10549
10550 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
10551 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
10552 (hppa_gdbarch_init): Do not set PC_REGNUM.
10553
10554 2004-03-06 Mark Kettenis <kettenis@gnu.org>
10555
10556 * config/alpha/tm-fbsd.h: Remove file.
10557 * config/alpha/fbsd.mt: Tweak comment.
10558 (TM_FILE): Set to tm-alpha.h.
10559
10560 2004-03-05 Andrew Cagney <cagney@redhat.com>
10561
10562 * infrun.c (step_over_function): When non-legacy code, and no
10563 step_frame_id, use the unwinder to get the caller's frame ID.
10564
10565 2004-03-05 Mark Kettenis <kettenis@gnu.org>
10566
10567 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
10568 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
10569 bfd_arch_unknown. Adjust comment.
10570
10571 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
10572 * i386obsd-tdep.c: Correct spelling in comment.
10573 * i386nbsd-tdep.c: Correct spelling in comment.
10574 * sparc-tdep.c: Correct spelling in comments.
10575
10576 2004-03-05 David Carlton <carlton@kealia.com>
10577
10578 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
10579 bug.
10580
10581 2004-03-05 Mark Kettenis <kettenis@gnu.org>
10582
10583 * sparc-tdep.c: Fix typo in comment.
10584
10585 2004-03-04 J. Brobecker <brobecker@gnat.com>
10586
10587 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
10588
10589 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
10590
10591 * dwarf2read.c: Add comment describing memory lifetimes.
10592 (struct dwarf2_pinfo): Update comment.
10593 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
10594 (read_enumeration, new_symbol): Don't use obsavestring.
10595
10596 2004-03-04 Mark Kettenis <kettenis@gnu.org>
10597
10598 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
10599 instead of amd64_fill_fxsave.
10600 * amd64bsd-nat.c (store_inferior_registers): Likewise.
10601 * amd64fbsd-nat.c (fill_fpregset): Likewise.
10602
10603 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
10604 Reorganize code a bit.
10605
10606 2004-03-04 Orjan Friberg <orjanf@axis.com>
10607
10608 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
10609 when the frame pointer is pushed. Don't set the frame pointer's
10610 address on the stack unless it's actually located there.
10611 Set the SRP's address on the stack correctly when the PC is still in
10612 the prologue.
10613 (cris_return_value): New function.
10614 (cris_gdbarch_init): Clear deprecated store_return_value,
10615 extract_return_value.
10616
10617 2004-03-02 Jim Blandy <jimb@redhat.com>
10618
10619 * stabsread.c (reg_value_complaint): The maximum register number
10620 is one less than the number of registers.
10621
10622 2004-03-02 Andrew Cagney <cagney@redhat.com>
10623
10624 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
10625 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
10626 trailing comma and redundant assignment of I386_ST0_REGNUM.
10627 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
10628 32-bit segment registers.
10629
10630 2004-03-01 Andrew Cagney <cagney@redhat.com>
10631
10632 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
10633 use frame_relative_level and get_next_frame.
10634
10635 2004-02-29 Andrew Cagney <cagney@redhat.com>
10636
10637 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
10638 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
10639 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
10640 Delete macro.
10641
10642 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
10643
10644 * inflow.c (terminal_inferior): Don't give up the terminal if we
10645 previously couldn't get the inferior's terminal state.
10646
10647 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
10648
10649 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
10650 PC_REGNUM.
10651
10652 2004-02-28 Andrew Cagney <cagney@redhat.com>
10653
10654 * NEWS: Refer to GDB 6.1.
10655 * README: Refer to GDB 6.1.
10656 * PROBLEMS: Refer to GDB 6.1.
10657
10658 2004-02-28 Daniel Jacobowitz <drow@mvista.com>
10659
10660 * thread-db.c (disable_thread_signals): Remove unused function.
10661
10662 2004-02-28 Mark Kettenis <kettenis@gnu.org>
10663
10664 * amd64-nat.c: Include "gdb_string.h".
10665 (amd64_collect_native_gregset): Zero-extend the 32-bit
10666 general-purpose registers and %eip.
10667
10668 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
10669 * amd64-tdep.c (amd64_collect_fxsave): New function.
10670 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
10671
10672 * i387-tdep.h: Update copyright year.
10673 (i387_collect_fxsave): New prototype.
10674 * i387-tdep.c: Update copyright year.
10675 (i387_collect_fxsave): New function containing most of the code
10676 from i387_fill_fxsave.
10677 (i387_fill_fxsave): Call i387_collect_fxsave.
10678
10679 2004-02-28 Andrew Cagney <cagney@redhat.com>
10680
10681 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
10682 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
10683
10684 2004-02-28 Mark Kettenis <kettenis@gnu.org>
10685
10686 * amd64-tdep.c (amd64_frame_cache): Fix comment.
10687
10688 2004-02-28 Andrew Cagney <cagney@redhat.com>
10689
10690 * utils.c: Use "", instead of <>, to include readline.
10691 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
10692 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
10693 * source.c, solib.c, exec.c, event-top.c: Ditto.
10694 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
10695 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
10696 * Makefile.in: Update all dependencies.
10697 (readline_tilde_h, readline_history_h): Define.
10698 (readline_headers): Delete.
10699
10700 2004-02-28 Mark Kettenis <kettenis@gnu.org>
10701
10702 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
10703 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
10704 "config/i386/tm-lx64.h".
10705
10706 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
10707 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
10708 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
10709
10710 2004-02-28 Andrew Cagney <cagney@redhat.com>
10711
10712 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
10713
10714 * breakpoint.c (_initialize_breakpoint): Use
10715 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
10716 Add help to show command.
10717
10718 2004-02-28 Mark Kettenis <kettenis@gnu.org>
10719
10720 * i386-nat.c: Reformat to be closer to coding standards.
10721 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
10722 `retval'. Make variables `align' and `size' local to while-loop.
10723 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
10724 (_initialize_i386_nat): New prototype.
10725
10726 * tui/tui.c: Include <readline/readline.h> instead of
10727 "readline/readline.h". Include it after <term.h> and
10728 "gdb_curses.h".
10729
10730 2004-02-27 Andrew Cagney <cagney@redhat.com>
10731
10732 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
10733 the new frame unwind code.
10734 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
10735 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
10736 PCOQ_HEAD_REGNUM.
10737
10738 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
10739 "return_value" and "push_dummy_call".
10740 (hppa32_use_struct_convention): Delete unused function.
10741 (hppa32_store_return_value): Delete unused function.
10742 (hppa32_extract_return_value): Delete unused function.
10743 (hppa32_stack_align): Delete function.
10744
10745 2004-02-27 Eli Zaretskii <eliz@elta.co.il>
10746
10747 * coffread.c (enter_linenos): Don't let rawptr reference memory
10748 outside linetab[]'s limits.
10749
10750 2004-02-27 Andrew Cagney <cagney@redhat.com>
10751
10752 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
10753 inferior stack space - the stack needs to grow upwards.
10754 (hppa32_frame_align): New function.
10755 (hppa64_frame_align): Replace hppa_frame_align.
10756 (hppa_gdbarch_init): Update.
10757
10758 2004-02-26 Orjan Friberg <orjanf@axis.com>
10759
10760 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
10761 (dwarf2-frame.h): Include.
10762 (enum cris_regnums): New enum CRIS_FP_REGNUM.
10763 Remove static variables related to ABI setting.
10764 (struct gdbarch_tdep): Remove cris_abi member.
10765 (struct frame_extra_info): Remove.
10766 (cris_unwind_cache, stack_item): New structs.
10767 (cris_frame_unwind, cris_frame_base): New variables.
10768 (push_stack_item, pop_stack_item)
10769 (cris_frame_unwind_cache, cris_frame_this_id)
10770 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
10771 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
10772 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
10773 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
10774 (cris_reg_struct_has_addr): New functions.
10775 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
10776 (cris_frame_saved_pc, cris_saved_pc_after_call,
10777 (cris_store_struct_return, cris_frameless_function_invocation)
10778 (cris_pop_frame, cris_skip_prologue_main)
10779 (cris_abi_original_store_return_value)
10780 (cris_abi_v2_store_return_value)
10781 (cris_abi_original_extract_return_value)
10782 (cris_abi_v2_extract_return_value)
10783 (cris_abi_original_reg_struct_has_addr)
10784 (cris_abi_v2_reg_struct_has_addr)
10785 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
10786 (cris_push_return_address, cris_abi_update): Remove.
10787 (_initialize_cris_tdep): Remove ABI command.
10788 (cris_dump_tdep): Ditto.
10789 (cris_gdbarch_init): Remove ABI command.
10790 Set store_return_value, extract_return_value, push_dummy_code,
10791 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
10792 frame_unwind_append_sniffer, frame_base_set_default.
10793 Clear deprecated init_frame_pc, push_arguments, store_return_value,
10794 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
10795 sizeof_call_dummy_words, get_saved_register, push_return_address,
10796 pop_frame, store_struct_return, frame_init_saved_regs,
10797 init_extra_frame_info, frameless_function_invocation, frame_chain,
10798 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
10799 dummy_write_sp.
10800
10801 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
10802
10803 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
10804 * valprint.c (print_hex_chars): Change from static to external.
10805 (print_char_chars): New function.
10806 * printcmd.c (print_scalar_formatted): For integer and enum types
10807 that are longer than LONGEST, perform processing via appropriate
10808 print_*_chars routines.
10809
10810 2004-02-26 Andrew Cagney <cagney@redhat.com>
10811
10812 * Makefile.in: Update dependencies.
10813 Changes from Ulrich Weigand,
10814 * s390-tdep.c: Include "dwarf2-frame.h".
10815 (s390_dwarf2_frame_init_reg): New function.
10816 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
10817 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
10818
10819 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
10820
10821 * breakpoint.c (pending_break_support): New setting variable.
10822 (break_command_1): Account for pending_break_support setting
10823 when creating pending breakpoints.
10824 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
10825 (_initialize_breakpoint): Add "set breakpoint pending" and
10826 "show breakpoint pending" commands.
10827
10828 2004-02-26 Andrew Cagney <cagney@redhat.com>
10829
10830 Fix PR i18n/1570.
10831 * charset.c (backslashable, backslashed, represented): Remove 'e'
10832 from list of escaped characters, not part of ISO-C.
10833
10834 2004-02-25 J. Brobecker <brobecker@gnat.com>
10835
10836 From Peter Schauer <schauer@pdf.de>:
10837 * tui/tui.c: Move system header includes after local includes.
10838 Fixes a build failure on solaris systems.
10839
10840 2004-02-25 J. Brobecker <brobecker@gnat.com>
10841
10842 * configure.in: Refine the previous change.
10843 * configure: Regenerate.
10844
10845 2004-02-25 Mark Kettenis <kettenis@gnu.org>
10846
10847 * amd64-tdep.h: Renamed from x86-64-tdep.h.
10848 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
10849 "amd64-tdep.h" instead of "x86-64-tdep.h".
10850 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
10851 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
10852 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
10853 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
10854 and "x86-64-tdep.c".
10855 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
10856 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
10857 and "x86-64-tdep.c".
10858 * amd64bsd-nat.c: Update copyright year.
10859 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
10860 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
10861 "x86-64-tdep.h".
10862 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
10863 "x86-64-tdep.h".
10864 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
10865 "x86-64-tdep.h".
10866 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
10867 "x86-64-tdep.h".
10868 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
10869 "x86-64-tdep.h".
10870 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
10871 "x86-64-tdep.h".
10872 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
10873 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
10874 * Makefile.in (amd64_linux_tdep_h): Renamed from
10875 x86_64_linux_tdep_h.
10876 (amd64_tdep_h): Renamed from x86_64_tdep_h.
10877 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
10878 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
10879 (amd64obsd-tdep.o): Update dependencies.
10880 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
10881 dependencies.
10882 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
10883 dependencies.
10884 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
10885 amd64-linux-nat.c amd64-linux-tdep.c.
10886 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
10887 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
10888 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
10889 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
10890 amd64-tdep.o and amd64-linux-tdep.o.
10891 (TM_FILE): Set to tm-linux64.h.
10892 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
10893 (NAT_FILE): Set to nm-linux64.h.
10894 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
10895 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10896 amd64-tdep.o.
10897 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10898 amd64-tdep.o.
10899 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10900 amd64-tdep.o.
10901
10902 2004-02-25 Roland McGrath <roland@redhat.com>
10903
10904 * remote.c (remote_protocol_qPart_auxv): New variable.
10905 (init_all_packet_configs): Initialize it.
10906 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
10907 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
10908 (show_remote_cmd): Call it.
10909 (_initialize_remote): Initialize commands.
10910 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
10911 service TARGET_OBJECT_AUXV requests.
10912
10913 2004-02-25 J. Brobecker <brobecker@gnat.com>
10914
10915 * configure.in: Make sure that the wborder function is available.
10916 Otherwise, search for it in the cur_colr library.
10917 * configure: Regenerate.
10918
10919 2004-02-25 Andrew Cagney <cagney@redhat.com>
10920
10921 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
10922
10923 2004-02-25 Mark Kettenis <kettenis@gnu.org>
10924
10925 * config/i386/tm-x86-64linux.h: Tweak comments.
10926
10927 2004-02-25 Richard Sandiford <rsandifo@redhat.com>
10928
10929 * MAINTAINERS: Add self to write-after-approval list.
10930
10931 2004-02-25 Andrew Cagney <cagney@redhat.com>
10932
10933 PR cli/1566. Problem found, and fix suggested by David Allan.
10934 * cli/cli-script.c (execute_control_command): Unconditionally
10935 install a cleanup. Default "ret" to "invalid_control". Use
10936 "break" instead of "return" to escape from the switch.
10937
10938 2004-02-24 J. Brobecker <brobecker@gnat.com>
10939
10940 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
10941 with the lines macro defined in term.h on AiX.
10942 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
10943 a collision with the label_width macro defined in term.h on AiX.
10944
10945 2004-02-23 David Mosberger <davidm@hpl.hp.com>
10946
10947 Committed by Kevin Buettner <kevinb@redhat.com>.
10948
10949 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
10950 * ia64-tdep.c (ia64_write_pc): Make it a global function.
10951 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
10952 instead of ia64_write_pc().
10953 * ia64-linux-tdep.c (regcache.h): Include.
10954 (ia64_linux_write_pc): New function.
10955
10956 2004-02-23 Roland McGrath <roland@redhat.com>
10957
10958 * auxv.c (info_auxv_command): Fix typos in error messages.
10959
10960 2004-02-23 Mark Kettenis <kettenis@gnu.org>
10961
10962 * x86-64-tdep.h: Tweak comment.
10963 (enum amd64_regnum): New.
10964 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
10965 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
10966 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
10967 (X86_64_XMM1_REGNUM): Removed.
10968 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
10969 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
10970 prototypes for renamed functions.
10971 * x86-64-tdep.c: Fix typo.
10972 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
10973 register numbers.
10974 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
10975 Use constants from `enum amd64_regnum' for register numbers.
10976 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
10977 (amd64_analyze_prologue, amd64_frame_cache,
10978 amd64_sigtramp_frame_cache): Use constants from `enum
10979 amd64_regnum' for register numbers.
10980 (amd64_supply_fpregset): Adjust for renamed functions.
10981 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
10982 `enum amd64_regnum' for register numbers.
10983 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
10984 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
10985 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
10986 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
10987 (amd64_linux_fill_gregset): Adjust for renamed macros.
10988 (fetch_core_registers): Adjust for renamed functions.
10989 (amd64_linux_init_abi): Adjust for renamed functions.
10990 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
10991 renamed functions.
10992 * amd64-nat.c: Adjust for renamed macros.
10993 * amd64bsd-nat.c (fetch_inferior_registers)
10994 (store_inferior_registers): Use constants from `enum amd64_regnum'
10995 for register numbers. Adjust for renamed variables.
10996 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
10997 renamed variables.
10998 (_initialize_amd64fbsd_nat): Use constants from `enum
10999 amd64_regnum' for register numbers.
11000 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
11001 `enum amd64_regnum' for register numbers.
11002 (amd64fbsd_init_abi): Adjust for renamed functions.
11003 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
11004 `enum amd64_regnum' for register numbers.
11005 (amd64nbsd_init_abi): Adjust for renamed functions.
11006 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
11007 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
11008 `enum amd64_regnum' for register numbers.
11009 (amd64obsd_init_abi): Adjust for renamed functions.
11010 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
11011
11012 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11013
11014 * breakpoint.c (print_one_breakpoint): Do not output spaces
11015 after printing <PENDING> for a pending breakpoint.
11016
11017 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11018
11019 * printcmd.c (print_scalar_formatted): Initialize val_long
11020 to remove compiler warning message.
11021
11022 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11023
11024 * defs.h (nquery, yquery): New prototypes.
11025 * breakpoint.c (break_command_1): Use new nquery interface.
11026 * utils.c (defaulted_query, nquery, yquery): New functions.
11027
11028 2004-02-23 Andrew Cagney <cagney@redhat.com>
11029
11030 * hppa-tdep.c (hppa_frame_align): New function.
11031 (hppa32_push_dummy_call): New function.
11032 (hppa64_push_dummy_call): New function.
11033 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
11034 disabled.
11035
11036 * infcall.c (legacy_push_dummy_code): Don't call deprecated
11037 FIX_CALL_DUMMY when push_dummy_call is available.
11038 (call_function_by_hand, push_dummy_code): Ditto.
11039
11040 2004-02-22 Andrew Cagney <cagney@redhat.com>
11041
11042 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
11043 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
11044 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
11045 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
11046 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
11047 call_dummy_location to ON_STACK.
11048
11049 2004-02-22 Mark Kettenis <kettenis@gnu.org>
11050
11051 * x86-64-linux-tdep.c: Tweak comment.
11052 (amd64_linux_supply_gregset): Renamed from
11053 x86_64_linux_supply_gresget.
11054 (amd64_linux_fill_gregset): Renamed from
11055 x86_64_linux_fill_gregset.
11056 (fetch_core_registers): Adjust for renamed functions.
11057 (amd64_core_fns): Renamed from x86_64_core_fns.
11058 (amd64_linux_sigtramp_start): Renamed from
11059 x86_64_linux_sigtramp_start.
11060 (amd64_linux_pc_in_sigtramp): Renamed from
11061 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
11062 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
11063 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
11064 (amd64_linux_sigcontext_addr): Renamed from
11065 x86_64_linux_sigcontext_addr.
11066 (amd64_linux_sc_reg_offset): Renamed from
11067 x86_64_linux_sc_reg_offset.
11068 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
11069 Adjust for renamed functions and variables.
11070 (_initialize_amd64_linux_tdep): Renamed from
11071 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
11072 variables.
11073 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
11074 Adjust for renamed functions.
11075
11076 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
11077 from x86_64_linux_gregset64_reg_offset.
11078 (amd64_linux_gregset32_reg_offset): Rename from
11079 x86_64_linux_gregset64_reg_offset.
11080 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
11081 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
11082 (amd64_linux_dr_set_control): Renamed from
11083 x86_64_linux_dr_set_control. Adjust for renamed functions.
11084 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
11085 Adjust for renamed functions.
11086 (amd64_linux_dr_reset_addr): Renamed from
11087 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
11088 (amd64_linux_dr_get_status): Renamed from
11089 x86_64_linux_dr_get_status. Adjust for renamed functions.
11090 (_initialize_amd64_linux_nat): Renamed from
11091 _initialize_x86_64_linux_nat. Adjust for renamed variables and
11092 functions.
11093 * config/i386/nm-x86-64linux.h: Update copyright year.
11094 Adjust for renamed functions.
11095
11096 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
11097 amd64fbsd_sigtramp_start.
11098 (amd64fbsd_sigtramp_end_addr): Renamed from
11099 amd64fbsd_sigtramp_end.
11100 (amd64fbsd_init_abi): Adjust for renamed variables.
11101 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
11102 variables.
11103 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
11104 amd64fbsd_sigtramp_start.
11105 (amd64fbsd_sigtramp_end_addr): Renamed from
11106 amd64fbsd_sigtramp_end.
11107
11108 2004-02-22 Andrew Cagney <cagney@redhat.com>
11109
11110 * hppa-tdep.c (hppa32_return_value): New function.
11111 (hppa64_return_value): New function.
11112 (hppa_gdbarch_init): Set return_value; keep disabled.
11113
11114 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
11115 struct-return and inferior function call methods.
11116
11117 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
11118 "frame-base.h".
11119 (struct hppa_frame_cache): Define.
11120 (hppa_frame_cache, hppa_frame_this_id): New functions.
11121 (hppa_frame_prev_register): New function.
11122 (hppa_frame_unwind, hppa_frame_base): New variables.
11123 (hppa_frame_unwind_sniffer): New function.
11124 (hppa_frame_base_address, hppa_unwind_pc): New function.
11125 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
11126 sniffer, and frame base sniffer; keep disabled.
11127 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
11128 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
11129
11130 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
11131 to predicates for "seriously old code".
11132
11133 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
11134 runtime if(0).
11135
11136 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
11137 unsigned.
11138 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
11139
11140 * config/pa/tm-hppa.h: Update copyright.
11141 (DEPRECATED_INIT_FRAME_PC): Delete macro.
11142 (deprecated_init_frame_pc_default): Delete declaration.
11143 (hppa_frame_init_saved_regs): Delete declaration.
11144 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
11145 * hppa-tdep.c: Include "arch-utils.h".
11146 (hppa_gdbarch_init): Set deprecated init_frame_pc
11147 and deprecated frame_init_saved_regs.
11148 (hppa_frame_init_saved_regs): Make static.
11149
11150 2004-02-22 Mark Kettenis <kettenis@gnu.org>
11151
11152 Remove old 386BSD support.
11153 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
11154 * configure.host: Remove i[34567]86-*-bsd*.
11155 * configure.tgt: Remove i[34567]86-*-bsd*.
11156 * i386b-nat.c: Removed.
11157 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
11158 (i386b-nat.o): Remove dependencies.
11159
11160 * config/i386/i386bsd.mh: Removed.
11161 * config/i386/i386bsd.mt: Removed.
11162 * config/i386/nm-i386bsd.h: Removed.
11163 * config/i386/tm-i386bsd.h: Removed.
11164 * config/i386/xm-i386bsd.h: Removed.
11165
11166 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
11167
11168 * amd64fbsd-tdep.c: Include "solib-svr4.h".
11169 (amd64fbsd_init_abi): Set link map offsets.
11170 * amd64nbsd-tdep.c: Include "slib-svr4.h".
11171 (amd64nbsd_init_abi): Set link map offsets.
11172 * amd64obsd-tdep.c: Include "solib-svr4.h".
11173 (amd64obsd_init_abi): Set link map offsets.
11174 * i386fbsd-tdep.c: Include "solib-svr4.h".
11175 (i386fbsd_init_abi): Set link map offsets.
11176 * i386nbsd-tdep.c: Include "solib-svr4.h".
11177 (i386nbsdelf_init_abi): Set link map offsets.
11178 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
11179 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
11180 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
11181 solib-legacy.o and core-aout.o. Reformat.
11182 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
11183 solib-svr4.o, solib-legacy.o. Reformat.
11184 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
11185 * config/i386/nbsdelf.mh: Reformat.
11186 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
11187 solib-svr4.o, solib-legacy.o and corelow.o.
11188 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
11189 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
11190 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
11191 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11192 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11193 (TM_FILE): Set to tm-fbsd.h.
11194 * config/i386/nbsd.mt (TDEPFILES): Reformat.
11195 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
11196 solib-svr4.o.
11197 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
11198 solib-svr4.o.
11199 (TM_FILE): Set to nm-nbsd.h.
11200 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
11201 Simplify shared library support. Don't include "elf/common.h".
11202 (SVR4_SHARED_LIBS): Don't define.
11203 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
11204 "solib.h".
11205 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
11206 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
11207 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
11208 Don't include "i386/tm-i386.h". Include "solib.h".
11209 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
11210 Don't include "i386/tm-i386.h".
11211 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
11212 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
11213 Include "i386/xm-i386.h".
11214 (HOST_LONG_DOUBLE_FORMAT): Remove.
11215
11216 Fix OpenBSD/i386 sigtramp recognition.
11217 * i386-tdep.h: Update copyright year.
11218 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
11219 (i386bsd_sigtramp_end): New prototypes.
11220 (i386fbsd_sigtramp_start_addr): Renamed from
11221 i386fbsd_sigtramp_start.
11222 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11223 (i386obsd_sigtramp_start_addr): Renamed from
11224 i386obsd_sigtramp_start.
11225 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11226 * i386bsd-tdep.c: Update copyright year.
11227 (i386bsd_pc_in_sigtramp): Make public.
11228 * i386fbsd-nat.c: Update copyright year.
11229 (_initialize_i386fbsd_nat): Adjust for renamed variables.
11230 * i386fbsd-tdep.c: Update copyright year.
11231 (i386fbsd_sigtramp_start_addr): Renamed from
11232 i386fbsd_sigtramp_start.
11233 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11234 (i386fbsdaout_init_abi): Adjust for renamed variables.
11235 * i386obsd-nat.c: Update copyright year.
11236 (_initialize_i386obsd_nat): Adjust for renamed variables.
11237 * i386obsd-tdep.c: Include "target.h".
11238 (i386obsd_page_size): New variable.
11239 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
11240 (i386obsd_sigtramp_end): New functions.
11241 (i386obsd_sigtramp_start_addr): Renamed from
11242 i386obsd_sigtramp_start.
11243 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11244 (i386obsd_init_abi): Adjust for renamed variables. Set
11245 pc_in_sigtramp, sigtramp_start and sigtramp_end.
11246 * Makefile.in (i386obsd-tdep.o): Update dependencies.
11247
11248 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
11249 trampoline change in OpenBSD kernel.
11250
11251 * amd64-nat.c: Update copyright year.
11252 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
11253 architecture from REGCACHE.
11254
11255 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
11256 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
11257
11258 2004-02-21 Mark Kettenis <kettenis@gnu.org>
11259
11260 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
11261 i[34567]86-*-openbsd3.[0-3].
11262 * config/i386/obsdaout.mh: New file.
11263
11264 * config/i386/obsd.mh (MH_FLAGS): Remove.
11265
11266 Fix PR build/1549.
11267 * i386obsd-tdep.c: Update copyright years. Include
11268 "solib-svr4.h".
11269 (i386obsd_init_abi): Don't set regset_from_core_section here.
11270 (i386obsd_aout_init_abi): New function. Set
11271 regset_from_core_section here.
11272 (i386obsd_elf_init_abi): New function.
11273 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
11274 * Makefile.in (i386obsd-tdep.o): Update dependecies.
11275 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
11276 (TM_FILE): Set to tm-nbsd.h.
11277
11278 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
11279 solib-sunos.o.
11280
11281 * solib-svr4.h: Update copyright year.
11282 (svr4_ilp32_fetch_link_map_offsets)
11283 (svr4_lp64_fetch_link_map_offsets): New prototype.
11284 * solib-svr4.c: Update copyright year.
11285 (svr4_ilp32_fetch_link_map_offsets)
11286 (svr4_lp64_fetch_link_map_offsets): New function.
11287
11288 2004-02-20 Daniel Jacobowitz <drow@mvista.com>
11289
11290 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
11291 to the partial symbol table.
11292
11293 2004-02-20 J. brobecker <brobecker@gnat.com>
11294
11295 * PROBLEMS: Add description of problem documented under gdb/1560.
11296
11297 2004-02-20 Mark Kettenis <kettenis@gnu.org>
11298
11299 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
11300 comments.
11301 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
11302 functions.
11303 (amd64obsd_init_abi): Reorder initializations. Use
11304 amd64obsd_r_reg_offset to initialize the general-purpose register
11305 set details. Set regset_from_core_section.
11306 (_initialize_amd64obsd_tdep): Rename from
11307 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
11308 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
11309 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
11310
11311 * NEWS (New native configurations): Mention OpenBSD/alpha.
11312 * configure.tgt: Add alpha*-*-openbsd*.
11313 * configure.host: Add alpha*-*-openbsd*.
11314 * alphanbsd-tdep.c: Update copyright year.
11315 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
11316
11317 2004-02-20 Andrew Cagney <cagney@redhat.com>
11318
11319 Fix PR tdep/1372.
11320 * configure.tgt: Delete target "none-*-*".
11321 * configure.host: Delete host "none-*-*".
11322 * config/none/none.mh: Delete file.
11323 * config/none/none.mt: Delete file.
11324 * config/none/xm-none.h: Delete file.
11325 * config/none/tm-none.h: Delete file.
11326 * config/none/nm-none.h: Delete file.
11327
11328 2004-02-19 Fred Fish <fnf@redhat.com>
11329
11330 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
11331 cache->uses_fp prior to setting it.
11332
11333 2004-02-19 Fred Fish <fnf@redhat.com>
11334
11335 Fix for PR breakpoint/1558.
11336 * sh-tdep.c (IS_JSR): New macro.
11337 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
11338
11339 2004-02-19 Jim Blandy <jimb@redhat.com>
11340
11341 * findvar.c (value_from_register): Doc fix.
11342
11343 2004-02-19 Jeff Johnston <jjohnstn@redhat.com>
11344
11345 * printcmd.c (print_scalar_formatted): Do not check for sizeof
11346 type being greater than sizeof of host's LONGEST. Always use
11347 unpack_long() unless format 'f' chosen.
11348
11349 2004-02-19 Joel Brobecker <brobecker@gnat.com>
11350
11351 Committed by Elena Zannoni <ezannoni@redhat.com>
11352
11353 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
11354 contains a symbol wich is the best, non-exact match for the given
11355 pc. Update comments.
11356
11357 2004-02-19 Elena Zannoni <ezannoni@redhat.com>
11358
11359 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
11360 macro, which was part of the now removed Mach 3 port.
11361 * utils.c (request_quit): Ditto.
11362
11363 2004-02-18 Mark Kettenis <kettenis@gnu.org>
11364
11365 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
11366 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
11367
11368 2004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11369
11370 Committed by Mark Kettenis <kettenis@gnu.org>.
11371
11372 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
11373 Define.
11374
11375 2004-02-18 Andrew Cagney <cagney@redhat.com>
11376
11377 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
11378 CONFIG_INSTALL and CONFIG_UNINSTALL.
11379 * configure: Re-generate.
11380 * interps.h (INTERP_TUI): Define.
11381 * Makefile.in: Update dependencies.
11382 (TUI): New macro.
11383 (tui-main.o): Specify dependencies.
11384 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
11385 * tui/tui-main.c: New file.
11386
11387 2004-02-18 Mark Kettenis <kettenis@gnu.org>
11388
11389 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
11390 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
11391 dependencies.
11392 * configure.host: Add x86_64-*-openbsd*.
11393 * configure.tgt: Add x86_64-*-openbsd*.
11394 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
11395
11396 * tui/tui.c: Don't include <malloc.h>.
11397
11398 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
11399 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
11400 amd64nbsd-tdep.c.
11401
11402 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
11403 static. Remove extraneous whitespace.
11404 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
11405 static.
11406
11407 2004-02-17 Jim Blandy <jimb@redhat.com>
11408
11409 * findvar.c (value_from_register): Doc fix.
11410
11411 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11412
11413 Committed by Jim Blandy <jimb@redhat.com>.
11414
11415 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
11416 CORE_ADDR as type for selectors. Correct types for GNU run time
11417 message lookup function to use double indirection.
11418 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
11419 * objc-lang.h (lookup_child_selector): Adapt prototype.
11420
11421 * s390-nat.c (SUBOFF): New macro.
11422 (supply_gregset, fill_gregset): Use it to handle debugging
11423 of 32-bit exectuables running under a 64-bit kernel.
11424 * s390-tdep.c: Include "solib-svr4.h".
11425 (s390_svr4_fetch_link_map_offset): New function.
11426 (s390x_svr_fetch_link_map_offset): Likewise.
11427 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
11428 * Makefile.in (s390-tdep.o): Update dependencies.
11429
11430 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
11431 "frame-unwind.h".
11432 (s390_readinstruction): Reformat. Use read_memory_nobpt.
11433 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
11434 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
11435 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
11436 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
11437 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
11438 S390_SIGNAL_FRAMESIZE,
11439 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
11440 (struct frame_extra_info): Remove.
11441 (s390_memset_extra_info): Remove.
11442 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
11443 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
11444 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
11445 (is_rse): Renamed to ...
11446 (is_rsy): ... this. Support long displacements.
11447 (is_rxe): Renamed to ...
11448 (is_rxy): ... this. Support long displacements.
11449 (compute_x_addr): Support long displacements.
11450 (struct s390_prologue_data): New data type.
11451 (s390_on_stack): Change API to use struct s390_prologue_data.
11452 (s390_store): Reimplement.
11453 (s390_load): New function.
11454 (s390_get_signal_frame_info): Remove.
11455 (s390_get_frame_info): Remove, replace by ...
11456 (s390_analyze_prolog): ... this new function.
11457 (s390_check_function_end): Remove.
11458 (s390_function_start): Remove.
11459 (s390_frameless_function_invokation): Remove.
11460 (s390_is_sigreturn): Remove.
11461 (s390_init_frame_pc_first): Remove.
11462 (s390_init_frame_extra_info): Remove.
11463 (s390_frame_init_saved_regs): Remove.
11464 (s390_frame_saved_pc_nofix): Remove.
11465 (s390_frame_saved_pc): Remove.
11466 (s390_frame_chain): Remove.
11467 (s390_fp_regnum, s390_read_fp): Remove.
11468 (s390_pop_frame_regular, s390_pop_frame): Remove.
11469 (s390_saved_pc_after_call): Remove.
11470 (s390_skip_prologue): Reimplement.
11471 (s390_in_function_epilogue_p): Support long displacements.
11472 (struct s390_unwind_cache): New data structure.
11473 (s390_frame_unwind_cache): New function.
11474 (s390_prologue_frame_unwind_cache): Likewise.
11475 (s390_backchain_frame_unwind_cache): Likewise.
11476 (s390_frame_this_id, s390_frame_prev_register): Likewise.
11477 (s390_frame_unwind): Define.
11478 (s390_frame_sniffer): New function.
11479 (struct s390_pltstub_unwind_cache): New data structure.
11480 (s390_pltstub_frame_unwind_cache): New function.
11481 (s390_pltstub_frame_this_id): Likewise.
11482 (s390_pltstub_frame_prev_register): Likewise.
11483 (s390_pltstub_frame_unwind): Define.
11484 (s390_pltstub_frame_sniffer): New function.
11485 (struct s390_sigtramp_unwind_cache): New data structure.
11486 (s390_sigtramp_frame_unwind_cache): New function.
11487 (s390_sigtramp_frame_this_id): Likewise.
11488 (s390_sigtramp_frame_prev_register): Likewise.
11489 (s390_sigtramp_frame_unwind): Define.
11490 (s390_sigtramp_frame_sniffer): New function.
11491 (s390_frame_base_address, s390_local_base_address): New functions.
11492 (s390_frame_base): Define.
11493 (s390_unwind_pc, s390_unwind_sp): New function.
11494 (s390_push_dummy_call): Use new frame base location.
11495 (s390_unwind_dummy_id): Likewise.
11496 (s390_gdbarch_init): Remove calls to:
11497 set_gdbarch_frameless_function_invocation,
11498 set_gdbarch_deprecated_init_frame_pc,
11499 set_gdbarch_deprecated_frame_chain,
11500 set_gdbarch_deprecated_frame_init_saved_regs,
11501 set_gdbarch_deprecated_pop_frame,
11502 set_gdbarch_deprecated_init_extra_frame_info,
11503 set_gdbarch_deprecated_init_frame_pc_first,
11504 set_gdbarch_deprecated_target_read_fp,
11505 set_gdbarch_deprecated_frame_saved_pc,
11506 set_gdbarch_deprecated_saved_pc_after_call,
11507 set_gdbarch_deprecated_fp_regnum.
11508 Add calls to:
11509 set_gdbarch_in_solib_call_trampoline,
11510 frame_unwind_append_sniffer,
11511 frame_base_set_default,
11512 set_gdbarch_unwind_pc,
11513 set_gdbarch_unwind_sp.
11514 * Makefile.in (s390-tdep.o): Update dependencies.
11515
11516 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
11517 (S390_STACK_FRAME_OVERHEAD): Remove.
11518 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
11519 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
11520 (s390_promote_integer_argument): Remove.
11521 (s390_cannot_extract_struct_value_address): Remove.
11522 (s390_use_struct_convention, s390_store_struct_return): Remove.
11523 (s390_extract_return_value, s390_store_return_value): Remove.
11524 (s390_return_value_convention, s390_return_value): New functions.
11525 (is_float_singleton): Handle typedefs.
11526 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
11527 Remove, replace by ...
11528 (s390_function_arg_pass_by_reference, s390_function_arg_float,
11529 s390_function_arg_integer): ... these new functions.
11530 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
11531 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
11532 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
11533 Fill in tdep->abi.
11534 Remove calls to:
11535 set_gdbarch_deprecated_store_struct_return,
11536 set_gdbarch_deprecated_extract_return_value,
11537 set_gdbarch_deprecated_store_return_value,
11538 set_gdbarch_use_struct_convention,
11539 set_gdbarch_extract_struct_value_address,
11540 set_gdbarch_deprecated_pc_in_call_dummy,
11541 set_gdbarch_deprecated_push_arguments,
11542 set_gdbarch_deprecated_save_dummy_frame_tos,
11543 set_gdbarch_deprecated_push_return_address,
11544 set_gdbarch_deprecated_sizeof_call_dummy_words,
11545 set_gdbarch_deprecated_call_dummy_words,
11546 set_gdbarch_deprecated_dummy_write_sp.
11547 Add calls to:
11548 set_gdbarch_push_dummy_call,
11549 set_gdbarch_unwind_dummy_id,
11550 set_gdbarch_return_value.
11551
11552 * config/s390/nm-linux.h: Update comments.
11553 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
11554 (STOPPED_BY_WATCHPOINT): Redefine.
11555 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
11556 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
11557 (s390_stopped_by_watchpoint): Likewise.
11558 (watch_area_cnt): Remove.
11559 * s390-nat.c: Update comments.
11560 (watch_area): Remove typedef.
11561 Global replace watch_area by struct watch_area.
11562 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
11563 (s390_stopped_by_watchpoint): Remove pid argument,
11564 use s390_inferior_tid. Add short-cut for the no watchpoint case.
11565 (s390_fix_watch_points): Remove pid argument,
11566 use s390_inferior_tid. Recompute area spanned by watchpoints.
11567 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
11568 argument. Reimplement.
11569
11570 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
11571 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
11572 (FETCH_INFERIOR_REGISTERS): Define.
11573 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
11574 core-regset.o.
11575 * config/s390/s390x.mt: Remove.
11576 * config/s390/tm-s390.h: Remove.
11577 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
11578 (TARGET_ELF64): Remove.
11579 (SKIP_TRAMPOLINE_CODE): Do not undefine.
11580 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
11581 s390*-*-* case; always set gdb_target to s390.
11582 * regformats/reg-s390.dat: Remove control registers.
11583 * regformats/reg-s390x.dat: Likewise.
11584 * s390-tdep.h: New file.
11585 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
11586 Include "inferior.h" and "s390-tdep.h".
11587 Remove private definition of offsetof.
11588 (s390_register_u_addr): Remove.
11589 (regmap_gregset, regmap_fpregset): Define.
11590 (supply_gregset, fill_gregset): Reimplement.
11591 (supply_fpregset, fill_fpregset): Likewise.
11592 (s390_inferior_tid): New function.
11593 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
11594 (fetch_inferior_registers, store_inferior_registers): Likewise.
11595 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
11596 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
11597 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
11598 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
11599 (struct gdbarch_tdep): Define.
11600 (struct s390_register_info): Define.
11601 (s390_register_info): New variable.
11602 (s390_register_name): Reimplement.
11603 (s390_register_type): New function.
11604 (s390_register_raw_size, s390x_register_raw_size): Remove.
11605 (s390_cannot_fetch_register): Remove.
11606 (s390_register_byte): Remove.
11607 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
11608 (s390_dwarf_regmap): New variable.
11609 (s390_dwarf_reg_to_regnum): New function.
11610 (s390_stab_reg_to_regnum): Remove.
11611 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
11612 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
11613 (s390_convert_register_p): Likewise.
11614 (s390_register_to_value, s390_value_to_register): Likewise.
11615 (s390_register_reggroup_p): Likewise.
11616 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
11617 s390_gregset, s390x_gregset, s390_fpregset): New variables.
11618 (s390_supply_regset, s390_regset_from_core_section): New functions.
11619 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
11620 (S390_FPR_SIZE): Likewise.
11621 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
11622 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
11623 (S390_NUM_GPRS): Move here from tm-s390.h.
11624 (S390_NUM_FPRS): Likewise.
11625 (s390_in_function_epilogue_p): New function.
11626 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
11627 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
11628 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
11629 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
11630 Replace S390_FP_REGNUM by S390_SP_REGNUM.
11631 Remove calls to:
11632 set_gdbarch_deprecated_max_register_raw_size,
11633 set_gdbarch_deprecated_max_register_virtual_size,
11634 set_gdbarch_deprecated_register_byte,
11635 set_gdbarch_cannot_fetch_register,
11636 set_gdbarch_cannot_store_register,
11637 set_gdbarch_deprecated_register_size,
11638 set_gdbarch_deprecated_register_raw_size,
11639 set_gdbarch_deprecated_register_virtual_size,
11640 set_gdbarch_deprecated_register_virtual_type,
11641 set_gdbarch_deprecated_register_bytes.
11642 Add calls to:
11643 set_gdbarch_num_pseudo_regs,
11644 set_gdbarch_register_type,
11645 set_gdbarch_convert_register_p,
11646 set_gdbarch_register_to_value,
11647 set_gdbarch_value_to_register,
11648 set_gdbarch_register_reggroup_p,
11649 set_gdbarch_regset_from_core_section,
11650 set_gdbarch_pseudo_register_read,
11651 set_gdbarch_pseudo_register_write,
11652 set_gdbarch_in_function_epilogue_p.
11653 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
11654 (s390_tdep_h): New variable.
11655
11656 2004-02-17 Jim Blandy <jimb@redhat.com>
11657
11658 * findvar.c (value_from_register): If the type has no length, just
11659 return an acceptable value --- don't report an internal error.
11660
11661 * stabsread.c (read_type): If we find any type numbers that are
11662 forward references, complain if the references aren't resolved by
11663 the time we're finished reading.
11664 (cleanup_undefined_types): Make error message more appropriate for
11665 a complaint.
11666
11667 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
11668
11669 * Makefile.in (defs_h): Remove dependency on progress_h.
11670 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
11671 progress.h.
11672 * main.c (captured_main): Delete use of START_PROGRESS and
11673 END_PROGRESS.
11674
11675 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
11676
11677 * objfiles.c (terminate_minimal_symbol_table): Add back
11678 initialization of MSYMBOL_TYPE.
11679
11680 2004-02-17 David Mosberger <davidm@hpl.hp.com>
11681
11682 Committed by Andrew Cagney.
11683 * Makefile.in (ia64_tdep_h): New macro.
11684 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
11685 (ia64-tdep.o): Likewise.
11686 * ia64-tdep.h: New file.
11687 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
11688 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
11689 (ia64_aix_sigcontext_register_address): Likewise.
11690 (ia64_linux_getunwind_table): Delete declaration.
11691 * ia64-linux-tdep.c: Likewise.
11692
11693 2004-02-17 Corinna Vinschen <vinschen@redhat.com>
11694
11695 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
11696 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
11697 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
11698
11699 2004-02-17 Andrew Cagney <cagney@redhat.com>
11700
11701 * symtab.c (skip_prologue_using_sal): New function.
11702 * symtab.h (skip_prologue_using_sal): Declare.
11703 * frv-tdep.c: Include "symtab.h".
11704 (skip_prologue_using_sal): Delete function.
11705 * mips-tdep.c (skip_prologue_using_sal): Delete function.
11706 * rs6000-tdep.c (refine_prologue_limit): Mention
11707 skip_prologue_using_sal.
11708 * ia64-tdep.c (refine_prologue_limit): Ditto.
11709 * Makefile.in: Update dependencies.
11710
11711 2004-02-16 Andrew Cagney <cagney@redhat.com>
11712
11713 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
11714 START_INFERIOR_TRAPS_EXPECTED.
11715 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
11716 START_INFERIOR_TRAPS_EXPECTED.
11717 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
11718 Delete macro.
11719 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
11720 macro, moved to "nm-osf.h". Update copyright.
11721 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
11722 update copyright.
11723
11724 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
11725 and function replacing FRAMELESS_FUNCTION_INVOCATION.
11726 * blockframe.c (legacy_frameless_look_for_prologue): Rename
11727 frameless_look_for_prologue.
11728 * frame.h (legacy_frameless_look_for_prologue): Rename
11729 frameless_look_for_prologue.
11730 * gdbarch.h, gdbarch.c: Re-generate.
11731 * sh64-tdep.c (sh64_gdbarch_init): Update.
11732 * sh-tdep.c (sh_gdbarch_init): Update.
11733 * s390-tdep.c (s390_gdbarch_init): Update.
11734 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11735 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11736 * m68k-tdep.c (m68k_gdbarch_init): Update.
11737 (delta68_frame_args_address): Update.
11738 * m32r-tdep.c (m32r_gdbarch_init): Update.
11739 * hppa-tdep.c (hppa_gdbarch_init): Update.
11740 * h8300-tdep.c (h8300_gdbarch_init): Update.
11741 * frv-tdep.c (frv_gdbarch_init): Update.
11742 (frv_frameless_function_invocation): Update.
11743 * cris-tdep.c (cris_gdbarch_init): Update.
11744 (cris_frameless_function_invocation): Update.
11745 * avr-tdep.c (avr_gdbarch_init): Update.
11746 * arm-tdep.c (arm_gdbarch_init): Update.
11747 * stack.c (frame_info): Update, call predicate.
11748 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
11749 * frame.c (legacy_get_prev_frame): Update, call predicate..
11750 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
11751 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
11752 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
11753 invocation.
11754 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11755 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11756 * vax-tdep.c (vax_gdbarch_init): Ditto.
11757
11758 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
11759 function.
11760
11761 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
11762
11763 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
11764 initializations.
11765
11766 2004-02-16 Andrew Cagney <cagney@redhat.com>
11767
11768 * tui/tui-windata.c: Include "gdb_string.h".
11769 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
11770 * tui/tui-layout.c, tui/tui-command.c: Ditto.
11771 * Makefile.in: Update dependencies.
11772
11773 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
11774
11775 * Makefile.in (infrun.o): Add $(gdb_assert_h).
11776 * infrun.c: Include "gdb_assert.h".
11777 (singlestep_ptid, saved_singlestep_ptid)
11778 (stepping_past_singlestep_breakpoint): New variables.
11779 (resume): Set singlestep_ptid. Check for singlestep thread
11780 hop.
11781 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
11782 (handle_inferior_event): Handle singlestep thread hop.
11783
11784 2004-02-16 Andrew Cagney <cagney@redhat.com>
11785
11786 * dwarf2-frame.c (dwarf2_frame_ops): New function.
11787 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
11788 (dwarf2_frame_init_reg): Ditto.
11789
11790 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
11791 suggested by Joshua Neuheisel
11792
11793 * configure.in: Always check for curses, including pdcurses.
11794 Warn, instead of error, when no curses are found. Enable TUI when
11795 curses is available.
11796 * configure: Re-generate.
11797
11798 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
11799
11800 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
11801 sh_sh4_register_convert_to_virtual.
11802 (sh_register_convert_to_raw): Rename from
11803 sh_sh4_register_convert_to_raw.
11804 (sh_pseudo_register_read): Accomodate above name change.
11805 (sh_pseudo_register_write): Ditto.
11806
11807 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
11808
11809 * sh-tdep.c (sh_generic_register_name): Remove.
11810 (sh_gdbarch_init): Use sh_sh_register_name in default case.
11811
11812 2004-02-15 Andrew Cagney <cagney@redhat.com>
11813
11814 * configure.in (build_warnings): Add -Wunused-function.
11815 * configure: Re-generate.
11816
11817 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
11818 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
11819
11820 * procfs.c (procfs_init_inferior): Assume that
11821 START_INFERIOR_TRAPS_EXPECTED is defined.
11822 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
11823 * config/ns32k/tm-nbsd.h: Delete file,
11824 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
11825
11826 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
11827 * config/vax/tm-vax.h: Delete file.
11828
11829 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11830 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11831 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11832 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11833 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
11834 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11835 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
11836
11837 2004-02-15 Mark Kettenis <kettenis@gnu.org>
11838
11839 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
11840 * dwarf2-frame.c (dwarf2_frame_data): New variable.
11841 (struct dwarf2_frame_ops): New.
11842 (dwarf2_frame_default_init_reg): New function, based on
11843 dwarf2_frame_init_reg.
11844 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
11845 (dwarf2_frame_init_reg): Call architecture-specific function.
11846 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
11847 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
11848 instead of dwarf2_frame_data.
11849 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
11850 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
11851
11852 2004-02-15 Andrew Cagney <cagney@redhat.com>
11853
11854 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
11855 register_gdbarch_swap.
11856 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
11857 * f-lang.c (_initialize_f_language): Update, use
11858 DEPRECATED_REGISTER_GDBARCH_SWAP.
11859 * remote.c (_initialize_remote): Ditto.
11860 * regcache.c (_initialize_regcache): Ditto.
11861 * parse.c (_initialize_parse): Ditto.
11862 * infrun.c (_initialize_infrun): Ditto.
11863 * mi/mi-main.c (_initialize_mi_main): Ditto.
11864 * gdbtypes.c (_initialize_gdbtypes): Ditto.
11865
11866 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
11867 poking .cacheable directly.
11868 * symfile.c (symfile_bfd_open): Ditto.
11869
11870 * Makefile.in: Update all dependencies.
11871
11872 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
11873 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
11874 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
11875 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
11876 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
11877
11878 2004-02-14 Andrew Cagney <cagney@redhat.com>
11879
11880 * arch-utils.c (legacy_convert_register_p): Check
11881 DEPRECATED_REGISTER_CONVERTIBLE_P.
11882 * findvar.c (value_of_register): Ditto.
11883
11884 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
11885 * gdbarch.h, gdbarch.c: Re-generate.
11886 * arch-utils.c (deprecated_register_convertible_not): Delete.
11887 * arch-utils.h (deprecated_register_convertible_not): Delete.
11888 * mi/mi-main.c (get_register): Update. Update copyright.
11889 * infcmd.c (default_print_registers_info): Update.
11890
11891 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
11892 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
11893 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
11894 * gdbarch.h, gdbarch.c: Re-generate.
11895 * frame.c (deprecated_get_next_frame_hack): Delete function.
11896 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
11897 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
11898 Update.
11899 * infcall.c (call_function_by_hand): Update.
11900
11901 2004-02-14 Elena Zannoni <ezannoni@redhat.com>
11902
11903 * symfile.c (init_entry_point_info, entry_point_address): Move
11904 from here...
11905 * objfiles.c (init_entry_point_info, entry_point_address):..to
11906 here.
11907 * symfile.h (init_entry_point_info, entry_point_address): Remove
11908 prototypes.
11909 * objfiles.h (init_entry_point_info, entry_point_address):Add
11910 prototypes.
11911 * cris-tdep.c: Remove include of symfile.h. Add include of
11912 objfiles.h.
11913 * infcall.c: Ditto.
11914 * mcore-tdep.c: Ditto.
11915 * mn10300-tdep.c: Ditto.
11916 * sh64-tdep.c: Ditto.
11917 * v850-tdep.c: Ditto.
11918 * arm-tdep.c: Remove include of symfile.h.
11919 * blockframe.c: Ditto.
11920 * coffread.c: Ditto.
11921 * dbxread.c: Ditto.
11922 * dwarf2read.c: Ditto.
11923 * dwarfread.c: Ditto.
11924 * frv-tdep.c: Ditto.
11925 * ia64-tdep.c: Ditto.
11926 * mdebugread.c: Ditto.
11927 * mipsread.c: Ditto.
11928 * rs6000-tdep.c: Ditto.
11929 * s390-tdep.c: Ditto.
11930 * sh-tdep.c: Ditto.
11931 * xstormy16-tdep.c: Ditto.
11932 * gdbarch.sh: Remove include of symfile.h.
11933 * gdbarch.c: Regenerate.
11934 * solib-irix.c (enable_break): Use entry_point_address().
11935 Add comment about include file.
11936 * xcoffread.c: Add comment about include file.
11937 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
11938 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
11939 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
11940 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
11941 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
11942
11943 2004-02-13 Andrew Cagney <cagney@redhat.com>
11944
11945 * corelow.c (core_xfer_partial): Use "struct bfd_section".
11946 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
11947 copyright.
11948 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
11949
11950 2004-02-12 Fred Fish <fnf@redhat.com>
11951
11952 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
11953 set_gdbarch_store_return_value.
11954
11955 2004-02-12 Andrew Cagney <cagney@redhat.com>
11956
11957 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
11958 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
11959 (interrupt_query): Ditto.
11960 (ofunc): Delete unused variable.
11961 * cris-tdep.c (cris_abi): Delete unused function.
11962 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
11963 (cris_get_wide_opcode, cris_get_short_size): Ditto.
11964 (cris_get_asr_quick_shift_steps): Ditto.
11965 (cris_skip_prologue_frameless_p): Ditto.
11966 * arm-tdep.c (arm_push_return_address): Delete unused function.
11967 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
11968 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
11969 * s390-tdep.c (s390_function_start): Delete unused function.
11970
11971 2004-02-12 Andrew Cagney <cagney@redhat.com>
11972
11973 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
11974 gdbarch.h, gdbarch.c: Re-generate.
11975 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
11976 to generic_prologue_frameless_p.
11977 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
11978 * arch-utils.c (generic_prologue_frameless_p): Delete function.
11979
11980 2004-02-11 Daniel Jacobowitz <drow@mvista.com>
11981
11982 * mips-linux-tdep.c: Include "frame.h".
11983 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
11984 (mips_linux_skip_resolver): New functions.
11985 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
11986 and set_gdbarch_in_solib_call_trampoline.
11987 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
11988 to after set_gdbarch_in_solib_return_trampoline. Only set the
11989 solib hooks to mips16 functions if the OS ABI is unknown.
11990 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
11991 including "config/tm-linux.h".
11992 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
11993 * Makefile.in (mips-linux-tdep.o): Update.
11994
11995 2004-02-11 David Carlton <carlton@kealia.com>
11996
11997 * linespec.c (decode_compound): Only look for a class symbol when
11998 considering all but the rightmost component.
11999
12000 2004-02-11 Andrew Cagney <cagney@redhat.com>
12001
12002 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
12003 abi code are are separatly grouped.
12004
12005 2004-02-11 Andrew Cagney <cagney@redhat.com>
12006
12007 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
12008 * gdbarch.h, gdbarch.c: Re-generate.
12009 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12010 * v850-tdep.c (v850_gdbarch_init): Update.
12011 * sh64-tdep.c (sh64_gdbarch_init): Update.
12012 * sh-tdep.c (sh_gdbarch_init): Update.
12013 * s390-tdep.c (s390_gdbarch_init): Update.
12014 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12015 * mips-tdep.c (mips_gdbarch_init): Update.
12016 * mcore-tdep.c (mcore_gdbarch_init): Update.
12017 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12018 * m32r-tdep.c (m32r_gdbarch_init): Update.
12019 * ia64-tdep.c (ia64_gdbarch_init): Update.
12020 * hppa-tdep.c (hppa_gdbarch_init): Update.
12021 * h8300-tdep.c (h8300_gdbarch_init): Update.
12022 * frv-tdep.c (frv_gdbarch_init): Update.
12023 * d10v-tdep.c (d10v_gdbarch_init): Update.
12024 * cris-tdep.c (cris_gdbarch_init): Update.
12025 * avr-tdep.c (avr_gdbarch_init): Update.
12026 * arm-tdep.c (arm_gdbarch_init): Update.
12027 * alpha-tdep.c (alpha_gdbarch_init): Update.
12028
12029 2004-02-11 Corinna Vinschen <vinschen@redhat.com>
12030
12031 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
12032 comma.
12033 (sh_sh4al_dsp_register_name): Ditto.
12034
12035 2004-02-10 Andrew Cagney <cagney@redhat.com>
12036
12037 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
12038 (mips_init_frame_pc_first): Delete function.
12039 (mips_frame_saved_pc): Delete function.
12040 (mips_frame_chain): Delete function.
12041 (mips_init_extra_frame_info): Delete function.
12042 (mips_xfer_register): Delete unused variable "reg".
12043 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
12044 (mips_n32n64_return_value): Delete unused variable "reg".
12045 (mips_n32n64_return_value): Delete unused variable "pos".
12046 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
12047 (mips_o32_return_value): Delete unused variable "pos".
12048 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
12049 (mips_print_fp_register): Delete unused variable "namelen"
12050 (mips_print_fp_register): Delete unused variable "flt2"
12051 (get_frame_pointer): Delete function.
12052 (cached_proc_desc): Delete static variable.
12053 (mips_pop_frame): Delete function.
12054 (mips_find_saved_regs): Delete function.
12055 (mips_get_saved_register): Delete function.
12056 (mips_saved_pc_after_call): Delete function.
12057 (SIGFRAME_BASE): Delete macro.
12058 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
12059 (SIGFRAME_PC_OFF): Delete macro.
12060 (SIGFRAME_REGSAVE_OFF): Delete macro.
12061 (mips_dump_tdep): Do not print deleted macro definitions.
12062
12063 2004-02-10 Andrew Cagney <cagney@redhat.com>
12064
12065 * Makefile.in (SFILES): Remove explictly listed tui files.
12066 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
12067
12068 2004-02-10 Jeff Johnston <jjohnstn@redhat.com>
12069
12070 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
12071 to use paddr functions to format ia64 addresses and long values.
12072 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
12073 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
12074 (get_kernel_table, ia64_find_proc_info_x): Ditto.
12075 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
12076 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
12077
12078 2004-02-10 Andrew Cagney <cagney@redhat.com>
12079
12080 * defs.h: Do not include "tui.h".
12081 * gdb_curses.h: New file.
12082 * tui/tui-hooks.h: New file.
12083 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
12084 (tui_install_hooks, tui_remove_hooks): Delete declarations.
12085 (tui_initialize_io): Delete declaration.
12086 (tui_initialize_readline: Delete redundant declaration.
12087 (struct tui_point): Delete definition.
12088 * tui/tui-data.h (struct tui_point): Define.
12089 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
12090 * utils.c: Include "tui/tui.h".
12091 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
12092 * printcmd.c [TUI]: Include "tui/tui.h".
12093 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
12094 * tui/tui-command.c: Include "gdb_curses.h".
12095 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
12096 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
12097 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
12098 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
12099 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
12100 * Makefile.in: Update all dependencies.
12101 (tui_hooks_h, gdb_curses_h): Define.
12102 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
12103
12104 2004-02-10 Elena Zannoni <ezannoni@redhat.com>
12105
12106 * objfiles.h (struct objfile): Remove unused fields auxf1 and
12107 auxf2. Add comments about some other rarely used fields.
12108
12109 2004-02-10 Andrew Cagney <cagney@redhat.com>
12110
12111 * Makefile.in (init.c): Fix script removing duplicates. Problem
12112 reported by Peter Schauer.
12113
12114 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
12115
12116 * bcache.c (bcache_xmalloc): Use obstack_init instead of
12117 obstack_specify_allocation.
12118 * objfiles.c (allocate_objfile): Ditto.
12119 * solib-sunos.c (solib_add_common_symbols)
12120 (allocate_rt_common_objfile): Ditto.
12121 * symfile.c (reread_symbols): Ditto.
12122 * gdb_obstack.h: Add comment.
12123
12124 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
12125
12126 * linespec.c (decode_line_1, locate_first_half)
12127 (decode_compound, lookup_prefix_sym): Update comments. Delete old
12128 commented out code.
12129
12130 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
12131
12132 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
12133 obstack_free.
12134
12135 2004-02-09 Andrew Cagney <cagney@redhat.com>
12136
12137 * blockframe.c (find_pc_partial_function): If find_pc_overlay
12138 fails, try find_pc_section. Fix PR c++/1267.
12139 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
12140 instead of find_pc_mapped_section.
12141 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
12142 not default to the section containing PC. Fix PR symtab/1519.
12143
12144 2004-02-09 Andrew Cagney <cagney@redhat.com>
12145
12146 * Makefile.in (mips-tdep.o): Update dependencies.
12147 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
12148 "trad-frame.h".
12149 (mips_unwind_pc): Return the pseudo PC register.
12150 (mips_unwind_dummy_id): New function.
12151 (mips16_fetch_instruction): New function.
12152 (mips32_fetch_instruction): New function.
12153 (struct mips_frame_cache): Define.
12154 (mips_mdebug_frame_cache): New function.
12155 (mips_mdebug_frame_this_id): New function.
12156 (mips_mdebug_frame_prev_register): New function.
12157 (mips_mdebug_frame_unwind): Define.
12158 (mips_mdebug_frame_sniffer): New function.
12159 (mips_mdebug_frame_base_address): New function.
12160 (mips_mdebug_frame_base): Define.
12161 (mips_mdebug_frame_base_sniffer): New function.
12162 (mips_gdbarch_init): Append unwind and base sniffers. Set
12163 unwind_dummy_id.
12164
12165 2004-02-08 Andrew Cagney <cagney@redhat.com>
12166
12167 * frame.c: Print both the register number and name.
12168
12169 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
12170 and a sed into a single sed. Make .c and .o patterns more robust.
12171 (OBS): Delete.
12172 (INIT_FILES): Replace OBS with COMMON_OBS.
12173 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
12174
12175 2004-02-08 Mark Kettenis <kettenis@gnu.org>
12176
12177 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
12178 the PT_WCOOKIE request.
12179
12180 2004-02-08 Andrew Cagney <cagney@redhat.com>
12181
12182 * mips-tdep.c (mips_unwind_pc): New function.
12183 (mips_gdbarch_init): Set mips_unwind_pc.
12184
12185 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
12186 (get_frame_id): Allow the UNKNOWN_FRAME.
12187 (frame_register_unwind, get_frame_type): Ditto.
12188
12189 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
12190 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
12191 unwind_dummy_id indicates a legacy frame.
12192
12193 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
12194 * configure: Re-generate.
12195
12196 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
12197 methods.
12198
12199 2004-02-08 Andrew Cagney <cagney@redhat.com>
12200
12201 * configure.in (CONFIG_ALL): Set to Makefile target, and not
12202 makefile macro.
12203 * configure: Re-generate.
12204 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
12205 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
12206 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
12207 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
12208 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
12209 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
12210 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
12211 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
12212 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
12213 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
12214
12215 2004-02-07 Andrew Cagney <cagney@redhat.com>
12216
12217 * Makefile.in: Update all dependencies.
12218
12219 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
12220 * configure: Re-generate.
12221 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
12222 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
12223 (COMMON_OBS): Add "main.o" and "annotate.o".
12224 (ANNOTATE_OBS): Delete.
12225 (OBS): Remove ANNOTATE_OBS.
12226 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
12227 CONFIG_INITS.
12228 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
12229 against CONFIG_OBS and "main.o".
12230 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
12231 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
12232
12233 * tui/tui-command.c: Include "gdb_string.h", delete register
12234 attribute, use ISO-C function signatures.
12235 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
12236 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
12237 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
12238 * tui/tui.c: Ditto.
12239
12240 * tui/tui-command.c: Change variable and function names to lower
12241 case.
12242 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
12243 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
12244 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
12245 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12246 * tui/tui-winsource.c, tui/tui.c: Ditto.
12247
12248 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
12249
12250 * buildsym.c (free_pending_blocks, finish_block)
12251 (record_pending_block, make_blockvector, end_symtab): Replace
12252 symbol_obstack with objfile_obstack.
12253 * coffread.c (process_coff_symbol, coff_read_struct_type)
12254 (coff_read_enum_type): Ditto.
12255 * cp-namespace.c (initialize_namespace_symtab)
12256 (check_one_possible_namespace_symbol): Ditto.
12257 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
12258 (dwarf2_symbol_mark_computed): Ditto.
12259 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
12260 * elfread.c (elf_symtab_read): Ditto.
12261 * hpread.c (hpread_symfile_init, hpread_symfile_init)
12262 (hpread_read_enum_type, hpread_read_function_type)
12263 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
12264 Ditto.
12265 * jv-lang.c (get_java_class_symtab, add_class_symbol)
12266 (java_link_class_type): Ditto.
12267 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
12268 (new_symbol): Ditto.
12269 * minsyms.c (install_minimal_symbols): Ditto.
12270 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
12271 (terminate_minimal_symbol_table): Replace symbol_obstack with
12272 objfile_obstack.
12273 (free_objfile): Remove freeing of symbol_obstack.
12274 * objfiles.h: Remove symbol_obstack field.
12275 * pa64solib.c (add_to_solist): Replace symbol_obstack with
12276 objfile_obstack.
12277 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
12278 symbol_obstack.
12279 (solib_add_common_symbols): Replace symbol_obstack with
12280 objfile_obstack.
12281 * somsolib.c (som_solib_add): Ditto.
12282 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
12283 (common_block_start, common_block_end): Ditto.
12284 * symfile.c (reread_symbols): Remove freeing and init of
12285 symbol_obstack.
12286 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
12287 * symfile.h: Update comment.
12288 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
12289 stats printing.
12290 * symtab.c (symbol_set_names): Replace symbol_obstack with
12291 objfile_obstack.
12292 * symtab.h (struct general_symbol_info, struct minimal_symbol):
12293 Update comments.
12294 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
12295 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
12296 objfile_obstack.
12297
12298 2004-02-07 Andrew Cagney <cagney@redhat.com>
12299
12300 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
12301 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
12302 fields and variables.
12303 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
12304 (m_beInvisible): Delete macro.
12305 * tui/tui-data.h: Fix case case fields and variables.
12306 (m_genWinPtrIsNull): Delete macro.
12307 (tui_win_list): Rename winList.
12308 (TUI_SRC_WIN): Rename srcWin.
12309 (TUI_DISASM_WIN): Rename disassemWin.
12310 (TUI_DATA_WIN): Rename dataWin.
12311 (TUI_CMD_WIN): Rename cmdWin.
12312 (m_genWinPtrNotNull): Delete macro.
12313 (m_winPtrIsNull): Delete macro.
12314 (m_winPtrNotNull): Delete macro.
12315 (tui_win_is_source_type): Replace m_winIsSourceType
12316 (tui_win_is_auxillary): Replace m_winIsAuzillary.
12317 (tui_win_has_locator): Replace m_hasLocator.
12318 (tui_set_win_highlight): Replace m_setWinHighlightOn and
12319 m_setWinHighlightOff.
12320 * tui/tui-data.c: Update references.
12321 (tui_win_is_source_type, tui_set_win_highlight): New functions.
12322 (tui_win_has_locator, tui_win_is_auxillary): New functions.
12323 * tui/tui-command.c, tui/tui-disasm.c: Update references.
12324 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
12325 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
12326 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12327 * tui/tui-winsource.c, tui/tui.c: Ditto.
12328
12329 2004-02-07 Mark Kettenis <kettenis@gnu.org>
12330
12331 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
12332 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
12333 StackGhost.
12334
12335 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
12336 variable `i6' to `i7'.
12337 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
12338
12339 2004-02-07 Andrew Cagney <cagney@redhat.com>
12340
12341 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
12342 (TuiPoint, TuiPointPtr): Ditto.
12343 (TuiStatus, TuiStatusPtr): Ditto.
12344 (TuiWinType, TuiWinTypePtr): Ditto.
12345 (struct tui_point): Rename _TuiPoint.
12346 (tui_get_low_disassembly_address): Rename
12347 tuiGetLowDisassemblyAddress.
12348 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
12349 (tuiFree): Delete declaration.
12350 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
12351 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
12352 * tui/tui.c (tuiFree): Delete function.
12353 * cli/cli-cmds.c (disassemble_command): Update references.
12354 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
12355 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
12356 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
12357 * tui/tui-winsource.c: Ditto.
12358
12359 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
12360
12361 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
12362 coffstab_build_psymtabs, elfstab_build_psymtabs)
12363 (stabsect_build_psymtabs): Replace psymbol_obstack with
12364 objfile_obstack.
12365 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
12366 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
12367 Ditto.
12368 * dwarfread.c (scan_compilation_units): Ditto.
12369 * elfread.c (elfstab_offset_sections): Ditto.
12370 * hppa-tdep.c (read_unwind_info): Ditto.
12371 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
12372 (hpread_end_psymtab): Ditto.
12373 * mdebugread.c (mdebug_build_psymtabs, add_pending)
12374 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
12375 Ditto.
12376 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
12377 * objfiles.c (add_to_objfile_sections)
12378 (build_objfile_section_table): Ditto.
12379 (allocate_objfile): Remove init of psymbol_obstack.
12380 (free_objfile): Remove freeing of psymbol_obstack.
12381 * objfiles.h (struct objfile): Remove field
12382 psymbol_obstack. Update comments.
12383 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
12384 psymbol_obstack with objfile_obstack.
12385 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
12386 psymbol_obstack.
12387 * somread.c (som_symfile_offsets, init_import_symbols)
12388 (init_export_symbols): Replace psymbol_obstack with
12389 objfile_obstack.
12390 * somsolib.c (som_solib_add_solib_objfile): Ditto.
12391 * symfile.c (default_symfile_offsets, syms_from_objfile)
12392 (reread_symbols): Remove freeing and init of psymbol_obstack.
12393 (cashier_psymtab): Update comment.
12394 * symmisc.c (print_objfile_statistics): Don't report stats for
12395 psymbol obstack.
12396 * symtab.h (struct general_symbol_info, struct partial_symtab):
12397 Update comments.
12398 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
12399 (xcoff_symfile_offsets): Replace psymbol_obstack with
12400 objfile_obstack.
12401
12402 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
12403
12404 * objfiles.h (struct objfile): Add objfile_obstack field.
12405 Remove type_obstack field.
12406
12407 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
12408 read_structure_scope read_enumeration, new_symbol): Replace
12409 type_obstack with objfile_obstack.
12410 * dwarfread.c (struct_type, enum_type): Ditto.
12411 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
12412 (lookup_fundamental_type): Ditto.
12413 * gdbtypes.h (TYPE_ALLOC): Ditto.
12414 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
12415 (hpread_read_doc_function_type, hpread_read_struct_type)
12416 (fix_static_member_physnames, hpread_read_array_type)
12417 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
12418 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
12419 (java_link_class_type): Ditto.
12420 * mdebugread.c (parse_type): Ditto.
12421 * objfiles.c (allocate_objfile, free_objfile): Ditto.
12422 * solib-sunos.c (solib_add_common_symbols): Ditto.
12423 * stabsread.c (define_symbol, read_type, read_member_functions,
12424 read_cpp_abbrev, read_one_struct_field): Ditto.
12425 * symfile.c (reread_symbols): Ditto.
12426 * symmisc.c (print_objfile_statistics): Ditto.
12427
12428 2004-02-07 Andrew Cagney <cagney@redhat.com>
12429
12430 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
12431 (tui_exec_info_content): Rename TuiExecInfoContent.
12432 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
12433 (TuiWinInfo, TuiWinInfoPtr): Ditto.
12434 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
12435 (TuiList, TuiListPtr): Ditto.
12436 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
12437 (TuiDataType, TuiDataTypePtr): Ditto.
12438 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
12439 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
12440 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
12441 (TuiSourceElement, TuiSourceElementPtr): Ditto.
12442 (TuiDataElement, TuiDataElementPtr): Ditto.
12443 (TuiWinElement, TuiWinElementPtr): Ditto.
12444 (TuiDataInfo, TuiDataInfoPtr): Ditto.
12445 (TuiCommandElement, TuiCommandElementPtr): Ditto.
12446 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
12447 (TuiWhichElement, TuiWhichElementPtr): Ditto.
12448 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
12449 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
12450 * tui/tui-command.c, tui/tui-data.c: Update references.
12451 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
12452 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
12453 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12454 * tui/tui-winsource.c, tui/tui.c: Ditto.
12455
12456 2004-02-07 Mark Kettenis <kettenis@gnu.org>
12457
12458 * dwarf2-frame.h: Update copyright.
12459 (enum dwarf2_frame_reg_rule): New.
12460 (struct dwarf2_frame_state_reg): New.
12461 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
12462 * dwarf2-frame.c: Update copyright.
12463 (enum dwarf2_reg_rule): Remove.
12464 (struct dwarf2_frame_state): Remove defenition of `struct
12465 dwarf2_frame_state_reg'.
12466 (read_reg): Call get_frame_arch to get the architecture instead of
12467 using CURRENT_GDBARCH.
12468 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
12469 DWARF2_FRAME_.
12470 (dwarf2_frame_init_reg): New function.
12471 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
12472 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
12473 initialize the register state. Prefix old `enum dwarf2_reg_rule'
12474 tags with DWARF2_FRAME_.
12475 (dwarf2_frame_prev_register): Call get_frame_arch to get the
12476 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
12477 dwarf2_reg_rule' tags with DWARF2_FRAME_.
12478
12479 2004-02-06 Andrew Cagney <cagney@redhat.com>
12480
12481 * tui/tui-data.h (struct tui_list): Rename _TuiList.
12482 (enum tui_data_type): Rename _TuiDataType.
12483 (struct tui_layout_def): Rename _TuiLayoutDef.
12484 (struct tui_source_element): Rename _TuiSourceElement.
12485 (struct tui_data_element): Rename _TuiDataElement.
12486 (struct tui_command_element): Rename _TuiCommandElement.
12487 (struct tui_locator_element): Rename _TuiLocatorElement.
12488 (union tui_which_element): Define.
12489 (struct tui_win_element): Rename _TuiWinElement.
12490 (struct tui_data_info): Rename _TuiDataInfo.
12491 (struct tui_source_info): Rename _TuiSourceInfo.
12492 (struct tui_command_info): Rename _TuiCommandInfo.
12493 (tui_initialize_static_data): Rename initializeStaticData.
12494 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
12495 (tui_alloc_win_info): Rename allocWinInfo.
12496 (tui_init_generic_part): Rename initGenericPart.
12497 (tui_init_win_info): Rename initWinInfo.
12498 (tui_alloc_content): Rename allocContent.
12499 (tui_add_content_elements): Rename addContentElements.
12500 (tui_init_content_element): Rename initContentElement.
12501 (tui_free_window): Rename freeWindow.
12502 (tui_free_win_content): Rename freeWinContent.
12503 (tui_free_data_content): Rename freeDataContent.
12504 (tui_free_all_source_wins_content): Rename
12505 freeAllSourceWinsContent.
12506 (tui_del_window): Rename tuiDelWindow.
12507 (tui_del_data_windows): Rename tuiDelDataWindows.
12508 (tui_partial_win_by_name): Rename partialWinByName.
12509 (tui_win_name): Rename winName.
12510 (tui_current_layout): Rename currentLayout.
12511 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
12512 (tui_term_height): Rename termHeight.
12513 (tui_set_term_height_to): Rename setTermHeightTo.
12514 (tui_term_width): Rename termWidth.
12515 (tui_set_term_width_to): Rename setTermWidthTo.
12516 (tui_set_gen_win_origin): Rename setGenWinOrigin.
12517 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
12518 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
12519 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
12520 (tui_source_windows): Rename sourceWindows.
12521 (tui_clear_source_windows): Rename clearSourceWindows.
12522 (tui_clear_source_windows_detail): Rename
12523 clearSourceWindowsDetail.
12524 (tui_clear_win_detail): Rename clearWinDetail.
12525 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
12526 (tui_default_tab_len): Rename tuiDefaultTabLen.
12527 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
12528 (tui_win_with_focus): Rename tuiWinWithFocus.
12529 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
12530 (tui_layout_def): Rename tuiLayoutDef.
12531 (tui_win_resized): Rename tuiWinResized.
12532 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
12533 (tui_next_win): Rename tuiNextWin.
12534 (tui_prev_win): Rename tuiPrevWin.
12535 (tui_add_to_source_windows): Rename addToSourceWindows.
12536 * tui/tui-winsource.c, tui/tui-win.c: Update references.
12537 * tui/tui-layout.c, tui/tui-source.c: Ditto.
12538 * tui/tui-stack.c, tui/tui-io.c: Ditto.
12539 * tui/tui.c, tui/tui-data.c: Ditto.
12540 * tui/tui-interp.c, tui/tui-data.c: Ditto.
12541 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
12542
12543 * tui/tui-source.h: Update copyright. Include "tui-data.h".
12544 (struct symtab): Declare.
12545 (tui_set_source_content): Rename tuiSetSourceContent.
12546 (tui_show_symtab_source): Rename tuiShowSource.
12547 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
12548 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
12549 * tui/tui-source.c: Update copyright. Update references.
12550 * tui/tui-win.c, tui/tui-winsource.c: Update references.
12551 * tui/tui-stack.c: Update references.
12552
12553 * tui/tui-win.h: Update copyright. Include "tui-data.h".
12554 (struct tui_win_info): Declare.
12555 (tui_scroll_forward): Rename tuiScrollForward.
12556 (tui_scroll_backward): Rename tuiScrollBackward.
12557 (tui_scroll_left): Rename tuiScrollLeft.
12558 (tui_scroll_right): Rename tuiScrollRight.
12559 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
12560 (tui_resize_all): Rename tuiResizeAll.
12561 (tui_refresh_all_win): Rename tuiRefreshAll.
12562 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
12563 * tui/tui-layout.c, * tui/tui-io.c: Update references.
12564 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
12565 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
12566
12567 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
12568 (tui_erase_data_content): Rename tuiEraseDataContent.
12569 (tui_display_all_data): Rename tuiDisplayAllData.
12570 (tui_check_data_values): Rename tuiCheckDataValues.
12571 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
12572 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
12573 (tui_first_data_element_no_in_line): Rename
12574 tuiFirstDataElementNoInLine.
12575 (tui_delete_data_content_windows): Rename
12576 tuiDeleteDataContentWindows.
12577 (tui_refresh_data_win): Rename tuiRefreshDataWin.
12578 (tui_display_data_from): Rename tuiDisplayDataFrom.
12579 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
12580 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
12581 * tui/tui-win.c, tui/tui-regs.c: Update references.
12582 * tui/tui-layout.c, tui/tui.c: Update references.
12583
12584 * tui/tui-wingeneral.h: Update copyright.
12585 (m_allBeVisible): Delete macro.
12586 (m_allBeInvisible): Delete macro.
12587 (struct tui_gen_win_info): Declare.
12588 (struct tui_win_info): Declare.
12589 (tui_unhighlight_win): Rename unhighlightWin.
12590 (tui_make_visible, tui_make_invisible): Replace makeVisible.
12591 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
12592 (tui_make_window): Rename makeWindow.
12593 (tui_copy_win): Rename copyWin.
12594 (tui_box_win): Rename boxWin.
12595 (tui_highlight_win): Rename highlightWin.
12596 (tui_check_and_display_highlight_if_needed): Rename
12597 checkAndDisplayHighlightIfNeeded.
12598 (tui_refresh_all): Rename refreshAll.
12599 (tui_delete_win): Rename tuiDelwin.
12600 (tui_refresh_win): Rename tuiRefreshWin.
12601 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
12602 (tui_make_visible, tui_make_invisible): New functions.
12603 (tui_make_all_visible, tui_make_all_invisible): New functions.
12604 (make_all_visible): Rename makeAllVisible.
12605 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
12606 * tui/tui-data.c, tui/tui-winsource.c: Update references.
12607 * tui/tui-windata.c, tui/tui-win.c: Update references.
12608 * tui/tui-regs.c, tui/tui-layout.c: Update references.
12609 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
12610
12611 2004-02-06 Mark Kettenis <kettenis@gnu.org>
12612
12613 * proc-api.c (write_with_trace): Initialize local variable to
12614 silence compiler warning.
12615
12616 2004-02-06 Andrew Cagney <cagney@redhat.com>
12617
12618 * tui/tui-source.h: Do not include "defs.h".
12619 (struct tui_win_info): Declare.
12620 (tui_set_source_content_nil): Declare.
12621 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
12622 (union tui_line_or_address): Rename _TuiLineOrAddress.
12623 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
12624 (tui_update_source_window): Rename tuiUpdateSourceWindow.
12625 (tui_update_source_window_as_is): Rename
12626 tuiUpdateSourceWindowAsIs.
12627 (tui_update_source_windows_with_addr): Rename
12628 tuiUpdateSourceWindowsWithAddr.
12629 (tui_update_source_windows_with_line): Rename
12630 tuiUpdateSourceWindowsWithLine.
12631 (tui_clear_source_content): Rename tuiClearSourceContent.
12632 (tui_erase_source_content): Rename tuiEraseSourceContent.
12633 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
12634 (tui_show_source_content): Rename tuiShowSourceContent.
12635 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
12636 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
12637 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
12638 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
12639 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
12640 (tui_update_exec_info): Rename tuiUpdateExecInfo.
12641 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
12642 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
12643 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
12644 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
12645 (struct tui_win_info): Declare.
12646 * tui/tui-stack.c: Update references.
12647 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
12648 * tui/tui-win.c, tui/tui-source.c: Ditto.
12649 * tui/tui.c, tui/tui-disasm.c: Ditto.
12650
12651 2004-02-06 Mark Kettenis <kettenis@gnu.org>
12652
12653 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
12654 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
12655
12656 2004-02-05 Mark Kettenis <kettenis@gnu.org>
12657
12658 * infrun.c (handle_inferior_event): Allow for breakpoint
12659 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
12660 and SIGEMT. Update comments.
12661 * NEWS (Revised SPARC target): Mention support for non-executable
12662 stack.
12663
12664 2004-02-04 Mark Kettenis <kettenis@gnu.org>
12665
12666 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
12667 * inftarg.c: Update copyright year.
12668 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
12669 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
12670 (sparc_xfer_wcookie): New function.
12671 * sparc-tdep.c (sparc_fetch_wcookie): New function.
12672 * Makefile.in (sparc-nat.o): Update dependencies.
12673 * config/sparc/nm-nbsd.h: Include "target.h".
12674 (NATIVE_XFER_WCOOKIE): New define.
12675 (sparc_xfer_wcookie): New prototype.
12676
12677 2004-02-04 Andrew Cagney <cagney@redhat.com>
12678
12679 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
12680 SYSCALL_TRAP function.
12681 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
12682
12683 2004-02-04 Andrew Cagney <cagney@redhat.com>
12684 Daniel Jacobowitz <drow@mvista.com>
12685
12686 * objfiles.h: Delete comments refering to inside_entry_func and
12687 DEPRECATED_FRAME_CHAIN_VALID.
12688 * defs.h (inside_entry_func): Update prototype..
12689 * blockframe.c (inside_entry_func): Rename to
12690 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
12691 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
12692
12693 2004-02-03 Jeff Johnston <jjohnstn@redhat.com>
12694
12695 * breakpoint.c (struct captured_parse_breakpoint_args): Move
12696 outside of #ifdef SOLIB_ADD region.
12697 (do_restore_lang_radix_cleanup): Ditto.
12698 (resolve_pending_breakpoint): Ditto.
12699
12700 2004-02-03 Andrew Cagney <cagney@redhat.com>
12701
12702 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
12703 (process_note_abi_tag_sections): Delete unused function.
12704 (ia64_read_fp): Delete unused function.
12705 (gdbarch_extract_struct_value_address): Delete declaration.
12706
12707 2004-02-02 Andrew Cagney <cagney@redhat.com>
12708
12709 * vax-tdep.c (vax_frame_chain): Delete call to
12710 deprecated_inside_entry_file.
12711 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
12712
12713 2004-02-02 Mark Kettenis <kettenis@gnu.org>
12714
12715 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
12716 column that's "empty" or "same value" when eliminating REG_RA
12717 rules.
12718
12719 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
12720
12721 * NEWS: Add information about new pending breakpoint support.
12722
12723 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
12724
12725 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
12726 and pending fields for pending breakpoint support.
12727 * breakpoint.c (breakpoint_enabled): Add check for not pending.
12728 (condition_command): Only parse condition if not a pending
12729 breakpoint.
12730 (print_one_breakpoint): Add support for pending breakpoints.
12731 (describe_other_breakpoints): Add checks to verify we are not
12732 dealing with pending breakpoints.
12733 (check_duplicates): Don't check pending breakpoints.
12734 (set_raw_breakpoint): Initialize pending flag.
12735 (do_restore_lang_radix_cleanup): New cleanup routine.
12736 (resolve_pending_breakpoint): New function.
12737 (re_enable_breakpoints_in_shlibs): Try and resolve any
12738 pending breakpoints via resolve_pending_breakpoint.
12739 (mention): Add pending breakpoint support.
12740 (parse_breakpoint_sals): Add new parameter to pass to
12741 decode_line_1 to indicate silent errors when files or functions
12742 are not found. Change all callers.
12743 (do_captured_parse_breakpoint): New function.
12744 (break_command_1): Change prototype to return an rc value and to
12745 take an optional pending breakpoint pointer. Support creating
12746 a pending breakpoint if a "not found" form of error occurs when
12747 parsing the breakpoint. Also support resolving an existing pending
12748 breakpoint and be silent if the resolution fails.
12749 (create_breakpoints): Change prototype to take pending breakpoint
12750 pointer. When resolving a pending breakpoint, use the new pointer
12751 to provide a conditional or commands added by the end-user.
12752 (delete_breakpoint): Add appropriate check for pending.
12753 (breakpoint_re_set_one): Ditto.
12754 (do_enable_breakpoint): Ditto.
12755
12756 2004-02-02 David Carlton <carlton@kealia.com>
12757
12758 * valops.c (enum oload_classification): New.
12759 (find_overload_match): Break implementation into separate
12760 functions; delete #if 0'd code; look for symbols within
12761 namespaces.
12762 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
12763 (find_oload_champ,oload_method_static,classify_oload_match): New.
12764 * cp-support.h: Add declaration for cp_func_name; update
12765 declaration for make_symbol_overload_list.
12766 * cp-support.c (cp_func_name): New.
12767 (overload_list_add_symbol): Fix comment, use
12768 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
12769 (make_symbol_overload_list): Take a function name and a namespace
12770 instead of a symbol; change implementation.
12771 (make_symbol_overload_list_using): New.
12772 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
12773
12774 2004-02-02 Fred Fish <fnf@redhat.com>
12775
12776 * main.c (gdb_stdtarg): Move definition to group with other
12777 gdb_stdtarg definitions and update copyright years.
12778 * remote-sim.c (gdb_os_write_stderr): Write output to
12779 gdb_stdtargerr stream instead of gdb_stdtarg stream.
12780 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
12781 gdb_stderr stream and update copyright years.
12782
12783 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
12784
12785 * Makefile.in (mips-linux-nat.o): Update dependencies.
12786 * mips-linux-nat.c: Include mips-tdep.h.
12787
12788 2004-02-01 Roland McGrath <roland@redhat.com>
12789
12790 * sol-thread.c (sol_thread_xfer_partial): New function.
12791 (init_sol_thread_ops): Use that for to_xfer_partial hook.
12792 (init_sol_core_ops): Likewise.
12793
12794 * procfs.c (procfs_xfer_partial): New function.
12795 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
12796 * Makefile.in (procfs.o): Add $(auxv_h) dep.
12797
12798 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
12799 procfs_xfer_auxv function.
12800
12801 * procfs.c (procfs_make_note_section): If we can read
12802 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
12803 * linux-proc.c (linux_make_note_section): Likewise.
12804
12805 * auxv.h: New file.
12806 * auxv.c: New file.
12807 * Makefile.in (auxv_h): New variable.
12808 (COMMON_OBS): Add auxv.o here.
12809 (auxv.o): New target.
12810
12811 * corelow.c (core_xfer_partial): New function.
12812 (init_core_ops): Use it for core_ops.to_xfer_partial.
12813
12814 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
12815 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
12816 macro if that is defined.
12817
12818 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
12819
12820 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
12821 and check the specified thread for each breakpoint.
12822 * breakpoint.h (bpstat_stop_status): Update prototype.
12823 * infrun.c (handle_inferior_event): Update calls to
12824 bpstat_stop_status.
12825
12826 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
12827
12828 * Makefile.in (cli-cmds.o): Add $(readline_h).
12829
12830 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
12831
12832 * cli/cli-cmds.c: Include readline.h.
12833 (complete_command): Pass the start of the last word to
12834 complete_line.
12835
12836 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
12837
12838 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
12839 argument, and change first argument to a CORE_ADDR.
12840 * breakpoint.h (bpstat_stop_status): Update prototype.
12841 * infrun.c (adjust_pc_after_break): Add a new comment.
12842 (handle_inferior_event): Update calls to bpstat_stop_status.
12843
12844 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
12845
12846 * breakpoint.h: Update copyright years.
12847
12848 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
12849
12850 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
12851 (bpstat_stop_status): Don't decrement PC.
12852 * breakpoint.h (software_breakpoint_inserted_here_p): Add
12853 prototype.
12854 * infrun.c (adjust_pc_after_break): New function.
12855 (handle_inferior_event): Call it, early. Remove later references
12856 to DECR_PC_AFTER_BREAK.
12857 (normal_stop): Add commentary.
12858
12859 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
12860
12861 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
12862 2004-01-27 double-free fix.
12863
12864 2004-01-31 Mark Kettenis <kettenis@gnu.org>
12865
12866 * sparc-tdep.c (sparc_fetch_wcookie): New function.
12867 (sparc32_frame_prev_register): Handle StackGhost.
12868 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
12869
12870 2004-01-29 Roland McGrath <roland@redhat.com>
12871
12872 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
12873 * configure: Regenerated.
12874
12875 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
12876 * Makefile.in (procfs.o): Add dep.
12877
12878 2004-01-28 Andrew Cagney <cagney@redhat.com>
12879
12880 * tui/tui-stack.h: Update copyright.
12881 (struct frame_info): Add opaque declaration.
12882 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
12883 (tui_show_locator_content): Rename tuiShowLocatorContent.
12884 (tui_show_frame_info): Rename tuiShowFrameInfo.
12885 * tui/tui-stack.c: Update copyright. Update references.
12886 * tui/tui-winsource.c: Update references.
12887 * tui/tui-win.c: Update references.
12888 * tui/tui-layout.c: Update references.
12889 * tui/tui-hooks.c: Update copyright, update references.
12890 * tui/tui.c: Update copyright, update references.
12891 * tui/tui-disasm.c: Update references.
12892
12893 2004-01-28 David Carlton <carlton@kealia.com>
12894
12895 * dwarf2read.c (add_partial_structure): Use demangled name if
12896 namespace equals "".
12897
12898 2004-01-27 Jim Blandy <jimb@redhat.com>
12899
12900 Clean up misapplied patch:
12901 * dwarf2read.c (determine_prefix): Change one of the two forward
12902 declarations for 'determine_prefix_aux' to a declaration for this.
12903 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
12904 argument to 'die_specification'.
12905
12906 * dwarf2read.c (read_func_scope): Re-indent comment.
12907
12908 2004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
12909
12910 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
12911 b->exp to NULL after freeing so that error during re-parsing or
12912 evaluation of expressions associated with breakpoint don't
12913 eventually lead to re-freeing of storage.
12914 Committed by Andrew Cagney.
12915
12916 2004-01-27 Andrew Cagney <cagney@redhat.com>
12917
12918 * source.c (ambiguous_line_spec): Delete undefined declaration.
12919 * m32r-rom.c (m32r_set_board_address): Delete unused function.
12920 (m32r_set_server_address, m32r_set_download_path): Ditto.
12921 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
12922
12923 2004-01-27 Daniel Jacobowitz <drow@mvista.com>
12924
12925 * dwarf2read.c: Update calls to changed and renamed functions, and
12926 references to moved variables.
12927
12928 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
12929 language, language_defn, list_in_scope, and ftypes members.
12930 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
12931 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
12932 (baseaddr): Remove globals.
12933
12934 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
12935 (set_cu_language, die_is_declaration, die_specification)
12936 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
12937 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
12938 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
12939 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
12940
12941 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
12942 cu.list_in_scope. Don't initialize cu_header_offset.
12943 (add_partial_symbol): Add local baseaddr.
12944 (psymtab_to_symtab_1): Add local baseaddr. Use
12945 objfile->section_offsets for consistency. Don't initialize
12946 cu_header_offset; do initialize cu.header.offset and
12947 cu.list_in_scope.
12948 (read_file_scope, read_func_scope, read_lexical_block_scope)
12949 (dwarf_decode_lines, new_symbol): Add local baseaddr.
12950
12951 2004-01-27 Michael Chastain <mec.gnu@mindspring.com>
12952
12953 * PROBLEMS: Add gdb/1516.
12954
12955 2003-12-29 Robert Millan <robertmh@gnu.org>
12956
12957 Patch committed by Andrw Cagney.
12958 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
12959 * configure.tgt: Match knetbsd*-gnu.
12960
12961 2004-01-26 Andrew Cagney <cagney@redhat.com>
12962
12963 * breakpoint.c (catch_command_1): Delete #ifdef code.
12964 (catch_fork_command_1): Delete #ifdef wrapper.
12965 (catch_exec_command_1): Ditto.
12966 (catch_load_command_1): Ditto.
12967 (catch_unload_command_1): Ditto.
12968
12969 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
12970 (catch_breakpoint): Delete #if0ed function.
12971 (disable_catch_breakpoint): Ditto.
12972 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
12973 (disable_catch, enable_catch, delete_catch): Ditto.
12974
12975 2004-01-26 Andrew Cagney <cagney@redhat.com>
12976
12977 * remote.c (echo_check, quit_flag): Delete variables.
12978 (cisco_kernel_mode): Delete variable.
12979 (minitelnet_return, tty_input, escape_count): Delete variables.
12980 (remote_cisco_mode): Delete variable.
12981 (remote_cisco_open, remote_cisco_close): Delete function.
12982 (remote_cisco_mourn, remote_cisco_wait): Delete function.
12983 (init_remote_cisco_ops): Delete function.
12984 (_initialize_remote): Do not install "remote cisco" code.
12985 (read_frame): Delete cisco specific code.
12986 (remote_info_process): Delete function.
12987 (remote_wait): Delete cisco specific code.
12988 (remote_cisco_section_offsets): Delete function.
12989 (remote_cisco_objfile_relocate): Delete function.
12990 (remote_async_wait): Delete cisco specific code.
12991 (minitelnet, readtty, readsocket): Delete function.
12992
12993 2004-01-26 Andrew Cagney <cagney@redhat.com>
12994
12995 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
12996 comments mentioning extract_returned_value_address.
12997 * infcmd.c (print_return_value): Update. Add comments on
12998 extract_returned_value_address.
12999 * stack.c (return_command): Add comments on
13000 extract_returned_value_address.
13001 * values.c: Update comment.
13002 * m32r-tdep.c: Update comment.
13003 * sparc-tdep.c: Update comment.
13004 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
13005 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
13006 * sh64-tdep.c (sh64_gdbarch_init): Update.
13007 * sh-tdep.c (sh_gdbarch_init): Update.
13008 * s390-tdep.c (s390_gdbarch_init): Update.
13009 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
13010 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
13011 * m68k-tdep.c (m68k_gdbarch_init): Update.
13012 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
13013 * m32r-tdep.c (m32r_gdbarch_init): Update.
13014 * ia64-tdep.c (ia64_gdbarch_init): Update.
13015 * h8300-tdep.c (h8300_gdbarch_init): Update.
13016 * frv-tdep.c (frv_gdbarch_init): Update.
13017 * arm-tdep.c (arm_gdbarch_init): Update.
13018 * alpha-tdep.c (alpha_gdbarch_init): Update.
13019
13020 2004-01-26 Andrew Cagney <cagney@redhat.com>
13021
13022 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
13023 SYMBOL_LOCATION_FUNCS
13024 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
13025 "struct symbol_ops".
13026 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
13027 type to "struct symbol_ops".
13028 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
13029 (struct symbol): Replace ".aux_value.loc.funcs" and
13030 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
13031 (SYMBOL_OBJFILE): Delete macro.
13032 (SYMBOL_LOCATION_FUNCS): Delete macro.
13033 (SYMBOL_LOCATION_BATON): Update.
13034 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
13035 intead of SYMBOL_LOCATION_FUNCS.
13036 * ax-gdb.c (gen_var_ref): Ditto.
13037 * printcmd.c (address_info): Ditto.
13038 * findvar.c (read_var_value): Ditto.
13039 (symbol_read_needs_frame): Ditto.
13040
13041 2004-01-26 Andrew Cagney <cagney@redhat.com>
13042
13043 * dwarf2read.c (read_func_scope): Document frame-base hack.
13044
13045 2004-01-25 Mark Kettenis <kettenis@gnu.org>
13046
13047 * infcmd.c (print_return_value): Plug memory leak; delete
13048 ui_stream object. Rename argument `structure_return' to
13049 `struct_return'.
13050
13051 2004-01-25 Mark Kettenis <kettenis@gnu.org>
13052
13053 * infcmd.c (print_return_value): Wrap long lines.
13054 (finish_command_continuation, finish_command): Remove unused
13055 variable `funcaddr'. Fix some coding-standards problems.
13056
13057 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
13058 SECT_SIZE is large enough, not whether it's exactly the right size.
13059 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
13060 TDEP->fpregset to zero.
13061
13062 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
13063 floating-point registers for traditional NetBSD core files.
13064 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
13065 TDEP->sizeof_fpregset here.
13066
13067 2004-01-25 Mark Kettenis <kettenis@gnu.org>
13068
13069 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
13070 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
13071 function with code split out from
13072 sparc32nbsd_sigcontext_frame_cache.
13073 (sparc32nbsd_sigcontext_frame_cache): Use
13074 sparc32nbsd_sigcontext_saved_regs.
13075 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
13076 OpenBSD.
13077 * sparcobsd-tdep.c: New file.
13078 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
13079 (sparcobsd-tdep.o): New dependency.
13080 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
13081 * config/sparc/obsd.mt: New file.
13082
13083 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
13084 TDEP->fpregset to be initialized to enable core file register
13085 sets.
13086
13087 2004-01-24 Mark Kettenis <kettenis@gnu.org>
13088
13089 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
13090 Add opaque declarations.
13091 (sparc64nbsd_sigcontext_saved_regs): New prototype.
13092 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
13093 function with code split out from
13094 sparc64nbsd_sigcontext_frame_cache.
13095 (sparc64nbsd_sigcontext_frame_cache): Use
13096 sparc64nbsd_sigcontext_saved_regs.
13097 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
13098 OpenBSD.
13099 * sparc64obsd-tdep.c: New file.
13100 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
13101 (sparc64obsd-tdep.o): New dependency.
13102 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
13103 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
13104 * config/sparc/obsd64.mt: New file.
13105
13106 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
13107 read the instruction at PC.
13108
13109 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
13110 value of GDB_OSABI_DEFAULT.
13111 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
13112 instead of GDB_OSABI_NETBSD_AOUT.
13113
13114 2004-01-24 Nick Roberts <nick@nick.uklinux.net>
13115
13116 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
13117 copyright.
13118
13119 2004-01-23 Andrew Cagney <cagney@redhat.com>
13120
13121 * printcmd.c (display_command): Replace tui_set_display call with
13122 tui_set_layout_for_display_command.
13123 * tui/tui.h (enum tui_win_type): Define.
13124 (tui_set_layout): Delete declaration.
13125 (tui_set_layout_for_display_command): Rename set_tui_layout.
13126 * tui/tui-data.h (enum tui_layout_type): Define.
13127 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
13128 "tui.h".
13129 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
13130 (tui_default_win_height): Rename tuiDefaultWinHeight.
13131 (tui_default_win_viewport_height): Rename
13132 tuiDefaultWinViewportHeight.
13133 (tui_set_layout): RenametuiSetLayout.
13134 * tui/tui-layout.c: Update references.
13135 * tui/tui.c: Update references.
13136 * tui/tui-disasm.c: Update references.
13137
13138 2004-01-23 David Carlton <carlton@kealia.com>
13139
13140 Partial workaround for PR c++/1511:
13141 * cp-namespace.c: Include frame.h.
13142 (cp_lookup_transparent_type): New
13143 (cp_lookup_transparent_type_loop): New.
13144 * cp-support.h: Declare cp_lookup_transparent_type.
13145 * symtab.c (basic_lookup_transparent_type): Renamed from
13146 lookup_transparent_type.
13147 (lookup_transparent_type): Replace old body by a call to
13148 current_language->la_lookup_transparent_type.
13149 * symtab.h: Update copyright. Declare
13150 basic_lookup_transparent_type.
13151 * language.h: Update copyright.
13152 (struct language_defn): Add la_lookup_transparent_type.
13153 * language.c: Update copyright.
13154 (unknown_language_defn): Add basic_lookup_transparent_type.
13155 (auto_language_defn): Add basic_lookup_transparent_type.
13156 (local_language_defn): Add basic_lookup_transparent_type.
13157 * ada-lang.c: Update copyright.
13158 (ada_language_defn): Add basic_lookup_transparent_type.
13159 * c-lang.c: Update copyright.
13160 (c_language_defn): Add basic_lookup_transparent_type.
13161 (cplus_language_defn): Add basic_lookup_transparent_type.
13162 (asm_language_defn): Add basic_lookup_transparent_type.
13163 (minimal_language_defn): Add basic_lookup_transparent_type.
13164 * f-lang.c: Update copyright.
13165 (f_language_defn): Add basic_lookup_transparent_type.
13166 * jv-lang.c: Update copyright.
13167 (java_language_defn): Add basic_lookup_transparent_type.
13168 * m2-lang.c: Update copyright.
13169 (m2_language_defn): Add basic_lookup_transparent_type.
13170 * objc-lang.c: Update copyright.
13171 (objc_language_defn): Add basic_lookup_transparent_type.
13172 * p-lang.c: Update copyright.
13173 (p_language_defn): Add basic_lookup_transparent_type.
13174 * scm-lang.c: Update copyright.
13175 (scm_language_defn): Add basic_lookup_transparent_type.
13176 * Makefile.in (cp-namespace.o): Depend on frame.h.
13177
13178 2004-01-23 David Carlton <carlton@kealia.com>
13179
13180 Patch for PR c++/1520:
13181 * dwarf2read.c (read_func_scope): Set processing_current_prefix
13182 properly if we have a specification die.
13183 (determine_prefix_aux): Rename from determine_prefix.
13184 (determine_prefix): Like the old determine_prefix, but never
13185 returns NULL.
13186
13187 2004-01-23 Theodore A. Roth <troth@openavr.org>
13188
13189 * avr-tdep.c: Update copyright.
13190 (avr_iaddr_p): Delete unused function.
13191 (avr_saddr_p): Delete unused function.
13192
13193 2004-01-23 David Carlton <carlton@kealia.com>
13194
13195 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
13196 Fix for PR symtab/1534.
13197
13198 2004-01-23 Mark Kettenis <kettenis@gnu.org>
13199
13200 * NEWS (New native configurations): Mention OpenBSD/sparc and
13201 OpenBSD/sparc64.
13202 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
13203 * configure.host: Likewise.
13204 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
13205 handler for OpenBSD.
13206 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
13207
13208 2004-01-22 Mark Kettenis <kettenis@gnu.org>
13209
13210 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
13211 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
13212
13213 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
13214 * cli/cli-cmds.c (shell_escape): Likewise.
13215
13216 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
13217 OpenBSD .note.openbsd.ident sections.
13218
13219 2004-01-22 David Carlton <carlton@kealia.com>
13220
13221 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
13222 get_scope_pc_bounds.
13223 (read_file_scope): Ditto.
13224 (get_scope_pc_bounds): New function, produced by extracting code
13225 from the above two functions, consolidating it, and adding support
13226 for DW_TAG_namespace.
13227
13228 2004-01-22 Mark Kettenis <kettenis@gnu.org>
13229
13230 * osabi.c (MAX_NOTESZ): New define.
13231 (check_note): New function.
13232 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
13233 check_note.
13234
13235 2004-01-21 Roland McGrath <roland@redhat.com>
13236
13237 * MAINTAINERS (write after approval): Add myself.
13238
13239 2004-01-21 Eli Zaretskii <eliz@gnu.org>
13240
13241 * utils.c (init_page_info): Move declarations of `rows' and
13242 `cols' before the __GO32__-specific code. Move the closing brace
13243 outside the #ifdef __GO32__..#endif block.
13244 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
13245
13246 2004-01-21 Paul Brook <paul@codesourcery.com>
13247
13248 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
13249 BPSTAT_WHAT_CHECK_SHLIBS.
13250
13251 2004-01-21 Paul Brook <paul@codesourcery.com>
13252
13253 * MAINTAINERS: Add myself to write-after-approval.
13254
13255 2004-01-20 Andrew Cagney <cagney@redhat.com>
13256
13257 * ax-gdb.c (print_axs_value): Delete unused function.
13258 * jv-lang.c (java_lookup_type): Delete unused function.
13259 * cli/cli-dump.c (dump_filetype): Delete unused function.
13260 * remote-mips.c (remote_mips_insert_hw_breakpoint)
13261 (remote_mips_remove_hw_breakpoint): Delete unused functions.
13262 (mips_getstring): Delete unused function.
13263 (pmon_insert_breakpoint): Delete #if0ed function.
13264 (PMON_MAX_BP): Delete #if0ed MACRO.
13265 (mips_pmon_bp_info): Delete #if0ed variable.
13266 (pmon_remove_breakpoint): Delete #if0ed function.
13267 * monitor.c (monitor_write_even_block): Delete unused function.
13268 (monitor_write_memory_block): Delete #if0ed code.
13269 * dink32-rom.c (dink32_load): Delete unused function.
13270 (_initialize_dink32_rom): Delete #if0ed code.
13271 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
13272
13273 * tui/tui-command.c: Update references.
13274 * tui/tui-io.c: Update references.
13275 * tui/tui-command.h: Update copyright.
13276 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
13277
13278 * source.c (ambiguous_line_spec): Delete never-defined function.
13279 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
13280 * gdbtypes.c (add_name, add_mangled_type): Ditto.
13281 * cli/cli-cmds.c (validate_comname): Ditto.
13282
13283 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
13284 "tui-data.h".
13285 (tui_set_disassem_content): Rename tuiSetDisassemContent.
13286 (tui_show_disassem): Rename tuiShowDisassem.
13287 (tui_show_disassem_and_update_source): Rename
13288 tuiVerticalDisassemScroll.
13289 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
13290 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
13291 * tui/tui.h: Update copyright.
13292 (enum tui_status): Define.
13293 * tui/tui-data.h (enum tui_scroll_direction): Define.
13294 * tui/tui-disasm.c: Update copyright. Update references.
13295 * tui/tui-winsource.c: Update copyright. Update references.
13296 * tui/tui-win.c: Update references.
13297 * tui/tui-layout.c: Update references.
13298
13299 2004-01-20 Andrew Cagney <cagney@redhat.com>
13300
13301 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
13302 sym2 to start of block.
13303
13304 2004-01-19 Michael Chastain <mec.gnu@mindspring.com>
13305
13306 * MAINTAINERS: Delete mmalloc.
13307 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
13308 * NEWS: Mention removal of --with-malloc.
13309 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
13310 * config.in: Regenerate.
13311 * configure: Regenerate.
13312 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
13313 USE_MMALLOC, MMCHECK_FORCE.
13314 * gdbinit.in: Remove mmalloc.
13315 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
13316 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
13317 * config/i386/go32.mh: Likewise.
13318 * config/i386/interix.mh: Likewise.
13319 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
13320
13321 2004-01-19 Jeff Johnston <jjohnstn@redhat.com>
13322
13323 * linespec.c (decode_variable, symtab_from_filename): Call
13324 error_silent with error message instead of throwing an exception
13325 directly.
13326 * defs.h (error_silent, error_output_message): Add prototypes.
13327 (catch_exceptions_with_msg): Ditto.
13328 * utils.c (error_silent, error_output_message): New functions.
13329 * top.c (catch_exceptions_with_msg): New function.
13330
13331 2004-01-20 Nick Roberts <nick@nick.uklinux.net>
13332
13333 * mi/mi-cmds.h (enum print_values): Add definition.
13334
13335 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
13336 type and value for simple data types and just the name and type
13337 for complex ones, if required.
13338
13339 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
13340 children, if required.
13341
13342 2004-01-19 Kevin Buettner <kevinb@redhat.com>
13343
13344 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
13345 unused declarations.
13346
13347 2004-01-19 Andrew Cagney <cagney@redhat.com>
13348
13349 * top.h (mapped_symbol_files): Delete declaration.
13350 * main.c (captured_main): Delete option "m" and "mapped".
13351 * objfiles.c (mapped_symbol_files): Delete variable.
13352 * symfile.c (symbol_file_command): Delete mmap code.
13353 (symbol_file_add_with_addrs_or_offsets): Ditto.
13354 (add_symbol_file_command, reread_separate_symbols): Ditto.
13355 * objfiles.h (OBJF_MAPPED): Delete.
13356 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
13357 (free_objfile) [USE_MMALLOC]: Ditto.
13358 (open_existing_mapped_file): Delete function.
13359 (open_mapped_file): Delete function.
13360 (map_to_file): Delete function.
13361
13362 2004-01-19 Kevin Buettner <kevinb@redhat.com>
13363
13364 * infrun.c (step_into_function): Account for possible breakpoint
13365 adjustment when computing ``stop_func_start''.
13366
13367 2004-01-19 Kevin Buettner <kevinb@redhat.com>
13368
13369 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
13370 the region size against the size of a pointer, not the size of
13371 a register as given by DEPRECATED_REGISTER_SIZE.
13372
13373 2004-01-19 Andrew Cagney <cagney@redhat.com>
13374
13375 * tui/tui-regs.h: Include "tui-data.h".
13376 (tuiFirstRegElementNoInLine): Delete declaration.
13377 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
13378 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
13379 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
13380 (tui_calculate_regs_column_count): Rename
13381 tuiCalculateRegsColumnCount.
13382 (tui_check_register_values): Rename tuiCheckRegisterValues.
13383 (tui_show_registers): Rename tuiShowRegisters.
13384 (tui_display_registers_from_line): Rename
13385 tuiDisplayRegistersFromLine.
13386 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
13387 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
13388 (tui_first_reg_element_no_inline): Rename
13389 tuiFirstRegElementNoInLine.
13390 * tui/tui-data.h: Update copyright.
13391 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
13392 * tui/tui-windata.c: Update copyright, update references.
13393 * tui/tui-regs.c: Update copyright, update references.
13394 * tui/tui-win.c: Update copyright, update references.
13395 * tui/tui-layout.c: Update copyright, update references.
13396
13397 2004-01-18 Andrew Cagney <cagney@redhat.com>
13398
13399 * tui/tui-io.c: Update copyright.
13400 (key_is_end_sequence, key_is_backspace): New functions.
13401 (key_is_command_char, key_is_start_sequence): New function.
13402 (tui_getc): Update references.
13403 * tui/tui-io.h: Update copyright.
13404 (m_tuiStartNewLine): Delete macro.
13405 (m_isBackspace, m_isDeleteChar): Delete macros.
13406 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
13407 (m_isNextPage, m_isPrevPage): Delete macros.
13408 (m_isLeftArrow, m_isRightArrow): Delete macros.
13409 (m_isXdbStyleCommandChar): Delete macro.
13410 (key_is_start_sequence): Declare, replace m_isStartSequence.
13411 (key_is_end_sequence): Declare, replace m_isEndSequence.
13412 (key_is_backspace): Declare ,replace m_isBackspace.
13413 (key_is_command_char): Declare, replace m_isCommandChar.
13414 * tui/tui-command.c: Update copyright.
13415 (tuiDispatchCtrlChar): Update references.
13416
13417 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
13418 tuiSourceWin.h.
13419
13420 * tui/tui-command.c: Rename tui/tuiCommand.c.
13421 * tui/tui-command.h: Rename tui/tuiCommand.h.
13422 * tui/tui-data.c: Rename tui/tuiData.c.
13423 * tui/tui-data.h: Rename tui/tuiData.h.
13424 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
13425 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
13426 * tui/tui-io.c: Rename tui/tuiIO.c.
13427 * tui/tui-io.h: Rename tui/tuiIO.h.
13428 * tui/tui-layout.c: Rename tui/tuiLayout.c.
13429 * tui/tui-layout.h: Rename tui/tuiLayout.h.
13430 * tui/tui-regs.c: Rename tui/tuiRegs.c.
13431 * tui/tui-regs.h: Rename tui/tuiRegs.h.
13432 * tui/tui-source.c: Rename tui/tuiSource.c.
13433 * tui/tui-source.h: Rename tui/tuiSource.h.
13434 * tui/tui-stack.c: Rename tui/tuiStack.c.
13435 * tui/tui-stack.h: Rename tui/tuiStack.h.
13436 * tui/tui-win.c: Rename tui/tuiWin.c.
13437 * tui/tui-win.h: Rename tui/tuiWin.h.
13438 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
13439 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
13440 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
13441 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
13442 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
13443 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
13444 * tui/tui-file.c: Update includes.
13445 * tui/tui-hooks.c: Update includes.
13446 * tui/tui-interp.c: Update includes.
13447 * tui/tui.c: Update includes.
13448 * Makefile.in: Update all tui/ dependencies.
13449 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
13450
13451 * Makefile.in: Update copyright. Update dependencies.
13452
13453 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
13454 problem.
13455
13456 2004-01-18 Andrew Cagney <cagney@redhat.com>
13457
13458 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
13459 instead of register_gdbarch_init.
13460
13461 * remote-sds.c (tohex): Delete unused function. Update copyright.
13462 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
13463 * v850-tdep.c (v850_register_virtual_size): Ditto.
13464 * target.c (normal_target_post_startup_inferior): Ditto.
13465 * source.c (ambiguous_line_spec): Ditto.
13466 * remote.c (adapt_remote_get_threadinfo): Ditto.
13467 * mi/mi-out.c (out_field_fmt): Ditto.
13468 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
13469 (output_control_change_notification): Ditto.
13470 * m68k-tdep.c (m68k_register_byte): Ditto.
13471 (m68k_remote_breakpoint_from_pc): Ditto.
13472 * ui-out.c (init_ui_out_state): Delete unused declaration.
13473 * stabsread.c (search_value): Ditto.
13474 * mi/mi-cmd-env.c (env_cli_command): Ditto.
13475 * maint.c (print_section_table): Ditto.
13476 * infrun.c (set_follow_fork_mode_command): Ditto.
13477
13478 2004-01-18 Mark Kettenis <kettenis@gnu.org>
13479
13480 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
13481 DW_CFA_def_cfa_exporession. Add support for
13482 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
13483 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
13484
13485 2004-01-18 Andrew Cagney <cagney@redhat.com>
13486
13487 * ocd.c: Update copyright.
13488 (bdm_read_register_command): Delete unused function.
13489 (_initialize_remote_ocd): Delete commented out reference.
13490 (get_quoted_char, reset_packet): Delete #if0ed function.
13491 (output_packet, put_quoted_char): Delete #if0ed function.
13492 (stu_put_packet, stu_get_packet): Delete #if0ed function.
13493 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
13494 (BDM_BREAKPOINT): Delete #if0ed macro.
13495 (remote_timeout): Delete #if0ed variable.
13496
13497 2004-01-18 Mark Kettenis <kettenis@gnu.org>
13498
13499 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
13500 (core-sol2.o): Remove dependency.
13501 * core-sol2.c: Remove file.
13502
13503 2004-01-17 Andrew Cagney <cagney@redhat.com>
13504
13505 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
13506 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
13507 enums.
13508
13509 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13510
13511 * remote.c: Update copyright years.
13512
13513 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13514
13515 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
13516
13517 2004-01-17 Andrew Cagney <cagney@redhat.com>
13518
13519 * mdebugread.c: Update copyright.
13520 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
13521 (parse_type, parse_procedure): Ditto.
13522 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
13523
13524 * cris-tdep.c (cris_store_struct_return): Put back accidently
13525 deleted function.
13526
13527 * gdbarch.sh: Update copyright year.
13528 * gdbarch.h, gdbarch.c: Re-generate.
13529
13530 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13531
13532 Suggested by George Anzinger.
13533 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
13534 correct stack offset. Include unknown opcode numbers in the error
13535 message.
13536
13537 2004-01-17 Andrew Cagney <cagney@redhat.com>
13538
13539 * x86-64-tdep.c (x86_64_init_abi): No need to clear
13540 extract_struct_value_address, i386 does not set it.
13541 * sparc64-tdep.c (sparc64_init_abi): Do not set
13542 extract_struct_value_address, never called.
13543 (sparc64_extract_struct_value_address): Delete function.
13544 * m68hc11-tdep.c: Update copyright.
13545 (m68hc11_gdbarch_init): Delete redundant assignment of
13546 extract_struct_value_address.
13547 * i386-tdep.c: Update copyright.
13548 (i386_gdbarch_init): Do not set extract_struct_value_address,
13549 never called.
13550 (i386_extract_struct_value_address): Delete function.
13551 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
13552 extract_struct_value_address, never called.
13553 (sparc32_extract_struct_value_address): #if 0 function. Add
13554 comments explaining its future.
13555
13556 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13557
13558 * arm-tdep.c (arm_write_pc): New function.
13559 (arm_gdbarch_init): Call set_gdbarch_write_pc.
13560
13561 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13562
13563 * breakpoint.c (must_shift_inst_regs): Delete.
13564 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
13565 and SHIFT_INST_REGS.
13566 * infcmd.c (step_1, step_1_continuation): Delete references to
13567 SHIFT_INST_REGS.
13568 * infrun.c (keep_going): Likewise.
13569 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
13570 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
13571
13572 2004-01-17 Andrew Cagney <cagney@redhat.com>
13573
13574 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13575 * gdbarch.h, gdbarch.c: Re-generate.
13576 * infcmd.c (print_return_value): Delete reference to
13577 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
13578
13579 * cris-tdep.c (cris_gdbarch_init): Do not set
13580 deprecated_extract_struct_value_address.
13581
13582 * xstormy16-tdep.c: Update copyright.
13583 (xstormy16_extract_struct_value_address): Update to current
13584 extract struct value address interface.
13585 (xstormy16_gdbarch_init): Set extract_struct_value_address.
13586 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
13587 current extract struct value address interface.
13588 (sh64_gdbarch_init): Set extract_struct_value_address.
13589
13590 * cris-tdep.c: Update copyright.
13591 (cris_extract_struct_value_address): Delete function.
13592 (struct_return_address): Delete variable.
13593 (cris_store_struct_return): Do not set struct_return_address.
13594
13595 * mcore-tdep.c: Update copyright.
13596 (mcore_extract_struct_value_address): Delete function. Update
13597 comments.
13598 (mcore_gdbarch_init): Update.
13599 * mn10300-tdep.c: Update copyright.
13600 (mn10300_extract_struct_value_address): Delete function.
13601 (mn10300_gdbarch_init): Update.
13602 * v850-tdep.c: Update copyright.
13603 (v850_extract_struct_value_address): Delete.
13604 (v850_gdbarch_init): Update.
13605 * ns32k-tdep.c: Update copyright.
13606 (ns32k_extract_struct_value_address): Delete.
13607 (ns32k_gdbarch_init): Update.
13608 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
13609 (hppa_gdbarch_init): Update.
13610 * vax-tdep.c: Update copyright.
13611 (vax_extract_struct_value_address): Delete.
13612 (vax_gdbarch_init): Update.
13613
13614 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
13615 * gdbarch.h, gdbarch.c: Re-generate.
13616 * procfs.c (procfs_fetch_registers): Delete reference to
13617 DEPRECATED_NPC_REGNUM.
13618 (procfs_store_registers): Ditto.
13619 * regcache.c (generic_target_write_pc): Simplify.
13620 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
13621
13622 * core-sol2.c (fetch_core_registers): Replace
13623 DEPRECATED_NPC_REGNUM with equivalent tdep value.
13624
13625 * hppa-tdep.c: Update copyright year.
13626 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
13627 NPC_REGNUM.
13628 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
13629
13630 * mips-tdep.c (mips_write_pc): New function.
13631 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
13632 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
13633 (mips_find_saved_regs, mips_software_single_step: Ditto.
13634 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
13635 mips_init_extra_frame_info, mips_pop_frame): Ditto.
13636
13637 2004-01-17 Andrew Cagney <cagney@redhat.com>
13638
13639 * mips-tdep.c: Re-indent. Group functions by ABI.
13640
13641 2004-01-17 Andrew Cagney <cagney@redhat.com>
13642
13643 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
13644 * gdbarch.c: Re-generate.
13645 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
13646 DECR_PC_AFTER_BREAK to zero.
13647 * vax-tdep.c (vax_gdbarch_init): Ditto.
13648 * v850-tdep.c (v850_gdbarch_init): Ditto.
13649 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
13650 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
13651 * sh-tdep.c (sh_gdbarch_init): Ditto.
13652 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
13653 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
13654 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
13655 * mips-tdep.c (mips_gdbarch_init): Ditto.
13656 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
13657 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13658 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
13659 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
13660 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
13661 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
13662 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
13663 * frv-tdep.c (frv_gdbarch_init): Ditto.
13664 * cris-tdep.c (cris_gdbarch_init): Ditto.
13665 * avr-tdep.c (avr_gdbarch_init): Ditto.
13666 * arm-tdep.c (arm_gdbarch_init): Ditto.
13667 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
13668
13669 2004-01-17 J. Brobecker <brobecker@gnat.com>
13670
13671 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
13672 Delete, no longer used.
13673 (read_subrange_type): New function, mostly extracted from
13674 read_array_type().
13675 (read_array_type): Replace extracted code by call to
13676 read_subrange_type().
13677 (dwarf2_get_attr_constant_value): New function.
13678 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
13679 (add_partial_symbol): Likewise.
13680 (process_die): Likewise.
13681 (new_symbol): Likewise.
13682 (read_type_die): Likewise.
13683
13684 2004-01-16 Andrew Cagney <cagney@redhat.com>
13685
13686 * symfile.c: Update copyright year.
13687 (compare_symbols): Delete unused function.
13688 * stabsread.c: Update copyright year.
13689 (lrs_general_complaint): Delete unused function.
13690 (ref_search_value): Ditto.
13691 (get_substring): Delete declaration.
13692 * sh64-tdep.c: Update copyright year.
13693 (sh64_get_gdb_regnum): Delete unused function.
13694 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
13695 Delete unused function.
13696
13697 2004-01-17 Mark Kettenis <kettenis@gnu.org>
13698
13699 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
13700 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
13701
13702 2004-01-16 Andrew Cagney <cagney@redhat.com>
13703
13704 Changes from Peter Schauer.
13705 * rs6000-tdep.c: Update copyright year.
13706 (rs6000_push_dummy_call): Update the stack pointer before
13707 accessing the corresponding stack region.
13708 * rs6000-nat.c: Update copyright year.
13709 (set_host_arch): Set "info.abfd" to "exec_bfd".
13710
13711 2004-01-15 Mark Kettenis <kettenis@gnu.org>
13712
13713 * blockframe.c: Update copyright year.
13714 (inside_entry_func): Don't treat a zero PC specially.
13715
13716 2004-01-14 Elena Zannoni <ezannoni@redhat.com>
13717
13718 * gcore.c (gcore_copy_callback): Use paddr_d to print size
13719 variable.
13720 (gcore_create_callback): Ditto. Skip any memory segment that has
13721 no permissions set.
13722
13723 2004-01-14 David Carlton <carlton@kealia.com>
13724
13725 Change symbols for C++ nested types to contain the fully qualified
13726 name, if possible. (At least in the DWARF-2 case.) Partial fix
13727 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
13728 c++/895.
13729 * c-exp.y (qualified_type): Handle types nested within classes.
13730 * cp-namespace.c: Update comments.
13731 (cp_set_block_scope): Delete #if 0.
13732 (cp_lookup_nested_type): Handle types nested within classes.
13733 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
13734 when appropriate.
13735 (add_partial_symbol): Add the name of the enclosing namespace to
13736 types.
13737 (pdi_needs_namespace): New.
13738 (add_partial_namespace): Tweak comment.
13739 (add_partial_structure): New.
13740 (psymtab_to_symtab_1): Initialize processing_current_prefix
13741 here...
13742 (process_die): instead of here.
13743 (read_structure_scope): Try to figure out the name of the class or
13744 namespace that the structure might be defined within.
13745 (read_enumeration): Generate fully-qualified names, if possible.
13746 (read_namespace): Don't set name to NULL.
13747 (die_specification): New.
13748 (new_symbol): Generate fully-qualified names for types.
13749 (read_type_die): Determine appropriate prefix.
13750 (determine_prefix): New.
13751 (typename_concat): New.
13752 (class_name): New.
13753 * valops.c (value_aggregate_elt): Pass NOSIDE to
13754 value_struct_elt_for_reference.
13755 (value_struct_elt_for_reference): Make static, add NOSIDE
13756 parameter, call value_maybe_namespace_elt as a last resort.
13757 (value_namespace_elt): Break out code into
13758 value_maybe_namespace_elt.
13759 (value_maybe_namespace_elt): New.
13760
13761 2004-01-12 Andrew Cagney <cagney@redhat.com>
13762
13763 * mips-tdep.c (mips_convert_register_p): Handle both raw and
13764 cooked floating-point registers.
13765 (mips_gdbarch_init): Set convert_register_p, register_to_value,
13766 and value_to_register.
13767
13768 2004-01-13 Andrew Cagney <cagney@redhat.com>
13769
13770 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
13771 * gdbarch.c: Re-generate.
13772 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
13773 FUNCTION_START_OFFSET.
13774 * v850-tdep.c (v850_gdbarch_init): Ditto.
13775 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
13776 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
13777 * sh-tdep.c (sh_gdbarch_init): Ditto.
13778 * s390-tdep.c (s390_gdbarch_init): Ditto.
13779 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
13780 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
13781 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
13782 * mips-tdep.c (mips_gdbarch_init): Ditto.
13783 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
13784 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
13785 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13786 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
13787 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
13788 * i386-tdep.c (i386_gdbarch_init): Ditto.
13789 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
13790 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
13791 * frv-tdep.c (frv_gdbarch_init): Ditto.
13792 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
13793 * cris-tdep.c (cris_gdbarch_init): Ditto.
13794 * avr-tdep.c (avr_gdbarch_init): Ditto.
13795 * arm-tdep.c (arm_gdbarch_init): Ditto.
13796 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
13797
13798 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
13799
13800 * infrun.c (follow_fork_mode_ask): Remove.
13801 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
13802 (follow_fork): Simplify and remove internal error for
13803 follow_fork_mode_ask.
13804 (_initialize_infrun): Update "set follow-fork-mode" help text.
13805
13806 2004-01-13 Andrew Cagney <cagney@redhat.com>
13807
13808 * configure.in: Update copyright year.
13809 (build_warnings): Add -Wunused-label.
13810 * configure: Re-generate.
13811
13812 2004-01-12 Andrew Cagney <cagney@redhat.com>
13813
13814 * exec.h (exec_ops): Make "extern".
13815
13816 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
13817 the function is void.
13818 (mips_pseudo_register_write): Ditto.
13819
13820 2004-01-12 Andrew Cagney <cagney@redhat.com>
13821
13822 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
13823 call. Never defined.
13824 * sparc-tdep.h (struct frame_info): Add opaque declaration.
13825 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
13826 (struct sparc_gregset, struct regcache): Ditto.
13827 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
13828
13829 2004-01-12 Andrew Cagney <cagney@redhat.com>
13830
13831 * mi/ChangeLog: Delete file. Renamed to ...
13832 * mi/ChangeLog-1999-2003: New file.
13833 * tui/ChangeLog: Delete file. Renamed to ...
13834 * tui/ChangeLog-1998-2003: New file.
13835
13836 2004-01-11 Mark Kettenis <kettenis@gnu.org>
13837
13838 * sparc64nbsd-tdep.c: Include "regset.h".
13839 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
13840 Remove variables.
13841 (fetch_core_registers): Remove function.
13842 (sparc64nbsd_core_fns): Remove variable.
13843 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
13844 functions.
13845 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
13846 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
13847 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
13848
13849 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
13850 sparc_extract_struct_value_address.
13851 (sparc32_gdbarch_init): Set extract_struct_value_address.
13852 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
13853 function.
13854 (sparc64_init_abi): Set extract_struct_value_address. Don't set
13855 return_value_on_stack.
13856
13857 * NEWS: Mention that %cs and %ss have been added to the AMD64
13858 configurations
13859
13860 * frame.c: Update copyright year.
13861 (get_prev_frame): Improve comment.
13862
13863 * sparc64fbsd-tdep.c: Include "regset.h".
13864 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
13865 Remove variables.
13866 (fetch_core_registers): Remove function.
13867 (sparc64fbsd_core_fns): Remove variable.
13868 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
13869 functions.
13870 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
13871 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
13872 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
13873
13874 * sparcnbsd-tdep.c: Include "regset.h".
13875 (fetch_core_registers): Remove function.
13876 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
13877 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
13878 functions.
13879 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
13880 TDEP->fpregset.
13881 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
13882
13883 * sparc-tdep.h (struct regset): Provide opaque declaration.
13884 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
13885 fpregset and sizeof_fpregset members.
13886 * sparc-tdep.c (struct regset): Provide opaque declaration.
13887 (sparc_regset_from_core_section): New function.
13888 (sparc32_gdbarch_init): Initialize TDEP->gregset,
13889 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
13890 Set regset_from_core_section when appropriate.
13891
13892 2004-01-10 Mark Kettenis <kettenis@gnu.org>
13893
13894 * x86-64-tdep.c (amd64_non_pod_p): New function.
13895 (amd64_classify_aggregate): Return class memory for non-POD
13896 C++ structure types.
13897
13898 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
13899 argument. Use it to reserve a register if necessary.
13900 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
13901 amd64_push_arguments.
13902
13903 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
13904
13905 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
13906 register numbers in comments.
13907 * x86-64-tdep.h: Update copyright year.
13908 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
13909 Adjust for addition of %cs and %ss.
13910 * amd64fbsd-nat.c: Update copyright year.
13911 (reg_offset): Add register offsets for %cs and %ss.
13912 * amd64fbsd-tdep.c: Update copyright year.
13913 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
13914 (amd64fbsd_sc_reg_offset): Likewise.
13915 * x86-64-linux-nat.c: Update copyright year.
13916 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
13917 and %ss.
13918 * amd64nbsd-nat.c: Update copyright year.
13919 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
13920 * amd64nbsd-tdep.c: Update copyright year.
13921 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
13922 * x86-64-linux-tdep.c: Update copyright year.
13923 (user_to_gdb_regmap): Add mapping for %cs and %ss.
13924 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
13925 * regformats/reg-x86-64.dat: Add %cs and %ss.
13926
13927 * blockframe.c (inside_entry_func): Reformat. Introduce new local
13928 variables to prevent long lines. Update comments to reflect
13929 reality.
13930
13931 2004-01-09 David Carlton <carlton@kealia.com>
13932
13933 Checked in by Elena Zannoni <ezannoni@redhat.com>.
13934 * dwarf2read.c (read_namespace): Pull out name-generating code
13935 into namespace_name. Rename previous_namespace to previous_prefix
13936 and processing_current_namespace to processing_current_prefix..
13937 (namespace_name): New function.
13938 (add_partial_symbol): Substitute uses of pdi->name with
13939 actual_name.
13940 * cp-support.h: Rename processing_current_namespace to
13941 processing_current_prefix.
13942 Update copyright year.
13943 * cp-namespace.c: Rename processing_current_namespace to
13944 processing_current_prefix.
13945 Update copyright year.
13946
13947 2004-01-09 Andrew Cagney <cagney@redhat.com>
13948
13949 * jv-valprint.c, ser-unix.c: Add missing copyright years.
13950
13951 2004-01-09 Mark Kettenis <kettenis@gnu.org>
13952
13953 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
13954 complaining.
13955 (process_one_symbol): Deal with N_PATCH stabs.
13956
13957 2004-01-09 Elena Zannoni <ezannoni@redhat.com>
13958
13959 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
13960 ifdeffed code.
13961 Update copyright year.
13962
13963 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
13964
13965 * config/pa/tm-hppa.h: Update extern declarations for
13966 hppa32_hpux_frame_saved_pc_in_sigtramp,
13967 hppa32_hpux_frame_base_before_sigtramp, and
13968 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
13969
13970 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
13971
13972 * config/pa/tm-hppah.h: Update copyright years.
13973
13974 2004-01-08 Andrew Cagney <cagney@redhat.com>
13975
13976 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
13977 (mips_o32_reg_struct_has_addr): Delete function.
13978 (mips_gdbarch_init): Update.
13979 (mips_extract_struct_value_address): Delete function.
13980
13981 2004-01-08 David Mosberger <davidm@hpl.hp.com>
13982
13983 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
13984 reality.
13985
13986 2004-01-07 Andrew Cagney <cagney@redhat.com>
13987
13988 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
13989 architecture's elf flags (when available).
13990
13991 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
13992 FPU to the start, check the MIPS FPU when looking for an old
13993 architecture.
13994 (set_mipsfpu_single_command): Update the architecture.
13995 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
13996
13997 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
13998 (mips_mask_address_p): Add "tdep" parameter.
13999 (show_mask_address, mips_addr_bits_remove): Update.
14000 (mips_dump_tdep): Update.
14001 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
14002 (MIPS_STACK_ARGSIZE): Delete macro.
14003 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
14004 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
14005 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
14006 (mips_dump_tdep): Update.
14007 (MIPS_SAVED_REGSIZE): Delete macro.
14008 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
14009 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
14010 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
14011 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
14012 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
14013 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
14014 (mips_pop_frame, return_value_location): Update.
14015 (mips_n32n64_return_value, mips_dump_tdep): Update.
14016
14017 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
14018 MIPS ABI.
14019
14020 * mips-tdep.c: Update copyright.
14021 (mips_gdbarch_init): Merge two code blocks handling the register
14022 name and number layout.
14023
14024 2004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
14025
14026 * tracepoint.c (validate_actionline): Fix segv at EOF
14027
14028 2004-01-07 Michael Chastain <mec.gnu@mindspring.com>
14029
14030 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
14031 properly for static fields.
14032
14033 2004-01-06 Jeff Johnston <jjohnstn@redhat.com>
14034 Jason Molenda <jmolenda@apple.com>
14035
14036 * disasm.c: Update copyright to include 2004.
14037 (do_mixed_source_and_assembly): For uiout asm list
14038 and tuple cleanups, initialize to null_cleanup instead of
14039 NULL and do so prior to loop. Only reset when we close off
14040 the tuple/list. Move check for whether to close off the
14041 asm tuple/list to after dump_insns call where it will be run
14042 on each loop iteration.
14043
14044 2004-01-05 Andrew Cagney <cagney@redhat.com>
14045
14046 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
14047 should be a switch case and not a label.
14048 * mips-tdep.c (mips32_next_pc): Delete unused labels
14049 "greater_equal_branch" and "less_zero_branch".
14050 * jv-valprint.c (java_print_value_fields): Delete unused label
14051 "flush_it".
14052
14053 * target.c (unpush_target): Only close a target that is in the
14054 target stack.
14055
14056 2004-01-05 Mark Kettenis <kettenis@gnu.org>
14057
14058 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
14059 address from [sp + 64] instead of %o2.
14060
14061 * frame.c (get_prev_frame): Don't try to unwind the PC. This
14062 fixes PR backtrace/1476.
14063
14064 2004-01-05 Andrew Cagney <cagney@redhat.com>
14065
14066 * libunwind-frame.h (struct frame_id): Add opaque declaration,
14067 move to start of file.
14068 * i386-tdep.h (struct regcache): Add opaque declaration.
14069 * config/ia64/nm-linux.h (struct target_ops): Add opaque
14070 declaration.
14071 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
14072 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
14073 * win32-nat.c (fake_create_process): Use ISO C style definition.
14074 * stabsread.c (define_symbol): Delete #ifndef
14075 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
14076 stabs_argument_has_addr call, macro never defined.
14077
14078 2004-01-04 Michael Chastain <mec.gnu@mindspring.com>
14079
14080 * op50-rom.c: Delete.
14081 * w89k-rom.c: Delete.
14082 * Makefile.in: Remove references.
14083
14084 2004-01-04 Mark Kettenis <kettenis@gnu.org>
14085
14086 * x86-64-tdep.c: Update copyright year.
14087 (struct amd64_register_info): Rename from x86_64_register_info.
14088 (amd64_register_info): Rename from x86_64_register_info.
14089 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
14090 (amd64_register_name): Rename from x86_64_register_name.
14091 (amd64_register_type): Rename from x86_64_register_type.
14092 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
14093 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
14094 (amd64_dwarf_reg_to_regnum): Rename from
14095 x86_64_dwarf_reg_to_regnum.
14096 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
14097 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
14098 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
14099 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
14100 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
14101 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
14102 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
14103 (amd64_frame_cache): Rename from x86_64_frame_cache.
14104 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
14105 (amd64_frame_prev_register): Rename from
14106 x86_64_frame_prev_register.
14107 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
14108 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
14109 (amd64_sigtramp_frame_cache): Rename from
14110 x86_64_sigtramp_frame_cache.
14111 (amd64_sigtramp_frame_prev_register): Rename from
14112 x86_64_sigtramp_frame_prev_register.
14113 (amd64_sigtramp_frame_unwind): Rename from
14114 x86_64_sigtramp_frame_unwind.
14115 (amd64_sigtramp_frame_sniffer): Rename from
14116 x86_64_sigtramp_frame_sniffer.
14117 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
14118 (amd64_frame_base): Rename from x86_64_frame_base.
14119 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
14120 (amd64_frame_align): Rename from x86_64_frame_align.
14121 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
14122 (amd64_regset_from_core_section): Rename from
14123 x86_64_regset_from_core_section.
14124 (x86_64_init_abi): Update comments.
14125
14126 2004-01-04 Nick Roberts <nick@nick.uklinux.net>
14127
14128 * MAINTAINERS (write after approval): Add myself.
14129
14130 2004-01-04 Mark Kettenis <kettenis@gnu.org>
14131
14132 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
14133 `float' arguments.
14134
14135 2004-01-04 Mark Kettenis <kettenis@gnu.org>
14136
14137 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
14138 such that it mentions a specific version of GCC that exhibits this
14139 bug.
14140
14141 2004-01-03 Mark Kettenis <kettenis@gnu.org>
14142
14143 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
14144 structure that has a single `float' member, store it in %f1 in
14145 addition to %f0.
14146
14147 * sparc-sol2-nat.c: Add missing '\'.
14148
14149 * sparc-tdep.c (sparc32_return_value): New function.
14150 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
14151 Remove functions.
14152 (sparc32_gdbarch_init): Set return_value, don't set
14153 extract_return_value, store_return_value, use_struct_convention
14154 and return_value_on_stack.
14155
14156 * sparc-sol2-nat.c: Add missing ')'.
14157
14158 2004-01-03 J. Brobecker <brobecker@gnat.com>
14159
14160 * infrun.c (handle_step_into_function): New function.
14161 (handle_inferior_event): Extract out some code into the new
14162 function above.
14163
14164 2004-01-03 J. Brobecker <brobecker@gnat.com>
14165
14166 * infrun.c (handle_inferior_event): Move the declaration of
14167 real_stop_pc inside the if blocks where it is used.
14168
14169 2004-01-03 Mark Kettenis <kettenis@gnu.org>
14170
14171 * sparc64-tdep.c (sparc64_16_byte_align_p)
14172 (sparc64_store_floating_fields, sparc64_store_floating_fields):
14173 Use check_typedef to get subtypes of structures and unions.
14174 (sparc64_store_return_value): Fix calculation of the appropriate
14175 offset into VALBUF when storing a structure or union.
14176 (sparc64_return_value): New function.
14177 (sparc64_use_struct_convention): Remove function.
14178 (sparc64_init_abi): Set return_value, don't set
14179 extract_return_value, store_return_value and
14180 use_struct_convention.
14181
14182 2004-01-03 Eli Zaretskii <eliz@elta.co.il>
14183
14184 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
14185 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
14186 gdb/config/alpha/xm-alphaosf.h,
14187 gdb/config/powerpc/tm-ppcle-eabi.h,
14188 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
14189 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
14190 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
14191 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
14192 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
14193 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
14194 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
14195 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
14196 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
14197 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
14198 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
14199 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
14200 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
14201 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
14202 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
14203 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
14204 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
14205 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
14206 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
14207 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
14208 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
14209 Remove lines for .cvsignore files.
14210
14211 2004-01-03 J. Brobecker <brobecker@gnat.com>
14212
14213 * infrun.c: Back out the previous change.
14214
14215 2004-01-03 Mark Kettenis <kettenis@gnu.org>
14216
14217 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
14218 sparc-*-sunos4* to the list of REMOVED configurations.
14219
14220 * configure.tgt: Add back sparc-*-vxworks*.
14221 * remote-vxsparc.c: Remove all includes except for "defs.h",
14222 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
14223 Include "sparc-tdep.h".
14224 (SPARC_R_G1): New define.
14225 (vxsparc_gregset): New variable.
14226 (ext_format_sparc): Remove extern declaration.
14227 (vx_read_register): Rewrite to use sparc32_supply_gregset and
14228 sparc32_supply_fpregset.
14229 (vx_write_register): Rewrite to use sparc32_collect_gregset,
14230 sparc_collect_rwindow and sparc32_collect_fpregset.
14231 * config/sparc/tm-vxworks.h: New file, based on recently removed
14232 tm-vxsparc.h.
14233 * config/sparc/vxworks.mt: New file, based on recently removed
14234 vxworks.mt.
14235
14236 2004-01-03 J. Brobecker <brobecker@gnat.com>
14237
14238 * infrun.c (handle_step_into_function): New function.
14239 (handle_inferior_event): Extract out some code into the new
14240 function above.
14241
14242 2004-01-02 Mark Kettenis <kettenis@gnu.org>
14243
14244 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
14245 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
14246 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
14247 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
14248 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
14249 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
14250 (sparc_nat_h): New variable.
14251 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
14252 (tm-sun4os4.h): Remove dependency.
14253 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
14254 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
14255 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
14256 sparc-tdep.o): Update dependencies.
14257 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
14258 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
14259 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
14260 dependencies.
14261 * configure.host: Remove existing sparc-*-lynxos*,
14262 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
14263 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
14264 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
14265 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
14266 triplets.
14267 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
14268 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
14269 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
14270 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
14271 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
14272 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
14273 sparc64-*-solaris2* and sparc64-*-* triplets.
14274 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
14275 "symtab.h" and "objfiles.h".
14276 (BIAS): Remove define.
14277 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
14278 (X_DISP19): Remove macros.
14279 (sparc_fetch_instruction): Remove function.
14280 (struct gdbarch_tdep): Remove definition.
14281 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
14282 (sparc_breakpoint_from_pc): Remove function.
14283 (struct sparc64_frame_cache): Remove definition.
14284 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
14285 sparc64_unwind_pc): Remove functions.
14286 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
14287 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
14288 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
14289 (sparc64_frame_cache): Change return type to `struct
14290 sparc_frame_cache *'. Simply call sparc_frame_cache.
14291 (sparc64_frame_this_id, sparc64_frame_prev_register,
14292 sparc64_frame_base_address): Use `struct sparc_frame_cache'
14293 instead of `struct sparc64_frame_cache.
14294 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
14295 sparc_analyze_control_transfer, sparc_software_single_step,
14296 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
14297 _initialize_sparc64_tdep): Remove functions.
14298 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
14299 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
14300 macros.
14301 (sparc64_supply_gregset, sparc64_collect_gregset,
14302 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
14303 (sparc64_init_abi): New function.
14304 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
14305 inclusion guard. Include "sparc-tdep.h".
14306 (BIAS): Define.
14307 (r_tstate_offset, r_fprs_offset): New defines.
14308 (enum sparc_regnum): Remove defenition.
14309 (enum sparc64_regnum): Reformat.
14310 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
14311 (sparc64_init_abi, sparc64_supply_gregset,
14312 sparc64_collect_gregset, sparc64_supply_fpregset,
14313 sparc64_collect_fpregset): New prototypes.
14314 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
14315 Add extern declarations.
14316 (sparc64_sol2_init_abi): New prototype.
14317 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
14318 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
14319 prototypes.
14320 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
14321 "sparnbsd-nat.h".
14322 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
14323 functions.
14324 (_initialize_sparc64fbsd_nat): Remove initialization of
14325 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
14326 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
14327 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
14328 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
14329 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
14330 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
14331 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
14332 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
14333 (sparc64fbsd_r_y_offset): Remove variables.
14334 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
14335 Make static and const.
14336 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
14337 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
14338 functions.
14339 (sparc64fbsd_gregset): New variable.
14340 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
14341 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
14342 and sparc64_supply_fpregset.
14343 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
14344 (sparc64fbsd_sigtramp_frame_this_id)
14345 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
14346 (sparc64fbsd_sigtramp_frame_unwind): New variable.
14347 (sparc64fbsd_sigtramp_frame_sniffer): New function.
14348 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
14349 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
14350 * sparcnbsd-tdep.c: Update copyright year. Include
14351 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
14352 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
14353 "value.h" and "sparcnbsd-tdep.h".
14354 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
14355 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
14356 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
14357 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
14358 defines.
14359 (sparcnbsd_gregset): New variable.
14360 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
14361 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
14362 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
14363 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
14364 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
14365 variables.
14366 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
14367 (sparc32nbsd_sigcontext_frame_this_id)
14368 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
14369 (sparc32nbsd_sigcontext_frame_unwind): New variable.
14370 (sparc32nbsd_sigtramp_frame_sniffer): New function.
14371 (sparcnbsd_get_longjmp_target_32,
14372 sparcnbsd_get_longjmp_target_64): Remove functions.
14373 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
14374 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
14375 sparcnbsd_init_elf): Remove.
14376 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
14377 (sparcnbsd_elf_init_abi): New functions.
14378 (_initialize_sparcnbsd_tdep): New prototype.
14379 (_initialize_sparnbsd_tdep): Update.
14380 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
14381 corelow.o. Add sparc64-nat.o and sparc-nat.o.
14382 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
14383 * config/sparc/linux.mh: Update comment.
14384 (XM_FILE, HOST_IPC): Remove variables.
14385 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
14386 sparc-linux-nat.o.
14387 * config/sparc/linux.mt: Update comment.
14388 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
14389 * config/sparc/nbsd.mt: Reformat.
14390 * config/sparc/nbsd64.mh: Update comment.
14391 (NATDEPFILES): Add sparc-nat.o.
14392 * config/sparc/nbsd64.mt: Update comment.
14393 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
14394 (TM_FILE): Set to tm-nbsd.h.
14395 * config/sparc/nbsdelf.mh: Update comment.
14396 (NATDEPFILES): Add sparc-nat.o.
14397 (XM_FILE): Delete.
14398 * config/sparc/nbsdaout.mh: Update comment.
14399 (NATDEPFILES): Add sparc-nat.o
14400 (XM_FILE): Delete.
14401 * config/sparc/nm-linux.h: Update copyright year. Don't include
14402 "config/nm-svr4.h" and "solib.h". Add protection against multiple
14403 inclusion.
14404 (KERNEL_U_SIZE): Remove define.
14405 (kernel_u_size): Remove prototype.
14406 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
14407 * config/sparc/nm-nbsd.h: Update copyright. Don't include
14408 "regcache.h".
14409 (CHILD_PREPARE_TO_STORE): Remove define.
14410 * config/sparc/nm-nbsdaout.h: Tweak some comments.
14411 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
14412 sparcnbsd-nat.c: Rewrite files.
14413 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
14414 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
14415 sparcnbsd-tdep.h: Remove files.
14416 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
14417 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
14418 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
14419 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
14420 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
14421 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
14422 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
14423 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
14424 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
14425 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
14426 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
14427 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
14428 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
14429 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
14430 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
14431 * config/sparc/linux64.mh, config/sparc/linux64.mt,
14432 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
14433 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
14434 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
14435
14436 2004-01-02 Andrew Cagney <cagney@redhat.com>
14437
14438 From 2003-12-18 Kazuhiro Inaoka:
14439 * configure.host: Add m32r-linux target.
14440
14441 2004-01-02 Michael Chastain <mec.gnu@mindspring.com>
14442
14443 * top.c (print_gdb_version): Update year to 2004.
14444
14445 2004-01-02 Mark Mitchell <mark@codesourcery.com>
14446
14447 * MAINTAINERS: Add myself to the write-after-approval category.
14448
14449 2004-01-02 Daniel Jacobowitz <drow@mvista.com>
14450
14451 From Bernardo Innocenti <bernie@develer.com>:
14452 * configure.tgt: Add uClinux target.
14453
14454 2004-01-02 Andrew Cagney <cagney@redhat.com>
14455
14456 * utils.c (do_my_cleanups): Make static, add forward declaration.
14457 * defs.h (do_my_cleanups): Delete declaration.
14458
14459 2004-01-02 Eli Zaretskii <eliz@elta.co.il>
14460
14461 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
14462 bfd/ChangeLog-0203.
14463
14464 2004-01-02 Mark Kettenis <kettenis@gnu.org>
14465
14466 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
14467 in <machine/reg.h>.
14468 * configure, config.in: Regenerate.
14469
14470 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
14471 tui/ChangeLog-1998-2003.
14472 \f
14473 Local Variables:
14474 mode: change-log
14475 left-margin: 8
14476 fill-column: 74
14477 version-control: never
14478 End:
This page took 0.664678 seconds and 5 git commands to generate.