* doublest.c (FLOATFORMAT_LARGEST_BYTES): New define.
[binutils-gdb.git] / gdb / ChangeLog
1 2004-12-05 Richard Earnshaw <rearnsha@arm.com>
2
3 * doublest.c (FLOATFORMAT_LARGEST_BYTES): New define.
4 (get_field, put_field): Assert that the format is one we can handle.
5 Simplify logic accordingly.
6 (floatformat_normalize_byteorder): New function.
7 (convert_floatformat_to_doublest): Use floatformat_normalize_byteorder
8 to normalize and select modified byte order. Pass modified byte order
9 to get_field.
10 (floatformat_is_negative, floatformat_is_nan, floatformat_mantissa):
11 Likewise.
12 (convert_doublest_to_floatformat): Select an appropriate intermediate
13 byte order if necessary. Always convert to the final format before
14 returning.
15
16 2004-12-04 Daniel Jacobowitz <dan@debian.org>
17
18 PR tui/1703
19 * linux-nat.c (linux_tracefork_child): Use _exit instead of exit.
20 Suggested by Joshua Neuheisel.
21
22 2004-12-03 Randolph Chung <tausq@debian.org>
23
24 * gdbarch.sh (instruction_nullified): Delete.
25 * gdbarch.c: Regenerate.
26 * gdbarch.h: Regenerate.
27 * hppa-tdep.c (hppa_target_read_pc): Adjust pc if instruction is
28 nullified.
29 (hppa_unwind_pc): Likewise.
30 (hppa_instruction_nullified): Delete.
31 (hppa_gdbarch_init): Don't set instruction_nullified method.
32 * infrun.c (infwait_states): Remove infwait_nullified_state.
33 (handle_inferior_event): Remove handling of infwait_nullified_state.
34 Remove handling of nullified instructions.
35
36 2004-12-03 Mark Kettenis <kettenis@gnu.org>
37
38 * inf-ttrace.c: Include <sys/mman.h>.
39 (struct inf_ttrace_page): New.
40 (struct inf_ttrace_page_dict): New.
41 (inf_ttrace_num_threads_in_syscall)
42 (inf_ttrace_reenable_page_protections): New variables.
43 (inf_ttrace_enable_syscall_events)
44 (inf_ttrace_disable_syscall_events, inf_ttrace_get_page)
45 (inf_ttrace_add_page, inf_ttrace_insert_page)
46 (inf_ttrace_remove_page, inf_ttrace_mask_page_protections)
47 (inf_ttrace_enable_page_protections)
48 (inf_ttrace_disable_page_protections)
49 (inf_ttrace_insert_watchpoint, inf_ttrace_remove_watchpoint)
50 (inf_ttrace_can_use_hw_breakpoint)
51 (inf_ttrace_region_size_ok_for_hw_watchpoint)
52 (inf_ttrace_stopped_by_watchpoint): New functions.
53 (inf_ttrace_him): Remove unsused varaible `tts'.
54 (inf_ttrace_create_inferior): Add assertionts.
55 (inf_ttrace_mourn_inferior): Clear page dictionary.
56 (inf_ttrace_attach): Set initial event mask.
57 (inf_ttrace_detach): Reset number of threads in system call.
58 (inf_ttrace_wait): Deal with system call events.
59 (inf_ttrace_target): Initialize "hardware" watchpoint-related
60 parts of the target vector.
61 (_initialize_inf_ttrace): New prototype and function.
62
63 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Use ULONGEST as
64 type of `gp' variable.
65
66 2004-12-03 Richard Sandiford <rsandifo@redhat.com>
67
68 * README: Remove config.if from directory listing.
69
70 2004-12-01 Joel Brobecker <brobecker@gnat.com>
71
72 * alpha-tdep.c (alpha_register_name): Add comment.
73 (alpha_cannot_fetch_register): Exclude registers numbers which
74 are no longer used from the list of registers that can be fetched.
75 (alpha_cannot_store_register): Exclude registers numbers which
76 are no longer used from the list of registers that can be stored.
77 * alpha-nat.c (fetch_osf_core_registers): Add missing value in
78 core_reg_mapping array.
79
80 2004-12-01 Joel Brobecker <brobecker@gnat.com>
81
82 * alpha-tdep.c (alpha_heuristic_frame_prev_register): Fetch
83 the register value from the correct frame.
84
85 2004-11-30 Randolph Chung <tausq@debian.org>
86
87 * hppa-linux-tdep.c (insns_match_pattern_relaxed): New function.
88 (hppa_linux_in_dyncall): Check that we are inside the range of
89 $$dyncall, not necessarily at the first insn.
90 (hppa_linux_in_solib_call_trampoline): Identify a trampoline
91 even if the pc does not point to the first insn of the trampoline.
92
93 2004-11-30 Randolph Chung <tausq@debian.org>
94
95 * breakpoint.c (break_at_finish_command): Delete.
96 (break_at_finish_command_1): Delete.
97 (break_at_finish_at_depth_command): Delete.
98 (break_at_finish_at_depth_command_1): Delete.
99 (tbreak_at_finish_command): Delete.
100 * hppa-tdep.c (_initialize_hppa_tdep): Remove deprecated xbreak, tbreak
101 and bx commands.
102
103 2004-11-30 Andrew Cagney <cagney@gnu.org>
104
105 * config/nm-gnu.h: Delete file.
106 * config/i386/nm-i386gnu.h: Inline "config/nm-gnu.h".
107
108 * config/nm-sysv4.h: Delete file.
109 * config/i386/nm-i386v4.h: Inline "config/nm-sysv4.h".
110 * config/i386/nm-i386v42mp.h: Inline "config/nm-sysv4.h".
111 * config/i386/nm-i386sol2.h: Inline "config/nm-sysv4.h".
112 * config/ia64/nm-aix.h: Inline "config/nm-sysv4.h".
113 * config/mips/nm-irix5.h: Inline "config/nm-sysv4.h".
114
115 2004-11-29 Andrew Cagney <cagney@gnu.org>
116
117 * MAINTAINERS: Add Randolph Chung (pa), Jeff Johnston (ia64), Kei
118 Sakamoto (m32r), Joel Brobecker (mips), and Ulrich Weigand (s390)
119 as can-commit architecture developers.
120
121 2004-11-29 Mark Kettenis <kettenis@gnu.org>
122
123 * sparc-tdep.c (X_RS1, X_SIMM13): New macros.
124 (sparc32_skip_prologue): Skip instructions that store arguments in
125 registers into their corresponding stack slots.
126
127 * config/m68k/nbsdaout.mh (NAT_FILE): Set to solib.h instead of
128 tm-solib.h.
129 * config/m68k/obsd.mh (NAT_FILE): Likewise.
130
131 * sparc-tdep.h (sparc32nbsd_elf_init_abi): New prototype.
132 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Make global.
133 * sparcobsd-tdep.c (sparc32obsd_init_abi): Call
134 sparc32nbsd_elf_init_abi. Remove duplicate code.
135
136 * config/sparc/nbsdaout.mh (NAT_FILE): Set to solib.h.
137 * config/sparc/nbsdelf.mh (NAT_FILE): Remove variable.
138 * config/sparc/nm-nbsd.h: Remove file.
139 * config/sparc/nm-nbsdaout.h: Remove file.
140
141 * sparc-nat.c (inf_ptrace_xfer_partial): New variable.
142 (sparc_xfer_partial): New function.
143 (sparc_target): Save value of to_xfer_partial from ptrace vector.
144 Set to_xfer_partial.
145
146 * fork-child.c (fork_inferior): Fork instead of vfork if
147 PRE_TRACE_FUN is non-null.
148
149 2004-11-24 Fred Fish <fnf@specifixinc.com>
150
151 * rs6000-tdep.c (skip_prologue): Use line table info to skip over
152 compiler generated function calls made as part of a prologue.
153
154 2004-11-23 Mark Kettenis <kettenis@gnu.org>
155
156 * inf-ttrace.c: New file.
157 * inf-ttrace.h: New file.
158 * hppa-hpux-nat.c [HAVE_TTRACE]: Include <sys/ttrace>.
159 Include "inf-ttrace.h".
160 (ss_mpsfu_high): Define to ss_tlsp if necessary.
161 (hppa_hpux_fetch_register, hppa_hpux_store_register): Use
162 ptid_get_pid instead of PIDGET. Modify to handle both ttrace and
163 ptrace systems.
164 (_initialize_hppa_hpux_nat) [HAVE_TTRACE]: Call inf_ttrace_traget
165 instead of inf_ptrace_target.
166 * config/pa/hpux.mh (NATDEPFILES): Add inf-ttrace.o.
167 * Makefile.in (inf_ttrace_h): New variable.
168 (hppa-hpux-nat.o): Update dependency.
169 (inf-ttrace.o): New dependency.
170 (ALLDEPFILES): Add inf-ptrace.c and inf-ttrace.c.
171
172 2004-11-23 Randolph Chung <tausq@debian.org>
173
174 * arch-utils.c (generic_instruction_nullified): New.
175 * arch-utils.h (generic_instruction_nullified): New.
176 * gdbarch.sh (instruction_nullified): New method.
177 * gdbarch.c: Regenerate.
178 * gdbarch.h: Regenerate.
179 * infrun.c (INSTRUCTION_NULLIFIED): Delete.
180 (handle_inferior_event): Replace INSTRUCTION_NULLIFIED with calls to
181 new gdbarch method.
182 * config/pa/tm-hppa.h (INSTRUCTION_NULLIFIED): Delete definition.
183 * hppa-tdep.c (hppa_instruction_nullified): Remove prototype and make
184 static. Rewrite to work directly off the passed regcache.
185 (hppa_gdbarch_init): Set instruction_nullified method.
186
187 2004-11-23 Joel Brobecker <brobecker@gnat.com>
188
189 * sparc-tdep.c (sparc_is_unimp_insn): New function.
190 (sparc32_frame_cache): For functions where there is no debugging
191 information to help us determine whether it's a struct-return
192 function or not, fallback on checking whether the instruction
193 at the return address is an "unimp" instruction or not.
194
195 2004-11-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
196
197 * MAINTAINERS: Add myself to write after approval section.
198
199 * hppa-hpux-nat.c (child_suppress_run): Add variable to allow
200 hpux-thread.c to suppress children from running.
201 (hppa_hpux_child_can_run): New function.
202 (_initialize_hppa_hpux_nat): Use hppa_hpux_child_can_run.
203 * hpux-thread.c: Include string.h and hppa-tdep.h.
204 (FLAGS_REGNUM, SP_REGNUM, PC_REGNUM): Rename to HPPA_FLAGS_REGNUM,
205 HPPA_SP_REGNUM and HPPA_PCOQ_HEAD_REGNUM, respectively.
206 (hpux_thread_store_registers): Replace deprecated_registers with
207 calls to regcache_raw_read.
208 * config/pa/hpux11.mh, config/pa/hpux11w.mh: Delete HOST_IPC.
209
210 2004-11-21 Mark Kettenis <kettenis@gnu.org>
211
212 * sparc64fbsd-nat.c: Update copyright year.
213 (_initialize_sparc64fbsd_nat): Construct and add target vector.
214 * config/sparc/fbsd.mh (NATDEPFILES): Remove infptrace.o,
215 inftarg.o.
216
217 2004-11-21 Daniel Jacobowitz <dan@debian.org>
218
219 * sparc-tdep.c (sparc_software_single_step): Handle stepping to NULL.
220
221 2004-11-21 Daniel Jacobowitz <dan@debian.org>
222
223 * linux-nat.c (my_waitpid): New function.
224 (linux_test_for_tracefork): Make more robust and verbose. Take
225 an ORIGINAL_PID argument and test for PTRACE_SETOPTIONS first.
226 (linux_supports_tracefork, linux_supports_tracevforkdone): Take a PID
227 argument. Update calls to linux_test_for_tracefork.
228 (linux_enable_event_reporting, child_follow_fork)
229 (child_insert_fork_catchpoint, child_insert_vfork_catchpoint)
230 (child_insert_exec_catchpoint): Update calls to
231 linux_supports_tracefork and linux_supports_tracevforkdone.
232
233 2004-11-21 Daniel Jacobowitz <dan@debian.org>
234
235 * valarith.c (value_subscript): Copy VALUE_FRAME_ID.
236 (value_subscripted_rvalue): Likewise.
237 * valops.c (search_struct_field, value_slice): Likewise.
238
239 2004-11-21 Mark Kettenis <kettenis@gnu.org>
240
241 * inf-ptrace.c: Don't include "regcache.h" and "gdbcmd.h".
242 Reorder includes a bit. Fix comment.
243 * Makefile.in (inf-ptrace.o): Update dependencies.
244
245 2004-11-21 Andreas Schwab <schwab@suse.de>
246
247 * m68klinux-tdep.c: Include "glibc-tdep.h" and "solib-svr4.h".
248 (m68k_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
249 svr4_ilp32_fetch_link_map_offsets and gdbarch_skip_solib_resolver
250 to glibc_skip_solib_resolver.
251 * config/m68k/linux.mt (TDEPFILES): Add glibc-tdep.o. Remove
252 solib-legacy.o.
253 * Makefile.in (m68klinux-tdep.o): Update dependencies.
254
255 2004-11-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
256
257 * infttrace.h (ttrace_write_reg_64): Add prototype.
258 * hppah-nat.c (store_inferior_registers): Fix warning from ambiguous
259 expression.
260 (store_inferior_registers): Correct formatting. Replace uses of
261 deprecated_registers with calls to regcache_raw_read,
262 regcache_raw_write_part and regcache_raw_read_part.
263
264 2004-11-21 Mark Kettenis <kettenis@gnu.org>
265
266 * config/pa/hppahpux.mh: Remove file.
267 * config/pa/hpux1020.mh: Remove file.
268
269 2004-11-20 Andreas Schwab <schwab@suse.de>
270
271 * configure.host: Set host floatformat for m68k.
272
273 2004-11-20 Eli Zaretskii <eliz@gnu.org>
274
275 * config/djgpp/fnchange.lst: Resolve file-name clash between
276 hppa-hpux-tdep.c and the new hppa-hpux-nat.c.
277
278 2004-11-20 Mark Kettenis <kettenis@gnu.org>
279
280 * hppa-hpux-nat.c: New file.
281 * config/pa/hpux.mh (NATDEPFILES): New file.
282 * Makefile.in (ALLDEPFILES): Add hppa-hpux-nat.c.
283 (hppa-hpux-nat.o): New dependency.
284 * configure.host: Remove hppa*-*-hpux10.20.
285 (hppa*-*-hpux*, hppa*-*-hiux*): Set gdb_host to hpux.mh.
286
287 * inf-ptrace.c: Fix coding style.
288
289 * gdb_ptrace.h [PTRACE_TYPE_ARG5] (ptrace): New macro.
290 * infptrace.c (call_ptrace): Simply call ptrace with four
291 arguments.
292
293 * dbxread.c (process_one_symbol): Fix a few coding standard
294 issues. Improve code formatting.
295
296 * dbxread.c: Include "gdb_string.h".
297 (record_minimal_symbol, read_ofile_symtab): Replace
298 DEPRECATED_STREQ and DEPRECATED_STREQN with strcmp and strncmp.
299 * Makefile.in (dbxread.o): Update dependencies.
300
301 * dwarf2-frame.c (read_encoded_value): Correctly calculate number
302 of bytes read for aligned LEB128 encodings.
303
304 2004-11-19 Mark Kettenis <kettenis@gnu.org>
305
306 * bsd-kvm.c (bsd_kvm_pcb_cmd): Cast return value from
307 parse_and_eval_address to u_long before converting it to a pointer
308 type.
309 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Change type of
310 ps_strings from int to u_long.
311 * i386obsd-nat.c (_initialize_i386obsd_nat): Cast _ps.val to
312 u_long instead of CORE_ADDR.
313
314 2004-11-18 Mark Kettenis <kettenis@gnu.org>
315
316 * dbxread.c (process_one_symbol): Do not adjust address of first
317 N_SLINE stab for a function for code generated by non-GCC
318 compilers.
319
320 2004-11-18 Kevin Buettner <kevinb@redhat.com>
321
322 * solib-null.c: New file.
323
324 2004-11-17 Andrew Cagney <cagney@gnu.org>
325
326 * MAINTAINERS: Drop MIPS and remote.
327
328 2004-11-15 Andrew Cagney <cagney@gnu.org>
329
330 * findvar.c (value_of_register): Set the frame ID.
331 * value.c (value_primitive_field): Copy the frame ID.
332 * valops.c (value_assign): Simplify lval_register case, there's
333 always a frame.
334
335 2004-11-14 Daniel Jacobowitz <dan@debian.org>
336
337 * Makefile.in (mips-linux-tdep.o): Update dependencies.
338 * mips-linux-tdep.c: Include "regcache.h".
339 (fill_fpregset, mips64_fill_fpregset): Use regcache_raw_collect.
340
341 2004-11-14 Daniel Jacobowitz <dan@debian.org>
342
343 * Makefile.in (linux-thread-db.o): Fix typo in last change.
344
345 2004-11-14 Daniel Jacobowitz <dan@debian.org>
346
347 * linux-thread-db.c: New file, renamed from thread-db.c.
348 * thread-db.c: Remove.
349 * Makefile.in (linux-thread-db.o): Rename from thread-db.o rule.
350 * config/alpha/alpha-linux.mh (NATDEPFILES): Rename thread-db.o
351 to linux-thread-db.o.
352 * config/arm/linux.mh (NATDEPFILES): Likewise.
353 * config/i386/linux.mh (NATDEPFILES): Likewise.
354 * config/i386/linux64.mh (NATDEPFILES): Likewise.
355 * config/ia64/linux.mh (NATDEPFILES): Likewise.
356 * config/m32r/linux.mh (NATDEPFILES): Likewise.
357 * config/m68k/linux.mh (NATDEPFILES): Likewise.
358 * config/mips/linux.mh (NATDEPFILES): Likewise.
359 * config/pa/linux.mh (NATDEPFILES): Likewise.
360 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
361 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
362 * config/s390/s390.mh (NATDEPFILES): Likewise.
363 * config/sparc/linux.mh (NATDEPFILES): Likewise.
364 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
365
366 2004-11-13 Andrew Cagney <cagney@gnu.org>
367
368 * config/i386/i386lynx.mh: Delete file.
369 * config/i386/i386lynx.mt: Delete file.
370 * Makefile.in (ALLDEPFILES, i386ly-tdep.o): Remove i386ly-tdep.c.
371 * i386ly-tdep.c: Delete.
372
373 * config/tm-lynx.h: Delete, inline contents ...
374 * config/rs6000/tm-rs6000ly.h: ... here.
375
376 * config/tm-sysv4.h: Delete file, inlining contents.
377 * config/ia64/tm-aix.h (SKIP_TRAMPOLINE_CODE): Define.
378 * config/tm-linux.h (SKIP_TRAMPOLINE_CODE): Define.
379 * config/tm-nto.h (SKIP_TRAMPOLINE_CODE): Define.
380
381 * regcache.h (deprecated_register_valid): Delete.
382 (deprecated_registers): Delete.
383 * regcache.c (deprecated_register_valid): Delete.
384 (deprecated_registers): Delete.
385 (deprecated_read_register_byte, _initialize_regcache)
386 (deprecated_write_register_bytes, build_regcache): Update.
387 * config/powerpc/ppc-sim.mt (TDEPFILES): Remove ppc-bdm.o and
388 remote-sds.o.
389 * config/powerpc/ppc-eabi.mt (TDEPFILES): Ditto.
390 * config/mips/embed.mt (TDEPFILES): Remove remote-mips.o.
391
392 * NEWS: List h8300*-*-*, mcore-*-*, mn10300-*-*, ns32k-*-*, and
393 v850-*-* under removed.
394 * configure.host: Delete ns32k-*-netbsd*.
395 * configure.tgt: Delete h8300-*-*, mcore*-*-*, mn10300-*-*,
396 ns32k-*-netbsd*, and v850*-*-*.
397 * MAINTAINERS: Mark h8300, mcore, mn10300, ns32k, v850 as
398 "Deleted"
399 * config/h8300/tm-h8300.h, config/h8300/h8300.mt: Delete.
400 * h8300-tdep.c, config/mcore/mcore.mt, mcore-rom.c: Delete.
401 * mcore-tdep.c, config/mn10300/mn10300.mt: Delete.
402 * mn10300-tdep.c, config/ns32k/nbsdaout.mh: Delete.
403 * config/ns32k/nbsdaout.mt, config/ns32k/nm-nbsd.h: Delete.
404 * config/ns32k/nm-nbsdaout.h, config/ns32k/tm-ns32k.h: Delete.
405 * ns32knbsd-nat.c, ns32knbsd-tdep.c, ns32k-tdep.c: Delete.
406 * ns32k-tdep.h, config/v850/v850.mt, v850ice.c: Delete.
407 * v850-tdep.c: Delete.
408
409 2004-11-13 Joel Brobecker <brobecker@gnat.com>
410
411 * irix5-nat.c (fetch_core_registers): Replace use of
412 deprecated_registers by equivalent code.
413
414 2004-11-13 Joel Brobecker <brobecker@gnat.com>
415
416 * irix5-nat.c (fill_gregset): Replace use of deprecated_registers
417 with equivalent code.
418 (fill_fpregset): Likewise.
419
420 2004-11-13 Andrew Cagney <cagney@gnu.org>
421
422 * MAINTAINERS: Do not list "Deleted" architectures.
423
424 * configure.tgt: Delete i[34567]86-*-vxworks*, m68*-netx-*,
425 m68*-*-vxworks*, mips*-*-vxworks*, powerpc-*-vxworks*, and
426 sparc-*-vxworks*.
427 * NEWS: Mention that vxworks was deleted.
428 * config/m68k/tm-vx68.h, config/mips/tm-vxmips.h: Delete.
429 * config/powerpc/tm-vxworks.h, config/tm-vxworks.h: Delete.
430 * config/i386/vxworks.mt, config/m68k/vxworks68.mt: Delete.
431 * config/mips/vxmips.mt, config/powerpc/vxworks.mt: Delete.
432 * config/sparc/vxworks.mt, vx-share/dbgRpcLib.h: Delete.
433 * vx-share/ptrace.h, vx-share/regPacket.h: Delete.
434 * vx-share/vxTypes.h, vx-share/vxWorks.h: Delete.
435 * vx-share/wait.h, vx-share/xdr_ld.c: Delete.
436 * vx-share/xdr_ld.h, vx-share/xdr_ptrace.c: Delete.
437 * vx-share/xdr_ptrace.h, vx-share/xdr_rdb.c: Delete.
438 * vx-share/xdr_rdb.h, remote-vxsparc.c: Delete.
439 * remote-vxmips.c, remote-vx.c: Delete.
440 * remote-vx68.c: Delete.
441 * config/m68k/tm-os68k.h: Remove reference to VxWorks.
442 * config/m68k/os68k.mt, ada-lang.h: Ditto.
443 * Makefile.in (HFILES_NO_SRCDIR, ALLDEPFILES, remote-vx68.o)
444 (remote-vx.o, remote-vxmips.o, remote-vxsparc.o): Delete vx files.
445
446 2004-11-13 Eli Zaretskii <eliz@gnu.org>
447
448 * config/i386/xm-go32.h: Don't include fopen-bin.h.
449 Don't define CRLF_SOURCE_FILES and DIRNAME_SEPARATOR.
450
451 * source.c (OPEN_MODE, FDOPEN_MODE): Remove the definitions in the
452 branch that doesn't define CRLF_SOURCE_FILES; always use
453 binary-mode open.
454 (print_source_lines_base, forward_search_command)
455 (reverse_search_command): Enable the code that accepts DOS-style
456 CRLF line endings on all platforms (this removes the need for
457 CRLF_SOURCE_FILES).
458
459 * defs.h: Fix wording of the comment before FOPEN_RB.
460 (DIRNAME_SEPARATOR) [__MSDOS__]: Define to ';'.
461
462 * config/djgpp/fnchange.lst: Group renames for opcode directory
463 together.
464
465 * config/djgpp/djconfig.sh: Replace file names that don't exist
466 anymore with existing files, for checking the unpacked
467 distribution.
468
469 * config/djgpp/config.sed (am_cv_exeext, lt_cv_sys_max_cmd_len):
470 Export pre-cooked values in configure-* targets that begin with
471 "@test -f stage_last".
472
473 2004-11-12 Andrew Cagney <cagney@gnu.org>
474
475 * defs.h (enum lval_type): Delete lval_reg_frame_relative.
476 * value.h (struct value): Update comment.
477 * valops.c (value_assign): Fold lval_reg_fame_relative into
478 lval_register.
479 * findvar.c (value_from_register, locate_var_value): Ditto.
480
481 2004-11-12 Randolph Chung <tausq@debian.org>
482
483 * config/tm/tm-hppa.h (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
484 * parse.c (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
485 (write_exp_msymbol): Remove conditional check for symbols starting
486 with $. Update comments.
487
488 2004-11-12 Randolph Chung <tausq@debian.org>
489
490 * pa64solib.c (pa64_solib_thread_start_addr): Rename from
491 so_lib_thread_start_addr.
492 * pa64solib.h (so_list): Forward declare.
493 (pa64_solib_thread_start_addr): Prototype.
494 * somsolib.c (SHL_LOAD, SHL_UNLOAD): Define if not already defined.
495 (no_shared_libraries): Remove.
496 (som_solib_thread_start_addr): Rename from so_lib_thread_start_addr.
497 * somsolib.h (som_solib_thread_start_addr): Likewise; prototype.
498 * hpread.c (hpread_process_one_debug_symbol): Use either the som or
499 the elf solib handler to find the start address.
500
501 * config/pa/hppahpux.mh (NATDEPFILES): Move target-specific support
502 files to the target makefile.
503 * config/pa/hpux1020.mh (NATDEPFILES): Likewise.
504 * config/pa/hpux11.mh (NATDEPFILES): Likewise.
505 * config/pa/hpux11w.mh (NATDEPFILES): Likewise.
506
507 * config/pa/hppa64.mt (TDEPFILES): Put target-specific support
508 files for symbol reading and shared library handling here.
509 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
510 (PA_SOM_ONLY): Define so we can build a 32-bit SOM only target
511 without bringing in 64-bit support.
512
513 2004-11-12 Andrew Cagney <cagney@gnu.org>
514
515 * sparc-tdep.c: Replace VALUE_TYPE with value_type.
516 * v850-tdep.c, sparc64-tdep.c, sh-tdep.c: Ditto.
517 * sh64-tdep.c, s390-tdep.c, mcore-tdep.c: Ditto.
518 * h8300-tdep.c, arm-linux-tdep.c, amd64-tdep.c: Ditto.
519 * hppa-tdep.c, mips-tdep.c, m88k-tdep.c: Ditto.
520 * m68hc11-tdep.c, m32r-tdep.c, ia64-tdep.c: Ditto.
521 * frv-tdep.c, cris-tdep.c, avr-tdep.c, alpha-tdep.c: Ditto.
522
523 Merge VALUE_REGNO and VALUE_FRAME_REGNUM into VALUE_REGNUM.
524 * value.h (VALUE_REGNO, VALUE_FRAME_REGNUM): Delete.
525 (VALUE_REGNUM): Define.
526 (struct value): Delete location.regnum, rename "regno" to
527 "regnum".
528 * value.c, valops.c, valarith.c, findvar.c: Update.
529
530 * value.h (VALUE_TYPE, VALUE_NEXT, VALUE_OFFSET, VALUE_BITSIZE)
531 (VALUE_BITPOS): Delete.
532 (value_type, value_offset, value_bitsize, value_bitpos): Declare.
533 * value.c (value_type, value_offset, value_bitpos)
534 (value_bitsize): New functions. Update references.
535 * arm-tdep.c, gnu-v3-abi.c, hpacc-abi.c, gnu-v2-abi.c: Update.
536 * f-valprint.c, cp-valprint.c, c-valprint.c: Update.
537 * ada-valprint.c, typeprint.c, scm-valprint.c, scm-exp.c: Update.
538 * p-valprint.c, jv-valprint.c, jv-lang.c, varobj.c: Update.
539 * objc-lang.c, ada-lang.c, std-regs.c, stack.c: Update.
540 * infcall.c, linespec.c, printcmd.c, valarith.c: Update.
541 * valops.c, eval.c, findvar.c, breakpoint.c: Update.
542 * tracepoint.c, ax-gdb.c, mi/mi-main.c, cli/cli-dump.c:
543 * rs6000-tdep.c, ppc-sysv-tdep.c: Update.
544
545 2004-11-12 Andrew Cagney <cagney@gnu.org>
546
547 * cris-tdep.c (cris_register_offset): Delete, never called.
548 (cris_spec_reg_applicable): Delete cris_ver_sim.
549 * MAINTAINERS: List d10v as OBSOLETE.
550 * rdi-share/host.h (FOPEN_WB): #ifdef 0 out definitions of
551 FOPEN_WB et.al., defined by "fopen-bin.h".
552
553 2004-11-12 Randolph Chung <tausq@debian.org>
554
555 * hppa-tdep.c (hppa_skip_permanent_breakpoint): Move definition ...
556 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): ... to here.
557 * config/pa/tm-hppa.h (SKIP_PERMANENT_BREAKPOINT): Move definition ...
558 * config/pa/tm-hppah.h (SKIP_PERMANENT_BREAKPOINT): ... to here.
559
560 2004-11-12 Mark Kettenis <kettenis@jive.nl>
561
562 * tui/tui-io.c: Don't include "terminal.h".
563 * Makefile.in (tui-io.o): Update dependencies.
564
565 2004-11-12 Kei Sakamoto <sakamoto.kei@renesas.com>
566
567 * Makefile.in (m32r-linux-tdep.o): Update dependencies.
568 * m32r-linux-tdep.c (m32r_linux_init_abi): Call
569 set_gdbarch_regset_from_core_section for core file support.
570 (m32r_linux_supply_gregset, m32r_linux_regset_from_core_section):
571 New functions.
572
573 2004-11-11 Randolph Chung <tausq@debian.org>
574
575 * hppa-tdep.c (skip_prologue_hard_way): Make static, add
576 stop_after_branch parameter and use it to determine if we should look
577 at the delay slot of the first branch insn to find prologue insns.
578 (hppa_skip_prologue): Update comment and call to skip_prologue_hard_way.
579 (hppa_frame_cache): Likewise.
580
581 2004-11-11 Randolph Chung <tausq@debian.org>
582
583 * hppa-tdep.c (hppa_frame_cache): Properly handle the frame pointer
584 register so that it can be unwound from anywhere in the prologue.
585
586 2004-11-10 msnyder <msnyder@redhat.com>
587
588 * rs6000-tdep.c (skip_prologue): After saving lr_offset,
589 must invalidate lr_reg (so we don't try to save it again).
590 Ditto for cr_offset and cr_reg.
591
592 2004-11-05 Jon Beniston <jon@beniston.com>
593
594 Committed by Andrew Cagney.
595 * remote.c (putpkt_binary) Fix PR gdb/1806. Send an ACK
596 when an unexpected packet is received, as the target stubs
597 continually retransmit the same packet until ACKed.
598
599 2004-11-10 Randolph Chung <tausq@debian.org>
600
601 * frame.c (get_prev_frame): Use get_frame_type to retrieve the
602 frame's type.
603
604 2004-11-10 Randolph Chung <tausq@debian.org>
605
606 * blockframe.c (inside_entry_func): Move to .....
607 * frame.c (inside_entry_func): ... here, and make static.
608 (backtrace_past_entry): New flag.
609 (get_prev_frame): Stop backtrace at the entry function if enabled
610 by flag. Update comments.
611 (_initialize_frame): Add command to set backtrace_past_entry flag.
612 * defs.h (inside_entry_func): Remove prototype.
613
614 2004-11-10 Mark Kettenis <kettenis@gnu.org>
615
616 * dwarf2read.c: Fix formatting.
617
618 2004-11-10 Andrew Cagney <cagney@gnu.org>
619
620 * value.h (COERCE_REF, COERCE_ARRAY, COERCE_NUMBER, COERCE_ENUM)
621 (coerce_ref, coerce_array, coerce_number, coerce_enum): Replace
622 macros with function declarations.
623 * value.c (coerce_ref, coerce_array, coerce_number)
624 (coerce_enum): New functions.
625 (value_as_long, value_as_address): Update.
626 * ada-lang.c (ada_coerce_ref, ada_value_binop)
627 (ada_evaluate_subexp, ada_value_assign, ada_value_struct_elt): Update.
628 * jv-lang.c (evaluate_subexp_java): Update.
629 * valarith.c (value_less, value_neg, value_complement)
630 (value_binop, value_add, value_subscript, value_x_binop)
631 (value_logical_not, value_sub): Update.
632 * valops.c (check_field, value_struct_elt, value_ind)
633 (value_find_oload_method_list, value_cast, value_assign): Update.
634 * eval.c (evaluate_subexp_standard): Update.
635
636 2004-11-10 Mark Kettenis <kettenis@gnu.org>
637
638 * mips-tdep.c (mips32_relative_offset): Change return type to
639 LONGEST, change argument type to ULONGEST. Fix sign-extension.
640
641 2004-11-10 Randolph Chung <tausq@debian.org>
642
643 * hppa-tdep.c (hppa32_register_name, hppa64_register_name): Make static.
644 (hppa32_push_dummy_call, hppa64_push_dummy_call): Likewise.
645 (hppa_fetch_pointer_argument): Likewise.
646 (hppa_frame_cache): Use safe_frame_unwind_memory instead of
647 deprecated_read_memory_nobpt.
648 (_initialize_hppa_tdep): Replace deprecated_add_show_from_set/
649 add_set_cmd sequence with add_setshow_boolean_cmd.
650
651 2004-11-09 Andrew Cagney <cagney@gnu.org>
652
653 GDB 6.3 released from GDB 6.3 branch.
654
655 2004-11-09 Andrew Cagney <cagney@gnu.org>
656
657 * values.c: Rename to ...
658 * value.c: ..., new file.
659 * Makefile.in: Update.
660
661 2004-11-09 Daniel Jacobowitz <dan@debian.org>
662
663 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Correct allocated
664 size.
665
666 2004-11-09 Andrew Cagney <cagney@gnu.org>
667
668 * TODO: Delete.
669
670 * value.h (struct value): Delete field bfd_section.
671 (VALUE_BFD_SECTION): Delete macro.
672 (COERCE_REF): Update.
673 (value_at, value_at_lazy): Delete asection parameter.
674 * printcmd.c (print_formatted, x_command): Update.
675 (do_examine): Delete asection parameter.
676 (next_section): Delete variable.
677 * valops.c (value_cast, value_at, value_at_lazy)
678 (value_coerce_function, value_addr, value_ind, value_string)
679 (find_rt_vbase_offset, value_full_object): Update.
680 * hpacc-abi.c (hpacc_virtual_fn_field)
681 (hpacc_value_rtti_type): Update.
682 * gnu-v3-abi.c (gnuv3_rtti_type, gnuv3_virtual_fn_field)
683 (gnuv3_baseclass_offset): Update.
684 * f-valprint.c (f_val_print): Update.
685 * c-valprint.c (c_val_print): Update.
686 * p-valprint.c (pascal_val_print): Update.
687 * jv-valprint.c (java_value_print): Update.
688 * jv-lang.c (java_class_from_object, evaluate_subexp_java): Update.
689 * ada-lang.c (ada_value_primitive_packed_val)
690 (ada_evaluate_subexp): Update.
691 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Update.
692 * expprint.c (print_subexp_standard): Update.
693 * infcall.c (call_function_by_hand): Update.
694 * valarith.c (value_add): Update.
695 * eval.c (evaluate_subexp_standard): Update.
696 * values.c (allocate_value, value_copy, value_static_field): Update.
697 * findvar.c (read_var_value, locate_var_value): Update.
698
699 2004-11-09 Andrew Cagney <cagney@gnu.org>
700
701 * i386-linux-tdep.c: Include "dwarf2-frame.h".
702 * Makefile.in: Update all dependencies.
703
704 2004-11-08 Andrew Cagney <cagney@gnu.org>
705
706 * sentinel-frame.c (sentinel_frame_prev_pc): New function.
707 (sentinel_frame_unwinder): Add the prev_pc method.
708 * frame.c (frame_pc_unwind): Use the per-frame pc unwinder when
709 available. Do not handle the sentinel-frame case.
710 * frame-unwind.h (frame_prev_register_ftype): Define.
711 (struct frame_unwind): Add prev_pc;
712
713 2004-11-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
714
715 * configure.in: Check for ncurses/term.h.
716 * gdb_curses.h: Include term.h here, prefering ncurses/term.h.
717 * utils.c: Include gdb_curses.h instead of curses.h and term.h.
718 * tui/tui.c: Don't include term.h.
719 * configure, config.in: Rebuilt.
720
721 2004-11-08 Mark Kettenis <kettenis@gnu.org>
722
723 * m68kbsd-nat.c: Include "inf-ptrace.h".
724 (_initialize_m68kbsd_nat): Fix pasto.
725 * Makefile.in (m68kbsd-nat.o): Update dependencies.
726
727 2004-11-08 Randolph Chung <tausq@debian.org>
728
729 * infrun.c (debug_infrun): New variable.
730 (resume, proceed, wait_for_inferior): Annotate with debug messages.
731 (handle_inferior_event, keep_going): Likewise.
732 (_initialize_infrun): Register "set debug infrun" command.
733
734 2004-11-08 Andreas Schwab <schwab@suse.de>
735
736 * linux-nat.c (PTRACE_EVENT_VFORK_DONE): Renamed from
737 PTRACE_EVENT_VFORKDONE.
738 (child_follow_fork): Adjust.
739
740 2004-11-08 Andrew Cagney <cagney@gnu.org>
741
742 * README: Refer to 6.3, not 6.2, update directory listing droppng
743 references to intl/ and mmalloc/.
744 * PROBLEMS: Refer to 6.3 not 6.2.
745
746 * PROBLEMS: Delete no-longer applicable problems.
747
748 2004-11-07 Andrew Cagney <cagney@redhat.com>
749 Daniel Jacobowitz <dan@debian.org>
750 Roland McGrath <roland@redhat.com>
751
752 * Makefile.in (symfile-mem.o): Update dependencies.
753 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): New.
754 (i386_linux_init_abi): Call dwarf2_frame_set_signal_frame_p.
755 * inf-ptrace.c (inf_ptrace_attach): Call
756 observer_notify_inferior_created.
757 * inftarg.c (child_attach): Likewise.
758 * symfile-mem.c: Include "observer.h", "auxv.h", and "elf/common.h".
759 (symbol_file_add_from_memory): Take NAME argument. Use it for
760 the new BFD's filename.
761 (add_symbol_file_from_memory_command): Update call to
762 symbol_file_add_from_memory.
763 (struct symbol_file_add_from_memory_args, add_vsyscall_page)
764 (symbol_file_add_from_memory_wrapper): New.
765 (_initialize_symfile_mem): Register add_vsyscall_page as an
766 inferior_created observer.
767
768 2004-11-07 Mark Kettenis <kettenis@gnu.org>
769
770 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Rename from
771 fetch_inferior_registers. Make static.
772 (m68kbsd_store_inferior_registers): Rename from
773 store_inferior_registers. Make static.
774 (_initialize_m68kbsd_nat): Construct and add target vector.
775 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
776 inftarg.o. Add inf-ptrace.o.
777 (NAT_FILE): Set to tm-solib.h.
778 (LOADLIBES): New variable.
779 * config/m68k/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
780 inftarg.o. Add inf-ptrace.o.
781 (NAT_FILE): Delete variable.
782 * config/m68k/obsd.mh (NATDEPFILES): Remove infptrace.o and
783 inftarg.o. Add inf-ptrace.o.
784 (NAT_FILE): Set to tm-solib.h.
785 * config/m68k/nm-nbsdaout.h: Remove file.
786
787 2004-11-07 Daniel Jacobowitz <dan@debian.org>
788
789 * dwarf2-frame.c (struct dwarf2_frame_ops): Add signal_frame_p.
790 (dwarf2_frame_set_signal_frame_p, dwarf2_frame_signal_frame_p)
791 (dwarf2_signal_frame_unwind): New.
792 (dwarf2_frame_sniffer): Use dwarf2_frame_signal_frame_p.
793 * dwarf2-frame.h (dwarf2_frame_set_signal_frame_p): New prototype.
794
795 2004-11-07 Mark Kettenis <kettenis@gnu.org>
796
797 * Makefile.in (mips64obsd-tdep.o): Fix typo.
798
799 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Renamed
800 from mipsnbsd_ilp32_solib_svr4_fetch_link_map_offsets. Trim sizes
801 to only include the structure members we actually need.
802 (mipsnbsd_lp64_fetch_link_map_offsets): Renamed from
803 mipsnbsd_lp64_solib_svr4_fetch_link_map_offsets. Trim sizes to
804 only include the structure members we actually need.
805 (mipsnbsd_init_abi): Update.
806
807 * mips64obsd-nat.c: Include "mips-tdep.h".
808 (MIPS64OBSD_NUM_REGS): Remove define.
809 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM): New defines.
810 (mips64obsd_supply_gregset, mips64obsd_collect_gregset): Handle
811 floating-point registers correctly.
812 * Makefile.in (mips64obsd-nat.o): Update dependencies.
813
814 * mips64obsd-tdep.c: Include "trad-frame.h", "tramp-frame.h" and
815 "gdb_assert.h".
816 (mips64obsd_sigframe_init): New function.
817 (mips64obsd_sigframe): New variable.
818 (mips64obsd_init_abi): Add comments. Prepend mips64obsd_sigrame
819 unwinder.
820 * Makefile.in (mips64obsd-tdep.o): Update dependencies.
821
822 2004-11-06 Joel Brobecker <brobecker@gnat.com>
823
824 * alpha-mdebug-tdep.c: #include mdebugread.h.
825 Replace alpha_extra_func_info_t by struct mdebug_extra_func_info *.
826 * Makefile.in (alpha-mdebug-tdep.o): Add dependency on mdebugread.h.
827
828 2004-11-05 Andrew Cagney <cagney@gnu.org>
829
830 * dwarf2-frame.c (dwarf2_frame_cache): Only complain when both the
831 CFI and the init_reg method leave the register unspecified.
832 Include the register name in the "Incomplete CFI data" complaint.
833 Supress leading zeros in the address.
834
835 2004-11-05 Mark Kettenis <kettenis@gnu.org>
836
837 * dwarf2-frame.c (decode_frame_entry_1): Avoid indirection when
838 skipping a personality routine in a CIE augmentation.
839
840 2004-11-05 Jeff Johnston <jjohnstn@redhat.com>
841
842 * defs.h (fatal, vfatal): New function prototypes.
843 * stack.c (backtrace_command_stub): Stub to call backtrace_command_1
844 via catch_errors.
845 (backtrace_command): Change to call backtrace_command_stub via
846 catch_errors instead of calling backtrace_command_1 directly.
847 (backtrace_full_command): Ditto.
848 * utils.c (error_stream_1): New static function.
849 (verror): Change to call error_stream_1 instead of error_stream.
850 (error_stream): Call error_stream_1 with RETURN_ERROR argument.
851 (vfatal, fatal): New functions.
852
853 2004-11-05 Andrew Cagney <cagney@gnu.org>
854
855 * stack.c (parse_frame_specification_1): Clear selected_frame_p
856 when not using selected frame.
857
858 2004-11-05 Mark Kettenis <kettenis@jive.nl>
859
860 * dwarf2-frame.c (decode_frame_entry_1): Correctly skip
861 personality routine in a CIE augmentation.
862
863 2004-11-05 Felix Lee <felix+log1@specifixinc.com>
864
865 * stack.c (set_current_sal_from_frame): New function.
866 (print_args_stub): Use it.
867 (print_frame_info): Don't set sal here.
868
869 2004-11-04 Mark Kettenis <kettenis@gnu.org>
870
871 * dwarf2-frame.c (read_encoded_value): Change type of third
872 argument to `unsigned char *'. Add support for LEB128 encodings.
873
874 2004-11-04 Jim Blandy <jimb@redhat.com>
875
876 * gdbtypes.c (make_qualified_type): Doc fix. Add assertion to
877 prevent cross-objfile references.
878 (make_cv_type): Doc fix. Don't create cross-objfile references,
879 even for stub types.
880 (replace_type): Add assertion to prevent cross-objfile references.
881 (check_typedef): Never resolve a stub type by copying over a type
882 from another file.
883
884 2004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
885
886 * Makefile.in (m32r-tdep.o): Update dependencies.
887 * m32r-tdep.c (m32r_gdbarch_init): Call gdbarch_init_osabi for
888 ABI-specific overrides.
889
890 2004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
891
892 * m32r-tdep.c (m32r_memory_insert_breakpoint): Remove
893 unnecessary parallel execution bit.
894 (m32r_memory_remove_breakpoint): Ditto.
895 (m32r_breakpoint_from_pc): Update.
896
897 2004-11-03 Randolph Chung <tausq@debian.org>
898
899 * hppa-tdep.c (hppa_frame_cache): Use frame_pc_unwind instead of
900 frame_func_unwind to locate the unwind entry.
901 (hppa_frame_this_id): Likewise.
902
903 2004-11-03 Andrew Cagney <cagney@gnu.org>
904
905 * gdb/NEWS: Mention internationalization, m32r-*-linux-gnu, 'p'
906 packet, obsolete configurations, end-of-life deprecated_registers.
907
908 2004-11-02 Mark Kettenis <kettenis@gnu.org>
909
910 * dwarf2-frame.c (read_encoded_value): Set proper size for signed
911 encodings as well as unsigned encodings.
912
913 2004-11-02 Andrew Cagney <cagney@gnu.org>
914
915 * value.h (COERCE_VARYING_ARRAY): Delete.
916 * valops.c (value_cast, value_slice): Delete use.
917 * valarith.c (value_subscript, value_concat): Delete use.
918
919 2004-11-02 Paul Hilfinger <hilfingr@nile.gnat.com>
920
921 * NEWS: GDB understands GNAT Ada.
922
923 2004-11-01 Joseph S. Myers <joseph@codesourcery.com>
924
925 * Makefile.in (ALLDEPFILES): Add amd64-sol2-tdep.c.
926 (amd64-sol2-tdep.o): Add dependencies.
927 * amd64-sol2-tdep.c, config/i386/sol2-64.mh,
928 config/i386/sol2-64.mt: New files.
929 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offset,
930 amd64_sol2_gregset32_reg_offset, _initialize_amd64_sol2_nat): New.
931 (supply_gregset): Correct order of arguments to
932 amd64_supply_native_gregset.
933 (fill_gregset): Correct order of arguments to
934 amd64_collect_native_gregset.
935 * configure.host (i[34567]86-*-solaris2.1[0-9]*): Add new case.
936 * configure.tgt (i[34567]86-*-solaris2.1[0-9]*): Likewise.
937 * configure.in (*-*-solaris2.[[6789]]): Add *-*-solaris2.1[[0-9]]
938 for definition of NEW_PROC_API.
939 * configure: Regenerate.
940
941 2004-11-01 Joseph S. Myers <joseph@codesourcery.com>
942
943 * MAINTAINERS (Write After Approval): Add myself.
944
945 2004-11-01 Andrew Cagney <cagney@gnu.org>
946
947 * configure.tgt: Mark d10v-*-* as obsolete.
948 * config/d10v/d10v.mt, d10v-tdep.c: Obsolete files.
949
950 2004-11-01 Paul N. Hilfinger <Hilfinger@gnat.com>
951
952 * values.c (modify_field): Correct handling of bit-fields that
953 don't fit in 32 bits. Use unsigned operations throughout and
954 simplify the code a bit. Document preconditions.
955
956 2004-10-31 Andrew Cagney <cagney@gnu.org>
957
958 * config/pa/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
959 * config/tm-sysv4.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
960 (in_plt_section): Delete.
961
962 * mips-tdep.c (mips_in_solib_return_trampoline): Delete.
963 (mips_gdbarch_init): Do not set same.
964
965 * arch-utils.c (generic_in_solib_call_trampoline): Delete.
966 * arch-utils.h (generic_in_solib_call_trampoline): Delete.
967
968 * gdbarch.sh (in_solib_call_trampoline): Delete.
969 * gdbarch.h, gdbarch.c: Re-generate.
970
971 * hppa-tdep.c (hppa_stub_unwind_sniffer): Replace
972 IN_SOLIB_CALL_TRAMPOLINE with tdep.in_solib_call_trampoline.
973 * hppa-tdep.h (struct gdbarch_tdep): Add in_solib_call_trampoline.
974 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Set same.
975 * hppa-linux-tdep.c (hppa_linux_init_abi): Ditto.
976
977 2004-10-31 Mark Kettenis <kettenis@gnu.org>
978
979 * mipsnbsd-nat.c: Include "target.h" and "inf-ptrace.h".
980 (mipsnbsd_fetch_inferior_registers): Rename from
981 fetch_inferior_registers. Make static.
982 (mipsnbsd_store_inferior_registers): Rename from
983 store_inferior_registers. Make static.
984 (_initialize_mipsnbsd_nat): New function and prototype.
985 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
986 * config/mips/nbsd.mh (NAT_CLIBS, NAT_FILE): Remove variables.
987 (NATDEPFILES): Remove infptrace.o and inftarg.o. Add
988 inf-ptrace.o.
989
990 2004-10-31 Andrew Cagney <cagney@gnu.org>
991
992 * xstormy16-tdep.c (xstormy16_in_solib_call_trampoline)
993 (xstormy16_gdbarch_init): Do not set in_solib_call_trampoline,
994 delete corresponding unused function.
995 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Really do not set
996 in_solib_call_trampoline.
997 * config/arm/tm-embed.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
998 * config/powerpc/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
999 * config/mips/tm-nbsd.h: Ditto.
1000 * config/arm/tm-linux.h: Ditto.
1001 * config/mips/tm-linux.h: Ditto.
1002
1003 * armnbsd-tdep.c (arm_netbsd_aout_init_abi)
1004 (arm_netbsd_aout_in_solib_call_trampoline): Do not set
1005 in_solib_call_trampoline, delete corresponding unused function.
1006 * vaxnbsd-tdep.c (vaxnbsd_aout_in_solib_call_trampoline)
1007 (vaxnbsd_aout_init_abi): Ditto.
1008 * sparcnbsd-tdep.c (sparcnbsd_aout_in_solib_call_trampoline)
1009 (sparc32nbsd_aout_init_abi): Ditto.
1010 * ppc-linux-tdep.c (ppc64_in_solib_call_trampoline)
1011 (ppc_linux_init_abi): Ditto.
1012 * ns32knbsd-tdep.c (ns32knbsd_aout_in_solib_call_trampoline)
1013 (ns32knbsd_init_abi_aout): Ditto.
1014 * mips-tdep.c (mips_in_call_stub, mips_gdbarch_init): Ditto.
1015 * mips-linux-tdep.c (mips_linux_init_abi): Ditto.
1016 * m68kbsd-tdep.c (m68kbsd_aout_in_solib_call_trampoline)
1017 (m68kbsd_aout_init_abi): Ditto.
1018 * i386-cygwin-tdep.c (i386_cygwin_in_solib_call_trampoline)
1019 (i386_cygwin_init_abi): Ditto.
1020 * i386bsd-tdep.c (i386bsd_aout_in_solib_call_trampoline)
1021 (i386bsd_init_abi): Ditto.
1022
1023 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Do not set
1024 in_solib_call_trampoline to in_plt_entry, IN_SOLIB_CALL_TRAMPOLINE
1025 isn't used by this architecture.
1026 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
1027 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Ditto.
1028 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Ditto.
1029 * s390-tdep.c (s390_gdbarch_init): Ditto.
1030 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
1031 * m68klinux-tdep.c (m68k_linux_init_abi): Ditto.
1032 * i386-tdep.c (i386_svr4_init_abi): Ditto.
1033 * i386-nto-tdep.c (i386nto_init_abi): Ditto.
1034 * arm-linux-tdep.c (arm_linux_init_abi): Ditto.
1035 * amd64-tdep.c (amd64_init_abi): Ditto.
1036
1037 * vaxnbsd-tdep.c (vaxnbsd_elf_init_abi): Do not set
1038 in_solib_call_trampoline to its default value of
1039 generic_in_solib_call_trampoline.
1040 * ppcobsd-tdep.c (ppcobsd_init_abi): Ditto.
1041 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Ditto.
1042 * i386obsd-tdep.c (i386obsd_elf_init_abi): Ditto.
1043 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Ditto.
1044 * i386fbsd-tdep.c (i386fbsd_init_abi): Ditto.
1045 * hppabsd-tdep.c (hppabsd_init_abi): Ditto.
1046
1047 * mips-tdep.c (mips_dump_tdep): Don't print any of the macros.
1048
1049 * config/mips/obsd64.mt (DEPRECATED_TM_FILE): Delete.
1050
1051 * config/mips/tm-mips.h: Delete file.
1052 * remote-mips.c: Delete tm-mips.h from comment.
1053 * config/mips/embed.mt (DEPRECATED_TM_FILE): Delete.
1054 * config/mips/tm-nbsd.h: Don't include tm-mips.h.
1055 * config/mips/irix6.mt (DEPRECATED_TM_FILE): Delete.
1056 * config/mips/tm-linux.h: Don't include tm-mips.h.
1057 * config/mips/tm-vxmips.h: Don't include tm-mips.h.
1058 * config/mips/irix5.mt (DEPRECATED_TM_FILE):
1059 * config/mips/tm-wince.h: Don't include.
1060
1061 * mdebugread.h (MDEBUG_EFI_SYMBOL_NAME): Define.
1062 * mdebugread.c (MDEBUG_EFI_SYMBOL_NAME): Delete.
1063 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
1064 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
1065
1066 * mdebugread.h (ecoff_relocate_efi): Delete declaration.
1067 * mdebugread.c (ecoff_relocate_efi): Delete function.
1068 * objfiles.c (objfile_relocate): Delete #ifdef
1069 MDEBUG_EFI_SYMBOL_NAME code.
1070
1071 2004-10-31 Orjan Friberg <organ.friberg@axis.com>
1072 Andrew Cagney <cagney@gnu.org>
1073
1074 * gdbarch.sh (single_step_through_delay): Add.
1075 * gdbarch.h, gdbarch.c: Re-generate.
1076 * config/mips/tm-mips.h (STEP_SKIPS_DELAY_P, STEP_SKIPS_DELAY)
1077 (mips_step_skips_delay): Delete.
1078 * mips-tdep.c (mips_single_step_through_delay): Replace
1079 mips_step_skips_delay.
1080 (mips_gdbarch_init): Set single_step_through_delay.
1081 (mips_dump_tdep): Do not print STEP_SKIPS_DELAY.
1082
1083 2004-10-31 Mark Kettenis <kettenis@gnu.org>
1084
1085 * tramp-frame.c (tramp_frame_prepend_unwinder): Set unwinder type
1086 from TRAMP_FRAME frame type.
1087
1088 2004-10-31 Andrew Cagney <cagney@gnu.org>
1089
1090 * mdebugread.c (parse_procedure): Wrap use of RA_REGNUM in #ifdef.
1091
1092 * mips-tdep.c (mips_ignore_helper): Delete.
1093 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Delete.
1094 * infrun.c (handle_inferior_event): Delete #ifdef
1095 DEPRECATED_IGNORE_HELPER_CALL code.
1096
1097 * config/mips/tm-mips.h (RA_REGNUM): Delete.
1098
1099 2004-10-31 Mark Kettenis <kettenis@gnu.org>
1100
1101 * i386v4-nat.c (supply_gregset, supply_fpregset, fill_gregset)
1102 (fill_fpregset): Do not compile for 64-bit systems.
1103 * i386-sol2-nat.c: Don't include "i386v4-nat.c".
1104 * Makefile.in (i386-sol2-nat.o): Update dependencies.
1105 * config/i386/i386sol2.mh (NATDEPFILES): Add back i386v4-nat.c.
1106
1107 2004-10-30 Andrew Cagney <cagney@gnu.org>
1108
1109 * mdebugread.h: Include "coff/sym.h" and "coff/symconst.h".
1110 (struct mdebug_extra_func_info): Define.
1111 * config/alpha/tm-alpha.h: Delete same.
1112 * config/mips/tm-mips.h: Delete same.
1113 * mdebugread.c: Delete same.
1114 * Makefile.in: Update dependencies.
1115 * mips-mdebug-tdep.c: Include "mdebugread.h".
1116
1117 * objfiles.c: Include "mdebugread.h".
1118 * mdebugread.c: Include "mdebugread.h".
1119 (ecoff_relocate_cfi): Delete.
1120 * config/alpha/tm-alpha.h (ecoff_relcate_cfi): Delete.
1121 * config/mips/tm-mips.h (ecoff_relcate_cfi): Delete.
1122 * mdebugread.h (ecoff_relocate_efi): New file.
1123 * Makefile.in: Update dependencies.
1124
1125 * mips-tdep.c (struct frame_extra_info): Delete.
1126 (temp_proc_desc): Delete.
1127
1128 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Rename
1129 MIPS_EFI_SYMBOL_NAME.
1130 (mips_extra_func_info_t, mips_extra_func_info): Delete.
1131 (struct mdebug_extra_func_info): Replace struct
1132 alpha_extra_func_info and alpha_extra_func_info_t.
1133 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Rename
1134 MIPS_EFI_SYMBOL_NAME.
1135 (struct mdebug_extra_func_info): Replace struct
1136 alpha_extra_func_info and alpha_extra_func_info_t.
1137 * objfiles.c, mips-tdep.c, mips-mdebug-tdep.c: Update.
1138 * mdebugread.c, alpha-mdebug-tdep.c:
1139
1140 Suggested by Mark Kettenis.
1141 * config/mips/tm-mips.h (struct mips_extra_func_info): Delete
1142 fields frame_adjust and high_addr.
1143 * mips-mdebug-tdep.c (PROC_HIGH_ADDR, PROC_FRAME_ADJUST): Delete.
1144 (non_heuristic_proc_desc): Delete references.
1145
1146 * mips-tdep.h (MIPS_PRID_REGNUM): Add.
1147 * config/mips/tm-mips.h (PRID_REGNUM): Delete.
1148 * mips-tdep.c: Update.
1149
1150 * mips-tdep.h (MIPS_FIRST_EMBED_REGNUM)
1151 (MIPS_LAST_EMBED_REGNUM): Add.
1152 * config/mips/tm-mips.h (FIRST_EMBED_REGNUM)
1153 (LAST_EMBED_REGNUM): Delete.
1154 * mipsv4-nat.c, mips-tdep.c, mips-linux-tdep.c: Update.
1155
1156 * config/mips/tm-mips.h (PS_REGNUM): Delete.
1157 * mips-tdep.h (MIPS_PS_REGNUM): Add.
1158 * remote-vxmips.c, mipsv4-nat.c, mips-tdep.c: Update.
1159 * mips-linux-nat.c: Update.
1160
1161 * mips-tdep.h: Add comments on registers.
1162 (MIPS_UNUSED_REGNUM): Define.
1163 * config/mips/tm-mips.h (ZERO_REGNUM, UNUSED_REGNUM)
1164 (T9_REGNUM, V0_REGNUM, A0_REGNUM): Delete.
1165 * irix5-nat.c, mipsv4-nat.c, mips-linux-tdep.c: Update.
1166 * mips-linux-nat.c, remote-mips.c: Update.
1167
1168 * config/mips/tm-mips.h (t_insn): Delete.
1169 * mips-tdep.c (mips_fetch_instruction, mips_skip_trampoline_code):
1170 Replace t_insn with ULONGEST.
1171
1172 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1173
1174 * mipsnbsd-tdep.c: Include "regset.h" and "gdb_assert.h".
1175 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM)
1176 (MIPSNBSD_NUM_GREGS, MIPSNBSD_NUM_FPREGS): New defines.
1177 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
1178 (mipsnbsd_core_fns, mipsnbsd_elfcore_fns): Remove variables.
1179 (mipsnbsd_core_osabi_sniffer): New function.
1180 (mipsnbsd_init_abi): Set regset_from_core_section.
1181 (_initialize_mipsnbsd_tdep): Remove calls to
1182 deprecated_add_core_fns.
1183 (mipsnbsd_supply_fpregset, mipsnbsd_supply_gregset)
1184 (mipsnbsd_regset_from_core_section): New functions.
1185 (mipsnbsd_gregset, mipsnbsd_fpregset): New variables.
1186 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
1187
1188 * procfs.c (procfs_fetch_registers, procfs_store_registers): Like
1189 Remove optimization for DEPRECATED_FP_REGNUM.
1190
1191 2004-10-30 Andrew Cagney <cagney@gnu.org>
1192
1193 * alpha-tdep.c (alpha_setup_arbitrary_frame): Delete.
1194 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Delete.
1195 (alpha_setup_arbitrary_frame): Delete.
1196 * mips-tdep.c (setup_arbitrary_frame): Delete.
1197 * config/mips/tm-mips.h (SETUP_ARBITRARY_FRAME): Delete.
1198 (setup_arbitrary_frame): Delete.
1199 * stack.c (parse_frame_specification_1): When specified, call
1200 create_new_frame with two parameters. Delete #ifdef
1201 SETUP_ARBITRARY_FRAME.
1202
1203 * config/mips/tm-mips.h (MIPS16_INSTLEN, MIPS_NUMREGS)
1204 (MIPS_INSTLEN): Delete.
1205 * mips-tdep.h (enum mips_insn_size): Rename MIPS32_INSN_SIZE and
1206 MIPS16_INSN_SIZE to MIPS_INSN32_SIZE and MIPS_INSN16_SIZE.
1207 * remote-mips.c, mips-tdep.c: Update.
1208
1209 * config/mips/embed.mt (TDEPFILES): Add mips-mdebug-tdep.o.
1210 * mips-mdebug-tdep.h, mips-mdebug-tdep.c: New files.
1211 * mips-tdep.c (mips_mdebug_frame_cache)
1212 (mips_mdebug_frame_this_id, mips_mdebug_frame_prev_register)
1213 (mips_mdebug_frame_unwind, mips_mdebug_frame_sniffer)
1214 (mips_mdebug_frame_base_address, mips_mdebug_frame_sniffer)
1215 (mips_mdebug_frame_base_sniffer, non_heuristic_proc_desc)
1216 (compare_pdr_entries, the_bfd, mips16_fetch_instruction): Delete.
1217 (mips_gdbarch_init): Do not append mdebug sniffers.
1218 (PROC_LOW_ADDR, PROC_HIGH_ADDR, PROC_FRAME_OFFSET)
1219 (PROC_FRAME_REG, PROC_FRAME_ADJUST, PROC_REG_MASK)
1220 (PROC_FREG_MASK, PROC_REG_OFFSET, PROC_FREG_OFFSET, PROC_PC_REG)
1221 (PROC_SYMBOL, _PROC_MAGIC_): Delete.
1222 * Makefile.in: Update dependencies.
1223
1224 * mips-tdep.h (mips_abi_regsize): Declare.
1225 * mips-tdep.c (mips_abi_regsize): Make non-static.
1226
1227 * mips-tdep.c (gdb_print_insn_mips): Simplify.
1228 (make_mips16_addr): Delete.
1229
1230 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1231
1232 * i386-sol2-nat.c: New file.
1233 * Makefile.in (ALLDEPFILES): Add i386-sol2-nat.c and
1234 i386-sol2-tdep.c.
1235 (i386-sol2-nat.o): Update dependencies.
1236 * config/i386/i386sol2.mh (NATDEPFILES): Remove i386v4.o, add
1237 i386-sol2-nat.o.
1238
1239 2004-10-30 Andrew Cagney <cagney@gnu.org>
1240
1241 Total breakage identified by Joel Brobecker.
1242 * mips-tdep.c (after_prologue): Delete.
1243 (mips_skip_prologue): Use skip_prologue_using_sal.
1244 (heuristic_proc_desc): Delete, unused.
1245
1246 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1247
1248 * procfs.c (proc_get_gregs, proc_get_fpregs, proc_set_gregs)
1249 (proc_set_fpregs, procfs_fetch_registers, procfs_store_registers):
1250 Cleanup coding style.
1251
1252 2004-10-30 Andrew Cagney <cagney@gnu.org>
1253
1254 * mips-tdep.h (mips_pc_is_mips16): Declare.
1255 * mips-tdep.c (mips_pc_is_mips16): Rename pc_is_mips16, make
1256 non-static. Update calls.
1257
1258 * cli/cli-decode.c (add_setshow_enum_cmd): New function.
1259 * command.h (add_setshow_enum_cmd): Declare.
1260 * mips-tdep.c (_initialize_mips_tdep): Use add_setshow_enum_cmd.
1261
1262 * mips-tdep.c (_initialize_mips_tdep): Use
1263 add_setshow_zinteger_cmd.
1264
1265 * mips-tdep.c (mips_eabi_extract_return_value)
1266 (mips_o64_extract_return_value, mips_o64_store_return_value)
1267 (return_value_location, mips_eabi_reg_struct_has_addr)
1268 (mips_eabi_use_struct_convention)
1269 (mips_eabi_store_return_value): Delete.
1270 (mips_eabi_store_return_value): New function.
1271 (mips_eabi_return_value): New function.
1272 (mips_gdbarch_init): For O64 and EABI, delete
1273 extract_return_value, store_return_value, use_struct_convention
1274 and reg_struct_has_addr, add return_value.
1275
1276 * mips-tdep.c (read_signed_register): Use
1277 regcache_cooked_read_signed.
1278
1279 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1280
1281 * mipsread.c: Cleanup coding style.
1282 (mipscoff_new_init, mipscoff_symfile_init, mipscoff_symfile_read)
1283 (mipscoff_symfile_finish): Remove prototypes.
1284
1285 2004-10-29 Mark Kettenis <kettenis@gnu.org>
1286
1287 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
1288 (mips_mdebug_frame_cache, mips16_scan_prologue)
1289 (mips32_scan_prologue, mips_stub_frame_cache)
1290 (heuristic_proc_start, heuristic_proc_desc)
1291 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
1292 (mips_n32n64_return_value, mips_o32_push_dummy_call)
1293 (mips_o32_return_value, mips_o64_push_dummy_call)
1294 (mips_step_skips_delay, mips_skip_trampoline_code)
1295 (mips_gdbarch_init): Use MIPS_A0_REGNUM instead of A0_REGNUM,
1296 MIPS_RA_REGNUM instead of RA_REGNUM, MIPS_T9_REGNUM instead of
1297 T9_REGNUM, MIPS_V0_REGNUM instead of V0_REGNUM, MIPS_ZERO_REGNUM
1298 instead of ZERO_REGNUM, MIPS32_SIZE_INSN instead of MIPS_INSTLEN
1299 and MIPS16_INSN_SIZE instead of MIPS16_INSTLEN.
1300 (mips_dump_tdep): Don't print A0_REGNUM, RA_REGNUM,
1301 T9_REGNUM, V0_REGNUM, ZERO_REGNUM, MIPS_INSTLEN and
1302 MIPS16_INSTLEN. Use MIPS_A0_REGNUM instead of A0_REGNUM.
1303 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
1304 (mips_linux_n32n64_sigframe_init): Use MIPS_ZERO_REGNUM instead of
1305 ZERO_REGNUM.
1306 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
1307 (mipsnbsd_cannot_store_register): Use MIPS_ZERO_REGNUM instead of
1308 ZERO_REGNUM.
1309 (mipsnbsd_get_longjmp_target): Use MIPS_A0_REGNUM instead of
1310 A0_REGNUM.
1311 * mipsnbsd-nat.c: Include "mips-tdep.h".
1312 (getregs_supplies): Use MIPS_ZERO_REGNUM instead of ZERO_REGNUM.
1313 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
1314
1315 2004-10-29 Andrew Cagney <cagney@gnu.org>
1316
1317 * stack.c (parse_frame_specification_1): New function based on
1318 parse_frame_specification. Add message and selected_frame_p
1319 paramters. Truely always return non-NULL.
1320 (parse_frame_specification): Call parse_frame_specification_1.
1321 (frame_info): Update. Eliminate target_has_stack check.
1322 (select_frame_command): Update.
1323
1324 2004-10-29 Andrew Cagney <cagney@gnu.org>
1325
1326 * frame.h (get_selected_frame): Add message parameter.
1327 * frame.c (get_selected_frame): Add and use message parameter.
1328 * stack.c (current_frame_command, return_command, locals_info)
1329 (catch_info, args_info, up_silently_base, down_silently_base): Use
1330 get_selected_frame with an explicit message.
1331 * thread.c, stack.c, sh-tdep.c, sh64-tdep.c: Update.
1332 * remote-rdp.c, remote-mips.c, remote-e7000.c: Update.
1333 * ocd.c, mi/mi-main.c, mi/mi-cmd-stack.c: Update.
1334 * infrun.c, inflow.c, infcmd.c, frame.c: Update.
1335 * findvar.c, eval.c, corelow.c, bsd-kvm.c: Update.
1336 * breakpoint.c: Update.
1337
1338 2004-10-29 Andrew Cagney <cagney@gnu.org>
1339
1340 * trad-frame.c (trad_frame_get_prev_register): Use
1341 frame_unwind_register instead of frame_register_unwind, do not
1342 recurse the register's location.
1343 * xstormy16-tdep.c (xstormy16_frame_prev_register):
1344 * sparc-tdep.c (sparc32_frame_prev_register): Ditto.
1345 * sparc64-tdep.c (sparc64_frame_prev_register): Ditto.
1346 * sh-tdep.c (sh_frame_prev_register): Ditto.
1347 * m68k-tdep.c (m68k_frame_prev_register): Ditto.
1348 * i386-tdep.c (i386_frame_prev_register): Ditto.
1349 * dwarf2-frame.c (dwarf2_frame_prev_register): Ditto.
1350 * amd64-tdep.c (amd64_frame_prev_register): Ditto.
1351
1352 2004-10-28 Mark Kettenis <kettenis@jive.nl>
1353
1354 * proc-events.c: Fix several coding-style issues. Consistently
1355 use #ifdef instead of #if defined().
1356 (proc_prettyfprint_fault, proc_prettyfprint_faultset): Use
1357 ARRAY_SIZE.
1358 (_initialize_proc_events): New prototype.
1359
1360 * proc-why.c: Fix several coding-style issues.
1361 (proc_prettyfprint_why): Use ARRAY_SIZE.
1362
1363 2004-10-27 Jim Blandy <jimb@redhat.com>
1364
1365 * remote.c (fetch_register_using_p): Construct 'p' packet in a
1366 manner independent of the host byte order.
1367
1368 2004-10-27 Mark Kettenis <kettenis@gnu.org>
1369
1370 * mips-tdep.c (id_delayed): Remove prototype.
1371
1372 2004-10-26 Mark Kettenis <kettenis@gnu.org>
1373
1374 * mips-tdep.h: Add MIPS_ZERO_REGNUM, MIPS_AT_REGNUM,
1375 MIPS_V0_REGNUM. MIPS_A0_REGNUM, MIPS_T9_REGNUM and MIPS_RA_REGNUM
1376 to enum with register numbers.
1377 (enum mips_insn_size): New enum.
1378
1379 2004-10-26 Andrew Cagney <cagney@gnu.org>
1380
1381 * config/mips/tm-linux.h: Delete #undef SKIP_TRAMPOLINE_CODE.
1382 * mips-tdep.c (mips_skip_trampoline_code): Rename mips_skip_stub.
1383 (mips_gdbarch_init): Update.
1384 (mips_dump_tdep): Do not print SKIP_TRAMPOLINE_CODE.
1385
1386 * config/arm/tm-linux.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1387 * config/mips/tm-nbsd.h, config/mips/tm-linux.h: Delete #undef
1388 IN_SOLIB_RETURN_TRAMPOLINE.
1389 * mips-tdep.c (mips_dump_tdep): Do not print
1390 IN_SOLIB_RETURN_TRAMPOLINE.
1391 (mips_in_solib_return_trampoline): Rename mips_in_return_stub.
1392 (mips_gdbarch_init): Update.
1393
1394 * mips-tdep.h (mips_software_single_step): Move to here ...
1395 * config/mips/tm-mips.h: ... from here.
1396 * config/mips/tm-linux.h (SOFTWARE_SINGLE_STEP_P)
1397 (SOFTWARE_SINGLE_STEP): Delete.
1398 * mips-linux-tdep.c (mips_linux_init_abi): Set software_single_step.
1399
1400 2004-10-25 Andrew Cagney <cagney@gnu.org>
1401
1402 * NEWS: Add Changes since GDB 6.3 section.
1403
1404 2004-10-23 Andreas Schwab <schwab@suse.de>
1405
1406 * ada-lang.c (grow_vect): Return the new array instead of
1407 expecting pointer to pointer to avoid violation of aliasing rules.
1408 * ada-lang.h (GROW_VECT): Adapt call to grow_vect.
1409
1410 2004-10-23 Ulrich Weigand <uweigand@de.ibm.com>
1411
1412 * s390-tdep.c (enum pv_boolean): Remove.
1413 (pv_is_array_ref): Remove.
1414 (s390_on_stack): Remove.
1415 (S390_NUM_SPILL_SLOTS): Remove.
1416 (struct s390_prologue_data): Remove members 'spill' and 'back_chain',
1417 add members 'gpr_slot', 'fpr_slot', and 'back_chain_saved_p'.
1418 (s390_store): Track all stores of orginal incoming registers to the
1419 stack constant offsets relative to the CFA, instead of only tracking
1420 stores into specific spill slots.
1421 (s390_load): Likewise.
1422 (s390_analyze_prologue): Adapt to struct s390_prologue_data changes.
1423 (s390_prologue_frame_unwind_cache): Likewise. Only track registers
1424 defined as call-saved by the ABI.
1425 (s390_push_dummy_call): Use bottom of dummy call argument save area
1426 as return value, not the top. Do not store to the called function's
1427 register save area.
1428 (s390_unwind_dummy_id): Adapt accordingly.
1429
1430 2004-10-23 Andrew Cagney <cagney@gnu.org>
1431
1432 * objfiles.h (struct objfile): Rename obj_private to
1433 deprecated_obj_private, sym_private to deprecated_sym_private, and
1434 sym_stab_info to deprecated_sym_stab_info.
1435 * gdb-stabs.h: Update.
1436 * elfread.c: Update.
1437 * dbxread.c: Update.
1438 * coffread.c: Update.
1439 * xcoffread.c: Update.
1440 * symfile.c: Update.
1441 * somread.c: Update.
1442 * nlmread.c: Update.
1443 * mdebugread.c: Update.
1444 * hpread.c: Update.
1445 * coffread.c: Update.
1446
1447 2004-10-23 Mark Kettenis <kettenis@gnu.org>
1448
1449 * mips64obsd-nat.c, mips64obsd-tdep.c: New files.
1450 * configure.host: Add mips64*-*-openbsd*.
1451 * configure.tgt: Add mips64*-*-openbsd*.
1452 * Makefile.in (ALLDEPFILES): Add mips64obsd-nat.o,
1453 mips64obsd-tdep.c.
1454 (mips64obsd-nat.o, mips64obsd-tdep.o): New dependecies.
1455 * config/mips/obsd64.mh, config/mips/obsd64.mt: New files.
1456
1457 2004-10-21 Joel Brobecker <brobecker@gnat.com>
1458
1459 * symtab.c (symbol_search_name): Minor reformatting.
1460
1461 2004-10-20 Joel Brobecker <brobecker@gnat.com>
1462
1463 * symtab.h: Fix typo in comment.
1464
1465 2004-10-19 Mark Kettenis <kettenis@gnu.org>
1466
1467 * dwarf2read.c (struct comp_unit_head): Fix coding style.
1468 (dwarf_decode_line_header): Likewise.
1469
1470 2004-10-19 Michael Chastain <mec.gnu@mindspring.com>
1471
1472 * NEWS: GDB works with GCC -feliminate-dwarf2-dups.
1473
1474 2004-10-19 Andrew Cagney <cagney@gnu.org>
1475
1476 GDB 6.3 branch created.
1477 * version.in: Bump to version 6.3.50_2004-10-19-cvs.
1478
1479 2004-10-15 Joel Brobecker <brobecker@gnat.com>
1480
1481 * dwarf2read.c (set_cu_language): Set language to Ada for
1482 DW_LANG_Ada83 and DW_LANG_Ada95.
1483
1484 2004-10-15 Michael Chastain <mec.gnu@mindspring.com>
1485
1486 From Andreas Schwab <schwab@suse.de>:
1487 * Makefile.in (.y.c, .l.c.): Fix the substitutions for
1488 for xmalloc and xrealloc.
1489
1490 2004-10-15 Andrew Cagney <cagney@gnu.org>
1491
1492 * ada-exp.y, ada-lex.l: Use xmalloc and xrealloc through out.
1493 * inf-ptrace.c: Include "gdb_wait.h" instead of <wait.h>.
1494 * Makefile.in (.y.c, .l.c): Don't replace xmalloc with xxmalloc.
1495 Update dependencies.
1496
1497 2004-10-15 Paul Hilfinger <Hilfinger@gnat.com>
1498
1499 * ada-lang.c (ada_lookup_symbol): Correct comment.
1500 (ada_evaluate_subexp): Change error message for
1501 OP_FUNCALL case so as not to indicate an internal error.
1502
1503 2004-10-15 Joel Brobecker <brobecker@gnat.com>
1504
1505 Committed by Paul Hilfinger.
1506 * ada-lang.c (ada_template_to_fixed_record_type_1): Detect bogus
1507 type sizes in XVE/XVU types, and emit a warning when that happens,
1508 instead of rounding up the size of the resulting type.
1509 Some minor reformatting.
1510 (ada_is_aligner_type): Do not consider a type as an aligner type
1511 if there is a corresponding XVS type as well.
1512 (ada_evaluate_subexp): For TERNOP_SLICE, handle cases where we
1513 have several levels of pointer indirection to the array.
1514
1515 2004-10-15 Jerome Guitton <guitton@gnat.com>
1516
1517 Committed by Paul Hilfinger.
1518 * ada-lang.c (check_size): New function.
1519 (coerce_unspec_val_to_type): call check_size to make sure
1520 that the object size is reasonable.
1521 (ada_evaluate_subexp): in UNOP_IND: Ditto. In TERNOP_SLICE:
1522 Implements the case when we get a reference when we evaluate
1523 the expression of one of the bounds of the slice.
1524 (ada_value_struct_elt): when a packed array field is
1525 a reference, use ada_coerce_ref to dereference it; use
1526 ada_value_ind only if it is a pointer.
1527
1528 2004-10-15 Joel Brobecker <brobecker@gnat.com>
1529
1530 * mips-tdep.c (mips32_scan_prologue): Move the implementation up
1531 a bit to avoid the necessity of an advance declaration. Remove
1532 declaration.
1533 (set_reg_offset): Move implemenation up.
1534 (mips16_get_imm): Likewise.
1535 (mips16_scan_prologue): Likewise.
1536 (reset_saved_regs): Likewise.
1537 (mips32_scan_prologue): Likewise.
1538
1539 2004-10-14 Joel Brobecker <brobecker@gnat.com>
1540
1541 * mips-tdep.c (mips32_scan_prologue): Add advance declaration.
1542 Remove sp as a parameter, compute it internally instead. Move
1543 prologue scanning limit from heuristic_proc_desc to here.
1544 (mips16_scan_prologue): Likewise.
1545 (mips_insn16_frame_cache): Replace call to heuristic_proc_desc
1546 by call to mips16_scan_prologue.
1547 (mips_insn32_frame_cache): Replace call to heuristic_proc_desc
1548 by call to mips32_scan_prologue.
1549 (heuristic_proc_desc): Remove code that's no longer necessary.
1550 Update calls to mips16_scan_prologue and mips32_scan_prologue.
1551 (mips_skip_prologue): Update calls to mips16_scan_prologue
1552 and mips32_scan_prologue.
1553
1554 2004-10-14 Joel Brobecker <brobecker@gnat.com>
1555
1556 * mips-tdep.c (mips16_scan_prologue): Merge code from
1557 mips16_skip_prologue. Now return the address of the first
1558 instruction past the function prologue.
1559 (mips16_skip_prologue): Remove, no longer necessary.
1560 (mips_skip_prologue): Replace call to mips16_skip_prologue
1561 by call to mips16_scan_prologue.
1562
1563 2004-10-14 Joel Brobecker <brobecker@gnat.com>
1564
1565 * mips-tdep.c (mips32_scan_prologue): Merge code from
1566 mips32_skip_prologue. Now return the address of the first
1567 instruction past the function prologue.
1568 (mips32_skip_prologue): Remove. No longer necessary.
1569 (mips16_skip_prologue): Add parameter end_pc instead of
1570 computing it.
1571 (mips_skip_prologue): Compute the upper limit for the
1572 prologue scanning. Update call to mips16_skip_prologue.
1573 Replace call to mips32_skip_prologue by call to
1574 mips32_scan_prologue.
1575
1576 2004-10-14 Mark Kettenis <kettenis@gnu.org>
1577
1578 * hppa-tdep.c (hppa_frame_cache): Add support for OpenBSD and
1579 NetBSD system call stubs that store %rp in the ERP slot of the
1580 stack frame.
1581
1582 * source.c: Always define O_BINARY to 0 if not defined already.
1583 (openp): Unconditionally use O_BINARY.
1584
1585 * top.c (gdb_readline): Always accept "\r\n" as a line-ending.
1586 * event-top.c (gdb_readline2): Likewise.
1587
1588 2004-10-14 Orjan Friberg <orjanf@axis.com>
1589
1590 * cris-tdep.c (_initialize_cris_tdep): Re-add call to
1591 deprecated_add_core_fns which was removed by mistake.
1592
1593 2004-10-13 Kevin Buettner <kevinb@redhat.com>
1594
1595 * ia64-linux-nat.c (fill_gregset, fill_fpregset): Replace
1596 references to deprecated_registers[] with equivalent code.
1597
1598 2004-10-13 Kevin Buettner <kevinb@redhat.com>
1599
1600 * rs6000-tdep.c (rs6000_push_dummy_call): Replace references to
1601 ``deprecated_registers'' with equivalent code. Use gdb_assert()
1602 instead of explicit test and print statement.
1603
1604 2004-10-12 Mark Kettenis <kettenis@gnu.org>
1605
1606 * sparc-nat.c: Include "inf-ptrace.h".
1607 (sparc_target): New function.
1608 * sparc-nat.h: Update copyright year.
1609 (sparc_target): New prototype.
1610 * sparcnbsd-nat.c: Don't include "gdbcore.h", include "target.h".
1611 (_initialize_sparcnbsd_nat): Construct and add target vector.
1612 * sparc64nbsd-nat.c: Include "target.h".
1613 (_initialize_sparc64nbsd_nat): Construct and add target vector.
1614 * Makefile.in (sparc-nat.o, sparcnbsd-nat.o, sparc64nbsd-nat.o):
1615 Update dependencies.
1616 * config/sparc/nbsd64.mh (NATDEPFILES): Remove infptrace.o and
1617 inftarg.o, add inf-ptrace.o.
1618 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1619 inftarg.o, add inf-ptrace.o and bsd-kvm.o.
1620 (NAT_FILE): Set to nm-bsd.h.
1621 (LOADLIBES): New variable.
1622 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
1623 infarg.o, add inf-ptrace.o.
1624 * config/sparc/nm-nbsdaout.h: Remove file.
1625 * config/sparc/fbsd.mh (NATDEPFILES): Add inf-ptrace.o.
1626 * config/sparc/linux.mh (NATDEPFILES): Add inf-ptrace.o.
1627 * config/sparc/linux64.mh (NATDEPFILES): Add inf-ptrace.o.
1628
1629 * defs.h [!FOPEN_RB]: Include "fopen-bin.h" instead of
1630 "fopen-same.h". Update comment.
1631
1632 2004-10-11 Mark Kettenis <kettenis@gnu.org>
1633
1634 * i386gnu-nat.c: Include "gdb_string.h".
1635 (fetch_fpregs): Use i387_supply_fxsave to fill the floating-point
1636 registers when the floating-point state isn't initialized.
1637 * Makefile.in (i386gnu-nat.o): Update dependencies.
1638
1639 2004-10-11 David Anderson <davea@sgi.com>
1640
1641 * regcache.c (regcache_raw_read): Comment was missing "to".
1642 Extraneous ' removed.
1643 * gdb_thread_db.h (struct td_thrinfo): ti_lid field
1644 comment now describes use.
1645
1646 2004-10-11 Orjan Friberg <orjanf@axis.com>
1647
1648 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start)
1649 (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
1650 (cris_sigtramp_frame_this_id, cris_sigtramp_frame_prev_register)
1651 (cris_sigtramp_frame_sniffer): New functions.
1652 (cris_gdbarch_init): Hook in signal trampoline unwinder.
1653 (cris_dwarf2_reg_to_regnum, cris_dwarf2_frame_init_reg): New functions.
1654 (cris_gdbarch_init): Hook in Dwarf-2 unwinder.
1655 (struct gdbarch_tdep, set_cris_dwarf2_cfi, cris_dump_tdep)
1656 (cris_gdbarch_init, _initialize_cris_tdep): Add CRIS Dwarf-2 CFI usage
1657 command.
1658 (cris_version_update): Remove, replace with ...
1659 (set_cris_version): New function.
1660 (struct gdbarch_tdep, cris_mode, cris_mode_update)
1661 (cris_cannot_store_register, cris_dump_tdep, cris_gdbarch_init)
1662 (_initialize_cris_tdep): Remove CRIS mode command.
1663 (cris_fpless_backtrace, _initialize_cris_tdep): Remove
1664 cris-fpless-backtrace command.
1665 (cris_scan_prologue): Fix prologue scanning limit.
1666 (cris_register_type): Update to reflect actual registers.
1667 (cris_register_bytes_ok) Remove.
1668 (cris_gdbarch_init): Remove support for CRIS v8 and v9.
1669 Remove set_gdbarch_deprecated_register_size,
1670 set_gdbarch_deprecated_register_byte, set_gdbarch_register_bytes_ok.
1671
1672 2004-10-10 Andrew Cagney <cagney@gnu.org>
1673
1674 * ada-lang.c (lim_warning): Add ATTR_FORMAT prototype and FIXME
1675 comment.
1676
1677 2004-10-10 Joel Brobecker <brobecker@gnat.com>
1678
1679 * mips-tdep.c (mips16_scan_prologue): Remove redundant code.
1680
1681 2004-10-10 Joel Brobecker <brobecker@gnat.com>
1682
1683 * mips-tdep.c (mips16_scan_prologue): Renames
1684 mips16_heuristic_proc_desc. Update comment.
1685 (mips32_scan_prologue): Renames mips32_heuristic_proc_desc.
1686 (heuristic_proc_desc): Update calls to the 2 functions above.
1687
1688 2004-10-10 Joel Brobecker <brobecker@gnat.com>
1689
1690 * mips-tdep.c (mips_insn16_frame_cache): Remove unused variables.
1691 Update comments. Also immediately return empty cache when the start
1692 address of our function could not be found.
1693 (mips_insn32_frame_cache): Likewise.
1694
1695 2004-10-10 Joel Brobecker <brobecker@gnat.com>
1696
1697 * mips-tdep.c (mips16_decode_reg_save): Delete, no longer used.
1698 (mips_insn16_frame_cache): Pass frame cache in call to
1699 heuristic_proc_desc. Move some code to mips16_heuristic_proc_desc.
1700 Remove code that became redundant as a consequence.
1701 (mips32_heuristic_proc_desc): No longer compute a fake
1702 procedure descriptor. Compute the full frame cache instead.
1703 Some minor comment reformatting.
1704
1705 2004-10-10 Jim Blandy <jimb@redhat.com>
1706
1707 * MAINTAINERS (generic symtabs, dwarf readers, elf reader, stabs
1708 reader, tracing bytecode stuff): Remove self.
1709
1710 2004-10-10 Mark Kettenis <kettenis@gnu.org>
1711
1712 * sparc64-linux-tdep.c: Update copyright year. Don't include
1713 "solib-svr4.h".
1714 (sparc64_linux_svr4_fetch_link_map_offsets): Remove function.
1715 (sparc64_linux_init_abi): Don't set solib_svr4_link_map_offsets.
1716 * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
1717
1718 * sparc-linux-tdep.c: Update copyright year.
1719 (sparc_linux_sigtramp_start): Change first argument from CORE_ADDR
1720 to struct frame_info *. Use safe_frame_unwind_memory instead of
1721 deprecated_read_memory_nobpt.
1722 (sparc32_linux_sigtramp_start, sparc32_linux_rt_sigtramp_start):
1723 Change argumen from CORE_ADDR to struct frame_info *. Adjust for
1724 changed signature of sparc_linux_sigtramp_start.
1725 (sparc32_linux_pc_in_sigtramp): Remove function.
1726 (sparc32_linux_sigtramp_p): New function.
1727 (sparc32_linux_sigtramp_frame_sniffer): Use
1728 sparc32_linux_sigtramp_p instead of sparc32_linux_pc_in_sigtramp.
1729
1730 * sparc-linux-tdep.c (sparc32_linux_svr4_fetch_link_map_offsets):
1731 Remove function.
1732 (sparc32_linux_init_abi): Don't set solib_svr4_link_map_offsets.
1733
1734 * ada-lang.c (lim_warning): Re-implement as a varargs function.
1735 (decode_packed_array_type, value_subscript_packed)
1736 (ada_evaluate_subexp, to_fixed_range_type): Remove redundant
1737 argument in call to lim_warning.
1738
1739 * configure.in: Really disable the TUI if an enhanced curses
1740 library isn't found.
1741 * configure: Regenerate.
1742
1743 2004-10-09 Mark Kettenis <kettenis@gnu.org>
1744
1745 * config/i386/nbsdaout.mh (NAT_FILE): Set to solib.h.
1746 * config/i386/nbsdelf.mh (NAT_FILE): Set to solib.h.
1747 * config/i386/nm-nbsdaout.h: Remove file.
1748 * config/i386/nm-fbsd.h (link_object, lo_name, lo_library)
1749 (lo_unused, lo_major, lo_minor, lo_next, link_map, lm_addr)
1750 (lm_name, lm_next, lm_lop, lm_lob, lm_rwt, lm_ld, lm_lpd)
1751 (link_dynamic_2, ld_loaded, ld_need, ld_rules, ld_got, ld_plt)
1752 (ld_rel, ld_hash, ld_stab, ld_stab_hash, ld_buckets, ld_symbols)
1753 (ld_symb_size, ld_text, ld_plt_sz, rtc_symb, rtc_sp, rtc_next)
1754 (ld_debug, ldd_version, ldd_in_debugger, ldd_sym_loaded)
1755 (ldd_bp_addr, ldd_bp_inst, ldd_cp, link_dynamic, ld_version)
1756 (ldd, ld_un, ld_2): Remove defines.
1757 * config/i386/nm-obsd.h: Likewise.
1758
1759 2004-10-09 Paul Hilfinger <hilfingr@nile.gnat.com>
1760
1761 * ada-lex.l: Remove useless rule whose right-context clause
1762 causes unreferenced static function warning for yyrealloc.
1763 (ada_flex_use): Remove the artificial reference to yyrealloc.
1764
1765 2004-10-08 Andrew Cagney <cagney@gnu.org>
1766
1767 * target.h (struct target_ops): Rename to_xfer_memory to
1768 deprecated_xfer_memory.
1769 * target.c: Update.
1770 (deprecated_debug_xfer_memory): Rename debug_to_xfer_memory.
1771 * wince.c: Update.
1772 * win32-nat.c: Update.
1773 * v850ice.c: Update.
1774 * uw-thread.c: Update.
1775 * thread-db.c: Update.
1776 * sol-thread.c: Update.
1777 * remote.c: Update.
1778 * remote-vx.c: Update.
1779 * remote-st.c: Update.
1780 * remote-sim.c: Update.
1781 * remote-sds.c: Update.
1782 * remote-rdp.c: Update.
1783 * remote-rdi.c: Update.
1784 * remote-mips.c: Update.
1785 * remote-m32r-sdi.c: Update.
1786 * remote-e7000.c: Update.
1787 * procfs.c: Update.
1788 * ppc-bdm.c: Update.
1789 * nto-procfs.c: Update.
1790 * monitor.c: Update.
1791 * linux-nat.c: Update.
1792 * inftarg.c: Update.
1793 * hpux-thread.c: Update.
1794 * go32-nat.c: Update.
1795 * gnu-nat.c: Update.
1796 * exec.c: Update.
1797 * corelow.c: Update.
1798 * bsd-kvm.c: Update.
1799 * aix-thread.c: Update.
1800
1801 2004-10-08 Andrew Cagney <cagney@gnu.org>
1802
1803 * target.c (debug_target): Move to near start of file.
1804 (target_stopped_data_address_p): Re-org logic, add casts.
1805
1806 2004-10-02 Mark Kettenis <kettenis@gnu.org>
1807
1808 * solib-sunos.c [HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS] (link_map)
1809 (lm_addr, lm_name, lm_next, link_dynamic_2, ld_loaded, rtc_symb)
1810 (rtc_sp, rtc_next, ld_debug, ldd_in_debugger, ldd_bp_addr)
1811 (ldd_bp_inst, ldd_cp, link_dynamic, ld_version, ldd, ld_un, ld_2):
1812 New defines.
1813
1814 2004-10-08 Jeff Johnston <jjohnstn@redhat.com>
1815
1816 * target.h (to_stopped_data_address): Change prototype to
1817 take a CORE_ADDR pointer and return an int.
1818 * target.c (update_current_target): Change to_stopped_data_address
1819 to match new prototype.
1820 (debug_to_stopped_data_address): Change appropriately.
1821 * breakpoint.c (bpstat_stop_status): Change call to
1822 target_stopped_data_address to use new prototype.
1823 * frv-tdep.c (frv_have_stopped_data_address): New function.
1824 (frv_stopped_data_address): Change to new prototype and
1825 functionality.
1826 * ia64-linux-nat.c (ia64_stopped_data_address): Change to new
1827 prototype and functionality.
1828 (ia64_stopped_by_watchpoint): New function.
1829 * i386-nat.c (i386_stopped_data_address): Change to new
1830 prototype and functionality.
1831 (i386_stopped_by_watchpoint): New function.
1832 * remote.c (remote_stopped_data_address): Change to new prototype
1833 and functionality.
1834 * remote-m32r-sdi.c (m32r_stopped_data_address): Ditto.
1835 * config/frv/tm-frv.h (frv_stopped_data_address): Change prototype.
1836 (STOPPED_BY_WATCHPOINT): Change to use frv_have_stopped_data_address.
1837 * config/i386/nm-i386.h (STOPPED_BY_WATCHPOINT): Change to use
1838 new i386_stopped_by_watchpoint function.
1839 (i386_stopped_by_watchpoint): New prototype.
1840 (i386_stoppped_data_address): Change to new prototype.
1841 * config/ia64/nm-linux.h (STOPPED_BY_WATCHPOINT): Change to use
1842 new ia64_stopped_by_watchpoint function.
1843 (ia64_stopped_by_watchpoint): New prototype.
1844 (ia64_stopped_data_address): Ditto.
1845
1846 2004-10-08 Paul Hilfinger <Hilfinger@gnat.com>
1847
1848 * ada-typeprint.c (ada_print_type): Use int_string for printing
1849 modulus of modular type.
1850 * ada-lang.h (ada_modulus): Change return type to unsigned.
1851 * ada-lang.c (ada_language_arch_info): Correct type of
1852 string_char_type.
1853 (ada_modulus): Return unsigned result.
1854 (ada_lookup_symbol): Remove user disambiguation and modify comment
1855 accordingly.
1856
1857 2004-10-08 Eric Botcazou <ebotcazou@act-europe.fr>
1858
1859 Committed by Paul Hilfinger.
1860 * ada-lang.c (decode_packed_array): On big-endian targets,
1861 left-justify the value if it comes with a modular type.
1862
1863 2004-10-08 Joel Brobecker <brobecker@gnat.com>
1864
1865 Committed by Paul Hilfinger.
1866 * ada-lang.c (template_to_static_fixed_type): Fix a small typo.
1867 (is_name_suffix): Add support for "___JM" suffixes.
1868 (ada_check_typedef): Renames ada_completed_type.
1869 Update all users of CHECK_TYPEDEF, check_typedef, and
1870 ada_complete_type to call ada_check_typedef.
1871 * ada-typeprint.c: Likewise.
1872 * ada-valprint.c: Likewise.
1873
1874 2004-10-08 Corinna Vinschen <vinschen@redhat.com>
1875
1876 * infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
1877
1878 2004-10-08 Nick Roberts <nickrob@snap.net.nz>
1879
1880 * MAINTAINERS: Update e-mail address.
1881
1882 2004-10-07 Daniel Jacobowitz <dan@debian.org>
1883
1884 From Maciej W. Rozycki <macro@mips.com>:
1885 * mips-tdep.c (mips32_next_pc): Check the register's contents,
1886 not its number for BLEZ/BLEZL and BGTZ/BGTZL.
1887
1888 2004-10-07 Kei Sakamoto <sakamoto.kei@renesas.com>
1889
1890 * m32r-tdep.c (decode_prologue): Support functions written
1891 in assembler language. Recognize trap instructions as the
1892 end of prologue.
1893 (m32r_frame_unwind_cache): Ditto.
1894 (m32r_skip_prologue): Extend search limit. Quit analyzing
1895 prologue if pc's location is not readable.
1896
1897 2004-10-06 Paul N. Hilfinger <Hilfinger@gnat.com>
1898
1899 * Makefile.in (.l.c): Do conversions of names of alloc and free
1900 functions that are done for .y.c files, plus special one
1901 for yy_flex_realloc. Also, correct missing-file tests here.
1902 * ada-lex.l (malloc, free): Remove macros.
1903 (resize_tempbuf): Use "realloc"; rely on sed changes to convert to
1904 xrealloc.
1905 (ada_flex_use): Dummy definition to remove warnings about unused
1906 functions.
1907 * ada-exp.y (dummy_string_to_ada_operator): Temporary definition
1908 to suppress warning.
1909
1910 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1911
1912 * sh-tdep.c (sh_return_value_nofpu): New function, implementing
1913 RETURN_VALUE.
1914 (sh_return_value_fpu): Ditto for CPUs with FPU.
1915 (sh_gdbarch_init): Remove STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
1916 RETURN_VALUE_ON_STACK and USE_STRUCT_CONVENTION throughout.
1917 Install sh_return_value_nofpu resp. sh_return_value_fpu as
1918 RETURN_VALUE functions.
1919
1920 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1921
1922 * sh-tdep.c (sh_pseudo_register_read): Add PSEUDO_BANK_REGNUM handling.
1923 (sh_pseudo_register_write): Ditto.
1924
1925 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1926
1927 * sh-tdep.c (IS_MACL_STS): New define.
1928 (IS_MOVI20): Ditto.
1929 (IS_MACL_LDS): Ditto.
1930 (sh_analyze_prologue): Recognize STS.L MACL,@-r15 and MOVI20
1931 instructions in prologue.
1932 (sh_in_function_epilogue_p): Recognize LDS.L @r15+,MACL and MOVI20
1933 instructions in epilogue.
1934
1935 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1936
1937 * sh-tdep.c (SH_NUM_REGS): Define as 67.
1938 (sh_sh_register_name): Add eight empty register names.
1939 (sh_sh3_register_name): Ditto.
1940 (sh_sh3e_register_name): Ditto.
1941 (sh_sh2e_register_name): Ditto.
1942 (sh_sh2a_register_name): New function, defining SH2A register set.
1943 (sh_sh2a_nofpu_register_name): New function, defining SH2A register set
1944 in nofpu case.
1945 (sh_sh_dsp_register_name): Add eight empty register names.
1946 (sh_sh3_dsp_register_name): Ditto.
1947 (sh_sh4_register_name): Ditto.
1948 (sh_sh4_nofpu_register_name): Ditto.
1949 (sh_sh4al_dsp_register_name): Ditto.
1950 (sh2a_show_regs): New function.
1951 (sh2a_nofpu_show_regs): New function.
1952 (sh_sh2a_register_type): New function.
1953 (do_bank_register_info): New function.
1954 (sh_print_pseudo_register): Call do_bank_register_info.
1955 Call sh_print_pseudo_register for valid "bank" register.
1956 (sh_sh2a_register_sim_regno): New function.
1957 (sh_gdbarch_init): Add bfd_mach_sh2a and bfd_mach_sh2a_nofpu handling.
1958 Increment pseudo register count by one for all sh variants with
1959 pseudo registers to accomodate pseudo bank register.
1960 * sh-tdep.h: Add register numbers for R0_BANK0_REGNUM, MACHB_REGNUM,
1961 IVNB_REGNUM, PRB_REGNUM, GBRB_REGNUM, MACLB_REGNUM, BANK_REGNUM,
1962 IBCR_REGNUM, IBNR_REGNUM, TBR_REGNUM and PSEUDO_BANK_REGNUM.
1963 Increment pseudo register numbers.
1964
1965 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1966
1967 * dwarf2read.c (read_subroutine_type): Call make_function_type
1968 instead of lookup_function_type.
1969
1970 2004-10-05 Jim Blandy <jimb@redhat.com>
1971
1972 * linux-nat.c (_initialize_linux_nat): Rename child_ops.
1973 (Previous change missed some uses.)
1974
1975 2004-10-05 Andrew Cagney <cagney@gnu.org>
1976
1977 * target.h (deprecated_child_ops): Rename child_ops.
1978 * wince.c: Update copyright. Rename child_ops.
1979 * win32-nat.c: Rename child_ops.
1980 * target.c: Rename child_ops.
1981 * rs6000-nat.c: Rename child_ops.
1982 * linux-nat.c: Rename child_ops.
1983 * infttrace.c: Rename child_ops.
1984 * inftarg.c: Rename child_ops.
1985 * infptrace.c: Rename child_ops.
1986 * hppah-nat.c: Update copyright. Rename child_ops.
1987 * hpux-thread.c: Update copyright. Rename child_ops.
1988
1989 2004-10-05 Daniel Jacobowitz <dan@debian.org>
1990
1991 * remote.c (remote_xfer_partial): Handle TARGET_OBJECT_MEMORY.
1992
1993 2004-10-05 Andrew Cagney <cagney@gnu.org>
1994
1995 * version.in: Bump to version 6.2.50_YYYY-MM-DD-cvs.
1996
1997 2004-10-05 Daniel Jacobowitz <dan@debian.org>
1998
1999 * dwarf2read.c (REF_HASH_SIZE): Move earlier.
2000 (die_ref_table): Remove.
2001 (struct dwarf2_cu): Add DIES, DEPENDENCIES, and DIE_REF_TABLE.
2002 (struct dwarf2_per_cu_data): Add PSYMTAB. Add a comment describing
2003 the usage of this type.
2004 (struct dwarf2_per_objfile): Update comment for ALL_COMP_UNITS.
2005 (struct dwarf2_pinfo, PST_PRIVATE, DWARF_INFO_OFFSET): Remove.
2006 (struct dwarf2_queue_item, dwarf2_queue, dwarf2_queue_tail): New.
2007 (dwarf2_create_include_psymtab): Update comment.
2008 (find_partial_die): Remove third argument. Remove unreachable call
2009 to error ().
2010 (dwarf2_find_containing_comp_unit): Update comments. Change one
2011 assertion to an error. Remove an unreachable error.
2012 (dwarf2_find_comp_unit): Update comments.
2013 (type_at_offset): Remove dead code.
2014 (make_cleanup_free_die_list, dwarf2_empty_hash_tables): Remove.
2015 (store_in_ref_table): Add CU argument.
2016 (follow_die_ref): Take DIE, attribute, and CU arguments. Handle
2017 inter-compilation-unit references.
2018 (load_full_comp_unit, process_full_comp_unit): New functions, based
2019 on psymtab_to_symtab_1.
2020 (psymtab_to_symtab_1): Use them.
2021 (dwarf2_add_dependence): New function.
2022 (dwarf2_build_psymtabs_hard): Set the psymtab in per_cu. Always create
2023 a per_cu structure, and save it in READ_PSYMTAB_PRIVATE.
2024 (partial_die_parent_scope, guess_structure_name): Update for changes
2025 to find_partial_die.
2026 (dwarf2_psymtab_to_symtab): Initialize dwarf2_per_objfile here.
2027 (queue_comp_unit, process_queue, dwarf2_release_queue): New.
2028 (read_comp_unit): Don't call dwarf2_empty_hash_tables.
2029 (read_die_and_children): Update call to store_in_ref_table.
2030 (do_free_die_list_cleanup): Remove.
2031 (fixup_partial_die): Update for changes to find_partial_die.
2032 (read_full_die): Handle queueing absolute references.
2033 (read_attribute_value): Use DW_ADDR for all DW_FORM_ref* forms.
2034 (dwarf2_attr, die_specification, die_type)
2035 (die_containing_type, dwarf2_extension): Update calls to
2036 follow_die_ref.
2037 (dump_die): Update DW_FORM_ref* handling.
2038 (dwarf2_get_ref_die_offset): Likewise.
2039 (free_one_comp_unit): Release the dies list.
2040 (dwarf2_mark_helper): New function.
2041 (dwarf2_mark): Use it.
2042
2043 2004-10-05 Mark Kettenis <kettenis@jive.nl>
2044
2045 * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
2046 when writing to memory.
2047
2048 2004-10-05 Kei Sakamoto <sakamoto.kei@renesas.com>
2049
2050 * m32r-tdep.c (m32r_use_struct_convention): Delete function.
2051 (m32r_extract_struct_value_address): Delete function.
2052 (m32r_return_value): New function.
2053 (m32r_gdbarch_init): Instead of store_return_value,
2054 extract_return_value, deprecated_extract_struct_value_address
2055 and deprecated_use_struct_convention, set return_value.
2056
2057 2004-10-03 Daniel Jacobowitz <dan@debian.org>
2058
2059 * dwarf2read.c (read_subrange_type): Add comment for variable
2060 sized arrays.
2061
2062 2004-10-03 Paul Hilfinger <hilfingr@nile.gnat.com>
2063
2064 * Makefile.in (.l.c): Modify rule for compatibility with recent
2065 versions of flex, and remove most command-line options.
2066 * ada-lex.l: Add %options line in place of -I -i and -s command-line
2067 options.
2068
2069 2004-10-02 Paul N. Hilfinger <Hilfinger@gnat.com>
2070
2071 Turn on initial Ada support (mainly expression evaluation).
2072
2073 * Makefile.in (SFILES): Remove ada-tasks.c.
2074 (HFILES_NO_SRCDIR): Add ada-lang.h.
2075 (COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
2076 (YYOBJ): Add ada-exp.o.
2077 (rule .l.c): Generalize to not mention ada.
2078 * symtab.c: Include ada-lang.h.
2079 (symbol_natural_name, symbol_demangled_name)
2080 (symbol_search_name): Add Ada case.
2081
2082 2004-10-01 Andrew Cagney <cagney@gnu.org>
2083
2084 * Makefile.in (COMMON_OBS): Add inf-child.o.
2085 * config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
2086 * config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
2087 * config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
2088 * config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
2089 * config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
2090 * config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
2091 * config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
2092 * config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
2093 * config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
2094 * config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
2095 * config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
2096 * config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
2097 * config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
2098
2099 * target.c (xfer_using_stratum): Change return type to LONGEST.
2100 On each iteration offset, readbuf and writebuf.
2101 * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
2102 partial_length, and read/modify/write predicate, update comments.
2103 Pass buffer.word to ptrace write.
2104
2105 2004-10-01 Paul N. Hilfinger <Hilfinger@gnat.com>
2106
2107 * symfile.c (init_filename_language_table): Add extensions for
2108 Ada.
2109 * defs.h (enum language): Add language_ada.
2110 * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
2111 * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
2112 (add_symbols_from_enclosing_procs): Make a no-op for now.
2113 (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
2114 (extended_canonical_line_spec, find_sal_from_funcs_and_line)
2115 (find_line_in_linetable, find_next_line_in_linetable)
2116 (read_all_symtabs, is_plausible_func_for_line)
2117 (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
2118 (is_runtime_sym_defined, check_size): Remove declaration.
2119 (function_name_from_pc, ada_translate_error_message)
2120 (ada_lookup_minimal_symbol): Remove definition.
2121 (ada_add_block_symbols): Remove useless label.
2122 * ada-lang.h (ada_maybe_exception_partial_symbol): Remove
2123 useless declaration.
2124 (ada_is_exception_sym): Likewise.
2125
2126 2004-09-30 Kei Sakamoto <sakamoto.kei@renesas.com>
2127
2128 Add m32r-linux support.
2129 * configure.tgt: Add m32r*-*-linux*.
2130 * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
2131 and m32r-linux-tdep.c.
2132 (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
2133 * m32r-tdep.c: Move some definitions to m32r-tdep.h.
2134 * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
2135 m32r-linux-tdep.c.
2136 * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
2137 config/m32r/linux.mh, config/m32r/linux.mt,
2138 config/m32r/nm-linux.h: New files.
2139
2140 2004-09-30 Joel Brobecker <brobecker@gnat.com>
2141
2142 * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
2143 (mips32_fetch_instruction): Remove, unused.
2144
2145 2004-09-30 Joel Brobecker <brobecker@gnat.com>
2146
2147 * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
2148 conditions that will always be true.
2149
2150 2004-09-30 Mark Kettenis <kettenis@gnu.org>
2151
2152 * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
2153 (vaxbsd_fetch_inferior_registers): Rename from
2154 fetch_inferior_registers. Make static.
2155 (vaxbsd_store_inferior_registers): Rename from
2156 store_inferior_registers. Make static.
2157 (_initialize_vaxbsd_nat): Construct and add target vector.
2158 * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
2159 inftarg.o. Add inf-child.o and inf-ptrace.o.
2160 * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
2161 inftarg.o. Add inf-child.o and inf-ptrace.o.
2162 (NAT_FILE): Remove.
2163 * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
2164 inftarg.o. Add inf-child.o and inf-ptrace.o.
2165 (NAT_FILE): Remove.
2166 * Makefile.in (vaxbsd-nat.o): Update dependencies.
2167
2168 * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
2169 (m88kbsd_fetch_inferior_registers): Rename from
2170 fetch_inferior_registers. Make static.
2171 (m88kbsd_store_inferior_registers): Rename from
2172 store_inferior_registers. Make static.
2173 (_initialize_m88kbsd_nat): New prototype and function.
2174 * config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
2175 inftarg.o. Add inf-child.o and inf-ptrace.o.
2176 (NAT_FILE): Remove.
2177 * Makefile.in (m88kbsd-nat.o): Update dependencies.
2178
2179 2004-09-30 Andrew Cagney <cagney@gnu.org>
2180
2181 * target.c (target_xfer_partial): New function.
2182 (target_read_memory_partial, target_write_memory_partial)
2183 (default_xfer_partial, target_read_partial, target_write_partial)
2184 (xfer_using_stratum): Use.
2185 (debug_to_xfer_partial): Delete function.
2186 (setup_target_debug): Do not override to_xfer_partial.
2187
2188 2004-09-30 Mark Kettenis <kettenis@chello.nl>
2189
2190 * fork-child.c: Update copyright year. Fix coding style.
2191
2192 2004-09-29 Mark Kettenis <kettenis@gnu.org>
2193
2194 * defs.h (msavestring, mstrsave): Remove prototypes.
2195 * utils.c (msavestring, mstrsave): Remove functions.
2196 * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
2197 * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
2198 of mstrsave.
2199 * source.c (find_and_open_source): Use xstrdup instead of
2200 mstrsave.
2201
2202 2004-09-30 Andrew Cagney <cagney@gnu.org>
2203
2204 * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
2205 (inf_ptrace_xfer_memory): Delete.
2206 * target.c (target_xfer_partial_p, xfer_using_stratum): New.
2207 (target_read_memory, target_write_memory): Use xfer_using_stratum
2208 when target_xfer_partial_p.
2209 (debug_target): Move to start of file.
2210 (target_read_memory_partial, target_write_memory_partial): Use
2211 to_xfer_partial when target_xfer_partial_p.
2212
2213 * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
2214 inf_ptrace_xfer_memory with equivalent code.
2215 * inftarg.c (child_xfer_partial): When performing a write, pass
2216 writebuf to child_xfer_memory.
2217
2218 * target.c (target_read_string): Use target_read_memory instead of
2219 target_xfer_memory.
2220
2221 2004-09-29 Andrew Cagney <cagney@gnu.org>
2222
2223 * infptrace.c (kill_inferior): Fix typo, in previous inline. Pass
2224 the address of status.
2225
2226 * infptrace.c (ptrace_wait): Mention problem with HPUX.
2227 (kill_inferior): Inline ptrace_wait call.
2228 * linux-nat.c (kill_inferior): Inline ptrace_wait call.
2229 * inftarg.c (child_wait): Inline ptrace_wait call.
2230
2231 * target.h (struct target_ops): Delete field to_post_wait.
2232 (target_post_wait): Delete macro.
2233 (child_post_wait): Delete declaration.
2234 * target.c (update_current_target, update_current_target)
2235 (debug_to_post_wait, setup_target_debug): Delete functions and
2236 references.
2237 * infttrace.c (ptrace_wait): Delete call to target_post_wait.
2238 * inftarg.c (child_post_wait): Delete.
2239 (init_child_ops): Do not set to_post_wait.
2240 * infptrace.c (ptrace_wait): Delete call to target_post_wait.
2241 * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
2242 * inf-child.c (inf_child_post_wait): Delete.
2243 (inf_child_target): Do not set to_post_wait.
2244 * inf-ptrace.c (inf_ptrace_post_wait): Delete.
2245 (inf_ptrace_target): Do not set to_post_wait.
2246
2247 * wince.c (child_ops): Delete.
2248 * win32-nat.c (child_ops): Delete.
2249
2250 * inftarg.c (inftarg_set_find_memory_regions)
2251 (inftarg_set_make_corefile_notes): Delete functions.
2252 (_initialize_linux_nat): Inline calls.
2253
2254 * target.h (child_ops): Declare.
2255 * inftarg.c (child_ops): Move from here ...
2256 * target.c (child_ops): ... to here.
2257 * wince.c (child_ops): Delete extern declaration.
2258 * win32-nat.c (child_ops): Delete extern declaration.
2259 * linux-nat.c (child_ops): Delete extern declaration.
2260 * hpux-thread.c (child_ops): Delete extern declaration.
2261
2262 2004-09-28 Mark Kettenis <kettenis@gnu.org>
2263
2264 * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
2265
2266 2004-09-28 Mark Kettenis <kettenis@gnu.org>
2267
2268 * configure.in: Only set host_makefile_frag when building a native
2269 debugger.
2270 * configure: Regenerate.
2271
2272 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
2273 for OpenBSD ELF.
2274
2275 2004-09-28 Andrew Cagney <cagney@gnu.org>
2276
2277 Problem identified by Paul Hilfinger.
2278 * Makefile.in (ada_lex_c): Define.
2279 (ada-lex.o): Delete rule.
2280
2281 * linux-proc.c: Delete file.
2282 * Makefile.in: Update.
2283 * config/sparc/linux64.mh (NATDEPFILES):
2284 * config/sparc/linux.mh (NATDEPFILES): Update.
2285 * config/s390/s390.mh (NATDEPFILES): Update.
2286 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
2287 * config/powerpc/linux.mh (NATDEPFILES): Update.
2288 * config/pa/linux.mh (NATDEPFILES): Update.
2289 * config/mips/linux.mh (NATDEPFILES): Update.
2290 * config/m68k/linux.mh (NATDEPFILES): Update.
2291 * config/ia64/linux.mh (NATDEPFILES): Update.
2292 * config/i386/linux64.mh (NATDEPFILES): Update.
2293 * config/i386/linux.mh (NATDEPFILES): Update.
2294 * config/arm/linux.mh (NATDEPFILES): Update.
2295 * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
2296 * linux-nat.c: Update copyright. Include <sys/param.h>,
2297 <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
2298 "gdbthread.h", "gdb_stat.h", <fcntl.h>.
2299 (O_LARGEFILE): Possibly define.
2300 (_initialize_linux_nat, linux_proc_pending_signals)
2301 (add_line_to_sigset, linux_proc_xfer_memory)
2302 (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
2303 (linux_nat_do_registers, linux_nat_corefile_thread_callback)
2304 (struct linux_corefile_thread_data)
2305 (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
2306 (child_pid_to_exec_file): Insert code previously in linux-proc.c.
2307
2308 2004-09-16 Andrew Cagney <cagney@gnu.org>
2309
2310 * lin-lwp.c: Delete file.
2311 * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
2312 <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
2313 (status_to_str, init_lwp_list, add_lwp, delete_lwp)
2314 (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
2315 (linux_nat_attach, detach_callback, linux_nat_detach)
2316 (resume_callback, resume_clear_callback, linux_nat_resume)
2317 (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
2318 (stop_wait_callback, linux_nat_has_pending, flush_callback)
2319 (status_callback, running_callback, count_events_callback)
2320 (select_singlestep_lwp_callback, select_event_lwp_callback)
2321 (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
2322 (child_wait, stop_and_resume_callback, linux_nat_wait)
2323 (kill_callback, kill_wait_callback, linux_nat_kill)
2324 (linux_nat_create_inferior, linux_nat_mourn_inferior)
2325 (linux_nat_xfer_memory, linux_nat_thread_alive)
2326 (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
2327 (_initialize_linux_nat): New functions.
2328 * Makefile.in: Update all dependencies.
2329 * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
2330 * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2331 * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
2332 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
2333 * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2334 * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2335 * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2336 * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2337 * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2338 * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
2339 * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2340 * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2341 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
2342
2343 2004-09-27 Mark Kettenis <kettenis@gnu.org>
2344
2345 * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
2346 config/i386/obsd64.mh (NAT_FILE): Remove variable.
2347
2348 * configure.in: Don't comment out NATDEPFILES in the generated
2349 Makefile if NAT_FILE is unset.
2350 * configure: Regenerate.
2351
2352 2004-09-27 Andrew Cagney <cagney@gnu.org>
2353
2354 * infrun.c (check_for_old_step_resume_breakpoint): Delete.
2355 (insert_step_resume_breakpoint): Delete.
2356 (insert_step_resume_breakpoint_at_frame): New function.
2357 (insert_step_resume_breakpoint_at_sal): New function.
2358 (handle_inferior_event, step_into_function)
2359 (insert_step_resume_breakpoint): Simplify by using same.
2360
2361 * gdb_indent.sh (types): Add caddr_t to list of predefined types.
2362
2363 2004-09-26 Mark Kettenis <kettenis@gnu.org>
2364
2365 * fbsd-proc.c: Remove file.
2366 * Makefile.in (fbsd-proc.o): Remove dependency.
2367
2368 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
2369 code together.
2370
2371 * config/i386/nm-fbsd64.h: Remove file.
2372 * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2373
2374 2004-09-26 Mark Kettenis <kettenis@gnu.org>
2375
2376 * amd64-nat.h: Update copyright year.
2377 (amd64bsd_target): New prototype.
2378 * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
2379 (amd64bsd_target): New function.
2380 (amd64bsd_fetch_inferior_registers): Rename from
2381 fetch_inferior_registers. Make static.
2382 (amd64bsd_store_inferior_registers): Rename from
2383 store_inferior_registers. Make static.
2384 * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
2385 (_initialize_amd64fbsd_nat): Construct and add target vector.
2386 * amd64nbsd-nat.o: Include "target.h".
2387 (_initialize_amd64nbsd_nat): Construct and add target vector.
2388 * amd64obsd-nat.c: Include "target.h".
2389 (_initialize_amd64obsd_nat): Construct and add target vector.
2390 * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
2391 * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
2392 inftarg.o and fbsd-proc.o. Add inf-child.o, inf-ptrace.o and
2393 fbsd-nat.o.
2394 * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
2395 Remove infptrace.o and inftarg.o. Add inf-child.o and
2396 inf-ptrace.o.
2397 * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
2398 (amd64obsd-nat.o): Update dependencies.
2399
2400 2004-09-25 Mark Kettenis <kettenis@gnu.org>
2401
2402 * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
2403 * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
2404 * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
2405 * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
2406 * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
2407
2408 * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
2409 Inline attach call.
2410 (inf_ptrace_detach): Inline detach call.
2411
2412 * configure.in: Check for waddstr instead of mvwaddstr when
2413 searching for curses library. Check for wborder.
2414 * configure, config.in: Regenerate.
2415 * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
2416 available.
2417
2418 * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
2419
2420 2004-09-24 Robert Picco <Robert.Picco@hp.com>
2421
2422 Committed by Andrew Cagney.
2423 * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
2424 (show_remote_protocol_p_packet_cmd): New. Implement 'p' packet.
2425 configuration.
2426 (fetch_register_using_p): Implement 'p' packet. Based on code by
2427 Fernando Nasser.
2428 (remote_fetch_registers): Call fetch_register_using_p.
2429 (init_all_packet_configs, show_remote_cmd)
2430 (_initialize_remote): Add p-packet.
2431
2432 2004-09-24 Mark Kettenis <kettenis@gnu.org>
2433
2434 * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
2435 instead of call_ptrace. Call wait directly instead of
2436 ptrace_wait.
2437 (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
2438 (inf_ptrace_wait): Inline ptrace_wait call.
2439
2440 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
2441
2442 * Makefile.in (.y.c): Revert previous change. ../ylwrap was
2443 rolled back instead.
2444
2445 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
2446
2447 * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
2448 the new argument order.
2449
2450 2004-09-23 Corinna Vinschen <vinschen@redhat.com>
2451
2452 * MAINTAINERS: Remove "broken" from XStormy16 entry.
2453 * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
2454 (struct gdbarch_tdep): Remove.
2455 (struct xstormy16_frame_cache): New frame cache structure.
2456 (xstormy16_register_byte, xstormy16_register_raw_size)
2457 (xstormy16_reg_virtual_type, xstormy16_register_type)
2458 (xstormy16_push_arguments, xstormy16_push_return_address)
2459 (xstormy16_pop_frame, xstormy16_store_struct_return)
2460 (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
2461 (xstormy16_frame_saved_register, xstormy16_get_saved_register)
2462 (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
2463 (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
2464 (xstormy16_frame_chain, xstormy16_frame_chain_valid,
2465 (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
2466 (xstormy16_use_struct_convention): Drop gcc_p parameter.
2467 (xstormy16_extract_return_value, xstormy16_store_return_value):
2468 Regcachify. Drop useless struct convention handling.
2469 (xstormy16_register_type, xstormy16_return_value)
2470 (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
2471 (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
2472 (xstormy16_frame_prev_register, xstormy16_frame_this_id)
2473 (xstormy16_frame_base_address, xstormy16_frame_sniffer)
2474 (xstormy16_unwind_sp, xstormy16_unwind_pc)
2475 (xstormy16_unwind_dummy_id) : New functions.
2476 (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
2477 of xstormy16_scan_prologue.
2478 (xstormy16_frame_unwind): New frame_unwind structure.
2479 (xstormy16_frame_base): New frame_base structure.
2480 (xstormy16_gdbarch_init): Accomodate all of the above changes.
2481 Reshuffle for better readability. Also add dwarf2_frame_sniffer.
2482
2483 2004-09-22 Mark Kettenis <kettenis@gnu.org>
2484
2485 * language.c (language_gdbarch_post_init): Fix off-by one error.
2486
2487 2004-09-21 Daniel Jacobowitz <dan@debian.org>
2488
2489 * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
2490 (struct dwarf2_offset_and_type): New.
2491 (set_die_type, reset_die_and_siblings_types, get_die_type)
2492 (offset_and_type_hash, offset_and_type_eq): New functions.
2493 (read_structure_type, read_enumeration_type, read_array_type)
2494 (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
2495 (read_tag_reference_type, read_tag_const_type)
2496 (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
2497 (read_typedef, read_base_type, read_subrange_type): Use
2498 set_die_type.
2499
2500 2004-09-20 Daniel Jacobowitz <dan@debian.org>
2501
2502 * Makefile.in (dwarf2read.o): Update dependencies.
2503 * dwarf2read.c: Include "command.h" and "gdbcmd.h".
2504 (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
2505 and read_in_chain.
2506 (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
2507 mark, and has_form_ref_addr.
2508 (struct dwarf2_per_cu_data): New.
2509 (dwarf2_max_cache_age): New.
2510 (dwarf2_build_psymtabs_hard): Free cached compilation units
2511 after loading. Create and manage the list of compilation units.
2512 Remove unnecessary NULL initialization. Fix indentation.
2513 (psymtab_to_symtab_1): Initialize all of CU.
2514 (dwarf2_read_abbrevs): Set has_form_ref_addr.
2515 (find_partial_die): Use dwarf2_find_containing_comp_unit
2516 and load_comp_unit.
2517 (free_stack_comp_unit): Update comments. Clear the per-cu
2518 pointer. Handle aging.
2519 (dwarf2_find_containing_comp_unit, free_cached_comp_units)
2520 (age_cached_comp_units, free_one_cached_comp_unit)
2521 (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
2522 (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
2523 (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
2524 (show_dwarf2_cmd): New.
2525 (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
2526 and "maint show dwarf2 max-cache-age".
2527 * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
2528 externs.
2529 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
2530 global.
2531
2532 2004-09-20 Jeff Johnston <jjohnstn@redhat.com>
2533
2534 * dwarf2read.c (typename_concat): Change prototype to accept obstack
2535 and dwarf2_cu struct pointer as arguments. Change function to use
2536 obstack if provided and use dwarf2_cu to determine language-specific
2537 separator.
2538 (partial_die_parent_scope): Change comment to include java. Use
2539 new version of typename_concat instead of obconcat.
2540 (partial_die_full_name): Use typename_concat.
2541 (read_namespace): Ditto.
2542 (read_enumeration_type): Use typename_concat instead of obconcat.
2543 (new_symbol): Ditto.
2544 (add_partial_symbol): Enhance tests for C++ to also test for Java.
2545 (guess_structure_name): Ditto.
2546 (read_subroutine_type): Ditto.
2547 (read_structure_type): Ditto.
2548 (is_vtable_name): Add Java support.
2549 (determine_class_name): Switch to new typename_concat call.
2550 (determine_prefix): Switch to new typename_concat call.
2551 * jv-exp.y (FuncStart): New pattern.
2552 (MethodInvocation): Add support for simple function calls. Change
2553 warning message for other forms of inferior call currently not
2554 supported.
2555 * valarith.c (value_subscript): Treat an array with upper-bound
2556 of -1 as unknown size.
2557
2558 2004-09-20 Daniel Jacobowitz <dan@debian.org>
2559
2560 * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
2561 (lookup_partial_symtab): Use symtab_to_fullname.
2562
2563 2004-09-19 Jim Blandy <jimb@redhat.com>
2564
2565 * minsyms.c (lookup_minimal_symbol): Doc fix.
2566
2567 2004-09-20 Andrew Cagney <cagney@gnu.org>
2568
2569 * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
2570 CHILD_RESUME.
2571 * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
2572 * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
2573 KILL_INFERIOR.
2574 * infptrace.c: Update.
2575
2576 2004-09-19 Daniel Jacobowitz <dan@debian.org>
2577
2578 * symtab.c (output_source_filename): Mark first argument as const.
2579 (sources_info): Use symtab_to_fullname and psymtab_to_fullname
2580 for "info sources" output.
2581
2582 2004-09-20 Mark Kettenis <kettenis@gnu.org>
2583
2584 * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
2585 <machine/vmparam.h>.
2586 (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
2587 (register_u_addr): Remove prototype.
2588
2589 2004-09-19 Mark Kettenis <kettenis@gnu.org>
2590
2591 * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
2592 (i386bsd_fetch_inferior_registers): Rename from
2593 fetch_inferior_registers. Make static.
2594 (i386bsd_store_inferior_registers): Rename from
2595 store_inferior_registers. Make static.
2596 (i386bsd_target): New function.
2597 * i386bsd-nat.h: New file.
2598 * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
2599 "i386bsd-nat.h".
2600 (i386fbsd_resume): Rename from child_resume. Make static.
2601 (_initialize_i386fbsd_nat): Construct and add target vector.
2602 * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
2603 (_initialize_i386nbsd_nat): Construct and add target vector.
2604 * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
2605 Remove defines.
2606 * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
2607 and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
2608 * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
2609 inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
2610 (LOADLIBES): New variable.
2611 * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
2612 inf-ptrace.o. Remove inftarg.o.
2613 * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
2614 inf-ptrace.o. Remove inftarg.o.
2615 * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
2616 inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
2617 (LOADLIBES): New variable.
2618 * Makefile.in (i386bsd_nat_h): New variable.
2619 (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
2620 dependencies.
2621
2622 * sparc64nbsd-tdep.c: Include "objfiles.h".
2623 (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
2624 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
2625 svr4_lp64_fetch_link_map_offsets.
2626 * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
2627 "nbsd-tdep.h".
2628 (sparc64obsd_init_abi): Set in_solib_call_trampoline and
2629 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
2630 svr4_lp64_fetch_link_map_offsets.
2631 * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
2632 dependencies.
2633
2634 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
2635 * fbsd-nat.h: New file.
2636 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
2637 (fbsd_nat_h): New variable.
2638 (fbsd-nat.o): New dependency.
2639
2640 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
2641 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
2642
2643 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
2644 comment.
2645
2646 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
2647
2648 * ada-exp.y (type_int): New function to add layer of abstraction
2649 around references to expression types.
2650 (type_long): Ditto.
2651 (type_long_long): Ditto.
2652 (type_float): Ditto.
2653 (type_double): Ditto.
2654 (type_long_double): Ditto.
2655 (type_char): Ditto.
2656 (type_system_address): Ditto.
2657 (simple_exp): Use type_* functions in place of builtin_*
2658 variables.
2659 (exp): Ditto.
2660 (write_var_from_name): Ditto.
2661 (write_object_renaming): Ditto.
2662 * ada-lang.c (ada_create_fundamental_type): Remove redundant
2663 declaration.
2664 (build_ada_types): Remove, replacing with...
2665 (ada_language_arch_info): New function to initialize primitive
2666 type vector in language_arch_info.
2667 (ada_array_length): Remove use of builtin_type_ada_int.
2668 (value_pos_atr): Ditto.
2669 (ada_evaluate_subexp): Ditto.
2670 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
2671 builtin_type_ada_long_long, builtin_type_ada_char,
2672 builtin_type_ada_float, builtin_type_ada_double,
2673 builtin_type_ada_long_double, builtin_type_ada_natural,
2674 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
2675 (ada_builtin_types): Remove.
2676 (ada_language_defn): Remove entries for la_builtin_type_vector and
2677 string_char_type and use ada_language_arch_info.
2678 (_initialize_ada_language): Do type-vector initialization along
2679 the lines of c-lang.c.
2680 (ada_create_fundamental_type): Break up line.
2681 (ada_dump_symtab): Remove unused function.
2682 (enum ada_primitive_types): Define.
2683 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
2684 builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
2685 builtin_type_ada_float, builtin_type_ada_double,
2686 builtin_type_ada_long_double, builtin_type_ada_natural,
2687 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
2688 * ada-lex.l: Use type_* functions in place of builtin_* variables.
2689 (processInt): Ditto.
2690 (processReal): Ditto.
2691 (name_lookup): Ditto.
2692 * ada-typeprint.c (print_range): Use builtin_type_int, not
2693 builtin_type_ada_int.
2694
2695 2004-09-18 Mark Kettenis <kettenis@gnu.org>
2696
2697 * i386-tdep.c (i386_register_name): Rename regno to regnum.
2698
2699 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
2700 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
2701 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
2702 * configure.in: Improve checks for curses library by checking for
2703 mvwaddstr instead of initscr. Drop HP curses in favour of
2704 standard curses on HP-UX.
2705 * configure: Regenerated.
2706
2707 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
2708
2709 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
2710 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
2711 Minor formatting changes.
2712 (empty_array): Slight rewrite for formatting.
2713 (emit_char,parse,ada_language_defn,build_ada_types,
2714 ada_is_exception_sym, _initialize_ada_language): Move
2715 definitions around.
2716 (ada_dump_symtab): Remove unused definition.
2717 (ada_maybe_exception_partial_symbol): Remove unused definition.
2718
2719 2004-09-16 Andrew Cagney <cagney@gnu.org>
2720
2721 * inf-child.c: Include "gdb_string.h".
2722 (inf_child_core_file_to_sym_file): Delete.
2723 (inf_child_target): Set to_fetch_registers and to_store_registers.
2724 * inf-ptrace.c: Include "gdb_string.h".
2725 * Makefile.in: Update all dependencies.
2726
2727 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
2728 problem.
2729
2730 2004-09-14 Joel Brobecker <brobecker@gnat.com>
2731
2732 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
2733 call to heuristic_proc_desc. Remove code that became redundant
2734 as a consequence.
2735 (read_next_frame_reg): Remove special case for SP_REGNUM.
2736 (set_reg_offset): Fix small typo.
2737 (reset_saved_regs): New procedure.
2738 (mips32_heuristic_proc_desc): No longer compute a fake
2739 procedure descriptor. Compute the full frame cache instead.
2740 Some minor comment reformatting.
2741
2742 2004-09-14 Andrew Cagney <cagney@gnu.org>
2743
2744 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
2745 maintainer.
2746
2747 * thread-db.c (thread_db_new_objfile): Assume that there is a
2748 child process.
2749
2750 2004-09-13 Jim Blandy <jimb@redhat.com>
2751
2752 * valops.c (value_assign): Move 'buffer' to the enclosing block,
2753 so that its storage isn't referenced after its lifetime ends.
2754
2755 * valops.c (value_assign): 'use_buffer' is initialized to zero,
2756 and never assigned to. Delete it, and the 'if (use_buffer)'
2757 clauses. Delete 'raw_buffer', since it is now unused.
2758
2759 2004-09-13 Andrew Cagney <cagney@gnu.org>
2760
2761 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
2762 * configure: Re-generate.
2763 * nlm/Makefile.in (TAGS): Update.
2764 * Makefile.in (TAGS): Update.
2765 * config/vax/nbsd.mt (TM_FILE): Update.
2766 * config/sparc/vxworks.mt (TM_FILE): Update.
2767 * config/sparc/sol2.mt (TM_FILE): Update.
2768 * config/sparc/sol2-64.mt (TM_FILE): Update.
2769 * config/sparc/obsd64.mt (TM_FILE): Update.
2770 * config/sparc/obsd.mt (TM_FILE): Update.
2771 * config/sparc/nbsd64.mt (TM_FILE): Update.
2772 * config/sparc/nbsd.mt (TM_FILE): Update.
2773 * config/sparc/linux64.mt (TM_FILE): Update.
2774 * config/sparc/linux.mt (TM_FILE): Update.
2775 * config/sparc/fbsd.mt (TM_FILE): Update.
2776 * config/sh/wince.mt (TM_FILE): Update.
2777 * config/sh/nbsd.mt (TM_FILE): Update.
2778 * config/sh/linux.mt (TM_FILE): Update.
2779 * config/sh/embed.mt (TM_FILE): Update.
2780 * config/s390/s390.mt (TM_FILE): Update.
2781 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
2782 * config/rs6000/rs6000.mt (TM_FILE): Update.
2783 * config/rs6000/aix4.mt (TM_FILE): Update.
2784 * config/powerpc/vxworks.mt (TM_FILE): Update.
2785 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
2786 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
2787 * config/powerpc/obsd.mt (TM_FILE): Update.
2788 * config/powerpc/nbsd.mt (TM_FILE): Update.
2789 * config/powerpc/linux.mt (TM_FILE): Update.
2790 * config/powerpc/aix.mt (TM_FILE): Update.
2791 * config/pa/obsd.mt (TM_FILE): Update.
2792 * config/pa/linux.mt (TM_FILE): Update.
2793 * config/pa/hppahpux.mt (TM_FILE): Update.
2794 * config/pa/hppa64.mt (TM_FILE): Update.
2795 * config/pa/hppa.mt (TM_FILE): Update.
2796 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
2797 * config/mips/wince.mt (TM_FILE): Update.
2798 * config/mips/vxmips.mt (TM_FILE): Update.
2799 * config/mips/nbsd.mt (TM_FILE): Update.
2800 * config/mips/linux.mt (TM_FILE): Update.
2801 * config/mips/irix6.mt (TM_FILE): Update.
2802 * config/mips/irix5.mt (TM_FILE): Update.
2803 * config/mips/embed.mt (TM_FILE): Update.
2804 * config/m68k/vxworks68.mt (TM_FILE): Update.
2805 * config/m68k/st2000.mt (TM_FILE): Update.
2806 * config/m68k/os68k.mt (TM_FILE): Update.
2807 * config/m68k/obsd.mt (TM_FILE): Update.
2808 * config/m68k/nbsd.mt (TM_FILE): Update.
2809 * config/m68k/monitor.mt (TM_FILE): Update.
2810 * config/m68k/linux.mt (TM_FILE): Update.
2811 * config/m68k/cisco.mt (TM_FILE): Update.
2812 * config/ia64/linux.mt (TM_FILE): Update.
2813 * config/ia64/aix.mt (TM_FILE): Update.
2814 * config/ia64/ia64.mt (TM_FILE): Update.
2815 * config/i386/vxworks.mt (TM_FILE): Update.
2816 * config/i386/obsd64.mt (TM_FILE): Update.
2817 * config/i386/obsd.mt (TM_FILE): Update.
2818 * config/i386/nto.mt (TM_FILE): Update.
2819 * config/i386/nbsd64.mt (TM_FILE): Update.
2820 * config/i386/nbsd.mt (TM_FILE): Update.
2821 * config/i386/linux64.mt (TM_FILE): Update.
2822 * config/i386/linux.mt (TM_FILE): Update.
2823 * config/i386/i386sol2.mt (TM_FILE): Update.
2824 * config/i386/i386lynx.mt (TM_FILE): Update.
2825 * config/i386/fbsd64.mt (TM_FILE): Update.
2826 * config/i386/fbsd.mt (TM_FILE): Update.
2827 * config/i386/cygwin.mt (TM_FILE): Update.
2828 * config/h8300/h8300.mt (TM_FILE): Update.
2829 * config/frv/frv.mt (TM_FILE): Update.
2830 * config/cris/cris.mt (TM_FILE): Update.
2831 * config/arm/wince.mt (TM_FILE): Update.
2832 * config/arm/nbsd.mt (TM_FILE): Update.
2833 * config/arm/linux.mt (TM_FILE): Update.
2834 * config/arm/embed.mt (TM_FILE): Update.
2835 * config/alpha/nbsd.mt (TM_FILE): Update.
2836 * config/alpha/fbsd.mt (TM_FILE): Update.
2837 * config/alpha/alpha.mt (TM_FILE): Update.
2838 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
2839 * config/alpha/alpha-linux.mt (TM_FILE): Update.
2840
2841 Eliminate event_loop_p, always has the value 1.
2842 * defs.h (event_loop_p): Delete macro.
2843 * breakpoint.c (until_break_command): Simplify.
2844 * utils.c (prompt_for_continue): Simplify.
2845 * tracepoint.c (read_actions): Simplify.
2846 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
2847 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
2848 (set_prompt, init_main): Simplify.
2849 (init_signals, disconnect): Delete, unused.
2850 * remote.c (remote_async_resume)
2851 (extended_remote_async_create_inferior): Simplify.
2852 * mi/mi-interp.c (mi_input): Delete, unused.
2853 (mi_interpreter_resume, mi_command_loop): Simplify.
2854 * interps.c (current_interp_command_loop): Simplify.
2855 * infrun.c (proceed): Simplify.
2856 * infcmd.c (run_command, continue_command, step_1, jump_command)
2857 (until_command, advance_command, finish_command)
2858 (interrupt_target_command): Simplify.
2859 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
2860
2861 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2862 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2863 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2864 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2865 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2866 * mips-tdep.c (mips_dump_tdep): Do not print same.
2867
2868 2004-09-12 Andrew Cagney <cagney@gnu.org>
2869
2870 * valprint.c (print_longest): Use fputs_filtered. Make "val"
2871 const.
2872 * Makefile.in (valprint.o): Delete explict rule.
2873
2874 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
2875 reported by Dave Anderson.
2876
2877 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
2878
2879 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
2880
2881 2004-09-12 Salvador E. Tropea <set@users.sf.net>
2882 Andrew Cagney <cagney@gnu.org>
2883
2884 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
2885 (mi_cmd_data_list_register_values)
2886 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
2887 the register number computation.
2888
2889 2004-09-12 Andrew Cagney <cagney@gnu.org>
2890
2891 * ppcnbsd-nat.c: Include "inf-ptrace.h".
2892 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
2893 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
2894 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
2895 target.
2896 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
2897 inf-ptrace.o and inf-child.o.
2898 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
2899 * Makefile.in: Update dependencies.
2900
2901 2004-09-11 Andrew Cagney <cagney@gnu.org>
2902
2903 * language.c (hex_string, hex_string_custom): Move from here ...
2904 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
2905 (CELLSIZE): Increase to 50.
2906 * language.h (hex_string, hex_string_custom): Move from here ...
2907 * defs.h: ... to here.
2908 * Makefile.in: Update all dependencies.
2909
2910 2004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
2911
2912 * language.c (local_hex_format_custom): Remove.
2913 (local_hex_string): Rename to hex_string, use C format, and move to
2914 utils.c
2915 (local_hex_string_custom): Rename to hex_string_custom and change
2916 interface. Now uses C format. Move to utils.c
2917 (local_octal_format_custom): Remove.
2918 (local_decimal_format_custom): Remove.
2919 (unknown_language_defn): Remove language-specific number
2920 formatting entries.
2921 (auto_language_defn): Ditto.
2922 (local_language_defn): Ditto.
2923 * language.h (struct language_format_info): Delete declaration.
2924 (struct language_defn): Remove language_format_info fields
2925 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
2926 (local_binary_format): Remove macro.
2927 (local_binary_format_prefix): Remove macro.
2928 (local_binary_format_specifier): Remove macro.
2929 (local_binary_format_suffix): Remove macro.
2930 (local_octal_format): Remove macro.
2931 (local_octal_format_prefix): Remove macro.
2932 (local_octal_format_specifier): Remove macro.
2933 (local_octal_format_suffix): Remove macro.
2934 (local_decimal_format): Remove macro.
2935 (local_decimal_format_prefix): Remove macro.
2936 (local_decimal_format_specifier): Remove macro.
2937 (local_decimal_format_suffix): Remove macro.
2938 (local_hex_format): Remove macro.
2939 (local_hex_format_prefix): Remove macro.
2940 (local_hex_format_specifier): Remove macro.
2941 (local_hex_format_suffix): Remove macro.
2942 (local_decimal_format_custom): Remove.
2943 (local_octal_format_custom): Remove.
2944 (local_hex_format_custom): Remove.
2945 (local_hex_string): Rename to hex_string and move to defs.h.
2946 (local_hex_string_custom): Rename to hex_string_custom, change
2947 interface, and move to defs.h.
2948 * utils.c: (int_string): New function.
2949 (hex_string): New function (from language.c).
2950 (hex_string_custom): New function (from language.c).
2951 (octal2str): New function.
2952 (decimal2str): Add width parameter.
2953 (paddr_u): Use new decimal2str interface.
2954 (paddr_d): Ditto.
2955 * defs.h (hex_string): Declare.
2956 (hex_string_custom): Declare.
2957 (int_string): Declare.
2958 * printcmd.c (print_scalar_formatted): Remove localized binary
2959 formatting.
2960 * valprint.c (print_longest): Use int_string.
2961 (print_floating): Use C hex format.
2962 (print_hex_chars): Ditto.
2963 (print_binary_chars): Remove language-specific formatting.
2964 (print_octal_chars): Use C octal format.
2965 (print_decimal_chars): Delocalize format.
2966 (print_decimal): Remove.
2967 * ada-lang.c (ada_language_defn): Remove language-specific number
2968 formatting entries.
2969 * p-lang.c (pascal_language_defn): Ditto.
2970 * c-lang.c (c_language_defn): Ditto.
2971 (cplus_language_defn): Ditto.
2972 (asm_language_defn): Ditto.
2973 (minimal_language_defn): Ditto.
2974 * f-lang.c (f_language_defn): Ditto.
2975 * jv-lang.c (java_language_defn): Ditto.
2976 * m2-lang.c (m2_language_defn): Ditto.
2977 * scm-lang.c (scm_language_defn): Ditto.
2978 * objc-lang.c (objc_language_defn): Ditto.
2979 * memattr.c (mem_info_command): Use renamed hex_string_custom with
2980 new interface.
2981 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
2982 * ui-out.c (ui_out_field_core_addr): Ditto.
2983 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
2984 * exec.c (print_section_info): Ditto.
2985 * i387-tdep.c (print_i387_status_word): Ditto.
2986 (print_i387_control_word): Ditto.
2987 (i387_print_float_info): Ditto.
2988 * maint.c (maint_print_section_info): Ditto.
2989 * solib.c (info_sharedlibrary_command): Ditto.
2990 * somsolib.c (som_sharedlibrary_info_command): Ditto.
2991 * symtab.c (print_msymbol_info): Ditto.
2992 * tracepoint.c (tracepoints_info): Ditto.
2993 * solib-frv.c (lm_base): Ditto.
2994 (frv_current_sos): Ditto.
2995 (enable_break2): Ditto.
2996 (enable_break): Ditto.
2997 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
2998 (process_one_symbol): Ditto.
2999 * infcmd.c (program_info): Ditto.
3000 * mdebugread.c (parse_partial_symbols): Ditto.
3001 * symfile.c (add_symbol_file_command): Ditto.
3002 * cli/cli-cmds.c (edit_command): Ditto.
3003 (list_command): Ditto.
3004 * infcall.c (call_function_by_hand): Ditto.
3005 * remote-vx.c (vx_run_files_info): Ditto.
3006 (vx_wait): Ditto.
3007 (vx_attach): Ditto.
3008 (vx_detach): Ditto.
3009 (vx_kill): Ditto.
3010 * aix-thread.c (pdc_symbol_addrs): Ditto.
3011 (pdc_read_regs): Ditto.
3012 (pdc_write_regs): Ditto.
3013 (pdc_read_data): Ditto.
3014 (pdc_write_data): Ditto.
3015 * d10v-tdep.c (display_trace): Ditto.
3016 * rs6000-nat.c (find_toc_address): Ditto.
3017 * aix-thread.c: Don't include language.h.
3018 * buildsym.c: Ditto.
3019 * dbxread.c: Ditto.
3020 * mdebugread.c: Ditto.
3021 * rs6000-nat.c: Ditto.
3022 * buildsym.c (make_blockvector): Use renamed hex_string.
3023
3024 2004-09-10 Jason Molenda (jmolenda@apple.com)
3025
3026 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
3027 chars after 'if' or 'while' commands in user-defined commands.
3028
3029 2004-09-08 Jim Blandy <jimb@redhat.com>
3030
3031 Fix bug reported and analyzed by Olivier Crete:
3032 * symfile.c (copy_section_addr_info): New function.
3033 (symbol_file_add_with_addrs_or_offsets): Use it to save the
3034 original set of address arguments, instead of handwritten code
3035 that uses one length to allocate and a different length to
3036 initialize. Use make_cleanup_free_section_addr_info.
3037 * symfile.h (copy_section_addr_info): New declaration.
3038 * utils.c: #include "symfile.h".
3039 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
3040 New functions.
3041 * defs.h (make_cleanup_free_section_addr_info): New declaration.
3042 * Makefile.in (utils.o): Update dependencies.
3043
3044 2004-09-08 Andrew Cagney <cagney@gnu.org>
3045
3046 * thread-db.c (keep_thread_db): Delete.
3047 (thread_db_new_objfile, thread_db_create_inferior)
3048 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
3049
3050 2004-09-08 Mark Kettenis <kettenis@gnu.org>
3051
3052 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
3053 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
3054 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
3055 (i386_frameless_signal_p): Remove prototype.
3056 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
3057 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
3058 I386_SSE_NUM_REGS.
3059 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
3060 instead of FP0_REGNUM.
3061 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
3062 of FP0_REGNUM and FPC_REGNUM.
3063
3064 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
3065 (sunos_solib_create_inferior_hook): Don't call
3066 sunos_relocate_main_executable.
3067
3068 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
3069 solib_svr4_fetch_link_map_offsets to
3070 svr4_ilp32_fetch_link_map_offsets.
3071 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
3072 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
3073 svr4_ilp32_fetch_link_map_offsets.
3074 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
3075
3076 2004-09-07 Jim Blandy <jimb@redhat.com>
3077
3078 * frame.h (frame_register): Doc fix.
3079
3080 2004-09-07 Andrew Cagney <cagney@gnu.org>
3081
3082 * vx-share/wait.h: Delete #ifdef USG.
3083 * utils.c (request_quit): Ditto.
3084 * tui/tui.c (tui_reset): Ditto.
3085 * remote.c: Ditto.
3086 * remote-sds.c: Ditto.
3087 * remote-rdi.c: Ditto.
3088 * mdebugread.c: Ditto.
3089 * m68klinux-nat.c: Ditto.
3090 * infttrace.c: Ditto.
3091 * infptrace.c: Ditto.
3092 * i386v-nat.c: Ditto.
3093 * exec.c: Ditto.
3094 * dbxread.c: Ditto.
3095 * core-aout.c: Ditto.
3096
3097 2004-09-05 Joel Brobecker <brobecker@gnat.com>
3098
3099 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
3100 heuristic_proc_desc.
3101 (mips_insn32_frame_cache): Likewise.
3102
3103 2004-09-04 Joel Brobecker <brobecker@gnat.com>
3104
3105 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
3106 left behind by error.
3107
3108 2004-09-04 Joel Brobecker <brobecker@gnat.com>
3109
3110 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
3111 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
3112
3113 2004-09-04 Joel Brobecker <brobecker@gnat.com>
3114
3115 * config/rs6000/xm-aix4.h: Remove this file.
3116 * config/rs6000/aix4.mh (XM_FILE): Delete.
3117
3118 2004-09-04 Joel Brobecker <brobecker@gnat.com>
3119
3120 * config/rs6000/xm-rs6000.h: Remove this file.
3121 * config/rs6000/rs6000.mh (XM_FILE): Remove.
3122
3123 2004-09-03 Andrew Cagney <cagney@gnu.org>
3124
3125 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
3126 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
3127 only use.
3128
3129 * mips-tdep.c (temp_saved_regs): Delete.
3130 (set_reg_offset): Replace saved_regs parameter with this_cache.
3131 (heuristic_proc_desc, mips16_heuristic_proc_desc)
3132 (mips32_heuristic_proc_desc): Add this_cache parameter.
3133 (mips_insn32_frame_cache, mips_insn16_frame_cache)
3134 (after_prologue): Pass a NULL this_cache.
3135
3136 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
3137 non-kernel trap prologues.
3138
3139 * mips-tdep.c (find_proc_desc): Delete function.
3140 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
3141 simplify.
3142 (mips_insn16_frame_cache): Replace find_proc_desc with code from
3143 mips_insn32_frame_cache.
3144
3145 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
3146 Simplify as NEXT_FRAME is NULL.
3147 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
3148
3149 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
3150 local variable.
3151 (mips_skip_prologue): Update.
3152
3153 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
3154 "cur_frame" parameter.
3155 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
3156 (mips_insn32_frame_cache, find_proc_desc): Update
3157
3158 * config/vax/nm-obsd.h: Delete file.
3159 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3160 * config/vax/nm-nbsd.h: Delete file.
3161 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
3162 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3163 * config/sh/nm-nbsd.h: Delete file.
3164 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3165 * config/rs6000/nm-rs6000ly.h: Delete file.
3166 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
3167 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
3168 * config/powerpc/nm-obsd.h: Delete file.
3169 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3170 * config/powerpc/nm-nbsd.h: Delete file.
3171 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3172 * config/pa/nm-obsd.h: Delete file.
3173 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3174 * config/mips/nm-nbsd.h: Delete file.
3175 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3176 * config/m88k/nm-obsd.h: Delete file.
3177 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3178 * config/m68k/nm-nbsd.h: Delete file.
3179 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
3180 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3181 * config/i386/nm-nbsd.h: Delete file.
3182 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
3183 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
3184 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
3185 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3186 * config/i386/nm-i386lynx.h: Delete file.
3187 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
3188 * config/arm/nm-nbsd.h: Delete file.
3189 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
3190 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3191
3192 * config/i386/tm-fbsd.h: Delete file.
3193 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
3194 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
3195
3196 * config/rs6000/tm-rs6000-aix4.h: Delete file.
3197 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
3198 * config/rs6000/aix4.mt (TM_FILE): Set to
3199 config/rs6000/tm-rs6000.h.
3200 * config/powerpc/tm-ppc-aix.h: Delete file.
3201 * config/powerpc/aix.mt (TM_FILE): Set to
3202 config/rs6000/tm-rs6000.h.
3203 * config/m68k/tm-linux.h: Delete file.
3204 * config/m68k/linux.mt (TM_FILE): Set to solib.h
3205 * config/i386/tm-linux64.h: Delete file.
3206 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
3207 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
3208
3209 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
3210 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
3211 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
3212 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
3213 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
3214 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
3215 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
3216 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
3217 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
3218
3219 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
3220 gdb_host_cpu.
3221
3222 2004-09-02 Joel Brobecker <brobecker@gnat.com>
3223
3224 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
3225 Minor reformatting. Some code factoring.
3226
3227 2004-09-02 Andrew Cagney <cagney@gnu.org>
3228
3229 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
3230 * config/vax/tm-nbsd.h: Delete file.
3231 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
3232 * config/sparc/tm-vxworks.h: Delete file.
3233 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
3234 * config/sparc/tm-nbsd.h: Delete file.
3235 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
3236 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
3237 * config/sparc/tm-linux.h: Delete file.
3238 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
3239 * config/s390/tm-linux.h: Delete file.
3240 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
3241 * config/pa/tm-bsd.h: Delete file.
3242 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
3243 * config/m68k/tm-obsd.h: Delete file.
3244 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
3245 * config/m68k/tm-nbsd.h: Delete file.
3246 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
3247 * config/i386/tm-vxworks.h: Delete file.
3248 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
3249 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
3250 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
3251 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
3252 * config/i386/tm-nbsd.h: Delete file.
3253 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
3254 * config/i386/tm-i386lynx.h: Delete file.
3255 * config/cris/cris.mt (TM_FILE): Set to solib.h.
3256 * config/cris/tm-cris.h: Delete file.
3257
3258 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
3259 * configure: Re-generate.
3260 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
3261 * config/arm/tm-nbsd.h: Delete file.
3262
3263 * config/powerpc/tm-ppcle-sim.h: Delete.
3264 * config/powerpc/tm-ppcle-eabi.h: Delete.
3265 * config/powerpc/tm-nbsd.h: Delete.
3266 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
3267 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
3268 tm-ppcle-eabi.h.
3269
3270 * config/i386/nto.mh (NAT_FILE): Delete.
3271 * config/i386/nm-nto.h: Delete.
3272
3273 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
3274 * config/m68k/tm-os68k.h: Ditto.
3275 * config/m68k/tm-monitor.h: Ditto.
3276 * config/m68k/tm-cisco.h: Ditto.
3277 * config/m68k/st2000.mt (TM_FILE): Delete.
3278 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
3279 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
3280 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
3281 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
3282
3283 * config/m68k/tm-st2000.h: Delete.
3284 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
3285 * config/sparc/fbsd.mt (TM_FILE): Delete.
3286 * config/sparc/tm-fbsd.h: Delete.
3287
3288 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
3289 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
3290 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
3291
3292 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
3293 GDB_TM_FILE and GDB_XM_FILE.
3294 * gdbarch.c: Re-generate.
3295 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
3296 quotes in macro definition.
3297 * configure.in: Re-generate.
3298
3299 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
3300 validating architecture methods.
3301 * gdbarch.c: Re-generate.
3302
3303 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
3304 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
3305 GDB_MULTI_ARCH_PARTIAL.
3306 * gdbarch.h: Re-generate.
3307
3308 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
3309 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
3310 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
3311 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
3312 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
3313 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
3314 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
3315 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
3316 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
3317 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
3318 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
3319 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
3320
3321 2004-09-01 Andrew Cagney <cagney@gnu.org>
3322
3323 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
3324 and main_func_highpc.
3325 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
3326 * objfiles.c (init_entry_point_info, objfile_relocate): Update
3327 * nlmread.c (nlm_symfile_read): Update.
3328
3329 2004-09-01 Joel Brobecker <brobecker@gnat.com>
3330
3331 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
3332 (mips_insn32_frame_cache): Inline call to find_proc_desc.
3333 (find_proc_desc): Remove dead code.
3334
3335 2004-09-01 Joel Brobecker <brobecker@gnat.com>
3336
3337 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
3338
3339 2004-09-01 Jeff Johnston <jjohnstn@redhat.com>
3340
3341 * observer.sh: Add struct so_list declaration.
3342 * Makefile.in: Add dependencies on observer.h for solib.c and
3343 breakpoint.c.
3344 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
3345 function.
3346 (_initialize_breakpoint): Register
3347 disable_breakpoints_in_unloaded_shlib as an observer of the
3348 "solib unloaded" observation event.
3349 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
3350 call decode_line_1 so unfound breakpoint errors are silent.
3351 * solib.c (update_solib_list): When a solib is discovered to have
3352 been unloaded by the program, notify all observers of the
3353 "solib unloaded" observation event.
3354
3355 2004-09-01 Andrew Cagney <cagney@gnu.org>
3356
3357 * frame.c: Include "objfiles.h".
3358 (inside_main_func): New function.
3359 (get_prev_frame): Use new inside_main_func.
3360 * Makefile.in (frame.o): Update dependencies.
3361 * defs.h (inside_main_func): Delete declaration.
3362 * blockframe.c (inside_main_func): Delete function.
3363
3364 2004-08-31 Jim Blandy <jimb@redhat.com>
3365
3366 * dwarf2read.c (is_vtable_name): New function, based on logic from
3367 read_structure_type, but passing the correct length to strncmp,
3368 and using 'sizeof' instead of 'strlen'.
3369 (read_structure_type): Call it.
3370
3371 2004-08-31 Joel Brobecker <brobecker@gnat.com>
3372
3373 * config/powerpc/aix.mh: Add comment.
3374
3375 2004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
3376
3377 * MAINTAINERS: Add self to Write-After-Approval.
3378
3379 2004-08-30 Manoj Iyer <manjo@austin.ibm.com>
3380
3381 * MAINTAINERS: Add self to Write-After-Approval.
3382
3383 2004-08-30 Andrew Cagney <cagney@gnu.org>
3384
3385 Fix PR breakpoints/1757.
3386 * infrun.c (struct execution_control_state): Replace
3387 remove_breakpoints_on_following_step with
3388 step_after_step_resume_breakpoint.
3389 (init_execution_control_state): Update.
3390 (handle_inferior_event): For signals, when stepping off a
3391 breakpoint, set step_after_step_resume_breakpoint. When
3392 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
3393 (keep_going): Delete code handling
3394 remove_breakpoints_on_following_step.
3395
3396 2004-08-29 David Lecomber <david@streamline-computing.com>
3397
3398 Fix PR gdb/648
3399 * language.h (enum array_ordering): New enum.
3400 * language.h (struct language_defn): New la_array_ordering
3401 attribute.
3402 * language.c (unknown_language_defn, auto_language_defn)
3403 (local_language_defn): Ditto.
3404 * ada-lang.c (ada_language_defn): Ditto.
3405 * c-lang.c (c_language_defn, cplus_language_defn)
3406 (asm_language_defn, minimal_language_defn): Ditto.
3407 * f-lang.c (f_language_defn): Ditto.
3408 * jv-lang.c (java_language_defn): Ditto.
3409 * m2-lang.c (f_language_defn): Ditto.
3410 * objc-lang.c (objc_language_defn): Ditto.
3411 * p-lang.c (pascal_language_defn): Ditto.
3412 * scm-lang.c (scm_language_defn): Ditto.
3413 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
3414 oriented large to small in type structure.
3415 * dwarf2read.c (read_array_order): New function.
3416 (read_array_type): Use read_array_order to check row/column
3417 major ordering.
3418
3419 2004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
3420
3421 * target.c (target_resize_to_sections): Check
3422 current_target.to_sections for an old value when updating.
3423
3424 2004-08-27 Joel Brobecker <brobecker@gnat.com>
3425
3426 * procfs.c (dbx_link_bpt_addr): New static global variable.
3427 (dbx_link_shadow_contents): New static global variable.
3428 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
3429 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
3430 if we just hit it.
3431 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
3432 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
3433 from run to run.
3434 (procfs_create_inferior): Remove syssgi syscall-exit notifications
3435 after the inferior has been forked.
3436 (remove_dbx_link_breakpoint): New function.
3437 (dbx_link_addr): New function.
3438 (insert_dbx_link_bpt_in_file): New function.
3439 (insert_dbx_link_bpt_in_region): New function.
3440 (insert_dbx_link_breakpoint): New function.
3441 (proc_trace_syscalls_1): New function, extracted from
3442 proc_trace_syscalls.
3443 (proc_trace_syscalls): Replace extract code by call to
3444 proc_trace_syscalls_1.
3445 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
3446 is no longer valid.
3447
3448 2004-08-25 Jim Blandy <jimb@redhat.com>
3449
3450 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
3451
3452 2004-08-25 Andrew Cagney <cagney@gnu.org>
3453
3454 * infrun.c (struct execution_control_state): Delete field
3455 "stepping_through_sigtramp".
3456 (init_execution_control_state): Do not set same.
3457 (context_switch): Do not pass same to save_infrun_state and
3458 load_infrun_state.
3459 * gdbthread.h (struct thread_info): Delete field
3460 stepping_through_sigtramp.
3461 (save_infrun_state, load_infrun_state): Delete parameter
3462 stepping_through_sigtramp.
3463 * thread.c (load_infrun_state, save_infrun_state): Update.
3464
3465 * infrun.c: Re-indent. Move expression operators to the beginning
3466 of the line. Remove long disabled #if 0 code.
3467
3468 2004-08-24 Andrew Cagney <cagney@gnu.org>
3469
3470 * doublest.h (floatformat_ieee_quad): Rename
3471 floatformat_ia64_quad.
3472 * doublest.c (floatformat_ieee_quad): Rename
3473 floatformat_ia64_quad.
3474 (_initialize_doublest): Update.
3475
3476 2004-08-24 Jim Blandy <jimb@redhat.com>
3477
3478 * dwarf2expr.h (struct dwarf_expr_context): New members
3479 'num_pieces' and 'pieces', for returning the result of an
3480 expression that uses DW_OP_piece.
3481 (struct dwarf_expr_piece): New struct type.
3482 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
3483 pieces.
3484 (free_dwarf_expr_context): Free pieces, if any.
3485 (add_piece): New function.
3486 (execute_stack_op): Implement DW_OP_piece.
3487 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
3488 expression is a list of pieces, print an error message.
3489 (dwarf2_loc_desc_needs_frame): If the expression yields
3490 pieces, and any piece is in a register, then we need a frame.
3491
3492 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
3493 the stack until we've decided what sort of result the evaluation
3494 has produced. Use separate variables, with more specific names.
3495
3496 2004-08-23 Richard Earnshaw <rearnsha@arm.com>
3497
3498 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
3499 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
3500 (arm_netbsd_init_abi_common): Register them.
3501
3502 2004-08-22 Mark Kettenis <kettenis@gnu.org>
3503
3504 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
3505
3506 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
3507 safe_frame_unwind_memory instead of target_read_memory.
3508
3509 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
3510 Reorder includes.
3511 (fetch_register, store_register): Remove prototypes.
3512 (child_resume): Reorganize code and comments such that it is
3513 grouped a bit more logically.
3514 (attach): Explicitly compare errno against 0.
3515 (detach): Likewise. Use perror_with_name instead of
3516 print_sys_errmsg.
3517 * Makefile.in (infptrace.o): Update dependencies.
3518
3519 * ia64-linux-nat.c: Update copyright year.
3520 (fetch_debug_register, store_debug_register)
3521 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
3522 PTRACE_TYPE_ARG3.
3523 * config/ia64/nm-linux.h: Update copyright year.
3524 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
3525
3526 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
3527 from CORE_ADDR to struct frame_info *. Use
3528 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
3529 (amd64_linux_sigtramp_p): Adjust for changed signature of
3530 and64_linux_sigtramp_start
3531
3532 * gdb_ptrace.h: GNU/Linux.
3533
3534 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
3535 Remove defines.
3536
3537 * infptrace.c: Include "gdb_assert.h".
3538 (PTRACE_XFER_TYPE): Remove define.
3539 (offsetof): Only define if U_REGS_OFFSET isn't defined.
3540 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
3541 Tweak comment.
3542 (fetch_inferior_registers, store_inferior_registers): Remove
3543 redundant culry braces. Tweak comment. s/regno/regnum.
3544 * Makefile.in (infptrace.o): Update dependencies.
3545
3546 * configure.in: Change test for return type of ptrace to default
3547 to `long' instead of `int'.
3548 * configure: Regenerate.
3549
3550 2004-08-21 Mark Kettenis <kettenis@gnu.org>
3551
3552 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
3553
3554 * configure.in: Check for ttrace function.
3555 * configure, config.in: Regenerate.
3556
3557 * gdb_ptrace.h: New file.
3558 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
3559 <sys/ptrace.h>.
3560 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
3561 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
3562 (attach): Don't define PT_ATTACH.
3563 (detach): Don't define PT_DETACH.
3564 * Makefile.in (gdb_ptrace_h): New variable.
3565 (infptrace.o): Update dependencies.
3566
3567 2004-08-16 Mark Kettenis <kettenis@gnu.org>
3568
3569 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
3570 instead of `int' if not already defined.
3571 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
3572 PTRACE_TYPE_ARG3.
3573 * infptrace.c (call_ptrace): Revert change that replaced
3574 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3575
3576 2004-08-15 Mark Kettenis <kettenis@gnu.org>
3577
3578 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
3579 Remove defines.
3580
3581 * linux-nat.c (kill_inferior): Add missing third and fourth
3582 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
3583
3584 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
3585 PTRACE_TYPE_RET.
3586
3587 * proc-why.c (proc_prettyfprint_why): Fix format string.
3588
3589 * solib-osf.c (osf_current_sos): Remove unsused label.
3590
3591 * configure.in: Add <ncurses/ncurses.h> to the list of possible
3592 curses headers.
3593 * configure, config.in: Regenerate.
3594 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
3595 <ncurses/ncurses.h>.
3596
3597 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
3598 * config/nm-nbsd.h: Update copyright year.
3599 (PTRACE_ARG3_TYPE): Remove define.
3600
3601 * sparc-nat.c (fetch_inferior_registers)
3602 (store_inferior_registers, sparc_xfer_wcookie):
3603 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3604
3605 * alphabsd-nat.c (fetch_inferior_registers):
3606 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3607 PTRACE_TYPE_ARG3.
3608 * amd64bsd-nat.c (fetch_inferior_registers)
3609 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3610 PTRACE_TYPE_ARG3.
3611 * armnbsd-nat.c: Update copyright year.
3612 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
3613 (store_register, store_regs, store_fp_register, store_fp_regs):
3614 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3615 * hppabsd-nat.c (fetch_inferior_registers)
3616 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3617 PTRACE_TYPE_ARG3.
3618 * i386bsd-nat.c (fetch_inferior_registers)
3619 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
3620 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3621 * m68kbsd-nat.c (fetch_inferior_registers)
3622 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3623 PTRACE_TYPE_ARG3.
3624 * m88kbsd-nat.c (fetch_inferior_registers)
3625 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3626 PTRACE_TYPE_ARG3.
3627 * mipsnbsd-nat.c: Update copyright year.
3628 (fetch_inferior_registers, store_inferior_registers):
3629 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3630 * ns32knbsd-nat.c: Update copyright year.
3631 (fetch_inferior_registers, store_inferior_registers):
3632 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3633 * ppcnbsd-nat.c (fetch_inferior_registers):
3634 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3635 PTRACE_TYPE_ARG3.
3636 * ppcobsd-nat.c (fetch_inferior_registers):
3637 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3638 PTRACE_TYPE_ARG3.
3639 * shnbsd-nat.c: Update copyright year.
3640 (fetch_inferior_registers, store_inferior_registers):
3641 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3642 * vaxbsd-nat.c (fetch_inferior_registers)
3643 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3644 PTRACE_TYPE_ARG3.
3645
3646 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
3647 PTRACE_TYPE_ARG3.
3648 * infptrace.c (call_ptrace, child_resume, attach, detach)
3649 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
3650 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3651 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
3652 PTRACE_TYPE_ARG3.
3653
3654 2004-08-14 Mark Kettenis <kettenis@gnu.org>
3655
3656 * defs.h: Remove out-of-date comment.
3657 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
3658 [!GETENV_PROVIDED] (getenv): Remove prototype.
3659
3660 * standalone.c: Remove file.
3661 * Makefile.in (standalone.o): Remove dependency.
3662
3663 * i386-linux-nat.c (dummy_sse_values): Remove function and
3664 prototype.
3665 (i386_linux_dr_get): Fix typo in comment.
3666 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
3667
3668 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
3669
3670 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
3671 from declaration.
3672 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
3673 from definition.
3674
3675 2004-08-13 Mark Kettenis <kettenis@gnu.org>
3676
3677 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
3678 parenthesis in definition.
3679 * configure: Regenerated.
3680
3681 2004-08-12 Michael Chastain <mec.gnu@mindspring.com>
3682
3683 * PROBLEMS: Mention build/1411.
3684
3685 2004-08-09 Robert Millan <robertmh@gnu.org>
3686
3687 Committed by Nathanael Nerode.
3688 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
3689 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
3690
3691 2004-08-12 Andrew Cagney <cagney@gnu.org>
3692
3693 * NEWS: Mention fixes in GDB 6.2.1.
3694 * PROBLEMS: Remove mention of mips-irix.
3695
3696 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3697
3698 * config/powerpc/xm-aix.h: Delete.
3699 * config/powerpc/aix.mh (MH_FILE): Remove.
3700 * config/powerpc/aix432.mh (MH_FILE): Remove.
3701
3702 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3703
3704 * config/powerpc/aix.mh: Remove obsolete comment.
3705 * config/powerpc/aix432.mh: Likewise.
3706
3707 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3708
3709 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
3710
3711 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3712
3713 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
3714 this file is now empty.
3715 * config/xm-aix4.h: Remove, this file is no longer included
3716 anywhere.
3717
3718 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3719
3720 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
3721 that file is now empty.
3722 (termdef): Remove prototype, function no longer used.
3723
3724 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3725
3726 * doc/gdbint.texinfo (Host Definition): Remove documentation
3727 for USE_O_NOCTTY, no longer used.
3728 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
3729 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
3730
3731 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3732
3733 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
3734 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
3735 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
3736
3737 2004-08-11 Mark Kettenis <kettenis@gnu.org>
3738
3739 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
3740 instead of FIVE_ARG_PTRACE.
3741
3742 * inflow.c (O_NOCTTY): Define to zero if not already defined.
3743 (new_tty): Use O_NOCTTY unconditionally.
3744
3745 2004-08-10 Mark Kettenis <kettenis@gnu.org>
3746
3747 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
3748 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
3749 fflush on stdout.
3750
3751 2004-08-10 Joel Brobecker <brobecker@gnat.com>
3752
3753 * xcoff_symfile_finish: Replace last call to xmfree by call
3754 to xfree.
3755
3756 2004-08-10 Andrew Cagney <cagney@gnu.org>
3757
3758 * main.c (captured_main): Delete call to init_malloc.
3759 * defs.h (init_malloc): Delete declaration.
3760 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
3761 (init_malloc): Delete functions.
3762
3763 * defs.h (xmfree): Delete.
3764 * utils.c (xmfree): Delete function.
3765 (xfree): Inline calls to xmfree and mfree.
3766 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
3767 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
3768 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
3769 * somread.c (som_symfile_finish): Ditto.
3770 * objfiles.c (allocate_objfile, free_objfile):
3771 * nlmread.c (nlm_symfile_finish): Ditto.
3772 * hpread.c (hpread_symfile_finish): Ditto.
3773 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
3774 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
3775 * coffread.c (coff_symfile_finish): Ditto.
3776
3777 * defs.h (xmcalloc): Delete declaration.
3778 * utils.c (xmcalloc): Delete.
3779 (xcalloc): Inline calls to xmcalloc and mcalloc.
3780 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
3781 xcalloc and xfree.
3782 * symtab.c (create_demangled_names_hash): Ditto.
3783
3784 * defs.h (xmrealloc): Delete.
3785 * utils.c (xmrealloc): Delete.
3786 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
3787 * symmisc.c (extend_psymbol_list): Use xrealloc.
3788 * source.c (find_source_lines): Ditto.
3789 * hpread.c (hpread_lookup_type): Ditto.
3790 * dbxread.c (add_bincl_to_list): Ditto.
3791
3792 * utils.c (xmmalloc): Delete.
3793 (xmalloc): Inline xmmalloc and mmalloc calls.
3794 (msavestring): Use xmalloc.
3795 * defs.h (xmmalloc): Delete declaration.
3796 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
3797 xmmalloc.
3798 * symmisc.c (extend_psymbol_list): Ditto.
3799 * symfile.c (init_psymbol_list): Ditto.
3800 * source.c (find_source_lines): Ditto.
3801 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
3802 * elfread.c (elf_symtab_read): Ditto.
3803 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
3804 * coffread.c (coff_symfile_init): Ditto.
3805
3806 2004-08-10 David Carlton <carlton@bactrian.org>
3807
3808 * MAINTAINERS: Remove David Carlton from c++ testsuite
3809 maintainers.
3810
3811 2004-08-10 Jerome Guitton <guitton@gnat.com>
3812
3813 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
3814 print a line feed before the prompt.
3815
3816 2004-08-10 Mark Kettenis <kettenis@gnu.org>
3817
3818 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
3819
3820 2004-08-09 Joel Brobecker <brobecker@gnat.com>
3821
3822 General cleanup of the AIX xm include file:
3823 * config/xm-aix4.h (fd_set): Remove undefine.
3824 Remove include of <sys/select.h>.
3825 (HAVE_TERMIO): Remove define.
3826 (USG): Likewise.
3827 (NULL): Remove redefine.
3828 (alloca): Remove #pragma.
3829 (vfork): Remove define.
3830 (termdef): Remove.
3831 (SIGWINCH_HANDLER): Remove.
3832 (SIGWINCH_HANDLER_BODY): Remove.
3833
3834 2004-08-09 Mark Kettenis <kettenis@gnu.org>
3835
3836 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
3837 GDB_OSABI_OPENBSD_ELF.
3838
3839 2004-08-07 Robert Millan <robertmh@gnu.org>
3840
3841 * bsd-kvm.c: Check for nlist.h before including it.
3842
3843 2004-08-09 Mark Kettenis <kettenis@gnu.org>
3844
3845 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
3846 sigcontext' offset consistency checks for ancient BSD.
3847
3848 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
3849
3850 * configure.in: Check for <sys/types.h>. Check return and
3851 argument types of ptrace.
3852 * configure, config.in: Regenerate.
3853
3854 2004-08-09 Jim Blandy <jimb@redhat.com>
3855
3856 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
3857 rs6000_register_sim_regno): Doc fixes.
3858
3859 2004-08-08 Joel Brobecker <brobecker@gnat.com>
3860
3861 * mips-tdep.c: Include "floatformat.h".
3862 (n32n64_floatformat_always_valid): New function.
3863 (floatformat_n32n64_long_double_big): New constant.
3864 (mips_gdbarch_init): Set size and format of long double
3865 for N32 and N64 ABIs.
3866 * Makefile.in (mips-tdep.o): Update dependencies.
3867
3868 2004-08-08 Andrew Cagney <cagney@gnu.org>
3869
3870 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
3871 print. Improve script's error messages.
3872 * gdbarch.h: Re-generate.
3873
3874 * gdbarch.sh (pformat): New function.
3875 (float_format, double_format, long_double_format): List with bit
3876 members. Use pformat when printing.
3877 * gdbarch.c, gdbarch.h: Re-generate.
3878
3879 2004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
3880
3881 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
3882 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
3883 (ppcnbsd_supply_pcb): New function.
3884 (_initialize_ppcnbsd_nat): New prototype and function.
3885 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
3886 (LOADLIBES): New variable.
3887 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
3888
3889 2004-08-08 Andrew Cagney <cagney@gnu.org>
3890
3891 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
3892 (builtin_type_ieee_double, builtin_type_ia64_quad)
3893 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
3894 BE/LE floating-point types.
3895 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
3896 (builtin_type_ieee_double, builtin_type_ia64_quad)
3897 (builtin_type_ia64_spill): Declare.
3898 * doublest.c (_initialize_doublest, floatformat_ieee_single)
3899 (floatformat_ieee_double, floatformat_arm_ext)
3900 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
3901 of LE/BE floatformats.
3902 * doublest.h: (struct floatformat, floatformat_ieee_single)
3903 (floatformat_ieee_double, floatformat_arm_ext)
3904 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
3905
3906 2004-08-08 Mark Kettenis <kettenis@gnu.org>
3907
3908 * i386gnu-nat.c (gnu_store_registers): Fix typo.
3909
3910 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
3911 instead of regcache_raw_supply when storing the registers.
3912
3913 * i386gnu-nat.c: Update copyright year.
3914 (gnu_store_registers): Don't use deprecated_registers and
3915 deprecated_registers_valid. Use regcache_valid_p and
3916 regcache_raw_supply instead.
3917
3918 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
3919 frame_pc_unwind.
3920
3921 * procfs.c (procfs_pid_to_str): Remove redundant and unused
3922 variables. Incapitalized "process".
3923
3924 * configure.in: Add cursesX to the list of possible curses libs.
3925 Add cursesX.h to the list of possible curses headers.
3926 * configure, config.in: Regenerate.
3927
3928 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
3929
3930 * configure.in: Test for struct lwp in <sys/lwp.h>.
3931 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
3932 the offset of l_addr in struct lwp.
3933
3934 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
3935
3936 * bsd-kvm.c: Include "gdbcore.h"
3937 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
3938
3939 2004-08-07 Andrew Cagney <cagney@gnu.org>
3940
3941 * gdbtypes.c (build_flt, build_complex): New functions.
3942 (gdbtypes_post_init): Use.
3943
3944 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
3945
3946 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
3947 through to builtin_type_uint128.
3948
3949 * c-exp.y: Use builtin_type function to obtain builtin types.
3950
3951 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
3952 builtin_uint128.
3953 * gdbtypes.c (gdbtypes_post_init): Update.
3954 (build_gdbtypes): Move initialization of builtin_type_int0
3955 through to builtin_type_uint128 from here ...
3956 (_initialize_gdbtypes): ... to here.
3957 * d10v-tdep.c (d10v_register_type): Update.
3958
3959 * doublest.c: Update copyright.
3960 (floatformat_from_length): Call error when floatformat is NULL.
3961 (extract_floating_by_length): Remove NULL fmt check.
3962 (store_floating_by_length): Ditto.
3963
3964 2004-08-07 Andrew Cagney <cagney@gnu.org>
3965
3966 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
3967 that the register is valid.
3968
3969 2004-08-05 Mark Kettenis <kettenis@chello.nl>
3970
3971 * i386-linux-tdep.c (i386_linux_sigtramp_start)
3972 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
3973 struct frame_info *. Use safe_frame_unwind_memory instead of
3974 deprecated_read_memory_nobpt.
3975 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
3976 changed signature of i386_linux_sigtramp_start and
3977 i386_linux_rt_sigtramp_start.
3978
3979 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
3980 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
3981 instead of deprecated_read_memory_nobpt.
3982 (i386nbsd_sigtramp_p): Adjust for changed signature of
3983 i386nbsd_sigtramp_offset.
3984
3985 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
3986 safe_frame_unwind_memory instead of target_read_memory.
3987
3988 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
3989 !NO_SYS_FILE.
3990 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
3991 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
3992 (_initialize_kernel_u_addr): Remove prototype and function.
3993 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
3994 !NO_SYS_FILE.
3995 * xcoffread.c: Likewise.
3996
3997 2004-08-06 Mark Kettenis <kettenis@gnu.org>
3998
3999 * vax-nat.c: New file.
4000 * vaxbsd-nat.c: Tweak comment.
4001 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
4002 vaxnbsd-tdep.c.
4003 (vax-nat.o): New dependency.
4004 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
4005 (vax-*-ultrix2*): Remove.
4006 * config/vax/vax.mh: New file.
4007 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
4008 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
4009 (vax_register_u_addr): New prototype.
4010 (REGISTER_U_ADDR): Define using vax_register_u_addr.
4011 * config/vax/vaxult2.mh: Remove file.
4012 * config/vax/vaxult.mh: Remove file.
4013 * config/vax/vaxbsd.mh: Remove file.
4014 * config/vax/vax.mt (TM_FILE): Remove.
4015 * config/vax/tm-vaxbsd.h: Remove file.
4016
4017 2004-08-06 Joel Brobecker <brobecker@gnat.com>
4018
4019 * aix-thread.c (get_signaled_thread): New function.
4020 (iter_trap): Delete, no longer used.
4021 (iter_tid): New function.
4022 (pd_update): Find the thread that received the SIGTRAP signal
4023 by first locating the kernel thread, and then finding its
4024 associated thread.
4025
4026 2004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
4027
4028 * lin-lwp.c (child_wait): Continue inferior after processing
4029 PTRACE_EVENT_CLONE event.
4030
4031 2004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
4032
4033 * MAINTAINERS: Add self to Write-After-Approval.
4034
4035 2004-08-05 Jeff Johnston <jjohnstn@redhat.com>
4036
4037 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
4038 libunwind-xxxx.so" where xxxx is UNW_TARGET.
4039
4040 2004-08-05 Andrew Cagney <cagney@gnu.org>
4041
4042 * config/xm-sysv4.h: Delete file.
4043 * config/mips/xm-irix5.h: Delete file.
4044 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
4045 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
4046 * config/ia64/xm-aix.h: Delete file.
4047 * config/ia64/aix.mh (XM_FILE): Delete.
4048 * config/pa/xm-hppah.h: Delete file.
4049 * config/pa/hpux11w.mh (XM_FILE): Delete.
4050 * config/pa/hpux11.mh (XM_FILE): Delete.
4051 * config/pa/hpux1020.mh (XM_FILE): Delete.
4052 * config/pa/hppahpux.mh (XM_FILE): Delete.
4053
4054 * config/alpha/xm-alphalinux.h: Delete file.
4055 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
4056 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
4057 * config/alpha/xm-alphaosf.h: Delete file.
4058 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
4059 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
4060 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
4061 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
4062
4063 * config/i386/xm-i386v.h: Delete file.
4064 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
4065 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
4066 * config/i386/xm-i386sco.h: Delete file.
4067 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
4068 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
4069 * config/i386/xm-i386v4.h: Delete file.
4070 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
4071 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
4072 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
4073 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
4074
4075 * config/vax/xm-vax.h: Delete file.
4076 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
4077 * config/vax/xm-vaxult2.h: Delete file.
4078 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
4079 * config/vax/vaxult2.mh (XM_FILE): Delete.
4080 * config/vax/xm-vaxult.h: Delete file.
4081 * config/vax/vaxult.mh (XM_FILE): Delete.
4082 * config/vax/xm-vaxbsd.h: Delete file.
4083 * config/vax/vaxbsd.mh (XM_FILE): Delete.
4084
4085 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
4086 * gdbarch.h, gdbarch.c: Re-generate.
4087 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
4088 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
4089 * frame.h: Delete deprecated_read_fp from comments.
4090 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
4091 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
4092
4093 2004-08-04 Mark Kettenis <kettenis@gnu.org>
4094
4095 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
4096 trampoline in OpenBSD 3.5-current.
4097
4098 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
4099 SSE registers.
4100
4101 * Makefile.in: Remove embedded page breaks.
4102
4103 2004-08-04 Jim Blandy <jimb@redhat.com>
4104
4105 * regcache.c (regcache_raw_read): Assert that, after calling
4106 target_fetch_registers, the register we're reading is cached.
4107
4108 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
4109 a call to 'internal_error', with a more helpful error message.
4110 * rs6000-tdep.c (e500_pseudo_register_read,
4111 e500_pseudo_register_write, rs6000_store_return_value): Same.
4112
4113 2004-08-04 Andrew Cagney <cagney@gnu.org>
4114
4115 * Makefile.in: Update dependencies.
4116
4117 2004-08-04 Jim Blandy <jimb@redhat.com>
4118
4119 Change the layout of the PowerPC E500 raw register cache to allow
4120 the lower 32-bit halves of the GPRS to be their own raw registers,
4121 not pseudoregisters.
4122 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
4123 add ppc_ev0_upper_regnum flag.
4124 * rs6000-tdep.c: #include "reggroups.h".
4125 (spe_register_p): Recognize the ev upper half registers as SPE
4126 registers.
4127 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
4128 registers.
4129 (e500_move_ev_register): New function.
4130 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
4131 vector registers are the pseudo-registers now, formed by splicing
4132 together the gprs and the upper-half registers.
4133 (e500_register_reggroup_p): New function.
4134 (P): Macro deleted.
4135 (P8, A4): New macro.
4136 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
4137 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
4138 macros.
4139 (registers_e500): Rearrange register set so that the raw register
4140 set contains 32-bit GPRs and upper-half registers, and the SPE
4141 vector registers become pseudo-registers.
4142 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
4143 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
4144 register numbers are now the same for the E500 as they are for
4145 other PowerPC variants. Register e500_register_reggroup_p as the
4146 register group function for the E500.
4147 * Makefile.in (rs6000-tdep.o): Update dependencies.
4148
4149 Adapt PPC E500 native support to the new raw regcache layout.
4150 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
4151 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
4152 (fetch_spe_register, store_spe_register): Handle fetching/storing
4153 all the SPE registers at once, if regno == -1. These now take
4154 over the job of fetch_spe_registers and store_spe_registers.
4155 (fetch_spe_registers, store_spe_registers): Deleted.
4156 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
4157 unconditionally; they're always raw. Fetch/store SPE upper half
4158 registers, if present, instead of ev registers.
4159 (fetch_register, store_register): Remove sanity checks: gprs are
4160 never pseudo-registers now, so we never need to even mention any
4161 registers that are ever pseudoregisters.
4162
4163 Use a fixed register numbering when communicating with the PowerPC
4164 simulator.
4165 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
4166 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
4167 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
4168 New functions.
4169 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
4170 init_sim_regno_table.
4171 * Makefile.in (gdb_sim_ppc_h): New variable.
4172 (rs6000-tdep.o): Update dependencies.
4173
4174 2004-08-02 Andrew Cagney <cagney@gnu.org>
4175
4176 * cris-tdep.c (cris_register_size): Restore function, still used
4177 locally.
4178
4179 * gdbarch.sh (deprecated_target_read_fp)
4180 (deprecated_frame_locals_address, deprecated_frame_args_address)
4181 (deprecated_frame_chain_valid, deprecated_frame_chain)
4182 (deprecated_init_extra_frame_info, deprecated_pop_frame)
4183 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
4184 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
4185 * gdbarch.h, gdbarch.c: Re-generate.
4186 * regcache.c (deprecated_read_fp): Do not call
4187 DEPRECATED_TARGET_READ_FP_P.
4188 * infcmd.c (default_print_registers_info): Do not call
4189 DEPRECATED_DO_REGISTERS_INFO.
4190 * frame-base.c (default_frame_locals_address): Do not call
4191 DEPRECATED_FRAME_LOCALS_ADDRESS.
4192 (default_frame_args_address): Do not call
4193 DEPRECATED_FRAME_ARGS_ADDRESS.
4194
4195 * gdbarch.sh (deprecated_register_raw_size)
4196 (deprecated_register_virtual_size:int): Delete.
4197 * gdbarch.h, gdbarch.c: Re-generate.
4198 * cris-tdep.c (cris_register_size): Delete.
4199 (cris_gdbarch_init): Update.
4200 * alpha-tdep.c (alpha_register_raw_size)
4201 (alpha_register_virtual_size): Delete.
4202 (alpha_gdbarch_init): Update.
4203
4204 * gdbarch.sh (deprecated_register_virtual_type)
4205 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
4206 (deprecated_dummy_write_sp): Delete.
4207 * gdbarch.h, gdbarch.c: Re-generate.
4208
4209 * gdbarch.sh (deprecated_register_bytes): Delete.
4210 * gdbarch.h, gdbarch.c: Re-generate.
4211 * regcache.c (deprecated_register_bytes): New function.
4212 * regcache.h (deprecated_register_bytes): Declare.
4213 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4214 * v850-tdep.c (v850_gdbarch_init): Update.
4215 * sh64-tdep.c (sh64_gdbarch_init): Update.
4216 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
4217 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4218 * mcore-tdep.c (mcore_gdbarch_init): Update.
4219 * cris-tdep.c (cris_gdbarch_init): Update.
4220 * arm-tdep.c (arm_gdbarch_init): Update.
4221 * remote.c (init_remote_state): Update.
4222 * remote-vx.c (vx_prepare_to_store): Update.
4223 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
4224 * irix5-nat.c (fetch_core_registers): Update.
4225 * cris-tdep.c (cris_register_bytes_ok): Update.
4226 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
4227
4228 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
4229 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
4230 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
4231 (mips_insn16_frame_base_address, mips_insn16_frame_base)
4232 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
4233 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
4234 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
4235 (mips_insn32_frame_base_address, mips_insn32_frame_base)
4236 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
4237 with mips_insn16 and mips_insn32.
4238
4239 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
4240 * rs6000-tdep.c (rs6000_push_dummy_call)
4241 (rs6000_extract_return_value): Use register_size.
4242 * xstormy16-tdep.c (xstormy16_get_saved_register)
4243 (xstormy16_extract_return_value): Ditto.
4244 * valops.c (value_assign): Ditto.
4245 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
4246 * v850-tdep.c (v850_extract_return_value): Ditto.
4247 * tracepoint.c (collect_symbol): Ditto.
4248 * target.c (debug_print_register): Ditto.
4249 * stack.c (frame_info): Ditto.
4250 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
4251 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
4252 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
4253 (store_register_using_P): Ditto.
4254 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
4255 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
4256 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
4257 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
4258 * regcache.c (deprecated_read_register_bytes)
4259 (deprecated_write_register_bytes, read_register)
4260 (write_register): Ditto.
4261 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
4262 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
4263 * monitor.c (monitor_supply_register, monitor_fetch_register)
4264 (monitor_store_register): Ditto.
4265 * mn10300-tdep.c (mn10300_pop_frame_regular)
4266 (mn10300_print_register): Ditto.
4267 * mipsv4-nat.c (fill_fpregset): Ditto.
4268 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
4269 (mips64_fill_fpregset): Ditto.
4270 * mi/mi-main.c (register_changed_p, get_register)
4271 (mi_cmd_data_write_register_values): Ditto.
4272 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
4273 * irix5-nat.c (fill_gregset, fetch_core_registers):
4274 * infrun.c (write_inferior_status_register): Ditto.
4275 * infptrace.c (fetch_register, store_register): Ditto.
4276 * infcmd.c (default_print_registers_info): Ditto.
4277 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
4278 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
4279 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
4280 * hpux-thread.c (hpux_thread_fetch_registers)
4281 (hpux_thread_store_registers): Ditto.
4282 * hppah-nat.c (store_inferior_registers, fetch_register):
4283 * findvar.c (value_from_register): Ditto.
4284 * dve3900-rom.c (fetch_bitmapped_register):
4285 * cris-tdep.c (cris_gdbarch_init): Ditto.
4286 * alpha-tdep.h: Ditto.
4287 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
4288
4289 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
4290 DEPRECATED_REGISTER_RAW_SIZE from comments.
4291 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
4292 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
4293 DEPRECATED_REGISTER_RAW_SIZE.
4294 * findvar.c (value_of_register): Simplify by assuming that the
4295 registers raw and virtual sizes are identical.
4296 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
4297 comment.
4298 * arch-utils.c (generic_register_size): Simplify by assuming
4299 register_type.
4300
4301 * regcache.c (legacy_read_register_gen, real_register)
4302 (legacy_write_register_gen): Delete, not used.
4303
4304 * regcache.c (struct regcache_descr): Delete legacy_p.
4305 (init_legacy_regcache_descr): Delete function.
4306 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
4307 Do not use deprecated register functions.
4308 (regcache_raw_read, deprecated_write_register_gen):
4309 (deprecated_read_register_gen, regcache_raw_write): Delete code
4310 predicated on legacy_p.
4311 (register_size): Delete check against register raw size.
4312
4313 * cris-tdep.c (cris_register_type): Replace
4314 cris_register_virtual_type.
4315 (cris_gdbarch_init): Update, set register_type.
4316
4317 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
4318 * gdbarch.h, gdbarch.c: Re-generate.
4319 * arm-tdep.c (arm_frameless_function_invocation): Delete.
4320 (arm_gdbarch_init) Do not set frameless function invocation.
4321 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
4322 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
4323 * frv-tdep.c (frv_frameless_function_invocation): Delete.
4324 (frv_gdbarch_init): Do not set frameless function invocation.
4325 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
4326 * sh-tdep.c (sh_gdbarch_init): Ditto.
4327 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
4328 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4329 * avr-tdep.c (avr_gdbarch_init): Ditto.
4330
4331 * blockframe.c (legacy_frame_chain_valid): Delete function.
4332
4333 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
4334 and pc. Update comments.
4335 (pc_in_dummy_frame): Delete function.
4336 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
4337 use the "id".
4338 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
4339 call_hi, top and pc, use the id.
4340 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
4341
4342 * dummy-frame.c: Include "gdb_string.h".
4343 (generic_save_call_dummy_addr, generic_push_dummy_frame)
4344 (generic_save_dummy_frame_tos): Delete.
4345 (dummy_frame_push): New function, replaces above.
4346 * dummy-frame.h: Update copyright.
4347 (dummy_frame_push): Declare.
4348 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
4349 (generic_save_call_dummy_addr): Delete declarations.
4350 * infcall.c: Include "dummy-frame.h".
4351 (call_function_by_hand): Add locals caller_regcache,
4352 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
4353 with call to frame_save_as_regcache plus cleanup. Delete calls to
4354 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
4355 Move clear_proceed_status to just before the resume, add call to
4356 dummy_frame_push (discard cleanup).
4357 * Makefile.in (infcall.o): Add $(dummy_frame_h).
4358 (dummy-frame.o): Add $(gdb_string_h).
4359
4360 2004-08-01 Andrew Cagney <cagney@gnu.org>
4361
4362 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
4363 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
4364 * dummy-frame.c (find_dummy_frame): Delete.
4365 (struct dummy_frame_cache, dummy_frame_sniffer)
4366 (dummy_frame_prev_register, dummy_frame_this_id)
4367 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
4368 frame unwinder using a dummy_frame_cache.
4369
4370 2004-08-01 Andrew Cagney <cagney@gnu.org>
4371
4372 * frame.h (frame_save_as_regcache): Declare.
4373 * frame.c (frame_save_as_regcache): New function.
4374 (do_frame_read_register): Replace do_frame_unwind_register.
4375 (frame_pop): Use frame_save_as_regcache.
4376 * dummy-frame.c (generic_push_dummy_frame): Use
4377 frame_save_as_regcache.
4378
4379 2004-08-01 Joel Brobecker <brobecker@gnat.com>
4380
4381 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
4382 file as included until we record the first line in the linetable.
4383
4384 2004-08-01 Andrew Cagney <cagney@gnu.org>
4385
4386 * frame.h (deprecated_pop_dummy_frame)
4387 (deprecated_read_register_dummy)
4388 (deprecated_generic_find_dummy_frame): Delete.
4389 * dummy-frame.c (deprecated_generic_find_dummy_frame)
4390 (deprecated_read_register_dummy)
4391 (deprecated_find_dummy_frame_regcache)
4392 (discard_innermost_dummy)
4393 (deprecated_pop_dummy_frame): Delete.
4394 (dummy_frame_this_id): Simplify.
4395 (struct dummy_frame): Delete "fp" and "sp".
4396 (find_dummy_frame): Simplify.
4397 (generic_push_dummy_frame): Do not set "fp" or "sp".
4398 (fprint_dummy_frames): Do not print "fp" and "sp"
4399
4400 2004-08-01 Mark Kettenis <kettenis@gnu.org>
4401
4402 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
4403 (struct i386_insn): New structure.
4404 (i386_match_insn): New function.
4405 (i386_frame_setup_skip_insns): New variable.
4406 (i386_analyze_frame_setup): Change to use i386_match_insn and the
4407 array i386_frame_setup_insns of instructions that should be
4408 skipped inside the frame setup sequence.
4409
4410 2004-08-01 Andrew Cagney <cagney@gnu.org>
4411
4412 * frame.h (deprecated_frame_xmalloc_with_cleanup)
4413 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
4414 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
4415 * stack.c (frame_info): Delete references to
4416 DEPRECATED_FRAME_INIT_SAVED_REGS and
4417 deprecated_get_frame_saved_regs.
4418 * frame.c (struct frame_info): Delete saved_regs and extra_info.
4419 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
4420 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
4421 (frame_unwind_register_signed)
4422 (frame_unwind_register_unsigned)
4423 (frame_unwind_unsigned_register): Use register_size.
4424 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
4425 (deprecated_frame_xmalloc_with_cleanup)
4426 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
4427 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
4428
4429 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
4430 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
4431 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
4432 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
4433
4434 * infcall.c (call_function_by_hand): Do not use
4435 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
4436 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
4437 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
4438 DEPRECATED_STACK_ALIGN.
4439
4440 2004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
4441
4442 Committed by Andrew Cagney.
4443 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
4444
4445 2004-08-01 Andrew Cagney <cagney@gnu.org>
4446
4447 * mips-tdep.c (mips16_frame_cache)
4448 (mips16_frame_this_id, mips16_frame_prev_register)
4449 (mips16_frame_unwind, mips16_frame_sniffer)
4450 (mips16_frame_base_address, mips16_frame_base)
4451 (mips16_frame_base_sniffer, mips32_frame_cache)
4452 (mips32_frame_this_id, mips32_frame_prev_register)
4453 (mips32_frame_unwind, mips32_frame_sniffer)
4454 (mips32_frame_base_address, mips32_frame_base)
4455 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
4456 separate heuristic mips16 and mips32 unwinders.
4457 (mips_stub_frame_cache, mips_stub_frame_this_id)
4458 (mips_stub_frame_prev_register)
4459 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
4460 (mips_stub_frame_base_address, mips_stub_frame_base)
4461 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
4462 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
4463 match true mdebug frames.
4464 (non_heuristic_proc_desc): Add forward declaration.
4465
4466 2004-08-01 Andrew Cagney <cagney@gnu.org>
4467
4468 * config/mips/tm-irix6.h: Delete file.
4469 * config/mips/tm-irix5.h: Delete file.
4470 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
4471 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
4472
4473 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
4474 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
4475 * config/nm-gnu.h (NO_CORE_OPS): Delete.
4476 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
4477 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
4478 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
4479 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
4480 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
4481 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
4482 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
4483 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
4484 (TARGET_SIGNAL_RAW_VALUES): Delete.
4485 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
4486 Delete.
4487 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
4488 (TARGET_HW_WATCH_LIMIT): Delete.
4489 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
4490 * minimon.h: Delete file.
4491
4492 * trad-frame.c (trad_frame_get_this_base)
4493 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
4494 functions.
4495 * trad-frame.h (trad_frame_set_this_base)
4496 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
4497
4498 2004-07-31 Andrew Cagney <cagney@gnu.org>
4499
4500 * trad-frame.c (trad_frame_get_prev_register): Rename
4501 trad_frame_get_prev_register.
4502 * vax-tdep.c (vax_frame_prev_register): Update.
4503 * trad-frame.h: Update.
4504 * trad-frame.c (trad_frame_get_register): Update.
4505 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
4506 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
4507 Update.
4508 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
4509 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
4510 Update.
4511 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
4512 Update.
4513 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
4514 Update.
4515 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
4516 Update.
4517 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
4518 Update.
4519 * s390-tdep.c (s390_frame_prev_register)
4520 (s390_stub_frame_prev_register)
4521 (s390_sigtramp_frame_prev_register): Update.
4522 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
4523 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
4524 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
4525 * m88k-tdep.c (m88k_frame_prev_register)
4526 * m68hc11-tdep.c (m68hc11_frame_prev_register)
4527 * m32r-tdep.c (m32r_frame_prev_register): Update.
4528 * hppa-tdep.c (hppa_frame_prev_register_helper)
4529 * frv-tdep.c (frv_frame_prev_register): Update.
4530 * d10v-tdep.c (d10v_frame_prev_register): Update.
4531 * cris-tdep.c (cris_frame_prev_register): Update.
4532 * avr-tdep.c (avr_frame_prev_register): Update.
4533 * arm-tdep.c (arm_prologue_prev_register)
4534 (arm_sigtramp_prev_register): Update.
4535
4536 2004-07-31 Andrew Cagney <cagney@gnu.org>
4537
4538 * frame.h (legacy_saved_regs_unwind)
4539 (legacy_frame_chain_valid, legacy_frame_p)
4540 (enum frame_type): Delete UNKNOWN_FRAME.
4541 * dummy-frame.c (dummy_frame_this_id): Simplify.
4542 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
4543 * frame.c (struct frame_info): Delete the field "type".
4544 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
4545 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
4546 (legacy_saved_regs_unwind, legacy_frame_p)
4547 (frame_type_from_pc): Delete.
4548 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
4549 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
4550
4551 2004-07-31 Mark Kettenis <kettenis@gnu.org>
4552
4553 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
4554 indentation.
4555
4556 * mips-nat.c: Remove file.
4557 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
4558 (mips-nat.o): Remove dependency.
4559
4560 * infptrace.c: Update copyright year.
4561 (fetch_register): Pass NULL in regcache_raw_supply call instead of
4562 explicitly setting the buffer to all zeroes.
4563
4564 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
4565 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
4566
4567 2004-07-30 Andrew Cagney <cagney@gnu.org>
4568
4569 * GDB 6.2 released from gdb_6_2-branch.
4570
4571 2004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
4572
4573 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
4574
4575 * exec.c (exec_file_attach):
4576 * nto-tdep.c (nto_find_and_open_solib):
4577 * pa64solib.c (pa64_solib_sizeof_symbol_table):
4578 * solib.c (solib_open):
4579 * somsolib.c (som_solib_sizeof_symbol_table):
4580 * source.c (is_regular_file, openp, open_source_file):
4581 * symfile.c (symfile_bfd_open):
4582 * wince.c (upload_to_device): Differentiate between the search for
4583 binary and source files.
4584
4585 2004-07-30 Andrew Cagney <cagney@gnu.org>
4586
4587 * complaints.c (_initialize_complaints): Pass NULL to
4588 add_setshow_zinteger_cmd for help_doc.
4589 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
4590
4591 2004-07-30 Andrew Cagney <cagney@gnu.org>
4592
4593 Fix PR i18n/761.
4594 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
4595 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
4596 $(PACKAGE).pot and update-po.
4597 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
4598 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
4599 (update-po): New rules.
4600 (localedir): Define using autoconf.
4601 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
4602 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
4603 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
4604 * configure.in: Generate CATALOGS and LINGUAS from contents of
4605 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
4606 * configure: Re-generate.
4607 * po/gdbtext: New file
4608
4609 2004-07-30 Jerome Guitton <guitton@gnat.com>
4610
4611 * MAINTAINERS: Reorder Write After Approval list in alphabetical
4612 order.
4613
4614 2004-07-30 David Lecomber <dsl@sources.redhat.com>
4615
4616 * dwarf2read.c (read_file_scope): Set producer if attribute
4617 present.
4618 (struct dwarf2_cu): Added new member producer.
4619
4620 2004-07-30 Jerome Guitton <guitton@gnat.com>
4621
4622 * inflow.c (kill_command): release file handles in BFD.
4623 * exec.c (exec_file_attach): Ditto.
4624 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
4625
4626 2004-07-29 Andrew Cagney <cagney@gnu.org>
4627
4628 * PROBLEMS (mips-irix): Note that it is broken.
4629
4630 2004-07-29 Andrew Cagney <cagney@gnu.org>
4631
4632 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
4633 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
4634
4635 * config/xm-nbsd.h: Delete file.
4636 * config/arm/xm-nbsd.h: Delete file.
4637 * config/i386/xm-nbsd.h: Delete file.
4638 * config/ns32k/xm-nbsd.h: Delete file.
4639 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
4640 * config/i386/nbsdelf.mh (XM_FILE): Delete.
4641 * config/i386/nbsdaout.mh (XM_FILE): Delete.
4642 * config/arm/nbsdelf.mh (XM_FILE): Delete.
4643 * config/arm/nbsdaout.mh (XM_FILE): Delete.
4644
4645 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
4646 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
4647 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
4648 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
4649 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
4650 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
4651
4652 * config/powerpc/xm-linux.h: Delete empty file.
4653 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
4654 * config/powerpc/linux.mh (XM_FILE): Delete.
4655 * config/m68k/xm-linux.h: Delete empty file.
4656 * config/m68k/linux.mh (XM_FILE): Delete.
4657 * config/ia64/xm-linux.h: Delete empty file.
4658 * config/ia64/linux.mh (XM_FILE): Delete.
4659 * config/arm/xm-linux.h: Delete empty file.
4660 * config/arm/linux.mh (XM_FILE): Delete.
4661
4662 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4663 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
4664 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4665 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
4666 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4667 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
4668 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4669 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
4670
4671 * config/m68k/xm-m68k.h: Delete file.
4672 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
4673 copyright.
4674 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
4675 * config/pa/xm-linux.h: Delete empty file.
4676 * config/pa/linux.mh (XM_FILE): Delete.
4677 * config/i386/xm-i386.h: Delete empty file.
4678 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
4679 "i386/xm-i386.h".
4680 * config/i386/obsdaout.mh (XM_FILE): Delete.
4681 * config/i386/obsd64.mh (XM_FILE): Delete.
4682 * config/i386/fbsd64.mh (XM_FILE): Delete.
4683 * config/i386/nto.mh (XM_FILE): Delete.
4684 * config/i386/obsd.mh (XM_FILE): Delete.
4685 * config/i386/linux64.mh (XM_FILE): Delete.
4686 * config/i386/linux.mh (XM_FILE): Delete.
4687 * config/i386/i386sol2.mh (XM_FILE): Delete.
4688 * config/i386/i386gnu.mh (XM_FILE): Delete.
4689 * config/i386/fbsd.mh (XM_FILE): Delete.
4690 * config/i386/nbsd64.mh (XM_FILE): Delete.
4691
4692 2004-07-29 Andrew Cagney <cagney@gnu.org>
4693
4694 * config/pa/xm-linux.h: Do not include "floatformat.h".
4695 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4696 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
4697 * config/i386/xm-i386.h: Do not include "floatformat.h".
4698 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4699 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
4700 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4701 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
4702 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
4703 GDB_HOST_LONG_DOUBLE_FORMAT instead.
4704 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
4705 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
4706 * configure, config.in: Regenerate.
4707 * configure.host (gdb_host_float_format, gdb_host_double_format)
4708 (gdb_host_long_double_format): Set according to the host.
4709
4710 2004-07-29 Andrew Cagney <cagney@gnu.org>
4711
4712 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
4713
4714 2004-07-28 Andrew Cagney <cagney@gnu.org>
4715
4716 * PROBLEMS: Mention threads/1650.
4717 * NEWS: Mention the NPTL fix.
4718
4719 2004-07-28 Andrew Cagney <cagney@gnu.org>
4720
4721 * cli/cli-decode.c (add_setshow_cmd): Delete function.
4722 (add_setshow_cmd_full): Make static.
4723 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
4724 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
4725 * cli/cli-decode.c (add_setshow_filename_cmd)
4726 (add_setshow_string_cmd): New functions.
4727 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
4728 * mips-tdep.c (_initialize_mips_tdep): Update.
4729 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
4730 * cli/cli-logging.c (_initialize_cli_logging): Update.
4731 * complaints.c (_initialize_complaints): Update.
4732 * remote.c (_initialize_remote): Update.
4733
4734 2004-07-28 Andrew Cagney <cagney@gnu.org>
4735
4736 * cli/cli-decode.c (add_setshow_zinteger_cmd)
4737 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
4738 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
4739 print parameters. Make string parameters constant.
4740 * command.h: Update. Update copyright.
4741 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
4742 * observer.c (_initialize_observer): Ditto.
4743 * frame.c (_initialize_frame): Ditto.
4744 * complaints.c (_initialize_complaints): Ditto.
4745 * maint.c (_initialize_maint_cmds): Ditto.
4746 * target.c (initialize_targets): Ditto.
4747 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
4748 * infcall.c (_initialize_infcall): Ditto.
4749 * arm-tdep.c (_initialize_arm_tdep): Ditto.
4750 * m32r-rom.c (_initialize_m32r_rom): Ditto.
4751 * remote-rdi.c (_initialize_remote_rdi): Ditto.
4752 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
4753 * mips-tdep.c (_initialize_mips_tdep): Ditto.
4754
4755 2004-07-28 Andrew Cagney <cagney@gnu.org>
4756
4757 * gdbtypes.c (lookup_primitive_typename): Delete function.
4758 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
4759 * ada-lex.l: Use language_lookup_primitive_type_by_name.
4760 * gdbtypes.c (lookup_typename): Ditto.
4761 * f-exp.y (yylex): Ditto.
4762 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
4763
4764 * scm-lang.c (c_builtin_types): Delete extern declaration.
4765 (scm_language_defn): Replace
4766 string_char_type and primitive_type_vector with
4767 la_language_arch_info.
4768 * jv-lang.c (java_language_defn): Replace
4769 string_char_type and primitive_type_vector with
4770 la_language_arch_info.
4771 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
4772 c_builtin_types in comment.
4773 * c-lang.h (struct language_arch_info): Declare opaque.
4774 (c_language_arch_info): Declare.
4775 (c_builtin_types): Delete declaration.
4776 * c-lang.c (c_language_arch_info): Set string_char_type to
4777 builtin_char, not builtin_true_char. Make global.
4778 (c_builtin_types): Delete array.
4779 (asm_language_defn, minimal_language_defn): Replace
4780 string_char_type and primitive_type_vector with
4781 la_language_arch_info.
4782
4783 2004-07-28 Andrew Cagney <cagney@gnu.org>
4784
4785 * gdbtypes.h (struct builtin_type): Rename true_char to
4786 builtin_true_char.
4787 * gdbtypes.c (gdbtypes_post_init): Update.
4788 * c-lang.c (arch_info): New function.
4789 (enum c_primitive_types): New enum.
4790 (c_language_defn): Instead of string_char_type and
4791 primitive_type_vector set la_language_arch_info.
4792
4793 2004-07-28 Andrew Cagney <cagney@gnu.org>
4794
4795 * language.h (struct language_arch_info): Fix typo
4796 s/primative/primitive/.
4797 * gdbtypes.c (lookup_primitive_typename): Ditto.
4798 * language.c (language_lookup_primitive_type_by_name)
4799 (unknown_language_arch_info): Ditto.
4800
4801 2004-07-27 Andrew Cagney <cagney@gnu.org>
4802
4803 * defs.h (enum language): Add nr_languages.
4804 * language.h (struct language_arch_info): Define.
4805 (struct language_defn): Add la_language_arch_info.
4806 (language_lookup_primative_type_by_name): Declare.
4807 (language_string_char_type): Declare.
4808 * language.c (_initialize_language, language_gdbarch_post_init)
4809 (struct language_gdbarch, language_gdbarch_data): Implement
4810 per-architecture language information.
4811 (unknown_language_arch_info, language_string_char_type)
4812 (language_lookup_primative_type_by_name): New functions.
4813 (unknown_language_defn, auto_language_defn)
4814 (local_language_defn): Set la_language_arch_info to
4815 unknown_language_arch_info.
4816 (unknown_builtin_types): Delete.
4817 * gdbtypes.c (lookup_primitive_typename): Use
4818 language_lookup_primative_type_by_name.
4819 (create_string_type): Use language_string_char_type.
4820 * values.c (value_from_string): Use language_string_char_type.
4821 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
4822 * p-lang.c (pascal_language_defn): Ditto.
4823 * m2-lang.c (m2_language_defn): Ditto.
4824 * jv-lang.c (java_language_defn): Ditto.
4825 * objc-lang.c (objc_language_defn): Ditto.
4826 * f-lang.c (f_language_defn): Ditto.
4827 * c-lang.c (c_language_defn, cplus_language_defn)
4828 (asm_language_defn, minimal_language_defn): Ditto.
4829
4830 2004-07-27 Andrew Cagney <cagney@gnu.org>
4831
4832 * gdbtypes.h (struct builtin_type): Declare.
4833 (builtin_type): Declare.
4834 * d10v-tdep.c (d10v_register_type): Use builtin_type.
4835 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
4836 (gdbtypes_post_init): New function.
4837 (builtin_type): New function.
4838
4839 2004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
4840
4841 * remote-m32r-sdi.c: Fix breakpoint bug.
4842 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
4843 recv_char_data, recv_long_data): New functions to replace communication
4844 sequences.
4845
4846 2004-07-26 Michael Chastain <mec.gnu@mindspring.com>
4847
4848 Document PR threads/1650.
4849 * PROBLEMS (Threads): Document problem with many threads
4850
4851 2004-07-26 Andrew Cagney <cagney@gnu.org>
4852
4853 * gdb-mi.el: Move from here ...
4854 * mi/gdb-mi.el: ... to here.
4855
4856 2004-07-26 Andrew Cagney <cagney@gnu.org>
4857
4858 Problem reported by Ashley Pittman <ashley@quadrics.com>.
4859 * main.c (captured_main): When in batch mode always detach.
4860
4861 2004-07-26 Andrew Cagney <cagney@gnu.org>
4862
4863 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
4864 and h8300 as broken.
4865 * NEWS: END-OF-LIFE frame compatibility module.
4866 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
4867 specific comments.
4868
4869 2004-07-26 Andrew Cagney <cagney@gnu.org>
4870
4871 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
4872 * xcoffsolib.c (_initialize_xcoffsolib): Update.
4873 * wince.c (_initialize_wince): Update.
4874 * win32-nat.c (_initialize_win32_nat): Update.
4875 * varobj.c (_initialize_varobj): Update.
4876 * valops.c (_initialize_valops): Update.
4877 * utils.c (initialize_utils, initialize_utils): Update.
4878 * tui/tui-win.c (_initialize_tui_win): Update.
4879 * top.c (init_main): Update.
4880 * symfile.c (_initialize_symfile): Update.
4881 * source.c (_initialize_source): Update.
4882 * somsolib.c (_initialize_som_solib): Update.
4883 * solib.c (_initialize_solib): Update.
4884 * solib-frv.c (_initialize_frv_solib): Update.
4885 * serial.c (_initialize_serial): Update.
4886 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
4887 * remote.c (_initialize_remote, _initialize_remote): Update.
4888 * remote-vx.c (_initialize_vx): Update.
4889 * remote-utils.c (_initialize_sr_support): Update.
4890 * remote-sds.c (_initialize_remote_sds): Update.
4891 * remote-mips.c (_initialize_remote_mips): Update.
4892 * remote-e7000.c (_initialize_remote_e7000): Update.
4893 * proc-api.c (_initialize_proc_api): Update.
4894 * printcmd.c: Update.
4895 * parse.c (_initialize_parse): Update.
4896 * pa64solib.c (_initialize_pa64_solib): Update.
4897 * p-valprint.c (_initialize_pascal_valprint): Update.
4898 * monitor.c (_initialize_remote_monitors): Update.
4899 * mips-tdep.c (_initialize_mips_tdep): Update.
4900 * mcore-tdep.c (_initialize_mcore_tdep): Update.
4901 * maint.c (_initialize_maint_cmds): Update.
4902 * lin-lwp.c (_initialize_lin_lwp): Update.
4903 * language.c (_initialize_language): Update.
4904 * kod.c (_initialize_kod): Update.
4905 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
4906 * i386-tdep.c (_initialize_i386_tdep): Update.
4907 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
4908 * gdbarch.sh: Update.
4909 * gdbarch.c: Re-generate.
4910 * gdb-events.sh: Update.
4911 * gdb-events.c: Re-generate.
4912 * frame.c (_initialize_frame): Update.
4913 * exec.c: Update.
4914 * demangle.c (_initialize_demangler): Update.
4915 * dcache.c (_initialize_dcache): Update.
4916 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
4917 * cp-valprint.c (_initialize_cp_valprint): Update.
4918 * corefile.c (_initialize_core): Update.
4919 * command.h: Update.
4920 * cli/cli-decode.h: Update.
4921 * cli/cli-cmds.c (init_cli_cmds): Update.
4922 * charset.c (_initialize_charset): Update.
4923 * breakpoint.c (_initialize_breakpoint): Update.
4924 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
4925 * alpha-tdep.c (_initialize_alpha_tdep): Update.
4926 * aix-thread.c (_initialize_aix_thread): Update.
4927
4928 2004-07-24 Mark Kettenis <kettenis@gnu.org>
4929
4930 Partial fix for PR backtrace/1718.
4931 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
4932 that GCC migrates into the prolugue. Don't handle any
4933 instructions that clobber %ebx.
4934
4935 2004-07-23 Andrew Cagney <cagney@gnu.org>
4936
4937 Use regcache_raw_collect instead of regcache_collect.
4938 * regcache.h (regcache_collect): Delete declaration.
4939 * regcache.c (regcache_colect): Delete function.
4940 * win32-nat.c (do_child_store_inferior_registers): Update.
4941 * sol-thread.c (sol_thread_store_registers): Update.
4942 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
4943 * rs6000-nat.c (store_register): Update.
4944 * remote.c (store_register_using_P, remote_store_registers): Update.
4945 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
4946 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
4947 (fill_vrregset, store_spe_registers, fill_gregset)
4948 (fill_gregset): Update.
4949 * nto-procfs.c (procfs_store_registers): Update.
4950 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
4951 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
4952 * m68klinux-nat.c (store_register, fill_gregset): Update.
4953 * m68k-tdep.c (fill_gregset): Update.
4954 * infptrace.c (store_register): Update.
4955 * i386-nto-tdep.c (i386nto_regset_fill): Update.
4956 * i386-linux-nat.c (store_register, fill_gregset): Update.
4957 * hppa-linux-nat.c (fill_gregset): Update.
4958 * go32-nat.c (store_register): Update.
4959 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
4960 (store_fp_regs): Update.
4961 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
4962 (store_nwfpe_extended, store_fpregister, store_fpregs)
4963 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
4964 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
4965 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
4966 (store_regs_user_thread, store_regs_kernel_thread): Update.
4967
4968 2004-07-24 Mark Kettenis <kettenis@gnu.org>
4969
4970 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
4971 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
4972 encoding.
4973 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
4974 member of `struct comp_unit'.
4975
4976 2004-07-23 Andrew Cagney <cagney@gnu.org>
4977
4978 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
4979 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
4980
4981 2004-07-23 Martin Hunt <hunt@redhat.com>
4982 Kevin Buettner <kevinb@redhat.com>
4983
4984 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
4985 alignment was being added to the offset instead of multiplied.
4986
4987 2004-07-23 Mark Kettenis <kettenis@gnu.org>
4988
4989 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
4990 changed signal trampoline in OpenBSD 3.5-current.
4991
4992 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
4993 <machine/pcb.h> and "bsd-kvm.h".
4994 (sparc64nbsd_supply_pcb): New function.
4995 (_initialize_sparc64nbsd_nat): Renamed from
4996 _initialize_sparcnbsd_nat. Enable libkvm interface.
4997 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
4998 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
4999 (LOADLIBES): New variable.
5000
5001 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
5002
5003 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
5004
5005 2004-07-21 Andrew Cagney <cagney@gnu.org>
5006
5007 Use regcache_raw_supply instead of supply_register.
5008 * regcache.h (supply_register): Delete declaration.
5009 * regcache.c (supply_register): Delete function.
5010 * wince.c (do_child_fetch_inferior_registers): Update.
5011 * win32-nat.c (do_child_fetch_inferior_registers)
5012 (fetch_elf_core_registers): Update.
5013 * v850ice.c (v850ice_fetch_registers): Update.
5014 * thread-db.c (thread_db_store_registers): Update.
5015 * sol-thread.c (sol_thread_store_registers): Update.
5016 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
5017 * rs6000-nat.c (fetch_register): Update.
5018 * rom68k-rom.c (rom68k_supply_one_register): Update.
5019 * remote.c (remote_wait, remote_async_wait): Update.
5020 * remote-st.c (get_hex_regs): Update.
5021 * remote-sim.c (gdbsim_fetch_register): Update.
5022 * remote-sds.c (sds_fetch_registers): Update.
5023 * remote-rdp.c (remote_rdp_fetch_register): Update.
5024 * remote-rdi.c (arm_rdi_fetch_registers): Update.
5025 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
5026 * remote-m32r-sdi.c (m32r_fetch_register): Update.
5027 * remote-hms.c (init_hms_cmds): Update.
5028 * remote-est.c (init_est_cmds): Update.
5029 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
5030 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
5031 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
5032 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
5033 (fetch_register, supply_vrregset, supply_vrregset)
5034 (fetch_spe_registers): Update.
5035 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
5036 * monitor.c (monitor_supply_register): Update.
5037 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
5038 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
5039 (mipsnbsd_supply_fpreg): Update.
5040 * mips-nat.c (fetch_inferior_registers)
5041 (fetch_core_registers): Update.
5042 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
5043 (supply_fpregset, mips64_supply_gregset)
5044 (mips64_supply_fpregset): Update.
5045 * m68klinux-nat.c (fetch_register, supply_gregset)
5046 (supply_fpregset): Update.
5047 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
5048 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
5049 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
5050 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
5051 * infptrace.c (fetch_register): Update.
5052 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
5053 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
5054 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
5055 (gnu_fetch_registers, gnu_store_registers): Update.
5056 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
5057 * i386-linux-nat.c (fetch_register, supply_gregset)
5058 (dummy_sse_values): Update.
5059 * hpux-thread.c (hpux_thread_fetch_registers): Update.
5060 * hppah-nat.c (fetch_register): Update.
5061 * hppa-linux-nat.c (fetch_register, supply_gregset)
5062 (supply_fpregset): Update.
5063 * go32-nat.c (fetch_register): Update.
5064 * dve3900-rom.c (fetch_bitmapped_register)
5065 (_initialize_r3900_rom): Update.
5066 * cris-tdep.c (supply_gregset): Update.
5067 * abug-rom.c (init_abug_cmds): Update.
5068 * core-aout.c (fetch_core_registers): Update.
5069 * armnbsd-nat.c (supply_gregset, supply_fparegset)
5070 (fetch_register, fetch_fp_register): Update.
5071 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
5072 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
5073 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
5074 * alphanbsd-tdep.c (fetch_core_registers): Update.
5075 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
5076 * alpha-nat.c (fetch_osf_core_registers)
5077 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
5078 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
5079 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
5080
5081 2004-07-21 Andrew Cagney <cagney@gnu.org>
5082
5083 * PROBLEMS: Mention breakpoints/1702.
5084 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
5085 that is known to work.
5086
5087 2004-07-21 Andrew Cagney <cagney@gnu.org>
5088
5089 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
5090 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
5091 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
5092 (handle_inferior_event): Wrap call to deprecated
5093 IGNORE_HELPER_CALL in #ifdef.
5094 * config/mips/tm-nbsd.h: Update.
5095
5096 2004-07-20 Jim Blandy <jimb@redhat.com>
5097
5098 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
5099 bfd_mach_ppc has no segment registers.
5100
5101 Include PowerPC SPR numbers for special-purpose registers.
5102 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
5103 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
5104 new member in initializer.
5105 (S, S4, SN4, S64): New macros for defining special-purpose
5106 registers.
5107 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
5108 registers_403, registers_403GC, registers_505, registers_860,
5109 registers_601, registers_602, registers_603, registers_604,
5110 registers_750, registers_e500): Use them.
5111
5112 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
5113 replace references with expression used to initialize variable.
5114
5115 2004-07-20 Andrew Cagney <cagney@gnu.org>
5116
5117 * breakpoint.c (deprecated_read_memory_nobpt): Rename
5118 read_memory_nobpt.
5119 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
5120 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
5121 (s390_sigtramp_frame_sniffer): Update.
5122 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
5123 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
5124 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
5125 (mips32_fetch_instruction): Update.
5126 * mcore-tdep.c (get_insn): Update.
5127 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
5128 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
5129 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
5130 * i386-linux-tdep.c (i386_linux_sigtramp_start)
5131 (i386_linux_rt_sigtramp_start): Update.
5132 * i386-linux-nat.c (child_resume): Update.
5133 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
5134 * hppa-linux-tdep.c (insns_match_pattern): Update.
5135 * gdbcore.h: Update.
5136 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
5137 * frame.c (safe_frame_unwind_memory): Update.
5138 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
5139 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
5140 * alpha-tdep.c (alpha_read_insn): Update.
5141
5142 2004-07-20 Andrew Cagney <cagney@gnu.org>
5143
5144 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
5145 containing both bytes and mask. Add "frame_type".
5146 * tramp-frame.c (tramp_frame_start): Update.
5147 (tramp_frame_prepend_unwinder): Update.
5148 * mips-linux-tdep.c (mips_linux_o32_sigframe)
5149 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
5150 (mips_linux_n64_rt_sigframe): Update. Make "static const".
5151 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
5152
5153 2004-07-19 Eli Zaretskii <eliz@gnu.org>
5154
5155 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
5156 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
5157 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
5158 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
5159
5160 2004-07-17 Andrew Cagney <cagney@gnu.org>
5161
5162 * NEWS, PROBLEMS: Update for 6.2.
5163
5164 * README: Update to 6.2.
5165
5166 * utils.c (xvasprintf): Call xstrvprintf.
5167
5168 * parse.c: Update copyright.
5169 (null_post_parser): Eliminate ARGSUSED.
5170
5171 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
5172 * tui/tui-win.c (tui_get_cmd_list): Ditto.
5173 * symfile-mem.c (_initialize_symfile_mem): Ditto.
5174
5175 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
5176 * ppc-linux-nat.c: Use "Linux kernel".
5177 * hppa-linux-tdep.c: Use GNU/Linux.
5178 * hppa-linux-nat.c: Use GNU/Linux.
5179 * dwarfread.c: Add [sic] to use of Linux.
5180
5181 * hppa-linux-nat.c: Do not include <string.h>.
5182 (supply_fpregset): Remove "register" attribute.
5183
5184 * solib-frv.c (fetch_loadmap): Use xfree, not free.
5185
5186 2004-07-17 Mark Kettenis <kettenis@gnu.org>
5187
5188 * configure.in: Define _MSE_INT_H on Solaris 9 too.
5189 * configure, config.in: Regenerated.
5190
5191 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
5192 "bsd-kvm.h".
5193 (vaxbsd_supply_pcb): New function.
5194 (_initialize_vaxbsd_nat): New prototype and function.
5195 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
5196 solib-sunos.o.
5197 (LOADLIBES): New variable.
5198 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5199 (LOADLIBES): New variable.
5200 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
5201 (LOADLIBES): New variable.
5202 * Makefile.in (vaxbsd-nat.o): Update dependencies.
5203
5204 2004-07-16 Andrew Cagney <cagney@gnu.org>
5205
5206 * defs.h (event_loop_p): Replace variable declaration with macro,
5207 always 1.
5208 * main.c (captured_main): Delete options "-async" and "-noasync".
5209 (event_loop_p): Delete variable.
5210 * NEWS: Mention that "-async" and "-noasync" were removed.
5211
5212 2004-07-16 Andrew Cagney <cagney@gnu.org>
5213
5214 * remote-m32r-sdi.c: Re-indent.
5215
5216 2004-07-16 Jim Blandy <jimb@redhat.com>
5217
5218 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
5219 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
5220 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
5221 missing MPC823 SPRs.
5222 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
5223 incorrect. (This was corrected in GDB's register name tables on
5224 2004-07-14.)
5225
5226 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
5227 should be "esasrr" ("ESA Save and Restore Register").
5228
5229 2004-07-16 Andrew Cagney <cagney@gnu.org>
5230
5231 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
5232 calls, no longer applicable. Update comments and rename parameter
5233 "step_frame" to "return_frame".
5234
5235 2004-07-16 Andrew Cagney <cagney@gnu.org>
5236
5237 * frame.c (fprint_field): New function.
5238 (fprint_frame_id): Use fprint_field.
5239
5240 2004-07-15 Joel Brobecker <brobecker@gnat.com>
5241
5242 * ada-lang.c (ada_language_defn): Remove commented out code.
5243
5244 2004-07-15 Jim Blandy <jimb@redhat.com>
5245
5246 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
5247 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
5248
5249 2004-07-14 Jim Blandy <jimb@redhat.com>
5250
5251 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
5252
5253 * ppc-tdep.h (ppc_num_vrs): New enum constant.
5254
5255 * ppc-tdep.h (ppc_num_srs): New enum constant.
5256
5257 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
5258 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
5259 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
5260 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
5261 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
5262 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
5263 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
5264 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
5265 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
5266 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
5267 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
5268 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
5269 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
5270 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
5271 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
5272 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
5273 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
5274 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
5275 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
5276 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
5277 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
5278 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
5279 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
5280 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
5281 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
5282 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
5283 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
5284 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
5285 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
5286 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
5287 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
5288 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
5289 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
5290 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
5291 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
5292 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
5293 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
5294 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
5295 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
5296 special-purpose register numbers.
5297
5298 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
5299 manual mentions 'md_twb', but many mention 'm_twb', and at that
5300 point in the register list.)
5301
5302 2004-07-14 Andrew Cagney <cagney@gnu.org>
5303
5304 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
5305 instead of "internal-error".
5306
5307 2004-07-10 Joel Brobecker <brobecker@gnat.com>
5308
5309 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
5310 that was inserted inside a comment.
5311
5312 2004-07-10 Randolph Chung <tausq@debian.org>
5313
5314 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
5315 function.
5316 (hppa_hpux_push_dummy_code): New function.
5317 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
5318 Set find_global_pointer method.
5319
5320 2004-07-10 Mark Kettenis <kettenis@gnu.org>
5321
5322 * NEWS: Mention BSD libkvm interface.
5323
5324 2004-07-10 Michael Snyder <msnyder@redhat.com>
5325
5326 * symfile.c (generic_load): Comment typo.
5327 * stack.c (get_selected_block): Ditto.
5328 * regcache.c (regcache_cooked_read): Ditto.
5329 * monitor.c (monitor_debug): Ditto.
5330 * mips-tdep.c (mips_read_pc): Ditto.
5331 * i386-linux-nat.c (ps_get_thread_area): Ditto.
5332 * gdb_mbuild.sh: Ditto.
5333 * gdbarch.sh: Ditto.
5334 * gdbarch.h: Ditto.
5335
5336 2004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
5337
5338 * ada-tasks.c: Remove file.
5339
5340 Remove ARI problems:
5341
5342 * ada-exp.y (write_var_from_sym): Reformat to put operator at
5343 beginning of line.
5344
5345 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
5346 Add comment.
5347 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
5348 (MIN_OF_SIZE): Rename min_of_size. Add comment.
5349 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
5350 (UMIN_OF_SIZE): Remove.
5351 (max_of_type): New function to replace orphan macro in gdbtypes.h
5352 (min_of_type): Ditto.
5353 (discrete_type_high_bound): Use max_of_type.
5354 (discrete_type_low_bound): Use min_of_type.
5355 (possible_user_operator_p): Move operator to beginning of line.
5356 (ada_is_variant_part): Ditto.
5357 (ensure_lval): Rewrite to avoid deprecated operations.
5358 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
5359 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
5360 (ada_enum_name): Remove assignments in 'if' statements.
5361 (build_ada_types): Add gdbarch parameter.
5362 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
5363 with gdbarch_data_register_post_init.
5364 Use add_setshow_uinteger_cmd rather than add_set_cmd and
5365 add_show_from_set.
5366
5367 * ada-valprint.c (inspect_it): Remove declaration.
5368 (repeat_count_threshold): Remove declaration.
5369 (ada_print_floating): Remove assignments in 'if' statements.
5370 (print_str): Move operator to beginning of line.
5371
5372 2004-07-08 Jim Blandy <jimb@redhat.com>
5373
5374 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
5375
5376 2004-07-08 Bob Rossi <bob@brasko.net>
5377
5378 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
5379
5380 2004-07-06 Jeff Johnston <jjohnstn@redhat.com>
5381
5382 * language.h (struct_language_defn): Add new function pointer:
5383 la_class_name_from_physname. Also add new prototype for
5384 language_class_name_from_physname.
5385 * language.c (language_class_name_from_physname): New function.
5386 (unk_lang_class_name): Ditto.
5387 (unknown_language_defn, auto_language_defn): Change
5388 to add unk_lang_class_name function pointer for
5389 la_class_name_from_physname.
5390 (local_language_defn): Ditto.
5391 * dwarf2read.c (guess_structure_name): Change to call
5392 language_class_name_from_physname.
5393 (determine_class_name): Ditto.
5394 * cp-support.c (class_name_from_physname): Renamed.
5395 (cp_class_name_from_physname): New name of function.
5396 * cp-support.h: Ditto.
5397 * c-lang.c (c_language_defn): Change to add NULL
5398 for class_name_from_physname function pointer.
5399 (cplus_language_defn): Change to add cp_class_name_from_physname.
5400 * jv-lang.c (java_class_name_physname): New function.
5401 (java_find_last_component): New static routine.
5402 (java_language_defn): Add java_class_name_from_physname pointer.
5403 * ada-lang.c (ada_language_defn): Change to add NULL
5404 for class_name_from_physname function pointer.
5405 * f-lang.c (f_language_defn): Ditto.
5406 * m2-lang.c (m2_language_defn): Ditto.
5407 * objc-lang.c (objc_language_defn): Ditto.
5408 * p-lang.c (pascal_language_defn): Ditto.
5409 * scm-lang.c (scm_language_defn): Ditto.
5410
5411 2004-07-06 Andrew Cagney <cagney@gnu.org>
5412
5413 Patch from Bart Robinson.
5414 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
5415 (O_LARGEFILE): Define to 0, if not defined.
5416
5417 2004-07-03 Mark Kettenis <kettenis@gnu.org>
5418
5419 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
5420 <machine/pcb.h> and "bsd-kvm.h".
5421 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
5422 (m68kbsd_supply_pcb): New function.
5423 (_initialize_m68kbsd_nat): New prototype and function.
5424 * Makefile.in (m68kbsd-nat.o): Update dependencies.
5425 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5426 (LOADLIBES): New variable.
5427 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
5428 (LOADLIBES): New variable.
5429
5430 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
5431
5432 2004-07-03 Mark Kettenis <kettenis@gnu.org>
5433
5434 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
5435 <sys/proc.h>.
5436 (bsd_kvm_cmdlist): New variable.
5437 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
5438 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
5439 command and "kvm proc" command.
5440 * Makefile.in (bsd-kvm.o): Update dependencies.
5441
5442 2004-07-02 Mark Kettenis <kettenis@gnu.org>
5443
5444 * osabi.c: Update copyright year.
5445 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
5446 notes if EI_OSABI is set to ELFOSABI_HPUX.
5447
5448 2004-07-01 Michael Snyder <msnyder@redhat.com>
5449
5450 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
5451 that seems to have gotten whacked out of line.
5452
5453 2004-07-01 Mark Kettenis <kettenis@gnu.org>
5454
5455 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
5456 code.
5457
5458 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
5459
5460 * ada-lang.c (decode_packed_array): Minor change to comment.
5461 (ada_value_slice_ptr): New function.
5462 (ada_value_slice): New function.
5463 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
5464 test. Don't know why it is there.
5465 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
5466 to avoid dereferencing huge arrays from which one is slicing.
5467 (empty_array): Correct to return an array rather than
5468 a subrange value.
5469 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
5470 on empty arrays (let'em use 'FIRST instead).
5471
5472 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
5473
5474 Address complaints from gdb_ari.sh:
5475
5476 * ada-exp.y: Include gdb_string.h rather than string.h.
5477 (convert_char_literal): Reformat declaration.
5478 * ada-lang.h: Include opaque struct declaration for struct frame_info.
5479 * ada-lex.l: Change use of free to xfree (the macro would do so
5480 anyway, but this is harmless).
5481 Include gdb_string.h rather than string.h.
5482 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
5483
5484 * ada-lang.c (parse): Remove K&Rism in parameter list.
5485 (is_name_suffix): Correct Linux => GNU/Linux in comment.
5486
5487 2004-06-30 Mark Kettenis <kettenis@gnu.org>
5488
5489 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
5490 dead code.
5491
5492 2004-06-30 Mark Kettenis <kettenis@gnu.org>
5493
5494 * alphabsd-nat.c: Update copyright year.
5495 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
5496
5497 2004-06-29 Joel Brobecker <brobecker@gnat.com>
5498
5499 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
5500 (i386_cygwin_in_solib_call_trampoline): New function.
5501 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
5502 and skip_trampoline_code gdbarch methods.
5503
5504 2004-06-29 Jim Blandy <jimb@redhat.com>
5505
5506 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
5507 name actually used in the dependency lists.
5508
5509 2004-06-29 Randolph Chung <tausq@debian.org>
5510
5511 * NEWS (New native configurations): Mention GNU/Linux/hppa.
5512
5513 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
5514
5515 * win32-nat.c (child_pid_to_exec_file): New function.
5516 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
5517 functionality.
5518
5519 2004-06-28 Andrew Cagney <cagney@gnu.org>
5520
5521 * defs.h (xstrvprintf): Declare.
5522 * utils.c (xstrvprintf): New function.
5523 (internal_vproblem, xstrprintf, xasprintf)
5524 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
5525 * serial.c (serial_printf): Ditto.
5526 * complaints.c (vcomplaint): Ditto.
5527
5528 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
5529
5530 * infcmd.c (attach_command): Move call to target_terminal_inferior
5531 behind loading symbol table.
5532
5533 2004-06-28 Andrew Cagney <cagney@gnu.org>
5534
5535 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
5536 change - add back extern deprecated_ui_loop_hook declaration.
5537
5538 2004-06-28 Andrew Cagney <cagney@gnu.org>
5539
5540 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
5541 xstrprintf.
5542 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
5543 (c_value_of_variable): Ditto.
5544 * utils.c (internal_vproblem): Ditto.
5545 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
5546 * remote.c (add_packet_config_cmd): Ditto.
5547 * remote-rdp.c (rdp_set_command_line): Ditto.
5548 * regcache.c (regcache_dump): Ditto.
5549 * frv-tdep.c (new_variant, new_variant): Ditto.
5550 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
5551 (fbsd_find_memory_regions): Ditto.
5552 * breakpoint.c (create_thread_event_breakpoint)
5553 (create_breakpoints): Ditto.
5554 * aix-thread.c (aix_thread_pid_to_str): Ditto.
5555 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
5556
5557 2004-06-28 Joel Brobecker <brobecker@gnat.com>
5558
5559 * ada-lang.c: Re-indent file, with some massaging to help indent
5560 a bit when the result is otherwise really too ugly.
5561
5562 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
5563
5564 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
5565 code_addr_p and special_addr_p to 'unsigned int'.
5566
5567 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5568
5569 * i386v4-nat.c: Update copyright year and tweak comment.
5570 (regmap): Remove trailing comma.
5571 (supply_gregset): Rename local variable i to regnum. Call
5572 regcache_raw_supply instead of supply_register.
5573 (fill_gregset): Rename argument regno to regnum. Call
5574 regcache_raw_collect instead of regcache_collect.
5575
5576 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
5577
5578 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
5579 and special_addr_p.
5580 (frame_id_build, frame_id_build_special): Update comments.
5581 (frame_id_build_wild): New prototype.
5582 * frame.c (frame_id_build, frame_id_build_special): Fill in new
5583 struct frame_id fields.
5584 (frame_id_build_wild): New function.
5585 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
5586
5587 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5588
5589 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
5590 hppabsd-tdep.c.
5591
5592 2004-06-27 Joel Brobecker <brobecker@gnat.com>
5593
5594 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
5595
5596 2004-06-27 Joel Brobecker <brobecker@gnat.com>
5597
5598 * ada-lang.c: Re-indent file.
5599
5600 2004-06-27 Joel Brobecker <brobecker@gnat.com>
5601
5602 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
5603 (no_symtab_msg): Likewise.
5604
5605 2004-06-27 Andreas Schwab <schwab@suse.de>
5606
5607 * source.c: Fix whitespace.
5608
5609 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5610
5611 * configure.in: Include <sys/param.h> for td_pcb test.
5612 * configure: Regenerated.
5613
5614 * i386nbsd-nat.c: New file.
5615 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
5616 i386obsd-nat.c and i386obsd-tdep.c.
5617 (i386nbsd-nat.o): New dependency.
5618 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
5619 bsd-kvm.o.
5620 (LOADLIBES): New variable.
5621 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
5622 bsd-kvm.o.
5623 (LOADLIBES): New variable.
5624
5625 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
5626 (LOADLIBES): New variable.
5627
5628 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
5629 fetching from BSD_KVM_PADDR. Correctly lookup address for
5630 "_thread0".
5631
5632 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
5633 "bsd-kvm.h".
5634 (amd64fbsd_supply_pcb): New funcion.
5635 (_initialize_amd64fbsd_nat): Enable libkvm interface.
5636
5637 2004-06-27 <david@streamline-computing.com>
5638
5639 Partial fix for PR cli/1056.
5640 * valarith.c: Check for zero in division and remainder
5641 evaluation.
5642
5643 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5644
5645 * i387-tdep.c: Remove excessive whitespace.
5646
5647 2004-06-26 Andrew Cagney <cagney@gnu.org>
5648
5649 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
5650 * gdb-events.h, gdb-events.c: Re-generate.
5651 * tui/tui-hooks.c (tui_install_hooks): Update.
5652 (tui_remove_hooks): Update.
5653 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
5654
5655 2004-06-26 Mark Kettenis <kettenis@gnu.org>
5656
5657 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
5658 (gregset_t, fpregset_t): Remove typedefs.
5659 (REG_OFFSET): Rename argument.
5660 (amd64bsd_r_reg_offset): Rename from reg_offset.
5661 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
5662 Remove functions.
5663 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
5664 of reg_offset.
5665 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
5666
5667 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
5668
5669 * vax-tdep.c: Tweak comment.
5670
5671 Add OpenBSD/hppa support.
5672 * NEWS (New native configurations): Mention OpenBSD/hppa.
5673 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
5674 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
5675 files.
5676 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
5677 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
5678 * configure.host: Add hppa*-*-openbsd*.
5679 * configure.tgt: Add hppa*-*-openbsd*.
5680
5681 2004-06-25 Andrew Cagney <cagney@gnu.org>
5682
5683 * defs.h (deprecated_ui_loop_hook): Deprecated.
5684 * wince.c (child_wait): Update.
5685 * win32-nat.c (child_wait): Update.
5686 * v850ice.c (v850ice_wait): Update.
5687 * top.c (deprecated_ui_loop_hook): Update.
5688 * serial.h: Update.
5689 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
5690 (do_unix_readchar): Update.
5691 * ser-tcp.c (net_open): Update.
5692 * remote-sim.c (gdb_os_poll_quit): Update.
5693 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
5694
5695 2004-06-24 Andrew Cagney <cagney@gnu.org>
5696
5697 * defs.h (deprecated_pre_add_symbol_hook)
5698 (deprecated_post_add_symbol_hook): Deprecated.
5699 * symfile.c (symbol_file_add_with_addrs_or_offsets)
5700 (symbol_file_add_with_addrs_or_offsets): Update references.
5701
5702 2004-06-24 Andrew Cagney <cagney@gnu.org>
5703
5704 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
5705 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
5706 * wince.c (ui_loop_hook): Delete extern declaration.
5707 * win32-nat.c (ui_loop_hook): Delete extern declaration..
5708 * v850ice.c (ui_loop_hook): Delete extern declaration..
5709 * ser-unix.c (ui_loop_hook): Delete extern declaration..
5710 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
5711 * remote-sim.c (ui_loop_hook): Delete extern declaration..
5712 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
5713 ui_loop_hook declaration.
5714
5715 2004-06-24 Andrew Cagney <cagney@gnu.org>
5716
5717 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
5718 entry_func_highpc fields.
5719 * objfiles.c (init_entry_point_info): Do not clear
5720 entry_func_lowpc and entry_func_highpc.
5721 (objfile_relocate): Do not relocate entry_func_lowpc and
5722 entry_func_highpc.
5723 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
5724 entry_func_highpc.
5725 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
5726 entry_func_highpc.
5727 * blockframe.c (legacy_frame_chain_valid): Replace tests against
5728 entry_func_lowpc and entry_func_highpc with call to
5729 inside_entry_func.
5730
5731 2004-06-24 Mark Kettenis <kettenis@gnu.org>
5732
5733 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
5734 quad-precision floating point arguments in registers.
5735
5736 2004-06-24 Mark Kettenis <kettenis@gnu.org>
5737
5738 From Michael Mueller <m.mueller99@kay-mueller.de>:
5739 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
5740 account.
5741
5742 2004-06-22 Jeff Johnston <jjohnstn@redhat.com>
5743
5744 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
5745 to -1.
5746 * breakpoint.c (bpstat_stop_status): Move check for ignoring
5747 untriggered watchpoints to a separate if clause. Update function
5748 comment regarding STOPPED_BY_WATCHPOINT argument.
5749
5750 2004-06-22 Jim Blandy <jimb@redhat.com>
5751
5752 * gdbarch.sh: Doc fix.
5753
5754 2004-06-21 Martin Hunt <hunt@redhat.com>
5755 Kevin Buettner <kevinb@redhat.com>
5756
5757 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
5758 * mips-tdep.h (MIPS_SP_REGNUM): Define.
5759 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
5760 to set_gdbarch_sp_regnum(). Use cooked register number.
5761 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
5762
5763 2004-06-21 Andrew Cagney <cagney@gnu.org>
5764
5765 * gdbarch.sh: When the macro field is empty, do not generate a
5766 macro definition. When the macro field is "=", generate the macro
5767 name from the upper-case function name.
5768 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
5769 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
5770 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
5771 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
5772 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
5773 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
5774 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
5775 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
5776 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
5777 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
5778 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
5779 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
5780 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
5781 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
5782 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
5783 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
5784 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
5785 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
5786 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
5787 (DEPRECATED_USE_STRUCT_CONVENTION)
5788 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5789 (DEPRECATED_FRAME_INIT_SAVED_REGS)
5790 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
5791 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
5792 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
5793 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
5794 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
5795 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
5796 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
5797 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
5798 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
5799 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
5800 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
5801 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
5802 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
5803 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
5804 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
5805 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
5806
5807 2004-06-21 Andrew Cagney <cagney@gnu.org>
5808
5809 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
5810 macro name, and the function rather than macro value. Only wrap
5811 macro print statements in #ifdef. Move format logic to where it
5812 is needed.
5813 * gdbarch.c: Re-generate.
5814
5815 * gdbarch.sh (read): Delete "print_p" and "description", add
5816 "garbage_at_eol". Check for non-empty garbage at end-of-line.
5817 Delete references to print_p.
5818 (TARGET_ARCHITECTURE): Delete print predicate.
5819 * gdbarch.c: Re-generate.
5820
5821 * gdbarch.sh: Check that multi-arch methods do not provide a
5822 macro.
5823 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
5824 (print_registers_info, print_float_info, print_vector_info)
5825 (adjust_breakpoint_address, remote_translate_xfer_address)
5826 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
5827 (address_class_type_flags_to_name, unwind_sp): Remove the macro
5828 name from the multi-arch definition.
5829
5830 2004-06-20 Andrew Cagney <cagney@gnu.org>
5831
5832 * gdbarch.sh: Sort by the function, instead of macro name.
5833 * gdbarch.c: Re-generate.
5834
5835 2004-06-20 Andrew Cagney <cagney@gnu.org>
5836
5837 * gdbarch.sh: Use the function, instead of macro name in
5838 errors and the log file.
5839 (return_value): Remove stray ":" in spec.
5840
5841 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
5842 * gdbarch.h, gdbarch.c: Re-generate.
5843 * Makefile.in (arch-utils.o): Update dependencies.
5844 * values.c (using_struct_return): Move code calling
5845 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
5846 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
5847 to legacy_return_value, simplify.
5848 * infcmd.c (print_return_value): Move code calling
5849 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
5850 to legacy_return_value, simplify.
5851 * infcall.c (call_function_by_hand): Move code calling
5852 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
5853 * arch-utils.c: Update copyright. Include "gdbcore.h".
5854 (legacy_return_value): New function.
5855 * arch-utils.h: Update copyright.
5856 (legacy_return_value): Declare.
5857
5858 2004-06-20 Andrew Cagney <cagney@gnu.org>
5859
5860 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
5861 * gdbarch.h, gdbarch.c: Re-generate.
5862 * values.c (using_struct_return): Update call.
5863 * mcore-tdep.c: Update comment.
5864 * infcall.c (call_function_by_hand): Update comment.
5865 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5866 * arch-utils.h (always_use_struct_convention): Update.
5867 * v850-tdep.c (v850_gdbarch_init): Update.
5868 * sh64-tdep.c (sh64_gdbarch_init): Update.
5869 * sh-tdep.c (sh_gdbarch_init): Update.
5870 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5871 * mips-tdep.c (mips_gdbarch_init): Update.
5872 * mcore-tdep.c (mcore_gdbarch_init): Update.
5873 * m32r-tdep.c (m32r_gdbarch_init): Update.
5874 * ia64-tdep.c (ia64_gdbarch_init): Update.
5875 * h8300-tdep.c (h8300_gdbarch_init): Update.
5876 * frv-tdep.c (frv_gdbarch_init): Update.
5877 * cris-tdep.c (cris_gdbarch_init): Update.
5878 * arm-tdep.c (arm_gdbarch_init): Update.
5879 * alpha-tdep.c (alpha_gdbarch_init): Update.
5880
5881 2004-06-18 Michael Chastain <mec.gnu@mindspring.com>
5882
5883 * PROBLEMS: Add more specific information, and a work-around,
5884 for PR gdb/1458.
5885
5886 2004-06-18 Andrew Cagney <cagney@gnu.org>
5887
5888 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
5889 * gdbarch.h, gdbarch.c: Re-generate.
5890 * ada-lang.c (ada_finish_decode_line_1): Update.
5891 * infrun.c (handle_inferior_event): Update.
5892 * infcall.c (find_function_addr): Update.
5893 * linespec.c (minsym_found): Update.
5894 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
5895 Update.
5896 * blockframe.c (legacy_frameless_look_for_prologue): Update.
5897 * cli/cli-cmds.c (disassemble_command): Update.
5898 * vax-tdep.c (vax_gdbarch_init): Update.
5899
5900 2004-06-18 Mark Kettenis <kettenis@gnu.org>
5901
5902 * i386-tdep.c (i386_collect_fpregset): Fix comment.
5903
5904 2004-06-17 Andrew Cagney <cagney@gnu.org>
5905
5906 GDB 6.1.1 released from the GDB 6.1 branch.
5907 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
5908 * PROBLEMS: Ditto.
5909
5910 2004-06-16 Daniel Jacobowitz <dan@debian.org>
5911
5912 PR gdb/1658
5913 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
5914 operation as a uleb128. Found by Michael Coulter.
5915
5916 2004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
5917
5918 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
5919 make it non-static.
5920 * ada-lang.h (task_control_block): declaration moved from ada-task.c
5921 to ada-lang.h; this is needed to be able to implement the kill command
5922 in multi-task mode.
5923 (task_ptid): Ditto.
5924 (task_entry): Ditto.
5925 (task_list): Ditto.
5926 (ada_build_task_list): Ditto.
5927
5928 * ada-lang.c: Conditionalize routines and data structures related
5929 to breakpoints, exceptions, completion, and symbol caching on
5930 GNAT_GDB, since these are not yet used in the submitted public sources.
5931 (ada_main_name): Editorial: Move definition out of exception-related
5932 code.
5933
5934 2004-06-15 Andrew Cagney <cagney@gnu.org>
5935
5936 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
5937 deprecated_pc_in_call_dummy.
5938
5939 2004-06-15 Alan Modra <amodra@bigpond.net.au>
5940
5941 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
5942 bfd_get_section_size_before_reloc or _raw_size.
5943 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
5944 * dwarf2read.c (dwarf2_locate_sections): Likewise.
5945 (dwarf2_read_section): Likewise.
5946 * elfread.c (elf_locate_sections): Likewise.
5947 * gcore.c (derive_heap_segment): Likewise.
5948 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
5949 * remote-e7000.c (e7000_load): Likewise.
5950 * remote-m32r-sdi.c (m32r_load): Likewise.
5951 * remote-mips.c (mips_load_srec): Likewise.
5952 (pmon_load_fast): Likewise.
5953 * remote.c (compare_sections_command): Likewise.
5954 * symfile.c (add_section_size_callback): Likewise.
5955 (load_section_callback): Likewise.
5956 (pc_in_unmapped_range): Likewise.
5957 (pc_in_mapped_range): Likewise.
5958 (sections_overlap): Likewise.
5959 (list_overlays_command): Likewise.
5960 (simple_overlay_update_1): Likewise.
5961 (simple_overlay_update): Likewise.
5962 * tracepoint.c (remote_set_transparent_ranges): Likewise.
5963 * win32-nat.c (core_section_load_dll_symbols): Likewise.
5964
5965 2004-06-14 Randolph Chung <tausq@debian.org>
5966
5967 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
5968 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
5969 static.
5970 (hppa_hpux_inferior_created): New function.
5971 (hppa_hpux_init_abi): Register observer.
5972 * symfile.c (hp_cxx_exception_support_initialized)
5973 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
5974 (symbol_file_add_main_1, symbol_file_clear): Likewise.
5975
5976 2004-06-14 Randolph Chung <tausq@debian.org>
5977
5978 * MAINTAINERS (Write After Approval): Alphabetize my entry
5979 correctly.
5980
5981 2004-06-14 Andrew Cagney <cagney@gnu.org>
5982
5983 * MAINTAINERS (testsuite): List Michael Chastain as the lead
5984 testsuite maintainer.
5985
5986 2004-06-13 Andrew Cagney <cagney@gnu.org>
5987
5988 * infcmd.c (print_return_value): Fix logic, allow
5989 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
5990
5991 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
5992 defining any macros.
5993 * gdbarch.h: Re-generate.
5994
5995 * gdbarch.sh: Delete "level" attribute. Only check for a macro
5996 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
5997 * gdbarch.h: Re-generate.
5998
5999 * values.c (generic_use_struct_convention): Don't check gcc_p.
6000
6001 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
6002 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
6003 * gdbarch.h, gdbarch.c: Regenerate.
6004 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
6005 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
6006 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6007 deprecated_max_register_raw_size and
6008 deprecated_max_register_virtual_size.
6009 * v850-tdep.c (v850_gdbarch_init): Ditto.
6010 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6011 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6012 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6013 * cris-tdep.c (cris_gdbarch_init): Ditto.
6014
6015 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
6016 * gdbarch.h, gdbarch.c: Re-generate.
6017 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
6018 (m68hc11_use_struct_convention): Delete function.
6019 (m68hc11_extract_struct_value_address): Delete function.
6020 (m68hc11_return_value): New function.
6021 (m68hc11_gdbarch_init): Instead of store_return_value,
6022 extract_return_value, return_value_on_stack,
6023 deprecated_extract_struct_value_address and use_struct_convention,
6024 set return_value.
6025 * values.c (using_struct_return): Do not call
6026 RETURN_VALUE_ON_STACK.
6027 * arch-utils.h (generic_return_value_on_stack_not): Delete
6028 declaration.
6029 * arch-utils.c (generic_return_value_on_stack_not): Delete
6030 function.
6031
6032 2004-06-12 Andrew Cagney <cagney@gnu.org>
6033
6034 * values.c (register_value_being_returned): Delete function.
6035 * infcmd.c (legacy_return_value): Delete function.
6036 * infcall.c (call_function_by_hand): Inline
6037 "register_value_being_returned", simplify.
6038 * values.c (using_struct_return): Update comment, refer to
6039 print_return_value instead of register_value_being_returned.
6040 * infcmd.c (print_return_value): Inline calls to
6041 register_value_being_returned and legacy_return_value. Simplify.
6042
6043 2004-06-11 Randolph Chung <tausq@debian.org>
6044
6045 * somread.c (som_symtab_read): Exclude gcc local symbols.
6046
6047 2004-06-11 Randolph Chung <tausq@debian.org>
6048
6049 * infrun.c (handle_inferior_event): Handle the case when a
6050 trampoline ends up in the runtime resolver, and if the trampoline
6051 has no name. Rearrange the code so that all the trampoline
6052 processing happens before other step-out-of-range handling.
6053
6054 2004-06-11 Martin Hunt <hunt@redhat.com>
6055
6056 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
6057 has no fpu.
6058
6059 2004-06-10 Andrew Cagney <cagney@gnu.org>
6060
6061 * blockframe.c (legacy_inside_entry_func): Delete.
6062 (legacy_frame_chain_valid): Inline call to
6063 legacy_inside_entry_func, simplify.
6064
6065 2004-06-10 Bob Rossi <bob@brasko.net>
6066
6067 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
6068 * dwarf2read.c (partial_die_info): Add dirname field.
6069 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
6070 (read_partial_die): Save away DW_AT_comp_dir.
6071 * defs.h (symtab_to_filename): Removed.
6072 * source.c (find_and_open_source): Added.
6073 (open_source_file): Just calls find_and_open_source.
6074 (symtab_to_filename): Removed.
6075 (symtab_to_fullname, psymtab_to_fullname): Added.
6076 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
6077 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
6078 symtab_to_filename.
6079 * symtab.h (partial_symtab): Add dirname field.
6080 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
6081 (mi_cmd_file_list_exec_source_file): Call new function
6082 symtab_to_fullname to find fullname.
6083 (mi_cmd_file_list_exec_source_files): Added.
6084 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
6085 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
6086
6087 2004-06-10 Andrew Cagney <cagney@gnu.org>
6088
6089 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
6090 to generic_use_struct_convention, the default value.
6091
6092 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
6093 of abort.
6094
6095 * ns32k-tdep.c (ns32k_push_arguments): New function.
6096 (ns32k_gdbarch_init): Set deprecated_push_arguments.
6097 * infcall.c (call_function_by_hand): Call error instead of
6098 legacy_push_arguments.
6099 * value.h (legacy_push_arguments): Delete declaration.
6100 * valops.c (legacy_push_arguments): Delete function.
6101 (value_push): Delete function.
6102
6103 2004-06-10 Brian Ford <ford@vss.fsi.com>
6104
6105 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
6106 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
6107 info.
6108 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
6109
6110 2004-06-10 Andrew Cagney <cagney@gnu.org>
6111
6112 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
6113 * gdbarch.h, gdbarch.c: Re-generate.
6114 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
6115 parameters.
6116 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
6117 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
6118 deprecated_pc_in_call_dummy instead of
6119 DEPRECATED_PC_IN_CALL_DUMMY.
6120 (arm_skip_prologue): Ditto.
6121 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
6122 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
6123 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
6124 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
6125 Ditto.
6126 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
6127 (sh64_init_extra_frame_info, sh64_get_saved_register)
6128 (sh64_pop_frame): Ditto.
6129 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
6130 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
6131 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
6132 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
6133 (h8300_pop_frame): Ditto.
6134 * blockframe.c (legacy_inside_entry_func)
6135 (legacy_frame_chain_valid): Ditto.
6136 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
6137 to deprecated_pc_in_call_dummy.
6138
6139 2004-06-09 Andrew Cagney <cagney@gnu.org>
6140
6141 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
6142 provide a default value.
6143 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
6144 * gdbarch.h, gdbarch.c: Re-generate.
6145 * arch-utils.c (generic_convert_register_p): Rename
6146 legacy_convert_register_p
6147 (legacy_register_to_value, legacy_value_to_register): Delete
6148 functions.
6149 * arch-utils.h (generic_convert_register_p): Rename
6150 legacy_convert_register_p.
6151 (legacy_register_to_value, legacy_value_to_register): Delete
6152 declarations.
6153
6154 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
6155 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
6156 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
6157 * gdbarch.h, gdbarch.c: Re-generate.
6158 * infcmd.c (default_print_registers_info): Simplify.
6159 * findvar.c (value_of_register): Simplify.
6160 * mi/mi-main.c (get_register): Simplify.
6161 * arch-utils.c (legacy_convert_register_p): Always return 0.
6162 (legacy_register_to_value, legacy_value_to_register): Always call
6163 internal_error.
6164
6165 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
6166 #ifdef CLEAR_INSN_CACHE code.
6167 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
6168 Delete #ifdef CLEAR_DEFERRED_STORES code.
6169
6170 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
6171
6172 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
6173 copyright.
6174 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
6175
6176 * config/mips/mipsv4.mh: Delete file.
6177
6178 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
6179 unreferenced macro.
6180 (hpread_adjust_stack_address): Delete declaration.
6181
6182 2004-06-08 Andrew Cagney <cagney@gnu.org>
6183
6184 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
6185 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
6186 PTRACE_ATTACH / PTRACE_DETACH available call error.
6187 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
6188 * infttrace.c (update_thread_state_after_attach, attach, detach):
6189 Remove #ifdef wrappers.
6190 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
6191 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
6192 * config/nm-bsd.h (ATTACH_DETACH): Delete.
6193 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
6194 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
6195 * config/nm-linux.h (ATTACH_DETACH): Delete.
6196 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
6197 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
6198 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
6199 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
6200 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
6201
6202 2004-06-08 Corinna Vinschen <vinschen@redhat.com>
6203
6204 * configure.in: Set $configdir to the right OS specific value.
6205 Use value when setting $tcldir and $tkdir.
6206 * configure: Regenerate.
6207
6208 2004-06-06 Paul Brook <paul@codesourcery.com>
6209
6210 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
6211 records.
6212
6213 2004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
6214
6215 * ada-lang.c (lookup_symbol_in_language): New function to allow
6216 re-use of another language's symbol lookup code. (Placed here
6217 temporarily while Ada support is being integrated into the public
6218 tree).
6219 (restore_language): New auxiliary function for
6220 lookup_symbol_in_language.
6221 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
6222 temporarily while Ada support is being integrated into the public
6223 tree).
6224
6225 2004-06-08 Alexandre Oliva <aoliva@redhat.com>
6226
6227 * Makefile.in (check//%): New.
6228
6229 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
6230 (mn10300_store_return_value): Rewrite.
6231 (mn10300_type_align): New.
6232 (mn10300_use_struct_convention): Rewrite.
6233 (mn10300_return_value): New, using all of the above.
6234 (mn10300_pop_frame_regular): Add saved_regs_size.
6235 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
6236
6237 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
6238 regs if PC is on movm.
6239
6240 2004-06-07 Jim Blandy <jimb@redhat.com>
6241
6242 Add native Linux support for the PowerPC E500.
6243 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
6244 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
6245 all architectures except the E500.
6246 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
6247 #definitions.
6248 (struct gdb_evrregset_t): New type.
6249 (have_ptrace_getsetevrregs): New variable.
6250 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
6251 fetch_spe_registers): New functions.
6252 (fetch_register): Call fetch_spe_register as appropriate.
6253 Assert that we're only passed raw register numbers.
6254 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
6255 Don't fetch gprs if they're pseudoregisters.
6256 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
6257 store_spe_registers): New functions.
6258 (store_register): Call store_spe_register as appropriate.
6259 Assert that we're only passed raw register numbers.
6260 (store_ppc_registers): Call store_spe_registers as appropriate.
6261 Don't store gprs if they're pseudoregisters.
6262
6263 2004-06-07 Jeff Johnston <jjohnstn@redhat.com>
6264
6265 * thread-db.c (thread_get_info_callback): Fill in the thread_info
6266 struct if one exists, even if we are dealing with a zombie thread.
6267
6268 2004-06-07 Andrew Cagney <cagney@gnu.org>
6269
6270 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
6271 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
6272 Rename PC_REQUIRES_RUN_BEFORE_USE.
6273 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
6274 #ifdef.
6275
6276 2004-06-07 Randolph Chung <tausq@debian.org>
6277
6278 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
6279 unwinding after sp has been saved to the stack but before the end
6280 of the prologue, and after the fp has been modified but before it has
6281 been saved to the stack.
6282 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
6283 Remove superfluous definitions.
6284 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
6285
6286 2004-06-07 Guy Martin <gmsoft@gentoo.org>
6287
6288 Committed by Randolph Chung.
6289 * hppa-linux-nat.c: Include the correct version of the header file
6290 depending on the kernel version.
6291
6292 2004-06-06 Randolph Chung <tausq@debian.org>
6293
6294 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
6295 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
6296
6297 2004-06-06 Randolph Chung <tausq@debian.org>
6298
6299 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
6300 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
6301 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
6302 * hppa-tdep.c (hppa_symbol_address): New function definition.
6303 * hppa-tdep.h (hppa_symbol_address): New function declaration.
6304
6305 2004-06-06 Randolph Chung <tausq@debian.org>
6306
6307 * hppa-tdep.h (struct value): Forward declaration.
6308 (gdbarch_tdep): Define tdep find_global_pointer method.
6309 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
6310 associated with the function we are trying to call, and write it
6311 to the gp register.
6312 (hppa32_convert_from_funct_ptr_addr): New function.
6313 (hppa_find_global_pointer): New function.
6314 (hppa_gdbarch_init): Set default find_global_pointer method; set
6315 convert_from_func_ptr_addr method.
6316 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
6317 (hppa_linux_init_abi): Set find_global_pointer method.
6318 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
6319
6320 2004-06-06 Randolph Chung <tausq@debian.org>
6321
6322 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
6323 to struct value *function.
6324 * gdbarch.c: Regenerate.
6325 * gdbarch.h: Likewise.
6326 * infcall.c (call_function_by_hand): Pass entire function value
6327 to push_dummy_call.
6328
6329 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
6330 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
6331 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
6332 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
6333 * arm-tdep.c (arm_push_dummy_call): Likewise.
6334 * avr-tdep.c (avr_push_dummy_call): Likewise.
6335 * cris-tdep.c (cris_push_dummy_call): Likewise.
6336 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
6337 * frv-tdep.c (frv_push_dummy_call): Likewise.
6338 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
6339 * hppa-tdep.c (hppa32_push_dummy_call)
6340 (hppa64_push_dummy_call): Likewise.
6341 * i386-tdep.c (i386_push_dummy_call): Likewise.
6342 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
6343 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
6344 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
6345 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
6346 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
6347 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
6348 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
6349 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
6350 (ppc64_sysv_abi_push_dummy_call): Likewise.
6351 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
6352 (ppc64_sysv_abi_push_dummy_call): Likewise.
6353 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
6354 * s390-tdep.c (s390_push_dummy_call): Likewise.
6355 * sh-tdep.c (sh_push_dummy_call_fpu)
6356 (sh_push_dummy_call_nofpu): Likewise.
6357 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
6358 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
6359 * vax-tdep.c (vax_push_dummy_call): Likewise.
6360
6361 2004-06-04 Jim Blandy <jimb@redhat.com>
6362
6363 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
6364 gdbarch argument to register_size.
6365
6366 * rs6000-tdep.c (rs6000_store_return_value): Use
6367 regcache_cooked_write_part instead of
6368 deprecated_write_register_bytes.
6369 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
6370 not gdbarch_deprecated_store_return_value.
6371
6372 * ppc-linux-nat.c (store_register, fetch_register): Remove
6373 incorrect assertions. Simplify and generalize handling of
6374 transfers whose sizes are not multiples of, or less than, sizeof
6375 (PTRACE_XFER_TYPE).
6376
6377 2004-06-04 Jeff Johnston <jjohnstn@redhat.com>
6378
6379 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
6380 as a new thread event.
6381 * thread-db.c (thread_get_info_callback): If the thread is a
6382 zombie, return TD_THR_ZOMBIE.
6383 (thread_from_lwp): If thread_get_info_callback returns
6384 TD_THR_ZOMBIE, check if the thread is still on the thread list
6385 and return a -1 ptid if not found.
6386 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
6387 change the status to TARGET_WAITKIND_SPURIOUS.
6388
6389 2004-06-03 Corinna Vinschen <vinschen@redhat.com>
6390
6391 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
6392 double values in little endian mode.
6393
6394 2004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
6395
6396 Committed by Andrew Cagney.
6397 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
6398 after last enum constant to avoid error from IBM C
6399 compiler.
6400
6401 2004-06-02 Jim Blandy <jimb@redhat.com>
6402
6403 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
6404 to 'message', and make it local to the lone block that uses it.
6405
6406 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
6407
6408 2004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
6409
6410 * ada-exp.y: Update copyright notice.
6411 Include block.h.
6412
6413 Replace REGNAME, LAST, INTERNAL_VARIABLE with
6414 SPECIAL_VARIABLE and unify the treatment of these cases.
6415
6416 (write_attribute_call0): Remove.
6417 (write_attribute_call1): Remove.
6418 (write_attribute_calln): Remove.
6419 (save_qualifier): Add missing semicolon.
6420
6421 (simple_exp,exp): Decomment (i.e., reactivate) code that was
6422 temporarily disabled to allow compilation with FSF head version.
6423
6424 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
6425 use individual operators (OP_*) for all attributes.
6426 (exp syntax): Use write_int.
6427 Handle STRING literals with OP_STRING.
6428 (variable syntax): Add limit parameter to calls to
6429 write_object_renaming.
6430
6431 (temp_parse_space): New definition to hold entities that need
6432 only live until the next call to ada_parse.
6433 (string_to_operator): Rename fields of ada_opname_table entries.
6434
6435 (write_var_from_sym): Record block.
6436 (write_var_from_name): Minor reformatting.
6437 Make sure saved name is properly encoded in the case of multiple
6438 matches, and set its language to Ada.
6439 Update comment.
6440 Modify to indicate unresolved name as symbol in the UNRESOLVED
6441 namespace, allocated in temp_parse_space.
6442 (write_int): New function.
6443
6444 (write_object_renaming): Add max_depth parameter to limit
6445 chains of object renamings.
6446 Handle case where root of renaming expression is itself a renaming.
6447 Use temp_parse_space for temporary name buffer.
6448 Handle renamings to dereferenced pointers (___XEXA suffices).
6449
6450 (ada_parse, yyerror, string_to_operator,
6451 write_var_from_sym, write_var_from_name, write_attribute_call0,
6452 write_attribute_call1, write_attribute_calln,
6453 write_object_renaming): Protoize.
6454
6455 (_initialize_ada_exp): New function.
6456
6457 * ada-lang.c: Update copyright notice.
6458 General terminology change to conform to GNAT compiler usage:
6459 mangle => encode, demangle => decode
6460 Include gdb_obstack.h.
6461 Include gdb_regex.h
6462 Include frame.h
6463 Include hashtab.h
6464 Include completer.h
6465 Include gdb_stat.h
6466 Include block.h
6467 Include infcall.h
6468
6469 (ADA_RETAIN_DOTS): Make sure this is defined.
6470 (TRUNCATION_TOWARDS_ZERO): Define.
6471 (struct string_vector): Define.
6472 (unresolved_names): Remove definition.
6473 (xnew_string_vector): New function.
6474 (string_vector_append): New function.
6475 (extract_string): Make static.
6476 (ada_unqualified_name): New function.
6477 (add_angle_brackets): New function.
6478 (function_name_from_pc): New function.
6479 (place_on_stack): Rename to ensure_lval.
6480
6481 (ensure_lval): Renamed from place_on_stack.
6482 Make identity on lvals.
6483 Update comment.
6484 (is_nonfunction): New interface.
6485 Only symbols in LOC_CONST class can be enumerals.
6486 (fill_in_ada_prototype): Remove; now independent of language.
6487 (add_defn_to_vec): Add obstack and symtab arguments.
6488 Use obstack to hold collected definitions.
6489 (num_defns_collected): New function.
6490 (defns_collected): New function.
6491 (ada_resolve_subexp): Rename to resolve_subexp.
6492 (resolve_subexp): Renamed from ada_resolve_subexp.
6493 (ada_op_name): Return non-const result.
6494 (ada_decoded_op_name): Renamed from ada_op_name, now used for
6495 other purposes.
6496
6497 (to_fixed_array_type): Add declaration.
6498 (coerce_unspec_val_to_type): Remove offset parameter.
6499 (find_sal_from_funcs_and_line): New interface.
6500 (find_line_in_linetable): Ditto.
6501
6502 (all_sals_for_line): Rename to ada_sals_for_line and make
6503 global.
6504 Add new parameter. When set, do not ask the user to choose the
6505 instance, but use the first one found instead.
6506 Use given line number in returned sals.
6507 Fix comment.
6508 Skip the prologue if funfirstline is set.
6509 Correct for memory leak when 0 lines found.
6510
6511 (value_pos_atr): Use pos_atr.
6512 (pos_atr): New function.
6513 (standard_lookup): Add block parameter.
6514
6515 (makeTimeStart): Remove declaration and uses.
6516 (makeTimeStop): Remove declaration and uses.
6517
6518 (ada_completer_word_break_characters): Allow for VMS.
6519 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
6520 (raise_sym_name): New constant.
6521 (raise_unhandled_sym_name): New constant.
6522 (raise_assert_sym_name): New constant.
6523 (process_raise_exception_name): New constant.
6524 (longest_exception_template): New constant.
6525 (warning_limit): New variable to limit warnings during expression
6526 evaluation.
6527 (warnings_issued): New variable to keep track of warnings issued.
6528 (known_runtime_file_name_patterns): New constant.
6529 (known_auxiliary_function_name_patterns): New constant.
6530 (symbol_list_obstack): New variable.
6531
6532 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
6533 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
6534 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
6535 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
6536 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
6537 ada_variant_discrim_name, field_alignment, dynamic_template_type,
6538 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
6539 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
6540 and strcmp.
6541
6542 (ada_get_field_index): New function.
6543 (lim_warning): New function.
6544 (ada_translate_error_message): New function.
6545 (MAX_OF_SIZE): New function.
6546 (MIN_OF_SIZE): New function.
6547 (UMAX_OF_SIZE): New function.
6548 (UMIN_OF_SIZE): New function.
6549 (discrete_type_high_bound): New function.
6550 (discrete_type_low_bound): New function.
6551 (base_type): New function.
6552 (do_command): Remove.
6553
6554 (ada_update_initial_language): Use language_ada, not language_unknown.
6555 (ada_encode): Renamed from ada_mangle.
6556 Obey ADA_RETAIN_DOTS.
6557 (ada_decode): Renamed from ada_demangle.
6558 Update coding conventions.
6559 (decoded_names_store): New hash table.
6560 (ada_decode_symbol): New function.
6561 (ada_la_decode): New function.
6562
6563 (modify_general_field): Correct computations of offset and bit
6564 position.
6565 (desc_base_type): Handle ref types, too.
6566 (ada_is_direct_array_type): New function.
6567
6568 (ada_is_simple_array): Rename to ada_is_simple_array_type.
6569 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
6570 (ada_is_bogus_array_descriptor,ada_type_of_array,
6571 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
6572 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
6573 ada_is_array_descriptor_type.
6574
6575 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
6576 (ada_is_packed_array_type): Handle pointers or
6577 references to packed arrays as well.
6578 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
6579 (decode_packed_array_type): Search for the packed array type
6580 symbol in the currently selected block and associated
6581 superblocks too.
6582 Use lookup_symbol again.
6583
6584 (decode_packed_array): Handle pointers and references.
6585 Update call to coerce_unspec_val_to_type.
6586 (decode_packed_array_type,value_subscript_packed): Limit warnings.
6587 (ada_value_primitive_packed_val): Improve comment.
6588
6589 (ada_index_type): Substitute int type for "undefined".
6590 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
6591 ada_array_langth, ada_is_string_type): Use renamed
6592 ada_is_simple_array_type.
6593 (empty_array): New function.
6594
6595 (ada_resolve): Rename to resolve.
6596 (resolve): Make static.
6597 Call renamed resolve_subexp.
6598 Update comment.
6599 (ada_resolve_subexp): Rename to resolve_subexp.
6600 (resolve_subexp): Update comment.
6601 Decomment disabled code.
6602 Add LOC_COMPUTED* cases.
6603 Modify to use temporary struct symbols (marked as being in
6604 UNDEF_NAMESPACE) to indicate unresolved names, instead of
6605 OP_UNRESOLVED_VALUE.
6606 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
6607 Add OP_STRING case.
6608 Remove OP_ARRAY.
6609 Use SYMBOL_PRINT_NAME instead of ada_demangle.
6610 Use new ada_lookup_symbol_list interface.
6611 Use new ada_resolve_function interface.
6612 Remove OP_TYPE case.
6613
6614 (ada_args_match): Idiot proof against null actuals.
6615 Use intermediate variables to clarify.
6616 (ada_resolve_function): Update comment and interface.
6617 (mangled_ordered_before): Rename to encoded_ordered_before and
6618 update comment.
6619 (sort_choices): Update comment and interface.
6620 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
6621 (user_select_syms): New interface.
6622 Use new sort_choices interface.
6623 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
6624 (possible_user_operator_p): Idiot-proof against null values.
6625 (ada_simple_renamed_entity): Don't make cleanup; rely on
6626 caller to free result string.
6627 Remove const from return type.
6628 (make_array_descriptor): Rename uses of place_on_stack to
6629 ensure_lval.
6630 Make sure that arrays are on stack.
6631
6632 (HASH_SIZE): Define.
6633 (struct cache_entry): Define.
6634 (cache_space): Define.
6635 (cache): Define.
6636 (clear_ada_sym_cache): New function.
6637 (find_entry): New function.
6638 (lookup_cached_symbol): New function.
6639 (defn_vector_size): Define.
6640 (cache_symbol): New function.
6641 (defn_symbols): Remove.
6642
6643 (standard_lookup): Use lookup_symbol_in_language to get effect of
6644 C lookup.
6645 Cache results.
6646
6647 (symbol_completion_match): New function.
6648 (symbol_completion_add): New function.
6649 (ada_make_symbol_completion_list): New function.
6650
6651 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
6652 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
6653 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
6654 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
6655
6656 (ada_lookup_simple_minsym): New function.
6657 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
6658
6659 (add_symbols_from_enclosing_procs): New interface.
6660 Conditionalize more helpfully.
6661 Don't bother if program isn't running.
6662 Use new interface to get_frame_block.
6663 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
6664
6665 (remove_extra_symbols): New interface.
6666 (xget_renaming_scope): New function.
6667 (is_package_name): New function.
6668 (renaming_is_visible): New function.
6669 (remove_out_of_scope_renamings): New function.
6670
6671 (ada_lookup_symbol_list): New interface.
6672 Properly reinitialize the symbol list obstack.
6673 Don't call add_symbols_from_enclosing_procs if we start from a
6674 static or global block.
6675 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
6676 add_symbols_from_enclosing_procs.
6677 Add symtab data to cached entries.
6678 Handle symbols prefixed with
6679 "standard__" specially; strip prefix and don't look in local symbols.
6680 Do not include out of scope renaming symbols in list of
6681 symbols returned.
6682 Add const to block parameter.
6683 Move check for non-local, non-global symbols earlier.
6684 Remove timing stuff.
6685 (ada_lookup_symbol): New interface.
6686 Find symtab as well.
6687 (ada_lookup_symbol_nonlocal): New function.
6688
6689 (is_name_suffix): Enhance suffix detection to recognize
6690 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
6691 (is_dot_digits_suffix): New function.
6692 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
6693
6694 (ada_add_block_symbols): New interface. Use obstack to return results
6695 in a vector of struct ada_symbol_infos. Add symtab argument.
6696 Use new interface to add_defn_to_vec.
6697 Remove calls to fill_in_ada_prototype.
6698 Use BLOCK_BUCKETS, BLOCK_BUCKET.
6699
6700 (ada_finish_decode_line_1): Add const qualification to local to fix
6701 warning.
6702 Start looking in static block for functions to avoid attempts
6703 to search frame chain for up-level variables.
6704 Adapt to new ada_sals_for_line interface.
6705 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
6706 Handle quoting of the function name inside the spec string.
6707 Skip prologue when funfirstline is set and update the
6708 function documentation to that effect.
6709
6710 (debug_print_lines, debug_print_block, debug_print_blocks,
6711 debug_print_symtab): Remove.
6712
6713 (ada_main_name): New function.
6714 (ada_exception_breakpoint_type): New function.
6715 (is_known_support_routine): New function.
6716 (ada_find_printable_frame): Renamed from find_printable_frame and made
6717 global.
6718 Remove level parameter.
6719 Use new interface to select_frame.
6720
6721 (begin_command): Remove.
6722 (ada_adjust_exception_stop): New function.
6723 (ada_print_exception_stop): New function.
6724 (exception_name_from_cond): New function.
6725 (ada_report_exception_break): Replace disabled code with
6726 conditionalization on GNAT_GDB.
6727 Get the exception name from the condition string.
6728 Remove and move functionality into new functions
6729 ada_print_exception_breakpoint_task and
6730 ada_print_exception_breakpoint_nontask.
6731 (error_breakpoint_runtime_sym_not_found): New function.
6732 (is_runtime_sym_defined): New function.
6733 (ada_breakpoint_rewrite): Uncomment suppressed code.
6734 Use symbolic error-message and runtime-symbol names.
6735 Surround runtime symbol names in quotes.
6736 Allow non-specific breakpoints on exceptions and assertions before
6737 program starts.
6738
6739 (ada_is_tagged_type): Add parameter.
6740 (ada_is_tag_type): New function.
6741 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
6742 (ada_variant_discrim_type): Ditto.
6743 (value_tag_from_contents_and_address): New function.
6744 (type_from_tag): New function.
6745 (struct tag_args): New structure used to communicate with
6746 ada_tag_name_1.
6747 (ada_tag_name_1): New function.
6748 (ada_tag_name): New function.
6749
6750 (ada_scan_number): Update comment.
6751 (find_struct_field): New function.
6752 (ada_search_struct_field): Make static.
6753 (ada_value_struct_elt): New version that returns references when
6754 given pointers or references to structs.
6755 (ada_lookup_struct_elt_type): Add 'refok' parameter.
6756 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
6757 interface.
6758 (ada_value_ind): Use new ada_to_fixed_value interface.
6759 (ada_coerce_ref): Ditto.
6760 (field_offset): Remove.
6761
6762 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
6763 (ada_find_renaming_symbol): New function.
6764 (ada_prefer_type): Prefer named types over unnamed ones.
6765 (variant_field_index): New function.
6766 (contains_variant_part): Removed: subsumed by variant_field_index.
6767 (ada_template_to_fixed_record_type): New function, mostly from
6768 template_to_fixed_record_type.
6769 (template_to_fixed_record_type):
6770 Do not scan the type fields beyond the last one; prevents a
6771 potential SEGV.
6772 Handle case where variant field is listed BEFORE discriminant it
6773 depends on.
6774 Fix calculation of record length when bit length is
6775 not evenly divisible by char length.
6776 Move code to ada_template_to_fixed_record_type and call it.
6777
6778 (template_to_static_fixed_type): Revise comment.
6779 Modify to work on ordinary record types as well as templates,
6780 so as to handle fields that use ___XVE or ___XVU encodings.
6781 (to_record_with_fixed_variant_part): Fill out comment.
6782 Initialize C++ stuff in right type.
6783 Allow case where DVAL is null.
6784 Handle case where variant field is not last.
6785 Fix typo concerning record length.
6786 (to_fixed_record_type): Decomment disabled code.
6787 (to_fixed_record_type): Use variant_field_index instead of
6788 contains_variant_part.
6789 (to_fixed_variant_branch_type): Ditto.
6790 (to_fixed_array_type): Decomment disabled code.
6791 (ada_to_fixed_type): Convert tagged types to the specific type.
6792 Deactivate the size-check for array types in order to avoid
6793 some false size alarms.
6794 (to_static_fixed_type): Decomment disabled code.
6795 Modify to call template_to_static_fixed_type
6796 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
6797 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
6798 Remove valaddr argument, as it is never really used.
6799 (ada_to_fixed_value): Change interface to act on single struct value*
6800 operand.
6801 (adjust_pc_past_prologue): New function.
6802 (ada_attribute_name): Modify to take enum exp_opcode argument.
6803
6804 (ada_enum_name): Recognize new homonym-distinguishing convention.
6805 Adjust local variable's type to remove compiler warning.
6806 Fix a small problem in the part that unqualifies the enumeration name.
6807 (ada_value_binop): New function.
6808 (ada_value_equal): New function.
6809
6810 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
6811 Don't give error message when not doing normal evaluation
6812 and a tagged type doesn't seem to contain a structure member.
6813 Give error message for packed arrays.
6814 For indexing arrays, handle pointers to packed arrays correctly.
6815 Handle case of 'first and 'last attributes of bare integral type
6816 without encoded subtype info.
6817 Remove some unnecessary casts.
6818 Fix uninitialized value of type in computing 'first, 'last, or 'length
6819 of array object.
6820 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
6821 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
6822 calls.
6823 Attributes are now exp_opcode values.
6824 Correct treatment of 'modulus.
6825 Better error message for taking 'length of wrong kind of type;
6826 improve comment.
6827 Change EVAL_NORMAL to noside for consistency.
6828 Use ada_value_binop for DIV, MOD, REM.
6829 Make special case out of array of length 0, since an argument
6830 of 0 upsets some platforms' malloc.
6831 Use OP_STRING instead of OP_ARRAY.
6832 For slice, add check that we have an array type before extracting
6833 a slice out of it. Avoids a SEGV.
6834 When evaluating an array slice, if the array type is a reference to
6835 an aligner type, then replace the aligner type by the actual type.
6836 Decomment disabled code.
6837 Remove some dead code.
6838 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
6839 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
6840 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
6841 and UNOP_MBR to UNOP_IN_RANGE.
6842 If an array type has a parallel ___XVE type, then use it.
6843 Turn arrays into pointers for lvalue arrays.
6844 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
6845 bounds error and handle 0-length slices.
6846 Use lim_warning.
6847 When selecting fields, apply ada_to_fixed_value (because the fields
6848 might have ___XVU or ___XVE encodings even if not dynamic.)
6849 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
6850 (ada_is_system_address_type): New function.
6851
6852 (get_var_value): Use new interface to ada_lookup_symbol_list.
6853 (get_int_var_value): New interface.
6854 (to_fixed_range_type): Allow unknown bound, with warning.
6855 (ada_is_modular_type): Decomment disabled code.
6856 (ADA_OPERATORS): New definition.
6857 (ada_operator_length): New function.
6858 (ada_expr_op_name): New function.
6859 (ada_forward_operator_length): New function.
6860 (ada_dump_subexp_body): New function.
6861 (ada_print_subexp): New function.
6862 (ada_exp_descriptor): New constant.
6863 (ada_op_print_tab): Add 'size. Remove FIXMEs.
6864 (ada_language_defn): Add ada_exp_descriptor entry.
6865 Change ada_parse => parse.
6866 Add post-parser entry.
6867 Use ada-specific non-local symbol lookup.
6868 Don't use C-style arrays.
6869 String lower-bound is 1.
6870 Decomment disabled code.
6871 (parse): New function.
6872 New fields ada_translate_error_message, ada_lookup_symbol,
6873 ada_lookup_minimal_symbol.
6874
6875 * ada-lang.h: Update copyright dates.
6876 Replace the mangle/demangle terminology throughout by the
6877 more appropriate encode/decode one.
6878 Include breakpoint.h.
6879 Forward declare struct partial_symbol, struct block.
6880 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
6881 (EXTRACT_ADDRESS): Remove.
6882 (EXTRACT_INT): Remove.
6883 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
6884 (MAX_ENCLOSING_FRAME_LEVELS): Define.
6885 (MAX_RENAMING_CHAIN_LENGTH): Define.
6886 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
6887
6888 (enum task_states): Remove.
6889 ada_task_states: Remove.
6890 (fat_string): Remove.
6891 (struct entry_call): Remove.
6892 (struct task_fields): Remove.
6893 (struct task_entry): Remove.
6894
6895 (struct ada_symbol_info): Define.
6896 (enum ada_attribute): Remove.
6897 (enum ada_operator): Define.
6898
6899 (ada_get_field_index): Declare.
6900 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
6901 (ada_is_simple_array): Rename to ada_is_simple_array_type.
6902 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
6903 (ada_lookup_symbol_list): New interface.
6904 (ada_decode_symbol): Declare.
6905 (ada_decode): Declare.
6906 (ada_lookup_symbol): New interface.
6907 (ada_update_initial_language): Declare.
6908 (ada_lookup_simple_minsym): Declare.
6909 (user_select_syms): New interface.
6910 (ada_sals_for_line): Declare.
6911 (ada_is_tagged_type): New interface.
6912 (ada_tag_name): Declare.
6913 (ada_lookup_struct_elt_type): Remove declaration.
6914 (ada_search_struct_field): Remove declaration.
6915 (ada_attribute_name): New interface.
6916 (ada_is_system_address_type): Declare.
6917 (ada_to_fixed_value): Remove declaration.
6918 (ada_template_to_fixed_record_type_1): Declare.
6919 (get_int_var_value): New interface.
6920 (ada_find_any_symbol): Declare.
6921 (ada_find_renaming_symbol): Declare.
6922 (ada_mangle): Rename to ada_encode.
6923 (ada_simple_renamed_entity): Remove const.
6924 (ada_main_name): Declare.
6925 (get_current_task): Rename to ada_get_current_task.
6926 (get_entry_number): Remove declaration.
6927 (ada_report_exception_break): Remove declaration.
6928 (ada_print_exception_breakpoint_nontask): Declare.
6929 (ada_print_exception_breakpoint_task): Declare.
6930 (ada_find_printable_frame): Declare.
6931
6932 * ada-lex.l: Update copyright notices.
6933 Use xmalloc and xfree instead of malloc and free.
6934 Use new interface to name_lookup.
6935 Use new interface to
6936 ada_mangle=>ada_encode.
6937 Redo handling of '$...' variable to parallel current treatment
6938 in c-exp.y.
6939 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
6940 digit_to_int, strtoulst, processInt, processReal, processId,
6941 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
6942 yywrap): Protoize.
6943
6944 (processInt): Use cast to remove harmless warning.
6945 (processReal): Modify to get rid of compiler warning on scan formats.
6946
6947 (processId): Replace xmalloc with obstack_alloc for name and remove
6948 call to ada_name_string_cleanup.
6949 Remove obsolete disabled code.
6950 (name_lookup): Ditto.
6951 New interface.
6952 Use obsavestring on temp_parse_space instead of savestring
6953 on name, and remove call to ada_name_string_cleanup.
6954 Free string returned from ada_simple_renamed_entity.
6955 Use new interface to ada_lookup_symbol_list.
6956 Decomment disabled code.
6957 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
6958 not types.
6959 When a type name lookup succeeds as a result of
6960 lookup_primitive_typename, check for regular type entry that has not
6961 yet been read in.
6962 Limit length of chain of renamed symbols we are willing to follow.
6963 Do not break names beginning with "standard__" into segments.
6964 (block_lookup): Use new interface to ada_lookup_symbol_list.
6965
6966 * ada-typeprint.c: Update copyright notice.
6967 (demangled_type_name): Rename to decoded_type_name.
6968 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
6969 (print_range_bound): Correct handling of negative
6970 bounds that make the index type looked unsigned under STABS.
6971 (print_dynamic_range_bound): Use new interface to get_int_var_value.
6972 (print_range_type_named): Use the builtin int type if no type
6973 corresponding to the given type name could be found.
6974 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
6975 Add some bullet-proofing.
6976 (print_variant_clauses): Allow for variant branches with ___XVU
6977 encodings that are not dynamic fields.
6978 Use new interface to ada_is_tagged_type.
6979 (print_record_type): Allow for fields with ___XVE encodings that
6980 are not dynamic fields.
6981 Use new interface to ada_is_tagged_type.
6982 (ada_print_type): ada_is_array_descriptor =>
6983 ada_is_array_descriptor_type.
6984
6985 * ada-valprint.c: Update copyright notice.
6986 Include gdb_string.h
6987 Include infcall.h
6988 (ui_memcpy): New function.
6989 (ada_print_floating): New function.
6990 (ada_print_str): Order arguments correctly.
6991 Correct handling of empty arrays and arrays of 0-length items.
6992 ada_is_array_descriptor => ada_is_array_descriptor_type
6993 Print values of type System.Address in hexadecimal format.
6994 Use ada_print_floating to print floating-point numbers in Ada format.
6995 Print class tag values with type names.
6996 No longer print the address of reference values. Avoids
6997 a potential confusion.
6998 (ada_value_print): Stop printing the object type for reference
6999 values, but preserve that behavior for access types. Avoids
7000 a potential confusion.
7001 Simplify one conditional expression, as the first part is now
7002 necessarily true.
7003 ada_is_array_descriptor => ada_is_array_descriptor_type
7004 Add check for arrays for null records, and print them by hand.
7005
7006 2004-06-01 Jim Blandy <jimb@redhat.com>
7007
7008 * ppc-tdep.h: Delete unused 'regoff' member.
7009 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
7010
7011 2004-06-01 Michael Chastain <mec.gnu@mindspring.com>
7012
7013 Fix PR symtab/1661.
7014 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
7015 (hpread_read_struct_type): Likewise.
7016
7017 2004-06-01 Andrew Cagney <cagney@gnu.org>
7018
7019 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
7020 instead of xasprintf.
7021 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
7022 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
7023 (mi_cmd_data_list_register_names)
7024 (mi_cmd_data_list_changed_registers)
7025 (mi_cmd_data_list_register_values)
7026 (get_register, mi_cmd_data_write_register_values)
7027 (mi_cmd_data_write_register_values)
7028 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
7029 (mi_cmd_target_download, mi_cmd_target_select)
7030 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
7031 (mi_execute_cli_command, mi_execute_async_cli_command)
7032 (mi_execute_async_cli_command): Ditto.
7033 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
7034 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
7035
7036 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
7037 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
7038 error_last_message instead of mi_error_last_message.
7039 * mi/mi-main.c (mi_error_last_message): Delete function.
7040
7041 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
7042 "invalid number of columns" error. Delete redundant "out of
7043 memory" check.
7044
7045 2004-05-31 Mark Kettenis <kettenis@gnu.org>
7046
7047 * i386bsd-nat.c: Don't include <sys/procfs.h>.
7048 (gregset_t, fpregset_t): Remove typedefs.
7049 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
7050 (REG_OFFSET): Rename argument.
7051 (i386bsd_r_reg_offset): Rename from reg_offset.
7052 (REG_ADDR): Remove macro.
7053 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
7054 functions.
7055 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
7056 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
7057 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
7058 instead of supply_gregset.
7059 (store_inferior_registers): Use `struct reg' and `struct fpreg'
7060 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
7061 instead of fill_gregset.
7062 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
7063
7064 * i386bsd-nat.c: Don't include "gregset.h".
7065 (supply_gregset, fill_gregset): Make static.
7066 (supply_fpregset, fill_fpregset): Remove.
7067 * Makefile.in (i386bsd-nat.o): Update dependencies.
7068
7069 2004-05-30 Mark Kettenis <kettenis@gnu.org>
7070
7071 * fbsd-proc.c: Include "regcache.h", "regset.h" and
7072 "gdb_assert.h". Con't include "gregset.h".
7073 (fbsd_make_corefile_notes): Use regset-based core file support
7074 instead off fill_gregset and fill_fpregset.
7075 * Makefile.in (fbsd-proc.o): Update dependencies.
7076
7077 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
7078 instructions.
7079 (m88k_frame_prev_register): Simplify code a bit.
7080
7081 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
7082 (amd64_collect_fpregset): New function.
7083 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
7084
7085 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
7086
7087 * i386-tdep.c (i386_supply_gregset): Adjust comment.
7088 (i386_collect_gregset): New function.
7089 (i386_supply_fpregset): Adjust comment.
7090 (i386_collect_fpregset): New function.
7091 (i386_regset_from_core_section): Use i386_collect_gregset and
7092 i386_collect_fpregset.
7093
7094 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
7095 handle VALUEP being null.
7096
7097 * regset.h (collect_regset_ftype): Unconstify fourth argument.
7098
7099 2004-05-29 Mark Kettenis <kettenis@gnu.org>
7100
7101 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
7102
7103 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
7104 assembler in OpenBSD 3.5-current.
7105 (amd64obsd_sigcontext_addr): Likewise.
7106
7107 2004-05-28 Jim Blandy <jimb@redhat.com>
7108
7109 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
7110 register set, so our regcache isn't declared "legacy" and our E500
7111 pseudoregister read and write functions aren't ignored.
7112 (rs6000_register_byte, rs6000_register_raw_size,
7113 rs6000_register_virtual_type, rs6000_register_convertible,
7114 rs6000_register_convert_to_virtual,
7115 rs6000_register_convert_to_raw): Deleted.
7116 (rs6000_register_type, rs6000_convert_register_p,
7117 rs6000_register_to_value, rs6000_value_to_register): New
7118 functions.
7119 (rs6000_gdbarch_init): Don't register
7120 gdbarch_deprecated_register_size,
7121 gdbarch_deprecated_register_bytes,
7122 gdbarch_deprecated_register_byte,
7123 gdbarch_deprecated_register_raw_size,
7124 gdbarch_deprecated_register_virtual_type,
7125 gdbarch_deprecated_register_convertible,
7126 gdbarch_deprecated_register_convert_to_virtual, or
7127 gdbarch_deprecated_register_convert_to_raw methods. Instead,
7128 register gdbarch_register_type, gdbarch_convert_register_p,
7129 gdbarch_register_to_value, and gdbarch_value_to_register methods.
7130
7131 2004-05-26 Jim Blandy <jimb@redhat.com>
7132
7133 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
7134 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
7135 functions, updated to match the register numberings used in GCC.
7136 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
7137 rs6000_dwarf2_reg_to_regnum as register number conversions
7138 functions for STABS and Dwarf2.
7139
7140 2004-05-26 Randolph Chung <tausq@debian.org>
7141
7142 * infttrace.h (target_waitkind): Forward declare type instead of pulling
7143 in header file.
7144
7145 2004-05-25 Joel Brobecker <brobecker@gnat.com>
7146
7147 * NEWS: Document new "start" command.
7148
7149 2004-05-25 Randolph Chung <tausq@debian.org>
7150
7151 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
7152 hppa-linux.
7153
7154 2004-05-25 Randolph Chung <tausq@debian.org>
7155
7156 * hppa-hpux-tdep.c (offsetof): Define.
7157 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
7158 (hppa32_hpux_frame_base_before_sigtramp)
7159 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
7160 (hppa64_hpux_frame_saved_pc_in_sigtramp)
7161 (hppa64_hpux_frame_base_before_sigtramp)
7162 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
7163 functions.
7164 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
7165 (hppa_hpux_sigtramp_frame_unwind_cache)
7166 (hppa_hpux_sigtramp_frame_this_id)
7167 (hppa_hpux_sigtramp_frame_prev_register)
7168 (hppa_hpux_sigtramp_frame_unwind)
7169 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
7170 (hppa_hpux_init_abi): Register sigtramp unwinder.
7171 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
7172
7173 2004-05-25 Randolph Chung <tausq@debian.org>
7174
7175 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
7176 and multiple stack unwinds.
7177 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
7178
7179 2004-05-25 Andrew Cagney <cagney@gnu.org>
7180
7181 * symfile.h (symbol_file_add_from_memory): Delete declaration.
7182 * symfile-mem.h: Delete file.
7183 * symfile-mem.c: Do not include "symfile-mem.h".
7184 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
7185 "struct bfd_section". When an error do not bother returning NULL.
7186 (add_symbol_file_from_memory_command): Use "struct bfd" and
7187 "struct bfd_section".
7188 * Makefile.in (symfile_mem_h): Delete.
7189 (symfile-mem.o): Update dependencies.
7190
7191 2004-05-25 Nick Roberts <nickrob@gnu.org>
7192
7193 * gdb-mi.el: New file.
7194
7195 2004-05-25 Andrew Cagney <cagney@gnu.org>
7196
7197 * inftarg.c: Include "observer.h".
7198 (child_attach, child_create_inferior): Notify inferior_created.
7199 * corelow.c: Include "observer.h".
7200 (core_open): Notify inferior_created.
7201 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
7202
7203 2004-05-25 Andrew Cagney <cagney@gnu.org>
7204
7205 * target.h (struct target_ops): Add from_tty to
7206 to_create_inferior.
7207 (target_create_inferior, find_default_create_inferior): Update.
7208 * infcmd.c (run_command): Update.
7209 * wince.c (child_create_inferior): Update.
7210 * win32-nat.c (child_create_inferior): Update.
7211 * uw-thread.c (uw_thread_create_inferior): Update.
7212 * thread-db.c (thread_db_create_inferior): Update.
7213 * target.c (debug_to_create_inferior)
7214 (find_default_create_inferior): Update.
7215 (maybe_kill_then_create_inferior): Update.
7216 * sol-thread.c (sol_thread_create_inferior): Update.
7217 * remote.c (extended_remote_async_create_inferior)
7218 (extended_remote_create_inferior): Update.
7219 * remote-vx.c (vx_create_inferior): Update.
7220 * remote-st.c (st2000_create_inferior): Update.
7221 * remote-sim.c (gdbsim_create_inferior): Update.
7222 * remote-sds.c (sds_create_inferior): Update.
7223 * remote-rdp.c (remote_rdp_create_inferior): Update.
7224 * remote-rdi.c (arm_rdi_create_inferior): Update.
7225 * remote-m32r-sdi.c (m32r_create_inferior): Update.
7226 * remote-e7000.c (e7000_create_inferior): Update.
7227 * procfs.c (procfs_create_inferior): Update.
7228 * ocd.c (ocd_create_inferior): Update.
7229 * ocd.h (ocd_create_inferior): Update.
7230 * nto-procfs.c (procfs_create_inferior): Update.
7231 * monitor.c (monitor_create_inferior): Update.
7232 * lin-lwp.c (lin_lwp_create_inferior): Update.
7233 * inftarg.c (child_create_inferior): Update.
7234 * hpux-thread.c (hpux_thread_create_inferior): Update.
7235 * gnu-nat.c (gnu_create_inferior): Update.
7236
7237 2004-05-25 Andrew Cagney <cagney@gnu.com>
7238
7239 * MAINTAINERS: Update e-mail address.
7240
7241 2004-05-24 Randolph Chung <tausq@debian.org>
7242
7243 * thread.c (info_threads_command, thread_apply_all_command)
7244 (thread_apply_command, thread_command, do_captured_thread_select):
7245 Remove HPUXHPPA-specific code.
7246
7247 2004-05-24 Randolph Chung <tausq@debian.org>
7248
7249 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
7250 unused symbols.
7251 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
7252 references.
7253
7254 2004-05-24 Joel Brobecker <brobecker@gnat.com>
7255
7256 * infcmd.c (kill_if_already_running): New function, extracted
7257 from run_command().
7258 (run_command): Replace extracted code by call to
7259 kill_if_already_running().
7260 (start_command): New function.
7261 (_initialize_infcmd): Add "start" command.
7262
7263 2004-05-24 Mark Kettenis <kettenis@gnu.org>
7264
7265 Add OpenBSD/m88k support.
7266 * NEWS (New native configurations): Mention OpenBSD/m88k.
7267 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
7268 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
7269 * Makefile.in (m88k_tdep_h): New variable.
7270 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
7271 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
7272 * configure.host: Add m88*-*-openbsd*.
7273 * configure.tgt: Add m88*-*-openbsd*.
7274
7275 2004-05-24 Jim Blandy <jimb@redhat.com>
7276
7277 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
7278 to approve changes.
7279
7280 2004-05-24 Kevin Buettner <kevinb@redhat.com>
7281
7282 * symtab.c (fixup_section): Search section table when lookup by
7283 name fails.
7284
7285 2004-05-24 Randolph Chung <tausq@debian.org>
7286
7287 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
7288 be "small_struct".
7289
7290 2004-05-24 Mark Kettenis <kettenis@gnu.org>
7291
7292 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
7293 register number in regcache_raw_collect call.
7294 (m68kbsd_collect_fpregset): Likewise.
7295 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
7296
7297 * regset.h (struct regset): Add back `regset' member.
7298
7299 2004-05-23 Mark Kettenis <kettenis@gnu.org>
7300
7301 * configure.in: Check for td_pcb in `struct thread'.
7302 * configure, config.in: Regenerated.
7303
7304 * dpx2-nat.c: Remove file.
7305 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
7306 (dpx2-nat.o): Remove dependencies.
7307
7308 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
7309 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
7310 (amd64obsd_supply_pcb): New function.
7311 (_initialize_amd64obsd_nat): Enable libkvm interface.
7312 * Makefile.in (amd64obsd-nat.o): Update dependencies.
7313 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
7314 (LOADLIBES): New variable.
7315
7316 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
7317 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
7318 (sparc32nbsd_supply_pcb): New function.
7319 (_initialize_sparcnbsd_nat): Enable libkvm interface.
7320 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
7321 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
7322 (LOADLIBES): New variable.
7323
7324 2004-05-22 Mark Kettenis <kettenis@gnu.org>
7325
7326 * bsd-kvm.c, bsd-kvm.h: New files.
7327 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
7328 "bsd-kvm.h".
7329 (i386fbsd_supply_pcb): New function.
7330 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
7331 (i386fbsd-nat.o): Update dependencies.
7332 (bsd_kvm_h): New variable.
7333 (bsd-kvm.o): New dependency.
7334 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
7335 (LOADLIBES): New variable.
7336
7337 * regset.c: Tweak comment.
7338 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
7339 macro.
7340 * regset.h: Update copyright year.
7341 (struct regset): Remove `descr' member, add `gdbarch' member.
7342 (regset_alloc): Adjust prototype and comment.
7343 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
7344 (i386_supply_fpregset): Likewise.
7345 (i386_regset_from_core_section): Update call to regset_alloc.
7346 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
7347 REGSET->arch.
7348 (i386obsd_aout_regset_from_core_section): Update call to
7349 regset_alloc.
7350 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
7351 REGSET->arch.
7352 (i386nbsd_aout_regset_from_core_section): Update call to
7353 regset_alloc.
7354 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
7355 REGSET->arch.
7356 (amd64_regset_from_core_section): Update call to regset_alloc.
7357 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
7358 REGSET->arch.
7359 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
7360 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
7361 &sparc32nbsd_gregset in sparc32_supply_gregset call.
7362 (sparc32nbsd_init_abi): Update call to regset_alloc.
7363 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
7364 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
7365 (sparc64obsd_init_abi): Update call to regset_alloc.
7366 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
7367 &sparc64nbsd_gregset in sparc64_supply_gregset call.
7368 (sparc64nbsd_init_abi): Update call to regset_alloc.
7369 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
7370 &sparc64fbsd_gregset in sparc64_supply_gregset call.
7371 (sparc64fbsd_init_abi): Update call to regset_alloc.
7372
7373 2004-05-22 Jim Blandy <jimb@redhat.com>
7374
7375 * ppc-tdep.h (spe_register_p): New declaration.
7376 (struct gdbarch_tdep): New members: ppc_acc_regnum and
7377 ppc_spefscr_regnum.
7378 * rs6000-tdep.c (spe_register_p): New function.
7379 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
7380 spefscr.
7381 (rs6000_gdbarch_init): Initialize the new members of the tdep
7382 structure.
7383
7384 2004-05-21 Jim Blandy <jimb@redhat.com>
7385
7386 * ppc-linux-nat.c (fetch_register): Move code back to be next
7387 to the comment that describes it. (Moved code, instead of
7388 comment, for symmetry with store_register.)
7389
7390 Allocate regset structures in the gdbarch's obstack, not using
7391 xmalloc.
7392 * regset.c (regset_alloc): Renamed from regset_xmalloc.
7393 Add 'arch' argument. Allocate the regset on arch's obstack, not
7394 using xmalloc.
7395 * regset.h (regset_alloc): Update declaration.
7396 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
7397 gdbarch argument.
7398 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7399 * i386-tdep.c (i386_regset_from_core_section): Same.
7400 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7401 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7402 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7403 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7404 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7405 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7406
7407 2004-05-21 Joel Brobecker <brobecker@gnat.com>
7408
7409 * config/djgpp/fnchange.lst: Undo previous change, was useless.
7410
7411 2004-05-21 Jim Blandy <jimb@redhat.com>
7412
7413 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
7414 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
7415
7416 2004-05-20 Jim Blandy <jimb@redhat.com>
7417
7418 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
7419
7420 2004-05-20 Mark Kettenis <kettenis@gnu.org>
7421
7422 * regset.h: Make prototype const-correct.
7423 * regset.c (regset_xmalloc): Make const-correct.
7424
7425 2004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
7426
7427 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
7428 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
7429 (symbol_search_name): Declare.
7430
7431 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
7432 (iter_name_next_hashed): Ditto.
7433 (iter_name_next_linear): Ditto.
7434 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
7435
7436 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
7437 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
7438 (symbol_search_name): New function.
7439
7440 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
7441
7442 * minsyms.c (build_minimal_symbol_hash_tables): Change
7443 test for adding to demangled hash table to check for difference
7444 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
7445
7446 2004-05-19 Jim Blandy <jimb@redhat.com>
7447
7448 Use a constructor function to create regset structures.
7449 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
7450 (struct regset): Use supply_regset_ftype. Add new
7451 'collect_regset' member.
7452 (regset_xmalloc): New declaration.
7453 * regset.c: New file.
7454 * am64-tdep.c (amd64_regset_from_core_section): Use
7455 regset_xmalloc to construct regset structures.
7456 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7457 * i386-tdep.c (i386_regset_from_core_section): Same.
7458 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7459 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7460 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7461 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7462 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7463 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7464 * Makefile.in (COMMON_OBS): Add regset.o.
7465 (regset.o): New rule.
7466
7467 2004-05-19 Joel Brobecker <brobecker@gnat.com>
7468
7469 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
7470 and pthread_cond_wait.c.
7471
7472 2004-05-18 Jim Blandy <jimb@redhat.com>
7473
7474 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
7475 before the mach-specific switch, and then let the individual cases
7476 override the defaults, rather than leaving them uninitialized
7477 until the switch and then setting them in each case.
7478
7479 2004-05-18 Randolph Chung <tausq@debian.org>
7480
7481 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
7482 millicode functions.
7483
7484 2004-05-18 Randolph Chung <tausq@debian.org>
7485
7486 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
7487 references to dld_flags_buffer consistent.
7488
7489 2004-05-18 Randolph Chung <tausq@debian.org>
7490
7491 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
7492 it for unwinding the stack.
7493
7494 2004-05-18 Randolph Chung <tausq@debian.org>
7495
7496 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
7497 Undefine these so we can overide them using gdbarch.
7498
7499 2004-05-18 Randolph Chung <tausq@debian.org>
7500
7501 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
7502 handling for 64-bit HPUX (elf).
7503
7504 2004-05-18 Daniel Jacobowitz <dan@debian.org>
7505
7506 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
7507 constants.
7508 * amd64-tdep.c (amd64_skip_prologue): Likewise.
7509 * ia64-tdep.c (examine_prologue): Likewise.
7510 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
7511 * v850-tdep.c (v850_fix_call_dummy): Likewise.
7512
7513 2004-05-18 Mark Kettenis <kettenis@gnu.org>
7514
7515 * vax-tdep.c (vax_return_value): Implement
7516 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7517
7518 2004-05-17 Mark Kettenis <kettenis@gnu.org>
7519
7520 * vax-tdep.c (vax_return_value): Fix typo.
7521
7522 2004-05-17 Andrew Cagney <cagney@redhat.com>
7523
7524 * MAINTAINERS: Mark Salter was also responsible for
7525 testsuite/config/
7526
7527 * NEWS: Mention signal fixes.
7528
7529 2004-05-17 Randolph Chung <tausq@debian.org>
7530
7531 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
7532 check to see if we are unwinding an export stub. Export stubs clobber
7533 the %rp in the call path and stores the original rp in a stack slot.
7534
7535 2004-05-17 Jim Blandy <jimb@redhat.com>
7536
7537 * MAINTAINERS: Update address for J.T. Conklin.
7538
7539 2004-05-17 Randolph Chung <tausq@debian.org>
7540
7541 * hppa-tdep.c: Remove superfluous #include's.
7542 * Makefile.in (hppa-tdep.o): Update dependencies.
7543
7544 2004-05-17 Randolph Chung <tausq@debian.org>
7545
7546 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
7547 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
7548 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
7549 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
7550 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
7551 Remove static function declarations.
7552
7553 2004-05-17 Mark Kettenis <kettenis@gnu.org>
7554
7555 * alphabsd-nat.c: Update copyright year.
7556 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
7557
7558 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
7559 and M68K_A2_REGNUM.
7560
7561 * m68k-tdep.c (m68k_svr4_return_value): Implement
7562 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7563
7564 2004-05-16 Mark Kettenis <kettenis@gnu.org>
7565
7566 * sol-thread.c Update copyright year. Fix various coding
7567 standards violations. Tweak a few comments.
7568 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
7569 Delete prototypes.
7570
7571 2004-05-15 Randolph Chung <tausq@debian.org>
7572
7573 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
7574 as pointer instead of array reference since HPUX compiler does
7575 not accept unsized array arguments.
7576 * somsolib.c (dld_flags_buffer): Use constant array size.
7577
7578 2004-05-15 Mark Kettenis <kettenis@gnu.org>
7579
7580 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
7581 offset with decimal offset.
7582 (amd64obsd_sigcontext_addr): Return correct address for entire
7583 signal trampoline.
7584
7585 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
7586 instead of get_frame_base.
7587
7588 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
7589 (fill_gregset): Use regcache_raw_collect.
7590
7591 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
7592 ppcobsd-tdep.c.
7593
7594 * config/sparc/tm-nbsd64.h: Remove file.
7595 * config/tm-sunos.h: Remove file.
7596
7597 2004-05-15 Joel Brobecker <brobecker@gnat.com>
7598
7599 * rs6000-tdep.c (store_param_on_stack_p): New function,
7600 an improved version of some code extracted from skip_prologue().
7601 (skip_prologue): Use store_param_on_stack_p() to detect
7602 instructions saving a parameter on the stack. Detect when r0
7603 is used to save a parameter.
7604 Do not mark "li rx, SIMM" instructions as part of the prologue,
7605 unless the following instruction is also part of the prologue.
7606
7607 2004-05-14 Andrew Cagney <cagney@redhat.com>
7608
7609 * infrun.c (handle_inferior_event): Simplify
7610 STEP_OVER_UNDEBUGGABLE.
7611
7612 * infrun.c (handle_step_into_function): Delete function.
7613 (handle_inferior_event): Inline calls to
7614 handle_step_into_function.
7615
7616 2004-05-14 Jerome Guitton <guitton@gnat.com>
7617
7618 * rs6000-nat.c: Fix a comment.
7619
7620 2004-05-12 David Anderson <davea@sgi.com>
7621
7622 Committed by Jim Blandy <jimb@redhat.com>:
7623 * regcache.c (struct regcache_descr): fix comment spelling.
7624
7625 2004-05-13 J. Brobecker <brobecker@gnat.com>
7626
7627 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
7628 Fixes a link link failure.
7629
7630 2004-05-13 J. Brobecker <brobecker@gnat.com>
7631
7632 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
7633 error that was causing the build to fail.
7634
7635 2004-05-13 J. Brobecker <brobecker@gnat.com>
7636
7637 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
7638 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
7639
7640 2004-05-13 Andrew Cagney <cagney@redhat.com>
7641
7642 * infrun.c (handle_inferior_event): Check for
7643 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
7644 calls. Update comments.
7645
7646 2004-05-13 Jim Blandy <jimb@redhat.com>
7647
7648 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
7649 (fetch_regs_user_thread, fetch_regs_kernel_thread)
7650 (store_regs_user_thread, store_regs_kernel_thread): Use
7651 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
7652 * ppc-linux-nat.c (fill_gregset): Same.
7653 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
7654 (ppc_linux_sigtramp_cache): Same.
7655 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
7656 (ppcnbsd_sigtramp_cache_init): Same.
7657 * rs6000-nat.c (fetch_core_registers): Same.
7658 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
7659 (rs6000_frame_cache): Same.
7660
7661 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
7662 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
7663 of assuming that the gprs are numbered starting with zero.
7664 * ppc-linux-nat.c (fill_gregset): Same.
7665 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
7666 * ppcnbsd-nat.c (getregs_supplies): Same.
7667 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
7668 * rs6000-nat.c (fetch_core_registers): Same.
7669 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
7670
7671 2004-05-07 Michael Snyder <msnyder@redhat.com>
7672
7673 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
7674 LOC_COMPUTED_ARG, and LOC_INDIRECT.
7675
7676 2004-05-13 Andrew Cagney <cagney@redhat.com>
7677
7678 * infrun.c (handle_inferior_event): Use frame_unwind_id.
7679
7680 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
7681
7682 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
7683 base_address for shared libraries.
7684
7685 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
7686
7687 * MAINTAINERS (write after approval): Add myself.
7688
7689 2004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
7690
7691 * breakpoint.c (bpstat_stop_status): Add new argument
7692 STOPPED_BY_WATCHPOINT. Use it instead of testing
7693 target_stopped_data_address agaist 0 to check whether
7694 or not we stopped due to a hardware watchpoint.
7695 * breakpoint.h (bpstat_stop_status): Adapt prototype.
7696 * infrun.c (handle_inferior_event): Call bpstat_stop_status
7697 with new argument.
7698
7699 2004-05-12 Jim Blandy <jimb@redhat.com>
7700
7701 * configure.in: When checking whether we should use the -bbigtoc
7702 option, don't forget to restore the original value of LDFLAGS.
7703 * configure: Regenerated.
7704
7705 2004-05-12 Andrew Cagney <cagney@redhat.com>
7706
7707 * thread.c (load_infrun_state): Delete step_sp.
7708 * infrun.c (context_switch): Ditto.
7709 * inferior.h (step_sp): Ditto.
7710 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
7711 * gdbthread.h (struct thread_info, save_infrun_state)
7712 (restore_infrun_state): Ditto.
7713
7714 2004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
7715
7716 * MAINTAINERS (write after approval): Add myself.
7717
7718 2004-05-12 Andrew Cagney <cagney@redhat.com>
7719
7720 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
7721 eliminate reference to step_sp.
7722 (struct execution_control_state, init_execution_control_state)
7723 (handle_inferior_event, keep_going): Delete update_step_sp and
7724 step_sp.
7725 * infcmd.c (step_sp): Note that variable is unused.
7726
7727 2004-05-11 Andrew Cagney <cagney@redhat.com>
7728
7729 * infrun.c (step_over_function): Delete function.
7730 (handle_step_into_function): Use insert_step_resume_breakpoint.
7731 (insert_step_resume_breakpoint): Fix assertion.
7732
7733 2004-05-11 Nick Roberts <nickrob@gnu.org>
7734
7735 * utils.c (defaulted_query): Just use the normal query input type
7736 when printing the annotations.
7737
7738 2004-05-11 Andrew Cagney <cagney@redhat.com>
7739
7740 * infrun.c (handle_inferior_event): Simplify code handling
7741 step-into or return-from a signal trampoline.
7742
7743 2004-05-11 Andrew Cagney <cagney@redhat.com>
7744
7745 * ppcnbsd-tdep.c: Include "gdb_assert.h".
7746 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
7747
7748 2004-05-10 Jim Blandy <jimb@redhat.com>
7749
7750 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
7751 with a call to internal_error.
7752
7753 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
7754 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
7755 processor variant lacks those registers.
7756 (ppc_floating_point_unit_p): Change description to make it clear
7757 that this returns info about the ISA, not the ABI.
7758 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
7759 return true or false by checking tdep->ppc_fp0_regnum and
7760 tdep->ppc_fpscr_regnum. The original code replicated the BFD
7761 arch/mach switching done in rs6000_gdbarch_init; it's better to
7762 keep that logic there, and just check the results here.
7763 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
7764 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
7765 floating-point registers.
7766 (ppc_supply_fpregset, ppc_collect_fpregset)
7767 (rs6000_push_dummy_call, rs6000_extract_return_value)
7768 (rs6000_store_return_value): Assert that we have floating-point
7769 registers.
7770 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
7771 (rs6000_frame_cache): Don't note the locations at which
7772 floating-point registers were saved if we have no fprs.
7773 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
7774 registers.
7775 (fetch_regs_user_thread, fetch_regs_kernel_thread)
7776 (store_regs_user_thread, store_regs_kernel_thread): Only call
7777 supply_fprs / fill_fprs if we actually have floating-point
7778 registers.
7779 (special_register_p): Check ppc_fpscr_regnum before matching
7780 against it.
7781 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
7782 supply / collect fpscr if we don't have it.
7783 * ppc-bdm.c: #include "gdb_assert.h".
7784 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
7785 have floating-point registers, since I can't test this code on
7786 FP-free systems to adapt it.
7787 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
7788 fpscr and floating point register numbers if they don't exist.
7789 (fetch_register): Assert that we have floating-point registers
7790 before we reach the code that handles them.
7791 (store_register): Same. And use tdep instead of calling
7792 gdbarch_tdep again.
7793 (fill_fpregset): Don't try to collect FP registers and fpscr if we
7794 don't have them.
7795 (ppc_linux_sigtramp_cache): Don't record the saved locations of
7796 fprs and fpscr if we don't have them.
7797 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
7798 don't have them.
7799 * ppcnbsd-nat.c: #include "gdb_assert.h".
7800 (getfpregs_supplies): Assert that we have floating-point registers.
7801 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
7802 * ppcobsd-tdep.c: #include "gdb_assert.h".
7803 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
7804 have floating-point registers.
7805 * rs6000-nat.c (regmap): Don't match against the fpscr and
7806 floating point register numbers if they don't exist.
7807 (fetch_inferior_registers, store_inferior_registers,
7808 fetch_core_registers): Only fetch / store / supply the
7809 floating-point registers and the fpscr if we have them.
7810 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
7811 (ppcobsd-tdep.o): Update dependencies.
7812
7813 2004-05-10 Andrew Cagney <cagney@redhat.com>
7814
7815 * infrun.c (through_sigtramp_breakpoint): Delete variable.
7816 (context_switch): Do not switch through_sigtramp_breakpoint.
7817 * gdbthread.h (save_infrun_state, load_infrun_state)
7818 (struct thread_info): Delete through_sigtramp_breakpoint parameter
7819 and structure member.
7820 * thread.c (load_infrun_state, save_infrun_state): Update.
7821
7822 2004-05-10 Mark Kettenis <kettenis@gnu.org>
7823
7824 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
7825
7826 2004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
7827
7828 * acinclude.m4: Quote macro names being defined by AC_DEFUN
7829 throughout.
7830 * aclocal.m4: Regenerate.
7831
7832 2004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
7833
7834 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
7835
7836 2004-05-10 Andrew Cagney <cagney@redhat.com>
7837
7838 * infrun.c (check_sigtramp2): Delete function.
7839 (handle_inferior_event): When single stepping, and taking a
7840 signal, set a breakpoint at the signal return address. Delete
7841 redundant calls to check_sigtramp2.
7842 (insert_step_resume_breakpoint): New function.
7843 (through_sigtramp_breakpoint, handle_inferior_event)
7844 (follow_exec, wait_for_inferior, fetch_inferior_event)
7845 (currently_stepping, keep_going): Delete most uses of
7846 through_sigtramp_breakpoint, not that it should be deleted.
7847 (delete_breakpoint_current_contents): Delete function.
7848
7849 2004-05-10 Randolph Chung <tausq@debian.org>
7850
7851 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
7852 target.
7853 * config/pa/tm-linux.h: New file.
7854
7855 2004-05-10 Daniel Jacobowitz <drow@mvista.com>
7856
7857 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
7858 of prefixes. Don't print the prefix twice in the CLI.
7859
7860 2004-05-10 Jim Blandy <jimb@redhat.com>
7861
7862 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
7863 collect all the gprs.
7864
7865 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
7866 loop collecting gprs.
7867
7868 2004-05-09 Andrew Cagney <cagney@redhat.com>
7869
7870 * remote-vx.c (net_step): Delete step-range code.
7871 * remote.c (remote_resume, init_all_packet_configs)
7872 (set_remote_protocol_E_packet_cmd)
7873 (show_remote_protocol_E_packet_cmd)
7874 (remote_protocol_E, show_remote_cmd, _initialize_remote)
7875 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
7876 (show_remote_protocol_e_packet_cmd): Ditto.
7877
7878 2004-05-09 Mark Kettenis <kettenis@gnu.org>
7879
7880 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
7881
7882 * hppa-tdep.h: Update copyright year.
7883 (struct trad_frame_saved_reg): Add opaque declaration.
7884
7885 * amd64-tdep.c (amd64_return_value): Implement
7886 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7887
7888 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
7889 (m68k_value_to_register): New functions.
7890 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
7891 value_to_register.
7892
7893 * defs.h (enum return_value_convention): Add
7894 RETURN_VALUE_ABI_RETURNS_ADDRESS and
7895 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
7896 * infcmd.c (legacy_return_value): New function.
7897 (print_return_value): Rwerite to implement
7898 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7899 * values.c (using_struct_return): Check for inequality to
7900 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
7901 RETURN_VALUE_STRUCT_CONVENTION.
7902 * i386-tdep.c (i386_return_value): Implement
7903 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7904
7905 * vax-tdep.c: Tweak comments. Reorder include files. Don't
7906 include "symtab.h", "opcode/vax.h" and "inferior.h".
7907 (vax_skip_prologue): Replace calls to read_memory_integer by calls
7908 to read_memory_unsigned_integer.
7909 (vax_gdbarch_init): Reorder.
7910 (_initialize_vax_tdep): Spell out prototype.
7911 * Makefile.in (vax-tdep.o): Update dependencies.
7912
7913 2004-05-08 Andrew Cagney <cagney@redhat.com>
7914
7915 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
7916 * target.c (target_detach, target_disconnect): Ditto.
7917
7918 * infcall.c (call_function_by_hand): When no
7919 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
7920 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
7921 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
7922 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7923 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7924
7925 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
7926 * gdbarch.h, gdbarch.c: Re-generate.
7927 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7928 deprecated_fix_call_dummy.
7929 * v850-tdep.c (v850_gdbarch_init): Ditto.
7930 * infcall.c (call_function_by_hand): Do not call
7931 DEPRECATED_FIX_CALL_DUMMY.
7932
7933 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
7934 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
7935 * gdbarch.h, gdbarch.c: Re-generate.
7936 * arm-linux-tdep.c (arm_linux_call_dummy_words)
7937 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
7938 deprecated_sizeof_call_dummy_words.
7939 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
7940 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7941 * v850-tdep.c (v850_gdbarch_init): Ditto.
7942 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
7943 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
7944 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7945 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7946 * arch-utils.h (legacy_call_dummy_words)
7947 (legacy_sizeof_call_dummy_words): Delete declarations.
7948 * arch-utils.c (legacy_call_dummy_words)
7949 (legacy_sizeof_call_dummy_words): Delete variables.
7950
7951 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
7952 * gdbarch.h, gdbarch.c: Re-generate.
7953 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
7954 * infcall.c (call_function_by_hand): Eliminate call to
7955 DEPRECATED_PUSH_DUMMY_FRAME.
7956 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
7957 push_dummy_frame.
7958 (ns32k_push_dummy_frame): Delete function.
7959
7960 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7961 deprecated_call_dummy_breakpoint_offset or
7962 deprecated_call_dummy_start_offset.
7963 * dummy-frame.c, arm-tdep.c: Update comments.
7964 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
7965 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
7966 * gdbarch.h, gdbarch.c: Re-generate.
7967
7968 * infcall.c (legacy_push_dummy_code): Delete function.
7969 (push_dummy_code): Delete call.
7970
7971 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
7972 * gdbarch.h, gdbarch.c: Re-generate.
7973 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
7974 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
7975 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
7976 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
7977
7978 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
7979 (struct frame_info): Delete opaque declaration.
7980 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
7981 * frame.c (get_frame_type): Delete call.
7982
7983 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
7984 pc_in_call_dummy.
7985 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
7986 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
7987
7988 2004-05-08 Mark Kettenis <kettenis@gnu.org>
7989
7990 * alphanbsd-tdep.c: Include "gdb_string.h".
7991 * armnbsd-tdep.c: Update copyright year.
7992 Include "gdb_string.h".
7993 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
7994 dependencies.
7995
7996 * delta68-nat.c: Remove file.
7997 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
7998 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
7999 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
8000 (delta68-nat.o): Remove dependency.
8001
8002 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
8003 function.
8004 (m68k_gdbarch_init): Don't set
8005 deprecated_frameless_function_invocation.
8006
8007 2004-05-07 Randolph Chung <tausq@debian.org>
8008
8009 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
8010 read_memory_nobpt for code reading when doing frame unwinding.
8011 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
8012
8013 2004-05-07 Randolph Chung <tausq@debian.org>
8014
8015 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
8016 instead of sp, handle sigaltstack case.
8017 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
8018 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
8019 signal handler and not that of the caller.
8020 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
8021 hppa_linux_sigtramp_find_sigcontext.
8022
8023 2004-05-07 Randolph Chung <tausq@debian.org>
8024
8025 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
8026 hppa-linux-nat.c.
8027 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
8028 * hppa-linux-nat.c (fetch_register, store_register): Define.
8029 (fetch_inferior_registers, store_inferior_registers): Define.
8030 (supply_gregset): Add comment and clean up some unneeded code.
8031 (fill_gregset): Add comment and fix so that it saves registers in
8032 the right place in the gregset.
8033 (fill_fpregset): Fix buffer overrun problem.
8034 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
8035
8036 2004-05-07 Randolph Chung <tausq@debian.org>
8037
8038 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
8039 do common handling of the pcoqt register.
8040 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
8041 to use helper function.
8042 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
8043 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
8044 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
8045 generic fallback unwinder when all else fails.
8046 (hppa_gdbarch_init): Add fallback sniffer.
8047 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
8048 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
8049 to use helper function.
8050
8051 2004-05-08 Joel Brobecker <brobecker@gnat.com>
8052
8053 * config/djgpp/fnchange.lst: Add translation rules for
8054 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
8055
8056 2004-05-08 Mark Kettenis <kettenis@gnu.org>
8057
8058 * frame.c (get_prev_frame_1): Work around GCC bug.
8059 * frame.h: Add comment about GCC bug.
8060
8061 2004-05-07 Andrew Cagney <cagney@redhat.com>
8062
8063 * observer.c: Include "commands.h" and "gdbcmd.h".
8064 (observer_debug, _initialize_observer): Add the
8065 command "set/show debug observer".
8066 * observer.sh: When observer debugging, log notify calls.
8067 * Makefile.in (observer.o): Update dependencies.
8068
8069 2004-05-07 Jason Molenda (jmolenda@apple.com)
8070
8071 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
8072
8073 2004-05-07 Jim Blandy <jimb@redhat.com>
8074
8075 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
8076 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
8077 to recognize gpr regnums, instead of assuming that
8078 tdep->ppc_fp0_regnum marks the end of the general-purpose
8079 registers.
8080
8081 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
8082 the given architecture has floating-point registers.
8083
8084 2004-05-07 Andrew Cagney <cagney@redhat.com>
8085
8086 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
8087 macro defined to 1.
8088 * gdbarch.h, gdbarch.c: Re-generate.
8089 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
8090 deprecated_use_generic_dummy_frames.
8091
8092 2004-05-07 Brian Ford <ford@vss.fsi.com>
8093
8094 * NEWS: Mention Cygwin DWARF 2 support.
8095
8096 2004-05-07 Andrew Cagney <cagney@redhat.com>
8097
8098 * objfiles.h (struct entry_info): Delete unused fields
8099 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
8100 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
8101 * mipsread.c (mipscoff_symfile_read): Update.
8102 * mdebugread.c (parse_partial_symbols): Update.
8103 * dwarfread.c (read_file_scope): Update.
8104 * dwarf2read.c (read_file_scope): Update.
8105 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
8106 * coffread.c (complete_symtab): Update.
8107
8108 2004-05-07 Mark Kettenis <kettenis@gnu.org>
8109
8110 * infcall.c (_initialize_infcall): Fix typo.
8111
8112 2004-05-07 Andrew Cagney <cagney@redhat.com>
8113
8114 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
8115 * command.h (add_setshow_zinteger_cmd): Declare.
8116
8117 2004-05-06 Randolph Chung <tausq@debian.org>
8118
8119 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
8120 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
8121 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
8122 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
8123 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
8124 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
8125 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
8126 definitions ...
8127 * hppa-tdep.h: ... to here, with HPPA_ prefix.
8128 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
8129 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
8130 (hppa64_hpux_frame_find_saved_regs_in_sig)
8131 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
8132 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
8133 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
8134 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
8135 (hppa_linux_sigtramp_frame_prev_register): Likewise.
8136 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
8137 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
8138 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
8139 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
8140 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
8141 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
8142 (hppa32_register_type, hppa_cannot_store_register)
8143 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
8144 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
8145 * hpread.c (hpread_process_one_debug_symbol): Likewise.
8146 * pa64solib.c (pa64_solib_have_load_event)
8147 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
8148 (pa64_solib_unloaded_library_pathname): Likewise.
8149 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
8150 (som_solib_library_pathname): Likewise.
8151
8152 2004-05-05 Jim Ingham <jingham@apple.com>
8153
8154 * breakpoint.c (create_breakpoints): Copy the ignore count and
8155 thread id over from the pended breakpoint to the actual
8156 breakpoint.
8157
8158 2004-05-05 Andrew Cagney <cagney@redhat.com>
8159
8160 * gdbarch.sh (PARM_BOUNDARY): Delete.
8161 gdbarch.h, gdbarch.c: Re-generate.
8162 * valops.c (PARM_BOUNDARY): Delete macro.
8163 (value_push): Delete PARM_BOUNDARY code.
8164 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
8165
8166 2004-05-04 Jim Blandy <jimb@redhat.com>
8167
8168 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
8169 Don't assume that the gprs, fprs, and UISA sprs are
8170 contiguous, start at register number zero, and end with fpscr.
8171 Instead, use the numbers from the tdep structure.
8172
8173 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
8174 should no longer be used in code specific to the RS6000 and its
8175 derivatives.
8176 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
8177 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
8178 tdep->ppc_fp0_regnum.
8179 (ppc_supply_fpregset, ppc_collect_fpregset)
8180 (rs6000_push_dummy_call, rs6000_extract_return_value)
8181 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
8182 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
8183 FP0_REGNUM.
8184 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
8185 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
8186 Same.
8187 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
8188 bdm_ppc_store_registers): Same.
8189 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
8190 (store_register, fill_fpregset): Same.
8191 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
8192 (ppc_linux_supply_fpregset): Same.
8193 * ppcnbsd-nat.c (getfpregs_supplies): Same.
8194 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
8195 Same.
8196 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
8197 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
8198 ppc64_sysv_abi_return_value): Same.
8199 * rs6000-nat.c (regmap, fetch_inferior_registers)
8200 (store_inferior_registers, fetch_core_registers): Same.
8201
8202 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8203
8204 * m68knbsd-nat.c: Remove file.
8205 * m68knbsd-tdep.c: Remove file.
8206 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
8207 dependencies.
8208 * configure.host: Add m68k-*-netbsdelf*.
8209 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
8210 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
8211 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
8212 (XM_FILE): Remove.
8213 * config/m68k/nbsdelf.mh: New file.
8214 * config/m68k/nbsd.mt: New file.
8215 * config/m68k/nbsdaout.mt: Remove file.
8216 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
8217 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
8218 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
8219 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
8220 (use_struct_convention): Remove prototype.
8221 (USE_STRUCT_CONVENTION): Remove define.
8222 * config/m68k/xm-nbsd.h: Remove file.
8223
8224 2004-05-04 Michael Snyder <msnyder@redhat.com>
8225
8226 * m68k-tdep.c (m68k_gdbarch_init): Default to using
8227 reg_struct_return method (as gcc usually does for cross targets).
8228
8229 2004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8230
8231 Committed by Andrew Cagney.
8232 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
8233 alignment padding when accessing ucontext struct members.
8234
8235 2004-05-04 Jim Blandy <jimb@redhat.com>
8236
8237 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
8238 'ppc_gplast_regnum' member.
8239 (ppc_num_gprs): New enum constant.
8240 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
8241 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
8242 * rs6000-nat.c (regmap, fetch_inferior_registers,
8243 store_inferior_registers): Same.
8244 * rs6000-tdep.c (e500_pseudo_register_read)
8245 (e500_pseudo_register_write): Same.
8246 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
8247
8248 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
8249 * ppc-tdep.h (ppc_num_fprs): New enum constant.
8250 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
8251 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
8252 FPLAST_REGNUM.
8253 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8254 Same.
8255 * ppc-linux-nat.c (ppc_register_u_addr): Same.
8256 * rs6000-nat.c (regmap, fetch_inferior_registers)
8257 (store_inferior_registers): Same.
8258
8259 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
8260 with FPLAST_REGNUM.
8261
8262 2004-05-03 Joel Brobecker <brobecker@gnat.com>
8263
8264 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
8265 failure detected by recent versions of GCC.
8266 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
8267 to be consistent with the usage in dwarf2_create_include_psymtab.
8268
8269 2004-05-03 Michael Snyder <msnyder@redhat.com>
8270
8271 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
8272 (heuristic_proc_start): Whitespace cleanup.
8273
8274 2004-05-04 Mark Kettenis <kettenis@gnu.org>
8275
8276 * sun3-nat.c: Remove file.
8277 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
8278 dependencies.
8279 (ALLDEPFILES): Remove sun3-nat.c.
8280 (sun3-nat.o): Remove dependencies.
8281
8282 * i386-interix-nat.c, i386-interix-tdep.c,
8283 config/i386/nm-interix.h, config/i386/interix.mh,
8284 config/i386/interix.mt: Remove files.
8285 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
8286 dependencies.
8287
8288 2004-05-03 Mark Kettenis <kettenis@gnu.org>
8289
8290 * m68k-tdep.h (struct gdbarch_tdep): Add member
8291 struct_value_regnum.
8292 (m68k_svr4_init_abi): New prototype.
8293 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
8294 different calling conventions.
8295 (m68k_extract_return_value): Remove code dealing with single-field
8296 structs.
8297 (m68k_store_return_value): Remove code dealing with single-field
8298 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
8299 (m68k_extract_struct_value_address): Remove function.
8300 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
8301 (m68k_reg_struct_return_p, m68k_return_value)
8302 (m68k_svr4_return_value): New functions.
8303 (m68k_use_struct_convention): Remove function.
8304 (m68k_push_dummy_call): Use new struct_value_regnum member of
8305 `struct gdbarch_tdep' instead of hardcoded register number to
8306 store STRUCT_ADDR.
8307 (m68k_svr4_init_abi): New function.
8308 (m68k_gdbarch_init): Don't set extract_return_value,
8309 store_return_values, deprecated_extract_struct_value_address and
8310 use_struct_convention. Set return_value instead. Initialize new
8311 struct_value_regnum member of `struct gdbarch_tdep'.
8312 * m68klinux-tdep.c: Update copyright year.
8313 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
8314 (m68k_linux_extract_struct_value_address): Remove function.
8315 (m68k_linux_init_abi): Don't set extract_return_value,
8316 store_return_values, deprecated_extract_struct_value_address and
8317 use_struct_convention. Call m68k_svr4_init_abi but override the
8318 new struct_value_regnum member of `struct gdbarch_tdep'.
8319 * Makefile.in (m68k-tdep.o): Update dependencies.
8320
8321 2004-05-03 J. Brobecker <brobecker@gnat.com>
8322
8323 * dwarf2read.c (line_header): Add new included_p field in
8324 field file_names.
8325 (partial_die_info): New field has_stmt_list. New field line_offset.
8326 (dwarf2_create_include_psymtab): New function.
8327 (dwarf2_build_include_psymtabs): New function.
8328 (add_file_name): Add forward declaration. Initialize new field.
8329 (dwarf_decode_lines): Add new parameter. Enhance this procedure
8330 to be able to determine the list of files included by the
8331 given unit, and build their associated psymtabs.
8332 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
8333 files as well.
8334 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
8335 (read_file_scope): Update call to dwarf_decode_lines.
8336 (read_partial_die): Handle DW_AT_stmt_list attributes.
8337
8338 2004-05-02 Michael Chastain <mec.gnu@mindspring.com>
8339
8340 Unfix PR gdb/1626.
8341 * configure.in: Revert special case for osf5.*.
8342 * configure: Regenerate.
8343
8344 2004-05-02 Jim Blandy <jimb@redhat.com>
8345
8346 Move the symbol-file-from-memory functions into their own file.
8347 * symfile-mem.c, symfile-mem.h: New files.
8348 * symfile.c (symbol_file_add_from_bfd): New function.
8349 (symbol_file_add): Call symbol_file_add_from_bfd.
8350 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
8351 Moved to symfile-mem.c.
8352 (_initialize_symfile): Move definition of
8353 add-symbol-file-from-memory command to symfile-mem.c.
8354 * symfile.h (symbol_file_add_from_bfd): New declaration.
8355 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
8356 * config/powerpc/linux.mt (TDEPFILES): Same.
8357 * Makefile.in (SFILES): Add symfile-mem.c.
8358 (symfile_mem_h): New variable.
8359 (HFILES_NO_SRCDIR): Add symfile-mem.h.
8360 (symfile-mem.o): New rule.
8361
8362 2004-05-01 Andrew Cagney <cagney@redhat.com>
8363
8364 * breakpoint.c (insert_bp_location): Use get_frame_id, and
8365 frame_find_by_id instead of frame_relative_level.
8366 (do_enable_breakpoint): Ditto.
8367 * thread.c: Update copyright.
8368 (info_threads_command): Ditto, simplify.
8369
8370 * frame.c (deprecated_generic_get_saved_register): Delete
8371 function, moved to "xstormy16-tdep.c".
8372 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
8373 deprecated_generic_get_saved_register from "frame.c".
8374 (xstormy16_frame_saved_register): Call
8375 xstormy16_get_saved_register.
8376 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
8377 static.
8378 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
8379 * frame.h (deprecated_generic_get_saved_register): Delete.
8380
8381 2004-05-01 Michael Chastain <mec.gnu@mindspring.com>
8382
8383 * dwarfread.c: Update documentation on the state of dwarf-1.
8384
8385 2004-05-01 Andrew Cagney <cagney@redhat.com>
8386
8387 * stack.c (select_frame_command): Delete call to
8388 frame_relative_level.
8389 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
8390 Delete #if0 code.
8391 (frame_info): Do not print FRAMELESS.
8392 (print_block_frame_labels): Replace DEPRECATED_STREQ.
8393 (catch_info): Delete #if0 code.
8394
8395 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
8396 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
8397 of frame_relative_level.
8398 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
8399 to SENTINEL_FRAME.
8400 * frame.h (enum frame_type): Add SENTINEL_FRAME.
8401 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
8402 frame_relative_level.
8403
8404 * frame.h (deprecated_set_frame_type): Delete declaration.
8405 * frame.c (deprecated_set_frame_type): Delete function, update
8406 comments.
8407
8408 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
8409 * gdbarch.h, gdbarch.c: Re-generate.
8410 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
8411 (shnbsd_pc_in_sigtramp): Delete.
8412 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
8413 pc_in_sigtramp.
8414 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
8415 pc_in_sigtramp.
8416 * frame.h: Update comments.
8417 * ppc-linux-tdep.c: Update comments.
8418 * breakpoint.c (bpstat_what): Update comments.
8419
8420 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
8421 m68klinux-tdep.o's dependencies, were previously added to
8422 m68klinux-nat.o.
8423
8424 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
8425 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
8426 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
8427 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
8428 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
8429
8430 * Makefile.in (m68klinux-nat.o): Update dependencies.
8431 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8432 (m68k_linux_sigtramp_frame_cache)
8433 (m68k_linux_sigtramp_frame_this_id)
8434 (m68k_linux_sigtramp_frame_prev_register)
8435 (m68k_linux_sigtramp_frame_unwind)
8436 (m68k_linux_sigtramp_frame_sniffer)
8437 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
8438 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
8439 names, use trad-frame.h.
8440 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
8441 (struct m68k_sigtramp_info): Delete.
8442 * m68k-tdep.c (m68k_sigtramp_frame_cache)
8443 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
8444 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
8445 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
8446 "m68klinux-tdep.c".
8447
8448 * infrun.c (check_sigtramp2): Delete check for
8449 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
8450
8451 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8452
8453 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
8454
8455 2004-05-01 Andrew Cagney <cagney@redhat.com>
8456
8457 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8458 (frv_linux_sigtramp_frame_cache)
8459 (frv_linux_sigtramp_frame_this_id)
8460 (frv_linux_sigtramp_frame_prev_register)
8461 (frv_linux_sigtramp_frame_unwind)
8462 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
8463 include "linux" in function and variable names, directly call
8464 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
8465 the latest trad-frame code.
8466 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
8467 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
8468 * Makefile.in (frv-linux-tdep.o): Update dependencies.
8469 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
8470 * frv-tdep.c (frv_sigtramp_frame_cache)
8471 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
8472 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
8473 frv-linux-tdep.c.
8474 (frv_gdbarch_init): Do not append a sigtramp sniffer.
8475 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
8476 (frv_set_sigcontext_reg_addr): Delete function.
8477
8478 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
8479 (DEPRECATED_SIGTRAMP_END): Delete.
8480 * gdbarch.h, gdbarch.c: Re-generate.
8481 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
8482 * config/vax/tm-vaxbsd.h: Update copyright.
8483 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8484 (DEPRECATED_IN_SIGTRAMP): Define.
8485 * config/m68k/tm-nbsd.h: Update copyright.
8486 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8487 (DEPRECATED_IN_SIGTRAMP): Define.
8488
8489 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8490
8491 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
8492 encondings. Fixes PR gdb/1628.
8493
8494 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
8495 DW_CFA_restore state without a matching DW_CFA_remember_state
8496 instead of aborting. Fixes PR backtrace/1589.
8497
8498 2004-04-30 Joel Brobecker <brobecker@gnat.com>
8499
8500 * MAINTAINERS: Add self as AIX maintainer.
8501 Update my e-mail address in write-after-approval section.
8502
8503 2004-04-30 Andrew Cagney <cagney@redhat.com>
8504
8505 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
8506 (legacy_get_prev_frame): Ditto.
8507
8508 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
8509 (mips_gdbarch_init): Do not set pc_in_sigtramp.
8510 * mipsread.c (sigtramp_address): Delete extern variable.
8511 (mipscoff_new_init): Delete reference.
8512 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
8513 (fixup_sigtramp): Delete function.
8514 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
8515 (fixup_sigtramp): Delete declarations.
8516
8517 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
8518 deprecated_pc_in_sigtramp.
8519 (ppcnbsd_pc_in_sigtramp): Delete function.
8520
8521 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8522
8523 * config/m68k/nm-nbsd.h: Tweak comments.
8524 * config/m68k/nm-nbsdaout.h: Likewise.
8525
8526 2004-04-30 Andrew Cagney <cagney@redhat.com>
8527
8528 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
8529 legacy_pc_in_sigtramp.
8530 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
8531
8532 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8533
8534 Add OpenBSD/m68k support.
8535 * NEWS (New native configurations): Mention OpenBSD/m68k.
8536 * m68kbsd-tdep.c: New file.
8537 * m68kbsd-nat.c: New file.
8538 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
8539 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
8540 * configure.host: Add m68k-*-openbsd.
8541 * configure.tgt: Add m68k-*-openbsd.
8542 * config/m68k/tm-obsd.h: New file.
8543 * config/m68k/obsd.mt: New file.
8544 * config/m68k/obsd.mh: New file.
8545 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
8546 m68kbsd-tdep.c.
8547
8548 2004-04-30 Andrew Cagney <cagney@redhat.com>
8549
8550 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
8551 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
8552
8553 2004-04-30 Mark Kettenis <kettenis@gnu.org>
8554
8555 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
8556 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
8557
8558 2004-04-30 Brian Ford <ford@vss.fsi.com>
8559
8560 Revert 2004-04-16 change.
8561 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
8562 (i386_coff_init_abi): Remove.
8563 * i386-tdep.h (i386_coff_init_abi): Remove.
8564 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
8565
8566 2004-04-30 Andrew Cagney <cagney@redhat.com>
8567
8568 * blockframe.c (find_pc_partial_function): Delete use of
8569 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
8570 DEPRECATED_SIGTRAMP_END.
8571
8572 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
8573 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
8574 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
8575 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
8576 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
8577
8578 * defs.h (deprecated_inside_entry_file): Delete declaration.
8579 * blockframe.c (deprecated_inside_entry_file): Delete function.
8580 (legacy_frame_chain_valid): Delete call.
8581 * sh64-tdep.c (sh64_frame_chain): Delete call.
8582 * objfiles.h: Update comments.
8583 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
8584 call.
8585 * frame.c (get_prev_frame): Delete call, update comments.
8586
8587 2004-04-30 Brian Ford <ford@vss.fsi.com>
8588
8589 * MAINTAINERS (Write After Approval): Add myself.
8590
8591 2004-04-30 Andrew Cagney <cagney@redhat.com>
8592
8593 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
8594 * gdbarch.h, gdbarch.c: Re-generate.
8595 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
8596 code.
8597
8598 2004-04-30 Andrew Cagney <cagney@redhat.com>
8599
8600 * gdb-events.sh (selected_thread_changed)
8601 (selected_frame_level_changed, target_changed): Delete.
8602 * gdb-events.h, gdb-events.c: Re-generate.
8603 * valops.c (value_assign): Update.
8604 * stack.c (select_frame_command, up_silently_base)
8605 (down_silently_base): Update.
8606
8607 2004-04-29 Andrew Cagney <cagney@redhat.com>
8608
8609 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
8610 registers correctly.
8611 (print_gp_register_row, mips32_heuristic_proc_desc)
8612 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
8613 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
8614 references to mips_isa_regsize.
8615
8616 2004-04-29 Andrew Cagney <cagney@redhat.com>
8617
8618 * mips-tdep.c (struct gdbarch_tdep): Delete
8619 mips_fp_register_double.
8620 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
8621 mips_abi_regsize.
8622 (mips_gdbarch_init): Do not set mips_fp_register_double.
8623 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
8624
8625 2004-04-29 Joel Brobecker <brobecker@gnat.com>
8626
8627 Committed by Andrew Cagney.
8628 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
8629 function calls.
8630
8631 2004-04-29 Andrew Cagney <cagney@redhat.com>
8632
8633 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
8634 gdbarch, use mips_abi, update callers.
8635 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
8636 mips_abi_regsize, update callers.
8637 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
8638 mips_default_abi_regsize.
8639 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
8640 mips_default_abi_regsize.
8641
8642 2004-04-29 Andrew Cagney <cagney@redhat.com>
8643
8644 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
8645 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
8646 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
8647 mips_default_abi_regsize.
8648 (mips_isa_regsize): Rename mips_regisze.
8649 * mipsnbsd-tdep.c: Update.
8650 * mips-linux-tdep.c: Update.
8651 * irix5-nat.c: Update.
8652 * mips-tdep.h (mips_isa_regsize): Update.
8653
8654 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
8655 Delete all disabled code.
8656 * gdb-events.h, gdb-events.c: Re-generate.
8657
8658 2004-04-19 Jerome Guitton <guitton@gnat.com>
8659 Mark Kettenis <kettenis@gnu.org>
8660
8661 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
8662 the function begins with a branch instruction.
8663
8664 2004-04-29 Mark Kettenis <kettenis@gnu.org>
8665
8666 * i386-tdep.c: Fix spelling mistakes.
8667
8668 2004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8669 Andrew Cagney <cagney@redhat.com>
8670
8671 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
8672 <sys/proc.h>.
8673 * acconfig.h: Provide default _KMEMUSER value.
8674 * config.in, configure: Re-generate.
8675 * NEWS: Mention fix.
8676
8677 2004-04-24 Randolph Chung <tausq@debian.org>
8678
8679 * configure.host (hppa*-*-linux*): New target.
8680 * configure.tgt (hppa*-*-linux*): Likewise.
8681 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
8682 gdbarch_init_osabi() call earlier so that osabi-specific frame
8683 unwinders can be registered first.
8684 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
8685 hppa-linux-nat.c.
8686 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
8687 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
8688 * config/pa/linux.mh: New file.
8689 * config/pa/linux.mt: New file.
8690 * config/pa/nm-linux.h: New file.
8691 * config/pa/xm-linux.h: New file.
8692 * hppa-linux-nat.c: New file.
8693 * hppa-linux-tdep.c: New file.
8694
8695 2004-04-28 Randolph Chung <tausq@debian.org>
8696
8697 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
8698 return values.
8699 (hppa32_push_dummy_call): Fix small struct and floating point argument
8700 passing, and make sure the stack frame is properly aligned.
8701
8702 2004-04-28 Andrew Cagney <cagney@redhat.com>
8703
8704 * stack.c (print_stack_frame): Fix description.
8705
8706 * NEWS: Mention gdb/gdbserver/configure execute permission
8707 changed. PR server/519.
8708
8709 2004-04-28 Andrew Cagney <cagney@redhat.com>
8710
8711 * stack.c (print_stack_frame_stub): Delete declaration.
8712 (struct print_stack_frame_args, print_stack_frame)
8713 (print_frame_info, print_frame): Replace "source" with print what.
8714 Replace "print" with "print_level". Replace "args" with
8715 "print_args".
8716 * frame.h (show_and_print_stack_frame, print_stack_frame)
8717 (print_frame_info): Update declarations.
8718 * stack.c (select_and_print_frame, frame_command)
8719 (current_frame_command, up_command, down_command): Update calls -
8720 use get_selected_frame, pass "enum print_what" for source, do not
8721 call frame_relative_level.
8722 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
8723 * remote-rdp.c (remote_rdp_open): Ditto.
8724 * remote-mips.c (common_open): Ditto.
8725 * remote-e7000.c (e7000_start_remote): Ditto.
8726 * ocd.c (ocd_start_remote): Ditto.
8727 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
8728 * infrun.c (normal_stop): Ditto.
8729 * inflow.c (kill_command): Ditto.
8730 * infcmd.c (finish_command): Ditto.
8731 * corelow.c (core_open): Ditto.
8732 * tracepoint.c (finish_tfind_command): Ditto.
8733 * thread.c (info_threads_command, info_threads_command)
8734 (restore_current_thread, do_captured_thread_select): Ditto.
8735 * ada-tasks.c (task_command): Ditto.
8736
8737 2004-04-26 Orjan Friberg <orjanf@axis.com>
8738
8739 * frame.c: Include "observer.h".
8740 (frame_observer_target_changed): New function.
8741 (_initialize_frame): Attach target_changed observer.
8742 * regcache.c: Include "observer.h".
8743 (regcache_observer_target_changed): New function.
8744 (_initialize_regcache): Attach target_changed observer.
8745 * valops.c: Include "observer.h".
8746 (value_assign): Notify target_changed event when modifying register.
8747 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
8748
8749 2004-04-26 Orjan Friberg <orjanf@axis.com>
8750
8751 From Paul Koning <pkoning@equallogic.com>:
8752 * breakpoint.c (free_valchain): New function.
8753 (insert_bp_location, delete_breakpoint): Use free_valchain.
8754 (remove_breakpoint): Do not remove the valchain.
8755 (bpstat_stop_status): If not stopped by watchpoint, skip
8756 watchpoints when generating stop status list.
8757 * infrun.c (handle_inferior_event): Make
8758 stepped_after_stopped_by_watchpoint a global variable.
8759 * remote.c (remote_stopped_data_address): Return watch data
8760 address rather than zero if stepped_after_stopped_by_watchpoint is
8761 set.
8762
8763 2004-04-25 Michael Chastain <mec.gnu@mindspring.com>
8764
8765 Fix PR gdb/1626.
8766 * configure.in: Check for curses after termcap.
8767 On osf5.*, do not check for ncurses.
8768 * configure: Regenerate.
8769
8770 2004-04-25 Mark Kettenis <kettenis@gnu.org>
8771
8772 * ppcobsd-nat.c: Include "ppc-tdep.h".
8773 * Makefile.in (ppcobsd-nat.o): Update dependencies.
8774
8775 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
8776 Fixes PR tdep/1623 and PR tdep/1624.
8777
8778 2004-04-24 Michael Chastain <mec.gnu@mindspring.com>
8779
8780 * xmodem.h, xmodem.c: Remove files.
8781 * Makefile.in: Remove references to xmodem.h, xmodem.c.
8782
8783 2004-04-23 Randolph Chung <tausq@debian.org>
8784
8785 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
8786 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
8787 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
8788 for handling stackless frames.
8789 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
8790
8791 2004-04-23 Randolph Chung <tausq@debian.org>
8792
8793 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
8794 starts at a pc before the frame is created.
8795
8796 2004-04-23 Joel Brobecker <brobecker@gnat.com>
8797
8798 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
8799
8800 2004-04-23 Jerome Guitton <guitton@gnat.com>
8801
8802 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
8803 use convert_typed_floating to get the appropriate format.
8804
8805 2004-04-22 Randolph Chung <tausq@debian.org>
8806
8807 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
8808 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
8809 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
8810 (hppa_sign_extend): Add prototype.
8811 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
8812 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
8813 (sign_extend): Rename with hppa_ prefix and make non-static. Other
8814 hppa targets will also use these functions.
8815 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
8816 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
8817 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
8818 (hppa_gdbarch_init): Remove gdbarch setting of
8819 skip_trampoline_code, in_solib_call_trampoline and
8820 in_solib_return_trampoline.
8821 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
8822 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
8823 hppa_in_solib_call_trampoline.
8824 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
8825 Moved from hppa-tdep.c.
8826 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
8827 in_solib_call_trampoline and in_solib_return_trampoline.
8828
8829 2004-04-22 Randolph Chung <tausq@debian.org>
8830
8831 * hppa-tdep.c (hppa_debug): New variable.
8832 (find_unwind_entry, hppa_frame_cache): Add debug output.
8833 (_initialize_hppa_tdep): Add command to set debug flag.
8834
8835 2004-04-22 Andrew Cagney <cagney@redhat.com>
8836
8837 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
8838 "trad-frame.h".
8839 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
8840 signal trampoline unwinder.
8841 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
8842
8843 2004-04-22 Mark Kettenis <kettenis@gnu.org>
8844
8845 Add OpenBSD/powerpc support.
8846 * NEWS (New native configurations): Mention OpenBSD/powerpc.
8847 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
8848 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
8849 (ppc_collect_fpregset): New prototypes.
8850 * ppcobsd-nat.c: New file.
8851 * ppcobsd-tdep.c: New file.
8852 * ppcobsd-tdep.h: New file.
8853 * rs6000-tdep.c: Include "regset.h".
8854 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
8855 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
8856 New functions.
8857 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
8858 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
8859 (rs6000-tdep.o): Update dependencies.
8860 * configure.host: Add powerpc-*-openbsd.
8861 * configure.tgt: Add powerpc-*-openbsd.
8862 * config/powerpc/obsd.mh: New file.
8863 * config/powerpc/nm-obsd.h: New file.
8864 * config/powerpc/obsd.mt: New file.
8865
8866 2004-04-22 Andrew Cagney <cagney@redhat.com>
8867
8868 * frame.h (show_frame_info): Delete declaration.
8869
8870 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
8871 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
8872 * m32r-tdep.c (m32r_frame_this_id): Ditto.
8873 * frv-tdep.c (frv_frame_this_id): Ditto.
8874 * avr-tdep.c (avr_frame_this_id): Ditto.
8875
8876 2004-04-22 Elena Zannoni <ezannoni@redhat.com>
8877
8878 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
8879
8880 2004-04-22 Jim Blandy <jimb@redhat.com>
8881
8882 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
8883 register number zero.
8884
8885 2004-04-21 Michael Snyder <msnyder@redhat.com>
8886
8887 * mips-tdep.c (heuristic_proc_start):
8888 Warning() already prefixes "Warning: ".
8889
8890 2004-04-21 Andrew Cagney <cagney@redhat.com>
8891
8892 * annotate.h (deprecated_annotate_starting_hook)
8893 (deprecated_annotate_stopped_hook)
8894 (deprecated_annotate_exited_hook)
8895 (deprecated_annotate_signal_hook)
8896 (deprecated_annotate_signalled_hook): Deprecate.
8897 * tracepoint.h (deprecated_create_tracepoint_hook)
8898 (deprecated_delete_tracepoint_hook)
8899 (deprecated_modify_tracepoint_hook)
8900 (deprecated_trace_find_hook)
8901 (deprecated_trace_start_stop_hook): Deprecate.
8902 * target.h (deprecated_target_new_objfile_hook): Deprecate.
8903 * remote.h (deprecated_target_resume_hook)
8904 (deprecated_target_wait_loop_hook): Deprecate.
8905 * gdbcore.h (deprecated_exec_file_display_hook)
8906 (deprecated_file_changed_hook): Deprecate.
8907 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
8908 * defs.h (deprecated_modify_breakpoint_hook)
8909 (deprecated_command_loop_hook, deprecated_show_load_progress)
8910 (deprecated_print_frame_info_listing_hook)
8911 (deprecated_query_hook, deprecated_warning_hook)
8912 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
8913 (deprecated_delete_breakpoint_hook)
8914 (deprecated_interactive_hook, deprecated_registers_changed_hook)
8915 (deprecated_readline_begin_hook, deprecated_readline_hook)
8916 (deprecated_readline_end_hook, deprecated_register_changed_hook)
8917 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
8918 (deprecated_context_hook, deprecated_target_wait_hook)
8919 (deprecated_attach_hook, deprecated_detach_hook)
8920 (deprecated_call_command_hook, deprecated_set_hook)
8921 (deprecated_error_hook, deprecated_error_begin_hook)
8922 (deprecated_ui_load_progress_hook): Deprecate.
8923 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
8924 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
8925 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
8926 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
8927 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
8928 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
8929 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
8930 * annotate.c, aix-thread.c: Update.
8931
8932 2004-04-21 Andrew Cagney <cagney@redhat.com>
8933
8934 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
8935 * vaxnbsd-tdep.c: Include "gdb_string.h".
8936
8937 * symfile.c (symbol_file_add_from_memory): #if 0 function.
8938 (add_symbol_file_from_memory_command): #if 0 function body, call
8939 error instead.
8940
8941 2004-04-21 Andrew Cagney <cagney@redhat.com>
8942
8943 * gdbcore.h: Update copyright.
8944 (deprecated_add_core_fns): Rename add_core_fns.
8945 * win32-nat.c (_initialize_core_win32): Update.
8946 * sun3-nat.c (_initialize_core_sun3): Update.
8947 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
8948 * rs6000-nat.c (_initialize_core_rs6000): Update.
8949 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
8950 * nto-tdep.c (_initialize_nto_tdep): Update.
8951 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
8952 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
8953 * mips-nat.c (_initialize_core_mips): Update.
8954 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
8955 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
8956 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
8957 * lynx-nat.c (_initialize_core_lynx): Update.
8958 * irix5-nat.c (_initialize_core_irix5): Update.
8959 * i386-interix-nat.c (_initialize_core_interix): Update.
8960 * cris-tdep.c (_initialize_cris_tdep): Update.
8961 * corelow.c (deprecated_add_core_fns): Update.
8962 * core-regset.c (_initialize_core_regset): Update.
8963 * core-aout.c (_initialize_core_aout): Update.
8964 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
8965 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
8966 * alpha-nat.c (_initialize_core_alpha): Update.
8967
8968 2004-04-21 Jim Blandy <jimb@redhat.com>
8969
8970 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
8971
8972 2004-04-19 Daniel Jacobowitz <drow@mvista.com>
8973
8974 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
8975 Delete.
8976 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
8977 (read_attribute_value): Update calls to dwarf_alloc_block.
8978 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
8979 dwarf2_tmp_obstack.
8980 (psymtab_to_symtab_1): Likewise. Clean up using
8981 free_stack_comp_unit.
8982 (add_to_cu_func_list): Use the comp_unit_obstack.
8983
8984 2004-04-19 Joel Brobecker <brobecker@gnat.com>
8985
8986 * dwarf2read.c (dwarf2_flag_true_p): New function.
8987 (die_is_declaration): Use the function above. Add some comments.
8988
8989 2004-04-19 Mark Kettenis <kettenis@gnu.org>
8990
8991 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
8992 architecture when registering sparcnbsd_core_osabi_sniffer.
8993 Adjust comment.
8994
8995 2004-04-18 Mark Kettenis <kettenis@gnu.org>
8996
8997 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
8998 return value.
8999
9000 Based on a patch from Brian Ford <ford@vss.fsi.com>:
9001 * i386-tdep.c: Correct register numbering scheme comments
9002 throughout.
9003 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
9004 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
9005 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
9006 (i386_gdb_arch_init): Likewise.
9007
9008 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
9009 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
9010 ppcnbsd-tdep.o.
9011
9012 * m68k-tdep.h: Tweak comments.
9013 * m68k-tdep.c: Tweak comment.
9014
9015 2004-04-17 Randolph Chung <tausq@debian.org>
9016
9017 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
9018 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
9019 (hppa_hpux_som_init_abi): Set is_elf to 0.
9020 (hppa_hpux_elf_init_abi): Set is_elf to 1.
9021 * hppa-tdep.c (low_text_segment_address): Remove global.
9022 (record_text_segment_lowaddr): Pass in low address as parameter. Use
9023 section offset to calculate segment address.
9024 (internalize_unwinds): Define low_text_segment_address as local and
9025 pass to record_text_segment_lowaddr for ELF targets.
9026 (hppa_gdbarch_init): Zero fill tdep structure.
9027 (hppa_dump_tdep): Print tdep structure.
9028 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
9029
9030 2004-04-17 Randolph Chung <tausq@debian.org>
9031
9032 * hppa-tdep.c (hppa_pseudo_register_read): Define.
9033 (hppa_gdbarch_init): Set pseudo_register_read.
9034 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
9035 * regcache.c (supply_register): Remove check for
9036 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
9037
9038 2004-04-17 Randolph Chung <tausq@debian.org>
9039
9040 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
9041 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
9042 (hpread_adjust_stack_address): Move to hpread.c.
9043 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
9044 obj_private_struct): Move from tm-hppa.h.
9045 * hpread.c (hppa-tdep.h): Include.
9046 (hpread_adjust_stack_address): Move from hppa-tdep.c.
9047 (hpread_read_function_type, hpread_read_doc_function_type)
9048 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
9049 directly.
9050 * pa64solib.c (hppa-tdep.h): Include.
9051 * somsolib.c (hppa-tdep.h): Include.
9052 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
9053 inferior_status): Remove unused forward declarations.
9054 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
9055 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
9056 obj_private_struct): Move to hppa-tdep.h.
9057 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
9058
9059 2004-04-17 Randolph Chung <tausq@debian.org>
9060
9061 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
9062 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
9063 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
9064 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
9065 Remove forward declaration and make static.
9066 (hppa_reg_struct_has_addr): Remove.
9067
9068 2004-04-16 Joel Brobecker <brobecker@gnat.com>
9069
9070 * observer.sh: Move comments in sed command to first column.
9071
9072 2004-04-16 Jason Molenda (jmolenda@apple.com)
9073
9074 * frame.c: Minor typeo corrections in comments.
9075
9076 2004-04-16 Joel Brobecker <brobecker@gnat.com>
9077
9078 * observer.c (observer_test_first_notification_function): Update
9079 function profile.
9080 (observer_test_second_notification_function): Likewise.
9081 (observer_test_third_notification_function): Likewise.
9082
9083 2004-04-16 Mark Kettenis <kettenis@gnu.org>
9084
9085 From Brian Ford <ford@vss.fsi.com>:
9086 * i386-tdep.c (i386_coff_init_abi): New function.
9087 * i386-tdep.h (i386_coff_init_abi): New prototype.
9088 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
9089 register number translation functions for DWARF and DWARF 2.
9090
9091 2004-04-16 Joel Brobecker <brobecker@gnat.com>
9092
9093 * dwarf2read.c: Back out my previous change, it was incorrect.
9094
9095 2004-04-16 Daniel Jacobowitz <drow@mvista.com>
9096
9097 * dwarf2read.c: Include "hashtab.h".
9098 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
9099 has_namespace_info.
9100 (struct partial_die_info): Add comments. Use bitfields to reduce
9101 memory footprint. Add scope, scope_set, has_specification,
9102 spec_offset, die_parent, die_child, and die_sibling.
9103 (peek_die_abbrev): Add prototype.
9104 (partial_read_comp_unit_head): New function, broken out from
9105 dwarf2_build_psymtabs_hard.
9106 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
9107 Use partial_read_comp_unit_head. Initialize the CU and
9108 comp_unit_obstack. Update calls to read_partial_die and
9109 scan_partial_symbols. Use free_stack_comp_unit and
9110 load_partial_dies.
9111 (scan_partial_symbols): Change PDI to a pointer. Use the child and
9112 sibling pointers to walk partial DIEs. Call fixup_partial_die.
9113 Update calls to helper functions. Remove NAMESPACE argument.
9114 Update comments.
9115 (partial_die_parent_scope, partial_die_full_name): New functions.
9116 (add_partial_symbol): Remove namespace argument. Update call to
9117 pdi_needs_namespace. Use partial_die_full_name. Handle
9118 DW_TAG_namespace. Check has_namespace_info flag.
9119 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
9120 tag. Handle namespaces.
9121 (add_partial_namespace, add_partial_enumeration): Simplify.
9122 (guess_structure_name): New function, derived from
9123 add_partial_structure.
9124 (add_partial_structure): Remove.
9125 (determine_class_name): Update comment.
9126 (dwarf2_read_abbrevs): Set has_namespace_info flag.
9127 (is_type_tag_for_partial, load_partial_dies): New functions.
9128 (read_partial_die): Pass abbrev and abbrev_len as arguments.
9129 Record specifications instead of following them immediately.
9130 (find_partial_die_in_comp_unit, find_partial_die)
9131 (fixup_partial_die, free_stack_comp_unit)
9132 (hashtab_obstack_allocate, dummy_obstack_deallocate)
9133 (partial_die_hash, partial_die_eq): New functions.
9134 * Makefile.in (hashtab_h): Define.
9135 (dwarf2read.o): Update dependencies.
9136 (observer_inc, observer_h): Move to the correct section.
9137
9138 2004-04-15 Joel Brobecker <brobecker@gnat.com>
9139
9140 * dwarf2read.c (dwarf2_attribute_true_p): New function.
9141 (die_is_declaration): Use the function above. Add comment.
9142
9143 2004-04-15 Joel Brobecker <brobecker@gnat.com>
9144
9145 * dwarf2read.c (read_structure_scope): Identify stub types
9146 using die_is_declaration() only.
9147
9148 2004-04-15 Roland McGrath <roland@redhat.com>
9149
9150 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
9151 argument instead of NAME.
9152 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
9153 in call to symbol_file_add_with_addrs_or_offsets.
9154 (build_addr_info): New function, helper for ...
9155 (symbol_file_add_from_memory): New function.
9156 (add_symbol_file_from_memory_command): New function using that.
9157 (_initialize_symfile): Register it for add-symbol-file-from-memory.
9158 (pre_add_symbol_hook): Add const to argument type.
9159 * symfile.h (symbol_file_add_from_memory): Declare it.
9160
9161 2004-04-15 Mark Kettenis <kettenis@gnu.org>
9162
9163 * NEWS (New native configurations): Mention OpenBSD/vax.
9164 * configure.host: Add vax-*-openbsd*.
9165 * config/vax/obsd.mh: New file.
9166 * config/vax/nm-obsd.h: New file.
9167
9168 * vax-tdep.c: Include "regset.h".
9169 (vax_supply_gregset): New function.
9170 (vax_gregset): New variable.
9171 (vax_regset_from_core_section): New function.
9172 (vax_gdbarch_init): Set regset_from_core_section.
9173 * Makefile.in (vax-tdep.o): Update dependencies.
9174
9175 2004-04-15 Andrew Cagney <cagney@redhat.com>
9176
9177 * observer.c (normal_stop_subject, observer_notify_normal_stop)
9178 (observer_normal_stop_notification_stub)
9179 (observer_attach_normal_stop, observer_detach_normal_stop):
9180 Delete, replaced by #include "observer.inc".
9181 * infrun.c (normal_stop): Pass "stop_bpstat" to
9182 observer_notify_normal_stop.
9183 * Makefile.in (observer_inc): Define.
9184 (observer.o): Update dependencies.
9185 (observer.h, observer.inc): New rules.
9186 * observer.h: Delete file.
9187 * observer.sh: New file.
9188
9189 2004-04-15 Mark Kettenis <kettenis@gnu.org>
9190
9191 * vax-tdep.c (vax_frame_cache): Fix typo.
9192
9193 2004-04-14 Mark Kettenis <kettenis@gnu.org>
9194
9195 * NEWS (New native configurations): Mention NetBSD/vax.
9196 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
9197 * config/vax/nbsdelf.mh: New file.
9198 * config/vax/nbsdaout.mh: New file.
9199 * config/vax/nm-nbsd.h: New file.
9200 * config/vax/nm-nbsdaout.h: New file.
9201
9202 * vaxnbsd-tdep.c: New file.
9203 * Makefile.in (vaxnbsd-tdep.o): New dependency.
9204 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
9205 * config/vax/nbsd.mt: New file.
9206 * config/vax/tm-nbsd.h: New file.
9207
9208 * Makefile.in (vaxbsd-nat.o): New dependency.
9209
9210 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
9211 * vax-tdep.c (vax_store_arguments): Remove struct_return and
9212 struct_addr arguments. Don't push return value address.
9213 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
9214 arguments to vax_store_arguments. Store return value address in
9215 R1.
9216 (vax_store_struct_return, vax_extract_return_value)
9217 (vax_store_return_value): Remove functions.
9218 (vax_return_value): New function.
9219 (vax_gdbarch_init): Set return value. Don't set
9220 deprecated_store_struct_return, deprecated_extract_struct_return
9221 and deprecated_store_return_value.
9222
9223 2004-04-14 Andreas Schwab <schwab@suse.de>
9224
9225 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
9226 value buffer.
9227 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
9228
9229 2004-04-14 Mark Kettenis <kettenis@gnu.org>
9230
9231 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
9232 (vax_unwind_dummy_id): New functions.
9233 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
9234 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
9235 variables.
9236 (vax_fix_call_dummy): Remove function.
9237 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
9238 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
9239 call_dummy_location, deprecated_call_dummy_words,
9240 deprecated_sizeof_call_dummy_words,
9241 deprecated_call_dummy_breakpoint_offset,
9242 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
9243 and deprecated_dummy_write_sp.
9244
9245 2004-04-13 David Carlton <carlton@kealia.com>
9246
9247 * MAINTAINERS: Move myself to "paper trail" section.
9248
9249 2004-04-12 Mark Kettenis <kettenis@gnu.org>
9250
9251 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
9252 "trad-frame.h".
9253 (vax_frame_init_saved_regs): Remove function.
9254 (vax_sigtramp_saved_pc): Remove function.
9255 (vax_frame_saved_pc): Remove function.
9256 (vax_frame_args_address): Remove function.
9257 (vax_frame_num_args): Rewrite.
9258 (vax_frame_chain): Remove function.
9259 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
9260 VAX_FP_REGNUM.
9261 (vax_pop_frame): Likewise.
9262 (vax_saved_pc_after_call): Remove function.
9263 (struct vax_frame_cache): New structure.
9264 (vax_frame_cache): New function.
9265 (vax_frame_this_id): New function.
9266 (vax_frame_prev_register): New function.
9267 (vax_frame_unwind): New variable.
9268 (vax_frame_sniffer): New function.
9269 (vax_frame_base_address): New function.
9270 (vax_frame_args_address): New function.
9271 (vax_frame_base): New variable.
9272 (vax_unwind_pc): New function.
9273 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
9274 deprecated_fp_regnum, deprecated_saved_pc_after_call,
9275 deprecated_frame_chain, deprecated_frame_saved_pc,
9276 deprecated_frame_args_address and
9277 deprecated_frame_init_saved_regs.
9278 * Makefile.in (vax-tdep.o): Update dependencies.
9279
9280 * vaxbsd-nat.c: New file.
9281
9282 * vax-tdep.h: Update copyright year. Adjust comments.
9283 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
9284 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
9285 (vax_regnum): New enum. Replacing...
9286 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
9287 (VAX_PS_REGNUM): ... these removed macros.
9288 * vax-tdep.c (vax_register_name): Remove prototype.
9289 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
9290 (vax_register_byte, vax_register_raw_size,
9291 vax_register_virtual_size, vax_register_virtual_type): Remove
9292 functions.
9293 (vax_register_type): New function.
9294 (vax_breakpoint_from_pc): Reorganize.
9295 (vax_gdbarch_init): Set register_type. Don't set
9296 deprecated_register_size, deprecated_register_bytes,
9297 deprecated_register_byte, deprecated_register_raw_size,
9298 deprecated_max_register_raw_size,
9299 deprecated_register_virtual_size,
9300 deprecated_max_register_virtual_size and
9301 deprecated_register_virtual_type. Add comment on stack direction.
9302
9303 2004-04-11 Mark Kettenis <kettenis@gnu.org>
9304
9305 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
9306 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
9307 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
9308
9309 2004-04-10 Randolph Chung <tausq@debian.org>
9310
9311 * MAINTAINERS (write after approval): Add myself.
9312
9313 2004-04-07 Randolph Chung <tausq@debian.org>
9314
9315 * hppa-tdep.c (hppa_inner_than): Remove.
9316 (is_pa_2): Remove unused static variable.
9317 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
9318
9319 2004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
9320
9321 * language.h (language_defn): Add new la_post_parser field.
9322 * parser-defs.h (null_post_parser): New declaration (default for
9323 la_post_parser).
9324
9325 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
9326 insert call to that function.
9327 (parse_exp_in_context): New function, including code formerly in
9328 parse_exp_1. Calls language-dependent post-parser after
9329 prefixification.
9330 (parse_expression_in_context): New exported function.
9331 (null_post_parser): New definition.
9332 * expression.h (parse_expression_in_context): Add declaration.
9333
9334 * p-lang.c (pascal_language_defn): Add trivial post-parser.
9335 * c-lang.c (c_language_defn): Ditto.
9336 (cplus_language_defn): Ditto.
9337 (asm_language_defn): Ditto.
9338 (minimal_language_defn): Ditto.
9339 * f-lang.c (f_language_defn): Ditto.
9340 * jv-lang.c (java_language_defn): Ditto.
9341 * language.c (unknown_language_defn): Ditto.
9342 (auto_language_defn): Ditto.
9343 (local_language_defn): Ditto.
9344 * m2-lang.c (m2_language_defn): Ditto.
9345 * scm-lang.c (scm_language_defn): Ditto.
9346 * obj-lang.c (objc_language_defn): Ditto.
9347
9348 2004-04-10 Mark Kettenis <kettenis@gnu.org>
9349
9350 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
9351 (amd64nbsd_mcontext_addr): New function.
9352 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
9353 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
9354 with amd64nbsd_r_reg_offset, instead of building it on the fly.
9355
9356 * corelow.c (core_xfer_partial): Fix coding standards violation.
9357 Add support for TARGET_OBJECT_WCOOKIE.
9358
9359 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
9360 deprecated_pc_in_sigtramp.
9361 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
9362 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
9363 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
9364 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
9365 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
9366 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
9367 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
9368
9369 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
9370 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
9371 Fix typo.
9372
9373 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
9374 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
9375 (amd64_collect_fxsave): Likewise.
9376
9377 * i386-sol2-tdep.c: Include "gdb_string.h".
9378 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
9379 name.
9380 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
9381
9382 2004-04-10 Mark Kettenis <kettenis@gnu.org>
9383
9384 * i386-sol2-tdep.c: Include "solib-svr4.h".
9385 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9386 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
9387 * config/i386/tm-i386sol2.h: Include :solib.h".
9388 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
9389 solib-svr4.o and solib-legacy.o.
9390 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
9391 solib-svr4.o.
9392
9393 2004-04-09 Mark Kettenis <kettenis@gnu.org>
9394
9395 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
9396 whether a register is supplied by PTRACE_GETFPREGS.
9397 (store_inferior_registers): Likewise.
9398 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
9399 whether a register is supplied by PT_GETFPREGS.
9400 (store_inferior_registers): Likewise.
9401
9402 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
9403 * config/i386/linux64.mt (TDEPFILES): Likewise.
9404
9405 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
9406
9407 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
9408 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
9409 the program counter is in the range specified by `struct
9410 gdbarch_tdep'.
9411 * amd64-linux-tdep.c: Include "symtab.h".
9412 (amd64_linux_pc_in_sigtramp): Remove function.
9413 (amd64_linux_sigtramp_p): New function.
9414 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
9415 deprecated_pc_in_sigtramp.
9416 * amd64nbsd-tdep.c: Include "symtab.h".
9417 (amd64nbsd_sigtramp_p): New function.
9418 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
9419 deprecated_pc_in_sigtramp.
9420 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
9421 few comments.
9422 (amd64obsd_pc_in_sigtramp): Remove function.
9423 (amd64obsd_sigtramp_p): New function.
9424 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
9425 deprecated_pc_in_sigtramp.
9426 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
9427 (i386bsd_pc_ins_sigtramp): Remove prototype.
9428 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
9429 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
9430 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
9431 the program counter is in the range specified by `struct
9432 gdbarch_tdep'.
9433 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
9434 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
9435 (i386_go32_pc_in_sigtramp): Remove function.
9436 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
9437 Initialize TDEP->sigtramp_p.
9438 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
9439 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
9440 deprecated_pc_in_sigtramp.
9441 * i386-linux-tdep.c: Adjust comments.
9442 (i386_linux_pc_in_sigtramp): Remove function.
9443 (i386_linux_sigtramp_p): New function.
9444 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
9445 deprecated_pc_in_sigtramp.
9446 * i386-nto-tdep.c: Update copyright year.
9447 (i386nto_pc_in_sigtramp): Remove function.
9448 (i386nto_sigtramp_p): New function.
9449 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
9450 SP_REGNUM.
9451 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
9452 deprecated_pc_in_sigtramp.
9453 * i386-sol2-tdep.c: Update copyright year.
9454 (i386_sol2_pc_in_sigtramp): Remove function.
9455 (i386_sol2_sigtramp_p): New function.
9456 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
9457 deprecated_pc_in_sigtramp.
9458 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
9459 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
9460 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9461 deprecated_sigtramp_start and deprecated_sigtramp_end.
9462 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
9463 (i386nbsd_pc_in_sigtramp): Remove function.
9464 (i386nbsd_sigtramp_p): New function.
9465 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9466 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
9467 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
9468 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
9469 (i386obsd_pc_in_sigtramp): Remove function.
9470 (i386obsd_sigtramp_p): New function.
9471 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
9472 functions.
9473 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9474 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
9475 TDEP->sigtramp_p.
9476 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
9477 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
9478 dependencies.
9479
9480 * config/i386/i386aout.mt: Remove file.
9481
9482 * configure.tgt: Remove i[34567]86-*-go32*,
9483 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
9484 and i[34567]86-*-isc*. Set gdb_target to i386 for
9485 i[34567]86-*-netware* and i[34567]86-*-*.
9486 * config/i386/i386.mt: New file.
9487 * config/i386/embed.mt: Remove file.
9488 * config/i386/go32.mt: Remove file.
9489 * config/i386/i386nw.mt: Remove file.
9490 * config/i386/i386v.mt: Remove file.
9491 * config/i386/tm-go32.h: Remove file.
9492
9493 * tui/tui-hooks.c: Include "readline/readline.h" after
9494 "gdb_curses.h" instead of before.
9495 * tui/tui-io.c: Likewise.
9496
9497 * tui/tui.c: Fix typo in comment.
9498
9499 * sparc64-tdep.c (sparc_address_from_register): Remove function.
9500
9501 2004-04-08 Andrew Cagney <cagney@redhat.com>
9502
9503 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
9504 (deprecated_exception_support_initialized): Declare.
9505 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
9506 (initialize_hp_cxx_exception_support)
9507 (child_enable_exception_callback): Update.
9508 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
9509 (deprecated_exception_support_initialized): Rename
9510 deprecated_exception_catchpoints_are_fragile and
9511 deprecated_exception_support_initialized.
9512 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
9513
9514 * symtab.c (deprecated_hp_som_som_object_present): Rename
9515 hp_som_som_object_present.
9516 * symtab.h (deprecated_hp_som_som_object_present): Declare.
9517 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
9518 Update. Delete extern declaration.
9519 * valops.c (hp_som_som_object_present): Ditto.
9520 * parse.c (deprecated_hp_som_som_object_present)
9521 (parse_nested_classes_for_hpacc): Ditto.
9522 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
9523 * hppa-hpux-tdep.c (hp_som_som_object_present)
9524 (initialize_hp_cxx_exception_support): Ditto.
9525 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
9526 * cp-valprint.c (hp_som_som_object_present)
9527 (cp_print_class_method): Ditto.
9528 * c-typeprint.c (hp_som_som_object_present):
9529 (c_type_print_base): Ditto.
9530 * c-exp.y (hp_som_som_object_present): Ditto.
9531
9532 2004-04-08 Andrew Cagney <cagney@redhat.com>
9533
9534 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
9535 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
9536 (frame_unwind_find_by_frame): Re-implement the unwind code so
9537 that it can both prepend and append sniffers. Replace
9538 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
9539 * tramp-frame.c (tramp_frame_append): Use
9540 frame_unwind_prepend_unwinder.
9541 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
9542 frame_unwind_register_unwinder.
9543 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
9544 tramp_frame_append.
9545 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
9546 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
9547 (mips_linux_init_abi): Update.
9548
9549 2004-04-08 Kevin Buettner <kevinb@redhat.com>
9550
9551 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
9552 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
9553 file support.
9554
9555 2004-04-07 Kevin Buettner <kevinb@redhat.com>
9556
9557 * ia64-tdep.c (elf.h): Don't include.
9558 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
9559
9560 2004-04-07 Jason Molenda (jmolenda@apple.com)
9561
9562 * frame.h: Typeo corrections in comments.
9563
9564 2004-04-07 Jim Blandy <jimb@redhat.com>
9565
9566 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
9567 %esp and %ebp
9568
9569 2004-04-07 Mark Kettenis <kettenis@gnu.org>
9570
9571 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
9572 * config/sparc/linux64.mt (TDEPFILES): Likewise.
9573 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
9574 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
9575 and solib-legacy.o.
9576 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
9577 solib-svr4.o.
9578 * config/sparc/tm-sol2.h: Update copyright year. Include
9579 "solib.h".
9580
9581 * sparc-sol2-tdep.c: Update copyright year. Include
9582 "solib-svr4.h".
9583 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9584 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
9585 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9586 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
9587 dependencies.
9588
9589 2004-04-06 Andrew Cagney <cagney@redhat.com>
9590
9591 * infttrace.c: Include "infttrace.h".
9592 * infttrace.h: Include "target.h".
9593 * Makefile.in (infttrace_h): Update.
9594 (infttrace.o): Update.
9595
9596 2004-04-06 Andrew Cagney <cagney@redhat.com>
9597
9598 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
9599 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
9600 move extern declarations from here ...
9601 * infttrace.h: ... to here.
9602 * Makefile.in (hppah-nat.o): Update dependencies.
9603
9604 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
9605 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
9606 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
9607 (hppa_breakpoint_from_pc): Delete.
9608
9609 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
9610
9611 2004-04-05 Andrew Cagney <cagney@redhat.com>
9612
9613 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
9614 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
9615 <sys/file.h>.
9616
9617 2004-04-06 Randolph Chung <tausq@debian.org>
9618
9619 Committed by Andrew Cagney (mechanical change).
9620 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
9621 exception_catchpoints_are_fragile, find_stub_with_shl_get,
9622 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
9623 child_enable_exception_callback, current_ex_event,
9624 null_symtab_and_line, child_get_current_exception_event,
9625 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
9626 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
9627 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
9628 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
9629 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
9630 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
9631 Move hpux-specific definitions ...
9632 * hppa-hpux-tdep.c: ... to here.
9633
9634 2004-04-05 Andrew Cagney <cagney@redhat.com>
9635
9636 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
9637 skip_prologue_using_sal.
9638
9639 2004-04-05 Andrew Cagney <cagney@redhat.com>
9640
9641 * config/i386/tm-i386.h: Delete file.
9642 * config/i386/tm-vxworks.h: Update copyright, do not include
9643 "tm-i386.h".
9644 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
9645 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
9646 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
9647 * config/i386/ncr3000.mt (TM_FILE): Delete.
9648 * config/i386/interix.mt (TM_FILE): Delete.
9649 * config/i386/i386v.mt (TM_FILE): Delete.
9650 * config/i386/i386nw.mt (TM_FILE): Delete.
9651 * config/i386/i386gnu.mt (TM_FILE): Delete.
9652 * config/i386/i386aout.mt (TM_FILE): Delete.
9653 * config/i386/embed.mt (TM_FILE): Delete.
9654
9655 2004-04-05 Kevin Buettner <kevinb@redhat.com>
9656
9657 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
9658 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
9659 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
9660 (accg7_regnum): New constants.
9661 (last_spr_regnum, last_pseudo_regnum): Update.
9662 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
9663 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
9664 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
9665 for accg registers.
9666 (frv_register_sim_regno): Update spr_map[].
9667
9668 2004-04-04 Andrew Cagney <cagney@redhat.com>
9669
9670 * config/mips/xm-riscos.h: Delete.
9671 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
9672 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
9673 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
9674 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
9675 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
9676 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
9677 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
9678 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
9679 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
9680 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
9681 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
9682 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
9683 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
9684 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
9685 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
9686 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
9687 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
9688 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
9689 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
9690 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
9691 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
9692 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
9693 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
9694 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
9695 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
9696 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
9697
9698 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
9699 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
9700 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
9701 * configure.host: Remove m680[01]0-sun-sunos3*,
9702 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
9703 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
9704 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
9705 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
9706 mips-*-riscos*.
9707 * NEWS: Mention removed systems.
9708
9709 2004-04-04 Andrew Cagney <cagney@redhat.com>
9710
9711 GDB 6.1 release created from 6.1 branch.
9712
9713 2004-04-04 Andrew Cagney <cagney@redhat.com>
9714
9715 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
9716 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
9717 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
9718
9719 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
9720 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
9721 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
9722
9723 2004-04-03 Jim Blandy <jimb@redhat.com>
9724
9725 * MAINTAINERS: Chris Faylor has changed employers; add him to
9726 "paper trail" section, and update his E-mail address.
9727
9728 2004-04-03 Andrew Cagney <cagney@redhat.com>
9729
9730 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
9731 generic dummy frames.
9732 * dummy-frame.c: Update copyright.
9733 (dummy_frame_sniffer): Delete check for generic dummy frames.
9734
9735 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
9736 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
9737 (REG_PARM_STACK_SPACE): Delete.
9738 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
9739 Inline reference to REG_PARM_STACK_SPACE.
9740
9741 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
9742 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
9743 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
9744 (FRAME_BASE_BEFORE_SIGTRAMP)
9745 (hppa32_hpux_frame_base_before_sigtramp)
9746 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
9747 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
9748 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
9749 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
9750 (FRAME_BASE_BEFORE_SIGTRAMP)
9751 (hppa64_hpux_frame_base_before_sigtramp)
9752 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
9753
9754 2004-04-03 Andrew Cagney <cagney@redhat.com>
9755
9756 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
9757
9758 2004-04-02 Andrew Cagney <cagney@redhat.com>
9759
9760 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
9761 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
9762 * dummy-frame.h: Delete out-of-date comments.
9763 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
9764 * gdbarch.h, gdbarch.c: Re-generate.
9765
9766 2004-04-02 Joel Brobecker <brobecker@gnat.com>
9767
9768 Committed by Andrew Cagney <cagney@redhat.com>.
9769 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
9770 into account an instruction saving a register if we have already
9771 seen an earlier instruction saving that same register.
9772
9773 2004-04-02 Andrew Cagney <cagney@redhat.com>
9774
9775 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
9776 * gdbarch.h, gdbarch.c: Re-generate.
9777 * frame.c (legacy_get_prev_frame): Delete references to
9778 DEPRECATED_INIT_FRAME_PC_FIRST.
9779
9780 * infrun.c (pc_in_sigtramp): Delete function.
9781 (check_sigtramp2): Inline call to pc_in_sigtramp, use
9782 get_frame_type.
9783
9784 2004-04-02 Andrew Cagney <cagney@redhat.com>
9785
9786 * infrun.c (handle_step_into_function): Delete code conditional on
9787 legacy_frame_p.
9788 (handle_inferior_event, step_over_function): Ditto.
9789
9790 2004-04-02 Andrew Cagney <cagney@redhat.com>
9791
9792 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
9793 "previous frame inner to this frame" test.
9794
9795 2004-04-02 Andrew Cagney <cagney@redhat.com>
9796
9797 * frame.c (safe_frame_unwind_memory): New function.
9798 * frame.h (safe_frame_unwind_memory): Declare. Update description
9799 of /safe_/ methods.
9800 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
9801 "next_frame". Use safe_frame_unwind_memory.
9802 (tramp_frame_sniffer): Update call to tramp_frame_start.
9803
9804 2004-04-01 Daniel Jacobowitz <drow@mvista.com>
9805
9806 * dwarf2read.c (dwarf2_objfile_data_key): New.
9807 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
9808 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
9809 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
9810 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
9811 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
9812 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
9813 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
9814 Remove variables.
9815 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
9816 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
9817 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
9818 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
9819 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
9820 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
9821 Remove macros.
9822 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
9823 data.
9824 (dwarf2_locate_sections, dwarf2_build_psymtabs)
9825 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
9826 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
9827 (read_partial_die, read_full_die, read_indirect_string)
9828 (dwarf_decode_line_header, dwarf_decode_macros)
9829 (dwarf2_symbol_mark_computed): Remove use of removed macros.
9830 Update uses of removed variables.
9831 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
9832 of removed macros.
9833 (_initialize_dwarf2_read): New function.
9834 * symfile.h (dwarf2_has_info): Update prototype.
9835 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
9836 * elfread.c (elf_symfile_read): Likewise.
9837
9838 2004-04-01 Jim Blandy <jimb@redhat.com>
9839
9840 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
9841 function for register numbers on all the rs6000-derived targets.
9842 (rs6000_gdbarch_init): Don't register a separate
9843 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
9844 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
9845 variants.
9846
9847 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
9848 numbering.
9849
9850 2004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
9851
9852 * valarith.c: Update copyright notice.
9853 (value_add): Handle range types.
9854 (value_sub): Ditto.
9855 (value_equal): Ditto.
9856 (value_less): Ditto.
9857 (value_neg): Ditto.
9858 (value_complement): Ditto.
9859 (value_binop): Simplify slightly by using is_integral_type and
9860 eliminiating unnecessary COERCE_ENUMs.
9861
9862 2004-03-31 Andrew Cagney <cagney@redhat.com>
9863
9864 * frame.h (frame_unwind_id): Declare.
9865 * frame.c (frame_unwind_id): New function.
9866 (get_prev_frame_1): New function.
9867 (frame_debug_got_null_frame): New function.
9868 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
9869 code proper to prev_frame, update description.
9870 * infrun.c (step_over_function): Use frame_unwind_id.
9871
9872 2004-04-31 J. Brobecker <brobecker@gnat.com>
9873
9874 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
9875 (hppa64_push_dummy_call): Likewise.
9876
9877 2004-03-30 Jim Blandy <jimb@redhat.com>
9878
9879 From Ulrich Weigand:
9880 * utils.c (query): Do not use a va_list variable multiple times.
9881
9882 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
9883
9884 * Makefile.in (linux_nat_h): Update dependencies.
9885 * configure.in: Check for <gnu/libc-version.h>.
9886 * configure: Regenerate.
9887 * config.in: Regenerate.
9888 * linux-nat.h: Include "target.h". Add waitstatus field to
9889 struct lwp_info.
9890 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
9891 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
9892 to.
9893 (lin_lwp_handle_extended): New function. Handle clone events.
9894 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
9895 thread exit events.
9896 (child_wait): Handle clone events.
9897 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
9898 * linux-nat.c (linux_enable_event_reporting): Turn on
9899 PTRACE_O_TRACECLONE.
9900 (linux_handle_extended_wait): Handle clone events.
9901 * thread-db.c: Include <gnu/libc-version.h>.
9902 (struct private_thread_info): Add dying flag.
9903 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
9904 higher.
9905 (attach_thread): Update comments. Handle dying threads.
9906 (detach_thread): Set the dying flag.
9907 (check_event): Always call attach_thread.
9908
9909 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
9910
9911 * mips-tdep.c (mips_pdr_data): New.
9912 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
9913 (_initialize_mips_tdep): Initialize mips_pdr_data.
9914
9915 2004-03-29 Corinna Vinschen <vinschen@redhat.com>
9916
9917 * minsyms.c (install_minimal_symbols): Move dropping leading
9918 char from linkage name from here...
9919 (prim_record_minimal_symbol_and_info): ...to here. Simplify
9920 test for "__gnu_compiled*" symbols.
9921
9922 2004-03-28 Jim Blandy <jimb@redhat.com>
9923
9924 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
9925 registers to temp register r0 and byte stores as prologue
9926 instructions.
9927
9928 2004-03-28 Andrew Cagney <cagney@redhat.com>
9929
9930 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
9931 arm*-*-*.
9932
9933 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
9934
9935 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
9936 and switch the layout to force a display of register window.
9937
9938 2004-02-26 J. Brobecker <brobecker@gnat.com>
9939
9940 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
9941 of the INTEGER class.
9942
9943 2004-03-26 Jim Blandy <jimb@redhat.com>
9944
9945 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
9946 bytes long on PPC GNU/Linux.
9947
9948 2004-03-26 David Carlton <carlton@kealia.com>
9949
9950 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
9951
9952 2004-03-25 Andrew Cagney <cagney@redhat.com>
9953
9954 * PROBLEMS: Add general section titles, remove references to
9955 specific releases.
9956
9957 2004-03-25 Daniel Jacobowitz <drow@mvista.com>
9958
9959 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
9960 INT_REGISTER_SIZE.
9961 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
9962 FP_REGISTER_VIRTUAL_SIZE.
9963 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
9964 of DEPRECATED_REGISTER_RAW_SIZE.
9965 (arm_register_type): Add gdbarch argument.
9966 (arm_register_raw_size, arm_register_virtual_size): Delete.
9967 (arm_register_byte, arm_extract_return_value)
9968 (arm_store_return_value, arm_get_longjmp_target): Update references
9969 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
9970 (arm_gdbarch_init): Likewise. Don't set
9971 deprecated_register_raw_size, deprecated_register_virtual_size,
9972 deprecated_max_register_raw_size,
9973 deprecated_max_register_virtual_size, or
9974 deprecated_max_register_virtual_type. Do set register_type.
9975 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
9976 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
9977 (FP_REGISTER_VIRTUAL_SIZE): Delete.
9978 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
9979 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
9980 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
9981 INT_REGISTER_SIZE.
9982 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
9983 (remote_rdp_store_register): Likewise.
9984
9985 2004-03-24 Daniel Jacobowitz <drow@mvista.com>
9986
9987 * Makefile.in (mips-linux-tdep.o): Update dependencies.
9988 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
9989 to after osabi initialization.
9990 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
9991 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
9992 functions.
9993 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
9994 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
9995 variables.
9996 (mips_linux_init_abi): Append signal trampoline unwinders.
9997
9998 2004-03-24 Andrew Cagney <cagney@redhat.com>
9999
10000 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
10001 * tramp-frame.c: Include "gdb_assert.h".
10002 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
10003 correct sizeof.
10004 (tramp_frame_append): Validate the tramp frame's instructions.
10005 * Makefile.in (tramp-frame.o): Update dependencies.
10006
10007 2004-03-23 Andrew Cagney <cagney@redhat.com>
10008
10009 * trad-frame.h (trad_frame_set_reg_addr): Declare.
10010
10011 2004-03-23 Andrew Cagney <cagney@redhat.com>
10012
10013 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
10014 Nasser as past testsuite/lib/ (and other) maintainers.
10015
10016 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
10017
10018 * infcmd.c (attach_command): Reread symbols if we already have
10019 an exec file.
10020
10021 2004-03-23 Andrew Cagney <cagney@redhat.com>
10022
10023 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
10024
10025 2004-03-23 Andrew Cagney <cagney@redhat.com>
10026
10027 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
10028 * gdbarch.h, gdbarch.c: Re-generate.
10029 * i386obsd-tdep.c (i386obsd_init_abi): Update.
10030 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
10031 * i386bsd-tdep.c (i386bsd_init_abi): Update.
10032 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
10033 (DEPRECATED_SIGTRAMP_START): Update.
10034 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
10035 (DEPRECATED_SIGTRAMP_START): Update.
10036 * blockframe.c (find_pc_sect_partial_function): Update.
10037 * arch-utils.c (legacy_pc_in_sigtramp): Update.
10038
10039 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
10040
10041 * remote.c (remote_open_1): Reopen the exec file and reread symbols
10042 if necessary.
10043
10044 2004-03-23 Andrew Cagney <cagney@redhat.com>
10045
10046 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
10047 predicate, deprecate.
10048 * gdbarch.h, gdbarch.c: Re-generate.
10049 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
10050 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
10051 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
10052 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
10053 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
10054 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
10055 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
10056 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
10057 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
10058 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
10059 * blockframe.c (find_pc_partial_function): Update.
10060 * breakpoint.c (bpstat_what): Update.
10061 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
10062 * frv-linux-tdep.c (frv_linux_init_abi): Update.
10063 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
10064 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
10065 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10066 * i386-linux-tdep.c (i386_linux_init_abi): Update.
10067 * i386-nto-tdep.c (i386nto_init_abi): Update.
10068 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
10069 * i386-tdep.c (i386_sigtramp_frame_sniffer)
10070 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
10071 * i386bsd-tdep.c (i386bsd_init_abi): Update.
10072 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
10073 * i386obsd-tdep.c (i386obsd_init_abi): Update.
10074 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
10075 * infrun.c (pc_in_sigtramp): Update.
10076 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
10077 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
10078 * mips-tdep.c (mips_gdbarch_init): Update.
10079 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
10080 * ppc-linux-tdep.c: Update comment.
10081 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
10082 * shnbsd-tdep.c (shnbsd_init_abi): Update.
10083 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
10084 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
10085 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
10086 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
10087 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
10088 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
10089 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
10090 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
10091
10092 2004-03-23 Andrew Cagney <cagney@redhat.com>
10093
10094 * tramp-frame.h, tramp-frame.h: New files.
10095 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
10096 Update rules to include "tramp-frame.h" and "tramp-frame.c".
10097
10098 * Makefile.in: Update all dependencies.
10099
10100 2004-03-23 Andrew Cagney <cagney@redhat.com>
10101
10102 * Makefile.in (trad_frame_h): Add $(frame_h).
10103 * trad-frame.h: Update copyright. Include "frame.h".
10104 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
10105 (trad_frame_set_id, trad_frame_get_id): Declare.
10106 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
10107 * trad-frame.c: Update copyright.
10108 (struct trad_frame_cache): Define.
10109 (trad_frame_cache_zalloc): New function.
10110 (trad_frame_set_id, trad_frame_get_id): New functions.
10111 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
10112
10113 2004-03-22 Andrew Cagney <cagney@redhat.com>
10114
10115 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
10116 s390_pltstub_unwind_cache.
10117 (s390_stub_frame_unwind_cache): Rename
10118 s390_pltstub_frame_unwind_cache.
10119 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
10120 (s390_stub_frame_prev_register): Rename
10121 s390_pltstub_frame_prev_register.
10122 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
10123 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
10124
10125 From Ulrich Weigand:
10126 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
10127 pointer calls like PLT calls.
10128
10129 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
10130
10131 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
10132 PC rather than the partial function start address. Use the start
10133 address to sanity check the found PDR.
10134
10135 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
10136
10137 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
10138 linux_handle_extended_wait.
10139
10140 2004-03-22 Andrew Cagney <cagney@redhat.com>
10141
10142 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
10143 function.
10144
10145 * frame.h (generic_pop_current_frame): Delete declaration.
10146 (deprecate_pop_dummy_frame): Deprecate
10147 generic_pop_dummy_frame.
10148 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
10149 (generic_pop_current_frame): Delete function.
10150 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
10151 generic_pop_current_frame.
10152 * v850-tdep.c (v850_pop_frame): Update.
10153 * mcore-tdep.c (mcore_pop_frame): Update.
10154 * sh64-tdep.c (sh64_pop_frame): Update.
10155 * h8300-tdep.c (h8300_pop_frame): Update.
10156
10157 2004-03-22 Andrew Cagney <cagney@redhat.com>
10158
10159 * frame.h (deprecated_pc_in_call_dummy): Rename
10160 generic_pc_in_call_dummy.
10161 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
10162 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
10163 generic_pc_in_call_dummy.
10164 (pc_in_dummy_frame): Make static.
10165 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
10166 * gdbarch.h, gdbarch.c: Re-generate.
10167 * dummy-frame.c (dummy_frame_sniffer): Simplify.
10168 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
10169 (legacy_get_prev_frame): Ditto.
10170 * inferior.h: Delete reference to generic_pc_in_call_dummy in
10171 comment.
10172
10173 2004-03-21 Andrew Cagney <cagney@redhat.com>
10174
10175 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
10176 declaration and out-of-date comment.
10177 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
10178 Delete function.
10179 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
10180 deprecated_pc_in_call_dummy.
10181
10182 * infrun.c (handle_inferior_event): For non legacy frames, use the
10183 frame ID and frame type to identify a signal trampoline. Update
10184 comments.
10185
10186 2004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
10187
10188 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
10189 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
10190
10191 2004-03-21 Andrew Cagney <cagney@redhat.com>
10192
10193 * frame-unwind.h: Update copyright.
10194 (struct frame_data): Add opaque declaration.
10195 (frame_sniffer_ftype): Declare.
10196 (struct frame_unwind): Add "unwind_data" and "sniffer".
10197 (frame_unwind_register_unwinder): Declare.
10198 (frame_unwind_find_by_frame): Add parameter "this_cache".
10199 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
10200 (legacy_get_prev_frame, legacy_get_prev_frame)
10201 (get_frame_type): Pass the prologue_cache to
10202 frame_unwind_find_by_frame.
10203 * frame-unwind.c (struct frame_unwind_table_entry): Add field
10204 "unwinder".
10205 (frame_unwind_register_unwinder): New function.
10206 (frame_unwind_find_by_frame): Handle an unwind sniffer.
10207
10208 2004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
10209
10210 * bcache.c (print_percentage): Use floating point to avoid
10211 incorrect results when portion*100 overflows.
10212
10213 2004-03-19 Kevin Buettner <kevinb@redhat.com>
10214
10215 * ppc_tdep.h (ppc_linux_frame_saved_pc)
10216 (ppc_linux_init_extra_frame_info)
10217 (ppc_linux_frameless_function_invocation)
10218 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
10219 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
10220 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
10221 (rs6000_frame_chain): Delete declarations.
10222 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
10223 (ppc_linux_init_extra_frame_info)
10224 (ppc_linux_frameless_function_invocation)
10225 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
10226 (ppc_linux_init_abi): Remove registration of above deleted functions.
10227 * rs6000-tdep.c (rs6000_init_extra_frame_info)
10228 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
10229 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
10230 (rs6000_pop_frame, rs6000_frameless_function_invocation)
10231 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
10232 (rs6000_gdbarch_init): Remove registration of above deleted functions.
10233 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
10234 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
10235 frame management for all OSABIs.
10236
10237 2004-03-19 Andrew Cagney <cagney@redhat.com>
10238
10239 Committed by Kevin Buettner <kevinb@redhat.com>.
10240
10241 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
10242 Update copyright.
10243 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
10244 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
10245 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
10246 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
10247 unwinders. #ifdef legacy frame code.
10248 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
10249 "frame-base.h".
10250 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
10251 (struct rs6000_frame_cache, rs6000_frame_cache)
10252 (rs6000_frame_this_id, rs6000_frame_prev_register)
10253 (rs6000_frame_sniffer, rs6000_frame_unwind)
10254 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
10255 (rs6000_frame_base): Implement a traditional frame unwinder.
10256 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
10257 frame unwinder.
10258
10259 2004-03-19 Kevin Buettner <kevinb@redhat.com>
10260
10261 * breakpoint.c (adjust_breakpoint_address): Don't adjust
10262 breakpoint address for watchpoints or the catch eventpoints.
10263 Add new paramter ``bptype''. Adjust all callers.
10264
10265 2004-03-19 Andrew Cagney <cagney@redhat.com>
10266
10267 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
10268
10269 * PROBLEMS: Delete note that ARM does not use frame code, problem
10270 fixed.
10271
10272 2004-03-18 Andrew Cagney <cagney@redhat.com>
10273
10274 * stack.c (return_command): Delete code wrapped in #ifdef
10275 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
10276
10277 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
10278
10279 2004-03-18 Andrew Cagney <cagney@redhat.com>
10280
10281 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
10282 DEPRECATED_IN_SIGTRAMP.
10283 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10284 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
10285 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10286 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10287 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10288 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10289 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10290 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10291 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
10292 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
10293
10294 2004-03-18 Andrew Cagney <cagney@redhat.com>
10295
10296 * frame-base.c: Update copyright. Include "gdb_obstack.h".
10297 (struct frame_base_table_entry): Define.
10298 (struct frame_base_table): Re-implement as a linked list.
10299 (frame_base_init): Re-implement.
10300 (frame_base_table): Delete function.
10301 (append_predicate): Delete function.
10302 (frame_base_append_sniffer): Update.
10303 (frame_base_set_default): Update.
10304 (frame_base_find_by_frame): Update.
10305 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
10306 * Makefile.in (frame-base.o): Update dependencies.
10307
10308 2004-03-17 Andrew Cagney <cagney@redhat.com>
10309
10310 * frame.c (legacy_get_prev_frame): Pass correct frame to
10311 frame_unwind_find_by_frame.
10312
10313 2004-03-17 David Carlton <carlton@kealia.com>
10314
10315 * NEWS: Mention C++ nested types and namespaces
10316
10317 2004-03-16 Michael Chastain <mec.gnu@mindspring.com>
10318
10319 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
10320 and "Regressions since gdb 5.3.". Add known regressions since
10321 gdb 6.0.
10322
10323 2004-03-16 David Carlton <carlton@kealia.com>
10324
10325 * dwarf2read.c (process_structure_scope): Process children even
10326 when we're a declaration.
10327
10328 2004-03-16 Andrew Cagney <cagney@redhat.com>
10329
10330 * symtab.h (find_pc_sect_partial_function): Delete declaration.
10331 * blockframe.c (find_pc_partial_function)
10332 (find_pc_sect_partial_function): Merge into a single
10333 find_pc_partial_function.
10334
10335 2004-03-16 Mark Kettenis <kettenis@gnu.org>
10336
10337 * i386bsd-nat.c: s/regno/regnum/g.
10338 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
10339 FP0_REGNUM.
10340 (store_inferior_registers): Likewise.
10341
10342 2004-03-16 Mark Kettenis <kettenis@gnu.org>
10343
10344 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
10345 of i387_fill_fsave.
10346 (store_inferior_registers): Call i387_collect_fsave and
10347 i387_collect_fxsave instead of i387_fill_fsave and
10348 i387_fill_fxsave.
10349
10350 2004-03-15 Andrew Cagney <cagney@redhat.com>
10351
10352 * Makefile.in (frame-unwind.o): Update dependencies.
10353 * frame-unwind.c: Include "gdb_obstack.h".
10354 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
10355 parameter.
10356 (append_predicate): Delete function.
10357 (struct frame_unwind_table_entry): New structure.
10358 (struct frame_unwind_table): Replace "sniffer" with "head" and
10359 "tail".
10360 (frame_unwind_append_sniffer): Update.
10361 (frame_unwind_find_by_frame): Update.
10362 (_initialize_frame_unwind): Registe frame_unwind_init using
10363 gdbarch_data_register_pre_init.
10364
10365 2004-03-15 Mark Kettenis <kettenis@gnu.org>
10366
10367 * i386bsd-nat.c: Update copyright year.
10368 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
10369 define unconditionally.
10370
10371 2004-03-15 Mark Kettenis <kettenis@gnu.org>
10372
10373 * i387-tdep.h (i387_collect_fsave): New prototype.
10374 * i387-tdep.c (i387_collect_fsave): New function containing most
10375 of the code from i387_fill_fsave.
10376 (i387_fill_fsave): Call i387_collect_fsave.
10377
10378 2004-03-15 Mark Kettenis <kettenis@gnu.org>
10379
10380 * i386-linux-tdep.c: Update copyright year.
10381 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
10382 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
10383 svr4_ilp32_link_map_offsets instead of
10384 i386_linux_svr4_fetch_link_map_offsets.
10385
10386 2004-03-15 David Carlton <carlton@kealia.com>
10387
10388 Fix for PR c++/1553:
10389 * dwarf2read.c (read_structure_type): Determine type name by
10390 calling determine_class_name.
10391 (determine_class_name): New.
10392 (determine_prefix): Look at TYPE_TAG_NAME and call
10393 determine_class_name when appropriate.
10394 (determine_prefix_aux, class_name): Delete.
10395 (read_namespace): Set die->type.
10396
10397 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10398
10399 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
10400 unused macro definition. The definition in target.h (or perhaps
10401 elsewhere) takes precedence.
10402
10403 2004-03-15 Andrew Cagney <cagney@redhat.com>
10404
10405 * ppc-tdep.h: Update copyright.
10406 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
10407 function signatures to match "regsets.h".
10408 * ppc-linux-tdep.c: Include "regset.h".
10409 (ELF_GREGSET_SIZE): Delete.
10410 (right_supply_register): New function.
10411 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
10412 using right_supply_register.
10413 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
10414 functions.
10415 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
10416 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
10417 (_initialize_ppc_linux_tdep): Do not register
10418 ppc_linux_regset_core_fns.
10419 (ppc_linux_regset_from_core_section): Replace
10420 fetch_core_registers.
10421 (ppc_linux_regset_core_fns): Delete.
10422 * ppc-linux-nat.c: (right_fill_reg): New function.
10423 (supply_gregset): Update call to ppc_linux_supply_gregset.
10424 (fill_gregset): Clear the register set, use right_fill_reg.
10425 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
10426 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
10427
10428 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
10429 unsigned.
10430
10431 2004-03-15 Andrew Cagney <cagney@redhat.com>
10432
10433 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
10434 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
10435 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
10436 and register_gdbarch_data.
10437 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
10438 (struct gdbarch_data): Replace "init" by "pre_init" and
10439 "post_init".
10440 * gdbarch.h, gdbarch.c: Re-generate.
10441 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
10442 with"obstack", use OBSTACK_ZALLOC.
10443 (dwarf2_frame_ops): Delete.
10444 (dwarf2_frame_set_init_reg): Use gdbarch_data.
10445 (dwarf2_frame_init_reg): Use gdbarch_data.
10446 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
10447 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
10448 (_initialize_svr4_solib): Update.
10449 * user-regs.c (_initialize_user_regs): Update.
10450 * reggroups.c (_initialize_reggroup): Update.
10451 * regcache.c (_initialize_regcache): Update.
10452 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
10453 * libunwind-frame.c (_initialize_libunwind_frame): Update.
10454 * gnu-v3-abi.c (init_gnuv3_ops): Update.
10455 * frame-unwind.c (_initialize_frame_unwind): Update.
10456 * frame-base.c (_initialize_frame_base): Update.
10457 * user-regs.c (user_reg_add): Update.
10458 * reggroups.c (reggroup_add): Update.
10459 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
10460 * libunwind-frame.c (libunwind_frame_set_descr): Update.
10461 * frame-unwind.c (frame_unwind_append_sniffer): Update.
10462 * frame-base.c (frame_base_table): Update.
10463 * remote.c (_initialize_remote): Update.
10464 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
10465
10466 2004-03-15 Andrew Cagney <cagney@redhat.com>
10467
10468 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
10469
10470 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10471
10472 * Makefile.in (frv-linux-tdep.o): Add dependencies.
10473 * frv-linux-tdep.c: New file.
10474 * frv-tdep.c (struct gdbarch_tdep): Add new field
10475 ``sigcontext_reg_addr''.
10476 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
10477 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
10478 (frv_sigramp_frame_sniffer): New functions.
10479 (frv_sigtramp_frame_unwind): New static global.
10480 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
10481 sniffers.
10482 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
10483 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
10484
10485 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10486
10487 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
10488 but not via a call to error(), when unable to read memory.
10489
10490 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10491
10492 * frv-tdep.c (frv_call_dummy_words): Delete.
10493 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
10494
10495 2004-03-15 Andrew Cagney <cagney@redhat.com>
10496
10497 * infrun.c (handle_step_into_function, step_over_function): Only
10498 update and use STEP_FRAME_ID when the system is using legacy
10499 frames. Update comments.
10500
10501 2004-03-14 Mark Kettenis <kettenis@gnu.org>
10502
10503 * amd64-linux-tdep.h: Remove file.
10504 * amd64-linux-tdep.c: Don't include "inferior.h" and
10505 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
10506 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
10507 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
10508 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
10509 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
10510 macros.
10511 (user_to_gdb_regmap): Remove variable.
10512 (amd64_linux_gregset_reg_offset): New variable.
10513 (amd64_core_fns): Remove variable.
10514 (fetch_core_registers): Remove function.
10515 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
10516 functions.
10517 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
10518 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
10519 * Makefile.in (amd64_linux_tdep_h): Remove.
10520 (amd64-linux-nat.o): Update dependencies.
10521 (amd64-linux-tdep.o): Update dependencies.
10522
10523 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
10524 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
10525 functions.
10526 (fetch_inferior_registers, store_inferior_registers): Rewrite.
10527
10528 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
10529 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
10530
10531 2004-03-14 Daniel Jacobowitz <drow@mvista.com>
10532
10533 * dwarf2read.c (read_structure_type): Rename from
10534 read_structure_scope. Don't create a symbol or call process_die.
10535 Return immediately if die->type is set. Call read_type_die before
10536 dwarf2_add_member_fn.
10537 (process_structure_scope): New function.
10538 (read_enumeration_type, process_enumeration_scope): New functions,
10539 broken out from read_enumeration. Don't create the enumeration
10540 type if it has already been created.
10541 (read_enumeration): Removed.
10542 (process_die): Call read_structure_type, process_structure_scope,
10543 read_enumeration_type, and process_enumeration_scope. Just call
10544 new_symbol for base and subrange types. Add a comment about other
10545 type dies.
10546 (read_type_die): Call read_enumeration_type.
10547 (add_partial_structure, new_symbol): Update comments.
10548
10549 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
10550
10551 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
10552
10553 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
10554
10555 * tui/tui-win.h (tui_get_cmd_list): Declare.
10556 * tui/tui-win.c (tui_command): New function.
10557 (tui_get_cmd_list): New function.
10558 (_initialize_tui_win): Moved initialization of tui command in
10559 tui_get_cmd_list.
10560
10561 * tui/tui-data.c (init_content_element): Setup new data members.
10562 (init_win_info): Likewise.
10563 (free_content_elements): Free it.
10564 * tui/tui-data.h (struct tui_data_element): Store the register
10565 content to print.
10566 (struct tui_data_info): Keep the current register group.
10567
10568 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
10569
10570 * tui/tui-regs.h (tui_show_registers): Update prototype.
10571 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
10572 (tui_resize_all): No need to calculate anything for register window.
10573 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
10574 (tui_set_register_element, tui_set_general_regs_content): Remove.
10575 (tui_set_special_regs_content): Remove.
10576 (tui_set_general_and_special_regs_content): Remove.
10577 (tui_set_float_regs_content): Remove.
10578 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
10579 (tui_set_regs_content): Remove.
10580 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
10581 (tui_v_show_registers_command_support): Remove.
10582 (tui_show_registers): Use a reggroup to specify the registers to show.
10583 (tui_show_register_group): New function.
10584 (tui_display_registers_from): Compute the layout of register window
10585 and refresh with new API; be sure to delete old register windows.
10586 (tui_check_register_values): Update to use tui_get_register and
10587 tui_display_data.
10588 (tui_display_register): Just refresh the register window part.
10589 (tui_register_format): Format registers and save in tui_data_element.
10590 (tui_get_register): New to combine tui_reg_value_has_changed and
10591 tui_get_register_raw_value; fix to use the new gdb API.
10592 (tui_show_float_command): Renamed tui_reg_float_command.
10593 (tui_show_general_command): Renamed tui_reg_general_command.
10594 (tui_show_special_command): Renamed tui_reg_system_command.
10595 (_initialize_tui_regs): Remove unused commands.
10596
10597 2004-03-13 Mark Kettenis <kettenis@gnu.org>
10598
10599 * NEWS (New native configurations): Mention OpenBSD/amd64.
10600
10601 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
10602 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
10603 Remove defines.
10604 * config/i386/nm-fbsd64.h: Likewise.
10605 * config/i386/nm-obsd.h: Likewise.
10606 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
10607 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
10608
10609 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10610
10611 * frv-tdep.c (set_variant_scratch_registers): New function.
10612 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
10613 New constants.
10614
10615 From Richard Sandiford <rsandifo@redhat.com>:
10616 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
10617
10618 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10619
10620 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
10621 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
10622 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
10623 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
10624 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
10625 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
10626 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
10627 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
10628 definitions from frv-tdep.c to frv-tdep.h.
10629
10630 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10631
10632 Add shared library support for FR-V FDPIC ABI:
10633 * Makefile.in (solib-frv.o): Add dependencies.
10634 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
10635 New functions.
10636 (frv_push_dummy_call): Add support for FDPIC ABI.
10637 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
10638 for FDPIC ABI.
10639 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
10640 (frv_fdpic_find_canonical_descriptor): Declare.
10641 * solib-frv.c: New file.
10642 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
10643 * config/frv/tm-frv.h (solib.h): Include.
10644
10645 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10646
10647 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
10648 (frv-tdep.o): Update dependencies.
10649 * frv-tdep.h: New file.
10650 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
10651 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
10652 constants.
10653 (struct gdbarch_tdep): Add new member ``frv_abi''.
10654 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
10655 functions.
10656 (new_variant): Set ``frv_abi'' field.
10657 (gdb_arch_init): Detect FDPIC executables.
10658
10659 2004-03-12 Mark Kettenis <kettenis@gnu.org>
10660
10661 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
10662 wrapper.
10663
10664 2004-03-11 Andrew Cagney <cagney@redhat.com>
10665
10666 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
10667
10668 2004-03-11 Kevin Buettner <kevinb@redhat.com>
10669
10670 * solist.h (master_so_list): New function.
10671 * solib.c (master_so_list): Likewise.
10672 * solib-svr4.c (enable_break): Iterate over so_list entries
10673 obtained from master list instead of entries obtained directly
10674 via svr4_current_sos().
10675
10676 2004-03-10 Ben Elliston <bje@gnu.org>
10677
10678 * MAINTAINERS: Update my mail address.
10679
10680 2004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
10681
10682 * remote-m32r-sdi.c: Support hardware watchpoint.
10683
10684 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10685
10686 * user-regs.c: Update copyright years.
10687 (struct user_regs): Rename to gdb_user_regs.
10688 (append_user_reg, builtin_user_regs, user_regs_init)
10689 (user_reg_add, user_reg_map_name_to_regnum)
10690 (usernum_to_user_reg): Update.
10691
10692 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10693
10694 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
10695 (skip_children): New functions.
10696 (locate_pdi_sibling): Call skip_children.
10697
10698 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10699
10700 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
10701 * gdbtypes.c (check_typedef): Update comments.
10702
10703 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10704
10705 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
10706 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
10707 pointer. Update comment about comp_unit_head.
10708 (struct abbrev_info): Shorten two int flags.
10709 (dwarf_alloc_abbrev): Take a CU argument.
10710 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
10711 each time through the loop. Update cleanup argument.
10712 (psymtab_to_symtab_1): Update cleanup call.
10713 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
10714 abbrev_obstack.
10715 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
10716 Just call obstack_free and clear the pointer.
10717
10718 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10719
10720 * infrun.c (handle_inferior_event): Remove short-circuit code for
10721 events in a different thread.
10722
10723 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10724
10725 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
10726 print the whole transfer.
10727 (initialize_targets): Update description of "set debug target".
10728
10729 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10730
10731 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
10732
10733 2004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
10734
10735 * MAINTAINERS (write after approval): Add myself.
10736
10737 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
10738
10739 * sh-tdep.c (sh_print_registers_info): Use for loop.
10740 Don't skip multiple registers when a float register is encountered.
10741
10742 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
10743
10744 Fix PR tdep/1291.
10745 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
10746 to official SH documentation.
10747
10748 2004-03-07 Andrew Cagney <cagney@redhat.com>
10749
10750 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
10751 unused function.
10752
10753 2004-03-07 Daniel Jacobowitz <drow@mvista.com>
10754
10755 * arm-tdep.c (thumb_get_next_pc): Handle BX.
10756 (arm_get_next_pc): Handle BX and BLX.
10757
10758 2004-03-07 Andrew Cagney <cagney@redhat.com>
10759
10760 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
10761 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
10762 HPPA_SP_REGNUM.
10763 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
10764 (hppa_target_read_fp): Delete.
10765 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
10766 register_virtual_size, max_register_raw_size,
10767 max_register_virtual_size, register_byte, register_size,
10768 target_read_fp, fp_regnum, and register_bytes. Set register_type
10769 instead of register_virtual_type.
10770 (hppa32_register_type, hppa64_register_type): Replace
10771 hppa32_register_virtual_type and hppa64_register_virtual_type.
10772 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
10773 (HPPA_FP_REGNUM): Define.
10774
10775 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
10776
10777 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
10778 (pa_do_registers_info): Delete.
10779 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
10780 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
10781 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
10782
10783 * infcall.c (legacy_push_dummy_code): Delete #ifdef
10784 GDB_TARGET_IS_HPPA code.
10785 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
10786 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
10787 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
10788 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
10789 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
10790 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
10791 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
10792 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
10793 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
10794 (hppa_frameless_function_invocation, hppa64_store_return_value)
10795 (hppa_store_struct_return, hppa64_extract_return_value)
10796 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
10797 (hppa32_call_dummy_length, hppa64_call_dummy_length)
10798 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
10799 (find_proc_framesize, deposit_21, restore_pc_queue)
10800 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
10801 (rp_saved, pc_in_linker_stub): Delete.
10802
10803 Unconditionally enable 64-bit frame and ABI code.
10804 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
10805 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
10806 push_dummy_frame, fix_call_dummy, push_arguments,
10807 call_dummy_location, extract_return_value, use_struct_convention,
10808 store_return_value, store_struct_return, saved_pc_after_call,
10809 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
10810 frame_chain, frame_chain_valid, frameless_function_invocation,
10811 frame_saved_pc, and pop_frame.
10812
10813 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
10814 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
10815 (hppa_gdbarch_init): Do not set PC_REGNUM.
10816
10817 2004-03-06 Mark Kettenis <kettenis@gnu.org>
10818
10819 * config/alpha/tm-fbsd.h: Remove file.
10820 * config/alpha/fbsd.mt: Tweak comment.
10821 (TM_FILE): Set to tm-alpha.h.
10822
10823 2004-03-05 Andrew Cagney <cagney@redhat.com>
10824
10825 * infrun.c (step_over_function): When non-legacy code, and no
10826 step_frame_id, use the unwinder to get the caller's frame ID.
10827
10828 2004-03-05 Mark Kettenis <kettenis@gnu.org>
10829
10830 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
10831 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
10832 bfd_arch_unknown. Adjust comment.
10833
10834 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
10835 * i386obsd-tdep.c: Correct spelling in comment.
10836 * i386nbsd-tdep.c: Correct spelling in comment.
10837 * sparc-tdep.c: Correct spelling in comments.
10838
10839 2004-03-05 David Carlton <carlton@kealia.com>
10840
10841 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
10842 bug.
10843
10844 2004-03-05 Mark Kettenis <kettenis@gnu.org>
10845
10846 * sparc-tdep.c: Fix typo in comment.
10847
10848 2004-03-04 J. Brobecker <brobecker@gnat.com>
10849
10850 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
10851
10852 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
10853
10854 * dwarf2read.c: Add comment describing memory lifetimes.
10855 (struct dwarf2_pinfo): Update comment.
10856 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
10857 (read_enumeration, new_symbol): Don't use obsavestring.
10858
10859 2004-03-04 Mark Kettenis <kettenis@gnu.org>
10860
10861 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
10862 instead of amd64_fill_fxsave.
10863 * amd64bsd-nat.c (store_inferior_registers): Likewise.
10864 * amd64fbsd-nat.c (fill_fpregset): Likewise.
10865
10866 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
10867 Reorganize code a bit.
10868
10869 2004-03-04 Orjan Friberg <orjanf@axis.com>
10870
10871 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
10872 when the frame pointer is pushed. Don't set the frame pointer's
10873 address on the stack unless it's actually located there.
10874 Set the SRP's address on the stack correctly when the PC is still in
10875 the prologue.
10876 (cris_return_value): New function.
10877 (cris_gdbarch_init): Clear deprecated store_return_value,
10878 extract_return_value.
10879
10880 2004-03-02 Jim Blandy <jimb@redhat.com>
10881
10882 * stabsread.c (reg_value_complaint): The maximum register number
10883 is one less than the number of registers.
10884
10885 2004-03-02 Andrew Cagney <cagney@redhat.com>
10886
10887 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
10888 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
10889 trailing comma and redundant assignment of I386_ST0_REGNUM.
10890 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
10891 32-bit segment registers.
10892
10893 2004-03-01 Andrew Cagney <cagney@redhat.com>
10894
10895 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
10896 use frame_relative_level and get_next_frame.
10897
10898 2004-02-29 Andrew Cagney <cagney@redhat.com>
10899
10900 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
10901 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
10902 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
10903 Delete macro.
10904
10905 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
10906
10907 * inflow.c (terminal_inferior): Don't give up the terminal if we
10908 previously couldn't get the inferior's terminal state.
10909
10910 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
10911
10912 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
10913 PC_REGNUM.
10914
10915 2004-02-28 Andrew Cagney <cagney@redhat.com>
10916
10917 * NEWS: Refer to GDB 6.1.
10918 * README: Refer to GDB 6.1.
10919 * PROBLEMS: Refer to GDB 6.1.
10920
10921 2004-02-28 Daniel Jacobowitz <drow@mvista.com>
10922
10923 * thread-db.c (disable_thread_signals): Remove unused function.
10924
10925 2004-02-28 Mark Kettenis <kettenis@gnu.org>
10926
10927 * amd64-nat.c: Include "gdb_string.h".
10928 (amd64_collect_native_gregset): Zero-extend the 32-bit
10929 general-purpose registers and %eip.
10930
10931 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
10932 * amd64-tdep.c (amd64_collect_fxsave): New function.
10933 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
10934
10935 * i387-tdep.h: Update copyright year.
10936 (i387_collect_fxsave): New prototype.
10937 * i387-tdep.c: Update copyright year.
10938 (i387_collect_fxsave): New function containing most of the code
10939 from i387_fill_fxsave.
10940 (i387_fill_fxsave): Call i387_collect_fxsave.
10941
10942 2004-02-28 Andrew Cagney <cagney@redhat.com>
10943
10944 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
10945 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
10946
10947 2004-02-28 Mark Kettenis <kettenis@gnu.org>
10948
10949 * amd64-tdep.c (amd64_frame_cache): Fix comment.
10950
10951 2004-02-28 Andrew Cagney <cagney@redhat.com>
10952
10953 * utils.c: Use "", instead of <>, to include readline.
10954 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
10955 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
10956 * source.c, solib.c, exec.c, event-top.c: Ditto.
10957 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
10958 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
10959 * Makefile.in: Update all dependencies.
10960 (readline_tilde_h, readline_history_h): Define.
10961 (readline_headers): Delete.
10962
10963 2004-02-28 Mark Kettenis <kettenis@gnu.org>
10964
10965 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
10966 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
10967 "config/i386/tm-lx64.h".
10968
10969 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
10970 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
10971 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
10972
10973 2004-02-28 Andrew Cagney <cagney@redhat.com>
10974
10975 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
10976
10977 * breakpoint.c (_initialize_breakpoint): Use
10978 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
10979 Add help to show command.
10980
10981 2004-02-28 Mark Kettenis <kettenis@gnu.org>
10982
10983 * i386-nat.c: Reformat to be closer to coding standards.
10984 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
10985 `retval'. Make variables `align' and `size' local to while-loop.
10986 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
10987 (_initialize_i386_nat): New prototype.
10988
10989 * tui/tui.c: Include <readline/readline.h> instead of
10990 "readline/readline.h". Include it after <term.h> and
10991 "gdb_curses.h".
10992
10993 2004-02-27 Andrew Cagney <cagney@redhat.com>
10994
10995 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
10996 the new frame unwind code.
10997 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
10998 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
10999 PCOQ_HEAD_REGNUM.
11000
11001 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
11002 "return_value" and "push_dummy_call".
11003 (hppa32_use_struct_convention): Delete unused function.
11004 (hppa32_store_return_value): Delete unused function.
11005 (hppa32_extract_return_value): Delete unused function.
11006 (hppa32_stack_align): Delete function.
11007
11008 2004-02-27 Eli Zaretskii <eliz@elta.co.il>
11009
11010 * coffread.c (enter_linenos): Don't let rawptr reference memory
11011 outside linetab[]'s limits.
11012
11013 2004-02-27 Andrew Cagney <cagney@redhat.com>
11014
11015 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
11016 inferior stack space - the stack needs to grow upwards.
11017 (hppa32_frame_align): New function.
11018 (hppa64_frame_align): Replace hppa_frame_align.
11019 (hppa_gdbarch_init): Update.
11020
11021 2004-02-26 Orjan Friberg <orjanf@axis.com>
11022
11023 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
11024 (dwarf2-frame.h): Include.
11025 (enum cris_regnums): New enum CRIS_FP_REGNUM.
11026 Remove static variables related to ABI setting.
11027 (struct gdbarch_tdep): Remove cris_abi member.
11028 (struct frame_extra_info): Remove.
11029 (cris_unwind_cache, stack_item): New structs.
11030 (cris_frame_unwind, cris_frame_base): New variables.
11031 (push_stack_item, pop_stack_item)
11032 (cris_frame_unwind_cache, cris_frame_this_id)
11033 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
11034 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
11035 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
11036 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
11037 (cris_reg_struct_has_addr): New functions.
11038 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
11039 (cris_frame_saved_pc, cris_saved_pc_after_call,
11040 (cris_store_struct_return, cris_frameless_function_invocation)
11041 (cris_pop_frame, cris_skip_prologue_main)
11042 (cris_abi_original_store_return_value)
11043 (cris_abi_v2_store_return_value)
11044 (cris_abi_original_extract_return_value)
11045 (cris_abi_v2_extract_return_value)
11046 (cris_abi_original_reg_struct_has_addr)
11047 (cris_abi_v2_reg_struct_has_addr)
11048 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
11049 (cris_push_return_address, cris_abi_update): Remove.
11050 (_initialize_cris_tdep): Remove ABI command.
11051 (cris_dump_tdep): Ditto.
11052 (cris_gdbarch_init): Remove ABI command.
11053 Set store_return_value, extract_return_value, push_dummy_code,
11054 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
11055 frame_unwind_append_sniffer, frame_base_set_default.
11056 Clear deprecated init_frame_pc, push_arguments, store_return_value,
11057 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
11058 sizeof_call_dummy_words, get_saved_register, push_return_address,
11059 pop_frame, store_struct_return, frame_init_saved_regs,
11060 init_extra_frame_info, frameless_function_invocation, frame_chain,
11061 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
11062 dummy_write_sp.
11063
11064 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
11065
11066 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
11067 * valprint.c (print_hex_chars): Change from static to external.
11068 (print_char_chars): New function.
11069 * printcmd.c (print_scalar_formatted): For integer and enum types
11070 that are longer than LONGEST, perform processing via appropriate
11071 print_*_chars routines.
11072
11073 2004-02-26 Andrew Cagney <cagney@redhat.com>
11074
11075 * Makefile.in: Update dependencies.
11076 Changes from Ulrich Weigand,
11077 * s390-tdep.c: Include "dwarf2-frame.h".
11078 (s390_dwarf2_frame_init_reg): New function.
11079 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
11080 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
11081
11082 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
11083
11084 * breakpoint.c (pending_break_support): New setting variable.
11085 (break_command_1): Account for pending_break_support setting
11086 when creating pending breakpoints.
11087 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
11088 (_initialize_breakpoint): Add "set breakpoint pending" and
11089 "show breakpoint pending" commands.
11090
11091 2004-02-26 Andrew Cagney <cagney@redhat.com>
11092
11093 Fix PR i18n/1570.
11094 * charset.c (backslashable, backslashed, represented): Remove 'e'
11095 from list of escaped characters, not part of ISO-C.
11096
11097 2004-02-25 J. Brobecker <brobecker@gnat.com>
11098
11099 From Peter Schauer <schauer@pdf.de>:
11100 * tui/tui.c: Move system header includes after local includes.
11101 Fixes a build failure on solaris systems.
11102
11103 2004-02-25 J. Brobecker <brobecker@gnat.com>
11104
11105 * configure.in: Refine the previous change.
11106 * configure: Regenerate.
11107
11108 2004-02-25 Mark Kettenis <kettenis@gnu.org>
11109
11110 * amd64-tdep.h: Renamed from x86-64-tdep.h.
11111 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
11112 "amd64-tdep.h" instead of "x86-64-tdep.h".
11113 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
11114 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
11115 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
11116 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
11117 and "x86-64-tdep.c".
11118 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
11119 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
11120 and "x86-64-tdep.c".
11121 * amd64bsd-nat.c: Update copyright year.
11122 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
11123 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
11124 "x86-64-tdep.h".
11125 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
11126 "x86-64-tdep.h".
11127 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
11128 "x86-64-tdep.h".
11129 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
11130 "x86-64-tdep.h".
11131 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
11132 "x86-64-tdep.h".
11133 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
11134 "x86-64-tdep.h".
11135 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
11136 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
11137 * Makefile.in (amd64_linux_tdep_h): Renamed from
11138 x86_64_linux_tdep_h.
11139 (amd64_tdep_h): Renamed from x86_64_tdep_h.
11140 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
11141 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
11142 (amd64obsd-tdep.o): Update dependencies.
11143 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
11144 dependencies.
11145 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
11146 dependencies.
11147 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
11148 amd64-linux-nat.c amd64-linux-tdep.c.
11149 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
11150 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
11151 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
11152 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
11153 amd64-tdep.o and amd64-linux-tdep.o.
11154 (TM_FILE): Set to tm-linux64.h.
11155 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
11156 (NAT_FILE): Set to nm-linux64.h.
11157 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
11158 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11159 amd64-tdep.o.
11160 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11161 amd64-tdep.o.
11162 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11163 amd64-tdep.o.
11164
11165 2004-02-25 Roland McGrath <roland@redhat.com>
11166
11167 * remote.c (remote_protocol_qPart_auxv): New variable.
11168 (init_all_packet_configs): Initialize it.
11169 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
11170 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
11171 (show_remote_cmd): Call it.
11172 (_initialize_remote): Initialize commands.
11173 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
11174 service TARGET_OBJECT_AUXV requests.
11175
11176 2004-02-25 J. Brobecker <brobecker@gnat.com>
11177
11178 * configure.in: Make sure that the wborder function is available.
11179 Otherwise, search for it in the cur_colr library.
11180 * configure: Regenerate.
11181
11182 2004-02-25 Andrew Cagney <cagney@redhat.com>
11183
11184 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
11185
11186 2004-02-25 Mark Kettenis <kettenis@gnu.org>
11187
11188 * config/i386/tm-x86-64linux.h: Tweak comments.
11189
11190 2004-02-25 Richard Sandiford <rsandifo@redhat.com>
11191
11192 * MAINTAINERS: Add self to write-after-approval list.
11193
11194 2004-02-25 Andrew Cagney <cagney@redhat.com>
11195
11196 PR cli/1566. Problem found, and fix suggested by David Allan.
11197 * cli/cli-script.c (execute_control_command): Unconditionally
11198 install a cleanup. Default "ret" to "invalid_control". Use
11199 "break" instead of "return" to escape from the switch.
11200
11201 2004-02-24 J. Brobecker <brobecker@gnat.com>
11202
11203 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
11204 with the lines macro defined in term.h on AiX.
11205 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
11206 a collision with the label_width macro defined in term.h on AiX.
11207
11208 2004-02-23 David Mosberger <davidm@hpl.hp.com>
11209
11210 Committed by Kevin Buettner <kevinb@redhat.com>.
11211
11212 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
11213 * ia64-tdep.c (ia64_write_pc): Make it a global function.
11214 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
11215 instead of ia64_write_pc().
11216 * ia64-linux-tdep.c (regcache.h): Include.
11217 (ia64_linux_write_pc): New function.
11218
11219 2004-02-23 Roland McGrath <roland@redhat.com>
11220
11221 * auxv.c (info_auxv_command): Fix typos in error messages.
11222
11223 2004-02-23 Mark Kettenis <kettenis@gnu.org>
11224
11225 * x86-64-tdep.h: Tweak comment.
11226 (enum amd64_regnum): New.
11227 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
11228 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
11229 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
11230 (X86_64_XMM1_REGNUM): Removed.
11231 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
11232 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
11233 prototypes for renamed functions.
11234 * x86-64-tdep.c: Fix typo.
11235 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
11236 register numbers.
11237 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
11238 Use constants from `enum amd64_regnum' for register numbers.
11239 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
11240 (amd64_analyze_prologue, amd64_frame_cache,
11241 amd64_sigtramp_frame_cache): Use constants from `enum
11242 amd64_regnum' for register numbers.
11243 (amd64_supply_fpregset): Adjust for renamed functions.
11244 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
11245 `enum amd64_regnum' for register numbers.
11246 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
11247 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
11248 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
11249 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
11250 (amd64_linux_fill_gregset): Adjust for renamed macros.
11251 (fetch_core_registers): Adjust for renamed functions.
11252 (amd64_linux_init_abi): Adjust for renamed functions.
11253 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
11254 renamed functions.
11255 * amd64-nat.c: Adjust for renamed macros.
11256 * amd64bsd-nat.c (fetch_inferior_registers)
11257 (store_inferior_registers): Use constants from `enum amd64_regnum'
11258 for register numbers. Adjust for renamed variables.
11259 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
11260 renamed variables.
11261 (_initialize_amd64fbsd_nat): Use constants from `enum
11262 amd64_regnum' for register numbers.
11263 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
11264 `enum amd64_regnum' for register numbers.
11265 (amd64fbsd_init_abi): Adjust for renamed functions.
11266 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
11267 `enum amd64_regnum' for register numbers.
11268 (amd64nbsd_init_abi): Adjust for renamed functions.
11269 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
11270 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
11271 `enum amd64_regnum' for register numbers.
11272 (amd64obsd_init_abi): Adjust for renamed functions.
11273 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
11274
11275 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11276
11277 * breakpoint.c (print_one_breakpoint): Do not output spaces
11278 after printing <PENDING> for a pending breakpoint.
11279
11280 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11281
11282 * printcmd.c (print_scalar_formatted): Initialize val_long
11283 to remove compiler warning message.
11284
11285 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11286
11287 * defs.h (nquery, yquery): New prototypes.
11288 * breakpoint.c (break_command_1): Use new nquery interface.
11289 * utils.c (defaulted_query, nquery, yquery): New functions.
11290
11291 2004-02-23 Andrew Cagney <cagney@redhat.com>
11292
11293 * hppa-tdep.c (hppa_frame_align): New function.
11294 (hppa32_push_dummy_call): New function.
11295 (hppa64_push_dummy_call): New function.
11296 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
11297 disabled.
11298
11299 * infcall.c (legacy_push_dummy_code): Don't call deprecated
11300 FIX_CALL_DUMMY when push_dummy_call is available.
11301 (call_function_by_hand, push_dummy_code): Ditto.
11302
11303 2004-02-22 Andrew Cagney <cagney@redhat.com>
11304
11305 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
11306 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
11307 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
11308 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
11309 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
11310 call_dummy_location to ON_STACK.
11311
11312 2004-02-22 Mark Kettenis <kettenis@gnu.org>
11313
11314 * x86-64-linux-tdep.c: Tweak comment.
11315 (amd64_linux_supply_gregset): Renamed from
11316 x86_64_linux_supply_gresget.
11317 (amd64_linux_fill_gregset): Renamed from
11318 x86_64_linux_fill_gregset.
11319 (fetch_core_registers): Adjust for renamed functions.
11320 (amd64_core_fns): Renamed from x86_64_core_fns.
11321 (amd64_linux_sigtramp_start): Renamed from
11322 x86_64_linux_sigtramp_start.
11323 (amd64_linux_pc_in_sigtramp): Renamed from
11324 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
11325 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
11326 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
11327 (amd64_linux_sigcontext_addr): Renamed from
11328 x86_64_linux_sigcontext_addr.
11329 (amd64_linux_sc_reg_offset): Renamed from
11330 x86_64_linux_sc_reg_offset.
11331 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
11332 Adjust for renamed functions and variables.
11333 (_initialize_amd64_linux_tdep): Renamed from
11334 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
11335 variables.
11336 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
11337 Adjust for renamed functions.
11338
11339 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
11340 from x86_64_linux_gregset64_reg_offset.
11341 (amd64_linux_gregset32_reg_offset): Rename from
11342 x86_64_linux_gregset64_reg_offset.
11343 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
11344 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
11345 (amd64_linux_dr_set_control): Renamed from
11346 x86_64_linux_dr_set_control. Adjust for renamed functions.
11347 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
11348 Adjust for renamed functions.
11349 (amd64_linux_dr_reset_addr): Renamed from
11350 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
11351 (amd64_linux_dr_get_status): Renamed from
11352 x86_64_linux_dr_get_status. Adjust for renamed functions.
11353 (_initialize_amd64_linux_nat): Renamed from
11354 _initialize_x86_64_linux_nat. Adjust for renamed variables and
11355 functions.
11356 * config/i386/nm-x86-64linux.h: Update copyright year.
11357 Adjust for renamed functions.
11358
11359 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
11360 amd64fbsd_sigtramp_start.
11361 (amd64fbsd_sigtramp_end_addr): Renamed from
11362 amd64fbsd_sigtramp_end.
11363 (amd64fbsd_init_abi): Adjust for renamed variables.
11364 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
11365 variables.
11366 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
11367 amd64fbsd_sigtramp_start.
11368 (amd64fbsd_sigtramp_end_addr): Renamed from
11369 amd64fbsd_sigtramp_end.
11370
11371 2004-02-22 Andrew Cagney <cagney@redhat.com>
11372
11373 * hppa-tdep.c (hppa32_return_value): New function.
11374 (hppa64_return_value): New function.
11375 (hppa_gdbarch_init): Set return_value; keep disabled.
11376
11377 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
11378 struct-return and inferior function call methods.
11379
11380 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
11381 "frame-base.h".
11382 (struct hppa_frame_cache): Define.
11383 (hppa_frame_cache, hppa_frame_this_id): New functions.
11384 (hppa_frame_prev_register): New function.
11385 (hppa_frame_unwind, hppa_frame_base): New variables.
11386 (hppa_frame_unwind_sniffer): New function.
11387 (hppa_frame_base_address, hppa_unwind_pc): New function.
11388 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
11389 sniffer, and frame base sniffer; keep disabled.
11390 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
11391 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
11392
11393 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
11394 to predicates for "seriously old code".
11395
11396 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
11397 runtime if(0).
11398
11399 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
11400 unsigned.
11401 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
11402
11403 * config/pa/tm-hppa.h: Update copyright.
11404 (DEPRECATED_INIT_FRAME_PC): Delete macro.
11405 (deprecated_init_frame_pc_default): Delete declaration.
11406 (hppa_frame_init_saved_regs): Delete declaration.
11407 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
11408 * hppa-tdep.c: Include "arch-utils.h".
11409 (hppa_gdbarch_init): Set deprecated init_frame_pc
11410 and deprecated frame_init_saved_regs.
11411 (hppa_frame_init_saved_regs): Make static.
11412
11413 2004-02-22 Mark Kettenis <kettenis@gnu.org>
11414
11415 Remove old 386BSD support.
11416 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
11417 * configure.host: Remove i[34567]86-*-bsd*.
11418 * configure.tgt: Remove i[34567]86-*-bsd*.
11419 * i386b-nat.c: Removed.
11420 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
11421 (i386b-nat.o): Remove dependencies.
11422
11423 * config/i386/i386bsd.mh: Removed.
11424 * config/i386/i386bsd.mt: Removed.
11425 * config/i386/nm-i386bsd.h: Removed.
11426 * config/i386/tm-i386bsd.h: Removed.
11427 * config/i386/xm-i386bsd.h: Removed.
11428
11429 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
11430
11431 * amd64fbsd-tdep.c: Include "solib-svr4.h".
11432 (amd64fbsd_init_abi): Set link map offsets.
11433 * amd64nbsd-tdep.c: Include "slib-svr4.h".
11434 (amd64nbsd_init_abi): Set link map offsets.
11435 * amd64obsd-tdep.c: Include "solib-svr4.h".
11436 (amd64obsd_init_abi): Set link map offsets.
11437 * i386fbsd-tdep.c: Include "solib-svr4.h".
11438 (i386fbsd_init_abi): Set link map offsets.
11439 * i386nbsd-tdep.c: Include "solib-svr4.h".
11440 (i386nbsdelf_init_abi): Set link map offsets.
11441 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
11442 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
11443 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
11444 solib-legacy.o and core-aout.o. Reformat.
11445 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
11446 solib-svr4.o, solib-legacy.o. Reformat.
11447 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
11448 * config/i386/nbsdelf.mh: Reformat.
11449 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
11450 solib-svr4.o, solib-legacy.o and corelow.o.
11451 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
11452 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
11453 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
11454 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11455 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11456 (TM_FILE): Set to tm-fbsd.h.
11457 * config/i386/nbsd.mt (TDEPFILES): Reformat.
11458 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
11459 solib-svr4.o.
11460 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
11461 solib-svr4.o.
11462 (TM_FILE): Set to nm-nbsd.h.
11463 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
11464 Simplify shared library support. Don't include "elf/common.h".
11465 (SVR4_SHARED_LIBS): Don't define.
11466 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
11467 "solib.h".
11468 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
11469 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
11470 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
11471 Don't include "i386/tm-i386.h". Include "solib.h".
11472 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
11473 Don't include "i386/tm-i386.h".
11474 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
11475 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
11476 Include "i386/xm-i386.h".
11477 (HOST_LONG_DOUBLE_FORMAT): Remove.
11478
11479 Fix OpenBSD/i386 sigtramp recognition.
11480 * i386-tdep.h: Update copyright year.
11481 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
11482 (i386bsd_sigtramp_end): New prototypes.
11483 (i386fbsd_sigtramp_start_addr): Renamed from
11484 i386fbsd_sigtramp_start.
11485 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11486 (i386obsd_sigtramp_start_addr): Renamed from
11487 i386obsd_sigtramp_start.
11488 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11489 * i386bsd-tdep.c: Update copyright year.
11490 (i386bsd_pc_in_sigtramp): Make public.
11491 * i386fbsd-nat.c: Update copyright year.
11492 (_initialize_i386fbsd_nat): Adjust for renamed variables.
11493 * i386fbsd-tdep.c: Update copyright year.
11494 (i386fbsd_sigtramp_start_addr): Renamed from
11495 i386fbsd_sigtramp_start.
11496 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11497 (i386fbsdaout_init_abi): Adjust for renamed variables.
11498 * i386obsd-nat.c: Update copyright year.
11499 (_initialize_i386obsd_nat): Adjust for renamed variables.
11500 * i386obsd-tdep.c: Include "target.h".
11501 (i386obsd_page_size): New variable.
11502 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
11503 (i386obsd_sigtramp_end): New functions.
11504 (i386obsd_sigtramp_start_addr): Renamed from
11505 i386obsd_sigtramp_start.
11506 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11507 (i386obsd_init_abi): Adjust for renamed variables. Set
11508 pc_in_sigtramp, sigtramp_start and sigtramp_end.
11509 * Makefile.in (i386obsd-tdep.o): Update dependencies.
11510
11511 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
11512 trampoline change in OpenBSD kernel.
11513
11514 * amd64-nat.c: Update copyright year.
11515 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
11516 architecture from REGCACHE.
11517
11518 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
11519 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
11520
11521 2004-02-21 Mark Kettenis <kettenis@gnu.org>
11522
11523 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
11524 i[34567]86-*-openbsd3.[0-3].
11525 * config/i386/obsdaout.mh: New file.
11526
11527 * config/i386/obsd.mh (MH_FLAGS): Remove.
11528
11529 Fix PR build/1549.
11530 * i386obsd-tdep.c: Update copyright years. Include
11531 "solib-svr4.h".
11532 (i386obsd_init_abi): Don't set regset_from_core_section here.
11533 (i386obsd_aout_init_abi): New function. Set
11534 regset_from_core_section here.
11535 (i386obsd_elf_init_abi): New function.
11536 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
11537 * Makefile.in (i386obsd-tdep.o): Update dependecies.
11538 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
11539 (TM_FILE): Set to tm-nbsd.h.
11540
11541 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
11542 solib-sunos.o.
11543
11544 * solib-svr4.h: Update copyright year.
11545 (svr4_ilp32_fetch_link_map_offsets)
11546 (svr4_lp64_fetch_link_map_offsets): New prototype.
11547 * solib-svr4.c: Update copyright year.
11548 (svr4_ilp32_fetch_link_map_offsets)
11549 (svr4_lp64_fetch_link_map_offsets): New function.
11550
11551 2004-02-20 Daniel Jacobowitz <drow@mvista.com>
11552
11553 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
11554 to the partial symbol table.
11555
11556 2004-02-20 J. brobecker <brobecker@gnat.com>
11557
11558 * PROBLEMS: Add description of problem documented under gdb/1560.
11559
11560 2004-02-20 Mark Kettenis <kettenis@gnu.org>
11561
11562 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
11563 comments.
11564 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
11565 functions.
11566 (amd64obsd_init_abi): Reorder initializations. Use
11567 amd64obsd_r_reg_offset to initialize the general-purpose register
11568 set details. Set regset_from_core_section.
11569 (_initialize_amd64obsd_tdep): Rename from
11570 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
11571 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
11572 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
11573
11574 * NEWS (New native configurations): Mention OpenBSD/alpha.
11575 * configure.tgt: Add alpha*-*-openbsd*.
11576 * configure.host: Add alpha*-*-openbsd*.
11577 * alphanbsd-tdep.c: Update copyright year.
11578 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
11579
11580 2004-02-20 Andrew Cagney <cagney@redhat.com>
11581
11582 Fix PR tdep/1372.
11583 * configure.tgt: Delete target "none-*-*".
11584 * configure.host: Delete host "none-*-*".
11585 * config/none/none.mh: Delete file.
11586 * config/none/none.mt: Delete file.
11587 * config/none/xm-none.h: Delete file.
11588 * config/none/tm-none.h: Delete file.
11589 * config/none/nm-none.h: Delete file.
11590
11591 2004-02-19 Fred Fish <fnf@redhat.com>
11592
11593 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
11594 cache->uses_fp prior to setting it.
11595
11596 2004-02-19 Fred Fish <fnf@redhat.com>
11597
11598 Fix for PR breakpoint/1558.
11599 * sh-tdep.c (IS_JSR): New macro.
11600 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
11601
11602 2004-02-19 Jim Blandy <jimb@redhat.com>
11603
11604 * findvar.c (value_from_register): Doc fix.
11605
11606 2004-02-19 Jeff Johnston <jjohnstn@redhat.com>
11607
11608 * printcmd.c (print_scalar_formatted): Do not check for sizeof
11609 type being greater than sizeof of host's LONGEST. Always use
11610 unpack_long() unless format 'f' chosen.
11611
11612 2004-02-19 Joel Brobecker <brobecker@gnat.com>
11613
11614 Committed by Elena Zannoni <ezannoni@redhat.com>
11615
11616 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
11617 contains a symbol wich is the best, non-exact match for the given
11618 pc. Update comments.
11619
11620 2004-02-19 Elena Zannoni <ezannoni@redhat.com>
11621
11622 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
11623 macro, which was part of the now removed Mach 3 port.
11624 * utils.c (request_quit): Ditto.
11625
11626 2004-02-18 Mark Kettenis <kettenis@gnu.org>
11627
11628 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
11629 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
11630
11631 2004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11632
11633 Committed by Mark Kettenis <kettenis@gnu.org>.
11634
11635 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
11636 Define.
11637
11638 2004-02-18 Andrew Cagney <cagney@redhat.com>
11639
11640 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
11641 CONFIG_INSTALL and CONFIG_UNINSTALL.
11642 * configure: Re-generate.
11643 * interps.h (INTERP_TUI): Define.
11644 * Makefile.in: Update dependencies.
11645 (TUI): New macro.
11646 (tui-main.o): Specify dependencies.
11647 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
11648 * tui/tui-main.c: New file.
11649
11650 2004-02-18 Mark Kettenis <kettenis@gnu.org>
11651
11652 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
11653 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
11654 dependencies.
11655 * configure.host: Add x86_64-*-openbsd*.
11656 * configure.tgt: Add x86_64-*-openbsd*.
11657 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
11658
11659 * tui/tui.c: Don't include <malloc.h>.
11660
11661 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
11662 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
11663 amd64nbsd-tdep.c.
11664
11665 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
11666 static. Remove extraneous whitespace.
11667 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
11668 static.
11669
11670 2004-02-17 Jim Blandy <jimb@redhat.com>
11671
11672 * findvar.c (value_from_register): Doc fix.
11673
11674 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11675
11676 Committed by Jim Blandy <jimb@redhat.com>.
11677
11678 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
11679 CORE_ADDR as type for selectors. Correct types for GNU run time
11680 message lookup function to use double indirection.
11681 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
11682 * objc-lang.h (lookup_child_selector): Adapt prototype.
11683
11684 * s390-nat.c (SUBOFF): New macro.
11685 (supply_gregset, fill_gregset): Use it to handle debugging
11686 of 32-bit exectuables running under a 64-bit kernel.
11687 * s390-tdep.c: Include "solib-svr4.h".
11688 (s390_svr4_fetch_link_map_offset): New function.
11689 (s390x_svr_fetch_link_map_offset): Likewise.
11690 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
11691 * Makefile.in (s390-tdep.o): Update dependencies.
11692
11693 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
11694 "frame-unwind.h".
11695 (s390_readinstruction): Reformat. Use read_memory_nobpt.
11696 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
11697 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
11698 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
11699 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
11700 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
11701 S390_SIGNAL_FRAMESIZE,
11702 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
11703 (struct frame_extra_info): Remove.
11704 (s390_memset_extra_info): Remove.
11705 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
11706 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
11707 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
11708 (is_rse): Renamed to ...
11709 (is_rsy): ... this. Support long displacements.
11710 (is_rxe): Renamed to ...
11711 (is_rxy): ... this. Support long displacements.
11712 (compute_x_addr): Support long displacements.
11713 (struct s390_prologue_data): New data type.
11714 (s390_on_stack): Change API to use struct s390_prologue_data.
11715 (s390_store): Reimplement.
11716 (s390_load): New function.
11717 (s390_get_signal_frame_info): Remove.
11718 (s390_get_frame_info): Remove, replace by ...
11719 (s390_analyze_prolog): ... this new function.
11720 (s390_check_function_end): Remove.
11721 (s390_function_start): Remove.
11722 (s390_frameless_function_invokation): Remove.
11723 (s390_is_sigreturn): Remove.
11724 (s390_init_frame_pc_first): Remove.
11725 (s390_init_frame_extra_info): Remove.
11726 (s390_frame_init_saved_regs): Remove.
11727 (s390_frame_saved_pc_nofix): Remove.
11728 (s390_frame_saved_pc): Remove.
11729 (s390_frame_chain): Remove.
11730 (s390_fp_regnum, s390_read_fp): Remove.
11731 (s390_pop_frame_regular, s390_pop_frame): Remove.
11732 (s390_saved_pc_after_call): Remove.
11733 (s390_skip_prologue): Reimplement.
11734 (s390_in_function_epilogue_p): Support long displacements.
11735 (struct s390_unwind_cache): New data structure.
11736 (s390_frame_unwind_cache): New function.
11737 (s390_prologue_frame_unwind_cache): Likewise.
11738 (s390_backchain_frame_unwind_cache): Likewise.
11739 (s390_frame_this_id, s390_frame_prev_register): Likewise.
11740 (s390_frame_unwind): Define.
11741 (s390_frame_sniffer): New function.
11742 (struct s390_pltstub_unwind_cache): New data structure.
11743 (s390_pltstub_frame_unwind_cache): New function.
11744 (s390_pltstub_frame_this_id): Likewise.
11745 (s390_pltstub_frame_prev_register): Likewise.
11746 (s390_pltstub_frame_unwind): Define.
11747 (s390_pltstub_frame_sniffer): New function.
11748 (struct s390_sigtramp_unwind_cache): New data structure.
11749 (s390_sigtramp_frame_unwind_cache): New function.
11750 (s390_sigtramp_frame_this_id): Likewise.
11751 (s390_sigtramp_frame_prev_register): Likewise.
11752 (s390_sigtramp_frame_unwind): Define.
11753 (s390_sigtramp_frame_sniffer): New function.
11754 (s390_frame_base_address, s390_local_base_address): New functions.
11755 (s390_frame_base): Define.
11756 (s390_unwind_pc, s390_unwind_sp): New function.
11757 (s390_push_dummy_call): Use new frame base location.
11758 (s390_unwind_dummy_id): Likewise.
11759 (s390_gdbarch_init): Remove calls to:
11760 set_gdbarch_frameless_function_invocation,
11761 set_gdbarch_deprecated_init_frame_pc,
11762 set_gdbarch_deprecated_frame_chain,
11763 set_gdbarch_deprecated_frame_init_saved_regs,
11764 set_gdbarch_deprecated_pop_frame,
11765 set_gdbarch_deprecated_init_extra_frame_info,
11766 set_gdbarch_deprecated_init_frame_pc_first,
11767 set_gdbarch_deprecated_target_read_fp,
11768 set_gdbarch_deprecated_frame_saved_pc,
11769 set_gdbarch_deprecated_saved_pc_after_call,
11770 set_gdbarch_deprecated_fp_regnum.
11771 Add calls to:
11772 set_gdbarch_in_solib_call_trampoline,
11773 frame_unwind_append_sniffer,
11774 frame_base_set_default,
11775 set_gdbarch_unwind_pc,
11776 set_gdbarch_unwind_sp.
11777 * Makefile.in (s390-tdep.o): Update dependencies.
11778
11779 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
11780 (S390_STACK_FRAME_OVERHEAD): Remove.
11781 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
11782 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
11783 (s390_promote_integer_argument): Remove.
11784 (s390_cannot_extract_struct_value_address): Remove.
11785 (s390_use_struct_convention, s390_store_struct_return): Remove.
11786 (s390_extract_return_value, s390_store_return_value): Remove.
11787 (s390_return_value_convention, s390_return_value): New functions.
11788 (is_float_singleton): Handle typedefs.
11789 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
11790 Remove, replace by ...
11791 (s390_function_arg_pass_by_reference, s390_function_arg_float,
11792 s390_function_arg_integer): ... these new functions.
11793 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
11794 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
11795 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
11796 Fill in tdep->abi.
11797 Remove calls to:
11798 set_gdbarch_deprecated_store_struct_return,
11799 set_gdbarch_deprecated_extract_return_value,
11800 set_gdbarch_deprecated_store_return_value,
11801 set_gdbarch_use_struct_convention,
11802 set_gdbarch_extract_struct_value_address,
11803 set_gdbarch_deprecated_pc_in_call_dummy,
11804 set_gdbarch_deprecated_push_arguments,
11805 set_gdbarch_deprecated_save_dummy_frame_tos,
11806 set_gdbarch_deprecated_push_return_address,
11807 set_gdbarch_deprecated_sizeof_call_dummy_words,
11808 set_gdbarch_deprecated_call_dummy_words,
11809 set_gdbarch_deprecated_dummy_write_sp.
11810 Add calls to:
11811 set_gdbarch_push_dummy_call,
11812 set_gdbarch_unwind_dummy_id,
11813 set_gdbarch_return_value.
11814
11815 * config/s390/nm-linux.h: Update comments.
11816 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
11817 (STOPPED_BY_WATCHPOINT): Redefine.
11818 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
11819 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
11820 (s390_stopped_by_watchpoint): Likewise.
11821 (watch_area_cnt): Remove.
11822 * s390-nat.c: Update comments.
11823 (watch_area): Remove typedef.
11824 Global replace watch_area by struct watch_area.
11825 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
11826 (s390_stopped_by_watchpoint): Remove pid argument,
11827 use s390_inferior_tid. Add short-cut for the no watchpoint case.
11828 (s390_fix_watch_points): Remove pid argument,
11829 use s390_inferior_tid. Recompute area spanned by watchpoints.
11830 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
11831 argument. Reimplement.
11832
11833 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
11834 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
11835 (FETCH_INFERIOR_REGISTERS): Define.
11836 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
11837 core-regset.o.
11838 * config/s390/s390x.mt: Remove.
11839 * config/s390/tm-s390.h: Remove.
11840 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
11841 (TARGET_ELF64): Remove.
11842 (SKIP_TRAMPOLINE_CODE): Do not undefine.
11843 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
11844 s390*-*-* case; always set gdb_target to s390.
11845 * regformats/reg-s390.dat: Remove control registers.
11846 * regformats/reg-s390x.dat: Likewise.
11847 * s390-tdep.h: New file.
11848 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
11849 Include "inferior.h" and "s390-tdep.h".
11850 Remove private definition of offsetof.
11851 (s390_register_u_addr): Remove.
11852 (regmap_gregset, regmap_fpregset): Define.
11853 (supply_gregset, fill_gregset): Reimplement.
11854 (supply_fpregset, fill_fpregset): Likewise.
11855 (s390_inferior_tid): New function.
11856 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
11857 (fetch_inferior_registers, store_inferior_registers): Likewise.
11858 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
11859 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
11860 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
11861 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
11862 (struct gdbarch_tdep): Define.
11863 (struct s390_register_info): Define.
11864 (s390_register_info): New variable.
11865 (s390_register_name): Reimplement.
11866 (s390_register_type): New function.
11867 (s390_register_raw_size, s390x_register_raw_size): Remove.
11868 (s390_cannot_fetch_register): Remove.
11869 (s390_register_byte): Remove.
11870 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
11871 (s390_dwarf_regmap): New variable.
11872 (s390_dwarf_reg_to_regnum): New function.
11873 (s390_stab_reg_to_regnum): Remove.
11874 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
11875 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
11876 (s390_convert_register_p): Likewise.
11877 (s390_register_to_value, s390_value_to_register): Likewise.
11878 (s390_register_reggroup_p): Likewise.
11879 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
11880 s390_gregset, s390x_gregset, s390_fpregset): New variables.
11881 (s390_supply_regset, s390_regset_from_core_section): New functions.
11882 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
11883 (S390_FPR_SIZE): Likewise.
11884 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
11885 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
11886 (S390_NUM_GPRS): Move here from tm-s390.h.
11887 (S390_NUM_FPRS): Likewise.
11888 (s390_in_function_epilogue_p): New function.
11889 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
11890 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
11891 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
11892 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
11893 Replace S390_FP_REGNUM by S390_SP_REGNUM.
11894 Remove calls to:
11895 set_gdbarch_deprecated_max_register_raw_size,
11896 set_gdbarch_deprecated_max_register_virtual_size,
11897 set_gdbarch_deprecated_register_byte,
11898 set_gdbarch_cannot_fetch_register,
11899 set_gdbarch_cannot_store_register,
11900 set_gdbarch_deprecated_register_size,
11901 set_gdbarch_deprecated_register_raw_size,
11902 set_gdbarch_deprecated_register_virtual_size,
11903 set_gdbarch_deprecated_register_virtual_type,
11904 set_gdbarch_deprecated_register_bytes.
11905 Add calls to:
11906 set_gdbarch_num_pseudo_regs,
11907 set_gdbarch_register_type,
11908 set_gdbarch_convert_register_p,
11909 set_gdbarch_register_to_value,
11910 set_gdbarch_value_to_register,
11911 set_gdbarch_register_reggroup_p,
11912 set_gdbarch_regset_from_core_section,
11913 set_gdbarch_pseudo_register_read,
11914 set_gdbarch_pseudo_register_write,
11915 set_gdbarch_in_function_epilogue_p.
11916 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
11917 (s390_tdep_h): New variable.
11918
11919 2004-02-17 Jim Blandy <jimb@redhat.com>
11920
11921 * findvar.c (value_from_register): If the type has no length, just
11922 return an acceptable value --- don't report an internal error.
11923
11924 * stabsread.c (read_type): If we find any type numbers that are
11925 forward references, complain if the references aren't resolved by
11926 the time we're finished reading.
11927 (cleanup_undefined_types): Make error message more appropriate for
11928 a complaint.
11929
11930 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
11931
11932 * Makefile.in (defs_h): Remove dependency on progress_h.
11933 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
11934 progress.h.
11935 * main.c (captured_main): Delete use of START_PROGRESS and
11936 END_PROGRESS.
11937
11938 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
11939
11940 * objfiles.c (terminate_minimal_symbol_table): Add back
11941 initialization of MSYMBOL_TYPE.
11942
11943 2004-02-17 David Mosberger <davidm@hpl.hp.com>
11944
11945 Committed by Andrew Cagney.
11946 * Makefile.in (ia64_tdep_h): New macro.
11947 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
11948 (ia64-tdep.o): Likewise.
11949 * ia64-tdep.h: New file.
11950 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
11951 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
11952 (ia64_aix_sigcontext_register_address): Likewise.
11953 (ia64_linux_getunwind_table): Delete declaration.
11954 * ia64-linux-tdep.c: Likewise.
11955
11956 2004-02-17 Corinna Vinschen <vinschen@redhat.com>
11957
11958 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
11959 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
11960 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
11961
11962 2004-02-17 Andrew Cagney <cagney@redhat.com>
11963
11964 * symtab.c (skip_prologue_using_sal): New function.
11965 * symtab.h (skip_prologue_using_sal): Declare.
11966 * frv-tdep.c: Include "symtab.h".
11967 (skip_prologue_using_sal): Delete function.
11968 * mips-tdep.c (skip_prologue_using_sal): Delete function.
11969 * rs6000-tdep.c (refine_prologue_limit): Mention
11970 skip_prologue_using_sal.
11971 * ia64-tdep.c (refine_prologue_limit): Ditto.
11972 * Makefile.in: Update dependencies.
11973
11974 2004-02-16 Andrew Cagney <cagney@redhat.com>
11975
11976 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
11977 START_INFERIOR_TRAPS_EXPECTED.
11978 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
11979 START_INFERIOR_TRAPS_EXPECTED.
11980 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
11981 Delete macro.
11982 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
11983 macro, moved to "nm-osf.h". Update copyright.
11984 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
11985 update copyright.
11986
11987 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
11988 and function replacing FRAMELESS_FUNCTION_INVOCATION.
11989 * blockframe.c (legacy_frameless_look_for_prologue): Rename
11990 frameless_look_for_prologue.
11991 * frame.h (legacy_frameless_look_for_prologue): Rename
11992 frameless_look_for_prologue.
11993 * gdbarch.h, gdbarch.c: Re-generate.
11994 * sh64-tdep.c (sh64_gdbarch_init): Update.
11995 * sh-tdep.c (sh_gdbarch_init): Update.
11996 * s390-tdep.c (s390_gdbarch_init): Update.
11997 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11998 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11999 * m68k-tdep.c (m68k_gdbarch_init): Update.
12000 (delta68_frame_args_address): Update.
12001 * m32r-tdep.c (m32r_gdbarch_init): Update.
12002 * hppa-tdep.c (hppa_gdbarch_init): Update.
12003 * h8300-tdep.c (h8300_gdbarch_init): Update.
12004 * frv-tdep.c (frv_gdbarch_init): Update.
12005 (frv_frameless_function_invocation): Update.
12006 * cris-tdep.c (cris_gdbarch_init): Update.
12007 (cris_frameless_function_invocation): Update.
12008 * avr-tdep.c (avr_gdbarch_init): Update.
12009 * arm-tdep.c (arm_gdbarch_init): Update.
12010 * stack.c (frame_info): Update, call predicate.
12011 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
12012 * frame.c (legacy_get_prev_frame): Update, call predicate..
12013 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
12014 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
12015 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
12016 invocation.
12017 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12018 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
12019 * vax-tdep.c (vax_gdbarch_init): Ditto.
12020
12021 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
12022 function.
12023
12024 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
12025
12026 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
12027 initializations.
12028
12029 2004-02-16 Andrew Cagney <cagney@redhat.com>
12030
12031 * tui/tui-windata.c: Include "gdb_string.h".
12032 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
12033 * tui/tui-layout.c, tui/tui-command.c: Ditto.
12034 * Makefile.in: Update dependencies.
12035
12036 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
12037
12038 * Makefile.in (infrun.o): Add $(gdb_assert_h).
12039 * infrun.c: Include "gdb_assert.h".
12040 (singlestep_ptid, saved_singlestep_ptid)
12041 (stepping_past_singlestep_breakpoint): New variables.
12042 (resume): Set singlestep_ptid. Check for singlestep thread
12043 hop.
12044 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
12045 (handle_inferior_event): Handle singlestep thread hop.
12046
12047 2004-02-16 Andrew Cagney <cagney@redhat.com>
12048
12049 * dwarf2-frame.c (dwarf2_frame_ops): New function.
12050 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
12051 (dwarf2_frame_init_reg): Ditto.
12052
12053 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
12054 suggested by Joshua Neuheisel
12055
12056 * configure.in: Always check for curses, including pdcurses.
12057 Warn, instead of error, when no curses are found. Enable TUI when
12058 curses is available.
12059 * configure: Re-generate.
12060
12061 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
12062
12063 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
12064 sh_sh4_register_convert_to_virtual.
12065 (sh_register_convert_to_raw): Rename from
12066 sh_sh4_register_convert_to_raw.
12067 (sh_pseudo_register_read): Accomodate above name change.
12068 (sh_pseudo_register_write): Ditto.
12069
12070 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
12071
12072 * sh-tdep.c (sh_generic_register_name): Remove.
12073 (sh_gdbarch_init): Use sh_sh_register_name in default case.
12074
12075 2004-02-15 Andrew Cagney <cagney@redhat.com>
12076
12077 * configure.in (build_warnings): Add -Wunused-function.
12078 * configure: Re-generate.
12079
12080 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
12081 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
12082
12083 * procfs.c (procfs_init_inferior): Assume that
12084 START_INFERIOR_TRAPS_EXPECTED is defined.
12085 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
12086 * config/ns32k/tm-nbsd.h: Delete file,
12087 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
12088
12089 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
12090 * config/vax/tm-vax.h: Delete file.
12091
12092 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12093 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12094 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12095 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12096 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
12097 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12098 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
12099
12100 2004-02-15 Mark Kettenis <kettenis@gnu.org>
12101
12102 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
12103 * dwarf2-frame.c (dwarf2_frame_data): New variable.
12104 (struct dwarf2_frame_ops): New.
12105 (dwarf2_frame_default_init_reg): New function, based on
12106 dwarf2_frame_init_reg.
12107 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
12108 (dwarf2_frame_init_reg): Call architecture-specific function.
12109 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
12110 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
12111 instead of dwarf2_frame_data.
12112 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
12113 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
12114
12115 2004-02-15 Andrew Cagney <cagney@redhat.com>
12116
12117 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
12118 register_gdbarch_swap.
12119 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
12120 * f-lang.c (_initialize_f_language): Update, use
12121 DEPRECATED_REGISTER_GDBARCH_SWAP.
12122 * remote.c (_initialize_remote): Ditto.
12123 * regcache.c (_initialize_regcache): Ditto.
12124 * parse.c (_initialize_parse): Ditto.
12125 * infrun.c (_initialize_infrun): Ditto.
12126 * mi/mi-main.c (_initialize_mi_main): Ditto.
12127 * gdbtypes.c (_initialize_gdbtypes): Ditto.
12128
12129 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
12130 poking .cacheable directly.
12131 * symfile.c (symfile_bfd_open): Ditto.
12132
12133 * Makefile.in: Update all dependencies.
12134
12135 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
12136 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
12137 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
12138 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
12139 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
12140
12141 2004-02-14 Andrew Cagney <cagney@redhat.com>
12142
12143 * arch-utils.c (legacy_convert_register_p): Check
12144 DEPRECATED_REGISTER_CONVERTIBLE_P.
12145 * findvar.c (value_of_register): Ditto.
12146
12147 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
12148 * gdbarch.h, gdbarch.c: Re-generate.
12149 * arch-utils.c (deprecated_register_convertible_not): Delete.
12150 * arch-utils.h (deprecated_register_convertible_not): Delete.
12151 * mi/mi-main.c (get_register): Update. Update copyright.
12152 * infcmd.c (default_print_registers_info): Update.
12153
12154 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
12155 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
12156 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
12157 * gdbarch.h, gdbarch.c: Re-generate.
12158 * frame.c (deprecated_get_next_frame_hack): Delete function.
12159 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
12160 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
12161 Update.
12162 * infcall.c (call_function_by_hand): Update.
12163
12164 2004-02-14 Elena Zannoni <ezannoni@redhat.com>
12165
12166 * symfile.c (init_entry_point_info, entry_point_address): Move
12167 from here...
12168 * objfiles.c (init_entry_point_info, entry_point_address):..to
12169 here.
12170 * symfile.h (init_entry_point_info, entry_point_address): Remove
12171 prototypes.
12172 * objfiles.h (init_entry_point_info, entry_point_address):Add
12173 prototypes.
12174 * cris-tdep.c: Remove include of symfile.h. Add include of
12175 objfiles.h.
12176 * infcall.c: Ditto.
12177 * mcore-tdep.c: Ditto.
12178 * mn10300-tdep.c: Ditto.
12179 * sh64-tdep.c: Ditto.
12180 * v850-tdep.c: Ditto.
12181 * arm-tdep.c: Remove include of symfile.h.
12182 * blockframe.c: Ditto.
12183 * coffread.c: Ditto.
12184 * dbxread.c: Ditto.
12185 * dwarf2read.c: Ditto.
12186 * dwarfread.c: Ditto.
12187 * frv-tdep.c: Ditto.
12188 * ia64-tdep.c: Ditto.
12189 * mdebugread.c: Ditto.
12190 * mipsread.c: Ditto.
12191 * rs6000-tdep.c: Ditto.
12192 * s390-tdep.c: Ditto.
12193 * sh-tdep.c: Ditto.
12194 * xstormy16-tdep.c: Ditto.
12195 * gdbarch.sh: Remove include of symfile.h.
12196 * gdbarch.c: Regenerate.
12197 * solib-irix.c (enable_break): Use entry_point_address().
12198 Add comment about include file.
12199 * xcoffread.c: Add comment about include file.
12200 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
12201 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
12202 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
12203 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
12204 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
12205
12206 2004-02-13 Andrew Cagney <cagney@redhat.com>
12207
12208 * corelow.c (core_xfer_partial): Use "struct bfd_section".
12209 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
12210 copyright.
12211 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
12212
12213 2004-02-12 Fred Fish <fnf@redhat.com>
12214
12215 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
12216 set_gdbarch_store_return_value.
12217
12218 2004-02-12 Andrew Cagney <cagney@redhat.com>
12219
12220 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
12221 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
12222 (interrupt_query): Ditto.
12223 (ofunc): Delete unused variable.
12224 * cris-tdep.c (cris_abi): Delete unused function.
12225 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
12226 (cris_get_wide_opcode, cris_get_short_size): Ditto.
12227 (cris_get_asr_quick_shift_steps): Ditto.
12228 (cris_skip_prologue_frameless_p): Ditto.
12229 * arm-tdep.c (arm_push_return_address): Delete unused function.
12230 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
12231 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
12232 * s390-tdep.c (s390_function_start): Delete unused function.
12233
12234 2004-02-12 Andrew Cagney <cagney@redhat.com>
12235
12236 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
12237 gdbarch.h, gdbarch.c: Re-generate.
12238 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
12239 to generic_prologue_frameless_p.
12240 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
12241 * arch-utils.c (generic_prologue_frameless_p): Delete function.
12242
12243 2004-02-11 Daniel Jacobowitz <drow@mvista.com>
12244
12245 * mips-linux-tdep.c: Include "frame.h".
12246 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
12247 (mips_linux_skip_resolver): New functions.
12248 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
12249 and set_gdbarch_in_solib_call_trampoline.
12250 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
12251 to after set_gdbarch_in_solib_return_trampoline. Only set the
12252 solib hooks to mips16 functions if the OS ABI is unknown.
12253 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
12254 including "config/tm-linux.h".
12255 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
12256 * Makefile.in (mips-linux-tdep.o): Update.
12257
12258 2004-02-11 David Carlton <carlton@kealia.com>
12259
12260 * linespec.c (decode_compound): Only look for a class symbol when
12261 considering all but the rightmost component.
12262
12263 2004-02-11 Andrew Cagney <cagney@redhat.com>
12264
12265 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
12266 abi code are are separatly grouped.
12267
12268 2004-02-11 Andrew Cagney <cagney@redhat.com>
12269
12270 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
12271 * gdbarch.h, gdbarch.c: Re-generate.
12272 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12273 * v850-tdep.c (v850_gdbarch_init): Update.
12274 * sh64-tdep.c (sh64_gdbarch_init): Update.
12275 * sh-tdep.c (sh_gdbarch_init): Update.
12276 * s390-tdep.c (s390_gdbarch_init): Update.
12277 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12278 * mips-tdep.c (mips_gdbarch_init): Update.
12279 * mcore-tdep.c (mcore_gdbarch_init): Update.
12280 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12281 * m32r-tdep.c (m32r_gdbarch_init): Update.
12282 * ia64-tdep.c (ia64_gdbarch_init): Update.
12283 * hppa-tdep.c (hppa_gdbarch_init): Update.
12284 * h8300-tdep.c (h8300_gdbarch_init): Update.
12285 * frv-tdep.c (frv_gdbarch_init): Update.
12286 * d10v-tdep.c (d10v_gdbarch_init): Update.
12287 * cris-tdep.c (cris_gdbarch_init): Update.
12288 * avr-tdep.c (avr_gdbarch_init): Update.
12289 * arm-tdep.c (arm_gdbarch_init): Update.
12290 * alpha-tdep.c (alpha_gdbarch_init): Update.
12291
12292 2004-02-11 Corinna Vinschen <vinschen@redhat.com>
12293
12294 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
12295 comma.
12296 (sh_sh4al_dsp_register_name): Ditto.
12297
12298 2004-02-10 Andrew Cagney <cagney@redhat.com>
12299
12300 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
12301 (mips_init_frame_pc_first): Delete function.
12302 (mips_frame_saved_pc): Delete function.
12303 (mips_frame_chain): Delete function.
12304 (mips_init_extra_frame_info): Delete function.
12305 (mips_xfer_register): Delete unused variable "reg".
12306 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
12307 (mips_n32n64_return_value): Delete unused variable "reg".
12308 (mips_n32n64_return_value): Delete unused variable "pos".
12309 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
12310 (mips_o32_return_value): Delete unused variable "pos".
12311 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
12312 (mips_print_fp_register): Delete unused variable "namelen"
12313 (mips_print_fp_register): Delete unused variable "flt2"
12314 (get_frame_pointer): Delete function.
12315 (cached_proc_desc): Delete static variable.
12316 (mips_pop_frame): Delete function.
12317 (mips_find_saved_regs): Delete function.
12318 (mips_get_saved_register): Delete function.
12319 (mips_saved_pc_after_call): Delete function.
12320 (SIGFRAME_BASE): Delete macro.
12321 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
12322 (SIGFRAME_PC_OFF): Delete macro.
12323 (SIGFRAME_REGSAVE_OFF): Delete macro.
12324 (mips_dump_tdep): Do not print deleted macro definitions.
12325
12326 2004-02-10 Andrew Cagney <cagney@redhat.com>
12327
12328 * Makefile.in (SFILES): Remove explictly listed tui files.
12329 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
12330
12331 2004-02-10 Jeff Johnston <jjohnstn@redhat.com>
12332
12333 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
12334 to use paddr functions to format ia64 addresses and long values.
12335 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
12336 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
12337 (get_kernel_table, ia64_find_proc_info_x): Ditto.
12338 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
12339 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
12340
12341 2004-02-10 Andrew Cagney <cagney@redhat.com>
12342
12343 * defs.h: Do not include "tui.h".
12344 * gdb_curses.h: New file.
12345 * tui/tui-hooks.h: New file.
12346 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
12347 (tui_install_hooks, tui_remove_hooks): Delete declarations.
12348 (tui_initialize_io): Delete declaration.
12349 (tui_initialize_readline: Delete redundant declaration.
12350 (struct tui_point): Delete definition.
12351 * tui/tui-data.h (struct tui_point): Define.
12352 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
12353 * utils.c: Include "tui/tui.h".
12354 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
12355 * printcmd.c [TUI]: Include "tui/tui.h".
12356 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
12357 * tui/tui-command.c: Include "gdb_curses.h".
12358 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
12359 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
12360 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
12361 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
12362 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
12363 * Makefile.in: Update all dependencies.
12364 (tui_hooks_h, gdb_curses_h): Define.
12365 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
12366
12367 2004-02-10 Elena Zannoni <ezannoni@redhat.com>
12368
12369 * objfiles.h (struct objfile): Remove unused fields auxf1 and
12370 auxf2. Add comments about some other rarely used fields.
12371
12372 2004-02-10 Andrew Cagney <cagney@redhat.com>
12373
12374 * Makefile.in (init.c): Fix script removing duplicates. Problem
12375 reported by Peter Schauer.
12376
12377 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
12378
12379 * bcache.c (bcache_xmalloc): Use obstack_init instead of
12380 obstack_specify_allocation.
12381 * objfiles.c (allocate_objfile): Ditto.
12382 * solib-sunos.c (solib_add_common_symbols)
12383 (allocate_rt_common_objfile): Ditto.
12384 * symfile.c (reread_symbols): Ditto.
12385 * gdb_obstack.h: Add comment.
12386
12387 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
12388
12389 * linespec.c (decode_line_1, locate_first_half)
12390 (decode_compound, lookup_prefix_sym): Update comments. Delete old
12391 commented out code.
12392
12393 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
12394
12395 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
12396 obstack_free.
12397
12398 2004-02-09 Andrew Cagney <cagney@redhat.com>
12399
12400 * blockframe.c (find_pc_partial_function): If find_pc_overlay
12401 fails, try find_pc_section. Fix PR c++/1267.
12402 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
12403 instead of find_pc_mapped_section.
12404 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
12405 not default to the section containing PC. Fix PR symtab/1519.
12406
12407 2004-02-09 Andrew Cagney <cagney@redhat.com>
12408
12409 * Makefile.in (mips-tdep.o): Update dependencies.
12410 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
12411 "trad-frame.h".
12412 (mips_unwind_pc): Return the pseudo PC register.
12413 (mips_unwind_dummy_id): New function.
12414 (mips16_fetch_instruction): New function.
12415 (mips32_fetch_instruction): New function.
12416 (struct mips_frame_cache): Define.
12417 (mips_mdebug_frame_cache): New function.
12418 (mips_mdebug_frame_this_id): New function.
12419 (mips_mdebug_frame_prev_register): New function.
12420 (mips_mdebug_frame_unwind): Define.
12421 (mips_mdebug_frame_sniffer): New function.
12422 (mips_mdebug_frame_base_address): New function.
12423 (mips_mdebug_frame_base): Define.
12424 (mips_mdebug_frame_base_sniffer): New function.
12425 (mips_gdbarch_init): Append unwind and base sniffers. Set
12426 unwind_dummy_id.
12427
12428 2004-02-08 Andrew Cagney <cagney@redhat.com>
12429
12430 * frame.c: Print both the register number and name.
12431
12432 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
12433 and a sed into a single sed. Make .c and .o patterns more robust.
12434 (OBS): Delete.
12435 (INIT_FILES): Replace OBS with COMMON_OBS.
12436 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
12437
12438 2004-02-08 Mark Kettenis <kettenis@gnu.org>
12439
12440 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
12441 the PT_WCOOKIE request.
12442
12443 2004-02-08 Andrew Cagney <cagney@redhat.com>
12444
12445 * mips-tdep.c (mips_unwind_pc): New function.
12446 (mips_gdbarch_init): Set mips_unwind_pc.
12447
12448 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
12449 (get_frame_id): Allow the UNKNOWN_FRAME.
12450 (frame_register_unwind, get_frame_type): Ditto.
12451
12452 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
12453 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
12454 unwind_dummy_id indicates a legacy frame.
12455
12456 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
12457 * configure: Re-generate.
12458
12459 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
12460 methods.
12461
12462 2004-02-08 Andrew Cagney <cagney@redhat.com>
12463
12464 * configure.in (CONFIG_ALL): Set to Makefile target, and not
12465 makefile macro.
12466 * configure: Re-generate.
12467 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
12468 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
12469 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
12470 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
12471 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
12472 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
12473 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
12474 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
12475 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
12476 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
12477
12478 2004-02-07 Andrew Cagney <cagney@redhat.com>
12479
12480 * Makefile.in: Update all dependencies.
12481
12482 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
12483 * configure: Re-generate.
12484 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
12485 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
12486 (COMMON_OBS): Add "main.o" and "annotate.o".
12487 (ANNOTATE_OBS): Delete.
12488 (OBS): Remove ANNOTATE_OBS.
12489 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
12490 CONFIG_INITS.
12491 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
12492 against CONFIG_OBS and "main.o".
12493 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
12494 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
12495
12496 * tui/tui-command.c: Include "gdb_string.h", delete register
12497 attribute, use ISO-C function signatures.
12498 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
12499 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
12500 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
12501 * tui/tui.c: Ditto.
12502
12503 * tui/tui-command.c: Change variable and function names to lower
12504 case.
12505 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
12506 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
12507 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
12508 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12509 * tui/tui-winsource.c, tui/tui.c: Ditto.
12510
12511 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
12512
12513 * buildsym.c (free_pending_blocks, finish_block)
12514 (record_pending_block, make_blockvector, end_symtab): Replace
12515 symbol_obstack with objfile_obstack.
12516 * coffread.c (process_coff_symbol, coff_read_struct_type)
12517 (coff_read_enum_type): Ditto.
12518 * cp-namespace.c (initialize_namespace_symtab)
12519 (check_one_possible_namespace_symbol): Ditto.
12520 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
12521 (dwarf2_symbol_mark_computed): Ditto.
12522 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
12523 * elfread.c (elf_symtab_read): Ditto.
12524 * hpread.c (hpread_symfile_init, hpread_symfile_init)
12525 (hpread_read_enum_type, hpread_read_function_type)
12526 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
12527 Ditto.
12528 * jv-lang.c (get_java_class_symtab, add_class_symbol)
12529 (java_link_class_type): Ditto.
12530 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
12531 (new_symbol): Ditto.
12532 * minsyms.c (install_minimal_symbols): Ditto.
12533 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
12534 (terminate_minimal_symbol_table): Replace symbol_obstack with
12535 objfile_obstack.
12536 (free_objfile): Remove freeing of symbol_obstack.
12537 * objfiles.h: Remove symbol_obstack field.
12538 * pa64solib.c (add_to_solist): Replace symbol_obstack with
12539 objfile_obstack.
12540 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
12541 symbol_obstack.
12542 (solib_add_common_symbols): Replace symbol_obstack with
12543 objfile_obstack.
12544 * somsolib.c (som_solib_add): Ditto.
12545 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
12546 (common_block_start, common_block_end): Ditto.
12547 * symfile.c (reread_symbols): Remove freeing and init of
12548 symbol_obstack.
12549 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
12550 * symfile.h: Update comment.
12551 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
12552 stats printing.
12553 * symtab.c (symbol_set_names): Replace symbol_obstack with
12554 objfile_obstack.
12555 * symtab.h (struct general_symbol_info, struct minimal_symbol):
12556 Update comments.
12557 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
12558 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
12559 objfile_obstack.
12560
12561 2004-02-07 Andrew Cagney <cagney@redhat.com>
12562
12563 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
12564 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
12565 fields and variables.
12566 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
12567 (m_beInvisible): Delete macro.
12568 * tui/tui-data.h: Fix case case fields and variables.
12569 (m_genWinPtrIsNull): Delete macro.
12570 (tui_win_list): Rename winList.
12571 (TUI_SRC_WIN): Rename srcWin.
12572 (TUI_DISASM_WIN): Rename disassemWin.
12573 (TUI_DATA_WIN): Rename dataWin.
12574 (TUI_CMD_WIN): Rename cmdWin.
12575 (m_genWinPtrNotNull): Delete macro.
12576 (m_winPtrIsNull): Delete macro.
12577 (m_winPtrNotNull): Delete macro.
12578 (tui_win_is_source_type): Replace m_winIsSourceType
12579 (tui_win_is_auxillary): Replace m_winIsAuzillary.
12580 (tui_win_has_locator): Replace m_hasLocator.
12581 (tui_set_win_highlight): Replace m_setWinHighlightOn and
12582 m_setWinHighlightOff.
12583 * tui/tui-data.c: Update references.
12584 (tui_win_is_source_type, tui_set_win_highlight): New functions.
12585 (tui_win_has_locator, tui_win_is_auxillary): New functions.
12586 * tui/tui-command.c, tui/tui-disasm.c: Update references.
12587 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
12588 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
12589 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12590 * tui/tui-winsource.c, tui/tui.c: Ditto.
12591
12592 2004-02-07 Mark Kettenis <kettenis@gnu.org>
12593
12594 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
12595 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
12596 StackGhost.
12597
12598 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
12599 variable `i6' to `i7'.
12600 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
12601
12602 2004-02-07 Andrew Cagney <cagney@redhat.com>
12603
12604 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
12605 (TuiPoint, TuiPointPtr): Ditto.
12606 (TuiStatus, TuiStatusPtr): Ditto.
12607 (TuiWinType, TuiWinTypePtr): Ditto.
12608 (struct tui_point): Rename _TuiPoint.
12609 (tui_get_low_disassembly_address): Rename
12610 tuiGetLowDisassemblyAddress.
12611 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
12612 (tuiFree): Delete declaration.
12613 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
12614 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
12615 * tui/tui.c (tuiFree): Delete function.
12616 * cli/cli-cmds.c (disassemble_command): Update references.
12617 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
12618 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
12619 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
12620 * tui/tui-winsource.c: Ditto.
12621
12622 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
12623
12624 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
12625 coffstab_build_psymtabs, elfstab_build_psymtabs)
12626 (stabsect_build_psymtabs): Replace psymbol_obstack with
12627 objfile_obstack.
12628 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
12629 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
12630 Ditto.
12631 * dwarfread.c (scan_compilation_units): Ditto.
12632 * elfread.c (elfstab_offset_sections): Ditto.
12633 * hppa-tdep.c (read_unwind_info): Ditto.
12634 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
12635 (hpread_end_psymtab): Ditto.
12636 * mdebugread.c (mdebug_build_psymtabs, add_pending)
12637 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
12638 Ditto.
12639 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
12640 * objfiles.c (add_to_objfile_sections)
12641 (build_objfile_section_table): Ditto.
12642 (allocate_objfile): Remove init of psymbol_obstack.
12643 (free_objfile): Remove freeing of psymbol_obstack.
12644 * objfiles.h (struct objfile): Remove field
12645 psymbol_obstack. Update comments.
12646 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
12647 psymbol_obstack with objfile_obstack.
12648 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
12649 psymbol_obstack.
12650 * somread.c (som_symfile_offsets, init_import_symbols)
12651 (init_export_symbols): Replace psymbol_obstack with
12652 objfile_obstack.
12653 * somsolib.c (som_solib_add_solib_objfile): Ditto.
12654 * symfile.c (default_symfile_offsets, syms_from_objfile)
12655 (reread_symbols): Remove freeing and init of psymbol_obstack.
12656 (cashier_psymtab): Update comment.
12657 * symmisc.c (print_objfile_statistics): Don't report stats for
12658 psymbol obstack.
12659 * symtab.h (struct general_symbol_info, struct partial_symtab):
12660 Update comments.
12661 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
12662 (xcoff_symfile_offsets): Replace psymbol_obstack with
12663 objfile_obstack.
12664
12665 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
12666
12667 * objfiles.h (struct objfile): Add objfile_obstack field.
12668 Remove type_obstack field.
12669
12670 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
12671 read_structure_scope read_enumeration, new_symbol): Replace
12672 type_obstack with objfile_obstack.
12673 * dwarfread.c (struct_type, enum_type): Ditto.
12674 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
12675 (lookup_fundamental_type): Ditto.
12676 * gdbtypes.h (TYPE_ALLOC): Ditto.
12677 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
12678 (hpread_read_doc_function_type, hpread_read_struct_type)
12679 (fix_static_member_physnames, hpread_read_array_type)
12680 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
12681 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
12682 (java_link_class_type): Ditto.
12683 * mdebugread.c (parse_type): Ditto.
12684 * objfiles.c (allocate_objfile, free_objfile): Ditto.
12685 * solib-sunos.c (solib_add_common_symbols): Ditto.
12686 * stabsread.c (define_symbol, read_type, read_member_functions,
12687 read_cpp_abbrev, read_one_struct_field): Ditto.
12688 * symfile.c (reread_symbols): Ditto.
12689 * symmisc.c (print_objfile_statistics): Ditto.
12690
12691 2004-02-07 Andrew Cagney <cagney@redhat.com>
12692
12693 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
12694 (tui_exec_info_content): Rename TuiExecInfoContent.
12695 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
12696 (TuiWinInfo, TuiWinInfoPtr): Ditto.
12697 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
12698 (TuiList, TuiListPtr): Ditto.
12699 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
12700 (TuiDataType, TuiDataTypePtr): Ditto.
12701 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
12702 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
12703 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
12704 (TuiSourceElement, TuiSourceElementPtr): Ditto.
12705 (TuiDataElement, TuiDataElementPtr): Ditto.
12706 (TuiWinElement, TuiWinElementPtr): Ditto.
12707 (TuiDataInfo, TuiDataInfoPtr): Ditto.
12708 (TuiCommandElement, TuiCommandElementPtr): Ditto.
12709 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
12710 (TuiWhichElement, TuiWhichElementPtr): Ditto.
12711 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
12712 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
12713 * tui/tui-command.c, tui/tui-data.c: Update references.
12714 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
12715 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
12716 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12717 * tui/tui-winsource.c, tui/tui.c: Ditto.
12718
12719 2004-02-07 Mark Kettenis <kettenis@gnu.org>
12720
12721 * dwarf2-frame.h: Update copyright.
12722 (enum dwarf2_frame_reg_rule): New.
12723 (struct dwarf2_frame_state_reg): New.
12724 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
12725 * dwarf2-frame.c: Update copyright.
12726 (enum dwarf2_reg_rule): Remove.
12727 (struct dwarf2_frame_state): Remove defenition of `struct
12728 dwarf2_frame_state_reg'.
12729 (read_reg): Call get_frame_arch to get the architecture instead of
12730 using CURRENT_GDBARCH.
12731 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
12732 DWARF2_FRAME_.
12733 (dwarf2_frame_init_reg): New function.
12734 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
12735 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
12736 initialize the register state. Prefix old `enum dwarf2_reg_rule'
12737 tags with DWARF2_FRAME_.
12738 (dwarf2_frame_prev_register): Call get_frame_arch to get the
12739 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
12740 dwarf2_reg_rule' tags with DWARF2_FRAME_.
12741
12742 2004-02-06 Andrew Cagney <cagney@redhat.com>
12743
12744 * tui/tui-data.h (struct tui_list): Rename _TuiList.
12745 (enum tui_data_type): Rename _TuiDataType.
12746 (struct tui_layout_def): Rename _TuiLayoutDef.
12747 (struct tui_source_element): Rename _TuiSourceElement.
12748 (struct tui_data_element): Rename _TuiDataElement.
12749 (struct tui_command_element): Rename _TuiCommandElement.
12750 (struct tui_locator_element): Rename _TuiLocatorElement.
12751 (union tui_which_element): Define.
12752 (struct tui_win_element): Rename _TuiWinElement.
12753 (struct tui_data_info): Rename _TuiDataInfo.
12754 (struct tui_source_info): Rename _TuiSourceInfo.
12755 (struct tui_command_info): Rename _TuiCommandInfo.
12756 (tui_initialize_static_data): Rename initializeStaticData.
12757 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
12758 (tui_alloc_win_info): Rename allocWinInfo.
12759 (tui_init_generic_part): Rename initGenericPart.
12760 (tui_init_win_info): Rename initWinInfo.
12761 (tui_alloc_content): Rename allocContent.
12762 (tui_add_content_elements): Rename addContentElements.
12763 (tui_init_content_element): Rename initContentElement.
12764 (tui_free_window): Rename freeWindow.
12765 (tui_free_win_content): Rename freeWinContent.
12766 (tui_free_data_content): Rename freeDataContent.
12767 (tui_free_all_source_wins_content): Rename
12768 freeAllSourceWinsContent.
12769 (tui_del_window): Rename tuiDelWindow.
12770 (tui_del_data_windows): Rename tuiDelDataWindows.
12771 (tui_partial_win_by_name): Rename partialWinByName.
12772 (tui_win_name): Rename winName.
12773 (tui_current_layout): Rename currentLayout.
12774 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
12775 (tui_term_height): Rename termHeight.
12776 (tui_set_term_height_to): Rename setTermHeightTo.
12777 (tui_term_width): Rename termWidth.
12778 (tui_set_term_width_to): Rename setTermWidthTo.
12779 (tui_set_gen_win_origin): Rename setGenWinOrigin.
12780 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
12781 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
12782 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
12783 (tui_source_windows): Rename sourceWindows.
12784 (tui_clear_source_windows): Rename clearSourceWindows.
12785 (tui_clear_source_windows_detail): Rename
12786 clearSourceWindowsDetail.
12787 (tui_clear_win_detail): Rename clearWinDetail.
12788 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
12789 (tui_default_tab_len): Rename tuiDefaultTabLen.
12790 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
12791 (tui_win_with_focus): Rename tuiWinWithFocus.
12792 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
12793 (tui_layout_def): Rename tuiLayoutDef.
12794 (tui_win_resized): Rename tuiWinResized.
12795 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
12796 (tui_next_win): Rename tuiNextWin.
12797 (tui_prev_win): Rename tuiPrevWin.
12798 (tui_add_to_source_windows): Rename addToSourceWindows.
12799 * tui/tui-winsource.c, tui/tui-win.c: Update references.
12800 * tui/tui-layout.c, tui/tui-source.c: Ditto.
12801 * tui/tui-stack.c, tui/tui-io.c: Ditto.
12802 * tui/tui.c, tui/tui-data.c: Ditto.
12803 * tui/tui-interp.c, tui/tui-data.c: Ditto.
12804 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
12805
12806 * tui/tui-source.h: Update copyright. Include "tui-data.h".
12807 (struct symtab): Declare.
12808 (tui_set_source_content): Rename tuiSetSourceContent.
12809 (tui_show_symtab_source): Rename tuiShowSource.
12810 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
12811 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
12812 * tui/tui-source.c: Update copyright. Update references.
12813 * tui/tui-win.c, tui/tui-winsource.c: Update references.
12814 * tui/tui-stack.c: Update references.
12815
12816 * tui/tui-win.h: Update copyright. Include "tui-data.h".
12817 (struct tui_win_info): Declare.
12818 (tui_scroll_forward): Rename tuiScrollForward.
12819 (tui_scroll_backward): Rename tuiScrollBackward.
12820 (tui_scroll_left): Rename tuiScrollLeft.
12821 (tui_scroll_right): Rename tuiScrollRight.
12822 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
12823 (tui_resize_all): Rename tuiResizeAll.
12824 (tui_refresh_all_win): Rename tuiRefreshAll.
12825 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
12826 * tui/tui-layout.c, * tui/tui-io.c: Update references.
12827 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
12828 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
12829
12830 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
12831 (tui_erase_data_content): Rename tuiEraseDataContent.
12832 (tui_display_all_data): Rename tuiDisplayAllData.
12833 (tui_check_data_values): Rename tuiCheckDataValues.
12834 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
12835 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
12836 (tui_first_data_element_no_in_line): Rename
12837 tuiFirstDataElementNoInLine.
12838 (tui_delete_data_content_windows): Rename
12839 tuiDeleteDataContentWindows.
12840 (tui_refresh_data_win): Rename tuiRefreshDataWin.
12841 (tui_display_data_from): Rename tuiDisplayDataFrom.
12842 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
12843 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
12844 * tui/tui-win.c, tui/tui-regs.c: Update references.
12845 * tui/tui-layout.c, tui/tui.c: Update references.
12846
12847 * tui/tui-wingeneral.h: Update copyright.
12848 (m_allBeVisible): Delete macro.
12849 (m_allBeInvisible): Delete macro.
12850 (struct tui_gen_win_info): Declare.
12851 (struct tui_win_info): Declare.
12852 (tui_unhighlight_win): Rename unhighlightWin.
12853 (tui_make_visible, tui_make_invisible): Replace makeVisible.
12854 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
12855 (tui_make_window): Rename makeWindow.
12856 (tui_copy_win): Rename copyWin.
12857 (tui_box_win): Rename boxWin.
12858 (tui_highlight_win): Rename highlightWin.
12859 (tui_check_and_display_highlight_if_needed): Rename
12860 checkAndDisplayHighlightIfNeeded.
12861 (tui_refresh_all): Rename refreshAll.
12862 (tui_delete_win): Rename tuiDelwin.
12863 (tui_refresh_win): Rename tuiRefreshWin.
12864 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
12865 (tui_make_visible, tui_make_invisible): New functions.
12866 (tui_make_all_visible, tui_make_all_invisible): New functions.
12867 (make_all_visible): Rename makeAllVisible.
12868 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
12869 * tui/tui-data.c, tui/tui-winsource.c: Update references.
12870 * tui/tui-windata.c, tui/tui-win.c: Update references.
12871 * tui/tui-regs.c, tui/tui-layout.c: Update references.
12872 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
12873
12874 2004-02-06 Mark Kettenis <kettenis@gnu.org>
12875
12876 * proc-api.c (write_with_trace): Initialize local variable to
12877 silence compiler warning.
12878
12879 2004-02-06 Andrew Cagney <cagney@redhat.com>
12880
12881 * tui/tui-source.h: Do not include "defs.h".
12882 (struct tui_win_info): Declare.
12883 (tui_set_source_content_nil): Declare.
12884 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
12885 (union tui_line_or_address): Rename _TuiLineOrAddress.
12886 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
12887 (tui_update_source_window): Rename tuiUpdateSourceWindow.
12888 (tui_update_source_window_as_is): Rename
12889 tuiUpdateSourceWindowAsIs.
12890 (tui_update_source_windows_with_addr): Rename
12891 tuiUpdateSourceWindowsWithAddr.
12892 (tui_update_source_windows_with_line): Rename
12893 tuiUpdateSourceWindowsWithLine.
12894 (tui_clear_source_content): Rename tuiClearSourceContent.
12895 (tui_erase_source_content): Rename tuiEraseSourceContent.
12896 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
12897 (tui_show_source_content): Rename tuiShowSourceContent.
12898 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
12899 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
12900 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
12901 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
12902 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
12903 (tui_update_exec_info): Rename tuiUpdateExecInfo.
12904 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
12905 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
12906 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
12907 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
12908 (struct tui_win_info): Declare.
12909 * tui/tui-stack.c: Update references.
12910 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
12911 * tui/tui-win.c, tui/tui-source.c: Ditto.
12912 * tui/tui.c, tui/tui-disasm.c: Ditto.
12913
12914 2004-02-06 Mark Kettenis <kettenis@gnu.org>
12915
12916 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
12917 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
12918
12919 2004-02-05 Mark Kettenis <kettenis@gnu.org>
12920
12921 * infrun.c (handle_inferior_event): Allow for breakpoint
12922 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
12923 and SIGEMT. Update comments.
12924 * NEWS (Revised SPARC target): Mention support for non-executable
12925 stack.
12926
12927 2004-02-04 Mark Kettenis <kettenis@gnu.org>
12928
12929 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
12930 * inftarg.c: Update copyright year.
12931 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
12932 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
12933 (sparc_xfer_wcookie): New function.
12934 * sparc-tdep.c (sparc_fetch_wcookie): New function.
12935 * Makefile.in (sparc-nat.o): Update dependencies.
12936 * config/sparc/nm-nbsd.h: Include "target.h".
12937 (NATIVE_XFER_WCOOKIE): New define.
12938 (sparc_xfer_wcookie): New prototype.
12939
12940 2004-02-04 Andrew Cagney <cagney@redhat.com>
12941
12942 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
12943 SYSCALL_TRAP function.
12944 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
12945
12946 2004-02-04 Andrew Cagney <cagney@redhat.com>
12947 Daniel Jacobowitz <drow@mvista.com>
12948
12949 * objfiles.h: Delete comments refering to inside_entry_func and
12950 DEPRECATED_FRAME_CHAIN_VALID.
12951 * defs.h (inside_entry_func): Update prototype..
12952 * blockframe.c (inside_entry_func): Rename to
12953 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
12954 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
12955
12956 2004-02-03 Jeff Johnston <jjohnstn@redhat.com>
12957
12958 * breakpoint.c (struct captured_parse_breakpoint_args): Move
12959 outside of #ifdef SOLIB_ADD region.
12960 (do_restore_lang_radix_cleanup): Ditto.
12961 (resolve_pending_breakpoint): Ditto.
12962
12963 2004-02-03 Andrew Cagney <cagney@redhat.com>
12964
12965 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
12966 (process_note_abi_tag_sections): Delete unused function.
12967 (ia64_read_fp): Delete unused function.
12968 (gdbarch_extract_struct_value_address): Delete declaration.
12969
12970 2004-02-02 Andrew Cagney <cagney@redhat.com>
12971
12972 * vax-tdep.c (vax_frame_chain): Delete call to
12973 deprecated_inside_entry_file.
12974 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
12975
12976 2004-02-02 Mark Kettenis <kettenis@gnu.org>
12977
12978 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
12979 column that's "empty" or "same value" when eliminating REG_RA
12980 rules.
12981
12982 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
12983
12984 * NEWS: Add information about new pending breakpoint support.
12985
12986 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
12987
12988 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
12989 and pending fields for pending breakpoint support.
12990 * breakpoint.c (breakpoint_enabled): Add check for not pending.
12991 (condition_command): Only parse condition if not a pending
12992 breakpoint.
12993 (print_one_breakpoint): Add support for pending breakpoints.
12994 (describe_other_breakpoints): Add checks to verify we are not
12995 dealing with pending breakpoints.
12996 (check_duplicates): Don't check pending breakpoints.
12997 (set_raw_breakpoint): Initialize pending flag.
12998 (do_restore_lang_radix_cleanup): New cleanup routine.
12999 (resolve_pending_breakpoint): New function.
13000 (re_enable_breakpoints_in_shlibs): Try and resolve any
13001 pending breakpoints via resolve_pending_breakpoint.
13002 (mention): Add pending breakpoint support.
13003 (parse_breakpoint_sals): Add new parameter to pass to
13004 decode_line_1 to indicate silent errors when files or functions
13005 are not found. Change all callers.
13006 (do_captured_parse_breakpoint): New function.
13007 (break_command_1): Change prototype to return an rc value and to
13008 take an optional pending breakpoint pointer. Support creating
13009 a pending breakpoint if a "not found" form of error occurs when
13010 parsing the breakpoint. Also support resolving an existing pending
13011 breakpoint and be silent if the resolution fails.
13012 (create_breakpoints): Change prototype to take pending breakpoint
13013 pointer. When resolving a pending breakpoint, use the new pointer
13014 to provide a conditional or commands added by the end-user.
13015 (delete_breakpoint): Add appropriate check for pending.
13016 (breakpoint_re_set_one): Ditto.
13017 (do_enable_breakpoint): Ditto.
13018
13019 2004-02-02 David Carlton <carlton@kealia.com>
13020
13021 * valops.c (enum oload_classification): New.
13022 (find_overload_match): Break implementation into separate
13023 functions; delete #if 0'd code; look for symbols within
13024 namespaces.
13025 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
13026 (find_oload_champ,oload_method_static,classify_oload_match): New.
13027 * cp-support.h: Add declaration for cp_func_name; update
13028 declaration for make_symbol_overload_list.
13029 * cp-support.c (cp_func_name): New.
13030 (overload_list_add_symbol): Fix comment, use
13031 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
13032 (make_symbol_overload_list): Take a function name and a namespace
13033 instead of a symbol; change implementation.
13034 (make_symbol_overload_list_using): New.
13035 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
13036
13037 2004-02-02 Fred Fish <fnf@redhat.com>
13038
13039 * main.c (gdb_stdtarg): Move definition to group with other
13040 gdb_stdtarg definitions and update copyright years.
13041 * remote-sim.c (gdb_os_write_stderr): Write output to
13042 gdb_stdtargerr stream instead of gdb_stdtarg stream.
13043 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
13044 gdb_stderr stream and update copyright years.
13045
13046 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
13047
13048 * Makefile.in (mips-linux-nat.o): Update dependencies.
13049 * mips-linux-nat.c: Include mips-tdep.h.
13050
13051 2004-02-01 Roland McGrath <roland@redhat.com>
13052
13053 * sol-thread.c (sol_thread_xfer_partial): New function.
13054 (init_sol_thread_ops): Use that for to_xfer_partial hook.
13055 (init_sol_core_ops): Likewise.
13056
13057 * procfs.c (procfs_xfer_partial): New function.
13058 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
13059 * Makefile.in (procfs.o): Add $(auxv_h) dep.
13060
13061 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
13062 procfs_xfer_auxv function.
13063
13064 * procfs.c (procfs_make_note_section): If we can read
13065 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
13066 * linux-proc.c (linux_make_note_section): Likewise.
13067
13068 * auxv.h: New file.
13069 * auxv.c: New file.
13070 * Makefile.in (auxv_h): New variable.
13071 (COMMON_OBS): Add auxv.o here.
13072 (auxv.o): New target.
13073
13074 * corelow.c (core_xfer_partial): New function.
13075 (init_core_ops): Use it for core_ops.to_xfer_partial.
13076
13077 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
13078 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
13079 macro if that is defined.
13080
13081 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
13082
13083 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
13084 and check the specified thread for each breakpoint.
13085 * breakpoint.h (bpstat_stop_status): Update prototype.
13086 * infrun.c (handle_inferior_event): Update calls to
13087 bpstat_stop_status.
13088
13089 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
13090
13091 * Makefile.in (cli-cmds.o): Add $(readline_h).
13092
13093 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
13094
13095 * cli/cli-cmds.c: Include readline.h.
13096 (complete_command): Pass the start of the last word to
13097 complete_line.
13098
13099 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
13100
13101 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
13102 argument, and change first argument to a CORE_ADDR.
13103 * breakpoint.h (bpstat_stop_status): Update prototype.
13104 * infrun.c (adjust_pc_after_break): Add a new comment.
13105 (handle_inferior_event): Update calls to bpstat_stop_status.
13106
13107 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
13108
13109 * breakpoint.h: Update copyright years.
13110
13111 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
13112
13113 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
13114 (bpstat_stop_status): Don't decrement PC.
13115 * breakpoint.h (software_breakpoint_inserted_here_p): Add
13116 prototype.
13117 * infrun.c (adjust_pc_after_break): New function.
13118 (handle_inferior_event): Call it, early. Remove later references
13119 to DECR_PC_AFTER_BREAK.
13120 (normal_stop): Add commentary.
13121
13122 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
13123
13124 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
13125 2004-01-27 double-free fix.
13126
13127 2004-01-31 Mark Kettenis <kettenis@gnu.org>
13128
13129 * sparc-tdep.c (sparc_fetch_wcookie): New function.
13130 (sparc32_frame_prev_register): Handle StackGhost.
13131 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
13132
13133 2004-01-29 Roland McGrath <roland@redhat.com>
13134
13135 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
13136 * configure: Regenerated.
13137
13138 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
13139 * Makefile.in (procfs.o): Add dep.
13140
13141 2004-01-28 Andrew Cagney <cagney@redhat.com>
13142
13143 * tui/tui-stack.h: Update copyright.
13144 (struct frame_info): Add opaque declaration.
13145 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
13146 (tui_show_locator_content): Rename tuiShowLocatorContent.
13147 (tui_show_frame_info): Rename tuiShowFrameInfo.
13148 * tui/tui-stack.c: Update copyright. Update references.
13149 * tui/tui-winsource.c: Update references.
13150 * tui/tui-win.c: Update references.
13151 * tui/tui-layout.c: Update references.
13152 * tui/tui-hooks.c: Update copyright, update references.
13153 * tui/tui.c: Update copyright, update references.
13154 * tui/tui-disasm.c: Update references.
13155
13156 2004-01-28 David Carlton <carlton@kealia.com>
13157
13158 * dwarf2read.c (add_partial_structure): Use demangled name if
13159 namespace equals "".
13160
13161 2004-01-27 Jim Blandy <jimb@redhat.com>
13162
13163 Clean up misapplied patch:
13164 * dwarf2read.c (determine_prefix): Change one of the two forward
13165 declarations for 'determine_prefix_aux' to a declaration for this.
13166 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
13167 argument to 'die_specification'.
13168
13169 * dwarf2read.c (read_func_scope): Re-indent comment.
13170
13171 2004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
13172
13173 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
13174 b->exp to NULL after freeing so that error during re-parsing or
13175 evaluation of expressions associated with breakpoint don't
13176 eventually lead to re-freeing of storage.
13177 Committed by Andrew Cagney.
13178
13179 2004-01-27 Andrew Cagney <cagney@redhat.com>
13180
13181 * source.c (ambiguous_line_spec): Delete undefined declaration.
13182 * m32r-rom.c (m32r_set_board_address): Delete unused function.
13183 (m32r_set_server_address, m32r_set_download_path): Ditto.
13184 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
13185
13186 2004-01-27 Daniel Jacobowitz <drow@mvista.com>
13187
13188 * dwarf2read.c: Update calls to changed and renamed functions, and
13189 references to moved variables.
13190
13191 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
13192 language, language_defn, list_in_scope, and ftypes members.
13193 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
13194 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
13195 (baseaddr): Remove globals.
13196
13197 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
13198 (set_cu_language, die_is_declaration, die_specification)
13199 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
13200 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
13201 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
13202 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
13203
13204 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
13205 cu.list_in_scope. Don't initialize cu_header_offset.
13206 (add_partial_symbol): Add local baseaddr.
13207 (psymtab_to_symtab_1): Add local baseaddr. Use
13208 objfile->section_offsets for consistency. Don't initialize
13209 cu_header_offset; do initialize cu.header.offset and
13210 cu.list_in_scope.
13211 (read_file_scope, read_func_scope, read_lexical_block_scope)
13212 (dwarf_decode_lines, new_symbol): Add local baseaddr.
13213
13214 2004-01-27 Michael Chastain <mec.gnu@mindspring.com>
13215
13216 * PROBLEMS: Add gdb/1516.
13217
13218 2003-12-29 Robert Millan <robertmh@gnu.org>
13219
13220 Patch committed by Andrw Cagney.
13221 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
13222 * configure.tgt: Match knetbsd*-gnu.
13223
13224 2004-01-26 Andrew Cagney <cagney@redhat.com>
13225
13226 * breakpoint.c (catch_command_1): Delete #ifdef code.
13227 (catch_fork_command_1): Delete #ifdef wrapper.
13228 (catch_exec_command_1): Ditto.
13229 (catch_load_command_1): Ditto.
13230 (catch_unload_command_1): Ditto.
13231
13232 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
13233 (catch_breakpoint): Delete #if0ed function.
13234 (disable_catch_breakpoint): Ditto.
13235 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
13236 (disable_catch, enable_catch, delete_catch): Ditto.
13237
13238 2004-01-26 Andrew Cagney <cagney@redhat.com>
13239
13240 * remote.c (echo_check, quit_flag): Delete variables.
13241 (cisco_kernel_mode): Delete variable.
13242 (minitelnet_return, tty_input, escape_count): Delete variables.
13243 (remote_cisco_mode): Delete variable.
13244 (remote_cisco_open, remote_cisco_close): Delete function.
13245 (remote_cisco_mourn, remote_cisco_wait): Delete function.
13246 (init_remote_cisco_ops): Delete function.
13247 (_initialize_remote): Do not install "remote cisco" code.
13248 (read_frame): Delete cisco specific code.
13249 (remote_info_process): Delete function.
13250 (remote_wait): Delete cisco specific code.
13251 (remote_cisco_section_offsets): Delete function.
13252 (remote_cisco_objfile_relocate): Delete function.
13253 (remote_async_wait): Delete cisco specific code.
13254 (minitelnet, readtty, readsocket): Delete function.
13255
13256 2004-01-26 Andrew Cagney <cagney@redhat.com>
13257
13258 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
13259 comments mentioning extract_returned_value_address.
13260 * infcmd.c (print_return_value): Update. Add comments on
13261 extract_returned_value_address.
13262 * stack.c (return_command): Add comments on
13263 extract_returned_value_address.
13264 * values.c: Update comment.
13265 * m32r-tdep.c: Update comment.
13266 * sparc-tdep.c: Update comment.
13267 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
13268 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
13269 * sh64-tdep.c (sh64_gdbarch_init): Update.
13270 * sh-tdep.c (sh_gdbarch_init): Update.
13271 * s390-tdep.c (s390_gdbarch_init): Update.
13272 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
13273 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
13274 * m68k-tdep.c (m68k_gdbarch_init): Update.
13275 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
13276 * m32r-tdep.c (m32r_gdbarch_init): Update.
13277 * ia64-tdep.c (ia64_gdbarch_init): Update.
13278 * h8300-tdep.c (h8300_gdbarch_init): Update.
13279 * frv-tdep.c (frv_gdbarch_init): Update.
13280 * arm-tdep.c (arm_gdbarch_init): Update.
13281 * alpha-tdep.c (alpha_gdbarch_init): Update.
13282
13283 2004-01-26 Andrew Cagney <cagney@redhat.com>
13284
13285 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
13286 SYMBOL_LOCATION_FUNCS
13287 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
13288 "struct symbol_ops".
13289 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
13290 type to "struct symbol_ops".
13291 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
13292 (struct symbol): Replace ".aux_value.loc.funcs" and
13293 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
13294 (SYMBOL_OBJFILE): Delete macro.
13295 (SYMBOL_LOCATION_FUNCS): Delete macro.
13296 (SYMBOL_LOCATION_BATON): Update.
13297 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
13298 intead of SYMBOL_LOCATION_FUNCS.
13299 * ax-gdb.c (gen_var_ref): Ditto.
13300 * printcmd.c (address_info): Ditto.
13301 * findvar.c (read_var_value): Ditto.
13302 (symbol_read_needs_frame): Ditto.
13303
13304 2004-01-26 Andrew Cagney <cagney@redhat.com>
13305
13306 * dwarf2read.c (read_func_scope): Document frame-base hack.
13307
13308 2004-01-25 Mark Kettenis <kettenis@gnu.org>
13309
13310 * infcmd.c (print_return_value): Plug memory leak; delete
13311 ui_stream object. Rename argument `structure_return' to
13312 `struct_return'.
13313
13314 2004-01-25 Mark Kettenis <kettenis@gnu.org>
13315
13316 * infcmd.c (print_return_value): Wrap long lines.
13317 (finish_command_continuation, finish_command): Remove unused
13318 variable `funcaddr'. Fix some coding-standards problems.
13319
13320 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
13321 SECT_SIZE is large enough, not whether it's exactly the right size.
13322 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
13323 TDEP->fpregset to zero.
13324
13325 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
13326 floating-point registers for traditional NetBSD core files.
13327 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
13328 TDEP->sizeof_fpregset here.
13329
13330 2004-01-25 Mark Kettenis <kettenis@gnu.org>
13331
13332 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
13333 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
13334 function with code split out from
13335 sparc32nbsd_sigcontext_frame_cache.
13336 (sparc32nbsd_sigcontext_frame_cache): Use
13337 sparc32nbsd_sigcontext_saved_regs.
13338 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
13339 OpenBSD.
13340 * sparcobsd-tdep.c: New file.
13341 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
13342 (sparcobsd-tdep.o): New dependency.
13343 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
13344 * config/sparc/obsd.mt: New file.
13345
13346 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
13347 TDEP->fpregset to be initialized to enable core file register
13348 sets.
13349
13350 2004-01-24 Mark Kettenis <kettenis@gnu.org>
13351
13352 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
13353 Add opaque declarations.
13354 (sparc64nbsd_sigcontext_saved_regs): New prototype.
13355 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
13356 function with code split out from
13357 sparc64nbsd_sigcontext_frame_cache.
13358 (sparc64nbsd_sigcontext_frame_cache): Use
13359 sparc64nbsd_sigcontext_saved_regs.
13360 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
13361 OpenBSD.
13362 * sparc64obsd-tdep.c: New file.
13363 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
13364 (sparc64obsd-tdep.o): New dependency.
13365 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
13366 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
13367 * config/sparc/obsd64.mt: New file.
13368
13369 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
13370 read the instruction at PC.
13371
13372 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
13373 value of GDB_OSABI_DEFAULT.
13374 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
13375 instead of GDB_OSABI_NETBSD_AOUT.
13376
13377 2004-01-24 Nick Roberts <nick@nick.uklinux.net>
13378
13379 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
13380 copyright.
13381
13382 2004-01-23 Andrew Cagney <cagney@redhat.com>
13383
13384 * printcmd.c (display_command): Replace tui_set_display call with
13385 tui_set_layout_for_display_command.
13386 * tui/tui.h (enum tui_win_type): Define.
13387 (tui_set_layout): Delete declaration.
13388 (tui_set_layout_for_display_command): Rename set_tui_layout.
13389 * tui/tui-data.h (enum tui_layout_type): Define.
13390 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
13391 "tui.h".
13392 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
13393 (tui_default_win_height): Rename tuiDefaultWinHeight.
13394 (tui_default_win_viewport_height): Rename
13395 tuiDefaultWinViewportHeight.
13396 (tui_set_layout): RenametuiSetLayout.
13397 * tui/tui-layout.c: Update references.
13398 * tui/tui.c: Update references.
13399 * tui/tui-disasm.c: Update references.
13400
13401 2004-01-23 David Carlton <carlton@kealia.com>
13402
13403 Partial workaround for PR c++/1511:
13404 * cp-namespace.c: Include frame.h.
13405 (cp_lookup_transparent_type): New
13406 (cp_lookup_transparent_type_loop): New.
13407 * cp-support.h: Declare cp_lookup_transparent_type.
13408 * symtab.c (basic_lookup_transparent_type): Renamed from
13409 lookup_transparent_type.
13410 (lookup_transparent_type): Replace old body by a call to
13411 current_language->la_lookup_transparent_type.
13412 * symtab.h: Update copyright. Declare
13413 basic_lookup_transparent_type.
13414 * language.h: Update copyright.
13415 (struct language_defn): Add la_lookup_transparent_type.
13416 * language.c: Update copyright.
13417 (unknown_language_defn): Add basic_lookup_transparent_type.
13418 (auto_language_defn): Add basic_lookup_transparent_type.
13419 (local_language_defn): Add basic_lookup_transparent_type.
13420 * ada-lang.c: Update copyright.
13421 (ada_language_defn): Add basic_lookup_transparent_type.
13422 * c-lang.c: Update copyright.
13423 (c_language_defn): Add basic_lookup_transparent_type.
13424 (cplus_language_defn): Add basic_lookup_transparent_type.
13425 (asm_language_defn): Add basic_lookup_transparent_type.
13426 (minimal_language_defn): Add basic_lookup_transparent_type.
13427 * f-lang.c: Update copyright.
13428 (f_language_defn): Add basic_lookup_transparent_type.
13429 * jv-lang.c: Update copyright.
13430 (java_language_defn): Add basic_lookup_transparent_type.
13431 * m2-lang.c: Update copyright.
13432 (m2_language_defn): Add basic_lookup_transparent_type.
13433 * objc-lang.c: Update copyright.
13434 (objc_language_defn): Add basic_lookup_transparent_type.
13435 * p-lang.c: Update copyright.
13436 (p_language_defn): Add basic_lookup_transparent_type.
13437 * scm-lang.c: Update copyright.
13438 (scm_language_defn): Add basic_lookup_transparent_type.
13439 * Makefile.in (cp-namespace.o): Depend on frame.h.
13440
13441 2004-01-23 David Carlton <carlton@kealia.com>
13442
13443 Patch for PR c++/1520:
13444 * dwarf2read.c (read_func_scope): Set processing_current_prefix
13445 properly if we have a specification die.
13446 (determine_prefix_aux): Rename from determine_prefix.
13447 (determine_prefix): Like the old determine_prefix, but never
13448 returns NULL.
13449
13450 2004-01-23 Theodore A. Roth <troth@openavr.org>
13451
13452 * avr-tdep.c: Update copyright.
13453 (avr_iaddr_p): Delete unused function.
13454 (avr_saddr_p): Delete unused function.
13455
13456 2004-01-23 David Carlton <carlton@kealia.com>
13457
13458 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
13459 Fix for PR symtab/1534.
13460
13461 2004-01-23 Mark Kettenis <kettenis@gnu.org>
13462
13463 * NEWS (New native configurations): Mention OpenBSD/sparc and
13464 OpenBSD/sparc64.
13465 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
13466 * configure.host: Likewise.
13467 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
13468 handler for OpenBSD.
13469 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
13470
13471 2004-01-22 Mark Kettenis <kettenis@gnu.org>
13472
13473 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
13474 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
13475
13476 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
13477 * cli/cli-cmds.c (shell_escape): Likewise.
13478
13479 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
13480 OpenBSD .note.openbsd.ident sections.
13481
13482 2004-01-22 David Carlton <carlton@kealia.com>
13483
13484 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
13485 get_scope_pc_bounds.
13486 (read_file_scope): Ditto.
13487 (get_scope_pc_bounds): New function, produced by extracting code
13488 from the above two functions, consolidating it, and adding support
13489 for DW_TAG_namespace.
13490
13491 2004-01-22 Mark Kettenis <kettenis@gnu.org>
13492
13493 * osabi.c (MAX_NOTESZ): New define.
13494 (check_note): New function.
13495 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
13496 check_note.
13497
13498 2004-01-21 Roland McGrath <roland@redhat.com>
13499
13500 * MAINTAINERS (write after approval): Add myself.
13501
13502 2004-01-21 Eli Zaretskii <eliz@gnu.org>
13503
13504 * utils.c (init_page_info): Move declarations of `rows' and
13505 `cols' before the __GO32__-specific code. Move the closing brace
13506 outside the #ifdef __GO32__..#endif block.
13507 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
13508
13509 2004-01-21 Paul Brook <paul@codesourcery.com>
13510
13511 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
13512 BPSTAT_WHAT_CHECK_SHLIBS.
13513
13514 2004-01-21 Paul Brook <paul@codesourcery.com>
13515
13516 * MAINTAINERS: Add myself to write-after-approval.
13517
13518 2004-01-20 Andrew Cagney <cagney@redhat.com>
13519
13520 * ax-gdb.c (print_axs_value): Delete unused function.
13521 * jv-lang.c (java_lookup_type): Delete unused function.
13522 * cli/cli-dump.c (dump_filetype): Delete unused function.
13523 * remote-mips.c (remote_mips_insert_hw_breakpoint)
13524 (remote_mips_remove_hw_breakpoint): Delete unused functions.
13525 (mips_getstring): Delete unused function.
13526 (pmon_insert_breakpoint): Delete #if0ed function.
13527 (PMON_MAX_BP): Delete #if0ed MACRO.
13528 (mips_pmon_bp_info): Delete #if0ed variable.
13529 (pmon_remove_breakpoint): Delete #if0ed function.
13530 * monitor.c (monitor_write_even_block): Delete unused function.
13531 (monitor_write_memory_block): Delete #if0ed code.
13532 * dink32-rom.c (dink32_load): Delete unused function.
13533 (_initialize_dink32_rom): Delete #if0ed code.
13534 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
13535
13536 * tui/tui-command.c: Update references.
13537 * tui/tui-io.c: Update references.
13538 * tui/tui-command.h: Update copyright.
13539 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
13540
13541 * source.c (ambiguous_line_spec): Delete never-defined function.
13542 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
13543 * gdbtypes.c (add_name, add_mangled_type): Ditto.
13544 * cli/cli-cmds.c (validate_comname): Ditto.
13545
13546 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
13547 "tui-data.h".
13548 (tui_set_disassem_content): Rename tuiSetDisassemContent.
13549 (tui_show_disassem): Rename tuiShowDisassem.
13550 (tui_show_disassem_and_update_source): Rename
13551 tuiVerticalDisassemScroll.
13552 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
13553 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
13554 * tui/tui.h: Update copyright.
13555 (enum tui_status): Define.
13556 * tui/tui-data.h (enum tui_scroll_direction): Define.
13557 * tui/tui-disasm.c: Update copyright. Update references.
13558 * tui/tui-winsource.c: Update copyright. Update references.
13559 * tui/tui-win.c: Update references.
13560 * tui/tui-layout.c: Update references.
13561
13562 2004-01-20 Andrew Cagney <cagney@redhat.com>
13563
13564 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
13565 sym2 to start of block.
13566
13567 2004-01-19 Michael Chastain <mec.gnu@mindspring.com>
13568
13569 * MAINTAINERS: Delete mmalloc.
13570 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
13571 * NEWS: Mention removal of --with-malloc.
13572 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
13573 * config.in: Regenerate.
13574 * configure: Regenerate.
13575 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
13576 USE_MMALLOC, MMCHECK_FORCE.
13577 * gdbinit.in: Remove mmalloc.
13578 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
13579 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
13580 * config/i386/go32.mh: Likewise.
13581 * config/i386/interix.mh: Likewise.
13582 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
13583
13584 2004-01-19 Jeff Johnston <jjohnstn@redhat.com>
13585
13586 * linespec.c (decode_variable, symtab_from_filename): Call
13587 error_silent with error message instead of throwing an exception
13588 directly.
13589 * defs.h (error_silent, error_output_message): Add prototypes.
13590 (catch_exceptions_with_msg): Ditto.
13591 * utils.c (error_silent, error_output_message): New functions.
13592 * top.c (catch_exceptions_with_msg): New function.
13593
13594 2004-01-20 Nick Roberts <nick@nick.uklinux.net>
13595
13596 * mi/mi-cmds.h (enum print_values): Add definition.
13597
13598 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
13599 type and value for simple data types and just the name and type
13600 for complex ones, if required.
13601
13602 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
13603 children, if required.
13604
13605 2004-01-19 Kevin Buettner <kevinb@redhat.com>
13606
13607 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
13608 unused declarations.
13609
13610 2004-01-19 Andrew Cagney <cagney@redhat.com>
13611
13612 * top.h (mapped_symbol_files): Delete declaration.
13613 * main.c (captured_main): Delete option "m" and "mapped".
13614 * objfiles.c (mapped_symbol_files): Delete variable.
13615 * symfile.c (symbol_file_command): Delete mmap code.
13616 (symbol_file_add_with_addrs_or_offsets): Ditto.
13617 (add_symbol_file_command, reread_separate_symbols): Ditto.
13618 * objfiles.h (OBJF_MAPPED): Delete.
13619 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
13620 (free_objfile) [USE_MMALLOC]: Ditto.
13621 (open_existing_mapped_file): Delete function.
13622 (open_mapped_file): Delete function.
13623 (map_to_file): Delete function.
13624
13625 2004-01-19 Kevin Buettner <kevinb@redhat.com>
13626
13627 * infrun.c (step_into_function): Account for possible breakpoint
13628 adjustment when computing ``stop_func_start''.
13629
13630 2004-01-19 Kevin Buettner <kevinb@redhat.com>
13631
13632 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
13633 the region size against the size of a pointer, not the size of
13634 a register as given by DEPRECATED_REGISTER_SIZE.
13635
13636 2004-01-19 Andrew Cagney <cagney@redhat.com>
13637
13638 * tui/tui-regs.h: Include "tui-data.h".
13639 (tuiFirstRegElementNoInLine): Delete declaration.
13640 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
13641 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
13642 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
13643 (tui_calculate_regs_column_count): Rename
13644 tuiCalculateRegsColumnCount.
13645 (tui_check_register_values): Rename tuiCheckRegisterValues.
13646 (tui_show_registers): Rename tuiShowRegisters.
13647 (tui_display_registers_from_line): Rename
13648 tuiDisplayRegistersFromLine.
13649 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
13650 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
13651 (tui_first_reg_element_no_inline): Rename
13652 tuiFirstRegElementNoInLine.
13653 * tui/tui-data.h: Update copyright.
13654 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
13655 * tui/tui-windata.c: Update copyright, update references.
13656 * tui/tui-regs.c: Update copyright, update references.
13657 * tui/tui-win.c: Update copyright, update references.
13658 * tui/tui-layout.c: Update copyright, update references.
13659
13660 2004-01-18 Andrew Cagney <cagney@redhat.com>
13661
13662 * tui/tui-io.c: Update copyright.
13663 (key_is_end_sequence, key_is_backspace): New functions.
13664 (key_is_command_char, key_is_start_sequence): New function.
13665 (tui_getc): Update references.
13666 * tui/tui-io.h: Update copyright.
13667 (m_tuiStartNewLine): Delete macro.
13668 (m_isBackspace, m_isDeleteChar): Delete macros.
13669 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
13670 (m_isNextPage, m_isPrevPage): Delete macros.
13671 (m_isLeftArrow, m_isRightArrow): Delete macros.
13672 (m_isXdbStyleCommandChar): Delete macro.
13673 (key_is_start_sequence): Declare, replace m_isStartSequence.
13674 (key_is_end_sequence): Declare, replace m_isEndSequence.
13675 (key_is_backspace): Declare ,replace m_isBackspace.
13676 (key_is_command_char): Declare, replace m_isCommandChar.
13677 * tui/tui-command.c: Update copyright.
13678 (tuiDispatchCtrlChar): Update references.
13679
13680 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
13681 tuiSourceWin.h.
13682
13683 * tui/tui-command.c: Rename tui/tuiCommand.c.
13684 * tui/tui-command.h: Rename tui/tuiCommand.h.
13685 * tui/tui-data.c: Rename tui/tuiData.c.
13686 * tui/tui-data.h: Rename tui/tuiData.h.
13687 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
13688 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
13689 * tui/tui-io.c: Rename tui/tuiIO.c.
13690 * tui/tui-io.h: Rename tui/tuiIO.h.
13691 * tui/tui-layout.c: Rename tui/tuiLayout.c.
13692 * tui/tui-layout.h: Rename tui/tuiLayout.h.
13693 * tui/tui-regs.c: Rename tui/tuiRegs.c.
13694 * tui/tui-regs.h: Rename tui/tuiRegs.h.
13695 * tui/tui-source.c: Rename tui/tuiSource.c.
13696 * tui/tui-source.h: Rename tui/tuiSource.h.
13697 * tui/tui-stack.c: Rename tui/tuiStack.c.
13698 * tui/tui-stack.h: Rename tui/tuiStack.h.
13699 * tui/tui-win.c: Rename tui/tuiWin.c.
13700 * tui/tui-win.h: Rename tui/tuiWin.h.
13701 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
13702 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
13703 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
13704 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
13705 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
13706 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
13707 * tui/tui-file.c: Update includes.
13708 * tui/tui-hooks.c: Update includes.
13709 * tui/tui-interp.c: Update includes.
13710 * tui/tui.c: Update includes.
13711 * Makefile.in: Update all tui/ dependencies.
13712 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
13713
13714 * Makefile.in: Update copyright. Update dependencies.
13715
13716 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
13717 problem.
13718
13719 2004-01-18 Andrew Cagney <cagney@redhat.com>
13720
13721 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
13722 instead of register_gdbarch_init.
13723
13724 * remote-sds.c (tohex): Delete unused function. Update copyright.
13725 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
13726 * v850-tdep.c (v850_register_virtual_size): Ditto.
13727 * target.c (normal_target_post_startup_inferior): Ditto.
13728 * source.c (ambiguous_line_spec): Ditto.
13729 * remote.c (adapt_remote_get_threadinfo): Ditto.
13730 * mi/mi-out.c (out_field_fmt): Ditto.
13731 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
13732 (output_control_change_notification): Ditto.
13733 * m68k-tdep.c (m68k_register_byte): Ditto.
13734 (m68k_remote_breakpoint_from_pc): Ditto.
13735 * ui-out.c (init_ui_out_state): Delete unused declaration.
13736 * stabsread.c (search_value): Ditto.
13737 * mi/mi-cmd-env.c (env_cli_command): Ditto.
13738 * maint.c (print_section_table): Ditto.
13739 * infrun.c (set_follow_fork_mode_command): Ditto.
13740
13741 2004-01-18 Mark Kettenis <kettenis@gnu.org>
13742
13743 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
13744 DW_CFA_def_cfa_exporession. Add support for
13745 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
13746 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
13747
13748 2004-01-18 Andrew Cagney <cagney@redhat.com>
13749
13750 * ocd.c: Update copyright.
13751 (bdm_read_register_command): Delete unused function.
13752 (_initialize_remote_ocd): Delete commented out reference.
13753 (get_quoted_char, reset_packet): Delete #if0ed function.
13754 (output_packet, put_quoted_char): Delete #if0ed function.
13755 (stu_put_packet, stu_get_packet): Delete #if0ed function.
13756 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
13757 (BDM_BREAKPOINT): Delete #if0ed macro.
13758 (remote_timeout): Delete #if0ed variable.
13759
13760 2004-01-18 Mark Kettenis <kettenis@gnu.org>
13761
13762 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
13763 (core-sol2.o): Remove dependency.
13764 * core-sol2.c: Remove file.
13765
13766 2004-01-17 Andrew Cagney <cagney@redhat.com>
13767
13768 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
13769 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
13770 enums.
13771
13772 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13773
13774 * remote.c: Update copyright years.
13775
13776 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13777
13778 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
13779
13780 2004-01-17 Andrew Cagney <cagney@redhat.com>
13781
13782 * mdebugread.c: Update copyright.
13783 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
13784 (parse_type, parse_procedure): Ditto.
13785 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
13786
13787 * cris-tdep.c (cris_store_struct_return): Put back accidently
13788 deleted function.
13789
13790 * gdbarch.sh: Update copyright year.
13791 * gdbarch.h, gdbarch.c: Re-generate.
13792
13793 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13794
13795 Suggested by George Anzinger.
13796 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
13797 correct stack offset. Include unknown opcode numbers in the error
13798 message.
13799
13800 2004-01-17 Andrew Cagney <cagney@redhat.com>
13801
13802 * x86-64-tdep.c (x86_64_init_abi): No need to clear
13803 extract_struct_value_address, i386 does not set it.
13804 * sparc64-tdep.c (sparc64_init_abi): Do not set
13805 extract_struct_value_address, never called.
13806 (sparc64_extract_struct_value_address): Delete function.
13807 * m68hc11-tdep.c: Update copyright.
13808 (m68hc11_gdbarch_init): Delete redundant assignment of
13809 extract_struct_value_address.
13810 * i386-tdep.c: Update copyright.
13811 (i386_gdbarch_init): Do not set extract_struct_value_address,
13812 never called.
13813 (i386_extract_struct_value_address): Delete function.
13814 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
13815 extract_struct_value_address, never called.
13816 (sparc32_extract_struct_value_address): #if 0 function. Add
13817 comments explaining its future.
13818
13819 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13820
13821 * arm-tdep.c (arm_write_pc): New function.
13822 (arm_gdbarch_init): Call set_gdbarch_write_pc.
13823
13824 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13825
13826 * breakpoint.c (must_shift_inst_regs): Delete.
13827 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
13828 and SHIFT_INST_REGS.
13829 * infcmd.c (step_1, step_1_continuation): Delete references to
13830 SHIFT_INST_REGS.
13831 * infrun.c (keep_going): Likewise.
13832 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
13833 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
13834
13835 2004-01-17 Andrew Cagney <cagney@redhat.com>
13836
13837 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13838 * gdbarch.h, gdbarch.c: Re-generate.
13839 * infcmd.c (print_return_value): Delete reference to
13840 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
13841
13842 * cris-tdep.c (cris_gdbarch_init): Do not set
13843 deprecated_extract_struct_value_address.
13844
13845 * xstormy16-tdep.c: Update copyright.
13846 (xstormy16_extract_struct_value_address): Update to current
13847 extract struct value address interface.
13848 (xstormy16_gdbarch_init): Set extract_struct_value_address.
13849 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
13850 current extract struct value address interface.
13851 (sh64_gdbarch_init): Set extract_struct_value_address.
13852
13853 * cris-tdep.c: Update copyright.
13854 (cris_extract_struct_value_address): Delete function.
13855 (struct_return_address): Delete variable.
13856 (cris_store_struct_return): Do not set struct_return_address.
13857
13858 * mcore-tdep.c: Update copyright.
13859 (mcore_extract_struct_value_address): Delete function. Update
13860 comments.
13861 (mcore_gdbarch_init): Update.
13862 * mn10300-tdep.c: Update copyright.
13863 (mn10300_extract_struct_value_address): Delete function.
13864 (mn10300_gdbarch_init): Update.
13865 * v850-tdep.c: Update copyright.
13866 (v850_extract_struct_value_address): Delete.
13867 (v850_gdbarch_init): Update.
13868 * ns32k-tdep.c: Update copyright.
13869 (ns32k_extract_struct_value_address): Delete.
13870 (ns32k_gdbarch_init): Update.
13871 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
13872 (hppa_gdbarch_init): Update.
13873 * vax-tdep.c: Update copyright.
13874 (vax_extract_struct_value_address): Delete.
13875 (vax_gdbarch_init): Update.
13876
13877 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
13878 * gdbarch.h, gdbarch.c: Re-generate.
13879 * procfs.c (procfs_fetch_registers): Delete reference to
13880 DEPRECATED_NPC_REGNUM.
13881 (procfs_store_registers): Ditto.
13882 * regcache.c (generic_target_write_pc): Simplify.
13883 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
13884
13885 * core-sol2.c (fetch_core_registers): Replace
13886 DEPRECATED_NPC_REGNUM with equivalent tdep value.
13887
13888 * hppa-tdep.c: Update copyright year.
13889 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
13890 NPC_REGNUM.
13891 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
13892
13893 * mips-tdep.c (mips_write_pc): New function.
13894 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
13895 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
13896 (mips_find_saved_regs, mips_software_single_step: Ditto.
13897 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
13898 mips_init_extra_frame_info, mips_pop_frame): Ditto.
13899
13900 2004-01-17 Andrew Cagney <cagney@redhat.com>
13901
13902 * mips-tdep.c: Re-indent. Group functions by ABI.
13903
13904 2004-01-17 Andrew Cagney <cagney@redhat.com>
13905
13906 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
13907 * gdbarch.c: Re-generate.
13908 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
13909 DECR_PC_AFTER_BREAK to zero.
13910 * vax-tdep.c (vax_gdbarch_init): Ditto.
13911 * v850-tdep.c (v850_gdbarch_init): Ditto.
13912 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
13913 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
13914 * sh-tdep.c (sh_gdbarch_init): Ditto.
13915 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
13916 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
13917 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
13918 * mips-tdep.c (mips_gdbarch_init): Ditto.
13919 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
13920 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13921 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
13922 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
13923 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
13924 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
13925 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
13926 * frv-tdep.c (frv_gdbarch_init): Ditto.
13927 * cris-tdep.c (cris_gdbarch_init): Ditto.
13928 * avr-tdep.c (avr_gdbarch_init): Ditto.
13929 * arm-tdep.c (arm_gdbarch_init): Ditto.
13930 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
13931
13932 2004-01-17 J. Brobecker <brobecker@gnat.com>
13933
13934 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
13935 Delete, no longer used.
13936 (read_subrange_type): New function, mostly extracted from
13937 read_array_type().
13938 (read_array_type): Replace extracted code by call to
13939 read_subrange_type().
13940 (dwarf2_get_attr_constant_value): New function.
13941 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
13942 (add_partial_symbol): Likewise.
13943 (process_die): Likewise.
13944 (new_symbol): Likewise.
13945 (read_type_die): Likewise.
13946
13947 2004-01-16 Andrew Cagney <cagney@redhat.com>
13948
13949 * symfile.c: Update copyright year.
13950 (compare_symbols): Delete unused function.
13951 * stabsread.c: Update copyright year.
13952 (lrs_general_complaint): Delete unused function.
13953 (ref_search_value): Ditto.
13954 (get_substring): Delete declaration.
13955 * sh64-tdep.c: Update copyright year.
13956 (sh64_get_gdb_regnum): Delete unused function.
13957 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
13958 Delete unused function.
13959
13960 2004-01-17 Mark Kettenis <kettenis@gnu.org>
13961
13962 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
13963 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
13964
13965 2004-01-16 Andrew Cagney <cagney@redhat.com>
13966
13967 Changes from Peter Schauer.
13968 * rs6000-tdep.c: Update copyright year.
13969 (rs6000_push_dummy_call): Update the stack pointer before
13970 accessing the corresponding stack region.
13971 * rs6000-nat.c: Update copyright year.
13972 (set_host_arch): Set "info.abfd" to "exec_bfd".
13973
13974 2004-01-15 Mark Kettenis <kettenis@gnu.org>
13975
13976 * blockframe.c: Update copyright year.
13977 (inside_entry_func): Don't treat a zero PC specially.
13978
13979 2004-01-14 Elena Zannoni <ezannoni@redhat.com>
13980
13981 * gcore.c (gcore_copy_callback): Use paddr_d to print size
13982 variable.
13983 (gcore_create_callback): Ditto. Skip any memory segment that has
13984 no permissions set.
13985
13986 2004-01-14 David Carlton <carlton@kealia.com>
13987
13988 Change symbols for C++ nested types to contain the fully qualified
13989 name, if possible. (At least in the DWARF-2 case.) Partial fix
13990 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
13991 c++/895.
13992 * c-exp.y (qualified_type): Handle types nested within classes.
13993 * cp-namespace.c: Update comments.
13994 (cp_set_block_scope): Delete #if 0.
13995 (cp_lookup_nested_type): Handle types nested within classes.
13996 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
13997 when appropriate.
13998 (add_partial_symbol): Add the name of the enclosing namespace to
13999 types.
14000 (pdi_needs_namespace): New.
14001 (add_partial_namespace): Tweak comment.
14002 (add_partial_structure): New.
14003 (psymtab_to_symtab_1): Initialize processing_current_prefix
14004 here...
14005 (process_die): instead of here.
14006 (read_structure_scope): Try to figure out the name of the class or
14007 namespace that the structure might be defined within.
14008 (read_enumeration): Generate fully-qualified names, if possible.
14009 (read_namespace): Don't set name to NULL.
14010 (die_specification): New.
14011 (new_symbol): Generate fully-qualified names for types.
14012 (read_type_die): Determine appropriate prefix.
14013 (determine_prefix): New.
14014 (typename_concat): New.
14015 (class_name): New.
14016 * valops.c (value_aggregate_elt): Pass NOSIDE to
14017 value_struct_elt_for_reference.
14018 (value_struct_elt_for_reference): Make static, add NOSIDE
14019 parameter, call value_maybe_namespace_elt as a last resort.
14020 (value_namespace_elt): Break out code into
14021 value_maybe_namespace_elt.
14022 (value_maybe_namespace_elt): New.
14023
14024 2004-01-12 Andrew Cagney <cagney@redhat.com>
14025
14026 * mips-tdep.c (mips_convert_register_p): Handle both raw and
14027 cooked floating-point registers.
14028 (mips_gdbarch_init): Set convert_register_p, register_to_value,
14029 and value_to_register.
14030
14031 2004-01-13 Andrew Cagney <cagney@redhat.com>
14032
14033 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
14034 * gdbarch.c: Re-generate.
14035 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
14036 FUNCTION_START_OFFSET.
14037 * v850-tdep.c (v850_gdbarch_init): Ditto.
14038 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
14039 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
14040 * sh-tdep.c (sh_gdbarch_init): Ditto.
14041 * s390-tdep.c (s390_gdbarch_init): Ditto.
14042 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
14043 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
14044 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
14045 * mips-tdep.c (mips_gdbarch_init): Ditto.
14046 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
14047 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
14048 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14049 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
14050 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
14051 * i386-tdep.c (i386_gdbarch_init): Ditto.
14052 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
14053 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
14054 * frv-tdep.c (frv_gdbarch_init): Ditto.
14055 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
14056 * cris-tdep.c (cris_gdbarch_init): Ditto.
14057 * avr-tdep.c (avr_gdbarch_init): Ditto.
14058 * arm-tdep.c (arm_gdbarch_init): Ditto.
14059 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
14060
14061 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
14062
14063 * infrun.c (follow_fork_mode_ask): Remove.
14064 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
14065 (follow_fork): Simplify and remove internal error for
14066 follow_fork_mode_ask.
14067 (_initialize_infrun): Update "set follow-fork-mode" help text.
14068
14069 2004-01-13 Andrew Cagney <cagney@redhat.com>
14070
14071 * configure.in: Update copyright year.
14072 (build_warnings): Add -Wunused-label.
14073 * configure: Re-generate.
14074
14075 2004-01-12 Andrew Cagney <cagney@redhat.com>
14076
14077 * exec.h (exec_ops): Make "extern".
14078
14079 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
14080 the function is void.
14081 (mips_pseudo_register_write): Ditto.
14082
14083 2004-01-12 Andrew Cagney <cagney@redhat.com>
14084
14085 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
14086 call. Never defined.
14087 * sparc-tdep.h (struct frame_info): Add opaque declaration.
14088 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
14089 (struct sparc_gregset, struct regcache): Ditto.
14090 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
14091
14092 2004-01-12 Andrew Cagney <cagney@redhat.com>
14093
14094 * mi/ChangeLog: Delete file. Renamed to ...
14095 * mi/ChangeLog-1999-2003: New file.
14096 * tui/ChangeLog: Delete file. Renamed to ...
14097 * tui/ChangeLog-1998-2003: New file.
14098
14099 2004-01-11 Mark Kettenis <kettenis@gnu.org>
14100
14101 * sparc64nbsd-tdep.c: Include "regset.h".
14102 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
14103 Remove variables.
14104 (fetch_core_registers): Remove function.
14105 (sparc64nbsd_core_fns): Remove variable.
14106 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
14107 functions.
14108 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
14109 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
14110 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
14111
14112 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
14113 sparc_extract_struct_value_address.
14114 (sparc32_gdbarch_init): Set extract_struct_value_address.
14115 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
14116 function.
14117 (sparc64_init_abi): Set extract_struct_value_address. Don't set
14118 return_value_on_stack.
14119
14120 * NEWS: Mention that %cs and %ss have been added to the AMD64
14121 configurations
14122
14123 * frame.c: Update copyright year.
14124 (get_prev_frame): Improve comment.
14125
14126 * sparc64fbsd-tdep.c: Include "regset.h".
14127 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
14128 Remove variables.
14129 (fetch_core_registers): Remove function.
14130 (sparc64fbsd_core_fns): Remove variable.
14131 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
14132 functions.
14133 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
14134 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
14135 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
14136
14137 * sparcnbsd-tdep.c: Include "regset.h".
14138 (fetch_core_registers): Remove function.
14139 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
14140 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
14141 functions.
14142 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
14143 TDEP->fpregset.
14144 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
14145
14146 * sparc-tdep.h (struct regset): Provide opaque declaration.
14147 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
14148 fpregset and sizeof_fpregset members.
14149 * sparc-tdep.c (struct regset): Provide opaque declaration.
14150 (sparc_regset_from_core_section): New function.
14151 (sparc32_gdbarch_init): Initialize TDEP->gregset,
14152 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
14153 Set regset_from_core_section when appropriate.
14154
14155 2004-01-10 Mark Kettenis <kettenis@gnu.org>
14156
14157 * x86-64-tdep.c (amd64_non_pod_p): New function.
14158 (amd64_classify_aggregate): Return class memory for non-POD
14159 C++ structure types.
14160
14161 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
14162 argument. Use it to reserve a register if necessary.
14163 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
14164 amd64_push_arguments.
14165
14166 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
14167
14168 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
14169 register numbers in comments.
14170 * x86-64-tdep.h: Update copyright year.
14171 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
14172 Adjust for addition of %cs and %ss.
14173 * amd64fbsd-nat.c: Update copyright year.
14174 (reg_offset): Add register offsets for %cs and %ss.
14175 * amd64fbsd-tdep.c: Update copyright year.
14176 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
14177 (amd64fbsd_sc_reg_offset): Likewise.
14178 * x86-64-linux-nat.c: Update copyright year.
14179 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
14180 and %ss.
14181 * amd64nbsd-nat.c: Update copyright year.
14182 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
14183 * amd64nbsd-tdep.c: Update copyright year.
14184 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
14185 * x86-64-linux-tdep.c: Update copyright year.
14186 (user_to_gdb_regmap): Add mapping for %cs and %ss.
14187 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
14188 * regformats/reg-x86-64.dat: Add %cs and %ss.
14189
14190 * blockframe.c (inside_entry_func): Reformat. Introduce new local
14191 variables to prevent long lines. Update comments to reflect
14192 reality.
14193
14194 2004-01-09 David Carlton <carlton@kealia.com>
14195
14196 Checked in by Elena Zannoni <ezannoni@redhat.com>.
14197 * dwarf2read.c (read_namespace): Pull out name-generating code
14198 into namespace_name. Rename previous_namespace to previous_prefix
14199 and processing_current_namespace to processing_current_prefix..
14200 (namespace_name): New function.
14201 (add_partial_symbol): Substitute uses of pdi->name with
14202 actual_name.
14203 * cp-support.h: Rename processing_current_namespace to
14204 processing_current_prefix.
14205 Update copyright year.
14206 * cp-namespace.c: Rename processing_current_namespace to
14207 processing_current_prefix.
14208 Update copyright year.
14209
14210 2004-01-09 Andrew Cagney <cagney@redhat.com>
14211
14212 * jv-valprint.c, ser-unix.c: Add missing copyright years.
14213
14214 2004-01-09 Mark Kettenis <kettenis@gnu.org>
14215
14216 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
14217 complaining.
14218 (process_one_symbol): Deal with N_PATCH stabs.
14219
14220 2004-01-09 Elena Zannoni <ezannoni@redhat.com>
14221
14222 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
14223 ifdeffed code.
14224 Update copyright year.
14225
14226 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
14227
14228 * config/pa/tm-hppa.h: Update extern declarations for
14229 hppa32_hpux_frame_saved_pc_in_sigtramp,
14230 hppa32_hpux_frame_base_before_sigtramp, and
14231 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
14232
14233 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
14234
14235 * config/pa/tm-hppah.h: Update copyright years.
14236
14237 2004-01-08 Andrew Cagney <cagney@redhat.com>
14238
14239 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
14240 (mips_o32_reg_struct_has_addr): Delete function.
14241 (mips_gdbarch_init): Update.
14242 (mips_extract_struct_value_address): Delete function.
14243
14244 2004-01-08 David Mosberger <davidm@hpl.hp.com>
14245
14246 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
14247 reality.
14248
14249 2004-01-07 Andrew Cagney <cagney@redhat.com>
14250
14251 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
14252 architecture's elf flags (when available).
14253
14254 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
14255 FPU to the start, check the MIPS FPU when looking for an old
14256 architecture.
14257 (set_mipsfpu_single_command): Update the architecture.
14258 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
14259
14260 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
14261 (mips_mask_address_p): Add "tdep" parameter.
14262 (show_mask_address, mips_addr_bits_remove): Update.
14263 (mips_dump_tdep): Update.
14264 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
14265 (MIPS_STACK_ARGSIZE): Delete macro.
14266 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
14267 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
14268 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
14269 (mips_dump_tdep): Update.
14270 (MIPS_SAVED_REGSIZE): Delete macro.
14271 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
14272 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
14273 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
14274 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
14275 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
14276 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
14277 (mips_pop_frame, return_value_location): Update.
14278 (mips_n32n64_return_value, mips_dump_tdep): Update.
14279
14280 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
14281 MIPS ABI.
14282
14283 * mips-tdep.c: Update copyright.
14284 (mips_gdbarch_init): Merge two code blocks handling the register
14285 name and number layout.
14286
14287 2004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
14288
14289 * tracepoint.c (validate_actionline): Fix segv at EOF
14290
14291 2004-01-07 Michael Chastain <mec.gnu@mindspring.com>
14292
14293 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
14294 properly for static fields.
14295
14296 2004-01-06 Jeff Johnston <jjohnstn@redhat.com>
14297 Jason Molenda <jmolenda@apple.com>
14298
14299 * disasm.c: Update copyright to include 2004.
14300 (do_mixed_source_and_assembly): For uiout asm list
14301 and tuple cleanups, initialize to null_cleanup instead of
14302 NULL and do so prior to loop. Only reset when we close off
14303 the tuple/list. Move check for whether to close off the
14304 asm tuple/list to after dump_insns call where it will be run
14305 on each loop iteration.
14306
14307 2004-01-05 Andrew Cagney <cagney@redhat.com>
14308
14309 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
14310 should be a switch case and not a label.
14311 * mips-tdep.c (mips32_next_pc): Delete unused labels
14312 "greater_equal_branch" and "less_zero_branch".
14313 * jv-valprint.c (java_print_value_fields): Delete unused label
14314 "flush_it".
14315
14316 * target.c (unpush_target): Only close a target that is in the
14317 target stack.
14318
14319 2004-01-05 Mark Kettenis <kettenis@gnu.org>
14320
14321 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
14322 address from [sp + 64] instead of %o2.
14323
14324 * frame.c (get_prev_frame): Don't try to unwind the PC. This
14325 fixes PR backtrace/1476.
14326
14327 2004-01-05 Andrew Cagney <cagney@redhat.com>
14328
14329 * libunwind-frame.h (struct frame_id): Add opaque declaration,
14330 move to start of file.
14331 * i386-tdep.h (struct regcache): Add opaque declaration.
14332 * config/ia64/nm-linux.h (struct target_ops): Add opaque
14333 declaration.
14334 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
14335 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
14336 * win32-nat.c (fake_create_process): Use ISO C style definition.
14337 * stabsread.c (define_symbol): Delete #ifndef
14338 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
14339 stabs_argument_has_addr call, macro never defined.
14340
14341 2004-01-04 Michael Chastain <mec.gnu@mindspring.com>
14342
14343 * op50-rom.c: Delete.
14344 * w89k-rom.c: Delete.
14345 * Makefile.in: Remove references.
14346
14347 2004-01-04 Mark Kettenis <kettenis@gnu.org>
14348
14349 * x86-64-tdep.c: Update copyright year.
14350 (struct amd64_register_info): Rename from x86_64_register_info.
14351 (amd64_register_info): Rename from x86_64_register_info.
14352 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
14353 (amd64_register_name): Rename from x86_64_register_name.
14354 (amd64_register_type): Rename from x86_64_register_type.
14355 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
14356 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
14357 (amd64_dwarf_reg_to_regnum): Rename from
14358 x86_64_dwarf_reg_to_regnum.
14359 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
14360 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
14361 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
14362 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
14363 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
14364 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
14365 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
14366 (amd64_frame_cache): Rename from x86_64_frame_cache.
14367 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
14368 (amd64_frame_prev_register): Rename from
14369 x86_64_frame_prev_register.
14370 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
14371 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
14372 (amd64_sigtramp_frame_cache): Rename from
14373 x86_64_sigtramp_frame_cache.
14374 (amd64_sigtramp_frame_prev_register): Rename from
14375 x86_64_sigtramp_frame_prev_register.
14376 (amd64_sigtramp_frame_unwind): Rename from
14377 x86_64_sigtramp_frame_unwind.
14378 (amd64_sigtramp_frame_sniffer): Rename from
14379 x86_64_sigtramp_frame_sniffer.
14380 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
14381 (amd64_frame_base): Rename from x86_64_frame_base.
14382 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
14383 (amd64_frame_align): Rename from x86_64_frame_align.
14384 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
14385 (amd64_regset_from_core_section): Rename from
14386 x86_64_regset_from_core_section.
14387 (x86_64_init_abi): Update comments.
14388
14389 2004-01-04 Nick Roberts <nick@nick.uklinux.net>
14390
14391 * MAINTAINERS (write after approval): Add myself.
14392
14393 2004-01-04 Mark Kettenis <kettenis@gnu.org>
14394
14395 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
14396 `float' arguments.
14397
14398 2004-01-04 Mark Kettenis <kettenis@gnu.org>
14399
14400 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
14401 such that it mentions a specific version of GCC that exhibits this
14402 bug.
14403
14404 2004-01-03 Mark Kettenis <kettenis@gnu.org>
14405
14406 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
14407 structure that has a single `float' member, store it in %f1 in
14408 addition to %f0.
14409
14410 * sparc-sol2-nat.c: Add missing '\'.
14411
14412 * sparc-tdep.c (sparc32_return_value): New function.
14413 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
14414 Remove functions.
14415 (sparc32_gdbarch_init): Set return_value, don't set
14416 extract_return_value, store_return_value, use_struct_convention
14417 and return_value_on_stack.
14418
14419 * sparc-sol2-nat.c: Add missing ')'.
14420
14421 2004-01-03 J. Brobecker <brobecker@gnat.com>
14422
14423 * infrun.c (handle_step_into_function): New function.
14424 (handle_inferior_event): Extract out some code into the new
14425 function above.
14426
14427 2004-01-03 J. Brobecker <brobecker@gnat.com>
14428
14429 * infrun.c (handle_inferior_event): Move the declaration of
14430 real_stop_pc inside the if blocks where it is used.
14431
14432 2004-01-03 Mark Kettenis <kettenis@gnu.org>
14433
14434 * sparc64-tdep.c (sparc64_16_byte_align_p)
14435 (sparc64_store_floating_fields, sparc64_store_floating_fields):
14436 Use check_typedef to get subtypes of structures and unions.
14437 (sparc64_store_return_value): Fix calculation of the appropriate
14438 offset into VALBUF when storing a structure or union.
14439 (sparc64_return_value): New function.
14440 (sparc64_use_struct_convention): Remove function.
14441 (sparc64_init_abi): Set return_value, don't set
14442 extract_return_value, store_return_value and
14443 use_struct_convention.
14444
14445 2004-01-03 Eli Zaretskii <eliz@elta.co.il>
14446
14447 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
14448 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
14449 gdb/config/alpha/xm-alphaosf.h,
14450 gdb/config/powerpc/tm-ppcle-eabi.h,
14451 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
14452 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
14453 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
14454 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
14455 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
14456 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
14457 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
14458 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
14459 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
14460 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
14461 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
14462 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
14463 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
14464 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
14465 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
14466 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
14467 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
14468 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
14469 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
14470 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
14471 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
14472 Remove lines for .cvsignore files.
14473
14474 2004-01-03 J. Brobecker <brobecker@gnat.com>
14475
14476 * infrun.c: Back out the previous change.
14477
14478 2004-01-03 Mark Kettenis <kettenis@gnu.org>
14479
14480 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
14481 sparc-*-sunos4* to the list of REMOVED configurations.
14482
14483 * configure.tgt: Add back sparc-*-vxworks*.
14484 * remote-vxsparc.c: Remove all includes except for "defs.h",
14485 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
14486 Include "sparc-tdep.h".
14487 (SPARC_R_G1): New define.
14488 (vxsparc_gregset): New variable.
14489 (ext_format_sparc): Remove extern declaration.
14490 (vx_read_register): Rewrite to use sparc32_supply_gregset and
14491 sparc32_supply_fpregset.
14492 (vx_write_register): Rewrite to use sparc32_collect_gregset,
14493 sparc_collect_rwindow and sparc32_collect_fpregset.
14494 * config/sparc/tm-vxworks.h: New file, based on recently removed
14495 tm-vxsparc.h.
14496 * config/sparc/vxworks.mt: New file, based on recently removed
14497 vxworks.mt.
14498
14499 2004-01-03 J. Brobecker <brobecker@gnat.com>
14500
14501 * infrun.c (handle_step_into_function): New function.
14502 (handle_inferior_event): Extract out some code into the new
14503 function above.
14504
14505 2004-01-02 Mark Kettenis <kettenis@gnu.org>
14506
14507 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
14508 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
14509 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
14510 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
14511 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
14512 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
14513 (sparc_nat_h): New variable.
14514 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
14515 (tm-sun4os4.h): Remove dependency.
14516 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
14517 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
14518 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
14519 sparc-tdep.o): Update dependencies.
14520 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
14521 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
14522 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
14523 dependencies.
14524 * configure.host: Remove existing sparc-*-lynxos*,
14525 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
14526 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
14527 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
14528 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
14529 triplets.
14530 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
14531 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
14532 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
14533 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
14534 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
14535 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
14536 sparc64-*-solaris2* and sparc64-*-* triplets.
14537 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
14538 "symtab.h" and "objfiles.h".
14539 (BIAS): Remove define.
14540 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
14541 (X_DISP19): Remove macros.
14542 (sparc_fetch_instruction): Remove function.
14543 (struct gdbarch_tdep): Remove definition.
14544 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
14545 (sparc_breakpoint_from_pc): Remove function.
14546 (struct sparc64_frame_cache): Remove definition.
14547 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
14548 sparc64_unwind_pc): Remove functions.
14549 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
14550 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
14551 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
14552 (sparc64_frame_cache): Change return type to `struct
14553 sparc_frame_cache *'. Simply call sparc_frame_cache.
14554 (sparc64_frame_this_id, sparc64_frame_prev_register,
14555 sparc64_frame_base_address): Use `struct sparc_frame_cache'
14556 instead of `struct sparc64_frame_cache.
14557 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
14558 sparc_analyze_control_transfer, sparc_software_single_step,
14559 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
14560 _initialize_sparc64_tdep): Remove functions.
14561 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
14562 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
14563 macros.
14564 (sparc64_supply_gregset, sparc64_collect_gregset,
14565 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
14566 (sparc64_init_abi): New function.
14567 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
14568 inclusion guard. Include "sparc-tdep.h".
14569 (BIAS): Define.
14570 (r_tstate_offset, r_fprs_offset): New defines.
14571 (enum sparc_regnum): Remove defenition.
14572 (enum sparc64_regnum): Reformat.
14573 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
14574 (sparc64_init_abi, sparc64_supply_gregset,
14575 sparc64_collect_gregset, sparc64_supply_fpregset,
14576 sparc64_collect_fpregset): New prototypes.
14577 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
14578 Add extern declarations.
14579 (sparc64_sol2_init_abi): New prototype.
14580 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
14581 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
14582 prototypes.
14583 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
14584 "sparnbsd-nat.h".
14585 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
14586 functions.
14587 (_initialize_sparc64fbsd_nat): Remove initialization of
14588 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
14589 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
14590 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
14591 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
14592 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
14593 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
14594 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
14595 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
14596 (sparc64fbsd_r_y_offset): Remove variables.
14597 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
14598 Make static and const.
14599 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
14600 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
14601 functions.
14602 (sparc64fbsd_gregset): New variable.
14603 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
14604 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
14605 and sparc64_supply_fpregset.
14606 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
14607 (sparc64fbsd_sigtramp_frame_this_id)
14608 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
14609 (sparc64fbsd_sigtramp_frame_unwind): New variable.
14610 (sparc64fbsd_sigtramp_frame_sniffer): New function.
14611 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
14612 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
14613 * sparcnbsd-tdep.c: Update copyright year. Include
14614 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
14615 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
14616 "value.h" and "sparcnbsd-tdep.h".
14617 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
14618 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
14619 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
14620 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
14621 defines.
14622 (sparcnbsd_gregset): New variable.
14623 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
14624 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
14625 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
14626 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
14627 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
14628 variables.
14629 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
14630 (sparc32nbsd_sigcontext_frame_this_id)
14631 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
14632 (sparc32nbsd_sigcontext_frame_unwind): New variable.
14633 (sparc32nbsd_sigtramp_frame_sniffer): New function.
14634 (sparcnbsd_get_longjmp_target_32,
14635 sparcnbsd_get_longjmp_target_64): Remove functions.
14636 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
14637 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
14638 sparcnbsd_init_elf): Remove.
14639 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
14640 (sparcnbsd_elf_init_abi): New functions.
14641 (_initialize_sparcnbsd_tdep): New prototype.
14642 (_initialize_sparnbsd_tdep): Update.
14643 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
14644 corelow.o. Add sparc64-nat.o and sparc-nat.o.
14645 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
14646 * config/sparc/linux.mh: Update comment.
14647 (XM_FILE, HOST_IPC): Remove variables.
14648 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
14649 sparc-linux-nat.o.
14650 * config/sparc/linux.mt: Update comment.
14651 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
14652 * config/sparc/nbsd.mt: Reformat.
14653 * config/sparc/nbsd64.mh: Update comment.
14654 (NATDEPFILES): Add sparc-nat.o.
14655 * config/sparc/nbsd64.mt: Update comment.
14656 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
14657 (TM_FILE): Set to tm-nbsd.h.
14658 * config/sparc/nbsdelf.mh: Update comment.
14659 (NATDEPFILES): Add sparc-nat.o.
14660 (XM_FILE): Delete.
14661 * config/sparc/nbsdaout.mh: Update comment.
14662 (NATDEPFILES): Add sparc-nat.o
14663 (XM_FILE): Delete.
14664 * config/sparc/nm-linux.h: Update copyright year. Don't include
14665 "config/nm-svr4.h" and "solib.h". Add protection against multiple
14666 inclusion.
14667 (KERNEL_U_SIZE): Remove define.
14668 (kernel_u_size): Remove prototype.
14669 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
14670 * config/sparc/nm-nbsd.h: Update copyright. Don't include
14671 "regcache.h".
14672 (CHILD_PREPARE_TO_STORE): Remove define.
14673 * config/sparc/nm-nbsdaout.h: Tweak some comments.
14674 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
14675 sparcnbsd-nat.c: Rewrite files.
14676 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
14677 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
14678 sparcnbsd-tdep.h: Remove files.
14679 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
14680 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
14681 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
14682 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
14683 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
14684 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
14685 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
14686 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
14687 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
14688 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
14689 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
14690 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
14691 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
14692 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
14693 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
14694 * config/sparc/linux64.mh, config/sparc/linux64.mt,
14695 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
14696 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
14697 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
14698
14699 2004-01-02 Andrew Cagney <cagney@redhat.com>
14700
14701 From 2003-12-18 Kazuhiro Inaoka:
14702 * configure.host: Add m32r-linux target.
14703
14704 2004-01-02 Michael Chastain <mec.gnu@mindspring.com>
14705
14706 * top.c (print_gdb_version): Update year to 2004.
14707
14708 2004-01-02 Mark Mitchell <mark@codesourcery.com>
14709
14710 * MAINTAINERS: Add myself to the write-after-approval category.
14711
14712 2004-01-02 Daniel Jacobowitz <drow@mvista.com>
14713
14714 From Bernardo Innocenti <bernie@develer.com>:
14715 * configure.tgt: Add uClinux target.
14716
14717 2004-01-02 Andrew Cagney <cagney@redhat.com>
14718
14719 * utils.c (do_my_cleanups): Make static, add forward declaration.
14720 * defs.h (do_my_cleanups): Delete declaration.
14721
14722 2004-01-02 Eli Zaretskii <eliz@elta.co.il>
14723
14724 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
14725 bfd/ChangeLog-0203.
14726
14727 2004-01-02 Mark Kettenis <kettenis@gnu.org>
14728
14729 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
14730 in <machine/reg.h>.
14731 * configure, config.in: Regenerate.
14732
14733 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
14734 tui/ChangeLog-1998-2003.
14735 \f
14736 Local Variables:
14737 mode: change-log
14738 left-margin: 8
14739 fill-column: 74
14740 version-control: never
14741 End: